1var Swiper,Intense;window.Modernizr=function(n,t,i){function y(n){k.cssText=n}function u(n,t){return typeof n===t}function tt(n,t){return!!~(""+n).indexOf(t)}function p(n,t){var u,r;for(u in n)if(r=n[u],!tt(r,"-")&&k[r]!==i)return t=="pfx"?r:!0;return!1}function it(n,t,r){var e,f;for(e in n)if(f=t[n[e]],f!==i)return r===!1?n[e]:u(f,"function")?f.bind(r||t):f;return!1}function w(n,t,i){var r=n.charAt(0).toUpperCase()+n.slice(1),f=(n+" "+g.join(r+" ")+r).split(" ");return u(t,"string")||u(t,"undefined")?p(f,t):(f=(n+" "+nt.join(r+" ")+r).split(" "),it(f,t,i))}var r={},s=!0,h=t.documentElement,b=t.createElement("modernizr"),k=b.style,rt,ft={}.toString,d="Webkit Moz O ms",g=d.split(" "),nt=d.toLowerCase().split(" "),f={},c=[],l=c.slice,e,a={}.hasOwnProperty,v,o;v=!u(a,"undefined")&&!u(a.call,"undefined")?function(n,t){return a.call(n,t)}:function(n,t){return t in n&&u(n.constructor.prototype[t],"undefined")};Function.prototype.bind||(Function.prototype.bind=function(n){var t=this,i,r;if(typeof t!="function")throw new TypeError;return i=l.call(arguments,1),r=function(){var f,e,u;return this instanceof r?(f=function(){},f.prototype=t.prototype,e=new f,u=t.apply(e,i.concat(l.call(arguments))),Object(u)===u?u:e):t.apply(n,i.concat(l.call(arguments)))},r});f.csstransitions=function(){return w("transition")};for(o in f)v(f,o)&&(e=o.toLowerCase(),r[e]=f[o](),c.push((r[e]?"":"no-")+e));return r.addTest=function(n,t){if(typeof n=="object")for(var u in n)v(n,u)&&r.addTest(u,n[u]);else{if(n=n.toLowerCase(),r[n]!==i)return r;t=typeof t=="function"?t():t;typeof s!="undefined"&&s&&(h.className+=" "+(t?"":"no-")+n);r[n]=t}return r},y(""),b=rt=null,function(n,t){function v(n,t){var i=n.createElement("p"),r=n.getElementsByTagName("head")[0]||n.documentElement;return i.innerHTML="x<style>"+t+"<\/style>",r.insertBefore(i.lastChild,r.firstChild)}function s(){var n=r.elements;return typeof n=="string"?n.split(" "):n}function u(n){var t=a[n[l]];return t||(t={},o++,n[l]=o,a[o]=t),t}function h(n,r,f){if(r||(r=t),i)return r.createElement(n);f||(f=u(r));var e;return e=f.cache[n]?f.cache[n].cloneNode():b.test(n)?(f.cache[n]=f.createElem(n)).cloneNode():f.createElem(n),e.canHaveChildren&&!w.test(n)?f.frag.appendChild(e):e}function y(n,r){if(n||(n=t),i)return n.createDocumentFragment();r=r||u(n);for(var e=r.frag.cloneNode(),f=0,o=s(),h=o.length;f<h;f++)e.createElement(o[f]);return e}function p(n,t){t.cache||(t.cache={},t.createElem=n.createElement,t.createFrag=n.createDocumentFragment,t.frag=t.createFrag());n.createElement=function(i){return r.shivMethods?h(i,n,t):t.createElem(i)};n.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+s().join().replace(/\w+/g,function(n){return t.createElem(n),t.frag.createElement(n),'c("'+n+'")'})+");return n}")(r,t.frag)}function c(n){n||(n=t);var f=u(n);return r.shivCSS&&!e&&!f.hasCSS&&(f.hasCSS=!!v(n,"article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}")),i||p(n,f),n}var f=n.html5||{},w=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,b=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,e,l="_html5shiv",o=0,a={},i,r;(function(){try{var n=t.createElement("a");n.innerHTML="<xyz><\/xyz>";e="hidden"in n;i=n.childNodes.length==1||function(){t.createElement("a");var n=t.createDocumentFragment();return typeof n.cloneNode=="undefined"||typeof n.createDocumentFragment=="undefined"||typeof n.createElement=="undefined"}()}catch(r){e=!0;i=!0}})();r={elements:f.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:f.shivCSS!==!1,supportsUnknownElements:i,shivMethods:f.shivMethods!==!1,type:"default",shivDocument:c,createElement:h,createDocumentFragment:y};n.html5=r;c(t)}(this,t),r._version="2.6.2",r._domPrefixes=nt,r._cssomPrefixes=g,r.testProp=function(n){return p([n])},r.testAllProps=w,h.className=h.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(s?" js "+c.join(" "):""),r}(this,this.document),function(n,t,i){function h(n){return"[object Function]"==y.call(n)}function c(n){return"string"==typeof n}function l(){}function w(n){return!n||"loaded"==n||"complete"==n||"uninitialized"==n}function f(){var n=a.shift();v=1;n?n.t?s(function(){("c"==n.t?u.injectCss:u.injectJs)(n.s,0,n.a,n.x,n.e,1)},0):(n(),f()):v=0}function ut(n,i,o,h,c,l,y){function k(t){if(!nt&&w(p.readyState)&&(tt.r=nt=1,!v&&f(),p.onload=p.onreadystatechange=null,t)){"img"!=n&&s(function(){g.removeChild(p)},50);for(var u in r[i])r[i].hasOwnProperty(u)&&r[i][u].onload()}}var y=y||u.errorTimeout,p=t.createElement(n),nt=0,b=0,tt={t:o,s:i,e:c,a:l,x:y};1===r[i]&&(b=1,r[i]=[]);"object"==n?p.data=i:(p.src=i,p.type=n);p.width=p.height="0";p.onerror=p.onload=p.onreadystatechange=function(){k.call(this,b)};a.splice(h,0,tt);"img"!=n&&(b||2===r[i]?(g.insertBefore(p,d?null:e),s(k,y)):r[i].push(p))}function ft(n,t,i,r,u){return v=0,t=t||"j",c(n)?ut("c"==t?et:nt,n,t,this.i++,i,r,u):(a.splice(this.i++,0,n),1==a.length&&f()),this}function b(){var n=u;return n.loader={load:ft,i:0},n}var o=t.documentElement,s=n.setTimeout,e=t.getElementsByTagName("script")[0],y={}.toString,a=[],v=0,k="MozAppearance"in o.style,d=k&&!!t.createRange().compareNode,g=d?o:e.parentNode,o=n.opera&&"[object Opera]"==y.call(n.opera),o=!!t.attachEvent&&!o,nt=k?"object":o?"script":"img",et=o?"script":nt,tt=Array.isArray||function(n){return"[object Array]"==y.call(n)},p=[],r={},it={timeout:function(n,t){return t.length&&(n.timeout=t[0]),n}},rt,u;u=function(n){function a(n){for(var n=n.split("!"),f=p.length,i=n.pop(),e=n.length,i={url:i,origUrl:i,prefixes:n},u,r,t=0;t<e;t++)r=n[t].split("="),(u=it[r.shift()])&&(i=u(i,r));for(t=0;t<f;t++)i=p[t](i);return i}function f(n,t,u,f,e){var o=a(n),s=o.autoCallback;o.url.split(".").pop().split("?").shift();o.bypass||(t&&(t=h(t)?t:t[n]||t[f]||t[n.split("/").pop().split("?")[0]]),o.instead?o.instead(n,t,u,f,e):(r[o.url]?o.noexec=!0:r[o.url]=1,u.load(o.url,o.forceCSS||!o.forceJS&&"css"==o.url.split(".").pop().split("?").shift()?"c":i,o.noexec,o.attrs,o.timeout),(h(t)||h(s))&&u.load(function(){b();t&&t(o.origUrl,e,f);s&&s(o.origUrl,e,f);r[o.url]=2})))}function s(n,t){function a(n,o){if(n){if(c(n))o||(i=function(){var n=[].slice.call(arguments);s.apply(this,n);u()}),f(n,i,t,0,e);else if(Object(n)===n)for(r in v=function(){var t=0;for(var i in n)n.hasOwnProperty(i)&&t++;return t}(),n)n.hasOwnProperty(r)&&(!o&&!--v&&(h(i)?i=function(){var n=[].slice.call(arguments);s.apply(this,n);u()}:i[r]=function(n){return function(){var t=[].slice.call(arguments);n&&n.apply(this,t);u()}}(s[r])),f(n[r],i,t,r,e))}else o||u()}var e=!!n.test,o=n.load||n.both,i=n.callback||l,s=i,u=n.complete||l,v,r;a(e?n.yep:n.nope,!!o);o&&a(o)}var e,t,o=this.yepnope.loader;if(c(n))f(n,0,o,0);else if(tt(n))for(e=0;e<n.length;e++)t=n[e],c(t)?f(t,0,o,0):tt(t)?u(t):Object(t)===t&&s(t,o);else Object(n)===n&&s(n,o)};u.addPrefix=function(n,t){it[n]=t};u.addFilter=function(n){p.push(n)};u.errorTimeout=1e4;null==t.readyState&&t.addEventListener&&(t.readyState="loading",t.addEventListener("DOMContentLoaded",rt=function(){t.removeEventListener("DOMContentLoaded",rt,0);t.readyState="complete"},0));n.yepnope=b();n.yepnope.executeStack=f;n.yepnope.injectJs=function(n,i,r,o,h,c){var a=t.createElement("script"),v,y,o=o||u.errorTimeout;a.src=n;for(y in r)a.setAttribute(y,r[y]);i=c?f:i||l;a.onreadystatechange=a.onload=function(){!v&&w(a.readyState)&&(v=1,i(),a.onload=a.onreadystatechange=null)};s(function(){v||(v=1,i(1))},o);h?a.onload():e.parentNode.insertBefore(a,e)};n.yepnope.injectCss=function(n,i,r,u,o,h){var u=t.createElement("link"),
1c,i=h?f:i||l;u.href=n;u.rel="stylesheet";u.type="text/css";for(c in r)u.setAttribute(c,r[c]);o||(e.parentNode.insertBefore(u,e),s(i,0))}}(this,document);Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(n,t,i,r,u){return jQuery.easing[jQuery.easing.def](n,t,i,r,u)},easeInQuad:function(n,t,i,r,u){return r*(t/=u)*t+i},easeOutQuad:function(n,t,i,r,u){return-r*(t/=u)*(t-2)+i},easeInOutQuad:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t+i:-r/2*(--t*(t-2)-1)+i},easeInCubic:function(n,t,i,r,u){return r*(t/=u)*t*t+i},easeOutCubic:function(n,t,i,r,u){return r*((t=t/u-1)*t*t+1)+i},easeInOutCubic:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t+i:r/2*((t-=2)*t*t+2)+i},easeInQuart:function(n,t,i,r,u){return r*(t/=u)*t*t*t+i},easeOutQuart:function(n,t,i,r,u){return-r*((t=t/u-1)*t*t*t-1)+i},easeInOutQuart:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t+i:-r/2*((t-=2)*t*t*t-2)+i},easeInQuint:function(n,t,i,r,u){return r*(t/=u)*t*t*t*t+i},easeOutQuint:function(n,t,i,r,u){return r*((t=t/u-1)*t*t*t*t+1)+i},easeInOutQuint:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t*t+i:r/2*((t-=2)*t*t*t*t+2)+i},easeInSine:function(n,t,i,r,u){return-r*Math.cos(t/u*(Math.PI/2))+r+i},easeOutSine:function(n,t,i,r,u){return r*Math.sin(t/u*(Math.PI/2))+i},easeInOutSine:function(n,t,i,r,u){return-r/2*(Math.cos(Math.PI*t/u)-1)+i},easeInExpo:function(n,t,i,r,u){return t==0?i:r*Math.pow(2,10*(t/u-1))+i},easeOutExpo:function(n,t,i,r,u){return t==u?i+r:r*(-Math.pow(2,-10*t/u)+1)+i},easeInOutExpo:function(n,t,i,r,u){return t==0?i:t==u?i+r:(t/=u/2)<1?r/2*Math.pow(2,10*(t-1))+i:r/2*(-Math.pow(2,-10*--t)+2)+i},easeInCirc:function(n,t,i,r,u){return-r*(Math.sqrt(1-(t/=u)*t)-1)+i},easeOutCirc:function(n,t,i,r,u){return r*Math.sqrt(1-(t=t/u-1)*t)+i},easeInOutCirc:function(n,t,i,r,u){return(t/=u/2)<1?-r/2*(Math.sqrt(1-t*t)-1)+i:r/2*(Math.sqrt(1-(t-=2)*t)+1)+i},easeInElastic:function(n,t,i,r,u){var o=1.70158,f=0,e=r;return t==0?i:(t/=u)==1?i+r:(f||(f=u*.3),e<Math.abs(r)?(e=r,o=f/4):o=f/(2*Math.PI)*Math.asin(r/e),-(e*Math.pow(2,10*(t-=1))*Math.sin((t*u-o)*2*Math.PI/f))+i)},easeOutElastic:function(n,t,i,r,u){var o=1.70158,f=0,e=r;return t==0?i:(t/=u)==1?i+r:(f||(f=u*.3),e<Math.abs(r)?(e=r,o=f/4):o=f/(2*Math.PI)*Math.asin(r/e),e*Math.pow(2,-10*t)*Math.sin((t*u-o)*2*Math.PI/f)+r+i)},easeInOutElastic:function(n,t,i,r,u){var o=1.70158,f=0,e=r;return t==0?i:(t/=u/2)==2?i+r:(f||(f=u*.3*1.5),e<Math.abs(r)?(e=r,o=f/4):o=f/(2*Math.PI)*Math.asin(r/e),t<1)?-.5*e*Math.pow(2,10*(t-=1))*Math.sin((t*u-o)*2*Math.PI/f)+i:e*Math.pow(2,-10*(t-=1))*Math.sin((t*u-o)*2*Math.PI/f)*.5+r+i},easeInBack:function(n,t,i,r,u,f){return f==undefined&&(f=1.70158),r*(t/=u)*t*((f+1)*t-f)+i},easeOutBack:function(n,t,i,r,u,f){return f==undefined&&(f=1.70158),r*((t=t/u-1)*t*((f+1)*t+f)+1)+i},easeInOutBack:function(n,t,i,r,u,f){return(f==undefined&&(f=1.70158),(t/=u/2)<1)?r/2*t*t*(((f*=1.525)+1)*t-f)+i:r/2*((t-=2)*t*(((f*=1.525)+1)*t+f)+2)+i},easeInBounce:function(n,t,i,r,u){return r-jQuery.easing.easeOutBounce(n,u-t,0,r,u)+i},easeOutBounce:function(n,t,i,r,u){return(t/=u)<1/2.75?r*7.5625*t*t+i:t<2/2.75?r*(7.5625*(t-=1.5/2.75)*t+.75)+i:t<2.5/2.75?r*(7.5625*(t-=2.25/2.75)*t+.9375)+i:r*(7.5625*(t-=2.625/2.75)*t+.984375)+i},easeInOutBounce:function(n,t,i,r,u){return t<u/2?jQuery.easing.easeInBounce(n,t*2,0,r,u)*.5+i:jQuery.easing.easeOutBounce(n,t*2-u,0,r,u)*.5+r*.5+i}}),function(n){function i(){}function t(n){function u(t){t.prototype.option||(t.prototype.option=function(t){n.isPlainObject(t)&&(this.options=n.extend(!0,this.options,t))})}function f(i,u){n.fn[i]=function(f){var h,e,s;if("string"==typeof f){for(var c=r.call(arguments,1),o=0,l=this.length;l>o;o++)if(h=this[o],e=n.data(h,i),e)if(n.isFunction(e[f])&&"_"!==f.charAt(0)){if(s=e[f].apply(e,c),void 0!==s)return s}else t("no such method '"+f+"' for "+i+" instance");else t("cannot call methods on "+i+" prior to initialization; attempted to call '"+f+"'");return this}return this.each(function(){var t=n.data(this,i);t?(t.option(f),t._init()):(t=new u(this,f),n.data(this,i,t))})}}if(n){var t="undefined"==typeof console?i:function(n){console.error(n)};return n.bridget=function(n,t){u(t);f(n,t)},n.bridget}}var r=Array.prototype.slice;"function"==typeof define&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],t):t(n.jQuery)}(window),function(n){function f(t){var i=n.event;return i.target=i.target||i.srcElement||t,i}var t=document.documentElement,u=function(){},i,r;t.addEventListener?u=function(n,t,i){n.addEventListener(t,i,!1)}:t.attachEvent&&(u=function(n,t,i){n[t+i]=i.handleEvent?function(){var t=f(n);i.handleEvent.call(i,t)}:function(){var t=f(n);i.call(n,t)};n.attachEvent("on"+t,n[t+i])});i=function(){};t.removeEventListener?i=function(n,t,i){n.removeEventListener(t,i,!1)}:t.detachEvent&&(i=function(n,t,i){n.detachEvent("on"+t,n[t+i]);try{delete n[t+i]}catch(r){n[t+i]=void 0}});r={bind:u,unbind:i};"function"==typeof define&&define.amd?define("eventie/eventie",r):"object"==typeof exports?module.exports=r:n.eventie=r}(this),function(n){function t(n){"function"==typeof n&&(t.isReady?n():u.push(n))}function i(n){var o="readystatechange"===n.type&&"complete"!==r.readyState,i,f,e;if(!t.isReady&&!o)for(t.isReady=!0,i=0,f=u.length;f>i;i++)e=u[i],e()}function f(u){return u.bind(r,"DOMContentLoaded",i),u.bind(r,"readystatechange",i
1),u.bind(n,"load",i),t}var r=n.document,u=[];t.isReady=!1;"function"==typeof define&&define.amd?(t.isReady="function"==typeof requirejs,define("doc-ready/doc-ready",["eventie/eventie"],f)):n.docReady=f(n.eventie)}(this),function(){function t(){}function r(n,t){for(var i=n.length;i--;)if(n[i].listener===t)return i;return-1}function i(n){return function(){return this[n].apply(this,arguments)}}var n=t.prototype,u=this,f=u.EventEmitter;n.getListeners=function(n){var r,t,i=this._getEvents();if(n instanceof RegExp){r={};for(t in i)i.hasOwnProperty(t)&&n.test(t)&&(r[t]=i[t])}else r=i[n]||(i[n]=[]);return r};n.flattenListeners=function(n){for(var i=[],t=0;n.length>t;t+=1)i.push(n[t].listener);return i};n.getListenersAsObject=function(n){var t,i=this.getListeners(n);return i instanceof Array&&(t={},t[n]=i),t||i};n.addListener=function(n,t){var i,u=this.getListenersAsObject(n),f="object"==typeof t;for(i in u)u.hasOwnProperty(i)&&-1===r(u[i],t)&&u[i].push(f?t:{listener:t,once:!1});return this};n.on=i("addListener");n.addOnceListener=function(n,t){return this.addListener(n,{listener:t,once:!0})};n.once=i("addOnceListener");n.defineEvent=function(n){return this.getListeners(n),this};n.defineEvents=function(n){for(var t=0;n.length>t;t+=1)this.defineEvent(n[t]);return this};n.removeListener=function(n,t){var f,i,u=this.getListenersAsObject(n);for(i in u)u.hasOwnProperty(i)&&(f=r(u[i],t),-1!==f&&u[i].splice(f,1));return this};n.off=i("removeListener");n.addListeners=function(n,t){return this.manipulateListeners(!1,n,t)};n.removeListeners=function(n,t){return this.manipulateListeners(!0,n,t)};n.manipulateListeners=function(n,t,i){var r,u,f=n?this.removeListener:this.addListener,e=n?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(r=i.length;r--;)f.call(this,t,i[r]);else for(r in t)t.hasOwnProperty(r)&&(u=t[r])&&("function"==typeof u?f.call(this,r,u):e.call(this,r,u));return this};n.removeEvent=function(n){var t,r=typeof n,i=this._getEvents();if("string"===r)delete i[n];else if(n instanceof RegExp)for(t in i)i.hasOwnProperty(t)&&n.test(t)&&delete i[t];else delete this._events;return this};n.removeAllListeners=i("removeEvent");n.emitEvent=function(n,t){var i,f,r,e,u=this.getListenersAsObject(n);for(r in u)if(u.hasOwnProperty(r))for(f=u[r].length;f--;)i=u[r][f],i.once===!0&&this.removeListener(n,i.listener),e=i.listener.apply(this,t||[]),e===this._getOnceReturnValue()&&this.removeListener(n,i.listener);return this};n.trigger=i("emitEvent");n.emit=function(n){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(n,t)};n.setOnceReturnValue=function(n){return this._onceReturnValue=n,this};n._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0};n._getEvents=function(){return this._events||(this._events={})};t.noConflict=function(){return u.EventEmitter=f,t};"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return t}):"object"==typeof module&&module.exports?module.exports=t:this.EventEmitter=t}.call(this),function(n){function t(n){if(n){if("string"==typeof r[n])return n;n=n.charAt(0).toUpperCase()+n.slice(1);for(var t,u=0,f=i.length;f>u;u++)if(t=i[u]+n,"string"==typeof r[t])return t}}var i="Webkit Moz ms Ms O".split(" "),r=document.documentElement.style;"function"==typeof define&&define.amd?define("get-style-property/get-style-property",[],function(){return t}):"object"==typeof exports?module.exports=t:n.getStyleProperty=t}(window),function(n){function i(n){var t=parseFloat(n),i=-1===n.indexOf("%")&&!isNaN(t);return i&&t}function e(){for(var r,i={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},n=0,u=t.length;u>n;n++)r=t[n],i[r]=0;return i}function r(n){function s(n){var s,u,a,c,v,y;if("string"==typeof n&&(n=document.querySelector(n)),n&&"object"==typeof n&&n.nodeType){if(s=f(n),"none"===s.display)return e();u={};u.width=n.offsetWidth;u.height=n.offsetHeight;for(var nt=u.isBorderBox=!(!r||!s[r]||"border-box"!==s[r]),l=0,tt=t.length;tt>l;l++)a=t[l],c=s[a],c=h(n,c),v=parseFloat(c),u[a]=isNaN(v)?0:v;var p=u.paddingLeft+u.paddingRight,w=u.paddingTop+u.paddingBottom,it=u.marginLeft+u.marginRight,rt=u.marginTop+u.marginBottom,b=u.borderLeftWidth+u.borderRightWidth,k=u.borderTopWidth+u.borderBottomWidth,d=nt&&o,g=i(s.width);return g!==!1&&(u.width=g+(d?0:p+b)),y=i(s.height),y!==!1&&(u.height=y+(d?0:w+k)),u.innerWidth=u.width-(p+b),u.innerHe
1ight=u.height-(w+k),u.outerWidth=u.width+it,u.outerHeight=u.height+rt,u}}function h(n,t){if(u||-1===t.indexOf("%"))return t;var i=n.style,e=i.left,r=n.runtimeStyle,f=r&&r.left;return f&&(r.left=n.currentStyle.left),i.left=t,t=i.pixelLeft,i.left=e,f&&(r.left=f),t}var o,r=n("boxSizing");return function(){var n,t,u;r&&(n=document.createElement("div"),n.style.width="200px",n.style.padding="1px 2px 3px 4px",n.style.borderStyle="solid",n.style.borderWidth="1px 2px 3px 4px",n.style[r]="border-box",t=document.body||document.documentElement,t.appendChild(n),u=f(n),o=200===i(u.width),t.removeChild(n))}(),s}var u=n.getComputedStyle,f=u?function(n){return u(n,null)}:function(n){return n.currentStyle},t=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];"function"==typeof define&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],r):"object"==typeof exports?module.exports=r(require("get-style-property")):n.getSize=r(n.getStyleProperty)}(window),function(n,t){function r(n,t){return n[f](t)}function u(n){if(!n.parentNode){var t=document.createDocumentFragment();t.appendChild(n)}}function s(n,t){u(n);for(var r=n.parentNode.querySelectorAll(t),i=0,f=r.length;f>i;i++)if(r[i]===n)return!0;return!1}function h(n,t){return u(n),r(n,t)}var i,f=function(){var u,i;if(t.matchesSelector)return"matchesSelector";for(var r=["webkit","moz","ms","o"],n=0,f=r.length;f>n;n++)if(u=r[n],i=u+"MatchesSelector",t[i])return i}(),e,o;f?(e=document.createElement("div"),o=r(e,"div"),i=o?r:h):i=s;"function"==typeof define&&define.amd?define("matches-selector/matches-selector",[],function(){return i}):window.matchesSelector=i}(this,Element.prototype),function(n){function r(n,t){for(var i in t)n[i]=t[i];return n}function u(n){for(var t in n)return!1;return t=null,!0}function f(n){return n.replace(/([A-Z])/g,function(n){return"-"+n.toLowerCase()})}function t(n,t,i){function o(n,t){n&&(this.element=n,this.layout=t,this.position={x:0,y:0},this._create())}var s=i("transition"),h=i("transform"),w=s&&h,b=!!i("perspective"),c={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[s],l=["transform","transition","transitionDuration","transitionProperty"],k=function(){for(var n,t,u={},r=0,f=l.length;f>r;r++)n=l[r],t=i(n),t&&t!==n&&(u[n]=t);return u}(),a,v,y,p;return r(o.prototype,n.prototype),o.prototype._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}};this.css({position:"absolute"})},o.prototype.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},o.prototype.getSize=function(){this.size=t(this.element)},o.prototype.css=function(n){var r=this.element.style,t,i;for(t in n)i=k[t]||t,r[i]=n[t]},o.prototype.getPosition=function(){var r=e(this.element),u=this.layout.options,f=u.isOriginLeft,o=u.isOriginTop,n=parseInt(r[f?"left":"right"],10),t=parseInt(r[o?"top":"bottom"],10),i;n=isNaN(n)?0:n;t=isNaN(t)?0:t;i=this.layout.size;n-=f?i.paddingLeft:i.paddingRight;t-=o?i.paddingTop:i.paddingBottom;this.position.x=n;this.position.y=t},o.prototype.layoutPosition=function(){var t=this.layout.size,i=this.layout.options,n={};i.isOriginLeft?(n.left=this.position.x+t.paddingLeft+"px",n.right=""):(n.right=this.position.x+t.paddingRight+"px",n.left="");i.isOriginTop?(n.top=this.position.y+t.paddingTop+"px",n.bottom=""):(n.bottom=this.position.y+t.paddingBottom+"px",n.top="");this.css(n);this.emitEvent("layout",[this])},a=b?function(n,t){return"translate3d("+n+"px, "+t+"px, 0)"}:function(n,t){return"translate("+n+"px, "+t+"px)"},o.prototype._transitionTo=function(n,t){this.getPosition();var e=this.position.x,o=this.position.y,s=parseInt(n,10),h=parseInt(t,10),c=s===this.position.x&&h===this.position.y;if(this.setPosition(n,t),c&&!this.isTransitioning)return this.layoutPosition(),void 0;var i=n-e,r=t-o,u={},f=this.layout.options;i=f.isOriginLeft?i:-i;r=f.isOriginTop?r:-r;u.transform=a(i,r);this.transition({to:u,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},o.prototype.goTo=function(n,t){this.setPosition(n,t);this.layoutPosition()},o.prototype.moveTo=w?o.prototype._transitionTo:o.prototype.goTo,o.prototype.setPosition=function(n,t){this.position.x=parseInt(n,10);this.position.y=parseInt(t,10)},o.prototype._nonTransition=function(n){this.css(n.to);n.isCleaning&&this._removeStyles(n.to);for(var t in n.onTransitionEnd)n.onTransitionEnd[t].call(this)},o.prototype._transition=function(n){var i,t,r;if(!parseFloat(this.layout.options.transitionDuration))return this._nonTransition(n),void 0;i=this._transn;for(t in n.onTransitionEnd)i.onEnd[t]=n.onTransitionEnd[t];for(t in n.to)i.ingProperties[t]=!0,n.isCleaning&&(i.clean[t]=!0);n.from&&(this.css(n.from),r=this.element.offsetHeight,r=null);this.enableTransition(n.to);this.css(n.to);this.isTransitioning=!0},v=h&&f(h)+",opacity",o.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:v,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(c,this,!1))},o.prototype.transition=o.prototype[s?"_transition":"_nonTransition"],o.prototype.onwebkitTransitionEnd=function(n){this.ontransitionend(n)},o.prototype.onotransitionend=function(n){this.ontransitionend(n)},y={"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"},o.prototype.ontransitionend=function(n){var t,i,r;n.target===this.element&&(t=this._transn,i=y[n.propertyName]||n.propertyName,(delete t.ingProperties[i],u(t.ingProperties)&&this.disableTransition(),i in t.clean&&(this.element.style[n.propertyName]="",delete t.clean[i]),i in t.onEnd)&&(r=t.onEnd[i],r.call(this),delete t.onEnd[i]),this.emitEvent("transitionEnd",[this]))},o.prototype.disableTransition=function(){this.removeTransitionStyles();this.element.removeEventListener(c,this,!1);this.isTransitioning=!1},o.prototype._removeStyles=function(n){var t={};for(var i in n)t[i]="";this.css(t)},p={transitionProperty:"",transitionDuration:""},o.prototype.removeTransitionStyles=function(){this.css(p)},o.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element);this.emitEvent("remove",[this])},o.prototype.remove=function(){if(!s||!parseFloat(this.layout.options.transitionDuration))return this.removeElem(),void 0;var n=this;this.on("transitionEnd",function(){return n.removeElem(),!0});this.hide()},o.prototype.reveal=function(){delete this.isHidden;this.css({display:""});var n=this.layout.options;this.transition({from:n.hiddenStyle,to:n.visibleStyle,isCleaning:!0})},o.prototype.hide=function(){this.isHidden=!0;this.css({display:""});var n=this.layout.options;this.transition({from:n.visibleStyle,to:n.hiddenStyle,isCleaning:!0,onTransitionEnd:{opacity:function(){this.isHidden&&this.css({display:"none"})}}})},o.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},o}var i=n.getComputedStyle,e=i?function(n){return i(n,null)}:function(n){return n.currentStyle};"function"==typeof define&&define.amd?define("outlayer/item",["eventEmitter/EventEmitter","get-size/get-size","get-style-property/get-style-property"],t):(n.Outlayer={},n.Outlayer.Item=t(n.EventEmitter,n.getSize,n.getStyleProperty))}(window),function(n){function t(n,t){for(var i in t)n[i]=t[i];return n}function c(n){return"[object Array]"===a.call(n)}function u(n){var t=[],i,r;if(c(n))t=n;else if(n&&"number"==typeof n.length)for(i=0,r=n.length;r>i;i++)t.push(n[i]);else t.push(n);return t}function e(n,t){var i=v(t,n);-1!==i&&t.splice(i,1)}function l(n){return n.replace(/(.)([A-Z])/g,function(n,t,i){return t+"-"+i}).toLowerCase()}
1function o(o,c,a,v,y,p){function w(n,i){if("string"==typeof n&&(n=s.querySelector(n)),!n||!f(n))return r&&r.error("Bad "+this.constructor.namespace+" element: "+n),void 0;this.element=n;this.options=t({},this.constructor.defaults);this.option(i);var u=++k;this.element.outlayerGUID=u;b[u]=this;this._create();this.options.isInitLayout&&this.layout()}var k=0,b={};return w.namespace="outlayer",w.Item=p,w.defaults={containerStyle:{position:"relative"},isInitLayout:!0,isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,isResizingContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},t(w.prototype,a.prototype),w.prototype.option=function(n){t(this.options,n)},w.prototype._create=function(){this.reloadItems();this.stamps=[];this.stamp(this.options.stamp);t(this.element.style,this.options.containerStyle);this.options.isResizeBound&&this.bindResize()},w.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},w.prototype._itemize=function(n){for(var u,f,i=this._filterFindItemElements(n),e=this.constructor.Item,r=[],t=0,o=i.length;o>t;t++)u=i[t],f=new e(u,this),r.push(f);return r},w.prototype._filterFindItemElements=function(n){var t;n=u(n);for(var r=this.options.itemSelector,i=[],e=0,h=n.length;h>e;e++)if(t=n[e],f(t))if(r){y(t,r)&&i.push(t);for(var s=t.querySelectorAll(r),o=0,c=s.length;c>o;o++)i.push(s[o])}else i.push(t);return i},w.prototype.getItemElements=function(){for(var t=[],n=0,i=this.items.length;i>n;n++)t.push(this.items[n].element);return t},w.prototype.layout=function(){this._resetLayout();this._manageStamps();var n=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,n);this._isLayoutInited=!0},w.prototype._init=w.prototype.layout,w.prototype._resetLayout=function(){this.getSize()},w.prototype.getSize=function(){this.size=v(this.element)},w.prototype._getMeasurement=function(n,t){var r,i=this.options[n];i?("string"==typeof i?r=this.element.querySelector(i):f(i)&&(r=i),this[n]=r?v(r)[t]:i):this[n]=0},w.prototype.layoutItems=function(n,t){n=this._getItemsForLayout(n);this._layoutItems(n,t);this._postLayout()},w.prototype._getItemsForLayout=function(n){for(var i,r=[],t=0,u=n.length;u>t;t++)i=n[t],i.isIgnored||r.push(i);return r},w.prototype._layoutItems=function(n,t){function f(){e.emitEvent("layoutComplete",[e,n])}var e=this,i,r;if(!n||!n.length)return f(),void 0;this._itemsOn(n,"layout",f);for(var o=[],u=0,s=n.length;s>u;u++)i=n[u],r=this._getItemLayoutPosition(i),r.item=i,r.isInstant=t||i.isLayoutInstant,o.push(r);this._processLayoutQueue(o)},w.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},w.prototype._processLayoutQueue=function(n){for(var t,i=0,r=n.length;r>i;i++)t=n[i],this._positionItem(t.item,t.x,t.y,t.isInstant)},w.prototype._positionItem=function(n,t,i,r){r?n.goTo(t,i):n.moveTo(t,i)},w.prototype._postLayout=function(){this.resizeContainer()},w.prototype.resizeContainer=function(){if(this.options.isResizingContainer){var n=this._getContainerSize();n&&(this._setContainerMeasure(n.width,!0),this._setContainerMeasure(n.height,!1))}},w.prototype._getContainerSize=h,w.prototype._setContainerMeasure=function(n,t){if(void 0!==n){var i=this.size;i.isBorderBox&&(n+=t?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth);n=Math.max(n,0);this.element.style[t?"width":"height"]=n+"px"}},w.prototype._itemsOn=function(n,t,i){function e(){return u++,u===o&&i.call(s),!0}for(var f,u=0,o=n.length,s=this,r=0,h=n.length;h>r;r++){f=n[r];f.on(t,e)}},w.prototype.ignore=function(n){var t=this.getItem(n);t&&(t.isIgnored=!0)},w.prototype.unignore=function(n){var t=this.getItem(n);t&&delete t.isIgnored},w.prototype.stamp=function(n){var t,i,r;if(n=this._find(n))for(this.stamps=this.stamps.concat(n),t=0,i=n.length;i>t;t++)r=n[t],this.ignore(r)},w.prototype.unstamp=function(n){var t,r,i;if(n=this._find(n))for(t=0,r=n.length;r>t;t++)i=n[t],e(i,this.stamps),this.unignore(i)},w.prototype._find=function(n){if(n)return("string"==typeof n&&(n=this.element.querySelectorAll(n)),n=u(n))},w.prototype._manageStamps=function(){var n,t,i;
1if(this.stamps&&this.stamps.length)for(this._getBoundingRect(),n=0,t=this.stamps.length;t>n;n++)i=this.stamps[n],this._manageStamp(i)},w.prototype._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),n=this.size;this._boundingRect={left:t.left+n.paddingLeft+n.borderLeftWidth,top:t.top+n.paddingTop+n.borderTopWidth,right:t.right-(n.paddingRight+n.borderRightWidth),bottom:t.bottom-(n.paddingBottom+n.borderBottomWidth)}},w.prototype._manageStamp=h,w.prototype._getElementOffset=function(n){var t=n.getBoundingClientRect(),i=this._boundingRect,r=v(n);return{left:t.left-i.left-r.marginLeft,top:t.top-i.top-r.marginTop,right:i.right-t.right-r.marginRight,bottom:i.bottom-t.bottom-r.marginBottom}},w.prototype.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},w.prototype.bindResize=function(){this.isResizeBound||(o.bind(n,"resize",this),this.isResizeBound=!0)},w.prototype.unbindResize=function(){this.isResizeBound&&o.unbind(n,"resize",this);this.isResizeBound=!1},w.prototype.onresize=function(){function t(){n.resize();delete n.resizeTimeout}this.resizeTimeout&&clearTimeout(this.resizeTimeout);var n=this;this.resizeTimeout=setTimeout(t,100)},w.prototype.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},w.prototype.needsResizeLayout=function(){var n=v(this.element),t=this.size&&n;return t&&n.innerWidth!==this.size.innerWidth},w.prototype.addItems=function(n){var t=this._itemize(n);return t.length&&(this.items=this.items.concat(t)),t},w.prototype.appended=function(n){var t=this.addItems(n);t.length&&(this.layoutItems(t,!0),this.reveal(t))},w.prototype.prepended=function(n){var t=this._itemize(n),i;t.length&&(i=this.items.slice(0),this.items=t.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(i))},w.prototype.reveal=function(n){var i=n&&n.length,t,r;if(i)for(t=0;i>t;t++)r=n[t],r.reveal()},w.prototype.hide=function(n){var i=n&&n.length,t,r;if(i)for(t=0;i>t;t++)r=n[t],r.hide()},w.prototype.getItem=function(n){for(var i,t=0,r=this.items.length;r>t;t++)if(i=this.items[t],i.element===n)return i},w.prototype.getItems=function(n){var u,i;if(n&&n.length){for(var r=[],t=0,f=n.length;f>t;t++)u=n[t],i=this.getItem(u),i&&r.push(i);return r}},w.prototype.remove=function(n){var t,i,f,r;if(n=u(n),t=this.getItems(n),t&&t.length)for(this._itemsOn(t,"remove",function(){this.emitEvent("removeComplete",[this,t])}),i=0,f=t.length;f>i;i++)r=t[i],r.remove(),e(r,this.items)},w.prototype.destroy=function(){var t=this.element.style,n,r,u;for(t.height="",t.position="",t.width="",n=0,r=this.items.length;r>n;n++)u=this.items[n],u.destroy();this.unbindResize();delete this.element.outlayerGUID;i&&i.removeData(this.element,this.constructor.namespace)},w.data=function(n){var t=n&&n.outlayerGUID;return t&&b[t]},w.create=function(n,u){function f(){w.apply(this,arguments)}return Object.create?f.prototype=Object.create(w.prototype):t(f.prototype,w.prototype),f.prototype.constructor=f,f.defaults=t({},w.defaults),t(f.defaults,u),f.prototype.settings={},f.namespace=n,f.data=w.data,f.Item=function(){p.apply(this,arguments)},f.Item.prototype=new p,c(function(){for(var a,t,e,v,o=l(n),h=s.querySelectorAll(".js-"+o),c="data-"+o+"-options",u=0,y=h.length;y>u;u++){t=h[u];e=t.getAttribute(c);try{a=e&&JSON.parse(e)}catch(p){r&&r.error("Error parsing "+c+" on "+t.nodeName.toLowerCase()+(t.id?"#"+t.id:"")+": "+p);continue}v=new f(t,a);i&&i.data(t,n,v)}}),i&&i.bridget&&i.bridget(n,f),f},w.Item=p,w}var s=n.document,r=n.console,i=n.jQuery,h=function(){},a=Object.prototype.toString,f="object"==typeof HTMLElement?function(n){return n instanceof HTMLElement}:function(n){return n&&"object"==typeof n&&1===n.nodeType&&"string"==typeof n.nodeName},v=Array.prototype.indexOf?function(n,t){return n.indexOf(t)}:function(n,t){for(var i=0,r=n.length;r>i;i++)if(n[i]===t)return i;return-1};"function"==typeof define&&define.amd?define("outlayer/outlayer",["eventie/eventie","doc-ready/doc-ready","eventEmitter/EventEmitter","get-size/get-size","matches-selector/matches-selector","./item"],o):n.Outlayer=o(n.eventie,n.docReady,n.EventEmitter,n.getSize,n.matchesSelector,n.Outlayer.Item)}(window),function(n){function t(n){function t(){n.Item.apply(this,arguments)}t.prototype=new n.Item;t.prototype._create=function(){this.id=this.layout.itemGUID++;n.Item.prototype._create.call(this);this.sortData={}};t.prototype.updateSortData=function(){var t,i,n,r;if(!this.isIgnored){this.sortData.id=this.id;this.sortData["original-order"]=this.id;this.sortData.random=Math.random();t=this.layout.options.getSortData;i=this.layout._sorters;for(n in t)r=i[n],this.sortData[n]=r(this.element,this)}};var i=t.prototype.destroy;return t.prototype.destroy=function(){i.apply(this,arguments);this.css({display:""})},t}"function"==typeof define&&define.amd?define("isotope/js/item",["outlayer/outlayer"],t):(n.Isotope=n.Isotope||{},n.Isotope.Item=t(n.Outlayer))}(window),function(n){function t(n,t){function i(n){this.isotope=n;n&&(this.options=n.options[this.namespace],this.element=n.element,this.items=n.filteredItems,this.size=n.size)}return function(){function f(n){return function(){return t.prototype[n].apply(this.isotope,arguments)}}for(var r,u=["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout"],n=0,e=u.length;e>n;n++)r=u[n],i.prototype[r]=f(r)}(),i.prototype.needsVerticalResizeLayout=function(){var t=n(this.isotope.element),i=this.isotope.size&&t;
1return i&&t.innerHeight!==this.isotope.size.innerHeight},i.prototype._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},i.prototype.getColumnWidth=function(){this.getSegmentSize("column","Width")},i.prototype.getRowHeight=function(){this.getSegmentSize("row","Height")},i.prototype.getSegmentSize=function(n,t){var i=n+t,u="outer"+t,r;(this._getMeasurement(i,u),this[i])||(r=this.getFirstItemSize(),this[i]=r&&r[u]||this.isotope.size["inner"+t])},i.prototype.getFirstItemSize=function(){var t=this.isotope.filteredItems[0];return t&&t.element&&n(t.element)},i.prototype.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},i.prototype.getSize=function(){this.isotope.getSize();this.size=this.isotope.size},i.modes={},i.create=function(n,t){function r(){i.apply(this,arguments)}return r.prototype=new i,t&&(r.options=t),r.prototype.namespace=n,i.modes[n]=r,r},i}"function"==typeof define&&define.amd?define("isotope/js/layout-mode",["get-size/get-size","outlayer/outlayer"],t):(n.Isotope=n.Isotope||{},n.Isotope.LayoutMode=t(n.getSize,n.Outlayer))}(window),function(n){function t(n,t){var r=n.create("masonry");return r.prototype._resetLayout=function(){this.getSize();this._getMeasurement("columnWidth","outerWidth");this._getMeasurement("gutter","outerWidth");this.measureColumns();var n=this.cols;for(this.colYs=[];n--;)this.colYs.push(0);this.maxY=0},r.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var n=this.items[0],i=n&&n.element;this.columnWidth=i&&t(i).outerWidth||this.containerWidth}this.columnWidth+=this.gutter;this.cols=Math.floor((this.containerWidth+this.gutter)/this.columnWidth);this.cols=Math.max(this.cols,1)},r.prototype.getContainerWidth=function(){var i=this.options.isFitWidth?this.element.parentNode:this.element,n=t(i);this.containerWidth=n&&n.innerWidth},r.prototype._getItemLayoutPosition=function(n){n.getSize();var e=n.size.outerWidth%this.columnWidth,s=e&&1>e?"round":"ceil",t=Math[s](n.size.outerWidth/this.columnWidth);t=Math.min(t,this.cols);for(var r=this._getColGroup(t),u=Math.min.apply(Math,r),o=i(r,u),h={x:this.columnWidth*o,y:u},c=u+n.size.outerHeight,l=this.cols+1-r.length,f=0;l>f;f++)this.colYs[o+f]=c;return h},r.prototype._getColGroup=function(n){var r;if(2>n)return this.colYs;for(var i=[],u=this.cols+1-n,t=0;u>t;t++)r=this.colYs.slice(t,t+n),i[t]=Math.max.apply(Math,r);return i},r.prototype._manageStamp=function(n){var e=t(n),u=this._getElementOffset(n),o=this.options.isOriginLeft?u.left:u.right,s=o+e.outerWidth,f=Math.floor(o/this.columnWidth),i,h,r;for(f=Math.max(0,f),i=Math.floor(s/this.columnWidth),i-=s%this.columnWidth?0:1,i=Math.min(this.cols-1,i),h=(this.options.isOriginTop?u.top:u.bottom)+e.outerHeight,r=f;i>=r;r++)this.colYs[r]=Math.max(h,this.colYs[r])},r.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var n={height:this.maxY};return this.options.isFitWidth&&(n.width=this._getContainerFitWidth()),n},r.prototype._getContainerFitWidth=function(){for(var n=0,t=this.cols;--t&&0===this.colYs[t];)n++;return(this.cols-n)*this.columnWidth-this.gutter},r.prototype.needsResizeLayout=function(){var n=this.containerWidth;return this.getContainerWidth(),n!==this.containerWidth},r}var i=Array.prototype.indexOf?function(n,t){return n.indexOf(t)}:function(n,t){for(var u,i=0,r=n.length;r>i;i++)if(u=n[i],u===t)return i;return-1};"function"==typeof define&&define.amd?define("masonry/masonry",["outlayer/outlayer","get-size/get-size"],t):n.Masonry=t(n.Outlayer,n.getSize)}(window),function(n){function i(n,t){for(var i in t)n[i]=t[i];return n}function t(n,t){var r=n.create("masonry"),e=r.prototype._getElementOffset,o=r.prototype.layout,s=r.prototype._getMeasurement,u,f;return i(r.prototype,t.prototype),r.prototype._getElementOffset=e,r.prototype.layout=o,r.prototype._getMeasurement=s,u=r.prototype.measureColumns,r.prototype.measureColumns=function(){this.items=this.isotope.filteredItems;u.call(this)},f=r.prototype._manageStamp,r.prototype._manageStamp=function(){this.options.isOriginLeft=this.isotope.options.isOriginLeft;this.options.isOriginTop=this.isotope.options.isOriginTop;f.apply(this,arguments)},r}"function"==typeof define&&define.amd?define("isotope/js/layout-modes/masonry",["../layout-mode","masonry/masonry"],t):t(n.Isotope.LayoutMode,n.Masonry)}(window),function(n){function t(n){var t=n.create("fitRows");return t.prototype._resetLayout=function(){this.x=0;this.y=0;this.maxY=0},t.prototype._getItemLayoutPosition=function(n){n.getSize();0!==this.x&&n.size.outerWidth+this.x>this.isotope.size.innerWidth&&(this.x=0,this.y=this.maxY);var t={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+n.size.outerHeight),this.x+=n.size.outerWidth,t},t.prototype._getContainerSize=function(){return{height:this.maxY}},t}"function"==typeof define&&define.amd?define("isotope/js/layout-modes/fit-rows",["../layout-mode"],t):t(n.Isotope.LayoutMode)}(window),function(n){function t(n){var t=n.create("vertical",{horizontalAlignment:0});return t.prototype._resetLayout=function(){this.y=0},t.prototype._getItemLayoutPosition=function(n){n.getSize();var t=(this.isotope.size.innerWidth-n.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=n.size.outerHeight,{x:t,y:i}},t.prototype._getContainerSize=function(){return{height:this.y}},t}"function"==typeof define&&define.amd?define("isotope/js/layout-modes/vertical",["../layout-mode"],t):t(n.Isotope.LayoutMode)}(window),function(n){function u(n,t){for(var i in t)n[i]=t[i];return n}function f(n){return"[object Array]"===c.call(n)}function t(n){var t=[],i,r;if(f(n))t=n;else if(n&&"number"==typeof n.length)for(i=0,r=n.length;r>i;i++)t.push(n[i]);else t.push(n);return t}function e(n,t){var i=l(t,n);-1!==i&&t.splice(i,1)}function i(n,i,f,s,c){function y(n,t){return function(i,r){for(var h,c,u=0,s=n.length;s>u;u++){var f=n[u],e=i.sortData[f],o=r.sortData[f];
1if(e>o||o>e)return h=void 0!==t[f]?t[f]:t,c=h?1:-1,(e>o?1:-1)*c}return 0}}var l=n.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0}),a,v;return l.Item=s,l.LayoutMode=c,l.prototype._create=function(){this.itemGUID=0;this._sorters={};this._getSorters();n.prototype._create.call(this);this.modes={};this.filteredItems=this.items;this.sortHistory=["original-order"];for(var t in c.modes)this._initLayoutMode(t)},l.prototype.reloadItems=function(){this.itemGUID=0;n.prototype.reloadItems.call(this)},l.prototype._itemize=function(){for(var r,t=n.prototype._itemize.apply(this,arguments),i=0,u=t.length;u>i;i++)r=t[i],r.id=this.itemGUID++;return this._updateItemsSortData(t),t},l.prototype._initLayoutMode=function(n){var t=c.modes[n],i=this.options[n]||{};this.options[n]=t.options?u(t.options,i):i;this.modes[n]=new t(this)},l.prototype.layout=function(){return!this._isLayoutInited&&this.options.isInitLayout?(this.arrange(),void 0):(this._layout(),void 0)},l.prototype._layout=function(){var n=this._getIsInstant();this._resetLayout();this._manageStamps();this.layoutItems(this.filteredItems,n);this._isLayoutInited=!0},l.prototype.arrange=function(n){this.option(n);this._getIsInstant();this.filteredItems=this._filter(this.items);this._sort();this._layout()},l.prototype._init=l.prototype.arrange,l.prototype._getIsInstant=function(){var n=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;return this._isInstant=n,n},l.prototype._filter=function(n){function e(){f.reveal(s);f.hide(h)}var r=this.options.filter,t,i,f;r=r||"*";for(var o=[],s=[],h=[],c=this._getFilterTest(r),u=0,l=n.length;l>u;u++)t=n[u],t.isIgnored||(i=c(t),i&&o.push(t),i&&t.isHidden?s.push(t):i||t.isHidden||h.push(t));return f=this,this._isInstant?this._noTransition(e):e(),o},l.prototype._getFilterTest=function(n){return r&&this.options.isJQueryFiltering?function(t){return r(t.element).is(n)}:"function"==typeof n?function(t){return n(t.element)}:function(t){return f(t.element,n)}},l.prototype.updateSortData=function(n){this._getSorters();n=t(n);var i=this.getItems(n);i=i.length?i:this.items;this._updateItemsSortData(i)},l.prototype._getSorters=function(){var t=this.options.getSortData,n,i;for(n in t)i=t[n],this._sorters[n]=a(i)},l.prototype._updateItemsSortData=function(n){for(var r,t=0,i=n.length;i>t;t++)r=n[t],r.updateSortData()}
1,a=function(){function n(n){if("string"!=typeof n)return n;var i=o(n).split(" "),r=i[0],u=r.match(/^\[(.+)\]$/),s=u&&u[1],f=t(s,r),e=l.sortDataParsers[i[1]];return e?function(n){return n&&e(f(n))}:function(n){return n&&f(n)}}function t(n,t){return n?function(t){return t.getAttribute(n)}:function(n){var i=n.querySelector(t);return i&&h(i)}}return n}(),l.sortDataParsers={parseInt:function(n){return parseInt(n,10)},parseFloat:function(n){return parseFloat(n)}},l.prototype._sort=function(){var n=this.options.sortBy,t,i;n&&(t=[].concat.apply(n,this.sortHistory),i=y(t,this.options.sortAscending),this.filteredItems.sort(i),n!==this.sortHistory[0]&&this.sortHistory.unshift(n))},l.prototype._mode=function(){var n=this.options.layoutMode,t=this.modes[n];if(!t)throw Error("No layout mode: "+n);return t.options=this.options[n],t},l.prototype._resetLayout=function(){n.prototype._resetLayout.call(this);this._mode()._resetLayout()},l.prototype._getItemLayoutPosition=function(n){return this._mode()._getItemLayoutPosition(n)},l.prototype._manageStamp=function(n){this._mode()._manageStamp(n)},l.prototype._getContainerSize=function(){return this._mode()._getContainerSize()},l.prototype.needsResizeLayout=function(){return this._mode().needsResizeLayout()},l.prototype.appended=function(n){var t=this.addItems(n),i;t.length&&(i=this._filterRevealAdded(t),this.filteredItems=this.filteredItems.concat(i))},l.prototype.prepended=function(n){var t=this._itemize(n),i,r;t.length&&(i=this.items.slice(0),this.items=t.concat(i),this._resetLayout(),this._manageStamps(),r=this._filterRevealAdded(t),this.layoutItems(i),this.filteredItems=r.concat(this.filteredItems))},l.prototype._filterRevealAdded=function(n){var t=this._noTransition(function(){return this._filter(n)});return this.layoutItems(t,!0),this.reveal(t),n},l.prototype.insert=function(n){var i=this.addItems(n),t,f,r,u;if(i.length){for(r=i.length,t=0;r>t;t++)f=i[t],this.element.appendChild(f.element);for(u=this._filter(i),this._noTransition(function(){this.hide(u)}),t=0;r>t;t++)i[t].isLayoutInstant=!0;for(this.arrange(),t=0;r>t;t++)delete i[t].isLayoutInstant;this.reveal(u)}},v=l.prototype.remove,l.prototype.remove=function(n){var i,r,u,f;if(n=t(n),i=this.getItems(n),v.call(this,n),i&&i.length)for(r=0,u=i.length;u>r;r++)f=i[r],e(f,this.filteredItems)},l.prototype.shuffle=function(){for(var i,n=0,t=this.items.length;t>n;n++)i=this.items[n],i.sortData.random=Math.random();this.options.sortBy="random";this._sort();this._layout()},l.prototype._noTransition=function(n){var i=this.options.transitionDuration,t;return this.options.transitionDuration=0,t=n.call(this),this.options.transitionDuration=i,t},l.prototype.getFilteredItemElements=function(){for(var t=[],n=0,i=this.filteredItems.length;i>n;n++)t.push(this.filteredItems[n].element);return t},l}var r=n.jQuery,o=String.prototype.trim?function(n){return n.trim()}:function(n){return n.replace(/^\s+|\s+$/g,"")},s=document.documentElement,h=s.textContent?function(n){return n.textContent}:function(n){return n.innerText},c=Object.prototype.toString,l=Array.prototype.indexOf?function(n,t){return n.indexOf(t)}:function(n,t){for(var i=0,r=n.length;r>i;i++)if(n[i]===t)return i;return-1};"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","matches-selector/matches-selector","isotope/js/item","isotope/js/layout-mode","isotope/js/layout-modes/masonry","isotope/js/layout-modes/fit-rows","isotope/js/layout-modes/vertical"],i):n.Isotope=i(n.Outlayer,n.getSize,n.matchesSelector,n.Isotope.Item,n.Isotope.LayoutMode)}(window),function(){function t(){}function r(n,t){for(var i=n.length;i--;)if(n[i].listener===t)return i;return-1}function i(n){return function(){return this[n].apply(this,arguments)}}var n=t.prototype,u=this,f=u.EventEmitter;n.getListeners=function(n){var r,t,i=this._getEvents();if("object"==typeof n){r={};for(t in i)i.hasOwnProperty(t)&&n.test(t)&&(r[t]=i[t])}else r=i[n]||(i[n]=[]);return r};n.flattenListeners=function(n){for(var i=[],t=0;n.length>t;t+=1)i.push(n[t].listener);return i};n.getListenersAsObject=function(n){var t,i=this.getListeners(n);return i instanceof Array&&(t={},t[n]=i),t||i};n.addListener=function(n,t){var i,u=this.getListenersAsObject(n),f="object"==typeof t;for(i in u)u.hasOwnProperty(i)&&-1===r(u[i],t)&&u[i].push(f?t:{listener:t,once:!1});return this};n.on=i("addListener");n.addOnceListener=function(n,t){return this.addListener(n,{listener:t,once:!0})};n.once=i("addOnceListener");n.defineEvent=function(n){return this.getListeners(n),this};n.defineEvents=function(n){for(var t=0;n.length>t;t+=1)this.defineEvent(n[t]);return this};n.removeListener=function(n,t){var f,i,u=this.getListenersAsObject(n);for(i in u)u.hasOwnProperty(i)&&(f=r(u[i],t),-1!==f&&u[i].splice(f,1));return this};n.off=i("removeListener");n.addListeners=function(n,t){return this.manipulateListeners(!1,n,t)};n.removeListeners=function(n,t){return this.manipulateListeners(!0,n,t)};n.manipulateListeners=function(n,t,i){var r,u,f=n?this.removeListener:this.addListener,e=n?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(r=i.length;r--;)f.call(this,t,i[r]);else for(r in t)t.hasOwnProperty(r)&&(u=t[r])&&("function"==typeof u?f.call(this,r,u):e.call(this,r,u));return this};n.removeEvent=function(n){var t,r=typeof n,i=this._getEvents();if("string"===r)delete i[n];else if("object"===r)for(t in i)i.hasOwnProperty(t)&&n.test(t)&&delete i[t];else delete this._events;return this};n.removeAllListeners=i("removeEvent");n.emitEvent=function(n,t){var i,f,r,e,u=this.getListenersAsObject(n);for(r in u)if(u.hasOwnProperty(r))for(f=u[r].length;f--;)i=u[r][f],i.once===!0&&this.removeListener(n,i.listener),e=i.listener.apply(this,t||[]),e===this._getOnceReturnValue()&&this.removeListener(n,i.listener);return this};n.trigger=i("emitEvent");
1n.emit=function(n){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(n,t)};n.setOnceReturnValue=function(n){return this._onceReturnValue=n,this};n._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0};n._getEvents=function(){return this._events||(this._events={})};t.noConflict=function(){return u.EventEmitter=f,t};"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return t}):"object"==typeof module&&module.exports?module.exports=t:this.EventEmitter=t}.call(this),function(n){function f(t){var i=n.event;return i.target=i.target||i.srcElement||t,i}var t=document.documentElement,r=function(){},i,u;t.addEventListener?r=function(n,t,i){n.addEventListener(t,i,!1)}:t.attachEvent&&(r=function(n,t,i){n[t+i]=i.handleEvent?function(){var t=f(n);i.handleEvent.call(i,t)}:function(){var t=f(n);i.call(n,t)};n.attachEvent("on"+t,n[t+i])});i=function(){};t.removeEventListener?i=function(n,t,i){n.removeEventListener(t,i,!1)}:t.detachEvent&&(i=function(n,t,i){n.detachEvent("on"+t,n[t+i]);try{delete n[t+i]}catch(r){n[t+i]=void 0}});u={bind:r,unbind:i};"function"==typeof define&&define.amd?define("eventie/eventie",u):n.eventie=u}(this),function(n,t){"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(i,r){return t(n,i,r)}):"object"==typeof exports?module.exports=t(n,require("wolfy87-eventemitter"),require("eventie")):n.imagesLoaded=t(n,n.EventEmitter,n.eventie)}(window,function(n,t,i){function s(n,t){for(var i in t)n[i]=t[i];return n}function c(n){return"[object Array]"===v.call(n)}function l(n){var t=[],i,r;if(c(n))t=n;else if("number"==typeof n.length)for(i=0,r=n.length;r>i;i++)t.push(n[i]);else t.push(n);return t}function r(n,t,i){if(!(this instanceof r))return new r(n,t);"string"==typeof n&&(n=document.querySelectorAll(n));this.elements=l(n);this.options=s({},this.options);"function"==typeof t?i=t:s(this.options,t);i&&this.on("always",i);this.getImages();f&&(this.jqDeferred=new f.Deferred);var u=this;setTimeout(function(){u.check()})}function e(n){this.img=n}function u(n){this.src=n;o[n]=this}var f=n.jQuery,h=n.console,a=h!==void 0,v=Object.prototype.toString,o;return r.prototype=new t,r.prototype.options={},r.prototype.getImages=function(){var i,u,n,t,e;for(this.images=[],i=0,u=this.elements.length;u>i;i++)if(n=this.elements[i],"IMG"===n.nodeName&&this.addImage(n),t=n.nodeType,t&&(1===t||9===t||11===t))for(var f=n.querySelectorAll("img"),r=0,o=f.length;o>r;r++)e=f[r],this.addImage(e)},r.prototype.addImage=function(n){var t=new e(n);this.images.push(t)},r.prototype.check=function(){function f(n,r){return t.options.debug&&a&&h.log("confirm",n,r),t.progress(n),u++,u===i&&t.complete(),!0}var t=this,u=0,i=this.images.length,n,r;if(this.hasAnyBroken=!1,!i)return this.complete(),void 0;for(n=0;i>n;n++)r=this.images[n],r.on("confirm",f),r.check()},r.prototype.progress=function(n){this.hasAnyBroken=this.hasAnyBroken||!n.isLoaded;var t=this;setTimeout(function(){t.emit("progress",t,n);t.jqDeferred&&t.jqDeferred.notify&&t.jqDeferred.notify(t,n)})},r.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done",n;this.isComplete=!0;n=this;setTimeout(function(){if(n.emit(t,n),n.emit("always",n),n.jqDeferred){var i=n.hasAnyBroken?"reject":"resolve";n.jqDeferred[i](n)}})},f&&(f.fn.imagesLoaded=function(n,t){var i=new r(this,n,t);return i.jqDeferred.promise(f(this))}),e.prototype=new t,e.prototype.check=function(){var n=o[this.img.src]||new u(this.img.src),t;if(n.isConfirmed)return this.confirm(n.isLoaded,"cached was confirmed"),void 0;if(this.img.complete&&void 0!==this.img.naturalWidth)return this.confirm(0!==this.img.naturalWidth,"naturalWidth"),void 0;t=this;n.on("confirm",function(n,i){return t.confirm(n.isLoaded,i),!0});n.check()},e.prototype.confirm=function(n,t){this.isLoaded=n;this.emit("confirm",this,t)},o={},u.prototype=new t,u.prototype.check=function(){if(!this.isChecked){var n=new Image;i.bind(n,"load",this);i.bind(n,"error",this);n.src=this.src;this.isChecked=!0}},u.prototype.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},u.prototype.onload=function(n){this.confirm(!0,"onload");this.unbindProxyEvents(n)},u.prototype.onerror=function(n){this.confirm(!1,"onerror");this.unbindProxyEvents(n)},u.prototype.confirm=function(n,t){this.isConfirmed=!0;this.isLoaded=n;
1this.emit("confirm",this,t)},u.prototype.unbindProxyEvents=function(n){i.unbind(n.target,"load",this);i.unbind(n.target,"error",this)},r}),function(n){var t,rt,h,o,w,c,wt,l="Close",bt="BeforeClose",ii="AfterClose",ri="BeforeAppend",ut="MarkupParse",ft="Open",kt="Change",et="mfp",u="."+et,b="mfp-ready",dt="mfp-removing",ot="mfp-prevent-close",k=function(){},st=!!window.jQuery,f=n(window),r=function(n,i){t.ev.on(et+n+u,i)},e=function(t,i,r,u){var f=document.createElement("div");return f.className="mfp-"+t,r&&(f.innerHTML=r),u?i&&i.appendChild(f):(f=n(f),i&&f.appendTo(i)),f},i=function(i,r){t.ev.triggerHandler(et+i,r);t.st.callbacks&&(i=i.charAt(0).toLowerCase()+i.slice(1),t.st.callbacks[i]&&t.st.callbacks[i].apply(t,n.isArray(r)?r:[r]))},ht=function(i){return i===wt&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=n(t.st.closeMarkup.replace("%title%",t.st.tClose)),wt=i),t.currTemplate.closeBtn},ct=function(){n.magnificPopup.instance||(t=new k,t.init(),n.magnificPopup.instance=t)},ui=function(){var n=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==n.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in n)return!0;return!1},v,d,g,nt,lt,s,ni,vt,ti,tt,pt,it;k.prototype={constructor:k,init:function(){var i=navigator.appVersion;t.isIE7=-1!==i.indexOf("MSIE 7.");t.isIE8=-1!==i.indexOf("MSIE 8.");t.isLowIE=t.isIE7||t.isIE8;t.isAndroid=/android/gi.test(i);t.isIOS=/iphone|ipad|ipod/gi.test(i);t.supportsTransition=ui();t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent);o=n(document);t.popupsCache={}},open:function(s){var l,a,w,k,v,d,y,g,p;if(h||(h=n(document.body)),s.isObj===!1){for(t.items=s.items.toArray(),t.index=0,w=s.items,l=0;w.length>l;l++)if(a=w[l],a.parsed&&(a=a.el[0]),a===s.el[0]){t.index=l;break}}else t.items=n.isArray(s.items)?s.items:[s.items],t.index=s.index||0;if(t.isOpen)return t.updateItemHTML(),void 0;for(t.types=[],c="",t.ev=s.mainEl&&s.mainEl.length?s.mainEl.eq(0):o,s.key?(t.popupsCache[s.key]||(t.popupsCache[s.key]={}),t.currTemplate=t.popupsCache[s.key]):t.currTemplate={},t.st=n.extend(!0,{},n.magnificPopup.defaults,s),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=e("bg").on("click"+u,function(){t.close()}),t.wrap=e("wrap").attr("tabindex",-1).on("click"+u,function(n){t._checkIfClose(n.target)&&t.close()}),t.container=e("container",t.wrap)),t.contentContainer=e("content"),t.st.preloader&&(t.preloader=e("preloader",t.container,t.st.tLoading)),k=n.magnificPopup.modules,l=0;k.length>l;l++)v=k[l],v=v.charAt(0).toUpperCase()+v.slice(1),t["init"+v].call(t);return i("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(r(ut,function(n,t,i,r){i.close_replaceWith=ht(r.type)}),c+=" mfp-close-btn-in"):t.wrap.append(ht())),t.st.alignTop&&(c+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:f.scrollTop(),position:"absolute"}),(t.st.fixedBgPos===!1||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:o.height(),position:"absolute"}),t.st.enableEscapeKey&&o.on("keyup"+u,function(n){27===n.keyCode&&t.close()}),f.on("resize"+u,function(){t.updateSize()}),t.st.closeOnContentClick||(c+=" mfp-auto-cursor"),c&&t.wrap.addClass(c),d=t.wH=f.height(),y={},t.fixedContentPos&&t._hasScrollBar(d)&&(g=t._getScrollbarSize(),g&&(y.marginRight=g)),t.fixedContentPos&&(t.isIE7?n("body, html").css("overflow","hidden"):y.overflow="hidden"),p=t.st.mainClass,t.isIE7&&(p+=" mfp-ie7"),p&&t._addClassToMFP(p),t.updateItemHTML(),i("BuildControls"),n("html").css(y),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||h),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP(b),t._setFocus()):t.bgOverlay.addClass(b);o.on("focusin"+u,t._onFocusIn)},16),t.isOpen=!0,t.updateSize(d),i(ft),s},close:function(){t.isOpen&&(i(bt),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(dt),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){var r,f;i(l);r=dt+" "+b+" ";(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(r+=t.st.mainClass+" "),t._removeClassFromMFP(r),t.fixedContentPos)&&(f={marginRight:""},t.isIE7?n("body, html").css("overflow",""):f.overflow="",n("html").css(f));o.off("keyup"+u+" focusin"+u);t.ev.off(u);t.wrap.attr("class","mfp-wrap").removeAttr("style");t.bgOverlay.attr("class","mfp-bg");t.container.attr("class","mfp-container");!t.st.showCloseBtn||t.st.closeBtnInside&&t.currTemplate[t.currItem.type]!==!0||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach();t._lastFocusedEl&&n(t._lastFocusedEl).focus();t.currItem=null;t.content=null;t.currTemplate=null;t.prevHeight=0;i(ii)},updateSize:function(n){if(t.isIOS){var u=document.documentElement.clientWidth/window.innerWidth,r=window.innerHeight*u;t.wrap.css("height",r);t.wH=r}else t.wH=n||f.height();t.fixedContentPos||t.wrap.css("height",t.wH);i("Resize")},updateItemHTML:function(){var u=t.items[t.index],r,f,e;t.contentContainer.detach();t.content&&t.content.detach();u.parsed||(u=t.parseEl(t.index));r=u.type;(i("BeforeChange",[t.currItem?t.currItem.type:"",r]),t.currItem=u,t.currTemplate[r])||(f=t.st[r]?t.st[r].markup:!1,i("FirstMarkupParse",f),t.currTemplate[r]=f?n(f):!0);w&&w!==u.type&&t.container.removeClass("mfp-"+w+"-holder");e=t["get"+r.charAt(0).toUpperCase()+r.slice(1)](u,t.currTemplate[r]);t.appendContent(e,r);u.preloaded=!0;i(kt,u);w=u.type;t.container.prepend(t.contentContainer);i("AfterChange")},appendContent:function(n,r){t.content=n;n?t.st.showCloseBtn&&t.st.closeBtnInside&&t.currTemplate[r]===!0?t.content.find(".mfp-close").length||t.content.append(ht()):t.content=n:t.content="";i(ri);t.container.addClass("mfp-"+r+"-holder");t.contentContainer.append(t.content)},parseEl:function(r){var o,u=t.items[r],e,f;if(u.tagName?u={el:n(u)}:(o=u.type,u={data:u,src:u.src}),u.el){for(e=t.types,f=0;e.length>f;f++)if(u.el.hasClass("mfp-"+e[f])){o=e[f];break}u.src=u.el.attr("data-mfp-src");
1u.src||(u.src=u.el.attr("href"))}return u.type=o||t.st.type||"inline",u.index=r,u.parsed=!0,t.items[r]=u,i("ElementParse",u),t.items[r]},addGroup:function(n,i){var u=function(r){r.mfpEl=this;t._openClick(r,n,i)},r;i||(i={});r="click.magnificPopup";i.mainEl=n;i.items?(i.isObj=!0,n.off(r).on(r,u)):(i.isObj=!1,i.delegate?n.off(r).on(r,i.delegate,u):(i.items=n,n.off(r).on(r,u)))},_openClick:function(i,r,u){var o=void 0!==u.midClick?u.midClick:n.magnificPopup.defaults.midClick,e;if(o||2!==i.which&&!i.ctrlKey&&!i.metaKey){if(e=void 0!==u.disableOn?u.disableOn:n.magnificPopup.defaults.disableOn,e)if(n.isFunction(e)){if(!e.call(t))return!0}else if(e>f.width())return!0;i.type&&(i.preventDefault(),t.isOpen&&i.stopPropagation());u.el=n(i.mfpEl);u.delegate&&(u.items=r.find(u.delegate));t.open(u)}},updateStatus:function(n,r){if(t.preloader){rt!==n&&t.container.removeClass("mfp-s-"+rt);r||"loading"!==n||(r=t.st.tLoading);var u={status:n,text:r};i("UpdateStatus",u);n=u.status;r=u.text;t.preloader.html(r);t.preloader.find("a").on("click",function(n){n.stopImmediatePropagation()});t.container.addClass("mfp-s-"+n);rt=n}},_checkIfClose:function(i){if(!n(i).hasClass(ot)){var r=t.st.closeOnContentClick,u=t.st.closeOnBgClick;if(r&&u||!t.content||n(i).hasClass("mfp-close")||t.preloader&&i===t.preloader[0])return!0;if(i===t.content[0]||n.contains(t.content[0],i)){if(r)return!0}else if(u&&n.contains(document,i))return!0;return!1}},_addClassToMFP:function(n){t.bgOverlay.addClass(n);t.wrap.addClass(n)},_removeClassFromMFP:function(n){this.bgOverlay.removeClass(n);t.wrap.removeClass(n)},_hasScrollBar:function(n){return(t.isIE7?o.height():document.body.scrollHeight)>(n||f.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(i){if(i.target!==t.wrap[0]&&!n.contains(t.wrap[0],i.target))return(t._setFocus(),!1)},_parseMarkup:function(t,r,f){var e;f.data&&(r=n.extend(f.data,r));i(ut,[t,r,f]);n.each(r,function(n,i){var r,f;if(void 0===i||i===!1)return!0;(e=n.split("_"),e.length>1)?(r=t.find(u+"-"+e[0]),r.length>0&&(f=e[1],"replaceWith"===f?r[0]!==i[0]&&r.replaceWith(i):"img"===f?r.is("img")?r.attr("src",i):r.replaceWith('<img src="'+i+'" class="'+r.attr("class")+'" />'):r.attr(e[1],i))):t.find(u+"-"+n).html(i)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var n=document.createElement("div");n.id="mfp-sbm";n.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;";document.body.appendChild(n);t.scrollbarSize=n.offsetWidth-n.clientWidth;document.body.removeChild(n)}return t.scrollbarSize}};n.magnificPopup={instance:null,proto:k.prototype,modules:[],open:function(t,i){return ct(),t=t?n.extend(!0,{},t):{},t.isObj=!0,t.index=i||0,this.instance.open(t)},close:function(){return n.magnificPopup.instance&&n.magnificPopup.instance.close()},registerModule:function(t,i){i.options&&(n.magnificPopup.defaults[t]=i.options);n.extend(this.proto,i.proto);this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">×<\/button>',tClose:"Close (Esc)",tLoading:"Loading..."}};n.fn.magnificPopup=function(i){var r,u,f,e;return ct(),r=n(this),"string"==typeof i?"open"===i?(f=st?r.data("magnificPopup"):r[0].magnificPopup,e=parseInt(arguments[1],10)||0,f.items?u=f.items[e]:(u=r,f.delegate&&(u=u.find(f.delegate)),u=u.eq(e)),t._openClick({mfpEl:u},r,f)):t.isOpen&&t[i].apply(t,Array.prototype.slice.call(arguments,1)):(i=n.extend(!0,{},i),st?r.data("magnificPopup",i):r[0].magnificPopup=i,t.addGroup(r,i)),r};nt="inline";lt=function(){g&&(d.after(g.addClass(v)).detach(),g=null)};n.magnificPopup.registerModule(nt,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(nt);r(l+"."+nt,function(){lt()})},getInline:function(i,r){var f,u,o;
1return(lt(),i.src)?(f=t.st.inline,u=n(i.src),u.length?(o=u[0].parentNode,o&&o.tagName&&(d||(v=f.hiddenClass,d=e(v),v="mfp-"+v),g=u.after(d).detach().removeClass(v)),t.updateStatus("ready")):(t.updateStatus("error",f.tNotFound),u=n("<div>")),i.inlineElement=u,u):(t.updateStatus("ready"),t._parseMarkup(r,{},i),r)}}});var y,p="ajax",at=function(){y&&h.removeClass(y)},gt=function(){at();t.req&&t.req.abort()};n.magnificPopup.registerModule(p,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content<\/a> could not be loaded.'},proto:{initAjax:function(){t.types.push(p);y=t.st.ajax.cursor;r(l+"."+p,gt);r("BeforeChange."+p,gt)},getAjax:function(r){y&&h.addClass(y);t.updateStatus("loading");var u=n.extend({url:r.src,success:function(u,f,e){var o={data:u,xhr:e};i("ParseAjax",o);t.appendContent(n(o.data),p);r.finished=!0;at();t._setFocus();setTimeout(function(){t.wrap.addClass(b)},16);t.updateStatus("ready");i("AjaxContentAdded")},error:function(){at();r.finished=r.loadError=!0;t.updateStatus("error",t.st.ajax.tError.replace("%url%",r.src))}},t.st.ajax.settings);return t.req=n.ajax(u),""}}});ni=function(i){if(i.data&&void 0!==i.data.title)return i.data.title;
1var r=t.st.image.titleSrc;if(r){if(n.isFunction(r))return r.call(t,i);if(i.el)return i.el.attr(r)||""}return""};n.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"><\/div><figure><div class="mfp-img"><\/div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"><\/div><div class="mfp-counter"><\/div><\/div><\/figcaption><\/figure><\/div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image<\/a> could not be loaded.'},proto:{initImage:function(){var n=t.st.image,i=".image";t.types.push("image");r(ft+i,function(){"image"===t.currItem.type&&n.cursor&&h.addClass(n.cursor)});r(l+i,function(){n.cursor&&h.removeClass(n.cursor);f.off("resize"+u)});r("Resize"+i,t.resizeImage);t.isLowIE&&r("AfterChange",t.resizeImage)},resizeImage:function(){var n=t.currItem,i;n&&n.img&&t.st.image.verticalFit&&(i=0,t.isLowIE&&(i=parseInt(n.img.css("padding-top"),10)+parseInt(n.img.css("padding-bottom"),10)),n.img.css("max-height",t.wH-i))},_onImageHasSize:function(n){n.img&&(n.hasSize=!0,s&&clearInterval(s),n.isCheckingImgSize=!1,i("ImageHasSize",n),n.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),n.imgHidden=!1))},findImageSize:function(n){var i=0,u=n.img[0],r=function(f){s&&clearInterval(s);s=setInterval(function(){return u.naturalWidth>0?(t._onImageHasSize(n),void 0):(i>200&&clearInterval(s),i++,3===i?r(10):40===i?r(50):100===i&&r(500),void 0)},f)};r(1)},getImage:function(r,u){var e=0,o=function(){r&&(r.img[0].complete?(r.img.off(".mfploader"),r===t.currItem&&(t._onImageHasSize(r),t.updateStatus("ready")),r.hasSize=!0,r.loaded=!0,i("ImageLoadComplete")):(e++,200>e?setTimeout(o,100):h()))},h=function(){r&&(r.img.off(".mfploader"),r===t.currItem&&(t._onImageHasSize(r),t.updateStatus("error",c.tError.replace("%url%",r.src))),r.hasSize=!0,r.loaded=!0,r.loadError=!0)},c=t.st.image,l=u.find(".mfp-img"),f;return l.length&&(f=document.createElement("img"),f.className="mfp-img",r.img=n(f).on("load.mfploader",o).on("error.mfploader",h),f.src=r.src,l.is("img")&&(r.img=r.img.clone()),f=r.img[0],f.naturalWidth>0?r.hasSize=!0:f.width||(r.hasSize=!1)),t._parseMarkup(u,{title:ni(r),img_replaceWith:r.img},r),t.resizeImage(),r.hasSize?(s&&clearInterval(s),r.loadError?(u.addClass("mfp-loading"),t.updateStatus("error",c.tError.replace("%url%",r.src))):(u.removeClass("mfp-loading"),t.updateStatus("ready")),u):(t.updateStatus("loading"),r.loading=!0,r.hasSize||(r.imgHidden=!0,u.addClass("mfp-loading"),t.findImageSize(r)),u)}}});ti=function(){return void 0===vt&&(vt=void 0!==document.createElement("p").style.MozTransform),vt};n.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(n){return n.is("img")?n:n.find("img")}},proto:{initZoom:function(){var u,f=t.st.zoom,o=".zoom";if(f.enabled&&t.supportsTransition){var e,n,h=f.duration,c=function(n){var r=n.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),u="all "+f.duration/1e3+"s "+f.easing,t={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},i="transition";return t["-webkit-"+i]=t["-moz-"+i]=t["-o-"+i]=t[i]=u,r.css(t),r},s=function(){t.content.css("visibility","visible")};r("BuildControls"+o,function(){if(t._allowZoom()){if(clearTimeout(e),t.content.css("visibility","hidden"),u=t._getItemToZoom(),!u)return s(),void 0;n=c(u);n.css(t._getOffset());t.wrap.append(n);e=setTimeout(function(){n.css(t._getOffset(!0));e=setTimeout(function(){s();setTimeout(function(){n.remove();u=n=null;i("ZoomAnimationEnded")},16)},h)},16)}});r(bt+o,function(){if(t._allowZoom()){if(clearTimeout(e),t.st.removalDelay=h,!u){if(u=t._getItemToZoom(),!u)return;n=c(u)}n.css(t._getOffset(!0));t.wrap.append(n);t.content.css("visibility","hidden");setTimeout(function(){n.css(t._getOffset())},16)}});r(l+o,function(){t._allowZoom()&&(s(),n&&n.remove(),u=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return t.currItem.hasSize?t.currItem.img:!1},_getOffset:function(i){var r,u;r=i?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem);var f=r.offset(),e=parseInt(r.css("padding-top"),10),o=parseInt(r.css("padding-bottom"),10);return f.top-=n(window).scrollTop()-e,u={width:r.width(),height:(st?r.innerHe
1ight():r[0].offsetHeight)-o-e},ti()?u["-moz-transform"]=u.transform="translate("+f.left+"px,"+f.top+"px)":(u.left=f.left,u.top=f.top),u}}});var a="iframe",fi="//about:blank",yt=function(n){if(t.currTemplate[a]){var i=t.currTemplate[a].find("iframe");i.length&&(n||(i[0].src=fi),t.isIE8&&i.css("display",n?"block":"none"))}};n.magnificPopup.registerModule(a,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"><\/div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen><\/iframe><\/div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push(a);r("BeforeChange",function(n,t,i){t!==i&&(t===a?yt():i===a&&yt(!0))});r(l+"."+a,function(){yt()})},getIframe:function(i,r){var u=i.src,f=t.st.iframe,e;return n.each(f.patterns,function(){if(u.indexOf(this.index)>-1)return(this.id&&(u="string"==typeof this.id?u.substr(u.lastIndexOf(this.id)+this.id.length,u.length):this.id.call(this,u)),u=this.src.replace("%id%",u),!1)}),e={},f.srcAction&&(e[f.srcAction]=u),t._parseMarkup(r,e,i),t.updateStatus("ready"),r}}});tt=function(n){var i=t.items.length;return n>i-1?n-i:0>n?i+n:n};pt=function(n,t,i){return n.replace(/%curr%/gi,t+1).replace(/%total%/gi,i)};n.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"><\/button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var u=t.st.gallery,i=".mfp-gallery",f=Boolean(n.fn.mfpFastClick);return t.direction=!0,u&&u.enabled?(c+=" mfp-gallery",r(ft+i,function(){u.navigateByImgClick&&t.wrap.on("click"+i,".mfp-img",function(){if(t.items.length>1)return(t.next(),!1)});o.on("keydown"+i,function(n){37===n.keyCode?t.prev():39===n.keyCode&&t.next()})}),r("UpdateStatus"+i,function(n,i){i.text&&(i.text=pt(i.text,t.currItem.index,t.items.length))}),r(ut+i,function(n,i,r,f){var e=t.items.length;r.counter=e>1?pt(u.tCounter,f.index,e):""}),r("BuildControls"+i,function(){if(t.items.length>1&&u.arrows&&!t.arrowLeft){var o=u.arrowMarkup,i=t.arrowLeft=n(o.replace(/%title%/gi,u.tPrev).replace(/%dir%/gi,"left")).addClass(ot),r=t.arrowRight=n(o.replace(/%title%/gi,u.tNext).replace(/%dir%/gi,"right")).addClass(ot),s=f?"mfpFastClick":"click";i[s](function(){t.prev()});r[s](function(){t.next()});t.isIE7&&(e("b",i[0],!1,!0),e("a",i[0],!1,!0),e("b",r[0],!1,!0),e("a",r[0],!1,!0));t.container.append(i.add(r))}}),r(kt+i,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout);t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages();t._preloadTimeout=null},16)}),r(l+i,function(){o.off(i);t.wrap.off("click"+i);t.arrowLeft&&f&&t.arrowLeft.add(t.arrowRight).destroyMfpFastClick();t.arrowRight=t.arrowLeft=null}),void 0):!1},next:function(){t.direction=!0;t.index=tt(t.index+1);t.updateItemHTML()},prev:function(){t.direction=!1;t.index=tt(t.index-1);t.updateItemHTML()},goTo:function(n){t.direction=n>=t.index;t.index=n;t.updateItemHTML()},preloadNearbyImages:function(){for(var i=t.st.gallery.preload,r=Math.min(i[0],t.items.length),u=Math.min(i[1],t.items.length),n=1;(t.direction?u:r)>=n;n++)t._preloadItem(t.index+n);for(n=1;(t.direction?r:u)>=n;n++)t._preloadItem(t.index-n)},_preloadItem:function(r){if(r=tt(r),!t.items[r].preloaded){var u=t.items[r];u.parsed||(u=t.parseEl(r));i("LazyLoad",u);"image"===u.type&&(u.img=n('<img class="mfp-img" />').on("load.mfploader",function(){u.hasSize=!0}).on("error.mfploader",function(){u.hasSize=!0;u.loadError=!0;i("LazyLoadError",u)}).attr("src",u.src));u.preloaded=!0}}}});it="retina";n.magnificPopup.registerModule(it,{options:{replaceSrc:function(n){return n.src.replace(/\.\w+$/,function(n){return"@2x"+n})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var i=t.st.retina,n=i.ratio;n=isNaN(n)?n():n;n>1&&(r("ImageHasSize."+it,function(t,i){i.img.css({"max-width":i.img[0].naturalWi
1dth/n,width:"100%"})}),r("ElementParse."+it,function(t,r){r.src=i.replaceSrc(r,n)}))}}}}),function(){var u=1e3,i="ontouchstart"in window,r=function(){f.off("touchmove"+t+" touchend"+t)},t=".mfpFastClick";n.fn.mfpFastClick=function(e){return n(this).each(function(){var s,l=n(this),a,v,y,h,o,c;if(i)l.on("touchstart"+t,function(n){h=!1;c=1;o=n.originalEvent?n.originalEvent.touches[0]:n.touches[0];v=o.clientX;y=o.clientY;f.on("touchmove"+t,function(n){o=n.originalEvent?n.originalEvent.touches:n.touches;c=o.length;o=o[0];(Math.abs(o.clientX-v)>10||Math.abs(o.clientY-y)>10)&&(h=!0,r())}).on("touchend"+t,function(n){r();h||c>1||(s=!0,n.preventDefault(),clearTimeout(a),a=setTimeout(function(){s=!1},u),e())})});l.on("click"+t,function(){s||e()})})};n.fn.destroyMfpFastClick=function(){n(this).off("touchstart"+t+" click"+t);i&&f.off("touchmove"+t+" touchend"+t)}}();ct()}(window.jQuery||window.Zepto);"function"!=typeof Object.create&&(Object.create=function(n){function t(){}return t.prototype=n,new t}); 2/** 3 * Owl carousel 4 * @version 2.0.0 5 * @author Bartosz Wojciechowski 6 * @license The MIT License (MIT) 7 * @todo Lazy Load Icon 8 * @todo prevent animationend bubling 9 * @todo itemsScaleUp 10 * @todo Test Zepto 11 * @todo stagePadding calculate wrong active classes 12 */ 13(function(n,t,i,r){function u(t,i){this.settings=null;this.options=n.extend({},u.Defaults,i);this.$element=n(t);this.drag=n.extend({},o);this.state=n.extend({},s);this.e=n.extend({},h);this._plugins={};this._supress={};this._current=null;this._speed=null;this._coordinates=[];this._breakpoint=null;this._width=null;this._items=[];this._clones=[];this._mergers=[];this._invalidated={};this._pipe=[];n.each(u.Plugins,n.proxy(function(n,t){this._plugins[n[0].toLowerCase()+n.slice(1)]=new t(this)},this));n.each(u.Pipe,n.proxy(function(t,i){this._pipe.push({filter:i.filter,run:n.proxy(i.run,this)})},this));this.setup();this.initialize()}function f(n){if(n.touches!==r)return{x:n.touches[0].pageX,y:n.touches[0].pageY};if(n.touches===r){if(n.pageX!==r)return{x:n.pageX,y:n.pageY};if(n.pageX===r)return{x:n.clientX,y:n.clientY}}}function e(n){var t,r,u=i.createElement("div"),f=n;for(t in f)if(r=f[t],typeof u.style[r]!="undefined")return u=null,[r,t];return[!1]}function c(){return e(["transition","WebkitTransition","MozTransition","OTransition"])[1]}function l(){return e(["transform","WebkitTransform","MozTransform","OTransform","msTransform"])[0]}function a(){return e(["perspective","webkitPerspective","MozPerspective","OPerspective","MsPerspective"])[0]}function v(){return"ontouchstart"in t||!!navigator.msMaxTouchPoints}function y(){return t.navigator.msPointerEnabled}var o,s,h;o={start:0,startX:0,startY:0,current:0,currentX:0,currentY:0,offsetX:0,offsetY:0,distance:null,startTime:0,endTime:0,updatedX:0,targetEl:null};s={isTouch:!1,isScrolling:!1,isSwiping:!1,direction:!1,inMotion:!1};h={_onDragStart:null,_onDragMove:null,_onDragEnd:null,_transitionEnd:null,_resizer:null,_responsiveCall:null,_goToLoop:null,_checkVisibile:null};u.Defaults={items:3,loop:!1,center:!1,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:t,responsiveClass:!1,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",themeClass:"owl-theme",baseClass:"owl-carousel",itemClass:"owl-item",centerClass:"center",activeClass:"active"};u.Width={Default:"default",Inner:"inner",Outer:"outer"};u.Plugins={};u.Pipe=[{filter:["width","items","settings"],run:function(n){n.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){var n=this._clones,t=this.$stage.children(".cloned");(t.length!==n.length||!this.settings.loop&&n.length>0)&&(this.$stage.children(".cloned").remove(),this._clones=[])}},{filter:["items","settings"],run:function(){for(var n=this._clones,t=this._items,u=this.settings.loop?n.length-Math.max(this.settings.items*2,4):0,i=0,r=Math.abs(u/2);i<r;i++)u>0?(this.$stage.children().eq(t.length+n.length-1).remove(),n.pop(),this.$stage.children().eq(0).remove(),n.pop()):(n.push(n.length/2),this.$stage.append(t[n[n.length-1]].clone().addClass("cloned")),n.push(t.length-1-(n.length-1)/2),this.$stage.prepend(t[n[n.length-1]].clone().addClass("cloned")))}},{filter:["width","items","settings"],run:function(){var u=this.settings.rtl?1:-1,f=(this.width()/this.settings.items).toFixed(3),i=0,n,t,r;for(this._coordinates=[],t=0,r=this._clones.length+this._items.length;t<r;t++)n=this._mergers[this.relative(t)],n=this.settings.mergeFit&&Math.min(n,this.settings.items)||n,i+=(this.settings.autoWidth?this._items[this.relative(t)].width()+this.settings.margin:f*n)*u,this._coordinates.push(i)}},{filter:["width","items","settings"],run:function(){var t,r,u=(this.width()/this.settings.items).toFixed(3),i={width:Math.abs(this._coordinates[this._coordinates.length-1])+this.settings.stagePadding*2,"padding-left":this.settings.stagePadding||"","padding-right":this.settings.stagePadding||""};if(this.$stage.css(i),i={width:this.settings.autoWidth?"auto":u-this.settings.margin},i[this.settings.rtl?"margin-left":"margin-right"]=this.settings.margin,!this.settings.autoWidth&&n.grep(this._mergers,function(n){return n>1}
13).length>0)for(t=0,r=this._coordinates.length;t<r;t++)i.width=Math.abs(this._coordinates[t])-Math.abs(this._coordinates[t-1]||0)-this.settings.margin,this.$stage.children().eq(t).css(i);else this.$stage.children().css(i)}},{filter:["width","items","settings"],run:function(n){n.current&&this.reset(this.$stage.children().index(n.current))}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){for(var u=this.settings.rtl?1:-1,f=this.settings.stagePadding*2,t=this.coordinates(this.current())+f,e=t+this.width()*u,i,r,o=[],n=0,s=this._coordinates.length;n<s;n++)i=this._coordinates[n-1]||0,r=Math.abs(this._coordinates[n])+f*u,(this.op(i,"<=",t)&&this.op(i,">",e)||this.op(r,"<",t)&&this.op(r,">",e))&&o.push(n);this.$stage.children("."+this.settings.activeClass).removeClass(this.settings.activeClass);this.$stage.children(":eq("+o.join("), :eq(")+")").addClass(this.settings.activeClass);this.settings.center&&(this.$stage.children("."+this.settings.centerClass).removeClass(this.settings.centerClass),this.$stage.children().eq(this.current()).addClass(this.settings.centerClass))}}];u.prototype.initialize=function(){if(this.trigger("initialize"),this.$element.addClass(this.settings.baseClass).addClass(this.settings.themeClass).toggleClass("owl-rtl",this.settings.rtl),this.browserSupport(),this.settings.autoWidth&&this.state.imagesLoaded!==!0){var t,i,u;if(t=this.$element.find("img"),i=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:r,u=this.$element.children(i).width(),t.length&&u<=0)return this.preloadAutoWidthImages(t),!1}this.$element.addClass("owl-loading");this.$stage=n("<"+this.settings.stageElement+' class="owl-stage"/>').wrap('<div class="owl-stage-outer">');this.$element.append(this.$stage.parent());this.replace(this.$element.children().not(this.$stage.parent()));this._width=this.$element.width();this.refresh();this.$element.removeClass("owl-loading").addClass("owl-loaded");this.eventsCall();this.internalEvents();this.addTriggerableEvents();this.trigger("initialized")};u.prototype.setup=function(){var u=this.viewport(),r=this.options.responsive,t=-1,i=null;r?(n.each(r,function(n){n<=u&&n>t&&(t=Number(n))}),i=n.extend({},this.options,r[t]),delete i.responsive,i.responsiveClass&&this.$element.attr("class",function(n,t){return t.replace(/\b owl-responsive-\S+/g,"")}).addClass("owl-responsive-"+t)):i=n.extend({},this.options);(this.settings===null||this._breakpoint!==t)&&(this.trigger("change",{property:{name:"settings",value:i}}),this._breakpoint=t,this.settings=i,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}}))};u.prototype.optionsLogic=function(){this.$element.toggleClass("owl-center",this.settings.center);this.settings.loop&&this._items.length<this.settings.items&&(this.settings.loop=!1);this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)};u.prototype.prepare=function(t){var i=this.trigger("prepare",{content:t});return i.data||(i.data=n("<"+this.settings.itemElement+"/>").addClass(this.settings.itemClass).append(t)),this.trigger("prepared",{content:i.data}),i.data};u.prototype.update=function(){for(var t=0,i=this._pipe.length,r=n.proxy(function(n){return this[n]},this._invalidated),u={};t<i;)(this._invalidated.all||n.grep(this._pipe[t].filter,r).length>0)&&this._pipe[t].run(u),t++;this._invalidated={}};u.prototype.width=function(n){n=n||u.Width.Default;switch(n){case u.Width.Inner:case u.Width.Outer:return this._width;default:return this._width-this.settings.stagePadding*2+this.settings.margin}};u.prototype.refresh=function(){if(this._items.length===0)return!1;var n=(new Date).getTime();this.trigger("refresh");this.setup();this.optionsLogic();this.$stage.addClass("owl-refresh");this.update();this.$stage.removeClass("owl-refresh");this.state.orientation=t.orientation;this.watchVisibility();this.trigger("refreshed")};u.prototype.eventsCall=function(){this.e._onDragStart=n.proxy(function(n){this.onDragStart(n)},this);this.e._onDragMove=n.proxy(function(n){this.onDragMove(n)},this);this.e._onDragEnd=n.proxy(function(n){this.onDragEnd(n)},this);this.e._onResize=n.proxy(function(n){this.onResize(n)},this);this.e._transitionEnd=n.proxy(function(n){this.transitionEnd(n)},this);this.e._preventClick=n.proxy(function(n){this.preventClick(n)},this)};u.prototype.onThrottledResize=function(){t.clearTimeout(this.resizeTimer);this.resizeTimer=t.setTimeout(this.e._onResize,this.settings.responsiveRefreshRate)};u.prototype.onResize=function(){if(!this._items.length||this._width===this.$element.width()||this.trigger("resize").isDefaultPrevented())return!1;this._width=this.$element.width();this.invalidate("width");this.refresh();this.trigger("resized")};u.prototype.eventsRouter=function(n){var t=n.type;if(t==="mousedown"||t==="touchstart")this.onDragStart(n);else if(t==="mousemove"||t==="touchmove")this.onDragMove(n);else if(t==="mouseup"||t==="touchend")this.onDragEnd(n);else if(t==="touchcancel")this.onDragEnd(n)};u.prototype.internalEvents=function(){var r=v(),i=y();if(this.settings.mouseDrag){this.$stage.on("mousedown",n.proxy(function(n){this.eventsRouter(n)},this));this.$stage.on("dragstart",function(){return!1});this.$stage.get(0).onselectstart=function(){return!1}}else this.$element.addClass("owl-text-select-on");if(this.settings.touchDrag&&!i)this.$stage.on("touchstart touchcancel",n.proxy(function(n){this.eventsRouter(n)},this));if(this.transitionEndVendor)this.on(this.$stage.get(0),this.transitionEndVendor,this.e._transitionEnd,!1);if(this.settings.responsive!==!1)this.on(t,"resize",n.proxy(this.onThrottledResize,this))};u.prototype.onDragStart=function(r){var u,e,s,o;if(u=r.originalEvent||r||t.event,u.which===3||this.state.isTouch)return!1;if(u.type==="mousedown"&&this.$stage.addClass("owl-grab"),this.trigger("drag"),this.drag.startTime=(new Date).getTime(),this.speed(0),this.state.isTouch=!0,this.state.isScrolling=!1,this.state.isSwiping=!1,this.drag.distance=0,e=f(u).x,s=f(u).y,this.drag.offsetX=this.$stage.position().left,this.drag.offsetY=this.$stage.position().top,this.settings.rtl&&(this.drag.offsetX=this.$stage.position().left+this.$stage.width()-this.width()+this.settings.margin),this.state.inMotion&&this.support3d)o=this.getTransformProperty(),this.drag.offsetX=o,this.animate(o),this.state.inMotion=!0;else if(this.state.inMotion&&!this.support3d)return this.state.inMotion=!1,!1;this.drag.startX=e-this.drag.offsetX;this.drag.startY=s-this.drag.offsetY;this.drag.start=e-this.drag.startX;this.drag.targetEl=u.target||u.srcElement;this.drag.updatedX=this.drag.start;(this.drag.targetEl.tagName==="IMG"||this.drag.targetEl.tagName==="A")&&(this.drag.targetEl.draggable=!1);n(i).on("mousemove.owl.dragEvents mouseup.owl.dragEvents touchmove.owl.dragEvents touchend.owl.dragEvents",n.proxy(function(n){this.eventsRouter(n)},this))};u.prototype.onDragMove=function(n){var i,e,o,s,h,u;this.state.isTouch&&(this.state.isScrolling||(i=n.originalEvent||n||t.event,e=f(i).x,o=f(i).y,this.drag.currentX=e-this.drag.startX,this.drag.currentY=o-this.drag.startY,this.drag.distance=this.drag.currentX-this.drag.offsetX,this.drag.distance<0?this.state.direction=this.settings.rtl?"right":"left":this.drag.distance>0&&(this.state.direction=this.settings.rtl?"left":"right"),this.settings.loop?this.op(this.drag.currentX,">",this.coordinates(this.minimum()))&&this.state.direction==="right"?this.drag.currentX-=(this.settings.center&&this.coordinates(0))-this.coordinates(this._items.length):this.op(this.drag.currentX,"<",this.coordinates(this.maximum()))&&this.state.direction==="left"&&(this.drag.currentX+=(this.settings.center&&this.coordinates(0))-this.coordinates(this._items.length)):(s=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),h=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),u=this.settings.pullDrag?this.drag.distance/5:0,this.drag.currentX=Math.max(Math.min(this.drag.currentX,s+u),h+u)),(this.drag.distance>8||this.drag.distance<-8)&&(i.preventDefault!==r?i.preventDefault():i.returnValue=!1,this.state.isSwiping=!0),this.drag.updatedX=this.drag.currentX,(this.drag.currentY>16||this.drag.currentY<-16)&&this.state.isSwiping===!1&&(this.state.isScrolling=!0,this.drag.updatedX=this.drag.start),this.animate(this.drag.updatedX)))};u.prototype.onDragEnd=function(t){var u,f,r;if(this.state.isTouch){if(t.type==="mouseup"&&this.$stage.removeClass("owl-grab"),this.trigger("dragged"),this.drag.targetEl.removeAttribute("draggable"),this.state.isTouch=!1,this.state.isScrolling=!1,this.state.isSwiping=!1,this.drag.distance===0&&this.state.inMotion!==!0)return this.state.inMotion=!1,!1;this.drag.endTime=(new Date).getTime();u=this.drag.endTime-this.drag.startTime;f=Math.abs(this.drag.distance);(f>3||u>300)&&this.removeClick(this.drag.targetEl);r=this.closest(this.drag.updatedX);this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed);this.current(r);this.invalidate("position");this.update();this.settings.pullDrag||this.drag.updatedX!==this.coordinates(r)||this.transitionEnd();this.drag.distance=0;n(i).off(".owl.dragEvents")}};u.prototype.removeClick=function(i){this.drag.targetEl=i;n(i).on("click.preventClick",this.e._preventClick);t.setTimeout(function(){n(i).off("click.preventClick")},300)};u.prototype.preventClick=function(t){t.preventDefault?t.preventDefault():t.returnValue=!1;t.stopPropagation&&t.stopPropagation();n(t.target).off("click.preventClick")};u.prototype.getTransformProperty=function(){var n,i;return n=t.getComputedStyle(this.$stage.get(0),null).getPropertyValue(this.vendorName+"transform"),n=n.replace(/matrix(3d)?\(|\)/g,"").split(","),i=n.length===16,i!==!0?n[4]:n[12]};u.prototype.closest=function(t){var i=-1,u=30,f=this.width(),r=this.coordinates();return this.settings.freeDrag||n.each(r,n.proxy(function(n,e){return t>e-u&&t<e+u?i=n:this.op(t,"<",e)&&this.op(t,">",r[n+1]||e-f)&&(i=this.state.direction==="left"?n+1:n),i===-1},this)),this.settings.loop||(this.op(t,">",r[this.minimum()])?i=t=this.minimum():this.op(t,"<",r[this.maximum()])&&(i=t=this.maximum())),i};u.prototype.animate=function(t){this.trigger("translate");this.state.inMotion=this.speed()>0;this.support3d?this.$stage.css({transform:"translate3d("+t+"px,0px, 0px)",transition:this.speed()/1e3+"s"}):this.state.isTouch?this.$stage.css({left:t+"px"}):this.$stage.animate({left:t},this.speed()/1e3,this.settings.fallbackEasing,n.proxy(function(){this.state.inMotion&&this.transitionEnd()},this))};u.prototype.current=function(n){if(n===r)return this._current;if(this._items.length===0)return r;if(n=this.normalize(n),this._current!==n){var t=this.trigger("change",{property:{name:"position",value:n}});t.data!==r&&(n=this.normalize(t.data));this._current=n;this.invalidate("position");this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current};u.prototype.invalidate=function(n){this._invalidated[n]=!0};u.prototype.reset=function(n){(n=this.normalize(n),n!==r)&&(this._speed=0,this._current=n,this.suppress(["translate","translated"]),this.animate(this.coordinates(n)),this.release(["translate","translated"]))};u.prototype.normalize=function(t,i){var u=i?this._items.length:this._items.length+this._clones.length;return!n.isNumeric(t)||u<1?r:this._clones.length?(t%u+u)%u:Math.max(this.minimum(i),Math.min(this.maximum(i),t))};u.prototype.relative=function(n){return n=this.normalize(n),n=n-this._clones.length/2,this.normalize(n,!0)};u.prototype.maximum=function(n){var i,r,u=0,f,t=this.settings;if(n)return this._items.length-1;if(!t.loop&&t.center)i=this._items.length-1;else if(t.loop||t.center)if(t.loop||t.center)i=this._items.length+t.items;else if(t.autoWidth||t.merge)for(revert=t.rtl?1:-1,r=this.$stage.width()-this.$element.width();f=this.coordinates(u);){if(f*revert>=r)break;
13i=++u}else throw"Can not detect maximum absolute position.";else i=this._items.length-t.items;return i};u.prototype.minimum=function(n){return n?0:this._clones.length/2};u.prototype.items=function(n){return n===r?this._items.slice():(n=this.normalize(n,!0),this._items[n])};u.prototype.mergers=function(n){return n===r?this._mergers.slice():(n=this.normalize(n,!0),this._mergers[n])};u.prototype.clones=function(t){var i=this._clones.length/2,f=i+this._items.length,u=function(n){return n%2==0?f+n/2:i-(n+1)/2};return t===r?n.map(this._clones,function(n,t){return u(t)}):n.map(this._clones,function(n,i){return n===t?u(i):null})};u.prototype.speed=function(n){return n!==r&&(this._speed=n),this._speed};u.prototype.coordinates=function(t){var i=null;return t===r?n.map(this._coordinates,n.proxy(function(n,t){return this.coordinates(t)},this)):(this.settings.center?(i=this._coordinates[t],i+=(this.width()-i+(this._coordinates[t-1]||0))/2*(this.settings.rtl?-1:1)):i=this._coordinates[t-1]||0,i)};u.prototype.duration=function(n,t,i){return Math.min(Math.max(Math.abs(t-n),1),6)*Math.abs(i||this.settings.smartSpeed)};u.prototype.to=function(i,r){if(this.settings.loop){var f=i-this.relative(this.current()),u=this.current(),e=this.current(),o=this.current()+f,s=e-o<0?!0:!1,h=this._clones.length+this._items.length;o<this.settings.items&&s===!1?(u=e+this._items.length,this.reset(u)):o>=h-this.settings.items&&s===!0&&(u=e-this._items.length,this.reset(u));t.clearTimeout(this.e._goToLoop);this.e._goToLoop=t.setTimeout(n.proxy(function(){this.speed(this.duration(this.current(),u+f,r));this.current(u+f);this.update()},this),30)}else this.speed(this.duration(this.current(),i,r)),this.current(i),this.update()};u.prototype.next=function(n){n=n||!1;this.to(this.relative(this.current())+1,n)};u.prototype.prev=function(n){n=n||!1;this.to(this.relative(this.current())-1,n)};u.prototype.transitionEnd=function(n){if(n!==r&&(n.stopPropagation(),(n.target||n.srcElement||n.originalTarget)!==this.$stage.get(0)))return!1;this.state.inMotion=!1;this.trigger("translated")};u.prototype.viewport=function(){var r;if(this.options.responsiveBaseElement!==t)r=n(this.options.responsiveBaseElement).width();else if(t.innerWidth)r=t.innerWidth;else if(i.documentElement&&i.documentElement.clientWidth)r=i.documentElement.clientWidth;else throw"Can not detect viewport width.";return r};u.prototype.replace=function(t){this.$stage.empty();this._items=[];t&&(t=t instanceof jQuery?t:n(t));this.settings.nestedItemSelector&&(t=t.find("."+this.settings.nestedItemSelector));t.filter(function(){return this.nodeType===1}).each(n.proxy(function(n,t){t=this.prepare(t);this.$stage.append(t);this._items.push(t);this._mergers.push(t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")*1||1)},this));this.reset(n.isNumeric(this.settings.startPosition)?this.settings.startPosition:0);this.invalidate("items")};u.prototype.add=function(n,t){t=t===r?this._items.length:this.normalize(t,!0);this.trigger("add",{content:n,position:t});this._items.length===0||t===this._items.length?(this.$stage.append(n),this._items.push(n),this._mergers.push(n.find("[data-merge]").addBack("[data-merge]").attr("data-merge")*1||1)):(this._items[t].before(n),this._items.splice(t,0,n),this._mergers.splice(t,0,n.find("[data-merge]").addBack("[data-merge]").attr("data-merge")*1||1));this.invalidate("items");this.trigger("added",{content:n,position:t})};u.prototype.remove=function(n){(n=this.normalize(n,!0),n!==r)&&(this.trigger("remove",{content:this._items[n],position:n}),this._items[n].remove(),this._items.splice(n,1),this._mergers.splice(n,1),this.invalidate("items"),this.trigger("removed",{content:null,position:n}))};u.prototype.addTriggerableEvents=function(){var t=n.proxy(function(t,i){return n.proxy(function(n){n.relatedTarget!==this&&(this.suppress([i]),t.apply(this,[].slice.call(arguments,1)),this.release([i]))},this)},this);n.each({next:this.next,prev:this.prev,to:this.to,destroy:this.destroy,refresh:this.refresh,replace:this.replace,add:this.add,remove:this.remove},n.proxy(function(n,i){this.$element.on(n+".owl.carousel",t(i,n+".owl.carousel"))},this))};u.prototype.watchVisibility=function(){function i(n){return n.offsetWidth>0&&n.offsetHeight>0}function r(){i(this.$element.get(0))&&(this.$element.removeClass("owl-hidden"),this.refresh(),t.clearInterval(this.e._checkVisibile))}i(this.$element.get(0))||(this.$element.addClass("owl-hidden"),t.clearInterval(this.e._checkVisibile),this.e._checkVisibile=t.setInterval(n.proxy(r,this),500))};u.prototype.preloadAutoWidthImages=function(t){var u,f,i,r;u=0;f=this;t.each(function(e,o){i=n(o);r=new Image;r.onload=function(){u++;i.attr("src",r.src);i.css("opacity",1);u>=t.length&&(f.state.imagesLoaded=!0,f.initialize())};r.src=i.attr("src")||i.attr("data-src")||i.attr("data-src-retina")})};u.prototype.destroy=function(){this.$element.hasClass(this.settings.themeClass)&&this.$element.removeClass(this.settings.themeClass);this.settings.responsive!==!1&&n(t).off("resize.owl.carousel");this.transitionEndVendor&&this.off(this.$stage.get(0),this.transitionEndVendor,this.e._transitionEnd);for(var r in this._plugins)this._plugins[r].destroy();(this.settings.mouseDrag||this.settings.touchDrag)&&(this.$stage.off("mousedown touchstart touchcancel"),n(i).off(".owl.dragEvents"),this.$stage.get(0).onselectstart=function(){},this.$stage.off("dragstart",function(){return!1}));this.$element.off(".owl");this.$stage.children(".cloned").remove();this.e=null;this.$element.removeData("owlCarousel");this.$stage.children().contents().unwrap();this.$stage.children().unwrap();this.$stage.unwrap()};u.prototype.op=function(n,t,i){var r=this.settings.rtl;switch(t){case"<":return r?n>i:n<i;case">":return r?n<i:n>i;case">=":return r?n<=i:n>=i;case"<=":return r?n>=i:n<=i}};u.prototype.on=function(n,t,i,r){n.addEventListener?n.addEventListener(t,i,r):n.attachEvent&&n.attachEvent("on"+t,i)};u.prototype.off=function(n,t,i,r){n.removeEventListener?n.removeEventListener(t,i,r):n.detachEvent&&n.detachEvent("on"+t,i)};u.prototype.trigger=function(t,i,r){var e={item:{count:this._items.length,index:this.current()}},f=n.camelCase(n.grep(["on",t,r],function(n){return n}).join("-").toLowerCase()),u=n.Event([t,"owl",r||"carousel"].join(".").toLowerCase(),n.extend({relatedTarget:this},e,i));return this._supress[t]||(n.each(this._plugins,function(n,t){if(t.onTrigger)t.onTrigger(u)}),this.$element.trigger(u),this.settings&&typeof this.settings[f]=="function"&&this.settings[f].apply(this,u)),u};u.prototype.suppress=function(t){n.each(t,n.proxy(function(n,t){this._supress[t]=!0},this))};u.prototype.release=function(t){n.each(t,n.proxy(function(n,t){delete this._supress[t]},this))};u.prototype.browserSupport=function(){if(this.support3d=a(),this.support3d){this.transformVendor=l();this.transitionEndVendor=["transitionend","webkitTransitionEnd","transitionend","oTransitionEnd"][c()];this.vendorName=this.transformVendor.replace(/Transform/i,"");this.vendorName=this.vendorName!==""?"-"+this.vendorName.toLowerCase()+"-":""}this.state.orientation=t.orientation};n.fn.owlCarousel=function(t){return this.each(function(){n(this).data("owlCarousel")||n(this).data("owlCarousel",new u(this,t))})};n.fn.owlCarousel.Constructor=u})(window.Zepto||window.jQuery,window,document); 14/** 15 * Lazy Plugin 16 * @version 2.0.0 17 * @author Bartosz Wojciechowski 18 * @license The MIT License (MIT) 19 */ 20(function(n,t){var i=function(t){this._core=t;this._loaded=[];this._handlers={"initialized.owl.carousel change.owl.carousel":n.proxy(function(t){if(t.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(t.property&&t.property.name=="position"||t.type=="initialized"))for(var i=this._core.settings,r=i.center&&Math.ceil(i.items/2)||i.items,u=i.center&&r*-1||0,f=(t.property&&t.property.value||this._core.current())+u,e=this._core.clones().length,o=n.proxy(function(n,t){this.load(t)},this);u++<r;)this.load(e/2+this._core.relative(f)),e&&n.each(this._core.clones(this._core.relative(f++)),o)},this)};this._core.options=n.extend({},i.Defaults,this._core.options);this._core.$element.on(this._handlers)};i.Defaults={lazyLoad:!1};i.prototype.load=function(i){var r=this._core.$stage.children().eq(i),u=r&&r.find(".owl-lazy");!u||n.inArray(r.get(0),this._loaded)>-1||(u.each(n.proxy(function(i,r){var u=n(r),e,f=t.devicePixelRatio>1&&u.attr("data-src-retina")||u.attr("data-src");this._core.trigger("load",{element:u,url:f},"lazy");u.is("img")?u.one("load.owl.lazy",n.proxy(function(){u.css("opacity",1);this._core.trigger("loaded",{element:u,url:f},"lazy")},this)).attr("src",f):(e=new Image,e.onload=n.proxy(function(){u.css({"background-image":"url("+f+")",opacity:"1"});this._core.trigger("loaded",{element:u,url:f},"lazy")},this),e.src=f)},this)),this._loaded.push(r.get(0)))};i.prototype.destroy=function(){var n,t;for(n in this.handlers)this._core.$element.off(n,this.handlers[n]);for(t in Object.getOwnPropertyNames(this))typeof this[t]!="function"&&(this[t]=null)};n.fn.owlCarousel.Constructor.Plugins.Lazy=i})(window.Zepto||window.jQuery,window,document); 21/** 22 * AutoHeight Plugin 23 * @version 2.0.0 24 * @author Bartosz Wojciechowski 25 * @license The MIT License (MIT) 26 */ 27(function(n){var t=function(i){this._core=i;this._handlers={"initialized.owl.carousel":n.proxy(function(){this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":n.proxy(function(n){this._core.settings.autoHeight&&n.property.name=="position"&&this.update()},this),"loaded.owl.lazy":n.proxy(function(n){this._core.settings.autoHeight&&n.element.closest("."+this._core.settings.itemClass)===this._core.$stage.children().eq(this._core.current())&&this.update()},this)};this._core.options=n.extend({},t.Defaults,this._core.options);this._core.$element.on(this._handlers)};t.Defaults={autoHeight:!1,autoHeightClass:"owl-height"};t.prototype.update=function(){this._core.$stage.parent().height(this._core.$stage.children().eq(this._core.current()).height()).addClass(this._core.settings.autoHeightClass)};t.prototype.destroy=function(){var n,t;for(n in this._handlers)this._core.$element.off(n,this._handlers[n]);for(t in Object.getOwnPropertyNames(this))typeof this[t]!="function"&&(this[t]=null)};n.fn.owlCarousel.Constructor.Plugins.AutoHeight=t})(window.Zepto||window.jQuery,window,document); 28/** 29 * Video Plugin 30 * @version 2.0.0 31 * @author Bartosz Wojciechowski 32 * @license The MIT License (MIT) 33 */ 34(function(n,t,i){var r=function(t){this._core=t;this._videos={};this._playing=null;this._fullscreen=!1;this._handlers={"resize.owl.carousel":n.proxy(function(n){this._core.settings.video&&!this.isInFullScreen()&&n.preventDefault()},this),"refresh.owl.carousel changed.owl.carousel":n.proxy(function(){this._playing&&this.stop()},this),"prepared.owl.carousel":n.proxy(function(t){var i=n(t.content).find(".owl-video");i.length&&(i.css("display","none"),this.fetch(i,n(t.content)))},this)};this._core.options=n.extend({},r.Defaults,this._core.options);this._core.$element.on(this._handlers);this._core.$element.on("click.owl.video",".owl-video-play-icon",n.proxy(function(n){this.play(n)},this))};r.Defaults={video:!1,videoHeight:!1,videoWidth:!1};r.prototype.fetch=function(n,t){var u=n.attr("data-vimeo-id")?"vimeo":"youtube",i=n.attr("data-vimeo-id")||n.attr("data-youtube-id"),f=n.attr("data-width")||this._core.settings.videoWidth,e=n.attr("data-height")||this._core.settings.videoHeight,r=n.attr("href");if(r){if(i=r.match(/(http:|https:|)\/\/(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/),i[3].indexOf("youtu")>-1)u="youtube";else if(i[3].indexOf("vimeo")>-1)u="vimeo";else throw new Error("Video URL not supported.");i=i[6]}else throw new Error("Missing video URL.");this._videos[r]={type:u,id:i,width:f,height:e};t.attr("data-video",r);this.thumbnail(n,this._videos[r])};r.prototype.thumbnail=function(t,i){var u,s,r,c=i.width&&i.height?'style="width:'+i.width+"px;height:"+i.height+'px;"':"",f=t.find("img"),e="src",h="",l=this._core.settings,o=function(n){s='<div class="owl-video-play-icon"><\/div>';u=l.lazyLoad?'<div class="owl-video-tn '+h+'" '+e+'="'+n+'"><\/div>':'<div class="owl-video-tn" style="opacity:1;background-image:url('+n+')"><\/div>';t.after(u);t.after(s)};if(t.wrap('<div class="owl-video-wrapper"'+c+"><\/div>"),this._core.settings.lazyLoad&&(e="data-src",h="owl-lazy"),f.length)return o(f.attr(e)),f.remove(),!1;i.type==="youtube"?(r="http://img.youtube.com/vi/"+i.id+"/hqdefault.jpg",o(r)):i.type==="vimeo"&&n.ajax({type:"GET",url:"http://vimeo.com/api/v2/video/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(n){r=n[0].thumbnail_large;o(r)}})};r.prototype.stop=function(){this._core.trigger("stop",null,"video");this._playing.find(".owl-video-frame").remove();this._playing.removeClass("owl-video-playing");this._playing=null};r.prototype.play=function(t){this._core.trigger("play",null,"video");this._playing&&this.stop();var o=n(t.target||t.srcElement),r=o.closest("."+this._core.settings.itemClass),i=this._videos[r.attr("data-video")],u=i.width||"100%",f=i.height||this._core.$stage.height(),e,s;i.type==="youtube"?e='<iframe width="'+u+'" height="'+f+'" src="http://www.youtube.com/embed/'+i.id+"?autoplay=1&v="+i.id+'" frameborder="0" allowfullscreen><\/iframe>':i.type==="vimeo"&&(e='<iframe src="http://player.vimeo.com/video/'+i.id+'?autoplay=1" width="'+u+'" height="'+f+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen><\/iframe>');r.addClass("owl-video-playing");this._playing=r;s=n('<div style="height:'+f+"px; width:"+u+'px" class="owl-video-frame">'+e+"<\/div>");o.after(s)};r.prototype.isInFullScreen=function(){var r=i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement;return(r&&n(r).parent().hasClass("owl-video-frame")&&(this._core.speed(0),this._fullscreen=!0),r&&this._fullscreen&&this._playing)?!1:this._fullscreen?(this._fullscreen=!1,!1):this._playing&&this._core.state.orientation!==t.orientation?(this._core.state.orientation=t.orientation,!1):!0};r.prototype.destroy=function(){var n,t;this._core.$element.off("click.owl.video");for(n in this._handlers)this._core.$element.off(n,this._handlers[n]);for(t in Object.getOwnPropertyNames(this))typeof this[t]!="function"&&(this[t]=null)};n.fn.owlCarousel.Constructor.Plugins.Video=r})(window.Zepto||window.jQuery,window,document); 35/** 36 * Animate Plugin 37 * @version 2.0.0 38 * @author Bartosz Wojciechowski 39 * @license The MIT License (MIT) 40 */ 41(function(n,t,i,r){var u=function(t){this.core=t;this.core.options=n.extend({},u.Defaults,this.core.options);this.swapping=!0;this.previous=r;this.next=r;this.handlers={"change.owl.carousel":n.proxy(function(n){n.property.name=="position"&&(this.previous=this.core.current(),this.next=n.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":n.proxy(function(n){this.swapping=n.type=="translated"},this),"translate.owl.carousel":n.proxy(function(){this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)};this.core.$element.on(this.handlers)};u.Defaults={animateOut:!1,animateIn:!1};u.prototype.swap=function(){if(this.core.settings.items===1&&this.core.support3d){this.core.speed(0);var t,i=n.proxy(this.clear,this),f=this.core.$stage.children().eq(this.previous),e=this.core.$stage.children().eq(this.next),r=this.core.settings.animateIn,u=this.core.settings.animateOut;if(this.core.current()!==this.previous){if(u){t=this.core.coordinates(this.previous)-this.core.coordinates(this.next);f.css({left:t+"px"}).addClass("animated owl-animated-out").addClass(u).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",i)}if(r)e.addClass("animated owl-animated-in").addClass(r).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",i)}}};u.prototype.clear=function(t){n(t.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut);this.core.transitionEnd()};u.prototype.destroy=function(){var n,t;for(n in this.handlers)this.core.$element.off(n,this.handlers[n]);for(t in Object.getOwnPropertyNames(this))typeof this[t]!="function"&&(this[t]=null)};n.fn.owlCarousel.Constructor.Plugins.Animate=u})(window.Zepto||window.jQuery,window,do
41cument); 42/** 43 * Autoplay Plugin 44 * @version 2.0.0 45 * @author Bartosz Wojciechowski 46 * @license The MIT License (MIT) 47 */ 48(function(n,t,i){var r=function(t){this.core=t;this.core.options=n.extend({},r.Defaults,this.core.options);this.handlers={"translated.owl.carousel refreshed.owl.carousel":n.proxy(function(){this.autoplay()},this),"play.owl.autoplay":n.proxy(function(n,t,i){this.play(t,i)},this),"stop.owl.autoplay":n.proxy(function(){this.stop()},this),"mouseover.owl.autoplay":n.proxy(function(){this.core.settings.autoplayHoverPause&&this.pause()},this),"mouseleave.owl.autoplay":n.proxy(function(){this.core.settings.autoplayHoverPause&&this.autoplay()},this)};this.core.$element.on(this.handlers)};r.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1};r.prototype.autoplay=function(){this.core.settings.autoplay&&!this.core.state.videoPlay?(t.clearInterval(this.interval),this.interval=t.setInterval(n.proxy(function(){this.play()},this),this.core.settings.autoplayTimeout)):t.clearInterval(this.interval)};r.prototype.play=function(){if(i.hidden!==!0&&!this.core.state.isTouch&&!this.core.state.isScrolling&&!this.core.state.isSwiping&&!this.core.state.inMotion){if(this.core.settings.autoplay===!1){t.clearInterval(this.interval);return}this.core.next(this.core.settings.autoplaySpeed)}};r.prototype.stop=function(){t.clearInterval(this.interval)};r.prototype.pause=function(){t.clearInterval(this.interval)};r.prototype.destroy=function(){var n,i;t.clearInterval(this.interval);for(n in this.handlers)this.core.$element.off(n,this.handlers[n]);for(i in Object.getOwnPropertyNames(this))typeof this[i]!="function"&&(this[i]=null)};n.fn.owlCarousel.Constructor.Plugins.autoplay=r})(window.Zepto||window.jQuery,window,document); 49/** 50 * Navigation Plugin 51 * @version 2.0.0 52 * @author Artus Kolanowski 53 * @license The MIT License (MIT) 54 */ 55(function(n){"use strict";var t=function(i){this._core=i;this._initialized=!1;this._pages=[];this._controls={};this._templates=[];this.$element=this._core.$element;this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to};this._handlers={"prepared.owl.carousel":n.proxy(function(t){this._core.settings.dotsData&&this._templates.push(n(t.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot"))},this),"add.owl.carousel":n.proxy(function(t){this._core.settings.dotsData&&this._templates.splice(t.position,0,n(t.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot"))},this),"remove.owl.carousel prepared.owl.carousel":n.proxy(function(n){this._core.settings.dotsData&&this._templates.splice(n.position,1)},this),"change.owl.carousel":n.proxy(function(n){if(n.property.name=="position"&&!this._core.state.revert&&!this._core.settings.loop&&this._core.settings.navRewind){var r=this._core.current(),t=this._core.maximum(),i=this._core.minimum();n.data=n.property.value>t?r>=t?i:t:n.property.value<i?t:n.property.value}},this),"changed.owl.carousel":n.proxy(function(n){n.property.name=="position"&&this.draw()},this),"refreshed.owl.carousel":n.proxy(function(){this._initialized||(this.initialize(),this._initialized=!0);this._core.trigger("refresh",null,"navigation");this.update();this.draw();this._core.trigger("refreshed",null,"navigation")},this)};this._core.options=n.extend({},t.Defaults,this._core.options);this.$element.on(this._handlers)};t.Defaults={nav:!1,navRewind:!0,navText:["prev","next"],navSpeed:!1,navElement:"div",navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotData:!1,dotsSpeed:!1,dotsContainer:!1,controlsClass:"owl-control
55s"};t.prototype.initialize=function(){var i,r,t=this._core.settings;t.dotsData||(this._templates=[n("<div>").addClass(t.dotClass).append(n("<span>")).prop("outerHTML")]);t.navContainer&&t.dotsContainer||(this._controls.$container=n("<div>").addClass(t.controlsClass).appendTo(this.$element));this._controls.$indicators=t.dotsContainer?n(t.dotsContainer):n("<div>").hide().addClass(t.dotsClass).appendTo(this._controls.$container);this._controls.$indicators.on("click","div",n.proxy(function(i){var r=n(i.target).parent().is(this._controls.$indicators)?n(i.target).index():n(i.target).parent().index();i.preventDefault();this.to(r,t.dotsSpeed)},this));i=t.navContainer?n(t.navContainer):n("<div>").addClass(t.navContainerClass).prependTo(this._controls.$container);this._controls.$next=n("<"+t.navElement+">");this._controls.$previous=this._controls.$next.clone();this._controls.$previous.addClass(t.navClass[0]).html(t.navText[0]).hide().prependTo(i).on("click",n.proxy(function(){this.prev(t.navSpeed)},this));this._controls.$next.addClass(t.navClass[1]).html(t.navText[1]).hide().appendTo(i).on("click",n.proxy(function(){this.next(t.navSpeed)},this));for(r in this._overrides)this._core[r]=n.proxy(this[r],this)};t.prototype.destroy=function(){var n,r,t,i;for(n in this._handlers)this.$element.off(n,this._handlers[n]);for(r in this._controls)this._controls[r].remove();for(i in this.overides)this._core[i]=this._overrides[i];for(t in Object.getOwnPropertyNames(this))typeof this[t]!="function"&&(this[t]=null)};t.prototype.update=function(){var t,i,u,n=this._core.settings,r=this._core.clones().length/2,e=r+this._core.items().length,f=n.center||n.autoWidth||n.dotData?1:n.dotsEach||n.items;if(n.slideBy!=="page"&&(n.slideBy=Math.min(n.slideBy,n.items)),n.dots||n.slideBy=="page")for(this._pages=[],t=r,i=0,u=0;t<e;t++)(i>=f||i===0)&&(this._pages.push({start:t-r,end:t-r+f-1}),i=0,++u),i+=this._core.mergers(this._core.relative(t))};t.prototype.draw=function(){var i,r,u="",t=this._core.settings,e=this._core.$stage.children(),f=this._core.relative(this._core.current());if(!t.nav||t.loop||t.navRewind||(this._controls.$previous.toggleClass("disabled",f<=0),this._controls.$next.toggleClass("disabled",f>=this._core.maximum())),this._controls.$previous.toggle(t.nav),this._controls.$next.toggle(t.nav),t.dots){if(i=this._pages.length-this._controls.$indicators.children().length,t.dotData&&i!==0){for(r=0;r<this._controls.$indicators.children().length;r++)u+=this._templates[this._core.relative(r)];this._controls.$indicators.html(u)}else i>0?(u=new Array(i+1).join(this._templates[0]),this._controls.$indicators.append(u)):i<0&&this._controls.$indicators.children().slice(i).remove();this._controls.$indicators.find(".active").removeClass("active");this._controls.$indicators.children().eq(n.inArray(this.current(),this._pages)).addClass("active")}this._controls.$indicators.toggle(t.dots)};t.prototype.onTrigger=function(t){var i=this._core.settings;t.page={index:n.inArray(this.current(),this._pages),count:this._pages.length,size:i&&(i.center||i.autoWidth||i.dotData?1:i.dotsEach||i.items)}};t.prototype.current=function(){var t=this._core.relative(this._core.current());return n.grep(this._pages,function(n){return n.start<=t&&n.end>=t}).pop()};t.prototype.getPosition=function(t){var i,r,u=this._core.settings;return u.slideBy=="page"?(i=n.inArray(this.current(),this._pages),r=this._pages.length,t?++i:--i,i=this._pages[(i%r+r)%r].start):(i=this._core.relative(this._core.current()),r=this._core.items().length,t?i+=u.slideBy:i-=u.slideBy),i};t.prototype.next=function(t){n.proxy(this._overrides.to,this._core)(this.getPosition(!0),t)};t.prototype.prev=function(t){n.proxy(this._overrides.to,this._core)(this.getPosition(!1),t)};t.prototype.to=function(t,i,r){var u;r?n.proxy(this._overrides.to,this._core)(t,i):(u=this._pages.length,n.proxy(this._overrides.to,this._core)(this._pages[(t%u+u)%u].start,i))};n.fn.owlCarousel.Constructor.Plugins.Navigation=t})(window.Zepto||window.jQuery,window,document); 56/** 57 * Hash Plugin 58 * @version 2.0.0 59 * @author Artus Kolanowski 60 * @license The MIT License (MIT) 61 */ 62(function(n,t){"use strict";var i=function(r){this._core=r;this._hashes={};this.$element=this._core.$element;this._handlers={"initialized.owl.carousel":n.proxy(function(){this._core.settings.startPosition=="URLHash"&&n(t).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":n.proxy(function(t){var i=n(t.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");this._hashes[i]=t.content},this)};this._core.options=n.extend({},i.Defaults,this._core.options);this.$element.on(this._handlers);n(t).on("hashchange.owl.navigation",n.proxy(function(){var n=t.location.hash.substring(1),i=this._core.$stage.children(),r=this._hashes[n]&&i.index(this._hashes[n])||0;if(!n)return!1;this._core.to(r,!1,!0)},this))};i.Defaults={URLhashListener:!1};i.prototype.destroy=function(){var i,r;n(t).off("hashchange.owl.navigation");for(i in this._handlers)this._core.$element.off(i,this._handlers[i]);for(r in Object.getOwnPropertyNames(this))typeof this[r]!="function"&&(this[r]=null)};n.fn.owlCarousel.Constructor.Plugins.Hash=i})(window.Zepto||window.jQuery,window,document);!function(n){n.fn.gMap=function(t,i){switch(t){case"addMarker":return n(this).trigger("gMap.addMarker",[i.latitude,i.longitude,i.content,i.icon,i.popup]);case"centerAt":return n(this).trigger("gMap.centerAt",[i.latitude,i.longitude,i.zoom]);case"clearMarkers":return n(this).trigger("gMap.clearMarkers")}var r=n.extend({},n.fn.gMap.defaults,t);return this.each(function(){var t=new google.maps.Map(this),f,e,o,s,u,h,c;n(this).data("gMap.reference",t);f=new google.maps.Geocoder;r.address?f.geocode({address:r.address},function(n){n&&n.length&&t.setCenter(n[0].geometry.location)}):r.latitude&&r.longitude?t.setCenter(new google.maps.LatLng(r.latitude,r.longitude)):n.isArray(r.markers)&&r.markers.length>0?r.markers[0].address?f.geocode({address:r.markers[0].address},function(n){n&&n.length>0&&t.setCenter(n[0].geometry.location)}):t.setCenter(new google.maps.LatLng(r.markers[0].latitude,r.markers[0].longitude)):t.setCenter(new google.maps.LatLng(34.885931,9.84375));t.setZoom(r.zoom);t.setMapTypeId(google.maps.MapTypeId[r.maptype]);e={scrollwheel:r.scrollwheel,disableDoubleClickZoom:!r.doubleclickzoom};r.controls===!1?n.extend(e,{disableDefaultUI:!0}):0!==r.controls.length&&n.extend(e,r.controls,{disableDefaultUI:!0});t.setOptions(e);u=new google.maps.Marker;o=new google.maps.MarkerImage(r.icon.image);o.size=new google.maps.Size(r.icon.iconsize[0],r.icon.iconsize[1]);o.anchor=new google.maps.Point(r.icon.iconanchor[0],r.icon.iconanchor[1]);u.setIcon(o);r.icon.shadow&&(s=new google.maps.MarkerImage(r.icon.shadow),s.size=new google.maps.Size(r.icon.shadowsize[0],r.icon.shadowsize[1]),s.anchor=new google.maps.Point(r.icon.shadowanchor[0],r.icon.shadowanchor[1]),u.setShadow(s));n(this).bind("gMap.centerAt",function(n,i,r,u){u&&t.setZoom(u);t.panTo(new google.maps.LatLng(parseFloat(i),parseFloat(r)))});h=[];
62n(this).bind("gMap.clearMarkers",function(){for(;h[0];)h.pop().setMap(null)});n(this).bind("gMap.addMarker",function(n,i,f,e,o,s){var a,v,p=new google.maps.LatLng(parseFloat(i),parseFloat(f)),l=new google.maps.Marker({position:p}),y;(o?(a=new google.maps.MarkerImage(o.image),a.size=new google.maps.Size(o.iconsize[0],o.iconsize[1]),a.anchor=new google.maps.Point(o.iconanchor[0],o.iconanchor[1]),l.setIcon(a),o.shadow&&(v=new google.maps.MarkerImage(o.shadow),v.size=new google.maps.Size(o.shadowsize[0],o.shadowsize[1]),v.anchor=new google.maps.Point(o.shadowanchor[0],o.shadowanchor[1]),u.setShadow(v))):(l.setIcon(u.getIcon()),l.setShadow(u.getShadow())),e)&&("_latlng"===e&&(e=i+", "+f),y=new google.maps.InfoWindow({content:r.html_prepend+e+r.html_append}),google.maps.event.addListener(l,"click",function(){c&&c.close();y.open(t,l);c=y}),s&&google.maps.event.addListenerOnce(t,"tilesloaded",function(){y.open(t,l)}));l.setMap(t);h.push(l)});for(var i,a=this,v=function(t){return function(i){i&&i.length>0&&n(a).trigger("gMap.addMarker",[i[0].geometry.location.lat(),i[0].geometry.location.lng(),t.html,t.icon,t.popup])}},l=0;l<r.markers.length;l++)i=r.markers[l],i.address?("_address"===i.html&&(i.html=i.address),f.geocode({address:i.address},v(i))):n(this).trigger("gMap.addMarker",[i.latitude,i.longitude,i.html,i.icon,i.popup])})};n.fn.gMap.defaults={address:"",latitude:0,longitude:0,zoom:1,markers:[],controls:[],scrollwheel:!1,doubleclickzoom:!0,maptype:"ROADMAP",html_prepend:'<div class="gmap_marker">',html_append:"<\/div>",icon:{image:"http://www.google.com/mapfiles/marker.png",shadow:"http://www.google.com/mapfiles/shadow50.png",iconsize:[20,34],shadowsize:[37,34],iconanchor:[9,34],shadowanchor:[6,34]}}}(jQuery),function(n){var t="waitForImages";n.waitForImages={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage","cursor"],hasImageAttributes:["srcset"]};n.expr[":"].uncached=function(t){if(!n(t).is('img[src][src!=""]'))return!1;var i=new Image;return i.src=t.src,!i.complete};n.fn.waitForImages=function(){var f=0,e=0,o=n.Deferred(),i,r,u;if(n.isPlainObject(arguments[0])?(u=arguments[0].waitForAll,r=arguments[0].each,i=arguments[0].finished):arguments.length===1&&n.type(arguments[0])==="boolean"?u=arguments[0]:(i=arguments[0],r=arguments[1],u=arguments[2]),i=i||n.noop,r=r||n.noop,u=!!u,!n.isFunction(i)||!n.isFunction(r))throw new TypeError("An invalid callback was supplied.");return this.each(function(){var s=n(this),h=[],c=n.waitForImages.hasImageProperties||[],l=n.waitForImages.hasImageAttributes||[],a=/url\(\s*(['"]?)(.*?)\1\s*\)/g;u?s.find("*").addBack().each(function(){var t=n(this);t.is("img:uncached")&&h.push({src:t.attr("src"),element:t[0]});n.each(c,function(n,i){var r=t.css(i),u;if(!r)return!0;while(u=a.exec(r))h.push({src:u[2],element:t[0]})});n.each(l,function(i,r){var u=t.attr(r),f;if(!u)return!0;f=u.split(",");n.each(f,function(i,r){r=n.trim(r).split(" ")[0];h.push({src:r,element:t[0]})})})}):s.find("img:uncached").each(function(){h.push({src:this.src,element:this})});f=h.length;e=0;f===0&&(i.call(s[0]),o.resolveWith(s[0]));n.each(h,function(u,h){var c=new Image,l="load."+t+" error."+t;n(c).one(l,function a(t){var u=[e,f,t.type=="load"];return e++,r.apply(h.element,u),o.notifyWith(h.element,u),n(this).off(l,a),e==f?(i.call(s[0]),o.resolveWith(s[0]),!1):void 0});c.src=h.src})}),o.promise()}}(jQuery),function(n,t,i){"use strict";function c(i){var u,e;if(f=t.documentElement,y=t.body,nu(),r=this,i=i||{},ct=i.constants||{},i.easing)for(u in i.easing)st[u]=i.easing[u];return ui=i.edgeStrategy||"set",p={beforerender:i.beforerender,render:i.render,keyframe:i.keyframe},it=i.forceHeight!==!1,it&&(fi=i.scale||1),lt=i.mobileDeceleration||vr,ri=i.smoothScrolling!==!1,at=i.smoothScrollingDuration||pr,k={targetTop:r.getScrollTop()},a=(i.mobileCheck||function(){return/Android|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent||navigator.vendor||n.opera)})(),a?(l=t.getElementById(i.skrollrBody||yr),l&&lu(),ru(),w(f,[nt,pi],[ti])):w(f,[nt,yi],[ti]),r.refresh(),hr(n,"resize orientationchange",function(){var n=f.clientWidth,t=f.clientHeight;(t!==si||n!==oi)&&(si=t,oi=n,pt=!0)}),e=tu(),function o(){eu();sr=e(o)}(),r}var f,y,v={get:function(){return r},init:function(n){return r||new c(n)},VERSION:"0.6.29"},bt=Object.prototype.hasOwnProperty,e=n.Math,kt=n.getComputedStyle,ci="touchstart",li="touchmove",ai="touchcancel",vi="touchend",ft="skrollable",dt=ft+"-before",gt=ft+"-between",ni=ft+"-after",nt="skrollr",ti="no-"+nt,yi=nt+"-desktop",pi=nt+"-mobile",wi="linear",bi=1e3,vr=.004,yr="skrollr-body",pr=200,wr="start",ki="end",di="center",gi="bottom",g="___skrollable_id",ii=/^(?:input|textarea|button|select)$/i,br=/^\s+|\s+$/g,kr=/^data(?:-(_\w+))?(?:-?(-?\d*\.?\d+p?))?(?:-?(start|end|top|center|bottom))?(?:-?(top|center|bottom))?$/,dr=/\s*(@?[\w\-\[\]]+)\s*:\s*(.+?)\s*(?:;|$)/gi,gr=/^(@?[a-z\-]+)\[(\w+)\]$/,nr=/-([a-z0-9_])/g,tr=function(n,t){return t.toUpperCase()}
62,ir=/[\-+]?[\d]*\.?[\d]+/g,rr=/\{\?\}/g,ur=/rgba?\(\s*-?\d+\s*,\s*-?\d+\s*,\s*-?\d+/g,fr=/[a-z\-]+-gradient/g,s="",tt="",nu=function(){var r=/^(?:O|Moz|webkit|ms)|(?:-(?:o|moz|webkit|ms)-)/,t,n;if(kt){t=kt(y,null);for(n in t)if(s=n.match(r)||+n==n&&t[n].match(r))break;if(!s)return s=tt="",i;s=s[0];"-"===s.slice(0,1)?(tt=s,s={"-webkit-":"webkit","-moz-":"Moz","-ms-":"ms","-o-":"O"}[s]):tt="-"+s.toLowerCase()+"-"}},tu=function(){var t=n.requestAnimationFrame||n[s.toLowerCase()+"RequestAnimationFrame"],i=ut();return(a||!t)&&(t=function(t){var r=ut()-i,u=e.max(0,1e3/60-r);return n.setTimeout(function(){i=ut();t()},u)}),t},iu=function(){var t=n.cancelAnimationFrame||n[s.toLowerCase()+"CancelAnimationFrame"];return(a||!t)&&(t=function(t){return n.clearTimeout(t)}),t},st={begin:function(){return 0},end:function(){return 1},linear:function(n){return n},quadratic:function(n){return n*n},cubic:function(n){return n*n*n},swing:function(n){return-e.cos(n*e.PI)/2+.5},sqrt:function(n){return e.sqrt(n)},outCubic:function(n){return e.pow(n-1,3)+1},bounce:function(n){var t;if(.5083>=n)t=3;else if(.8489>=n)t=9;else if(.96208>=n)t=27;else{if(!(.99981>=n))return 1;t=91}return 1-e.abs(3*e.cos(1.028*n*t)/t)}};c.prototype.refresh=function(n){var o,a,b=!1,v,ot,e,c,f,nt,y,s,st,tt,it,l,p;for(n===i?(b=!0,h=[],hi=0,n=t.getElementsByTagName("*")):n.length===i&&(n=[n]),o=0,a=n.length;a>o;o++){var u=n[o],k=u,d=[],rt=ri,ut=ui,et=!1;if(b&&g in u&&delete u[g],u.attributes){for(v=0,ot=u.attributes.length;ot>v;v++)if(e=u.attributes[v],"data-anchor-target"!==e.name)"data-smooth-scrolling"!==e.name?"data-edge-strategy"!==e.name?"data-emit-events"!==e.name?(c=e.name.match(kr),null!==c&&(f={props:e.value,element:u,eventType:e.name.replace(nr,tr)},d.push(f),nt=c[1],nt&&(f.constant=nt.substr(1)),y=c[2],/p$/.test(y)?(f.isPercentage=!0,f.offset=(0|y.slice(0,-1))/100):f.offset=0|y,s=c[3],st=c[4]||s,s&&s!==wr&&s!==ki?(f.mode="relative",f.anchors=[s,st]):(f.mode="absolute",s===ki?f.isEnd=!0:f.isPercentage||(f.offset=f.offset*fi)))):et=!0:ut=e.value:rt="off"!==e.value;else if(k=t.querySelector(e.value),null===k)throw'Unable to find anchor target "'+e.value+'"';d.length&&(!b&&g in u?(l=u[g],tt=h[l].styleAttr,it=h[l].classAttr):(l=u[g]=hi++,tt=u.style.cssText,it=lr(u)),h[l]={element:u,styleAttr:tt,classAttr:it,anchorTarget:k,keyFrames:d,smoothScrolling:rt,edgeStrategy:ut,emitEvents:et,lastFrameIndex:-1},w(u,[ft],[]))}}for(cr(),o=0,a=n.length;a>o;o++)p=h[n[o][g]],p!==i&&(ou(p),hu(p));return r};c.prototype.relativeToAbsolute=function(n,t,i){var o=f.clientHeight,e=n.getBoundingClientRect(),u=e.top,s=e.bottom-e.top;return t===gi?u-=o:t===di&&(u-=o/2),i===gi?u+=s:i===di&&(u+=s/2),u+=r.getScrollTop(),0|u+.5};c.prototype.animateTo=function(n,t){t=t||{};var f=ut(),e=r.getScrollTop();return u={startTop:e,topDiff:n-e,targetTop:n,duration:t.duration||bi,startTime:f,endTime:f+(t.duration||bi),easing:st[t.easing||wi],done:t.done},u.topDiff||(u.done&&u.done.call(r,!1),u=i),r};c.prototype.stopAnimateTo=function(){u&&u.done&&u.done.call(r,!0);u=i};c.prototype.isAnimatingTo=function(){return!!u};c.prototype.isMobile=function(){return a};c.prototype.setScrollTop=function(t,i){return rt=i===!0,a?ot=e.min(e.max(t,0),o):n.scrollTo(0,t),r};c.prototype.getScrollTop=function(){return a?ot:n.pageYOffset||f.scrollTop||y.scrollTop||0};c.prototype.getMaxScrollTop=function(){return o};c.prototype.on=function(n,t){return p[n]=t,r};c.prototype.off=function(n){return delete p[n],r};c.prototype.destroy=function(){var e=iu(),n,t;for(e(sr),vu(),w(f,[ti],[nt,yi,pi]),n=0,t=h.length;t>n;n++)ht(h[n].element);f.style.overflow=y.style.overflow="";f.style.height=y.style.height="";l&&v.setStyle(l,"transform","none");r=i;l=i;p=i;it=i;o=0;fi=1;ct=i;lt=i;b="down";d=-1;oi=0;si=0;pt=!1;u=i;ri=i;at=i;k=i;rt=i;hi=0;ui=i;a=!1;ot=0;et=i};var ru=function(){var s,p,w,u,h,l,a,v,d,c,b,k;hr(f,[ci,li,ai,vi].join(" "),function(n){var y=n.changedTouches[0],tt,g;for(u=n.target;3===u.nodeType;)u=u.parentNode;switch(h=y.clientY,l=y.clientX,c=n.timeStamp,ii.test(u.tagName)||n.preventDefault(),n.type){case ci:s&&s.blur();r.stopAnimateTo();s=u;p=a=h;w=l;d=c;break;case li:ii.test(u.tagName)&&t.activeElement!==u&&n.preventDefault();v=h-a;k=c-b;r.setScrollTop(ot-v,!0);a=h;b=c;break;default:case ai:case vi:var ut=p-h,ft=w-l,et=ft*ft+ut*ut;if(49>et){ii.test(s.tagName)||(s.focus(),tt=t.createEvent("MouseEvents"),tt.initMouseEvent("click",!0,!0,n.view,1,y.screenX,y.screenY,y.clientX,y.clientY,n.ctrlKey,n.altKey,n.shiftKey,n.metaKey,0,null),s.dispatchEvent(tt));return}s=i;
62g=v/k;g=e.max(e.min(g,3),-3);var nt=e.abs(g/lt),it=g*nt+.5*lt*nt*nt,f=r.getScrollTop()-it,rt=0;f>o?(rt=(o-f)/it,f=o):0>f&&(rt=-f/it,f=0);nt*=1-rt;r.animateTo(0|f+.5,{easing:"outCubic",duration:nt})}});n.scrollTo(0,0);f.style.overflow=y.style.overflow="hidden"},uu=function(){for(var u,y,p,s,t,l,n,c,v,b=f.clientHeight,w=yu(),i=0,a=h.length;a>i;i++)for(u=h[i],y=u.element,p=u.anchorTarget,s=u.keyFrames,t=0,l=s.length;l>t;t++)n=s[t],c=n.offset,v=w[n.constant]||0,n.frame=c,n.isPercentage&&(c*=b,n.frame=c),"relative"===n.mode&&(ht(y),n.frame=r.relativeToAbsolute(p,n.anchors[0],n.anchors[1])-c,ht(y,!0)),n.frame+=v,it&&!n.isEnd&&n.frame>o&&(o=n.frame);for(o=e.max(o,pu()),i=0,a=h.length;a>i;i++){for(u=h[i],s=u.keyFrames,t=0,l=s.length;l>t;t++)n=s[t],v=w[n.constant]||0,n.isEnd&&(n.frame=o-n.offset+v);u.keyFrames.sort(wu)}},fu=function(n,t){for(var y,f,s,p,k,a=0,rt=h.length;rt>a;a++){var i,e,r=h[a],u=r.element,c=r.smoothScrolling?n:t,o=r.keyFrames,d=o.length,g=o[0],nt=o[o.length-1],l=g.frame>c,ut=c>nt.frame,et=l?g:nt,tt=r.emitEvents,it=r.lastFrameIndex;if(l||ut){if(l&&-1===r.edge||ut&&1===r.edge)continue;switch(l?(w(u,[dt],[ni,gt]),tt&&it>-1&&(vt(u,g.eventType,b),r.lastFrameIndex=-1)):(w(u,[ni],[dt,gt]),tt&&d>it&&(vt(u,nt.eventType,b),r.lastFrameIndex=d)),r.edge=l?-1:1,r.edgeStrategy){case"reset":ht(u);continue;case"ease":c=et.frame;break;default:case"set":y=et.props;for(i in y)bt.call(y,i)&&(e=or(y[i].value),0===i.indexOf("@")?u.setAttribute(i.substr(1),e):v.setStyle(u,i,e));continue}}else 0!==r.edge&&(w(u,[ft,gt],[dt,ni]),r.edge=0);for(f=0;d-1>f;f++)if(c>=o[f].frame&&o[f+1].frame>=c){s=o[f];p=o[f+1];for(i in s.props)bt.call(s.props,i)&&(k=(c-s.frame)/(p.frame-s.frame),k=s.props[i].easing(k),e=cu(s.props[i].value,p.props[i].value,k),e=or(e),0===i.indexOf("@")?u.setAttribute(i.substr(1),e):v.setStyle(u,i,e));tt&&it!==f&&("down"===b?vt(u,s.eventType,b):vt(u,p.eventType,b),r.lastFrameIndex=f);break}}},eu=function(){var e,f,n,t,h,s,c;pt&&(pt=!1,cr());n=r.getScrollTop();t=ut();u?(t>=u.endTime?(n=u.targetTop,e=u.done,u=i):(f=u.easing((t-u.startTime)/u.duration),n=0|u.startTop+f*u.topDiff),r.setScrollTop(n,!0)):rt||(h=k.targetTop-n,h&&(k={startTop:d,topDiff:n-d,targetTop:n,startTime:ei,endTime:ei+at}),k.endTime>=t&&(f=st.sqrt((t-k.startTime)/at),n=0|k.startTop+f*k.topDiff));(a&&l&&v.setStyle(l,"transform","translate(0, "+-ot+"px) "+et),rt||d!==n)&&(b=n>d?"down":d>n?"up":b,rt=!1,s={curTop:n,lastTop:d,maxTop:o,direction:b},c=p.beforerender&&p.beforerender.call(r,s),c!==!1&&(fu(n,r.getScrollTop()),d=n,p.render&&p.render.call(r,s)),e&&e.call(r,!1));ei=t},ou=function(n){for(var t,i,u,f,e,o,r=0,s=n.keyFrames.length;s>r;r++){for(e=n.keyFrames[r],o={};null!==(f=dr.exec(e.props));)u=f[1],i=f[2],t=u.match(gr),null!==t?(u=t[1],t=t[2]):t=wi,i=i.indexOf("!")?su(i):[i.slice(1)],o[u]={value:i,easing:st[t]};e.props=o}},su=function(n){var t=[];return ur.lastIndex=0,n=n.replace(ur,function(n){return n.replace(ir,function(n){return 100*(n/255)+"%"})}),tt&&(fr.lastIndex=0,n=n.replace(fr,function(n){return tt+n})),n=n.replace(ir,function(n){return t.push(+n),"{?}"}),t.unshift(n),t},hu=function(n){for(var i={},t=0,r=n.keyFrames.length;r>t;t++)er(n.keyFrames[t],i);for(i={},t=n.keyFrames.length-1;t>=0;t--)er(n.keyFrames[t],i)},er=function(n,t){for(var i in t)bt.call(n.props,i)||(n.props[i]=t[i]);for(i in n.props)t[i]=n.props[i]},cu=function(n,t,i){var r,f=n.length,u;if(f!==t.length)throw"Can't interpolate between \""+n[0]+'" and "'+t[0]+'"';for(u=[n[0]],r=1;f>r;r++)u[r]=n[r]+(t[r]-n[r])*i;return u},or=function(n){var t=1;return rr.lastIndex=0,n[0].replace(rr,function(){return n[t++]})},ht=function(n,t){n=[].concat(n);for(var i,r,u=0,f=n.length;f>u;u++)r=n[u],i=h[r[g]],i&&(t?(r.style.cssText=i.dirtyStyleAttr,w(r,i.dirtyClassAttr)):(i.dirtyStyleAttr=r.style.cssText,i.dirtyClassAttr=lr(r),r.style.cssText=i.styleAttr,w(r,i.classAttr)))},lu=function(){et="translateZ(0)";v.setStyle(l,"transform",et);var n=kt(l),t=n.getPropertyValue("transform"),i=n.getPropertyValue(tt+"transform"),r=t&&"none"!==t||i&&"none"!==i;r||(et="")};v.setStyle=function(n,t,i){var r=n.style;if(t=t.replace(nr,tr).replace("-",""),"zIndex"===t)r[t]=isNaN(i)?i:""+(0|i);else if("float"===t)r.styleFloat=r.cssFloat=i;else try{s&&(r[s+t.slice(0,1).toUpperCase()+t.slice(1)]=i);r[t]=i}catch(u){}};var r,h,l,p,it,ct,lt,u,ri,at,k,rt,ui,et,sr,hr=v.addEvent=function(t,i,r){var o=function(t){return t=t||n.event,t.target||(t.target=t.srcElement),t.preventDefault||(t.preventDefault=function(){t.returnValue=!1;t.defaultPrevented=!0}),r.call(this,t)},u,f,e;for(i=i.split(" "),f=0,e=i.length;e>f;f++)u=i[f],t.addEventListener?t.addEventListener(u,r,!1):t.attachEvent("on"+u,o),wt.push({element:t,name:u,listener:r})}
62,au=v.removeEvent=function(n,t,i){t=t.split(" ");for(var r=0,u=t.length;u>r;r++)n.removeEventListener?n.removeEventListener(t[r],i,!1):n.detachEvent("on"+t[r],i)},vu=function(){for(var n,t=0,i=wt.length;i>t;t++)n=wt[t],au(n.element,n.name,n.listener);wt=[]},vt=function(n,t,i){p.keyframe&&p.keyframe.call(r,n,t,i)},cr=function(){var n=r.getScrollTop();o=0;it&&!a&&(y.style.height="");uu();it&&!a&&(y.style.height=o+f.clientHeight+"px");a?r.setScrollTop(e.min(r.getScrollTop(),o)):r.setScrollTop(n,!0);rt=!0},yu=function(){var t,n,u=f.clientHeight,i={};for(t in ct)n=ct[t],"function"==typeof n?n=n.call(r):/p$/.test(n)&&(n=n.slice(0,-1)/100*u),i[t]=n;return i},pu=function(){var n,t=0;return l&&(t=e.max(l.offsetHeight,l.scrollHeight)),n=e.max(t,y.scrollHeight,y.offsetHeight,f.scrollHeight,f.offsetHeight,f.clientHeight),n-f.clientHeight},lr=function(t){var i="className";return n.SVGElement&&t instanceof n.SVGElement&&(t=t[i],i="baseVal"),t[i]},w=function(t,r,u){var e="className",o,h;if(n.SVGElement&&t instanceof n.SVGElement&&(t=t[e],e="baseVal"),u===i)return t[e]=r,i;for(var f=t[e],s=0,c=u.length;c>s;s++)f=yt(f).replace(yt(u[s])," ");for(f=ar(f),o=0,h=r.length;h>o;o++)-1===yt(f).indexOf(yt(r[o]))&&(f+=" "+r[o]);t[e]=ar(f)},ar=function(n){return n.replace(br,"")},yt=function(n){return" "+n+" "},ut=Date.now||function(){return+new Date},wu=function(n,t){return n.frame-t.frame},o=0,fi=1,b="down",d=-1,ei=ut(),oi=0,si=0,pt=!1,hi=0,a=!1,ot=0,wt=[];"function"==typeof define&&define.amd?define([],function(){return v}):"undefined"!=typeof module&&module.exports?module.exports=v:n.skrollr=v}(window,document);Swiper=function(n,t){function h(n){return document.querySelectorAll?document.querySelectorAll(n):jQuery(n)}function f(){var n=w-u;return t.freeMode&&(n=w-u),t.slidesPerView>i.slides.length&&(n=0),0>n&&(n=0),n}function wt(){function r(n){var r=new Image;r.onload=function(){if(i.imagesLoaded++,i.imagesLoaded==i.imagesToLoad.length&&(i.reInit(),t.onImagesReady))t.onImagesReady(i)};r.src=n}if(i.browser.ie10?(i.h.addEventListener(i.wrapper,i.touchEvents.touchStart,v,!1),i.h.addEventListener(document,i.touchEvents.touchMove,y,!1),i.h.addEventListener(document,i.touchEvents.touchEnd,p,!1)):(i.support.touch&&(i.h.addEventListener(i.wrapper,"touchstart",v,!1),i.h.addEventListener(i.wrapper,"touchmove",y,!1),i.h.addEventListener(i.wrapper,"touchend",p,!1)),t.simulateTouch&&(i.h.addEventListener(i.wrapper,"mousedown",v,!1),i.h.addEventListener(document,"mousemove",y,!1),i.h.addEventListener(document,"mouseup",p,!1))),t.autoResize&&i.h.addEventListener(window,"resize",i.resizeFix,!1),ft(),i._wheelEvent=!1,t.mousewheelControl){void 0!==document.onmousewheel&&(i._wheelEvent="mou
62sewheel");try{WheelEvent("wheel");i._wheelEvent="wheel"}catch(u){}i._wheelEvent||(i._wheelEvent="DOMMouseScroll");i._wheelEvent&&i.h.addEventListener(i.container,i._wheelEvent,st,!1)}if(t.keyboardControl&&i.h.addEventListener(document,"keydown",ot,!1),t.updateOnImagesReady){document.querySelectorAll?i.imagesToLoad=i.container.querySelectorAll("img"):window.jQuery&&(i.imagesToLoad=h(i.container).find("img"));for(var n=0;n<i.imagesToLoad.length;n++)r(i.imagesToLoad[n].getAttribute("src"))}}function ft(){var r,n;if(t.preventLinks)for(r=[],document.querySelectorAll?r=i.container.querySelectorAll("a"):window.jQuery&&(r=h(i.container).find("a")),n=0;n<r.length;n++)i.h.addEventListener(r[n],"click",at,!1);if(t.releaseFormElements)for(r=document.querySelectorAll?i.container.querySelectorAll("input, textarea, select"):h(i.container).find("input, textarea, select"),n=0;n<r.length;n++)i.h.addEventListener(r[n],i.touchEvents.touchStart,vt,!0);if(t.onSlideClick)for(n=0;n<i.slides.length;n++)i.h.addEventListener(i.slides[n],"click",ct,!1);if(t.onSlideTouch)for(n=0;n<i.slides.length;n++)i.h.addEventListener(i.slides[n],i.touchEvents.touchStart,lt,!1)}function et(){var r,n;if(t.onSlideClick)for(n=0;n<i.slides.length;n++)i.h.removeEventListener(i.slides[n],"click",ct,!1);if(t.onSlideTouch)for(n=0;n<i.slides.length;n++)i.h.removeEventListener(i.slides[n],i.touchEvents.touchStart,lt,!1);if(t.releaseFormElements)for(r=document.querySelectorAll?i.container.querySelectorAll("input, textarea, select"):h(i.container).find("input, textarea, select"),n=0;n<r.length;n++)i.h.removeEventListener(r[n],i.touchEvents.touchStart,vt,!0);if(t.preventLinks)for(r=[],document.querySelectorAll?r=i.container.querySelectorAll("a"):window.jQuery&&(r=h(i.container).find("a")),n=0;n<r.length;n++)i.h.removeEventListener(r[n],"click",at,!1)}function ot(n){var t=n.keyCode||n.charCode,f;if(37==t||39==t||38==t||40==t){for(var o=!1,u=i.h.getOffset(i.container),s=i.h.windowScroll().left,h=i.h.windowScroll().top,c=i.h.windowWidth(),l=i.h.windowHeight(),u=[[u.left,u.top],[u.left+i.width,u.top],[u.left,u.top+i.height],[u.left+i.width,u.top+i.height]],e=0;e<u.length;e++)f=u[e],f[0]>=s&&f[0]<=s+c&&f[1]>=h&&f[1]<=h+l&&(o=!0);if(!o)return}r?((37==t||39==t)&&(n.preventDefault?n.preventDefault():n.returnValue=!1),39==t&&i.swipeNext(),37==t&&i.swipePrev()):((38==t||40==t)&&(n.preventDefault?n.preventDefault():n.returnValue=!1),40==t&&i.swipeNext(),38==t&&i.swipePrev())}function st(n){var e=i._wheelEvent,u;return n.detail?u=-n.detail:"mousewheel"==e?u=n.wheelDelta:"DOMMouseScroll"==e?u=-n.detail:"wheel"==e&&(u=Math.abs(n.deltaX)>Math.abs(n.deltaY)?-n.deltaX:-n.deltaY),t.freeMode?(r?i.getWrapperTranslate("x"):i.getWrapperTranslate("y"),r?(e=i.getWrapperTranslate("x")+u,u=i.getWrapperTranslate("y"),0<e&&(e=0),e<-f()&&(e=-f())):(e=i.getWrapperTranslate("x"),u=i.getWrapperTranslate("y")+u,0<u&&(u=0),u<-f()&&(u=-f())),i.setWrapperTransition(0),i.setWrapperTranslate(e,u,0),r?i.updateActiveSlide(e):i.updateActiveSlide(u)):0>u?i.swipeNext():i.swipePrev(),t.autoplay&&i.stopAutoplay(),n.preventDefault?n.preventDefault():n.returnValue=!1,!1}function ht(n){for(var i=!1;!i;)-1<n.className.indexOf(t.slideClass)&&(i=n),n=n.parentElement;return i}function ct(n){i.allowSlideClick&&(n.target?(i.clickedSlide=this,i.clickedSlideIndex=i.slides.indexOf(this)):(i.clickedSlide=ht(n.srcElement),i.clickedSlideIndex=i.slides.indexOf(i.clickedSlide)),t.onSlideClick(i))}function lt(n){i.clickedSlide=n.target?this:ht(n.srcElement);i.clickedSlideIndex=i.slides.indexOf(i.clickedSlide);t.onSlideTouch(i)}function at(n){if(!i.allowLinks)return n.preventDefault?n.preventDefault():n.returnValue=!1,!1}function vt(n){return n.stopPropagation?n.stopPropagation():n.returnValue=!1,!1}function v(n){var u,f;if(t.preventLinks&&(i.allowLinks=!0),i.isTouched||t.onlyExternal)return!1;if((u=t.noSwiping)&&(u=n.target||n.srcElement)){u=n.target||n.srcElement;f=!1;do-1<u.className.indexOf(t.noSwipingClass)&&(f=!0),u=u.parentElement;while(!f&&u.parentElement&&-1==u.className.indexOf(t.wrapperClass));!f&&-1<u.className.indexOf(t.wrapperClass)&&-1<u.className.indexOf(t.noSwipingClass)&&(f=!0);u=f}if(u)return!1;if(d=!1,i.isTouched=!0,c="touchstart"==n.type,!c||1==n.targetTouches.length){if(t.loop&&i.fixLoop(),i.callPlugins("onTouchStartBegin"),c||(n.preventDefault?n.preventDefault():n.returnValue=!1),u=c?n.targetTouches[0].pageX:n.pageX||n.clientX,n=c?n.targetTouches[0].pageY:n.pageY||n.clientY,i.touches.startX=i.touches.currentX=u,i.touches.startY=i.touches.currentY=n,i.touches.start=i.touches.current=r?u:n,i.setWrapperTransition(0),i.positions.start=i.positions.current=r?i.getWrapperTranslate("x"):i.getWrapperTranslate("y"),r?i.setWrapperTranslate(i.positions.start,0,0):i.setWrapperTranslate(0,i.positions.start,0),i.times.start=(new Date).getTime(),l=void 0,0<t.moveStartThreshold&&(ut=!1),t.onTouchStart)t.onTouchStart(i);i.callPlugins("onTouchStartEnd")}}function y(n){if(i.isTouched&&!t.onlyExternal&&(!c||"mousemove"!=n.type)){var e=c?n.targetTouches[0].pageX:n.pageX||n.clientX,o=c?n.targetTouches[0].pageY:n.pageY||n.clientY;if("undefined"==typeof l&&r&&(l=!!(l||Math.abs(o-i.touches.startY)>Math.abs(e-i.touches.startX))),"undefined"!=typeof l||r||(l=!!(l||Math.abs(o-i.touches.startY)<Math.abs(e-i.touches.startX))),l)i.isTouched=!1;else if(n.assignedToSwiper)i.isTouched=!1;else if(n.assignedToSwiper=!0,i.isMoved=!0,t.preventLinks&&(i.allowLinks=!1),t.onSlideClick&&(i.allowSlideClick=!1),t.autoplay&&i.stopAutoplay(),!c||1==n.touches.length){if(i.callPlugins("onTouchMoveStart"),n.preventDefault?n.preventDefault():n.returnValue=!1,i.touches.current=r?e:o,i.positions.current=(i.touches.current-i.touches.start)*t.touchRatio+i.positions.start,0<i.positions.current&&t.onResistanceBefore)t.onResistanceBefore(i,i.positions.current);if(i.positions.current<-f()&&t.onResistanceAfter)t.onResistanceAfter(i,Math.abs(i.positions.current+f()));if(t.resistance&&"100%"!=t.resistance&&(0<i.positions.current&&(n=1-i.positions.current/u/2,i.positions.current=.5>n?u/2:i.positions.current*n),i.positions.current<-f()&&(e=(i.touches.current-i.touches.start)*t.touchRatio+(f()+i.positions.start),n=(u+e)/u,e=i.positions.current-e*(1-n)/2,o=-f()-u/2,i.positions.current=e<o||0>=n?o:e)),t.resistance&&"100%"==t.resistance&&(0<i.positions.current&&(!t.freeMode||t.freeModeFluid)&&(i.positions.current=0),i.positions.current<-f()&&(!t.freeMode||t.freeModeFluid)&&(i.positions.current=-f())),t.followFinger){if(t.moveStartThreshold?Math.abs(i.touches.current-i.touches.start)>t.moveStartThreshold||ut?(ut=!0,r?i.setWrapperTranslate(i.positions.current,0,0):i.setWrapperTranslate(0,i.positions.current,0)):i.positions.current=i.positions.start:r?i.setWrapperTranslate(i.positions.current,0,0):i.setWrapperTranslate(0,i.positions.current,0),(t.freeMode||t.watchActiveIndex)&&i.updateActiveSlide(i.positions.current),t.grabCursor&&(i.container.style.cursor="move",i.container.style.cursor="grabbing",i.container.style.cursor="-moz-grabbin",i.container.style.cursor="-webkit-grabbing"),g||(g=i.touches.current),rt||(rt=(new Date).getTime()),i.velocity=(i.touches.current-g)/((new Date).getTime()-rt)/2,2>Math.abs(i.touches.current-g)&&(i.velocity=0),g=i.touches.current,rt=(new Date).getTime(),i.callPlugins("onTouchMoveEnd"),t.onTouchMove)t.onTouchMove(i);return!1}}}}function p(n){var h,s,o,v;if(l&&i.swipeReset(),!t.onlyExternal&&i.isTouched)if(i.isTouched=!1,t.grabCursor&&(i.container.style.cursor="move",i.container.style.cursor="grab",i.container.style.cursor="-moz-grab",i.container.style.cursor="-webkit-grab"),i.positions.current||0===i.positions.current||(i.positions.current=i.positions.start),t.followFinger&&(r?i.setWrapperTranslate(i.positions.current,0,0):i.setWrapperTranslate(0,i.positions.current,0)),i.times.end=(new Date).getTime(),i.touches.diff=i.touches.current-i.touches.start,i.touches.abs=Math.abs(i.touches.diff),i.positions.diff=i.positions.current-i.positions.start,i.positions.abs=Math.abs(i.positions.diff),o=i.positions.diff,h=i.positions.abs,n=i.times.end-i.times.start,5>h&&300>n&&!1==i.allowLinks&&(t.freeMode||0==h||i.swipeReset(),t.preventLinks&&(i.allowLinks=!0),t.onSlideClick&&(i.allowSlideClick=!0)),setTimeout(function(){t.preventLinks&&(i.allowLinks=!0);t.onSlideClick&&(i.allowSlideClick=!0)},100),i.isMoved){if(i.isMoved=!1,s=f(),0<i.positions.current)i.swipeReset();else if(i.positions.current<-s)i.swipeReset();else if(t.freeMode){if(t.freeModeFluid){var h=1e3*t.momentumRatio,o=i.positions.current+i.velocity
62*h,a=!1,y,c=20*Math.abs(i.velocity)*t.momentumBounceRatio;o<-s&&(t.momentumBounce&&i.support.transitions?(o+s<-c&&(o=-s-c),y=-s,d=a=!0):o=-s);0<o&&(t.momentumBounce&&i.support.transitions?(o>c&&(o=c),y=0,d=a=!0):o=0);0!=i.velocity&&(h=Math.abs((o-i.positions.current)/i.velocity));r?i.setWrapperTranslate(o,0,0):i.setWrapperTranslate(0,o,0);i.setWrapperTransition(h);t.momentumBounce&&a&&i.wrapperTransitionEnd(function(){if(d){if(t.onMomentumBounce)t.onMomentumBounce(i);r?i.setWrapperTranslate(y,0,0):i.setWrapperTranslate(0,y,0);i.setWrapperTransition(300)}});i.updateActiveSlide(o)}(!t.freeModeFluid||300<=n)&&i.updateActiveSlide(i.positions.current)}else{if(b=0>o?"toNext":"toPrev","toNext"==b&&300>=n&&(30>h||!t.shortSwipes?i.swipeReset():i.swipeNext(!0)),"toPrev"==b&&300>=n&&(30>h||!t.shortSwipes?i.swipeReset():i.swipePrev(!0)),s=0,"auto"==t.slidesPerView){for(o=Math.abs(r?i.getWrapperTranslate("x"):i.getWrapperTranslate("y")),v=a=0;v<i.slides.length;v++)if(c=r?i.slides[v].getWidth(!0):i.slides[v].getHeight(!0),a+=c,a>o){s=c;break}s>u&&(s=u)}else s=e*t.slidesPerView;"toNext"==b&&300<n&&(h>=.5*s?i.swipeNext(!0):i.swipeReset());"toPrev"==b&&300<n&&(h>=.5*s?i.swipePrev(!0):i.swipeReset())}if(t.onTouchEnd)t.onTouchEnd(i);i.callPlugins("onTouchEnd")}else{if(i.isMoved=!1,t.onTouchEnd)t.onTouchEnd(i);i.callPlugins("onTouchEnd");i.swipeReset()}}function nt(n,u,f){function s(){if(e+=c,l="toNext"==h?e>n:e<n)r?i.setWrapperTranslate(Math.round(e),0):i.setWrapperTranslate(0,Math.round(e)),i._DOMAnimating=!0,window.setTimeout(function(){s()},1e3/60);else{if(t.onSlideChangeEnd)t.onSlideChangeEnd(i);r?i.setWrapperTranslate(n,0):i.setWrapperTranslate(0,n);i._DOMAnimating=!1}}var o;if(i.support.transitions||!t.DOMAnimation)r?i.setWrapperTranslate(n,0,0):i.setWrapperTranslate(0,n,0),o="to"==u&&0<=f.speed?f.speed:t.speed,i.setWrapperTransition(o);else{var e=r?i.getWrapperTranslate("x"):i.getWrapperTranslate("y"),o="to"==u&&0<=f.speed?f.speed:t.speed,c=Math.ceil((n-e)/o*(1e3/60)),h=e>n?"toNext":"toPrev",l="toNext"==h?e>n:e<n;if(i._DOMAnimating)return;s()}if(i.updateActiveSlide(n),t.onSlideNext&&"next"==u)t.onSlideNext(i,n);if(t.onSlidePrev&&"prev"==u)t.onSlidePrev(i,n);if(t.onSlideReset&&"reset"==u)t.onSlideReset(i,n);("next"==u||"prev"==u||"to"==u&&!0==f.runCallbacks)&&bt()}function bt(){if(i.callPlugins("onSlideChangeStart"),t.onSlideChangeStart)if(t.queueStartCallbacks&&i.support.transitions){if(i._queueStartCallbacks)return;i._queueStartCallbacks=!0;t.onSlideChangeStart(i);i.wrapperTransitionEnd(function(){i._queueStartCallbacks=!1})}else t.onSlideChangeStart(i);t.onSlideChangeEnd&&(i.support.transitions?t.queueEndCallbacks?i._queueEndCallbacks||(i._queueEndCallbacks=!0,i.wrapperTransitionEnd(t.onSlideChangeEnd)):i.wrapperTransitionEnd(t.onSlideChangeEnd):t.DOMAnimation||setTimeout(function(){t.onSlideChangeEnd(i)},10))}function yt(){for(var t=i.paginationButtons,n=0;n<t.length;n++)i.h.removeEventListener(t[n],"click",pt,!1)}function pt(n){var u,r,t;for(n=n.target||n.srcElement,r=i.paginationButtons,t=0;t<r.length;t++)n===r[t]&&(u=t);i.swipeTo(u)}var i,tt,e,w,b,l,u,s,o,a,r,k,it,c,ut,d,g,rt;if(document.body.__defineGetter__&&HTMLElement&&(s=HTMLElement.prototype,s.__defineGetter__&&s.__defineGetter__("outerHTML",function(){return(new XMLSerializer).serializeToString(this)})),window.getComputedStyle||(window.getComputedStyle=function(n){return this.el=n,this.getPropertyValue=function(t){var i=/(\-([a-z]){1})/g;return"float"===t&&(t="styleFloat"),i.test(t)&&(t=t.replace(i,function(n,t,i){return i.toUpperCase()})),n.currentStyle[t]?n.currentStyle[t]:null},this}),Array.prototype.indexOf||(Array.prototype.indexOf=function(n,t){for(var i=t||0,r=this.length;i<r;i++)if(this[i]===n)return i;return-1}),(document.querySelectorAll||window.jQuery)&&"undefined"!=typeof n&&(n.nodeType||0!==h(n).length)){i=this;i.touches={start:0,startX:0,startY:0,current:0,currentX:0,currentY:0,diff:0,abs:0};i.positions={start:0,abs:0,diff:0,current:0};i.times={start:0,end:0};i.id=(new Date).getTime();i.container=n.nodeType?n:h(n)[0];i.isTouched=!1;i.isMoved=!1;i.activeIndex=0;i.activeLoaderIndex=0;i.activeLoopIndex=0;
62i.previousIndex=null;i.velocity=0;i.snapGrid=[];i.slidesGrid=[];i.imagesToLoad=[];i.imagesLoaded=0;i.wrapperLeft=0;i.wrapperRight=0;i.wrapperTop=0;i.wrapperBottom=0;s={mode:"horizontal",touchRatio:1,speed:300,freeMode:!1,freeModeFluid:!1,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,slidesPerView:1,slidesPerGroup:1,simulateTouch:!0,followFinger:!0,shortSwipes:!0,moveStartThreshold:!1,autoplay:!1,onlyExternal:!1,createPagination:!0,pagination:!1,paginationElement:"span",paginationClickable:!1,paginationAsRange:!0,resistance:!0,scrollContainer:!1,preventLinks:!0,noSwiping:!1,noSwipingClass:"swiper-no-swiping",initialSlide:0,keyboardControl:!1,mousewheelControl:!1,mousewheelDebounce:600,useCSS3Transforms:!0,loop:!1,loopAdditionalSlides:0,calculateHeight:!1,updateOnImagesReady:!0,releaseFormElements:!0,watchActiveIndex:!1,visibilityFullFit:!1,offsetPxBefore:0,offsetPxAfter:0,offsetSlidesBefore:0,offsetSlidesAfter:0,centeredSlides:!1,queueStartCallbacks:!1,queueEndCallbacks:!1,autoResize:!0,resizeReInit:!1,DOMAnimation:!0,loader:{slides:[],slidesHTMLType:"inner",surroundGroups:1,logic:"reload",loadAllSlides:!1},slideElement:"div",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",wrapperClass:"swiper-wrapper",paginationElementClass:"swiper-pagination-switch",paginationActiveClass:"swiper-active-switch",paginationVisibleClass:"swiper-visible-switch"};t=t||{};for(o in s)if(o in t&&"object"==typeof t[o])for(a in s[o])a in t[o]||(t[o][a]=s[o][a]);else o in t||(t[o]=s[o]);for(i.params=t,t.scrollContainer&&(t.freeMode=!0,t.freeModeFluid=!0),t.loop&&(t.resistance="100%"),r="horizontal"===t.mode,i.touchEvents={touchStart:i.support.touch||!t.simulateTouch?"touchstart":i.browser.ie10?"MSPointerDown":"mousedown",touchMove:i.support.touch||!t.simulateTouch?"touchmove":i.browser.ie10?"MSPointerMove":"mousemove",touchEnd:i.support.touch||!t.simulateTouch?"touchend":i.browser.ie10?"MSPointerUp":"mouseup"},o=i.container.childNodes.length-1;0<=o;o--)if(i.container.childNodes[o].className)for(a=i.container.childNodes[o].className.split(" "),s=0;s<a.length;s++)a[s]===t.wrapperClass&&(tt=i.container.childNodes[o]);i.wrapper=tt;i._extendSwiperSlide=function(n){return n.append=function(){return t.loop?(n.insertAfter(i.slides.length-i.loopedSlides),i.removeLoopedSlides(),i.calcSlides(),i.createLoop()):i.wrapper.appendChild(n),i.reInit(),n},n.prepend=function(){return t.loop?(i.wrapper.insertBefore(n,i.slides[i.loopedSlides]),i.removeLoopedSlides(),i.calcSlides(),i.createLoop()):i.wrapper.insertBefore(n,i.wrapper.firstChild),i.reInit(),n},n.insertAfter=function(r){return"undefined"==typeof r?!1:(t.loop?(r=i.slides[r+1+i.loopedSlides],i.wrapper.insertBefore(n,r),i.removeLoopedSlides(),i.calcSlides(),i.createLoop()):(r=i.slides[r+1],i.wrapper.insertBefore(n,r)),i.reInit(),n)},n.clone=function(){return i._extendSwiperSlide(n.cloneNode(!0))},n.remove=function(){i.wrapper.removeChild(n);i.reInit()},n.html=function(t){return"undefined"==typeof t?n.innerHTML:(n.innerHTML=t,n)},n.index=function(){for(var r,t=i.slides.length-1;0<=t;t--)n===i.slides[t]&&(r=t);return r},n.isActive=function(){return n.index()===i.activeIndex?!0:!1},n.swiperSlideDataStorage||(n.swiperSlideDataStorage={}),n.getData=function(t){return n.swiperSlideDataStorage[t]},n.setData=function(t,i){return n.swiperSlideDataStorage[t]=i,n},n.data=function(t,i){return i?(n.setAttribute("data-"+t,i),n):n.getAttribute("data-"+t)},n.getWidth=function(t){return i.h.getWidth(n,t)},n.getHeight=function(t){return i.h.getHeight(n,t)},n.getOffset=function(){return i.h.getOffset(n)},n};i.calcSlides=function(n){var e=i.slides?i.slides.length:!1,r,f,u;for(i.slides=[],i.displaySlides=[],r=0;r<i.wrapper.childNodes.length;r++)if(i.wrapper.childNodes[r].className)for(f=i.wrapper.childNodes[r].className.split(" "),u=0;u<f.length;u++)f[u]===t.slideClass&&i.slides.push(i.wrapper.childNodes[r]);for(r=i.slides.length-1;0<=r;r--)i._extendSwiperSlide(i.slides[r]);e&&(e!==i.slides.length||n)&&(et(),ft(),i.updateActiveSlide(),t.createPagination&&i.params.pagination&&i.createPagination(),i.callPlugins("numberOfSlidesChanged"))};i.createSlide=function(n,r,u){return r=r||i.params.slideClass,u=u||t.slideElement,u=document.createElement(u),u.innerHTML=n||"",u.className=r,i._extendSwiperSlide(u)};i.appendSlide=function(n,t,r){if(n)return n.nodeType?i._extendSwiperSlide(n).append():i.createSlide(n,t,r).append()};i.prependSlide=function(n,t,r){if(n)return n.nodeType?i._extendSwiperSlide(n).prepend():i.createSlide(n,t,r).prepend()};i.insertSlideAfter=function(n,t,r,u){return"undefined"==typeof n?!1:t.nodeType?i._extendSwiperSlide(t).insertAfter(n):i.createSlide(t,r,u).insertAfter(n)};i.removeSlide=function(n){if(i.slides[n]){if(t.loop){if(!i.slides[n+i.loopedSlides])return!1;i.slides[n+i.loopedSlides].remove();i.removeLoopedSlides();i.calcSlides();i.createLoop()}else i.slides[n].remove();return!0}return!1};i.removeLastSlide=function(){return 0<i.slides.length?(t.loop?(i.slides[i.slides.length-1-i.loopedSlides].remove(),i.removeLoopedSlides(),i.calcSlides(),i.createLoop()):i.slides[i.slides.length-1].remove(),!0):!1};i.removeAllSlides=function(){for(var n=i.slides.length-1;0<=n;n--)i.slides[n].remove()};i.getSlide=function(n){return i.slides[n]};i.getLastSlide=function(){return i.slides[i.slides.length-1]};i.getFirstSlide=function(){return i.slides[0]};i.activeSlide=function(){return i.slides[i.activeIndex]};k=[];for(it in i.plugins)t[it]&&(o=i.plugins[it](i,t[it]))&&k.push(o);i.callPlugins=function(n,t){t||(t={});for(var i=0;i<k.length;i++)n in k[i]&&k[i][n](t)};i.browser.ie10&&!t.onlyExternal&&(r?i.wrapper.classList.add("swiper-wp8-horizontal"):i.wrapper.classList.add("swiper-wp8-vertical"));t.freeMode&&(i.container.className+=" swiper-free-mode");i.initialized=!1;i.init=function(n,f){var o=i.h.getWidth(i.container),v=i.h.getHeight(i.container),c,b,l,k,h,s,a,p;if(o!==i.width||v!==i.height||n){if(i.width=o,i.height=v,u=r?o:v,o=i.wrapper,n&&i.calcSlides(f),"auto"===t.slidesPerView){for(c=0,b=0,0<t.slidesOffset&&(o.style.paddingLeft="",o.style.paddingRight="",o.style.paddingTop="",o.style.paddingBottom=""),o.style.width="",o.style.height="",0<t.offsetPxBefore&&(r?i.wrapperLeft=t.offsetPxBefore:i.wrapperTop=t.offsetPxBefore),0<t.offsetPxAfter&&(r?i.wrapperRight=t.offsetPxAfter:i.wrapperBottom=t.offsetPxAfter),t.centeredSlides&&(r?(i.wrapperLeft=(u-this.slides[0].getWidth(!0))/2,i.wrapperRight=(u-i.slides[i.slides.length-1].getWidth(!0))/2):(i.wrapperTop=(u-i.slides[0].getHeight(!0))/2,i.wrapperBottom=(u-i.slides[i.slides.length-1].getHeight(!0))/2)),r?(0<=i.wrapperLeft&&(
62o.style.paddingLeft=i.wrapperLeft+"px"),0<=i.wrapperRight&&(o.style.paddingRight=i.wrapperRight+"px")):(0<=i.wrapperTop&&(o.style.paddingTop=i.wrapperTop+"px"),0<=i.wrapperBottom&&(o.style.paddingBottom=i.wrapperBottom+"px")),l=0,k=0,i.snapGrid=[],i.slidesGrid=[],h=0,s=0;s<i.slides.length;s++){if(v=i.slides[s].getWidth(!0),a=i.slides[s].getHeight(!0),t.calculateHeight&&(h=Math.max(h,a)),p=r?v:a,t.centeredSlides){var d=s===i.slides.length-1?0:i.slides[s+1].getWidth(!0),y=s===i.slides.length-1?0:i.slides[s+1].getHeight(!0),d=r?d:y;if(p>u){for(y=0;y<=Math.floor(p/(u+i.wrapperLeft));y++)0===y?i.snapGrid.push(l+i.wrapperLeft):i.snapGrid.push(l+i.wrapperLeft+u*y);i.slidesGrid.push(l+i.wrapperLeft)}else i.snapGrid.push(k),i.slidesGrid.push(k);k+=p/2+d/2}else{if(p>u)for(y=0;y<=Math.floor(p/u);y++)i.snapGrid.push(l+u*y);else i.snapGrid.push(l);i.slidesGrid.push(l)}l+=p;c+=v;b+=a}t.calculateHeight&&(i.height=h);r?(w=c+i.wrapperRight+i.wrapperLeft,o.style.width=c+"px",o.style.height=i.height+"px"):(w=b+i.wrapperTop+i.wrapperBottom,o.style.width=i.width+"px",o.style.height=b+"px")}else if(t.scrollContainer)o.style.width="",o.style.height="",h=i.slides[0].getWidth(!0),c=i.slides[0].getHeight(!0),w=r?h:c,o.style.width=h+"px",o.style.height=c+"px",e=r?h:c;else{if(t.calculateHeight){for(c=h=0,r||(i.container.style.height=""),o.style.height="",s=0;s<i.slides.length;s++)i.slides[s].style.height="",h=Math.max(i.slides[s].getHeight(!0),h),r||(c+=i.slides[s].getHeight(!0));a=h;i.height=a;r?c=a:(u=a,i.container.style.height=u+"px")}else a=r?i.height:i.height/t.slidesPerView,c=r?i.height:i.slides.length*a;for(v=r?i.width/t.slidesPerView:i.width,h=r?i.slides.length*v:i.width,e=r?v:a,0<t.offsetSlidesBefore&&(r?i.wrapperLeft=e*t.offsetSlidesBefore:i.wrapperTop=e*t.offsetSlidesBefore),0<t.offsetSlidesAfter&&(r?i.wrapperRight=e*t.offsetSlidesAfter:i.wrapperBottom=e*t.offsetSlidesAfter),0<t.offsetPxBefore&&(r?i.wrapperLeft=t.offsetPxBefore:i.wrapperTop=t.offsetPxBefore),0<t.offsetPxAfter&&(r?i.wrapperRight=t.offsetPxAfter:i.wrapperBottom=t.offsetPxAfter),t.centeredSlides&&(r?(i.wrapperLeft=(u-e)/2,i.wrapperRight=(u-e)/2):(i.wrapperTop=(u-e)/2,i.wrapperBottom=(u-e)/2)),r?(0<i.wrapperLeft&&(o.style.paddingLeft=i.wrapperLeft+"px"),0<i.wrapperRight&&(o.style.paddingRight=i.wrapperRight+"px")):(0<i.wrapperTop&&(o.style.paddingTop=i.wrapperTop+"px"),0<i.wrapperBottom&&(o.style.paddingBottom=i.wrapperBottom+"px")),w=r?h+i.wrapperRight+i.wrapperLeft:c+i.wrapperTop+i.wrapperBottom,o.style.width=h+"px",o.style.height=c+"px",l=0,i.snapGrid=[],i.slidesGrid=[],s=0;s<i.slides.length;s++)i.snapGrid.push(l),i.slidesGrid.push(l),l+=e,i.slides[s].style.width=v+"px",i.slides[s].style.height=a+"px"}if(i.initialized){if(i.callPlugins("onInit"),t.onFirstInit)t.onInit(i)}else if(i.callPlugins("onFirstInit"),t.onFirstInit)t.onFirstInit(i);i.initialized=!0}};i.reInit=function(n){i.init(!0,n)};i.resizeFix=function(n){if(i.callPlugins("beforeResizeFix"),i.init(t.resizeReInit||n),t.freeMode){if((r?i.getWrapperTranslate("x"):i.getWrapperTranslate("y"))<-f()){n=r?-f():0;var u=r?0:-f();i.setWrapperTransition(0);i.setWrapperTranslate(n,u,0)}}else t.loop?i.swipeTo(i.activeLoopIndex,0,!1):i.swipeTo(i.activeIndex,0,!1);i.callPlugins("afterResizeFix")};i.destroy=function(){i.browser.ie10?(i.h.removeEventListener(i.wrapper,i.touchEvents.touchStart,v,!1),i.h.removeEventListener(document,i.touchEvents.touchMove,y,!1),i.h.removeEventListener(document,i.touchEvents.touchEnd,p,!1)):(i.support.touch&&(i.h.removeEventListener(i.wrapper,"touchstart",v,!1),i.h.removeEventListener(i.wrapper,"touchmove",y,!1),i.h.removeEventListener(i.wrapper,"touchend",p,!1)),t.simulateTouch&&(i.h.removeEventListener(i.wrapper,"mousedown",v,!1),i.h.removeEventListener(document,"mousemove",y,!1),i.h.removeEventListener(document,"mouseup",p,!1)));t.autoResize&&i.h.removeEventListener(window,"resize",i.resizeFix,!1);et();t.paginationClickable&&yt();t.mousewheelControl&&i._wheelEvent&&i.h.removeEventListener(i.container,i._wheelEvent,st,!1);
62t.keyboardControl&&i.h.removeEventListener(document,"keydown",ot,!1);t.autoplay&&i.stopAutoplay();i.callPlugins("onDestroy");i=null};t.grabCursor&&(i.container.style.cursor="move",i.container.style.cursor="grab",i.container.style.cursor="-moz-grab",i.container.style.cursor="-webkit-grab");i.allowSlideClick=!0;i.allowLinks=!0;c=!1;d=!0;i.swipeNext=function(n){var u,o;if(!n&&t.loop&&i.fixLoop(),i.callPlugins("onSwipeNext"),u=n=r?i.getWrapperTranslate("x"):i.getWrapperTranslate("y"),"auto"==t.slidesPerView){for(o=0;o<i.snapGrid.length;o++)if(-n>=i.snapGrid[o]&&-n<i.snapGrid[o+1]){u=-i.snapGrid[o+1];break}}else u=e*t.slidesPerGroup,u=-(Math.floor(Math.abs(n)/Math.floor(u))*u+u);return(u<-f()&&(u=-f()),u==n)?!1:(nt(u,"next"),!0)};i.swipePrev=function(n){var u,f;if(!n&&t.loop&&i.fixLoop(),!n&&t.autoplay&&i.stopAutoplay(),i.callPlugins("onSwipePrev"),n=Math.ceil(r?i.getWrapperTranslate("x"):i.getWrapperTranslate("y")),"auto"==t.slidesPerView)for(u=0,f=1;f<i.snapGrid.length;f++){if(-n==i.snapGrid[f]){u=-i.snapGrid[f-1];break}if(-n>i.snapGrid[f]&&-n<i.snapGrid[f+1]){u=-i.snapGrid[f];break}}else u=e*t.slidesPerGroup,u*=-(Math.ceil(-n/u)-1);return(0<u&&(u=0),u==n)?!1:(nt(u,"prev"),!0)};i.swipeReset=function(){var o,n,s;if(i.callPlugins("onSwipeReset"),o=r?i.getWrapperTranslate("x"):i.getWrapperTranslate("y"),n=e*t.slidesPerGroup,f(),"auto"==t.slidesPerView){for(s=n=0;s<i.snapGrid.length;s++){if(-o===i.snapGrid[s])return;if(-o>=i.snapGrid[s]&&-o<i.snapGrid[s+1]){n=0<i.positions.diff?-i.snapGrid[s+1]:-i.snapGrid[s];break}}-o>=i.snapGrid[i.snapGrid.length-1]&&(n=-i.snapGrid[i.snapGrid.length-1]);o<=-f()&&(n=-f())}else n=0>o?Math.round(o/n)*n:0;return(t.scrollContainer&&(n=0>o?o:0),n<-f()&&(n=-f()),t.scrollContainer&&u>e&&(n=0),n==o)?!1:(nt(n,"reset"),!0)};i.swipeTo=function(n,u,o){var h,s;return n=parseInt(n,10),i.callPlugins("onSwipeTo",{index:n,speed:u}),t.loop&&(n+=i.loopedSlides),h=r?i.getWrapperTranslate("x"):i.getWrapperTranslate("y"),(n>i.slides.length-1||0>n)?void 0:(s="auto"==t.slidesPerView?-i.slidesGrid[n]:-n*e,s<-f()&&(s=-f()),s==h)?!1:(nt(s,"to",{index:n,speed:u,runCallbacks:!1===o?!1:!0}),!0)};i._queueStartCallbacks=!1;i._queueEndCallbacks=!1;i.updateActiveSlide=function(n){var u,f,o;if(i.initialized&&0!=i.slides.length){if(i.previousIndex=i.activeIndex,0<n&&(n=0),"undefined"==typeof n&&(n=r?i.getWrapperTranslate("x"):i.getWrapperTranslate("y")),"auto"==t.slidesPerView){if(i.activeIndex=i.slidesGrid.indexOf(-n),0>i.activeIndex){for(u=0;u<i.slidesGrid.length-1&&!(-n>i.slidesGrid[u]&&-n<i.slidesGrid[u+1]);u++);f=Math.abs(i.slidesGrid[u]+n);o=Math.abs(i.slidesGrid[u+1]+n);i.activeIndex=f<=o?u:u+1}}else i.activeIndex=t.visibilityFullFit?Math.ceil(-n/e):Math.round(-n/e);if(i.activeIndex==i.slides.length&&(i.activeIndex=i.slides.length-1),0>i.activeIndex&&(i.activeIndex=0),i.slides[i.activeIndex]){for(i.calcVisibleSlides(n),f=RegExp("\\s*"+t.slideActiveClass),o=RegExp("\\s*"+t.slideVisibleClass),u=0;u<i.slides.length;u++)i.slides[u].className=i.slides[u].className.replace(f,"").replace(o,""),0<=i.visibleSlides.indexOf(i.slides[u])&&(i.slides[u].className+=" "+t.slideVisibleClass);i.slides[i.activeIndex].className+=" "+t.slideActiveClass;t.loop?(u=i.loopedSlides,i.activeLoopIndex=i.activeIndex-u,i.activeLoopIndex>=i.slides.length-2*u&&(i.activeLoopIndex=i.slides.length-2*u-i.activeLoopIndex),0>i.activeLoopIndex&&(i.activeLoopIndex=i.slides.length-2*u+i.activeLoopIndex)):i.activeLoopIndex=i.activeIndex;t.pagination&&i.updatePagination(n)}}};i.createPagination=function(n){var r,u,f;for(t.paginationClickable&&i.paginationButtons&&yt(),r="",u=i.slides.length,t.loop&&(u-=2*i.loopedSlides),f=0;f<u;f++)r+="<"+t.paginationElement+' class="'+t.paginationElementClass+'"><\/'+t.paginationElement+">";if(i.paginationContainer=t.pagination.nodeType?t.pagination:h(t.pagination)[0],i.paginationContainer.innerHTML=r,i.paginationButtons=[],document.querySelectorAll?i.paginationButtons=i.paginationContainer.querySelectorAll("."+t.paginationElementClass):window.jQuery&&(i.paginationButtons=h(i.paginationContainer).find("."+t.paginationElementClass)),n||i.updatePagination(),i.callPlugins("onCreatePagination"),t.paginationClickable)for(n=i.paginationButtons,r=0;r<n.length;r++)i.h.addEventListener(n[r],"click",pt,!1)};i.updatePagination=function(n){var r,u,e,f;if(t.pagination&&!(1>i.slides.length)&&(document.querySelectorAll?r=i.paginationContainer.querySelectorAll("."+t.paginationActiveClass):window.jQuery&&(r=h(i.paginationContainer).find("."+t.paginationActiveClass)),r&&(r=i.paginationButtons,0!=r.length))){for(u=0;
62u<r.length;u++)r[u].className=t.paginationElementClass;if(e=t.loop?i.loopedSlides:0,t.paginationAsRange){for(i.visibleSlides||i.calcVisibleSlides(n),n=[],u=0;u<i.visibleSlides.length;u++)f=i.slides.indexOf(i.visibleSlides[u])-e,t.loop&&0>f&&(f=i.slides.length-2*i.loopedSlides+f),t.loop&&f>=i.slides.length-2*i.loopedSlides&&(f=i.slides.length-2*i.loopedSlides-f,f=Math.abs(f)),n.push(f);for(u=0;u<n.length;u++)r[n[u]]&&(r[n[u]].className+=" "+t.paginationVisibleClass);t.loop?r[i.activeLoopIndex].className+=" "+t.paginationActiveClass:r[i.activeIndex].className+=" "+t.paginationActiveClass}else t.loop?r[i.activeLoopIndex].className+=" "+t.paginationActiveClass+" "+t.paginationVisibleClass:r[i.activeIndex].className+=" "+t.paginationActiveClass+" "+t.paginationVisibleClass}};i.calcVisibleSlides=function(n){var c=[],f=0,l=0,h=0,o;for(r&&0<i.wrapperLeft&&(n+=i.wrapperLeft),!r&&0<i.wrapperTop&&(n+=i.wrapperTop),o=0;o<i.slides.length;o++){var f=f+l,l="auto"==t.slidesPerView?r?i.h.getWidth(i.slides[o],!0):i.h.getHeight(i.slides[o],!0):e,h=f+l,s=!1;t.visibilityFullFit?(f>=-n&&h<=-n+u&&(s=!0),f<=-n&&h>=-n+u&&(s=!0)):(h>-n&&h<=-n+u&&(s=!0),f>=-n&&f<-n+u&&(s=!0),f<-n&&h>-n+u&&(s=!0));s&&c.push(i.slides[o])}0==c.length&&(c=[i.slides[i.activeIndex]]);i.visibleSlides=c};i.autoPlayIntervalId=void 0;i.startAutoplay=function(){if("undefined"!=typeof i.autoPlayIntervalId)return!1;t.autoplay&&!t.loop&&(i.autoPlayIntervalId=setInterval(function(){i.swipeNext(!0)||i.swipeTo(0)},t.autoplay));t.autoplay&&t.loop&&(i.autoPlayIntervalId=setInterval(function(){i.swipeNext()},t.autoplay));i.callPlugins("onAutoplayStart")};i.stopAutoplay=function(){i.autoPlayIntervalId&&clearInterval(i.autoPlayIntervalId);i.autoPlayIntervalId=void 0;i.callPlugins("onAutoplayStop")};i.loopCreated=!1;i.removeLoopedSlides=function(){if(i.loopCreated)for(var n=0;n<i.slides.length;n++)!0===i.slides[n].getData("looped")&&i.wrapper.removeChild(i.slides[n])};i.createLoop=function(){if(0!=i.slides.length){i.loopedSlides=t.slidesPerView+t.loopAdditionalSlides;for(var r="",u="",n=0;n<i.loopedSlides;n++)r+=i.slides[n].outerHTML;for(n=i.slides.length-i.loopedSlides;n<i.slides.length;n++)u+=i.slides[n].outerHTML;for(tt.innerHTML=u+tt.innerHTML+r,i.loopCreated=!0,i.calcSlides(),n=0;n<i.slides.length;n++)(n<i.loopedSlides||n>=i.slides.length-i.loopedSlides)&&i.slides[n].setData("looped",!0);i.callPlugins("onCreateLoop")}};i.fixLoop=function(){if(i.activeIndex<i.loopedSlides){var n=i.slides.length-3*i.loopedSlides+i.activeIndex;i.swipeTo(n,0,!1)}else i.activeIndex>i.slides.length-2*t.slidesPerView&&(n=-i.slides.length+i.activeIndex+i.loopedSlides,i.swipeTo(n,0,!1))};i.loadSlides=function(){var r="";i.activeLoaderIndex=0;for(var u=t.loader.slides,f=t.loader.loadAllSlides?u.length:t.slidesPerView*(1+t.loader.surroundGroups),n=0;n<f;n++)r="outer"==t.loader.slidesHTMLType?r+u[n]:r+("<"+t.slideElement+' class="'+t.slideClass+'" data-swiperindex="'+n+'">'+u[n]+"<\/"+t.slideElement+">");i.wrapper.innerHTML=r;i.calcSlides(!0);t.loader.loadAllSlides||i.wrapperTransitionEnd(i.reloadSlides,!0)};i.reloadSlides=function(){var f=t.loader.slides,n=parseInt(i.activeSlide().data("swiperindex"),10),u,h,o,s;if(!(0>n||n>f.length-1)){if(i.activeLoaderIndex=n,u=Math.max(0,n-t.slidesPerView*t.loader.surroundGroups),h=Math.min(n+t.slidesPerView*(1+t.loader.surroundGroups)-1,f.length-1),0<n&&(n=-e*(n-u),r?i.setWrapperTranslate(n,0,0):i.setWrapperTranslate(0,n,0),i.setWrapperTransition(0)),"reload"===t.loader.logic){for(o=i.wrapper.innerHTML="",n=u;n<=h;n++)o+="outer"==t.loader.slidesHTMLType?f[n]:"<"+t.slideElement+' class="'+t.slideClass+'" data-swiperindex="'+n+'">'+f[n]+"<\/"+t.slideElement+">";i.wrapper.innerHTML=o}else{for(var o=1e3,c=0,n=0;n<i.slides.length;n++)s=i.slides[n].data("swiperindex"),s<u||s>h?i.wrapper.removeChild(i.slides[n]):(o=Math.min(s,o),c=Math.max(s,c));for(n=u;n<=h;n++)n<o&&(u=document.createElement(t.slideElement),u.className=t.
62slideClass,u.setAttribute("data-swiperindex",n),u.innerHTML=f[n],i.wrapper.insertBefore(u,i.wrapper.firstChild)),n>c&&(u=document.createElement(t.slideElement),u.className=t.slideClass,u.setAttribute("data-swiperindex",n),u.innerHTML=f[n],i.wrapper.appendChild(u))}i.reInit(!0)}};i.calcSlides();0<t.loader.slides.length&&0==i.slides.length&&i.loadSlides();t.loop&&i.createLoop();i.init();wt();t.pagination&&t.createPagination&&i.createPagination(!0);t.loop||0<t.initialSlide?i.swipeTo(t.initialSlide,0,!1):i.updateActiveSlide(0);t.autoplay&&i.startAutoplay()}};Swiper.prototype={plugins:{},wrapperTransitionEnd:function(n,t){function f(){if(n(i),i.params.queueEndCallbacks&&(i._queueEndCallbacks=!1),!t)for(var u=0;u<r.length;u++)i.h.removeEventListener(e,r[u],f,!1)}var i=this,e=i.wrapper,r=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],u;if(n)for(u=0;u<r.length;u++)i.h.addEventListener(e,r[u],f,!1)},getWrapperTranslate:function(n){var t=this.wrapper,i,r,u=window.WebKitCSSMatrix?new WebKitCSSMatrix(window.getComputedStyle(t,null).webkitTransform):window.getComputedStyle(t,null).MozTransform||window.getComputedStyle(t,null).OTransform||window.getComputedStyle(t,null).MsTransform||window.getComputedStyle(t,null).msTransform||window.getComputedStyle(t,null).transform||window.getComputedStyle(t,null).getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,");return i=u.toString().split(","),this.params.useCSS3Transforms?("x"==n&&(r=16==i.length?parseFloat(i[12]):window.WebKitCSSMatrix?u.m41:parseFloat(i[4])),"y"==n&&(r=16==i.length?parseFloat(i[13]):window.WebKitCSSMatrix?u.m42:parseFloat(i[5]))):("x"==n&&(r=parseFloat(t.style.left,10)||0),"y"==n&&(r=parseFloat(t.style.top,10)||0)),r||0},setWrapperTranslate:function(n,t,i){var r=this.wrapper.style;n=n||0;t=t||0;i=i||0;this.params.useCSS3Transforms?this.support.transforms3d?r.webkitTransform=r.MsTransform=r.msTransform=r.MozTransform=r.OTransform=r.transform="translate3d("+n+"px, "+t+"px, "+i+"px)":(r.webkitTransform=r.MsTransform=r.msTransform=r.MozTransform=r.OTransform=r.transform="translate("+n+"px, "+t+"px)",this.support.transforms||(r.left=n+"px",r.top=t+"px")):(r.left=n+"px",r.top=t+"px");this.callPlugins("onSetWrapperTransform",{x:n,y:t,z:i})},setWrapperTransition:function(n){var t=this.wrapper.style;t.webkitTransitionDuration=t.MsTransitionDuration=t.msTransitionDuration=t.MozTransitionDuration=t.OTransitionDuration=t.transitionDuration=n/1e3+"s";this.callPlugins("onSetWrapperTransition",{duration:n})},h:{getWidth:function(n,t){var r=window.getComputedStyle(n,null).getPropertyValue("width"),i=parseFloat(r);return(isNaN(i)||0<r.indexOf("%"))&&(i=n.offsetWidth-parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-left"))-parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-right"))),t&&(i+=parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-left"))+parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-right"))),i},getHeight:function(n,t){if(t)return n.offsetHeight;var r=window.getComputedStyle(n,null).getPropertyValue("height"),i=parseFloat(r);return(isNaN(i)||0<r.indexOf("%"))&&(i=n.offsetHeight-parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-top"))-parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-bottom"))),t&&(i+=parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-top"))+parseFloat(window.getComputedStyle(n,null).getPropertyValue("padding-bottom"))),i},getOffset:function(n){var i=n.getBoundingClientRect(),t=document.body,u=n.clientTop||t.clientTop||0,t=n.clientLeft||t.clientLeft||0,r=window.pageYOffset||n.scrollTop;return n=window.pageXOffset||n.scrollLeft,document.documentElement&&!window.pageYOffset&&(r=document.documentElement.scrollTop,n=document.documentElement.scrollLeft),{top:i.top+r-u,left:i.left+n-t}},windowWidth:function(){return window.innerWidth?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:void 0},windowHeight:function(){return window.innerHeight?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:void 0},windowScroll:function(){return"undefined"!=typeof pageYOffset?{left:window.pageXOffset,top:window.pageYOffset}:document.documentElement?{left:document.documentElement.scrollLeft,top:document.documentElement.scrollTop}:void 0},addEventListener:function(n,t,i,r){n.addEventListener?n.addEventListener(t,i,r):n.attachEvent&&n.attachEvent("on"+t,i)},removeEventListener:function(n,t,i,r){n.removeEventListener?n.removeEventListener(t,i,r):n.detachEvent&&n.detachEvent("on"+t,i)}},setTransform:function(n,t){var i=n.style;i.webkitTransform=i.MsTransform=i.msTransform=i.MozTransform=i.OTransform=i.transform=t},setTranslate:function(n,t){var i=n.style,r=t.x||0,u=t.y||0,f=t.z||0;i.webkitTransform=i.MsTransform=i.msTransform=i.MozTransform=i.OTransform=i.transform=this.support.transforms3d?"translate3d("+r+"px,"+u+"px,"+f+"px)":"translate("+r+"px,"+u+"px)";
62this.support.transforms||(i.left=r+"px",i.top=u+"px")},setTransition:function(n,t){var i=n.style;i.webkitTransitionDuration=i.MsTransitionDuration=i.msTransitionDuration=i.MozTransitionDuration=i.OTransitionDuration=i.transitionDuration=t+"ms"},support:{touch:window.Modernizr&&!0===Modernizr.touch||function(){return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)}(),transforms3d:window.Modernizr&&!0===Modernizr.csstransforms3d||function(){var n=document.createElement("div");return"webkitPerspective"in n.style||"MozPerspective"in n.style||"OPerspective"in n.style||"MsPerspective"in n.style||"perspective"in n.style}(),transforms:window.Modernizr&&!0===Modernizr.csstransforms||function(){var n=document.createElement("div").style;return"transform"in n||"WebkitTransform"in n||"MozTransform"in n||"msTransform"in n||"MsTransform"in n||"OTransform"in n}(),transitions:window.Modernizr&&!0===Modernizr.csstransitions||function(){var n=document.createElement("div").style;return"transition"in n||"WebkitTransition"in n||"MozTransition"in n||"msTransition"in n||"MsTransition"in n||"OTransition"in n}()},browser:{ie8:function(){var n=-1;return"Microsoft Internet Explorer"==navigator.appName&&null!=/MSIE ([0-9]{1,}[.0-9]{0,})/.exec(navigator.userAgent)&&(n=parseFloat(RegExp.$1)),-1!=n&&9>n}(),ie10:window.navigator.msPointerEnabled}};(window.jQuery||window.Zepto)&&function(n){n.fn.swiper=function(t){return t=new Swiper(n(this)[0],t),n(this).data("swiper",t),t}}(window.jQuery||window.Zepto);"undefined"!=typeof module&&(module.exports=Swiper);window.requestAnimFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(n){window.setTimeout(n,1e3/60)}}();window.cancelRequestAnimFrame=function(){return window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||window.oCancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||clearTimeout}();Intense=function(){"use strict";function tt(n,t){for(var i in t)i in n||(n[i]=t[i]);return n}function f(n,t){for(var i in t)n.style[i]=t[i]}function it(n){var t=window.innerHeight/n.h,i;return n.w*t>window.innerWidth?{w:n.w*t,h:n.h*t,fit:!0}:(i=window.innerWidth/n.w,{w:n.w*i,h:n.h*i,fit:!1})}function rt(n){var t;if(n.length)for(t=0;t<n.length;t++)w(n[t]);else w(n)}function w(n){n.src&&n.addEventListener("click",function(){st(this)},!1)}function ut(){l()}function b(){cancelRequestAnimFrame(v)}function l(){v=requestAnimFrame(l);lt()}function ft(){p=document.body.style.overflow;document.body.style.overflow="hidden"}function et(){document.body.style.overflow=p}function ot(r,u){var c,l,e,a,s,v,h;i=document.createElement("figure");i.appendChild(t);f(i,{backgroundColor:"rgba(0,0,0,0.8)",width:"100%",height:"100%",position:"fixed",top:"0px",left:"0px",overflow:"hidden",zIndex:"999999",margin:"0px",webkitTransition:"opacity 150ms cubic-bezier( 0, 0, .26, 1 )",MozTransition:"opacity 150ms cubic-bezier( 0, 0, .26, 1 )",transition:"opacity 150ms cubic-bezier( 0, 0, .26, 1 )",opacity:"0"});c={cursor:'url( "'};f(t,c);l={fontFamily:'Georgia, Times, "Times New Roman", serif',position:"fixed",bottom:"0px",left:"0px",padding:"20px",color:"#fff",wordSpacing:"0.2px",webkitFontSmoothing:"antialiased",textShadow:"-1px 0px 1px rgba(0,0,0,0.4)"};e=document.createElement("figcaption");f(e,l);r&&(a={margin:"0px",padding:"0px",fontWeight:"normal",fontSize:"40px",letterSpacing:"0.5px",lineHeight:"35px",textAlign:"left"},s=document.createElement("h1"),f(s,a),s.innerHTML=r,e.appendChild(s));u&&(v={margin:"0px",padding:"0px",fontWeight:"normal",fontSize:"20px",letterSpacing:"0.1px",maxWidth:"500px",textAlign:"left",background:"none",marginTop:"5px"},h=document.createElement("h2"),f(h,v),h.innerHTML=u,e.appendChild(h));i.appendChild(e);o();n.xCurr=n.xDest=window.innerWidth/2;n.yCurr=n.yDest=window.innerHeight/2;document.body.appendChild(i);setTimeout(function(){i.style.opacity="1"},10)}function a(){et();ct();b();document.body.removeChild(i)}function o(){var n=it(y);t.width=n.w;t.height=n.h;s=n.fit;h={w:t.width,h:t.height};u={w:window.innerWidth,h:window.innerHeight};c={x:u.w-h.w,y:u.h-h.h}}function st(n){var r=n.src,u=n.getAttribute("data-title"),f=n.getAttribute("data-caption"),i=new Image;i.onload=function(){y={w:i.width,h:i.height};t=this;ot(u,f);ft();ht();l()};i.src=r}function ht(){i.addEventListener("mousemove",k,!1);i.addEventListener("touchmove",d,!1);window.addEventListener("resize",o,!1);window.addEventListener("keyup",g,!1);t.addEventListener("click",a,!1)}function ct(){i.removeEventListener("mousemove",k,!1);i.removeEventListener("touchmove",d,!1);window.removeEventListener("resize",o,!1);window.removeEventListener("keyup",g,!1);t.removeEventListener("click",a,!1)}function k(t){n.xDest=t.clientX;n.yDest=t.clientY}function d(t){t.preventDefault();n.xDest=t.touches[0].clientX;n.yDest=t.touches[0].clientY}function g(n){n.preventDefault();n.keyCode===nt&&a()}function lt(){var i;n.xCurr+=(n.xDest-n.xCurr)*.05;n.yCurr+=(n.yDest-n.yCurr)*.05;s===!0?(r+=n.xCurr-r,n.xCurr!==e&&(i=parseFloat(r/u.w),i=c.x*i,t.style.webkitTransform="translate3d("+i+"px, 0px, 0px)",t.style.MozTransform="translate3d("+i+"px, 0px, 0px)",t.style.msTransform="translate3d("+i+"px, 0px, 0px)",e=n.xCurr)):s===!1&&(r+=n.yCurr-r,n.yCurr!==e&&(i=parseFloat(r/u.h),i=c.y*i,t.style.webkitTransform="translate3d( 0px, "+i+"px, 0px)",t.style.MozTransform="translate3d( 0px, "+i+"px, 0px)",t.style.msTransform="translate3d( 0px, "+i+"px, 0px)",e=n.yCurr))}function at(n){if(!n)throw"You need to pass an element!";rt(n)}var nt=27,n={xCurr:0,yCurr:0,xDest:0,yDest:0},s=!0,v,e,r=0,y,t,h={w:0,h:0},i,u={w:0,h:0},c={x:0,y:0},p;return tt(at,{resize:o,start:ut,stop:b})}(); 63/** 64 * jQuery.share - social media sharing plugin 65 * --- 66 * @author Carol Skelly (http://in1.com) 67 * @version 1.0 68 * @license MIT license (http://opensource.org/licenses/mit-license.php) 69 * --- 70 */ 71!function(n,t){var i=t.document;n.fn.share=function(r){var u={init:function(r){this.share.settings=n.extend({},this.share.defaults,r);var s=(this.share.settings,this.share.settings.networks),e=this.share.settings.theme,h=this.share.settings.orientation,u=this.share.settings.affix,c=this.share.settings.margin,l=this.share.settings.title||n(i).attr("title"),a=this.share.settings.urlToShare||n(location).attr("href"),o="";return n.each(n(i).find('meta[name="description"]'),function(t,i){o=n(i).attr("content")}
71),this.each(function(){var r,i=n(this),v=i.attr("id"),p=encodeURIComponent(a),y=l.replace("|",""),w=o.substring(0,250);s.forEach(function(t){r=f.networkDefs[t].url;r=r.replace("|u|",p).replace("|t|",y).replace("|d|",w).replace("|140|",y.substring(0,130));n("<a href='"+r+"' title='Share this page on "+t+"' class='pop share-"+e+" share-"+e+"-"+t+"'><\/a>").appendTo(i)});n("#"+v+".share-"+e).css("margin",c);"horizontal"!=h?n("#"+v+" a.share-"+e).css("display","block"):n("#"+v+" a.share-"+e).css("display","inline-block");"undefined"!=typeof u&&(i.addClass("share-affix"),-1!=u.indexOf("right")?(i.css("left","auto"),i.css("right","0px"),-1!=u.indexOf("center")&&i.css("top","40%")):-1!=u.indexOf("left center")&&i.css("top","40%"),-1!=u.indexOf("bottom")&&(i.css("bottom","0px"),i.css("top","auto"),-1!=u.indexOf("center")&&i.css("left","40%")));n(".pop").click(function(){return t.open(n(this).attr("href"),"t","toolbar=0,resizable=1,status=0,width=640,height=528"),!1})})}},f={networkDefs:{facebook:{url:"http://www.facebook.com/share.php?u=|u|"},twitter:{url:"https://twitter.com/share?via=in1.com&text=|140|"},linkedin:{url:"http://www.linkedin.com/shareArticle?mini=true&url=|u|&title=|t|&summary=|d|&source=in1.com"},in1:{url:"http://www.in1.com/cast?u=|u|",w:"490",h:"529"},tumblr:{url:"http://www.tumblr.com/share?v=3&u=|u|"},digg:{url:"http://digg.com/submit?url=|u|&title=|t|"},googleplus:{url:"https://plusone.google.com/_/+1/confirm?hl=en&url=|u|"},reddit:{url:"http://reddit.com/submit?url=|u|"},pinterest:{url:"http://pinterest.com/pin/create/button/?url=|u|&media=&description=|d|"},posterous:{url:"http://posterous.com/share?linkto=|u|&title=|t|"},stumbleupon:{url:"http://www.stumbleupon.com/submit?url=|u|&title=|t|"},email:{url:"mailto:?subject=|t|"}}};return u[r]?u[r].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof r&&r?void n.error('Method "'+r+'" does not exist in social plugin'):u.init.a
71pply(this,arguments)};n.fn.share.defaults={networks:["in1","facebook","twitter","linkedin"],theme:"icon",autoShow:!0,margin:"3px",orientation:"horizontal",useIn1:!0};n.fn.share.settings={}}(jQuery,window),function(n){n.isScrollToFixed=function(t){return!!n(t).data("ScrollToFixed")};n.ScrollToFixed=function(t,i){function ot(){r.trigger("preUnfixed.ScrollToFixed");o();r.trigger("unfixed.ScrollToFixed");l=-1;p=r.offset().top;h=r.offset().left;u.options.offsets&&(h+=r.offset().left-r.position().left);it==-1&&(it=h);f=r.css("position");y=!0;u.options.bottom!=-1&&(r.trigger("preFixed.ScrollToFixed"),k(),r.trigger("fixed.ScrollToFixed"))}function rt(){var n=u.options.limit;return n?typeof n=="function"?n.apply(r):n:0}function a(){return f==="fixed"}function ut(){return f==="absolute"}function c(){return!(a()||ut())}function k(){a()||(e.css({display:r.css("display"),width:r.outerWidth(!0),height:r.outerHeight(!0),float:r.css("float")}),cssOptions={"z-index":u.options.zIndex,position:"fixed",top:u.options.bottom==-1?w():"",bottom:u.options.bottom==-1?"":u.options.bottom,"margin-left":"0px"},u.options.dontSetWidth||(cssOptions.width=r.width()),r.css(cssOptions),r.addClass(u.options.baseClassName),u.options.className&&r.addClass(u.options.className),f="fixed")}function ft(){var n=rt(),t=h;u.options.removeOffsets&&(t="",n=n-p);cssOptions={position:"absolute",top:n,left:t,"margin-left":"0px",bottom:""};u.options.dontSetWidth||(cssOptions.width=r.width());r.css(cssOptions);f="absolute"}function o(){c()||(l=-1,e.css("display","none"),r.css({"z-index":tt,width:"",position:b,left:"",top:nt,"margin-left":""}),r.removeClass("scroll-to-fixed-fixed"),u.options.className&&r.removeClass(u.options.className),f=null)}function d(n){n!=l&&(r.css("left",h-n),l=n)}function w(){var n=u.options.marginTop;return n?typeof n=="function"?n.apply(r):n:0}function v(){var t;if(n.isScrollToFixed(r)){t=y;y?c()&&(p=r.offset().top,h=r.offset().left):ot();var f=n(window).scrollLeft(),e=n(window).scrollTop(),i=rt();u.options.minWidth&&n(window).width()<u.options.minWidth?c()&&t||(s(),r.trigger("preUnfixed.ScrollToFixed"),o(),r.trigger("unfixed.ScrollToFixed")):u.options.maxWidth&&n(window).width()>u.options.maxWidth?c()&&t||(s(),r.trigger("preUnfixed.ScrollToFixed"),o(),r.trigger("unfixed.ScrollToFixed")):u.options.bottom==-1?i>0&&e>=i-w()?ut()&&t||(s(),r.trigger("preAbsolute.ScrollToFixed"),ft(),r.trigger("unfixed.ScrollToFixed")):e>=p-w()?(a()&&t||(s(),r.trigger("preFixed.ScrollToFixed"),k(),l=-1,r.trigger("fixed.ScrollToFixed")),d(f)):c()&&t||(s(),r.trigger("preUnfixed.ScrollToFixed"),o(),r.trigger("unfixed.ScrollToFixed")):i>0?e+n(window).height()-r.outerHeight(!0)>=i-(w()||-st())?a()&&(s(),r.trigger("preUnfixed.ScrollToFixed"),b==="absolute"?ft():o(),r.trigger("unfixed.ScrollToFixed")):(a()||(s(),r.trigger("preFixed.ScrollToFixed"),k()),d(f),r.trigger("fixed.ScrollToFixed")):d(f)}}function st(){return u.options.bottom?u.options.bottom:0}function s(){var n=r.css("position");n=="absolute"?r.trigger("postAbsolute.ScrollToFixed"):n=="fixed"?r.trigger("postFixed.ScrollToFixed"):r.trigger("postUnfixed.ScrollToFixed")}var u=this;u.$el=n(t);u.el=t;u.$el.data("ScrollToFixed",u);var y=!1,r=u.$el,f,b,nt,tt,p=0,h=0,it=-1,l=-1,e=null;var g=function(){r.is(":visible")&&(y=!1,v())},et=function(){!window.requestAnimationFrame?v():requestAnimationFrame(v)},ct=function(){var n=document.body,t,i,r,u,f;return document.createElement&&n&&n.appendChild&&n.removeChild?(t=document.createElement("div"),!t.getBoundingClientRect)?null:(t.innerHTML="x",t.style.cssText="position:fixed;top:100px;",n.appendChild(t),i=n.style.height,r=n.scrollTop,n.style.height="3000px",n.scrollTop=500,u=t.getBoundingClientRect().top,n.style.height=i,f=u===100,n.removeChild(t),n.scrollTop=r,f):null},ht=function(n){n=n||window.event;n.preventDefault&&n.preventDefault();n.returnValue=!1};u.init=function(){u.options=n.extend({},n.ScrollToFixed.defaultOptions,i);tt=r.css("z-index");u.$el.css("z-index",u.options.zIndex);e=n("<div />");f=r.css("position");b=r.css("position");nt=r.css("top");c()&&u.$el.after(e);n(window).bind("resize.ScrollToFixed",g);n(window).bind("scroll.ScrollToFixed",et);"ontouchmove"in window&&n(window).bind("touchmove.ScrollToFixed",v);u.options.preFixed&&r.bind("preFixed.ScrollToFixed",u.options.preFixed);u.options.postFixed&&r.bind("postFixed.ScrollToFixed",u.options.postFixed);u.options.preUnfixed&&r.bind("preUnfixed.ScrollToFixed",u.options.preUnfixed);u.options.postUnfixed&&r.bind("postUnfixed.ScrollToFixed",u.options.postUnfixed);u.options.preAbsolute&&r.bind("preAbsolute.ScrollToFixed",u.options.preAbsolute);u.options.postAbsolute&&r.bind("postAbsolute.ScrollToFixed",u.options.postAbsolute);u.options.fixed&&r.bind("fixed.ScrollToFixed",u.options.fixed);u.options.unfixed&&r.bind("unfixed.ScrollToFixed",u.options.unfixed);u.options.spacerClass&&e.addClass(u.options.spacerClass);r.bind("resize.ScrollToFixed",function(){e.height(r.height())});r.bind("scroll.ScrollToFixed",function(){r.trigger("preUnfixed.ScrollToFixed");o();r.trigger("unfixed.ScrollToFixed");v()});r.bind("detach.ScrollToFixed",function(t){ht(t);r.trigger("preUnfixed.ScrollToFixed");o();r.trigger("unfixed.ScrollToFixed");n(window).unbind("resize.ScrollToFixed",g);n(window).unbind("scroll.ScrollToFixed",et);r.unbind(".ScrollToFixed");e.remove();u.$el.removeData("ScrollToFixed")});g()};u.init()};n.ScrollToFixed.defaultOptions={marginTop:0,limit:0,bottom:-1,zIndex:1e3,baseClassName:"scroll-to-fixed-fixed"};n.fn.scrollToFixed=function(t){return this.each(function(){new n.ScrollToFixed(this,t)})}}(jQuery),function(n){function e(){var e,t,r;u=!1;for(e in i)t=n(i[e]).filter(function(){return n(this).is(":appeared")}),t.trigger("appear",[t]),f&&(r=f.not(t),r.trigger("disappear",[r])),f=t}var i=[],r=!1,u=!1,o={interval:250,force_process:!1},t=n(window),f;n.expr[":"].appeared=function(i){var r=n(i);if(!r.is(":visible"))return!1;var u=t.scrollLeft(),f=t.scrollTop(),e=r.offset(),o=e.left,s=e.top;return s+r.height()>=f&&s-(r.data("appear-top-offset")||0)<=f+t.height()&&o+r.width()>
71=u&&o-(r.data("appear-left-offset")||0)<=u+t.width()?!0:!1};n.fn.extend({appear:function(t){var f=n.extend({},o,t||{}),h=this.selector||this,s;return r||(s=function(){u||(u=!0,setTimeout(e,f.interval))},n(window).scroll(s).resize(s),r=!0),f.force_process&&setTimeout(e,f.interval),i.push(h),n(h)}});n.extend({force_appear:function(){return r?(e(),!0):!1}})}(jQuery);typeof Object.create!="function"&&(Object.create=function(n){function t(){}return t.prototype=n,new t}),function(n,t,i){var r=function(n){var t=i.createElement("script"),r=i.getElementsByTagName("head")[0];t.src=location.protocol+"//www.youtube.com/iframe_api";r.appendChild(t);r=null;t=null;u(n)},u=function(i){typeof YT=="undefined"&&typeof t.loadingPlayer=="undefined"?(t.loadingPlayer=!0,t.dfd=n.Deferred(),t.onYouTubeIframeAPIReady=function(){t.onYouTubeIframeAPIReady=null;t.dfd.resolve("John");i()}):t.dfd.done(function(){i()})};YTPlayer={player:null,defaults:{ratio:16/9,videoId:"LSmgKRx5pBo",mute:!0,repeat:!0,width:n(t).width(),playButtonClass:"YTPlayer-play",pauseButtonClass:"YTPlayer-pause",muteButtonClass:"YTPlayer-mute",volumeUpClass:"YTPlayer-volume-up",volumeDownClass:"YTPlayer-volume-down",start:0,pauseOnScroll:!1,fitToBackground:!0,playerVars:{modestbranding:1,autoplay:1,controls:0,showinfo:0,wmode:"transparent",branding:0,rel:0,autohide:0,origin:t.location.origin},events:null},init:function(i,u){var f=this;f.userOptions=u;f.$body=n("body");f.$node=n(i);f.$window=n(t);f.defaults.events={onReady:function(n){f.onPlayerReady(n);f.options.pauseOnScroll&&f.pauseOnScroll();typeof f.options.callback=="function"&&f.options.callback.call(this)},onStateChange:function(n){n.data===1?f.$node.addClass("loaded"):n.data===0&&f.options.repeat&&f.player.seekTo(f.options.start)}};f.options=n.extend(!0,{},f.defaults,f.userOptions);f.ID=(new Date).getTime();f.holderID="YTPlayer-ID-"+f.ID;f.options.fitToBackground?f.createBackgroundVideo():f.createContainerVideo();f.$window.on("resize.YTplayer"+f.ID,function(){f.resize(f)});return r(f.onYouTubeIframeAPIReady.bind(f)),f.resize(f),f},pauseOnScroll:function(){var n=this;n.$window.on("scroll.YTplayer"+n.ID,function(){var t=n.player.getPlayerState();t===1&&n.player.pauseVideo()});n.$window.scrollStopped(function(){var t=n.player.getPlayerState();t===2&&n.player.playVideo()})},createContainerVideo:function(){var t=this,i=n('<div id="ytplayer-container'+t.ID+'" > <div id="'+t.holderID+'" class="ytplayer-player"><\/div> <\/div> <div id="ytplayer-shield"><\/div>');t.$node.append(i);t.$YTPlayerString=i;i=null},createBackgroundVideo:function(){var t=this,i=n('<div id="ytplayer-container'+t.ID+'" class="ytplayer-container background"> <div id="'+t.holderID+'" class="ytplayer-player"><\/div> <\/div> <div id="ytplayer-shield"><\/div>');t.$node.append(i);t.$YTPlayerString=i;i=null},resize:function(i){var r=n(t);i.options.fitToBackground||(r=i.$node);var u=r.width(),f,e=r.height(),s,o=n("#"+i.holderID);u/i.options.ratio<e?(f=Math.ceil(e*i.options.ratio),o.width(f).height(e).css({left:(u-f)/2,top:0})):(s=Math.ceil(u/i.options.ratio),o.width(u).height(s).css({left:0,top:0}));o=null;r=null},onYouTubeIframeAPIReady:function(){var n=this;n.player=new t.YT.Player(n.holderID,{width:n.options.width,height:Math.ceil(n.options.width/n.options.ratio),videoId:n.options.videoId,playerVars:n.options.playerVars,events:n.options.events})},onPlayerReady:function(n){this.options.mute&&n.target.mute();n.target.playVideo()},getPlayer:function(){return this.player},destroy:function(){var i=this;i.$node.removeData("yt-init").removeData("ytPlayer").removeClass("loaded");i.$YTPlayerString.remove();n(t).off("resize.YTplayer"+i.ID);n(t).off("scroll.YTplayer"+i.ID);i.$body=null;i.$node=null;i.$YTPlayerString=null;i.player.destroy();i.player=null}};n.fn.scrollStopped=function(t){var i=n(this),r=this;i.scroll(function(){i.data("scrollTimeout")&&clearTimeout(i.data("scrollTimeout"));i.data("scrollTimeout",setTimeout(t,250,r))})};n.fn.YTPlayer=function(t){return this.each(function(){var i=this,r;n(i).data("yt-init",!0);r=Object.create(YTPlayer);r.init(i,t);n.data(i,"ytPlayer",r)})}}(jQuery,window,document),function(n){"function"==typeof define&&define.amd?define(["jquery"],n):n(jQuery)}(function(n){var o=!1,c=!1,w=0,b=2e3,u=0,a=["webkit","ms","moz","o"],t=window.requestAnimationFrame||!1,i=window.cancelAnimationFrame||!1,v,s,f,e;if(!t)for(v in a)s=a[v],t||(t=window[s+"RequestAnimationFrame"]),i||(i=window[s+"CancelAnimationFrame"]||window[s+"CancelRequestAnimationFrame"]);var r=window.MutationObserver||window.WebKitMutationObserver||!1,y={zindex:"auto",cursoropacitymin:0,cursoropacitymax:1,cursorcolor:"#424242",cursorwidth:"5px",cursorborder:"1px solid #fff",cursorborderradiu
71s:"5px",scrollspeed:60,mousescrollstep:24,touchbehavior:!1,hwacceleration:!0,usetransition:!0,boxzoom:!1,dblclickzoom:!0,gesturezoom:!0,grabcursorenabled:!0,autohidemode:!0,background:"",iframeautoresize:!0,cursorminheight:32,preservenativescrolling:!0,railoffset:!1,railhoffset:!1,bouncescroll:!0,spacebarenabled:!0,railpadding:{top:0,right:0,left:0,bottom:0},disableoutline:!0,horizrailenabled:!0,railalign:"right",railvalign:"bottom",enabletranslate3d:!0,enablemousewheel:!0,enablekeyboard:!0,smoothscroll:!0,sensitiverail:!0,enablemouselockapi:!0,cursorfixedheight:!1,directionlockdeadzone:6,hidecursordelay:400,nativeparentscrolling:!0,enablescrollonselection:!0,overflowx:!0,overflowy:!0,cursordragspeed:.3,rtlmode:"auto",cursordragontouch:!1,oneaxismousemode:"auto",scriptpath:function(){var n=document.getElementsByTagName("script"),n=n[n.length-1].src.split("?")[0];return 0<n.split("/").length?n.split("/").slice(0,-1).join("/")+"/":""}(),preventmultitouchscrolling:!0},l=!1,k=function(){if(l)return l;var e=document.createElement("DIV"),i=e.style,t=navigator.userAgent,u=navigator.platform,n={haspointerlock:"pointerLockElement"in document||"webkitPointerLockElement"in document||"mozPointerLockElement"in document};for(n.isopera=("opera"in window),n.isopera12=n.isopera&&("getUserMedia"in navigator),n.isoperamini="[object OperaMini]"===Object.prototype.toString.call(window.operamini),n.isie=("all"in document)&&("attachEvent"in e)&&!n.isopera,n.isieold=n.isie&&!("msInterpolationMode"in i),n.isie7=n.isie&&!n.isieold&&(!("documentMode"in document)||7==document.documentMode),n.isie8=n.isie&&("documentMode"in document)&&8==document.documentMode,n.isie9=n.isie&&("performance"in window)&&9<=document.documentMode,n.isie10=n.isie&&("performance"in window)&&10==document.documentMode,n.isie11=("msRequestFullscreen"in e)&&11<=document.documentMode,n.isie9mobile=/iemobile.9/i.test(t),n.isie9mobile&&(n.isie9=!1),n.isie7mobile=!n.isie9mobile&&n.isie7&&/iemobile/i.test(t),n.ismozilla=("MozAppearance"in i),n.iswebkit=("WebkitAppearance"in i),n.ischrome=("chrome"in window),n.ischrome22=n.ischrome&&n.haspointerlock,n.ischrome26=n.ischrome&&("transition"in i),n.cantouch=("ontouchstart"in document.documentElement)||("ontouchstart"in window),n.hasmstouch=window.MSPointerEvent||!1,n.hasw3ctouch=window.PointerEvent||!1,n.ismac=/^mac$/i.test(u),n.isios=n.cantouch&&/iphone|ipad|ipod/i.test(u),n.isios4=n.isios&&!("seal"in Object),n.isios7=n.isios&&("webkitHidden"in document),n.isandroid=/android/i.test(t),n.haseventlistener=("addEventListener"in e),n.trstyle=!1,n.hastransform=!1,n.hastranslate3d=!1,n.transitionstyle=!1,n.hastransition=!1,n.transitionend=!1,u=["transform","msTransform","webkitTransform","MozTransform","OTransform"],t=0;t<u.length;t++)if("undefined"!=typeof i[u[t]]){n.trstyle=u[t];break}n.hastransform=!!n.trstyle;n.hastransform&&(i[n.trstyle]="translate3d(1px,2px,3px)",n.hastranslate3d=/translate3d/.test(i[n.trstyle]));n.transitionstyle=!1;n.prefixstyle="";n.transitionend=!1;for(var u="transition webkitTransition msTransition MozTransition OTransition OTransition KhtmlTransition".split(" "),f=" -webkit- -ms- -moz- -o- -o -khtml-".split(" "),o="transitionend webkitTransitionEnd msTransitionEnd transitionend otransitionend oTransitionEnd KhtmlTransitionEnd".split(" "),t=0;t<u.length;t++)if(u[t]in i){n.transitionstyle=u[t];n.prefixstyle=f[t];n.transitionend=o[t];break}n.ischrome26&&(n.prefixstyle=f[1]);n.hastransition=n.transitionstyle;n:{for(t=["-webkit-grab","-moz-grab","grab"],(n.ischrome&&!n.ischrome22||n.isie)&&(t=[]),u=0;u<t.length;u++)if(f=t[u],i.cursor=f,i.cursor==f){i=f;break n}i="url(//mail.google.com/mail/images/2/openhand.cur),n-resize"}return n.cursorgrabvalue=i,n.hasmousecapture="setCapture"in e,n.hasMutationObserver=!1!==r,l=n},d=function(f,e){function nt(){var n=s.doc.css(h.trstyle);return n&&"matrix"==n.substr(0,6)?n.replace(/^.*\((.*)\)$/g,"$1").replace(/px/g,"").split(/, +/):!1}function ut(){var n=s.win,t;if("zIndex"in n)return n.zIndex();for(;0<n.length&&9!=n[0].nodeType;){if(t=n.css("zIndex"),!isNaN(t)&&0!=t)return parseInt(t);n=n.parent()}return!1}function l(n,t,i){return t=n.css(t),n=parseFloat(t),isNaN(n)?(n=rt[t]||0,i=3==n?i?s.win.outerHeight()-s.win.innerHeight():s.win.outerWidth()-s.win.innerWidth():1,s.isie8&&n&&(n+=1),i?n:0):n}function tt(n,t,i,r){s._bind(n,t,function(r){r=r?r:window.event;var u={original:r,target:r.target||r.srcElement,type:"wheel",deltaMode:"MozMousePixelScroll"==r.type?0:1,deltaX:0,deltaZ:0,preventDefault:function(){return r.preventDefault?r.preventDefault():r.returnValue=!1,!1},stopImmediatePropagation:function(){r.stopImmediatePropagation?r.stopImmediatePropagation():r.cancelBubble=!0}};return"mousewheel"==t?(u.deltaY=-.025*r.wheelDelta,r.wheelDeltaX&&(u.deltaX=-.025*r.wheelDeltaX)):u.deltaY=r.detail,i.call(n,u)},r)}function it(n,t,i){var r,u;if(0==n.deltaMode?(r=-Math.floor(s.opt.mousescrollstep/54*n.deltaX),u=-Math.floor(s.opt.mousescrollstep/54*n.deltaY)):1==n.deltaMode&&(r=-Math.floor(n.deltaX*s.opt.mousescrollstep),u=-Math.floor(n.deltaY*s.opt.mousescrollstep)),t&&s.opt.oneaxismousemode&&0==r&&u&&(r=u,u=0,i&&(0>r?s.getScrollLeft()>=s.page.maxw:0>=s.getScrollLeft())&&(u=r,r=0)),r&&(s.scrollmom&&s.scrollmom.stop(),s.lastdeltax+=r,s.debounced("mousewheelx",function(){var n=s.lastdeltax;s.lastdeltax=0;s.rail.drag||s.doScrollLeftBy(n)},15)),u){if(s.opt.nativeparentscrolling&&i&&!s.ispage&&!s.zoomactive)if(0>u){if(s.getScrollTop()>=s.page.maxh)return!0}else if(0>=s.getScrollTop())return!0;s.scrollmom&&s.scrollmom.stop();s.lastdeltay+=u;s.debounced("mousewheely",function(){var n=s.lastdeltay;s.lastdeltay=0;s.rail.drag||s.doScrollBy(n)},15)}return n.stopImmediatePropagation(),n.preventDefault()}var s=this,v,h,d,a,g,rt;if(this.version="3.6.0",this.name="nicescroll",this.me=e,this.opt={doc:n("body"),win:!1},n.extend(this.opt,y),this.opt.snapbackspeed=80,f)for(v in s.opt)"undefined"!=typeof f[v]&&(s.opt[v]=f[v]);this.iddoc=(this.doc=s.opt.doc)&&this.doc[0]?this.doc[0].id||"":"";this.ispage=/^BODY|HTML/.test(s.opt.win?s.opt.win[0].nodeName:this.doc[0].nodeName);this.haswrapper=!1!==s.opt.win;this.win=s.opt.win||(this.ispage?n(window):this.doc);this.docscroll=this.ispage&&!this.haswrapper?n(window):this.win;this.body=n("body");
71this.iframe=this.isfixed=this.viewport=!1;this.isiframe="IFRAME"==this.doc[0].nodeName&&"IFRAME"==this.win[0].nodeName;this.istextarea="TEXTAREA"==this.win[0].nodeName;this.forcescreen=!1;this.canshowonmouseevent="scroll"!=s.opt.autohidemode;this.page=this.view=this.onzoomout=this.onzoomin=this.onscrollcancel=this.onscrollend=this.onscrollstart=this.onclick=this.ongesturezoom=this.onkeypress=this.onmousewheel=this.onmousemove=this.onmouseup=this.onmousedown=!1;this.scroll={x:0,y:0};this.scrollratio={x:0,y:0};this.cursorheight=20;this.scrollvaluemax=0;this.isrtlmode="auto"==this.opt.rtlmode?"rtl"==(this.win[0]==window?this.body:this.win).css("direction"):!0===this.opt.rtlmode;this.observerbody=this.observerremover=this.observer=this.scrollmom=this.scrollrunning=!1;do this.id="ascrail"+b++;while(document.getElementById(this.id));this.hasmousefocus=this.hasfocus=this.zoomactive=this.zoom=this.selectiondrag=this.cursorfreezed=this.cursor=this.rail=!1;this.visibility=!0;this.hidden=this.locked=this.railslocked=!1;this.cursoractive=!0;this.wheelprevented=!1;this.overflowx=s.opt.overflowx;this.overflowy=s.opt.overflowy;this.nativescrollingarea=!1;this.checkarea=0;this.events=[];this.saved={};this.delaylist={};this.synclist={};this.lastdeltay=this.lastdeltax=0;this.detected=k();h=n.extend({},this.detected);this.ishwscroll=(this.canhwscroll=h.hastransform&&s.opt.hwacceleration)&&s.haswrapper;this.hasreversehr=this.isrtlmode&&!h.iswebkit;this.istouchcapable=!1;h.cantouch&&!h.isios&&!h.isandroid&&(h.iswebkit||h.ismozilla)&&(this.istouchcapable=!0,h.cantouch=!1);s.opt.enablemouselockapi||(h.hasmousecapture=!1,h.haspointerlock=!1);this.debounced=function(n,t,i){var r=s.delaylist[n];s.delaylist[n]=t;r||setTimeout(function(){var t=s.delaylist[n];s.delaylist[n]=!1;t.call(s)},i)};d=!1;this.synched=function(n,i){return s.synclist[n]=i,function(){d||(t(function(){var n,t;d=!1;for(n in s.synclist)t=s.synclist[n],t&&t.call(s),s.synclist[n]=!1}),d=!0)}(),n};this.unsynched=function(n){s.synclist[n]&&(s.synclist[n]=!1)};this.css=function(n,t){for(var i in t)s.saved.css.push([n,i,n.css(i)]),n.css(i,t[i])};this.scrollTop=function(n){return"undefined"==typeof n?s.getScrollTop():s.setScrollTop(n)};this.scrollLeft=function(n){return"undefined"==typeof n?s.getScrollLeft():s.setScrollLeft(n)};a=function(n,t,i,r,u,f,e){this.st=n;this.ed=t;this.spd=i;this.p1=r||0;this.p2=u||1;this.p3=f||0;this.p4=e||1;this.ts=(new Date).getTime();this.df=this.ed-this.st};a.prototype={B2:function(n){return 3*n*n*(1-n)},B3:function(n){return 3*n*(1-n)*(1-n)},B4:function(n){return(1-n)*(1-n)*(1-n)},getNow:function(){var n=1-((new Date).getTime()-this.ts)/this.spd,t=this.B2(n)+this.B3(n)+this.B4(n);return 0>n?this.ed:this.st+Math.round(this.df*t)},update:function(n,t){return this.st=this.getNow(),this.ed=n,this.spd=t,this.ts=(new Date).getTime(),this.df=this.ed-this.st,this}};this.ishwscroll?(this.doc.translate={x:0,y:0,tx:"0px",ty:"0px"},h.hastranslate3d&&h.isios&&this.doc.css("-webkit-backface-visibility","hidden"),this.getScrollTop=function(n){if(!n){if(n=nt())return 16==n.length?-n[13]:-n[5];if(s.timerscroll&&s.timerscroll.bz)return s.timerscroll.bz.getNow()}return s.doc.translate.y},this.getScrollLeft=function(n){if(!n){if(n=nt())return 16==n.length?-n[12]:-n[4];if(s.timerscroll&&s.timerscroll.bh)return s.timerscroll.bh.getNow()}return s.doc.translate.x},this.notifyScrollEvent=function(n){var t=document.createEvent("UIEvents");t.initUIEvent("scroll",!1,!0,window,1);t.niceevent=!0;n.dispatchEvent(t)},g=this.isrtlmode?1:-1,h.hastranslate3d&&s.opt.enabletranslate3d?(this.setScrollTop=function(n,t){s.doc.translate.y=n;s.doc.translate.ty=-1*n+"px";s.doc.css(h.trstyle,"translate3d("+s.doc.translate.tx+","+s.doc.translate.ty+",0px)");t||s.notifyScrollEvent(s.win[0])},this.setScrollLeft=function(n,t){s.doc.translate.x=n;s.doc.translate.tx=n*g+"px";s.doc.css(h.trstyle,"translate3d("+s.doc.translate.tx+","+s.doc.translate.ty+",0px)");t||s.notifyScrollEvent(s.win[0])}):(this.setScrollTop=function(n,t){s.doc.translate.y=n;s.doc.translate.ty=-1*n+"px";s.doc.css(h.trstyle,"translate("+s.doc.translate.tx+","+s.doc.translate.ty+")");t||s.notifyScrollEvent(s.win[0])},this.setScrollLeft=function(n,t){s.doc.translate.x=n;s.doc.translate.tx=n*g+"px";s.doc.css(h.trstyle,"translate("+s.doc.translate.tx+","+s.doc.translate.ty+")");t||s.notifyScrollEvent(s.win[0])})):(this.getScrollTop=function(){return s.docscroll.scrollTop()},this.setScrollTop=function(n){return s.docscroll.scrollTop(n)}
71,this.getScrollLeft=function(){return s.detected.ismozilla&&s.isrtlmode?Math.abs(s.docscroll.scrollLeft()):s.docscroll.scrollLeft()},this.setScrollLeft=function(n){return s.docscroll.scrollLeft(s.detected.ismozilla&&s.isrtlmode?-n:n)});this.getTarget=function(n){return n?n.target?n.target:n.srcElement?n.srcElement:!1:!1};this.hasParent=function(n,t){if(!n)return!1;for(var i=n.target||n.srcElement||n||!1;i&&i.id!=t;)i=i.parentNode||!1;return!1!==i};rt={thin:1,medium:3,thick:5};this.getDocumentScrollOffset=function(){return{top:window.pageYOffset||document.documentElement.scrollTop,left:window.pageXOffset||document.documentElement.scrollLeft}};this.getOffset=function(){if(s.isfixed){var n=s.win.offset(),t=s.getDocumentScrollOffset();return n.top-=t.top,n.left-=t.left,n}return(n=s.win.offset(),!s.viewport)?n:(t=s.viewport.offset(),{top:n.top-t.top,left:n.left-t.left})};this.updateScrollBar=function(n){if(s.ishwscroll)s.rail.css({height:s.win.innerHeight()-(s.opt.railpadding.top+s.opt.railpadding.bottom)}),s.railh&&s.railh.css({width:s.win.innerWidth()-(s.opt.railpadding.left+s.opt.railpadding.right)});else{var u=s.getOffset(),r=u.top,i=u.left-(s.opt.railpadding.left+s.opt.railpadding.right),r=r+l(s.win,"border-top-width",!0),i=i+(s.rail.align?s.win.outerWidth()-l(s.win,"border-right-width")-s.rail.width:l(s.win,"border-left-width")),t=s.opt.railoffset;t&&(t.top&&(r+=t.top),s.rail.align&&t.left&&(i+=t.left));s.railslocked||s.rail.css({top:r,left:i,height:(n?n.h:s.win.innerHeight())-(s.opt.railpadding.top+s.opt.railpadding.bottom)});s.zoom&&s.zoom.css({top:r+1,left:1==s.rail.align?i-20:i+s.rail.width+4});s.railh&&!s.railslocked&&(r=u.top,i=u.left,(t=s.opt.railhoffset)&&(t.top&&(r+=t.top),t.left&&(i+=t.left)),n=s.railh.align?r+l(s.win,"border-top-width",!0)+s.win.innerHeight()-s.railh.height:r+l(s.win,"border-top-width",!0),i+=l(s.win,"border-left-width"),s.railh.css({top:n-(s.opt.railpadding.top+s.opt.railpadding.bottom),left:i,width:s.railh.width}))}};this.doRailClick=function(n,t,i){var r;s.railslocked||(s.cancelEvent(n),t?(t=i?s.doScrollLeft:s.doScrollTop,r=i?(n.pageX-s.railh.offset().left-s.cursorwidth/2)*s.scrollratio.x:(n.pageY-s.rail.offset().top-s.cursorheight/2)*s.scrollratio.y,t(r)):(t=i?s.doScrollLeftBy:s.doScrollBy,r=i?s.scroll.x:s.scroll.y,n=i?n.pageX-s.railh.offset().left:n.pageY-s.rail.offset().top,i=i?s.view.w:s.view.h,t(r>=n?i:-i)))};s.hasanimationframe=t;s.hascancelanimationframe=i;s.hasanimationframe?s.hascancelanimationframe||(i=function(){s.cancelAnimationFrame=!0}):(t=function(n){return setTimeout(n,15-Math.floor(+new Date/1e3)%16)},i=clearInterval);this.init=function(){var e,f,b,l,a,k,i,d,v,g,t,y;if(s.saved.css=[],h.isie7mobile||h.isoperamini)return!0;if(h.hasmstouch&&s.css(s.ispage?n("html"):s.win,{"-ms-touch-action":"none"}),s.zindex="auto",s.zindex=s.ispage||"auto"!=s.opt.zindex?s.opt.zindex:ut()||"auto",!s.ispage&&"auto"!=s.zindex&&s.zindex>u&&(u=s.zindex),s.isie&&0==s.zindex&&"auto"==s.opt.zindex&&(s.zindex="auto"),!s.ispage||!h.cantouch&&!h.isieold&&!h.isie9mobile){e=s.docscroll;s.ispage&&(e=s.haswrapper?s.win:s.doc);h.isie9mobile||s.css(e,{"overflow-y":"hidden"});s.ispage&&h.isie7&&("BODY"==s.doc[0].nodeName?s.css(n("html"),{"overflow-y":"hidden"}):"HTML"==s.doc[0].nodeName&&s.css(n("body"),{"overflow-y":"hidden"}));!h.isios||s.ispage||s.haswrapper||s.css(n("body"),{"-webkit-overflow-scrolling":"touch"});f=n(document.createElement("div"));f.css({position:"relative",top:0,float:"right",width:s.opt.cursorwidth,height:"0px","background-color":s.opt.cursorcolor,border:s.opt.cursorborder,"background-clip":"padding-box","-webkit-border-radius":s.opt.cursorborderradius,"-moz-border-radius":s.opt.cursorborderradius,"border-radius":s.opt.cursorborderradius});
71f.hborder=parseFloat(f.outerHeight()-f.innerHeight());f.addClass("nicescroll-cursors");s.cursor=f;t=n(document.createElement("div"));t.attr("id",s.id);t.addClass("nicescroll-rails nicescroll-rails-vr");a=["left","right","top","bottom"];for(k in a)l=a[k],(b=s.opt.railpadding[l])?t.css("padding-"+l,b+"px"):s.opt.railpadding[l]=0;t.append(f);t.width=Math.max(parseFloat(s.opt.cursorwidth),f.outerWidth());t.css({width:t.width+"px",zIndex:s.zindex,background:s.opt.background,cursor:"default"});t.visibility=!0;t.scrollable=!0;t.align="left"==s.opt.railalign?0:1;s.rail=t;f=s.rail.drag=!1;!s.opt.boxzoom||s.ispage||h.isieold||(f=document.createElement("div"),s.bind(f,"click",s.doZoom),s.bind(f,"mouseenter",function(){s.zoom.css("opacity",s.opt.cursoropacitymax)}),s.bind(f,"mouseleave",function(){s.zoom.css("opacity",s.opt.cursoropacitymin)}),s.zoom=n(f),s.zoom.css({cursor:"pointer","z-index":s.zindex,backgroundImage:"url("+s.opt.scriptpath+"zoomico.png)",height:18,width:18,backgroundPosition:"0px 0px"}),s.opt.dblclickzoom&&s.bind(s.win,"dblclick",s.doZoom),h.cantouch&&s.opt.gesturezoom&&(s.ongesturezoom=function(n){return 1.5<n.scale&&s.doZoomIn(n),.8>n.scale&&s.doZoomOut(n),s.cancelEvent(n)},s.bind(s.win,"gestureend",s.ongesturezoom)));s.railh=!1;s.opt.horizrailenabled&&(s.css(e,{"overflow-x":"hidden"}),f=n(document.createElement("div")),f.css({position:"absolute",top:0,height:s.opt.cursorwidth,width:"0px","background-color":s.opt.cursorcolor,border:s.opt.cursorborder,"background-clip":"padding-box","-webkit-border-radius":s.opt.cursorborderradius,"-moz-border-radius":s.opt.cursorborderradius,"border-radius":s.opt.cursorborderradius}),h.isieold&&f.css({overflow:"hidden"}),f.wborder=parseFloat(f.outerWidth()-f.innerWidth()),f.addClass("nicescroll-cursors"),s.cursorh=f,i=n(document.createElement("div")),i.attr("id",s.id+"-hr"),i.addClass("nicescroll-rails nicescroll-rails-hr"),i.height=Math.max(parseFloat(s.opt.cursorwidth),f.outerHeight()),i.css({height:i.height+"px",zIndex:s.zindex,background:s.opt.background}),i.append(f),i.visibility=!0,i.scrollable=!0,i.align="top"==s.opt.railvalign?0:1,s.railh=i,s.railh.drag=!1);s.ispage?(t.css({position:"fixed",top:"0px",height:"100%"}),t.align?t.css({right:"0px"}):t.css({left:"0px"}),s.body.append(t),s.railh&&(i.css({position:"fixed",left:"0px",width:"100%"}),i.align?i.css({bottom:"0px"}):i.css({top:"0px"}),s.body.append(i))):(s.ishwscroll?("static"==s.win.css("position")&&s.css(s.win,{position:"relative"}),e="HTML"==s.win[0].nodeName?s.body:s.win,n(e).scrollTop(0).scrollLeft(0),s.zoom&&(s.zoom.css({position:"absolute",top:1,right:0,"margin-right":t.width+4}),e.append(s.zoom)),t.css({position:"absolute",top:0}),t.align?t.css({right:0}):t.css({left:0}),e.append(t),i&&(i.css({position:"absolute",left:0,bottom:0}),i.align?i.css({bottom:0}):i.css({top:0}),e.append(i))):(s.isfixed="fixed"==s.win.css("position"),e=s.isfixed?"fixed":"absolute",s.isfixed||(s.viewport=s.getViewport(s.win[0])),s.viewport&&(s.body=s.viewport,0==/fixed|absolute/.test(s.viewport.css("position"))&&s.css(s.viewport,{position:"relative"})),t.css({position:e}),s.zoom&&s.zoom.css({position:e}),s.updateScrollBar(),s.body.append(t),s.zoom&&s.body.append(s.zoom),s.railh&&(i.css({position:e}),s.body.append(i))),h.isios&&s.css(s.win,{"-webkit-tap-highlight-color":"rgba(0,0,0,0)","-webkit-touch-callout":"none"}),h.isie&&s.opt.disableoutline&&s.win.attr("hideFocus","true"),h.iswebkit&&s.opt.disableoutline&&s.win.css({outline:"none"}));!1===s.opt.autohidemode?(s.autohidedom=!1,s.rail.css({opacity:s.opt.cursoropacitymax}),s.railh&&s.railh.css({opacity:s.opt.cursoropacitymax})):!0===s.opt.autohidemode||"leave"===s.opt.autohidemode?(s.autohidedom=n().add(s.rail),h.isie8&&(s.autohidedom=s.autohidedom.add(s.cursor)),s.railh&&(s.autohidedom=s.autohidedom.add(s.railh)),s.railh&&h.isie8&&(s.autohidedom=s.autohidedom.add(s.cursorh))):"scroll"==s.opt.autohidemode?(s.autohidedom=n().add(s.rail),s.railh&&(s.autohidedom=s.autohidedom.add(s.railh))):"cursor"==s.opt.autohidemode?(s.autohidedom=n().add(s.cursor),s.railh&&(s.autohidedom=s.autohidedom.add(s.cursorh))):"hidden"==s.opt.autohidemode&&(s.auto
71hidedom=!1,s.hide(),s.railslocked=!1);h.isie9mobile?(s.scrollmom=new p(s),s.onmangotouch=function(){var n=s.getScrollTop(),t=s.getScrollLeft(),i,r;if(n==s.scrollmom.lastscrolly&&t==s.scrollmom.lastscrollx)return!0;if(i=n-s.mangotouch.sy,r=t-s.mangotouch.sx,0!=Math.round(Math.sqrt(Math.pow(r,2)+Math.pow(i,2)))){var f=0>i?-1:1,e=0>r?-1:1,u=+new Date;s.mangotouch.lazy&&clearTimeout(s.mangotouch.lazy);80<u-s.mangotouch.tm||s.mangotouch.dry!=f||s.mangotouch.drx!=e?(s.scrollmom.stop(),s.scrollmom.reset(t,n),s.mangotouch.sy=n,s.mangotouch.ly=n,s.mangotouch.sx=t,s.mangotouch.lx=t,s.mangotouch.dry=f,s.mangotouch.drx=e,s.mangotouch.tm=u):(s.scrollmom.stop(),s.scrollmom.update(s.mangotouch.sx-r,s.mangotouch.sy-i),s.mangotouch.tm=u,i=Math.max(Math.abs(s.mangotouch.ly-n),Math.abs(s.mangotouch.lx-t)),s.mangotouch.ly=n,s.mangotouch.lx=t,2<i&&(s.mangotouch.lazy=setTimeout(function(){s.mangotouch.lazy=!1;s.mangotouch.dry=0;s.mangotouch.drx=0;s.mangotouch.tm=0;s.scrollmom.doMomentum(30)},100)))}},t=s.getScrollTop(),i=s.getScrollLeft(),s.mangotouch={sy:t,ly:t,dry:0,sx:i,lx:i,drx:0,lazy:!1,tm:0},s.bind(s.docscroll,"scroll",s.onmangotouch)):((h.cantouch||s.istouchcapable||s.opt.touchbehavior||h.hasmstouch)&&(s.scrollmom=new p(s),s.ontouchstart=function(t){var i,r;if(t.pointerType&&2!=t.pointerType&&"touch"!=t.pointerType)return!1;if(s.hasmoving=!1,!s.railslocked){if(h.hasmstouch)for(i=t.target?t.target:!1;i;){if(r=n(i).getNiceScroll(),0<r.length&&r[0].me==s.me)break;if(0<r.length)return!1;if("DIV"==i.nodeName&&i.id==s.id)break;i=i.parentNode?i.parentNode:!1}if(s.cancelScroll(),(i=s.getTarget(t))&&/INPUT/i.test(i.nodeName)&&/range/i.test(i.type))return s.stopPropagation(t);if(!("clientX"in t)&&"changedTouches"in t&&(t.clientX=t.changedTouches[0].clientX,t.clientY=t.changedTouches[0].clientY),s.forcescreen&&(r=t,t={original:t.original?t.original:t},t.clientX=r.screenX,t.clientY=r.screenY),s.rail.drag={x:t.clientX,y:t.clientY,sx:s.scroll.x,sy:s.scroll.y,st:s.getScrollTop(),sl:s.getScrollLeft(),pt:2,dl:!1},s.ispage||!s.opt.directionlockdeadzone)s.rail.drag.dl="f";else{var r=n(window).width(),u=n(window).height(),f=Math.max(document.body.scrollWidth,document.documentElement.scrollWidth),e=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight),u=Math.max(0,e-u),r=Math.max(0,f-r);s.rail.drag.ck=!s.rail.scrollable&&s.railh.scrollable?0<u?"v":!1:s.rail.scrollable&&!s.railh.scrollable?0<r?"h":!1:!1;s.rail.drag.ck||(s.rail.drag.dl="f")}if(s.opt.touchbehavior&&s.isiframe&&h.isie&&(r=s.win.position(),s.rail.drag.x+=r.left,s.rail.drag.y+=r.top),s.hasmoving=!1,s.lastmouseup=!1,s.scrollmom.reset(t.clientX,t.clientY),!h.cantouch&&!this.istouchcapable&&!t.pointerType){if(!i||!/INPUT|SELECT|TEXTAREA/i.test(i.nodeName))return!s.ispage&&h.hasmousecapture&&i.setCapture(),s.opt.touchbehavior?(i.onclick&&!i._onclick&&(i._onclick=i.onclick,i.onclick=function(n){if(s.hasmoving)return!1;i._onclick.call(this,n)}),s.cancelEvent(t)):s.stopPropagation(t);/SUBMIT|CANCEL|BUTTON/i.test(n(i).attr("type"))&&(pc={tg:i,click:!1},s.preventclick=pc)}}},s.ontouchend=function(n){if(!s.rail.drag)return!0;if(2==s.rail.drag.pt){if(n.pointerType&&2!=n.pointerType&&"touch"!=n.pointerType)return!1;if(s.scrollmom.doMomentum(),s.rail.drag=!1,s.hasmoving&&(s.lastmouseup=!0,s.hideCursor(),h.hasmousecapture&&document.releaseCapture(),!h.cantouch))return s.cancelEvent(n)}else if(1==s.rail.drag.pt)return s.onmouseup(n)},d=s.opt.touchbehavior&&s.isiframe&&!h.hasmousecapture,s.ontouchmove=function(t,i){var r,e,c,f,o,l;if(!s.rail.drag||t.targetTouches&&s.opt.preventmultitouchscrolling&&1<t.targetTouches.length||t.pointerType&&2!=t.pointerType&&"touch"!=t.pointerType)return!1;if(2==s.rail.drag.pt){if(h.cantouch&&h.isios&&"undefined"==typeof t.original)return!0;s.hasmoving=!0;s.preventclick&&!s.preventclick.click&&(s.preventclick.click=s.preventclick.tg.onclick||!1,s.preventclick.tg.onclick=s.onpreventclick);t=n.extend({original:t},t);"changedTouches"in t&&(t.clientX=t.changedTouches[0].clientX,t.clientY=t.changedTouches[0].clientY);s.forcescreen&&(e=t,t={original:t.original?t.original:t},t.clientX=e.screenX,t.clientY=e.screenY);e=r=0;d&&!i&&(r=s.win.position(),e=-r.left,r=-r.top);c=t.clientY+r;r=c-s.rail.drag.y;var a=t.clientX+e,o=a-s.rail.drag.x,u=s.rail.drag.st-r;if(s.ishwscroll&&s.opt.bouncescroll?0>u?u=Math.round(u/2):u>s.page.maxh&&(u=s.page.maxh+Math.round((u-s.page.maxh)/2)):(0>u&&(c=u=0),u>s.page.maxh&&(u=s.page.maxh,c=0)),s.railh&&s.railh.scrollable&&(f=s.isrtlmode?o-s.rail.drag.sl:s.rail.drag.sl-o,s.ishwscroll&&s.opt.bouncescroll?0>f?f=Math.round(f/2):f>s.page.maxw&&(f=s.page.maxw+Math.round((f-s.page.maxw)/2)):(0>f&&(a=f=0),f>s.page.maxw&&(f=s.page.maxw,a=0))),e=!1,s.rail.drag.dl)e=!0,"v"==s.rail.drag.dl?f=s.rail.drag.sl:"h"==s.rail.drag.dl&&(u=s.rail.drag.st);else if(r=Math.abs(r),o=Math.abs(o),l=s.opt.directionlockdeadzone,"v"==s.rail.drag.ck){if(r>l&&o<=.3*r)return s.rail.drag=!1,!0;o>l&&(s.rail.drag.dl="f",n("body").scrollTop(n("body").scrollTop()))}else if("h"==s.rail.drag.ck){if(o>l&&r<=.3*o)return s.rail.drag=!1,!0;r>l&&(s.rail.drag.dl="f",n("body").scrollLeft(n("body").scrollLeft()))}if(s.synched("touchmove",function(){s.rail.drag&&2==s.rail.drag.pt&&(s.prepareTransition&&s.prepareTransition(0),s.rail.scrollable&&s.setScrollTop(u),s.scrollmom.update(a,c),s.railh&&s.railh.scrollable?(s.setScrollLeft(f),s.showCursor(u,f)):s.showCursor(u),h.isie10&&document.selection.clear())}),h.ischrome&&s.istouchcapable&&(e=!1),e)return s.cancelEvent(t)}else if(1==s.rail.drag.pt)return s.onmousemove(t)}),s.onmousedown=function(n,t){if(!s.rail.drag||1==s.rail.drag.pt){if(s.railslocked)return s.cancelEvent(n);s.cancelScroll();s.rail.drag={x:n.clientX,y:n.clientY,sx:s.scroll.x,sy:s.scroll.y,pt:1,hr:!!t};var i=s.getTarget(n);return!s.ispage&&h.hasmousecapture&&i.setCapture(),s.isiframe&&!h.hasmousecapture&&(s.saved.csspointerevents=s.doc.css("pointer-events"),s.css(s.doc,{"pointer-events":"none"})),s.hasmoving=!1,s.cancelEvent(n)}},s.onmouseup=function(n){if(s.rail.drag)return 1!=s.rail.drag.pt?!0:(h.hasmousecapture&&document.releaseCapture(),s.isiframe&&!h.hasmousecapture&&s.doc.css("pointer-events",s.saved.csspointerevents),s.rail.drag=!1,s.hasmoving&&s.triggerScrollEnd(),s.cancelEvent(n))},s.onmousemove=function(n){if(s.rail.drag&&1==s.rail.drag.pt){if(h.ischrome&&0==n.which)return s.onmouseup(n);if(s.cursorfreezed=!0,s.hasmoving=!0,s.rail.drag.hr){s.scroll.x=s.rail.drag.sx+(n.clientX-s.rail.drag.x);0>s.scroll.x&&(s.scroll.x=0);var t=s.scrollvaluemaxw;s.scroll.x>t&&(s.scroll.x=t)}else s.scroll.y=s.rail.drag.sy+(n.clientY-s.rail.drag.y),0>s.scroll.y&&(s.scroll.y=0),t=s.scrollvaluemax,s.scroll.y>t&&(s.scroll.y=t);return s.synched("mousemove",function(){s.rail.drag&&1==s.rail.drag.pt&&(s.showCursor(),s.rail.drag.hr?s.hasreversehr?s.doScrollLeft(s.scrollvaluemaxw-Math.round(s.scroll.x*s.scrollratio.x),s.opt.cursordragspeed):s.doScrollLeft(Math.round(s.scroll.x*s.scrollratio.x),s.opt.cursordragspeed):s.doScrollTop(Math.round(s.scroll.y*s.scrollratio.y),s.opt.cursordragspeed))}),s.cancelEvent(n)}},h.cantouch||s.opt.touchbehavior?(s.onpreventclick=function(n){if(s.preventclick)return s.preventclick.tg.oncl
71ick=s.preventclick.click,s.preventclick=!1,s.cancelEvent(n)},s.bind(s.win,"mousedown",s.ontouchstart),s.onclick=h.isios?!1:function(n){return s.lastmouseup?(s.lastmouseup=!1,s.cancelEvent(n)):!0},s.opt.grabcursorenabled&&h.cursorgrabvalue&&(s.css(s.ispage?s.doc:s.win,{cursor:h.cursorgrabvalue}),s.css(s.rail,{cursor:h.cursorgrabvalue}))):(v=function(n){if(s.selectiondrag){if(n){var t=s.win.outerHeight();n=n.pageY-s.selectiondrag.top;0<n&&n<t&&(n=0);n>=t&&(n-=t);s.selectiondrag.df=n}0!=s.selectiondrag.df&&(s.doScrollBy(2*-Math.floor(s.selectiondrag.df/6)),s.debounced("doselectionscroll",function(){v()},50))}},s.hasTextSelected="getSelection"in document?function(){return 0<document.getSelection().rangeCount}:"selection"in document?function(){return"None"!=document.selection.type}:function(){return!1},s.onselectionstart=function(){s.ispage||(s.selectiondrag=s.win.offset())},s.onselectionend=function(){s.selectiondrag=!1},s.onselectiondrag=function(n){s.selectiondrag&&s.hasTextSelected()&&s.debounced("selectionscroll",function(){v(n)},250)}),h.hasw3ctouch?(s.css(s.rail,{"touch-action":"none"}),s.css(s.cursor,{"touch-action":"none"}),s.bind(s.win,"pointerdown",s.ontouchstart),s.bind(document,"pointerup",s.ontouchend),s.bind(document,"pointermove",s.ontouchmove)):h.hasmstouch?(s.css(s.rail,{"-ms-touch-action":"none"}),s.css(s.cursor,{"-ms-touch-action":"none"}),s.bind(s.win,"MSPointerDown",s.ontouchstart),s.bind(document,"MSPointerUp",s.ontouchend),s.bind(document,"MSPointerMove",s.ontouchmove),s.bind(s.cursor,"MSGestureHold",function(n){n.preventDefault()}),s.bind(s.cursor,"contextmenu",function(n){n.preventDefault()})):this.istouchcapable&&(s.bind(s.win,"touchstart",s.ontouchstart),s.bind(document,"touchend",s.ontouchend),s.bind(document,"touchcancel",s.ontouchend),s.bind(document,"touchmove",s.ontouchmove)),!s.opt.cursordragontouch&&(h.cantouch||s.opt.touchbehavior)||(s.rail.css({cursor:"default"}),s.railh&&s.railh.css({cursor:"default"}),s.jqbind(s.rail,"mouseenter",function(){if(!s.ispage&&!s.win.is(":visible"))return!1;s.canshowonmouseevent&&s.showCursor();s.rail.active=!0}),s.jqbind(s.rail,"mouseleave",function(){s.rail.active=!1;s.rail.drag||s.hideCursor()}),s.opt.sensitiverail&&(s.bind(s.rail,"click",function(n){s.doRailClick(n,!1,!1)}),s.bind(s.rail,"dblclick",function(n){s.doRailClick(n,!0,!1)}),s.bind(s.cursor,"click",function(n){s.cancelEvent(n)}),s.bind(s.cursor,"dblclick",function(n){s.cancelEvent(n)})),s.railh&&(s.jqbind(s.railh,"mouseenter",function(){if(!s.ispage&&!s.win.is(":visible"))return!1;s.canshowonmouseevent&&s.showCursor();s.rail.active=!0}),s.jqbind(s.railh,"mouseleave",function(){s.rail.active=!1;s.rail.drag||s.hideCursor()}),s.opt.sensitiverail&&(s.bind(s.railh,"click",function(n){s.doRailClick(n,!1,!0)}),s.bind(s.railh,"dblclick",function(n){s.doRailClick(n,!0,!0)}),s.bind(s.cursorh,"click",function(n){s.cancelEvent(n)}),s.bind(s.cursorh,"dblclick",function(n){s.cancelEvent(n)})))),h.cantouch||s.opt.touchbehavior?(s.bind(h.hasmousecapture?s.win:document,"mouseup",s.ontouchend),s.bind(document,"mousemove",s.ontouchmove),s.onclick&&s.bind(document,"click",s.onclick),s.opt.cursordragontouch&&(s.bind(s.cursor,"mousedown",s.onmousedown),s.bind(s.cursor,"mouseup",s.onmouseup),s.cursorh&&s.bind(s.cursorh,"mousedown",function(n){s.onmousedown(n,!0)}),s.cursorh&&s.bind(s.cursorh,"mouseup",s.onmouseup))):(s.bind(h.hasmousecapture?s.win:document,"mouseup",s.onmouseup),s.bind(document,"mousemove",s.onmousemove),s.onclick&&s.bind(document,"click",s.onclick),s.bind(s.cursor,"mousedown",s.onmousedown),s.bind(s.cursor,"mouseup",s.onmouseup),s.railh&&(s.bind(s.cursorh,"mousedown",function(n){s.onmousedown(n,!0)}),s.bind(s.cursorh,"mouseup",s.onmouseup)),!s.ispage&&s.opt.enablescrollonselection&&(s.bind(s.win[0],"mousedown",s.onselectionstart),s.bind(document,"mouseup",s.onselectionend),s.bind(s.cursor,"mouseup",s.onselectionend),s.cursorh&&s.bind(s.cursorh,"mouseup",s.onselectionend),s.bind(document,"mousemove",s.onselectiondrag)),s.zoom&&(s.jqbind(s.zoom,"mouseenter",function(){s.canshowonmouseevent&&s.showCursor();s.rail.active=!0}),s.jqbind(s.zoom,"mouseleave",function(){s.rail.active=!1;s.rail.drag||s.hideCursor()}))),s.opt.enablemousewheel&&(s.isiframe||s.bind(h.isie&&s.ispage?document:s.win,"mousewheel",s.onmousewheel),s.bind(s.rail,"mousewheel",s.onmousewheel),s.railh&&s.bind(s.railh,"mousewheel",s.onmousewheelhr)),s.ispage||h.cantouch||/HTML|^BODY/.test(s.win[0].nodeName)||(s.win.attr("tabindex")||s.win.attr({tabindex:w++}),s.jqbind(s.win,"focus",function(n){o=s.getTarget(n).id||!0;s.hasfocus=!0;
71s.canshowonmouseevent&&s.noticeCursor()}),s.jqbind(s.win,"blur",function(){o=!1;s.hasfocus=!1}),s.jqbind(s.win,"mouseenter",function(n){c=s.getTarget(n).id||!0;s.hasmousefocus=!0;s.canshowonmouseevent&&s.noticeCursor()}),s.jqbind(s.win,"mouseleave",function(){c=!1;s.hasmousefocus=!1;s.rail.drag||s.hideCursor()})));s.onkeypress=function(t){var r;if(s.railslocked&&0==s.page.maxh||(t=t?t:window.e,r=s.getTarget(t),r&&/INPUT|TEXTAREA|SELECT|OPTION/.test(r.nodeName)&&(!r.getAttribute("type")&&!r.type||!/submit|button|cancel/i.tp)||n(r).attr("contenteditable")))return!0;if(s.hasfocus||s.hasmousefocus&&!o||s.ispage&&!o&&!c){if(r=t.keyCode,s.railslocked&&27!=r)return s.cancelEvent(t);var u=t.ctrlKey||!1,f=t.shiftKey||!1,i=!1;switch(r){case 38:case 63233:s.doScrollBy(72);i=!0;break;case 40:case 63235:s.doScrollBy(-72);i=!0;break;case 37:case 63232:s.railh&&(u?s.doScrollLeft(0):s.doScrollLeftBy(72),i=!0);break;case 39:case 63234:s.railh&&(u?s.doScrollLeft(s.page.maxw):s.doScrollLeftBy(-72),i=!0);break;case 33:case 63276:s.doScrollBy(s.view.h);i=!0;break;case 34:case 63277:s.doScrollBy(-s.view.h);i=!0;break;case 36:case 63273:s.railh&&u?s.doScrollPos(0,0):s.doScrollTo(0);i=!0;break;case 35:case 63275:s.railh&&u?s.doScrollPos(s.page.maxw,s.page.maxh):s.doScrollTo(s.page.maxh);i=!0;break;case 32:s.opt.spacebarenabled&&(f?s.doScrollBy(s.view.h):s.doScrollBy(-s.view.h),i=!0);break;case 27:s.zoomactive&&(s.doZoom(),i=!0)}if(i)return s.cancelEvent(t)}};s.opt.enablekeyboard&&s.bind(document,h.isopera&&!h.isopera12?"keypress":"keydown",s.onkeypress);s.bind(document,"keydown",function(n){n.ctrlKey&&(s.wheelprevented=!0)});s.bind(document,"keyup",function(n){n.ctrlKey||(s.wheelprevented=!1)});s.bind(window,"blur",function(){s.wheelprevented=!1});s.bind(window,"resize",s.lazyResize);s.bind(window,"orientationchange",s.lazyResize);s.bind(window,"load",s.lazyResize);!h.ischrome||s.ispage||s.haswrapper||(g=s.win.attr("style"),t=parseFloat(s.win.css("width"))+1,s.win.css("width",t),s.synched("chromefix",function(){s.win.attr("style",g)}));s.onAttributeChange=function(){s.lazyResize(s.isieold?250:30)};!1!==r&&(s.observerbody=new r(function(t){return t.forEach(function(t){if("attributes"==t.type)return n("body").hasClass("modal-open")?s.hide():s.show()}),document.body.scrollHeight!=s.page.maxh?s.lazyResize(30):void 0}),s.observerbody.observe(document.body,{childList:!0,subtree:!0,characterData:!1,attributes:!0,attributeFilter:["class"]}));s.ispage||s.haswrapper||(!1!==r?(s.observer=new r(function(n){n.forEach(s.onAttributeChange)}),s.observer.observe(s.win[0],{childList:!0,characterData:!1,attributes:!0,subtree:!1}),s.observerremover=new r(function(n){n.forEach(function(n){if(0<n.removedNodes.length)for(var t in n.removedNodes)if(s&&n.removedNodes[t]==s.win[0])return s.remove()})}),s.observerremover.observe(s.win[0].parentNode,{childList:!0,characterData:!1,attributes:!1,subtree:!1})):(s.bind(s.win,h.isie&&!h.isie9?"propertychange":"DOMAttrModified",s.onAttributeChange),h.isie9&&s.win[0].attachEvent("onpropertychange",s.onAttributeChange),s.bind(s.win,"DOMNodeRemoved",function(n){n.target==s.win[0]&&s.remove()})));!s.ispage&&s.opt.boxzoom&&s.bind(window,"resize",s.resizeZoom);s.istextarea&&s.bind(s.win,"mouseup",s.lazyResize);s.lazyResize(30)}"IFRAME"==this.doc[0].nodeName&&(y=function(){var t,i;s.iframexd=!1;try{t="contentDocument"in this?this.contentDocument:this.contentWindow.document}catch(r){s.iframexd=!0;t=!1}if(s.iframexd)return"console"in window&&console.log("NiceScroll error: policy restriced iframe"),!0;s.forcescreen=!0;s.isiframe&&(s.iframe={doc:n(t),html:s.doc.contents().find("html")[0],body:s.doc.contents().find("body")[0]},s.getContentSize=function(){return{w:Math.max(s.iframe.html.scrollWidth,s.iframe.body.scrollWidth),h:Math.max(s.iframe.html.scrollHeight,s.iframe.body.scrollHeight)}},s.docscroll=n(s.iframe.body));h.isios||!s.opt.iframeautoresize||s.isiframe||(s.win.scrollTop(0),s.doc.height(""),i=Math.max(t.getElementsByTagName("html")[0].scrollHeight,t.body.scrollHeight),s.doc.height(i));s.lazyResize(30);h.isie7&&s.css(n(s.iframe.html),{"overflow-y":"hidden"});s.css(n(s.iframe.body),{"overflow-y":"hidden"});h.isios&&s.haswrapper&&s.css(n(t.body),{"-webkit-transform":"translate3d(0,
710,0)"});"contentWindow"in this?s.bind(this.contentWindow,"scroll",s.onscroll):s.bind(t,"scroll",s.onscroll);s.opt.enablemousewheel&&s.bind(t,"mousewheel",s.onmousewheel);s.opt.enablekeyboard&&s.bind(t,h.isopera?"keypress":"keydown",s.onkeypress);(h.cantouch||s.opt.touchbehavior)&&(s.bind(t,"mousedown",s.ontouchstart),s.bind(t,"mousemove",function(n){return s.ontouchmove(n,!0)}),s.opt.grabcursorenabled&&h.cursorgrabvalue&&s.css(n(t.body),{cursor:h.cursorgrabvalue}));s.bind(t,"mouseup",s.ontouchend);s.zoom&&(s.opt.dblclickzoom&&s.bind(t,"dblclick",s.doZoom),s.ongesturezoom&&s.bind(t,"gestureend",s.ongesturezoom))},this.doc[0].readyState&&"complete"==this.doc[0].readyState&&setTimeout(function(){y.call(s.doc[0],!1)},500),s.bind(this.doc,"load",y))};this.showCursor=function(n,t){if(s.cursortimeout&&(clearTimeout(s.cursortimeout),s.cursortimeout=0),s.rail){if(s.autohidedom&&(s.autohidedom.stop().css({opacity:s.opt.cursoropacitymax}),s.cursoractive=!0),s.rail.drag&&1==s.rail.drag.pt||("undefined"!=typeof n&&!1!==n&&(s.scroll.y=Math.round(1*n/s.scrollratio.y)),"undefined"!=typeof t&&(s.scroll.x=Math.round(1*t/s.scrollratio.x))),s.cursor.css({height:s.cursorheight,top:s.scroll.y}),s.cursorh){var i=s.hasreversehr?s.scrollvaluemaxw-s.scroll.x:s.scroll.x;!s.rail.align&&s.rail.visibility?s.cursorh.css({width:s.cursorwidth,left:i+s.rail.width}):s.cursorh.css({width:s.cursorwidth,left:i});s.cursoractive=!0}s.zoom&&s.zoom.stop().css({opacity:s.opt.cursoropacitymax})}};this.hideCursor=function(n){s.cursortimeout||!s.rail||!s.autohidedom||s.hasmousefocus&&"leave"==s.opt.autohidemode||(s.cursortimeout=setTimeout(function(){s.rail.active&&s.showonmouseevent||(s.autohidedom.stop().animate({opacity:s.opt.cursoropacitymin}),s.zoom&&s.zoom.stop().animate({opacity:s.opt.cursoropacitymin}),s.cursoractive=!1);s.cursortimeout=0},n||s.opt.hidecursordelay))};this.noticeCursor=function(n,t,i){s.showCursor(t,i);s.rail.active||s.hideCursor(n)};this.getContentSize=s.ispage?function(){return{w:Math.max(document.body.scrollWidth,document.documentElement.scrollWidth),h:Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}}:s.haswrapper?function(){return{w:s.doc.outerWidth()+parseInt(s.win.css("paddingLeft"))+parseInt(s.win.css("paddingRight")),h:s.doc.outerHeight()+parseInt(s.win.css("paddingTop"))+parseInt(s.win.css("paddingBottom"))}}:function(){return{w:s.docscroll[0].scrollWidth,h:s.docscroll[0].scrollHeight}};this.onResize=function(n,t){if(!s||!s.win)return!1;if(!s.haswrapper&&!s.ispage){if("none"==s.win.css("display"))return s.visibility&&s.hideRail().hideRailHr(),!1;s.hidden||s.visibility||s.showRail().showRailHr()}var i=s.page.maxh,r=s.page.maxw,u=s.view.h,f=s.view.w;if(s.view={w:s.ispage?s.win.width():parseInt(s.win[0].clientWidth),h:s.ispage?s.win.height():parseInt(s.win[0].clientHeight)},s.page=t?t:s.getContentSize(),s.page.maxh=Math.max(0,s.page.h-s.view.h),s.page.maxw=Math.max(0,s.page.w-s.view.w),s.page.maxh==i&&s.page.maxw==r&&s.view.w==f&&s.view.h==u){if(s.ispage||(i=s.win.offset(),s.lastposition&&(r=s.lastposition,r.top==i.top&&r.left==i.left)))return s;s.lastposition=i}return(0==s.page.maxh?(s.hideRail(),s.scrollvaluemax=0,s.scroll.y=0,s.scrollratio.y=0,s.cursorheight=0,s.setScrollTop(0),s.rail.scrollable=!1):(s.page.maxh-=s.opt.railpadding.top+s.opt.railpadding.bottom,s.rail.scrollable=!0),0==s.page.maxw?(s.hideRailHr(),s.scrollvaluemaxw=0,s.scroll.x=0,s.scrollratio.x=0,s.cursorwidth=0,s.setScrollLeft(0),s.railh.scrollable=!1):(s.page.maxw-=s.opt.railpadding.left+s.opt.railpadding.right,s.railh.scrollable=!0),s.railslocked=s.locked||0==s.page.maxh&&0==s.page.maxw,s.railslocked)?(s.ispage||s.updateScrollBar(s.view),!1):(s.hidden||s.visibility?s.hidden||s.railh.visibility||s.showRailHr():s.showRail().showRailHr(),s.istextarea&&s.win.css("resize")&&"none"!=s.win.css("resize")&&(s.view.h-=20),s.cursorheight=Math.min(s.view.h,Math.round(s.view.h/s.page.h*s.view.h)),s.cursorheight=s.opt.cursorfixedheight?s.opt.cursorfixedheight:Math.max(s.opt.cursorminheight,s.cursorheight),s.cursorwidth=Math.min(s.view.w,Math.round(s.view.w/s.page.w*s.view.w)),s.cursorwidth=s.opt.cursorfixedheight?s.opt.cursorfixedheight:Math.max(s.opt.cursorminheight,s.cursorwidth),s.scrollvaluemax=s.view.h-s.cursorheight-s.cursor.hborder-(s.opt.railpadding.top+s.opt.railpadding.bottom),s.railh&&(s.railh.width=0<s.page.maxh?s.view.w-s.rail.width:s.view.w,s.scrollvaluemaxw=s.railh.width-s.cursorwidth-s.cursorh.wborder-(s.opt.railpadding.left+s.opt.railpadding.right)),s.ispage||s.updateScrollBar(s.view),s.scrollratio={x:s.page.maxw/s.scrollvaluemaxw,y:s.page.maxh/s.scrollvaluemax},s.getScrollTop()>s.page.maxh?s.doScrollTop(s.page.maxh):(s.scroll.y=Math.round(s.getScrollTop()*(1/s.scrollratio.y)),s.scroll.x=Math.round(s.getScrollLeft()*(1/s.scrollratio.x)),s.cursoractive&&s.noticeCursor()),s.scroll.y&&0==s.get
71ScrollTop()&&s.doScrollTo(Math.floor(s.scroll.y*s.scrollratio.y)),s)};this.resize=s.onResize;this.lazyResize=function(n){return n=isNaN(n)?30:n,s.debounced("resize",s.resize,n),s};this.jqbind=function(t,i,r){s.events.push({e:t,n:i,f:r,q:!0});n(t).bind(i,r)};this.bind=function(n,t,i,r){var u="jquery"in n?n[0]:n;"mousewheel"==t?window.addEventListener||"onwheel"in document?s._bind(u,"wheel",i,r||!1):(n="undefined"!=typeof document.onmousewheel?"mousewheel":"DOMMouseScroll",tt(u,n,i,r||!1),"DOMMouseScroll"==n&&tt(u,"MozMousePixelScroll",i,r||!1)):u.addEventListener?(h.cantouch&&/mouseup|mousedown|mousemove/.test(t)&&s._bind(u,"mousedown"==t?"touchstart":"mouseup"==t?"touchend":"touchmove",function(n){if(n.touches){if(2>n.touches.length){var t=n.touches.length?n.touches[0]:n;t.original=n;i.call(this,t)}}else n.changedTouches&&(t=n.changedTouches[0],t.original=n,i.call(this,t))},r||!1),s._bind(u,t,i,r||!1),h.cantouch&&"mouseup"==t&&s._bind(u,"touchcancel",i,r||!1)):s._bind(u,t,function(n){return(n=n||window.event||!1)&&n.srcElement&&(n.target=n.srcElement),"pageY"in n||(n.pageX=n.clientX+document.documentElement.scrollLeft,n.pageY=n.clientY+document.documentElement.scrollTop),!1===i.call(u,n)||!1===r?s.cancelEvent(n):!0})};h.haseventlistener?(this._bind=function(n,t,i,r){s.events.push({e:n,n:t,f
71:i,b:r,q:!1});n.addEventListener(t,i,r||!1)},this.cancelEvent=function(n){return n?(n=n.original?n.original:n,n.preventDefault(),n.stopPropagation(),n.preventManipulation&&n.preventManipulation(),!1):!1},this.stopPropagation=function(n){return n?(n=n.original?n.original:n,n.stopPropagation(),!1):!1},this._unbind=function(n,t,i,r){n.removeEventListener(t,i,r)}):(this._bind=function(n,t,i,r){s.events.push({e:n,n:t,f:i,b:r,q:!1});n.attachEvent?n.attachEvent("on"+t,i):n["on"+t]=i},this.cancelEvent=function(n){return(n=window.event||!1,!n)?!1:(n.cancelBubble=!0,n.cancel=!0,n.returnValue=!1)},this.stopPropagation=function(n){return(n=window.event||!1,!n)?!1:(n.cancelBubble=!0,!1)},this._unbind=function(n,t,i){n.detachEvent?n.detachEvent("on"+t,i):n["on"+t]=!1});this.unbindAll=function(){for(var n,t=0;t<s.events.length;t++)n=s.events[t],n.q?n.e.unbind(n.n,n.f):s._unbind(n.e,n.n,n.f,n.b)};this.showRail=function(){return 0!=s.page.maxh&&(s.ispage||"none"!=s.win.css("display"))&&(s.visibility=!0,s.rail.visibility=!0,s.rail.css("display","block")),s};this.showRailHr=function(){return s.railh?(0!=s.page.maxw&&(s.ispage||"none"!=s.win.css("display"))&&(s.railh.visibility=!0,s.railh.css("display","block")),s):s};this.hideRail=function(){return s.visibility=!1,s.rail.visibility=!1,s.rail.css("display","none"),s};this.hideRailHr=function(){return s.railh?(s.railh.visibility=!1,s.railh.css("display","none"),s):s};this.show=function(){return s.hidden=!1,s.railslocked=!1,s.showRail().showRailHr()};this.hide=function(){return s.hidden=!0,s.railslocked=!0,s.hideRail().hideRailHr()};this.toggle=function(){return s.hidden?s.show():s.hide()};this.remove=function(){var r,i,t,u;for(s.stop(),s.cursortimeout&&clearTimeout(s.cursortimeout),s.doZoomOut(),s.unbindAll(),h.isie9&&s.win[0].detachEvent("onpropertychange",s.onAttributeChange),!1!==s.observer&&s.observer.disconnect(),!1!==s.observerremover&&s.observerremover.disconnect(),!1!==s.observerbody&&s.observerbody.disconnect(),s.events=null,s.cursor&&s.cursor.remove(),s.cursorh&&s.cursorh.remove(),s.rail&&s.rail.remove(),s.railh&&s.railh.remove(),s.zoom&&s.zoom.remove(),r=0;r<s.saved.css.length;r++)i=s.saved.css[r],i[0].css(i[1],"undefined"==typeof i[2]?"":i[2]);s.saved=!1;s.me.data("__nicescroll","");t=n.nicescroll;t.each(function(n){if(this&&this.id===s.id){delete t[n];for(var i=++n;i<t.length;i++,n++)t[n]=t[i];t.length--;t.length&&delete t[t.length]}});for(u in s)s[u]=null,delete s[u];s=null};this.scrollstart=function(n){return this.onscrollstart=n,s};this.scrollend=function(n){return this.onscrollend=n,s};this.scrollcancel=function(n){return this.onscrollcancel=n,s};this.zoomin=function(n){return this.onzoomin=n,s};this.zoomout=function(n){return this.onzoomout=n,s};this.isScrollable=function(t){if(t=t.target?t.target:t,"OPTION"==t.nodeName)return!0;for(;t&&1==t.nodeType&&!/^BODY|HTML/.test(t.nodeName);){var i=n(t),i=i.css("overflowY")||i.css("overflowX")||i.css("overflow")||"";if(/scroll|auto/.test(i))return t.clientHeight!=t.scrollHeight;t=t.parentNode?t.parentNode:!1}return!1};this.getViewport=function(t){var i,r;for(t=t&&t.parentNode?t.parentNode:!1;t&&1==t.nodeType&&!/^BODY|HTML/.test(t.nodeName);){if((i=n(t),/fixed|absolute/.test(i.css("position")))||(r=i.css("overflowY")||i.css("overflowX")||i.css("overflow")||"",/scroll|auto/.test(r)&&t.clientHeight!=t.scrollHeight||0<i.getNiceScroll().length))return i;t=t.parentNode?t.parentNode:!1}return!1};this.triggerScrollEnd=function(){if(s.onscrollend){var n=s.getScrollLeft(),t=s.getScrollTop();s.onscrollend.call(s,{type:"scrollend",current:{x:n,y:t},end:{x:n,y:t}})}};this.onmousewheel=function(n){if(!s.wheelprevented){if(s.railslocked)return s.debounced("checkunlock",s.resize,250),!0;if(s.rail.drag)return s.cancelEvent(n);if("auto"==s.opt.oneaxismousemode&&0!=n.deltaX&&(s.opt.oneaxismousemode=!1),s.opt.oneaxismousemode&&0==n.deltaX&&!s.rail.scrollable)return s.railh&&s.railh.scrollable?s.onmousewheelhr(n):!0;var t=+new Date,i=!1;return(s.opt.preservenativescrolling&&s.checkarea+600<t&&(s.nativescrollingarea=s.isScrollable(n),i=!0),s.checkarea=t,s.nativescrollingarea)?!0:((n=it(n,!1,i))&&(s.checkarea=0),n)}};this.onmousewheelhr=function(n){if(!s.wheelprevented){if(s.railslocked||!s.railh.scrollable)return!0;
71if(s.rail.drag)return s.cancelEvent(n);var t=+new Date,i=!1;return s.opt.preservenativescrolling&&s.checkarea+600<t&&(s.nativescrollingarea=s.isScrollable(n),i=!0),s.checkarea=t,s.nativescrollingarea?!0:s.railslocked?s.cancelEvent(n):it(n,!0,i)}};this.stop=function(){return s.cancelScroll(),s.scrollmon&&s.scrollmon.stop(),s.cursorfreezed=!1,s.scroll.y=Math.round(s.getScrollTop()*(1/s.scrollratio.y)),s.noticeCursor(),s};this.getTransitionSpeed=function(n){var t=Math.round(10*s.opt.scrollspeed);return n=Math.min(t,Math.round(n/20*s.opt.scrollspeed)),20<n?n:0};s.opt.smoothscroll?s.ishwscroll&&h.hastransition&&s.opt.usetransition&&s.opt.smoothscroll?(this.prepareTransition=function(n,t){var i=t?20<n?n:0:s.getTransitionSpeed(n),r=i?h.prefixstyle+"transform "+i+"ms ease-out":"";return s.lasttransitionstyle&&s.lasttransitionstyle==r||(s.lasttransitionstyle=r,s.doc.css(h.transitionstyle,r)),i},this.doScrollLeft=function(n,t){var i=s.scrollrunning?s.newscrolly:s.getScrollTop();s.doScrollPos(n,i,t)},this.doScrollTop=function(n,t){var i=s.scrollrunning?s.newscrollx:s.getScrollLeft();s.doScrollPos(i,n,t)},this.doScrollPos=function(n,t,i){var r=s.getScrollTop(),u=s.getScrollLeft();if(((0>(s.newscrolly-r)*(t-r)||0>(s.newscrollx-u)*(n-u))&&s.cancelScroll(),0==s.opt.bouncescroll&&(0>t?t=0:t>s.page.maxh&&(t=s.page.maxh),0>n?n=0:n>s.page.maxw&&(n=s.page.maxw)),s.scrollrunning&&n==s.newscrollx&&t==s.newscrolly)||(s.newscrolly=t,s.newscrollx=n,s.newscrollspeed=i||!1,s.timer))return!1;s.timer=setTimeout(function(){var r=s.getScrollTop(),u=s.getScrollLeft(),i,f;i=n-u;f=t-r;i=Math.round(Math.sqrt(Math.pow(i,2)+Math.pow(f,2)));i=s.newscrollspeed&&1<s.newscrollspeed?s.newscrollspeed:s.getTransitionSpeed(i);s.newscrollspeed&&1>=s.newscrollspeed&&(i*=s.newscrollspeed);s.prepareTransition(i,!0);s.timerscroll&&s.timerscroll.tm&&clearInterval(s.timerscroll.tm);0<i&&(!s.scrollrunning&&s.onscrollstart&&s.onscrollstart.call(s,{type:"scrollstart",current:{x:u,y:r},request:{x:n,y:t},end:{x:s.newscrollx,y:s.newscrolly},speed:i}),h.transitionend?s.scrollendtrapped||(s.scrollendtrapped=!0,s.bind(s.doc,h.transitionend,s.onScrollTransitionEnd,!1)):(s.scrollendtrapped&&clearTimeout(s.scrollendtrapped),s.scrollendtrapped=setTimeout(s.onScrollTransitionEnd,i)),s.timerscroll={bz:new a(r,s.newscrolly,i,0,0,.58,1),bh:new a(u,s.newscrollx,i,0,0,.58,1)},s.cursorfreezed||(s.timerscroll.tm=setInterval(function(){s.showCursor(s.getScrollTop(),s.getScrollLeft())},60)));s.synched("doScroll-set",function(){s.timer=0;s.scrollendtrapped&&(s.scrollrunning=!0);s.setScrollTop(s.newscrolly);s.setScrollLeft(s.newscrollx);s.scrollendtrapped||s.onScrollTransitionEnd()})},50)},this.cancelScroll=function(){if(!s.scrollendtrapped)return!0;var n=s.getScrollTop(),t=s.getScrollLeft();return s.scrollrunning=!1,h.transitionend||clearTimeout(h.transitionend),s.scrollendtrapped=!1,s._unbind(s.doc[0],h.transitionend,s.onScrollTransitionEnd),s.prepareTransition(0),s.setScrollTop(n),s.railh&&s.setScrollLeft(t),s.timerscroll&&s.timerscroll.tm&&clearInterval(s.timerscroll.tm),s.timerscroll=!1,s.cursorfreezed=!1,s.showCursor(n,t),s},this.onScrollTransitionEnd=function(){s.scrollendtrapped&&s._unbind(s.doc[0],h.transitionend,s.onScrollTransitionEnd);s.scrollendtrapped=!1;s.prepareTransition(0);s.timerscroll&&s.timerscroll.tm&&clearInterval(s.timerscroll.tm);s.timerscroll=!1;var n=s.getScrollTop(),t=s.getScrollLeft();if(s.setScrollTop(n),s.railh&&s.setScrollLeft(t),s.noticeCursor(!1,n,t),s.cursorfreezed=!1,0>n?n=0:n>s.page.maxh&&(n=s.page.maxh),0>t?t=0:t>s.page.maxw&&(t=s.page.maxw),n!=s.newscrolly||t!=s.newscrollx)return s.doScrollPos(t,n,s.opt.snapbackspeed);s.onscrollend&&s.scrollrunning&&s.triggerScrollEnd();s.scrollrunning=!1}):(this.doScrollLeft=function(n,t){var i=s.scrollrunning?s.newscrolly:s.getScrollTop();s.doScrollPos(n,i,t)},this.doScrollTop=function(n,t){var i=s.scrollrunning?s.newscrollx:s.getScrollLeft();s.doScrollPos(i,n,t)},this.doScrollPos=function(n,r,u){function l(){if(s.cancelAnimationFrame)return!0;if(s.scrollrunning=!0,v=1-v)return s.timer=t(l)||1;var u=0,r,n,i=n=s.getScrollTop();
71s.dst.ay?(i=s.bzscroll?s.dst.py+s.bzscroll.getNow()*s.dst.ay:s.newscrolly,r=i-n,(0>r&&i<s.newscrolly||0<r&&i>s.newscrolly)&&(i=s.newscrolly),s.setScrollTop(i),i==s.newscrolly&&(u=1)):u=1;n=r=s.getScrollLeft();s.dst.ax?(n=s.bzscroll?s.dst.px+s.bzscroll.getNow()*s.dst.ax:s.newscrollx,r=n-r,(0>r&&n<s.newscrollx||0<r&&n>s.newscrollx)&&(n=s.newscrollx),s.setScrollLeft(n),n==s.newscrollx&&(u+=1)):u+=1;2==u?(s.timer=0,s.cursorfreezed=!1,s.bzscroll=!1,s.scrollrunning=!1,0>i?i=0:i>s.page.maxh&&(i=s.page.maxh),0>n?n=0:n>s.page.maxw&&(n=s.page.maxw),n!=s.newscrollx||i!=s.newscrolly?s.doScrollPos(n,i):s.onscrollend&&s.triggerScrollEnd()):s.timer=t(l)||1}var e,o,f,c,h,v;if(r="undefined"==typeof r||!1===r?s.getScrollTop(!0):r,s.timer&&s.newscrolly==r&&s.newscrollx==n)return!0;s.timer&&i(s.timer);s.timer=0;e=s.getScrollTop();o=s.getScrollLeft();(0>(s.newscrolly-e)*(r-e)||0>(s.newscrollx-o)*(n-o))&&s.cancelScroll();s.newscrolly=r;s.newscrollx=n;s.bouncescroll&&s.rail.visibility||(0>s.newscrolly?s.newscrolly=0:s.newscrolly>s.page.maxh&&(s.newscrolly=s.page.maxh));s.bouncescroll&&s.railh.visibility||(0>s.newscrollx?s.newscrollx=0:s.newscrollx>s.page.maxw&&(s.newscrollx=s.page.maxw));s.dst={};s.dst.x=n-o;s.dst.y=r-e;s.dst.px=o;s.dst.py=e;f=Math.round(Math.sqrt(Math.pow(s.dst.x,2)+Math.pow(s.dst.y,2)));s.dst.ax=s.dst.x/f;s.dst.ay=s.dst.y/f;c=0;h=f;0==s.dst.x?(c=e,h=r,s.dst.ay=1,s.dst.py=0):0==s.dst.y&&(c=o,h=n,s.dst.ax=1,s.dst.px=0);f=s.getTransitionSpeed(f);u&&1>=u&&(f*=u);s.bzscroll=0<f?s.bzscroll?s.bzscroll.update(h,f):new a(c,h,f,0,1,0,1):!1;s.timer||((e==s.page.maxh&&r>=s.page.maxh||o==s.page.maxw&&n>=s.page.maxw)&&s.checkContentSize(),v=1,s.cancelAnimationFrame=!1,s.timer=1,s.onscrollstart&&!s.scrollrunning&&s.onscrollstart.call(s,{type:"scrollstart",current:{x:o,y:e},request:{x:n,y:r},end:{x:s.newscrollx,y:s.newscrolly},speed:f}),l(),(e==s.page.maxh&&r>=e||o==s.page.maxw&&n>=o)&&s.checkContentSize(),s.noticeCursor())},this.cancelScroll=function(){return s.timer&&i(s.timer),s.timer=0,s.bzscroll=!1,s.scrollrunning=!1,s}):(this.doScrollLeft=function(n,t){var i=s.getScrollTop();s.doScrollPos(n,i,t)},this.doScrollTop=function(n,t){var i=s.getScrollLeft();s.doScrollPos(i,n,t)},this.doScrollPos=function(n,t){var r=n>s.page.maxw?s.page.maxw:n,i;0>r&&(r=0);i=t>s.page.maxh?s.page.maxh:t;0>i&&(i=0);s.synched("scroll",function(){s.setScrollTop(i);s.setScrollLeft(r)})},this.cancelScroll=function(){});this.doScrollBy=function(n,t){var r=0,r=t?Math.floor((s.scroll.y-n)*s.scrollratio.y):(s.timer?s.newscrolly:s.getScrollTop(!0))-n,i;if(s.bouncescroll&&(i=Math.round(s.view.h/2),r<-i?r=-i:r>s.page.maxh+i&&(r=s.page.maxh+i)),s.cursorfreezed=!1,i=s.getScrollTop(!0),0>r&&0>=i)return s.noticeCursor();if(r>s.page.maxh&&i>=s.page.maxh)return s.checkContentSize(),s.noticeCursor();s.doScrollTop(r)};this.doScrollLeftBy=function(n,t){var r=0,r=t?Math.floor((s.scroll.x-n)*s.scrollratio.x):(s.timer?s.newscrollx:s.getScrollLeft(!0))-n,i;if(s.bouncescroll&&(i=Math.round(s.view.w/2),r<-i?r=-i:r>s.page.maxw+i&&(r=s.page.maxw+i)),s.cursorfreezed=!1,i=s.getScrollLeft(!0),0>r&&0>=i||r>s.page.maxw&&i>=s.page.maxw)return s.noticeCursor();s.doScrollLeft(r)};this.doScrollTo=function(n,t){t&&Math.round(n*s.scrollratio.y);s.cursorfreezed=!1;s.doScrollTop(n)};this.checkContentSize=function(){var n=s.getContentSize();n.h==s.page.h&&n.w==s.page.w||s.resize(!1,n)};s.onscroll=function(){s.rail.drag||s.cursorfreezed||s.synched("scroll",function(){s.scroll.y=Math.round(s.getScrollTop()*(1/s.scrollratio.y));s.railh&&(s.scroll.x=Math.round(s.getScrollLeft()*(1/s.scrollratio.x)));s.noticeCursor()})};s.bind(s.docscroll,"scroll",s.onscroll);this.doZoomIn=function(t){var i,f,e,r;if(!s.zoomactive){s.zoomactive=!0;s.zoomrestore={style:{}};i="position top left zIndex backgroundColor marginTop marginBottom marginLeft marginRight".split(" ");f=s.win[0].style;for(e in i)r=i[e],s.zoomrestore.style[r]="undefined"!=typeof f[r]?f[r]:"";return s.zoomrestore.style.width=s.win.css("width"),s.zoomrestore.style.height=s.win.css("height"),s.zoomrestore.padding={w:s.win.outerWidth()-s.win.width(),h:s.win.outerHeight()-s.win.height()},h.isios4&&(s.zoomrestore.scrollTop=n(window).scrollTop(),n(window).scrollTop(0)),s.win.css({position:h.isios4?"absolute":"fixed",top:0,left:0,"z-index":u+100,margin:"0px"}),i=s.win.css("backgroundColor"),(""==i||/transparent|rgba\(0, 0, 0, 0\)|rgba\(0,0,0,0\)/.test(i))&&s.win.css("backgroundColor","#fff"),s.rail.css({"z-index":u+101}),s.zoom.css({"z-index":u+102}),s.zoom.css("backgroundPosition","0px -18px"),s.resizeZoom(),s.onzoomin&&s.onzoomin.call(s),s.cancelEvent(t)}};this.doZoomOut=function(t){if(s.zoomactive)return s.zoomactive=!1,s.win.css("margin",""),s.win.css(s.zoomrestore.style),h.isios4&&n(window).scrollTop(s.zoomrestore.scrollTop),s.rail.css({"z-index":s.zindex}),s.zoom.css({"z-index":s.zindex}),s.zoomrestore=!1,s.zoom.css("backgroundPosition","0px 0px"),s.onResize(),s.onzoomout&&s.onzoomout.call(s),s.cancelEvent(t)};this.doZoom=function(n){return s.zoomactive?s.doZoomOut(n):s.doZoomIn(n)};this.resizeZoom=function(){if(s.zoomactive){var t=s.getScrollTop();s.win.css({width:n(window).width()-s.zoomrestore.padding.w+"px",height:n(window).height()-s.zoomrestore.padding.h+"px"});s.onResize();s.setScrollTop(Math.min(s.page.maxh,t))}};this.init();n.nicescroll.push(this)},p=function(n){var t=this;this.nc=n;this.steptime=this.lasttime=this.speedy=this.speedx=this.lasty=this.lastx=0;this.snapy=this.snapx=!1;this.demuly=this.demulx=0;this.lastscrolly=this.lastscrollx=-1;this.timer=this.chky=this.chkx=0;this.time=function(){return+new Date};this.reset=function(n,i){t.stop();var r=t.time();t.steptime=0;t.lasttime=r;t.speedx=0;t.speedy=0;t.lastx=n;t.lasty=i;t.lastscrollx=-1;t.lastscrolly=-1};this.update=function(n,i){var r=t.time();t.steptime=r-t.lasttime;t.lasttime=r;
71var r=i-t.lasty,e=n-t.lastx,u=t.nc.getScrollTop(),f=t.nc.getScrollLeft(),u=u+r,f=f+e;t.snapx=0>f||f>t.nc.page.maxw;t.snapy=0>u||u>t.nc.page.maxh;t.speedx=e;t.speedy=r;t.lastx=n;t.lasty=i};this.stop=function(){t.nc.unsynched("domomentum2d");t.timer&&clearTimeout(t.timer);t.timer=0;t.lastscrollx=-1;t.lastscrolly=-1};this.doSnapy=function(n,i){var r=!1;0>i?(i=0,r=!0):i>t.nc.page.maxh&&(i=t.nc.page.maxh,r=!0);0>n?(n=0,r=!0):n>t.nc.page.maxw&&(n=t.nc.page.maxw,r=!0);r?t.nc.doScrollPos(n,i,t.nc.opt.snapbackspeed):t.nc.triggerScrollEnd()};this.doMomentum=function(n){var e=t.time(),u=n?e+n:t.lasttime,f;n=t.nc.getScrollLeft();var h=t.nc.getScrollTop(),o=t.nc.page.maxh,s=t.nc.page.maxw;if(t.speedx=0<s?Math.min(60,t.speedx):0,t.speedy=0<o?Math.min(60,t.speedy):0,u=u&&60>=e-u,(0>h||h>o||0>n||n>s)&&(u=!1),n=t.speedx&&u?t.speedx:!1,t.speedy&&u&&t.speedy||n){f=Math.max(16,t.steptime);50<f&&(n=f/50,t.speedx*=n,t.speedy*=n,f=50);t.demulxy=0;t.lastscrollx=t.nc.getScrollLeft();t.chkx=t.lastscrollx;t.lastscrolly=t.nc.getScrollTop();t.chky=t.lastscrolly;var i=t.lastscrollx,r=t.lastscrolly,c=function(){var n=600<t.time()-e?.04:.02;t.speedx&&(i=Math.floor(t.lastscrollx-t.speedx*(1-t.demulxy)),t.lastscrollx=i,0>i||i>s)&&(n=.1);t.speedy&&(r=Math.floor(t.lastscrolly-t.speedy*(1-t.demulxy)),t.lastscrolly=r,0>r||r>o)&&(n=.1);t.demulxy=Math.min(1,t.demulxy+n);t.nc.synched("domomentum2d",function(){t.speedx&&(t.nc.getScrollLeft()!=t.chkx&&t.stop(),t.chkx=i,t.nc.setScrollLeft(i));t.speedy&&(t.nc.getScrollTop()!=t.chky&&t.stop(),t.chky=r,t.nc.setScrollTop(r));t.timer||(t.nc.hideCursor(),t.doSnapy(i,r))});1>t.demulxy?t.timer=setTimeout(c,f):(t.stop(),t.nc.hideCursor(),t.doSnapy(i,r))};c()}else t.doSnapy(t.nc.getScrollLeft(),t.nc.getScrollTop())}},h=n.fn.scrollTop;n.cssHooks.pageYOffset={get:function(t,i){return(i=n.data(t,"__nicescroll")||!1)&&i.ishwscroll?i.getScrollTop():h.call(t)},set:function(t,i){var r=n.data(t,"__nicescroll")||!1;return r&&r.ishwscroll?r.setScrollTop(parseInt(i)):h.call(t,i),this}};n.fn.scrollTop=function(t){if("undefined"==typeof t){var i=this[0]?n.data(this[0],"__nicescroll")||!1:!1;return i&&i.ishwscroll?i.getScrollTop():h.call(this)}return this.each(function(){var i=n.data(this,"__nicescroll")||!1;i&&i.ishwscroll?i.setScrollTop(parseInt(t)):h.call(n(this),t)})};f=n.fn.scrollLeft;n.cssHooks.pageXOffset={get:function(t,i){return(i=n.data(t,"__nicescroll")||!1)&&i.ishwscroll?i.getScrollLeft():f.call(t)},set:function(t,i){var r=n.data(t,"__nicescroll")||!1;return r&&r.ishwscroll?r.setScrollLeft(parseInt(i)):f.call(t,i),this}};n.fn.scrollLeft=function(t){if("undefined"==typeof t){var i=this[0]?n.data(this[0],"__nicescroll")||!1:!1;return i&&i.ishwscroll?i.getScrollLeft():f.call(this)}return this.each(function(){var i=n.data(this,"__nicescroll")||!1;i&&i.ishwscroll?i.setScrollLeft(parseInt(t)):f.call(n(this),t)})};e=function(t){var i=this,r,u;if(this.length=0,this.name="nicescrollarray",this.each=function(n){for(var t=0,r=0;t<i.length;t++)n.call(i[t],r++);return i},this.push=function(n){i[i.length]=n;i.length++},this.eq=function(n){return i[n]},t)for(r=0;r<t.length;r++)u=n.data(t[r],"__nicescroll")||!1,u&&(this[this.length]=u,this.length++);return this},function(n,t,i){for(var r=0;r<t.length;r++)i(n,t[r])}(e.prototype,"show hide toggle onResize resize remove stop doScrollPos".split(" "),function(n,t){n[t]=function(){var n=arguments;return this.each(function(){this[t].apply(this,n)})}});n.fn.getNiceScroll=function(t){return"undefined"==typeof t?new e(this):this[t]&&n.data(this[t],"__nicescroll")||!1};n.extend(n.expr[":"],{nicescroll:function(t){return n.data(t,"__nicescroll")?!0:!1}});n.fn.niceScroll=function(t,i){var r,u;return"undefined"!=typeof i||"object"!=typeof t||"jquery"in t||(i=t,t=!1),i=n.extend({},i),r=new e,"undefined"==typeof i&&(i={}),t&&(i.doc=n(t),i.win=n(this)),u=!("doc"in i),u||"win"in i||(i.win=n(this)),this.each(function(){var t=n(this).data("__nicescroll")||!1;t||(i.doc=u?n(this):i.doc,t=new d(i,n(this)),n(this).data("__nicescroll",t));r.push(t)}),1==r.length?r[0]:r};window.NiceScroll={getjQuery:function(){return n}};
71n.nicescroll||(n.nicescroll=new e,n.nicescroll.options=y)}); 72/*! 73 * Packery layout mode PACKAGED v1.1.3 74 * sub-classes Packery 75 * http://packery.metafizzy.co 76 */ 77!function(n){function f(n){return new RegExp("(^|\\s+)"+n+"(\\s+|$)")}function e(n,u){var f=t(n,u)?r:i;f(n,u)}var t,i,r,u;"classList"in document.documentElement?(t=function(n,t){return n.classList.contains(t)},i=function(n,t){n.classList.add(t)},r=function(n,t){n.classList.remove(t)}):(t=function(n,t){return f(t).test(n.className)},i=function(n,i){t(n,i)||(n.className=n.className+" "+i)},r=function(n,t){n.className=n.className.replace(f(t)," ")});u={hasClass:t,addClass:i,removeClass:r,toggleClass:e,has:t,add:i,remove:r,toggle:e};"function"==typeof define&&define.amd?define("classie/classie",u):"object"==typeof exports?module.exports=u:n.classie=u}(window),function(n,t){"function"==typeof define&&define.amd?define("packery/js/rect",t):"object"==typeof exports?module.exports=t():(n.Packery=n.Packery||{},n.Packery.Rect=t())}(window,function(){function n(t){for(var i in n.defaults)this[i]=n.defaults[i];for(i in t)this[i]=t[i]}var t=window.Packery=function(){};return t.Rect=n,n.defaults={x:0,y:0,width:0,height:0},n.prototype.contains=function(n){var t=n.width||0,i=n.height||0;return this.x<=n.x&&this.y<=n.y&&this.x+this.width>=n.x+t&&this.y+this.height>=n.y+i},n.prototype.overlaps=function(n){var t=this.x+this.width,i=this.y+this.height,r=n.x+n.width,u=n.y+n.height;return this.x<r&&t>n.x&&this.y<u&&i>n.y},n.prototype.getMaximalFreeRects=function(t){if(!this.overlaps(t))return!1;var i,r=[],e=this.x+this.width,o=this.y+this.height,u=t.x+t.width,f=t.y+t.height;return this.y<t.y&&(i=new n({x:this.x,y:this.y,width:this.width,height:t.y-this.y}),r.push(i)),e>u&&(i=new n({x:u,y:this.y,width:e-u,height:this.height}),r.push(i)),o>f&&(i=new n({x:this.x,y:f,width:this.width,height:o-f}),r.push(i)),this.x<t.x&&(i=new n({x:this.x,y:this.y,width:t.x-this.x,height:this.height}),r.push(i)),r},n.prototype.canFit=function(n){return this.width>=n.width&&this.height>=n.height},n}),function(n,t){if("function"==typeof define&&define.amd)define("packery/js/packer",["./rect"],t);else if("object"==typeof exports)module.exports=t(require("./rect"));else{var i=n.Packery=n.Packery||{};i.Packer=t(i.Rect)}}(window,function(n){function t(n,t,i){this.width=n||0;this.height=t||0;this.sortDirection=i||"downwardLeftToRight";this.reset()}t.prototype.reset=function(){this.spaces=[];this.newSpaces=[];var t=new n({x:0,y:0,width:this.width,height:this.height});this.spaces.push(t);this.sorter=i[this.sortDirection]||i.downwardLeftToRight};t.prototype.pack=function(n){for(var i,t=0,r=this.spaces.length;r>t;t++)if(i=this.spaces[t],i.canFit(n)){this.placeInSpace(n,i);break}};t.prototype.placeInSpace=function(n,t){n.x=t.x;n.y=t.y;this.placed(n)};t.prototype.placed=function(n){for(var r,u,t=[],i=0,f=this.spaces.length;f>i;i++)r=this.spaces[i],u=r.getMaximalFreeRects(n),u?t.push.apply(t,u):t.push(r);this.spaces=t;this.mergeSortSpaces()};t.prototype.mergeSortSpaces=function(){t.mergeRects(this.spaces);this.spaces.sort(this.sorter)};t.prototype.addSpace=function(n){this.spaces.push(n);this.mergeSortSpaces()};t.mergeRects=function(n){for(var u,r,o,s,t=0,f=n.length;f>t;t++)if(u=n[t],u){r=n.slice(0);r.splice(t,1);for(var e=0,i=0,h=r.length;h>i;i++)o=r[i],s=t>i?0:1,u.contains(o)&&(n.splice(i+s-e,1),e++)}return n};var i={downwardLeftToRight:function(n,t){return n.y-t.y||n.x-t.x},rightwardTopToBottom:function(n,t){return n.x-t.x||n.y-t.y}};return t}),function(n,t){"function"==typeof define&&define.amd?define("packery/js/item",["get-style-property/get-style-property","outlayer/outlayer","./rect"],t):"object"==typeof exports?module.exports=t(require("desandro-get-style-property"),require("outlayer"),require("./rect")):n.Packery.Item=t(n.getStyleProperty,n.Outlayer,n.Packery.Rect)}(window,function(n,t,i){var u=n("transform"),r=function(){t.Item.apply(this,arguments)},f;return r.prototype=new t.Item,f=r.prototype._create,r.prototype._create=function(){f.call(this);this.rect=new i;this.placeRect=new i},r.prototype.dragStart=function(){this.getPosition();this.removeTransitionStyles();this.isTransitioning&&u&&(this.element.style[u]="none");
77this.getSize();this.isPlacing=!0;this.needsPositioning=!1;this.positionPlaceRect(this.position.x,this.position.y);this.isTransitioning=!1;this.didDrag=!1},r.prototype.dragMove=function(n,t){this.didDrag=!0;var i=this.layout.size;n-=i.paddingLeft;t-=i.paddingTop;this.positionPlaceRect(n,t)},r.prototype.dragStop=function(){this.getPosition();var n=this.position.x!=this.placeRect.x,t=this.position.y!=this.placeRect.y;this.needsPositioning=n||t;this.didDrag=!1},r.prototype.positionPlaceRect=function(n,t,i){this.placeRect.x=this.getPlaceRectCoord(n,!0);this.placeRect.y=this.getPlaceRectCoord(t,!1,i)},r.prototype.getPlaceRectCoord=function(n,t,i){var o=t?"Width":"Height",s=this.size["outer"+o],r=this.layout[t?"columnWidth":"rowHeight"],u=this.layout.size["inner"+o],f,h,e;return t||(u=Math.max(u,this.layout.maxY),this.layout.rowHeight||(u-=this.layout.gutter)),r?(r+=this.layout.gutter,u+=t?this.layout.gutter:0,n=Math.round(n/r),h=this.layout.options.isHorizontal?t?"ceil":"floor":t?"floor":"ceil",e=Math[h](u/r),e-=Math.ceil(s/r),f=e):f=u-s,n=i?n:Math.min(n,f),n*=r||1,Math.max(0,n)},r.prototype.copyPlaceRectPosition=function(){this.rect.x=this.placeRect.x;this.rect.y=this.placeRect.y},r.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element);this.layout.packer.addSpace(this.rect);this.emitEvent("remove",[this])},r}),function(n,t){"function"==typeof define&&define.amd?define("packery/js/packery",["classie/classie","get-size/get-size","outlayer/outlayer","./rect","./packer","./item"],t):"object"==typeof exports?module.exports=t(require("desandro-classie"),require("get-size"),require("outlayer"),require("./rect"),require("./packer"),require("./item")):n.Packery=t(n.classie,n.getSize,n.Outlayer,n.Packery.Rect,n.Packery.Packer,n.Packery.Item)}(window,function(n,t,i,r,u,f){function o(n,t){return n.position.y-t.position.y||n.position.x-t.position.x}function s(n,t){return n.position.x-t.position.x||n.position.y-t.position.y}r.prototype.canFit=function(n){return this.width>=n.width-1&&this.height>=n.height-1};var e=i.create("packery");return e.Item=f,e.prototype._create=function(){i.prototype._create.call(this);this.packer=new u;this.stamp(this.options.stamped);var n=this;this.handleDraggabilly={dragStart:function(){n.itemDragStart(this.element)},dragMove:function(){n.itemDragMove(this.element,this.position.x,this.position.y)},dragEnd:function(){n.itemDragEnd(this.element)}};this.handleUIDraggable={start:function(t){n.itemDragStart(t.currentTarget)},drag:function(t,i){n.itemDragMove(t.currentTarget,i.position.left,i.position.top)},stop:function(t){n.itemDragEnd(t.currentTarget)}}},e.prototype._resetLayout=function(){this.getSize();this._getMeasurements();var n=this.packer;this.options.isHorizontal?(n.width=Number.POSITIVE_INFINITY,n.height=this.size.innerHeight+this.gutter,n.sortDirection="rightwardTopToBottom"):(n.width=this.size.innerWidth+this.gutter,n.height=Number.POSITIVE_INFINITY,n.sortDirection="downwardLeftToRight");n.reset();this.maxY=0;this.maxX=0},e.prototype._getMeasurements=function(){this._getMeasurement("columnWidth","width");this._getMeasurement("rowHeight","height");this._getMeasurement("gutter","width")},e.prototype._getItemLayoutPosition=function(n){return this._packItem(n),n.rect},e.prototype._packItem=function(n){this._setRectSize(n.element,n.rect);this.packer.pack(n.rect);this._setMaxXY(n.rect)},e.prototype._setMaxXY=function(n){this.maxX=Math.max(n.x+n.width,this.maxX);this.maxY=Math.max(n.y+n.height,this.maxY)},e.prototype._setRectSize=function(n,i){var f=t(n),r=f.outerWidth,u=f.outerHeight;(r||u)&&(r=this._applyGridGutter(r,this.columnWidth),u=this._applyGridGutter(u,this.rowHeight));i.width=Math.min(r,this.packer.width);i.height=Math.min(u,this.packer.height)},e.prototype._applyGridGutter=function(n,t){if(!t)return n+this.gutter;t+=this.gutter;var i=n%t,r=i&&1>i?"round":"ceil";return Math[r](n/t)*t},e.prototype._getContainerSize=function(){return this.options.isHorizontal?{width:this.maxX-this.gutter}:{height:this.maxY-this.gutter}},e.prototype._manageStamp=function(n){var t,u=this.getItem(n),i;u&&u.isPlacing?t=u.placeRect:(i=this._getElementOffset(n),t=new r({x:this.options.isOriginLeft?i.left:i.right,y:this.options.isOriginTop?i.top:i.bottom}));this._setRectSize(n,t);this.packer.placed(t);this._setMaxXY(t)}
77,e.prototype.sortItemsByPosition=function(){var n=this.options.isHorizontal?s:o;this.items.sort(n)},e.prototype.fit=function(n,t,i){var r=this.getItem(n);r&&(this._getMeasurements(),this.stamp(r.element),r.getSize(),r.isPlacing=!0,t=void 0===t?r.rect.x:t,i=void 0===i?r.rect.y:i,r.positionPlaceRect(t,i,!0),this._bindFitEvents(r),r.moveTo(r.placeRect.x,r.placeRect.y),this.layout(),this.unstamp(r.element),this.sortItemsByPosition(),r.isPlacing=!1,r.copyPlaceRectPosition())},e.prototype._bindFitEvents=function(n){function t(){i++;2==i&&r.emitEvent("fitComplete",[n])}var r=this,i=0;n.on("layout",function(){return t(),!0});this.on("layoutComplete",function(){return t(),!0})},e.prototype.resize=function(){var n=t(this.element),r=this.size&&n,i=this.options.isHorizontal?"innerHeight":"innerWidth";r&&n[i]==this.size[i]||this.layout()},e.prototype.itemDragStart=function(n){this.stamp(n);var t=this.getItem(n);t&&t.dragStart()},e.prototype.itemDragMove=function(n,t,i){function f(){r.layout();delete r.dragTimeout}var u=this.getItem(n),r;u&&u.dragMove(t,i);r=this;this.clearDragTimeout();this.dragTimeout=setTimeout(f,40)},e.prototype.clearDragTimeout=function(){this.dragTimeout&&clearTimeout(this.dragTimeout)},e.prototype.itemDragEnd=function(t){var u,i=this.getItem(t),r;if(i&&(u=i.didDrag,i.dragStop()),!i||!u&&!i.needsPositioning)return void this.unstamp(t);n.add(i.element,"is-positioning-post-drag");r=this._getDragEndLayoutComplete(t,i);i.needsPositioning?(i.on("layout",r),i.moveTo(i.placeRect.x,i.placeRect.y)):i&&i.copyPlaceRectPosition();this.clearDragTimeout();this.on("layoutComplete",r);this.layout()},e.prototype._getDragEndLayoutComplete=function(t,i){var u=i&&i.needsPositioning,f=0,e=u?2:1,r=this;return function(){return f++,f!=e?!0:(i&&(n.remove(i.element,"is-positioning-post-drag"),i.isPlacing=!1,i.copyPlaceRectPosition()),r.unstamp(t),r.sortItemsByPosition(),u&&r.emitEvent("dragItemPositioned",[i]),!0)}},e.prototype.bindDraggabillyEvents=function(n){n.on("dragStart",this.handleDraggabilly.dragStart);n.on("dragMove",this.handleDraggabilly.dragMove);n.on("dragEnd",this.handleDraggabilly.dragEnd)},e.prototype.bindUIDraggableEvents=function(n){n.on("dragstart",this.handleUIDraggable.start).on("drag",this.handleUIDraggable.drag).on("dragstop",this.handleUIDraggable.stop)},e.Rect=r,e.Packer=u,e}),function(n,t){"function"==typeof define&&define.amd?define(["isotope/js/layout-mode","packery/js/packery","get-size/get-size"],t):"object"==typeof exports?module.exports=t(require("isotope-layout/js/layout-mode"),require("packery"),require("get-size")):t(n.Isotope.LayoutMode,n.Packery,n.getSize)}(window,function(n,t,i){function o(n,t){for(var i in t)n[i]=t[i];return n}var r=n.create("packery"),s=r.prototype._getElementOffset,h=r.prototype._getMeasurement,u,f,e;return o(r.prototype,t.prototype),r.prototype._getElementOffset=s,r.prototype._getMeasurement=h,u=r.prototype._resetLayout,r.prototype._resetLayout=function(){this.packer=this.packer||new t.Packer;u.apply(this,arguments)},f=r.prototype._getItemLayoutPosition,r.prototype._getItemLayoutPosition=function(n){return n.rect=n.rect||new t.Rect,f.call(this,n)},e=r.prototype._manageStamp,r.prototype._manageStamp=function(){this.options.isOriginLeft=this.isotope.options.isOriginLeft;this.options.isOriginTop=this.isotope.options.isOriginTop;e.apply(this,arguments)},r.prototype.needsResizeLayout=function(){var n=i(this.element),r=this.size&&n,t=this.options.isHorizontal?"innerHeight":"innerWidth";return r&&n[t]!=this.size[t]},r}); 78/*! Copyright (c) 2013 Brandon Aaron (http://brandon.aaron.sh) 79 * Licensed under the MIT License (LICENSE.txt). 80 * 81 * Version: 3.1.11 82 * 83 * Requires: jQuery 1.2.2+ 84 */ 85!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof exports?module.exports=n:n(jQuery)}(function(n){function u(r){var u=r||window.event,w=c.call(arguments,1),l=0,s=0,e=0,a=0,b=0,k=0,v,y,p;if(r=n.event.fix(u),r.type="mousewheel","detail"in u&&(e=-1*u.detail),"wheelDelta"in u&&(e=u.wheelDelta),"wheelDeltaY"in u&&(e=u.wheelDeltaY),"wheelDeltaX"in u&&(s=-1*u.wheelDeltaX),"axis"in u&&u.axis===u.HORIZONTAL_AXIS&&(s=-1*e,e=0),l=0===e?s:e,"deltaY"in u&&(e=-1*u.deltaY,l=e),"deltaX"in u&&(s=u.deltaX,0===e&&(l=-1*s)),0!==e||0!==s)return 1===u.deltaMode?(v=n.data(this,"mousewheel-line-height"),l*=v,e*=v,s*=v):2===u.deltaMode&&(y=n.data(this,"mousewheel-page-height"),l*=y,e*=y,s*=y),(a=Math.max(Math.abs(e),Math.abs(s)),(!t||t>a)&&(t=a,o(u,a)&&(t/=40)),o(u,a)&&(l/=40,s/=40,e/=40),l=Math[l>=1?"floor":"ceil"](l/t),s=Math[s>=1?"floor":"ceil"](s/t),e=Math[e>=1?"floor":"ceil"](e/t),i.settings.normalizeOffset&&this.getBoundingClientRect)&&(p=this.getBoundingClientRect(),b=r.clientX-p.left,k=r.clientY-p.top),r.deltaX=s,r.deltaY=e,r.deltaFactor=t,r.offsetX=b,r.offsetY=k,r.deltaMode=0,w.unshift(r,l,s,e),f&&clearTimeout(f),f=setTimeout(h,200),(n.event.dispatch||n.event.handle).apply(this,w)}function h(){t=null}function o(n,t){return i.settings.adjustOldDeltas&&"mousewheel"===n.type&&t%120==0}var f,t,s=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],r="onwheel"in document||document.documentMode>
85=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],c=Array.prototype.slice,e,i;if(n.event.fixHooks)for(e=s.length;e;)n.event.fixHooks[s[--e]]=n.event.mouseHooks;i=n.event.special.mousewheel={version:"3.1.11",setup:function(){if(this.addEventListener)for(var t=r.length;t;)this.addEventListener(r[--t],u,!1);else this.onmousewheel=u;n.data(this,"mousewheel-line-height",i.getLineHeight(this));n.data(this,"mousewheel-page-height",i.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=r.length;t;)this.removeEventListener(r[--t],u,!1);else this.onmousewheel=null;n.removeData(this,"mousewheel-line-height");n.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var i=n(t)["offsetParent"in n.fn?"offsetParent":"parent"]();return i.length||(i=n("body")),parseInt(i.css("fontSize"),10)},getPageHeight:function(t){return n(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};n.fn.extend({mousewheel:function(n){return n?this.bind("mousewheel",n):this.trigger("mousewheel")},unmousewheel:function(n){return this.unbind("mousewheel",n)}})}),function(n){function e(){var e,t,r;u=!1;for(e in i)t=n(i[e]).filter(function(){return n(this).is(":appeared")}),t.trigger("appear",[t]),f&&(r=f.not(t),r.trigger("disappear",[r])),f=t}var i=[],r=!1,u=!1,o={interval:250,force_process:!1},t=n(window),f;n.expr[":"].appeared=function(i){var r=n(i);if(!r.is(":visible"))return!1;var u=t.scrollLeft(),f=t.scrollTop(),e=r.offset(),o=e.left,s=e.top;return s+r.height()>=f&&s-(r.data("appear-top-offset")||0)<=f+t.height()&&o+r.width()>=u&&o-(r.data("appear-left-offset")||0)<=u+t.width()?!0:!1};n.fn.extend({appear:function(t){var f=n.extend({},o,t||{}),h=this.selector||this,s;return r||(s=function(){u||(u=!0,setTimeout(e,f.interval))},n(window).scroll(s).resize(s),r=!0),f.force_process&&setTimeout(e,f.interval),i.push(h),n(h)}});n.extend({force_appear:function(){return r?(e(),!0):!1}})}(jQuery);typeof Object.create!="function"&&(Object.create=function(n){function t(){}return t.prototype=n,new t}),function(n,t){"use strict";var i={init:function(i,r){this.options=n.extend({},n.fn.singlePageNav.defaults,i);this.container=r;this.$container=n(r);this.$links=this.$container.find("a");this.options.filter!==""&&(this.$links=this.$links.filter(this.options.filter));this.$window=n(t);this.$htmlbody=n("html, body");this.$links.on("click.singlePageNav",n.proxy(this.handleClick,this));this.didScroll=!1;this.checkPosition();this.setTimer()},handleClick:function(t){var i=this,r=t.currentTarget,u=n(r.hash);t.preventDefault();u.length&&(i.clearTimer(),typeof i.options.beforeStart=="function"&&i.options.beforeStart(),i.setActiveLink(r.hash),i.scrollTo(u,function(){i.options.updateHash&&history.pushState&&history.pushState(null,null,r.hash);i.setTimer();typeof i.options.onComplete=="function"&&i.options.onComplete()}))},scrollTo:function(n,t){var i=this,u=i.getCoords(n).top,r=!1;i.$htmlbody.stop().animate({scrollTop:u},{duration:i.options.speed,easing:i.options.easing,complete:function(){typeof t!="function"||r||t();r=!0}})},setTimer:function(){var n=this;n.$window.on("scroll.singlePageNav",function(){n.didScroll=!0});n.timer=setInterval(function(){n.didScroll&&(n.didScroll=!1,n.checkPosition())},250)},clearTimer:function(){clearInterval(this.timer);this.$window.off("scroll.singlePageNav");this.didScroll=!1},checkPosition:function(){var t=this.$window.scrollTop(),n=this.getCurrentSection(t);n!==null&&this.setActiveLink(n)},getCoords:function(n){return{top:Math.round(n.offset().top)-this.options.offset}},setActiveLink:function(n){var t=this.$container.find("a[href$='"+n+"']");t.hasClass(this.options.currentClass)||(this.$links.removeClass(this.options.currentClass),t.addClass(this.options.currentClass))},getCurrentSection:function(t){for(var r,u,f,i=0;i<this.$links.length;i++)r=this.$links[i].hash,n(r).length&&(u=this.getCoords(n(r)),t>=u.top-this.options.threshold&&(f=r));return f||(this.$links.length===0?null:this.$links[0].hash)}};n.fn.singlePageNav=function(n){return this.each(function(){var t=Object.create(i);t.init(n,this)})};n.fn.singlePageNav.defaults={offset:0,threshold:120,speed:400,currentClass:"current",easing:"swing",updateHash:!1,filter:"",onComplete:!1,beforeStart:!1}}(jQuery,window,document)
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.