!function(t,e,i,s){function n(e,i){this.settings=null,this.options=t.extend({},n.Defaults,i),this.$element=t(e),this._handlers={},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._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},t.each(["onResize","onThrottledResize"],t.proxy(function(e,i){this._handlers[i]=t.proxy(this[i],this)},this)),t.each(n.Plugins,t.proxy(function(t,e){this._plugins[t.charAt(0).toLowerCase()+t.slice(1)]=new e(this)},this)),t.each(n.Workers,t.proxy(function(e,i){this._pipe.push({filter:i.filter,run:t.proxy(i.run,this)})},this)),this.setup(),this.initialize()}n.Defaults={items:3,loop:!1,center:!1,rewind:!1,checkVisibility:!0,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:e,fallbackEasing:"swing",slideTransition:"",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},n.Width={Default:"default",Inner:"inner",Outer:"outer"},n.Type={Event:"event",State:"state"},n.Plugins={},n.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(t){t.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(t){var e=this.settings.margin||"",i=!this.settings.autoWidth,s=this.settings.rtl,n={width:"auto","margin-left":s?e:"","margin-right":s?"":e};!i&&this.$stage.children().css(n),t.css=n}},{filter:["width","items","settings"],run:function(t){var e=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,i=null,s=this._items.length,n=!this.settings.autoWidth,o=[];for(t.items={merge:!1,width:e};s--;)i=this._mergers[s],i=this.settings.mergeFit&&Math.min(i,this.settings.items)||i,t.items.merge=i>1||t.items.merge,o[s]=n?e*i:this._items[s].width();this._widths=o}},{filter:["items","settings"],run:function(){var e=[],i=this._items,s=this.settings,n=Math.max(2*s.items,4),o=2*Math.ceil(i.length/2),r=s.loop&&i.length?s.rewind?n:Math.max(n,o):0,a="",h="";for(r/=2;r>0;)e.push(this.normalize(e.length/2,!0)),a+=i[e[e.length-1]][0].outerHTML,e.push(this.normalize(i.length-1-(e.length-1)/2,!0)),h=i[e[e.length-1]][0].outerHTML+h,r-=1;this._clones=e,t(a).addClass("cloned").appendTo(this.$stage),t(h).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var t=this.settings.rtl?1:-1,e=this._clones.length+this._items.length,i=-1,s=0,n=0,o=[];++i<e;)s=o[i-1]||0,n=this._widths[this.relative(i)]+this.settings.margin,o.push(s+n*t);this._coordinates=o}},{filter:["width","items","settings"],run:function(){var t=this.settings.stagePadding,e=this._coordinates,i={width:Math.ceil(Math.abs(e[e.length-1]))+2*t,"padding-left":t||"","padding-right":t||""};this.$stage.css(i)}},{filter:["width","items","settings"],run:function(t){var e=this._coordinates.length,i=!this.settings.autoWidth,s=this.$stage.children();if(i&&t.items.merge)for(;e--;)t.css.width=this._widths[this.relative(e)],s.eq(e).css(t.css);else i&&(t.css.width=t.items.width,s.css(t.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(t){t.current=t.current?this.$stage.children().index(t.current):0,t.current=Math.max(this.minimum(),Math.min(this.maximum(),t.current)),this.reset(t.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var t,e,i,s,n=this.settings.rtl?1:-1,o=2*this.settings.stagePadding,r=this.coordinates(this.current())+o,a=r+this.width()*n,h=[];for(i=0,s=this._coordinates.length;i<s;i++)t=this._coordinates[i-1]||0,e=Math.abs(this._coordinates[i])+o*n,(this.op(t,"<=",r)&&this.op(t,">",a)||this.op(e,"<",r)&&this.op(e,">",a))&&h.push(i);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+h.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],n.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=t("<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap(t("<div/>",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},n.prototype.initializeItems=function(){var e=this.$element.find(".owl-item");if(e.length)return this._items=e.get().map(function(e){return t(e)}),this._mergers=this._items.map(function(){return 1}),void this.refresh();this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)},n.prototype.initialize=function(){var t,e,i;(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading"))&&(t=this.$element.find("img"),e=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:s,i=this.$element.children(e).width(),t.length&&i<=0&&this.preloadAutoWidthImages(t));this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},n.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},n.prototype.setup=function(){var e=this.viewport(),i=this.options.responsive,s=-1,n=null;i?(t.each(i,function(t){t<=e&&t>s&&(s=Number(t))}),"function"==typeof(n=t.extend({},this.options,i[s])).stagePadding&&(n.stagePadding=n.stagePadding()),delete n.responsive,n.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+s))):n=t.extend({},this.options),this.trigger("change",{property:{name:"settings",value:n}}),this._breakpoint=s,this.settings=n,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},n.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},n.prototype.prepare=function(e){var i=this.trigger("prepare",{content:e});return i.data||(i.data=t("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(e)),this.trigger("prepared",{content:i.data}),i.data},n.prototype.update=function(){for(var e=0,i=this._pipe.length,s=t.proxy(function(t){return this[t]},this._invalidated),n={};e<i;)(this._invalidated.all||t.grep(this._pipe[e].filter,s).length>0)&&this._pipe[e].run(n),e++;this._invalidated={},!this.is("valid")&&this.enter("valid")},n.prototype.width=function(t){switch(t=t||n.Width.Default){case n.Width.Inner:case n.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},n.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},n.prototype.onThrottledResize=function(){e.clearTimeout(this.resizeTimer),this.resizeTimer=e.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},n.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!!this.isVisible()&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))))},n.prototype.registerEventHandlers=function(){t.support.transition&&this.$stage.on(t.support.transition.end+".owl.core",t.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(e,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",t.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",t.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",t.proxy(this.onDragEnd,this)))},n.prototype.onDragStart=function(e){var s=null;3!==e.which&&(t.support.transform?s={x:(s=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","))[16===s.length?12:4],y:s[16===s.length?13:5]}:(s=this.$stage.position(),s={x:this.settings.rtl?s.left+this.$stage.width()-this.width()+this.settings.margin:s.left,y:s.top}),this.is("animating")&&(t.support.transform?this.animate(s.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===e.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=t(e.target),this._drag.stage.start=s,this._drag.stage.current=s,this._drag.pointer=this.pointer(e),t(i).on("mouseup.owl.core touchend.owl.core",t.proxy(this.onDragEnd,this)),t(i).one("mousemove.owl.core touchmove.owl.core",t.proxy(function(e){var s=this.difference(this._drag.pointer,this.pointer(e));t(i).on("mousemove.owl.core touchmove.owl.core",t.proxy(this.onDragMove,this)),Math.abs(s.x)<Math.abs(s.y)&&this.is("valid")||(e.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))},n.prototype.onDragMove=function(t){var e=null,i=null,s=null,n=this.difference(this._drag.pointer,this.pointer(t)),o=this.difference(this._drag.stage.start,n);this.is("dragging")&&(t.preventDefault(),this.settings.loop?(e=this.coordinates(this.minimum()),i=this.coordinates(this.maximum()+1)-e,o.x=((o.x-e)%i+i)%i+e):(e=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),i=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),s=this.settings.pullDrag?-1*n.x/5:0,o.x=Math.max(Math.min(o.x,e+s),i+s)),this._drag.stage.current=o,this.animate(o.x))},n.prototype.onDragEnd=function(e){var s=this.difference(this._drag.pointer,this.pointer(e)),n=this._drag.stage.current,o=s.x>0^this.settings.rtl?"left":"right";t(i).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==s.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(n.x,0!==s.x?o:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=o,(Math.abs(s.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},n.prototype.closest=function(e,i){var n=-1,o=this.width(),r=this.coordinates();return this.settings.freeDrag||t.each(r,t.proxy(function(t,a){return"left"===i&&e>a-30&&e<a+30?n=t:"right"===i&&e>a-o-30&&e<a-o+30?n=t+1:this.op(e,"<",a)&&this.op(e,">",r[t+1]!==s?r[t+1]:a-o)&&(n="left"===i?t+1:t),-1===n},this)),this.settings.loop||(this.op(e,">",r[this.minimum()])?n=e=this.minimum():this.op(e,"<",r[this.maximum()])&&(n=e=this.maximum())),n},n.prototype.animate=function(e){var i=this.speed()>0;if(this.is("animating")&&this.onTransitionEnd(),i){this.enter("animating");e=this.trigger("translate",{property:{name:"coordinate",value:e}}).property.value}t.support.transform3d&&t.support.transition?this.$stage.css({transform:"translate3d("+e+"px,0px,0px)",transition:"all "+this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}):i?this.$stage.animate({left:e+"px"},this.speed(),this.settings.fallbackEasing,t.proxy(this.onTransitionEnd,this)):this.$stage.css({left:e+"px"})},n.prototype.is=function(t){return this._states.current[t]&&this._states.current[t]>0},n.prototype.current=function(t){if(t===s)return this._current;if(0===this._items.length)return s;if(t=this.normalize(t),this._current!==t){var e=this.trigger("change",{property:{name:"position",value:t}});e.data!==s&&(t=this.normalize(e.data)),this._current=t,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},n.prototype.invalidate=function(e){return"string"===t.type(e)&&(this._invalidated[e]=!0,this.is("valid")&&this.leave("valid")),t.map(this._invalidated,function(t,e){return e})},n.prototype.reset=function(t){(t=this.normalize(t))!==s&&(this._speed=0,this._current=t,this.suppress(["translate","translated"]),this.animate(this.coordinates(t)),this.release(["translate","translated"]))},n.prototype.normalize=function(t,e){var i=this._items.length,n=e?0:this._clones.length;return!this.isNumeric(t)||i<1?t=s:(t<0||t>=i+n)&&(t=((t-n/2)%i+i)%i+n/2),t},n.prototype.relative=function(t){return t-=this._clones.length/2,this.normalize(t,!0)},n.prototype.maximum=function(t){var e,i,s,n=this.settings,o=this._coordinates.length;if(n.loop)o=this._clones.length/2+this._items.length-1;else if(n.autoWidth||n.merge){if(e=this._items.length)for(i=this._items[--e].width(),s=this.$element.width();e--&&!((i+=this._items[e].width()+this.settings.margin)>s););o=e+1}else o=n.center?this._items.length-1:this._items.length-n.items;return t&&(o-=this._clones.length/2),Math.max(o,0)},n.prototype.minimum=function(t){return t?0:this._clones.length/2},n.prototype.items=function(t){return t===s?this._items.slice():(t=this.normalize(t,!0),this._items[t])},n.prototype.mergers=function(t){return t===s?this._mergers.slice():(t=this.normalize(t,!0),this._mergers[t])},n.prototype.clones=function(e){var i=this._clones.length/2,n=i+this._items.length,o=function(t){return t%2==0?n+t/2:i-(t+1)/2};return e===s?t.map(this._clones,function(t,e){return o(e)}):t.map(this._clones,function(t,i){return t===e?o(i):null})},n.prototype.speed=function(t){return t!==s&&(this._speed=t),this._speed},n.prototype.coordinates=function(e){var i,n=1,o=e-1;return e===s?t.map(this._coordinates,t.proxy(function(t,e){return this.coordinates(e)},this)):(this.settings.center?(this.settings.rtl&&(n=-1,o=e+1),i=this._coordinates[e],i+=(this.width()-i+(this._coordinates[o]||0))/2*n):i=this._coordinates[o]||0,i=Math.ceil(i))},n.prototype.duration=function(t,e,i){return 0===i?0:Math.min(Math.max(Math.abs(e-t),1),6)*Math.abs(i||this.settings.smartSpeed)},n.prototype.to=function(t,e){var i=this.current(),s=null,n=t-this.relative(i),o=(n>0)-(n<0),r=this._items.length,a=this.minimum(),h=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(n)>r/2&&(n+=-1*o*r),(s=(((t=i+n)-a)%r+r)%r+a)!==t&&s-n<=h&&s-n>0&&(i=s-n,t=s,this.reset(i))):t=this.settings.rewind?(t%(h+=1)+h)%h:Math.max(a,Math.min(h,t)),this.speed(this.duration(i,t,e)),this.current(t),this.isVisible()&&this.update()},n.prototype.next=function(t){t=t||!1,this.to(this.relative(this.current())+1,t)},n.prototype.prev=function(t){t=t||!1,this.to(this.relative(this.current())-1,t)},n.prototype.onTransitionEnd=function(t){if(t!==s&&(t.stopPropagation(),(t.target||t.srcElement||t.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},n.prototype.viewport=function(){var s;return this.options.responsiveBaseElement!==e?s=t(this.options.responsiveBaseElement).width():e.innerWidth?s=e.innerWidth:i.documentElement&&i.documentElement.clientWidth?s=i.documentElement.clientWidth:console.warn("Can not detect viewport width."),s},n.prototype.replace=function(e){this.$stage.empty(),this._items=[],e&&(e=e instanceof jQuery?e:t(e)),this.settings.nestedItemSelector&&(e=e.find("."+this.settings.nestedItemSelector)),e.filter(function(){return 1===this.nodeType}).each(t.proxy(function(t,e){e=this.prepare(e),this.$stage.append(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},n.prototype.add=function(e,i){var n=this.relative(this._current);i=i===s?this._items.length:this.normalize(i,!0),e=e instanceof jQuery?e:t(e),this.trigger("add",{content:e,position:i}),e=this.prepare(e),0===this._items.length||i===this._items.length?(0===this._items.length&&this.$stage.append(e),0!==this._items.length&&this._items[i-1].after(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[i].before(e),this._items.splice(i,0,e),this._mergers.splice(i,0,1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[n]&&this.reset(this._items[n].index()),this.invalidate("items"),this.trigger("added",{content:e,position:i})},n.prototype.remove=function(t){(t=this.normalize(t,!0))!==s&&(this.trigger("remove",{content:this._items[t],position:t}),this._items[t].remove(),this._items.splice(t,1),this._mergers.splice(t,1),this.invalidate("items"),this.trigger("removed",{content:null,position:t}))},n.prototype.preloadAutoWidthImages=function(e){e.each(t.proxy(function(e,i){this.enter("pre-loading"),i=t(i),t(new Image).one("load",t.proxy(function(t){i.attr("src",t.target.src),i.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",i.attr("src")||i.attr("data-src")||i.attr("data-src-retina"))},this))},n.prototype.destroy=function(){for(var s in this.$element.off(".owl.core"),this.$stage.off(".owl.core"),t(i).off(".owl.core"),!1!==this.settings.responsive&&(e.clearTimeout(this.resizeTimer),this.off(e,"resize",this._handlers.onThrottledResize)),this._plugins)this._plugins[s].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.remove(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},n.prototype.op=function(t,e,i){var s=this.settings.rtl;switch(e){case"<":return s?t>i:t<i;case">":return s?t<i:t>i;case">=":return s?t<=i:t>=i;case"<=":return s?t>=i:t<=i}},n.prototype.on=function(t,e,i,s){t.addEventListener?t.addEventListener(e,i,s):t.attachEvent&&t.attachEvent("on"+e,i)},n.prototype.off=function(t,e,i,s){t.removeEventListener?t.removeEventListener(e,i,s):t.detachEvent&&t.detachEvent("on"+e,i)},n.prototype.trigger=function(e,i,s,o,r){var a={item:{count:this._items.length,index:this.current()}},h=t.camelCase(t.grep(["on",e,s],function(t){return t}).join("-").toLowerCase()),l=t.Event([e,"owl",s||"carousel"].join(".").toLowerCase(),t.extend({relatedTarget:this},a,i));return this._supress[e]||(t.each(this._plugins,function(t,e){e.onTrigger&&e.onTrigger(l)}),this.register({type:n.Type.Event,name:e}),this.$element.trigger(l),this.settings&&"function"==typeof this.settings[h]&&this.settings[h].call(this,l)),l},n.prototype.enter=function(e){t.each([e].concat(this._states.tags[e]||[]),t.proxy(function(t,e){this._states.current[e]===s&&(this._states.current[e]=0),this._states.current[e]++},this))},n.prototype.leave=function(e){t.each([e].concat(this._states.tags[e]||[]),t.proxy(function(t,e){this._states.current[e]--},this))},n.prototype.register=function(e){if(e.type===n.Type.Event){if(t.event.special[e.name]||(t.event.special[e.name]={}),!t.event.special[e.name].owl){var i=t.event.special[e.name]._default;t.event.special[e.name]._default=function(t){return!i||!i.apply||t.namespace&&-1!==t.namespace.indexOf("owl")?t.namespace&&t.namespace.indexOf("owl")>-1:i.apply(this,arguments)},t.event.special[e.name].owl=!0}}else e.type===n.Type.State&&(this._states.tags[e.name]?this._states.tags[e.name]=this._states.tags[e.name].concat(e.tags):this._states.tags[e.name]=e.tags,this._states.tags[e.name]=t.grep(this._states.tags[e.name],t.proxy(function(i,s){return t.inArray(i,this._states.tags[e.name])===s},this)))},n.prototype.suppress=function(e){t.each(e,t.proxy(function(t,e){this._supress[e]=!0},this))},n.prototype.release=function(e){t.each(e,t.proxy(function(t,e){delete this._supress[e]},this))},n.prototype.pointer=function(t){var i={x:null,y:null};return(t=(t=t.originalEvent||t||e.event).touches&&t.touches.length?t.touches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t).pageX?(i.x=t.pageX,i.y=t.pageY):(i.x=t.clientX,i.y=t.clientY),i},n.prototype.isNumeric=function(t){return!isNaN(parseFloat(t))},n.prototype.difference=function(t,e){return{x:t.x-e.x,y:t.y-e.y}},t.fn.owlCarousel=function(e){var i=Array.prototype.slice.call(arguments,1);return this.each(function(){var s=t(this),o=s.data("owl.carousel");o||(o=new n(this,"object"==typeof e&&e),s.data("owl.carousel",o),t.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(e,i){o.register({type:n.Type.Event,name:i}),o.$element.on(i+".owl.carousel.core",t.proxy(function(t){t.namespace&&t.relatedTarget!==this&&(this.suppress([i]),o[i].apply(this,[].slice.call(arguments,1)),this.release([i]))},o))})),"string"==typeof e&&"_"!==e.charAt(0)&&o[e].apply(o,i)})},t.fn.owlCarousel.Constructor=n}(window.Zepto||window.jQuery,window,document),function(t,e){var i=function(e){this._core=e,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=t.extend({},i.Defaults,this._core.options),this._core.$element.on(this._handlers)};i.Defaults={autoRefresh:!0,autoRefreshInterval:500},i.prototype.watch=function(){this._interval||(this._visible=this._core.isVisible(),this._interval=e.setInterval(t.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},i.prototype.refresh=function(){this._core.isVisible()!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},i.prototype.destroy=function(){var t,i;for(t in e.clearInterval(this._interval),this._handlers)this._core.$element.off(t,this._handlers[t]);for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoRefresh=i}(window.Zepto||window.jQuery,window,document),function(t,e){var i=function(e){this._core=e,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":t.proxy(function(e){if(e.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(e.property&&"position"==e.property.name||"initialized"==e.type)){var i=this._core.settings,s=i.center&&Math.ceil(i.items/2)||i.items,n=i.center&&-1*s||0,o=(e.property&&undefined!==e.property.value?e.property.value:this._core.current())+n,r=this._core.clones().length,a=t.proxy(function(t,e){this.load(e)},this);for(i.lazyLoadEager>0&&(s+=i.lazyLoadEager,i.loop&&(o-=i.lazyLoadEager,s++));n++<s;)this.load(r/2+this._core.relative(o)),r&&t.each(this._core.clones(this._core.relative(o)),a),o++}},this)},this._core.options=t.extend({},i.Defaults,this._core.options),this._core.$element.on(this._handlers)};i.Defaults={lazyLoad:!1,lazyLoadEager:0},i.prototype.load=function(i){var s=this._core.$stage.children().eq(i),n=s&&s.find(".owl-lazy");!n||t.inArray(s.get(0),this._loaded)>-1||(n.each(t.proxy(function(i,s){var n,o=t(s),r=e.devicePixelRatio>1&&o.attr("data-src-retina")||o.attr("data-src")||o.attr("data-srcset");this._core.trigger("load",{element:o,url:r},"lazy"),o.is("img")?o.one("load.owl.lazy",t.proxy(function(){o.css("opacity",1),this._core.trigger("loaded",{element:o,url:r},"lazy")},this)).attr("src",r):o.is("source")?o.one("load.owl.lazy",t.proxy(function(){this._core.trigger("loaded",{element:o,url:r},"lazy")},this)).attr("srcset",r):((n=new Image).onload=t.proxy(function(){o.css({"background-image":'url("'+r+'")',opacity:"1"}),this._core.trigger("loaded",{element:o,url:r},"lazy")},this),n.src=r)},this)),this._loaded.push(s.get(0)))},i.prototype.destroy=function(){var t,e;for(t in this.handlers)this._core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Lazy=i}(window.Zepto||window.jQuery,window,document),function(t,e){var i=function(s){this._core=s,this._previousHeight=null,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&"position"===t.property.name&&this.update()},this),"loaded.owl.lazy":t.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&t.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=t.extend({},i.Defaults,this._core.options),this._core.$element.on(this._handlers),this._intervalId=null;var n=this;t(e).on("load",function(){n._core.settings.autoHeight&&n.update()}),t(e).resize(function(){n._core.settings.autoHeight&&(null!=n._intervalId&&clearTimeout(n._intervalId),n._intervalId=setTimeout(function(){n.update()},250))})};i.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},i.prototype.update=function(){var e=this._core._current,i=e+this._core.settings.items,s=this._core.settings.lazyLoad,n=this._core.$stage.children().toArray().slice(e,i),o=[],r=0;t.each(n,function(e,i){o.push(t(i).height())}),(r=Math.max.apply(null,o))<=1&&s&&this._previousHeight&&(r=this._previousHeight),this._previousHeight=r,this._core.$stage.parent().height(r).addClass(this._core.settings.autoHeightClass)},i.prototype.destroy=function(){var t,e;for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoHeight=i}(window.Zepto||window.jQuery,window,document),function(t,e,i){var s=function(e){this._core=e,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":t.proxy(function(t){t.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.video&&this.isInFullScreen()&&t.preventDefault()},this),"refreshed.owl.carousel":t.proxy(function(t){t.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":t.proxy(function(t){t.namespace&&"position"===t.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":t.proxy(function(e){if(e.namespace){var i=t(e.content).find(".owl-video");i.length&&(i.css("display","none"),this.fetch(i,t(e.content)))}},this)},this._core.options=t.extend({},s.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",t.proxy(function(t){this.play(t)},this))};s.Defaults={video:!1,videoHeight:!1,videoWidth:!1},s.prototype.fetch=function(t,e){var i=t.attr("data-vimeo-id")?"vimeo":t.attr("data-vzaar-id")?"vzaar":"youtube",s=t.attr("data-vimeo-id")||t.attr("data-youtube-id")||t.attr("data-vzaar-id"),n=t.attr("data-width")||this._core.settings.videoWidth,o=t.attr("data-height")||this._core.settings.videoHeight,r=t.attr("href");if(!r)throw new Error("Missing video URL.");if((s=r.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/))[3].indexOf("youtu")>-1)i="youtube";else if(s[3].indexOf("vimeo")>-1)i="vimeo";else{if(!(s[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");i="vzaar"}s=s[6],this._videos[r]={type:i,id:s,width:n,height:o},e.attr("data-video",r),this.thumbnail(t,this._videos[r])},s.prototype.thumbnail=function(e,i){var s,n,o=i.width&&i.height?"width:"+i.width+"px;height:"+i.height+"px;":"",r=e.find("img"),a="src",h="",l=this._core.settings,c=function(i){s=l.lazyLoad?t("<div/>",{class:"owl-video-tn "+h,srcType:i}):t("<div/>",{class:"owl-video-tn",style:"opacity:1;background-image:url("+i+")"}),e.after(s),e.after('<div class="owl-video-play-icon"></div>')};if(e.wrap(t("<div/>",{class:"owl-video-wrapper",style:o})),this._core.settings.lazyLoad&&(a="data-src",h="owl-lazy"),r.length)return c(r.attr(a)),r.remove(),!1;"youtube"===i.type?(n="//img.youtube.com/vi/"+i.id+"/hqdefault.jpg",c(n)):"vimeo"===i.type?t.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){n=t[0].thumbnail_large,c(n)}}):"vzaar"===i.type&&t.ajax({type:"GET",url:"//vzaar.com/api/videos/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){n=t.framegrab_url,c(n)}})},s.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,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},s.prototype.play=function(e){var i,s=t(e.target).closest("."+this._core.settings.itemClass),n=this._videos[s.attr("data-video")],o=n.width||"100%",r=n.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),s=this._core.items(this._core.relative(s.index())),this._core.reset(s.index()),(i=t('<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>')).attr("height",r),i.attr("width",o),"youtube"===n.type?i.attr("src","//www.youtube.com/embed/"+n.id+"?autoplay=1&rel=0&v="+n.id):"vimeo"===n.type?i.attr("src","//player.vimeo.com/video/"+n.id+"?autoplay=1"):"vzaar"===n.type&&i.attr("src","//view.vzaar.com/"+n.id+"/player?autoplay=true"),t(i).wrap('<div class="owl-video-frame" />').insertAfter(s.find(".owl-video")),this._playing=s.addClass("owl-video-playing"))},s.prototype.isInFullScreen=function(){var e=i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement;return e&&t(e).parent().hasClass("owl-video-frame")},s.prototype.destroy=function(){var t,e;for(t in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Video=s}(window.Zepto||window.jQuery,window,document),function(t,e,i,s){var n=function(e){this.core=e,this.core.options=t.extend({},n.Defaults,this.core.options),this.swapping=!0,this.previous=s,this.next=s,this.handlers={"change.owl.carousel":t.proxy(function(t){t.namespace&&"position"==t.property.name&&(this.previous=this.core.current(),this.next=t.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":t.proxy(function(t){t.namespace&&(this.swapping="translated"==t.type)},this),"translate.owl.carousel":t.proxy(function(t){t.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};n.Defaults={animateOut:!1,animateIn:!1},n.prototype.swap=function(){if(1===this.core.settings.items&&t.support.animation&&t.support.transition){this.core.speed(0);var e,i=t.proxy(this.clear,this),s=this.core.$stage.children().eq(this.previous),n=this.core.$stage.children().eq(this.next),o=this.core.settings.animateIn,r=this.core.settings.animateOut;this.core.current()!==this.previous&&(r&&(e=this.core.coordinates(this.previous)-this.core.coordinates(this.next),s.one(t.support.animation.end,i).css({left:e+"px"}).addClass("animated owl-animated-out").addClass(r)),o&&n.one(t.support.animation.end,i).addClass("animated owl-animated-in").addClass(o))}},n.prototype.clear=function(e){t(e.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},n.prototype.destroy=function(){var t,e;for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Animate=n}(window.Zepto||window.jQuery,window,document),function(t,e,i){var s=function(e){this._core=e,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":t.proxy(function(t){t.namespace&&"settings"===t.property.name?this._core.settings.autoplay?this.play():this.stop():t.namespace&&"position"===t.property.name&&this._paused&&(this._time=0)},this),"initialized.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":t.proxy(function(t,e,i){t.namespace&&this.play(e,i)},this),"stop.owl.autoplay":t.proxy(function(t){t.namespace&&this.stop()},this),"mouseover.owl.autoplay":t.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":t.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":t.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":t.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=t.extend({},s.Defaults,this._core.options)};s.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},s.prototype._next=function(s){this._call=e.setTimeout(t.proxy(this._next,this,s),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||i.hidden||this._core.next(s||this._core.settings.autoplaySpeed)},s.prototype.read=function(){return(new Date).getTime()-this._time},s.prototype.play=function(i,s){var n;this._core.is("rotating")||this._core.enter("rotating"),i=i||this._core.settings.autoplayTimeout,n=Math.min(this._time%(this._timeout||i),i),this._paused?(this._time=this.read(),this._paused=!1):e.clearTimeout(this._call),this._time+=this.read()%i-n,this._timeout=i,this._call=e.setTimeout(t.proxy(this._next,this,s),i-n)},s.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,e.clearTimeout(this._call),this._core.leave("rotating"))},s.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,e.clearTimeout(this._call))},s.prototype.destroy=function(){var t,e;for(t in this.stop(),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.autoplay=s}(window.Zepto||window.jQuery,window,document),function(t){"use strict";var e=function(i){this._core=i,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":t.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+t(e.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,0,this._templates.pop())},this),"remove.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,1)},this),"changed.owl.carousel":t.proxy(function(t){t.namespace&&"position"==t.property.name&&this.draw()},this),"initialized.owl.carousel":t.proxy(function(t){t.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":t.proxy(function(t){t.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=t.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers)};e.Defaults={nav:!1,navText:['<span aria-label="Previous">&#x2039;</span>','<span aria-label="Next">&#x203a;</span>'],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},e.prototype.initialize=function(){var e,i=this._core.settings;for(e in this._controls.$relative=(i.navContainer?t(i.navContainer):t("<div>").addClass(i.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=t("<"+i.navElement+">").addClass(i.navClass[0]).html(i.navText[0]).prependTo(this._controls.$relative).on("click",t.proxy(function(t){this.prev(i.navSpeed)},this)),this._controls.$next=t("<"+i.navElement+">").addClass(i.navClass[1]).html(i.navText[1]).appendTo(this._controls.$relative).on("click",t.proxy(function(t){this.next(i.navSpeed)},this)),i.dotsData||(this._templates=[t('<button role="button">').addClass(i.dotClass).append(t("<span>")).prop("outerHTML")]),this._controls.$absolute=(i.dotsContainer?t(i.dotsContainer):t("<div>").addClass(i.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","button",t.proxy(function(e){var s=t(e.target).parent().is(this._controls.$absolute)?t(e.target).index():t(e.target).parent().index();e.preventDefault(),this.to(s,i.dotsSpeed)},this)),this._overrides)this._core[e]=t.proxy(this[e],this)},e.prototype.destroy=function(){var t,e,i,s,n;for(t in n=this._core.settings,this._handlers)this.$element.off(t,this._handlers[t]);for(e in this._controls)"$relative"===e&&n.navContainer?this._controls[e].html(""):this._controls[e].remove();for(s in this.overides)this._core[s]=this._overrides[s];for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},e.prototype.update=function(){var t,e,i=this._core.clones().length/2,s=i+this._core.items().length,n=this._core.maximum(!0),o=this._core.settings,r=o.center||o.autoWidth||o.dotsData?1:o.dotsEach||o.items;if("page"!==o.slideBy&&(o.slideBy=Math.min(o.slideBy,o.items)),o.dots||"page"==o.slideBy)for(this._pages=[],t=i,e=0,0;t<s;t++){if(e>=r||0===e){if(this._pages.push({start:Math.min(n,t-i),end:t-i+r-1}),Math.min(n,t-i)===n)break;e=0}e+=this._core.mergers(this._core.relative(t))}},e.prototype.draw=function(){var e,i=this._core.settings,s=this._core.items().length<=i.items,n=this._core.relative(this._core.current()),o=i.loop||i.rewind;this._controls.$relative.toggleClass("disabled",!i.nav||s),i.nav&&(this._controls.$previous.toggleClass("disabled",!o&&n<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!o&&n>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!i.dots||s),i.dots&&(e=this._pages.length-this._controls.$absolute.children().length,i.dotsData&&0!==e?this._controls.$absolute.html(this._templates.join("")):e>0?this._controls.$absolute.append(new Array(e+1).join(this._templates[0])):e<0&&this._controls.$absolute.children().slice(e).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(t.inArray(this.current(),this._pages)).addClass("active"))},e.prototype.onTrigger=function(e){var i=this._core.settings;e.page={index:t.inArray(this.current(),this._pages),count:this._pages.length,size:i&&(i.center||i.autoWidth||i.dotsData?1:i.dotsEach||i.items)}},e.prototype.current=function(){var e=this._core.relative(this._core.current());return t.grep(this._pages,t.proxy(function(t,i){return t.start<=e&&t.end>=e},this)).pop()},e.prototype.getPosition=function(e){var i,s,n=this._core.settings;return"page"==n.slideBy?(i=t.inArray(this.current(),this._pages),s=this._pages.length,e?++i:--i,i=this._pages[(i%s+s)%s].start):(i=this._core.relative(this._core.current()),s=this._core.items().length,e?i+=n.slideBy:i-=n.slideBy),i},e.prototype.next=function(e){t.proxy(this._overrides.to,this._core)(this.getPosition(!0),e)},e.prototype.prev=function(e){t.proxy(this._overrides.to,this._core)(this.getPosition(!1),e)},e.prototype.to=function(e,i,s){var n;!s&&this._pages.length?(n=this._pages.length,t.proxy(this._overrides.to,this._core)(this._pages[(e%n+n)%n].start,i)):t.proxy(this._overrides.to,this._core)(e,i)},t.fn.owlCarousel.Constructor.Plugins.Navigation=e}(window.Zepto||window.jQuery,window,document),function(t,e){"use strict";var i=function(s){this._core=s,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":t.proxy(function(i){i.namespace&&"URLHash"===this._core.settings.startPosition&&t(e).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":t.proxy(function(e){if(e.namespace){var i=t(e.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!i)return;this._hashes[i]=e.content}},this),"changed.owl.carousel":t.proxy(function(i){if(i.namespace&&"position"===i.property.name){var s=this._core.items(this._core.relative(this._core.current())),n=t.map(this._hashes,function(t,e){return t===s?e:null}).join();if(!n||e.location.hash.slice(1)===n)return;e.location.hash=n}},this)},this._core.options=t.extend({},i.Defaults,this._core.options),this.$element.on(this._handlers),t(e).on("hashchange.owl.navigation",t.proxy(function(t){var i=e.location.hash.substring(1),s=this._core.$stage.children(),n=this._hashes[i]&&s.index(this._hashes[i]);undefined!==n&&n!==this._core.current()&&this._core.to(this._core.relative(n),!1,!0)},this))};i.Defaults={URLhashListener:!1},i.prototype.destroy=function(){var i,s;for(i in t(e).off("hashchange.owl.navigation"),this._handlers)this._core.$element.off(i,this._handlers[i]);for(s in Object.getOwnPropertyNames(this))"function"!=typeof this[s]&&(this[s]=null)},t.fn.owlCarousel.Constructor.Plugins.Hash=i}(window.Zepto||window.jQuery,window,document),function(t){var e=t("<support>").get(0).style,i="Webkit Moz O ms".split(" "),s={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},n=function(){return!!a("transform")},o=function(){return!!a("perspective")},r=function(){return!!a("animation")};function a(s,n){var o=!1,r=s.charAt(0).toUpperCase()+s.slice(1);return t.each((s+" "+i.join(r+" ")+r).split(" "),function(t,i){if(undefined!==e[i])return o=!n||i,!1}),o}function h(t){return a(t,!0)}(function(){return!!a("transition")})()&&(t.support.transition=new String(h("transition")),t.support.transition.end=s.transition.end[t.support.transition]),r()&&(t.support.animation=new String(h("animation")),t.support.animation.end=s.animation.end[t.support.animation]),n()&&(t.support.transform=new String(h("transform")),t.support.transform3d=o())}(window.Zepto||window.jQuery,window,document);
!function(t,e){"function"==typeof define&&define.amd?define(["jquery"],function(a){return t.Tablesaw=e(a,t)}):"object"==typeof exports?module.exports=e("document"in t?require("jquery"):require("jquery")(t),t):t.Tablesaw=e(jQuery,t)}("undefined"!=typeof window?window:this,function(t,e){"use strict";var a=e.document,s=/complete|loaded/.test(a.readyState);a.addEventListener("DOMContentLoaded",function(){s=!0});var n,i,o,l,r,c,h,d,u,f,p,b,g,w={i18n:{modeStack:"Stack",modeSwipe:"Swipe",modeToggle:"Toggle",modeSwitchColumnsAbbreviated:"Cols",modeSwitchColumns:"Columns",columnToggleButton:"Columns",columnToggleError:"No eligible columns.",sort:"Sort",swipePreviousColumn:"Previous column",swipeNextColumn:"Next column"},mustard:"head"in a&&(!e.blackberry||e.WebKitPoint)&&!e.operamini,$:t,_init:function(t){w.$(t||a).trigger("enhance.tablesaw")},init:function(t){(s=s||/complete|loaded/.test(a.readyState))?w._init(t):"addEventListener"in a&&a.addEventListener("DOMContentLoaded",function(){w._init(t)})}};return t(a).on("enhance.tablesaw",function(){"undefined"!=typeof TablesawConfig&&TablesawConfig.i18n&&(w.i18n=t.extend(w.i18n,TablesawConfig.i18n||{})),w.i18n.modes=[w.i18n.modeStack,w.i18n.modeSwipe,w.i18n.modeToggle]}),w.mustard&&t(a.documentElement).addClass("tablesaw-enhanced"),function(){var s="tablesaw",n="tablesaw-bar",i={create:"tablesawcreate",destroy:"tablesawdestroy",refresh:"tablesawrefresh",resize:"tablesawresize"},o={};w.events=i;var l=function(e){if(!e)throw new Error("Tablesaw requires an element.");this.table=e,this.$table=t(e),this.$thead=this.$table.children().filter("thead").eq(0),this.$tbody=this.$table.children().filter("tbody"),this.mode=this.$table.attr("data-tablesaw-mode")||"stack",this.$toolbar=null,this.attributes={subrow:"data-tablesaw-subrow",ignorerow:"data-tablesaw-ignorerow"},this.init()};l.prototype.init=function(){if(!this.$thead.length)throw new Error("tablesaw: a <thead> is required, but none was found.");if(!this.$thead.find("th").length)throw new Error("tablesaw: no header cells found. Are you using <th> inside of <thead>?");this.$table.attr("id")||this.$table.attr("id",s+"-"+Math.round(1e4*Math.random())),this.createToolbar(),this._initCells(),this.$table.data(s,this),this.$table.trigger(i.create,[this])},l.prototype.getConfig=function(e){var a=t.extend(o,e||{});return t.extend(a,"undefined"!=typeof TablesawConfig?TablesawConfig:{})},l.prototype._getPrimaryHeaderRow=function(){return this._getHeaderRows().eq(0)},l.prototype._getHeaderRows=function(){return this.$thead.children().filter("tr").filter(function(){return!t(this).is("[data-tablesaw-ignorerow]")})},l.prototype._getRowIndex=function(t){return t.prevAll().length},l.prototype._getHeaderRowIndeces=function(){var e=this,a=[];return this._getHeaderRows().each(function(){a.push(e._getRowIndex(t(this)))}),a},l.prototype._getPrimaryHeaderCells=function(t){return(t||this._getPrimaryHeaderRow()).find("th")},l.prototype._$getCells=function(e){var a=this;return t(e).add(e.cells).filter(function(){var e=t(this),s=e.parent(),n=e.is("[colspan]");return!(s.is("["+a.attributes.subrow+"]")||s.is("["+a.attributes.ignorerow+"]")&&n)})},l.prototype._getVisibleColspan=function(){var e=0;return this._getPrimaryHeaderCells().each(function(){var a=t(this);"none"!==a.css("display")&&(e+=parseInt(a.attr("colspan"),10)||1)}),e},l.prototype.getColspanForCell=function(e){var a=this._getVisibleColspan(),s=0;return e.closest("tr").data("tablesaw-rowspanned")&&s++,e.siblings().each(function(){var e=t(this),a=parseInt(e.attr("colspan"),10)||1;"none"!==e.css("display")&&(s+=a)}),a-s},l.prototype.isCellInColumn=function(e,a){return t(e).add(e.cells).filter(function(){return this===a}).length},l.prototype.updateColspanCells=function(e,a,s){var n=this,i=n._getPrimaryHeaderRow();this.$table.find("[rowspan][data-tablesaw-priority]").each(function(){var e=t(this);if("persist"===e.attr("data-tablesaw-priority")){var a=e.closest("tr"),s=parseInt(e.attr("rowspan"),10);s>1&&((a=a.next()).data("tablesaw-rowspanned",!0),s--)}}),this.$table.find("[colspan],[data-tablesaw-maxcolspan]").filter(function(){return t(this).closest("tr")[0]!==i[0]}).each(function(){var i=t(this);if(void 0===s||n.isCellInColumn(a,this)){var o=n.getColspanForCell(i);e&&void 0!==s&&i[0===o?"addClass":"removeClass"](e);var l=parseInt(i.attr("data-tablesaw-maxcolspan"),10);l?o>l&&(o=l):i.attr("data-tablesaw-maxcolspan",i.attr("colspan")),i.attr("colspan",o)}})},l.prototype._findPrimaryHeadersForCell=function(t){for(var e=this._getPrimaryHeaderRow(),a=this._getRowIndex(e),s=[],n=0;n<this.headerMapping.length;n++)if(n!==a)for(var i=0;i<this.headerMapping[n].length;i++)this.headerMapping[n][i]===t&&s.push(this.headerMapping[a][i]);return s},l.prototype.getRows=function(){var e=this;return this.$table.find("tr").filter(function(){return t(this).closest("table").is(e.$table)})},l.prototype.getBodyRows=function(e){return(e?t(e):this.$tbody).children().filter("tr")},l.prototype.getHeaderCellIndex=function(t){for(var e=this.headerMapping[0],a=0;a<e.length;a++)if(e[a]===t)return a;return-1},l.prototype._initCells=function(){this.$table.find("[data-tablesaw-maxcolspan]").each(function(){var e=t(this);e.attr("colspan",e.attr("data-tablesaw-maxcolspan"))});var e=this.getRows(),a=[];e.each(function(t){a[t]=[]}),e.each(function(e){var s=0;t(this).children().each(function(){for(var t=parseInt(this.getAttribute("data-tablesaw-maxcolspan")||this.getAttribute("colspan"),10),n=parseInt(this.getAttribute("rowspan"),10);a[e][s];)s++;if(a[e][s]=this,t)for(var i=0;i<t-1;i++)s++,a[e][s]=this;if(n)for(var o=1;o<n;o++)a[e+o][s]=this;s++})});for(var s=this._getHeaderRowIndeces(),n=0;n<a[0].length;n++)for(var i=0,o=s.length;i<o;i++){var l,r=a[s[i]][n],c=s[i];for(r.cells||(r.cells=[]);c<a.length;)r!==(l=a[c][n])&&r.cells.push(l),c++}this.headerMapping=a},l.prototype.refresh=function(){this._initCells(),this.$table.trigger(i.refresh,[this])},l.prototype._getToolbarAnchor=function(){var t=this.$table.parent();return t.is(".tablesaw-overflow")?t:this.$table},l.prototype._getToolbar=function(t){return t||(t=this._getToolbarAnchor()),t.prev().filter("."+n)},l.prototype.createToolbar=function(){var e=this._getToolbarAnchor(),a=this._getToolbar(e);a.length||(a=t("<div>").addClass(n).insertBefore(e)),this.$toolbar=a,this.mode&&this.$toolbar.addClass("tablesaw-mode-"+this.mode)},l.prototype.destroy=function(){this._getToolbar().each(function(){this.className=this.className.replace(/\btablesaw-mode\-\w*\b/gi,"")});var n=this.$table.attr("id");t(a).off("."+n),t(e).off("."+n),this.$table.trigger(i.destroy,[this]),this.$table.removeData(s)},t.fn[s]=function(){return this.each(function(){t(this).data(s)||new l(this)})};var r=t(a);r.on("enhance.tablesaw",function(e){if(w.mustard){var a=t(e.target);a.parent().length&&(a=a.parent()),a.find("table").filter("[data-tablesaw],[data-tablesaw-mode],[data-tablesaw-sortable]")[s]()}});var c,h,d=!1;r.on("scroll.tablesaw",function(){d=!0,e.clearTimeout(c),c=e.setTimeout(function(){d=!1},300)}),t(e).on("resize",function(){d||(e.clearTimeout(h),h=e.setTimeout(function(){r.trigger(i.resize)},150))}),w.Table=l}(),n="tablesaw-stack",i="tablesaw-cell-label",o="tablesaw-cell-content",l="tablesaw-stack",r="data-tablesaw-no-labels",c="data-tablesaw-hide-empty",(h=function(e,a){this.tablesaw=a,this.$table=t(e),this.labelless=this.$table.is("["+r+"]"),this.hideempty=this.$table.is("["+c+"]"),this.$table.data(l,this)}).prototype.init=function(){if(this.$table.addClass(n),!this.labelless){var e=this;this.$table.find("th, td").filter(function(){return!t(this).closest("thead").length}).filter(function(){return!(t(this).is("["+r+"]")||t(this).closest("tr").is("["+r+"]")||e.hideempty&&!t(this).html())}).each(function(){var s=t(a.createElement("b")).addClass(i),n=t(this);t(e.tablesaw._findPrimaryHeadersForCell(this)).each(function(e){if(this){var n=t(this.cloneNode(!0)),i=n.find(".tablesaw-sortable-btn");n.find(".tablesaw-sortable-arrow").remove();var o=n.find("[data-tablesaw-checkall]");if(o.closest("label").remove(),o.length)s=t([]);else{e>0&&s.append(a.createTextNode(", "));for(var l,r=i.length?i[0]:n[0];l=r.firstChild;)s[0].appendChild(l)}}}),s.length&&!n.find("."+o).length&&n.wrapInner("<span class='"+o+"'></span>");var l=n.find("."+i);l.length?l.replaceWith(s):(n.prepend(a.createTextNode(" ")),n.prepend(s))})}},h.prototype.destroy=function(){this.$table.removeClass(n),this.$table.find("."+i).remove(),this.$table.find("."+o).each(function(){t(this).replaceWith(t(this.childNodes))})},t(a).on(w.events.create,function(t,e){"stack"===e.mode&&new h(e.table,e).init()}).on(w.events.refresh,function(e,a){"stack"===a.mode&&t(a.table).data(l).init()}).on(w.events.destroy,function(e,a){"stack"===a.mode&&t(a.table).data(l).destroy()}),w.Stack=h,d="tablesawbtn",u={_create:function(){return t(this).each(function(){t(this).trigger("beforecreate."+d)[d]("_init").trigger("create."+d)})},_init:function(){var e=t(this),a=this.getElementsByTagName("select")[0];return a&&t(this).addClass("btn-select tablesaw-btn-select")[d]("_select",a),e},_select:function(e){var s=function(e,s){var n,i,o=t(s).find("option"),l=a.createElement("span"),r=!1;if(l.setAttribute("aria-hidden","true"),l.innerHTML="&#160;",o.each(function(){this.selected&&(l.innerHTML=this.text)}),i=e.childNodes,o.length>0){for(var c=0,h=i.length;c<h;c++)(n=i[c])&&"SPAN"===n.nodeName.toUpperCase()&&(e.replaceChild(l,n),r=!0);r||e.insertBefore(l,e.firstChild)}};s(this,e),t(this).on("change refresh",function(){s(this,e)})}},t.fn[d]=function(e,a,s,n){return this.each(function(){return e&&"string"==typeof e?t.fn[d].prototype[e].call(this,a,s,n):t(this).data(d+"active")?t(this):(t(this).data(d+"active",!0),void t.fn[d].prototype._create.call(this))})},t.extend(t.fn[d].prototype,u),f="tablesaw-coltoggle",(p=function(e){this.$table=t(e),this.$table.length&&(this.tablesaw=this.$table.data("tablesaw"),this.attributes={btnTarget:"data-tablesaw-columntoggle-btn-target",set:"data-tablesaw-columntoggle-set"},this.classes={columnToggleTable:"tablesaw-columntoggle",columnBtnContain:"tablesaw-columntoggle-btnwrap tablesaw-advance",columnBtn:"tablesaw-columntoggle-btn tablesaw-nav-btn down",popup:"tablesaw-columntoggle-popup",priorityPrefix:"tablesaw-priority-"},this.set=[],this.$headers=this.tablesaw._getPrimaryHeaderCells(),this.$table.data(f,this))}).prototype.initSet=function(){var e=this.$table.attr(this.attributes.set);if(e){var a=this.$table[0];this.set=t("table["+this.attributes.set+"='"+e+"']").filter(function(){return this!==a}).get()}},p.prototype.init=function(){if(this.$table.length){var s,n,i,o,l,r,c=this,h=this.tablesaw.getConfig({getColumnToggleLabelTemplate:function(t){return"<label><input type='checkbox' checked>"+t+"</label>"}});this.$table.addClass(this.classes.columnToggleTable),n=(s=this.$table.attr("id"))+"-popup",r=t("<div class='"+this.classes.columnBtnContain+"'></div>"),i=t("<a href='#"+n+"' class='btn tablesaw-btn btn-micro "+this.classes.columnBtn+"' data-popup-link><span>"+w.i18n.columnToggleButton+"</span></a>"),o=t("<div class='"+this.classes.popup+"' id='"+n+"'></div>"),l=t("<div class='tablesaw-btn-group'></div>"),this.$popup=o;var d=!1;this.$headers.each(function(){var e=t(this),a=e.attr("data-tablesaw-priority"),s=c.tablesaw._$getCells(this);a&&"persist"!==a&&(s.addClass(c.classes.priorityPrefix+a),t(h.getColumnToggleLabelTemplate(e.text())).appendTo(l).find('input[type="checkbox"]').data("tablesaw-header",this),d=!0)}),d||l.append("<label>"+w.i18n.columnToggleError+"</label>"),l.appendTo(o),l.find('input[type="checkbox"]').on("change",function(e){var a;v(e.target),c.set.length&&(t(c.$popup).find("input[type='checkbox']").each(function(t){if(this===e.target)return a=t,!1}),t(c.set).each(function(){var s=t(this).data(f).$popup.find("input[type='checkbox']").get(a);s&&(s.checked=e.target.checked,v(s))}))}),i.appendTo(r);var u,p=t(this.$table.attr(this.attributes.btnTarget));r.appendTo(p.length?p:this.tablesaw.$toolbar),i.on("click.tablesaw",function(n){n.preventDefault(),r.is(".visible")?m():(r.addClass("visible"),i.removeClass("down").addClass("up"),t(a).off("click."+s,m),e.clearTimeout(u),u=e.setTimeout(function(){t(a).on("click."+s,m)},15))}),o.appendTo(r),this.$menu=l;var b,g=this.$table.closest(".tablesaw-overflow");g.css("-webkit-overflow-scrolling")&&g.on("scroll",function(){var a=t(this);e.clearTimeout(b),b=e.setTimeout(function(){a.css("-webkit-overflow-scrolling","auto"),e.setTimeout(function(){a.css("-webkit-overflow-scrolling","touch")},0)},100)}),t(e).on(w.events.resize+"."+s,function(){c.refreshToggle()}),this.initSet(),this.refreshToggle()}function v(t){var e=t.checked,a=c.getHeaderFromCheckbox(t),s=c.tablesaw._$getCells(a);s[e?"removeClass":"addClass"]("tablesaw-toggle-cellhidden"),s[e?"addClass":"removeClass"]("tablesaw-toggle-cellvisible"),c.updateColspanCells(a,e),c.$table.trigger("tablesawcolumns")}function m(e){e&&t(e.target).closest("."+c.classes.popup).length||(t(a).off("click."+s),i.removeClass("up").addClass("down"),r.removeClass("visible"))}},p.prototype.getHeaderFromCheckbox=function(e){return t(e).data("tablesaw-header")},p.prototype.refreshToggle=function(){var t=this;this.$menu.find("input").each(function(){var e=t.getHeaderFromCheckbox(this);this.checked="table-cell"===t.tablesaw._$getCells(e).eq(0).css("display")}),this.updateColspanCells()},p.prototype.updateColspanCells=function(t,e){this.tablesaw.updateColspanCells("tablesaw-toggle-cellhidden",t,e)},p.prototype.destroy=function(){this.$table.removeClass(this.classes.columnToggleTable),this.$table.find("th, td").each(function(){t(this).removeClass("tablesaw-toggle-cellhidden").removeClass("tablesaw-toggle-cellvisible"),this.className=this.className.replace(/\bui\-table\-priority\-\d\b/g,"")})},t(a).on(w.events.create,function(t,e){"columntoggle"===e.mode&&new p(e.table).init()}),t(a).on(w.events.destroy,function(e,a){"columntoggle"===a.mode&&t(a.table).data(f).destroy()}),t(a).on(w.events.refresh,function(e,a){"columntoggle"===a.mode&&t(a.table).data(f).refreshToggle()}),w.ColumnToggle=p,function(){function e(e){var a=[];return t(e.childNodes).each(function(){var e=t(this);e.is("input, select")?a.push(e.val()):e.is(".tablesaw-cell-label")||a.push((e.text()||"").replace(/^\s+|\s+$/g,""))}),a.join("")}var s="tablesaw-sortable",n="table[data-"+s+"]",i="[data-"+s+"-switch]",o="data-tablesaw-sortable-col",l="data-tablesaw-sortable-default-col",r="data-tablesaw-sortable-numeric",c="data-tablesaw-subrow",h="data-tablesaw-ignorerow",d={head:s+"-head",ascend:s+"-ascending",descend:s+"-descending",switcher:s+"-switch",tableToolbar:"tablesaw-bar-section",sortButton:s+"-btn"},u={_create:function(e){return t(this).each(function(){if(t(this).data(s+"-init"))return!1;t(this).data(s+"-init",!0).trigger("beforecreate."+s)[s]("_init",e).trigger("create."+s)})},_init:function(){var a,n,c,h=t(this),u=h.data("tablesaw");function f(e){t.each(e,function(e,a){var s=t(a);s.removeAttr(l),s.removeClass(d.ascend),s.removeClass(d.descend)})}h.addClass(s),a=h.children().filter("thead").find("th["+o+"]"),c=a,t.each(c,function(e,a){t(a).addClass(d.head)}),function(e,a){t.each(e,function(e,s){var n=t("<button class='"+d.sortButton+"'/>");n.on("click",{col:s},a),t(s).wrapInner(n).find("button").append("<span class='tablesaw-sortable-arrow'>")})}(a,function(e){if(!t(e.target).is("a[href]")){e.stopPropagation();var i=t(e.target).closest("["+o+"]"),l=e.data.col,r=a.index(i[0]);f(i.closest("thead").find("th").filter(function(){return this!==i[0]})),i.is("."+d.descend)||!i.is("."+d.ascend)?(h[s]("sortBy",l,!0),r+="_asc"):(h[s]("sortBy",l),r+="_desc"),n&&n.find("select").val(r).trigger("refresh"),e.preventDefault()}}),function(e){t.each(e,function(e,a){var s=t(a);s.is("["+l+"]")&&(s.is("."+d.descend)||s.addClass(d.ascend))})}(a),h.is(i)&&function(a){n=t("<div>").addClass(d.switcher).addClass(d.tableToolbar);var i=["<label>"+w.i18n.sort+":"];i.push('<span class="btn tablesaw-btn"><select>'),a.each(function(a){var s=t(this),n=s.is("["+l+"]"),o=s.is("."+d.descend),c=s.is("["+r+"]"),h=0;t(this.cells.slice(0,5)).each(function(){isNaN(parseInt(e(this),10))||h++});var u=5===h;c||s.attr(r,u?"":"false"),i.push("<option"+(n&&!o?" selected":"")+' value="'+a+'_asc">'+s.text()+" "+(u?"&#x2191;":"(A-Z)")+"</option>"),i.push("<option"+(n&&o?" selected":"")+' value="'+a+'_desc">'+s.text()+" "+(u?"&#x2193;":"(Z-A)")+"</option>")}),i.push("</select></span></label>"),n.html(i.join(""));var o=u.$toolbar.children().eq(0);o.length?n.insertBefore(o):n.appendTo(u.$toolbar),n.find(".tablesaw-btn").tablesawbtn(),n.find("select").on("change",function(){var e=t(this).val().split("_"),n=a.eq(e[0]);f(n.siblings()),h[s]("sortBy",n.get(0),"asc"===e[1])})}(a)},sortRows:function(a,s,n,i,o){var l,d=function(a,s){var n=[];return t.each(a,function(a,i){for(var o=i.parentNode,l=t(o),r=[],d=l.next();d.is("["+c+"]");)r.push(d[0]),d=d.next();var u=o.parentNode;l.is("["+c+"]")||u===s&&n.push({element:i,cell:e(i),row:o,subrows:r.length?r:null,ignored:l.is("["+h+"]")})}),n}(i.cells,o),u=t(i).data("tablesaw-sort");return l=!(!u||"function"!=typeof u)&&u(n)||function(t,e){var a=/[^\-\+\d\.]/g;return t?function(t,s){return t.ignored||s.ignored?0:e?parseFloat(t.cell.replace(a,""))-parseFloat(s.cell.replace(a,"")):t.cell.toLowerCase()>s.cell.toLowerCase()?1:-1}:function(t,s){return t.ignored||s.ignored?0:e?parseFloat(s.cell.replace(a,""))-parseFloat(t.cell.replace(a,"")):t.cell.toLowerCase()<s.cell.toLowerCase()?1:-1}}(n,t(i).is("["+r+"]")&&!t(i).is("["+r+'="false"]')),function(t){var e,a,s=[];for(e=0,a=t.length;e<a;e++)s.push(t[e].row),t[e].subrows&&s.push(t[e].subrows);return s}(d.sort(l))},makeColDefault:function(e,a){var s=t(e);s.attr(l,"true"),a?(s.removeClass(d.descend),s.addClass(d.ascend)):(s.removeClass(d.ascend),s.addClass(d.descend))},sortBy:function(e,a){var n,i=t(this),o=i.data("tablesaw");o.$tbody.each(function(){var l,r,c,h=t(this),d=o.getBodyRows(this),u=o.headerMapping[0];for(r=0,c=u.length;r<c;r++)if(u[r]===e){n=r;break}for(r=0,c=(l=i[s]("sortRows",d,n,a,e,this)).length;r<c;r++)h.append(l[r])}),i[s]("makeColDefault",e,a),i.trigger("tablesaw-sorted")}};t.fn[s]=function(e){var a,n=Array.prototype.slice.call(arguments,1);return e&&"string"==typeof e?void 0!==(a=t.fn[s].prototype[e].apply(this[0],n))?a:t(this):(t(this).data(s+"-active")||(t(this).data(s+"-active",!0),t.fn[s].prototype._create.call(this,e)),t(this))},t.extend(t.fn[s].prototype,u),t(a).on(w.events.create,function(t,e){e.$table.is(n)&&e.$table[s]()})}(),function(){var s="disabled",n="tablesaw-fix-persist",i="tablesaw-swipe-cellhidden",o="tablesaw-swipe-cellpersist",l="tablesaw-all-cols-visible",r="data-tablesaw-no-touch";function c(c,h){var d=h.data("tablesaw"),u=t("<div class='tablesaw-advance'></div>"),f=t("<a href='#' class='btn tablesaw-nav-btn tablesaw-btn btn-micro left'>"+w.i18n.swipePreviousColumn+"</a>").appendTo(u),p=t("<a href='#' class='btn tablesaw-nav-btn tablesaw-btn btn-micro right'>"+w.i18n.swipeNextColumn+"</a>").appendTo(u),b=c._getPrimaryHeaderCells(),g=b.not('[data-tablesaw-priority="persist"]'),v=[],m=[],C=t(a.head||"head"),y=h.attr("id");if(!b.length)throw new Error("tablesaw swipe: no header cells found.");function $(){h.css({width:"1px"}),h.find("."+i).removeClass(i),v=[],m=[],b.each(function(){var t=this.offsetWidth;v.push(t),x(this)||m.push(t)}),h.css({width:""})}function T(t){d._$getCells(t).removeClass(i)}function k(t){d._$getCells(t).addClass(i)}function x(e){return t(e).is('[data-tablesaw-priority="persist"]')}function _(){h.removeClass(n),t("#"+y+"-persist").remove()}function M(){var e,a=[];return g.each(function(s){var n=t(this),o="none"===n.css("display")||n.is("."+i);if(o||e){if(o&&e)return a[1]=s,!1}else e=!0,a[0]=s}),a}function S(){var t=M();return[t[1]-1,t[0]-1]}function H(t){return t[1]>-1&&t[1]<g.length}function B(){if(!(a=h.attr("data-tablesaw-swipe-media"))||"matchMedia"in e&&e.matchMedia(a).matches){var a,s=h.parent().width(),n=[],l=0,r=[],c=b.length;b.each(function(e){var a=t(this).is('[data-tablesaw-priority="persist"]');n.push(a),l+=v[e],r.push(l),(a||l>s)&&c--});var u=0===c;b.each(function(t){r[t]>s&&k(this)});var f=!0;b.each(function(t){if(n[t])return e=this,d._$getCells(e).addClass(o),void(f&&(d._$getCells(this).css("width",r[t]+"px"),f=!1));var e;(r[t]<=s||u)&&(u=!1,T(this),d.updateColspanCells(i,this,!0))}),_(),h.trigger("tablesawcolumns")}}function N(){P(!0)}function A(){P(!1)}function P(e){var a;if(H(a=e?M():S())){isNaN(a[0])&&(a[0]=e?0:g.length-1);var s,l=function(){var e,a="#"+y+".tablesaw-swipe ",s=[],i=h.width(),l=i,r=[];if(b.each(function(t){var e;x(this)&&(e=this.offsetWidth,l-=e,e<.75*i&&(r.push(t+"-"+e),s.push(a+" ."+o+":nth-child("+(t+1)+") { width: "+e+"px; }")))}),e=r.join("_"),s.length){h.addClass(n);var c=t("#"+y+"-persist");c.length&&c.data("tablesaw-hash")===e||(c.remove(),t("<style>"+s.join("\n")+"</style>").attr("id",y+"-persist").data("tablesaw-hash",e).appendTo(C))}return l}(),r=a[0],c=a[1],u=g.get(r),f=!1,p=!1;k(u),d.updateColspanCells(i,u,!0);for(var w=r+(e?1:-1);w>=0&&w<m.length;){l-=m[w];var v=g.eq(w);v.is(".tablesaw-swipe-cellhidden")?l>0&&(f=!0,p=!0,T(s=v.get(0)),d.updateColspanCells(i,s,!1)):p=!0,e?w++:w--}p?!f&&H(e?M():S())&&P(e):(T(s=g.get(c)),d.updateColspanCells(i,s,!1)),h.trigger("tablesawcolumns")}}function E(t,e){return(t.touches||t.originalEvent.touches)[0][e]}h.addClass("tablesaw-swipe"),$(),u.appendTo(d.$toolbar),y||(y="tableswipe-"+Math.round(1e4*Math.random()),h.attr("id",y)),f.add(p).on("click",function(e){t(e.target).closest(p).length?N():A(),e.preventDefault()}),h.is("["+r+"]")||h.on("touchstart.swipetoggle",function(a){var s,n,i=E(a,"pageX"),o=E(a,"pageY"),l=e.pageYOffset;t(e).off(w.events.resize,B),t(this).on("touchmove.swipetoggle",function(t){s=E(t,"pageX"),n=E(t,"pageY")}).on("touchend.swipetoggle",function(){var a=c.getConfig({swipeHorizontalThreshold:30,swipeVerticalThreshold:30}),r=a.swipe?a.swipe.verticalThreshold:a.swipeVerticalThreshold,h=a.swipe?a.swipe.horizontalThreshold:a.swipeHorizontalThreshold,d=Math.abs(e.pageYOffset-l)>=r;Math.abs(n-o)>=r||d||(s-i<-1*h&&N(),s-i>h&&A()),e.setTimeout(function(){t(e).on(w.events.resize,B)},300),t(this).off("touchmove.swipetoggle touchend.swipetoggle")})}),h.on("tablesawcolumns.swipetoggle",function(){var t=H(S()),e=H(M());f[t?"removeClass":"addClass"](s),p[e?"removeClass":"addClass"](s),d.$toolbar[t||e?"removeClass":"addClass"](l)}).on("tablesawnext.swipetoggle",function(){N()}).on("tablesawprev.swipetoggle",function(){A()}).on(w.events.destroy+".swipetoggle",function(){var a=t(this);a.removeClass("tablesaw-swipe"),d.$toolbar.find(".tablesaw-advance").remove(),t(e).off(w.events.resize,B),a.off(".swipetoggle")}).on(w.events.refresh,function(){_(),$(),B()}),B(),t(e).on(w.events.resize,B)}t(a).on(w.events.create,function(t,e){"swipe"===e.mode&&c(e,e.$table)})}(),b={attr:{init:"data-tablesaw-minimap"},show:function(t){var a=t.getAttribute(b.attr.init);return""===a||!(!a||!("matchMedia"in e))&&e.matchMedia(a).matches}},t(a).on(w.events.create,function(a,s){"swipe"!==s.mode&&"columntoggle"!==s.mode||!s.$table.is("[ "+b.attr.init+"]")||function(a){var s=a.data("tablesaw"),n=t('<div class="tablesaw-advance minimap">'),i=t('<ul class="tablesaw-advance-dots">').appendTo(n),o="tablesaw-advance-dots-hide";function l(){if(b.show(a[0])){n.css("display","block");var e=i.find("li").removeClass(o);a.find("thead th").each(function(a){"none"===t(this).css("display")&&e.eq(a).addClass(o)})}else n.css("display","none")}a.data("tablesaw")._getPrimaryHeaderCells().each(function(){i.append("<li><i></i></li>")}),n.appendTo(s.$toolbar),l(),t(e).on(w.events.resize,l),a.on("tablesawcolumns.minimap",function(){l()}).on(w.events.destroy+".minimap",function(){var a=t(this);s.$toolbar.find(".tablesaw-advance").remove(),t(e).off(w.events.resize,l),a.off(".minimap")})}(s.$table)}),w.MiniMap=b,g={selectors:{init:"table[data-tablesaw-mode-switch]"},attributes:{excludeMode:"data-tablesaw-mode-exclude"},classes:{main:"tablesaw-modeswitch",toolbar:"tablesaw-bar-section"},modes:["stack","swipe","columntoggle"],init:function(e){var a,s=t(e),n=s.data("tablesaw"),i=s.attr(g.attributes.excludeMode),o=n.$toolbar,l=t("<div>").addClass(g.classes.main+" "+g.classes.toolbar),r=['<label><span class="abbreviated">'+w.i18n.modeSwitchColumnsAbbreviated+'</span><span class="longform">'+w.i18n.modeSwitchColumns+"</span>:"],c=s.attr("data-tablesaw-mode");r.push('<span class="btn tablesaw-btn"><select>');for(var h=0,d=g.modes.length;h<d;h++)i&&i.toLowerCase()===g.modes[h]||(a=c===g.modes[h],r.push("<option"+(a?" selected":"")+' value="'+g.modes[h]+'">'+w.i18n.modes[h]+"</option>"));r.push("</select></span></label>"),l.html(r.join(""));var u=o.find(".tablesaw-advance").eq(0);u.length?l.insertBefore(u):l.appendTo(o),l.find(".tablesaw-btn").tablesawbtn(),l.find("select").on("change",function(a){return g.onModeChange.call(e,a,t(this).val())})},onModeChange:function(e,a){var s=t(this),n=s.data("tablesaw");n.$toolbar.find("."+g.classes.main).remove(),n.destroy(),s.attr("data-tablesaw-mode",a),s.tablesaw()}},t(a).on(w.events.create,function(t,e){e.$table.is(g.selectors.init)&&g.init(e.table)}),function(){var e="tablesawCheckAll";function s(t){this.tablesaw=t,this.$table=t.$table,this.attr="data-tablesaw-checkall",this.checkAllSelector="["+this.attr+"]",this.forceCheckedSelector="["+this.attr+"-checked]",this.forceUncheckedSelector="["+this.attr+"-unchecked]",this.checkboxSelector='input[type="checkbox"]',this.$triggers=null,this.$checkboxes=null,this.$table.data(e)||(this.$table.data(e,this),this.init())}s.prototype._filterCells=function(e){return e.filter(function(){return!t(this).closest("tr").is("[data-tablesaw-subrow],[data-tablesaw-ignorerow]")}).find(this.checkboxSelector).not(this.checkAllSelector)},s.prototype.getCheckboxesForButton=function(e){return this._filterCells(t(t(e).attr(this.attr)))},s.prototype.getCheckboxesForCheckbox=function(e){return this._filterCells(t(t(e).closest("th")[0].cells))},s.prototype.init=function(){var e=this;this.$table.find(this.checkAllSelector).each(function(){t(this).is(e.checkboxSelector)?e.addCheckboxEvents(this):e.addButtonEvents(this)})},s.prototype.addButtonEvents=function(a){var s=this;t(a).on("click",function(a){a.preventDefault();var n,i=s.getCheckboxesForButton(this),o=!0;i.each(function(){this.checked||(o=!1)}),n=!!t(this).is(s.forceCheckedSelector)||!t(this).is(s.forceUncheckedSelector)&&!o,i.each(function(){this.checked=n,t(this).trigger("change."+e)})})},s.prototype.addCheckboxEvents=function(a){var s=this;t(a).on("change",function(){var t=this.checked;s.getCheckboxesForCheckbox(this).each(function(){this.checked=t})});var n=s.getCheckboxesForCheckbox(a);n.on("change."+e,function(){var t=0;n.each(function(){this.checked&&t++});var e=t===n.length;a.checked=e,a.indeterminate=0!==t&&!e})},t(a).on(w.events.create,function(t,e){new s(e)}),w.CheckAll=s}(),w});
!function(t){"function"==typeof define&&define.amd?define([],t):"undefined"!=typeof module&&null!==module&&module.exports?module.exports=t:t()}(function(){var t=Object.assign||window.jQuery&&jQuery.extend,e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t,e){return window.setTimeout(function(){t()},25)};!function(){if("function"==typeof window.CustomEvent)return!1;function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}t.prototype=window.Event.prototype,window.CustomEvent=t}();var n={textarea:!0,input:!0,select:!0,button:!0},i="mousemove",o="mouseup dragstart",a="mouseup",u="touchmove",c="touchend",r="touchend",d=/\s+/,f={bubbles:!0,cancelable:!0},m="function"==typeof Symbol?Symbol("events"):{};function s(t){return t[m]||(t[m]={})}function v(t,e,n,i,o){e=e.split(d);var a,u=s(t),c=e.length;function r(t){n(t,i)}for(;c--;)(u[a=e[c]]||(u[a]=[])).push([n,r]),t.addEventListener(a,r)}function l(t,e,n,i){e=e.split(d);var o,a,u,c=s(t),r=e.length;if(c)for(;r--;)if(a=c[o=e[r]])for(u=a.length;u--;)a[u][0]===n&&(t.removeEventListener(o,a[u][1]),a.splice(u,1))}function p(e,n,i){var o=function(t){return new CustomEvent(t,f)}(n);i&&t(o,i),e.dispatchEvent(o)}function g(t){var n=t,i=!1,o=!1;function a(t){i?(n(),e(a),o=!0,i=!1):o=!1}this.kick=function(t){i=!0,o||a()},this.end=function(t){var e=n;t&&(o?(n=i?function(){e(),t()}:t,i=!0):t())}}function h(){}function X(t){t.preventDefault()}function Y(t,e){var n,i;if(t.identifiedTouch)return t.identifiedTouch(e);for(n=-1,i=t.length;++n<i;)if(t[n].identifier===e)return t[n]}function y(t,e){var n=Y(t.changedTouches,e.identifier);if(n&&(n.pageX!==e.pageX||n.pageY!==e.pageY))return n}function w(t,e){S(t,e,t,T)}function b(t,e){T()}function T(){l(document,i,w),l(document,o,b)}function E(t){l(document,u,t.touchmove),l(document,c,t.touchend)}function S(t,e,n,i){var o=n.pageX-e.pageX,a=n.pageY-e.pageY;o*o+a*a<64||function(t,e,n,i,o,a){var u=t.targetTouches,c=t.timeStamp-e.timeStamp,r={altKey:t.altKey,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,startX:e.pageX,startY:e.pageY,distX:i,distY:o,deltaX:i,deltaY:o,pageX:n.pageX,pageY:n.pageY,velocityX:i/c,velocityY:o/c,identifier:e.identifier,targetTouches:u,finger:u?u.length:1,enableMove:function(){this.moveEnabled=!0,this.enableMove=h,t.preventDefault()}};p(e.target,"movestart",r),a(e)}(t,e,n,o,a,i)}function k(t,e){var n=e.timer;e.touch=t,e.timeStamp=t.timeStamp,n.kick()}function K(t,e){var n=e.target,o=e.event,u=e.timer;l(document,i,k),l(document,a,K),C(n,o,u,function(){setTimeout(function(){l(n,"click",X)},0)})}function j(t,e){var n=e.target,i=e.event,o=e.timer;Y(t.changedTouches,i.identifier)&&(!function(t){l(document,u,t.activeTouchmove),l(document,r,t.activeTouchend)}(e),C(n,i,o))}function C(t,e,n,i){n.end(function(){return p(t,"moveend",e),i&&i()})}if(v(document,"mousedown",function(t){(function(t){return 1===t.which&&!t.ctrlKey&&!t.altKey})(t)&&(function(t){return!!n[t.target.tagName.toLowerCase()]}(t)||(v(document,i,w,t),v(document,o,b,t)))}),v(document,"touchstart",function(t){if(!n[t.target.tagName.toLowerCase()]){var e=t.changedTouches[0],i={target:e.target,pageX:e.pageX,pageY:e.pageY,identifier:e.identifier,touchmove:function(t,e){!function(t,e){var n=y(t,e);if(!n)return;S(t,e,n,E)}(t,e)},touchend:function(t,e){!function(t,e){var n=Y(t.changedTouches,e.identifier);if(!n)return;E(e)}(t,e)}};v(document,u,i.touchmove,i),v(document,c,i.touchend,i)}}),v(document,"movestart",function(t){if(!t.defaultPrevented&&t.moveEnabled){var e={startX:t.startX,startY:t.startY,pageX:t.pageX,pageY:t.pageY,distX:t.distX,distY:t.distY,deltaX:t.deltaX,deltaY:t.deltaY,velocityX:t.velocityX,velocityY:t.velocityY,identifier:t.identifier,targetTouches:t.targetTouches,finger:t.finger},n={target:t.target,event:e,timer:new g(function(t){(function(t,e,n){var i=n-t.timeStamp;t.distX=e.pageX-t.startX,t.distY=e.pageY-t.startY,t.deltaX=e.pageX-t.pageX,t.deltaY=e.pageY-t.pageY,t.velocityX=.3*t.velocityX+.7*t.deltaX/i,t.velocityY=.3*t.velocityY+.7*t.deltaY/i,t.pageX=e.pageX,t.pageY=e.pageY})(e,n.touch,n.timeStamp),p(n.target,"move",e)}),touch:void 0,timeStamp:t.timeStamp};void 0===t.identifier?(v(t.target,"click",X),v(document,i,k,n),v(document,a,K,n)):(n.activeTouchmove=function(t,e){!function(t,e){var n=e.event,i=e.timer,o=y(t,n);o&&(t.preventDefault(),n.targetTouches=t.targetTouches,e.touch=o,e.timeStamp=t.timeStamp,i.kick())}(t,e)},n.activeTouchend=function(t,e){j(t,e)},v(document,u,n.activeTouchmove,n),v(document,r,n.activeTouchend,n))}}),window.jQuery){var Q="startX startY pageX pageY distX distY deltaX deltaY velocityX velocityY".split(" ");jQuery.event.special.movestart={setup:function(){return v(this,"movestart",q),!1},teardown:function(){return l(this,"movestart",q),!1},add:M},jQuery.event.special.move={setup:function(){return v(this,"movestart",A),!1},teardown:function(){return l(this,"movestart",A),!1},add:M},jQuery.event.special.moveend={setup:function(){return v(this,"movestart",F),!1},teardown:function(){return l(this,"movestart",F),!1},add:M}}function q(t){t.enableMove()}function A(t){t.enableMove()}function F(t){t.enableMove()}function M(t){var e=t.handler;t.handler=function(t){for(var n,i=Q.length;i--;)t[n=Q[i]]=t.originalEvent[n];e.apply(this,arguments)}}});
!function(t){t.fn.twentytwenty=function(e){e=t.extend({default_offset_pct:.5,orientation:"horizontal",before_label:"Before",after_label:"After",no_overlay:!1,move_slider_on_hover:!1,move_with_handle_only:!0,click_to_move:!1},e);return this.each(function(){var n=e.default_offset_pct,i=t(this),a=e.orientation,o="vertical"===a?"down":"left",s="vertical"===a?"up":"right";if(i.wrap("<div class='twentytwenty-wrapper twentytwenty-"+a+"'></div>"),!e.no_overlay){i.append("<div class='twentytwenty-overlay'></div>");var r=i.find(".twentytwenty-overlay");r.append("<div class='twentytwenty-before-label' data-content='"+e.before_label+"'></div>"),r.append("<div class='twentytwenty-after-label' data-content='"+e.after_label+"'></div>")}var c=i.find("img:first"),l=i.find("img:last");i.append("<div class='twentytwenty-handle'></div>");var d=i.find(".twentytwenty-handle");d.append("<span class='twentytwenty-"+o+"-arrow'></span>"),d.append("<span class='twentytwenty-"+s+"-arrow'></span>"),i.addClass("twentytwenty-container"),c.addClass("twentytwenty-before"),l.addClass("twentytwenty-after");var w=function(t){(async function(t){c[0].complete&&0!==c[0].naturalHeight||await new Promise((t,e)=>{c.one("load",t),c.one("error",e)});var e=c.width(),n=c.height();return{w:e+"px",h:n+"px",cw:t*e+"px",ch:t*n+"px"}})(t).then(function(t){d.css("vertical"===a?"top":"left","vertical"===a?t.ch:t.cw),function(t){"vertical"===a?(c.css("clip","rect(0,"+t.w+","+t.ch+",0)"),l.css("clip","rect("+t.ch+","+t.w+","+t.h+",0)")):(c.css("clip","rect(0,"+t.cw+","+t.h+",0)"),l.css("clip","rect(0,"+t.w+","+t.h+","+t.cw+")")),l.css("position","absolute"),i.css("height",t.h),l.css("position","absolute")}(t)})},f=function(t,e){var n,i,o;return n="vertical"===a?(e-p)/h:(t-v)/y,i=0,o=1,Math.max(i,Math.min(o,n))};t(window).on("resize.twentytwenty",function(t){w(n)});var v=0,p=0,y=0,h=0,u=function(t){((t.distX>t.distY&&t.distX<-t.distY||t.distX<t.distY&&t.distX>-t.distY)&&"vertical"!==a||(t.distX<t.distY&&t.distX<-t.distY||t.distX>t.distY&&t.distX>-t.distY)&&"vertical"===a)&&t.preventDefault(),i.addClass("active"),v=i.offset().left,p=i.offset().top,y=c.width(),h=c.height()},_=function(t){i.hasClass("active")&&(n=f(t.pageX,t.pageY),w(n))},m=function(){i.removeClass("active")},g=e.move_with_handle_only?d:i;g.on("movestart",u),g.on("move",_),g.on("moveend",m),e.move_slider_on_hover&&(i.on("mouseenter",u),i.on("mousemove",_),i.on("mouseleave",m)),d.on("touchmove",function(t){t.preventDefault()}),i.find("img").on("mousedown",function(t){t.preventDefault()}),e.click_to_move&&i.on("click",function(t){v=i.offset().left,p=i.offset().top,y=c.width(),h=c.height(),n=f(t.pageX,t.pageY),w(n)}),t(window).trigger("resize.twentytwenty")})}}(jQuery);
!function(t){var e,a,i;i=function(t,e){return function(){return t.apply(e,arguments)}},a={customTags:["[[","]]"],filters:{},availableFilters:{},params:{currentPage:2}},e=function(){function e(e,r){this.handler=e;r=t.extend(!0,this,a,r);this.init=i(this.init,this)}return e.prototype.buildQuery=function(){var t={},e=[];for(var a in this.filters)this.filters[a]instanceof Array?t[a]=this.filters[a].join(","):t[a]=this.filters[a];for(var i in this.params)t[i]=this.params[i];for(var r in t)e.push([r,t[r]].join("="));return"?"+e.join("&")},e.prototype.removeFilter=function(t,e){this.filters[t].splice(this.filters[t].indexOf(e),1),this.syncFilters()},e.prototype.addFilter=function(t,e){this.filters[t]||(this.filters[t]=[]),this.checkFilter(t,e)||this.filters[t].push(e),this.syncFilters()},e.prototype.checkFilter=function(t,e){return void 0!==this.filters[t]&&this.filters[t].indexOf(e)>=0},e.prototype.getCount=function(t,e){if(void 0!==this.availableFilters){if(void 0!==this.availableFilters[t])for(var a in this.availableFilters)for(var i in this.availableFilters[a])if(this.availableFilters[a][i].Value===e)return this.availableFilters[a][i].AggregatedCount;return 0}return-1},e.prototype.checkIfEmptyFilters=function(){var e=0,a=0;for(var i in this.filters)a++,t.isEmptyObject(this.filters[i])&&e++;return e!==a},e.prototype.syncFilters=function(){var e=this.handler.data("ajax-id"),a=t("[data-ajax-filters="+e+"]").find("[type=checkbox]"),i=this;a.each(function(){var e=t(this);i.checkFilter(e.prop("name"),e.prop("value"))?e.prop("checked",!0):e.prop("checked",!1)}),i.renderSelectedOptions()},e.prototype.syncFilterCounts=function(){var e=this.handler.data("ajax-id"),a=t("[data-ajax-filters="+e+"]"),i=a.find("[type=checkbox]"),r=a.find("[data-ajax-filter-group]"),n=this;i.each(function(){var e=t(this),a=n.getCount(e.prop("name"),e.prop("value")),i=e.parents("label");e.parents("label").find("span").html("("+a+")"),0===a?i.addClass("hide"):i.removeClass("hide")}),r.each(function(){var e=0;t(this).children().each(function(){t(this).hasClass("hide")&&e++}),e===t(this).children().length?t(this).parents("[data-ajax-filter-group-wrapper]").hide():t(this).parents("[data-ajax-filter-group-wrapper]").show()})},e.prototype.clearFilters=function(){var e=this,a=this.handler.data("ajax-id"),i=t("[data-selected-options="+a+"]");e.params.currentPage=1,e.filters={},e.syncFilters(),e.ajaxCall(!0),i.hide()},e.prototype.renderFilters=function(){let{filters:e}=this.getFilterElements(),a=this;e.each(function(){var e=t(this).data("ajax-filter-group"),i=a.availableFilters[e];if(void 0!==i&&0!=i.length){var r=[];for(var n in i)r.push({Group:e,Value:i[n].Value,Name:i[n].Name,AggregatedCount:i[n].AggregatedCount});var s=Mustache.render(a.filterTemplate,{menuItems:r});t(this).html(s)}}),t(document).trigger("accordion-control.handleShowMore"),a.initFilterEvents()},e.prototype.initFilterEvents=function(){const{filterCheckboxes:e}=this.getFilterElements(),a=this;e.each(function(){var e=t(this);e.on("change",function(){if(t(this).is(":checked")?a.addFilter(e.attr("name"),e.attr("value")):a.removeFilter(e.attr("name"),e.attr("value")),t(this).parents(".browse-by__menus").length>0){var i=t(this).parents(".accordion-filters__menu");if(i.length){var r=i.find(".accordion-filters__menu__list");i.toggleClass(i.data("toggler")),r.toggleClass(r.data("toggler"));var n=i.find(".accordion-filters__menu__toggle button");n.toggleClass(n.data("toggle-self"))}}a.ajaxCall(!0)})})},e.prototype.initFilters=function(){const{filters:e}=this.getFilterElements(),a=this;e.each(function(){var e=t(this).data("ajax-filter-group");a.filters[e]instanceof Array||(a.filters[e]=[])}),a.syncFilters(),a.initFilterEvents()},e.prototype.getFiltersFromURL=function(){var e=window.location.search.replace("?","").split("&"),a=this.handler.data("ajax-id"),i=t("[data-ajax-filters="+a+"]"),r=[];for(var n in i.find("[data-ajax-filter-group]").each(function(e,a){var i=t(a).data("ajax-filter-group");-1===r.indexOf(i)&&r.push(i)}),e){var s=e[n].split("=")[0],l=e[n].split("=")[1];if(r.indexOf(s)>=0&&""!==l){var o=l.split(",");for(var d in o)this.addFilter(s,o[d])}}},e.prototype.renderSelectedOptions=function(){var e=this,a=this.handler.data("ajax-id"),i=t("[data-ajax-filters="+a+"]"),r=t("[data-selected-options="+a+"]"),n={"selected-options-items":[],ajaxID:a};if(this.checkIfEmptyFilters()){r.show();var s=e.handler.find("[data-selected-items]");for(var l in e.filters){var o=i.find("[data-ajax-filter-group="+l+"]"),d=o.data("ajax-filter-group"),h=o.data("ajax-filter-group-title");for(var f in e.filters[l]){var c=o.find('[value="'+e.filters[l][f]+'"]');n["selected-options-items"].push({"item-filter-group":d,"item-filter-group-title":h,"item-filter-name":c.data("ajax-filter-name"),"item-filter-value":e.filters[l][f]})}}var p=Mustache.render(e.optionTemplate,n);s.html(p),r.find("[data-ajax-clear-all="+a+"]").click(function(){e.clearFilters()}),s.find("[data-selected-filter]").each(function(a,i){var r=t(this),n=r.data("selected-filter").split(":")[0],s=r.data("selected-filter").split(":")[1];r.find("button").click(function(){e.removeFilter(n,s),e.ajaxCall(!0)})})}else r.hide()},e.prototype.ajaxCall=function(e){e&&(this.params.currentPage=1);var a=this.handler.data("ajax-load"),i=this.buildQuery(),r=this;t.get(a+i).done(function(t){var a=Mustache.render(r.itemTemplate,t);if(e?r.handler.find("[data-ajax-items]").html(a):r.handler.find("[data-ajax-items]").append(a),"function"==typeof productListingInfoToDataLayerPush&&productListingInfoToDataLayerPush(),"function"==typeof lineRelatedInformationInfoToDataLayerPush&&lineRelatedInformationInfoToDataLayerPush(),t.hideLoadButton)r.handler.find("[data-load-more]").find("button").hide();else{const t=r.handler.find("[data-load-more]").find("button");t.show(),t.blur()}null!==t.filters&&(r.availableFilters=t.filters),r.params.currentPage++,r.renderFilters(),r.syncFilters(),r.syncFilterCounts(),window.history.pushState({},"",i)})},e.prototype.getFilterElements=function(){const e=this.handler.data("ajax-id"),a=t("[data-ajax-filters="+e+"]");return{id:e,filtersWrap:a,filterCheckboxes:a.find("[type=checkbox]"),filters:a.find("[data-ajax-filter-group]")}},e.prototype.init=function(){if(this.handler.length>0){var e=this.handler.data("ajax-id"),a=[];Mustache.tags=this.customTags,e&&(a=t("[data-ajax-filters="+e+"]"),this.filterTemplate=a.find("[type=x-tmpl-mustache][data-filter-template]").html(),Mustache.parse(this.filterTemplate)),this.itemTemplate=this.handler.find("[type=x-tmpl-mustache][data-item-template]").html(),this.optionTemplate=this.handler.find("[type=x-tmpl-mustache][data-option-template]").html(),Mustache.parse(this.itemTemplate),Mustache.parse(this.optionTemplate);var i=this.handler.data("ajax-itemid");if(void 0===i){var r=this.handler.find("[data-ajax-itemid]");console.log("e"),r.length<1?console.error("ItemID parameter is not defined on the ajax plugin"):i=r.data("ajax-itemid")}this.params.itemId=i;a=[];(e=this.handler.data("ajax-id"))&&(a=t("[data-ajax-filters="+e+"]")),a.length>0?(this.getFiltersFromURL(),this.initFilters(),this.renderSelectedOptions()):this.renderSelectedOptions();var n=this.handler.find("[data-load-more]").find("button"),s=this;n.on("click",function(){s.ajaxCall(!1)});var l=this.handler.find("[data-toggle=newsFiltersModal]");s=this;l.on("click",function(){s.handler.find(".full.reveal.browse__side--refine-by").show()});var o=this.handler.find("[data-close]");s=this;o.on("click",function(){s.handler.find(".full.reveal.browse__side--refine-by").hide()}),e&&t(document).find("[data-ajax-clear-all="+e+"]").click(function(){s.clearFilters()})}},e}(),t.fn.ajaxLoad=function(t){return this.ajaxLoadInstance||(this.ajaxLoadInstance=new e(this,t||{})),this.ajaxLoadInstance.init(),this}}(jQuery);
!function(t){var e,o,a;t(".card-toggle").click(function(){t(this).parents(".row").parent(".card-container").toggleClass("active");if(t(this).parents(".row").siblings(".accordion-cards__content").find("section.image-slider__section").length>0)if(t.fn.twentytwenty){var e=t("[data-image-slider]");e.length?e.twentytwenty({no_overlay:!0,move_slider_on_hover:!0}):console.log("No elements with '[data-image-slider]' attribute found.")}else console.warn("TwentyTwenty plugin is not loaded")}),t(".card-close").click(function(){t(this).parents(".accordion-cards__content").parent(".card-container").removeClass("active")}),t("[data-toggle-self]").click(function(e){var o=t(this);o.toggleClass(o.data("toggle-self"))}),t("[data-toggle-self-text]").click(function(e){var o=t(this),a=o.html(),n=o.data("toggle-self-text");o.html(n),o.data("toggle-self-text",a)}),t("[data-toggle-others] [data-toggle]").click(function(){var e=t(this),o=e.parents("[data-toggler]"),a=o.siblings("[data-toggler]");if(e.hasClass("variant")){var n=o[0].id;n=n.substring(n.indexOf("__")+1);var i=o.position().left;i+="px",document.getElementById("mega_"+n).style.left=i}a.each(function(o,a){var n=t(this),i=t(this).find("[data-toggle]");n.hasClass(n.data("toggler"))&&i.data("toggle").split(" ").forEach(function(o){t("#"+o).foundation("toggle"),i.hasClass(e.data("toggle-self"))&&i.toggleClass(e.data("toggle-self"))})})}),a=function(t,e){return function(){return t.apply(e,arguments)}},o={cssSelector:".accordion-filters"},e=function(){function e(e,n){this.handler=e;n=t.extend(!0,this,o,n);this.init=a(this.init,this)}return e.prototype.init=function(){if(this.handler.length>0){var e=this;this.handler.each(function(){var o=t(this);o.find(e.cssSelector+"__menu__toggle button").click(function(){var o=t(this).parents(e.cssSelector+"__menu"),a=o.find(e.cssSelector+"__menu__list");o.toggleClass(o.data("toggler")),a.toggleClass(a.data("toggler"))}),e.initShowMore(o),e.handleShowMore()})}t(document).on("accordion-control.handleShowMore",this.handleShowMore),t(window).on("resize",this.recalcDimensions)},e.prototype.recalcDimensions=function(){var e=this;return t.debounce(function(){e.handleShowMore()},100)},e.prototype.initShowMore=function(e){var o=this,a=e,n=a.find("[data-show-more]");0===a.parents(".browse-by__menus").length&&n.each(function(){var e=t(this).find("[data-show-more-target]"),a=t(this).find("[data-show-more-trigger]");a.on("click",function(){var n=t(this);n.hasClass(n.data("show-more-state"))?o.initialShowMoreState(a,e):o.toggledShowMoreState(a,e)})})},e.prototype.initialShowMoreState=function(t,e){t.removeClass(t.data("show-more-state")),t.text(t.data("show-more-initial-text")),e.removeClass(e.data("toggler"))},e.prototype.toggledShowMoreState=function(t,e){t.addClass(t.data("show-more-state")),t.text(t.data("show-more-toggled-text")),e.addClass(e.data("toggler"))},e.prototype.handleShowMore=function(){(this.handler||t("[data-accordion-control]")).each(function(){var e=t(this);e.find("[data-show-more]").each(function(){var o=t(this).find("[data-show-more-target]"),a=t(this).find("[data-show-more-trigger]");a.removeClass(a.data("show-more-state")),a.text(a.data("show-more-initial-text")),o.removeClass(o.data("toggler")),o.children().length>8?a.show():a.hide(),0!==e.parents(".browse-by__menus").length&&(o.actual("height")>=parseInt(o.css("max-height"),10)?a.show():a.hide())})})},e}(),t.fn.accordionControl=function(t){return this.accordionControlInstance||(this.accordionControlInstance=new e(this,t||{})),this.accordionControlInstance.init(),this}}(jQuery);const cardContainer=document.querySelectorAll(".card-container");cardContainer&&cardContainer.forEach(t=>{t.querySelector(".card-close")&&t.querySelector(".card-close").remove();if(!t.querySelector(".accordion-cards__content > .row")){const e=t.querySelector("a");if(e){const o=e.getAttribute("href"),a=e.getAttribute("aria-label"),n=$('<a> <span class="icon-font-arrow-right-blue"></span></a>');$(n).attr("href",o),$(n).attr("aria-label",a);const i=t.querySelector(".row .card");$(i).append(n)}}});const accordionToggle=document.querySelectorAll(".accordion-cards .card-container .card.card-toggle"),cardsContent=document.querySelectorAll(".accordion-cards__content.panel");for(let t=0;t<accordionToggle.length;t++)accordionToggle[t].addEventListener("click",openAccordion);function openAccordion(t){const e=this.parentElement.parentElement,o=this.parentElement.nextElementSibling;e.classList.contains("active")?o.style.maxHeight=o.scrollHeight+"px":o.style.maxHeight="0px";let a=e.querySelector("h2");if(a){let t={event:"accordion_expand_collapse",cd_accordion_name:`${a.textContent}`};window.dataLayer=window.dataLayer||[],dataLayer.push(t)}}const accordionItems=document.querySelectorAll(".accordion-cards");if(accordionItems){function sameClassList({classList:t},{classList:e}){return[...t].every(t=>e.contains(t))&&[...e].every(e=>t.contains(e))}for(let e of accordionItems){let o=e.previousElementSibling,a=e.nextElementSibling;a&&sameClassList(e,a)||o&&sameClassList(e,o)||e.classList.add("last-accordion"),o&&(sameClassList(e,o)||o.classList.contains("first-accordion"))||e.classList.add("first-accordion"),a&&(sameClassList(e,a)||e.classList.contains("first-accordion"))||e.classList.add("last-accordion")}}const faqAccordionToggle=document.querySelectorAll(".accordion > .row > .columns > .accordion__item");if(faqAccordionToggle)for(let n=0;n<faqAccordionToggle.length;n++)faqAccordionToggle[n].addEventListener("click",openFAQAccordion);function openFAQAccordion(t){const e=this.querySelector("div.rte-tables");this.classList.contains("active")?(this.classList.remove("active"),e.style.maxHeight="0px"):(this.classList.add("active"),e.style.maxHeight=e.scrollHeight+"px")}
function openShareModal(e){$("#"+e).foundation("open")}function defer(e){window.jQuery?e():setTimeout(function(){defer(e)},50)}$(window).on("load",function(){var e=window.location.toString(),t=0,o="",i="",n="",a=!1;null!=document.cookie.match(new RegExp("(^| )logout=([^;]+)"))&&(document.cookie.match(new RegExp("(^| )logout=([^;]+)"))[2].toLowerCase()==window.location.pathname.toLowerCase()||e.toLowerCase().includes("contact-us")||(document.cookie="logout="+window.location.pathname.toLowerCase()+window.location.search.toLowerCase()));if(e.toLowerCase().includes("contact-us")){if(queryValue=decodeURIComponent(e).split("?")[1],null!=queryValue){var l=queryValue.split("&");$.each(l,function(e,l){if(l.includes("nor=")){var s=l.split("=")[1],r=/^\d+$/;0==s||r.test(s)?t=s:(t=0,a=!0)}if(l.includes("wp=")){var c=l.split("=")[1];r=/^[a-zA-Z0-9_|-]*$/;""==c||r.test(c)?o=c:(o="",a=!0)}if(l.includes("oi=")){var d=l.split("=")[1];r=/^[a-zA-Z0-9_|-]*$/;""==d||r.test(d)?i=d:(i="",a=!0)}if(l.includes("pt=")){var u=l.split("=")[1];r=/^[a-zA-Z0-9_|-]*$/;""==u||r.test(u)?n=u:(n="",a=!0)}})}a&&(window.location.href=window.location.origin+window.location.pathname+"?nor="+t+"&wp="+o+"&oi="+i+"&pt="+n)}try{if(!("Tablesaw"in window))throw new Error("Tablesaw library not found.");if(!("init"in Tablesaw))throw new Error("Your tablesaw-init.js is newer than the core Tablesaw version.")}catch(e){console.warn(e.message);let t=0;const o=15,i=setInterval(()=>{"Tablesaw"in window&&"init"in Tablesaw?clearInterval(i):++t>=o&&(clearInterval(i),console.warn("Tablesaw not loaded after waiting period."))},300)}if(function e(t){var o=$(".rte-tables table:not(.custom-table)");o.length>0&&(o.addClass("tablesaw tablesaw-stack"),o.attr("data-tablesaw-mode","stack"),o.each(function(e,t){var o=$(t),i=o.find("thead"),n=o.find("*");if(o.removeAttr("style"),n.each(function(e,t){$(t).removeAttr("style")}),i.length<1){var a=o.find("tbody tr:first-child"),l=a.find("td"),s=[];l.each(function(e,t){var o=$("<th></th>");o.text($(t).text());var i=$(t).prop("attributes");$.each(i,function(){o.attr(this.name,this.value)}),s.push(o)});var r=$("<tr></tr>").html(s);i=$("<thead></thead>").html(r),o.prepend(i),a.remove()}})),$(".tablesaw:visible").length>0?t():setTimeout(function(){e(t)},50)}(function(){try{Tablesaw.init()}catch(e){console.error("Something went wrong while initializing the RTE tables",e)}}),$.fn.twentytwenty){var s=$("[data-image-slider]");s.length>0?s.twentytwenty({no_overlay:!0,move_slider_on_hover:!0}):console.log("No elements with '[data-image-slider]' attribute found.")}else console.warn("TwentyTwenty plugin is not loaded");$("[data-ajax-load]").ajaxLoad()}),$(window).on("load",function(){if(!("videojs"in window)&&$(".video-js").length>0)throw new Error("Brightcove library not found.");!function e(t){$(".video-js").length>0?t():setTimeout(function(){e(t)},50)}(function(){try{var e=videojs.getPlayers();for(var t in e)e[t].player().ready(function(){this.on("playing",function(){$(this.el_).siblings(".video-title__wrap").slideUp()});var e=$(this.el_).siblings(".video-playlist"),t=e.find(".vjs-playlist");if(e.length>0){var o=function(){var o=e.find(".video-playlist__upscroll"),i=e.find(".video-playlist__downscroll");0===t[0].scrollTop?o.find("i").css("visibility","hidden"):t[0].scrollTop+t[0].clientHeight>=t[0].scrollHeight?i.find("i").css("visibility","hidden"):(o.find("i").css("visibility","visible"),i.find("i").css("visibility","visible"))};if(t[0].scrollHeight>t[0].clientHeight){t.before('<div class="video-playlist__upscroll"><i class="icon-pressure"></i></div>'),t.after('<div class="video-playlist__downscroll"><i class="icon-triangle-up"></i></div>');var i=e.find(".video-playlist__upscroll");e.find(".video-playlist__downscroll").on("click",function(){t.animate({scrollTop:t.scrollTop()+t.height()/2},"fast",o)}),i.on("click",function(){t.animate({scrollTop:t.scrollTop()-t.height()/2},"fast",o)}),o()}}})}catch(e){console.error("Something went wrong while initializing the Brightcove player",e)}})});let peopleCarouselRendered=document.getElementsByClassName("bio-carousel");function peopleCarouselInit(){initPeopleCarousel(),wrapPeopleCarouselNavHandler()}function initPeopleCarousel(){$(".bio-carousel").find(".owl-carousel").owlCarousel({nav:!0,dots:!1,autoplay:!1,margin:40,responsive:{0:{items:1},640:{items:2},834:{autoHeight:!0,items:3,mouseDrag:!0,touchDrag:!0,slideBy:1}},navText:['<img src="/static/images/icons/chevron-left-blue.svg"/" alt="chevron-left">','<img src="/static/images/icons/chevron-right-blue.svg"/" alt="chevron-right-blue">']})}function wrapPeopleCarouselNavHandler(){let e=document.querySelectorAll(".bio-carousel .owl-nav"),t=document.querySelectorAll(".bio-carousel .owl-dots");e.length>0&&e.forEach((e,o)=>{let i=document.createElement("div");i.classList.add("bio-carousel__nav-wrapper"),e.parentNode.insertBefore(i,e),i.appendChild(e),i.appendChild(t[o])})}peopleCarouselRendered.length>0&&peopleCarouselInit(),$(".toggle-inbox").on("click",function(){$("#searchFilters").attr("disabled",!$(this).attr("checked")),this.checked?$("#searchFilters").css("display","block"):$("#searchFilters").css("display","none")}),$(document).ready(function(){$(".CoveoSearchButton").on("click",function(){var e=window.XMLHttpRequest;window.XMLHttpRequest=function(){var t=new e;return t.addEventListener("readystatechange",function(){4==t.readyState&&($(".coveo-query-summary-no-results-string")[0]?($(".CoveoBreadcrumb").hide(),$(".filtered-rows__filters__toggle").hide(),$(".coveo-tab-section.coveo-placeholder-fix").hide()):($(".CoveoBreadcrumb").show(),$(".filtered-rows__filters__toggle").show(),$(".coveo-tab-section.coveo-placeholder-fix").show()))},!1),t}})});
let enlargeImgRendered=document.getElementsByClassName("enlarge-img");function enlargeImageInit(){addEnlargeImageEvents(),addEnlargeImageOverlay()}function addEnlargeImageEvents(){document.querySelectorAll(".enlarge-img").forEach(e=>{const a=e.querySelector(".enlarge-img__wrap .image > button");e.querySelector(".enlarge-img .image > img").addEventListener("click",a=>{toggleEnlargeImage(e)}),a.addEventListener("click",a=>{toggleEnlargeImage(e)})})}function addEnlargeImageOverlay(){document.querySelectorAll(".enlarge-img").forEach(e=>{let a=e.querySelector(".enlarge-img .enlarge-reveal"),n=document.createElement("div"),l=e.querySelector(".enlarge-img .enlarge-reveal__inner img");n.classList.add("enlarge-overlay"),n.addEventListener("click",a=>{toggleEnlargeImage(e),a.stopPropagation()}),l.addEventListener("click",e=>{e.stopPropagation()}),a.parentNode.insertBefore(n,a),n.appendChild(a)})}function toggleEnlargeImage(e){const a=e.querySelector(".enlarge-img .enlarge-overlay");"none"!==a.style.display&&a.style.display?a.style.display="none":a.style.display="flex"}enlargeImgRendered.length>0&&enlargeImageInit();
let slideShowRendered=document.getElementsByClassName("slide-show");function slideShowInit(){initSlideShowCarousel(),hideEmptyCaptions(),wrapSlideShowNavHandler()}function isMobileOrBigger(){return window.matchMedia("(max-width: 833px)").matches}function updateImageHeight(e){const t=e._items[0][0].children[0].children[0],l=t.src;let i=parseInt(window.getComputedStyle(t,null).getPropertyValue("width"));const n=new Image;n.src=l;let o=e,r=isMobileOrBigger();if(r){const t=e.options.margin;let l=parseInt(o.$stage[0].style.width)-o.$stage[0].children.length*t;o.$stage[0].style.width=`${l}px`,i-=t}n.onload=function(){let e=this.width,t=this.height*i/e;for(let e=0;e<o.$stage[0].children.length;e++)o.$stage[0].children[e].children[0].children[0].style.height=`${t}px`,r&&(o.$stage[0].children[e].style.width=`${i}px`,o.$stage[0].children[e].children[0].children[0].style.width=`${i}px`)}}function updateWidth(e,t){const{index:l}=t.item,i=e.items()[0][0];let n=window.getComputedStyle(i,null).getPropertyValue("width");n=parseInt(n);const o=e.$element.parent()[0];let r=window.getComputedStyle(o,null).getPropertyValue("padding-right");r=parseInt(r);let s=window.getComputedStyle(o.children[0],null).getPropertyValue("margin-left");s=parseInt(s);let a=window.getComputedStyle(o.children[0],null).getPropertyValue("margin-right");a=parseInt(a);const d=e.$stage.parent()[0];if(0!==l){let e=window.getComputedStyle(o,null).getPropertyValue("padding-left");e=parseInt(e),d.style.width=`${n+e+r+s+a}px`,d.style.left=`-${e+s}px`,t.property&&(t.property.value=t.property.value+e+s)}else d.style.left="0px",d.style.width=`${n+r+a}px`}function initSlideShowCarousel(){let e=$(".slide-show").find(".owl-carousel");let t=e.children().length<=1;e.owlCarousel({nav:!0,dots:!0,autoplay:!1,loop:!t,items:1,smartSpeed:1e3,slideTransition:"var(--slb-bezier-curve)",margin:24,responsive:{0:{autoHeight:!1,loop:!1,mouseDrag:!1,touchDrag:!1},1440:{autoHeight:!0,loop:!t,mouseDrag:!0,touchDrag:!0,items:1}},navText:['<span class="icon-font-chevron-left-blue"></span>','<span class="icon-font-chevron-right-blue"></span>'],onTranslate:function(e){updateWidth(this,e)},onInitialized:function(e){const t=this.$element.parent()[0];let l=window.getComputedStyle(t,null).getPropertyValue("padding-right");l=parseInt(l);const i=e.currentTarget.children[0];let n=window.getComputedStyle(i,null).getPropertyValue("width");n=parseInt(n);let o=window.getComputedStyle(t.children[0],null).getPropertyValue("margin-right");o=parseInt(o),i.style.width=`${n+l+o}px`,updateImageHeight(this,n),n=window.getComputedStyle(t,null).getPropertyValue("width"),n=parseInt(n);const r=this.$stage.parent()[0];let s;r.addEventListener("scroll",function(e){clearTimeout(s),0===e.target.scrollLeft?(r.style.width=n-l+"px",r.style.left="0"):e.target.scrollLeft+e.target.offsetWidth>=e.target.scrollWidth?s=setTimeout(()=>{r.style.width!==n-l+"px"&&(r.style.width=n-l+"px")},500):(r.style.width=`${n}px`,r.style.left=`-${l}px`)}),$(".owl-prev").attr({"aria-label":"Previous slide",title:"Previous slide"}),$(".owl-next").attr({"aria-label":"Next slide",title:"Next slide"}),$(".owl-dot").each(function(e){$(this).attr({"aria-label":"Go to slide "+(e+1),title:"Go to slide "+(e+1)})})},onResized:function(e){updateWidth(this,e),updateImageHeight(this)}})}function hideEmptyCaptions(){let e=document.querySelectorAll(".slide-show .slide-show__caption");e.length>0&&e.forEach(e=>{""===e.innerHTML.trim()&&(e.style.display="none")})}function wrapSlideShowNavHandler(){let e=document.querySelectorAll(".slide-show .owl-nav"),t=document.querySelectorAll(".slide-show .owl-dots");e.length>0&&e.forEach((e,l)=>{let i=document.createElement("div");i.classList.add("slide-show__nav-wrapper"),e.parentNode.insertBefore(i,e),i.appendChild(e),i.appendChild(t[l])})}slideShowRendered.length>0&&slideShowInit();
let tabbedViewRendered=document.getElementsByClassName("tab-container");function tabbedViewInit(){addTabbedViewEvents()}function addTabbedViewEvents(){document.querySelectorAll(".tab-container").forEach(e=>{e.querySelectorAll(".tab-nav .tab").forEach((t,a)=>{t.addEventListener("click",c=>{c.preventDefault(),tabClick(e,t,a)})})})}function tabClick(e,t,a){let c=e.querySelectorAll(".tab-wrap .tab-pane");e.querySelectorAll(".tab-nav .tab.active").forEach(e=>{e.classList.remove("active")}),c.forEach(e=>{e.classList.remove("active")}),t.classList.add("active"),c[a].classList.add("active")}tabbedViewRendered.length>0&&tabbedViewInit();

// $(window).on("load", function () {
//   let videoPlaylistRendered = document.querySelectorAll('.video-wrap.with-playlist');

//   function videoPlaylistInit() {
//     addVideoPlaylistEvents();
//   }

//   function addVideoPlaylistEvents() {
//     $('.video-wrap.with-playlist').each((index, videoPlaylistEl) => {
//       const videoPlayers = videojs.getPlayers();
//       const $videoEl = $(videoPlaylistEl).find('.video-js');
//       const $titleEl = $(videoPlaylistEl).find('.video-title__wrap');

//       for (player in videoPlayers) {
//         videoPlayers[player].player().ready(function () {
//           // Sets initial title and subtitle for video.
//           videoPlayers[player].player().on('canplay', (e) => {
//             handleVideoTitles(videoPlaylistEl);
//           })
//           // Sets title and subtitle when new video is played
//           videoPlayers[player].player().on('playing', (e) => {
//             handleVideoTitles(videoPlaylistEl);
//           })
//         });
//       }

//       // Displays title slide down animation when video is hovered
//       $videoEl.mouseover((e) => {
//         const windowWidth = window.innerWidth;

//         if (windowWidth >= 834) {
//           $titleEl.stop().slideDown();
//         }
//       })

//       // Displays title slide up animation when video is unhovered
//       $videoEl.mouseleave((e) => {
//         const windowWidth = window.innerWidth;

//         if (windowWidth >= 834) {
//           $titleEl.stop().slideUp();
//         }
//       })

//       // Sets title element's display to 'flex' when on mobile view
//       $(window).resize((e) => {
//         const windowWidth = window.innerWidth;
//         if (windowWidth >= 834) {
//           $titleEl.attr('style', 'display: none')
//         } else {
//           $titleEl.attr('style', 'display: flex')
//         }
//       })
//     })
//   }

//   // Sets title and subtitle text
//   function handleVideoTitles(playlistEl) {
//     let $videoWrap = $(playlistEl).find(".video-js");
//     let $videoTitle = $(playlistEl).find(".video-title__wrap .video-title");
//     let $videoSubtitle = $(playlistEl).find(".video-title__wrap .video-subtitle");
//     let $videoDockTitle = $videoWrap.find(".vjs-dock-text .vjs-dock-title");
//     let $videoDockDescription = $videoWrap.find(".vjs-dock-text .vjs-dock-description");

//     $videoTitle.text($videoDockTitle.text());
//     $videoSubtitle.text($videoDockDescription.text());
//   }

//   if (videoPlaylistRendered.length > 0) videoPlaylistInit();
// });
let featuredVideoRendered=document.getElementsByClassName("video-carousel");function featuredVideoInit(){initFeaturedVideoCarousel(),wrapFeatureVideoNavHandler()}function initFeaturedVideoCarousel(){$(".video-carousel").find(".owl-carousel").owlCarousel({nav:!0,dots:!0,autoplay:!1,smartSpeed:1e3,slideTransition:"var(--slb-bezier-curve)",margin:24,responsive:{0:{autoHeight:!1,loop:!1,mouseDrag:!1,touchDrag:!1,margin:0},834:{autoHeight:!0,items:3,mouseDrag:!0,touchDrag:!0,slideBy:1,dotsEach:!0}},navText:['<img src="/static/images/icons/chevron-left-blue.svg"/" alt="chevron-left">','<img src="/static/images/icons/chevron-right-blue.svg"/" alt="chevron-right-blue">']})}function wrapFeatureVideoNavHandler(){let e=document.querySelectorAll(".video-carousel .owl-nav"),o=document.querySelectorAll(".video-carousel .owl-dots");e.length>0&&e.forEach((e,a)=>{let t=document.createElement("div");t.classList.add("video-carousel__nav-wrapper"),e.parentNode.insertBefore(t,e),t.appendChild(e),t.appendChild(o[a])})}featuredVideoRendered.length>0&&featuredVideoInit();
const relatedProductsRendered=document.querySelectorAll(".column-card-list.related-products");function relatedProductsInit(){addRelatedProductCards()}function createCardHtml(n){const e=n.premium?'\n        <div class="premium-label">\n            <img src="/static/images/icons/star-white.svg" />\n            <span>Premium</span>\n        </div>':"";return`\n        <div class="card">\n            <a href="#">\n                <div>\n                    <div class="image" style="background-image:url(${n.image});">${e}</div>\n                    <div class="content">\n                        <h3>\n                            <span class="tag">${n.type}</span>\n                        </h3>\n                        <h4>${n.heading}</h4>\n                        <p>${n.content}\n                            <button class="link-btn view-content-hover font-['SLBSans']">\n                                View\n                                <span class="link-btn__img-hover-state icon-font-arrow-right"></span>\n                            </button>\n                        </p>\n                        <button class="link-btn view-content font-['SLBSans']">\n                            View\n                            <span class="link-btn__img icon-font-arrow-right"></span>\n                        </button>\n                    </div>\n                </div>\n            </a>\n        </div>`}function addRelatedProductCards(){relatedProductsRendered.forEach(n=>{const e=n.querySelector(".column-card-list.related-products .cards"),t=n.dataset.ajaxLoad;fetch(t).then(n=>n.json()).then(t=>{const a=n.querySelector(".load-more");if(t.hideLoadButton)a.classList.add("hide"),t.cards.forEach(n=>{e.innerHTML+=createCardHtml(n)});else if(null!=t&&null!=t.cards){var r=t.cards.slice(0,4),d=r.length,c=t.cards.length;a.innerHTML+=`<span>You've viewed ${d} of ${c}</span>`,r.forEach(n=>{e.innerHTML+=createCardHtml(n)});let s=n.querySelector(".column-card-list.related-products .load-more button");s.addEventListener("click",function(){if(d<c){t.cards.slice(d,d+4).forEach(n=>{e.innerHTML+=createCardHtml(n)}),d=e.childNodes.length,n.querySelector(".column-card-list.related-products .load-more span").innerText=`You've viewed ${d} of ${c}`,s.blur()}})}})})}relatedProductsRendered.length>0&&relatedProductsInit();
const body=document.querySelector("body");function openSharePopupModal(){const e=document.getElementById("addThisShareModal");if(!e)return;const t=e.style.height;let n=e.parentElement.classList.contains("reveal-overlay")?e.parentElement:null;n&&(n.classList.contains("block")?(n&&n.classList.remove("block"),e.classList.remove("block")):(n&&n.classList.add("block"),e.classList.add("block"))),"100vh"===t?(e.style.height="0",body.style.overflowY="auto"):(e.style.height="100vh",body.style.overflowY="hidden");const o=document.querySelector("#addThisShareModal .close-button");o&&(o.removeEventListener("click",openSharePopupModal),o.addEventListener("click",openSharePopupModal))}function getWindowSize(){let e=document.body,t=document.documentElement;return{height:window.innerHeight||t.clientHeight||e.clientHeight,width:window.innerWidth||t.clientWidth||e.clientWidth}}function sharePageUrl(e){let t=getWindowSize(),n=t.height,o=t.width,i=Math.min(600,.6*n),a=Math.min(800,.8*o);return window.open(e,"",["height="+i,"left="+(o-a)/2,"top="+(n-i)/2,"width="+a,"status=1","toolbar=0"].join(","))}function bindShareBtnClickEvents(){const e=document.getElementById("share-linkedin"),t=document.getElementById("share-facebook"),n=document.getElementById("share-mail");let o=encodeURIComponent(document.URL),i=encodeURIComponent(document.title);e&&e.addEventListener("click",function(e){e.preventDefault();sharePageUrl(`https://www.linkedin.com/shareArticle?title=${i}&url=${o}`)}),t&&t.addEventListener("click",function(e){e.preventDefault();sharePageUrl(`https://www.facebook.com/sharer/sharer.php?t=${i}&u=${o}`)}),n&&n.addEventListener("click",function(e){e.preventDefault();const t="mailto:?subject=I'd like to share a link with you&body="+o;document.location=t})}function pageLoad(){const e=document.querySelector(".page-actions-strip a.share-action-item");e&&e.removeEventListener("click",openSharePopupModal),e&&e.addEventListener("click",openSharePopupModal);const t=document.querySelectorAll(".share-btn");t&&t.forEach(e=>{e&&e.removeEventListener("click",openSharePopupModal),e&&e.addEventListener("click",openSharePopupModal)}),bindShareBtnClickEvents()}window.addEventListener?window.addEventListener("load",pageLoad,!1):window.attachEvent&&window.attachEvent("onload",pageLoad);
const newsColumnRendered=document.querySelectorAll("section.multi-col-news-highlight");function nth(e){if(e>3&&e<21)return e+"th";switch(e%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd";default:return e+"th"}}function newsColumnInit(){formatNewsDates()}function formatNewsDates(){newsColumnRendered.forEach(e=>{e.querySelector(".multi-col-news-highlight__wrapper").querySelectorAll(".multi-col-news-highlight__item").forEach(e=>{let t=new Date(e.querySelector(".date").innerText),n=nth(t.getDate()),r=t.toLocaleString("en-us",{month:"long"}),l=t.getFullYear();e.querySelector(".date").innerText=`${n} ${r} ${l}`})})}newsColumnRendered.length>0&&newsColumnInit();
!function(e,t){"object"==typeof exports&&exports&&"string"!=typeof exports.nodeName?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):(e.Mustache={},t(e.Mustache))}(this,function(e){var t=Object.prototype.toString,n=Array.isArray||function(e){return"[object Array]"===t.call(e)};function r(e){return"function"==typeof e}function i(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function o(e,t){return null!=e&&"object"==typeof e&&t in e}var s=RegExp.prototype.test;var a=/\S/;function u(e){return!function(e,t){return s.call(e,t)}(a,e)}var c={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};var p=/\s*/,l=/\s+/,h=/\s*=/,f=/\s*\}/,d=/#|\^|\/|>|\{|&|=|!/;function v(e){this.string=e,this.tail=e,this.pos=0}function g(e,t){this.view=e,this.cache={".":this.view},this.parent=t}function w(){this.cache={}}v.prototype.eos=function(){return""===this.tail},v.prototype.scan=function(e){var t=this.tail.match(e);if(!t||0!==t.index)return"";var n=t[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n},v.prototype.scanUntil=function(e){var t,n=this.tail.search(e);switch(n){case-1:t=this.tail,this.tail="";break;case 0:t="";break;default:t=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=t.length,t},g.prototype.push=function(e){return new g(e,this)},g.prototype.lookup=function(e){var t,n=this.cache;if(n.hasOwnProperty(e))t=n[e];else{for(var i,s,a=this,u=!1;a;){if(e.indexOf(".")>0)for(t=a.view,i=e.split("."),s=0;null!=t&&s<i.length;)s===i.length-1&&(u=o(t,i[s])),t=t[i[s++]];else t=a.view[e],u=o(a.view,e);if(u)break;a=a.parent}n[e]=t}return r(t)&&(t=t.call(this.view)),t},w.prototype.clearCache=function(){this.cache={}},w.prototype.parse=function(t,r){var o=this.cache,s=o[t];return null==s&&(s=o[t]=function(t,r){if(!t)return[];var o,s,a,c=[],g=[],w=[],y=!1,x=!1;function k(){if(y&&!x)for(;w.length;)delete g[w.pop()];else w=[];y=!1,x=!1}function b(e){if("string"==typeof e&&(e=e.split(l,2)),!n(e)||2!==e.length)throw new Error("Invalid tags: "+e);o=new RegExp(i(e[0])+"\\s*"),s=new RegExp("\\s*"+i(e[1])),a=new RegExp("\\s*"+i("}"+e[1]))}b(r||e.tags);for(var m,E,U,T,j,S,V=new v(t);!V.eos();){if(m=V.pos,U=V.scanUntil(o))for(var C=0,A=U.length;C<A;++C)u(T=U.charAt(C))?w.push(g.length):x=!0,g.push(["text",T,m,m+1]),m+=1,"\n"===T&&k();if(!V.scan(o))break;if(y=!0,E=V.scan(d)||"name",V.scan(p),"="===E?(U=V.scanUntil(h),V.scan(h),V.scanUntil(s)):"{"===E?(U=V.scanUntil(a),V.scan(f),V.scanUntil(s),E="&"):U=V.scanUntil(s),!V.scan(s))throw new Error("Unclosed tag at "+V.pos);if(j=[E,U,m,V.pos],g.push(j),"#"===E||"^"===E)c.push(j);else if("/"===E){if(!(S=c.pop()))throw new Error('Unopened section "'+U+'" at '+m);if(S[1]!==U)throw new Error('Unclosed section "'+S[1]+'" at '+m)}else"name"===E||"{"===E||"&"===E?x=!0:"="===E&&b(U)}if(S=c.pop())throw new Error('Unclosed section "'+S[1]+'" at '+V.pos);return function(e){for(var t,n=[],r=n,i=[],o=0,s=e.length;o<s;++o)switch((t=e[o])[0]){case"#":case"^":r.push(t),i.push(t),r=t[4]=[];break;case"/":i.pop()[5]=t[2],r=i.length>0?i[i.length-1][4]:n;break;default:r.push(t)}return n}(function(e){for(var t,n,r=[],i=0,o=e.length;i<o;++i)(t=e[i])&&("text"===t[0]&&n&&"text"===n[0]?(n[1]+=t[1],n[3]=t[3]):(r.push(t),n=t));return r}(g))}(t,r)),s},w.prototype.render=function(e,t,n){var r=this.parse(e),i=t instanceof g?t:new g(t);return this.renderTokens(r,i,n,e)},w.prototype.renderTokens=function(e,t,n,r){for(var i,o,s,a="",u=0,c=e.length;u<c;++u)s=void 0,"#"===(o=(i=e[u])[0])?s=this.renderSection(i,t,n,r):"^"===o?s=this.renderInverted(i,t,n,r):">"===o?s=this.renderPartial(i,t,n,r):"&"===o?s=this.unescapedValue(i,t):"name"===o?s=this.escapedValue(i,t):"text"===o&&(s=this.rawValue(i)),void 0!==s&&(a+=s);return a},w.prototype.renderSection=function(e,t,i,o){var s=this,a="",u=t.lookup(e[1]);if(u){if(n(u))for(var c=0,p=u.length;c<p;++c)a+=this.renderTokens(e[4],t.push(u[c]),i,o);else if("object"==typeof u||"string"==typeof u||"number"==typeof u)a+=this.renderTokens(e[4],t.push(u),i,o);else if(r(u)){if("string"!=typeof o)throw new Error("Cannot use higher-order sections without the original template");null!=(u=u.call(t.view,o.slice(e[3],e[5]),function(e){return s.render(e,t,i)}))&&(a+=u)}else a+=this.renderTokens(e[4],t,i,o);return a}},w.prototype.renderInverted=function(e,t,r,i){var o=t.lookup(e[1]);if(!o||n(o)&&0===o.length)return this.renderTokens(e[4],t,r,i)},w.prototype.renderPartial=function(e,t,n){if(n){var i=r(n)?n(e[1]):n[e[1]];return null!=i?this.renderTokens(this.parse(i),t,n,i):void 0}},w.prototype.unescapedValue=function(e,t){var n=t.lookup(e[1]);if(null!=n)return n},w.prototype.escapedValue=function(t,n){var r=n.lookup(t[1]);if(null!=r)return e.escape(r)},w.prototype.rawValue=function(e){return e[1]},e.name="mustache.js",e.version="2.3.0",e.tags=["{{","}}"];var y=new w;return e.clearCache=function(){return y.clearCache()},e.parse=function(e,t){return y.parse(e,t)},e.render=function(e,t,r){if("string"!=typeof e)throw new TypeError('Invalid template! Template should be a "string" but "'+((n(i=e)?"array":typeof i)+'" was given as the first argument for mustache#render(template, view, partials)'));var i;return y.render(e,t,r)},e.to_html=function(t,n,i,o){var s=e.render(t,n,i);if(!r(o))return s;o(s)},e.escape=function(e){return String(e).replace(/[&<>"'`=\/]/g,function(e){return c[e]})},e.Scanner=v,e.Context=g,e.Writer=w,e});
