/*! jQuery Migrate v3.3.2 | (c) OpenJS Foundation and other contributors | jquery.org/license */ "undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],i=1;i<=3;i++){if(+o[i]<+n[i])return 1;if(+n[i]<+o[i])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.3.2",n.console&&n.console.log&&(s&&e("3.0.0")||n.console.log("JQMIGRATE: jQuery 3.0.0+ REQUIRED"),s.migrateWarnings&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),n.console.log("JQMIGRATE: Migrate is installed"+(s.migrateMute?"":" with logging active")+", version "+s.migrateVersion));var r={};function u(e){var t=n.console;s.migrateDeduplicateWarnings&&r[e]||(r[e]=!0,s.migrateWarnings.push(e),t&&t.warn&&!s.migrateMute&&(t.warn("JQMIGRATE: "+e),s.migrateTrace&&t.trace&&t.trace()))}function t(e,t,r,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return u(n),r},set:function(e){u(n),r=e}})}function o(e,t,r,n){e[t]=function(){return u(n),r.apply(this,arguments)}}s.migrateDeduplicateWarnings=!0,s.migrateWarnings=[],void 0===s.migrateTrace&&(s.migrateTrace=!0),s.migrateReset=function(){r={},s.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&u("jQuery is not compatible with Quirks Mode");var i,a,c,d={},l=s.fn.init,p=s.find,f=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,y=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,m=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;for(i in s.fn.init=function(e){var t=Array.prototype.slice.call(arguments);return"string"==typeof e&&"#"===e&&(u("jQuery( '#' ) is not a valid selector"),t[0]=[]),l.apply(this,t)},s.fn.init.prototype=s.fn,s.find=function(t){var r=Array.prototype.slice.call(arguments);if("string"==typeof t&&f.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(y,function(e,t,r,n){return"["+t+r+'"'+n+'"]'});try{n.document.querySelector(t),u("Attribute selector with '#' must be quoted: "+r[0]),r[0]=t}catch(e){u("Attribute selector with '#' was not fixed: "+r[0])}}return p.apply(this,r)},p)Object.prototype.hasOwnProperty.call(p,i)&&(s.find[i]=p[i]);o(s.fn,"size",function(){return this.length},"jQuery.fn.size() is deprecated and removed; use the .length property"),o(s,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"jQuery.parseJSON is deprecated; use JSON.parse"),o(s,"holdReady",s.holdReady,"jQuery.holdReady is deprecated"),o(s,"unique",s.uniqueSort,"jQuery.unique is deprecated; use jQuery.uniqueSort"),t(s.expr,"filters",s.expr.pseudos,"jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),t(s.expr,":",s.expr.pseudos,"jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),e("3.1.1")&&o(s,"trim",function(e){return null==e?"":(e+"").replace(m,"")},"jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&(o(s,"nodeName",function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"jQuery.nodeName is deprecated"),o(s,"isArray",Array.isArray,"jQuery.isArray is deprecated; use Array.isArray")),e("3.3.0")&&(o(s,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"jQuery.isNumeric() is deprecated"),s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){d["[object "+t+"]"]=t.toLowerCase()}),o(s,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[Object.prototype.toString.call(e)]||"object":typeof e},"jQuery.type is deprecated"),o(s,"isFunction",function(e){return"function"==typeof e},"jQuery.isFunction() is deprecated"),o(s,"isWindow",function(e){return null!=e&&e===e.window},"jQuery.isWindow() is deprecated")),s.ajax&&(a=s.ajax,c=/(=)\?(?=&|$)|\?\?/,s.ajax=function(){var e=a.apply(this,arguments);return e.promise&&(o(e,"success",e.done,"jQXHR.success is deprecated and removed"),o(e,"error",e.fail,"jQXHR.error is deprecated and removed"),o(e,"complete",e.always,"jQXHR.complete is deprecated and removed")),e},e("4.0.0")||s.ajaxPrefilter("+json",function(e){!1!==e.jsonp&&(c.test(e.url)||"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&c.test(e.data))&&u("JSON-to-JSONP auto-promotion is deprecated")}));var g=s.fn.removeAttr,h=s.fn.toggleClass,v=/\S+/g;function j(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}s.fn.removeAttr=function(e){var r=this;return s.each(e.match(v),function(e,t){s.expr.match.bool.test(t)&&(u("jQuery.fn.removeAttr no longer sets boolean properties: "+t),r.prop(t,!1))}),g.apply(this,arguments)};var Q,b=!(s.fn.toggleClass=function(t){return void 0!==t&&"boolean"!=typeof t?h.apply(this,arguments):(u("jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var e=this.getAttribute&&this.getAttribute("class")||"";e&&s.data(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==t&&s.data(this,"__className__")||"")}))}),w=/^[a-z]/,x=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;s.swap&&s.each(["height","width","reliableMarginRight"],function(e,t){var r=s.cssHooks[t]&&s.cssHooks[t].get;r&&(s.cssHooks[t].get=function(){var e;return b=!0,e=r.apply(this,arguments),b=!1,e})}),s.swap=function(e,t,r,n){var o,i,a={};for(i in b||u("jQuery.swap() is undocumented and deprecated"),t)a[i]=e.style[i],e.style[i]=t[i];for(i in o=r.apply(e,n||[]),t)e.style[i]=a[i];return o},e("3.4.0")&&"undefined"!=typeof Proxy&&(s.cssProps=new Proxy(s.cssProps||{},{set:function(){return u("JQMIGRATE: jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),s.cssNumber||(s.cssNumber={}),Q=s.fn.css,s.fn.css=function(e,t){var r,n,o=this;return e&&"object"==typeof e&&!Array.isArray(e)?(s.each(e,function(e,t){s.fn.css.call(o,e,t)}),this):("number"==typeof t&&(r=j(e),n=r,w.test(n)&&x.test(n[0].toUpperCase()+n.slice(1))||s.cssNumber[r]||u('Number-typed values are deprecated for jQuery.fn.css( "'+e+'", value )')),Q.apply(this,arguments))};var A,k,S,M,N=s.data;s.data=function(e,t,r){var n,o,i;if(t&&"object"==typeof t&&2===arguments.length){for(i in n=s.hasData(e)&&N.call(this,e),o={},t)i!==j(i)?(u("jQuery.data() always sets/gets camelCased names: "+i),n[i]=t[i]):o[i]=t[i];return N.call(this,e,o),t}return t&&"string"==typeof t&&t!==j(t)&&(n=s.hasData(e)&&N.call(this,e))&&t in n?(u("jQuery.data() always sets/gets camelCased names: "+t),2");t!==e&&T(e)!==T(t)&&u("HTML tags must be properly nested and closed: "+e)}var O=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,q=s.htmlPrefilter;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.htmlPrefilter=function(e){return P(e),e.replace(O,"<$1>")}},s.htmlPrefilter=function(e){return P(e),q(e)};var D,_=s.fn.offset;s.fn.offset=function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?_.apply(this,arguments):(u("jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},s.ajax&&(D=s.param,s.param=function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)});var E,F,J=s.fn.andSelf||s.fn.addBack;return s.fn.andSelf=function(){return u("jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),J.apply(this,arguments)},s.Deferred&&(E=s.Deferred,F=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],s.Deferred=function(e){var i=E(),a=i.promise();return i.pipe=a.pipe=function(){var o=arguments;return u("deferred.pipe() is deprecated"),s.Deferred(function(n){s.each(F,function(e,t){var r="function"==typeof o[e]&&o[e];i[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===a?n.promise():this,r?[e]:arguments)})}),o=null}).promise()},e&&e.call(i,i),i},s.Deferred.exceptionHook=E.exceptionHook),s}); +function(b){function a(){var e=document.createElement("bootstrap");var d={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in d){if(e.style[c]!==undefined){return{end:d[c]}}}return false}b.fn.emulateTransitionEnd=function(e){var d=false;var c=this;b(this).one("bsTransitionEnd",function(){d=true});var f=function(){if(!d){b(c).trigger(b.support.transition.end)}};setTimeout(f,e);return this};b(function(){b.support.transition=a();if(!b.support.transition){return}b.event.special.bsTransitionEnd={bindType:b.support.transition.end,delegateType:b.support.transition.end,handle:function(c){if(b(c.target).is(this)){return c.handleObj.handler.apply(this,arguments)}}}})}(jQuery);+function(h){var e=".sabai-dropdown-backdrop";var b='[data-toggle="dropdown"]';var a=function(i){h(i).on("click.bs.sabaidropdown",this.toggle)};a.VERSION="3.2.0";a.prototype.toggle=function(m){var l=h(this);if(l.is(".sabai-disabled, :disabled")){return}var k=f(l);var j=k.hasClass("sabai-open");d();if(!j){if("ontouchstart" in document.documentElement&&!k.closest(".sabai-navbar-nav").length){h('
').insertAfter(h(this)).on("click",d)}var i={relatedTarget:this};k.trigger(m=h.Event("show.bs.sabaidropdown",i));if(m.isDefaultPrevented()){return}l.trigger("focus");k.toggleClass("sabai-open").trigger("shown.bs.sabaidropdown",i)}return false};a.prototype.keydown=function(m){if(!/(38|40|27)/.test(m.keyCode)){return}var l=h(this);m.preventDefault();m.stopPropagation();if(l.is(".sabai-disabled, :disabled")){return}var k=f(l);var j=k.hasClass("sabai-open");if(!j||(j&&m.keyCode==27)){if(m.which==27){k.find(b).trigger("focus")}return l.trigger("click")}var n=" li:not(.sabai-divider):visible a";var o=k.find('[role="menu"]'+n+', [role="listbox"]'+n);if(!o.length){return}var i=o.index(o.filter(":focus"));if(m.keyCode==38&&i>0){i--}if(m.keyCode==40&&i
',trigger:"hover focus",title:"",delay:0,html:false,container:false,viewport:{selector:"body",padding:0}};c.prototype.init=function(l,j,g){this.enabled=true;this.type=l;this.$element=d(j);this.options=this.getOptions(g);this.$viewport=this.options.viewport&&d(this.options.viewport.selector||this.options.viewport);var k=this.options.trigger.split(" ");for(var h=k.length;h--;){var f=k[h];if(f=="click"){this.$element.on("click."+this.type,this.options.selector,d.proxy(this.toggle,this))}else{if(f!="manual"){var m=f=="hover"?"mouseenter":"focusin";var e=f=="hover"?"mouseleave":"focusout";this.$element.on(m+"."+this.type,this.options.selector,d.proxy(this.enter,this));this.$element.on(e+"."+this.type,this.options.selector,d.proxy(this.leave,this))}}}this.options.selector?(this._options=d.extend({},this.options,{trigger:"manual",selector:""})):this.fixTitle()};c.prototype.getDefaults=function(){return c.DEFAULTS};c.prototype.getOptions=function(e){e=d.extend({},this.getDefaults(),this.$element.data(),e);if(e.delay&&typeof e.delay=="number"){e.delay={show:e.delay,hide:e.delay}}return e};c.prototype.getDelegateOptions=function(){var e={};var f=this.getDefaults();this._options&&d.each(this._options,function(g,h){if(f[g]!=h){e[g]=h}});return e};c.prototype.enter=function(f){var e=f instanceof this.constructor?f:d(f.currentTarget).data("bs."+this.type);if(!e){e=new this.constructor(f.currentTarget,this.getDelegateOptions());d(f.currentTarget).data("bs."+this.type,e)}clearTimeout(e.timeout);e.hoverState="in";if(!e.options.delay||!e.options.delay.show){return e.show()}e.timeout=setTimeout(function(){if(e.hoverState=="in"){e.show()}},e.options.delay.show)};c.prototype.leave=function(f){var e=f instanceof this.constructor?f:d(f.currentTarget).data("bs."+this.type);if(!e){e=new this.constructor(f.currentTarget,this.getDelegateOptions());d(f.currentTarget).data("bs."+this.type,e)}clearTimeout(e.timeout);e.hoverState="out";if(!e.options.delay||!e.options.delay.hide){return e.hide()}e.timeout=setTimeout(function(){if(e.hoverState=="out"){e.hide()}},e.options.delay.hide)};c.prototype.show=function(){var q=d.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(q);var r=d.contains(document.documentElement,this.$element[0]);if(q.isDefaultPrevented()||!r){return}var p=this;var n=this.tip();var h=this.getUID(this.type);this.setContent();n.attr("id",h);this.$element.attr("aria-describedby",h);if(this.options.animation){n.addClass("sabai-fade")}var l=typeof this.options.placement=="function"?this.options.placement.call(this,n[0],this.$element[0]):this.options.placement;var t=/\s?auto?\s?/i;var u=t.test(l);if(u){l=l.replace(t,"")||"top"}n.detach().css({top:0,left:0,display:"block"}).addClass("sabai-"+l).data("bs."+this.type,this);this.options.container?n.appendTo(this.options.container):n.insertAfter(this.$element);var s=this.getPosition();var f=n[0].offsetWidth;var o=n[0].offsetHeight;if(u){var j=l;var k=this.$element.parent();var m=this.getPosition(k);l=l=="bottom"&&s.top+s.height+o-m.scroll>m.height?"top":l=="top"&&s.top-m.scroll-o<0?"bottom":l=="right"&&s.right+f>m.width?"left":l=="left"&&s.left-fl.top+l.height){m.top=l.top+l.height-i}}}else{var o=k.left-g;var f=k.left+g+e;if(ol.width){m.left=l.left+l.width-f}}}return m};c.prototype.getTitle=function(){var g;var e=this.$element;var f=this.options;g=e.attr("data-original-title")||(typeof f.title=="function"?f.title.call(e[0]):f.title);return g};c.prototype.getUID=function(e){do{e+=~~(Math.random()*1000000)}while(document.getElementById(e));return e};c.prototype.tip=function(){return(this.$tip=this.$tip||d(this.options.template))};c.prototype.arrow=function(){return(this.$arrow=this.$arrow||this.tip().find(".sabai-tooltip-arrow"))};c.prototype.validate=function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=null}};c.prototype.enable=function(){this.enabled=true};c.prototype.disable=function(){this.enabled=false};c.prototype.toggleEnabled=function(){this.enabled=!this.enabled};c.prototype.toggle=function(g){var f=this;if(g){f=d(g.currentTarget).data("bs."+this.type);if(!f){f=new this.constructor(g.currentTarget,this.getDelegateOptions());d(g.currentTarget).data("bs."+this.type,f)}}f.tip().hasClass("sabai-in")?f.leave(f):f.enter(f)};c.prototype.destroy=function(){clearTimeout(this.timeout);this.hide().$element.off("."+this.type).removeData("bs."+this.type)};function b(e){return this.each(function(){var h=d(this);var g=h.data("bs.sabaitooltip");var f=typeof e=="object"&&e;if(!g&&e=="destroy"){return}if(!g){h.data("bs.sabaitooltip",(g=new c(this,f)))}if(typeof e=="string"){g[e]()}})}var a=d.fn.sabaitooltip;d.fn.sabaitooltip=b;d.fn.sabaitooltip.Constructor=c;d.fn.sabaitooltip.noConflict=function(){d.fn.sabaitooltip=a;return this}}(jQuery);+function(d){var c=function(f,e){this.init("sabaipopover",f,e)};if(!d.fn.sabaitooltip){throw new Error("Popover requires tooltip.js")}c.VERSION="3.2.0";c.DEFAULTS=d.extend({},d.fn.sabaitooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''});c.prototype=d.extend({},d.fn.sabaitooltip.Constructor.prototype);c.prototype.constructor=c;c.prototype.getDefaults=function(){return c.DEFAULTS};c.prototype.setContent=function(){var g=this.tip();var f=this.getTitle();var e=this.getContent();g.find(".sabai-popover-title")[this.options.html?"html":"text"](f);g.find(".sabai-popover-content").empty()[this.options.html?(typeof e=="string"?"html":"append"):"text"](e);g.removeClass("sabai-fade sabai-top sabai-bottom sabai-left sabai-right sabai-in");if(!g.find(".sabai-popover-title").html()){g.find(".sabai-popover-title").hide()}};c.prototype.hasContent=function(){return this.getTitle()||this.getContent()};c.prototype.getContent=function(){var e=this.$element;var f=this.options;return e.attr("data-content")||(typeof f.content=="function"?f.content.call(e[0]):f.content)};c.prototype.arrow=function(){return(this.$arrow=this.$arrow||this.tip().find(".sabai-arrow"))};c.prototype.tip=function(){if(!this.$tip){this.$tip=d(this.options.template)}return this.$tip};function b(e){return this.each(function(){var h=d(this);var g=h.data("bs.sabaipopover");var f=typeof e=="object"&&e;if(!g&&e=="destroy"){return}if(!g){h.data("bs.sabaipopover",(g=new c(this,f)))}if(typeof e=="string"){g[e]()}})}var a=d.fn.sabaipopover;d.fn.sabaipopover=b;d.fn.sabaipopover.Constructor=c;d.fn.sabaipopover.noConflict=function(){d.fn.sabaipopover=a;return this}}(jQuery);+function(c){var d=function(f,e){this.$element=c(f).on("keydown.bs.sabaicarousel",c.proxy(this.keydown,this));this.$indicators=this.$element.find(".sabai-carousel-indicators");this.options=e;this.paused=this.sliding=this.interval=this.$active=this.$items=null;this.options.pause=="hover"&&this.$element.on("mouseenter.bs.sabaicarousel",c.proxy(this.pause,this)).on("mouseleave.bs.sabaicarousel",c.proxy(this.cycle,this))};d.VERSION="3.2.0";d.DEFAULTS={interval:5000,pause:"hover",wrap:true};d.prototype.keydown=function(f){switch(f.which){case 37:this.prev();break;case 39:this.next();break;default:return}f.preventDefault()};d.prototype.cycle=function(f){f||(this.paused=false);this.interval&&clearInterval(this.interval);this.options.interval&&!this.paused&&(this.interval=setInterval(c.proxy(this.next,this),this.options.interval));return this};d.prototype.getItemIndex=function(e){this.$items=e.parent().children(".sabai-item");return this.$items.index(e||this.$active)};d.prototype.to=function(g){var f=this;var e=this.getItemIndex(this.$active=this.$element.find(".sabai-item.sabai-active"));if(g>(this.$items.length-1)||g<0){return}if(this.sliding){return this.$element.one("slid.bs.sabaicarousel",function(){f.to(g)})}if(e==g){return this.pause().cycle()}return this.slide(g>e?"next":"prev",c(this.$items[g]))};d.prototype.pause=function(f){f||(this.paused=true);if(this.$element.find(".sabai-next, .sabai-prev").length&&c.support.transition){this.$element.trigger(c.support.transition.end);this.cycle(true)}this.interval=clearInterval(this.interval);return this};d.prototype.next=function(){if(this.sliding){return}return this.slide("next")};d.prototype.prev=function(){if(this.sliding){return}return this.slide("prev")};d.prototype.slide=function(m,h){var p=this.$element.find(".sabai-item.sabai-active");var f=h||p[m]();var k=this.interval;var n=m=="next"?"left":"right";var i=m=="next"?"first":"last";var j=this;if(!f.length){if(!this.options.wrap){return}f=this.$element.find(".sabai-item")[i]()}if(f.hasClass("sabai-active")){return(this.sliding=false)}var l=f[0];var e=c.Event("slide.bs.sabaicarousel",{relatedTarget:l,direction:n});this.$element.trigger(e);if(e.isDefaultPrevented()){return}this.sliding=true;k&&this.pause();if(this.$indicators.length){this.$indicators.find(".sabai-active").removeClass("sabai-active");var g=c(this.$indicators.children()[this.getItemIndex(f)]);g&&g.addClass("sabai-active")}var o=c.Event("slid.bs.sabaicarousel",{relatedTarget:l,direction:n});if(c.support.transition&&this.$element.hasClass("sabai-slide")){f.addClass("sabai-"+m);f[0].offsetWidth;p.addClass("sabai-"+n);f.addClass("sabai-"+n);p.one("bsTransitionEnd",function(){f.removeClass(["sabai-"+m,"sabai-"+n].join(" ")).addClass("sabai-active");p.removeClass(["sabai-active","sabai-"+n].join(" "));j.sliding=false;setTimeout(function(){j.$element.trigger(o)},0)}).emulateTransitionEnd(p.css("transition-duration").slice(0,-1)*1000)}else{p.removeClass("sabai-active");f.addClass("sabai-active");this.sliding=false;this.$element.trigger(o)}k&&this.cycle();return this};function b(e){return this.each(function(){var i=c(this);var h=i.data("bs.sabaicarousel");var f=c.extend({},d.DEFAULTS,i.data(),typeof e=="object"&&e);var g=typeof e=="string"?e:f.slide;if(!h){i.data("bs.sabaicarousel",(h=new d(this,f)))}if(typeof e=="number"){h.to(e)}else{if(g){h[g]()}else{if(f.interval){h.pause().cycle()}}}})}var a=c.fn.sabaicarousel;c.fn.sabaicarousel=b;c.fn.sabaicarousel.Constructor=d;c.fn.sabaicarousel.noConflict=function(){c.fn.sabaicarousel=a;return this};c(document).on("click.bs.sabaicarousel.data-api","[data-slide], [data-slide-to]",function(k){var g;var j=c(this);var f=c(j.attr("data-target")||(g=j.attr("href"))&&g.replace(/.*(?=#[^\s]+$)/,""));if(!f.hasClass("sabai-carousel")){return}var h=c.extend({},f.data(),j.data());var i=j.attr("data-slide-to");if(i){h.interval=false}b.call(f,h);if(i){f.data("bs.sabaicarousel").to(i)}k.preventDefault()});c(window).on("load",function(){c('[data-ride="sabaicarousel"]').each(function(){var e=c(this);b.call(e,e.data())})})}(jQuery);+function(e){var d='[data-dismiss="alert"]';var b=function(f){e(f).on("click",d,this.close)};b.VERSION="3.2.0";b.prototype.close=function(j){var i=e(this);var g=i.attr("data-target");if(!g){g=i.attr("href");g=g&&g.replace(/.*(?=#[^\s]*$)/,"")}var h=e(g);if(j){j.preventDefault()}if(!h.length){h=i.hasClass("sabai-alert")?i:i.parent()}h.trigger(j=e.Event("close.bs.sabaialert"));if(j.isDefaultPrevented()){return}h.removeClass("in");function f(){h.detach().trigger("closed.bs.sabaialert").remove()}e.support.transition&&h.hasClass("sabai-fade")?h.one("bsTransitionEnd",f).emulateTransitionEnd(150):f()};function c(f){return this.each(function(){var h=e(this);var g=h.data("bs.sabaialert");if(!g){h.data("bs.sabaialert",(g=new b(this)))}if(typeof f=="string"){g[f].call(h)}})}var a=e.fn.sabaialert;e.fn.sabaialert=c;e.fn.sabaialert.Constructor=b;e.fn.sabaialert.noConflict=function(){e.fn.sabaialert=a;return this};e(document).on("click.bs.sabaialert.data-api",d,b.prototype.close)}(jQuery);+function(d){var b=function(e){this.element=d(e)};b.VERSION="3.2.0";b.prototype.show=function(){var k=this.element;var h=k.closest("ul:not(.sabai-dropdown-menu)");var g=k.data("target");if(!g){g=k.attr("href");g=g&&g.replace(/.*(?=#[^\s]*$)/,"")}if(k.parent("li").hasClass("sabai-active")){return}var i=h.find(".sabai-active:last a")[0];var j=d.Event("show.bs.sabaitab",{relatedTarget:i});k.trigger(j);if(j.isDefaultPrevented()){return}var f=d(g);this.activate(k.closest("li"),h);this.activate(f,f.parent(),function(){k.trigger({type:"shown.bs.sabaitab",relatedTarget:i})})};b.prototype.activate=function(g,f,j){var e=f.find("> .sabai-active");var i=j&&d.support.transition&&e.hasClass("sabai-fade");function h(){e.removeClass("sabai-active").find("> .sabai-dropdown-menu > .sabai-active").removeClass("sabai-active");g.addClass("sabai-active");if(i){g[0].offsetWidth;g.addClass("sabai-in")}else{g.removeClass("sabai-fade")}if(g.parent(".sabai-dropdown-menu")){g.closest("li.sabai-dropdown").addClass("sabai-active")}j&&j()}i?e.one("bsTransitionEnd",h).emulateTransitionEnd(150):h();e.removeClass("sabai-in")};function c(e){return this.each(function(){var g=d(this);var f=g.data("bs.sabaitab");if(!f){g.data("bs.sabaitab",(f=new b(this)))}if(typeof e=="string"){f[e]()}})}var a=d.fn.tab;d.fn.sabaitab=c;d.fn.sabaitab.Constructor=b;d.fn.sabaitab.noConflict=function(){d.fn.sabaitab=a;return this};d(document).on("click.bs.sabaitab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(f){f.preventDefault();c.call(d(this),"show")})}(jQuery); (function(h,k,m,a){var j="growl",i="plugin_"+j,c={element:"body",type:"info",allow_dismiss:true,placement:{from:"top",align:"right"},offset:20,spacing:10,z_index:1031,delay:5000,timer:1000,url_target:"_blank",mouse_over:false,animate:{enter:"animated fadeInDown",exit:"animated fadeOutUp"},onShow:null,onShown:null,onHide:null,onHidden:null,icon_type:"class",template:''};var l=function(q,p){c=h.extend(true,{},c,p)},f=function(p){if(!p){h('[data-growl="container"]').find('[data-growl="dismiss"]').trigger("click")}else{h('[data-growl="container"][data-growl-position="'+p+'"]').find('[data-growl="dismiss"]').trigger("click")}},n=function(q,r,p){var r={content:{message:typeof r=="object"?r.message:r,title:r.title?r.title:null,icon:r.icon?r.icon:null,url:r.url?r.url:null}};p=h.extend(true,{},r,p);this.settings=h.extend(true,{},c,p);plugin=this;o(p,this.settings,plugin);this.$template=$template},o=function(p,q,r){var s={settings:q,$element:h(q.element),template:q.template};if(typeof q.offset=="number"){q.offset={x:q.offset,y:q.offset}}$template=b(s);g($template,s.settings);e($template,s.settings);d($template,s.settings,r)},b=function(q){var p=h(q.settings.template);p.addClass("sabai-alert-"+q.settings.type);p.attr("data-growl-position",q.settings.placement.from+"-"+q.settings.placement.align);p.find('[data-growl="dismiss"]').css("display","none");if(q.settings.allow_dismiss){p.find('[data-growl="dismiss"]').css("display","inline-block")}return p},g=function(p,q){p.find('[data-growl="dismiss"]').css({"z-index":((q.z_index-1)>=1?(q.z_index-1):1)});if(q.content.icon){if(q.icon_type.toLowerCase()=="class"){p.find('[data-growl="icon"]').addClass(q.content.icon)}else{if(p.find('[data-growl="icon"]').is("img")){p.find('[data-growl="icon"]').attr("src",q.content.icon)}else{p.find('[data-growl="icon"]').append('')}}}if(q.content.title){p.find('[data-growl="title"]').html(q.content.title)}if(q.content.message){p.find('[data-growl="message"]').html(q.content.message).css({"font-size":"14px","line-height":1.5})}if(q.content.url){p.find('[data-growl="url"]').attr("href",q.content.url).attr("target",q.url_target);p.find('[data-growl="url"]').css({position:"absolute",top:"0px",left:"0px",width:"100%",height:"100%","z-index":((q.z_index-2)>=1?(q.z_index-2):1)})}},e=function(q,r){var t=r.offset.y,p={position:(r.element==="body"?"fixed":"absolute"),margin:0,"z-index":r.z_index,display:"inline-block"},s=false;h('[data-growl-position="'+r.placement.from+"-"+r.placement.align+'"]').each(function(){return t=Math.max(t,parseInt(h(this).css(r.placement.from))+h(this).outerHeight()+r.spacing)});p[r.placement.from]=t+"px";q.css(p);if(r.onShow){r.onShow(event)}h(r.element).append(q);switch(r.placement.align){case"center":q.css({left:"50%",marginLeft:-(q.outerWidth()/2)+"px"});break;case"left":q.css("left",r.offset.x+"px");break;case"right":q.css("right",r.offset.x+"px");break}q.addClass("growl-animated");q.one("webkitAnimationStart oanimationstart MSAnimationStart animationstart",function(u){s=true});q.one("webkitAnimationEnd oanimationend MSAnimationEnd animationend",function(u){if(r.onShown){r.onShown(u)}});setTimeout(function(){if(!s){if(r.onShown){r.onShown(event)}}},600)},d=function(p,q,r){p.addClass(q.animate.enter);p.find('[data-growl="dismiss"]').on("click",function(){r.close()});p.on("mouseover",function(t){p.addClass("hovering")}).on("mouseout",function(){p.removeClass("hovering")});if(q.delay>=1){p.data("growl-delay",q.delay);var s=setInterval(function(){var t=parseInt(p.data("growl-delay"))-q.timer;if((!p.hasClass("hovering")&&q.mouse_over=="pause")||q.mouse_over!="pause"){p.data("growl-delay",t)}if(t<=0){clearInterval(s);r.close()}},q.timer)}};n.prototype={update:function(p,q){switch(p){case"icon":if(this.settings.icon_type.toLowerCase()=="class"){this.$template.find('[data-growl="icon"]').removeClass(this.settings.content.icon);this.$template.find('[data-growl="icon"]').addClass(q)}else{if(this.$template.find('[data-growl="icon"]').is("img")){this.$template.find('[data-growl="icon"]')}else{this.$template.find('[data-growl="icon"]').find("img").attr().attr("src",q)}}break;case"url":this.$template.find('[data-growl="url"]').attr("href",q);break;case"type":this.$template.removeClass("sabai-alert-"+this.settings.type);this.$template.addClass("sabai-alert-"+q);break;default:this.$template.find('[data-growl="'+p+'"]').html(q)}return this},close:function(){var r=this.$template,p=this.settings,s=r.css(p.placement.from),q=false;if(p.onHide){p.onHide(event)}r.addClass(this.settings.animate.exit);r.nextAll('[data-growl-position="'+this.settings.placement.from+"-"+this.settings.placement.align+'"]').each(function(){h(this).css(p.placement.from,s);s=(parseInt(s)+(p.spacing))+h(this).outerHeight()});r.one("webkitAnimationStart oanimationstart MSAnimationStart animationstart",function(t){q=true});r.one("webkitAnimationEnd oanimationend MSAnimationEnd animationend",function(t){h(this).remove();if(p.onHidden){p.onHidden(t)}});setTimeout(function(){if(!q){r.remove();if(p.onHidden){p.onHidden(event)}}},100);return this}};h.growl=function(r,p){if(r==false&&p.command=="closeAll"){f(p.position);return false}else{if(r==false){l(this,p);return false}}var q=new n(this,r,p);return q}})(jQuery,window,document); /*! * jQuery.scrollTo * Copyright (c) 2007-2015 Ariel Flesler - afleslergmailcom | http://flesler.blogspot.com * Licensed under MIT * http://flesler.blogspot.com/2007/10/jqueryscrollto.html * @projectDescription Easy element scrolling using jQuery. * @author Ariel Flesler * @version 2.1.0 */ ;(function(a){a(["jquery"],function(e){var b=e.sabaiScrollTo=function(h,g,f){return e(window).sabaiScrollTo(h,g,f)};b.defaults={axis:"xy",duration:0,limit:true};function c(f){return !f.nodeName||e.inArray(f.nodeName.toLowerCase(),["iframe","#document","html","body"])!==-1}e.fn.sabaiScrollTo=function(i,h,g){if(typeof h==="object"){g=h;h=0}if(typeof g==="function"){g={onAfter:g}}if(i==="max"){i=9000000000}g=e.extend({},b.defaults,g);h=h||g.duration;var f=g.queue&&g.axis.length>1;if(f){h/=2}g.offset=d(g.offset);g.over=d(g.over);return this.each(function(){if(i===null){return}var p=c(this),o=p?this.contentWindow||window:this,m=e(o),n=i,j={},l;switch(typeof n){case"number":case"string":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(n)){n=d(n);break}n=p?e(n):e(n,o);if(!n.length){return}case"object":if(n.is||n.style){l=(n=e(n)).offset()}}var q=e.isFunction(g.offset)&&g.offset(o,n)||g.offset;e.each(g.axis.split(""),function(t,u){var w=u==="x"?"Left":"Top",y=w.toLowerCase(),s="scroll"+w,v=m[s](),r=b.max(o,u);if(l){j[s]=l[y]+(p?0:v-m.offset()[y]);if(g.margin){j[s]-=parseInt(n.css("margin"+w),10)||0;j[s]-=parseInt(n.css("border"+w+"Width"),10)||0}j[s]+=q[y]||0;if(g.over[y]){j[s]+=n[u==="x"?"width":"height"]()*g.over[y]}}else{var x=n[y];j[s]=x.slice&&x.slice(-1)==="%"?parseFloat(x)/100*r:x}if(g.limit&&/^\d+$/.test(j[s])){j[s]=j[s]<=0?0:Math.min(j[s],r)}if(!t&&g.axis.length>1){if(v===j[s]){j={}}else{if(f){k(g.onAfterFirst);j={}}}}});k(g.onAfter);function k(s){var r=e.extend({},g,{queue:true,duration:h,complete:s&&function(){s.call(o,n,g)}});m.animate(j,r)}})};b.max=function(l,k){var j=k==="x"?"Width":"Height",g="scroll"+j;if(!c(l)){return l[g]-e(l)[j.toLowerCase()]()}var i="client"+j,m=l.ownerDocument||l.document,h=m.documentElement,f=m.body;return Math.max(h[g],f[g])-Math.min(h[i],f[i])};function d(f){return e.isFunction(f)||e.isPlainObject(f)?f:{top:f,left:f}}e.Tween.propHooks.scrollLeft=e.Tween.propHooks.scrollTop={get:function(f){return e(f.elem)[f.prop]()},set:function(f){var h=this.get(f);if(f.options.interrupt&&f._last&&f._last!==h){return e(f.elem).stop()}var g=Math.round(f.now);if(h!==g){e(f.elem)[f.prop](g);f._last=this.get(f)}}};return b})}(typeof define==="function"&&define.amd?define:function(b,a){if(typeof module!=="undefined"&&module.exports){module.exports=a(require("jquery"))}else{a(jQuery)}})); /*! * jquery-ajaxreadystate * @version 1.1.0 * @author Alexander O'Mara * @copyright Copyright (c) 2015 Alexander O'Mara * @license MPL 2.0 */ !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){a.ajaxreadystate=function(b,c){function d(){p=k.readyState=h.readyState,2>p&&(k.status=0,k.statusText="",k.responseText="");try{k.status=h.status||0}catch(a){}try{k.statusText=h.statusText||""}catch(a){}try{k.responseText=h.responseText||""}catch(a){}"function"==typeof j.readystate&&j.readystate(k,p),n&&4===p&&h.removeEventListener(n,d,!0),l&&l!==d&&l.apply(h,arguments)}function e(){var a=null;try{a=h.getAllResponseHeaders()}catch(b){}return a}var f,g,h,i,j,k,l,m,n,o=null,p=0;if(j="object"==typeof b?b:c||{},i=j.beforeSend,j.beforeSend=function(a,b){j.beforeSend=i,i&&i.apply(c,arguments),k=a,k.getAllResponseHeaders=function(){return p>1&&(o=o||e()),o},k.getResponseHeader=function(a){var b=null,c=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm;if(p>1){if(o=o||e(),o&&!m)for(m={};b=c.exec(o);)m[b[1].toLowerCase()]=b[2];m&&(a=a.toLowerCase(),b=m.hasOwnProperty(a)?m[a]:null)}return b},j=b,g=j.xhr,j.xhr=function(){j.xhr=g,h=g.apply(j,arguments),h.onreadystatechange=d;try{n=h.onreadystatechange!==d}catch(a){n=!0}return n&&(n=h.addEventListener)&&(h.onreadystatechange=null,h.addEventListener(n="readystatechange",d,!0)),h}},f=a.ajax.apply(a,arguments),!n)try{l=h.onreadystatechange,h.onreadystatechange=d}catch(q){}return f}}); var SABAI=SABAI||{};!function(e){var a,t;if(SABAI.console=window.console||{log:function(e){alert(e)}},SABAI.isRTL=!1,SABAI.init=function(a,t){!function(a){SABAI.fadeout(e(".sabai-fadeout",a))}(a),function(a){e("input.sabai-form-check-trigger",a).show().click(function(){var a=e(this);a.closest("table").find("input.sabai-form-check-target, input.sabai-form-check-trigger").not(":disabled").prop("checked",a.prop("checked"))})}(a),function(a){e("fieldset.sabai-form-collapsible",a).not(".sabai-form-collapsible-processed").each(function(){var a=e(this);a.find("> legend span:first").prepend(' ').wrap('').end().find("a.sabai-form-collapsible:first").click(function(){return e(this).toggleClass("sabai-form-collapsed").find("i").toggleClass("fa-caret-down").toggleClass(SABAI.isRTL?"fa-caret-left":"fa-caret-right").end().closest(".sabai-form-collapsible-processed").toggleClass("sabai-form-collapsed").find(".sabai-form-fields:first").slideToggle("fast",function(){autosize(e(this).find("textarea:visible"))}),!1}).end().addClass("sabai-form-collapsible-processed"),a.hasClass("sabai-form-collapsed")&&(a.hasClass("sabai-form-field-error")?a.removeClass("sabai-form-collapsed"):a.find(".sabai-form-fields:first").css({display:"none"}).end().find("a.sabai-form-collapsible:first").addClass("sabai-form-collapsed").find("i").removeClass("fa-caret-down").addClass(SABAI.isRTL?"fa-caret-left":"fa-caret-right"))})}(a),function(a){autosize(e("textarea:visible",a))}(a),function(a){"ontouchstart"in document.documentElement||e('[rel="sabaitooltip"]',a).each(function(){var t=e(this),i="sabai-content"===a.attr("id")&&t.closest("#sabai-inline-content").length?t.closest("#sabai-inline-content"):t.data("container")||a;t.sabaitooltip({container:i})}),e("a[data-popover-url]",a).bind("click",function(t){var i=e(this).unbind("hover"),n={html:!0,container:"sabai-content"===a.attr("id")&&i.closest("#sabai-inline-content").length?i.closest("#sabai-inline-content"):i.data("container")||a,url:i.data("popover-url")};SABAI.isRTL?n.placement=function(a,t){return e(t).offset().left>300?"left":"auto"}:n.placement=function(a,t){var i=e(t);return window.innerWidth-(i.offset().left+i.innerWidth())>300?"right":"auto"},SABAI.popover(i,n),t.preventDefault()})}(a),function(a){e("a.sabai-toggle",a).not(".sabai-toggle-processed").unbind("click").click(function(a){var t=e(this).addClass("sabai-toggle-processed"),i=e(t.data("toggle-target"));if(e.trim(i.html())){e(SABAI).trigger("toggle.sabai",{trigger:t,target:i});var n=t.data("toggle-cookie"),s=t.hasClass("sabai-toggle-slide")?"slideToggle":"toggle";i[s]("fast",function(){var a=i.is(":visible");t.toggleClass("sabai-active",a),n&&e.cookie(n,a?1:0,{path:SABAI.path,domain:SABAI.domain}),e(SABAI).trigger("toggled.sabai",{trigger:t,target:i})}),a.preventDefault()}})}(a),function(a){e(".sabai-carousel",a).each(function(){var a=e(this);a.data("carousel",a.bxSlider(a.data("carousel-options")||{})),e(SABAI).bind("entity_filter_form_toggled.sabai",function(e,t){a.parents(t.container).length&&a.data("carousel").redrawSlider()}),navigator.MaxTouchPoints>0||!/Chrome/.test(navigator.userAgent)||!/Google Inc/.test(navigator.vendor)||a.find("a").on("mousedown",function(){var a=e(this).prop("href");a&&(window.location.href=a)})})}(a),function(a){e("a.sabai-form-field-add",a).each(function(){var a=e(this),t=a.closest(".sabai-form-fields"),i=parseInt(a.data("field-max-num"));a.click(function(e){var n=a.data("field-next-index");SABAI.cloneField(t,a.data("field-name"),i,n,a),n&&a.data("field-next-index",++n),e.preventDefault()}),t.find("> .sabai-form-field:not(.sabai-form-field-add)").each(function(n){0!==n&&e(this).append('').find("a.sabai-form-field-remove").click(function(n){e(this).closest(".sabai-form-field").fadeTo("fast",0,function(){e(this).slideUp("fast",function(){e(this).remove(),i&&t.find("> .sabai-form-field:not(.sabai-form-field-add)").length .sabai-form-field:not(.sabai-form-field-add)").length>=i&&a.hide()})}(a),"function"==typeof prettyPrint&&prettyPrint(),"function"==typeof e.fn.prettyPhoto&&e('a[rel^="prettyPhoto"]',a).prettyPhoto(),e(".sabai-dropdown-toggle",a).sabaidropdown(),e(".sabai-click",a).click(),t&&t.call(null,a),e(SABAI).trigger("sabai_init.sabai",{context:a})},SABAI.fadeout=function(a,t){t=t||6e3,e(a).animate({opacity:"+=0"},t,function(){e(this).fadeOut("fast",function(){e(this).remove()})})},SABAI.cache=(a={},function(e,t,i){if(1==arguments.length)return!!a[e]&&!(a[e].expires<(new Date).getTime())&&a[e].data;i=i||600,a[e]={data:t,expires:(new Date).getTime()+1e3*i}}),SABAI.flash=function(a,t,i){if(null!=a)if("string"==typeof a)e.growl(a,{type:t,delay:"danger"===t?0:void 0!==i?i:5e3,z_index:999999});else for(var n=0;n
',t.url){var n=SABAI.cache(t.url);n?t.content=n:(t.content=" ",e.get(t.url,{__ajax:1},function(e){SABAI.cache(t.url,e),a.attr("data-content",e).data("bs.sabaipopover").tip().find(".sabai-popover-content").html(e),a.sabaipopover("show")}))}a.sabaipopover(t).sabaipopover("show").addClass("sabai-popover-processed").data("bs.sabaipopover").tip().css(t.width?{width:t.width}:{}).find(".sabai-close").on("click",function(){a.data("bs.sabaipopover").hide()}),SABAI.popoverInit||(e("body").on("click",function(a){e(".sabai-popover-processed").each(function(){e(this).is(a.target)||0!==e(this).has(a.target).length||0!==e(".sabai-popover").has(a.target).length||e(this).sabaipopover("hide")})}),SABAI.popoverInit=!0)}},SABAI.modal=function(a,i,n,s){return t=s||(e("body").has("#sabai-modal").length?e("#sabai-modal"):function(){var a=e('').prependTo("body").find(".sabai-close").mousedown(function(){e("#sabai-modal").fadeOut("fast",function(){e(this).remove()})}).end();return e(document).keyup(function(a){27==a.keyCode&&e("#sabai-modal").find(".sabai-close").mousedown()}),a}()),(i||a)&&(i&&t.find(".sabai-modal-title > span:first").text(i),a&&t.find(".sabai-modal-content").html(a),t.show()),void 0!==n&&(0===n&&(n=t.find(".sabai-modal-container").width()),function(e,a){var t,i,n=document.documentElement.clientWidth<=768?.95:.8;(null===a||a>document.documentElement.clientWidth*n)&&(a=document.documentElement.clientWidth*n),e.find(".sabai-modal-container").css({width:a+"px",left:SABAI.isRTL?"auto":document.documentElement.clientWidth/2-a/2,right:SABAI.isRTL?document.documentElement.clientWidth/2-a/2:"auto",top:.07*document.documentElement.clientHeight}),i=e.find(".sabai-form-buttons").length?e.find(".sabai-form-buttons").outerHeight()+10:20,e.find(".sabai-modal-footer").css("height",i+"px"),t=.8*document.documentElement.clientHeight-e.find(".sabai-modal-title").outerHeight()-i,e.find(".sabai-modal-content").css("max-height",t+"px"),e.get(0).scrollHeight>document.documentElement.clientHeight&&e.find(".sabai-modal-content").css("height",t+"px")}(t,n)),t},SABAI.ajaxLoader=function(a,t,i){var n=e(a);if(i){var s=e(i);if(!s.length)return;if(t)s.next(".sabai-ajax-loader").remove();else{var o=e('
').css("top",parseInt(s.position().top,10)+parseInt(s.css("margin-top"),10)+"px").width(s.outerWidth()).height(s.outerHeight());s.after(o)}n.length&&n.blur().prop("disabled",!t).css("pointer-events",t?"auto":"none")}else{if(!n.length)return;n.blur().prop("disabled",!t).css("pointer-events",t?"auto":"none").toggleClass("sabai-ajax-loading",!t)}},SABAI.ajax=function(a){var t,i,n,s=e.extend({trigger:null,async:!0,type:"get",url:"",data:"",processData:!0,target:"",container:null,modalWidth:null,cache:!1,cacheLifetime:600,onSendData:null,onSuccess:null,onError:null,onErrorFlash:!0,onContent:null,onSuccessFlash:!1,onReadyState:null,effect:null,scroll:!1,replace:!1,highlight:!1,callback:!1,loadingImage:!0,position:!1,toggle:!1,pushState:!1,state:{}},a),o="",r=0,l=function(a,t){if("#sabai-modal"===s.container){if(s.trigger){var i=s.trigger.attr("data-modal-title");void 0!==i&&!1!==i||(i=s.trigger.attr("title")||s.trigger.attr("data-original-title")||""),SABAI.modal(a,i,s.modalWidth,t)}else SABAI.modal(a,"",s.modalWidth,t);s.onContent||(s.onContent=function(e,a,t){a.focusFirstInput()}),s.onContent(a,t,s.trigger)}else{if(s.trigger&&s.trigger.hasClass("sabai-toggle")&&e(SABAI).trigger("toggle.sabai",{trigger:s.trigger,target:t}),s.replace)s.scroll&&o&&SABAI.scrollTo(o),t=t.hide().after(a).remove().next(),s.onContent&&s.onContent(a,t,s.trigger);else{switch(s.callback||"sabai-content"==t.attr("id")||"sabai-inline-content"==t.attr("id")||t.addClass("sabai-ajax"),s.effect){case"slide":t.hide().html(a).slideDown("fast",function(){s.onContent&&s.onContent(a,t,s.trigger)});break;default:t.html(a).show(),s.onContent&&s.onContent(a,t,s.trigger)}s.scroll&&o&&SABAI.scrollTo(o)}if(s.highlight&&t.effect("highlight",{},1500),s.trigger&&s.trigger.hasClass("sabai-toggle")){var n=t.is(":visible");s.trigger.removeAttr("onclick").removeClass("sabai-click").toggleClass("sabai-active",n);var r=s.trigger.data("toggle-cookie");r&&e.cookie(r,n?1:0,{path:SABAI.path,domain:SABAI.domain}),e(SABAI).trigger("toggled.sabai",{trigger:s.trigger,target:t})}}if(s.pushState&&window.history&&window.history.pushState){var l=SABAI.parseUrl(s.url);l.pathname!==location.pathname&&(l.pathname=location.pathname),s.state.data=s.data,s.state.url=s.url,s.state.container=s.container,s.state.target=s.target,window.history.pushState(s.state,null,l.toString())}SABAI.init(t),e(SABAI).trigger("loaded.sabai",{target:t,selector:o})};if(s.trigger){if(s.trigger.hasClass("sabai-disabled"))return;s.trigger.data("cookie-name")&&s.trigger.data("cookie-value")&&e.cookie(s.trigger.data("cookie-name"),s.trigger.data("cookie-value"),{path:SABAI.path,domain:SABAI.domain}),s.url||(s.url=s.trigger.data("sabai-remote-url")),s.trigger.hasClass("sabai-dropdown-link")&&(s.trigger=s.trigger.closest(".sabai-btn-group").find(".sabai-dropdown-toggle"))}if(s.url){if(s.container)if(o=s.container,"#sabai-modal"===s.container)t=SABAI.modal();else if(s.target?(t=e(s.container).find(s.target),o=s.container+" "+s.target):t=e(s.container),!t.length)return void SABAI.console.log(o);if(s.cache&&"get"===s.type){var c=SABAI.cache(s.container+s.url);if(c)return void l(c,t)}s.onSendData&&("object"!=typeof s.data&&(s.data={}),s.onSendData(s.data,s.trigger)),"object"==typeof s.data?(s.data.hasOwnProperty("__ajax")||(s.data.__ajax=o||1),s.data=e.param(s.data)):"string"==typeof s.data&&""!==s.data?s.data+="&__ajax="+(o?encodeURIComponent(o):1):s.data="__ajax="+(o?encodeURIComponent(o):1),e.ajaxreadystate({global:!0,async:s.async,type:s.type,dataType:"html",url:s.url,data:s.data,processData:s.processData,cache:!1,beforeSend:function(e){s.loadingImage&&(t&&"sabai-content"!==t.attr("id")&&t.is(":visible")?(i="sabai-modal"===t.attr("id")?t.find(".sabai-modal-content"):t,SABAI.ajaxLoader(s.trigger,!1,i)):SABAI.ajaxLoader(s.trigger))},complete:function(a,r){switch(s.loadingImage&&SABAI.ajaxLoader(s.trigger,!0,s.replace?o:i),r){case"success":if(void 0!==n){s.loadingImage&&SABAI.ajaxLoader(s.trigger,!0);break}278==a.status||a.getResponseHeader("content-type").indexOf("json")>-1?function(a,t){try{var i=JSON.parse(a.replace(//g,""));if(s.onSuccess&&!s.onSuccess(i,t,s.trigger))return void(s.onSuccessFlash&&i.messages&&SABAI.flash(i.messages,"success"));if(i.url)return"#sabai-modal"===s.container&&e("#sabai-modal").hide(),void(window.location=i.url);s.onSuccessFlash&&i.messages&&SABAI.flash(i.messages,"success")}catch(e){SABAI.console.log("Failed parsing response:

"+a.toString().replace(//g,">")+"

"+e.toString()+"

")}}(a.responseText,t):(l(a.responseText,t),"get"==s.type&&s.cache&&SABAI.cache(s.container+s.url,a.responseText,s.cacheLifetime));break;case"error":!function(e,a){try{var t=JSON.parse(e.replace(//g,""));if(s.onError){if(!s.onError(t,a,s.trigger))return void(s.onErrorFlash&&t.messages&&SABAI.flash(t.messages,"danger"))}else if(t.url)return void(window.location=t.url);s.onErrorFlash&&t.messages&&(s.trigger?(SABAI.popover(s.trigger,{content:t.messages[0],html:!0,container:s.trigger.closest(".sabai"),title:s.trigger.attr("data-sabaipopover-title")||""}),s.trigger.attr("onclick","return false;")):SABAI.flash(t.messages,"danger"))}catch(a){SABAI.console.log("Failed parsing response:

"+e.toString().replace(//g,">")+"

"+a.toString()+"

")}}(a.responseText,t)}},readystate:function(e,a){if(s.onReadyState&&a>2&&a<4&&-1!==e.getResponseHeader("Content-Type").indexOf("application/json")){++r;var i=void 0!==n?e.responseText.substring(n.length):e.responseText;try{var o=JSON.parse(i.replace(//g,""));s.onReadyState(o,t,s.trigger,r)}catch(e){SABAI.console.log(e.toString())}n=e.responseText}}})}},SABAI.scrollTo=function(a,t,i){a=a instanceof jQuery?a:e(a),t=null!=t?t:1e3,i=null!=i?i:0,e.sabaiScrollTo(a,t,{offset:{top:i}})},SABAI.states=function(a,t){var i=[],n={visible:"invisible",enabled:"disabled",unchecked:"checked",unload_options:"load_options",show_options:"hide_options"},s=function(a,t,n,s){var r=e(a,s);r.length&&r.each(function(){var a,r,l,c,d,f,u,g=e(this);for(a in g.data("guid")||g.data("guid",SABAI.guid()),n)if(c=n[a],f=".sabai-cloned",(l=g.closest(f)).length||(f=c.container||"form",l=g.closest(f)),l.length)if((r=l.find(a)).length){switch(d=["initialized.sabai"],c.type){case"selected":case"unselected":d.push("change","cloneremoved.sabai");break;case"checked":case"unchecked":d.push("change","cloneremoved.sabai","switchChange.bootstrapSwitch");break;case"focus":case"blur":d.push("focus","blur");break;case"request":case"requested":d.push("requested.sabai");break;case"values":case"count":default:d.push("keyup","change","cloneremoved.sabai")}i.push(r);for(var h=0;h":return e>a}},c=function(a,t,i,n,s,o){switch(t){case"invisible":a.toggleClass("sabai-form-states-invisible",i),i?o?a[a.hasClass("sabai-has-error")?"show":"hide"]():a.hide():a.is(":hidden")&&(o?a.show():(a.css("opacity",0).slideDown(100).animate({opacity:1},{queue:!1,duration:"slow"}),a.hasClass("sabai-form-field")&&a.parent(".sabai-form-inline").length&&a.css("display","inline-block")));break;case"disabled":a.toggleClass("sabai-form-states-disabled",i);break;case"checked":a.find(":checkbox").prop("checked",i).change();break;case"load_options":if("change"!==s&&"initialized"!==s)return;var r=a.find("select");if(r.find('option[value!=""]').remove(),i){var l=r.data("load-url"),c=l+n.val(),d=SABAI.cache(c),f=r.data("options-prefix")||"",u=function(t){if(SABAI.cache(c,t),void 0!==t&&0===t.length)return r.data("show-empty")||a.addClass("sabai-hidden"),r.data("default-value","").val(""),void r.trigger("change",[o]);if(e.each(t,function(a,t){r.append(e("").text(f+t[1]).val(t[0]))}),!a.closest(".sabai-cloned").length){var i=r.data("default-value");void 0!==i&&(r.val(i),r.trigger("change",[o]))}if(!a.hasClass("sabai-form-states-invisible")&&a.is(":hidden")&&r.find('option[value!=""]').length){a.removeClass("sabai-hidden").addClass("sabai-was-hidden");var n=a.hasClass("sabai-form-field")&&a.parent(".sabai-form-inline").length?"inline":"block";o?a.css("display",n):a.hide().css("display",n).fadeIn("fast")}};!1!==d?u(d):(n.addClass("sabai-ajax-loading"),e.getJSON(l,{value:n.val()},u).always(function(){n.removeClass("sabai-ajax-loading")}))}else!a.is(":hidden")&&a.hasClass("sabai-was-hidden")&&(a.addClass("sabai-hidden"),r.data("default-value","").val(""),r.trigger("change",[o]));break;case"request_url":i?SABAI.ajax({target:a,url:a.data("request-url"),onSuccess:function(e,t,i){a.data("request-result","success").trigger("requested.sabai")},onError:function(e,t,i){a.data("request-result","error").trigger("requested.sabai")},onContent:function(e,t,i){a.data("request-result","error").trigger("requested.sabai")}}):a.data("request-result","");break;case"hide_options":var g=[];if(n.each(function(){"checkbox"===this.type||"radio"===this.type?this.checked&&g.push(this.value):g.push(e(this).val())}),!i||!g.length)return;a.find("input").each(function(){var a=e(this),t=a.data("values"),i=a.closest(".sabai-radio, .sabai-checkbox");if(i.length){for(var n=0;n .sabai-form-field:not(.sabai-form-field-add)"),l=n||r.length;if(!(i&&r.length>=i)){var c=r.first(),d=c.clone().addClass("sabai-cloned").attr("id","sabai-"+SABAI.guid()).find(":input").each(function(){var a=jQuery(this);a.attr("name")&&(field_name=s.data("field-form-wrap")?s.data("field-form-wrap")+"["+t+"]":t,a.attr("name",a.attr("name").replace(field_name+"[0]",field_name+"["+l+"]"))),a.attr("id")&&a.attr("id",a.attr("id")+"-"+l),a.removeData("default-value").removeAttr("data-default-value"),e.fn.uniform&&a.parent().is(".selector")&&a.prev("span").remove().end().unwrap().uniform().parent(".selector").show()}).end().clearInput().removeClass("sabai-form-field-error").find("span.sabai-form-field-error").remove().end().find(".sabai-was-hidden").hide().end().hide().insertAfter(r.last());d.append('').slideDown("fast").focusFirstInput().find("a.sabai-form-field-remove").click(function(a){e(this).closest(".sabai-form-field").fadeTo("fast",0,function(){e(this).slideUp("fast",function(){e(this).remove();var a=o.find("> .sabai-form-field:not(.sabai-form-field-add)");i&&a.length=i&&s.hide()}},SABAI.addOption=function(a,t,i,n,s){var o=e(a),r=e(i).closest(".sabai-form-field-option"),l=o.find("> .sabai-form-field-option"),c=n?t+"[default][]":t+"[default]",d=r.find("input[name='"+c+"']").val(),f=r.clone().find(":text").each(function(){var e=jQuery(this);e.attr("name")&&e.attr("name",e.attr("name").replace(t+"[options]["+d+"]",t+"[options]["+l.length+"]"))}).end().clearInput().find("input[name='"+c+"']").val(l.length).end().hide().insertAfter(r);return s&&s.call(null,f),f.slideDown("fast").focusFirstInput(),!1},SABAI.removeOption=function(a,t,i){var n=e(a).find("> .sabai-form-field-option:not(.sabai-form-field-option-disabled)");if(1!==n.length)return!!confirm(i)&&void e(t).closest(".sabai-form-field-option").slideUp("fast",function(){e(this).remove()});n.clearInput()},SABAI.guid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var a=16*Math.random()|0;return("x"==e?a:3&a|8).toString(16)})},window.history&&window.history.pushState){var i=!1,n=window.location.href.replace(/%2F/g,"/");e(window).on("popstate",function(a){if(i||(i=!0,location.href.replace(/%2F/g,"/")!=n)){var t=a.originalEvent.state;t?(t.data.__ajax=t.target?t.container+" "+t.target:t.container,SABAI.ajax(t),e(SABAI).trigger("sabaipopstate.sabai",t)):(e(window).off("popstate"),window.location.href=window.location.href)}})}SABAI.parseUrl=function(a){var t=a?e("").prop("href",a)[0]:window.location;if(t.query={},t.search&&"string"==typeof t.search){var i=t.search.substr(1).replace(/\+/g,"%20").split("&");e.each(i,function(e,a){var i=a.split("=");try{i[1]=decodeURIComponent(i[1])}catch(e){}t.query[i[0]]=i[1]})}return t},SABAI.getScript=function(a,t,i){return t=e.extend(t||{},{dataType:"script",cache:!0,url:a}),jQuery.ajax(t,i)},e.fn.sabai=function(){SABAI.init(this)},e.fn.focusTextRange=function(e,a){if(this.is('input[type="text"]')||this.is("textarea")){var t=this.get(0);if(t.setSelectionRange)t.focus(),t.setSelectionRange(e,a);else if(t.createTextRange){var i=t.createTextRange();i.collapse(!0),i.moveEnd("character",a),i.moveStart("character",e),i.select()}}return this},e.fn.focusFirstInput=function(){var e=this.find('input[type="text"],input[type="password"],textarea').not(".sabai-focus-off").filter(":visible:first");if(!e.length)return this;var a=e.val().length;return e.focusTextRange(a,a),this},e.fn.clearInput=function(){return this.each(function(){var a=e(this),t=a.get(0).tagName.toLowerCase();if(void 0===a.data("default-value"))if("input"===t){var i=a.attr("type");"checkbox"===i||"radio"===i?a.prop("checked",!1):a.val("")}else if("textarea"===t)a.val("");else{if("select"!==t)return a.find(":input").clearInput();a.prop("selectedIndex",0)}else a.val(a.data("default-value"))})}}(jQuery); /*! autosize 4.0.2 license: MIT http://www.jacklmoore.com/autosize */ !function(e,t){if("function"==typeof define&&define.amd)define(["module","exports"],t);else if("undefined"!=typeof exports)t(module,exports);else{var n={exports:{}};t(n,n.exports),e.autosize=n.exports}}(this,function(e,t){"use strict";var n,o,p="function"==typeof Map?new Map:(n=[],o=[],{has:function(e){return-11&&!f.isFunction(p)){v=f.extend({},b.defaults,v);if(typeof v.expires==="number"){var r=v.expires,u=v.expires=new Date();u.setTime(+u+r*86400000)}return(document.cookie=[d(q),"=",h(p),v.expires?"; expires="+v.expires.toUTCString():"",v.path?"; path="+v.path:"",v.domain?"; domain="+v.domain:"",v.secure?"; secure":""].join(""))}var w=q?undefined:{};var s=document.cookie?document.cookie.split("; "):[];for(var o=0,m=s.length;o1)return this.each(function(){e(this).bxSlider(n)}),this;var s={},o=this,r=e(window).width(),a=e(window).height(),l=function(){s.settings=e.extend({},t,n),s.settings.slideWidth=parseInt(s.settings.slideWidth),s.children=o.children(s.settings.slideSelector),s.children.length1||s.settings.maxSlides>1?!0:!1,s.carousel&&(s.settings.preloadImages="all"),s.minThreshold=s.settings.minSlides*s.settings.slideWidth+(s.settings.minSlides-1)*s.settings.slideMargin,s.maxThreshold=s.settings.maxSlides*s.settings.slideWidth+(s.settings.maxSlides-1)*s.settings.slideMargin,s.working=!1,s.controls={},s.interval=null,s.animProp="vertical"===s.settings.mode?"top":"left",s.usingCSS=s.settings.useCSS&&"fade"!==s.settings.mode&&function(){var e=document.createElement("div"),t=["WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var i in t)if(void 0!==e.style[t[i]])return s.cssPrefix=t[i].replace("Perspective","").toLowerCase(),s.animProp="-"+s.cssPrefix+"-transform",!0;return!1}(),"vertical"===s.settings.mode&&(s.settings.maxSlides=s.settings.minSlides),o.data("origStyle",o.attr("style")),o.children(s.settings.slideSelector).each(function(){e(this).data("origStyle",e(this).attr("style"))}),d()},d=function(){o.wrap('
'),s.viewport=o.parent(),s.loader=e('
'),s.viewport.prepend(s.loader),o.css({width:"horizontal"===s.settings.mode?1e3*s.children.length+215+"%":"auto",position:"absolute"}),s.usingCSS&&s.settings.easing?o.css("-"+s.cssPrefix+"-transition-timing-function",s.settings.easing):s.settings.easing||(s.settings.easing="swing");v();s.viewport.css({width:"100%",overflow:"hidden",position:"relative"}),s.viewport.parent().css({maxWidth:u()}),s.settings.pager||s.settings.controls||s.viewport.parent().css({margin:"0 auto 0px"}),s.children.css({"float":"horizontal"===s.settings.mode?"left":"none",listStyle:"none",position:"relative"}),s.children.css("width",h()),"horizontal"===s.settings.mode&&s.settings.slideMargin>0&&s.children.css("marginRight",s.settings.slideMargin),"vertical"===s.settings.mode&&s.settings.slideMargin>0&&s.children.css("marginBottom",s.settings.slideMargin),"fade"===s.settings.mode&&(s.children.css({position:"absolute",zIndex:0,display:"none"}),s.children.eq(s.settings.startSlide).css({zIndex:s.settings.slideZIndex,display:"block"})),s.controls.el=e('
'),s.settings.captions&&P(),s.active.last=s.settings.startSlide===f()-1,s.settings.video&&o.fitVids();var t=s.children.eq(s.settings.startSlide);("all"===s.settings.preloadImages||s.settings.ticker)&&(t=s.children),s.settings.ticker?s.settings.pager=!1:(s.settings.controls&&C(),s.settings.auto&&s.settings.autoControls&&T(),s.settings.pager&&w(),(s.settings.controls||s.settings.autoControls||s.settings.pager)&&s.viewport.after(s.controls.el)),c(t,g)},c=function(t,i){var n=t.find('img:not([src=""]), iframe').length;if(0===n)return void i();var s=0;t.find('img:not([src=""]), iframe').each(function(){e(this).one("load error",function(){++s===n&&i()}).each(function(){this.complete&&e(this).load()})})},g=function(){if(s.settings.infiniteLoop&&"fade"!==s.settings.mode&&!s.settings.ticker){var t="vertical"===s.settings.mode?s.settings.minSlides:s.settings.maxSlides,i=s.children.slice(0,t).clone(!0).addClass("bx-clone"),n=s.children.slice(-t).clone(!0).addClass("bx-clone");o.append(i).prepend(n)}s.loader.remove(),m(),"vertical"===s.settings.mode&&(s.settings.adaptiveHeight=!0),s.viewport.height(p()),o.redrawSlider(),s.settings.onSliderLoad(s,s.active.index),s.initialized=!0,s.settings.responsive&&e(window).bind("resize",Z),s.settings.auto&&s.settings.autoStart&&(f()>1||s.settings.autoSlideForOnePage)&&A(),s.settings.ticker&&H(),s.settings.pager&&I(s.settings.startSlide),s.settings.controls&&W(),s.settings.touchEnabled&&!s.settings.ticker&&O(),s.settings.keyboardEnabled&&!s.settings.ticker&&e(document).keydown(N)},p=function(){var t=0,n=e();if("vertical"===s.settings.mode||s.settings.adaptiveHeight)if(s.carousel){var o=1===s.settings.moveSlides?s.active.index:s.active.index*x();for(n=s.children.eq(o),i=1;i<=s.settings.maxSlides-1;i++)n=n.add(o+i>=s.children.length?s.children.eq(i-1):s.children.eq(o+i))}else n=s.children.eq(s.active.index);else n=s.children;return"vertical"===s.settings.mode?(n.each(function(){t+=e(this).outerHeight()}),s.settings.slideMargin>0&&(t+=s.settings.slideMargin*(s.settings.minSlides-1))):t=Math.max.apply(Math,n.map(function(){return e(this).outerHeight(!1)}).get()),"border-box"===s.viewport.css("box-sizing")?t+=parseFloat(s.viewport.css("padding-top"))+parseFloat(s.viewport.css("padding-bottom"))+parseFloat(s.viewport.css("border-top-width"))+parseFloat(s.viewport.css("border-bottom-width")):"padding-box"===s.viewport.css("box-sizing")&&(t+=parseFloat(s.viewport.css("padding-top"))+parseFloat(s.viewport.css("padding-bottom"))),t},u=function(){var e="100%";return s.settings.slideWidth>0&&(e="horizontal"===s.settings.mode?s.settings.maxSlides*s.settings.slideWidth+(s.settings.maxSlides-1)*s.settings.slideMargin:s.settings.slideWidth),e},h=function(){var e=s.settings.slideWidth,t=s.viewport.width();return 0===s.settings.slideWidth||s.settings.slideWidth>t&&!s.carousel||"vertical"===s.settings.mode?e=t:s.settings.maxSlides>1&&"horizontal"===s.settings.mode&&(t>s.maxThreshold||t0)if(s.viewport.width()s.maxThreshold)e=s.settings.maxSlides;else{var t=s.children.first().width()+s.settings.slideMargin;e=Math.floor((s.viewport.width()+s.settings.slideMargin)/t)}else"vertical"===s.settings.mode&&(e=s.settings.minSlides);return e},f=function(){var e=0;if(s.settings.moveSlides>0)if(s.settings.infiniteLoop)e=Math.ceil(s.children.length/x());else for(var t=0,i=0;t0&&s.settings.moveSlides<=v()?s.settings.moveSlides:v()},m=function(){var e;if(s.children.length>s.settings.maxSlides&&s.active.last&&!s.settings.infiniteLoop){if("horizontal"===s.settings.mode){var t=s.children.last();e=t.position(),S(-(e.left-(s.viewport.width()-t.outerWidth())),"reset",0)}else if("vertical"===s.settings.mode){var i=s.children.length-s.settings.minSlides;e=s.children.eq(i).position(),S(-e.top,"reset",0)}}else e=s.children.eq(s.active.index*x()).position(),s.active.index===f()-1&&(s.active.last=!0),void 0!==e&&("horizontal"===s.settings.mode?S(-e.left,"reset",0):"vertical"===s.settings.mode&&S(-e.top,"reset",0))},S=function(e,t,i,n){if(s.usingCSS){var r="vertical"===s.settings.mode?"translate3d(0, "+e+"px, 0)":"translate3d("+e+"px, 0, 0)";o.css("-"+s.cssPrefix+"-transition-duration",i/1e3+"s"),"slide"===t?setTimeout(function(){o.css(s.animProp,r),0===e?q():o.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){o.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),q()})},0):"reset"===t?o.css(s.animProp,r):"ticker"===t&&(o.css("-"+s.cssPrefix+"-transition-timing-function","linear"),o.css(s.animProp,r),o.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){o.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),S(n.resetValue,"reset",0),L()}))}else{var a={};a[s.animProp]=e,"slide"===t?o.animate(a,i,s.settings.easing,function(){q()}):"reset"===t?o.css(s.animProp,e):"ticker"===t&&o.animate(a,speed,"linear",function(){S(n.resetValue,"reset",0),L()})}},b=function(){for(var t="",i=f(),n=0;i>n;n++){var o="";s.settings.buildPager&&e.isFunction(s.settings.buildPager)||s.settings.pagerCustom?(o=s.settings.buildPager(n),s.pagerEl.addClass("bx-custom-pager")):(o=n+1,s.pagerEl.addClass("bx-default-pager")),t+='"}s.pagerEl.html(t)},w=function(){s.settings.pagerCustom?s.pagerEl=e(s.settings.pagerCustom):(s.pagerEl=e('
'),s.settings.pagerSelector?e(s.settings.pagerSelector).html(s.pagerEl):s.controls.el.addClass("bx-has-pager").append(s.pagerEl),b()),s.pagerEl.on("click touchend","a",z)},C=function(){s.controls.next=e(''+s.settings.nextText+""),s.controls.prev=e(''+s.settings.prevText+""),s.controls.next.bind("click touchend",E),s.controls.prev.bind("click touchend",y),s.settings.nextSelector&&e(s.settings.nextSelector).append(s.controls.next),s.settings.prevSelector&&e(s.settings.prevSelector).append(s.controls.prev),s.settings.nextSelector||s.settings.prevSelector||(s.controls.directionEl=e('
'),s.controls.directionEl.append(s.controls.prev).append(s.controls.next),s.controls.el.addClass("bx-has-controls-direction").append(s.controls.directionEl))},T=function(){s.controls.start=e('"),s.controls.stop=e('"),s.controls.autoEl=e('
'),s.controls.autoEl.on("click",".bx-start",k),s.controls.autoEl.on("click",".bx-stop",M),s.settings.autoControlsCombine?s.controls.autoEl.append(s.controls.start):s.controls.autoEl.append(s.controls.start).append(s.controls.stop),s.settings.autoControlsSelector?e(s.settings.autoControlsSelector).html(s.controls.autoEl):s.controls.el.addClass("bx-has-controls-auto").append(s.controls.autoEl),D(s.settings.autoStart?"stop":"start")},P=function(){s.children.each(function(){var t=e(this).find("img:first").attr("title");void 0!==t&&(""+t).length&&e(this).append('
'+t+"
")})},E=function(e){e.preventDefault(),s.controls.el.hasClass("disabled")||(s.settings.auto&&o.stopAuto(),o.goToNextSlide())},y=function(e){e.preventDefault(),s.controls.el.hasClass("disabled")||(s.settings.auto&&o.stopAuto(),o.goToPrevSlide())},k=function(e){o.startAuto(),e.preventDefault()},M=function(e){o.stopAuto(),e.preventDefault()},z=function(t){if(t.preventDefault(),!s.controls.el.hasClass("disabled")){s.settings.auto&&o.stopAuto();var i=e(t.currentTarget);if(void 0!==i.attr("data-slide-index")){var n=parseInt(i.attr("data-slide-index"));n!==s.active.index&&o.goToSlide(n)}}},I=function(t){var i=s.children.length;return"short"===s.settings.pagerType?(s.settings.maxSlides>1&&(i=Math.ceil(s.children.length/s.settings.maxSlides)),void s.pagerEl.html(t+1+s.settings.pagerShortSeparator+i)):(s.pagerEl.find("a").removeClass("active"),void s.pagerEl.each(function(i,n){e(n).find("a").eq(t).addClass("active")}))},q=function(){if(s.settings.infiniteLoop){var e="";0===s.active.index?e=s.children.eq(0).position():s.active.index===f()-1&&s.carousel?e=s.children.eq((f()-1)*x()).position():s.active.index===s.children.length-1&&(e=s.children.eq(s.children.length-1).position()),e&&("horizontal"===s.settings.mode?S(-e.left,"reset",0):"vertical"===s.settings.mode&&S(-e.top,"reset",0))}s.working=!1,s.settings.onSlideAfter(s.children.eq(s.active.index),s.oldIndex,s.active.index)},D=function(e){s.settings.autoControlsCombine?s.controls.autoEl.html(s.controls[e]):(s.controls.autoEl.find("a").removeClass("active"),s.controls.autoEl.find("a:not(.bx-"+e+")").addClass("active"))},W=function(){1===f()?(s.controls.prev.addClass("disabled"),s.controls.next.addClass("disabled")):!s.settings.infiniteLoop&&s.settings.hideControlOnEnd&&(0===s.active.index?(s.controls.prev.addClass("disabled"),s.controls.next.removeClass("disabled")):s.active.index===f()-1?(s.controls.next.addClass("disabled"),s.controls.prev.removeClass("disabled")):(s.controls.prev.removeClass("disabled"),s.controls.next.removeClass("disabled")))},A=function(){if(s.settings.autoDelay>0){setTimeout(o.startAuto,s.settings.autoDelay)}else o.startAuto(),e(window).focus(function(){o.startAuto()}).blur(function(){o.stopAuto()});s.settings.autoHover&&o.hover(function(){s.interval&&(o.stopAuto(!0),s.autoPaused=!0)},function(){s.autoPaused&&(o.startAuto(!0),s.autoPaused=null)})},H=function(){var t=0;if("next"===s.settings.autoDirection)o.append(s.children.clone().addClass("bx-clone"));else{o.prepend(s.children.clone().addClass("bx-clone"));var i=s.children.first().position();t="horizontal"===s.settings.mode?-i.left:-i.top}if(S(t,"reset",0),s.settings.pager=!1,s.settings.controls=!1,s.settings.autoControls=!1,s.settings.tickerHover)if(s.usingCSS){var n,r="horizontal"==s.settings.mode?4:5;s.viewport.hover(function(){var e=o.css("-"+s.cssPrefix+"-transform");n=parseFloat(e.split(",")[r]),S(n,"reset",0)},function(){var t=0;s.children.each(function(){t+="horizontal"==s.settings.mode?e(this).outerWidth(!0):e(this).outerHeight(!0)});var i=s.settings.speed/t,o=("horizontal"==s.settings.mode?"left":"top",i*(t-Math.abs(parseInt(n))));L(o)})}else s.viewport.hover(function(){o.stop()},function(){var t=0;s.children.each(function(){t+="horizontal"==s.settings.mode?e(this).outerWidth(!0):e(this).outerHeight(!0)});var i=s.settings.speed/t,n="horizontal"==s.settings.mode?"left":"top",r=i*(t-Math.abs(parseInt(o.css(n))));L(r)});L()},L=function(e){speed=e?e:s.settings.speed;var t={left:0,top:0},i={left:0,top:0};"next"===s.settings.autoDirection?t=o.find(".bx-clone").first().position():i=s.children.first().position();var n="horizontal"===s.settings.mode?-t.left:-t.top,r="horizontal"===s.settings.mode?-i.left:-i.top,a={resetValue:r};S(n,"ticker",speed,a)},F=function(t){var i=e(window),n={top:i.scrollTop(),left:i.scrollLeft()};n.right=n.left+i.width(),n.bottom=n.top+i.height();var s=t.offset();return s.right=s.left+t.outerWidth(),s.bottom=s.top+t.outerHeight(),!(n.rights.right||n.bottoms.bottom)},N=function(e){var t=document.activeElement.tagName.toLowerCase(),i="input|textarea",n=new RegExp(t,["i"]),s=n.exec(i);if(null==s&&F(o)){if(39==e.keyCode)return E(e),!1;if(37==e.keyCode)return y(e),!1}},O=function(){s.touch={start:{x:0,y:0},end:{x:0,y:0}},s.viewport.bind("touchstart MSPointerDown pointerdown",X),s.viewport.on("click",".bxslider a",function(e){s.viewport.hasClass("click-disabled")&&(e.preventDefault(),s.viewport.removeClass("click-disabled"))})},X=function(e){if(s.controls.el.addClass("disabled"),s.working)e.preventDefault(),s.controls.el.removeClass("disabled");else{s.touch.originalPos=o.position();var t=e.originalEvent,i="undefined"!=typeof t.changedTouches?t.changedTouches:[t];s.touch.start.x=i[0].pageX,s.touch.start.y=i[0].pageY,s.viewport.get(0).setPointerCapture&&(s.pointerId=t.pointerId,s.viewport.get(0).setPointerCapture(s.pointerId)),s.viewport.bind("touchmove MSPointerMove pointermove",R),s.viewport.bind("touchend MSPointerUp pointerup",V),s.viewport.bind("MSPointerCancel pointercancel",Y)}},Y=function(){S(s.touch.originalPos.left,"reset",0),s.controls.el.removeClass("disabled"),s.viewport.unbind("MSPointerCancel pointercancel",Y),s.viewport.unbind("touchmove MSPointerMove pointermove",R),s.viewport.unbind("touchend MSPointerUp pointerup",V),s.viewport.get(0).releasePointerCapture&&s.viewport.get(0).releasePointerCapture(s.pointerId)},R=function(e){var t=e.originalEvent,i="undefined"!=typeof t.changedTouches?t.changedTouches:[t],n=Math.abs(i[0].pageX-s.touch.start.x),o=Math.abs(i[0].pageY-s.touch.start.y);if(3*n>o&&s.settings.preventDefaultSwipeX?e.preventDefault():3*o>n&&s.settings.preventDefaultSwipeY&&e.preventDefault(),"fade"!==s.settings.mode&&s.settings.oneToOneTouch){var r=0,a=0;"horizontal"===s.settings.mode?(a=i[0].pageX-s.touch.start.x,r=s.touch.originalPos.left+a):(a=i[0].pageY-s.touch.start.y,r=s.touch.originalPos.top+a),S(r,"reset",0)}},V=function(e){s.viewport.unbind("touchmove MSPointerMove pointermove",R),s.controls.el.removeClass("disabled");var t=e.originalEvent,i="undefined"!=typeof t.changedTouches?t.changedTouches:[t],n=0,r=0;s.touch.end.x=i[0].pageX,s.touch.end.y=i[0].pageY,"fade"===s.settings.mode?(r=Math.abs(s.touch.start.x-s.touch.end.x),r>=s.settings.swipeThreshold&&(s.touch.start.x>s.touch.end.x?o.goToNextSlide():o.goToPrevSlide(),o.stopAuto())):("horizontal"===s.settings.mode?(r=s.touch.end.x-s.touch.start.x,n=s.touch.originalPos.left):(r=s.touch.end.y-s.touch.start.y,n=s.touch.originalPos.top),!s.settings.infiniteLoop&&(0===s.active.index&&r>0||s.active.last&&0>r)?S(n,"reset",200):Math.abs(r)>=s.settings.swipeThreshold?(0>r?o.goToNextSlide():o.goToPrevSlide(),o.stopAuto()):S(n,"reset",200)),s.viewport.unbind("touchend MSPointerUp pointerup",V),s.viewport.get(0).releasePointerCapture&&s.viewport.get(0).releasePointerCapture(s.pointerId)},Z=function(){if(s.initialized)if(s.working)window.setTimeout(Z,10);else{var t=e(window).width(),i=e(window).height();(r!==t||a!==i)&&(r=t,a=i,o.redrawSlider(),s.settings.onSliderResize.call(o,s.active.index))}};return o.goToSlide=function(t,i){if(!s.working&&s.active.index!==t){s.working=!0,s.oldIndex=s.active.index,s.active.index=0>t?f()-1:t>=f()?0:t;var n=!0;if(n=s.settings.onSlideBefore(s.children.eq(s.active.index),s.oldIndex,s.active.index),"undefined"!=typeof n&&!n)return s.active.index=s.oldIndex,void(s.working=!1);if("next"===i?s.settings.onSlideNext(s.children.eq(s.active.index),s.oldIndex,s.active.index)||(n=!1):"prev"===i&&(s.settings.onSlidePrev(s.children.eq(s.active.index),s.oldIndex,s.active.index)||(n=!1)),"undefined"!=typeof n&&!n)return s.active.index=s.oldIndex,void(s.working=!1);if(s.active.last=s.active.index>=f()-1,(s.settings.pager||s.settings.pagerCustom)&&I(s.active.index),s.settings.controls&&W(),"fade"===s.settings.mode)s.settings.adaptiveHeight&&s.viewport.height()!==p()&&s.viewport.animate({height:p()},s.settings.adaptiveHeightSpeed),s.children.filter(":visible").fadeOut(s.settings.speed).css({zIndex:0}),s.children.eq(s.active.index).css("zIndex",s.settings.slideZIndex+1).fadeIn(s.settings.speed,function(){e(this).css("zIndex",s.settings.slideZIndex),q()});else{s.settings.adaptiveHeight&&s.viewport.height()!==p()&&s.viewport.animate({height:p()},s.settings.adaptiveHeightSpeed);var r=0,a={left:0,top:0},l=null;if(!s.settings.infiniteLoop&&s.carousel&&s.active.last)if("horizontal"===s.settings.mode)l=s.children.eq(s.children.length-1),a=l.position(),r=s.viewport.width()-l.outerWidth();else{var d=s.children.length-s.settings.minSlides;a=s.children.eq(d).position()}else if(s.carousel&&s.active.last&&"prev"===i){var c=1===s.settings.moveSlides?s.settings.maxSlides-x():(f()-1)*x()-(s.children.length-s.settings.maxSlides);l=o.children(".bx-clone").eq(c),a=l.position()}else if("next"===i&&0===s.active.index)a=o.find("> .bx-clone").eq(s.settings.maxSlides).position(),s.active.last=!1;else if(t>=0){var g=t*x();a=s.children.eq(g).position()}if("undefined"!=typeof a){var u="horizontal"===s.settings.mode?-(a.left-r):-a.top;S(u,"slide",s.settings.speed)}}}},o.goToNextSlide=function(){if(s.settings.infiniteLoop||!s.active.last){var e=parseInt(s.active.index)+1;o.goToSlide(e,"next")}},o.goToPrevSlide=function(){if(s.settings.infiniteLoop||0!==s.active.index){var e=parseInt(s.active.index)-1;o.goToSlide(e,"prev")}},o.startAuto=function(e){s.interval||(s.interval=setInterval(function(){"next"===s.settings.autoDirection?o.goToNextSlide():o.goToPrevSlide()},s.settings.pause),s.settings.autoControls&&e!==!0&&D("stop"))},o.stopAuto=function(e){s.interval&&(clearInterval(s.interval),s.interval=null,s.settings.autoControls&&e!==!0&&D("start"))},o.getCurrentSlide=function(){return s.active.index},o.getCurrentSlideElement=function(){return s.children.eq(s.active.index)},o.getSlideCount=function(){return s.children.length},o.isWorking=function(){return s.working},o.redrawSlider=function(){s.children.add(o.find(".bx-clone")).outerWidth(h()),s.viewport.css("height",p()),s.settings.ticker||m(),s.active.last&&(s.active.index=f()-1),s.active.index>=f()&&(s.active.last=!0),s.settings.pager&&!s.settings.pagerCustom&&(b(),I(s.active.index))},o.destroySlider=function(){s.initialized&&(s.initialized=!1,e(".bx-clone",this).remove(),s.children.each(function(){void 0!==e(this).data("origStyle")?e(this).attr("style",e(this).data("origStyle")):e(this).removeAttr("style")}),void 0!==e(this).data("origStyle")?this.attr("style",e(this).data("origStyle")):e(this).removeAttr("style"),e(this).unwrap().unwrap(),s.controls.el&&s.controls.el.remove(),s.controls.next&&s.controls.next.remove(),s.controls.prev&&s.controls.prev.remove(),s.pagerEl&&s.settings.controls&&!s.settings.pagerCustom&&s.pagerEl.remove(),e(".bx-caption",this).remove(),s.controls.autoEl&&s.controls.autoEl.remove(),clearInterval(s.interval),s.settings.responsive&&e(window).unbind("resize",Z),s.settings.keyboardEnabled&&e(document).unbind("keydown",N))},o.reloadSlider=function(e){void 0!==e&&(n=e),o.destroySlider(),l()},l(),this}}(jQuery); function InfoBox(t){t=t||{},google.maps.OverlayView.apply(this,arguments),this.content_=t.content||"",this.disableAutoPan_=t.disableAutoPan||!1,this.maxWidth_=t.maxWidth||0,this.pixelOffset_=t.pixelOffset||new google.maps.Size(0,0),this.position_=t.position||new google.maps.LatLng(0,0),this.zIndex_=t.zIndex||null,this.boxClass_=t.boxClass||"infoBox",this.boxStyle_=t.boxStyle||{},this.closeBoxMargin_=t.closeBoxMargin||"2px",this.closeBoxURL_=t.closeBoxURL||"//www.google.com/intl/en_us/mapfiles/close.gif",""===t.closeBoxURL&&(this.closeBoxURL_=""),this.closeBoxTitle_=t.closeBoxTitle||" Close ",this.infoBoxClearance_=t.infoBoxClearance||new google.maps.Size(1,1),void 0===t.visible&&(void 0===t.isHidden?t.visible=!0:t.visible=!t.isHidden),this.isHidden_=!t.visible,this.alignBottom_=t.alignBottom||!1,this.pane_=t.pane||"floatPane",this.enableEventPropagation_=t.enableEventPropagation||!1,this.div_=null,this.closeListener_=null,this.moveListener_=null,this.contextListener_=null,this.eventListeners_=null,this.fixedWidthSet_=null}InfoBox.prototype=new google.maps.OverlayView,InfoBox.prototype.createInfoBoxDiv_=function(){var t,i,e,o=this,s=function(t){t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation()};if(!this.div_){if(this.div_=document.createElement("div"),this.setBoxStyle_(),void 0===this.content_.nodeType?this.div_.innerHTML=this.getCloseBoxImg_()+this.content_:(this.div_.innerHTML=this.getCloseBoxImg_(),this.div_.appendChild(this.content_)),this.getPanes()[this.pane_].appendChild(this.div_),this.addClickHandler_(),this.div_.style.width?this.fixedWidthSet_=!0:0!==this.maxWidth_&&this.div_.offsetWidth>this.maxWidth_?(this.div_.style.width=this.maxWidth_,this.div_.style.overflow="auto",this.fixedWidthSet_=!0):(e=this.getBoxWidths_(),this.div_.style.width=this.div_.offsetWidth-e.left-e.right+"px",this.fixedWidthSet_=!1),this.panBox_(this.disableAutoPan_),!this.enableEventPropagation_){for(this.eventListeners_=[],i=["mousedown","mouseover","mouseout","mouseup","click","dblclick","touchstart","touchend","touchmove"],t=0;tp&&(e=f.x+h+s+d-p),this.alignBottom_?f.y<-n+r+l?o=f.y+n-r-l:f.y+n+r>v&&(o=f.y+n+r-v):f.y<-n+r?o=f.y+n-r:f.y+l+n+r>v&&(o=f.y+l+n+r-v),0!==e||0!==o){i.getCenter();i.panBy(e,o)}}}},InfoBox.prototype.setBoxStyle_=function(){var t,i;if(this.div_){for(t in this.div_.className=this.boxClass_,this.div_.style.cssText="",i=this.boxStyle_)i.hasOwnProperty(t)&&(this.div_.style[t]=i[t]);(void 0===this.div_.style.WebkitTransform||-1===this.div_.style.WebkitTransform.indexOf("translateZ")&&-1===this.div_.style.WebkitTransform.indexOf("matrix"))&&(this.div_.style.WebkitTransform="translateZ(0)"),void 0!==this.div_.style.opacity&&""!==this.div_.style.opacity&&(this.div_.style.MsFilter='"progid:DXImageTransform.Microsoft.Alpha(Opacity='+100*this.div_.style.opacity+')"',this.div_.style.filter="alpha(opacity="+100*this.div_.style.opacity+")"),this.div_.style.position="absolute",this.div_.style.visibility="hidden",null!==this.zIndex_&&(this.div_.style.zIndex=this.zIndex_)}},InfoBox.prototype.getBoxWidths_=function(){var t,i={top:0,bottom:0,left:0,right:0},e=this.div_;return document.defaultView&&document.defaultView.getComputedStyle?(t=e.ownerDocument.defaultView.getComputedStyle(e,""))&&(i.top=parseInt(t.borderTopWidth,10)||0,i.bottom=parseInt(t.borderBottomWidth,10)||0,i.left=parseInt(t.borderLeftWidth,10)||0,i.right=parseInt(t.borderRightWidth,10)||0):document.documentElement.currentStyle&&e.currentStyle&&(i.top=parseInt(e.currentStyle.borderTopWidth,10)||0,i.bottom=parseInt(e.currentStyle.borderBottomWidth,10)||0,i.left=parseInt(e.currentStyle.borderLeftWidth,10)||0,i.right=parseInt(e.currentStyle.borderRightWidth,10)||0),i},InfoBox.prototype.onRemove=function(){this.div_&&(this.div_.parentNode.removeChild(this.div_),this.div_=null)},InfoBox.prototype.draw=function(){this.createInfoBoxDiv_();var t=this.getProjection().fromLatLngToDivPixel(this.position_);this.div_.style.left=t.x+this.pixelOffset_.width+"px",this.alignBottom_?this.div_.style.bottom=-(t.y+this.pixelOffset_.height)+"px":this.div_.style.top=t.y+this.pixelOffset_.height+"px",this.isHidden_?this.div_.style.visibility="hidden":this.div_.style.visibility="visible"},InfoBox.prototype.setOptions=function(t){void 0!==t.boxClass&&(this.boxClass_=t.boxClass,this.setBoxStyle_()),void 0!==t.boxStyle&&(this.boxStyle_=t.boxStyle,this.setBoxStyle_()),void 0!==t.content&&this.setContent(t.content),void 0!==t.disableAutoPan&&(this.disableAutoPan_=t.disableAutoPan),void 0!==t.maxWidth&&(this.maxWidth_=t.maxWidth),void 0!==t.pixelOffset&&(this.pixelOffset_=t.pixelOffset),void 0!==t.alignBottom&&(this.alignBottom_=t.alignBottom),void 0!==t.position&&this.setPosition(t.position),void 0!==t.zIndex&&this.setZIndex(t.zIndex),void 0!==t.closeBoxMargin&&(this.closeBoxMargin_=t.closeBoxMargin),void 0!==t.closeBoxURL&&(this.closeBoxURL_=t.closeBoxURL),void 0!==t.closeBoxTitle&&(this.closeBoxTitle_=t.closeBoxTitle),void 0!==t.infoBoxClearance&&(this.infoBoxClearance_=t.infoBoxClearance),void 0!==t.isHidden&&(this.isHidden_=t.isHidden),void 0!==t.visible&&(this.isHidden_=!t.visible),void 0!==t.enableEventPropagation&&(this.enableEventPropagation_=t.enableEventPropagation),this.div_&&this.draw()},InfoBox.prototype.setContent=function(t){this.content_=t,this.div_&&(this.closeListener_&&(google.maps.event.removeListener(this.closeListener_),this.closeListener_=null),this.fixedWidthSet_||(this.div_.style.width=""),void 0===t.nodeType?this.div_.innerHTML=this.getCloseBoxImg_()+t:(this.div_.innerHTML=this.getCloseBoxImg_(),this.div_.appendChild(t)),this.fixedWidthSet_||(this.div_.style.width=this.div_.offsetWidth+"px",void 0===t.nodeType?this.div_.innerHTML=this.getCloseBoxImg_()+t:(this.div_.innerHTML=this.getCloseBoxImg_(),this.div_.appendChild(t))),this.addClickHandler_()),google.maps.event.trigger(this,"content_changed")},InfoBox.prototype.setPosition=function(t){this.position_=t,this.div_&&this.draw(),google.maps.event.trigger(this,"position_changed")},InfoBox.prototype.setZIndex=function(t){this.zIndex_=t,this.div_&&(this.div_.style.zIndex=t),google.maps.event.trigger(this,"zindex_changed")},InfoBox.prototype.setVisible=function(t){this.isHidden_=!t,this.div_&&(this.div_.style.visibility=this.isHidden_?"hidden":"visible")},InfoBox.prototype.getContent=function(){return this.content_},InfoBox.prototype.getPosition=function(){return this.position_},InfoBox.prototype.getZIndex=function(){return this.zIndex_},InfoBox.prototype.getVisible=function(){return void 0!==this.getMap()&&null!==this.getMap()&&!this.isHidden_},InfoBox.prototype.getWidth=function(){var t=null;return this.div_&&(t=this.div_.offsetWidth),t},InfoBox.prototype.getHeight=function(){var t=null;return this.div_&&(t=this.div_.offsetHeight),t},InfoBox.prototype.show=function(){this.isHidden_=!1,this.div_&&(this.div_.style.visibility="visible")},InfoBox.prototype.hide=function(){this.isHidden_=!0,this.div_&&(this.div_.style.visibility="hidden")},InfoBox.prototype.open=function(t,i){var e=this;i&&(this.setPosition(i.getPosition()),this.moveListener_=google.maps.event.addListener(i,"position_changed",function(){e.setPosition(this.getPosition())})),this.setMap(t),this.div_&&this.panBox_(this.disableAutoPan_)},InfoBox.prototype.close=function(){var t;if(this.closeListener_&&(google.maps.event.removeListener(this.closeListener_),this.closeListener_=null),this.eventListeners_){for(t=0;t
',A=[];if((l=e(o)).length){i?(i=new google.maps.LatLng(i[0],i[1]),0!=n.force_fit_bounds&&v>0&&(f=new google.maps.LatLngBounds)):(i=v?new google.maps.LatLng(a[0].lat,a[0].lng):new google.maps.LatLng(n.default_lat||40.69847,n.default_lng||-73.95144),v>1&&(f=new google.maps.LatLngBounds));for(_ in google.maps.MapTypeId)A.push(google.maps.MapTypeId[_]);if(A.push("osm"),(s=new google.maps.Map(l.get(0),{mapTypeControl:!0,mapTypeId:-1!==e.inArray(l.data("map-type"),A)?l.data("map-type"):google.maps.MapTypeId.ROADMAP,mapTypeControlOptions:{style:google.maps.MapTypeControlStyle.DROPDOWN_MENU,mapTypeIds:A},panControl:!1,zoom:t,center:i,scrollwheel:0!=n.scrollwheel,styles:SABAI.GoogleMaps.styles||[{featureType:"poi",stylers:[{visibility:"off"}]}],fullscreenControlOptions:{position:google.maps.ControlPosition.BOTTOM_LEFT}})).mapTypes.set("osm",new google.maps.ImageMapType({getTileUrl:function(e,o){return"//a.tile.openstreetmap.org/"+o+"/"+e.x+"/"+e.y+".png"},tileSize:new google.maps.Size(256,256),isPng:!0,maxZoom:19,minZoom:0,name:"OSM"})),v>0){if(0!=n.marker_clusters){var k={maxZoom:15};n.marker_cluster_imgurl&&(k.imagePath=n.marker_cluster_imgurl+"/m"),m=new MarkerClusterer(s,[],k)}for(u=0;u0&&s.panBy(0,-1*e)},100)),s.panTo(e.getPosition()))}}(g,u)),a[u].trigger){var y=e(a[u].trigger);if(y.length){var I=a[u].triggerEvent||"mouseover";y[I](function(e,o,a,i,t){return function(){if("change"!==i||a.val()==o)return google.maps.event.trigger(e,n.marker_event||"click",{triggered:!0,trigger_infobox:t}),!1;""===a.val()&&b.close()}}(g,u,y,I,a[u].trigger_infobox))}}g.set("id",u),m?m.addMarker(g):g.setMap(s),void 0!==n.default_marker&&n.default_marker===u&&setTimeout(function(e){return function(){google.maps.event.trigger(e,n.marker_event||"click",{init:!0})}}(g),1500)}if(n.enable_directions){var M=e(n.enable_directions);if(!M.length)return;var B=M.find(".sabai-googlemaps-directions-trigger");if(!B.length)return;var L,S,x,T=M.find(".sabai-googlemaps-directions-panel"),C=new google.maps.DirectionsService;M.find(".sabai-googlemaps-directions-panel").hide().end().find(".sabai-googlemaps-directions-input").val("").end().find(".sabai-googlemaps-directions-destination").val(0),B.click(function(i){i.preventDefault();var t=e(this),n=M.find(".sabai-googlemaps-directions-destination").val();if(""!==n&&a[n]){var r=M.find(".sabai-googlemaps-directions-input").val();r&&(b.close(),t.addClass("sabai-disabled"),L=a[n],x={origin:r,destination:new google.maps.LatLng(L.lat,L.lng),travelMode:google.maps.TravelMode[t.data("travel-mode")||"DRIVING"]},T.html("").hide(),null!=S&&(S.setMap(null),S=null),S=new google.maps.DirectionsRenderer({map:s,draggable:!0,panel:T.get(0)}),C.route(x,function(e,a){a==google.maps.DirectionsStatus.OK?(S.setDirections(e),SABAI.scrollTo(o),T.show().find("img.adp-marker").hide()):alert("No directions found"),t.removeClass("sabai-disabled")}))}})}google.maps.event.addListener(b,"closeclick",function(){p=null}),google.maps.event.addListener(b,"clusteringbegin",function(){b.close(),p=null}),f&&s.fitBounds(f)}if(n.circle&&n.circle.center&&parseInt(n.circle.draw)){var O=new google.maps.Circle({strokeColor:n.circle.stroke_color||"#99f",strokeOpacity:.8,strokeWeight:1,fillColor:n.circle.fill_color||"#99f",fillOpacity:.3,map:s,center:new google.maps.LatLng(n.circle.center[0],n.circle.center[1]),radius:n.circle.is_mile?1609.344*n.circle.radius:1e3*n.circle.radius});f||s.fitBounds(O.getBounds())}if(r){var D=e(n.update_trigger||o+"-update");if(D.length){var G,z=function(){D.prop("checked")&&r.call(s,s.getCenter(),s.getBounds(),s.getZoom())};google.maps.event.addListener(s,"dragend",function(){G=setTimeout(z,1e3)}),google.maps.event.addListener(s,"mousedown",function(){G&&clearTimeout(G)}),e.cookie&&D.prop("checked",e.cookie("sabai_googlemaps_map_update")).click(function(){e(this).prop("checked")?e.cookie("sabai_googlemaps_map_update",!0,{expires:7}):e.removeCookie("sabai_googlemaps_map_update")})}}return SABAI.GoogleMaps.maps[o]=s,s}},SABAI.Directory=SABAI.Directory||{},SABAI.Directory.googleMap=function(e,o,a,i,t,n,r){SABAI.GoogleMaps.map(e,o,i,t,n,r,a)}}(jQuery); !function(e){SABAI.GoogleMaps=SABAI.GoogleMaps||{},SABAI.GoogleMaps.autocomplete=SABAI.GoogleMaps.autocomplete||function(o,n){if("undefined"!=typeof google&&google.maps.places){var t=e(o);t.length&&(n=n||{},n.types=["geocode"],n.country&&(n.componentRestrictions=n.componentRestrictions||{},n.componentRestrictions.country=n.country),t.each(function(){var o=e(this).get(0);google.maps.event.addDomListener(o,"focus",function(t){var a=new google.maps.places.Autocomplete(o,n);n.markerMap&&a.addListener("place_changed",function(){e(n.markerMap).find(".sabai-googlemaps-find-on-map").click()})}),google.maps.event.addDomListener(o,"keydown",function(e){13==e.keyCode&&e.preventDefault()})}))}}}(jQuery); function ClusterIcon(a,b){a.getMarkerClusterer().extend(ClusterIcon,google.maps.OverlayView);this.cluster_=a;this.className_=a.getMarkerClusterer().getClusterClass();this.styles_=b;this.center_=null;this.div_=null;this.sums_=null;this.visible_=false;this.setMap(a.getMap())}ClusterIcon.prototype.onAdd=function(){var c=this;var a;var b;this.div_=document.createElement("div");this.div_.className=this.className_;if(this.visible_){this.show()}this.getPanes().overlayMouseTarget.appendChild(this.div_);this.boundsChangedListener_=google.maps.event.addListener(this.getMap(),"bounds_changed",function(){b=a});google.maps.event.addDomListener(this.div_,"mousedown",function(){a=true;b=false});google.maps.event.addDomListener(this.div_,"click",function(h){a=false;if(!b){var d;var f;var g=c.cluster_.getMarkerClusterer();google.maps.event.trigger(g,"click",c.cluster_);google.maps.event.trigger(g,"clusterclick",c.cluster_);if(g.getZoomOnClick()){f=g.getMaxZoom();d=c.cluster_.getBounds();g.getMap().fitBounds(d);setTimeout(function(){g.getMap().fitBounds(d);if(f!==null&&(g.getMap().getZoom()>f)){g.getMap().setZoom(f+1)}},100)}h.cancelBubble=true;if(h.stopPropagation){h.stopPropagation()}}});google.maps.event.addDomListener(this.div_,"mouseover",function(){var d=c.cluster_.getMarkerClusterer();google.maps.event.trigger(d,"mouseover",c.cluster_)});google.maps.event.addDomListener(this.div_,"mouseout",function(){var d=c.cluster_.getMarkerClusterer();google.maps.event.trigger(d,"mouseout",c.cluster_)})};ClusterIcon.prototype.onRemove=function(){if(this.div_&&this.div_.parentNode){this.hide();google.maps.event.removeListener(this.boundsChangedListener_);google.maps.event.clearInstanceListeners(this.div_);this.div_.parentNode.removeChild(this.div_);this.div_=null}};ClusterIcon.prototype.draw=function(){if(this.visible_){var a=this.getPosFromLatLng_(this.center_);this.div_.style.top=a.y+"px";this.div_.style.left=a.x+"px"}};ClusterIcon.prototype.hide=function(){if(this.div_){this.div_.style.display="none"}this.visible_=false};ClusterIcon.prototype.show=function(){if(this.div_){var a=this.getPosFromLatLng_(this.center_);this.div_.style.cssText=this.createCss(a);if(this.cluster_.printable_){this.div_.innerHTML="
"+this.sums_.text+"
"}else{this.div_.innerHTML=this.sums_.text}if(typeof this.sums_.title==="undefined"||this.sums_.title===""){this.div_.title=this.cluster_.getMarkerClusterer().getTitle()}else{this.div_.title=this.sums_.title}this.div_.style.display=""}this.visible_=true};ClusterIcon.prototype.useStyle=function(b){this.sums_=b;var a=Math.max(0,b.index-1);a=Math.min(this.styles_.length-1,a);var c=this.styles_[a];this.url_=c.url;this.height_=c.height;this.width_=c.width;this.anchor_=c.anchor;this.anchorIcon_=c.anchorIcon||[parseInt(this.height_/2,10),parseInt(this.width_/2,10)];this.textColor_=c.textColor||"black";this.textSize_=c.textSize||11;this.textDecoration_=c.textDecoration||"none";this.fontWeight_=c.fontWeight||"bold";this.fontStyle_=c.fontStyle||"normal";this.fontFamily_=c.fontFamily||"Arial,sans-serif";this.backgroundPosition_=c.backgroundPosition||"0 0"};ClusterIcon.prototype.setCenter=function(a){this.center_=a};ClusterIcon.prototype.createCss=function(b){var a=[];if(!this.cluster_.printable_){a.push("background-image:url("+this.url_+");");a.push("background-position:"+this.backgroundPosition_+";")}if(typeof this.anchor_==="object"){if(typeof this.anchor_[0]==="number"&&this.anchor_[0]>0&&this.anchor_[0]0&&this.anchor_[1]f){if(b.getMap()!==this.map_){b.setMap(this.map_)}}else{if(dd){this.clusterIcon_.hide();return}if(b0){return}for(b=0;b3){b=new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast())}else{b=new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625))}var g=this.getExtendedBounds(b);var f=Math.min(a+this.batchSize_,this.markers_.length);for(e=a;e
").width(m).addClass("sticky-placeholder"),l=g.stopper,i=a(window);function n(){var v=i.scrollTop();if(b&&typeof l==="string"){var s=a(l),t=s.offset().top,x=parseInt(s.css("margin-top"),10),w=(t-j)-q-x}else{if(b&&typeof l==="number"){var w=l}}if(k=j?(clearTimeout(e),e=null,g=i,f=a.apply(c,d)):e||(e=setTimeout(h,j)),f}},noop:function(){}}}(),c="0.10.5",d=function(){"use strict";function a(a){return a=b.toStr(a),a?a.split(/\s+/):[]}function c(a){return a=b.toStr(a),a?a.split(/\W+/):[]}function d(a){return function(){var c=[].slice.call(arguments,0);return function(d){var e=[];return b.each(c,function(c){e=e.concat(a(b.toStr(d[c])))}),e}}}return{nonword:c,whitespace:a,obj:{nonword:d(c),whitespace:d(a)}}}(),e=function(){"use strict";function c(c){this.maxSize=b.isNumber(c)?c:100,this.reset(),this.maxSize<=0&&(this.set=this.get=a.noop)}function d(){this.head=this.tail=null}function e(a,b){this.key=a,this.val=b,this.prev=this.next=null}return b.mixin(c.prototype,{set:function(a,b){var c,d=this.list.tail;this.size>=this.maxSize&&(this.list.remove(d),delete this.hash[d.key]),(c=this.hash[a])?(c.val=b,this.list.moveToFront(c)):(c=new e(a,b),this.list.add(c),this.hash[a]=c,this.size++)},get:function(a){var b=this.hash[a];return b?(this.list.moveToFront(b),b.val):void 0},reset:function(){this.size=0,this.hash={},this.list=new d}}),b.mixin(d.prototype,{add:function(a){this.head&&(a.next=this.head,this.head.prev=a),this.head=a,this.tail=this.tail||a},remove:function(a){a.prev?a.prev.next=a.next:this.head=a.next,a.next?a.next.prev=a.prev:this.tail=a.prev},moveToFront:function(a){this.remove(a),this.add(a)}}),c}(),f=function(){"use strict";function a(a){this.prefix=["__",a,"__"].join(""),this.ttlKey="__ttl__",this.keyMatcher=new RegExp("^"+b.escapeRegExChars(this.prefix))}function c(){return(new Date).getTime()}function d(a){return JSON.stringify(b.isUndefined(a)?null:a)}function e(a){return JSON.parse(a)}var f,g;try{f=window.localStorage,f.setItem("~~~","!"),f.removeItem("~~~")}catch(h){f=null}return g=f&&window.JSON?{_prefix:function(a){return this.prefix+a},_ttlKey:function(a){return this._prefix(a)+this.ttlKey},get:function(a){return this.isExpired(a)&&this.remove(a),e(f.getItem(this._prefix(a)))},set:function(a,e,g){return b.isNumber(g)?f.setItem(this._ttlKey(a),d(c()+g)):f.removeItem(this._ttlKey(a)),f.setItem(this._prefix(a),d(e))},remove:function(a){return f.removeItem(this._ttlKey(a)),f.removeItem(this._prefix(a)),this},clear:function(){var a,b,c=[],d=f.length;for(a=0;d>a;a++)(b=f.key(a)).match(this.keyMatcher)&&c.push(b.replace(this.keyMatcher,""));for(a=c.length;a--;)this.remove(c[a]);return this},isExpired:function(a){var d=e(f.getItem(this._ttlKey(a)));return b.isNumber(d)&&c()>d?!0:!1}}:{get:b.noop,set:b.noop,remove:b.noop,clear:b.noop,isExpired:b.noop},b.mixin(a.prototype,g),a}(),g=function(){"use strict";function c(b){b=b||{},this.cancelled=!1,this.lastUrl=null,this._send=b.transport?d(b.transport):a.ajax,this._get=b.rateLimiter?b.rateLimiter(this._get):this._get,this._cache=b.cache===!1?new e(0):i}function d(c){return function(d,e){function f(a){b.defer(function(){h.resolve(a)})}function g(a){b.defer(function(){h.reject(a)})}var h=a.Deferred();return c(d,e,f,g),h}}var f=0,g={},h=6,i=new e(10);return c.setMaxPendingRequests=function(a){h=a},c.resetCache=function(){i.reset()},b.mixin(c.prototype,{_get:function(a,b,c){function d(b){c&&c(null,b),k._cache.set(a,b)}function e(){c&&c(!0)}function i(){f--,delete g[a],k.onDeckRequestArgs&&(k._get.apply(k,k.onDeckRequestArgs),k.onDeckRequestArgs=null)}var j,k=this;this.cancelled||a!==this.lastUrl||((j=g[a])?j.done(d).fail(e):h>f?(f++,g[a]=this._send(a,b).done(d).fail(e).always(i)):this.onDeckRequestArgs=[].slice.call(arguments,0))},get:function(a,c,d){var e;return b.isFunction(c)&&(d=c,c={}),this.cancelled=!1,this.lastUrl=a,(e=this._cache.get(a))?b.defer(function(){d&&d(null,e)}):this._get(a,c,d),!!e},cancel:function(){this.cancelled=!0}}),c}(),h=function(){"use strict";function c(b){b=b||{},b.datumTokenizer&&b.queryTokenizer||a.error("datumTokenizer and queryTokenizer are both required"),this.datumTokenizer=b.datumTokenizer,this.queryTokenizer=b.queryTokenizer,this.reset()}function d(a){return a=b.filter(a,function(a){return!!a}),a=b.map(a,function(a){return a.toLowerCase()})}function e(){return{ids:[],children:{}}}function f(a){for(var b={},c=[],d=0,e=a.length;e>d;d++)b[a[d]]||(b[a[d]]=!0,c.push(a[d]));return c}function g(a,b){function c(a,b){return a-b}var d=0,e=0,f=[];a=a.sort(c),b=b.sort(c);for(var g=a.length,h=b.length;g>d&&h>e;)a[d]b[e]?e++:(f.push(a[d]),d++,e++);return f}return b.mixin(c.prototype,{bootstrap:function(a){this.datums=a.datums,this.trie=a.trie},add:function(a){var c=this;a=b.isArray(a)?a:[a],b.each(a,function(a){var f,g;f=c.datums.push(a)-1,g=d(c.datumTokenizer(a)),b.each(g,function(a){var b,d,g;for(b=c.trie,d=a.split("");g=d.shift();)b=b.children[g]||(b.children[g]=e()),b.ids.push(f)})})},get:function(a){var c,e,h=this;return c=d(this.queryTokenizer(a)),b.each(c,function(a){var b,c,d,f;if(e&&0===e.length)return!1;for(b=h.trie,c=a.split("");b&&(d=c.shift());)b=b.children[d];return b&&0===c.length?(f=b.ids.slice(0),void(e=e?g(e,f):f)):(e=[],!1)}),e?b.map(f(e),function(a){return h.datums[a]}):[]},reset:function(){this.datums=[],this.trie=e()},serialize:function(){return{datums:this.datums,trie:this.trie}}}),c}(),i=function(){"use strict";function d(a){return a.local||null}function e(d){var e,f;return f={url:null,thumbprint:"",ttl:864e5,filter:null,ajax:{}},(e=d.prefetch||null)&&(e=b.isString(e)?{url:e}:e,e=b.mixin(f,e),e.thumbprint=c+e.thumbprint,e.ajax.type=e.ajax.type||"GET",e.ajax.dataType=e.ajax.dataType||"json",!e.url&&a.error("prefetch requires url to be set")),e}function f(c){function d(a){return function(c){return b.debounce(c,a)}}function e(a){return function(c){return b.throttle(c,a)}}var f,g;return g={url:null,cache:!0,wildcard:"%QUERY",replace:null,rateLimitBy:"debounce",rateLimitWait:300,send:null,filter:null,ajax:{}},(f=c.remote||null)&&(f=b.isString(f)?{url:f}:f,f=b.mixin(g,f),f.rateLimiter=/^throttle$/i.test(f.rateLimitBy)?e(f.rateLimitWait):d(f.rateLimitWait),f.ajax.type=f.ajax.type||"GET",f.ajax.dataType=f.ajax.dataType||"json",delete f.rateLimitBy,delete f.rateLimitWait,!f.url&&a.error("remote requires url to be set")),f}return{local:d,prefetch:e,remote:f}}();!function(c){"use strict";function e(b){b&&(b.local||b.prefetch||b.remote)||a.error("one of local, prefetch, or remote is required"),this.limit=b.limit||5,this.sorter=j(b.sorter),this.dupDetector=b.dupDetector||k,this.local=i.local(b),this.prefetch=i.prefetch(b),this.remote=i.remote(b),this.cacheKey=this.prefetch?this.prefetch.cacheKey||this.prefetch.url:null,this.index=new h({datumTokenizer:b.datumTokenizer,queryTokenizer:b.queryTokenizer}),this.storage=this.cacheKey?new f(this.cacheKey):null}function j(a){function c(b){return b.sort(a)}function d(a){return a}return b.isFunction(a)?c:d}function k(){return!1}var l,m;return l=c.Bloodhound,m={data:"data",protocol:"protocol",thumbprint:"thumbprint"},c.Bloodhound=e,e.noConflict=function(){return c.Bloodhound=l,e},e.tokenizers=d,b.mixin(e.prototype,{_loadPrefetch:function(b){function c(a){f.clear(),f.add(b.filter?b.filter(a):a),f._saveToStorage(f.index.serialize(),b.thumbprint,b.ttl)}var d,e,f=this;return(d=this._readFromStorage(b.thumbprint))?(this.index.bootstrap(d),e=a.Deferred().resolve()):e=a.ajax(b.url,b.ajax).done(c),e},_getFromRemote:function(a,b){function c(a,c){b(a?[]:f.remote.filter?f.remote.filter(c):c)}var d,e,f=this;if(this.transport)return a=a||"",e=encodeURIComponent(a),d=this.remote.replace?this.remote.replace(this.remote.url,a):this.remote.url.replace(this.remote.wildcard,e),this.transport.get(d,this.remote.ajax,c)},_cancelLastRemoteRequest:function(){this.transport&&this.transport.cancel()},_saveToStorage:function(a,b,c){this.storage&&(this.storage.set(m.data,a,c),this.storage.set(m.protocol,location.protocol,c),this.storage.set(m.thumbprint,b,c))},_readFromStorage:function(a){var b,c={};return this.storage&&(c.data=this.storage.get(m.data),c.protocol=this.storage.get(m.protocol),c.thumbprint=this.storage.get(m.thumbprint)),b=c.thumbprint!==a||c.protocol!==location.protocol,c.data&&!b?c.data:null},_initialize:function(){function c(){e.add(b.isFunction(f)?f():f)}var d,e=this,f=this.local;return d=this.prefetch?this._loadPrefetch(this.prefetch):a.Deferred().resolve(),f&&d.done(c),this.transport=this.remote?new g(this.remote):null,this.initPromise=d.promise()},initialize:function(a){return!this.initPromise||a?this._initialize():this.initPromise},add:function(a){this.index.add(a)},get:function(a,c){function d(a){var d=f.slice(0);b.each(a,function(a){var c;return c=b.some(d,function(b){return e.dupDetector(a,b)}),!c&&d.push(a),d.length0||!this.transport)&&c&&c(f)},clear:function(){this.index.reset()},clearPrefetchCache:function(){this.storage&&this.storage.clear()},clearRemoteCache:function(){this.transport&&g.resetCache()},ttAdapter:function(){return b.bind(this.get,this)}}),e}(this);var j=function(){return{wrapper:'',dropdown:'',dataset:'
',suggestions:'',suggestion:'
'}}(),k=function(){"use strict";var a={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},dropdown:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},suggestions:{display:"block"},suggestion:{whiteSpace:"nowrap",cursor:"pointer"},suggestionChild:{whiteSpace:"normal"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:" 0"}};return b.isMsie()&&b.mixin(a.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),b.isMsie()&&b.isMsie()<=7&&b.mixin(a.input,{marginTop:"-1px"}),a}(),l=function(){"use strict";function c(b){b&&b.el||a.error("EventBus initialized without el"),this.$el=a(b.el)}var d="typeahead:";return b.mixin(c.prototype,{trigger:function(a){var b=[].slice.call(arguments,1);this.$el.trigger(d+a,b)}}),c}(),m=function(){"use strict";function a(a,b,c,d){var e;if(!c)return this;for(b=b.split(i),c=d?h(c,d):c,this._callbacks=this._callbacks||{};e=b.shift();)this._callbacks[e]=this._callbacks[e]||{sync:[],async:[]},this._callbacks[e][a].push(c);return this}function b(b,c,d){return a.call(this,"async",b,c,d)}function c(b,c,d){return a.call(this,"sync",b,c,d)}function d(a){var b;if(!this._callbacks)return this;for(a=a.split(i);b=a.shift();)delete this._callbacks[b];return this}function e(a){var b,c,d,e,g;if(!this._callbacks)return this;for(a=a.split(i),d=[].slice.call(arguments,1);(b=a.shift())&&(c=this._callbacks[b]);)e=f(c.sync,this,[b].concat(d)),g=f(c.async,this,[b].concat(d)),e()&&j(g);return this}function f(a,b,c){function d(){for(var d,e=0,f=a.length;!d&&f>e;e+=1)d=a[e].apply(b,c)===!1;return!d}return d}function g(){var a;return a=window.setImmediate?function(a){setImmediate(function(){a()})}:function(a){setTimeout(function(){a()},0)}}function h(a,b){return a.bind?a.bind(b):function(){a.apply(b,[].slice.call(arguments,0))}}var i=/\s+/,j=g();return{onSync:c,onAsync:b,off:d,trigger:e}}(),n=function(a){"use strict";function c(a,c,d){for(var e,f=[],g=0,h=a.length;h>g;g++)f.push(b.escapeRegExChars(a[g]));return e=d?"\\b("+f.join("|")+")\\b":"("+f.join("|")+")",c?new RegExp(e):new RegExp(e,"i")}var d={node:null,pattern:null,tagName:"strong",className:null,wordsOnly:!1,caseSensitive:!1};return function(e){function f(b){var c,d,f;return(c=h.exec(b.data))&&(f=a.createElement(e.tagName),e.className&&(f.className=e.className),d=b.splitText(c.index),d.splitText(c[0].length),f.appendChild(d.cloneNode(!0)),b.parentNode.replaceChild(f,d)),!!c}function g(a,b){for(var c,d=3,e=0;e
"),i=e.children()[0];return x("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),n=t-i},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.widthW(C(n),C(o))?s.important="horizontal":s.important="vertical",f.using.call(this,t,s)}),r.offset(x.extend(h,{using:t}))})},x.ui.position={fit:{left:function(t,e){var i,n=e.within,o=n.isWindow?n.scrollLeft:n.offset.left,n=n.width,s=t.left-e.collisionPosition.marginLeft,r=o-s,l=s+e.collisionWidth-n-o;e.collisionWidth>n?0o?0",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=x(e||this.defaultElement||this)[0],this.element=x(e),this.uuid=c++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=x(),this.hoverable=x(),this.focusable=x(),this.classesElementLookup={},e!==this&&(x.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=x(e.style?e.ownerDocument:e.document||e),this.window=x(this.document[0].defaultView||this.document[0].parentWindow)),this.options=x.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:x.noop,_create:x.noop,_init:x.noop,destroy:function(){var i=this;this._destroy(),x.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:x.noop,widget:function(){return this.element},option:function(t,e){var i,n,o,s=t;if(0===arguments.length)return x.widget.extend({},this.options);if("string"==typeof t)if(s={},t=(i=t.split(".")).shift(),i.length){for(n=s[t]=x.widget.extend({},this.options[t]),o=0;o")[0],h=a.each; /*! * jQuery Color Animations v2.2.0 * https://github.com/jquery/jquery-color * * Copyright OpenJS Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * Date: Sun May 10 09:02:36 2020 +0200 */function g(t){return null==t?t+"":"object"==typeof t?n[e.call(t)]||"object":typeof t}function m(t,e,n){var r=p[e.type]||{};return null==t?n||!e.def?null:e.def:(t=r.floor?~~t:parseFloat(t),isNaN(t)?e.def:r.mod?(t+r.mod)%r.mod:Math.min(r.max,Math.max(0,t)))}function c(r){var o=l(),i=o._rgba=[];return r=r.toLowerCase(),h(t,function(t,e){var n=e.re.exec(r),n=n&&e.parse(n),e=e.space||"rgba";if(n)return n=o[e](n),o[d[e].cache]=n[d[e].cache],i=o._rgba=n._rgba,!1}),i.length?("0,0,0,0"===i.join()&&a.extend(i,M.transparent),o):M[r]}function o(t,e,n){return 6*(n=(n+1)%1)<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}r.style.cssText="background-color:rgba(1,1,1,.5)",s.rgba=-1i.mod/2?r+=i.mod:r-o>i.mod/2&&(r-=i.mod)),c[n]=m((o-r)*s+r,e)))}),this[t](c)},blend:function(t){if(1===this._rgba[3])return this;var e=this._rgba.slice(),n=e.pop(),r=l(t)._rgba;return l(a.map(e,function(t,e){return(1-n)*r[e]+n*t}))},toRgbaString:function(){var t="rgba(",e=a.map(this._rgba,function(t,e){return null!=t?t:2
").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:n.width(),height:n.height()},o=document.activeElement;try{o.id}catch(t){o=document.body}return n.wrap(t),n[0]!==o&&!u.contains(n[0],o)||u(o).trigger("focus"),t=n.parent(),"static"===n.css("position")?(t.css({position:"relative"}),n.css({position:"relative"})):(u.extend(r,{position:n.css("position"),zIndex:n.css("z-index")}),u.each(["top","left","bottom","right"],function(t,e){r[e]=n.css(e),isNaN(parseInt(r[e],10))&&(r[e]="auto")}),n.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),n.css(e),t.css(r).show()},removeWrapper:function(t){var e=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),t[0]!==e&&!u.contains(t[0],e)||u(e).trigger("focus")),t}}),u.extend(u.effects,{version:"1.13.1",define:function(t,e,n){return n||(n=e,e="effect"),u.effects.effect[t]=n,u.effects.effect[t].mode=e,n},scaledDimensions:function(t,e,n){if(0===e)return{height:0,width:0,outerHeight:0,outerWidth:0};var r="horizontal"!==n?(e||100)/100:1,n="vertical"!==n?(e||100)/100:1;return{height:t.height()*n,width:t.width()*r,outerHeight:t.outerHeight()*n,outerWidth:t.outerWidth()*r}},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,n){var r=t.queue();1").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(j+"placeholder",e)),t.css({position:n,left:r.left,top:r.top}),e},removePlaceholder:function(t){var e=j+"placeholder",n=t.data(e);n&&(n.remove(),t.removeData(e))},cleanUp:function(t){u.effects.restoreStyle(t),u.effects.removePlaceholder(t)},setTransition:function(r,t,o,i){return i=i||{},u.each(t,function(t,e){var n=r.cssUnit(e);0
");c.appendTo("body").addClass(t.className).css({top:r.top-s,left:r.left-i,height:n.innerHeight(),width:n.innerWidth(),position:o?"fixed":"absolute"}).animate(a,t.duration,t.easing,function(){c.remove(),"function"==typeof e&&e()})}}),u.fx.step.clip=function(t){t.clipInit||(t.start=u(t.elem).cssClip(),"string"==typeof t.end&&(t.end=R(t.end,t.elem)),t.clipInit=!0),u(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})},S={},u.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,t){S[t]=function(t){return Math.pow(t,e+2)}}),u.extend(S,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,n=4;t<((e=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*e-2)/22-t,2)}}),u.each(S,function(t,e){u.easing["easeIn"+t]=e,u.easing["easeOut"+t]=function(t){return 1-e(1-t)},u.easing["easeInOut"+t]=function(t){return t<.5?e(2*t)/2:1-e(-2*t+2)/2}}),u.effects}); /*! * jQuery UI Effects Highlight 1.13.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ !function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(i){"use strict";return i.effects.define("highlight","show",function(e,n){var o=i(this),t={backgroundColor:o.css("backgroundColor")};"hide"===e.mode&&(t.opacity=0),i.effects.saveStyle(o),o.css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(t,{queue:!1,duration:e.duration,easing:e.easing,complete:n})})}); /*! This file is auto-generated */ /*! * imagesLoaded PACKAGED v4.1.4 * JavaScript is all like "You images are done yet or what?" * MIT License */ !function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},n=i[e]=i[e]||[];return n.indexOf(t)==-1&&n.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{},n=i[e]=i[e]||{};return n[t]=!0,this}},t.off=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var n=i.indexOf(t);return n!=-1&&i.splice(n,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(var n=this._onceEvents&&this._onceEvents[e],o=0;oe;e++){var i=h[e];t[i]=0}return t}function n(t){var e=getComputedStyle(t);return e||a("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}function o(){if(!d){d=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var o=n(e);s=200==Math.round(t(o.width)),r.isBoxSizeOuter=s,i.removeChild(e)}}function r(e){if(o(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var r=n(e);if("none"==r.display)return i();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var d=a.isBorderBox="border-box"==r.boxSizing,l=0;u>l;l++){var c=h[l],f=r[c],m=parseFloat(f);a[c]=isNaN(m)?0:m}var p=a.paddingLeft+a.paddingRight,g=a.paddingTop+a.paddingBottom,y=a.marginLeft+a.marginRight,v=a.marginTop+a.marginBottom,_=a.borderLeftWidth+a.borderRightWidth,z=a.borderTopWidth+a.borderBottomWidth,E=d&&s,b=t(r.width);b!==!1&&(a.width=b+(E?0:p+_));var x=t(r.height);return x!==!1&&(a.height=x+(E?0:g+z)),a.innerWidth=a.width-(p+_),a.innerHeight=a.height-(g+z),a.outerWidth=a.width+y,a.outerHeight=a.height+v,a}}var s,a="undefined"==typeof console?e:function(t){console.error(t)},h=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],u=h.length,d=!1;return r}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;is?"round":"floor";r=Math[a](r),this.cols=Math.max(r,1)},n.getContainerWidth=function(){var t=this._getOption("fitWidth"),i=t?this.element.parentNode:this.element,n=e(i);this.containerWidth=n&&n.innerWidth},n._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=e&&1>e?"round":"ceil",n=Math[i](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var o=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",r=this[o](n,t),s={x:this.columnWidth*r.col,y:r.y},a=r.y+t.size.outerHeight,h=n+r.col,u=r.col;h>u;u++)this.colYs[u]=a;return s},n._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},n._getTopColGroup=function(t){if(2>t)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;i>n;n++)e[n]=this._getColGroupY(n,t);return e},n._getColGroupY=function(t,e){if(2>e)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i)},n._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,n=t>1&&i+t>this.cols;i=n?0:i;var o=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=o?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},n._manageStamp=function(t){var i=e(t),n=this._getElementOffset(t),o=this._getOption("originLeft"),r=o?n.left:n.right,s=r+i.outerWidth,a=Math.floor(r/this.columnWidth);a=Math.max(0,a);var h=Math.floor(s/this.columnWidth);h-=s%this.columnWidth?0:1,h=Math.min(this.cols-1,h);for(var u=this._getOption("originTop"),d=(u?n.top:n.bottom)+i.outerHeight,l=a;h>=l;l++)this.colYs[l]=Math.max(d,this.colYs[l])},n._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},n._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},n.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i}); /*! * Masonry v2 shim * to maintain backwards compatibility * as of Masonry v3.1.2 * * Cascading grid layout library * http://masonry.desandro.com * MIT License * by David DeSandro */ !function(a){"use strict";var b=a.Masonry;b.prototype._remapV2Options=function(){this._remapOption("gutterWidth","gutter"),this._remapOption("isResizable","isResizeBound"),this._remapOption("isRTL","isOriginLeft",function(a){return!a});var a=this.options.isAnimated;if(void 0!==a&&(this.options.transitionDuration=a?this.options.transitionDuration:0),void 0===a||a){var b=this.options.animationOptions,c=b&&b.duration;c&&(this.options.transitionDuration="string"==typeof c?c:c+"ms")}},b.prototype._remapOption=function(a,b,c){var d=this.options[a];void 0!==d&&(this.options[b]=c?c(d):d)};var c=b.prototype._create;b.prototype._create=function(){var a=this;this._remapV2Options(),c.apply(this,arguments),setTimeout(function(){jQuery(a.element).addClass("masonry")},0)};var d=b.prototype.layout;b.prototype.layout=function(){this._remapV2Options(),d.apply(this,arguments)};var e=b.prototype.option;b.prototype.option=function(){e.apply(this,arguments),this._remapV2Options()};var f=b.prototype._itemize;b.prototype._itemize=function(a){var b=f.apply(this,arguments);return jQuery(a).addClass("masonry-brick"),b};var g=b.prototype.measureColumns;b.prototype.measureColumns=function(){var a=this.options.columnWidth;a&&"function"==typeof a&&(this.getContainerWidth(),this.columnWidth=a(this.containerWidth)),g.apply(this,arguments)},b.prototype.reload=function(){this.reloadItems.apply(this,arguments),this.layout.apply(this)};var h=b.prototype.destroy;b.prototype.destroy=function(){var a=this.getItemElements();jQuery(this.element).removeClass("masonry"),jQuery(a).removeClass("masonry-brick"),h.apply(this,arguments)}}(window); /*! This file is auto-generated */ !function(e,t){if("function"==typeof define&&define.amd)define("hoverintent",["module"],t);else if("undefined"!=typeof exports)t(module);else{var n={exports:{}};t(n),e.hoverintent=n.exports}}(this,function(e){"use strict";var t=Object.assign||function(e){for(var t=1;t').appendTo('body').show();var success=function(){jQuery('#wp-admin-bar-autoptimize-cache-info .size').attr('class','size green').html('0.00 B');jQuery('#wp-admin-bar-autoptimize-cache-info .files').html('0');jQuery('#wp-admin-bar-autoptimize-cache-info .percentage .numbers').attr('class','numbers green').html('0%');jQuery('#wp-admin-bar-autoptimize-cache-info .autoptimize-radial-bar .fill').attr('class','fill bg-green');jQuery('#wp-admin-bar-autoptimize').attr('class','menupop bullet-green');jQuery('#wp-admin-bar-autoptimize-cache-info .autoptimize-radial-bar .mask.full, #wp-admin-bar-autoptimize-cache-info .autoptimize-radial-bar .fill').css({'-webkit-transform':'rotate(0deg)','-ms-transform':'rotate(0deg)','transform':'rotate(0deg)'});};var notice=function(){jQuery('

'+autoptimize_ajax_object.error_msg+'


').insertAfter('#wpbody .wrap h1:first-of-type').show();};jQuery.ajax({type:'GET',url:autoptimize_ajax_object.ajaxurl,data:{'action':action,'nonce':autoptimize_ajax_object.nonce},dataType:'json',cache:false,timeout:9000,success:function(cleared) {modal_loading.remove();if(cleared){success();}else{notice();}},error:function(jqXHR,textStatus) {modal_loading.remove();notice();}});});}); window.better_ads_adblock=!0; /*! * WPBakery Page Builder v6.0.0 (https://wpbakery.com) * Copyright 2011-2024 Michael M, WPBakery * License: Commercial. More details: http://go.wpbakery.com/licensing */ document.documentElement.className+=" js_active ",document.documentElement.className+="ontouchstart"in document.documentElement?" vc_mobile ":" vc_desktop ",function(){for(var prefix=["-webkit-","-moz-","-ms-","-o-",""],i=0;i=$tabs.tabs("length")&&(index=0),$tabs.tabs("select",index)):(index=$tabs.tabs("option","active"),e=$tabs.find(".wpb_tab").length,index=jQuery(this).parent().hasClass("wpb_next_slide")?e<=index+1?0:index+1:index-1<0?e-1:index-1,$tabs.tabs("option","active",index))})}))}),"function"!=typeof window.vc_accordionBehaviour&&(window.vc_accordionBehaviour=function(){jQuery(".wpb_accordion").each(function(index){var $this=jQuery(this),active_tab=($this.attr("data-interval"),!isNaN(jQuery(this).data("active-tab"))&&0 div > h3",autoHeight:!1,heightStyle:"content",active:active_tab,collapsible:collapsible,navigation:!0,activate:vc_accordionActivate,change:function(event,ui){void 0!==jQuery.fn.isotope&&ui.newContent.find(".isotope").isotope("layout"),vc_carouselBehaviour(ui.newPanel)}});!0===$this.data("vcDisableKeydown")&&(active_tab.data("uiAccordion")._keydown=function(){})})}),"function"!=typeof window.vc_teaserGrid&&(window.vc_teaserGrid=function(){var layout_modes={fitrows:"fitRows",masonry:"masonry"};jQuery(".wpb_grid .teaser_grid_container:not(.wpb_carousel), .wpb_filtered_grid .teaser_grid_container:not(.wpb_carousel)").each(function(){var $container=jQuery(this),$thumbs=$container.find(".wpb_thumbnails"),layout_mode=$thumbs.attr("data-layout-mode");$thumbs.isotope({itemSelector:".isotope-item",layoutMode:void 0===layout_modes[layout_mode]?"fitRows":layout_modes[layout_mode]}),$container.find(".categories_filter a").data("isotope",$thumbs).on("click",function(e){e&&e.preventDefault&&e.preventDefault();e=jQuery(this).data("isotope");jQuery(this).parent().parent().find(".active").removeClass("active"),jQuery(this).parent().addClass("active"),e.isotope({filter:jQuery(this).attr("data-filter")})}),jQuery(window).on("load resize",function(){$thumbs.isotope("layout")})})}),"function"!=typeof window.vc_carouselBehaviour&&(window.vc_carouselBehaviour=function($parent){($parent?$parent.find(".wpb_carousel"):jQuery(".wpb_carousel")).each(function(){var $this=jQuery(this);!0!==$this.data("carousel_enabled")&&$this.is(":visible")&&($this.data("carousel_enabled",!0),getColumnsCount(jQuery(this)),jQuery(this).hasClass("columns_count_1"),($this=jQuery(this).find(".wpb_thumbnails-fluid li")).css({"margin-right":$this.css("margin-left"),"margin-left":0}),($this=jQuery(this).find("ul.wpb_thumbnails-fluid")).width($this.width()+300))})}),"function"!=typeof window.vc_slidersBehaviour&&(window.vc_slidersBehaviour=function(){jQuery(".wpb_gallery_slides").each(function(index){var $imagesGrid,sliderTimeout,this_element=jQuery(this);this_element.hasClass("wpb_slider_nivo")?(0===(sliderTimeout=1e3*this_element.attr("data-interval"))&&(sliderTimeout=9999999999),this_element.find(".nivoSlider").nivoSlider({effect:"boxRainGrow,boxRain,boxRainReverse,boxRainGrowReverse",slices:15,boxCols:8,boxRows:4,animSpeed:800,pauseTime:sliderTimeout,startSlide:0,directionNav:!0,directionNavHide:!0,controlNav:!0,keyboardNav:!1,pauseOnHover:!0,manualAdvance:!1,prevText:"Prev",nextText:"Next"})):this_element.hasClass("wpb_image_grid")&&(jQuery.fn.imagesLoaded?$imagesGrid=this_element.find(".wpb_image_grid_ul").imagesLoaded(function(){$imagesGrid.isotope({itemSelector:".isotope-item",layoutMode:"fitRows"})}):this_element.find(".wpb_image_grid_ul").isotope({itemSelector:".isotope-item",layoutMode:"fitRows"}))})}),"function"!=typeof window.vc_prettyPhoto&&(window.vc_prettyPhoto=function(){try{jQuery&&jQuery.fn&&jQuery.fn.prettyPhoto&&jQuery('a.prettyphoto, .gallery-icon a[href*=".jpg"]').prettyPhoto({animationSpeed:"normal",hook:"data-rel",padding:15,opacity:.7,showTitle:!0,allowresize:!0,counter_separator_label:"/",hideflash:!1,deeplinking:!1,modal:!1,callback:function(){-1')}),vc_initVideoBackgrounds();var callSkrollInit=!1;if(window.vcParallaxSkroll&&window.vcParallaxSkroll.destroy(),$(".vc_parallax-inner").remove(),$("[data-5p-top-bottom]").removeAttr("data-5p-top-bottom data-30p-top-bottom"),$("[data-vc-parallax]").each(function(){var skrollrSize,$parallaxElement,parallaxImage,youtubeId;callSkrollInit=!0,"on"===$(this).data("vcParallaxOFade")&&$(this).children().attr("data-5p-top-bottom","opacity:0;").attr("data-30p-top-bottom","opacity:1;"),skrollrSize=100*$(this).data("vcParallax"),($parallaxElement=$("
").addClass("vc_parallax-inner").appendTo($(this))).height(skrollrSize+"%"),parallaxImage=$(this).data("vcParallaxImage"),(youtubeId=vcExtractYoutubeId(parallaxImage))?insertYoutubeVideoAsBackground($parallaxElement,youtubeId):void 0!==parallaxImage&&$parallaxElement.css("background-image","url("+parallaxImage+")"),$parallaxElement.attr("data-bottom-top","top: "+-(skrollrSize-100)+"%;").attr("data-top-bottom","top: 0%;")}),callSkrollInit&&window.skrollr)window.vcParallaxSkroll=skrollr.init({forceHeight:!1,smoothScrolling:!1,mobileCheck:function(){return!1}}),window.vcParallaxSkroll}),"function"!=typeof window.vc_gridBehaviour&&(window.vc_gridBehaviour=function(){jQuery.fn.vcGrid&&jQuery("[data-vc-grid]").vcGrid()}),"function"!=typeof window.getColumnsCount&&(window.getColumnsCount=function(el){for(var find=!1,i=1;!1===find;){if(el.hasClass("columns_count_"+i))return find=!0,i;i++}}),"function"!=typeof window.wpb_prepare_tab_content&&(window.wpb_prepare_tab_content=function(event,ui){var panel=ui.panel||ui.newPanel,$pie_charts=panel.find(".vc_pie_chart:not(.vc_ready)"),$round_charts=panel.find(".vc_round-chart"),$line_charts=panel.find(".vc_line-chart"),$carousel=panel.find('[data-ride="vc_carousel"]');vc_carouselBehaviour(),vc_plugin_flexslider(panel),ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var grid=jQuery(this).data("vcGrid");grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()}),panel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&panel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var grid=jQuery(this).data("vcGrid");grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()}),$pie_charts.length&&jQuery.fn.vcChat&&$pie_charts.vcChat(),$round_charts.length&&jQuery.fn.vcRoundChart&&$round_charts.vcRoundChart({reload:!1}),$line_charts.length&&jQuery.fn.vcLineChart&&$line_charts.vcLineChart({reload:!1}),$carousel.length&&jQuery.fn.carousel&&$carousel.carousel("resizeAction"),ui=panel.find(".isotope, .wpb_image_grid_ul"),$pie_charts=panel.find(".wpb_gmaps_widget"),0
').find(".inner");new YT.Player($container[0],{width:"100%",height:"100%",videoId:youtubeId,playerVars:{playlist:youtubeId,iv_load_policy:3,enablejsapi:1,disablekb:1,autoplay:1,controls:0,showinfo:0,rel:0,loop:1,mute:1,wmode:"transparent"},events:{onReady:function(event){event.target.mute().setLoop(!0)}}}),vcResizeVideoBackground($element),jQuery(window).on("resize",function(){vcResizeVideoBackground($element)})}),"function"!=typeof window.vcResizeVideoBackground&&(window.vcResizeVideoBackground=function($element){var iframeW,iframeH,marginLeft,marginTop,containerW=$element.innerWidth(),containerH=$element.innerHeight();containerW/containerH<16/9?(iframeW=containerH*(16/9),iframeH=containerH,marginLeft=-Math.round((iframeW-containerW)/2)+"px",marginTop=-Math.round((iframeH-containerH)/2)+"px"):(iframeH=(iframeW=containerW)*(9/16),marginTop=-Math.round((iframeH-containerH)/2)+"px",marginLeft=-Math.round((iframeW-containerW)/2)+"px"),iframeW+="px",iframeH+="px",$element.find(".vc_video-bg iframe").css({maxWidth:"1000%",marginLeft:marginLeft,marginTop:marginTop,width:iframeW,height:iframeH})}),"function"!=typeof window.vcExtractYoutubeId&&(window.vcExtractYoutubeId=function(url){return void 0!==url&&null!==(url=url.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/))&&url[1]}),"function"!=typeof window.vc_googleMapsPointer&&(window.vc_googleMapsPointer=function(){var $=window.jQuery,$wpbGmapsWidget=$(".wpb_gmaps_widget");$wpbGmapsWidget.on("click",function(){$("iframe",this).css("pointer-events","auto")}),$wpbGmapsWidget.on("mouseleave",function(){$("iframe",this).css("pointer-events","none")}),$(".wpb_gmaps_widget iframe").css("pointer-events","none")}),"function"!=typeof window.vc_setHoverBoxPerspective&&(window.vc_setHoverBoxPerspective=function(hoverBox){hoverBox.each(function(){var $this=jQuery(this),width=$this.width();$this.css("perspective",4*width+"px")})}),"function"!=typeof window.vc_setHoverBoxHeight&&(window.vc_setHoverBoxHeight=function(hoverBox){hoverBox.each(function(){var $this=jQuery(this),hoverBoxInner=$this.find(".vc-hoverbox-inner"),frontHeight=(hoverBoxInner.css("min-height",0),$this.find(".vc-hoverbox-front-inner").outerHeight()),$this=$this.find(".vc-hoverbox-back-inner").outerHeight(),frontHeight=$thisthis.$items.length-1||pos<0))return this.sliding?this.$element.one("slid",function(){that.to(pos)}):activeIndex==pos?this.pause().cycle():this.slide(activeIndexthis.items_count?this.current_index=0:this.current_index<0&&(this.current_index=this.items_count-1),this.options.autoHeight?this.current_pos_value=-1*this._step*this.current_index:this.current_pos_value=-1*$next.position()[this.animation_position],this.options.partial&&this.current_index>=this.items_count-1&&(this.current_pos_value+=this._step*(1-this.partial_part)),$.support.transition&&this.$element.hasClass("vc_slide")){if(this.$element.trigger(fallback),fallback.isDefaultPrevented())return;this.$slideline_inner.addClass("vc_transition").css(this.animation_position,this.current_pos_value+that.pos_units),this.options.autoHeight||this.recalculateSlidelineHeight($next.height(),!0),this.$slideline_inner.one($.support.transition.end,function(){$next.addClass("vc_active"),$active.removeClass("vc_active"),that.$slideline_inner.removeClass([type,"vc_transition"].join(" ")),that.sliding=!1,that.removeSwipeAnimationSpeed(),setTimeout(function(){that.$element.trigger("slid")},0)}).emulateTransitionEnd(this.transition_speed)}else{if(this.$element.trigger(fallback),fallback.isDefaultPrevented())return;$active.removeClass("vc_active"),$next.addClass("vc_active"),this.sliding=!1,this.$slideline_inner.css(this.animation_position,this.current_pos_value+that.pos_units)}return next&&this.cycle(),this}},Carousel.prototype.setSwipeAnimationSpeed=function(){this.$slideline_inner.addClass("vc_swipe-transition")},Carousel.prototype.removeSwipeAnimationSpeed=function(){this.$slideline_inner.removeClass("vc_swipe-transition")},Carousel.prototype.velocity=function(time,x){return{x:Math.abs(x/time)||0}},Carousel.prototype.recalculateSlidelineHeight=function(height,animate){!0===animate?this.$slideline.animate({height:height}):this.$slideline.height(height)},Carousel.prototype.resizeAction=function(){var new_slideline_height,max_height=0;"horizontal"===this.options.mode&&(this.el_effect_size=this.$element.width()*(this.options.partial?this.partial_part:1),this.$slideline.width(this.items_count*this.el_effect_size)),this.options.autoHeight?(this.$items.height("auto"),this.$items.each(function(){var item_height=$(this).height();max_height div"),this.slideline_inner=this.$slideline_inner.get(0),this.partial_part=.8,this._slide_width=0,this.swipe_velocity=.7,this.current_pos_value=0,this.current_index=0,this.el_effect_size=0,this.transition_speed=600,this.$left_control=this.$element.find(".vc_left.vc_carousel-control"),this.$right_control=this.$element.find(".vc_right.vc_carousel-control"),this.options.partial&&(this.options.autoHeight=!0),1that.swipe_velocity&&part<0||part<=-.7?(that.setSwipeAnimationSpeed(),that.next()):e.x>that.swipe_velocity||.7<=part?(that.setSwipeAnimationSpeed(),that.prev()):that.returnSwipedSlide(),_moved=!1)},!1),this.$element.addClass("vc_build"),this};var old=$.fn.carousel;$.fn.carousel=function(option,value){return this.each(function(){var $this=$(this),data=$this.data("vc.carousel"),options=$.extend({},Carousel.DEFAULTS,$this.data(),"object"==typeof option&&option),action="string"==typeof option?option:options.slide;data||(data=new Carousel(this,options),$this.data("vc.carousel",data)),"number"==typeof option?data.to(option):action?data[action](value):options.interval&&data.pause().cycle()})},$.fn.carousel.Constructor=Carousel,$.fn.carousel.noConflict=function(){return $.fn.carousel=old,this},$(document).off("click.vc.carousel.data-api").on("click.vc.carousel.data-api","[data-slide], [data-slide-to]",function(e){var $this=$(this),href=$($this.attr("data-target")||(href=$this.attr("href"))&&href.replace(/.*(?=#[^\s]+$)/,"")),options=$.extend({},href.data(),$this.data()),$this=$this.attr("data-slide-to");$this&&(options.interval=!1),href.carousel(options),$this&&href.data("vc.carousel").to($this),e.preventDefault()}),$(window).on("load",function(){$('[data-ride="vc_carousel"]').each(function(){var $carousel=$(this);$carousel.carousel($carousel.data())})})}(window.jQuery); /*! * jQuery UI Mouse 1.13.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ !function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./core"],e):e(jQuery)}(function(o){"use strict";var n=!1;return o(document).on("mouseup",function(){n=!1}),o.widget("ui.mouse",{version:"1.13.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).on("click."+this.widgetName,function(e){if(!0===o.data(e.target,t.widgetName+".preventClickEvent"))return o.removeData(e.target,t.widgetName+".preventClickEvent"),e.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){var t,s,i;if(!n)return this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e,t=this,s=1===e.which,i=!("string"!=typeof this.options.cancel||!e.target.nodeName)&&o(e.target).closest(this.options.cancel).length,!(s&&!i&&this._mouseCapture(e))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){t.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted)?(e.preventDefault(),!0):(!0===o.data(e.target,this.widgetName+".preventClickEvent")&&o.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return t._mouseMove(e)},this._mouseUpDelegate=function(e){return t._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),n=!0))},_mouseMove:function(e){if(this._mouseMoved){if(o.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&o.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,n=!1,e.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}); /*! * jQuery UI Slider 1.13.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ !function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./mouse","./core"],e):e(jQuery)}(function(o){"use strict";return o.widget("ui.slider",o.ui.mouse,{version:"1.13.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,t=this.options,i=this.element.find(".ui-slider-handle"),s=[],a=t.values&&t.values.length||1;for(i.length>a&&(i.slice(a).remove(),i=i.slice(0,a)),e=i.length;e");this.handles=i.add(o(s.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(e){o(this).data("ui-slider-handle-index",e).attr("tabIndex",0)})},_createRange:function(){var e=this.options;e.range?(!0===e.range&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:Array.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=o("
").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==e.range&&"max"!==e.range||this._addClass(this.range,"ui-slider-range-"+e.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(e){var i,s,a,n,t,h,l=this,r=this.options;return!r.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),t={x:e.pageX,y:e.pageY},i=this._normValueFromMouse(t),s=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var t=Math.abs(i-l.values(e));(t=this._valueMax())return this._valueMax();var t=0=t&&(e+=0this.options.max&&(e-=i),this.max=parseFloat(e.toFixed(this._precision()))},_precision:function(){var e=this._precisionOf(this.options.step);return e=null!==this.options.min?Math.max(e,this._precisionOf(this.options.min)):e},_precisionOf:function(e){var e=e.toString(),t=e.indexOf(".");return-1===t?0:e.length-t-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(e){"vertical"===e&&this.range.css({width:"",left:""}),"horizontal"===e&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var t,i,e,s,a,n=this.options.range,h=this.options,l=this,r=!this._animateOff&&h.animate,u={};this._hasMultipleValues()?this.handles.each(function(e){i=(l.values(e)-l._valueMin())/(l._valueMax()-l._valueMin())*100,u["horizontal"===l.orientation?"left":"bottom"]=i+"%",o(this).stop(1,1)[r?"animate":"css"](u,h.animate),!0===l.options.range&&("horizontal"===l.orientation?(0===e&&l.range.stop(1,1)[r?"animate":"css"]({left:i+"%"},h.animate),1===e&&l.range[r?"animate":"css"]({width:i-t+"%"},{queue:!1,duration:h.animate})):(0===e&&l.range.stop(1,1)[r?"animate":"css"]({bottom:i+"%"},h.animate),1===e&&l.range[r?"animate":"css"]({height:i-t+"%"},{queue:!1,duration:h.animate}))),t=i}):(e=this.value(),s=this._valueMin(),a=this._valueMax(),i=a!==s?(e-s)/(a-s)*100:0,u["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[r?"animate":"css"](u,h.animate),"min"===n&&"horizontal"===this.orientation&&this.range.stop(1,1)[r?"animate":"css"]({width:i+"%"},h.animate),"max"===n&&"horizontal"===this.orientation&&this.range.stop(1,1)[r?"animate":"css"]({width:100-i+"%"},h.animate),"min"===n&&"vertical"===this.orientation&&this.range.stop(1,1)[r?"animate":"css"]({height:i+"%"},h.animate),"max"===n&&"vertical"===this.orientation&&this.range.stop(1,1)[r?"animate":"css"]({height:100-i+"%"},h.animate))},_handleEvents:{keydown:function(e){var t,i,s,a=o(e.target).data("ui-slider-handle-index");switch(e.keyCode){case o.ui.keyCode.HOME:case o.ui.keyCode.END:case o.ui.keyCode.PAGE_UP:case o.ui.keyCode.PAGE_DOWN:case o.ui.keyCode.UP:case o.ui.keyCode.RIGHT:case o.ui.keyCode.DOWN:case o.ui.keyCode.LEFT:if(e.preventDefault(),this._keySliding||(this._keySliding=!0,this._addClass(o(e.target),null,"ui-state-active"),!1!==this._start(e,a)))break;return}switch(s=this.options.step,t=i=this._hasMultipleValues()?this.values(a):this.value(),e.keyCode){case o.ui.keyCode.HOME:i=this._valueMin();break;case o.ui.keyCode.END:i=this._valueMax();break;case o.ui.keyCode.PAGE_UP:i=this._trimAlignValue(t+(this._valueMax()-this._valueMin())/this.numPages);break;case o.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(t-(this._valueMax()-this._valueMin())/this.numPages);break;case o.ui.keyCode.UP:case o.ui.keyCode.RIGHT:if(t===this._valueMax())return;i=this._trimAlignValue(t+s);break;case o.ui.keyCode.DOWN:case o.ui.keyCode.LEFT:if(t===this._valueMin())return;i=this._trimAlignValue(t-s)}this._slide(e,a,i)},keyup:function(e){var t=o(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,t),this._change(e,t),this._removeClass(o(e.target),null,"ui-state-active"))}}})}); jQuery(window).bind('load',function(){jQuery('.fb_loader').hide();}); /*! hey, [be]Lazy.js - v1.8.2 - 2016.10.25 A fast, small and dependency free lazy load script (https://github.com/dinbror/blazy) (c) Bjoern Klinggaard - @bklinggaard - http://dinbror.dk/blazy */ !function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():t.Blazy=e()}(this,function(){"use strict";function t(t){var o=t._util;o.elements=v(t.options),o.count=o.elements.length,o.destroyed&&(o.destroyed=!1,t.options.container&&w(t.options.container,function(t){h(t,"scroll",o.validateT)}),h(window,"resize",o.saveViewportOffsetT),h(window,"resize",o.validateT),h(window,"scroll",o.validateT)),e(t)}function e(t){for(var e=t._util,n=0;nC.top?r:C.top,right:aC.left?l:C.left};return n(o,f)}return!1}}return n(o,C)}function n(t,e){return t.right>=e.left&&t.bottom>=e.top&&t.left<=e.right&&t.top<=e.bottom}function s(t,e,o){if(!p(t,o.errorClass)){var n=t.offsetWidth>0&&t.offsetHeight>0,s=function(){return"function"==typeof o.loadInvisible?o.loadInvisible(t,n):o.loadInvisible};if(!p(t,o.successClass)&&(e||n||s())){var c=l(t,b)||l(t,o.src);if(c){var f=c.split(o.separator),v=f[T&&f.length>1?1:0],m=l(t,o.srcset),y=Publisher_Theme.parseBsSrcset(t,o.srcset,!1);y&&(m=void 0,v=y);var C=u(t,"img"),E=t.parentNode,A=E&&u(E,"picture");if(C||void 0===t.src){var D=new Image,I=function(){o.error&&o.error(t,"invalid"),d(t,o.errorClass),g(D,"error",I),g(D,"load",N)},N=function(){C?A||a(t,v,m):t.style.backgroundImage='url("'+v+'")',i(t,o),g(D,"load",N),g(D,"error",I)};A&&(D=t,w(E.getElementsByTagName("source"),function(t){r(t,k,o.srcset)})),h(D,"error",I),h(D,"load",N),a(D,v,m)}else t.src=v,i(t,o)}else u(t,"video")?(w(t.getElementsByTagName("source"),function(t){r(t,S,o.src)}),t.load(),i(t,o)):(o.error&&o.error(t,"missing"),d(t,o.errorClass))}}}function i(t,e){d(t,e.successClass),e.success&&e.success(t),f(t,e.src),f(t,e.srcset),w(e.breakpoints,function(e){f(t,e.src)}),"function"==typeof e.itemLoaded&&e.itemLoaded.call(t,e)}function r(t,e,o){var n=l(t,o);n&&(c(t,e,n),f(t,o))}function a(t,e,o){o&&c(t,k,o),t.src=e}function c(t,e,o){t.setAttribute(e,o)}function l(t,e){return t.getAttribute(e)}function f(t,e){t.removeAttribute(e)}function u(t,e){return t.nodeName.toLowerCase()===e}function p(t,e){return-1!==(" "+t.className+" ").indexOf(" "+e+" ")}function d(t,e){p(t,e)||(t.className+=" "+e)}function v(t){for(var e=[],o=t.root.querySelectorAll(t.selector),n=o.length;n--;e.unshift(o[n]));return e}function m(t){C.bottom=(window.innerHeight||document.documentElement.clientHeight)+t,C.right=(window.innerWidth||document.documentElement.clientWidth)+t}function h(t,e,o){t.attachEvent?t.attachEvent&&t.attachEvent("on"+e,o):t.addEventListener(e,o,{capture:!1,passive:!0})}function g(t,e,o){t.detachEvent?t.detachEvent&&t.detachEvent("on"+e,o):t.removeEventListener(e,o,{capture:!1,passive:!0})}function w(t,e){if(t&&e)for(var o=t.length,n=0;o>n&&e(t[n],n)!==!1;n++);}function y(t,e,o){var n=0;return function(){var s=+new Date;e>s-n||(n=s,t.apply(o,arguments))}}var b,C,T,E,S="src",k="srcset";return function(o){if(!document.querySelectorAll){var n=document.createStyleSheet();document.querySelectorAll=function(t,e,o,s,i){for(i=document.all,e=[],t=t.replace(/\[for\b/gi,"[htmlFor").split(","),o=t.length;o--;){for(n.addRule(t[o],"k:v"),s=i.length;s--;)i[s].currentStyle.k&&e.push(i[s]);n.removeRule(0)}return e}}var i=this,r=i._util={};r.elements=[],r.destroyed=!0,i.options=o||{},i.options.error=i.options.error||!1,i.options.offset=i.options.offset||100,i.options.root=i.options.root||document,i.options.success=i.options.success||!1,i.options.selector=i.options.selector||".b-lazy",i.options.separator=i.options.separator||"|",i.options.containerClass=i.options.container,i.options.container=i.options.containerClass?document.querySelectorAll(i.options.containerClass):!1,i.options.errorClass=i.options.errorClass||"b-error",i.options.breakpoints=i.options.breakpoints||!1,i.options.loadInvisible=i.options.loadInvisible||!1,i.options.successClass=i.options.successClass||"b-loaded",i.options.validateDelay=i.options.validateDelay||25,i.options.saveViewportOffsetDelay=i.options.saveViewportOffsetDelay||50,i.options.srcset=i.options.srcset||"data-srcset",i.options.src=b=i.options.src||"data-src",E=Element.prototype.closest,T=window.devicePixelRatio>1,C={},C.top=0-i.options.offset,C.left=0-i.options.offset,i.revalidate=function(){t(i)},i.load=function(t,e){var o=this.options;t&&void 0===t.length?s(t,e,o):w(t,function(t){s(t,e,o)})},i.destroy=function(){var t=i._util;i.options.container&&w(i.options.container,function(e){g(e,"scroll",t.validateT)}),g(window,"scroll",t.validateT),g(window,"resize",t.validateT),g(window,"resize",t.saveViewportOffsetT),t.count=0,t.elements.length=0,t.destroyed=!0},r.validateT=y(function(){e(i)},i.options.validateDelay,i),r.saveViewportOffsetT=y(function(){m(i.options.offset)},i.options.saveViewportOffsetDelay,i),m(i.options.offset),w(i.options.breakpoints,function(t){return t.width>=window.screen.width?(b=t.src,!1):void 0}),setTimeout(function(){t(i)})}});!function(d){"use strict";var o={},n={};function l(e){(e=void 0===e||e)&&d(window).scroll()}function t(e){return this.prefix="bs_ajax_paginate_",this.deferredPrefix="bs_deferred_loading_",this.isPrevPage=!1,this.$link_el=!1,this.id=!1,this.paginationStyle=!1,this.settings=d.extend({afterSuccessDeferredAjax:function(){}},e),this}t.prototype.init=function(e){var o=this;d(e).on("click",".bs-ajax-pagination a",function(e){e.preventDefault();var a=d(this),t=a.parent();if(a.hasClass("disabled")||t.hasClass("bs-pagination-loading"))return!1;t.addClass("bs-pagination-loading");var n=a.closest(".bs-pagination");o.$link_el=a,o.id=a.data("id");try{if(!o.id)throw"invalid element";o.setNewPageNumber(),o.paginationStyle=o.getPaginationStyle();var i=o.getAjaxProps(),s=n.prevAll(".bs-pagination-wrapper"),r=o.cache_get(i.current_page,o.id);if("object"==typeof r)s.addClass("bs-pagination-cached"),o.handle_response(r),t.removeClass("bs-pagination-loading");else{switch(s.removeClass("bs-pagination-cached"),2==i.current_page&&o.cache_add(1,{output:s.html(),label:n.find(".bs-pagination-label").html(),have_next:!0,have_prev:!1},o.id),o.paginationStyle){case"next_prev":s.children().addClass("bs-pagination-in-loading"),s.prepend(o.getLoadingRawHtml());break;case"more_btn_infinity":a.find(".loaded").hide(),a.find(".loading").show(),a.removeClass("more_btn_infinity").addClass("infinity").addClass("bs-pagination-in-loading"),n.removeClass("more_btn_infinity").addClass("infinity");break;case"infinity":case"more_btn":a.addClass("bs-pagination-in-loading"),a.find(".loaded").hide(),a.find(".loading").show()}d.ajax({url:i.ajax_url,type:"POST",dataType:"json",data:i}).fail(function(e){switch(t.removeClass("bs-pagination-loading"),o.paginationStyle){case"more_btn_infinity":case"next_prev":s.find(".bs-pagin-loading-wrapper").remove(),a.addClass("bs-pagination-in-loading");break;case"infinity":case"more_btn":a.addClass("bs-pagination-in-loading"),a.find(".loaded").show(),a.find(".loading").hide()}"abort"!==e.statusText&&alert("cannot load data. please check your internet connection!")}).done(function(e){switch(o.handle_response(e),o.cacheThisStyle(o.paginationStyle)&&o.cache_add(i.current_page,e,o.id),o.paginationStyle){case"more_btn_infinity":a.removeClass("bs-pagination-in-loading"),s.find(".bs-pagin-loading-wrapper").remove();break;case"next_prev":a.removeClass("bs-pagination-in-loading"),s.find(".bs-pagin-loading-wrapper").remove(),s.children().removeClass("bs-pagination-in-loading");break;case"infinity":case"more_btn":a.removeClass("bs-pagination-in-loading"),a.find(".loaded").show(),a.find(".loading").hide()}t.removeClass("bs-pagination-loading")})}}catch(e){o.debug(e)}}),"function"==typeof OnScreen&&new OnScreen({tolerance:0,debounce:100,container:window}).on("enter",".bs-ajax-pagination.infinity",function(e){d(e).find("a").click()})},t.prototype.filter_slider_params=function(e){return void 0!==e.autoplayspeed&&(e.autoplaySpeed=e.autoplayspeed),e.dots=void 0!==e.sliderControlDots&&"off"!==e.sliderControlDots,e.autoplay=void 0!==e.sliderAutoplay&&parseInt(e.sliderAutoplay),e.speed=e.sliderAnimationSpeed,void 0!==e.sliderControlNextPrev&&"off"==e.sliderControlNextPrev&&(e.appendArrows=!1),e},t.prototype.handler_slider=function(e){var i=this;d.fn.slick&&(d(".bs-slider-items-container",e).each(function(){var e=d(this),a=d(document.body).hasClass("rtl");if(!e.hasClass("slick-ready")){var t=e.data(),n=i.filter_slider_params(d.extend({sliderControlDots:"off",prevArrow:'',nextArrow:'',rtl:a,slideMargin:25,slide:".bs-slider-item",appendArrows:e.find(".bs-slider-controls .bs-control-nav"),classPrefix:"bs-slider-",dotsClass:"bs-slider-dots",customPaging:function(e,a){return d('').text(a+1)}},t));n.sliderControlDots&&t.sliderControlDots&&(n.appendDots=e.find(".bs-slider-controls"),n.dotsClass+=" "+n.dotsClass+"-"+t.sliderControlDots),e.slick(n),e.addClass("slick-ready")}}),d(".multi-tab").on("shown.bs.tab",'a[data-toggle="tab"]:not([data-deferred-init])',function(e){var a=d(e.target).attr("href");d(a).find(".bs-slider-items-container").slick("setPosition"),l()}))},t.prototype.refreshLazyImages=function(){Publisher_Theme&&Publisher_Theme.refreshLazyImages&&Publisher_Theme.refreshLazyImages()},t.prototype.bindDeferredEvents=function(e){var i=200,s=this,r=0;d(".multi-tab",e).on("show.bs.tab","a[data-deferred-init]",function(e){var a=d(this).closest(".multi-tab").find(".active").attr("href");i=d(a).height()}),d(".tabs-section",e).on("show.bs.tab","a[data-deferred-init]",function(e){var a=d(this).closest(".tabs-section").find(".active:visible a").data("target"),t=d(a);i=t.height()}).on("show.bs.tab","a",function(){s.refreshLazyImages();var e=d(this).closest(".tabs-section").find(".active:visible a").data("target"),a=d(e),t=a.outerHeight();if(t){var n=a.closest(".tab-content");if(n.length){var i=Math.max(t,parseInt(n.outerHeight()));i=Math.max(i,r),n.css("min-height",i).data("bs-height",i),r=i}}}),d("a[data-deferred-init]",e).each(function(e){var a=d(this),t=a.data("deferred-event")||"click";0
",{class:"deferred-loading-container",height:i.loadingHeight}),t=a.find(".bs-pagination");!i.loadingMinHeight||t&&t.hasClass("more_btn")||e.css("min-height",i.loadingMinHeight),e.append(r.getLoadingRawHtml()),e.appendTo(a)}r.id=a.attr("id");var n=r.getAjaxProps("deferred");"object"==typeof o[r.id]&&o[r.id].abort(),o[r.id]=d.ajax({url:n.ajax_url,type:"POST",dataType:"json",data:n}).done(function(e){a.find(".deferred-loading-container").remove(),delete o[r.id],a.addClass("deferred-html-exists").append(e.output),r.handler_slider(a),s&&s.call(a,e),l(!a.closest(".bs-pinning-block.pinned").length),r.settings.afterSuccessDeferredAjax.call(r,a,e)})}})},t.prototype.getLoadingRawHtml=function(){return'
'+bs_pagination_loc.loading+"
"},t.prototype.getAjaxProps=function(e){var a,t=("deferred"===(e=e||"pagination")?this.deferredPrefix:this.prefix)+this.id;if(void 0===window[t])throw"pagination settings not set";switch((a=jQuery.parseJSON(window[t]))._data=a.data,e.toLowerCase()){case"pagination":a.action="pagination_ajax",a.current_page=this.$link_el.parent().data("current-page")||1,a.pagin_type=this.paginationStyle;break;case"deferred":a.action="deferred_loading",a.current_page=1}if(this.$link_el){var n=this.$link_el.closest(".bs-pagination").data("bs-pagin-data");n&&(a._data=n)}return a},t.prototype.setNewPageNumber=function(){var e=this.$link_el.parent(),a=e.data("current-page")||1;if(this.isPrevPage=this.$link_el.hasClass("prev"),this.isPrevPage){if(a<2)throw"Wrong page number!";a--}else a++;e.data("current-page",a)},t.prototype.debug=function(e){console.error(e)},t.prototype.cacheThisStyle=function(e){return"next_prev"===e},t.prototype.getPaginationStyle=function(){for(var e,a=["next_prev","more_btn","more_btn_infinity","infinity"],t=this.$link_el.closest(".bs-pagination"),n=0;nPrevious',nextArrow:'',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(b,c){return a('