/* Waypoints - v2.0.3 */ (function(){var t=[].indexOf||function(t){for(var e=0,n=this.length;e=0;s={horizontal:{},vertical:{}};f=1;a={};u="waypoints-context-id";p="resize.waypoints";y="scroll.waypoints";v=1;w="waypoints-waypoint-ids";g="waypoint";m="waypoints";o=function(){function t(t){var e=this;this.$element=t;this.element=t[0];this.didResize=false;this.didScroll=false;this.id="context"+f++;this.oldScroll={x:t.scrollLeft(),y:t.scrollTop()};this.waypoints={horizontal:{},vertical:{}};t.data(u,this.id);a[this.id]=this;t.bind(y,function(){var t;if(!(e.didScroll||c)){e.didScroll=true;t=function(){e.doScroll();return e.didScroll=false};return r.setTimeout(t,n[m].settings.scrollThrottle)}});t.bind(p,function(){var t;if(!e.didResize){e.didResize=true;t=function(){n[m]("refresh");return e.didResize=false};return r.setTimeout(t,n[m].settings.resizeThrottle)}})}t.prototype.doScroll=function(){var t,e=this;t={horizontal:{newScroll:this.$element.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.$element.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};if(c&&(!t.vertical.oldScroll||!t.vertical.newScroll)){n[m]("refresh")}n.each(t,function(t,r){var i,o,l;l=[];o=r.newScroll>r.oldScroll;i=o?r.forward:r.backward;n.each(e.waypoints[t],function(t,e){var n,i;if(r.oldScroll<(n=e.offset)&&n<=r.newScroll){return l.push(e)}else if(r.newScroll<(i=e.offset)&&i<=r.oldScroll){return l.push(e)}});l.sort(function(t,e){return t.offset-e.offset});if(!o){l.reverse()}return n.each(l,function(t,e){if(e.options.continuous||t===l.length-1){return e.trigger([i])}})});return this.oldScroll={x:t.horizontal.newScroll,y:t.vertical.newScroll}};t.prototype.refresh=function(){var t,e,r,i=this;r=n.isWindow(this.element);e=this.$element.offset();this.doScroll();t={horizontal:{contextOffset:r?0:e.left,contextScroll:r?0:this.oldScroll.x,contextDimension:this.$element.width(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:r?0:e.top,contextScroll:r?0:this.oldScroll.y,contextDimension:r?n[m]("viewportHeight"):this.$element.height(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};return n.each(t,function(t,e){return n.each(i.waypoints[t],function(t,r){var i,o,l,s,f;i=r.options.offset;l=r.offset;o=n.isWindow(r.element)?0:r.$element.offset()[e.offsetProp];if(n.isFunction(i)){i=i.apply(r.element)}else if(typeof i==="string"){i=parseFloat(i);if(r.options.offset.indexOf("%")>-1){i=Math.ceil(e.contextDimension*i/100)}}r.offset=o-e.contextOffset+e.contextScroll-i;if(r.options.onlyOnScroll&&l!=null||!r.enabled){return}if(l!==null&&l<(s=e.oldScroll)&&s<=r.offset){return r.trigger([e.backward])}else if(l!==null&&l>(f=e.oldScroll)&&f>=r.offset){return r.trigger([e.forward])}else if(l===null&&e.oldScroll>=r.offset){return r.trigger([e.forward])}})})};t.prototype.checkEmpty=function(){if(n.isEmptyObject(this.waypoints.horizontal)&&n.isEmptyObject(this.waypoints.vertical)){this.$element.unbind([p,y].join(" "));return delete a[this.id]}};return t}();l=function(){function t(t,e,r){var i,o;r=n.extend({},n.fn[g].defaults,r);if(r.offset==="bottom-in-view"){r.offset=function(){var t;t=n[m]("viewportHeight");if(!n.isWindow(e.element)){t=e.$element.height()}return t-n(this).outerHeight()}}this.$element=t;this.element=t[0];this.axis=r.horizontal?"horizontal":"vertical";this.callback=r.handler;this.context=e;this.enabled=r.enabled;this.id="waypoints"+v++;this.offset=null;this.options=r;e.waypoints[this.axis][this.id]=this;s[this.axis][this.id]=this;i=(o=t.data(w))!=null?o:[];i.push(this.id);t.data(w,i)}t.prototype.trigger=function(t){if(!this.enabled){return}if(this.callback!=null){this.callback.apply(this.element,t)}if(this.options.triggerOnce){return this.destroy()}};t.prototype.disable=function(){return this.enabled=false};t.prototype.enable=function(){this.context.refresh();return this.enabled=true};t.prototype.destroy=function(){delete s[this.axis][this.id];delete this.context.waypoints[this.axis][this.id];return this.context.checkEmpty()};t.getWaypointsByElement=function(t){var e,r;r=n(t).data(w);if(!r){return[]}e=n.extend({},s.horizontal,s.vertical);return n.map(r,function(t){return e[t]})};return t}();d={init:function(t,e){var r;if(e==null){e={}}if((r=e.handler)==null){e.handler=t}this.each(function(){var t,r,i,s;t=n(this);i=(s=e.context)!=null?s:n.fn[g].defaults.context;if(!n.isWindow(i)){i=t.closest(i)}i=n(i);r=a[i.data(u)];if(!r){r=new o(i)}return new l(t,r,e)});n[m]("refresh");return this},disable:function(){return d._invoke(this,"disable")},enable:function(){return d._invoke(this,"enable")},destroy:function(){return d._invoke(this,"destroy")},prev:function(t,e){return d._traverse.call(this,t,e,function(t,e,n){if(e>0){return t.push(n[e-1])}})},next:function(t,e){return d._traverse.call(this,t,e,function(t,e,n){if(et.oldScroll.y})},left:function(t){if(t==null){t=r}return h._filter(t,"horizontal",function(t,e){return e.offset<=t.oldScroll.x})},right:function(t){if(t==null){t=r}return h._filter(t,"horizontal",function(t,e){return e.offset>t.oldScroll.x})},enable:function(){return h._invoke("enable")},disable:function(){return h._invoke("disable")},destroy:function(){return h._invoke("destroy")},extendFn:function(t,e){return d[t]=e},_invoke:function(t){var e;e=n.extend({},s.vertical,s.horizontal);return n.each(e,function(e,n){n[t]();return true})},_filter:function(t,e,r){var i,o;i=a[n(t).data(u)];if(!i){return[]}o=[];n.each(i.waypoints[e],function(t,e){if(r(i,e)){return o.push(e)}});o.sort(function(t,e){return t.offset-e.offset});return n.map(o,function(t){return t.element})}};n[m]=function(){var t,n;n=arguments[0],t=2<=arguments.length?e.call(arguments,1):[];if(h[n]){return h[n].apply(null,t)}else{return h.aggregate.call(null,n)}};n[m].settings={resizeThrottle:100,scrollThrottle:30};return i.load(function(){return n[m]("refresh")})})}).call(this); /* * jquery.counterup.js 1.0 */ (function(e){"use strict";e.fn.counterUp=function(t){var n=e.extend({time:400,delay:10},t);return this.each(function(){var t=e(this),r=n,i=function(){var e=[],n=r.time/r.delay,i=t.text(),s=/[0-9]+,[0-9]+/.test(i);i=i.replace(/,/g,"");var o=/^[0-9]+$/.test(i),u=/^[0-9]+\.[0-9]+$/.test(i),a=u?(i.split(".")[1]||[]).length:0;for(var f=n;f>=1;f--){var l=parseInt(i/n*f);u&&(l=parseFloat(i/n*f).toFixed(a));if(s)while(/(\d+)(\d{3})/.test(l.toString()))l=l.toString().replace(/(\d+)(\d{3})/,"$1,$2");e.unshift(l)}t.data("counterup-nums",e);t.text("0");var c=function(){t.text(t.data("counterup-nums").shift());if(t.data("counterup-nums").length)setTimeout(t.data("counterup-func"),r.delay);else{delete t.data("counterup-nums");t.data("counterup-nums",null);t.data("counterup-func",null)}};t.data("counterup-func",c);setTimeout(t.data("counterup-func"),r.delay)};t.waypoint(i,{offset:"100%",triggerOnce:!0})})}})(jQuery); /* tilt.js */ var VanillaTilt=function(){"use strict";class t{constructor(t,e={}){if(!(t instanceof Node))throw"Can't initialize VanillaTilt because "+t+" is not a Node.";this.width=null,this.height=null,this.left=null,this.top=null,this.transitionTimeout=null,this.updateCall=null,this.updateBind=this.update.bind(this),this.resetBind=this.reset.bind(this),this.element=t,this.settings=this.extendSettings(e),this.reverse=this.settings.reverse?-1:1,this.glare=this.isSettingTrue(this.settings.glare),this.glarePrerender=this.isSettingTrue(this.settings["glare-prerender"]),this.glare&&this.prepareGlare(),this.addEventListeners()}isSettingTrue(t){return""===t||!0===t||1===t}addEventListeners(){this.onMouseEnterBind=this.onMouseEnter.bind(this),this.onMouseMoveBind=this.onMouseMove.bind(this),this.onMouseLeaveBind=this.onMouseLeave.bind(this),this.onWindowResizeBind=this.onWindowResizeBind.bind(this),this.element.addEventListener("mouseenter",this.onMouseEnterBind),this.element.addEventListener("mousemove",this.onMouseMoveBind),this.element.addEventListener("mouseleave",this.onMouseLeaveBind),this.glare&&window.addEventListener("resize",this.onWindowResizeBind)}removeEventListeners(){this.element.removeEventListener("mouseenter",this.onMouseEnterBind),this.element.removeEventListener("mousemove",this.onMouseMoveBind),this.element.removeEventListener("mouseleave",this.onMouseLeaveBind),this.glare&&window.removeEventListener("resize",this.onWindowResizeBind)}destroy(){clearTimeout(this.transitionTimeout),null!==this.updateCall&&cancelAnimationFrame(this.updateCall),this.reset(),this.removeEventListeners(),this.element.vanillaTilt=null,delete this.element.vanillaTilt,this.element=null}onMouseEnter(t){this.updateElementPosition(),this.element.style.willChange="transform",this.setTransition()}onMouseMove(t){null!==this.updateCall&&cancelAnimationFrame(this.updateCall),this.event=t,this.updateCall=requestAnimationFrame(this.updateBind)}onMouseLeave(t){this.setTransition(),this.settings.reset&&requestAnimationFrame(this.resetBind)}reset(){this.event={pageX:this.left+this.width/2,pageY:this.top+this.height/2},this.element.style.transform="perspective("+this.settings.perspective+"px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)",this.glare&&(this.glareElement.style.transform="rotate(180deg) translate(-50%, -50%)",this.glareElement.style.opacity="0")}getValues(){let t=(this.event.clientX-this.left)/this.width,e=(this.event.clientY-this.top)/this.height;return t=Math.min(Math.max(t,0),1),e=Math.min(Math.max(e,0),1),{tiltX:(this.reverse*(this.settings.max/2-t*this.settings.max)).toFixed(2),tiltY:(this.reverse*(e*this.settings.max-this.settings.max/2)).toFixed(2),percentageX:100*t,percentageY:100*e,angle:Math.atan2(this.event.clientX-(this.left+this.width/2),-(this.event.clientY-(this.top+this.height/2)))*(180/Math.PI)}}updateElementPosition(){let t=this.element.getBoundingClientRect();this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.left=t.left,this.top=t.top}update(){let t=this.getValues();this.element.style.transform="perspective("+this.settings.perspective+"px) rotateX("+("x"===this.settings.axis?0:t.tiltY)+"deg) rotateY("+("y"===this.settings.axis?0:t.tiltX)+"deg) scale3d("+this.settings.scale+", "+this.settings.scale+", "+this.settings.scale+")",this.glare&&(this.glareElement.style.transform=`rotate(${t.angle}deg) translate(-50%, -50%)`,this.glareElement.style.opacity=`${t.percentageY*this.settings["max-glare"]/100}`),this.element.dispatchEvent(new CustomEvent("tiltChange",{detail:t})),this.updateCall=null}prepareGlare(){if(!this.glarePrerender){const t=document.createElement("div");t.classList.add("js-tilt-glare");const e=document.createElement("div");e.classList.add("js-tilt-glare-inner"),t.appendChild(e),this.element.appendChild(t)}this.glareElementWrapper=this.element.querySelector(".js-tilt-glare"),this.glareElement=this.element.querySelector(".js-tilt-glare-inner"),this.glarePrerender||(Object.assign(this.glareElementWrapper.style,{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",overflow:"hidden"}),Object.assign(this.glareElement.style,{position:"absolute",top:"50%",left:"50%","pointer-events":"none","background-image":`linear-gradient(0deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%)`,width:`${2*this.element.offsetWidth}px`,height:`${2*this.element.offsetWidth}px`,transform:"rotate(180deg) translate(-50%, -50%)","transform-origin":"0% 0%",opacity:"0"}))}updateGlareSize(){Object.assign(this.glareElement.style,{width:`${2*this.element.offsetWidth}`,height:`${2*this.element.offsetWidth}`})}onWindowResizeBind(){this.updateGlareSize()}setTransition(){clearTimeout(this.transitionTimeout),this.element.style.transition=this.settings.speed+"ms "+this.settings.easing,this.glare&&(this.glareElement.style.transition=`opacity ${this.settings.speed}ms ${this.settings.easing}`),this.transitionTimeout=setTimeout(()=>{this.element.style.transition="";this.glare&&(this.glareElement.style.transition="")},this.settings.speed)}extendSettings(t){let e={reverse:!1,max:35,perspective:1e3,easing:"cubic-bezier(.03,.98,.52,.99)",scale:"1",speed:"300",transition:!0,axis:null,glare:!1,"max-glare":1,"glare-prerender":!1,reset:!0},i={};for(var s in e)if(s in t)i[s]=t[s];else if(this.element.hasAttribute("data-tilt-"+s)){let t=this.element.getAttribute("data-tilt-"+s);try{i[s]=JSON.parse(t)}catch(e){i[s]=t}}else i[s]=e[s];return i}static init(e,i){e instanceof Node&&(e=[e]),e instanceof NodeList&&(e=[].slice.call(e)),e instanceof Array&&e.forEach(e=>{"vanillaTilt"in e||(e.vanillaTilt=new t(e,i))})}}return"undefined"!=typeof document&&(window.VanillaTilt=t,t.init(document.querySelectorAll("[data-tilt]"))),t}(); /*owl.carousel.min*/ (function(i,l,n,g){var j,b,k;j={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};b={isTouch:false,isScrolling:false,isSwiping:false,direction:false,inMotion:false};k={_onDragStart:null,_onDragMove:null,_onDragEnd:null,_transitionEnd:null,_resizer:null,_responsiveCall:null,_goToLoop:null,_checkVisibile:null};function c(q,e){this.settings=null;this.options=i.extend({},c.Defaults,e);this.$element=i(q);this.drag=i.extend({},j);this.state=i.extend({},b);this.e=i.extend({},k);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=[];i.each(c.Plugins,i.proxy(function(r,s){this._plugins[r[0].toLowerCase()+r.slice(1)]=new s(this)},this));i.each(c.Pipe,i.proxy(function(r,s){this._pipe.push({filter:s.filter,run:i.proxy(s.run,this)})},this));this.setup();this.initialize()}c.Defaults={items:3,loop:false,center:false,mouseDrag:true,touchDrag:true,pullDrag:true,freeDrag:false,margin:0,stagePadding:0,merge:false,mergeFit:true,autoWidth:false,startPosition:0,rtl:false,smartSpeed:250,fluidSpeed:false,dragEndSpeed:false,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:l,responsiveClass:false,fallbackEasing:"swing",info:false,nestedItemSelector:false,itemElement:"div",stageElement:"div",themeClass:"owl-theme",baseClass:"owl-carousel",itemClass:"owl-item",centerClass:"center",activeClass:"active"};c.Width={Default:"default",Inner:"inner",Outer:"outer"};c.Plugins={};c.Pipe=[{filter:["width","items","settings"],run:function(e){e.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){var e=this._clones,q=this.$stage.children(".cloned");if(q.length!==e.length||(!this.settings.loop&&e.length>0)){this.$stage.children(".cloned").remove();this._clones=[]}}},{filter:["items","settings"],run:function(){var q,t,r=this._clones,e=this._items,s=this.settings.loop?r.length-Math.max(this.settings.items*2,4):0;for(q=0,t=Math.abs(s/2);q0){this.$stage.children().eq(e.length+r.length-1).remove();r.pop();this.$stage.children().eq(0).remove();r.pop()}else{r.push(r.length/2);this.$stage.append(e[r[r.length-1]].clone().addClass("cloned"));r.push(e.length-1-(r.length-1)/2);this.$stage.prepend(e[r[r.length-1]].clone().addClass("cloned"))}}}},{filter:["width","items","settings"],run:function(){var r=(this.settings.rtl?1:-1),q=(this.width()/this.settings.items).toFixed(3),u=0,t,e,s;this._coordinates=[];for(e=0,s=this._clones.length+this._items.length;e1}).length>0){for(q=0,s=this._coordinates.length;q",r)))||(this.op(w,"<",q)&&this.op(w,">",r))){t.push(s)}}this.$stage.children("."+this.settings.activeClass).removeClass(this.settings.activeClass);this.$stage.children(":eq("+t.join("), :eq(")+")").addClass(this.settings.activeClass);if(this.settings.center){this.$stage.children("."+this.settings.centerClass).removeClass(this.settings.centerClass);this.$stage.children().eq(this.current()).addClass(this.settings.centerClass)}}}];c.prototype.initialize=function(){this.trigger("initialize");this.$element.addClass(this.settings.baseClass).addClass(this.settings.themeClass).toggleClass("owl-rtl",this.settings.rtl);this.browserSupport();if(this.settings.autoWidth&&this.state.imagesLoaded!==true){var r,q,e;r=this.$element.find("img");q=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:g;e=this.$element.children(q).width();if(r.length&&e<=0){this.preloadAutoWidthImages(r);return false}}this.$element.addClass("owl-loading");this.$stage=i("<"+this.settings.stageElement+' class="owl-stage"/>').wrap('
');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")};c.prototype.setup=function(){var e=this.viewport(),r=this.options.responsive,q=-1,s=null;if(!r){s=i.extend({},this.options)}else{i.each(r,function(t){if(t<=e&&t>q){q=Number(t)}});s=i.extend({},this.options,r[q]);delete s.responsive;if(s.responsiveClass){this.$element.attr("class",function(t,u){return u.replace(/\b owl-responsive-\S+/g,"")}).addClass("owl-responsive-"+q)}}if(this.settings===null||this._breakpoint!==q){this.trigger("change",{property:{name:"settings",value:s}});this._breakpoint=q;this.settings=s;this.invalidate("settings");this.trigger("changed",{property:{name:"settings",value:this.settings}})}};c.prototype.optionsLogic=function(){this.$element.toggleClass("owl-center",this.settings.center);if(this.settings.loop&&this._items.length").addClass(this.settings.itemClass).append(q)}this.trigger("prepared",{content:e.data});return e.data};c.prototype.update=function(){var q=0,s=this._pipe.length,r=i.proxy(function(t){return this[t]},this._invalidated),e={};while(q0){this._pipe[q].run(e)}q++}this._invalidated={}};c.prototype.width=function(e){e=e||c.Width.Default;switch(e){case c.Width.Inner:case c.Width.Outer:return this._width;default:return this._width-this.settings.stagePadding*2+this.settings.margin}};c.prototype.refresh=function(){if(this._items.length===0){return false}var e=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=l.orientation;this.watchVisibility();this.trigger("refreshed")};c.prototype.eventsCall=function(){this.e._onDragStart=i.proxy(function(q){this.onDragStart(q)},this);this.e._onDragMove=i.proxy(function(q){this.onDragMove(q)},this);this.e._onDragEnd=i.proxy(function(q){this.onDragEnd(q)},this);this.e._onResize=i.proxy(function(q){this.onResize(q)},this);this.e._transitionEnd=i.proxy(function(q){this.transitionEnd(q)},this);this.e._preventClick=i.proxy(function(q){this.preventClick(q)},this)};c.prototype.onThrottledResize=function(){l.clearTimeout(this.resizeTimer);this.resizeTimer=l.setTimeout(this.e._onResize,this.settings.responsiveRefreshRate)};c.prototype.onResize=function(){if(!this._items.length){return false}if(this._width===this.$element.width()){return false}if(this.trigger("resize").isDefaultPrevented()){return false}this._width=this.$element.width();this.invalidate("width");this.refresh();this.trigger("resized")};c.prototype.eventsRouter=function(q){var e=q.type;if(e==="mousedown"||e==="touchstart"){this.onDragStart(q)}else{if(e==="mousemove"||e==="touchmove"){this.onDragMove(q)}else{if(e==="mouseup"||e==="touchend"){this.onDragEnd(q)}else{if(e==="touchcancel"){this.onDragEnd(q)}}}}};c.prototype.internalEvents=function(){var e=m(),q=p();if(this.settings.mouseDrag){this.$stage.on("mousedown",i.proxy(function(r){this.eventsRouter(r)},this));this.$stage.on("dragstart",function(){return false});this.$stage.get(0).onselectstart=function(){return false}}else{this.$element.addClass("owl-text-select-on")}if(this.settings.touchDrag&&!q){this.$stage.on("touchstart touchcancel",i.proxy(function(r){this.eventsRouter(r)},this))}if(this.transitionEndVendor){this.on(this.$stage.get(0),this.transitionEndVendor,this.e._transitionEnd,false)}if(this.settings.responsive!==false){this.on(l,"resize",i.proxy(this.onThrottledResize,this))}};c.prototype.onDragStart=function(t){var s,u,r,q,e;s=t.originalEvent||t||l.event;if(s.which===3||this.state.isTouch){return false}if(s.type==="mousedown"){this.$stage.addClass("owl-grab")}this.trigger("drag");this.drag.startTime=new Date().getTime();this.speed(0);this.state.isTouch=true;this.state.isScrolling=false;this.state.isSwiping=false;this.drag.distance=0;r=d(s).x;q=d(s).y;this.drag.offsetX=this.$stage.position().left;this.drag.offsetY=this.$stage.position().top;if(this.settings.rtl){this.drag.offsetX=this.$stage.position().left+this.$stage.width()-this.width()+this.settings.margin}if(this.state.inMotion&&this.support3d){e=this.getTransformProperty();this.drag.offsetX=e;this.animate(e);this.state.inMotion=true}else{if(this.state.inMotion&&!this.support3d){this.state.inMotion=false;return false}}this.drag.startX=r-this.drag.offsetX;this.drag.startY=q-this.drag.offsetY;this.drag.start=r-this.drag.startX;this.drag.targetEl=s.target||s.srcElement;this.drag.updatedX=this.drag.start;if(this.drag.targetEl.tagName==="IMG"||this.drag.targetEl.tagName==="A"){this.drag.targetEl.draggable=false}i(n).on("mousemove.owl.dragEvents mouseup.owl.dragEvents touchmove.owl.dragEvents touchend.owl.dragEvents",i.proxy(function(v){this.eventsRouter(v)},this))};c.prototype.onDragMove=function(s){var r,w,q,e,u,v,t;if(!this.state.isTouch){return}if(this.state.isScrolling){return}r=s.originalEvent||s||l.event;q=d(r).x;e=d(r).y;this.drag.currentX=q-this.drag.startX;this.drag.currentY=e-this.drag.startY;this.drag.distance=this.drag.currentX-this.drag.offsetX;if(this.drag.distance<0){this.state.direction=this.settings.rtl?"right":"left"}else{if(this.drag.distance>0){this.state.direction=this.settings.rtl?"left":"right"}}if(this.settings.loop){if(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)}else{if(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)}}}else{u=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum());v=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum());t=this.settings.pullDrag?this.drag.distance/5:0;this.drag.currentX=Math.max(Math.min(this.drag.currentX,u+t),v+t)}if((this.drag.distance>8||this.drag.distance<-8)){if(r.preventDefault!==g){r.preventDefault()}else{r.returnValue=false}this.state.isSwiping=true}this.drag.updatedX=this.drag.currentX;if((this.drag.currentY>16||this.drag.currentY<-16)&&this.state.isSwiping===false){this.state.isScrolling=true;this.drag.updatedX=this.drag.start}this.animate(this.drag.updatedX)};c.prototype.onDragEnd=function(s){var q,e,r;if(!this.state.isTouch){return}if(s.type==="mouseup"){this.$stage.removeClass("owl-grab")}this.trigger("dragged");this.drag.targetEl.removeAttribute("draggable");this.state.isTouch=false;this.state.isScrolling=false;this.state.isSwiping=false;if(this.drag.distance===0&&this.state.inMotion!==true){this.state.inMotion=false;return false}this.drag.endTime=new Date().getTime();q=this.drag.endTime-this.drag.startTime;e=Math.abs(this.drag.distance);if(e>3||q>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();if(!this.settings.pullDrag&&this.drag.updatedX===this.coordinates(r)){this.transitionEnd()}this.drag.distance=0;i(n).off(".owl.dragEvents")};c.prototype.removeClick=function(e){this.drag.targetEl=e;i(e).on("click.preventClick",this.e._preventClick);l.setTimeout(function(){i(e).off("click.preventClick")},300)};c.prototype.preventClick=function(e){if(e.preventDefault){e.preventDefault()}else{e.returnValue=false}if(e.stopPropagation){e.stopPropagation()}i(e.target).off("click.preventClick")};c.prototype.getTransformProperty=function(){var e,q;e=l.getComputedStyle(this.$stage.get(0),null).getPropertyValue(this.vendorName+"transform");e=e.replace(/matrix(3d)?\(|\)/g,"").split(",");q=e.length===16;return q!==true?e[4]:e[12]};c.prototype.closest=function(t){var e=-1,r=30,q=this.width(),s=this.coordinates();if(!this.settings.freeDrag){i.each(s,i.proxy(function(u,v){if(t>v-r&&t",s[u+1]||v-q)){e=this.state.direction==="left"?u+1:u}}return e===-1},this))}if(!this.settings.loop){if(this.op(t,">",s[this.minimum()])){e=t=this.minimum()}else{if(this.op(t,"<",s[this.maximum()])){e=t=this.maximum()}}}return e};c.prototype.animate=function(e){this.trigger("translate");this.state.inMotion=this.speed()>0;if(this.support3d){this.$stage.css({transform:"translate3d("+e+"px,0px, 0px)",transition:(this.speed()/1000)+"s"})}else{if(this.state.isTouch){this.$stage.css({left:e+"px"})}else{this.$stage.animate({left:e},this.speed()/1000,this.settings.fallbackEasing,i.proxy(function(){if(this.state.inMotion){this.transitionEnd()}},this))}}};c.prototype.current=function(e){if(e===g){return this._current}if(this._items.length===0){return g}e=this.normalize(e);if(this._current!==e){var q=this.trigger("change",{property:{name:"position",value:e}});if(q.data!==g){e=this.normalize(q.data)}this._current=e;this.invalidate("position");this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current};c.prototype.invalidate=function(e){this._invalidated[e]=true};c.prototype.reset=function(e){e=this.normalize(e);if(e===g){return}this._speed=0;this._current=e;this.suppress(["translate","translated"]);this.animate(this.coordinates(e));this.release(["translate","translated"])};c.prototype.normalize=function(e,q){var r=(q?this._items.length:this._items.length+this._clones.length);if(!i.isNumeric(e)||r<1){return g}if(this._clones.length){e=((e%r)+r)%r}else{e=Math.max(this.minimum(q),Math.min(this.maximum(q),e))}return e};c.prototype.relative=function(e){e=this.normalize(e);e=e-this._clones.length/2;return this.normalize(e,true)};c.prototype.maximum=function(s){var t,r,e=0,u,q=this.settings;if(s){return this._items.length-1}if(!q.loop&&q.center){t=this._items.length-1}else{if(!q.loop&&!q.center){t=this._items.length-q.items}else{if(q.loop||q.center){t=this._items.length+q.items}else{if(q.autoWidth||q.merge){revert=q.rtl?1:-1;r=this.$stage.width()-this.$element.width();while(u=this.coordinates(e)){if(u*revert>=r){break}t=++e}}else{throw"Can not detect maximum absolute position."}}}}return t};c.prototype.minimum=function(e){if(e){return 0}return this._clones.length/2};c.prototype.items=function(e){if(e===g){return this._items.slice()}e=this.normalize(e,true);return this._items[e]};c.prototype.mergers=function(e){if(e===g){return this._mergers.slice()}e=this.normalize(e,true);return this._mergers[e]};c.prototype.clones=function(e){var q=this._clones.length/2,s=q+this._items.length,r=function(t){return t%2===0?s+t/2:q-(t+1)/2};if(e===g){return i.map(this._clones,function(t,u){return r(u)})}return i.map(this._clones,function(t,u){return t===e?r(u):null})};c.prototype.speed=function(e){if(e!==g){this._speed=e}return this._speed};c.prototype.coordinates=function(e){var q=null;if(e===g){return i.map(this._coordinates,i.proxy(function(s,r){return this.coordinates(r)},this))}if(this.settings.center){q=this._coordinates[e];q+=(this.width()-q+(this._coordinates[e-1]||0))/2*(this.settings.rtl?-1:1)}else{q=this._coordinates[e-1]||0}return q};c.prototype.duration=function(r,q,e){return Math.min(Math.max(Math.abs(q-r),1),6)*Math.abs((e||this.settings.smartSpeed))};c.prototype.to=function(e,t){if(this.settings.loop){var w=e-this.relative(this.current()),q=this.current(),s=this.current(),v=this.current()+w,u=s-v<0?true:false,r=this._clones.length+this._items.length;if(v=r-this.settings.items&&u===true){q=s-this._items.length;this.reset(q)}}l.clearTimeout(this.e._goToLoop);this.e._goToLoop=l.setTimeout(i.proxy(function(){this.speed(this.duration(this.current(),q+w,t));this.current(q+w);this.update()},this),30)}else{this.speed(this.duration(this.current(),e,t));this.current(e);this.update()}};c.prototype.next=function(e){e=e||false;this.to(this.relative(this.current())+1,e)};c.prototype.prev=function(e){e=e||false;this.to(this.relative(this.current())-1,e)};c.prototype.transitionEnd=function(e){if(e!==g){e.stopPropagation();if((e.target||e.srcElement||e.originalTarget)!==this.$stage.get(0)){return false}}this.state.inMotion=false;this.trigger("translated")};c.prototype.viewport=function(){var e;if(this.options.responsiveBaseElement!==l){e=i(this.options.responsiveBaseElement).width()}else{if(l.innerWidth){e=l.innerWidth}else{if(n.documentElement&&n.documentElement.clientWidth){e=n.documentElement.clientWidth}else{throw"Can not detect viewport width."}}}return e};c.prototype.replace=function(e){this.$stage.empty();this._items=[];if(e){e=(e instanceof jQuery)?e:i(e)}if(this.settings.nestedItemSelector){e=e.find("."+this.settings.nestedItemSelector)}e.filter(function(){return this.nodeType===1}).each(i.proxy(function(q,r){r=this.prepare(r);this.$stage.append(r);this._items.push(r);this._mergers.push(r.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")*1||1)},this));this.reset(i.isNumeric(this.settings.startPosition)?this.settings.startPosition:0);this.invalidate("items")};c.prototype.add=function(q,e){e=e===g?this._items.length:this.normalize(e,true);this.trigger("add",{content:q,position:e});if(this._items.length===0||e===this._items.length){this.$stage.append(q);this._items.push(q);this._mergers.push(q.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")*1||1)}else{this._items[e].before(q);this._items.splice(e,0,q);this._mergers.splice(e,0,q.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")*1||1)}this.invalidate("items");this.trigger("added",{content:q,position:e})};c.prototype.remove=function(e){e=this.normalize(e,true);if(e===g){return}this.trigger("remove",{content:this._items[e],position:e});this._items[e].remove();this._items.splice(e,1);this._mergers.splice(e,1);this.invalidate("items");this.trigger("removed",{content:null,position:e})};c.prototype.addTriggerableEvents=function(){var e=i.proxy(function(r,q){return i.proxy(function(s){if(s.relatedTarget!==this){this.suppress([q]);r.apply(this,[].slice.call(arguments,1));this.release([q])}},this)},this);i.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},i.proxy(function(q,r){this.$element.on(q+".owl.carousel",e(r,q+".owl.carousel"))},this))};c.prototype.watchVisibility=function(){if(!q(this.$element.get(0))){this.$element.addClass("owl-hidden");l.clearInterval(this.e._checkVisibile);this.e._checkVisibile=l.setInterval(i.proxy(e,this),500)}function q(r){return r.offsetWidth>0&&r.offsetHeight>0}function e(){if(q(this.$element.get(0))){this.$element.removeClass("owl-hidden");this.refresh();l.clearInterval(this.e._checkVisibile)}}};c.prototype.preloadAutoWidthImages=function(t){var q,s,r,e;q=0;s=this;t.each(function(u,v){r=i(v);e=new Image();e.onload=function(){q++;r.attr("src",e.src);r.css("opacity",1);if(q>=t.length){s.state.imagesLoaded=true;s.initialize()}};e.src=r.attr("src")||r.attr("data-src")||r.attr("data-src-retina")})};c.prototype.destroy=function(){if(this.$element.hasClass(this.settings.themeClass)){this.$element.removeClass(this.settings.themeClass)}if(this.settings.responsive!==false){i(l).off("resize.owl.carousel")}if(this.transitionEndVendor){this.off(this.$stage.get(0),this.transitionEndVendor,this.e._transitionEnd)}for(var e in this._plugins){this._plugins[e].destroy()}if(this.settings.mouseDrag||this.settings.touchDrag){this.$stage.off("mousedown touchstart touchcancel");i(n).off(".owl.dragEvents");this.$stage.get(0).onselectstart=function(){};this.$stage.off("dragstart",function(){return false})}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()};c.prototype.op=function(q,s,e){var r=this.settings.rtl;switch(s){case"<":return r?q>e:q":return r?qe;case">=":return r?q<=e:q>=e;case"<=":return r?q>=e:q<=e;default:break}};c.prototype.on=function(q,r,s,e){if(q.addEventListener){q.addEventListener(r,s,e)}else{if(q.attachEvent){q.attachEvent("on"+r,s)}}};c.prototype.off=function(q,r,s,e){if(q.removeEventListener){q.removeEventListener(r,s,e)}else{if(q.detachEvent){q.detachEvent("on"+r,s)}}};c.prototype.trigger=function(q,u,s){var e={item:{count:this._items.length,index:this.current()}},r=i.camelCase(i.grep(["on",q,s],function(w){return w}).join("-").toLowerCase()),t=i.Event([q,"owl",s||"carousel"].join(".").toLowerCase(),i.extend({relatedTarget:this},e,u));if(!this._supress[q]){i.each(this._plugins,function(v,w){if(w.onTrigger){w.onTrigger(t)}});this.$element.trigger(t);if(this.settings&&typeof this.settings[r]==="function"){this.settings[r].apply(this,t)}}return t};c.prototype.suppress=function(e){i.each(e,i.proxy(function(q,r){this._supress[r]=true},this))};c.prototype.release=function(e){i.each(e,i.proxy(function(q,r){delete this._supress[r]},this))};c.prototype.browserSupport=function(){this.support3d=o();if(this.support3d){this.transformVendor=f();var e=["transitionend","webkitTransitionEnd","transitionend","oTransitionEnd"];this.transitionEndVendor=e[h()];this.vendorName=this.transformVendor.replace(/Transform/i,"");this.vendorName=this.vendorName!==""?"-"+this.vendorName.toLowerCase()+"-":""}this.state.orientation=l.orientation};function d(e){if(e.touches!==g){return{x:e.touches[0].pageX,y:e.touches[0].pageY}}if(e.touches===g){if(e.pageX!==g){return{x:e.pageX,y:e.pageY}}if(e.pageX===g){return{x:e.clientX,y:e.clientY}}}}function a(u){var t,q,e=n.createElement("div"),r=u;for(t in r){q=r[t];if(typeof e.style[q]!=="undefined"){e=null;return[q,t]}}return[false]}function h(){return a(["transition","WebkitTransition","MozTransition","OTransition"])[1]}function f(){return a(["transform","WebkitTransform","MozTransform","OTransform","msTransform"])[0]}function o(){return a(["perspective","webkitPerspective","MozPerspective","OPerspective","MsPerspective"])[0]}function m(){return"ontouchstart" in l||!!(navigator.msMaxTouchPoints)}function p(){return l.navigator.msPointerEnabled}i.fn.owlCarousel=function(e){return this.each(function(){if(!i(this).data("owlCarousel")){i(this).data("owlCarousel",new c(this,e))}})};i.fn.owlCarousel.Constructor=c})(window.Zepto||window.jQuery,window,document);(function(d,c,a,e){var b=function(f){this._core=f;this._loaded=[];this._handlers={"initialized.owl.carousel change.owl.carousel":d.proxy(function(m){if(!m.namespace){return}if(!this._core.settings||!this._core.settings.lazyLoad){return}if((m.property&&m.property.name=="position")||m.type=="initialized"){var j=this._core.settings,o=(j.center&&Math.ceil(j.items/2)||j.items),h=((j.center&&o*-1)||0),g=((m.property&&m.property.value)||this._core.current())+h,l=this._core.clones().length,k=d.proxy(function(p,n){this.load(n)},this);while(h++-1){return}h.each(d.proxy(function(k,l){var i=d(l),m,j=(c.devicePixelRatio>1&&i.attr("data-src-retina"))||i.attr("data-src");this._core.trigger("load",{element:i,url:j},"lazy");if(i.is("img")){i.one("load.owl.lazy",d.proxy(function(){i.css("opacity",1);this._core.trigger("loaded",{element:i,url:j},"lazy")},this)).attr("src",j)}else{m=new Image();m.onload=d.proxy(function(){i.css({"background-image":"url("+j+")",opacity:"1"});this._core.trigger("loaded",{element:i,url:j},"lazy")},this);m.src=j}},this));this._loaded.push(g.get(0))};b.prototype.destroy=function(){var f,g;for(f in this.handlers){this._core.$element.off(f,this.handlers[f])}for(g in Object.getOwnPropertyNames(this)){typeof this[g]!="function"&&(this[g]=null)}};d.fn.owlCarousel.Constructor.Plugins.Lazy=b})(window.Zepto||window.jQuery,window,document);(function(c,b,a,d){var e=function(f){this._core=f;this._handlers={"initialized.owl.carousel":c.proxy(function(){if(this._core.settings.autoHeight){this.update()}},this),"changed.owl.carousel":c.proxy(function(g){if(this._core.settings.autoHeight&&g.property.name=="position"){this.update()}},this),"loaded.owl.lazy":c.proxy(function(g){if(this._core.settings.autoHeight&&g.element.closest("."+this._core.settings.itemClass)===this._core.$stage.children().eq(this._core.current())){this.update()}},this)};this._core.options=c.extend({},e.Defaults,this._core.options);this._core.$element.on(this._handlers)};e.Defaults={autoHeight:false,autoHeightClass:"owl-height"};e.prototype.update=function(){this._core.$stage.parent().height(this._core.$stage.children().eq(this._core.current()).height()).addClass(this._core.settings.autoHeightClass)};e.prototype.destroy=function(){var f,g;for(f in this._handlers){this._core.$element.off(f,this._handlers[f])}for(g in Object.getOwnPropertyNames(this)){typeof this[g]!="function"&&(this[g]=null)}};c.fn.owlCarousel.Constructor.Plugins.AutoHeight=e})(window.Zepto||window.jQuery,window,document);(function(d,c,a,e){var b=function(f){this._core=f;this._videos={};this._playing=null;this._fullscreen=false;this._handlers={"resize.owl.carousel":d.proxy(function(g){if(this._core.settings.video&&!this.isInFullScreen()){g.preventDefault()}},this),"refresh.owl.carousel changed.owl.carousel":d.proxy(function(g){if(this._playing){this.stop()}},this),"prepared.owl.carousel":d.proxy(function(h){var g=d(h.content).find(".owl-video");if(g.length){g.css("display","none");this.fetch(g,d(h.content))}},this)};this._core.options=d.extend({},b.Defaults,this._core.options);this._core.$element.on(this._handlers);this._core.$element.on("click.owl.video",".owl-video-play-icon",d.proxy(function(g){this.play(g)},this))};b.Defaults={video:false,videoHeight:false,videoWidth:false};b.prototype.fetch=function(k,j){var i=k.attr("data-vimeo-id")?"vimeo":"youtube",l=k.attr("data-vimeo-id")||k.attr("data-youtube-id"),h=k.attr("data-width")||this._core.settings.videoWidth,f=k.attr("data-height")||this._core.settings.videoHeight,g=k.attr("href");if(g){l=g.match(/(http:|https:|)\/\/(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/);if(l[3].indexOf("youtu")>-1){i="youtube"}else{if(l[3].indexOf("vimeo")>-1){i="vimeo"}else{throw new Error("Video URL not supported.")}}l=l[6]}else{throw new Error("Missing video URL.")}this._videos[g]={type:i,id:l,width:h,height:f};j.attr("data-video",g);this.thumbnail(k,this._videos[g])};b.prototype.thumbnail=function(l,h){var g,n,p,f=h.width&&h.height?'style="width:'+h.width+"px;height:"+h.height+'px;"':"",m=l.find("img"),o="src",k="",i=this._core.settings,j=function(q){n='
';if(i.lazyLoad){g='
'}else{g='
'}l.after(g);l.after(n)};l.wrap('
");if(this._core.settings.lazyLoad){o="data-src";k="owl-lazy"}if(m.length){j(m.attr(o));m.remove();return false}if(h.type==="youtube"){p="http://img.youtube.com/vi/"+h.id+"/hqdefault.jpg";j(p)}else{if(h.type==="vimeo"){d.ajax({type:"GET",url:"http://vimeo.com/api/v2/video/"+h.id+".json",jsonp:"callback",dataType:"jsonp",success:function(q){p=q[0].thumbnail_large;j(p)}})}}};b.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};b.prototype.play=function(l){this._core.trigger("play",null,"video");if(this._playing){this.stop()}var m=d(l.target||l.srcElement),k=m.closest("."+this._core.settings.itemClass),j=this._videos[k.attr("data-video")],i=j.width||"100%",f=j.height||this._core.$stage.height(),g,h;if(j.type==="youtube"){g=''}else{if(j.type==="vimeo"){g=''}}k.addClass("owl-video-playing");this._playing=k;h=d('
'+g+"
");m.after(h)};b.prototype.isInFullScreen=function(){var f=a.fullscreenElement||a.mozFullScreenElement||a.webkitFullscreenElement;if(f&&d(f).parent().hasClass("owl-video-frame")){this._core.speed(0);this._fullscreen=true}if(f&&this._fullscreen&&this._playing){return false}if(this._fullscreen){this._fullscreen=false;return false}if(this._playing){if(this._core.state.orientation!==c.orientation){this._core.state.orientation=c.orientation;return false}}return true};b.prototype.destroy=function(){var f,g;this._core.$element.off("click.owl.video");for(f in this._handlers){this._core.$element.off(f,this._handlers[f])}for(g in Object.getOwnPropertyNames(this)){typeof this[g]!="function"&&(this[g]=null)}};d.fn.owlCarousel.Constructor.Plugins.Video=b})(window.Zepto||window.jQuery,window,document);(function(d,c,b,e){var a=function(f){this.core=f;this.core.options=d.extend({},a.Defaults,this.core.options);this.swapping=true;this.previous=e;this.next=e;this.handlers={"change.owl.carousel":d.proxy(function(g){if(g.property.name=="position"){this.previous=this.core.current();this.next=g.property.value}},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":d.proxy(function(g){this.swapping=g.type=="translated"},this),"translate.owl.carousel":d.proxy(function(g){if(this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)){this.swap()}},this)};this.core.$element.on(this.handlers)};a.Defaults={animateOut:false,animateIn:false};a.prototype.swap=function(){if(this.core.settings.items!==1||!this.core.support3d){return}this.core.speed(0);var k,f=d.proxy(this.clear,this),j=this.core.$stage.children().eq(this.previous),i=this.core.$stage.children().eq(this.next),g=this.core.settings.animateIn,h=this.core.settings.animateOut;if(this.core.current()===this.previous){return}if(h){k=this.core.coordinates(this.previous)-this.core.coordinates(this.next);j.css({left:k+"px"}).addClass("animated owl-animated-out").addClass(h).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",f)}if(g){i.addClass("animated owl-animated-in").addClass(g).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",f)}};a.prototype.clear=function(f){d(f.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut);this.core.transitionEnd()};a.prototype.destroy=function(){var f,g;for(f in this.handlers){this.core.$element.off(f,this.handlers[f])}for(g in Object.getOwnPropertyNames(this)){typeof this[g]!="function"&&(this[g]=null)}};d.fn.owlCarousel.Constructor.Plugins.Animate=a})(window.Zepto||window.jQuery,window,document);(function(c,b,a,e){var d=function(f){this.core=f;this.core.options=c.extend({},d.Defaults,this.core.options);this.handlers={"translated.owl.carousel refreshed.owl.carousel":c.proxy(function(){this.autoplay()},this),"play.owl.autoplay":c.proxy(function(i,g,h){this.play(g,h)},this),"stop.owl.autoplay":c.proxy(function(){this.stop()},this),"mouseover.owl.autoplay":c.proxy(function(){if(this.core.settings.autoplayHoverPause){this.pause()}},this),"mouseleave.owl.autoplay":c.proxy(function(){if(this.core.settings.autoplayHoverPause){this.autoplay()}},this)};this.core.$element.on(this.handlers)};d.Defaults={autoplay:false,autoplayTimeout:5000,autoplayHoverPause:false,autoplaySpeed:false};d.prototype.autoplay=function(){if(this.core.settings.autoplay&&!this.core.state.videoPlay){b.clearInterval(this.interval);this.interval=b.setInterval(c.proxy(function(){this.play()},this),this.core.settings.autoplayTimeout)}else{b.clearInterval(this.interval)}};d.prototype.play=function(g,f){if(a.hidden===true){return}if(this.core.state.isTouch||this.core.state.isScrolling||this.core.state.isSwiping||this.core.state.inMotion){return}if(this.core.settings.autoplay===false){b.clearInterval(this.interval);return}this.core.next(this.core.settings.autoplaySpeed)};d.prototype.stop=function(){b.clearInterval(this.interval)};d.prototype.pause=function(){b.clearInterval(this.interval)};d.prototype.destroy=function(){var f,g;b.clearInterval(this.interval);for(f in this.handlers){this.core.$element.off(f,this.handlers[f])}for(g in Object.getOwnPropertyNames(this)){typeof this[g]!="function"&&(this[g]=null)}};c.fn.owlCarousel.Constructor.Plugins.autoplay=d})(window.Zepto||window.jQuery,window,document);(function(d,b,a,e){var c=function(f){this._core=f;this._initialized=false;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":d.proxy(function(g){if(this._core.settings.dotsData){this._templates.push(d(g.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))}},this),"add.owl.carousel":d.proxy(function(g){if(this._core.settings.dotsData){this._templates.splice(g.position,0,d(g.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))}},this),"remove.owl.carousel prepared.owl.carousel":d.proxy(function(g){if(this._core.settings.dotsData){this._templates.splice(g.position,1)}},this),"change.owl.carousel":d.proxy(function(i){if(i.property.name=="position"){if(!this._core.state.revert&&!this._core.settings.loop&&this._core.settings.navRewind){var h=this._core.current(),j=this._core.maximum(),g=this._core.minimum();i.data=i.property.value>j?h>=j?g:j:i.property.value").addClass(f.dotClass).append(d("")).prop("outerHTML")]}if(!f.navContainer||!f.dotsContainer){this._controls.$container=d("
").addClass(f.controlsClass).appendTo(this.$element)}this._controls.$indicators=f.dotsContainer?d(f.dotsContainer):d("
").hide().addClass(f.dotsClass).appendTo(this._controls.$container);this._controls.$indicators.on("click","div",d.proxy(function(j){var i=d(j.target).parent().is(this._controls.$indicators)?d(j.target).index():d(j.target).parent().index();j.preventDefault();this.to(i,f.dotsSpeed)},this));h=f.navContainer?d(f.navContainer):d("
").addClass(f.navContainerClass).prependTo(this._controls.$container);this._controls.$next=d("<"+f.navElement+">");this._controls.$previous=this._controls.$next.clone();this._controls.$previous.addClass(f.navClass[0]).html(f.navText[0]).hide().prependTo(h).on("click",d.proxy(function(i){this.prev(f.navSpeed)},this));this._controls.$next.addClass(f.navClass[1]).html(f.navText[1]).hide().appendTo(h).on("click",d.proxy(function(i){this.next(f.navSpeed)},this));for(g in this._overrides){this._core[g]=d.proxy(this[g],this)}};c.prototype.destroy=function(){var g,i,h,f;for(g in this._handlers){this.$element.off(g,this._handlers[g])}for(i in this._controls){this._controls[i].remove()}for(f in this.overides){this._core[f]=this._overrides[f]}for(h in Object.getOwnPropertyNames(this)){typeof this[h]!="function"&&(this[h]=null)}};c.prototype.update=function(){var n,l,f,h=this._core.settings,g=this._core.clones().length/2,o=g+this._core.items().length,m=h.center||h.autoWidth||h.dotData?1:h.dotsEach||h.items;if(h.slideBy!=="page"){h.slideBy=Math.min(h.slideBy,h.items)}if(h.dots||h.slideBy=="page"){this._pages=[];for(n=g,l=0,f=0;n=m||l===0){this._pages.push({start:n-g,end:n-g+m-1});l=0,++f}l+=this._core.mergers(this._core.relative(n))}}};c.prototype.draw=function(){var l,j,h="",g=this._core.settings,k=this._core.$stage.children(),f=this._core.relative(this._core.current());if(g.nav&&!g.loop&&!g.navRewind){this._controls.$previous.toggleClass("disabled",f<=0);this._controls.$next.toggleClass("disabled",f>=this._core.maximum())}this._controls.$previous.toggle(g.nav);this._controls.$next.toggle(g.nav);if(g.dots){l=this._pages.length-this._controls.$indicators.children().length;if(g.dotData&&l!==0){for(j=0;j0){h=new Array(l+1).join(this._templates[0]);this._controls.$indicators.append(h)}else{if(l<0){this._controls.$indicators.children().slice(l).remove()}}}this._controls.$indicators.find(".active").removeClass("active");this._controls.$indicators.children().eq(d.inArray(this.current(),this._pages)).addClass("active")}this._controls.$indicators.toggle(g.dots)};c.prototype.onTrigger=function(g){var f=this._core.settings;g.page={index:d.inArray(this.current(),this._pages),count:this._pages.length,size:f&&(f.center||f.autoWidth||f.dotData?1:f.dotsEach||f.items)}};c.prototype.current=function(){var f=this._core.relative(this._core.current());return d.grep(this._pages,function(g){return g.start<=f&&g.end>=f}).pop()};c.prototype.getPosition=function(g){var f,i,h=this._core.settings;if(h.slideBy=="page"){f=d.inArray(this.current(),this._pages);i=this._pages.length;g?++f:--f;f=this._pages[((f%i)+i)%i].start}else{f=this._core.relative(this._core.current());i=this._core.items().length;g?f+=h.slideBy:f-=h.slideBy}return f};c.prototype.next=function(f){d.proxy(this._overrides.to,this._core)(this.getPosition(true),f)};c.prototype.prev=function(f){d.proxy(this._overrides.to,this._core)(this.getPosition(false),f)};c.prototype.to=function(f,i,g){var h;if(!g){h=this._pages.length;d.proxy(this._overrides.to,this._core)(this._pages[((f%h)+h)%h].start,i)}else{d.proxy(this._overrides.to,this._core)(f,i)}};d.fn.owlCarousel.Constructor.Plugins.Navigation=c})(window.Zepto||window.jQuery,window,document);(function(d,c,a,e){var b=function(f){this._core=f;this._hashes={};this.$element=this._core.$element;this._handlers={"initialized.owl.carousel":d.proxy(function(){if(this._core.settings.startPosition=="URLHash"){d(c).trigger("hashchange.owl.navigation")}},this),"prepared.owl.carousel":d.proxy(function(h){var g=d(h.content).find("[data-hash]").andSelf("[data-hash]").attr("data-hash");this._hashes[g]=h.content},this)};this._core.options=d.extend({},b.Defaults,this._core.options);this.$element.on(this._handlers);d(c).on("hashchange.owl.navigation",d.proxy(function(){var i=c.location.hash.substring(1),h=this._core.$stage.children(),g=this._hashes[i]&&h.index(this._hashes[i])||0;if(!i){return false}this._core.to(g,false,true)},this))};b.Defaults={URLhashListener:false};b.prototype.destroy=function(){var f,g;d(c).off("hashchange.owl.navigation");for(f in this._handlers){this._core.$element.off(f,this._handlers[f])}for(g in Object.getOwnPropertyNames(this)){typeof this[g]!="function"&&(this[g]=null)}};d.fn.owlCarousel.Constructor.Plugins.Hash=b})(window.Zepto||window.jQuery,window,document); /* Masonry PACKAGED v4.2.0 */ !function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,r,a){function h(t,e,n){var o,r="$()."+i+'("'+e+'")';return t.each(function(t,h){var u=a.data(h,i);if(!u)return void s(i+" not initialized. Cannot call methods, i.e. "+r);var d=u[e];if(!d||"_"==e.charAt(0))return void s(r+" is not a valid method");var l=d.apply(u,n);o=void 0===o?l:o}),void 0!==o?o:t}function u(t,e){t.each(function(t,n){var o=a.data(n,i);o?(o.option(e),o._init()):(o=new r(n,e),a.data(n,i,o))})}a=a||e||t.jQuery,a&&(r.prototype.option||(r.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var e=o.call(arguments,1);return h(this,t,e)}return u(this,t),this},n(a))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var o=Array.prototype.slice,r=t.console,s="undefined"==typeof r?function(){}:function(t){r.error(t)};return n(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=0,o=i[n];e=e||[];for(var r=this._onceEvents&&this._onceEvents[t];o;){var s=r&&r[o];s&&(this.off(t,o),delete r[o]),o.apply(this,e),n+=s?0:1,o=i[n]}return this}},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("get-size/get-size",[],function(){return e()}):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function t(t){var e=parseFloat(t),i=-1==t.indexOf("%")&&!isNaN(e);return i&&e}function e(){}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;u>e;e++){var i=h[e];t[i]=0}return t}function n(t){var e=getComputedStyle(t);return e||a("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),e}function o(){if(!d){d=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var o=n(e);r.isBoxSizeOuter=s=200==t(o.width),i.removeChild(e)}}function r(e){if(o(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var r=n(e);if("none"==r.display)return i();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var d=a.isBorderBox="border-box"==r.boxSizing,l=0;u>l;l++){var c=h[l],f=r[c],m=parseFloat(f);a[c]=isNaN(m)?0:m}var p=a.paddingLeft+a.paddingRight,g=a.paddingTop+a.paddingBottom,y=a.marginLeft+a.marginRight,v=a.marginTop+a.marginBottom,_=a.borderLeftWidth+a.borderRightWidth,z=a.borderTopWidth+a.borderBottomWidth,E=d&&s,b=t(r.width);b!==!1&&(a.width=b+(E?0:p+_));var x=t(r.height);return x!==!1&&(a.height=x+(E?0:g+z)),a.innerWidth=a.width-(p+_),a.innerHeight=a.height-(g+z),a.outerWidth=a.width+y,a.outerHeight=a.height+v,a}}var s,a="undefined"==typeof console?e:function(t){console.error(t)},h=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],u=h.length,d=!1;return r}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;is?"round":"floor";r=Math[a](r),this.cols=Math.max(r,1)},n.getContainerWidth=function(){var t=this._getOption("fitWidth"),i=t?this.element.parentNode:this.element,n=e(i);this.containerWidth=n&&n.innerWidth},n._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=e&&1>e?"round":"ceil",n=Math[i](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var o=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",r=this[o](n,t),s={x:this.columnWidth*r.col,y:r.y},a=r.y+t.size.outerHeight,h=n+r.col,u=r.col;h>u;u++)this.colYs[u]=a;return s},n._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},n._getTopColGroup=function(t){if(2>t)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;i>n;n++)e[n]=this._getColGroupY(n,t);return e},n._getColGroupY=function(t,e){if(2>e)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i)},n._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,n=t>1&&i+t>this.cols;i=n?0:i;var o=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=o?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},n._manageStamp=function(t){var i=e(t),n=this._getElementOffset(t),o=this._getOption("originLeft"),r=o?n.left:n.right,s=r+i.outerWidth,a=Math.floor(r/this.columnWidth);a=Math.max(0,a);var h=Math.floor(s/this.columnWidth);h-=s%this.columnWidth?0:1,h=Math.min(this.cols-1,h);for(var u=this._getOption("originTop"),d=(u?n.top:n.bottom)+i.outerHeight,l=a;h>=l;l++)this.colYs[l]=Math.max(d,this.colYs[l])},n._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},n._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},n.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i}); /*! imagesLoaded PACKAGED v4.1.4 */ !function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},n=i[e]=i[e]||[];return n.indexOf(t)==-1&&n.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{},n=i[e]=i[e]||{};return n[t]=!0,this}},t.off=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var n=i.indexOf(t);return n!=-1&&i.splice(n,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(var n=this._onceEvents&&this._onceEvents[e],o=0;oe;e++){var i=a[e];t[i]=0}return t}function r(t){var e=getComputedStyle(t);return e||h("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),e}function o(){if(!u){u=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var o=r(e);n.isBoxSizeOuter=d=200==t(o.width),i.removeChild(e)}}function n(e){if(o(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var n=r(e);if("none"==n.display)return i();var h={};h.width=e.offsetWidth,h.height=e.offsetHeight;for(var u=h.isBorderBox="border-box"==n.boxSizing,p=0;g>p;p++){var f=a[p],m=n[f],s=parseFloat(m);h[f]=isNaN(s)?0:s}var c=h.paddingLeft+h.paddingRight,l=h.paddingTop+h.paddingBottom,b=h.marginLeft+h.marginRight,x=h.marginTop+h.marginBottom,y=h.borderLeftWidth+h.borderRightWidth,v=h.borderTopWidth+h.borderBottomWidth,W=u&&d,w=t(n.width);w!==!1&&(h.width=w+(W?0:c+y));var B=t(n.height);return B!==!1&&(h.height=B+(W?0:l+v)),h.innerWidth=h.width-(c+y),h.innerHeight=h.height-(l+v),h.outerWidth=h.width+b,h.outerHeight=h.height+x,h}}var d,h="undefined"==typeof console?e:function(t){console.error(t)},a=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],g=a.length,u=!1;return n}); !function(e,t){"use strict";"function"==typeof define&&define.amd?define(t):"object"==typeof module&&module.exports?module.exports=t():e.matchesSelector=t()}(window,function(){"use strict";var e=function(){var e=Element.prototype;if(e.matches)return"matches";if(e.matchesSelector)return"matchesSelector";for(var t=["webkit","moz","ms","o"],r=0;ra||a>n){var u=void 0!==e[s]?e[s]:e,h=u?1:-1;return(n>a?1:-1)*h}}return 0}}var u=t.jQuery,h=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},l=e.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});l.Item=s,l.LayoutMode=n;var d=l.prototype;d._create=function(){this.itemGUID=0,this._sorters={},this._getSorters(),e.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"];for(var t in n.modes)this._initLayoutMode(t)},d.reloadItems=function(){this.itemGUID=0,e.prototype.reloadItems.call(this)},d._itemize=function(){for(var t=e.prototype._itemize.apply(this,arguments),i=0;ii;i++){var r=t[i];r.updateSortData()}};var m=function(){function t(t){if("string"!=typeof t)return t;var i=h(t).split(" "),r=i[0],o=r.match(/^\[(.+)\]$/),s=o&&o[1],n=e(s,r),a=l.sortDataParsers[i[1]];return t=a?function(t){return t&&a(n(t))}:function(t){return t&&n(t)}}function e(t,e){return t?function(e){return e.getAttribute(t)}:function(t){var i=t.querySelector(e);return i&&i.textContent}}return t}();l.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},d._sort=function(){var t=this.options.sortBy;if(t){var e=[].concat.apply(t,this.sortHistory),i=a(e,this.options.sortAscending);this.filteredItems.sort(i),t!=this.sortHistory[0]&&this.sortHistory.unshift(t)}},d._mode=function(){var t=this.options.layoutMode,e=this.modes[t];if(!e)throw new Error("No layout mode: "+t);return e.options=this.options[t],e},d._resetLayout=function(){e.prototype._resetLayout.call(this),this._mode()._resetLayout()},d._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},d._manageStamp=function(t){this._mode()._manageStamp(t)},d._getContainerSize=function(){return this._mode()._getContainerSize()},d.needsResizeLayout=function(){return this._mode().needsResizeLayout()},d.appended=function(t){var e=this.addItems(t);if(e.length){var i=this._filterRevealAdded(e);this.filteredItems=this.filteredItems.concat(i)}},d.prepended=function(t){var e=this._itemize(t);if(e.length){this._resetLayout(),this._manageStamps();var i=this._filterRevealAdded(e);this.layoutItems(this.filteredItems),this.filteredItems=i.concat(this.filteredItems),this.items=e.concat(this.items)}},d._filterRevealAdded=function(t){var e=this._filter(t);return this.hide(e.needHide),this.reveal(e.matches),this.layoutItems(e.matches,!0),e.matches},d.insert=function(t){var e=this.addItems(t);if(e.length){var i,r,o=e.length;for(i=0;o>i;i++)r=e[i],this.element.appendChild(r.element);var s=this._filter(e).matches;for(i=0;o>i;i++)e[i].isLayoutInstant=!0;for(this.arrange(),i=0;o>i;i++)delete e[i].isLayoutInstant;this.reveal(s)}};var f=d.remove;return d.remove=function(t){t=o.makeArray(t);var e=this.getItems(t);f.call(this,t);for(var i=e&&e.length,r=0;i&&i>r;r++){var s=e[r];o.removeFrom(this.filteredItems,s)}},d.shuffle=function(){for(var t=0;ti&&(this.x=0,this.y=this.maxY);var o={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,o},i._getContainerSize=function(){return{height:this.maxY}},e}); !function(t,e){"function"==typeof define&&define.amd?define(["../layout-mode"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var e=t.create("vertical",{horizontalAlignment:0}),o=e.prototype;return o._resetLayout=function(){this.y=0},o._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,o=this.y;return this.y+=t.size.outerHeight,{x:e,y:o}},o._getContainerSize=function(){return{height:this.y}},e}); !function(t,i){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size"],i):"object"==typeof module&&module.exports?module.exports=i(require("outlayer"),require("get-size")):t.Masonry=i(t.Outlayer,t.getSize)}(window,function(t,i){"use strict";var e=t.create("masonry");return e.compatOptions.fitWidth="isFitWidth",e.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;tn?"round":"floor";s=Math[r](s),this.cols=Math.max(s,1)},e.prototype.getContainerWidth=function(){var t=this._getOption("fitWidth"),e=t?this.element.parentNode:this.element,o=i(e);this.containerWidth=o&&o.innerWidth},e.prototype._getItemLayoutPosition=function(t){t.getSize();var i=t.size.outerWidth%this.columnWidth,e=i&&1>i?"round":"ceil",o=Math[e](t.size.outerWidth/this.columnWidth);o=Math.min(o,this.cols);for(var h=this._getColGroup(o),s=Math.min.apply(Math,h),n=h.indexOf(s),r={x:this.columnWidth*n,y:s},a=s+t.size.outerHeight,u=this.cols+1-h.length,l=0;u>l;l++)this.colYs[n+l]=a;return r},e.prototype._getColGroup=function(t){if(2>t)return this.colYs;for(var i=[],e=this.cols+1-t,o=0;e>o;o++){var h=this.colYs.slice(o,o+t);i[o]=Math.max.apply(Math,h)}return i},e.prototype._manageStamp=function(t){var e=i(t),o=this._getElementOffset(t),h=this._getOption("originLeft"),s=h?o.left:o.right,n=s+e.outerWidth,r=Math.floor(s/this.columnWidth);r=Math.max(0,r);var a=Math.floor(n/this.columnWidth);a-=n%this.columnWidth?0:1,a=Math.min(this.cols-1,a);for(var u=this._getOption("originTop"),l=(u?o.top:o.bottom)+e.outerHeight,c=r;a>=c;c++)this.colYs[c]=Math.max(l,this.colYs[c])},e.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},e.prototype._getContainerFitWidth=function(){for(var t=0,i=this.cols;--i&&0===this.colYs[i];)t++;return(this.cols-t)*this.columnWidth-this.gutter},e.prototype.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},e}); !function(t,o){"function"==typeof define&&define.amd?define(["../layout-mode","masonry/masonry"],o):"object"==typeof module&&module.exports?module.exports=o(require("../layout-mode"),require("masonry-layout")):o(t.Isotope.LayoutMode,t.Masonry)}(window,function(t,o){"use strict";var e=t.create("masonry"),i=e.prototype,s={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(var n in o.prototype)s[n]||(i[n]=o.prototype[n]);var r=i.measureColumns;i.measureColumns=function(){this.items=this.isotope.filteredItems,r.call(this)};var u=i._getOption;return i._getOption=function(t){return"fitWidth"==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:u.apply(this.isotope,arguments)},e}); !function(t,e){"function"==typeof define&&define.amd?define(["isotope/assets/js/layout-mode"],e):"object"==typeof exports?module.exports=e(require("isotope-layout/assets/js/layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var e=t.create("cellsByColumn"),i=e.prototype;return i._resetLayout=function(){this.itemIndex=0,this.getColumnWidth(),this.getRowHeight(),this.rows=Math.floor(this.isotope.size.innerHeight/this.rowHeight),this.rows=Math.max(this.rows,1)},i._getItemLayoutPosition=function(t){t.getSize();var e=Math.floor(this.itemIndex/this.rows),i=this.itemIndex%this.rows,o=(e+.5)*this.columnWidth-t.size.outerWidth/2,s=(i+.5)*this.rowHeight-t.size.outerHeight/2;return this.itemIndex++,{x:o,y:s}},i._getContainerSize=function(){return{width:Math.ceil(this.itemIndex/this.rows)*this.columnWidth}},i.needsResizeLayout=function(){return this.needsVerticalResizeLayout()},e}); !function(t,e){"function"==typeof define&&define.amd?define(["isotope/assets/js/layout-mode"],e):"object"==typeof exports?module.exports=e(require("isotope-layout/assets/js/layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var e=t.create("cellsByRow"),i=e.prototype;return i._resetLayout=function(){this.itemIndex=0,this.getColumnWidth(),this.getRowHeight(),this.cols=Math.floor(this.isotope.size.innerWidth/this.columnWidth),this.cols=Math.max(this.cols,1)},i._getItemLayoutPosition=function(t){t.getSize();var e=this.itemIndex%this.cols,i=Math.floor(this.itemIndex/this.cols),o=(e+.5)*this.columnWidth-t.size.outerWidth/2,s=(i+.5)*this.rowHeight-t.size.outerHeight/2;return this.itemIndex++,{x:o,y:s}},i._getContainerSize=function(){return{height:Math.ceil(this.itemIndex/this.cols)*this.rowHeight}},e}); !function(t,e){"function"==typeof define&&define.amd?define(["isotope/assets/js/layout-mode"],e):"object"==typeof exports?module.exports=e(require("isotope-layout/assets/js/layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var e=t.create("fitColumns"),i=e.prototype;return i._resetLayout=function(){this.x=0,this.y=0,this.maxX=0},i._getItemLayoutPosition=function(t){t.getSize(),0!==this.y&&t.size.outerHeight+this.y>this.isotope.size.innerHeight&&(this.y=0,this.x=this.maxX);var e={x:this.x,y:this.y};return this.maxX=Math.max(this.maxX,this.x+t.size.outerWidth),this.y+=t.size.outerHeight,e},i._getContainerSize=function(){return{width:this.maxX}},i.needsResizeLayout=function(){return this.needsVerticalResizeLayout()},e}); !function(e,t){"function"==typeof define&&define.amd?define(["isotope/assets/js/layout-mode"],t):"object"==typeof exports?module.exports=t(require("isotope-layout/assets/js/layout-mode")):t(e.Isotope.LayoutMode)}(window,function(e){"use strict";var t=e.create("horiz",{verticalAlignment:0}),i=t.prototype;return i._resetLayout=function(){this.x=0},i._getItemLayoutPosition=function(e){e.getSize();var t=(this.isotope.size.innerHeight-e.size.outerHeight)*this.options.verticalAlignment,i=this.x;return this.x+=e.size.outerWidth,{x:i,y:t}},i._getContainerSize=function(){return{width:this.x}},i.needsResizeLayout=function(){return this.needsVerticalResizeLayout()},t}); !function(t,e){"use strict";"function"==typeof define&&define.amd?define(["get-size/get-size","isotope/assets/js/layout-mode"],e):"object"==typeof module&&module.exports?module.exports=e(require("get-size"),require("isotope-layout/assets/js/layout-mode")):e(t.getSize,t.Isotope.LayoutMode)}(window,function(t,e){"use strict";var i=e.create("masonryHorizontal"),o=i.prototype;return o._resetLayout=function(){this.getRowHeight(),this._getMeasurement("gutter","outerHeight"),this.rowHeight+=this.gutter,this.rows=Math.floor((this.isotope.size.innerHeight+this.gutter)/this.rowHeight),this.rows=Math.max(this.rows,1);var t=this.rows;for(this.rowXs=[];t--;)this.rowXs.push(0);this.maxX=0},o._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerHeight%this.rowHeight,i=e&&1>e?"round":"ceil",o=Math[i](t.size.outerHeight/this.rowHeight);o=Math.min(o,this.rows);for(var r=this._getRowGroup(o),s=Math.min.apply(Math,r),h=r.indexOf(s),a={x:s,y:this.rowHeight*h},n=s+t.size.outerWidth,u=this.rows+1-r.length,g=0;u>g;g++)this.rowXs[h+g]=n;return a},o._getRowGroup=function(t){if(2>t)return this.rowXs;for(var e=[],i=this.rows+1-t,o=0;i>o;o++){var r=this.rowXs.slice(o,o+t);e[o]=Math.max.apply(Math,r)}return e},o._manageStamp=function(e){var i=t(e),o=this.isotope._getElementOffset(e),r=this._getOption("originTop")?o.top:o.bottom,s=r+i.outerHeight,h=Math.floor(r/this.rowHeight);h=Math.max(0,h);var a=Math.floor(s/this.rowHeight);a=Math.min(this.rows-1,a);for(var n=(this._getOption("originLeft")?o.left:o.right)+i.outerWidth,u=h;a>=u;u++)this.rowXs[u]=Math.max(n,this.rowXs[u])},o._getContainerSize=function(){return this.maxX=Math.max.apply(Math,this.rowXs),{width:this.maxX}},o.needsResizeLayout=function(){return this.needsVerticalResizeLayout()},i}); !function(t,h){"function"==typeof define&&define.amd?define(h):"object"==typeof module&&module.exports?module.exports=h():(t.Packery=t.Packery||{},t.Packery.Rect=h())}(window,function(){"use strict";function t(h){for(var i in t.defaults)this[i]=t.defaults[i];for(i in h)this[i]=h[i]}t.defaults={x:0,y:0,width:0,height:0};var h=t.prototype;return h.contains=function(t){var h=t.width||0,i=t.height||0;return this.x<=t.x&&this.y<=t.y&&this.x+this.width>=t.x+h&&this.y+this.height>=t.y+i},h.overlaps=function(t){var h=this.x+this.width,i=this.y+this.height,e=t.x+t.width,s=t.y+t.height;return this.xt.x&&this.yt.y},h.getMaximalFreeRects=function(h){if(!this.overlaps(h))return!1;var i,e=[],s=this.x+this.width,n=this.y+this.height,r=h.x+h.width,y=h.y+h.height;return this.yr&&(i=new t({x:r,y:this.y,width:s-r,height:this.height}),e.push(i)),n>y&&(i=new t({x:this.x,y:y,width:this.width,height:n-y}),e.push(i)),this.x=t.width&&this.height>=t.height},t}); !function(t,e){if("function"==typeof define&&define.amd)define(["./rect"],e);else if("object"==typeof module&&module.exports)module.exports=e(require("./rect"));else{var i=t.Packery=t.Packery||{};i.Packer=e(i.Rect)}}(window,function(t){"use strict";function e(t,e,i){this.width=t||0,this.height=e||0,this.sortDirection=i||"downwardLeftToRight",this.reset()}var i=e.prototype;i.reset=function(){this.spaces=[];var e=new t({x:0,y:0,width:this.width,height:this.height});this.spaces.push(e),this.sorter=s[this.sortDirection]||s.downwardLeftToRight},i.pack=function(t){for(var e=0;e=t.x+t.width&&i.height>=t.height-.01;if(s){t.y=i.y,this.placed(t);break}}},i.rowPack=function(t){for(var e=0;e=t.y+t.height&&i.width>=t.width-.01;if(s){t.x=i.x,this.placed(t);break}}},i.placeInSpace=function(t,e){t.x=e.x,t.y=e.y,this.placed(t)},i.placed=function(t){for(var e=[],i=0;ii&&1>o;return s?void this.goTo(e,t):void a.apply(this,arguments)},r.enablePlacing=function(){this.removeTransitionStyles(),this.isTransitioning&&o&&(this.element.style[o]="none"),this.isTransitioning=!1,this.getSize(),this.layout._setRectSize(this.element,this.rect),this.isPlacing=!0},r.disablePlacing=function(){this.isPlacing=!1},r.removeElem=function(){this.element.parentNode.removeChild(this.element),this.layout.packer.addSpace(this.rect),this.emitEvent("remove",[this])},r.showDropPlaceholder=function(){var e=this.dropPlaceholder;e||(e=this.dropPlaceholder=document.createElement("div"),e.className="packery-drop-placeholder",e.style.position="absolute"),e.style.width=this.size.width+"px",e.style.height=this.size.height+"px",this.positionDropPlaceholder(),this.layout.element.appendChild(e)},r.positionDropPlaceholder=function(){this.dropPlaceholder.style[o]="translate("+this.rect.x+"px, "+this.rect.y+"px)"},r.hideDropPlaceholder=function(){var e=this.dropPlaceholder.parentNode;e&&e.removeChild(this.dropPlaceholder)},s}); !function(t,i){"function"==typeof define&&define.amd?define(["get-size/get-size","outlayer/outlayer","./rect","./packer","./item"],i):"object"==typeof module&&module.exports?module.exports=i(require("get-size"),require("outlayer"),require("./rect"),require("./packer"),require("./item")):t.Packery=i(t.getSize,t.Outlayer,t.Packery.Rect,t.Packery.Packer,t.Packery.Item)}(window,function(t,i,e,s,r){"use strict";function h(t,i){return t.position.y-i.position.y||t.position.x-i.position.x}function a(t,i){return t.position.x-i.position.x||t.position.y-i.position.y}function n(t,i){var e=i.x-t.x,s=i.y-t.y;return Math.sqrt(e*e+s*s)}e.prototype.canFit=function(t){return this.width>=t.width-1&&this.height>=t.height-1};var o=i.create("packery");o.Item=r;var g=o.prototype;g._create=function(){i.prototype._create.call(this),this.packer=new s,this.shiftPacker=new s,this.isEnabled=!0,this.dragItemCount=0;var t=this;this.handleDraggabilly={dragStart:function(){t.itemDragStart(this.element)},dragMove:function(){t.itemDragMove(this.element,this.position.x,this.position.y)},dragEnd:function(){t.itemDragEnd(this.element)}},this.handleUIDraggable={start:function(i,e){e&&t.itemDragStart(i.currentTarget)},drag:function(i,e){e&&t.itemDragMove(i.currentTarget,e.position.left,e.position.top)},stop:function(i,e){e&&t.itemDragEnd(i.currentTarget)}}},g._resetLayout=function(){this.getSize(),this._getMeasurements();var t,i,e;this._getOption("horizontal")?(t=1/0,i=this.size.innerHeight+this.gutter,e="rightwardTopToBottom"):(t=this.size.innerWidth+this.gutter,i=1/0,e="downwardLeftToRight"),this.packer.width=this.shiftPacker.width=t,this.packer.height=this.shiftPacker.height=i,this.packer.sortDirection=this.shiftPacker.sortDirection=e,this.packer.reset(),this.maxY=0,this.maxX=0},g._getMeasurements=function(){this._getMeasurement("columnWidth","width"),this._getMeasurement("rowHeight","height"),this._getMeasurement("gutter","width")},g._getItemLayoutPosition=function(t){if(this._setRectSize(t.element,t.rect),this.isShifting||this.dragItemCount>0){var i=this._getPackMethod();this.packer[i](t.rect)}else this.packer.pack(t.rect);return this._setMaxXY(t.rect),t.rect},g.shiftLayout=function(){this.isShifting=!0,this.layout(),delete this.isShifting},g._getPackMethod=function(){return this._getOption("horizontal")?"rowPack":"columnPack"},g._setMaxXY=function(t){this.maxX=Math.max(t.x+t.width,this.maxX),this.maxY=Math.max(t.y+t.height,this.maxY)},g._setRectSize=function(i,e){var s=t(i),r=s.outerWidth,h=s.outerHeight;(r||h)&&(r=this._applyGridGutter(r,this.columnWidth),h=this._applyGridGutter(h,this.rowHeight)),e.width=Math.min(r,this.packer.width),e.height=Math.min(h,this.packer.height)},g._applyGridGutter=function(t,i){if(!i)return t+this.gutter;i+=this.gutter;var e=t%i,s=e&&1>e?"round":"ceil";return t=Math[s](t/i)*i},g._getContainerSize=function(){return this._getOption("horizontal")?{width:this.maxX-this.gutter}:{height:this.maxY-this.gutter}},g._manageStamp=function(t){var i,s=this.getItem(t);if(s&&s.isPlacing)i=s.rect;else{var r=this._getElementOffset(t);i=new e({x:this._getOption("originLeft")?r.left:r.right,y:this._getOption("originTop")?r.top:r.bottom})}this._setRectSize(t,i),this.packer.placed(i),this._setMaxXY(i)},g.sortItemsByPosition=function(){var t=this._getOption("horizontal")?a:h;this.items.sort(t)},g.fit=function(t,i,e){var s=this.getItem(t);s&&(this.stamp(s.element),s.enablePlacing(),this.updateShiftTargets(s),i=void 0===i?s.rect.x:i,e=void 0===e?s.rect.y:e,this.shift(s,i,e),this._bindFitEvents(s),s.moveTo(s.rect.x,s.rect.y),this.shiftLayout(),this.unstamp(s.element),this.sortItemsByPosition(),s.disablePlacing())},g._bindFitEvents=function(t){function i(){s++,2==s&&e.dispatchEvent("fitComplete",null,[t])}var e=this,s=0;t.once("layout",i),this.once("layoutComplete",i)},g.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&(this.options.shiftPercentResize?this.resizeShiftPercentLayout():this.layout())},g.needsResizeLayout=function(){var i=t(this.element),e=this._getOption("horizontal")?"innerHeight":"innerWidth";return i[e]!=this.size[e]},g.resizeShiftPercentLayout=function(){var i=this._getItemsForLayout(this.items),e=this._getOption("horizontal"),s=e?"y":"x",r=e?"height":"width",h=e?"rowHeight":"columnWidth",a=e?"innerHeight":"innerWidth",n=this[h];if(n=n&&n+this.gutter){this._getMeasurements();var o=this[h]+this.gutter;i.forEach(function(t){var i=Math.round(t.rect[s]/n);t.rect[s]=i*o})}else{var g=t(this.element)[a]+this.gutter,c=this.packer[r];i.forEach(function(t){t.rect[s]=t.rect[s]/c*g})}this.shiftLayout()},g.itemDragStart=function(t){if(this.isEnabled){this.stamp(t);var i=this.getItem(t);i&&(i.enablePlacing(),i.showDropPlaceholder(),this.dragItemCount++,this.updateShiftTargets(i))}},g.updateShiftTargets=function(t){this.shiftPacker.reset(),this._getBoundingRect();var i=this._getOption("originLeft"),s=this._getOption("originTop");this.stamps.forEach(function(t){var r=this.getItem(t);if(!r||!r.isPlacing){var h=this._getElementOffset(t),a=new e({x:i?h.left:h.right,y:s?h.top:h.bottom});this._setRectSize(t,a),this.shiftPacker.placed(a)}},this);var r=this._getOption("horizontal"),h=r?"rowHeight":"columnWidth",a=r?"height":"width";this.shiftTargetKeys=[],this.shiftTargets=[];var n,o=this[h];if(o=o&&o+this.gutter){var g=Math.ceil(t.rect[a]/o),c=Math.floor((this.shiftPacker[a]+this.gutter)/o);n=(c-g)*o;for(var u=0;c>u;u++)this._addShiftTarget(u*o,0,n)}else n=this.shiftPacker[a]+this.gutter-t.rect[a],this._addShiftTarget(0,0,n);var d=this._getItemsForLayout(this.items),f=this._getPackMethod();d.forEach(function(t){var i=t.rect;this._setRectSize(t.element,i),this.shiftPacker[f](i),this._addShiftTarget(i.x,i.y,n);var e=r?i.x+i.width:i.x,s=r?i.y:i.y+i.height;if(this._addShiftTarget(e,s,n),o)for(var h=Math.round(i[a]/o),g=1;h>g;g++){var c=r?e:i.x+o*g,u=r?i.y+o*g:s;this._addShiftTarget(c,u,n)}},this)},g._addShiftTarget=function(t,i,e){var s=this._getOption("horizontal")?i:t;if(!(0!==s&&s>e)){var r=t+","+i,h=-1!=this.shiftTargetKeys.indexOf(r);h||(this.shiftTargetKeys.push(r),this.shiftTargets.push({x:t,y:i}))}},g.shift=function(t,i,e){var s,r=1/0,h={x:i,y:e};this.shiftTargets.forEach(function(t){var i=n(t,h);r>i&&(s=t,r=i)}),t.rect.x=s.x,t.rect.y=s.y};var c=120;g.itemDragMove=function(t,i,e){function s(){h.shift(r,i,e),r.positionDropPlaceholder(),h.layout()}var r=this.isEnabled&&this.getItem(t);if(r){i-=this.size.paddingLeft,e-=this.size.paddingTop;var h=this,a=new Date;this._itemDragTime&&a-this._itemDragTime/gm,">")}function t(e){return e.nodeName.toLowerCase()}function n(e,r){var t=e&&e.exec(r);return t&&0==t.index}function a(e){return/^(no-?highlight|plain|text)$/i.test(e)}function c(e){var r,t,n,c=e.className+" ";if(c+=e.parentNode?e.parentNode.className:"",t=/\blang(?:uage)?-([\w-]+)\b/i.exec(c))return E(t[1])?t[1]:"no-highlight";for(c=c.split(/\s+/),r=0,n=c.length;n>r;r++)if(E(c[r])||a(c[r]))return c[r]}function i(e,r){var t,n={};for(t in e)n[t]=e[t];if(r)for(t in r)n[t]=r[t];return n}function o(e){var r=[];return function n(e,a){for(var c=e.firstChild;c;c=c.nextSibling)3==c.nodeType?a+=c.nodeValue.length:1==c.nodeType&&(r.push({event:"start",offset:a,node:c}),a=n(c,a),t(c).match(/br|hr|img|input/)||r.push({event:"stop",offset:a,node:c}));return a}(e,0),r}function s(e,n,a){function c(){return e.length&&n.length?e[0].offset!=n[0].offset?e[0].offset"}function o(e){l+=""}function s(e){("start"==e.event?i:o)(e.node)}for(var u=0,l="",f=[];e.length||n.length;){var b=c();if(l+=r(a.substr(u,b[0].offset-u)),u=b[0].offset,b==e){f.reverse().forEach(o);do s(b.splice(0,1)[0]),b=c();while(b==e&&b.length&&b[0].offset==u);f.reverse().forEach(i)}else"start"==b[0].event?f.push(b[0].node):f.pop(),s(b.splice(0,1)[0])}return l+r(a.substr(u))}function u(e){function r(e){return e&&e.source||e}function t(t,n){return new RegExp(r(t),"m"+(e.cI?"i":"")+(n?"g":""))}function n(a,c){if(!a.compiled){if(a.compiled=!0,a.k=a.k||a.bK,a.k){var o={},s=function(r,t){e.cI&&(t=t.toLowerCase()),t.split(" ").forEach(function(e){var t=e.split("|");o[t[0]]=[r,t[1]?Number(t[1]):1]})};"string"==typeof a.k?s("keyword",a.k):Object.keys(a.k).forEach(function(e){s(e,a.k[e])}),a.k=o}a.lR=t(a.l||/\w+/,!0),c&&(a.bK&&(a.b="\\b("+a.bK.split(" ").join("|")+")\\b"),a.b||(a.b=/\B|\b/),a.bR=t(a.b),a.e||a.eW||(a.e=/\B|\b/),a.e&&(a.eR=t(a.e)),a.tE=r(a.e)||"",a.eW&&c.tE&&(a.tE+=(a.e?"|":"")+c.tE)),a.i&&(a.iR=t(a.i)),void 0===a.r&&(a.r=1),a.c||(a.c=[]);var u=[];a.c.forEach(function(e){e.v?e.v.forEach(function(r){u.push(i(e,r))}):u.push("self"==e?a:e)}),a.c=u,a.c.forEach(function(e){n(e,a)}),a.starts&&n(a.starts,c);var l=a.c.map(function(e){return e.bK?"\\.?("+e.b+")\\.?":e.b}).concat([a.tE,a.i]).map(r).filter(Boolean);a.t=l.length?t(l.join("|"),!0):{exec:function(){return null}}}}n(e)}function l(e,t,a,c){function i(e,r){for(var t=0;t";return c+=e+'">',c+r+i}function p(){if(!C.k)return r(k);var e="",t=0;C.lR.lastIndex=0;for(var n=C.lR.exec(k);n;){e+=r(k.substr(t,n.index-t));var a=b(C,n);a?(A+=a[1],e+=g(a[0],r(n[0]))):e+=r(n[0]),t=C.lR.lastIndex,n=C.lR.exec(k)}return e+r(k.substr(t))}function d(){var e="string"==typeof C.sL;if(e&&!y[C.sL])return r(k);var t=e?l(C.sL,k,!0,R[C.sL]):f(k,C.sL.length?C.sL:void 0);return C.r>0&&(A+=t.r),e&&(R[C.sL]=t.top),g(t.language,t.value,!1,!0)}function h(){x+=void 0!==C.sL?d():p(),k=""}function m(e,r){x+=e.cN?g(e.cN,"",!0):"",C=Object.create(e,{parent:{value:C}})}function v(e,r){if(k+=e,void 0===r)return h(),0;var t=i(r,C);if(t)return t.skip?k+=r:(t.eB&&(k+=r),h(),t.rB||t.eB||(k=r)),m(t,r),t.rB?0:r.length;var n=o(C,r);if(n){var a=C;a.skip?k+=r:(a.rE||a.eE||(k+=r),h(),a.eE&&(k=r));do C.cN&&(x+=""),C.skip||(A+=C.r),C=C.parent;while(C!=n.parent);return n.starts&&m(n.starts,""),a.rE?0:r.length}if(s(r,C))throw new Error('Illegal lexeme "'+r+'" for mode "'+(C.cN||"")+'"');return k+=r,r.length||1}var N=E(e);if(!N)throw new Error('Unknown language: "'+e+'"');u(N);var M,C=c||N,R={},x="";for(M=C;M!=N;M=M.parent)M.cN&&(x=g(M.cN,"",!0)+x);var k="",A=0;try{for(var S,B,L=0;C.t.lastIndex=L,S=C.t.exec(t),S;)B=v(t.substr(L,S.index-L),S[0]),L=S.index+B;for(v(t.substr(L)),M=C;M.parent;M=M.parent)M.cN&&(x+="");return{r:A,value:x,language:e,top:C}}catch(I){if(-1!=I.message.indexOf("Illegal"))return{r:0,value:r(t)};throw I}}function f(e,t){t=t||w.languages||Object.keys(y);var n={r:0,value:r(e)},a=n;return t.filter(E).forEach(function(r){var t=l(r,e,!1);t.language=r,t.r>a.r&&(a=t),t.r>n.r&&(a=n,n=t)}),a.language&&(n.second_best=a),n}function b(e){return w.tabReplace&&(e=e.replace(/^((<[^>]+>|\t)+)/gm,function(e,r){return r.replace(/\t/g,w.tabReplace)})),w.useBR&&(e=e.replace(/\n/g,"
")),e}function g(e,r,t){var n=r?M[r]:t,a=[e.trim()];return e.match(/\bhljs\b/)||a.push("hljs"),-1===e.indexOf(n)&&a.push(n),a.join(" ").trim()}function p(e){var r=c(e);if(!a(r)){var t;w.useBR?(t=document.createElementNS("http://www.w3.org/1999/xhtml","div"),t.innerHTML=e.innerHTML.replace(/\n/g,"").replace(//g,"\n")):t=e;var n=t.textContent,i=r?l(r,n,!0):f(n),u=o(t);if(u.length){var p=document.createElementNS("http://www.w3.org/1999/xhtml","div");p.innerHTML=i.value,i.value=s(u,o(p),n)}i.value=b(i.value),e.innerHTML=i.value,e.className=g(e.className,r,i.language),e.result={language:i.language,re:i.r},i.second_best&&(e.second_best={language:i.second_best.language,re:i.second_best.r})}}function d(e){w=i(w,e)}function h(){if(!h.called){h.called=!0;var e=document.querySelectorAll("pre code");Array.prototype.forEach.call(e,p)}}function m(){addEventListener("DOMContentLoaded",h,!1),addEventListener("load",h,!1)}function v(r,t){var n=y[r]=t(e);n.aliases&&n.aliases.forEach(function(e){M[e]=r})}function N(){return Object.keys(y)}function E(e){return e=(e||"").toLowerCase(),y[e]||y[M[e]]}var w={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0},y={},M={};return e.highlight=l,e.highlightAuto=f,e.fixMarkup=b,e.highlightBlock=p,e.configure=d,e.initHighlighting=h,e.initHighlightingOnLoad=m,e.registerLanguage=v,e.listLanguages=N,e.getLanguage=E,e.inherit=i,e.IR="[a-zA-Z]\\w*",e.UIR="[a-zA-Z_]\\w*",e.NR="\\b\\d+(\\.\\d+)?",e.CNR="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",e.BNR="\\b(0b[01]+)",e.RSR="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",e.BE={b:"\\\\[\\s\\S]",r:0},e.ASM={cN:"string",b:"'",e:"'",i:"\\n",c:[e.BE]},e.QSM={cN:"string",b:'"',e:'"',i:"\\n",c:[e.BE]},e.PWM={b:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|like)\b/},e.C=function(r,t,n){var a=e.inherit({cN:"comment",b:r,e:t,c:[]},n||{});return a.c.push(e.PWM),a.c.push({cN:"doctag",b:"(?:TODO|FIXME|NOTE|BUG|XXX):",r:0}),a},e.CLCM=e.C("//","$"),e.CBCM=e.C("/\\*","\\*/"),e.HCM=e.C("#","$"),e.NM={cN:"number",b:e.NR,r:0},e.CNM={cN:"number",b:e.CNR,r:0},e.BNM={cN:"number",b:e.BNR,r:0},e.CSSNM={cN:"number",b:e.NR+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",r:0},e.RM={cN:"regexp",b:/\//,e:/\/[gimuy]*/,i:/\n/,c:[e.BE,{b:/\[/,e:/\]/,r:0,c:[e.BE]}]},e.TM={cN:"title",b:e.IR,r:0},e.UTM={cN:"title",b:e.UIR,r:0},e.METHOD_GUARD={b:"\\.\\s*"+e.UIR,r:0},e}),hljs.registerLanguage("css",function(e){var r="[a-zA-Z-][a-zA-Z0-9_-]*",t={b:/[A-Z\_\.\-]+\s*:/,rB:!0,e:";",eW:!0,c:[{cN:"attribute",b:/\S/,e:":",eE:!0,starts:{eW:!0,eE:!0,c:[{b:/[\w-]+\(/,rB:!0,c:[{cN:"built_in",b:/[\w-]+/},{b:/\(/,e:/\)/,c:[e.ASM,e.QSM]}]},e.CSSNM,e.QSM,e.ASM,e.CBCM,{cN:"number",b:"#[0-9A-Fa-f]+"},{cN:"meta",b:"!important"}]}}]};return{cI:!0,i:/[=\/|'\$]/,c:[e.CBCM,{cN:"selector-id",b:/#[A-Za-z0-9_-]+/},{cN:"selector-class",b:/\.[A-Za-z0-9_-]+/},{cN:"selector-attr",b:/\[/,e:/\]/,i:"$"},{cN:"selector-pseudo",b:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{b:"@(font-face|page)",l:"[a-z-]+",k:"font-face page"},{b:"@",e:"[{;]",i:/:/,c:[{cN:"keyword",b:/\w+/},{b:/\s/,eW:!0,eE:!0,r:0,c:[e.ASM,e.QSM,e.CSSNM]}]},{cN:"selector-tag",b:r,r:0},{b:"{",e:"}",i:/\S/,c:[e.CBCM,t]}]}}),hljs.registerLanguage("javascript",function(e){return{aliases:["js","jsx"],k:{keyword:"in of if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await static import from as",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Promise"},c:[{cN:"meta",r:10,b:/^\s*['"]use (strict|asm)['"]/},{cN:"meta",b:/^#!/,e:/$/},e.ASM,e.QSM,{cN:"string",b:"`",e:"`",c:[e.BE,{cN:"subst",b:"\\$\\{",e:"\\}"}]},e.CLCM,e.CBCM,{cN:"number",v:[{b:"\\b(0[bB][01]+)"},{b:"\\b(0[oO][0-7]+)"},{b:e.CNR}],r:0},{b:"("+e.RSR+"|\\b(case|return|throw)\\b)\\s*",k:"return throw case",c:[e.CLCM,e.CBCM,e.RM,{b://,sL:"xml",c:[{b:/<\w+\s*\/>/,skip:!0},{b:/<\w+/,e:/(\/\w+|\w+\/)>/,skip:!0,c:["self"]}]}],r:0},{cN:"function",bK:"function",e:/\{/,eE:!0,c:[e.inherit(e.TM,{b:/[A-Za-z$_][0-9A-Za-z$_]*/}),{cN:"params",b:/\(/,e:/\)/,eB:!0,eE:!0,c:[e.CLCM,e.CBCM]}],i:/\[|%/},{b:/\$[(.]/},e.METHOD_GUARD,{cN:"class",bK:"class",e:/[{;=]/,eE:!0,i:/[:"\[\]]/,c:[{bK:"extends"},e.UTM]},{bK:"constructor",e:/\{/,eE:!0}],i:/#(?!!)/}}),hljs.registerLanguage("json",function(e){var r={literal:"true false null"},t=[e.QSM,e.CNM],n={e:",",eW:!0,eE:!0,c:t,k:r},a={b:"{",e:"}",c:[{cN:"attr",b:/"/,e:/"/,c:[e.BE],i:"\\n"},e.inherit(n,{b:/:/})],i:"\\S"},c={b:"\\[",e:"\\]",c:[e.inherit(n)],i:"\\S"};return t.splice(t.length,0,a,c),{c:t,k:r,i:"\\S"}}),hljs.registerLanguage("xml",function(e){var r="[A-Za-z0-9\\._:-]+",t={eW:!0,i:/`]+/}]}]}]};return{aliases:["html","xhtml","rss","atom","xsl","plist"],cI:!0,c:[{cN:"meta",b:"",r:10,c:[{b:"\\[",e:"\\]"}]},e.C("",{r:10}),{b:"<\\!\\[CDATA\\[",e:"\\]\\]>",r:10},{b:/<\?(php)?/,e:/\?>/,sL:"php",c:[{b:"/\\*",e:"\\*/",skip:!0}]},{cN:"tag",b:"|$)",e:">",k:{name:"style"},c:[t],starts:{e:"",rE:!0,sL:["css","xml"]}},{cN:"tag",b:"|$)",e:">",k:{name:"script"},c:[t],starts:{e:"",rE:!0,sL:["actionscript","javascript","handlebars","xml"]}},{cN:"meta",v:[{b:/<\?xml/,e:/\?>/,r:10},{b:/<\?\w+/,e:/\?>/}]},{cN:"tag",b:"",c:[{cN:"name",b:/[^\/><\s]+/,r:0},t]}]}}); !function(e){"use strict";ID.getItemElement=function(){var t=document.createElement("div"),i=Math.random(),e=Math.random(),n=i>.8?"grid-item--width3":i>.6?"grid-item--width2":"",r=e>.8?"grid-item--height3":e>.5?"grid-item--height2":"";return t.className="grid-item "+n+" "+r,t},hljs.configure({classPrefix:""}),$.fn.displayIsotopeCode=function(t,i){i="string"==typeof i&&-1===i.indexOf("function")?"'"+i+"'":i;var e="$grid.isotope({ "+t+": "+i+" })";e=hljs.highlight("js",e).value,this.html(e)}}(); ID.modules["commercial-license-agreement"]=function(e){"use strict";function t(e){var t=i.querySelector(".is-selected");t&&classie.remove(t,"is-selected"),classie.add(e,"is-selected");for(var l=e.getAttribute("data-license-option"),n=o[l],s=0,c=a.length;c>s;s++){var p=a[s];r.setText(p.element,n[p.property])}}var r=window.fizzyUIUtils,o={developer:{title:"Developer","for-official":"one (1) Licensed Developer","for-plain":"one individual Developer"},team:{title:"Team","for-official":"up to eight (8) Licensed Developer(s)","for-plain":"up to 8 Developers"},organization:{title:"Organization","for-official":"an unlimited number of Licensed Developer(s)","for-plain":"an unlimited number of Developers"}},i=e.querySelector(".button-group"),l=e.querySelector("h2"),n=l.cloneNode(!0);n.style.borderTop="none",n.style.marginTop=0,n.id="",r.setText(l,""),i.parentNode.insertBefore(n,i.nextSibling);for(var a=[],s=e.querySelectorAll("[data-license-property]"),c=0,p=s.length;p>c;c++){var d=s[c],u={property:d.getAttribute("data-license-property"),element:d};a.push(u)}t(i.querySelector(".button--developer")),eventie.bind(i,"click",function(e){matchesSelector(e.target,".button")&&t(e.target)})}; ID.modules["gh-button"]=function(t){function e(t){return t.toString().replace(/(\d)(?=(\d{3})+$)/g,"$1,")}var a="metafizzy",o="isotope",n="ghButtonCallback"+Math.floor(1e4*Math.random());window[n]=function(a){var o=e(a.data.stargazers_count);t.querySelector(".gh-button__stat__text").textContent=o};var r=document.createElement("script");r.src="https://api.github.com/repos/"+a+"/"+o+"?callback="+n,document.head.appendChild(r)}; ID.modules["hero-demo"]=function(t){"use strict";var e=$(t),n=e.find(".grid").isotope({itemSelector:".element-item",layoutMode:"fitRows",transitionDuration:"0.6s",getSortData:{name:".name",symbol:".symbol",number:".number parseInt",category:"[data-category]",weight:function(t){var e=$(t).find(".weight").text();return parseFloat(e.replace(/[\(\)]/g,""))}}}),r={numberGreaterThan50:function(){var t=$(this).find(".number").text();return parseInt(t,10)>50},ium:function(){var t=$(this).find(".name").text();return t.match(/ium$/)}},i={numberGreaterThan50:"function() {\n var number = $(this).find('.number').text();\n return parseInt( number, 10 ) > 50;\n}",ium:"function() {\n var name = $(this).find('.name').text();\n return name.match( /ium$/ );\n}"},o=e.find(".code-display code");e.find(".sort-by").on("click","button",function(){var t=$(this).attr("data-sort-by");n.isotope({sortBy:t}),o.displayIsotopeCode("sortBy",t)}),e.find(".filters").on("click","button",function(){var t=$(this).attr("data-filter"),e=r[t]||t,a=i[t]||t;n.isotope({filter:e}),o.displayIsotopeCode("filter",a)})}; ID.modules["in-use-grid"]=function(e){"use strict";var i=$(e);i.find(".in-use-grid__item").hide(),i.isotope({itemSelector:"none",masonry:{columnWidth:".grid-sizer",gutter:".gutter-sizer"}}),i.isotope("option",{itemSelector:".in-use-grid__item"}),i.imagesLoaded().progress(function(e,t){var o=$(t.img).parents(".in-use-grid__item");o.show(),i.isotope("appended",o)})}; ID.modules.notification=function(t){"use strict";function n(){var t=new Date,n=e(t.getMinutes()),i=e(t.getSeconds());return[t.getHours(),n,i].join(":")}function e(t){return 10>t?"0"+t:t}function i(){t.style[c]="opacity 1.0s",t.style.opacity="0"}var o,s=document.documentElement,c="string"==typeof s.style.transition?"transition":"WebkitTransition";ID.notify=function(e){t.textContent=e+" at "+n(),t.style[c]="none",t.style.display="block",t.style.opacity="1",clearTimeout(o),o=setTimeout(i,1e3)}}; !function(){"use strict";function t(t){this.element=t,this.originalY=this.element.getBoundingClientRect().top+window.pageYOffset,window.addEventListener("scroll",this),this.isFixed=!1,this.onscroll()}function i(t,i,e){var n=t.prototype[i],o=i+"Timeout";t.prototype[i]=function(){if(!this[o]){n.apply(this,arguments);var t=this;this[o]=setTimeout(function(){n.apply(t,arguments),delete t[o]},e||100)}}}ID.modules["page-nav"]=function(i){var e=getSize(i).outerHeight;window.innerWidth<768||e>=window.innerHeight||new t(i)},t.prototype.handleEvent=function(t){var i="on"+t.type;this[i]&&this[i](t)},t.prototype.onscroll=function(){var t=window.pageYOffset>=this.originalY;t!==this.isFixed&&(this.element.classList.toggle("is-fixed"),this.isFixed=t)},i(t,"onscroll",50)}(); ID.modules["refactor-shirt"]=function(t){"use strict";var e=new Date(2016,1,10),r=Math.round((e-new Date)/864e5);t.querySelector(".refactor-shirt__title").textContent="Refactor shirts. Only on sale for "+r+" more days."}; ID.modules["animate-item-size"]=function(i){"use strict";var t=$(i),e=t.find(".grid").isotope({masonry:{columnWidth:60}});e.on("click",".animate-item-size-item",function(){$(this).toggleClass("is-expanded"),e.isotope("layout")})}; ID.modules["animate-item-size-responsive"]=function(t){"use strict";function i(t){var i=getSize(t);t.style[o]="none",t.style.width=i.width+"px",t.style.height=i.height+"px"}function e(t){if(o){var i=function(){t.style.width="",t.style.height="",t.removeEventListener(r,i,!1)};t.addEventListener(r,i,!1)}}function n(t,i){var e=getSize(i);t.style.width=e.width+"px",t.style.height=e.height+"px"}var s=document.documentElement.style,o="string"==typeof s.transition?"transition":"WebkitTransition",r={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[o],a=$(t),d=a.find(".grid").isotope({itemSelector:".animate-item-size-item",percentPosition:!0,masonry:{columnWidth:".grid-sizer"}});d.on("click",".animate-item-size-item__content",function(){var t=this;i(t);var s=t.parentNode;s.classList.toggle("is-expanded");t.offsetWidth;t.style[o]="",e(t),n(t,s),d.isotope("layout")})}; ID.modules.appended=function(e){"use strict";var t=$(e),n=t.find(".grid").isotope({masonry:{columnWidth:50}});t.find(".append-button").on("click",function(){var e=$([ID.getItemElement(),ID.getItemElement(),ID.getItemElement()]);n.append(e).isotope("appended",e)})}; ID.modules["arrange-complete"]=function(t){"use strict";var o=$(t),n=o.find(".grid").isotope({masonry:{columnWidth:50}});n.on("arrangeComplete",function(t,o){ID.notify("Isotope arrange completed on "+o.length+" items")}),o.find(".button-group").on("click","button",function(){var t=$(this).attr("data-filter");n.isotope({filter:t})})}; ID.modules["combination-filters"]=function(t){"use strict";function o(t){var o="";for(var i in t)o+=t[i];return o}var i=$(t),r=i.find(".grid").isotope({itemSelector:".color-shape",columnWidth:80,transitionDuration:"0.6s"}),n=i.find(".code-display code"),e={};i.on("click",".button",function(){var t=$(this),i=t.parents(".button-group"),a=i.attr("data-filter-group");e[a]=t.attr("data-filter");var s=o(e);r.isotope({filter:s}),n.displayIsotopeCode("filter",s)})}; ID.modules.destroy=function(o){"use strict";var t=$(o),i={masonry:{columnWidth:50}},n=t.find(".grid").isotope(i),s=!0;t.find(".toggle-button").on("click",function(){s?n.isotope("destroy"):n.isotope(i),s=!s})}; ID.modules["filtering-demo"]=function(t){"use strict";var n=$(t),e=n.find(".grid").isotope({itemSelector:".element-item",layoutMode:"fitRows",transitionDuration:"0.6s"}),i={numberGreaterThan50:function(){var t=$(this).find(".number").text();return parseInt(t,10)>50},ium:function(){var t=$(this).find(".name").text();return t.match(/ium$/)}},r={numberGreaterThan50:"function() {\n var number = $(this).find('.number').text();\n return parseInt( number, 10 ) > 50;\n}",ium:"function() {\n var name = $(this).find('.name').text();\n return name.match( /ium$/ );\n}"},o=n.find(".code-display code");n.find(".filter-button-group").on("click","button",function(){var t=$(this).attr("data-filter"),n=i[t]||t,u=r[t]||t;e.isotope({filter:n}),o.displayIsotopeCode("filter",u)})}; ID.modules["imagesloaded-callback"]=function(e){"use strict";var i=$(e).imagesLoaded(function(){i.isotope({itemSelector:".grid-image-item",percentPosition:!0,masonry:{columnWidth:".grid-sizer"}})})}; ID.modules["imagesloaded-progress"]=function(e){"use strict";var o=$(e).isotope({itemSelector:".grid-image-item",percentPosition:!0,masonry:{columnWidth:".grid-sizer"}});o.imagesLoaded().progress(function(){o.isotope("layout")})}; ID.modules.insert=function(t){"use strict";var n=$(t),r=n.find(".grid").isotope({masonry:{columnWidth:50},filter:function(){var t=$(this).find(".number").text();return parseInt(t,10)%2},sortBy:"number",getSortData:{number:".number parseInt"}});n.find(".insert-button").on("click",function(){for(var t=[],n=0;3>n;n++){var e=ID.getItemElement(),o=Math.floor(100*Math.random());$(e).append('

'+o+"

"),t.push(e)}r.isotope("insert",t)})}; ID.modules["layout-complete"]=function(o){"use strict";var t=$(o),i=t.find(".grid").isotope({masonry:{columnWidth:50}});i.on("layoutComplete",function(o,t){ID.notify("Isotope layout completed on "+t.length+" items")}),i.on("click",".grid-item",function(){$(this).toggleClass("grid-item--gigante"),i.isotope("layout")})}; ID.modules["layout-demo"]=function(i){"use strict";var o=$(i),t=o.find(".grid").isotope({masonry:{columnWidth:50}});t.on("click",".grid-item",function(){$(this).toggleClass("grid-item--gigante"),t.isotope("layout")})}; ID.modules["layout-modes-demo"]=function(o){"use strict";var t=$(window),i=$(o),a=i.find(".grid").isotope({itemSelector:".grid-splash-item",layoutMode:"masonry",transitionDuration:"0.6s",masonry:{columnWidth:110},cellsByRow:{columnWidth:220,rowHeight:220},masonryHorizontal:{rowHeight:110},cellsByColumn:{columnWidth:220,rowHeight:220}}),e=!1,d=i.find(".code-display code");i.find(".button-group").on("click","button",function(){var o=$(this),i=!!o.attr("data-is-horizontal");if(e!=i){var n=i?{height:.7*t.height()}:{width:"auto"};a.css(n),e=i}var s=o.attr("data-layout-mode");a.isotope({layoutMode:s}),d.displayIsotopeCode("layoutMode",s)})}; ID.modules["multiple-sort-by"]=function(t){"use strict";function o(t){return t.split(",")}var r=$(t),i=r.find(".button-group"),e=r.find(".grid").isotope({layoutMode:"fitRows",itemSelector:".grid-multi-item",getSortData:{color:"[data-color]",number:".number parseInt"},sortBy:["color","number"]});i.on("click","button",function(){e.isotope({sortBy:o(this.getAttribute("data-sort-by"))})})}; ID.modules.prepended=function(e){"use strict";var t=$(e),n=t.find(".grid").isotope({masonry:{columnWidth:50}});t.find(".prepend-button").on("click",function(){var e=$([ID.getItemElement(),ID.getItemElement(),ID.getItemElement()]);n.prepend(e).isotope("prepended",e)})}; ID.modules.remove=function(o){"use strict";var i=$(o),t=i.find(".grid").isotope({masonry:{columnWidth:50}});t.on("click",".grid-item",function(){t.isotope("remove",this).isotope("layout")})}; ID.modules["remove-complete"]=function(o){"use strict";var e=$(o),t=e.find(".grid").isotope({masonry:{columnWidth:50}});t.on("removeComplete",function(o,e){ID.notify("Removed "+e.length+" items")}),t.on("click",".grid-item",function(){t.isotope("remove",this).isotope("layout")})}; ID.modules.shuffle=function(o){"use strict";var f=$(o),i=f.find(".grid").isotope({masonry:{columnWidth:50}});f.find(".shuffle-button").on("click",function(){i.isotope("shuffle")})}; ID.modules["sorting-demo"]=function(t){"use strict";var o=$(t),e=o.find(".sort-by-button-group"),r=o.find(".grid").isotope({itemSelector:".element-item",layoutMode:"fitRows",transitionDuration:"0.6s",getSortData:{name:".name",symbol:".symbol",number:".number parseInt",category:"[data-category]",weight:function(t){var o=$(t).find(".weight").text();return parseFloat(o.replace(/[\(\)]/g,""))}}}),i=o.find(".code-display code");e.on("click","button",function(){var t=$(this).attr("data-sort-by");r.isotope({sortBy:t}),i.displayIsotopeCode("sortBy",t)})}; ID.modules.stagger=function(t){"use strict";var o=$(t),r=o.find(".grid").isotope({layoutMode:"fitRows",stagger:30});o.find(".button-group").on("click",".button",function(t){var o=$(t.currentTarget).attr("data-filter");r.isotope({filter:o})})}; ID.modules["stamp-methods"]=function(t){"use strict";var o=$(t),i=o.find(".grid").isotope({itemSelector:".grid-item",masonry:{columnWidth:50}}),s=i.find(".stamp"),n=!1;o.find(".stamp-button").on("click",function(){n?i.isotope("unstamp",s):i.isotope("stamp",s),i.isotope("layout"),n=!n})}; ID.modules["vertical-list"]=function(t){"use strict";var e=$(t),o=e.find(".vertical-list").isotope({itemSelector:"li",layoutMode:"vertical",transitionDuration:"0.6s",getSortData:{name:".name",symbol:".symbol",number:".number parseInt",category:".category",weight:function(t){var e=$(t).find(".weight").text();return parseFloat(e.replace(/[\(\)]/g,""))}}});e.find(".button-group").on("click","button",function(){var t=$(this).attr("data-sort-by");o.isotope({sortBy:t})})}; ID.modules["visible-hidden-style"]=function(t){"use strict";var i=$(t),e=i.find(".grid").isotope({layoutMode:"fitRows",visibleStyle:{opacity:1},hiddenStyle:{opacity:0}});i.find(".button-group").on("click",".button",function(t){var i=$(t.currentTarget).attr("data-filter");e.isotope({filter:i})})}; !function(){"use strict";$("[data-js-module]").each(function(t,e){var s=e.getAttribute("data-js-module"),a=ID.modules[s];a&&a(e)}),$(".js-radio-button-group").each(function(t,e){var s=$(e);s.find(":checked").parent().addClass("is-checked"),s.on("click","input, button",function(){s.find(".is-checked").removeClass("is-checked");var t=$(this),e=t.hasClass("button")?t:t.parents(".button");e.addClass("is-checked")})})}();}( jQuery )); /*! Lazy v1.7.8 - http://jquery.eisbehr.de/lazy - MIT&GPL-2.0 license - Copyright 2012-2018 Daniel 'Eisbehr' Kern */ !function(t,e){"use strict";function r(r,a,i,u,l){function f(){L=t.devicePixelRatio>1,i=c(i),a.delay>=0&&setTimeout(function(){s(!0)},a.delay),(a.delay<0||a.combined)&&(u.e=v(a.throttle,function(t){"resize"===t.type&&(w=B=-1),s(t.all)}),u.a=function(t){t=c(t),i.push.apply(i,t)},u.g=function(){return i=n(i).filter(function(){return!n(this).data(a.loadedName)})},u.f=function(t){for(var e=0;ee.top&&-ne.left&&-n=0?w:w=n(t).width()}function h(){return B>=0?B:B=n(t).height()}function m(t){return t.tagName.toLowerCase()}function b(t,e){if(e){var r=t.split(",");t="";for(var a=0,n=r.length;at||!a.enableThrottle||u?l():n=setTimeout(l,t-f)}}function p(){--z,i.length||z||y("onFinishedAll")}function y(t,e,n){return!!(t=a[t])&&(t.apply(r,[].slice.call(arguments,1)),!0)}var z=0,w=-1,B=-1,L=!1,T="afterLoad",D="load",I="error",N="img",E="src",F="srcset",C="sizes",O="background-image";"event"===a.bind||o?f():n(t).on(D+"."+l,f)}function a(a,o){var u=this,l=n.extend({},u.config,o),f={},c=l.name+"-"+ ++i;return u.config=function(t,r){return r===e?l[t]:(l[t]=r,u)},u.addItems=function(t){return f.a&&f.a("string"===n.type(t)?n(t):t),u},u.getItems=function(){return f.g?f.g():{}},u.update=function(t){return f.e&&f.e({},!t),u},u.force=function(t){return f.f&&f.f("string"===n.type(t)?n(t):t),u},u.loadAll=function(){return f.e&&f.e({all:!0},!0),u},u.destroy=function(){return n(l.appendScroll).off("."+c,f.e),n(t).off("."+c),f={},e},r(u,l,a,f,c),l.chainable?a:u}var n=t.jQuery||t.Zepto,i=0,o=!1;n.fn.Lazy=n.fn.lazy=function(t){return new a(this,t)},n.Lazy=n.lazy=function(t,r,i){if(n.isFunction(r)&&(i=r,r=[]),n.isFunction(i)){t=n.isArray(t)?t:[t],r=n.isArray(r)?r:[r];for(var o=a.prototype.config,u=o._f||(o._f={}),l=0,f=t.length;l(b||av.height())},_setFocus:function(){(aP.st.focus?aP.content.find(aP.st.focus).eq(0):aP.wrap).focus()},_onFocusIn:function(a){return a.target===aP.wrap[0]||aQ.contains(aP.wrap[0],a.target)?void 0:(aP._setFocus(),!1)},_parseMarkup:function(a,h,g){var f;g.data&&(h=aQ.extend(g.data,h)),ar(aF,[a,h,g]),aQ.each(h,function(j,i){if(void 0===i||i===!1){return !0}if(f=j.split("_"),f.length>1){var e=a.find(aB+"-"+f[0]);if(e.length>0){var b=f[1];"replaceWith"===b?e[0]!==i[0]&&e.replaceWith(i):"img"===b?e.is("img")?e.attr("src",i):e.replaceWith(aQ("").attr("src",i).attr("class",e.attr("class"))):e.attr(f[1],i)}}else{a.find(aB+"-"+j).html(i)}})},_getScrollbarSize:function(){if(void 0===aP.scrollbarSize){var b=document.createElement("div");b.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(b),aP.scrollbarSize=b.offsetWidth-b.clientWidth,document.body.removeChild(b)}return aP.scrollbarSize}},aQ.magnificPopup={instance:null,proto:ax.prototype,modules:[],open:function(a,d){return ap(),a=a?aQ.extend(!0,{},a):{},a.isObj=!0,a.index=d||0,this.instance.open(a)},close:function(){return aQ.magnificPopup.instance&&aQ.magnificPopup.instance.close()},registerModule:function(a,d){d.options&&(aQ.magnificPopup.defaults[a]=d.options),aQ.extend(this.proto,d.proto),this.modules.push(a)},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:'',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},aQ.fn.magnificPopup=function(j){ap();var i=aQ(this);if("string"==typeof j){if("open"===j){var h,b=aw?i.data("magnificPopup"):i[0].magnificPopup,a=parseInt(arguments[1],10)||0;b.items?h=b.items[a]:(h=i,b.delegate&&(h=h.find(b.delegate)),h=h.eq(a)),aP._openClick({mfpEl:h},i,b)}else{aP.isOpen&&aP[j].apply(aP,Array.prototype.slice.call(arguments,1))}}else{j=aQ.extend(!0,{},j),aw?i.data("magnificPopup",j):i[0].magnificPopup=j,aP.addGroup(i,j)}return i};var an,am,al,ak="inline",aj=function(){al&&(am.after(al.addClass(an)).detach(),al=null)};aQ.magnificPopup.registerModule(ak,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){aP.types.push(ak),au(aJ+"."+ak,function(){aj()})},getInline:function(j,i){if(aj(),j.src){var h=aP.st.inline,b=aQ(j.src);if(b.length){var a=b[0].parentNode;a&&a.tagName&&(am||(an=h.hiddenClass,am=at(an),an="mfp-"+an),al=b.after(am).detach().removeClass(an)),aP.updateStatus("ready")}else{aP.updateStatus("error",h.tNotFound),b=aQ("
")}return j.inlineElement=b,b}return aP.updateStatus("ready"),aP._parseMarkup(i,{},j),i}}});var ai,ah="ajax",ag=function(){ai&&aQ(document.body).removeClass(ai)},af=function(){ag(),aP.req&&aP.req.abort()};aQ.magnificPopup.registerModule(ah,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'The content could not be loaded.'},proto:{initAjax:function(){aP.types.push(ah),ai=aP.st.ajax.cursor,au(aJ+"."+ah,af),au("BeforeChange."+ah,af)},getAjax:function(b){ai&&aQ(document.body).addClass(ai),aP.updateStatus("loading");var a=aQ.extend({url:b.src,success:function(j,i,h){var c={data:j,xhr:h};ar("ParseAjax",c),aP.appendContent(aQ(c.data),ah),b.finished=!0,ag(),aP._setFocus(),setTimeout(function(){aP.wrap.addClass(aA)},16),aP.updateStatus("ready"),ar("AjaxContentAdded")},error:function(){ag(),b.finished=b.loadError=!0,aP.updateStatus("error",aP.st.ajax.tError.replace("%url%",b.src))}},aP.st.ajax.settings);return aP.req=aQ.ajax(a),""}}});var ae,ad=function(b){if(b.data&&void 0!==b.data.title){return b.data.title}var a=aP.st.image.titleSrc;if(a){if(aQ.isFunction(a)){return a.call(aP,b)}if(b.el){return b.el.attr(a)||""}}return""};aQ.magnificPopup.registerModule("image",{options:{markup:'
',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'The image could not be loaded.'},proto:{initImage:function(){var b=aP.st.image,a=".image";aP.types.push("image"),au(aE+a,function(){"image"===aP.currItem.type&&b.cursor&&aQ(document.body).addClass(b.cursor)}),au(aJ+a,function(){b.cursor&&aQ(document.body).removeClass(b.cursor),av.off("resize"+aB)}),au("Resize"+a,aP.resizeImage),aP.isLowIE&&au("AfterChange",aP.resizeImage)},resizeImage:function(){var b=aP.currItem;if(b&&b.img&&aP.st.image.verticalFit){var d=0;aP.isLowIE&&(d=parseInt(b.img.css("padding-top"),10)+parseInt(b.img.css("padding-bottom"),10)),b.img.css("max-height",aP.wH-d)}},_onImageHasSize:function(b){b.img&&(b.hasSize=!0,ae&&clearInterval(ae),b.isCheckingImgSize=!1,ar("ImageHasSize",b),b.imgHidden&&(aP.content&&aP.content.removeClass("mfp-loading"),b.imgHidden=!1))},findImageSize:function(b){var h=0,g=b.img[0],f=function(a){ae&&clearInterval(ae),ae=setInterval(function(){return g.naturalWidth>0?void aP._onImageHasSize(b):(h>200&&clearInterval(ae),h++,void (3===h?f(10):40===h?f(50):100===h&&f(500)))},a)};f(1)},getImage:function(p,o){var n=0,m=function(){p&&(p.img[0].complete?(p.img.off(".mfploader"),p===aP.currItem&&(aP._onImageHasSize(p),aP.updateStatus("ready")),p.hasSize=!0,p.loaded=!0,ar("ImageLoadComplete")):(n++,200>n?setTimeout(m,100):l()))},l=function(){p&&(p.img.off(".mfploader"),p===aP.currItem&&(aP._onImageHasSize(p),aP.updateStatus("error",k.tError.replace("%url%",p.src))),p.hasSize=!0,p.loaded=!0,p.loadError=!0)},k=aP.st.image,b=o.find(".mfp-img");if(b.length){var a=document.createElement("img");a.className="mfp-img",p.el&&p.el.find("img").length&&(a.alt=p.el.find("img").attr("alt")),p.img=aQ(a).on("load.mfploader",m).on("error.mfploader",l),a.src=p.src,b.is("img")&&(p.img=p.img.clone()),a=p.img[0],a.naturalWidth>0?p.hasSize=!0:a.width||(p.hasSize=!1)}return aP._parseMarkup(o,{title:ad(p),img_replaceWith:p.img},p),aP.resizeImage(),p.hasSize?(ae&&clearInterval(ae),p.loadError?(o.addClass("mfp-loading"),aP.updateStatus("error",k.tError.replace("%url%",p.src))):(o.removeClass("mfp-loading"),aP.updateStatus("ready")),o):(aP.updateStatus("loading"),p.loading=!0,p.hasSize||(p.imgHidden=!0,o.addClass("mfp-loading"),aP.findImageSize(p)),o)}}});var ac,ab=function(){return void 0===ac&&(ac=void 0!==document.createElement("p").style.MozTransform),ac};aQ.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(b){return b.is("img")?b:b.find("img")}},proto:{initZoom:function(){var b,p=aP.st.zoom,o=".zoom";if(p.enabled&&aP.supportsTransition){var n,m,l=p.duration,i=function(g){var c=g.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),q="all "+p.duration/1000+"s "+p.easing,k={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},j="transition";return k["-webkit-"+j]=k["-moz-"+j]=k["-o-"+j]=k[j]=q,c.css(k),c},h=function(){aP.content.css("visibility","visible")};au("BuildControls"+o,function(){if(aP._allowZoom()){if(clearTimeout(n),aP.content.css("visibility","hidden"),b=aP._getItemToZoom(),!b){return void h()}m=i(b),m.css(aP._getOffset()),aP.wrap.append(m),n=setTimeout(function(){m.css(aP._getOffset(!0)),n=setTimeout(function(){h(),setTimeout(function(){m.remove(),b=m=null,ar("ZoomAnimationEnded")},16)},l)},16)}}),au(aI+o,function(){if(aP._allowZoom()){if(clearTimeout(n),aP.st.removalDelay=l,!b){if(b=aP._getItemToZoom(),!b){return}m=i(b)}m.css(aP._getOffset(!0)),aP.wrap.append(m),aP.content.css("visibility","hidden"),setTimeout(function(){m.css(aP._getOffset())},16)}}),au(aJ+o,function(){aP._allowZoom()&&(h(),m&&m.remove(),b=null)})}},_allowZoom:function(){return"image"===aP.currItem.type},_getItemToZoom:function(){return aP.currItem.hasSize?aP.currItem.img:!1},_getOffset:function(l){var k;k=l?aP.currItem.img:aP.st.zoom.opener(aP.currItem.el||aP.currItem);var j=k.offset(),i=parseInt(k.css("padding-top"),10),b=parseInt(k.css("padding-bottom"),10);j.top-=aQ(window).scrollTop()-i;var a={width:k.width(),height:(aw?k.innerHeight():k[0].offsetHeight)-b-i};return ab()?a["-moz-transform"]=a.transform="translate("+j.left+"px,"+j.top+"px)":(a.left=j.left,a.top=j.top),a}}});var aa="iframe",Z="//about:blank",Y=function(b){if(aP.currTemplate[aa]){var d=aP.currTemplate[aa].find("iframe");d.length&&(b||(d[0].src=Z),aP.isIE8&&d.css("display",b?"block":"none"))}};aQ.magnificPopup.registerModule(aa,{options:{markup:'
',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(){aP.types.push(aa),au("BeforeChange",function(e,d,f){d!==f&&(d===aa?Y():f===aa&&Y(!0))}),au(aJ+"."+aa,function(){Y()})},getIframe:function(j,i){var h=j.src,b=aP.st.iframe;aQ.each(b.patterns,function(){return h.indexOf(this.index)>-1?(this.id&&(h="string"==typeof this.id?h.substr(h.lastIndexOf(this.id)+this.id.length,h.length):this.id.call(this,h)),h=this.src.replace("%id%",h),!1):void 0});var a={};return b.srcAction&&(a[b.srcAction]=h),aP._parseMarkup(i,a,j),aP.updateStatus("ready"),i}}});var X=function(b){var d=aP.items.length;return b>d-1?b-d:0>b?d+b:b},W=function(e,d,f){return e.replace(/%curr%/gi,d+1).replace(/%total%/gi,f)};aQ.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'',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 b=aP.st.gallery,a=".mfp-gallery";return aP.direction=!0,b&&b.enabled?(aL+=" mfp-gallery",au(aE+a,function(){b.navigateByImgClick&&aP.wrap.on("click"+a,".mfp-img",function(){return aP.items.length>1?(aP.next(),!1):void 0}),aN.on("keydown"+a,function(c){37===c.keyCode?aP.prev():39===c.keyCode&&aP.next()})}),au("UpdateStatus"+a,function(d,e){e.text&&(e.text=W(e.text,aP.currItem.index,aP.items.length))}),au(aF+a,function(c,k,j,i){var h=aP.items.length;j.counter=h>1?W(b.tCounter,i.index,h):""}),au("BuildControls"+a,function(){if(aP.items.length>1&&b.arrows&&!aP.arrowLeft){var h=b.arrowMarkup,g=aP.arrowLeft=aQ(h.replace(/%title%/gi,b.tPrev).replace(/%dir%/gi,"left")).addClass(ay),c=aP.arrowRight=aQ(h.replace(/%title%/gi,b.tNext).replace(/%dir%/gi,"right")).addClass(ay);g.on(function(){aP.prev()}),c.on(function(){aP.next()}),aP.container.append(g.add(c))}}),au(aD+a,function(){aP._preloadTimeout&&clearTimeout(aP._preloadTimeout),aP._preloadTimeout=setTimeout(function(){aP.preloadNearbyImages(),aP._preloadTimeout=null},16)}),void au(aJ+a,function(){aN.off(a),aP.wrap.off("click"+a),aP.arrowRight=aP.arrowLeft=null})):!1},next:function(){aP.direction=!0,aP.index=X(aP.index+1),aP.updateItemHTML()},prev:function(){aP.direction=!1,aP.index=X(aP.index-1),aP.updateItemHTML()},goTo:function(b){aP.direction=b>=aP.index,aP.index=b,aP.updateItemHTML()},preloadNearbyImages:function(){var b,h=aP.st.gallery.preload,g=Math.min(h[0],aP.items.length),f=Math.min(h[1],aP.items.length);for(b=1;b<=(aP.direction?f:g);b++){aP._preloadItem(aP.index+b)}for(b=1;b<=(aP.direction?g:f);b++){aP._preloadItem(aP.index-b)}},_preloadItem:function(b){if(b=X(b),!aP.items[b].preloaded){var a=aP.items[b];a.parsed||(a=aP.parseEl(b)),ar("LazyLoad",a),"image"===a.type&&(a.img=aQ('').on("load.mfploader",function(){a.hasSize=!0}).on("error.mfploader",function(){a.hasSize=!0,a.loadError=!0,ar("LazyLoadError",a)}).attr("src",a.src)),a.preloaded=!0}}}});var V="retina";aQ.magnificPopup.registerModule(V,{options:{replaceSrc:function(b){return b.src.replace(/\.\w+$/,function(c){return"@2x"+c})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var b=aP.st.retina,d=b.ratio;d=isNaN(d)?d():d,d>1&&(au("ImageHasSize."+V,function(e,c){c.img.css({"max-width":c.img[0].naturalWidth/d,width:"100%"})}),au("ElementParse."+V,function(a,c){c.src=b.replaceSrc(c,d)}))}}}}),ap()}); /* jScrollPane - v2.0.19 - 2013-11-16 */ !function(a,b,c){a.fn.jScrollPane=function(d){function e(d,e){function f(b){var e,h,j,l,m,n,q=!1,r=!1;if(P=b,Q===c)m=d.scrollTop(),n=d.scrollLeft(),d.css({overflow:"hidden",padding:0}),R=d.innerWidth()+tb,S=d.innerHeight(),d.width(R),Q=a('
').css("padding",sb).append(d.children()),T=a('
').css({width:R+"px",height:S+"px"}).append(Q).appendTo(d);else{if(d.css("width",""),q=P.stickToBottom&&C(),r=P.stickToRight&&D(),l=d.innerWidth()+tb!=R||d.outerHeight()!=S,l&&(R=d.innerWidth()+tb,S=d.innerHeight(),T.css({width:R+"px",height:S+"px"})),!l&&ub==U&&Q.outerHeight()==V)return d.width(R),void 0;ub=U,Q.css("width",""),d.width(R),T.find(">.jspVerticalBar,>.jspHorizontalBar").remove().end()}Q.css("overflow","auto"),U=b.contentWidth?b.contentWidth:Q[0].scrollWidth,V=Q[0].scrollHeight,Q.css("overflow",""),W=U/R,X=V/S,Y=X>1,Z=W>1,Z||Y?(d.addClass("jspScrollable"),e=P.maintainPosition&&(ab||db),e&&(h=A(),j=B()),g(),i(),k(),e&&(y(r?U-R:h,!1),x(q?V-S:j,!1)),H(),E(),N(),P.enableKeyboardNavigation&&J(),P.clickOnTrack&&o(),L(),P.hijackInternalLinks&&M()):(d.removeClass("jspScrollable"),Q.css({top:0,left:0,width:T.width()-tb}),F(),I(),K(),p()),P.autoReinitialise&&!rb?rb=setInterval(function(){f(P)},P.autoReinitialiseDelay):!P.autoReinitialise&&rb&&clearInterval(rb),m&&d.scrollTop(0)&&x(m,!1),n&&d.scrollLeft(0)&&y(n,!1),d.trigger("jsp-initialised",[Z||Y])}function g(){Y&&(T.append(a('
').append(a('
'),a('
').append(a('
').append(a('
'),a('
'))),a('
'))),eb=T.find(">.jspVerticalBar"),fb=eb.find(">.jspTrack"),$=fb.find(">.jspDrag"),P.showArrows&&(jb=a('').bind("mousedown.jsp",m(0,-1)).bind("click.jsp",G),kb=a('').bind("mousedown.jsp",m(0,1)).bind("click.jsp",G),P.arrowScrollOnHover&&(jb.bind("mouseover.jsp",m(0,-1,jb)),kb.bind("mouseover.jsp",m(0,1,kb))),l(fb,P.verticalArrowPositions,jb,kb)),hb=S,T.find(">.jspVerticalBar>.jspCap:visible,>.jspVerticalBar>.jspArrow").each(function(){hb-=a(this).outerHeight()}),$.hover(function(){$.addClass("jspHover")},function(){$.removeClass("jspHover")}).bind("mousedown.jsp",function(b){a("html").bind("dragstart.jsp selectstart.jsp",G),$.addClass("jspActive");var c=b.pageY-$.position().top;return a("html").bind("mousemove.jsp",function(a){r(a.pageY-c,!1)}).bind("mouseup.jsp mouseleave.jsp",q),!1}),h())}function h(){fb.height(hb+"px"),ab=0,gb=P.verticalGutter+fb.outerWidth(),Q.width(R-gb-tb);try{0===eb.position().left&&Q.css("margin-left",gb+"px")}catch(a){}}function i(){Z&&(T.append(a('
').append(a('
'),a('
').append(a('
').append(a('
'),a('
'))),a('
'))),lb=T.find(">.jspHorizontalBar"),mb=lb.find(">.jspTrack"),bb=mb.find(">.jspDrag"),P.showArrows&&(pb=a('').bind("mousedown.jsp",m(-1,0)).bind("click.jsp",G),qb=a('').bind("mousedown.jsp",m(1,0)).bind("click.jsp",G),P.arrowScrollOnHover&&(pb.bind("mouseover.jsp",m(-1,0,pb)),qb.bind("mouseover.jsp",m(1,0,qb))),l(mb,P.horizontalArrowPositions,pb,qb)),bb.hover(function(){bb.addClass("jspHover")},function(){bb.removeClass("jspHover")}).bind("mousedown.jsp",function(b){a("html").bind("dragstart.jsp selectstart.jsp",G),bb.addClass("jspActive");var c=b.pageX-bb.position().left;return a("html").bind("mousemove.jsp",function(a){t(a.pageX-c,!1)}).bind("mouseup.jsp mouseleave.jsp",q),!1}),nb=T.innerWidth(),j())}function j(){T.find(">.jspHorizontalBar>.jspCap:visible,>.jspHorizontalBar>.jspArrow").each(function(){nb-=a(this).outerWidth()}),mb.width(nb+"px"),db=0}function k(){if(Z&&Y){var b=mb.outerHeight(),c=fb.outerWidth();hb-=b,a(lb).find(">.jspCap:visible,>.jspArrow").each(function(){nb+=a(this).outerWidth()}),nb-=c,S-=c,R-=b,mb.parent().append(a('
').css("width",b+"px")),h(),j()}Z&&Q.width(T.outerWidth()-tb+"px"),V=Q.outerHeight(),X=V/S,Z&&(ob=Math.ceil(1/W*nb),ob>P.horizontalDragMaxWidth?ob=P.horizontalDragMaxWidth:obP.verticalDragMaxHeight?ib=P.verticalDragMaxHeight:ibg)ab-k>c?vb.scrollByY(-f):r(c);else{if(!(g>0))return j(),void 0;c>ab+k?vb.scrollByY(f):r(c)}d=setTimeout(i,h?P.initialDelay:P.trackClickRepeatFreq),h=!1},j=function(){d&&clearTimeout(d),d=null,a(document).unbind("mouseup.jsp",j)};return i(),a(document).bind("mouseup.jsp",j),!1}}),Z&&mb.bind("mousedown.jsp",function(b){if(b.originalTarget===c||b.originalTarget==b.currentTarget){var d,e=a(this),f=e.offset(),g=b.pageX-f.left-db,h=!0,i=function(){var a=e.offset(),c=b.pageX-a.left-ob/2,f=R*P.scrollPagePercent,k=cb*f/(U-R);if(0>g)db-k>c?vb.scrollByX(-f):t(c);else{if(!(g>0))return j(),void 0;c>db+k?vb.scrollByX(f):t(c)}d=setTimeout(i,h?P.initialDelay:P.trackClickRepeatFreq),h=!1},j=function(){d&&clearTimeout(d),d=null,a(document).unbind("mouseup.jsp",j)};return i(),a(document).bind("mouseup.jsp",j),!1}})}function p(){mb&&mb.unbind("mousedown.jsp"),fb&&fb.unbind("mousedown.jsp")}function q(){a("html").unbind("dragstart.jsp selectstart.jsp mousemove.jsp mouseup.jsp mouseleave.jsp"),$&&$.removeClass("jspActive"),bb&&bb.removeClass("jspActive")}function r(a,b){Y&&(0>a?a=0:a>_&&(a=_),b===c&&(b=P.animateScroll),b?vb.animate($,"top",a,s):($.css("top",a),s(a)))}function s(a){a===c&&(a=$.position().top),T.scrollTop(0),ab=a;var b=0===ab,e=ab==_,f=a/_,g=-f*(V-S);(wb!=b||yb!=e)&&(wb=b,yb=e,d.trigger("jsp-arrow-change",[wb,yb,xb,zb])),v(b,e),Q.css("top",g),d.trigger("jsp-scroll-y",[-g,b,e]).trigger("scroll")}function t(a,b){Z&&(0>a?a=0:a>cb&&(a=cb),b===c&&(b=P.animateScroll),b?vb.animate(bb,"left",a,u):(bb.css("left",a),u(a)))}function u(a){a===c&&(a=bb.position().left),T.scrollTop(0),db=a;var b=0===db,e=db==cb,f=a/cb,g=-f*(U-R);(xb!=b||zb!=e)&&(xb=b,zb=e,d.trigger("jsp-arrow-change",[wb,yb,xb,zb])),w(b,e),Q.css("left",g),d.trigger("jsp-scroll-x",[-g,b,e]).trigger("scroll")}function v(a,b){P.showArrows&&(jb[a?"addClass":"removeClass"]("jspDisabled"),kb[b?"addClass":"removeClass"]("jspDisabled"))}function w(a,b){P.showArrows&&(pb[a?"addClass":"removeClass"]("jspDisabled"),qb[b?"addClass":"removeClass"]("jspDisabled"))}function x(a,b){var c=a/(V-S);r(c*_,b)}function y(a,b){var c=a/(U-R);t(c*cb,b)}function z(b,c,d){var e,f,g,h,i,j,k,l,m,n=0,o=0;try{e=a(b)}catch(p){return}for(f=e.outerHeight(),g=e.outerWidth(),T.scrollTop(0),T.scrollLeft(0);!e.is(".jspPane");)if(n+=e.position().top,o+=e.position().left,e=e.offsetParent(),/^body|html$/i.test(e[0].nodeName))return;h=B(),j=h+S,h>n||c?l=n-P.horizontalGutter:n+f>j&&(l=n-S+f+P.horizontalGutter),isNaN(l)||x(l,d),i=A(),k=i+R,i>o||c?m=o-P.horizontalGutter:o+g>k&&(m=o-R+g+P.horizontalGutter),isNaN(m)||y(m,d)}function A(){return-Q.position().left}function B(){return-Q.position().top}function C(){var a=V-S;return a>20&&a-B()<10}function D(){var a=U-R;return a>20&&a-A()<10}function E(){T.unbind(Bb).bind(Bb,function(a,b,c,d){var e=db,f=ab,g=a.deltaFactor||P.mouseWheelSpeed;return vb.scrollBy(c*g,-d*g,!1),e==db&&f==ab})}function F(){T.unbind(Bb)}function G(){return!1}function H(){Q.find(":input,a").unbind("focus.jsp").bind("focus.jsp",function(a){z(a.target,!1)})}function I(){Q.find(":input,a").unbind("focus.jsp")}function J(){function b(){var a=db,b=ab;switch(c){case 40:vb.scrollByY(P.keyboardSpeed,!1);break;case 38:vb.scrollByY(-P.keyboardSpeed,!1);break;case 34:case 32:vb.scrollByY(S*P.scrollPagePercent,!1);break;case 33:vb.scrollByY(-S*P.scrollPagePercent,!1);break;case 39:vb.scrollByX(P.keyboardSpeed,!1);break;case 37:vb.scrollByX(-P.keyboardSpeed,!1)}return e=a!=db||b!=ab}var c,e,f=[];Z&&f.push(lb[0]),Y&&f.push(eb[0]),Q.focus(function(){d.focus()}),d.attr("tabindex",0).unbind("keydown.jsp keypress.jsp").bind("keydown.jsp",function(d){if(d.target===this||f.length&&a(d.target).closest(f).length){var g=db,h=ab;switch(d.keyCode){case 40:case 38:case 34:case 32:case 33:case 39:case 37:c=d.keyCode,b();break;case 35:x(V-S),c=null;break;case 36:x(0),c=null}return e=d.keyCode==c&&g!=db||h!=ab,!e}}).bind("keypress.jsp",function(a){return a.keyCode==c&&b(),!e}),P.hideFocus?(d.css("outline","none"),"hideFocus"in T[0]&&d.attr("hideFocus",!0)):(d.css("outline",""),"hideFocus"in T[0]&&d.attr("hideFocus",!1))}function K(){d.attr("tabindex","-1").removeAttr("tabindex").unbind("keydown.jsp keypress.jsp")}function L(){if(location.hash&&location.hash.length>1){var b,c,d=escape(location.hash.substr(1));try{b=a("#"+d+', a[name="'+d+'"]')}catch(e){return}b.length&&Q.find(d)&&(0===T.scrollTop()?c=setInterval(function(){T.scrollTop()>0&&(z(b,!0),a(document).scrollTop(T.position().top),clearInterval(c))},50):(z(b,!0),a(document).scrollTop(T.position().top)))}}function M(){a(document.body).data("jspHijack")||(a(document.body).data("jspHijack",!0),a(document.body).delegate("a[href*=#]","click",function(c){var d,e,f,g,h,i,j=this.href.substr(0,this.href.indexOf("#")),k=location.href;if(-1!==location.href.indexOf("#")&&(k=location.href.substr(0,location.href.indexOf("#"))),j===k){d=escape(this.href.substr(this.href.indexOf("#")+1));try{e=a("#"+d+', a[name="'+d+'"]')}catch(l){return}e.length&&(f=e.closest(".jspScrollable"),g=f.data("jsp"),g.scrollToElement(e,!0),f[0].scrollIntoView&&(h=a(b).scrollTop(),i=e.offset().top,(h>i||i>h+a(b).height())&&f[0].scrollIntoView()),c.preventDefault())}}))}function N(){var a,b,c,d,e,f=!1;T.unbind("touchstart.jsp touchmove.jsp touchend.jsp click.jsp-touchclick").bind("touchstart.jsp",function(g){var h=g.originalEvent.touches[0];a=A(),b=B(),c=h.pageX,d=h.pageY,e=!1,f=!0}).bind("touchmove.jsp",function(g){if(f){var h=g.originalEvent.touches[0],i=db,j=ab;return vb.scrollTo(a+c-h.pageX,b+d-h.pageY),e=e||Math.abs(c-h.pageX)>5||Math.abs(d-h.pageY)>5,i==db&&j==ab}}).bind("touchend.jsp",function(){f=!1}).bind("click.jsp-touchclick",function(){return e?(e=!1,!1):void 0})}function O(){var a=B(),b=A();d.removeClass("jspScrollable").unbind(".jsp"),d.replaceWith(Ab.append(Q.children())),Ab.scrollTop(a),Ab.scrollLeft(b),rb&&clearInterval(rb)}var P,Q,R,S,T,U,V,W,X,Y,Z,$,_,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb=this,wb=!0,xb=!0,yb=!1,zb=!1,Ab=d.clone(!1,!1).empty(),Bb=a.fn.mwheelIntent?"mwheelIntent.jsp":"mousewheel.jsp";"border-box"===d.css("box-sizing")?(sb=0,tb=0):(sb=d.css("paddingTop")+" "+d.css("paddingRight")+" "+d.css("paddingBottom")+" "+d.css("paddingLeft"),tb=(parseInt(d.css("paddingLeft"),10)||0)+(parseInt(d.css("paddingRight"),10)||0)),a.extend(vb,{reinitialise:function(b){b=a.extend({},P,b),f(b)},scrollToElement:function(a,b,c){z(a,b,c)},scrollTo:function(a,b,c){y(a,c),x(b,c)},scrollToX:function(a,b){y(a,b)},scrollToY:function(a,b){x(a,b)},scrollToPercentX:function(a,b){y(a*(U-R),b)},scrollToPercentY:function(a,b){x(a*(V-S),b)},scrollBy:function(a,b,c){vb.scrollByX(a,c),vb.scrollByY(b,c)},scrollByX:function(a,b){var c=A()+Math[0>a?"floor":"ceil"](a),d=c/(U-R);t(d*cb,b)},scrollByY:function(a,b){var c=B()+Math[0>a?"floor":"ceil"](a),d=c/(V-S);r(d*_,b)},positionDragX:function(a,b){t(a,b)},positionDragY:function(a,b){r(a,b)},animate:function(a,b,c,d){var e={};e[b]=c,a.animate(e,{duration:P.animateDuration,easing:P.animateEase,queue:!1,step:d})},getContentPositionX:function(){return A()},getContentPositionY:function(){return B()},getContentWidth:function(){return U},getContentHeight:function(){return V},getPercentScrolledX:function(){return A()/(U-R)},getPercentScrolledY:function(){return B()/(V-S)},getIsScrollableH:function(){return Z},getIsScrollableV:function(){return Y},getContentPane:function(){return Q},scrollToBottom:function(a){r(_,a)},hijackInternalLinks:a.noop,destroy:function(){O()}}),f(e)}return d=a.extend({},a.fn.jScrollPane.defaults,d),a.each(["arrowButtonSpeed","trackClickSpeed","keyboardSpeed"],function(){d[this]=d[this]||d.speed}),this.each(function(){var b=a(this),c=b.data("jsp");c?c.reinitialise(d):(a("script",b).filter('[type="text/javascript"],:not([type])').remove(),c=new e(b,d),b.data("jsp",c))})},a.fn.jScrollPane.defaults={showArrows:!1,maintainPosition:!0,stickToBottom:!1,stickToRight:!1,clickOnTrack:!0,autoReinitialise:!1,autoReinitialiseDelay:500,verticalDragMinHeight:0,verticalDragMaxHeight:99999,horizontalDragMinWidth:0,horizontalDragMaxWidth:99999,contentWidth:c,animateScroll:!1,animateDuration:300,animateEase:"linear",hijackInternalLinks:!1,verticalGutter:4,horizontalGutter:4,mouseWheelSpeed:3,arrowButtonSpeed:0,arrowRepeatFreq:50,arrowScrollOnHover:!1,trackClickSpeed:0,trackClickRepeatFreq:70,verticalArrowPositions:"split",horizontalArrowPositions:"split",enableKeyboardNavigation:!0,hideFocus:!1,keyboardSpeed:0,initialDelay:300,speed:30,scrollPagePercent:.8}}(jQuery,this); /*jquery.mb.YTPlayer 25-07-2016 */ function onYouTubeIframeAPIReady(){ytp.YTAPIReady||(ytp.YTAPIReady=!0,jQuery(document).trigger("YTAPIReady"))}function uncamel(a){return a.replace(/([A-Z])/g,function(a){return"-"+a.toLowerCase()})}function setUnit(a,b){return"string"!=typeof a||a.match(/^[\-0-9\.]+jQuery/)?""+a+b:a}function setFilter(a,b,c){var d=uncamel(b),e=jQuery.browser.mozilla?"":jQuery.CSS.sfx;a[e+"filter"]=a[e+"filter"]||"",c=setUnit(c>jQuery.CSS.filters[b].max?jQuery.CSS.filters[b].max:c,jQuery.CSS.filters[b].unit),a[e+"filter"]+=d+"("+c+") ",delete a[b]}var ytp=ytp||{},getYTPVideoID=function(a){var b,c;return a.indexOf("youtu.be")>0?(b=a.substr(a.lastIndexOf("/")+1,a.length),c=b.indexOf("?list=")>0?b.substr(b.lastIndexOf("="),b.length):null,b=c?b.substr(0,b.lastIndexOf("?")):b):a.indexOf("http")>-1?(b=a.match(/[\\?&]v=([^&#]*)/)[1],c=a.indexOf("list=")>0?a.match(/[\\?&]list=([^&#]*)/)[1]:null):(b=a.length>15?null:a,c=b?null:a),{videoID:b,playlistID:c}};!function(jQuery,ytp){jQuery.mbYTPlayer={name:"jquery.mb.YTPlayer",version:"3.0.8",build:"5878",author:"Matteo Bicocchi",apiKey:"",defaults:{containment:"body",ratio:"auto",videoURL:null,playlistURL:null,startAt:0,stopAt:0,autoPlay:!0,vol:50,addRaster:!1,mask:!1,opacity:1,quality:"default",mute:!1,loop:!0,showControls:!0,showAnnotations:!1,showYTLogo:!0,stopMovieOnBlur:!0,realfullscreen:!0,mobileFallbackImage:null,gaTrack:!0,optimizeDisplay:!0,align:"center,center",onReady:function(a){}},controls:{play:"P",pause:"p",mute:"M",unmute:"A",onlyYT:"O",showSite:"R",ytLogo:"Y"},controlBar:null,loading:null,locationProtocol:"https:",filters:{grayscale:{value:0,unit:"%"},hue_rotate:{value:0,unit:"deg"},invert:{value:0,unit:"%"},opacity:{value:0,unit:"%"},saturate:{value:0,unit:"%"},sepia:{value:0,unit:"%"},brightness:{value:0,unit:"%"},contrast:{value:0,unit:"%"},blur:{value:0,unit:"px"}},buildPlayer:function(options){return this.each(function(){var YTPlayer=this,$YTPlayer=jQuery(YTPlayer);YTPlayer.loop=0,YTPlayer.opt={},YTPlayer.state={},YTPlayer.filters=jQuery.mbYTPlayer.filters,YTPlayer.filtersEnabled=!0,YTPlayer.id=YTPlayer.id||"YTP_"+(new Date).getTime(),$YTPlayer.addClass("mb_YTPlayer");var property=$YTPlayer.data("property")&&"string"==typeof $YTPlayer.data("property")?eval("("+$YTPlayer.data("property")+")"):$YTPlayer.data("property");"undefined"!=typeof property&&"undefined"!=typeof property.vol&&(property.vol=0===property.vol?property.vol=1:property.vol),jQuery.extend(YTPlayer.opt,jQuery.mbYTPlayer.defaults,options,property),YTPlayer.hasChanged||(YTPlayer.defaultOpt={},jQuery.extend(YTPlayer.defaultOpt,jQuery.mbYTPlayer.defaults,options)),"true"==YTPlayer.opt.loop&&(YTPlayer.opt.loop=9999),YTPlayer.isRetina=window.retina||window.devicePixelRatio>1;var isIframe=function(){var a=!1;try{self.location.href!=top.location.href&&(a=!0)}catch(b){a=!0}return a};YTPlayer.canGoFullScreen=!(jQuery.browser.msie||jQuery.browser.opera||isIframe()),YTPlayer.canGoFullScreen||(YTPlayer.opt.realfullscreen=!1),$YTPlayer.attr("id")||$YTPlayer.attr("id","video_"+(new Date).getTime());var playerID="mbYTP_"+YTPlayer.id;YTPlayer.isAlone=!1,YTPlayer.hasFocus=!0;var videoID=this.opt.videoURL?getYTPVideoID(this.opt.videoURL).videoID:$YTPlayer.attr("href")?getYTPVideoID($YTPlayer.attr("href")).videoID:!1,playlistID=this.opt.videoURL?getYTPVideoID(this.opt.videoURL).playlistID:$YTPlayer.attr("href")?getYTPVideoID($YTPlayer.attr("href")).playlistID:!1;YTPlayer.videoID=videoID,YTPlayer.playlistID=playlistID,YTPlayer.opt.showAnnotations=YTPlayer.opt.showAnnotations?"0":"3";var playerVars={modestbranding:1,autoplay:0,controls:0,showinfo:0,rel:0,enablejsapi:1,version:3,playerapiid:playerID,origin:"*",allowfullscreen:!0,wmode:"transparent",iv_load_policy:YTPlayer.opt.showAnnotations};if(document.createElement("video").canPlayType&&jQuery.extend(playerVars,{html5:1}),jQuery.browser.msie&&jQuery.browser.version<9&&(this.opt.opacity=1),YTPlayer.isSelf="self"==YTPlayer.opt.containment,YTPlayer.defaultOpt.containment=YTPlayer.opt.containment=jQuery("self"==YTPlayer.opt.containment?this:YTPlayer.opt.containment),YTPlayer.isBackground=YTPlayer.opt.containment.is("body"),!YTPlayer.isBackground||!ytp.backgroundIsInited){var isPlayer=YTPlayer.opt.containment.is(jQuery(this));YTPlayer.canPlayOnMobile=isPlayer&&0===jQuery(this).children().length,YTPlayer.isPlayer=!1,isPlayer?YTPlayer.isPlayer=!0:$YTPlayer.hide();var overlay=jQuery("
").css({position:"absolute",top:0,left:0,width:"100%",height:"100%"}).addClass("YTPOverlay");YTPlayer.isPlayer&&overlay.on("click",function(){$YTPlayer.YTPTogglePlay()});var wrapper=jQuery("
").addClass("mbYTP_wrapper").attr("id","wrapper_"+playerID);wrapper.css({position:"absolute",zIndex:0,minWidth:"100%",minHeight:"100%",left:0,top:0,overflow:"hidden",opacity:0});var playerBox=jQuery("
").attr("id",playerID).addClass("playerBox");if(playerBox.css({position:"absolute",zIndex:0,width:"100%",height:"100%",top:0,left:0,overflow:"hidden"}),wrapper.append(playerBox),YTPlayer.opt.containment.children().not("script, style").each(function(){"static"==jQuery(this).css("position")&&jQuery(this).css("position","relative")}),YTPlayer.isBackground?(jQuery("body").css({boxSizing:"border-box"}),wrapper.css({position:"fixed",top:0,left:0,zIndex:0}),$YTPlayer.hide()):"static"==YTPlayer.opt.containment.css("position")&&YTPlayer.opt.containment.css({position:"relative"}),YTPlayer.opt.containment.prepend(wrapper),YTPlayer.wrapper=wrapper,playerBox.css({opacity:1}),jQuery.browser.mobile||(playerBox.after(overlay),YTPlayer.overlay=overlay),YTPlayer.isBackground||overlay.on("mouseenter",function(){YTPlayer.controlBar.length&&YTPlayer.controlBar.addClass("visible")}).on("mouseleave",function(){YTPlayer.controlBar.length&&YTPlayer.controlBar.removeClass("visible")}),ytp.YTAPIReady)setTimeout(function(){jQuery(document).trigger("YTAPIReady")},100);else{jQuery("#YTAPI").remove();var tag=jQuery("").attr({src:jQuery.mbYTPlayer.locationProtocol+"//www.youtube.com/iframe_api?v="+jQuery.mbYTPlayer.version,id:"YTAPI"});jQuery("head").prepend(tag)}if(jQuery.browser.mobile&&!YTPlayer.canPlayOnMobile)return YTPlayer.opt.mobileFallbackImage&&YTPlayer.opt.containment.css({backgroundImage:"url("+YTPlayer.opt.mobileFallbackImage+")",backgroundPosition:"center center",backgroundSize:"cover",backgroundRepeat:"no-repeat"}),$YTPlayer.remove(),void jQuery(document).trigger("YTPUnavailable");jQuery(document).on("YTAPIReady",function(){YTPlayer.isBackground&&ytp.backgroundIsInited||YTPlayer.isInit||(YTPlayer.isBackground&&(ytp.backgroundIsInited=!0),YTPlayer.opt.autoPlay="undefined"==typeof YTPlayer.opt.autoPlay?YTPlayer.isBackground?!0:!1:YTPlayer.opt.autoPlay,YTPlayer.opt.vol=YTPlayer.opt.vol?YTPlayer.opt.vol:100,jQuery.mbYTPlayer.getDataFromAPI(YTPlayer),jQuery(YTPlayer).on("YTPChanged",function(){if(!YTPlayer.isInit){if(YTPlayer.isInit=!0,jQuery.browser.mobile&&YTPlayer.canPlayOnMobile){if(YTPlayer.opt.containment.outerWidth()>jQuery(window).width()){YTPlayer.opt.containment.css({maxWidth:"100%"});var h=.563*YTPlayer.opt.containment.outerWidth();YTPlayer.opt.containment.css({maxHeight:h})}return void new YT.Player(playerID,{videoId:YTPlayer.videoID.toString(),width:"100%",height:h,playerVars:playerVars,events:{onReady:function(a){YTPlayer.player=a.target,playerBox.css({opacity:1}),YTPlayer.wrapper.css({opacity:1})}}})}new YT.Player(playerID,{videoId:YTPlayer.videoID.toString(),playerVars:playerVars,events:{onReady:function(a){YTPlayer.player=a.target,YTPlayer.isReady||(YTPlayer.isReady=YTPlayer.isPlayer&&!YTPlayer.opt.autoPlay?!1:!0,YTPlayer.playerEl=YTPlayer.player.getIframe(),jQuery(YTPlayer.playerEl).unselectable(),$YTPlayer.optimizeDisplay(),YTPlayer.videoID=videoID,jQuery(window).off("resize.YTP_"+YTPlayer.id).on("resize.YTP_"+YTPlayer.id,function(){$YTPlayer.optimizeDisplay()}),jQuery.mbYTPlayer.checkForState(YTPlayer))},onStateChange:function(event){if("function"==typeof event.target.getPlayerState){var state=event.target.getPlayerState();if(YTPlayer.preventTrigger)return void(YTPlayer.preventTrigger=!1);YTPlayer.state=state;var eventType;switch(state){case-1:eventType="YTPUnstarted";break;case 0:eventType="YTPEnd";break;case 1:eventType="YTPPlay",YTPlayer.controlBar.length&&YTPlayer.controlBar.find(".mb_YTPPlaypause").html(jQuery.mbYTPlayer.controls.pause),"undefined"!=typeof _gaq&&eval(YTPlayer.opt.gaTrack)&&_gaq.push(["_trackEvent","YTPlayer","Play",YTPlayer.hasData?YTPlayer.videoData.title:YTPlayer.videoID.toString()]),"undefined"!=typeof ga&&eval(YTPlayer.opt.gaTrack)&&ga("send","event","YTPlayer","play",YTPlayer.hasData?YTPlayer.videoData.title:YTPlayer.videoID.toString());break;case 2:eventType="YTPPause",YTPlayer.controlBar.length&&YTPlayer.controlBar.find(".mb_YTPPlaypause").html(jQuery.mbYTPlayer.controls.play);break;case 3:YTPlayer.player.setPlaybackQuality(YTPlayer.opt.quality),eventType="YTPBuffering",YTPlayer.controlBar.length&&YTPlayer.controlBar.find(".mb_YTPPlaypause").html(jQuery.mbYTPlayer.controls.play);break;case 5:eventType="YTPCued"}var YTPEvent=jQuery.Event(eventType);YTPEvent.time=YTPlayer.currentTime,YTPlayer.canTrigger&&jQuery(YTPlayer).trigger(YTPEvent)}},onPlaybackQualityChange:function(a){var b=a.target.getPlaybackQuality(),c=jQuery.Event("YTPQualityChange");c.quality=b,jQuery(YTPlayer).trigger(c)},onError:function(a){150==a.data&&(console.log("Embedding this video is restricted by Youtube."),YTPlayer.isPlayList&&jQuery(YTPlayer).playNext()),2==a.data&&YTPlayer.isPlayList&&jQuery(YTPlayer).playNext(),"function"==typeof YTPlayer.opt.onError&&YTPlayer.opt.onError($YTPlayer,a)}}})}}))}),$YTPlayer.off("YTPTime.mask"),jQuery.mbYTPlayer.applyMask(YTPlayer)}})},getDataFromAPI:function(a){if(a.videoData=jQuery.mbStorage.get("YTPlayer_data_"+a.videoID),jQuery(a).off("YTPData.YTPlayer").on("YTPData.YTPlayer",function(){if(a.hasData&&a.isPlayer&&!a.opt.autoPlay){var b=a.videoData.thumb_max||a.videoData.thumb_high||a.videoData.thumb_medium;a.opt.containment.css({background:"rgba(0,0,0,0.5) url("+b+") center center",backgroundSize:"cover"}),a.opt.backgroundUrl=b}}),a.videoData)setTimeout(function(){a.opt.ratio="auto"==a.opt.ratio?"16/9":a.opt.ratio,a.dataReceived=!0,jQuery(a).trigger("YTPChanged");var b=jQuery.Event("YTPData");b.prop={};for(var c in a.videoData)b.prop[c]=a.videoData[c];jQuery(a).trigger(b)},500),a.hasData=!0;else if(jQuery.mbYTPlayer.apiKey)jQuery.getJSON(jQuery.mbYTPlayer.locationProtocol+"//www.googleapis.com/youtube/v3/videos?id="+a.videoID+"&key="+jQuery.mbYTPlayer.apiKey+"&part=snippet",function(b){function c(b){a.videoData={},a.videoData.id=a.videoID,a.videoData.channelTitle=b.channelTitle,a.videoData.title=b.title,a.videoData.description=b.description.length<400?b.description:b.description.substring(0,400)+" ...",a.videoData.aspectratio="auto"==a.opt.ratio?"16/9":a.opt.ratio,a.opt.ratio=a.videoData.aspectratio,a.videoData.thumb_max=b.thumbnails.maxres?b.thumbnails.maxres.url:null,a.videoData.thumb_high=b.thumbnails.high?b.thumbnails.high.url:null,a.videoData.thumb_medium=b.thumbnails.medium?b.thumbnails.medium.url:null,jQuery.mbStorage.set("YTPlayer_data_"+a.videoID,a.videoData)}a.dataReceived=!0,jQuery(a).trigger("YTPChanged"),c(b.items[0].snippet),a.hasData=!0;var d=jQuery.Event("YTPData");d.prop={};for(var e in a.videoData)d.prop[e]=a.videoData[e];jQuery(a).trigger(d)});else{if(setTimeout(function(){jQuery(a).trigger("YTPChanged")},50),a.isPlayer&&!a.opt.autoPlay){var b=jQuery.mbYTPlayer.locationProtocol+"//i.ytimg.com/vi/"+a.videoID+"/hqdefault.jpg";a.opt.containment.css({background:"rgba(0,0,0,0.5) url("+b+") center center",backgroundSize:"cover"}),a.opt.backgroundUrl=b}a.videoData=null,a.opt.ratio="auto"==a.opt.ratio?"16/9":a.opt.ratio}!a.isPlayer||a.opt.autoPlay||jQuery.browser.mobile||(a.loading=jQuery("
").addClass("loading").html("Loading").hide(),jQuery(a).append(a.loading),a.loading.fadeIn())},removeStoredData:function(){jQuery.mbStorage.remove()},getVideoData:function(){var a=this.get(0);return a.videoData},getVideoID:function(){var a=this.get(0);return a.videoID||!1},setVideoQuality:function(a){var b=this.get(0);b.player.setPlaybackQuality(a)},playlist:function(a,b,c,d){var e=this,f=e.get(0);return f.isPlayList=!0,b&&(a=jQuery.shuffle(a)),f.videoID||(f.videos=a,f.videoCounter=0,f.videoLength=a.length,jQuery(f).data("property",a[0]),jQuery(f).mb_YTPlayer()),"function"==typeof c&&jQuery(f).one("YTPChanged",function(){c(f)}),jQuery(f).on("YTPEnd",function(){d="undefined"==typeof d?!0:d,jQuery(f).playNext(d)}),e},playNext:function(a){var b=this.get(0);return b.checkForStartAt&&(clearTimeout(b.checkForStartAt),clearInterval(b.getState)),b.videoCounter++,b.videoCounter>=b.videoLength&&a&&(b.videoCounter=0),b.videoCounter=b.videoLength-1&&(b.videoCounter=b.videoLength-1),jQuery(b).changeMovie(b.videos[b.videoCounter]),this},changeMovie:function(a){var b=this,c=b.get(0);c.opt.startAt=0,c.opt.stopAt=0,c.opt.mask=!1,c.opt.mute=!0,c.hasData=!1,c.hasChanged=!0,c.player.loopTime=void 0,a&&jQuery.extend(c.opt,a),c.videoID=getYTPVideoID(c.opt.videoURL).videoID,"true"==c.opt.loop&&(c.opt.loop=9999),jQuery(c.playerEl).CSSAnimate({opacity:0},200,function(){var a=jQuery.Event("YTPChangeMovie");a.time=c.currentTime,a.videoId=c.videoID,jQuery(c).trigger(a),jQuery(c).YTPGetPlayer().cueVideoByUrl(encodeURI(jQuery.mbYTPlayer.locationProtocol+"//www.youtube.com/v/"+c.videoID),1,c.opt.quality),jQuery(c).optimizeDisplay(),jQuery.mbYTPlayer.checkForState(c),jQuery.mbYTPlayer.getDataFromAPI(c)}),jQuery.mbYTPlayer.applyMask(c)},getPlayer:function(){return jQuery(this).get(0).player},playerDestroy:function(){var a=this.get(0);ytp.YTAPIReady=!0,ytp.backgroundIsInited=!1,a.isInit=!1,a.videoID=null;var b=a.wrapper;return b.remove(),jQuery("#controlBar_"+a.id).remove(),clearInterval(a.checkForStartAt),clearInterval(a.getState),this},fullscreen:function(real){function hideMouse(){YTPlayer.overlay.css({cursor:"none"})}function RunPrefixMethod(a,b){for(var c,d,e=["webkit","moz","ms","o",""],f=0;f0||a&&b.opt.vol==a?b.isMute?jQuery(b).YTPUnmute():jQuery(b).YTPMute():(b.opt.vol=a,b.player.setVolume(b.opt.vol),b.volumeBar&&b.volumeBar.length&&b.volumeBar.updateSliderVal(a)):jQuery(b).YTPUnmute(),this},toggleVolume:function(){var a=this.get(0);if(a)return a.player.isMuted()?(jQuery(a).YTPUnmute(),!0):(jQuery(a).YTPMute(),!1)},mute:function(){var a=this.get(0);if(!a.isMute){a.player.mute(),a.isMute=!0,a.player.setVolume(0),a.volumeBar&&a.volumeBar.length&&a.volumeBar.width()>10&&a.volumeBar.updateSliderVal(0);var b=jQuery("#controlBar_"+a.id),c=b.find(".mb_YTPMuteUnmute");c.html(jQuery.mbYTPlayer.controls.unmute),jQuery(a).addClass("isMuted"),a.volumeBar&&a.volumeBar.length&&a.volumeBar.addClass("muted");var d=jQuery.Event("YTPMuted");return d.time=a.currentTime,a.canTrigger&&jQuery(a).trigger(d),this}},unmute:function(){var a=this.get(0);if(a.isMute){a.player.unMute(),a.isMute=!1,a.player.setVolume(a.opt.vol),a.volumeBar&&a.volumeBar.length&&a.volumeBar.updateSliderVal(a.opt.vol>10?a.opt.vol:10);var b=jQuery("#controlBar_"+a.id),c=b.find(".mb_YTPMuteUnmute");c.html(jQuery.mbYTPlayer.controls.mute),jQuery(a).removeClass("isMuted"),a.volumeBar&&a.volumeBar.length&&a.volumeBar.removeClass("muted");var d=jQuery.Event("YTPUnmuted");return d.time=a.currentTime,a.canTrigger&&jQuery(a).trigger(d),this}},applyFilter:function(a,b){return this.each(function(){var c=this;c.filters[a].value=b,c.filtersEnabled&&jQuery(c).YTPEnableFilters()})},applyFilters:function(a){return this.each(function(){var b=this;if(!b.isReady)return void jQuery(b).on("YTPReady",function(){jQuery(b).YTPApplyFilters(a)});for(var c in a)jQuery(b).YTPApplyFilter(c,a[c]);jQuery(b).trigger("YTPFiltersApplied")})},toggleFilter:function(a,b){return this.each(function(){var c=this;c.filters[a].value?c.filters[a].value=0:c.filters[a].value=b,c.filtersEnabled&&jQuery(this).YTPEnableFilters()})},toggleFilters:function(a){return this.each(function(){var b=this;b.filtersEnabled?(jQuery(b).trigger("YTPDisableFilters"),jQuery(b).YTPDisableFilters()):(jQuery(b).YTPEnableFilters(),jQuery(b).trigger("YTPEnableFilters")),"function"==typeof a&&a(b.filtersEnabled)})},disableFilters:function(){return this.each(function(){var a=this,b=jQuery(a.playerEl);b.css("-webkit-filter",""),b.css("filter",""),a.filtersEnabled=!1})},enableFilters:function(){return this.each(function(){var a=this,b=jQuery(a.playerEl),c="";for(var d in a.filters)a.filters[d].value&&(c+=d.replace("_","-")+"("+a.filters[d].value+a.filters[d].unit+") ");b.css("-webkit-filter",c),b.css("filter",c),a.filtersEnabled=!0})},removeFilter:function(a,b){return this.each(function(){var c=this;if("function"==typeof a&&(b=a,a=null),a)jQuery(this).YTPApplyFilter(a,0),"function"==typeof b&&b(a);else for(var d in c.filters)jQuery(this).YTPApplyFilter(d,0),"function"==typeof b&&b(d)})},getFilters:function(){var a=this.get(0);return a.filters},addMask:function(a){var b=this.get(0),c=b.overlay;a||(a=b.actualMask);var d=jQuery("").attr("src",a).on("load",function(){c.CSSAnimate({opacity:0},500,function(){b.hasMask=!0,d.remove(),c.css({backgroundImage:"url("+a+")",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"cover"}),c.CSSAnimate({opacity:1},500)})});return this},removeMask:function(){var a=this.get(0),b=a.overlay;return b.CSSAnimate({opacity:0},500,function(){a.hasMask=!1,b.css({backgroundImage:"",backgroundRepeat:"",backgroundPosition:"",backgroundSize:""}),b.CSSAnimate({opacity:1},500)}),this},applyMask:function(a){var b=jQuery(a);if(b.off("YTPTime.mask"),a.opt.mask)if("string"==typeof a.opt.mask)b.YTPAddMask(a.opt.mask),a.actualMask=a.opt.mask;else if("object"==typeof a.opt.mask){for(var c in a.opt.mask)if(a.opt.mask[c]){jQuery("").attr("src",a.opt.mask[c])}a.opt.mask[0]&&b.YTPAddMask(a.opt.mask[0]),b.on("YTPTime.mask",function(c){for(var d in a.opt.mask)c.time==d&&(a.opt.mask[d]?(b.YTPAddMask(a.opt.mask[d]),a.actualMask=a.opt.mask[d]):b.YTPRemoveMask())})}},toggleMask:function(){var a=this.get(0),b=$(a);return a.hasMask?b.YTPRemoveMask():b.YTPAddMask(),this},manageProgress:function(){var a=this.get(0),b=jQuery("#controlBar_"+a.id),c=b.find(".mb_YTPProgress"),d=b.find(".mb_YTPLoaded"),e=b.find(".mb_YTPseekbar"),f=c.outerWidth(),g=Math.floor(a.player.getCurrentTime()),h=Math.floor(a.player.getDuration()),i=g*f/h,j=0,k=100*a.player.getVideoLoadedFraction();return d.css({left:j,width:k+"%"}),e.css({left:0,width:i}),{totalTime:h,currentTime:g}},buildControls:function(YTPlayer){var data=YTPlayer.opt;if(data.showYTLogo=data.showYTLogo||data.printUrl,!jQuery("#controlBar_"+YTPlayer.id).length){YTPlayer.controlBar=jQuery("").attr("id","controlBar_"+YTPlayer.id).addClass("mb_YTPBar").css({whiteSpace:"noWrap",position:YTPlayer.isBackground?"fixed":"absolute",zIndex:YTPlayer.isBackground?1e4:1e3}).hide();var buttonBar=jQuery("
").addClass("buttonBar"),playpause=jQuery(""+jQuery.mbYTPlayer.controls.play+"").addClass("mb_YTPPlaypause ytpicon").on(function(){1==YTPlayer.player.getPlayerState()?jQuery(YTPlayer).YTPPause():jQuery(YTPlayer).YTPPlay()}),MuteUnmute=jQuery(""+jQuery.mbYTPlayer.controls.mute+"").addClass("mb_YTPMuteUnmute ytpicon").on(function(){0==YTPlayer.player.getVolume()?jQuery(YTPlayer).YTPUnmute():jQuery(YTPlayer).YTPMute()}),volumeBar=jQuery("
").addClass("mb_YTPVolumeBar").css({display:"inline-block"});YTPlayer.volumeBar=volumeBar;var idx=jQuery("").addClass("mb_YTPTime"),vURL=data.videoURL?data.videoURL:"";vURL.indexOf("http")<0&&(vURL=jQuery.mbYTPlayer.locationProtocol+"//www.youtube.com/watch?v="+data.videoURL);var movieUrl=jQuery("").html(jQuery.mbYTPlayer.controls.ytLogo).addClass("mb_YTPUrl ytpicon").attr("title","view on YouTube").on("click",function(){window.open(vURL,"viewOnYT")}),onlyVideo=jQuery("").html(jQuery.mbYTPlayer.controls.onlyYT).addClass("mb_OnlyYT ytpicon").on("click",function(){jQuery(YTPlayer).YTPFullscreen(data.realfullscreen)}),progressBar=jQuery("
").addClass("mb_YTPProgress").css("position","absolute").on(function(a){timeBar.css({width:a.clientX-timeBar.offset().left}),YTPlayer.timeW=a.clientX-timeBar.offset().left,YTPlayer.controlBar.find(".mb_YTPLoaded").css({width:0});var b=Math.floor(YTPlayer.player.getDuration());YTPlayer["goto"]=timeBar.outerWidth()*b/progressBar.outerWidth(),YTPlayer.player.seekTo(parseFloat(YTPlayer["goto"]),!0),YTPlayer.controlBar.find(".mb_YTPLoaded").css({width:0})}),loadedBar=jQuery("
").addClass("mb_YTPLoaded").css("position","absolute"),timeBar=jQuery("
").addClass("mb_YTPseekbar").css("position","absolute");progressBar.append(loadedBar).append(timeBar),buttonBar.append(playpause).append(MuteUnmute).append(volumeBar).append(idx),data.showYTLogo&&buttonBar.append(movieUrl),(YTPlayer.isBackground||eval(YTPlayer.opt.realfullscreen)&&!YTPlayer.isBackground)&&buttonBar.append(onlyVideo),YTPlayer.controlBar.append(buttonBar).append(progressBar),YTPlayer.isBackground?jQuery("body").after(YTPlayer.controlBar):(YTPlayer.controlBar.addClass("inlinePlayer"),YTPlayer.wrapper.before(YTPlayer.controlBar)),volumeBar.simpleSlider({initialval:YTPlayer.opt.vol,scale:100,orientation:"h",callback:function(a){0==a.value?jQuery(YTPlayer).YTPMute():jQuery(YTPlayer).YTPUnmute(),YTPlayer.player.setVolume(a.value),YTPlayer.isMute||(YTPlayer.opt.vol=a.value)}})}},checkForState:function(YTPlayer){var interval=YTPlayer.opt.showControls?100:400;return clearInterval(YTPlayer.getState),jQuery.contains(document,YTPlayer)?(jQuery.mbYTPlayer.checkForStart(YTPlayer),void(YTPlayer.getState=setInterval(function(){var prog=jQuery(YTPlayer).YTPManageProgress(),$YTPlayer=jQuery(YTPlayer),data=YTPlayer.opt,startAt=YTPlayer.opt.startAt?YTPlayer.opt.startAt:1,stopAt=YTPlayer.opt.stopAt>YTPlayer.opt.startAt?YTPlayer.opt.stopAt:0;if(stopAt=stopAt400&&YTPlayer.isCompact&&(YTPlayer.controlBar.removeClass("compact"),YTPlayer.isCompact=!1,!YTPlayer.isMute&&YTPlayer.volumeBar&&YTPlayer.volumeBar.updateSliderVal(YTPlayer.opt.vol)),1==YTPlayer.player.getPlayerState()&&(parseFloat(YTPlayer.player.getDuration()-1.5)0&&parseFloat(YTPlayer.player.getCurrentTime())>stopAt)){if(YTPlayer.isEnded)return;if(YTPlayer.isEnded=!0,setTimeout(function(){YTPlayer.isEnded=!1},1e3),YTPlayer.isPlayList){if(!data.loop||data.loop>0&&YTPlayer.player.loopTime===data.loop-1){YTPlayer.player.loopTime=void 0,clearInterval(YTPlayer.getState);var YTPEnd=jQuery.Event("YTPEnd");return YTPEnd.time=YTPlayer.currentTime,void jQuery(YTPlayer).trigger(YTPEnd)}}else if(!data.loop||data.loop>0&&YTPlayer.player.loopTime===data.loop-1)return YTPlayer.player.loopTime=void 0,YTPlayer.preventTrigger=!0,YTPlayer.state=2,jQuery(YTPlayer).YTPPause(),void YTPlayer.wrapper.CSSAnimate({opacity:0},500,function(){YTPlayer.controlBar.length&&YTPlayer.controlBar.find(".mb_YTPPlaypause").html(jQuery.mbYTPlayer.controls.play);var a=jQuery.Event("YTPEnd");a.time=YTPlayer.currentTime,jQuery(YTPlayer).trigger(a),YTPlayer.player.seekTo(startAt,!0),YTPlayer.isBackground||YTPlayer.opt.containment.css({background:"rgba(0,0,0,0.5) url("+YTPlayer.opt.backgroundUrl+") center center",backgroundSize:"cover"})});YTPlayer.player.loopTime=YTPlayer.player.loopTime?++YTPlayer.player.loopTime:1,startAt=startAt||1,YTPlayer.preventTrigger=!0,YTPlayer.state=2,jQuery(YTPlayer).YTPPause(),YTPlayer.player.seekTo(startAt,!0),$YTPlayer.YTPPlay()}},interval))):(jQuery(YTPlayer).YTPPlayerDestroy(),clearInterval(YTPlayer.getState),void clearInterval(YTPlayer.checkForStartAt))},getTime:function(){var a=this.get(0);return jQuery.mbYTPlayer.formatTime(a.currentTime)},getTotalTime:function(){var a=this.get(0);return jQuery.mbYTPlayer.formatTime(a.totalTime)},checkForStart:function(a){var b=jQuery(a);if(!jQuery.contains(document,a))return void jQuery(a).YTPPlayerDestroy();if(a.preventTrigger=!0,a.state=2,jQuery(a).YTPPause(),jQuery(a).muteYTPVolume(),jQuery("#controlBar_"+a.id).remove(),a.controlBar=!1,a.opt.showControls&&jQuery.mbYTPlayer.buildControls(a),a.opt.addRaster){var c="dot"==a.opt.addRaster?"raster-dot":"raster";a.overlay.addClass(a.isRetina?c+" retina":c)}else a.overlay.removeClass(function(a,b){var c=b.split(" "),d=[];return jQuery.each(c,function(a,b){/raster.*/.test(b)&&d.push(b)}),d.push("retina"),d.join(" ")});var d=a.opt.startAt?a.opt.startAt:1;a.player.playVideo(),a.player.seekTo(d,!0),a.checkForStartAt=setInterval(function(){jQuery(a).YTPMute();var c=a.player.getVideoLoadedFraction()>=d/a.player.getDuration();if(a.player.getDuration()>0&&a.player.getCurrentTime()>=d&&c){clearInterval(a.checkForStartAt),"function"==typeof a.opt.onReady&&a.opt.onReady(a),a.isReady=!0;var e=jQuery.Event("YTPReady");if(e.time=a.currentTime,jQuery(a).trigger(e),a.preventTrigger=!0,a.state=2,jQuery(a).YTPPause(),a.opt.mute||jQuery(a).YTPUnmute(),a.canTrigger=!0,a.opt.autoPlay){var f=jQuery.Event("YTPStart");f.time=a.currentTime,jQuery(a).trigger(f),b.css("background-image","none"),jQuery(a.playerEl).CSSAnimate({opacity:1},1e3),b.YTPPlay(),a.wrapper.CSSAnimate({opacity:a.isAlone?1:a.opt.opacity},1e3),jQuery.browser.safari&&(a.safariPlay=setInterval(function(){1!=a.state?b.YTPPlay():clearInterval(a.safariPlay)},10)),b.on("YTPReady",function(){b.YTPPlay()})}else a.player.pauseVideo(),a.isPlayer||(jQuery(a.playerEl).CSSAnimate({opacity:1},500),a.wrapper.CSSAnimate({opacity:a.isAlone?1:a.opt.opacity},500)),a.controlBar.length&&a.controlBar.find(".mb_YTPPlaypause").html(jQuery.mbYTPlayer.controls.play);a.isPlayer&&!a.opt.autoPlay&&a.loading&&a.loading.length&&(a.loading.html("Ready"),setTimeout(function(){a.loading.fadeOut()},100)),a.controlBar&&a.controlBar.length&&a.controlBar.slideDown(1e3)}else jQuery.browser.safari&&(a.player.playVideo(),d>=0&&a.player.seekTo(d,!0))},1)},setAlign:function(a){var b=this;b.optimizeDisplay(a)},getAlign:function(){var a=this.get(0);return a.opt.align},formatTime:function(a){var b=Math.floor(a/60),c=Math.floor(a-60*b);return(9>=b?"0"+b:b)+" : "+(9>=c?"0"+c:c)}},jQuery.fn.optimizeDisplay=function(a){var b=this.get(0),c=jQuery(b.playerEl),d={};b.opt.align=a||b.opt.align,b.opt.align="undefined "!=typeof b.opt.align?b.opt.align:"center,center";var e=b.opt.align.split(",");if(b.opt.optimizeDisplay){var f={},g=b.wrapper;f.width=g.outerWidth(),f.height=g.outerHeight(),d.width=f.width,d.height="16/9"==b.opt.ratio?Math.ceil(f.width*(9/16)):Math.ceil(.75*f.width),d.width=f.width,d.height="16/9"==b.opt.ratio?Math.ceil(f.width*(9/16)):Math.ceil(.75*f.width),d.marginTop=-((d.height-f.height)/2),d.marginLeft=0;var h=d.height-1&&nAgt.indexOf("android ")>-1&&nAgt.indexOf("applewebkit")>-1&&!(nAgt.indexOf("chrome")>-1)?(verOffset=nAgt.indexOf("Chrome"),jQuery.browser.webkit=!0,jQuery.browser.androidStock=!0,jQuery.browser.name="androidStock",jQuery.browser.fullVersion=nAgt.substring(verOffset+7)):-1!=(verOffset=nAgt.indexOf("Safari"))?(jQuery.browser.webkit=!0,jQuery.browser.safari=!0,jQuery.browser.name="Safari",jQuery.browser.fullVersion=nAgt.substring(verOffset+7),-1!=(verOffset=nAgt.indexOf("Version"))&&(jQuery.browser.fullVersion=nAgt.substring(verOffset+8))):-1!=(verOffset=nAgt.indexOf("AppleWebkit"))?(jQuery.browser.webkit=!0,jQuery.browser.safari=!0,jQuery.browser.name="Safari",jQuery.browser.fullVersion=nAgt.substring(verOffset+7),-1!=(verOffset=nAgt.indexOf("Version"))&&(jQuery.browser.fullVersion=nAgt.substring(verOffset+8))):-1!=(verOffset=nAgt.indexOf("Firefox"))?(jQuery.browser.mozilla=!0,jQuery.browser.name="Firefox",jQuery.browser.fullVersion=nAgt.substring(verOffset+8)):(nameOffset=nAgt.lastIndexOf(" ")+1)<(verOffset=nAgt.lastIndexOf("/"))&&(jQuery.browser.name=nAgt.substring(nameOffset,verOffset),jQuery.browser.fullVersion=nAgt.substring(verOffset+1),jQuery.browser.name.toLowerCase()==jQuery.browser.name.toUpperCase()&&(jQuery.browser.name=navigator.appName));-1!=(ix=jQuery.browser.fullVersion.indexOf(";"))&&(jQuery.browser.fullVersion=jQuery.browser.fullVersion.substring(0,ix)),-1!=(ix=jQuery.browser.fullVersion.indexOf(" "))&&(jQuery.browser.fullVersion=jQuery.browser.fullVersion.substring(0,ix)),jQuery.browser.majorVersion=parseInt(""+jQuery.browser.fullVersion,10),isNaN(jQuery.browser.majorVersion)&&(jQuery.browser.fullVersion=""+parseFloat(navigator.appVersion),jQuery.browser.majorVersion=parseInt(navigator.appVersion,10)),jQuery.browser.version=jQuery.browser.majorVersion}jQuery.browser.android=/Android/i.test(nAgt),jQuery.browser.blackberry=/BlackBerry|BB|PlayBook/i.test(nAgt),jQuery.browser.ios=/iPhone|iPad|iPod|webOS/i.test(nAgt),jQuery.browser.operaMobile=/Opera Mini/i.test(nAgt),jQuery.browser.windowsMobile=/IEMobile|Windows Phone/i.test(nAgt),jQuery.browser.kindle=/Kindle|Silk/i.test(nAgt),jQuery.browser.mobile=jQuery.browser.android||jQuery.browser.blackberry||jQuery.browser.ios||jQuery.browser.windowsMobile||jQuery.browser.operaMobile||jQuery.browser.kindle,jQuery.isMobile=jQuery.browser.mobile,jQuery.isTablet=jQuery.browser.mobile&&jQuery(window).width()>765,jQuery.isAndroidDefault=jQuery.browser.android&&!/chrome/i.test(nAgt),!function(a){var b=(/iphone|ipod|ipad|android|ie|blackberry|fennec/.test(navigator.userAgent.toLowerCase()),"ontouchstart"in window||window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture||window.DocumentTouch&&document instanceof DocumentTouch||!1);a.simpleSlider={defaults:{initialval:0,scale:100,orientation:"h",readonly:!1,callback:!1},events:{start:b?"touchstart":"mousedown",end:b?"touchend":"mouseup",move:b?"touchmove":"mousemove"},init:function(c){return this.each(function(){var d=this,e=a(d);e.addClass("simpleSlider"),d.opt={},a.extend(d.opt,a.simpleSlider.defaults,c),a.extend(d.opt,e.data());var f="h"==d.opt.orientation?"horizontal":"vertical",g=a("
").addClass("level").addClass(f);e.prepend(g),d.level=g,e.css({cursor:"default"}),"auto"==d.opt.scale&&(d.opt.scale=a(d).outerWidth()),e.updateSliderVal(),d.opt.readonly||(e.on(a.simpleSlider.events.start,function(a){b&&(a=a.changedTouches[0]),d.canSlide=!0,e.updateSliderVal(a),e.css({cursor:"col-resize"}),a.preventDefault(),a.stopPropagation()}),a(document).on(a.simpleSlider.events.move,function(c){b&&(c=c.changedTouches[0]),d.canSlide&&(a(document).css({cursor:"default"}),e.updateSliderVal(c),c.preventDefault(),c.stopPropagation())}).on(a.simpleSlider.events.end,function(){a(document).css({cursor:"auto"}),d.canSlide=!1,e.css({cursor:"auto"})}))})},updateSliderVal:function(b){function c(a,b){return Math.floor(100*a/b)}var d=this,e=d.get(0);if(e.opt){e.opt.initialval="number"==typeof e.opt.initialval?e.opt.initialval:e.opt.initialval(e);var f=a(e).outerWidth(),g=a(e).outerHeight();e.x="object"==typeof b?b.clientX+document.body.scrollLeft-d.offset().left:"number"==typeof b?b*f/e.opt.scale:e.opt.initialval*f/e.opt.scale,e.y="object"==typeof b?b.clientY+document.body.scrollTop-d.offset().top:"number"==typeof b?(e.opt.scale-e.opt.initialval-b)*g/e.opt.scale:e.opt.initialval*g/e.opt.scale,e.y=d.outerHeight()-e.y,e.scaleX=e.x*e.opt.scale/f,e.scaleY=e.y*e.opt.scale/g,e.outOfRangeX=e.scaleX>e.opt.scale?e.scaleX-e.opt.scale:e.scaleX<0?e.scaleX:0,e.outOfRangeY=e.scaleY>e.opt.scale?e.scaleY-e.opt.scale:e.scaleY<0?e.scaleY:0,e.outOfRange="h"==e.opt.orientation?e.outOfRangeX:e.outOfRangeY,"undefined"!=typeof b?e.value="h"==e.opt.orientation?e.x>=d.outerWidth()?e.opt.scale:e.x<=0?0:e.scaleX:e.y>=d.outerHeight()?e.opt.scale:e.y<=0?0:e.scaleY:e.value="h"==e.opt.orientation?e.scaleX:e.scaleY,"h"==e.opt.orientation?e.level.width(c(e.x,f)+"%"):e.level.height(c(e.y,g)),"function"==typeof e.opt.callback&&e.opt.callback(e)}}},a.fn.simpleSlider=a.simpleSlider.init,a.fn.updateSliderVal=a.simpleSlider.updateSliderVal}(jQuery),!function(a){a.mbCookie={set:function(a,b,c,d){b=JSON.stringify(b),c||(c=7),d=d?"; domain="+d:"";var e,f=new Date;f.setTime(f.getTime()+864e5*c),e="; expires="+f.toGMTString(),document.cookie=a+"="+b+e+"; path=/"+d},get:function(a){for(var b=a+"=",c=document.cookie.split(";"),d=0;d