/*! jQuery Migrate v3.4.1 | (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)||[],a=1;a<=3;a++){if(+o[a]<+n[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.1";var t=Object.create(null);s.migrateDisablePatches=function(){for(var e=0;e<arguments.length;e++)t[arguments[e]]=!0},s.migrateEnablePatches=function(){for(var e=0;e<arguments.length;e++)delete t[arguments[e]]},s.migrateIsPatchEnabled=function(e){return!t[e]},n.console&&n.console.log&&(s&&e("3.0.0")&&!e("5.0.0")||n.console.log("JQMIGRATE: jQuery 3.x-4.x 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 o={};function u(e,t){var r=n.console;!s.migrateIsPatchEnabled(e)||s.migrateDeduplicateWarnings&&o[t]||(o[t]=!0,s.migrateWarnings.push(t+" ["+e+"]"),r&&r.warn&&!s.migrateMute&&(r.warn("JQMIGRATE: "+t),s.migrateTrace&&r.trace&&r.trace()))}function r(e,t,r,n,o){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return u(n,o),r},set:function(e){u(n,o),r=e}})}function a(e,t,r,n,o){var a=e[t];e[t]=function(){return o&&u(n,o),(s.migrateIsPatchEnabled(n)?r:a||s.noop).apply(this,arguments)}}function c(e,t,r,n,o){if(!o)throw new Error("No warning message provided");return a(e,t,r,n,o),0}function i(e,t,r,n){return a(e,t,r,n),0}s.migrateDeduplicateWarnings=!0,s.migrateWarnings=[],void 0===s.migrateTrace&&(s.migrateTrace=!0),s.migrateReset=function(){o={},s.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&u("quirks","jQuery is not compatible with Quirks Mode");var d,l,p,f={},m=s.fn.init,y=s.find,h=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,g=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,v=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;for(d in i(s.fn,"init",function(e){var t=Array.prototype.slice.call(arguments);return s.migrateIsPatchEnabled("selector-empty-id")&&"string"==typeof e&&"#"===e&&(u("selector-empty-id","jQuery( '#' ) is not a valid selector"),t[0]=[]),m.apply(this,t)},"selector-empty-id"),s.fn.init.prototype=s.fn,i(s,"find",function(t){var r=Array.prototype.slice.call(arguments);if("string"==typeof t&&h.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(g,function(e,t,r,n){return"["+t+r+'"'+n+'"]'});try{n.document.querySelector(t),u("selector-hash","Attribute selector with '#' must be quoted: "+r[0]),r[0]=t}catch(e){u("selector-hash","Attribute selector with '#' was not fixed: "+r[0])}}return y.apply(this,r)},"selector-hash"),y)Object.prototype.hasOwnProperty.call(y,d)&&(s.find[d]=y[d]);c(s.fn,"size",function(){return this.length},"size","jQuery.fn.size() is deprecated and removed; use the .length property"),c(s,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"parseJSON","jQuery.parseJSON is deprecated; use JSON.parse"),c(s,"holdReady",s.holdReady,"holdReady","jQuery.holdReady is deprecated"),c(s,"unique",s.uniqueSort,"unique","jQuery.unique is deprecated; use jQuery.uniqueSort"),r(s.expr,"filters",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),r(s.expr,":",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),e("3.1.1")&&c(s,"trim",function(e){return null==e?"":(e+"").replace(v,"$1")},"trim","jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&(c(s,"nodeName",function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"nodeName","jQuery.nodeName is deprecated"),c(s,"isArray",Array.isArray,"isArray","jQuery.isArray is deprecated; use Array.isArray")),e("3.3.0")&&(c(s,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"isNumeric","jQuery.isNumeric() is deprecated"),s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()}),c(s,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[Object.prototype.toString.call(e)]||"object":typeof e},"type","jQuery.type is deprecated"),c(s,"isFunction",function(e){return"function"==typeof e},"isFunction","jQuery.isFunction() is deprecated"),c(s,"isWindow",function(e){return null!=e&&e===e.window},"isWindow","jQuery.isWindow() is deprecated")),s.ajax&&(l=s.ajax,p=/(=)\?(?=&|$)|\?\?/,i(s,"ajax",function(){var e=l.apply(this,arguments);return e.promise&&(c(e,"success",e.done,"jqXHR-methods","jQXHR.success is deprecated and removed"),c(e,"error",e.fail,"jqXHR-methods","jQXHR.error is deprecated and removed"),c(e,"complete",e.always,"jqXHR-methods","jQXHR.complete is deprecated and removed")),e},"jqXHR-methods"),e("4.0.0")||s.ajaxPrefilter("+json",function(e){!1!==e.jsonp&&(p.test(e.url)||"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&p.test(e.data))&&u("jsonp-promotion","JSON-to-JSONP auto-promotion is deprecated")}));var j=s.fn.removeAttr,b=s.fn.toggleClass,w=/\S+/g;function x(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}i(s.fn,"removeAttr",function(e){var r=this,n=!1;return s.each(e.match(w),function(e,t){s.expr.match.bool.test(t)&&r.each(function(){if(!1!==s(this).prop(t))return!(n=!0)}),n&&(u("removeAttr-bool","jQuery.fn.removeAttr no longer sets boolean properties: "+t),r.prop(t,!1))}),j.apply(this,arguments)},"removeAttr-bool"),i(s.fn,"toggleClass",function(t){return void 0!==t&&"boolean"!=typeof t?b.apply(this,arguments):(u("toggleClass-bool","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__")||"")}))},"toggleClass-bool");var Q,A,R=!1,C=/^[a-z]/,N=/^(?: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 R=!0,e=r.apply(this,arguments),R=!1,e})}),i(s,"swap",function(e,t,r,n){var o,a,i={};for(a in R||u("swap","jQuery.swap() is undocumented and deprecated"),t)i[a]=e.style[a],e.style[a]=t[a];for(a in o=r.apply(e,n||[]),t)e.style[a]=i[a];return o},"swap"),e("3.4.0")&&"undefined"!=typeof Proxy&&(s.cssProps=new Proxy(s.cssProps||{},{set:function(){return u("cssProps","jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),e("4.0.0")?(A={animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},"undefined"!=typeof Proxy?s.cssNumber=new Proxy(A,{get:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.get.apply(this,arguments)},set:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.set.apply(this,arguments)}}):s.cssNumber=A):A=s.cssNumber,Q=s.fn.css,i(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=x(e),n=r,C.test(n)&&N.test(n[0].toUpperCase()+n.slice(1))||A[r]||u("css-number",'Number-typed values are deprecated for jQuery.fn.css( "'+e+'", value )')),Q.apply(this,arguments))},"css-number");var S,P,k,H,E=s.data;i(s,"data",function(e,t,r){var n,o,a;if(t&&"object"==typeof t&&2===arguments.length){for(a in n=s.hasData(e)&&E.call(this,e),o={},t)a!==x(a)?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+a),n[a]=t[a]):o[a]=t[a];return E.call(this,e,o),t}return t&&"string"==typeof t&&t!==x(t)&&(n=s.hasData(e)&&E.call(this,e))&&t in n?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+t),2<arguments.length&&(n[t]=r),n[t]):E.apply(this,arguments)},"data-camelCase"),s.fx&&(k=s.Tween.prototype.run,H=function(e){return e},i(s.Tween.prototype,"run",function(){1<s.easing[this.easing].length&&(u("easing-one-arg","'jQuery.easing."+this.easing.toString()+"' should use only one argument"),s.easing[this.easing]=H),k.apply(this,arguments)},"easing-one-arg"),S=s.fx.interval,P="jQuery.fx.interval is deprecated",n.requestAnimationFrame&&Object.defineProperty(s.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return n.document.hidden||u("fx-interval",P),s.migrateIsPatchEnabled("fx-interval")&&void 0===S?13:S},set:function(e){u("fx-interval",P),S=e}}));var M=s.fn.load,q=s.event.add,O=s.event.fix;s.event.props=[],s.event.fixHooks={},r(s.event.props,"concat",s.event.props.concat,"event-old-patch","jQuery.event.props.concat() is deprecated and removed"),i(s.event,"fix",function(e){var t,r=e.type,n=this.fixHooks[r],o=s.event.props;if(o.length){u("event-old-patch","jQuery.event.props are deprecated and removed: "+o.join());while(o.length)s.event.addProp(o.pop())}if(n&&!n._migrated_&&(n._migrated_=!0,u("event-old-patch","jQuery.event.fixHooks are deprecated and removed: "+r),(o=n.props)&&o.length))while(o.length)s.event.addProp(o.pop());return t=O.call(this,e),n&&n.filter?n.filter(t,e):t},"event-old-patch"),i(s.event,"add",function(e,t){return e===n&&"load"===t&&"complete"===n.document.readyState&&u("load-after-event","jQuery(window).on('load'...) called after load event occurred"),q.apply(this,arguments)},"load-after-event"),s.each(["load","unload","error"],function(e,t){i(s.fn,t,function(){var e=Array.prototype.slice.call(arguments,0);return"load"===t&&"string"==typeof e[0]?M.apply(this,e):(u("shorthand-removed-v3","jQuery.fn."+t+"() is deprecated"),e.splice(0,0,t),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))},"shorthand-removed-v3")}),s.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,r){c(s.fn,r,function(e,t){return 0<arguments.length?this.on(r,null,e,t):this.trigger(r)},"shorthand-deprecated-v3","jQuery.fn."+r+"() event shorthand is deprecated")}),s(function(){s(n.document).triggerHandler("ready")}),s.event.special.ready={setup:function(){this===n.document&&u("ready-event","'ready' event is deprecated")}},c(s.fn,"bind",function(e,t,r){return this.on(e,null,t,r)},"pre-on-methods","jQuery.fn.bind() is deprecated"),c(s.fn,"unbind",function(e,t){return this.off(e,null,t)},"pre-on-methods","jQuery.fn.unbind() is deprecated"),c(s.fn,"delegate",function(e,t,r,n){return this.on(t,e,r,n)},"pre-on-methods","jQuery.fn.delegate() is deprecated"),c(s.fn,"undelegate",function(e,t,r){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)},"pre-on-methods","jQuery.fn.undelegate() is deprecated"),c(s.fn,"hover",function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)},"pre-on-methods","jQuery.fn.hover() is deprecated");function T(e){var t=n.document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body&&t.body.innerHTML}var F=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},i(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(F,"<$1></$2>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1></$2>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["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")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[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===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s});

!function(t,e,n,o){"use strict";function i(t,e){var o,i,a=[],s=0;t&&t.isDefaultPrevented()||(t.preventDefault(),e=t&&t.data?t.data.options:e||{},o=e.$target||n(t.currentTarget),i=o.attr("data-fancybox")||"",i?(a=e.selector?n(e.selector):t.data?t.data.items:[],a=a.length?a.filter('[data-fancybox="'+i+'"]'):n('[data-fancybox="'+i+'"]'),s=a.index(o),s<0&&(s=0)):a=[o],n.fancybox.open(a,e,s))}if(t.console=t.console||{info:function(t){}},n){if(n.fn.fancybox)return void console.info("fancyBox already initialized");var a={loop:!1,gutter:50,keyboard:!0,arrows:!0,infobar:!0,smallBtn:"auto",toolbar:"auto",buttons:["zoom","thumbs","close"],idleTime:3,protect:!1,modal:!1,image:{preload:!1},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen allowtransparency="true" src=""></iframe>',preload:!0,css:{},attr:{scrolling:"auto"}},defaultType:"image",animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'<div class="fancybox-container" role="dialog" tabindex="-1"><div class="fancybox-bg"></div><div class="fancybox-inner"><div class="fancybox-infobar"><span data-fancybox-index></span>&nbsp;/&nbsp;<span data-fancybox-count></span></div><div class="fancybox-toolbar">{{buttons}}</div><div class="fancybox-navigation">{{arrows}}</div><div class="fancybox-stage"></div><div class="fancybox-caption"></div></div></div>',spinnerTpl:'<div class="fancybox-loading"></div>',errorTpl:'<div class="fancybox-error"><p>{{ERROR}}</p></div>',btnTpl:{download:'<a download data-fancybox-download class="fancybox-button fancybox-button--download" title="{{DOWNLOAD}}" href="javascript:;"><svg viewBox="0 0 40 40"><path d="M13,16 L20,23 L27,16 M20,7 L20,23 M10,24 L10,28 L30,28 L30,24" /></svg></a>',zoom:'<button data-fancybox-zoom class="fancybox-button fancybox-button--zoom" title="{{ZOOM}}"><svg viewBox="0 0 40 40"><path d="M18,17 m-8,0 a8,8 0 1,0 16,0 a8,8 0 1,0 -16,0 M24,22 L31,29" /></svg></button>',close:'<button data-fancybox-close class="fancybox-button fancybox-button--close" title="{{CLOSE}}"><svg viewBox="0 0 40 40"><path d="M10,10 L30,30 M30,10 L10,30" /></svg></button>',smallBtn:'<button data-fancybox-close class="fancybox-close-small" title="{{CLOSE}}"><svg viewBox="0 0 32 32"><path d="M10,10 L22,22 M22,10 L10,22"></path></svg></button>',arrowLeft:'<a data-fancybox-prev class="fancybox-button fancybox-button--arrow_left" title="{{PREV}}" href="javascript:;"><svg viewBox="0 0 40 40"><path d="M18,12 L10,20 L18,28 M10,20 L30,20"></path></svg></a>',arrowRight:'<a data-fancybox-next class="fancybox-button fancybox-button--arrow_right" title="{{NEXT}}" href="javascript:;"><svg viewBox="0 0 40 40"><path d="M10,20 L30,20 M22,12 L30,20 L22,28"></path></svg></a>'},parentEl:"body",autoFocus:!1,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:4e3},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"},wheel:"auto",onInit:n.noop,beforeLoad:n.noop,afterLoad:n.noop,beforeShow:n.noop,afterShow:n.noop,beforeClose:n.noop,afterClose:n.noop,onActivate:n.noop,onDeactivate:n.noop,clickContent:function(t,e){return"image"===t.type&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{idleTime:!1,clickContent:function(t,e){return"image"===t.type&&"toggleControls"},clickSlide:function(t,e){return"image"===t.type?"toggleControls":"close"},dblclickContent:function(t,e){return"image"===t.type&&"zoom"},dblclickSlide:function(t,e){return"image"===t.type&&"zoom"}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded. <br/> Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails",DOWNLOAD:"Download",SHARE:"Share",ZOOM:"Zoom"},de:{CLOSE:"Schliessen",NEXT:"Weiter",PREV:"Zurück",ERROR:"Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es später nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen",ZOOM:"Maßstab"}}},s=n(t),r=n(e),c=0,l=function(t){return t&&t.hasOwnProperty&&t instanceof n},d=function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||function(e){return t.setTimeout(e,1e3/60)}}(),u=function(){var t,n=e.createElement("fakeelement"),i={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in i)if(n.style[t]!==o)return i[t];return"transitionend"}(),f=function(t){return t&&t.length&&t[0].offsetHeight},p=function(t,e){var o=n.extend(!0,{},t,e);return n.each(e,function(t,e){n.isArray(e)&&(o[t]=e)}),o},h=function(t,o,i){var a=this;a.opts=p({index:i},n.fancybox.defaults),n.isPlainObject(o)&&(a.opts=p(a.opts,o)),n.fancybox.isMobile&&(a.opts=p(a.opts,a.opts.mobile)),a.id=a.opts.id||++c,a.currIndex=parseInt(a.opts.index,10)||0,a.prevIndex=null,a.prevPos=null,a.currPos=0,a.firstRun=!0,a.group=[],a.slides={},a.addContent(t),a.group.length&&(a.$lastFocus=n(e.activeElement).trigger("blur"),a.init())};n.extend(h.prototype,{init:function(){var i,a,s,r=this,c=r.group[r.currIndex],l=c.opts,d=n.fancybox.scrollbarWidth;n.fancybox.getInstance()||l.hideScrollbar===!1||(n("body").addClass("fancybox-active"),!n.fancybox.isMobile&&e.body.scrollHeight>t.innerHeight&&(d===o&&(i=n('<div style="width:100px;height:100px;overflow:scroll;" />').appendTo("body"),d=n.fancybox.scrollbarWidth=i[0].offsetWidth-i[0].clientWidth,i.remove()),n("head").append('<style id="fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar { margin-right: '+d+"px; }</style>"),n("body").addClass("compensate-for-scrollbar"))),s="",n.each(l.buttons,function(t,e){s+=l.btnTpl[e]||""}),a=n(r.translate(r,l.baseTpl.replace("{{buttons}}",s).replace("{{arrows}}",l.btnTpl.arrowLeft+l.btnTpl.arrowRight))).attr("id","fancybox-container-"+r.id).addClass("fancybox-is-hidden").addClass(l.baseClass).data("FancyBox",r).appendTo(l.parentEl),r.$refs={container:a},["bg","inner","infobar","toolbar","stage","caption","navigation"].forEach(function(t){r.$refs[t]=a.find(".fancybox-"+t)}),r.trigger("onInit"),r.activate(),r.jumpTo(r.currIndex)},translate:function(t,e){var n=t.opts.i18n[t.opts.lang];return e.replace(/\{\{(\w+)\}\}/g,function(t,e){var i=n[e];return i===o?t:i})},addContent:function(t){var e,i=this,a=n.makeArray(t);n.each(a,function(t,e){var a,s,r,c,l,d={},u={};n.isPlainObject(e)?(d=e,u=e.opts||e):"object"===n.type(e)&&n(e).length?(a=n(e),u=a.data()||{},u=n.extend(!0,{},u,u.options),u.$orig=a,d.src=i.opts.src||u.src||a.attr("href"),d.type||d.src||(d.type="inline",d.src=e)):d={type:"html",src:e+""},d.opts=n.extend(!0,{},i.opts,u),n.isArray(u.buttons)&&(d.opts.buttons=u.buttons),s=d.type||d.opts.type,c=d.src||"",!s&&c&&((r=c.match(/\.(mp4|mov|ogv)((\?|#).*)?$/i))?(s="video",d.opts.videoFormat||(d.opts.videoFormat="video/"+("ogv"===r[1]?"ogg":r[1]))):c.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?s="image":c.match(/\.(pdf)((\?|#).*)?$/i)?s="iframe":"#"===c.charAt(0)&&(s="inline")),s?d.type=s:i.trigger("objectNeedsType",d),d.contentType||(d.contentType=n.inArray(d.type,["html","inline","ajax"])>-1?"html":d.type),d.index=i.group.length,"auto"==d.opts.smallBtn&&(d.opts.smallBtn=n.inArray(d.type,["html","inline","ajax"])>-1),"auto"===d.opts.toolbar&&(d.opts.toolbar=!d.opts.smallBtn),d.opts.$trigger&&d.index===i.opts.index&&(d.opts.$thumb=d.opts.$trigger.find("img:first")),d.opts.$thumb&&d.opts.$thumb.length||!d.opts.$orig||(d.opts.$thumb=d.opts.$orig.find("img:first")),"function"===n.type(d.opts.caption)&&(d.opts.caption=d.opts.caption.apply(e,[i,d])),"function"===n.type(i.opts.caption)&&(d.opts.caption=i.opts.caption.apply(e,[i,d])),d.opts.caption instanceof n||(d.opts.caption=d.opts.caption===o?"":d.opts.caption+""),"ajax"===d.type&&(l=c.split(/\s+/,2),l.length>1&&(d.src=l.shift(),d.opts.filter=l.shift())),d.opts.modal&&(d.opts=n.extend(!0,d.opts,{infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1})),i.group.push(d)}),Object.keys(i.slides).length&&(i.updateControls(),e=i.Thumbs,e&&e.isActive&&(e.create(),e.focus()))},addEvents:function(){var o=this;o.removeEvents(),o.$refs.container.on("click.fb-close","[data-fancybox-close]",function(t){t.stopPropagation(),t.preventDefault(),o.close(t)}).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",function(t){t.stopPropagation(),t.preventDefault(),o.previous()}).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",function(t){t.stopPropagation(),t.preventDefault(),o.next()}).on("click.fb","[data-fancybox-zoom]",function(t){o[o.isScaledDown()?"scaleToActual":"scaleToFit"]()}),s.on("orientationchange.fb resize.fb",function(t){t&&t.originalEvent&&"resize"===t.originalEvent.type?d(function(){o.update()}):(o.$refs.stage.hide(),setTimeout(function(){o.$refs.stage.show(),o.update()},n.fancybox.isMobile?600:250))}),r.on("focusin.fb",function(t){var o=n.fancybox?n.fancybox.getInstance():null;o.isClosing||!o.current||!o.current.opts.trapFocus||n(t.target).hasClass("fancybox-container")||n(t.target).is(e)||o&&"fixed"!==n(t.target).css("position")&&!o.$refs.container.has(t.target).length&&(t.stopPropagation(),o.focus())}),r.on("keydown.fb",function(t){var e=o.current,i=t.keyCode||t.which;if(e&&e.opts.keyboard&&!(t.ctrlKey||t.altKey||t.shiftKey||n(t.target).is("input")||n(t.target).is("textarea")))return 8===i||27===i?(t.preventDefault(),void o.close(t)):37===i||38===i?(t.preventDefault(),void o.previous()):39===i||40===i?(t.preventDefault(),void o.next()):void o.trigger("afterKeydown",t,i)}),o.group[o.currIndex].opts.idleTime&&(o.idleSecondsCounter=0,r.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(t){o.idleSecondsCounter=0,o.isIdle&&o.showControls(),o.isIdle=!1}),o.idleInterval=t.setInterval(function(){o.idleSecondsCounter++,o.idleSecondsCounter>=o.group[o.currIndex].opts.idleTime&&!o.isDragging&&(o.isIdle=!0,o.idleSecondsCounter=0,o.hideControls())},1e3))},removeEvents:function(){var e=this;s.off("orientationchange.fb resize.fb"),r.off("focusin.fb keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),e.idleInterval&&(t.clearInterval(e.idleInterval),e.idleInterval=null)},previous:function(t){return this.jumpTo(this.currPos-1,t)},next:function(t){return this.jumpTo(this.currPos+1,t)},jumpTo:function(t,e){var i,a,s,r,c,l,d,u=this,p=u.group.length;if(!(u.isDragging||u.isClosing||u.isAnimating&&u.firstRun)){if(t=parseInt(t,10),a=u.current?u.current.opts.loop:u.opts.loop,!a&&(t<0||t>=p))return!1;if(i=u.firstRun=!Object.keys(u.slides).length,!(p<2&&!i&&u.isDragging)){if(r=u.current,u.prevIndex=u.currIndex,u.prevPos=u.currPos,s=u.createSlide(t),p>1&&((a||s.index>0)&&u.createSlide(t-1),(a||s.index<p-1)&&u.createSlide(t+1)),u.current=s,u.currIndex=s.index,u.currPos=s.pos,u.trigger("beforeShow",i),u.updateControls(),l=n.fancybox.getTranslate(s.$slide),s.isMoved=(0!==l.left||0!==l.top)&&!s.$slide.hasClass("fancybox-animated"),s.forcedDuration=o,n.isNumeric(e)?s.forcedDuration=e:e=s.opts[i?"animationDuration":"transitionDuration"],e=parseInt(e,10),i)return s.opts.animationEffect&&e&&u.$refs.container.css("transition-duration",e+"ms"),u.$refs.container.removeClass("fancybox-is-hidden"),f(u.$refs.container),u.$refs.container.addClass("fancybox-is-open"),f(u.$refs.container),s.$slide.addClass("fancybox-slide--previous"),u.loadSlide(s),s.$slide.removeClass("fancybox-slide--previous").addClass("fancybox-slide--current"),void u.preload("image");n.each(u.slides,function(t,e){n.fancybox.stop(e.$slide)}),s.$slide.removeClass("fancybox-slide--next fancybox-slide--previous").addClass("fancybox-slide--current"),s.isMoved?(c=Math.round(s.$slide.width()),n.each(u.slides,function(t,o){var i=o.pos-s.pos;n.fancybox.animate(o.$slide,{top:0,left:i*c+i*o.opts.gutter},e,function(){o.$slide.removeAttr("style").removeClass("fancybox-slide--next fancybox-slide--previous"),o.pos===u.currPos&&(s.isMoved=!1,u.complete())})})):u.$refs.stage.children().removeAttr("style"),s.isLoaded?u.revealContent(s):u.loadSlide(s),u.preload("image"),r.pos!==s.pos&&(d="fancybox-slide--"+(r.pos>s.pos?"next":"previous"),r.$slide.removeClass("fancybox-slide--complete fancybox-slide--current fancybox-slide--next fancybox-slide--previous"),r.isComplete=!1,e&&(s.isMoved||s.opts.transitionEffect)&&(s.isMoved?r.$slide.addClass(d):(d="fancybox-animated "+d+" fancybox-fx-"+s.opts.transitionEffect,n.fancybox.animate(r.$slide,d,e,function(){r.$slide.removeClass(d).removeAttr("style")}))))}}},createSlide:function(t){var e,o,i=this;return o=t%i.group.length,o=o<0?i.group.length+o:o,!i.slides[t]&&i.group[o]&&(e=n('<div class="fancybox-slide"></div>').appendTo(i.$refs.stage),i.slides[t]=n.extend(!0,{},i.group[o],{pos:t,$slide:e,isLoaded:!1}),i.updateSlide(i.slides[t])),i.slides[t]},scaleToActual:function(t,e,i){var a,s,r,c,l,d=this,u=d.current,f=u.$content,p=n.fancybox.getTranslate(u.$slide).width,h=n.fancybox.getTranslate(u.$slide).height,g=u.width,b=u.height;!d.isAnimating&&f&&"image"==u.type&&u.isLoaded&&!u.hasError&&(n.fancybox.stop(f),d.isAnimating=!0,t=t===o?.5*p:t,e=e===o?.5*h:e,a=n.fancybox.getTranslate(f),a.top-=n.fancybox.getTranslate(u.$slide).top,a.left-=n.fancybox.getTranslate(u.$slide).left,c=g/a.width,l=b/a.height,s=.5*p-.5*g,r=.5*h-.5*b,g>p&&(s=a.left*c-(t*c-t),s>0&&(s=0),s<p-g&&(s=p-g)),b>h&&(r=a.top*l-(e*l-e),r>0&&(r=0),r<h-b&&(r=h-b)),d.updateCursor(g,b),n.fancybox.animate(f,{top:r,left:s,scaleX:c,scaleY:l},i||330,function(){d.isAnimating=!1}),d.SlideShow&&d.SlideShow.isActive&&d.SlideShow.stop())},scaleToFit:function(t){var e,o=this,i=o.current,a=i.$content;!o.isAnimating&&a&&"image"==i.type&&i.isLoaded&&!i.hasError&&(n.fancybox.stop(a),o.isAnimating=!0,e=o.getFitPos(i),o.updateCursor(e.width,e.height),n.fancybox.animate(a,{top:e.top,left:e.left,scaleX:e.width/a.width(),scaleY:e.height/a.height()},t||330,function(){o.isAnimating=!1}))},getFitPos:function(t){var e,n,o,i,a,s=this,r=t.$content,c=t.width||t.opts.width,l=t.height||t.opts.height,d={};return!!(t.isLoaded&&r&&r.length)&&(i={top:parseInt(t.$slide.css("paddingTop"),10),right:parseInt(t.$slide.css("paddingRight"),10),bottom:parseInt(t.$slide.css("paddingBottom"),10),left:parseInt(t.$slide.css("paddingLeft"),10)},e=parseInt(s.$refs.stage.width(),10)-(i.left+i.right),n=parseInt(s.$refs.stage.height(),10)-(i.top+i.bottom),c&&l||(c=e,l=n),o=Math.min(1,e/c,n/l),c=Math.floor(o*c),l=Math.floor(o*l),"image"===t.type?(d.top=Math.floor(.5*(n-l))+i.top,d.left=Math.floor(.5*(e-c))+i.left):"video"===t.contentType&&(a=t.opts.width&&t.opts.height?c/l:t.opts.ratio||16/9,l>c/a?l=c/a:c>l*a&&(c=l*a)),d.width=c,d.height=l,d)},update:function(){var t=this;n.each(t.slides,function(e,n){t.updateSlide(n)})},updateSlide:function(t,e){var o=this,i=t&&t.$content,a=t.width||t.opts.width,s=t.height||t.opts.height;i&&(a||s||"video"===t.contentType)&&!t.hasError&&(n.fancybox.stop(i),n.fancybox.setTranslate(i,o.getFitPos(t)),t.pos===o.currPos&&(o.isAnimating=!1,o.updateCursor())),t.$slide.trigger("refresh"),o.$refs.toolbar.toggleClass("compensate-for-scrollbar",t.$slide.get(0).scrollHeight>t.$slide.get(0).clientHeight),o.trigger("onUpdate",t)},centerSlide:function(t,e){var i,a,s=this;s.current&&(i=Math.round(t.$slide.width()),a=t.pos-s.current.pos,n.fancybox.animate(t.$slide,{top:0,left:a*i+a*t.opts.gutter,opacity:1},e===o?0:e,null,!1))},updateCursor:function(t,e){var o,i=this,a=i.current,s=i.$refs.container.removeClass("fancybox-is-zoomable fancybox-can-zoomIn fancybox-can-drag fancybox-can-zoomOut");a&&!i.isClosing&&(o=i.isZoomable(),s.toggleClass("fancybox-is-zoomable",o),n("[data-fancybox-zoom]").prop("disabled",!o),o&&("zoom"===a.opts.clickContent||n.isFunction(a.opts.clickContent)&&"zoom"===a.opts.clickContent(a))?i.isScaledDown(t,e)?s.addClass("fancybox-can-zoomIn"):a.opts.touch?s.addClass("fancybox-can-drag"):s.addClass("fancybox-can-zoomOut"):a.opts.touch&&"video"!==a.contentType&&s.addClass("fancybox-can-drag"))},isZoomable:function(){var t,e=this,n=e.current;if(n&&!e.isClosing&&"image"===n.type&&!n.hasError){if(!n.isLoaded)return!0;if(t=e.getFitPos(n),n.width>t.width||n.height>t.height)return!0}return!1},isScaledDown:function(t,e){var i=this,a=!1,s=i.current,r=s.$content;return t!==o&&e!==o?a=t<s.width&&e<s.height:r&&(a=n.fancybox.getTranslate(r),a=a.width<s.width&&a.height<s.height),a},canPan:function(){var t,e=this,n=!1,o=e.current;return"image"===o.type&&(t=o.$content)&&!o.hasError&&(n=e.getFitPos(o),n=Math.abs(t.width()-n.width)>1||Math.abs(t.height()-n.height)>1),n},loadSlide:function(t){var e,o,i,a=this;if(!t.isLoading&&!t.isLoaded){switch(t.isLoading=!0,a.trigger("beforeLoad",t),e=t.type,o=t.$slide,o.off("refresh").trigger("onReset").addClass(t.opts.slideClass),e){case"image":a.setImage(t);break;case"iframe":a.setIframe(t);break;case"html":a.setContent(t,t.src||t.content);break;case"video":a.setContent(t,'<video class="fancybox-video" controls controlsList="nodownload"><source src="'+t.src+'" type="'+t.opts.videoFormat+"\">Your browser doesn't support HTML5 video</video");break;case"inline":n(t.src).length?a.setContent(t,n(t.src)):a.setError(t);break;case"ajax":a.showLoading(t),i=n.ajax(n.extend({},t.opts.ajax.settings,{url:t.src,success:function(e,n){"success"===n&&a.setContent(t,e)},error:function(e,n){e&&"abort"!==n&&a.setError(t)}})),o.one("onReset",function(){i.abort()});break;default:a.setError(t)}return!0}},setImage:function(e){var o,i,a,s,r,c=this,l=e.opts.srcset||e.opts.image.srcset;if(e.timouts=setTimeout(function(){var t=e.$image;!e.isLoading||t&&t[0].complete||e.hasError||c.showLoading(e)},350),l){s=t.devicePixelRatio||1,r=t.innerWidth*s,a=l.split(",").map(function(t){var e={};return t.trim().split(/\s+/).forEach(function(t,n){var o=parseInt(t.substring(0,t.length-1),10);return 0===n?e.url=t:void(o&&(e.value=o,e.postfix=t[t.length-1]))}),e}),a.sort(function(t,e){return t.value-e.value});for(var d=0;d<a.length;d++){var u=a[d];if("w"===u.postfix&&u.value>=r||"x"===u.postfix&&u.value>=s){i=u;break}}!i&&a.length&&(i=a[a.length-1]),i&&(e.src=i.url,e.width&&e.height&&"w"==i.postfix&&(e.height=e.width/e.height*i.value,e.width=i.value),e.opts.srcset=l)}e.$content=n('<div class="fancybox-content"></div>').addClass("fancybox-is-hidden").appendTo(e.$slide.addClass("fancybox-slide--image")),o=e.opts.thumb||!(!e.opts.$thumb||!e.opts.$thumb.length)&&e.opts.$thumb.attr("src"),e.opts.preload!==!1&&e.opts.width&&e.opts.height&&o&&(e.width=e.opts.width,e.height=e.opts.height,e.$ghost=n("<img />").one("error",function(){n(this).remove(),e.$ghost=null}).one("load",function(){c.afterLoad(e)}).addClass("fancybox-image").appendTo(e.$content).attr("src",o)),c.setBigImage(e)},setBigImage:function(t){var e=this,o=n("<img />");t.$image=o.one("error",function(){e.setError(t)}).one("load",function(){var n;t.$ghost||(e.resolveImageSlideSize(t,this.naturalWidth,this.naturalHeight),e.afterLoad(t)),t.timouts&&(clearTimeout(t.timouts),t.timouts=null),e.isClosing||(t.opts.srcset&&(n=t.opts.sizes,n&&"auto"!==n||(n=(t.width/t.height>1&&s.width()/s.height()>1?"100":Math.round(t.width/t.height*100))+"vw"),o.attr("sizes",n).attr("srcset",t.opts.srcset)),t.$ghost&&setTimeout(function(){t.$ghost&&!e.isClosing&&t.$ghost.hide()},Math.min(300,Math.max(1e3,t.height/1600))),e.hideLoading(t))}).addClass("fancybox-image").attr("src",t.src).appendTo(t.$content),(o[0].complete||"complete"==o[0].readyState)&&o[0].naturalWidth&&o[0].naturalHeight?o.trigger("load"):o[0].error&&o.trigger("error")},resolveImageSlideSize:function(t,e,n){var o=parseInt(t.opts.width,10),i=parseInt(t.opts.height,10);t.width=e,t.height=n,o>0&&(t.width=o,t.height=Math.floor(o*n/e)),i>0&&(t.width=Math.floor(i*e/n),t.height=i)},setIframe:function(t){var e,i=this,a=t.opts.iframe,s=t.$slide;t.$content=n('<div class="fancybox-content'+(a.preload?" fancybox-is-hidden":"")+'"></div>').css(a.css).appendTo(s),s.addClass("fancybox-slide--"+t.contentType),t.$iframe=e=n(a.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(a.attr).appendTo(t.$content),a.preload?(i.showLoading(t),e.on("load.fb error.fb",function(e){this.isReady=1,t.$slide.trigger("refresh"),i.afterLoad(t)}),s.on("refresh.fb",function(){var n,i,s=t.$content,r=a.css.width,c=a.css.height;if(1===e[0].isReady){try{n=e.contents(),i=n.find("body")}catch(t){}i&&i.length&&i.children().length&&(s.css({width:"",height:""}),r===o&&(r=Math.ceil(Math.max(i[0].clientWidth,i.outerWidth(!0)))),r&&s.width(r),c===o&&(c=Math.ceil(Math.max(i[0].clientHeight,i.outerHeight(!0)))),c&&s.height(c)),s.removeClass("fancybox-is-hidden")}})):this.afterLoad(t),e.attr("src",t.src),s.one("onReset",function(){try{n(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(t){}n(this).off("refresh.fb").empty(),t.isLoaded=!1})},setContent:function(t,e){var o=this;o.isClosing||(o.hideLoading(t),t.$content&&n.fancybox.stop(t.$content),t.$slide.empty(),l(e)&&e.parent().length?(e.parent().parent(".fancybox-slide--inline").trigger("onReset"),t.$placeholder=n("<div>").hide().insertAfter(e),e.css("display","inline-block")):t.hasError||("string"===n.type(e)&&(e=n("<div>").append(n.trim(e)).contents(),3===e[0].nodeType&&(e=n("<div>").html(e))),t.opts.filter&&(e=n("<div>").html(e).find(t.opts.filter))),t.$slide.one("onReset",function(){n(this).find("video,audio").trigger("pause"),t.$placeholder&&(t.$placeholder.after(e.hide()).remove(),t.$placeholder=null),t.$smallBtn&&(t.$smallBtn.remove(),t.$smallBtn=null),t.hasError||(n(this).empty(),t.isLoaded=!1)}),n(e).appendTo(t.$slide),n(e).is("video,audio")&&(n(e).addClass("fancybox-video"),n(e).wrap("<div></div>"),t.contentType="video",t.opts.width=t.opts.width||n(e).attr("width"),t.opts.height=t.opts.height||n(e).attr("height")),t.$content=t.$slide.children().filter("div,form,main,video,audio").first().addClass("fancybox-content"),t.$slide.addClass("fancybox-slide--"+t.contentType),this.afterLoad(t))},setError:function(t){t.hasError=!0,t.$slide.trigger("onReset").removeClass("fancybox-slide--"+t.contentType).addClass("fancybox-slide--error"),t.contentType="html",this.setContent(t,this.translate(t,t.opts.errorTpl)),t.pos===this.currPos&&(this.isAnimating=!1)},showLoading:function(t){var e=this;t=t||e.current,t&&!t.$spinner&&(t.$spinner=n(e.translate(e,e.opts.spinnerTpl)).appendTo(t.$slide))},hideLoading:function(t){var e=this;t=t||e.current,t&&t.$spinner&&(t.$spinner.remove(),delete t.$spinner)},afterLoad:function(t){var e=this;e.isClosing||(t.isLoading=!1,t.isLoaded=!0,e.trigger("afterLoad",t),e.hideLoading(t),t.pos===e.currPos&&e.updateCursor(),!t.opts.smallBtn||t.$smallBtn&&t.$smallBtn.length||(t.$smallBtn=n(e.translate(t,t.opts.btnTpl.smallBtn)).prependTo(t.$content)),t.opts.protect&&t.$content&&!t.hasError&&(t.$content.on("contextmenu.fb",function(t){return 2==t.button&&t.preventDefault(),!0}),"image"===t.type&&n('<div class="fancybox-spaceball"></div>').appendTo(t.$content)),e.revealContent(t))},revealContent:function(t){var e,i,a,s,r=this,c=t.$slide,l=!1,d=!1;return e=t.opts[r.firstRun?"animationEffect":"transitionEffect"],a=t.opts[r.firstRun?"animationDuration":"transitionDuration"],a=parseInt(t.forcedDuration===o?a:t.forcedDuration,10),t.pos===r.currPos&&(t.isComplete?e=!1:r.isAnimating=!0),!t.isMoved&&t.pos===r.currPos&&a||(e=!1),"zoom"===e&&(t.pos===r.currPos&&a&&"image"===t.type&&!t.hasError&&(d=r.getThumbPos(t))?l=r.getFitPos(t):e="fade"),"zoom"===e?(l.scaleX=l.width/d.width,l.scaleY=l.height/d.height,s=t.opts.zoomOpacity,"auto"==s&&(s=Math.abs(t.width/t.height-d.width/d.height)>.1),s&&(d.opacity=.1,l.opacity=1),n.fancybox.setTranslate(t.$content.removeClass("fancybox-is-hidden"),d),f(t.$content),void n.fancybox.animate(t.$content,l,a,function(){r.isAnimating=!1,r.complete()})):(r.updateSlide(t),e?(n.fancybox.stop(c),i="fancybox-animated fancybox-slide--"+(t.pos>=r.prevPos?"next":"previous")+" fancybox-fx-"+e,c.removeAttr("style").removeClass("fancybox-slide--current fancybox-slide--next fancybox-slide--previous").addClass(i),t.$content.removeClass("fancybox-is-hidden"),f(c),void n.fancybox.animate(c,"fancybox-slide--current",a,function(e){c.removeClass(i).removeAttr("style"),t.pos===r.currPos&&r.complete()},!0)):(f(c),t.$content.removeClass("fancybox-is-hidden"),void(t.pos===r.currPos&&r.complete())))},getThumbPos:function(o){var i,a=this,s=!1,r=o.opts.$thumb,c=r&&r.length&&r[0].ownerDocument===e?r.offset():0,l=function(e){for(var o,i=e[0],a=i.getBoundingClientRect(),s=[];null!==i.parentElement;)"hidden"!==n(i.parentElement).css("overflow")&&"auto"!==n(i.parentElement).css("overflow")||s.push(i.parentElement.getBoundingClientRect()),i=i.parentElement;return o=s.every(function(t){var e=Math.min(a.right,t.right)-Math.max(a.left,t.left),n=Math.min(a.bottom,t.bottom)-Math.max(a.top,t.top);return e>0&&n>0}),o&&a.bottom>0&&a.right>0&&a.left<n(t).width()&&a.top<n(t).height()};return c&&l(r)&&(i=a.$refs.stage.offset(),s={top:c.top-i.top+parseFloat(r.css("border-top-width")||0),left:c.left-i.left+parseFloat(r.css("border-left-width")||0),width:r.width(),height:r.height(),scaleX:1,scaleY:1}),s},complete:function(){var t=this,o=t.current,i={};!o.isMoved&&o.isLoaded&&(o.isComplete||(o.isComplete=!0,o.$slide.siblings().trigger("onReset"),t.preload("inline"),f(o.$slide),o.$slide.addClass("fancybox-slide--complete"),n.each(t.slides,function(e,o){o.pos>=t.currPos-1&&o.pos<=t.currPos+1?i[o.pos]=o:o&&(n.fancybox.stop(o.$slide),o.$slide.off().remove())}),t.slides=i),t.isAnimating=!1,t.updateCursor(),t.trigger("afterShow"),o.$slide.find("video,audio").filter(":visible:first").trigger("play"),(n(e.activeElement).is("[disabled]")||o.opts.autoFocus&&"image"!=o.type&&"iframe"!==o.type)&&t.focus())},preload:function(t){var e=this,n=e.slides[e.currPos+1],o=e.slides[e.currPos-1];n&&n.type===t&&e.loadSlide(n),o&&o.type===t&&e.loadSlide(o)},focus:function(){var t,e=this.current;this.isClosing||e&&e.isComplete&&e.$content&&(t=e.$content.find("input[autofocus]:enabled:visible:first"),t.length||(t=e.$content.find("button,:input,[tabindex],a").filter(":enabled:visible:first")),t=t&&t.length?t:e.$content,t.trigger("focus"))},activate:function(){var t=this;n(".fancybox-container").each(function(){var e=n(this).data("FancyBox");e&&e.id!==t.id&&!e.isClosing&&(e.trigger("onDeactivate"),e.removeEvents(),e.isVisible=!1)}),t.isVisible=!0,(t.current||t.isIdle)&&(t.update(),t.updateControls()),t.trigger("onActivate"),t.addEvents()},close:function(t,e){var o,i,a,s,r,c,l,p=this,h=p.current,g=function(){p.cleanUp(t)};return!p.isClosing&&(p.isClosing=!0,p.trigger("beforeClose",t)===!1?(p.isClosing=!1,d(function(){p.update()}),!1):(p.removeEvents(),h.timouts&&clearTimeout(h.timouts),a=h.$content,o=h.opts.animationEffect,i=n.isNumeric(e)?e:o?h.opts.animationDuration:0,h.$slide.off(u).removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),h.$slide.siblings().trigger("onReset").remove(),i&&p.$refs.container.removeClass("fancybox-is-open").addClass("fancybox-is-closing"),p.hideLoading(h),p.hideControls(),p.updateCursor(),"zoom"!==o||t!==!0&&a&&i&&"image"===h.type&&!h.hasError&&(l=p.getThumbPos(h))||(o="fade"),"zoom"===o?(n.fancybox.stop(a),s=n.fancybox.getTranslate(a),c={top:s.top,left:s.left,scaleX:s.width/l.width,scaleY:s.height/l.height,width:l.width,height:l.height},r=h.opts.zoomOpacity,"auto"==r&&(r=Math.abs(h.width/h.height-l.width/l.height)>.1),r&&(l.opacity=0),n.fancybox.setTranslate(a,c),f(a),n.fancybox.animate(a,l,i,g),!0):(o&&i?t===!0?setTimeout(g,i):n.fancybox.animate(h.$slide.removeClass("fancybox-slide--current"),"fancybox-animated fancybox-slide--previous fancybox-fx-"+o,i,g):g(),!0)))},cleanUp:function(t){var e,o=this,i=n("body");o.current.$slide.trigger("onReset"),o.$refs.container.empty().remove(),o.trigger("afterClose",t),o.$lastFocus&&o.current.opts.backFocus&&o.$lastFocus.trigger("focus"),o.current=null,e=n.fancybox.getInstance(),e?e.activate():(i.removeClass("fancybox-active compensate-for-scrollbar"),n("#fancybox-style-noscroll").remove())},trigger:function(t,e){var o,i=Array.prototype.slice.call(arguments,1),a=this,s=e&&e.opts?e:a.current;return s?i.unshift(s):s=a,i.unshift(a),n.isFunction(s.opts[t])&&(o=s.opts[t].apply(s,i)),o===!1?o:void("afterClose"!==t&&a.$refs?a.$refs.container.trigger(t+".fb",i):r.trigger(t+".fb",i))},updateControls:function(t){var e=this,n=e.current,o=n.index,i=n.opts.caption,a=e.$refs.container,s=e.$refs.caption;n.$slide.trigger("refresh"),e.$caption=i&&i.length?s.html(i):null,e.isHiddenControls||e.isIdle||e.showControls(),a.find("[data-fancybox-count]").html(e.group.length),a.find("[data-fancybox-index]").html(o+1),a.find("[data-fancybox-prev]").toggleClass("disabled",!n.opts.loop&&o<=0),a.find("[data-fancybox-next]").toggleClass("disabled",!n.opts.loop&&o>=e.group.length-1),"image"===n.type?a.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",n.opts.image.src||n.src).show():n.opts.toolbar&&a.find("[data-fancybox-download],[data-fancybox-zoom]").hide()},hideControls:function(){this.isHiddenControls=!0,this.$refs.container.removeClass("fancybox-show-infobar fancybox-show-toolbar fancybox-show-caption fancybox-show-nav")},showControls:function(){var t=this,e=t.current?t.current.opts:t.opts,n=t.$refs.container;t.isHiddenControls=!1,t.idleSecondsCounter=0,n.toggleClass("fancybox-show-toolbar",!(!e.toolbar||!e.buttons)).toggleClass("fancybox-show-infobar",!!(e.infobar&&t.group.length>1)).toggleClass("fancybox-show-nav",!!(e.arrows&&t.group.length>1)).toggleClass("fancybox-is-modal",!!e.modal),t.$caption?n.addClass("fancybox-show-caption "):n.removeClass("fancybox-show-caption")},toggleControls:function(){this.isHiddenControls?this.showControls():this.hideControls()}}),n.fancybox={version:"3.3.5",defaults:a,getInstance:function(t){var e=n('.fancybox-container:not(".fancybox-is-closing"):last').data("FancyBox"),o=Array.prototype.slice.call(arguments,1);return e instanceof h&&("string"===n.type(t)?e[t].apply(e,o):"function"===n.type(t)&&t.apply(e,o),e)},open:function(t,e,n){return new h(t,e,n)},close:function(t){var e=this.getInstance();e&&(e.close(),t===!0&&this.close())},destroy:function(){this.close(!0),r.add("body").off("click.fb-start","**")},isMobile:e.createTouch!==o&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),use3d:function(){var n=e.createElement("div");return t.getComputedStyle&&t.getComputedStyle(n)&&t.getComputedStyle(n).getPropertyValue("transform")&&!(e.documentMode&&e.documentMode<11)}(),getTranslate:function(t){var e;return!(!t||!t.length)&&(e=t[0].getBoundingClientRect(),{top:e.top||0,left:e.left||0,width:e.width,height:e.height,opacity:parseFloat(t.css("opacity"))})},setTranslate:function(t,e){var n="",i={};if(t&&e)return e.left===o&&e.top===o||(n=(e.left===o?t.position().left:e.left)+"px, "+(e.top===o?t.position().top:e.top)+"px",n=this.use3d?"translate3d("+n+", 0px)":"translate("+n+")"),e.scaleX!==o&&e.scaleY!==o&&(n=(n.length?n+" ":"")+"scale("+e.scaleX+", "+e.scaleY+")"),n.length&&(i.transform=n),e.opacity!==o&&(i.opacity=e.opacity),e.width!==o&&(i.width=e.width),e.height!==o&&(i.height=e.height),t.css(i)},animate:function(t,e,i,a,s){var r=!1;n.isFunction(i)&&(a=i,i=null),n.isPlainObject(e)||t.removeAttr("style"),n.fancybox.stop(t),t.on(u,function(o){(!o||!o.originalEvent||t.is(o.originalEvent.target)&&"z-index"!=o.originalEvent.propertyName)&&(n.fancybox.stop(t),r&&n.fancybox.setTranslate(t,r),
n.isPlainObject(e)?s===!1&&t.removeAttr("style"):s!==!0&&t.removeClass(e),n.isFunction(a)&&a(o))}),n.isNumeric(i)&&t.css("transition-duration",i+"ms"),n.isPlainObject(e)?(e.scaleX!==o&&e.scaleY!==o&&(r=n.extend({},e,{width:t.width()*e.scaleX,height:t.height()*e.scaleY,scaleX:1,scaleY:1}),delete e.width,delete e.height,t.parent().hasClass("fancybox-slide--image")&&t.parent().addClass("fancybox-is-scaling")),n.fancybox.setTranslate(t,e)):t.addClass(e),t.data("timer",setTimeout(function(){t.trigger("transitionend")},i+16))},stop:function(t){t&&t.length&&(clearTimeout(t.data("timer")),t.off("transitionend").css("transition-duration",""),t.parent().removeClass("fancybox-is-scaling"))}},n.fn.fancybox=function(t){var e;return t=t||{},e=t.selector||!1,e?n("body").off("click.fb-start",e).on("click.fb-start",e,{options:t},i):this.off("click.fb-start").on("click.fb-start",{items:this,options:t},i),this},r.on("click.fb-start","[data-fancybox]",i),r.on("click.fb-start","[data-trigger]",function(t){i(t,{$target:n('[data-fancybox="'+n(t.currentTarget).attr("data-trigger")+'"]').eq(n(t.currentTarget).attr("data-index")||0),$trigger:n(this)})})}}(window,document,window.jQuery||jQuery),function(t){"use strict";var e=function(e,n,o){if(e)return o=o||"","object"===t.type(o)&&(o=t.param(o,!0)),t.each(n,function(t,n){e=e.replace("$"+t,n||"")}),o.length&&(e+=(e.indexOf("?")>0?"&":"?")+o),e},n={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"//www.youtube.com/embed/$4",thumb:"//img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1,api:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/?ll="+(t[9]?t[9]+"&z="+Math.floor(t[10])+(t[12]?t[12].replace(/^\//,"&"):""):t[12]+"").replace(/\?/,"&")+"&output="+(t[12]&&t[12].indexOf("layer=c")>0?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/maps?q="+t[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}};t(document).on("objectNeedsType.fb",function(o,i,a){var s,r,c,l,d,u,f,p=a.src||"",h=!1;s=t.extend(!0,{},n,a.opts.media),t.each(s,function(n,o){if(c=p.match(o.matcher)){if(h=o.type,f=n,u={},o.paramPlace&&c[o.paramPlace]){d=c[o.paramPlace],"?"==d[0]&&(d=d.substring(1)),d=d.split("&");for(var i=0;i<d.length;++i){var s=d[i].split("=",2);2==s.length&&(u[s[0]]=decodeURIComponent(s[1].replace(/\+/g," ")))}}return l=t.extend(!0,{},o.params,a.opts[n],u),p="function"===t.type(o.url)?o.url.call(this,c,l,a):e(o.url,c,l),r="function"===t.type(o.thumb)?o.thumb.call(this,c,l,a):e(o.thumb,c),"youtube"===n?p=p.replace(/&t=((\d+)m)?(\d+)s/,function(t,e,n,o){return"&start="+((n?60*parseInt(n,10):0)+parseInt(o,10))}):"vimeo"===n&&(p=p.replace("&%23","#")),!1}}),h?(a.opts.thumb||a.opts.$thumb&&a.opts.$thumb.length||(a.opts.thumb=r),"iframe"===h&&(a.opts=t.extend(!0,a.opts,{iframe:{preload:!1,attr:{scrolling:"no"}}})),t.extend(a,{type:h,src:p,origSrc:a.src,contentSource:f,contentType:"image"===h?"image":"gmap_place"==f||"gmap_search"==f?"map":"video"})):p&&(a.type=a.opts.defaultType)})}(window.jQuery||jQuery),function(t,e,n){"use strict";var o=function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||function(e){return t.setTimeout(e,1e3/60)}}(),i=function(){return t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.mozCancelAnimationFrame||t.oCancelAnimationFrame||function(e){t.clearTimeout(e)}}(),a=function(e){var n=[];e=e.originalEvent||e||t.e,e=e.touches&&e.touches.length?e.touches:e.changedTouches&&e.changedTouches.length?e.changedTouches:[e];for(var o in e)e[o].pageX?n.push({x:e[o].pageX,y:e[o].pageY}):e[o].clientX&&n.push({x:e[o].clientX,y:e[o].clientY});return n},s=function(t,e,n){return e&&t?"x"===n?t.x-e.x:"y"===n?t.y-e.y:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0},r=function(t){if(t.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio')||n.isFunction(t.get(0).onclick)||t.data("selectable"))return!0;for(var e=0,o=t[0].attributes,i=o.length;e<i;e++)if("data-fancybox-"===o[e].nodeName.substr(0,14))return!0;return!1},c=function(e){var n=t.getComputedStyle(e)["overflow-y"],o=t.getComputedStyle(e)["overflow-x"],i=("scroll"===n||"auto"===n)&&e.scrollHeight>e.clientHeight,a=("scroll"===o||"auto"===o)&&e.scrollWidth>e.clientWidth;return i||a},l=function(t){for(var e=!1;;){if(e=c(t.get(0)))break;if(t=t.parent(),!t.length||t.hasClass("fancybox-stage")||t.is("body"))break}return e},d=function(t){var e=this;e.instance=t,e.$bg=t.$refs.bg,e.$stage=t.$refs.stage,e.$container=t.$refs.container,e.destroy(),e.$container.on("touchstart.fb.touch mousedown.fb.touch",n.proxy(e,"ontouchstart"))};d.prototype.destroy=function(){this.$container.off(".fb.touch")},d.prototype.ontouchstart=function(o){var i=this,c=n(o.target),d=i.instance,u=d.current,f=u.$content,p="touchstart"==o.type;if(p&&i.$container.off("mousedown.fb.touch"),(!o.originalEvent||2!=o.originalEvent.button)&&c.length&&!r(c)&&!r(c.parent())&&(c.is("img")||!(o.originalEvent.clientX>c[0].clientWidth+c.offset().left))){if(!u||d.isAnimating||d.isClosing)return o.stopPropagation(),void o.preventDefault();if(i.realPoints=i.startPoints=a(o),i.startPoints.length){if(o.stopPropagation(),i.startEvent=o,i.canTap=!0,i.$target=c,i.$content=f,i.opts=u.opts.touch,i.isPanning=!1,i.isSwiping=!1,i.isZooming=!1,i.isScrolling=!1,i.startTime=(new Date).getTime(),i.distanceX=i.distanceY=i.distance=0,i.canvasWidth=Math.round(u.$slide[0].clientWidth),i.canvasHeight=Math.round(u.$slide[0].clientHeight),i.contentLastPos=null,i.contentStartPos=n.fancybox.getTranslate(i.$content)||{top:0,left:0},i.sliderStartPos=i.sliderLastPos||n.fancybox.getTranslate(u.$slide),i.stagePos=n.fancybox.getTranslate(d.$refs.stage),i.sliderStartPos.top-=i.stagePos.top,i.sliderStartPos.left-=i.stagePos.left,i.contentStartPos.top-=i.stagePos.top,i.contentStartPos.left-=i.stagePos.left,n(e).off(".fb.touch").on(p?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",n.proxy(i,"ontouchend")).on(p?"touchmove.fb.touch":"mousemove.fb.touch",n.proxy(i,"ontouchmove")),n.fancybox.isMobile&&e.addEventListener("scroll",i.onscroll,!0),!i.opts&&!d.canPan()||!c.is(i.$stage)&&!i.$stage.find(c).length)return void(c.is(".fancybox-image")&&o.preventDefault());n.fancybox.isMobile&&(l(c)||l(c.parent()))||o.preventDefault(),(1===i.startPoints.length||u.hasError)&&(i.instance.canPan()?(n.fancybox.stop(i.$content),i.$content.css("transition-duration",""),i.isPanning=!0):i.isSwiping=!0,i.$container.addClass("fancybox-controls--isGrabbing")),2===i.startPoints.length&&"image"===u.type&&(u.isLoaded||u.$ghost)&&(i.canTap=!1,i.isSwiping=!1,i.isPanning=!1,i.isZooming=!0,n.fancybox.stop(i.$content),i.$content.css("transition-duration",""),i.centerPointStartX=.5*(i.startPoints[0].x+i.startPoints[1].x)-n(t).scrollLeft(),i.centerPointStartY=.5*(i.startPoints[0].y+i.startPoints[1].y)-n(t).scrollTop(),i.percentageOfImageAtPinchPointX=(i.centerPointStartX-i.contentStartPos.left)/i.contentStartPos.width,i.percentageOfImageAtPinchPointY=(i.centerPointStartY-i.contentStartPos.top)/i.contentStartPos.height,i.startDistanceBetweenFingers=s(i.startPoints[0],i.startPoints[1]))}}},d.prototype.onscroll=function(t){var n=this;n.isScrolling=!0,e.removeEventListener("scroll",n.onscroll,!0)},d.prototype.ontouchmove=function(t){var e=this,o=n(t.target);return void 0!==t.originalEvent.buttons&&0===t.originalEvent.buttons?void e.ontouchend(t):e.isScrolling||!o.is(e.$stage)&&!e.$stage.find(o).length?void(e.canTap=!1):(e.newPoints=a(t),void((e.opts||e.instance.canPan())&&e.newPoints.length&&e.newPoints.length&&(e.isSwiping&&e.isSwiping===!0||t.preventDefault(),e.distanceX=s(e.newPoints[0],e.startPoints[0],"x"),e.distanceY=s(e.newPoints[0],e.startPoints[0],"y"),e.distance=s(e.newPoints[0],e.startPoints[0]),e.distance>0&&(e.isSwiping?e.onSwipe(t):e.isPanning?e.onPan():e.isZooming&&e.onZoom()))))},d.prototype.onSwipe=function(e){var a,s=this,r=s.isSwiping,c=s.sliderStartPos.left||0;if(r!==!0)"x"==r&&(s.distanceX>0&&(s.instance.group.length<2||0===s.instance.current.index&&!s.instance.current.opts.loop)?c+=Math.pow(s.distanceX,.8):s.distanceX<0&&(s.instance.group.length<2||s.instance.current.index===s.instance.group.length-1&&!s.instance.current.opts.loop)?c-=Math.pow(-s.distanceX,.8):c+=s.distanceX),s.sliderLastPos={top:"x"==r?0:s.sliderStartPos.top+s.distanceY,left:c},s.requestId&&(i(s.requestId),s.requestId=null),s.requestId=o(function(){s.sliderLastPos&&(n.each(s.instance.slides,function(t,e){var o=e.pos-s.instance.currPos;n.fancybox.setTranslate(e.$slide,{top:s.sliderLastPos.top,left:s.sliderLastPos.left+o*s.canvasWidth+o*e.opts.gutter})}),s.$container.addClass("fancybox-is-sliding"))});else if(Math.abs(s.distance)>10){if(s.canTap=!1,s.instance.group.length<2&&s.opts.vertical?s.isSwiping="y":s.instance.isDragging||s.opts.vertical===!1||"auto"===s.opts.vertical&&n(t).width()>800?s.isSwiping="x":(a=Math.abs(180*Math.atan2(s.distanceY,s.distanceX)/Math.PI),s.isSwiping=a>45&&a<135?"y":"x"),s.canTap=!1,"y"===s.isSwiping&&n.fancybox.isMobile&&(l(s.$target)||l(s.$target.parent())))return void(s.isScrolling=!0);s.instance.isDragging=s.isSwiping,s.startPoints=s.newPoints,n.each(s.instance.slides,function(t,e){n.fancybox.stop(e.$slide),e.$slide.css("transition-duration",""),e.inTransition=!1,e.pos===s.instance.current.pos&&(s.sliderStartPos.left=n.fancybox.getTranslate(e.$slide).left-n.fancybox.getTranslate(s.instance.$refs.stage).left)}),s.instance.SlideShow&&s.instance.SlideShow.isActive&&s.instance.SlideShow.stop()}},d.prototype.onPan=function(){var t=this;return s(t.newPoints[0],t.realPoints[0])<(n.fancybox.isMobile?10:5)?void(t.startPoints=t.newPoints):(t.canTap=!1,t.contentLastPos=t.limitMovement(),t.requestId&&(i(t.requestId),t.requestId=null),void(t.requestId=o(function(){n.fancybox.setTranslate(t.$content,t.contentLastPos)})))},d.prototype.limitMovement=function(){var t,e,n,o,i,a,s=this,r=s.canvasWidth,c=s.canvasHeight,l=s.distanceX,d=s.distanceY,u=s.contentStartPos,f=u.left,p=u.top,h=u.width,g=u.height;return i=h>r?f+l:f,a=p+d,t=Math.max(0,.5*r-.5*h),e=Math.max(0,.5*c-.5*g),n=Math.min(r-h,.5*r-.5*h),o=Math.min(c-g,.5*c-.5*g),l>0&&i>t&&(i=t-1+Math.pow(-t+f+l,.8)||0),l<0&&i<n&&(i=n+1-Math.pow(n-f-l,.8)||0),d>0&&a>e&&(a=e-1+Math.pow(-e+p+d,.8)||0),d<0&&a<o&&(a=o+1-Math.pow(o-p-d,.8)||0),{top:a,left:i}},d.prototype.limitPosition=function(t,e,n,o){var i=this,a=i.canvasWidth,s=i.canvasHeight;return n>a?(t=t>0?0:t,t=t<a-n?a-n:t):t=Math.max(0,a/2-n/2),o>s?(e=e>0?0:e,e=e<s-o?s-o:e):e=Math.max(0,s/2-o/2),{top:e,left:t}},d.prototype.onZoom=function(){var e=this,a=e.contentStartPos,r=a.width,c=a.height,l=a.left,d=a.top,u=s(e.newPoints[0],e.newPoints[1]),f=u/e.startDistanceBetweenFingers,p=Math.floor(r*f),h=Math.floor(c*f),g=(r-p)*e.percentageOfImageAtPinchPointX,b=(c-h)*e.percentageOfImageAtPinchPointY,m=(e.newPoints[0].x+e.newPoints[1].x)/2-n(t).scrollLeft(),y=(e.newPoints[0].y+e.newPoints[1].y)/2-n(t).scrollTop(),v=m-e.centerPointStartX,x=y-e.centerPointStartY,w=l+(g+v),$=d+(b+x),S={top:$,left:w,scaleX:f,scaleY:f};e.canTap=!1,e.newWidth=p,e.newHeight=h,e.contentLastPos=S,e.requestId&&(i(e.requestId),e.requestId=null),e.requestId=o(function(){n.fancybox.setTranslate(e.$content,e.contentLastPos)})},d.prototype.ontouchend=function(t){var o=this,s=Math.max((new Date).getTime()-o.startTime,1),r=o.isSwiping,c=o.isPanning,l=o.isZooming,d=o.isScrolling;return o.endPoints=a(t),o.$container.removeClass("fancybox-controls--isGrabbing"),n(e).off(".fb.touch"),e.removeEventListener("scroll",o.onscroll,!0),o.requestId&&(i(o.requestId),o.requestId=null),o.isSwiping=!1,o.isPanning=!1,o.isZooming=!1,o.isScrolling=!1,o.instance.isDragging=!1,o.canTap?o.onTap(t):(o.speed=366,o.velocityX=o.distanceX/s*.5,o.velocityY=o.distanceY/s*.5,o.speedX=Math.max(.5*o.speed,Math.min(1.5*o.speed,1/Math.abs(o.velocityX)*o.speed)),void(c?o.endPanning():l?o.endZooming():o.endSwiping(r,d)))},d.prototype.endSwiping=function(t,e){var o=this,i=!1,a=o.instance.group.length;o.sliderLastPos=null,"y"==t&&!e&&Math.abs(o.distanceY)>50?(n.fancybox.animate(o.instance.current.$slide,{top:o.sliderStartPos.top+o.distanceY+150*o.velocityY,opacity:0},200),i=o.instance.close(!0,200)):"x"==t&&o.distanceX>50&&a>1?i=o.instance.previous(o.speedX):"x"==t&&o.distanceX<-50&&a>1&&(i=o.instance.next(o.speedX)),i!==!1||"x"!=t&&"y"!=t||(e||a<2?o.instance.centerSlide(o.instance.current,150):o.instance.jumpTo(o.instance.current.index)),o.$container.removeClass("fancybox-is-sliding")},d.prototype.endPanning=function(){var t,e,o,i=this;i.contentLastPos&&(i.opts.momentum===!1?(t=i.contentLastPos.left,e=i.contentLastPos.top):(t=i.contentLastPos.left+i.velocityX*i.speed,e=i.contentLastPos.top+i.velocityY*i.speed),o=i.limitPosition(t,e,i.contentStartPos.width,i.contentStartPos.height),o.width=i.contentStartPos.width,o.height=i.contentStartPos.height,n.fancybox.animate(i.$content,o,330))},d.prototype.endZooming=function(){var t,e,o,i,a=this,s=a.instance.current,r=a.newWidth,c=a.newHeight;a.contentLastPos&&(t=a.contentLastPos.left,e=a.contentLastPos.top,i={top:e,left:t,width:r,height:c,scaleX:1,scaleY:1},n.fancybox.setTranslate(a.$content,i),r<a.canvasWidth&&c<a.canvasHeight?a.instance.scaleToFit(150):r>s.width||c>s.height?a.instance.scaleToActual(a.centerPointStartX,a.centerPointStartY,150):(o=a.limitPosition(t,e,r,c),n.fancybox.setTranslate(a.$content,n.fancybox.getTranslate(a.$content)),n.fancybox.animate(a.$content,o,150)))},d.prototype.onTap=function(e){var o,i=this,s=n(e.target),r=i.instance,c=r.current,l=e&&a(e)||i.startPoints,d=l[0]?l[0].x-n(t).scrollLeft()-i.stagePos.left:0,u=l[0]?l[0].y-n(t).scrollTop()-i.stagePos.top:0,f=function(t){var o=c.opts[t];if(n.isFunction(o)&&(o=o.apply(r,[c,e])),o)switch(o){case"close":r.close(i.startEvent);break;case"toggleControls":r.toggleControls(!0);break;case"next":r.next();break;case"nextOrClose":r.group.length>1?r.next():r.close(i.startEvent);break;case"zoom":"image"==c.type&&(c.isLoaded||c.$ghost)&&(r.canPan()?r.scaleToFit():r.isScaledDown()?r.scaleToActual(d,u):r.group.length<2&&r.close(i.startEvent))}};if((!e.originalEvent||2!=e.originalEvent.button)&&(s.is("img")||!(d>s[0].clientWidth+s.offset().left))){if(s.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))o="Outside";else if(s.is(".fancybox-slide"))o="Slide";else{if(!r.current.$content||!r.current.$content.find(s).addBack().filter(s).length)return;o="Content"}if(i.tapped){if(clearTimeout(i.tapped),i.tapped=null,Math.abs(d-i.tapX)>50||Math.abs(u-i.tapY)>50)return this;f("dblclick"+o)}else i.tapX=d,i.tapY=u,c.opts["dblclick"+o]&&c.opts["dblclick"+o]!==c.opts["click"+o]?i.tapped=setTimeout(function(){i.tapped=null,f("click"+o)},500):f("click"+o);return this}},n(e).on("onActivate.fb",function(t,e){e&&!e.Guestures&&(e.Guestures=new d(e))})}(window,document,window.jQuery||jQuery),function(t,e){"use strict";e.extend(!0,e.fancybox.defaults,{btnTpl:{slideShow:'<button data-fancybox-play class="fancybox-button fancybox-button--play" title="{{PLAY_START}}"><svg viewBox="0 0 40 40"><path d="M13,12 L27,20 L13,27 Z" /><path d="M15,10 v19 M23,10 v19" /></svg></button>'},slideShow:{autoStart:!1,speed:3e3}});var n=function(t){this.instance=t,this.init()};e.extend(n.prototype,{timer:null,isActive:!1,$button:null,init:function(){var t=this;t.$button=t.instance.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){t.toggle()}),(t.instance.group.length<2||!t.instance.group[t.instance.currIndex].opts.slideShow)&&t.$button.hide()},set:function(t){var e=this;e.instance&&e.instance.current&&(t===!0||e.instance.current.opts.loop||e.instance.currIndex<e.instance.group.length-1)?e.timer=setTimeout(function(){e.isActive&&e.instance.jumpTo((e.instance.currIndex+1)%e.instance.group.length)},e.instance.current.opts.slideShow.speed):(e.stop(),e.instance.idleSecondsCounter=0,e.instance.showControls())},clear:function(){var t=this;clearTimeout(t.timer),t.timer=null},start:function(){var t=this,e=t.instance.current;e&&(t.isActive=!0,t.$button.attr("title",e.opts.i18n[e.opts.lang].PLAY_STOP).removeClass("fancybox-button--play").addClass("fancybox-button--pause"),t.set(!0))},stop:function(){var t=this,e=t.instance.current;t.clear(),t.$button.attr("title",e.opts.i18n[e.opts.lang].PLAY_START).removeClass("fancybox-button--pause").addClass("fancybox-button--play"),t.isActive=!1},toggle:function(){var t=this;t.isActive?t.stop():t.start()}}),e(t).on({"onInit.fb":function(t,e){e&&!e.SlideShow&&(e.SlideShow=new n(e))},"beforeShow.fb":function(t,e,n,o){var i=e&&e.SlideShow;o?i&&n.opts.slideShow.autoStart&&i.start():i&&i.isActive&&i.clear()},"afterShow.fb":function(t,e,n){var o=e&&e.SlideShow;o&&o.isActive&&o.set()},"afterKeydown.fb":function(n,o,i,a,s){var r=o&&o.SlideShow;!r||!i.opts.slideShow||80!==s&&32!==s||e(t.activeElement).is("button,a,input")||(a.preventDefault(),r.toggle())},"beforeClose.fb onDeactivate.fb":function(t,e){var n=e&&e.SlideShow;n&&n.stop()}}),e(t).on("visibilitychange",function(){var n=e.fancybox.getInstance(),o=n&&n.SlideShow;o&&o.isActive&&(t.hidden?o.clear():o.set())})}(document,window.jQuery||jQuery),function(t,e){"use strict";var n=function(){for(var e=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],n={},o=0;o<e.length;o++){var i=e[o];if(i&&i[1]in t){for(var a=0;a<i.length;a++)n[e[0][a]]=i[a];return n}}return!1}();if(!n)return void(e&&e.fancybox&&(e.fancybox.defaults.btnTpl.fullScreen=!1));var o={request:function(e){e=e||t.documentElement,e[n.requestFullscreen](e.ALLOW_KEYBOARD_INPUT)},exit:function(){t[n.exitFullscreen]()},toggle:function(e){e=e||t.documentElement,this.isFullscreen()?this.exit():this.request(e)},isFullscreen:function(){return Boolean(t[n.fullscreenElement])},enabled:function(){return Boolean(t[n.fullscreenEnabled])}};e.extend(!0,e.fancybox.defaults,{btnTpl:{fullScreen:'<button data-fancybox-fullscreen class="fancybox-button fancybox-button--fullscreen" title="{{FULL_SCREEN}}"><svg viewBox="0 0 40 40"><path d="M9,12 v16 h22 v-16 h-22 v8" /></svg></button>'},fullScreen:{autoStart:!1}}),e(t).on({"onInit.fb":function(t,e){var n;e&&e.group[e.currIndex].opts.fullScreen?(n=e.$refs.container,n.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(t){t.stopPropagation(),t.preventDefault(),o.toggle()}),e.opts.fullScreen&&e.opts.fullScreen.autoStart===!0&&o.request(),e.FullScreen=o):e&&e.$refs.toolbar.find("[data-fancybox-fullscreen]").hide()},"afterKeydown.fb":function(t,e,n,o,i){e&&e.FullScreen&&70===i&&(o.preventDefault(),e.FullScreen.toggle())},"beforeClose.fb":function(t,e){e&&e.FullScreen&&e.$refs.container.hasClass("fancybox-is-fullscreen")&&o.exit()}}),e(t).on(n.fullscreenchange,function(){var t=o.isFullscreen(),n=e.fancybox.getInstance();n&&(n.current&&"image"===n.current.type&&n.isAnimating&&(n.current.$content.css("transition","none"),n.isAnimating=!1,n.update(!0,!0,0)),n.trigger("onFullscreenChange",t),n.$refs.container.toggleClass("fancybox-is-fullscreen",t))})}(document,window.jQuery||jQuery),function(t,e){"use strict";var n="fancybox-thumbs",o=n+"-active",i=n+"-loading";e.fancybox.defaults=e.extend(!0,{btnTpl:{thumbs:'<button data-fancybox-thumbs class="fancybox-button fancybox-button--thumbs" title="{{THUMBS}}"><svg viewBox="0 0 120 120"><path d="M30,30 h14 v14 h-14 Z M50,30 h14 v14 h-14 Z M70,30 h14 v14 h-14 Z M30,50 h14 v14 h-14 Z M50,50 h14 v14 h-14 Z M70,50 h14 v14 h-14 Z M30,70 h14 v14 h-14 Z M50,70 h14 v14 h-14 Z M70,70 h14 v14 h-14 Z" /></svg></button>'},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"}},e.fancybox.defaults);var a=function(t){this.init(t)};e.extend(a.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,isActive:!1,init:function(t){var e,n,o=this;o.instance=t,t.Thumbs=o,o.opts=t.group[t.currIndex].opts.thumbs,e=t.group[0],e=e.opts.thumb||!(!e.opts.$thumb||!e.opts.$thumb.length)&&e.opts.$thumb.attr("src"),t.group.length>1&&(n=t.group[1],n=n.opts.thumb||!(!n.opts.$thumb||!n.opts.$thumb.length)&&n.opts.$thumb.attr("src")),o.$button=t.$refs.toolbar.find("[data-fancybox-thumbs]"),o.opts&&e&&n&&e&&n?(o.$button.show().on("click",function(){o.toggle()}),o.isActive=!0):o.$button.hide()},create:function(){var t,o=this,a=o.instance,s=o.opts.parentEl,r=[];o.$grid||(o.$grid=e('<div class="'+n+" "+n+"-"+o.opts.axis+'"></div>').appendTo(a.$refs.container.find(s).addBack().filter(s)),o.$grid.on("click","li",function(){a.jumpTo(e(this).attr("data-index"))})),o.$list||(o.$list=e("<ul>").appendTo(o.$grid)),e.each(a.group,function(e,n){t=n.opts.thumb||(n.opts.$thumb?n.opts.$thumb.attr("src"):null),t||"image"!==n.type||(t=n.src),r.push('<li data-index="'+e+'" tabindex="0" class="'+i+'"'+(t&&t.length?' style="background-image:url('+t+')" />':"")+"></li>")}),o.$list[0].innerHTML=r.join(""),"x"===o.opts.axis&&o.$list.width(parseInt(o.$grid.css("padding-right"),10)+a.group.length*o.$list.children().eq(0).outerWidth(!0))},focus:function(t){var e,n,i=this,a=i.$list,s=i.$grid;i.instance.current&&(e=a.children().removeClass(o).filter('[data-index="'+i.instance.current.index+'"]').addClass(o),n=e.position(),"y"===i.opts.axis&&(n.top<0||n.top>a.height()-e.outerHeight())?a.stop().animate({scrollTop:a.scrollTop()+n.top},t):"x"===i.opts.axis&&(n.left<s.scrollLeft()||n.left>s.scrollLeft()+(s.width()-e.outerWidth()))&&a.parent().stop().animate({scrollLeft:n.left},t))},update:function(){var t=this;t.instance.$refs.container.toggleClass("fancybox-show-thumbs",this.isVisible),t.isVisible?(t.$grid||t.create(),t.instance.trigger("onThumbsShow"),t.focus(0)):t.$grid&&t.instance.trigger("onThumbsHide"),t.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),e(t).on({"onInit.fb":function(t,e){var n;e&&!e.Thumbs&&(n=new a(e),n.isActive&&n.opts.autoStart===!0&&n.show())},"beforeShow.fb":function(t,e,n,o){var i=e&&e.Thumbs;i&&i.isVisible&&i.focus(o?0:250)},"afterKeydown.fb":function(t,e,n,o,i){var a=e&&e.Thumbs;a&&a.isActive&&71===i&&(o.preventDefault(),a.toggle())},"beforeClose.fb":function(t,e){var n=e&&e.Thumbs;n&&n.isVisible&&n.opts.hideOnClose!==!1&&n.$grid.hide()}})}(document,window.jQuery||jQuery),function(t,e){"use strict";function n(t){var e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};return String(t).replace(/[&<>"'`=\/]/g,function(t){return e[t]})}e.extend(!0,e.fancybox.defaults,{btnTpl:{share:'<button data-fancybox-share class="fancybox-button fancybox-button--share" title="{{SHARE}}"><svg viewBox="0 0 40 40"><path d="M6,30 C8,18 19,16 23,16 L23,16 L23,10 L33,20 L23,29 L23,24 C19,24 8,27 6,30 Z"></svg></button>'},share:{url:function(t,e){return!t.currentHash&&"inline"!==e.type&&"html"!==e.type&&(e.origSrc||e.src)||window.location},tpl:'<div class="fancybox-share"><h1>{{SHARE}}</h1><p><a class="fancybox-share__button fancybox-share__button--fb" href="https://www.facebook.com/sharer/sharer.php?u={{url}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m287 456v-299c0-21 6-35 35-35h38v-63c-7-1-29-3-55-3-54 0-91 33-91 94v306m143-254h-205v72h196" /></svg><span>Facebook</span></a><a class="fancybox-share__button fancybox-share__button--tw" href="https://twitter.com/intent/tweet?url={{url}}&text={{descr}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m456 133c-14 7-31 11-47 13 17-10 30-27 37-46-15 10-34 16-52 20-61-62-157-7-141 75-68-3-129-35-169-85-22 37-11 86 26 109-13 0-26-4-37-9 0 39 28 72 65 80-12 3-25 4-37 2 10 33 41 57 77 57-42 30-77 38-122 34 170 111 378-32 359-208 16-11 30-25 41-42z" /></svg><span>Twitter</span></a><a class="fancybox-share__button fancybox-share__button--pt" href="https://www.pinterest.com/pin/create/button/?url={{url}}&description={{descr}}&media={{media}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m265 56c-109 0-164 78-164 144 0 39 15 74 47 87 5 2 10 0 12-5l4-19c2-6 1-8-3-13-9-11-15-25-15-45 0-58 43-110 113-110 62 0 96 38 96 88 0 67-30 122-73 122-24 0-42-19-36-44 6-29 20-60 20-81 0-19-10-35-31-35-25 0-44 26-44 60 0 21 7 36 7 36l-30 125c-8 37-1 83 0 87 0 3 4 4 5 2 2-3 32-39 42-75l16-64c8 16 31 29 56 29 74 0 124-67 124-157 0-69-58-132-146-132z" fill="#fff"/></svg><span>Pinterest</span></a></p><p><input class="fancybox-share__input" type="text" value="{{url_raw}}" /></p></div>'}}),e(t).on("click","[data-fancybox-share]",function(){var t,o,i=e.fancybox.getInstance(),a=i.current||null;a&&("function"===e.type(a.opts.share.url)&&(t=a.opts.share.url.apply(a,[i,a])),o=a.opts.share.tpl.replace(/\{\{media\}\}/g,"image"===a.type?encodeURIComponent(a.src):"").replace(/\{\{url\}\}/g,encodeURIComponent(t)).replace(/\{\{url_raw\}\}/g,n(t)).replace(/\{\{descr\}\}/g,i.$caption?encodeURIComponent(i.$caption.text()):""),e.fancybox.open({src:i.translate(i,o),type:"html",opts:{animationEffect:!1,afterLoad:function(t,e){i.$refs.container.one("beforeClose.fb",function(){t.close(null,0)}),e.$content.find(".fancybox-share__links a").click(function(){return window.open(this.href,"Share","width=550, height=450"),!1})}}}))})}(document,window.jQuery||jQuery),function(t,e,n){"use strict";function o(){var t=e.location.hash.substr(1),n=t.split("-"),o=n.length>1&&/^\+?\d+$/.test(n[n.length-1])?parseInt(n.pop(-1),10)||1:1,i=n.join("-");return{hash:t,index:o<1?1:o,gallery:i}}function i(t){var e;""!==t.gallery&&(e=n("[data-fancybox='"+n.escapeSelector(t.gallery)+"']").eq(t.index-1).trigger("click.fb-start"))}function a(t){var e,n;return!!t&&(e=t.current?t.current.opts:t.opts,n=e.hash||(e.$orig?e.$orig.data("fancybox"):""),""!==n&&n)}n.escapeSelector||(n.escapeSelector=function(t){var e=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,n=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t};return(t+"").replace(e,n)}),n(function(){n.fancybox.defaults.hash!==!1&&(n(t).on({"onInit.fb":function(t,e){var n,i;e.group[e.currIndex].opts.hash!==!1&&(n=o(),i=a(e),i&&n.gallery&&i==n.gallery&&(e.currIndex=n.index-1))},"beforeShow.fb":function(n,o,i,s){var r;i&&i.opts.hash!==!1&&(r=a(o),r&&(o.currentHash=r+(o.group.length>1?"-"+(i.index+1):""),e.location.hash!=="#"+o.currentHash&&(o.origHash||(o.origHash=e.location.hash),o.hashTimer&&clearTimeout(o.hashTimer),o.hashTimer=setTimeout(function(){"replaceState"in e.history?(e.history[s?"pushState":"replaceState"]({},t.title,e.location.pathname+e.location.search+"#"+o.currentHash),s&&(o.hasCreatedHistory=!0)):e.location.hash=o.currentHash,o.hashTimer=null},300))))},"beforeClose.fb":function(n,o,i){var s;i.opts.hash!==!1&&(s=a(o),o.currentHash&&o.hasCreatedHistory?e.history.back():o.currentHash&&("replaceState"in e.history?e.history.replaceState({},t.title,e.location.pathname+e.location.search+(o.origHash||"")):e.location.hash=o.origHash),o.currentHash=null,clearTimeout(o.hashTimer))}}),n(e).on("hashchange.fb",function(){var t,e=o();n.each(n(".fancybox-container").get().reverse(),function(e,o){var i=n(o).data("FancyBox");if(i.currentHash)return t=i,!1}),t?!t.currentHash||t.currentHash===e.gallery+"-"+e.index||1===e.index&&t.currentHash==e.gallery||(t.currentHash=null,t.close()):""!==e.gallery&&i(e)}),setTimeout(function(){n.fancybox.getInstance()||i(o())},50))})}(document,window,window.jQuery||jQuery),function(t,e){"use strict";var n=(new Date).getTime();e(t).on({"onInit.fb":function(t,e,o){e.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",function(t){var o=e.current,i=(new Date).getTime();e.group.length<2||o.opts.wheel===!1||"auto"===o.opts.wheel&&"image"!==o.type||(t.preventDefault(),t.stopPropagation(),o.$slide.hasClass("fancybox-animated")||(t=t.originalEvent||t,i-n<250||(n=i,e[(-t.deltaY||-t.deltaX||t.wheelDelta||-t.detail)<0?"next":"previous"]())))})}})}(document,window.jQuery||jQuery);
jQuery(function($){$('form[id^=rm-subscriptionform-]').on('submit',function(){var self=$(this),data=self.serialize();self.find('input[type="submit"]').hide();self.find('input').prop('disabled',true);self.find('.spinner').show();$.post({url:self.attr('action'),data:data,dataType:'json',beforeSend:function(xhr){xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded');}}).always(function(){self.find('.rm-error').hide();self.find('input[type="submit"]').show();self.find('input').prop('disabled',false);self.find('.spinner').hide();}).then(function(xhr){self.removeClass('rm-subscribe-error').addClass('rm-subscribe-success');self.find('.rm-success-container').remove();var el=$('<li class="rm-success-container"><span class="rm-success"></span></li>');el.find('.rm-success').html(rmwidget.msg_subscribe_success);el.prependTo(self.find('ul'));self[0].reset();}).fail(function(xhr){self.addClass('rm-subscribe-error').removeClass('rm-subscribe-success');var hasGlobalError=false,hasLocalError=false;if(xhr.status===422){$.each(xhr.responseJSON.validation_messages,function(fieldName,message){var cls='rm-error-'+fieldName,el=self.find('.'+cls),target=[];if(el.length){el.html(message).show();hasLocalError=true;}else{target=self.find('.rm-'+fieldName+'-error-after,[name="'+fieldName+'"]').first();if(target.length){$('<span class="rm-error"></span>').html(message).addClass(cls).insertAfter(target);hasLocalError=true;}else{hasGlobalError=true;}}});}else{hasGlobalError=true;}
if(hasGlobalError&&!hasLocalError){var el=$('<li class="rm-global-errors-container"><span class="rm-error"></span></li>');el.find('.rm-error').html(rmwidget.msg_an_error_occurred);el.prependTo(self.find('ul'));}});return false;});});
function DeCryptString(r){for(var t=0,n="mailto:",o=0,e=0;e<r.length/2;e++)o=r.substr(2*e,1),t=r.charCodeAt(2*e+1),t>=8364&&(t=128),n+=String.fromCharCode(t-o);return n}function DeCryptX(r){location.href=DeCryptString(r)};
/*! This file is auto-generated */
!function(n,r){var t,e;"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define("underscore",r):(n="undefined"!=typeof globalThis?globalThis:n||self,t=n._,(e=n._=r()).noConflict=function(){return n._=t,e})}(this,function(){var n="1.13.6",r="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},e=Array.prototype,F=Object.prototype,V="undefined"!=typeof Symbol?Symbol.prototype:null,P=e.push,f=e.slice,s=F.toString,q=F.hasOwnProperty,t="undefined"!=typeof ArrayBuffer,u="undefined"!=typeof DataView,U=Array.isArray,W=Object.keys,z=Object.create,L=t&&ArrayBuffer.isView,$=isNaN,C=isFinite,K=!{toString:null}.propertyIsEnumerable("toString"),J=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],G=Math.pow(2,53)-1;function l(u,o){return o=null==o?u.length-1:+o,function(){for(var n=Math.max(arguments.length-o,0),r=Array(n),t=0;t<n;t++)r[t]=arguments[t+o];switch(o){case 0:return u.call(this,r);case 1:return u.call(this,arguments[0],r);case 2:return u.call(this,arguments[0],arguments[1],r)}for(var e=Array(o+1),t=0;t<o;t++)e[t]=arguments[t];return e[o]=r,u.apply(this,e)}}function o(n){var r=typeof n;return"function"==r||"object"==r&&!!n}function H(n){return void 0===n}function Q(n){return!0===n||!1===n||"[object Boolean]"===s.call(n)}function i(n){var r="[object "+n+"]";return function(n){return s.call(n)===r}}var X=i("String"),Y=i("Number"),Z=i("Date"),nn=i("RegExp"),rn=i("Error"),tn=i("Symbol"),en=i("ArrayBuffer"),a=i("Function"),r=r.document&&r.document.childNodes,p=a="function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof r?function(n){return"function"==typeof n||!1}:a,r=i("Object"),un=u&&r(new DataView(new ArrayBuffer(8))),a="undefined"!=typeof Map&&r(new Map),u=i("DataView");var h=un?function(n){return null!=n&&p(n.getInt8)&&en(n.buffer)}:u,v=U||i("Array");function y(n,r){return null!=n&&q.call(n,r)}var on=i("Arguments"),an=(!function(){on(arguments)||(on=function(n){return y(n,"callee")})}(),on);function fn(n){return Y(n)&&$(n)}function cn(n){return function(){return n}}function ln(r){return function(n){n=r(n);return"number"==typeof n&&0<=n&&n<=G}}function sn(r){return function(n){return null==n?void 0:n[r]}}var d=sn("byteLength"),pn=ln(d),hn=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var vn=t?function(n){return L?L(n)&&!h(n):pn(n)&&hn.test(s.call(n))}:cn(!1),g=sn("length");function yn(n,r){r=function(r){for(var t={},n=r.length,e=0;e<n;++e)t[r[e]]=!0;return{contains:function(n){return!0===t[n]},push:function(n){return t[n]=!0,r.push(n)}}}(r);var t=J.length,e=n.constructor,u=p(e)&&e.prototype||F,o="constructor";for(y(n,o)&&!r.contains(o)&&r.push(o);t--;)(o=J[t])in n&&n[o]!==u[o]&&!r.contains(o)&&r.push(o)}function b(n){if(!o(n))return[];if(W)return W(n);var r,t=[];for(r in n)y(n,r)&&t.push(r);return K&&yn(n,t),t}function dn(n,r){var t=b(r),e=t.length;if(null==n)return!e;for(var u=Object(n),o=0;o<e;o++){var i=t[o];if(r[i]!==u[i]||!(i in u))return!1}return!0}function m(n){return n instanceof m?n:this instanceof m?void(this._wrapped=n):new m(n)}function gn(n){return new Uint8Array(n.buffer||n,n.byteOffset||0,d(n))}m.VERSION=n,m.prototype.valueOf=m.prototype.toJSON=m.prototype.value=function(){return this._wrapped},m.prototype.toString=function(){return String(this._wrapped)};var bn="[object DataView]";function mn(n,r,t,e){var u;return n===r?0!==n||1/n==1/r:null!=n&&null!=r&&(n!=n?r!=r:("function"==(u=typeof n)||"object"==u||"object"==typeof r)&&function n(r,t,e,u){r instanceof m&&(r=r._wrapped);t instanceof m&&(t=t._wrapped);var o=s.call(r);if(o!==s.call(t))return!1;if(un&&"[object Object]"==o&&h(r)){if(!h(t))return!1;o=bn}switch(o){case"[object RegExp]":case"[object String]":return""+r==""+t;case"[object Number]":return+r!=+r?+t!=+t:0==+r?1/+r==1/t:+r==+t;case"[object Date]":case"[object Boolean]":return+r==+t;case"[object Symbol]":return V.valueOf.call(r)===V.valueOf.call(t);case"[object ArrayBuffer]":case bn:return n(gn(r),gn(t),e,u)}o="[object Array]"===o;if(!o&&vn(r)){var i=d(r);if(i!==d(t))return!1;if(r.buffer===t.buffer&&r.byteOffset===t.byteOffset)return!0;o=!0}if(!o){if("object"!=typeof r||"object"!=typeof t)return!1;var i=r.constructor,a=t.constructor;if(i!==a&&!(p(i)&&i instanceof i&&p(a)&&a instanceof a)&&"constructor"in r&&"constructor"in t)return!1}e=e||[];u=u||[];var f=e.length;for(;f--;)if(e[f]===r)return u[f]===t;e.push(r);u.push(t);if(o){if((f=r.length)!==t.length)return!1;for(;f--;)if(!mn(r[f],t[f],e,u))return!1}else{var c,l=b(r);if(f=l.length,b(t).length!==f)return!1;for(;f--;)if(c=l[f],!y(t,c)||!mn(r[c],t[c],e,u))return!1}e.pop();u.pop();return!0}(n,r,t,e))}function c(n){if(!o(n))return[];var r,t=[];for(r in n)t.push(r);return K&&yn(n,t),t}function jn(e){var u=g(e);return function(n){if(null==n)return!1;var r=c(n);if(g(r))return!1;for(var t=0;t<u;t++)if(!p(n[e[t]]))return!1;return e!==wn||!p(n[_n])}}var _n="forEach",r=["clear","delete"],u=["get","has","set"],U=r.concat(_n,u),wn=r.concat(u),t=["add"].concat(r,_n,"has"),u=a?jn(U):i("Map"),r=a?jn(wn):i("WeakMap"),U=a?jn(t):i("Set"),a=i("WeakSet");function j(n){for(var r=b(n),t=r.length,e=Array(t),u=0;u<t;u++)e[u]=n[r[u]];return e}function An(n){for(var r={},t=b(n),e=0,u=t.length;e<u;e++)r[n[t[e]]]=t[e];return r}function xn(n){var r,t=[];for(r in n)p(n[r])&&t.push(r);return t.sort()}function Sn(f,c){return function(n){var r=arguments.length;if(c&&(n=Object(n)),!(r<2||null==n))for(var t=1;t<r;t++)for(var e=arguments[t],u=f(e),o=u.length,i=0;i<o;i++){var a=u[i];c&&void 0!==n[a]||(n[a]=e[a])}return n}}var On=Sn(c),_=Sn(b),Mn=Sn(c,!0);function En(n){var r;return o(n)?z?z(n):((r=function(){}).prototype=n,n=new r,r.prototype=null,n):{}}function Bn(n){return v(n)?n:[n]}function w(n){return m.toPath(n)}function Nn(n,r){for(var t=r.length,e=0;e<t;e++){if(null==n)return;n=n[r[e]]}return t?n:void 0}function In(n,r,t){n=Nn(n,w(r));return H(n)?t:n}function Tn(n){return n}function A(r){return r=_({},r),function(n){return dn(n,r)}}function kn(r){return r=w(r),function(n){return Nn(n,r)}}function x(u,o,n){if(void 0===o)return u;switch(null==n?3:n){case 1:return function(n){return u.call(o,n)};case 3:return function(n,r,t){return u.call(o,n,r,t)};case 4:return function(n,r,t,e){return u.call(o,n,r,t,e)}}return function(){return u.apply(o,arguments)}}function Dn(n,r,t){return null==n?Tn:p(n)?x(n,r,t):(o(n)&&!v(n)?A:kn)(n)}function Rn(n,r){return Dn(n,r,1/0)}function S(n,r,t){return m.iteratee!==Rn?m.iteratee(n,r):Dn(n,r,t)}function Fn(){}function Vn(n,r){return null==r&&(r=n,n=0),n+Math.floor(Math.random()*(r-n+1))}m.toPath=Bn,m.iteratee=Rn;var O=Date.now||function(){return(new Date).getTime()};function Pn(r){function t(n){return r[n]}var n="(?:"+b(r).join("|")+")",e=RegExp(n),u=RegExp(n,"g");return function(n){return e.test(n=null==n?"":""+n)?n.replace(u,t):n}}var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},qn=Pn(t),t=Pn(An(t)),Un=m.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Wn=/(.)^/,zn={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Ln=/\\|'|\r|\n|\u2028|\u2029/g;function $n(n){return"\\"+zn[n]}var Cn=/^\s*(\w|\$)+\s*$/;var Kn=0;function Jn(n,r,t,e,u){return e instanceof r?(e=En(n.prototype),o(r=n.apply(e,u))?r:e):n.apply(t,u)}var M=l(function(u,o){function i(){for(var n=0,r=o.length,t=Array(r),e=0;e<r;e++)t[e]=o[e]===a?arguments[n++]:o[e];for(;n<arguments.length;)t.push(arguments[n++]);return Jn(u,i,this,this,t)}var a=M.placeholder;return i}),Gn=(M.placeholder=m,l(function(r,t,e){var u;if(p(r))return u=l(function(n){return Jn(r,u,t,this,e.concat(n))});throw new TypeError("Bind must be called on a function")})),E=ln(g);function B(n,r,t,e){if(e=e||[],r||0===r){if(r<=0)return e.concat(n)}else r=1/0;for(var u=e.length,o=0,i=g(n);o<i;o++){var a=n[o];if(E(a)&&(v(a)||an(a)))if(1<r)B(a,r-1,t,e),u=e.length;else for(var f=0,c=a.length;f<c;)e[u++]=a[f++];else t||(e[u++]=a)}return e}var Hn=l(function(n,r){var t=(r=B(r,!1,!1)).length;if(t<1)throw new Error("bindAll must be passed function names");for(;t--;){var e=r[t];n[e]=Gn(n[e],n)}return n});var Qn=l(function(n,r,t){return setTimeout(function(){return n.apply(null,t)},r)}),Xn=M(Qn,m,1);function Yn(n){return function(){return!n.apply(this,arguments)}}function Zn(n,r){var t;return function(){return 0<--n&&(t=r.apply(this,arguments)),n<=1&&(r=null),t}}var nr=M(Zn,2);function rr(n,r,t){r=S(r,t);for(var e,u=b(n),o=0,i=u.length;o<i;o++)if(r(n[e=u[o]],e,n))return e}function tr(o){return function(n,r,t){r=S(r,t);for(var e=g(n),u=0<o?0:e-1;0<=u&&u<e;u+=o)if(r(n[u],u,n))return u;return-1}}var er=tr(1),ur=tr(-1);function or(n,r,t,e){for(var u=(t=S(t,e,1))(r),o=0,i=g(n);o<i;){var a=Math.floor((o+i)/2);t(n[a])<u?o=a+1:i=a}return o}function ir(o,i,a){return function(n,r,t){var e=0,u=g(n);if("number"==typeof t)0<o?e=0<=t?t:Math.max(t+u,e):u=0<=t?Math.min(t+1,u):t+u+1;else if(a&&t&&u)return n[t=a(n,r)]===r?t:-1;if(r!=r)return 0<=(t=i(f.call(n,e,u),fn))?t+e:-1;for(t=0<o?e:u-1;0<=t&&t<u;t+=o)if(n[t]===r)return t;return-1}}var ar=ir(1,er,or),fr=ir(-1,ur);function cr(n,r,t){r=(E(n)?er:rr)(n,r,t);if(void 0!==r&&-1!==r)return n[r]}function N(n,r,t){if(r=x(r,t),E(n))for(u=0,o=n.length;u<o;u++)r(n[u],u,n);else for(var e=b(n),u=0,o=e.length;u<o;u++)r(n[e[u]],e[u],n);return n}function I(n,r,t){r=S(r,t);for(var e=!E(n)&&b(n),u=(e||n).length,o=Array(u),i=0;i<u;i++){var a=e?e[i]:i;o[i]=r(n[a],a,n)}return o}function lr(p){return function(n,r,t,e){var u=3<=arguments.length,o=n,i=x(r,e,4),a=t,f=!E(o)&&b(o),c=(f||o).length,l=0<p?0:c-1;for(u||(a=o[f?f[l]:l],l+=p);0<=l&&l<c;l+=p){var s=f?f[l]:l;a=i(a,o[s],s,o)}return a}}var sr=lr(1),pr=lr(-1);function T(n,e,r){var u=[];return e=S(e,r),N(n,function(n,r,t){e(n,r,t)&&u.push(n)}),u}function hr(n,r,t){r=S(r,t);for(var e=!E(n)&&b(n),u=(e||n).length,o=0;o<u;o++){var i=e?e[o]:o;if(!r(n[i],i,n))return!1}return!0}function vr(n,r,t){r=S(r,t);for(var e=!E(n)&&b(n),u=(e||n).length,o=0;o<u;o++){var i=e?e[o]:o;if(r(n[i],i,n))return!0}return!1}function k(n,r,t,e){return E(n)||(n=j(n)),0<=ar(n,r,t="number"==typeof t&&!e?t:0)}var yr=l(function(n,t,e){var u,o;return p(t)?o=t:(t=w(t),u=t.slice(0,-1),t=t[t.length-1]),I(n,function(n){var r=o;if(!r){if(null==(n=u&&u.length?Nn(n,u):n))return;r=n[t]}return null==r?r:r.apply(n,e)})});function dr(n,r){return I(n,kn(r))}function gr(n,e,r){var t,u,o=-1/0,i=-1/0;if(null==e||"number"==typeof e&&"object"!=typeof n[0]&&null!=n)for(var a=0,f=(n=E(n)?n:j(n)).length;a<f;a++)null!=(t=n[a])&&o<t&&(o=t);else e=S(e,r),N(n,function(n,r,t){u=e(n,r,t),(i<u||u===-1/0&&o===-1/0)&&(o=n,i=u)});return o}var br=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function mr(n){return n?v(n)?f.call(n):X(n)?n.match(br):E(n)?I(n,Tn):j(n):[]}function jr(n,r,t){if(null==r||t)return(n=E(n)?n:j(n))[Vn(n.length-1)];for(var e=mr(n),t=g(e),u=(r=Math.max(Math.min(r,t),0),t-1),o=0;o<r;o++){var i=Vn(o,u),a=e[o];e[o]=e[i],e[i]=a}return e.slice(0,r)}function D(o,r){return function(t,e,n){var u=r?[[],[]]:{};return e=S(e,n),N(t,function(n,r){r=e(n,r,t);o(u,n,r)}),u}}var _r=D(function(n,r,t){y(n,t)?n[t].push(r):n[t]=[r]}),wr=D(function(n,r,t){n[t]=r}),Ar=D(function(n,r,t){y(n,t)?n[t]++:n[t]=1}),xr=D(function(n,r,t){n[t?0:1].push(r)},!0);function Sr(n,r,t){return r in t}var Or=l(function(n,r){var t={},e=r[0];if(null!=n){p(e)?(1<r.length&&(e=x(e,r[1])),r=c(n)):(e=Sr,r=B(r,!1,!1),n=Object(n));for(var u=0,o=r.length;u<o;u++){var i=r[u],a=n[i];e(a,i,n)&&(t[i]=a)}}return t}),Mr=l(function(n,t){var r,e=t[0];return p(e)?(e=Yn(e),1<t.length&&(r=t[1])):(t=I(B(t,!1,!1),String),e=function(n,r){return!k(t,r)}),Or(n,e,r)});function Er(n,r,t){return f.call(n,0,Math.max(0,n.length-(null==r||t?1:r)))}function Br(n,r,t){return null==n||n.length<1?null==r||t?void 0:[]:null==r||t?n[0]:Er(n,n.length-r)}function R(n,r,t){return f.call(n,null==r||t?1:r)}var Nr=l(function(n,r){return r=B(r,!0,!0),T(n,function(n){return!k(r,n)})}),Ir=l(function(n,r){return Nr(n,r)});function Tr(n,r,t,e){Q(r)||(e=t,t=r,r=!1),null!=t&&(t=S(t,e));for(var u=[],o=[],i=0,a=g(n);i<a;i++){var f=n[i],c=t?t(f,i,n):f;r&&!t?(i&&o===c||u.push(f),o=c):t?k(o,c)||(o.push(c),u.push(f)):k(u,f)||u.push(f)}return u}var kr=l(function(n){return Tr(B(n,!0,!0))});function Dr(n){for(var r=n&&gr(n,g).length||0,t=Array(r),e=0;e<r;e++)t[e]=dr(n,e);return t}var Rr=l(Dr);function Fr(n,r){return n._chain?m(r).chain():r}function Vr(t){return N(xn(t),function(n){var r=m[n]=t[n];m.prototype[n]=function(){var n=[this._wrapped];return P.apply(n,arguments),Fr(this,r.apply(m,n))}}),m}N(["pop","push","reverse","shift","sort","splice","unshift"],function(r){var t=e[r];m.prototype[r]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==r&&"splice"!==r||0!==n.length||delete n[0]),Fr(this,n)}}),N(["concat","join","slice"],function(n){var r=e[n];m.prototype[n]=function(){var n=this._wrapped;return Fr(this,n=null!=n?r.apply(n,arguments):n)}});n=Vr({__proto__:null,VERSION:n,restArguments:l,isObject:o,isNull:function(n){return null===n},isUndefined:H,isBoolean:Q,isElement:function(n){return!(!n||1!==n.nodeType)},isString:X,isNumber:Y,isDate:Z,isRegExp:nn,isError:rn,isSymbol:tn,isArrayBuffer:en,isDataView:h,isArray:v,isFunction:p,isArguments:an,isFinite:function(n){return!tn(n)&&C(n)&&!isNaN(parseFloat(n))},isNaN:fn,isTypedArray:vn,isEmpty:function(n){var r;return null==n||("number"==typeof(r=g(n))&&(v(n)||X(n)||an(n))?0===r:0===g(b(n)))},isMatch:dn,isEqual:function(n,r){return mn(n,r)},isMap:u,isWeakMap:r,isSet:U,isWeakSet:a,keys:b,allKeys:c,values:j,pairs:function(n){for(var r=b(n),t=r.length,e=Array(t),u=0;u<t;u++)e[u]=[r[u],n[r[u]]];return e},invert:An,functions:xn,methods:xn,extend:On,extendOwn:_,assign:_,defaults:Mn,create:function(n,r){return n=En(n),r&&_(n,r),n},clone:function(n){return o(n)?v(n)?n.slice():On({},n):n},tap:function(n,r){return r(n),n},get:In,has:function(n,r){for(var t=(r=w(r)).length,e=0;e<t;e++){var u=r[e];if(!y(n,u))return!1;n=n[u]}return!!t},mapObject:function(n,r,t){r=S(r,t);for(var e=b(n),u=e.length,o={},i=0;i<u;i++){var a=e[i];o[a]=r(n[a],a,n)}return o},identity:Tn,constant:cn,noop:Fn,toPath:Bn,property:kn,propertyOf:function(r){return null==r?Fn:function(n){return In(r,n)}},matcher:A,matches:A,times:function(n,r,t){var e=Array(Math.max(0,n));r=x(r,t,1);for(var u=0;u<n;u++)e[u]=r(u);return e},random:Vn,now:O,escape:qn,unescape:t,templateSettings:Un,template:function(o,n,r){n=Mn({},n=!n&&r?r:n,m.templateSettings);var t,r=RegExp([(n.escape||Wn).source,(n.interpolate||Wn).source,(n.evaluate||Wn).source].join("|")+"|$","g"),i=0,a="__p+='";if(o.replace(r,function(n,r,t,e,u){return a+=o.slice(i,u).replace(Ln,$n),i=u+n.length,r?a+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'":t?a+="'+\n((__t=("+t+"))==null?'':__t)+\n'":e&&(a+="';\n"+e+"\n__p+='"),n}),a+="';\n",r=n.variable){if(!Cn.test(r))throw new Error("variable is not a bare identifier: "+r)}else a="with(obj||{}){\n"+a+"}\n",r="obj";a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{t=new Function(r,"_",a)}catch(n){throw n.source=a,n}function e(n){return t.call(this,n,m)}return e.source="function("+r+"){\n"+a+"}",e},result:function(n,r,t){var e=(r=w(r)).length;if(!e)return p(t)?t.call(n):t;for(var u=0;u<e;u++){var o=null==n?void 0:n[r[u]];void 0===o&&(o=t,u=e),n=p(o)?o.call(n):o}return n},uniqueId:function(n){var r=++Kn+"";return n?n+r:r},chain:function(n){return(n=m(n))._chain=!0,n},iteratee:Rn,partial:M,bind:Gn,bindAll:Hn,memoize:function(e,u){function o(n){var r=o.cache,t=""+(u?u.apply(this,arguments):n);return y(r,t)||(r[t]=e.apply(this,arguments)),r[t]}return o.cache={},o},delay:Qn,defer:Xn,throttle:function(t,e,u){function o(){l=!1===u.leading?0:O(),i=null,c=t.apply(a,f),i||(a=f=null)}function n(){var n=O(),r=(l||!1!==u.leading||(l=n),e-(n-l));return a=this,f=arguments,r<=0||e<r?(i&&(clearTimeout(i),i=null),l=n,c=t.apply(a,f),i||(a=f=null)):i||!1===u.trailing||(i=setTimeout(o,r)),c}var i,a,f,c,l=0;return u=u||{},n.cancel=function(){clearTimeout(i),l=0,i=a=f=null},n},debounce:function(r,t,e){function u(){var n=O()-i;n<t?o=setTimeout(u,t-n):(o=null,e||(f=r.apply(c,a)),o||(a=c=null))}var o,i,a,f,c,n=l(function(n){return c=this,a=n,i=O(),o||(o=setTimeout(u,t),e&&(f=r.apply(c,a))),f});return n.cancel=function(){clearTimeout(o),o=a=c=null},n},wrap:function(n,r){return M(r,n)},negate:Yn,compose:function(){var t=arguments,e=t.length-1;return function(){for(var n=e,r=t[e].apply(this,arguments);n--;)r=t[n].call(this,r);return r}},after:function(n,r){return function(){if(--n<1)return r.apply(this,arguments)}},before:Zn,once:nr,findKey:rr,findIndex:er,findLastIndex:ur,sortedIndex:or,indexOf:ar,lastIndexOf:fr,find:cr,detect:cr,findWhere:function(n,r){return cr(n,A(r))},each:N,forEach:N,map:I,collect:I,reduce:sr,foldl:sr,inject:sr,reduceRight:pr,foldr:pr,filter:T,select:T,reject:function(n,r,t){return T(n,Yn(S(r)),t)},every:hr,all:hr,some:vr,any:vr,contains:k,includes:k,include:k,invoke:yr,pluck:dr,where:function(n,r){return T(n,A(r))},max:gr,min:function(n,e,r){var t,u,o=1/0,i=1/0;if(null==e||"number"==typeof e&&"object"!=typeof n[0]&&null!=n)for(var a=0,f=(n=E(n)?n:j(n)).length;a<f;a++)null!=(t=n[a])&&t<o&&(o=t);else e=S(e,r),N(n,function(n,r,t){((u=e(n,r,t))<i||u===1/0&&o===1/0)&&(o=n,i=u)});return o},shuffle:function(n){return jr(n,1/0)},sample:jr,sortBy:function(n,e,r){var u=0;return e=S(e,r),dr(I(n,function(n,r,t){return{value:n,index:u++,criteria:e(n,r,t)}}).sort(function(n,r){var t=n.criteria,e=r.criteria;if(t!==e){if(e<t||void 0===t)return 1;if(t<e||void 0===e)return-1}return n.index-r.index}),"value")},groupBy:_r,indexBy:wr,countBy:Ar,partition:xr,toArray:mr,size:function(n){return null==n?0:(E(n)?n:b(n)).length},pick:Or,omit:Mr,first:Br,head:Br,take:Br,initial:Er,last:function(n,r,t){return null==n||n.length<1?null==r||t?void 0:[]:null==r||t?n[n.length-1]:R(n,Math.max(0,n.length-r))},rest:R,tail:R,drop:R,compact:function(n){return T(n,Boolean)},flatten:function(n,r){return B(n,r,!1)},without:Ir,uniq:Tr,unique:Tr,union:kr,intersection:function(n){for(var r=[],t=arguments.length,e=0,u=g(n);e<u;e++){var o=n[e];if(!k(r,o)){for(var i=1;i<t&&k(arguments[i],o);i++);i===t&&r.push(o)}}return r},difference:Nr,unzip:Dr,transpose:Dr,zip:Rr,object:function(n,r){for(var t={},e=0,u=g(n);e<u;e++)r?t[n[e]]=r[e]:t[n[e][0]]=n[e][1];return t},range:function(n,r,t){null==r&&(r=n||0,n=0),t=t||(r<n?-1:1);for(var e=Math.max(Math.ceil((r-n)/t),0),u=Array(e),o=0;o<e;o++,n+=t)u[o]=n;return u},chunk:function(n,r){if(null==r||r<1)return[];for(var t=[],e=0,u=n.length;e<u;)t.push(f.call(n,e,e+=r));return t},mixin:Vr,default:m});return n._=n});
/*! This file is auto-generated */
!function(n){var s="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global;if("function"==typeof define&&define.amd)define(["underscore","jquery","exports"],function(t,e,i){s.Backbone=n(s,i,t,e)});else if("undefined"!=typeof exports){var t,e=require("underscore");try{t=require("jquery")}catch(t){}n(s,exports,e,t)}else s.Backbone=n(s,{},s._,s.jQuery||s.Zepto||s.ender||s.$)}(function(t,h,b,e){function a(t,e,i,n,s){var r,o=0;if(i&&"object"==typeof i){void 0!==n&&"context"in s&&void 0===s.context&&(s.context=n);for(r=b.keys(i);o<r.length;o++)e=a(t,e,r[o],i[r[o]],s)}else if(i&&c.test(i))for(r=i.split(c);o<r.length;o++)e=t(e,r[o],n,s);else e=t(e,i,n,s);return e}function x(t,e,i){i=Math.min(Math.max(i,0),t.length);for(var n=Array(t.length-i),s=e.length,r=0;r<n.length;r++)n[r]=t[r+i];for(r=0;r<s;r++)t[r+i]=e[r];for(r=0;r<n.length;r++)t[r+s+i]=n[r]}function s(i,n,t,s){b.each(t,function(t,e){n[e]&&(i.prototype[e]=function(n,t,s,r){switch(t){case 1:return function(){return n[s](this[r])};case 2:return function(t){return n[s](this[r],t)};case 3:return function(t,e){return n[s](this[r],T(t,this),e)};case 4:return function(t,e,i){return n[s](this[r],T(t,this),e,i)};default:return function(){var t=l.call(arguments);return t.unshift(this[r]),n[s].apply(n,t)}}}(n,t,e,s))})}var o,i=t.Backbone,l=Array.prototype.slice,e=(h.VERSION="1.5.0",h.$=e,h.noConflict=function(){return t.Backbone=i,this},h.emulateHTTP=!1,h.emulateJSON=!1,h.Events={}),c=/\s+/,n=(e.on=function(t,e,i){return this._events=a(n,this._events||{},t,e,{context:i,ctx:this,listening:o}),o&&(((this._listeners||(this._listeners={}))[o.id]=o).interop=!1),this},e.listenTo=function(t,e,i){if(t){var n=t._listenId||(t._listenId=b.uniqueId("l")),s=this._listeningTo||(this._listeningTo={}),r=o=s[n],s=(r||(this._listenId||(this._listenId=b.uniqueId("l")),r=o=s[n]=new g(this,t)),u(t,e,i,this));if(o=void 0,s)throw s;r.interop&&r.on(e,i)}return this},function(t,e,i,n){var s,r;return i&&(e=t[e]||(t[e]=[]),s=n.context,r=n.ctx,(n=n.listening)&&n.count++,e.push({callback:i,context:s,ctx:s||r,listening:n})),t}),u=function(t,e,i,n){try{t.on(e,i,n)}catch(t){return t}},r=(e.off=function(t,e,i){return this._events&&(this._events=a(r,this._events,t,e,{context:i,listeners:this._listeners})),this},e.stopListening=function(t,e,i){var n=this._listeningTo;if(n){for(var s=t?[t._listenId]:b.keys(n),r=0;r<s.length;r++){var o=n[s[r]];if(!o)break;o.obj.off(e,i,this),o.interop&&o.off(e,i)}b.isEmpty(n)&&(this._listeningTo=void 0)}return this},function(t,e,i,n){if(t){var s,r=n.context,o=n.listeners,h=0;if(e||r||i){for(s=e?[e]:b.keys(t);h<s.length;h++){var a=t[e=s[h]];if(!a)break;for(var l=[],c=0;c<a.length;c++){var u=a[c];i&&i!==u.callback&&i!==u.callback._callback||r&&r!==u.context?l.push(u):(u=u.listening)&&u.off(e,i)}l.length?t[e]=l:delete t[e]}return t}for(s=b.keys(o);h<s.length;h++)o[s[h]].cleanup()}}),d=(e.once=function(t,e,i){var n=a(d,{},t,e,this.off.bind(this));return this.on(n,e="string"==typeof t&&null==i?void 0:e,i)},e.listenToOnce=function(t,e,i){e=a(d,{},e,i,this.stopListening.bind(this,t));return this.listenTo(t,e)},function(t,e,i,n){var s;return i&&((s=t[e]=b.once(function(){n(e,s),i.apply(this,arguments)}))._callback=i),t}),f=(e.trigger=function(t){if(this._events){for(var e=Math.max(0,arguments.length-1),i=Array(e),n=0;n<e;n++)i[n]=arguments[n+1];a(f,this._events,t,void 0,i)}return this},function(t,e,i,n){var s,r;return t&&(s=t[e],r=t.all,s&&(r=r&&r.slice()),s&&p(s,n),r)&&p(r,[e].concat(n)),t}),p=function(t,e){var i,n=-1,s=t.length,r=e[0],o=e[1],h=e[2];switch(e.length){case 0:for(;++n<s;)(i=t[n]).callback.call(i.ctx);return;case 1:for(;++n<s;)(i=t[n]).callback.call(i.ctx,r);return;case 2:for(;++n<s;)(i=t[n]).callback.call(i.ctx,r,o);return;case 3:for(;++n<s;)(i=t[n]).callback.call(i.ctx,r,o,h);return;default:for(;++n<s;)(i=t[n]).callback.apply(i.ctx,e);return}},g=function(t,e){this.id=t._listenId,this.listener=t,this.obj=e,this.interop=!0,this.count=0,this._events=void 0},v=(g.prototype.on=e.on,g.prototype.off=function(t,e){t=this.interop?(this._events=a(r,this._events,t,e,{context:void 0,listeners:void 0}),!this._events):(this.count--,0===this.count);t&&this.cleanup()},g.prototype.cleanup=function(){delete this.listener._listeningTo[this.obj._listenId],this.interop||delete this.obj._listeners[this.id]},e.bind=e.on,e.unbind=e.off,b.extend(h,e),h.Model=function(t,e){var i=t||{},n=(e=e||{},this.preinitialize.apply(this,arguments),this.cid=b.uniqueId(this.cidPrefix),this.attributes={},e.collection&&(this.collection=e.collection),e.parse&&(i=this.parse(i,e)||{}),b.result(this,"defaults")),i=b.defaults(b.extend({},n,i),n);this.set(i,e),this.changed={},this.initialize.apply(this,arguments)}),m=(b.extend(v.prototype,e,{changed:null,validationError:null,idAttribute:"id",cidPrefix:"c",preinitialize:function(){},initialize:function(){},toJSON:function(t){return b.clone(this.attributes)},sync:function(){return h.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return b.escape(this.get(t))},has:function(t){return null!=this.get(t)},matches:function(t){return!!b.iteratee(t,this)(this.attributes)},set:function(t,e,i){if(null!=t){var n;if("object"==typeof t?(n=t,i=e):(n={})[t]=e,!this._validate(n,i=i||{}))return!1;var s,r,o=i.unset,t=i.silent,h=[],a=this._changing,l=(this._changing=!0,a||(this._previousAttributes=b.clone(this.attributes),this.changed={}),this.attributes),c=this.changed,u=this._previousAttributes;for(s in n)e=n[s],b.isEqual(l[s],e)||h.push(s),b.isEqual(u[s],e)?delete c[s]:c[s]=e,o?delete l[s]:l[s]=e;if(this.idAttribute in n&&(r=this.id,this.id=this.get(this.idAttribute),this.trigger("changeId",this,r,i)),!t){h.length&&(this._pending=i);for(var d=0;d<h.length;d++)this.trigger("change:"+h[d],this,l[h[d]],i)}if(!a){if(!t)for(;this._pending;)i=this._pending,this._pending=!1,this.trigger("change",this,i);this._pending=!1,this._changing=!1}}return this},unset:function(t,e){return this.set(t,void 0,b.extend({},e,{unset:!0}))},clear:function(t){var e,i={};for(e in this.attributes)i[e]=void 0;return this.set(i,b.extend({},t,{unset:!0}))},hasChanged:function(t){return null==t?!b.isEmpty(this.changed):b.has(this.changed,t)},changedAttributes:function(t){if(!t)return!!this.hasChanged()&&b.clone(this.changed);var e,i,n=this._changing?this._previousAttributes:this.attributes,s={};for(i in t){var r=t[i];b.isEqual(n[i],r)||(s[i]=r,e=!0)}return!!e&&s},previous:function(t){return null!=t&&this._previousAttributes?this._previousAttributes[t]:null},previousAttributes:function(){return b.clone(this._previousAttributes)},fetch:function(i){i=b.extend({parse:!0},i);var n=this,s=i.success;return i.success=function(t){var e=i.parse?n.parse(t,i):t;if(!n.set(e,i))return!1;s&&s.call(i.context,n,t,i),n.trigger("sync",n,t,i)},N(this,i),this.sync("read",this,i)},save:function(t,e,i){null==t||"object"==typeof t?(n=t,i=e):(n={})[t]=e;var n,s=(i=b.extend({validate:!0,parse:!0},i)).wait;if(n&&!s){if(!this.set(n,i))return!1}else if(!this._validate(n,i))return!1;var r=this,o=i.success,h=this.attributes,t=(i.success=function(t){r.attributes=h;var e=i.parse?r.parse(t,i):t;if((e=s?b.extend({},n,e):e)&&!r.set(e,i))return!1;o&&o.call(i.context,r,t,i),r.trigger("sync",r,t,i)},N(this,i),n&&s&&(this.attributes=b.extend({},h,n)),this.isNew()?"create":i.patch?"patch":"update"),e=("patch"!=t||i.attrs||(i.attrs=n),this.sync(t,this,i));return this.attributes=h,e},destroy:function(e){e=e?b.clone(e):{};function i(){n.stopListening(),n.trigger("destroy",n,n.collection,e)}var n=this,s=e.success,r=e.wait,t=!(e.success=function(t){r&&i(),s&&s.call(e.context,n,t,e),n.isNew()||n.trigger("sync",n,t,e)});return this.isNew()?b.defer(e.success):(N(this,e),t=this.sync("delete",this,e)),r||i(),t},url:function(){var t,e=b.result(this,"urlRoot")||b.result(this.collection,"url")||R();return this.isNew()?e:(t=this.get(this.idAttribute),e.replace(/[^\/]$/,"$&/")+encodeURIComponent(t))},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},b.extend({},t,{validate:!0}))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=b.extend({},this.attributes,t);t=this.validationError=this.validate(t,e)||null;return!t||(this.trigger("invalid",this,t,b.extend(e,{validationError:t})),!1)}}),h.Collection=function(t,e){e=e||{},this.preinitialize.apply(this,arguments),e.model&&(this.model=e.model),void 0!==e.comparator&&(this.comparator=e.comparator),this._reset(),this.initialize.apply(this,arguments),t&&this.reset(t,b.extend({silent:!0},e))}),w={add:!0,remove:!0,merge:!0},_={add:!0,remove:!1},y=(b.extend(m.prototype,e,{model:v,preinitialize:function(){},initialize:function(){},toJSON:function(e){return this.map(function(t){return t.toJSON(e)})},sync:function(){return h.sync.apply(this,arguments)},add:function(t,e){return this.set(t,b.extend({merge:!1},e,_))},remove:function(t,e){e=b.extend({},e);var i=!b.isArray(t),t=(t=i?[t]:t.slice(),this._removeModels(t,e));return!e.silent&&t.length&&(e.changes={added:[],merged:[],removed:t},this.trigger("update",this,e)),i?t[0]:t},set:function(t,e){if(null!=t){(e=b.extend({},w,e)).parse&&!this._isModel(t)&&(t=this.parse(t,e)||[]);for(var i=!b.isArray(t),n=(t=i?[t]:t.slice(),e.at),s=((n=(n=null!=n?+n:n)>this.length?this.length:n)<0&&(n+=this.length+1),[]),r=[],o=[],h=[],a={},l=e.add,c=e.merge,u=e.remove,d=!1,f=this.comparator&&null==n&&!1!==e.sort,p=b.isString(this.comparator)?this.comparator:null,g=0;g<t.length;g++){var v,m=t[g],_=this.get(m);_?(c&&m!==_&&(v=this._isModel(m)?m.attributes:m,e.parse&&(v=_.parse(v,e)),_.set(v,e),o.push(_),f)&&!d&&(d=_.hasChanged(p)),a[_.cid]||(a[_.cid]=!0,s.push(_)),t[g]=_):l&&(m=t[g]=this._prepareModel(m,e))&&(r.push(m),this._addReference(m,e),a[m.cid]=!0,s.push(m))}if(u){for(g=0;g<this.length;g++)a[(m=this.models[g]).cid]||h.push(m);h.length&&this._removeModels(h,e)}var y=!1;if(s.length&&(!f&&l&&u)?(y=this.length!==s.length||b.some(this.models,function(t,e){return t!==s[e]}),this.models.length=0,x(this.models,s,0),this.length=this.models.length):r.length&&(f&&(d=!0),x(this.models,r,null==n?this.length:n),this.length=this.models.length),d&&this.sort({silent:!0}),!e.silent){for(g=0;g<r.length;g++)null!=n&&(e.index=n+g),(m=r[g]).trigger("add",m,this,e);(d||y)&&this.trigger("sort",this,e),(r.length||h.length||o.length)&&(e.changes={added:r,removed:h,merged:o},this.trigger("update",this,e))}return i?t[0]:t}},reset:function(t,e){e=e?b.clone(e):{};for(var i=0;i<this.models.length;i++)this._removeReference(this.models[i],e);return e.previousModels=this.models,this._reset(),t=this.add(t,b.extend({silent:!0},e)),e.silent||this.trigger("reset",this,e),t},push:function(t,e){return this.add(t,b.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t)},unshift:function(t,e){return this.add(t,b.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t)},slice:function(){return l.apply(this.models,arguments)},get:function(t){if(null!=t)return this._byId[t]||this._byId[this.modelId(this._isModel(t)?t.attributes:t,t.idAttribute)]||t.cid&&this._byId[t.cid]},has:function(t){return null!=this.get(t)},at:function(t){return t<0&&(t+=this.length),this.models[t]},where:function(t,e){return this[e?"find":"filter"](t)},findWhere:function(t){return this.where(t,!0)},sort:function(t){var e=this.comparator;if(!e)throw new Error("Cannot sort a set without a comparator");t=t||{};var i=e.length;return b.isFunction(e)&&(e=e.bind(this)),1===i||b.isString(e)?this.models=this.sortBy(e):this.models.sort(e),t.silent||this.trigger("sort",this,t),this},pluck:function(t){return this.map(t+"")},fetch:function(i){var n=(i=b.extend({parse:!0},i)).success,s=this;return i.success=function(t){var e=i.reset?"reset":"set";s[e](t,i),n&&n.call(i.context,s,t,i),s.trigger("sync",s,t,i)},N(this,i),this.sync("read",this,i)},create:function(t,e){var n=(e=e?b.clone(e):{}).wait;if(!(t=this._prepareModel(t,e)))return!1;n||this.add(t,e);var s=this,r=e.success;return e.success=function(t,e,i){n&&(t.off("error",this._forwardPristineError,this),s.add(t,i)),r&&r.call(i.context,t,e,i)},n&&t.once("error",this._forwardPristineError,this),t.save(null,e),t},parse:function(t,e){return t},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(t,e){return t[e||this.model.prototype.idAttribute||"id"]},values:function(){return new E(this,S)},keys:function(){return new E(this,I)},entries:function(){return new E(this,k)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(t,e){return this._isModel(t)?(t.collection||(t.collection=this),t):(t=((e=e?b.clone(e):{}).collection=this).model.prototype?new this.model(t,e):this.model(t,e)).validationError?(this.trigger("invalid",this,t.validationError,e),!1):t},_removeModels:function(t,e){for(var i=[],n=0;n<t.length;n++){var s,r,o=this.get(t[n]);o&&(s=this.indexOf(o),this.models.splice(s,1),this.length--,delete this._byId[o.cid],null!=(r=this.modelId(o.attributes,o.idAttribute))&&delete this._byId[r],e.silent||(e.index=s,o.trigger("remove",o,this,e)),i.push(o),this._removeReference(o,e))}return 0<t.length&&!e.silent&&delete e.index,i},_isModel:function(t){return t instanceof v},_addReference:function(t,e){this._byId[t.cid]=t;var i=this.modelId(t.attributes,t.idAttribute);null!=i&&(this._byId[i]=t),t.on("all",this._onModelEvent,this)},_removeReference:function(t,e){delete this._byId[t.cid];var i=this.modelId(t.attributes,t.idAttribute);null!=i&&delete this._byId[i],this===t.collection&&delete t.collection,t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,i,n){if(e){if(("add"===t||"remove"===t)&&i!==this)return;var s,r;"destroy"===t&&this.remove(e,n),"changeId"===t&&(s=this.modelId(e.previousAttributes(),e.idAttribute),r=this.modelId(e.attributes,e.idAttribute),null!=s&&delete this._byId[s],null!=r)&&(this._byId[r]=e)}this.trigger.apply(this,arguments)},_forwardPristineError:function(t,e,i){this.has(t)||this._onModelEvent("error",t,e,i)}}),"function"==typeof Symbol&&Symbol.iterator),E=(y&&(m.prototype[y]=m.prototype.values),function(t,e){this._collection=t,this._kind=e,this._index=0}),S=1,I=2,k=3,y=(y&&(E.prototype[y]=function(){return this}),E.prototype.next=function(){if(this._collection){var t,e;if(this._index<this._collection.length)return t=this._collection.at(this._index),this._index++,{value:this._kind===S?t:(e=this._collection.modelId(t.attributes,t.idAttribute),this._kind===I?e:[e,t]),done:!1};this._collection=void 0}return{value:void 0,done:!0}},h.View=function(t){this.cid=b.uniqueId("view"),this.preinitialize.apply(this,arguments),b.extend(this,b.pick(t,P)),this._ensureElement(),this.initialize.apply(this,arguments)}),A=/^(\S+)\s*(.*)$/,P=["model","collection","el","id","attributes","className","tagName","events"],T=(b.extend(y.prototype,e,{tagName:"div",$:function(t){return this.$el.find(t)},preinitialize:function(){},initialize:function(){},render:function(){return this},remove:function(){return this._removeElement(),this.stopListening(),this},_removeElement:function(){this.$el.remove()},setElement:function(t){return this.undelegateEvents(),this._setElement(t),this.delegateEvents(),this},_setElement:function(t){this.$el=t instanceof h.$?t:h.$(t),this.el=this.$el[0]},delegateEvents:function(t){if(t=t||b.result(this,"events"))for(var e in this.undelegateEvents(),t){var i=t[e];(i=b.isFunction(i)?i:this[i])&&(e=e.match(A),this.delegate(e[1],e[2],i.bind(this)))}return this},delegate:function(t,e,i){return this.$el.on(t+".delegateEvents"+this.cid,e,i),this},undelegateEvents:function(){return this.$el&&this.$el.off(".delegateEvents"+this.cid),this},undelegate:function(t,e,i){return this.$el.off(t+".delegateEvents"+this.cid,e,i),this},_createElement:function(t){return document.createElement(t)},_ensureElement:function(){var t;this.el?this.setElement(b.result(this,"el")):(t=b.extend({},b.result(this,"attributes")),this.id&&(t.id=b.result(this,"id")),this.className&&(t.class=b.result(this,"className")),this.setElement(this._createElement(b.result(this,"tagName"))),this._setAttributes(t))},_setAttributes:function(t){this.$el.attr(t)}}),function(e,t){var i;return b.isFunction(e)?e:b.isObject(e)&&!t._isModel(e)?(i=b.matches(e),function(t){return i(t.attributes)}):b.isString(e)?function(t){return t.get(e)}:e}),H=(b.each([[m,{forEach:3,each:3,map:3,collect:3,reduce:0,foldl:0,inject:0,reduceRight:0,foldr:0,find:3,detect:3,filter:3,select:3,reject:3,every:3,all:3,some:3,any:3,include:3,includes:3,contains:3,invoke:0,max:3,min:3,toArray:1,size:1,first:3,head:3,take:3,initial:3,rest:3,tail:3,drop:3,last:3,without:0,difference:0,indexOf:3,shuffle:1,lastIndexOf:3,isEmpty:1,chain:1,sample:3,partition:3,groupBy:3,countBy:3,sortBy:3,indexBy:3,findIndex:3,findLastIndex:3},"models"],[v,{keys:1,values:1,pairs:1,invert:1,pick:0,omit:0,chain:1,isEmpty:1},"attributes"]],function(t){var i=t[0],e=t[1],n=t[2];i.mixin=function(t){var e=b.reduce(b.functions(t),function(t,e){return t[e]=0,t},{});s(i,t,e,n)},s(i,b,e,n)}),h.sync=function(t,e,n){var i,s=H[t],r=(b.defaults(n=n||{},{emulateHTTP:h.emulateHTTP,emulateJSON:h.emulateJSON}),{type:s,dataType:"json"}),o=(n.url||(r.url=b.result(e,"url")||R()),null!=n.data||!e||"create"!==t&&"update"!==t&&"patch"!==t||(r.contentType="application/json",r.data=JSON.stringify(n.attrs||e.toJSON(n))),n.emulateJSON&&(r.contentType="application/x-www-form-urlencoded",r.data=r.data?{model:r.data}:{}),!n.emulateHTTP||"PUT"!==s&&"DELETE"!==s&&"PATCH"!==s||(r.type="POST",n.emulateJSON&&(r.data._method=s),i=n.beforeSend,n.beforeSend=function(t){if(t.setRequestHeader("X-HTTP-Method-Override",s),i)return i.apply(this,arguments)}),"GET"===r.type||n.emulateJSON||(r.processData=!1),n.error),t=(n.error=function(t,e,i){n.textStatus=e,n.errorThrown=i,o&&o.call(n.context,t,e,i)},n.xhr=h.ajax(b.extend(r,n)));return e.trigger("request",e,t,n),t},{create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"}),$=(h.ajax=function(){return h.$.ajax.apply(h.$,arguments)},h.Router=function(t){t=t||{},this.preinitialize.apply(this,arguments),t.routes&&(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)}),C=/\((.*?)\)/g,j=/(\(\?)?:\w+/g,O=/\*\w+/g,U=/[\-{}\[\]+?.,\\\^$|#\s]/g,M=(b.extend($.prototype,e,{preinitialize:function(){},initialize:function(){},route:function(e,i,n){b.isRegExp(e)||(e=this._routeToRegExp(e)),b.isFunction(i)&&(n=i,i=""),n=n||this[i];var s=this;return h.history.route(e,function(t){t=s._extractParameters(e,t);!1!==s.execute(n,t,i)&&(s.trigger.apply(s,["route:"+i].concat(t)),s.trigger("route",i,t),h.history.trigger("route",s,i,t))}),this},execute:function(t,e,i){t&&t.apply(this,e)},navigate:function(t,e){return h.history.navigate(t,e),this},_bindRoutes:function(){if(this.routes){this.routes=b.result(this,"routes");for(var t,e=b.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(U,"\\$&").replace(C,"(?:$1)?").replace(j,function(t,e){return e?t:"([^/?]+)"}).replace(O,"([^?]*?)"),new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var i=t.exec(e).slice(1);return b.map(i,function(t,e){return e===i.length-1?t||null:t?decodeURIComponent(t):null})}}),h.History=function(){this.handlers=[],this.checkUrl=this.checkUrl.bind(this),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)}),z=/^[#\/]|\s+$/g,q=/^\/+|\/+$/g,F=/#.*$/,R=(M.started=!1,b.extend(M.prototype,e,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root&&!this.getSearch()},matchRoot:function(){return this.decodeFragment(this.location.pathname).slice(0,this.root.length-1)+"/"===this.root},decodeFragment:function(t){return decodeURI(t.replace(/%25/g,"%2525"))},getSearch:function(){var t=this.location.href.replace(/#.*/,"").match(/\?.+/);return t?t[0]:""},getHash:function(t){t=(t||this).location.href.match(/#(.*)$/);return t?t[1]:""},getPath:function(){var t=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1);return"/"===t.charAt(0)?t.slice(1):t},getFragment:function(t){return(t=null==t?this._usePushState||!this._wantsHashChange?this.getPath():this.getHash():t).replace(z,"")},start:function(t){if(M.started)throw new Error("Backbone.history has already been started");if(M.started=!0,this.options=b.extend({root:"/"},this.options,t),this.root=this.options.root,this._trailingSlash=this.options.trailingSlash,this._wantsHashChange=!1!==this.options.hashChange,this._hasHashChange="onhashchange"in window&&(void 0===document.documentMode||7<document.documentMode),this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!(!this.history||!this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(q,"/"),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot())return t=this.root.slice(0,-1)||"/",this.location.replace(t+"#"+this.getPath()),!0;this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}this._hasHashChange||!this._wantsHashChange||this._usePushState||(this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1,(t=(t=document.body).insertBefore(this.iframe,t.firstChild).contentWindow).document.open(),t.document.close(),t.location.hash="#"+this.fragment);t=window.addEventListener||function(t,e){return attachEvent("on"+t,e)};if(this._usePushState?t("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?t("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),!this.options.silent)return this.loadUrl()},stop:function(){var t=window.removeEventListener||function(t,e){return detachEvent("on"+t,e)};this._usePushState?t("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&t("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),M.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();if((e=e===this.fragment&&this.iframe?this.getHash(this.iframe.contentWindow):e)===this.fragment)return!1;this.iframe&&this.navigate(e),this.loadUrl()},loadUrl:function(e){return!!this.matchRoot()&&(e=this.fragment=this.getFragment(e),b.some(this.handlers,function(t){if(t.route.test(e))return t.callback(e),!0}))},navigate:function(t,e){if(!M.started)return!1;e&&!0!==e||(e={trigger:!!e}),t=this.getFragment(t||"");var i=this.root,i=(i=this._trailingSlash||""!==t&&"?"!==t.charAt(0)?i:i.slice(0,-1)||"/")+t,n=(t=t.replace(F,""),this.decodeFragment(t));if(this.fragment!==n){if(this.fragment=n,this._usePushState)this.history[e.replace?"replaceState":"pushState"]({},document.title,i);else{if(!this._wantsHashChange)return this.location.assign(i);this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getHash(this.iframe.contentWindow)&&(n=this.iframe.contentWindow,e.replace||(n.document.open(),n.document.close()),this._updateHash(n.location,t,e.replace))}return e.trigger?this.loadUrl(t):void 0}},_updateHash:function(t,e,i){i?(i=t.href.replace(/(javascript:|#).*$/,""),t.replace(i+"#"+e)):t.hash="#"+e}}),h.history=new M,v.extend=m.extend=$.extend=y.extend=M.extend=function(t,e){var i=this,n=t&&b.has(t,"constructor")?t.constructor:function(){return i.apply(this,arguments)};return b.extend(n,i,e),n.prototype=b.create(i.prototype,t),(n.prototype.constructor=n).__super__=i.prototype,n},function(){throw new Error('A "url" property or function must be specified')}),N=function(e,i){var n=i.error;i.error=function(t){n&&n.call(i.context,e,t,i),e.trigger("error",e,t,i)}};return h});
/*!
 * Includes BabySitter
 * https://github.com/marionettejs/backbone.babysitter/
 *
 * Includes Wreqr
 * https://github.com/marionettejs/backbone.wreqr/
 */
(function(t,e){if("function"==typeof define&&define.amd)define(["backbone","underscore"],function(i,n){return t.Marionette=t.Mn=e(t,i,n)});else if("undefined"!=typeof exports){var i=require("backbone"),n=require("underscore");module.exports=e(t,i,n)}else t.Marionette=t.Mn=e(t,t.Backbone,t._)})(this,function(t,e,i){"use strict";(function(t,e){var i=t.ChildViewContainer;return t.ChildViewContainer=function(t,e){var i=function(t){this._views={},this._indexByModel={},this._indexByCustom={},this._updateLength(),e.each(t,this.add,this)};e.extend(i.prototype,{add:function(t,e){var i=t.cid;return this._views[i]=t,t.model&&(this._indexByModel[t.model.cid]=i),e&&(this._indexByCustom[e]=i),this._updateLength(),this},findByModel:function(t){return this.findByModelCid(t.cid)},findByModelCid:function(t){var e=this._indexByModel[t];return this.findByCid(e)},findByCustom:function(t){var e=this._indexByCustom[t];return this.findByCid(e)},findByIndex:function(t){return e.values(this._views)[t]},findByCid:function(t){return this._views[t]},remove:function(t){var i=t.cid;return t.model&&delete this._indexByModel[t.model.cid],e.any(this._indexByCustom,function(t,e){return t===i?(delete this._indexByCustom[e],!0):void 0},this),delete this._views[i],this._updateLength(),this},call:function(t){this.apply(t,e.tail(arguments))},apply:function(t,i){e.each(this._views,function(n){e.isFunction(n[t])&&n[t].apply(n,i||[])})},_updateLength:function(){this.length=e.size(this._views)}});var n=["forEach","each","map","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","toArray","first","initial","rest","last","without","isEmpty","pluck","reduce"];return e.each(n,function(t){i.prototype[t]=function(){var i=e.values(this._views),n=[i].concat(e.toArray(arguments));return e[t].apply(e,n)}}),i}(t,e),t.ChildViewContainer.VERSION="0.1.7",t.ChildViewContainer.noConflict=function(){return t.ChildViewContainer=i,this},t.ChildViewContainer})(e,i),function(t,e){var i=t.Wreqr,n=t.Wreqr={};return t.Wreqr.VERSION="1.3.3",t.Wreqr.noConflict=function(){return t.Wreqr=i,this},n.Handlers=function(t,e){var i=function(t){this.options=t,this._wreqrHandlers={},e.isFunction(this.initialize)&&this.initialize(t)};return i.extend=t.Model.extend,e.extend(i.prototype,t.Events,{setHandlers:function(t){e.each(t,function(t,i){var n=null;e.isObject(t)&&!e.isFunction(t)&&(n=t.context,t=t.callback),this.setHandler(i,t,n)},this)},setHandler:function(t,e,i){var n={callback:e,context:i};this._wreqrHandlers[t]=n,this.trigger("handler:add",t,e,i)},hasHandler:function(t){return!!this._wreqrHandlers[t]},getHandler:function(t){var e=this._wreqrHandlers[t];if(e)return function(){return e.callback.apply(e.context,arguments)}},removeHandler:function(t){delete this._wreqrHandlers[t]},removeAllHandlers:function(){this._wreqrHandlers={}}}),i}(t,e),n.CommandStorage=function(){var i=function(t){this.options=t,this._commands={},e.isFunction(this.initialize)&&this.initialize(t)};return e.extend(i.prototype,t.Events,{getCommands:function(t){var e=this._commands[t];return e||(e={command:t,instances:[]},this._commands[t]=e),e},addCommand:function(t,e){var i=this.getCommands(t);i.instances.push(e)},clearCommands:function(t){var e=this.getCommands(t);e.instances=[]}}),i}(),n.Commands=function(t,e){return t.Handlers.extend({storageType:t.CommandStorage,constructor:function(e){this.options=e||{},this._initializeStorage(this.options),this.on("handler:add",this._executeCommands,this),t.Handlers.prototype.constructor.apply(this,arguments)},execute:function(t){t=arguments[0];var i=e.rest(arguments);this.hasHandler(t)?this.getHandler(t).apply(this,i):this.storage.addCommand(t,i)},_executeCommands:function(t,i,n){var r=this.storage.getCommands(t);e.each(r.instances,function(t){i.apply(n,t)}),this.storage.clearCommands(t)},_initializeStorage:function(t){var i,n=t.storageType||this.storageType;i=e.isFunction(n)?new n:n,this.storage=i}})}(n,e),n.RequestResponse=function(t,e){return t.Handlers.extend({request:function(t){return this.hasHandler(t)?this.getHandler(t).apply(this,e.rest(arguments)):void 0}})}(n,e),n.EventAggregator=function(t,e){var i=function(){};return i.extend=t.Model.extend,e.extend(i.prototype,t.Events),i}(t,e),n.Channel=function(){var i=function(e){this.vent=new t.Wreqr.EventAggregator,this.reqres=new t.Wreqr.RequestResponse,this.commands=new t.Wreqr.Commands,this.channelName=e};return e.extend(i.prototype,{reset:function(){return this.vent.off(),this.vent.stopListening(),this.reqres.removeAllHandlers(),this.commands.removeAllHandlers(),this},connectEvents:function(t,e){return this._connect("vent",t,e),this},connectCommands:function(t,e){return this._connect("commands",t,e),this},connectRequests:function(t,e){return this._connect("reqres",t,e),this},_connect:function(t,i,n){if(i){n=n||this;var r="vent"===t?"on":"setHandler";e.each(i,function(i,s){this[t][r](s,e.bind(i,n))},this)}}}),i}(n),n.radio=function(t,e){var i=function(){this._channels={},this.vent={},this.commands={},this.reqres={},this._proxyMethods()};e.extend(i.prototype,{channel:function(t){if(!t)throw Error("Channel must receive a name");return this._getChannel(t)},_getChannel:function(e){var i=this._channels[e];return i||(i=new t.Channel(e),this._channels[e]=i),i},_proxyMethods:function(){e.each(["vent","commands","reqres"],function(t){e.each(n[t],function(e){this[t][e]=r(this,t,e)},this)},this)}});var n={vent:["on","off","trigger","once","stopListening","listenTo","listenToOnce"],commands:["execute","setHandler","setHandlers","removeHandler","removeAllHandlers"],reqres:["request","setHandler","setHandlers","removeHandler","removeAllHandlers"]},r=function(t,i,n){return function(r){var s=t._getChannel(r)[i];return s[n].apply(s,e.rest(arguments))}};return new i}(n,e),t.Wreqr}(e,i);var n=t.Marionette,r=t.Mn,s=e.Marionette={};s.VERSION="2.4.2",s.noConflict=function(){return t.Marionette=n,t.Mn=r,this},e.Marionette=s,s.Deferred=e.$.Deferred,s.extend=e.Model.extend,s.isNodeAttached=function(t){return e.$.contains(document.documentElement,t)},s.mergeOptions=function(t,e){t&&i.extend(this,i.pick(t,e))},s.getOption=function(t,e){return t&&e?t.options&&void 0!==t.options[e]?t.options[e]:t[e]:void 0},s.proxyGetOption=function(t){return s.getOption(this,t)},s._getValue=function(t,e,n){return i.isFunction(t)&&(t=n?t.apply(e,n):t.call(e)),t},s.normalizeMethods=function(t){return i.reduce(t,function(t,e,n){return i.isFunction(e)||(e=this[e]),e&&(t[n]=e),t},{},this)},s.normalizeUIString=function(t,e){return t.replace(/@ui\.[a-zA-Z_$0-9]*/g,function(t){return e[t.slice(4)]})},s.normalizeUIKeys=function(t,e){return i.reduce(t,function(t,i,n){var r=s.normalizeUIString(n,e);return t[r]=i,t},{})},s.normalizeUIValues=function(t,e,n){return i.each(t,function(r,o){i.isString(r)?t[o]=s.normalizeUIString(r,e):i.isObject(r)&&i.isArray(n)&&(i.extend(r,s.normalizeUIValues(i.pick(r,n),e)),i.each(n,function(t){var n=r[t];i.isString(n)&&(r[t]=s.normalizeUIString(n,e))}))}),t},s.actAsCollection=function(t,e){var n=["forEach","each","map","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","toArray","first","initial","rest","last","without","isEmpty","pluck"];i.each(n,function(n){t[n]=function(){var t=i.values(i.result(this,e)),r=[t].concat(i.toArray(arguments));return i[n].apply(i,r)}})};var o=s.deprecate=function(t,e){i.isObject(t)&&(t=t.prev+" is going to be removed in the future. "+"Please use "+t.next+" instead."+(t.url?" See: "+t.url:"")),void 0!==e&&e||o._cache[t]||(o._warn("Deprecation warning: "+t),o._cache[t]=!0)};o._warn="undefined"!=typeof console&&(console.warn||console.log)||function(){},o._cache={},s._triggerMethod=function(){function t(t,e,i){return i.toUpperCase()}var e=/(^|:)(\w)/gi;return function(n,r,s){var o=3>arguments.length;o&&(s=r,r=s[0]);var h,a="on"+r.replace(e,t),d=n[a];return i.isFunction(d)&&(h=d.apply(n,o?i.rest(s):s)),i.isFunction(n.trigger)&&(o+s.length>1?n.trigger.apply(n,o?s:[r].concat(i.drop(s,0))):n.trigger(r)),h}}(),s.triggerMethod=function(){return s._triggerMethod(this,arguments)},s.triggerMethodOn=function(t){var e=i.isFunction(t.triggerMethod)?t.triggerMethod:s.triggerMethod;return e.apply(t,i.rest(arguments))},s.MonitorDOMRefresh=function(t){function e(){t._isShown=!0,r()}function n(){t._isRendered=!0,r()}function r(){t._isShown&&t._isRendered&&s.isNodeAttached(t.el)&&i.isFunction(t.triggerMethod)&&t.triggerMethod("dom:refresh")}t.on({show:e,render:n})},function(t){function e(e,n,r,s){var o=s.split(/\s+/);i.each(o,function(i){var s=e[i];if(!s)throw new t.Error('Method "'+i+'" was configured as an event handler, but does not exist.');e.listenTo(n,r,s)})}function n(t,e,i,n){t.listenTo(e,i,n)}function r(t,e,n,r){var s=r.split(/\s+/);i.each(s,function(i){var r=t[i];t.stopListening(e,n,r)})}function s(t,e,i,n){t.stopListening(e,i,n)}function o(e,n,r,s,o){if(n&&r){if(!i.isObject(r))throw new t.Error({message:"Bindings must be an object or function.",url:"marionette.functions.html#marionettebindentityevents"});r=t._getValue(r,e),i.each(r,function(t,r){i.isFunction(t)?s(e,n,r,t):o(e,n,r,t)})}}t.bindEntityEvents=function(t,i,r){o(t,i,r,n,e)},t.unbindEntityEvents=function(t,e,i){o(t,e,i,s,r)},t.proxyBindEntityEvents=function(e,i){return t.bindEntityEvents(this,e,i)},t.proxyUnbindEntityEvents=function(e,i){return t.unbindEntityEvents(this,e,i)}}(s);var h=["description","fileName","lineNumber","name","message","number"];return s.Error=s.extend.call(Error,{urlRoot:"http://marionettejs.com/docs/v"+s.VERSION+"/",constructor:function(t,e){i.isObject(t)?(e=t,t=e.message):e||(e={});var n=Error.call(this,t);i.extend(this,i.pick(n,h),i.pick(e,h)),this.captureStackTrace(),e.url&&(this.url=this.urlRoot+e.url)},captureStackTrace:function(){Error.captureStackTrace&&Error.captureStackTrace(this,s.Error)},toString:function(){return this.name+": "+this.message+(this.url?" See: "+this.url:"")}}),s.Error.extend=s.extend,s.Callbacks=function(){this._deferred=s.Deferred(),this._callbacks=[]},i.extend(s.Callbacks.prototype,{add:function(t,e){var n=i.result(this._deferred,"promise");this._callbacks.push({cb:t,ctx:e}),n.then(function(i){e&&(i.context=e),t.call(i.context,i.options)})},run:function(t,e){this._deferred.resolve({options:t,context:e})},reset:function(){var t=this._callbacks;this._deferred=s.Deferred(),this._callbacks=[],i.each(t,function(t){this.add(t.cb,t.ctx)},this)}}),s.Controller=function(t){this.options=t||{},i.isFunction(this.initialize)&&this.initialize(this.options)},s.Controller.extend=s.extend,i.extend(s.Controller.prototype,e.Events,{destroy:function(){return s._triggerMethod(this,"before:destroy",arguments),s._triggerMethod(this,"destroy",arguments),this.stopListening(),this.off(),this},triggerMethod:s.triggerMethod,mergeOptions:s.mergeOptions,getOption:s.proxyGetOption}),s.Object=function(t){this.options=i.extend({},i.result(this,"options"),t),this.initialize.apply(this,arguments)},s.Object.extend=s.extend,i.extend(s.Object.prototype,e.Events,{initialize:function(){},destroy:function(){return this.triggerMethod("before:destroy"),this.triggerMethod("destroy"),this.stopListening(),this},triggerMethod:s.triggerMethod,mergeOptions:s.mergeOptions,getOption:s.proxyGetOption,bindEntityEvents:s.proxyBindEntityEvents,unbindEntityEvents:s.proxyUnbindEntityEvents}),s.Region=s.Object.extend({constructor:function(t){if(this.options=t||{},this.el=this.getOption("el"),this.el=this.el instanceof e.$?this.el[0]:this.el,!this.el)throw new s.Error({name:"NoElError",message:'An "el" must be specified for a region.'});this.$el=this.getEl(this.el),s.Object.call(this,t)},show:function(t,e){if(this._ensureElement()){this._ensureViewIsIntact(t);var n=e||{},r=t!==this.currentView,o=!!n.preventDestroy,h=!!n.forceShow,a=!!this.currentView,d=r&&!o,l=r||h;if(a&&this.triggerMethod("before:swapOut",this.currentView,this,e),this.currentView&&delete this.currentView._parent,d?this.empty():a&&l&&this.currentView.off("destroy",this.empty,this),l){t.once("destroy",this.empty,this),t.render(),t._parent=this,a&&this.triggerMethod("before:swap",t,this,e),this.triggerMethod("before:show",t,this,e),s.triggerMethodOn(t,"before:show",t,this,e),a&&this.triggerMethod("swapOut",this.currentView,this,e);var c=s.isNodeAttached(this.el),u=[],g=i.extend({triggerBeforeAttach:this.triggerBeforeAttach,triggerAttach:this.triggerAttach},n);return c&&g.triggerBeforeAttach&&(u=this._displayedViews(t),this._triggerAttach(u,"before:")),this.attachHtml(t),this.currentView=t,c&&g.triggerAttach&&(u=this._displayedViews(t),this._triggerAttach(u)),a&&this.triggerMethod("swap",t,this,e),this.triggerMethod("show",t,this,e),s.triggerMethodOn(t,"show",t,this,e),this}return this}},triggerBeforeAttach:!0,triggerAttach:!0,_triggerAttach:function(t,e){var n=(e||"")+"attach";i.each(t,function(t){s.triggerMethodOn(t,n,t,this)},this)},_displayedViews:function(t){return i.union([t],i.result(t,"_getNestedViews")||[])},_ensureElement:function(){if(i.isObject(this.el)||(this.$el=this.getEl(this.el),this.el=this.$el[0]),!this.$el||0===this.$el.length){if(this.getOption("allowMissingEl"))return!1;throw new s.Error('An "el" '+this.$el.selector+" must exist in DOM")}return!0},_ensureViewIsIntact:function(t){if(!t)throw new s.Error({name:"ViewNotValid",message:"The view passed is undefined and therefore invalid. You must pass a view instance to show."});if(t.isDestroyed)throw new s.Error({name:"ViewDestroyedError",message:'View (cid: "'+t.cid+'") has already been destroyed and cannot be used.'})},getEl:function(t){return e.$(t,s._getValue(this.options.parentEl,this))},attachHtml:function(t){this.$el.contents().detach(),this.el.appendChild(t.el)},empty:function(t){var e=this.currentView,i=s._getValue(t,"preventDestroy",this);return e?(e.off("destroy",this.empty,this),this.triggerMethod("before:empty",e),i||this._destroyView(),this.triggerMethod("empty",e),delete this.currentView,i&&this.$el.contents().detach(),this):void 0},_destroyView:function(){var t=this.currentView;t.destroy&&!t.isDestroyed?t.destroy():t.remove&&(t.remove(),t.isDestroyed=!0)},attachView:function(t){return this.currentView=t,this},hasView:function(){return!!this.currentView},reset:function(){return this.empty(),this.$el&&(this.el=this.getOption('el')),delete this.$el,this}},{buildRegion:function(t,e){if(i.isString(t))return this._buildRegionFromSelector(t,e);if(t.selector||t.el||t.regionClass)return this._buildRegionFromObject(t,e);if(i.isFunction(t))return this._buildRegionFromRegionClass(t);throw new s.Error({message:"Improper region configuration type.",url:"marionette.region.html#region-configuration-types"})},_buildRegionFromSelector:function(t,e){return new e({el:t})},_buildRegionFromObject:function(t,e){var n=t.regionClass||e,r=i.omit(t,"selector","regionClass");return t.selector&&!r.el&&(r.el=t.selector),new n(r)},_buildRegionFromRegionClass:function(t){return new t}}),s.RegionManager=s.Controller.extend({constructor:function(t){this._regions={},this.length=0,s.Controller.call(this,t),this.addRegions(this.getOption("regions"))},addRegions:function(t,e){return t=s._getValue(t,this,arguments),i.reduce(t,function(t,n,r){return i.isString(n)&&(n={selector:n}),n.selector&&(n=i.defaults({},n,e)),t[r]=this.addRegion(r,n),t},{},this)},addRegion:function(t,e){var i;return i=e instanceof s.Region?e:s.Region.buildRegion(e,s.Region),this.triggerMethod("before:add:region",t,i),i._parent=this,this._store(t,i),this.triggerMethod("add:region",t,i),i},get:function(t){return this._regions[t]},getRegions:function(){return i.clone(this._regions)},removeRegion:function(t){var e=this._regions[t];return this._remove(t,e),e},removeRegions:function(){var t=this.getRegions();return i.each(this._regions,function(t,e){this._remove(e,t)},this),t},emptyRegions:function(){var t=this.getRegions();return i.invoke(t,"empty"),t},destroy:function(){return this.removeRegions(),s.Controller.prototype.destroy.apply(this,arguments)},_store:function(t,e){this._regions[t]||this.length++,this._regions[t]=e},_remove:function(t,e){this.triggerMethod("before:remove:region",t,e),e.empty(),e.stopListening(),delete e._parent,delete this._regions[t],this.length--,this.triggerMethod("remove:region",t,e)}}),s.actAsCollection(s.RegionManager.prototype,"_regions"),s.TemplateCache=function(t){this.templateId=t},i.extend(s.TemplateCache,{templateCaches:{},get:function(t,e){var i=this.templateCaches[t];return i||(i=new s.TemplateCache(t),this.templateCaches[t]=i),i.load(e)},clear:function(){var t,e=i.toArray(arguments),n=e.length;if(n>0)for(t=0;n>t;t++)delete this.templateCaches[e[t]];else this.templateCaches={}}}),i.extend(s.TemplateCache.prototype,{load:function(t){if(this.compiledTemplate)return this.compiledTemplate;var e=this.loadTemplate(this.templateId,t);return this.compiledTemplate=this.compileTemplate(e,t),this.compiledTemplate},loadTemplate:function(t){var i=e.$(t).html();if(!i||0===i.length)throw new s.Error({name:"NoTemplateError",message:'Could not find template: "'+t+'"'});return i},compileTemplate:function(t,e){return i.template(t,e)}}),s.Renderer={render:function(t,e){if(!t)throw new s.Error({name:"TemplateNotFoundError",message:"Cannot render the template since its false, null or undefined."});var n=i.isFunction(t)?t:s.TemplateCache.get(t);return n(e)}},s.View=e.View.extend({isDestroyed:!1,constructor:function(t){i.bindAll(this,"render"),t=s._getValue(t,this),this.options=i.extend({},i.result(this,"options"),t),this._behaviors=s.Behaviors(this),e.View.call(this,this.options),s.MonitorDOMRefresh(this)},getTemplate:function(){return this.getOption("template")},serializeModel:function(t){return t.toJSON.apply(t,i.rest(arguments))},mixinTemplateHelpers:function(t){t=t||{};var e=this.getOption("templateHelpers");return e=s._getValue(e,this),i.extend(t,e)},normalizeUIKeys:function(t){var e=i.result(this,"_uiBindings");return s.normalizeUIKeys(t,e||i.result(this,"ui"))},normalizeUIValues:function(t,e){var n=i.result(this,"ui"),r=i.result(this,"_uiBindings");return s.normalizeUIValues(t,r||n,e)},configureTriggers:function(){if(this.triggers){var t=this.normalizeUIKeys(i.result(this,"triggers"));return i.reduce(t,function(t,e,i){return t[i]=this._buildViewTrigger(e),t},{},this)}},delegateEvents:function(t){return this._delegateDOMEvents(t),this.bindEntityEvents(this.model,this.getOption("modelEvents")),this.bindEntityEvents(this.collection,this.getOption("collectionEvents")),i.each(this._behaviors,function(t){t.bindEntityEvents(this.model,t.getOption("modelEvents")),t.bindEntityEvents(this.collection,t.getOption("collectionEvents"))},this),this},_delegateDOMEvents:function(t){var n=s._getValue(t||this.events,this);n=this.normalizeUIKeys(n),i.isUndefined(t)&&(this.events=n);var r={},o=i.result(this,"behaviorEvents")||{},h=this.configureTriggers(),a=i.result(this,"behaviorTriggers")||{};i.extend(r,o,n,h,a),e.View.prototype.delegateEvents.call(this,r)},undelegateEvents:function(){return e.View.prototype.undelegateEvents.apply(this,arguments),this.unbindEntityEvents(this.model,this.getOption("modelEvents")),this.unbindEntityEvents(this.collection,this.getOption("collectionEvents")),i.each(this._behaviors,function(t){t.unbindEntityEvents(this.model,t.getOption("modelEvents")),t.unbindEntityEvents(this.collection,t.getOption("collectionEvents"))},this),this},_ensureViewIsIntact:function(){if(this.isDestroyed)throw new s.Error({name:"ViewDestroyedError",message:'View (cid: "'+this.cid+'") has already been destroyed and cannot be used.'})},destroy:function(){if(this.isDestroyed)return this;var t=i.toArray(arguments);return this.triggerMethod.apply(this,["before:destroy"].concat(t)),this.isDestroyed=!0,this.triggerMethod.apply(this,["destroy"].concat(t)),this.unbindUIElements(),this.isRendered=!1,this.remove(),i.invoke(this._behaviors,"destroy",t),this},bindUIElements:function(){this._bindUIElements(),i.invoke(this._behaviors,this._bindUIElements)},_bindUIElements:function(){if(this.ui){this._uiBindings||(this._uiBindings=this.ui);var t=i.result(this,"_uiBindings");this.ui={},i.each(t,function(t,e){this.ui[e]=this.$(t)},this)}},unbindUIElements:function(){this._unbindUIElements(),i.invoke(this._behaviors,this._unbindUIElements)},_unbindUIElements:function(){this.ui&&this._uiBindings&&(i.each(this.ui,function(t,e){delete this.ui[e]},this),this.ui=this._uiBindings,delete this._uiBindings)},_buildViewTrigger:function(t){var e=i.isObject(t),n=i.defaults({},e?t:{},{preventDefault:!0,stopPropagation:!0}),r=e?n.event:t;return function(t){t&&(t.preventDefault&&n.preventDefault&&t.preventDefault(),t.stopPropagation&&n.stopPropagation&&t.stopPropagation());var e={view:this,model:this.model,collection:this.collection};this.triggerMethod(r,e)}},setElement:function(){var t=e.View.prototype.setElement.apply(this,arguments);return i.invoke(this._behaviors,"proxyViewProperties",this),t},triggerMethod:function(){var t=s._triggerMethod(this,arguments);return this._triggerEventOnBehaviors(arguments),this._triggerEventOnParentLayout(arguments[0],i.rest(arguments)),t},_triggerEventOnBehaviors:function(t){for(var e=s._triggerMethod,i=this._behaviors,n=0,r=i&&i.length;r>n;n++)e(i[n],t)},_triggerEventOnParentLayout:function(t,e){var n=this._parentLayoutView();if(n){var r=s.getOption(n,"childViewEventPrefix"),o=r+":"+t;s._triggerMethod(n,[o,this].concat(e));var h=s.getOption(n,"childEvents"),a=n.normalizeMethods(h);a&&i.isFunction(a[t])&&a[t].apply(n,[this].concat(e))}},_getImmediateChildren:function(){return[]},_getNestedViews:function(){var t=this._getImmediateChildren();return t.length?i.reduce(t,function(t,e){return e._getNestedViews?t.concat(e._getNestedViews()):t},t):t},_getAncestors:function(){for(var t=[],e=this._parent;e;)t.push(e),e=e._parent;return t},_parentLayoutView:function(){var t=this._getAncestors();return i.find(t,function(t){return t instanceof s.LayoutView})},normalizeMethods:s.normalizeMethods,mergeOptions:s.mergeOptions,getOption:s.proxyGetOption,bindEntityEvents:s.proxyBindEntityEvents,unbindEntityEvents:s.proxyUnbindEntityEvents}),s.ItemView=s.View.extend({constructor:function(){s.View.apply(this,arguments)},serializeData:function(){if(!this.model&&!this.collection)return{};var t=[this.model||this.collection];return arguments.length&&t.push.apply(t,arguments),this.model?this.serializeModel.apply(this,t):{items:this.serializeCollection.apply(this,t)}},serializeCollection:function(t){return t.toJSON.apply(t,i.rest(arguments))},render:function(){return this._ensureViewIsIntact(),this.triggerMethod("before:render",this),this._renderTemplate(),this.isRendered=!0,this.bindUIElements(),this.triggerMethod("render",this),this},_renderTemplate:function(){var t=this.getTemplate();if(t!==!1){if(!t)throw new s.Error({name:"UndefinedTemplateError",message:"Cannot render the template since it is null or undefined."});var e=this.mixinTemplateHelpers(this.serializeData()),i=s.Renderer.render(t,e,this);return this.attachElContent(i),this}},attachElContent:function(t){return this.$el.html(t),this}}),s.CollectionView=s.View.extend({childViewEventPrefix:"childview",sort:!0,constructor:function(){this.once("render",this._initialEvents),this._initChildViewStorage(),s.View.apply(this,arguments),this.on({"before:show":this._onBeforeShowCalled,show:this._onShowCalled,"before:attach":this._onBeforeAttachCalled,attach:this._onAttachCalled}),this.initRenderBuffer()},initRenderBuffer:function(){this._bufferedChildren=[]},startBuffering:function(){this.initRenderBuffer(),this.isBuffering=!0},endBuffering:function(){var t,e=this._isShown&&s.isNodeAttached(this.el);this.isBuffering=!1,this._isShown&&this._triggerMethodMany(this._bufferedChildren,this,"before:show"),e&&this._triggerBeforeAttach&&(t=this._getNestedViews(),this._triggerMethodMany(t,this,"before:attach")),this.attachBuffer(this,this._createBuffer()),e&&this._triggerAttach&&(t=this._getNestedViews(),this._triggerMethodMany(t,this,"attach")),this._isShown&&this._triggerMethodMany(this._bufferedChildren,this,"show"),this.initRenderBuffer()},_triggerMethodMany:function(t,e,n){var r=i.drop(arguments,3);i.each(t,function(t){s.triggerMethodOn.apply(t,[t,n,t,e].concat(r))})},_initialEvents:function(){this.collection&&(this.listenTo(this.collection,"add",this._onCollectionAdd),this.listenTo(this.collection,"remove",this._onCollectionRemove),this.listenTo(this.collection,"reset",this.render),this.getOption("sort")&&this.listenTo(this.collection,"sort",this._sortViews))},_onCollectionAdd:function(t,e,n){var r;if(r=void 0!==n.at?n.at:i.indexOf(this._filteredSortedModels(),t),this._shouldAddChild(t,r)){this.destroyEmptyView();var s=this.getChildView(t);this.addChild(t,s,r)}},_onCollectionRemove:function(t){var e=this.children.findByModel(t);this.removeChildView(e),this.checkEmpty()},_onBeforeShowCalled:function(){this._triggerBeforeAttach=this._triggerAttach=!1,this.children.each(function(t){s.triggerMethodOn(t,"before:show",t)})},_onShowCalled:function(){this.children.each(function(t){s.triggerMethodOn(t,"show",t)})},_onBeforeAttachCalled:function(){this._triggerBeforeAttach=!0},_onAttachCalled:function(){this._triggerAttach=!0},render:function(){return this._ensureViewIsIntact(),this.triggerMethod("before:render",this),this._renderChildren(),this.isRendered=!0,this.triggerMethod("render",this),this},reorder:function(){var t=this.children,e=this._filteredSortedModels(),n=i.find(e,function(e){return!t.findByModel(e)});if(n)this.render();else{var r=i.map(e,function(e,i){var n=t.findByModel(e);return n._index=i,n.el});this.triggerMethod("before:reorder"),this._appendReorderedChildren(r),this.triggerMethod("reorder")}},resortView:function(){s.getOption(this,"reorderOnSort")?this.reorder():this.render()},_sortViews:function(){var t=this._filteredSortedModels(),e=i.find(t,function(t,e){var i=this.children.findByModel(t);return!i||i._index!==e},this);e&&this.resortView()},_emptyViewIndex:-1,_appendReorderedChildren:function(t){this.$el.append(t)},_renderChildren:function(){this.destroyEmptyView(),this.destroyChildren({checkEmpty:!1}),this.isEmpty(this.collection)?this.showEmptyView():(this.triggerMethod("before:render:collection",this),this.startBuffering(),this.showCollection(),this.endBuffering(),this.triggerMethod("render:collection",this),this.children.isEmpty()&&this.showEmptyView())},showCollection:function(){var t,e=this._filteredSortedModels();i.each(e,function(e,i){t=this.getChildView(e),this.addChild(e,t,i)},this)},_filteredSortedModels:function(){var t,e=this.getViewComparator();return t=e?i.isString(e)||1===e.length?this.collection.sortBy(e,this):i.clone(this.collection.models).sort(i.bind(e,this)):this.collection.models,this.getOption("filter")&&(t=i.filter(t,function(t,e){return this._shouldAddChild(t,e)},this)),t},showEmptyView:function(){var t=this.getEmptyView();if(t&&!this._showingEmptyView){this.triggerMethod("before:render:empty"),this._showingEmptyView=!0;var i=new e.Model;this.addEmptyView(i,t),this.triggerMethod("render:empty")}},destroyEmptyView:function(){this._showingEmptyView&&(this.triggerMethod("before:remove:empty"),this.destroyChildren(),delete this._showingEmptyView,this.triggerMethod("remove:empty"))},getEmptyView:function(){return this.getOption("emptyView")},addEmptyView:function(t,e){var n,r=this._isShown&&!this.isBuffering&&s.isNodeAttached(this.el),o=this.getOption("emptyViewOptions")||this.getOption("childViewOptions");i.isFunction(o)&&(o=o.call(this,t,this._emptyViewIndex));var h=this.buildChildView(t,e,o);h._parent=this,this.proxyChildEvents(h),this._isShown&&s.triggerMethodOn(h,"before:show",h),this.children.add(h),r&&this._triggerBeforeAttach&&(n=[h].concat(h._getNestedViews()),h.once("render",function(){this._triggerMethodMany(n,this,"before:attach")},this)),this.renderChildView(h,this._emptyViewIndex),r&&this._triggerAttach&&(n=[h].concat(h._getNestedViews()),this._triggerMethodMany(n,this,"attach")),this._isShown&&s.triggerMethodOn(h,"show",h)},getChildView:function(){var t=this.getOption("childView");if(!t)throw new s.Error({name:"NoChildViewError",message:'A "childView" must be specified'});return t},addChild:function(t,e,i){var n=this.getOption("childViewOptions");n=s._getValue(n,this,[t,i]);var r=this.buildChildView(t,e,n);return this._updateIndices(r,!0,i),this.triggerMethod("before:add:child",r),this._addChildView(r,i),this.triggerMethod("add:child",r),r._parent=this,r},_updateIndices:function(t,e,i){this.getOption("sort")&&(e&&(t._index=i),this.children.each(function(i){i._index>=t._index&&(i._index+=e?1:-1)}))},_addChildView:function(t,e){var i,n=this._isShown&&!this.isBuffering&&s.isNodeAttached(this.el);this.proxyChildEvents(t),this._isShown&&!this.isBuffering&&s.triggerMethodOn(t,"before:show",t),this.children.add(t),n&&this._triggerBeforeAttach&&(i=[t].concat(t._getNestedViews()),t.once("render",function(){this._triggerMethodMany(i,this,"before:attach")},this)),this.renderChildView(t,e),n&&this._triggerAttach&&(i=[t].concat(t._getNestedViews()),this._triggerMethodMany(i,this,"attach")),this._isShown&&!this.isBuffering&&s.triggerMethodOn(t,"show",t)},renderChildView:function(t,e){return t.render(),this.attachHtml(this,t,e),t},buildChildView:function(t,e,n){var r=i.extend({model:t},n);return new e(r)},removeChildView:function(t){return t&&(this.triggerMethod("before:remove:child",t),t.destroy?t.destroy():t.remove&&t.remove(),delete t._parent,this.stopListening(t),this.children.remove(t),this.triggerMethod("remove:child",t),this._updateIndices(t,!1)),t},isEmpty:function(){return!this.collection||0===this.collection.length},checkEmpty:function(){this.isEmpty(this.collection)&&this.showEmptyView()},attachBuffer:function(t,e){t.$el.append(e)},_createBuffer:function(){var t=document.createDocumentFragment();return i.each(this._bufferedChildren,function(e){t.appendChild(e.el)}),t},attachHtml:function(t,e,i){t.isBuffering?t._bufferedChildren.splice(i,0,e):t._insertBefore(e,i)||t._insertAfter(e)},_insertBefore:function(t,e){var i,n=this.getOption("sort")&&this.children.length-1>e;return n&&(i=this.children.find(function(t){return t._index===e+1})),i?(i.$el.before(t.el),!0):!1},_insertAfter:function(t){this.$el.append(t.el)},_initChildViewStorage:function(){this.children=new e.ChildViewContainer},destroy:function(){return this.isDestroyed?this:(this.triggerMethod("before:destroy:collection"),this.destroyChildren({checkEmpty:!1}),this.triggerMethod("destroy:collection"),s.View.prototype.destroy.apply(this,arguments))},destroyChildren:function(t){var e=t||{},n=!0,r=this.children.map(i.identity);return i.isUndefined(e.checkEmpty)||(n=e.checkEmpty),this.children.each(this.removeChildView,this),n&&this.checkEmpty(),r},_shouldAddChild:function(t,e){var n=this.getOption("filter");return!i.isFunction(n)||n.call(this,t,e,this.collection)},proxyChildEvents:function(t){var e=this.getOption("childViewEventPrefix");this.listenTo(t,"all",function(){var n=i.toArray(arguments),r=n[0],s=this.normalizeMethods(i.result(this,"childEvents"));n[0]=e+":"+r,n.splice(1,0,t),s!==void 0&&i.isFunction(s[r])&&s[r].apply(this,n.slice(1)),this.triggerMethod.apply(this,n)})},_getImmediateChildren:function(){return i.values(this.children._views)},getViewComparator:function(){return this.getOption("viewComparator")}}),s.CompositeView=s.CollectionView.extend({constructor:function(){s.CollectionView.apply(this,arguments)},_initialEvents:function(){this.collection&&(this.listenTo(this.collection,"add",this._onCollectionAdd),this.listenTo(this.collection,"remove",this._onCollectionRemove),this.listenTo(this.collection,"reset",this._renderChildren),this.getOption("sort")&&this.listenTo(this.collection,"sort",this._sortViews))},getChildView:function(){var t=this.getOption("childView")||this.constructor;return t},serializeData:function(){var t={};return this.model&&(t=i.partial(this.serializeModel,this.model).apply(this,arguments)),t},render:function(){return this._ensureViewIsIntact(),this._isRendering=!0,this.resetChildViewContainer(),this.triggerMethod("before:render",this),this._renderTemplate(),this._renderChildren(),this._isRendering=!1,this.isRendered=!0,this.triggerMethod("render",this),this},_renderChildren:function(){(this.isRendered||this._isRendering)&&s.CollectionView.prototype._renderChildren.call(this)},_renderTemplate:function(){var t={};t=this.serializeData(),t=this.mixinTemplateHelpers(t),this.triggerMethod("before:render:template");var e=this.getTemplate(),i=s.Renderer.render(e,t,this);this.attachElContent(i),this.bindUIElements(),this.triggerMethod("render:template")},attachElContent:function(t){return this.$el.html(t),this},attachBuffer:function(t,e){var i=this.getChildViewContainer(t);i.append(e)},_insertAfter:function(t){var e=this.getChildViewContainer(this,t);e.append(t.el)},_appendReorderedChildren:function(t){var e=this.getChildViewContainer(this);e.append(t)},getChildViewContainer:function(t){if(t.$childViewContainer)return t.$childViewContainer;var e,i=s.getOption(t,"childViewContainer");if(i){var n=s._getValue(i,t);if(e="@"===n.charAt(0)&&t.ui?t.ui[n.substr(4)]:t.$(n),0>=e.length)throw new s.Error({name:"ChildViewContainerMissingError",message:'The specified "childViewContainer" was not found: '+t.childViewContainer})}else e=t.$el;return t.$childViewContainer=e,e},resetChildViewContainer:function(){this.$childViewContainer&&(this.$childViewContainer=void 0)}}),s.LayoutView=s.ItemView.extend({regionClass:s.Region,options:{destroyImmediate:!1},childViewEventPrefix:"childview",constructor:function(t){t=t||{},this._firstRender=!0,this._initializeRegions(t),s.ItemView.call(this,t)},render:function(){return this._ensureViewIsIntact(),this._firstRender?this._firstRender=!1:this._reInitializeRegions(),s.ItemView.prototype.render.apply(this,arguments)},destroy:function(){return this.isDestroyed?this:(this.getOption("destroyImmediate")===!0&&this.$el.remove(),this.regionManager.destroy(),s.ItemView.prototype.destroy.apply(this,arguments))},showChildView:function(t,e){return this.getRegion(t).show(e)},getChildView:function(t){return this.getRegion(t).currentView},addRegion:function(t,e){var i={};return i[t]=e,this._buildRegions(i)[t]},addRegions:function(t){return this.regions=i.extend({},this.regions,t),this._buildRegions(t)},removeRegion:function(t){return delete this.regions[t],this.regionManager.removeRegion(t)},getRegion:function(t){return this.regionManager.get(t)},getRegions:function(){return this.regionManager.getRegions()},_buildRegions:function(t){var e={regionClass:this.getOption("regionClass"),parentEl:i.partial(i.result,this,"el")};return this.regionManager.addRegions(t,e)},_initializeRegions:function(t){var e;this._initRegionManager(),e=s._getValue(this.regions,this,[t])||{};var n=this.getOption.call(t,"regions");n=s._getValue(n,this,[t]),i.extend(e,n),e=this.normalizeUIValues(e,["selector","el"]),this.addRegions(e)},_reInitializeRegions:function(){this.regionManager.invoke("reset")},getRegionManager:function(){return new s.RegionManager},_initRegionManager:function(){this.regionManager=this.getRegionManager(),this.regionManager._parent=this,this.listenTo(this.regionManager,"before:add:region",function(t){this.triggerMethod("before:add:region",t)}),this.listenTo(this.regionManager,"add:region",function(t,e){this[t]=e,this.triggerMethod("add:region",t,e)}),this.listenTo(this.regionManager,"before:remove:region",function(t){this.triggerMethod("before:remove:region",t)}),this.listenTo(this.regionManager,"remove:region",function(t,e){delete this[t],this.triggerMethod("remove:region",t,e)})},_getImmediateChildren:function(){return i.chain(this.regionManager.getRegions()).pluck("currentView").compact().value()}}),s.Behavior=s.Object.extend({constructor:function(t,e){this.view=e,this.defaults=i.result(this,"defaults")||{},this.options=i.extend({},this.defaults,t),this.ui=i.extend({},i.result(e,"ui"),i.result(this,"ui")),s.Object.apply(this,arguments)},$:function(){return this.view.$.apply(this.view,arguments)},destroy:function(){return this.stopListening(),this},proxyViewProperties:function(t){this.$el=t.$el,this.el=t.el}}),s.Behaviors=function(t,e){function i(t,n){return e.isObject(t.behaviors)?(n=i.parseBehaviors(t,n||e.result(t,"behaviors")),i.wrap(t,n,e.keys(o)),n):{}}function n(t,e){this._view=t,this._behaviors=e,this._triggers={}}function r(t){return t._uiBindings||t.ui}var s=/^(\S+)\s*(.*)$/,o={behaviorTriggers:function(t,e){var i=new n(this,e);return i.buildBehaviorTriggers()},behaviorEvents:function(i,n){var o={};return e.each(n,function(i,n){var h={},a=e.clone(e.result(i,"events"))||{};a=t.normalizeUIKeys(a,r(i));var d=0;e.each(a,function(t,r){var o=r.match(s),a=o[1]+"."+[this.cid,n,d++," "].join(""),l=o[2],c=a+l,u=e.isFunction(t)?t:i[t];h[c]=e.bind(u,i)},this),o=e.extend(o,h)},this),o}};return e.extend(i,{behaviorsLookup:function(){throw new t.Error({message:"You must define where your behaviors are stored.",url:"marionette.behaviors.html#behaviorslookup"})},getBehaviorClass:function(e,n){return e.behaviorClass?e.behaviorClass:t._getValue(i.behaviorsLookup,this,[e,n])[n]},parseBehaviors:function(t,n){return e.chain(n).map(function(n,r){var s=i.getBehaviorClass(n,r),o=new s(n,t),h=i.parseBehaviors(t,e.result(o,"behaviors"));return[o].concat(h)}).flatten().value()},wrap:function(t,i,n){e.each(n,function(n){t[n]=e.partial(o[n],t[n],i)})}}),e.extend(n.prototype,{buildBehaviorTriggers:function(){return e.each(this._behaviors,this._buildTriggerHandlersForBehavior,this),this._triggers},_buildTriggerHandlersForBehavior:function(i,n){var s=e.clone(e.result(i,"triggers"))||{};s=t.normalizeUIKeys(s,r(i)),e.each(s,e.bind(this._setHandlerForBehavior,this,i,n))},_setHandlerForBehavior:function(t,e,i,n){var r=n.replace(/^\S+/,function(t){return t+"."+"behaviortriggers"+e});this._triggers[r]=this._view._buildViewTrigger(i)}}),i}(s,i),s.AppRouter=e.Router.extend({constructor:function(t){this.options=t||{},e.Router.apply(this,arguments);var i=this.getOption("appRoutes"),n=this._getController();this.processAppRoutes(n,i),this.on("route",this._processOnRoute,this)},appRoute:function(t,e){var i=this._getController();this._addAppRoute(i,t,e)},_processOnRoute:function(t,e){if(i.isFunction(this.onRoute)){var n=i.invert(this.getOption("appRoutes"))[t];this.onRoute(t,n,e)}},processAppRoutes:function(t,e){if(e){var n=i.keys(e).reverse();i.each(n,function(i){this._addAppRoute(t,i,e[i])},this)}},_getController:function(){return this.getOption("controller")},_addAppRoute:function(t,e,n){var r=t[n];if(!r)throw new s.Error('Method "'+n+'" was not found on the controller');this.route(e,n,i.bind(r,t))},mergeOptions:s.mergeOptions,getOption:s.proxyGetOption,triggerMethod:s.triggerMethod,bindEntityEvents:s.proxyBindEntityEvents,unbindEntityEvents:s.proxyUnbindEntityEvents}),s.Application=s.Object.extend({constructor:function(t){this._initializeRegions(t),this._initCallbacks=new s.Callbacks,this.submodules={},i.extend(this,t),this._initChannel(),s.Object.call(this,t)},execute:function(){this.commands.execute.apply(this.commands,arguments)},request:function(){return this.reqres.request.apply(this.reqres,arguments)},addInitializer:function(t){this._initCallbacks.add(t)},start:function(t){this.triggerMethod("before:start",t),this._initCallbacks.run(t,this),this.triggerMethod("start",t)},addRegions:function(t){return this._regionManager.addRegions(t)},emptyRegions:function(){return this._regionManager.emptyRegions()},removeRegion:function(t){return this._regionManager.removeRegion(t)},getRegion:function(t){return this._regionManager.get(t)},getRegions:function(){return this._regionManager.getRegions()},module:function(t,e){var n=s.Module.getClass(e),r=i.toArray(arguments);return r.unshift(this),n.create.apply(n,r)},getRegionManager:function(){return new s.RegionManager},_initializeRegions:function(t){var e=i.isFunction(this.regions)?this.regions(t):this.regions||{};this._initRegionManager();var n=s.getOption(t,"regions");return i.isFunction(n)&&(n=n.call(this,t)),i.extend(e,n),this.addRegions(e),this},_initRegionManager:function(){this._regionManager=this.getRegionManager(),this._regionManager._parent=this,this.listenTo(this._regionManager,"before:add:region",function(){s._triggerMethod(this,"before:add:region",arguments)}),this.listenTo(this._regionManager,"add:region",function(t,e){this[t]=e,s._triggerMethod(this,"add:region",arguments)}),this.listenTo(this._regionManager,"before:remove:region",function(){s._triggerMethod(this,"before:remove:region",arguments)}),this.listenTo(this._regionManager,"remove:region",function(t){delete this[t],s._triggerMethod(this,"remove:region",arguments)})},_initChannel:function(){this.channelName=i.result(this,"channelName")||"global",this.channel=i.result(this,"channel")||e.Wreqr.radio.channel(this.channelName),this.vent=i.result(this,"vent")||this.channel.vent,this.commands=i.result(this,"commands")||this.channel.commands,this.reqres=i.result(this,"reqres")||this.channel.reqres}}),s.Module=function(t,e,n){this.moduleName=t,this.options=i.extend({},this.options,n),this.initialize=n.initialize||this.initialize,this.submodules={},this._setupInitializersAndFinalizers(),this.app=e,i.isFunction(this.initialize)&&this.initialize(t,e,this.options)},s.Module.extend=s.extend,i.extend(s.Module.prototype,e.Events,{startWithParent:!0,initialize:function(){},addInitializer:function(t){this._initializerCallbacks.add(t)},addFinalizer:function(t){this._finalizerCallbacks.add(t)},start:function(t){this._isInitialized||(i.each(this.submodules,function(e){e.startWithParent&&e.start(t)}),this.triggerMethod("before:start",t),this._initializerCallbacks.run(t,this),this._isInitialized=!0,this.triggerMethod("start",t))},stop:function(){this._isInitialized&&(this._isInitialized=!1,this.triggerMethod("before:stop"),i.invoke(this.submodules,"stop"),this._finalizerCallbacks.run(void 0,this),this._initializerCallbacks.reset(),this._finalizerCallbacks.reset(),this.triggerMethod("stop"))},addDefinition:function(t,e){this._runModuleDefinition(t,e)},_runModuleDefinition:function(t,n){if(t){var r=i.flatten([this,this.app,e,s,e.$,i,n]);t.apply(this,r)}},_setupInitializersAndFinalizers:function(){this._initializerCallbacks=new s.Callbacks,this._finalizerCallbacks=new s.Callbacks},triggerMethod:s.triggerMethod}),i.extend(s.Module,{create:function(t,e,n){var r=t,s=i.drop(arguments,3);e=e.split(".");var o=e.length,h=[];return h[o-1]=n,i.each(e,function(e,i){var o=r;r=this._getModule(o,e,t,n),this._addModuleDefinition(o,r,h[i],s)},this),r},_getModule:function(t,e,n,r){var s=i.extend({},r),o=this.getClass(r),h=t[e];return h||(h=new o(e,n,s),t[e]=h,t.submodules[e]=h),h},getClass:function(t){var e=s.Module;return t?t.prototype instanceof e?t:t.moduleClass||e:e},_addModuleDefinition:function(t,e,i,n){var r=this._getDefine(i),s=this._getStartWithParent(i,e);r&&e.addDefinition(r,n),this._addStartWithParent(t,e,s)},_getStartWithParent:function(t,e){var n;return i.isFunction(t)&&t.prototype instanceof s.Module?(n=e.constructor.prototype.startWithParent,i.isUndefined(n)?!0:n):i.isObject(t)?(n=t.startWithParent,i.isUndefined(n)?!0:n):!0},_getDefine:function(t){return!i.isFunction(t)||t.prototype instanceof s.Module?i.isObject(t)?t.define:null:t},_addStartWithParent:function(t,e,i){e.startWithParent=e.startWithParent&&i,e.startWithParent&&!e.startWithParentIsConfigured&&(e.startWithParentIsConfigured=!0,t.addInitializer(function(t){e.startWithParent&&e.start(t)}))}}),s});!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("underscore"),require("backbone")):"function"==typeof define&&define.amd?define(["underscore","backbone"],n):e.Backbone.Radio=n(e._,e.Backbone)}(this,function(e,n){"use strict";function t(e,n,t,r){var s=e[n];return t&&t!==s.callback&&t!==s.callback._callback||r&&r!==s.context?void 0:(delete e[n],!0)}function r(n,r,s,i){n||(n={});for(var a=r?[r]:e.keys(n),u=!1,o=0,c=a.length;c>o;o++)r=a[o],n[r]&&t(n,r,s,i)&&(u=!0);return u}function s(n){return c[n]||(c[n]=e.partial(u.log,n))}function i(n){return e.isFunction(n)?n:function(){return n}}var a=n.Radio,u=n.Radio={};u.VERSION="1.0.1",u.noConflict=function(){return n.Radio=a,this},u.DEBUG=!1,u._debugText=function(e,n,t){return e+(t?" on the "+t+" channel":"")+': "'+n+'"'},u.debugLog=function(e,n,t){u.DEBUG&&console&&console.warn&&console.warn(u._debugText(e,n,t))};var o=/\s+/;u._eventsApi=function(n,t,r,s){if(!r)return!1;var i={};if("object"==typeof r){for(var a in r){var u=n[t].apply(n,[a,r[a]].concat(s));o.test(a)?e.extend(i,u):i[a]=u}return i}if(o.test(r)){for(var c=r.split(o),l=0,h=c.length;h>l;l++)i[c[l]]=n[t].apply(n,[c[l]].concat(s));return i}return!1},u._callHandler=function(e,n,t){var r=t[0],s=t[1],i=t[2];switch(t.length){case 0:return e.call(n);case 1:return e.call(n,r);case 2:return e.call(n,r,s);case 3:return e.call(n,r,s,i);default:return e.apply(n,t)}};var c={};e.extend(u,{log:function(n,t){var r=e.rest(arguments,2);console.log("["+n+'] "'+t+'"',r)},tuneIn:function(e){var n=u.channel(e);return n._tunedIn=!0,n.on("all",s(e)),this},tuneOut:function(e){var n=u.channel(e);return n._tunedIn=!1,n.off("all",s(e)),delete c[e],this}}),u.Requests={request:function(n){var t=e.rest(arguments),r=u._eventsApi(this,"request",n,t);if(r)return r;var s=this.channelName,i=this._requests;if(s&&this._tunedIn&&u.log.apply(this,[s,n].concat(t)),i&&(i[n]||i["default"])){var a=i[n]||i["default"];return t=i[n]?t:arguments,u._callHandler(a.callback,a.context,t)}u.debugLog("An unhandled request was fired",n,s)},reply:function(e,n,t){return u._eventsApi(this,"reply",e,[n,t])?this:(this._requests||(this._requests={}),this._requests[e]&&u.debugLog("A request was overwritten",e,this.channelName),this._requests[e]={callback:i(n),context:t||this},this)},replyOnce:function(n,t,r){if(u._eventsApi(this,"replyOnce",n,[t,r]))return this;var s=this,a=e.once(function(){return s.stopReplying(n),i(t).apply(this,arguments)});return this.reply(n,a,r)},stopReplying:function(e,n,t){return u._eventsApi(this,"stopReplying",e)?this:(e||n||t?r(this._requests,e,n,t)||u.debugLog("Attempted to remove the unregistered request",e,this.channelName):delete this._requests,this)}},u._channels={},u.channel=function(e){if(!e)throw new Error("You must provide a name for the channel.");return u._channels[e]?u._channels[e]:u._channels[e]=new u.Channel(e)},u.Channel=function(e){this.channelName=e},e.extend(u.Channel.prototype,n.Events,u.Requests,{reset:function(){return this.off(),this.stopListening(),this.stopReplying(),this}});var l,h,f=[n.Events,u.Commands,u.Requests];e.each(f,function(n){e.each(n,function(n,t){u[t]=function(n){return h=e.rest(arguments),l=this.channel(n),l[t].apply(l,h)}})}),u.reset=function(n){var t=n?[this._channels[n]]:this._channels;e.invoke(t,"reset")};var p=u;return p});!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Mexp=t()}(this,(function(){"use strict";function e(){return e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},e.apply(this,arguments)}var t,n={0:11,1:0,2:3,3:0,4:0,5:0,6:0,7:11,8:11,9:1,10:10,11:0,12:11,13:0,14:-1};function a(e,t){for(var n=0;n<e.length;n++)e[n]+=t;return e}!function(e){e[e.FUNCTION_WITH_ONE_ARG=0]="FUNCTION_WITH_ONE_ARG",e[e.NUMBER=1]="NUMBER",e[e.BINARY_OPERATOR_HIGH_PRECENDENCE=2]="BINARY_OPERATOR_HIGH_PRECENDENCE",e[e.CONSTANT=3]="CONSTANT",e[e.OPENING_PARENTHESIS=4]="OPENING_PARENTHESIS",e[e.CLOSING_PARENTHESIS=5]="CLOSING_PARENTHESIS",e[e.DECIMAL=6]="DECIMAL",e[e.POSTFIX_FUNCTION_WITH_ONE_ARG=7]="POSTFIX_FUNCTION_WITH_ONE_ARG",e[e.FUNCTION_WITH_N_ARGS=8]="FUNCTION_WITH_N_ARGS",e[e.BINARY_OPERATOR_LOW_PRECENDENCE=9]="BINARY_OPERATOR_LOW_PRECENDENCE",e[e.BINARY_OPERATOR_PERMUTATION=10]="BINARY_OPERATOR_PERMUTATION",e[e.COMMA=11]="COMMA",e[e.EVALUATED_FUNCTION=12]="EVALUATED_FUNCTION",e[e.EVALUATED_FUNCTION_PARAMETER=13]="EVALUATED_FUNCTION_PARAMETER",e[e.SPACE=14]="SPACE"}(t||(t={}));var o={0:!0,1:!0,3:!0,4:!0,6:!0,8:!0,9:!0,12:!0,13:!0,14:!0},h={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0,10:!0,11:!0,12:!0,13:!0},r={0:!0,3:!0,4:!0,8:!0,12:!0,13:!0},u={},s={0:!0,1:!0,3:!0,4:!0,6:!0,8:!0,12:!0,13:!0},p={1:!0},i=[[],["1","2","3","7","8","9","4","5","6","+","-","*","/","(",")","^","!","P","C","e","0",".",",","n"," ","&"],["pi","ln","Pi"],["sin","cos","tan","Del","int","Mod","log","pow"],["asin","acos","atan","cosh","root","tanh","sinh"],["acosh","atanh","asinh","Sigma"]];function l(e,t,n,a){for(var o=0;o<a;o++)if(e[n+o]!==t[o])return!1;return!0}function E(e){for(var a=0;a<e.length;a++){var o=e[a].token.length,h=-1;e[a].type===t.FUNCTION_WITH_N_ARGS&&void 0===e[a].numberOfArguments&&(e[a].numberOfArguments=2),i[o]=i[o]||[];for(var r=0;r<i[o].length;r++)if(e[a].token===i[o][r]){h=N(i[o][r],this.tokens);break}-1===h?(this.tokens.push(e[a]),e[a].precedence=n[e[a].type],i.length<=e[a].token.length&&(i[e[a].token.length]=[]),i[e[a].token.length].push(e[a].token)):(this.tokens[h]=e[a],e[a].precedence=n[e[a].type])}}function N(e,t){for(var n=0;n<t.length;n++)if(t[n].token===e)return n;return-1}var v=function(e,n){var E,v={value:this.math.changeSign,type:t.FUNCTION_WITH_ONE_ARG,precedence:4,show:"-"},f={value:")",show:")",type:t.CLOSING_PARENTHESIS,precedence:0},y={value:"(",type:t.OPENING_PARENTHESIS,precedence:0,show:"("},A=[y],c=[],_=e,O=o,T=0,R=u,I="";void 0!==n&&this.addToken(n);var w=function(e,t){for(var n,a,o,h=[],r=t.length,u=0;u<r;u++)if(!(u<r-1&&" "===t[u]&&" "===t[u+1])){for(n="",a=t.length-u>i.length-2?i.length-1:t.length-u;a>0;a--)if(void 0!==i[a])for(o=0;o<i[a].length;o++)l(t,i[a][o],u,a)&&(n=i[a][o],o=i[a].length,a=0);if(u+=n.length-1,""===n)throw new Error("Can't understand after "+t.slice(u));h.push(e.tokens[N(n,e.tokens)])}return h}(this,_);for(E=0;E<w.length;E++){var P=w[E];if(14!==P.type){var m,M=P.token,g=P.type,C=P.value,d=P.precedence,k=P.show,S=A[A.length-1];for(m=c.length;m--&&0===c[m];)if(-1!==[t.FUNCTION_WITH_ONE_ARG,t.BINARY_OPERATOR_HIGH_PRECENDENCE,t.CONSTANT,t.OPENING_PARENTHESIS,t.CLOSING_PARENTHESIS,t.BINARY_OPERATOR_LOW_PRECENDENCE,t.BINARY_OPERATOR_PERMUTATION,t.COMMA,t.EVALUATED_FUNCTION,t.EVALUATED_FUNCTION_PARAMETER].indexOf(g)){if(!0!==O[g])throw new Error(M+" is not allowed after "+I);A.push(f),O=h,R=s,c.pop()}if(!0!==O[g])throw new Error(M+" is not allowed after "+I);!0===R[g]&&(g=t.BINARY_OPERATOR_HIGH_PRECENDENCE,C=this.math.mul,k="&times;",d=3,E-=1);var U={value:C,type:g,precedence:d,show:k,numberOfArguments:P.numberOfArguments};if(g===t.FUNCTION_WITH_ONE_ARG)O=o,R=u,a(c,2),A.push(U),w[E+1].type!==t.OPENING_PARENTHESIS&&(A.push(y),c.push(2));else if(g===t.NUMBER)S.type===t.NUMBER?(S.value+=C,a(c,1)):A.push(U),O=h,R=r;else if(g===t.BINARY_OPERATOR_HIGH_PRECENDENCE)O=o,R=u,a(c,2),A.push(U);else if(g===t.CONSTANT)A.push(U),O=h,R=s;else if(g===t.OPENING_PARENTHESIS)a(c,1),T++,O=o,R=u,A.push(U);else if(g===t.CLOSING_PARENTHESIS){if(!T)throw new Error("Closing parenthesis are more than opening one, wait What!!!");T--,O=h,R=s,A.push(U),a(c,1)}else if(g===t.DECIMAL){if(S.hasDec)throw new Error("Two decimals are not allowed in one number");S.type!==t.NUMBER&&(S={show:"0",value:0,type:t.NUMBER,precedence:0},A.push(S)),O=p,a(c,1),R=u,S.value+=C,S.hasDec=!0}else g===t.POSTFIX_FUNCTION_WITH_ONE_ARG&&(O=h,R=s,a(c,1),A.push(U));g===t.FUNCTION_WITH_N_ARGS?(O=o,R=u,a(c,P.numberOfArguments+2),A.push(U),w[E+1].type!==t.OPENING_PARENTHESIS&&(A.push(y),c.push(P.numberOfArguments+2))):g===t.BINARY_OPERATOR_LOW_PRECENDENCE?(S.type===t.BINARY_OPERATOR_LOW_PRECENDENCE?S.value===this.math.add?(S.value=C,S.show=k,a(c,1)):S.value===this.math.sub&&"-"===k&&(S.value=this.math.add,S.show="+",a(c,1)):S.type!==t.CLOSING_PARENTHESIS&&S.type!==t.POSTFIX_FUNCTION_WITH_ONE_ARG&&S.type!==t.NUMBER&&S.type!==t.CONSTANT&&S.type!==t.EVALUATED_FUNCTION_PARAMETER?"-"===M&&(O=o,R=u,a(c,1).push(2),A.push(v),A.push(y)):(A.push(U),a(c,2)),O=o,R=u):g===t.BINARY_OPERATOR_PERMUTATION?(O=o,R=u,a(c,2),A.push(U)):g===t.COMMA?(O=o,R=u,A.push(U)):g===t.EVALUATED_FUNCTION?(O=o,R=u,a(c,6),A.push(U),w[E+1].type!==t.OPENING_PARENTHESIS&&(A.push(y),c.push(6))):g===t.EVALUATED_FUNCTION_PARAMETER&&(O=h,R=s,A.push(U)),a(c,-1),I=M}else if(E>0&&E<w.length-1&&1===w[E+1].type&&(1===w[E-1].type||6===w[E-1].type))throw new Error("Unexpected Space")}for(m=c.length;m--;)A.push(f);if(!0!==O[5])throw new Error("complete the expression");for(;T--;)A.push(f);return A.push(f),A};function f(e){for(var t,n,a,o=[],h=-1,r=-1,u=[{value:"(",type:4,precedence:0,show:"("}],s=1;s<e.length;s++)if(1===e[s].type||3===e[s].type||13===e[s].type)1===e[s].type&&(e[s].value=Number(e[s].value)),o.push(e[s]);else if(4===e[s].type)u.push(e[s]);else if(5===e[s].type)for(;4!==(null==(p=n=u.pop())?void 0:p.type);){var p;n&&o.push(n)}else if(11===e[s].type){for(;4!==(null==(i=n=u.pop())?void 0:i.type);){var i;n&&o.push(n)}u.push(n)}else{r=(t=e[s]).precedence,h=(a=u[u.length-1]).precedence;var l="Math.pow"==a.value&&"Math.pow"==t.value;if(r>h)u.push(t);else{for(;h>=r&&!l||l&&r<h;)n=u.pop(),a=u[u.length-1],n&&o.push(n),h=a.precedence,l="Math.pow"==t.value&&"Math.pow"==a.value;u.push(t)}}return o}function y(e,t){(t=t||{}).PI=Math.PI,t.E=Math.E;for(var n,a,o,h=[],r=void 0!==t.n,u=0;u<e.length;u++)if(1===e[u].type)h.push({value:e[u].value,type:1});else if(3===e[u].type)h.push({value:t[e[u].value],type:1});else if(0===e[u].type){var s=h[h.length-1];Array.isArray(s)?s.push(e[u]):s.value=e[u].value(s.value)}else if(7===e[u].type){var p=h[h.length-1];Array.isArray(p)?p.push(e[u]):p.value=e[u].value(p.value)}else if(8===e[u].type){for(var i=[],l=0;l<e[u].numberOfArguments;l++){var E=h.pop();E&&i.push(E.value)}h.push({type:1,value:e[u].value.apply(e[u],i.reverse())})}else if(10===e[u].type)n=h.pop(),a=h.pop(),Array.isArray(a)?((a=a.concat(n)).push(e[u]),h.push(a)):Array.isArray(n)?(n.unshift(a),n.push(e[u]),h.push(n)):h.push({type:1,value:e[u].value(a.value,n.value)});else if(2===e[u].type||9===e[u].type)n=h.pop(),a=h.pop(),Array.isArray(a)?((a=a.concat(n)).push(e[u]),h.push(a)):Array.isArray(n)?(n.unshift(a),n.push(e[u]),h.push(n)):h.push({type:1,value:e[u].value(a.value,n.value)});else if(12===e[u].type){n=h.pop();var N=void 0;N=!Array.isArray(n)&&n?[n]:n||[],a=h.pop(),o=h.pop(),h.push({type:1,value:e[u].value(o.value,a.value,N)})}else 13===e[u].type&&(r?h.push({value:t[e[u].value],type:3}):h.push([e[u]]));if(h.length>1)throw new Error("Uncaught Syntax error");return parseFloat(h[0].value.toFixed(15))}var A=function(){function t(){var t;this.toPostfix=f,this.addToken=E,this.lex=v,this.postfixEval=y,this.math=(t=this,{isDegree:!0,acos:function(e){return t.math.isDegree?180/Math.PI*Math.acos(e):Math.acos(e)},add:function(e,t){return e+t},asin:function(e){return t.math.isDegree?180/Math.PI*Math.asin(e):Math.asin(e)},atan:function(e){return t.math.isDegree?180/Math.PI*Math.atan(e):Math.atan(e)},acosh:function(e){return Math.log(e+Math.sqrt(e*e-1))},asinh:function(e){return Math.log(e+Math.sqrt(e*e+1))},atanh:function(e){return Math.log((1+e)/(1-e))},C:function(e,n){var a=1,o=e-n,h=n;h<o&&(h=o,o=n);for(var r=h+1;r<=e;r++)a*=r;var u=t.math.fact(o);return"NaN"===u?"NaN":a/u},changeSign:function(e){return-e},cos:function(e){return t.math.isDegree&&(e=t.math.toRadian(e)),Math.cos(e)},cosh:function(e){return(Math.pow(Math.E,e)+Math.pow(Math.E,-1*e))/2},div:function(e,t){return e/t},fact:function(e){if(e%1!=0)return"NaN";for(var t=1,n=2;n<=e;n++)t*=n;return t},inverse:function(e){return 1/e},log:function(e){return Math.log(e)/Math.log(10)},mod:function(e,t){return e%t},mul:function(e,t){return e*t},P:function(e,t){for(var n=1,a=Math.floor(e)-Math.floor(t)+1;a<=Math.floor(e);a++)n*=a;return n},Pi:function(e,n,a){for(var o=1,h=e;h<=n;h++)o*=Number(t.postfixEval(a,{n:h}));return o},pow10x:function(e){for(var t=1;e--;)t*=10;return t},sigma:function(e,n,a){for(var o=0,h=e;h<=n;h++)o+=Number(t.postfixEval(a,{n:h}));return o},sin:function(e){return t.math.isDegree&&(e=t.math.toRadian(e)),Math.sin(e)},sinh:function(e){return(Math.pow(Math.E,e)-Math.pow(Math.E,-1*e))/2},sub:function(e,t){return e-t},tan:function(e){return t.math.isDegree&&(e=t.math.toRadian(e)),Math.tan(e)},tanh:function(e){return t.math.sinh(e)/t.math.cosh(e)},toRadian:function(e){return e*Math.PI/180},and:function(e,t){return e&t}}),this.tokens=function(t){return[{token:"sin",show:"sin",type:0,value:t.math.sin},{token:"cos",show:"cos",type:0,value:t.math.cos},{token:"tan",show:"tan",type:0,value:t.math.tan},{token:"pi",show:"&pi;",type:3,value:"PI"},{token:"(",show:"(",type:4,value:"("},{token:")",show:")",type:5,value:")"},{token:"P",show:"P",type:10,value:t.math.P},{token:"C",show:"C",type:10,value:t.math.C},{token:" ",show:" ",type:14,value:" ".anchor},{token:"asin",show:"asin",type:0,value:t.math.asin},{token:"acos",show:"acos",type:0,value:t.math.acos},{token:"atan",show:"atan",type:0,value:t.math.atan},{token:"7",show:"7",type:1,value:"7"},{token:"8",show:"8",type:1,value:"8"},{token:"9",show:"9",type:1,value:"9"},{token:"int",show:"Int",type:0,value:Math.floor},{token:"cosh",show:"cosh",type:0,value:t.math.cosh},{token:"acosh",show:"acosh",type:0,value:t.math.acosh},{token:"ln",show:" ln",type:0,value:Math.log},{token:"^",show:"^",type:10,value:Math.pow},{token:"root",show:"root",type:0,value:Math.sqrt},{token:"4",show:"4",type:1,value:"4"},{token:"5",show:"5",type:1,value:"5"},{token:"6",show:"6",type:1,value:"6"},{token:"/",show:"&divide;",type:2,value:t.math.div},{token:"!",show:"!",type:7,value:t.math.fact},{token:"tanh",show:"tanh",type:0,value:t.math.tanh},{token:"atanh",show:"atanh",type:0,value:t.math.atanh},{token:"Mod",show:" Mod ",type:2,value:t.math.mod},{token:"1",show:"1",type:1,value:"1"},{token:"2",show:"2",type:1,value:"2"},{token:"3",show:"3",type:1,value:"3"},{token:"*",show:"&times;",type:2,value:t.math.mul},{token:"sinh",show:"sinh",type:0,value:t.math.sinh},{token:"asinh",show:"asinh",type:0,value:t.math.asinh},{token:"e",show:"e",type:3,value:"E"},{token:"log",show:" log",type:0,value:t.math.log},{token:"0",show:"0",type:1,value:"0"},{token:".",show:".",type:6,value:"."},{token:"+",show:"+",type:9,value:t.math.add},{token:"-",show:"-",type:9,value:t.math.sub},{token:",",show:",",type:11,value:","},{token:"Sigma",show:"&Sigma;",type:12,value:t.math.sigma},{token:"n",show:"n",type:13,value:"n"},{token:"Pi",show:"&Pi;",type:12,value:t.math.Pi},{token:"pow",show:"pow",type:8,value:Math.pow,numberOfArguments:2},{token:"&",show:"&",type:9,value:t.math.and}].map((function(t){return e({},t,{precedence:n[t.type]})}))}(this)}return t.prototype.eval=function(e,t,n){return this.postfixEval(this.toPostfix(this.lex(e,t)),n)},t}();return A.TOKEN_TYPES=t,A.tokenTypes=t,A}));var nfRadio=Backbone.Radio;nfRadio.channel('form').on('render:view',function(){jQuery('.g-recaptcha').each(function(){var callback=jQuery(this).data('callback');var fieldID=jQuery(this).data('fieldid');if(typeof window[callback]!=='function'){window[callback]=function(response){nfRadio.channel('recaptcha').request('update:response',response,fieldID);};}});});var nfRecaptcha=Marionette.Object.extend({initialize:function(){if(0!=jQuery('.g-recaptcha').length){this.renderCaptcha();}
this.listenTo(nfRadio.channel('form'),'render:view',this.renderCaptcha);this.listenTo(nfRadio.channel('captcha'),'reset',this.renderCaptcha);},renderCaptcha:function(){jQuery('.g-recaptcha:empty').each(function(){var opts={fieldid:jQuery(this).data('fieldid'),size:jQuery(this).data('size'),theme:jQuery(this).data('theme'),sitekey:jQuery(this).data('sitekey'),callback:jQuery(this).data('callback')};var grecaptchaID=grecaptcha.render(jQuery(this)[0],opts);if(opts.size==='invisible'){try{nf_reprocess_recaptcha(grecaptchaID);setInterval(nf_reprocess_recaptcha,110000,grecaptchaID);}catch(e){console.log('Notice: Error trying to execute grecaptcha.');}}});}});var nfRenderRecaptcha=function(){new nfRecaptcha();}
if(typeof nf_reprocess_recaptcha==='undefined'){const nf_reprocess_recaptcha=(grecaptchaID)=>{grecaptcha.execute(grecaptchaID);}}
const nf_check_recaptcha_consent=()=>{let stored_responses=[],services=[];if(!nf_check_data_for_recaptcha_consent()){stored_responses.push(false);services.push("missing_cookie");}
const response={"consent_state":stored_responses,"services":services};nfFrontEnd.nf_consent_status_response=response;let nf_consent_status_extra_check=new CustomEvent('nf_consent_status_check',{detail:response});document.dispatchEvent(nf_consent_status_extra_check);return nfFrontEnd.nf_consent_status_response;}
const nf_check_data_for_recaptcha_consent=()=>{return nf_get_cookie_by_name("_grecaptcha")!=="";}
const nf_get_cookie_by_name=(cname)=>{let name=cname+"=";let decodedCookie=decodeURIComponent(document.cookie);let ca=decodedCookie.split(';');for(let i=0;i<ca.length;i++){let c=ca[i];while(c.charAt(0)==' '){c=c.substring(1);}
if(c.indexOf(name)==0){return c.substring(name.length,c.length);}}
return"";}
const nf_reload_after_cookie_consent=(submitFieldID,layoutView)=>{if(typeof submitFieldID!=="undefined"&&typeof layoutView!=="undefined"){nfRadio.channel('fields').request("remove:error",submitFieldID,"recaptcha-v3-missing");nfRadio.channel('fields').request("remove:error",submitFieldID,"recaptcha-v3-consent");nfRadio.channel('form').trigger('render:view',layoutView);}}
const nf_add_reCaptcha_aria=()=>{const nf_act_on_inserted_node=(mutationList,observer)=>{for(const mutation of mutationList){if(mutation.type==='childList'&&mutation.target.className==="g-recaptcha"){let nf_recaptchaTextarea=document.getElementById("g-recaptcha-response");if(typeof nf_recaptchaTextarea!=="undefined"){nf_recaptchaTextarea.setAttribute("aria-hidden","true");nf_recaptchaTextarea.setAttribute("aria-label","Silent reCaptcha security check");nf_recaptchaTextarea.setAttribute("aria-readonly","true");observer.disconnect();}}}
observer.disconnect();};const nf_forms_listed=document.querySelectorAll(".ninja-forms-form-wrap");if(nf_forms_listed.length>0){let nf_recaptcha_observers=[];nf_forms_listed.forEach((nf_form)=>{nf_recaptcha_observers.push({"class":new MutationObserver(nf_act_on_inserted_node),"element":nf_form});});if(nf_recaptcha_observers.length>0){nf_recaptcha_observers.forEach((object)=>{object.class.observe(object.element,{childList:true,subtree:true});});}}}
const nf_remove_noscript_tags_as_needed=()=>{const noscripts=document.getElementsByClassName('ninja-forms-noscript-message')
for(let i=0;i<noscripts.length;i++){noscripts[i].parentNode.removeChild(noscripts[i])}}
jQuery(document).on('nfFormReady',()=>{nf_remove_noscript_tags_as_needed();nf_add_reCaptcha_aria();});
!function(){var e,t,i;!function(n){var r,o,a,l,s={},d={},c={},f={},u=Object.prototype.hasOwnProperty,h=[].slice,m=/\.js$/;function g(e,t){return u.call(e,t)}function p(e,t){var i,n,r,o,a,l,s,d,f,u,h,g=t&&t.split("/"),p=c.map,v=p&&p["*"]||{};if(e){for(a=(e=e.split("/")).length-1,c.nodeIdCompat&&m.test(e[a])&&(e[a]=e[a].replace(m,"")),"."===e[0].charAt(0)&&g&&(e=g.slice(0,g.length-1).concat(e)),f=0;f<e.length;f++)if("."===(h=e[f]))e.splice(f,1),f-=1;else if(".."===h){if(0===f||1===f&&".."===e[2]||".."===e[f-1])continue;f>0&&(e.splice(f-1,2),f-=2)}e=e.join("/")}if((g||v)&&p){for(f=(i=e.split("/")).length;f>0;f-=1){if(n=i.slice(0,f).join("/"),g)for(u=g.length;u>0;u-=1)if((r=p[g.slice(0,u).join("/")])&&(r=r[n])){o=r,l=f;break}if(o)break;!s&&v&&v[n]&&(s=v[n],d=f)}!o&&s&&(o=s,l=d),o&&(i.splice(0,l,o),e=i.join("/"))}return e}function v(e,t){return function(){var i=h.call(arguments,0);return"string"!=typeof i[0]&&1===i.length&&i.push(null),o.apply(n,i.concat([e,t]))}}function y(e){return function(t){s[e]=t}}function b(e){if(g(d,e)){var t=d[e];delete d[e],f[e]=!0,r.apply(n,t)}if(!g(s,e)&&!g(f,e))throw new Error("No "+e);return s[e]}function R(e){var t,i=e?e.indexOf("!"):-1;return i>-1&&(t=e.substring(0,i),e=e.substring(i+1,e.length)),[t,e]}function _(e){return e?R(e):[]}function w(e){return function(){return c&&c.config&&c.config[e]||{}}}a=function(e,t){var i,n,r=R(e),o=r[0],a=t[1];return e=r[1],o&&(i=b(o=p(o,a))),o?e=i&&i.normalize?i.normalize(e,(n=a,function(e){return p(e,n)})):p(e,a):(o=(r=R(e=p(e,a)))[0],e=r[1],o&&(i=b(o))),{f:o?o+"!"+e:e,n:e,pr:o,p:i}},l={require:function(e){return v(e)},exports:function(e){var t=s[e];return void 0!==t?t:s[e]={}},module:function(e){return{id:e,uri:"",exports:s[e],config:w(e)}}},r=function(e,t,i,r){var o,c,u,h,m,p,R,w=[],F=typeof i;if(p=_(r=r||e),"undefined"===F||"function"===F){for(t=!t.length&&i.length?["require","exports","module"]:t,m=0;m<t.length;m+=1)if("require"===(c=(h=a(t[m],p)).f))w[m]=l.require(e);else if("exports"===c)w[m]=l.exports(e),R=!0;else if("module"===c)o=w[m]=l.module(e);else if(g(s,c)||g(d,c)||g(f,c))w[m]=b(c);else{if(!h.p)throw new Error(e+" missing "+c);h.p.load(h.n,v(r,!0),y(c),{}),w[m]=s[c]}u=i?i.apply(s[e],w):void 0,e&&(o&&o.exports!==n&&o.exports!==s[e]?s[e]=o.exports:u===n&&R||(s[e]=u))}else e&&(s[e]=i)},e=t=o=function(e,t,i,s,d){if("string"==typeof e)return l[e]?l[e](t):b(a(e,_(t)).f);if(!e.splice){if((c=e).deps&&o(c.deps,c.callback),!t)return;t.splice?(e=t,t=i,i=null):e=n}return t=t||function(){},"function"==typeof i&&(i=s,s=d),s?r(n,e,t,i):setTimeout((function(){r(n,e,t,i)}),4),o},o.config=function(e){return o(e)},e._defined=s,(i=function(e,t,i){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(i=t,t=[]),g(s,e)||g(d,e)||(d[e]=[e,t,i])}).amd={jQuery:!0}}(),i("../../../node_modules/almond/almond",(function(){})),i("models/fieldErrorModel",[],(function(){return Backbone.Model.extend({})})),i("models/fieldErrorCollection",["models/fieldErrorModel"],(function(e){return Backbone.Collection.extend({model:e})})),i("models/fieldModel",["models/fieldErrorCollection"],(function(e){return Backbone.Model.extend({defaults:{placeholder:"",value:"",label_pos:"",classes:"ninja-forms-field",reRender:!1,mirror_field:!1,confirm_field:!1,clean:!0,disabled:"",visible:!0,invalid:!1},initialize:function(){var t=this.get("type");this.set("formID",this.collection.options.formModel.get("id")),this.listenTo(nfRadio.channel("form-"+this.get("formID")),"reset",this.resetModel),this.bind("change",this.changeModel,this),this.bind("change:value",this.changeValue,this),this.set("errors",new e),"listimage"===t&&(this.get=this.listimageGet,this.set=this.listimageSet),nfRadio.channel("fields").trigger("init:model",this),nfRadio.channel(this.get("type")).trigger("init:model",this),nfRadio.channel("fields-"+this.get("type")).trigger("init:model",this),void 0!==this.get("parentType")&&nfRadio.channel(this.get("parentType")).trigger("init:model",this),this.listenTo(nfRadio.channel("form-"+this.get("formID")),"loaded",this.formLoaded),this.listenTo(nfRadio.channel("form-"+this.get("formID")),"before:submit",this.beforeSubmit)},listimageGet:function(e){return"options"===e&&(e="image_options"),Backbone.Model.prototype.get.call(this,e)},listimageSet:function(e,t){return"options"===e&&(e="image_options"),Backbone.Model.prototype.set.call(this,e,t)},changeModel:function(){nfRadio.channel("field-"+this.get("id")).trigger("change:model",this),nfRadio.channel(this.get("type")).trigger("change:model",this),nfRadio.channel("fields").trigger("change:model",this)},changeValue:function(){nfRadio.channel("field-"+this.get("id")).trigger("change:modelValue",this),nfRadio.channel(this.get("type")).trigger("change:modelValue",this),nfRadio.channel("fields").trigger("change:modelValue",this)},addWrapperClass:function(e){this.set("addWrapperClass",e)},removeWrapperClass:function(e){this.set("removeWrapperClass",e)},setInvalid:function(e){this.set("invalid",e)},formLoaded:function(){nfRadio.channel("fields").trigger("formLoaded",this),nfRadio.channel("fields-"+this.get("type")).trigger("formLoaded",this)},beforeSubmit:function(e){nfRadio.channel(this.get("type")).trigger("before:submit",this),nfRadio.channel("fields").trigger("before:submit",this)},getValue:function(){return this.get("value")}})})),i("models/fieldCollection",["models/fieldModel"],(function(e){var t=Backbone.Collection.extend({model:e,comparator:"order",initialize:function(e,t){this.options=t,this.on("reset",(function(e){nfRadio.channel("fields").trigger("reset:collection",e)}),this),nfRadio.channel("fields").reply("get:firstFieldByOrder",this.getFirstFieldByOrder)},validateFields:function(){_.each(this.models,(function(e){if("repeater"===e.get("type")){const t=nfRadio.channel("field-repeater").request("get:repeaterFieldsModelsArrayByForm",e.get("formID"));_.each(t,(function(e){e.set("clean",!1),nfRadio.channel("submit").trigger("validate:field",e)}))}else e.set("clean",!1),nfRadio.channel("submit").trigger("validate:field",e)}),this);var e=nfRadio.channel("form-"+this.models[0].get("formID")).request("get:form");_.size(e.get("fieldErrors"))>0&&nfRadio.channel("submit").request("focus:firstInvalidInput",Object.keys(e.get("fieldErrors")))},showFields:function(){this.invoke("set",{visible:!0}),this.invoke((function(){this.trigger("change:value",this)}))},hideFields:function(){this.invoke("set",{visible:!1}),this.invoke((function(){this.trigger("change:value",this)}))},getFirstFieldByOrder:function(e){let t=0;return _.each(e,(function(e){const i=nfRadio.channel("fields").request("get:field",e).get("order");t=0===t||i<t?e:t})),t}});return t})),i("models/formErrorModel",[],(function(){return Backbone.Model.extend({})})),i("models/formErrorCollection",["models/formErrorModel"],(function(e){return Backbone.Collection.extend({model:e})})),i("models/formModel",["models/fieldCollection","models/formErrorCollection"],(function(e,t){return Backbone.Model.extend({defaults:{beforeForm:"",afterForm:"",beforeFields:"",afterFields:"",wrapper_class:"",element_class:"",hp:"",fieldErrors:{},extra:{}},initialize:function(){_.each(this.get("settings"),(function(e,t){this.set(t,e)}),this),this.set("loadedFields",this.get("fields")),this.set("fields",new e(this.get("fields"),{formModel:this})),this.set("errors",new t),nfRadio.channel("form").trigger("before:filterData",this);var i=this.get("formContentData");i||(i=this.get("fieldContentsData"));var n=nfRadio.channel("formContent").request("get:loadFilters"),r=_.without(n,void 0);i=_.first(r)(i,this,this),this.set("formContentData",i),nfRadio.channel("forms").trigger("init:model",this),nfRadio.channel("form-"+this.get("id")).trigger("init:model",this),nfRadio.channel("form-"+this.get("id")).reply("get:fieldByKey",this.getFieldByKey,this),nfRadio.channel("form-"+this.get("id")).reply("add:error",this.addError,this),nfRadio.channel("form-"+this.get("id")).reply("remove:error",this.removeError,this),nfRadio.channel("form-"+this.get("id")).reply("get:extra",this.getExtra,this),nfRadio.channel("form-"+this.get("id")).reply("add:extra",this.addExtra,this),nfRadio.channel("form-"+this.get("id")).reply("remove:extra",this.removeExtra,this),nfRadio.channel("form-"+this.get("id")).reply("get:form",this.getForm,this),nfRadio.channel("form").trigger("loaded",this),nfRadio.channel("form").trigger("after:loaded",this),nfRadio.channel("form-"+this.get("id")).trigger("loaded",this)},getFieldByKey:function(e){return this.get("fields").findWhere({key:e})},addError:function(e,t){this.get("errors").add({id:e,msg:t}),nfRadio.channel("form-"+this.get("id")).trigger("add:error",this,e,t)},removeError:function(e){var t=this.get("errors"),i=t.get(e);t.remove(i),nfRadio.channel("form-"+this.get("id")).trigger("remove:error",this,e)},getExtra:function(e){var t=this.get("extra");return void 0===e?t:t[e]},addExtra:function(e,t){this.get("extra")[e]=t,nfRadio.channel("form-"+this.get("id")).trigger("add:extra",this,e,t)},removeExtra:function(e){delete this.get("extra")[e],nfRadio.channel("form-"+this.get("id")).trigger("remove:extra",this,e)},getForm:function(){return this}})})),i("models/formCollection",["models/formModel"],(function(e){return Backbone.Collection.extend({model:e})})),i("controllers/formData",["models/formModel","models/formCollection","models/fieldCollection","models/formErrorCollection"],(function(e,t,i,n){return Marionette.Object.extend({initialize:function(){this.collection=new t(nfForms),nfRadio.channel("forms").trigger("loaded",this.collection),nfRadio.channel("app").trigger("forms:loaded",this.collection),nfRadio.channel("app").reply("get:form",this.getForm,this),nfRadio.channel("app").reply("get:forms",this.getForms,this),nfRadio.channel("fields").reply("get:field",this.getField,this)},getForm:function(e){return this.collection.get(e)},getForms:function(){return this.collection},getField:function(e){var t=!1;return _.each(this.collection.models,(function(i){t||(t=i.get("fields").get(e))})),void 0===t&&-1!==String(e).indexOf(".")&&(t=nfRadio.channel("field-repeater").request("get:repeaterFieldById",e)),t}})})),i("controllers/fieldError",["models/fieldErrorModel"],(function(e){return Marionette.Object.extend({initialize:function(){nfRadio.channel("fields").reply("add:error",this.addError),nfRadio.channel("fields").reply("remove:error",this.removeError),nfRadio.channel("fields").reply("get:error",this.getError)},addError:function(e,t,i){var n=nfRadio.channel("fields").request("get:field",e);if(void 0!==n){var r=n.get("errors");r.add({id:t,msg:i}),n.set("errors",r),n.trigger("change:errors",n),n.set("clean",!1),nfRadio.channel("fields").trigger("add:error",n,t,i)}},removeError:function(e,t){var i=nfRadio.channel("fields").request("get:field",e);if(void 0!==i){var n=i.get("errors"),r=n.get(t);void 0!==r&&(n.remove(r),i.set("errors",n),i.trigger("change:errors",i),nfRadio.channel("fields").trigger("remove:error",i,t))}},getError:function(e,t){var i=nfRadio.channel("fields").request("get:field",e).get("errors").get(t);return"undefined"!=i&&i}})})),i("controllers/changeField",[],(function(){return Marionette.Object.extend({initialize:function(){nfRadio.channel("nfAdmin").reply("change:field",this.changeField),this.listenTo(nfRadio.channel("fields"),"blur:field",this.blurField)},changeField:function(e,t){var i=nfRadio.channel(t.get("type")).request("before:updateField",e,t);i=void 0!==(i=void 0!==i?i:nfRadio.channel(t.get("parentType")).request("before:updateField",e,t))?i:jQuery(e).val(),t.set("isUpdated",!1),t.set("clean",!1),nfRadio.channel("field-"+t.get("id")).trigger("change:field",e,t),nfRadio.channel(t.get("type")).trigger("change:field",e,t),nfRadio.channel("fields").trigger("change:field",e,t),nfRadio.channel("nfAdmin").request("update:field",t,i),t.get("repeaterField")&&nfRadio.channel("field-repeater").trigger("set:value")},blurField:function(e,t){t.set("clean",!1)}})})),i("controllers/changeEmail",[],(function(){var e=nfRadio.channel("email"),t=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,i="invalid-email";return Marionette.Object.extend({initialize:function(){this.listenTo(e,"change:modelValue",this.onChangeModelValue),this.listenTo(e,"keyup:field",this.emailKeyup),this.listenTo(e,"blur:field",this.onBlurField)},onChangeModelValue:function(e){var t=e.get("value"),i=e.get("id");this.emailChange(t,i)},onBlurField:function(e,t){var i=jQuery(e).val(),n=t.get("id");this.emailChange(i,n)},emailChange:function(e,n){if(0<e.length)if(t.test(e))nfRadio.channel("fields").request("remove:error",n,i);else{var r=nfRadio.channel("fields").request("get:field",n),o=nfRadio.channel("app").request("get:form",r.get("formID"));nfRadio.channel("fields").request("add:error",n,i,o.get("settings").changeEmailErrorMsg)}else nfRadio.channel("fields").request("remove:error",n,i)},emailKeyup:function(e,n,r){if(9==r)return!1;var o=jQuery(e).val(),a=n.get("id");if(0==o.length)nfRadio.channel("fields").request("remove:error",a,i);else if(t.test(o)||n.get("clean"))t.test(o)&&(nfRadio.channel("fields").request("remove:error",a,i),n.addWrapperClass("nf-pass"),n.set("clean",!1));else{var l=nfRadio.channel("fields").request("get:field",a),s=nfRadio.channel("app").request("get:form",l.get("formID"));nfRadio.channel("fields").request("add:error",a,i,s.get("settings").changeEmailErrorMsg),n.removeWrapperClass("nf-pass")}}})})),i("controllers/changeDate",[],(function(){var e=nfRadio.channel("date"),t="invalid-date";return Marionette.Object.extend({initialize:function(){this.listenTo(e,"change:modelValue",this.onChangeModelValue),this.listenTo(e,"keyup:field",this.dateKeyup),this.listenTo(e,"blur:field",this.onBlurField),this.listenTo(e,"change:extra",this.changeHoursMinutes,this)},onChangeModelValue:function(e){var t=moment.locale();moment.locale("ninja-forms"),this.dateChange(e),moment.locale(t)},onBlurField:function(e,t){var i=moment.locale();moment.locale("ninja-forms"),this.dateChange(t),moment.locale(i)},dateChange:function(e){var i=e.get("id"),n=e.get("value"),r=e.get("date_format");if("time_only"==e.get("date_mode"))return!1;if(0<n.length)if(this.isDateValid(n,r,i))nfRadio.channel("fields").request("remove:error",i,t);else{var o=nfRadio.channel("fields").request("get:field",i),a=nfRadio.channel("app").request("get:form",o.get("formID"));nfRadio.channel("fields").request("add:error",i,t,a.get("settings").changeDateErrorMsg)}else nfRadio.channel("fields").request("remove:error",i,t)},dateKeyup:function(e,i,n){if(9==n)return!1;var r=jQuery(e).val(),o=i.get("id"),a=i.get("date_format"),l=moment.locale();if(moment.locale("ninja-forms"),0==r.length)nfRadio.channel("fields").request("remove:error",o,t);else if(this.isDateValid(r,a,o)||i.get("clean"))this.isDateValid(r,a,o)&&(nfRadio.channel("fields").request("remove:error",o,t),i.addWrapperClass("nf-pass"),i.set("clean",!1));else{var s=nfRadio.channel("fields").request("get:field",o),d=nfRadio.channel("app").request("get:form",s.get("formID"));nfRadio.channel("fields").request("add:error",o,t,d.get("settings").changeDateErrorMsg),i.removeWrapperClass("nf-pass")}moment.locale(l)},changeHoursMinutes:function(e,t){let i=jQuery(e.target).closest(".nf-field-element"),n=jQuery(i).find(".hour").val(),r=jQuery(i).find(".minute").val(),o=jQuery(i).find(".ampm").val();t.set("selected_hour",n),t.set("selected_minute",r),t.set("selected_ampm",o),t.trigger("change:value",t)},isDateValid:function(e,t,i){const n=document.querySelector("[name='nf-field-"+i+"']")._flatpickr.parseDate(e,t);if(!n)return!1;const r=n.getTime();if(isNaN(r))return!1;const o=new Date(r);return document.querySelector("[name='nf-field-"+i+"']")._flatpickr.formatDate(o,t)===e}})})),i("controllers/fieldCheckbox",[],(function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("checkbox"),"init:model",this.registerRenderClasses),nfRadio.channel("checkbox").reply("validate:required",this.validateRequired),nfRadio.channel("checkbox").reply("validate:modelData",this.validateModelData),nfRadio.channel("checkbox").reply("before:updateField",this.beforeUpdateField,this),nfRadio.channel("checkbox").reply("get:calcValue",this.getCalcValue,this)},beforeUpdateField:function(e,t){if(jQuery(e).prop("checked")){var i=1;jQuery(e).addClass("nf-checked"),jQuery(e).closest(".field-wrap").find('label[for="'+jQuery(e).prop("id")+'"]').addClass("nf-checked-label")}else{i=0;jQuery(e).removeClass("nf-checked"),jQuery(e).closest(".field-wrap").find('label[for="'+jQuery(e).prop("id")+'"]').removeClass("nf-checked-label")}return i},validateRequired:function(e,t){return e[0].checked},validateModelData:function(e){return 0!=e.get("value")},getCalcValue:function(e){return 1==e.get("value")?calcValue=e.get("checked_calc_value"):calcValue=e.get("unchecked_calc_value"),calcValue},registerRenderClasses:function(e){"checked"==e.get("default_value")?e.set("value",1):e.set("value",0),e.set("customClasses",this.customClasses),e.set("customLabelClasses",this.customLabelClasses),e.set("maybeChecked",this.maybeChecked)},customClasses:function(e){return 1==this.value||this.clean&&void 0!==this.default_value&&"checked"==this.default_value?e+=" nf-checked":e.replace("nf-checked",""),e},customLabelClasses:function(e){return 1==this.value||this.clean&&void 0!==this.default_value&&"checked"==this.default_value?e+=" nf-checked-label":e.replace("nf-checked-label",""),e},maybeChecked:function(){return 1==this.value||this.clean&&void 0!==this.default_value&&"checked"==this.default_value?" checked":""}})})),i("controllers/fieldCheckboxList",[],(function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("listcheckbox"),"init:model",this.register),this.listenTo(nfRadio.channel("terms"),"init:model",this.register),nfRadio.channel("listcheckbox").reply("before:updateField",this.beforeUpdateField,this),nfRadio.channel("terms").reply("before:updateField",this.beforeUpdateField,this),nfRadio.channel("listcheckbox").reply("get:calcValue",this.getCalcValue,this),nfRadio.channel("terms").reply("get:calcValue",this.getCalcValue,this)},register:function(e){if(e.set("renderOptions",this.renderOptions),e.set("renderOtherText",this.renderOtherText),e.set("selected",[]),0!=e.get("options").length){var t=_.filter(e.get("options"),(function(e){return 1==e.selected}));t=_.map(t,(function(e){return e.value}))}var i=e.get("value");void 0!==i&&Array.isArray(i)?e.set("value",i):void 0!==t&&e.set("value",t)},renderOptions:function(){var e="";if(""==this.value||Array.isArray(this.value)&&0<this.value.length||0<this.value.length)var t=!0;else t=!1;if(_.each(this.options,(function(i,n){Array.isArray(this.value)&&(Array.isArray(this.value[0])&&-1!==_.indexOf(this.value[0],i.value)||_.indexOf(this.value,i.value))&&(t=!0),i.value==this.value&&(t=!0),void 0===i.visible&&(i.visible=!0),i.fieldID=this.id,i.classes=this.classes,i.index=n,i.label=void 0!==nfFrontEnd.filter_esc_status&&"true"===nfFrontEnd.filter_esc_status?_.escape(i.label):i.label;var r=!1;Array.isArray(this.value)&&0<this.value.length?-1===_.indexOf(this.value[0].split(","),i.value)&&-1===_.indexOf(this.value,i.value)||(r=!0):_.isArray(this.value)||i.value!=this.value?1==i.selected&&this.clean&&void 0===this.value&&(r=!0):r=!0,i.selected=r,i.isSelected=r,i.required=this.required,i.maybeFilterHTML=this.maybeFilterHTML;var o=nfRadio.channel("app").request("get:template","#tmpl-nf-field-listcheckbox-option");e+=o(i)}),this),1==this.show_other){"nf-other"==this.value&&(t=!1);var i={fieldID:this.id,classes:this.classes,currentValue:this.value,renderOtherText:this.renderOtherText,valueFound:t},n=nfRadio.channel("app").request("get:template","#tmpl-nf-field-listcheckbox-other");e+=n(i)}return e},renderOtherText:function(){if("nf-other"==this.currentValue||!this.valueFound){"nf-other"==this.currentValue&&(this.currentValue="");var e={fieldID:this.fieldID,classes:this.classes,currentValue:this.currentValue};return nfRadio.channel("app").request("get:template","#tmpl-nf-field-listcheckbox-other-text")(e)}},getCalcValue:function(e){var t=0,i=e.get("options");return 0!=i.length&&_.each(e.get("value"),(function(e){var n=_.find(i,(function(t){return t.value==e}));t=Number(t)+Number(n.calc)})),t},beforeUpdateField:function(e,t){var i=t.get("value")||[];"string"==typeof i&&(i=[i]);var n=jQuery(e).val();if(jQuery(e).prop("checked"))i.push(n),jQuery(e).addClass("nf-checked"),jQuery(e).parent().find('label[for="'+jQuery(e).prop("id")+'"]').addClass("nf-checked-label");else{jQuery(e).removeClass("nf-checked"),jQuery(e).parent().find('label[for="'+jQuery(e).prop("id")+'"]').removeClass("nf-checked-label");var r=i.indexOf(n);if(-1!=r)i.splice(r,1);else if(Array.isArray(i)){var o=void 0!==i[0]?i[0].split(","):[],a=o.indexOf(n);-1!==a&&o.splice(a,1),i=o.join(",")}}return _.clone(i)}})})),i("controllers/fieldImageList",[],(function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("listimage"),"init:model",this.register),nfRadio.channel("listimage").reply("before:updateField",this.beforeUpdateField,this),nfRadio.channel("listimage").reply("get:calcValue",this.getCalcValue,this)},register:function(e){if(e.set("renderOptions",this.renderOptions),e.set("renderOtherText",this.renderOtherText),e.set("selected",[]),0!=e.get("image_options").length){var t=_.filter(e.get("image_options"),(function(e){return 1==e.selected}));t=_.map(t,(function(e){return e.value}))}var i=e.get("value");void 0!==i&&Array.isArray(i)?e.set("value",i):void 0!==t&&e.set("value",t)},renderOptions:function(){var e="";if(""==this.value||Array.isArray(this.value)&&0<this.value.length||0<this.value.length)var t=!0;else t=!1;1===this.allow_multi_select?(this.old_classname="list-checkbox",this.image_type="checkbox"):this.image_type="radio","horizontal"===this.list_orientation?this.flex_direction="row":this.flex_direction="column";var i=this,n=parseInt(this.num_columns)||1,r=1,o=1;if(_.each(this.image_options,(function(a,l){this.show_option_labels?a.label=void 0!==nfFrontEnd.filter_esc_status&&"true"===nfFrontEnd.filter_esc_status?_.escape(a.label):a.label:a.label="",Array.isArray(this.value)&&(Array.isArray(this.value[0])&&-1!==_.indexOf(this.value[0],a.value)||_.indexOf(this.value,a.value))&&(t=!0),a.value==this.value&&(t=!0),void 0===a.visible&&(a.visible=!0),"horizontal"===i.list_orientation&&r<=n&&(a.styles="margin:auto;grid-column: "+r+"; grid-row = "+o,r===n?(r=1,o+=1):r+=1),a.image_type=i.image_type,a.fieldID=this.id,a.classes=this.classes,a.index=l;var s=!1;Array.isArray(this.value)&&0<this.value.length?-1===_.indexOf(this.value[0].split(","),a.value)&&-1===_.indexOf(this.value,a.value)||(s=!0):(_.isArray(this.value)||a.value!=this.value)&&(1!=a.selected||!this.clean||void 0!==this.value&&""!==this.value)||(s=!0),a.selected=s,a.isSelected=s,a.required=this.required,a.maybeFilterHTML=this.maybeFilterHTML;var d=nfRadio.channel("app").request("get:template","#tmpl-nf-field-listimage-option");e+=d(a)}),this),1==this.show_other){"nf-other"==this.value&&(t=!1);var a={fieldID:this.id,classes:this.classes,value:this.value,currentValue:this.value,renderOtherText:this.renderOtherText,valueFound:t},l=nfRadio.channel("app").request("get:template","#tmpl-nf-field-listimage-other");e+=l(a)}return e},renderOtherText:function(){if("nf-other"==this.currentValue||!this.valueFound){"nf-other"==this.currentValue&&(this.currentValue="");var e={fieldID:this.fieldID,classes:this.classes,currentValue:this.currentValue};return nfRadio.channel("app").request("get:template","#tmpl-nf-field-listimage-other-text")(e)}},getCalcValue:function(e){var t=0,i=e.get("options");if(0!=i.length)if(1==parseInt(e.get("allow_multi_select")))_.each(e.get("value"),(function(e){var n=_.find(i,(function(t){return t.value==e}));t+=Number(n.calc)}));else{var n=_.find(i,(function(t){return e.get("value")==t.value}));void 0!==n&&(t=n.calc)}return t},beforeUpdateField:function(e,t){if(1!==t.get("allow_multi_select")){var i=jQuery(e).val(),n=t.get("image_options");_.each(n,(function(e,t){e.value===i?(e.isSelected=!0,e.selected=!0):(e.isSelected=!1,e.selected=!1),e.isSelected?(jQuery("#nf-field-"+e.fieldID+"-"+t).addClass("nf-checked"),jQuery("#nf-label-field-"+e.fieldID+"-"+t).addClass("nf-checked-label")):(e.selected=!1,jQuery("#nf-field-"+e.fieldID+"-"+t).removeClass("nf-checked"),jQuery("#nf-label-field-"+e.fieldID+"-"+t).removeClass("nf-checked-label"))}))}else{"string"==typeof(i=t.get("value")||[])&&(i=[i]);var r=jQuery(e).val();if(jQuery(e).prop("checked"))i.push(r),jQuery(e).addClass("nf-checked"),jQuery(e).parent().find('label[for="'+jQuery(e).prop("id")+'"]').addClass("nf-checked-label");else{jQuery(e).removeClass("nf-checked"),jQuery(e).parent().find('label[for="'+jQuery(e).prop("id")+'"]').removeClass("nf-checked-label");var o=i.indexOf(r);if(-1!=o)i.splice(o,1);else if(Array.isArray(i)){var a=i[0].split(","),l=a.indexOf(r);-1!==l&&a.splice(l,1),i=a.join(",")}}}return _.clone(i)}})})),i("controllers/fieldRadio",[],(function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("listradio"),"change:modelValue",this.changeModelValue),this.listenTo(nfRadio.channel("listradio"),"init:model",this.register),nfRadio.channel("listradio").reply("get:calcValue",this.getCalcValue,this),this.listenTo(nfRadio.channel("listradio"),"change:field",this.updateCheckedClass,this)},register:function(e){if(e.set("renderOptions",this.renderOptions),e.set("renderOtherText",this.renderOtherText),0!=e.get("options").length){var t=_.find(e.get("options"),(function(e){return 1==e.selected}));void 0!==t&&e.set("value",t.value)}},changeModelValue:function(e){1==e.get("show_other")&&e.trigger("reRender")},renderOptions:function(){var e="";if(""==this.value)var t=!0;else t=!1;if(_.each(this.options,(function(i,n){i.value==this.value&&(t=!0),void 0===i.visible&&(i.visible=!0),i.selected=!1,i.fieldID=this.id,i.classes=this.classes,i.currentValue=this.value,i.index=n,i.label=void 0!==nfFrontEnd.filter_esc_status&&"true"===nfFrontEnd.filter_esc_status?_.escape(i.label):i.label,i.required=this.required,this.clean&&1==this.selected||this.value==i.value?i.selected=!0:i.selected=!1,i.maybeFilterHTML=this.maybeFilterHTML;var r=nfRadio.channel("app").request("get:template","#tmpl-nf-field-listradio-option");e+=r(i)}),this),1==this.show_other){"nf-other"==this.value&&(t=!1);var i={fieldID:this.id,classes:this.classes,currentValue:this.value,renderOtherText:this.renderOtherText,valueFound:t},n=nfRadio.channel("app").request("get:template","#tmpl-nf-field-listradio-other");e+=n(i)}return e},renderOtherText:function(){if("nf-other"==this.currentValue||!this.valueFound){"nf-other"==this.currentValue&&(this.currentValue="");var e={fieldID:this.fieldID,classes:this.classes,currentValue:this.currentValue};return nfRadio.channel("app").request("get:template","#tmpl-nf-field-listradio-other-text")(e)}},getCalcValue:function(e){var t=0;if(0!=e.get("options").length){var i=_.find(e.get("options"),(function(t){return e.get("value")==t.value}));void 0!==i&&(t=i.calc)}return t},updateCheckedClass:function(e,t){jQuery('[name="'+jQuery(e).attr("name")+'"]').removeClass("nf-checked"),jQuery(e).closest("ul").find("label").removeClass("nf-checked-label"),jQuery(e).addClass("nf-checked"),jQuery(e).closest("li").find('label[for="'+jQuery(e).prop("id")+'"]').addClass("nf-checked-label")}})})),i("controllers/fieldNumber",[],(function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("number"),"init:model",this.maybeMinDefault),this.listenTo(nfRadio.channel("number"),"keyup:field",this.validateMinMax)},maybeMinDefault:function(e){if(""==e.get("value")&&""==e.get("placeholder")){var t=e.get("num_min");e.set("placeholder",t)}},validateMinMax:function(e,t){var i=jQuery(e),n=parseFloat(i.val()),r=i.attr("min"),o=i.attr("max"),a=parseFloat(i.attr("step"));if(r&&n<r){var l=nfRadio.channel("fields").request("get:field",t.get("id")),s=nfRadio.channel("app").request("get:form",l.get("formID"));nfRadio.channel("fields").request("add:error",t.get("id"),"number-min",s.get("settings").fieldNumberNumMinError)}else nfRadio.channel("fields").request("remove:error",t.get("id"),"number-min");if(o&&n>o){l=nfRadio.channel("fields").request("get:field",t.get("id")),s=nfRadio.channel("app").request("get:form",l.get("formID"));nfRadio.channel("fields").request("add:error",t.get("id"),"number-max",s.get("settings").fieldNumberNumMaxError)}else nfRadio.channel("fields").request("remove:error",t.get("id"),"number-max");var d=Math.round(1e9*parseFloat(n)),c=Math.round(1e9*parseFloat(a));if(a&&n&&0!=d%c){l=nfRadio.channel("fields").request("get:field",t.get("id")),s=nfRadio.channel("app").request("get:form",l.get("formID"));nfRadio.channel("fields").request("add:error",t.get("id"),"number-step",s.get("settings").fieldNumberIncrementBy+a)}else nfRadio.channel("fields").request("remove:error",t.get("id"),"number-step")}})})),i("controllers/mirrorField",[],(function(){var e=nfRadio.channel("fields");return Marionette.Object.extend({listeningModel:"",initialize:function(){this.listenTo(e,"init:model",this.registerMirror)},registerMirror:function(e){if(e.get("mirror_field")){this.listeningModel=e;var t=e.get("mirror_field");this.listenTo(nfRadio.channel("field-"+t),"change:modelValue",this.changeValue)}},changeValue:function(e){this.listeningModel.set("value",e.get("value")),this.listeningModel.trigger("reRender")}})})),i("controllers/confirmField",[],(function(){var e=nfRadio.channel("fields"),t="confirm-mismatch";return Marionette.Object.extend({initialize:function(){this.listenTo(e,"init:model",this.registerConfirm),this.listenTo(e,"keyup:field",this.confirmKeyup)},registerConfirm:function(e){e.get("confirm_field")&&this.listenTo(nfRadio.channel("form"),"loaded",(function(t){this.registerConfirmListeners(e)}))},registerConfirmListeners:function(e){var t=nfRadio.channel("form-"+e.get("formID")).request("get:fieldByKey",e.get("confirm_field"));void 0!==t&&(t.set("confirm_with",e.get("id")),this.listenTo(nfRadio.channel("field-"+t.get("id")),"change:modelValue",this.changeValue),this.listenTo(nfRadio.channel("field-"+e.get("id")),"change:modelValue",this.changeValue))},changeValue:function(i){if(void 0===i.get("confirm_with"))var n=i,r=nfRadio.channel("form-"+i.get("formID")).request("get:fieldByKey",n.get("confirm_field"));else r=i,n=e.request("get:field",r.get("confirm_with"));r.get("id");var o=n.get("id");if(""==n.get("value")||n.get("value")==r.get("value"))nfRadio.channel("fields").request("remove:error",o,t);else{var a=nfRadio.channel("fields").request("get:field",o),l=nfRadio.channel("app").request("get:form",a.get("formID"));nfRadio.channel("fields").request("add:error",o,t,l.get("settings").confirmFieldErrorMsg)}},confirmKeyup:function(e,i,n){var r=jQuery(e).val();if(i.get("confirm_field"))var o=i,a=i.get("id"),l=nfRadio.channel("form-"+i.get("formID")).request("get:fieldByKey",o.get("confirm_field")).get("value"),s=r;else if(i.get("confirm_with"))a=(o=nfRadio.channel("fields").request("get:field",i.get("confirm_with"))).get("id"),l=s=o.get("value");if(void 0!==o)if(""==s)nfRadio.channel("fields").request("remove:error",a,t);else if(r==l)nfRadio.channel("fields").request("remove:error",a,t);else{var d=nfRadio.channel("fields").request("get:field",a),c=nfRadio.channel("app").request("get:form",d.get("formID"));nfRadio.channel("fields").request("add:error",a,t,c.get("settings").confirmFieldErrorMsg)}}})})),i("controllers/updateFieldModel",[],(function(){return Marionette.Object.extend({initialize:function(){nfRadio.channel("nfAdmin").reply("update:field",this.updateField)},updateField:function(e,t){e.get("isUpdated")||(e.set("value",t),e.set("isUpdated",!0),_.isArray(t)&&e.trigger("change:value",e))}})})),i("controllers/submitButton",["controllers/submitButton"],(function(e){return Marionette.Object.extend({bound:{},initialize:function(){this.listenTo(nfRadio.channel("submit"),"init:model",this.registerHandlers)},registerHandlers:function(e){if(void 0!==this.bound[e.get("id")])return!1;this.listenTo(nfRadio.channel("field-"+e.get("id")),"click:field",this.click,this),e.listenTo(nfRadio.channel("form-"+e.get("formID")),"before:submit",this.beforeSubmit,e),e.listenTo(nfRadio.channel("form-"+e.get("formID")),"submit:failed",this.resetLabel,e),e.listenTo(nfRadio.channel("form-"+e.get("formID")),"submit:response",this.resetLabel,e),e.listenTo(nfRadio.channel("form-"+e.get("formID")),"enable:submit",this.maybeEnable,e),e.listenTo(nfRadio.channel("form-"+e.get("formID")),"disable:submit",this.maybeDisable,e),e.listenTo(nfRadio.channel("form-"+e.get("formID")),"processingLabel",this.processingLabel,e),e.listenTo(nfRadio.channel("fields"),"add:error",this.maybeDisable,e),e.listenTo(nfRadio.channel("fields"),"remove:error",this.maybeEnable,e),this.bound[e.get("id")]=!0},click:function(e,t){var i=nfRadio.channel("app").request("get:form",t.get("formID"));_.size(i.get("fieldErrors"))>0&&nfRadio.channel("submit").request("focus:firstInvalidInput",Object.keys(i.get("fieldErrors"))),nfRadio.channel("form-"+t.get("formID")).request("submit",i)},beforeSubmit:function(){this.get("disabled")||(this.set("disabled",!0),nfRadio.channel("form-"+this.get("formID")).trigger("processingLabel",this))},maybeDisable:function(e){void 0!==e&&e.get("formID")!=this.get("formID")||(this.set("disabled",!0),this.trigger("reRender"))},maybeEnable:function(e){if(void 0!==e&&e.get("formID")!=this.get("formID"))return!1;var t=nfRadio.channel("app").request("get:form",this.get("formID"));0==_.size(t.get("fieldErrors"))&&(this.set("disabled",!1),this.trigger("reRender"))},processingLabel:function(){this.set("oldLabel",this.get("label")),this.set("label",this.get("processing_label")),this.set("disabled",!0),this.trigger("reRender")},resetLabel:function(e){void 0!==e.errors&&void 0!==e.errors.nonce&&_.size(e.errors.nonce)>0&&void 0!==e.errors.nonce.new_nonce&&void 0!==e.errors.nonce.nonce_ts||(void 0!==this.get("oldLabel")&&this.set("label",this.get("oldLabel")),this.set("disabled",!1),this.trigger("reRender"))}})})),i("controllers/submitDebug",[],(function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("forms"),"submit:response",this.submitDebug)},submitDebug:function(e,t,i,n){if(void 0!==e.debug){if(void 0!==e.debug.form){var r=document.createElement("span");_.each(e.debug.form,(function(e,t){var i=document.createTextNode(e);r.appendChild(i),r.appendChild(document.createElement("br"))})),jQuery(".nf-debug-msg").html(r)}if(void 0!==e.debug.console){console.log("%c%s","","NINJA SUPPORT"),_.each(e.debug.console,(function(e,t){console.log(e)})),console.log("%c%s","","END NINJA SUPPORT")}}}})})),i("controllers/getFormErrors",[],(function(){nfRadio.channel("fields");return Marionette.Object.extend({initialize:function(e){nfRadio.channel("form").reply("get:errors",this.getFormErrors)},getFormErrors:function(e){var t=nfRadio.channel("app").request("get:form",e),i=!1;return t&&(0!==t.get("errors").length&&_.each(t.get("errors").models,(function(e){(i=i||{})[e.get("id")]=e.get("msg")})),_.each(t.get("fields").models,(function(e){"submit"!=e.get("type")&&e.get("errors").length>0&&((i=i||{})[e.get("id")]=e.get("errors"))}))),i}})})),i("controllers/validateRequired",[],(function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("fields"),"blur:field",this.validateRequired),this.listenTo(nfRadio.channel("fields"),"change:field",this.validateRequired),this.listenTo(nfRadio.channel("fields"),"keyup:field",this.validateKeyup),this.listenTo(nfRadio.channel("fields"),"change:modelValue",this.validateModelData),this.listenTo(nfRadio.channel("submit"),"validate:field",this.validateModelData)},validateKeyup:function(e,t,i){if(1!=t.get("required"))return!1;t.get("clean")||this.validateRequired(e,t)},validateRequired:function(e,t){if(1!=t.get("required")||!t.get("visible"))return!1;var i=jQuery(e).val(),n=nfRadio.channel(t.get("type")).request("validate:required",e,t),r=!0,o=this.getMask(t);if(o&&i===o&&(0<t.get("errors").length||!t.get("clean"))&&(r=!1),String(i).trim()||(r=!1),void 0!==n)var a=n;else a=r;this.maybeError(a,t)},getMask:function(e){var t=e.get("mask");if(void 0!==t){switch(t){case"":break;case"currency":t=nfi18n.currencySymbol;break;case"custom":t=e.get("custom_mask");default:t=(t=(t=t.replace(/9/g,"_")).replace(/a/g,"_")).replace(/\*/g,"_")}return t}},validateModelData:function(e){if(1!=e.get("required")||!e.get("visible")||e.get("clean"))return!1;if(e.get("errors").get("required-error"))return!1;currentValue=e.get("value");var t=!0;String(currentValue).trim()||(t=!1);var i=nfRadio.channel(e.get("type")).request("validate:modelData",e);if(void 0!==i)var n=i;else n=t;this.maybeError(n,e)},maybeError:function(e,t){if(e)nfRadio.channel("fields").request("remove:error",t.get("id"),"required-error");else{var i=nfRadio.channel("form-"+t.get("formID")).request("get:form");void 0!==i&&nfRadio.channel("fields").request("add:error",t.get("id"),"required-error",i.get("settings").validateRequiredField)}}})})),i("controllers/submitError",[],(function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("forms"),"submit:response",this.submitErrors),nfRadio.channel("submit").reply("focus:firstInvalidInput",this.focusFirstInvalidInput)},submitErrors:function(e,t,i,n){if(_.size(e.errors.nonce)>0&&void 0!==e.errors.nonce.new_nonce&&void 0!==e.errors.nonce.nonce_ts){nfFrontEnd.ajaxNonce=e.errors.nonce.new_nonce,nfFrontEnd.nonce_ts=e.errors.nonce.nonce_ts;var r=nfRadio.channel("app").request("get:form",n);nfRadio.channel("form-"+n).request("submit",r)}if(_.size(e.errors.fields)>0&&_.each(e.errors.fields,(function(e,t){"object"==typeof e?nfRadio.channel("fields").request("add:error",t,e.slug,e.message):nfRadio.channel("fields").request("add:error",t,"required-error",e)})),_.size(e.errors.form)>0&&_.each(e.errors.form,(function(e,t){nfRadio.channel("form-"+n).request("remove:error",t),nfRadio.channel("form-"+n).request("add:error",t,e)})),void 0!==e.errors.last&&void 0!==e.errors.last.message){var o="background: rgba( 255, 207, 115, .5 ); color: #FFA700; display: block;";console.log("%c NINJA FORMS SUPPORT: SERVER ERROR",o),console.log(e.errors.last.message),console.log("%c END SERVER ERROR MESSAGE",o)}jQuery("#nf-form-"+n+"-cont .nf-field-container").show()},focusFirstInvalidInput:function(e){const t=nfRadio.channel("fields").request("get:firstFieldByOrder",e);null!==document.getElementById("nf-field-"+t)&&document.getElementById("nf-field-"+t).focus()}})})),i("controllers/actionRedirect",[],(function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("forms"),"submit:response",this.actionRedirect)},actionRedirect:function(e){void 0!==e.data.halt&&void 0!==e.data.halt.redirect&&""!=e.data.halt.redirect&&(window.location=e.data.halt.redirect),0==_.size(e.errors)&&void 0!==e.data.actions&&void 0!==e.data.actions.redirect&&""!=e.data.actions.redirect&&(window.location=e.data.actions.redirect)}})})),i("controllers/actionSuccess",[],(function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("forms"),"submit:response",this.actionSubmit)},actionSubmit:function(e){if(0==_.size(e.errors)&&void 0!==e.data.actions&&void 0!==e.data.actions.success_message&&""!=e.data.actions.success_message){var t=e.data.form_id,i=jQuery("#nf-form-"+t+"-cont .nf-response-msg");const l=e.data.actions.success_message.replace(/(<([^>]+)>)/gi,"");i.attr("tabindex","0"),i.attr("aria-live","assertive"),i.attr("aria-label",l),i.html(e.data.actions.success_message).show(),i.focus();var n=i.offset().top,r=i.offset().top+i.outerHeight(),o=jQuery(window).scrollTop()+jQuery(window).height(),a=jQuery(window).scrollTop();o>r&&a<n||jQuery("html, body").animate({scrollTop:i.offset().top-50},300)}}})})),i("controllers/fieldSelect",[],(function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("fields"),"init:model",(function(e){"list"==e.get("parentType")&&this.register(e)}),this),nfRadio.channel("listselect").reply("get:calcValue",this.getCalcValue,this),nfRadio.channel("listmultiselect").reply("get:calcValue",this.getCalcValue,this)},register:function(e){if(e.set("renderOptions",this.renderOptions),e.set("renderOtherAttributes",this.renderOtherAttributes),0!=e.get("options").length){var t=e.get("value");if("listmultiselect"==e.get("type"))var i=_.filter(e.get("options"),(function(e){return 1==e.selected})),n=i=_.map(i,(function(e){return e.value}));else if("listradio"!==e.get("type")){if(void 0===(i=_.find(e.get("options"),(function(e){return 1==e.selected})))&&(i=_.first(e.get("options"))),void 0!==i&&void 0!==i.value)n=i.value;else if(void 0!==i)n=i.label}void 0!==t&&""!==t&&Array.isArray(t)?e.set("value",t):void 0!==i&&e.set("value",n)}},renderOptions:function(){var e="";return _.each(this.options,(function(t){if(_.isArray(this.value)){if("listmultiselect"===this.type&&0<this.value.length&&-1!=_.indexOf(this.value[0].split(","),t.value))var i=!0;else if(-1!=_.indexOf(this.value,t.value))i=!0}else if(_.isArray(this.value)||t.value!=this.value)if(1==t.selected&&this.clean&&void 0===this.value)i=!0;else i=!1;else var i=!0;void 0===t.visible&&(t.visible=!0),t.selected=i,t.fieldID=this.id,t.classes=this.classes,t.currentValue=this.value,t.label=void 0!==nfFrontEnd.filter_esc_status&&"true"===nfFrontEnd.filter_esc_status?_.escape(t.label):t.label,t.maybeFilterHTML=this.maybeFilterHTML;var n=nfRadio.channel("app").request("get:template","#tmpl-nf-field-listselect-option");e+=n(t)}),this),e},renderOtherAttributes:function(){var e="";"listmultiselect"==this.type&&(e=(e+=" multiple")+' size="'+(this.multi_size||5)+'"');return e},getCalcValue:function(e){var t=0,i=e.get("options");if(0!=i.length)if("listmultiselect"==e.get("type"))_.each(e.get("value"),(function(e){var n=_.find(i,(function(t){return t.value==e}));t+=Number(n.calc)}));else{var n=_.find(i,(function(t){return e.get("value")==t.value}));void 0===n&&(n=e.get("options")[0]),t=n.calc}return t}})})),i("controllers/coreSubmitResponse",[],(function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("forms"),"submit:response",this.actionSubmit)},actionSubmit:function(e){var t=nfRadio.channel("app").request("get:form",e.data.form_id);if(0!=_.size(e.errors))return!1;1==e.data.settings.clear_complete&&(t.get("fields").reset(t.get("loadedFields")),1!=e.data.settings.hide_complete&&nfRadio.channel("captcha").trigger("reset")),1==e.data.settings.hide_complete&&t.trigger("hide")}})})),i("controllers/fieldProduct",[],(function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("product"),"init:model",this.register),nfRadio.channel("product").reply("get:calcValue",this.getCalcValue,this)},register:function(e){e.set("renderProductQuantity",this.renderProductQuantity),e.set("renderProduct",this.renderProduct),e.set("renderOptions",this.renderOptions)},renderProduct:function(){switch(this.product_type){case"user":return nfRadio.channel("app").request("get:template","#tmpl-nf-field-textbox")(this);case"hidden":return nfRadio.channel("app").request("get:template","#tmpl-nf-field-hidden")(this);case"dropdown":return nfRadio.channel("app").request("get:template","#tmpl-nf-product-dropdown")(this);default:return nfRadio.channel("app").request("get:template","#tmpl-nf-product-single")(this)}},renderProductQuantity:function(){if(1==this.product_use_quantity)return nfRadio.channel("app").request("get:template","#tmpl-nf-product-quantity")(this)},renderOptions:function(){var e=this,t="";return _.each(this.options,(function(i){if(1==i.selected)var n=!0;else n=!1;i.selected=n,i.fieldID=e.id,i.classes=e.classes,i.currentValue=e.value;var r=nfRadio.channel("app").request("get:template","#tmpl-nf-product-"+e.product_type+"-option");t+=r(i)})),t},getCalcValue:function(e){return e.get("product_price")*e.get("value")}})})),i("controllers/fieldTotal",[],(function(){return Marionette.Object.extend({totalModel:{},productTotals:{},initialize:function(){this.listenTo(nfRadio.channel("total"),"init:model",this.register),this.listenTo(nfRadio.channel("shipping"),"init:model",this.registerShipping)},register:function(e){this.totalModel=e;var t=e.get("formID");this.listenTo(nfRadio.channel("form-"+t),"loaded",this.onFormLoaded),this.listenTo(nfRadio.channel("product"),"change:modelValue",this.onChangeProduct),this.listenTo(nfRadio.channel("quantity"),"change:modelValue",this.onChangeQuantity)},registerShipping:function(e){this.shippingCost=e.get("shipping_cost")},onFormLoaded:function(e){var t=e.get("fields").models,i={},n={};for(var r in t){var o=t[r],a=o.get("id");if("product"==o.get("type"))i[a]=o;else if("quantity"==o.get("type")){n[l=o.get("product_assignment")]=o}}for(var l in i){var s=i[l],d=Number(s.get("product_price"));n[l]?d*=n[l].get("value"):1==s.get("product_use_quantity")&&(d*=s.get("value")),this.productTotals[l]=d}this.updateTotal()},onChangeProduct:function(e){var t=e.get("id"),i=Number(e.get("product_price")),n=Number(e.get("value"))*i;this.productTotals[t]=n,this.updateTotal()},onChangeQuantity:function(e){var t=e.get("product_assignment"),i=nfRadio.channel("fields").request("get:field",t),n=Number(i.get("product_price")),r=Number(e.get("value"))*n;this.productTotals[t]=r,this.updateTotal()},updateTotal:function(){var e=0;for(var t in this.productTotals)e+=Number(this.productTotals[t]);e&&this.shippingCost&&(e+=Number(this.shippingCost)),this.totalModel.set("value",e.toFixed(2)),this.totalModel.trigger("reRender")}})})),i("controllers/fieldQuantity",[],(function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("quantity"),"init:model",this.registerQuantity)},registerQuantity:function(e){var t=e.get("product_assignment"),i=nfRadio.channel("fields").request("get:field",t);i&&i.set("product_use_quantity",0)}})})),i("models/calcModel",[],(function(){return Backbone.Model.extend({initialize:function(){this.set("formID",this.collection.options.formModel.get("id")),this.set("fields",{}),nfRadio.channel("calc").trigger("init:model",this),this.on("change:value",this.changeValue,this)},changeField:function(e){nfRadio.channel("calc").trigger("change:field",this,e)},changeCalc:function(e){nfRadio.channel("calc").trigger("change:calc",this,e)},changeValue:function(){nfRadio.channel("calc").trigger("change:value",this)}})})),i("models/calcCollection",["models/calcModel"],(function(e){return Backbone.Collection.extend({model:e,comparator:"order",initialize:function(e,t){this.options=t,_.each(e,(function(e){void 0!==e.dec&&(""===e.dec.toString().trim()&&(e.dec=2),e.dec=parseInt(e.dec))})),nfRadio.channel("form-"+t.formModel.get("id")).reply("get:calc",this.getCalc,this)},getCalc:function(e){return this.findWhere({name:e})}})})),i("controllers/calculations",["models/calcCollection"],(function(e){return Marionette.Object.extend({initialize:function(){this.calcs={},this.displayFields={},this.listenTo(nfRadio.channel("form"),"loaded",this.registerCalcs),this.listenTo(nfRadio.channel("fields"),"reset:collection",this.resetCalcs),this.listenTo(nfRadio.channel("calc"),"change:field",this.changeField),this.listenTo(nfRadio.channel("calc"),"change:calc",this.changeCalc);var e=this;_.each(nfFrontEnd.use_merge_tags.calculations,(function(t){e.listenTo(nfRadio.channel("fields-"+t),"init:model",e.initDisplayField)})),this.listenTo(nfRadio.channel("calc"),"change:value",this.updateDisplayFields),this.init={}},resetCalcs:function(e){void 0!==e.options.formModel&&this.registerCalcs(e.options.formModel)},registerCalcs:function(t){var i=new e(t.get("settings").calculations,{formModel:t});this.calcs[t.get("id")]=i;var n=this;_.each(i.models,(function(e){n.init[e.get("name")]=!0,n.setupCalc(e)}))},setupCalc:function(e){var t=this,i=e.get("eq"),n=i,r=(e.get("name"),i.match(new RegExp(/{field:(.*?)}/g)));r&&(r=r.map((function(i){var r=i.replace(":calc}","").replace("}","").replace("{field:","");if(fieldModel=nfRadio.channel("form-"+e.get("formID")).request("get:fieldByKey",r),"undefined"!=typeof fieldModel){fieldModel.set("clean",!1),fieldModel.on("change:value",e.changeField,e);var o=t.getCalcValue(fieldModel);t.updateCalcFields(e,r,o),n=t.replaceKey("field",r,o,n)}})));var o=i.match(new RegExp(/{calc:(.*?)}/g));o&&(o=o.map((function(i){var r=i.replace("}","").replace("{calc:",""),o=e.collection.findWhere({name:r});if(void 0!==o){o.on("change:value",e.changeCalc,e);var a=o.get("value");n=t.replaceKey("calc",r,a,n)}}))),n=(n=n.replace(/{([a-zA-Z0-9]|:|_|-)*}/g,0)).replace(/\r?\n|\r/g,"");try{this.debug("Calculation Decoder "+n+" -> "+this.localeDecodeEquation(n)+" (Setup)");const t=new Mexp;e.set("value",Number(t.eval(this.localeDecodeEquation(n))).toFixed(e.get("dec")))}catch(e){console.log(e)}"NaN"===e.get("value")&&e.set("value","0")},updateCalcFields:function(e,t,i){var n=e.get("fields");n[t]=i,e.set("fields",n)},getCalcValue:function(e){var t=nfRadio.channel(e.get("type")).request("get:calcValue",e),i=e.get("value");void 0!==t&&(t||0===t)&&(i=t);var n=new r(nfi18n.siteLocale,nfi18n.thousands_sep,nfi18n.decimal_point),o=n.numberDecoder(i),a=n.numberEncoder(i);return t=void 0!==o&&jQuery.isNumeric(o)?a:0,e.get("visible")||(t=0),t},replaceKey:function(e,t,i,n){n=n||calcModel.get("eq"),tag="{"+e+":"+t+"}";var r=new RegExp(tag,"g");calcTag="{"+e+":"+t+":calc}";var o=new RegExp(calcTag,"g");return n=(n=n.replace(r,i)).replace(o,i)},replaceAllKeys:function(e){var t=e.get("eq"),i=this;_.each(e.get("fields"),(function(e,n){t=i.replaceKey("field",n,e,t)}));var n=t.match(new RegExp(/{calc:(.*?)}/g));return n&&_.each(n,(function(i){var n=i.replace("}","").replace("{calc:",""),r=e.collection.findWhere({name:n});if(void 0!==r){var o=new RegExp(i,"g");t=t.replace(o,r.get("value"))}})),t},changeField:function(e,t){var i=t.get("key"),n=this.getCalcValue(t);this.updateCalcFields(e,i,n);var r=this.replaceAllKeys(e);r=(r=r.replace(/{([a-zA-Z0-9]|:|_|-)*}/g,"0")).replace(/\r?\n|\r/g,"");try{this.debug("Calculation Decoder "+r+" -> "+this.localeDecodeEquation(r)+" (Change Field)");const t=new Mexp;e.set("value",Number(t.eval(this.localeDecodeEquation(r))).toFixed(e.get("dec")))}catch(e){this.debug()&&console.log(e)}"NaN"===e.get("value")&&e.set("value","0")},initDisplayField:function(e){if(e.get("default")&&"string"==typeof e.get("default")){var t=e.get("default").match(new RegExp(/{calc:(.*?)}/g));t&&_.each(t,(function(t){t=t.replace("{calc:","").replace("}","").replace(":2",""),this.displayFields[t]=this.displayFields[t]||[],this.displayFields[t].push(e)}),this)}},updateDisplayFields:function(e){var t=this;void 0!==this.displayFields[e.get("name")]&&_.each(this.displayFields[e.get("name")],(function(i){var n="",r=(n="html"===i.get("type")?i.get("value"):i.get("default")).match(new RegExp(/<span data-key="calc:(.*?)<\/span>/g));_.each(r,(function(e){var t="{"+e.replace('<span data-key="',"").replace(/">(.*?)<\/span>/,"")+"}";n=n.replace(e,t)}));var o=n.match(new RegExp(/{calc:(.*?)}/g));_.each(o,(function(e){var r=e.replace("}","").replace("{calc:","").replace(":2",""),o=t.calcs[i.get("formID")].findWhere({name:r}),a=new RegExp(e,"g"),l=o.get("value");void 0!==l&&(l=t.applyLocaleFormatting(l,o)),n="html"===i.get("type")?n.replace(a,'<span data-key="calc:'+r+'">'+l+"</span>"):l})),i.set("value",n),t.init[e.get("name")]||i.trigger("reRender"),t.init[e.get("name")]=!1}))},getCalc:function(e,t){return this.calcs[t].findWhere({name:e})},changeCalc:function(e,t){var i=this.replaceAllKeys(e);i=(i=i.replace("[","").replace("]","")).replace(/\r?\n|\r/g,"");try{this.debug("Calculation Decoder "+i+" -> "+this.localeDecodeEquation(i)+" (Change Calc)");const t=new Mexp;e.set("value",Number(t.eval(this.localeDecodeEquation(i))).toFixed(e.get("dec")))}catch(e){console.log(e)}"NaN"===e.get("value")&&e.set("value","0")},applyLocaleFormatting:function(e,t){return new r(nfi18n.siteLocale,nfi18n.thousands_sep,nfi18n.decimal_point).numberEncoder(e,t.get("dec"))},localeDecodeEquation:function(e){var t="",i="",n=/[0-9.,]/,o=new r(nfi18n.siteLocale,nfi18n.thousands_sep,nfi18n.decimal_point);return(e=(e=e.replace(/\s/g,"")).replace(/&nbsp;/g,"")).split("").forEach((function(e){n.test(e)?i+=e:(0<i.length&&(t+=o.numberDecoder(i),i=""),t+=e)})),0<i.length&&(t+=o.numberDecoder(i)),t},debug:function(e){window.nfCalculationsDebug&&console.log(e)}})})),i("controllers/dateBackwardsCompat",[],(function(){return Marionette.Object.extend({initialize:function(){this.listenTo(Backbone.Radio.channel("pikaday-bc"),"init",this.dateBackwardsCompat)},dateBackwardsCompat:function(e,t){if(e.pikaday={},e.pikaday._o={},nfRadio.channel("pikaday").trigger("init",e,t),void 0!==e.pikaday._o.disableDayFn&&e.set("disable",[e.pikaday._o.disableDayFn]),void 0!==e.pikaday._o.i18n||void 0!==e.pikaday._o.firstDay){let t=e.config.locale;void 0!==e.pikaday._o.firstDay&&(t.firstDayOfWeek=e.pikaday._o.firstDay),void 0!==e.pikaday._o.i18n&&(void 0!==e.pikaday._o.i18n.weekdays&&(t.weekdays.longhand=e.pikaday._o.i18n.weekdays),void 0!==e.pikaday._o.i18n.weekdaysShort&&(t.weekdays.shorthand=e.pikaday._o.i18n.weekdaysShort),void 0!==e.pikaday._o.i18n.months&&jQuery(".flatpickr-monthDropdown-months > option").each((function(){this.text=e.pikaday._o.i18n.months[this.value]}))),e.set("locale",t)}Object.keys(e.pikaday._o).length>0&&(console.log("%cDeprecated Ninja Forms Pikaday custom code detected.","color: Red; font-size: large"),console.log("You are using deprecated Ninja Forms Pikaday custom code. Support for this custom code will be removed in a future version of Ninja Forms. Please contact Ninja Forms support for more details."))}})})),i("controllers/fieldDate",[],(function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("date"),"init:model",this.initModel),this.listenTo(nfRadio.channel("date"),"render:view",this.initDatepicker)},initModel:function(e){this.registerFunctions(e)},registerFunctions:function(e){e.set("renderHourOptions",this.renderHourOptions),e.set("renderMinuteOptions",this.renderMinuteOptions),e.set("maybeRenderAMPM",this.maybeRenderAMPM),e.set("customClasses",this.customClasses),e.getValue=this.getValue},renderHourOptions:function(){return this.hours_options},renderMinuteOptions:function(){return this.minutes_options},maybeRenderAMPM:function(){if(void 0!==this.hours_24&&1!=this.hours_24)return`<div style="float:left;" class="time-wrap"><select id="ampm-select" class="ampm extra" aria-label="am-pm-select" ${1==this.required?'aria-required="true" required':""}><option value="am">AM</option><option value="pm">PM</option></select></div>`},initDatepicker:function(e){e.model.set("el",e.el);var t=jQuery(e.el).find(".nf-element")[0];if(e.listenTo(nfRadio.channel("form-"+e.model.get("formID")),"before:submit",this.beforeSubmit,e),void 0!==e.model.get("date_mode")&&"time_only"==e.model.get("date_mode"))return jQuery(t).hide(),!1;var i=this.convertDateFormat(e.model.get("date_format"));e.model.set("date_format",i);var n={onReady:(e,i,n)=>{n.altInput.setAttribute("aria-labelledby",jQuery(t).attr("aria-labelledby")),n.altInput.setAttribute("aria-invalid",!1)},dateFormat:i,altFormat:i,altInput:!0,ariaDateFormat:i,mode:"single",allowInput:!0,disableMobile:"true",minDate:this.getMinDate(e.model),maxDate:this.getMaxDate(e.model)};const r=this.checkCustomLocale();r&&(n.locale=r);let o=nfRadio.channel("flatpickr").request("filter:settings",n,e);void 0!==o&&(n=o);var a=flatpickr(t,n);1==e.model.get("date_default")&&(a.defaultDate=new Date,a.setDate(a.defaultDate),e.model.set("value",a.defaultDate)),nfRadio.channel("pikaday-bc").trigger("init",a,e.model,e),nfRadio.channel("flatpickr").trigger("init",a,e.model,e)},beforeSubmit:function(e){if(_.isObject(this.model.get("value"))){const e=this.el.id.replace("-wrap",""),t=this.el.querySelector("#"+e).value;this.model.set("value",t)}if("date_only"==this.model.get("date_mode"))return!1;let t=jQuery(this.el).find(".hour").val(),i=jQuery(this.el).find(".minute").val(),n=jQuery(this.el).find(".ampm").val(),r=this.model.get("value"),o=!1;o=_.isObject(r)?r.date:r;let a={date:o,hour:t,minute:i,ampm:n};this.model.set("value",a)},getMinDate:function(e){let t=null;if(void 0!==e.get("year_range_start")){const i=e.get("year_range_start");i&&(t=flatpickr.formatDate(new Date(String(i)),e.get("date_format")))}return t},getMaxDate:function(e){let t=null;if(void 0!==e.get("year_range_end")){const i=e.get("year_range_end");i&&(t=flatpickr.formatDate(new Date(String(i)),e.get("date_format")))}return t},convertDateFormat:function(e){!e&&this.model&&(e=this.model.get("date_format")),e||(e="default");const t={"MM/DD/YYYY":"m/d/Y","MM-DD-YYYY":"m-d-Y","MM.DD.YYYY":"m.d.Y","DD/MM/YYYY":"d/m/Y","DD-MM-YYYY":"d-m-Y","DD.MM.YYYY":"d.m.Y","YYYY-MM-DD":"Y-m-d","YYYY/MM/DD":"Y/m/d","YYYY.MM.DD":"Y.m.d","dddd, MMMM D YYYY":"l, F d Y",default:nfi18n.dateFormat?nfi18n.dateFormat:"default"};return Object.keys(t).includes(e)?t[e]:e},customClasses:function(e){return"date_and_time"==this.date_mode&&(e+=" date-and-time"),e},checkCustomLocale:function(){let e={};return nfi18n&&((nfi18n.months||nfi18n.monthsShort)&&(e.months={},nfi18n.months&&(e.months.longhand=nfi18n.months),nfi18n.monthsShort&&(e.months.shorthand=nfi18n.monthsShort)),(nfi18n.weekdays||nfi18n.weekdaysShort)&&(e.weekdays={},nfi18n.weekdays&&(e.weekdays.longhand=nfi18n.weekdays),nfi18n.weekdaysShort&&(e.weekdays.shorthand=nfi18n.weekdaysShort)),nfi18n.startOfWeek&&(e.firstDayOfWeek=nfi18n.startOfWeek)),!_.isEmpty(e)&&e},getValue:function(){if("date_only"==this.get("date_mode"))return this.get("value");let e=this.get("el"),t=jQuery(e).find(".hour").val(),i=jQuery(e).find(".minute").val(),n=jQuery(e).find(".ampm").val(),r=this.get("value"),o=!1;o=_.isObject(r)?r.date:r;let a="";return void 0!==o&&(a+=o),void 0!==t&&void 0!==i&&(a+=" "+t+":"+i),void 0!==n&&(a+=" "+n),a}})})),i("controllers/fieldRecaptcha",[],(function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("recaptcha"),"init:model",this.initRecaptcha),this.listenTo(nfRadio.channel("forms"),"submit:response",this.resetRecaptcha)},initRecaptcha:function(e){nfRadio.channel("recaptcha").reply("update:response",this.updateResponse,this,e.id)},updateResponse:function(e,t){var i=nfRadio.channel("fields").request("get:field",t);i.set("value",e),nfRadio.channel("fields").request("remove:error",i.get("id"),"required-error")},resetRecaptcha:function(){var e=0;jQuery(".g-recaptcha").each((function(){try{grecaptcha.reset(e)}catch(e){console.log("Notice: Error trying to reset grecaptcha.")}e++}))}})})),i("controllers/fieldRecaptchaV3",[],(function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("recaptcha_v3"),"init:model",this.initRecaptcha)},initRecaptcha:function(e){const t=e.get("formID");this.processRecaptcha(t,e),setInterval(this.processRecaptcha,11e4,t,e)},processRecaptcha:function(e,t){try{nfRadio.channel("form-"+e).trigger("disable:submit",t),grecaptcha.ready((function(){grecaptcha.execute(t.get("site_key"),{action:"register"}).then((function(i){t.set("value",i),nfRadio.channel("form-"+e).trigger("enable:submit",t)}))}))}catch(e){jQuery(document).on("nfFormReady",(e=>{let i,n=nf_check_recaptcha_consent();t.collection.models.forEach((e=>{"submit"===e.get("type")&&(i=e.get("id"))})),nfRadio.channel("fields").request("add:error",i,"recaptcha-v3-missing",t.collection.options.formModel.get("settings").recaptchaConsentMissing),this.nf_build_default_consent_action(t,n.services,i,e)}))}},nf_build_default_consent_action:function(e,t,i,n){if(!(t.length<=1&&t.includes("missing_cookie")||t.length<=0)){let r=document.createElement("div");r.setAttribute("id","nf_recaptcha_consent_event"),r.innerText+=e.collection.options.formModel.get("settings").recaptchaConsentEvent;let o=new CustomEvent("nf_consent_link",{detail:{services:t,element:r,submitFieldID:i,layoutView:n}});document.dispatchEvent(o);const a=document.getElementsByClassName("nf-error-recaptcha-v3-missing");Array.prototype.slice.call(a).forEach((e=>{e.append(r)}))}}})})),i("controllers/fieldHTML",[],(function(){return Marionette.Object.extend({htmlFields:[],trackedMergeTags:[],initialize:function(){this.listenTo(Backbone.Radio.channel("fields-html"),"init:model",this.setupFieldMergeTagTracking)},setupFieldMergeTagTracking:function(e){this.htmlFields.push(e);var t=e.get("formID");this.listenTo(nfRadio.channel("form-"+t),"init:model",(function(t){var i=e.get("default").match(new RegExp(/{field:(.*?)}/g));i&&(_.each(i,(function(e){var i=e.replace("{field:","").replace("}",""),n=t.get("fields").findWhere({key:i});void 0!==n&&(this.trackedMergeTags.push(n),this.listenTo(nfRadio.channel("field-"+n.get("id")),"change:modelValue",this.updateFieldMergeTags))}),this),this.updateFieldMergeTags())}),this)},updateFieldMergeTags:function(e){_.each(this.htmlFields,(function(e){var t=e.get("value");_.each(this.trackedMergeTags,(function(e){var i=t.match(new RegExp(/<span data-key="field:(.*?)<\/span>/g));_.each(i,(function(i){-1<i.indexOf('data-key="field:'+e.get("key"))&&(t=t.replace(i,"{field:"+e.get("key")+"}"))}));var n="{field:"+e.get("key")+"}";const r="repeater"===e.get("type")?this.displayRepeaterData(e):e.getValue();t=t.replace(n,'<span data-key="field:'+e.get("key")+'">'+r+"</span>")}),this),e.set("value",t),e.trigger("reRender")}),this)},displayRepeaterData:function(e){const t=Object.keys(e.getValue());let i="",n=[];return _.each(t,(function(e){if(-1===n.indexOf(e)){const t=nfRadio.channel("fields").request("get:field",e);if(void 0!==t){if(-1===["submit","html","hidden","password","passwordconfirm","divider","hr","note","unknown","button","confirm","creditcard","creditcardcvc","creditcardexpiration","creditcardfullname","creditcardnumber","creditcardzip","recaptcha","recaptcha_v3"].indexOf(t.get("type"))&&t.getValue().toString().length>0){const r=Number(e.split("_").pop())+1;i+="<p>"+t.get("label")+" "+r+" : "+t.getValue()+"</p>",n.push(e)}}}})),i}})})),i("controllers/helpText",[],(function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("form"),"render:view",this.initHelpText),nfRadio.channel("form").reply("init:help",this.initHelpText)},initHelpText:function(e){jQuery(e.el).find(".nf-help").each((function(){var e=jQuery(this).jBox("Tooltip",{theme:"TooltipBorder",content:jQuery(this).data("text"),trigger:"mouseenter focus",closeOnMouseleave:!0,closeOnClick:!0});jQuery(this).on("keydown mouseleave",(function(){e.close()}))}))}})})),i("controllers/fieldTextbox",[],(function(){return Marionette.Object.extend({initialize:function(){nfRadio.channel("textbox").reply("get:calcValue",this.getCalcValue,this)},getCalcValue:function(e){if("currency"==e.get("mask")){var t=nfRadio.channel("app").request("get:form",e.get("formID")),i=void 0!==t?t.get("currencySymbol"):"",n=jQuery("<textarea />").html(i).text();return e.get("value").replace(n,"")}return e.get("value")}})})),i("controllers/fieldTextareaRTE",[],(function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("textarea"),"render:view",this.initTextareaRTEs),this.listenTo(nfRadio.channel("textarea"),"click:extra",this.clickExtra),this.meta_image_frame,this.currentContext={},void 0!==jQuery.summernote&&(jQuery.summernote.options.icons={align:"dashicons dashicons-editor-alignleft",alignCenter:"dashicons dashicons-editor-aligncenter",alignJustify:"dashicons dashicons-editor-justify",alignLeft:"dashicons dashicons-editor-alignleft",alignRight:"dashicons dashicons-editor-alignright",indent:"dashicons dashicons-editor-indent",outdent:"dashicons dashicons-editor-outdent",bold:"dashicons dashicons-editor-bold",caret:"dashicons dashicons-arrow-down",close:"dashicons dashicons-dismiss",code:"dashicons dashicons-editor-code",eraser:"dashicons dashicons-editor-removeformatting",italic:"dashicons dashicons-editor-italic",link:"dashicons dashicons-admin-links",unlink:"dashicons dashicons-editor-unlink",magic:"dashicons dashicons-editor-paragraph",minus:"dashicons dashicons-minus",orderedlist:"dashicons dashicons-editor-ol",redo:"dashicons dashicons-redo",square:"dashicons fa-square",table:"dashicons dashicons-editor-table",underline:"dashicons dashicons-editor-underline",undo:"dashicons dashicons-undo",unorderedlist:"dashicons dashicons-editor-ul"})},initTextareaRTEs:function(e){if(1!=e.model.get("textarea_rte"))return!1;var t=this,i=[["paragraphStyle",["style"]],["fontStyle",["bold","italic","underline","clear"]],["lists",["ul","ol"]],["paragraph",["paragraph"]],["customGroup",["linkButton","unlink"]],["table",["table"]],["actions",["undo","redo"]]];1==e.model.get("textarea_media")&&0!=userSettings.uid&&i.push(["tools",["mediaButton"]]),jQuery(e.el).find(".nf-element").summernote({toolbar:i,buttons:{linkButton:function(e){return t.linkButton(e)},mediaButton:function(e){return t.mediaButton(e)}},height:150,codemirror:{theme:"monokai",lineNumbers:!0},prettifyHtml:!0,callbacks:{onChange:function(t){e.model.set("value",jQuery(this).summernote("code"))}}});var n=jQuery(e.el).find(".link-button").next(".dropdown-menu").find("button");n.replaceWith((function(){return jQuery("<div/>",{class:jQuery(n).attr("class"),html:this.innerHTML})}))},linkButton:function(e){var t=this,i=jQuery.summernote.ui,n=nfRadio.channel("app").request("get:template","#tmpl-nf-rte-link-button"),r=nfRadio.channel("app").request("get:template","#tmpl-nf-rte-link-dropdown");return i.buttonGroup([i.button({className:"dropdown-toggle link-button",contents:n({}),tooltip:nfi18n.fieldTextareaRTEInsertLink,click:function(i){t.clickLinkButton(i,e)},data:{toggle:"dropdown"}}),i.dropdown([i.buttonGroup({children:[i.button({contents:r({}),tooltip:""})]})])]).render()},mediaButton:function(e){var t=this,i=jQuery.summernote.ui,n=nfRadio.channel("app").request("get:template","#tmpl-nf-rte-media-button");return i.button({className:"dropdown-toggle",contents:n({}),tooltip:nfi18n.fieldTextareaRTEInsertMedia,click:function(i){t.openMediaManager(i,e)}}).render()},openMediaManager:function(e,t){if(t.invoke("editor.saveRange"),this.meta_image_frame)this.meta_image_frame.open();else{this.meta_image_frame=wp.media.frames.meta_image_frame=wp.media({title:nfi18n.fieldTextareaRTESelectAFile,button:{text:"insert"}});var i=this;this.meta_image_frame.on("select",(function(){var e=i.meta_image_frame.state().get("selection").first().toJSON();i.insertMedia(e,t)})),this.meta_image_frame.open()}},clickLinkButton:function(e,t){var i=t.invoke("editor.createRange");t.invoke("editor.saveRange");var n=i.toString();this.currentContext=t,jQuery(e.target).closest(".note-customGroup > .note-btn-group").on("hide.bs.dropdown",(function(e){return!1})),jQuery(e.target).closest(".note-customGroup > .note-btn-group").on("shown.bs.dropdown",(function(e){jQuery(e.target).parent().parent().find(".link-text").val(n),jQuery(e.target).parent().parent().find(".link-url").focus()}))},clickExtra:function(e){var t=jQuery(e.target).parent().find(".link-text"),i=jQuery(e.target).parent().find(".link-url"),n=jQuery(e.target).parent().find(".link-new-window");if(this.currentContext.invoke("editor.restoreRange"),jQuery(e.target).hasClass("insert-link")){var r=t.val(),o=i.val(),a=!!n.prop("checked");0!=r.length&&0!=o.length&&this.currentContext.invoke("editor.createLink",{text:r,url:o,isNewWindow:a})}t.val(""),i.val(""),n.prop("checked",!1),jQuery(e.target).closest("div.note-btn-group.open").removeClass("open")},insertMedia:function(e,t){t.invoke("editor.restoreRange"),"image"==e.type?t.invoke("editor.insertImage",e.url):t.invoke("editor.createLink",{text:e.filename,url:e.url})}})})),i("controllers/fieldStarRating",[],(function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("starrating"),"init:model",this.register),this.listenTo(nfRadio.channel("starrating"),"render:view",this.initRating)},register:function(e){e.set("renderRatings",this.renderRatings)},initRating:function(e){jQuery(e.el).find(".starrating").rating()},renderRatings:function(){for(var e=document.createElement("span"),t=0;t<=this.number_of_stars-1;t++){var i=nfRadio.channel("app").request("get:template","#tmpl-nf-field-starrating-star"),n=t+1,r="";this.value==n&&(r="checked");var o=i({id:this.id,classes:this.classes,num:n,checked:r,required:this.required});e.appendChild(document.createRange().createContextualFragment(o))}return e.innerHTML}})})),i("controllers/fieldTerms",[],(function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("terms"),"init:model",this.register)},register:function(e){this.listenTo(nfRadio.channel("field-"+e.get("id")),"click:extra",this.clickExtra),this.listenTo(nfRadio.channel("field-"+e.get("id")),"keyup:field",this.keyUpExtra)},clickExtra:function(e,t){var i=jQuery(e.currentTarget).parent().find(".extra-value").val();this.addOption(t,i)},keyUpExtra:function(e,t,i){13==i&&this.addOption(t,e.val())},addOption:function(e,t){if(t){var i={label:t,value:t,selected:0};e.get("options").push(i),e.get("value").push(t),e.trigger("reRender")}}})})),i("controllers/formContentFilters",[],(function(){return Marionette.Object.extend({initialize:function(){this.viewFilters=[],this.loadFilters=[],nfRadio.channel("formContent").reply("add:viewFilter",this.addViewFilter,this),nfRadio.channel("formContent").reply("add:loadFilter",this.addLoadFilter,this),nfRadio.channel("formContent").reply("get:viewFilters",this.getViewFilters,this),nfRadio.channel("formContent").reply("get:loadFilters",this.getLoadFilters,this),nfRadio.channel("fieldContents").reply("add:viewFilter",this.addViewFilter,this),nfRadio.channel("fieldContents").reply("add:loadFilter",this.addLoadFilter,this),nfRadio.channel("fieldContents").reply("get:viewFilters",this.getViewFilters,this),nfRadio.channel("fieldContents").reply("get:loadFilters",this.getLoadFilters,this)},addViewFilter:function(e,t){this.viewFilters[t]=e},getViewFilters:function(){return this.viewFilters},addLoadFilter:function(e,t){this.loadFilters[t]=e},getLoadFilters:function(){return this.loadFilters}})})),i("views/fieldItem",[],(function(){return Marionette.ItemView.extend({tagName:"div",initialize:function(){this.listenTo(this.model,"reRender",this.render,this),this.listenTo(this.model,"change:addWrapperClass",this.addWrapperClass,this),this.listenTo(this.model,"change:removeWrapperClass",this.removeWrapperClass,this),this.listenTo(this.model,"change:invalid",this.toggleAriaInvalid,this),this.template="#tmpl-nf-field-"+this.model.get("wrap_template")},test:function(e){console.log("firing from trigger 1")},addWrapperClass:function(){var e=this.model.get("addWrapperClass");""!=e&&(jQuery(this.el).addClass(e),this.model.set("addWrapperClass",""))},removeWrapperClass:function(){var e=this.model.get("removeWrapperClass");""!=e&&(jQuery(this.el).removeClass(e),this.model.set("removeWrapperClass",""))},toggleAriaInvalid:function(){var e=this.model.get("invalid");jQuery("[aria-invalid]",this.el).attr("aria-invalid",JSON.stringify(e))},onRender:function(){if(this.$el=this.$el.children(),this.$el.unwrap(),this.setElement(this.$el),void 0!==this.model.get("mask")&&""!=String(this.model.get("mask")).trim()){if("custom"==this.model.get("mask"))var e=this.model.get("custom_mask");else e=this.model.get("mask");if(Number.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},Number.isInteger(e)&&(e=e.toString()),"currency"==e){var t=nfRadio.channel("app").request("get:form",this.model.get("formID")),i=t.get("thousands_sep");"&nbsp;"!=i&&160!=i.charCodeAt(0)||(i=" ");var n=jQuery("<div/>").html(t.get("currencySymbol")).text(),r={digitGroupSeparator:i=jQuery("<div/>").html(i).text(),decimalCharacter:jQuery("<div/>").html(t.get("decimal_point")).text(),currencySymbol:n,modifyValueOnWheel:!1},o=jQuery(jQuery(this.el).find(".nf-element")[0]);new AutoNumeric(jQuery(this.el).find(".nf-element")[0],r);var a=this;o.on("change",(function(e){a.model.set("value",e.target.value)}))}else jQuery(this.el).find(".nf-element").mask(e)}nfRadio.channel(this.model.get("type")).trigger("render:view",this),nfRadio.channel("fields").trigger("render:view",this)},templateHelpers:function(){var e=this;return{renderElement:function(){this.clean&&!this.value&&0===this.default&&(this.value="0");var e=_.find(this.element_templates,(function(e){if(0<jQuery("#tmpl-nf-field-"+e).length)return!0}));return nfRadio.channel("app").request("get:template","#tmpl-nf-field-"+e)(this)},renderLabel:function(){return nfRadio.channel("app").request("get:template","#tmpl-nf-field-label")(this)},renderLabelClasses:function(){var e="";return void 0!==this.customLabelClasses&&(e=this.customLabelClasses(e)),e},renderPlaceholder:function(){var e=this.placeholder;return void 0!==this.customPlaceholder&&(e=this.customPlaceholder(e)),""!=String(e).trim()?'placeholder="'+_.escape(e)+'"':""},renderWrapClass:function(){var e="field-wrap "+this.type+"-wrap";return this.type!==this.parentType&&(e=e+" "+this.parentType+"-wrap"),void 0!==this.old_classname&&0<String(this.old_classname).trim().length&&(e+=" "+this.old_classname+"-wrap"),"undefined"!=typeof customWrapClass&&(e=customWrapClass(e)),e},renderClasses:function(){var e=this.classes;return this.error?e+=" nf-error":e=e.replace("nf-error",""),void 0!==this.element_class&&0<String(this.element_class).trim().length&&(e+=" "+this.element_class),void 0!==this.customClasses&&(e=this.customClasses(e)),e},maybeFilterHTML:function(){return void 0!==nfFrontEnd.filter_esc_status?nfFrontEnd.filter_esc_status:"false"},maybeDisabled:function(){return 1==this.disable_input?"disabled":""},maybeRequired:function(){return 1==this.required?'aria-required="true" required':""},maybeDisableAutocomplete:function(){if(1==this.disable_browser_autocomplete)return'autocomplete="off"';return'autocomplete="'+this.translateAutoCompletionType(this.type)+'"'},translateAutoCompletionType:function(e){switch(e){case"address":return"street-address";case"city":return"address-level2";case"email":return"email";case"firstname":return"given-name";case"lastname":return"family-name";case"zip":return"postal-code";case"phone":return"tel";default:return"on"}},maybeInputLimit:function(){return"characters"==this.input_limit_type&&""!=String(this.input_limit).trim()?'maxlength="'+this.input_limit+'"':""},getHelpText:function(){return void 0!==this.help_text?this.help_text:""},maybeRenderHelp:function(){var e=document.createElement("p");e.innerHTML=this.help_text;var t=!1;if((0!=String(jQuery(e).text()).trim().length||0<jQuery(e).find("img").length)&&(t=!0),void 0!==this.help_text&&t){var i=document.createElement("span");i.classList.add("fa","fa-info-circle","nf-help"),i.setAttribute("data-text",this.getHelpText()),i.setAttribute("tabindex","0"),i.setAttribute("aria-describedby","hidden-help-text-"+this.id);var n=document.createElement("span");return n.textContent=this.help_text.replace(/<\/?[^>]+(>|$)/g,"").trim(),n.id="hidden-help-text-"+this.id,n.classList.add("nf-sr-only"),n.setAttribute("role","tooltip"),i.appendChild(n),i.outerHTML}return""},renderDescText:function(){if(void 0===this.desc_text)return"";var e,t,i,n,r=document.createElement("p");return r.innerHTML=this.desc_text,0==String(r.innerText).trim().length?"":(t=document.createTextNode(this.desc_text),(e=document.createElement("p")).appendChild(t),0!=String(jQuery(e).text()).trim().length?(i=document.createRange().createContextualFragment(this.desc_text),(n=document.createElement("div")).classList.add("nf-field-description"),n.setAttribute("aria-hidden","true"),n.setAttribute("id","nf-description-"+this.id),n.appendChild(i),n.outerHTML):"")},renderNumberDefault:function(){return this.clean?0===this.default||this.default?this.default:this.placeholder?"":this.value:this.value},renderCurrencyFormatting:function(t){var i=t.toString().replace(".","||").replace(/\B(?=(\d{3})+(?!\d))/g,nfi18n.thousands_sep).replace("||",nfi18n.decimal_point);return nfRadio.channel("app").request("get:form",e.model.get("formID")).get("settings").currency_symbol+i},maybeRenderTime:function(){return"time_only"==this.date_mode||"date_and_time"==this.date_mode}}},events:{"change .nf-element":"fieldChange","keyup .nf-element":"fieldKeyup","click .nf-element":"fieldClick","click .extra":"extraClick","change .extra":"extraChange","blur .nf-element":"fieldBlur"},fieldChange:function(e){var t=jQuery(e.currentTarget);nfRadio.channel("nfAdmin").request("change:field",t,this.model)},fieldKeyup:function(e){var t=jQuery(e.currentTarget),i=e.keyCode;nfRadio.channel("field-"+this.model.get("id")).trigger("keyup:field",t,this.model,i),nfRadio.channel(this.model.get("type")).trigger("keyup:field",t,this.model,i),nfRadio.channel("fields").trigger("keyup:field",t,this.model,i)},fieldClick:function(e){var t=jQuery(e.currentTarget);nfRadio.channel("field-"+this.model.get("id")).trigger("click:field",t,this.model),nfRadio.channel(this.model.get("type")).trigger("click:field",t,this.model),nfRadio.channel("fields").trigger("click:field",t,this.model)},extraClick:function(e){nfRadio.channel("field-"+this.model.get("id")).trigger("click:extra",e,this.model),nfRadio.channel(this.model.get("type")).trigger("click:extra",e,this.model),nfRadio.channel("fields").trigger("click:extra",e,this.model)},extraChange:function(e){nfRadio.channel("field-"+this.model.get("id")).trigger("change:extra",e,this.model),nfRadio.channel(this.model.get("type")).trigger("change:extra",e,this.model),nfRadio.channel("fields").trigger("change:extra",e,this.model)},fieldBlur:function(e){var t=jQuery(e.currentTarget);nfRadio.channel("field-"+this.model.get("id")).trigger("blur:field",t,this.model),nfRadio.channel(this.model.get("type")).trigger("blur:field",t,this.model),nfRadio.channel("fields").trigger("blur:field",t,this.model)},onAttach:function(){nfRadio.channel(this.model.get("type")).trigger("attach:view",this)}})})),i("views/beforeField",[],(function(){return Marionette.ItemView.extend({tagName:"nf-section",template:"#tmpl-nf-field-before"})})),i("views/fieldErrorItem",[],(function(){return Marionette.ItemView.extend({tagName:"nf-section",template:"#tmpl-nf-field-error",onRender:function(){this.$el=this.$el.children(),this.$el.unwrap(),this.setElement(this.$el)}})})),i("views/fieldErrorCollection",["views/fieldErrorItem"],(function(e){return Marionette.CollectionView.extend({tagName:"nf-errors",childView:e,initialize:function(e){this.fieldModel=e.fieldModel},onRender:function(){0==this.fieldModel.get("errors").models.length?(this.fieldModel.removeWrapperClass("nf-error"),this.fieldModel.removeWrapperClass("nf-fail"),this.fieldModel.addWrapperClass("nf-pass"),this.fieldModel.setInvalid(!1)):(this.fieldModel.removeWrapperClass("nf-pass"),this.fieldModel.addWrapperClass("nf-fail"),this.fieldModel.addWrapperClass("nf-error"),this.fieldModel.setInvalid(!0))}})})),i("views/inputLimit",[],(function(){return Marionette.ItemView.extend({tagName:"nf-section",template:"#tmpl-nf-field-input-limit",initialize:function(){this.listenTo(nfRadio.channel("field-"+this.model.get("id")),"keyup:field",this.updateCount),this.count=this.model.get("input_limit"),this.render()},updateCount:function(e,t){var i=jQuery(e).val(),n=String(i).trim().replace(/\s+/gi," ").split(" "),r=n.length,o=i.length;if("characters"==this.model.get("input_limit_type")||"char"==this.model.get("input_limit_type"))jQuery(e).attr("maxlength",this.model.get("input_limit")),this.count=this.model.get("input_limit")-o;else{this.count=this.model.get("input_limit")-r;var a=this.model.get("input_limit");r>a&&jQuery(e).val(n.slice(0,a).join(" "))}this.render()},templateHelpers:function(){var e=this;return{currentCount:function(){return e.count}}}})})),i("views/afterField",["views/fieldErrorCollection","views/inputLimit"],(function(e,t){return Marionette.ItemView.extend({tagName:"nf-section",template:"#tmpl-nf-field-after",initialize:function(){this.model.on("change:errors",this.changeError,this)},onRender:function(){var i=jQuery(this.el).children(".nf-error-wrap");if(this.errorCollectionView=new e({el:i,collection:this.model.get("errors"),fieldModel:this.model}),0<this.model.get("errors").length&&this.errorCollectionView.render(),void 0!==this.model.get("input_limit")&&""!=String(this.model.get("input_limit")).trim()){var n=jQuery(this.el).children(".nf-input-limit");this.inputLimitView=new t({el:n,model:this.model}),n.attr("aria-live","polite"),n.attr("role","status"),n.attr("aria-relevant","additions"),n.attr("aria-atomic",!0)}},changeError:function(){this.errorCollectionView.render()}})})),i("views/fieldRepeaterFieldLayout",["views/fieldItem","views/beforeField","views/afterField"],(function(e,t,i){return Marionette.LayoutView.extend({tagName:"nf-field",regions:{beforeField:".nf-before-field",field:".nf-field",afterField:".nf-after-field"},initialize:function(){this.listenTo(this.model,"change:visible",this.render,this)},getTemplate:function(){return this.model.get("visible")?"#tmpl-nf-field-layout":"#tmpl-nf-empty"},onRender:function(){this.model.get("visible")&&(this.beforeField.show(new t({model:this.model})),this.field.show(new e({model:this.model})),this.afterField.show(new i({model:this.model})))},templateHelpers:function(){return{renderContainerClass:function(){var e=" label-"+this.label_pos+" ";return void 0!==this.desc_pos&&(e+="desc-"+this.desc_pos+" "),void 0!==this.container_class&&0<String(this.container_class).trim().length&&(e+=this.container_class+" "),this.type!==this.parentType&&(e+=" "+this.parentType+"-container"),e}}}})})),i("views/fieldRepeaterFieldCollection",["views/fieldRepeaterFieldLayout"],(function(e){return Marionette.CollectionView.extend({tagName:"nf-fields-wrap",childView:e})})),i("views/fieldRepeaterSetLayout",["views/fieldRepeaterFieldCollection"],(function(e){return Marionette.LayoutView.extend({tagName:"fieldset",template:"#tmpl-nf-field-repeater-set",regions:{fields:".nf-repeater-fieldset"},onRender:function(){this.fields.show(new e({collection:this.model.get("fields")}))},templateHelpers:function(){return{maybeFilterHTML:function(){return void 0!==nfFrontEnd.filter_esc_status?nfFrontEnd.filter_esc_status:"false"}}},events:{"click .nf-remove-fieldset":"removeSet"},removeSet:function(){nfRadio.channel("field-repeater").trigger("remove:fieldset",this.model)}})})),i("views/fieldRepeaterSetCollection",["views/fieldRepeaterSetLayout"],(function(e){return Marionette.CollectionView.extend({tagName:"div",childView:e})})),i("views/fieldRepeaterLayout",["views/fieldRepeaterSetCollection"],(function(e){return Marionette.LayoutView.extend({tagName:"div",template:"#tmpl-nf-field-repeater",regions:{sets:".nf-repeater-fieldsets"},initialize:function(){this.collection=this.model.get("sets"),this.listenTo(nfRadio.channel("field-repeater"),"rerender:fieldsets",this.render)},onRender:function(){this.sets.show(new e({collection:this.collection}))},templateHelpers:function(){return{maybeFilterHTML:function(){return void 0!==nfFrontEnd.filter_esc_status?nfFrontEnd.filter_esc_status:"false"},renderDescText:function(){if(void 0===this.desc_text)return"";var e,t,i,n,r=document.createElement("p");return r.innerHTML=this.desc_text,0==String(r.innerText).trim().length?"":(t=document.createTextNode(this.desc_text),(e=document.createElement("p")).appendChild(t),0!=String(jQuery(e).text()).trim().length?(i=document.createRange().createContextualFragment(this.desc_text),(n=document.createElement("div")).classList.add("nf-field-description"),n.appendChild(i),n.outerHTML):"")}}},events:{"click .nf-add-fieldset":"addSet"},addSet:function(){nfRadio.channel("field-repeater").trigger("add:fieldset",this.model.id)},beforeSubmit:function(){this.collection.beforeSubmit(this.model.get("sets"))}})})),i("views/fieldLayout",["views/fieldItem","views/beforeField","views/afterField","views/fieldRepeaterLayout"],(function(e,t,i,n){return Marionette.LayoutView.extend({tagName:"nf-field",regions:{beforeField:".nf-before-field",field:".nf-field",afterField:".nf-after-field"},initialize:function(){this.listenTo(this.model,"change:visible",this.render,this)},getTemplate:function(){return this.model.get("visible")?"#tmpl-nf-field-layout":"#tmpl-nf-empty"},onRender:function(){this.model.get("visible")&&("repeater"==this.model.get("type")?this.field.show(new n({model:this.model})):(this.beforeField.show(new t({model:this.model})),this.field.show(new e({model:this.model})),this.afterField.show(new i({model:this.model}))))},templateHelpers:function(){return{renderContainerClass:function(){var e=" label-"+this.label_pos+" ";return void 0!==this.desc_pos&&(e+="desc-"+this.desc_pos+" "),void 0!==this.container_class&&0<String(this.container_class).trim().length&&(e+=this.container_class+" "),this.type!==this.parentType&&(e+=" "+this.parentType+"-container"),e}}}})})),i("controllers/loadViews",["views/fieldItem","views/fieldLayout"],(function(e,t){return Marionette.Object.extend({initialize:function(){nfRadio.channel("views").reply("get:fieldItem",this.getFieldItem),nfRadio.channel("views").reply("get:fieldLayout",this.getFieldLayout)},getFieldItem:function(t){return e},getFieldLayout:function(){return t}})})),i("controllers/formErrors",[],(function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("fields"),"add:error",this.addError),this.listenTo(nfRadio.channel("fields"),"remove:error",this.removeError),nfRadio.channel("form").reply("get:errors",this.getFormErrors)},addError:function(e,t,i){var n=nfRadio.channel("app").request("get:form",e.get("formID"));void 0===n.get("fieldErrors")[e.get("id")]&&(n.get("fieldErrors")[e.get("id")]={}),n.get("fieldErrors")[e.get("id")][t]=i,nfRadio.channel("form-"+e.get("formID")).request("add:error","field-errors",n.get("settings").formErrorsCorrectErrors)},removeError:function(e,t){var i=nfRadio.channel("app").request("get:form",e.get("formID"));i.get("fieldErrors")[e.get("id")]=_.omit(i.get("fieldErrors")[e.get("id")],t),0==_.size(i.get("fieldErrors")[e.get("id")])&&delete i.get("fieldErrors")[e.get("id")],0==_.size(i.get("fieldErrors"))&&nfRadio.channel("form-"+e.get("formID")).request("remove:error","field-errors")},getFormErrors:function(e){var t=nfRadio.channel("app").request("get:form",e),i=!1;return t&&0!==t.get("errors").length&&_.each(t.get("errors").models,(function(e){(i=i||{})[e.get("id")]=e.get("msg")})),i}})})),i("controllers/submit",[],(function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("forms"),"init:model",this.registerSubmitHandler)},registerSubmitHandler:function(e){nfRadio.channel("form-"+e.get("id")).reply("submit",this.submit)},submit:function(e){nfRadio.channel("forms").trigger("before:submit",e),nfRadio.channel("form-"+e.get("id")).trigger("before:submit",e);var t=nfRadio.channel("forms").request("maybe:validate",e);if(!1!==t&&(_.each(e.get("fields").models,(function(e){e.set("clean",!1)})),e.get("formContentData").validateFields()),0==nfRadio.channel("form-"+e.get("id")).request("maybe:submit",e))return nfRadio.channel("forms").trigger("submit:cancel",e),void nfRadio.channel("form-"+e.get("id")).trigger("submit:cancel",e);if(!1!==t){var i=_.filter(e.get("errors").models,(function(e){return"invalid_email"!=e.get("id")&&"email_not_sent"!=e.get("id")}));if(0!=_.size(i))return nfRadio.channel("forms").trigger("submit:failed",e),nfRadio.channel("form-"+e.get("id")).trigger("submit:failed",e),!1}nfRadio.channel("forms").trigger("after:submitValidation",e),nfRadio.channel("form-"+e.get("id")).trigger("after:submitValidation",e);var n=e.get("id"),r={};_.each(e.get("fields").models,(function(e){var t={value:e.get("value"),id:e.get("id")};r[e.get("id")]=nfRadio.channel(e.get("type")).request("get:submitData",t,e)||t}));var o=e.get("extra"),a=e.get("settings");delete a.formContentData;var l=JSON.stringify({id:n,fields:r,settings:a,extra:o}),s={action:"nf_ajax_submit",security:nfFrontEnd.ajaxNonce,nonce_ts:nfFrontEnd.nonce_ts,formData:l};jQuery.ajax({url:nfFrontEnd.adminAjax,type:"POST",data:s,cache:!1,success:function(t,i,n){try{var r=t;nfRadio.channel("forms").trigger("submit:response",r,i,n,e.get("id")),nfRadio.channel("form-"+e.get("id")).trigger("submit:response",r,i,n),jQuery(document).trigger("nfFormSubmitResponse",{response:r,id:e.get("id")})}catch(e){console.log(e),console.log("Parse Error"),console.log(e)}},error:function(t,i,n){console.log("ERRORS: "+n),console.log(t);try{var r=jQuery.parseJSON(t.responseText);nfRadio.channel("forms").trigger("submit:response",r,i,t,e.get("id")),nfRadio.channel("form-"+e.get("id")).trigger("submit:response",r,i,t)}catch(i){console.log("Parse Error: "+t.responseText),nfRadio.channel("form-"+e.get("id")).request("add:error","parse-response-ERROR",n)}}})}})})),i("views/fieldCollection",["views/fieldLayout"],(function(e){return Marionette.CollectionView.extend({tagName:"nf-fields-wrap",childView:e})})),i("controllers/defaultFilters",["views/fieldCollection","models/fieldCollection"],(function(e,t){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("form"),"before:filterData",this.registerDefaultDataFilter)},registerDefaultDataFilter:function(e){nfRadio.channel("formContent").request("add:loadFilter",this.defaultFormContentLoad,10,this),nfRadio.channel("formContent").request("add:viewFilter",this.defaultFormContentView,10,this)},defaultFormContentLoad:function(e,i,n){var r=i.get("fields"),o=nfRadio.channel("formContent").request("get:loadFilters");if(1==_.without(o,void 0).length||void 0===e||!0==e instanceof Backbone.Collection)return i.get("fields");var a=_.map(e,(function(e){return i.get("fields").findWhere({key:e})}),this),l=new t(a);return r.on("reset",(function(e){var t=[];l.each((function(i){"submit"!=i.get("type")?t.push(e.findWhere({key:i.get("key")})):t.push(i)})),l.options={formModel:i},l.reset(t)})),l},defaultFormContentView:function(){return e}})})),i("controllers/uniqueFieldError",[],(function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("fields"),"change:modelValue",this.removeError),this.listenTo(nfRadio.channel("fields"),"keyup:field",this.removeError),this.listenTo(nfRadio.channel("fields"),"blur:field",this.removeError)},removeError:function(e,t){t=t||e,nfRadio.channel("fields").request("remove:error",t.get("id"),"unique_field")}})}));let n=[];i("models/fieldRepeaterSetModel",[],(function(){return Backbone.Model.extend({initialize:function(e,t){this.repeaterFieldModel=t.repeaterFieldModel,this.set("label",this.repeaterFieldModel.get("label")),e&&t&&this.initAllRepeaterFieldsModels(e,t),nfRadio.channel("field-repeater").reply("get:repeaterFields",this.getRepeaterFields,this),nfRadio.channel("field-repeater").reply("get:repeaterFieldById",this.getRepeaterFieldById,this),nfRadio.channel("field-repeater").reply("get:repeaterModels",this.getAllRepeaterFieldsModels,this),nfRadio.channel("field-repeater").reply("get:repeaterFieldsetsByForm",this.getAllFieldsetsByForm,this),nfRadio.channel("field-repeater").reply("get:repeaterFieldsModelsArrayByForm",this.getAllFieldsModelsArrayByForm,this),this.listenTo(nfRadio.channel("field-repeater"),"set:repeaterModels",this.setAllRepeaterFieldsModels),this.listenTo(nfRadio.channel("field-repeater"),"set:value",this.setAllRepeatersValues)},setAllRepeaterFieldsModels:function(){this.set("repeaterFieldsetsModels",n),this.allRepeatersFieldsetsModels=n},initAllRepeaterFieldsModels:function(e,t){const i=t.repeaterFieldModel.get("formID"),r=t.repeaterFieldModel.get("id"),o=e.fields.models;let a=n.find((e=>e.id===r&&e.form===i));a?a.fields=a.fields.concat(o):n.push({form:i,id:r,fields:o}),this.setAllRepeaterFieldsModels()},getAllRepeaterFieldsModels:function(){return n},getAllFieldsetsByForm:function(e){const t=this.getAllRepeaterFieldsModels().filter((t=>t.form===e));return t},getAllFieldsModelsArrayByForm:function(e){const t=this.getAllFieldsetsByForm(e);let i=[];return t.map((e=>{i=i.concat(e.fields)})),i},getRepeaterFields:function(e){const t=this.getAllRepeaterFieldsModels();let i=t.find((t=>String(t.id)===String(e)));return void 0===i&&(i=this.reverseResearchFieldsetModel(e,t)),i},reverseResearchFieldsetModel:function(e,t){let i;return _.each(t,(function(t){_.each(t.fields,(function(n){String(n.id).startsWith(e)&&(i=t)}))})),i},getRepeaterFieldById:function(e){const t=String(e).split(".")[0],i=this.getRepeaterFields(t);if(void 0===i)return;return i.fields.find((t=>t.id===e))},setAllRepeatersValues:function(){const e=this.getAllRepeaterFieldsModels();e.length>0&&_.each(e,(function(e){let t=e.fields,i=nfRadio.channel("fields").request("get:field",e.id);if(t.length>0){let e={};_.each(t,(function(t){let i=t.get("value"),n=t.get("id");if(n.split("_").length>2){let t=n.split("_");t[1]=t[1].split(".")[1];let i=t[0]+"."+t[1]+"_"+t[2];delete e[n],n=i}e[n]={value:i,id:n},"file_upload"===t.get("type")&&t.get("value")&&(e[n].files=t.attributes.files)})),i.set("isUpdated",!1),nfRadio.channel("nfAdmin").request("update:field",i,e)}}))}})})),i("models/fieldRepeaterSetCollection",["models/fieldRepeaterSetModel","models/fieldCollection"],(function(e,t){return Backbone.Collection.extend({model:e,initialize:function(e,t){this.options=t,this.listenTo(nfRadio.channel("field-repeater"),"sort:fieldsets",this.sortIDs),this.listenTo(nfRadio.channel("field-repeater"),"remove:fieldset",this.removeSet),this.listenTo(nfRadio.channel("field-repeater"),"add:fieldset",this.addSet),nfRadio.channel("field-repeater").reply("get:fieldsets",this.getFieldSets,this)},addSet:function(e=!1){if(e){const i=this.options.repeaterFieldModel.id===e&&this.options.repeaterFieldModel;if(i){let e=new t(this.options.templateFields,{formModel:this.options.formModel,repeaterFieldModel:i});this.add({fields:e},{repeaterFieldModel:i})}}this.sortIDs()},removeSet:function(e){this.removeRequiredFieldsErrors(e);const t=e.repeaterFieldModel.get("formID"),i=e.repeaterFieldModel.get("id"),r=n.find((e=>e.id===i&&e.form===t));r&&(_.each(r.fields,((t,i)=>{void 0!==t&&_.each(e.get("fields").models,(e=>{const n=void 0!==t.id?t.id:t.get("id");e.id===n&&r.fields.splice(i,1)}))})),nfRadio.channel("field-repeater").trigger("set:repeaterModels")),this.remove(e),e.destroy(),this.sortIDs(),nfRadio.channel("field-repeater").trigger("set:value")},removeRequiredFieldsErrors:function(e){let t=e.get("fields");_.each(t.models,(function(e){nfRadio.channel("fields").request("remove:error",e.get("id"),"required-error")}))},getFieldsets:function(){return this.models},sortIDs:function(){const e=this.getFieldsets();_.each(e,(function(e,t){let i=e.get("fields");e.set("index",t+1),_.each(i.models,(function(e){const i=String(e.id).split("_")[0],n=String(i).split(".").length>1&&String(i).split(".").pop();if(!n)return;const r=e.collection.options.repeaterFieldModel.id+"."+n+"_"+t;e.set("id",r)}))})),nfRadio.channel("field-repeater").trigger("rerender:fieldsets")}})})),i("controllers/fieldRepeater",["models/fieldRepeaterSetCollection","models/fieldCollection"],(function(e,t){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("repeater"),"init:model",this.initRepeater)},initRepeater:function(i){if(void 0===i.collection.options.formModel)return!1;let n=new t(i.get("fields"),{formModel:i.collection.options.formModel,repeaterFieldModel:i});i.set("sets",new e([{fields:n}],{templateFields:i.get("fields"),formModel:i.collection.options.formModel,repeaterFieldModel:i})),nfRadio.channel("field-repeater").trigger("sort:fieldsets")}})})),i("controllers/loadControllers",["controllers/formData","controllers/fieldError","controllers/changeField","controllers/changeEmail","controllers/changeDate","controllers/fieldCheckbox","controllers/fieldCheckboxList","controllers/fieldImageList","controllers/fieldRadio","controllers/fieldNumber","controllers/mirrorField","controllers/confirmField","controllers/updateFieldModel","controllers/submitButton","controllers/submitDebug","controllers/getFormErrors","controllers/validateRequired","controllers/submitError","controllers/actionRedirect","controllers/actionSuccess","controllers/fieldSelect","controllers/coreSubmitResponse","controllers/fieldProduct","controllers/fieldTotal","controllers/fieldQuantity","controllers/calculations","controllers/dateBackwardsCompat","controllers/fieldDate","controllers/fieldRecaptcha","controllers/fieldRecaptchaV3","controllers/fieldHTML","controllers/helpText","controllers/fieldTextbox","controllers/fieldTextareaRTE","controllers/fieldStarRating","controllers/fieldTerms","controllers/formContentFilters","controllers/loadViews","controllers/formErrors","controllers/submit","controllers/defaultFilters","controllers/uniqueFieldError","controllers/fieldRepeater"],(function(e,t,i,n,r,o,a,l,s,d,c,f,u,h,m,g,p,v,y,b,R,_,w,F,x,M,C,k,T,E,j,q,D,V,O,I,Q,S,L,A,N,z,B){return Marionette.Object.extend({initialize:function(){new S,new L,new A,new o,new a,new l,new s,new d,new R,new w,new F,new x,new T,new E,new j,new q,new D,new V,new O,new I,new Q,new z,new B,new t,new i,new n,new r,new c,new f,new u,new h,new m,new g,new p,new v,new y,new b,new _,new M,new N,new C,new k,new e}})})),i("views/beforeForm",[],(function(){return Marionette.ItemView.extend({tagName:"nf-section",template:"#tmpl-nf-before-form"})})),i("views/formErrorItem",[],(function(){return Marionette.ItemView.extend({tagName:"nf-section",template:"#tmpl-nf-form-error",onRender:function(){}})})),i("views/formErrorCollection",["views/formErrorItem"],(function(e){return Marionette.CollectionView.extend({tagName:"nf-errors",childView:e})})),i("views/honeyPot",[],(function(){return Marionette.ItemView.extend({tagName:"nf-section",template:"#tmpl-nf-form-hp",events:{"keyup .nf-field-hp":"maybeError","change .nf-field-hp":"maybeError"},maybeError:function(e){if(0==jQuery(e.target).val().length)nfRadio.channel("form-"+this.model.get("id")).request("remove:error","honeyPot");else{var t=nfRadio.channel("app").request("get:form",this.model.get("id"));nfRadio.channel("form-"+this.model.get("id")).request("add:error","honeyPot",t.get("settings").honeypotHoneypotError)}}})})),i("views/afterFormContent",["views/formErrorCollection","views/honeyPot"],(function(e,t){return Marionette.LayoutView.extend({tagName:"nf-section",template:"#tmpl-nf-after-fields",regions:{errors:".nf-form-errors",hp:".nf-form-hp"},onShow:function(){this.errors.show(new e({collection:this.model.get("errors")})),this.hp.show(new t({model:this.model}))}})})),i("views/beforeFormContent",[],(function(){return Marionette.ItemView.extend({tagName:"nf-section",template:"#tmpl-nf-before-fields",templateHelpers:function(){return{renderFieldsMarkedRequired:function(){return this.fields.filter({required:1}).length?this.fieldsMarkedRequired:""}}}})})),i("views/formLayout",["views/afterFormContent","views/beforeFormContent","models/fieldCollection"],(function(e,t,i){return Marionette.LayoutView.extend({tagName:"nf-section",template:"#tmpl-nf-form-layout",regions:{beforeFormContent:".nf-before-form-content",formContent:".nf-form-content",afterFormContent:".nf-after-form-content"},initialize:function(){nfRadio.channel("form-"+this.model.get("id")).reply("get:el",this.getEl,this),this.listenTo(this.model,"hide",this.hide)},onRender:function(){this.$el=this.$el.children(),this.$el.unwrap(),this.setElement(this.$el)},onShow:function(){this.beforeFormContent.show(new t({model:this.model}));var i=this.model.get("formContentData"),n=nfRadio.channel("formContent").request("get:viewFilters"),r=_.without(n,void 0),o=_.first(r);formContentView=o();var a={data:i,formModel:this.model};!1!=i instanceof Backbone.Collection?a.collection=i:!1!=i instanceof Backbone.Model&&(a.model=i),this.formContent.show(new formContentView(a)),this.afterFormContent.show(new e({model:this.model}))},getEl:function(){return this.el},templateHelpers:function(){return{renderClasses:function(){return""}}},hide:function(){jQuery(this.el).hide()}})})),i("views/afterForm",[],(function(){return Marionette.ItemView.extend({tagName:"nf-section",template:"#tmpl-nf-after-form"})})),i("views/mainLayout",["views/beforeForm","views/formLayout","views/afterForm"],(function(e,t,i){return Marionette.LayoutView.extend({template:"#tmpl-nf-layout",regions:{responseMsg:".nf-response-msg",beforeForm:".nf-before-form",formLayout:".nf-form-layout",afterForm:".nf-after-form"},initialize:function(){this.$el=jQuery("#nf-form-"+this.model.id+"-cont"),this.el="#nf-form-"+this.model.id+"-cont",this.render(),this.beforeForm.show(new e({model:this.model})),this.formLayout.show(new t({model:this.model,fieldCollection:this.options.fieldCollection})),this.afterForm.show(new i({model:this.model})),this.listenTo(this.model,"hide",this.hide)},hide:function(){jQuery(this.el).find(".nf-form-title").hide()}})}));var r=function(e,t,i){void 0!==e&&0<e.length?this.locale=e.split("_").join("-"):this.locale="en-US",this.thousands_sep=t||",",this.decimal_sep=i||".",this.uniqueElememts=function(e,t,i){return i.indexOf(e)===t},this.numberDecoder=function(e){var t="",i=!1;"-"===(e=e.toString()).charAt(0)&&(i=!0,e=e.replace("-",""));var n=(e=(e=e.replace(/\s/g,"")).replace(/&nbsp;/g,"")).split("").filter((function(e){return!e.match(/[0-9]/)})),r=n.filter(this.uniqueElememts);switch(r.length){case 0:t=e;break;case 1:var o="";if(1==n.length)separator=n.pop(),o=3==e.split(separator).pop().length&&separator==this.thousands_sep?"":".";else separator=r.pop();t=e.split(separator).join(o);break;case 2:var a,l=r[0];a="."===l?new RegExp("[.]","g"):new RegExp(l,"g"),t=e.replace(a,"");var s,d=r[1];s="."===d?new RegExp("[.]","g"):new RegExp(d,"g"),t=t.replace(s,".");break;default:return"NaN"}return i&&(t="-"+t),this.debug("Number Decoder "+e+" -> "+t),t},this.numberEncoder=function(e,t){return e=this.numberDecoder(e),Intl.NumberFormat(this.locale,{minimumFractionDigits:t,maximumFractionDigits:t}).format(e)},this.debug=function(e){window.nfLocaleConverterDebug&&console.log(e)}};i("../nfLocaleConverter",(function(){})),void 0!==nfInlineVars.nfForms&&(window.nfForms=nfInlineVars.nfForms),function(e){var t=e.fn.val;e.fn.val=function(){var i;arguments.length>0&&(i=t.apply(this,[]));var n=t.apply(this,arguments);return arguments.length>0&&i!=t.apply(this,[])&&e(this).hasClass("nf-element")&&e(this).change(),n}}(jQuery),document.addEventListener("DOMContentLoaded",(function(){t(["models/formCollection","models/formModel","models/fieldCollection","controllers/loadControllers","views/mainLayout","../nfLocaleConverter"],(function(e,t,i,n,o){if("undefined"!=typeof nfForms){var a=Marionette.Application.extend({forms:{},initialize:function(e){var t=this;Marionette.Renderer.render=function(e,i){return(e=t.template(e))(i)},this.urlParameters=_.object(_.compact(_.map(location.search.slice(1).split("&"),(function(e){if(e)return e.split("=")})))),void 0!==this.urlParameters.nf_resume&&this.listenTo(nfRadio.channel("form-"+this.urlParameters.nf_resume),"loaded",this.restart),nfRadio.channel("app").reply("locale:decodeNumber",this.decodeNumber),nfRadio.channel("app").reply("locale:encodeNumber",this.encodeNumber);new n;nfRadio.channel("app").trigger("after:loadControllers"),nfRadio.channel("app").reply("get:template",this.template)},onStart:function(){var e=nfRadio.channel("app").request("get:forms");_.each(e.models,(function(e,t){var i=new o({model:e,fieldCollection:e.get("fields")});nfRadio.channel("form").trigger("render:view",i),jQuery(document).trigger("nfFormReady",i)}))},restart:function(e){if(void 0!==this.urlParameters.nf_resume){var t={action:"nf_ajax_submit",security:nfFrontEnd.ajaxNonce,nf_resume:this.urlParameters};nfRadio.channel("form-"+e.get("id")).trigger("disable:submit"),nfRadio.channel("form-"+e.get("id")).trigger("processingLabel"),this.listenTo(nfRadio.channel("form"),"render:view",(function(){jQuery("#nf-form-"+e.get("id")+"-cont .nf-field-container:not(.submit-container)").hide()})),jQuery.ajax({url:nfFrontEnd.adminAjax,type:"POST",data:t,cache:!1,success:function(t,i,n){try{var r=t;nfRadio.channel("forms").trigger("submit:response",r,i,n,e.get("id")),nfRadio.channel("form-"+e.get("id")).trigger("submit:response",r,i,n)}catch(e){console.log("Parse Error")}},error:function(e,t,i){console.log("ERRORS: "+t),nfRadio.channel("forms").trigger("submit:response","error",t,e,i)}})}},template:function(e){return _.template(jQuery(e).html(),{evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g,variable:"data"})},encodeNumber:function(e){return new r(nfi18n.siteLocale,nfi18n.thousands_sep,nfi18n.decimal_point).numberEncoder(e)},decodeNumber:function(e){return new r(nfi18n.siteLocale,nfi18n.thousands_sep,nfi18n.decimal_point).numberDecoder(e)}});(new a).start()}else jQuery(".nf-form-cont").empty()}))})),i("main",(function(){}))}();
(function(){var requirejs,require,define;(function(undef){var main,req,makeMap,handlers,defined={},waiting={},config={},defining={},hasOwn=Object.prototype.hasOwnProperty,aps=[].slice,jsSuffixRegExp=/\.js$/;function hasProp(obj,prop){return hasOwn.call(obj,prop);}
function normalize(name,baseName){var nameParts,nameSegment,mapValue,foundMap,lastIndex,foundI,foundStarMap,starI,i,j,part,baseParts=baseName&&baseName.split("/"),map=config.map,starMap=(map&&map['*'])||{};if(name&&name.charAt(0)==="."){if(baseName){name=name.split('/');lastIndex=name.length-1;if(config.nodeIdCompat&&jsSuffixRegExp.test(name[lastIndex])){name[lastIndex]=name[lastIndex].replace(jsSuffixRegExp,'');}
name=baseParts.slice(0,baseParts.length-1).concat(name);for(i=0;i<name.length;i+=1){part=name[i];if(part==="."){name.splice(i,1);i-=1;}else if(part===".."){if(i===1&&(name[2]==='..'||name[0]==='..')){break;}else if(i>0){name.splice(i-1,2);i-=2;}}}
name=name.join("/");}else if(name.indexOf('./')===0){name=name.substring(2);}}
if((baseParts||starMap)&&map){nameParts=name.split('/');for(i=nameParts.length;i>0;i-=1){nameSegment=nameParts.slice(0,i).join("/");if(baseParts){for(j=baseParts.length;j>0;j-=1){mapValue=map[baseParts.slice(0,j).join('/')];if(mapValue){mapValue=mapValue[nameSegment];if(mapValue){foundMap=mapValue;foundI=i;break;}}}}
if(foundMap){break;}
if(!foundStarMap&&starMap&&starMap[nameSegment]){foundStarMap=starMap[nameSegment];starI=i;}}
if(!foundMap&&foundStarMap){foundMap=foundStarMap;foundI=starI;}
if(foundMap){nameParts.splice(0,foundI,foundMap);name=nameParts.join('/');}}
return name;}
function makeRequire(relName,forceSync){return function(){var args=aps.call(arguments,0);if(typeof args[0]!=='string'&&args.length===1){args.push(null);}
return req.apply(undef,args.concat([relName,forceSync]));};}
function makeNormalize(relName){return function(name){return normalize(name,relName);};}
function makeLoad(depName){return function(value){defined[depName]=value;};}
function callDep(name){if(hasProp(waiting,name)){var args=waiting[name];delete waiting[name];defining[name]=true;main.apply(undef,args);}
if(!hasProp(defined,name)&&!hasProp(defining,name)){throw new Error('No '+name);}
return defined[name];}
function splitPrefix(name){var prefix,index=name?name.indexOf('!'):-1;if(index>-1){prefix=name.substring(0,index);name=name.substring(index+1,name.length);}
return[prefix,name];}
makeMap=function(name,relName){var plugin,parts=splitPrefix(name),prefix=parts[0];name=parts[1];if(prefix){prefix=normalize(prefix,relName);plugin=callDep(prefix);}
if(prefix){if(plugin&&plugin.normalize){name=plugin.normalize(name,makeNormalize(relName));}else{name=normalize(name,relName);}}else{name=normalize(name,relName);parts=splitPrefix(name);prefix=parts[0];name=parts[1];if(prefix){plugin=callDep(prefix);}}
return{f:prefix?prefix+'!'+name:name,n:name,pr:prefix,p:plugin};};function makeConfig(name){return function(){return(config&&config.config&&config.config[name])||{};};}
handlers={require:function(name){return makeRequire(name);},exports:function(name){var e=defined[name];if(typeof e!=='undefined'){return e;}else{return(defined[name]={});}},module:function(name){return{id:name,uri:'',exports:defined[name],config:makeConfig(name)};}};main=function(name,deps,callback,relName){var cjsModule,depName,ret,map,i,args=[],callbackType=typeof callback,usingExports;relName=relName||name;if(callbackType==='undefined'||callbackType==='function'){deps=!deps.length&&callback.length?['require','exports','module']:deps;for(i=0;i<deps.length;i+=1){map=makeMap(deps[i],relName);depName=map.f;if(depName==="require"){args[i]=handlers.require(name);}else if(depName==="exports"){args[i]=handlers.exports(name);usingExports=true;}else if(depName==="module"){cjsModule=args[i]=handlers.module(name);}else if(hasProp(defined,depName)||hasProp(waiting,depName)||hasProp(defining,depName)){args[i]=callDep(depName);}else if(map.p){map.p.load(map.n,makeRequire(relName,true),makeLoad(depName),{});args[i]=defined[depName];}else{throw new Error(name+' missing '+depName);}}
ret=callback?callback.apply(defined[name],args):undefined;if(name){if(cjsModule&&cjsModule.exports!==undef&&cjsModule.exports!==defined[name]){defined[name]=cjsModule.exports;}else if(ret!==undef||!usingExports){defined[name]=ret;}}}else if(name){defined[name]=callback;}};requirejs=require=req=function(deps,callback,relName,forceSync,alt){if(typeof deps==="string"){if(handlers[deps]){return handlers[deps](callback);}
return callDep(makeMap(deps,callback).f);}else if(!deps.splice){config=deps;if(config.deps){req(config.deps,config.callback);}
if(!callback){return;}
if(callback.splice){deps=callback;callback=relName;relName=null;}else{deps=undef;}}
callback=callback||function(){};if(typeof relName==='function'){relName=forceSync;forceSync=alt;}
if(forceSync){main(undef,deps,callback,relName);}else{setTimeout(function(){main(undef,deps,callback,relName);},4);}
return req;};req.config=function(cfg){return req(cfg);};requirejs._defined=defined;define=function(name,deps,callback){if(typeof name!=='string'){throw new Error('See almond README: incorrect module build, no module name');}
if(!deps.splice){callback=deps;deps=[];}
if(!hasProp(defined,name)&&!hasProp(waiting,name)){waiting[name]=[name,deps,callback];}};define.amd={jQuery:true};}());define("../lib/almond",function(){});define('models/whenModel',[],function(){var model=Backbone.Model.extend({initialize:function(models,options){if(!this.get('key')||!this.get('comparator'))return;if('calc'==this.get('type')){var calcModel=nfRadio.channel('form-'+this.collection.options.condition.collection.formModel.get('id')).request('get:calc',this.get('key'));this.listenTo(calcModel,'change:value',this.updateCalcCompare);this.updateCalcCompare(calcModel);}else{var fieldModel=nfRadio.channel('form-'+options.condition.collection.formModel.get('id')).request('get:fieldByKey',this.get('key'));if('undefined'==typeof fieldModel)return;fieldModel.on('change:value',this.updateFieldCompare,this);this.listenTo(nfRadio.channel('field-'+fieldModel.get('id')),'keyup:field',this.maybeupdateFieldCompare);this.updateFieldCompare(fieldModel);fieldModel.on('change:visible',this.updateFieldCompare,this);}},updateCalcCompare:function(calcModel){this.updateCompare(calcModel.get('value'));},maybeupdateFieldCompare:function(el,fieldModel,keyCode){if('checkbox'==fieldModel.get('type')){var fieldValue=('checked'==jQuery(el).attr('checked'))?1:0;}else if('listcheckbox'==fieldModel.get('type')){var fieldValue=fieldModel.get('value').join();}else if('date'==fieldModel.get('type')){var fieldValue=fieldModel.get('value');if(_.isEmpty(fieldValue)){fieldValue='1970/01/01';}
let date_mode=fieldModel.get('date_mode');if('undefined'==typeof date_mode){date_mode='date_only';}
let date=0;if('time_only'==fieldModel.get('date_mode')){date='1970/01/01';}else{date=fieldValue;}
let hour=fieldModel.get('selected_hour');if('undefined'==typeof hour){hour='00';}
let minute=fieldModel.get('selected_minute');if('undefined'==typeof minute){minute='00';}
if('date_and_time'==date_mode&&'1970/01/01'==date){fieldValue=false;}else{fieldValue=date+' '+hour+':'+minute+' UT';let dateObject=new Date(fieldValue);fieldValue=Math.floor(dateObject.getTime()/1000);}}else{var fieldValue=jQuery(el).val();}
this.updateFieldCompare(fieldModel,null,fieldValue);},updateCompare:function(value){var this_val=this.get('value');if('calc'===this.get('type')){this_val=Number(this_val);value=Number(value);}
var status=this.compareValues[this.get('comparator')](value,this_val);this.set('status',status);},updateFieldCompare:function(fieldModel,val,fieldValue){if(_.isEmpty(fieldValue)){fieldValue=fieldModel.get('value');}
if('checkbox'==fieldModel.get('type')){if(0==fieldValue){fieldValue='unchecked';}else{fieldValue='checked';}}else if('date'==fieldModel.get('type')){if(_.isEmpty(fieldValue)){fieldValue='1970/01/01';}
let date_mode=fieldModel.get('date_mode');if('undefined'==typeof date_mode){date_mode='date_only';}
let date=0;if('time_only'==fieldModel.get('date_mode')){date='1970/01/01';}else{date=fieldValue;}
let hour=fieldModel.get('selected_hour');if('undefined'==typeof hour){hour='00';}
let ampm=fieldModel.get('selected_ampm');if('undefined'!=typeof ampm){if('pm'==ampm&&'12'!=hour){hour=parseInt(hour)+12;}else if('am'==ampm&&'12'==hour){hour='00';}}
let minute=fieldModel.get('selected_minute');if('undefined'==typeof minute){minute='00';}
if('date_and_time'==date_mode&&'1970/01/01'==date){fieldValue=false;}else{fieldValue=date+' '+hour+':'+minute+' UT';let dateObject=new Date(fieldValue);fieldValue=Math.floor(dateObject.getTime()/1000);}}
this.updateCompare(fieldValue);if(!fieldModel.get('visible')){this.set('status',false);}},compareValues:{'equal':function(a,b){return a==b;},'notequal':function(a,b){return a!=b;},'contains':function(a,b){if(jQuery.isArray(a)){return a.indexOf(b)>=0;}else{if(b.indexOf('"')>=0){b=b.replace(/['"]+/g,'');return new RegExp("\\b"+b+"\\b").test(a);}
return a.toLowerCase().indexOf(b.toLowerCase())>=0;}},'notcontains':function(a,b){return!this.contains(a,b);},'greater':function(a,b){if(jQuery.isNumeric(b)){return parseFloat(a)>parseFloat(b);}else if('string'==typeof a){return 0<a.length;}},'less':function(a,b){if(jQuery.isNumeric(b)){return parseFloat(a)<parseFloat(b);}else if('string'==typeof a){return 0>=a.length;}},'greaterequal':function(a,b){return parseFloat(a)>parseFloat(b)||parseFloat(a)==parseFloat(b);},'lessequal':function(a,b){return parseFloat(a)<parseFloat(b)||parseFloat(a)==parseFloat(b);}}});return model;});define('models/whenCollection',['models/whenModel'],function(WhenModel){var collection=Backbone.Collection.extend({model:WhenModel,initialize:function(models,options){this.options=options;}});return collection;});define('models/conditionModel',['models/whenCollection'],function(WhenCollection){var model=Backbone.Model.extend({initialize:function(options){this.set('when',new WhenCollection(this.get('when'),{condition:this}));this.get('when').on('change:status',this.checkWhen,this);this.checkWhen();},checkWhen:function(){var statusResults=this.get('when').pluck('status');var connectors=this.get('when').pluck('connector');var allAND=_.every(_.values(connectors),function(v){return v=='AND'},this);if(allAND){var status=_.every(_.values(statusResults),function(v){return v;},this);}else{var status=_.some(_.values(statusResults),function(v){return v;},this);}
if(status){_.each(this.get('then'),function(then,index){nfRadio.channel('condition:trigger').request(then.trigger,this,then);},this);}else{_.each(this.get('else'),function(elseData,index){nfRadio.channel('condition:trigger').request(elseData.trigger,this,elseData);},this);}}});return model;});define('models/conditionCollection',['models/conditionModel'],function(ConditionModel){var collection=Backbone.Collection.extend({model:ConditionModel,initialize:function(models,options){this.formModel=options.formModel;}});return collection;});define('controllers/initCollection',['models/conditionCollection'],function(ConditionCollection){var controller=Marionette.Object.extend({initialize:function(formModel){this.collection=new ConditionCollection(formModel.get('conditions'),{formModel:formModel});this.listenTo(nfRadio.channel('fields'),'reset:collection',this.resetCollection);},resetCollection:function(fieldsCollection){var formModel=fieldsCollection.options.formModel;this.collection=new ConditionCollection(formModel.get('conditions'),{formModel:formModel});}});return controller;});define('controllers/showHide',[],function(){var controller=Marionette.Object.extend({initialize:function(){nfRadio.channel('condition:trigger').reply('hide_field',this.hideField,this);nfRadio.channel('condition:trigger').reply('show_field',this.showField,this);},hideField:function(conditionModel,then){var targetFieldModel=nfRadio.channel('form-'+conditionModel.collection.formModel.get('id')).request('get:fieldByKey',then.key);if('undefined'==typeof targetFieldModel)return;targetFieldModel.set('visible',false);if(!targetFieldModel.get('clean')){targetFieldModel.trigger('change:value',targetFieldModel);}
nfRadio.channel('fields').request('remove:error',targetFieldModel.get('id'),'required-error');},showField:function(conditionModel,then){var targetFieldModel=nfRadio.channel('form-'+conditionModel.collection.formModel.get('id')).request('get:fieldByKey',then.key);if('undefined'==typeof targetFieldModel)return;targetFieldModel.set('visible',true);if(!targetFieldModel.get('clean')){targetFieldModel.trigger('change:value',targetFieldModel);}
if('recaptcha'===targetFieldModel.get('type')){this.renderRecaptcha();}
var viewEl={el:nfRadio.channel('form-'+conditionModel.collection.formModel.get('id')).request('get:el')};nfRadio.channel('form').request('init:help',viewEl);},renderRecaptcha:function(){jQuery('.g-recaptcha').each(function(){var callback=jQuery(this).data('callback');var fieldID=jQuery(this).data('fieldid');if(typeof window[callback]!=='function'){window[callback]=function(response){nfRadio.channel('recaptcha').request('update:response',response,fieldID);};}
var opts={theme:jQuery(this).data('theme'),sitekey:jQuery(this).data('sitekey'),callback:callback};grecaptcha.render(jQuery(this)[0],opts);});}});return controller;});define('controllers/changeRequired',[],function(){var controller=Marionette.Object.extend({initialize:function(){nfRadio.channel('condition:trigger').reply('set_required',this.setRequired,this);nfRadio.channel('condition:trigger').reply('unset_required',this.unsetRequired,this);},setRequired:function(conditionModel,then){var targetFieldModel=nfRadio.channel('form-'+conditionModel.collection.formModel.get('id')).request('get:fieldByKey',then.key);if('undefined'==typeof targetFieldModel)return;targetFieldModel.set('required',1);targetFieldModel.trigger('reRender',targetFieldModel);},unsetRequired:function(conditionModel,then){var targetFieldModel=nfRadio.channel('form-'+conditionModel.collection.formModel.get('id')).request('get:fieldByKey',then.key);if('undefined'==typeof targetFieldModel)return;targetFieldModel.set('required',0);targetFieldModel.trigger('reRender',targetFieldModel);nfRadio.channel('fields').request('remove:error',targetFieldModel.get('id'),'required-error');}});return controller;});define('controllers/showHideOption',[],function(){var controller=Marionette.Object.extend({initialize:function(){nfRadio.channel('condition:trigger').reply('show_option',this.showOption,this);nfRadio.channel('condition:trigger').reply('hide_option',this.hideOption,this);},showOption:function(conditionModel,then){var option=this.getOption(conditionModel,then);option.visible=true;this.updateFieldModel(conditionModel,then);},hideOption:function(conditionModel,then){var option=this.getOption(conditionModel,then);option.visible=false;this.updateFieldModel(conditionModel,then);},getFieldModel:function(conditionModel,then){return nfRadio.channel('form-'+conditionModel.collection.formModel.get('id')).request('get:fieldByKey',then.key);},getOption:function(conditionModel,then){var targetFieldModel=this.getFieldModel(conditionModel,then);var options=targetFieldModel.get('options');return _.find(options,function(option){return option.value==then.value});},updateFieldModel:function(conditionModel,then){var targetFieldModel=this.getFieldModel(conditionModel,then);var options=targetFieldModel.get('options');targetFieldModel.set('options',options);targetFieldModel.trigger('reRender');}});return controller;});define('controllers/changeValue',[],function(){var controller=Marionette.Object.extend({initialize:function(){nfRadio.channel('condition:trigger').reply('change_value',this.changeValue,this);},changeValue:function(conditionModel,then){var targetFieldModel=nfRadio.channel('form-'+conditionModel.collection.formModel.get('id')).request('get:fieldByKey',then.key);if('checkbox'==targetFieldModel.get('type')){if('unchecked'==targetFieldModel.changed.value){then.value=1;}else if('checked'==targetFieldModel){then.value=0;}}
targetFieldModel.set('value',then.value);targetFieldModel.trigger('reRender',targetFieldModel);},});return controller;});define('controllers/selectDeselect',[],function(){var controller=Marionette.Object.extend({initialize:function(){nfRadio.channel('condition:trigger').reply('select_option',this.selectOption,this);nfRadio.channel('condition:trigger').reply('deselect_option',this.deselectOption,this);},selectOption:function(conditionModel,then){var targetFieldModel=nfRadio.channel('form-'+conditionModel.collection.formModel.get('id')).request('get:fieldByKey',then.key);if(_.contains(['listselect','listcountry','liststate'],targetFieldModel.get('type'))){targetFieldModel.set('clean',false);}
var options=targetFieldModel.get('options');var option=_.find(options,{value:then.value});option.selected=1;targetFieldModel.set('options',options);if(_.contains(['listselect','listcountry','liststate'],targetFieldModel.get('type'))){targetFieldModel.set('value',option.value);}else{var value=targetFieldModel.get('value');if(_.isArray(value)){if(0>value.indexOf(option.value)){value.push(option.value);targetFieldModel.set('value','');}}else{value=option.value;}
targetFieldModel.set('value',value);}
targetFieldModel.trigger('reRender',targetFieldModel);},deselectOption:function(conditionModel,then){var targetFieldModel=nfRadio.channel('form-'+conditionModel.collection.formModel.get('id')).request('get:fieldByKey',then.key);var options=targetFieldModel.get('options');var option=_.find(options,{value:then.value});option.selected=0;targetFieldModel.set('options',options);var currentValue=targetFieldModel.get('value');if(_.isArray(currentValue)){currentValue=_.without(currentValue,then.value);}else{currentValue='';}
targetFieldModel.set('value',currentValue);targetFieldModel.trigger('reRender',targetFieldModel);},});return controller;});define('controllers/actions',[],function(){var controller=Marionette.Object.extend({actions:{},initialize:function(){nfRadio.channel('condition:trigger').reply('activate_action',this.activateAction,this);nfRadio.channel('condition:trigger').reply('deactivate_action',this.deactivateAction,this);nfRadio.channel('actions').reply('get:status',this.getStatus,this);},activateAction:function(conditionModel,thenObject){this.actions[thenObject.key]=true;console.log('activate action');},deactivateAction:function(conditionModel,thenObject){console.log('deactivate action');this.actions[thenObject.key]=false;},getStatus:function($id){return this.actions[$id];}});return controller;});var nfRadio=Backbone.Radio;require(['controllers/initCollection','controllers/showHide','controllers/changeRequired','controllers/showHideOption','controllers/changeValue','controllers/selectDeselect','controllers/actions'],function(InitCollection,ShowHide,ChangeRequired,ShowHideOption,ChangeValue,SelectDeselect,Actions){var NFConditionalLogic=Marionette.Application.extend({initialize:function(options){this.listenTo(nfRadio.channel('form'),'after:loaded',this.loadControllers);},loadControllers:function(formModel){new ShowHide();new ChangeRequired();new ShowHideOption();new ChangeValue();new SelectDeselect();new Actions();new InitCollection(formModel);},onStart:function(){}});var nfConditionalLogic=new NFConditionalLogic();nfConditionalLogic.start();});define("main",function(){});}());
;var _initLayerSlider=function(i,t,e){var r=jQuery;r(document).ready(function(){void 0===r.fn.layerSlider?window._layerSlider&&window._layerSlider.showNotice&&window._layerSlider.showNotice(i,"jquery"):(e&&r.each(e,function(t,e){r(i).on(t,e)}),r(i).layerSlider(t))})};if("object"==typeof LS_Meta&&LS_Meta.fixGSAP){var LS_oldGS=window.GreenSockGlobals,LS_oldGSQueue=window._gsQueue,LS_oldGSDefine=window._gsDefine;window._gsDefine=null,delete window._gsDefine;var LS_GSAP=window.GreenSockGlobals={}}var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";function l(e){var i=e<1?Math.pow(10,(e+"").length-2):1;return function(t){return(Math.round(t/e)*e*i|0)/i}}function h(t,e){for(;t;)t.f||t.blob||(t.m=e||Math.round),t=t._next}var t,e,P,T,w,b,g,i,m,r;function y(t,e,i,r){i===r&&(i=r-(r-e)/1e6),t===e&&(e=t+(i-t)/1e6),this.a=t,this.b=e,this.c=i,this.d=r,this.da=r-t,this.ca=i-t,this.ba=e-t}function S(t,e,i,r){var n={a:t},s={},a={},o={c:r},l=(t+e)/2,h=(e+i)/2,u=(i+r)/2,_=(l+h)/2,f=(h+u)/2,c=(f-_)/8;return n.b=l+(t-l)/4,s.b=_+c,n.c=s.a=(n.b+s.b)/2,s.c=a.a=(_+f)/2,a.b=f-c,o.b=u+(r-u)/4,a.c=o.a=(a.b+o.b)/2,[n,s,a,o]}function v(t,e,i,r,n){var s,a,o,l,h,u,_,f,c,p,d,m,g,y=t.length-1,v=0,x=t[0].a;for(s=0;s<y;s++)a=(h=t[v]).a,o=h.d,l=t[v+1].d,f=n?(d=T[s],g=((m=w[s])+d)*e*.25/(r?.5:b[s]||.5),o-((u=o-(o-a)*(r?.5*e:0!==d?g/d:0))+(((_=o+(l-o)*(r?.5*e:0!==m?g/m:0))-u)*(3*d/(d+m)+.5)/4||0))):o-((u=o-(o-a)*e*.5)+(_=o+(l-o)*e*.5))/2,u+=f,_+=f,h.c=c=u,h.b=0!==s?x:x=h.a+.6*(h.c-h.a),h.da=o-a,h.ca=c-a,h.ba=x-a,i?(p=S(a,x,c,o),t.splice(v,1,p[0],p[1],p[2],p[3]),v+=4):v++,x=_;(h=t[v]).b=x,h.c=x+.4*(h.d-x),h.da=h.d-h.a,h.ca=h.c-h.a,h.ba=x-h.a,i&&(p=S(h.a,x,h.c,h.d),t.splice(v,1,p[0],p[1],p[2],p[3]))}function x(t,e,i,r){var n,s,a,o,l,h,u=[];if(r)for(s=(t=[r].concat(t)).length;-1<--s;)"string"==typeof(h=t[s][e])&&"="===h.charAt(1)&&(t[s][e]=r[e]+Number(h.charAt(0)+h.substr(2)));if((n=t.length-2)<0)return u[0]=new y(t[0][e],0,0,t[0][e]),u;for(s=0;s<n;s++)a=t[s][e],o=t[s+1][e],u[s]=new y(a,0,0,o),i&&(l=t[s+2][e],T[s]=(T[s]||0)+(o-a)*(o-a),w[s]=(w[s]||0)+(l-o)*(l-o));return u[s]=new y(t[s][e],0,0,t[s+1][e]),u}function c(t,e,i,r,n,s){var a,o,l,h,u,_,f,c,p={},d=[],m=s||t[0];for(o in n="string"==typeof n?","+n+",":",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",null==e&&(e=1),t[0])d.push(o);if(1<t.length){for(c=t[t.length-1],f=!0,a=d.length;-1<--a;)if(o=d[a],.05<Math.abs(m[o]-c[o])){f=!1;break}f&&(t=t.concat(),s&&t.unshift(s),t.push(t[1]),s=t[t.length-3])}for(T.length=w.length=b.length=0,a=d.length;-1<--a;)o=d[a],g[o]=-1!==n.indexOf(","+o+","),p[o]=x(t,o,g[o],s);for(a=T.length;-1<--a;)T[a]=Math.sqrt(T[a]),w[a]=Math.sqrt(w[a]);if(!r){for(a=d.length;-1<--a;)if(g[o])for(_=(l=p[d[a]]).length-1,h=0;h<_;h++)u=l[h+1].da/w[h]+l[h].da/T[h]||0,b[h]=(b[h]||0)+u*u;for(a=b.length;-1<--a;)b[a]=Math.sqrt(b[a])}for(a=d.length,h=i?4:1;-1<--a;)l=p[o=d[a]],v(l,e,i,r,g[o]),f&&(l.splice(0,h),l.splice(l.length-h,h));return p}function p(t,e,i){for(var r,n,s,a,o,l,h,u,_,f,c,p=1/i,d=t.length;-1<--d;)for(s=(f=t[d]).a,a=f.d-s,o=f.c-s,l=f.b-s,r=n=0,u=1;u<=i;u++)r=n-(n=((h=p*u)*h*a+3*(_=1-h)*(h*o+_*l))*h),e[c=d*i+u-1]=(e[c]||0)+r*r}_gsScope._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(r,u,v){function d(t){var e,i=[],r=t.length;for(e=0;e!==r;i.push(t[e++]));return i}function m(t,e,i){var r,n,s=t.cycle;for(r in s)n=s[r],t[r]="function"==typeof n?n(i,e[i],e):n[i%n.length];delete t.cycle}function g(t){if("function"==typeof t)return t;var p="object"==typeof t?t:{each:t},d=p.ease,m=p.from||0,g=p.base||0,y={},v=isNaN(m),x=p.axis,T={center:.5,end:1}[m]||0;return function(t,e,i){var r,n,s,a,o,l,h,u,_,f=(i||p).length,c=y[f];if(!c){if(!(_="auto"===p.grid?0:(p.grid||[1/0])[0])){for(h=-1/0;h<(h=i[_++].getBoundingClientRect().left)&&_<f;);_--}for(c=y[f]=[],r=v?Math.min(_,f)*T-.5:m%_,n=v?f*T/_-.5:m/_|0,u=1/(h=0),l=0;l<f;l++)s=l%_-r,a=n-(l/_|0),c[l]=o=x?Math.abs("y"===x?a:s):Math.sqrt(s*s+a*a),h<o&&(h=o),o<u&&(u=o);c.max=h-u,c.min=u,c.v=f=p.amount||p.each*(f<_?f-1:x?"y"===x?f/_:_:Math.max(_,f/_))||0,c.b=f<0?g-f:g}return f=(c[t]-c.min)/c.max,c.b+(d?d.getRatio(f):f)*c.v}}var y=function(t,e,i){v.call(this,t,e,i),this._cycle=0,this._yoyo=!0===this.vars.yoyo||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._repeat&&this._uncache(!0),this.render=y.prototype.render},x=1e-8,T=v._internals,w=T.isSelector,b=T.isArray,t=y.prototype=v.to({},.1,{}),P=[];y.version="2.1.3",t.constructor=y,t.kill()._gc=!1,y.killTweensOf=y.killDelayedCallsTo=v.killTweensOf,y.getTweensOf=v.getTweensOf,y.lagSmoothing=v.lagSmoothing,y.ticker=v.ticker,y.render=v.render,y.distribute=g,t.invalidate=function(){return this._yoyo=!0===this.vars.yoyo||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._yoyoEase=null,this._uncache(!0),v.prototype.invalidate.call(this)},t.updateTo=function(t,e){var i,r=this,n=r.ratio,s=r.vars.immediateRender||t.immediateRender;for(i in e&&r._startTime<r._timeline._time&&(r._startTime=r._timeline._time,r._uncache(!1),r._gc?r._enabled(!0,!1):r._timeline.insert(r,r._startTime-r._delay)),t)r.vars[i]=t[i];if(r._initted||s)if(e)r._initted=!1,s&&r.render(0,!0,!0);else if(r._gc&&r._enabled(!0,!1),r._notifyPluginsOfEnabled&&r._firstPT&&v._onPluginEvent("_onDisable",r),.998<r._time/r._duration){var a=r._totalTime;r.render(0,!0,!1),r._initted=!1,r.render(a,!0,!1)}else if(r._initted=!1,r._init(),0<r._time||s)for(var o,l=1/(1-n),h=r._firstPT;h;)o=h.s+h.c,h.c*=l,h.s=o-h.c,h=h._next;return r},t.render=function(t,e,i){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var r,n,s,a,o,l,h,u,_,f=this,c=f._dirty?f.totalDuration():f._totalDuration,p=f._time,d=f._totalTime,m=f._cycle,g=f._duration,y=f._rawPrevTime;if(c-x<=t&&0<=t?(f._totalTime=c,f._cycle=f._repeat,f._yoyo&&0!=(1&f._cycle)?(f._time=0,f.ratio=f._ease._calcEnd?f._ease.getRatio(0):0):(f._time=g,f.ratio=f._ease._calcEnd?f._ease.getRatio(1):1),f._reversed||(r=!0,n="onComplete",i=i||f._timeline.autoRemoveChildren),0!==g||!f._initted&&f.vars.lazy&&!i||(f._startTime===f._timeline._duration&&(t=0),(y<0||t<=0&&-x<=t||y===x&&"isPause"!==f.data)&&y!==t&&(i=!0,x<y&&(n="onReverseComplete")),f._rawPrevTime=u=!e||t||y===t?t:x)):t<x?(f._totalTime=f._time=f._cycle=0,f.ratio=f._ease._calcEnd?f._ease.getRatio(0):0,(0!==d||0===g&&0<y)&&(n="onReverseComplete",r=f._reversed),-x<t?t=0:t<0&&(f._active=!1,0!==g||!f._initted&&f.vars.lazy&&!i||(0<=y&&(i=!0),f._rawPrevTime=u=!e||t||y===t?t:x)),f._initted||(i=!0)):(f._totalTime=f._time=t,0!==f._repeat&&(a=g+f._repeatDelay,f._cycle=f._totalTime/a>>0,0!==f._cycle&&f._cycle===f._totalTime/a&&d<=t&&f._cycle--,f._time=f._totalTime-f._cycle*a,f._yoyo&&0!=(1&f._cycle)&&(f._time=g-f._time,(_=f._yoyoEase||f.vars.yoyoEase)&&(f._yoyoEase||(!0!==_||f._initted?f._yoyoEase=_=!0===_?f._ease:_ instanceof Ease?_:Ease.map[_]:(_=f.vars.ease,f._yoyoEase=_=_?_ instanceof Ease?_:"function"==typeof _?new Ease(_,f.vars.easeParams):Ease.map[_]||v.defaultEase:v.defaultEase)),f.ratio=_?1-_.getRatio((g-f._time)/g):0)),f._time>g?f._time=g:f._time<0&&(f._time=0)),f._easeType&&!_?(o=f._time/g,(1===(l=f._easeType)||3===l&&.5<=o)&&(o=1-o),3===l&&(o*=2),1===(h=f._easePower)?o*=o:2===h?o*=o*o:3===h?o*=o*o*o:4===h&&(o*=o*o*o*o),f.ratio=1===l?1-o:2===l?o:f._time/g<.5?o/2:1-o/2):_||(f.ratio=f._ease.getRatio(f._time/g))),p!==f._time||i||m!==f._cycle){if(!f._initted){if(f._init(),!f._initted||f._gc)return;if(!i&&f._firstPT&&(!1!==f.vars.lazy&&f._duration||f.vars.lazy&&!f._duration))return f._time=p,f._totalTime=d,f._rawPrevTime=y,f._cycle=m,T.lazyTweens.push(f),void(f._lazy=[t,e]);!f._time||r||_?r&&this._ease._calcEnd&&!_&&(f.ratio=f._ease.getRatio(0===f._time?0:1)):f.ratio=f._ease.getRatio(f._time/g)}for(!1!==f._lazy&&(f._lazy=!1),f._active||!f._paused&&f._time!==p&&0<=t&&(f._active=!0),0===d&&(2===f._initted&&0<t&&f._init(),f._startAt&&(0<=t?f._startAt.render(t,!0,i):n=n||"_dummyGS"),!f.vars.onStart||0===f._totalTime&&0!==g||(e||f._callback("onStart"))),s=f._firstPT;s;)s.f?s.t[s.p](s.c*f.ratio+s.s):s.t[s.p]=s.c*f.ratio+s.s,s=s._next;f._onUpdate&&(t<0&&f._startAt&&f._startTime&&f._startAt.render(t,!0,i),e||f._totalTime===d&&!n||f._callback("onUpdate")),f._cycle!==m&&(e||f._gc||f.vars.onRepeat&&f._callback("onRepeat")),!n||f._gc&&!i||(t<0&&f._startAt&&!f._onUpdate&&f._startTime&&f._startAt.render(t,!0,i),r&&(f._timeline.autoRemoveChildren&&f._enabled(!1,!1),f._active=!1),!e&&f.vars[n]&&f._callback(n),0===g&&f._rawPrevTime===x&&u!==x&&(f._rawPrevTime=0))}else d!==f._totalTime&&f._onUpdate&&(e||f._callback("onUpdate"))},y.to=function(t,e,i){return new y(t,e,i)},y.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new y(t,e,i)},y.fromTo=function(t,e,i,r){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,new y(t,e,r)},y.staggerTo=y.allTo=function(t,e,i,r,n,s,a){var o,l,h,u,_=[],f=g(i.stagger||r),c=i.cycle,p=(i.startAt||P).cycle;for(b(t)||("string"==typeof t&&(t=v.selector(t)||t),w(t)&&(t=d(t))),o=(t=t||[]).length-1,h=0;h<=o;h++){for(u in l={},i)l[u]=i[u];if(c&&(m(l,t,h),null!=l.duration&&(e=l.duration,delete l.duration)),p){for(u in p=l.startAt={},i.startAt)p[u]=i.startAt[u];m(l.startAt,t,h)}l.delay=f(h,t[h],t)+(l.delay||0),h===o&&n&&(l.onComplete=function(){i.onComplete&&i.onComplete.apply(i.onCompleteScope||this,arguments),n.apply(a||i.callbackScope||this,s||P)}),_[h]=new y(t[h],e,l)}return _},y.staggerFrom=y.allFrom=function(t,e,i,r,n,s,a){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,y.staggerTo(t,e,i,r,n,s,a)},y.staggerFromTo=y.allFromTo=function(t,e,i,r,n,s,a,o){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,y.staggerTo(t,e,r,n,s,a,o)},y.delayedCall=function(t,e,i,r,n){return new y(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:r,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,useFrames:n,overwrite:0})},y.set=function(t,e){return new y(t,0,e)},y.isTweening=function(t){return 0<v.getTweensOf(t,!0).length};var s=function(t,e){for(var i=[],r=0,n=t._first;n;)n instanceof v?i[r++]=n:(e&&(i[r++]=n),r=(i=i.concat(s(n,e))).length),n=n._next;return i},_=y.getAllTweens=function(t){return s(r._rootTimeline,t).concat(s(r._rootFramesTimeline,t))};y.killAll=function(t,e,i,r){null==e&&(e=!0),null==i&&(i=!0);var n,s,a,o=_(0!=r),l=o.length,h=e&&i&&r;for(a=0;a<l;a++)s=o[a],(h||s instanceof u||(n=s.target===s.vars.onComplete)&&i||e&&!n)&&(t?s.totalTime(s._reversed?0:s.totalDuration()):s._enabled(!1,!1))},y.killChildTweensOf=function(t,e){if(null!=t){var i,r,n,s,a,o=T.tweenLookup;if("string"==typeof t&&(t=v.selector(t)||t),w(t)&&(t=d(t)),b(t))for(s=t.length;-1<--s;)y.killChildTweensOf(t[s],e);else{for(n in i=[],o)for(r=o[n].target.parentNode;r;)r===t&&(i=i.concat(o[n].tweens)),r=r.parentNode;for(a=i.length,s=0;s<a;s++)e&&i[s].totalTime(i[s].totalDuration()),i[s]._enabled(!1,!1)}}};function n(t,e,i,r){e=!1!==e,i=!1!==i;for(var n,s,a=_(r=!1!==r),o=e&&i&&r,l=a.length;-1<--l;)s=a[l],(o||s instanceof u||(n=s.target===s.vars.onComplete)&&i||e&&!n)&&s.paused(t)}return y.pauseAll=function(t,e,i){n(!0,t,e,i)},y.resumeAll=function(t,e,i){n(!1,t,e,i)},y.globalTimeScale=function(t){var e=r._rootTimeline,i=v.ticker.time;return arguments.length?(t=t||x,e._startTime=i-(i-e._startTime)*e._timeScale/t,e=r._rootFramesTimeline,i=v.ticker.frame,e._startTime=i-(i-e._startTime)*e._timeScale/t,e._timeScale=r._rootTimeline._timeScale=t,t):e._timeScale},t.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatDelay),e):this.duration()?this._time/this._duration:this.ratio},t.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()},t.time=function(t,e){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();var i=this._duration,r=this._cycle,n=r*(i+this._repeatDelay);return i<t&&(t=i),this.totalTime(this._yoyo&&1&r?i-t+n:this._repeat?t+n:t,e)},t.duration=function(t){return arguments.length?r.prototype.duration.call(this,t):this._duration},t.totalDuration=function(t){return arguments.length?-1===this._repeat?this:this.duration((t-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},t.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},t.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},t.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},y},!0),_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(_,f,p){function d(t){f.call(this,t);var e,i,r=this,n=r.vars;for(i in r._labels={},r.autoRemoveChildren=!!n.autoRemoveChildren,r.smoothChildTiming=!!n.smoothChildTiming,r._sortChildren=!0,r._onUpdate=n.onUpdate,n)e=n[i],c(e)&&-1!==e.join("").indexOf("{self}")&&(n[i]=r._swapSelfInParams(e));c(n.tweens)&&r.add(n.tweens,0,n.align,n.stagger)}function m(t){var e,i={};for(e in t)i[e]=t[e];return i}function g(t,e,i){var r,n,s=t.cycle;for(r in s)n=s[r],t[r]="function"==typeof n?n(i,e[i],e):n[i%n.length];delete t.cycle}function h(t,e,i,r){var n="immediateRender";return n in e||(e[n]=!(i&&!1===i[n]||r)),e}function y(t){if("function"==typeof t)return t;var p="object"==typeof t?t:{each:t},d=p.ease,m=p.from||0,g=p.base||0,y={},v=isNaN(m),x=p.axis,T={center:.5,end:1}[m]||0;return function(t,e,i){var r,n,s,a,o,l,h,u,_,f=(i||p).length,c=y[f];if(!c){if(!(_="auto"===p.grid?0:(p.grid||[1/0])[0])){for(h=-1/0;h<(h=i[_++].getBoundingClientRect().left)&&_<f;);_--}for(c=y[f]=[],r=v?Math.min(_,f)*T-.5:m%_,n=v?f*T/_-.5:m/_|0,u=1/(h=0),l=0;l<f;l++)s=l%_-r,a=n-(l/_|0),c[l]=o=x?Math.abs("y"===x?a:s):Math.sqrt(s*s+a*a),h<o&&(h=o),o<u&&(u=o);c.max=h-u,c.min=u,c.v=f=p.amount||p.each*(f<_?f-1:x?"y"===x?f/_:_:Math.max(_,f/_))||0,c.b=f<0?g-f:g}return f=(c[t]-c.min)/c.max,c.b+(d?d.getRatio(f):f)*c.v}}var v=1e-8,t=p._internals,e=d._internals={},x=t.isSelector,c=t.isArray,T=t.lazyTweens,w=t.lazyRender,a=_gsScope._gsDefine.globals,s=e.pauseCallback=function(){},i=d.prototype=new f;return d.version="2.1.3",d.distribute=y,i.constructor=d,i.kill()._gc=i._forcingPlayhead=i._hasPause=!1,i.to=function(t,e,i,r){var n=i.repeat&&a.TweenMax||p;return e?this.add(new n(t,e,i),r):this.set(t,i,r)},i.from=function(t,e,i,r){return this.add((i.repeat&&a.TweenMax||p).from(t,e,h(0,i)),r)},i.fromTo=function(t,e,i,r,n){var s=r.repeat&&a.TweenMax||p;return r=h(0,r,i),e?this.add(s.fromTo(t,e,i,r),n):this.set(t,r,n)},i.staggerTo=function(t,e,i,r,n,s,a,o){var l,h,u=new d({onComplete:s,onCompleteParams:a,callbackScope:o,smoothChildTiming:this.smoothChildTiming}),_=y(i.stagger||r),f=i.startAt,c=i.cycle;for("string"==typeof t&&(t=p.selector(t)||t),x(t=t||[])&&(t=function(t){var e,i=[],r=t.length;for(e=0;e!==r;i.push(t[e++]));return i}(t)),h=0;h<t.length;h++)l=m(i),f&&(l.startAt=m(f),f.cycle&&g(l.startAt,t,h)),c&&(g(l,t,h),null!=l.duration&&(e=l.duration,delete l.duration)),u.to(t[h],e,l,_(h,t[h],t));return this.add(u,n)},i.staggerFrom=function(t,e,i,r,n,s,a,o){return i.runBackwards=!0,this.staggerTo(t,e,h(0,i),r,n,s,a,o)},i.staggerFromTo=function(t,e,i,r,n,s,a,o,l){return r.startAt=i,this.staggerTo(t,e,h(0,r,i),n,s,a,o,l)},i.call=function(t,e,i,r){return this.add(p.delayedCall(0,t,e,i),r)},i.set=function(t,e,i){return this.add(new p(t,0,h(0,e,null,!0)),i)},d.exportRoot=function(t,e){null==(t=t||{}).smoothChildTiming&&(t.smoothChildTiming=!0);var i,r,n,s,a=new d(t),o=a._timeline;for(null==e&&(e=!0),o._remove(a,!0),a._startTime=0,a._rawPrevTime=a._time=a._totalTime=o._time,n=o._first;n;)s=n._next,e&&n instanceof p&&n.target===n.vars.onComplete||((r=n._startTime-n._delay)<0&&(i=1),a.add(n,r)),n=s;return o.add(a,0),i&&a.totalDuration(),a},i.add=function(t,e,i,r){var n,s,a,o,l,h,u=this;if("number"!=typeof e&&(e=u._parseTimeOrLabel(e,0,!0,t)),!(t instanceof _)){if(t instanceof Array||t&&t.push&&c(t)){for(i=i||"normal",r=r||0,n=e,s=t.length,a=0;a<s;a++)c(o=t[a])&&(o=new d({tweens:o})),u.add(o,n),"string"!=typeof o&&"function"!=typeof o&&("sequence"===i?n=o._startTime+o.totalDuration()/o._timeScale:"start"===i&&(o._startTime-=o.delay())),n+=r;return u._uncache(!0)}if("string"==typeof t)return u.addLabel(t,e);if("function"!=typeof t)throw"Cannot add "+t+" into the timeline; it is not a tween, timeline, function, or string.";t=p.delayedCall(0,t)}if(f.prototype.add.call(u,t,e),(t._time||!t._duration&&t._initted)&&(n=(u.rawTime()-t._startTime)*t._timeScale,(!t._duration||1e-5<Math.abs(Math.max(0,Math.min(t.totalDuration(),n)))-t._totalTime)&&t.render(n,!1,!1)),(u._gc||u._time===u._duration)&&!u._paused&&u._duration<u.duration())for(h=(l=u).rawTime()>t._startTime;l._timeline;)h&&l._timeline.smoothChildTiming?l.totalTime(l._totalTime,!0):l._gc&&l._enabled(!0,!1),l=l._timeline;return u},i.remove=function(t){if(t instanceof _){this._remove(t,!1);var e=t._timeline=t.vars.useFrames?_._rootFramesTimeline:_._rootTimeline;return t._startTime=(t._paused?t._pauseTime:e._time)-(t._reversed?t.totalDuration()-t._totalTime:t._totalTime)/t._timeScale,this}if(t instanceof Array||t&&t.push&&c(t)){for(var i=t.length;-1<--i;)this.remove(t[i]);return this}return"string"==typeof t?this.removeLabel(t):this.kill(null,t)},i._remove=function(t,e){return f.prototype._remove.call(this,t,e),this._last?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},i.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))},i.insert=i.insertMultiple=function(t,e,i,r){return this.add(t,e||0,i,r)},i.appendMultiple=function(t,e,i,r){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),i,r)},i.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},i.addPause=function(t,e,i,r){var n=p.delayedCall(0,s,i,r||this);return n.vars.onComplete=n.vars.onReverseComplete=e,n.data="isPause",this._hasPause=!0,this.add(n,t)},i.removeLabel=function(t){return delete this._labels[t],this},i.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:-1},i._parseTimeOrLabel=function(t,e,i,r){var n,s;if(r instanceof _&&r.timeline===this)this.remove(r);else if(r&&(r instanceof Array||r.push&&c(r)))for(s=r.length;-1<--s;)r[s]instanceof _&&r[s].timeline===this&&this.remove(r[s]);if(n="number"!=typeof t||e?99999999999<this.duration()?this.recent().endTime(!1):this._duration:0,"string"==typeof e)return this._parseTimeOrLabel(e,i&&"number"==typeof t&&null==this._labels[e]?t-n:0,i);if(e=e||0,"string"!=typeof t||!isNaN(t)&&null==this._labels[t])null==t&&(t=n);else{if(-1===(s=t.indexOf("=")))return null==this._labels[t]?i?this._labels[t]=n+e:e:this._labels[t]+e;e=parseInt(t.charAt(s-1)+"1",10)*Number(t.substr(s+1)),t=1<s?this._parseTimeOrLabel(t.substr(0,s-1),0,i):n}return Number(t)+e},i.seek=function(t,e){return this.totalTime("number"==typeof t?t:this._parseTimeOrLabel(t),!1!==e)},i.stop=function(){return this.paused(!0)},i.gotoAndPlay=function(t,e){return this.play(t,e)},i.gotoAndStop=function(t,e){return this.pause(t,e)},i.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var r,n,s,a,o,l,h,u,_=this,f=_._time,c=_._dirty?_.totalDuration():_._totalDuration,p=_._startTime,d=_._timeScale,m=_._paused;if(f!==_._time&&(t+=_._time-f),_._hasPause&&!_._forcingPlayhead&&!e){if(f<t)for(r=_._first;r&&r._startTime<=t&&!l;)r._duration||"isPause"!==r.data||r.ratio||0===r._startTime&&0===_._rawPrevTime||(l=r),r=r._next;else for(r=_._last;r&&r._startTime>=t&&!l;)r._duration||"isPause"===r.data&&0<r._rawPrevTime&&(l=r),r=r._prev;l&&(_._time=_._totalTime=t=l._startTime,u=_._startTime+(_._reversed?_._duration-t:t)/_._timeScale)}if(c-v<=t&&0<=t)_._totalTime=_._time=c,_._reversed||_._hasPausedChild()||(n=!0,a="onComplete",o=!!_._timeline.autoRemoveChildren,0===_._duration&&(t<=0&&-v<=t||_._rawPrevTime<0||_._rawPrevTime===v)&&_._rawPrevTime!==t&&_._first&&(o=!0,_._rawPrevTime>v&&(a="onReverseComplete"))),_._rawPrevTime=_._duration||!e||t||_._rawPrevTime===t?t:v,t=c+1e-4;else if(t<v)if(_._totalTime=_._time=0,-v<t&&(t=0),(0!==f||0===_._duration&&_._rawPrevTime!==v&&(0<_._rawPrevTime||t<0&&0<=_._rawPrevTime))&&(a="onReverseComplete",n=_._reversed),t<0)_._active=!1,_._timeline.autoRemoveChildren&&_._reversed?(o=n=!0,a="onReverseComplete"):0<=_._rawPrevTime&&_._first&&(o=!0),_._rawPrevTime=t;else{if(_._rawPrevTime=_._duration||!e||t||_._rawPrevTime===t?t:v,0===t&&n)for(r=_._first;r&&0===r._startTime;)r._duration||(n=!1),r=r._next;t=0,_._initted||(o=!0)}else _._totalTime=_._time=_._rawPrevTime=t;if(_._time!==f&&_._first||i||o||l){if(_._initted||(_._initted=!0),_._active||!_._paused&&_._time!==f&&0<t&&(_._active=!0),0===f&&_.vars.onStart&&(0===_._time&&_._duration||e||_._callback("onStart")),f<=(h=_._time))for(r=_._first;r&&(s=r._next,h===_._time&&(!_._paused||m));)(r._active||r._startTime<=h&&!r._paused&&!r._gc)&&(l===r&&(_.pause(),_._pauseTime=u),r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)),r=s;else for(r=_._last;r&&(s=r._prev,h===_._time&&(!_._paused||m));){if(r._active||r._startTime<=f&&!r._paused&&!r._gc){if(l===r){for(l=r._prev;l&&l.endTime()>_._time;)l.render(l._reversed?l.totalDuration()-(t-l._startTime)*l._timeScale:(t-l._startTime)*l._timeScale,e,i),l=l._prev;l=null,_.pause(),_._pauseTime=u}r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)}r=s}_._onUpdate&&(e||(T.length&&w(),_._callback("onUpdate"))),a&&(_._gc||p!==_._startTime&&d===_._timeScale||!(0===_._time||c>=_.totalDuration())||(n&&(T.length&&w(),_._timeline.autoRemoveChildren&&_._enabled(!1,!1),_._active=!1),!e&&_.vars[a]&&_._callback(a)))}},i._hasPausedChild=function(){for(var t=this._first;t;){if(t._paused||t instanceof d&&t._hasPausedChild())return!0;t=t._next}return!1},i.getChildren=function(t,e,i,r){r=r||-9999999999;for(var n=[],s=this._first,a=0;s;)s._startTime<r||(s instanceof p?!1!==e&&(n[a++]=s):(!1!==i&&(n[a++]=s),!1!==t&&(a=(n=n.concat(s.getChildren(!0,e,i))).length))),s=s._next;return n},i.getTweensOf=function(t,e){var i,r,n=this._gc,s=[],a=0;for(n&&this._enabled(!0,!0),r=(i=p.getTweensOf(t)).length;-1<--r;)(i[r].timeline===this||e&&this._contains(i[r]))&&(s[a++]=i[r]);return n&&this._enabled(!1,!0),s},i.recent=function(){return this._recent},i._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},i.shiftChildren=function(t,e,i){i=i||0;for(var r,n=this._first,s=this._labels;n;)n._startTime>=i&&(n._startTime+=t),n=n._next;if(e)for(r in s)s[r]>=i&&(s[r]+=t);return this._uncache(!0)},i._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var i=e?this.getTweensOf(e):this.getChildren(!0,!0,!1),r=i.length,n=!1;-1<--r;)i[r]._kill(t,e)&&(n=!0);return n},i.clear=function(t){var e=this.getChildren(!1,!0,!0),i=e.length;for(this._time=this._totalTime=0;-1<--i;)e[i]._enabled(!1,!1);return!1!==t&&(this._labels={}),this._uncache(!0)},i.invalidate=function(){for(var t=this._first;t;)t.invalidate(),t=t._next;return _.prototype.invalidate.call(this)},i._enabled=function(t,e){if(t===this._gc)for(var i=this._first;i;)i._enabled(t,!0),i=i._next;return f.prototype._enabled.call(this,t,e)},i.totalTime=function(t,e,i){this._forcingPlayhead=!0;var r=_.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,r},i.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},i.totalDuration=function(t){if(arguments.length)return t&&this.totalDuration()?this.timeScale(this._totalDuration/t):this;if(this._dirty){for(var e,i,r=0,n=this,s=n._last,a=999999999999;s;)e=s._prev,s._dirty&&s.totalDuration(),s._startTime>a&&n._sortChildren&&!s._paused&&!n._calculatingDuration?(n._calculatingDuration=1,n.add(s,s._startTime-s._delay),n._calculatingDuration=0):a=s._startTime,s._startTime<0&&!s._paused&&(r-=s._startTime,n._timeline.smoothChildTiming&&(n._startTime+=s._startTime/n._timeScale,n._time-=s._startTime,n._totalTime-=s._startTime,n._rawPrevTime-=s._startTime),n.shiftChildren(-s._startTime,!1,-9999999999),a=0),r<(i=s._startTime+s._totalDuration/s._timeScale)&&(r=i),s=e;n._duration=n._totalDuration=r,n._dirty=!1}return this._totalDuration},i.paused=function(t){if(!1===t&&this._paused)for(var e=this._first;e;)e._startTime===this._time&&"isPause"===e.data&&(e._rawPrevTime=0),e=e._next;return _.prototype.paused.apply(this,arguments)},i.usesFrames=function(){for(var t=this._timeline;t._timeline;)t=t._timeline;return t===_._rootFramesTimeline},i.rawTime=function(t){return t&&(this._paused||this._repeat&&0<this.time()&&this.totalProgress()<1)?this._totalTime%(this._duration+this._repeatDelay):this._paused?this._totalTime:(this._timeline.rawTime(t)-this._startTime)*this._timeScale},d},!0),_gsScope._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(e,o,t){function i(t){e.call(this,t),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=!!this.vars.yoyo,this._dirty=!0}var C=1e-8,r=o._internals,R=r.lazyTweens,A=r.lazyRender,l=_gsScope._gsDefine.globals,h=new t(null,null,1,0),n=i.prototype=new e;return n.constructor=i,n.kill()._gc=!1,i.version="2.1.3",n.invalidate=function(){return this._yoyo=!!this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),e.prototype.invalidate.call(this)},n.addCallback=function(t,e,i,r){return this.add(o.delayedCall(0,t,i,r),e)},n.removeCallback=function(t,e){if(t)if(null==e)this._kill(null,t);else for(var i=this.getTweensOf(t,!1),r=i.length,n=this._parseTimeOrLabel(e);-1<--r;)i[r]._startTime===n&&i[r]._enabled(!1,!1);return this},n.removePause=function(t){return this.removeCallback(e._internals.pauseCallback,t)},n.tweenTo=function(t,e){e=e||{};var i,r,n,s={ease:h,useFrames:this.usesFrames(),immediateRender:!1,lazy:!1},a=e.repeat&&l.TweenMax||o;for(r in e)s[r]=e[r];return s.time=this._parseTimeOrLabel(t),i=Math.abs(Number(s.time)-this._time)/this._timeScale||.001,n=new a(this,i,s),s.onStart=function(){n.target.paused(!0),n.vars.time===n.target.time()||i!==n.duration()||n.isFromTo||n.duration(Math.abs(n.vars.time-n.target.time())/n.target._timeScale).render(n.time(),!0,!0),e.onStart&&e.onStart.apply(e.onStartScope||e.callbackScope||n,e.onStartParams||[])},n},n.tweenFromTo=function(t,e,i){i=i||{},t=this._parseTimeOrLabel(t),i.startAt={onComplete:this.seek,onCompleteParams:[t],callbackScope:this},i.immediateRender=!1!==i.immediateRender;var r=this.tweenTo(e,i);return r.isFromTo=1,r.duration(Math.abs(r.vars.time-t)/this._timeScale||.001)},n.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var r,n,s,a,o,l,h,u,_,f=this,c=f._time,p=f._dirty?f.totalDuration():f._totalDuration,d=f._duration,m=f._totalTime,g=f._startTime,y=f._timeScale,v=f._rawPrevTime,x=f._paused,T=f._cycle;if(c!==f._time&&(t+=f._time-c),p-C<=t&&0<=t)f._locked||(f._totalTime=p,f._cycle=f._repeat),f._reversed||f._hasPausedChild()||(n=!0,a="onComplete",o=!!f._timeline.autoRemoveChildren,0===f._duration&&(t<=0&&-C<=t||v<0||v===C)&&v!==t&&f._first&&(o=!0,C<v&&(a="onReverseComplete"))),f._rawPrevTime=f._duration||!e||t||f._rawPrevTime===t?t:C,f._yoyo&&1&f._cycle?f._time=t=0:t=(f._time=d)+1e-4;else if(t<C)if(f._locked||(f._totalTime=f._cycle=0),f._time=0,-C<t&&(t=0),(0!==c||0===d&&v!==C&&(0<v||t<0&&0<=v)&&!f._locked)&&(a="onReverseComplete",n=f._reversed),t<0)f._active=!1,f._timeline.autoRemoveChildren&&f._reversed?(o=n=!0,a="onReverseComplete"):0<=v&&f._first&&(o=!0),f._rawPrevTime=t;else{if(f._rawPrevTime=d||!e||t||f._rawPrevTime===t?t:C,0===t&&n)for(r=f._first;r&&0===r._startTime;)r._duration||(n=!1),r=r._next;t=0,f._initted||(o=!0)}else 0===d&&v<0&&(o=!0),f._time=f._rawPrevTime=t,f._locked||(f._totalTime=t,0!==f._repeat&&(l=d+f._repeatDelay,f._cycle=f._totalTime/l>>0,f._cycle&&f._cycle===f._totalTime/l&&m<=t&&f._cycle--,f._time=f._totalTime-f._cycle*l,f._yoyo&&1&f._cycle&&(f._time=d-f._time),f._time>d?t=(f._time=d)+1e-4:f._time<0?f._time=t=0:t=f._time));if(f._hasPause&&!f._forcingPlayhead&&!e){if(c<(t=f._time)||f._repeat&&T!==f._cycle)for(r=f._first;r&&r._startTime<=t&&!h;)r._duration||"isPause"!==r.data||r.ratio||0===r._startTime&&0===f._rawPrevTime||(h=r),r=r._next;else for(r=f._last;r&&r._startTime>=t&&!h;)r._duration||"isPause"===r.data&&0<r._rawPrevTime&&(h=r),r=r._prev;h&&(_=f._startTime+(f._reversed?f._duration-h._startTime:h._startTime)/f._timeScale,h._startTime<d&&(f._time=f._rawPrevTime=t=h._startTime,f._totalTime=t+f._cycle*(f._totalDuration+f._repeatDelay)))}if(f._cycle!==T&&!f._locked){var w=f._yoyo&&0!=(1&T),b=w===(f._yoyo&&0!=(1&f._cycle)),P=f._totalTime,S=f._cycle,O=f._rawPrevTime,k=f._time;if(f._totalTime=T*d,f._cycle<T?w=!w:f._totalTime+=d,f._time=c,f._rawPrevTime=0===d?v-1e-4:v,f._cycle=T,f._locked=!0,c=w?0:d,f.render(c,e,0===d),e||f._gc||f.vars.onRepeat&&(f._cycle=S,f._locked=!1,f._callback("onRepeat")),c!==f._time)return;if(b&&(f._cycle=T,f._locked=!0,c=w?d+1e-4:-1e-4,f.render(c,!0,!1)),f._locked=!1,f._paused&&!x)return;f._time=k,f._totalTime=P,f._cycle=S,f._rawPrevTime=O}if(f._time!==c&&f._first||i||o||h){if(f._initted||(f._initted=!0),f._active||!f._paused&&f._totalTime!==m&&0<t&&(f._active=!0),0===m&&f.vars.onStart&&(0===f._totalTime&&f._totalDuration||e||f._callback("onStart")),c<=(u=f._time))for(r=f._first;r&&(s=r._next,u===f._time&&(!f._paused||x));)(r._active||r._startTime<=f._time&&!r._paused&&!r._gc)&&(h===r&&(f.pause(),f._pauseTime=_),r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)),r=s;else for(r=f._last;r&&(s=r._prev,u===f._time&&(!f._paused||x));){if(r._active||r._startTime<=c&&!r._paused&&!r._gc){if(h===r){for(h=r._prev;h&&h.endTime()>f._time;)h.render(h._reversed?h.totalDuration()-(t-h._startTime)*h._timeScale:(t-h._startTime)*h._timeScale,e,i),h=h._prev;h=null,f.pause(),f._pauseTime=_}r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)}r=s}f._onUpdate&&(e||(R.length&&A(),f._callback("onUpdate"))),a&&(f._locked||f._gc||g!==f._startTime&&y===f._timeScale||!(0===f._time||p>=f.totalDuration())||(n&&(R.length&&A(),f._timeline.autoRemoveChildren&&f._enabled(!1,!1),f._active=!1),!e&&f.vars[a]&&f._callback(a)))}else m!==f._totalTime&&f._onUpdate&&(e||f._callback("onUpdate"))},n.getActive=function(t,e,i){var r,n,s=[],a=this.getChildren(t||null==t,e||null==t,!!i),o=0,l=a.length;for(r=0;r<l;r++)(n=a[r]).isActive()&&(s[o++]=n);return s},n.getLabelAfter=function(t){t||0!==t&&(t=this._time);var e,i=this.getLabelsArray(),r=i.length;for(e=0;e<r;e++)if(i[e].time>t)return i[e].name;return null},n.getLabelBefore=function(t){null==t&&(t=this._time);for(var e=this.getLabelsArray(),i=e.length;-1<--i;)if(e[i].time<t)return e[i].name;return null},n.getLabelsArray=function(){var t,e=[],i=0;for(t in this._labels)e[i++]={time:this._labels[t],name:t};return e.sort(function(t,e){return t.time-e.time}),e},n.invalidate=function(){return this._locked=!1,e.prototype.invalidate.call(this)},n.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatDelay),e):this._time/this.duration()||0},n.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()||0},n.totalDuration=function(t){return arguments.length?-1!==this._repeat&&t?this.timeScale(this.totalDuration()/t):this:(this._dirty&&(e.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},n.time=function(t,e){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();var i=this._duration,r=this._cycle,n=r*(i+this._repeatDelay);return i<t&&(t=i),this.totalTime(this._yoyo&&1&r?i-t+n:this._repeat?t+n:t,e)},n.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},n.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},n.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},n.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.getLabelBefore(this._time+C)},i},!0),P=180/Math.PI,T=[],w=[],b=[],g={},i=_gsScope._gsDefine.globals,m=_gsScope._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.9",API:2,global:!0,init:function(t,e,i){this._target=t,e instanceof Array&&(e={values:e}),this._func={},this._mod={},this._props=[],this._timeRes=null==e.timeResolution?6:parseInt(e.timeResolution,10);var r,n,s,a,o,l=e.values||[],h={},u=l[0],_=e.autoRotate||i.vars.orientToBezier;for(r in this._autoRotate=_?_ instanceof Array?_:[["x","y","rotation",!0===_?0:Number(_)||0]]:null,u)this._props.push(r);for(s=this._props.length;-1<--s;)r=this._props[s],this._overwriteProps.push(r),n=this._func[r]="function"==typeof t[r],h[r]=n?t[r.indexOf("set")||"function"!=typeof t["get"+r.substr(3)]?r:"get"+r.substr(3)]():parseFloat(t[r]),o||h[r]!==l[0][r]&&(o=h);if(this._beziers="cubic"!==e.type&&"quadratic"!==e.type&&"soft"!==e.type?c(l,isNaN(e.curviness)?1:e.curviness,!1,"thruBasic"===e.type,e.correlate,o):function(t,e,i){var r,n,s,a,o,l,h,u,_,f,c,p={},d="cubic"===(e=e||"soft")?3:2,m="soft"===e,g=[];if(m&&i&&(t=[i].concat(t)),null==t||t.length<1+d)throw"invalid Bezier data";for(_ in t[0])g.push(_);for(l=g.length;-1<--l;){for(p[_=g[l]]=o=[],f=0,u=t.length,h=0;h<u;h++)r=null==i?t[h][_]:"string"==typeof(c=t[h][_])&&"="===c.charAt(1)?i[_]+Number(c.charAt(0)+c.substr(2)):Number(c),m&&1<h&&h<u-1&&(o[f++]=(r+o[f-2])/2),o[f++]=r;for(u=f-d+1,h=f=0;h<u;h+=d)r=o[h],n=o[h+1],s=o[h+2],a=2==d?0:o[h+3],o[f++]=c=3==d?new y(r,n,s,a):new y(r,(2*n+r)/3,(2*n+s)/3,s);o.length=f}return p}(l,e.type,h),this._segCount=this._beziers[r].length,this._timeRes){var f=function(t,e){var i,r,n,s,a=[],o=[],l=0,h=0,u=(e=e>>0||6)-1,_=[],f=[];for(i in t)p(t[i],a,e);for(n=a.length,r=0;r<n;r++)l+=Math.sqrt(a[r]),f[s=r%e]=l,s===u&&(h+=l,_[s=r/e>>0]=f,o[s]=h,l=0,f=[]);return{length:h,lengths:o,segments:_}}(this._beziers,this._timeRes);this._length=f.length,this._lengths=f.lengths,this._segments=f.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length}if(_=this._autoRotate)for(this._initialRotations=[],_[0]instanceof Array||(this._autoRotate=_=[_]),s=_.length;-1<--s;){for(a=0;a<3;a++)r=_[s][a],this._func[r]="function"==typeof t[r]&&t[r.indexOf("set")||"function"!=typeof t["get"+r.substr(3)]?r:"get"+r.substr(3)];r=_[s][2],this._initialRotations[s]=(this._func[r]?this._func[r].call(this._target):this._target[r])||0,this._overwriteProps.push(r)}return this._startRatio=i.vars.runBackwards?1:0,!0},set:function(t){var e,i,r,n,s,a,o,l,h,u,_,f=this._segCount,c=this._func,p=this._target,d=t!==this._startRatio;if(this._timeRes){if(h=this._lengths,u=this._curSeg,_=t*this._length,r=this._li,_>this._l2&&r<f-1){for(l=f-1;r<l&&(this._l2=h[++r])<=_;);this._l1=h[r-1],this._li=r,this._curSeg=u=this._segments[r],this._s2=u[this._s1=this._si=0]}else if(_<this._l1&&0<r){for(;0<r&&(this._l1=h[--r])>=_;);0===r&&_<this._l1?this._l1=0:r++,this._l2=h[r],this._li=r,this._curSeg=u=this._segments[r],this._s1=u[(this._si=u.length-1)-1]||0,this._s2=u[this._si]}if(e=r,_-=this._l1,r=this._si,_>this._s2&&r<u.length-1){for(l=u.length-1;r<l&&(this._s2=u[++r])<=_;);this._s1=u[r-1],this._si=r}else if(_<this._s1&&0<r){for(;0<r&&(this._s1=u[--r])>=_;);0===r&&_<this._s1?this._s1=0:r++,this._s2=u[r],this._si=r}a=1===t?1:(r+(_-this._s1)/(this._s2-this._s1))*this._prec||0}else a=(t-(e=t<0?0:1<=t?f-1:f*t>>0)*(1/f))*f;for(i=1-a,r=this._props.length;-1<--r;)n=this._props[r],o=(a*a*(s=this._beziers[n][e]).da+3*i*(a*s.ca+i*s.ba))*a+s.a,this._mod[n]&&(o=this._mod[n](o,p)),c[n]?p[n](o):p[n]=o;if(this._autoRotate){var m,g,y,v,x,T,w,b=this._autoRotate;for(r=b.length;-1<--r;)n=b[r][2],T=b[r][3]||0,w=!0===b[r][4]?1:P,s=this._beziers[b[r][0]],m=this._beziers[b[r][1]],s&&m&&(s=s[e],m=m[e],g=s.a+(s.b-s.a)*a,g+=((v=s.b+(s.c-s.b)*a)-g)*a,v+=(s.c+(s.d-s.c)*a-v)*a,y=m.a+(m.b-m.a)*a,y+=((x=m.b+(m.c-m.b)*a)-y)*a,x+=(m.c+(m.d-m.c)*a-x)*a,o=d?Math.atan2(x-y,v-g)*w+T:this._initialRotations[r],this._mod[n]&&(o=this._mod[n](o,p)),c[n]?p[n](o):p[n]=o)}}}),r=m.prototype,m.bezierThrough=c,m.cubicToQuadratic=S,m._autoCSS=!0,m.quadraticToCubic=function(t,e,i){return new y(t,(2*e+t)/3,(2*e+i)/3,i)},m._cssRegister=function(){var t=i.CSSPlugin;if(t){var e=t._internals,c=e._parseToProxy,p=e._setPluginRatio,d=e.CSSPropTween;e._registerComplexSpecialProp("bezier",{parser:function(t,e,i,r,n,s){e instanceof Array&&(e={values:e}),s=new m;var a,o,l,h=e.values,u=h.length-1,_=[],f={};if(u<0)return n;for(a=0;a<=u;a++)l=c(t,h[a],r,n,s,u!==a),_[a]=l.end;for(o in e)f[o]=e[o];return f.values=_,(n=new d(t,"bezier",0,0,l.pt,2)).data=l,n.plugin=s,n.setRatio=p,0===f.autoRotate&&(f.autoRotate=!0),!f.autoRotate||f.autoRotate instanceof Array||(a=!0===f.autoRotate?0:Number(f.autoRotate),f.autoRotate=null!=l.end.left?[["left","top","rotation",a,!1]]:null!=l.end.x&&[["x","y","rotation",a,!1]]),f.autoRotate&&(r._transform||r._enableTransforms(!1),l.autoRotate=r._target._gsTransform,l.proxy.rotation=l.autoRotate.rotation||0,r._overwriteProps.push("rotation")),s._onInitTween(l.proxy,f,r._tween),n}})}},r._mod=function(t){for(var e,i=this._overwriteProps,r=i.length;-1<--r;)(e=t[i[r]])&&"function"==typeof e&&(this._mod[i[r]]=e)},r._kill=function(t){var e,i,r=this._props;for(e in this._beziers)if(e in t)for(delete this._beziers[e],delete this._func[e],i=r.length;-1<--i;)r[i]===e&&r.splice(i,1);if(r=this._autoRotate)for(i=r.length;-1<--i;)t[r[i][2]]&&r.splice(i,1);return this._super._kill.call(this,t)},_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(s,X){var p,P,S,d,B=function(){s.call(this,"css"),this._overwriteProps.length=0,this.setRatio=B.prototype.setRatio},h=_gsScope._gsDefine.globals,m={},t=B.prototype=new s("css");(t.constructor=B).version="2.1.3",B.API=2,B.defaultTransformPerspective=0,B.defaultSkewType="compensated",B.defaultSmoothOrigin=!0,t="px",B.suffixMap={top:t,right:t,bottom:t,left:t,width:t,height:t,fontSize:t,padding:t,margin:t,perspective:t,lineHeight:""};function a(t,e){return e.toUpperCase()}function o(t,e){var i=it.createElementNS?it.createElementNS(e||"h"+"t"+"t"+"p"+":"+"/"+"/"+"www.w3.org/1999/xhtml",t):it.createElement(t);return i.style?i:it.createElement(t)}function l(t){return j.test("string"==typeof t?t:(t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100:1}function g(t){_gsScope.console&&console.log(t)}function O(t,e){var i,r,n=(e=e||rt).style;if(void 0!==n[t])return t;for(t=t.charAt(0).toUpperCase()+t.substr(1),i=["O","Moz","ms","Ms","Webkit"],r=5;-1<--r&&void 0===n[i[r]+t];);return 0<=r?(lt="-"+(ht=3===r?"ms":i[r]).toLowerCase()+"-",ht+t):null}function y(t){return ut.getComputedStyle(t)}function v(t,e){var i,r,n,s={};if(e=e||y(t))if(i=e.length)for(;-1<--i;)-1!==(n=e[i]).indexOf("-transform")&&Xt!==n||(s[n.replace(V,a)]=e.getPropertyValue(n));else for(i in e)-1!==i.indexOf("Transform")&&jt!==i||(s[i]=e[i]);else if(e=t.currentStyle||t.style)for(i in e)"string"==typeof i&&void 0===s[i]&&(s[i.replace(V,a)]=e[i]);return ot||(s.opacity=l(t)),r=$t(t,e,!1),s.rotation=r.rotation,s.skewX=r.skewX,s.scaleX=r.scaleX,s.scaleY=r.scaleY,s.x=r.x,s.y=r.y,Yt&&(s.z=r.z,s.rotationX=r.rotationX,s.rotationY=r.rotationY,s.scaleZ=r.scaleZ),s.filters&&delete s.filters,s}function x(t,e,i,r,n){var s,a,o,l={},h=t.style;for(a in i)"cssText"!==a&&"length"!==a&&isNaN(a)&&(e[a]!==(s=i[a])||n&&n[a])&&-1===a.indexOf("Origin")&&("number"==typeof s||"string"==typeof s)&&(l[a]="auto"!==s||"left"!==a&&"top"!==a?""!==s&&"auto"!==s&&"none"!==s||"string"!=typeof e[a]||""===e[a].replace(u,"")?s:0:ct(t,a),void 0!==h[a]&&(o=new bt(h,a,h[a],o)));if(r)for(a in r)"className"!==a&&(l[a]=r[a]);return{difs:l,firstMPT:o}}function T(t,e,i){if("svg"===(t.nodeName+"").toLowerCase())return(i||y(t))[e]||0;if(t.getCTM&&Qt(t))return t.getBBox()[e]||0;var r=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),n=pt[e],s=n.length;for(i=i||y(t);-1<--s;)r-=parseFloat(_t(t,"padding"+n[s],i,!0))||0,r-=parseFloat(_t(t,"border"+n[s]+"Width",i,!0))||0;return r}function k(t,e){return"function"==typeof t&&(t=t(L,F)),"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2)):parseFloat(t)-parseFloat(e)||0}function C(t,e){"function"==typeof t&&(t=t(L,F));var i="string"==typeof t&&"="===t.charAt(1);return"string"==typeof t&&"v"===t.charAt(t.length-2)&&(t=(i?t.substr(0,2):0)+window["inner"+("vh"===t.substr(-2)?"Height":"Width")]*(parseFloat(i?t.substr(2):t)/100)),null==t?e:i?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2))+e:parseFloat(t)||0}function R(t,e,i,r){var n,s,a,o,l;return"function"==typeof t&&(t=t(L,F)),(o=null==t?e:"number"==typeof t?t:(n=360,s=t.split("_"),a=((l="="===t.charAt(1))?parseInt(t.charAt(0)+"1",10)*parseFloat(s[0].substr(2)):parseFloat(s[0]))*(-1===t.indexOf("rad")?1:J)-(l?0:e),s.length&&(r&&(r[i]=e+a),-1!==t.indexOf("short")&&((a%=n)!==a%180&&(a=a<0?a+n:a-n)),-1!==t.indexOf("_cw")&&a<0?a=(a+3599999999640)%n-(a/n|0)*n:-1!==t.indexOf("ccw")&&0<a&&(a=(a-3599999999640)%n-(a/n|0)*n)),e+a))<1e-6&&-1e-6<o&&(o=0),o}function c(t,e,i){return 255*(6*(t=t<0?t+1:1<t?t-1:t)<1?e+(i-e)*t*6:t<.5?i:3*t<2?e+(i-e)*(2/3-t)*6:e)+.5|0}function r(t,e){var i,r,n,s=t.match(vt)||[],a=0,o="";if(!s.length)return t;for(i=0;i<s.length;i++)r=s[i],a+=(n=t.substr(a,t.indexOf(r,a)-a)).length+r.length,3===(r=yt(r,e)).length&&r.push(1),o+=n+(e?"hsla("+r[0]+","+r[1]+"%,"+r[2]+"%,"+r[3]:"rgba("+r.join(","))+")";return o+t.substr(a)}var A,w,b,Y,M,D,F,L,e,i,z=/(?:\-|\.|\b)(\d|\.|e\-)+/g,E=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,I=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,n=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b),?/gi,u=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,N=/(?:\d|\-|\+|=|#|\.)*/g,j=/opacity *= *([^)]*)/i,G=/opacity:([^;]*)/i,_=/alpha\(opacity *=.+?\)/i,U=/^(rgb|hsl)/,f=/([A-Z])/g,V=/-([a-z])/gi,q=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,W=/(?:Left|Right|Width)/i,Q=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,H=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,Z=/,(?=[^\)]*(?:\(|$))/gi,$=/[\s,\(]/i,K=Math.PI/180,J=180/Math.PI,tt={},et={style:{}},it=_gsScope.document||{createElement:function(){return et}},rt=o("div"),nt=o("img"),st=B._internals={_specialProps:m},at=(_gsScope.navigator||{}).userAgent||"",ot=(e=at.indexOf("Android"),i=o("a"),b=-1!==at.indexOf("Safari")&&-1===at.indexOf("Chrome")&&(-1===e||3<parseFloat(at.substr(e+8,2))),M=b&&parseFloat(at.substr(at.indexOf("Version/")+8,2))<6,Y=-1!==at.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(at)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(at))&&(D=parseFloat(RegExp.$1)),!!i&&(i.style.cssText="top:1px;opacity:.55;",/^0.55/.test(i.style.opacity))),lt="",ht="",ut="undefined"!=typeof window?window:it.defaultView||{getComputedStyle:function(){}},_t=B.getStyle=function(t,e,i,r,n){var s;return ot||"opacity"!==e?(!r&&t.style[e]?s=t.style[e]:(i=i||y(t))?s=i[e]||i.getPropertyValue(e)||i.getPropertyValue(e.replace(f,"-$1").toLowerCase()):t.currentStyle&&(s=t.currentStyle[e]),null==n||s&&"none"!==s&&"auto"!==s&&"auto auto"!==s?s:n):l(t)},ft=st.convertToPixels=function(t,e,i,r,n){if("px"===r||!r&&"lineHeight"!==e)return i;if("auto"===r||!i)return 0;var s,a,o,l=W.test(e),h=t,u=rt.style,_=i<0,f=1===i;if(_&&(i=-i),f&&(i*=100),"lineHeight"!==e||r)if("%"===r&&-1!==e.indexOf("border"))s=i/100*(l?t.clientWidth:t.clientHeight);else{if(u.cssText="border:0 solid red;position:"+_t(t,"position")+";line-height:0;","%"!==r&&h.appendChild&&"v"!==r.charAt(0)&&"rem"!==r)u[l?"borderLeftWidth":"borderTopWidth"]=i+r;else{if(h=t.parentNode||it.body,-1!==_t(h,"display").indexOf("flex")&&(u.position="absolute"),a=h._gsCache,o=X.ticker.frame,a&&l&&a.time===o)return a.width*i/100;u[l?"width":"height"]=i+r}h.appendChild(rt),s=parseFloat(rt[l?"offsetWidth":"offsetHeight"]),h.removeChild(rt),l&&"%"===r&&!1!==B.cacheWidths&&((a=h._gsCache=h._gsCache||{}).time=o,a.width=s/i*100),0!==s||n||(s=ft(t,e,i,r,!0))}else a=y(t).lineHeight,t.style.lineHeight=i,s=parseFloat(y(t).lineHeight),t.style.lineHeight=a;return f&&(s/=100),_?-s:s},ct=st.calculateOffset=function(t,e,i){if("absolute"!==_t(t,"position",i))return 0;var r="left"===e?"Left":"Top",n=_t(t,"margin"+r,i);return t["offset"+r]-(ft(t,e,parseFloat(n),n.replace(N,""))||0)},pt={width:["Left","Right"],height:["Top","Bottom"]},dt=["marginLeft","marginRight","marginTop","marginBottom"],mt=function(t,e){if("contain"===t||"auto"===t||"auto auto"===t)return t+" ";null!=t&&""!==t||(t="0 0");var i,r=t.split(" "),n=-1!==t.indexOf("left")?"0%":-1!==t.indexOf("right")?"100%":r[0],s=-1!==t.indexOf("top")?"0%":-1!==t.indexOf("bottom")?"100%":r[1];if(3<r.length&&!e){for(r=t.split(", ").join(",").split(","),t=[],i=0;i<r.length;i++)t.push(mt(r[i]));return t.join(",")}return null==s?s="center"===n?"50%":"0":"center"===s&&(s="50%"),("center"===n||isNaN(parseFloat(n))&&-1===(n+"").indexOf("="))&&(n="50%"),t=n+" "+s+(2<r.length?" "+r[2]:""),e&&(e.oxp=-1!==n.indexOf("%"),e.oyp=-1!==s.indexOf("%"),e.oxr="="===n.charAt(1),e.oyr="="===s.charAt(1),e.ox=parseFloat(n.replace(u,"")),e.oy=parseFloat(s.replace(u,"")),e.v=t),e||t},gt={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},yt=B.parseColor=function(t,e){var i,r,n,s,a,o,l,h,u,_,f;if(t)if("number"==typeof t)i=[t>>16,t>>8&255,255&t];else{if(","===t.charAt(t.length-1)&&(t=t.substr(0,t.length-1)),gt[t])i=gt[t];else if("#"===t.charAt(0))4===t.length&&(t="#"+(r=t.charAt(1))+r+(n=t.charAt(2))+n+(s=t.charAt(3))+s),i=[(t=parseInt(t.substr(1),16))>>16,t>>8&255,255&t];else if("hsl"===t.substr(0,3))if(i=f=t.match(z),e){if(-1!==t.indexOf("="))return t.match(E)}else a=Number(i[0])%360/360,o=Number(i[1])/100,r=2*(l=Number(i[2])/100)-(n=l<=.5?l*(o+1):l+o-l*o),3<i.length&&(i[3]=Number(i[3])),i[0]=c(a+1/3,r,n),i[1]=c(a,r,n),i[2]=c(a-1/3,r,n);else i=t.match(z)||gt.transparent;i[0]=Number(i[0]),i[1]=Number(i[1]),i[2]=Number(i[2]),3<i.length&&(i[3]=Number(i[3]))}else i=gt.black;return e&&!f&&(r=i[0]/255,n=i[1]/255,s=i[2]/255,l=((h=Math.max(r,n,s))+(u=Math.min(r,n,s)))/2,h===u?a=o=0:(_=h-u,o=.5<l?_/(2-h-u):_/(h+u),a=h===r?(n-s)/_+(n<s?6:0):h===n?(s-r)/_+2:(r-n)/_+4,a*=60),i[0]=a+.5|0,i[1]=100*o+.5|0,i[2]=100*l+.5|0),i},vt="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(t in gt)vt+="|"+t+"\\b";vt=new RegExp(vt+")","gi"),B.colorStringFilter=function(t){var e,i=t[0]+" "+t[1];vt.test(i)&&(e=-1!==i.indexOf("hsl(")||-1!==i.indexOf("hsla("),t[0]=r(t[0],e),t[1]=r(t[1],e)),vt.lastIndex=0},X.defaultStringFilter||(X.defaultStringFilter=B.colorStringFilter);function xt(t,e,s,a){if(null==t)return function(t){return t};var o,l=e?(t.match(vt)||[""])[0]:"",h=t.split(l).join("").match(I)||[],u=t.substr(0,t.indexOf(h[0])),_=")"===t.charAt(t.length-1)?")":"",f=-1!==t.indexOf(" ")?" ":",",c=h.length,p=0<c?h[0].replace(z,""):"";return c?o=e?function(t){var e,i,r,n;if("number"==typeof t)t+=p;else if(a&&Z.test(t)){for(n=t.replace(Z,"|").split("|"),r=0;r<n.length;r++)n[r]=o(n[r]);return n.join(",")}if(e=(t.match(vt)||[l])[0],r=(i=t.split(e).join("").match(I)||[]).length,c>r--)for(;++r<c;)i[r]=s?i[(r-1)/2|0]:h[r];return u+i.join(f)+f+e+_+(-1!==t.indexOf("inset")?" inset":"")}:function(t){var e,i,r;if("number"==typeof t)t+=p;else if(a&&Z.test(t)){for(i=t.replace(Z,"|").split("|"),r=0;r<i.length;r++)i[r]=o(i[r]);return i.join(",")}if(r=(e=t.match(","==f?I:n)||[]).length,c>r--)for(;++r<c;)e[r]=s?e[(r-1)/2|0]:h[r];return(u&&"none"!==t&&t.substr(0,t.indexOf(e[0]))||u)+e.join(f)+_}:function(t){return t}}function Tt(h){return h=h.split(","),function(t,e,i,r,n,s,a){var o,l=(e+"").split(" ");for(a={},o=0;o<4;o++)a[h[o]]=l[o]=l[o]||l[(o-1)/2>>0];return r.parse(t,a,n,s)}}function wt(t,e,i,r,n,s){var a=new Pt(t,e,i,r-i,n,-1,s);return a.b=i,a.e=a.xs0=r,a}var bt=(st._setPluginRatio=function(t){this.plugin.setRatio(t);for(var e,i,r,n,s,a=this.data,o=a.proxy,l=a.firstMPT;l;)e=o[l.v],l.r?e=l.r(e):e<1e-6&&-1e-6<e&&(e=0),l.t[l.p]=e,l=l._next;if(a.autoRotate&&(a.autoRotate.rotation=a.mod?a.mod.call(this._tween,o.rotation,this.t,this._tween):o.rotation),1===t||0===t)for(l=a.firstMPT,s=1===t?"e":"b";l;){if((i=l.t).type){if(1===i.type){for(n=i.xs0+i.s+i.xs1,r=1;r<i.l;r++)n+=i["xn"+r]+i["xs"+(r+1)];i[s]=n}}else i[s]=i.s+i.xs0;l=l._next}},function(t,e,i,r,n){this.t=t,this.p=e,this.v=i,this.r=n,r&&((r._prev=this)._next=r)}),Pt=(st._parseToProxy=function(t,e,i,r,n,s){var a,o,l,h,u,_=r,f={},c={},p=i._transform,d=tt;for(i._transform=null,tt=e,r=u=i.parse(t,e,r,n),tt=d,s&&(i._transform=p,_&&(_._prev=null,_._prev&&(_._prev._next=null)));r&&r!==_;){if(r.type<=1&&(c[o=r.p]=r.s+r.c,f[o]=r.s,s||(h=new bt(r,"s",o,h,r.r),r.c=0),1===r.type))for(a=r.l;0<--a;)l="xn"+a,c[o=r.p+"_"+l]=r.data[l],f[o]=r[l],s||(h=new bt(r,l,o,h,r.rxp[l]));r=r._next}return{proxy:f,end:c,firstMPT:h,pt:u}},st.CSSPropTween=function(t,e,i,r,n,s,a,o,l,h,u){this.t=t,this.p=e,this.s=i,this.c=r,this.n=a||e,t instanceof Pt||d.push(this.n),this.r=o?"function"==typeof o?o:Math.round:o,this.type=s||0,l&&(this.pr=l,p=!0),this.b=void 0===h?i:h,this.e=void 0===u?i+r:u,n&&((this._next=n)._prev=this)}),St=B.parseComplex=function(t,e,i,r,n,s,a,o,l,h){i=i||s||"","function"==typeof r&&(r=r(L,F)),a=new Pt(t,e,0,0,a,h?2:1,null,!1,o,i,r),r+="",n&&vt.test(r+i)&&(r=[i,r],B.colorStringFilter(r),i=r[0],r=r[1]);var u,_,f,c,p,d,m,g,y,v,x,T,w,b=i.split(", ").join(",").split(" "),P=r.split(", ").join(",").split(" "),S=b.length,O=!1!==A;for(-1===r.indexOf(",")&&-1===i.indexOf(",")||(P=-1!==(r+i).indexOf("rgb")||-1!==(r+i).indexOf("hsl")?(b=b.join(" ").replace(Z,", ").split(" "),P.join(" ").replace(Z,", ").split(" ")):(b=b.join(" ").split(",").join(", ").split(" "),P.join(" ").split(",").join(", ").split(" ")),S=b.length),S!==P.length&&(S=(b=(s||"").split(" ")).length),a.plugin=l,a.setRatio=h,u=vt.lastIndex=0;u<S;u++)if(c=b[u],p=P[u]+"",(g=parseFloat(c))||0===g)a.appendXtra("",g,k(p,g),p.replace(E,""),O&&-1!==p.indexOf("px")&&Math.round,!0);else if(n&&vt.test(c))T=")"+((T=p.indexOf(")")+1)?p.substr(T):""),w=-1!==p.indexOf("hsl")&&ot,v=p,c=yt(c,w),p=yt(p,w),(y=6<c.length+p.length)&&!ot&&0===p[3]?(a["xs"+a.l]+=a.l?" transparent":"transparent",a.e=a.e.split(P[u]).join("transparent")):(ot||(y=!1),w?a.appendXtra(v.substr(0,v.indexOf("hsl"))+(y?"hsla(":"hsl("),c[0],k(p[0],c[0]),",",!1,!0).appendXtra("",c[1],k(p[1],c[1]),"%,",!1).appendXtra("",c[2],k(p[2],c[2]),y?"%,":"%"+T,!1):a.appendXtra(v.substr(0,v.indexOf("rgb"))+(y?"rgba(":"rgb("),c[0],p[0]-c[0],",",Math.round,!0).appendXtra("",c[1],p[1]-c[1],",",Math.round).appendXtra("",c[2],p[2]-c[2],y?",":T,Math.round),y&&(c=c.length<4?1:c[3],a.appendXtra("",c,(p.length<4?1:p[3])-c,T,!1))),vt.lastIndex=0;else if(d=c.match(z)){if(!(m=p.match(E))||m.length!==d.length)return a;for(_=f=0;_<d.length;_++)x=d[_],v=c.indexOf(x,f),a.appendXtra(c.substr(f,v-f),Number(x),k(m[_],x),"",O&&"px"===c.substr(v+x.length,2)&&Math.round,0===_),f=v+x.length;a["xs"+a.l]+=c.substr(f)}else a["xs"+a.l]+=a.l||a["xs"+a.l]?" "+p:p;if(-1!==r.indexOf("=")&&a.data){for(T=a.xs0+a.data.s,u=1;u<a.l;u++)T+=a["xs"+u]+a.data["xn"+u];a.e=T+a["xs"+u]}return a.l||(a.type=-1,a.xs0=a.e),a.xfirst||a},Ot=9;for((t=Pt.prototype).l=t.pr=0;0<--Ot;)t["xn"+Ot]=0,t["xs"+Ot]="";t.xs0="",t._next=t._prev=t.xfirst=t.data=t.plugin=t.setRatio=t.rxp=null,t.appendXtra=function(t,e,i,r,n,s){var a=this,o=a.l;return a["xs"+o]+=s&&(o||a["xs"+o])?" "+t:t||"",i||0===o||a.plugin?(a.l++,a.type=a.setRatio?2:1,a["xs"+a.l]=r||"",0<o?(a.data["xn"+o]=e+i,a.rxp["xn"+o]=n,a["xn"+o]=e,a.plugin||(a.xfirst=new Pt(a,"xn"+o,e,i,a.xfirst||a,0,a.n,n,a.pr),a.xfirst.xs0=0)):(a.data={s:e+i},a.rxp={},a.s=e,a.c=i,a.r=n)):a["xs"+o]+=e+(r||""),a};function kt(t,e){e=e||{},this.p=e.prefix&&O(t)||t,m[t]=m[this.p]=this,this.format=e.formatter||xt(e.defaultValue,e.color,e.collapsible,e.multi),e.parser&&(this.parse=e.parser),this.clrs=e.color,this.multi=e.multi,this.keyword=e.keyword,this.dflt=e.defaultValue,this.allowFunc=e.allowFunc,this.pr=e.priority||0}var Ct=st._registerComplexSpecialProp=function(t,e,i){"object"!=typeof e&&(e={parser:i});var r,n=t.split(","),s=e.defaultValue;for(i=i||[s],r=0;r<n.length;r++)e.prefix=0===r&&e.prefix,e.defaultValue=i[r]||s,new kt(n[r],e)},Rt=st._registerPluginProp=function(t){if(!m[t]){var l=t.charAt(0).toUpperCase()+t.substr(1)+"Plugin";Ct(t,{parser:function(t,e,i,r,n,s,a){var o=h.com.greensock.plugins[l];return o?(o._cssRegister(),m[i].parse(t,e,i,r,n,s,a)):(g("Error: "+l+" js file not loaded."),n)}})}};(t=kt.prototype).parseComplex=function(t,e,i,r,n,s){var a,o,l,h,u,_,f=this.keyword;if(this.multi&&(Z.test(i)||Z.test(e)?(o=e.replace(Z,"|").split("|"),l=i.replace(Z,"|").split("|")):f&&(o=[e],l=[i])),l){for(h=l.length>o.length?l.length:o.length,a=0;a<h;a++)e=o[a]=o[a]||this.dflt,i=l[a]=l[a]||this.dflt,f&&((u=e.indexOf(f))!==(_=i.indexOf(f))&&(-1===_?o[a]=o[a].split(f).join(""):-1===u&&(o[a]+=" "+f)));e=o.join(", "),i=l.join(", ")}return St(t,this.p,e,i,this.clrs,this.dflt,r,this.pr,n,s)},t.parse=function(t,e,i,r,n,s,a){return this.parseComplex(t.style,this.format(_t(t,this.p,S,!1,this.dflt)),this.format(e),n,s)},B.registerSpecialProp=function(t,l,h){Ct(t,{parser:function(t,e,i,r,n,s,a){var o=new Pt(t,i,0,0,n,2,i,!1,h);return o.plugin=s,o.setRatio=l(t,e,r._tween,i),o},priority:h})},B.useSVGTransformAttr=!0;function At(t,e,i){var r,n=it.createElementNS("h"+"t"+"t"+"p"+":"+"/"+"/"+"www.w3.org/2000/svg",t),s=/([a-z])([A-Z])/g;for(r in i)n.setAttributeNS(null,r.replace(s,"$1-$2").toLowerCase(),i[r]);return e.appendChild(n),n}function Mt(t,e,i,r,n,s){var a,o,l,h,u,_,f,c,p,d,m,g,y,v,x=t._gsTransform,T=Zt(t,!0);x&&(y=x.xOrigin,v=x.yOrigin),(!r||(a=r.split(" ")).length<2)&&(0===(f=t.getBBox()).x&&0===f.y&&f.width+f.height===0&&(f={x:parseFloat(t.hasAttribute("x")?t.getAttribute("x"):t.hasAttribute("cx")?t.getAttribute("cx"):0)||0,y:parseFloat(t.hasAttribute("y")?t.getAttribute("y"):t.hasAttribute("cy")?t.getAttribute("cy"):0)||0,width:0,height:0}),a=[(-1!==(e=mt(e).split(" "))[0].indexOf("%")?parseFloat(e[0])/100*f.width:parseFloat(e[0]))+f.x,(-1!==e[1].indexOf("%")?parseFloat(e[1])/100*f.height:parseFloat(e[1]))+f.y]),i.xOrigin=h=parseFloat(a[0]),i.yOrigin=u=parseFloat(a[1]),r&&T!==Ht&&(_=T[0],f=T[1],c=T[2],p=T[3],d=T[4],m=T[5],(g=_*p-f*c)&&(o=h*(p/g)+u*(-c/g)+(c*m-p*d)/g,l=h*(-f/g)+u*(_/g)-(_*m-f*d)/g,h=i.xOrigin=a[0]=o,u=i.yOrigin=a[1]=l)),x&&(s&&(i.xOffset=x.xOffset,i.yOffset=x.yOffset,x=i),n||!1!==n&&!1!==B.defaultSmoothOrigin?(o=h-y,l=u-v,x.xOffset+=o*T[0]+l*T[2]-o,x.yOffset+=o*T[1]+l*T[3]-l):x.xOffset=x.yOffset=0),s||t.setAttribute("data-svg-origin",a.join(" "))}function Dt(t){var e,i,r=this.data,n=-r.rotation*K,s=n+r.skewX*K,a=1e5,o=(Math.cos(n)*r.scaleX*a|0)/a,l=(Math.sin(n)*r.scaleX*a|0)/a,h=(Math.sin(s)*-r.scaleY*a|0)/a,u=(Math.cos(s)*r.scaleY*a|0)/a,_=this.t.style,f=this.t.currentStyle;if(f){i=l,l=-h,h=-i,e=f.filter,_.filter="";var c,p,d=this.t.offsetWidth,m=this.t.offsetHeight,g="absolute"!==f.position,y="progid:DXImageTransform.Microsoft.Matrix(M11="+o+", M12="+l+", M21="+h+", M22="+u,v=r.x+d*r.xPercent/100,x=r.y+m*r.yPercent/100;if(null!=r.ox&&(v+=(c=(r.oxp?d*r.ox*.01:r.ox)-d/2)-(c*o+(p=(r.oyp?m*r.oy*.01:r.oy)-m/2)*l),x+=p-(c*h+p*u)),g?y+=", Dx="+((c=d/2)-(c*o+(p=m/2)*l)+v)+", Dy="+(p-(c*h+p*u)+x)+")":y+=", sizingMethod='auto expand')",-1!==e.indexOf("DXImageTransform.Microsoft.Matrix(")?_.filter=e.replace(H,y):_.filter=y+" "+e,0!==t&&1!==t||1!=o||0!==l||0!==h||1!=u||(g&&-1===y.indexOf("Dx=0, Dy=0")||j.test(e)&&100!==parseFloat(RegExp.$1)||-1===e.indexOf(e.indexOf("Alpha"))&&_.removeAttribute("filter")),!g){var T,w,b,P=D<8?1:-1;for(c=r.ieOffsetX||0,p=r.ieOffsetY||0,r.ieOffsetX=Math.round((d-((o<0?-o:o)*d+(l<0?-l:l)*m))/2+v),r.ieOffsetY=Math.round((m-((u<0?-u:u)*m+(h<0?-h:h)*d))/2+x),Ot=0;Ot<4;Ot++)b=(i=-1!==(T=f[w=dt[Ot]]).indexOf("px")?parseFloat(T):ft(this.t,w,parseFloat(T),T.replace(N,""))||0)!==r[w]?Ot<2?-r.ieOffsetX:-r.ieOffsetY:Ot<2?c-r.ieOffsetX:p-r.ieOffsetY,_[w]=(r[w]=Math.round(i-b*(0===Ot||2===Ot?1:P)))+"px"}}}var Ft,Lt,zt,Et,It,Nt="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),jt=O("transform"),Xt=lt+"transform",Bt=O("transformOrigin"),Yt=null!==O("perspective"),Gt=st.Transform=function(){this.perspective=parseFloat(B.defaultTransformPerspective)||0,this.force3D=!(!1===B.defaultForce3D||!Yt)&&(B.defaultForce3D||"auto")},Ut=_gsScope.SVGElement,Vt=it.documentElement||{},qt=(It=D||/Android/i.test(at)&&!_gsScope.chrome,it.createElementNS&&Vt.appendChild&&!It&&(Lt=At("svg",Vt),Et=(zt=At("rect",Lt,{width:100,height:50,x:100})).getBoundingClientRect().width,zt.style[Bt]="50% 50%",zt.style[jt]="scaleX(0.5)",It=Et===zt.getBoundingClientRect().width&&!(Y&&Yt),Vt.removeChild(Lt)),It),Wt=function(t){var e,i=o("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"h"+"t"+"t"+"p"+":"+"/"+"/"+"www.w3.org/2000/svg"),r=this.parentNode,n=this.nextSibling,s=this.style.cssText;if(Vt.appendChild(i),i.appendChild(this),this.style.display="block",t)try{e=this.getBBox(),this._originalGetBBox=this.getBBox,this.getBBox=Wt}catch(t){}else this._originalGetBBox&&(e=this._originalGetBBox());return n?r.insertBefore(this,n):r.appendChild(this),Vt.removeChild(i),this.style.cssText=s,e},Qt=function(t){return!(!Ut||!t.getCTM||t.parentNode&&!t.ownerSVGElement||!function(e){try{return e.getBBox()}catch(t){return Wt.call(e,!0)}}(t))},Ht=[1,0,0,1,0,0],Zt=function(t,e){var i,r,n,s,a,o,l,h=t._gsTransform||new Gt,u=t.style;if(jt?r=_t(t,Xt,null,!0):t.currentStyle&&(r=(r=t.currentStyle.filter.match(Q))&&4===r.length?[r[0].substr(4),Number(r[2].substr(4)),Number(r[1].substr(4)),r[3].substr(4),h.x||0,h.y||0].join(","):""),i=!r||"none"===r||"matrix(1, 0, 0, 1, 0, 0)"===r,jt&&i&&!t.offsetParent&&t!==Vt&&(s=u.display,u.display="block",(l=t.parentNode)&&t.offsetParent||(a=1,o=t.nextSibling,Vt.appendChild(t)),i=!(r=_t(t,Xt,null,!0))||"none"===r||"matrix(1, 0, 0, 1, 0, 0)"===r,s?u.display=s:ee(u,"display"),a&&(o?l.insertBefore(t,o):l?l.appendChild(t):Vt.removeChild(t))),(h.svg||t.getCTM&&Qt(t))&&(i&&-1!==(u[jt]+"").indexOf("matrix")&&(r=u[jt],i=0),n=t.getAttribute("transform"),i&&n&&(r="matrix("+(n=t.transform.baseVal.consolidate().matrix).a+","+n.b+","+n.c+","+n.d+","+n.e+","+n.f+")",i=0)),i)return Ht;for(n=(r||"").match(z)||[],Ot=n.length;-1<--Ot;)s=Number(n[Ot]),n[Ot]=(a=s-(s|=0))?(1e5*a+(a<0?-.5:.5)|0)/1e5+s:s;return e&&6<n.length?[n[0],n[1],n[4],n[5],n[12],n[13]]:n},$t=st.getTransform=function(t,e,i,r){if(t._gsTransform&&i&&!r)return t._gsTransform;var n,s,a,o,l,h,u=i&&t._gsTransform||new Gt,_=u.scaleX<0,f=Yt&&(parseFloat(_t(t,Bt,e,!1,"0 0 0").split(" ")[2])||u.zOrigin)||0,c=parseFloat(B.defaultTransformPerspective)||0;if(u.svg=!(!t.getCTM||!Qt(t)),u.svg&&(Mt(t,_t(t,Bt,e,!1,"50% 50%")+"",u,t.getAttribute("data-svg-origin")),Ft=B.useSVGTransformAttr||qt),(n=Zt(t))!==Ht){if(16===n.length){var p,d,m,g,y,v=n[0],x=n[1],T=n[2],w=n[3],b=n[4],P=n[5],S=n[6],O=n[7],k=n[8],C=n[9],R=n[10],A=n[12],M=n[13],D=n[14],F=n[11],L=Math.atan2(S,R);u.zOrigin&&(A=k*(D=-u.zOrigin)-n[12],M=C*D-n[13],D=R*D+u.zOrigin-n[14]),u.rotationX=L*J,L&&(p=b*(g=Math.cos(-L))+k*(y=Math.sin(-L)),d=P*g+C*y,m=S*g+R*y,k=b*-y+k*g,C=P*-y+C*g,R=S*-y+R*g,F=O*-y+F*g,b=p,P=d,S=m),L=Math.atan2(-T,R),u.rotationY=L*J,L&&(d=x*(g=Math.cos(-L))-C*(y=Math.sin(-L)),m=T*g-R*y,C=x*y+C*g,R=T*y+R*g,F=w*y+F*g,v=p=v*g-k*y,x=d,T=m),L=Math.atan2(x,v),u.rotation=L*J,L&&(p=v*(g=Math.cos(L))+x*(y=Math.sin(L)),d=b*g+P*y,m=k*g+C*y,x=x*g-v*y,P=P*g-b*y,C=C*g-k*y,v=p,b=d,k=m),u.rotationX&&359.9<Math.abs(u.rotationX)+Math.abs(u.rotation)&&(u.rotationX=u.rotation=0,u.rotationY=180-u.rotationY),L=Math.atan2(b,P),u.scaleX=(1e5*Math.sqrt(v*v+x*x+T*T)+.5|0)/1e5,u.scaleY=(1e5*Math.sqrt(P*P+S*S)+.5|0)/1e5,u.scaleZ=(1e5*Math.sqrt(k*k+C*C+R*R)+.5|0)/1e5,v/=u.scaleX,b/=u.scaleY,x/=u.scaleX,P/=u.scaleY,2e-5<Math.abs(L)?(u.skewX=L*J,b=0,"simple"!==u.skewType&&(u.scaleY*=1/Math.cos(L))):u.skewX=0,u.perspective=F?1/(F<0?-F:F):0,u.x=A,u.y=M,u.z=D,u.svg&&(u.x-=u.xOrigin-(u.xOrigin*v-u.yOrigin*b),u.y-=u.yOrigin-(u.yOrigin*x-u.xOrigin*P))}else if(!Yt||r||!n.length||u.x!==n[4]||u.y!==n[5]||!u.rotationX&&!u.rotationY){var z=6<=n.length,E=z?n[0]:1,I=n[1]||0,N=n[2]||0,j=z?n[3]:1;u.x=n[4]||0,u.y=n[5]||0,a=Math.sqrt(E*E+I*I),o=Math.sqrt(j*j+N*N),l=E||I?Math.atan2(I,E)*J:u.rotation||0,h=N||j?Math.atan2(N,j)*J+l:u.skewX||0,u.scaleX=a,u.scaleY=o,u.rotation=l,u.skewX=h,Yt&&(u.rotationX=u.rotationY=u.z=0,u.perspective=c,u.scaleZ=1),u.svg&&(u.x-=u.xOrigin-(u.xOrigin*E+u.yOrigin*N),u.y-=u.yOrigin-(u.xOrigin*I+u.yOrigin*j))}for(s in 90<Math.abs(u.skewX)&&Math.abs(u.skewX)<270&&(_?(u.scaleX*=-1,u.skewX+=u.rotation<=0?180:-180,u.rotation+=u.rotation<=0?180:-180):(u.scaleY*=-1,u.skewX+=u.skewX<=0?180:-180)),u.zOrigin=f,u)u[s]<2e-5&&-2e-5<u[s]&&(u[s]=0)}return i&&((t._gsTransform=u).svg&&(Ft&&t.style[jt]?X.delayedCall(.001,function(){ee(t.style,jt)}):!Ft&&t.getAttribute("transform")&&X.delayedCall(.001,function(){t.removeAttribute("transform")}))),u},Kt=st.set3DTransformRatio=st.setTransformRatio=function(t){var e,i,r,n,s,a,o,l,h,u,_,f,c,p,d,m,g,y,v,x,T,w,b,P=this.data,S=this.t.style,O=P.rotation,k=P.rotationX,C=P.rotationY,R=P.scaleX,A=P.scaleY,M=P.scaleZ,D=P.x,F=P.y,L=P.z,z=P.svg,E=P.perspective,I=P.force3D,N=P.skewY,j=P.skewX;if(N&&(j+=N,O+=N),!((1!==t&&0!==t||"auto"!==I||this.tween._totalTime!==this.tween._totalDuration&&this.tween._totalTime)&&I||L||E||C||k||1!==M)||Ft&&z||!Yt)O||j||z?(O*=K,w=j*K,b=1e5,i=Math.cos(O)*R,s=Math.sin(O)*R,r=Math.sin(O-w)*-A,a=Math.cos(O-w)*A,w&&"simple"===P.skewType&&(e=Math.tan(w-N*K),r*=e=Math.sqrt(1+e*e),a*=e,N&&(e=Math.tan(N*K),i*=e=Math.sqrt(1+e*e),s*=e)),z&&(D+=P.xOrigin-(P.xOrigin*i+P.yOrigin*r)+P.xOffset,F+=P.yOrigin-(P.xOrigin*s+P.yOrigin*a)+P.yOffset,Ft&&(P.xPercent||P.yPercent)&&(d=this.t.getBBox(),D+=.01*P.xPercent*d.width,F+=.01*P.yPercent*d.height),D<(d=1e-6)&&-d<D&&(D=0),F<d&&-d<F&&(F=0)),v=(i*b|0)/b+","+(s*b|0)/b+","+(r*b|0)/b+","+(a*b|0)/b+","+D+","+F+")",z&&Ft?this.t.setAttribute("transform","matrix("+v):S[jt]=(P.xPercent||P.yPercent?"translate("+P.xPercent+"%,"+P.yPercent+"%) matrix(":"matrix(")+v):S[jt]=(P.xPercent||P.yPercent?"translate("+P.xPercent+"%,"+P.yPercent+"%) matrix(":"matrix(")+R+",0,0,"+A+","+D+","+F+")";else{if(Y&&(R<(d=1e-4)&&-d<R&&(R=M=2e-5),A<d&&-d<A&&(A=M=2e-5),!E||P.z||P.rotationX||P.rotationY||(E=0)),O||j)O*=K,m=i=Math.cos(O),g=s=Math.sin(O),j&&(O-=j*K,m=Math.cos(O),g=Math.sin(O),"simple"===P.skewType&&(e=Math.tan((j-N)*K),m*=e=Math.sqrt(1+e*e),g*=e,P.skewY&&(e=Math.tan(N*K),i*=e=Math.sqrt(1+e*e),s*=e))),r=-g,a=m;else{if(!(C||k||1!==M||E||z))return void(S[jt]=(P.xPercent||P.yPercent?"translate("+P.xPercent+"%,"+P.yPercent+"%) translate3d(":"translate3d(")+D+"px,"+F+"px,"+L+"px)"+(1!==R||1!==A?" scale("+R+","+A+")":""));i=a=1,r=s=0}u=1,n=o=l=h=_=f=0,c=E?-1/E:0,p=P.zOrigin,d=1e-6,x=",",T="0",(O=C*K)&&(m=Math.cos(O),_=c*(l=-(g=Math.sin(O))),n=i*g,o=s*g,c*=u=m,i*=m,s*=m),(O=k*K)&&(e=r*(m=Math.cos(O))+n*(g=Math.sin(O)),y=a*m+o*g,h=u*g,f=c*g,n=r*-g+n*m,o=a*-g+o*m,u*=m,c*=m,r=e,a=y),1!==M&&(n*=M,o*=M,u*=M,c*=M),1!==A&&(r*=A,a*=A,h*=A,f*=A),1!==R&&(i*=R,s*=R,l*=R,_*=R),(p||z)&&(p&&(D+=n*-p,F+=o*-p,L+=u*-p+p),z&&(D+=P.xOrigin-(P.xOrigin*i+P.yOrigin*r)+P.xOffset,F+=P.yOrigin-(P.xOrigin*s+P.yOrigin*a)+P.yOffset),D<d&&-d<D&&(D=T),F<d&&-d<F&&(F=T),L<d&&-d<L&&(L=0)),v=P.xPercent||P.yPercent?"translate("+P.xPercent+"%,"+P.yPercent+"%) matrix3d(":"matrix3d(",v+=(i<d&&-d<i?T:i)+x+(s<d&&-d<s?T:s)+x+(l<d&&-d<l?T:l),v+=x+(_<d&&-d<_?T:_)+x+(r<d&&-d<r?T:r)+x+(a<d&&-d<a?T:a),k||C||1!==M?(v+=x+(h<d&&-d<h?T:h)+x+(f<d&&-d<f?T:f)+x+(n<d&&-d<n?T:n),v+=x+(o<d&&-d<o?T:o)+x+(u<d&&-d<u?T:u)+x+(c<d&&-d<c?T:c)+x):v+=",0,0,0,0,1,0,",v+=D+x+F+x+L+x+(E?1+-L/E:1)+")",S[jt]=v}};(t=Gt.prototype).x=t.y=t.z=t.skewX=t.skewY=t.rotation=t.rotationX=t.rotationY=t.zOrigin=t.xPercent=t.yPercent=t.xOffset=t.yOffset=0,t.scaleX=t.scaleY=t.scaleZ=1,Ct("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(t,e,i,r,n,s,a){if(r._lastParsedTransform===a)return n;var o=(r._lastParsedTransform=a).scale&&"function"==typeof a.scale?a.scale:0;o&&(a.scale=o(L,t));var l,h,u,_,f,c,p,d,m,g=t._gsTransform,y=t.style,v=Nt.length,x=a,T={},w="transformOrigin",b=$t(t,S,!0,x.parseTransform),P=x.transform&&("function"==typeof x.transform?x.transform(L,F):x.transform);if(b.skewType=x.skewType||b.skewType||B.defaultSkewType,r._transform=b,"rotationZ"in x&&(x.rotation=x.rotationZ),P&&"string"==typeof P&&jt)(h=rt.style)[jt]=P,h.display="block",h.position="absolute",-1!==P.indexOf("%")&&(h.width=_t(t,"width"),h.height=_t(t,"height")),it.body.appendChild(rt),l=$t(rt,null,!1),"simple"===b.skewType&&(l.scaleY*=Math.cos(l.skewX*K)),b.svg&&(c=b.xOrigin,p=b.yOrigin,l.x-=b.xOffset,l.y-=b.yOffset,(x.transformOrigin||x.svgOrigin)&&(P={},Mt(t,mt(x.transformOrigin),P,x.svgOrigin,x.smoothOrigin,!0),c=P.xOrigin,p=P.yOrigin,l.x-=P.xOffset-b.xOffset,l.y-=P.yOffset-b.yOffset),(c||p)&&(d=Zt(rt,!0),l.x-=c-(c*d[0]+p*d[2]),l.y-=p-(c*d[1]+p*d[3]))),it.body.removeChild(rt),l.perspective||(l.perspective=b.perspective),null!=x.xPercent&&(l.xPercent=C(x.xPercent,b.xPercent)),null!=x.yPercent&&(l.yPercent=C(x.yPercent,b.yPercent));else if("object"==typeof x){if(l={scaleX:C(null!=x.scaleX?x.scaleX:x.scale,b.scaleX),scaleY:C(null!=x.scaleY?x.scaleY:x.scale,b.scaleY),scaleZ:C(x.scaleZ,b.scaleZ),x:C(x.x,b.x),y:C(x.y,b.y),z:C(x.z,b.z),xPercent:C(x.xPercent,b.xPercent),yPercent:C(x.yPercent,b.yPercent),perspective:C(x.transformPerspective,b.perspective)},null!=(f=x.directionalRotation))if("object"==typeof f)for(h in f)x[h]=f[h];else x.rotation=f;"string"==typeof x.x&&-1!==x.x.indexOf("%")&&(l.x=0,l.xPercent=C(x.x,b.xPercent)),"string"==typeof x.y&&-1!==x.y.indexOf("%")&&(l.y=0,l.yPercent=C(x.y,b.yPercent)),l.rotation=R("rotation"in x?x.rotation:"shortRotation"in x?x.shortRotation+"_short":b.rotation,b.rotation,"rotation",T),Yt&&(l.rotationX=R("rotationX"in x?x.rotationX:"shortRotationX"in x?x.shortRotationX+"_short":b.rotationX||0,b.rotationX,"rotationX",T),l.rotationY=R("rotationY"in x?x.rotationY:"shortRotationY"in x?x.shortRotationY+"_short":b.rotationY||0,b.rotationY,"rotationY",T)),l.skewX=R(x.skewX,b.skewX),l.skewY=R(x.skewY,b.skewY)}for(Yt&&null!=x.force3D&&(b.force3D=x.force3D,_=!0),(u=b.force3D||b.z||b.rotationX||b.rotationY||l.z||l.rotationX||l.rotationY||l.perspective)||null==x.scale||(l.scaleZ=1);-1<--v;)(1e-6<(P=l[m=Nt[v]]-b[m])||P<-1e-6||null!=x[m]||null!=tt[m])&&(_=!0,n=new Pt(b,m,b[m],P,n),m in T&&(n.e=T[m]),n.xs0=0,n.plugin=s,r._overwriteProps.push(n.n));return P="function"==typeof x.transformOrigin?x.transformOrigin(L,F):x.transformOrigin,b.svg&&(P||x.svgOrigin)&&(c=b.xOffset,p=b.yOffset,Mt(t,mt(P),l,x.svgOrigin,x.smoothOrigin),n=wt(b,"xOrigin",(g?b:l).xOrigin,l.xOrigin,n,w),n=wt(b,"yOrigin",(g?b:l).yOrigin,l.yOrigin,n,w),c===b.xOffset&&p===b.yOffset||(n=wt(b,"xOffset",g?c:b.xOffset,b.xOffset,n,w),n=wt(b,"yOffset",g?p:b.yOffset,b.yOffset,n,w)),P="0px 0px"),(P||Yt&&u&&b.zOrigin)&&(jt?(_=!0,m=Bt,P||(P=(P=(_t(t,m,S,!1,"50% 50%")+"").split(" "))[0]+" "+P[1]+" "+b.zOrigin+"px"),P+="",(n=new Pt(y,m,0,0,n,-1,w)).b=y[m],n.plugin=s,Yt?(h=b.zOrigin,P=P.split(" "),b.zOrigin=(2<P.length?parseFloat(P[2]):h)||0,n.xs0=n.e=P[0]+" "+(P[1]||"50%")+" 0px",(n=new Pt(b,"zOrigin",0,0,n,-1,n.n)).b=h,n.xs0=n.e=b.zOrigin):n.xs0=n.e=P):mt(P+"",b)),_&&(r._transformType=b.svg&&Ft||!u&&3!==this._transformType?2:3),o&&(a.scale=o),n},allowFunc:!0,prefix:!0}),Ct("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),Ct("clipPath",{defaultValue:"inset(0%)",prefix:!0,multi:!0,formatter:xt("inset(0% 0% 0% 0%)",!1,!0)}),Ct("borderRadius",{defaultValue:"0px",parser:function(t,e,i,r,n,s){e=this.format(e);var a,o,l,h,u,_,f,c,p,d,m,g,y,v,x,T,w=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],b=t.style;for(p=parseFloat(t.offsetWidth),d=parseFloat(t.offsetHeight),a=e.split(" "),o=0;o<w.length;o++)this.p.indexOf("border")&&(w[o]=O(w[o])),-1!==(u=h=_t(t,w[o],S,!1,"0px")).indexOf(" ")&&(u=(h=u.split(" "))[0],h=h[1]),_=l=a[o],f=parseFloat(u),g=u.substr((f+"").length),""===(m=(y="="===_.charAt(1))?(c=parseInt(_.charAt(0)+"1",10),_=_.substr(2),c*=parseFloat(_),_.substr((c+"").length-(c<0?1:0))||""):(c=parseFloat(_),_.substr((c+"").length)))&&(m=P[i]||g),m!==g&&(v=ft(t,"borderLeft",f,g),x=ft(t,"borderTop",f,g),h="%"===m?(u=v/p*100+"%",x/d*100+"%"):"em"===m?(u=v/(T=ft(t,"borderLeft",1,"em"))+"em",x/T+"em"):(u=v+"px",x+"px"),y&&(_=parseFloat(u)+c+m,l=parseFloat(h)+c+m)),n=St(b,w[o],u+" "+h,_+" "+l,!1,"0px",n);return n},prefix:!0,formatter:xt("0px 0px 0px 0px",!1,!0)}),Ct("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(t,e,i,r,n,s){return St(t.style,i,this.format(_t(t,i,S,!1,"0px 0px")),this.format(e),!1,"0px",n)},prefix:!0,formatter:xt("0px 0px",!1,!0)}),Ct("backgroundPosition",{defaultValue:"0 0",parser:function(t,e,i,r,n,s){var a,o,l,h,u,_,f="background-position",c=S||y(t),p=this.format((c?D?c.getPropertyValue(f+"-x")+" "+c.getPropertyValue(f+"-y"):c.getPropertyValue(f):t.currentStyle.backgroundPositionX+" "+t.currentStyle.backgroundPositionY)||"0 0"),d=this.format(e);if(-1!==p.indexOf("%")!=(-1!==d.indexOf("%"))&&d.split(",").length<2&&((_=_t(t,"backgroundImage").replace(q,""))&&"none"!==_)){for(a=p.split(" "),o=d.split(" "),nt.setAttribute("src",_),l=2;-1<--l;)(h=-1!==(p=a[l]).indexOf("%"))!=(-1!==o[l].indexOf("%"))&&(u=0===l?t.offsetWidth-nt.width:t.offsetHeight-nt.height,a[l]=h?parseFloat(p)/100*u+"px":parseFloat(p)/u*100+"%");p=a.join(" ")}return this.parseComplex(t.style,p,d,n,s)},formatter:mt}),Ct("backgroundSize",{defaultValue:"0 0",formatter:function(t){return"co"===(t+="").substr(0,2)?t:mt(-1===t.indexOf(" ")?t+" "+t:t)}}),Ct("perspective",{defaultValue:"0px",prefix:!0}),Ct("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),Ct("transformStyle",{prefix:!0}),Ct("backfaceVisibility",{prefix:!0}),Ct("userSelect",{prefix:!0}),Ct("margin",{parser:Tt("marginTop,marginRight,marginBottom,marginLeft")}),Ct("padding",{parser:Tt("paddingTop,paddingRight,paddingBottom,paddingLeft")}),Ct("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(t,e,i,r,n,s){var a,o,l;return e=D<9?(o=t.currentStyle,l=D<8?" ":",",a="rect("+o.clipTop+l+o.clipRight+l+o.clipBottom+l+o.clipLeft+")",this.format(e).split(",").join(l)):(a=this.format(_t(t,this.p,S,!1,this.dflt)),this.format(e)),this.parseComplex(t.style,a,e,n,s)}}),Ct("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),Ct("autoRound,strictUnits",{parser:function(t,e,i,r,n){return n}}),Ct("border",{defaultValue:"0px solid #000",parser:function(t,e,i,r,n,s){var a=_t(t,"borderTopWidth",S,!1,"0px"),o=this.format(e).split(" "),l=o[0].replace(N,"");return"px"!==l&&(a=parseFloat(a)/ft(t,"borderTopWidth",1,l)+l),this.parseComplex(t.style,this.format(a+" "+_t(t,"borderTopStyle",S,!1,"solid")+" "+_t(t,"borderTopColor",S,!1,"#000")),o.join(" "),n,s)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(vt)||["#000"])[0]}}),Ct("borderWidth",{parser:Tt("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),Ct("float,cssFloat,styleFloat",{parser:function(t,e,i,r,n,s){var a=t.style,o="cssFloat"in a?"cssFloat":"styleFloat";return new Pt(a,o,0,0,n,-1,i,!1,0,a[o],e)}});function Jt(t){var e,i=this.t,r=i.filter||_t(this.data,"filter")||"",n=this.s+this.c*t|0;100==n&&(e=-1===r.indexOf("atrix(")&&-1===r.indexOf("radient(")&&-1===r.indexOf("oader(")?(i.removeAttribute("filter"),!_t(this.data,"filter")):(i.filter=r.replace(_,""),!0)),e||(this.xn1&&(i.filter=r=r||"alpha(opacity="+n+")"),-1===r.indexOf("pacity")?0==n&&this.xn1||(i.filter=r+" alpha(opacity="+n+")"):i.filter=r.replace(j,"opacity="+n))}Ct("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(t,e,i,r,n,s){var a=parseFloat(_t(t,"opacity",S,!1,"1")),o=t.style,l="autoAlpha"===i;return"string"==typeof e&&"="===e.charAt(1)&&(e=("-"===e.charAt(0)?-1:1)*parseFloat(e.substr(2))+a),l&&1===a&&"hidden"===_t(t,"visibility",S)&&0!==e&&(a=0),ot?n=new Pt(o,"opacity",a,e-a,n):((n=new Pt(o,"opacity",100*a,100*(e-a),n)).xn1=l?1:0,o.zoom=1,n.type=2,n.b="alpha(opacity="+n.s+")",n.e="alpha(opacity="+(n.s+n.c)+")",n.data=t,n.plugin=s,n.setRatio=Jt),l&&((n=new Pt(o,"visibility",0,0,n,-1,null,!1,0,0!==a?"inherit":"hidden",0===e?"hidden":"inherit")).xs0="inherit",r._overwriteProps.push(n.n),r._overwriteProps.push(i)),n}});function te(t){if(this.t._gsClassPT=this,1===t||0===t){this.t.setAttribute("class",0===t?this.b:this.e);for(var e=this.data,i=this.t.style;e;)e.v?i[e.p]=e.v:ee(i,e.p),e=e._next;1===t&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)}var ee=function(t,e){e&&(t.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),t.removeProperty(e.replace(f,"-$1").toLowerCase())):t.removeAttribute(e))};Ct("className",{parser:function(t,e,i,r,n,s,a){var o,l,h,u,_,f=t.getAttribute("class")||"",c=t.style.cssText;if((n=r._classNamePT=new Pt(t,i,0,0,n,2)).setRatio=te,n.pr=-11,p=!0,n.b=f,l=v(t,S),h=t._gsClassPT){for(u={},_=h.data;_;)u[_.p]=1,_=_._next;h.setRatio(1)}return(t._gsClassPT=n).e="="!==e.charAt(1)?e:f.replace(new RegExp("(?:\\s|^)"+e.substr(2)+"(?![\\w-])"),"")+("+"===e.charAt(0)?" "+e.substr(2):""),t.setAttribute("class",n.e),o=x(t,l,v(t),a,u),t.setAttribute("class",f),n.data=o.firstMPT,t.style.cssText!==c&&(t.style.cssText=c),n.xfirst=r.parse(t,o.difs,n,s)}});function ie(t){if((1===t||0===t)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var e,i,r,n,s,a=this.t.style,o=m.transform.parse;if("all"===this.e)n=!(a.cssText="");else for(r=(e=this.e.split(" ").join("").split(",")).length;-1<--r;)i=e[r],m[i]&&(m[i].parse===o?n=!0:i="transformOrigin"===i?Bt:m[i].p),ee(a,i);n&&(ee(a,jt),(s=this.t._gsTransform)&&(s.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}}for(Ct("clearProps",{parser:function(t,e,i,r,n){return(n=new Pt(t,i,0,0,n,2)).setRatio=ie,n.e=e,n.pr=-10,n.data=r._tween,p=!0,n}}),t="bezier,throwProps,physicsProps,physics2D".split(","),Ot=t.length;Ot--;)Rt(t[Ot]);(t=B.prototype)._firstPT=t._lastParsedTransform=t._transform=null,t._onInitTween=function(t,e,i,r){if(!t.nodeType)return!1;this._target=F=t,this._tween=i,this._vars=e,L=r,A=e.autoRound,p=!1,P=e.suffixMap||B.suffixMap,S=y(t),d=this._overwriteProps;var n,s,a,o,l,h,u,_,f,c=t.style;if(w&&""===c.zIndex&&("auto"!==(n=_t(t,"zIndex",S))&&""!==n||this._addLazySet(c,"zIndex",0)),"string"==typeof e&&(o=c.cssText,n=v(t,S),c.cssText=o+";"+e,n=x(t,n,v(t)).difs,!ot&&G.test(e)&&(n.opacity=parseFloat(RegExp.$1)),e=n,c.cssText=o),e.className?this._firstPT=s=m.className.parse(t,e.className,"className",this,null,null,e):this._firstPT=s=this.parse(t,e,null),this._transformType){for(f=3===this._transformType,jt?b&&(w=!0,""===c.zIndex&&("auto"!==(u=_t(t,"zIndex",S))&&""!==u||this._addLazySet(c,"zIndex",0)),M&&this._addLazySet(c,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(f?"visible":"hidden"))):c.zoom=1,a=s;a&&a._next;)a=a._next;_=new Pt(t,"transform",0,0,null,2),this._linkCSSP(_,null,a),_.setRatio=jt?Kt:Dt,_.data=this._transform||$t(t,S,!0),_.tween=i,_.pr=-1,d.pop()}if(p){for(;s;){for(h=s._next,a=o;a&&a.pr>s.pr;)a=a._next;(s._prev=a?a._prev:l)?s._prev._next=s:o=s,(s._next=a)?a._prev=s:l=s,s=h}this._firstPT=o}return!0},t.parse=function(t,e,i,r){var n,s,a,o,l,h,u,_,f,c,p=t.style;for(n in e){if(h=e[n],s=m[n],"function"!=typeof h||s&&s.allowFunc||(h=h(L,F)),s)i=s.parse(t,h,n,this,i,r,e);else{if("--"===n.substr(0,2)){this._tween._propLookup[n]=this._addTween.call(this._tween,t.style,"setProperty",y(t).getPropertyValue(n)+"",h+"",n,!1,n);continue}l=_t(t,n,S)+"",f="string"==typeof h,"color"===n||"fill"===n||"stroke"===n||-1!==n.indexOf("Color")||f&&U.test(h)?(f||(h=(3<(h=yt(h)).length?"rgba(":"rgb(")+h.join(",")+")"),i=St(p,n,l,h,!0,"transparent",i,0,r)):f&&$.test(h)?i=St(p,n,l,h,!0,null,i,0,r):(u=(a=parseFloat(l))||0===a?l.substr((a+"").length):"",""!==l&&"auto"!==l||(u="width"===n||"height"===n?(a=T(t,n,S),"px"):"left"===n||"top"===n?(a=ct(t,n,S),"px"):(a="opacity"!==n?0:1,"")),""===(_=(c=f&&"="===h.charAt(1))?(o=parseInt(h.charAt(0)+"1",10),h=h.substr(2),o*=parseFloat(h),h.replace(N,"")):(o=parseFloat(h),f?h.replace(N,""):""))&&(_=n in P?P[n]:u),h=o||0===o?(c?o+a:o)+_:e[n],u===_||""===_&&"lineHeight"!==n||!o&&0!==o||!a||(a=ft(t,n,a,u),"%"===_?(a/=ft(t,n,100,"%")/100,!0!==e.strictUnits&&(l=a+"%")):"em"===_||"rem"===_||"vw"===_||"vh"===_?a/=ft(t,n,1,_):"px"!==_&&(o=ft(t,n,o,_),_="px"),c&&(o||0===o)&&(h=o+a+_)),c&&(o+=a),!a&&0!==a||!o&&0!==o?void 0!==p[n]&&(h||h+""!="NaN"&&null!=h)?(i=new Pt(p,n,o||a||0,0,i,-1,n,!1,0,l,h)).xs0="none"!==h||"display"!==n&&-1===n.indexOf("Style")?h:l:g("invalid "+n+" tween value: "+e[n]):(i=new Pt(p,n,a,o-a,i,0,n,!1!==A&&("px"===_||"zIndex"===n),0,l,h)).xs0=_)}r&&i&&!i.plugin&&(i.plugin=r)}return i},t.setRatio=function(t){var e,i,r,n=this._firstPT;if(1!==t||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(t||this._tween._time!==this._tween._duration&&0!==this._tween._time||-1e-6===this._tween._rawPrevTime)for(;n;){if(e=n.c*t+n.s,n.r?e=n.r(e):e<1e-6&&-1e-6<e&&(e=0),n.type)if(1===n.type)if(2===(r=n.l))n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2;else if(3===r)n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3;else if(4===r)n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3+n.xn3+n.xs4;else if(5===r)n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3+n.xn3+n.xs4+n.xn4+n.xs5;else{for(i=n.xs0+e+n.xs1,r=1;r<n.l;r++)i+=n["xn"+r]+n["xs"+(r+1)];n.t[n.p]=i}else-1===n.type?n.t[n.p]=n.xs0:n.setRatio&&n.setRatio(t);else n.t[n.p]=e+n.xs0;n=n._next}else for(;n;)2!==n.type?n.t[n.p]=n.b:n.setRatio(t),n=n._next;else for(;n;){if(2!==n.type)if(n.r&&-1!==n.type)if(e=n.r(n.s+n.c),n.type){if(1===n.type){for(r=n.l,i=n.xs0+e+n.xs1,r=1;r<n.l;r++)i+=n["xn"+r]+n["xs"+(r+1)];n.t[n.p]=i}}else n.t[n.p]=e+n.xs0;else n.t[n.p]=n.e;else n.setRatio(t);n=n._next}},t._enableTransforms=function(t){this._transform=this._transform||$t(this._target,S,!0),this._transformType=this._transform.svg&&Ft||!t&&3!==this._transformType?2:3};function re(t){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)}t._addLazySet=function(t,e,i){var r=this._firstPT=new Pt(t,e,0,0,this._firstPT,2);r.e=i,r.setRatio=re,r.data=this},t._linkCSSP=function(t,e,i,r){return t&&(e&&(e._prev=t),t._next&&(t._next._prev=t._prev),t._prev?t._prev._next=t._next:this._firstPT===t&&(this._firstPT=t._next,r=!0),i?i._next=t:r||null!==this._firstPT||(this._firstPT=t),t._next=e,t._prev=i),t},t._mod=function(t){for(var e=this._firstPT;e;)"function"==typeof t[e.p]&&(e.r=t[e.p]),e=e._next},t._kill=function(t){var e,i,r,n=t;if(t.autoAlpha||t.alpha){for(i in n={},t)n[i]=t[i];n.opacity=1,n.autoAlpha&&(n.visibility=1)}for(t.className&&(e=this._classNamePT)&&((r=e.xfirst)&&r._prev?this._linkCSSP(r._prev,e._next,r._prev._prev):r===this._firstPT&&(this._firstPT=e._next),e._next&&this._linkCSSP(e._next,e._next._next,r._prev),this._classNamePT=null),e=this._firstPT;e;)e.plugin&&e.plugin!==i&&e.plugin._kill&&(e.plugin._kill(t),i=e.plugin),e=e._next;return s.prototype._kill.call(this,n)};var ne=function(t,e,i){var r,n,s,a;if(t.slice)for(n=t.length;-1<--n;)ne(t[n],e,i);else for(n=(r=t.childNodes).length;-1<--n;)a=(s=r[n]).type,s.style&&(e.push(v(s)),i&&i.push(s)),1!==a&&9!==a&&11!==a||!s.childNodes.length||ne(s,e,i)};return B.cascadeTo=function(t,e,i){var r,n,s,a,o=X.to(t,e,i),l=[o],h=[],u=[],_=[],f=X._internals.reservedProps;for(t=o._targets||o.target,ne(t,h,_),o.render(e,!0,!0),ne(t,u),o.render(0,!0,!0),o._enabled(!0),r=_.length;-1<--r;)if((n=x(_[r],h[r],u[r])).firstMPT){for(s in n=n.difs,i)f[s]&&(n[s]=i[s]);for(s in a={},n)a[s]=h[r][s];l.push(X.fromTo(_[r],e,a,n))}return l},s.activate([B]),B},!0),t=_gsScope._gsDefine.plugin({propName:"roundProps",version:"1.7.0",priority:-1,API:2,init:function(t,e,i){return this._tween=i,!0}}),(e=t.prototype)._onInitAllProps=function(){var t,e,i,r,n=this._tween,s=n.vars.roundProps,a={},o=n._propLookup.roundProps;if("object"!=typeof s||s.push)for("string"==typeof s&&(s=s.split(",")),i=s.length;-1<--i;)a[s[i]]=Math.round;else for(r in s)a[r]=l(s[r]);for(r in a)for(t=n._firstPT;t;)e=t._next,t.pg?t.t._mod(a):t.n===r&&(2===t.f&&t.t?h(t.t._firstPT,a[r]):(this._add(t.t,r,t.s,t.c,a[r]),e&&(e._prev=t._prev),t._prev?t._prev._next=e:n._firstPT===t&&(n._firstPT=e),t._next=t._prev=null,n._propLookup[r]=o)),t=e;return!1},e._add=function(t,e,i,r,n){this._addTween(t,e,i,i+r,e,n||Math.round),this._overwriteProps.push(e)},_gsScope._gsDefine.plugin({propName:"attr",API:2,version:"0.6.1",init:function(t,e,i,r){var n,s;if("function"!=typeof t.setAttribute)return!1;for(n in e)"function"==typeof(s=e[n])&&(s=s(r,t)),this._addTween(t,"setAttribute",t.getAttribute(n)+"",s+"",n,!1,n),this._overwriteProps.push(n);return!0}}),_gsScope._gsDefine.plugin({propName:"directionalRotation",version:"0.3.1",API:2,init:function(t,e,i,r){"object"!=typeof e&&(e={rotation:e}),this.finals={};var n,s,a,o,l,h,u=!0===e.useRadians?2*Math.PI:360;for(n in e)"useRadians"!==n&&("function"==typeof(o=e[n])&&(o=o(r,t)),s=(h=(o+"").split("_"))[0],a=parseFloat("function"!=typeof t[n]?t[n]:t[n.indexOf("set")||"function"!=typeof t["get"+n.substr(3)]?n:"get"+n.substr(3)]()),l=(o=this.finals[n]="string"==typeof s&&"="===s.charAt(1)?a+parseInt(s.charAt(0)+"1",10)*Number(s.substr(2)):Number(s)||0)-a,h.length&&(-1!==(s=h.join("_")).indexOf("short")&&((l%=u)!==l%(u/2)&&(l=l<0?l+u:l-u)),-1!==s.indexOf("_cw")&&l<0?l=(l+9999999999*u)%u-(l/u|0)*u:-1!==s.indexOf("ccw")&&0<l&&(l=(l-9999999999*u)%u-(l/u|0)*u)),(1e-6<l||l<-1e-6)&&(this._addTween(t,n,a,a+l,n),this._overwriteProps.push(n)));return!0},set:function(t){var e;if(1!==t)this._super.setRatio.call(this,t);else for(e=this._firstPT;e;)e.f?e.t[e.p](this.finals[e.p]):e.t[e.p]=this.finals[e.p],e=e._next}})._autoCSS=!0,_gsScope._gsDefine("easing.Back",["easing.Ease"],function(m){function t(t,e){var i=_("easing."+t,function(){},!0),r=i.prototype=new m;return r.constructor=i,r.getRatio=e,i}function e(t,e,i,r,n){var s=_("easing."+t,{easeOut:new e,easeIn:new i,easeInOut:new r},!0);return f(s,t),s}function g(t,e,i){this.t=t,this.v=e,i&&(((this.next=i).prev=this).c=i.v-e,this.gap=i.t-t)}function i(t,e){var i=_("easing."+t,function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1},!0),r=i.prototype=new m;return r.constructor=i,r.getRatio=e,r.config=function(t){return new i(t)},i}var r,n,s,a,o=_gsScope.GreenSockGlobals||_gsScope,l=o.com.greensock,h=2*Math.PI,u=Math.PI/2,_=l._class,f=m.register||function(){},c=e("Back",i("BackOut",function(t){return--t*t*((this._p1+1)*t+this._p1)+1}),i("BackIn",function(t){return t*t*((this._p1+1)*t-this._p1)}),i("BackInOut",function(t){return(t*=2)<1?.5*t*t*((this._p2+1)*t-this._p2):.5*((t-=2)*t*((this._p2+1)*t+this._p2)+2)})),p=_("easing.SlowMo",function(t,e,i){e=e||0===e?e:.7,null==t?t=.7:1<t&&(t=1),this._p=1!==t?e:0,this._p1=(1-t)/2,this._p2=t,this._p3=this._p1+this._p2,this._calcEnd=!0===i},!0),d=p.prototype=new m;return d.constructor=p,d.getRatio=function(t){var e=t+(.5-t)*this._p;return t<this._p1?this._calcEnd?1-(t=1-t/this._p1)*t:e-(t=1-t/this._p1)*t*t*t*e:t>this._p3?this._calcEnd?1===t?0:1-(t=(t-this._p3)/this._p1)*t:e+(t-e)*(t=(t-this._p3)/this._p1)*t*t*t:this._calcEnd?1:e},p.ease=new p(.7,.7),d.config=p.config=function(t,e,i){return new p(t,e,i)},(d=(r=_("easing.SteppedEase",function(t,e){t=t||1,this._p1=1/t,this._p2=t+(e?0:1),this._p3=e?1:0},!0)).prototype=new m).constructor=r,d.getRatio=function(t){return t<0?t=0:1<=t&&(t=.999999999),((this._p2*t|0)+this._p3)*this._p1},d.config=r.config=function(t,e){return new r(t,e)},(d=(n=_("easing.ExpoScaleEase",function(t,e,i){this._p1=Math.log(e/t),this._p2=e-t,this._p3=t,this._ease=i},!0)).prototype=new m).constructor=n,d.getRatio=function(t){return this._ease&&(t=this._ease.getRatio(t)),(this._p3*Math.exp(this._p1*t)-this._p3)/this._p2},d.config=n.config=function(t,e,i){return new n(t,e,i)},(d=(s=_("easing.RoughEase",function(t){for(var e,i,r,n,s,a,o=(t=t||{}).taper||"none",l=[],h=0,u=0|(t.points||20),_=u,f=!1!==t.randomize,c=!0===t.clamp,p=t.template instanceof m?t.template:null,d="number"==typeof t.strength?.4*t.strength:.4;-1<--_;)e=f?Math.random():1/u*_,i=p?p.getRatio(e):e,r="none"===o?d:"out"===o?(n=1-e)*n*d:"in"===o?e*e*d:(n=e<.5?2*e:2*(1-e))*n*.5*d,f?i+=Math.random()*r-.5*r:_%2?i+=.5*r:i-=.5*r,c&&(1<i?i=1:i<0&&(i=0)),l[h++]={x:e,y:i};for(l.sort(function(t,e){return t.x-e.x}),a=new g(1,1,null),_=u;-1<--_;)s=l[_],a=new g(s.x,s.y,a);this._prev=new g(0,0,0!==a.t?a:a.next)},!0)).prototype=new m).constructor=s,d.getRatio=function(t){var e=this._prev;if(t>e.t){for(;e.next&&t>=e.t;)e=e.next;e=e.prev}else for(;e.prev&&t<=e.t;)e=e.prev;return(this._prev=e).v+(t-e.t)/e.gap*e.c},d.config=function(t){return new s(t)},s.ease=new s,e("Bounce",t("BounceOut",function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}),t("BounceIn",function(t){return(t=1-t)<1/2.75?1-7.5625*t*t:t<2/2.75?1-(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)}),t("BounceInOut",function(t){var e=t<.5;return t=(t=e?1-2*t:2*t-1)<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,e?.5*(1-t):.5*t+.5})),e("Circ",t("CircOut",function(t){return Math.sqrt(1- --t*t)}),t("CircIn",function(t){return-(Math.sqrt(1-t*t)-1)}),t("CircInOut",function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)})),e("Elastic",(a=function(t,e,i){var r=_("easing."+t,function(t,e){this._p1=1<=t?t:1,this._p2=(e||i)/(t<1?t:1),this._p3=this._p2/h*(Math.asin(1/this._p1)||0),this._p2=h/this._p2},!0),n=r.prototype=new m;return n.constructor=r,n.getRatio=e,n.config=function(t,e){return new r(t,e)},r})("ElasticOut",function(t){return this._p1*Math.pow(2,-10*t)*Math.sin((t-this._p3)*this._p2)+1},.3),a("ElasticIn",function(t){return-this._p1*Math.pow(2,10*--t)*Math.sin((t-this._p3)*this._p2)},.3),a("ElasticInOut",function(t){return(t*=2)<1?this._p1*Math.pow(2,10*--t)*Math.sin((t-this._p3)*this._p2)*-.5:this._p1*Math.pow(2,-10*--t)*Math.sin((t-this._p3)*this._p2)*.5+1},.45)),e("Expo",t("ExpoOut",function(t){return 1-Math.pow(2,-10*t)}),t("ExpoIn",function(t){return Math.pow(2,10*(t-1))-.001}),t("ExpoInOut",function(t){return(t*=2)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))})),e("Sine",t("SineOut",function(t){return Math.sin(t*u)}),t("SineIn",function(t){return 1-Math.cos(t*u)}),t("SineInOut",function(t){return-.5*(Math.cos(Math.PI*t)-1)})),_("easing.EaseLookup",{find:function(t){return m.map[t]}},!0),f(o.SlowMo,"SlowMo","ease,"),f(s,"RoughEase","ease,"),f(r,"SteppedEase","ease,"),c},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(f,c){"use strict";var p={},r=f.document,d=f.GreenSockGlobals=f.GreenSockGlobals||f,t=d[c];if(t)return"undefined"!=typeof module&&module.exports&&(module.exports=t);function m(t){var e,i=t.split("."),r=d;for(e=0;e<i.length;e++)r[i[e]]=r=r[i[e]]||{};return r}function l(t){var e,i=[],r=t.length;for(e=0;e!==r;i.push(t[e++]));return i}function g(){}var e,i,n,y,v,s,a,_=m("com.greensock"),x=1e-8,T=(s=Object.prototype.toString,a=s.call([]),function(t){return null!=t&&(t instanceof Array||"object"==typeof t&&!!t.push&&s.call(t)===a)}),w={},b=function(o,l,h,u){this.sc=w[o]?w[o].sc:[],(w[o]=this).gsClass=null,this.func=h;var _=[];this.check=function(t){for(var e,i,r,n,s=l.length,a=s;-1<--s;)(e=w[l[s]]||new b(l[s],[])).gsClass?(_[s]=e.gsClass,a--):t&&e.sc.push(this);if(0===a&&h){if(r=(i=("com.greensock."+o).split(".")).pop(),n=m(i.join("."))[r]=this.gsClass=h.apply(h,_),u)if(d[r]=p[r]=n,"undefined"!=typeof module&&module.exports)if(o===c)for(s in module.exports=p[c]=n,p)n[s]=p[s];else p[c]&&(p[c][r]=n);else"function"==typeof define&&define.amd&&define((f.GreenSockAMDPath?f.GreenSockAMDPath+"/":"")+o.split(".").pop(),[],function(){return n});for(s=0;s<this.sc.length;s++)this.sc[s].check()}},this.check(!0)},o=f._gsDefine=function(t,e,i,r){return new b(t,e,i,r)},P=_._class=function(t,e,i){return e=e||function(){},o(t,[],function(){return e},i),e};o.globals=d;var h=[0,0,1,1],S=P("easing.Ease",function(t,e,i,r){this._func=t,this._type=i||0,this._power=r||0,this._params=e?h.concat(e):h},!0),O=S.map={},u=S.register=function(t,e,i,r){for(var n,s,a,o,l=e.split(","),h=l.length,u=(i||"easeIn,easeOut,easeInOut").split(",");-1<--h;)for(s=l[h],n=r?P("easing."+s,null,!0):_.easing[s]||{},a=u.length;-1<--a;)o=u[a],O[s+"."+o]=O[o+s]=n[o]=t.getRatio?t:t[o]||new t};for((n=S.prototype)._calcEnd=!1,n.getRatio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,i=this._power,r=1===e?1-t:2===e?t:t<.5?2*t:2*(1-t);return 1===i?r*=r:2===i?r*=r*r:3===i?r*=r*r*r:4===i&&(r*=r*r*r*r),1===e?1-r:2===e?r:t<.5?r/2:1-r/2},i=(e=["Linear","Quad","Cubic","Quart","Quint,Strong"]).length;-1<--i;)n=e[i]+",Power"+i,u(new S(null,null,1,i),n,"easeOut",!0),u(new S(null,null,2,i),n,"easeIn"+(0===i?",easeNone":"")),u(new S(null,null,3,i),n,"easeInOut");O.linear=_.easing.Linear.easeIn,O.swing=_.easing.Quad.easeInOut;var k=P("events.EventDispatcher",function(t){this._listeners={},this._eventTarget=t||this});(n=k.prototype).addEventListener=function(t,e,i,r,n){n=n||0;var s,a,o=this._listeners[t],l=0;for(this!==y||v||y.wake(),null==o&&(this._listeners[t]=o=[]),a=o.length;-1<--a;)(s=o[a]).c===e&&s.s===i?o.splice(a,1):0===l&&s.pr<n&&(l=a+1);o.splice(l,0,{c:e,s:i,up:r,pr:n})},n.removeEventListener=function(t,e){var i,r=this._listeners[t];if(r)for(i=r.length;-1<--i;)if(r[i].c===e)return void r.splice(i,1)},n.dispatchEvent=function(t){var e,i,r,n=this._listeners[t];if(n)for(1<(e=n.length)&&(n=n.slice(0)),i=this._eventTarget;-1<--e;)(r=n[e])&&(r.up?r.c.call(r.s||i,{type:t,target:i}):r.c.call(r.s||i))};var C=f.requestAnimationFrame,R=f.cancelAnimationFrame,A=Date.now||function(){return(new Date).getTime()},M=A();for(i=(e=["ms","moz","webkit","o"]).length;-1<--i&&!C;)C=f[e[i]+"RequestAnimationFrame"],R=f[e[i]+"CancelAnimationFrame"]||f[e[i]+"CancelRequestAnimationFrame"];P("Ticker",function(t,e){var n,s,a,o,l,h=this,u=A(),i=!(!1===e||!C)&&"auto",_=500,f=33,c=function(t){var e,i,r=A()-M;_<r&&(u+=r-f),M+=r,h.time=(M-u)/1e3,e=h.time-l,(!n||0<e||!0===t)&&(h.frame++,l+=e+(o<=e?.004:o-e),i=!0),!0!==t&&(a=s(c)),i&&h.dispatchEvent("tick")};k.call(h),h.time=h.frame=0,h.tick=function(){c(!0)},h.lagSmoothing=function(t,e){return arguments.length?(_=t||1e8,void(f=Math.min(e,_,0))):_<1e8},h.sleep=function(){null!=a&&((i&&R?R:clearTimeout)(a),s=g,a=null,h===y&&(v=!1))},h.wake=function(t){null!==a?h.sleep():t?u+=-M+(M=A()):10<h.frame&&(M=A()-_+5),s=0===n?g:i&&C?C:function(t){return setTimeout(t,1e3*(l-h.time)+1|0)},h===y&&(v=!0),c(2)},h.fps=function(t){return arguments.length?(o=1/((n=t)||60),l=this.time+o,void h.wake()):n},h.useRAF=function(t){return arguments.length?(h.sleep(),i=t,void h.fps(n)):i},h.fps(t),setTimeout(function(){"auto"===i&&h.frame<5&&"hidden"!==(r||{}).visibilityState&&h.useRAF(!1)},1500)}),(n=_.Ticker.prototype=new _.events.EventDispatcher).constructor=_.Ticker;var D=P("core.Animation",function(t,e){if(this.vars=e=e||{},this._duration=this._totalDuration=t||0,this._delay=Number(e.delay)||0,this._timeScale=1,this._active=!!e.immediateRender,this.data=e.data,this._reversed=!!e.reversed,K){v||y.wake();var i=this.vars.useFrames?$:K;i.add(this,i._time),this.vars.paused&&this.paused(!0)}});y=D.ticker=new _.Ticker,(n=D.prototype)._dirty=n._gc=n._initted=n._paused=!1,n._totalTime=n._time=0,n._rawPrevTime=-1,n._next=n._last=n._onUpdate=n._timeline=n.timeline=null,n._paused=!1;var F=function(){v&&2e3<A()-M&&("hidden"!==(r||{}).visibilityState||!y.lagSmoothing())&&y.wake();var t=setTimeout(F,2e3);t.unref&&t.unref()};F(),n.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},n.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},n.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},n.seek=function(t,e){return this.totalTime(Number(t),!1!==e)},n.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,!1!==e,!0)},n.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},n.render=function(t,e,i){},n.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,!this._gc&&this.timeline||this._enabled(!0),this},n.isActive=function(){var t,e=this._timeline,i=this._startTime;return!e||!this._gc&&!this._paused&&e.isActive()&&(t=e.rawTime(!0))>=i&&t<i+this.totalDuration()/this._timeScale-x},n._enabled=function(t,e){return v||y.wake(),this._gc=!t,this._active=this.isActive(),!0!==e&&(t&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!t&&this.timeline&&this._timeline._remove(this,!0)),!1},n._kill=function(t,e){return this._enabled(!1,!1)},n.kill=function(t,e){return this._kill(t,e),this},n._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},n._swapSelfInParams=function(t){for(var e=t.length,i=t.concat();-1<--e;)"{self}"===t[e]&&(i[e]=this);return i},n._callback=function(t){var e=this.vars,i=e[t],r=e[t+"Params"],n=e[t+"Scope"]||e.callbackScope||this;switch(r?r.length:0){case 0:i.call(n);break;case 1:i.call(n,r[0]);break;case 2:i.call(n,r[0],r[1]);break;default:i.apply(n,r)}},n.eventCallback=function(t,e,i,r){if("on"===(t||"").substr(0,2)){var n=this.vars;if(1===arguments.length)return n[t];null==e?delete n[t]:(n[t]=e,n[t+"Params"]=T(i)&&-1!==i.join("").indexOf("{self}")?this._swapSelfInParams(i):i,n[t+"Scope"]=r),"onUpdate"===t&&(this._onUpdate=e)}return this},n.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},n.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&0<this._time&&this._time<this._duration&&0!==t&&this.totalTime(this._totalTime*(t/this._duration),!0),this):(this._dirty=!1,this._duration)},n.totalDuration=function(t){return this._dirty=!1,arguments.length?this.duration(t):this._totalDuration},n.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(t>this._duration?this._duration:t,e)):this._time},n.totalTime=function(t,e,i){if(v||y.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(t<0&&!i&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var r=this._totalDuration,n=this._timeline;if(r<t&&!i&&(t=r),this._startTime=(this._paused?this._pauseTime:n._time)-(this._reversed?r-t:t)/this._timeScale,n._dirty||this._uncache(!1),n._timeline)for(;n._timeline;)n._timeline._time!==(n._startTime+n._totalTime)/n._timeScale&&n.totalTime(n._totalTime,!0),n=n._timeline}this._gc&&this._enabled(!0,!1),this._totalTime===t&&0!==this._duration||(B.length&&tt(),this.render(t,e,!1),B.length&&tt())}return this},n.progress=n.totalProgress=function(t,e){var i=this.duration();return arguments.length?this.totalTime(i*t,e):i?this._time/i:this.ratio},n.startTime=function(t){return arguments.length?(t!==this._startTime&&(this._startTime=t,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,t-this._delay)),this):this._startTime},n.endTime=function(t){return this._startTime+(0!=t?this.totalDuration():this.duration())/this._timeScale},n.timeScale=function(t){if(!arguments.length)return this._timeScale;var e,i;for(t=t||x,this._timeline&&this._timeline.smoothChildTiming&&(i=(e=this._pauseTime)||0===e?e:this._timeline.totalTime(),this._startTime=i-(i-this._startTime)*this._timeScale/t),this._timeScale=t,i=this.timeline;i&&i.timeline;)i._dirty=!0,i.totalDuration(),i=i.timeline;return this},n.reversed=function(t){return arguments.length?(t!=this._reversed&&(this._reversed=t,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},n.paused=function(t){if(!arguments.length)return this._paused;var e,i,r=this._timeline;return t!=this._paused&&r&&(v||t||y.wake(),i=(e=r.rawTime())-this._pauseTime,!t&&r.smoothChildTiming&&(this._startTime+=i,this._uncache(!1)),this._pauseTime=t?e:null,this._paused=t,this._active=this.isActive(),!t&&0!=i&&this._initted&&this.duration()&&(e=r.smoothChildTiming?this._totalTime:(e-this._startTime)/this._timeScale,this.render(e,e===this._totalTime,!0))),this._gc&&!t&&this._enabled(!0,!1),this};var L=P("core.SimpleTimeline",function(t){D.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0});(n=L.prototype=new D).constructor=L,n.kill()._gc=!1,n._first=n._last=n._recent=null,n._sortChildren=!1,n.add=n.insert=function(t,e,i,r){var n,s;if(t._startTime=Number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pauseTime=this.rawTime()-(t._timeline.rawTime()-t._pauseTime)),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),n=this._last,this._sortChildren)for(s=t._startTime;n&&n._startTime>s;)n=n._prev;return n?(t._next=n._next,n._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=n,this._recent=t,this._timeline&&this._uncache(!0),this},n._remove=function(t,e){return t.timeline===this&&(e||t._enabled(!1,!0),t._prev?t._prev._next=t._next:this._first===t&&(this._first=t._next),t._next?t._next._prev=t._prev:this._last===t&&(this._last=t._prev),t._next=t._prev=t.timeline=null,t===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},n.render=function(t,e,i){var r,n=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;n;)r=n._next,(n._active||t>=n._startTime&&!n._paused&&!n._gc)&&(n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)),n=r},n.rawTime=function(){return v||y.wake(),this._totalTime};function z(t){return t&&t.length&&t!==f&&t[0]&&(t[0]===f||t[0].nodeType&&t[0].style&&!t.nodeType)}var E=P("TweenLite",function(t,e,i){if(D.call(this,e,i),this.render=E.prototype.render,null==t)throw"Cannot tween a null target.";this.target=t="string"!=typeof t?t:E.selector(t)||t;var r,n,s,a=t.jquery||t.length&&t!==f&&t[0]&&(t[0]===f||t[0].nodeType&&t[0].style&&!t.nodeType),o=this.vars.overwrite;if(this._overwrite=o=null==o?Z[E.defaultOverwrite]:"number"==typeof o?o>>0:Z[o],(a||t instanceof Array||t.push&&T(t))&&"number"!=typeof t[0])for(this._targets=s=l(t),this._propLookup=[],this._siblings=[],r=0;r<s.length;r++)(n=s[r])?"string"!=typeof n?n.length&&n!==f&&n[0]&&(n[0]===f||n[0].nodeType&&n[0].style&&!n.nodeType)?(s.splice(r--,1),this._targets=s=s.concat(l(n))):(this._siblings[r]=it(n,this,!1),1===o&&1<this._siblings[r].length&&rt(n,this,null,1,this._siblings[r])):"string"==typeof(n=s[r--]=E.selector(n))&&s.splice(r+1,1):s.splice(r--,1);else this._propLookup={},this._siblings=it(t,this,!1),1===o&&1<this._siblings.length&&rt(t,this,null,1,this._siblings);(this.vars.immediateRender||0===e&&0===this._delay&&!1!==this.vars.immediateRender)&&(this._time=-x,this.render(Math.min(0,-this._delay)))},!0);(n=E.prototype=new D).constructor=E,n.kill()._gc=!1,n.ratio=0,n._firstPT=n._targets=n._overwrittenProps=n._startAt=null,n._notifyPluginsOfEnabled=n._lazy=!1,E.version="2.1.3",E.defaultEase=n._ease=new S(null,null,1,1),E.defaultOverwrite="auto",E.ticker=y,E.autoSleep=120,E.lagSmoothing=function(t,e){y.lagSmoothing(t,e)},E.selector=f.$||f.jQuery||function(t){var e=f.$||f.jQuery;return e?(E.selector=e)(t):(r=r||f.document)?r.querySelectorAll?r.querySelectorAll(t):r.getElementById("#"===t.charAt(0)?t.substr(1):t):t};function I(t){for(var e,i=this._firstPT;i;)e=i.blob?1===t&&null!=this.end?this.end:t?this.join(""):this.start:i.c*t+i.s,i.m?e=i.m.call(this._tween,e,this._target||i.t,this._tween):e<1e-6&&-1e-6<e&&!i.blob&&(e=0),i.f?i.fp?i.t[i.p](i.fp,e):i.t[i.p](e):i.t[i.p]=e,i=i._next}function N(t){return(1e3*t|0)/1e3+""}function j(t,e,i,r){var n,s,a,o,l,h,u,_=[],f=0,c="",p=0;for(_.start=t,_.end=e,t=_[0]=t+"",e=_[1]=e+"",i&&(i(_),t=_[0],e=_[1]),_.length=0,n=t.match(G)||[],s=e.match(G)||[],r&&(r._next=null,r.blob=1,_._firstPT=_._applyPT=r),l=s.length,o=0;o<l;o++)u=s[o],c+=(h=e.substr(f,e.indexOf(u,f)-f))||!o?h:",",f+=h.length,p?p=(p+1)%5:"rgba("===h.substr(-5)&&(p=1),u===n[o]||n.length<=o?c+=u:(c&&(_.push(c),c=""),a=parseFloat(n[o]),_.push(a),_._firstPT={_next:_._firstPT,t:_,p:_.length-1,s:a,c:("="===u.charAt(1)?parseInt(u.charAt(0)+"1",10)*parseFloat(u.substr(2)):parseFloat(u)-a)||0,f:0,m:p&&p<4?Math.round:N}),f+=u.length;return(c+=e.substr(f))&&_.push(c),_.setRatio=I,U.test(e)&&(_.end=null),_}function X(t,e,i,r,n,s,a,o,l){"function"==typeof r&&(r=r(l||0,t));var h=typeof t[e],u="function"!=h?"":e.indexOf("set")||"function"!=typeof t["get"+e.substr(3)]?e:"get"+e.substr(3),_="get"!==i?i:u?a?t[u](a):t[u]():t[e],f="string"==typeof r&&"="===r.charAt(1),c={t:t,p:e,s:_,f:"function"==h,pg:0,n:n||e,m:s?"function"==typeof s?s:Math.round:0,pr:0,c:f?parseInt(r.charAt(0)+"1",10)*parseFloat(r.substr(2)):parseFloat(r)-_||0};return"number"==typeof _&&("number"==typeof r||f)||(a||isNaN(_)||!f&&isNaN(r)||"boolean"==typeof _||"boolean"==typeof r?(c.fp=a,c={t:j(_,f?parseFloat(c.s)+c.c+(c.s+"").replace(/[0-9\-\.]/g,""):r,o||E.defaultStringFilter,c),p:"setRatio",s:0,c:1,f:2,pg:0,n:n||e,pr:0,m:0}):(c.s=parseFloat(_),f||(c.c=parseFloat(r)-c.s||0))),c.c?((c._next=this._firstPT)&&(c._next._prev=c),this._firstPT=c):void 0}var B=[],Y={},G=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,U=/[\+-]=-?[\.\d]/,V=E._internals={isArray:T,isSelector:z,lazyTweens:B,blobDif:j},q=E._plugins={},W=V.tweenLookup={},Q=0,H=V.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1,yoyoEase:1,stagger:1},Z={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},$=D._rootFramesTimeline=new L,K=D._rootTimeline=new L,J=30,tt=V.lazyRender=function(){var t,e,i=B.length;for(Y={},t=0;t<i;t++)(e=B[t])&&!1!==e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0),e._lazy=!1);B.length=0};K._startTime=y.time,$._startTime=y.frame,K._active=$._active=!0,setTimeout(tt,1),D._updateRoot=E.render=function(){var t,e,i;if(B.length&&tt(),K.render((y.time-K._startTime)*K._timeScale,!1,!1),$.render((y.frame-$._startTime)*$._timeScale,!1,!1),B.length&&tt(),y.frame>=J){for(i in J=y.frame+(parseInt(E.autoSleep,10)||120),W){for(t=(e=W[i].tweens).length;-1<--t;)e[t]._gc&&e.splice(t,1);0===e.length&&delete W[i]}if((!(i=K._first)||i._paused)&&E.autoSleep&&!$._first&&1===y._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||y.sleep()}}},y.addEventListener("tick",D._updateRoot);function et(t,e,i,r){var n,s,a=t.vars.onOverwrite;return a&&(n=a(t,e,i,r)),(a=E.onOverwrite)&&(s=a(t,e,i,r)),!1!==n&&!1!==s}var it=function(t,e,i){var r,n,s=t._gsTweenID;if(W[s||(t._gsTweenID=s="t"+Q++)]||(W[s]={target:t,tweens:[]}),e&&((r=W[s].tweens)[n=r.length]=e,i))for(;-1<--n;)r[n]===e&&r.splice(n,1);return W[s].tweens},rt=function(t,e,i,r,n){var s,a,o,l;if(1===r||4<=r){for(l=n.length,s=0;s<l;s++)if((o=n[s])!==e)o._gc||o._kill(null,t,e)&&(a=!0);else if(5===r)break;return a}var h,u=e._startTime+x,_=[],f=0,c=0===e._duration;for(s=n.length;-1<--s;)(o=n[s])===e||o._gc||o._paused||(o._timeline!==e._timeline?(h=h||nt(e,0,c),0===nt(o,h,c)&&(_[f++]=o)):o._startTime<=u&&o._startTime+o.totalDuration()/o._timeScale>u&&((c||!o._initted)&&u-o._startTime<=2e-8||(_[f++]=o)));for(s=f;-1<--s;)if(l=(o=_[s])._firstPT,2===r&&o._kill(i,t,e)&&(a=!0),2!==r||!o._firstPT&&o._initted&&l){if(2!==r&&!et(o,e))continue;o._enabled(!1,!1)&&(a=!0)}return a},nt=function(t,e,i){for(var r=t._timeline,n=r._timeScale,s=t._startTime;r._timeline;){if(s+=r._startTime,n*=r._timeScale,r._paused)return-100;r=r._timeline}return e<(s/=n)?s-e:i&&s===e||!t._initted&&s-e<2e-8?x:(s+=t.totalDuration()/t._timeScale/n)>e+x?0:s-e-x};n._init=function(){var t,e,i,r,n,s,a=this.vars,o=this._overwrittenProps,l=this._duration,h=!!a.immediateRender,u=a.ease,_=this._startAt;if(a.startAt){for(r in _&&(_.render(-1,!0),_.kill()),n={},a.startAt)n[r]=a.startAt[r];if(n.data="isStart",n.overwrite=!1,n.immediateRender=!0,n.lazy=h&&!1!==a.lazy,n.startAt=n.delay=null,n.onUpdate=a.onUpdate,n.onUpdateParams=a.onUpdateParams,n.onUpdateScope=a.onUpdateScope||a.callbackScope||this,this._startAt=E.to(this.target||{},0,n),h)if(0<this._time)this._startAt=null;else if(0!==l)return}else if(a.runBackwards&&0!==l)if(_)_.render(-1,!0),_.kill(),this._startAt=null;else{for(r in 0!==this._time&&(h=!1),i={},a)H[r]&&"autoCSS"!==r||(i[r]=a[r]);if(i.overwrite=0,i.data="isFromStart",i.lazy=h&&!1!==a.lazy,i.immediateRender=h,this._startAt=E.to(this.target,0,i),h){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=u=u?u instanceof S?u:"function"==typeof u?new S(u,a.easeParams):O[u]||E.defaultEase:E.defaultEase,a.easeParams instanceof Array&&u.config&&(this._ease=u.config.apply(u,a.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(s=this._targets.length,t=0;t<s;t++)this._initProps(this._targets[t],this._propLookup[t]={},this._siblings[t],o?o[t]:null,t)&&(e=!0);else e=this._initProps(this.target,this._propLookup,this._siblings,o,0);if(e&&E._onPluginEvent("_onInitAllProps",this),o&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),a.runBackwards)for(i=this._firstPT;i;)i.s+=i.c,i.c=-i.c,i=i._next;this._onUpdate=a.onUpdate,this._initted=!0},n._initProps=function(t,e,i,r,n){var s,a,o,l,h,u;if(null==t)return!1;for(s in Y[t._gsTweenID]&&tt(),this.vars.css||t.style&&t!==f&&t.nodeType&&q.css&&!1!==this.vars.autoCSS&&function(t,e){var i,r={};for(i in t)H[i]||i in e&&"transform"!==i&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"className"!==i&&"border"!==i||!(!q[i]||q[i]&&q[i]._autoCSS)||(r[i]=t[i],delete t[i]);t.css=r}(this.vars,t),this.vars)if(u=this.vars[s],H[s])u&&(u instanceof Array||u.push&&T(u))&&-1!==u.join("").indexOf("{self}")&&(this.vars[s]=u=this._swapSelfInParams(u,this));else if(q[s]&&(l=new q[s])._onInitTween(t,this.vars[s],this,n)){for(this._firstPT=h={_next:this._firstPT,t:l,p:"setRatio",s:0,c:1,f:1,n:s,pg:1,pr:l._priority,m:0},a=l._overwriteProps.length;-1<--a;)e[l._overwriteProps[a]]=this._firstPT;(l._priority||l._onInitAllProps)&&(o=!0),(l._onDisable||l._onEnable)&&(this._notifyPluginsOfEnabled=!0),h._next&&(h._next._prev=h)}else e[s]=X.call(this,t,s,"get",u,s,0,null,this.vars.stringFilter,n);return r&&this._kill(r,t)?this._initProps(t,e,i,r,n):1<this._overwrite&&this._firstPT&&1<i.length&&rt(t,this,e,this._overwrite,i)?(this._kill(e,t),this._initProps(t,e,i,r,n)):(this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration)&&(Y[t._gsTweenID]=!0),o)},n.render=function(t,e,i){var r,n,s,a,o=this,l=o._time,h=o._duration,u=o._rawPrevTime;if(h-x<=t&&0<=t)o._totalTime=o._time=h,o.ratio=o._ease._calcEnd?o._ease.getRatio(1):1,o._reversed||(r=!0,n="onComplete",i=i||o._timeline.autoRemoveChildren),0!==h||!o._initted&&o.vars.lazy&&!i||(o._startTime===o._timeline._duration&&(t=0),(u<0||t<=0&&-x<=t||u===x&&"isPause"!==o.data)&&u!==t&&(i=!0,x<u&&(n="onReverseComplete")),o._rawPrevTime=a=!e||t||u===t?t:x);else if(t<x)o._totalTime=o._time=0,o.ratio=o._ease._calcEnd?o._ease.getRatio(0):0,(0!==l||0===h&&0<u)&&(n="onReverseComplete",r=o._reversed),-x<t?t=0:t<0&&(o._active=!1,0!==h||!o._initted&&o.vars.lazy&&!i||(0<=u&&(u!==x||"isPause"!==o.data)&&(i=!0),o._rawPrevTime=a=!e||t||u===t?t:x)),(!o._initted||o._startAt&&o._startAt.progress())&&(i=!0);else if(o._totalTime=o._time=t,o._easeType){var _=t/h,f=o._easeType,c=o._easePower;(1===f||3===f&&.5<=_)&&(_=1-_),3===f&&(_*=2),1===c?_*=_:2===c?_*=_*_:3===c?_*=_*_*_:4===c&&(_*=_*_*_*_),o.ratio=1===f?1-_:2===f?_:t/h<.5?_/2:1-_/2}else o.ratio=o._ease.getRatio(t/h);if(o._time!==l||i){if(!o._initted){if(o._init(),!o._initted||o._gc)return;if(!i&&o._firstPT&&(!1!==o.vars.lazy&&o._duration||o.vars.lazy&&!o._duration))return o._time=o._totalTime=l,o._rawPrevTime=u,B.push(o),void(o._lazy=[t,e]);o._time&&!r?o.ratio=o._ease.getRatio(o._time/h):r&&o._ease._calcEnd&&(o.ratio=o._ease.getRatio(0===o._time?0:1))}for(!1!==o._lazy&&(o._lazy=!1),o._active||!o._paused&&o._time!==l&&0<=t&&(o._active=!0),0===l&&(o._startAt&&(0<=t?o._startAt.render(t,!0,i):n=n||"_dummyGS"),!o.vars.onStart||0===o._time&&0!==h||(e||o._callback("onStart"))),s=o._firstPT;s;)s.f?s.t[s.p](s.c*o.ratio+s.s):s.t[s.p]=s.c*o.ratio+s.s,s=s._next;o._onUpdate&&(t<0&&o._startAt&&-1e-4!==t&&o._startAt.render(t,!0,i),e||(o._time!==l||r||i)&&o._callback("onUpdate")),!n||o._gc&&!i||(t<0&&o._startAt&&!o._onUpdate&&-1e-4!==t&&o._startAt.render(t,!0,i),r&&(o._timeline.autoRemoveChildren&&o._enabled(!1,!1),o._active=!1),!e&&o.vars[n]&&o._callback(n),0===h&&o._rawPrevTime===x&&a!==x&&(o._rawPrevTime=0))}},n._kill=function(t,e,i){if("all"===t&&(t=null),null==t&&(null==e||e===this.target))return this._lazy=!1,this._enabled(!1,!1);e="string"!=typeof e?e||this._targets||this.target:E.selector(e)||e;var r,n,s,a,o,l,h,u,_,f=i&&this._time&&i._startTime===this._startTime&&this._timeline===i._timeline,c=this._firstPT;if((T(e)||z(e))&&"number"!=typeof e[0])for(r=e.length;-1<--r;)this._kill(t,e[r],i)&&(l=!0);else{if(this._targets){for(r=this._targets.length;-1<--r;)if(e===this._targets[r]){o=this._propLookup[r]||{},this._overwrittenProps=this._overwrittenProps||[],n=this._overwrittenProps[r]=t?this._overwrittenProps[r]||{}:"all";break}}else{if(e!==this.target)return!1;o=this._propLookup,n=this._overwrittenProps=t?this._overwrittenProps||{}:"all"}if(o){if(h=t||o,u=t!==n&&"all"!==n&&t!==o&&("object"!=typeof t||!t._tempKill),i&&(E.onOverwrite||this.vars.onOverwrite)){for(s in h)o[s]&&(_=_||[]).push(s);if((_||!t)&&!et(this,i,e,_))return!1}for(s in h)(a=o[s])&&(f&&(a.f?a.t[a.p](a.s):a.t[a.p]=a.s,l=!0),a.pg&&a.t._kill(h)&&(l=!0),a.pg&&0!==a.t._overwriteProps.length||(a._prev?a._prev._next=a._next:a===this._firstPT&&(this._firstPT=a._next),a._next&&(a._next._prev=a._prev),a._next=a._prev=null),delete o[s]),u&&(n[s]=1);!this._firstPT&&this._initted&&c&&this._enabled(!1,!1)}}return l},n.invalidate=function(){this._notifyPluginsOfEnabled&&E._onPluginEvent("_onDisable",this);var t=this._time;return this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],D.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-x,this.render(t,!1,!1!==this.vars.lazy)),this},n._enabled=function(t,e){if(v||y.wake(),t&&this._gc){var i,r=this._targets;if(r)for(i=r.length;-1<--i;)this._siblings[i]=it(r[i],this,!0);else this._siblings=it(this.target,this,!0)}return D.prototype._enabled.call(this,t,e),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&E._onPluginEvent(t?"_onEnable":"_onDisable",this)},E.to=function(t,e,i){return new E(t,e,i)},E.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new E(t,e,i)},E.fromTo=function(t,e,i,r){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,new E(t,e,r)},E.delayedCall=function(t,e,i,r,n){return new E(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:r,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,lazy:!1,useFrames:n,overwrite:0})},E.set=function(t,e){return new E(t,0,e)},E.getTweensOf=function(t,e){if(null==t)return[];var i,r,n,s;if(t="string"!=typeof t?t:E.selector(t)||t,(T(t)||z(t))&&"number"!=typeof t[0]){for(i=t.length,r=[];-1<--i;)r=r.concat(E.getTweensOf(t[i],e));for(i=r.length;-1<--i;)for(s=r[i],n=i;-1<--n;)s===r[n]&&r.splice(i,1)}else if(t._gsTweenID)for(i=(r=it(t).concat()).length;-1<--i;)(r[i]._gc||e&&!r[i].isActive())&&r.splice(i,1);return r||[]},E.killTweensOf=E.killDelayedCallsTo=function(t,e,i){"object"==typeof e&&(i=e,e=!1);for(var r=E.getTweensOf(t,e),n=r.length;-1<--n;)r[n]._kill(i,t)};var st=P("plugins.TweenPlugin",function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=st.prototype},!0);if(n=st.prototype,st.version="1.19.0",st.API=2,n._firstPT=null,n._addTween=X,n.setRatio=I,n._kill=function(t){var e,i=this._overwriteProps,r=this._firstPT;if(null!=t[this._propName])this._overwriteProps=[];else for(e=i.length;-1<--e;)null!=t[i[e]]&&i.splice(e,1);for(;r;)null!=t[r.n]&&(r._next&&(r._next._prev=r._prev),r._prev?(r._prev._next=r._next,r._prev=null):this._firstPT===r&&(this._firstPT=r._next)),r=r._next;return!1},n._mod=n._roundProps=function(t){for(var e,i=this._firstPT;i;)(e=t[this._propName]||null!=i.n&&t[i.n.split(this._propName+"_").join("")])&&"function"==typeof e&&(2===i.f?i.t._applyPT.m=e:i.m=e),i=i._next},E._onPluginEvent=function(t,e){var i,r,n,s,a,o=e._firstPT;if("_onInitAllProps"===t){for(;o;){for(a=o._next,r=n;r&&r.pr>o.pr;)r=r._next;(o._prev=r?r._prev:s)?o._prev._next=o:n=o,(o._next=r)?r._prev=o:s=o,o=a}o=e._firstPT=n}for(;o;)o.pg&&"function"==typeof o.t[t]&&o.t[t]()&&(i=!0),o=o._next;return i},st.activate=function(t){for(var e=t.length;-1<--e;)t[e].API===st.API&&(q[(new t[e])._propName]=t[e]);return!0},o.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e,i=t.propName,r=t.priority||0,n=t.overwriteProps,s={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},a=P("plugins."+i.charAt(0).toUpperCase()+i.substr(1)+"Plugin",function(){st.call(this,i,r),this._overwriteProps=n||[]},!0===t.global),o=a.prototype=new st(i);for(e in(o.constructor=a).API=t.API,s)"function"==typeof t[e]&&(o[s[e]]=t[e]);return a.version=t.version,st.activate([a]),a},e=f._gsQueue){for(i=0;i<e.length;i++)e[i]();for(n in w)w[n].func||f.console.log("GSAP encountered missing dependency: "+n)}v=!1}("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"TweenMax"),function(t){"function"==typeof define&&define.amd?define(t):"undefined"!=typeof exports?module.exports=t():t()}(function(){(void 0!==LS_GSAP?LS_GSAP:window).SplitType=function(C,l,s){function h(t){return null!==t&&"object"==typeof t}function u(t){return h(t)&&"number"==typeof t.length&&0<t.length}function _(t){return h(t)&&/^(1|3|11)$/.test(t.nodeType)}function R(t,e,i){for(var r=Object(t),n=u(r)?r:h(o=r)&&"[object Object]"===Object.prototype.toString.call(o)?c(r):[r],s=parseInt(n.length)||0,a=0;a<s;a++)e.call(i,n[a],a,r);var o}function i(i,r){return i=Object(i),r=Object(r),Object.getOwnPropertyNames(i).reduce(function(t,e){return n(t,e,p(r,e)||p(i,e))},{})}function A(t,e,i){var r,n={};return h(t)&&(r=t[a]||(t[a]=++f),n=o[r]||(o[r]={})),i===s?e===s?n:n[e]:e!==s?n[e]=i:void 0}function M(t,i){var r=l.createElement(t);return i===s||R(i,function(t){var e=i[t];if(null!==e)switch(t){case"textContent":r.textContent=e;break;case"innerHTML":r.innerHTML=e;break;case"children":R(e,function(t){_(t)&&r.appendChild(t)});break;default:r.setAttribute(t,e)}}),r}function r(t,e){return this instanceof r?(this.isSplit=!1,this.settings=i(d,e),this.elements=function(t){var e,i,r,n,s,a,o=[];if("string"==typeof t&&(t="#"===(e=t.trim())[0]&&!/[^\w]/.test(i=e.slice(1))?l.getElementById(i):l.querySelectorAll(e)),e||_(t))return _(t)?[t]:F.call(t);if(u(t))for(s=0,r=t.length;s<r;s++)if(u(t[s]))for(a=0,n=t[s].length;a<n;a++)_(t[s][a])&&o.push(t[s][a]);else _(t[s])&&o.push(t[s]);return o}(t),void(this.elements.length&&(this.originals=this.elements.map(function(t){return A(t).html=A(t).html||t.innerHTML}),this.split()))):new r(t,e)}if(l.addEventListener&&Function.prototype.bind){var a="splitType"+ +new Date,o={},f=0,D=Array.prototype.push,F=Array.prototype.slice,c=Object.keys,n=(Object.prototype.hasOwnProperty,Object.defineProperty),p=(Object.defineProperties,Object.getOwnPropertyDescriptor),L=l.createDocumentFragment.bind(l),z=l.createTextNode.bind(l),d={splitClass:"",lineClass:"line",wordClass:"word",charClass:"char",split:"lines, words, chars",position:"relative",absolute:!1,tagName:"div",DEBUG:!1};return n(r,"defaults",{get:function(){return d},set:function(t){d=i(d,t)}}),r.prototype.split=function(t){this.revert(),this.lines=[],this.words=[],this.chars=[],t!==s&&(this.settings=i(this.settings,t)),R(this.elements,function(t){(function(t){var e,i,r,n,s=this.settings,a=s.tagName,o="B"+ +new Date+"R",l=s.split,h=-1!==l.indexOf("lines"),u=-1!==l.indexOf("words"),_=-1!==l.indexOf("chars"),f="absolute"===s.position||!0===s.absolute,c=M("div"),p=[],d=[];if(r=h?M("div"):L(),c.innerHTML=t.innerHTML.replace(/<br\s*\/?>/g," "+o+" "),n=c.textContent.replace(/\s+/g," ").trim().split(" ").map(function(t){if(t===o)return r.appendChild(M("br")),null;if(_){var e=t.split("").map(function(t){return M(a,{class:s.charClass+" "+s.splitClass,style:"display: inline-block;",textContent:t})});D.apply(d,e)}return u||h?(i=M(a,{class:s.wordClass+" "+s.splitClass,style:"display: inline-block; position:"+(u?"relative":"static;"),children:_?e:null,textContent:_?null:t}),r.appendChild(i)):R(e,function(t){r.appendChild(t)}),r.appendChild(z(" ")),i},this).filter(function(t){return t}),t.innerHTML="",t.appendChild(r),D.apply(this.words,n),D.apply(this.chars,d),f||h){var m,g,y,v,x,T,w,b,P,S,O,k=[];w=A(t).nodes=t.getElementsByTagName(a),b=t.parentElement,P=t.nextElementSibling,S=C.getComputedStyle(t),O=S.textAlign,f&&(v={left:r.offsetLeft,top:r.offsetTop,width:r.offsetWidth},T=t.offsetWidth,x=t.offsetHeight,A(t).cssWidth=t.style.width,A(t).cssHeight=t.style.height),R(w,function(t){if(t!==r){var e,i=t.parentElement===r;h&&i&&((e=A(t).top=t.offsetTop)!==g&&(g=e,k.push(m=[])),m.push(t)),f&&(A(t).top=e||t.offsetTop,A(t).left=t.offsetLeft,A(t).width=t.offsetWidth,A(t).height=y=y||t.offsetHeight)}}),b.removeChild(t),h&&(r=L(),p=k.map(function(t){return r.appendChild(e=M(a,{class:s.lineClass+" "+s.splitClass,style:"display: block; text-align:"+O+"; width: 100%;"})),f&&(A(e).type="line",A(e).top=A(t[0]).top,A(e).height=y),R(t,function(t){u?e.appendChild(t):_?F.call(t.children).forEach(function(t){e.appendChild(t)}):e.appendChild(z(t.textContent)),e.appendChild(z(" "))}),e}),t.replaceChild(r,t.firstChild),D.apply(this.lines,p)),f&&(t.style.width=t.style.width||T+"px",t.style.height=x+"px",R(w,function(t){var e="line"===A(t).type,i=!e&&"line"===A(t.parentElement).type;t.style.top=i?0:A(t).top+"px",t.style.left=e?v.left+"px":(i?A(t).left-v.left:A(t).left)+"px",t.style.height=A(t).height+"px",t.style.width=e?v.width+"px":A(t).width+"px",t.style.position="absolute"})),P?b.insertBefore(t,P):b.appendChild(t)}}).call(this,t),A(t).isSplit=!0},this),this.isSplit=!0,R(this.elements,function(t){for(var e=A(t).nodes||[],i=0,r=e.length;i<r;i++)(s=(n=e[i])&&n[a])&&(delete n[s],delete o[s]);var n,s})},r.prototype.revert=function(){this.isSplit&&(this.lines=this.words=this.chars=null),R(this.elements,function(t){A(t).isSplit&&A(t).html&&(t.innerHTML=A(t).html,t.style.height=A(t).cssHeight||"",t.style.width=A(t).cssWidth||"",this.isSplit=!1)},this)},r}}(window,document)}),"object"==typeof LS_Meta&&LS_Meta.fixGSAP&&(window.GreenSockGlobals=null,window._gsQueue=null,window._gsDefine=null,delete window.GreenSockGlobals,delete window._gsQueue,delete window._gsDefine,window.GreenSockGlobals=LS_oldGS,window._gsQueue=LS_oldGSQueue,window._gsDefine=LS_oldGSDefine),window._layerSlider={globals:{youTubeIsReady:!1,vimeoIsReady:!1},GSAP:void 0!==LS_GSAP&&LS_GSAP,pluginsLoaded:[],pluginsNotLoaded:[],pluginsBeingLoaded:[],plugins:{},slidersList:{},currentScript:document.currentScript,lsScript:jQuery('script[src*="layerslider.kreaturamedia.jquery.js"]')[0],scriptPath:"",pluginsPath:!1,showNotice:function(t,e,i,r){var n,s,a,o=jQuery(t),l="ls-issue-"+e;switch(e){case"jquery":a="Multiple jQuery issue",s='It looks like that another plugin or your theme loads an extra copy of the jQuery library causing problems for LayerSlider to show your sliders. Please navigate from your WordPress admin sidebar to LayerSlider -> Options -> Advanced and enable the "Include scripts in the footer" option.';break;case"oldjquery":a="Old jQuery issue",s="It looks like you are using an old version ("+i+") of the jQuery library. LayerSlider requires at least version "+r+" or newer. Please update jQuery to 1.10.x or higher. Important: Please do not use the jQuery Updater plugin on WordPress as it can cause issues in certain cases."}o.each(function(){(n=jQuery(this)).hasClass(l)||(n.addClass(l),jQuery('<div class="ls-slider-notification"><i class="ls-slider-notification-logo">!</i><strong>LayerSlider: '+a+"</strong><span>"+s+"</span></div>").insertBefore(n))})},removeSlider:function(t){this.slidersList[t]=null,delete this.slidersList[t]},checkVersions:function(t,e){for(var i=t.split("."),r=e.split("."),n=0;n<i.length;++n){if(r.length==n)return!1;if(parseInt(i[n])!=parseInt(r[n]))return!(parseInt(i[n])>parseInt(r[n]))}return i.length,r.length,!0}},Number.prototype.indexOf=function(t){return(""+this).indexOf(t)};
;eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('!q(X){"kV kW";1g.6T={},X.fn.4z=q(i,a,s,r){i=i||{};Y t,e="1.8.0",o=X.fn.gn;if(1g.2L.go(e,o,e))1O(2s i).3Y("5J|6U")?j.2P(q(e){t="kX"+1z.2M().dg(36).gp(2,9),X(j).G("6V")||(1g.6T[t]=3Z n(j,X(j),i,t))}):"G"===i?1g.6T[j.G("6V")]:"4p"===i?1g.6T[j.G("6V")].2z.4p():"kY"===i?1g.6T[j.G("6V")].1i.1d.2A||!1:"6o"===i?1g.6T[j.G("6V")].6o||!1:"kZ"===i?1g.6T[j.G("6V")].o||!1:"dh"===i?1g.6T[j.G("6V")].dh||!1:j.2P(q(e){Y t=1g.6T[X(j).G("6V")];t&&t.2z.8O(i,a,s,r),t=3f});1g.2L.l0(j,"l1",o,e)};Y n=q(P,$,i,B){$.G("6V",B).1m("G-5X-di",B);Y N=j,H=N.l2=1g.2L.l3||1g;N.1i={1d:{dj:"|",1P:"l4",5i:["#dk","#dl","#3p","#gq","#2T","#1R","#2w","#1L","#6p","#3h","#3h-6p","#dm"],2A:{1C:"1Y",87:"4Y",dn:!0,gr:!0,gs:!0,6W:-1,bp:-1,gt:-1,5K:-1,gu:"9W",do:3f,bq:!1,8P:"br",gv:"50% 50%",gw:!1,8Q:!0,9X:!0,5j:!1,gx:1,gy:!1,dp:!1,5L:"dq",9Y:!1,4i:1,bs:l5,5M:-1,dr:!0,9Z:!1,88:!1,7C:bt,4q:"l6",8R:"/5X/ds/",8S:"4Z",8T:!1,gz:"no-5k",gA:"1Z",gB:"2r",gC:"50% 50%",dt:!0,a0:!0,bu:!0,gD:!0,gE:!0,gF:!0,bv:!1,gG:!1,gH:!0,gI:!1,6q:"1q",bw:"60%",du:1k,a1:60,dv:35,dw:1k,a2:0,dx:!0,8U:"2r",gJ:"gK.8V",89:!0,dy:40,dz:10,dA:"8a",gL:!1,3i:!1,gM:"1U: -gN; 2h: -gN;",dB:!1,gO:"l7",gP:!0,dC:!1,dD:-1,bx:-1,dE:!0,dF:!1,dG:!0,gQ:!1,gR:!0,l8:""}},K:{8b:"dH (l9: "+B+") 5l:"},1M:{8W:{la:["G","1I"],1I:["G","1I"],lb:["G","bz"],7D:["G","7D"],8c:["G","8c"],gS:["G","gS"],7E:["G","7E"],7F:["G","7F"],lc:["G","a3"],ld:["G","bA"],le:["G","bA"],lf:["G","bB"],lg:["G","bB"],li:["G","3a"],lj:["G","3a"],2j:["G","2j"],4j:["G","4j"],51:["G","51"],gT:["2t","gU"],gV:["2t","6r"],gW:["2t","27"],gX:["2t","27"],gY:["2t","2U"],lk:["1r","3N"],ll:["1r","to"],gZ:["1j","1C"],h0:["1j","5v"],h1:["1j","8d"],h2:["1j","2o"],h3:["1j","1I"],h4:["1j","2O"],h5:["1j","2G"],h6:["1j","2G"],h7:["1j","dI"],h8:["1j","3j"],h9:["1j","a4"],ha:["1j","bC"],hb:["1j","27"],hc:["1j","27"],hd:["1j","7G"],he:["1j","2u"],5Y:["G","5Y"]},2A:{$4K:!1,1E:-1,G:{1I:-1,bz:0,bD:0},1j:{},2t:{2U:1.2},1r:{}},lm:q(e,t,i){N.1i.1M.2A.2Q||(N.1i.1M.2A.2Q={}),N.1i.1M.2A.2Q[e]=t}},2p:{8W:{hf:["is"],1Y:["is"],6s:["2V"],3q:["2V"],ln:["2V"],8e:["46"],8f:["46"],6X:["46"],hg:["46"],4L:["1Q"],5i:["1Q"],6Y:["1Q"],dJ:["1Q"],2j:["52","1Q"],52:["1Q"],3F:["1Q"],3l:["1Q"],lo:["1t","1Q"],a5:["2n","1Q"],lp:["2W","4M"],lq:["2W","4M"],lr:["27","4M"],lt:["3v","4M"],lu:["3w","4M"],lv:["27","4M"],lx:["3v","4M"],ly:["3w","4M"],lz:["2U","4M"],lA:["4A","4M"],lB:["4N","4M"],lC:["5N","4M"],lD:["5O","4M"],lE:["3a","8X"],lF:["47","8X"],lG:["3Q","5Z"],lH:["U","5Z"],lI:["Z","5Z"],lJ:["1r","5Z"],4k:["27","53"],lK:["3v","53"],lL:["3w","53"],27:["27","53"],lM:["3v","53"],lN:["3w","53"],2U:["2U","53"],lO:["4A","53"],lP:["4N","53"],lQ:["5N","53"],lR:["5O","53"],lS:["3j","a6"],lT:["x","a6"],lU:["y","a6"],lV:["2a","a7"],lW:["2G","in"],lX:["2G","in"],lY:["2G","in"],lZ:["1I","in"],dK:["2k","in"],m0:["2k","in"],m1:["1S","in"],m2:["2W","3O"],m3:["2W","3O"],m4:["27","3O"],m5:["3v","3O"],m6:["3w","3O"],m7:["27","3O"],m8:["3v","3O"],m9:["3w","3O"],ma:["2U","3O"],mb:["4A","3O"],mc:["4N","3O"],md:["5N","3O"],me:["5O","3O"],mf:["2k","8Y"],mg:["2k","8Y"],mh:["3j","8g"],mi:["x","8g"],mj:["y","8g"],mk:["1C","21"],ml:["7H","21"],mm:["2G","21"],mn:["2G","21"],mo:["2G","21"],mp:["1I","21"],mq:["1S","21"],mr:["2W","4r"],mt:["2W","4r"],mu:["27","4r"],mv:["3v","4r"],mw:["3w","4r"],mx:["27","4r"],my:["3v","4r"],mz:["3w","4r"],mA:["2U","4r"],mB:["4A","4r"],mC:["4N","4r"],mD:["5N","4r"],mE:["5O","4r"],mF:["3a","8Z"],mG:["47","8Z"],mH:["3Q","61"],mI:["U","61"],mJ:["Z","61"],mK:["1r","61"],mL:["3j","a8"],mM:["x","a8"],mN:["y","a8"],mO:["2a","7I"],mP:["bE","1J"],mQ:["2G","1J"],mR:["2G","1J"],mS:["1I","1J"],dL:["2k","1J"],mT:["2k","1J"],mU:["1S","1J"],mV:["2W","3x"],mW:["2W","3x"],mX:["27","3x"],mY:["3v","3x"],mZ:["3w","3x"],n0:["27","3x"],n1:["3v","3x"],n2:["3w","3x"],n3:["2U","3x"],n4:["4A","3x"],n5:["4N","3x"],n6:["5N","3x"],n7:["5O","3x"],n8:["2k","3x"],n9:["2k","3x"],na:["3j","8h"],nb:["x","8h"],nc:["y","8h"],nd:["1C","2v"],ne:["7H","2v"],nf:["2G","2v"],ng:["2G","2v"],nh:["2G","2v"],ni:["1I","2v"],nj:["1S","2v"],nk:["2W","4s"],nl:["27","4s"],nm:["3v","4s"],nn:["3w","4s"],np:["27","4s"],nq:["3v","4s"],nr:["3w","4s"],nt:["2U","4s"],nu:["4A","4s"],nv:["4N","4s"],nw:["5N","4s"],nx:["5O","4s"],ny:["3j","6t"],nz:["x","6t"],nA:["y","6t"],nB:["1r","6t"],nC:["2a","a9"],nD:["2G","1t"],nE:["2G","1t"],nF:["1I","1t"],nG:["2O","1t"],nH:["91","1t"],nI:["7J","1t"],nJ:["2k","1t"],nK:["2k","1t"],1t:["1S","1t"],nL:["2W","4t"],nM:["27","4t"],nN:["3v","4t"],nO:["3w","4t"],nP:["27","4t"],nQ:["3v","4t"],nR:["3w","4t"],nS:["2U","4t"],nT:["4A","4t"],nU:["4N","4t"],nV:["5N","4t"],nW:["5O","4t"],nX:["3a","4t"],nY:["47","4t"],nZ:["5P","1q"],o0:["5P","1q"],o1:["5P","1q"],o2:["5P","1q"],o3:["6u","1q"],o4:["6u","1q"],o5:["6Z","1q"],o6:["6Z","1q"],o7:["aa","1q"],o8:["dM","1q"],o9:["x","4O"],oa:["y","4O"],ob:["1r","4O"],oc:["3Q","4O"],od:["3Q","4O"],oe:["3j","4O"],1q:["1S","1q"],gT:["gU","2t"],gV:["6r","2t"],gW:["27","2t"],gX:["27","2t"],gY:["2U","2t"],og:["62","1j"],gZ:["1C","1j"],h0:["5v","1j"],h1:["8d","1j"],h2:["2o","1j"],h3:["1I","1j"],h4:["2O","1j"],h5:["2G","1j"],h6:["2G","1j"],h7:["dI","1j"],h8:["3j","1j"],h9:["a4","1j"],ha:["bC","1j"],hb:["27","1j"],hc:["27","1j"],hd:["7G","1j"],1j:["1S","1j"],oh:["2p","2u"],oi:["2p","2u"],oj:["2p","2u"],ok:["54","2u"],ol:["54","2u"],om:["54","2u"],oo:["1t","2u"],op:["1q","2u"],he:["1j","2u"]},dN:["oq","os","ot","ou","ov","ow","ox","oy","oz","oA","oB","oC","oD","oE","oF"],hh:{dO:[0],7K:[1],70:[2],7L:[3,[1,2,6,7,8]],92:[4],7M:[5],6v:[6,[1,2,3,4,5]],71:[7],ab:[6.5,[0,1,2,3,4,5,6,7]],hi:[7.5],hj:[8],hk:[9],ac:[10],8i:[11,[2,3,4,5,6,7,8,9,10]],93:[12],dP:[13],5w:[14,[2,3,4,5,6,7,8,9,10,11,12,13]],94:[15],hl:[16],dQ:[17]},2x:{1r:q(){1O{bF:0,hm:1k,hn:1k,ho:0,"bG-4k":0,hp:0,hq:1k,hr:0}}},2A:q(e,t){t={is:{5Q:!!e.is("3C.ls-bg"),2n:!!e.is(".ls-bg-3R"),hs:!!e.is("3C.ls-2p"),95:!1,96:!1,1Y:!0,bH:t},55:{},22:{},2V:{6s:"dR",oG:t,97:t},46:{8e:0,8f:0},1Q:{dJ:"br",2n:!1},1s:{dO:0,7K:0,70:0,7L:0,92:0,7M:q(e){1O 1z.48(j.70,j.92)},6v:0,71:0,hj:q(e){1O 0===j.71&&e.1t.1S&&("4B"==2s e.1t.2G||-1!==e.1t.2G.1c("7L")&&-1!==e.1t.2G.1c("92")&&-1!==e.1t.2G.1c("7M"))?(j.6v=N.J.1a.1s.7N(e,e.1t.2G,"6v"),j.71=-1!==e.1t.2O&&e.1s.6v+(e.1t.5k+1)*e.1t.1I+e.1t.5k*e.1t.91):N.24&&N.1F.1x("2H","98.oH",e.4P[0].ad+"."+e.4P.1m("2l")+" [ "+e.4P.5m().gp(0,30)+"... ]"),1z.48(j.70,j.71)},hk:q(e){1O 1z.48(j.92,j.71)},ac:q(e){1O 1z.48(j.7M(),j.71)},8i:0,93:0,dP:q(e){1O 1z.48(j.93,j.71)},5w:q(e){1O 1z.48(j.ac(),j.93)},94:0,hl:q(e){1O 1z.48(j.94,j.93,j.7M())},dQ:q(e){1O 1z.48(j.94,j.dP(),j.7M())},bI:!1,bJ:!1},1W:{in:{1S:!0,99:{2m:!1,4Q:!1,Q:{2W:0}},9a:{2m:!1,7O:q(){N.J.1a.in.7O(e)},4u:q(){N.J.1a.in.4u(e)},Q:{3o:"5x",2W:1,27:0,3v:0,3w:0,4A:1,4N:1,5N:0,5O:0,x:0,y:0}},9b:{2m:!1,4Q:!1,Q:{}},9c:{2m:!1,Q:{}},bK:{2m:!1,4Q:!1,Q:{}},72:{2m:!1,Q:{}},9d:{3j:"50% 50% 0",x:0,y:0},bL:{},bM:{},63:{},2G:0,1I:1,2k:"ae"},21:{1S:3f,bN:{6w:{},2M:{},2W:0},af:{2k:"ae",Q:{2W:1,27:0,3v:0,3w:0,4A:1,4N:1,5N:0,5O:0,x:0,y:0}},9e:{6w:{},2M:{},3j:"50% 50% 0",x:0,y:0},1D:"",7H:.ht,2G:"70",1I:1},1J:{1S:!0,99:{2m:!1,4Q:!1,Q:{}},9a:{2m:!1,7O:q(){N.J.1a.1J.7O(e)},4u:q(){N.J.1a.1J.4u(e)},Q:{2W:0,27:0,3v:0,3w:0,4A:1,4N:1,5N:0,5O:0}},9b:{2m:!1,4Q:!1,Q:{}},9c:{2m:!1,Q:{}},bK:{2m:!1,4Q:!1,Q:{}},72:{2m:!1,Q:{}},9d:{x:0,y:0},bL:{},bM:{},63:{},2G:"ag",1I:1,2k:"ae"},2v:{1S:3f,bN:{4Q:!1,6w:{},2W:1},af:{2k:"ae",4Q:!1,6w:{},2M:{},2W:0},9e:{6w:{},2M:{},x:0,y:0},1D:"",2G:"ac",7H:.ht,1I:1},1t:{1S:3f,3N:{2m:!1,4Q:!1,Q:{}},to:{2m:!1,Q:{}},72:{2m:!1,4Q:!1,Q:{}},9d:{3j:"50% 50% 0",x:0,y:0},63:{},2k:"8j",2G:"7M",91:0,1I:1,2O:0,7J:!1},1q:{1S:3f,3N:{2m:!1,4Q:!1,Q:{}},to:{2m:!1,Q:{}},9e:{3j:"50% 50% 0"},dM:!0,5P:"ae",6Z:.5},1j:{1S:3f},2t:{2U:1.2},2a:{1S:!1,bO:"0 0 0 0",48:"-ah ah ah -ah"},1r:{2X:{1T:{},in:{},1J:{},1t:{},1q:{},9f:{},bP:{},bQ:{},bR:{}},J:{bg:3f,in:3f,1J:3f,1t:3f,1q:3f}},1d:{1N:{2m:!1,4Q:!1,Q:{3o:"5x"}}},2u:{2p:6x,54:6x,1t:6x,1q:6x},3y:{hu:{2m:!1,Q:{2W:1,3o:"3m"}},dS:{2m:!1,Q:{x:0,y:0,27:0,3v:0,3w:0,4A:1,4N:1,5N:0,5O:0,2W:1,3o:"3m"}},dT:{2m:!1,Q:{x:0,y:0,27:0,3v:0,3w:0,4A:1,4N:1,5N:0,5O:0,2W:1}}}}};1O{is:t.is,55:t.55,22:t.22,2V:t.2V,46:t.46,1Q:t.1Q,1h:t.1h,1s:t.1s,in:t.1W.in,hv:t.1W.in.99,4M:t.1W.in.99.Q,hw:t.1W.in.9b,8X:t.1W.in.9b.Q,hx:t.1W.in.bK,hy:t.1W.in.bK.Q,ai:t.1W.in.9a,53:t.1W.in.9a.Q,dU:t.1W.in.9c,bS:t.1W.in.9c.Q,dV:t.1W.in.72,hz:t.1W.in.72.Q,a7:t.1W.in.63,a6:t.1W.in.9d,5Z:t.1W.in.bL,aj:t.1W.in.bM,21:t.1W.21,3O:t.1W.21.bN,8Y:t.1W.21.af,oI:t.1W.21.af.Q,8g:t.1W.21.9e,1J:t.1W.1J,dW:t.1W.1J.99,dX:t.1W.1J.99.Q,dY:t.1W.1J.9b,bT:t.1W.1J.9b.Q,ak:t.1W.1J.9a,4r:t.1W.1J.9a.Q,bU:t.1W.1J.9c,8Z:t.1W.1J.9c.Q,bV:t.1W.1J.72,dZ:t.1W.1J.72.Q,7I:t.1W.1J.63,a8:t.1W.1J.9d,al:t.1W.1J.bL,61:t.1W.1J.bM,2v:t.1W.2v,bW:t.1W.2v.bN,3x:t.1W.2v.af,8h:t.1W.2v.9e,1t:t.1W.1t,hA:t.1W.1t.3N,e0:t.1W.1t.3N.Q,bX:t.1W.1t.to,4s:t.1W.1t.to.Q,e1:t.1W.1t.72,hB:t.1W.1t.72.Q,a9:t.1W.1t.63,6t:t.1W.1t.9d,1q:t.1W.1q,e2:t.1W.1q.3N,e3:t.1W.1q.3N.Q,e4:t.1W.1q.to,4t:t.1W.1q.to.Q,4O:t.1W.1q.9e,1j:t.1W.1j,2t:t.1W.2t,2a:t.1W.2a,1r:t.1W.1r,2u:t.1W.2u,1d:t.1W.1d,3y:t.1W.3y}}}},N.19={2O:0,3k:{},2w:{},2q:{},1L:{},1d:q(){if(!2I.3G.8k(P))1O!1;2b(Y e=$.1y("> .ls-2p, > .ls-1M"),t=0,i=N.1i.1M.8W,a=0,s=e.1n;a<s;a++){Y r=X(e[a]),o=r[0].1T,n=X.49(!0,{},N.1i.1M.2A);if(N.19.2O++,r.3H("ls-2p").1X("ls-1M").Q({U:N.K.4a.am,Z:N.K.4a.bY}).2c(N.K.$73),r.G("ls"))2b(Y l=r.G("ls").3I().1D(";"),d=0;d<l.1n;d++){Y u,p,c=l[d].1D(":");c[0]=X.4b(c[0]),c[1]=X.4b(c[1]),""!==c[0]&&(23 0!==i[c[0]]?(u=23 0===i[c[0]][1]?c[0]:i[c[0]][1],p=N.1w.2R.2x(c[1]),-1===u.3I().1c("1I")&&-1===u.3I().1c("4c")&&"bz"!=u||(p/=3z),n[i[c[0]][0]]||(n[i[c[0]][0]]={}),n[i[c[0]][0]][u]=p):n.G[c[0]]=c[1])}if(n.2Q&&!X.4C(n.2Q))2b(Y h in n.2Q)if(r.G("ls-5R-"+h)){Y m,f=r.G("ls-5R-"+h).3I().1D(";"),g={};2b(m in n.2Q[h])g[m.3I()]=m;2b(Y v=0;v<f.1n;v++){Y y,b=f[v].1D(":");b[0]=X.4b(b[0]),""!==b[0]&&(y=N.1w.2R.2x(X.4b(b[1])),-1===b[0].1c("1I")&&-1===b[0].1c("4c")||(y/=3z),g[b[0]]?n.2Q[h][g[b[0]]]=y:n.2Q[h][b[0]]=y)}}3t 2e n.2Q[h];r.3P("a.ls-4K").1n&&(n.G.$4K=r.3P("a.ls-4K").3k().Q({7P:5}).1m("G-ls-1M-4K",t+1).2c(N.K.$64),N.1a.1p.e5(n.G.$4K)),n.G.$2n=r.3P(\'[G-ls*="a5"]\').3k(),n.G.$2n.1n&&(3f!==n.G.$2n.1m("G-ls").1D("a5")[1].1D(";")[0].3Y(/(e6|1S|on|1)/i)?(n.G.$2n.1X("ls-bg-3R").Q({U:"2r",Z:"2r"}).3P("3R, 6y, 3S").Q({U:"1k%",Z:"1k%"}),n.G.$2n.9g(X(\'<1A 2l="ls-bg-3R-6X"></1A>\'))):n.G.$2n=!1);2b(Y S,w=r.1y("an"),v=0,x=w.1n;v<x;v++)N.1a.1p.hC(X(w[v]));r.1y("> .ls-bg").1n&&(n.G.$2f=r.1y("> .ls-bg").3k()),n.G.2j||(r.1y("> .ls-tn").1n?S=r.1y("> .ls-tn").3k():r.1y("> .ls-bg").1n&&(S=r.1y("> .ls-bg").3k()),S?(n.G.2j=N.1w.bZ(S),n.G.e7=N.1w.hD(S)):n.G.2j=N.o.8R+N.o.4q+"/oJ.c0"),(n.G.7E||n.G.7F)&&"6U"==2s c1&&(2e n.G.7E,2e n.G.7F,N.24&&N.1F.1x("2H","3A.hE",t+1)),"4v"===o.51&&(n.G.51="4v"),n.G.3a||(n.G.3a=""===r[0].1T.3a?"4Z":r[0].1T.3a),N.19[++t]={},N.19[t].G=X.49(!0,{},N.1i.1M.2A.G,n.G),N.19[t].1j=n.1j,N.19[t].2t=n.2t,N.19[t].1r=n.1r,N.19[t].1E=t,N.19[t].$1a=X(),N.19[t].2Q=n.2Q,N.K.4R.56(n.G.2j),N.1a.1d(r,t)}N.24&&N.1F.9h("3A.1T")},1p:{hF:q(){Y e=N.19;e.2w.1E=e.2q.1E,e.2q.1E=e.1L.1E,e.1L.1E=N.1o.2J.ao(N.1o.2o),e.1p.e8(),N.K.1p.6z()},hG:q(e){Y t=N.19;t.1L.1E=e,t.1p.e8()},e8:q(){Y e=N.19;e.2w=-1!==e.2w.1E?X.49(!0,{},e[e.2w.1E]):{},e.2q=-1!==e.2q.1E?X.49(!0,{},e[e.2q.1E]):{},e.1L=-1!==e.1L.1E?X.49(!0,{},e[e.1L.1E]):{}},4i:q(){Y e,t=N.19;t.3k.1E="2M"===N.o.4i?N.o.4i:1z.48(N.1w.2R.2x(N.o.4i,!0),1),N.o.88&&2<N.19.2O?N.o.9Z=!1:N.o.88=!1,t.3k.1E="2M"==t.3k.1E?1z.3J(1z.2M()*N.19.2O+1):t.3k.1E,!2I.6A.7Q||(e=N.19.4j(2I.6A.7Q,!0))&&(N.19.3k.1E=e),t.3k.1E=t.3k.1E<1||t.3k.1E>N.19.2O?1:t.3k.1E,N.o.88&&"2M"!=N.o.4i&&(t.3k.1E=N.o.4i),t[t.3k.1E]&&t[t.3k.1E].G&&(t.3k.G=X.49(!0,{},t[t.3k.1E].G)),N.o.5j&&N.1o.1p.hH(),N.24&&N.1F.2A.4i&&(t.3k.1E=N.1F.2A.4i)}},2J:{4j:q(e){1O e&&N.19[e]&&N.19[e].G&&N.19[e].G.4j?N.19[e].G.4j:3f}},4j:q(e,t){2b(Y i=!1,a=1;a<N.19.2O+1;a++)if(N.19[a].G.4j==e.8l(1)){if(i=a,t)1O i;N.1o.65(i,!0,!0)}if(!i&&t)1O!1},1M:[]},N.1a={$5y:X(),66:q(e,t){1O-1!=e.1c("%")?2N(e)*t:2N(e)},1d:q(e,t){if(!2I.3G.8k(P))1O!1;2b(Y i,a=e.1y(\'.ls-bg, .ls-l, .ls-2p, *[2l^="ls-s"]\'),s=0,r=a.1n;s<r;s++){Y o=X(a[s]),n=o[0],l=o.3P();if(o.G("6B",t),-1!=o.1m("2l").1c("ls-s")){Y d=o.1m("2l").1D("ls-s")[1].1D(" ")[0];o.3H("ls-s"+d).1X("ls-2p")}3t if(o.41("ls-l"))o.3H("ls-l").1X("ls-2p");3t if(!o.is(".ls-bg, .ls-2p")){o.5S();oK}o.is("a")&&1===l.1n&&((n=(o=o.3P().3k())[0]).oL("G-ls",n.hI.ap("G-ls")),n.hI.oM("G-ls"),o.74().3H("ls-2p"),o.1X("ls-2p")),o.G(N.1i.1d.1P,3Z N.1i.2p.2A(o,t)),-1!==o.1m("2l").1c("ls-e9-")&&j.1p.hJ(o),o.74().is("a")?(i=o.74(),j.1p.e5(i)):i=o,N.19[t].$1a=N.19[t].$1a.1x(i)}},1p:{hC:q(e){Y t=e.1y("c2").aq().1m("67").1D(" ")[0]||"G:57/c0;hK,oN==",i=e.1y("3C"),a=i.1n?i:X("<3C>").1m("1K",t),s=a[0],r=(e.1m("ls-G")||a.1m("ls-G"),e.1m("1T")||!1),i=s.ea||s.1K,o=i.1D(".").hL(),t=(i.1c("oO"),a.1m("G-1K")?"G-":""),s="";e.41("ls-bg")?s="ls-bg":e.41("ls-tn")?s="ls-tn":(e.41("ls-l")||e.41("ls-2p"))&&(s="ls-2p");2b(Y n,l,d,u=e.1y("c2"),p=0;p<u.1n&&(n=u[p],l=(n=X(n)).1m("67"),d=n.1m("8m"),l.1D(" ")[0].1D(".").hL()!=o);p++);a.5T("U Z 8m 1K 67 G-1K G-67 c3"),a.1X(s).1m(t+"1K",i).1m(t+"67",l).1m("8m",d),r&&a.1m("1T",r),a.hM(e),e.5S()},e5:q(e){Y i=e.1m("5n"),t=e.1m("58"),a="";if(t&&-1!==t.1c("ls-1Z")){2C(i){18"hN":a="ar to c4 2h";1l;18"hO":a="ar to c4 1V";1l;18"eb":a="ar to 68 2h of 68 K";1l;18"":18"ec":a="ar to 68 1V of 68 K";1l;4S:a="ar to a oP 6A on 68 c4"}N.1a.1p.ed(e,a),e.on("59."+B,q(e){e.3D();Y t,e=2I.3G.oQ-N.1e.4d;if(i)2C(i){18"hN":t=0;1l;18"hO":t=N.1e.c5-N.1e.4d;1l;18"eb":t=N.K.4l;1l;18"":18"ec":t=N.K.4l+N.K.Z;1l;4S:t=X(i).1r(":4v").aq().1n?X(i).1r(":4v").aq().76().2h:N.K.4l+N.K.Z}t+=N.o.a2,t=1z.bO(t,e),t=1z.48(0,t),H.3b.to("5m, 3G",1,{c6:t,2k:H.oR.9i})})}if(-1!==N.1i.1d.5i.1c(i.3I())||i.3Y(/^\\#[0-9]/)){Y s=X.4b(i.3I().1D("#")[1]),r=1f(s);2C(s){18"dk":a="2D 2y 1b 22 on 2q 1M";1l;18"dl":a="4m 2y 1b 22 on 2q 1M";1l;18"2w":a="8n to 68 hP 1M";1l;18"1L":a="8n to 68 1L 1M";1l;18"2T":a="2T 1o";1l;18"1R":a="1R 1o";1l;18"6p":a="6p 1M";1l;18"3h":a="3h 1M";1l;18"3h-6p":18"dm":a="3h, oS 6p 1M";1l;4S:"4B"==2s r&&r==r&&(a="8n to 1M "+r)}N.1a.1p.ed(e,a),e.on("59."+B,q(e){if(e.3D(),-1!==["2w","1L","2T","1R"].1c(s))N.2i[s]("oT");3t if("4B"==2s r&&r==r)N.1o.65(r,!0,!0);3t if(!N.K.26.9j)2C(s){18"6p":N.2z.8O("6p");1l;18"3h":N.2z.8O("3h");1l;18"3h-6p":18"dm":N.2z.8O("3h",!0);1l;18"dk":N.1b.1w.ee();1l;18"dl":N.1b.1w.ef();1l;18"3p":18"gq":N.1b.3p.eg()}})}},ed:q(e,t){e.1m("77-78")||e.1m("77-78",t)},hJ:q(e){2b(Y t=e.1m("2l").1D(" "),i=1,a=0;a<t.1n;a++)-1!=t[a].1c("ls-e9-")&&(i=1f(t[a].1D("ls-e9-")[1]));e.G(N.1i.1d.1P).2V.hQ=i,e.Q({3u:"oU"}).on("59."+B,q(e){e.3D(),$.4z(X(j).G(N.1i.1d.1P).2V.hQ)})},2Y:q(e,t,i){t.is.5Q||t.is.2n?(t.22.$9k=e.2E(".ls-bg-5z"),t.22.$c7=e.2E(".ls-bg-eh")):(t.22.$1N=e.2E(".ls-in-1J"),t.22.$1N.G(N.1i.1d.1P,{}),t.2V.ei=t.22.$1N.G(N.1i.1d.1P),t.22.$9l=e.2E(".ls-2a"),t.22.$9l.G(N.1i.1d.1P,{}),t.2V.oV=t.22.$9l.G(N.1i.1d.1P),t.22.$7R=e.2E(".ls-1t"),t.22.$7R.G(N.1i.1d.1P,{}),t.2V.oW=t.22.$7R.G(N.1i.1d.1P)),t.1j.1S&&(t.22.$7S=e.2E(".ls-1j"),t.22.$7S.G(N.1i.1d.1P,{1j:{}}),t.2V.hR=t.22.$7S.G(N.1i.1d.1P),N.J.1a.1j.hS(t.22.$7S,t.2V.hR.1j,t,i)),t.1q.1S&&!N.19[i].G.5Y&&N.J.1a.1q.1p(e,t),N.4T.as?t.22.$7T=e.2E(".ls-z"):t.22.$7T=t.1j.1S?t.22.$7S:t.22.$9k?t.22.$c7:t.22.$1N,t.22.$7T.1m("G-1M-1E",i)},c8:q(e,t){N.1a.1p.1T(e),N.1a.1p.2x(e,t),N.1a.1p.4e(e,"3T"),e.G("c9",!0)},1T:q(e){Y i,t,a,s,r,o,n,l,d,u,p=e[0],c=e.G(N.1i.1d.1P),h=p.1T,m=N.1a,f=0,g=0,v=!1,y=p.oX(),b=""!==h.79?m.66(h.79,N.K.4a.9m):2N(e.Q("4D-1U")),S=""!==h.7a?m.66(h.7a,N.K.4a.9m):2N(e.Q("4D-42")),w=""!==h.7b?m.66(h.7b,N.K.4a.9n):2N(e.Q("4D-2h")),x=""!==h.7c?m.66(h.7c,N.K.4a.9n):2N(e.Q("4D-1V")),T=""!==h.4n?m.66(h.4n,N.K.4a.9m):2N(e.Q("7d-1U")),C=""!==h.69?m.66(h.69,N.K.4a.9n):2N(e.Q("7d-2h"));p.1T.7d="0",r=""!==h.7e?2N(h.7e):2N(e.Q("7f-1U-U")),n=""!==h.7g?2N(h.7g):2N(e.Q("7f-42-U")),o=""!==h.7h?2N(h.7h):2N(e.Q("7f-2h-U")),l=""!==h.7i?2N(h.7i):2N(e.Q("7f-1V-U")),1!==N.1b.2x.$6C.1r(e).1n&&!e.3P("3S").1n||(u=(d=e.3P()).1m("U")?d.1m("U"):d.U(),k=d.1m("Z")?d.1m("Z"):d.Z(),5o===1f(u)&&ca===1f(k)&&(u=oY,k=oZ),""!==p.1T.U&&"2r"!==p.1T.U||e.Q("U",u),""!==p.1T.Z&&"2r"!==p.1T.Z||e.Q("Z",k),"1k%"===h.U&&"1k%"===h.Z&&(h.1U="50%",h.2h="50%",c.1Q.6a=!0),v=u/k,d.Q({U:"1k%",Z:"1k%"}));Y k=c.6z;e.is("3C")&&(I=(a=e.G("hT"))/(s=e.G("hU")),(!h.U&&!h.Z||"2r"===h.U&&"2r"===h.Z)&&k&&(k.U&&k.Z?(i=-1===k.U.1c("%")?1f(k.U):(f=1f(k.U),m.66(k.U,N.K.4a.9m)),t=-1===k.Z.1c("%")?1f(k.Z):(g=1f(k.Z),m.66(k.Z,N.K.4a.9n))):k.4E&&(e[0].1T.U=k.4E+"px",i=k.4E,t=e.Z()))),d=y.U||y.42-y.1U,y=y.Z||y.1V-y.2h,i||(i=h.U,-1!==h.U.1c("%")&&(f=1f(h.U)),i=(i=""!==i&&"2r"!==i?m.66(i,N.K.4a.9m):d-b-S-r-n)||"2r"),t||(t=h.Z,-1!==h.Z.1c("%")&&(g=1f(h.Z)),t=(t=""!==t&&"2r"!==t?m.66(t,N.K.4a.9n):y-w-x-o-l)||"2r"),y=v||i/t,!e.is("3C")||h.U||h.Z||k&&(!k||k.U||k.Z)||a===i&&s===t||(a!==i?t=(i=5<a?a:i)/(y=5<a?I:y):s!==t&&(i=(t=5<s?s:t)*(y=5<s?I:y))),2N(e.Q("2W")),v=r+b+i+S+n,k=o+w+t+x+l,a=""!==h.2a&&h.2a,h.2a="",s=h.p0||h.1r;Y I=q(e){Y t=e;1O e&&-1!==e.1c("px ")&&(e=e.2Z("px","").1D(" "),t=1z.5A(1f(e[0])/i*1k)+"%"),t};c.3c={2a:a,63:!1,1U:h.1U||"0",2h:h.2h||"0",U:1z.7j(i),Z:1z.7j(t),9o:f,9p:g,5a:v,5b:k,p1:h.U,p2:h.Z,1H:y,79:b,7b:w,7a:S,7c:x,4n:T,69:C,7e:r,7h:o,7g:n,7i:l,3Q:I(e.Q("p3"))+" "+I(e.Q("p4"))+" "+I(e.Q("p5"))+" "+I(e.Q("p6")),6D:2N(e.Q("p7-p8")),cb:e.Q("hV-Z"),cc:e.Q("p9-pa"),47:e.Q("47"),7P:1f(e.Q("z-1E"))||"2r",1r:s,3a:e.Q("2f-47"),pb:e.1m("G-ls")||"",ej:e.1m("1T")||""},h.7P="2r",c.1Y={1U:h.1U||"0",2h:h.2h||"0",U:i,Z:t}},2x:q(e,t,i){t=t||e.G("6B");Y a=e.G(N.1i.1d.1P);e.G("ls");if(a.is.96=!e.is("3C")&&!a.is.95,(a.4P=e).G("ls"))2b(Y s=N.1i.2p.8W,r=e.G("ls").1D(";"),o=e.G("ls").3I().1D(";"),n=0;n<o.1n;n++)if(X.4b(o[n])){Y l=o[n].1c(":"),d=[o[n].8l(0,l),o[n].8l(l+1)],u=3f,p=3f,c=3f,h=3f,m=3f;if(""!==(u=X.4b(d[0])))if(23 0!==s[u=u.2Z("1D","54")]){if(p=s[u][0],m="6X"===u?X.4b(r[n].8l(l+1)):N.1w.2R.2x(X.4b(d[1])),d[1]&&-1!==d[1].1c("2M")&&(u.3Y(/(54)/)||(m=N.1w.2R.ek(m,p)),a.55.9q||(a.55.9q=!0)),"4B"==2s m&&p.3Y(/(1I|hW|hX|4c)/i)&&(m/=3z),u.3Y(/(hY)(.+)/))2C(m){18!0:m=0;1l;18!1:m=1}23 0!==(h=s[u][1])?""!==m?"5J"==2s m?u.3Y(/(54)/)?h.3Y(/(pc)/i)?a[h][p]=m:a[h].6w[p]=m:(c=N.1w.2R.2x(X.4b(m[0])),N.24&&N.1F.1x("2H","8o.pd",[u,m,c]),"4B"==2s c&&p.3Y(/(1I|hW|hX|4c)/i)&&(c/=3z),a[h][p]=c):u.3Y(/(54)/)&&-1!==m.dg().1c("2M")?a[h].2M[p]=m:a[h][p]=m:N.24&&N.1F.1x("2H","8o.pe",u):a[p][u]=m}3t"2a"===u?(a.3c.2a=d[1],a.3c.63=!0):N.24&&N.1F.1x("2H","8o.pf",u)}if(N.4T.hZ&&(a.in.1S=!0,a.21.1S=!1,a.2v.1S=!1,a.21.1C=3f,a.2v.1C=3f),a.in.1S&&(a.ai.2k=a.dU.2k=a.dV.2k=N.1w.2R.4U(a.in.2k)),23 0!==a.5Z.3Q&&(a.aj.3Q=a.3c.3Q),23 0!==a.61.3Q&&(a.al.3Q=a.3c.3Q),a.8X.3a&&(a.bS.3a=a.3c.3a),a.8Z.3a&&(a.bT.3a=a.3c.3a),a.8X.47&&(a.bS.47=a.3c.47),a.8Z.47&&(a.bT.47=a.3c.47),23 0!==a.5Z.U&&(a.aj.U=a.3c.U),23 0!==a.61.U&&(a.al.U=a.3c.U),23 0!==a.5Z.Z&&(a.aj.Z=a.3c.Z),23 0!==a.61.Z&&(a.al.Z=a.3c.Z),23 0!==a.1J.bE&&0!==a.1J.bE&&(a.1J.2G="70 + "+a.1J.bE),-1!==a.1J.2G.1c("ag")&&"ag"!==a.1J.2G&&(a.1J.2G="ag"),a.1J.1S&&(a.ak.2k=a.bU.2k=a.bV.2k=N.1w.2R.4U(a.1J.2k)),X.5U(a.1t.2O)&&(0<a.1t.2O||-1===a.1t.2O)&&!1!==a.1t.1S?(a.1t.1S=!0,a.bX.2k=a.e1.2k=N.1w.2R.4U(a.1t.2k),-1!==a.1t.2O?a.1t.7J?a.1t.5k=2*a.1t.2O-1:a.1t.5k=a.1t.2O-1:a.1t.5k=-1):a.1t.1S=!1,(!X.4C(a.4t)||a.4O.x||a.4O.y||a.4O.3Q||a.4O.1r)&&!1!==a.1q.1S?(a.1q.1S=!0,a.1q.6u||(a.1q.6u=a.1q.5P),a.1q.5P=N.1w.2R.4U(a.1q.5P),a.1q.6u=N.1w.2R.4U(a.1q.6u,!0),a.1q.aa||(a.1q.aa=a.1q.6Z),H.3b.1p(e[0],{2m:!1,Q:{2u:a.4O.2u}})):a.1q.1S=!1,a.1j.62&&X.5U(a.1j.62)&&0!==a.1j.62&&!1!==a.1j.1S?a.1j.1S=!0:a.1j.1S=!1,a.is.5Q){Y f={2U:1,27:0};if(N.19[t].2t.6r&&(a.2t=N.19[t].2t),a.2t.6r){2C(a.2t.3N={},a.2t.to={},a.2t.6r){18"1J":a.2t.3N.2U=a.2t.2U||1,a.2t.3N.27=a.2t.27||0,a.2t.to=f;1l;18"in":a.2t.3N=f,a.2t.to.2U=a.2t.2U||1,a.2t.to.27=a.2t.27||0}2e a.2t.2U,2e a.2t.27}3t a.2t.3N=f,a.2t.to=f;X.4C(N.19[t].1r)||(N.19[t].1r.3N&&(a.1r.2X.bQ=N.J.1a.4V.2R(N.19[t].1r.3N)),N.19[t].1r.to&&(a.1r.2X.bR=N.J.1a.4V.2R(N.19[t].1r.to)))}if(a.21.1C&&-1===N.1i.2p.dN.1c(a.21.1C)&&(N.24&&N.1F.1x("2H","8o.pg",[e[0].ad,a.21.1C]),2e a.21.1C,2e a.21.ns,a.21.1S=!1),a.2v.1C&&-1===N.1i.2p.dN.1c(a.2v.1C)&&(N.24&&N.1F.1x("2H","8o.ph",[e[0].ad,a.2v.1C]),2e a.2v.1C,2e a.2v.ns,a.2v.1S=!1),a.21.1C||a.2v.1C){Y g=0;if(a.is.96?(a.21.1C&&(a.21.1S=!0,a.8Y.2k=N.1w.2R.4U(a.8Y.2k),a.21.1D=a.21.1C.1D("4F")[0],e.3P().1n&&N.24&&(g=1)),a.2v.1C&&(a.2v.1S=!0,a.3x.2k=N.1w.2R.4U(a.3x.2k)),a.2v.1S&&a.2v.1C.1D("4F")[0]!==a.21.1D&&(a.21.1D+=", "+a.2v.1C.1D("4F")[0],e.3P().1n&&N.24&&(g=1)),-1!==a.21.1D.1c("pi")&&-1===a.21.1D.1c("el")&&(a.21.1D+=", el"),-1!==a.21.1D.1c("el")&&-1===a.21.1D.1c("i0")&&(a.21.1D+=", i0")):(2e a.21.1C,2e a.2v.1C,2e a.21.ns,2e a.2v.ns,N.24&&(g=2)),N.24&&0!==g&&t&&!i)2C(g){18 1:N.1F.1x("2H","8o.pj",[e.cd("i1"),t]);1l;18 2:N.1F.1x("2H","8o.pk",[t,e.cd("i1")])}}(a.3c.2a||a.a7.2a||a.7I.2a||a.a9.2a)&&(a.2a.1S=!0),a.in.1S&&a.53.2U&&(2e a.53.4A,2e a.53.4N),a.1J.1S&&a.4r.2U&&(2e a.4r.4A,2e a.4r.4N),a.5Z.1r&&(a.1r.2X.in=N.J.1a.4V.2R(a.5Z.1r)),a.1r.2X.1T=N.J.1a.4V.2R(a.3c.1r),a.61.1r&&(a.1r.2X.1J=N.J.1a.4V.2R(a.61.1r)),a.6t.1r&&(a.1r.2X.1t=N.J.1a.4V.2R(a.6t.1r)),a.4O.1r&&(a.1r.2X.1q=N.J.1a.4V.2R(a.4O.1r)),a.in.1S||(a.in.1I=0),a.21.1S||(a.21.1I=0),a.1t.1S||(a.1t.1I=0),a.2v.1S||(a.2v.1I=0),a.1J.1S||(a.1J.1I=0),e.1m("G-ls-em",t),23 0!==a.2V.3q&&"3m"!==a.2V.3q?(0!==(g=1f(a.2V.3q))&&"pl"!==a.2V.3q?(e.1m("G-ls-i2",g),a.2V.97=g):a.2V.97=0,a.is.3q=!0,e.1m("G-ls-3q","1")):e.1m("G-ls-i2",t),a.is.95&&e.3P("3R, 6y").1n&&N.1b.4G.i3(e.3P("3R, 6y").eq(0)),a.is.2n&&a.46.6X&&e.1y(".ls-bg-3R-6X").Q({i4:"6b("+a.46.6X+")"}),a.46.8e&&(a.46.8e=2N(a.46.8e)),a.46.8f&&(a.46.8f=2N(a.46.8f))},4e:q(e,t){e.5T("G-ls-at-in G-ls-2y G-ls-at-1J G-ls-3T"),e.1m("G-ls-"+t,"")}},2J:q(e){Y t,i,a,s,r,o=j.$5y;1O e&&(t="in",a=i="",s=\':3U(".ls-bg")\',r=\':3U(".ls-bg-3R")\',-1==(e=e.3I()).1c("ce")&&-1==e.1c("a5")||(r="",e=e.2Z("ce","").2Z("a5","")),-1!=e.1c("3R")&&(a+=", > 3R",e=e.2Z("3R","")),-1!=e.1c("6y")&&(a+=", > 6y",e=e.2Z("6y","")),-1!=e.1c("4G")&&(a+=", > 3R, > 6y",e=e.2Z("4G","")),-1!=e.1c("3g")&&(a+=\', > 3S[1K*="3g-cf.5p"], > 3S[1K*="3g.5p"], > 3S[1K*="cg.be"], > 3S[G-1K*="3g-cf.5p"], > 3S[G-1K*="3g.5p"], > 3S[G-1K*="cg.be"]\',e=e.2Z("3g","")),-1!=e.1c("3e")&&(a+=\', > 3S[1K*="2K.3e"], > 3S[G-1K*="2K.3e"]\',e=e.2Z("3e","")),","==a.i5(0)&&(a=a.8l(2,a.1n)),-1!=e.1c("1J")&&(t="1J"),-1==e.1c("3C")&&-1==e.1c("57")||(i="3C"),-1==e.1c("bg")&&-1==e.1c("2f")&&-1==e.1c("ch")||(s=""),o=-1!=e.1c("2q")?o.1r(i+"[G-ls-1M"+t+\'="\'+N.19.2q.1E+\'"]\'+s+r):-1!=e.1c("1L")?o.1r(i+"[G-ls-1M"+t+\'="\'+N.19.1L.1E+\'"]\'+s+r):o.1r(i+s+r),-1!=e.1c("au")&&(o=o.1r(".ls-bg, .ls-bg-3R, :3T"),e=e.2Z("au","")),-1!=e.1c("2y")&&(o=o.1r(":4v:3U(.ls-bg, .ls-bg-3R)"),e=e.2Z("2y","")),-1!=e.1c("8p")&&(o=o.1r(\':3U([G-ls-3q="1"])\'),e=e.2Z("8p","")),-1!=e.1c("3q")&&(o=o.1r(\'[G-ls-3q="1"]\'),e=e.2Z("3q","")),-1!=e.1c("ch")&&(o=o.1r(".ls-bg"),e=e.2Z("ch","")),""!==a&&(o=o.1y(a))),o},9q:{G:q(e,t,i){Y a,s,r;2C(e i6 av||(e=X(e)),i&&e.1m("G-ls",i).G("ls",i),a=(s=e.G(N.1i.1d.1P)).is.bH,r=s.3c,t){4S:18"J":s.2V.7k=!1,N.1a.1p.2x(e,a,!0);1l;18"5y":e.G(N.1i.1d.1P,3Z N.1i.2p.2A(e,a)),(s=e.G(N.1i.1d.1P)).3c=r,N.1a.1p.2x(e,a,!0),N.1a.1p.2Y(e,s,a)}}},5z:q(u,e){Y t,p;N.19[u].9r||"i7"===N.19[u].9r||(N.19[u].9r="i7",t=e?25:0,e=N.19[u].$1a,p=e.1n,e.2P(q(l,d){N.2B["1M-"+u+"-2p-"+l]=5q(q(){2e N.2B["1M-"+u+"-2p-"+l];Y e=X(d),t=e,i="",a=!1,s="";e.41("ls-3K-6E")&&(s+=" ls-3K-on-6E"),e.41("ls-3K-6F")&&(s+=" ls-3K-on-6F"),e.41("ls-3K-ci")&&(s+=" ls-3K-on-ci"),e.3H("ls-3K-6E ls-3K-6F ls-3K-ci"),t.is("a")&&1===t.3P().1n&&(a=!0,e=t.1y(".ls-2p"));Y r,o=e.G(N.1i.1d.1P);if(!o)1O!0;n=N.K.$64,o.is.2n?n=N.K.$i8:o.is.5Q&&(n=N.K.$cj),e.G("c9")||N.1a.1p.c8(e,u),o.21.1D&&(r=3Z H.pm(e[0],{1D:o.21.1D}),o.21.1C&&(o.21.ns=r[o.21.1C.1D("4F")[0]]),o.2v.1C&&(o.2v.ns=r[o.2v.1C.1D("4F")[0]])),i=o.is.5Q||o.is.2n?\'<1A 2l="ls-1N ls-bg-eh"><1A 2l="ls-1N ls-bg-5z"></1A></1A>\':(o.2a.1S&&(i=\'<1A 2l="ls-1N ls-2a"></1A>\'),o.1t.1S&&(i=\'<1A 2l="ls-1N ls-1t">\'+i+"</1A>"),\'<1A 2l="ls-1N ls-in-1J">\'+i+"</1A>"),o.1j.1S&&(i=\'<1A 2l="ls-1N ls-1j">\'+i+"</1A>"),N.4T.as&&(i=\'<1A 2l="ls-1N ls-z">\'+i+"</1A>"),""!==i?e.2c(n).5z(i):e.2c(n),!0===a&&t.1X("ls-2p-4K").2c(e.74());Y n={},a=e.Q("en-eo-ep");a&&"4Y"!==a&&(n["en-eo-ep"]=a,e.Q("en-eo-ep","4Y")),o.3c.er=1;a=1f(o.3c.7P);o.is.2n||o.is.5Q?n={7P:o.3c.er}:(a=a||l+pn,n.7P=a,o.3c.er=a),o.46.hg&&(n.po="3m"),N.4T.as&&(n.3E="i9("+pp*a+"px )"),N.1a.1p.2Y(e,o,u),o.22.$7T.Q(n).1X(s),o.is.5Q&&o.22.$9k.Q({3a:N.19[u].G.3a}),N.1a.$5y=N.1a.$5y.1x(e),N.19[u].$1a=N.19[u].$1a.3U(t),l===p-1&&($.3P(".ls-1M").eq(u-1).ck(),N.19[u].9r=!0)},t*(l+1))}))}},N.1o={2o:"1L",pq:0,9s:!0,aw:!1,3V:{4Y:[],cl:[]},26:{6c:!0,4f:!1,7l:!1,ax:!1,ay:!1},55:{6G:!1,2T:!1,1R:!1},5r:q(){1O j.26.4f||j.26.7l||j.26.ax},1d:q(){1==N.19.2O&&(N.o.8Q=!1,N.o.dt=!1,N.o.a0=!1,N.o.bu=!1,N.o.5M=-1,N.o.ia=!1,N.o.8U=!0,N.o.4i=1,N.o.6q="cm"),N.o.8Q&&1!=N.19.2O||N.1w.2S(j,{6c:!1,4f:!0}),j.1p.5L(),j.1p.ib()},1p:{5L:q(){N.o.5L=(!0===N.o.5L?N.1i.1d.2A:N.o).5L,!1!==N.o.5L&&$.on("6d."+B,q(){N.K.26.7m||(N.1w.2S(N.1o,{ax:!0}),"dq"!==N.o.5L&&N.J.1a.1s.4m())}).on("5B."+B,q(){Y e=1;N.J.1G&&N.J.1G.1I()>N.J.1a.1s.4w&&(e=N.J.1a.1s.4w/N.J.1G.1I()),N.1w.2S(N.1o,{ax:!1}),X("3G").41("ls-az")||"dq"===N.o.5L||N.o.9Y&&N.1o.5r()||N.J.1a.1s.8q(),N.J.1G&&N.J.1a.1s.26.7U&&N.J.1G.3r()<e&&N.1w.2S(N.J.1a.1s,{7U:!1}),N.1o.2T()})},ib:q(){2b(Y e=0;e<N.19.2O;e++)N.1o.3V.4Y[e]=e+1;N.1o.3V.cl=N.1w.es(X.pr([],N.1o.3V.4Y))},hH:q(){Y e=N.o.88?"cl":"4Y",t=N.1o.3V[e],i=N.1o.3V[e].1n,a=t.1c(N.19.3k.1E);N.1o.3V.9t=[];2b(Y s=a;s<i;s++)N.1o.3V.9t.56(t[s]);2b(Y r=0;r<a;r++)N.1o.3V.9t.56(t[r])},aA:q(e){2C(e){18"2w":N.o.9Z&&(N.1o.2o="2w"),N.1o.65(N.1o.2J.ao("2w"),!0);1l;18"1L":N.1o.2o="1L",N.1o.65(N.1o.2J.ao("1L"),!0)}}},2J:{3V:q(){Y e="4Y";1O N.o.5j?e="9t":N.o.88&&(e="cl"),e},ao:q(e){Y t=N.1o.3V[j.3V()],i=t.1c(N.19.2q.1E);2C(e){18"2w":1O 0===i?t[t.1n-1]:t[i-1];18"1L":1O i===t.1n-1?t[0]:t[i+1];4S:1O t[e]}},et:q(e){1O N.1o.3V[j.3V()].1c(e)}},5M:{1p:q(){0<N.o.5M&&(N.1o.cn=1,N.1o.eu=N.1o.2J.et(N.19.3k.1E))},6e:q(e){if(N.1o.2J.et(e)===N.1o.eu)1O++N.1o.cn===N.o.5M+1}},2T:q(e){!j.5r()&&N.J.1G&&N.J.1a.1s.26.7U&&j.65(N.19.1L.1E)},1R:q(){N.1w.2S(j,{6c:!1,4f:!0})},65:q(e,t,i){if(!2I.3G.8k(P))1O!1;if(N.19.2q.1E===e)1O!1;if(!j.9s&&N.2z.43("ic")){Y a=$.4g("ic",N.2z.4p());if(!1===a)1O;X.5U(a)&&(e=1f(a))}e>N.19.2O||e<1?N.24&&(N.1F.1x("9u","1o"),N.1F.1x("2H","1o.ps",[e,N.19.2O]),N.1F.9h()):N.K.8r()||N.1o.26.7l&&!t?!N.K.26.aB&&N.K.26.8s&&N.J.3B&&(N.1o.55.6G=!0,N.J.3B.3r(1),N.J.5c&&N.J.5c.3r(1)):(N.1w.2S(N.J.1a.1s,{7U:!1}),N.1o.55.6G=!1,N.24&&N.1F.1x("9u","1o"),t?("2w"===N.2i.2o&&N.o.9Z&&(N.1o.2o="2w"),N.24&&(N.1F.1x("5C","1o.pt",!1),N.o.9Z&&N.1F.1x("5C","1o.pu",N.1o.2o))):N.2i.2o=N.1o.2o,N.J.28.3h(),N.1u.1b.ev(),N.19.1p.hG(e),N.24&&(N.1F.1x("5C","1o.6G",[N.19.2q.1E,N.19.1L.1E,N.1o.2o,N.2i.2o]),N.1F.9h()),N.1w.2S(j,{7l:!1}),N.1w.2S(N.K,{9j:!0}),N.6f.ew(N.19.1L.1E,q(){N.J.2T()}))},pv:q(){N.2i.1R(),X.2P(N.2B,q(e,t){7V(N.2B[e])}),N.J.28.1R(),N.J.1G.1R(),N.1w.2S(N.J.1a.1s,{aC:!0,6c:!1}),$.1y("*").1R(!0,!1).pw()},ie:q(){$.1y("*").1R(),N.2i.6G(N.19.2q.1E,N.1o.2o)}},N.1b={2x:{$6C:X(),9v:0,co:0,8t:!1},1d:q(){N.1w.2S(N.K,{ex:!1,ey:!1}),N.1b.2x.cp=!0,N.1b.3g.1d(),N.1b.3e.1d(),N.1b.4G.1d()},2J:q(e){Y t,i=N.1b.2x.$6C;1O e&&(-1!==(e=e.3I()).1c("aD")&&(i=i.3U(".ls-bg-3R")),-1!==e.1c("2y")&&(i=i.1r("[G-ls-2y], [G-ls-at-in]")),-1!==e.1c("8p")&&(i=i.3U("[G-ls-3q]")),t=i.1y("3R, 6y, 3S"),-1!==e.1c("ez")?t=t.1r("[G-ls-3U-5d]"):-1!==e.1c("5d")&&(t=t.1r("[G-ls-5d]")),-1!==e.1c("py")&&(t=t.1r("[G-ls-9w-to-3p]")),-1!==e.1c("pz")&&(t=t.1r("[G-ls-3l-by-4T]"))),t},1p:{2n:q(e,t){0===e.3P(".ls-6H").1n&&(e=X("<1A>").1X("ls-6H").2c(e),t.1Q.52&&X("<1A>").2c(e).1X("ls-eA").1m({1T:"2f-57: 6b("+t.1Q.52+")"}))},cq:q(e,t){1O t.1Q.52||!1},4e:q(e,t){e.5T("G-ls-5d G-ls-3U-5d"),e.1m("G-ls-"+t,""),N.1b.1w.ig()},cr:q(e,t,i){Y a=X("<1A>").1X("ls-6H").2c(e);!("4L"in i.1Q)&&N.o.dx||i.1Q.4L?e.1X("ls-4L"):X("<1A>").2c(a).1X("ls-pA"),t.is("3S")&&i.1h.52&&X("<1A>").2c(a).1X("ls-eA").1m({1T:"2f-57: 6b("+i.1h.52+")"}),t.is("3R, 6y")&&i.1h.52&&X("<1A>").2c(a).1X("ls-eA").1m({1T:"2f-57: 6b("+i.1h.52+")"})},2x:q(e,t,i){2C(i.is.95=!0,i.1h.1C){18"3g":i.is.2n?(i.1h.2A=X.49(!0,{1t:1,eB:i.1h.eC,5i:0,4L:0,6Y:!1,ih:1,2j:!1},N.1b[i.1h.1C].1i,i.1h.9x),N.1b.1p.2n(e,i)):(i.1h.2A=X.49(!0,{},N.1b[i.1h.1C].1i,i.1h.9x,{4L:0}),N.1b.1p.cr(e,t,i));1l;18"3e":i.is.2n?(i.1h.2A=X.49(!0,{1t:1,eD:0,eE:0,eF:0,pB:0},N.1b[i.1h.1C].1i,i.1h.9x),N.1b.1p.2n(e,i)):(i.1h.2A=X.49(!0,{},N.1b[i.1h.1C].1i,i.1h.9x,{4L:0}),N.1b.1p.cr(e,t,i));1l;18"4G":t.1m("4L")&&(t.5T("4L"),e.1m("G-ls",e.1m("G-ls")+" 4L: e6;")),i.is.2n&&(t.5T("5i"),t[0].3l=!0,t.1m("1t","")),"5i"in i.1Q&&(i.1Q.5i?(t.1m("5i",""),t.5T("pC")):t.5T("5i")),"3F"in i.1Q&&(i.1Q.3F<0?i.1Q.3F=0:1k<i.1Q.3F&&(i.1Q.3F=1k),t[0].3F=i.1Q.3F/1k),"3l"in i.1Q&&(i.1Q.3l?t[0].3l=!0:t[0].3l=!1),"1t"in i.1Q&&(i.1Q.1t?t.1m("1t",""):t.5T("1t")),i.is.2n?N.1b.1p.2n(e,i):N.1b.1p.cr(e,t,i)}},2j:q(e,t){2C(t){18"5e":e.5D(N.J.1b.1i.5D);1l;18"3K":e.4c(N.J.1b.1i.4c).5V(N.J.1b.1i.5V)}}},5E:{2T:q(e,t,i){Y a;N.2z.43("ii")&&!i.1h.aE&&N.1b.1w.cs(e,i)&&((a=N.2z.4p()).5v.58=e[0],$.4g("ii",a),i.1h.aE=!0)},1R:q(e,t,i){Y a;N.2z.43("ij")&&i.1h.aE&&((a=N.2z.4p()).5v.58=e[0],$.4g("ij",a),i.1h.aE=!1)}},3p:{1p:q(e,t,i){("3g"!==t&&"3e"!==t||N.1b.2x.cp)&&N.1u.1b.ik(),e.1m("G-ls-9w-to-3p",""),i&&e.1m("G-ls-3l-by-4T","")},eg:q(){Y e=$.1y("[G-ls-9w-to-3p]");(N.o.89?e:e.1r("[G-ls-5d], [G-ls-3l-by-4T]")).2P(q(){N.1b.3p.aF(X(j))}),N.1u.1b.ev(),N.1b.2x.8t=!0},aF:q(e){Y t,i=e.2E(".ls-2p").G(N.1i.1d.1P),a=!1;2C(i.1h.1C){18"3g":N.1b.2x.cp&&(a=!0,i.1h.2K.pD());1l;18"3e":N.1b.2x.cp&&(a=!0,t=i.1Q.3F?i.1Q.3F/1k:1,i.1h.2K.8u(t));1l;18"4G":a=!0,e[0].3l=!1}a&&e.5T("G-ls-3l-by-4T G-ls-9w-to-3p")}},1w:{cs:q(e,t){e=e.2E(".ls-2p");1O!!(N.19.2q.1E===1f(e.1m("G-ls-em"))||t.is.2n&&N.19.1L.1E===1f(e.1m("G-ls-em"))||e.1m("G-ls-3q")&&23 0!==e.1m("G-ls-2y"))},ee:q(){Y e;N.1b.2J("aD,2y").2P(q(){if((e=X(j).2E(".ls-2p").G(N.1i.1d.1P)).1h.aE)2C(e.1h.1C){18"3g":e.1h.2K.eG();1l;18"3e":e.1h.2K.2D();1l;18"4G":e.1h.$1b[0].2D()}3t X(j).74().1y(".ls-6H").5f("9y")})},ef:q(){Y e;N.1b.2J("aD,2y,5d").2P(q(){2C((e=X(j).2E(".ls-2p").G(N.1i.1d.1P)).1h.1C){18"3g":e.1h.2K.il();1l;18"3e":e.1h.2K.4m();1l;18"4G":j.4m()}})},eH:q(e){Y a={},e=e.1D("?")[1];1O e&&e.1D("#")[0].2Z(/([^=&]+)=([^&]*)/g,q(e,t,i){a[cu(t)]=X.5U(cu(i))?1f(cu(i)):cu(i)}),a},cv:q(e,t){!t.is.3q&&N.o.8U&&(N.1w.2S(N.1o,{7l:!0}),"2r"==N.o.8U&&N.1b.2x.9v++)},ig:q(){Y e=N.1b.2x.9v,t=N.1b.2J("aD,2y,8p,ez"),i=N.1b.2J("aD,2y,8p,ez").1n;i===e&&0<i&&N.1o.26.7l&&N.o.8U&&!N.2B.aG&&N.1o.26.6c?N.2B.aG=5q(q(){N.1o.26.6c?t.2P(q(){N.1b.1w.aH(X(j),X(j).2E(".ls-2p"),X(j).2E(".ls-2p").G(N.1i.1d.1P))}):N.1o.26.7l=!1},pE):N.2B.aG&&(7V(N.2B.aG),2e N.2B.aG)},eI:q(e){Y t=e.G(N.1i.1d.1P);t.is.95&&(N.1e.6g&&($.41("ls-1e-is-6E")&&t.22.$7T.41("ls-3K-on-6E")||$.41("ls-1e-is-6F")&&t.22.$7T.41("ls-3K-on-6F"))||("4L"in t.1Q||!N.o.dx)&&!t.1Q.4L||e.1y(".ls-6H").5f("9y"))},1R:q(a){a=23 0===a||a;N.1a.2J("2q,1J,3g").2P(q(){Y e=X(j),t=e.2E(".ls-2p"),i=t.G(N.1i.1d.1P);N.1b.3g.1R(t,e,i,a)}),N.1a.2J("2q,1J,3e").2P(q(){Y e=X(j),t=e.2E(".ls-2p"),i=t.G(N.1i.1d.1P);N.1b.3e.1R(t,e,i,a)}),N.1a.2J("2q,1J,4G").2P(q(){Y e=X(j),t=e.2E(".ls-2p"),i=t.G(N.1i.1d.1P);N.1b.4G.1R(t,e,i,a)}),N.1b.2x.9v=0,N.1b.2x.co=0},aH:q(e,t,i){"2r"!=N.o.8U||i.is.2n||(i.is.3q||N.1b.2x.co++,N.1b.2x.co==N.1b.2x.9v&&0!==N.1b.2x.9v&&(N.1w.2S(N.1o,{7l:!1}),N.1o.pF=1,N.1o.2T())),N.1b.1p.4e(e,"3U-5d"),N.1b.5E.1R(e,t,i)},cw:q(e){N.J.1G.6h(3f,e.2E(".ls-in-1J")[0])}},3g:{1i:{4L:0,eJ:1,im:"io",4G:1,pG:1,7W:3,eK:0},1d:q(){Y f=0;j.$9z=N.K.$73.1y(\'3S[1K*="3g-cf.5p"], 3S[1K*="3g.5p"], 3S[1K*="cg.be"], 3S[G-1K*="3g-cf.5p"], 3S[G-1K*="3g.5p"], 3S[G-1K*="cg.be"]\').2P(q(){Y e=X(j).1m({id:"ls-3g-"+ ++f,9w:"ip; 4L; iq-1b; ir; an-in-an; 4H",it:""}),t=e.2E(".ls-2p");t.G("c9")||N.1a.1p.c8(t);Y i,a,s,r,o,n,l,d,u=t.G(N.1i.1d.1P),p=e.1m("1K")||e.1m("G-1K"),c=N.1b.1w.eH(p),h=(p=p.1D("?")[0].1D("//")[1]).1D("/"),m=h[h.1n-1],h=N.1b.1p.cq(t,u);u.1h={1C:"3g",$1b:e,aI:p,eC:m,9x:c},h?(u.1h.52=h,N.1b.1p.2x(t,e,u)):(i=["4S.8V","pH.8V","pI.8V","pJ.8V","gK.8V"],a="7n://3C.3g.5p/pK/"+p.1D("pL/")[1].1D("?")[0]+"/",s=a+N.o.gJ,o=r=0,n=q(){j.U>r&&(r=j.U,s=j.1K),d()},l=q(){d()},d=q(){(o+=1)===i.1n&&(u.1h.52=s,N.1b.1p.2x(t,e,u))},i.pM(q(e){Y t=3Z eL;t.7o("5l",l,!1),t.7o("4o",n,!1),t.1K=a+e}))}),j.$9z.1n&&(N.1b.2x.$6C=N.1b.2x.$6C.1x(j.$9z.2E(".ls-2p")),N.2B.eM=1z.3J(9A.9B()/3z),1g.cx||X("<9C>").1m({1K:"7n://pN.3g.5p/pO",1C:"54/iu"}).2c("aJ"),1g.pP=q(){1g.2L.8v.cy=!0},N.4x.eN=aK(q(){1g.cx&&1===1g.cx.eO||1g.2L.8v.cy||3<1z.3J(9A.9B()/3z)-N.2B.eM?(aL(N.4x.eN),2e N.4x.eN,2e N.2B.eM,N.1b.3g.$9z.2E(".ls-2p").2P(q(){Y e=X(j),t=e.G(N.1i.1d.1P);e.on("9y."+B+" 59."+B,".ls-6H",q(){N.1b.1p.2j(X(j),"3K"),N.1b.1w.cv(e,t),N.1b.1w.cw(e),N.1b.3g.2D(e,t.1h.$1b,t,t.1h.aI)}).on("cz."+B,q(){N.1b.3g.2D(e,t.1h.$1b,t,t.1h.aI),N.1a.1p.4e(e,"2y")}).on("aM."+B,q(){N.1b.3g.1R(e,t.1h.$1b,t,!0),N.1a.1p.4e(e,"3T")}).on("eP."+B,q(){N.1b.3g.9D(e,t.1h.$1b,t,t.1h.aI,!0)})}),N.1w.2S(N.K,{ex:!1})):N.1w.2S(N.K,{ex:!0})},25))},9D:q(t,i,a,s,r){a.1h.aN="iv","5i"in a.1Q&&(a.1h.2A.5i=a.1Q.5i?1:0),"1t"in a.1Q&&(a.1h.2A.1t=a.1Q.1t?1:0),"6Y"in a.1Q&&(a.1h.2A.6Y=a.1Q.6Y?1:0),a.1h.2A.1t?a.1h.2A.eB=a.1h.eC:2e a.1h.2A.eB,0===a.1h.2A.6Y&&(a.1h.2A.ih=1),i.1m("1K","7n://"+s+"?"+av.iw(a.1h.2A)).4o(q(){a.1h.2K=3Z cx.ix(i[0],{5E:{pQ:q(e){a.1h.aN="9E",a.1Q.3F&&a.1h.2K.8u(a.1Q.3F),r&&!a.1h.cA||(N.1b.3g.2D(t,i,a,s),a.1h.cA=!1)},pR:q(e){2C(e.G){18 0:a.1h.2A.1t&&1===a.1h.2A.1t||N.1b.1w.aH(i,t,a);1l;18 1:N.1b.5E.2T(i,t,a),a.1h.eQ=9A.9B();1l;18 2:18-1:a.1h.eR&&0!==a.1h.eS&&1!==a.1h.eS||a.1h.eQ&&(9A.9B(),a.1h.eQ)}1===e.G?N.1b.1p.4e(i,"5d"):N.1b.1p.4e(i,"3U-5d"),N.1b.3g.iy(a,e.G)}}})})},iy:q(e,t){e.1h.eR||(e.1h.eR=t),e.1h.eS=t},2D:q(e,t,i,a,s){23 0!==t.1m("G-ls-3l-by-4T")&&N.1b.3p.aF(t),i.1h.2K?i.1h.2K.eG?(!i.is.2n||"3l"in i.1Q||i.1h.2K.eT(),i.1Q.3l?N.o.89&&N.1b.2x.8t||(i.1h.2K.eT(),"cB"==i.1Q.3l&&N.1b.3p.1p(t,i.1h.1C)):s&&(i.1h.2K.eT(),N.1b.3p.1p(t,i.1h.1C,!0)),N.1b.1w.cs(t,i)?i.1h.2K.eG():N.1b.3g.1R(e,t,i,!0)):i.1h.cA=!0:i.1h.aN?i.1h.cA=!0:j.9D(e,t,i,a)},1R:q(e,t,i,a){i.1h.2K&&(i.1h.2K.il(),a&&i.1h.2K.pS(0),i.is.2n||N.1b.1p.2j(e.1y(".ls-6H"),"5e"),N.1b.5E.1R(t,e,i))}},3e:{1i:{4L:0,pT:0,im:"io",eJ:1},1d:q(){Y d,e,t=j.$9z=N.K.$73.1y(\'3S[1K*="2K.3e"], 3S[G-1K*="2K.3e"]\'),u=N.K.$73.1y(\'.ls-1M:eq(0) 3S[1K*="2K.3e"], .ls-1M:eq(0) 3S[G-1K*="2K.3e"]\').1n;t.1n&&(N.2B.eU=1z.3J(9A.9B()/3z),N.1b.2x.$6C=N.1b.2x.$6C.1x(t.2E(".ls-2p")),d=0,X("<9C>").1m({1K:"7n://2K.3e.5p/2z/2K.js",1C:"54/iu"}).2c("aJ"),N.4x.eV=aK(q(){N.1w.2S(N.K,{ey:!0}),(1g.cC||3<1z.3J(9A.9B()/3z)-N.2B.eU)&&(aL(N.4x.eV),2e N.4x.eV,2e N.2B.eU,e())},25),e=q(){Y l=0;N.1b.3e.$9z.2P(q(){Y t=X(j).1m({id:"ls-3e-"+ ++d,9w:"ip; 4L; iq-1b; ir; an-in-an; 4H",it:""}),i=t.2E(".ls-2p");i.G("c9")||N.1a.1p.c8(i);Y a=i.G(N.1i.1d.1P),e=t.1m("1K")||t.1m("G-1K"),s=N.1b.1w.eH(e),r="7n://3e.5p/2z/pU.pV?6b=eW://3e.5p/"+e.1D("3R/")[1].1D("?")[0],e=e.1D("?")[0].1D("//")[1];N.1b.3e.1i.pW="ls-3e-"+d;Y o=N.1b.1p.cq(i,a);a.1h={1C:"3e",$1b:t,aI:e,9x:s};q n(e){a.1h.52=e,(0===u||0<u&&++l==u)&&(1g.2L.8v.eX=!0),N.1b.1p.2x(i,t,a)}o?n(o):X.pX(r,q(e){n(e.pY)}),i.on("9y."+B+" 59."+B,".ls-6H",q(){N.1b.1p.2j(X(j),"3K"),N.1b.1w.cv(i,a),N.1b.1w.cw(i),N.1b.3e.2D(i,t,a,e)}).on("cz."+B,q(){N.1b.3e.2D(i,t,a,e),N.1a.1p.4e(i,"2y")}).on("aM."+B,q(){N.1b.3e.1R(i,t,a,!0),N.1a.1p.4e(i,"3T")}).on("eP."+B,q(){N.1b.3e.9D(i,t,a,e,!0)})}),N.1w.2S(N.K,{ey:!1})})},9D:q(e,t,i,a,s){i.1h.aN="iv";"5i"in i.1Q&&2e i.1Q.5i,"1t"in i.1Q&&(i.1h.2A.1t=i.1Q.1t?1:0),"6Y"in i.1Q&&(i.1Q.6Y?(i.1h.2A.eD=1,i.1h.2A.eE=1,i.1h.2A.eF=1):(i.1h.2A.eD=0,i.1h.2A.eE=0,i.1h.2A.eF=0),2e i.1h.2A.6Y),"3F"in i.1Q&&(0===i.1Q.3F?(i.1Q.3F=1k,i.1Q.3l=1):(i.1Q.3F<0||1k<i.1Q.3F)&&(i.1Q.3F=1k)),t.1m("1K","7n://"+a+"?"+av.iw(i.1h.2A)),i.1h.2K=3Z cC.ix(t[0]),i.1h.2K.on("2D",q(){N.1b.1p.4e(t,"5d"),N.1b.5E.2T(t,e,i)}),i.1h.2K.on("4m",q(){N.1b.1p.4e(t,"3U-5d")}),i.1h.2K.on("iz",q(){N.1b.1w.aH(t,e,i)}),i.1h.2K.9E().cD(q(){i.1h.aN="9E",i.1Q.3F&&!i.1Q.3l&&X.5U(i.1Q.3F)&&0<=i.1Q.3F&&i.1Q.3F<=1k&&i.1h.2K.8u(i.1Q.3F/1k),s||N.1b.3e.2D(e,t,i,a)})},2D:q(t,i,a,s,e){23 0!==i.1m("G-ls-3l-by-4T")&&N.1b.3p.aF(i),a.1h.2K?(!a.is.2n||"3l"in a.1Q||a.1h.2K.8u(0),a.1Q.3l&&(N.o.89&&N.1b.2x.8t?N.o.89&&N.1b.2x.8t&&(a.1h.2K.8u(a.1Q.3F/1k||1),2e a.1Q.3l):(a.1h.2K.8u(0),"cB"==a.1Q.3l&&N.1b.3p.1p(i,a.1h.1C))),e?(a.1h.2K.8u(0),N.1b.3p.1p(i,a.1h.1C,!0)):a.1h.2K.pZ().cD(q(e){0==e&&"cB"==a.1Q.3l&&N.1b.3p.1p(i,a.1h.1C)}),N.1b.1w.cs(i,a)?a.1h.2K.2D().cD(q(){}).iA(q(e){2C(e.9F){18"q0":1g.3W&&(3W.5l(N.1i.K.8b),3W.5l("cC 3R is q1 q2 eY iB iC iD iE."));1l;18"q3":1g.3W&&(3W.5l(N.1i.K.8b),3W.5l("cC 3R is q4 eY iB iC iD iE."));1l;4S:N.1b.3e.2D(t,i,a,s,!0)}}):N.1b.3e.1R(t,i,a,!0)):j.9D(t,i,a,s)},1R:q(e,t,i,a){i.1h.2K&&(i.1h.2K.4m(),a&&i.1h.2K.q5(0),i.is.2n||N.1b.1p.2j(e.1y(".ls-6H"),"5e"),N.1b.5E.1R(t,e,i))}},4G:{i3:q(t){Y e,i,a,s,r=t.2E(".ls-2p"),o=r.G(N.1i.1d.1P),n=t.1y("c2"),l=N.1b.1p.cq(r,o);o.1h={1C:"4G",$1b:t,52:l||t.1m("52")},t.5T("52"),0<n.1n?n.2P(q(){23 0!==(e=X(j).1m("1C"))&&!1!==e||(i=X(j).1m("1K"),a=i.1D("."),s=a[a.1n-1].3I(),X(j).1m("1C",X(j).74()[0].ad.3I()+"/"+s)),""!==t[0].iF(X(j).1m("1C"))&&(o.1h.aO=!0)}):23 0!==t.1m("1K")&&!1!==t.1m("1K")&&(i=t.1m("1K"),a=i.1D("."),s=a[a.1n-1].3I(),""!==t[0].iF(t[0].ad.3I()+"/"+s)&&(o.1h.aO=!0)),o.1h.aO&&(N.1b.1p.2x(r,t,o),t.on("iz."+B,q(){N.1b.1w.aH(t,r,o)}).on("2D."+B,q(){}).on("5d."+B,q(){N.1b.5E.2T(t,r,o),N.1b.1p.4e(t,"5d")}).on("4m."+B,q(){N.1b.1p.4e(t,"3U-5d")}),r.on("9y."+B+" 59."+B,".ls-6H",q(e){N.1b.1p.2j(X(j),"3K"),N.1b.1w.cv(r,o),N.1b.1w.cw(r),N.1b.4G.2D(r,t,o)}).on("cz."+B,q(){N.1b.4G.2D(r,t,o),N.1a.1p.4e(r,"2y")}).on("aM."+B,q(){N.1b.4G.1R(r,t,o,!0),N.1a.1p.4e(r,"3T")}))},1d:q(){Y e,t=N.K.$73.1y("3R, 6y");N.1b.2x.$6C=N.1b.2x.$6C.1x(t.2E(".ls-2p")),t.1n&&(e=0,t.2P(q(){X(j).2E(".ls-2p").G(N.1i.1d.1P).is.95=!0,X(j).1m("id","ls-4G-"+ ++e).1m("eJ",""),X(j)[0].4m()}))},2D:q(e,t,i){Y a;i.1h.aO&&(23 0!==t.1m("G-ls-3l-by-4T")&&N.1b.3p.aF(t),i.1Q.3l&&(N.o.89&&N.1b.2x.8t?N.o.89&&N.1b.2x.8t&&(t[0].3l=!1):(t[0].3l=!0,"cB"==i.1Q.3l&&N.1b.3p.1p(t,i.1h.1C))),23 0!==(a=t[0].2D())&&a.cD(q(e){}).iA(q(e){t[0].3l=!0,t[0].2D(),t[0].4f&&N.1w.2S(N.1o,{7l:!1}),N.1b.3p.1p(t,i.1h.1C,!0)}))},1R:q(e,t,i,a){i.1h.aO&&(t[0].4m(),a&&(t[0].q6=0),i.is.2n||N.1b.1p.2j(X(j),"5e"),N.1b.5E.1R(t,e,i))}}},N.3i={1d:q(){N.o.3i&&(j.$1v=X("<3C>").1X("ls-q7").2c($).1m("1T",N.o.gM).Q({6I:"3T",3o:"q8"}).on("4o."+B,q(){Y e=N.3i.$1v?6x:0;N.2B.3i=5q(q(){2e N.2B.3i,N.3i.$1v.G("am",N.3i.$1v.U()),N.3i.$1v.G("bY",N.3i.$1v.Z()),"2r"!=N.3i.$1v.Q("1U")&&N.3i.$1v.G("aP",N.3i.$1v[0].1T.1U),"2r"!=N.3i.$1v.Q("42")&&N.3i.$1v.G("aQ",N.3i.$1v[0].1T.42),"2r"!=N.3i.$1v.Q("2h")&&N.3i.$1v.G("aR",N.3i.$1v[0].1T.2h),"2r"!=N.3i.$1v.Q("1V")&&N.3i.$1v.G("aS",N.3i.$1v[0].1T.1V),!1!==N.o.dB&&X("<a>").2c($).1m("5n",N.o.dB).1m("58",N.o.gO).Q({q9:"3m",qa:"3m"}).9g(N.3i.$1v),N.3i.$1v.Q({3o:"3m",6I:"4v"}),N.3i.1B()},e)}).1m("1K",N.o.3i))},1B:q(){j.$1v.Q({U:j.$1v.G("am")*N.1B.1H,Z:j.$1v.G("bY")*N.1B.1H}),j.$1v.5D(5o);Y e="2r",t="2r",i="2r",a="2r",e=j.$1v.G("aP")&&-1!=j.$1v.G("aP").1c("%")?$.U()/1k*2N(j.$1v.G("aP"))-j.$1v.U()/2+1f($.Q("4D-1U")):1f(j.$1v.G("aP"))*N.1B.1H,t=j.$1v.G("aQ")&&-1!=j.$1v.G("aQ").1c("%")?$.U()/1k*2N(j.$1v.G("aQ"))-j.$1v.U()/2+1f($.Q("4D-42")):1f(j.$1v.G("aQ"))*N.1B.1H,i=j.$1v.G("aR")&&-1!=j.$1v.G("aR").1c("%")?$.Z()/1k*2N(j.$1v.G("aR"))-j.$1v.Z()/2+1f($.Q("4D-2h")):1f(j.$1v.G("aR"))*N.1B.1H,a=j.$1v.G("aS")&&-1!=j.$1v.G("aS").1c("%")?$.Z()/1k*2N(j.$1v.G("aS"))-j.$1v.Z()/2+1f($.Q("4D-1V")):1f(j.$1v.G("aS"))*N.1B.1H;j.$1v.Q({1U:e,42:t,2h:i,1V:a})}},N.1u={2i:{1d:q(){N.o.dt&&j.aA.1d(),(N.o.a0||N.o.bu)&&j.1V.1d()},aA:{1d:q(){X(\'<a 2l="ls-1u-1v ls-3n-2w" 77-78="8n to 68 hP 1M" 5n="#" />\').on("59."+B,q(e){e.3D(),$.4z("2w")}).2c($),X(\'<a 2l="ls-1u-1v ls-3n-1L" 77-78="8n to 68 1L 1M" 5n="#" />\').on("59."+B,q(e){e.3D(),$.4z("1L")}).2c($),N.o.gF&&j.9G()},9G:q(){$.1y(".ls-3n-2w, .ls-3n-1L").Q({3o:"3m"}),$.on("6d."+B,q(){N.1u.2i.eZ||$.1y(".ls-3n-2w, .ls-3n-1L").1R(!0,!0).5D(5o)}).on("5B."+B,q(){$.1y(".ls-3n-2w, .ls-3n-1L").1R(!0,!0).5V(5o)})}},1V:{1d:q(){j.1N=X(\'<1A 2l="ls-1u-1v ls-1V-3n-1N" />\').2c($),N.o.bu&&"9H"!=N.o.6q&&j.cE.1d(),N.o.a0?j.iG():"9H"!=N.o.6q&&j.iH(),N.o.bv&&"9H"!=N.o.6q&&j.9G(),"9H"==N.o.6q&&(j.1N.1X("ls-iI-4R"),j.4R.1d())},cE:{1d:q(){Y t=j;X(\'<aT 2l="ls-1V-9I" />\').2c($.1y(".ls-1V-3n-1N"));2b(Y e=0;e<N.19.2O;e++){Y i=X(\'<a 5n="#" 77-78="8n to 1M \'+(e+1)+\'" />\').2c($.1y(".ls-1V-9I")).G("1E",e+1).on("59."+B,q(e){e.3D(),$.4z(X(j).G("1E"))});"1q"==N.o.6q&&i.on("6d."+B,q(){Y e=X(j);$.1y(".ls-2j-1q-3C").Q({1U:1f(t.8w.Q("4D-1U")),2h:1f(t.8w.Q("4D-2h"))}),t.aU.on("4o."+B,q(){0===X(j).U()?t.aU.Q({6s:"dR",7d:"0 2r",1U:"2r"}):t.aU.Q({6s:"iJ",4n:-X(j).U()/2,1U:"50%"}),t.aU.Q("3o","3m").1R(!0,!0).5D(9J)}).1m("1K",N.19[e.G("1E")].G.2j),t.8w.Q({3o:"5x"}).1R().8x({1U:X(j).6s().1U+(X(j).U()-t.8w.5a())/2},9J),t.f0.Q({3o:"3m",6I:"4v"}).1R().5D(9J)}).on("5B."+B,q(){t.f0.1R().5V(9J,q(){t.8w.Q({6I:"3T",3o:"5x"})})})}t.1p.2y(N.19.3k.1E),"1q"==N.o.6q&&t.1p.1q()},1p:{2y:q(e){23 0===e&&(e=N.19.2q.1E),e--,$.1y(".ls-1V-9I a").3H("ls-3n-2y"),$.1y(".ls-1V-9I a:eq( "+e+" )").1X("ls-3n-2y")},1q:q(){Y e=N.1u.2i.1V.cE,t=X(\'<1A 2l="ls-2j-1q"><1A 2l="ls-2j-1q-cF"><1A 2l="ls-2j-1q-bg"></1A><1A 2l="ls-2j-1q-3C"><3C></1A><aT></aT></1A></1A>\').2c($.1y(".ls-1V-9I"));$.1y(".ls-2j-1q, .ls-2j-1q-3C").Q({U:N.o.du,Z:N.o.a1}),e.8w=$.1y(".ls-2j-1q"),e.aU=e.8w.1y("3C").Q({Z:N.o.a1}),e.f0=$.1y(".ls-2j-1q-cF").Q({6I:"3T",3o:"5x"}),t.2c($.1y(".ls-1V-9I"))}}},iG:q(){j.aV=X(\'<a 2l="ls-3n-2T" 77-78="2T 1o" 5n="#" />\').on("59."+B,q(e){e.3D(),$.4z("2T")}).9W($.1y(".ls-1V-3n-1N")),j.aW=X(\'<a 2l="ls-3n-1R" 77-78="1R 1o" 5n="#" />\').on("59."+B,q(e){e.3D(),$.4z("1R")}).2c($.1y(".ls-1V-3n-1N")),N.o.8Q?j.aX("2T"):j.aX("1R")},aX:q(e){if(N.o.a0)2C(e){18"2T":j.aV.1X("ls-3n-2T-2y"),j.aW.3H("ls-3n-1R-2y");1l;18"1R":j.aV.3H("ls-3n-2T-2y"),j.aW.1X("ls-3n-1R-2y")}},iH:q(){X(\'<aT 2l="ls-3n-iK ls-3n-qb" />\').9W($.1y(".ls-1V-3n-1N")),X(\'<aT 2l="ls-3n-iK ls-3n-qc" />\').2c($.1y(".ls-1V-3n-1N"))},9G:q(){Y e=j;e.1N.Q({3o:"3m"}),$.on("6d."+B,q(){N.1u.2i.eZ||e.1N.1R(!0,!0).5D(5o)}).on("5B."+B,q(){e.1N.1R(!0,!0).5V(5o)})},f1:q(e){if(N.o.bv&&!$.41("ls-1q"))2C(e){18"on":N.1u.2i.1V.4R.1N.Q({6I:"3T",3o:"5x"});1l;18"7p":N.1u.2i.1V.4R.1N.Q({6I:"4v",3o:"3m"})}},4R:{1d:q(){j.1N=X(\'<1A 2l="ls-1u-1v ls-2j-1N"></1A>\').2c($),X(\'<1A 2l="ls-2j"><1A 2l="ls-2j-cF"><1A 2l="ls-2j-1M-4W"><1A 2l="ls-2j-1M"></1A></1A></1A></1A>\').2c(j.1N),j.$1v=$.1y(".ls-2j-1M-4W"),"cG"in 1g?j.$1v.1X("ls-qd"):j.$1v.on("6d."+B,q(){X(j).1X("ls-2j-1M-1q")}).on("5B."+B,q(){X(j).3H("ls-2j-1M-1q"),N.1u.2i.1V.4R.1Z()}).on("7X."+B,q(e){e=1f(e.f2-X(j).76().1U)/X(j).U()*(X(j).U()-X(j).1y(".ls-2j-1M").U());X(j).1y(".ls-2j-1M").1R().Q({4n:e})});2b(Y e=0;e<N.19.2O;e++){Y t=e+1,i=X(\'<a 5n="#" 2l="ls-7Y-\'+(e+1)+\'"  77-78="8n to 1M \'+(e+1)+\'"><3C 1K="\'+N.19[t].G.2j+\'"></a>\');N.19[t].G.e7&&i.1y("3C").1m("f3",N.19[t].G.e7),i.G("1E",t).on("59."+B,q(e){e.3D(),$.4z(X(j).G("1E"))}).2c($.1y(".ls-2j-1M")),"cG"in 1g||i.on("6d."+B,q(){X(j).3P().1R().cH(5o,N.o.dv/1k)}).on("5B."+B,q(){X(j).3P().41("ls-7Y-2y")||X(j).3P().1R().cH(5o,N.o.dw/1k)})}N.1u.2i.1V.aV&&N.1u.2i.1V.aW&&(N.1u.2i.1V.1N=X(\'<1A 2l="ls-1V-3n-1N ls-qe-4R"></1A>\').2c($),N.1u.2i.1V.aV.f4().on("59."+B,q(e){e.3D(),$.4z("2T")}).2c(N.1u.2i.1V.1N),N.1u.2i.1V.aW.f4().on("59."+B,q(e){e.3D(),$.4z("1R")}).2c(N.1u.2i.1V.1N)),N.o.bv&&j.9G()},9G:q(){Y e=j;e.1N.Q("3o","3m"),N.1u.2i.1V.1N&&(N.1u.2i.1V.1N="5x"==N.1u.2i.1V.1N.Q("3o")?N.1u.2i.1V.1N:$.1y(".ls-iI-4R"),N.1u.2i.1V.1N.Q("3o","3m")),$.on("6d."+B,q(){$.1X("ls-1q"),N.1u.2i.eZ||(e.1N.1R(!0,!0).5D(5o),N.1u.2i.1V.1N&&N.1u.2i.1V.1N.1R(!0,!0).5D(5o))}).on("5B."+B,q(){$.3H("ls-1q"),e.1N.1R(!0,!0).5V(5o),N.1u.2i.1V.1N&&N.1u.2i.1V.1N.1R(!0,!0).5V(5o)})},6G:q(e){e=e||N.19.1L.1E;$.1y(".ls-2j-1M a:3U(.ls-7Y-"+e+" )").3P().2P(q(){X(j).3H("ls-7Y-2y").1R().cH(bt,N.o.dw/1k)}),$.1y(".ls-2j-1M a.ls-7Y-"+e).3P().1X("ls-7Y-2y").1R().cH(bt,N.o.dv/1k)},1Z:q(){Y e;$.1y(".ls-2j-1M-4W").41("ls-2j-1M-1q")||(e=!!$.1y(".ls-7Y-2y").1n&&$.1y(".ls-7Y-2y").74())&&(e=e.6s().1U+e.U()/2,e=0<(e=(e=$.1y(".ls-2j-1M-4W").U()/2-e)<$.1y(".ls-2j-1M-4W").U()-$.1y(".ls-2j-1M").U()?$.1y(".ls-2j-1M-4W").U()-$.1y(".ls-2j-1M").U():e)?0:e,$.1y(".ls-2j-1M").8x({4n:e},qf))},1B:q(){N.1u.2i.1V.f1("on");Y e=-1==N.K.4a.U.1c("%")?1f(N.K.4a.am):$.U(),t=$.1y(".ls-2j"),e=-1==N.o.bw.1c("%")?1f(N.o.bw):1f(e/1k*1f(N.o.bw));$.1y(".ls-2j-1M a").Q({U:1f(N.o.du*N.1B.1H),Z:1f(N.o.a1*N.1B.1H)}),$.1y(".ls-2j-1M a:aq").Q({7d:0}),$.1y(".ls-2j-1M").Q({Z:1f(N.o.a1*N.1B.1H)}),t.Q({U:e*1z.3J(1k*N.1B.1H)/1k}),t.U()>$.1y(".ls-2j-1M").U()&&t.Q({U:$.1y(".ls-2j-1M").U()}),N.1u.2i.1V.f1("7p")}}}},1b:{1d:q(){0<N.1b.2x.$6C.1n&&X(\'<1A 2l="ls-1u-1v ls-1b-3p" 77-78="qg"><1A 2l="ls-1b-3p-bg"></1A><1A 2l="ls-iL-3l"></1A><1A 2l="ls-iL-qh"></1A></1A>\').on("59."+B,q(e){e.3D(),$.4z("3p")}).2c($)},ik:q(){$.1y(".ls-1b-3p").1X("ls-1b-3p-2y")},ev:q(){$.1y(".ls-1b-3p").3H("ls-1b-3p-2y")}},4q:{4o:q(){$.1X("ls-"+N.o.4q);Y e,t=N.o.8R+N.o.4q+"/4q.Q",i=X("aJ").1n?X("aJ"):X("3G");X(\'4K[5n="\'+t+\'"]\').1n?(e=X(\'4K[5n="\'+t+\'"]\'),N.1u.4q.6J||(N.1u.4q.6J=!0,N.2B.f5=5q(q(){2e N.2B.f5,N.K.1d()},ca))):e=2I.iM?(2I.iM(t),X(\'4K[5n="\'+t+\'"]\')):X(\'<4K eK="iN" 5n="\'+t+\'" 1C="54/Q" />\').2c(i),e.on("4o."+B,q(){N.1u.4q.6J||(N.1u.4q.6J=!0,N.2B.f6=5q(q(){2e N.2B.f6,N.K.1d()},ca))}),X(1g).on("4o."+B,q(){N.1u.4q.6J||(N.1u.4q.6J=!0,N.2B.f7=5q(q(){2e N.2B.f7,N.K.1d()},ca))}),N.2B.f8=5q(q(){N.1u.4q.6J||(N.1u.4q.6J=!0,2e N.2B.f8,N.K.1d())},3z)}},4y:{1d:q(){j.1p(),j.1B()},1p:q(){j.$1v=X(\'<1A 2l="ls-1u-1v ls-4y"></1A>\').2c($),"5x"!=j.$1v.Q("3o")||j.$1v.1y("3C").1n||(j.5e=q(){N.1u.4y.$1v.Q({3o:"3m",6I:"4v"}).5D(6x,q(){N.1u.4y.5e=!1})},j.57=X("<3C>").1m("1K",N.o.8R+N.o.4q+"/4y.c0").2c(j.$1v),j.iO="4B"==2s 1f($.Q("4D-1V"))?1f($.Q("4D-1V")):0)},1B:q(){j.57&&(0<j.57.Z()?0<j.iO?j.$1v.Q({Z:j.57.Z()/2}):j.$1v.Q({Z:j.57.Z(),69:-j.57.Z()/2}):N.2B.iP=5q(q(){2e N.2B.iP,N.1u.4y.1B()},50))}},28:{1d:q(){N.o.gG&&j.4I.6i(),N.o.gH&&j.3L.6i();Y e=!1;(e=N.o.gI?X("<1A>").hM($):X(\'[G-2F-2b="\'+$.1m("id")+\'"], [G-2F-2b="\'+B+\'"]\')).1n&&(e.1X("ls-1u-1v"),j.2F.6i(e))},4I:{6i:q(){j.$1v=X("<1A>").1X("ls-1u-1v ls-4I-iQ").2c($)}},3L:{6i:q(){j.$1v=X("<1A>").1X("ls-1u-1v ls-3L-iQ").2c($),j.$1v.9g(X(\'<1A 2l="ls-ct-8a"></1A><1A 2l="ls-ct-1U"><1A 2l="ls-ct-4k"><1A 2l="ls-ct-iR"><1A 2l="ls-ct-iS"></1A></1A></1A></1A><1A 2l="ls-ct-42"><1A 2l="ls-ct-4k"><1A 2l="ls-ct-iR"><1A 2l="ls-ct-iS"></1A></1A></1A></1A>\')),j.$1v.G("3c",{2W:j.$1v.Q("2W")})}},2F:{$5s:[],$1v:[],$f9:[],$7Z:[],$cI:[],fa:[],aY:[],80:[],26:{},6i:q(e){q i(e,t){(s=(e.f2||N.1e.iT||0)-o.$1v[t].76().1U-o.80[t]/2)<0&&(s=0),s>o.aY[t]-o.80[t]&&(s="fb( 1k% - "+N.1u.28.2F.80[t]+"px )"),o.$7Z[t].Q({1U:s}),N.J.1G&&N.J.1G.3r("5F"==2s s?N.J.1a.1s.3r:s/(o.aY[t]-o.80[t])*N.J.1a.1s.3r)}q a(e){"iU"==N.1u.28.2F.26&&(N.J.1G&&N.J.1a.1s.26.7U&&N.J.1G.3r()!==N.J.1a.1s.3r&&N.1w.2S(N.J.1a.1s,{7U:!1}),X(2I).7p("7X."+B),X("3G").cd("az",!1).3H("ls-az"),N.o.9Y&&!N.1o.26.6c||N.K.5r||!N.J.1G||N.o.5j||(!0===N.J.1a.1s.26.fc?N.J.1a.1s.8q():N.J.1a.1s.2D()),N.1u.28.2F.26=!1)}Y s,r=X(2I),o=j;X.2P(e,q(t,e){o.$5s[t]=X(e).1X("ls-2F-4W "+B),o.$1v[t]=X("<1A>").1X("ls-2F").2c(o.$5s[t]),o.$f9[t]=X("<1A>").1X("ls-qi").2c(o.$1v[t]),o.$7Z[t]=X("<1A>").1X("ls-2F-K-4W").2c(o.$5s[t]),o.$cI[t]=X("<1A>").1X("ls-2F-K").2c(o.$7Z[t]),o.80[t]=o.$7Z[t].U(),o.$7Z[t].Q({69:-o.$cI[t].5b()/2}),o.$5s[t].on("81."+B,q(e){i(e,t)}),o.$5s[t].on("iV."+B,q(e){a()}),o.$5s[t].on("qj."+B+" iW."+B,q(e){N.J.1a.1s.4m(0),X("3G").cd("az",!0).1X("ls-az"),X(2I).on("7X."+B,q(e){i(e,t)}),i(e,t),N.1u.28.2F.26="iU"}),r=r.1x(o.$cI[t])}),X("3G").on("qk."+B,q(e){a()})}}},cJ:{1d:q(){j.$1v=X("<1A>").Q({3o:"3m"}).1X("ls-1u-1v ls-c3-4W").2c($),X("<1A>").1X("ls-c3-ql").2c(j.$1v)},5e:q(){j.$1v.4c(qm).5D(5o)},3K:q(){j.$1v.1R(!0,!0).5V(5o)}}},N.2i={2o:"1L",1d:q(){1<N.19.2O&&(j.1p.iX(),j.1p.iY())},1p:{iX:q(){N.o.gD&&X("3G").on("fd."+B,q(e){N.K.qn||N.K.qo||(37==e.iZ?N.2i.2w():39==e.iZ&&N.2i.1L())})},iY:q(){"cG"in 1g&&N.o.gE&&(N.K.$5W.on("iW."+B,q(e){e=e.8y||e.9K.8y;1==e.1n&&(N.1e.cK=N.1e.aZ=e[0].fe)}),N.K.$5W.on("81."+B,q(e){Y t=e.8y||e.9K.8y;1==t.1n&&(N.1e.aZ=t[0].fe),45<1z.3X(N.1e.cK-N.1e.aZ)&&e.3D()}),N.K.$5W.on("iV."+B,q(e){45<1z.3X(N.1e.cK-N.1e.aZ)&&(0<N.1e.cK-N.1e.aZ?$.4z("b0"):$.4z("b1"))}))}},2w:q(){(!N.K.8z||N.K.8z&&N.K.26.ff)&&(j.2o="2w",j.cL="2w",N.1o.1p.aA("2w"))},1L:q(){(!N.K.8z||N.K.8z&&N.K.26.ff)&&(j.2o="1L",j.cL="1L",N.1o.1p.aA("1L"))},2T:q(){N.1w.2S(N.1o,{6c:!0,4f:!1}),!0===N.1o.26.ay&&N.1w.2S(N.1o,{ay:!1}),N.1u.2i.1V.aX("2T"),N.1o.26.ax||1!==N.J.1G.5G()&&N.J.1a.1s.8q(),N.1o.2T()},1R:q(){N.1u.2i.1V.aX("1R"),N.o.9Y&&N.J.1a.1s.4m(),N.1o.1R()}},N.6f={1d:q(){N.K.$73.1y(".ls-1M 3C").2P(q(){Y e,t=X(j),i=t[0],a={};t.is(".ls-2p, .ls-bg")&&(i.ap("U")&&(a.U=i.ap("U")),i.ap("Z")&&(a.Z=i.ap("Z")),i.8m&&(a.8m=i.8m),N.o.dG&&(t.G("67")||i.67)&&(a.cM=t.G("67")||i.67,a.9L=i.ea,e=a.cM.1D(",").qp(q(e){1O 1f(X.4b(e).1D(" ")[1])}),a.4E=1z.48.qq(3f,e)),t.5T("U Z 8m 67 c3"),X.4C(a)||(t.G(N.1i.1d.1P).6z=a)),t.G("cN-1K")?t.G("1K",t.G("cN-1K")):t.1m("G-cN-1K")?t.G("1K",t.1m("G-cN-1K")):t.G("1K")?a.9L&&t.G("1K",a.9L):t.G("1K",a.9L||i.1K),t.1m("1K","G:57/qr;hK,qs///qt")})},ew:q(e,t){Y i,a,s;!0!==N.19[e].9r?(j.6B=e,t?(j.b2=t,N.1w.2S(N.K,{aB:!0}),N.1u.cJ.5e()):j.b2=!1,N.K.j0&&$.Q({6I:"4v"}),j.7q=[],i=j,N.K.$73.1y(".ls-1M:eq("+(i.6B-1)+") *").2P(q(){a=X(j),s=j;Y e,t=a.G(N.1i.1d.1P);a.is("3C")?(a.G("1K")&&a.1m("1K",a.G("1K")),t&&t.6z&&t.6z.cM&&N.o.dG&&(s.67=t.6z.cM),e=s.1K,(t=!!(t&&t.6z&&t.6z.9L)&&t.6z.9L)&&e!==t&&a.is(".ls-bg")&&(e=t,N.19[i.6B].G.$2f.1m("1K",e)),N.6f.7q.56([e,a])):"3m"!==a.Q("2f-57")&&-1!==a.Q("2f-57").1c("6b")&&N.6f.7q.56([a.Q("2f-57").3Y(/6b\\((.*)\\)/)[1].2Z(/"/gi,""),a])}),N.J.4i&&N.o.8T&&N.6f.7q.56([N.o.8T,X()]),j.j1||j.4R(),0===j.7q.1n?j.4u():j.2T()):N.K.cO&&t&&(N.1B.fg(N.1a.2J("1L, bg")),N.1B.1a(t))},4R:q(){2b(Y e=N.K.4R.1r(q(e,t,i){1O i.1c(e)==t}),t=e.1n,i=0;i<t;i++)(3Z eL).1K=e[i];j.j1=!0},2T:q(){N.24&&(N.1F.1x("9u","6f"),N.1F.1x("5C","6f.7r",j.6B)),j.j2=0;2b(Y e,t=j,i=q(){++t.j2==t.7q.1n&&(N.24&&N.1F.9h(),t.4u())},a=q(){N.24&&(e=j.1K.8l(j.1K.j3("/")+1,j.1K.1n),N.1F.1x("5C","6f.j4",e)),j.fh.G("hT",j.U),j.fh.G("hU",j.Z),i()},s=q(){N.24&&(e=j.1K.8l(j.1K.j3("/")+1,j.1K.1n),N.1F.1x("2H","6f.qu",e)),i()},r=0;r<j.7q.1n;r++){Y o=3Z eL;o.7o("5l",s,!1),o.7o("4o",a,!1),o.1K=j.7q[r][0],o.fh=j.7q[r][1]}},4u:q(){Y s=j;j.b2?(N.1a.5z(j.6B),q e(){Y t,i,a;0!==N.19[s.6B].$1a.1n?N.2B.j5=5q(e,1k):(2e N.2B.j5,N.1w.2S(N.J.1a.1j,{9E:!0}),X(".ls-2j-1N, .ls-3n-1L, .ls-3n-2w, .ls-1V-3n-1N").Q({6I:"4v"}),N.19[s.6B].9r=!0,t=!(!1g.2L.8v.cy&&N.1a.2J("1L,in,3g,ce").1n),i=!(!1g.2L.8v.eX&&N.1a.2J("1L,in,3e,ce").1n),a=q(){N.1u.cJ.3K(),N.K.cO?(N.1B.fg(N.1a.2J("1L, bg")),N.1B.1a(s.b2)):s.b2()},t&&i?a():N.4x.fi=aK(q(){(t||1g.2L.8v.cy)&&(i||1g.2L.8v.eX)&&(aL(N.4x.fi),2e N.4x.fi,a())},50))}()):N.1a.5z(j.6B,!0),N.1w.2S(N.K,{aB:!1})}},N.1B={fg:q(e){j.$b3=e.1x(N.1a.2J("2y")),N.19.1L.G.$2n.1n&&(j.$b3=j.$b3.1x(N.19.1L.G.$2n))},5y:q(){if(!2I.3G.8k(P))1O!1;N.2z.43("j6")&&$.4g("j6",N.2z.4p()),j.K(),j.2i(),j.1a(),j.3i(),j.4y(),j.28(),N.J.1a.1s.6j&&N.o.dF&&(N.1w.j7(),N.J.1a.1s.6i(!0)),N.2z.43("j8")&&$.4g("j8",N.2z.4p())},cP:q(){X(1g).c6(1z.5A(N.K.4l)-(N.1e.4d-N.K.Z)/2)},K:q(){if(!2I.3G.8k(P))1O!1;Y e,t=N.K.$cQ&&0<N.K.$cQ.U()?N.K.$cQ:N.1w.j9("U"),i=N.K.4a,a=N.K.$fj?t.U()/1k*N.K.$fj:t.U(),s=i.1C,r=0!==i.4E?i.4E:a,o="2r"===i.4n?0:i.4n,n="2r"===i.9M?0:i.9M;2C(N.K.26.7m?$[0].1T.4E="":0!==i.4E&&($[0].1T.4E=i.4E+"px"),-1!==r.1c("%")&&(r=a/1k*1f(r)),r<(a-=o+n)&&0<=r&&(a=r),N.o.dn&&("6K"===s||"6a"===s&&"fk"!==N.o.87&&"ja"!==N.o.87)&&(o=t.76().1U,n=1f(t.Q("4D-1U"))||0,r=1f(t.Q("7f-1U-U"))||0,$[0].1T.4E="3m",$[0].1T.4n=-(o+n+r)+"px",a=N.1e.7s||X(1g).U()),a-=i.b4,N.K.26.7m&&(a=N.1e.U),s){18"1Y":e=(N.K.26.7m?(N.1e.1H>i.1H?j.1H=N.1e.Z/i.Z:j.1H=N.1e.U/i.U,a=1z.5A(i.U*j.1H)):j.1H=a/i.U,1z.5A(i.Z*j.1H));1l;18"6K":e=a<N.o.6W?(j.1H=a/N.o.6W,1z.5A(i.Z*j.1H)):N.K.26.7m?N.1e.1H>i.b5/i.Z?(j.1H=N.1e.Z/i.Z,N.1e.Z):(j.1H=N.1e.U/i.b5,i.Z*j.1H):(j.1H=1,i.Z);1l;18"6a":2C(N.o.87.3I()){18"4Y":e=N.1e.4d-i.b6;1l;18"fl":e=N.1e.4d-i.b6,N.K.26.7m||(e-=N.K.jb||N.K.4l);1l;18"fk":a=t.U()-i.b4,e=t.Z()-i.b6;1l;18"ja":a=t.U()-i.b4,e=N.1e.4d-i.b6}a/e<i.1H?j.1H=a/i.b5:j.1H=e/i.fm;1l;18"jc":18"fo":j.1H=1,a=i.U,e=i.Z,N.o.5K=1,P.1T.4E="3m"}j.1H=N.o.5K&&0<N.o.5K&&j.1H>N.o.5K?N.o.5K:j.1H,P.1T.U=a+"px",P.1T.Z=e+"px",N.K.U=a,N.K.Z=e;s=$.76();N.K.qv=s.1U,N.K.qw=s.2h,N.1e.6g?N.1e.7s<qx&&qy<N.1e.7s?$.3H("ls-1e-is-6E").1X("ls-1e-is-6F"):N.1e.7s<qz&&$.3H("ls-1e-is-6F").1X("ls-1e-is-6E"):$.3H("ls-1e-is-6E ls-1e-is-6F").1X("ls-1e-is-ci")},3Q:q(e){2b(Y t=(""+e).1D(" "),i="",a=N.o.5K&&0<N.o.5K&&j.1H>N.o.5K?N.o.5K:j.1H,s=0,r=t.1n;s<r;s++)-1===t[s].1c("%")?i+=1z.7j(1f(t[s])*a)+"px ":i+=t[s]+" ";1O X.4b(i)},1a:q(e){if(j.$b3){N.24&&N.1F.1x("9u","1B");2b(Y t=j.1H,i=j.$b3,a=N.K.4a,s=N.K.U,r=N.K.Z,o=s/r,n=[],l=[],d=[],u=[],p=0,c=0,h="1Y"===a.1C&&-1!==N.o.5K?a.U:a.b5,m="1Y"===a.1C&&-1!==N.o.5K?a.Z:a.fm,c="6a"===a.1C||"6K"===a.1C||"1Y"===a.1C?(p=0<h?(s-h*t)/2:0,0<m?(r-m*t)/2:0):(p=p<0?0:p,c<0?0:c),f=0,g=i.1n;f<g;f++){Y v=X(i[f]),y=(i[f],v.G(N.1i.1d.1P)),b=y.3c,S="jc"===y.2V.6s,w=S?0:p,x=S?0:c,T={U:S&&0!==b.9o?s/1k*b.9o:b.U*t,Z:S&&0!==b.9p?r/1k*b.9p:b.Z*t,79:b.79*t,7b:b.7b*t,7a:b.7a*t,7c:b.7c*t,7e:1z.7j(b.7e*t),7h:1z.7j(b.7h*t),7g:1z.7j(b.7g*t),7i:1z.7j(b.7i*t),3Q:j.3Q(b.3Q)},C={4n:b.4n*t,69:b.69*t},k={},v={3Q:T.3Q};if(S&&(b.9p||b.9o)&&y.is.hs&&(b.9p&&!b.9o&&(T.U=b.U*(T.Z/b.Z)),b.9o&&!b.9p&&(T.Z=b.Z*(T.U/b.U))),("4B"==2s b.U&&b.U<0||"2r"==b.U)&&N.24&&N.1F.1x("2H","1B.U",[f+1,b.U]),("4B"==2s b.Z&&b.Z<0||"2r"==b.Z)&&N.24&&N.1F.1x("2H","1B.Z",[f+1,b.Z]),y.is.96&&(T.6D=b.6D*t,N.1e.6g&&T.6D<y.46.8f?T.6D=y.46.8f:T.6D<y.46.8e&&(T.6D=y.46.8e),I=T.6D/b.6D,T.6D+="px","4Y"!==b.cb&&(T.cb=2N(b.cb)*I+"px"),"4Y"!==b.cc&&(T.cc=2N(b.cc)*I+"px")),y.is.5Q||y.is.2n)if(y.is.5Q){Y I=N.19[y.is.bH].G.bA;2C((23 0!==I&&"qA"!==I?I:N.o.8P).2Z("1k% 1k%","fp")){18"2r":1l;18"br":b.1H<o?(T.U=s,T.Z=T.U/b.1H):(T.Z=r,T.U=T.Z*b.1H);1l;18"jd":b.1H<o?(T.Z=r,T.U=T.Z*b.1H):(T.U=s,T.Z=T.U/b.1H);1l;18"fp":T.U=s,T.Z=r}T.U=1z.5A(T.U),T.Z=1z.5A(T.Z);Y O,I=N.19[y.is.bH].G.bB;2C((O=(23 0!==I?I:N.o.gv).1D(" "))[0]){18"1U":T.x=0;1l;18"8a":T.x=(N.K.U-T.U)/2;1l;18"42":T.x=N.K.U-T.U;1l;4S:-1!==O[0].1c("%")?T.x=(N.K.U-T.U)/1k*1f(O[0]):T.x=1f(O[0])}if(23 0!==O[1])2C(O[1]){18"2h":T.y=0;1l;18"8a":T.y=(N.K.Z-T.Z)/2;1l;18"1V":T.y=N.K.Z-T.Z;1l;4S:-1!==O[1].1c("%")?T.y=(N.K.Z-T.Z)/1k*1f(O[1]):T.y=1f(O[1])}T.3E="5g("+T.x+"px) 5h("+T.y+"px)",T["-ms-3E"]="5g("+T.x+"px) 5h("+T.y+"px)",T["-5H-3E"]="5g("+T.x+"px) 5h("+T.y+"px)"}3t y.is.2n&&(b.1H<o?(T.U=s,T.Z=T.U/b.1H):(T.Z=r,T.U=T.Z*b.1H),T.x=(N.K.U-T.U)/2,T.y=(N.K.Z-T.Z)/2,T.U=1z.5A(T.U),T.Z=1z.5A(T.Z),T.3E="5g("+T.x+"px) 5h("+T.y+"px)",T["-ms-3E"]="5g("+T.x+"px) 5h("+T.y+"px)",T["-5H-3E"]="5g("+T.x+"px) 5h("+T.y+"px)");3t{if(y.1Q.6a)2C(y.1Q.dJ){4S:18"br":b.1H<o?(T.U=s,T.Z=T.U/b.1H):(T.Z=r,T.U=T.Z*b.1H);1l;18"jd":b.1H>o?(T.U=s,T.Z=T.U/b.1H):(T.Z=r,T.U=T.Z*b.1H)}T.5a=T.U+T.79+T.7a+T.7e+T.7g,T.5b=T.Z+T.7b+T.7c+T.7h+T.7i,C.U=k.U=T.5a,C.Z=k.Z=T.5b,-1!=b.1U.1c("%")?"1k%"===b.1U?T.1U=0===w?N.K.U/1k*2N(b.1U)-T.5a:w+h*t/1k*2N(b.1U)-T.5a:"0%"===b.1U?T.1U=0===w?0:w:T.1U=0===w?N.K.U/1k*2N(b.1U)-T.5a/2:w+h*t/1k*2N(b.1U)-T.5a/2:T.1U=w+2N(b.1U)*t,C.1U=T.1U,-1!=b.2h.1c("%")?"1k%"===b.2h?T.2h=0===x?N.K.Z/1k*2N(b.2h)-T.5b:x+m*t/1k*2N(b.2h)-T.5b:"0%"===b.2h?T.2h=0===x?0:x+0:T.2h=0===x?N.K.Z/1k*2N(b.2h)-T.5b/2:x+m*t/1k*2N(b.2h)-T.5b/2:T.2h=x+2N(b.2h)*t,C.2h=T.2h}y.1Y=T,n[f]=T,y.is.5Q||y.is.2n||(y.2V.ei.1Y=C,l[f]=C,d[f]=k,u[f]=v)}2b(Y L=0,P=n.1n;L<P;L++){Y $=X(i[L]),B=$.G(N.1i.1d.1P);$.Q(n[L]),B.is.5Q||B.is.2n?(B.is.5Q||B.is.2n)&&(B.22.$c7.Q({U:N.K.U,Z:N.K.Z}),B.22.$7T.Q({U:N.K.U,Z:N.K.Z})):($.1y(".1D-qB").Q(u[L]),j.2Y($,B,l[L],d[L]))}23 0!==e&&e(),N.24&&N.1F.9h("1B")}},2Y:q(e,t,i,a){i&&t.22.$1N.Q(i),a&&t.1t.1S&&t.22.$7R.Q(a),H.3b.1p(t.22.$1N[0],{2m:!1,Q:{2u:t.2u.2p*N.1B.1H}}),t.1t.1S&&H.3b.1p(t.22.$7R[0],{2m:!1,Q:{2u:t.2u.1t*N.1B.1H}}),t.1q.1S&&H.3b.1p(e[0],{2m:!1,Q:{2u:t.2u.1q*N.1B.1H}}),t.21.5I&&H.3b.1p(t.21.5I,{2m:!1,Q:{2u:t.2u.54*N.1B.1H}}),t.2v.5I&&H.3b.1p(t.2v.5I,{2m:!1,Q:{2u:t.2u.54*N.1B.1H}}),t.1j.1S&&H.3b.1p(t.22.$7S[0],{2m:!1,Q:{2u:t.2u.1j*N.1B.1H}})},8A:q(e,t,i,a){if("5J"==2s i.x){2b(Y s=[],r=0;r<i.x.1n;r++)"5F"==2s i.x[r]?s[r]=j.b7(e,i.x[r],"je"):s[r]=i.x[r]*N.1B.1H;t.6w.x=s}3t"5F"==2s i.x?t.x=j.b7(e,i.x,"je"):23 0!==i.x&&(t.x=i.x*N.1B.1H);if("5J"==2s i.y){2b(Y o=[],n=0;n<i.y.1n;n++)"5F"==2s i.y[n]?o[n]=j.b7(e,i.y[n],"jf"):o[n]=i.y[n]*N.1B.1H;t.6w.y=o}3t"5F"==2s i.y?t.y=j.b7(e,i.y,"jf"):23 0!==i.y&&(t.y=i.y*N.1B.1H);if(a&&(t=a),"5J"==2s i.3j){2b(Y l=[],d=0;d<i.3j.1n;d++)l[d]=N.1w.2R.3j(i.3j[d],e);t.6w.3j=l}3t"5F"==2s i.3j&&(t.3j=N.1w.2R.3j(i.3j,e))},9N:q(e,t){23 0!==t.U&&(X.5U(t.U)?e.U=1f(t.U)*N.1B.1H:"5F"==2s t.U&&-1!==t.U.1c("%")&&(e.U=N.K.U/1k*1f(t.U))),23 0!==t.Z&&(X.5U(t.Z)?e.Z=1f(t.Z)*N.1B.1H:"5F"==2s t.Z&&-1!==t.Z.1c("%")&&(e.Z=N.K.Z/1k*1f(t.Z))),t.3Q&&(e.3Q=N.1B.3Q(t.3Q))},2a:q(e,t,i){t=X.4b(t.2Z("jg(","").2Z(")",""));2b(Y a,e=e.G(N.1i.1d.1P).1Y,s=1z.7j(e.5a),r=1z.7j(e.5b),o=-1===t.1c(",")?t.1D(" "):t.1D(","),n="",l=0;l<o.1n;l++)if(-1!==o[l].1c("%"))2C(l){18 0:n+=1f(r/1k*1f(o[l])*1k)/1k+"px ";1l;18 1:n+=i?1f(1k*(s-s/1k*1f(o[l])))/1k+"px ":1f(s/1k*1f(o[l])*1k)/1k+"px ";1l;18 2:n+=i?1f(1k*(r-r/1k*1f(o[l])))/1k+"px ":1f(r/1k*1f(o[l])*1k)/1k+"px ";1l;18 3:n+=1f(s/1k*1f(o[l])*1k)/1k+"px"}3t 2C(a=1f(o[l])*N.1B.1H,l){18 0:n+=a+"px ";1l;18 1:n+=i?s-a+"px ":a+"px ";1l;18 2:n+=i?r-a+"px ":a+"px ";1l;18 3:n+=a+"px"}1O"jg("+n+")"},b7:q(e,t,i){Y a=0,e=e.G(N.1i.1d.1P),s=e.3c,r=e.1Y,o=e.2V.ei.1Y;if(s&&r&&o)2C(t){18"1U":a=-1==s.1U.1c("%")||"1k%"===s.1U?-r.1U-r.5a-o.4n:-1f(s.1U)/1k*N.K.U-r.5a/2-o.4n;1l;18"42":a=-1==s.1U.1c("%")||"1k%"===s.1U?N.K.U-r.1U-o.4n:(1-1f(s.1U)/1k)*N.K.U+r.5a/2-o.4n;1l;18"2h":a=-1==s.2h.1c("%")||"1k%"===s.2h?-r.2h-r.5b-o.69:-1f(s.2h)/1k*N.K.Z-r.5b/2-o.69;1l;18"1V":a=-1==s.2h.1c("%")||"1k%"===s.2h?N.K.Z-r.2h-o.69:(1-1f(s.2h)/1k)*N.K.Z+r.5b/2-o.69;1l;18"U":a=r.5a;1l;18"-U":a=-r.5a;1l;18"Z":a=r.5b;1l;18"-Z":a=-r.5b;1l;4S:a=-1!==t.1c("%")?r["eh"+i]/1k*1f(t):-1!==t.1c("sw")?1f(t.1D("sw")[0])/1k*N.K.U:-1!==t.1c("sh")?1f(t.1D("sh")[0])/1k*N.K.Z:-1!==t.1c("lw")?r.5a/1k*1f(t.1D("lw")[0]):-1!==t.1c("lh")?r.5b/1k*1f(t.1D("lh")[0]):1f(t)*N.1B.1H}1O a},2i:q(){"9H"==N.o.6q&&N.1u.2i.1V.4R.1B()},4y:q(){N.1u.4y.5e&&N.1u.4y.5e(),N.1u.4y.$1v&&N.1u.4y.1B()},3i:q(){N.3i.$1v&&N.3i.1B()},28:q(){if(0<N.1u.28.2F.$5s.1n)2b(Y e=0,t=N.1u.28.2F.$5s.1n;e<t;e++)N.1u.28.2F.aY[e]=N.1u.28.2F.$5s[e].U(),N.1u.28.2F.fa[e]=N.1u.28.2F.$1v[e].U()}},N.J={4i:!0,2T:q(){1O!!2I.3G.8k(P)&&(N.K.8z&&N.K.26.qC?!(N.K.26.qD=!0):(N.1e.1Z.jh=N.1e.1Z.2o,"9H"==N.o.6q&&(N.1u.2i.1V.4R.6G(),"cG"in 1g||N.1u.2i.1V.4R.1Z()),j.1a.1J.ji(),23 j.1M.1d()))},1M:{$1N:X(),1d:q(){Y e,t,i;N.1w.2S(N.K,{8s:!0}),N.J.1a.1j.3y(),N.K.$64.3P(\'.ls-1j[G-ls-1j="2y"]\').2P(q(){X(j).1y(".ls-2p").G(N.1i.1d.1P).2V.97===N.19.2q.1E&&X(j).1m("G-ls-1j","qE")}),N.J.3s=N.19.2q,N.J.29=N.19.1L,N.J.3B=3Z H.6L({4f:!0,4u:q(){N.J.1M.4u()}}),N.J.4i?(23 0!==N.J.29.G.$2f&&(e=(i=N.J.29.G.$2f.G(N.1i.1d.1P)).2t.6r?i.2t.3N.2U:1,t=i.2t.6r?i.2t.3N.27:0,i=N.J.29.1r.3N||"3m",N.J.3B.1p(N.J.29.G.$2f[0],{"-5H-1r":i,1r:i},0),N.J.3B.4h(N.J.29.G.$2f.2E(".ls-bg-5z")[0],N.o.bs,{2m:!1,Q:{2U:e,27:t,2W:0,3o:"5x"}},{2m:!1,Q:{2W:1}},0)),j.2T(!0)):"6U"==2s b8&&"6U"==2s c1?(j.2T(!0),N.24&&N.1F.1x("2H","7t.qF",N.J.29.1E)):23 0===N.J.3s.G.$2f&&23 0===N.J.29.G.$2f&&"4Z"==N.J.3s.G.3a&&"4Z"==N.J.29.G.3a?j.2T(!0):("x"===N.o.bq?N.1e.$b9.1X("ls-jj-3T"):"y"===N.o.bq?N.1e.$b9.1X("ls-jk-3T"):!0===N.o.bq&&N.1e.$b9.1X("ls-51-3T"),23 0!==N.J.3s.G.$2f&&(e=N.J.3s.G.$2f.2E(".ls-bg-5z")[0].jl,(t=N.J.3s.G.$2f.G(N.1i.1d.1P)).1Y.1r=N.J.3s.G.$2f[0].1T.1r,t.1Y.8B=23 0!==e?" 4k("+e.27+"8C)":" 4k(qG)",t.1Y.8D=23 0!==e?" 2U("+e.4A+")":" 2U(1)"),N.J.1M.$1N=X("<1A>").1X("ls-1M-2g-1N").Q({U:N.K.U,Z:N.K.Z}),j.cR.jm())},cR:{jm:q(){N.J.1M.4Y.cR.jn()}},2T:q(e){Y t,i=!(!N.19.2q.1E||!N.19.2q.G.$2n.1n),a=!(!N.19.1L.1E||!N.19.1L.G.$2n.1n);!N.1o.9s&&N.2z.43("jo")&&$.4g("jo",N.2z.4p()),e||(23 0!==N.J.29.G.a3&&N.J.3B.1I(N.J.29.G.a3),N.24&&N.1F.2A.a3&&N.J.3B.1I(N.1F.2A.a3),.25<N.J.1a.1s.7u&&(r=(r=N.J.3B.1I()/(.75+N.J.1a.1s.7u))<.5?.5:r,N.J.3B.1I(r)));Y s=N.J.3B.1I()/N.J.3B.5G(),e=s,r=N.J.29.G.bz;0<r?r=0:r<0&&1z.3X(r)>s&&(r=-s),N.J.29.G.bD=r,r=N.J.4i?N.o.bs+.qH:(e+r)*N.J.3B.5G(),(i||a)&&N.J.1b.jp(N.J.4i,i&&a),N.J.3B.jq(q(){!N.1o.9s&&N.2z.43("jr")&&$.4g("jr",N.2z.4p()),N.1o.55.6G||N.J.1a.1s.jt(),N.1b.1w.1R(!0),N.19.1p.hF(),N.o.gQ&&(2I.6A.7Q=N.19[N.19.2q.1E].G.4j||"qI-4j-qJ"),N.1o.2T(),!N.J.4i&&N.19.2w.1E&&N.19.2w.G.$2n.1n&&!N.19.2w.G.$2n.G(N.1i.1d.1P).1h.fq&&(N.19.2w.G.$2n.5f("aM"),N.19.2w.G.$2n.G(N.1i.1d.1P).22.$9k.Q({3o:"3m"})),N.1o.55.6G||N.19.1L.G.$2n.1n&&N.19.1L.G.$2n.G(N.1i.1d.1P).1h&&!N.19.1L.G.$2n.G(N.1i.1d.1P).1h.fr&&(N.19.1L.G.$2n.5f("eP"),N.19.1L.G.$2n.G(N.1i.1d.1P).1h.fr=!0),N.J.4i=!1},[],j,r),N.J.3B.2D(),N.1o.aw&&N.J.3B.3r(1),23 0!==N.J.3s.G&&23 0!==N.J.3s.G.$2f&&(t=N.J.3s.G.$2f.G(N.1i.1d.1P),N.2B.ju=5q(q(){2e N.2B.ju,N.J.3s.G.$2f.2E(".ls-bg-5z").3K(),t.2t.6r&&H.3b.1p(N.J.3s.G.$2f[0],{2m:!1,Q:t.2t.3N})},5))},4u:q(){Y e;23 0!==N.J.29.G.$2f&&N.J.29.G.$2f.2E(".ls-bg-5z").5e(),"4Z"!==N.J.29.G.3a?N.K.$5W.Q("2f-47",N.J.29.G.3a):N.K.$5W.Q("2f-47",N.o.8S),N.o.qK||N.1e.$b9.3H("ls-jj-3T ls-jk-3T ls-51-3T"),j.$1N&&(j.$1N.5m("").5S(),j.$1N=!1),N.1u.2i.1V.cE.1p.2y(),0<N.o.5M&&(N.1o.6k("eu")?N.1o.5M.6e(N.J.29.1E)&&(N.2i.1R(),N.1w.2S(N.1o,{ay:!0}),N.o.dr&&(N.1o.cn=1)):N.1o.5M.1p()),N.1w.2S(N.K,{8s:!1,9j:!1}),!N.1o.9s&&N.2z.43("jv")&&$.4g("jv",N.2z.4p()),N.1o.9s=!1,N.1o.aw=!1,N.1o.cS&&(N.1o.cS(),N.1o.cS=!1),!1!==N.1o.55.6G&&N.2i.cL?(23 0!==N.J.3s.G&&23 0!==N.J.3s.G.$2f&&(e=N.J.3s.G.$2f.G(N.1i.1d.1P),N.J.3s.G.$2f.2E(".ls-bg-5z").3K(),e.2t.6r&&H.3b.1p(N.J.3s.G.$2f[0],{2m:!1,Q:e.2t.3N})),N.1o.65(N.1o.2J.ao(N.2i.cL),!0)):N.6f.ew(N.19.1L.1E)},4Y:{cR:{jn:q(){Y e,t,i;N.o.7t?N.J.1M.4Y.fs(N.o.7t.1C,N.o.7t.qL):(i=!!N.J.29.G.7D&&N.J.29.G.7D.dg().1D(","),N.1e.b1&&N.o.dE?(N.1e.b1=!1,j.2g("2d","1")):N.1e.b0&&N.o.dE?(N.1e.b0=!1,j.2g("2d","1")):N.19.1L.G.$2f||i&&(!i||-1!=i.1c("1")||-1!=i.1c("2")||-1!=i.1c("3")||-1!=i.1c("4"))?N.4T.jw()&&(N.J.29.G.8c||N.J.29.G.7F)?N.J.29.G.8c&&N.J.29.G.7F?(e=1z.3J(2*1z.2M()),t=[["3d",N.J.29.G.8c],["jx",N.J.29.G.7F]],j.2g(t[e][0],t[e][1])):N.J.29.G.8c?j.2g("3d",N.J.29.G.8c):j.2g("jx",N.J.29.G.7F):N.J.29.G.7D&&N.J.29.G.7E?(e=1z.3J(2*1z.2M()),t=[["2d",N.J.29.G.7D],["jy",N.J.29.G.7E]],j.2g(t[e][0],t[e][1])):N.J.29.G.7D?j.2g("2d",N.J.29.G.7D):N.J.29.G.7E?j.2g("jy",N.J.29.G.7E):j.2g("2d","1"):j.2g("2d","5"))},2g:q(e,t){N.24&&N.1F.1x("9u","7t.7r"),t+="";Y i,a,s=-1==e.1c("ft")?N.t:N.ct,r="3d";-1!=e.1c("2d")&&(r="2d"),a=-1!=t.1c("aq")?s["t"+r].1n-1:-1!=t.1c("5y")?1z.3J(1z.2M()*N.1w.jz(s["t"+r])):(t=(i=t.1D(",")).1n,1f(i[1z.3J(1z.2M()*t)])-1),23 0===s["t"+r][a]&&(N.24&&N.1F.1x("2H","7t.qM",[r.fu()+(-1===e.1c("ft")?"":" (jA)"),a+1]),s=N.t,e=r="2d",a=0),N.24&&N.1F.1x("5C","7t.7r",[r.fu()+(-1===e.1c("ft")?"":" (jA)"),a+1,s["t"+r][a].9F]),N.J.1M.4Y.fs(r,s["t"+r][a])}},fs:q(e,t){Y i,a,s,r,o=X.49(!0,{7v:1,7w:1},t),n=2s o.7v,l=2s o.7w,d=[],u=N.2i.2o,p=0,c=0,h=!!N.J.3s.G.$2f&&N.1w.bZ(N.J.3s.G.$2f),m=!!N.J.29.G.$2f&&N.1w.bZ(N.J.29.G.$2f),f=N.o.5j&&"8E"===N.1e.1Z.2o?"to":"3N";2C(n){18"4B":n=o.7v;1l;18"5F":n=1z.3J(1z.2M()*(1f(o.7v.1D(",")[1])-1f(o.7v.1D(",")[0])+1))+1f(o.7v.1D(",")[0]);1l;4S:n=1z.3J(1z.2M()*(o.7v[1]-o.7v[0]+1))+o.7v[0]}2C(l){18"4B":l=o.7w;1l;18"5F":l=1z.3J(1z.2M()*(1f(o.7w.1D(",")[1])-1f(o.7w.1D(",")[0])+1))+1f(o.7w.1D(",")[0]);1l;4S:l=1z.3J(1z.2M()*(o.7w[1]-o.7w[0]+1))+o.7w[0]}N.1e.6g&&N.o.gP?(15<=n?n=7:5<=n?n=4:4<=n?n=3:2<n&&(n=2),15<=l?l=7:5<=l?l=4:4<=l?l=3:2<l&&(l=2),2<l&&2<n&&(l=2,4<n&&(n=4))):(n=35<n?35:n,l=35<l?35:l),N.24&&!N.o.7t&&(N.1F.1x("5C","7t.2x",[[n,l],n*l]),N.1F.9h()),i=1z.3J(N.K.U/n),a=1z.3J(N.K.Z/l),s=N.K.U-i*n,r=N.K.Z-a*l,"2w"==u&&(o.6M&&o.6M.3V&&(o.6M.3V={2M:"2M",8F:"3h",3h:"8F","9O-8F":"9O-3h","9O-3h":"9O-8F"}[o.6M.3V]),X.2P(["4J","7x","6N"],q(e,t){o[t]&&o[t].2g&&((t=o[t].2g).6l&&44<1z.3X(t.6l)&&(t.6l*=-1),t.6O&&44<1z.3X(t.6O)&&(t.6O*=-1),t.4k&&(t.4k*=-1))}));2b(Y g,v,y=0;y<n*l;y++)d.56(y);2C(o.6M.3V){18"3h":d.3h();1l;18"9O-8F":d=N.1w.fv(l,n,"8F");1l;18"9O-3h":d=N.1w.fv(l,n,"3h");1l;18"2M":d=N.1w.es(d)}"4Z"===N.J.3s.G.3a&&(N.J.3s.G.3a=N.o.8S),"4Z"===N.J.29.G.3a&&(N.J.29.G.3a=N.o.8S),"2d"==e&&(g=-1!=o.9F.3I().1c("qN"),v=-1!=o.9F.3I().1c("qO"),j.$82=X("<1A>").1X("ls-qP").2c(N.J.1M.$1N),j.$fw=X("<1A>").1X("ls-qQ").2c(N.J.1M.$1N));2b(Y b=0;b<n*l;b++){Y S,w=(b+1)%n==0?s:0,x=(l-1)*n-1<b?r:0,T=X("<1A>").1X("ls-1M-2g-6M").Q({U:i+w,Z:a+x}).G("1T",{U:i+w,Z:a+x}).2c(N.J.1M.$1N),p=(d[b],b%n==0?p+1:p),c=b%n==0?1:c+1;if("3d"==e){T.1X("ls-3d-4W");Y C,k,I=i+w,O=a+x,L=3Z H.6L,P=1z.3X(1z.3X(c-n/2-.5)-n/2-.5)*1z.3X(1z.3X(p-l/2-.5)-l/2-.5);T.Q({7P:P}),C=I/2,k=O/2,x=(P="jB"==o.4J.2o?90<1z.3X(o.4J.2g.6O)&&"jC"!=o.6M.jD?1z.3J(I/7)+w:I:90<1z.3X(o.4J.2g.6l)&&"jC"!=o.6M.jD?1z.3J(O/7)+x:O)/2,j.7y("ls-3d-7z",T,0,0,0,0,-x,0,0,C+"px "+k+"px jE"),j.7y("ls-3d-jF",T.1y(".ls-3d-7z"),I,O,0,0,x,0,0),"qR"==o.4J.2o&&90<1z.3X(o.4J.2g.6l)?j.7y("ls-3d-cT",T.1y(".ls-3d-7z"),I,O,0,0,-x,cU,0):j.7y("ls-3d-cT",T.1y(".ls-3d-7z"),I,O,0,0,-x,0,cU),j.7y("ls-3d-1U",T.1y(".ls-3d-7z"),P,O,-x,0,0,0,-90),j.7y("ls-3d-42",T.1y(".ls-3d-7z"),P,O,I-x,0,0,0,90),j.7y("ls-3d-2h",T.1y(".ls-3d-7z"),I,P,0,-x,0,90,0),j.7y("ls-3d-1V",T.1y(".ls-3d-7z"),I,P,0,O-x,0,-90,0),I=T.1y(".ls-3d-jF"),P="jB"==o.4J.2o?90<1z.3X(o.4J.2g.6O)?T.1y(".ls-3d-cT"):0<o.4J.2g.6O?T.1y(".ls-3d-1U"):T.1y(".ls-3d-42"):90<1z.3X(o.4J.2g.6l)?T.1y(".ls-3d-cT"):0<o.4J.2g.6l?T.1y(".ls-3d-1V"):T.1y(".ls-3d-2h"),O=d[b]*o.6M.4c,x=N.J.1M.$1N.1y(".ls-3d-4W:eq( "+b+" ) .ls-3d-7z"),o.7x&&o.7x.2g?(o.7x.2g.4c=o.7x.2g.4c?(o.7x.2g.4c+O)/3z:O/3z,L.to(x[0],o.7x.1I/3z,N.1w.2R.2g(o.7x.2g,o.7x.4U))):o.4J.2g.4c=o.4J.2g.4c?(o.4J.2g.4c+O)/3z:O/3z,L.to(x[0],o.4J.1I/3z,N.1w.2R.2g(o.4J.2g,o.4J.4U)),o.6N&&(o.6N.2g||(o.6N.2g={}),L.to(x[0],o.6N.1I/3z,N.1w.2R.2g(o.6N.2g,o.6N.4U,"6N"))),N.J.3B.1x(L,0)}3t{Y $,B,M,W,4F,z="2r",F="2r",D="2r",A="2r",R=1,E=1,V={},L="2M"==o.2g.2o?(M=["2h","1V","42","1U"])[1z.3J(1z.2M()*M.1n)]:o.2g.2o;2C(-1!=o.9F.3I().1c("jG")&&b%2==0&&(u="2w"==u?"1L":"2w"),"2w"==u&&(L={2h:"1V",1V:"2h",1U:"42",42:"1U",fx:"fy",fz:"fA",fA:"fz",fy:"fx"}[L]),L){18"2h":z=D=-T.G("1T").Z,F=A=0;1l;18"1V":z=D=T.G("1T").Z,F=A=0;1l;18"1U":z=D=0,F=A=-T.G("1T").U;1l;18"42":z=D=0,F=A=T.G("1T").U;1l;18"fx":z=T.G("1T").Z,D=0,F=T.G("1T").U,A=0;1l;18"fz":z=T.G("1T").Z,D=0,F=-T.G("1T").U,A=0;1l;18"fA":z=-T.G("1T").Z,D=0,F=T.G("1T").U,A=0;1l;18"fy":z=-T.G("1T").Z,D=0,F=-T.G("1T").U,A=0}2C(j.9P=o.2g.2U||1,1==g&&1!=j.9P&&(z/=2,D/=2,F/=2,A/=2),o.2g.1C){18"hY":R=z=D=F=A=0,E=1;1l;18"qS":R=0,(E=1)==j.9P&&(D=A=0)}(o.2g.4k||o.2g.6l||o.2g.6O||1!=j.9P)&&"1M"!=o.2g.1C?T.Q({51:"4v"}):T.Q({51:"3T"}),1==g?j.$82.Q({51:"4v"}):j.$82.Q({51:"3T"}),!0===v||"1M"==o.2g.1C||!0===g?(W=T.2c(j.$82),$=T.f4().2c(j.$fw),I=X("<1A>").1X("ls-jH").2c(W)):$=T.2c(j.$fw),P=X("<1A>").1X("ls-jI").2c($),B=d[b]*o.6M.4c/3z,M=o.2g.4k||0,L=o.2g.6l||0,W=o.2g.6O||0,"2w"==u&&(M=-M,L=-L,W=-W),N.J.3B.4h(P[0],o.2g.1I/3z,{4Q:!1,2m:!1,Q:{x:-F,y:-z,3o:"5x",2W:R,27:M,3v:L,3w:W,2U:j.9P}},{2m:!1,Q:{x:0,y:0,2W:E,27:0,3v:0,3w:0,2U:1},2k:N.1w.2R.4U(o.2g.4U)},B),1==v&&(23 0===N.J.29.G.$2f||23 0!==N.J.29.G.$2f&&(-1!=N.J.29.G.$2f.1m("1K").3I().1c("c0")||N.J.29.G.$2f.U()<N.K.U||N.J.29.G.$2f.Z()<N.K.Z))&&(V.2W=0),"1M"!=o.2g.1C&&1!=g||-1!=o.9F.3I().1c("jG")||(4F=0!==M?-M:0,V.x=A,V.y=D,V.27=4F,V.2U=j.9P,V.2W=R),23 0!==I&&N.J.3B.to(I[0],o.2g.1I/3z,{2m:!1,Q:V,2k:N.1w.2R.4U(o.2g.4U)},B)}4F=b%n*i,V=1z.3J(b/n)*a,23 0!==N.J.3s.G.$2f&&(S=N.J.3s.G.$2f.G(N.1i.1d.1P),"3d"===e||"2d"===e&&(!0===v||"1M"===o.2g.1C||!0===g)?I.9g(X("<3C>").1m("1K",h).Q({U:S.1Y.U,Z:S.1Y.Z,"-5H-1r":S.1Y.1r,1r:S.1Y.1r,"-ms-3E":"5g("+(S.1Y.x-4F)+"px) 5h("+(S.1Y.y-V)+"px)"+S.1Y.8B+S.1Y.8D,"-5H-3E":"5g("+(S.1Y.x-4F)+"px) 5h("+(S.1Y.y-V)+"px)"+S.1Y.8B+S.1Y.8D,3E:"5g("+(S.1Y.x-4F)+"px) 5h("+(S.1Y.y-V)+"px)"+S.1Y.8B+S.1Y.8D})):0===j.$82.3P().1n&&j.$82.Q("2f-47",N.J.3s.G.3a).9g(X("<3C>").1m("1K",h).Q({U:S.1Y.U,Z:S.1Y.Z,"-5H-1r":S.1Y.1r,1r:S.1Y.1r,"-ms-3E":"5g("+S.1Y.x+"px) 5h("+S.1Y.y+"px)"+S.1Y.8B+S.1Y.8D,"-5H-3E":"5g("+S.1Y.x+"px) 5h("+S.1Y.y+"px)"+S.1Y.8B+S.1Y.8D,3E:"5g("+S.1Y.x+"px) 5h("+S.1Y.y+"px)"+S.1Y.8B+S.1Y.8D}))),"4Z"===N.J.3s.G.3a||N.J.3s.G.$2n.1n||("3d"===e||"2d"===e&&(!0===v||"1M"===o.2g.1C||!0===g)?I.Q("2f-47",N.J.3s.G.3a):0===j.$82.3P().1n&&j.$82.Q("2f-47",N.J.3s.G.3a)),23 0!==N.J.29.G.$2f&&(S=(B=N.J.29.G.$2f.G(N.1i.1d.1P)).2t[f],P.9g(X("<3C>").1m("1K",m).Q({U:B.1Y.U,Z:B.1Y.Z,"-5H-1r":N.J.29.1r.3N||"3m",1r:N.J.29.1r.3N||"3m","-ms-3E":"5g("+(B.1Y.x-4F)+"px) 5h("+(B.1Y.y-V)+"px) 4k("+S.27+"8C) 2U("+S.2U+")","-5H-3E":"5g("+(B.1Y.x-4F)+"px) 5h("+(B.1Y.y-V)+"px) 4k("+S.27+"8C) 2U("+S.2U+")",3E:"5g("+(B.1Y.x-4F)+"px) 5h("+(B.1Y.y-V)+"px) 4k("+S.27+"8C) 2U("+S.2U+")"}))),"4Z"===N.J.29.G.3a||N.J.29.G.$2n.1n||P.Q("2f-47",N.J.29.G.3a)}N.J.1M.$1N.9W(N.o.gw?N.K.$64:N.K.$5W),N.J.1M.2T()},7y:q(e,t,i,a,s,r,o,n,l,d){o="qT( "+s+"px, "+r+"px, "+o+"px)";0!==n&&(o+="6l( "+n+"8C)"),0!==l&&(o+="6O( "+l+"8C)");o={U:i,Z:a,3E:o,"-ms-3E":o,"-5H-3E":o};d&&(o["3E-fB"]=d,o["-ms-3E-fB"]=d,o["-5H-3E-fB"]=d),X("<1A>").1X(e).Q(o).2c(t)}}},1a:{in:{7O:q(e){e.G(N.1i.1d.1P).1q.1S&&N.J.1a.1q.8G(e),N.1a.1p.4e(e,"at-in")},4u:q(e){N.1b.1w.eI(e),N.1a.1p.4e(e,"2y")}},1J:{ji:q(){Y s,r,o,n,e,t,i;N.J.5c&&(N.J.1G&&(s=3Z H.6L({4f:!0,jJ:!0}),n=[],e=N.1a.2J("2q, in, 3q, 2y").1x(N.1a.2J("2q, 1J, 3q, 2y")),i=N.1a.2J("2q, 1J, 8p, 2y"),t=N.1a.2J("2q, 1J, 2y"),i=X().1x(e).1x(i),i.2P(q(){Y e,t=X(j).G(N.1i.1d.1P);if(t.1t.3M&&(N.J.1G.5S(t.1t.3M),t.1t.3M.2D()),t.is.3q){r=[t.22.$1N[0]],t.22.$9l&&(r=r.fC(t.22.$9l[0])),t.21.5I&&(r=r.fC(t.21.5I));2b(Y i=0;i<r.1n;i++)n=n.fC(N.J.1G.qU(r[i],!0));2b(Y a=0;a<n.1n;a++)n[a].1I&&0!==n[a].1I()&&(o=n[a],e=o,s.1x(e,1k-e.1I()*e.3r()))}}),t.2P(q(){X(j).G(N.1i.1d.1P).55.3y=!0}),s.2D().qV(1k),N.J.1G.cV("7O",3f),N.J.1G.cV("4u",3f),N.J.1G.cV("ba",3f),N.J.1G.cV("6P",3f),N.J.1G.1R().7A()),N.J.5c.2D(),N.1o.aw&&N.J.5c.3r(1)),N.K.$64.1y(".ls-4K").Q({3o:"3m"})},7O:q(e){N.1a.1p.4e(e,"at-1J")},4u:q(e){Y t=e.G(N.1i.1d.1P);!N.K.26.9j&&t.2V.97===N.19.2q.1E||N.J.1a.3y(e,t),t.1q.1S&&N.J.1a.1q.bb(e),N.1a.1p.4e(e,"3T")}},3y:q(e,t){t.1t.3M&&(t.1t.3M.1R().7A(),2e t.1t.3M,H.3b.1p(t.22.$7R[0],t.3y.dT)),H.3b.1p(t.22.$1N[0],t.3y.dS),H.3b.1p(e[0],{"-5H-1r":"3m",1r:"3m"}),t.55.9q&&(t.3O.2M={},t.3x.2M={},N.1a.9q.G(e)),t.55.3y=!1},1s:{6j:!1,6i:q(e){Y t,i,a,s=e?"2q":"1L";N.J.9Q=s,N.J.1a.1s.6j=!1,N.J.1a.1s.jK(),N.J.1G&&(N.J.1G.4m().3r(0).6h().7A(!0),N.J.1G=3f),N.J.1G=3Z H.6L({4f:!0,7O:q(){N.2z.43("jL")&&$.4g("jL",N.2z.4p())},4u:q(){N.o.5j&&N.o.dp&&("1L"===N.1o.2o?N.J.1a.1s.fD(!0):N.J.1a.1s.cW(!0,!0))},ba:q(){N.2z.43("jM")&&$.4g("jM",N.2z.4p()),N.J.1a.1s.jN&&(N.J.1a.1s.6j=!1,N.J.1G.2D()),N.o.5j&&N.o.dp&&N.J.1a.1s.cW(!0,!1)},6P:q(e){N.2z.43("jO")&&$.4g("jO",e)},7B:["{4P}"]}),j.4w=0,j.3r=1,N.J.5c=3Z H.6L({4f:!0,jJ:!0}),t=N.1a.2J(s+", in, au"),i=N.1a.2J(s+", 1J, 8p").1x(N.1a.2J(s+", 1J, 2y, 3q")),e=N.1a.2J(s+", in, ch, au"),a=X().1x(t).1x(i).1x(e),j.cX(t,"in",N.J.1G,N.J.5c),j.cX(i,"1J",N.J.1G,N.J.5c),N.19[s].G&&-1!==N.19[s].G.1I&&N.19[s].G.1I<j.4w?(j.3r=N.19[s].G.1I/j.4w,N.24&&N.1F.1x("2H","fE.1I",[N.19[s].G.1I,j.4w])):N.J.1G.1I()>j.4w&&(j.3r=j.4w/N.J.1G.1I()),-1===N.19[s].G.1I?(N.19[s].G.1I=j.4w,N.19[N.19[s].1E].G.1I=j.4w):j.4w=N.19[s].G.1I,j.cX(e,"in",N.J.1G,N.J.5c),!0===N.J.1a.1s.6j&&N.24&&N.1F.1x("2H","fE.ie",N.o.dF?"1S":"cm");2b(Y r,o=0;o<a.1n;o++)X(a[o]).G(N.1i.1d.1P).1j.1S&&X(a[o]).G(N.1i.1d.1P).22.$7S.1m("G-ls-1j","2y");N.J.1a.1j.5f(),N.2z.43("jP")&&$.4g("jP",{fE:N.J.1G,qW:a,qX:j.4w}),N.J.28.6i(),N.J.28.4I.31&&N.J.1G.1x(N.J.28.4I.31.2D(),0),N.J.28.3L.31&&N.J.1G.1x(N.J.28.3L.31.2D(),0),N.J.28.2F.31&&N.J.1G.1x(N.J.28.2F.31.2D(),0),N.J.1G.jq(q(){N.J.1G.jQ()||N.2z.43("jR")&&!1===$.4g("jR",N.2z.4p())||(N.1w.2S(N.J.1a.1s,{7U:!0}),!N.1o.5r()&&N.1o.26.6c?N.1o.65(N.19.1L.1E):N.1o.26.ay&&N.J.28.3h())},[],j,N.19[s].G.1I),N.19.1L.G.$4K&&N.19.1L.G.$4K.Q({3o:"5x"}),(!N.o.9X||"bc"!==N.K.4X&&!N.o.gy)&&N.o.9X||!(N.K.8z&&N.K.26.ff&&N.K.26.qY)&&N.K.8z||(N.o.9Y&&N.1o.5r()&&N.J.1G.5G(0),N.J.1a.1s.2D(),N.o.5j&&"8E"===N.1e.1Z.jh&&N.J.1G.3r(1)),$.5f("5B.5Y"+B),$.7p("6d.5Y"+B+" 5B.5Y"+B+" 7X.5Y"+B),N.19[s].G.5Y&&(r=N.1a.2J(s+",in,au").1x(N.1a.2J("3q,2y")),$.on("6d.5Y"+B,q(){r.2P(q(){N.J.1a.1q.cY(X(j),X(j).G(N.1i.1d.1P))})}),$.on("5B.5Y"+B,q(){r.2P(q(){N.J.1a.1q.fF(X(j),X(j).G(N.1i.1d.1P))})}),$.on("7X.5Y"+B,q(){r.2P(q(){N.J.1a.1q.bd(X(j),X(j).G(N.1i.1d.1P))})}))},jt:q(){N.19.1L.G.51&&"3T"!==N.19.1L.G.51?(N.K.$64.1X("ls-4v"),N.K.$cj.1X("ls-4v")):(N.K.$64.3H("ls-4v"),N.K.$cj.3H("ls-4v")),j.6i()},7N:q(e,t,i,a){if("4B"==2s t)1O t;t=t.3I();Y s,r,o,n,l,d=N.1i.2p.hh,u=0;if(-1!==t.1c("*")&&(l="*"),-1!==t.1c("/")&&(l="/"),-1!==t.1c("+")&&(l="+"),-1!==t.1c("-")&&(l="-"),l)if(n=t.1D(l),s=X.4b(n[0]),o=1f(X.4b(n[1])),d[s]&&-1!==d[i][1].1c(d[s][0]))if(r="4B"==2s e.1s[s]?e.1s[s]:e.1s[s](e),a)u=o/3z;3t 2C(l){18"*":u=r*o;1l;18"/":u=r/o;1l;18"+":u=r+o/3z;1l;18"-":u=r-o/3z}3t N.24&&(d[s]||N.1F.1x("2H","98.jS",s),-1===d[i][1].1c(d[s][0])&&N.1F.1x("2H","98.jT",[s,d[s],i,d[i]])),"+"!==l&&!a||(u=o/3z);3t d[s=X.4b(t)]&&-1!==d[i][1].1c(d[s][0])?u=a?0:"4B"==2s e.1s[s]?e.1s[s]:e.1s[s](e):N.24&&(d[s]?-1===d[i][1].1c(d[s][0])&&N.1F.1x("2H","98.jT",[s,d[s],i,d[i]]):N.1F.1x("2H","98.jS",s));1O(u!=u||u<0)&&(N.24&&N.1F.1x("2H","98.qZ",[i,s,u]),u=0),u},cX:q(e,t,i,a){2b(Y s=0,r=e.1n;s<r;s++){Y o,n=X(e[s]),l=n.G(N.1i.1d.1P),d=l.22.$1N,u=l.22.$9l,p=l.22.$7R,c=l.22.$7S;if(l.55.3y&&N.J.1a.3y(n,l),n.41("ls-bg"))l.2t.6r&&i.4h(n.2E(".ls-bg-5z"),N.J.29.G.1I+N.J.29.G.bD,{2m:!1,Q:l.2t.3N},{2m:!1,Q:l.2t.to,2k:H.fG.9i},-N.J.29.G.bD),X.4C(l.1r.2X.bQ)&&X.4C(l.1r.2X.bR)||(l.1r.J.bg||(l.1r.J.bg=N.J.1a.4V.6m(l,"bg",l.1r.2X.bQ,l.1r.2X.bR)),i.to([{p:0},n[0]],N.J.29.G.1I,{p:1,2m:!1,2k:H.r0.9i,6P:N.J.1a.4V.8x,7B:["{4P}",l.1r.J.bg]},0));3t 2C(t){18"in":if(l.in.1S&&(l.2V.7k||("4B"!=2s l.in.2G&&(l.in.2G=0),l.1s.7K=l.in.2G,l.1s.70=l.1s.7K+l.in.1I),N.1B.8A(n,l.4M,l.a6),N.1B.9N(l.8X,l.5Z),N.1B.9N(l.bS,l.aj),l.4M.2u=l.2u.2p*N.1B.1H,l.2a.1S&&(l.3c.2a||(l.3c.2a=l.2a.bO,l.3c.63=!0),l.a7.2a?(l.hy.2a=N.1B.2a(n,l.a7.2a,!0),l.hz.2a=N.1B.2a(n,l.3c.2a,l.3c.63),i.4h(u[0],l.in.1I,l.hx,l.dV,l.1s.7K)):H.3b.1p(u[0],{2a:N.1B.2a(n,l.3c.2a,l.3c.63)}),N.J.1a.1s.6j=!0),X.4C(l.1r.2X.in)?X.4C(l.1r.2X.1J)||n.Q("1r",l.3c.1r):(l.1r.J.in||(l.1r.J.in=N.J.1a.4V.6m(l,"in",l.1r.2X.in,l.1r.2X.1T)),i.to([{p:0},n[0]],l.in.1I,{p:1,2m:!1,2k:l.ai.2k,6P:N.J.1a.4V.8x,7B:["{4P}",l.1r.J.in]},l.1s.7K)),i.4h(d[0],l.in.1I,l.hv,l.ai,l.1s.7K),i.4h(n[0],l.in.1I,l.hw,l.dU,l.1s.7K)),l.is.96&&((l.21.1C||l.2v.1C)&&N.J.1a.83.jU(n,l),l.21.1S&&(l.in.1S||i.to(d[0],0,X.49(!0,{},l.ai,l.1d.1N),l.1s.7L),l.21.5I=N.J.1a.83.fH(l.21.1C.1D("4F"),l.21.ns),N.1B.8A(n,l.3O,l.8g),l.3O.2u=l.2u.54*N.1B.1H,X.4C(l.8g.2M)||N.J.1a.83.bf(l,l.8g.2M,l.3O),X.4C(l.3O.2M)||N.J.1a.83.bf(l,l.3O.2M,l.3O),2e l.3O.2M,l.2V.7k||(l.1s.7L=j.7N(l,l.21.2G,"7L"),l.1s.92=l.1s.7L+(l.21.5I.1n-1)*l.21.7H+l.21.1I),i.jV(l.21.5I,l.21.1I,l.3O,l.8Y,l.21.7H,l.1s.7L,q(e){N.J.1a.in.4u(e)},[n]))),l.is.hf&&N.o.5j&&i.r1(l.1s.7M(),q(){5q(q(){2e N.2B.1Z,N.J.1a.1s.7u=0,N.1e.1Z.9R=9J},6x)}),l.1j.1S&&"2r"==l.1j.5v){N.J.1a.1j.2r();Y h=3Z H.6L({4f:!0}),m={5k:-1==l.1j.2O?-1:l.1j.2O-1,2k:8H.8I};2C(l.2V.7k&&!l.is.3q||(l.1s.ab=j.7N(l,l.1j.2G,"ab"),l.1s.hi=-1!==l.1j.2O&&l.1s.ab+l.1j.1I*l.1j.2O),l.1j.3M=h,l.1j.8J={x:0,y:-10},l.1j.8d){4S:18"3L":m.cZ={d0:1.5,2X:[{x:10,y:0},{x:0,y:10},{x:-10,y:0},{x:0,y:-10}]};1l;18"d1-h":m.cZ={1C:"fI",d0:1,2X:[{x:20,y:0},{x:0,y:10},{x:-20,y:0},{x:0,y:-10}]};1l;18"d1-v":l.1j.8J={x:0,y:-20},m.cZ={1C:"fI",d0:1,2X:[{x:10,y:0},{x:0,y:20},{x:-10,y:0},{x:0,y:-20}]};1l;18"jW":l.1j.8J={x:0,y:0},m.cZ={1C:"fI",d0:1,2X:[{x:20,y:-10},{x:40,y:0},{x:20,y:10},{x:0,y:0},{x:-20,y:-10},{x:-40,y:0},{x:-20,y:10},{x:0,y:0}]};1l;18"8j-h":l.1j.8J={x:-10,y:0},m.x=10,m.2k=fG.9i,m.7J=!0,m.5k=-1==l.1j.2O?-1:2*l.1j.2O-1;1l;18"8j-v":l.1j.8J={x:0,y:-10},m.y=10,m.2k=fG.9i,m.7J=!0,m.5k=-1==l.1j.2O?-1:2*l.1j.2O-1}m.6P=q(e,t,i,a,s,r,o){H.3b.1p(i,{x:-t.x*(a/50)*1f(s),y:-t.y*(a/50)*1f(s),3v:"3d"==r?t.y/(1k/o):0,3w:"3d"==r?-t.x/(1k/o):0})},m.7B=["{4P}",l.1j.8J,c[0],l.1j.7G,l.1j.62,l.1j.1C,l.1j.27],h.to(l.1j.8J,-1==l.1j.8d.1c("8j")?l.1j.1I:l.1j.1I/2,m),i.1x(h,l.1s.ab),h.2D()}l.1t.1S&&(h=3Z H.6L({5k:l.1t.5k,91:l.1t.91,7J:l.1t.7J,4f:!0}),l.2V.7k&&!l.is.3q||(l.1s.6v=j.7N(l,l.1t.2G,"6v"),l.1s.71=-1!==l.1t.2O&&l.1s.6v+(l.1t.5k+1)*l.1t.1I+l.1t.5k*l.1t.91),l.1t.3M=h,N.1B.8A(n,l.4s,{x:l.6t.x,y:l.6t.y}),(l.4s.x&&0!==l.4s.x||l.4s.y&&0!==l.4s.y)&&(N.J.1a.1s.6j=!0),l.e0.3j=N.1w.2R.3j(l.6t.3j,n),l.e0.2u=l.2u.1t*N.1B.1H,X.4C(l.1r.2X.1t)||(l.1r.J.1t||(l.1r.J.1t=N.J.1a.4V.6m(l,"1t",X.4C(l.1r.2X.9f)?l.1r.2X.1T:l.1r.2X.9f,l.1r.2X.1t)),h.to([{p:0},n[0]],l.1t.1I,{p:1,2m:!1,2k:l.bX.2k,6P:N.J.1a.4V.8x,7B:["{4P}",l.1r.J.1t]},0)),h.4h(p[0],l.1t.1I,l.hA,l.bX,0),l.a9.2a&&(l.hB.2a=N.1B.2a(n,l.a9.2a,!0),h.to(u[0],l.1t.1I,l.e1,0),N.J.1a.1s.6j=!0),-1!==l.1t.5k&&("r2"===N.o.5L||N.1u.28.2F.$1v||N.o.5j)?(i.1x(h,l.1s.6v),h.2D()):i.r3(q(e){e.2D()},l.1s.6v,[h])),l.is.3q&&(l.1s.bI=l.1s.70,l.1s.bJ="1k%",l.2V.7k||(o=1z.48(l.1s.ac(),0),j.4w=1z.48(j.4w,o)));1l;18"1J":l.is.96&&l.2v.1S&&(l.2v.5I=N.J.1a.83.fH(l.2v.1C.1D("4F"),l.2v.ns),N.1B.8A(n,l.3x,l.8h,l.bW),l.bW.2u=l.2u.54*N.1B.1H,X.4C(l.8h.2M)||N.J.1a.83.bf(l,l.8h.2M,l.3x),X.4C(l.3x.2M)||N.J.1a.83.bf(l,l.3x.2M,l.3x),2e l.3x.2M,l.2V.7k||(l.1s.8i=j.7N(l,l.2v.2G,"8i"),l.1s.93=l.1s.8i+(l.2v.5I.1n-1)*l.2v.7H+l.2v.1I),l.2a.1S&&(23 0===l.7I.2a&&i.to(u[0],0,{4Q:!1,Q:{2a:N.1B.2a(n,l.2a.48)}},l.1s.8i),N.J.1a.1s.6j=!0),i.jV(l.2v.5I,l.2v.1I,l.bW,l.3x,l.2v.7H,l.1s.8i)),N.1B.8A(n,l.4r,l.a8,l.dX),N.1B.9N(l.bT,l.al),N.1B.9N(l.8Z,l.61),l.dX.2u=l.2u.2p*N.1B.1H,"ag"!==l.1J.2G?(l.2V.7k&&!l.is.3q||(l.is.3q?(l.1s.bI=0,l.1s.5w=j.7N(l,l.1J.2G,"5w",!0),l.1s.bJ=l.1s.5w):l.1s.5w=1z.48(j.7N(l,l.1J.2G,"5w"),l.1s.70),l.1s.94=l.1s.5w+l.1J.1I),l.2a.1S&&(23 0===l.7I.2a?i.to(u[0],0,{4Q:!1,Q:{2a:N.1B.2a(n,l.2a.48)}},l.1s.5w):(l.dZ.2a=N.1B.2a(n,l.7I.2a,!0),i.to(u[0],l.1J.1I,l.bV,l.1s.5w)),N.J.1a.1s.6j=!0),X.4C(l.1r.2X.1J)||(l.1r.J.1J||(l.1r.J.1J=N.J.1a.4V.6m(l,"1J",X.4C(l.1r.2X.bP)?X.4C(l.1r.2X.9f)?l.1r.2X.1T:l.1r.2X.9f:l.1r.2X.bP,l.1r.2X.1J)),i.to([{p:0},n[0]],l.1J.1I,{p:1,2m:!1,2k:l.ak.2k,6P:N.J.1a.4V.8x,7B:["{4P}",l.1r.J.1J]},l.1s.5w)),i.4h(d[0],l.1J.1I,l.dW,l.ak,l.1s.5w),i.4h(n[0],l.1J.1I,l.dY,l.bU,l.1s.5w),i.4h(d[0],0,l.1d.1N,l.3y.hu,l.1s.94)):(l.1s.bI=0,l.1s.bJ="1k%"),(!l.is.3q||l.is.3q&&l.2V.97===N.19.1L.1E)&&(a.4h(d[0],N.o.7C,l.dW,l.ak,0),a.4h(n[0],N.o.7C,l.dY,l.bU,0),l.2a.1S&&23 0!==l.7I.2a&&(l.dZ.2a=N.1B.2a(n,l.7I.2a,!0),a.to(u[0],N.o.7C,l.bV,0))),o=1z.48(l.1s.dQ(),0),j.4w=1z.48(j.4w,o),l.2V.7k=!0}}},2D:q(){N.J.1G&&(N.J.1G.2D(),N.1w.2S(j,{fc:!0,6c:!0,aC:!1,4f:!1}))},4m:q(e){e=X.5U(e)?e:.75;N.J.1G&&(H.3b.to(N.J.1G,e,{5G:0}),N.1w.2S(j,{4f:!0,aC:!1}))},8q:q(){N.J.1G&&(H.3b.to(N.J.1G,.75,{5G:1}),N.1w.2S(j,{4f:!1,aC:!1}))},3h:q(){N.J.1G&&N.J.1G.3h()},fD:q(e){e||(j.2D(),j.fJ()),N.J.1G&&(N.K.8r()||0!==N.J.1G.4w()&&1!==N.J.1G.3r()||"8K"!==N.1e.1Z.2o||(N.1o.2o="1L",(e=N.1o.3V.9t).1c(N.19.2q.1E)===e.1n-1?(N.K.4X="d2",N.1e.1Z.8G(),N.1o.2o="2w"):N.2i.1L()))},cW:q(e,t){e&&!t||(j.3h(),j.fJ()),N.J.1G&&(N.K.8r()||0!==N.J.1G.4w()&&0!==N.J.1G.3r()||"8E"!==N.1e.1Z.2o||(N.1o.2o="2w",0===N.1o.3V.9t.1c(N.19.2q.1E)?(N.K.4X="fK",N.1e.1Z.8G(),N.1o.2o="1L"):N.2i.2w()))},fJ:q(){N.J.1G&&H.3b.to(N.J.1G,.25,{5G:1+j.7u})},jK:q(){j.26={fc:!1,6c:!1,4f:!1,aC:!1,7U:!1}}},1q:{8G:q(e){e.1m("G-ls-fL","1")},bb:q(e){e.1m("G-ls-fL","0")},1p:q(e,t){t.22.$1N.on("6d."+B,q(){N.J.1a.1q.cY(e,t)}),t.22.$1N.on("5B."+B,q(){N.J.1a.1q.fF(e,t)}),t.22.$1N.on("7X."+B,q(){N.J.1a.1q.bd(e,t)})},jX:q(e,t){Y i,a,s;t.1q.3M=3Z H.6L({4f:!0,ba:q(e,t){t.1q.3M.r4&&(t.1q.3M.1R().7A(),2e t.1q.3M)},r5:[e,t]}),N.1B.8A(e,t.4t,t.4O,t.e3),N.1B.9N(t.4t,t.4O),t.e3.2u=t.2u.1q*N.1B.1H,t.1q.d3=H.3b.4h(e[0],t.1q.6Z,t.e2,t.e4),t.1q.3M.1x(t.1q.d3,0),e.1L().is(".ls-2p-4K")?(i=e.1L(),a=X.49(!0,{},t.e2,{Q:{2W:1,47:"4Z",2f:"4Z",z:0}}),s=X.49(!0,{},t.e4,{Q:{2W:1,47:"4Z",2f:"4Z",z:0}}),t.1q.8L=H.3b.4h(i[0],t.1q.6Z,a,s),t.1q.3M.1x(t.1q.8L,0)):t.1q.8L=3f,t.1q.dM&&(s={7P:ah},N.4T.as&&(s.3E="i9(r6)"),t.1q.3M.to(t.22.$7T[0],t.1q.6Z,{2m:!1,Q:s},0)),t.1q.jY=t.1q.6Z/t.1q.aa==1?1:t.1q.6Z/t.1q.aa,j.fM(e,t)},cY:q(e,t){"1"===e.1m("G-ls-fL")&&(e.1m("G-ls-fN",1),t.22.$1N.7p("7X."+B),t.1q.3M?(t.1q.3M.2D().1R().3r(0),j.fM(e,t)):j.jX(e,t))},fF:q(e,t){t.1q.3M&&(t.1q.3M.1R().3r(1),j.jZ(e,t)),e.5T("G-ls-fN")},bd:q(e,t){e.1m("G-ls-fN")||j.cY(e,t)},fM:q(e,t){t.1q.d3.d4({2k:t.1q.5P}),t.1q.8L&&t.1q.8L.d4({2k:t.1q.5P}),t.1q.3M.2D().5G(1)},jZ:q(e,t){t.1q.d3.d4({2k:t.1q.6u}),t.1q.8L&&t.1q.8L.d4({2k:t.1q.6u}),t.1q.3M.3h().5G(t.1q.jY)}},1j:{d5:{1C:"2d",5v:"3u",8d:"3L",2o:"fO",1I:5,2O:-1,2G:"dO",x:!0,y:!0,27:10,7G:10,a4:1.5,bC:1.2,3j:"50% 50% 0",2u:6x},1i:{a2:5,fP:"8a",bh:40,84:10},26:{1S:!1,9E:!1},2Y:{3u:{$2d:X(),$3d:X()},1Z:{$2d:X(),$3d:X()},2r:{$2d:X(),$3d:X()}},1d:q(){Y t=j;$.on("6d."+B,q(){(t.2Y.3u.$2d.1n||t.2Y.3u.$3d.1n)&&t.8M()}),$.on("7X."+B,q(e){(t.2Y.3u.$2d.1n||t.2Y.3u.$3d.1n)&&t.bd(e)}),$.on("5B."+B,q(){(t.2Y.3u.$2d.1n||t.2Y.3u.$3d.1n)&&t.3y()}),N.1e.6g&&N.1e.k0&&(X(1g).on("r7."+B,q(){t.26.9E&&t.k1(5v)}),X(1g).on("fQ."+B,q(){t.8M()})),X(1g).on("1Z.1j"+B+" 81.1j"+B,q(){(t.2Y.1Z.$2d.1n||t.2Y.1Z.$3d.1n)&&t.1Z()}),t.1i.a2*=N.o.gL?-1:1},hS:q(e,t,i,a){2C(j.26.1S||(N.1w.2S(j,{1S:!0}),j.1d()),X.49(!0,t,j.d5,N.19[a].1j,i.1j),i.2u.1j?t.2u=i.2u.1j:i.2u.1j=t.2u,t.5v.3Y(/(3u|1Z|2r)/)||(t.5v="3u"),t.8d.3Y(/(3L|d1-h|d1-v|jW|8j-h|8j-v)/)||(t.8d="3L"),t.2o.3Y(/(fO|r8)/)||(t.2o="fO"),t.1C.3Y(/(2d,3d)/)&&(t.1C="2d"),(i.1j=t).dI){18"3m":t.x=!1,t.y=!1;1l;18"x":t.y=!1;1l;18"y":t.x=!1}j.2Y[t.5v]["$"+t.1C]=j.2Y[t.5v]["$"+t.1C].1x(e)},fR:q(){Y e,t,i,a=N.1u.4y.$1v,s=(N.19.2q&&N.19.2q.1j?N.19.2q:N.19.1L).1E;N.19[s].G.$2f&&N.19[s].G.$2f.G(N.1i.1d.1P).1j.1S&&N.19[s].G.51&&"3T"!==N.19[s].G.51&&(e="50% -"+.25*N.K.Z+"px 0",i=23 0!==(t=N.19[s].G.$2f.G(N.1i.1d.1P).1j).27?2*t.27:23 0!==N.19[s].1j.27?2*N.19[s].1j.27:2*j.d5.27,a.G(N.1i.1d.1P,{1j:X.49(!0,{},j.d5,N.19[s].1j,{62:t.62,3j:e,27:i})}),a.1m("G-ls-1j","2y"),H.3b.1p(a[0],{3j:e,2u:a.G(N.1i.1d.1P).1j.2u*N.1B.1H}),"3d"===N.19[s].1j.1C||"3d"===t.1C?j.2Y.3u.$3d=j.2Y.3u.$3d.1x(a):j.2Y.3u.$2d=j.2Y.3u.$2d.1x(a)),j.d6=!0},k2:q(){Y e=N.1u.4y.$1v;j.2Y.3u.$2d=j.2Y.3u.$2d.3U(e),j.2Y.3u.$3d=j.2Y.3u.$3d.3U(e),e.1m("G-ls-1j","cm"),j.d6=!1},8M:q(){X().1x(j.2Y.3u.$2d).1x(j.2Y.3u.$3d).1x(j.2Y.1Z.$2d).1x(j.2Y.1Z.$3d).1x(j.2Y.2r.$2d).1x(j.2Y.2r.$3d).2P(q(){Y e=X(j).G(N.1i.1d.1P).1j;H.3b.1p(X(j)[0],{3j:N.1w.2R.3j(e.3j,X(j),N.K.$64),2u:e.2u*N.1B.1H})}),j.9S=!0},k1:q(e){Y t,i;j.9S?(e=0===(t=1g.r9)?(i=5*-1f(e.fS)*j.1i.84*N.1B.1H,5*(j.1i.bh-1f(e.fT))*j.1i.84*N.1B.1H):90===t?(i=5*-1f(e.fT)*j.1i.84*N.1B.1H,5*(1f(e.fS)+j.1i.bh)*j.1i.84*N.1B.1H):(i=5*1f(e.fT)*j.1i.84*N.1B.1H,5*(j.1i.bh-1f(e.fS))*j.1i.84*N.1B.1H),j.d7(i,e,"3u"),j.d8(i,e,"3u")):j.8M(),N.K.26.8s||j.d6||!N.1u.4y.$1v||j.fR()},5f:q(){X(1g).5f("1Z.1j"+B),X(1g).5f("81.1j"+B)},2r:q(){j.9S||j.8M()},1Z:q(){Y e=(("2h"===j.1i.fP?N.1e.5t:N.1e.5t+(N.1e.4d-N.K.Z)/2)-N.K.4l)*N.1B.1H*j.1i.a2;N.K.26.7m&&(e=0),j.9S||j.8M(),j.d7(0,e,"1Z"),j.d8(0,e,"1Z")},bd:q(e){Y t,i;j.9S?(N.K.26.8s||j.d6||!N.1u.4y.$1v||j.fR(),t=N.K.bi+N.K.U/2,i=N.K.4l+N.K.Z/2,t=e.f2-t,i=e.ra-i,j.d7(t,i,"3u"),j.d8(t,i,"3u")):j.8M()},d7:q(s,r,e){j.2Y[e].$2d.2P(q(){Y e,t,i,a=X(j);"2y"===a.1m("G-ls-1j")&&(t=(e=a.G(N.1i.1d.1P).1j).x?-s*(e.7G/d9)*1f(e.62):0,i=e.y?-r*(e.7G/d9)*1f(e.62):0,H.3b.to(a[0],e.a4,{x:t,y:i}))})},d8:q(o,n,e){j.2Y[e].$3d.2P(q(){Y e,t,i,a,s,r=X(j);"2y"===r.1m("G-ls-1j")&&(a=(e=r.G(N.1i.1d.1P).1j).x?(i=-o/(k3/e.27),-o*(e.7G/d9)*1f(e.62)):i=0,s=e.y?(t=n/(k3/e.27),-n*(e.7G/d9)*1f(e.62)):t=0,H.3b.to(r[0],e.a4,{3v:t,3w:i,x:a,y:s}))})},3y:q(){X().1x(j.2Y.3u.$2d).1x(j.2Y.3u.$3d).2P(q(){Y e=X(j);"2y"===e.1m("G-ls-1j")?H.3b.to(e[0],X(j).G(N.1i.1d.1P).1j.bC,{x:0,y:0,3v:0,3w:0}):H.3b.1p(e[0],{x:0,y:0,3v:0,3w:0})}),N.1u.4y.$1v&&j.k2(),j.9S=!1}},4V:{6m:q(e,t,i,a){Y s,r=3Z N.1i.2p.2x.1r,o={};2b(s in r)2C(t){18"in":o[s]=[r[s],r[s]],o[s][0]=(i.6k(s)?i:a.6k(s)?a:r)[s],o[s][1]=(a.6k(s)?a:r)[s],e.1r.2X.9f[s]=o[s][1];1l;18"1q":18"1t":18"1J":o[s]=[],o[s][0]=(i.6k(s)?i:r)[s],o[s][1]=(a.6k(s)?a:i.6k(s)&&i[s]!==r[s]?i:r)[s],"1t"===t&&!0!==e.1t.7J&&-1!==e.1t.2O&&(e.1r.2X.bP[s]=o[s][1]);1l;18"bg":o[s]=[r[s],r[s]],i.6k(s)&&(o[s][0]=i[s]),a.6k(s)&&(o[s][1]=a[s])}1O o},2R:q(e){2b(Y t,i,a={},s=/(bF|hm|hn|ho|bG-4k|hp|hq|hr)/i,r=0,o=(e=e.1D(" ")).1n;r<o;r++)(t=(i=e[r].1D("("))[0]).3Y(s)&&(i=1f(i[1]),a[t]=i);1O a},8x:q(e,t){Y i=1k*e.58[0].p;if("5J"==2s t){Y a,s="";2b(a in t)if("5J"==2s t[a]&&2===t[a].1n)2C(a){18"bF":s+=" bF( "+(t[a][0]<t[a][1]?t[a][0]+1z.3X(t[a][0]-t[a][1])/1k*i:t[a][0]-1z.3X(t[a][0]-t[a][1])/1k*i)+"px )";1l;18"bG-4k":s+=" bG-4k( "+(t[a][0]<t[a][1]?t[a][0]+1z.3X(t[a][0]-t[a][1])/1k*i:t[a][0]-1z.3X(t[a][0]-t[a][1])/1k*i)+"8C )";1l;4S:s+=" "+a+"( "+(t[a][0]<t[a][1]?t[a][0]+1z.3X(t[a][0]-t[a][1])/1k*i:t[a][0]-1z.3X(t[a][0]-t[a][1])/1k*i)+"% )"}H.3b.1p(e.58,{"-5H-1r":s,1r:s})}}},83:{fH:q(e,t){Y i=t;if("rb"==e[1])i=t.fU(0).3h();3t if("rc"==e[1])i=t.fU(0).rd(q(){1O.5-1z.2M()});3t if("8a"==e[1]){2b(Y a=1z.3J(t.1n/2),i=[t[a]],s=1;s<=a;s++)i.56(t[a-s],t[a+s]);i.1n=t.1n}3t if("re"==e[1]){Y r,o=1z.3J(t.1n/2);2b(i=[t[0]],r=1;r<=o;r++)i.56(t[t.1n-r],t[r]);i.1n=t.1n}1O i},jU:q(e,t){X(".rf, .rg, .hV",e).1x(t.22.$1N).Q({3E:"3m",2W:1}).2P(q(){2e j.jl})},bf:q(e,t,i){2b(Y a in t){2b(Y s=[],r=0,o=e.21.5I.1n;r<o;r++)s[r]=N.1w.2R.ek(t[a],a);2e i[a],i.6w[a]=s}t=3f}}},1b:{1i:{4c:6x,5D:6x,5V:bt},jp:q(e,t){Y i,a,s,r;N.19.2q.1E&&N.19.2q.G.$2n.1n&&(r=(i=N.19.2q.G.$2n).G(N.1i.1d.1P).22.$9k,t&&(i.G(N.1i.1d.1P).1h.fq=!0,r.5V(N.J.1b.1i.5V,q(){i.5f("aM"),i.G(N.1i.1d.1P).1h.fq=!1}))),N.19.1L.G.$2n.1n&&(s=(a=N.19.1L.G.$2n).G(N.1i.1d.1P).22.$9k,r=a.G(N.1i.1d.1P).22.$c7,N.1e.6g&&($.41("ls-1e-is-6E")&&r.41("ls-3K-on-6E")||$.41("ls-1e-is-6F")&&r.41("ls-3K-on-6F"))||5q(q(){a.5f("cz")},e?50:0),e||t?s.5D(N.J.1b.1i.5V):s.Q({3o:"5x"}),a.G(N.1i.1d.1P).1h.fr=!0)}},28:{1i:{k4:.35,k5:.3},6i:q(e){j.9Q=e||"1L",j.3y(),N.1u.28.4I.$1v&&j.4I.6m(),N.1u.28.3L.$1v&&j.3L.6m(),N.1u.28.2F.$1v&&j.2F.6m()},3h:q(){Y e;N.19.2q&&N.19.2q.G&&N.J.1G&&(e=N.J.1G.3r(),e=N.19.2q.G.1I*e/j.1i.k5,N.1u.28.4I.$1v&&j.4I.31&&(N.J.1G.5S(N.J.28.4I.31),j.4I.31.3h().5G(e)),N.1u.28.3L.$1v&&j.3L.31&&(N.J.1G.5S(N.J.28.3L.31),j.3L.31.3h().5G(e)),N.1u.28.2F.$1v&&j.2F.31&&(N.J.1G.5S(N.J.28.2F.31),j.2F.31.3h().5G(e)))},3y:q(){N.1u.28.4I.$1v&&j.4I.31&&j.4I.3y(),N.1u.28.3L.$1v&&j.3L.31&&j.3L.3y(),N.1u.28.2F.$1v&&j.2F.31&&j.2F.3y()},4I:{3y:q(){j.31&&(j.31.6h(),j.31=!1)},6m:q(){j.31=H.3b.4h(N.1u.28.4I.$1v[0],N.19[N.J.9Q].G.1I,{2m:!1,4f:!0,Q:{U:0}},{2m:!1,Q:{},2k:H.8H.8I,ba:q(){N.J.28.4I.31=!1},4u:q(e){e.58.1T.U="1k%",e.58.1T.U="fb( 1k% - "+N.K.4a.b4+"px )"},fV:["{4P}"],6P:q(e){e.58.1T.U=1z.bO(N.K.U,N.K.U*e.3r())+"px"},7B:["{4P}"]})}},3L:{3y:q(){j.31&&(N.1u.28.3L.$1v.1R(!0,!0),j.31.6h(),j.31=!1)},6m:q(){Y e=N.1u.28.3L.$1v.1y(".ls-ct-42 .ls-ct-4k")[0],t=N.1u.28.3L.$1v.1y(".ls-ct-1U .ls-ct-4k")[0],i=N.19[N.J.9Q].G.1I;j.31=3Z H.6L({4f:!0}).4h(N.1u.28.3L.$1v[0],N.J.28.1i.k4,{2m:!1,4Q:!0,Q:{2W:0,3o:"5x"}},{2m:!1,Q:{2W:N.1u.28.3L.$1v.G("3c").2W}}).4h(e,i/2,{2m:!1,Q:{27:0}},{2m:!1,Q:{27:cU},2k:H.8H.8I},0).4h(t,i/2,{2m:!1,Q:{27:0}},{2m:!1,Q:{27:cU},2k:H.8H.8I},i/2)}},2F:{3y:q(){j.31&&(j.31.6h(),j.31=!1)},6m:q(){Y i=j;i.31=3Z H.6L({4f:!0,ba:q(){N.J.28.2F.31=!1}}),X.2P(N.1u.28.2F.$7Z,q(t,e){i.31.1x(H.3b.4h(N.1u.28.2F.$7Z[t][0],N.19[N.J.9Q].G.1I,{2m:!1,Q:{1U:0}},{2m:!1,Q:{},2k:H.8H.8I,4u:q(e){e.58.1T.1U="fb( 1k% - "+N.1u.28.2F.80[t]+"px )"},fV:["{4P}"],6P:q(e){e.58.1T.1U=(N.1u.28.2F.aY[t]-N.1u.28.2F.80[t])*e.3r()+"px"},7B:["{4P}"]}),0),i.31.1x(H.3b.4h(N.1u.28.2F.$f9[t][0],N.19[N.J.9Q].G.1I,{2m:!1,Q:{U:0}},{2m:!1,Q:{},2k:H.8H.8I,4u:q(e){e.58.1T.U="1k%"},fV:["{4P}"],6P:q(e){e.58.1T.U=N.1u.28.2F.fa[t]*e.3r()+"px"},7B:["{4P}"]}),0)})}}}},N.2Q={4o:q(){Y e,a;N.o.2Q&&0!==N.o.2Q.1n?(e=N.o.2Q[0],a="5J"==2s e?e.fW:e,1g.2L.2Q[a]?(N.2Q.1d(a,e,!0),N.2Q.4o()):N.4T.fX||"5J"!=2s e?(N.4T.fX?1g.3W&&(3W.5l(N.1i.K.8b,"rh 4o 2Q on k6:// ri."),3W.7r("rj rk 68 5R fY rl.")):1g.3W&&(3W.5l(N.1i.K.8b,"fZ fY k7 rm!"),3W.7r(\'fZ "\'+a+\'" g0 g1 rn in K 1d 2A, ro 68 c2 fY k7 3U rp on c4.\')),N.o.2Q.da(0,1),N.2Q.4o()):-1===1g.2L.bj.1c(a)?-1===1g.2L.g2.1c(a)&&-1===1g.2L.db.1c(a)?(1g.2L.bj.56(a),X.rq({6b:-1===e.js.1c("eW://")&&-1===e.js.1c("7n://")?(1g.2L.bk||1g.2L.g3+"/../2Q/")+e.js:e.js,rr:"9C",j4:q(){N.2Q.1d(e.fW,e,!0),1g.2L.g2.56(a)},5l:q(e,t,i){1g.3W&&(3W.5l(N.1i.K.8b,a,"5R g0 3U g1 eO!"),3W.5l("rs 5l 7r:",i)),1g.2L.db.56(a)},rt:q(){1g.2L.bj.da(1g.2L.bj.1c(a),1),N.2Q.4o()}})):(N[a]||-1!==1g.2L.db.1c(a)?N.o.2Q.da(0,1):N.2Q.1d(a,e),N.2Q.4o()):N.2Q.k8(a)):N.K.6e.9T()},1d:q(e,t,i){N.6n[e]=3Z 1g.2L.2Q[e](N,$,B,t.2V),1g.2L.go(N.6n[e].k9.ka,N.5R.7W)?(t.Q&&i&&X(\'<4K eK="iN" 5n="\'+(-1===t.Q.1c("eW://")&&-1===t.Q.1c("7n://")?(1g.2L.bk||1g.2L.g3+"/../2Q/")+t.Q:t.Q)+\'">\').2c("aJ"),N.6n[e].1d&&N.6n[e].1d()):1g.3W&&3W.5l(N.1i.K.8b,e,"5R g0 3U g1 eO! ru dH 7W:",N.6n[e].k9.ka,"(rv rw:",N.5R.7W+")"),N.o.2Q.da(0,1)},k8:q(e){N.4x.g4=aK(q(){-1===1g.2L.g2.1c(e)&&-1===1g.2L.db.1c(e)||-1!==1g.2L.bj.1c(e)||(aL(N.4x.g4),2e N.4x.g4,N.2Q.4o())},1k)}},N.K={cO:!0,4R:[],26:{aB:!1,9j:!1,8s:!1},5r:!1,8r:q(){1O j.26.aB||j.26.9j||j.26.8s},4o:q(){if(!2I.3G.8k(P))1O!1;N.2z.43("kb")&&$.4g("kb"),N.K.1p.dc()},1p:{dc:q(){Y e;N.dh=$[0].rx,N.6o=N.1w.2R.2x(N.1w.2R.kc(i)),N.85={},N.o=X.49(!0,{},N.1i.1d.2A,N.6o),N.o.7C/=3z,N.o.7C=0<N.o.7C?N.o.7C:.75,N.o.bs/=3z,1g.3W&&!0!==N.o.g5&&!0!==1g.2L.g5&&(1g.2L.g5=!0,t=1g.3W.7r?"7r":"5C",e=1g.9U&&1g.9U.v?" | ry fZ: "+1g.9U.v:"",3W[t]("dH 9T | rz: "+N.5R.7W+"-"+N.5R.kd+e),3W[t]("rA rB eY rC @ 7n://5X.rD.5p/"));Y t={fW:"1F",js:"1F/5X.1F.js",Q:"1F/5X.1F.Q"};-1!==2I.6A.7Q.1c("1F")&&1g.3W&&(-1!==2I.6A.7Q.1c("6b=")&&(1g.2L.bk=2I.6A.7Q.1D("6b=")[1].1D("&")[0],t.js=1g.2L.bk+"1F/5X.1F.js",t.Q=1g.2L.bk+"1F/5X.1F.Q"),"5J"==2s N.o.2Q?N.o.2Q.56(t):N.o.2Q=[t]),(1g.2L.ke||1g.2L.kf)&&(1g.2L.g3=(1g.2L.ke||1g.2L.kf).1K.2Z(/\\\\/g,"/").2Z(/\\/[^\\/]*$/,"")),"5J"==2s N.o.2Q?N.2Q.4o():N.K.6e.9T()},ej:q(){Y e,t,i,a,s,r,o,n,l,d,u,p,c,h,m,f,g,v,y=N.K,b=$.74(),S=P.1T,w=1g.kg(P,3f),x=1f(P.rE),T=1f(P.rF),C=1f(b.U()),k=1f(b.Z()),I=N.o.bp,O=N.o.gt,L=N.o.1C.3I();2C(N.24&&N.1F.1x("9u","3A.1T"),N.o.U?e=-1==N.o.U.1c("%")?1f(N.o.U):N.o.U:S.U?e=-1==S.U.1c("%")?1f(S.U):S.U:0<I?(e=I,N.24&&N.1F.1x("2H","3A.rG",I)):(e=x,N.24&&N.1F.1x("2H","3A.rH",x)),i=e,N.o.Z?t=-1==N.o.Z.1c("%")?1f(N.o.Z):N.o.Z:S.Z?t=-1==S.Z.1c("%")?1f(S.Z):S.Z:0<O?(t=O,N.24&&N.1F.1x("2H","3A.rI",O)):(t=T,N.24&&N.1F.1x("2H","3A.rJ",k)),a=t,s=""!==S.4E?-1===S.4E.1c("%")?1f(S.4E):S.4E:0,23 0===N.6o.1C&&(0<I&&0<O||"1k%"===e&&"1k%"===t?L="6a":I<=0&&O<=0&&(N.o.6W<=0||0<N.o.6W&&N.o.dd)?L=23 0!==N.o.1Y&&!1===N.o.1Y?"fo":"1Y":0<N.o.6W&&(L="6K")),L){18"6K":-1!==e.1c("%")&&(N.24&&N.1F.1x("2H","3A.kh",[L,e,x]),e=x),I<=0&&(I=e,N.24&&N.1F.1x("2H","3A.ki",[L,e])),N.o.6W<=0&&(N.o.6W=I,N.24&&N.1F.1x("2H","3A.6K",I)),-1!==t.1c("%")&&(o=k/(1k/1f(t)),N.24&&N.1F.1x("2H","3A.rK",[L,t,o]),t=o),O<=0&&(O=t);1l;18"6a":-1!==e.1c("%")&&(r=0<I?I:C,N.24&&N.1F.1x("2H","3A.6a",[L,e,r,C,I]),e=r),I<=0&&(I=e,N.24&&N.1F.1x("2H","3A.ki",[L,e])),-1!==t.1c("%")&&(o=0<O?O:X(1g).Z()/(1k/1f(t)),N.24&&N.1F.1x("2H","3A.rL",[L,t,o,X(1g).Z(),O]),t=o),O<=0&&(O=t,N.24&&N.1F.1x("2H","3A.rM",[L,t]));1l;18"fo":1l;4S:N.6o.1C=N.o.1C=L="1Y",(N.o.6W=-1)!==e.1c("%")&&(e=x,N.24&&N.1F.1x("2H","3A.kh",[L,e,x])),-1!==t.1c("%")&&(e=T,N.24&&N.1F.1x("2H","3A.1Y",[L,t,T])),N.24&&0<I&&N.1F.1x("2H","3A.rN",[L,I]),N.24&&0<O&&N.1F.1x("2H","3A.rO",[L,O])}$.1X("ls-4W ls-"+L),$.74().1X("ls-2o-rP"),N.o.gr&&N.o.dn&&("6K"===L||"6a"===L&&"fk"!==N.o.87)&&$.kj(":3U(3G, 5m)").2P(q(){X(j).1X("ls-51-4v")}),N.6o.8P||"1Y"!==L||!N.6o.6k("dd")||N.6o.dd||(N.o.8P="2r",N.24&&N.1F.1x("2H","3A.rQ",L)),N.o.8P=N.o.8P.2Z("1k% 1k%","fp"),n=0<I?I:e,l=0<O?O:t,(d="2r"===(v=P.1T.4n)?"2r":""===v?1f(w.bl("7d-1U")):1f(P.1T.4n))===(u="2r"===(g=P.1T.9M)?"2r":""===g?1f(w.bl("7d-42")):1f(P.1T.9M))&&(""===v&&""===g&&(p=d,u=d="2r"),$.Q({4n:"2r",9M:"2r"})),c=""!==S.79?1f(S.79):1f($.Q("4D-1U")),m=""!==S.7a?1f(S.7a):1f($.Q("4D-42")),h=""!==S.7b?1f(S.7b):1f($.Q("4D-2h")),f=""!==S.7c?1f(S.7c):1f($.Q("4D-1V")),b=""!==S.7e?1f(S.7e):1f($.Q("7f-1U-U")),v=""!==S.7g?1f(S.7g):1f($.Q("7f-42-U")),g=""!==S.7h?1f(S.7h):1f($.Q("7f-2h-U")),S=""!==S.7i?1f(S.7i):1f($.Q("7f-1V-U")),y.4a={1C:L,U:e,Z:t,am:i,bY:a,9m:e/1k,9n:t/1k,b5:I,fm:O,1H:n/l,4E:s,4n:d,9M:u,79:c,7b:h,7a:m,7c:f,7e:b,7h:g,7g:v,7i:S,b4:c+m+b+v,b6:h+f+g+S},N.24&&(N.1F.1x("5C","3A.1T",[e,t,i,a,I,O,1f(n/l*1k)/1k,0<s?s:23 0,[d,u]]),p&&N.1F.1x("2H","3A.7d",p)),X("5m").1m("id")?X("3G").1m("id")||X("3G").1m("id","ls-dc"):X("5m").1m("id","ls-dc"),"3q"!==w.bl("6s")&&"iJ"!==w.bl("6s")&&(P.1T.6s="dR"),N.o.do&&$[N.o.gu](N.o.do),N.K.$73=X(\'<1A 2l="ls-de-4W rR ls-3T" G-5X-di="\'+B+\'"></1A>\').1X($.1m("2l")).9W("3G"),N.K.$5W=X(\'<1A 2l="ls-cF"></1A>\'),N.K.$64=X(\'<1A 2l="ls-1a"></1A>\').2c(N.K.$5W),N.K.$i8=X(\'<1A 2l="ls-2f-rS"></1A>\').2c(N.K.$64),N.K.$cj=X(\'<1A 2l="ls-1M-rT"></1A>\').2c(N.K.$64),N.K.$5W.2c($),!0===N.o.dC&&N.1e.6g?($.1X("ls-6Q"),$.2E(".ls-de-6K-4W").1X("ls-6Q"),N.o.8Q=!1):N.K.6e.g6(),N.o.8T&&N.K.$5W.Q({i4:"6b( "+N.o.8T+" )",rU:N.o.gz,rV:N.o.gA,bA:N.o.gB,bB:N.o.gC}),N.K.$5W.Q({3a:N.o.8S}),"4Z"==N.o.8S&&!1===N.o.8T&&N.K.$5W.Q({2f:"3m 4Z"})},2A:q(){Y t,i,a,s,r;X("5m").1y(\'85[g7*="g8"]\').1n&&(N.85.kk=X("5m").1y(\'85[g7*="g8"]\').1m("g7").1D("g8")[1]),1g.9U&&1g.9U.v?N.85.g9=1g.9U.v:X("5m").1y(\'9C[1K*="5X"]\').1n&&-1!=X("5m").1y(\'9C[1K*="5X"]\').1m("1K").1c("?")&&(N.85.g9=X("5m").1y(\'9C[1K*="5X"]\').1m("1K").1D("?")[1].1D("=")[1]),"6U"!=2s b8&&(N.t=X.49({},b8)),"6U"!=2s c1&&(N.ct=X.49({},c1)),N.24&&("6U"!=2s rW?(N.1F.1x("5C","3A.hE",!1),"6U"==2s b8&&N.1F.1x("2H","3A.rX")):"6U"==2s b8&&N.1F.1x("2H","3A.rY")),"4B"==2s N.o.dy&&(N.J.1a.1j.1i.bh=N.o.dy),"4B"==2s N.o.dz&&(N.J.1a.1j.1i.84=N.o.dz),N.o.dA&&(N.J.1a.1j.1i.fP=N.o.dA),N.o.5j&&(N.o.5M=-1,N.o.9X=!0,N.o.5L=!1,N.o.8Q=!1),N.1e.6g&&(N.o.5L=!1),X(1g).on("rZ."+B,q(){2I.6A.7Q&&N.19.4j(2I.6A.7Q)}),N.o.9X&&(N.K.4X=N.1e.5t>N.K.4l-(N.1e.4d-N.K.Z)/2?"d2":"fK",N.o.5j?(t=!0,i=4*N.o.gx,N.1e.1Z.9R=9J,N.J.1a.1s.7u=0,X(2I).on("ga."+B+" 81."+B,q(e){N.1e.6g?(a=e.9K.8y[0].s0,s<a?N.1e.1Z.2o="8E":a<s&&(N.1e.1Z.2o="8K"),r=s-a,s=a):(0<e.9K.kl?N.1e.1Z.2o="8K":N.1e.1Z.2o="8E",r=e.9K.kl),0!==1z.3X(r)&&(N.1e.1Z.df?N.1e.1Z.df!==N.1e.1Z.2o&&(N.1e.1Z.df=N.1e.1Z.2o,N.J.1a.1s.7u=0):N.1e.1Z.df=N.1e.1Z.2o,"bc"===N.K.4X&&(N.1B.cP(),0<=r?N.J.1a.1s.fD():N.J.1a.1s.cW(),t&&(7V(N.2B.1Z),t=!1,N.J.1a.1s.7u=N.J.1a.1s.7u<i?N.J.1a.1s.7u+.25:i,N.2B.km=5q(q(){2e N.2B.km,t=!0,N.1e.1Z.9R=50<N.1e.1Z.9R?N.1e.1Z.9R-50:50},N.1e.1Z.9R))),N.K.6e.4X())})):X(1g).on("1Z."+B,q(){N.K.6e.4X()}),N.2B.kn=5q(q(){N.K.6e.4X()},25)),N.K.j0=!0},6z:q(){$.1m("G-2q-1M",N.19.2q.1E)}},6e:{9T:q(){N.24&&N.1F.1x("5C","3A.7r",[N.5R.7W,N.5R.ko,N.6o.dd||"n/a or K 7W is s1 6.0.0",$.1m("id"),B,X.fn.gn,N.85.g9,N.85.kk],!0),N.K.9T||(N.K.9T=!0,j.ds())},ds:q(){N.o.4q&&""!==N.o.4q&&N.o.8R&&""!==N.o.8R?N.1u.4q.4o():N.K.1d()},g6:q(){N.1e.6g&&!1!==N.o.dC||(N.1e.7s<N.o.dD||N.1e.7s>N.o.bx&&0<N.o.bx?N.K.3K():N.K.5e())},4X:q(){Y e,t;2e N.2B.kn,N.o.5j?N.1e.1Z.2o&&(t="8K"===N.1e.1Z.2o?N.1e.5t:N.K.4l-(N.1e.4d-N.K.Z)/2,(("8K"===N.1e.1Z.2o?N.K.4l-(N.1e.4d-N.K.Z)/2:N.1e.5t)<t&&("8E"===N.1e.1Z.2o&&"d2"===N.K.4X||"8K"===N.1e.1Z.2o&&"fK"===N.K.4X)||N.1e.c5<=N.1e.4d||N.K.Z<N.1e.4d&&("8E"===N.1e.1Z.2o&&N.1e.5t<=0&&N.K.4l+N.K.Z/2<N.1e.4d/2||"8K"===N.1e.1Z.2o&&N.1e.5t>=N.1e.c5-N.1e.4d&&N.K.4l+N.K.Z/2>N.1e.5t+N.1e.4d/2))&&(N.K.4X="bc",N.1B.cP(),N.1e.1Z.bb())):(e=N.1e.5t+N.1e.4d/2,t=N.K.4l+N.K.Z/2,(1z.3X(e-t)<N.1e.4d/2||N.1e.5t<N.K.4l&&N.1e.5t+N.1e.4d>N.K.4l+N.K.Z)&&(N.K.4X="bc",X(1g).7p("1Z."+B),N.24&&N.1F.1x("5C","1o.s2",!1),N.J.1G&&N.J.1a.1s.2D()))}},1d:q(){7V(N.2B.f5),7V(N.2B.f6),7V(N.2B.f7),7V(N.2B.f8),N.1e.kp(),N.K.1p.ej(),N.K.1p.2A(),N.19.1d(),N.1e.4H.1p(),N.1b.1d(),N.1u.28.1d(),N.1u.cJ.1d(),N.6f.1d(),N.1u.4y.1d(),N.2i.1d(),N.1o.1d(),N.19.1p.4i(),N.1u.2i.1d(),N.1u.1b.1d(),N.1B.K(),N.3i.1d(),X(1g).on("1B."+B,q(){N.K.6e.g6(),"bc"===N.K.4X&&N.o.5j&&N.1B.cP(),N.K.cO&&N.1B.5y()}),N.24&&(X(1g).7p(".1F"+B),X(1g).on("1B.1F"+B,q(){N.1F.1x("5C","1B.1g",N.1e.7s,!0)})),X(1g).on("fQ."+B,q(){N.1e.gb(),N.1B.5y()}),N.1e.gb(),X(1g).5f("1B."+B),X(1g).5f("fQ."+B),N.o.gR&&1g.kq&&kq.s3(),N.2z.43("kr")&&$.4g("kr",N.2z.4p()),N.1w.2S(N.K,{6J:!0}),N.K.26.ks?N.2z.8O("kt"):((-1<N.o.bx||-1<N.o.dD||"6a"==N.K.4a.1C&&"fl"==N.o.87)&&!N.4x.8N&&(N.4x.8N=aK(q(){N.1e.8N()},1k)),N.1o.65(N.19.3k.1E))},3K:q(){$.1X("ls-6Q"),$.2E(".ls-de-6K-4W").1X("ls-6Q"),$.2E(".ls-5u").1X("ls-6Q"),$.2E(".ls-5u").2w(".ls-5u-6X").1X("ls-6Q")},5e:q(){$.3H("ls-6Q"),$.2E(".ls-de-6K-4W").3H("ls-6Q"),$.2E(".ls-5u").3H("ls-6Q"),$.2E(".ls-5u").2w(".ls-5u-6X").3H("ls-6Q")}},N.1w={2R:{3j:q(e,t,i){2b(Y a=(n=X.4b(e)).1D(" "),s="",r=["s4","s5"],o=[N.K.U,N.K.Z],n=n.2Z("s6","0").2Z("s7","1k%").2Z("s8","50%").2Z("s9","50%").2Z("eb","0").2Z("ec","1k%").2Z("1U","0").2Z("42","1k%").2Z("8a","50%").2Z("sa","50%").2Z("2h","0").2Z("1V","1k%").1D(" "),l=0;l<n.1n;l++)if(-1!==a[l].1c("K")){N.J.1a.1s.6j=!0;Y d=t.G(N.1i.1d.1P).22.$1N[0].1T;s+=l<2?o[l]/(1k/1f(n[l]))-1f(d[r[l].3I()])-1f(d["7d"+r[l]])+"px ":"jE"}3t{if(l<2&&t&&i)2C(l){18 0:o=i.U();1l;18 1:o=i.Z()}-1!==n[l].1c("%")?s+=l<2&&t&&i?o/(1k/1f(n[l]))+"px ":n[l]+" ":s+=1f(n[l])*N.1B.1H+"px "}1O X.4b(s)},4U:q(e,t){1O"5F"!=2s e?e:(-1!==(e=e.3I()).1c("sb")||-1!==e.1c("8j")?i=H.8H.8I:(a=e.3Y(/(ku|dK|dL)(.+)/)[2],a=H[a.i5(0).fu()+a.fU(1)],-1!==e.1c("ku")?i=a.9i:-1!==e.1c("dL")?i=t?a.5P:a.6u:-1!==e.1c("dK")&&(i=t?a.6u:a.5P)),i);Y i,a},2g:q(e,t,i,a){Y s=X.49({},e);1O X.2P({4k:"27",6l:"3v",6O:"3w"},q(e,t){e in s&&(s[t]=s[e],2e s[e])}),"6N"===i?s.4A=s.4N=s.kv=1:s.gc!==a&&(s.4A=s.4N=s.kv=s.gc,2e s.gc),s.4c&&(s.4c="6N"===i?s.4c/3z:s.4c),23 0===t&&(t="sc"),s.2k=N.1w.2R.4U(t),s},ek:q(e,t){if(e&&-1!==e.1c("(")&&-1!==e.1c(",")&&-1!==e.1c(")")){Y i=e.1D("(")[1].1D(")")[0].1D(","),a=1;1O i[0]=2N(i[0]),i[1]=2N(i[1]),-1!==t.1c("2U")&&(a=1k,i[0]*=a,i[1]*=a),1z.3J(1z.2M()*(i[1]-i[0]+1)+i[0])/a}1O e},2x:q(e,t){if("5F"==2s e)1O N.1w.2R.gd(e,t);if("5J"!=2s e)1O e;2b(Y i in e)e[i]=N.1w.2R.gd(e[i],t);1O e},gd:q(e,t){if("8G"==e||"1S"==e||"e6"==e)1O!0;if("bb"==e||"cm"==e||"sd"==e)1O!1;if("5F"!=2s e||-1===e.1c(N.1i.1d.dj))1O t?""+1f(e)=="se"?0:1f(e):X.5U(e)?2N(e):e;2b(Y i=e.1D(N.1i.1d.dj),a=[],s=0;s<i.1n;s++)a[s]=X.5U(i[s])?2N(X.4b(i[s])):X.4b(i[s]);1O a},kc:q(i){1O X.2P({sf:"4i",sg:"5M",ia:"dr",si:"bp",sj:"bp",sk:"88"},q(e,t){e in i&&(i[t]=i[e],2e i[e])}),i}},j9:q(e){2b(Y t,i=$.kj().3U(".ls-4H-1N"),a=i.1n,s=1k,r=0;r<a;r++)if("2r"!==(t=1g.kg(i[r]).bl(e))){if(-1!==t.1c("px"))1O N.K.$cQ=X(i[r]),X(i[r]);-1!==t.1c("%")&&(s=s/1k*1f(t),N.K.$fj=s)}},fv:q(e,t,i){Y a=[];if("8F"==i)2b(Y s=0;s<e;s++)2b(Y r=0;r<t;r++)a.56(s+r*e);3t 2b(Y o=e-1;-1<o;o--)2b(Y n=t-1;-1<n;n--)a.56(o+n*e);1O a},es:q(e){2b(Y t,i,a=e.1n;0!==a;)i=1z.3J(1z.2M()*a),t=e[--a],e[a]=e[i],e[i]=t;1O e},jz:q(e){Y t,i=0;2b(t in e)e.6k(t)&&++i;1O i},bZ:q(e){1O e[0].ea||(e.G("1K")?e.G("1K"):e.1m("1K"))},hD:q(e){1O!!e.1m("f3")&&e.1m("f3")},2S:q(e,t,i){if(e&&e.26){Y a=N.1o.5r();if(i)e.26[t]=i;3t 2b(Y s in t)e.26[s]=t[s];i=N.1o.5r();e==N.1o&&(N.2z.43("kw")&&$.4g("kw",N.2z.4p()),i!=a&&(i?N.2z.43("kx")&&$.4g("kx",N.2z.4p()):N.2z.43("ky")&&$.4g("ky",N.2z.4p())))}},kz:q(){2b(Y e in N.2B)7V(N.2B[e]),2e N.2B[e];2b(Y t in N.4x)aL(N.4x[t]),2e N.4x[t]},kA:q(){N.J.1G&&(N.J.1G.4m().7A().6h(),2e N.J.1G),N.J.5c&&(N.J.5c.6h(),2e N.J.5c),N.J.3B&&(N.J.3B.4m().7A().6h(),2e N.J.3B),H.3b.sl($.1y(".ls-bg, .ls-2p, .ls-1N, .ls-jH, .ls-jI").2J())},j7:q(){N.J.1G&&(N.J.1G.4m().3r(0).7A().6h(),2e N.J.1G),N.J.5c&&(N.J.5c.4m().3r(1).7A().6h(),2e N.J.5c),$.1y(".ls-2p:3U(.ls-bg-3R)").2P(q(){Y e=X(j).G(N.1i.1d.1P);e.1t.3M&&(e.1t.3M.1R().7A(),2e e.1t.3M,H.3b.1p(e.22.$7R[0],e.3y.dT)),H.3b.1p(e.22.$1N[0],e.3y.dS)})},kB:q(){X(1g).1x("3G").1x($).1x($.1y("*")).1x("."+B).7p("."+B+" .1F"+B+" .1j"+B+" .ge"+B),$.7p()}},N.1e={$b9:X("3G").1n?X("3G"):X("5m"),6g:!!bm.9V.3Y(/(kC|kD|kE|sm|sn|so|sp|sq sr|ss|st su|sv 7)/i),k0:!!1g.sx,1Z:{8W:[32,33,34,35,36,37,38,39,40],bb:q(){1g.7o("1Z",j.3D,{86:!1,6R:!0}),1g.7o("ga",j.3D,{86:!1,6R:!0}),1g.7o("kF",j.3D,{86:!1,6R:!0}),1g.7o("81",j.3D,{86:!1,6R:!0}),1g.7o("fd",j.gf,{6R:!0})},8G:q(){1g.bn("1Z",j.3D,{86:!1,6R:!0}),1g.bn("ga",j.3D,{86:!1,6R:!0}),1g.bn("kF",j.3D,{86:!1,6R:!0}),1g.bn("81",j.3D,{86:!1,6R:!0}),1g.bn("fd",j.gf,{6R:!0})},3D:q(e){(e=e||1g.5v).3D&&e.3D(),e.sy=!1},gf:q(e){if(-1!==N.1e.1Z.8W.1c(e.sz))1O N.1e.1Z.3D(e),!1}},gg:q(){1g.bo?1g.bo().ck?1g.bo().ck():1g.bo().kG&&1g.bo().kG():2I.kH&&2I.kH.ck()},4H:{kI:q(){"6a"==N.K.4a.1C&&"fl"==N.o.87&&(N.K.jb=N.K.4l),N.1w.2S(N.K,{7m:!0}),X("3G, 5m").1X("ls-4H"),N.K.6S.gh(),$.5f("5B"),N.1e.gg()},gj:q(){N.1w.2S(N.K,{7m:!1}),N.1B.5y(),X("3G, 5m").3H("ls-4H"),N.1e.gg()},gk:q(){N.1e.4H.1v()?(N.1e.4H.gj(),2I.gl()):N.1e.4H.kI()},1p:q(){N.o.gs&&(2I.sA||2I.sB||2I.sC||2I.sD)&&($.5z(\'<1A 2l="ls-4H-1N"></1A>\'),N.K.$6S=$.2E(".ls-4H-1N"),N.K.6S=N.K.$6S[0],N.K.6S.gh=N.K.6S.gh||N.K.6S.sE||N.K.6S.sF||N.K.6S.sG,2I.gl=2I.gl||2I.sH||2I.sI||2I.sJ,X(2I).on("sK."+B+" sL."+B+" sM."+B+" sN."+B,q(){N.1e.4H.1v()||N.1e.4H.gj()}),N.K.$6S.on("sO."+B,q(){N.1e.4H.gk()}))},1v:q(){1O 2I.sP||2I.sQ||2I.sR||2I.sS}},gb:q(){j.U=kJ.U,j.Z=kJ.Z,j.7s=X(1g).U(),j.4d=X(1g).Z(),j.sT=X(2I).U(),j.c5=X(2I).Z(),j.5t=X(1g).c6(),j.gm=X(1g).kK(),j.1H=j.U/j.Z,j.8N()},8N:q(){"3m"!==$.Q("3o")&&(N.K.kL=N.K.4l||1z.5A($.76().2h),N.K.kM=N.K.bi||1z.5A($.76().1U),N.K.4l=1z.5A($.76().2h),N.K.bi=1z.5A($.76().1U),N.K.kL===N.K.4l&&N.K.kM===N.K.bi||(N.1B.5y(),N.K.6e.4X(),X(1g).5f("1Z")))},kp:q(){Y t,i=j;X(1g).on("1B.ge"+B,q(){i.7s=X(1g).U(),i.4d=X(1g).Z(),i.1H=i.U/i.Z,i.8N()}),X(1g).on("1Z.ge"+B,q(){i.5t=X(1g).c6(),i.gm=X(1g).kK(),i.8N()}),X(1g).on("81",q(e){i.5t=1g.sU,i.gm=1g.sV,1==(t=e.8y||e.9K.8y).1n&&(i.iT=t[0].fe)})}},N.2z={43:q(e,t){t=X.sW(t||P,"5E");1O!(!t||!t[e])},8O:q(e,t,i,a){if(!N.K.8r())if("4B"==2s e)0<e&&e<N.19.2O+1&&e!=N.19.2q.1E&&N.1o.65(e,!0,!0);3t 2C(e){18"b1":N.1e.b1=!0;18"sX":18"2w":N.2i.2w();1l;18"b0":N.1e.b0=!0;18"29":18"1L":N.2i.1L();1l;18"sY":18"2T":N.2i.2T()}2C(e){18"sZ":N.6n.5u&&(t&&X.5U(t)?$.4z("kN",t,q(){N.6n.5u.5E.5e()}):N.6n.5u.5E.5e());1l;18"kN":t&&X.5U(t)&&(N.19.2q.1E!==t?(N.1o.aw=!0,i&&"q"==2s i&&(N.1o.cS=i),N.1o.65(t,!0,!0)):i&&i());1l;18"t0":N.6n.5u&&N.6n.5u.5E.3K();1l;18"t1":t&&N.1a.9q.G(t,i,a);1l;18"t2":18"t3":N.1B.5y();1l;18"t4":18"6p":N.J.1G&&(N.J.1G.3r(0),N.J.1G.2D());1l;18"t5":18"3h":N.J.1G&&(N.J.1G.jQ()?N.J.1G.2D():N.J.1G.3h(),t&&(N.J.1a.1s.jN=!0));1l;18"3p":18"t6":N.1b.3p.eg();1l;18"t7":18"1R":N.2i.1R();1l;18"t8":18"4m":N.J.1G&&N.J.1G.1R(),N.J.3B&&N.J.3B.1R(),N.1b.1w.1R(!1);1l;18"t9":N.1a.2J("2y").2P(q(){N.1b.1w.eI(X(j))});18"ta":18"8q":N.J.1G&&(N.J.1G.5G()<.tb&&N.J.1a.1s.8q(),N.J.1G.2D()),N.J.3B&&N.J.3B.2D();1l;18"9y":N.1b.1w.ee();1l;18"tc":N.1b.1w.ef();1l;18"td":18"gk":N.K.5r?($.4z("8q"),N.K.5r=!1):($.4z("4m"),N.K.5r=!0);1l;18"3y":18"te":1l;18"tf":18"tg":N.J.1G&&(N.J.1G.3r(0),N.J.1G.1R()),N.1b.1w.1R(!0);1l;18"kt":18"6h":if(N.K.26.6J){if(N.1w.kz(),N.1w.kA(),N.1a.$5y.th(),N.2z.43("kO")&&$.4g("kO"),N.K.26.kP||t){if(N.K.$73.5S(),N.1u.28.2F.$5s)2b(Y s=0;s<N.1u.28.2F.$5s.1n;s++)N.1u.28.2F.$5s[s]i6 av&&N.1u.28.2F.$5s[s].5S();N.2z.43("kQ")&&$.4g("kQ");Y r=$;r.2E(".ls-4H-1N").1n?r=r.2E(".ls-4H-1N"):r.2E(".ls-5u").1n&&(r=r.2E(".ls-5u")).2w(".ls-5u-6X").5S(),r.5S()}N.1w.kB(),1g.2L.ti(B)}3t N.1w.2S(N.K,{ks:!0,kP:t||!1});N.K.4X="d2",N.1e.1Z.8G()}},4p:q(){1O{G:N,tj:N.o,di:B,58:P,K:$,26:N.K.26,8r:N.K.8r(),5v:{58:P},2z:q(e,t,i,a){$.4z(e,t,i,a)},19:{3k:{1E:N.19.3k.1E,4j:N.19.2J.4j(N.19.3k.1E),G:N.19.3k.G},2w:{1E:N.19.2w.1E,4j:N.19.2J.4j(N.19.2w.1E),G:N.19.2w.G},2q:{1E:N.19.2q.1E||N.19.3k.1E,4j:N.19.2J.4j(N.19.2q.1E),kR:N.1a.2J("2q,in"),kS:N.1a.2J("2q,1J"),1s:N.J.1G,G:N.19.2q.G},1L:{1E:N.19.1L.1E,4j:N.19.2J.4j(N.19.1L.1E),kR:N.1a.2J("1L,in"),kS:N.1a.2J("1L,1J"),G:N.19.1L.G},2O:N.19.2O},tk:N.J.3B,1o:{26:N.1o.26,3V:N.1o.3V,2o:N.1o.2o,5r:N.1o.5r()},5M:{48:N.o.5M,2q:N.1o.cn}}}},N.4T={as:!!bm.9V.3Y(/(kC|kD|kE|tl)/i)&&!bm.9V.3Y(/(tm|tp|kT)/i),tq:q(){Y e=1g.tr,t=1g.bm,i=t.ts,a=23 0!==1g.tt,s=-1<t.9V.1c("kT"),s=!!t.9V.3Y("tu")||3f!=e&&"tv tw."===i&&!1==a&&!1==s;1O s},fX:-1!==2I.6A.5n.1c("k6://"),jw:q(){2b(Y e=X("<1A>"),t=!1,i=!1,a=["tx","ty","tz","tA","tB"],s=["tC","tD","tE","tF","tG"],r=a.1n-1;0<=r;r--)t=t||23 0!==e[0].1T[a[r]];2b(Y o=s.1n-1;0<=o;o--)e.Q("3E-1T","kU-3d"),i=i||"kU-3d"==e[0].1T[s[o]];1O t&&23 0!==e[0].1T[a[4]]&&(e.1m("id","ls-tH").2c($),t=3===e[0].tI&&9===e[0].bi,e.5S()),t&&i},hZ:-1!==bm.9V.1c("tJ/5")},N.6n={},N.2B={},N.4x={},N.1F={2A:{}},N.5R={7W:"6.11.7",kd:"tK",ko:"tL. tM. tN."},N.K.4o()}}(av);',62,1848,'|||||||||||||||||||this|||||||function||||||||||||||||data|||transitions|slider||||||css||||width||||var|height|||||||||case|slides|layers|media|indexOf|init|device|parseInt|window|mediaProperties|defaults|parallax|100|break|attr|length|slideshow|set|hover|filter|timeline|loop|gui|element|functions|add|find|Math|div|resize|type|split|index|debug|_slideTimeline|ratio|duration|out|src|next|slide|wrapper|return|dataKey|mediaSettings|stop|enabled|style|left|bottom|transitionProperties|addClass|responsive|scroll||textIn|elements|void|debugMode||state|rotation|timers|nextSlide|clip|for|appendTo||delete|background|transition|top|navigation|thumbnail|ease|class|autoCSS|backgroundVideo|direction|layer|current|auto|typeof|kenBurns|transformPerspective|textOut|prev|properties|active|api|options|timeouts|switch|play|closest|slidebar|startAt|warn|document|get|player|_layerSlider|random|parseFloat|count|each|plugins|convert|setStates|start|scale|settings|opacity|values|wrappers|replace||_transition|||||||||backgroundColor|TweenMax|original||vimeo|null|youtube|reverse|yourLogo|transformOrigin|first|muted|none|nav|display|unmute|static|progress|curSlide|else|cursor|rotationX|rotationY|textOutNodesTo|reset|1e3|sliderInit|_slideTransition|img|preventDefault|transform|volume|body|removeClass|toLowerCase|floor|hide|circle|_timeline|from|textInNodesFrom|children|borderRadius|video|iframe|hidden|not|sequence|console|abs|match|new||hasClass|right|hasEvent|||styleSettings|color|max|extend|initial|trim|delay|viewportHeight|dataAttribute|paused|triggerHandler|fromTo|firstSlide|deeplink|rotate|offsetTop|pause|marginLeft|load|eventData|skin|outLayerToCSS|loopToCSS|hoverToCSS|onComplete|visible|totalDuration|intervals|shadow|layerSlider|scaleX|number|isEmptyObject|padding|maxWidth|_|html5|fullscreen|bar|animation|link|autoplay|inLayerFromCSS|scaleY|hoverShouldBeConverted|self|immediateRender|thumbnails|default|browser|easing|filters|container|positionToViewport|normal|transparent||overflow|poster|inLayerToCSS|text|should|push|image|target|click|outerWidth|outerHeight|_forceLayersOut|playing|show|trigger|translateX|translateY|controls|playByScroll|repeat|error|html|href|300|com|setTimeout|isPaused|containerElement|winScrollTop|popup|event|transitionoutstart|block|all|wrap|round|mouseleave|log|fadeIn|events|string|timeScale|webkit|nodes|object|maxRatio|pauseOnHover|cycles|skewX|skewY|easeIn|slideBackground|plugin|remove|removeAttr|isNumeric|fadeOut|innerWrapper|layerslider|globalhover|inLayerStyleShouldBeConvertedFrom||outLayerStyleShouldBeConvertedTo|level|clipShouldBeConverted|layersWrapper|changeTo|getStyle|srcset|the|marginTop|fullsize|url|running|mouseenter|check|preload|isMobile|kill|create|shouldRestart|hasOwnProperty|rotateX|createTransition|initializedPlugins|userInitOptions|replay|thumbnailNavigation|zoom|position|loopLayerShouldBeConverted|easeOut|loopstart|cycle|500|audio|attributes|location|slideIndex|allMediaLayers|fontSize|phone|tablet|change|vpcontainer|visibility|isLoaded|fullwidth|TimelineMax|tile|after|rotateY|onUpdate|forcehide|capture|fullscreenWrapper|_layerSliders|undefined|lsSliderUID|responsiveUnder|overlay|showinfo|durationIn|transitioninend|loopend|clipTo|hiddenWrapper|parent||offset|aria|label|paddingLeft|paddingRight|paddingTop|paddingBottom|margin|borderLeftWidth|border|borderRightWidth|borderTopWidth|borderBottomWidth|ceil|timelineIsCalculated|pausedByVideo|inFullscreen|https|addEventListener|off|preImages|info|viewportWidth|slideTransition|timeScaleModifier|cols|rows|before|createCuboids|box|clear|onUpdateParams|forceLayersOutDuration|transition2d|customtransition2d|customtransition3d|distance|shiftNodes|outClipShouldBeConverted|yoyo|transitioninstart|textinstart|allinend|getTiming|onStart|zIndex|hash|loopWrapper|parallaxWrapper|outerWrapper|finished|clearTimeout|version|mousemove|thumb|sliderContainerElement|sliderContainerElementWidth|touchmove|curTiles|splitType|sensitive|meta|passive|fullSizeMode|shuffleSlideshow|rememberUnmuteState|center|errorText|transition3d|path|minfontsize|minmobilefontsize|textInShouldBeConverted|textOutShouldBeConverted|textoutstart|linear|contains|substring|sizes|jump|layerInit|notstatic|resume|isBusy|animatingSlides|userDidUnmute|setVolume|globals|hoverWrapper|animate|touches|isPopup|transformProperties|kbRotation|deg|kbScale|up|forward|enable|Linear|easeNone|dummy|down|_linkTween|calculateTransformProperties|checkSliderOffset|methods|slideBGSize|autoStart|skinsPath|globalBGColor|globalBGImage|autoPauseSlideshow|jpg|keys|inLayerStyleFromCSS|textInNodesTo|outLayerStyleToCSS||repeatDelay|textinend|textoutend|transitionoutend|mediaLayer|textLayer|slideOut|layerTransition|layerFrom|layerTo|layerStyleFrom|layerStyleTo|layerShouldBeConverted|shouldBeConverted|afterIn|append|groupEnd|easeInOut|changingSlides|bgWrapper|clipWrapper|percW|percH|percentWidth|percentHeight|update|wrapped|firstStart|normalized|group|playingInCurSlide|allow|embedOptions|playMedia|medias|Date|now|script|createPlayer|ready|name|setHover|always|slidebuttons|250|originalEvent|curSrc|marginRight|styleProperties|col|scale2D|curNext|timeout|transformPropertiesCalculated|initialized|LS_Meta|userAgent|prependTo|startInViewport|pauseLayers|twoWaySlideshow|navStartStop|tnHeight|scrollModifier|transitionDuration|durationMove|backgroundvideo|inLayerShouldBeConverted|inClipShouldBeConverted|outLayerShouldBeConverted|loopClipShouldBeConverted|durationOut|autoparallaxstart|allinandloopend|tagName|easeInOutQuint|nodesTo|slidechangeonly|9999|inLayerTo|inLayerStyleShouldBeConvertedTo|outLayerTo|outLayerStyleShouldBeConvertedFrom|originalWidth|picture|slideInSequence|getAttribute|last|Scroll|isSafari|animating|notactive|jQuery|forceFastChange|pausedByHover|pausedByLastCycle|unselectable|prevNext|preloadingImages|stopped|notbg|alreadyStarted|singleMediaElement|pausedVideos|mediaEnded|embedURL|head|setInterval|clearInterval|stopBackgroundVideo|playerState|canBePlayed|originalLeft|originalRight|originalTop|originalBottom|span|hoverImage|buttonStart|buttonStop|setStartStop|containerElementWidth|touchEndX|touchNext|touchPrev|onCompleteCallback|responsiveLayers|skinWidth|layersWidth|skinHeight|getXY|layerSliderTransitions|overflowWrapper|onReverseComplete|disable|inside|mouseMove||setRandomProperties||centerDegree|offsetLeft|pluginsBeingLoaded|pluginsPath|getPropertyValue|navigator|removeEventListener|getSelection|layersContainerWidth|clipSlideTransition|cover|sliderFadeInDuration|750|navButtons|hoverBottomNav|tnContainerWidth|hideOver||timeShift|backgroundSize|backgroundPosition|durationLeave|calculatedTimeShift|showUntil|blur|hue|onSlide|staticfrom|staticto|clipFrom|layerStyleShouldBeConvertedFrom|layerStyleShouldBeConvertedTo|nodesFrom|min|afterLoop|bgFrom|bgTo|inLayerStyleToCSS|outLayerStyleFromCSS|outLayerStyleTo|outClipTo|textOutNodesFrom|loopTo|originalHeight|getURL|png|layerSliderCustomTransitions|source|loading|page|docHeight|scrollTop|bgOuterWrapper|singleLayer|hasBeenSet|150|lineHeight|letterSpacing|prop|bgvideo|nocookie|youtu|bgonly|desktop|slideBGWrapper|empty|randomized|disabled|curCycle|endedInCurSlide|allowToUnmute|customPoster|mediaElements|allowedToPlay||decodeURIComponent|checkSlideshowState|removeFromTimeline|YT|youTubeIsReady|playBackgroundVideo|shouldPlay|offertounmute|Vimeo|then|bullets|inner|ontouchstart|fadeTo|sliderElement|loadingIndicator|touchStartX|forceDirection|srcSet|lazy|shouldResize|viewport|parentWithNumericWidthValue|select|forceFastChangeCallback|back|180|eventCallback|scrollBackwards|addLayers|mouseEnter|bezier|curviness|oval|under|_tween|updateTo|defaultProperties|shadowIsChecked|animate2D|animate3D|2e3|splice|pluginsNotLoaded|global|sliderVersion|wp|lastDirection|toString|originalMarkup|uid|lsDataArraySplitChar|playmedia|pausemedia|reversereplay|fitScreenWidth|insertSelector|playByScrollSkipSlideBreaks|slideshowOnly|forceCycles|skins|navPrevNext|tnWidth|tnActiveOpacity|tnInactiveOpacity|autoPlayVideos|parallaxCenterDegree|parallaxSensitivity|parallaxCenterLayers|yourLogoLink|hideOnMobile|hideUnder|slideOnSwipe|allowRestartOnResize|useSrcset|LayerSlider|axis|fillmode|easein|easeout|alwaysOnTop|splitTypeKeys|slidestart|textoutandloopend|alloutandloopend|relative|wrapperOnSlideChange|loopWrapperOnSlideChange|inLayerStyleTo|inClipTo|outLayerFrom|outLayerFromCSS|outLayerStyleFrom|outClipToCSS|loopFromCSS|loopClipTo|hoverFrom|hoverFromCSS|hoverTo|smartLinks|true|tnAlt|slidesData|linkto|currentSrc|slidertop|sliderbottom|ariaLabel|playActiveMedia|pauseActiveMedia|multipleMediaElements|outer|wrapperData|styles|randomProperties|words|slidein|mix|blend|mode||customZIndex|shuffleArray|indexOfSlideInSequence|cycleSlideIndex|hideUnmute|imagesOfSlide|waitingForYouTube|waitingForVimeo|notplaying|videopreview|playlist|embedID|byline|portrait|title|playVideo|urlToObject|playIfAllowed|playsinline|rel|Image|loadYouTube|isYouTubeReady|loaded|preloadBackgroundVideo|lastStarted|firstState|lastState|mute|loadVimeo|isVimeoReady|http|vimeoIsReady|and|forceHide|hoverWrapperInner|switchHelper|pageX|alt|clone|skinLoad1|skinLoad2|skinLoad3|skinLoad4|progressBarElement|elementWidth|calc|started|keydown|clientX|popupIsVisible|setLayers|originalLayer|waitForJSApisLoaded|parentWithNumericWidthValuePercent|fitheight|hero|layersHeight||fixedsize|stretch|willBePaused|isPreloaded|setTransition|custom|toUpperCase|sortArray|nextTiles|topleft|bottomright|topright|bottomleft|origin|concat|scrollForward|slideTimeline|mouseLeave|Quad|setNodesSequence|thru|modifyTimeScale|over|canhover|hoverIn|hovered|clockwise|centerLayers|orientationchange|addShadow|gamma|beta|slice|onCompleteParams|namespace|usesFileProtocol|files|Plugin|has|been|pluginsLoaded|scriptPath|pluginLoaded|hideWelcomeMessage|showHide|content|WordPress|lswpVersion|wheel|getDimensions|scale3d|_properties|setter|preventDefaultForScrollKeys|removeSelection|requestFullscreen||exit|toggle|exitFullscreen|winScrollLeft|jquery|checkVersions|substr|unmutemedia|preventSliderClip|allowFullscreen|layersContainerHeight|insertMethod|slideBGPosition|preferBlendMode|playByScrollSpeed|playByScrollStart|globalBGRepeat|globalBGAttachment|globalBGSize|globalBGPosition|keybNav|touchNav|hoverPrevNext|showBarTimer|showCircleTimer|showSlideBarTimer|youtubePreview|maxresdefault|parallaxScrollReverse|yourLogoStyle|10px|yourLogoTarget|optimizeForMobile|hashChange|refreshWaypoint|transitionorigami|kenburnspan|pan|kenburnszoom|kenburnsrotation|kenburnsrotate|kenburnsscale|parallaxtype|parallaxevent|parallaxpath|parallaxdirection|parallaxduration|parallaxcount|parallaxdelay|parallaxstartat|parallaxaxis|parallaxtransformorigin|parallaxdurationmove|parallaxdurationleave|parallaxrotate|parallaxrotation|parallaxdistance|parallaxtransformperspective|keyframe|pointerevents|timelineHierarchy|autoparallaxend|transitioninandloopend|textinandloopend|alloutend|brightness|contrast|grayscale|invert|saturate|sepia|imageLayer|05|wrapperOnTimelineEnd|inLayerFrom|inLayerStyleFrom|inClipFrom|inClipFromCSS|inClipToCSS|loopFrom|loopClipToCSS|pictureElement|getALT|customTransitions|slideIndexes|nextSlideIndex|normalizedSequence|parentNode|linkTo|base64|pop|insertAfter|pagetop|pagebottom|previous|linkedToSlide|parallaxWrapperData|addLayer|preloadedWidth|preloadedHeight|line|startat|shift|fade|isOld|lines|nodeName|slideout|singleInit|backgroundImage|charAt|instanceof|wrapping|bgVideosWrapper|translateZ|forceLoopNum|sequences|slideChangeWillStart||restart||checkSlideshowWaiting|modestbranding|mediaDidStart|mediaDidStop|showUnmute|pauseVideo|wmode||opaque|accelerometer|encrypted|gyroscope||allowfullscreen|javascript|initializing|param|Player|savePlayerState|ended|catch|may|cause|playback|issues|canPlayType|createStartStop|createSides|above|absolute|sides|icon|createStyleSheet|stylesheet|btmMod|resizeShadow|timer|hider|half|touchX|dragging|touchend|touchstart|keyboard|touch|which|canShow|thumbnailsAreLoaded|preloadedImagesCount|lastIndexOf|success|waitForWrap|sliderWillResize|resetSlideTimelines|sliderDidResize|getSliderClosestParentElementWidthNumericValueOfProperty|fitwidth|heroTop|fixed|contain|Width|Height|rect|directionAtSlideTransitionStart|forced|overflowx|overflowy|_gsTransform|slideTransitionType|transitionType|slideChangeDidStart|changeBackgroundVideo|call|slideChangeWillComplete||prepare|applyBG|slideChangeDidComplete|supports3D|custom3d|custom2d|countProp|CUSTOM|horizontal|large|depth|0px|front|mirror|curtile|nexttile|autoRemoveChildren|resetStates|slideTimelineDidStart|slideTimelineDidReverseComplete|shouldReplay|slideTimelineDidUpdate|slideTimelineDidCreate|reversed|slideTimelineDidComplete|timing1|timing3|resetNodes|staggerFromTo|infinity|createTimeline|reverseTimeScale|hoverOut|supportOrientation|deviceTurn|removeShadow|4e3|fadeInDuration|reverseDuration|file|are|checkLoaded|pluginData|requiredLSVersion|sliderWillLoad|oldProperties|release|currentScript|lsScript|getComputedStyle|percWidth|conWidth|parents|wpVersion|deltaY|scroll2|checkPosition|releaseDate|setBasicEvents|Waypoint|sliderDidLoad|shouldBeDestroyed|destroy|easeinout|scaleZ|slideshowStateDidChange|slideshowDidPause|slideshowDidResume|clearTimers|clearTimelines|clearEvents|iPhone|iPod|iPad|mousewheel|removeAllRanges|selection|enter|screen|scrollLeft|offsetTopOld|offsetLeftOld|fastChangeTo|sliderDidDestroy|sholudBeRemoved|sliderDidRemove|layersIn|layersOut|Edge|preserve|use|strict|LS|defaultInitOptions|sliderInitOptions|showNotice|oldjquery|gsap|GSAP|_LS|350|v6|_self|staticImage|UID|slidedelay|timeshift|transitionduration|backgroundsize|bgsize|backgroundposition|bgposition||backgroundcolor|bgcolor|filterfrom|filterto|registerPluginDefaults|mirrortransitions|loopmedia|fadein|opacityin|rotatein||rotatexin|rotateyin|rotationin||rotationxin|rotationyin|scalein|scalexin|scaleyin|skewxin|skewyin|bgcolorin|colorin|radiusin|widthin|heightin|filterin|rotatex|rotatey|rotationx|rotationy|scalex|scaley|skewx|skewy|transformoriginin|offsetxin|offsetyin|clipin|delayin|startatin|instartat|durationin|easingin|transitionin|textfadein|textopacityin|textrotatein|textrotatexin|textrotateyin|textrotationin|textrotationxin|textrotationyin|textscalein|textscalexin|textscaleyin|textskewxin|textskewyin|texteasein|texteasingin|texttransformoriginin|textoffsetxin|textoffsetyin|texttypein|textshiftin|textdelayin|textstartatin|textinstartat|textdurationin|texttransitionin|fadeout||opacityout|rotateout|rotatexout|rotateyout|rotationout|rotationxout|rotationyout|scaleout|scalexout|scaleyout|skewxout|skewyout|bgcolorout|colorout|radiusout|widthout|heightout|filterout|transformoriginout|offsetxout|offsetyout|clipout|showuntil|startatout|outstartat|durationout|easingout|transitionout|textfadeout|textopacityout|textrotateout|textrotatexout|textrotateyout|textrotationout|textrotationxout|textrotationyout|textscaleout|textscalexout|textscaleyout|textskewxout|textskewyout|texteaseout|texteasingout|texttransformoriginout|textoffsetxout|textoffsetyout|texttypeout|textshiftout|textdelayout|textstartatout|textoutstartat|textdurationout|texttransitionout|loopopacity|looprotate|looprotatex|looprotatey||looprotation|looprotationx|looprotationy||loopscale|loopscalex|loopscaley|loopskewx|loopskewy|looptransformorigin|loopoffsetx|loopoffsety|loopfilter|loopclip|loopdelay|loopstartat|loopduration|loopcount|looprepeatdelay|loopyoyo|loopease|loopeasing|hoveropacity|hoverrotate|hoverrotatex|hoverrotatey|hoverrotation|hoverrotationx|hoverrotationy|hoverscale|hoverscalex|hoverscaley|hoverskewx|hoverskewy|hoverbgcolor|hovercolor|hoverease|hovereasing|hovereasein|hovereasingin|hovereaseout|hovereasingout|hoverduration|hoverdurationin|hoverdurationout|hoveralwaysontop|hoveroffsetx|hoveroffsety|hoverfilter|hoverborderradius|hoverradius|hovertransformorigin||parallaxlevel|transformperspective|transformperspectivein|transformperspectiveout|texttransformperspective|texttransformperspectivein|texttransformperspectiveout||looptransformperspective|hovertransformperspective|chars_asc||chars_desc|chars_rand|chars_center|chars_edge|words_asc|words_desc|words_rand|words_center|words_edge|lines_asc|lines_desc|lines_rand|lines_center|lines_edge|slideIn|infinite|textInNodesToCSS|nothumb|continue|setAttribute|removeAttribute|iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg|webp|specified|scrollHeight|Quint|than|clicked|pointer|clipWrapperData|loopWrapperData|getBoundingClientRect|640|360|webkitFilter|styleWidth|styleHeight|borderTopLeftRadius|borderTopRightRadius|borderBottomRightRadius|borderBottomLeftRadius|font|size|letter|spacing|dataLS|converted|prop1|prop2|prop4|splitType3a|splitType3b|chars|splitType1|splitType2|forever|SplitType|101|pointerEvents|3e3|nextLoop|merge|invalidSlideIndex|changedByUser|setdir|forceStop|dequeue||allowtounmute|mutedbybrowser|playvideo|fun|nocontrols|unMute|5e3|remainingSlideDuration|enablejsapi|mqdefault|hqdefault|sddefault|vi|embed|forEach|www|iframe_api|onYouTubeIframeAPIReady|onReady|onStateChange|seekTo|autopause|oembed|json|player_id|getJSON|thumbnail_url|getVolume|PasswordError|password|protected|PrivacyError|private|setCurrentTime|currentTime|yourlogo|bock|textDecoration|outline|sideleft|sideright|touchscroll|below|600|Unmute|unmuted|progressbar|mousedown|mouseup|indicator|400|isAnimating|isPreloading|map|apply|gif|R0lGODlhAQABAIAAAAAAAP|yH5BAEAAAAALAAAAAABAAEAAAIBRAA7|fail|offsetX|offsetY|1025|767|768|inherit|item|popupIsWaitingForDelay|waitingForPopupTimer|disbaled|noSlideTransition|0deg|01|_no|found_|leaveOverflow|obj|customTransition|carousel|crossfad|curtiles|nexttiles|vertical|mixed|translate3d|getTweensOf|seek|layersOnSlideTimeline|slideTimelineDuration|popupShouldStart|timing2|Sine|addPause|looplayers|addCallback|_reversed|onReverseCompleteParams|999999px|deviceorientation|counterclockwise|orientation|pageY|desc|rand|sort|edge|char|word|Cannot|protocol|Please|include|manually|missing|added|but|found|ajax|dataType|Additional|complete|Required|you|have|outerHTML|WP|core|Find|updates|docs|kreaturamedia|clientWidth|clientHeight|noWidth|noWidth2|noHeight|noHeight2|fullwidth2|fullsize2|conHeight|conWidth2|conHeight2|fix|bgCover|fitvidsignore|videos|backgrounds|backgroundRepeat|backgroundAttachment|layerCustomSliderTransitions|slideTransitions|noSlideTransitions|hashchange|clientY|pre|inviewport|refreshAll|Left|Top|sliderleft|sliderright|slidercenter|slidermiddle|middle|swing|easeInOutQuart|false|NaN|firstLayer|loops||layersContainer|sublayerContainer|randomSlideshow|killTweensOf|Android|BlackBerry|BB10|webOS|Windows|Phone|mobi|opera|mini|nexus||DeviceOrientationEvent|returnValue|keyCode|fullscreenEnabled|webkitFullscreenEnabled|mozFullScreenEnabled|msFullscreenEnabled|webkitRequestFullscreen|mozRequestFullScreen|msRequestFullscreen|webkitExitFullscreen|mozCancelFullScreen|msExitFullscreen|fullscreenchange|webkitfullscreenchange|mozfullscreenchange|msfullscreenchange|dblclick|fullscreenElement|webkitFullscreenElement|mozFullScreenElement|msFullscreenElement|docWidth|pageYOffset|pageXOffset|_data|previousSlide|startSlideshow|openPopup|closePopup|updateLayerData|redrawSlider|redraw|replaySlide|reverseSlide|unmuteMedia|stopSlideshow|pauseSlider|resumePopup|resumeSlider|001|pauseMedia|toggleSlider|resetSlider|resetSlide|resetCurrentSlide|removeData|removeSlider|userData|slideChangeTimeline|Safari|Opera|||Chrome|isChrome|chrome|vendor|opr|CriOS|Google|Inc|perspective|OPerspective|msPerspective|MozPerspective|WebkitPerspective|transformStyle|OTransformStyle|msTransformStyle|MozTransformStyle|WebkitTransformStyle|test3d|offsetHeight|rident|stable|2021|04|07'.split('|'),0,{}));
;eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('20 21={22:[{i:"Z M C",d:1,g:1,f:{e:0,j:"o"},c:{n:"U",a:"1f",b:G,h:"s"}},{i:"Z M s",d:1,g:1,f:{e:0,j:"o"},c:{n:"U",a:"1f",b:G,h:"C"}},{i:"Z M L",d:1,g:1,f:{e:0,j:"o"},c:{n:"U",a:"1f",b:G,h:"H"}},{i:"Z M H",d:1,g:1,f:{e:0,j:"o"},c:{n:"U",a:"1f",b:G,h:"L"}},{i:"23",d:1,g:1,f:{e:0,j:"o"},c:{n:"14",a:"1f",b:G,h:"s"}},{i:"Y P o",d:[2,4],g:[4,7],f:{e:1j,j:"o"},c:{n:"14",a:"y",b:G,h:"s"}},{i:"Y P E",d:[2,4],g:[4,7],f:{e:1j,j:"E"},c:{n:"14",a:"y",b:G,h:"s"}},{i:"Y P 1h-o",d:[2,4],g:[4,7],f:{e:1j,j:"1h-o"},c:{n:"14",a:"y",b:G,h:"s"}},{i:"Y P 1h-E",d:[2,4],g:[4,7],f:{e:1j,j:"1h-E"},c:{n:"14",a:"y",b:G,h:"s"}},{i:"Y P (k)",d:[2,4],g:[4,7],f:{e:1j,j:"k"},c:{n:"14",a:"y",b:G,h:"s"}},{i:"1x 1y M C",d:1,g:1t,f:{e:25,j:"E"},c:{n:"14",a:"24",b:V,h:"s"}},{i:"1x 1y M s",d:1,g:1t,f:{e:25,j:"o"},c:{n:"14",a:"u",b:V,h:"s"}},{i:"1x 1y M L",d:1t,g:1,f:{e:25,j:"1h-E"},c:{n:"14",a:"u",b:V,h:"s"}},{i:"1x 1y M H",d:1t,g:1,f:{e:25,j:"1h-o"},c:{n:"14",a:"u",b:V,h:"s"}},{i:"1x X M C",d:1,g:25,f:{e:1j,j:"E"},c:{n:"U",a:"u",b:1a,h:"s"}},{i:"1x X M s",d:1,g:25,f:{e:1j,j:"o"},c:{n:"U",a:"u",b:1a,h:"C"}},{i:"1x 26 M L",d:25,g:1,f:{e:1j,j:"1h-E"},c:{n:"U",a:"u",b:1a,h:"H"}},{i:"1x X M H",d:25,g:1,f:{e:1j,j:"1h-o"},c:{n:"U",a:"u",b:1a,h:"L"}},{i:"Z P m C (k)",d:[2,4],g:[4,7],f:{e:1b,j:"k"},c:{n:"U",a:"y",b:1k,h:"C"}},{i:"Z P m s (k)",d:[2,4],g:[4,7],f:{e:1b,j:"k"},c:{n:"U",a:"y",b:1k,h:"s"}},{i:"Z P m L (k)",d:[2,4],g:[4,7],f:{e:1b,j:"k"},c:{n:"U",a:"y",b:1k,h:"L"}},{i:"Z P m H (k)",d:[2,4],g:[4,7],f:{e:1b,j:"k"},c:{n:"U",a:"y",b:1k,h:"H"}},{i:"Z k P m k 1O",d:[2,4],g:[4,7],f:{e:1b,j:"k"},c:{n:"U",a:"y",b:1k,h:"k"}},{i:"Z d m C (o)",d:[7,11],g:1,f:{e:1c,j:"o"},c:{n:"U",a:"u",b:p,h:"C"}},{i:"Z d m C (E)",d:[7,11],g:1,f:{e:1c,j:"E"},c:{n:"U",a:"u",b:p,h:"C"}},{i:"Z d m C (k)",d:[7,11],g:1,f:{e:1c,j:"k"},c:{n:"U",a:"u",b:p,h:"C"}},{i:"Z d m s (o)",d:[7,11],g:1,f:{e:1c,j:"o"},c:{n:"U",a:"u",b:p,h:"s"}},{i:"Z d m s (E)",d:[7,11],g:1,f:{e:1c,j:"E"},c:{n:"U",a:"u",b:p,h:"s"}},{i:"Z d m s (k)",d:[7,11],g:1,f:{e:1c,j:"k"},c:{n:"U",a:"u",b:p,h:"s"}},{i:"Z d M H m L (o)",d:[7,11],g:1,f:{e:1c,j:"o"},c:{n:"U",a:"u",b:p,h:"L"}},{i:"Z d M H m L (k)",d:[7,11],g:1,f:{e:1c,j:"k"},c:{n:"U",a:"u",b:p,h:"L"}},{i:"Z d M L m H (E)",d:[7,11],g:1,f:{e:1c,j:"E"},c:{n:"U",a:"u",b:p,h:"H"}},{i:"Z d M L m H (k)",d:[7,11],g:1,f:{e:1c,j:"k"},c:{n:"U",a:"u",b:p,h:"H"}},{i:"Z N m L (o)",d:1,g:[12,16],f:{e:q,j:"o"},c:{n:"U",a:"u",b:p,h:"L"}},{i:"Z N m L (E)",d:1,g:[12,16],f:{e:q,j:"E"},c:{n:"U",a:"u",b:p,h:"L"}},{i:"Z N m L (k)",d:1,g:[12,16],f:{e:q,j:"k"},c:{n:"U",a:"u",b:p,h:"L"}},{i:"Z N m H (o)",d:1,g:[12,16],f:{e:q,j:"o"},c:{n:"U",a:"u",b:p,h:"H"}},{i:"Z N m H (E)",d:1,g:[12,16],f:{e:q,j:"E"},c:{n:"U",a:"u",b:p,h:"H"}},{i:"Z N m H (k)",d:1,g:[12,16],f:{e:q,j:"k"},c:{n:"U",a:"u",b:p,h:"H"}},{i:"Z N M s m C (o)",d:1,g:[12,16],f:{e:q,j:"o"},c:{n:"U",a:"u",b:p,h:"C"}},{i:"Z N M s m C (k)",d:1,g:[12,16],f:{e:q,j:"k"},c:{n:"U",a:"u",b:p,h:"C"}},{i:"Z N M C m s (E)",d:1,g:[12,16],f:{e:q,j:"E"},c:{n:"U",a:"u",b:p,h:"s"}},{i:"Z N M C m s (k)",d:1,g:[12,16],f:{e:q,j:"k"},c:{n:"U",a:"u",b:p,h:"s"}},{i:"Y t X P m C (k)",d:[2,4],g:[4,7],f:{e:1b,j:"k"},c:{n:"Q",a:"y",b:1k,h:"C"}},{i:"Y t X P m s (k)",d:[2,4],g:[4,7],f:{e:1b,j:"k"},c:{n:"Q",a:"y",b:1k,h:"s"}},{i:"Y t X P m L (k)",d:[2,4],g:[4,7],f:{e:1b,j:"k"},c:{n:"Q",a:"y",b:1k,h:"L"}},{i:"Y t X P m H (k)",d:[2,4],g:[4,7],f:{e:1b,j:"k"},c:{n:"Q",a:"y",b:1k,h:"H"}},{i:"Y t X k P m k 1O",d:[2,4],g:[4,7],f:{e:1b,j:"k"},c:{n:"Q",a:"y",b:1k,h:"k"}},{i:"Y t X P M H-s (o)",d:[2,4],g:[4,7],f:{e:1b,j:"o"},c:{n:"Q",a:"y",b:1k,h:"27"}},{i:"Y t X P M L-C (E)",d:[2,4],g:[4,7],f:{e:1b,j:"E"},c:{n:"Q",a:"y",b:1k,h:"28"}},{i:"Y t X P M H-C (k)",d:[2,4],g:[4,7],f:{e:1b,j:"k"},c:{n:"Q",a:"y",b:1k,h:"1P"}},{i:"Y t X P M L-s (k)",d:[2,4],g:[4,7],f:{e:1b,j:"k"},c:{n:"Q",a:"y",b:1k,h:"29"}},{i:"Y t X d m C (o)",d:[7,11],g:1,f:{e:1c,j:"o"},c:{n:"Q",a:"u",b:p,h:"C"}},{i:"Y t X d m C (E)",d:[7,11],g:1,f:{e:1c,j:"E"},c:{n:"Q",a:"u",b:p,h:"C"}},{i:"Y t X d m C (k)",d:[7,11],g:1,f:{e:1c,j:"k"},c:{n:"Q",a:"u",b:p,h:"C"}},{i:"Y t X d m s (o)",d:[7,11],g:1,f:{e:1c,j:"o"},c:{n:"Q",a:"u",b:p,h:"s"}},{i:"Y t X d m s (E)",d:[7,11],g:1,f:{e:1c,j:"E"},c:{n:"Q",a:"u",b:p,h:"s"}},{i:"Y t X d m s (k)",d:[7,11],g:1,f:{e:1c,j:"k"},c:{n:"Q",a:"u",b:p,h:"s"}},{i:"Y t X d M H m L (o)",d:[7,11],g:1,f:{e:1c,j:"o"},c:{n:"Q",a:"u",b:p,h:"L"}},{i:"Y t X d M H m L (k)",d:[7,11],g:1,f:{e:1c,j:"k"},c:{n:"Q",a:"u",b:p,h:"L"}},{i:"Y t X d M L m H (E)",d:[7,11],g:1,f:{e:1c,j:"E"},c:{n:"Q",a:"u",b:p,h:"H"}},{i:"Y t X d M L m H (k)",d:[7,11],g:1,f:{e:1c,j:"k"},c:{n:"Q",a:"u",b:p,h:"H"}},{i:"Y t X N m L (o)",d:1,g:[12,16],f:{e:q,j:"o"},c:{n:"Q",a:"u",b:p,h:"L"}},{i:"Y t X N m L (E)",d:1,g:[12,16],f:{e:q,j:"E"},c:{n:"Q",a:"u",b:p,h:"L"}},{i:"Y t X N m L (k)",d:1,g:[12,16],f:{e:q,j:"k"},c:{n:"Q",a:"u",b:p,h:"L"}},{i:"Y t X N m H (o)",d:1,g:[12,16],f:{e:q,j:"o"},c:{n:"Q",a:"u",b:p,h:"H"}},{i:"Y t X N m H (E)",d:1,g:[12,16],f:{e:q,j:"E"},c:{n:"Q",a:"u",b:p,h:"H"}},{i:"Y t X N m H (k)",d:1,g:[12,16],f:{e:q,j:"k"},c:{n:"Q",a:"u",b:p,h:"H"}},{i:"Y t X N M s m C (o)",d:1,g:[12,16],f:{e:q,j:"o"},c:{n:"Q",a:"u",b:p,h:"C"}},{i:"Y t X N M s m C (k)",d:1,g:[12,16],f:{e:q,j:"k"},c:{n:"Q",a:"u",b:p,h:"C"}},{i:"Y t X N M C m s (E)",d:1,g:[12,16],f:{e:q,j:"E"},c:{n:"Q",a:"u",b:p,h:"s"}},{i:"Y t X N M C m s (k)",d:1,g:[12,16],f:{e:q,j:"k"},c:{n:"Q",a:"u",b:p,h:"s"}},{i:"1v",d:1,g:1,f:{e:0,j:"o"},c:{n:"Q",a:"1f",b:V,h:"s",1g:.5}},{i:"1v d",d:4,g:1,f:{e:1b,j:"o"},c:{n:"Q",a:"1f",b:V,h:"s",1g:.5}},{i:"1v g",d:1,g:4,f:{e:1b,j:"o"},c:{n:"Q",a:"1f",b:V,h:"s",1g:.5}},{i:"1v P z",d:3,g:4,f:{e:1t,j:"o"},c:{n:"Q",a:"1f",b:V,h:"s",1g:.5,x:v}},{i:"1v P D",d:3,g:4,f:{e:1t,j:"o"},c:{n:"Q",a:"1f",b:V,h:"H",1g:.5,w:-v}},{i:"1v-1H P z",d:3,g:4,f:{e:15,j:"o"},c:{n:"Q",a:"1f",b:V,h:"s",1g:.5,x:v}},{i:"1v-1H P D",d:3,g:4,f:{e:15,j:"o"},c:{n:"Q",a:"1f",b:V,h:"H",1g:.5,w:-v}},{i:"1v 1H d",d:4,g:1,f:{e:1b,j:"o"},c:{n:"Q",a:"1f",b:V,h:"C",1g:.5}},{i:"1v 1H g",d:1,g:4,f:{e:1b,j:"o"},c:{n:"Q",a:"1f",b:V,h:"s",1g:.5}},{i:"1d f M s",d:1,g:1,f:{e:0,j:"o"},c:{n:"U",a:"y",b:V,h:"C",x:v}},{i:"1d f M C",d:1,g:1,f:{e:0,j:"o"},c:{n:"U",a:"y",b:V,h:"s",x:-v}},{i:"1d f M H",d:1,g:1,f:{e:0,j:"o"},c:{n:"U",a:"y",b:V,h:"L",w:-v}},{i:"1d f M L",d:1,g:1,f:{e:0,j:"o"},c:{n:"U",a:"y",b:V,h:"H",w:v}},{i:"1d P M s",d:[3,4],g:[3,4],f:{e:19,j:"o"},c:{n:"14",a:"y",b:V,h:"s",x:v}},{i:"1d P M C",d:[3,4],g:[3,4],f:{e:19,j:"E"},c:{n:"14",a:"y",b:V,h:"s",x:-v}},{i:"1d P M H",d:[3,4],g:[3,4],f:{e:19,j:"o"},c:{n:"14",a:"y",b:V,h:"s",w:-v}},{i:"1d P M L",d:[3,4],g:[3,4],f:{e:19,j:"E"},c:{n:"14",a:"y",b:V,h:"s",w:v}},{i:"1d d M H",d:[6,12],g:1,f:{e:19,j:"o"},c:{n:"14",a:"y",b:V,h:"s",w:v}},{i:"1d d M L",d:[6,12],g:1,f:{e:19,j:"E"},c:{n:"14",a:"y",b:V,h:"s",w:-v}},{i:"1d g M s",d:1,g:[6,12],f:{e:19,j:"o"},c:{n:"14",a:"y",b:V,h:"s",x:-v}},{i:"1d g M C",d:1,g:[6,12],f:{e:19,j:"E"},c:{n:"14",a:"y",b:V,h:"s",x:v}},{i:"1w d M s",d:[3,10],g:1,f:{e:19,j:"o"},c:{n:"14",a:"y",b:V,h:"s",x:v}},{i:"1w d M C",d:[3,10],g:1,f:{e:19,j:"E"},c:{n:"14",a:"y",b:V,h:"s",x:-v}},{i:"1w g M H",d:1,g:[3,10],f:{e:19,j:"o"},c:{n:"14",a:"y",b:V,h:"s",w:-v}},{i:"1w g M L",d:1,g:[3,10],f:{e:19,j:"E"},c:{n:"14",a:"y",b:V,h:"s",w:v}},{i:"1w t 1q f M s",d:1,g:1,f:{e:q,j:"o"},c:{n:"Q",a:"y",b:V,h:"C",1g:.1,1r:-v,x:v}},{i:"1w t 1q f M C",d:1,g:1,f:{e:q,j:"o"},c:{n:"Q",a:"y",b:V,h:"s",1g:.1,1r:v,x:-v}},{i:"1w t 1q P M s",d:[3,4],g:[3,4],f:{e:19,j:"o"},c:{n:"Q",a:"y",b:V,h:"C",1r:-1s}},{i:"1w t 1q P M C",d:[3,4],g:[3,4],f:{e:19,j:"o"},c:{n:"Q",a:"y",b:V,h:"s",1r:-1s}},{i:"1w t 1q P M k",d:[3,4],g:[3,4],f:{e:19,j:"k"},c:{n:"Q",a:"y",b:V,h:"k",1r:-1s}},{i:"F f 1Q",d:1,g:1,f:{e:0,j:"o"},c:{n:"14",a:"y",b:13,h:"s",1g:.8}},{i:"F f M 1N",d:1,g:1,f:{e:0,j:"o"},c:{n:"14",a:"u",b:13,h:"s",1g:1.2}},{i:"F P k",d:[3,4],g:[3,4],f:{e:1t,j:"k"},c:{n:"14",a:"y",b:V,h:"s",1g:.1}},{i:"F P M 1N k",d:[3,4],g:[3,4],f:{e:1t,j:"k"},c:{n:"14",a:"y",b:V,h:"s",1g:2}},{i:"F 1Q t 1q P k",d:[3,4],g:[3,4],f:{e:1t,j:"k"},c:{n:"14",a:"y",b:V,h:"s",1g:.1,1r:v}},{i:"F t 1q P M 1N k",d:[3,4],g:[3,4],f:{e:1t,j:"k"},c:{n:"14",a:"y",b:V,h:"s",1g:2,1r:-v}},{i:"1E-X P 2a",d:3,g:4,f:{e:15,j:"o"},c:{n:"U",a:"u",b:2b,h:"1P"}},{i:"1E-X d z",d:6,g:1,f:{e:0,j:"o"},c:{n:"Q",a:"y",b:V,h:"s"}},{i:"1E-X d D",d:6,g:1,f:{e:0,j:"o"},c:{n:"Q",a:"y",b:V,h:"H"}},{i:"1E-X g z",d:1,g:8,f:{e:0,j:"o"},c:{n:"Q",a:"y",b:V,h:"s"}},{i:"1E-X g D",d:1,g:8,f:{e:0,j:"o"},c:{n:"Q",a:"y",b:V,h:"H"}},{i:"1I 1J m s",d:10,g:1,f:{e:10,j:"k"},c:{b:13,a:"u",n:"U",h:"s"}},{i:"1I 1J m C",d:10,g:1,f:{e:10,j:"k"},c:{b:13,a:"u",n:"U",h:"C"}},{i:"1I 1J m L",d:1,g:15,f:{e:10,j:"k"},c:{b:13,a:"u",n:"U",h:"L"}},{i:"1I 1J m H",d:1,g:15,f:{e:10,j:"k"},c:{b:13,a:"u",n:"U",h:"H"}}],2c:[{i:"1e f m C (l°)",d:1,g:1,f:{e:q,j:"o"},r:{c:{x:1K},a:"1z",b:G,h:"z"},A:{c:{x:l},a:"y",b:G,h:"z"}},{i:"1e f m s (l°)",d:1,g:1,f:{e:q,j:"o"},r:{c:{x:-1K},a:"1z",b:G,h:"z"},A:{c:{x:-l},a:"y",b:G,h:"z"}},{i:"1e f m L (l°)",d:1,g:1,f:{e:q,j:"o"},r:{c:{w:-1K},a:"1z",b:1A,h:"D"},A:{c:{w:-l},a:"y",b:1A,h:"D"}},{i:"1e f m H (l°)",d:1,g:1,f:{e:q,j:"o"},r:{c:{w:1K},a:"1z",b:1A,h:"D"},A:{c:{w:l},a:"y",b:1A,h:"D"}},{i:"1e P m C (l°)",d:[2,4],g:[4,7],f:{e:q,j:"o"},r:{c:{x:l},a:"u",b:G,h:"z"}},{i:"1e P m s (l°)",d:[2,4],g:[4,7],f:{e:q,j:"E"},r:{c:{x:-l},a:"u",b:G,h:"z"}},{i:"1e P m L (l°)",d:[2,4],g:[4,7],f:{e:q,j:"1h-o"},r:{c:{w:-l},a:"u",b:G,h:"D"}},{i:"1e P m H (l°)",d:[2,4],g:[4,7],f:{e:q,j:"1h-E"},r:{c:{w:l},a:"u",b:G,h:"D"}},{i:"1F R P k (l°)",d:[2,4],g:[4,7],f:{e:q,j:"k"},r:{c:{x:l},a:"u",b:1L,h:"z"}},{i:"1G R P k (l°)",d:[2,4],g:[4,7],f:{e:q,j:"k"},r:{c:{w:l},a:"u",b:1L,h:"D"}},{i:"F t R P m C (l°)",d:[2,4],g:[4,7],f:{e:q,j:"o"},J:{c:{B:.1C},b:1l,a:"17"},r:{c:{x:l},a:"I",b:G,h:"z"},A:{b:1a,a:"I"}},{i:"F t R P m s (l°)",d:[2,4],g:[4,7],f:{e:q,j:"E"},J:{c:{B:.1C},b:1l,a:"17"},r:{c:{x:-l},a:"I",b:G,h:"z"},A:{b:1a,a:"I"}},{i:"F t R P m L (l°)",d:[2,4],g:[4,7],f:{e:q,j:"1h-o"},J:{c:{B:.1C},b:1l,a:"17"},r:{c:{w:-l},a:"I",b:G,h:"D"},A:{b:1a,a:"I"}},{i:"F t R P m H (l°)",d:[2,4],g:[4,7],f:{e:q,j:"1h-E"},J:{c:{B:.1C},b:1l,a:"17"},r:{c:{w:l},a:"I",b:G,h:"D"},A:{b:1a,a:"I"}},{i:"F t z R P k (l°)",d:[2,4],g:[4,7],f:{e:q,j:"k"},J:{c:{B:.1C,w:1j},b:1l,a:"17"},r:{c:{x:l,w:-1j},a:"I",b:1L,h:"z"},A:{c:{w:0},b:1a,a:"I"}},{i:"F t D R P k (l°)",d:[2,4],g:[4,7],f:{e:q,j:"k"},J:{c:{B:.1C,x:-15},b:1l,a:"17"},r:{c:{w:l,x:15},a:"I",b:1L,h:"D"},A:{c:{x:0},b:1a,a:"I"}},{i:"1e d m C (l°)",d:[5,9],g:1,f:{e:q,j:"o"},r:{c:{x:l},a:"u",b:13,h:"z"}},{i:"1e d m s (l°)",d:[5,9],g:1,f:{e:q,j:"o"},r:{c:{x:-l},a:"u",b:13,h:"z"}},{i:"1e d m L (l°)",d:[5,9],g:1,f:{e:q,j:"o"},r:{c:{w:-l},a:"u",b:G,h:"D"}},{i:"1e d m H (l°)",d:[5,9],g:1,f:{e:q,j:"E"},r:{c:{w:l},a:"u",b:G,h:"D"}},{i:"1F R d k (l°)",d:[5,9],g:1,f:{e:q,j:"k"},r:{c:{x:l},a:"u",b:13,h:"z"}},{i:"1G R d k (l°)",d:[5,9],g:1,f:{e:q,j:"k"},r:{c:{w:-l},a:"u",b:13,h:"D"}},{i:"1G R d k (1D°)",d:[3,7],g:1,f:{e:1R,j:"k"},r:{c:{w:-1D},a:"u",b:1S,h:"D"}},{i:"F t R d m C (l°)",d:[5,9],g:1,f:{e:19,j:"o"},J:{c:{B:.O},b:p,a:"K"},r:{c:{x:l},a:"I",b:1m,h:"z"},A:{c:{e:W},a:"K",b:p}},{i:"F t R d m s (l°)",d:[5,9],g:1,f:{e:19,j:"E"},J:{c:{B:.O},b:p,a:"K"},r:{c:{x:-l},a:"I",b:1m,h:"z"},A:{c:{e:W},a:"K",b:p}},{i:"F t R d m L (l°)",d:[5,9],g:1,f:{e:19,j:"o"},J:{c:{B:.O},b:p,a:"K"},r:{c:{w:-l},a:"u",b:p,h:"D"},A:{c:{e:W},a:"K",b:p}},{i:"F t R d m H (l°)",d:[5,9],g:1,f:{e:19,j:"E"},J:{c:{B:.O},b:p,a:"K"},r:{c:{w:l},a:"u",b:p,h:"D"},A:{c:{e:W},a:"K",b:p}},{i:"F t z R d k (l°)",d:[5,9],g:1,f:{e:19,j:"k"},J:{c:{B:.O},b:p,a:"K"},r:{c:{x:l},a:"I",b:1m,h:"z"},A:{c:{e:W},a:"K",b:p}},{i:"F t D R d k (l°)",d:[5,9],g:1,f:{e:19,j:"k"},J:{c:{B:.O},b:p,a:"K"},r:{c:{w:-l},a:"I",b:p,h:"D"},A:{c:{e:W},a:"K",b:p}},{i:"1e N m C (l°)",d:1,g:[5,9],f:{e:q,j:"o"},r:{c:{x:l},a:"u",b:13,h:"z"}},{i:"1e N m s (l°)",d:1,g:[5,9],f:{e:q,j:"o"},r:{c:{x:-l},a:"u",b:13,h:"z"}},{i:"1e N m L (l°)",d:1,g:[5,9],f:{e:q,j:"o"},r:{c:{w:-l},a:"u",b:G,h:"D"}},{i:"1e N m H (l°)",d:1,g:[5,9],f:{e:q,j:"E"},r:{c:{w:l},a:"u",b:G,h:"D"}},{i:"1F R N k (l°)",d:1,g:[5,9],f:{e:q,j:"k"},r:{c:{x:l},a:"u",b:13,h:"z"}},{i:"1G R N k (l°)",d:1,g:[5,9],f:{e:q,j:"k"},r:{c:{w:-l},a:"u",b:13,h:"D"}},{i:"1F R N k (1D°)",d:1,g:[4,9],f:{e:1R,j:"k"},r:{c:{x:1D},a:"u",b:1S,h:"z"}},{i:"F t R N m C (l°)",d:1,g:[7,11],f:{e:19,j:"o"},J:{c:{B:.O},b:p,a:"K"},r:{c:{x:l},a:"u",b:p,h:"z"},A:{c:{e:W},a:"K",b:p}},{i:"F t R N m s (l°)",d:1,g:[7,11],f:{e:19,j:"E"},J:{c:{B:.O},b:p,a:"K"},r:{c:{x:-l},a:"u",b:p,h:"z"},A:{c:{e:W},a:"K",b:p}},{i:"F t R N m L (l°)",d:1,g:[7,11],f:{e:19,j:"o"},J:{c:{B:.O},b:p,a:"K"},r:{c:{w:-l},a:"I",b:1m,h:"D"},A:{c:{e:W},a:"K",b:p}},{i:"F t R N m H (l°)",d:1,g:[7,11],f:{e:q,j:"E"},J:{c:{B:.O},b:p,a:"K"},r:{c:{w:l},a:"I",b:1m,h:"D"},A:{c:{e:W},a:"K",b:p}},{i:"F t z R N k (l°)",d:1,g:[7,11],f:{e:q,j:"k"},J:{c:{B:.O},b:p,a:"K"},r:{c:{x:l},a:"I",b:p,h:"z"},A:{c:{e:W},a:"K",b:p}},{i:"F t D R N k (l°)",d:1,g:[7,11],f:{e:q,j:"k"},J:{c:{B:.O},b:p,a:"K"},r:{c:{w:-l},a:"I",b:1m,h:"D"},A:{c:{e:W},a:"K",b:p}},{i:"1T 1U 1V t R m C (l°)",d:1,g:[7,11],f:{e:q,j:"o"},J:{c:{B:.O,w:-1j},b:p,a:"y"},r:{c:{w:-1j,x:l},a:"u",b:G,h:"z"},A:{c:{w:0,e:W},a:"y",b:p}},{i:"1T 1U 1V t R m s (l°)",d:1,g:[7,11],f:{e:q,j:"E"},J:{c:{B:.O,w:-1j},b:p,a:"y"},r:{c:{w:1j,x:-l},a:"u",b:G,h:"z"},A:{c:{w:0,e:W},a:"y",b:p}},{i:"1d 1u m C (v°)",d:1,g:1,f:{e:q,j:"o"},r:{c:{x:v},a:"u",b:13,h:"z"}},{i:"1d 1u m s (v°)",d:1,g:1,f:{e:q,j:"o"},r:{c:{x:-v},a:"u",b:13,h:"z"}},{i:"1d 1u m L (v°)",d:1,g:1,f:{e:q,j:"o"},r:{c:{w:-v},a:"u",b:13,h:"D"}},{i:"1d 1u m H (v°)",d:1,g:1,f:{e:q,j:"o"},r:{c:{w:v},a:"u",b:13,h:"D"}},{i:"F t 18 1u m C (v°)",d:1,g:1,f:{e:q,j:"k"},r:{c:{B:.8,1r:7,w:10,x:1s},a:"1f",b:1A,h:"z"},A:{c:{1r:0,w:0,x:v},b:1A,a:"1f"}},{i:"F t 18 1u m s (v°)",d:1,g:1,f:{e:q,j:"k"},r:{c:{B:.8,1r:-7,w:10,x:-1s},a:"1f",b:1A,h:"z"},A:{c:{1r:0,w:0,x:-v},b:1A,a:"1f"}},{i:"F t 18 1n m C (v°)",d:[2,4],g:[4,7],f:{e:q,j:"o"},J:{c:{B:.O},b:1l,a:"17"},r:{c:{x:v},a:"I",b:G,h:"z"},A:{b:1a,a:"I"}},{i:"F t 18 1n m s (v°)",d:[2,4],g:[4,7],f:{e:q,j:"E"},J:{c:{B:.O},b:1l,a:"17"},r:{c:{x:-v},a:"I",b:G,h:"z"},A:{b:1a,a:"I"}},{i:"F t 18 1n m L (v°)",d:[2,4],g:[4,7],f:{e:q,j:"1h-o"},J:{c:{B:.O},b:1l,a:"17"},r:{c:{w:-v},a:"I",b:G,h:"D"},A:{b:1a,a:"I"}},{i:"F t 18 1n m H (v°)",d:[2,4],g:[4,7],f:{e:q,j:"1h-E"},J:{c:{B:.O},b:1l,a:"17"},r:{c:{w:v},a:"I",b:G,h:"D"},A:{b:1a,a:"I"}},{i:"F t z 18 1n k (v°)",d:[2,4],g:[4,7],f:{e:q,j:"k"},J:{c:{B:.q,w:-15},b:1o,a:"17"},r:{c:{x:q,w:15},a:"I",b:1o,h:"z"},A:{c:{x:v,w:0},b:1o,a:"I"}},{i:"F t D 18 1n k (v°)",d:[2,4],g:[4,7],f:{e:q,j:"k"},J:{c:{B:.q,x:15},b:1o,a:"17"},r:{c:{w:q,x:-15},a:"I",b:1o,h:"D"},A:{c:{w:v,x:0},b:1o,a:"I"}},{i:"1d d m C (v°)",d:[5,9],g:1,f:{e:q,j:"o"},r:{c:{x:v},a:"u",b:13,h:"z"}},{i:"1d d m s (v°)",d:[5,9],g:1,f:{e:q,j:"o"},r:{c:{x:-v},a:"u",b:13,h:"z"}},{i:"1F 18 d k (v°)",d:[5,9],g:1,f:{e:q,j:"k"},r:{c:{x:v},a:"u",b:13,h:"z"}},{i:"F t 18 d m C (v°)",d:[5,9],g:1,f:{e:q,j:"o"},J:{c:{B:.O},b:p,a:"K"},r:{c:{x:2d},a:"I",b:G,h:"z"},A:{c:{e:W,x:v},a:"K",b:p}},{i:"F t 18 d m s (v°)",d:[5,9],g:1,f:{e:q,j:"E"},J:{c:{B:.O},b:p,a:"K"},r:{c:{x:-v},a:"I",b:G,h:"z"},A:{c:{e:W},a:"K",b:p}},{i:"F t 18 d m L (v°)",d:[5,9],g:1,f:{e:q,j:"o"},J:{c:{B:.O},b:p,a:"K"},r:{c:{w:-v},a:"I",b:G,h:"D"},A:{c:{e:W},a:"K",b:p}},{i:"F t 18 d m H (v°)",d:[5,9],g:1,f:{e:q,j:"E"},J:{c:{B:.O},b:p,a:"K"},r:{c:{w:v},a:"I",b:G,h:"D"},A:{c:{e:W},a:"K",b:p}},{i:"F t z 18 d k (v°)",d:[5,9],g:1,f:{e:q,j:"k"},J:{c:{B:.O},b:p,a:"K"},r:{c:{x:v},a:"I",b:G,h:"z"},A:{c:{e:W},a:"K",b:p}},{i:"F t D 18 d k (v°)",d:[5,9],g:1,f:{e:q,j:"k"},J:{c:{B:.O},b:p,a:"K"},r:{c:{w:-v},a:"I",b:G,h:"D"},A:{c:{e:W},a:"K",b:p}},{i:"F t z 18 1M d m C (v°)",d:[7,11],g:1,f:{e:q,j:"o"},r:{c:{B:.O,x:1s},a:"17",b:G,h:"z"},A:{c:{x:v},a:"17",b:G}},{i:"F t z 18 1M d m s (v°)",d:[7,11],g:1,f:{e:q,j:"E"},r:{c:{B:.O,x:-1s},a:"17",b:G,h:"z"},A:{c:{x:-v},a:"17",b:G}},{i:"1d N m L (v°)",d:1,g:[5,9],f:{e:q,j:"o"},r:{c:{w:-v},a:"u",b:G,h:"D"}},{i:"1d N m H (v°)",d:1,g:[5,9],f:{e:q,j:"E"},r:{c:{w:v},a:"u",b:G,h:"D"}},{i:"1G 18 N k (v°)",d:1,g:[5,9],f:{e:q,j:"k"},r:{c:{w:-v},a:"u",b:G,h:"D"}},{i:"F t 18 N m L (v°)",d:1,g:[7,11],f:{e:q,j:"o"},J:{c:{B:.O},b:p,a:"K"},r:{c:{w:-v},a:"I",b:G,h:"D"},A:{c:{e:W},a:"K",b:p}},{i:"F t 18 N m H (v°)",d:1,g:[7,11],f:{e:q,j:"E"},J:{c:{B:.O},b:p,a:"K"},r:{c:{w:v},a:"I",b:G,h:"D"},A:{c:{e:W},a:"K",b:p}},{i:"F t 18 N m C (v°)",d:1,g:[7,11],f:{e:q,j:"o"},J:{c:{B:.O},b:p,a:"K"},r:{c:{x:v},a:"I",b:G,h:"z"},A:{c:{e:W},a:"K",b:p}},{i:"F t 18 N m s (v°)",d:1,g:[7,11],f:{e:q,j:"E"},J:{c:{B:.O},b:p,a:"K"},r:{c:{x:-v},a:"I",b:G,h:"z"},A:{c:{e:W},a:"K",b:p}},{i:"F t z 18 N k (v°)",d:1,g:[7,11],f:{e:q,j:"k"},J:{c:{B:.O},b:p,a:"K"},r:{c:{x:v},a:"I",b:G,h:"z"},A:{c:{e:W},a:"K",b:p}},{i:"F t D 18 N k (v°)",d:1,g:[7,11],f:{e:q,j:"k"},J:{c:{B:.O},b:p,a:"K"},r:{c:{w:-v},a:"I",b:G,h:"D"},A:{c:{e:W},a:"K",b:p}},{i:"F t D 18 1M N m C (v°)",d:1,g:[7,11],f:{e:q,j:"o"},r:{c:{B:.O,w:1s},a:"17",b:G,h:"D"},A:{c:{w:v},a:"17",b:G}},{i:"F t D 18 1M N m s (v°)",d:1,g:[7,11],f:{e:q,j:"E"},r:{c:{B:.O,w:-1s},a:"17",b:G,h:"D"},A:{c:{w:-v},a:"17",b:G}},{i:"1e 1u m C (l°, S T)",d:1,g:1,f:{e:q,j:"o",T:"S"},r:{c:{x:l},a:"u",b:13,h:"z"}},{i:"1e 1u m s (l°, S T)",d:1,g:1,f:{e:q,j:"o",T:"S"},r:{c:{x:-l},a:"u",b:13,h:"z"}},{i:"1e 1u m L (l°, S T)",d:1,g:1,f:{e:q,j:"o",T:"S"},r:{c:{w:-l},a:"u",b:13,h:"D"}},{i:"1e 1u m H (l°, S T)",d:1,g:1,f:{e:q,j:"o",T:"S"},r:{c:{w:l},a:"u",b:13,h:"D"}},{i:"F t R 1n m C (l°, S T)",d:[2,4],g:[4,7],f:{e:q,j:"o",T:"S"},J:{c:{B:.O},b:1l,a:"17"},r:{c:{x:l},a:"I",b:G,h:"z"},A:{b:1a,a:"I"}},{i:"F t R 1n m s (l°, S T)",d:[2,4],g:[4,7],f:{e:q,j:"E",T:"S"},J:{c:{B:.O},b:1l,a:"17"},r:{c:{x:-l},a:"I",b:G,h:"z"},A:{b:1a,a:"I"}},{i:"F t R 1n m L (l°, S T)",d:[2,4],g:[4,7],f:{e:q,j:"1h-o",T:"S"},J:{c:{B:.O},b:1l,a:"17"},r:{c:{w:-l},a:"I",b:G,h:"D"},A:{b:1a,a:"I"}},{i:"F t R 1n m H (l°, S T)",d:[2,4],g:[4,7],f:{e:q,j:"1h-E",T:"S"},J:{c:{B:.O},b:1l,a:"17"},r:{c:{w:l},a:"I",b:G,h:"D"},A:{b:1a,a:"I"}},{i:"F t z R 1n k (l°, S T)",d:[2,4],g:[4,7],f:{e:q,j:"k",T:"S"},J:{c:{B:.1i},b:1o,a:"17"},r:{c:{x:l},a:"I",b:1o,h:"z"},A:{b:1o,a:"I"}},{i:"F t D R 1n k (l°, S T)",d:[2,4],g:[4,7],f:{e:q,j:"k",T:"S"},J:{c:{B:.1i},b:1o,a:"17"},r:{c:{w:l},a:"I",b:1o,h:"D"},A:{b:1o,a:"I"}},{i:"F t R d m C (l°, S T)",d:[5,9],g:1,f:{e:1i,j:"o",T:"S"},J:{c:{B:.O},b:p,a:"K"},r:{c:{x:l},a:"u",b:1m,h:"z"},A:{c:{e:W},a:"y",b:1p}},{i:"F t R d m s (l°, S T)",d:[5,9],g:1,f:{e:1i,j:"E",T:"S"},J:{c:{B:.O},b:p,a:"K"},r:{c:{x:-l},a:"u",b:1m,h:"z"},A:{c:{e:W},a:"y",b:1p}},{i:"F t R d m L (l°, S T)",d:[5,9],g:1,f:{e:1i,j:"o",T:"S"},J:{c:{B:.O},b:p,a:"K"},r:{c:{w:-l},a:"I",b:G,h:"D"},A:{c:{e:W},a:"y",b:1p}},{i:"F t R d m H (l°, S T)",d:[5,9],g:1,f:{e:1i,j:"E",T:"S"},J:{c:{B:.O},b:p,a:"K"},r:{c:{w:l},a:"I",b:G,h:"D"},A:{c:{e:W},a:"y",b:1p}},{i:"F t z R d k (l°, S T)",d:[5,9],g:1,f:{e:1i,j:"k",T:"S"},J:{c:{B:.O},b:p,a:"K"},r:{c:{x:l},a:"u",b:1m,h:"z"},A:{c:{e:W},a:"y",b:1p}},{i:"F t D R d k (l°, S T)",d:[5,9],g:1,f:{e:1i,j:"k",T:"S"},J:{c:{B:.O},b:p,a:"K"},r:{c:{w:-l},a:"I",b:G,h:"D"},A:{c:{e:W},a:"y",b:1p}},{i:"F t R N m L (l°, S T)",d:1,g:[7,11],f:{e:1i,j:"o",T:"S"},J:{c:{B:.O},b:p,a:"K"},r:{c:{w:-l},a:"u",b:1m,h:"D"},A:{c:{e:W},a:"y",b:1p}},{i:"F t R N m H (l°, S T)",d:1,g:[7,11],f:{e:1i,j:"E",T:"S"},J:{c:{B:.O},b:p,a:"K"},r:{c:{w:l},a:"u",b:1m,h:"D"},A:{c:{e:W},a:"y",b:1p}},{i:"F t R N m C (l°, S T)",d:1,g:[7,11],f:{e:1i,j:"o",T:"S"},J:{c:{B:.O},b:p,a:"K"},r:{c:{x:l},a:"I",b:G,h:"z"},A:{c:{e:W},a:"y",b:1p}},{i:"F t R N m s (l°, S T)",d:1,g:[7,11],f:{e:1i,j:"E",T:"S"},J:{c:{B:.O},b:p,a:"K"},r:{c:{x:-l},a:"I",b:G,h:"z"},A:{c:{e:W},a:"y",b:1p}},{i:"F t z R N k (l°, S T)",d:1,g:[7,11],f:{e:1i,j:"k",T:"S"},J:{c:{B:.O},b:p,a:"K"},r:{c:{x:l},a:"I",b:G,h:"z"},A:{c:{e:W},a:"y",b:1p}},{i:"F t D R N k (l°, S T)",d:1,g:[7,11],f:{e:1i,j:"k",T:"S"},J:{c:{B:.O},b:p,a:"K"},r:{c:{w:-l},a:"u",b:1m,h:"D"},A:{c:{e:W},a:"y",b:1p}},{i:"1W 1q t 1y 1X",d:1,g:1,f:{e:1,j:"o",T:"S"},J:{c:{B:.1i,x:-1Y,1B:0},b:13,a:"1z"},r:{c:{B:1,x:-1D,1B:1},a:"y",b:13,h:"z"}},{i:"1Z 1q t 1y 1X",d:1,g:1,f:{e:1,j:"o",T:"S"},J:{c:{B:.1i,w:-1Y,1B:0},b:13,a:"1z"},r:{c:{B:1,w:-1D,1B:1},a:"y",b:13,h:"D"}},{i:"1W 1q t 1y 1n",d:[2,3],g:[3,5],f:{e:1b,j:"k"},J:{c:{B:.q,1B:0},b:1a,a:"1z"},r:{c:{x:-1s,w:l},a:"u",b:1,h:"D"},A:{c:{x:0,1B:1},a:"y",b:1m}},{i:"1Z 1q t 1y 1n",d:[2,3],g:[3,5],f:{e:1b,j:"k"},J:{c:{B:.q,1B:0},b:1a,a:"1z"},r:{c:{w:-1s,x:l},a:"u",b:1,h:"z"},A:{c:{w:0,1B:1},a:"y",b:1m}}]};',62,138,'||||||||||easing|duration|transition|rows|delay|tile|cols|direction|name|sequence|random|180|to|type|forward|600|75|animation|left|and|easeInOutQuart|90|rotateX|rotateY|easeOutQuart|horizontal|after|scale3d|right|vertical|reverse|Scaling|1e3|top|easeInOutBack|before|easeOutBack|bottom|from|columns|85|tiles|mixed|spinning|large|depth|slide|750|200|sliding|Fading|Sliding||||1500|fade|||easeInOutQuint|turning|55|350|50|100|Turning|Spinning|easeInOutQuad|scale|col|65|30|500|450|1200|cuboids|700|400|rotating|rotate|45|35|cuboid|Carousel|Flying|Smooth|fading|easeInQuart|800|opacity|95|540|Mirror|Horizontal|Vertical|mirror|Random|slices|91|1300|drunk|out|directions|topright|in|150|2e3|Drunk|colums|scaling|Horizontally|cube|270|Vertically|var|layerSliderTransitions|t2d|Crossfading|linear||sliging|topleft|bottomright|bottomleft|diagonal|850|t3d|87'.split('|'),0,{}));
;if(!Array.isArray){Array.isArray=function(t){return Object.prototype.toString.call(t)==='[object Array]'}}(function(t){'use strict';t(document).ready(function(){var e=a('html');t.avia_utilities=t.avia_utilities||{};if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&'ontouchstart'in document.documentElement){t.avia_utilities.isMobile=!0}
else{t.avia_utilities.isMobile=!1};l();i();new t.AviaTooltip({'class':'avia-search-tooltip',data:'avia-search-tooltip',event:'click',position:'bottom',scope:'body',attach:'element',within_screen:!0});new t.AviaTooltip({'class':'avia-related-tooltip',data:'avia-related-tooltip',scope:'.related_posts, .av-share-box',attach:'element',delay:0});new t.AviaAjaxSearch({scope:'#header, .avia_search_element'});if(t.fn.avia_iso_sort)t('.grid-sort-container').avia_iso_sort();o();t.avia_utilities.avia_ajax_call()});t.avia_utilities=t.avia_utilities||{};t.avia_utilities.avia_ajax_call=function(e){if(typeof e=='undefined'){e='body'};t('a.avianolink').on('click',function(t){t.preventDefault()});t('a.aviablank').attr('target','_blank');if(t.fn.avia_activate_lightbox){t(e).avia_activate_lightbox()};if(t.fn.avia_scrollspy){if(e=='body'){t('body').avia_scrollspy({target:'.main_menu .menu li > a'})}
else{t('body').avia_scrollspy('refresh')}};if(t.fn.avia_smoothscroll)t('a[href*="#"]',e).avia_smoothscroll(e);r(e);n(e);s(e);if(t.fn.avia_html5_activation&&t.fn.mediaelementplayer)t('.avia_video, .avia_audio',e).avia_html5_activation({ratio:'16:9'})};t.avia_utilities.log=function(t,e,i){if(typeof console=='undefined'){return};if(typeof e=='undefined'){e='log'};e='AVIA-'+e.toUpperCase();console.log('['+e+'] '+t);if(typeof i!='undefined')console.log(i)};function i(){var s=t(window),i=t('html').is('.html_header_sidebar')?'#main':'#header',o=t(i),r=o.parents('div').eq(0),l=t(i+' .container').first(),e='',a=function(){var i='',a=Math.round(l.width()),n=Math.round(o.width()),s=Math.round(r.width());i+=' #header .three.units{width:'+(a*0.25)+'px;}';i+=' #header .six.units{width:'+(a*0.50)+'px;}';i+=' #header .nine.units{width:'+(a*0.75)+'px;}';i+=' #header .twelve.units{width:'+(a)+'px;}';i+=' .av-framed-box .av-layout-tab-inner .container{width:'+(s)+'px;}';i+=' .html_header_sidebar .av-layout-tab-inner .container{width:'+(n)+'px;}';i+=' .boxed .av-layout-tab-inner .container{width:'+(n)+'px;}';i+=' .av-framed-box#top .av-submenu-container{width:'+(s)+'px;}';try{e.text(i)}catch(c){e.remove();var h=t('head').first();e=t('<style type=\'text/css\' id=\'av-browser-width-calc\'>'+i+'</style>').appendTo(h)}};if(t('.avia_mega_div').length>0||t('.av-layout-tab-inner').length>0||t('.av-submenu-container').length>0){var n=t('head').first();e=t('<style type=\'text/css\' id=\'av-browser-width-calc\'></style>').appendTo(n);s.on('debouncedresize',a);a()}};function o(){var e=t('.sidebar_shadow#top #main .sidebar'),i=t('.sidebar_shadow .content');if(e.height()>=i.height()){e.addClass('av-enable-shadow')}
else{i.addClass('av-enable-shadow')}};function e(e,o){var i=this,s=t.proxy(i.process,i),a=t.proxy(i.refresh,i),r=t(e).is('body')?t(window):t(e),n;i.$body=t('body');i.$win=t(window);i.options=t.extend({},t.fn.avia_scrollspy.defaults,o);i.selector=(i.options.target||((n=t(e).attr('href'))&&n.replace(/.*(?=#[^\s]+$)/,''))||'');i.activation_true=!1;if(i.$body.find(i.selector+'[href*=\'#\']').length){i.$scrollElement=r.on('scroll.scroll-spy.data-api',s);i.$win.on('av-height-change',a);i.$body.on('av_resize_finished',a);i.activation_true=!0;i.checkFirst();setTimeout(function(){i.refresh();i.process()},100)}};e.prototype={constructor:e,checkFirst:function(){var t=window.location.href.split('#')[0],e=this.$body.find(this.selector+'[href=\''+t+'\']').attr('href',t+'#top')},refresh:function(){if(!this.activation_true)return;var e=this,i;this.offsets=t([]);this.targets=t([]);i=this.$body.find(this.selector).map(function(){var n=t(this),s=n.data('target')||n.attr('href'),i=this.hash,i=i.replace(/\//g,''),o=/^#\w/.test(i)&&t(i),a=e.$scrollElement.get(0),r=a!=null&&a===a.window;return(o&&o.length&&[[o.position().top+(!r&&e.$scrollElement.scrollTop()),s]])||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){e.offsets.push(this[0]);e.targets.push(this[1])})},process:function(){if(!this.offsets)return;if(isNaN(this.options.offset))this.options.offset=0;var i=this.$scrollElement.scrollTop()+this.options.offset,n=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,s=n-this.$scrollElement.height(),e=this.offsets,o=this.targets,a=this.activeTarget,t;if(i>=s){return a!=(t=o.last()[0])&&this.activate(t)};for(t=e.length;t--;){a!=o[t]&&i>=e[t]&&(!e[t+1]||i<=e[t+1])&&this.activate(o[t])}},activate:function(e){var i,o;this.activeTarget=e;t(this.selector).parent('.'+this.options.applyClass).removeClass(this.options.applyClass);o=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]';i=t(o).parent('li').addClass(this.options.applyClass);if(i.parent('.sub-menu').length){i=i.closest('li.dropdown_ul_available').addClass(this.options.applyClass)};i.trigger('activate')}};t.fn.avia_scrollspy=function(i){return this.each(function(){var a=t(this),o=a.data('scrollspy'),n=typeof i=='object'&&i;if(!o)a.data('scrollspy',(o=new e(this,n)));if(typeof i=='string')o[i]()})};t.fn.avia_scrollspy.Constructor=e;t.fn.avia_scrollspy.calc_offset=function(){var e=(parseInt(t('.html_header_sticky #main').data('scroll-offset'),10))||0,i=(t('.html_header_sticky:not(.html_top_nav_header) #header_main_alternate').outerHeight())||0,o=(t('.html_header_sticky.html_header_unstick_top_disabled #header_meta').outerHeight())||0,a=1,n=parseInt(t('html').css('margin-top'),10)||0,s=parseInt(t('.av-frame-top ').outerHeight(),10)||0;return e+i+o+a+n+s};t.fn.avia_scrollspy.defaults={offset:t.fn.avia_scrollspy.calc_offset(),applyClass:'current-menu-item'};function a(e){var i={},s=function(t){t=t.toLowerCase();var e=/(edge)\/([\w.]+)/.exec(t)||/(opr)[\/]([\w.]+)/.exec(t)||/(chrome)[ \/]([\w.]+)/.exec(t)||/(iemobile)[\/]([\w.]+)/.exec(t)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf('trident')>=0&&/(rv)(?::| )([\w.]+)/.exec(t)||t.indexOf('compatible')<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[];return{browser:e[5]||e[3]||e[1]||'',version:e[2]||e[4]||'0',versionNumber:e[4]||e[2]||'0'}};var a=s(navigator.userAgent);if(a.browser){i.browser=a.browser;i[a.browser]=!0;i.version=a.version};if(i.chrome){i.webkit=!0}
else if(i.webkit){i.safari=!0};if(typeof(i)!=='undefined'){var o='',n=i.version?parseInt(i.version):'';if(i.msie||i.rv||i.iemobile){o+='avia-msie'}
else if(i.webkit){o+='avia-webkit'}
else if(i.mozilla){o+='avia-mozilla'};if(i.version)o+=' '+o+'-'+n+' ';if(i.browser)o+=' avia-'+i.browser+' avia-'+i.browser+'-'+n+' '};if(e)t(e).addClass(o);return o};t.fn.avia_html5_activation=function(e){var i={ratio:'16:9'};var e=t.extend(i,e),o=t.avia_utilities.isMobile;this.each(function(){var e=t(this),o='#'+e.attr('id'),i=e.attr('poster');e.mediaelementplayer({defaultVideoWidth:480,defaultVideoHeight:270,videoWidth:-1,videoHeight:-1,audioWidth:400,audioHeight:30,startVolume:0.8,loop:!1,enableAutosize:!1,features:['playpause','progress','current','duration','tracks','volume'],alwaysShowControls:!1,iPadUseNativeControls:!1,iPhoneUseNativeControls:!1,AndroidUseNativeControls:!1,alwaysShowHours:!1,showTimecodeFrameCount:!1,framesPerSecond:25,enableKeyboard:!0,pauseOtherPlayers:!1,poster:i,success:function(i,o,a){t.AviaVideoAPI.players[e.attr('id').replace(/_html5/,'')]=a;setTimeout(function(){if(i.pluginType=='flash'){i.addEventListener('canplay',function(){e.trigger('av-mediajs-loaded')},!1)}
else{e.trigger('av-mediajs-loaded').addClass('av-mediajs-loaded')};i.addEventListener('ended',function(){e.trigger('av-mediajs-ended')},!1);var o=document.getElementById(t(i).attr('id')+'_html5');if(o&&o!==i){i.addEventListener('ended',function(){t(o).trigger('av-mediajs-ended')})}},10)},error:function(){},keyActions:[]})})};function n(e){if(t.avia_utilities.isMobile)return;if(t('body').hasClass('av-disable-avia-hover-effect')){return};var a='',o=t.avia_utilities.supports('transition');if(e=='body'){var i=t('#main a img').parents('a').not('.noLightbox, .noLightbox a, .avia-gallery-thumb a, .ls-wp-container a, .noHover, .noHover a, .av-logo-container .logo a').add('#main .avia-hover-fx')}
else{var i=t('a img',e).parents('a').not('.noLightbox, .noLightbox a, .avia-gallery-thumb a, .ls-wp-container a, .noHover, .noHover a, .av-logo-container .logo a').add('.avia-hover-fx',e)};i.each(function(e){var a=t(this),r=a.find('img').first();if(r.hasClass('alignleft'))a.addClass('alignleft').css({float:'left',margin:0,padding:0});if(r.hasClass('alignright'))a.addClass('alignright').css({float:'right',margin:0,padding:0});if(r.hasClass('aligncenter'))a.addClass('aligncenter').css({float:'none','text-align':'center',margin:0,padding:0});if(r.hasClass('alignnone')){a.addClass('alignnone').css({margin:0,padding:0});if(!a.css('display')||a.css('display')=='inline'){a.css({display:'inline-block'})}};if(!a.css('position')||a.css('position')=='static'){a.css({position:'relative',overflow:'hidden'})};var l=a.attr('href'),n='overlay-type-video',c=a.data('opacity')||0.7,h=5,s=a.find('.image-overlay');if(l){if(l.match(/(jpg|gif|jpeg|png|tif)/))n='overlay-type-image';if(!l.match(/(jpg|gif|jpeg|png|\.tif|\.mov|\.swf|vimeo\.com|youtube\.com)/))n='overlay-type-extern'};if(!s.length){s=t('<span class=\'image-overlay '+n+'\'><span class=\'image-overlay-inside\'></span></span>').appendTo(a)};a.on('mouseenter',function(e){var i=a.find('img').first(),r=i.get(0),l=i.outerHeight(),f=i.outerWidth(),p=i.position(),d=a.css('display'),s=a.find('.image-overlay');if(l>100){if(!s.length){s=t('<span class=\'image-overlay '+n+'\'><span class=\'image-overlay-inside\'></span></span>').appendTo(a)};if(a.height()==0){a.addClass(r.className);r.className=''};if(!d||d=='inline'){a.css({display:'block'})};s.css({left:(p.left-h)+parseInt(i.css('margin-left'),10),top:p.top+parseInt(i.css('margin-top'),10)}).css({overflow:'hidden',display:'block','height':l,'width':(f+(2*h))});if(o===!1)s.stop().animate({opacity:c},400)}
else{s.css({display:'none'})}}).on('mouseleave',i,function(){if(s.length){if(o===!1)s.stop().animate({opacity:0},400)}})})}(function(t){t.fn.avia_smoothscroll=function(e){if(!this.length)return;var a=t(window),d=t('#header'),f=t('.html_header_top.html_header_sticky #main').not('.page-template-template-blank-php #main'),u=t('.html_header_top.html_header_unstick_top_disabled #header_meta'),v=t('.html_header_top:not(.html_top_nav_header) #header_main_alternate'),m=t('.html_header_top.html_top_nav_header'),l=t('.html_header_top.html_header_shrinking').length,h=t('.av-frame-top'),i=0,c=t.avia_utilities.isMobile,o=t('.sticky_placeholder').first(),p=function(){if(d.css('position')=='fixed'){var e=parseInt(f.data('scroll-offset'),10)||0,o=parseInt(u.outerHeight(),10)||0,a=parseInt(v.outerHeight(),10)||0;if(e>0&&l){e=(e/2)+o+a}
else{e=e+o+a};e+=parseInt(t('html').css('margin-top'),10);i=e}
else{i=parseInt(t('html').css('margin-top'),10)};if(h.length){i+=h.height()};if(m.length){i=t('.html_header_sticky #header_main_alternate').height()+parseInt(t('html').css('margin-top'),10)};if(c){i=0}};if(c)l=!1;p();a.on('debouncedresize av-height-change',p);var n=window.location.hash.replace(/\//g,'');if(i>0&&n&&e=='body'&&n.charAt(1)!='!'&&n.indexOf('=')===-1){var s=t(n),r=0;if(s.length){a.on('scroll.avia_first_scroll',function(){setTimeout(function(){if(o.length&&s.offset().top>o.offset().top){r=o.outerHeight()-3};a.off('scroll.avia_first_scroll').scrollTop(s.offset().top-i-r)},10)})}};return this.each(function(){t(this).on('click',function(e){var n=this.hash.replace(/\//g,''),h=t(this),f=h.data();if(n!=''&&n!='#'&&n!='#prev'&&n!='#next'&&!h.is('.comment-reply-link, #cancel-comment-reply-link, .no-scroll')){var s='',d='';if('#next-section'==n){d=n;s=h.parents('.container_wrap').eq(0).nextAll('.container_wrap').eq(0);n='#'+s.attr('id')}
else{s=t(this.hash.replace(/\//g,''))};if(s.length){var c=a.scrollTop(),p=s.offset().top,r=p-i,l=window.location.hash,l=l.replace(/\//g,''),u=window.location.href.replace(l,''),v=this,m=f.duration||1200,g=f.easing||'easeInOutQuint';if(o.length&&p>o.offset().top){r-=o.outerHeight()-3};if(u+n==v||d){if(c!=r){if(!(c==0&&r<=0)){a.trigger('avia_smooth_scroll_start');t('html:not(:animated),body:not(:animated)').animate({scrollTop:r},m,g,function(){if(window.history.replaceState)window.history.replaceState('','',n)})}};e.preventDefault()}}}})})}})(jQuery);function s(t){var e=jQuery('iframe[src*="youtube.com"]:not(.av_youtube_frame)',t),i=jQuery('iframe[src*="youtube.com"]:not(.av_youtube_frame) object, iframe[src*="youtube.com"]:not(.av_youtube_frame) embed',t).attr('wmode','opaque');e.each(function(){var e=jQuery(this),t=e.attr('src');if(t){if(t.indexOf('?')!==-1){t+='&wmode=opaque&rel=0'}
else{t+='?wmode=opaque&rel=0'};e.attr('src',t)}})};function r(t){if(!t)t=document;var o=jQuery(window),e=jQuery('.avia-iframe-wrap iframe:not(.avia-slideshow iframe):not( iframe.no_resize):not(.avia-video iframe)',t),i=function(){e.each(function(){var e=jQuery(this),i=e.parent(),t=56.25;if(this.width&&this.height){t=(100/this.width)*this.height;i.css({'padding-bottom':t+'%'})}})};i()};function l(){var i=t(window),a=!1,e=t('#scroll-top-link'),o=function(){var t=i.scrollTop();if(t<500){e.removeClass('avia_pop_class')}
else if(!e.is('.avia_pop_class')){e.addClass('avia_pop_class')}};i.on('scroll',function(){window.requestAnimationFrame(o)});o()};t.AviaAjaxSearch=function(e){var i={delay:300,minChars:3,scope:'body'};this.options=t.extend({},i,e);this.scope=t(this.options.scope);this.timer=!1;this.lastVal='';this.bind_events()};t.AviaAjaxSearch.prototype={bind_events:function(){this.scope.on('keyup','#s:not(".av_disable_ajax_search #s")',t.proxy(this.try_search,this));this.scope.on('click','#s.av-results-parked',t.proxy(this.reset,this))},try_search:function(e){var i=t(e.currentTarget).parents('form').eq(0),o=i.find('.ajax_search_response');clearTimeout(this.timer);if(e.currentTarget.value.length>=this.options.minChars&&this.lastVal!=e.currentTarget.value.trim()){this.timer=setTimeout(t.proxy(this.do_search,this,e),this.options.delay)}
else if(e.currentTarget.value.length==0){this.timer=setTimeout(t.proxy(this.reset,this,e),this.options.delay)};if(e.keyCode===27){this.reset(e)}},reset:function(e){var i=t(e.currentTarget).parents('form').eq(0),o=i.find('.ajax_search_response'),a=t(i.attr('data-ajaxcontainer')).find('.ajax_search_response'),n=t(e.currentTarget);if(t(e.currentTarget).hasClass('av-results-parked')){o.show();a.show();t('body > .ajax_search_response').show()}
else{o.remove();a.remove();n.val('');t('body > .ajax_search_response').remove()}},do_search:function(e){var g=this,l=t(e.currentTarget).attr('autocomplete','off'),h=t(e.currentTarget).parents('.av_searchform_wrapper').eq(0),p=h.offset(),u=h.outerWidth(),v=h.outerHeight(),i=l.parents('form').eq(0),m=i.find('#searchsubmit'),n=i,o=n.find('.ajax_search_response'),d=t('<div class="ajax_load"><span class="ajax_load_inner"></span></div>'),s=i.attr('action'),c=i.serialize();c+='&action=avia_ajax_search';if(!o.length){o=t('<div class="ajax_search_response" style="display:none;"></div>')};if(i.attr('id')=='searchform_element'){o.addClass('av_searchform_element_results')};if(s.indexOf('?')!=-1){s=s.split('?');c+='&'+s[1]};if(i.attr('data-ajaxcontainer')){var r=i.attr('data-ajaxcontainer');if(t(r).length){t(r).find('.ajax_search_response').remove();n=t(r)}};a={};if(i.hasClass('av_results_container_fixed')){t('body').find('.ajax_search_response').remove();n=t('body');var a={top:p.top+v,left:p.left,width:u};o.addClass('main_color');t(window).resize(function(){o.remove();t.proxy(this.reset,this);l.val('')})};if(i.attr('data-results_style')){var f=JSON.parse(i.attr('data-results_style'));a=Object.assign(a,f);if('color'in a){o.addClass('av_has_custom_color')}};o.css(a);if(n.hasClass('avia-section')){o.addClass('container')};o.appendTo(n);if(o.find('.ajax_not_found').length&&e.currentTarget.value.indexOf(this.lastVal)!=-1)return;this.lastVal=e.currentTarget.value;t.ajax({url:avia_framework_globals.ajaxurl,type:'POST',data:c,beforeSend:function(){d.insertAfter(m);i.addClass('ajax_loading_now')},success:function(t){if(t==0)t='';o.html(t).show()},complete:function(){d.remove();i.removeClass('ajax_loading_now')}});t(document).on('click',function(e){if(!t(e.target).closest(i).length){if(t(o).is(':visible')){t(o).hide();l.addClass('av-results-parked')}}})}};t.AviaTooltip=function(e){var i={delay:1500,delayOut:300,delayHide:0,'class':'avia-tooltip',scope:'body',data:'avia-tooltip',attach:'body',event:'mouseenter',position:'top',extraClass:'avia-tooltip-class',permanent:!1,within_screen:!1};this.options=t.extend({},i,e);this.body=t('body');this.scope=t(this.options.scope);this.tooltip=t('<div class="'+this.options['class']+' avia-tt"><span class="avia-arrow-wrap"><span class="avia-arrow"></span></span></div>');this.inner=t('<div class="inner_tooltip"></div>').prependTo(this.tooltip);this.open=!1;this.timer=!1;this.active=!1;this.bind_events()};t.AviaTooltip.openTTs=[];t.AviaTooltip.openTT_Elements=[];t.AviaTooltip.prototype={bind_events:function(){var i='.av-permanent-tooltip [data-'+this.options.data+']',e='[data-'+this.options.data+']:not( .av-permanent-tooltip [data-'+this.options.data+'])';this.scope.on('av_permanent_show',i,t.proxy(this.display_tooltip,this));t(i).addClass('av-perma-tooltip').trigger('av_permanent_show');this.scope.on(this.options.event+' mouseleave',e,t.proxy(this.start_countdown,this));if(this.options.event!='click'){this.scope.on('mouseleave',e,t.proxy(this.hide_tooltip,this));this.scope.on('click',e,t.proxy(this.hide_on_click_tooltip,this))}
else{this.body.on('mousedown',t.proxy(this.hide_tooltip,this))}},start_countdown:function(e){clearTimeout(this.timer);var o=this.options.event=='click'?e.target:e.currentTarget,a=t(o);if(e.type==this.options.event){var i=this.options.event=='click'?0:this.open?0:this.options.delay;this.timer=setTimeout(t.proxy(this.display_tooltip,this,e),i)}
else if(e.type=='mouseleave'){if(!a.hasClass('av-close-on-click-tooltip')){this.timer=setTimeout(t.proxy(this.stop_instant_open,this,e),this.options.delayOut)}};e.preventDefault()},reset_countdown:function(t){clearTimeout(this.timer);this.timer=!1},display_tooltip:function(e){var y=this,w=this.options.event=='click'?e.target:e.currentTarget,i=t(w),c=i.data(this.options.data),u=i.data('avia-created-tooltip'),v=i.data('avia-tooltip-class'),d=this.options.attach=='element'?i:this.body,s=this.options.attach=='element'?i.position():i.offset(),h=i.data('avia-tooltip-position'),p=i.data('avia-tooltip-alignment'),m=!1,o=!1,g=!1;c='string'==typeof c?c.trim():'';if(i.is('.av-perma-tooltip')){s={top:0,left:0};d=i;m=!0};if(c==''){return};if(h==''||typeof h=='undefined'){h=this.options.position};if(p==''||typeof p=='undefined'){p='center'};if(typeof u!='undefined'){o=t.AviaTooltip.openTTs[u]}
else{this.inner.html(c);o=this.tooltip.clone();g=!0;if(this.options.attach=='element'&&m!==!0){o.insertAfter(d)}
else{o.appendTo(d)};if(v!=''){o.addClass(v)}};if(this.open&&this.active==o){return};if(i.hasClass('av-close-on-click-tooltip')){this.hide_all_tooltips()};this.open=!0;this.active=o;if((o.is(':animated:visible')&&e.type=='click')||i.is('.'+this.options['class'])||i.parents('.'+this.options['class']).length!=0){return};var r={},l={},n='',a='';if(h=='top'|| h=='bottom'){switch(p){case'left':a=s.left;break;case'right':a=s.left+i.outerWidth()-o.outerWidth();break;default:a=(s.left+(i.outerWidth()/2))-(o.outerWidth()/2);break};if(y.options.within_screen){var f=i.offset().left+(i.outerWidth()/2)-(o.outerWidth()/2)+parseInt(o.css('margin-left'),10);if(f<0){a=a-f}}}
else{switch(p){case'top':n=s.top;break;case'bottom':n=s.top+i.outerHeight()-o.outerHeight();break;default:n=(s.top+(i.outerHeight()/2))-(o.outerHeight()/2);break}};switch(h){case'top':n=s.top-o.outerHeight();r={top:n-10,left:a};l={top:n};break;case'bottom':n=s.top+i.outerHeight();r={top:n+10,left:a};l={top:n};break;case'left':a=s.left-o.outerWidth();r={top:n,left:a-10};l={left:a};break;case'right':a=s.left+i.outerWidth();r={top:n,left:a+10};l={left:a};break};r['display']='block';r['opacity']=0;l['opacity']=1;o.css(r).stop().animate(l,200);o.find('input, textarea').trigger('focus');if(g){t.AviaTooltip.openTTs.push(o);t.AviaTooltip.openTT_Elements.push(i);i.data('avia-created-tooltip',t.AviaTooltip.openTTs.length-1)}},hide_on_click_tooltip:function(e){if(this.options.event=='click'){return};var i=t(e.currentTarget);if(!i.hasClass('av-close-on-click-tooltip')){return};if(!i.find('a')){e.preventDefault()};var a=i.data('avia-created-tooltip');if('undefined'!=typeof a){var o=t.AviaTooltip.openTTs[a];if('undefined'!=typeof o&&o==this.active){this.hide_all_tooltips()}}},hide_all_tooltips:function(){var i,o,a;for(var e=0;e<t.AviaTooltip.openTTs.length;++e){i=t.AviaTooltip.openTTs[e];a=t.AviaTooltip.openTT_Elements[e];o=a.data('avia-tooltip-position'),this.animate_hide_tooltip(i,o)};this.open=!1;this.active=!1},hide_tooltip:function(e){var i=t(e.currentTarget),o,s,a=i.data('avia-tooltip-position'),n=i.data('avia-tooltip-alignment'),o=!1;if(a==''||typeof a=='undefined'){a=this.options.position};if(n==''||typeof n=='undefined'){n='center'};if(this.options.event=='click'){i=t(e.target);if(!i.is('.'+this.options['class'])&&i.parents('.'+this.options['class']).length==0){if(this.active.length){o=this.active;this.active=!1}}}
else{if(!i.hasClass('av-close-on-click-tooltip')){o=i.data('avia-created-tooltip');o=typeof o!='undefined'?t.AviaTooltip.openTTs[o]:!1}};this.animate_hide_tooltip(o,a)},animate_hide_tooltip:function(t,e){if(t){var i={opacity:0};switch(e){case'top':i['top']=parseInt(t.css('top'),10)-10;break;case'bottom':i['top']=parseInt(t.css('top'),10)+10;break;case'left':i['left']=parseInt(t.css('left'),10)-10;break;case'right':i['left']=parseInt(t.css('left'),10)+10;break};t.animate(i,200,function(){t.css({display:'none'})})}},stop_instant_open:function(t){this.open=!1}}})(jQuery);!function(){'use strict';function t(o){if(!o)throw new Error('No options passed to Waypoint constructor');if(!o.element)throw new Error('No element option passed to Waypoint constructor');if(!o.handler)throw new Error('No handler option passed to Waypoint constructor');this.key='waypoint-'+i,this.options=t.Adapter.extend({},t.defaults,o),this.element=this.options.element,this.adapter=new t.Adapter(this.element),this.callback=o.handler,this.axis=this.options.horizontal?'horizontal':'vertical',this.enabled=this.options.enabled,this.triggerPoint=null,this.group=t.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=t.Context.findOrCreateByElement(this.options.context),t.offsetAliases[this.options.offset]&&(this.options.offset=t.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),e[this.key]=this,i+=1};var i=0,e={};t.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},t.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},t.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete e[this.key]},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},t.prototype.next=function(){return this.group.next(this)},t.prototype.previous=function(){return this.group.previous(this)},t.invokeAll=function(t){var o=[];for(var n in e)o.push(e[n]);for(var i=0,a=o.length;a>i;i++)o[i][t]()},t.destroyAll=function(){t.invokeAll('destroy')},t.disableAll=function(){t.invokeAll('disable')},t.enableAll=function(){t.Context.refreshAll();for(var i in e)e[i].enabled=!0;return this},t.refreshAll=function(){t.Context.refreshAll()},t.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},t.viewportWidth=function(){return document.documentElement.clientWidth},t.adapters=[],t.defaults={context:window,continuous:!0,enabled:!0,group:'default',horizontal:!1,offset:0},t.offsetAliases={'bottom-in-view':function(){return this.context.innerHeight()-this.adapter.outerHeight()},'right-in-view':function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=t}(),function(){'use strict';function n(t){window.setTimeout(t,1e3/60)};function t(a){this.element=a,this.Adapter=e.Adapter,this.adapter=new this.Adapter(a),this.key='waypoint-context-'+o,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},a.waypointContextKey=this.key,i[a.waypointContextKey]=this,o+=1,e.windowContext||(e.windowContext=!0,e.windowContext=new t(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()};var o=0,i={},e=window.Waypoint,a=window.onload;t.prototype.add=function(t){var e=t.options.horizontal?'horizontal':'vertical';this.waypoints[e][t.key]=t,this.refresh()},t.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical),o=this.element==this.element.window;t&&e&&!o&&(this.adapter.off('.waypoints'),delete i[this.key])},t.prototype.createThrottledResizeHandler=function(){function i(){t.handleResize(),t.didResize=!1};var t=this;this.adapter.on('resize.waypoints',function(){t.didResize||(t.didResize=!0,e.requestAnimationFrame(i))})},t.prototype.createThrottledScrollHandler=function(){function i(){t.handleScroll(),t.didScroll=!1};var t=this;this.adapter.on('scroll.waypoints',function(){(!t.didScroll||e.isTouch)&&(t.didScroll=!0,e.requestAnimationFrame(i))})},t.prototype.handleResize=function(){e.Context.refreshAll()},t.prototype.handleScroll=function(){var a={},i={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:'right',backward:'left'},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:'down',backward:'up'}};for(var o in i){var e=i[o],p=e.newScroll>e.oldScroll,d=p?e.forward:e.backward;for(var c in this.waypoints[o]){var t=this.waypoints[o][c];if(null!==t.triggerPoint){var n=e.oldScroll<t.triggerPoint,s=e.newScroll>=t.triggerPoint,l=n&&s,h=!n&&!s;(l||h)&&(t.queueTrigger(d),a[t.group.id]=t.group)}}};for(var r in a)a[r].flushTriggers();this.oldScroll={x:i.horizontal.newScroll,y:i.vertical.newScroll}},t.prototype.innerHeight=function(){return this.element==this.element.window?e.viewportHeight():this.adapter.innerHeight()},t.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},t.prototype.innerWidth=function(){return this.element==this.element.window?e.viewportWidth():this.adapter.innerWidth()},t.prototype.destroy=function(){var e=[];for(var i in this.waypoints)for(var a in this.waypoints[i])e.push(this.waypoints[i][a]);for(var t=0,o=e.length;o>t;t++)e[t].destroy()},t.prototype.refresh=function(){var c,a=this.element==this.element.window,m=a?void 0:this.adapter.offset(),n={};this.handleScroll(),c={horizontal:{contextOffset:a?0:m.left,contextScroll:a?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:'right',backward:'left',offsetProp:'left'},vertical:{contextOffset:a?0:m.top,contextScroll:a?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:'down',backward:'up',offsetProp:'top'}};for(var h in c){var i=c[h];for(var g in this.waypoints[h]){var p,s,r,d,f,t=this.waypoints[h][g],o=t.options.offset,u=t.triggerPoint,v=0,l=null==u;t.element!==t.element.window&&(v=t.adapter.offset()[i.offsetProp]),'function'==typeof o?o=o.apply(t):'string'==typeof o&&(o=parseFloat(o),t.options.offset.indexOf('%')>-1&&(o=Math.ceil(i.contextDimension*o/100))),p=i.contextScroll-i.contextOffset,t.triggerPoint=Math.floor(v+p-o),s=u<i.oldScroll,r=t.triggerPoint>=i.oldScroll,d=s&&r,f=!s&&!r,!l&&d?(t.queueTrigger(i.backward),n[t.group.id]=t.group):!l&&f?(t.queueTrigger(i.forward),n[t.group.id]=t.group):l&&i.oldScroll>=t.triggerPoint&&(t.queueTrigger(i.forward),n[t.group.id]=t.group)}};return e.requestAnimationFrame(function(){for(var t in n)n[t].flushTriggers()}),this},t.findOrCreateByElement=function(e){return t.findByElement(e)||new t(e)},t.refreshAll=function(){for(var t in i)i[t].refresh()},t.findByElement=function(t){return i[t.waypointContextKey]},window.onload=function(){a&&a(),t.refreshAll()},e.requestAnimationFrame=function(t){var e=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||n;e.call(window,t)},e.Context=t}(),function(){'use strict';function i(t,e){return t.triggerPoint-e.triggerPoint};function a(t,e){return e.triggerPoint-t.triggerPoint};function t(t){this.name=t.name,this.axis=t.axis,this.id=this.name+'-'+this.axis,this.waypoints=[],this.clearTriggerQueues(),o[this.axis][this.name]=this};var o={vertical:{},horizontal:{}},e=window.Waypoint;t.prototype.add=function(t){this.waypoints.push(t)},t.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},t.prototype.flushTriggers=function(){for(var o in this.triggerQueues){var e=this.triggerQueues[o],r='up'===o||'left'===o;e.sort(r?a:i);for(var t=0,s=e.length;s>t;t+=1){var n=e[t];(n.options.continuous||t===e.length-1)&&n.trigger([o])}};this.clearTriggerQueues()},t.prototype.next=function(t){this.waypoints.sort(i);var o=e.Adapter.inArray(t,this.waypoints),a=o===this.waypoints.length-1;return a?null:this.waypoints[o+1]},t.prototype.previous=function(t){this.waypoints.sort(i);var o=e.Adapter.inArray(t,this.waypoints);return o?this.waypoints[o-1]:null},t.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},t.prototype.remove=function(t){var i=e.Adapter.inArray(t,this.waypoints);i>-1&&this.waypoints.splice(i,1)},t.prototype.first=function(){return this.waypoints[0]},t.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},t.findOrCreate=function(e){return o[e.axis][e.name]||new t(e)},e.Group=t}(),function(){'use strict';function e(e){this.$element=t(e)};var t=window.jQuery,i=window.Waypoint;t.each(['innerHeight','innerWidth','off','offset','on','outerHeight','outerWidth','scrollLeft','scrollTop'],function(t,i){e.prototype[i]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[i].apply(this.$element,t)}}),t.each(['extend','inArray','isEmptyObject'],function(i,o){e[o]=t[o]}),i.adapters.push({name:'jquery',Adapter:e}),i.Adapter=e}(),function(){'use strict';function t(t){return function(){var o=[],i=arguments[0];return'function'===typeof arguments[0]&&(i=t.extend({},arguments[1]),i.handler=arguments[0]),this.each(function(){var a=t.extend({},i,{element:this});'string'==typeof a.context&&(a.context=t(this).closest(a.context)[0]),o.push(new e(a))}),o}};var e=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=t(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=t(window.Zepto))}();(function(){var i=0,e=['ms','moz','webkit','o'];for(var t=0;t<e.length&&!window.requestAnimationFrame;++t){window.requestAnimationFrame=window[e[t]+'RequestAnimationFrame'];window.cancelAnimationFrame=window[e[t]+'CancelAnimationFrame']||window[e[t]+'CancelRequestAnimationFrame']};if(!window.requestAnimationFrame)window.requestAnimationFrame=function(t,e){var o=new Date().getTime(),a=Math.max(0,16-(o-i)),n=window.setTimeout(function(){t(o+a)},a);i=o+a;return n};if(!window.cancelAnimationFrame)window.cancelAnimationFrame=function(t){clearTimeout(t)}}());jQuery.expr.pseudos.regex=function(t,e,o){var i=o[3].split(','),a=/^(data|css):/,n={method:i[0].match(a)?i[0].split(':')[0]:'attr',property:i.shift().replace(a,'')},s='ig',r=new RegExp(i.join('').replace(/^\s+|\s+$/g,''),s);return r.test(jQuery(t)[n.method](n.property))};(function(i){"use strict";i(document).ready(function(){i.avia_utilities=i.avia_utilities||{};if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&"ontouchstart"in document.documentElement){i.avia_utilities.isMobile=!0}
else{i.avia_utilities.isMobile=!1};if(i.fn.avia_mobile_fixed)i(".avia-bg-style-fixed").avia_mobile_fixed();if(i.fn.avia_parallax)i(".av-parallax").avia_parallax();if(i.fn.avia_browser_height)i(".av-minimum-height, .avia-fullscreen-slider, .av-cell-min-height").avia_browser_height();if(i.fn.avia_video_section)i(".av-section-with-video-bg").avia_video_section();new i.AviaTooltip({"class":"avia-tooltip",data:"avia-tooltip",delay:0,scope:"body"});new i.AviaTooltip({"class":"avia-tooltip avia-icon-tooltip",data:"avia-icon-tooltip",delay:0,scope:"body"});i.avia_utilities.activate_shortcode_scripts();if(i.fn.layer_slider_height_helper)i(".avia-layerslider").layer_slider_height_helper();if(i.fn.avia_portfolio_preview){i(".grid-links-ajax").avia_portfolio_preview()};if(i.fn.avia_masonry)i(".av-masonry").avia_masonry();if(i.fn.aviaccordion)i(".aviaccordion").aviaccordion();if(i.fn.avia_textrotator)i(".av-rotator-container").avia_textrotator();if(i.fn.avia_sc_tab_section){i(".av-tab-section-container").avia_sc_tab_section()};if(i.fn.avia_hor_gallery){i(".av-horizontal-gallery").avia_hor_gallery()};if(i.fn.avia_link_column){i(".avia-link-column").avia_link_column()};if(i.fn.avia_delayed_animation_in_container){i(".av-animation-delay-container").avia_delayed_animation_in_container()}});i.avia_utilities=i.avia_utilities||{};i.avia_utilities.activate_shortcode_scripts=function(e){if(typeof e=="undefined"){e="body"};if(i.fn.avia_ajax_form){i(".avia_ajax_form:not( .avia-disable-default-ajax )",e).avia_ajax_form()};n(e);if(i.fn.aviaVideoApi){i(".avia-slideshow iframe[src*=\"youtube.com\"], .av_youtube_frame, .av_vimeo_frame, .avia-slideshow video").aviaVideoApi({},"li")};if(i.fn.avia_sc_toggle){i(".togglecontainer",e).avia_sc_toggle()};if(i.fn.avia_sc_tabs){i(".top_tab",e).avia_sc_tabs();i(".sidebar_tab",e).avia_sc_tabs({sidebar:!0})};if(i.fn.avia_sc_gallery){i(".avia-gallery",e).avia_sc_gallery()};if(i.fn.avia_sc_animated_number){i(".avia-animated-number",e).avia_sc_animated_number()};if(i.fn.avia_sc_animation_delayed){i(".av_font_icon",e).avia_sc_animation_delayed({delay:100});i(".avia-image-container",e).avia_sc_animation_delayed({delay:100});i(".av-hotspot-image-container",e).avia_sc_animation_delayed({delay:100});i(".av-animated-generic",e).avia_sc_animation_delayed({delay:100})};if(i.fn.avia_sc_iconlist){i(".avia-icon-list.av-iconlist-big.avia-iconlist-animate",e).avia_sc_iconlist()};if(i.fn.avia_sc_progressbar){i(".avia-progress-bar-container",e).avia_sc_progressbar()};if(i.fn.avia_sc_testimonial){i(".avia-testimonial-wrapper",e).avia_sc_testimonial()};if(i.fn.aviaFullscreenSlider){i(".avia-slideshow.av_fullscreen",e).aviaFullscreenSlider()};if(i.fn.aviaSlider){i(".avia-slideshow:not(.av_fullscreen)",e).aviaSlider();i(".avia-content-slider-active",e).aviaSlider({wrapElement:".avia-content-slider-inner",slideElement:".slide-entry-wrap",fullfade:!0});i(".avia-slider-testimonials",e).aviaSlider({wrapElement:".avia-testimonial-row",slideElement:".avia-testimonial",fullfade:!0})};if(i.fn.aviaMagazine){i(".av-magazine-tabs-active",e).aviaMagazine()};if(i.fn.aviaHotspots){i(".av-hotspot-image-container",e).aviaHotspots()};if(i.fn.aviaCountdown){i(".av-countdown-timer",e).aviaCountdown()};if(i.fn.aviaPlayer){i(".av-player",e).aviaPlayer()}};function n(e){if(i.fn.avia_waypoints){if(typeof e=="undefined"){e="body"};i(".avia_animate_when_visible",e).avia_waypoints();i(".avia_animate_when_almost_visible",e).avia_waypoints({offset:"80%"});if(e=="body")e=".avia_desktop body";i(".av-animated-generic",e).avia_waypoints({offset:"95%"})}};i.AviaParallaxElement=function(e,a){this.$el=i(a).addClass("active-parallax");this.$win=i(window);this.$body=i("body");this.$parent=this.$el.parent();this.property={};this.isMobile=i.avia_utilities.isMobile;this.ratio=this.$el.data("avia-parallax-ratio")||0.5;this.transform=document.documentElement.className.indexOf("avia_transform")!==-1?!0:!1;this.transform3d=document.documentElement.className.indexOf("avia_transform3d")!==-1?!0:!1;this.ticking=!1;if(i.avia_utilities.supported.transition===undefined){i.avia_utilities.supported.transition=i.avia_utilities.supports("transition")};this._init(e)};i.AviaParallaxElement.prototype={_init:function(e){var a=this;if(a.isMobile){return};setTimeout(function(){a._fetch_properties()},30);this.$win.on("debouncedresize av-height-change",i.proxy(a._fetch_properties,a));this.$body.on("av_resize_finished",i.proxy(a._fetch_properties,a));setTimeout(function(){a.$win.on("scroll",i.proxy(a._on_scroll,a))},100)},_fetch_properties:function(){this.property.offset=this.$parent.offset().top;this.property.wh=this.$win.height();this.property.height=this.$parent.outerHeight();this.$el.height(Math.ceil((this.property.wh*this.ratio)+this.property.height));this._parallax_scroll()},_on_scroll:function(e){var a=this;if(!a.ticking){a.ticking=!0;window.requestAnimationFrame(i.proxy(a._parallax_scroll,a))}},_parallax_scroll:function(e){var n=this.$win.scrollTop(),o=n+this.property.wh,a="0",t={};if(this.property.offset<o&&n<=this.property.offset+this.property.height){a=Math.ceil((o-this.property.offset)*this.ratio);if(this.transform3d){t[i.avia_utilities.supported.transition+"transform"]="translate3d(0px,"+a+"px, 0px)"}
else if(this.transform){t[i.avia_utilities.supported.transition+"transform"]="translate(0px,"+a+"px)"}
else{t["background-position"]="0px "+a+"px"};this.$el.css(t)};this.ticking=!1}};i.fn.avia_parallax=function(e){return this.each(function(){var a=i.data(this,"aviaParallax");if(!a){a=i.data(this,"aviaParallax",new i.AviaParallaxElement(e,this))}})};i.fn.avia_mobile_fixed=function(e){var a=i.avia_utilities.isMobile;if(!a)return;return this.each(function(){var a=i(this).addClass("av-parallax-section"),n=a.attr("style"),e=a.data("section-bg-repeat"),t="";if(e=="stretch"||e=="no-repeat"){e=" avia-full-stretch"}
else{e=""};t="<div class='av-parallax "+e+"' data-avia-parallax-ratio='0.0' style = '"+n+"' ></div>";a.prepend(t);a.attr("style","")})};i.fn.avia_sc_animation_delayed=function(e){var a=0,n=e.delay||50,t=10,o=setTimeout(function(){t=20},500);return this.each(function(){var e=i(this);e.on("avia_start_animation",function(){var e=i(this);if(a<t)a++;setTimeout(function(){e.addClass("avia_start_delayed_animation");if(a>0)a--},(a*n))})})};i.fn.avia_delayed_animation_in_container=function(e){return this.each(function(){var e=i(this);e.on("avia_start_animation_if_current_slide_is_active",function(){var e=i(this),a=e.find(".avia_start_animation_when_active");a.addClass("avia_start_animation").trigger("avia_start_animation")});e.on("avia_remove_animation",function(){var e=i(this),a=e.find(".avia_start_animation_when_active, .avia_start_animation");a.removeClass("avia_start_animation avia_start_delayed_animation")})})};i.fn.avia_browser_height=function(){if(!this.length)return;var e=i(window),c=i("html"),n=i("head").first(),s=i("#wpadminbar, #header.av_header_top:not(.html_header_transparency #header), #main>.title_container"),a=i("<style type='text/css' id='av-browser-height'></style>").appendTo(n),o=i(".html_header_sidebar #top #header_main"),l=i(".html_header_sidebar .avia-fullscreen-slider.avia-builder-el-0.avia-builder-el-no-sibling").addClass("av-solo-full"),t=[25,50,75],r=function(){var r="",c=e.height(),l=e.width(),u=c,d=(c/9)*16,f=(l/16)*9,h=0,m=[];if(o.length)h=o.height();s.each(function(){u-=this.offsetHeight-1});var v=(u/9)*16;r+=".avia-section.av-minimum-height .container{opacity: 1; }\n";r+=".av-minimum-height-100 .container, .avia-fullscreen-slider .avia-slideshow, #top.avia-blank .av-minimum-height-100 .container, .av-cell-min-height-100 > .flex_cell{height:"+c+"px;}\n";i.each(t,function(i,e){var a=Math.round(c*(e/100.0));r+=".av-minimum-height-"+e+" .container, .av-cell-min-height-"+e+" > .flex_cell	{height:"+a+"px;}\n"});r+=".avia-builder-el-0.av-minimum-height-100 .container, .avia-builder-el-0.avia-fullscreen-slider .avia-slideshow, .avia-builder-el-0.av-cell-min-height-100 > .flex_cell{height:"+u+"px;}\n";r+="#top .av-solo-full .avia-slideshow {min-height:"+h+"px;}\n";if(l/c<16/9){r+="#top .av-element-cover iframe, #top .av-element-cover embed, #top .av-element-cover object, #top .av-element-cover video{width:"+d+"px; left: -"+(d-l)/2+"px;}\n"}
else{r+="#top .av-element-cover iframe, #top .av-element-cover embed, #top .av-element-cover object, #top .av-element-cover video{height:"+f+"px; top: -"+(f-c)/2+"px;}\n"};if(l/u<16/9){r+="#top .avia-builder-el-0 .av-element-cover iframe, #top .avia-builder-el-0 .av-element-cover embed, #top .avia-builder-el-0 .av-element-cover object, #top .avia-builder-el-0 .av-element-cover video{width:"+v+"px; left: -"+(v-l)/2+"px;}\n"}
else{r+="#top .avia-builder-el-0 .av-element-cover iframe, #top .avia-builder-el-0 .av-element-cover embed, #top .avia-builder-el-0 .av-element-cover object, #top .avia-builder-el-0 .av-element-cover video{height:"+f+"px; top: -"+(f-u)/2+"px;}\n"};try{a.text(r)}catch(p){a.remove();a=i("<style type='text/css' id='av-browser-height'>"+r+"</style>").appendTo(n)};setTimeout(function(){e.trigger("av-height-change")},100)};this.each(function(e){var a=i(this).data("av_minimum_height_pc");if("number"!=typeof a){return this};a=parseInt(a);if((-1==i.inArray(a,t))&&(a!=100)){t.push(a)};return this});e.on("debouncedresize",r);r()};i.fn.avia_video_section=function(){if(!this.length)return;var o=this.length,e="",r=i(window),t=i("head").first(),a=i("<style type='text/css' id='av-section-height'></style>").appendTo(t),n=function(n,r){if(r===0){e=""};var c="",s="#"+n.attr("id"),l=n.height(),u=n.width(),d=n.data("sectionVideoRatio").split(":"),f=d[0],v=d[1],h=(l/v)*f,p=(u/f)*v;if(u/l<f/v){c+="#top "+s+" .av-section-video-bg iframe, #top "+s+" .av-section-video-bg embed, #top "+s+" .av-section-video-bg object, #top "+s+" .av-section-video-bg video{width:"+h+"px; left: -"+(h-u)/2+"px;}\n"}
else{c+="#top "+s+" .av-section-video-bg iframe, #top "+s+" .av-section-video-bg embed, #top "+s+" .av-section-video-bg object, #top "+s+" .av-section-video-bg video{height:"+p+"px; top: -"+(p-l)/2+"px;}\n"};e=e+c;if(o==r+1){try{a.text(e)}catch(m){a.remove();a=i("<style type='text/css' id='av-section-height'>"+e+"</style>").appendTo(t)}}};return this.each(function(e){var a=i(this);r.on("debouncedresize",function(){n(a,e)});n(a,e)})};i.fn.avia_link_column=function(){return this.each(function(){i(this).on("click",function(e){if("undefined"!==typeof e.target&&"undefined"!==typeof e.target.href){return};var t=i(this),a=t.data("link-column-url"),o=t.data("link-column-target"),s=window.location.hostname+window.location.pathname;if("undefined"===typeof a||"string"!==typeof a){return};if("undefined"!==typeof o||"_blank"==o){var n=document.createElement("a");n.href=a;n.target="_blank";n.rel="noopener noreferrer";n.click();return!1}
else{if(t.hasClass("av-cell-link")||t.hasClass("av-column-link")){var r=t.hasClass("av-cell-link")?t.prev("a.av-screen-reader-only").first():t.find("a.av-screen-reader-only").first();a=a.trim();if((0==a.indexOf("#"))||((a.indexOf(s)>=0)&&(a.indexOf("#")>0))){r.trigger("click");return}};window.location.href=a};e.preventDefault();return})})};i.fn.avia_waypoints=function(e){if(!i("html").is(".avia_transform"))return;var a={offset:"bottom-in-view",triggerOnce:!0},t=i.extend({},a,e),n=i.avia_utilities.isMobile;return this.each(function(){var e=i(this);setTimeout(function(){if(n){e.addClass("avia_start_animation").trigger("avia_start_animation")}
else{e.waypoint(function(e){var t=i(this.element),a=t.parents(".av-animation-delay-container").eq(0);if(a.length){t.addClass("avia_start_animation_when_active").trigger("avia_start_animation_when_active")};if(!a.length||(a.length&&a.is(".__av_init_open"))||(a.length&&a.is(".av-active-tab-content"))){t.addClass("avia_start_animation").trigger("avia_start_animation")}},t)}},100)})};var t=i.event,e,a;e=t.special.debouncedresize={setup:function(){i(this).on("resize",e.handler)},teardown:function(){i(this).off("resize",e.handler)},handler:function(i,n){var r=this,s=arguments,o=function(){i.type="debouncedresize";t.dispatch.apply(r,s)};if(a){clearTimeout(a)};n?o():a=setTimeout(o,e.threshold)},threshold:150};i.easing["jswing"]=i.easing["swing"];i.extend(i.easing,{def:"easeOutQuad",swing:function(e,a,t,n,o){return i.easing[i.easing.def](e,a,t,n,o)},easeInQuad:function(i,e,a,t,n){return t*(e/=n)*e+a},easeOutQuad:function(i,e,a,t,n){return-t*(e/=n)*(e-2)+a},easeInOutQuad:function(i,e,a,t,n){if((e/=n/2)<1)return t/2*e*e+a;return-t/2*((--e)*(e-2)-1)+a},easeInCubic:function(i,e,a,t,n){return t*(e/=n)*e*e+a},easeOutCubic:function(i,e,a,t,n){return t*((e=e/n-1)*e*e+1)+a},easeInOutCubic:function(i,e,a,t,n){if((e/=n/2)<1)return t/2*e*e*e+a;return t/2*((e-=2)*e*e+2)+a},easeInQuart:function(i,e,a,t,n){return t*(e/=n)*e*e*e+a},easeOutQuart:function(i,e,a,t,n){return-t*((e=e/n-1)*e*e*e-1)+a},easeInOutQuart:function(i,e,a,t,n){if((e/=n/2)<1)return t/2*e*e*e*e+a;return-t/2*((e-=2)*e*e*e-2)+a},easeInQuint:function(i,e,a,t,n){return t*(e/=n)*e*e*e*e+a},easeOutQuint:function(i,e,a,t,n){return t*((e=e/n-1)*e*e*e*e+1)+a},easeInOutQuint:function(i,e,a,t,n){if((e/=n/2)<1)return t/2*e*e*e*e*e+a;return t/2*((e-=2)*e*e*e*e+2)+a},easeInSine:function(i,e,t,a,n){return-a*Math.cos(e/n*(Math.PI/2))+a+t},easeOutSine:function(i,e,a,t,n){return t*Math.sin(e/n*(Math.PI/2))+a},easeInOutSine:function(i,e,a,t,n){return-t/2*(Math.cos(Math.PI*e/n)-1)+a},easeInExpo:function(i,e,a,t,n){return(e==0)?a:t*Math.pow(2,10*(e/n-1))+a},easeOutExpo:function(i,e,a,t,n){return(e==n)?a+t:t*(-Math.pow(2,-10*e/n)+1)+a},easeInOutExpo:function(i,e,a,t,n){if(e==0)return a;if(e==n)return a+t;if((e/=n/2)<1)return t/2*Math.pow(2,10*(e-1))+a;return t/2*(-Math.pow(2,-10*--e)+2)+a},easeInCirc:function(i,e,a,t,n){return-t*(Math.sqrt(1-(e/=n)*e)-1)+a},easeOutCirc:function(i,e,a,t,n){return t*Math.sqrt(1-(e=e/n-1)*e)+a},easeInOutCirc:function(i,e,a,t,n){if((e/=n/2)<1)return-t/2*(Math.sqrt(1-e*e)-1)+a;return t/2*(Math.sqrt(1-(e-=2)*e)+1)+a},easeInElastic:function(i,e,t,a,n){var s=1.70158,o=0,r=a;if(e==0)return t;if((e/=n)==1)return t+a;if(!o)o=n*.3;if(r<Math.abs(a)){r=a;var s=o/4}
else var s=o/(2*Math.PI)*Math.asin(a/r);return-(r*Math.pow(2,10*(e-=1))*Math.sin((e*n-s)*(2*Math.PI)/o))+t},easeOutElastic:function(i,e,t,a,n){var s=1.70158,o=0,r=a;if(e==0)return t;if((e/=n)==1)return t+a;if(!o)o=n*.3;if(r<Math.abs(a)){r=a;var s=o/4}
else var s=o/(2*Math.PI)*Math.asin(a/r);return r*Math.pow(2,-10*e)*Math.sin((e*n-s)*(2*Math.PI)/o)+a+t},easeInOutElastic:function(i,e,t,a,n){var s=1.70158,o=0,r=a;if(e==0)return t;if((e/=n/2)==2)return t+a;if(!o)o=n*(.3*1.5);if(r<Math.abs(a)){r=a;var s=o/4}
else var s=o/(2*Math.PI)*Math.asin(a/r);if(e<1)return-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e*n-s)*(2*Math.PI)/o))+t;return r*Math.pow(2,-10*(e-=1))*Math.sin((e*n-s)*(2*Math.PI)/o)*.5+a+t},easeInBack:function(i,e,a,t,n,o){if(o==undefined)o=1.70158;return t*(e/=n)*e*((o+1)*e-o)+a},easeOutBack:function(i,e,a,t,n,o){if(o==undefined)o=1.70158;return t*((e=e/n-1)*e*((o+1)*e+o)+1)+a},easeInOutBack:function(i,e,a,t,n,o){if(o==undefined)o=1.70158;if((e/=n/2)<1)return t/2*(e*e*(((o*=(1.525))+1)*e-o))+a;return t/2*((e-=2)*e*(((o*=(1.525))+1)*e+o)+2)+a},easeInBounce:function(i,e,t,a,n){return a-jQuery.easing.easeOutBounce(i,n-e,0,a,n)+t},easeOutBounce:function(i,e,a,t,n){if((e/=n)<(1/2.75)){return t*(7.5625*e*e)+a}
else if(e<(2/2.75)){return t*(7.5625*(e-=(1.5/2.75))*e+.75)+a}
else if(e<(2.5/2.75)){return t*(7.5625*(e-=(2.25/2.75))*e+.9375)+a}
else{return t*(7.5625*(e-=(2.625/2.75))*e+.984375)+a}},easeInOutBounce:function(i,e,n,a,t){if(e<t/2)return jQuery.easing.easeInBounce(i,e*2,0,a,t)*.5+n;return jQuery.easing.easeOutBounce(i,e*2-t,0,a,t)*.5+a*.5+n}})})(jQuery);(function(i){"use strict";i.avia_utilities=i.avia_utilities||{};i.avia_utilities.loading=function(e,a){var t={active:!1,show:function(){if(t.active===!1){t.active=!0;t.loading_item.css({display:"block",opacity:0})};t.loading_item.stop().animate({opacity:1})},hide:function(){if(typeof a==="undefined"){a=600};t.loading_item.stop().delay(a).animate({opacity:0},function(){t.loading_item.css({display:"none"});t.active=!1})},attach:function(){if(typeof e==="undefined"){e="body"};t.loading_item=i("<div class=\"avia_loading_icon\"><div class=\"av-siteloader\"></div></div>").css({display:"none"}).appendTo(e)}};t.attach();return t};i.avia_utilities.playpause=function(e,a){var t={active:!1,to1:"",to2:"",set:function(i){t.loading_item.removeClass("av-play av-pause");t.to1=setTimeout(function(){t.loading_item.addClass("av-"+i)},10);t.to2=setTimeout(function(){t.loading_item.removeClass("av-"+i)},1500)},attach:function(){if(typeof e==="undefined"){e="body"};t.loading_item=i("<div class=\"avia_playpause_icon\"></div>").css({display:"none"}).appendTo(e)}};t.attach();return t};i.avia_utilities.preload=function(e){new i.AviaPreloader(e)};i.AviaPreloader=function(e){this.win=i(window);this.defaults={container:"body",maxLoops:10,trigger_single:!0,single_callback:function(){},global_callback:function(){}};this.options=i.extend({},this.defaults,e);this.preload_images=0;this.load_images()};i.AviaPreloader.prototype={load_images:function(){var e=this;if(typeof e.options.container==="string"){e.options.container=i(e.options.container)};e.options.container.each(function(){var a=i(this);a.images=a.find("img");a.allImages=a.images;e.preload_images+=a.images.length;setTimeout(function(){e.checkImage(a)},10)})},checkImage:function(i){var e=this;i.images.each(function(){if(this.complete===!0){i.images=i.images.not(this);e.preload_images-=1}});if(i.images.length&&e.options.maxLoops>=0){e.options.maxLoops-=1;setTimeout(function(){e.checkImage(i)},500)}
else{e.preload_images=e.preload_images-i.images.length;e.trigger_loaded(i)}},trigger_loaded:function(i){var e=this;if(e.options.trigger_single!==!1){e.win.trigger("avia_images_loaded_single",[i]);e.options.single_callback.call(i)};if(e.preload_images===0){e.win.trigger("avia_images_loaded");e.options.global_callback.call()}}};i.avia_utilities.css_easings={linear:"linear",swing:"ease-in-out",bounce:"cubic-bezier(0.0, 0.35, .5, 1.3)",easeInQuad:"cubic-bezier(0.550, 0.085, 0.680, 0.530)",easeInCubic:"cubic-bezier(0.550, 0.055, 0.675, 0.190)",easeInQuart:"cubic-bezier(0.895, 0.030, 0.685, 0.220)",easeInQuint:"cubic-bezier(0.755, 0.050, 0.855, 0.060)",easeInSine:"cubic-bezier(0.470, 0.000, 0.745, 0.715)",easeInExpo:"cubic-bezier(0.950, 0.050, 0.795, 0.035)",easeInCirc:"cubic-bezier(0.600, 0.040, 0.980, 0.335)",easeInBack:"cubic-bezier(0.600, -0.280, 0.735, 0.04)",easeOutQuad:"cubic-bezier(0.250, 0.460, 0.450, 0.940)",easeOutCubic:"cubic-bezier(0.215, 0.610, 0.355, 1.000)",easeOutQuart:"cubic-bezier(0.165, 0.840, 0.440, 1.000)",easeOutQuint:"cubic-bezier(0.230, 1.000, 0.320, 1.000)",easeOutSine:"cubic-bezier(0.390, 0.575, 0.565, 1.000)",easeOutExpo:"cubic-bezier(0.190, 1.000, 0.220, 1.000)",easeOutCirc:"cubic-bezier(0.075, 0.820, 0.165, 1.000)",easeOutBack:"cubic-bezier(0.175, 0.885, 0.320, 1.275)",easeInOutQuad:"cubic-bezier(0.455, 0.030, 0.515, 0.955)",easeInOutCubic:"cubic-bezier(0.645, 0.045, 0.355, 1.000)",easeInOutQuart:"cubic-bezier(0.770, 0.000, 0.175, 1.000)",easeInOutQuint:"cubic-bezier(0.860, 0.000, 0.070, 1.000)",easeInOutSine:"cubic-bezier(0.445, 0.050, 0.550, 0.950)",easeInOutExpo:"cubic-bezier(1.000, 0.000, 0.000, 1.000)",easeInOutCirc:"cubic-bezier(0.785, 0.135, 0.150, 0.860)",easeInOutBack:"cubic-bezier(0.680, -0.550, 0.265, 1.55)",easeInOutBounce:"cubic-bezier(0.580, -0.365, 0.490, 1.365)",easeOutBounce:"cubic-bezier(0.760, 0.085, 0.490, 1.365)"};i.avia_utilities.supported={};i.avia_utilities.supports=(function(){var e=document.createElement("div"),i=["Khtml","Ms","Moz","Webkit"];return function(a,t){if(e.style[a]!==undefined){return""};if(t!==undefined){i=t};a=a.replace(/^[a-z]/,function(i){return i.toUpperCase()});var n=i.length;while(n--){if(e.style[i[n]+a]!==undefined){return"-"+i[n].toLowerCase()+"-"}};return!1}}());i.fn.avia_animate=function(e,a,t,n){if(typeof a==="function"){n=a;a=!1};if(typeof t==="function"){n=t;t=!1};if(typeof a==="string"){t=a;a=!1};if(n===undefined||n===!1){n=function(){}};if(t===undefined||t===!1){t="easeInQuad"};if(a===undefined||a===!1){a=400};if(i.avia_utilities.supported.transition===undefined){i.avia_utilities.supported.transition=i.avia_utilities.supports("transition")};if(i.avia_utilities.supported.transition!==!1){var c=i.avia_utilities.supported.transition+"transition",r={},l={},u=document.body.style,o=(u.WebkitTransition!==undefined)?"webkitTransitionEnd":(u.OTransition!==undefined)?"oTransitionEnd":"transitionend";t=i.avia_utilities.css_easings[t];r[c]="all "+(a/1000)+"s "+t;o=o+".avia_animate";for(var s in e){if(e.hasOwnProperty(s)){l[s]=e[s]}};e=l;this.each(function(){var t=i(this),f=!1,s,u;for(s in e){if(e.hasOwnProperty(s)){u=t.css(s);if(e[s]!=u&&e[s]!=u.replace(/px|%/g,"")){f=!0;break}}};if(f){if(!(i.avia_utilities.supported.transition+"transform"in e)){e[i.avia_utilities.supported.transition+"transform"]="translateZ(0)"};var l=!1;t.on(o,function(i){if(i.target!=i.currentTarget)return!1;if(l==!0)return!1;l=!0;r[c]="none";t.off(o);t.css(r);setTimeout(function(){n.call(t)})});setTimeout(function(){if(!l&&!avia_is_mobile&&i("html").is(".avia-safari")){t.trigger(o);i.avia_utilities.log("Safari Fallback "+o+" trigger")}},a+100);setTimeout(function(){t.css(r)},10);setTimeout(function(){t.css(e)},20)}
else{setTimeout(function(){n.call(t)})}})}
else{this.animate(e,a,t,n)};return this}})(jQuery);(function(i){"use strict";i.fn.avia_keyboard_controls=function(e){var t={37:".prev-slide",39:".next-slide"},a={mousebind:function(i){i.on("mouseenter",function(){i.mouseover=!0}).on("mouseleave",function(){i.mouseover=!1})},keybind:function(e){i(document).on("keydown",function(i){if(e.mouseover&&typeof e.options[i.keyCode]!=="undefined"){var a;if(typeof e.options[i.keyCode]==="string"){a=e.find(e.options[i.keyCode])}
else{a=e.options[i.keyCode]};if(a.length){a.trigger("click",["keypress"]);return!1}}})}};return this.each(function(){var n=i(this);n.options=i.extend({},t,e);n.mouseover=!1;a.mousebind(n);a.keybind(n)})};i.fn.avia_swipe_trigger=function(e){var o=i(window),a=i.avia_utilities.isMobile,t={prev:".prev-slide",next:".next-slide",event:{prev:"click",next:"click"}},n={activate_touch_control:function(i){var e,a,t;i.touchPos={};i.hasMoved=!1;i.on("touchstart",function(e){i.touchPos.X=e.originalEvent.touches[0].clientX;i.touchPos.Y=e.originalEvent.touches[0].clientY});i.on("touchend",function(e){i.touchPos={};if(i.hasMoved){e.preventDefault()};i.hasMoved=!1});i.on("touchmove",function(n){if(!i.touchPos.X){i.touchPos.X=n.originalEvent.touches[0].clientX;i.touchPos.Y=n.originalEvent.touches[0].clientY}
else{a=n.originalEvent.touches[0].clientX-i.touchPos.X;t=n.originalEvent.touches[0].clientY-i.touchPos.Y;if(Math.abs(a)>Math.abs(t)){n.preventDefault();if(i.touchPos!==n.originalEvent.touches[0].clientX){if(Math.abs(a)>50){e=a>0?"prev":"next";if(typeof i.options[e]==="string"){i.find(i.options[e]).trigger(i.options.event[e],["swipe"])}
else{i.options[e].trigger(i.options.event[e],["swipe"])};i.hasMoved=!0;i.touchPos={};return!1}}}}})}};return this.each(function(){if(a){var o=i(this);o.options=i.extend({},t,e);n.activate_touch_control(o)}})}}(jQuery));(function(i){'use strict';var n=!1,a=null,t=function(i){var n=i.find('.av-player-player-container .mejs-playpause-button');if(n.length==0){setTimeout(function(){t(i)},200)};if(!n.hasClass('mejs-pause')){n.trigger('click')}};i.fn.aviaPlayer=function(a){if(!this.length){return};return this.each(function(){var a={};a.container=i(this);a.stopLoop=!1;a.container.find('audio').on('play',function(){if(a.stopLoop){this.pause();a.stopLoop=!1}});if(a.container.hasClass('avia-playlist-no-loop')){a.container.find('audio').on('ended',function(){var t=a.container.find('.wp-playlist-tracks .wp-playlist-item').last().find('a');try{var i=decodeURI(t.attr('href')),n=decodeURI(this.currentSrc);if(n===i){a.stopLoop=!0}}catch(o){a.stopLoop=!1}})};if(a.container.hasClass('avia-playlist-autoplay')&&!n){if((a.container.css('display')=='none')||(a.container.css('visibility')=='hidden')){return};n=!0;setTimeout(function(){t(a.container,a)},200)}})}}(jQuery));(function(a){a.fn.avia_ajax_form=function(e){var i={sendPath:"send.php",responseContainer:".ajaxresponse"};var r=a.extend(i,e);return this.each(function(){var i=a(this),t=!1,e={formElements:i.find("textarea, select, input[type=text], input[type=checkbox], input[type=hidden]"),validationError:!1,button:i.find("input:submit"),dataObj:{}},s=i.next(r.responseContainer).eq(0);e.button.on("click",l);if(a.avia_utilities.isMobile){e.formElements.each(function(e){var r=a(this),i=r.hasClass("is_email");if(i)r.attr("type","email")})};function l(r){e.validationError=!1;e.datastring="ajax=true";e.formElements=i.find("textarea, select, input[type=text], input[type=checkbox], input[type=hidden], input[type=email]");e.formElements.each(function(o){var n=a(this),r=n.parent(),s=n.val(),v=n.attr("name"),t=n.attr("class"),l=!0;if(n.is(":checkbox")){if(n.is(":checked")){s=!0}
else{s=""}};e.dataObj[v]=encodeURIComponent(s);if(t&&t.match(/is_empty/)){if(s==""||s==null){r.removeClass("valid error ajax_alert").addClass("error");e.validationError=!0}
else{r.removeClass("valid error ajax_alert").addClass("valid")};l=!1};if(t&&t.match(/is_email/)){if(!s.match(/^[\w|\.|\-]+@\w[\w|\.|\-]*\.[a-zA-Z]{2,20}$/)){r.removeClass("valid error ajax_alert").addClass("error");e.validationError=!0}
else{r.removeClass("valid error ajax_alert").addClass("valid")};l=!1};if(t&&t.match(/is_ext_email/)){if(!s.match(/^[\w\.\-ÄÖÜäöü]+@\w[\w\.\-ÄÖÜäöü]*\.[a-zA-Z]{2,20}$/)){r.removeClass("valid error ajax_alert").addClass("error");e.validationError=!0}
else{r.removeClass("valid error ajax_alert").addClass("valid")};l=!1};if(t&&t.match(/is_special_email/)){if(!s.match(/^[a-zA-Z0-9.!#$%&'*+\-\/=?^_`{|}~ÄÖÜäöü]+@\w[\w\.\-ÄÖÜäöü]*\.[a-zA-Z]{2,20}$/)){r.removeClass("valid error ajax_alert").addClass("error");e.validationError=!0}
else{r.removeClass("valid error ajax_alert").addClass("valid")};l=!1};if(t&&t.match(/is_phone/)){if(!s.match(/^(\d|\s|\-|\/|\(|\)|\[|\]|e|x|t|ension|\.|\+|\_|\,|\:|\;){3,}$/)){r.removeClass("valid error ajax_alert").addClass("error");e.validationError=!0}
else{r.removeClass("valid error ajax_alert").addClass("valid")};l=!1};if(t&&t.match(/is_number/)){if(!s.match(/^-?\s*(0|[1-9]\d*)([\.,]\d+)?$/)){r.removeClass("valid error ajax_alert").addClass("error");e.validationError=!0}
else{r.removeClass("valid error ajax_alert").addClass("valid")};l=!1};if(t&&t.match(/is_positiv_number/)){if(!(avia_isNumeric(s))||s==""||s<0){r.removeClass("valid error ajax_alert").addClass("error");e.validationError=!0}
else{r.removeClass("valid error ajax_alert").addClass("valid")};l=!1};if(t&&t.match(/captcha/)&&!t.match(/recaptcha/)){var d=i.find("#"+v+"_verifier").val(),c=d.charAt(d.length-1),f=d.charAt(c);if(s!=f){r.removeClass("valid error ajax_alert").addClass("error");e.validationError=!0}
else{r.removeClass("valid error ajax_alert").addClass("valid")};l=!1};if(l&&s!=""){r.removeClass("valid error ajax_alert").addClass("valid")}});if(e.validationError==!1){if(i.data("av-custom-send")){o()}
else{n()}};return!1};function n(){if(t){return!1};if(e.button.hasClass("avia_button_inactive")){return!1};t=!0;e.button.addClass("av-sending-button");e.button.val(e.button.data("sending-label"));var l=i.data("avia-redirect")||!1,n=i.attr("action"),o=i.is(".av-form-labels-style");if(o)return;s.load(n+" "+r.responseContainer,e.dataObj,function(){if(l&&n!=l){i.attr("action",l);location.href=l}
else{s.removeClass("hidden").css({display:"block"});i.slideUp(400,function(){s.slideDown(400,function(){a("body").trigger("av_resize_finished")});e.formElements.val("")})}})};function o(){if(t){return!1};t=!0;var v=e.button.val();e.button.addClass("av-sending-button");e.button.val(e.button.data("sending-label"));e.dataObj.ajax_mailchimp=!0;var l=i.data("avia-redirect")||!1,o=i.attr("action"),n=i.find(".av-form-error-container"),d=i.data("avia-form-id");a.ajax({url:o,type:"POST",data:e.dataObj,beforeSend:function(){if(n.length){n.slideUp(400,function(){n.remove();a("body").trigger("av_resize_finished")})}},success:function(n){var f=jQuery("<div>").append(jQuery.parseHTML(n)),c=f.find(".av-form-error-container");if(c.length){t=!1;i.prepend(c);c.css({display:"none"}).slideDown(400,function(){a("body").trigger("av_resize_finished")});e.button.removeClass("av-sending-button");e.button.val(v)}
else{if(l&&o!=l){i.attr("action",l);location.href=l}
else{var m=f.find(r.responseContainer+"_"+d);s.html(m).removeClass("hidden").css({display:"block"});i.slideUp(400,function(){s.slideDown(400,function(){a("body").trigger("av_resize_finished")});e.formElements.val("")})}}},error:function(){},complete:function(){}})}})}})(jQuery);(function(i){'use strict';i.AviaSlider=function(t,s){var e=this;this.$win=i(window);this.$slider=i(s);this.isMobile=i.avia_utilities.isMobile;this._prepareSlides(t);i.avia_utilities.preload({container:this.$slider,single_callback:function(){e._init(t)}})};i.AviaSlider.defaults={interval:5,autoplay:!1,stopinfiniteloop:!1,animation:'slide',transitionSpeed:900,easing:'easeInOutQuart',wrapElement:'>ul',slideElement:'>li',hoverpause:!1,bg_slider:!1,show_slide_delay:0,fullfade:!1,carousel:'no',carouselSlidesToShow:3,carouselSlidesToScroll:1,carouselResponsive:[]};i.AviaSlider.prototype={_init:function(t){this.options=this._setOptions(t);this.$sliderUl=this.$slider.find(this.options.wrapElement);this.$slides=this.$sliderUl.find(this.options.slideElement);this.gotoButtons=this.$slider.find('.avia-slideshow-dots a');this.permaCaption=this.$slider.find('>.av-slideshow-caption');this.itemsCount=this.$slides.length;this.current=0;this.currentCarousel=0;this.slideWidthCarousel='240';this.loopCount=0;this.isAnimating=!1;this.browserPrefix=i.avia_utilities.supports('transition');this.cssActive=this.browserPrefix!==!1?!0:!1;this.css3DActive=document.documentElement.className.indexOf('avia_transform3d')!==-1?!0:!1;if(this.options.bg_slider==!0){this.imageUrls=[];this.loader=i.avia_utilities.loading(this.$slider);this._bgPreloadImages()}
else{this._kickOff()};if(this.options.carousel==='yes'){this.options.animation='carouselslide'}},_setOptions:function(t){var a=i.extend(!0,{},i.AviaSlider.defaults,t),e=this.$slider.data();for(var s in e){var o=('transition_speed'!=s)?s:'transitionSpeed';if(typeof e[s]==='string'||typeof e[s]==='number'||typeof e[s]==='boolean'){a[o]=e[s]}};return a},_prepareSlides:function(t){if(this.isMobile){var s=this.$slider.find('.av-mobile-fallback-image');s.each(function(){var s=i(this).removeClass('av-video-slide').data({'avia_video_events':!0,'video-ratio':0}),n=s.data('mobile-img'),e=s.data('fallback-link'),a=s.find('.avia-slide-wrap');s.find('.av-click-overlay, .mejs-mediaelement, .mejs-container').remove();if(!n){i('<p class="av-fallback-message"><span>Please set a mobile device fallback image for this video in your wordpress backend</span></p>').appendTo(a)};if(t&&t.bg_slider){s.data('img-url',n);if(e!=''){if(a.is('a')){a.attr('href',e)}
else{a.find('a').remove();a.replaceWith(function(){var t=i(this);return i('<a>').attr({'data-rel':t.data('rel'),'class':t.attr('class'),'href':e}).append(i(this).contents())});a=s.find('.avia-slide-wrap')};if(i.fn.avia_activate_lightbox){s.parents('#main').avia_activate_lightbox()}}}
else{var o='<img src="'+n+'" alt="" title="" />',l=!1;if('string'==typeof e&&e.trim()!=''){if(a.is('a')){a.attr('href',e)}
else{var r=e.match(/\.(jpg|jpeg|gif|png)$/i)!=null?' rel="lightbox" ':'';o='<a href="'+e.trim()+'"'+r+'>'+o+'</a>'};l=!0};s.find('.avia-slide-wrap').append(o);if(l&&i.fn.avia_activate_lightbox){s.parents('#main').avia_activate_lightbox()}}})}},_bgPreloadImages:function(i){this._getImageURLS();this._preloadSingle(0,function(){this._kickOff();this._preloadNext(1)})},_getImageURLS:function(){var t=this;this.$slides.each(function(s){t.imageUrls[s]=[];t.imageUrls[s]['url']=i(this).data('img-url');if(typeof t.imageUrls[s]['url']=='string'){t.imageUrls[s]['status']=!1}
else{t.imageUrls[s]['status']=!0}})},_preloadSingle:function(t,s){var e=this,a=new Image();if(typeof e.imageUrls[t]['url']=='string'){i(a).on('load error',function(){e.imageUrls[t]['status']=!0;e.$slides.eq(t).css('background-image','url('+e.imageUrls[t]['url']+')');if(typeof s=='function')s.apply(e,[a,t])});if(e.imageUrls[t]['url']!=''){a.src=e.imageUrls[t]['url']}
else{i(a).trigger('error')}}
else{if(typeof s=='function')s.apply(e,[a,t])}},_preloadNext:function(i){if(typeof this.imageUrls[i]!='undefined'){this._preloadSingle(i,function(){this._preloadNext(i+1)})}},_bindEvents:function(){var s=this,t=i(window);this.$slider.on('click','.next-slide',i.proxy(this.next,this));this.$slider.on('click','.prev-slide',i.proxy(this.previous,this));this.$slider.on('click','.goto-slide',i.proxy(this.go2,this));if(this.options.hoverpause){this.$slider.on('mouseenter',i.proxy(this.pause,this));this.$slider.on('mouseleave',i.proxy(this.resume,this))};if(this.options.stopinfiniteloop&&this.options.autoplay){if(this.options.stopinfiniteloop=='last'){this.$slider.on('avia_slider_last_slide',i.proxy(this._stopSlideshow,this))}
else if(this.options.stopinfiniteloop=='first'){this.$slider.on('avia_slider_first_slide',i.proxy(this._stopSlideshow,this))}};if(this.options.carousel==='yes'){if(!this.isMobile){t.on('debouncedresize',i.proxy(this._buildCarousel,this))}}
else{t.on('debouncedresize.aviaSlider',i.proxy(this._setSize,this))};if(!this.isMobile){this.$slider.avia_keyboard_controls()}
else{this.$slider.avia_swipe_trigger()};s._attach_video_events()},_kickOff:function(){var t=this,s=t.$slides.eq(0),e=s.data('video-ratio');t._bindEvents();this.$slider.removeClass('av-default-height-applied');if(e){t._setSize(!0)}
else{if(this.options.keep_pading!=!0){t.$sliderUl.css('padding',0);t.$win.trigger('av-height-change')}};t._setCenter();if(this.options.carousel==='no'){s.css({visibility:'visible',opacity:0}).avia_animate({opacity:1},function(){var s=i(this).addClass('active-slide');if(t.permaCaption.length){t.permaCaption.addClass('active-slide')}})};if(t.options.autoplay){t._startSlideshow()};if(t.options.carousel==='yes'){t._buildCarousel()};t.$slider.trigger('_kickOff')},_buildCarousel:function(){var r=this,a=this.$slider.outerWidth(),t=parseInt(a/this.options.carouselSlidesToShow),l=window.innerWidth||i(window).width();if(this.options.carouselResponsive&&this.options.carouselResponsive.length&&this.options.carouselResponsive!==null){for(var e in this.options.carouselResponsive){var n=this.options.carouselResponsive[e]['breakpoint'],s=this.options.carouselResponsive[e]['settings']['carouselSlidesToShow'];if(n>=l){t=parseInt(a/s);this.options.carouselSlidesToShow=s}}};this.slideWidthCarousel=t;this.$slides.each(function(s){i(this).width(t)});var o=t*this.itemsCount;this.$sliderUl.width(o).css('transform','translateX(0px)');if(this.options.carouselSlidesToShow>=this.itemsCount){this.$slider.find('.av-timeline-nav').hide()}},_navigate:function(i,t){if(this.isAnimating||this.itemsCount<2 ||!this.$slider.is(':visible')){return!1};this.isAnimating=!0;this.prev=this.current;if(t!==undefined){this.current=t;i=this.current>this.prev?'next':'prev'}
else if(i==='next'){this.current=this.current<this.itemsCount-1?this.current+1:0;if(this.current===0&&this.options.autoplay_stopper==1&&this.options.autoplay){this.isAnimating=!1;this.current=this.prev;this._stopSlideshow();return!1}}
else if(i==='prev'){this.current=this.current>0?this.current-1:this.itemsCount-1};this.gotoButtons.removeClass('active').eq(this.current).addClass('active');if(this.options.carousel==='no'){this._setSize()};if(this.options.bg_slider==!0){if(this.imageUrls[this.current]['status']==!0){this['_'+this.options.animation].call(this,i)}
else{this.loader.show();this._preloadSingle(this.current,function(){this['_'+this.options.animation].call(this,i);this.loader.hide()})}}
else{this['_'+this.options.animation].call(this,i)};if(this.current==0){this.loopCount++;this.$slider.trigger('avia_slider_first_slide')}
else if(this.current==this.itemsCount-1){this.$slider.trigger('avia_slider_last_slide')}
else{this.$slider.trigger('avia_slider_navigate_slide')}},_setSize:function(i){if(this.options.bg_slider==!0)return;var n=this,t=this.$slides.eq(this.current),r=t.find('img'),a=Math.floor(this.$sliderUl.height()),o=t.data('video-ratio'),s=o?this.$sliderUl.width()/o:Math.floor(t.height()),e=t.data('video-height'),l=t.data('video-toppos');this.$sliderUl.height(a).css('padding',0);if(s!=a){if(i==!0){this.$sliderUl.css({height:s});this.$win.trigger('av-height-change')}
else{this.$sliderUl.avia_animate({height:s},function(){n.$win.trigger('av-height-change')})}};this._setCenter();if(e&&e!='set'){t.find('iframe, embed, video, object, .av_youtube_frame').css({height:e+'%',top:l+'%'});t.data('video-height','set')}},_setCenter:function(){var e=this.$slides.eq(this.current),o=e.find('img'),i=parseInt(o.css('min-width'),10),t=e.width(),a=e.find('.av-slideshow-caption'),s=((t-i)/2);if(a.length){if(a.is('.caption_left')){s=((t-i)/1.5)}
else if(a.is('.caption_right')){s=((t-i)/2.5)}};if(t>=i){s=0};o.css({left:s})},_carouselmove:function(){var i=this.slideWidthCarousel*this.currentCarousel;this.$sliderUl.css('transform','translateX(-'+i+'px)')},_carouselslide:function(i){if(i==='next'){if(this.options.carouselSlidesToShow+this.currentCarousel<this.itemsCount){this.currentCarousel++;this._carouselmove()}}
else if(i==='prev'){if(this.currentCarousel>0){this.currentCarousel--;this._carouselmove()}};this.isAnimating=!1},_slide:function(i){var l=!1,h=l==!0?2:1,r=this.$slider.width(),d=i==='next'?-1:1,t=this.browserPrefix+'transform',a={},s={},e={},o=(r*d*-1),n=(r*d)/h;if(this.cssActive){t=this.browserPrefix+'transform';if(this.css3DActive){a[t]='translate3d('+o+'px, 0, 0)';s[t]='translate3d('+n+'px, 0, 0)';e[t]='translate3d(0,0,0)'}
else{a[t]='translate('+o+'px,0)';s[t]='translate('+n+'px,0)';e[t]='translate(0,0)'}}
else{a.left=o;s.left=n;e.left=0};if(l){s['z-index']='1';e['z-index']='2'};this._slide_animate(a,s,e)},_slide_up:function(i){var l=!0,h=l==!0?2:1,r=this.$slider.height(),d=i==='next'?-1:1,t=this.browserPrefix+'transform',a={},s={},e={},o=(r*d*-1),n=(r*d)/h;if(this.cssActive){t=this.browserPrefix+'transform';if(this.css3DActive){a[t]='translate3d( 0,'+o+'px, 0)';s[t]='translate3d( 0,'+n+'px, 0)';e[t]='translate3d(0,0,0)'}
else{a[t]='translate( 0,'+o+'px)';s[t]='translate( 0,'+n+'px)';e[t]='translate(0,0)'}}
else{a.top=o;s.top=n;e.top=0};if(l){s['z-index']='1';e['z-index']='2'};this._slide_animate(a,s,e)},_slide_animate:function(i,e,a){var s=this,t=this.$slides.eq(this.current),o=this.$slides.eq(this.prev);o.trigger('pause');if(!t.data('disableAutoplay')){if(t.hasClass('av-video-lazyload')&&!t.hasClass('av-video-lazyload-complete')){t.find('.av-click-to-play-overlay').trigger('click')}
else{t.trigger('play')}};t.css({visibility:'visible',zIndex:4,opacity:1,left:0,top:0});t.css(i);o.avia_animate(e,this.options.transitionSpeed,this.options.easing);var n=function(){s.isAnimating=!1;t.addClass('active-slide');o.css({visibility:'hidden'}).removeClass('active-slide');s.$slider.trigger('avia-transition-done')};if(s.options.show_slide_delay>0){setTimeout(function(){t.avia_animate(a,s.options.transitionSpeed,s.options.easing,n)},s.options.show_slide_delay)}
else{t.avia_animate(a,s.options.transitionSpeed,s.options.easing,n)}},_fade:function(){var t=this,i=this.$slides.eq(this.current),s=this.$slides.eq(this.prev),e={visibility:'visible',zIndex:3,opacity:0},a=function(){t.isAnimating=!1;i.addClass('active-slide');s.css({visibility:'hidden',zIndex:2}).removeClass('active-slide');t.$slider.trigger('avia-transition-done')};s.trigger('pause');if(!i.data('disableAutoplay')){if(i.hasClass('av-video-lazyload')&&!i.hasClass('av-video-lazyload-complete')){i.find('.av-click-to-play-overlay').trigger('click')}
else{i.trigger('play')}};if(t.options.fullfade==!0){s.avia_animate({opacity:0},200,'linear',function(){i.css(e).avia_animate({opacity:1},t.options.transitionSpeed,'linear',a)})}
else{if(t.current===0){s.avia_animate({opacity:0},t.options.transitionSpeed/2,'linear');i.css(e).avia_animate({opacity:1},t.options.transitionSpeed/2,'linear',a)}
else{i.css(e).avia_animate({opacity:1},t.options.transitionSpeed/2,'linear',function(){s.avia_animate({opacity:0},200,'linear',a)})}}},_attach_video_events:function(){var t=this,s=i('html');t.$slides.each(function(s){var n=i(this),r=n.find('.caption_fullwidth, .av-click-overlay'),d=n.find('.mejs-mediaelement'),l=n.hasClass('av-video-lazyload')?!0:!1;if(n.data('avia_video_events')!=!0){n.data('avia_video_events',!0);n.on('av-video-events-bound',{slide:n,wrap:d,iteration:s,self:t,lazyload:l},e);n.on('av-video-ended',{slide:n,self:t},a);n.on('av-video-play-executed',function(){setTimeout(function(){t.pause()},100)});r.on('click',{slide:n},o);if(n.is('.av-video-events-bound'))n.trigger('av-video-events-bound');if(l&&s===0&&!n.data('disableAutoplay')){n.find('.av-click-to-play-overlay').trigger('click')}}});function e(i){if(i.data.iteration===0){i.data.wrap.css('opacity',0);if(!i.data.self.isMobile&&!i.data.slide.data('disableAutoplay')){i.data.slide.trigger('play')}; ;setTimeout(function(){i.data.wrap.avia_animate({opacity:1},400)},50)}
else if(s.is('.avia-msie')&&!i.data.slide.is('.av-video-service-html5')){if(!i.data.slide.data('disableAutoplay'))i.data.slide.trigger('play')};if(i.data.slide.is('.av-video-service-html5')&&i.data.iteration!==0){i.data.slide.trigger('pause')};if(i.data.lazyload){i.data.slide.addClass('av-video-lazyload-complete');i.data.slide.trigger('play')}};function a(i){if(!i.data.slide.is('.av-single-slide')&&!i.data.slide.is('.av-loop-video')){i.data.slide.trigger('reset');t._navigate('next');t.resume()};if(i.data.slide.is('.av-loop-video')&&i.data.slide.is('.av-video-service-html5')){if(s.is('.avia-safari-8')){setTimeout(function(){i.data.slide.trigger('play')},1)}}};function o(i){if(i.target.tagName!='A'){i.data.slide.trigger('toggle')}}},_timer:function(i,t,o){var s=this,e,a=t;s.timerId=0;this.pause=function(){window.clearTimeout(s.timerId);a-=new Date()-e};this.resume=function(){e=new Date();s.timerId=window.setTimeout(i,a)};this.destroy=function(){window.clearTimeout(s.timerId)};this.resume(!0)},_startSlideshow:function(){var i=this;this.isPlaying=!0;this.slideshow=new this._timer(function(){i._navigate('next');if(i.options.autoplay){i._startSlideshow()}},(this.options.interval*1000))},_stopSlideshow:function(){if(this.options.autoplay){this.slideshow.destroy();this.isPlaying=!1;this.options.autoplay=!1}},next:function(i){i.preventDefault();this._stopSlideshow();this._navigate('next')},previous:function(i){i.preventDefault();this._stopSlideshow();this._navigate('prev')},go2:function(i){if(isNaN(i)){i.preventDefault();i=i.currentTarget.hash.replace('#','')};i-=1;if(i===this.current||i>=this.itemsCount||i<0){return!1};this._stopSlideshow();this._navigate(!1,i)},play:function(){if(!this.isPlaying){this.isPlaying=!0;this._navigate('next');this.options.autoplay=!0;this._startSlideshow()}},pause:function(){if(this.isPlaying){this.slideshow.pause()}},resume:function(){if(this.isPlaying){this.slideshow.resume()}},destroy:function(i){this.slideshow.destroy(i)}};i.fn.aviaSlider=function(t){return this.each(function(){var s=i.data(this,'aviaSlider');if(!s){s=i.data(this,'aviaSlider',new i.AviaSlider(t,this))}})}})(jQuery);(function(e){'use strict';var t=['years','months','weeks','days','hours','minutes','seconds'],o=1000,a=o*60,n=a*60,i=n*24,r=i*7,s=function(t,a,s){var o=a.getFullYear()-t.getFullYear(),r=a.getMonth()-t.getMonth(),n=a.getDate()-t.getDate(),i=0,e={};if(n<0){i=-1;var d=new Date(t.getFullYear(),t.getMonth(),0).getDate();n=d-t.getDate()+a.getDate()};if(s=='months'){e.months=o*12+r+i,e.days=n}
else{e.years=o;e.months=r+i,e.days=n};return e},d=function(t){var c=new Date(),l=new Date(c.getTime()+c.getTimezoneOffset()*60000),d=t.end-l;if(d<=0){clearInterval(t.countdown);return};t.time.years=0;t.time.months=0;t.time.weeks=Math.floor(d/r);t.time.days=Math.floor((d%r)/i);t.time.hours=Math.floor((d%i)/n);t.time.minutes=Math.floor((d%n)/a);t.time.seconds=Math.floor((d%a)/o);switch(t.data.maximum){case 1:t.time.seconds=Math.floor(d/o);break;case 2:t.time.minutes=Math.floor(d/a);break;case 3:t.time.hours=Math.floor(d/n);break;case 4:t.time.days=Math.floor(d/i);break;case 6:var u=s(l,t.end,'months');t.time.days=u.days;t.time.months=u.months;break;case 7:var u=s(l,t.end,'years');t.time.days=u.days;t.time.months=u.months;t.time.years=u.years;break};for(var m in t.time){if(typeof t.update[m]=='object'){if(t.firstrun||t.oldtime[m]!=t.time[m]){var f=(t.time[m]===1)?'single':'multi';t.update[m].time_container.text(t.time[m]);t.update[m].label_container.text(t.update[m][f])}}};if(t.firstrun)t.container.addClass('av-countdown-active');t.oldtime=e.extend({},t.time);t.firstrun=!1};e.fn.aviaCountdown=function(a){if(!this.length){return};return this.each(function(){var a={};a.update={};a.time={};a.oldtime={};a.firstrun=!0;a.container=e(this);a.data=a.container.data();a.end=new Date(a.data.year,a.data.month,a.data.day,a.data.hour,a.data.minute);if(a.data.timezone!='0'){a.end=new Date(a.end.getTime()-a.data.timezone*60000)};for(var n in t){a.update[t[n]]={time_container:a.container.find('.av-countdown-'+t[n]+' .av-countdown-time'),label_container:a.container.find('.av-countdown-'+t[n]+' .av-countdown-time-label')};if(a.update[t[n]].label_container.length){a.update[t[n]].single=a.update[t[n]].label_container.data('label');a.update[t[n]].multi=a.update[t[n]].label_container.data('label-multi')}};d(a);a.countdown=setInterval(function(){d(a)},1000)})}}(jQuery));(function(a){'use strict';a.fn.avia_sc_gallery=function(t){return this.each(function(){var i=a(this),e=i.find('img'),t=i.find('.avia-gallery-big');i.on('avia_start_animation',function(){e.each(function(t){var i=a(this);setTimeout(function(){i.addClass('avia_start_animation')},(t*110))})});if(i.hasClass('deactivate_avia_lazyload'))i.trigger('avia_start_animation');if(t.length){i.on('mouseenter','.avia-gallery-thumb a',function(){var i=this;t.attr('data-onclick',i.getAttribute('data-onclick'));t.height(t.height());t.attr('href',i.href);var o=i.getAttribute('data-prev-img'),e=t.find('img'),s=e.attr('src');if(o!=s){var r=new Image();r.src=o;var n=a(r);if(t.hasClass('avia-gallery-big-no-crop-thumb')){n.css({'height':t.height(),'width':'auto'})};t.stop().animate({opacity:0},function(){n.insertAfter(e);e.remove();t.animate({opacity:1});t.attr('title',a(i).attr('title'))})}});t.on('click',function(){var a=i.find('.avia-gallery-thumb a').eq(this.getAttribute('data-onclick')-1);if(a&&!a.hasClass('aviaopeninbrowser')){a.trigger('click')}
else if(a){var t=a.attr('href'),e=a.hasClass('custom_link')?'noopener,noreferrer':'';if(a.hasClass('aviablank')&&t!=''){window.open(t,'_blank',e)}
else if(t!=''){window.open(t,'_self',e)}};return!1});a(window).on('debouncedresize',function(){t.height('auto')})}})}}(jQuery));(function(i){'use strict';i.fn.avia_hor_gallery=function(e){var n={slide_container:'.av-horizontal-gallery-inner',slide_element:'.av-horizontal-gallery-slider',slide_content:'.av-horizontal-gallery-wrap',active:'av-active-gal-item',prev:'.av-horizontal-gallery-prev',next:'.av-horizontal-gallery-next'};var e=i.extend(n,e),t=i(window),r=i.avia_utilities.supports('transition'),l=this.browserPrefix!==!1?!0:!1,a=i.avia_utilities.isMobile,s=document.documentElement.className.indexOf('avia_transform3d')!==-1?!0:!1,o={};return this.each(function(){var n=i(this),s=n.find(e.slide_container),d=n.find(e.slide_element),o=n.find(e.slide_content),h=n.find(e.prev),u=n.find(e.next),v=n.find('img'),l=0,r=!1,f=n.data('av-initial'),g=function(e){var t=(s.width()/100)*s.data('av-height');s.css({'padding':0}).height(t);v.css('display','inline-block');setTimeout(function(){v.css('display','block')},10);l=0;o.each(function(){l+=i(this).outerWidth(!0)});d.css('min-width',l);if(r!==!1){c(r)}},c=function(i){var a=d.find(e.slide_content).eq(i),o=s.width(),c=n.data('av-enlarge')>1&&r==i?n.data('av-enlarge'):1,v=a.outerWidth(!0)*c,f=parseInt(a.css('margin-right'),10)/2,t=o<l?(a.position().left*-1)-(v/2)+(o/2):0;t=t+f;if(t+l<o)t=(l-o-parseInt(a.css('margin-right'),10))*-1;if(t>0)t=0;d.css('left',t);s.find('.'+e.active).removeClass(e.active);a.addClass(e.active);r=i};i.avia_utilities.preload({container:n,global_callback:function(){g('init');t.on('debouncedresize',g);if(f)c(f-1);setTimeout(function(){n.addClass('av-horizontal-gallery-animated')},10)}});d.avia_swipe_trigger({prev:e.prev,next:e.next});o.on('click',function(e){var a=i(this),t=o.index(a);if(r===t){if(n.data('av-enlarge')>1&&!i(e.target).is('a')){};return};c(t)});h.on('click',function(i){if(r===!1)r=1;var e=r-1;if(e<0)e=0;c(e)});u.on('click',function(i){if(r===!1)r=-1;var e=r+1;if(e>o.length-1)e=o.length-1;c(e)});if(!a){n.avia_keyboard_controls({37:e.prev,39:e.next})}
else{n.avia_swipe_trigger({next:e.next,prev:e.prev})}})}}(jQuery));(function(t){'use strict';t.AviaTextRotator=function(i,e){this.$win=t(window);this.$slider=t(e);this.$inner=this.$slider.find('.av-rotator-text');this.$slides=this.$inner.find('.av-rotator-text-single');this.$current=this.$slides.eq(0);this.open=0;this.count=this.$slides.length;if(t.avia_utilities.supported.transition===undefined){t.avia_utilities.supported.transition=t.avia_utilities.supports('transition')};this.browserPrefix=t.avia_utilities.supported.transition;this.cssActive=this.browserPrefix!==!1?!0:!1;this.property=this.browserPrefix+'transform',this._init(i)};t.AviaTextRotator.prototype={_init:function(i){var e=this;if(this.count<=1)return;e.options=t.extend({},i,this.$slider.data());e.$inner.addClass('av-rotation-active');e._autoplay();if(e.options.animation=='typewriter'){e.$slider.addClass('av-caret av-blinking-caret')}},_autoplay:function(){var t=this;t.autoplay=setTimeout(function(){t.open=t.open===!1?0:t.open+1;if(t.open>=t.count)t.open=0;if(t.options.animation!='typewriter'){t._move({},t.open);t._autoplay()}
else{t._typewriter()}},t.options.interval*1000)},_typewriter:function(i){var t=this;t.$current.css('background-color',t.$current.css('color'));t.$slider.removeClass('av-caret av-blinking-caret').addClass('av-marked-text');setTimeout(function(){t.$slider.addClass('av-caret av-blinking-caret').removeClass('av-marked-text');t.$current.data('av_typewriter_text',t.$current.html());t.$current.css('background-color','transparent');t.$current.html('')},800);setTimeout(function(){t.$slider.removeClass('av-blinking-caret');t.$next=t.$slides.eq(t.open);var i=t.$next.data('av_typewriter_text')||t.$next.html();i=i.replace(/&amp;/g,'&');t.$current.css({display:'none'});t.$next.css({display:'inline'});t.$next.html('');var e=0,n=50;function a(){if(e<i.length){t.$next[0].innerHTML+=i.charAt(e);e++;setTimeout(a,n+Math.floor(Math.random()*100))}
else{t.$slider.addClass('av-caret av-blinking-caret');t.$current=t.$slides.eq(t.open);t._autoplay()}};a()},1500)},_move:function(i){var t=this,e=30*t.options.animation,a={opacity:0},n={display:'inline-block',opacity:0},r={opacity:1};this.$next=t.$slides.eq(this.open);if(this.cssActive){a[t.property]='translate(0px,'+e+'px)';n[t.property]='translate(0px,'+(e*-1)+'px)';r[t.property]='translate(0px,0px)'}
else{a['top']=e;n['top']=(e*-1);r['top']=0};t.$current.avia_animate(a,function(){t.$current.css({display:'none'});t.$next.css(n).avia_animate(r,function(){t.$current=t.$slides.eq(t.open)})})}};t.fn.avia_textrotator=function(i){return this.each(function(){var e=t.data(this,'AviaTextRotator');if(!e){t.data(this,'AviaTextRotator',1);new t.AviaTextRotator(i,this)}})}}(jQuery));(function(i){'use strict';i(window).on('load',function(a){i('.avia-icongrid-flipbox').avia_sc_icongrid()});i.fn.avia_sc_icongrid=function(a){return this.each(function(){var o=i(this),n='#'+i(this).attr('id'),a={},e=i('.avia-icongrid-flipbox li');e.on('touchend',function(a){a.preventDefault();a.stopImmediatePropagation();var n=i(this),o=n.closest('.avia-icongrid-flipbox');if(n.hasClass('avia-hover')){o.find('li').removeClass('avia-hover')}
else{o.find('li').removeClass('avia-hover');n.addClass('avia-hover')}});if(o.hasClass('avia_flip_force_close')){i('body').on('touchend',function(a){var n=i('.avia-icongrid-flipbox.avia_flip_force_close');n.each(function(){var a=i(this);a.find('li').removeClass('avia-hover')})})};a={buildIconGrid:function(){this.setMinHeight(i(n+' li article'));this.createFlipBackground(i(n+' li'))},setMinHeight:function(a){if(a.length<2){return};var n=[];a.css('min-height','0').each(function(a){var o=i(this),e=o.outerHeight(!0);n.push(e)});var o=Math.max.apply(null,n);a.css('min-height',o)},createFlipBackground:function(a){a.each(function(a,e){var n=i(this).find('.avia-icongrid-content');if(n.length>0){if(i(this).find('.avia-icongrid-flipback').length<=0){var o=n.clone().addClass('avia-icongrid-flipback').removeClass('avia-icongrid-content');n.after(o)}}})}};a.buildIconGrid();i(window).on('resize',function(){a.buildIconGrid()})})}}(jQuery));(function(i){'use strict';i.fn.avia_sc_iconlist=function(n){return this.each(function(){var n=i(this),t=n.find('>li');n.on('avia_start_animation',function(){t.each(function(n){var t=i(this);setTimeout(function(){t.addClass('avia_start_animation')},(n*350))})})})}}(jQuery));(function(t){'use strict';t.fn.aviaHotspots=function(n){if(!this.length)return;return this.each(function(){var n={};n.container=t(this);n.hotspots=n.container.find('.av-image-hotspot');n.container.on('avia_start_animation',function(){setTimeout(function(){n.hotspots.each(function(n){var i=t(this);setTimeout(function(){i.addClass('av-display-hotspot')},300*n)})},400)})})}}(jQuery));(function(a){'use strict';var t=!1,i={switchMag:function(n,i){var e=a(n);if(e.is('.active_sort')||t)return;var s=e.data('filter'),o=i.container.filter(':visible'),r=i.container.filter('.'+s);t=!0;i.sort_buttons.removeClass('active_sort');e.addClass('active_sort');i.magazine.height(i.magazine.outerHeight());o.avia_animate({opacity:0},200,function(){o.css({display:'none'});r.css({opacity:0,display:'block'}).avia_animate({opacity:1},150,function(){i.magazine.avia_animate({height:(r.outerHeight()+i.sort_bar.outerHeight())},150,function(){i.magazine.height('auto');t=!1})})})}};a.fn.aviaMagazine=function(t){if(!this.length)return;return this.each(function(){var t={};t.magazine=a(this),t.sort_buttons=t.magazine.find('.av-magazine-sort a');t.container=t.magazine.find('.av-magazine-group');t.sort_bar=t.magazine.find('.av-magazine-top-bar');t.sort_buttons.on('click',function(a){a.preventDefault();i.switchMag(this,t)})})}}(jQuery));!function(t,e){'function'==typeof define&&define.amd?define('jquery-bridget/jquery-bridget',['jquery'],function(i){return e(t,i)}):'object'==typeof module&&module.exports?module.exports=e(t,require('jquery')):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){'use strict';function n(i,n,a){function h(t,e,n){var s,r='$().'+i+'("'+e+'")';return t.each(function(t,h){var u=a.data(h,i);if(!u)return void o(i+' not initialized. Cannot call methods, i.e. '+r);var c=u[e];if(!c||'_'==e.charAt(0))return void o(r+' is not a valid method');var d=c.apply(u,n);s=void 0===s?d:s}),void 0!==s?s:t};function u(t,e){t.each(function(t,o){var s=a.data(o,i);s?(s.option(e),s._init()):(s=new n(o,e),a.data(o,i,s))})};a=a||e||t.jQuery,a&&(n.prototype.option||(n.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if('string'==typeof t){var e=r.call(arguments,1);return h(this,t,e)};return u(this,t),this},s(a))};function s(t){!t||t&&t.bridget||(t.bridget=n)};var r=Array.prototype.slice,i=t.console,o='undefined'==typeof i?function(){}:function(t){i.error(t)};return s(e||t.jQuery),n}),function(t,e){'function'==typeof define&&define.amd?define('ev-emitter/ev-emitter',e):'object'==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}('undefined'!=typeof window?window:this,function(){function e(){};var t=e.prototype;return t.on=function(t,e){if(t&&e){var i=this._events=this._events||{},o=i[t]=i[t]||[];return o.indexOf(e)==-1&&o.push(e),this}},t.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},o=i[t]=i[t]||{};return o[e]=!0,this}},t.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var o=i.indexOf(e);return o!=-1&&i.splice(o,1),this}},t.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],s=0;s<i.length;s++){var o=i[s],r=n&&n[o];r&&(this.off(t,o),delete n[o]),o.apply(this,e)};return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e}),function(t,e){'function'==typeof define&&define.amd?define('get-size/get-size',e):'object'==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){'use strict';function i(t){var e=parseFloat(t),i=t.indexOf('%')==-1&&!isNaN(e);return i&&e};function h(){};function u(){for(var i={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},t=0;t<o;t++){var n=e[t];i[n]=0};return i};function s(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 c(){if(!n){n=!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 o=document.body||document.documentElement;o.appendChild(e);var a=s(e);t=200==Math.round(i(a.width)),r.isBoxSizeOuter=t,o.removeChild(e)}};function r(n){if(c(),'string'==typeof n&&(n=document.querySelector(n)),n&&'object'==typeof n&&n.nodeType){var a=s(n);if('none'==a.display)return u();var r={};r.width=n.offsetWidth,r.height=n.offsetHeight;for(var w=r.isBorderBox='border-box'==a.boxSizing,h=0;h<o;h++){var v=e[h],b=a[v],x=parseFloat(b);r[v]=isNaN(x)?0:x};var l=r.paddingLeft+r.paddingRight,f=r.paddingTop+r.paddingBottom,z=r.marginLeft+r.marginRight,I=r.marginTop+r.marginBottom,p=r.borderLeftWidth+r.borderRightWidth,m=r.borderTopWidth+r.borderBottomWidth,g=w&&t,y=i(a.width);y!==!1&&(r.width=y+(g?0:l+p));var d=i(a.height);return d!==!1&&(r.height=d+(g?0:f+m)),r.innerWidth=r.width-(l+p),r.innerHeight=r.height-(f+m),r.outerWidth=r.width+z,r.outerHeight=r.height+I,r}};var t,a='undefined'==typeof console?h:function(t){console.error(t)},e=['paddingLeft','paddingRight','paddingTop','paddingBottom','marginLeft','marginRight','marginTop','marginBottom','borderLeftWidth','borderRightWidth','borderTopWidth','borderBottomWidth'],o=e.length,n=!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 e=window.Element.prototype;if(e.matches)return'matches';if(e.matchesSelector)return'matchesSelector';for(var o=['webkit','moz','ms','o'],t=0;t<o.length;t++){var n=o[t],i=n+'MatchesSelector';if(e[i])return i}}();return function(e,i){return e[t](i)}}),function(t,e){'function'==typeof define&&define.amd?define('fizzy-ui-utils/utils',['desandro-matches-selector/matches-selector'],function(i){return e(t,i)}):'object'==typeof module&&module.exports?module.exports=e(t,require('desandro-matches-selector')):t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(t,e){var i={};i.extend=function(t,e){for(var i in e)t[i]=e[i];return t},i.modulo=function(t,e){return(t%e+e)%e};var n=Array.prototype.slice;i.makeArray=function(t){if(Array.isArray(t))return t;if(null===t||void 0===t)return[];var e='object'==typeof t&&'number'==typeof t.length;return e?n.call(t):[t]},i.removeFrom=function(t,e){var i=t.indexOf(e);i!=-1&&t.splice(i,1)},i.getParent=function(t,i){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return'string'==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e='on'+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,o){t=i.makeArray(t);var n=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!o)return void n.push(t);e(t,o)&&n.push(t);for(var s=t.querySelectorAll(o),i=0;i<s.length;i++)n.push(s[i])}}),n},i.debounceMethod=function(t,e,i){i=i||100;var n=t.prototype[e],o=e+'Timeout';t.prototype[e]=function(){var s=this[o];clearTimeout(s);var e=arguments,t=this;this[o]=setTimeout(function(){n.apply(t,e),delete t[o]},i)}},i.docReady=function(t){var e=document.readyState;'complete'==e||'interactive'==e?setTimeout(t):document.addEventListener('DOMContentLoaded',t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+'-'+i}).toLowerCase()};var o=t.console;return i.htmlInit=function(e,n){i.docReady(function(){var r=i.toDashed(n),s='data-'+r,h=document.querySelectorAll('['+s+']'),u=document.querySelectorAll('.js-'+r),c=i.makeArray(h).concat(i.makeArray(u)),d=s+'-options',a=t.jQuery;c.forEach(function(t){var i,r=t.getAttribute(s)||t.getAttribute(d);try{i=r&&JSON.parse(r)}catch(u){return void(o&&o.error('Error parsing '+s+' on '+t.className+': '+u))};var h=new e(t,i);a&&a.data(t,n,h)})})},i}),function(t,e){'function'==typeof define&&define.amd?define('outlayer/item',['ev-emitter/ev-emitter','get-size/get-size'],e):'object'==typeof module&&module.exports?module.exports=e(require('ev-emitter'),require('get-size')):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,function(t,e){'use strict';function l(t){for(var e in t)return!1;return e=null,!0};function n(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())};function f(t){return t.replace(/([A-Z])/g,function(t){return'-'+t.toLowerCase()})};var s=document.documentElement.style,o='string'==typeof s.transition?'transition':'WebkitTransition',r='string'==typeof s.transform?'transform':'WebkitTransform',a={WebkitTransition:'webkitTransitionEnd',transition:'transitionend'}[o],d={transform:r,transition:o,transitionDuration:o+'Duration',transitionProperty:o+'Property',transitionDelay:o+'Delay'},i=n.prototype=Object.create(t.prototype);i.constructor=n,i._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:'absolute'})},i.handleEvent=function(t){var e='on'+t.type;this[e]&&this[e](t)},i.getSize=function(){this.size=e(this.element)},i.css=function(t){var o=this.element.style;for(var e in t){var i=d[e]||e;o[i]=t[e]}},i.getPosition=function(){var o=getComputedStyle(this.element),n=this.layout._getOption('originLeft'),s=this.layout._getOption('originTop'),r=o[n?'left':'right'],a=o[s?'top':'bottom'],t=parseFloat(r),e=parseFloat(a),i=this.layout.size;r.indexOf('%')!=-1&&(t=t/100*i.width),a.indexOf('%')!=-1&&(e=e/100*i.height),t=isNaN(t)?0:t,e=isNaN(e)?0:e,t-=n?i.paddingLeft:i.paddingRight,e-=s?i.paddingTop:i.paddingBottom,this.position.x=t,this.position.y=e},i.layoutPosition=function(){var o=this.layout.size,t={},e=this.layout._getOption('originLeft'),i=this.layout._getOption('originTop'),h=e?'paddingLeft':'paddingRight',u=e?'left':'right',c=e?'right':'left',d=this.position.x+o[h];t[u]=this.getXValue(d),t[c]='';var n=i?'paddingTop':'paddingBottom',s=i?'top':'bottom',r=i?'bottom':'top',a=this.position.y+o[n];t[s]=this.getYValue(a),t[r]='',this.css(t),this.emitEvent('layout',[this])},i.getXValue=function(t){var e=this.layout._getOption('horizontal');return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+'%':t+'px'},i.getYValue=function(t){var e=this.layout._getOption('horizontal');return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+'%':t+'px'},i._transitionTo=function(t,e){this.getPosition();var s=this.position.x,r=this.position.y,a=t==this.position.x&&e==this.position.y;if(this.setPosition(t,e),a&&!this.isTransitioning)return void this.layoutPosition();var o=t-s,n=e-r,i={};i.transform=this.getTranslate(o,n),this.transition({to:i,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},i.getTranslate=function(t,e){var i=this.layout._getOption('originLeft'),o=this.layout._getOption('originTop');return t=i?t:-t,e=o?e:-e,'translate3d('+t+'px, '+e+'px, 0)'},i.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},i.moveTo=i._transitionTo,i.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},i._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},i.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(t);var i=this._transn;for(var e in t.onTransitionEnd)i.onEnd[e]=t.onTransitionEnd[e];for(e in t.to)i.ingProperties[e]=!0,t.isCleaning&&(i.clean[e]=!0);if(t.from){this.css(t.from);var o=this.element.offsetHeight;o=null};this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0};var c='opacity,'+f(r);i.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t='number'==typeof t?t+'ms':t,this.css({transitionProperty:c,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(a,this,!1)}},i.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},i.onotransitionend=function(t){this.ontransitionend(t)};var u={'-webkit-transform':'transform'};i.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,i=u[t.propertyName]||t.propertyName;if(delete e.ingProperties[i],l(e.ingProperties)&&this.disableTransition(),i in e.clean&&(this.element.style[t.propertyName]='',delete e.clean[i]),i in e.onEnd){var o=e.onEnd[i];o.call(this),delete e.onEnd[i]};this.emitEvent('transitionEnd',[this])}},i.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(a,this,!1),this.isTransitioning=!1},i._removeStyles=function(t){var e={};for(var i in t)e[i]='';this.css(e)};var h={transitionProperty:'',transitionDuration:'',transitionDelay:''};return i.removeTransitionStyles=function(){this.css(h)},i.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+'ms'},i.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:''}),this.emitEvent('remove',[this])},i.remove=function(){return o&&parseFloat(this.layout.options.transitionDuration)?(this.once('transitionEnd',function(){this.removeElem()}),void this.hide()):void this.removeElem()},i.reveal=function(){delete this.isHidden,this.css({display:''});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty('visibleStyle');e[i]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},i.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent('reveal')},i.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return'opacity';for(var i in e)return i},i.hide=function(){this.isHidden=!0,this.css({display:''});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty('hiddenStyle');e[i]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},i.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:'none'}),this.emitEvent('hide'))},i.destroy=function(){this.css({position:'',left:'',right:'',top:'',bottom:'',transition:'',transform:''})},n}),function(t,e){'use strict';'function'==typeof define&&define.amd?define('outlayer/outlayer',['ev-emitter/ev-emitter','get-size/get-size','fizzy-ui-utils/utils','./item'],function(i,o,n,s){return e(t,i,o,n,s)}):'object'==typeof module&&module.exports?module.exports=e(t,require('ev-emitter'),require('get-size'),require('fizzy-ui-utils'),require('./item')):t.Outlayer=e(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window,function(t,e,n,o,a){'use strict';function s(t,e){var i=o.getQueryElement(t);if(!i)return void(u&&u.error('Bad element for '+this.constructor.namespace+': '+(i||t)));this.element=i,r&&(this.$element=r(this.element)),this.options=o.extend({},this.constructor.defaults),this.option(e);var n=++f;this.element.outlayerGUID=n,h[n]=this,this._create();var s=this._getOption('initLayout');s&&this.layout()};function d(t){function e(){t.apply(this,arguments)};return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e};function p(t){if('number'==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),i=e&&e[1],n=e&&e[2];if(!i.length)return 0;i=parseFloat(i);var o=l[n]||1;return i*o};var u=t.console,r=t.jQuery,c=function(){},f=0,h={};s.namespace='outlayer',s.Item=a,s.defaults={containerStyle:{position:'relative'},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:'0.4s',hiddenStyle:{opacity:0,transform:'scale(0.001)'},visibleStyle:{opacity:1,transform:'scale(1)'}};var i=s.prototype;o.extend(i,e.prototype),i.option=function(t){o.extend(this.options,t)},i._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},s.compatOptions={initLayout:'isInitLayout',horizontal:'isHorizontal',layoutInstant:'isLayoutInstant',originLeft:'isOriginLeft',originTop:'isOriginTop',resize:'isResizeBound',resizeContainer:'isResizingContainer'},i._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),o.extend(this.element.style,this.options.containerStyle);var t=this._getOption('resize');t&&this.bindResize()},i.reloadItems=function(){this.items=this._itemize(this.element.children)},i._itemize=function(t){for(var i=this._filterFindItemElements(t),r=this.constructor.Item,o=[],e=0;e<i.length;e++){var n=i[e],s=new r(n,this);o.push(s)};return o},i._filterFindItemElements=function(t){return o.filterFindElements(t,this.options.itemSelector)},i.getItemElements=function(){return this.items.map(function(t){return t.element})},i.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption('layoutInstant'),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},i._init=i.layout,i._resetLayout=function(){this.getSize()},i.getSize=function(){this.size=n(this.element)},i._getMeasurement=function(t,e){var o,i=this.options[t];i?('string'==typeof i?o=this.element.querySelector(i):i instanceof HTMLElement&&(o=i),this[t]=o?n(o)[e]:i):this[t]=0},i.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},i._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},i._layoutItems=function(t,e){if(this._emitCompleteOnItems('layout',t),t&&t.length){var i=[];t.forEach(function(t){var o=this._getItemLayoutPosition(t);o.item=t,o.isInstant=e||t.isLayoutInstant,i.push(o)},this),this._processLayoutQueue(i)}},i._getItemLayoutPosition=function(){return{x:0,y:0}},i._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},i.updateStagger=function(){var t=this.options.stagger;return null===t||void 0===t?void(this.stagger=0):(this.stagger=p(t),this.stagger)},i._positionItem=function(t,e,i,o,n){o?t.goTo(e,i):(t.stagger(n*this.stagger),t.moveTo(e,i))},i._postLayout=function(){this.resizeContainer()},i.resizeContainer=function(){var e=this._getOption('resizeContainer');if(e){var t=this._getContainerSize();t&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))}},i._getContainerSize=c,i._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?'width':'height']=t+'px'}},i._emitCompleteOnItems=function(t,e){function n(){s.dispatchEvent(t+'Complete',null,[e])};function r(){i++,i==o&&n()};var s=this,o=e.length;if(!e||!o)return void n();var i=0;e.forEach(function(e){e.once(t,r)})},i.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),r)if(this.$element=this.$element||r(this.element),e){var o=r.Event(e);o.type=t,this.$element.trigger(o,i)}
else this.$element.trigger(t,i)},i.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},i.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},i.stamp=function(t){t=this._find(t),t&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},i.unstamp=function(t){t=this._find(t),t&&t.forEach(function(t){o.removeFrom(this.stamps,t),this.unignore(t)},this)},i._find=function(t){if(t)return'string'==typeof t&&(t=this.element.querySelectorAll(t)),t=o.makeArray(t)},i._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},i._getBoundingRect=function(){var e=this.element.getBoundingClientRect(),t=this.size;this._boundingRect={left:e.left+t.paddingLeft+t.borderLeftWidth,top:e.top+t.paddingTop+t.borderTopWidth,right:e.right-(t.paddingRight+t.borderRightWidth),bottom:e.bottom-(t.paddingBottom+t.borderBottomWidth)}},i._manageStamp=c,i._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,o=n(t),s={left:e.left-i.left-o.marginLeft,top:e.top-i.top-o.marginTop,right:i.right-e.right-o.marginRight,bottom:i.bottom-e.bottom-o.marginBottom};return s},i.handleEvent=o.handleEvent,i.bindResize=function(){t.addEventListener('resize',this),this.isResizeBound=!0},i.unbindResize=function(){t.removeEventListener('resize',this),this.isResizeBound=!1},i.onresize=function(){this.resize()},o.debounceMethod(s,'onresize',100),i.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},i.needsResizeLayout=function(){var t=n(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},i.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},i.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},i.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},i.reveal=function(t){if(this._emitCompleteOnItems('reveal',t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.reveal()})}},i.hide=function(t){if(this._emitCompleteOnItems('hide',t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.hide()})}},i.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},i.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},i.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},i.getItems=function(t){t=o.makeArray(t);var e=[];return t.forEach(function(t){var i=this.getItem(t);i&&e.push(i)},this),e},i.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems('remove',e),e&&e.length&&e.forEach(function(t){t.remove(),o.removeFrom(this.items,t)},this)},i.destroy=function(){var t=this.element.style;t.height='',t.position='',t.width='',this.items.forEach(function(t){t.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete h[e],delete this.element.outlayerGUID,r&&r.removeData(this.element,this.constructor.namespace)},s.data=function(t){t=o.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&h[e]},s.create=function(t,e){var i=d(s);return i.defaults=o.extend({},s.defaults),o.extend(i.defaults,e),i.compatOptions=o.extend({},s.compatOptions),i.namespace=t,i.data=s.data,i.Item=d(a),o.htmlInit(i,t),r&&r.bridget&&r.bridget(t,i),i};var l={ms:1,s:1e3};return s.Item=a,s}),function(t,e){'function'==typeof define&&define.amd?define('isotope-layout/js/item',['outlayer/outlayer'],e):'object'==typeof module&&module.exports?module.exports=e(require('outlayer')):(t.Isotope=t.Isotope||{},t.Isotope.Item=e(t.Outlayer))}(window,function(t){'use strict';function i(){t.Item.apply(this,arguments)};var e=i.prototype=Object.create(t.Item.prototype),n=e._create;e._create=function(){this.id=this.layout.itemGUID++,n.call(this),this.sortData={}},e.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData['original-order']=this.id,this.sortData.random=Math.random();var i=this.layout.options.getSortData,o=this.layout._sorters;for(var t in i){var e=o[t];this.sortData[t]=e(this.element,this)}}};var o=e.destroy;return e.destroy=function(){o.apply(this,arguments),this.css({display:''})},i}),function(t,e){'function'==typeof define&&define.amd?define('isotope-layout/js/layout-mode',['get-size/get-size','outlayer/outlayer'],e):'object'==typeof module&&module.exports?module.exports=e(require('get-size'),require('outlayer')):(t.Isotope=t.Isotope||{},t.Isotope.LayoutMode=e(t.getSize,t.Outlayer))}(window,function(t,e){'use strict';function o(t){this.isotope=t,t&&(this.options=t.options[this.namespace],this.element=t.element,this.items=t.filteredItems,this.size=t.size)};var i=o.prototype,n=['_resetLayout','_getItemLayoutPosition','_manageStamp','_getContainerSize','_getElementOffset','needsResizeLayout','_getOption'];return n.forEach(function(t){i[t]=function(){return e.prototype[t].apply(this.isotope,arguments)}}),i.needsVerticalResizeLayout=function(){var e=t(this.isotope.element),i=this.isotope.size&&e;return i&&e.innerHeight!=this.isotope.size.innerHeight},i._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},i.getColumnWidth=function(){this.getSegmentSize('column','Width')},i.getRowHeight=function(){this.getSegmentSize('row','Height')},i.getSegmentSize=function(t,e){var i=t+e,n='outer'+e;if(this._getMeasurement(i,n),!this[i]){var o=this.getFirstItemSize();this[i]=o&&o[n]||this.isotope.size['inner'+e]}},i.getFirstItemSize=function(){var e=this.isotope.filteredItems[0];return e&&e.element&&t(e.element)},i.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},i.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},o.modes={},o.create=function(t,e){function n(){o.apply(this,arguments)};return n.prototype=Object.create(i),n.prototype.constructor=n,e&&(n.options=e),n.prototype.namespace=t,o.modes[t]=n,n},o}),function(t,e){'function'==typeof define&&define.amd?define('masonry-layout/masonry',['outlayer/outlayer','get-size/get-size'],e):'object'==typeof module&&module.exports?module.exports=e(require('outlayer'),require('get-size')):t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,e){var o=t.create('masonry');o.compatOptions.fitWidth='isFitWidth';var i=o.prototype;return i._resetLayout=function(){this.getSize(),this._getMeasurement('columnWidth','outerWidth'),this._getMeasurement('gutter','outerWidth'),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},i.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var s=this.items[0],r=s&&s.element;this.columnWidth=r&&e(r).outerWidth||this.containerWidth};var t=this.columnWidth+=this.gutter,o=this.containerWidth+this.gutter,i=o/t,n=t-o%t,a=n&&n<1?'round':'floor';i=Math[a](i),this.cols=Math.max(i,1)},i.getContainerWidth=function(){var i=this._getOption('fitWidth'),o=i?this.element.parentNode:this.element,t=e(o);this.containerWidth=t&&t.innerWidth},i._getItemLayoutPosition=function(t){t.getSize();var n=t.size.outerWidth%this.columnWidth,u=n&&n<1?'round':'ceil',i=Math[u](t.size.outerWidth/this.columnWidth);i=Math.min(i,this.cols);for(var s=this.options.horizontalOrder?'_getHorizontalColPosition':'_getTopColPosition',e=this[s](i,t),r={x:this.columnWidth*e.col,y:e.y},a=e.y+t.size.outerHeight,h=i+e.col,o=e.col;o<h;o++)this.colYs[o]=a;return r},i._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},i._getTopColGroup=function(t){if(t<2)return this.colYs;for(var i=[],o=this.cols+1-t,e=0;e<o;e++)i[e]=this._getColGroupY(e,t);return i},i._getColGroupY=function(t,e){if(e<2)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i)},i._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)}},i._manageStamp=function(t){var r=e(t),n=this._getElementOffset(t),d=this._getOption('originLeft'),a=d?n.left:n.right,h=a+r.outerWidth,s=Math.floor(a/this.columnWidth);s=Math.max(0,s);var o=Math.floor(h/this.columnWidth);o-=h%this.columnWidth?0:1,o=Math.min(this.cols-1,o);for(var u=this._getOption('originTop'),c=(u?n.top:n.bottom)+r.outerHeight,i=s;i<=o;i++)this.colYs[i]=Math.max(c,this.colYs[i])},i._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption('fitWidth')&&(t.width=this._getContainerFitWidth()),t},i._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},i.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},o}),function(t,e){'function'==typeof define&&define.amd?define('isotope-layout/js/layout-modes/masonry',['../layout-mode','masonry-layout/masonry'],e):'object'==typeof module&&module.exports?module.exports=e(require('../layout-mode'),require('masonry-layout')):e(t.Isotope.LayoutMode,t.Masonry)}(window,function(t,e){'use strict';var n=t.create('masonry'),i=n.prototype,a={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(var o in e.prototype)a[o]||(i[o]=e.prototype[o]);var r=i.measureColumns;i.measureColumns=function(){this.items=this.isotope.filteredItems,r.call(this)};var s=i._getOption;return i._getOption=function(t){return'fitWidth'==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:s.apply(this.isotope,arguments)},n}),function(t,e){'function'==typeof define&&define.amd?define('isotope-layout/js/layout-modes/fit-rows',['../layout-mode'],e):'object'==typeof exports?module.exports=e(require('../layout-mode')):e(t.Isotope.LayoutMode)}(window,function(t){'use strict';var i=t.create('fitRows'),e=i.prototype;return e._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement('gutter','outerWidth')},e._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,o=this.isotope.size.innerWidth+this.gutter;0!==this.x&&e+this.x>o&&(this.x=0,this.y=this.maxY);var i={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,i},e._getContainerSize=function(){return{height:this.maxY}},i}),function(t,e){'function'==typeof define&&define.amd?define('isotope-layout/js/layout-modes/vertical',['../layout-mode'],e):'object'==typeof module&&module.exports?module.exports=e(require('../layout-mode')):e(t.Isotope.LayoutMode)}(window,function(t){'use strict';var i=t.create('vertical',{horizontalAlignment:0}),e=i.prototype;return e._resetLayout=function(){this.y=0},e._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},e._getContainerSize=function(){return{height:this.y}},i}),function(t,e){'function'==typeof define&&define.amd?define(['outlayer/outlayer','get-size/get-size','desandro-matches-selector/matches-selector','fizzy-ui-utils/utils','isotope-layout/js/item','isotope-layout/js/layout-mode','isotope-layout/js/layout-modes/masonry','isotope-layout/js/layout-modes/fit-rows','isotope-layout/js/layout-modes/vertical'],function(i,o,n,s,r,a){return e(t,i,o,n,s,r,a)}):'object'==typeof module&&module.exports?module.exports=e(t,require('outlayer'),require('get-size'),require('desandro-matches-selector'),require('fizzy-ui-utils'),require('isotope-layout/js/item'),require('isotope-layout/js/layout-mode'),require('isotope-layout/js/layout-modes/masonry'),require('isotope-layout/js/layout-modes/fit-rows'),require('isotope-layout/js/layout-modes/vertical')):t.Isotope=e(t,t.Outlayer,t.getSize,t.matchesSelector,t.fizzyUIUtils,t.Isotope.Item,t.Isotope.LayoutMode)}(window,function(t,e,o,s,n,h,a){function f(t,e){return function(i,o){for(var a=0;a<t.length;a++){var n=t[a],s=i.sortData[n],r=o.sortData[n];if(s>r||s<r){var h=void 0!==e[n]?e[n]:e,u=h?1:-1;return(s>r?1:-1)*u}};return 0}};var u=t.jQuery,l=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,'')},r=e.create('isotope',{layoutMode:'masonry',isJQueryFiltering:!0,sortAscending:!0});r.Item=h,r.LayoutMode=a;var i=r.prototype;i._create=function(){this.itemGUID=0,this._sorters={},this._getSorters(),e.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=['original-order'];for(var t in a.modes)this._initLayoutMode(t)},i.reloadItems=function(){this.itemGUID=0,e.prototype.reloadItems.call(this)},i._itemize=function(){for(var t=e.prototype._itemize.apply(this,arguments),i=0;i<t.length;i++){var o=t[i];o.id=this.itemGUID++};return this._updateItemsSortData(t),t},i._initLayoutMode=function(t){var e=a.modes[t],i=this.options[t]||{};this.options[t]=e.options?n.extend(e.options,i):i,this.modes[t]=new e(this)},i.layout=function(){return!this._isLayoutInited&&this._getOption('initLayout')?void this.arrange():void this._layout()},i._layout=function(){var t=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,t),this._isLayoutInited=!0},i.arrange=function(t){this.option(t),this._getIsInstant();var e=this._filter(this.items);this.filteredItems=e.matches,this._bindArrangeComplete(),this._isInstant?this._noTransition(this._hideReveal,[e]):this._hideReveal(e),this._sort(),this._layout()},i._init=i.arrange,i._hideReveal=function(t){this.reveal(t.needReveal),this.hide(t.needHide)},i._getIsInstant=function(){var t=this._getOption('layoutInstant'),e=void 0!==t?t:!this._isLayoutInited;return this._isInstant=e,e},i._bindArrangeComplete=function(){function t(){e&&i&&o&&n.dispatchEvent('arrangeComplete',null,[n.filteredItems])};var e,i,o,n=this;this.once('layoutComplete',function(){e=!0,t()}),this.once('hideComplete',function(){i=!0,t()}),this.once('revealComplete',function(){o=!0,t()})},i._filter=function(t){var n=this.options.filter;n=n||'*';for(var s=[],r=[],a=[],h=this._getFilterTest(n),o=0;o<t.length;o++){var e=t[o];if(!e.isIgnored){var i=h(e);i&&s.push(e),i&&e.isHidden?r.push(e):i||e.isHidden||a.push(e)}};return{matches:s,needReveal:r,needHide:a}},i._getFilterTest=function(t){return u&&this.options.isJQueryFiltering?function(e){return u(e.element).is(t)}:'function'==typeof t?function(e){return t(e.element)}:function(e){return s(e.element,t)}},i.updateSortData=function(t){var e;t?(t=n.makeArray(t),e=this.getItems(t)):e=this.items,this._getSorters(),this._updateItemsSortData(e)},i._getSorters=function(){var e=this.options.getSortData;for(var t in e){var i=e[t];this._sorters[t]=d(i)}},i._updateItemsSortData=function(t){for(var i=t&&t.length,e=0;i&&e<i;e++){var o=t[e];o.updateSortData()}};var d=function(){function t(t){if('string'!=typeof t)return t;var i=l(t).split(' '),o=i[0],n=o.match(/^\[(.+)\]$/),h=n&&n[1],s=e(h,o),a=r.sortDataParsers[i[1]];return t=a?function(t){return t&&a(s(t))}:function(t){return t&&s(t)}};function e(t,e){return t?function(e){return e.getAttribute(t)}:function(t){var i=t.querySelector(e);return i&&i.textContent}};return t}();r.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},i._sort=function(){if(this.options.sortBy){var t=n.makeArray(this.options.sortBy);this._getIsSameSortBy(t)||(this.sortHistory=t.concat(this.sortHistory));var e=f(this.sortHistory,this.options.sortAscending);this.filteredItems.sort(e)}},i._getIsSameSortBy=function(t){for(var e=0;e<t.length;e++)if(t[e]!=this.sortHistory[e])return!1;return!0},i._mode=function(){var t=this.options.layoutMode,e=this.modes[t];if(!e)throw new Error('No layout mode: '+t);return e.options=this.options[t],e},i._resetLayout=function(){e.prototype._resetLayout.call(this),this._mode()._resetLayout()},i._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},i._manageStamp=function(t){this._mode()._manageStamp(t)},i._getContainerSize=function(){return this._mode()._getContainerSize()},i.needsResizeLayout=function(){return this._mode().needsResizeLayout()},i.appended=function(t){var e=this.addItems(t);if(e.length){var i=this._filterRevealAdded(e);this.filteredItems=this.filteredItems.concat(i)}},i.prepended=function(t){var e=this._itemize(t);if(e.length){this._resetLayout(),this._manageStamps();var i=this._filterRevealAdded(e);this.layoutItems(this.filteredItems),this.filteredItems=i.concat(this.filteredItems),this.items=e.concat(this.items)}},i._filterRevealAdded=function(t){var e=this._filter(t);return this.hide(e.needHide),this.reveal(e.matches),this.layoutItems(e.matches,!0),e.matches},i.insert=function(t){var i=this.addItems(t);if(i.length){var e,n,o=i.length;for(e=0;e<o;e++)n=i[e],this.element.appendChild(n.element);var s=this._filter(i).matches;for(e=0;e<o;e++)i[e].isLayoutInstant=!0;for(this.arrange(),e=0;e<o;e++)delete i[e].isLayoutInstant;this.reveal(s)}};var c=i.remove;return i.remove=function(t){t=n.makeArray(t);var i=this.getItems(t);c.call(this,t);for(var o=i&&i.length,e=0;o&&e<o;e++){var s=i[e];n.removeFrom(this.filteredItems,s)}},i.shuffle=function(){for(var t=0;t<this.items.length;t++){var e=this.items[t];e.sortData.random=Math.random()};this.options.sortBy='random',this._sort(),this._layout()},i._noTransition=function(t,e){var o=this.options.transitionDuration;this.options.transitionDuration=0;var i=t.apply(this,e);return this.options.transitionDuration=o,i},i.getFilteredItemElements=function(){return this.filteredItems.map(function(t){return t.element})},r});!function(t,e){'function'==typeof define&&define.amd?define('packery/js/rect',e):'object'==typeof module&&module.exports?module.exports=e():(t.Packery=t.Packery||{},t.Packery.Rect=e())}(window,function(){function t(e){for(var i in t.defaults)this[i]=t.defaults[i];for(i in e)this[i]=e[i]};t.defaults={x:0,y:0,width:0,height:0};var e=t.prototype;return e.contains=function(t){var e=t.width||0,i=t.height||0;return this.x<=t.x&&this.y<=t.y&&this.x+this.width>=t.x+e&&this.y+this.height>=t.y+i},e.overlaps=function(t){var e=this.x+this.width,i=this.y+this.height,o=t.x+t.width,n=t.y+t.height;return this.x<o&&e>t.x&&this.y<n&&i>t.y},e.getMaximalFreeRects=function(e){if(!this.overlaps(e))return!1;var i,o=[],r=this.x+this.width,a=this.y+this.height,n=e.x+e.width,s=e.y+e.height;return this.y<e.y&&(i=new t({x:this.x,y:this.y,width:this.width,height:e.y-this.y}),o.push(i)),r>n&&(i=new t({x:n,y:this.y,width:r-n,height:this.height}),o.push(i)),a>s&&(i=new t({x:this.x,y:s,width:this.width,height:a-s}),o.push(i)),this.x<e.x&&(i=new t({x:this.x,y:this.y,width:e.x-this.x,height:this.height}),o.push(i)),o},e.canFit=function(t){return this.width>=t.width&&this.height>=t.height},t}),function(t,e){if('function'==typeof define&&define.amd)define('packery/js/packer',['./rect'],e);else if('object'==typeof module&&module.exports)module.exports=e(require('./rect'));else{var i=t.Packery=t.Packery||{};i.Packer=e(i.Rect)}}(window,function(t){function i(t,e,i){this.width=t||0,this.height=e||0,this.sortDirection=i||'downwardLeftToRight',this.reset()};var e=i.prototype;e.reset=function(){this.spaces=[];var e=new t({x:0,y:0,width:this.width,height:this.height});this.spaces.push(e),this.sorter=o[this.sortDirection]||o.downwardLeftToRight},e.pack=function(t){for(var e=0;e<this.spaces.length;e++){var i=this.spaces[e];if(i.canFit(t)){this.placeInSpace(t,i);break}}},e.columnPack=function(t){for(var i=0;i<this.spaces.length;i++){var e=this.spaces[i],o=e.x<=t.x&&e.x+e.width>=t.x+t.width&&e.height>=t.height-.01;if(o){t.y=e.y,this.placed(t);break}}},e.rowPack=function(t){for(var i=0;i<this.spaces.length;i++){var e=this.spaces[i],o=e.y<=t.y&&e.y+e.height>=t.y+t.height&&e.width>=t.width-.01;if(o){t.x=e.x,this.placed(t);break}}},e.placeInSpace=function(t,e){t.x=e.x,t.y=e.y,this.placed(t)},e.placed=function(t){for(var e=[],i=0;i<this.spaces.length;i++){var o=this.spaces[i],n=o.getMaximalFreeRects(t);n?e.push.apply(e,n):e.push(o)};this.spaces=e,this.mergeSortSpaces()},e.mergeSortSpaces=function(){i.mergeRects(this.spaces),this.spaces.sort(this.sorter)},e.addSpace=function(t){this.spaces.push(t),this.mergeSortSpaces()},i.mergeRects=function(t){var e=0,i=t[e];t:for(;i;){for(var o=0,n=t[e+o];n;){if(n==i)o++;else{if(n.contains(i)){t.splice(e,1),i=t[e];continue;t};i.contains(n)?t.splice(e+o,1):o++};n=t[e+o]};e++,i=t[e]};return t};var o={downwardLeftToRight:function(t,e){return t.y-e.y||t.x-e.x},rightwardTopToBottom:function(t,e){return t.x-e.x||t.y-e.y}};return i}),function(t,e){'function'==typeof define&&define.amd?define('packery/js/item',['outlayer/outlayer','./rect'],e):'object'==typeof module&&module.exports?module.exports=e(require('outlayer'),require('./rect')):t.Packery.Item=e(t.Outlayer,t.Packery.Rect)}(window,function(t,e){var r=document.documentElement.style,o='string'==typeof r.transform?'transform':'WebkitTransform',n=function(){t.Item.apply(this,arguments)},i=n.prototype=Object.create(t.Item.prototype),a=i._create;i._create=function(){a.call(this),this.rect=new e};var s=i.moveTo;return i.moveTo=function(t,e){var i=Math.abs(this.position.x-t),o=Math.abs(this.position.y-e),n=this.layout.dragItemCount&&!this.isPlacing&&!this.isTransitioning&&1>i&&1>o;return n?void this.goTo(t,e):void s.apply(this,arguments)},i.enablePlacing=function(){this.removeTransitionStyles(),this.isTransitioning&&o&&(this.element.style[o]='none'),this.isTransitioning=!1,this.getSize(),this.layout._setRectSize(this.element,this.rect),this.isPlacing=!0},i.disablePlacing=function(){this.isPlacing=!1},i.removeElem=function(){this.element.parentNode.removeChild(this.element),this.layout.packer.addSpace(this.rect),this.emitEvent('remove',[this])},i.showDropPlaceholder=function(){var t=this.dropPlaceholder;t||(t=this.dropPlaceholder=document.createElement('div'),t.className='packery-drop-placeholder',t.style.position='absolute'),t.style.width=this.size.width+'px',t.style.height=this.size.height+'px',this.positionDropPlaceholder(),this.layout.element.appendChild(t)},i.positionDropPlaceholder=function(){this.dropPlaceholder.style[o]='translate('+this.rect.x+'px, '+this.rect.y+'px)'},i.hideDropPlaceholder=function(){this.layout.element.removeChild(this.dropPlaceholder)},n}),function(t,e){'function'==typeof define&&define.amd?define('packery/js/packery',['get-size/get-size','outlayer/outlayer','./rect','./packer','./item'],e):'object'==typeof module&&module.exports?module.exports=e(require('get-size'),require('outlayer'),require('./rect'),require('./packer'),require('./item')):t.Packery=e(t.getSize,t.Outlayer,t.Packery.Rect,t.Packery.Packer,t.Packery.Item)}(window,function(t,e,o,n,s){function u(t,e){return t.position.y-e.position.y||t.position.x-e.position.x};function c(t,e){return t.position.x-e.position.x||t.position.y-e.position.y};function d(t,e){var i=e.x-t.x,o=e.y-t.y;return Math.sqrt(i*i+o*o)};o.prototype.canFit=function(t){return this.width>=t.width-1&&this.height>=t.height-1};var r=e.create('packery');r.Item=s;var i=r.prototype;i._create=function(){e.prototype._create.call(this),this.packer=new n,this.shiftPacker=new n,this.isEnabled=!0,this.dragItemCount=0;var t=this;this.handleDraggabilly={dragStart:function(){t.itemDragStart(this.element)},dragMove:function(){t.itemDragMove(this.element,this.position.x,this.position.y)},dragEnd:function(){t.itemDragEnd(this.element)}},this.handleUIDraggable={start:function(e,i){i&&t.itemDragStart(e.currentTarget)},drag:function(e,i){i&&t.itemDragMove(e.currentTarget,i.position.left,i.position.top)},stop:function(e,i){i&&t.itemDragEnd(e.currentTarget)}}},i._resetLayout=function(){this.getSize(),this._getMeasurements();var t,e,i;this._getOption('horizontal')?(t=1/0,e=this.size.innerHeight+this.gutter,i='rightwardTopToBottom'):(t=this.size.innerWidth+this.gutter,e=1/0,i='downwardLeftToRight'),this.packer.width=this.shiftPacker.width=t,this.packer.height=this.shiftPacker.height=e,this.packer.sortDirection=this.shiftPacker.sortDirection=i,this.packer.reset(),this.maxY=0,this.maxX=0},i._getMeasurements=function(){this._getMeasurement('columnWidth','width'),this._getMeasurement('rowHeight','height'),this._getMeasurement('gutter','width')},i._getItemLayoutPosition=function(t){if(this._setRectSize(t.element,t.rect),this.isShifting||this.dragItemCount>0){var e=this._getPackMethod();this.packer[e](t.rect)}
else this.packer.pack(t.rect);return this._setMaxXY(t.rect),t.rect},i.shiftLayout=function(){this.isShifting=!0,this.layout(),delete this.isShifting},i._getPackMethod=function(){return this._getOption('horizontal')?'rowPack':'columnPack'},i._setMaxXY=function(t){this.maxX=Math.max(t.x+t.width,this.maxX),this.maxY=Math.max(t.y+t.height,this.maxY)},i._setRectSize=function(e,i){var s=t(e),o=s.outerWidth,n=s.outerHeight;(o||n)&&(o=this._applyGridGutter(o,this.columnWidth),n=this._applyGridGutter(n,this.rowHeight)),i.width=Math.min(o,this.packer.width),i.height=Math.min(n,this.packer.height)},i._applyGridGutter=function(t,e){if(!e)return t+this.gutter;e+=this.gutter;var i=t%e,o=i&&1>i?'round':'ceil';return t=Math[o](t/e)*e},i._getContainerSize=function(){return this._getOption('horizontal')?{width:this.maxX-this.gutter}:{height:this.maxY-this.gutter}},i._manageStamp=function(t){var e,n=this.getItem(t);if(n&&n.isPlacing)e=n.rect;else{var i=this._getElementOffset(t);e=new o({x:this._getOption('originLeft')?i.left:i.right,y:this._getOption('originTop')?i.top:i.bottom})};this._setRectSize(t,e),this.packer.placed(e),this._setMaxXY(e)},i.sortItemsByPosition=function(){var t=this._getOption('horizontal')?c:u;this.items.sort(t)},i.fit=function(t,e,i){var o=this.getItem(t);o&&(this.stamp(o.element),o.enablePlacing(),this.updateShiftTargets(o),e=void 0===e?o.rect.x:e,i=void 0===i?o.rect.y:i,this.shift(o,e,i),this._bindFitEvents(o),o.moveTo(o.rect.x,o.rect.y),this.shiftLayout(),this.unstamp(o.element),this.sortItemsByPosition(),o.disablePlacing())},i._bindFitEvents=function(t){function i(){e++,2==e&&o.dispatchEvent('fitComplete',null,[t])};var o=this,e=0;t.once('layout',i),this.once('layoutComplete',i)},i.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&(this.options.shiftPercentResize?this.resizeShiftPercentLayout():this.layout())},i.needsResizeLayout=function(){var i=t(this.element),e=this._getOption('horizontal')?'innerHeight':'innerWidth';return i[e]!=this.size[e]},i.resizeShiftPercentLayout=function(){var n=this._getItemsForLayout(this.items),e=this._getOption('horizontal'),i=e?'y':'x',u=e?'height':'width',s=e?'rowHeight':'columnWidth',c=e?'innerHeight':'innerWidth',o=this[s];if(o=o&&o+this.gutter){this._getMeasurements();var h=this[s]+this.gutter;n.forEach(function(t){var e=Math.round(t.rect[i]/o);t.rect[i]=e*h})}
else{var r=t(this.element)[c]+this.gutter,a=this.packer[u];n.forEach(function(t){t.rect[i]=t.rect[i]/a*r})};this.shiftLayout()},i.itemDragStart=function(t){if(this.isEnabled){this.stamp(t);var e=this.getItem(t);e&&(e.enablePlacing(),e.showDropPlaceholder(),this.dragItemCount++,this.updateShiftTargets(e))}},i.updateShiftTargets=function(t){this.shiftPacker.reset(),this._getBoundingRect();var l=this._getOption('originLeft'),f=this._getOption('originTop');this.stamps.forEach(function(t){var n=this.getItem(t);if(!n||!n.isPlacing){var e=this._getElementOffset(t),i=new o({x:l?e.left:e.right,y:f?e.top:e.bottom});this._setRectSize(t,i),this.shiftPacker.placed(i)}},this);var n=this._getOption('horizontal'),d=n?'rowHeight':'columnWidth',s=n?'height':'width';this.shiftTargetKeys=[],this.shiftTargets=[];var i,e=this[d];if(e=e&&e+this.gutter){var c=Math.ceil(t.rect[s]/e),a=Math.floor((this.shiftPacker[s]+this.gutter)/e);i=(a-c)*e;for(var r=0;a>r;r++)this._addShiftTarget(r*e,0,i)}
else i=this.shiftPacker[s]+this.gutter-t.rect[s],this._addShiftTarget(0,0,i);var h=this._getItemsForLayout(this.items),u=this._getPackMethod();h.forEach(function(t){var o=t.rect;this._setRectSize(t.element,o),this.shiftPacker[u](o),this._addShiftTarget(o.x,o.y,i);var a=n?o.x+o.width:o.x,h=n?o.y:o.y+o.height;if(this._addShiftTarget(a,h,i),e)for(var l=Math.round(o[s]/e),r=1;l>r;r++){var c=n?a:o.x+e*r,d=n?o.y+e*r:h;this._addShiftTarget(c,d,i)}},this)},i._addShiftTarget=function(t,e,i){var n=this._getOption('horizontal')?e:t;if(!(0!==n&&n>i)){var o=t+','+e,s=-1!=this.shiftTargetKeys.indexOf(o);s||(this.shiftTargetKeys.push(o),this.shiftTargets.push({x:t,y:e}))}},i.shift=function(t,e,i){var o,n=1/0,s={x:e,y:i};this.shiftTargets.forEach(function(t){var e=d(t,s);n>e&&(o=t,n=e)}),t.rect.x=o.x,t.rect.y=o.y};var a=120;i.itemDragMove=function(t,e,i){function r(){n.shift(o,e,i),o.positionDropPlaceholder(),n.layout()};var o=this.isEnabled&&this.getItem(t);if(o){e-=this.size.paddingLeft,i-=this.size.paddingTop;var n=this,s=new Date;this._itemDragTime&&s-this._itemDragTime<a?(clearTimeout(this.dragTimeout),this.dragTimeout=setTimeout(r,a)):(r(),this._itemDragTime=s)}},i.itemDragEnd=function(t){function o(){i++,2==i&&(e.element.classList.remove('is-positioning-post-drag'),e.hideDropPlaceholder(),n.dispatchEvent('dragItemPositioned',null,[e]))};var e=this.isEnabled&&this.getItem(t);if(e){clearTimeout(this.dragTimeout),e.element.classList.add('is-positioning-post-drag');var i=0,n=this;e.once('layout',o),this.once('layoutComplete',o),e.moveTo(e.rect.x,e.rect.y),this.layout(),this.dragItemCount=Math.max(0,this.dragItemCount-1),this.sortItemsByPosition(),e.disablePlacing(),this.unstamp(e.element)}},i.bindDraggabillyEvents=function(t){this._bindDraggabillyEvents(t,'on')},i.unbindDraggabillyEvents=function(t){this._bindDraggabillyEvents(t,'off')},i._bindDraggabillyEvents=function(t,e){var i=this.handleDraggabilly;t[e]('dragStart',i.dragStart),t[e]('dragMove',i.dragMove),t[e]('dragEnd',i.dragEnd)},i.bindUIDraggableEvents=function(t){this._bindUIDraggableEvents(t,'on')},i.unbindUIDraggableEvents=function(t){this._bindUIDraggableEvents(t,'off')},i._bindUIDraggableEvents=function(t,e){var i=this.handleUIDraggable;t[e]('dragstart',i.start)[e]('drag',i.drag)[e]('dragstop',i.stop)};var h=i.destroy;return i.destroy=function(){h.apply(this,arguments),this.isEnabled=!1},r.Rect=o,r.Packer=n,r}),function(t,e){'function'==typeof define&&define.amd?define(['isotope-layout/js/layout-mode','packery/js/packery'],e):'object'==typeof module&&module.exports?module.exports=e(require('isotope-layout/js/layout-mode'),require('packery')):e(t.Isotope.LayoutMode,t.Packery)}(window,function(t,e){var n=t.create('packery'),i=n.prototype,u={_getElementOffset:!0,_getMeasurement:!0};for(var o in e.prototype)u[o]||(i[o]=e.prototype[o]);var h=i._resetLayout;i._resetLayout=function(){this.packer=this.packer||new e.Packer,this.shiftPacker=this.shiftPacker||new e.Packer,h.apply(this,arguments)};var a=i._getItemLayoutPosition;i._getItemLayoutPosition=function(t){return t.rect=t.rect||new e.Rect,a.call(this,t)};var r=i.needsResizeLayout;i.needsResizeLayout=function(){return this._getOption('horizontal')?this.needsVerticalResizeLayout():r.call(this)};var s=i._getOption;return i._getOption=function(t){return'horizontal'==t?void 0!==this.options.isHorizontal?this.options.isHorizontal:this.options.horizontal:s.apply(this.isotope,arguments)},n});(function(i){'use strict';i.fn.avia_masonry=function(a){if(!this.length)return this;var n=i('body'),e=i(window),s=i.avia_utilities.isMobile,o=!1,t={masonry_filter:function(){var a=i(this),l=a.html(),n=a.data('filter'),o=a.parents('.av-masonry').eq(0),s=o.find('.av-masonry-container').eq(0),f=o.find('.av-masonry-sort a'),r=o.find('.av-current-sort-title');f.removeClass('active_sort');a.addClass('active_sort');s.attr('id','masonry_id_'+n);if(r.length)r.html(l);t.applyMasonry(s,n,function(){s.css({overflow:'visible'})});setTimeout(function(){e.trigger('debouncedresize')},500);return!1},applyMasonry:function(a,o,s){var t=o?{filter:'.'+o}:{};t['layoutMode']='packery';t['packery']={gutter:0};t['percentPosition']=!0;t['itemSelector']='a.isotope-item, div.isotope-item';t['originLeft']=i('body').hasClass('rtl')?!1:!0;a.isotope(t,function(){e.trigger('av-height-change')});if(typeof s==='function'){setTimeout(s,0)}},show_bricks:function(a,t){a.each(function(o){var n=i(this),r=i.avia_utilities.supports('transition'),l=s?0:100;setTimeout(function(){if(r===!1){n.css({visibility:'visible',opacity:0}).animate({opacity:1},1500)}
else{n.addClass('av-masonry-item-loaded')};if(o==a.length-1&&typeof t=='function'){t.call();e.trigger('av-height-change')}},(l*o))})},loadMore:function(a){a.preventDefault();if(o)return!1;o=!0;var l=i(this),s=l.data(),r=l.parents('.av-masonry').eq(0),d=r.find('.av-masonry-container'),v=r.find('.av-masonry-entry'),f=i.avia_utilities.loading(),c=function(){o=!1;f.hide();n.trigger('av_resize_finished')};if(!s.offset){s.offset=0};s.offset+=s.items;s.action='avia_ajax_masonry_more';s.loaded=[];v.each(function(){var a=i(this).data('av-masonry-item');if(a)s.loaded.push(a)});i.ajax({url:avia_framework_globals.ajaxurl,type:'POST',data:s,beforeSend:function(){f.show()},success:function(a){if(a.indexOf('{av-masonry-loaded}')!==-1){var a=a.split('{av-masonry-loaded}'),o=i(a.pop()).filter('.isotope-item');if(o.length>s.items){o=o.not(o.last())}
else{l.addClass('av-masonry-no-more-items')};var n=i('<div class="loadcontainer"></div>').append(o);i.avia_utilities.preload({container:n,single_callback:function(){var s=r.find('.av-masonry-sort a'),a=r.find('.av-sort-by-term'),n=a.data('av-allowed-sort');a.hide();f.hide();d.isotope('insert',o);i.avia_utilities.avia_ajax_call(r);setTimeout(function(){t.show_bricks(o,c)},150);setTimeout(function(){e.trigger('av-height-change')},550);if(s){i(s).each(function(a){var t=i(this),e=t.data('filter');if(o){i(o).each(function(a){var s=i(this);if(s.hasClass(e)&&n.indexOf(e)!==-1){var o=t.find('.avia-term-count').text();t.find('.avia-term-count').text(' '+(parseInt(o)+1)+' ');if(t.hasClass('avia_hide_sort')){t.removeClass('avia_hide_sort').addClass('avia_show_sort');r.find('.av-masonry-sort .'+e+'_sep').removeClass('avia_hide_sort').addClass('avia_show_sort');r.find('.av-masonry-sort .av-sort-by-term').removeClass('hidden')}}})}})};a.fadeIn()}})}
else{c()}},error:c,complete:function(){setTimeout(function(){e.trigger('debouncedresize')},500)}})}};return this.each(function(){var a=i(this),e=a.find('.av-masonry-container'),o=a.find('.isotope-item'),n=a.find('.av-masonry-sort').css({visibility:'visible',opacity:0}).on('click','a',t.masonry_filter),r=a.find('.av-masonry-load-more').css({visibility:'visible',opacity:0});i.avia_utilities.preload({container:e,single_callback:function(){var l=function(){n.animate({opacity:1},400);if(e.outerHeight()+e.offset().top+i('#footer').outerHeight()>i(window).height()){i('html').css({'overflow-y':'scroll'})};t.applyMasonry(e,!1,function(){a.addClass('avia_sortable_active');e.removeClass('av-js-disabled ')});t.show_bricks(o,function(){r.css({opacity:1}).on('click',t.loadMore)})};if(s){l()}
else{a.waypoint(l,{offset:'80%'})};i(window).on('debouncedresize',function(){t.applyMasonry(e,!1,function(){a.addClass('avia_sortable_active')})})}})})}}(jQuery));(function(i){'use strict';i.avia_utilities=i.avia_utilities||{};i(document).ready(function(){i.avia_utilities=i.avia_utilities||{};if(i.avia_utilities.avia_sticky_submenu)i.avia_utilities.avia_sticky_submenu()});i.avia_utilities.avia_sticky_submenu=function(){var e=i(window),s=i('html').first(),t=i('.html_header_top.html_header_sticky #header'),a=parseInt(i('html').first().css('margin-top'),10),l=i('.html_header_sidebar #main, .boxed #main'),n=i('.av-submenu-container'),r=s.is('.html_minimal_header')?0:1,o=i('.av-frame-top').height(),h=i('.av-burger-menu-main'),u=function(){a=parseInt(s.css('margin-top'),10);if(!i('.mobile_menu_toggle:visible').length){i('.av-open-submenu').removeClass('av-open-submenu')};n.filter('.av-sticky-submenu').each(function(){i(this).next('.sticky_placeholder').height(i(this).height())})},v=function(){var i=l.width();a=parseInt(s.css('margin-top'),10);n.width(i)},b=function(n,v){var b=this.offset().top,l=n.offset().top,u=e.scrollTop(),i=a,s=!1;if(h.is(':visible')){this.css({top:'auto',position:'absolute'});s=!1;return};if(t.length){i+=t.outerHeight()+parseInt(t.css('margin-top'),10)};if(o){i+=o};if(u+i>l){if(!s){this.css({top:i-r,position:'fixed'});s=!0}}
else{this.css({top:'auto',position:'absolute'});s=!1}},m=function(e){e.preventDefault();var t=i(this),s=t.siblings('.av-subnav-menu');if(s.hasClass('av-open-submenu')){s.removeClass('av-open-submenu')}
else{s.addClass('av-open-submenu')}};e.on('debouncedresize av-height-change',u);u();if(l.length){e.on('debouncedresize av-height-change',v);v()};n.each(function(){var s=i(this),t=s.filter('.av-sticky-submenu'),n=s.next('.sticky_placeholder'),a=s.find('.mobile_menu_toggle');if(t.length)e.on('scroll debouncedresize',function(){window.requestAnimationFrame(i.proxy(b,t,n))});if(a.length){a.on('click',m)}});s.on('click','.av-submenu-hidden .av-open-submenu li a',function(){var s=i(this),e=s.siblings('ul, .avia_mega_div');if(e.length){if(e.hasClass('av-visible-sublist')){e.removeClass('av-visible-sublist')}
else{e.addClass('av-visible-sublist')};return!1}});i('.avia_mobile').on('click','.av-menu-mobile-disabled li a',function(){var s=i(this),e=s.siblings('ul');if(e.length){if(e.hasClass('av-visible-mobile-sublist')){}
else{i('.av-visible-mobile-sublist').removeClass('av-visible-mobile-sublist');e.addClass('av-visible-mobile-sublist');return!1}}})}}(jQuery));(function(e){'use strict';e.fn.avia_sc_messagebox=function(s){'use strict';return this.each(function(){var s=e(this),a=s.find('.av_message_close'),t=s.attr('id'),i=function(e,i,t){var a='';if(t){var s=new Date();s.setTime(s.getTime()+(t*24*60*60*1000));a='; expires='+s.toGMTString()};document.cookie=e+'='+i+a+'; path=/; samesite=strict'},n=function(t){var n=t+'=',o=document.cookie.split(';');for(var a=0;a<o.length;a++){var e=o[a];while(e.charAt(0)==' '){e=e.substring(1,e.length)};if(e.indexOf(n)==0){var r=s.attr('data-contents'),i=e.substring(n.length,e.length);if(i==r){return i}}};return null};if(!n(t)){s.removeClass('messagebox-hidden')};a.on('click',function(){var a=s.attr('data-contents'),e='';if(s.hasClass('messagebox-session_cookie')){e=''}
else if(s.hasClass('messagebox-custom_cookie')){e=parseInt(s.attr('data-cookielifetime'))};i(t,a,e);s.addClass('messagebox-hidden')})})};e('.avia_message_box').avia_sc_messagebox()}(jQuery));(function(t){t.fn.avia_sc_animated_number=function(a){if(!this.length)return;if(this.is('.avia_sc_animated_number_active'))return;this.addClass('avia_sc_animated_number_active');var e=(a&&a.simple_up)?!0:!1,r=(a&&a.start_timer)?a.start_timer:300,n=function(t,a,n){var r='',s=n.toString().length-t.toString().length;for(var i=s;i>0;i--){r+='0'};t=(e)?t.toString():r+t.toString();if(''==a){return t};return t.split(/(?=(?:...)*$)/).join(a)},i=function(t,a,r,u,f,s){var o=u+r,final='';if(o>=f){final=n(a,s,a);t.text(final)}
else{final=n(o,s,a);t.text(final);window.requestAnimationFrame(function(){i(t,a,r,o,f,s)})}};return this.each(function(){var n=t(this),e=n.find('.__av-single-number'),s=n.data('timer')||3000;e.each(function(a){var n=t(this),i=n.text();if(window.addEventListener)n.text(i.replace(/./g,'0'))});n.addClass('number_prepared').on('avia_start_animation',function(){if(n.is('.avia_animation_done'))return;n.addClass('avia_animation_done');e.each(function(n){var a=t(this),e=a.data('number'),f=e,u=parseInt(a.text(),10),m=/^0+$/.test(e),o=0,d='';if('undefined'!=typeof a.data('start_from')){u=a.data('start_from')};if('undefined'!=typeof a.data('number_format')){d=a.data('number_format')};if(m&&e!==0){f=e.replace(/0/g,'9')};o=Math.round(f*32/s);if(o==0||o%10==0)o+=1;setTimeout(function(){i(a,e,o,u,f,d)},r)})});if(a&&a.instant_start==!0){n.trigger('avia_start_animation')}})}})(jQuery);(function(i){'use strict';i.avia_utilities=i.avia_utilities||{};i.fn.avia_iso_sort=function(t){return this.each(function(){var o=i('body'),t=i(this),l=t.data('portfolio-id'),e=t.closest('.av-portfolio-grid-sorting-container, .entry-content-wrapper, .avia-fullwidth-portfolio'),n=e.find('.sort_width_container[data-portfolio-id="'+l+'"]').find('#js_sort_items').css({visibility:'visible',opacity:0}),s=n.find('a'),c=t.find('.grid-image'),d=!1,f=i('.post-entry',t),r=o.hasClass('rtl')?!1:!0;function a(){t.addClass('isotope_activated').isotope({layoutMode:'fitRows',itemSelector:'.flex_column',originLeft:r});t.isotope('on','layoutComplete',function(){t.css({overflow:'visible'});o.trigger('av_resize_finished')});d=!0;setTimeout(function(){e.addClass('avia_sortable_active')},0)};s.on('click',function(){var a=i(this),o=a.data('filter'),l=a.html(),n=e.find('.av-current-sort-title');if(n.length)n.html(l);s.removeClass('active_sort');a.addClass('active_sort');t.attr('id','grid_id_'+o);e.find('.open_container .ajax_controlls .avia_close').trigger('click');t.isotope({layoutMode:'fitRows',itemSelector:'.flex_column',filter:'.'+o,originLeft:r});return!1});i(window).on('debouncedresize',function(){a()});i.avia_utilities.preload({container:t,single_callback:function(){n.animate({opacity:1},400);a();setTimeout(function(){a()});c.css({height:'auto'}).each(function(t){var e=i(this);setTimeout(function(){e.animate({opacity:1},1500)},(100*t))})}})})};i.fn.avia_portfolio_preview=function(e){var o=i(window),a=i('body'),s=i.avia_utilities.isMobile,n={open_in:'.portfolio-details-inner',easing:'easeOutQuint',timing:800,transition:'slide'},t=i.extend({},n,e);return this.each(function(){var r=i(this),g=r.data('portfolio-id'),l=i('.portfolio_preview_container[data-portfolio-id="'+g+'"]'),d=l.find(t.open_in),p=r.find('.grid-entry'),e={},s=!1,c=!1,v=!1,f=!1,n,u,m=i.avia_utilities.loading();n={load_item:function(t){t.preventDefault();var o=i(this),e=o.parents('.post-entry').eq(0),a='ID_'+e.data('ajax-id'),l=p.index(e);if(a===s||c==!0){return!1};c=!0;r.find('.active_portfolio_item').removeClass('active_portfolio_item');e.addClass('active_portfolio_item');m.show();n.ajax_get_contents(a,l)},scroll_top:function(){setTimeout(function(){var e=l.offset().top-175,a=o.scrollTop();if(a>e||e-a>100){i('html:not(:animated),body:not(:animated)').animate({scrollTop:e},t.timing,t.easing)}},10)},attach_item:function(t){e[t]=i(e[t]).appendTo(d);f=!0},remove_video:function(){var i=l.find('iframe, .avia-video').parents('.ajax_slide:not(.open_slide)');if(i.length>0){i.remove();e['ID_'+i.data('slideId')]=undefined}},show_item:function(o,r){if(o===s){return!1};c=!0;m.hide();if(!1===s){l.addClass('open_container');e[o].addClass('open_slide');n.scroll_top();l.css({display:'none'}).slideDown(t.timing,t.easing,function(){if(f){i.avia_utilities.activate_shortcode_scripts(e[o]);i.avia_utilities.avia_ajax_call(e[o]);a.trigger('av_resize_finished');f=!1};n.remove_video();a.trigger('av_resize_finished')});v=r;s=o;c=!1}
else{n.scroll_top();var p={zIndex:3},u=t.easing;if(v>r){p.left='-110%'};if(t.transition==='fade'){p.left='0%';p.opacity=0;u='easeOutQuad'};d.height(d.height());e[o].css(p).avia_animate({'left':'0%',opacity:1},t.timing,u);e[s].avia_animate({opacity:0},t.timing,u,function(){e[s].attr({'style':''}).removeClass('open_slide');e[o].addClass('open_slide');d.avia_animate({height:e[o].outerHeight()+2},t.timing/2,t.easing,function(){d.attr({'style':''});s=o;v=r;c=!1;n.remove_video();if(f){a.trigger('av_resize_finished');i.avia_utilities.activate_shortcode_scripts(e[o]);i.avia_utilities.avia_ajax_call(e[o]);f=!1}})})}},ajax_get_contents:function(t,a){if(e[t]!==undefined){n.show_item(t,a);return};var o=i('#avia-tmpl-portfolio-preview-'+t.replace(/ID_/,''));if(o.length==0){setTimeout(function(){n.ajax_get_contents(t,a);return},500)};e[t]=o.html();e[t]=e[t].replace('/*<![CDATA[*/','').replace('*]]>','');n.attach_item(t);i.avia_utilities.preload({container:e[t],single_callback:function(){n.show_item(t,a)}})},add_controls:function(){u=l.find('.ajax_controlls');l.avia_keyboard_controls({27:'.avia_close',37:'.ajax_previous',39:'.ajax_next'});p.each(function(){var t=i(this),e;t.addClass('no_combo').on('click',function(i){e=t.find('.slideshow_overlay');if(e.length){i.stopPropagation();n.load_item.apply(t.find('a').eq(0));return!1}})})},control_click:function(){var o,f=r.find('.active_portfolio_item').data('ajax-id'),d=r.find('.post-entry-'+f);switch(this.hash){case'#next':o=d.nextAll('.post-entry:visible').eq(0).find('a').eq(0);if(!o.length){o=i('.post-entry:visible',r).eq(0).find('a').eq(0)};o.trigger('click');break;case'#prev':o=d.prevAll('.post-entry:visible').eq(0).find('a').eq(0);if(!o.length){o=i('.post-entry:visible',r).last().find('a').eq(0)};o.trigger('click');break;case'#close':c=!0;l.slideUp(t.timing,t.easing,function(){r.find('.active_portfolio_item').removeClass('active_portfolio_item');e[s].attr({'style':''}).removeClass('open_slide');l.removeClass('open_container');c=s=v=!1;n.remove_video();a.trigger('av_resize_finished')});break};return!1},resize_reset:function(){if(s===!1){d.html('');e=[]}}};n.add_controls();r.on('click','a',n.load_item);u.on('click','a',n.control_click);o.on('debouncedresize',n.resize_reset)})}}(jQuery));(function(a){'use strict';a.fn.avia_sc_progressbar=function(t){return this.each(function(){var t=a(this),i=t.find('.avia-progress-bar');t.on('avia_start_animation',function(){i.each(function(t){var i=a(this);setTimeout(function(){i.find('.progress').addClass('avia_start_animation');i.find('.progressbar-percent').avia_sc_animated_number({instant_start:!0,simple_up:!0,start_timer:10})},(t*250))})})})}}(jQuery));(function(e){'use strict';e.AviaVideoAPI=function(i,t,o){this.videoElement=t;this.$video=e(t);this.$option_container=o?e(o):this.$video;this.load_btn=this.$option_container.find('.av-click-to-play-overlay');this.video_wrapper=this.$video.parents('ul').eq(0);this.lazy_load=this.video_wrapper.hasClass('av-show-video-on-click')?!0:!1;this.isMobile=e.avia_utilities.isMobile;this.fallback=this.isMobile?this.$option_container.is('.av-mobile-fallback-image'):!1;if(this.fallback)return;this._init(i)};e.AviaVideoAPI.defaults={loop:!1,mute:!1,controls:!1,events:'play pause mute unmute loop toggle reset unload'};e.AviaVideoAPI.apiFiles={youtube:{loaded:!1,src:'https://www.youtube.com/iframe_api'}};e.AviaVideoAPI.players={};e.AviaVideoAPI.prototype={_init:function(i){this.options=this._setOptions(i);this.type=this._getPlayerType();this.player=!1;this._bind_player();this.eventsBound=!1;this.playing=!1;this.$option_container.addClass('av-video-paused');this.pp=e.avia_utilities.playpause(this.$option_container)},_setOptions:function(i){var n=e.extend(!0,{},e.AviaVideoAPI.defaults,i),o=this.$option_container.data(),t='';for(t in o){if(o.hasOwnProperty(t)&&(typeof o[t]==='string'||typeof o[t]==='number'||typeof o[t]==='boolean')){n[t]=o[t]}};return n},_getPlayerType:function(){var e=this.$video.get(0).src||this.$video.data('src');if(this.$video.is('video'))return'html5';if(this.$video.is('.av_youtube_frame'))return'youtube';if(e.indexOf('vimeo.com')!=-1)return'vimeo';if(e.indexOf('youtube.com')!=-1)return'youtube'},_bind_player:function(){var t=this,o=e('html').hasClass('av-cookies-needs-opt-in')||e('html').hasClass('av-cookies-can-opt-out'),i=!0,n=e('html').hasClass('av-cookies-user-silent-accept'),a='html5'==this.type;if(o&&!n&&!a){if(!document.cookie.match(/aviaCookieConsent/)||e('html').hasClass('av-cookies-session-refused')){i=!1}
else{if(!document.cookie.match(/aviaPrivacyRefuseCookiesHideBar/)){i=!1}
else if(!document.cookie.match(/aviaPrivacyEssentialCookiesEnabled/)){i=!1}
else if(document.cookie.match(/aviaPrivacyVideoEmbedsDisabled/)){i=!1}}};if(!i){this._use_external_link();return};if(this.lazy_load&&this.load_btn.length&&this.type!='html5'){this.$option_container.addClass('av-video-lazyload');this.load_btn.on('click',function(){t.load_btn.remove();t._setPlayer()})}
else{this.lazy_load=!1;this._setPlayer()}},_use_external_link:function(){this.$option_container.addClass('av-video-lazyload');this.load_btn.on('click',function(i){if(i.originalEvent===undefined)return;var t=e(this).parents('.avia-slide-wrap').find('div[data-original_url]').data('original_url');if(t)window.open(t,'_blank')})},_setPlayer:function(){var t=this;switch(this.type){case'html5':this.player=this.$video.data('mediaelementplayer');if(!this.player){this.$video.data('mediaelementplayer',e.AviaVideoAPI.players[this.$video.attr('id').replace(/_html5/,'')]);this.player=this.$video.data('mediaelementplayer')};this._playerReady();break;case'vimeo':var i=document.createElement('iframe');var o=e(i);i.onload=function(){t.player=Froogaloop(i);t._playerReady();t.$option_container.trigger('av-video-loaded')};i.setAttribute('src',this.$video.data('src'));o.insertAfter(this.$video);this.$video.remove();this.$video=i;break;case'youtube':this._getAPI(this.type);e('body').on('av-youtube-iframe-api-loaded',function(){t._playerReady()});break}},_getAPI:function(i){if(e.AviaVideoAPI.apiFiles[i].loaded===!1){e.AviaVideoAPI.apiFiles[i].loaded=!0;var t=document.createElement('script'),o=document.getElementsByTagName('script')[0];t.src=e.AviaVideoAPI.apiFiles[i].src;o.parentNode.insertBefore(t,o)}},_playerReady:function(){var i=this;this.$option_container.on('av-video-loaded',function(){i._bindEvents()});switch(this.type){case'html5':this.$video.on('av-mediajs-loaded',function(){i.$option_container.trigger('av-video-loaded')});this.$video.on('av-mediajs-ended',function(){i.$option_container.trigger('av-video-ended')});break;case'vimeo':i.player.addEvent('ready',function(){i.$option_container.trigger('av-video-loaded');i.player.addEvent('finish',function(){i.$option_container.trigger('av-video-ended')})});break;case'youtube':var t=i.$video.data();if(i._supports_video())t.html5=1;i.player=new YT.Player(i.$video.attr('id'),{videoId:t.videoid,height:i.$video.attr('height'),width:i.$video.attr('width'),playerVars:t,events:{'onReady':function(){i.$option_container.trigger('av-video-loaded')},'onError':function(i){e.avia_utilities.log('YOUTUBE ERROR:','error',i)},'onStateChange':function(e){if(e.data===YT.PlayerState.ENDED){var t=i.options.loop!=!1?'loop':'av-video-ended';i.$option_container.trigger(t)}}}});break};setTimeout(function(){if(i.eventsBound==!0||typeof i.eventsBound=='undefined'||i.type=='youtube'){return};e.avia_utilities.log('Fallback Video Trigger "'+i.type+'":','log',i);i.$option_container.trigger('av-video-loaded')},2000)},_bindEvents:function(){if(this.eventsBound==!0||typeof this.eventsBound=='undefined'){return};var e=this,i='unmute';this.eventsBound=!0;this.$option_container.on(this.options.events,function(i){e.api(i.type)});if(!e.isMobile){if(this.options.mute!=!1){i='mute'};if(this.options.loop!=!1){e.api('loop')};e.api(i)};setTimeout(function(){e.$option_container.trigger('av-video-events-bound').addClass('av-video-events-bound')},50)},_supports_video:function(){return!!document.createElement('video').canPlayType},api:function(e){if(this.isMobile&&!this.was_started())return;if(this.options.events.indexOf(e)===-1)return;this.$option_container.trigger('av-video-'+e+'-executed');if(typeof this['_'+this.type+'_'+e]=='function'){this['_'+this.type+'_'+e].call(this)};if(typeof this['_'+e]=='function'){this['_'+e].call(this)}},was_started:function(){if(!this.player)return!1;switch(this.type){case'html5':if(this.player.getCurrentTime()>0)return!0;break;case'vimeo':if(this.player.api('getCurrentTime')>0)return!0;break;case'youtube':if(this.player.getPlayerState()!==-1)return!0;break};return!1},_play:function(){this.playing=!0;this.$option_container.addClass('av-video-playing').removeClass('av-video-paused')},_pause:function(){this.playing=!1;this.$option_container.removeClass('av-video-playing').addClass('av-video-paused')},_loop:function(){this.options.loop=!0},_toggle:function(){var e=this.playing==!0?'pause':'play';this.api(e);this.pp.set(e)},_vimeo_play:function(){this.player.api('play')},_vimeo_pause:function(){this.player.api('pause')},_vimeo_mute:function(){this.player.api('setVolume',0)},_vimeo_unmute:function(){this.player.api('setVolume',0.7)},_vimeo_loop:function(){},_vimeo_reset:function(){this.player.api('seekTo',0)},_vimeo_unload:function(){this.player.api('unload')},_youtube_play:function(){this.player.playVideo()},_youtube_pause:function(){this.player.pauseVideo()},_youtube_mute:function(){this.player.mute()},_youtube_unmute:function(){this.player.unMute()},_youtube_loop:function(){if(this.playing==!0)this.player.seekTo(0)},_youtube_reset:function(){this.player.stopVideo()},_youtube_unload:function(){this.player.clearVideo()},_html5_play:function(){if(this.player){this.player.options.pauseOtherPlayers=!1;this.player.play()}},_html5_pause:function(){if(this.player)this.player.pause()},_html5_mute:function(){if(this.player)this.player.setMuted(!0)},_html5_unmute:function(){if(this.player)this.player.setVolume(0.7)},_html5_loop:function(){if(this.player)this.player.options.loop=!0},_html5_reset:function(){if(this.player)this.player.setCurrentTime(0)},_html5_unload:function(){this._html5_pause();this._html5_reset()}};e.fn.aviaVideoApi=function(i,t){return this.each(function(){var o=this;if(t){o=e(this).parents(t).get(0)};var n=e.data(o,'aviaVideoApi');if(!n){n=e.data(o,'aviaVideoApi',new e.AviaVideoAPI(i,this,o))}})}})(jQuery);window.onYouTubeIframeAPIReady=function(){jQuery('body').trigger('av-youtube-iframe-api-loaded')};var Froogaloop=(function(){function i(e){return new i.fn.init(e)};var e={},d=!1,t=!1,p=Array.prototype.slice,o='*';i.fn=i.prototype={element:null,init:function(e){if(typeof e==='string'){e=document.getElementById(e)};this.element=e;return this},api:function(e,i){if(!this.element||!e){return!1};var o=this,t=o.element,l=t.id!==''?t.id:null,u=!r(i)?i:null,a=r(i)?i:null;if(a){s(e,a,l)};n(e,u,t);return o},addEvent:function(e,i){if(!this.element){return!1};var a=this,o=a.element,r=o.id!==''?o.id:null;s(e,i,r);if(e!='ready'){n('addEventListener',e,o)}
else if(e=='ready'&&t){i.call(null,r)};return a},removeEvent:function(e){if(!this.element){return!1};var t=this,i=t.element,o=i.id!==''?i.id:null,a=u(e,o);if(e!='ready'&&a){n('removeEventListener',e,i)}}};function n(e,i,t){if(!t.contentWindow.postMessage){return!1};var n=JSON.stringify({method:e,value:i});t.contentWindow.postMessage(n,o)};function a(e){var i,r;try{i=JSON.parse(e.data);r=i.event||i.method}catch(p){};if(r=='ready'&&!t){t=!0};if(!(/^https?:\/\/player.vimeo.com/).test(e.origin)){return!1};if(o==='*'){o=e.origin};var u=i.value,d=i.data,a=a===''?null:i.player_id,s=l(r,a),n=[];if(!s){return!1};if(u!==undefined){n.push(u)};if(d){n.push(d)};if(a){n.push(a)};return n.length>0?s.apply(null,n):s.call()};function s(i,t,o){if(o){if(!e[o]){e[o]={}};e[o][i]=t}
else{e[i]=t}};function l(i,t){if(t&&e[t]&&e[t][i]){return e[t][i]}
else{return e[i]}};function u(i,t){if(t&&e[t]){if(!e[t][i]){return!1};e[t][i]=null}
else{if(!e[i]){return!1};e[i]=null};return!0};function r(e){return!!(e&&e.constructor&&e.call&&e.apply)};function h(e){return toString.call(e)==='[object Array]'};i.fn.init.prototype=i.fn;if(window.addEventListener){window.addEventListener('message',a,!1)}
else{window.attachEvent('onmessage',a)};return(window.Froogaloop=window.$f=i)})();(function(i){'use strict';i.AviaccordionSlider=function(t,e){this.$slider=i(e);this.$inner=this.$slider.find('.aviaccordion-inner');this.$slides=this.$inner.find('.aviaccordion-slide');this.$images=this.$inner.find('.aviaccordion-image');this.$last=this.$slides.last();this.$titles=this.$slider.find('.aviaccordion-preview');this.$titlePos=this.$slider.find('.aviaccordion-preview-title-pos');this.$titleWrap=this.$slider.find('.aviaccordion-preview-title-wrap');this.$win=i(window);if(i.avia_utilities.supported.transition===undefined){i.avia_utilities.supported.transition=i.avia_utilities.supports('transition')};this.browserPrefix=i.avia_utilities.supported.transition;this.cssActive=this.browserPrefix!==!1?!0:!1;this.transform3d=document.documentElement.className.indexOf('avia_transform3d')!==-1?!0:!1;this.isMobile=i.avia_utilities.isMobile;this.property=this.browserPrefix+'transform',this.count=this.$slides.length;this.open=!1;this.autoplay=!1;this.increaseTitle=this.$slider.is('.aviaccordion-title-on-hover');this._init(t)};i.AviaccordionSlider.prototype={_init:function(t){var e=this;e.options=i.extend({},t,this.$slider.data());i.avia_utilities.preload({container:this.$slider,single_callback:function(){e._kickOff()}})},_kickOff:function(){var i=this;i._calcMovement();i._bindEvents();i._showImages();i._autoplay()},_autoplay:function(){var i=this;if(i.options.autoplay){i.autoplay=setInterval(function(){i.open=i.open===!1?0:i.open+1;if(i.open>=i.count)i.open=0;i._move({},i.open)},i.options.interval*1000)}},_showImages:function(){var t=this,a=0,e=300,s=this.count*e;if(this.cssActive){setTimeout(function(){t.$slider.addClass('av-animation-active')},10)};this.$images.each(function(t){var s=i(this),a=e*(t+1);setTimeout(function(){s.avia_animate({opacity:1},400,function(){s.css(i.avia_utilities.supported.transition+'transform','none')})},a)});if(t.increaseTitle)s=0;this.$titlePos.each(function(t){var e=i(this),a=s+100*(t+1);setTimeout(function(){e.avia_animate({opacity:1},200,function(){e.css(i.avia_utilities.supported.transition+'transform','none')})},a)})},_bindEvents:function(){var t=this.isMobile?'click':'mouseenter';this.$slider.on(t,'.aviaccordion-slide',i.proxy(this._move,this));this.$slider.on('mouseleave','.aviaccordion-inner',i.proxy(this._move,this));this.$win.on('debouncedresize',i.proxy(this._calcMovement,this));this.$slider.on('av-prev av-next',i.proxy(this._moveTo,this));if(this.isMobile){this.$slider.avia_swipe_trigger({next:this.$slider,prev:this.$slider,event:{prev:'av-prev',next:'av-next'}})}},_titleHeight:function(){var t=0;this.$titleWrap.css({'height':'auto'}).each(function(){var e=i(this).outerHeight();if(e>t)t=e}).css({'height':t+2})},_calcMovement:function(t,s){var e=this,r=this.$slider.width(),p=this.$last.data('av-left'),c=this.$images.last().width()||r,a=Math.floor((100/r)*c),l=a*e.count,h=3,d=100-a,n=d>p/h?d:0,o=n/(e.count-1),v=c;if(l<110&&s!==!1){var f=this.$slider.height(),u=(f/l)*110;this.$slider.css({'max-height':u});e._calcMovement(t,!1);return};if(o<2)n=0;this.$slides.each(function(t){var l=i(this),s=0,r=0,c=l.data('av-left');if(n!==0){s=o*t;r=a+s-o}
else{s=c/Math.abs(h);r=100-((s/t)*(e.count-t))};if(t==1&&e.increaseTitle){v=r+1};if(e.cssActive){s=s-c;r=r-c;c=0};l.data('av-calc-default',c);l.data('av-calc-left',s);l.data('av-calc-right',r)});if(e.increaseTitle){e.$titles.css({width:v+'%'})}},_moveTo:function(i){var e=i.type=='av-next'?1:-1,t=this.open===!1?0:this.open+e;if(t>=0&&t<this.$slides.length)this._move(i,t)},_move:function(t,s){var e=this,n=t.currentTarget,a=typeof s!='undefined'?s:this.$slides.index(n);this.open=a;if(e.autoplay&&typeof n!='undefined'){clearInterval(e.autoplay);e.autoplay=!1};this.$slides.removeClass('aviaccordion-active-slide').each(function(s){var n=i(this),c=n.data(),o=s<=a?c.avCalcLeft:c.avCalcRight,r={},l=t.type=='mouseleave'?1:0,h=a===s?e.$titleWrap.eq(s):!1;if(h)n.addClass('aviaccordion-active-slide');if(l){o=c.avCalcDefault;this.open=!1};if(e.cssActive){r[e.property]=e.transform3d?'translate3d('+o+'%, 0, 0)':'translate('+o+'%,0)';n.css(r)}
else{r.left=o+'%';n.stop().animate(r,700,'easeOutQuint')}})}};i.fn.aviaccordion=function(t){return this.each(function(){var e=i.data(this,'AviaccordionSlider');if(!e){i.data(this,'AviaccordionSlider',1);new i.AviaccordionSlider(t,this)}})}})(jQuery);(function(i){'use strict';i.AviaFullscreenSlider=function(t,s){this.$slider=i(s);this.$inner=this.$slider.find('.avia-slideshow-inner');this.$innerLi=this.$inner.find('>li');this.$caption=this.$inner.find('.avia-slide-wrap .caption_container');this.$win=i(window);this.isMobile=i.avia_utilities.isMobile;this.property={};this.scrollPos='0';this.transform3d=document.documentElement.className.indexOf('avia_transform3d')!==-1?!0:!1;this.ticking=!1;if(i.avia_utilities.supported.transition===undefined){i.avia_utilities.supported.transition=i.avia_utilities.supports('transition')};this._init(t)};i.AviaFullscreenSlider.defaults={height:100,subtract:'#wpadminbar, #header, #main>.title_container'};i.AviaFullscreenSlider.prototype={_init:function(t){var s=this;this.options=i.extend(!0,{},i.AviaFullscreenSlider.defaults,t);if(this.$slider.data('slide_height'))this.options.height=this.$slider.data('slide_height');this.options.parallax_enabled=this.$slider.data('image_attachment')==''?!0:!1;this.$subtract=i(this.options.subtract);this._setSize();this.$win.on('debouncedresize',i.proxy(this._setSize,this));setTimeout(function(){if(!s.isMobile&&s.options.parallax_enabled){s.$win.on('scroll',i.proxy(s._on_scroll,s))}},100);this.$slider.aviaSlider({bg_slider:!0})},_on_scroll:function(t){var s=this;if(!s.ticking){s.ticking=!0;window.requestAnimationFrame(i.proxy(s._parallax_scroll,s))}},_fetch_properties:function(i){this.property.offset=this.$slider.offset().top;this.property.wh=this.$win.height();this.property.height=i||this.$slider.outerHeight();this._parallax_scroll()},_setSize:function(){if(!i.fn.avia_browser_height){var s=this.$win.height(),t=Math.ceil((s/100)*this.options.height);if(this.$subtract.length&&this.options.height==100){this.$subtract.each(function(){t-=this.offsetHeight-0.5})}
else{t-=1};this.$slider.height(t).removeClass('av-default-height-applied');this.$inner.css('padding',0)};this._fetch_properties(t)},_parallax_scroll:function(t){if(this.isMobile||!this.options.parallax_enabled)return;var e=this.$win.scrollTop(),n=e+this.property.wh,s='0',r={},a={};if(this.property.offset<e&&e<=this.property.offset+this.property.height){s=Math.round((e-this.property.offset)*0.3)};if(this.scrollPos!=s){this.scrollPos=s;if(this.transform3d){r[i.avia_utilities.supported.transition+'transform']='translate3d(0px,'+s+'px,0px)'}
else{r[i.avia_utilities.supported.transition+'transform']='translate(0px,'+s+'px)'};this.$inner.css(r)};this.ticking=!1}};i.fn.aviaFullscreenSlider=function(t){return this.each(function(){var s=i.data(this,'aviaFullscreenSlider');if(!s){i.data(this,'aviaFullscreenSlider',1);new i.AviaFullscreenSlider(t,this)}})}})(jQuery);(function(t){'use strict';t.fn.layer_slider_height_helper=function(e){return this.each(function(){var e=t(this),i=e.find('>div').first(),n=!1,h=0,r=function(){if(i.height()>0||h>5){e.height('auto')}
else{n=setTimeout(r,500);h++}};if(!i.length)return;n=setTimeout(r,0)})}}(jQuery));(function(t){'use strict';t.fn.avia_sc_tab_section=function(){var i=t(window),s=t.avia_utilities.supports('transition'),n=this.browserPrefix!==!1?!0:!1,e=t.avia_utilities.isMobile,o=document.documentElement.className.indexOf('avia_transform3d')!==-1?!0:!1,a={};return this.each(function(){var s=t(this),l=s.find('.av-section-tab-title'),b=s.find('.av-tab-section-outer-container'),v=s.find('.av-tab-section-tab-title-container'),g=s.find('.av_tab_navigation'),d=s.find('.av-tab-section-inner-container'),m=s.find('.av-animation-delay-container'),f=s.find('.av-layout-tab-inner'),x=s.is('.av-tab-slide-transition'),p=s.is('.av-tab-content-auto'),r=s.find('.__av_init_open'),c=0,w=function(v,p){v.preventDefault();var c=t(v.currentTarget),w=c.find('.av-tab-arrow-container span'),f=c.data('av-tab-section-title');r=s.find('[data-av-tab-section-content="'+f+'"]');var b=r.data('av-tab-bg-color'),g=r.data('av-tab-color'),k=s.find('.av-active-tab-content').not('[data-av-tab-section-content="'+f+'"]');l.attr('style','').removeClass('av-active-tab-title');c.removeClass('no-scroll');c.addClass('av-active-tab-title');r.addClass('av-active-tab-content');if(b!==''){w.css('background-color',b)};if(g!==''){c.css('color',g)};var i=((parseInt(f,10)-1)*-100);if(t('body').hasClass('rtl')){i=((parseInt(f,10)-1)*100)};if(n){i=i/l.length;a['transform']=o?'translate3d('+i+'%, 0, 0)':'translate('+i+'%,0)';a['left']='0%';d.css(a)}
else{d.css('left',i+'%')};u();h();if(!p){location.hash=c.attr('href')};setTimeout(function(){r.trigger('avia_start_animation_if_current_slide_is_active');if(!e){m.not(r).trigger('avia_remove_animation')}},600)},k=function(){c=0;l.each(function(){c+=t(this).outerWidth()});v.css('min-width',c)},h=function(){if(r.length&&p){var e=f.height();f.height('auto');var t=r.find('.av-layout-tab-inner').height(),a=v.height();b.css('max-height',t+a+100);f.height(e);f.height(t);f.css('overflow','hidden');setTimeout(function(){i.trigger('av-height-change')},600)}},u=function(){var n=s.find('.av-active-tab-title'),a=s.width(),i=(n.position().left*-1)-(n.outerWidth()/2)+(a/2);if(!t('body').hasClass('rtl')){if(a>=c){i=0};if(i+c<a)i=(c-a)*-1;if(i>0)i=0;v.css('left',i)}
else{var e=0;if(a<c){if(i+c>a){if(i>0)i=0;var e=(i+c-a)*-1;v.css('left','auto');v.css('right',e)}};v.css('left','auto');v.css('right',e)}},y=function(i){if(!e)return;var n=t(i.currentTarget),a=s.find('.av-active-tab-title');if(n.is('.av_prev_tab_section')){a.prev('.av-section-tab-title').trigger('click')}
else{a.next('.av-section-tab-title').trigger('click')}},C=function(){if(!i&&window.location.hash)var i=window.location.hash;var t=l.filter('[href="'+i+'"]');if(t.length){if(!t.is('.active_tab'))t.trigger('click')}
else{s.find('.av-active-tab-title').trigger('click',!0)}};t.avia_utilities.preload({container:r,single_callback:function(){l.on('click',w);g.on('click',y);i.on('debouncedresize',u);i.on('debouncedresize av-content-el-height-changed',h);k();h();C()}});d.avia_swipe_trigger({prev:'.av_prev_tab_section',next:'.av_next_tab_section'})})}}(jQuery));(function(t){'use strict';t.fn.avia_sc_tabs=function(i){var n={heading:'.tab',content:'.tab_content',active:'active_tab',sidebar:!1};var e=t(window),i=t.extend(n,i);return this.each(function(){var n=t(this),c=t('<div class="tab_titles"></div>').prependTo(n),a=t(i.heading,n),r=t(i.content,n),o=!1,d=!1;o=a.clone();d=a.addClass('fullsize-tab').attr('aria-hidden',!0);a=o;a.prependTo(c).each(function(i){var n=t(this),e=!1;if(o){e=d.eq(i)};n.addClass('tab_counter_'+i).on('click',function(){f(n,i,e);return!1});n.on('keydown',function(t){if(t.keyCode===13){n.trigger('click')}});if(o){e.on('click',function(){f(e,i,n);return!1});e.on('keydown',function(t){if(t.keyCode===13){e.trigger('click')}})}});s();l(!1);e.on('debouncedresize',s);t('a').on('click',function(){var i=t(this).attr('href');if(typeof i!='undefined'&&i){i=i.replace(/^.*?#/,'');l('#'+i)}});function s(){if(!i.sidebar){return};r.css({'min-height':c.outerHeight()+1})};function f(a,f,o){if(!a.is('.'+i.active)){t('.'+i.active,n).removeClass(i.active);t('.'+i.active+'_content',n).attr('aria-hidden',!0).removeClass(i.active+'_content');a.addClass(i.active);var s=a.data('fake-id');if(typeof s=='string'){window.location.replace(s)};if(o){o.addClass(i.active)};var d=r.eq(f).addClass(i.active+'_content').attr('aria-hidden',!1);if(typeof click_container!='undefined'&&click_container.length){sidebar_shadow.height(d.outerHeight())};var c=d.offset().top,l=c-50-parseInt(t('html').css('margin-top'),10);if(e.scrollTop()>c){t('html:not(:animated),body:not(:animated)').scrollTop(l)}};e.trigger('av-content-el-height-changed',a)};function l(t){if(!t&&window.location.hash){t=window.location.hash};if(!t){return};var i=a.filter('[data-fake-id="'+t+'"]');if(i.length){if(!i.is('.active_tab')){i.trigger('click')};window.scrollTo(0,n.offset().top-70)}}})}}(jQuery));(function(i){'use strict';i.fn.avia_sc_testimonial=function(t){return this.each(function(){var t=i(this),a=t.find('.avia-testimonial');t.on('avia_start_animation',function(){a.each(function(t){var a=i(this);setTimeout(function(){a.addClass('avia_start_animation')},(t*150))})})})}}(jQuery));(function(i){'use strict';i(window).on('load',function(e){if(i.AviaSlider){i('.avia-timeline-container').avia_sc_timeline()}});i.fn.avia_sc_timeline=function(e){return this.each(function(){var n=this,e='#'+i(this).attr('id'),a=i(e),t;t={matchHeights:function(){this.setMinHeight(i(e+' .av-milestone-placement-top .av-milestone-date'),!0);this.setMinHeight(i(e+' .av-milestone-placement-bottom .av-milestone-content-wrap'),!0);this.setMinHeight(i(e+' .av-milestone-placement-bottom.avia-timeline-boxshadow .av-milestone-contentbox'),!1);this.setMinHeight(i(e+' .av-milestone-placement-top.avia-timeline-boxshadow .av-milestone-contentbox'),!1);this.setMinHeight(i(e+' .avia-timeline-horizontal.av-milestone-placement-alternate li >:first-child'),!0)},setMinHeight:function(e,t){if(e.length<2)return;var n=[];e.css('min-height','0').each(function(e){var t=i(this),a=t.outerHeight(!0);n.push(a)});var l=Math.max.apply(null,n);e.css('min-height',l);if(t){var a=e.first(),s=a.closest('.avia-timeline-container'),o=a.height();s.find('.av-timeline-nav').css('top',o)}},createCarousel:function(t){var o=this,l=i(e+'.avia-slideshow-carousel'),n=3,s=1;if(a.attr('avia-data-slides')){n=parseInt(a.attr('avia-data-slides'))};if(n>=2){s=2};var c={carousel:'yes',keep_pading:!0,carouselSlidesToShow:n,carouselSlidesToScroll:3,carouselResponsive:[{breakpoint:989,settings:{carouselSlidesToShow:s,carouselSlidesToScroll:s,}},{breakpoint:767,settings:{carouselSlidesToShow:1,carouselSlidesToScroll:1,}}],};l.aviaSlider(c);l.on('_kickOff',function(){o.matchHeights()});i(window).on('resize',function(){o.matchHeights()})},layoutHelpers:function(t){i(e+' .avia-timeline-vertical li').each(function(e,n){var s=i(this).parents('ul').find('li').length,t=i(this).find('.av-milestone-icon-wrap'),a=t.outerHeight(!0),o=parseInt(a/2);if(e===(s-1)){t.css({'height':o,})}
else{t.css({'height':a,})}})},fireAnimations:function(t){if(i(e+' > ul').hasClass('avia-timeline-vertical')){var n=a.find('.av-milestone');a.on('avia_start_animation',function(){n.each(function(e){var t=i(this);setTimeout(function(){t.addClass('avia_start_animation')},(e*350))})})}}};t.createCarousel();t.layoutHelpers();t.fireAnimations();t.matchHeights()})}})(jQuery);(function(t){'use strict';t.fn.avia_sc_toggle=function(e){var a={single:'.single_toggle',heading:'.toggler',content:'.toggle_wrap',sortContainer:'.taglist'};var i=t(window),e=t.extend(a,e);return this.each(function(){var a=t(this).addClass('enable_toggles'),s=t(e.single,a),n=t(e.heading,a),l=t(a).attr('data-currentstyle'),r=t(e.content,a),o=t(e.sortContainer+' a',a);n.each(function(c){var s=t(this),o=s.next(e.content,a),d=s.attr('style'),f=s.data('hoverstyle');if('undefined'==typeof d){d=''};if('undefined'==typeof f){f=''};function g(){var e=o.offset().top,a=e-50-parseInt(t('html').css('margin-top'),10);if(i.scrollTop()>e){t('html:not(:animated),body:not(:animated)').animate({scrollTop:a},200)}};if(o.css('visibility')!='hidden'){s.addClass('activeTitle').attr('style',l)};s.on('keydown',function(t){if(t.keyCode===13){s.trigger('click')}});s.on('click',function(){if(o.css('visibility')!='hidden'){o.slideUp(200,function(){o.removeClass('active_tc').attr({style:''});i.trigger('av-height-change');i.trigger('av-content-el-height-changed',this);location.replace(s.data('fake-id')+'-closed')});s.removeClass('activeTitle').attr('style',d)}
else{if(a.is('.toggle_close_all')){r.not(o).slideUp(200,function(){t(this).removeClass('active_tc').attr({style:''});g()});n.removeClass('activeTitle').attr('style',d)};o.addClass('active_tc');setTimeout(function(){o.slideDown(200,function(){if(!a.is('.toggle_close_all')){g()};i.trigger('av-height-change');i.trigger('av-content-el-height-changed',this)})},1);s.addClass('activeTitle').attr('style',l);location.replace(s.data('fake-id'))}});if(f){s.on('mouseenter',function(){if(!s.hasClass('activeTitle')){t(this).attr('style',f)}}).on('mouseleave',function(){if(!s.hasClass('activeTitle')){t(this).attr('style',d)}})}});o.on('click',function(e){e.preventDefault();var i=s.filter('[data-tags~="'+t(this).data('tag')+'"]'),a=s.not('[data-tags~="'+t(this).data('tag')+'"]');o.removeClass('activeFilter');t(this).addClass('activeFilter');n.filter('.activeTitle').trigger('click');i.slideDown();a.slideUp()});function c(t){if(!t&&window.location.hash)t=window.location.hash;if(!t)return;var e=n.filter('[data-fake-id="'+t+'"]');if(e.length){if(!e.is('.activeTitle'))e.trigger('click');window.scrollTo(0,a.offset().top-70)}};c(!1);t('a').on('click',function(){var e=t(this).attr('href');if(typeof e!='undefined'&&e){e=e.replace(/^.*?#/,'');c('#'+e)}})})}}(jQuery));(function(i){'use strict';i('body').on('click','.av-lazyload-video-embed .av-click-to-play-overlay',function(l){var n=i(this),d=i('html').hasClass('av-cookies-needs-opt-in')||i('html').hasClass('av-cookies-can-opt-out'),o=!0,c=i('html').hasClass('av-cookies-user-silent-accept');if(d&&!c){if(!document.cookie.match(/aviaCookieConsent/)||i('html').hasClass('av-cookies-session-refused')){o=!1}
else{if(!document.cookie.match(/aviaPrivacyRefuseCookiesHideBar/)){o=!1}
else if(!document.cookie.match(/aviaPrivacyEssentialCookiesEnabled/)){o=!1}
else if(document.cookie.match(/aviaPrivacyVideoEmbedsDisabled/)){o=!1}}};var a=n.parents('.av-lazyload-video-embed');if(a.hasClass('avia-video-lightbox')&&a.hasClass('avia-video-standard-html')){o=!0};if(!o){if(typeof l.originalEvent=='undefined'){return};var t=a.data('original_url');if(t)window.open(t,'_blank','noreferrer noopener');return};var s=a.find('.av-video-tmpl').html(),e='';if(a.hasClass('avia-video-lightbox')){e=a.find('a.lightbox-link');if(e.length==0){a.append(s);setTimeout(function(){e=a.find('a.lightbox-link');if(i('html').hasClass('av-default-lightbox')){e.addClass('lightbox-added').magnificPopup(i.avia_utilities.av_popup);e.trigger('click')}
else{e.trigger('avia-open-video-in-lightbox')}},100)}
else{e.trigger('click')}}
else{a.html(s)}});i('.av-lazyload-immediate .av-click-to-play-overlay').trigger('click')}(jQuery));(function(e){'use strict';e(document).ready(function(){e.avia_utilities=e.avia_utilities||{};if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&'ontouchstart'in document.documentElement){e.avia_utilities.isMobile=!0}
else{e.avia_utilities.isMobile=!1};i()});e.avia_utilities=e.avia_utilities||{};function i(){var m=e('#header'),u=e('#main .av-logo-container'),h=e('#avia-menu'),s=e('.av-burger-menu-main a'),l=e('html').eq(0),a=e('<div class="av-burger-overlay"></div>'),p=e('<div class="av-burger-overlay-scroll"></div>').appendTo(a),g=e('<div class="av-burger-overlay-inner"></div>').appendTo(p),k=e('<div class="av-burger-overlay-bg"></div>').appendTo(a),r=!1,d={},b=e('.av-logo-container .inner-container'),T=b.find('.main_menu'),c=l.is('.html_av-submenu-display-click.html_av-submenu-clone, .html_av-submenu-display-hover.html_av-submenu-clone'),y=!1,C=0;var f=e('#avia_alternate_menu');if(f.length>0){h=f};var v=function(){if(e.avia_utilities.isMobile){p.outerHeight(window.innerHeight)}},o=function(i,u){if(!i)return;var v,l,t,r,d,f,m,a,n;i.each(function(){t=e(this);r=t.find(' > .sub-menu > li');if(r.length==0){r=t.find(' > .children > li')};d=t.find('.avia_mega_div > .sub-menu > li.menu-item');var i=t.find('>a'),v=!0;if(i.length){if(i.get(0).hash=='#'||'undefined'==typeof i.attr('href')||i.attr('href')=='#'){if(r.length>0||d.length>0){v=!1}}};l=i.clone(v).attr('style','');if('undefined'==typeof i.attr('href')){l.attr('href','#')};a=e('<li>').append(l);var s=[];if('undefined'!=typeof t.attr('class')){s=t.attr('class').split(/\s+/);e.each(s,function(e,i){if((i.indexOf('menu-item')!=0)&&(i.indexOf('page-item')<0)&&(i.indexOf('page_item')!=0)&&(i.indexOf('dropdown_ul')<0)){a.addClass(i)};return!0})};if('undefined'!=typeof t.attr('id')&&''!=t.attr('id')){a.addClass(t.attr('id'))}
else{e.each(s,function(e,i){if(i.indexOf('page-item-')>=0){a.addClass(i);return!1}})};u.append(a);if(r.length){n=e('<ul class="sub-menu">').appendTo(a);if(c&&(l.get(0).hash!='#'&&l.attr('href')!='#')){a.clone(!0).prependTo(n)};a.addClass('av-width-submenu').find('>a').append('<span class="av-submenu-indicator">');o(r,n)}
else if(d.length){n=e('<ul class="sub-menu">').appendTo(a);if(c&&(l.get(0).hash!='#'&&l.attr('href')!='#')){a.clone(!0).prependTo(n)};d.each(function(i){var d=e(this),t=d.find('> .sub-menu'),l=d.find('> .mega_menu_title'),v=l.find('a').attr('href')||'#',r=t.length>0?t.find('>li'):null,f=!1,s=a.find('>a'),m='';if((r===null)||(r.length==0)){if(v=='#'){m=' style="display: none;"'}};if(i==0)a.addClass('av-width-submenu').find('>a').append('<span class="av-submenu-indicator">');if(l.length&&l.text()!=''){f=!0;if(i>0){var u=a.parents('li').eq(0);if(u.length)a=u;n=e('<ul class="sub-menu">').appendTo(a)};a=e('<li'+m+'>').appendTo(n);n=e('<ul class="sub-menu">').appendTo(a);e('<a href="'+v+'"><span class="avia-bullet"></span><span class="avia-menu-text">'+l.text()+'</span></a>').insertBefore(n);s=a.find('>a');if(c&&(t.length>0)&&(s.length&&s.get(0).hash!='#'&&s.attr('href')!='#')){a.clone(!0).addClass('av-cloned-title').prependTo(n)}};if(f&&(t.length>0))a.addClass('av-width-submenu').find('>a').append('<span class="av-submenu-indicator">');o(r,n)})}});s.trigger('avia_burger_list_created');return v},t,i;e('body').on('mousewheel DOMMouseScroll touchmove','.av-burger-overlay-scroll',function(e){var n=this.offsetHeight,i=this.scrollHeight,a=e.originalEvent.wheelDelta;if(i!=this.clientHeight){if((this.scrollTop>=(i-n)&&a<0)||(this.scrollTop<=0&&a>0)){e.preventDefault()}}
else{e.preventDefault()}});e(document).on('mousewheel DOMMouseScroll touchmove','.av-burger-overlay-bg, .av-burger-overlay-active .av-burger-menu-main',function(e){e.preventDefault()});var n={};e(document).on('touchstart','.av-burger-overlay-scroll',function(e){n.Y=e.originalEvent.touches[0].clientY});e(document).on('touchend','.av-burger-overlay-scroll',function(e){n={}});e(document).on('touchmove','.av-burger-overlay-scroll',function(i){if(!n.Y){n.Y=i.originalEvent.touches[0].clientY};var s=i.originalEvent.touches[0].clientY-n.Y,a=this,t=a.scrollTop,r=a.scrollHeight,o=t+a.offsetHeight,l=s>0?'up':'down';e('body').get(0).scrollTop=n.body;if(t<=0){if(l=='up')i.preventDefault()}
else if(o>=r){if(l=='down')i.preventDefault()}});e(window).on('debouncedresize',function(e){if(i&&i.length){if(!s.is(':visible')){i.filter('.is-active').parents('a').eq(0).trigger('click')}};v()});e('.html_av-overlay-side').on('click','.av-burger-overlay-bg',function(e){e.preventDefault();i.parents('a').eq(0).trigger('click')});e(window).on('avia_smooth_scroll_start',function(){if(i&&i.length){i.filter('.is-active').parents('a').eq(0).trigger('click')}});e('.html_av-submenu-display-hover').on('mouseenter','.av-width-submenu',function(i){e(this).children('ul.sub-menu').slideDown('fast')});e('.html_av-submenu-display-hover').on('mouseleave','.av-width-submenu',function(i){e(this).children('ul.sub-menu').slideUp('fast')});e('.html_av-submenu-display-hover').on('click','.av-width-submenu > a',function(e){e.preventDefault();e.stopImmediatePropagation()});e('.html_av-submenu-display-hover').on('touchstart','.av-width-submenu > a',function(i){var a=e(this);w(a,i)});e('.html_av-submenu-display-click').on('click','.av-width-submenu > a',function(i){var a=e(this);w(a,i)});e('.html_av-submenu-display-click').on('click','.av-burger-overlay a',function(a){var n=window.location.href.match(/(^[^#]*)/)[0],t=e(this).attr('href').match(/(^[^#]*)/)[0];if(t==n){a.preventDefault();a.stopImmediatePropagation();i.parents('a').eq(0).trigger('click');return!1};return!0});function w(e,i){i.preventDefault();i.stopImmediatePropagation();var a=e.parents('li').eq(0);a.toggleClass('av-show-submenu');if(a.is('.av-show-submenu')){a.children('ul.sub-menu').slideDown('fast')}
else{a.children('ul.sub-menu').slideUp('fast')}};(function(){if(T.length)return;var i=e('#header .main_menu').clone(!0),t=i.find('ul.av-main-nav'),n=t.attr('id');if('string'==typeof n&&''!=n.trim()){t.attr('id',n+'-'+C++)};i.find('.menu-item:not(.menu-item-avia-special)').remove();i.insertAfter(b.find('.logo').first());var a=e('#header .social_bookmarks').clone(!0);if(!a.length)a=e('.av-logo-container .social_bookmarks').clone(!0);if(a.length){i.find('.avia-menu').addClass('av_menu_icon_beside');i.append(a)};s=e('.av-burger-menu-main a')}());s.on('click',function(n){if(r)return;i=e(this).find('.av-hamburger'),r=!0;if(!y){y=!0;i.addClass('av-inserted-main-menu');t=e('<ul>').attr({id:'av-burger-menu-ul',class:''});var c=h.find('> li:not(.menu-item-avia-special)'),f=o(c,t);t.find('.noMobile').remove();t.appendTo(g);d=g.find('#av-burger-menu-ul > li');if(e.fn.avia_smoothscroll){e('a[href*="#"]',a).avia_smoothscroll(a)}};if(i.is('.is-active')){i.removeClass('is-active');l.removeClass('av-burger-overlay-active-delayed');a.animate({opacity:0},function(){a.css({display:'none'});l.removeClass('av-burger-overlay-active');r=!1})}
else{v();var s=u.length?u.outerHeight()+u.position().top:m.outerHeight()+m.position().top;a.appendTo(e(n.target).parents('.avia-menu'));t.css({padding:(s)+'px 0px'});d.removeClass('av-active-burger-items');i.addClass('is-active');l.addClass('av-burger-overlay-active');a.css({display:'block'}).animate({opacity:1},function(){r=!1});setTimeout(function(){l.addClass('av-burger-overlay-active-delayed')},100);d.each(function(i){var a=e(this);setTimeout(function(){a.addClass('av-active-burger-items')},(i+1)*125)})};n.preventDefault()})}})(jQuery);!function(e){'function'==typeof define&&define.amd?define(['jquery'],e):'object'==typeof exports?e(require('jquery')):e(window.jQuery||window.Zepto)}(function(t){var e,C,o,f,r,P,m=function(){},b=!!window.jQuery,s=t(window),n=function(t,i){e.ev.on('mfp'+t+'.mfp',i)},c=function(e,i,n,a){var o=document.createElement('div');return o.className='mfp-'+e,n&&(o.innerHTML=n),a?i&&i.appendChild(o):(o=t(o),i&&o.appendTo(i)),o},i=function(t,i){e.ev.triggerHandler('mfp'+t,i),e.st.callbacks&&(t=t.charAt(0).toLowerCase()+t.slice(1),e.st.callbacks[t]&&e.st.callbacks[t].apply(e,Array.isArray(i)?i:[i]))},w=function(i){return i===P&&e.currTemplate.closeBtn||(e.currTemplate.closeBtn=t(e.st.closeMarkup.replace('%title%',e.st.tClose)),P=i),e.currTemplate.closeBtn},I=function(){t.magnificPopup.instance||((e=new m).init(),t.magnificPopup.instance=e)};m.prototype={constructor:m,init:function(){var i=navigator.appVersion;e.isLowIE=e.isIE8=document.all&&!document.addEventListener,e.isAndroid=/android/gi.test(i),e.isIOS=/iphone|ipad|ipod/gi.test(i),e.supportsTransition=function(){var e=document.createElement('p').style,t=['ms','O','Moz','Webkit'];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+'Transition'in e)return!0;return!1}(),e.probablyMobile=e.isAndroid||e.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),o=t(document),e.popupsCache={}},open:function(a){var l;if(!1===a.isObj){e.items=a.items.toArray(),e.index=0;var p,h=a.items;for(l=0;l<h.length;l++)if((p=h[l]).parsed&&(p=p.el[0]),p===a.el[0]){e.index=l;break}}
else e.items=Array.isArray(a.items)?a.items:[a.items],e.index=a.index||0;if(!e.isOpen){e.types=[],r='',a.mainEl&&a.mainEl.length?e.ev=a.mainEl.eq(0):e.ev=o,a.key?(e.popupsCache[a.key]||(e.popupsCache[a.key]={}),e.currTemplate=e.popupsCache[a.key]):e.currTemplate={},e.st=t.extend(!0,{},t.magnificPopup.defaults,a),e.fixedContentPos='auto'===e.st.fixedContentPos?!e.probablyMobile:e.st.fixedContentPos,e.st.modal&&(e.st.closeOnContentClick=!1,e.st.closeOnBgClick=!1,e.st.showCloseBtn=!1,e.st.enableEscapeKey=!1),e.bgOverlay||(e.bgOverlay=c('bg').on('click.mfp',function(){e.close()}),e.wrap=c('wrap').attr('tabindex',-1).on('click.mfp',function(t){e._checkIfClose(t.target)&&e.close()}),e.container=c('container',e.wrap)),e.contentContainer=c('content'),e.st.preloader&&(e.preloader=c('preloader',e.container,e.st.tLoading));var v=t.magnificPopup.modules;for(l=0;l<v.length;l++){var d=v[l];d=d.charAt(0).toUpperCase()+d.slice(1),e['init'+d].call(e)};i('BeforeOpen'),e.st.showCloseBtn&&(e.st.closeBtnInside?(n('MarkupParse',function(e,t,i,n){i.close_replaceWith=w(n.type)}),r+=' mfp-close-btn-in'):e.wrap.append(w())),e.st.alignTop&&(r+=' mfp-align-top'),e.fixedContentPos?e.wrap.css({overflow:e.st.overflowY,overflowX:'hidden',overflowY:e.st.overflowY}):e.wrap.css({top:s.scrollTop(),position:'absolute'}),(!1===e.st.fixedBgPos||'auto'===e.st.fixedBgPos&&!e.fixedContentPos)&&e.bgOverlay.css({height:o.height(),position:'absolute'}),e.st.enableEscapeKey&&o.on('keyup.mfp',function(t){27===t.keyCode&&e.close()}),s.on('resize.mfp',function(){e.updateSize()}),e.st.closeOnContentClick||(r+=' mfp-auto-cursor'),r&&e.wrap.addClass(r);var g=e.wH=s.height(),f={};if(e.fixedContentPos&&e._hasScrollBar(g)){var m=e._getScrollbarSize();m&&(f.marginRight=m)};e.fixedContentPos&&(e.isIE7?t('body, html').css('overflow','hidden'):f.overflow='hidden');var u=e.st.mainClass;return e.isIE7&&(u+=' mfp-ie7'),u&&e._addClassToMFP(u),e.updateItemHTML(),i('BuildControls'),t('html').css(f),e.bgOverlay.add(e.wrap).prependTo(e.st.prependTo||t(document.body)),e._lastFocusedEl=document.activeElement,setTimeout(function(){e.content?(e._addClassToMFP('mfp-ready'),e._setFocus()):e.bgOverlay.addClass('mfp-ready'),o.on('focusin.mfp',e._onFocusIn)},16),e.isOpen=!0,e.updateSize(g),i('Open'),a};e.updateItemHTML()},close:function(){e.isOpen&&(i('BeforeClose'),e.isOpen=!1,e.st.removalDelay&&!e.isLowIE&&e.supportsTransition?(e._addClassToMFP('mfp-removing'),setTimeout(function(){e._close()},e.st.removalDelay)):e._close())},_close:function(){i('Close');var a='mfp-removing mfp-ready ';if(e.bgOverlay.detach(),e.wrap.detach(),e.container.empty(),e.st.mainClass&&(a+=e.st.mainClass+' '),e._removeClassFromMFP(a),e.fixedContentPos){var n={marginRight:''};e.isIE7?t('body, html').css('overflow',''):n.overflow='',t('html').css(n)};o.off('keyup.mfp focusin.mfp'),e.ev.off('.mfp'),e.wrap.attr('class','mfp-wrap').removeAttr('style'),e.bgOverlay.attr('class','mfp-bg'),e.container.attr('class','mfp-container'),!e.st.showCloseBtn||e.st.closeBtnInside&&!0!==e.currTemplate[e.currItem.type]||e.currTemplate.closeBtn&&e.currTemplate.closeBtn.detach(),e.st.autoFocusLast&&e._lastFocusedEl&&t(e._lastFocusedEl).focus(),e.currItem=null,e.content=null,e.currTemplate=null,e.prevHeight=0,i('AfterClose')},updateSize:function(t){if(e.isIOS){var o=document.documentElement.clientWidth/window.innerWidth,n=window.innerHeight*o;e.wrap.css('height',n),e.wH=n}
else e.wH=t||s.height();e.fixedContentPos||e.wrap.css('height',e.wH),i('Resize')},updateItemHTML:function(){var o=e.items[e.index];e.contentContainer.detach(),e.content&&e.content.detach(),o.parsed||(o=e.parseEl(e.index));var n=o.type;if(i('BeforeChange',[e.currItem?e.currItem.type:'',n]),e.currItem=o,!e.currTemplate[n]){var a=!!e.st[n]&&e.st[n].markup;i('FirstMarkupParse',a),e.currTemplate[n]=!a||t(a)};f&&f!==o.type&&e.container.removeClass('mfp-'+f+'-holder');var r=e['get'+n.charAt(0).toUpperCase()+n.slice(1)](o,e.currTemplate[n]);e.appendContent(r,n),o.preloaded=!0,i('Change',o),f=o.type,e.container.prepend(e.contentContainer),i('AfterChange')},appendContent:function(t,n){e.content=t,t?e.st.showCloseBtn&&e.st.closeBtnInside&&!0===e.currTemplate[n]?e.content.find('.mfp-close').length||e.content.append(w()):e.content=t:e.content='',i('BeforeAppend'),e.container.addClass('mfp-'+n+'-holder'),e.contentContainer.append(e.content)},parseEl:function(n){var s,o=e.items[n];if(o.tagName?o={el:t(o)}:(s=o.type,o={data:o,src:o.src}),o.el){for(var r=e.types,a=0;a<r.length;a++)if(o.el.hasClass('mfp-'+r[a])){s=r[a];break};o.src=o.el.attr('data-mfp-src'),o.src||(o.src=o.el.attr('href'))};return o.type=s||e.st.type||'inline',o.index=n,o.parsed=!0,e.items[n]=o,i('ElementParse',o),e.items[n]},addGroup:function(t,i){var o=function(n){n.mfpEl=this,e._openClick(n,t,i)};i||(i={});var n='click.magnificPopup';i.mainEl=t,i.items?(i.isObj=!0,t.off(n).on(n,o)):(i.isObj=!1,i.delegate?t.off(n).on(n,i.delegate,o):(i.items=t,t.off(n).on(n,o)))},_openClick:function(i,n,o){if((void 0!==o.midClick?o.midClick:t.magnificPopup.defaults.midClick)||!(2===i.which||i.ctrlKey||i.metaKey||i.altKey||i.shiftKey)){var a=void 0!==o.disableOn?o.disableOn:t.magnificPopup.defaults.disableOn;if(a)if('function'==typeof a){if(!a.call(e))return!0}
else if(s.width()<a)return!0;i.type&&(i.preventDefault(),e.isOpen&&i.stopPropagation()),o.el=t(i.mfpEl),o.delegate&&(o.items=n.find(o.delegate)),e.open(o)}},updateStatus:function(t,n){if(e.preloader){C!==t&&e.container.removeClass('mfp-s-'+C),n||'loading'!==t||(n=e.st.tLoading);var o={status:t,text:n};i('UpdateStatus',o),t=o.status,n=o.text,e.preloader.html(n),e.preloader.find('a').on('click',function(e){e.stopImmediatePropagation()}),e.container.addClass('mfp-s-'+t),C=t}},_checkIfClose:function(i){if(!t(i).hasClass('mfp-prevent-close')){var n=e.st.closeOnContentClick,o=e.st.closeOnBgClick;if(n&&o)return!0;if(!e.content||t(i).hasClass('mfp-close')||e.preloader&&i===e.preloader[0])return!0;if(i===e.content[0]||t.contains(e.content[0],i)){if(n)return!0}
else if(o&&t.contains(document,i))return!0;return!1}},_addClassToMFP:function(t){e.bgOverlay.addClass(t),e.wrap.addClass(t)},_removeClassFromMFP:function(t){this.bgOverlay.removeClass(t),e.wrap.removeClass(t)},_hasScrollBar:function(t){return(e.isIE7?o.height():document.body.scrollHeight)>(t||s.height())},_setFocus:function(){(e.st.focus?e.content.find(e.st.focus).eq(0):e.wrap).focus()},_onFocusIn:function(i){if(i.target!==e.wrap[0]&&!t.contains(e.wrap[0],i.target))return e._setFocus(),!1},_parseMarkup:function(e,n,o){var a;o.data&&(n=t.extend(o.data,n)),i('MarkupParse',[e,n,o]),t.each(n,function(i,n){if(void 0===n||!1===n)return!0;if((a=i.split('_')).length>1){var o=e.find('.mfp-'+a[0]);if(o.length>0){var r=a[1];'replaceWith'===r?o[0]!==n[0]&&o.replaceWith(n):'img'===r?o.is('img')?o.attr('src',n):o.replaceWith(t('<img>').attr('src',n).attr('class',o.attr('class'))):o.attr(a[1],n)}}
else e.find('.mfp-'+i).html(n)})},_getScrollbarSize:function(){if(void 0===e.scrollbarSize){var t=document.createElement('div');t.style.cssText='width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;',document.body.appendChild(t),e.scrollbarSize=t.offsetWidth-t.clientWidth,document.body.removeChild(t)};return e.scrollbarSize}},t.magnificPopup={instance:null,proto:m.prototype,modules:[],open:function(e,i){return I(),(e=e?t.extend(!0,{},e):{}).isObj=!0,e.index=i||0,this.instance.open(e)},close:function(){return t.magnificPopup.instance&&t.magnificPopup.instance.close()},registerModule:function(e,i){i.options&&(t.magnificPopup.defaults[e]=i.options),t.extend(this.proto,i.proto),this.modules.push(e)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:'',preloader:!0,focus:'',closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:'auto',fixedBgPos:'auto',overflowY:'auto',closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:'Close (Esc)',tLoading:'Loading...',autoFocusLast:!0}},t.fn.magnificPopup=function(i){I();var n=t(this);if('string'==typeof i)if('open'===i){var o,a=b?n.data('magnificPopup'):n[0].magnificPopup,r=parseInt(arguments[1],10)||0;a.items?o=a.items[r]:(o=n,a.delegate&&(o=o.find(a.delegate)),o=o.eq(r)),e._openClick({mfpEl:o},n,a)}
else e.isOpen&&e[i].apply(e,Array.prototype.slice.call(arguments,1));else i=t.extend(!0,{},i),b?n.data('magnificPopup',i):n[0].magnificPopup=i,e.addGroup(n,i);return n};var l,p,u,T=function(){u&&(p.after(u.addClass(l)).detach(),u=null)};t.magnificPopup.registerModule('inline',{options:{hiddenClass:'hide',markup:'',tNotFound:'Content not found'},proto:{initInline:function(){e.types.push('inline'),n('Close.inline',function(){T()})},getInline:function(i,n){if(T(),i.src){var r=e.st.inline,o=t(i.src);if(o.length){var a=o[0].parentNode;a&&a.tagName&&(p||(l=r.hiddenClass,p=c(l),l='mfp-'+l),u=o.after(p).detach().removeClass(l)),e.updateStatus('ready')}
else e.updateStatus('error',r.tNotFound),o=t('<div>');return i.inlineElement=o,o};return e.updateStatus('ready'),e._parseMarkup(n,{},i),n}}});var d,y=function(){d&&t(document.body).removeClass(d)},k=function(){y(),e.req&&e.req.abort()};t.magnificPopup.registerModule('ajax',{options:{settings:null,cursor:'mfp-ajax-cur',tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){e.types.push('ajax'),d=e.st.ajax.cursor,n('Close.ajax',k),n('BeforeChange.ajax',k)},getAjax:function(n){d&&t(document.body).addClass(d),e.updateStatus('loading');var o=t.extend({url:n.src,success:function(o,a,r){var s={data:o,xhr:r};i('ParseAjax',s),e.appendContent(t(s.data),'ajax'),n.finished=!0,y(),e._setFocus(),setTimeout(function(){e.wrap.addClass('mfp-ready')},16),e.updateStatus('ready'),i('AjaxContentAdded')},error:function(){y(),n.finished=n.loadError=!0,e.updateStatus('error',e.st.ajax.tError.replace('%url%',n.src))}},e.st.ajax.settings);return e.req=t.ajax(o),''}}});var a,z=function(t){if(t.data&&void 0!==t.data.title)return t.data.title;var i=e.st.image.titleSrc;if(i){if('function'==typeof i)return i.call(e,t);if(t.el)return t.el.attr(i)||''};return''};t.magnificPopup.registerModule('image',{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:'mfp-zoom-out-cur',titleSrc:'title',verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var i=e.st.image,o='.image';e.types.push('image'),n('Open'+o,function(){'image'===e.currItem.type&&i.cursor&&t(document.body).addClass(i.cursor)}),n('Close'+o,function(){i.cursor&&t(document.body).removeClass(i.cursor),s.off('resize.mfp')}),n('Resize'+o,e.resizeImage),e.isLowIE&&n('AfterChange',e.resizeImage)},resizeImage:function(){var t=e.currItem;if(t&&t.img&&e.st.image.verticalFit){var i=0;e.isLowIE&&(i=parseInt(t.img.css('padding-top'),10)+parseInt(t.img.css('padding-bottom'),10)),t.img.css('max-height',e.wH-i)}},_onImageHasSize:function(t){t.img&&(t.hasSize=!0,a&&clearInterval(a),t.isCheckingImgSize=!1,i('ImageHasSize',t),t.imgHidden&&(e.content&&e.content.removeClass('mfp-loading'),t.imgHidden=!1))},findImageSize:function(t){var i=0,o=t.img[0],n=function(r){a&&clearInterval(a),a=setInterval(function(){o.naturalWidth>0?e._onImageHasSize(t):(i>200&&clearInterval(a),3===++i?n(10):40===i?n(50):100===i&&n(500))},r)};n(1)},getImage:function(n,o){var f=0,c=function(){n&&(n.img[0].complete?(n.img.off('.mfploader'),n===e.currItem&&(e._onImageHasSize(n),e.updateStatus('ready')),n.hasSize=!0,n.loaded=!0,i('ImageLoadComplete')):++f<200?setTimeout(c,100):d())},d=function(){n&&(n.img.off('.mfploader'),n===e.currItem&&(e._onImageHasSize(n),e.updateStatus('error',p.tError.replace('%url%',n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},p=e.st.image,u=o.find('.mfp-img');if(u.length){var r=document.createElement('img');if(r.className='mfp-img',n.el&&n.el.find('img').length&&(r.alt=n.el.find('img').attr('alt')),n.img=t(r).on('load.mfploader',c).on('error.mfploader',d),r.src=n.src,t('body').hasClass('responsive-images-lightbox-support')){var s=n.el.data('srcset'),l=n.el.data('sizes');void 0!==s?(r.srcset=s,void 0!==l&&(r.sizes=l)):(void 0!==(s=n.el.find('img').attr('srcset'))&&(r.srcset=s),void 0!==(l=n.el.find('img').attr('sizes'))&&(r.sizes=l))};u.is('img')&&(n.img=n.img.clone()),(r=n.img[0]).naturalWidth>0?n.hasSize=!0:r.width||(n.hasSize=!1)};return e._parseMarkup(o,{title:z(n),img_replaceWith:n.img},n),e.resizeImage(),n.hasSize?(a&&clearInterval(a),n.loadError?(o.addClass('mfp-loading'),e.updateStatus('error',p.tError.replace('%url%',n.src))):(o.removeClass('mfp-loading'),e.updateStatus('ready')),o):(e.updateStatus('loading'),n.loading=!0,n.hasSize||(n.imgHidden=!0,o.addClass('mfp-loading'),e.findImageSize(n)),o)}}});var h;t.magnificPopup.registerModule('zoom',{options:{enabled:!1,easing:'ease-in-out',duration:300,opener:function(e){return e.is('img')?e:e.find('img')}},proto:{initZoom:function(){var o,r=e.st.zoom,l='.zoom';if(r.enabled&&e.supportsTransition){var a,t,c=r.duration,d=function(e){var n=e.clone().removeAttr('style').removeAttr('class').addClass('mfp-animated-image'),o='all '+r.duration/1e3+'s '+r.easing,t={position:'fixed',zIndex:9999,left:0,top:0,'-webkit-backface-visibility':'hidden'},i='transition';return t['-webkit-'+i]=t['-moz-'+i]=t['-o-'+i]=t[i]=o,n.css(t),n},s=function(){e.content.css('visibility','visible')};n('BuildControls'+l,function(){if(e._allowZoom()){if(clearTimeout(a),e.content.css('visibility','hidden'),!(o=e._getItemToZoom()))return void s();(t=d(o)).css(e._getOffset()),e.wrap.append(t),a=setTimeout(function(){t.css(e._getOffset(!0)),a=setTimeout(function(){s(),setTimeout(function(){t.remove(),o=t=null,i('ZoomAnimationEnded')},16)},c)},16)}}),n('BeforeClose'+l,function(){if(e._allowZoom()){if(clearTimeout(a),e.st.removalDelay=c,!o){if(!(o=e._getItemToZoom()))return;t=d(o)};t.css(e._getOffset(!0)),e.wrap.append(t),e.content.css('visibility','hidden'),setTimeout(function(){t.css(e._getOffset())},16)}}),n('Close'+l,function(){e._allowZoom()&&(s(),t&&t.remove(),o=null)})}},_allowZoom:function(){return'image'===e.currItem.type},_getItemToZoom:function(){return!!e.currItem.hasSize&&e.currItem.img},_getOffset:function(i){var n,a=(n=i?e.currItem.img:e.st.zoom.opener(e.currItem.el||e.currItem)).offset(),r=parseInt(n.css('padding-top'),10),s=parseInt(n.css('padding-bottom'),10);a.top-=t(window).scrollTop()-r;var o={width:n.width(),height:(b?n.innerHeight():n[0].offsetHeight)-s-r};return void 0===h&&(h=void 0!==document.createElement('p').style.MozTransform),h?o['-moz-transform']=o.transform='translate('+a.left+'px,'+a.top+'px)':(o.left=a.left,o.top=a.top),o}}});var v=function(t){if(e.currTemplate.iframe){var i=e.currTemplate.iframe.find('iframe');i.length&&(t||(i[0].src='//about:blank'),e.isIE8&&i.css('display',t?'block':'none'))}};t.magnificPopup.registerModule('iframe',{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:'iframe_src',patterns:{youtube:{index:'youtube.com',id:'v=',src:'//www.youtube.com/embed/%id%?autoplay=1'},vimeo:{index:'vimeo.com/',id:'/',src:'//player.vimeo.com/video/%id%?autoplay=1'},gmaps:{index:'//maps.google.',src:'%id%&output=embed'}}},proto:{initIframe:function(){e.types.push('iframe'),n('BeforeChange',function(e,t,i){t!==i&&('iframe'===t?v():'iframe'===i&&v(!0))}),n('Close.iframe',function(){v()})},getIframe:function(i,n){var o=i.src,a=e.st.iframe;t.each(a.patterns,function(){if(o.indexOf(this.index)>-1)return this.id&&(o='string'==typeof this.id?o.substr(o.lastIndexOf(this.id)+this.id.length,o.length):this.id.call(this,o)),o=this.src.replace('%id%',o),!1});var r={};return a.srcAction&&(r[a.srcAction]=o),e._parseMarkup(n,r,i),e.updateStatus('ready'),n}}});var g=function(t){var i=e.items.length;return t>i-1?t-i:t<0?i+t:t},x=function(e,t,i){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,i)};t.magnificPopup.registerModule('gallery',{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:'Previous (Left arrow key)',tNext:'Next (Right arrow key)',tCounter:'%curr% of %total%'},proto:{initGallery:function(){var a=e.st.gallery,i='.mfp-gallery';if(e.direction=!0,!a||!a.enabled)return!1;r+=' mfp-gallery',n('Open'+i,function(){a.navigateByImgClick&&e.wrap.on('click'+i,'.mfp-img',function(){if(e.items.length>1)return e.next(),!1}),o.on('keydown'+i,function(t){37===t.keyCode?e.prev():39===t.keyCode&&e.next()})}),n('UpdateStatus'+i,function(t,i){i.text&&(i.text=x(i.text,e.currItem.index,e.items.length))}),n('MarkupParse'+i,function(t,i,n,o){var r=e.items.length;n.counter=r>1?x(a.tCounter,o.index,r):''}),n('BuildControls'+i,function(){if(e.items.length>1&&a.arrows&&!e.arrowLeft){var i=a.arrowMarkup,n=e.arrowLeft=t(i.replace(/%title%/gi,a.tPrev).replace(/%dir%/gi,'left')).addClass('mfp-prevent-close'),o=e.arrowRight=t(i.replace(/%title%/gi,a.tNext).replace(/%dir%/gi,'right')).addClass('mfp-prevent-close');n.on('click',function(){e.prev()}),o.on('click',function(){e.next()}),e.container.append(n.add(o))}}),n('Change'+i,function(){e._preloadTimeout&&clearTimeout(e._preloadTimeout),e._preloadTimeout=setTimeout(function(){e.preloadNearbyImages(),e._preloadTimeout=null},16)}),n('Close'+i,function(){o.off(i),e.wrap.off('click'+i),e.arrowRight=e.arrowLeft=null})},next:function(){e.direction=!0,e.index=g(e.index+1),e.updateItemHTML()},prev:function(){e.direction=!1,e.index=g(e.index-1),e.updateItemHTML()},goTo:function(t){e.direction=t>=e.index,e.index=t,e.updateItemHTML()},preloadNearbyImages:function(){var t,i=e.st.gallery.preload,n=Math.min(i[0],e.items.length),o=Math.min(i[1],e.items.length);for(t=1;t<=(e.direction?o:n);t++)e._preloadItem(e.index+t);for(t=1;t<=(e.direction?n:o);t++)e._preloadItem(e.index-t)},_preloadItem:function(n){if(n=g(n),!e.items[n].preloaded){var o=e.items[n];if(o.parsed||(o=e.parseEl(n)),i('LazyLoad',o),'image'===o.type&&(o.img=t('<img class="mfp-img" />').on('load.mfploader',function(){o.hasSize=!0}).on('error.mfploader',function(){o.hasSize=!0,o.loadError=!0,i('LazyLoadError',o)}).attr('src',o.src),t('body').hasClass('responsive-images-lightbox-support')&&o.el.length>0)){var l=t(o.el[0]),a=l.data('srcset'),r=l.data('sizes');if(void 0!==a)o.img.attr('srcset',a),void 0!==r&&o.img.attr('sizes',r);else{var s=t(o.el[0]).find('img');void 0!==(a=s.attr('srcset'))&&o.img.attr('srcset',a),void 0!==(r=s.attr('sizes'))&&o.img.attr('sizes',r)}};o.preloaded=!0}}}});t.magnificPopup.registerModule('retina',{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return'@2x'+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var i=e.st.retina,t=i.ratio;(t=isNaN(t)?t():t)>1&&(n('ImageHasSize.retina',function(e,i){i.img.css({'max-width':i.img[0].naturalWidth/t,width:'100%'})}),n('ElementParse.retina',function(e,n){n.src=i.replaceSrc(n,t)}))}}}}),I()});(function(e){'use strict';e.avia_utilities=e.avia_utilities||{};e.avia_utilities.av_popup={type:'image',mainClass:'avia-popup mfp-zoom-in',tLoading:'',tClose:'',removalDelay:300,closeBtnInside:!0,closeOnContentClick:!1,midClick:!0,autoFocusLast:!1,fixedContentPos:!1,iframe:{patterns:{youtube:{index:'youtube.com/watch',id:function(e){var a=e.match(/[\\?\\&]v=([^\\?\\&]+)/),i,t;if(!a||!a[1])return null;i=a[1];t=e.split('/watch');t=t[1];return i+t},src:'//www.youtube.com/embed/%id%'},vimeo:{index:'vimeo.com/',id:function(e){var a=e.match(/(https?:\/\/)?(www.)?(player.)?vimeo.com\/([a-z]*\/)*([0-9]{6,11})[?]?.*/),i,t;if(!a||!a[5])return null;i=a[5];t=e.split('?');t=t[1];return i+'?'+t},src:'//player.vimeo.com/video/%id%'}}},image:{titleSrc:function(t){var a=t.el.attr('title');if(!a){a=t.el.find('img').attr('title')};if(!a){a=t.el.parent().next('.wp-caption-text').html()};if(typeof a!='undefined'){return a};if(!e('body').hasClass('avia-mfp-show-alt-text')){return''};var i=t.el.attr('alt');if(typeof i!='undefined'){return i};i=t.el.find('img').attr('alt');if(typeof i!='undefined'){return i};return''}},gallery:{tPrev:'',tNext:'',tCounter:'%curr% / %total%',enabled:!0,preload:[1,1]},callbacks:{beforeOpen:function(){if(this.st.el&&this.st.el.data('fixed-content')){this.fixedContentPos=!0}},open:function(){e.magnificPopup.instance.next=function(){var t=this;t.wrap.removeClass('mfp-image-loaded');setTimeout(function(){e.magnificPopup.proto.next.call(t)},120)};e.magnificPopup.instance.prev=function(){var t=this;t.wrap.removeClass('mfp-image-loaded');setTimeout(function(){e.magnificPopup.proto.prev.call(t)},120)};if(this.st.el&&this.st.el.data('av-extra-class')){this.wrap.addClass(this.currItem.el.data('av-extra-class'))}},markupParse:function(t,a,r){if(typeof a.img_replaceWith=='undefined'||typeof a.img_replaceWith.length=='undefined'||a.img_replaceWith.length==0){return};var o=e(a.img_replaceWith[0]);if(typeof o.attr('alt')!='undefined'){return};var i=r.el.attr('alt');if(typeof i=='undefined'){i=r.el.find('img').attr('alt')};if(typeof i!='undefined'){o.attr('alt',i)};return},imageLoadComplete:function(){var e=this;setTimeout(function(){e.wrap.addClass('mfp-image-loaded')},16)},change:function(){if(this.currItem.el){var e=this.currItem.el;this.content.find('.av-extra-modal-content, .av-extra-modal-markup').remove();if(e.data('av-extra-content')){var a=e.data('av-extra-content');this.content.append('<div class=\'av-extra-modal-content\'>'+a+'</div>')};if(e.data('av-extra-markup')){var t=e.data('av-extra-markup');this.wrap.append('<div class=\'av-extra-modal-markup\'>'+t+'</div>')}}}}},e.fn.avia_activate_lightbox=function(t){var i={groups:['.avia-slideshow','.avia-gallery','.av-horizontal-gallery','.av-instagram-pics','.portfolio-preview-image','.portfolio-preview-content','.isotope','.post-entry','.sidebar','#main','.main_menu','.woocommerce-product-gallery'],autolinkElements:'a.lightbox, a[rel^="prettyPhoto"], a[rel^="lightbox"], a[href$=jpg], a[href$=webp], a[href$=png], a[href$=gif], a[href$=jpeg], a[href*=".jpg?"], a[href*=".png?"], a[href*=".gif?"], a[href*=".jpeg?"], a[href$=".mov"] , a[href$=".swf"] , a:regex(href, .vimeo\.com/[0-9]) , a[href*="youtube.com/watch"] , a[href*="screenr.com"], a[href*="iframe=true"]',videoElements:'a[href$=".mov"] , a[href$=".swf"] , a:regex(href, .vimeo\.com/[0-9]) , a[href*="youtube.com/watch"] , a[href*="screenr.com"], a[href*="iframe=true"]',exclude:'.noLightbox, .noLightbox a, .fakeLightbox, .lightbox-added, a[href*="dropbox.com"]'},a=e.extend({},i,t),r=!e('html').is('.av-custom-lightbox');if(!r)return this;return this.each(function(){var i=e(this),o=e(a.videoElements,this).not(a.exclude).addClass('mfp-iframe'),r=!i.is('body')&&!i.is('.ajax_slide');for(var t=0;t<a.groups.length;t++){i.find(a.groups[t]).each(function(){var t=e(a.autolinkElements,this);if(r)t.removeClass('lightbox-added');t.not(a.exclude).addClass('lightbox-added').magnificPopup(e.avia_utilities.av_popup)})}})}})(jQuery);(function(e){'use strict';e(document).ready(function(){i()});function a(e,i,a){if(e[0].classList){if(i=='add'){e[0].classList.add(a)}
else{e[0].classList.remove(a)}}
else{if(i=='add'){e.addClass(a)}
else{e.removeClass(a)}}};function i(){var l=e(window),i=e('.html_header_top.html_header_sticky #header'),r=e('.av_header_unstick_top');if(!i.length&&!r.length){return};var f=e('#header_main .container .logo img, #header_main .container .logo a'),t=e('#header_main .container:not(#header_main_alternate>.container), #header_main .main_menu ul:first-child > li > a:not(.avia_mega_div a, #header_main_alternate a), #header_main #menu-item-shop .cart_dropdown_link'),n=e(t).first().height(),m=e.avia_utilities.isMobile,u=e('#scroll-top-link'),o=i.is('.av_header_transparency'),s=i.is('.av_header_shrinking'),h=i.find('#header_meta'),c=h.length?h.outerHeight():0,d=function(){var e=l.scrollTop(),d=0,h=e;if(r){e-=c};if(e<0){e=0};if(s&&!m){if(e<n/2){d=n-e;if(e<=0){d=n};a(i,'remove','header-scrolled')}
else{d=n/2;a(i,'add','header-scrolled')};if(e-30<n){a(i,'remove','header-scrolled-full')}
else{a(i,'add','header-scrolled-full')};t.css({'height':d+'px','lineHeight':d+'px'});f.css({'maxHeight':d+'px'})};if(r.length){if(e<=0){if(h<=0){h=0};r.css({'margin-top':'-'+h+'px'})}
else{r.css({'margin-top':'-'+c+'px'})}};if(o){if(e>50){a(i,'remove','av_header_transparency')}
else{a(i,'add','av_header_transparency')}}};if(e('body').is('.avia_deactivate_menu_resize')){s=!1};if(!o&&!s&&!r.length){return};l.on('debouncedresize',function(){n=e(t).attr('style','').first().height();d()});l.on('scroll',function(){window.requestAnimationFrame(d)});d()}})(jQuery);(function(t){'use strict';t(document).ready(function(){t('.avia_auto_toc').each(function(){var c=t(this).attr('id'),i='h1',s=[],n='',e=t(this).find('.avia-toc-container');if(e.length){var r=e.attr('data-level'),o=e.attr('data-exclude');if(typeof r!==undefined){i=r};if(typeof o!==undefined){n=o}};s=i.split(',');t('.entry-content-wrapper').find(i).each(function(){var i=t(this).attr('id'),h=t(this).prop('tagName').toLowerCase(),o=t(this).text(),l=s.indexOf(h),f='';if(i==undefined){var r=a(o);t(this).attr('id',r);i=r};if(!t(this).hasClass('av-no-toc')&&!t(this).hasClass(n)&&!t(this).parent().hasClass(n)){var c='<a href="#'+i+'" class="avia-toc-link avia-toc-level-'+l+'"><span>'+o+'</span></a>'};e.append(c)});t('.avia-toc-smoothscroll .avia-toc-link').on('click',function(a){a.preventDefault();var n=t(this).attr('href'),e=50,i=t('.html_header_top.html_header_sticky #header');if(i.length){e=i.outerHeight()+50};t('html,body').animate({scrollTop:t(n).offset().top-e})})})});function a(t){return t.toLowerCase().replace(/[^a-z0-9]+/g,'-').replace(/^-+|-+$/g,'-').replace(/^-+|-+$/g,'')}})(jQuery);(function(o){'use strict';var a=o('.has-background, .has-text-color');a.each(function(t){var a=o(this);if(!(a.hasClass('has-background')||a.hasClass('has-text-color'))){return};var c=a.attr('class').split(/\s+/),r='',e='';if(a.hasClass('has-background')){o.each(c,function(t,o){o=o.trim().toLowerCase();if(0==o.indexOf('has-col-')&&-1!=o.indexOf('-background-color')){r=o.replace('has-col-','');r=r.replace('-background-color','');r=r.replace(/-|[^0-9a-fA-F]/g,'');if(r.length==3||r.length==6){a.css({'background-color':'','border-color':''});e='undefined'!=typeof a.attr('style')?a.attr('style'):'';a.attr('style',e+' background-color: #'+r+'; border-color: #'+r+';')}}})};if(a.hasClass('has-text-color')){o.each(c,function(t,o){o=o.trim().toLowerCase();if(0==o.indexOf('has-col-')&&-1==o.indexOf('-background-color')&&-1!=o.indexOf('-color')){var r=o.replace('has-col-','');r=r.replace('-color','');r=r.replace(/-|[^0-9a-fA-F]/g,'');if(r.length==3||r.length==6){a.css('color','');e='undefined'!=typeof a.attr('style')?a.attr('style'):'';a.attr('style',e+' color: #'+r+';')}}})}})})(jQuery);