(function(){var html=document.getElementsByTagName('html')[0];var cookie_check=html.className.indexOf('av-cookies-needs-opt-in')>=0||html.className.indexOf('av-cookies-can-opt-out')>=0;var allow_continue=true;var silent_accept_cookie=html.className.indexOf('av-cookies-user-silent-accept')>=0;if(cookie_check&&!silent_accept_cookie)
{if(!document.cookie.match(/aviaCookieConsent/)||html.className.indexOf('av-cookies-session-refused')>=0)
{allow_continue=false;}
else
{if(!document.cookie.match(/aviaPrivacyRefuseCookiesHideBar/))
{allow_continue=false;}
else if(!document.cookie.match(/aviaPrivacyEssentialCookiesEnabled/))
{allow_continue=false;}
else if(document.cookie.match(/aviaPrivacyGoogleWebfontsDisabled/))
{allow_continue=false;}}}
if(allow_continue)
{var f=document.createElement('link');f.type='text/css';f.rel='stylesheet';f.href='https://fonts.googleapis.com/css?family=Lora&display=auto';f.id='avia-google-webfont';document.getElementsByTagName('head')[0].appendChild(f);}})();
!function(){if("function"==typeof window.CustomEvent)return!1;function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}e.prototype=window.Event.prototype,window.CustomEvent=e}(),function(){var e=function(e){return RegExp("(^| )"+e+"( |$)")},t=function(e,t,n){for(var i=0;i<e.length;i++)t.call(n,e[i])};function n(e){this.element=e}n.prototype={add:function(){t(arguments,function(e){this.contains(e)||(this.element.className+=this.element.className.length>0?" "+e:e)},this)},remove:function(){t(arguments,function(t){this.element.className=this.element.className.replace(e(t),"")},this)},toggle:function(e){return this.contains(e)?(this.remove(e),!1):(this.add(e),!0)},contains:function(t){return e(t).test(this.element.className)},replace:function(e,t){this.remove(e),this.add(t)}},"classList"in Element.prototype||Object.defineProperty(Element.prototype,"classList",{get:function(){return new n(this)}}),window.DOMTokenList&&null==DOMTokenList.prototype.replace&&(DOMTokenList.prototype.replace=n.prototype.replace)}(),function(e,t,n){var i=new function(){this.cookiesAccepted=null,this.noticeContainer=null,this.setStatus=function(n){var i=this,o="",s="",c=new Date,a=new Date;cnArgs.onScroll&&e.removeEventListener("scroll",this.handleScroll),"accept"===n?(n="true",a.setTime(parseInt(c.getTime())+1e3*parseInt(cnArgs.cookieTime))):(n="false",a.setTime(parseInt(c.getTime())+1e3*parseInt(cnArgs.cookieTimeRejected))),cnArgs.globalCookie&&(o=this.getDomain(t.location.hostname)),"localhost"===t.location.hostname&&(s=t.location.pathname.split("/")[1]);var r="";"https:"===t.location.protocol&&(r=";secure"),t.cookie=cnArgs.cookieName+"="+n+";expires="+a.toUTCString()+";path=/"+s+";domain="+o+r,this.cookiesAccepted="true"===n;var d=new CustomEvent("setCookieNotice",{detail:{value:n,time:c,expires:a,data:cnArgs}});if(t.dispatchEvent(d),this.setBodyClass(["cookies-set","true"===n?"cookies-accepted":"cookies-refused"]),this.hideCookieNotice(),"automatic"===cnArgs.revokeCookiesOpt&&(this.noticeContainer.addEventListener("animationend",function e(){i.noticeContainer.removeEventListener("animationend",e),i.showRevokeNotice()}),this.noticeContainer.addEventListener("webkitAnimationEnd",function e(){i.noticeContainer.removeEventListener("webkitAnimationEnd",e),i.showRevokeNotice()})),cnArgs.redirection&&("true"===n&&null===this.cookiesAccepted||n!==this.cookiesAccepted&&null!==this.cookiesAccepted)){var l=e.location.protocol+"//",h=e.location.host+"/"+e.location.pathname;cnArgs.cache?(l=l+h.replace("//","/")+(""===e.location.search?"?":e.location.search+"&")+"cn-reloaded=1"+e.location.hash,e.location.href=l):(l=l+h.replace("//","/")+e.location.search+e.location.hash,e.location.reload(!0));return}},this.getDomain=function(e){RegExp(/https?:\/\//).test(e)||(e="http://"+e);var t=new URL(e).hostname.split(".");return t.slice(0).slice(-(4===t.length?3:2)).join(".")},this.getStatus=function(e){var n=("; "+t.cookie).split("; cookie_notice_accepted=");if(2!==n.length)return null;var i=n.pop().split(";").shift();return e?"true"===i:i},this.showCookieNotice=function(){var e=this,n=new CustomEvent("showCookieNotice",{detail:{data:cnArgs}});t.dispatchEvent(n),this.noticeContainer.classList.remove("cookie-notice-hidden"),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.add("cookie-notice-visible"),this.noticeContainer.addEventListener("animationend",function t(){e.noticeContainer.removeEventListener("animationend",t),e.noticeContainer.classList.remove("cn-animated")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function t(){e.noticeContainer.removeEventListener("webkitAnimationEnd",t),e.noticeContainer.classList.remove("cn-animated")})},this.hideCookieNotice=function(){var e=this,n=new CustomEvent("hideCookieNotice",{detail:{data:cnArgs}});t.dispatchEvent(n),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.remove("cookie-notice-visible"),this.noticeContainer.addEventListener("animationend",function t(){e.noticeContainer.removeEventListener("animationend",t),e.noticeContainer.classList.remove("cn-animated"),e.noticeContainer.classList.add("cookie-notice-hidden")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function t(){e.noticeContainer.removeEventListener("webkitAnimationEnd",t),e.noticeContainer.classList.remove("cn-animated"),e.noticeContainer.classList.add("cookie-notice-hidden")})},this.showRevokeNotice=function(){var e=this,n=new CustomEvent("showRevokeNotice",{detail:{data:cnArgs}});t.dispatchEvent(n),this.noticeContainer.classList.remove("cookie-revoke-hidden"),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.add("cookie-revoke-visible"),this.noticeContainer.addEventListener("animationend",function t(){e.noticeContainer.removeEventListener("animationend",t),e.noticeContainer.classList.remove("cn-animated")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function t(){e.noticeContainer.removeEventListener("webkitAnimationEnd",t),e.noticeContainer.classList.remove("cn-animated")})},this.hideRevokeNotice=function(){var e=this,n=new CustomEvent("hideRevokeNotice",{detail:{data:cnArgs}});t.dispatchEvent(n),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.remove("cookie-revoke-visible"),this.noticeContainer.addEventListener("animationend",function t(){e.noticeContainer.removeEventListener("animationend",t),e.noticeContainer.classList.remove("cn-animated"),e.noticeContainer.classList.add("cookie-revoke-hidden")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function t(){e.noticeContainer.removeEventListener("webkitAnimationEnd",t),e.noticeContainer.classList.remove("cn-animated"),e.noticeContainer.classList.add("cookie-revoke-hidden")})},this.setBodyClass=function(e){t.body.classList.remove("cookies-revoke"),t.body.classList.remove("cookies-accepted"),t.body.classList.remove("cookies-refused"),t.body.classList.remove("cookies-set"),t.body.classList.remove("cookies-not-set");for(var n=0;n<e.length;n++)t.body.classList.add(e[n])},this.handleScroll=function(){(e.pageYOffset||(t.documentElement||t.body.parentNode||t.body).scrollTop)>parseInt(cnArgs.onScrollOffset)&&this.setStatus("accept")},this.getClosest=function(e,n){for(Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;--n>=0&&t.item(n)!==this;);return n>-1});e&&e!==t;e=e.parentNode)if(e.matches(n))return e;return null},this.inIframe=function(){try{return e.self!==e.top}catch(t){return!0}},this.init=function(){var n=this;if(!0!==this.inIframe()&&(this.cookiesAccepted=this.getStatus(!0),this.noticeContainer=t.getElementById("cookie-notice"),this.noticeContainer)){var i=t.getElementsByClassName("cn-set-cookie"),o=t.getElementsByClassName("cn-revoke-cookie"),s=t.getElementById("cn-close-notice");this.noticeContainer.classList.add("cn-effect-"+cnArgs.hideEffect),null===this.cookiesAccepted?(cnArgs.onScroll&&e.addEventListener("scroll",function(e){n.handleScroll()}),cnArgs.onClick&&e.addEventListener("click",function(e){null===n.getClosest(e.target,"#cookie-notice")&&n.setStatus("accept")},!0),this.setBodyClass(["cookies-not-set"]),this.showCookieNotice()):(this.setBodyClass(["cookies-set",!0===this.cookiesAccepted?"cookies-accepted":"cookies-refused"]),cnArgs.revokeCookies&&"automatic"===cnArgs.revokeCookiesOpt&&this.showRevokeNotice());for(var c=0;c<i.length;c++)i[c].addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),n.setStatus(this.dataset.cookieSet)});null!==s&&s.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),n.setStatus("reject")});for(var c=0;c<o.length;c++)o[c].addEventListener("click",function(e){e.preventDefault(),n.noticeContainer.classList.contains("cookie-revoke-visible")?(n.hideRevokeNotice(),n.noticeContainer.addEventListener("animationend",function e(){n.noticeContainer.removeEventListener("animationend",e),n.showCookieNotice()}),n.noticeContainer.addEventListener("webkitAnimationEnd",function e(){n.noticeContainer.removeEventListener("webkitAnimationEnd",e),n.showCookieNotice()})):n.noticeContainer.classList.contains("cookie-notice-hidden")&&n.noticeContainer.classList.contains("cookie-revoke-hidden")&&n.showCookieNotice()})}}};e.addEventListener("load",function(){i.init()},!1)}(window,document,void 0);
;var aviaJS=aviaJS||{};(function(){'use strict';if(!aviaJS.aviaJSHelpers){class aviaJSHelpers{constructor(){this.wpHooks()};debounce(callback,wait,immediate){var i;return function(){var e=this,s=arguments,t=function(){i=null;if(!immediate){callback.apply(e,s)}},l=immediate&&!i;clearTimeout(i);i=setTimeout(t,wait);if(l){callback.apply(e,s)}}};wpHooks(){if(window['wp']&&wp.hooks){return};if(!window['wp']){window['wp']={hooks:{}}};let obj=window['wp'].hooks;obj.applyFilters=this.wpHooks_applyFilters;obj.doAction=this.wpHooks_applyFilters;obj.hasFilter=this.wpHooks_hasFilters;obj.hasAction=this.wpHooks_hasFilters};wpHooks_applyFilters(handle,value){return value};wpHooks_hasFilters(handle,namespace){return!1}};aviaJS.aviaJSHelpers=new aviaJSHelpers()};if(!aviaJS.aviaPlugins){class aviaPlugins{plugins=[];defaultPlugin={classFactory:null,selector:''};constructor(){this.plugins=[]};register(classFactory,selector){if('function'!=typeof classFactory){return!1};let newPlugin=Object.assign({},this.defaultPlugin);if('string'!=typeof selector){selector='body'};newPlugin.classFactory=classFactory;newPlugin.selector=selector;this.plugins.push(newPlugin);this.check_bind()};check_bind(){if(document.readyState==='complete'){this.bind_plugins()}
else{document.addEventListener('readystatechange',this.bind_plugins.bind(this))}};bind_plugins(e){if(document.readyState!=='complete'){return};let plugins=this.plugins;this.plugins=[];for(let plugin of plugins){let elements=document.querySelectorAll(plugin.selector);for(let element of elements){plugin.classFactory(element)}}}};aviaJS.aviaPlugins=new aviaPlugins()}})();
'use strict';var avia_is_mobile=!1;if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&'ontouchstart'in document.documentElement){avia_is_mobile=!0;document.documentElement.className+=' avia_mobile '}
else{document.documentElement.className+=' avia_desktop '};document.documentElement.className+=' js_active ';(function(){var e=['-webkit-','-moz-','-ms-',''],n='',o=!1,a=!1;for(var t in e){if(e[t]+'transform'in document.documentElement.style){o=!0;n=e[t]+'transform'};if(e[t]+'perspective'in document.documentElement.style){a=!0}};if(o){document.documentElement.className+=' avia_transform '};if(a){document.documentElement.className+=' avia_transform3d '};if(typeof document.getElementsByClassName=='function'&&typeof document.documentElement.getBoundingClientRect=='function'&&avia_is_mobile==!1){if(n&&window.innerHeight>0){setTimeout(function(){var e=0,o={},a=0,t=document.getElementsByClassName('av-parallax'),i=window.pageYOffset||document.documentElement.scrollTop;for(e=0;e<t.length;e++){t[e].style.top='0px';o=t[e].getBoundingClientRect();a=Math.ceil((window.innerHeight+i-o.top)*0.3);t[e].style[n]='translate(0px, '+a+'px)';t[e].style.top='auto';t[e].className+=' enabled-parallax '}},50)}}})();
var avia_framework_globals=avia_framework_globals||{};avia_framework_globals.frameworkUrl='https://www.studiolegaleborzone.it/wp-content/themes/enfold/framework/';avia_framework_globals.installedAt='https://www.studiolegaleborzone.it/wp-content/themes/enfold/';avia_framework_globals.ajaxurl='https://www.studiolegaleborzone.it/wp-admin/admin-ajax.php';
/*! 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});
var LS_Meta={"v":"7.12.4","fixGSAP":"1"};
;var LS_oldGS,LS_oldGSQueue,LS_oldGSDefine,LS_GSAP,_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))})};"object"==typeof LS_Meta&&LS_Meta.fixGSAP&&(LS_oldGS=window.GreenSockGlobals,LS_oldGSQueue=window._gsQueue,LS_oldGSDefine=window._gsDefine,window._gsDefine=null,delete window._gsDefine,LS_GSAP=window.GreenSockGlobals={});var LS_pp1="ht",LS_pp2="tp:",LS_pp3="//",LS_nsProtocol=LS_pp1+LS_pp2+LS_pp3,_gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";var P,y,v,x,g,e,m,t;function T(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 w(t,e,i,r){var n={a:t},s={},a={},o={c:r},l=(t+e)/2,h=(i+r)/2,u=((i=((u=(e+i)/2)+h)/2)-(e=(l+u)/2))/8;return n.b=l+(t-l)/4,s.b=e+u,n.c=s.a=(n.b+s.b)/2,s.c=a.a=(e+i)/2,a.b=i-u,o.b=h+(r-h)/4,a.c=o.a=(a.b+o.b)/2,[n,s,a,o]}function f(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(y.length=v.length=x.length=0,a=d.length;-1<--a;)o=d[a],g[o]=-1!==n.indexOf(","+o+","),p[o]=function(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 T(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 T(a,0,0,o),i&&(l=t[s+2][e],y[s]=(y[s]||0)+(o-a)*(o-a),v[s]=(v[s]||0)+(l-o)*(l-o));return u[s]=new T(t[s][e],0,0,t[s+1][e]),u}(t,o,g[o],s);for(a=y.length;-1<--a;)y[a]=Math.sqrt(y[a]),v[a]=Math.sqrt(v[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/v[h]+l[h].da/y[h]||0,x[h]=(x[h]||0)+u*u;for(a=x.length;-1<--a;)x[a]=Math.sqrt(x[a])}for(a=d.length,h=i?4:1;-1<--a;)(function(t,e,i,r,n){for(var s,a,o,l,h,u,_,f,c,p=t.length-1,d=0,m=t[0].a,g=0;g<p;g++)s=(o=t[d]).a,a=o.d,h=t[d+1].d,h=n?(_=y[g],c=((f=v[g])+_)*e*.25/(!r&&x[g]||.5),a-((l=a-(a-s)*(r?.5*e:0!==_?c/_:0))+(((c=a+(h-a)*(r?.5*e:0!==f?c/f:0))-l)*(3*_/(_+f)+.5)/4||0))):a-((l=a-(a-s)*e*.5)+(c=a+(h-a)*e*.5))/2,l+=h,c+=h,o.c=h=l,o.b=0!==g?m:m=o.a+.6*(o.c-o.a),o.da=a-s,o.ca=h-s,o.ba=m-s,i?(u=w(s,m,h,a),t.splice(d,1,u[0],u[1],u[2],u[3]),d+=4):d++,m=c;(o=t[d]).b=m,o.c=m+.4*(o.d-m),o.da=o.d-o.a,o.ca=o.c-o.a,o.ba=m-o.a,i&&(u=w(o.a,m,o.c,o.d),t.splice(d,1,u[0],u[1],u[2],u[3]))})(l=p[o=d[a]],e,i,r,g[o]),f&&(l.splice(0,h),l.splice(l.length-h,h));return p}function c(t,e){var i,r,n,s,a=[],o=[],l=0,h=0,u=(e=e>>0||6)-1,_=[],f=[];for(i in t)!function(t,e,i){for(var r,n,s,a,o,l,h,u,_,f=1/i,c=t.length;-1<--c;)for(n=(u=t[c]).a,s=u.d-n,a=u.c-n,o=u.b-n,r=0,l=1;l<=i;l++)h=r-(r=((_=f*l)*_*s+3*(h=1-_)*(_*a+h*o))*_),e[_=c*i+l-1]=(e[_]||0)+h*h}(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:_}}_gsScope._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(r,u,g){function d(t){for(var e=[],i=t.length,r=0;r!==i;e.push(t[r++]));return e}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 y(t){if("function"==typeof t)return t;var c="object"==typeof t?t:{each:t},p=c.ease,d=c.from||0,m=c.base||0,g={},y=isNaN(d),v=c.axis,x={center:.5,end:1}[d]||0;return function(t,e,i){var r,n,s,a,o,l,h,u,_=(i||c).length,f=g[_];if(!f){if(!(u="auto"===c.grid?0:(c.grid||[1/0])[0])){for(l=-1/0;l<(l=i[u++].getBoundingClientRect().left)&&u<_;);u--}for(f=g[_]=[],r=y?Math.min(u,_)*x-.5:d%u,n=y?_*x/u-.5:d/u|0,h=1/(l=0),o=0;o<_;o++)s=o%u-r,a=n-(o/u|0),f[o]=a=v?Math.abs("y"===v?a:s):Math.sqrt(s*s+a*a),l<a&&(l=a),a<h&&(h=a);f.max=l-h,f.min=h,f.v=_=c.amount||c.each*(_<u?_-1:v?"y"===v?_/u:u:Math.max(u,_/u))||0,f.b=_<0?m-_:m}return _=(f[t]-f.min)/f.max,f.b+(p?p.getRatio(_):_)*f.v}}var v=function(t,e,i){g.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=v.prototype.render},x=1e-8,T=g._internals,w=T.isSelector,b=T.isArray,t=v.prototype=g.to({},.1,{}),P=[];v.version="2.1.3",t.constructor=v,t.kill()._gc=!1,v.killTweensOf=v.killDelayedCallsTo=g.killTweensOf,v.getTweensOf=g.getTweensOf,v.lagSmoothing=g.lagSmoothing,v.ticker=g.ticker,v.render=g.render,v.distribute=y,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),g.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&&g._onPluginEvent("_onDisable",r),.998<r._time/r._duration){e=r._totalTime;r.render(0,!0,!1),r._initted=!1,r.render(e,!0,!1)}else if(r._initted=!1,r._init(),0<r._time||s)for(var a,o=1/(1-n),l=r._firstPT;l;)a=l.s+l.c,l.c*=o,l.s=a-l.c,l=l._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=this,_=u._dirty?u.totalDuration():u._totalDuration,f=u._time,c=u._totalTime,p=u._cycle,d=u._duration,m=u._rawPrevTime;if(_-x<=t&&0<=t?(u._totalTime=_,u._cycle=u._repeat,u._yoyo&&0!=(1&u._cycle)?(u._time=0,u.ratio=u._ease._calcEnd?u._ease.getRatio(0):0):(u._time=d,u.ratio=u._ease._calcEnd?u._ease.getRatio(1):1),u._reversed||(r=!0,n="onComplete",i=i||u._timeline.autoRemoveChildren),0!==d||!u._initted&&u.vars.lazy&&!i||(u._startTime===u._timeline._duration&&(t=0),(m<0||t<=0&&-x<=t||m===x&&"isPause"!==u.data)&&m!==t&&(i=!0,x<m&&(n="onReverseComplete")),u._rawPrevTime=l=!e||t||m===t?t:x)):t<x?(u._totalTime=u._time=u._cycle=0,u.ratio=u._ease._calcEnd?u._ease.getRatio(0):0,(0!==c||0===d&&0<m)&&(n="onReverseComplete",r=u._reversed),-x<t?t=0:t<0&&(u._active=!1,0!==d||!u._initted&&u.vars.lazy&&!i||(0<=m&&(i=!0),u._rawPrevTime=l=!e||t||m===t?t:x)),u._initted||(i=!0)):(u._totalTime=u._time=t,0!==u._repeat&&(o=d+u._repeatDelay,u._cycle=u._totalTime/o>>0,0!==u._cycle&&u._cycle===u._totalTime/o&&c<=t&&u._cycle--,u._time=u._totalTime-u._cycle*o,u._yoyo&&0!=(1&u._cycle)&&(u._time=d-u._time,(h=u._yoyoEase||u.vars.yoyoEase)&&(u._yoyoEase||(!0!==h||u._initted?u._yoyoEase=h=!0===h?u._ease:h instanceof Ease?h:Ease.map[h]:(h=u.vars.ease,u._yoyoEase=h=h?h instanceof Ease?h:"function"==typeof h?new Ease(h,u.vars.easeParams):Ease.map[h]||g.defaultEase:g.defaultEase)),u.ratio=h?1-h.getRatio((d-u._time)/d):0)),u._time>d?u._time=d:u._time<0&&(u._time=0)),u._easeType&&!h?(a=u._time/d,(1===(_=u._easeType)||3===_&&.5<=a)&&(a=1-a),3===_&&(a*=2),1===(o=u._easePower)?a*=a:2===o?a*=a*a:3===o?a*=a*a*a:4===o&&(a*=a*a*a*a),u.ratio=1===_?1-a:2===_?a:u._time/d<.5?a/2:1-a/2):h||(u.ratio=u._ease.getRatio(u._time/d))),f!==u._time||i||p!==u._cycle){if(!u._initted){if(u._init(),!u._initted||u._gc)return;if(!i&&u._firstPT&&(!1!==u.vars.lazy&&u._duration||u.vars.lazy&&!u._duration))return u._time=f,u._totalTime=c,u._rawPrevTime=m,u._cycle=p,T.lazyTweens.push(u),void(u._lazy=[t,e]);!u._time||r||h?r&&this._ease._calcEnd&&!h&&(u.ratio=u._ease.getRatio(0===u._time?0:1)):u.ratio=u._ease.getRatio(u._time/d)}for(!1!==u._lazy&&(u._lazy=!1),u._active||!u._paused&&u._time!==f&&0<=t&&(u._active=!0),0===c&&(2===u._initted&&0<t&&u._init(),u._startAt&&(0<=t?u._startAt.render(t,!0,i):n=n||"_dummyGS"),!u.vars.onStart||0===u._totalTime&&0!==d||(e||u._callback("onStart"))),s=u._firstPT;s;)s.f?s.t[s.p](s.c*u.ratio+s.s):s.t[s.p]=s.c*u.ratio+s.s,s=s._next;u._onUpdate&&(t<0&&u._startAt&&u._startTime&&u._startAt.render(t,!0,i),e||u._totalTime===c&&!n||u._callback("onUpdate")),u._cycle!==p&&(e||u._gc||u.vars.onRepeat&&u._callback("onRepeat")),!n||u._gc&&!i||(t<0&&u._startAt&&!u._onUpdate&&u._startTime&&u._startAt.render(t,!0,i),r&&(u._timeline.autoRemoveChildren&&u._enabled(!1,!1),u._active=!1),!e&&u.vars[n]&&u._callback(n),0===d&&u._rawPrevTime===x&&l!==x&&(u._rawPrevTime=0))}else c!==u._totalTime&&u._onUpdate&&(e||u._callback("onUpdate"))},v.to=function(t,e,i){return new v(t,e,i)},v.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new v(t,e,i)},v.fromTo=function(t,e,i,r){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,new v(t,e,r)},v.staggerTo=v.allTo=function(t,e,i,r,n,s,a){var o,l,h,u,_=[],f=y(i.stagger||r),c=i.cycle,p=(i.startAt||P).cycle;for(b(t)||("string"==typeof t&&(t=g.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 v(t[h],e,l)}return _},v.staggerFrom=v.allFrom=function(t,e,i,r,n,s,a){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,v.staggerTo(t,e,i,r,n,s,a)},v.staggerFromTo=v.allFromTo=function(t,e,i,r,n,s,a,o){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,v.staggerTo(t,e,r,n,s,a,o)},v.delayedCall=function(t,e,i,r,n){return new v(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:r,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,useFrames:n,overwrite:0})},v.set=function(t,e){return new v(t,0,e)},v.isTweening=function(t){return 0<g.getTweensOf(t,!0).length};var s=function(t,e){for(var i=[],r=0,n=t._first;n;)n instanceof g?i[r++]=n:(e&&(i[r++]=n),r=(i=i.concat(s(n,e))).length),n=n._next;return i},_=v.getAllTweens=function(t){return s(r._rootTimeline,t).concat(s(r._rootFramesTimeline,t))};v.killAll=function(t,e,i,r){null==e&&(e=!0),null==i&&(i=!0);for(var n,s,a=_(0!=r),o=a.length,l=e&&i&&r,h=0;h<o;h++)s=a[h],(l||s instanceof u||(n=s.target===s.vars.onComplete)&&i||e&&!n)&&(t?s.totalTime(s._reversed?0:s.totalDuration()):s._enabled(!1,!1))},v.killChildTweensOf=function(t,e){if(null!=t){var i,r,n,s,a,o=T.tweenLookup;if("string"==typeof t&&(t=g.selector(t)||t),w(t)&&(t=d(t)),b(t))for(s=t.length;-1<--s;)v.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 v.pauseAll=function(t,e,i){n(!0,t,e,i)},v.resumeAll=function(t,e,i){n(!1,t,e,i)},v.globalTimeScale=function(t){var e=r._rootTimeline,i=g.ticker.time;return arguments.length?(t=t||x,e._startTime=i-(i-e._startTime)*e._timeScale/t,e=r._rootFramesTimeline,i=g.ticker.frame,e._startTime=i-(i-e._startTime)*e._timeScale/t,e._timeScale=r._rootTimeline._timeScale=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},v},!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 c="object"==typeof t?t:{each:t},p=c.ease,d=c.from||0,m=c.base||0,g={},y=isNaN(d),v=c.axis,x={center:.5,end:1}[d]||0;return function(t,e,i){var r,n,s,a,o,l,h,u,_=(i||c).length,f=g[_];if(!f){if(!(u="auto"===c.grid?0:(c.grid||[1/0])[0])){for(l=-1/0;l<(l=i[u++].getBoundingClientRect().left)&&u<_;);u--}for(f=g[_]=[],r=y?Math.min(u,_)*x-.5:d%u,n=y?_*x/u-.5:d/u|0,h=1/(l=0),o=0;o<_;o++)s=o%u-r,a=n-(o/u|0),f[o]=a=v?Math.abs("y"===v?a:s):Math.sqrt(s*s+a*a),l<a&&(l=a),a<h&&(h=a);f.max=l-h,f.min=h,f.v=_=c.amount||c.each*(_<u?_-1:v?"y"===v?_/u:u:Math.max(u,_/u))||0,f.b=_<0?m-_:m}return _=(f[t]-f.min)/f.max,f.b+(p?p.getRatio(_):_)*f.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,n=e.pauseCallback=function(){},e=d.prototype=new f;return d.version="2.1.3",d.distribute=y,e.constructor=d,e.kill()._gc=e._forcingPlayhead=e._hasPause=!1,e.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)},e.from=function(t,e,i,r){return this.add((i.repeat&&a.TweenMax||p).from(t,e,h(0,i)),r)},e.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)},e.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){for(var e=[],i=t.length,r=0;r!==i;e.push(t[r++]));return e}(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)},e.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)},e.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)},e.call=function(t,e,i,r){return this.add(p.delayedCall(0,t,e,i),r)},e.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),t=a._timeline;for(null==e&&(e=!0),t._remove(a,!0),a._startTime=0,a._rawPrevTime=a._time=a._totalTime=t._time,n=t._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 t.add(a,0),i&&a.totalDuration(),a},e.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},e.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)},e._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},e.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))},e.insert=e.insertMultiple=function(t,e,i,r){return this.add(t,e||0,i,r)},e.appendMultiple=function(t,e,i,r){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),i,r)},e.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},e.addPause=function(t,e,i,r){r=p.delayedCall(0,n,i,r||this);return r.vars.onComplete=r.vars.onReverseComplete=e,r.data="isPause",this._hasPause=!0,this.add(r,t)},e.removeLabel=function(t){return delete this._labels[t],this},e.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:-1},e._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},e.seek=function(t,e){return this.totalTime("number"==typeof t?t:this._parseTimeOrLabel(t),!1!==e)},e.stop=function(){return this.paused(!0)},e.gotoAndPlay=function(t,e){return this.play(t,e)},e.gotoAndStop=function(t,e){return this.pause(t,e)},e.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)))}},e._hasPausedChild=function(){for(var t=this._first;t;){if(t._paused||t instanceof d&&t._hasPausedChild())return!0;t=t._next}return!1},e.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},e.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},e.recent=function(){return this._recent},e._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},e.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)},e._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},e.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)},e.invalidate=function(){for(var t=this._first;t;)t.invalidate(),t=t._next;return _.prototype.invalidate.call(this)},e._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)},e.totalTime=function(t,e,i){this._forcingPlayhead=!0;var r=_.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,r},e.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},e.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},e.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)},e.usesFrames=function(){for(var t=this._timeline;t._timeline;)t=t._timeline;return t===_._rootFramesTimeline},e.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 k=1e-8,r=o._internals,C=r.lazyTweens,R=r.lazyRender,l=_gsScope._gsDefine.globals,h=new t(null,null,1,0),t=i.prototype=new e;return t.constructor=i,t.kill()._gc=!1,i.version="2.1.3",t.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)},t.addCallback=function(t,e,i,r){return this.add(o.delayedCall(0,t,i,r),e)},t.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},t.removePause=function(t){return this.removeCallback(e._internals.pauseCallback,t)},t.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},t.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;i=this.tweenTo(e,i);return i.isFromTo=1,i.duration(Math.abs(i.vars.time-t)/this._timeScale||.001)},t.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=_._duration,d=_._totalTime,m=_._startTime,g=_._timeScale,y=_._rawPrevTime,v=_._paused,x=_._cycle;if(f!==_._time&&(t+=_._time-f),c-k<=t&&0<=t)_._locked||(_._totalTime=c,_._cycle=_._repeat),_._reversed||_._hasPausedChild()||(n=!0,a="onComplete",o=!!_._timeline.autoRemoveChildren,0===_._duration&&(t<=0&&-k<=t||y<0||y===k)&&y!==t&&_._first&&(o=!0,k<y&&(a="onReverseComplete"))),_._rawPrevTime=_._duration||!e||t||_._rawPrevTime===t?t:k,_._yoyo&&1&_._cycle?_._time=t=0:t=(_._time=p)+1e-4;else if(t<k)if(_._locked||(_._totalTime=_._cycle=0),_._time=0,-k<t&&(t=0),(0!==f||0===p&&y!==k&&(0<y||t<0&&0<=y)&&!_._locked)&&(a="onReverseComplete",n=_._reversed),t<0)_._active=!1,_._timeline.autoRemoveChildren&&_._reversed?(o=n=!0,a="onReverseComplete"):0<=y&&_._first&&(o=!0),_._rawPrevTime=t;else{if(_._rawPrevTime=p||!e||t||_._rawPrevTime===t?t:k,0===t&&n)for(r=_._first;r&&0===r._startTime;)r._duration||(n=!1),r=r._next;t=0,_._initted||(o=!0)}else 0===p&&y<0&&(o=!0),_._time=_._rawPrevTime=t,_._locked||(_._totalTime=t,0!==_._repeat&&(O=p+_._repeatDelay,_._cycle=_._totalTime/O>>0,_._cycle&&_._cycle===_._totalTime/O&&d<=t&&_._cycle--,_._time=_._totalTime-_._cycle*O,_._yoyo&&1&_._cycle&&(_._time=p-_._time),_._time>p?t=(_._time=p)+1e-4:_._time<0?_._time=t=0:t=_._time));if(_._hasPause&&!_._forcingPlayhead&&!e){if(f<(t=_._time)||_._repeat&&x!==_._cycle)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&&(u=_._startTime+(_._reversed?_._duration-l._startTime:l._startTime)/_._timeScale,l._startTime<p&&(_._time=_._rawPrevTime=t=l._startTime,_._totalTime=t+_._cycle*(_._totalDuration+_._repeatDelay)))}if(_._cycle!==x&&!_._locked){var T=_._yoyo&&0!=(1&x),w=T===(_._yoyo&&0!=(1&_._cycle)),b=_._totalTime,P=_._cycle,S=_._rawPrevTime,O=_._time;if(_._totalTime=x*p,_._cycle<x?T=!T:_._totalTime+=p,_._time=f,_._rawPrevTime=0===p?y-1e-4:y,_._cycle=x,_._locked=!0,f=T?0:p,_.render(f,e,0===p),e||_._gc||_.vars.onRepeat&&(_._cycle=P,_._locked=!1,_._callback("onRepeat")),f!==_._time)return;if(w&&(_._cycle=x,_._locked=!0,f=T?p+1e-4:-1e-4,_.render(f,!0,!1)),_._locked=!1,_._paused&&!v)return;_._time=O,_._totalTime=b,_._cycle=P,_._rawPrevTime=S}if(_._time!==f&&_._first||i||o||l){if(_._initted||(_._initted=!0),_._active||!_._paused&&_._totalTime!==d&&0<t&&(_._active=!0),0===d&&_.vars.onStart&&(0===_._totalTime&&_._totalDuration||e||_._callback("onStart")),f<=(h=_._time))for(r=_._first;r&&(s=r._next,h===_._time&&(!_._paused||v));)(r._active||r._startTime<=_._time&&!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||v));){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||(C.length&&R(),_._callback("onUpdate"))),a&&(_._locked||_._gc||m!==_._startTime&&g===_._timeScale||!(0===_._time||c>=_.totalDuration())||(n&&(C.length&&R(),_._timeline.autoRemoveChildren&&_._enabled(!1,!1),_._active=!1),!e&&_.vars[a]&&_._callback(a)))}else d!==_._totalTime&&_._onUpdate&&(e||_._callback("onUpdate"))},t.getActive=function(t,e,i){for(var r,n=[],s=this.getChildren(t||null==t,e||null==t,!!i),a=0,o=s.length,l=0;l<o;l++)(r=s[l]).isActive()&&(n[a++]=r);return n},t.getLabelAfter=function(t){t||0!==t&&(t=this._time);for(var e=this.getLabelsArray(),i=e.length,r=0;r<i;r++)if(e[r].time>t)return e[r].name;return null},t.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},t.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},t.invalidate=function(){return this._locked=!1,e.prototype.invalidate.call(this)},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._time/this.duration()||0},t.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()||0},t.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)},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.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},t.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.getLabelBefore(this._time+k)},i},!0),P=180/Math.PI,y=[],v=[],x=[],g={},e=_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!==_&&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?f(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 T(r,n,s,a):new T(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&&(e=c(this._beziers,this._timeRes),this._length=e.length,this._lengths=e.lengths,this._segments=e.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),_=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,_=this._segCount,f=this._func,c=this._target,p=t!==this._startRatio;if(this._timeRes){if(l=this._lengths,h=this._curSeg,u=t*this._length,b=this._li,u>this._l2&&b<_-1){for(o=_-1;b<o&&(this._l2=l[++b])<=u;);this._l1=l[b-1],this._li=b,this._curSeg=h=this._segments[b],this._s2=h[this._s1=this._si=0]}else if(u<this._l1&&0<b){for(;0<b&&(this._l1=l[--b])>=u;);0===b&&u<this._l1?this._l1=0:b++,this._l2=l[b],this._li=b,this._curSeg=h=this._segments[b],this._s1=h[(this._si=h.length-1)-1]||0,this._s2=h[this._si]}if(e=b,u-=this._l1,b=this._si,u>this._s2&&b<h.length-1){for(o=h.length-1;b<o&&(this._s2=h[++b])<=u;);this._s1=h[b-1],this._si=b}else if(u<this._s1&&0<b){for(;0<b&&(this._s1=h[--b])>=u;);0===b&&u<this._s1?this._s1=0:b++,this._s2=h[b],this._si=b}s=1===t?1:(b+(u-this._s1)/(this._s2-this._s1))*this._prec||0}else s=(t-(e=t<0?0:1<=t?_-1:_*t>>0)*(1/_))*_;for(i=1-s,b=this._props.length;-1<--b;)r=this._props[b],a=(s*s*(n=this._beziers[r][e]).da+3*i*(s*n.ca+i*n.ba))*s+n.a,this._mod[r]&&(a=this._mod[r](a,c)),f[r]?c[r](a):c[r]=a;if(this._autoRotate)for(var d,m,g,y,v,x,T,w=this._autoRotate,b=w.length;-1<--b;)r=w[b][2],x=w[b][3]||0,T=!0===w[b][4]?1:P,n=this._beziers[w[b][0]],d=this._beziers[w[b][1]],n&&d&&(n=n[e],d=d[e],m=n.a+(n.b-n.a)*s,m+=((y=n.b+(n.c-n.b)*s)-m)*s,y+=(n.c+(n.d-n.c)*s-y)*s,g=d.a+(d.b-d.a)*s,g+=((v=d.b+(d.c-d.b)*s)-g)*s,v+=(d.c+(d.d-d.c)*s-v)*s,a=p?Math.atan2(v-g,y-m)*T+x:this._initialRotations[b],this._mod[r]&&(a=this._mod[r](a,c)),f[r]?c[r](a):c[r]=a)}}),t=m.prototype,m.bezierThrough=f,m.cubicToQuadratic=w,m._autoCSS=!0,m.quadraticToCubic=function(t,e,i){return new T(t,(2*e+t)/3,(2*e+i)/3,i)},m._cssRegister=function(){var c,p,d,t=e.CSSPlugin;t&&(t=t._internals,c=t._parseToProxy,p=t._setPluginRatio,d=t.CSSPropTween,t._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}}))},t._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)},t._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,A){var f,w,P,_,M=function(){s.call(this,"css"),this._overwriteProps.length=0,this.setRatio=M.prototype.setRatio},h=_gsScope._gsDefine.globals,c={},t=M.prototype=new s("css");(t.constructor=M).version="2.1.3",M.API=2,M.defaultTransformPerspective=0,M.defaultSkewType="compensated",M.defaultSmoothOrigin=!0,t="px",M.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){return(e=tt.createElementNS?tt.createElementNS(e||LS_nsProtocol+"www.w3.org/1999/xhtml",t):tt.createElement(t)).style?e:tt.createElement(t)}function l(t){return j.test("string"==typeof t?t:(t.currentStyle||t.style).filter||"")?parseFloat(RegExp.$1)/100:1}function p(t){_gsScope.console&&console.log(t)}function b(t,e){var i,r,n=(e=e||et).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?(st="-"+(at=3===r?"ms":i[r]).toLowerCase()+"-",at+t):null}function d(t){return ot.getComputedStyle(t)}function m(t,e){var i,r,n={};if(e=e||d(t))if(i=e.length)for(;-1<--i;)-1!==(r=e[i]).indexOf("-transform")&&Ft!==r||(n[r.replace(U,a)]=e.getPropertyValue(r));else for(i in e)-1!==i.indexOf("Transform")&&Lt!==i||(n[i]=e[i]);else if(e=t.currentStyle||t.style)for(i in e)"string"==typeof i&&void 0===n[i]&&(n[i.replace(U,a)]=e[i]);return nt||(n.opacity=l(t)),t=qt(t,e,!1),n.rotation=t.rotation,n.skewX=t.skewX,n.scaleX=t.scaleX,n.scaleY=t.scaleY,n.x=t.x,n.y=t.y,Et&&(n.z=t.z,n.rotationX=t.rotationX,n.rotationY=t.rotationY,n.scaleZ=t.scaleZ),n.filters&&delete n.filters,n}function g(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(I,"")?s:0:ut(t,a),void 0!==h[a]&&(o=new xt(h,a,h[a],o)));if(r)for(a in r)"className"!==a&&(l[a]=r[a]);return{difs:l,firstMPT:o}}function O(t,e){return"function"==typeof t&&(t=t(D,R)),"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2)):parseFloat(t)-parseFloat(e)||0}function S(t,e){"function"==typeof t&&(t=t(D,R));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 k(t,e,i,r){var n,s,a;return"function"==typeof t&&(t=t(D,R)),(a=null==t?e:"number"==typeof t?t:(n=360,s=t.split("_"),a=((a="="===t.charAt(1))?parseInt(t.charAt(0)+"1",10)*parseFloat(s[0].substr(2)):parseFloat(s[0]))*(-1===t.indexOf("rad")?1:K)-(a?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<a&&(a=0),a}function u(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 i(t,e){var i,r,n,s=t.match(mt)||[],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=dt(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 C,y,v,L,x,T,R,D,F=/(?:\-|\.|\b)(\d|\.|e\-)+/g,z=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,E=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,n=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b),?/gi,I=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,N=/(?:\d|\-|\+|=|#|\.)*/g,j=/opacity *= *([^)]*)/i,X=/opacity:([^;]*)/i,B=/alpha\(opacity *=.+?\)/i,Y=/^(rgb|hsl)/,G=/([A-Z])/g,U=/-([a-z])/gi,V=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,q=/(?:Left|Right|Width)/i,Q=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,W=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,H=/,(?=[^\)]*(?:\(|$))/gi,Z=/[\s,\(]/i,$=Math.PI/180,K=180/Math.PI,J={},e={style:{}},tt=_gsScope.document||{createElement:function(){return e}},et=o("div"),it=o("img"),r=M._internals={_specialProps:c},rt=(_gsScope.navigator||{}).userAgent||"",nt=(Mt=rt.indexOf("Android"),At=o("a"),v=-1!==rt.indexOf("Safari")&&-1===rt.indexOf("Chrome")&&(-1===Mt||3<parseFloat(rt.substr(Mt+8,2))),x=v&&parseFloat(rt.substr(rt.indexOf("Version/")+8,2))<6,L=-1!==rt.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(rt)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(rt))&&(T=parseFloat(RegExp.$1)),!!At&&(At.style.cssText="top:1px;opacity:.55;",/^0.55/.test(At.style.opacity))),st="",at="",ot="undefined"!=typeof window?window:tt.defaultView||{getComputedStyle:function(){}},lt=M.getStyle=function(t,e,i,r,n){var s;return nt||"opacity"!==e?(!r&&t.style[e]?s=t.style[e]:(i=i||d(t))?s=i[e]||i.getPropertyValue(e)||i.getPropertyValue(e.replace(G,"-$1").toLowerCase()):t.currentStyle&&(s=t.currentStyle[e]),null==n||s&&"none"!==s&&"auto"!==s&&"auto auto"!==s?s:n):l(t)},ht=r.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=q.test(e),h=t,u=et.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:"+lt(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||tt.body,-1!==lt(h,"display").indexOf("flex")&&(u.position="absolute"),a=h._gsCache,o=A.ticker.frame,a&&l&&a.time===o)return a.width*i/100;u[l?"width":"height"]=i+r}h.appendChild(et),s=parseFloat(et[l?"offsetWidth":"offsetHeight"]),h.removeChild(et),l&&"%"===r&&!1!==M.cacheWidths&&((a=h._gsCache=h._gsCache||{}).time=o,a.width=s/i*100),0!==s||n||(s=ht(t,e,i,r,!0))}else a=d(t).lineHeight,t.style.lineHeight=i,s=parseFloat(d(t).lineHeight),t.style.lineHeight=a;return f&&(s/=100),_?-s:s},ut=r.calculateOffset=function(t,e,i){if("absolute"!==lt(t,"position",i))return 0;var r="left"===e?"Left":"Top",i=lt(t,"margin"+r,i);return t["offset"+r]-(ht(t,e,parseFloat(i),i.replace(N,""))||0)},_t={width:["Left","Right"],height:["Top","Bottom"]},ft=["marginLeft","marginRight","marginTop","marginBottom"],ct=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(ct(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(I,"")),e.oy=parseFloat(s.replace(I,"")),e.v=t),e||t},pt={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]},dt=M.parseColor=function(t,e){var i,r,n,s,a,o,l,h;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)),pt[t])i=pt[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=h=t.match(F),e){if(-1!==t.indexOf("="))return t.match(z)}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]=u(a+1/3,r,n),i[1]=u(a,r,n),i[2]=u(a-1/3,r,n);else i=t.match(F)||pt.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=pt.black;return e&&!h&&(r=i[0]/255,n=i[1]/255,s=i[2]/255,l=((t=Math.max(r,n,s))+(e=Math.min(r,n,s)))/2,t===e?a=o=0:(h=t-e,o=.5<l?h/(2-t-e):h/(t+e),a=t===r?(n-s)/h+(n<s?6:0):t===n?(s-r)/h+2:(r-n)/h+4,a*=60),i[0]=a+.5|0,i[1]=100*o+.5|0,i[2]=100*l+.5|0),i},mt="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(t in pt)mt+="|"+t+"\\b";mt=new RegExp(mt+")","gi"),M.colorStringFilter=function(t){var e=t[0]+" "+t[1];mt.test(e)&&(e=-1!==e.indexOf("hsl(")||-1!==e.indexOf("hsla("),t[0]=i(t[0],e),t[1]=i(t[1],e)),mt.lastIndex=0},A.defaultStringFilter||(A.defaultStringFilter=M.colorStringFilter);function gt(t,e,s,a){if(null==t)return function(t){return t};var o,l=e?(t.match(mt)||[""])[0]:"",h=t.split(l).join("").match(E)||[],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(F,""):"";return c?o=e?function(t){var e,i,r,n;if("number"==typeof t)t+=p;else if(a&&H.test(t)){for(n=t.replace(H,"|").split("|"),r=0;r<n.length;r++)n[r]=o(n[r]);return n.join(",")}if(e=(t.match(mt)||[l])[0],r=(i=t.split(e).join("").match(E)||[]).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&&H.test(t)){for(i=t.replace(H,"|").split("|"),r=0;r<i.length;r++)i[r]=o(i[r]);return i.join(",")}if(r=(e=t.match(","==f?E: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 yt(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 vt(t,e,i,r,n,s){return(s=new Tt(t,e,i,r-i,n,-1,s)).b=i,s.e=s.xs0=r,s}var xt=(r._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)}),Tt=(r._parseToProxy=function(t,e,i,r,n,s){var a,o,l,h,u=r,_={},f={},c=i._transform,p=J;for(i._transform=null,J=e,r=n=i.parse(t,e,r,n),J=p,s&&(i._transform=c,u&&(u._prev=null,u._prev&&(u._prev._next=null)));r&&r!==u;){if(r.type<=1&&(f[o=r.p]=r.s+r.c,_[o]=r.s,s||(h=new xt(r,"s",o,h,r.r),r.c=0),1===r.type))for(a=r.l;0<--a;)l="xn"+a,f[o=r.p+"_"+l]=r.data[l],_[o]=r[l],s||(h=new xt(r,l,o,h,r.rxp[l]));r=r._next}return{proxy:_,end:f,firstMPT:h,pt:n}},r.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 Tt||_.push(this.n),this.r=o&&("function"==typeof o?o:Math.round),this.type=s||0,l&&(this.pr=l,f=!0),this.b=void 0===h?i:h,this.e=void 0===u?i+r:u,n&&((this._next=n)._prev=this)}),wt=M.parseComplex=function(t,e,i,r,n,s,a,o,l,h){i=i||s||"","function"==typeof r&&(r=r(D,R)),a=new Tt(t,e,0,0,a,h?2:1,null,!1,o,i,r),r+="",n&&mt.test(r+i)&&(r=[i,r],M.colorStringFilter(r),i=r[0],r=r[1]);var u,_,f,c,p,d,m,g,y,v,x,T,w=i.split(", ").join(",").split(" "),b=r.split(", ").join(",").split(" "),P=w.length,S=!1!==C;for(-1===r.indexOf(",")&&-1===i.indexOf(",")||(b=-1!==(r+i).indexOf("rgb")||-1!==(r+i).indexOf("hsl")?(w=w.join(" ").replace(H,", ").split(" "),b.join(" ").replace(H,", ").split(" ")):(w=w.join(" ").split(",").join(", ").split(" "),b.join(" ").split(",").join(", ").split(" ")),P=w.length),P!==b.length&&(P=(w=(s||"").split(" ")).length),a.plugin=l,a.setRatio=h,u=mt.lastIndex=0;u<P;u++)if(c=w[u],p=b[u]+"",(g=parseFloat(c))||0===g)a.appendXtra("",g,O(p,g),p.replace(z,""),S&&-1!==p.indexOf("px")&&Math.round,!0);else if(n&&mt.test(c))x=")"+((x=p.indexOf(")")+1)?p.substr(x):""),T=-1!==p.indexOf("hsl")&&nt,y=p,c=dt(c,T),p=dt(p,T),(g=6<c.length+p.length)&&!nt&&0===p[3]?(a["xs"+a.l]+=a.l?" transparent":"transparent",a.e=a.e.split(b[u]).join("transparent")):(nt||(g=!1),T?a.appendXtra(y.substr(0,y.indexOf("hsl"))+(g?"hsla(":"hsl("),c[0],O(p[0],c[0]),",",!1,!0).appendXtra("",c[1],O(p[1],c[1]),"%,",!1).appendXtra("",c[2],O(p[2],c[2]),g?"%,":"%"+x,!1):a.appendXtra(y.substr(0,y.indexOf("rgb"))+(g?"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],g?",":x,Math.round),g&&(c=c.length<4?1:c[3],a.appendXtra("",c,(p.length<4?1:p[3])-c,x,!1))),mt.lastIndex=0;else if(d=c.match(F)){if(!(m=p.match(z))||m.length!==d.length)return a;for(_=f=0;_<d.length;_++)v=d[_],y=c.indexOf(v,f),a.appendXtra(c.substr(f,y-f),Number(v),O(m[_],v),"",S&&"px"===c.substr(y+v.length,2)&&Math.round,0===_),f=y+v.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(x=a.xs0+a.data.s,u=1;u<a.l;u++)x+=a["xs"+u]+a.data["xn"+u];a.e=x+a["xs"+u]}return a.l||(a.type=-1,a.xs0=a.e),a.xfirst||a},bt=9;for((t=Tt.prototype).l=t.pr=0;0<--bt;)t["xn"+bt]=0,t["xs"+bt]="";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 Tt(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 Pt(t,e){e=e||{},this.p=e.prefix&&b(t)||t,(c[t]=c[this.p]=this).format=e.formatter||gt(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 St=r._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 Pt(n[r],e)},Ot=r._registerPluginProp=function(t){var l;c[t]||(l=t.charAt(0).toUpperCase()+t.substr(1)+"Plugin",St(t,{parser:function(t,e,i,r,n,s,a){var o=h.com.greensock.plugins[l];return o?(o._cssRegister(),c[i].parse(t,e,i,r,n,s,a)):(p("Error: "+l+" js file not loaded."),n)}}))};(t=Pt.prototype).parseComplex=function(t,e,i,r,n,s){var a,o,l,h,u,_,f=this.keyword;if(this.multi&&(H.test(i)||H.test(e)?(o=e.replace(H,"|").split("|"),l=i.replace(H,"|").split("|")):f&&(o=[e],l=[i])),l){for(h=(l.length>o.length?l: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 wt(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(lt(t,this.p,P,!1,this.dflt)),this.format(e),n,s)},M.registerSpecialProp=function(t,o,l){St(t,{parser:function(t,e,i,r,n,s,a){n=new Tt(t,i,0,0,n,2,i,!1,l);return n.plugin=s,n.setRatio=o(t,e,r._tween,i),n},priority:l})},M.useSVGTransformAttr=!0;function kt(t,e,i,r,n,s){var a,o,l,h,u,_,f,c,p,d,m,g,y=t._gsTransform,v=Vt(t,!0);y&&(m=y.xOrigin,g=y.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=ct(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&&v!==Ut&&(_=v[0],f=v[1],c=v[2],p=v[3],d=v[4],e=v[5],(r=_*p-f*c)&&(o=h*(p/r)+u*(-c/r)+(c*e-p*d)/r,l=h*(-f/r)+u*(_/r)-(_*e-f*d)/r,h=i.xOrigin=a[0]=o,u=i.yOrigin=a[1]=l)),y&&(s&&(i.xOffset=y.xOffset,i.yOffset=y.yOffset,y=i),n||!1!==n&&!1!==M.defaultSmoothOrigin?(o=h-m,l=u-g,y.xOffset+=o*v[0]+l*v[2]-o,y.yOffset+=o*v[1]+l*v[3]-l):y.xOffset=y.yOffset=0),s||t.setAttribute("data-svg-origin",a.join(" "))}function Ct(t){var e,i,r=this.data,n=(d=-r.rotation*$)+r.skewX*$,s=1e5,a=(Math.cos(d)*r.scaleX*s|0)/s,o=(Math.sin(d)*r.scaleX*s|0)/s,l=(Math.sin(n)*-r.scaleY*s|0)/s,h=(Math.cos(n)*r.scaleY*s|0)/s,u=this.t.style,_=this.t.currentStyle;if(_){i=o,o=-l,l=-i,e=_.filter,u.filter="";var f=this.t.offsetWidth,c=this.t.offsetHeight,p="absolute"!==_.position,d="progid:DXImageTransform.Microsoft.Matrix(M11="+a+", M12="+o+", M21="+l+", M22="+h,n=r.x+f*r.xPercent/100,s=r.y+c*r.yPercent/100;if(null!=r.ox&&(n+=(v=(r.oxp?f*r.ox*.01:r.ox)-f/2)-(v*a+(x=(r.oyp?c*r.oy*.01:r.oy)-c/2)*o),s+=x-(v*l+x*h)),p?d+=", Dx="+((v=f/2)-(v*a+(x=c/2)*o)+n)+", Dy="+(x-(v*l+x*h)+s)+")":d+=", sizingMethod='auto expand')",-1!==e.indexOf("DXImageTransform.Microsoft.Matrix(")?u.filter=e.replace(W,d):u.filter=d+" "+e,0!==t&&1!==t||1!=a||0!=o||0!=l||1!=h||(p&&-1===d.indexOf("Dx=0, Dy=0")||j.test(e)&&100!==parseFloat(RegExp.$1)||-1===e.indexOf(e.indexOf("Alpha"))&&u.removeAttribute("filter")),!p){var m,g,y=T<8?1:-1,v=r.ieOffsetX||0,x=r.ieOffsetY||0;for(r.ieOffsetX=Math.round((f-((a<0?-a:a)*f+(o<0?-o:o)*c))/2+n),r.ieOffsetY=Math.round((c-((h<0?-h:h)*c+(l<0?-l:l)*f))/2+s),bt=0;bt<4;bt++)g=(i=-1!==(g=_[m=ft[bt]]).indexOf("px")?parseFloat(g):ht(this.t,m,parseFloat(g),g.replace(N,""))||0)!==r[m]?bt<2?-r.ieOffsetX:-r.ieOffsetY:bt<2?v-r.ieOffsetX:x-r.ieOffsetY,u[m]=(r[m]=Math.round(i-g*(0===bt||2===bt?1:y)))+"px"}}}var Rt,At,Mt,Dt="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),Lt=b("transform"),Ft=st+"transform",zt=b("transformOrigin"),Et=null!==b("perspective"),It=r.Transform=function(){this.perspective=parseFloat(M.defaultTransformPerspective)||0,this.force3D=!(!1===M.defaultForce3D||!Et)&&(M.defaultForce3D||"auto")},Nt=_gsScope.SVGElement,jt=function(t,e,i){var r,n=tt.createElementNS(LS_nsProtocol+"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},Xt=tt.documentElement||{},Bt=(Mt=T||/Android/i.test(rt)&&!_gsScope.chrome,tt.createElementNS&&Xt.appendChild&&!Mt&&(At=jt("svg",Xt),jt=(rt=jt("rect",At,{width:100,height:50,x:100})).getBoundingClientRect().width,rt.style[zt]="50% 50%",rt.style[Lt]="scaleX(0.5)",Mt=jt===rt.getBoundingClientRect().width&&!(L&&Et),Xt.removeChild(At)),Mt),Yt=function(t){var e,i=o("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||LS_nsProtocol+"www.w3.org/2000/svg"),r=this.parentNode,n=this.nextSibling,s=this.style.cssText;if(Xt.appendChild(i),i.appendChild(this),this.style.display="block",t)try{e=this.getBBox(),this._originalGetBBox=this.getBBox,this.getBBox=Yt}catch(t){}else this._originalGetBBox&&(e=this._originalGetBBox());return n?r.insertBefore(this,n):r.appendChild(this),Xt.removeChild(i),this.style.cssText=s,e},Gt=function(t){return!(!Nt||!t.getCTM||t.parentNode&&!t.ownerSVGElement||!function(e){try{return e.getBBox()}catch(t){return Yt.call(e,!0)}}(t))},Ut=[1,0,0,1,0,0],Vt=function(t,e){var i,r,n,s,a,o,l,h=t._gsTransform||new It,u=t.style;if(Lt?r=lt(t,Ft,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,Lt&&i&&!t.offsetParent&&t!==Xt&&(s=u.display,u.display="block",(l=t.parentNode)&&t.offsetParent||(a=1,o=t.nextSibling,Xt.appendChild(t)),i=!(r=lt(t,Ft,null,!0))||"none"===r||"matrix(1, 0, 0, 1, 0, 0)"===r,s?u.display=s:Zt(u,"display"),a&&(o?l.insertBefore(t,o):l?l.appendChild(t):Xt.removeChild(t))),(h.svg||t.getCTM&&Gt(t))&&(i&&-1!==(u[Lt]+"").indexOf("matrix")&&(r=u[Lt],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 Ut;for(n=(r||"").match(F)||[],bt=n.length;-1<--bt;)s=Number(n[bt]),n[bt]=(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},qt=r.getTransform=function(t,e,i,r){if(t._gsTransform&&i&&!r)return t._gsTransform;var n,s,a,o,l,h,u,_,f,c,p,d,m,g,y,v,x,T,w,b,P,S,O=i&&t._gsTransform||new It,k=O.scaleX<0,C=Et&&(parseFloat(lt(t,zt,e,!1,"0 0 0").split(" ")[2])||O.zOrigin)||0,R=parseFloat(M.defaultTransformPerspective)||0;if(O.svg=!(!t.getCTM||!Gt(t)),O.svg&&(kt(t,lt(t,zt,e,!1,"50% 50%")+"",O,t.getAttribute("data-svg-origin")),Rt=M.useSVGTransformAttr||Bt),s=Vt(t),s!==Ut)for(n in 16===s.length?(b=s[0],S=s[1],_=s[2],f=s[3],P=s[4],c=s[5],p=s[6],d=s[7],m=s[8],g=s[9],y=s[10],v=s[12],T=s[13],w=s[14],x=s[11],e=Math.atan2(p,y),O.zOrigin&&(v=m*(w=-O.zOrigin)-s[12],T=g*w-s[13],w=y*w+O.zOrigin-s[14]),O.rotationX=e*K,e&&(a=P*(h=Math.cos(-e))+m*(u=Math.sin(-e)),o=c*h+g*u,l=p*h+y*u,m=P*-u+m*h,g=c*-u+g*h,y=p*-u+y*h,x=d*-u+x*h,P=a,c=o,p=l),e=Math.atan2(-_,y),O.rotationY=e*K,e&&(o=S*(h=Math.cos(-e))-g*(u=Math.sin(-e)),l=_*h-y*u,g=S*u+g*h,y=_*u+y*h,x=f*u+x*h,b=a=b*h-m*u,S=o,_=l),e=Math.atan2(S,b),O.rotation=e*K,e&&(a=b*(h=Math.cos(e))+S*(u=Math.sin(e)),o=P*h+c*u,l=m*h+g*u,S=S*h-b*u,c=c*h-P*u,g=g*h-m*u,b=a,P=o,m=l),O.rotationX&&359.9<Math.abs(O.rotationX)+Math.abs(O.rotation)&&(O.rotationX=O.rotation=0,O.rotationY=180-O.rotationY),e=Math.atan2(P,c),O.scaleX=(1e5*Math.sqrt(b*b+S*S+_*_)+.5|0)/1e5,O.scaleY=(1e5*Math.sqrt(c*c+p*p)+.5|0)/1e5,O.scaleZ=(1e5*Math.sqrt(m*m+g*g+y*y)+.5|0)/1e5,b/=O.scaleX,P/=O.scaleY,S/=O.scaleX,c/=O.scaleY,2e-5<Math.abs(e)?(O.skewX=e*K,P=0,"simple"!==O.skewType&&(O.scaleY*=1/Math.cos(e))):O.skewX=0,O.perspective=x?1/(x<0?-x:x):0,O.x=v,O.y=T,O.z=w,O.svg&&(O.x-=O.xOrigin-(O.xOrigin*b-O.yOrigin*P),O.y-=O.yOrigin-(O.yOrigin*S-O.xOrigin*c))):Et&&!r&&s.length&&O.x===s[4]&&O.y===s[5]&&(O.rotationX||O.rotationY)||(w=(T=6<=s.length)?s[0]:1,b=s[1]||0,P=s[2]||0,S=T?s[3]:1,O.x=s[4]||0,O.y=s[5]||0,c=Math.sqrt(w*w+b*b),r=Math.sqrt(S*S+P*P),T=w||b?Math.atan2(b,w)*K:O.rotation||0,s=P||S?Math.atan2(P,S)*K+T:O.skewX||0,O.scaleX=c,O.scaleY=r,O.rotation=T,O.skewX=s,Et&&(O.rotationX=O.rotationY=O.z=0,O.perspective=R,O.scaleZ=1),O.svg&&(O.x-=O.xOrigin-(O.xOrigin*w+O.yOrigin*P),O.y-=O.yOrigin-(O.xOrigin*b+O.yOrigin*S))),90<Math.abs(O.skewX)&&Math.abs(O.skewX)<270&&(k?(O.scaleX*=-1,O.skewX+=O.rotation<=0?180:-180,O.rotation+=O.rotation<=0?180:-180):(O.scaleY*=-1,O.skewX+=O.skewX<=0?180:-180)),O.zOrigin=C,O)O[n]<2e-5&&-2e-5<O[n]&&(O[n]=0);return i&&((t._gsTransform=O).svg&&(Rt&&t.style[Lt]?A.delayedCall(.001,function(){Zt(t.style,Lt)}):!Rt&&t.getAttribute("transform")&&A.delayedCall(.001,function(){t.removeAttribute("transform")}))),O},Qt=r.set3DTransformRatio=r.setTransformRatio=function(t){var e,i,r,n,s,a,o,l,h,u,_,f,c,p,d,m,g=this.data,y=this.t.style,v=g.rotation,x=g.rotationX,T=g.rotationY,w=g.scaleX,b=g.scaleY,P=g.scaleZ,S=g.x,O=g.y,k=g.z,C=g.svg,R=g.perspective,A=g.force3D,M=g.skewY,D=g.skewX;if(M&&(D+=M,v+=M),!((1!==t&&0!==t||"auto"!==A||this.tween._totalTime!==this.tween._totalDuration&&this.tween._totalTime)&&A||k||R||T||x||1!==P)||Rt&&C||!Et)v||D||C?(v*=$,d=D*$,m=1e5,i=Math.cos(v)*w,n=Math.sin(v)*w,r=Math.sin(v-d)*-b,s=Math.cos(v-d)*b,d&&"simple"===g.skewType&&(e=Math.tan(d-M*$),r*=e=Math.sqrt(1+e*e),s*=e,M&&(e=Math.tan(M*$),i*=e=Math.sqrt(1+e*e),n*=e)),C&&(S+=g.xOrigin-(g.xOrigin*i+g.yOrigin*r)+g.xOffset,O+=g.yOrigin-(g.xOrigin*n+g.yOrigin*s)+g.yOffset,Rt&&(g.xPercent||g.yPercent)&&(_=this.t.getBBox(),S+=.01*g.xPercent*_.width,O+=.01*g.yPercent*_.height),S<(_=1e-6)&&-_<S&&(S=0),O<_&&-_<O&&(O=0)),p=(i*m|0)/m+","+(n*m|0)/m+","+(r*m|0)/m+","+(s*m|0)/m+","+S+","+O+")",C&&Rt?this.t.setAttribute("transform","matrix("+p):y[Lt]=(g.xPercent||g.yPercent?"translate("+g.xPercent+"%,"+g.yPercent+"%) matrix(":"matrix(")+p):y[Lt]=(g.xPercent||g.yPercent?"translate("+g.xPercent+"%,"+g.yPercent+"%) matrix(":"matrix(")+w+",0,0,"+b+","+S+","+O+")";else{if(L&&(w<(_=1e-4)&&-_<w&&(w=P=2e-5),b<_&&-_<b&&(b=P=2e-5),!R||g.z||g.rotationX||g.rotationY||(R=0)),v||D)v*=$,f=i=Math.cos(v),c=n=Math.sin(v),D&&(v-=D*$,f=Math.cos(v),c=Math.sin(v),"simple"===g.skewType&&(e=Math.tan((D-M)*$),f*=e=Math.sqrt(1+e*e),c*=e,g.skewY&&(e=Math.tan(M*$),i*=e=Math.sqrt(1+e*e),n*=e))),r=-c,s=f;else{if(!(T||x||1!==P||R||C))return void(y[Lt]=(g.xPercent||g.yPercent?"translate("+g.xPercent+"%,"+g.yPercent+"%) translate3d(":"translate3d(")+S+"px,"+O+"px,"+k+"px)"+(1!==w||1!==b?" scale("+w+","+b+")":""));i=s=1,r=n=0}l=1,A=t=a=o=h=u=0,d=R?-1/R:0,m=g.zOrigin,_=1e-6,D=",",M="0",(v=T*$)&&(f=Math.cos(v),h=d*(a=-(c=Math.sin(v))),A=i*c,t=n*c,d*=l=f,i*=f,n*=f),(v=x*$)&&(e=r*(f=Math.cos(v))+A*(c=Math.sin(v)),v=s*f+t*c,o=l*c,u=d*c,A=r*-c+A*f,t=s*-c+t*f,l*=f,d*=f,r=e,s=v),1!==P&&(A*=P,t*=P,l*=P,d*=P),1!==b&&(r*=b,s*=b,o*=b,u*=b),1!==w&&(i*=w,n*=w,a*=w,h*=w),(m||C)&&(m&&(S+=A*-m,O+=t*-m,k+=l*-m+m),C&&(S+=g.xOrigin-(g.xOrigin*i+g.yOrigin*r)+g.xOffset,O+=g.yOrigin-(g.xOrigin*n+g.yOrigin*s)+g.yOffset),S<_&&-_<S&&(S=M),O<_&&-_<O&&(O=M),k<_&&-_<k&&(k=0)),p=g.xPercent||g.yPercent?"translate("+g.xPercent+"%,"+g.yPercent+"%) matrix3d(":"matrix3d(",p+=(i<_&&-_<i?M:i)+D+(n<_&&-_<n?M:n)+D+(a<_&&-_<a?M:a),p+=D+(h<_&&-_<h?M:h)+D+(r<_&&-_<r?M:r)+D+(s<_&&-_<s?M:s),x||T||1!==P?(p+=D+(o<_&&-_<o?M:o)+D+(u<_&&-_<u?M:u)+D+(A<_&&-_<A?M:A),p+=D+(t<_&&-_<t?M:t)+D+(l<_&&-_<l?M:l)+D+(d<_&&-_<d?M:d)+D):p+=",0,0,0,0,1,0,",p+=S+D+O+D+k+D+(R?1+-k/R:1)+")",y[Lt]=p}};(t=It.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,St("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(D,t));var l,h,u,_,f,c,p,d,m=t._gsTransform,g=t.style,y=Dt.length,v=a,x={},T="transformOrigin",w=qt(t,P,!0,v.parseTransform),b=v.transform&&("function"==typeof v.transform?v.transform(D,R):v.transform);if(w.skewType=v.skewType||w.skewType||M.defaultSkewType,r._transform=w,"rotationZ"in v&&(v.rotation=v.rotationZ),b&&"string"==typeof b&&Lt)(h=et.style)[Lt]=b,h.display="block",h.position="absolute",-1!==b.indexOf("%")&&(h.width=lt(t,"width"),h.height=lt(t,"height")),tt.body.appendChild(et),l=qt(et,null,!1),"simple"===w.skewType&&(l.scaleY*=Math.cos(l.skewX*$)),w.svg&&(f=w.xOrigin,c=w.yOrigin,l.x-=w.xOffset,l.y-=w.yOffset,(v.transformOrigin||v.svgOrigin)&&(b={},kt(t,ct(v.transformOrigin),b,v.svgOrigin,v.smoothOrigin,!0),f=b.xOrigin,c=b.yOrigin,l.x-=b.xOffset-w.xOffset,l.y-=b.yOffset-w.yOffset),(f||c)&&(p=Vt(et,!0),l.x-=f-(f*p[0]+c*p[2]),l.y-=c-(f*p[1]+c*p[3]))),tt.body.removeChild(et),l.perspective||(l.perspective=w.perspective),null!=v.xPercent&&(l.xPercent=S(v.xPercent,w.xPercent)),null!=v.yPercent&&(l.yPercent=S(v.yPercent,w.yPercent));else if("object"==typeof v){if(l={scaleX:S(null!=v.scaleX?v.scaleX:v.scale,w.scaleX),scaleY:S(null!=v.scaleY?v.scaleY:v.scale,w.scaleY),scaleZ:S(v.scaleZ,w.scaleZ),x:S(v.x,w.x),y:S(v.y,w.y),z:S(v.z,w.z),xPercent:S(v.xPercent,w.xPercent),yPercent:S(v.yPercent,w.yPercent),perspective:S(v.transformPerspective,w.perspective)},null!=(_=v.directionalRotation))if("object"==typeof _)for(h in _)v[h]=_[h];else v.rotation=_;"string"==typeof v.x&&-1!==v.x.indexOf("%")&&(l.x=0,l.xPercent=S(v.x,w.xPercent)),"string"==typeof v.y&&-1!==v.y.indexOf("%")&&(l.y=0,l.yPercent=S(v.y,w.yPercent)),l.rotation=k("rotation"in v?v.rotation:"shortRotation"in v?v.shortRotation+"_short":w.rotation,w.rotation,"rotation",x),Et&&(l.rotationX=k("rotationX"in v?v.rotationX:"shortRotationX"in v?v.shortRotationX+"_short":w.rotationX||0,w.rotationX,"rotationX",x),l.rotationY=k("rotationY"in v?v.rotationY:"shortRotationY"in v?v.shortRotationY+"_short":w.rotationY||0,w.rotationY,"rotationY",x)),l.skewX=k(v.skewX,w.skewX),l.skewY=k(v.skewY,w.skewY)}for(Et&&null!=v.force3D&&(w.force3D=v.force3D,u=!0),(p=w.force3D||w.z||w.rotationX||w.rotationY||l.z||l.rotationX||l.rotationY||l.perspective)||null==v.scale||(l.scaleZ=1);-1<--y;)(1e-6<(b=l[d=Dt[y]]-w[d])||b<-1e-6||null!=v[d]||null!=J[d])&&(u=!0,n=new Tt(w,d,w[d],b,n),d in x&&(n.e=x[d]),n.xs0=0,n.plugin=s,r._overwriteProps.push(n.n));return b="function"==typeof v.transformOrigin?v.transformOrigin(D,R):v.transformOrigin,w.svg&&(b||v.svgOrigin)&&(f=w.xOffset,c=w.yOffset,kt(t,ct(b),l,v.svgOrigin,v.smoothOrigin),n=vt(w,"xOrigin",(m?w:l).xOrigin,l.xOrigin,n,T),n=vt(w,"yOrigin",(m?w:l).yOrigin,l.yOrigin,n,T),f===w.xOffset&&c===w.yOffset||(n=vt(w,"xOffset",m?f:w.xOffset,w.xOffset,n,T),n=vt(w,"yOffset",m?c:w.yOffset,w.yOffset,n,T)),b="0px 0px"),(b||Et&&p&&w.zOrigin)&&(Lt?(u=!0,d=zt,b||(b=(b=(lt(t,d,P,!1,"50% 50%")+"").split(" "))[0]+" "+b[1]+" "+w.zOrigin+"px"),b+="",(n=new Tt(g,d,0,0,n,-1,T)).b=g[d],n.plugin=s,Et?(h=w.zOrigin,b=b.split(" "),w.zOrigin=(2<b.length?parseFloat(b[2]):h)||0,n.xs0=n.e=b[0]+" "+(b[1]||"50%")+" 0px",(n=new Tt(w,"zOrigin",0,0,n,-1,n.n)).b=h,n.xs0=n.e=w.zOrigin):n.xs0=n.e=b):ct(b+"",w)),u&&(r._transformType=w.svg&&Rt||!p&&3!==this._transformType?2:3),o&&(a.scale=o),n},allowFunc:!0,prefix:!0}),St("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),St("clipPath",{defaultValue:"inset(0%)",prefix:!0,multi:!0,formatter:gt("inset(0% 0% 0% 0%)",!1,!0)}),St("borderRadius",{defaultValue:"0px",parser:function(t,e,i,r,n,s){e=this.format(e);for(var a,o,l,h,u,_,f,c,p,d,m=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],g=t.style,y=parseFloat(t.offsetWidth),v=parseFloat(t.offsetHeight),x=e.split(" "),T=0;T<m.length;T++)this.p.indexOf("border")&&(m[T]=b(m[T])),-1!==(l=o=lt(t,m[T],P,!1,"0px")).indexOf(" ")&&(l=(o=l.split(" "))[0],o=o[1]),h=a=x[T],p=parseFloat(l),d=l.substr((p+"").length),""===(_=(f="="===h.charAt(1))?(u=parseInt(h.charAt(0)+"1",10),h=h.substr(2),u*=parseFloat(h),h.substr((u+"").length-(u<0?1:0))||""):(u=parseFloat(h),h.substr((u+"").length)))&&(_=w[i]||d),_!==d&&(c=ht(t,"borderLeft",p,d),p=ht(t,"borderTop",p,d),o="%"===_?(l=c/y*100+"%",p/v*100+"%"):"em"===_?(l=c/(d=ht(t,"borderLeft",1,"em"))+"em",p/d+"em"):(l=c+"px",p+"px"),f&&(h=parseFloat(l)+u+_,a=parseFloat(o)+u+_)),n=wt(g,m[T],l+" "+o,h+" "+a,!1,"0px",n);return n},prefix:!0,formatter:gt("0px 0px 0px 0px",!1,!0)}),St("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(t,e,i,r,n,s){return wt(t.style,i,this.format(lt(t,i,P,!1,"0px 0px")),this.format(e),!1,"0px",n)},prefix:!0,formatter:gt("0px 0px",!1,!0)}),St("backgroundPosition",{defaultValue:"0 0",parser:function(t,e,i,r,n,s){var a,o,l,h,u,_,f="background-position",c=P||d(t),p=this.format((c?T?c.getPropertyValue(f+"-x")+" "+c.getPropertyValue(f+"-y"):c.getPropertyValue(f):t.currentStyle.backgroundPositionX+" "+t.currentStyle.backgroundPositionY)||"0 0"),e=this.format(e);if(-1!==p.indexOf("%")!=(-1!==e.indexOf("%"))&&e.split(",").length<2&&((_=lt(t,"backgroundImage").replace(V,""))&&"none"!==_)){for(a=p.split(" "),o=e.split(" "),it.setAttribute("src",_),l=2;-1<--l;)(h=-1!==(p=a[l]).indexOf("%"))!=(-1!==o[l].indexOf("%"))&&(u=0===l?t.offsetWidth-it.width:t.offsetHeight-it.height,a[l]=h?parseFloat(p)/100*u+"px":parseFloat(p)/u*100+"%");p=a.join(" ")}return this.parseComplex(t.style,p,e,n,s)},formatter:ct}),St("backgroundSize",{defaultValue:"0 0",formatter:function(t){return"co"===(t+="").substr(0,2)?t:ct(-1===t.indexOf(" ")?t+" "+t:t)}}),St("perspective",{defaultValue:"0px",prefix:!0}),St("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),St("transformStyle",{prefix:!0}),St("backfaceVisibility",{prefix:!0}),St("userSelect",{prefix:!0}),St("margin",{parser:yt("marginTop,marginRight,marginBottom,marginLeft")}),St("padding",{parser:yt("paddingTop,paddingRight,paddingBottom,paddingLeft")}),St("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(t,e,i,r,n,s){var a,o;return e=T<9?(a=t.currentStyle,o=T<8?" ":",",a="rect("+a.clipTop+o+a.clipRight+o+a.clipBottom+o+a.clipLeft+")",this.format(e).split(",").join(o)):(a=this.format(lt(t,this.p,P,!1,this.dflt)),this.format(e)),this.parseComplex(t.style,a,e,n,s)}}),St("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),St("autoRound,strictUnits",{parser:function(t,e,i,r,n){return n}}),St("border",{defaultValue:"0px solid #000",parser:function(t,e,i,r,n,s){var a=lt(t,"borderTopWidth",P,!1,"0px"),o=this.format(e).split(" "),e=o[0].replace(N,"");return"px"!==e&&(a=parseFloat(a)/ht(t,"borderTopWidth",1,e)+e),this.parseComplex(t.style,this.format(a+" "+lt(t,"borderTopStyle",P,!1,"solid")+" "+lt(t,"borderTopColor",P,!1,"#000")),o.join(" "),n,s)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(mt)||["#000"])[0]}}),St("borderWidth",{parser:yt("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),St("float,cssFloat,styleFloat",{parser:function(t,e,i,r,n,s){var a=t.style,t="cssFloat"in a?"cssFloat":"styleFloat";return new Tt(a,t,0,0,n,-1,i,!1,0,a[t],e)}});function Wt(t){var e,i=this.t,r=i.filter||lt(this.data,"filter")||"";100==(t=this.s+this.c*t|0)&&(e=-1===r.indexOf("atrix(")&&-1===r.indexOf("radient(")&&-1===r.indexOf("oader(")?(i.removeAttribute("filter"),!lt(this.data,"filter")):(i.filter=r.replace(B,""),!0)),e||(this.xn1&&(i.filter=r=r||"alpha(opacity="+t+")"),-1===r.indexOf("pacity")?0==t&&this.xn1||(i.filter=r+" alpha(opacity="+t+")"):i.filter=r.replace(j,"opacity="+t))}St("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(t,e,i,r,n,s){var a=parseFloat(lt(t,"opacity",P,!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"===lt(t,"visibility",P)&&0!==e&&(a=0),nt?n=new Tt(o,"opacity",a,e-a,n):((n=new Tt(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=Wt),l&&((n=new Tt(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 Ht(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:Zt(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 Zt=function(t,e){e&&(t.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),t.removeProperty(e.replace(G,"-$1").toLowerCase())):t.removeAttribute(e))};St("className",{parser:function(t,e,i,r,n,s,a){var o,l,h,u=t.getAttribute("class")||"",_=t.style.cssText;if((n=r._classNamePT=new Tt(t,i,0,0,n,2)).setRatio=Ht,n.pr=-11,f=!0,n.b=u,o=m(t,P),i=t._gsClassPT){for(l={},h=i.data;h;)l[h.p]=1,h=h._next;i.setRatio(1)}return(t._gsClassPT=n).e="="!==e.charAt(1)?e:u.replace(new RegExp("(?:\\s|^)"+e.substr(2)+"(?![\\w-])"),"")+("+"===e.charAt(0)?" "+e.substr(2):""),t.setAttribute("class",n.e),a=g(t,o,m(t),a,l),t.setAttribute("class",u),n.data=a.firstMPT,t.style.cssText!==_&&(t.style.cssText=_),n.xfirst=r.parse(t,a.difs,n,s)}});function $t(t){if((1===t||0===t)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var e,i,r,n,s=this.t.style,a=c.transform.parse;if("all"===this.e)n=!(s.cssText="");else for(r=(e=this.e.split(" ").join("").split(",")).length;-1<--r;)i=e[r],c[i]&&(c[i].parse===a?n=!0:i="transformOrigin"===i?zt:c[i].p),Zt(s,i);n&&(Zt(s,Lt),(t=this.t._gsTransform)&&(t.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}}for(St("clearProps",{parser:function(t,e,i,r,n){return(n=new Tt(t,i,0,0,n,2)).setRatio=$t,n.e=e,n.pr=-10,n.data=r._tween,f=!0,n}}),t="bezier,throwProps,physicsProps,physics2D".split(","),bt=t.length;bt--;)Ot(t[bt]);(t=M.prototype)._firstPT=t._lastParsedTransform=t._transform=null,t._onInitTween=function(t,e,i,r){if(!t.nodeType)return!1;this._target=R=t,this._tween=i,this._vars=e,D=r,C=e.autoRound,f=!1,w=e.suffixMap||M.suffixMap,P=d(t),_=this._overwriteProps;var n,s,a,o,l,h,r=t.style;if(y&&""===r.zIndex&&("auto"!==(h=lt(t,"zIndex",P))&&""!==h||this._addLazySet(r,"zIndex",0)),"string"==typeof e&&(a=r.cssText,h=m(t,P),r.cssText=a+";"+e,h=g(t,h,m(t)).difs,!nt&&X.test(e)&&(h.opacity=parseFloat(RegExp.$1)),e=h,r.cssText=a),e.className?this._firstPT=n=c.className.parse(t,e.className,"className",this,null,null,e):this._firstPT=n=this.parse(t,e,null),this._transformType){for(h=3===this._transformType,Lt?v&&(y=!0,""===r.zIndex&&("auto"!==(e=lt(t,"zIndex",P))&&""!==e||this._addLazySet(r,"zIndex",0)),x&&this._addLazySet(r,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(h?"visible":"hidden"))):r.zoom=1,s=n;s&&s._next;)s=s._next;r=new Tt(t,"transform",0,0,null,2),this._linkCSSP(r,null,s),r.setRatio=Lt?Qt:Ct,r.data=this._transform||qt(t,P,!0),r.tween=i,r.pr=-1,_.pop()}if(f){for(;n;){for(l=n._next,s=a;s&&s.pr>n.pr;)s=s._next;(n._prev=s?s._prev:o)?n._prev._next=n:a=n,(n._next=s)?s._prev=n:o=n,n=l}this._firstPT=a}return!0},t.parse=function(t,e,i,r){var n,s,a,o,l,h,u,_,f=t.style;for(n in e){if(l=e[n],_=c[n],"function"!=typeof l||_&&_.allowFunc||(l=l(D,R)),_)i=_.parse(t,l,n,this,i,r,e);else{if("--"===n.substr(0,2)){this._tween._propLookup[n]=this._addTween.call(this._tween,t.style,"setProperty",d(t).getPropertyValue(n)+"",l+"",n,!1,n);continue}o=lt(t,n,P)+"",u="string"==typeof l,"color"===n||"fill"===n||"stroke"===n||-1!==n.indexOf("Color")||u&&Y.test(l)?(u||(l=(3<(l=dt(l)).length?"rgba(":"rgb(")+l.join(",")+")"),i=wt(f,n,o,l,!0,"transparent",i,0,r)):u&&Z.test(l)?i=wt(f,n,o,l,!0,null,i,0,r):(h=(s=parseFloat(o))||0===s?o.substr((s+"").length):"",""!==o&&"auto"!==o||(h="width"===n||"height"===n?(s=function(t,e,i){if("svg"===(t.nodeName+"").toLowerCase())return(i||d(t))[e]||0;if(t.getCTM&&Gt(t))return t.getBBox()[e]||0;var r=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),n=_t[e],s=n.length;for(i=i||d(t);-1<--s;)r-=parseFloat(lt(t,"padding"+n[s],i,!0))||0,r-=parseFloat(lt(t,"border"+n[s]+"Width",i,!0))||0;return r}(t,n,P),"px"):"left"===n||"top"===n?(s=ut(t,n,P),"px"):(s="opacity"!==n?0:1,"")),""===(u=(_=u&&"="===l.charAt(1))?(a=parseInt(l.charAt(0)+"1",10),l=l.substr(2),a*=parseFloat(l),l.replace(N,"")):(a=parseFloat(l),u?l.replace(N,""):""))&&(u=n in w?w[n]:h),l=a||0===a?(_?a+s:a)+u:e[n],h===u||""===u&&"lineHeight"!==n||!a&&0!==a||!s||(s=ht(t,n,s,h),"%"===u?(s/=ht(t,n,100,"%")/100,!0!==e.strictUnits&&(o=s+"%")):"em"===u||"rem"===u||"vw"===u||"vh"===u?s/=ht(t,n,1,u):"px"!==u&&(a=ht(t,n,a,u),u="px"),_&&(a||0===a)&&(l=a+s+u)),_&&(a+=s),!s&&0!==s||!a&&0!==a?void 0!==f[n]&&(l||l+""!="NaN"&&null!=l)?(i=new Tt(f,n,a||s||0,0,i,-1,n,!1,0,o,l)).xs0="none"!==l||"display"!==n&&-1===n.indexOf("Style")?l:o:p("invalid "+n+" tween value: "+e[n]):(i=new Tt(f,n,s,a-s,i,0,n,!1!==C&&("px"===u||"zIndex"===n),0,o,l)).xs0=u)}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||qt(this._target,P,!0),this._transformType=this._transform.svg&&Rt||!t&&3!==this._transformType?2:3};function Kt(t){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)}t._addLazySet=function(t,e,i){e=this._firstPT=new Tt(t,e,0,0,this._firstPT,2);e.e=i,e.setRatio=Kt,e.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 Jt=function(t,e,i){var r,n,s,a;if(t.slice)for(n=t.length;-1<--n;)Jt(t[n],e,i);else for(n=(r=t.childNodes).length;-1<--n;)a=(s=r[n]).type,s.style&&(e.push(m(s)),i&&i.push(s)),1!==a&&9!==a&&11!==a||!s.childNodes.length||Jt(s,e,i)};return M.cascadeTo=function(t,e,i){var r,n,s,a,o=A.to(t,e,i),l=[o],h=[],u=[],_=[],f=A._internals.reservedProps;for(t=o._targets||o.target,Jt(t,h,_),o.render(e,!0,!0),Jt(t,u),o.render(0,!0,!0),o._enabled(!0),r=_.length;-1<--r;)if((n=g(_[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(A.fromTo(_[r],e,a,n))}return l},s.activate([M]),M},!0),(t=(t=_gsScope._gsDefine.plugin({propName:"roundProps",version:"1.7.0",priority:-1,API:2,init:function(t,e,i){return this._tween=i,!0}})).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]=function(e){var i=e<1?Math.pow(10,(e+"").length-2):1;return function(t){return(Math.round(t/e)*e*i|0)/i}}(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?function(t,e){for(;t;)t.f||t.blob||(t.m=e||Math.round),t=t._next}(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},t._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)s=e[n],"function"==typeof s&&(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=!0===e.useRadians?2*Math.PI:360;for(n in e)"useRadians"!==n&&(o=e[n],"function"==typeof o&&(o=o(r,t)),l=(o+"").split("_"),s=l[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)]()),o=this.finals[n]="string"==typeof s&&"="===s.charAt(1)?a+parseInt(s.charAt(0)+"1",10)*Number(s.substr(2)):Number(s)||0,o=o-a,l.length&&(s=l.join("_"),-1!==s.indexOf("short")&&(o%=h,o!==o%(h/2)&&(o=o<0?o+h:o-h)),-1!==s.indexOf("_cw")&&o<0?o=(o+9999999999*h)%h-(o/h|0)*h:-1!==s.indexOf("ccw")&&0<o&&(o=(o-9999999999*h)%h-(o/h|0)*h)),(1e-6<o||o<-1e-6)&&(this._addTween(t,n,a,a+o,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=h("easing."+t,function(){},!0);return(t=i.prototype=new m).constructor=i,t.getRatio=e,i}function e(t,e,i,r,n){return r=h("easing."+t,{easeOut:new e,easeIn:new i,easeInOut:new r},!0),u(r,t),r}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)}var i,r,n,s=_gsScope.GreenSockGlobals||_gsScope,a=s.com.greensock,o=2*Math.PI,l=Math.PI/2,h=a._class,u=m.register||function(){},_=function(t,e){var i=h("easing."+t,function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1},!0),t=i.prototype=new m;return t.constructor=i,t.getRatio=e,t.config=function(t){return new i(t)},i},a=e("Back",_("BackOut",function(t){return--t*t*((this._p1+1)*t+this._p1)+1}),_("BackIn",function(t){return t*t*((this._p1+1)*t-this._p1)}),_("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)})),f=h("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),_=f.prototype=new m;return _.constructor=f,_.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},f.ease=new f(.7,.7),_.config=f.config=function(t,e,i){return new f(t,e,i)},(_=(i=h("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=i,_.getRatio=function(t){return t<0?t=0:1<=t&&(t=.999999999),((this._p2*t|0)+this._p3)*this._p1},_.config=i.config=function(t,e){return new i(t,e)},(_=(r=h("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=r,_.getRatio=function(t){return this._ease&&(t=this._ease.getRatio(t)),(this._p3*Math.exp(this._p1*t)-this._p3)/this._p2},_.config=r.config=function(t,e,i){return new r(t,e,i)},(_=(n=h("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=n,_.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},_.config=function(t){return new n(t)},n.ease=new n,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",(_=function(t,e,i){var r=h("easing."+t,function(t,e){this._p1=1<=t?t:1,this._p2=(e||i)/(t<1?t:1),this._p3=this._p2/o*(Math.asin(1/this._p1)||0),this._p2=o/this._p2},!0),t=r.prototype=new m;return t.constructor=r,t.getRatio=e,t.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),_("ElasticIn",function(t){return-(this._p1*Math.pow(2,10*--t)*Math.sin((t-this._p3)*this._p2))},.3),_("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*l)}),t("SineIn",function(t){return 1-Math.cos(t*l)}),t("SineInOut",function(t){return-.5*(Math.cos(Math.PI*t)-1)})),h("easing.EaseLookup",{find:function(t){return m.map[t]}},!0),u(s.SlowMo,"SlowMo","ease,"),u(n,"RoughEase","ease,"),u(i,"SteppedEase","ease,"),a},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(f,c){"use strict";var p={},d=f.document,m=f.GreenSockGlobals=f.GreenSockGlobals||f;if(U=m[c])return"undefined"!=typeof module&&module.exports&&(module.exports=U);function g(t){for(var e=t.split("."),i=m,r=0;r<e.length;r++)i[e[r]]=i=i[e[r]]||{};return i}function o(t){for(var e=[],i=t.length,r=0;r!==i;e.push(t[r++]));return e}function y(){}var v,e,i,_=g("com.greensock"),x=1e-8,T=(e=Object.prototype.toString,i=e.call([]),function(t){return null!=t&&(t instanceof Array||"object"==typeof t&&!!t.push&&e.call(t)===i)}),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=g(i.join("."))[r]=this.gsClass=h.apply(h,_),u)if(m[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)},r=f._gsDefine=function(t,e,i,r){return new b(t,e,i,r)},P=_._class=function(t,e,i){return e=e||function(){},r(t,[],function(){return e},i),e};r.globals=m;var t,n=[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?n.concat(e):n},!0),O=S.map={},s=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((t=S.prototype)._calcEnd=!1,t.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},l=(a=["Linear","Quad","Cubic","Quart","Quint,Strong"]).length;-1<--l;)t=a[l]+",Power"+l,s(new S(null,null,1,l),t,"easeOut",!0),s(new S(null,null,2,l),t,"easeIn"+(0===l?",easeNone":"")),s(new S(null,null,3,l),t,"easeInOut");O.linear=_.easing.Linear.easeIn,O.swing=_.easing.Quad.easeInOut;var k=P("events.EventDispatcher",function(t){this._listeners={},this._eventTarget=t||this});(t=k.prototype).addEventListener=function(t,e,i,r,n){n=n||0;var s,a,o=this._listeners[t],l=0;for(this!==D||v||D.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})},t.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)},t.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))};for(var a,C=f.requestAnimationFrame,R=f.cancelAnimationFrame,A=Date.now||function(){return(new Date).getTime()},M=A(),l=(a=["ms","moz","webkit","o"]).length;-1<--l&&!C;)C=f[a[l]+"RequestAnimationFrame"],R=f[a[l]+"CancelAnimationFrame"]||f[a[l]+"CancelRequestAnimationFrame"];P("Ticker",function(t,e){var r,n,s,a,o,l=this,h=A(),i=!(!1===e||!C)&&"auto",u=500,_=33,f=function(t){var e,i=A()-M;u<i&&(h+=i-_),M+=i,l.time=(M-h)/1e3,i=l.time-o,(!r||0<i||!0===t)&&(l.frame++,o+=i+(a<=i?.004:a-i),e=!0),!0!==t&&(s=n(f)),e&&l.dispatchEvent("tick")};k.call(l),l.time=l.frame=0,l.tick=function(){f(!0)},l.lagSmoothing=function(t,e){return arguments.length?(u=t||1e8,void(_=Math.min(e,u,0))):u<1e8},l.sleep=function(){null!=s&&((i&&R?R:clearTimeout)(s),n=y,s=null,l===D&&(v=!1))},l.wake=function(t){null!==s?l.sleep():t?h+=-M+(M=A()):10<l.frame&&(M=A()-u+5),n=0===r?y:i&&C?C:function(t){return setTimeout(t,1e3*(o-l.time)+1|0)},l===D&&(v=!0),f(2)},l.fps=function(t){return arguments.length?(a=1/((r=t)||60),o=this.time+a,void l.wake()):r},l.useRAF=function(t){return arguments.length?(l.sleep(),i=t,void l.fps(r)):i},l.fps(t),setTimeout(function(){"auto"===i&&l.frame<5&&"hidden"!==(d||{}).visibilityState&&l.useRAF(!1)},1500)}),(t=_.Ticker.prototype=new _.events.EventDispatcher).constructor=_.Ticker;var h=P("core.Animation",function(t,e){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,$&&(v||D.wake(),(e=this.vars.useFrames?Z:$).add(this,e._time),this.vars.paused&&this.paused(!0))}),D=h.ticker=new _.Ticker;(t=h.prototype)._dirty=t._gc=t._initted=t._paused=!1,t._totalTime=t._time=0,t._rawPrevTime=-1,t._next=t._last=t._onUpdate=t._timeline=t.timeline=null,t._paused=!1;var u=function(){v&&2e3<A()-M&&("hidden"!==(d||{}).visibilityState||!D.lagSmoothing())&&D.wake();var t=setTimeout(u,2e3);t.unref&&t.unref()};u(),t.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},t.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},t.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},t.seek=function(t,e){return this.totalTime(Number(t),!1!==e)},t.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,!1!==e,!0)},t.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},t.render=function(t,e,i){},t.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,!this._gc&&this.timeline||this._enabled(!0),this},t.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},t._enabled=function(t,e){return v||D.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},t._kill=function(t,e){return this._enabled(!1,!1)},t.kill=function(t,e){return this._kill(t,e),this},t._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},t._swapSelfInParams=function(t){for(var e=t.length,i=t.concat();-1<--e;)"{self}"===t[e]&&(i[e]=this);return i},t._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)}},t.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},t.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},t.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)},t.totalDuration=function(t){return this._dirty=!1,arguments.length?this.duration(t):this._totalDuration},t.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(t>this._duration?this._duration:t,e)):this._time},t.totalTime=function(t,e,i){if(v||D.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||(X.length&&J(),this.render(t,e,!1),X.length&&J())}return this},t.progress=t.totalProgress=function(t,e){var i=this.duration();return arguments.length?this.totalTime(i*t,e):i?this._time/i:this.ratio},t.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},t.endTime=function(t){return this._startTime+(0!=t?this.totalDuration():this.duration())/this._timeScale},t.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},t.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},t.paused=function(t){if(!arguments.length)return this._paused;var e,i,r=this._timeline;return t!=this._paused&&r&&(v||t||D.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){h.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0});function F(t){return t&&t.length&&t!==f&&t[0]&&(t[0]===f||t[0].nodeType&&t[0].style&&!t.nodeType)}(t=L.prototype=new h).constructor=L,t.kill()._gc=!1,t._first=t._last=t._recent=null,t._sortChildren=!1,t.add=t.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},t._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},t.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},t.rawTime=function(){return v||D.wake(),this._totalTime};var z=P("TweenLite",function(t,e,i){if(h.call(this,e,i),this.render=z.prototype.render,null==t)throw"Cannot tween a null target.";this.target=t="string"==typeof t&&z.selector(t)||t;var r,n,s,i=t.jquery||t.length&&t!==f&&t[0]&&(t[0]===f||t[0].nodeType&&t[0].style&&!t.nodeType),a=this.vars.overwrite;if(this._overwrite=a=null==a?H[z.defaultOverwrite]:"number"==typeof a?a>>0:H[a],(i||t instanceof Array||t.push&&T(t))&&"number"!=typeof t[0])for(this._targets=s=o(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(o(n))):(this._siblings[r]=et(n,this,!1),1===a&&1<this._siblings[r].length&&it(n,this,null,1,this._siblings[r])):"string"==typeof(n=s[r--]=z.selector(n))&&s.splice(r+1,1):s.splice(r--,1);else this._propLookup={},this._siblings=et(t,this,!1),1===a&&1<this._siblings.length&&it(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);function E(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 I(t){return(1e3*t|0)/1e3+""}function N(t,e,i,r){var n,s,a,o,l,h,u=[],_=0,f="",c=0;for(u.start=t,u.end=e,t=u[0]=t+"",e=u[1]=e+"",i&&(i(u),t=u[0],e=u[1]),u.length=0,n=t.match(Y)||[],s=e.match(Y)||[],r&&(r._next=null,r.blob=1,u._firstPT=u._applyPT=r),o=s.length,a=0;a<o;a++)h=s[a],f+=(l=e.substr(_,e.indexOf(h,_)-_))||!a?l:",",_+=l.length,c?c=(c+1)%5:"rgba("===l.substr(-5)&&(c=1),h===n[a]||n.length<=a?f+=h:(f&&(u.push(f),f=""),l=parseFloat(n[a]),u.push(l),u._firstPT={_next:u._firstPT,t:u,p:u.length-1,s:l,c:("="===h.charAt(1)?parseInt(h.charAt(0)+"1",10)*parseFloat(h.substr(2)):parseFloat(h)-l)||0,f:0,m:c&&c<4?Math.round:I}),_+=h.length;return(f+=e.substr(_))&&u.push(f),u.setRatio=E,G.test(e)&&(u.end=null),u}function j(t,e,i,r,n,s,a,o,l){"function"==typeof r&&(r=r(l||0,t));var h=typeof t[e],l="function"!=h?"":e.indexOf("set")||"function"!=typeof t["get"+e.substr(3)]?e:"get"+e.substr(3),i="get"!==i?i:l?a?t[l](a):t[l]():t[e],l="string"==typeof r&&"="===r.charAt(1),s={t:t,p:e,s:i,f:"function"==h,pg:0,n:n||e,m:s?"function"==typeof s?s:Math.round:0,pr:0,c:l?parseInt(r.charAt(0)+"1",10)*parseFloat(r.substr(2)):parseFloat(r)-i||0};return"number"==typeof i&&("number"==typeof r||l)||(a||isNaN(i)||!l&&isNaN(r)||"boolean"==typeof i||"boolean"==typeof r?(s.fp=a,s={t:N(i,l?parseFloat(s.s)+s.c+(s.s+"").replace(/[0-9\-\.]/g,""):r,o||z.defaultStringFilter,s),p:"setRatio",s:0,c:1,f:2,pg:0,n:n||e,pr:0,m:0}):(s.s=parseFloat(i),l||(s.c=parseFloat(r)-s.s||0))),s.c?((s._next=this._firstPT)&&(s._next._prev=s),this._firstPT=s):void 0}(t=z.prototype=new h).constructor=z,t.kill()._gc=!1,t.ratio=0,t._firstPT=t._targets=t._overwrittenProps=t._startAt=null,t._notifyPluginsOfEnabled=t._lazy=!1,z.version="2.1.3",z.defaultEase=t._ease=new S(null,null,1,1),z.defaultOverwrite="auto",z.ticker=D,z.autoSleep=120,z.lagSmoothing=function(t,e){D.lagSmoothing(t,e)},z.selector=f.$||f.jQuery||function(t){var e=f.$||f.jQuery;return e?(z.selector=e)(t):(d=d||f.document)?d.querySelectorAll?d.querySelectorAll(t):d.getElementById("#"===t.charAt(0)?t.substr(1):t):t};var X=[],B={},Y=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,G=/[\+-]=-?[\.\d]/,U=z._internals={isArray:T,isSelector:F,lazyTweens:X,blobDif:N},V=z._plugins={},q=U.tweenLookup={},Q=0,W=U.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},H={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},Z=h._rootFramesTimeline=new L,$=h._rootTimeline=new L,K=30,J=U.lazyRender=function(){var t,e,i=X.length;for(B={},t=0;t<i;t++)(e=X[t])&&!1!==e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0),e._lazy=!1);X.length=0};function tt(t,e,i,r){var n,s,a=t.vars.onOverwrite;return a&&(n=a(t,e,i,r)),(a=z.onOverwrite)&&(s=a(t,e,i,r)),!1!==n&&!1!==s}$._startTime=D.time,Z._startTime=D.frame,$._active=Z._active=!0,setTimeout(J,1),h._updateRoot=z.render=function(){var t,e,i;if(X.length&&J(),$.render((D.time-$._startTime)*$._timeScale,!1,!1),Z.render((D.frame-Z._startTime)*Z._timeScale,!1,!1),X.length&&J(),D.frame>=K){for(i in K=D.frame+(parseInt(z.autoSleep,10)||120),q){for(t=(e=q[i].tweens).length;-1<--t;)e[t]._gc&&e.splice(t,1);0===e.length&&delete q[i]}if((!(i=$._first)||i._paused)&&z.autoSleep&&!Z._first&&1===D._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||D.sleep()}}},D.addEventListener("tick",h._updateRoot);var et=function(t,e,i){var r,n,s=t._gsTweenID;if(q[s||(t._gsTweenID=s="t"+Q++)]||(q[s]={target:t,tweens:[]}),e&&((r=q[s].tweens)[n=r.length]=e,i))for(;-1<--n;)r[n]===e&&r.splice(n,1);return q[s].tweens},it=function(t,e,i,r,n){var s,a,o;if(1===r||4<=r){for(o=n.length,c=0;c<o;c++)if((a=n[c])!==e)a._gc||a._kill(null,t,e)&&(s=!0);else if(5===r)break;return s}for(var l,h=e._startTime+x,u=[],_=0,f=0===e._duration,c=n.length;-1<--c;)(a=n[c])===e||a._gc||a._paused||(a._timeline!==e._timeline?(l=l||rt(e,0,f),0===rt(a,l,f)&&(u[_++]=a)):a._startTime<=h&&a._startTime+a.totalDuration()/a._timeScale>h&&((f||!a._initted)&&h-a._startTime<=2e-8||(u[_++]=a)));for(c=_;-1<--c;)if(o=(a=u[c])._firstPT,2===r&&a._kill(i,t,e)&&(s=!0),2!==r||!a._firstPT&&a._initted&&o){if(2!==r&&!tt(a,e))continue;a._enabled(!1,!1)&&(s=!0)}return s},rt=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};t._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=z.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)W[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=z.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]||z.defaultEase:z.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&&z._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},t._initProps=function(t,e,i,r,n){var s,a,o,l,h,u;if(null==t)return!1;for(s in B[t._gsTweenID]&&J(),this.vars.css||t.style&&t!==f&&t.nodeType&&V.css&&!1!==this.vars.autoCSS&&function(t,e){var i,r={};for(i in t)W[i]||i in e&&"transform"!==i&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"className"!==i&&"border"!==i||!(!V[i]||V[i]&&V[i]._autoCSS)||(r[i]=t[i],delete t[i]);t.css=r}(this.vars,t),this.vars)if(u=this.vars[s],W[s])u&&(u instanceof Array||u.push&&T(u))&&-1!==u.join("").indexOf("{self}")&&(this.vars[s]=u=this._swapSelfInParams(u,this));else if(V[s]&&(l=new V[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]=j.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&&it(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)&&(B[t._gsTweenID]=!0),o)},t.render=function(t,e,i){var r,n,s,a,o,l,h,u=this,_=u._time,f=u._duration,c=u._rawPrevTime;if(f-x<=t&&0<=t?(u._totalTime=u._time=f,u.ratio=u._ease._calcEnd?u._ease.getRatio(1):1,u._reversed||(r=!0,n="onComplete",i=i||u._timeline.autoRemoveChildren),0!==f||!u._initted&&u.vars.lazy&&!i||(u._startTime===u._timeline._duration&&(t=0),(c<0||t<=0&&-x<=t||c===x&&"isPause"!==u.data)&&c!==t&&(i=!0,x<c&&(n="onReverseComplete")),u._rawPrevTime=a=!e||t||c===t?t:x)):t<x?(u._totalTime=u._time=0,u.ratio=u._ease._calcEnd?u._ease.getRatio(0):0,(0!==_||0===f&&0<c)&&(n="onReverseComplete",r=u._reversed),-x<t?t=0:t<0&&(u._active=!1,0!==f||!u._initted&&u.vars.lazy&&!i||(0<=c&&(c!==x||"isPause"!==u.data)&&(i=!0),u._rawPrevTime=a=!e||t||c===t?t:x)),(!u._initted||u._startAt&&u._startAt.progress())&&(i=!0)):(u._totalTime=u._time=t,u._easeType?(o=t/f,(1===(l=u._easeType)||3===l&&.5<=o)&&(o=1-o),3===l&&(o*=2),1===(h=u._easePower)?o*=o:2===h?o*=o*o:3===h?o*=o*o*o:4===h&&(o*=o*o*o*o),u.ratio=1===l?1-o:2===l?o:t/f<.5?o/2:1-o/2):u.ratio=u._ease.getRatio(t/f)),u._time!==_||i){if(!u._initted){if(u._init(),!u._initted||u._gc)return;if(!i&&u._firstPT&&(!1!==u.vars.lazy&&u._duration||u.vars.lazy&&!u._duration))return u._time=u._totalTime=_,u._rawPrevTime=c,X.push(u),void(u._lazy=[t,e]);u._time&&!r?u.ratio=u._ease.getRatio(u._time/f):r&&u._ease._calcEnd&&(u.ratio=u._ease.getRatio(0===u._time?0:1))}for(!1!==u._lazy&&(u._lazy=!1),u._active||!u._paused&&u._time!==_&&0<=t&&(u._active=!0),0===_&&(u._startAt&&(0<=t?u._startAt.render(t,!0,i):n=n||"_dummyGS"),!u.vars.onStart||0===u._time&&0!==f||(e||u._callback("onStart"))),s=u._firstPT;s;)s.f?s.t[s.p](s.c*u.ratio+s.s):s.t[s.p]=s.c*u.ratio+s.s,s=s._next;u._onUpdate&&(t<0&&u._startAt&&-1e-4!==t&&u._startAt.render(t,!0,i),e||(u._time!==_||r||i)&&u._callback("onUpdate")),!n||u._gc&&!i||(t<0&&u._startAt&&!u._onUpdate&&-1e-4!==t&&u._startAt.render(t,!0,i),r&&(u._timeline.autoRemoveChildren&&u._enabled(!1,!1),u._active=!1),!e&&u.vars[n]&&u._callback(n),0===f&&u._rawPrevTime===x&&a!==x&&(u._rawPrevTime=0))}},t._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:z.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)||F(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&&(z.onOverwrite||this.vars.onOverwrite)){for(s in h)o[s]&&(_=_||[],_.push(s));if((_||!t)&&!tt(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},t.invalidate=function(){this._notifyPluginsOfEnabled&&z._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?{}:[],h.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-x,this.render(t,!1,!1!==this.vars.lazy)),this},t._enabled=function(t,e){if(v||D.wake(),t&&this._gc){var i,r=this._targets;if(r)for(i=r.length;-1<--i;)this._siblings[i]=et(r[i],this,!0);else this._siblings=et(this.target,this,!0)}return h.prototype._enabled.call(this,t,e),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&z._onPluginEvent(t?"_onEnable":"_onDisable",this)},z.to=function(t,e,i){return new z(t,e,i)},z.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new z(t,e,i)},z.fromTo=function(t,e,i,r){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,new z(t,e,r)},z.delayedCall=function(t,e,i,r,n){return new z(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:r,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,lazy:!1,useFrames:n,overwrite:0})},z.set=function(t,e){return new z(t,0,e)},z.getTweensOf=function(t,e){if(null==t)return[];var i,r,n,s;if(t="string"==typeof t&&z.selector(t)||t,(T(t)||F(t))&&"number"!=typeof t[0]){for(i=t.length,r=[];-1<--i;)r=r.concat(z.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=et(t).concat()).length;-1<--i;)(r[i]._gc||e&&!r[i].isActive())&&r.splice(i,1);return r||[]},z.killTweensOf=z.killDelayedCallsTo=function(t,e,i){"object"==typeof e&&(i=e,e=!1);for(var r=z.getTweensOf(t,e),n=r.length;-1<--n;)r[n]._kill(i,t)};var nt=P("plugins.TweenPlugin",function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=nt.prototype},!0);if(t=nt.prototype,nt.version="1.19.0",nt.API=2,t._firstPT=null,t._addTween=j,t.setRatio=E,t._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},t._mod=t._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},z._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},nt.activate=function(t){for(var e=t.length;-1<--e;)t[e].API===nt.API&&(V[(new t[e])._propName]=t[e]);return!0},r.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(){nt.call(this,i,r),this._overwriteProps=n||[]},!0===t.global),o=a.prototype=new nt(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,nt.activate([a]),a},a=f._gsQueue){for(l=0;l<a.length;l++)a[l]();for(t in w)w[t].func||f.console.log("GSAP encountered missing dependency: "+t)}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(P,l,n){function o(t){return null!==t&&"object"==typeof t}function h(t){return o(t)&&"number"==typeof t.length&&0<t.length}function u(t){return o(t)&&/^(1|3|11)$/.test(t.nodeType)}function S(t,e,i){for(var r=Object(t),n=h(r)?r:o(t=r)&&"[object Object]"===Object.prototype.toString.call(t)?f(r):[r],s=parseInt(n.length)||0,a=0;a<s;a++)e.call(i,n[a],a,r)}function i(i,r){return i=Object(i),r=Object(r),Object.getOwnPropertyNames(i).reduce(function(t,e){return c(t,e,p(r,e)||p(i,e))},{})}function O(t,e,i){var r={};return o(t)&&(t=t[a]||(t[a]=++s),r=_[t]||(_[t]={})),i===n?e===n?r:r[e]:e!==n?r[e]=i:void 0}function k(t,i){var r=l.createElement(t);return i===n||S(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":S(e,function(t){u(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||u(t))return u(t)?[t]:R.call(t);if(h(t))for(s=0,r=t.length;s<r;s++)if(h(t[s]))for(a=0,n=t[s].length;a<n;a++)u(t[s][a])&&o.push(t[s][a]);else u(t[s])&&o.push(t[s]);return o}(t),void(this.elements.length&&(this.originals=this.elements.map(function(t){return O(t).html=O(t).html||t.innerHTML}),this.split()))):new r(t,e)}if(l.addEventListener&&Function.prototype.bind){var a="splitType"+ +new Date,_={},s=0,C=Array.prototype.push,R=Array.prototype.slice,f=Object.keys,c=(Object.prototype.hasOwnProperty,Object.defineProperty),p=(Object.defineProperties,Object.getOwnPropertyDescriptor),A=l.createDocumentFragment.bind(l),M=l.createTextNode.bind(l),d={splitClass:"",lineClass:"ls-ln",wordClass:"ls-wd",charClass:"ls-ch",split:"lines, words, chars",position:"relative",absolute:!1,tagName:"ls-tb",DEBUG:!1};return c(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!==n&&(this.settings=i(this.settings,t)),S(this.elements,function(t){(function(t){var e,i,r,n,s,a,o,l,h,u,_,f=this.settings,c=f.tagName,p="B"+ +new Date+"R",d=f.split,m=-1!==d.indexOf("lines"),g=-1!==d.indexOf("words"),y=-1!==d.indexOf("chars"),v="absolute"===f.position||!0===f.absolute,x=k("div"),T=[],w=[],b=m?k("div"):A();x.innerHTML=t.innerHTML.replace(/<br\s*\/?>/g," "+p+" "),T=x.textContent.replace(/\s+/g," ").trim().split(" ").map(function(t){return t===p?(b.appendChild(k("br")),null):(y&&(e=t.split("").map(function(t){return k(c,{class:f.charClass+" "+f.splitClass,style:"display: inline-block;",textContent:t})}),C.apply(w,e)),g||m?(i=k(c,{class:f.wordClass+" "+f.splitClass,style:"display: inline-block; position:"+(g?"relative":"static;"),children:y?e:null,textContent:y?null:t}),b.appendChild(i)):S(e,function(t){b.appendChild(t)}),b.appendChild(M(" ")),i);var e},this).filter(function(t){return t}),t.innerHTML="",t.appendChild(b),C.apply(this.words,T),C.apply(this.chars,w),(v||m)&&(u=[],d=O(t).nodes=t.getElementsByTagName(c),x=t.parentElement,T=t.nextElementSibling,_=P.getComputedStyle(t).textAlign,v&&(o={left:b.offsetLeft,top:b.offsetTop,width:b.offsetWidth},h=t.offsetWidth,l=t.offsetHeight,O(t).cssWidth=t.style.width,O(t).cssHeight=t.style.height),S(d,function(t){var e,i;t!==b&&(i=t.parentElement===b,m&&i&&((e=O(t).top=t.offsetTop)!==s&&(s=e,u.push(n=[])),n.push(t)),v&&(O(t).top=e||t.offsetTop,O(t).left=t.offsetLeft,O(t).width=t.offsetWidth,O(t).height=a=a||t.offsetHeight))}),x.removeChild(t),m&&(b=A(),r=u.map(function(t){return b.appendChild(e=k(c,{class:f.lineClass+" "+f.splitClass,style:"display: block; text-align:"+_+"; width: 100%;"})),v&&(O(e).type="line",O(e).top=O(t[0]).top,O(e).height=a),S(t,function(t){g?e.appendChild(t):y?R.call(t.children).forEach(function(t){e.appendChild(t)}):e.appendChild(M(t.textContent)),e.appendChild(M(" "))}),e}),t.replaceChild(b,t.firstChild),C.apply(this.lines,r)),v&&(t.style.width=t.style.width||h+"px",t.style.height=l+"px",S(d,function(t){var e="line"===O(t).type,i=!e&&"line"===O(t.parentElement).type;t.style.top=i?0:O(t).top+"px",t.style.left=e?o.left+"px":(i?O(t).left-o.left:O(t).left)+"px",t.style.height=O(t).height+"px",t.style.width=e?o.width+"px":O(t).width+"px",t.style.position="absolute"})),T?x.insertBefore(t,T):x.appendChild(t))}).call(this,t),O(t).isSplit=!0},this),this.isSplit=!0,S(this.elements,function(t){for(var e,i,r=O(t).nodes||[],n=0,s=r.length;n<s;n++)i=void 0,(i=(e=r[n])&&e[a])&&(delete e[i],delete _[i])})},r.prototype.revert=function(){this.isSplit&&(this.lines=this.words=this.chars=null),S(this.elements,function(t){O(t).isSplit&&O(t).html&&(t.innerHTML=O(t).html,t.style.height=O(t).cssHeight||"",t.style.width=O(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:{},closePopupsOnEsc:{},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,t=jQuery(t),o="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."}t.each(function(){(n=jQuery(this)).hasClass(o)||(n.addClass(o),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)};
;!function(ie){"use strict";window._layerSliders={},window._lsData={$overflowWrapper:ie("body").length?ie("body"):ie("html"),isMobile:!!navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|webOS|Windows Phone|IEMobile|mobi|opera mini|nexus 7)/i)||navigator.maxTouchPoints&&2<navigator.maxTouchPoints&&/Macintosh/.test(navigator.userAgent),supportOrientation:!!window.DeviceOrientationEvent,screen:{},document:{},viewport:{},scroll:{direction:"down"},resize:{},getScreenSize:function(){window._lsData.screen={width:screen.width,height:screen.height,ratio:screen.width/screen.height}},slide:{keys:{slidedelay:["data","duration"],duration:["data","duration"],timeshift:["data","timeShift"],transition2d:["data","transition2d"],transition3d:["data","transition3d"],transitionorigami:["data","transitionorigami"],customtransition2d:["data","customtransition2d"],customtransition3d:["data","customtransition3d"],transitionduration:["data","transitionDuration"],backgroundsize:["data","backgroundSize"],bgsize:["data","backgroundSize"],backgroundposition:["data","backgroundPosition"],bgposition:["data","backgroundPosition"],backgroundcolor:["data","backgroundColor"],bgcolor:["data","backgroundColor"],thumbnail:["data","thumbnail"],deeplink:["data","deeplink"],overflow:["data","overflow"],kenburnspan:["kenBurns","pan"],kenburnszoom:["kenBurns","zoom"],kenburnsrotation:["kenBurns","rotation"],kenburnsrotate:["kenBurns","rotation"],kenburnsscale:["kenBurns","scale"],filterfrom:["filter","from"],filterto:["filter","to"],parallaxtype:["parallax","type"],parallaxevent:["parallax","event"],parallaxpath:["parallax","path"],parallaxdirection:["parallax","direction"],parallaxduration:["parallax","duration"],parallaxcount:["parallax","count"],parallaxdelay:["parallax","startAt"],parallaxstartat:["parallax","startAt"],parallaxaxis:["parallax","axis"],parallaxtransformorigin:["parallax","transformOrigin"],parallaxdurationmove:["parallax","durationMove"],parallaxdurationleave:["parallax","durationLeave"],parallaxrotate:["parallax","rotation"],parallaxrotation:["parallax","rotation"],parallaxdistance:["parallax","distance"],parallaxtransformperspective:["parallax","transformPerspective"],globalhover:["data","globalhover"]}},layer:{keys:{keyframe:["is"],responsive:["is"],pinned:["is"],position:["settings"],static:["settings"],minresponsiveratio:["settings"],maxresponsiveratio:["settings"],trmask:["settings"],minfontsize:["styleSettings"],minmobilefontsize:["styleSettings"],overlay:["styleSettings"],pointerevents:["styleSettings"],smartbg:["styleSettings"],autoplay:["mediaSettings"],controls:["mediaSettings"],showinfo:["mediaSettings"],thumbnail:["poster","mediaSettings"],poster:["mediaSettings"],volume:["mediaSettings"],muted:["mediaSettings"],loopmedia:["loop","mediaSettings"],backgroundvideo:["backgroundVideo","mediaSettings"],fadein:["opacity","inLayerFromCSS"],opacityin:["opacity","inLayerFromCSS"],rotatein:["rotation","inLayerFromCSS"],rotatexin:["rotationX","inLayerFromCSS"],rotateyin:["rotationY","inLayerFromCSS"],rotationin:["rotation","inLayerFromCSS"],rotationxin:["rotationX","inLayerFromCSS"],rotationyin:["rotationY","inLayerFromCSS"],scalein:["scale","inLayerFromCSS"],scalexin:["scaleX","inLayerFromCSS"],scaleyin:["scaleY","inLayerFromCSS"],skewxin:["skewX","inLayerFromCSS"],skewyin:["skewY","inLayerFromCSS"],bgcolorin:["backgroundColor","inLayerStyleFromCSS"],colorin:["color","inLayerStyleFromCSS"],radiusin:["borderRadius","inLayerStyleShouldBeConvertedFrom"],widthin:["width","inLayerStyleShouldBeConvertedFrom"],heightin:["height","inLayerStyleShouldBeConvertedFrom"],filterin:["filter","inLayerStyleShouldBeConvertedFrom"],clipin:["clipPath","inClipFromCSS"],zindexin:["zIndex","in"],rotate:["rotation","inLayerToCSS"],rotatex:["rotationX","inLayerToCSS"],rotatey:["rotationY","inLayerToCSS"],rotation:["rotation","inLayerToCSS"],rotationx:["rotationX","inLayerToCSS"],rotationy:["rotationY","inLayerToCSS"],scale:["scale","inLayerToCSS"],scalex:["scaleX","inLayerToCSS"],scaley:["scaleY","inLayerToCSS"],skewx:["skewX","inLayerToCSS"],skewy:["skewY","inLayerToCSS"],transformoriginin:["transformOrigin","inLayerShouldBeConverted"],offsetxin:["x","inLayerShouldBeConverted"],offsetyin:["y","inLayerShouldBeConverted"],delayin:["startAt","in"],startatin:["startAt","in"],startatfirst:["startAtFirst","in"],instartat:["startAt","in"],durationin:["duration","in"],easein:["ease","in"],easingin:["ease","in"],transitionin:["enabled","in"],transformmirrorin:["mirror","in"],skipviewport:["skipViewport","settings"],textfadein:["opacity","textInNodesFrom"],textopacityin:["opacity","textInNodesFrom"],textrotatein:["rotation","textInNodesFrom"],textrotatexin:["rotationX","textInNodesFrom"],textrotateyin:["rotationY","textInNodesFrom"],textrotationin:["rotation","textInNodesFrom"],textrotationxin:["rotationX","textInNodesFrom"],textrotationyin:["rotationY","textInNodesFrom"],textscalein:["scale","textInNodesFrom"],textscalexin:["scaleX","textInNodesFrom"],textscaleyin:["scaleY","textInNodesFrom"],textskewxin:["skewX","textInNodesFrom"],textskewyin:["skewY","textInNodesFrom"],textcolorin:["color","textInNodesFrom"],textoverflowin:["overflow","textInLayerStyle"],texteasein:["ease","textInNodesTo"],texteasingin:["ease","textInNodesTo"],texttransformoriginin:["transformOrigin","textInShouldBeConverted"],textoffsetxin:["x","textInShouldBeConverted"],textoffsetyin:["y","textInShouldBeConverted"],texttypein:["type","textIn"],textshiftin:["shiftNodes","textIn"],textdelayin:["startAt","textIn"],textstartatin:["startAt","textIn"],textinstartat:["startAt","textIn"],textdurationin:["duration","textIn"],texttransitionin:["enabled","textIn"],texttransformmirrorin:["mirror","textIn"],fadeout:["opacity","outLayerToCSS"],opacityout:["opacity","outLayerToCSS"],rotateout:["rotation","outLayerToCSS"],rotatexout:["rotationX","outLayerToCSS"],rotateyout:["rotationY","outLayerToCSS"],rotationout:["rotation","outLayerToCSS"],rotationxout:["rotationX","outLayerToCSS"],rotationyout:["rotationY","outLayerToCSS"],scaleout:["scale","outLayerToCSS"],scalexout:["scaleX","outLayerToCSS"],scaleyout:["scaleY","outLayerToCSS"],skewxout:["skewX","outLayerToCSS"],skewyout:["skewY","outLayerToCSS"],bgcolorout:["backgroundColor","outLayerStyleToCSS"],colorout:["color","outLayerStyleToCSS"],radiusout:["borderRadius","outLayerStyleShouldBeConvertedTo"],widthout:["width","outLayerStyleShouldBeConvertedTo"],heightout:["height","outLayerStyleShouldBeConvertedTo"],filterout:["filter","outLayerStyleShouldBeConvertedTo"],clipout:["clipPath","outClipToCSS"],zindexout:["zIndex","out"],transformoriginout:["transformOrigin","outLayerShouldBeConverted"],offsetxout:["x","outLayerShouldBeConverted"],offsetyout:["y","outLayerShouldBeConverted"],showuntil:["showUntil","out"],startatout:["startAt","out"],outstartat:["startAt","out"],durationout:["duration","out"],easeout:["ease","out"],easingout:["ease","out"],transitionout:["enabled","out"],transformmirrorout:["mirror","out"],textfadeout:["opacity","textOutNodesTo"],textopacityout:["opacity","textOutNodesTo"],textrotateout:["rotation","textOutNodesTo"],textrotatexout:["rotationX","textOutNodesTo"],textrotateyout:["rotationY","textOutNodesTo"],textrotationout:["rotation","textOutNodesTo"],textrotationxout:["rotationX","textOutNodesTo"],textrotationyout:["rotationY","textOutNodesTo"],textscaleout:["scale","textOutNodesTo"],textscalexout:["scaleX","textOutNodesTo"],textscaleyout:["scaleY","textOutNodesTo"],textskewxout:["skewX","textOutNodesTo"],textskewyout:["skewY","textOutNodesTo"],textcolorout:["color","textOutNodesTo"],texteaseout:["ease","textOutNodesTo"],texteasingout:["ease","textOutNodesTo"],texttransformoriginout:["transformOrigin","textOutShouldBeConverted"],textoffsetxout:["x","textOutShouldBeConverted"],textoffsetyout:["y","textOutShouldBeConverted"],textoverflowout:["overflow","textOutLayerStyle"],texttypeout:["type","textOut"],textshiftout:["shiftNodes","textOut"],textdelayout:["startAt","textOut"],textstartatout:["startAt","textOut"],textoutstartat:["startAt","textOut"],textdurationout:["duration","textOut"],texttransitionout:["enabled","textOut"],texttransformmirrorout:["mirror","textOut"],loopopacity:["opacity","loopToCSS"],looprotate:["rotation","loopToCSS"],looprotatex:["rotationX","loopToCSS"],looprotatey:["rotationY","loopToCSS"],looprotation:["rotation","loopToCSS"],looprotationx:["rotationX","loopToCSS"],looprotationy:["rotationY","loopToCSS"],loopscale:["scale","loopToCSS"],loopscalex:["scaleX","loopToCSS"],loopscaley:["scaleY","loopToCSS"],loopskewx:["skewX","loopToCSS"],loopskewy:["skewY","loopToCSS"],looptransformorigin:["transformOrigin","loopLayerShouldBeConverted"],loopoffsetx:["x","loopLayerShouldBeConverted"],loopoffsety:["y","loopLayerShouldBeConverted"],loopfilter:["filter","loopLayerShouldBeConverted"],loopclip:["clipPath","loopClipToCSS"],loopdelay:["startAt","loop"],loopstartat:["startAt","loop"],loopduration:["duration","loop"],loopcount:["count","loop"],looprepeatdelay:["repeatDelay","loop"],loopyoyo:["yoyo","loop"],loopease:["ease","loop"],loopeasing:["ease","loop"],loop:["enabled","loop"],hoveropacity:["opacity","hoverToCSS"],hoverrotate:["rotation","hoverToCSS"],hoverrotatex:["rotationX","hoverToCSS"],hoverrotatey:["rotationY","hoverToCSS"],hoverrotation:["rotation","hoverToCSS"],hoverrotationx:["rotationX","hoverToCSS"],hoverrotationy:["rotationY","hoverToCSS"],hoverscale:["scale","hoverToCSS"],hoverscalex:["scaleX","hoverToCSS"],hoverscaley:["scaleY","hoverToCSS"],hoverskewx:["skewX","hoverToCSS"],hoverskewy:["skewY","hoverToCSS"],hoverbgcolor:["backgroundColor","hoverToCSS"],hovercolor:["color","hoverToCSS"],hoverease:["easeIn","hover"],hovereasing:["easeIn","hover"],hovereasein:["easeIn","hover"],hovereasingin:["easeIn","hover"],hovereaseout:["easeOut","hover"],hovereasingout:["easeOut","hover"],hoverduration:["durationIn","hover"],hoverdurationin:["durationIn","hover"],hoverdurationout:["durationOut","hover"],hoveralwaysontop:["alwaysOnTop","hover"],hoveroffsetx:["x","hoverShouldBeConverted"],hoveroffsety:["y","hoverShouldBeConverted"],hoverfilter:["filter","hoverShouldBeConverted"],hoverborderradius:["borderRadius","hoverShouldBeConverted"],hoverradius:["borderRadius","hoverShouldBeConverted"],hovertransformorigin:["transformOrigin","hoverShouldBeConverted"],hover:["enabled","hover"],kenburnspan:["pan","kenBurns"],kenburnszoom:["zoom","kenBurns"],kenburnsrotation:["rotation","kenBurns"],kenburnsrotate:["rotation","kenBurns"],kenburnsscale:["scale","kenBurns"],parallaxlevel:["level","parallax"],parallaxtype:["type","parallax"],parallaxevent:["event","parallax"],parallaxpath:["path","parallax"],parallaxdirection:["direction","parallax"],parallaxduration:["duration","parallax"],parallaxcount:["count","parallax"],parallaxdelay:["startAt","parallax"],parallaxstartat:["startAt","parallax"],parallaxaxis:["axis","parallax"],parallaxtransformorigin:["transformOrigin","parallax"],parallaxdurationmove:["durationMove","parallax"],parallaxdurationleave:["durationLeave","parallax"],parallaxrotate:["rotation","parallax"],parallaxrotation:["rotation","parallax"],parallaxreset:["reset","parallax"],parallaxdistance:["distance","parallax"],parallax:["enabled","parallax"],scroll:["enabled","scroll"],scrollduration:["duration","scroll"],scrolldurationrev:["durationRev","scroll"],scrollease:["ease","scroll"],scrolleaserev:["easeRev","scroll"],scrollcenter:["center","scroll"],scrollopacity:["opacity","scroll"],scrollopacitymin:["opacitymin","scroll"],scrollopacitymax:["opacitymax","scroll"],scrollopacityyoyo:["opacityyoyo","scroll"],scrollopacityinvert:["opacityinvert","scroll"],scrollrotate:["rotation","scroll"],scrollrotatemin:["rotationmin","scroll"],scrollrotatemax:["rotationmax","scroll"],scrollrotateyoyo:["rotationyoyo","scroll"],scrollrotatex:["rotationX","scroll"],scrollrotatexmin:["rotationXmin","scroll"],scrollrotatexmax:["rotationXmax","scroll"],scrollrotatexyoyo:["rotationXyoyo","scroll"],scrollrotatey:["rotationY","scroll"],scrollrotateymin:["rotationYmin","scroll"],scrollrotateymax:["rotationYmax","scroll"],scrollrotateyyoyo:["rotationYyoyo","scroll"],scrollrotation:["rotation","scroll"],scrollrotationmin:["rotationmin","scroll"],scrollrotationmax:["rotationmax","scroll"],scrollrotationyoyo:["rotationyoyo","scroll"],scrollrotationx:["rotationX","scroll"],scrollrotationxmin:["rotationXmin","scroll"],scrollrotationxmax:["rotationXmax","scroll"],scrollrotationxyoyo:["rotationXyoyo","scroll"],scrollrotationy:["rotationY","scroll"],scrollrotationymin:["rotationYmin","scroll"],scrollrotationymax:["rotationYmax","scroll"],scrollrotationyyoyo:["rotationYyoyo","scroll"],scrollscalex:["scaleX","scroll"],scrollscalexmin:["scaleXmin","scroll"],scrollscalexmax:["scaleXmax","scroll"],scrollscalexyoyo:["scaleXyoyo","scroll"],scrollscaley:["scaleY","scroll"],scrollscaleymin:["scaleYmin","scroll"],scrollscaleymax:["scaleYmax","scroll"],scrollscaleyyoyo:["scaleYyoyo","scroll"],scrollskewx:["skewX","scroll"],scrollskewxmin:["skewXmin","scroll"],scrollskewxmax:["skewXmax","scroll"],scrollskewxyoyo:["skewXyoyo","scroll"],scrollskewy:["skewY","scroll"],scrollskewymin:["skewYmin","scroll"],scrollskewymax:["skewYmax","scroll"],scrollskewyyoyo:["skewYyoyo","scroll"],scrolloffsetx:["x","scroll"],scrolloffsetxmin:["xmin","scroll"],scrolloffsetxmax:["xmax","scroll"],scrolloffsetxyoyo:["xyoyo","scroll"],scrolloffsetxresponsive:["xresponsive","scroll"],scrolloffsety:["y","scroll"],scrolloffsetymin:["ymin","scroll"],scrolloffsetymax:["ymax","scroll"],scrolloffsetyyoyo:["yyoyo","scroll"],scrolloffsetyresponsive:["yresponsive","scroll"],scrolltransformorigin:["transformOrigin","scrollShouldBeConverted"],scrolltransformoriginalt:["transformOriginAlt","scrollShouldBeConverted"],scrollgetposition:["getPosition","scroll"],transformperspective:["layer","transformPerspective"],transformperspectivein:["layer","transformPerspective"],transformperspectiveout:["layer","transformPerspective"],texttransformperspective:["text","transformPerspective"],texttransformperspectivein:["text","transformPerspective"],texttransformperspectiveout:["text","transformPerspective"],looptransformperspective:["loop","transformPerspective"],hovertransformperspective:["hover","transformPerspective"],parallaxtransformperspective:["parallax","transformPerspective"],scrolltransformperspective:["scroll","transformPerspective"]}}},ie(window).on("resize.lsGlobal",function(){window._lsData.documentIsAccessible&&(window._lsData.document={width:document.body.scrollWidth,height:document.body.scrollHeight},window._lsData.viewport={lastWidth:window._lsData.viewport.width||0,lastHeight:window._lsData.viewport.height||0,width:ie(window).width(),height:ie(window).height()},ie(window).trigger("scroll.lsGlobal"),window._lsData.resize.timeout&&clearTimeout(window._lsData.resize.timeout),window._lsData.resize.once?window._lsData.resize.once=!1:window._lsData.resize.timeout=setTimeout(function(){window._lsData.resize.once=!0,ie(window).trigger("resize.lsGlobal")},100))}),ie(window).on("scroll.lsGlobal",function(){window._lsData.documentIsAccessible&&(window._lsData.scroll.left=window.pageXOffset,window._lsData.scroll.top=window.pageYOffset,window._lsData.scroll.leftMax=window._lsData.document.width-window._lsData.viewport.width,window._lsData.scroll.topMax=window._lsData.document.height-window._lsData.viewport.height)}),ie(document).on("wheel.lsGlobal ",function(e){0!==Math.abs(e.originalEvent.deltaY)&&(window._lsData.scroll.direction=e.originalEvent.deltaY<0?"up":"down")}),ie(document).on("touchstart.lsGlobal ",function(e){window._lsData.ts=e.originalEvent.touches[0].clientY}),ie(document).on("touchend.lsGlobal ",function(e){e=e.originalEvent.changedTouches[0].clientY;window._lsData.ts>e+5?window._lsData.scroll.direction="down":window._lsData.ts<e-5&&(window._lsData.scroll.direction="up")}),ie.fn.layerSlider=function(i,a,s,r){window._lsData.documentIsAccessible=!0,i=i||{};var t,e="1.8.0",o=ie.fn.jquery;if(window._layerSlider.checkVersions(e,o,e))return(typeof i).match("object|undefined")?this.each(function(e){t="LS"+Math.random().toString(36).substr(2,9),ie(this).data("lsSliderUID")||(window._layerSliders[t]=new n(this,ie(this),i,t))}):"data"===i?window._layerSliders[this.data("lsSliderUID")]:"eventData"===i?window._layerSliders[this.data("lsSliderUID")].api.eventData():"defaultInitOptions"===i?window._layerSliders[this.data("lsSliderUID")].defaults.init.options||!1:"userInitOptions"===i?window._layerSliders[this.data("lsSliderUID")].userInitOptions||!1:"sliderInitOptions"===i?window._layerSliders[this.data("lsSliderUID")].o||!1:"originalMarkup"===i?window._layerSliders[this.data("lsSliderUID")].originalMarkup||!1:this.each(function(e){var t=window._layerSliders[ie(this).data("lsSliderUID")];t&&t.api.methods(i,a,s,r),t=null});window._layerSlider.showNotice(this,"oldjquery",o,e)};var n=function(L,$,i,W){$.data("lsSliderUID",W).attr("data-layerslider-uid",W);var J=this,ee=J.gsap=window._layerSlider.GSAP||window,M=ie(window),te=window._lsData;J.defaults={init:{staggerSplitChar:"|",rangeSplitChar:"..",randomSplitChar:"|",openingBracket:"[",closingBracket:"]",dataKey:"_LS",controls:["#playmedia","#pausemedia","#unmute","#unmutemedia","#start","#stop","#prev","#next","#replay","#reverse","#reverse-replay","#reversereplay"],options:{silentMode:!1,getData:!1,destroyAfter:!0,type:"responsive",fullSizeMode:"normal",fitScreenWidth:!0,calculateOffsetFrom:!1,preventSliderClip:!0,allowFullscreen:!1,performanceMode:!0,performanceModeThreshold:"20sh",responsiveUnder:-1,layersContainerWidth:-1,layersContainerHeight:-1,maxRatio:-1,insertMethod:"prependTo",insertSelector:null,clipSlideTransition:!1,slideBGSize:"cover",slideBGPosition:"50% 50%",preferBlendMode:!1,scene:!1,sceneHeight:2,sceneSpeed:100,sceneDuration:null,smoothScrollDuration:1e3,stickTo:"center",autoStart:!0,startInViewport:!0,playByScroll:!1,playByScrollSpeed:1,playByScrollStart:!1,playByScrollSkipSlideBreaks:!1,pauseOnHover:!1,pauseLayers:!1,firstSlide:1,sliderFadeInDuration:0,animateFirstSlide:!1,firstSlideDuration:!1,firstSlideTimeShift:!1,cycles:-1,forceCycles:!0,twoWaySlideshow:!1,shuffleSlideshow:!1,forceLayersOutDuration:750,slideDuration:!1,slideDurationWithoutLayers:3e3,slideTransitionDuration:!1,slideTimeShift:0,skin:"v6",skinsPath:"/layerslider/skins/",globalBGColor:"transparent",globalBGImage:!1,globalBGRepeat:"no-repeat",globalBGAttachment:"scroll",globalBGSize:"auto",globalBGPosition:"50% 50%",marginTop:!1,marginBottom:!1,navPrevNext:!0,navStartStop:!0,navButtons:!0,keybNav:!0,touchNav:!0,hoverPrevNext:!0,hoverBottomNav:!1,showBarTimer:!1,showCircleTimer:!0,showSlideBarTimer:!1,thumbnailNavigation:"hover",tnFillMode:"contain",tnContainerWidth:"60%",tnWidth:100,tnHeight:60,tnActiveOpacity:35,tnInactiveOpacity:100,scrollModifier:0,autoPlayVideos:!0,autoPauseSlideshow:"auto",youtubePreview:"maxresdefault.jpg",rememberUnmuteState:!0,parallaxCenterDegree:40,parallaxSensitivity:10,parallaxCenterLayers:"center",parallaxScrollReverse:!1,scrollCenterLayers:"center",yourLogo:!1,yourLogoStyle:"left: -10px; top: -10px;",yourLogoLink:!1,yourLogoTarget:"_self",optimizeForMobile:!0,hideOnMobile:!1,hideUnder:-1,hideOver:-1,slideOnSwipe:!0,allowRestartOnResize:!1,fixFloatedContainers:!1,useSrcset:!0,hashChange:!1,refreshWaypoint:!0,staticImage:""}},slider:{errorText:"LayerSlider (UID: "+W+") error:"},slide:{keys:window._lsData.slide.keys,options:{$link:!1,index:-1,data:{duration:-1,timeShift:0,calculatedTimeShift:0},parallax:{},kenBurns:{scale:1.2},filter:{}},registerPluginDefaults:function(e,t,i){J.defaults.slide.options.plugins||(J.defaults.slide.options.plugins={}),J.defaults.slide.options.plugins[e]=t}},layer:{keys:window._lsData.layer.keys,splitTypeKeys:["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"],timelineHierarchy:{slidestart:[0],transitioninstart:[1],transitioninend:[2],textinstart:[3,[1,2,6,7,8]],textinend:[4],allinend:[5],loopstart:[6,[1,2,3,4,5]],loopend:[7],autoparallaxstart:[6.5,[0,1,2,3,4,5,6,7]],autoparallaxend:[7.5],transitioninandloopend:[8],textinandloopend:[9],allinandloopend:[10],textoutstart:[11,[2,3,4,5,6,7,8,9,10]],textoutend:[12],textoutandloopend:[13],transitionoutstart:[14,[2,3,4,5,6,7,8,9,10,11,12,13]],transitionoutend:[15],alloutend:[16],alloutandloopend:[17]},properties:{filter:function(){return{blur:0,brightness:100,contrast:100,grayscale:0,"hue-rotate":0,invert:0,saturate:100,sepia:0}}},options:function(e,t){var i=e.data("countdown")||{},t={is:{slideBackground:!!e.is("img.ls-bg"),backgroundVideo:!!e.is(".ls-bg-video"),imageLayer:!!e.is("img.ls-layer, picture.ls-layer"),countdown:!(!i.date||!i.component),layerGroup:!!e.is(".ls-layer-group"),insideLayerGroup:!!e.data("$layerGroup"),mediaLayer:!1,textLayer:!1,responsive:!0,onSlide:t},should:{},elements:{},settings:{position:"relative",slideIn:t,slideOut:t},styleSettings:{minfontsize:0,minmobilefontsize:0},mediaSettings:{backgroundVideo:!1},timeline:{slidestart:0,transitioninstart:0,transitioninend:0,textinstart:0,textinend:0,allinend:function(e){return Math.max(this.transitioninend,this.textinend)},loopstart:0,loopend:0,transitioninandloopend:function(e){return 0===this.loopend&&e.loop.enabled&&("number"==typeof e.loop.startAt||-1!==e.loop.startAt.indexOf("textinstart")&&-1!==e.loop.startAt.indexOf("textinend")&&-1!==e.loop.startAt.indexOf("allinend"))?(this.loopstart=J.transitions.layers.timeline.getTiming(e,e.loop.startAt,"loopstart"),this.loopend=-1!==e.loop.count&&e.timeline.loopstart+(e.loop.repeat+1)*e.loop.duration+e.loop.repeat*e.loop.repeatDelay):J.debugMode&&J.debug.add("warn","layerTransition.infinite",e.self[0].tagName+"."+e.self.attr("class")+" [ "+e.self.html().substr(0,30)+"... ]"),Math.max(this.transitioninend,this.loopend)},textinandloopend:function(e){return Math.max(this.textinend,this.loopend)},allinandloopend:function(e){return Math.max(this.allinend(),this.loopend)},textoutstart:0,textoutend:0,textoutandloopend:function(e){return Math.max(this.textoutend,this.loopend)},transitionoutstart:function(e){return Math.max(this.allinandloopend(),this.textoutend)},transitionoutend:0,alloutend:function(e){return Math.max(this.transitionoutend,this.textoutend,this.allinend())},alloutandloopend:function(e){return Math.max(this.transitionoutend,this.textoutandloopend(),this.allinend())},staticfrom:!1,staticto:!1},transitionProperties:{in:{enabled:!0,layerFrom:{autoCSS:!1,immediateRender:!1,css:{opacity:0}},layerTo:{autoCSS:!1,onStart:function(){J.transitions.layers.in.onStart(e)},onComplete:function(){J.transitions.layers.in.onComplete(e)},css:{display:"block",opacity:1,rotation:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0,x:0,y:0}},layerStyleFrom:{autoCSS:!1,immediateRender:!1,css:{}},layerStyleTo:{autoCSS:!1,css:{}},clipFrom:{autoCSS:!1,immediateRender:!1,css:{}},layerShouldBeConverted:{transformOrigin:"50% 50% 0",x:0,y:0},layerStyleShouldBeConvertedFrom:{},layerStyleShouldBeConvertedTo:{},startAt:0,duration:1,ease:"easeInOutQuint"},textIn:{enabled:null,nodesFrom:{cycle:{},random:{},opacity:0},nodesTo:{ease:"easeInOutQuint",css:{opacity:1,rotation:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0,x:0,y:0}},shouldBeConverted:{cycle:{},random:{},transformOrigin:"50% 50% 0",x:0,y:0},layerStyle:{},split:"",shiftNodes:.05,startAt:"transitioninend",duration:1},out:{enabled:!0,layerFrom:{autoCSS:!1,immediateRender:!1,css:{}},layerTo:{autoCSS:!1,onStart:function(){J.transitions.layers.out.onStart(e)},onComplete:function(){J.transitions.layers.out.onComplete(e)},css:{opacity:0,rotation:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0}},layerStyleFrom:{autoCSS:!1,immediateRender:!1,css:{}},layerStyleTo:{autoCSS:!1,css:{}},clipTo:{autoCSS:!1,css:{}},layerShouldBeConverted:{x:0,y:0},layerStyleShouldBeConvertedFrom:{},layerStyleShouldBeConvertedTo:{},startAt:"slidechangeonly",duration:1,ease:"easeInOutQuint"},textOut:{enabled:null,nodesFrom:{immediateRender:!1,cycle:{},opacity:1},nodesTo:{ease:"easeInOutQuint",immediateRender:!1,cycle:{},random:{},opacity:0},layerStyle:{},shouldBeConverted:{cycle:{},random:{},x:0,y:0},split:"",startAt:"allinandloopend",shiftNodes:.05,duration:1},loop:{enabled:null,from:{autoCSS:!1,immediateRender:!1,css:{}},to:{autoCSS:!1,css:{}},clipTo:{autoCSS:!1,immediateRender:!1,css:{}},layerShouldBeConverted:{transformOrigin:"50% 50% 0",x:0,y:0},ease:"linear",startAt:"allinend",repeatDelay:0,duration:1,count:0,yoyo:!1},hover:{enabled:null,from:{autoCSS:!1,immediateRender:!1,css:{}},to:{autoCSS:!1,css:{}},shouldBeConverted:{transformOrigin:"50% 50% 0"},alwaysOnTop:!0,easeIn:"easeOutQuart",durationIn:.5},parallax:{enabled:null},scroll:{enabled:null,shouldBeConverted:{transformOrigin:"50% 50% 0"},xresponsive:!0,yresponsive:!0},kenBurns:{scale:1.2},clip:{enabled:!1,default:{autoCSS:!1,immediateRender:!1,css:{clipPath:"polygon(0% 0%,100% 0%,100% 100%,0% 100%)"}},style:{autoCSS:!1,immediateRender:!1,css:{clipPath:"polygon(0% 0%,100% 0%,100% 100%,0% 100%)"}},none:{autoCSS:!1,immediateRender:!1,css:{clipPath:"polygon(-9999% -9999%,9999% -9999%,9999% 9999%,-9999% 9999%)"}}},filter:{values:{style:{},in:{},out:{},loop:{},hover:{},afterIn:{},afterLoop:{},bgFrom:{},bgTo:{}},transitions:{bg:null,in:null,out:null,loop:null,hover:null}},init:{wrapper:{autoCSS:!1,immediateRender:!1,css:{display:"block"}}},transformPerspective:{layer:500,text:500,loop:500,hover:500},reset:{wrapperOnTimelineEnd:{autoCSS:!1,css:{opacity:1,display:"none"}},wrapperOnSlideChange:{autoCSS:!1,css:{x:0,y:0,rotation:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0,opacity:1,display:"none"}},loopWrapperOnSlideChange:{autoCSS:!1,css:{x:0,y:0,rotation:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0,opacity:1}}}}};return{is:t.is,should:t.should,elements:t.elements,settings:t.settings,styleSettings:t.styleSettings,mediaSettings:t.mediaSettings,mediaProperties:t.mediaProperties,timeline:t.timeline,in:t.transitionProperties.in,inLayerFrom:t.transitionProperties.in.layerFrom,inLayerFromCSS:t.transitionProperties.in.layerFrom.css,inLayerStyleFrom:t.transitionProperties.in.layerStyleFrom,inLayerStyleFromCSS:t.transitionProperties.in.layerStyleFrom.css,inClipFrom:t.transitionProperties.in.clipFrom,inClipFromCSS:t.transitionProperties.in.clipFrom.css,inLayerTo:t.transitionProperties.in.layerTo,inLayerToCSS:t.transitionProperties.in.layerTo.css,inLayerStyleTo:t.transitionProperties.in.layerStyleTo,inLayerStyleToCSS:t.transitionProperties.in.layerStyleTo.css,inClipTo:t.transitionProperties.clip.style,inClipToCSS:t.transitionProperties.clip.style.css,inLayerShouldBeConverted:t.transitionProperties.in.layerShouldBeConverted,inLayerStyleShouldBeConvertedFrom:t.transitionProperties.in.layerStyleShouldBeConvertedFrom,inLayerStyleShouldBeConvertedTo:t.transitionProperties.in.layerStyleShouldBeConvertedTo,textIn:t.transitionProperties.textIn,textInLayerStyle:t.transitionProperties.textIn.layerStyle,textInNodesFrom:t.transitionProperties.textIn.nodesFrom,textInNodesTo:t.transitionProperties.textIn.nodesTo,textInNodesToCSS:t.transitionProperties.textIn.nodesTo.css,textInShouldBeConverted:t.transitionProperties.textIn.shouldBeConverted,out:t.transitionProperties.out,outLayerFrom:t.transitionProperties.out.layerFrom,outLayerFromCSS:t.transitionProperties.out.layerFrom.css,outLayerStyleFrom:t.transitionProperties.out.layerStyleFrom,outLayerStyleFromCSS:t.transitionProperties.out.layerStyleFrom.css,outClipFrom:t.transitionProperties.clip.style,outClipFromCSS:t.transitionProperties.clip.style.css,outLayerTo:t.transitionProperties.out.layerTo,outLayerToCSS:t.transitionProperties.out.layerTo.css,outLayerStyleTo:t.transitionProperties.out.layerStyleTo,outLayerStyleToCSS:t.transitionProperties.out.layerStyleTo.css,outClipTo:t.transitionProperties.out.clipTo,outClipToCSS:t.transitionProperties.out.clipTo.css,outLayerShouldBeConverted:t.transitionProperties.out.layerShouldBeConverted,outLayerStyleShouldBeConvertedFrom:t.transitionProperties.out.layerStyleShouldBeConvertedFrom,outLayerStyleShouldBeConvertedTo:t.transitionProperties.out.layerStyleShouldBeConvertedTo,textOut:t.transitionProperties.textOut,textOutLayerStyle:t.transitionProperties.textOut.layerStyle,textOutNodesFrom:t.transitionProperties.textOut.nodesFrom,textOutNodesTo:t.transitionProperties.textOut.nodesTo,textOutShouldBeConverted:t.transitionProperties.textOut.shouldBeConverted,loop:t.transitionProperties.loop,loopFrom:t.transitionProperties.loop.from,loopFromCSS:t.transitionProperties.loop.from.css,loopClipFrom:t.transitionProperties.clip.style,loopClipFromCSS:t.transitionProperties.clip.style.css,loopTo:t.transitionProperties.loop.to,loopToCSS:t.transitionProperties.loop.to.css,loopClipTo:t.transitionProperties.loop.clipTo,loopClipToCSS:t.transitionProperties.loop.clipTo.css,loopLayerShouldBeConverted:t.transitionProperties.loop.layerShouldBeConverted,hover:t.transitionProperties.hover,hoverFrom:t.transitionProperties.hover.from,hoverFromCSS:t.transitionProperties.hover.from.css,hoverTo:t.transitionProperties.hover.to,hoverToCSS:t.transitionProperties.hover.to.css,hoverShouldBeConverted:t.transitionProperties.hover.shouldBeConverted,parallax:t.transitionProperties.parallax,scroll:t.transitionProperties.scroll,scrollShouldBeConverted:t.transitionProperties.scroll.shouldBeConverted,kenBurns:t.transitionProperties.kenBurns,clip:t.transitionProperties.clip,filter:t.transitionProperties.filter,transformPerspective:t.transitionProperties.transformPerspective,init:t.transitionProperties.init,reset:t.transitionProperties.reset,countdownSettings:i}}}},J.slides={count:0,first:{},last:{},prev:{},current:{},next:{},init:function(){if(!document.body.contains(L))return!1;for(var e=$.find("> .ls-layer, > .ls-slide"),t=0,i=J.defaults.slide.keys,a=0,s=e.length;a<s;a++){var r=ie(e[a]),o=r[0].style,n=ie.extend(!0,{},J.defaults.slide.options),l=!1;if(J.slides.count++,r.removeClass("ls-layer").addClass("ls-slide").css({width:J.slider.initial.originalWidth,height:J.slider.initial.originalHeight}).appendTo(J.slider.$hiddenWrapper),r.data("ls"))for(var d=r.data("ls").split(";"),c=0;c<d.length;c++){var p,u,h=d[c].split(":");h[0]=ie.trim(h[0].toLowerCase()),h[1]=ie.trim(h[1]),-1==["thumbnail"].indexOf(h[0])&&(h[1]=h[1].toLowerCase()),""!==h[0]&&(void 0!==i[h[0]]?(p=void 0===i[h[0]][1]?h[0]:i[h[0]][1],u=J.functions.convert.properties(h[1]),-1===p.toLowerCase().indexOf("duration")&&-1===p.toLowerCase().indexOf("delay")&&"timeShift"!=p||(u/=1e3),n[i[h[0]][0]]||(n[i[h[0]][0]]={}),n[i[h[0]][0]][p]=u):n.data[h[0]]=h[1])}if(n.plugins&&!ie.isEmptyObject(n.plugins))for(var m in n.plugins)if(r.data("ls-plugin-"+m)){var f,g=r.data("ls-plugin-"+m).toLowerCase().split(";"),y={};for(f in n.plugins[m])y[f.toLowerCase()]=f;for(var v=0;v<g.length;v++){var w,x=g[v].split(":");x[0]=ie.trim(x[0]),""!==x[0]&&(w=J.functions.convert.properties(ie.trim(x[1])),-1===x[0].indexOf("duration")&&-1===x[0].indexOf("delay")||(w/=1e3),y[x[0]]?n.plugins[m][y[x[0]]]=w:n.plugins[m][x[0]]=w)}}else delete n.plugins[m];r.children("a.ls-link").length&&(n.data.$link=r.children("a.ls-link").first().css({zIndex:5}).attr("data-ls-slide-link",t+1).appendTo(J.slider.$layersWrapper),J.layers.set.smartLinks(n.data.$link)),n.data.$backgroundVideo=r.children('[data-ls*="backgroundvideo"]').first(),n.data.$backgroundVideo.find("iframe, video, audio").length||(n.data.$backgroundVideo=ie()),n.data.$backgroundVideo.length&&(null!==n.data.$backgroundVideo.attr("data-ls").split("backgroundvideo")[1].split(";")[0].match(/(true|enabled|on|1)/i)?(n.data.$backgroundVideo.addClass("ls-bg-video").css({width:"auto",height:"auto"}).children("video, audio, iframe").css({width:"100%",height:"100%"}),n.data.$backgroundVideo.append(ie('<div class="ls-bg-video-overlay"></div>'))):n.data.$backgroundVideo=!1),r.find("> .ls-bg").length&&(n.data.$background=r.find("> .ls-bg").first()),n.data.thumbnail||(r.find("> .ls-tn").length?l=r.find("> .ls-tn").first():r.find("> .ls-bg").length&&(l=r.find("> .ls-bg").first()),l?(n.data.thumbnail=J.functions.getURL(l),n.data.tnAlt=J.functions.getALT(l)):n.data.thumbnail=J.o.skinsPath+J.o.skin+"/nothumb.png"),(n.data.customtransition2d||n.data.customtransition3d)&&"undefined"==typeof layerSliderCustomTransitions&&(delete n.data.customtransition2d,delete n.data.customtransition3d,J.debugMode&&J.debug.add("warn","sliderInit.customTransitions",t+1)),"visible"===o.overflow&&(n.data.overflow="visible"),n.data.backgroundColor?n.data.$background||n.data.$backgroundVideo&&n.data.$backgroundVideo.length||(n.data.$background=ie("<img>").addClass("ls-bg").attr("src","data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==").appendTo(r)):n.data.backgroundColor=""===r[0].style.backgroundColor?"transparent":r[0].style.backgroundColor,J.slides[++t]={},J.slides[t].data=ie.extend(!0,{},J.defaults.slide.options.data,n.data),J.slides[t].parallax=n.parallax,J.slides[t].scroll=n.scroll,J.slides[t].kenBurns=n.kenBurns,J.slides[t].filter=n.filter,J.slides[t].index=t,J.slides[t].$layers=ie(),J.slides[t].plugins=n.plugins,J.slider.thumbnails.push(n.data.thumbnail),J.layers.init(r,t)}J.debugMode&&J.debug.groupEnd("sliderInit.style")},set:{slideIndexes:function(){var e=J.slides;e.prev.index=e.current.index,e.current.index=e.next.index,e.next.index=J.slideshow.get.slideInSequence(J.slideshow.direction),e.set.slidesData(),J.slider.set.attributes(),J.slides.indexesCreated=!0},nextSlideIndex:function(e){var t=J.slides;t.next.index=e,t.set.slidesData()},slidesData:function(){var e=J.slides;e.prev=-1!==e.prev.index?ie.extend(!0,{},e[e.prev.index]):{},e.current=-1!==e.current.index?ie.extend(!0,{},e[e.current.index]):{},e.next=-1!==e.next.index?ie.extend(!0,{},e[e.next.index]):{}},firstSlide:function(){var e,t=J.slides;t.first.index="random"===J.o.firstSlide?J.o.firstSlide:Math.max(J.functions.convert.properties(J.o.firstSlide,!0),1),J.o.shuffleSlideshow&&2<J.slides.count?J.o.twoWaySlideshow=!1:J.o.shuffleSlideshow=!1,t.first.index="random"==t.first.index?Math.floor(Math.random()*J.slides.count+1):t.first.index,!document.location.hash||(e=J.slides.deeplink(document.location.hash,!0))&&(J.slides.first.index=e),t.first.index=t.first.index<1||t.first.index>J.slides.count?1:t.first.index,J.o.shuffleSlideshow&&"random"!=J.o.firstSlide&&(t.first.index=J.o.firstSlide),t[t.first.index]&&t[t.first.index].data&&(t.first.data=ie.extend(!0,{},t[t.first.index].data)),J.o.playByScroll&&J.slideshow.set.normalizedSequence(),J.debugMode&&J.debug.options.firstSlide&&(t.first.index=J.debug.options.firstSlide)},actions:function(e,t){}},get:{deeplink:function(e){return e&&J.slides[e]&&J.slides[e].data&&J.slides[e].data.deeplink?J.slides[e].data.deeplink:null}},deeplink:function(e,t){for(var i=!1,a=1;a<J.slides.count+1;a++)if(J.slides[a].data.deeplink==e.substring(1)){if(i=a,t)return i;J.slideshow.changeTo(i,!0,!0)}if(!i&&t)return!1},slide:[]},J.countdown={calculateDate:function(e){var t,i=J.countdown.calculateDistance(e.date,e.repeat);switch(e.component){case"days":t=Math.floor(i/864e5);break;case"hours":t=Math.floor(i%864e5/36e5);break;case"minutes":t=Math.floor(i%36e5/6e4);break;case"seconds":t=Math.floor(i%6e4/1e3)}return t=Math.max(0,t||0),e.leadingZeros&&(t=t.toString().padStart(2,"0")),t},calculateDistance:function(e,t){var i=new Date(e),a=new Date;if(a<=i)return i.getTime()-a.getTime();switch(t){case"daily":var s=Math.ceil((a-i)/864e5);i.setDate(i.getDate()+s);break;case"weekly":s=Math.ceil((a-i)/6048e5);i.setDate(i.getDate()+7*s);break;case"monthly":var r=12*(a.getFullYear()-i.getFullYear())+a.getMonth()-i.getMonth();i.getDate()>a.getDate()&&r--,i.setMonth(i.getMonth()+r+1);break;case"yearly":r=a.getFullYear()-i.getFullYear();(i.getMonth()>a.getMonth()||i.getMonth()===a.getMonth()&&i.getDate()>a.getDate())&&r--,i.setFullYear(i.getFullYear()+r+1)}return i.getTime()-a.getTime()},startInterval:function(e,t){J.countdown.setLayerTimer(e,t),J.countdown.stopInterval(t),t.interval=setInterval(function(){J.countdown.setLayerTimer(e,t)},1e3)},setLayerTimer:function(e,t){e.text(this.calculateDate(t))},stopInterval:function(e){e.interval&&clearInterval(e.interval)}},J.layers={$all:ie(),getStyle:function(e,t){return-1!=e.indexOf("em")?e:(-1!=e.indexOf("%")?parseFloat(e)*t:parseFloat(e)||0).toString()},toNum:function(e,t){return t=parseFloat(t),-1!=e.indexOf("em")?parseFloat(e)*t:parseFloat(e)},init:function(e,t){if(!document.body.contains(L))return!1;e.find("noscript").remove();for(var i,a=e.find(".ls-bg, .ls-l, .ls-layer, .ls-lg, .ls-layer-group"),s=0,r=a.length;s<r;s++){var o=ie(a[s]),n=o[0],l=o.children();if(o.data("slideIndex",t),o.hasClass("ls-l"))o.removeClass("ls-l").addClass("ls-layer");else if(o.hasClass("ls-lg"))o.removeClass("ls-lg").addClass("ls-layer-group");else if(!o.is(".ls-bg, .ls-layer, .ls-layer-group")){o.remove();continue}o.is("a")&&1===l.length&&((n=(o=o.children().first())[0]).setAttribute("data-ls",n.parentNode.getAttribute("data-ls")),n.parentNode.removeAttribute("data-ls"),o.parent().removeClass("ls-layer"),o.addClass("ls-layer")),o.is(".ls-layer-group")&&o.children().data("$layerGroup",o);n=new J.defaults.layer.options(o,t);o.data(J.defaults.init.dataKey,n),-1!==o.attr("class").indexOf("ls-linkto-")&&this.set.linkTo(o),o.parent().is("a")?(o.parent().data("slideIndex")&&o.data("slideIndex",o.parent().data("slideIndex")),i=o.parent(),this.set.smartLinks(i)):i=o,i.attr("data-ls-actions")&&this.set.actions(i,JSON.parse(i.attr("data-ls-actions"))||{}),J.slides[t].$layers=J.slides[t].$layers.add(i)}},set:{mirrorTransitions:function(e){return e=e.split(" ")},actions:function(a,e){e.length;ie.each(e,function(e,t){var i=ie.extend(!0,{},t),t=i.trigger;a.on(t,function(e){setTimeout(function(e){J.actions.do(e)},i.delay||0,i)})})},smartLinks:function(e){var a=e.attr("href"),t=e.attr("target"),i="";if(t&&-1!==t.indexOf("ls-scroll")){switch(a){case"pagetop":i="Scroll to page top";break;case"pagebottom":i="Scroll to page bottom";break;case"slidertop":i="Scroll to the top of the slider";break;case"":case"sliderbottom":i="Scroll to the bottom of the slider";break;default:i="Scroll to a specified location on the page"}J.layers.set.ariaLabel(e,i),e.on("click."+W,function(e){e.preventDefault();var t,i=document.body.scrollHeight-te.viewport.height;if(a)switch(a){case"pagetop":t=0;break;case"pagebottom":t=i;break;case"slidertop":t=J.slider.offset.top;break;case"":case"sliderbottom":t=J.slider.offset.top+J.slider.height;break;default:t=ie(a).filter(":visible").last().length?ie(a).filter(":visible").last().offset().top:J.slider.offset.top+J.slider.height}t+=J.o.scrollModifier,t=Math.min(t,i),t=Math.max(0,t),ee.TweenMax.to("html, body",1,{scrollTop:t,ease:ee.Quint.easeInOut})})}if(-1!==J.defaults.init.controls.indexOf(a.toLowerCase())||a.match(/^\#[0-9]/)){var s=ie.trim(a.toLowerCase().split("#")[1]),r=parseInt(s);switch(s){case"playmedia":i="play active media elements on current slide";break;case"pausemedia":i="pause active media elements on current slide";break;case"prev":i="jump to the previous slide";break;case"next":i="jump to the next slide";break;case"start":i="start slideshow";break;case"stop":i="stop slideshow";break;case"replay":i="replay slide";break;case"reverse":i="reverse slide";break;case"reverse-replay":case"reversereplay":i="reverse, than replay slide";break;default:"number"==typeof r&&r==r&&(i="jump to slide "+r)}J.layers.set.ariaLabel(e,i),e.on("click."+W,function(e){if(e.preventDefault(),-1!==["prev","next","last","first","start","stop"].indexOf(s))J.navigation[s]("clicked");else if("number"==typeof r&&r==r)J.slideshow.changeTo(r,!0,!0);else if(!J.slider.state.changingSlides)switch(s){case"replay":J.api.methods("replay");break;case"reverse":J.api.methods("reverse");break;case"reverse-replay":case"reversereplay":J.api.methods("reverse",!0);break;case"playmedia":J.media.functions.playActiveMedia();break;case"pausemedia":J.media.functions.pauseActiveMedia();break;case"unmute":case"unmutemedia":J.media.unmute.multipleMediaElements()}})}},ariaLabel:function(e,t){e.attr("aria-label")||e.attr("aria-label",t)},linkTo:function(e){for(var t=e.attr("class").split(" "),i=1,a=0;a<t.length;a++)-1!=t[a].indexOf("ls-linkto-")&&(i=parseInt(t[a].split("ls-linkto-")[1]));e.data(J.defaults.init.dataKey).settings.linkedToSlide=i,e.css({cursor:"pointer"}).on("click."+W,function(e){e.preventDefault(),$.layerSlider(ie(this).data(J.defaults.init.dataKey).settings.linkedToSlide)})},wrappers:function(e,t,i){t.original;t.is.slideBackground||t.is.backgroundVideo?(t.elements.$bgWrapper=e.closest(".ls-bg-wrap"),t.elements.$bgOuterWrapper=e.closest(".ls-bg-outer")):(t.elements.$wrapper=e.closest(".ls-in-out"),t.elements.$wrapper.data(J.defaults.init.dataKey,{}),t.settings.wrapperData=t.elements.$wrapper.data(J.defaults.init.dataKey),t.elements.$clipWrapper=e.closest(".ls-clip"),t.elements.$clipWrapper.data(J.defaults.init.dataKey,{}),t.settings.clipWrapperData=t.elements.$clipWrapper.data(J.defaults.init.dataKey),t.elements.$loopWrapper=e.closest(".ls-loop"),t.elements.$loopWrapper.data(J.defaults.init.dataKey,{}),t.settings.loopWrapperData=t.elements.$loopWrapper.data(J.defaults.init.dataKey)),t.parallax.enabled&&(t.elements.$parallaxWrapper=e.closest(".ls-parallax"),t.elements.$parallaxWrapper.data(J.defaults.init.dataKey,{parallax:{}}),t.settings.parallaxWrapperData=t.elements.$parallaxWrapper.data(J.defaults.init.dataKey),J.transitions.layers.parallax.addLayer(t.elements.$parallaxWrapper,t.settings.parallaxWrapperData.parallax,t,i)),t.scroll.enabled&&(t.elements.$scrollWrapper=e.closest(".ls-scroll"),t.elements.$scrollTransformWrapper=e.closest(".ls-scroll-transform"),t.elements.$scrollWrapper.data(J.defaults.init.dataKey,{scroll:{}}),t.settings.scrollWrapperData=t.elements.$scrollWrapper.data(J.defaults.init.dataKey),J.transitions.layers.scroll.addLayer(t.elements.$scrollWrapper,t.settings.scrollWrapperData.scroll,t,i)),t.hover.enabled&&!J.slides[i].data.globalhover&&J.transitions.layers.hover.set(e,t),t.elements.$outerWrapper=e.closest(".ls-z"),t.elements.$outerStyleWrapper=t.elements.$outerWrapper.find("> .ls-wrapper"),t.settings.trmask&&t.elements.$outerStyleWrapper.css("overflow","hidden"),t.elements.$outerWrapper.attr("data-slide-index",i),t.elements.$innerWrapper=e.closest(".ls-wrapper").addClass("ls-inner-wrapper"),t.elements.$_innerWrappers=t.elements.$outerWrapper.find(".ls-wrapper"),t.elements.$_allWrappers=t.elements.$outerWrapper.add(t.elements.$_innerWrappers),t.elements.$_outerWrappers=t.elements.$outerWrapper.add(t.elements.$outerWrapper.find(".ls-wrapper:not(.ls-inner-wrapper)"))},singleLayer:function(e,t){J.layers.set.style(e),J.layers.set.properties(e,t),J.layers.set.dataAttribute("add",e,"hidden"),e.data("hasBeenSet",!0)},style:function(e){var t,i,a,s,r,o,n,l,d,c,p,u,h=e[0],m=e.data(J.defaults.init.dataKey),f=h.style,g=J.layers,y=null,v=null,w=null,x=null,S=0,b=0,T=!1,k=parseFloat(h.style.fontSize)||36,C=h.getBoundingClientRect(),P=!e.is("img, picture")&&window.LS_previewZoom||1,O=""!==f.paddingLeft?g.getStyle(f.paddingLeft,J.slider.initial.percW):g.getStyle(e.css("padding-left"),J.slider.initial.percW),I=""!==f.paddingRight?g.getStyle(f.paddingRight,J.slider.initial.percW):g.getStyle(e.css("padding-right"),J.slider.initial.percW),L=""!==f.paddingTop?g.getStyle(f.paddingTop,J.slider.initial.percH):g.getStyle(e.css("padding-top"),J.slider.initial.percH),$=""!==f.paddingBottom?g.getStyle(f.paddingBottom,J.slider.initial.percH):g.getStyle(e.css("padding-bottom"),J.slider.initial.percH),W=""!==f.marginLeft?g.getStyle(f.marginLeft,J.slider.initial.percW):g.getStyle(e.css("margin-left"),J.slider.initial.percW),M=""!==f.marginRight?g.getStyle(f.marginRight,J.slider.initial.percW):g.getStyle(e.css("margin-right"),J.slider.initial.percW),B=""!==f.marginTop?g.getStyle(f.marginTop,J.slider.initial.percH):g.getStyle(e.css("margin-top"),J.slider.initial.percH),_=""!==f.marginBottom?g.getStyle(f.marginBottom,J.slider.initial.percH):g.getStyle(e.css("margin-bottom"),J.slider.initial.percH);h.style.margin="0",n=""!==f.borderLeftWidth?g.getStyle(f.borderLeftWidth,J.slider.initial.percW):g.getStyle(e.css("border-left-width"),J.slider.initial.percW),d=""!==f.borderRightWidth?g.getStyle(f.borderRightWidth,J.slider.initial.percW):g.getStyle(e.css("border-right-width"),J.slider.initial.percW),l=""!==f.borderTopWidth?g.getStyle(f.borderTopWidth,J.slider.initial.percH):g.getStyle(e.css("border-top-width"),J.slider.initial.percH),c=""!==f.borderBottomWidth?g.getStyle(f.borderBottomWidth,J.slider.initial.percH):g.getStyle(e.css("border-bottom-width"),J.slider.initial.percH),1!==J.media.properties.$allMediaLayers.filter(e).length&&!e.children("iframe").length||(p=(V=e.children()).attr("width")?V.attr("width"):V.width(),u=V.attr("height")?V.attr("height"):V.height(),300===parseInt(p)&&150===parseInt(u)&&(p=640,u=360),""!==h.style.width&&"auto"!==h.style.width||e.css("width",p),""!==h.style.height&&"auto"!==h.style.height||e.css("height",u),"100%"===f.width&&"100%"===f.height&&(f.left="50%",f.top="50%"),T=p/u,V.css({width:"100%",height:"100%"}));var F,A,z,D,V=m.attributes;e.is("img, picture")&&(D=(A=(F=e.is("img")?e:e.find("img")).data("preloadedWidth"))/(z=F.data("preloadedHeight")),(!f.width&&!f.height||"auto"===f.width&&"auto"===f.height)&&V&&(V.width&&V.height?(t=-1===V.width.indexOf("%")?parseInt(V.width):(S=parseInt(V.width),g.getStyle(V.width,J.slider.initial.percW)),i=-1===V.height.indexOf("%")?parseInt(V.height):(b=parseInt(V.height),g.getStyle(V.height,J.slider.initial.percH))):V.maxWidth&&(e[0].style.width=V.maxWidth+"px",t=V.maxWidth,i=e.height()))),F=C.width?C.width/P:(C.right-C.left)/P,P=C.height?C.height/P:(C.bottom-C.top)/P,t||(t=f.width,-1!==f.width.indexOf("%")&&(S=parseInt(f.width)),t=(t=""!==t&&"auto"!==t?g.getStyle(t,J.slider.initial.percW):F-J.layers.toNum(O,k)-J.layers.toNum(I,k)-J.layers.toNum(n,k)-J.layers.toNum(d,k))||"auto"),i||(i=f.height,-1!==f.height.indexOf("%")&&(b=parseInt(f.height)),i=(i=""!==i&&"auto"!==i?g.getStyle(i,J.slider.initial.percH):P-J.layers.toNum(L,k)-J.layers.toNum($,k)-J.layers.toNum(l,k)-J.layers.toNum(c,k))||"auto"),0===parseInt(i)&&(e.addClass("ls-force-height-auto"),parseInt(h.getBoundingClientRect().height),e.removeClass("ls-force-height-auto")),T=T||("auto"!==t&&"auto"!==i?t/i:"auto"),!e.is("img, picture")||f.width||f.height||V&&(!V||V.width||V.height)||A===t&&z===i||(A!==t?i=(t=5<A?A:t)/(T=5<A?D:T):z!==i&&(t=(i=5<z?z:i)*(T=5<z?D:T))),parseFloat(e.css("opacity")),(z=f.clipPath||f.clip||!1)&&(m.clip.style.css.clipPath=z,m.clip.userDefined=!0,f.clip="",f.clipPath=""),D=f.webkitFilter||f.filter;var R,E,N,H;f.minWidth&&""!==f.minWidth&&(-1!==f.minWidth.indexOf("%")&&(a=parseInt(f.minWidth)),y=-1!==f.minWidth.indexOf("em")?f.minWidth:parseFloat(f.minWidth)),f.minHeight&&""!==f.minHeight&&(-1!==f.minHeight.indexOf("%")&&(s=parseInt(f.minHeight)),v=-1!==f.minHeight.indexOf("em")?f.minHeight:parseFloat(f.minHeight)),f.maxWidth&&""!==f.maxWidth&&(-1!==f.maxWidth.indexOf("%")&&(r=parseInt(f.maxWidth)),w=-1!==f.maxWidth.indexOf("em")?f.maxWidth:parseFloat(f.maxWidth)),f.maxHeight&&""!==f.maxHeight&&(-1!==f.maxHeight.indexOf("%")&&(o=parseInt(f.maxHeight)),x=-1!==f.maxHeight.indexOf("em")?f.maxHeight:parseFloat(f.maxHeight)),m.original={clip:z,left:f.left||"0",top:f.top||"0",width:"auto"!==t?parseFloat(t):"auto",height:"auto"!==i?parseFloat(i):"auto",minWidth:y,minHeight:v,maxWidth:w,maxHeight:x,sWidth:f.width,sHeight:f.height,percentWidth:S,percentHeight:b,percentMinWidth:a||null,percentMinHeight:s||null,percentMaxWidth:r||null,percentMaxHeight:o||null,backgroundImage:f.backgroundImage,backgroundSize:f.backgroundSize||"cover",backgroundRepeat:f.backgroundRepeat,backgroundPosition:f.backgroundPosition,ratio:T,paddingLeft:O,paddingTop:L,paddingRight:I,paddingBottom:$,marginLeft:W,marginRight:M,marginTop:B,marginBottom:_,borderLeftWidth:n,borderTopWidth:l,borderRightWidth:d,borderBottomWidth:c,borderRadius:(R=e,N=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],H="",(E=f).borderRadius&&(-1===E.borderRadius.indexOf("/")?ie.each(["border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius"],function(e,t){e=E[N[e]],t=R.css(t),t=ie.trim(void 0!==e&&e.length?e:t);-1==t.indexOf(" ")&&-1==t.indexOf("em")&&-1==t.indexOf("%")&&(t=parseInt(t)),H+=t+" "}):H=E.borderRadius),ie.trim(H)),fontSize:k,lineHeight:h.style.lineHeight,letterSpacing:h.style.letterSpacing,textStrokeWidth:h.style.textStrokeWidth||h.style.webkitTextStrokeWidth,color:e.css("color"),boxShadow:h.style.boxShadow,textShadow:h.style.textShadow,zIndex:parseInt(e.css("z-index"))||"auto",filter:D,backgroundColor:e.css("background-color"),dataLS:e.attr("data-ls")||"",styles:e.attr("style")||""},f.width&&"auto"!==f.width||(m.original.autoWidth=!0),f.height&&"auto"!==f.height||(m.original.autoHeight=!0),f.zIndex="auto",m.responsive={left:f.left?parseInt(f.left):0,top:f.top?parseInt(f.top):0,width:t,height:i},e.is("picture")&&e.css({width:m.original.width,height:m.original.height})},parseScaleProperties:function(e){for(var t=[{x:"scalexin",y:"scaleyin",s:"scalein"},{x:"textscalexin",y:"textscaleyin",s:"textscalein"},{x:"loopscalex",y:"loopscaley",s:"loopscale"},{x:"textscalexout",y:"textscaleyout",s:"textscaleout"},{x:"scalexout",y:"scaleyout",s:"scaleout"},{x:"hoverscalex",y:"hoverscaley",s:"hoverscale"}],i=0;i<t.length;i++){var a=t[i];e[a.x]&&e[a.y]&&e[a.x]===e[a.y]&&(e[a.s]=e[a.x],delete e[a.x],delete e[a.y])}return e},properties:function(e,t,i){t=t||e.data("slideIndex");var a=e.data(J.defaults.init.dataKey);e.data("ls");if(a.is.textLayer=!(e.is("img, picture")||a.is.mediaLayer||a.is.backgroundVideo),(a.self=e).data("ls")){for(var s,r,o,n,l=J.defaults.layer.keys,d=e.data("ls").split(";"),c={},p=0;p<d.length;p++)ie.trim(d[p])&&(s=d[p].indexOf(":"),r=d[p].substring(0,s).trim(),o=d[p].substring(s+1).trim(),r&&(c[r]=o));for(n in d=null,c=this.parseScaleProperties(c)){var u=null,h=null,m=null,f=null,g=!1,y=!1;if(r=n.toLowerCase(),o=c[n],-1==["thumbnail","poster"].indexOf(r)&&(o=o.toLowerCase()),(r=r.replace("split","text")).match(/(text)/)&&(y=!0),void 0!==l[r]){if(u=l[r][0],f=o,"overlay"!==r&&(f=J.functions.convert.properties(o)),-1!==r.indexOf("mirror")&&(f=J.layers.set.mirrorTransitions(o)),!o||-1===o.indexOf("random")&&o.charAt(0)!==J.defaults.init.openingBracket||(g=!0),g&&(y||-1!==r.indexOf("offset")||(f=J.functions.convert.randomProperties(f,u,e,a)),a.should.update||(a.should.update=!0)),"number"==typeof f&&u.match(/(duration|startat|shift|delay)/i)&&(f/=1e3),r.match(/(fade)(.+)/))switch(f){case!0:f=0;break;case!1:f=1}void 0!==(m=l[r][1])?""!==f?"object"==typeof f&&-1==r.indexOf("mirror")?r.match(/(text)/)?m.match(/(converted)/i)?a[m][u]=f:a[m].cycle[u]=f:(h=J.functions.convert.properties(ie.trim(f[0])),J.debugMode&&J.debug.add("warn","layerInit.prop1",[r,f,h]),"number"==typeof h&&u.match(/(duration|startat|shift|delay)/i)&&(h/=1e3),a[m][u]=h):y&&g?a[m].random[u]=f:a[m][u]=f:J.debugMode&&J.debug.add("warn","layerInit.prop2",r):a[u][r]=f}else"clip"===r?(a.original.clip=o,a.clip.style.css.clipPath=o):J.debugMode&&J.debug.add("warn","layerInit.prop4",r)}}if(J.browser.isOld&&(a.in.enabled=!0,a.textIn.enabled=!1,a.textOut.enabled=!1,a.textIn.type=null,a.textOut.type=null),a.in.enabled&&(a.inLayerTo.ease=a.inLayerStyleTo.ease=a.inClipTo.ease=J.functions.convert.easing(a.in.ease)),void 0!==a.inLayerStyleShouldBeConvertedFrom.borderRadius&&(a.inLayerStyleShouldBeConvertedTo.borderRadius=a.original.borderRadius),void 0!==a.outLayerStyleShouldBeConvertedTo.borderRadius&&(a.outLayerStyleShouldBeConvertedFrom.borderRadius=a.original.borderRadius),a.inLayerStyleFromCSS.backgroundColor&&(a.inLayerStyleToCSS.backgroundColor=a.original.backgroundColor),a.outLayerStyleToCSS.backgroundColor&&(a.outLayerStyleFromCSS.backgroundColor=a.original.backgroundColor),a.inLayerStyleFromCSS.color&&(a.inLayerStyleToCSS.color=a.original.color),a.outLayerStyleToCSS.color&&(a.outLayerStyleFromCSS.color=a.original.color),void 0!==a.inLayerStyleShouldBeConvertedFrom.width&&(a.inLayerStyleShouldBeConvertedTo.width=a.original.width),void 0!==a.outLayerStyleShouldBeConvertedTo.width&&(a.outLayerStyleShouldBeConvertedFrom.width=a.original.width),void 0!==a.inLayerStyleShouldBeConvertedFrom.height&&(a.inLayerStyleShouldBeConvertedTo.height=a.original.height),void 0!==a.outLayerStyleShouldBeConvertedTo.height&&(a.outLayerStyleShouldBeConvertedFrom.height=a.original.height),void 0!==a.out.showUntil&&0!==a.out.showUntil&&(a.out.startAt="transitioninend + "+a.out.showUntil),-1!==a.out.startAt.indexOf("slidechangeonly")&&"slidechangeonly"!==a.out.startAt&&(a.out.startAt="slidechangeonly"),a.out.enabled&&(a.outLayerTo.ease=a.outLayerStyleTo.ease=a.outClipTo.ease=J.functions.convert.easing(a.out.ease)),ie.isNumeric(a.loop.count)&&(0<a.loop.count||-1===a.loop.count)&&!1!==a.loop.enabled?(a.loop.enabled=!0,a.loopTo.ease=a.loopClipTo.ease=J.functions.convert.easing(a.loop.ease),-1!==a.loop.count?a.loop.yoyo?a.loop.repeat=2*a.loop.count-1:a.loop.repeat=a.loop.count-1:a.loop.repeat=-1):a.loop.enabled=!1,(!ie.isEmptyObject(a.hoverToCSS)||a.hoverShouldBeConverted.x||a.hoverShouldBeConverted.y||a.hoverShouldBeConverted.borderRadius||a.hoverShouldBeConverted.filter)&&!1!==a.hover.enabled?(a.hover.enabled=!0,a.hover.easeOut||(a.hover.easeOut=a.hover.easeIn),a.hover.easeIn=J.functions.convert.easing(a.hover.easeIn),a.hover.easeOut=J.functions.convert.easing(a.hover.easeOut,!0),a.hover.durationOut||(a.hover.durationOut=a.hover.durationIn),ee.TweenMax.set(e[0],{autoCSS:!1,css:{transformPerspective:a.hoverShouldBeConverted.transformPerspective}})):a.hover.enabled=!1,a.parallax.level&&ie.isNumeric(a.parallax.level)&&0!==a.parallax.level&&!1!==a.parallax.enabled?(a.parallax.enabled=!0,a.parallax.reset&&e.attr("data-ls-parallax-reset","")):a.parallax.enabled=!1,a.is.slideBackground){var v={scale:1,rotation:0};if(J.slides[t].kenBurns.zoom&&(a.kenBurns=J.slides[t].kenBurns),a.kenBurns.zoom){switch(a.kenBurns.from={},a.kenBurns.to={},a.kenBurns.zoom){case"out":a.kenBurns.from.scale=a.kenBurns.scale||1,a.kenBurns.from.rotation=a.kenBurns.rotation||0,a.kenBurns.to=v;break;case"in":a.kenBurns.from=v,a.kenBurns.to.scale=a.kenBurns.scale||1,a.kenBurns.to.rotation=a.kenBurns.rotation||0}delete a.kenBurns.scale,delete a.kenBurns.rotation}else a.kenBurns.from=v,a.kenBurns.to=v;ie.isEmptyObject(J.slides[t].filter)||(J.slides[t].filter.from&&(a.filter.values.bgFrom=J.transitions.layers.filters.convert(J.slides[t].filter.from)),J.slides[t].filter.to&&(a.filter.values.bgTo=J.transitions.layers.filters.convert(J.slides[t].filter.to)))}if(a.textIn.type&&-1===J.defaults.layer.splitTypeKeys.indexOf(a.textIn.type)&&(J.debugMode&&J.debug.add("warn","layerInit.splitType3a",[e[0].tagName,a.textIn.type]),delete a.textIn.type,delete a.textIn.ns,a.textIn.enabled=!1),a.textOut.type&&-1===J.defaults.layer.splitTypeKeys.indexOf(a.textOut.type)&&(J.debugMode&&J.debug.add("warn","layerInit.splitType3b",[e[0].tagName,a.textOut.type]),delete a.textOut.type,delete a.textOut.ns,a.textOut.enabled=!1),a.textIn.type||a.textOut.type){var w=0;if(a.is.textLayer?(a.textIn.type&&(a.textIn.enabled=!0,a.textInNodesTo.ease=J.functions.convert.easing(a.textInNodesTo.ease),a.textIn.split=a.textIn.type.split("_")[0],e.children().length&&J.debugMode&&(w=1)),a.textOut.type&&!J.o.inLayerPreview&&(a.textOut.enabled=!0),a.textOut.enabled&&(a.textOutNodesTo.ease=J.functions.convert.easing(a.textOutNodesTo.ease)),a.textOut.enabled&&a.textOut.type.split("_")[0]!==a.textIn.split&&(a.textIn.split+=", "+a.textOut.type.split("_")[0],e.children().length&&J.debugMode&&(w=1)),-1!==a.textIn.split.indexOf("chars")&&-1===a.textIn.split.indexOf("words")&&(a.textIn.split+=", words"),-1!==a.textIn.split.indexOf("words")&&-1===a.textIn.split.indexOf("lines")&&(a.textIn.split+=", lines")):(delete a.textIn.type,delete a.textOut.type,delete a.textIn.ns,delete a.textOut.ns,J.debugMode&&(w=2)),J.debugMode&&0!==w&&t&&!i)switch(w){case 1:J.debug.add("warn","layerInit.splitType1",[e.prop("nodeName"),t]);break;case 2:J.debug.add("warn","layerInit.splitType2",[t,e.prop("nodeName")])}}(a.inClipFromCSS.clipPath||a.outClipToCSS.clipPath||a.loopClipToCSS.clipPath||a.clip.style.css.clipPath!==a.clip.default.css.clipPath||a.clip.userDefined)&&(a.inClipFromCSS.clipPath?"="==a.inClipFromCSS.clipPath&&(a.inClipFromCSS.clipPath=a.clip.style.css.clipPath):a.inClipFromCSS.clipPath=a.clip.default.css.clipPath,a.outClipToCSS.clipPath?"="==a.outClipToCSS.clipPath&&(a.outClipToCSS.clipPath=a.clip.style.css.clipPath):a.outClipToCSS.clipPath=a.clip.default.css.clipPath,a.clip.enabled=!0),a.textIn.enabled&&"textmask"===a.textInLayerStyle.overflow&&e.attr("data-ls-mask-text-in",""),a.textOut.enabled&&"textmask"===a.textOutLayerStyle.overflow&&e.attr("data-ls-mask-text-out",""),a.in.enabled&&a.inLayerToCSS.hasOwnProperty("scale")&&(delete a.inLayerToCSS.scaleX,delete a.inLayerToCSS.scaleY),a.out.enabled&&a.outLayerToCSS.hasOwnProperty("scale")&&(delete a.outLayerToCSS.scaleX,delete a.outLayerToCSS.scaleY),a.inLayerStyleShouldBeConvertedFrom.filter&&(a.filter.values.in=J.transitions.layers.filters.convert(a.inLayerStyleShouldBeConvertedFrom.filter)),a.filter.values.style=J.transitions.layers.filters.convert(a.original.filter),a.outLayerStyleShouldBeConvertedTo.filter&&(a.filter.values.out=J.transitions.layers.filters.convert(a.outLayerStyleShouldBeConvertedTo.filter)),a.loopLayerShouldBeConverted.filter&&(a.filter.values.loop=J.transitions.layers.filters.convert(a.loopLayerShouldBeConverted.filter)),a.hoverShouldBeConverted.filter&&(a.filter.values.hover=J.transitions.layers.filters.convert(a.hoverShouldBeConverted.filter)),a.in.enabled||(a.in.duration=0),a.textIn.enabled||(a.textIn.duration=0),a.loop.enabled||(a.loop.duration=0),a.textOut.enabled||(a.textOut.duration=0),a.out.enabled||(a.out.duration=0),e.attr("data-ls-slidein",t),void 0!==a.settings.static&&"none"!==a.settings.static?(0!==(w=parseInt(a.settings.static))&&"forever"!==a.settings.static?(e.attr("data-ls-slideout",w),a.settings.slideOut=w):a.settings.slideOut=0,a.is.static=!0,e.attr("data-ls-static","1")):e.attr("data-ls-slideout",t),a.is.mediaLayer&&e.children("video, audio").length&&J.media.html5.singleInit(e.children("video, audio").eq(0)),a.is.backgroundVideo&&a.styleSettings.overlay&&e.find(".ls-bg-video-overlay").css({backgroundImage:"url("+a.styleSettings.overlay+")"}),a.styleSettings.minfontsize&&(a.styleSettings.minfontsize=parseFloat(a.styleSettings.minfontsize)),a.styleSettings.minmobilefontsize&&(a.styleSettings.minmobilefontsize=parseFloat(a.styleSettings.minmobilefontsize)),J.slider.isPopup&&(a.is.pinned=!1),a.is.pinned&&(J.slider.hasPinnedLayers=!0,J.slider.$layersWrapper.is(".ls-layers-clip")||J.slider.$layersWrapper.addClass("ls-layers-clip"),!te.isMobile&&!J.browser.isSafari||J.slider.$layersWrapper.is(".ls-m-layers-clip")||J.slider.$layersWrapper.addClass("ls-m-layers-clip")),a.styleSettings.smartbg&&(e.attr("data-ls-smart-bg","").css("--bgs",a.original.backgroundSize),a.styleSettings.smartbg=a.styleSettings.smartbg.toString(),a.is.smartBG=!0)},dataAttribute:function(e,t,i){var a=t.add(t.closest(".ls-wrapper.ls-z"));switch(e){case"remove":a.removeAttr("data-ls-"+i);break;case"add":"active"===i&&a.removeAttr("data-ls-hidden"),"hidden"===i&&a.removeAttr("data-ls-active data-ls-animating-in data-ls-text-animating-in data-ls-animating-out data-ls-text-animating-out"),-1===i.indexOf("in")&&-1===i.indexOf("out")||(a.removeAttr("data-ls-active"),a.removeAttr("data-ls-hidden")),"active"===i&&t.is("[data-ls-animating-in], [data-ls-text-animating-in]")||"hidden"===i&&t.is("[data-ls-animating-out], [data-ls-text-animating-out]")||a.attr("data-ls-"+i,"")}}},get:function(e){var t,i,a,s,r,o=this.$all;return e&&(t="in",a=i="",s=':not(".ls-bg")',r=':not(".ls-bg-video")',-1==(e=e.toLowerCase()).indexOf("bgvideo")&&-1==e.indexOf("backgroundvideo")||(r="",e=e.replace("bgvideo","").replace("backgroundvideo","")),-1!=e.indexOf("video")&&(a+=", > video",e=e.replace("video","")),-1!=e.indexOf("audio")&&(a+=", > audio",e=e.replace("audio","")),-1!=e.indexOf("html5")&&(a+=", > video, > audio",e=e.replace("html5","")),-1!=e.indexOf("youtube")&&(a+=', > iframe[src*="youtube-nocookie.com"], > iframe[src*="youtube.com"], > iframe[src*="youtu.be"], > iframe[data-src*="youtube-nocookie.com"], > iframe[data-src*="youtube.com"], > iframe[data-src*="youtu.be"]',e=e.replace("youtube","")),-1!=e.indexOf("vimeo")&&(a+=', > iframe[src*="player.vimeo"], > iframe[data-src*="player.vimeo"]',e=e.replace("vimeo","")),","==a.charAt(0)&&(a=a.substring(2,a.length)),-1!=e.indexOf("out")&&(t="out"),-1==e.indexOf("img")&&-1==e.indexOf("image")||(i="img"),-1==e.indexOf("bg")&&-1==e.indexOf("background")&&-1==e.indexOf("bgonly")||(s=""),o=-1!=e.indexOf("current")?o.filter(i+"[data-ls-slide"+t+'="'+J.slides.current.index+'"]'+s+r):-1!=e.indexOf("next")?o.filter(i+"[data-ls-slide"+t+'="'+J.slides.next.index+'"]'+s+r):o.filter(i+s+r),-1!=e.indexOf("notactive")&&(o=o.filter(".ls-bg, .ls-bg-video, :hidden"),e=e.replace("notactive","")),-1!=e.indexOf("active")&&(o=o.filter(':visible:not(.ls-bg, .ls-bg-video), [data-ls-static="1"]:not([data-ls-hidden])'),e=e.replace("active","")),-1!=e.indexOf("notstatic")&&(o=o.filter(':not([data-ls-static="1"])'),e=e.replace("notstatic","")),-1!=e.indexOf("static")&&(o=o.filter('[data-ls-static="1"]'),e=e.replace("static","")),-1!=e.indexOf("bgonly")&&(o=o.filter(".ls-bg"),e=e.replace("bgonly","")),-1!=e.indexOf("countdown")&&(o=o.filter("[data-countdown]"),e=e.replace("countdown","")),""!==a&&(o=o.find(a))),o},update:{data:function(e,t,i){var a,s,r;switch(e instanceof jQuery||(e=ie(e)),i&&e.attr("data-ls",i).data("ls",i),a=(s=e.data(J.defaults.init.dataKey)).is.onSlide,r=s.original,t){default:case"transitions":s.settings.timelineIsCalculated=!1,J.layers.set.properties(e,a,!0);break;case"all":e.data(J.defaults.init.dataKey,new J.defaults.layer.options(e,a)),(s=e.data(J.defaults.init.dataKey)).original=r,J.layers.set.properties(e,a,!0),J.layers.set.wrappers(e,s,a)}}},wrap:function(u,e){var t,h;J.slides[u].wrapped||"wrapping"===J.slides[u].wrapped||(J.slides[u].wrapped="wrapping",t=e?25:0,e=J.slides[u].$layers,0===(h=e.length)?J.slides[u].wrapped=!0:e.each(function(c,p){J.timeouts["slide-"+u+"-layer-"+c]=setTimeout(function(){delete J.timeouts["slide-"+u+"-layer-"+c];var e=ie(p),t=e,i="",a=!1,s="";e.hasClass("ls-hide-phone")&&(s+=" ls-hide-on-phone"),e.hasClass("ls-hide-tablet")&&(s+=" ls-hide-on-tablet"),e.hasClass("ls-hide-desktop")&&(s+=" ls-hide-on-desktop"),e.removeClass("ls-hide-phone ls-hide-tablet ls-hide-desktop"),t.is("a")&&1===t.children().length&&(a=!0,e=t.find(".ls-layer"));var r,o,n,l=e.data(J.defaults.init.dataKey);if(!l)return!0;d=e.data("$layerGroup")||J.slider.$layersWrapper,l.is.backgroundVideo?d=J.slider.$bgVideosWrapper:l.is.slideBackground&&(d=J.slider.$slideBGWrapper),e.data("hasBeenSet")||J.layers.set.singleLayer(e,u),l.textIn.split&&(n=new ee.SplitType(e[0],{split:l.textIn.split}),l.textIn.type&&(l.textIn.ns=n[l.textIn.type.split("_")[0]]),l.textOut.type&&(l.textOut.ns=n[l.textOut.type.split("_")[0]]),-1!==e.css("background-clip").indexOf("text")&&(r=e.find(".ls-ch"),o=e.find(".ls-wd"),n=e.find(".ls-ln"),l.textIn.$nodesForBackgroundClip=r.length?r:o.length?o:n,r.length?e.addClass("ls-has-chars"):o.length?e.addClass("ls-has-words"):e.addClass("ls-has-lines"),l.textIn.$nodesForBackgroundClip.each(function(){var e=ie(this),t=ie.trim(e.text()),i=document.createTextNode(t),t=ie(i),i=ie('<div class="ls-textnode-bgclip-wrap"><div class="ls-textnode"></div></div>').css({backgroundColor:l.original.backgroundColor,backgroundImage:l.original.backgroundImage,backgroundSize:l.original.backgroundSize,backgroundRepeat:l.original.backgroundRepeat,backgroundPosition:l.original.backgroundPosition});e.css({verticalAlign:"top"}).text(""),t.clone().appendTo(e).wrap('<div class="ls-textnode-dummy"></div>'),t.appendTo(e).wrap(i)}))),i=l.is.slideBackground||l.is.backgroundVideo?'<div class="ls-wrapper ls-bg-outer"><div class="ls-wrapper ls-bg-wrap"></div></div>':(l.clip.enabled&&(i='<div class="ls-wrapper ls-clip"></div>'),l.loop.enabled&&(i='<div class="ls-wrapper ls-loop">'+i+"</div>"),l.scroll.enabled&&(i='<div class="ls-wrapper ls-scroll"><div class="ls-wrapper ls-scroll-transform">'+i+"</div></div>"),'<div class="ls-wrapper ls-in-out" style="">'+i+"</div>"),l.parallax.enabled&&(i='<div class="ls-wrapper ls-parallax">'+i+"</div>"),""!==(i='<div class="ls-wrapper ls-z'+(l.is.pinned?" ls-pinned":"")+'">'+i+"</div>")?e.appendTo(d).wrap(i):e.appendTo(d),!0===a&&t.addClass("ls-layer-link").appendTo(e.parent());var d={},a=e.css("mix-blend-mode");a&&"normal"!==a&&(d["mix-blend-mode"]=a,e.css("mix-blend-mode","normal")),l.original.customZIndex=1;a=parseInt(l.original.zIndex);l.is.backgroundVideo||l.is.slideBackground?d={zIndex:l.original.customZIndex}:(a=a||c+101,d.zIndex=a,l.original.customZIndex=a),J.browser.isSafari&&(d.transform="translateZ(0)"),J.layers.set.wrappers(e,l,u),l.elements.$outerWrapper.css(d).addClass(s),l.styleSettings.pointerevents&&l.elements.$innerWrapper.css("pointer-events","none"),l.is.slideBackground&&l.elements.$bgWrapper.css({backgroundColor:J.slides[u].data.backgroundColor}),J.layers.$all=J.layers.$all.add(e),J.slides[u].$layers=J.slides[u].$layers.not(t),c===h-1&&($.children(".ls-slide").eq(u-1).empty(),J.slides[u].wrapped=!0)},t*(c+1))}))}},J.slideshow={direction:"next",nextLoop:0,firstStart:!0,forceFastChange:!1,sequence:{normal:[],randomized:[]},state:{changed:-1,running:!0,paused:!1,pausedByVideo:!1,pausedByHover:!1,pausedByLastCycle:!1},should:{change:!1,start:!1,stop:!1},isPaused:function(){return this.state.paused||this.state.pausedByVideo||this.state.pausedByHover||this.state.pausedByPerformance},init:function(){1==J.slides.count&&ie.extend(J.o,{autoStart:!1,navPrevNext:!1,navStartStop:!1,navButtons:!1,cycles:-1,forceLoopNum:!1,autoPauseSlideshow:!0,firstSlide:1,thumbnailNavigation:"disabled"}),J.o.autoStart&&1!=J.slides.count||J.functions.setStates(this,{running:!1,paused:!0}),this.set.pauseOnHover(),this.set.sequences()},set:{pauseOnHover:function(){J.o.pauseOnHover=!0===J.o.pauseOnHover?"slideshowOnly":J.o.pauseOnHover,!1!==J.o.pauseOnHover&&$.on("mouseenter."+W,function(){J.slider.state.inFullscreen||(J.functions.setStates(J.slideshow,{pausedByHover:!0}),"slideshowOnly"!==J.o.pauseOnHover&&J.transitions.layers.timeline.pause())}).on("mouseleave."+W,function(){var e=1;J.transitions._slideTimeline&&J.transitions._slideTimeline.duration()>J.transitions.layers.timeline.totalDuration&&(e=J.transitions.layers.timeline.totalDuration/J.transitions._slideTimeline.duration()),J.functions.setStates(J.slideshow,{pausedByHover:!1}),ie("body").hasClass("ls-unselectable")||"slideshowOnly"===J.o.pauseOnHover||J.o.pauseLayers&&J.slideshow.isPaused()||J.transitions.layers.timeline.resume(),J.transitions._slideTimeline&&J.transitions.layers.timeline.state.finished&&J.transitions._slideTimeline.progress()<e&&J.functions.setStates(J.transitions.layers.timeline,{finished:!1}),J.slideshow.start()})},sequences:function(){for(var e=0;e<J.slides.count;e++)J.slideshow.sequence.normal[e]=e+1;J.slideshow.sequence.randomized=J.functions.shuffleArray(ie.merge([],J.slideshow.sequence.normal))},normalizedSequence:function(){var e=J.o.shuffleSlideshow?"randomized":"normal",t=J.slideshow.sequence[e],i=J.slideshow.sequence[e].length,a=t.indexOf(J.slides.first.index);J.slideshow.sequence.normalized=[];for(var s=a;s<i;s++)J.slideshow.sequence.normalized.push(t[s]);for(var r=0;r<a;r++)J.slideshow.sequence.normalized.push(t[r])},prevNext:function(e){switch("prev"!==e&&"first"!==e||!J.o.twoWaySlideshow?J.slideshow.direction="next":J.slideshow.direction="prev",e){case"prev":J.slideshow.changeTo(J.slideshow.get.slideInSequence("prev"),!0);break;case"next":J.slideshow.changeTo(J.slideshow.get.slideInSequence("next"),!0);break;case"first":J.slideshow.changeTo(1,!0);break;case"last":J.slideshow.changeTo(J.slides.count,!0)}}},get:{sequence:function(){var e="normal";return J.o.playByScroll?e="normalized":J.o.shuffleSlideshow&&(e="randomized"),e},slideInSequence:function(e){var t=J.slideshow.sequence[this.sequence()],i=t.indexOf(J.slides.current.index);switch(e){case"prev":return 0===i?t[t.length-1]:t[i-1];case"next":return i===t.length-1?t[0]:t[i+1];default:return t[e]}},indexOfSlideInSequence:function(e){return J.slideshow.sequence[this.sequence()].indexOf(e)}},cycles:{set:function(){0<J.o.cycles&&(J.slideshow.curCycle=1,J.slideshow.cycleSlideIndex=J.slideshow.get.indexOfSlideInSequence(J.slides.first.index))},check:function(e){if(J.slideshow.get.indexOfSlideInSequence(e)===J.slideshow.cycleSlideIndex)return++J.slideshow.curCycle===J.o.cycles+1}},start:function(e){!this.isPaused()&&J.transitions._slideTimeline&&J.transitions.layers.timeline.state.finished&&this.changeTo(J.slides.next.index)},stop:function(){J.functions.setStates(this,{running:!1,paused:!0})},changeTo:function(e,t,i){if(!document.body.contains(L))return!1;if(J.slides.current.index===e&&!J.slideshow.forceSlideChangeTo)return!1;if(J.slideshow.forceSlideChangeTo=null,!this.firstStart&&J.api.hasEvent("slideChangeWillStart")){var a=J.api.triggerEvent("slideChangeWillStart",J.api.eventData());if(!1===a)return;ie.isNumeric(a)&&(e=parseInt(a))}e>J.slides.count||e<1?J.debugMode&&(J.debug.add("group","slideshow"),J.debug.add("warn","slideshow.invalidSlideIndex",[e,J.slides.count]),J.debug.groupEnd()):J.slider.isBusy()||J.slideshow.state.pausedByVideo&&!t?!J.slider.state.preloadingImages&&J.slider.state.animatingSlides&&J.transitions._slideTransition&&(J.slideshow.forceSlideChangeTo=e,J.slideshow.should.change=!0,J.transitions._slideTransition.progress(1),J.transitions.timelines.set("currentforce",function(e,t){e.progress(1)})):(J.functions.setStates(J.transitions.layers.timeline,{finished:!1}),J.slideshow.should.change=!1,J.debugMode&&J.debug.add("group","slideshow"),t?(i&&(J.navigation.direction=J.slides.current.index>e?"prev":"next"),J.o.twoWaySlideshow&&("prev"===J.navigation.direction?J.slideshow.direction="prev":J.slideshow.direction="next"),J.debugMode&&(J.debug.add("log","slideshow.changedByUser",!1),J.o.twoWaySlideshow&&J.debug.add("log","slideshow.setdir",J.slideshow.direction))):J.navigation.direction=J.slideshow.direction,J.transitions.timers.reverse(),J.gui.media.hideUnmute(),J.slides.set.nextSlideIndex(e),J.debugMode&&(J.debug.add("log","slideshow.change",[J.slides.current.index,J.slides.next.index,J.slideshow.direction,J.navigation.direction]),J.debug.groupEnd()),J.functions.setStates(this,{pausedByVideo:!1,changed:++this.state.changed}),J.functions.setStates(J.slider,{changingSlides:!0}),J.slider.state.animatingSlides&&J.transitions._slideTransition&&J.transitions.timelines.set("currentforce",function(e,t){e.progress(1)}),J.preload.imagesOfSlide(J.slides.next.index,function(){J.transitions.start()}))},forceStop:function(){J.navigation.stop(),ie.each(J.timeouts,function(e,t){clearTimeout(J.timeouts[e])}),J.transitions.timers.stop(),J.transitions._slideTimeline.stop(),J.transitions._slideTimelineAlternate.stop(),J.functions.setStates(J.transitions.layers.timeline,{stopped:!0,running:!1}),$.find("*").stop(!0,!1).dequeue()},restart:function(){$.find("*").stop(),J.navigation.change(J.slides.current.index,J.slideshow.direction)}},J.media={properties:{$allMediaLayers:ie(),playingInCurSlide:0,endedInCurSlide:0,userDidUnmute:!1},init:function(){J.functions.setStates(J.slider,{waitingForYouTube:!1,waitingForVimeo:!1}),J.media.properties.allowToUnmute=!0,J.media.youtube.init(),J.media.vimeo.init(),J.media.html5.init()},isPlayable:function(e,t){return!(e.is("[data-ls-animating-out], [data-ls-hidden]")&&!t.is.backgroundVideo)},get:function(e){var t,i=J.media.properties.$allMediaLayers;return e&&(-1!==(e=e.toLowerCase()).indexOf("notbg")&&(i=i.not(".ls-bg-video")),-1!==e.indexOf("active")&&(i=i.filter("[data-ls-active], [data-ls-animating-in], [data-ls-text-animating-in]")),-1!==e.indexOf("notstatic")&&(i=i.not("[data-ls-static]")),t=i.find("video, audio, iframe"),-1!==e.indexOf("notplaying")?t=t.filter("[data-ls-not-playing]"):-1!==e.indexOf("playing")&&(t=t.filter("[data-ls-playing]")),-1!==e.indexOf("allowtounmute")&&(t=t.filter("[data-ls-allow-to-unmute]")),-1!==e.indexOf("mutedbybrowser")&&(t=t.filter("[data-ls-muted-by-browser]"))),t},set:{backgroundVideo:function(e,t){0===e.children(".ls-vpcontainer").length&&(e=ie("<div>").addClass("ls-vpcontainer").appendTo(e),t.mediaSettings.poster&&ie("<div>").appendTo(e).addClass("ls-videopreview").attr({style:"background-image: url("+t.mediaSettings.poster+")"}))},customPoster:function(e,t){return t.mediaSettings.poster||!1},dataAttribute:function(e,t){e.removeAttr("data-ls-playing data-ls-not-playing"),e.attr("data-ls-"+t,""),J.media.functions.checkSlideshowWaiting()},mediaElements:function(e,t,i){var a=ie("<div>").addClass("ls-vpcontainer").appendTo(e);!("autoplay"in i.mediaSettings)&&J.o.autoPlayVideos||i.mediaSettings.autoplay?"instant"===i.mediaSettings.autoplay?e.addClass("ls-instant-autoplay"):e.addClass("ls-autoplay"):ie("<div>").appendTo(a).addClass("ls-playvideo"),t.is("iframe")&&i.mediaProperties.poster&&ie("<div>").appendTo(a).addClass("ls-videopreview").attr({style:"background-image: url("+i.mediaProperties.poster+")"}),t.is("video, audio")&&i.mediaProperties.poster&&ie("<div>").appendTo(a).addClass("ls-videopreview").attr({style:"background-image: url("+i.mediaProperties.poster+")"})},properties:function(e,t,i){switch(i.is.mediaLayer=!0,i.mediaProperties.type){case"youtube":i.is.backgroundVideo?(i.mediaProperties.options=ie.extend(!0,{loop:1,playlist:i.mediaProperties.embedID,controls:0,autoplay:0,showinfo:!1,modestbranding:1,thumbnail:!1},J.media[i.mediaProperties.type].defaults,i.mediaProperties.embedOptions),J.media.set.backgroundVideo(e,i)):(i.mediaProperties.options=ie.extend(!0,{},J.media[i.mediaProperties.type].defaults,i.mediaProperties.embedOptions,{autoplay:0}),J.media.set.mediaElements(e,t,i));break;case"vimeo":i.is.backgroundVideo?(i.mediaProperties.options=ie.extend(!0,{loop:1,byline:0,portrait:0,title:0,fun:0},J.media[i.mediaProperties.type].defaults,i.mediaProperties.embedOptions),J.media.set.backgroundVideo(e,i)):(i.mediaProperties.options=ie.extend(!0,{},J.media[i.mediaProperties.type].defaults,i.mediaProperties.embedOptions,{autoplay:0}),J.media.set.mediaElements(e,t,i));break;case"html5":t.attr("autoplay")&&(t.removeAttr("autoplay"),e.attr("data-ls",e.attr("data-ls")+" autoplay: true;")),i.is.backgroundVideo?(t.removeAttr("controls"),t[0].muted=!0,t.attr("loop","")):"controls"in i.mediaSettings&&"auto"!==i.mediaSettings.controls&&(i.mediaSettings.controls?(t.attr("controls",""),t.removeAttr("nocontrols")):t.removeAttr("controls")),"volume"in i.mediaSettings&&(i.mediaSettings.volume<0?i.mediaSettings.volume=0:100<i.mediaSettings.volume&&(i.mediaSettings.volume=100),t[0].volume=i.mediaSettings.volume/100),"muted"in i.mediaSettings&&(i.mediaSettings.muted?t[0].muted=!0:t[0].muted=!1),"loop"in i.mediaSettings&&(i.mediaSettings.loop?t.attr("loop",""):t.removeAttr("loop")),i.is.backgroundVideo?J.media.set.backgroundVideo(e,i):J.media.set.mediaElements(e,t,i)}},thumbnail:function(e,t){switch(t){case"show":e.stop(!0,!0).fadeIn(J.transitions.media.defaults.fadeIn);break;case"hide":e.stop(!0,!0).delay(J.transitions.media.defaults.delay).fadeOut(J.transitions.media.defaults.fadeOut)}}},events:{start:function(e,t,i){var a;J.api.hasEvent("mediaDidStart")&&!i.mediaProperties.alreadyStarted&&J.media.functions.allowedToPlay(e,i)&&((a=J.api.eventData()).event.target=e[0],J.api.triggerEvent("mediaDidStart",a),i.mediaProperties.alreadyStarted=!0)},stop:function(e,t,i){var a;J.api.hasEvent("mediaDidStop")&&i.mediaProperties.alreadyStarted&&((a=J.api.eventData()).event.target=e[0],J.api.triggerEvent("mediaDidStop",a),i.mediaProperties.alreadyStarted=!1)}},unmute:{set:function(e,t,i){("youtube"!==t&&"vimeo"!==t||J.media.properties.allowToUnmute)&&J.gui.media.showUnmute(),e.attr("data-ls-allow-to-unmute",""),i&&e.attr("data-ls-muted-by-browser","")},multipleMediaElements:function(){var e=$.find("[data-ls-allow-to-unmute]");(J.o.rememberUnmuteState?e:e.filter("[data-ls-playing], [data-ls-muted-by-browser]")).each(function(){J.media.unmute.singleMediaElement(ie(this))}),J.gui.media.hideUnmute(),J.media.properties.userDidUnmute=!0},singleMediaElement:function(e){var t,i=e.closest(".ls-layer").data(J.defaults.init.dataKey),a=!1;switch(i.mediaProperties.type){case"youtube":J.media.properties.allowToUnmute&&(a=!0,i.mediaProperties.player.unMute());break;case"vimeo":J.media.properties.allowToUnmute&&(a=!0,t=i.mediaSettings.volume?i.mediaSettings.volume/100:1,i.mediaProperties.player.setVolume(t));break;case"html5":a=!0,e[0].muted=!1}a&&e.removeAttr("data-ls-muted-by-browser data-ls-allow-to-unmute")}},functions:{allowedToPlay:function(e,t){e=e.closest(".ls-layer");return!!(J.slides.current.index===parseInt(e.attr("data-ls-slidein"))||t.is.backgroundVideo&&J.slides.next.index===parseInt(e.attr("data-ls-slidein"))||e.attr("data-ls-static")&&void 0!==e.attr("data-ls-active"))},playActiveMedia:function(e){var t,i;J.media.get("notbg,active").each(function(){if(t=ie(this).closest(".ls-layer"),i=t.data(J.defaults.init.dataKey),e){if(!i.mediaProperties.pausedByPerformance)return!0;i.mediaProperties.pausedByPerformance=!1}if(J.media.isPlayable(t,i))if(i.mediaProperties.alreadyStarted)switch(i.mediaProperties.type){case"youtube":i.mediaProperties.player.playVideo();break;case"vimeo":i.mediaProperties.player.play();break;case"html5":i.mediaProperties.$media[0].play()}else ie(this).parent().find(".ls-vpcontainer").trigger("playMedia")})},stopSingleMedia:function(e,t){var i=t.mediaProperties.$media;J.media[t.mediaProperties.type].stop(e,i,t,!0),J.media.functions.mediaEnded(i,e,t)},pauseActiveMedia:function(e){var t;J.media.get("notbg,active,playing").each(function(){switch(t=ie(this).closest(".ls-layer").data(J.defaults.init.dataKey),e&&(t.mediaProperties.pausedByPerformance=!0),t.mediaProperties.type){case"youtube":t.mediaProperties.player.pauseVideo();break;case"vimeo":t.mediaProperties.player.pause();break;case"html5":this.pause()}})},urlToObject:function(e){var a={},e=e.split("?")[1];return e&&e.split("#")[0].replace(/([^=&]+)=([^&]*)/g,function(e,t,i){a[decodeURIComponent(t)]=ie.isNumeric(decodeURIComponent(i))?parseInt(decodeURIComponent(i)):decodeURIComponent(i)}),a},checkSlideshowState:function(e,t){!t.is.static&&J.o.autoPauseSlideshow&&(J.functions.setStates(J.slideshow,{pausedByVideo:!0}),"auto"==J.o.autoPauseSlideshow&&J.media.properties.playingInCurSlide++)},checkSlideshowWaiting:function(){var e=J.media.properties.playingInCurSlide,t=J.media.get("notbg,active,notstatic,notplaying"),i=t.length;i===e&&0<i&&J.slideshow.state.pausedByVideo&&J.o.autoPauseSlideshow&&!J.timeouts.pausedVideos&&J.slideshow.state.running?J.timeouts.pausedVideos=setTimeout(function(){J.slideshow.state.running?t.each(function(){J.media.functions.mediaEnded(ie(this),ie(this).closest(".ls-layer"),ie(this).closest(".ls-layer").data(J.defaults.init.dataKey))}):J.slideshow.state.pausedByVideo=!1},5e3):J.timeouts.pausedVideos&&(clearTimeout(J.timeouts.pausedVideos),delete J.timeouts.pausedVideos)},playIfAllowed:function(e){var t=e.data(J.defaults.init.dataKey);t.is.mediaLayer&&(te.isMobile&&($.hasClass("ls-device-is-phone")&&t.elements.$outerWrapper.hasClass("ls-hide-on-phone")||$.hasClass("ls-device-is-tablet")&&t.elements.$outerWrapper.hasClass("ls-hide-on-tablet"))||("autoplay"in t.mediaSettings||!J.o.autoPlayVideos)&&!t.mediaSettings.autoplay||e.find(".ls-vpcontainer").trigger("playMedia"))},stop:function(a,e){var a=void 0===a||a,t=!!e&&e.children("iframe, video, audio").first(),e=!!e&&e.data(J.defaults.init.dataKey).mediaProperties.type;"youtube"!==e&&t||(t||J.layers.get("current,out,youtube")).each(function(){var e=ie(this),t=e.closest(".ls-layer"),i=t.data(J.defaults.init.dataKey);J.media.youtube.stop(t,e,i,a)}),"vimeo"!==e&&t||(t||J.layers.get("current,out,vimeo")).each(function(){var e=ie(this),t=e.closest(".ls-layer"),i=t.data(J.defaults.init.dataKey);J.media.vimeo.stop(t,e,i,a)}),"html5"!==e&&t||(t||J.layers.get("current,out,html5")).each(function(){var e=ie(this),t=e.closest(".ls-layer"),i=t.data(J.defaults.init.dataKey);J.media.html5.stop(t,e,i,a)}),J.media.properties.playingInCurSlide=Math.max(--J.media.properties.playingInCurSlide,0),J.media.properties.endedInCurSlide=Math.max(--J.media.properties.endedInCurSlide,0)},mediaEnded:function(e,t,i){"auto"!=J.o.autoPauseSlideshow||i.is.backgroundVideo||(i.is.static||J.media.properties.endedInCurSlide++,J.media.properties.endedInCurSlide==J.media.properties.playingInCurSlide&&0!==J.media.properties.playingInCurSlide&&J.functions.setStates(J.slideshow,{pausedByVideo:!1})),J.media.set.dataAttribute(e,"not-playing"),J.media.events.stop(e,t,i)},removeFromTimeline:function(e){J.transitions._slideTimeline.kill(null,e.closest(".ls-in-out")[0]),J.transitions._slideTimelineAlternate.kill(null,e.closest(".ls-in-out")[0])}},youtube:{defaults:{autoplay:0,playsinline:1,wmode:"opaque",html5:1,enablejsapi:1,version:3,rel:0},init:function(){var f=0;this.$medias=J.slider.$hiddenWrapper.find('iframe[src*="youtube-nocookie.com"], iframe[src*="youtube.com"], iframe[src*="youtu.be"], iframe[data-src*="youtube-nocookie.com"], iframe[data-src*="youtube.com"], iframe[data-src*="youtu.be"]').each(function(){var e=ie(this).attr({id:"ls-youtube-"+ ++f,allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture; fullscreen",allowfullscreen:""}),t=e.closest(".ls-layer");t.data("hasBeenSet")||J.layers.set.singleLayer(t);var i,a,s,r,o,n,l,d,c=t.data(J.defaults.init.dataKey),p=e.attr("src")||e.attr("data-src"),u=J.media.functions.urlToObject(p),h=(p=p.split("?")[0].split("//")[1]).split("/"),m=h[h.length-1],h=J.media.set.customPoster(t,c);c.mediaProperties={type:"youtube",$media:e,embedURL:p,embedID:m,embedOptions:u},h?(c.mediaProperties.poster=h,J.media.set.properties(t,e,c)):(i=["default.jpg","mqdefault.jpg","hqdefault.jpg","sddefault.jpg","maxresdefault.jpg"],a="https://img.youtube.com/vi/"+p.split("embed/")[1].split("?")[0]+"/",s=a+J.o.youtubePreview,o=r=0,n=function(){this.width>r&&(r=this.width,s=this.src),d()},l=function(){d()},d=function(){(o+=1)===i.length&&(c.mediaProperties.poster=s,J.media.set.properties(t,e,c))},i.forEach(function(e){var t=new Image;t.addEventListener("error",l,!1),t.addEventListener("load",n,!1),t.src=a+e}))}),this.$medias.length&&(J.media.properties.$allMediaLayers=J.media.properties.$allMediaLayers.add(this.$medias.closest(".ls-layer")),J.timeouts.loadYouTube=Math.floor(Date.now()/1e3),window.YT||ie("<script>").attr({src:"https://www.youtube.com/iframe_api",type:"text/javascript"}).appendTo("head"),window.onYouTubeIframeAPIReady=function(){window._layerSlider.globals.youTubeIsReady=!0},J.intervals.isYouTubeReady=setInterval(function(){window.YT&&1===window.YT.loaded||window._layerSlider.globals.youTubeIsReady||3<Math.floor(Date.now()/1e3)-J.timeouts.loadYouTube?(clearInterval(J.intervals.isYouTubeReady),delete J.intervals.isYouTubeReady,delete J.timeouts.loadYouTube,J.media.youtube.$medias.closest(".ls-layer").each(function(){var e=ie(this),t=e.find("iframe"),i=e.data(J.defaults.init.dataKey);e.on("playMedia."+W+" click."+W,".ls-vpcontainer",function(){J.media.set.thumbnail(ie(this),"hide"),J.media.functions.checkSlideshowState(e,i),t.hide(),J.media.youtube.play(e,i.mediaProperties.$media,i,i.mediaProperties.embedURL),setTimeout(function(){t.show()},10)}).on("playBackgroundVideo."+W,function(){J.media.youtube.play(e,i.mediaProperties.$media,i,i.mediaProperties.embedURL),J.layers.set.dataAttribute("add",e,"active")}).on("stopBackgroundVideo."+W,function(){J.media.youtube.stop(e,i.mediaProperties.$media,i,!0),J.layers.set.dataAttribute("add",e,"hidden")}).on("preloadBackgroundVideo."+W,function(){J.media.youtube.createPlayer(e,i.mediaProperties.$media,i,i.mediaProperties.embedURL,!0)})}),J.functions.setStates(J.slider,{waitingForYouTube:!1})):J.functions.setStates(J.slider,{waitingForYouTube:!0})},25))},createPlayer:function(t,i,a,s,r){a.mediaProperties.playerState="initializing","controls"in a.mediaSettings&&(a.mediaProperties.options.controls=a.mediaSettings.controls?1:0),"loop"in a.mediaSettings&&(a.mediaProperties.options.loop=a.mediaSettings.loop?1:0),"showinfo"in a.mediaSettings&&(a.mediaProperties.options.showinfo=a.mediaSettings.showinfo?1:0),a.mediaProperties.options.loop?a.mediaProperties.options.playlist=a.mediaProperties.embedID:delete a.mediaProperties.options.playlist,0===a.mediaProperties.options.showinfo&&(a.mediaProperties.options.modestbranding=1),i.attr("src","https://"+s+"?"+jQuery.param(a.mediaProperties.options)).on("load",function(){a.mediaProperties.player=new YT.Player(i[0],{events:{onReady:function(e){a.mediaProperties.playerState="ready",a.mediaSettings.volume&&a.mediaProperties.player.setVolume(a.mediaSettings.volume),r&&!a.mediaProperties.shouldPlay||(J.media.youtube.play(t,i,a,s),a.mediaProperties.shouldPlay=!1)},onStateChange:function(e){switch(e.data){case 0:a.mediaProperties.options.loop&&1===a.mediaProperties.options.loop||J.media.functions.mediaEnded(i,t,a);break;case 1:J.media.events.start(i,t,a),a.mediaProperties.lastStarted=Date.now();break;case 2:case-1:a.mediaProperties.firstState&&0!==a.mediaProperties.lastState&&1!==a.mediaProperties.lastState||a.mediaProperties.lastStarted&&(Date.now(),a.mediaProperties.lastStarted)}1===e.data?J.media.set.dataAttribute(i,"playing"):J.media.set.dataAttribute(i,"not-playing"),J.media.youtube.savePlayerState(a,e.data)}}})})},savePlayerState:function(e,t){e.mediaProperties.firstState||(e.mediaProperties.firstState=t),e.mediaProperties.lastState=t},play:function(e,t,i,a,s){void 0!==t.attr("data-ls-muted-by-browser")&&J.media.unmute.singleMediaElement(t),i.mediaProperties.player?i.mediaProperties.player.playVideo?(!i.is.backgroundVideo||"muted"in i.mediaSettings||i.mediaProperties.player.mute(),i.mediaSettings.muted?J.o.rememberUnmuteState&&J.media.properties.userDidUnmute||(i.mediaProperties.player.mute(),"offertounmute"==i.mediaSettings.muted&&J.media.unmute.set(t,i.mediaProperties.type)):s&&(i.mediaProperties.player.mute(),J.media.unmute.set(t,i.mediaProperties.type,!0)),J.media.functions.allowedToPlay(t,i)?J.media.isPlayable(e,i)&&i.mediaProperties.player.playVideo():J.media.youtube.stop(e,t,i,!0)):i.mediaProperties.shouldPlay=!0:i.mediaProperties.playerState?i.mediaProperties.shouldPlay=!0:this.createPlayer(e,t,i,a)},stop:function(e,t,i,a){i.mediaProperties.player&&(i.mediaProperties.player.pauseVideo&&i.mediaProperties.player.pauseVideo(),a&&i.mediaProperties.player.seekTo&&(i.mediaProperties.player.seekTo(0),i.mediaProperties.player.pauseVideo()),i.is.backgroundVideo||J.media.set.thumbnail(e.find(".ls-vpcontainer"),"show"),J.media.events.stop(t,e,i))}},vimeo:{defaults:{autoplay:0,autopause:0,wmode:"opaque",playsinline:1},init:function(){var d,e,t=this.$medias=J.slider.$hiddenWrapper.find('iframe[src*="player.vimeo"], iframe[data-src*="player.vimeo"]'),c=J.slider.$hiddenWrapper.find('.ls-slide:eq(0) iframe[src*="player.vimeo"], .ls-slide:eq(0) iframe[data-src*="player.vimeo"]').length;t.length&&(J.timeouts.loadVimeo=Math.floor(Date.now()/1e3),J.media.properties.$allMediaLayers=J.media.properties.$allMediaLayers.add(t.closest(".ls-layer")),d=0,ie("<script>").attr({src:"https://player.vimeo.com/api/player.js",type:"text/javascript"}).appendTo("head"),J.intervals.isVimeoReady=setInterval(function(){J.functions.setStates(J.slider,{waitingForVimeo:!0}),(window.Vimeo||3<Math.floor(Date.now()/1e3)-J.timeouts.loadVimeo)&&(clearInterval(J.intervals.isVimeoReady),delete J.intervals.isVimeoReady,delete J.timeouts.loadVimeo,e())},25),e=function(){var l=0;J.media.vimeo.$medias.each(function(){var t=ie(this).attr({id:"ls-vimeo-"+ ++d,allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture; fullscreen",allowfullscreen:""}),i=t.closest(".ls-layer");i.data("hasBeenSet")||J.layers.set.singleLayer(i);var a=i.data(J.defaults.init.dataKey),e=t.attr("src")||t.attr("data-src"),s=J.media.functions.urlToObject(e),r=e.split("video/")[1].split("?")[0],o="https://vimeo.com/api/oembed.json?url="+encodeURIComponent("https://vimeo.com/video/"+r+(s.h?"?h="+s.h:"")),e=e.split("?")[0].split("//")[1];J.media.vimeo.defaults.player_id="ls-vimeo-"+d;r=J.media.set.customPoster(i,a);a.mediaProperties={type:"vimeo",$media:t,embedURL:e,embedOptions:s};function n(e){a.mediaProperties.poster=e,(0===c||0<c&&++l==c)&&(window._layerSlider.globals.vimeoIsReady=!0),J.media.set.properties(i,t,a)}r?n(r):ie.getJSON(o,function(e){n(e.thumbnail_url)}),i.on("playMedia."+W+" click."+W,".ls-vpcontainer",function(){J.media.set.thumbnail(ie(this),"hide"),J.media.functions.checkSlideshowState(i,a),J.media.vimeo.play(i,t,a,e)}).on("playBackgroundVideo."+W,function(){J.media.vimeo.play(i,t,a,e),J.layers.set.dataAttribute("add",i,"active")}).on("stopBackgroundVideo."+W,function(){J.media.vimeo.stop(i,t,a,!0),J.layers.set.dataAttribute("add",i,"hidden")}).on("preloadBackgroundVideo."+W,function(){J.media.vimeo.createPlayer(i,t,a,e,!0)})}),J.functions.setStates(J.slider,{waitingForVimeo:!1})})},createPlayer:function(e,t,i,a,s){i.mediaProperties.playerState="initializing";"controls"in i.mediaSettings&&(i.mediaProperties.options.controls=i.mediaSettings.controls?1:0,delete i.mediaSettings.controls),"loop"in i.mediaSettings&&(i.mediaProperties.options.loop=i.mediaSettings.loop?1:0),"showinfo"in i.mediaSettings&&(i.mediaSettings.showinfo?(i.mediaProperties.options.byline=1,i.mediaProperties.options.portrait=1,i.mediaProperties.options.title=1):(i.mediaProperties.options.byline=0,i.mediaProperties.options.portrait=0,i.mediaProperties.options.title=0),delete i.mediaProperties.options.showinfo),"volume"in i.mediaSettings&&(0===i.mediaSettings.volume?(i.mediaSettings.volume=100,i.mediaSettings.muted=!0):(i.mediaSettings.volume<0||100<i.mediaSettings.volume)&&(i.mediaSettings.volume=100)),i.mediaSettings.muted&&(i.mediaProperties.options.muted=1),t.attr("src","https://"+a+"?"+jQuery.param(i.mediaProperties.options)),i.mediaProperties.player=new Vimeo.Player(t[0]),i.mediaProperties.player.on("play",function(){J.media.set.dataAttribute(t,"playing"),J.media.events.start(t,e,i)}),i.mediaProperties.player.on("pause",function(){J.media.set.dataAttribute(t,"not-playing")}),i.mediaProperties.player.on("ended",function(){J.media.functions.mediaEnded(t,e,i)}),i.mediaProperties.player.ready().then(function(){i.mediaProperties.playerState="ready",i.mediaSettings.volume&&!i.mediaSettings.muted&&ie.isNumeric(i.mediaSettings.volume)&&0<=i.mediaSettings.volume&&i.mediaSettings.volume<=100&&i.mediaProperties.player.setVolume(i.mediaSettings.volume/100),s||J.media.vimeo.play(e,t,i,a)})},play:function(t,i,a,s,e){void 0!==i.attr("data-ls-muted-by-browser")&&J.media.unmute.singleMediaElement(i),a.mediaProperties.player?(!a.is.backgroundVideo||"muted"in a.mediaSettings||a.mediaProperties.player.setVolume(0),a.mediaSettings.muted&&(J.o.rememberUnmuteState&&J.media.properties.userDidUnmute?J.o.rememberUnmuteState&&J.media.properties.userDidUnmute&&(a.mediaProperties.player.setVolume(a.mediaSettings.volume/100||1),delete a.mediaSettings.muted):(a.mediaProperties.player.setVolume(0),"offertounmute"==a.mediaSettings.muted&&J.media.unmute.set(i,a.mediaProperties.type))),e?(a.mediaProperties.player.setVolume(0),J.media.unmute.set(i,a.mediaProperties.type,!0)):a.mediaProperties.player.getVolume().then(function(e){0==e&&"offertounmute"==a.mediaSettings.muted&&J.media.unmute.set(i,a.mediaProperties.type)}),J.media.functions.allowedToPlay(i,a)?a.mediaProperties.player.play().then(function(){}).catch(function(e){switch(e.name){case"PasswordError":window.console&&(console.error(J.defaults.slider.errorText),console.error("Vimeo video is password protected and may cause playback issues."));break;case"PrivacyError":window.console&&(console.error(J.defaults.slider.errorText),console.error("Vimeo video is private and may cause playback issues."));break;default:J.media.vimeo.play(t,i,a,s,!0)}}):J.media.vimeo.stop(t,i,a,!0)):this.createPlayer(t,i,a,s)},stop:function(e,t,i,a){i.mediaProperties.player&&(i.mediaProperties.player.pause(),a&&i.mediaProperties.player.setCurrentTime(0),i.is.backgroundVideo||J.media.set.thumbnail(e.find(".ls-vpcontainer"),"show"),J.media.events.stop(t,e,i))}},html5:{singleInit:function(t){var e,i,a,s,r=t.closest(".ls-layer"),o=r.data(J.defaults.init.dataKey),n=t.find("source"),l=J.media.set.customPoster(r,o);o.mediaProperties={type:"html5",$media:t,poster:l||t.attr("poster")},t.removeAttr("poster"),0<n.length?n.each(function(){void 0!==(e=ie(this).attr("type"))&&!1!==e||(i=ie(this).attr("src"),a=i.split("."),s=a[a.length-1].toLowerCase(),ie(this).attr("type",ie(this).parent()[0].tagName.toLowerCase()+"/"+s)),""!==t[0].canPlayType(ie(this).attr("type"))&&(o.mediaProperties.canBePlayed=!0)}):void 0!==t.attr("src")&&!1!==t.attr("src")&&(i=t.attr("src"),a=i.split("."),s=a[a.length-1].toLowerCase(),""!==t[0].canPlayType(t[0].tagName.toLowerCase()+"/"+s)&&(o.mediaProperties.canBePlayed=!0)),o.mediaProperties.canBePlayed&&(J.media.set.properties(r,t,o),t.on("ended."+W,function(){J.media.functions.mediaEnded(t,r,o)}).on("play."+W,function(){}).on("playing."+W,function(){J.media.events.start(t,r,o),J.media.set.dataAttribute(t,"playing")}).on("pause."+W,function(){J.media.set.dataAttribute(t,"not-playing")}),r.on("playMedia."+W+" click."+W,".ls-vpcontainer",function(e){J.media.set.thumbnail(ie(this),"hide"),J.media.functions.checkSlideshowState(r,o),J.media.html5.play(r,t,o)}).on("playBackgroundVideo."+W,function(){J.media.html5.play(r,t,o),J.layers.set.dataAttribute("add",r,"active")}).on("stopBackgroundVideo."+W,function(){J.media.html5.stop(r,t,o,!0),J.layers.set.dataAttribute("add",r,"hidden")}))},init:function(){var e,t=J.slider.$hiddenWrapper.find("video, audio");J.media.properties.$allMediaLayers=J.media.properties.$allMediaLayers.add(t.closest(".ls-layer")),t.length&&(e=0,t.each(function(){ie(this).closest(".ls-layer").data(J.defaults.init.dataKey).is.mediaLayer=!0,ie(this).attr("id","ls-html5-"+ ++e).attr("playsinline",""),ie(this)[0].pause()}))},play:function(e,t,i){var a;i.mediaProperties.canBePlayed&&(void 0!==t.attr("data-ls-muted-by-browser")&&J.media.unmute.singleMediaElement(t),i.mediaSettings.muted&&(J.o.rememberUnmuteState&&J.media.properties.userDidUnmute?J.o.rememberUnmuteState&&J.media.properties.userDidUnmute&&(t[0].muted=!1):(t[0].muted=!0,"offertounmute"==i.mediaSettings.muted&&J.media.unmute.set(t,i.mediaProperties.type))),void 0!==(a=t[0].play())&&a.then(function(e){}).catch(function(e){"NotAllowedError"===e.name&&(t[0].muted=!0,t[0].play(),t[0].paused&&J.functions.setStates(J.slideshow,{pausedByVideo:!1}),J.media.unmute.set(t,i.mediaProperties.type,!0))}))},stop:function(e,t,i,a){i.mediaProperties.canBePlayed&&(t[0].pause(),a&&(t[0].currentTime=0),i.is.backgroundVideo||J.media.set.thumbnail(ie(this),"show"),J.media.events.stop(t,e,i))}}},J.yourLogo={init:function(){J.o.yourLogo&&(this.$element=ie("<img>").addClass("ls-yourlogo").appendTo($).attr("style",J.o.yourLogoStyle).css({visibility:"hidden",display:"bock"}).on("load."+W,function(){var e=J.yourLogo.$element?500:0;J.timeouts.yourLogo=setTimeout(function(){delete J.timeouts.yourLogo,J.yourLogo.$element.data("originalWidth",J.yourLogo.$element.width()),J.yourLogo.$element.data("originalHeight",J.yourLogo.$element.height()),"auto"!=J.yourLogo.$element.css("left")&&J.yourLogo.$element.data("originalLeft",J.yourLogo.$element[0].style.left),"auto"!=J.yourLogo.$element.css("right")&&J.yourLogo.$element.data("originalRight",J.yourLogo.$element[0].style.right),"auto"!=J.yourLogo.$element.css("top")&&J.yourLogo.$element.data("originalTop",J.yourLogo.$element[0].style.top),"auto"!=J.yourLogo.$element.css("bottom")&&J.yourLogo.$element.data("originalBottom",J.yourLogo.$element[0].style.bottom),!1!==J.o.yourLogoLink&&ie("<a>").appendTo($).attr("href",J.o.yourLogoLink).attr("target",J.o.yourLogoTarget).css({textDecoration:"none",outline:"none"}).append(J.yourLogo.$element),J.yourLogo.$element.css({display:"none",visibility:"visible"}),J.yourLogo.resize()},e)}).attr("src",J.o.yourLogo))},resize:function(){this.$element.css({width:this.$element.data("originalWidth")*J.resize.ratio,height:this.$element.data("originalHeight")*J.resize.ratio}),this.$element.fadeIn(300);var e="auto",t="auto",i="auto",a="auto",e=this.$element.data("originalLeft")&&-1!=this.$element.data("originalLeft").indexOf("%")?$.width()/100*parseFloat(this.$element.data("originalLeft"))-this.$element.width()/2+parseInt($.css("padding-left")):parseInt(this.$element.data("originalLeft"))*J.resize.ratio,t=this.$element.data("originalRight")&&-1!=this.$element.data("originalRight").indexOf("%")?$.width()/100*parseFloat(this.$element.data("originalRight"))-this.$element.width()/2+parseInt($.css("padding-right")):parseInt(this.$element.data("originalRight"))*J.resize.ratio,i=this.$element.data("originalTop")&&-1!=this.$element.data("originalTop").indexOf("%")?$.height()/100*parseFloat(this.$element.data("originalTop"))-this.$element.height()/2+parseInt($.css("padding-top")):parseInt(this.$element.data("originalTop"))*J.resize.ratio,a=this.$element.data("originalBottom")&&-1!=this.$element.data("originalBottom").indexOf("%")?$.height()/100*parseFloat(this.$element.data("originalBottom"))-this.$element.height()/2+parseInt($.css("padding-bottom")):parseInt(this.$element.data("originalBottom"))*J.resize.ratio;this.$element.css({left:e,right:t,top:i,bottom:a})}},J.gui={navigation:{init:function(){J.o.navPrevNext&&this.prevNext.init(),(J.o.navStartStop||J.o.navButtons)&&this.bottom.init()},prevNext:{init:function(){ie('<a class="ls-gui-element ls-nav-prev" aria-label="jump to the previous slide" href="#" />').on("click."+W,function(e){e.preventDefault(),$.layerSlider("prev")}).appendTo($),ie('<a class="ls-gui-element ls-nav-next" aria-label="jump to the next slide" href="#" />').on("click."+W,function(e){e.preventDefault(),$.layerSlider("next")}).appendTo($),J.o.hoverPrevNext&&this.setHover()},setHover:function(){$.find(".ls-nav-prev, .ls-nav-next").css({display:"none"}),$.on("mouseenter."+W,function(){J.gui.navigation.forceHide||$.find(".ls-nav-prev, .ls-nav-next").stop(!0,!0).fadeIn(300)}).on("mouseleave."+W,function(){$.find(".ls-nav-prev, .ls-nav-next").stop(!0,!0).fadeOut(300)})}},bottom:{init:function(){this.wrapper=ie('<div class="ls-gui-element ls-bottom-nav-wrapper" />').appendTo($),J.o.navButtons&&"always"!=J.o.thumbnailNavigation&&this.bullets.init(),J.o.navStartStop?this.createStartStop():"always"!=J.o.thumbnailNavigation&&this.createSides(),J.o.hoverBottomNav&&"always"!=J.o.thumbnailNavigation&&this.setHover(),"always"==J.o.thumbnailNavigation&&(this.wrapper.addClass("ls-above-thumbnails"),this.thumbnails.init())},bullets:{init:function(){var t=this;ie('<span class="ls-bottom-slidebuttons" />').appendTo($.find(".ls-bottom-nav-wrapper"));for(var e=0;e<J.slides.count;e++){var i=ie('<a href="#" aria-label="jump to slide '+(e+1)+'" />').appendTo($.find(".ls-bottom-slidebuttons")).data("index",e+1).on("click."+W,function(e){e.preventDefault(),$.layerSlider(ie(this).data("index"))});"hover"==J.o.thumbnailNavigation&&i.on("mouseenter."+W,function(){var e=ie(this);$.find(".ls-thumbnail-hover-img").css({left:parseInt(t.hoverWrapper.css("padding-left")),top:parseInt(t.hoverWrapper.css("padding-top"))}),t.hoverImage.on("load."+W,function(){0===ie(this).width()?t.hoverImage.css({position:"relative",margin:"0 auto",left:"auto"}):t.hoverImage.css({position:"absolute",marginLeft:-ie(this).width()/2,left:"50%"}),t.hoverImage.css("display","none").stop(!0,!0).fadeIn(250)}).attr("src",J.slides[e.data("index")].data.thumbnail),t.hoverWrapper.css({display:"block"}).stop().animate({left:ie(this).position().left+(ie(this).width()-t.hoverWrapper.outerWidth())/2},250),t.hoverWrapperInner.css({display:"none",visibility:"visible"}).stop().fadeIn(250)}).on("mouseleave."+W,function(){t.hoverWrapperInner.stop().fadeOut(250,function(){t.hoverWrapper.css({visibility:"hidden",display:"block"})})})}t.set.active(J.slides.first.index),"hover"==J.o.thumbnailNavigation&&t.set.hover()},set:{active:function(e){void 0===e&&(e=J.slides.current.index),e--,$.find(".ls-bottom-slidebuttons a").removeClass("ls-nav-active"),$.find(".ls-bottom-slidebuttons a:eq( "+e+" )").addClass("ls-nav-active")},hover:function(){var e=J.gui.navigation.bottom.bullets,t=ie('<div class="ls-thumbnail-hover"><div class="ls-thumbnail-hover-inner"><div class="ls-thumbnail-hover-bg"></div><div class="ls-thumbnail-hover-img"><img></div><span></span></div></div>').appendTo($.find(".ls-bottom-slidebuttons"));$.find(".ls-thumbnail-hover, .ls-thumbnail-hover-img").css({width:J.o.tnWidth,height:J.o.tnHeight}),e.hoverWrapper=$.find(".ls-thumbnail-hover"),e.hoverImage=e.hoverWrapper.find("img").css({height:J.o.tnHeight}),e.hoverWrapperInner=$.find(".ls-thumbnail-hover-inner").css({visibility:"hidden",display:"block"}),t.appendTo($.find(".ls-bottom-slidebuttons"))}}},createStartStop:function(){this.buttonStart=ie('<a class="ls-nav-start" aria-label="start slideshow" href="#" />').on("click."+W,function(e){e.preventDefault(),$.layerSlider("start")}).prependTo($.find(".ls-bottom-nav-wrapper")),this.buttonStop=ie('<a class="ls-nav-stop" aria-label="stop slideshow" href="#" />').on("click."+W,function(e){e.preventDefault(),$.layerSlider("stop")}).appendTo($.find(".ls-bottom-nav-wrapper")),J.o.autoStart?this.setStartStop("start"):this.setStartStop("stop")},setStartStop:function(e){if(J.o.navStartStop)switch(e){case"start":this.buttonStart.addClass("ls-nav-start-active"),this.buttonStop.removeClass("ls-nav-stop-active");break;case"stop":this.buttonStart.removeClass("ls-nav-start-active"),this.buttonStop.addClass("ls-nav-stop-active")}},createSides:function(){ie('<span class="ls-nav-sides ls-nav-sideleft" />').prependTo($.find(".ls-bottom-nav-wrapper")),ie('<span class="ls-nav-sides ls-nav-sideright" />').appendTo($.find(".ls-bottom-nav-wrapper"))},setHover:function(){var e=this;e.wrapper.css({display:"none"}),$.on("mouseenter."+W,function(){J.gui.navigation.forceHide||e.wrapper.stop(!0,!0).fadeIn(300)}).on("mouseleave."+W,function(){e.wrapper.stop(!0,!0).fadeOut(300)})},switchHelper:function(e){if(J.o.hoverBottomNav&&!$.hasClass("ls-hover"))switch(e){case"on":J.gui.navigation.bottom.thumbnails.wrapper.css({visibility:"hidden",display:"block"});break;case"off":J.gui.navigation.bottom.thumbnails.wrapper.css({visibility:"visible",display:"none"})}},thumbnails:{init:function(){this.wrapper=ie('<div class="ls-gui-element ls-thumbnail-wrapper '+("contain"!==J.o.tnFillMode?"ls-thumbnail-fill":"")+'"></div>').appendTo($),ie('<div class="ls-thumbnail"><div class="ls-thumbnail-inner"><div class="ls-thumbnail-slide-container"><div class="ls-thumbnail-slide"></div></div></div></div>').appendTo(this.wrapper),this.$element=$.find(".ls-thumbnail-slide-container"),"ontouchstart"in window?this.$element.addClass("ls-touchscroll"):this.$element.on("mouseenter."+W,function(){ie(this).addClass("ls-thumbnail-slide-hover")}).on("mouseleave."+W,function(){ie(this).removeClass("ls-thumbnail-slide-hover"),J.gui.navigation.bottom.thumbnails.scroll()}).on("mousemove."+W,function(e){e=parseInt(e.pageX-ie(this).offset().left)/ie(this).width()*(ie(this).width()-ie(this).find(".ls-thumbnail-slide").width());ie(this).find(".ls-thumbnail-slide").stop().css({marginLeft:e})});for(var e=0;e<J.slides.count;e++){var t=e+1,i=J.slides[t].data.thumbnail,a="";"contain"!==J.o.tnFillMode&&(i="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",a='style="background-image: url('+J.slides[t].data.thumbnail+"); background-size: "+J.o.tnFillMode+';"');i=ie('<a href="#" class="ls-thumb-'+(e+1)+'"  aria-label="jump to slide '+(e+1)+'"><img '+a+' src="'+i+'"></a>');J.slides[t].data.tnAlt&&i.find("img").attr("alt",J.slides[t].data.tnAlt),i.data("index",t).on("click."+W,function(e){e.preventDefault(),$.layerSlider(ie(this).data("index"))}).appendTo($.find(".ls-thumbnail-slide")),"ontouchstart"in window||i.on("mouseenter."+W,function(){ie(this).children().stop().fadeTo(300,J.o.tnActiveOpacity/100)}).on("mouseleave."+W,function(){ie(this).children().hasClass("ls-thumb-active")||ie(this).children().stop().fadeTo(300,J.o.tnInactiveOpacity/100)})}J.gui.navigation.bottom.buttonStart&&J.gui.navigation.bottom.buttonStop&&(J.gui.navigation.bottom.wrapper=ie('<div class="ls-bottom-nav-wrapper ls-below-thumbnails"></div>').appendTo($),J.gui.navigation.bottom.buttonStart.clone().on("click."+W,function(e){e.preventDefault(),$.layerSlider("start")}).appendTo(J.gui.navigation.bottom.wrapper),J.gui.navigation.bottom.buttonStop.clone().on("click."+W,function(e){e.preventDefault(),$.layerSlider("stop")}).appendTo(J.gui.navigation.bottom.wrapper)),J.o.hoverBottomNav&&this.setHover()},setHover:function(){var e=this;e.wrapper.css("display","none"),J.gui.navigation.bottom.wrapper&&(J.gui.navigation.bottom.wrapper="block"==J.gui.navigation.bottom.wrapper.css("display")?J.gui.navigation.bottom.wrapper:$.find(".ls-above-thumbnails"),J.gui.navigation.bottom.wrapper.css("display","none")),$.on("mouseenter."+W,function(){$.addClass("ls-hover"),J.gui.navigation.forceHide||(e.wrapper.stop(!0,!0).fadeIn(300),J.gui.navigation.bottom.wrapper&&J.gui.navigation.bottom.wrapper.stop(!0,!0).fadeIn(300))}).on("mouseleave."+W,function(){$.removeClass("ls-hover"),e.wrapper.stop(!0,!0).fadeOut(300),J.gui.navigation.bottom.wrapper&&J.gui.navigation.bottom.wrapper.stop(!0,!0).fadeOut(300)})},change:function(e){e=e||J.slides.next.index;$.find(".ls-thumbnail-slide a:not(.ls-thumb-"+e+" )").children().each(function(){ie(this).removeClass("ls-thumb-active").stop().fadeTo(750,J.o.tnInactiveOpacity/100)}),$.find(".ls-thumbnail-slide a.ls-thumb-"+e).children().addClass("ls-thumb-active").stop().fadeTo(750,J.o.tnActiveOpacity/100)},scroll:function(){var e;$.find(".ls-thumbnail-slide-container").hasClass("ls-thumbnail-slide-hover")||(e=!!$.find(".ls-thumb-active").length&&$.find(".ls-thumb-active").parent())&&(e=e.position().left+e.width()/2,e=0<(e=(e=$.find(".ls-thumbnail-slide-container").width()/2-e)<$.find(".ls-thumbnail-slide-container").width()-$.find(".ls-thumbnail-slide").width()?$.find(".ls-thumbnail-slide-container").width()-$.find(".ls-thumbnail-slide").width():e)?0:e,$.find(".ls-thumbnail-slide").animate({marginLeft:e},600))},resize:function(){J.gui.navigation.bottom.switchHelper("on");var e=-1==J.slider.initial.width.indexOf("%")?parseInt(J.slider.initial.originalWidth):$.width(),t=$.find(".ls-thumbnail"),e=-1==J.o.tnContainerWidth.indexOf("%")?parseInt(J.o.tnContainerWidth):parseInt(e/100*parseInt(J.o.tnContainerWidth));$.find(".ls-thumbnail-slide a").css({width:parseInt(J.o.tnWidth*J.resize.ratio),height:parseInt(J.o.tnHeight*J.resize.ratio)}),$.find(".ls-thumbnail-slide a:last").css({margin:0}),$.find(".ls-thumbnail-slide").css({height:parseInt(J.o.tnHeight*J.resize.ratio)}),t.css({width:e*Math.floor(100*J.resize.ratio)/100}),t.width()>$.find(".ls-thumbnail-slide").width()&&t.css({width:$.find(".ls-thumbnail-slide").width()}),J.gui.navigation.bottom.switchHelper("off")}}}},media:{init:function(){0<J.media.properties.$allMediaLayers.length&&ie('<div class="ls-gui-element ls-media-unmute" aria-label="Unmute"><div class="ls-media-unmute-bg"></div><div class="ls-icon-muted"></div><div class="ls-icon-unmuted"></div></div>').on("click."+W,function(e){e.preventDefault(),$.layerSlider("unmute")}).appendTo($)},showUnmute:function(){$.find(".ls-media-unmute").addClass("ls-media-unmute-active")},hideUnmute:function(){$.find(".ls-media-unmute").removeClass("ls-media-unmute-active")}},skin:{load:function(){$.addClass("ls-"+J.o.skin);var e,t=J.o.skinsPath+J.o.skin+"/skin.css",i=ie("head").length?ie("head"):ie("body");ie('link[href="'+t+'"]').length?(e=ie('link[href="'+t+'"]'),J.gui.skin.isLoaded||(J.gui.skin.isLoaded=!0,J.timeouts.skinLoad1=setTimeout(function(){delete J.timeouts.skinLoad1,J.slider.init()},150))):e=document.createStyleSheet?(document.createStyleSheet(t),ie('link[href="'+t+'"]')):ie('<link rel="stylesheet" href="'+t+'" type="text/css" />').appendTo(i),e.on("load."+W,function(){J.gui.skin.isLoaded||(J.gui.skin.isLoaded=!0,J.timeouts.skinLoad2=setTimeout(function(){delete J.timeouts.skinLoad2,J.slider.init()},150))}),M.on("load."+W,function(){J.gui.skin.isLoaded||(J.gui.skin.isLoaded=!0,J.timeouts.skinLoad3=setTimeout(function(){delete J.timeouts.skinLoad3,J.slider.init()},150))}),J.timeouts.skinLoad4=setTimeout(function(){J.gui.skin.isLoaded||(J.gui.skin.isLoaded=!0,delete J.timeouts.skinLoad4,J.slider.init())},1e3)}},shadow:{init:function(){this.set(),this.resize()},set:function(){this.$element=ie('<div class="ls-gui-element ls-shadow"></div>').appendTo($),"block"!=this.$element.css("display")||this.$element.find("img").length||(this.show=function(){J.gui.shadow.$element.css({display:"none",visibility:"visible"}).fadeIn(500,function(){J.gui.shadow.show=!1})},this.image=ie("<img>").attr("src",J.o.skinsPath+J.o.skin+"/shadow.png").appendTo(this.$element),this.btmMod="number"==typeof parseInt($.css("padding-bottom"))?parseInt($.css("padding-bottom")):0)},resize:function(){this.image&&(0<this.image.height()?0<this.btmMod?this.$element.css({height:this.image.height()/2}):this.$element.css({height:this.image.height(),marginTop:-this.image.height()/2}):J.timeouts.resizeShadow=setTimeout(function(){delete J.timeouts.resizeShadow,J.gui.shadow.resize()},50))}},timers:{init:function(){J.o.showBarTimer&&this.bar.create(),J.o.showCircleTimer&&this.circle.create();var e=!1;(e=J.o.showSlideBarTimer?ie("<div>").insertAfter($):ie('[data-slidebar-for="'+$.attr("id")+'"], [data-slidebar-for="'+W+'"]')).length&&(e.addClass("ls-gui-element"),this.slidebar.create(e))},bar:{create:function(){this.$element=ie("<div>").addClass("ls-gui-element ls-bar-timer").appendTo($)}},circle:{create:function(){this.$element=ie("<div>").addClass("ls-gui-element ls-circle-timer").appendTo($),this.$element.append(ie('<div class="ls-ct-center"></div><div class="ls-ct-left"><div class="ls-ct-rotate"><div class="ls-ct-hider"><div class="ls-ct-half"></div></div></div></div><div class="ls-ct-right"><div class="ls-ct-rotate"><div class="ls-ct-hider"><div class="ls-ct-half"></div></div></div></div>')),this.$element.data("original",{opacity:this.$element.css("opacity")})}},slidebar:{$containerElement:[],$element:[],$progressBarElement:[],$sliderContainerElement:[],$sliderElement:[],elementWidth:[],containerElementWidth:[],sliderContainerElementWidth:[],state:{},create:function(e){function i(e,t){(s=(e.pageX||J.device.touchX||0)-o.$element[t].offset().left-o.sliderContainerElementWidth[t]/2)<0&&(s=0),s>o.containerElementWidth[t]-o.sliderContainerElementWidth[t]&&(s="calc( 100% - "+J.gui.timers.slidebar.sliderContainerElementWidth[t]+"px )"),o.$sliderContainerElement[t].css({left:s}),J.transitions._slideTimeline&&J.transitions._slideTimeline.progress("string"==typeof s?J.transitions.layers.timeline.progress:s/(o.containerElementWidth[t]-o.sliderContainerElementWidth[t])*J.transitions.layers.timeline.progress)}function a(e){"dragging"==J.gui.timers.slidebar.state&&(J.transitions._slideTimeline&&J.transitions.layers.timeline.state.finished&&J.transitions._slideTimeline.progress()!==J.transitions.layers.timeline.progress&&J.functions.setStates(J.transitions.layers.timeline,{finished:!1}),ie(document).off("mousemove."+W),ie("body").prop("unselectable",!1).removeClass("ls-unselectable"),J.o.pauseLayers&&!J.slideshow.state.running||J.slider.state.isPaused||!J.transitions._slideTimeline||J.o.playByScroll||(!0===J.transitions.layers.timeline.state.started?J.transitions.layers.timeline.resume():J.transitions.layers.timeline.play()),J.gui.timers.slidebar.state=!1)}var s,r=ie(document),o=this;ie.each(e,function(t,e){o.$containerElement[t]=ie(e).addClass("ls-slidebar-container "+W),o.$element[t]=ie("<div>").addClass("ls-slidebar").appendTo(o.$containerElement[t]),o.$progressBarElement[t]=ie("<div>").addClass("ls-progressbar").appendTo(o.$element[t]),o.$sliderContainerElement[t]=ie("<div>").addClass("ls-slidebar-slider-container").appendTo(o.$containerElement[t]),o.$sliderElement[t]=ie("<div>").addClass("ls-slidebar-slider").appendTo(o.$sliderContainerElement[t]),o.sliderContainerElementWidth[t]=o.$sliderContainerElement[t].width(),o.$sliderContainerElement[t].css({marginTop:-o.$sliderElement[t].outerHeight()/2}),o.$containerElement[t].on("touchmove."+W,function(e){i(e,t)}),o.$containerElement[t].on("touchend."+W,function(e){a()}),o.$containerElement[t].on("mousedown."+W+" touchstart."+W,function(e){J.transitions.layers.timeline.pause(0),ie("body").prop("unselectable",!0).addClass("ls-unselectable"),ie(document).on("mousemove."+W,function(e){i(e,t)}),i(e,t),J.gui.timers.slidebar.state="dragging"}),r=r.add(o.$sliderElement[t])}),ie("body").on("mouseup."+W,function(e){a()})}}},loadingIndicator:{init:function(){this.$element=ie("<div>").css({display:"none"}).addClass("ls-gui-element ls-loading-container").appendTo($),ie("<div>").addClass("ls-loading-indicator").appendTo(this.$element)},show:function(){this.$element.delay(400).fadeIn(300)},hide:function(){this.$element.stop(!0,!0).fadeOut(300)}}},J.navigation={direction:"next",init:function(){1<J.slides.count&&(this.set.keyboard(),this.set.touch())},set:{keyboard:function(){J.o.keybNav&&ie("body").on("keydown."+W,function(e){ie(e.target).is(":input")||J.slider.isAnimating||J.slider.isPreloading||(37==e.which?J.navigation.prev():39==e.which&&J.navigation.next())})},touch:function(){"ontouchstart"in window&&J.o.touchNav&&(J.slider.$innerWrapper.on("touchstart."+W,function(e){e=e.touches||e.originalEvent.touches;1==e.length&&(J.device.touchStartX=J.device.touchEndX=e[0].clientX)}),J.slider.$innerWrapper.on("touchmove."+W,function(e){var t=e.touches||e.originalEvent.touches;1==t.length&&(J.device.touchEndX=t[0].clientX),45<Math.abs(J.device.touchStartX-J.device.touchEndX)&&e.preventDefault()}),J.slider.$innerWrapper.on("touchend."+W,function(e){45<Math.abs(J.device.touchStartX-J.device.touchEndX)&&(0<J.device.touchStartX-J.device.touchEndX?$.layerSlider("touchNext"):$.layerSlider("touchPrev"))}))}},prev:function(){(!J.slider.isPopup||J.slider.isPopup&&J.slider.state.popupIsVisible)&&(this.direction="prev",this.forceDirection="prev",J.slideshow.set.prevNext("prev"))},next:function(){(!J.slider.isPopup||J.slider.isPopup&&J.slider.state.popupIsVisible)&&(this.direction="next",this.forceDirection="next",J.slideshow.set.prevNext("next"))},start:function(){J.functions.setStates(J.slideshow,{running:!0,paused:!1}),!0===J.slideshow.state.pausedByLastCycle&&J.functions.setStates(J.slideshow,{pausedByLastCycle:!1}),J.gui.navigation.bottom.setStartStop("start"),J.slideshow.state.pausedByHover||1!==J.transitions._slideTimeline.timeScale()&&J.transitions.layers.timeline.resume(),J.slideshow.start()},stop:function(){J.gui.navigation.bottom.setStartStop("stop"),J.o.pauseLayers&&J.transitions.layers.timeline.pause(),J.slideshow.stop()}},J.preload={init:function(){J.slider.$hiddenWrapper.find(".ls-slide img").each(function(){var e,t=ie(this),i=t[0],a={};t.is(".ls-layer, .ls-bg")&&(i.getAttribute("width")&&(a.width=i.getAttribute("width")),i.getAttribute("height")&&(a.height=i.getAttribute("height")),i.sizes&&(a.sizes=i.sizes),J.o.useSrcset&&(t.data("srcset")||i.srcset)&&(a.srcSet=t.data("srcset")||i.srcset,a.curSrc=i.currentSrc,e=a.srcSet.split(",").map(function(e){return parseInt(ie.trim(e).split(" ")[1])}),a.maxWidth=Math.max.apply(null,e)),t.removeAttr("width height sizes srcset loading"),ie.isEmptyObject(a)||(t.data(J.defaults.init.dataKey).attributes=a)),t.data("lazy-src")?t.data("src",t.data("lazy-src")):t.attr("data-tgpli-src")?t.data("src",t.attr("data-tgpli-src")):t.attr("data-lazy-src")?t.data("src",t.attr("data-lazy-src")):t.attr("data-lazy")?t.data("src",t.attr("data-lazy")):t.data("src")?a.curSrc&&t.data("src",a.curSrc):t.data("src",a.curSrc||i.src),t.attr("data-lazyset")?t.attr("srcset",t.attr("data-lazyset")):t.attr("data-lazy-srcset")?t.attr("srcset",t.attr("data-lazy-srcset")):t.attr("data-tgpli-srcset")&&t.attr("srcset",t.attr("data-tgpli-srcset")),t.removeAttr("lazy lazyload data-lazy-src data-tgpli-src data-lazy data-lazyset data-lazy-srcset data-tgpli-srcset"),t.attr("src","data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")})},imagesOfSlide:function(e,t){var i,a,s;!0!==J.slides[e].wrapped?(this.slideIndex=e,t?(this.onCompleteCallback=t,J.functions.setStates(J.slider,{preloadingImages:!0}),J.gui.loadingIndicator.show()):this.onCompleteCallback=!1,J.slider.canShow&&$.css({visibility:"visible"}),this.preImages=[],i=this,J.slider.$hiddenWrapper.find(".ls-slide:eq("+(i.slideIndex-1)+") *").each(function(){a=ie(this),s=this;var e,t=a.data(J.defaults.init.dataKey);a.is("img")?(a.data("src")&&a.attr("src",a.data("src")),t&&t.attributes&&t.attributes.srcSet&&J.o.useSrcset&&(s.srcset=t.attributes.srcSet),e=s.src,(t=!!(t&&t.attributes&&t.attributes.curSrc)&&t.attributes.curSrc)&&e!==t&&a.is(".ls-bg")&&(e=t,J.slides[i.slideIndex].data.$background.attr("src",e)),J.preload.preImages.push([e,a])):"none"!==a.css("background-image")&&-1!==a.css("background-image").indexOf("url")&&J.preload.preImages.push([a.css("background-image").match(/url\(['"]?(.+?)['"]?\)/)[1],a])}),J.transitions.firstSlide&&J.o.globalBGImage&&J.preload.preImages.push([J.o.globalBGImage,ie()]),this.thumbnailsAreLoaded||this.thumbnails(),0===this.preImages.length?this.onComplete():this.start()):J.slider.shouldResize&&t?(J.resize.setLayers(J.layers.get("next, bg")),J.resize.layers({callback:t})):t&&t()},thumbnails:function(){for(var e=J.slider.thumbnails.filter(function(e,t,i){return i.indexOf(e)==t}),t=e.length,i=0;i<t;i++)(new Image).src=e[i];this.thumbnailsAreLoaded=!0},start:function(){J.debugMode&&(J.debug.add("group","preload"),J.debug.add("log","preload.info",this.slideIndex)),this.preloadedImagesCount=0;for(var e,t=this,i=function(){++t.preloadedImagesCount==t.preImages.length&&(J.debugMode&&J.debug.groupEnd(),t.onComplete())},a=function(){J.debugMode&&(e=this.src.substring(this.src.lastIndexOf("/")+1,this.src.length),J.debug.add("log","preload.success",e)),this.originalLayer.data("preloadedWidth",this.width),this.originalLayer.data("preloadedHeight",this.height),i()},s=function(){J.debugMode&&(e=this.src.substring(this.src.lastIndexOf("/")+1,this.src.length),J.debug.add("warn","preload.fail",e)),i()},r=0;r<this.preImages.length;r++){var o=new Image;o.addEventListener("error",s,!1),o.addEventListener("load",a,!1),o.src=this.preImages[r][0],o.originalLayer=this.preImages[r][1]}},onComplete:function(){var s=this;this.onCompleteCallback?(J.layers.wrap(this.slideIndex),function e(){var t,i,a;0!==J.slides[s.slideIndex].$layers.length?J.timeouts.waitForWrap=setTimeout(e,100):(delete J.timeouts.waitForWrap,J.functions.setStates(J.transitions.layers.parallax,{ready:!0}),ie(".ls-thumbnail-wrapper, .ls-nav-next, .ls-nav-prev, .ls-bottom-nav-wrapper").css({visibility:"visible"}),J.slides[s.slideIndex].wrapped=!0,t=!(!window._layerSlider.globals.youTubeIsReady&&J.layers.get("next,in,youtube,bgvideo").length),i=!(!window._layerSlider.globals.vimeoIsReady&&J.layers.get("next,in,vimeo,bgvideo").length),a=function(){J.gui.loadingIndicator.hide(),J.slider.shouldResize?(J.resize.setLayers(J.layers.get("next, bg")),J.resize.layers({callback:s.onCompleteCallback})):s.onCompleteCallback()},t&&i?a():J.intervals.waitForJSApisLoaded=setInterval(function(){(t||window._layerSlider.globals.youTubeIsReady)&&(i||window._layerSlider.globals.vimeoIsReady)&&(clearInterval(J.intervals.waitForJSApisLoaded),delete J.intervals.waitForJSApisLoaded,a())},50))}()):J.layers.wrap(this.slideIndex,!0),J.functions.setStates(J.slider,{preloadingImages:!1})}},J.resize={setLayers:function(e){this.$responsiveLayers=e.add(J.layers.get("active")),J.slides.next.data.$backgroundVideo.length&&(this.$responsiveLayers=this.$responsiveLayers.add(J.slides.next.data.$backgroundVideo))},all:function(e={}){return!(J.slider.state.isHidden&&!J.slider.isPopup)&&(!!document.body.contains(L)&&(J.api.hasEvent("sliderWillResize")&&J.api.triggerEvent("sliderWillResize",J.api.eventData()),this.slider(!!e.forceToGetParentWidth),J.o.performanceMode&&this.performance(),J.slider.isScene&&!J.slider.$spacingWrapper.is("[data-disabled-scene]")&&this.scene(),this.navigation(),this.layers(),this.yourLogo(),this.shadow(),this.timers(),J.slides.indexesCreated&&(J.o.allowRestartOnResize&&J.transitions.layers.timeline.shouldRestart||J.transitions.layers.timeline.forceRestart)&&(J.transitions.layers.timeline.forceRestart=!1,J.functions.resetSlideTimelines(),J.transitions.layers.timeline.create(!0),J.slider.isScrollScene&&J.transitions._slideTimeline&&J.transitions.scrollscene.animate()),void(J.api.hasEvent("sliderDidResize")&&J.api.triggerEvent("sliderDidResize",J.api.eventData()))))},viewport:function(){M.scrollTop(Math.round(J.slider.offset.top)-(te.viewport.height-J.slider.height)/2)},slider:function(e){if(!document.body.contains(L))return!1;te.viewport.width||M.trigger("resize.lsGlobal"),J.o.fixFloatedContainers&&$.css("display","none");var t,i,a,s=J.slider.$parentWithNumericWidthValue&&0<J.slider.$parentWithNumericWidthValue.width()&&!e?J.slider.$parentWithNumericWidthValue:J.functions.getSliderClosestParentElementWithNumericValueOfProperty("width"),r=J.slider.initial,o=J.slider.$parentWithNumericWidthValuePercent?s.width()/100*J.slider.$parentWithNumericWidthValuePercent:s.width(),n=r.type,l=0!==r.maxWidth?r.maxWidth:o,d="auto"===r.marginLeft?0:r.marginLeft,e="auto"===r.marginRight?0:r.marginRight;switch(J.o.fixFloatedContainers&&$.css("display","block"),-1!==l.indexOf("%")?l=o/100*parseInt(l):-1!==l.indexOf("vw")&&(l=te.viewport.width/100*parseInt(l)),J.slider.state.inFullscreen?$[0].style.maxWidth="":0!==r.maxWidth&&($[0].style.maxWidth=l),l<(o-=d+e)&&0<=l&&(o=l),J.o.fitScreenWidth&&("fullwidth"===n||"fullsize"===n&&"fitheight"!==J.o.fullSizeMode&&"fitwidth"!==J.o.fullSizeMode)&&(d=s.offset().left,e=parseInt(s.css("padding-left"))||0,l=parseInt(s.css("border-left-width"))||0,$[0].style.maxWidth="100vw",$[0].style.marginLeft=-(d+e+l)+"px",o=te.viewport.width),o-=r.skinWidth,te.getScreenSize(),J.slider.state.inFullscreen&&(o=te.screen.width),n){case"responsive":0<J.o.maxRatio&&(o=Math.min(r.width*J.o.maxRatio,o)),t=(J.slider.state.inFullscreen?(te.screen.ratio>r.ratio?this.ratio=te.screen.height/r.height:this.ratio=te.screen.width/r.width,o=Math.round(r.width*this.ratio)):this.ratio=o/r.width,Math.round(r.height*this.ratio));break;case"fullwidth":t=o<J.o.responsiveUnder?(this.ratio=o/J.o.responsiveUnder,Math.round(r.height*this.ratio)):J.slider.state.inFullscreen?te.screen.ratio>r.layersWidth/r.height?(this.ratio=te.screen.height/r.height,te.screen.height):(this.ratio=te.screen.width/r.layersWidth,r.height*this.ratio):(this.ratio=1,r.height);break;case"fullsize":switch(J.o.fullSizeMode.toLowerCase()){case"normal":t=te.viewport.height-r.skinHeight;break;case"hero":var c=Math.max($.offset().top,0),p=J.slider.isScene?J.slider.$spacingWrapper:$;J.slider.isScene&&(c=0);var u=ie(J.o.calculateOffsetFrom).length?ie(J.o.calculateOffsetFrom).height()+ie(J.o.calculateOffsetFrom)[0].getBoundingClientRect().top:0;u&&p.css("top",u),(t=te.viewport.height-r.skinHeight-(u||c))<=0&&(t=te.viewport.height-r.skinHeight);break;case"fitheight":o=s.width()-r.skinWidth,t=s.height()-r.skinHeight;break;case"fitwidth":o=s.width()-r.skinWidth,t=te.viewport.height-r.skinHeight}o/t<r.ratio?this.ratio=o/r.layersWidth:this.ratio=t/r.layersHeight;break;case"fixed":case"fixedsize":this.ratio=1,o=r.width,t=r.height,J.o.maxRatio=1,L.style.maxWidth="none"}this.ratio=J.o.maxRatio&&0<J.o.maxRatio&&this.ratio>J.o.maxRatio?J.o.maxRatio:this.ratio,L.style.width=o+"px",L.style.height=t+"px",J.slider.width=o,J.slider.height=t,J.slider.$layersWrapper.css({"--sw":J.slider.width+"px","--sh":J.slider.height+"px"}),te.isMobile?768<=te.viewport.width||te.viewport.width>te.viewport.height?$.removeClass("ls-device-is-phone").addClass("ls-device-is-tablet"):$.removeClass("ls-device-is-tablet").addClass("ls-device-is-phone"):$.removeClass("ls-device-is-phone ls-device-is-tablet").addClass("ls-device-is-desktop"),J.o.marginTop&&(i=-1!=J.o.marginTop.indexOf("sh")||-1!=J.o.marginTop.indexOf("%")?J.slider.height/100*parseInt(J.o.marginTop):J.o.marginTop),J.o.marginBottom&&(a=-1!=J.o.marginBottom.indexOf("sh")||-1!=J.o.marginBottom.indexOf("%")?J.slider.height/100*parseInt(J.o.marginBottom):J.o.marginBottom),J.slider.$spacingWrapper.css({marginTop:i,marginBottom:a})},performance:function(){var e=parseInt(J.o.performanceModeThreshold);-1!==J.o.performanceModeThreshold.indexOf("sh")||-1!==J.o.performanceModeThreshold.indexOf("%")?J.performance.threshold=J.slider.height*(e/100):-1!==J.o.performanceModeThreshold.indexOf("vh")?J.performance.threshold=te.viewport.height*(e/100):-1!==J.o.performanceModeThreshold.indexOf("px")?J.performance.threshold=e:J.performance.threshold=J.slider.height*e,J.performance.threshold=Math.max(parseInt(J.performance.threshold),0)},scene:function(){var e;J.slider.isScrollScene&&J.o.sceneDuration?e=Math.round(J.slider.height+J.o.sceneDuration*J.slider.height/(J.o.sceneSpeed/100))+"px":J.slider.isSticky&&(-1!==J.o.sceneHeight.indexOf("sh")||-1!==J.o.sceneHeight.indexOf("%")?(e=J.slider.height*(parseInt(J.o.sceneHeight)/100),e=Math.round(Math.max(J.slider.height,e)),e+="px"):-1===J.o.sceneHeight.indexOf("px")&&-1===J.o.sceneHeight.indexOf("vh")?(e=J.slider.height*(J.o.sceneHeight||2),e=Math.round(Math.max(J.slider.height,e)),e+="px"):e=J.o.sceneHeight),e&&J.slider.$spacingWrapper.css({height:e}),$.css({top:J.transitions.scrollscene.stickLimit})},borderRadius:function(e,i){ie.isNumeric(e)&&(e=e.toString());var a="";return ie.each(e.split(" "),function(e,t){-1==t.indexOf("%")&&-1==t.indexOf("em")?a+=Math.round(parseInt(t)*i)+"px ":a+=t+" "}),ie.trim(a)},shadows:function(e,t){for(var i=e.split(" "),a=0;a<i.length;a++)-1!==i[a].indexOf("px")&&(i[a]=Math.ceil(parseInt(i[a])*t)+"px");return e=i.join(" ").trim()},convertSingleValue:function(e,t){return-1==e.indexOf("em")?Math.round(parseInt(e)*t)+"px ":e},calculateRatio:function(e,t){return e.settings.minresponsiveratio&&t<e.settings.minresponsiveratio&&(t=e.settings.minresponsiveratio),e.settings.maxresponsiveratio&&t>e.settings.maxresponsiveratio&&(t=e.settings.maxresponsiveratio),e.settings.calculatedratio=t},layers:function(e={}){if(J.slider.hasPinnedLayers&&(J.slider.$layersWrapper.css({clip:"rect(0px "+J.slider.width+"px "+J.slider.height+"px 0px)"}),J.slider.$layersWrapper&&J.slider.$layersWrapper.is(".ls-layers-clip")&&J.slider.$layersWrapper.removeClass("ls-layers-clip")),J.o.animateFirstSlide&&J.slideshow.firstStart&&"inside"!==J.slider.position.toViewport)return J.functions.setStates(J.slider,{readyForStart:!0}),void(e.callback&&(J.api.resumeCallback=e.callback));if(e.singleLayer||this.$responsiveLayers){J.debugMode&&J.debug.add("group","resize");for(var t,i=e.singleLayer||this.$responsiveLayers,a=J.slider.initial,s=J.slider.width,r=J.slider.height,o=s/r,n=[],l=[],d=[],c=[],p=0,u=0,h=window.LS_previewZoom||1,m=0,f=i.length;m<f;m++){var g=i[m],y=ie(g),v=y.data(J.defaults.init.dataKey),w=!!v.is.insideLayerGroup&&y.data("$layerGroup"),x=!!v.is.insideLayerGroup&&w.data(J.defaults.init.dataKey),S=e.original?ie.extend(!0,{},v.original,e.original):v.original,b=this.calculateRatio(v,this.ratio),T=v.elements.$_innerWrappers;S.width||(S.percentWidth=0),S.height||(S.percentHeight=0),!y.is("img, picture")||"auto"!==S.width&&"auto"!==S.height||((T=v.elements.$_innerWrappers).addClass("ls-force-display-block ls-force-visibility-hidden"),"auto"===S.width&&(S.width=y.width()),"auto"===S.height&&(S.height=y.height()),T.removeClass("ls-force-display-block ls-force-visibility-hidden")),t="responsive"===a.type&&-1!==J.o.maxRatio?a.width:a.layersWidth,I="responsive"===a.type&&-1!==J.o.maxRatio?a.height:a.layersHeight,L=t,u="fullsize"===a.type||"fullwidth"===a.type||"responsive"===a.type?(p=0<t?(s-t*b)/2:0,0<I?(r-I*b)/2:0):(p=p<0?0:p,u<0?0:u),"0%"!==S.left&&"100%"!==S.left||(p=p<0?0:p),"0%"!==S.top&&"100%"!==S.top||(u=u<0?0:u);var k="fixed"==v.settings.position||"fixedx"==v.settings.position,C="fixed"==v.settings.position||"fixedy"==v.settings.position,P=s,O=r,I=v.is.insideLayerGroup?(C=k=!1,W=$=0,t=P=x.responsive.width,O=x.responsive.height):(t=L,I);v.is.pinned&&(J.slider.get.offset(),"responsive"!==a.type&&"fixedsize"!==a.type&&("fullsize"!==a.type||"fitheight"!==J.o.fullSizeMode&&!1!==J.o.fitScreenWidth)||(k?(t=P=te.viewport.width,p=0):(P=J.slider.width,p=J.slider.offset.left,t=a.width)),C?(I=O=te.viewport.height,u=0):(O=J.slider.height,u=(te.viewport.height-J.slider.height)/2||0,I=a.height));var L,$=k?0:p,W=C?0:u,M={width:k&&0!==S.percentWidth?P/100*S.percentWidth:parseInt(S.width)*b,height:C&&0!==S.percentHeight?O/100*S.percentHeight:parseInt(S.height)*b,paddingLeft:this.convertSingleValue(S.paddingLeft,b),paddingTop:this.convertSingleValue(S.paddingTop,b),paddingRight:this.convertSingleValue(S.paddingRight,b),paddingBottom:this.convertSingleValue(S.paddingBottom,b),borderLeftWidth:this.convertSingleValue(S.borderLeftWidth,b),borderTopWidth:this.convertSingleValue(S.borderTopWidth,b),borderRightWidth:this.convertSingleValue(S.borderRightWidth,b),borderBottomWidth:this.convertSingleValue(S.borderBottomWidth,b),borderRadius:this.borderRadius(S.borderRadius,b),boxShadow:this.shadows(S.boxShadow,b),textShadow:this.shadows(S.textShadow,b)},B={marginLeft:this.convertSingleValue(S.marginLeft,b),marginTop:this.convertSingleValue(S.marginTop,b),marginRight:this.convertSingleValue(S.marginRight,b),marginBottom:this.convertSingleValue(S.marginBottom,b)},_={},F={borderRadius:M.borderRadius};if(S.minWidth&&(M.minWidth=S.percentMinWidth?P/100*S.percentMinWidth:S.minWidth,M.width=Math.max(M.width,M.minWidth)),S.minHeight&&(M.minHeight=S.percentMinHeight?O/100*S.percentMinHeight:S.minHeight,M.height=Math.max(M.height,M.minHeight)),S.maxWidth&&(M.maxWidth=S.percentMaxWidth?P/100*S.percentMaxWidth:S.maxWidth,M.width=Math.min(M.width,M.maxWidth)),S.maxHeight&&(M.maxHeight=S.percentMaxHeight?O/100*S.percentMaxHeight:S.maxHeight,M.height=Math.min(M.height,M.maxHeight)),S.minWidth&&S.maxWidth&&M.minWidth>M.maxWidth&&(M.width=M.minWidth),S.minHeight&&S.maxHeight&&M.minHeight>M.maxHeight&&(M.height=M.minHeight),v.is.imageLayer&&(M.minWidth||M.minHeight||M.maxWidth||M.maxHeight)&&(T.addClass("ls-force-display-block ls-force-visibility-hidden"),L={minHeight:M.minHeight||0,minWidth:M.minWidth||0,maxHeight:M.maxHeight||"none",maxWidth:M.maxWidth||"none"},!v.original.autoWidth||M.minWidth&&!M.minHeight||M.maxWidth&&!M.maxHeight?L.width=M.width:L.width="auto",!v.original.autoHeight||!M.minWidth&&M.minHeight||!M.maxWidth&&M.maxHeight?L.height=M.height:L.height="auto",y.css(L),M.width=y.width(),M.height=y.height(),delete M.minWidth,delete M.minHeight,delete M.maxWidth,delete M.maxHeight,T.removeClass("ls-force-display-block ls-force-visibility-hidden")),(k||C)&&(S.percentHeight||S.percentWidth)&&v.is.imageLayer&&(S.percentHeight&&!S.percentWidth&&(M.width=S.width*(M.height/S.height)),S.percentWidth&&!S.percentHeight&&(M.height=S.height*(M.width/S.width))),("number"==typeof S.width&&S.width<0||"auto"==S.width||""==S.sWidth)&&J.debugMode&&J.debug.add("warn","resize.width",[m+1,S.width]),("number"==typeof S.height&&S.height<0||"auto"==S.height||""==S.sHeight)&&J.debugMode&&J.debug.add("warn","resize.height",[m+1,S.height]),M.fontSize=S.fontSize*b,v.is.textLayer&&(te.isMobile&&M.fontSize<v.styleSettings.minmobilefontsize?M.fontSize=v.styleSettings.minmobilefontsize:M.fontSize<v.styleSettings.minfontsize&&(M.fontSize=v.styleSettings.minfontsize),T=M.fontSize/S.fontSize,M.fontSize+="px",-1!==S.lineHeight.indexOf("px")&&(M.lineHeight=parseFloat(S.lineHeight)*T+"px"),-1!==S.letterSpacing.indexOf("px")&&(M.letterSpacing=parseFloat(S.letterSpacing)*T+"px"),-1!==S.textStrokeWidth.indexOf("px")&&(M.textStrokeWidth=parseFloat(S.textStrokeWidth)*T+"px"),""==S.sWidth&&(M.width="auto",v.elements.$innerWrapper.addClass("ls-force-width-auto"),"nowrap"!==y.css("white-space")&&(v.elements.$_innerWrappers.addClass("ls-force-left-0"),v.elements.$_outerWrappers.addClass("ls-force-full-size"))),""==S.sHeight&&(M.height="auto",v.elements.$innerWrapper.addClass("ls-force-height-auto")),""!=S.sWidth&&""!=S.sHeight||y.css(M)),v.is.slideBackground||v.is.backgroundVideo)if(v.is.slideBackground){var A=J.slides[v.is.onSlide].data.backgroundSize;switch((void 0!==A&&"inherit"!==A?A:J.o.slideBGSize).replace("100% 100%","stretch")){case"auto":break;case"cover":S.ratio<o?(M.width=s,M.height=M.width/S.ratio):(M.height=r,M.width=M.height*S.ratio);break;case"contain":S.ratio<o?(M.height=r,M.width=M.height*S.ratio):(M.width=s,M.height=M.width/S.ratio);break;case"stretch":M.width=s,M.height=r}M.width=Math.round(M.width),M.height=Math.round(M.height);var z,D=J.slides[v.is.onSlide].data.backgroundPosition;switch((z=(void 0!==D?D:J.o.slideBGPosition).split(" "))[0]){case"left":M.x=0;break;case"center":M.x=(J.slider.width-M.width)/2;break;case"right":M.x=J.slider.width-M.width;break;default:-1!==z[0].indexOf("%")?M.x=(J.slider.width-M.width)/100*parseInt(z[0]):M.x=parseInt(z[0])}if(void 0!==z[1])switch(z[1]){case"top":M.y=0;break;case"center":M.y=(J.slider.height-M.height)/2;break;case"bottom":M.y=J.slider.height-M.height;break;default:-1!==z[1].indexOf("%")?M.y=(J.slider.height-M.height)/100*parseInt(z[1]):M.y=parseInt(z[1])}M.transform="translateX("+M.x+"px) translateY("+M.y+"px)",M["-ms-transform"]="translateX("+M.x+"px) translateY("+M.y+"px)",M["-webkit-transform"]="translateX("+M.x+"px) translateY("+M.y+"px)"}else v.is.backgroundVideo&&(S.ratio<o?(M.width=s,M.height=M.width/S.ratio):(M.height=r,M.width=M.height*S.ratio),M.x=(J.slider.width-M.width)/2,M.y=(J.slider.height-M.height)/2,M.width=Math.round(M.width),M.height=Math.round(M.height),M.transform="translateX("+M.x+"px) translateY("+M.y+"px)",M["-ms-transform"]="translateX("+M.x+"px) translateY("+M.y+"px)",M["-webkit-transform"]="translateX("+M.x+"px) translateY("+M.y+"px)");else!v.mediaProperties||"youtube"!==v.mediaProperties.type&&"vimeo"!==v.mediaProperties.type||(A=M.width/M.height,D={width:M.width,height:M.height},S.ratio<A?(D.height=M.width/S.ratio,D.marginTop=(M.height-D.height)/2):(D.width=M.height*S.ratio,D.marginLeft=(M.width-D.width)/2),v.mediaProperties.$media.css(D)),v.elements.$_innerWrappers.addClass("ls-force-display-block ls-force-no-transform"),y.addClass("ls-force-no-transform"),v.is.insideLayerGroup&&((x=(w=y.data("$layerGroup")).data(J.defaults.init.dataKey)).elements.$_innerWrappers.addClass("ls-force-display-block ls-force-no-transform"),w.addClass("ls-force-no-transform")),"auto"==M.width?M.outerWidth=Math.ceil(y.outerWidth()):M.outerWidth=M.width+J.layers.toNum(M.paddingLeft,M.fontSize)+J.layers.toNum(M.paddingRight,M.fontSize)+J.layers.toNum(M.borderLeftWidth,M.fontSize)+J.layers.toNum(M.borderRightWidth,M.fontSize),"auto"==M.height?M.outerHeight=Math.ceil(y.outerHeight()):M.outerHeight=M.height+J.layers.toNum(M.paddingTop,M.fontSize)+J.layers.toNum(M.paddingBottom,M.fontSize)+J.layers.toNum(M.borderTopWidth,M.fontSize)+J.layers.toNum(M.borderBottomWidth,M.fontSize),v.elements.$_allWrappers.removeClass("ls-force-display-block ls-force-no-transform ls-force-width-auto ls-force-height-auto ls-force-left-0 ls-force-full-size"),y.removeClass("ls-force-no-transform"),v.is.insideLayerGroup&&(x.elements.$_allWrappers.removeClass("ls-force-display-block ls-force-no-transform ls-force-width-auto ls-force-height-auto ls-force-left-0 ls-force-full-size"),w.removeClass("ls-force-no-transform")),B.width=_.width=M.outerWidth,B.height=_.height=M.outerHeight,-1!=S.left.indexOf("%")?"100%"===S.left?M.left=0===$?P/100*parseFloat(S.left)-M.outerWidth:$+t*b/100*parseFloat(S.left)-M.outerWidth:"0%"===S.left?M.left=0===$?0:$:M.left=0===$?P/100*parseFloat(S.left)-M.outerWidth/2:$+t*b/100*parseFloat(S.left)-M.outerWidth/2:M.left=$+parseFloat(S.left)*b,B.left=M.left,-1!=S.top.indexOf("%")?"100%"===S.top?M.top=0===W?O/100*parseFloat(S.top)-M.outerHeight:W+I*b/100*parseFloat(S.top)-M.outerHeight:"0%"===S.top?M.top=0===W?0:W+0:M.top=0===W?O/100*parseFloat(S.top)-M.outerHeight/2:W+I*b/100*parseFloat(S.top)-M.outerHeight/2:M.top=W+parseFloat(S.top)*b,B.top=M.top;v.textIn.$nodesForBackgroundClip&&v.textIn.$nodesForBackgroundClip.length&&((O=v.elements.$outerStyleWrapper.add(v.elements.$outerStyleWrapper.find(".ls-wrapper"))).addClass("ls-force-visibility-hidden ls-force-display-block"),v.elements.$_innerWrappers.addClass("ls-force-no-transform"),I=!1,"auto"===g.style.width&&(g.style.width=Math.ceil(v.original.width*(h*b))+"px",I=!0),v.textIn.$nodesForBackgroundClip.each(function(e,t){var i=ie(t),a=i.children(".ls-textnode-bgclip-wrap"),t=a.children(".ls-textnode"),i=(i.children(".ls-textnode-dummy"),i.position());a.css({width:Math.ceil(B.width),height:Math.ceil(B.height),transform:"translate("+-i.left/h+"px,"+-i.top/h+"px)"}),t.css({marginLeft:i.left/h,marginTop:i.top/h})}),I=I&&!(g.style.width="auto"),v.elements.$_innerWrappers.removeClass("ls-force-no-transform"),O.removeClass("ls-force-visibility-hidden ls-force-display-block")),M.fontSize=parseFloat(M.fontSize)/te.automaticFontSizeRatio+"px",v.responsive=M,n[m]=M,v.is.smartBG&&(M.left=Math.round(M.left),M.top=Math.round(M.top),M.width=Math.ceil(M.width),M.height=Math.ceil(M.height),n[m]["--sw"]=(k?J.slider.width:a.width*b)+"px",n[m]["--sh"]=(C?J.slider.height:a.height*b)+"px",n[m]["--x"]=-M.left-parseFloat(M.borderLeftWidth)-parseFloat(M.paddingLeft)-parseFloat(B.marginLeft)+(k?0:p)+"px",n[m]["--y"]=-M.top-parseFloat(M.borderTopWidth)-parseFloat(M.paddingTop)-parseFloat(B.marginTop)+(C?0:u)+"px"),v.is.slideBackground||v.is.backgroundVideo||(v.settings.wrapperData.responsive=B,l[m]=B,d[m]=_,c[m]=F)}if(e.singleLayer)return n;for(var V=0,R=n.length;V<R;V++){var E=ie(i[V]),N=E.data(J.defaults.init.dataKey);E.css(n[V]),N.is.slideBackground||N.is.backgroundVideo?(N.is.slideBackground||N.is.backgroundVideo)&&(N.elements.$bgOuterWrapper.css({width:J.slider.width,height:J.slider.height}),N.elements.$outerWrapper.css({width:J.slider.width,height:J.slider.height})):(E.find(".split-item").css(c[V]),this.wrappers(E,N,l[V],d[V]))}e.callback&&e.callback(),J.debugMode&&J.debug.groupEnd("resize")}},wrappers:function(e,t,i,a){i&&t.elements.$outerStyleWrapper.css(i),a&&t.loop.enabled&&t.elements.$loopWrapper.css(a),ee.TweenMax.set(t.elements.$wrapper[0],{autoCSS:!1,css:{transformPerspective:t.transformPerspective.layer*J.resize.ratio}}),t.loop.enabled&&ee.TweenMax.set(t.elements.$loopWrapper[0],{autoCSS:!1,css:{transformPerspective:t.transformPerspective.loop*J.resize.ratio}}),t.hover.enabled&&ee.TweenMax.set(e[0],{autoCSS:!1,css:{transformPerspective:t.transformPerspective.hover*J.resize.ratio}}),t.textIn.nodes&&ee.TweenMax.set(t.textIn.nodes,{autoCSS:!1,css:{transformPerspective:t.transformPerspective.text*J.resize.ratio}}),t.textOut.nodes&&ee.TweenMax.set(t.textOut.nodes,{autoCSS:!1,css:{transformPerspective:t.transformPerspective.text*J.resize.ratio}}),t.parallax.enabled&&ee.TweenMax.set(t.elements.$parallaxWrapper[0],{autoCSS:!1,css:{transformPerspective:t.transformPerspective.parallax*J.resize.ratio}}),t.scroll.enabled&&ee.TweenMax.set(t.elements.$scrollTransformWrapper[0],{autoCSS:!1,css:{transformPerspective:t.transformPerspective.scroll*J.resize.ratio}})},performTransformOperations:function(e,t){var i,a,s,r;for(r in t)if("string"==typeof t[r]&&-1!==t[r].indexOf("="))if(a=(i=t[r].split("="))[0].trim()||!1,s=parseFloat(i[1].trim())||!1,a&&s&&ie.isNumeric(s))switch(a){case"+":t[r]=e[r]+s;break;case"-":t[r]=e[r]-s;break;case"*":t[r]=e[r]*s;break;case"/":t[r]=e[r]/s}else t[r]=e[r]},mirrorTransitionProperties:function(o){function n(e){var t=e;switch(e){case"left":t="right";break;case"right":t="left";break;case"top":t="bottom";break;case"bottom":t="top"}return-1!==e.indexOf("lw")||-1!==e.indexOf("lh")||-1!==e.indexOf("sw")||-1!==e.indexOf("sh")?t="-"===e.charAt(0)?e.substring(1):"-"+e:-1!==e.indexOf("%")?t=-1*parseFloat(e.split("%")[0])+"%":ie.isNumeric(e)&&0!==e&&"0"!==e&&(t=-1*e),t}function e(e){var t,i,a,s;for(s in e)if(a=s.toLowerCase(),-1!==o.mirrorProperties.indexOf(a)){if("object"==typeof(t=e[s]))for(var r in i=[],t)i.push(n(t[r]));else i=n(t);e[s]=i}}e(o.transitionProperties),o.transitionPropertiesShouldBeConverted&&e(o.transitionPropertiesShouldBeConverted)},transformProperties:function(e,t,i,a,s,r){if("object"==typeof a.x){for(var o=[],n=0;n<a.x.length;n++)"string"==typeof a.x[n]?o[n]=this.getXY(e,t,a.x[n],"Width"):o[n]=a.x[n]*t.settings.calculatedratio;i.cycle.x=o}else"string"==typeof a.x?-1!==a.x.indexOf("random")||a.x.charAt(0)===J.defaults.init.openingBracket?i.x=J.functions.convert.randomProperties(a.x,"x",e,t):i.x=this.getXY(e,t,a.x,"Width"):void 0!==a.x&&(i.x=a.x*t.settings.calculatedratio);if("object"==typeof a.y){for(var l=[],d=0;d<a.y.length;d++)"string"==typeof a.y[d]?l[d]=this.getXY(e,t,a.y[d],"Height"):l[d]=a.y[d]*t.settings.calculatedratio;i.cycle.y=l}else"string"==typeof a.y?-1!==a.y.indexOf("random")||a.y.charAt(0)===J.defaults.init.openingBracket?i.y=J.functions.convert.randomProperties(a.y,"y",e,t):i.y=this.getXY(e,t,a.y,"Height"):void 0!==a.y&&(i.y=a.y*t.settings.calculatedratio);if(s&&(i=s),"object"==typeof a.transformOrigin||r){var c=[];if(r){s=e.data(J.defaults.init.dataKey).elements.$outerStyleWrapper.add(e.data(J.defaults.init.dataKey).elements.$outerStyleWrapper.find(".ls-wrapper"));s.addClass("ls-force-visibility-hidden ls-force-display-block ls-fix-textnodes"),c=J.functions.convert.nodesTransformOrigin(a.transformOrigin,r,t,e.data(J.defaults.init.dataKey).elements.$outerStyleWrapper),s.removeClass("ls-force-visibility-hidden ls-force-display-block ls-fix-textnodes")}else for(var p=0;p<a.transformOrigin.length;p++)c[p]=J.functions.convert.transformOrigin(a.transformOrigin[p],e,t,e.data(J.defaults.init.dataKey).elements.$outerStyleWrapper);i.cycle.transformOrigin=c}else"string"==typeof a.transformOrigin&&(i.transformOrigin=J.functions.convert.transformOrigin(a.transformOrigin,e,t,e.data(J.defaults.init.dataKey).elements.$outerStyleWrapper))},styleProperties:function(e,t,i,a){a.width&&-1!==a.width.indexOf("%")&&(a.percentWidth=parseInt(a.width),a.width=parseInt(J.layers.getStyle(a.width,J.slider.initial.percW))),a.height&&-1!==a.height.indexOf("%")&&(a.percentHeight=parseInt(a.height),a.height=parseInt(J.layers.getStyle(a.height,J.slider.initial.percH)));var s,r=J.resize.layers({singleLayer:e,original:a})[0];for(s in a)-1===s.indexOf("percent")&&r.hasOwnProperty(s)&&-1===r[s].indexOf("NaN")&&(i[s]=r[s])},getXY:function(e,t,i,a,s){var r=0,o=t.original,n=t.responsive,l=t.settings.wrapperData&&t.settings.wrapperData.responsive?t.settings.wrapperData.responsive:{marginLeft:this.convertSingleValue(o.marginLeft,this.ratio),marginTop:this.convertSingleValue(o.marginTop,this.ratio),marginRight:this.convertSingleValue(o.marginRight,this.ratio),marginBottom:this.convertSingleValue(o.marginBottom,this.ratio)};if(n.outerWidth||(n.outerWidth=Math.ceil(e.outerWidth())),n.outerHeight||(n.outerHeight=Math.ceil(e.outerHeight())),o&&n&&l)switch(i){case"left":r=-1==o.left.indexOf("%")||!parseInt(o.left)||"100%"===o.left?-n.left-n.outerWidth-parseInt(l.marginLeft):-parseFloat(o.left)/100*J.slider.width-n.outerWidth/2-parseInt(l.marginLeft);break;case"right":r=-1==o.left.indexOf("%")||!parseInt(o.left)||"100%"===o.left?J.slider.width-n.left-parseInt(l.marginLeft):(1-parseFloat(o.left)/100)*J.slider.width+n.outerWidth/2-parseInt(l.marginLeft);break;case"top":r=-1==o.top.indexOf("%")||!parseInt(o.top)||"100%"===o.top?-n.top-n.outerHeight-parseInt(l.marginTop):-parseFloat(o.top)/100*J.slider.height-n.outerHeight/2-parseInt(l.marginTop);break;case"bottom":r=-1==o.top.indexOf("%")||!parseInt(o.top)||"100%"===o.top?J.slider.height-n.top-parseInt(l.marginTop):(1-parseFloat(o.top)/100)*J.slider.height+n.outerHeight/2-parseInt(l.marginTop);break;case"width":r=n.outerWidth;break;case"-width":r=-n.outerWidth;break;case"height":r=n.outerHeight;break;case"-height":r=-n.outerHeight;break;default:r=-1!==i.indexOf("%")?n["outer"+a]/100*parseInt(i):-1!==i.indexOf("sw")?parseFloat(i.split("sw")[0])/100*J.slider.width:-1!==i.indexOf("sh")?parseFloat(i.split("sh")[0])/100*J.slider.height:-1!==i.indexOf("lw")?n.outerWidth/100*parseFloat(i.split("lw")[0]):-1!==i.indexOf("lh")?n.outerHeight/100*parseFloat(i.split("lh")[0]):parseFloat(i)*(s?1:t.settings.calculatedratio||this.calculateRatio(t,this.ratio))}return r},navigation:function(){"always"==J.o.thumbnailNavigation&&J.gui.navigation.bottom.thumbnails.resize()},shadow:function(){J.gui.shadow.show&&J.gui.shadow.show(),J.gui.shadow.$element&&J.gui.shadow.resize()},yourLogo:function(){J.yourLogo.$element&&J.yourLogo.resize()},timers:function(){if(0<J.gui.timers.slidebar.$containerElement.length)for(var e=0,t=J.gui.timers.slidebar.$containerElement.length;e<t;e++)J.gui.timers.slidebar.containerElementWidth[e]=J.gui.timers.slidebar.$containerElement[e].width(),J.gui.timers.slidebar.elementWidth[e]=J.gui.timers.slidebar.$element[e].width()}},J.transitions={firstSlide:!0,timelines:{all:["_slideTransition","_slideTimeline","_slideTimelineAlternate","_forceLayersOut","_forceLayersOutMirror","_forceLayersOutPrevious","_forceLayersOutMirrorPrevious"],slide:["_slideTransition"],layers:["_slideTimeline","_slideTimelineAlternate"],allforce:["_forceLayersOut","_forceLayersOutMirror","_forceLayersOutPrevious","_forceLayersOutMirrorPrevious"],prevforce:["_forceLayersOutPrevious","_forceLayersOutMirrorPrevious"],currentforce:["_forceLayersOut","_forceLayersOutMirror"],mirrorforce:["_forceLayersOutMirror","_forceLayersOutMirrorPrevious"],set:function(e,t){for(var i in this[e])J.transitions[this[e][i]]&&t(J.transitions[this[e][i]],this[e][i])}},start:function(){return!!document.body.contains(L)&&(J.slider.isPopup&&J.slider.state.popupIsWaitingForDelay?!(J.slider.state.waitingForPopupTimer=!0):(J.device.scroll.directionAtSlideTransitionStart=J.device.scroll.direction,"always"==J.o.thumbnailNavigation&&(J.gui.navigation.bottom.thumbnails.change(),"ontouchstart"in window||J.gui.navigation.bottom.thumbnails.scroll()),this.layers.out.forced(),void this.slide.init()))},slide:{$wrapper:ie(),init:function(){var e,t,i;J.functions.setStates(J.slider,{animatingSlides:!0}),J.transitions.layers.parallax.reset(),J.slider.$layersWrapper.children('.ls-parallax[data-ls-parallax="active"]').each(function(){ie(this).find(".ls-layer").data(J.defaults.init.dataKey).settings.slideOut===J.slides.current.index&&ie(this).attr("data-ls-parallax","disbaled")}),J.transitions.curSlide=J.slides.current,J.transitions.nextSlide=J.slides.next,J.transitions._slideTransition=new ee.TimelineMax({paused:!0,onComplete:function(){J.transitions.slide.onComplete()}}),(J.transitions.nextSlide.data&&J.transitions.nextSlide.data.transitionorigami||J.slider.isScrollScene)&&(J.o.animateFirstSlide=!1),J.transitions.firstSlide&&J.o.animateFirstSlide&&(J.transitions.curSlide=ie.extend(!0,{},J.transitions.nextSlide),delete J.transitions.curSlide.data.$background,J.transitions.curSlide.data.backgroundColor="transparent"),J.transitions.firstSlide&&!J.o.animateFirstSlide?(void 0!==J.transitions.nextSlide.data.$background&&(e=(i=J.transitions.nextSlide.data.$background.data(J.defaults.init.dataKey)).kenBurns.zoom?i.kenBurns.from.scale:1,t=i.kenBurns.zoom?i.kenBurns.from.rotation:0,i=J.transitions.nextSlide.filter.from||"none",J.transitions._slideTransition.set(J.transitions.nextSlide.data.$background[0],{"-webkit-filter":i,filter:i},0),J.transitions._slideTransition.fromTo(J.transitions.nextSlide.data.$background.closest(".ls-bg-wrap")[0],J.o.sliderFadeInDuration,{autoCSS:!1,css:{scale:e,rotation:t,opacity:0,display:"block"}},{autoCSS:!1,css:{opacity:1}},0)),this.start(!0)):"undefined"==typeof layerSliderTransitions&&"undefined"==typeof layerSliderCustomTransitions?(this.start(!0),J.debugMode&&J.debug.add("warn","slideTransition.noSlideTransition",J.transitions.nextSlide.index)):void 0===J.transitions.curSlide.data.$background&&void 0===J.transitions.nextSlide.data.$background&&"transparent"==J.transitions.curSlide.data.backgroundColor&&"transparent"==J.transitions.nextSlide.data.backgroundColor?this.start(!0):("x"===J.o.clipSlideTransition?te.$overflowWrapper.addClass("ls-overflowx-hidden"):"y"===J.o.clipSlideTransition?te.$overflowWrapper.addClass("ls-overflowy-hidden"):!0===J.o.clipSlideTransition&&te.$overflowWrapper.addClass("ls-overflow-hidden"),void 0!==J.transitions.curSlide.data.$background&&(e=J.transitions.curSlide.data.$background.closest(".ls-bg-wrap")[0]._gsTransform,(t=J.transitions.curSlide.data.$background.data(J.defaults.init.dataKey)).responsive.filter=J.transitions.curSlide.data.$background[0].style.filter,t.responsive.kbRotation=void 0!==e?" rotate("+e.rotation+"deg)":" rotate(0deg)",t.responsive.kbScale=void 0!==e?" scale("+e.scaleX+")":" scale(1)"),J.transitions.slide.$wrapper=ie("<div>").addClass("ls-slide-transition-wrapper").css({width:J.slider.width,height:J.slider.height}),this.select.slideTransitionType())},select:{slideTransitionType:function(){J.transitions.slide.normal.select.transitionType()}},start:function(e){var t,i=!(!J.slides.current.index||!J.slides.current.data.$backgroundVideo.length),a=!(!J.slides.next.index||!J.slides.next.data.$backgroundVideo.length);!J.slideshow.firstStart&&J.api.hasEvent("slideChangeDidStart")&&J.api.triggerEvent("slideChangeDidStart",J.api.eventData()),e||(void 0!==J.transitions.nextSlide.data.transitionDuration?s=J.transitions.nextSlide.data.transitionDuration:void 0!==J.o.slideTransitionDuration&&ie.isNumeric(J.o.slideTransitionDuration)&&-1<J.o.slideTransitionDuration&&(s=J.o.slideTransitionDuration/1e3),ie.isNumeric(s)&&(0===s&&(s+=1e-5),J.transitions._slideTransition.duration(s)),J.transitions.firstSlide&&J.o.animateFirstSlide&&J.o.firstSlideDuration&&J.transitions._slideTransition.duration(J.o.firstSlideDuration/1e3),J.debugMode&&J.debug.options.transitionDuration&&J.transitions._slideTransition.duration(J.debug.options.transitionDuration),.25<J.transitions.layers.timeline.timeScaleModifier&&(r=(r=J.transitions._slideTransition.duration()/(.75+J.transitions.layers.timeline.timeScaleModifier))<.5?.5:r,J.transitions._slideTransition.duration(r)));var e=J.transitions._slideTransition.duration()/J.transitions._slideTransition.timeScale(),s=e,r=J.transitions.nextSlide.data.timeShift||(void 0!==J.o.slideTimeShift&&ie.isNumeric(J.o.slideTimeShift)&&J.o.slideTimeShift<0?J.o.slideTimeShift/1e3:0);0<r?r=0:Math.abs(r)>e&&(r=-e),J.transitions.firstSlide&&J.o.animateFirstSlide&&!1!==J.o.firstSlideTimeShift&&J.o.firstSlideTimeShift<=0&&(r=J.o.firstSlideTimeShift/1e3),J.transitions.nextSlide.data.calculatedTimeShift=r,r=J.transitions.firstSlide&&!J.o.animateFirstSlide?J.o.sliderFadeInDuration+.01:(s+r)*J.transitions._slideTransition.timeScale(),(i||a)&&J.transitions.media.changeBackgroundVideo(J.transitions.firstSlide,i&&a),J.transitions._slideTransition.call(function(){!J.slideshow.firstStart&&J.api.hasEvent("slideChangeWillComplete")&&J.api.triggerEvent("slideChangeWillComplete",J.api.eventData()),J.slideshow.should.change||J.transitions.layers.timeline.prepare(),J.slides.set.slideIndexes(),J.o.hashChange&&(document.location.hash=J.slides[J.slides.current.index].data.deeplink||"_no-deeplink-found_"),J.slideshow.start(),!J.transitions.firstSlide&&J.slides.prev.index&&J.slides.prev.data.$backgroundVideo.length&&!J.slides.prev.data.$backgroundVideo.data(J.defaults.init.dataKey).mediaProperties.willBePaused&&(J.slides.prev.data.$backgroundVideo.trigger("stopBackgroundVideo"),J.slides.prev.data.$backgroundVideo.data(J.defaults.init.dataKey).elements.$bgWrapper.css({display:"none"})),J.slideshow.should.change||J.slides.next.data.$backgroundVideo.length&&J.slides.next.data.$backgroundVideo.data(J.defaults.init.dataKey).mediaProperties&&!J.slides.next.data.$backgroundVideo.data(J.defaults.init.dataKey).mediaProperties.isPreloaded&&(J.slides.next.data.$backgroundVideo.trigger("preloadBackgroundVideo"),J.slides.next.data.$backgroundVideo.data(J.defaults.init.dataKey).mediaProperties.isPreloaded=!0),J.transitions.firstSlide=!1},[],this,r),J.transitions._slideTransition.play(),J.slideshow.forceFastChange&&J.transitions._slideTransition.progress(1),void 0!==J.transitions.curSlide.data&&void 0!==J.transitions.curSlide.data.$background&&(t=J.transitions.curSlide.data.$background.data(J.defaults.init.dataKey),J.timeouts.applyBG=setTimeout(function(){delete J.timeouts.applyBG,J.transitions.curSlide.data.$background.closest(".ls-bg-wrap").hide(),t.kenBurns.zoom&&ee.TweenMax.set(J.transitions.curSlide.data.$background[0],{autoCSS:!1,css:t.kenBurns.from})},5))},onComplete:function(){var e;void 0!==J.transitions.nextSlide.data.$background&&J.transitions.nextSlide.data.$background.closest(".ls-bg-wrap").show(),"transparent"!==J.transitions.nextSlide.data.backgroundColor?J.slider.$slideBGColorWrapper.css("background-color",J.transitions.nextSlide.data.backgroundColor):J.slider.$slideBGColorWrapper.css("background-color","transparent"),J.o.leaveOverflow||te.$overflowWrapper.removeClass("ls-overflowx-hidden ls-overflowy-hidden ls-overflow-hidden"),this.$wrapper&&(this.$wrapper.html("").remove(),this.$wrapper=!1),J.gui.navigation.bottom.bullets.set.active(),0<J.o.cycles&&(J.slideshow.hasOwnProperty("cycleSlideIndex")?J.slideshow.cycles.check(J.transitions.nextSlide.index)&&(J.navigation.stop(),J.functions.setStates(J.slideshow,{pausedByLastCycle:!0}),J.o.forceCycles&&(J.slideshow.curCycle=1)):J.slideshow.cycles.set()),J.functions.setStates(J.slider,{animatingSlides:!1,changingSlides:!1}),!J.slideshow.firstStart&&J.api.hasEvent("slideChangeDidComplete")&&J.api.triggerEvent("slideChangeDidComplete",J.api.eventData()),J.slideshow.firstStart=!1,J.slideshow.forceFastChange=!1,J.slideshow.forceFastChangeCallback&&(J.slideshow.forceFastChangeCallback(),J.slideshow.forceFastChangeCallback=!1),J.slideshow.should.change?J.navigation.forceDirection?(void 0!==J.transitions.curSlide.data&&void 0!==J.transitions.curSlide.data.$background&&(e=J.transitions.curSlide.data.$background.data(J.defaults.init.dataKey),J.transitions.curSlide.data.$background.closest(".ls-bg-wrap").hide(),e.kenBurns.zoom&&ee.TweenMax.set(J.transitions.curSlide.data.$background[0],{autoCSS:!1,css:e.kenBurns.from})),J.slideshow.changeTo(J.slideshow.get.slideInSequence(J.navigation.forceDirection),!0),J.navigation.forceDirection=!1):J.slideshow.forceSlideChangeTo?J.slideshow.changeTo(J.slideshow.forceSlideChangeTo,!0,!0):J.preload.imagesOfSlide(J.slides.next.index):J.preload.imagesOfSlide(J.slides.next.index)},normal:{select:{transitionType:function(){var e,t,i;J.o.slideTransition?J.transitions.slide.normal.setTransition(J.o.slideTransition.type,J.o.slideTransition.obj):(i=!!J.transitions.nextSlide.data.transition2d&&J.transitions.nextSlide.data.transition2d.toString().split(","),J.device.touchPrev&&J.o.slideOnSwipe?(J.device.touchPrev=!1,this.transition("2d","1")):J.device.touchNext&&J.o.slideOnSwipe?(J.device.touchNext=!1,this.transition("2d","1")):J.slides.next.data.$background||i&&(!i||-1!=i.indexOf("1")||-1!=i.indexOf("2")||-1!=i.indexOf("3")||-1!=i.indexOf("4"))?J.browser.supports3D()&&(J.transitions.nextSlide.data.transition3d||J.transitions.nextSlide.data.customtransition3d)?J.transitions.nextSlide.data.transition3d&&J.transitions.nextSlide.data.customtransition3d?(e=Math.floor(2*Math.random()),t=[["3d",J.transitions.nextSlide.data.transition3d],["custom3d",J.transitions.nextSlide.data.customtransition3d]],this.transition(t[e][0],t[e][1])):J.transitions.nextSlide.data.transition3d?this.transition("3d",J.transitions.nextSlide.data.transition3d):this.transition("custom3d",J.transitions.nextSlide.data.customtransition3d):J.transitions.nextSlide.data.transition2d&&J.transitions.nextSlide.data.customtransition2d?(e=Math.floor(2*Math.random()),t=[["2d",J.transitions.nextSlide.data.transition2d],["custom2d",J.transitions.nextSlide.data.customtransition2d]],this.transition(t[e][0],t[e][1])):J.transitions.nextSlide.data.transition2d?this.transition("2d",J.transitions.nextSlide.data.transition2d):J.transitions.nextSlide.data.customtransition2d?this.transition("custom2d",J.transitions.nextSlide.data.customtransition2d):this.transition("2d","1"):this.transition("2d","5"))},transition:function(e,t){J.debugMode&&J.debug.add("group","slideTransition.info"),t+="";var i,a,s=-1==e.indexOf("custom")?J.t:J.ct,r="3d";-1!=e.indexOf("2d")&&(r="2d"),a=-1!=t.indexOf("last")?s["t"+r].length-1:-1!=t.indexOf("all")?Math.floor(Math.random()*J.functions.countProp(s["t"+r])):(t=(i=t.split(",")).length,parseInt(i[Math.floor(Math.random()*t)])-1),void 0===s["t"+r][a]&&(J.debugMode&&J.debug.add("warn","slideTransition.customTransition",[r.toUpperCase()+(-1===e.indexOf("custom")?"":" (CUSTOM)"),a+1]),s=J.t,e=r="2d",a=0),J.debugMode&&J.debug.add("log","slideTransition.info",[r.toUpperCase()+(-1===e.indexOf("custom")?"":" (CUSTOM)"),a+1,s["t"+r][a].name]),J.transitions.slide.normal.setTransition(r,s["t"+r][a])}},setTransition:function(e,t){t.name||(t=_lsConvTrProp(t));var i,a,s,r,o,n=ie.extend(!0,{cols:1,rows:1},t),l=typeof n.cols,d=typeof n.rows,c=[],p=J.navigation.direction,u=0,h=0,m=!!J.transitions.curSlide.data.$background&&J.functions.getURL(J.transitions.curSlide.data.$background),f=!!J.transitions.nextSlide.data.$background&&J.functions.getURL(J.transitions.nextSlide.data.$background),g=J.o.playByScroll&&"up"===J.device.scroll.direction?"to":"from";if(n.rc){switch(typeof n.rc){case"number":J.slider.width>J.slider.height?(d=n.rc,l=Math.floor(J.slider.width/(J.slider.height/n.rc))):(l=n.rc,d=Math.floor(J.slider.height/(J.slider.width/n.rc)));break;case"string":s=parseInt(n.rc),l=Math.floor(J.slider.width/s),d=Math.floor(J.slider.height/s)}n.cols=l,n.rows=d}else{switch(l){case"number":l=n.cols;break;case"string":l=Math.floor(Math.random()*(parseInt(n.cols.split(",")[1])-parseInt(n.cols.split(",")[0])+1))+parseInt(n.cols.split(",")[0]);break;default:l=Math.floor(Math.random()*(n.cols[1]-n.cols[0]+1))+n.cols[0]}switch(d){case"number":d=n.rows;break;case"string":d=Math.floor(Math.random()*(parseInt(n.rows.split(",")[1])-parseInt(n.rows.split(",")[0])+1))+parseInt(n.rows.split(",")[0]);break;default:d=Math.floor(Math.random()*(n.rows[1]-n.rows[0]+1))+n.rows[0]}te.isMobile&&J.o.optimizeForMobile&&(15<=l?l=7:5<=l?l=4:4<=l?l=3:2<l&&(l=2),15<=d?d=7:5<=d?d=4:4<=d?d=3:2<d&&(d=2),2<d&&2<l&&(d=2,4<l&&(l=4)))}J.debugMode&&!J.o.slideTransition&&(J.debug.add("log","slideTransition.properties",[[l,d],l*d]),J.debug.groupEnd()),i=Math.floor(J.slider.width/l),a=Math.floor(J.slider.height/d),l=Math.floor(J.slider.width/i),d=Math.floor(J.slider.height/a),r=J.slider.width-i*l,o=J.slider.height-a*d,"prev"==p&&(t={random:"random",forward:"reverse",reverse:"forward",center:"center",edge:"edge",mirror:"mirror","radial-in":"radial-in","radial-out":"radial-out","col-forward":"col-reverse","col-reverse":"col-forward"},"2d"===e&&n.transition&&"scale"===n.transition.type&&(t.forward="forward",t.reverse="reverse"),n.tile&&n.tile.sequence&&(n.tile.sequence=t[n.tile.sequence]),ie.each(["animation","before","after"],function(e,t){n[t]&&n[t].transition&&((t=n[t].transition).rotateX&&44<Math.abs(t.rotateX)&&(t.rotateX*=-1),t.rotateY&&44<Math.abs(t.rotateY)&&(t.rotateY*=-1),t.rotate&&(t.rotate*=-1))}));for(var y,v,w=0;w<l*d;w++)c.push(w);switch(n.tile.sequence){case"reverse":c.reverse();break;case"col-forward":c=J.functions.sortArray(d,l,"forward");break;case"col-reverse":c=J.functions.sortArray(d,l,"reverse");break;case"random":c=J.functions.shuffleArray(c);break;case"center":c=J.functions.sortArray(d,l,"center");break;case"edge":case"mirror":c=J.functions.sortArray(d,l,"edge");break;case"radial-out":c=J.functions.sortArray(d,l,"radial-out");break;case"radial-in":c=J.functions.sortArray(d,l,"radial-in")}("transparent"===J.transitions.nextSlide.data.backgroundColor||"3d"==e||void 0!==J.transitions.curSlide.data.$background&&void 0!==J.transitions.nextSlide.data.$background)&&J.slider.$slideBGColorWrapper.css("background-color","transparent"),"2d"==e&&(y=-1!=n.name.toLowerCase().indexOf("carousel"),v=-1!=n.name.toLowerCase().indexOf("crossfad"),this.$curTiles=ie("<div>").addClass("ls-curtiles").appendTo(J.transitions.slide.$wrapper),this.$nextTiles=ie("<div>").addClass("ls-nexttiles").appendTo(J.transitions.slide.$wrapper));for(var x=0;x<l*d;x++){var S,b=(x+1)%l==0?r:0,T=(d-1)*l-1<x?o:0,k=ie("<div>").addClass("ls-slide-transition-tile").css({width:i+b,height:a+T}).data("style",{width:i+b,height:a+T}).appendTo(J.transitions.slide.$wrapper),u=(c[x],x%l==0?u+1:u),h=x%l==0?1:h+1;if("3d"==e){k.addClass("ls-3d-container");var C,P,O=i+b,I=a+T,L=new ee.TimelineMax,$=Math.abs(Math.abs(h-l/2-.5)-l/2-.5)*Math.abs(Math.abs(u-d/2-.5)-d/2-.5);k.css({zIndex:$}),C=O/2,P=I/2,T=($="horizontal"==n.animation.direction?90<Math.abs(n.animation.transition.rotateY)&&"large"!=n.tile.depth?Math.floor(O/7)+b:O:90<Math.abs(n.animation.transition.rotateX)&&"large"!=n.tile.depth?Math.floor(I/7)+T:I)/2,this.createCuboids("ls-3d-box",k,0,0,0,0,-T,0,0,C+"px "+P+"px 0px"),this.createCuboids("ls-3d-front",k.find(".ls-3d-box"),O,I,0,0,T,0,0),"vertical"==n.animation.direction&&90<Math.abs(n.animation.transition.rotateX)?this.createCuboids("ls-3d-back",k.find(".ls-3d-box"),O,I,0,0,-T,180,0):this.createCuboids("ls-3d-back",k.find(".ls-3d-box"),O,I,0,0,-T,0,180),this.createCuboids("ls-3d-left",k.find(".ls-3d-box"),$,I,-T,0,0,0,-90),this.createCuboids("ls-3d-right",k.find(".ls-3d-box"),$,I,O-T,0,0,0,90),this.createCuboids("ls-3d-top",k.find(".ls-3d-box"),O,$,0,-T,0,90,0),this.createCuboids("ls-3d-bottom",k.find(".ls-3d-box"),O,$,0,I-T,0,-90,0),O=k.find(".ls-3d-front"),$="horizontal"==n.animation.direction?90<Math.abs(n.animation.transition.rotateY)?k.find(".ls-3d-back"):0<n.animation.transition.rotateY?k.find(".ls-3d-left"):k.find(".ls-3d-right"):90<Math.abs(n.animation.transition.rotateX)?k.find(".ls-3d-back"):0<n.animation.transition.rotateX?k.find(".ls-3d-bottom"):k.find(".ls-3d-top"),I=c[x]*n.tile.delay,T=J.transitions.slide.$wrapper.find(".ls-3d-container:eq( "+x+" ) .ls-3d-box"),n.before&&n.before.transition?(n.before.transition.delay=n.before.transition.delay?(n.before.transition.delay+I)/1e3:I/1e3,L.to(T[0],n.before.duration/1e3,J.functions.convert.transition(n.before.transition,n.before.easing))):n.animation.transition.delay=n.animation.transition.delay?(n.animation.transition.delay+I)/1e3:I/1e3,L.to(T[0],n.animation.duration/1e3,J.functions.convert.transition(n.animation.transition,n.animation.easing)),n.after&&(n.after.transition||(n.after.transition={}),L.to(T[0],n.after.duration/1e3,J.functions.convert.transition(n.after.transition,n.after.easing,"after"))),J.transitions._slideTransition.add(L,0)}else{var W,M,B,_,F,A,z,D,V,R="auto",E="auto",N="auto",H="auto",Y=1,X=1,K="50% 50%",U="50% 50%",j=0,G=100,q={},Q=n.transition.intensity||2,Z="random"==n.transition.direction?(z="scale"==n.transition.type?["top","bottom","middle","right","left","center"]:["top","bottom","right","left"])[Math.floor(Math.random()*z.length)]:n.transition.direction;switch(-1!=n.name.toLowerCase().indexOf("mirror")&&x%2==0&&(p="prev"==p?"next":"prev"),"prev"==p&&(Z={top:"bottom",bottom:"top",middle:"middle",left:"right",right:"left",center:"center",topleft:"bottomright",topright:"bottomleft",bottomleft:"topright",bottomright:"topleft",none:"none"}[Z]),Z){case"top":R=N=-k.data("style").height,E=H=0;break;case"bottom":R=N=k.data("style").height,E=H=0;break;case"left":R=N=0,E=H=-k.data("style").width;break;case"right":R=N=0,E=H=k.data("style").width;break;case"topleft":R=k.data("style").height,N=0,E=k.data("style").width,H=0;break;case"topright":R=k.data("style").height,N=0,E=-k.data("style").width,H=0;break;case"bottomleft":R=-k.data("style").height,N=0,E=k.data("style").width,H=0;break;case"bottomright":R=-k.data("style").height,N=0,E=-k.data("style").width,H=0;break;case"none":H=E=N=R=0}switch(this.scale2D=void 0!==n.transition.scale?n.transition.scale:1,1==y&&1!=this.scale2D&&(R/=2,N/=2,E/=2,H/=2),(n.transition.rotate||n.transition.rotateX||n.transition.rotateY||1!=this.scale2D)&&"slide"!=n.transition.type?k.css({overflow:"visible"}):k.css({overflow:"hidden"}),1==y?this.$curTiles.css({overflow:"visible"}):this.$curTiles.css({overflow:"hidden"}),!0===v||"slide"==n.transition.type||"scale"==n.transition.type||!0===y||n.transition.hasOwnProperty("opacity")?(D=k.appendTo(this.$curTiles),F=k.clone().appendTo(this.$nextTiles),O=ie("<div>").addClass("ls-curtile").appendTo(D)):F=k.appendTo(this.$nextTiles),$=ie("<div>").addClass("ls-nexttile").appendTo(F),A=c[x]*n.tile.delay/1e3,L=n.transition.rotate||0,z=n.transition.rotateX||0,D=n.transition.rotateY||0,"prev"==p&&(L=-L,z=-z,D=-D),n.transition.type){case"fade":Y=R=N=E=H=0,X=1;break;case"mixed":Y=0,(X=1)==this.scale2D&&(N=H=0),W=void 0!==n.transition.scaleX?n.transition.scaleX:void 0!==n.transition.scale?n.transition.scale:1,M=void 0!==n.transition.scaleY?n.transition.scaleY:void 0!==n.transition.scale?n.transition.scale:1;break;case"scale":switch(Y=R=N=E=H=0,M=W=X=1,Z){case"left":case"right":W=1+c[x]/(50/Q);break;case"top":case"bottom":M=1+c[x]/(50/Q);break;case"center":W=1+c[x]/(50/Q);break;case"middle":M=1+c[x]/(50/Q)}switch("mirror"===n.tile.sequence&&l*d/2<x&&(j=100,G=0),Z){case"left":K=j+"% 50%",U=G+"% 0";break;case"right":K=G+"% 50%",U=j+"% 50%";break;case"center":case"middle":_=B=1;break;case"top":K="50% "+j+"%",U="50% "+G+"%";break;case"bottom":K="50% "+G+"%",U="50% "+j+"%"}}J.transitions._slideTransition.fromTo($[0],n.transition.duration/1e3,{immediateRender:!1,autoCSS:!1,css:{x:-E,y:-R,display:"block",opacity:Y,rotation:L,rotationX:z,rotationY:D,borderRadius:n.transition.borderRadius||0,scaleX:void 0!==W?W:this.scale2D,scaleY:void 0!==M?M:this.scale2D,transformOrigin:K}},{autoCSS:!1,css:{x:0,y:0,opacity:X,rotation:0,rotationX:0,rotationY:0,borderRadius:0,scaleX:1,scaleY:1},ease:J.functions.convert.easing(n.transition.easing)},A),1==v&&(void 0===J.transitions.nextSlide.data.$background||void 0!==J.transitions.nextSlide.data.$background&&(-1!=J.transitions.nextSlide.data.$background.attr("src").toLowerCase().indexOf("png")||J.transitions.nextSlide.data.$background.width()<J.slider.width||J.transitions.nextSlide.data.$background.height()<J.slider.height))&&(q.opacity=0),"slide"!=n.transition.type&&1!=y||-1!=n.name.toLowerCase().indexOf("mirror")?"scale"==n.transition.type&&(q.scaleX=B||W,q.scaleY=_||M,q.transformOrigin=U):(V=0!==L?-L:0,q.x=H,q.y=N,q.rotation=V,q.scale=this.scale2D,q.opacity=Y),n.transition.hasOwnProperty("opacity")&&(q.opacity=n.transition.opacity),void 0!==O&&J.transitions._slideTransition.to(O[0],n.transition.duration/1e3,{autoCSS:!1,css:q,ease:J.functions.convert.easing(n.transition.easing)},A)}V=x%l*i,q=Math.floor(x/l)*a,void 0!==J.transitions.curSlide.data.$background&&(S=J.transitions.curSlide.data.$background.data(J.defaults.init.dataKey),"3d"===e||"2d"===e&&(!0===v||"slide"===n.transition.type||"scale"===n.transition.type||!0===y||n.transition.hasOwnProperty("opacity"))?O.append(ie('<div style="position: absolute;">').css({width:J.slider.width,height:J.slider.height,left:-V,top:-q,transform:S.responsive.kbRotation+S.responsive.kbScale}).append(ie("<img>").attr("src",m).css({width:S.responsive.width,height:S.responsive.height,filter:S.responsive.filter,transform:"translateX("+S.responsive.x+"px) translateY("+S.responsive.y+"px)"}))):0===this.$curTiles.children().length&&this.$curTiles.append(ie('<div style="position: absolute;">').css({width:J.slider.width,height:J.slider.height,left:-V,top:-q,transform:S.responsive.kbRotation+S.responsive.kbScale}).append(ie("<img>").attr("src",m).css({width:S.responsive.width,height:S.responsive.height,filter:S.responsive.filter,transform:"translateX("+S.responsive.x+"px) translateY("+S.responsive.y+"px)"})))),"transparent"===J.transitions.curSlide.data.backgroundColor||J.transitions.curSlide.data.$backgroundVideo.length||("3d"===e||"2d"===e&&(!0===v||"slide"===n.transition.type||!0===y)?O:this.$curTiles).css("background-color",J.transitions.curSlide.data.backgroundColor),void 0!==J.transitions.nextSlide.data.$background&&(S=(A=J.transitions.nextSlide.data.$background.data(J.defaults.init.dataKey)).kenBurns[g],$.append(ie('<div style="position: absolute;">').css({width:J.slider.width,height:J.slider.height,left:-V,top:-q,transform:"rotate("+S.rotation+"deg) scale("+S.scale+")"}).append(ie("<img>").attr("src",f).css({width:A.responsive.width,height:A.responsive.height,filter:J.transitions.nextSlide.filter.from||"none",transform:"translateX("+A.responsive.x+"px) translateY("+A.responsive.y+"px)"})))),"transparent"===J.transitions.nextSlide.data.backgroundColor||J.transitions.nextSlide.data.$backgroundVideo.length||$.css("background-color",J.transitions.nextSlide.data.backgroundColor)}J.transitions.slide.$wrapper.prependTo(J.o.preferBlendMode?J.slider.$layersWrapper:J.slider.$innerWrapper),J.transitions.slide.start()},createCuboids:function(e,t,i,a,s,r,o,n,l,d){o="translate3d( "+s+"px, "+r+"px, "+o+"px)";0!==n&&(o+="rotateX( "+n+"deg)"),0!==l&&(o+="rotateY( "+l+"deg)");o={width:i,height:a,transform:o,"-ms-transform":o,"-webkit-transform":o};d&&(o["transform-origin"]=d,o["-ms-transform-origin"]=d,o["-webkit-transform-origin"]=d),ie("<div>").addClass(e).css(o).appendTo(t)}}},layers:{setZIndex:function(e,t,i){t.original._zIndex||(t.original._zIndex=parseInt(t.elements.$outerWrapper.css("zIndex"))),i!==parseInt(t.elements.$outerWrapper.css("zIndex"))&&t.elements.$outerWrapper.css({zIndex:i})},in:{onStart:function(e){var t=e.data(J.defaults.init.dataKey);t.is.countdown&&J.countdown.startInterval(e,t.countdownSettings),t.hover.enabled&&J.transitions.layers.hover.enable(e),J.layers.set.dataAttribute("add",e,"animating-in"),t.in.zIndex&&J.transitions.layers.setZIndex(e,t,t.in.zIndex),"instant"===t.mediaSettings.autoplay&&J.media.functions.playIfAllowed(e)},onComplete:function(e){var t=e.data(J.defaults.init.dataKey);"instant"!==t.mediaSettings.autoplay&&J.media.functions.playIfAllowed(e),t.in.zIndex&&J.transitions.layers.setZIndex(e,t,t.original._zIndex),J.layers.set.dataAttribute("remove",e,"animating-in"),J.layers.set.dataAttribute("add",e,"active")}},out:{forced:function(){var s,r,o,n,e,t,i;J.transitions._forceLayersOut&&(J.transitions._slideTimeline&&(s=new ee.TimelineMax({paused:!0,autoRemoveChildren:!0}),n=[],e=J.layers.get("current, in, static, active").add(J.layers.get("current, out, static, active")),i=J.layers.get("current, out, notstatic, active"),t=J.layers.get("current, out, active"),i=ie().add(e).add(i),i.each(function(){var e,t=ie(this).data(J.defaults.init.dataKey);if(t.loop._timeline&&(J.transitions._slideTimeline.remove(t.loop._timeline),t.loop._timeline.play()),t.is.static){r=[t.elements.$wrapper[0]],t.elements.$clipWrapper&&(r=r.concat(t.elements.$clipWrapper[0])),t.textIn.nodes&&(r=r.concat(t.textIn.nodes));for(var i=0;i<r.length;i++)n=n.concat(J.transitions._slideTimeline.getTweensOf(r[i],!0),J.transitions._slideTimelineAlternate.getTweensOf(r[i],!0));for(var a=0;a<n.length;a++)n[a].duration&&0!==n[a].duration()&&(o=n[a],e=o,s.add(e,100-e.duration()*e.progress()))}}),t.each(function(){ie(this).data(J.defaults.init.dataKey).should.reset=!0}),s.play().seek(100),J.transitions._slideTimeline.eventCallback("onStart",null),J.transitions._slideTimeline.eventCallback("onComplete",null),J.transitions._slideTimeline.eventCallback("onReverseComplete",null),J.transitions._slideTimeline.eventCallback("onUpdate",null),J.transitions._slideTimeline.stop().clear(),J.transitions._slideTimelineAlternate.stop().clear()),("prev"===J.navigation.direction?J.transitions._forceLayersOutMirror:J.transitions._forceLayersOut).play(),J.slideshow.forceFastChange&&(J.transitions._forceLayersOut.progress(1),J.transitions._forceLayersOutMirror.progress(1))),J.slider.$layersWrapper.find(".ls-link").css({display:"none"})},onStart:function(e){var t=e.data(J.defaults.init.dataKey);t.out.zIndex?J.transitions.layers.setZIndex(e,t,t.out.zIndex):t.in.zIndex&&J.transitions.layers.setZIndex(e,t,t.original._zIndex),J.layers.set.dataAttribute("add",e,"animating-out")},onComplete:function(e){var t=e.data(J.defaults.init.dataKey);!J.slider.state.changingSlides&&t.settings.slideOut===J.slides.current.index||J.transitions.layers.reset(e,t),t.hover.enabled&&J.transitions.layers.hover.disable(e),J.layers.set.dataAttribute("remove",e,"animating-out"),J.layers.set.dataAttribute("add",e,"hidden"),t.is.mediaLayer&&t.mediaProperties&&t.mediaProperties.type&&J.media.functions.stop(!0,e),t.is.countdown&&J.countdown.stopInterval(t.countdownSettings)}},reset:function(e,t){var i;t.original._zIndex&&J.transitions.layers.setZIndex(e,t,t.original._zIndex),t.loop._timeline&&(t.loop._timeline.stop().clear(),delete t.loop._timeline,ee.TweenMax.set(t.elements.$loopWrapper[0],t.reset.loopWrapperOnSlideChange)),t.clip.enabled&&(i=t.clip.userDefined?t.clip.default:t.clip.style,t.loop.enabled&&ee.TweenMax.set(t.elements.$loopWrapper[0],i),t.inClipFromCSS.clipPath||ee.TweenMax.set(t.elements.$clipWrapper[0],i)),ee.TweenMax.set(t.elements.$wrapper[0],t.reset.wrapperOnSlideChange),ee.TweenMax.set(e[0],{"-webkit-filter":t.original.filter,filter:t.original.filter}),t.should.update&&(t.textInNodesFrom.random={},t.textOutNodesTo.random={},J.layers.update.data(e)),t.should.reset=!1},timeline:{shouldRestart:!1,create:function(e){var t,i,a,s=e?"current":"next";if(J.transitions.curNext=s,J.o.allowRestartOnResize?J.slider.isScrollScene&&(J.transitions.layers.timeline.shouldRestart=!0):J.transitions.layers.timeline.shouldRestart=!1,J.transitions.layers.timeline.resetStates(),J.transitions.timelines.set("layers",function(e,t){e.pause().progress(0).kill().clear(!0),e=null}),J.transitions._slideTimeline=new ee.TimelineMax({paused:!0,onStart:function(){J.api.hasEvent("slideTimelineDidStart")&&J.api.triggerEvent("slideTimelineDidStart",J.api.eventData())},onComplete:function(){J.o.playByScroll&&J.o.playByScrollSkipSlideBreaks&&("next"===J.slideshow.direction?J.transitions.layers.timeline.scrollForward(!0):J.transitions.layers.timeline.scrollBackwards(!0,!0))},onReverseComplete:function(){J.api.hasEvent("slideTimelineDidReverseComplete")&&J.api.triggerEvent("slideTimelineDidReverseComplete",J.api.eventData()),J.transitions.layers.timeline.shouldReplay&&(J.transitions.layers.timeline.shouldRestart=!1,J.transitions._slideTimeline.play()),J.o.playByScroll&&J.o.playByScrollSkipSlideBreaks&&J.transitions.layers.timeline.scrollBackwards(!0,!1)},onUpdate:function(e){J.api.hasEvent("slideTimelineDidUpdate")&&J.api.triggerEvent("slideTimelineDidUpdate",e)},onUpdateParams:["{self}"]}),J.transitions._slideTimelineAlternate=new ee.TimelineMax({paused:!0}),this.totalDuration=0,this.progress=1,J.transitions.timelines.set("prevforce",function(e,t){e.progress(1).kill().clear(!0),e=null}),J.transitions._forceLayersOut&&(J.transitions._forceLayersOutPrevious=J.transitions._forceLayersOut),J.transitions._forceLayersOutMirror&&(J.transitions._forceLayersOutMirrorPrevious=J.transitions._forceLayersOutMirror),J.transitions._forceLayersOut=new ee.TimelineMax({paused:!0,autoRemoveChildren:!0}),J.transitions._forceLayersOutMirror=new ee.TimelineMax({paused:!0,autoRemoveChildren:!0}),t=J.layers.get(s+", in, notactive"),i=J.layers.get(s+", out, notstatic").add(J.layers.get(s+", out, active, static")),e=J.layers.get(s+", in, bgonly, notactive"),a=ie().add(t).add(i).add(e),this.addLayers(t,"in",J.transitions._slideTimeline,J.transitions._forceLayersOut,J.transitions._slideTimelineAlternate,J.transitions._forceLayersOutMirror),this.addLayers(i,"out",J.transitions._slideTimeline,J.transitions._forceLayersOut,J.transitions._slideTimelineAlternate,J.transitions._forceLayersOutMirror),J.slides[s].data&&-1!==J.slides[s].data.duration&&J.slides[s].data.duration<this.totalDuration?(this.progress=J.slides[s].data.duration/this.totalDuration,J.debugMode&&J.debug.add("warn","slideTimeline.duration",[J.slides[s].data.duration,this.totalDuration])):J.transitions._slideTimeline.duration()>this.totalDuration&&(this.progress=this.totalDuration/J.transitions._slideTimeline.duration()),-1===J.slides[s].data.duration?(J.o.slideDuration&&ie.isNumeric(J.o.slideDuration)&&-1<J.o.slideDuration?this.totalDuration=J.o.slideDuration/1e3:0===this.totalDuration&&(this.totalDuration=J.o.slideDurationWithoutLayers/1e3),J.o.inLayerPreview&&(J.o.hasInfiniteLoop&&"loop-transition"===J.o.layerPreviewPresetType?this.totalDuration+=5:"ending-transition"===J.o.layerPreviewPresetType?this.totalDuration+=.25:"hover-transition"!==J.o.layerPreviewPresetType&&(this.totalDuration+=.5)),J.slides[s].data.duration=this.totalDuration,J.slides[J.slides[s].index].data.duration=this.totalDuration):this.totalDuration=J.slides[s].data.duration,!J.functions.getData("slideDuration",this.totalDuration))return!1;J.slider.isScrollScene&&(J.o.sceneDuration||(J.o.sceneDuration=this.totalDuration,J.resize.scene()),J.slider.$spacingWrapper.attr("data-scene-duration",J.o.sceneDuration)),this.addLayers(e,"in",J.transitions._slideTimeline,J.transitions._forceLayersOut,J.transitions._slideTimelineAlternate),!0===J.transitions.layers.timeline.shouldRestart&&J.debugMode&&J.debug.add("warn","slideTimeline.restart",J.o.allowRestartOnResize?"enabled":"disabled");for(var r,o=0;o<a.length;o++)ie(a[o]).data(J.defaults.init.dataKey).parallax.enabled&&ie(a[o]).data(J.defaults.init.dataKey).elements.$parallaxWrapper.attr("data-ls-parallax","active");J.transitions.layers.parallax.trigger(),J.transitions.layers.scroll.reset(),J.transitions.layers.scroll.trigger(),J.api.hasEvent("slideTimelineDidCreate")&&J.api.triggerEvent("slideTimelineDidCreate",{slideTimeline:J.transitions._slideTimeline,layersOnSlideTimeline:a,slideTimelineDuration:this.totalDuration}),J.transitions.timers.create(),J.transitions.timers.bar._transition&&(J.gui.timers.bar.$element.css("width",0),J.transitions._slideTimeline.add(J.transitions.timers.bar._transition.play(),0)),J.transitions.timers.circle._transition&&J.transitions._slideTimeline.add(J.transitions.timers.circle._transition.play(),0),J.transitions.timers.slidebar._transition&&J.transitions._slideTimeline.add(J.transitions.timers.slidebar._transition.play(),0),J.transitions._slideTimeline.call(function(){if(!J.transitions._slideTimeline.reversed()){var e;if(J.api.hasEvent("slideTimelineDidComplete"))if(J.o.inLayerPreview&&J.o.hasInfiniteLoop&&J.layers.get("current, in").each(function(){(e=ie(this).data(J.defaults.init.dataKey)).loop&&e.loop._timeline&&e.loop._timeline.stop().progress(0)}),!1===J.api.triggerEvent("slideTimelineDidComplete",J.api.eventData()))return;J.functions.setStates(J.transitions.layers.timeline,{finished:!0}),!J.slideshow.isPaused()&&J.slideshow.state.running?J.slideshow.changeTo(J.slides.next.index):J.slideshow.state.pausedByLastCycle&&J.transitions.timers.reverse()}},[],this,J.slides[s].data.duration),J.slides.next.data.$link&&J.slides.next.data.$link.css({display:"block"}),(!J.o.startInViewport||"inside"!==J.slider.position.toViewport&&!J.o.playByScrollStart&&J.slider.state.waitForGettingInViewport)&&J.o.startInViewport||!(J.slider.isPopup&&J.slider.state.popupIsVisible&&J.slider.state.popupShouldStart)&&J.slider.isPopup||(J.o.pauseLayers&&J.slideshow.isPaused()?J.transitions.layers.timeline.pause(0):J.slider.isScrollScene||J.transitions.layers.timeline.play(),J.o.playByScroll&&"up"===J.device.scroll.directionAtSlideTransitionStart&&J.transitions._slideTimeline.progress(1)),J.transitions._slideTimelineAlternate.play(),J.slider.isScrollScene&&J.slider.set.offset(),$.trigger("mouseleave.globalhover"+W),$.off("mouseenter.globalhover"+W+" mouseleave.globalhover"+W+" mousemove.globalhover"+W),J.slides[s].data.globalhover&&(r=J.layers.get(s+",in,notactive").add(J.layers.get("static,active")),$.on("mouseenter.globalhover"+W,function(){r.each(function(){J.transitions.layers.hover.mouseEnter(ie(this),ie(this).data(J.defaults.init.dataKey))})}),$.on("mouseleave.globalhover"+W,function(){r.each(function(){J.transitions.layers.hover.mouseLeave(ie(this),ie(this).data(J.defaults.init.dataKey))})}),$.on("mousemove.globalhover"+W,function(){r.each(function(){J.transitions.layers.hover.mouseMove(ie(this),ie(this).data(J.defaults.init.dataKey))})}))},prepare:function(){J.slides.next.data.overflow&&"hidden"!==J.slides.next.data.overflow?(J.slider.$layersWrapper.addClass("ls-visible"),J.slider.$slideBGWrapper.addClass("ls-visible")):(J.slider.$layersWrapper.removeClass("ls-visible"),J.slider.$slideBGWrapper.removeClass("ls-visible")),this.create()},getTiming:function(e,t,i,a){if("number"==typeof t)return t;t=t.toLowerCase();var s,r,o,n,l,d=J.defaults.layer.timelineHierarchy,c=0;if(-1!==t.indexOf("*")&&(l="*"),-1!==t.indexOf("/")&&(l="/"),-1!==t.indexOf("+")&&(l="+"),-1!==t.indexOf("-")&&(l="-"),l)if(n=t.split(l),s=ie.trim(n[0]),o=parseInt(ie.trim(n[1])),d[s]&&-1!==d[i][1].indexOf(d[s][0])){if(!e.timeline[s]&&1<d[s][0]){var p,u,h=d[s][0]-1||1;for(u in d)d[u][0]===h&&(p=u);s=p}if(r="number"==typeof e.timeline[s]?e.timeline[s]:e.timeline[s](e),a)c=o/1e3;else switch(l){case"*":c=r*o;break;case"/":c=r/o;break;case"+":c=r+o/1e3;break;case"-":c=r-o/1e3}}else J.debugMode&&(d[s]||J.debug.add("warn","layerTransition.timing1",s),-1===d[i][1].indexOf(d[s][0])&&J.debug.add("warn","layerTransition.timing3",[s,d[s],i,d[i]])),"+"!==l&&!a||(c=o/1e3);else d[s=ie.trim(t)]&&-1!==d[i][1].indexOf(d[s][0])?c=a?0:"number"==typeof e.timeline[s]?e.timeline[s]:e.timeline[s](e):J.debugMode&&(d[s]?-1===d[i][1].indexOf(d[s][0])&&J.debug.add("warn","layerTransition.timing3",[s,d[s],i,d[i]]):J.debug.add("warn","layerTransition.timing1",s));return(c!=c||c<0)&&(J.debugMode&&J.debug.add("warn","layerTransition.timing2",[i,s,c]),c=0),c},addLayers:function(e,t,i,a,s,r){for(var o=0,n=e.length;o<n;o++){var l,d,c,p,u,h=e[o],m=ie(h),f=m.data(J.defaults.init.dataKey),g=f.elements.$wrapper,y=f.elements.$clipWrapper,v=f.elements.$loopWrapper,w=f.elements.$parallaxWrapper,x=(f.elements.$scrollWrapper,f.elements.$scrollTransformWrapper,f.settings.skipViewport&&J.slideshow.state.changed<1?s:i),S="loop"==f.settings.skipViewport&&J.slideshow.state.changed<1?s:i,b=ie.extend(!0,{},f.inLayerFrom),T=b.css,k=ie.extend({},f.inLayerShouldBeConverted),C=ie.extend(!0,{},f.outLayerTo),P=C.css,O=ie.extend({},f.outLayerShouldBeConverted),I=ie.extend(!0,{},f.textInNodesFrom),L=ie.extend(!0,{},f.textInShouldBeConverted),$=ie.extend(!0,{},f.textOutNodesTo),W=ie.extend(!0,{},f.textOutShouldBeConverted);if(f.should.reset&&J.transitions.layers.reset(m,f),m.hasClass("ls-bg"))f.kenBurns.zoom&&i.fromTo(m.closest(".ls-bg-wrap"),J.transitions.nextSlide.data.duration+J.transitions.nextSlide.data.calculatedTimeShift,{autoCSS:!1,css:f.kenBurns.from},{autoCSS:!1,css:f.kenBurns.to,ease:ee.Quad.easeInOut},-J.transitions.nextSlide.data.calculatedTimeShift),ie.isEmptyObject(f.filter.values.bgFrom)&&ie.isEmptyObject(f.filter.values.bgTo)||(f.filter.transitions.bg||(f.filter.transitions.bg=J.transitions.layers.filters.createTransition(f,"bg",f.filter.values.bgFrom,f.filter.values.bgTo)),x.to([{p:0},h],J.transitions.nextSlide.data.duration,{p:1,autoCSS:!1,ease:ee.Sine.easeInOut,onUpdate:J.transitions.layers.filters.animate,onUpdateParams:["{self}",f.filter.transitions.bg]},0));else switch(t){case"in":if(f.in.enabled?(f.settings.timelineIsCalculated&&!f.settings.recalculateTimeline||("startAtFirst"==f.settings.recalculateTimeline&&(f.settings.recalculateTimeline=!1,f.settings.timelineIsCalculated=!1),"number"!=typeof f.in.startAt&&(f.in.startAt=0),"number"!=typeof f.in.startAtFirst&&(f.in.startAtFirst=0),f.timeline.transitioninstart=J.transitions.firstSlide&&f.in.startAtFirst?f.in.startAtFirst:f.in.startAt,f.timeline.transitioninend=f.timeline.transitioninstart+f.in.duration),J.transitions.firstSlide&&f.in.startAtFirst&&(f.settings.recalculateTimeline="startAtFirst"),J.resize.performTransformOperations(f.inLayerToCSS,T),f.in.mirror&&"prev"===J.navigation.direction&&J.resize.mirrorTransitionProperties({transitionProperties:T,transitionPropertiesShouldBeConverted:k,transitionType:"normal",mirrorProperties:f.in.mirror}),J.resize.transformProperties(m,f,T,k),J.resize.styleProperties(m,f,f.inLayerStyleFromCSS,f.inLayerStyleShouldBeConvertedFrom),J.resize.styleProperties(m,f,f.inLayerStyleToCSS,f.inLayerStyleShouldBeConvertedTo),T.transformPerspective=f.transformPerspective.layer*f.settings.calculatedratio,f.clip.enabled&&(f.clip.style.css.clipPath=J.functions.convert.clipProperties(f.clip.style.css.clipPath,f,m,!0),f.inClipFromCSS.clipPath||f.clip.style.css.clipPath===f.clip.default.css.clipPath||(f.inClipFromCSS.clipPath=f.clip.default.css.clipPath)),f.inClipFromCSS.clipPath&&(f.inClipFromCSS.clipPath=J.functions.convert.clipProperties(f.inClipFromCSS.clipPath,f,m),x.fromTo(y[0],f.in.duration,f.inClipFrom,f.inClipTo,f.timeline.transitioninstart)),ie.isEmptyObject(f.filter.values.in)?ie.isEmptyObject(f.filter.values.out)||m.css("filter",f.original.filter):(f.filter.transitions.in||(f.filter.transitions.in=J.transitions.layers.filters.createTransition(f,"in",f.filter.values.in,f.filter.values.style)),x.to([{p:0},h],f.in.duration,{p:1,autoCSS:!1,ease:f.inLayerTo.ease,onUpdate:J.transitions.layers.filters.animate,onUpdateParams:["{self}",f.filter.transitions.in]},f.timeline.transitioninstart)),f.is.smartBG&&-1!==f.styleSettings.smartbg.indexOf("in")&&(f.inLayerStyleFrom.css["--x"]=parseInt(f.responsive["--x"])-T.x+"px",f.inLayerStyleTo.css["--x"]=parseInt(f.responsive["--x"])+"px",f.inLayerStyleFrom.css["--y"]=parseInt(f.responsive["--y"])-T.y+"px",f.inLayerStyleTo.css["--y"]=parseInt(f.responsive["--y"])+"px"),f.is.smartBG&&(J.slides[J.slides.current.index||1].data.hasSmartBG=!0),0===f.timeline.transitioninstart&&0===f.in.duration?(f.inLayerTo.css.transformOrigin=b.css.transformOrigin,f.inLayerTo.css.transformPerspective=b.css.transformPerspective,x.set(g[0],f.inLayerTo,f.timeline.transitioninstart),x.set(h,f.inLayerStyleTo,f.timeline.transitioninstart)):(x.fromTo(g[0],f.in.duration,b,f.inLayerTo,f.timeline.transitioninstart),x.fromTo(h,f.in.duration,f.inLayerStyleFrom,f.inLayerStyleTo,f.timeline.transitioninstart))):(f.timeline.transitioninstart=0,f.timeline.transitioninend=0),f.is.textLayer&&((f.textIn.type||f.textOut.type)&&J.transitions.layers.splitType.resetNodes(m,f),f.textIn.enabled&&(p=!(!f.textIn.mirror||"prev"!==J.navigation.direction),f.in.enabled||x.to(g[0],0,ie.extend(!0,{},f.inLayerTo,f.init.wrapper),f.timeline.textinstart),d=J.transitions.layers.splitType.setNodesSequence(f.textIn.type.split("_"),f.textIn.ns),f.textIn.nodes=p?d[1]:d[0],p&&J.resize.mirrorTransitionProperties({transitionProperties:I,transitionPropertiesShouldBeConverted:L,transitionType:"text",mirrorProperties:f.textIn.mirror}),J.resize.transformProperties(m,f,I,L,!1,f.textIn.nodes),I.transformPerspective=f.transformPerspective.text*f.settings.calculatedratio,ie.isEmptyObject(L.random)||J.transitions.layers.splitType.setRandomProperties(m,f,L.random,I,"In"),ie.isEmptyObject(I.random)||J.transitions.layers.splitType.setRandomProperties(m,f,I.random,I,"In"),delete I.random,f.settings.timelineIsCalculated||(f.timeline.textinstart=this.getTiming(f,f.textIn.startAt,"textinstart"),f.timeline.textinend=f.timeline.textinstart+(f.textIn.nodes.length-1)*f.textIn.shiftNodes+f.textIn.duration),I.color?f.textInNodesToCSS.color=f.original.color:f.textOutNodesTo.color&&(I.color=f.original.color),x.set(h,f.textIn.layerStyle,f.timeline.textinstart),window.getSelection&&J.browser.isSafari&&x.addCallback(function(e){try{window.getSelection().setBaseAndExtent(e,0,e,1e3)}catch(e){}window.getSelection().removeAllRanges()},f.timeline.textinstart+.001,[h]),x.addCallback(function(e){J.layers.set.dataAttribute("add",e,"text-animating-in")},f.timeline.textinstart,[m]),x.staggerFromTo(f.textIn.nodes,f.textIn.duration,I,f.textInNodesTo,f.textIn.shiftNodes,f.timeline.textinstart,function(e){J.layers.set.dataAttribute("remove",e,"text-animating-in"),J.layers.set.dataAttribute("add",e,"active"),J.transitions.layers.in.onComplete(e)},[m]))),f.is.keyframe&&J.o.playByScroll&&i.addPause(f.timeline.allinend(),function(){setTimeout(function(){delete J.timeouts.scroll,J.transitions.layers.timeline.timeScaleModifier=0,J.device.scroll.timeout=250},500)}),f.parallax.enabled&&"auto"==f.parallax.event){J.transitions.layers.parallax.auto();var M=new ee.TimelineMax({paused:!0}),B={repeat:-1==f.parallax.count?-1:f.parallax.count-1,ease:ee.Linear.easeNone};switch(f.settings.timelineIsCalculated&&!f.is.static||(f.timeline.autoparallaxstart=this.getTiming(f,f.parallax.startAt,"autoparallaxstart"),f.timeline.autoparallaxend=-1!==f.parallax.count&&f.timeline.autoparallaxstart+f.parallax.duration*f.parallax.count),f.parallax._timeline=M,f.parallax.dummy={x:0,y:-10},f.parallax.path){default:case"circle":B.bezier={curviness:1.5,values:[{x:10,y:0},{x:0,y:10},{x:-10,y:0},{x:0,y:-10}]};break;case"oval-h":B.bezier={type:"thru",curviness:1,values:[{x:20,y:0},{x:0,y:10},{x:-20,y:0},{x:0,y:-10}]};break;case"oval-v":f.parallax.dummy={x:0,y:-20},B.bezier={type:"thru",curviness:1,values:[{x:10,y:0},{x:0,y:20},{x:-10,y:0},{x:0,y:-20}]};break;case"infinity":f.parallax.dummy={x:0,y:0},B.bezier={type:"thru",curviness:1,values:[{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}]};break;case"linear-h":f.parallax.dummy={x:-10,y:0},B.x=10,B.ease=ee.Quad.easeInOut,B.yoyo=!0,B.repeat=-1==f.parallax.count?-1:2*f.parallax.count-1;break;case"linear-v":f.parallax.dummy={x:0,y:-10},B.y=10,B.ease=ee.Quad.easeInOut,B.yoyo=!0,B.repeat=-1==f.parallax.count?-1:2*f.parallax.count-1}B.onUpdate=function(e,t,i,a,s,r,o){ee.TweenMax.set(i,{x:-t.x*(a/50)*parseInt(s),y:-t.y*(a/50)*parseInt(s),rotationX:"3d"==r?t.y/(100/o):0,rotationY:"3d"==r?-t.x/(100/o):0})},B.onUpdateParams=["{self}",f.parallax.dummy,w[0],f.parallax.distance,f.parallax.level,f.parallax.type,f.parallax.rotation],M.to(f.parallax.dummy,-1==f.parallax.path.indexOf("linear")?f.parallax.duration:f.parallax.duration/2,B),i.addCallback(function(e){e.play()},f.timeline.autoparallaxstart,[M])}f.loop.enabled&&(c=new ee.TimelineMax({repeat:f.loop.repeat,repeatDelay:f.loop.repeatDelay,yoyo:f.loop.yoyo,paused:!0}),f.settings.timelineIsCalculated&&!f.is.static||(f.timeline.loopstart=this.getTiming(f,f.loop.startAt,"loopstart"),f.timeline.loopend=-1!==f.loop.count&&f.timeline.loopstart+(f.loop.repeat+1)*f.loop.duration+f.loop.repeat*f.loop.repeatDelay),f.loop._timeline=c,J.resize.transformProperties(m,f,f.loopToCSS,{x:f.loopLayerShouldBeConverted.x,y:f.loopLayerShouldBeConverted.y}),(f.loopToCSS.x&&0!==f.loopToCSS.x||f.loopToCSS.y&&0!==f.loopToCSS.y)&&(J.transitions.layers.timeline.shouldRestart=!0),f.loopFromCSS.transformOrigin=J.functions.convert.transformOrigin(f.loopLayerShouldBeConverted.transformOrigin,m,f,m.data(J.defaults.init.dataKey).elements.$outerStyleWrapper),f.loopFromCSS.transformPerspective=f.transformPerspective.loop*f.settings.calculatedratio,ie.isEmptyObject(f.filter.values.loop)||(f.filter.transitions.loop||(f.filter.transitions.loop=J.transitions.layers.filters.createTransition(f,"loop",ie.isEmptyObject(f.filter.values.afterIn)?f.filter.values.style:f.filter.values.afterIn,f.filter.values.loop)),c.to([{p:0},h],f.loop.duration,{p:1,autoCSS:!1,ease:f.loopTo.ease,onUpdate:J.transitions.layers.filters.animate,onUpdateParams:["{self}",f.filter.transitions.loop]},0)),c.fromTo(v[0],f.loop.duration,f.loopFrom,f.loopTo,0),f.is.smartBG&&-1!==f.styleSettings.smartbg.indexOf("loop")&&c.fromTo(h,f.loop.duration,{"--lx":"0px","--ly":"0px"},{ease:f.loopTo.ease,"--lx":-f.loopTo.css.x+"px","--ly":-f.loopTo.css.y+"px"},0),f.loopClipToCSS.clipPath&&(f.loopClipToCSS.clipPath=J.functions.convert.clipProperties(f.loopClipToCSS.clipPath,f,m),c.fromTo(v[0],f.loop.duration,f.loopClipFrom,f.loopClipTo,0)),-1!==f.loop.repeat&&("looplayers"===J.o.pauseOnHover||J.gui.timers.slidebar.$element||J.o.playByScroll)?(S.add(c,f.timeline.loopstart),c.play()):S.addCallback(function(e){e.play()},f.timeline.loopstart,[c])),f.is.static&&(f.timeline.staticfrom=f.timeline.transitioninend,f.timeline.staticto="100%",f.settings.timelineIsCalculated||(l=Math.max(f.timeline.allinandloopend(),0),this.totalDuration=Math.max(this.totalDuration,l)));break;case"out":f.is.textLayer&&f.textOut.enabled&&(p=J.transitions.layers.splitType.setNodesSequence(f.textOut.type.split("_"),f.textOut.ns),f.textOut.nodes=p[0],J.resize.transformProperties(m,f,f.textOutNodesTo,f.textOutShouldBeConverted,f.textOutNodesFrom,f.textOut.nodes),f.textOut.mirror?(f.textOut.nodesMirror=p[1],J.resize.mirrorTransitionProperties({transitionProperties:$,transitionPropertiesShouldBeConverted:W,transitionType:"text",mirrorProperties:f.textOut.mirror}),J.resize.transformProperties(m,f,$,W,f.textOutNodesFrom,f.textOut.nodes)):f.textOut.nodesMirror=p[0],f.textOutNodesFrom.transformPerspective=f.transformPerspective.text*f.settings.calculatedratio,ie.isEmptyObject(f.textOutShouldBeConverted.random)||J.transitions.layers.splitType.setRandomProperties(m,f,f.textOutShouldBeConverted.random,f.textOutNodesTo,"Out"),ie.isEmptyObject(f.textOutNodesTo.random)||J.transitions.layers.splitType.setRandomProperties(m,f,f.textOutNodesTo.random,f.textOutNodesTo,"Out"),delete f.textOutNodesTo.random,f.textOut.mirror&&(ie.isEmptyObject(W.random)||J.transitions.layers.splitType.setRandomProperties(m,f,W.random,$,"Out"),ie.isEmptyObject($.random)||J.transitions.layers.splitType.setRandomProperties(m,f,$.random,$,"Out"),delete $.random),f.settings.timelineIsCalculated||(f.timeline.textoutstart=this.getTiming(f,f.textOut.startAt,"textoutstart"),f.timeline.textoutend=f.timeline.textoutstart+(f.textOut.nodes.length-1)*f.textOut.shiftNodes+f.textOut.duration),f.clip.enabled&&!f.loopClipToCSS.clipPath&&f.clip.style.css.clipPath==f.clip.default.css.clipPath&&i.fromTo(y[0],0,f.clip.style,f.clip.none,f.timeline.textoutstart),f.textOutNodesTo.color&&(f.textOutNodesFrom.color=f.original.color),M=function(e){J.layers.set.dataAttribute("add",e,"text-animating-out")},c=function(e){J.layers.set.dataAttribute("remove",e,"text-animating-out"),J.layers.set.dataAttribute("add",e,"hidden")},u=[m],-1!==f.textOut.startAt.indexOf("slidechangeonly")&&(!f.is.static||f.is.static&&f.settings.slideOut===J.slides.next.index)?(a.set(h,f.textOut.layerStyle,0),r.set(h,f.textOut.layerStyle,0),(p=new ee.TimelineMax).addCallback(M,0,u),p.staggerFromTo(f.textOut.nodes,f.textOut.duration,f.textOutNodesFrom,f.textOutNodesTo,f.textOut.shiftNodes,0,c,u),p.timeScale(p.duration()/J.o.forceLayersOutDuration),a.add(p,0),a.to(g[0],0,f.reset.wrapperOnTimelineEnd,J.o.forceLayersOutDuration),(p=new ee.TimelineMax).addCallback(M,0,u),p.staggerFromTo(f.textOut.nodesMirror,f.textOut.duration,f.textOutNodesFrom,$,f.textOut.shiftNodes,0,c,u),p.timeScale(p.duration()/J.o.forceLayersOutDuration),r.add(p,0)):(i.addCallback(M,f.timeline.textoutstart,u),i.set(h,f.textOut.layerStyle,f.timeline.textoutstart),i.staggerFromTo(f.textOut.nodes,f.textOut.duration,f.textOutNodesFrom,f.textOutNodesTo,f.textOut.shiftNodes,f.timeline.textoutstart,c,u),a.to(g[0],J.o.forceLayersOutDuration,{opacity:0},0),r.to(g[0],J.o.forceLayersOutDuration,{opacity:0},0),a.to(g[0],0,f.reset.wrapperOnTimelineEnd,J.o.forceLayersOutDuration)),r.to(g[0],0,f.reset.wrapperOnTimelineEnd,J.o.forceLayersOutDuration)),f.out.enabled&&(J.resize.performTransformOperations(f.inLayerToCSS,f.outLayerToCSS),J.resize.transformProperties(m,f,f.outLayerToCSS,f.outLayerShouldBeConverted,f.outLayerFromCSS),J.resize.styleProperties(m,f,f.outLayerStyleFromCSS,f.outLayerStyleShouldBeConvertedFrom),J.resize.styleProperties(m,f,f.outLayerStyleToCSS,f.outLayerStyleShouldBeConvertedTo),f.outLayerFromCSS.transformPerspective=f.transformPerspective.layer*f.settings.calculatedratio,f.out.mirror&&(J.resize.performTransformOperations(f.inLayerToCSS,P),J.resize.mirrorTransitionProperties({transitionProperties:P,transitionPropertiesShouldBeConverted:O,transitionType:"normal",mirrorProperties:f.out.mirror}),J.resize.transformProperties(m,f,P,O,f.outLayerFromCSS)),f.is.smartBG&&-1!==f.styleSettings.smartbg.indexOf("out")&&(f.outLayerStyleFrom.css["--x"]=parseInt(f.responsive["--x"])+"px",f.outLayerStyleTo.css["--x"]=parseInt(f.responsive["--x"])-f.outLayerToCSS.x+"px",f.outLayerStyleFrom.css["--y"]=parseInt(f.responsive["--y"])+"px",f.outLayerStyleTo.css["--y"]=parseInt(f.responsive["--y"])-f.outLayerToCSS.y+"px"),ie.isEmptyObject(f.filter.values.out)||f.filter.transitions.out||(f.filter.transitions.out=J.transitions.layers.filters.createTransition(f,"out",ie.isEmptyObject(f.filter.values.afterLoop)?ie.isEmptyObject(f.filter.values.afterIn)?f.filter.values.style:f.filter.values.afterIn:f.filter.values.afterLoop,f.filter.values.out)),f.clip.enabled&&!f.outClipToCSS.clipPath&&f.clip.style.css.clipPath!==f.clip.default.css.clipPath&&(f.outClipToCSS.clipPath=f.clip.default.css.clipPath),f.outClipToCSS.clipPath&&(f.outClipToCSS.clipPath=J.functions.convert.clipProperties(f.outClipToCSS.clipPath,f,m)),"slidechangeonly"!==f.out.startAt?(f.settings.timelineIsCalculated&&!f.is.static||(f.is.static?(f.timeline.staticfrom=0,f.timeline.transitionoutstart=this.getTiming(f,f.out.startAt,"transitionoutstart",!0),f.timeline.staticto=f.timeline.transitionoutstart):f.timeline.transitionoutstart=Math.max(this.getTiming(f,f.out.startAt,"transitionoutstart"),f.timeline.transitioninend),f.timeline.transitionoutend=f.timeline.transitionoutstart+f.out.duration),f.outClipToCSS.clipPath&&i.to(y[0],f.out.duration,f.outClipTo,f.timeline.transitionoutstart),ie.isEmptyObject(f.filter.values.out)||i.to([{p:0},h],f.out.duration,{p:1,autoCSS:!1,ease:f.outLayerTo.ease,onUpdate:J.transitions.layers.filters.animate,onUpdateParams:["{self}",f.filter.transitions.out]},f.timeline.transitionoutstart),f.outLayerStyleTo.onComplete=function(e,t){t.is.mediaLayer&&t.mediaProperties.$media[0].hasAttribute("data-ls-playing")&&J.media.functions.stopSingleMedia(e,t)},f.outLayerStyleTo.onCompleteParams=[m,f],i.fromTo(g[0],f.out.duration,f.outLayerFrom,f.outLayerTo,f.timeline.transitionoutstart),i.fromTo(h,f.out.duration,f.outLayerStyleFrom,f.outLayerStyleTo,f.timeline.transitionoutstart),i.fromTo(g[0],0,f.init.wrapper,f.reset.wrapperOnTimelineEnd,f.timeline.transitionoutend)):(f.timeline.staticfrom=0,f.timeline.staticto="100%"),u=Math.min(J.o.forceLayersOutDuration,f.out.duration),(!f.is.static||f.is.static&&f.settings.slideOut===J.slides.next.index)&&(a.fromTo(g[0],u,f.outLayerFrom,f.outLayerTo,0),a.fromTo(h,u,f.outLayerStyleFrom,f.outLayerStyleTo,0),r.fromTo(g[0],u,f.outLayerFrom,f.out.mirror?C:f.outLayerTo,0),r.fromTo(h,u,f.outLayerStyleFrom,f.outLayerStyleTo,0),f.outClipToCSS.clipPath&&(a.to(y[0],u,f.outClipTo,0),r.to(y[0],u,f.outClipTo,0)),ie.isEmptyObject(f.filter.values.out)||(a.to([{p:0},h],u,{p:1,autoCSS:!1,ease:f.outLayerTo.ease,onUpdate:J.transitions.layers.filters.animate,onUpdateParams:["{self}",f.filter.transitions.out]},0),r.to([{p:0},h],u,{p:1,autoCSS:!1,ease:f.outLayerTo.ease,onUpdate:J.transitions.layers.filters.animate,onUpdateParams:["{self}",f.filter.transitions.out]},0)))),l=Math.max(f.timeline.alloutandloopend(),0),this.totalDuration=Math.max(this.totalDuration,l),f.settings.timelineIsCalculated=!0}}},play:function(){J.transitions._slideTimeline&&(J.transitions._slideTimeline.play(),J.functions.setStates(this,{started:!0,running:!0,stopped:!1,paused:!1}))},pause:function(e){e=ie.isNumeric(e)?e:.75;J.transitions._slideTimeline&&(ee.TweenMax.to(J.transitions._slideTimeline,e,{timeScale:0,onComplete:function(e){e.pause()},onCompleteParams:[J.transitions._slideTimeline]}),J.functions.setStates(this,{paused:!0,stopped:!1}))},resume:function(){J.transitions._slideTimeline&&(this.state.paused&&J.transitions._slideTimeline.play(),ee.TweenMax.to(J.transitions._slideTimeline,.75,{timeScale:1}),J.functions.setStates(this,{paused:!1,stopped:!1}))},reverse:function(){J.transitions._slideTimeline&&J.transitions._slideTimeline.reverse()},scrollForward:function(e){e||(this.play(),this.modifyTimeScale()),J.transitions._slideTimeline&&(J.slider.isBusy()||0!==J.transitions._slideTimeline.totalDuration()&&1!==J.transitions._slideTimeline.progress()||"down"!==J.device.scroll.direction||(J.slideshow.direction="next",(e=J.slideshow.sequence.normalized).indexOf(J.slides.current.index)===e.length-1?(J.slider.positionToViewport="under",J.device.scroll.enable(),J.slideshow.direction="prev"):J.navigation.next()))},scrollBackwards:function(e,t){e&&!t||(this.reverse(),this.modifyTimeScale()),J.transitions._slideTimeline&&(J.slider.isBusy()||0!==J.transitions._slideTimeline.totalDuration()&&0!==J.transitions._slideTimeline.progress()||"up"!==J.device.scroll.direction||(J.slideshow.direction="prev",0===J.slideshow.sequence.normalized.indexOf(J.slides.current.index)?(J.slider.positionToViewport="over",J.device.scroll.enable(),J.slideshow.direction="next"):J.navigation.prev()))},modifyTimeScale:function(){J.transitions._slideTimeline&&ee.TweenMax.to(J.transitions._slideTimeline,.25,{timeScale:1+this.timeScaleModifier})},resetStates:function(){this.state={started:!1,running:!1,paused:!1,stopped:!1,finished:!1}}},hover:{enable:function(e){e.attr("data-ls-canhover","1")},disable:function(e){e.attr("data-ls-canhover","0")},set:function(e,t){t.elements.$wrapper.on("mouseenter."+W,function(){J.transitions.layers.hover.mouseEnter(e,t)}),t.elements.$wrapper.on("mouseleave."+W,function(){J.transitions.layers.hover.mouseLeave(e,t)}),t.elements.$wrapper.on("mousemove."+W,function(){J.transitions.layers.hover.mouseMove(e,t)})},createTimeline:function(e,t){var i,a,s;t.hover._timeline=new ee.TimelineMax({paused:!0,onReverseComplete:function(e,t){t.hover._timeline._reversed&&(t.hover._timeline.stop().clear(),delete t.hover._timeline)},onReverseCompleteParams:[e,t]}),J.resize.transformProperties(e,t,t.hoverToCSS,t.hoverShouldBeConverted,t.hoverFromCSS),J.resize.styleProperties(e,t,t.hoverToCSS,t.hoverShouldBeConverted),t.hoverFromCSS.transformPerspective=t.transformPerspective.hover*t.settings.calculatedratio,t.hover._tween=ee.TweenMax.fromTo(e[0],t.hover.durationIn,t.hoverFrom,t.hoverTo),t.hover._timeline.add(t.hover._tween,0),e.next().is(".ls-layer-link")?(i=e.next(),a=ie.extend(!0,{},t.hoverFrom,{css:{opacity:1,color:"transparent",background:"transparent",z:0}}),s=ie.extend(!0,{},t.hoverTo,{css:{opacity:1,color:"transparent",background:"transparent",z:0}}),t.hover._linkTween=ee.TweenMax.fromTo(i[0],t.hover.durationIn,a,s),t.hover._timeline.add(t.hover._linkTween,0)):t.hover._linkTween=null,t.hover.alwaysOnTop&&(s={zIndex:9999},J.browser.isSafari&&(s.transform="translateZ(999999px)"),t.hover._timeline.to(t.elements.$outerWrapper[0],t.hover.durationIn,{autoCSS:!1,css:s},0)),t.hover.reverseTimeScale=t.hover.durationIn/t.hover.durationOut==1?1:t.hover.durationIn/t.hover.durationOut,this.hoverIn(e,t)},mouseEnter:function(e,t){"1"===e.attr("data-ls-canhover")&&(e.attr("data-ls-hovered",1),t.elements.$wrapper.off("mousemove."+W),t.hover._timeline?(t.hover._timeline.play().stop().progress(0),this.hoverIn(e,t)):this.createTimeline(e,t))},mouseLeave:function(e,t){t.hover._timeline&&(t.hover._timeline.stop().progress(1),this.hoverOut(e,t)),e.removeAttr("data-ls-hovered")},mouseMove:function(e,t){e.attr("data-ls-hovered")||this.mouseEnter(e,t)},hoverIn:function(e,t){t.hover._tween.updateTo({ease:t.hover.easeIn}),t.hover._linkTween&&t.hover._linkTween.updateTo({ease:t.hover.easeIn}),t.hover._timeline.play().timeScale(1)},hoverOut:function(e,t){t.hover._tween.updateTo({ease:t.hover.easeOut}),t.hover._linkTween&&t.hover._linkTween.updateTo({ease:t.hover.easeOut}),t.hover._timeline.reverse().timeScale(t.hover.reverseTimeScale)}},parallax:{defaultProperties:{type:"2d",event:"cursor",path:"circle",direction:"clockwise",duration:5,count:-1,startAt:"slidestart",x:!0,y:!0,rotation:10,distance:10,durationMove:1.5,durationLeave:1.2,transformOrigin:"slidercenter slidermiddle 0",transformPerspective:500},defaults:{scrollModifier:5,centerLayers:"center",centerDegree:40,sensitive:10},state:{enabled:!1,ready:!1},wrappers:{cursor:{$2d:ie(),$3d:ie()},scroll:{$2d:ie(),$3d:ie()},auto:{$2d:ie(),$3d:ie()}},init:function(){var t=this;$.on("mouseenter."+W,function(){(t.wrappers.cursor.$2d.length||t.wrappers.cursor.$3d.length)&&t.calculateTransformProperties()}),$.on("mousemove."+W,function(e){(t.wrappers.cursor.$2d.length||t.wrappers.cursor.$3d.length)&&t.mouseMove(e)}),$.on("mouseleave."+W,function(){(t.wrappers.cursor.$2d.length||t.wrappers.cursor.$3d.length)&&t.reset()}),M.on("scroll.parallax"+W+" touchmove.parallax"+W,function(){(t.wrappers.scroll.$2d.length||t.wrappers.scroll.$3d.length)&&(t.state.paused||t.scroll())}),M.on("resize.parallax"+W,function(){(t.wrappers.auto.$2d.length||t.wrappers.auto.$3d.length||t.wrappers.scroll.$2d.length||t.wrappers.scroll.$3d.length||t.wrappers.cursor.$2d.length||t.wrappers.cursor.$3d.length)&&t.calculateTransformProperties()}),t.defaults.scrollModifier*=J.o.parallaxScrollReverse?-1:1},addLayer:function(e,t,i,a){switch(this.state.enabled||(J.functions.setStates(this,{enabled:!0}),this.init()),ie.extend(!0,t,this.defaultProperties,J.slides[a].parallax,i.parallax),i.transformPerspective.parallax?t.transformPerspective=i.transformPerspective.parallax:i.transformPerspective.parallax=t.transformPerspective,t.event&&t.event.match(/(cursor|scroll|auto)/)||(t.event="cursor"),t.path.match(/(circle|oval-h|oval-v|infinity|linear-h|linear-v)/)||(t.path="circle"),t.direction.match(/(clockwise|counterclockwise)/)||(t.direction="clockwise"),t.type.match(/(2d,3d)/)&&(t.type="2d"),(i.parallax=t).axis){case"none":t.x=!1,t.y=!1;break;case"x":t.y=!1;break;case"y":t.x=!1}this.wrappers[t.event]["$"+t.type]=this.wrappers[t.event]["$"+t.type].add(e)},addShadow:function(){var e,t,i,a=J.gui.shadow.$element,s=(J.slides.current&&J.slides.current.parallax?J.slides.current:J.slides.next).index;J.slides[s].data.$background&&J.slides[s].data.$background.data(J.defaults.init.dataKey).parallax.enabled&&J.slides[s].data.overflow&&"hidden"!==J.slides[s].data.overflow&&(e="50% -"+.25*J.slider.height+"px 0",i=void 0!==(t=J.slides[s].data.$background.data(J.defaults.init.dataKey).parallax).rotation?2*t.rotation:void 0!==J.slides[s].parallax.rotation?2*J.slides[s].parallax.rotation:2*this.defaultProperties.rotation,a.data(J.defaults.init.dataKey,{parallax:ie.extend(!0,{},this.defaultProperties,J.slides[s].parallax,{level:t.level,transformOrigin:e,rotation:i})}),a.attr("data-ls-parallax","active"),ee.TweenMax.set(a[0],{transformOrigin:e,transformPerspective:a.data(J.defaults.init.dataKey).parallax.transformPerspective*J.resize.ratio}),"3d"===J.slides[s].parallax.type||"3d"===t.type?this.wrappers.cursor.$3d=this.wrappers.cursor.$3d.add(a):this.wrappers.cursor.$2d=this.wrappers.cursor.$2d.add(a)),this.shadowIsChecked=!0},removeShadow:function(){var e=J.gui.shadow.$element;this.wrappers.cursor.$2d=this.wrappers.cursor.$2d.not(e),this.wrappers.cursor.$3d=this.wrappers.cursor.$3d.not(e),e.attr("data-ls-parallax","disabled"),this.shadowIsChecked=!1},calculateTransformProperties:function(){ie().add(this.wrappers.cursor.$2d).add(this.wrappers.cursor.$3d).add(this.wrappers.scroll.$2d).add(this.wrappers.scroll.$3d).add(this.wrappers.auto.$2d).add(this.wrappers.auto.$3d).each(function(){var e=ie(this),t=e.data(J.defaults.init.dataKey).parallax,i=e.find(".ls-layer"),a=i.data(J.defaults.init.dataKey);ee.TweenMax.set(ie(this)[0],{transformOrigin:J.functions.convert.transformOrigin(t.transformOrigin,i.data(J.defaults.init.dataKey).elements.$wrapper,a,e),transformPerspective:t.transformPerspective*a.settings.calculatedratio})}),this.transformPropertiesCalculated=!0},trigger:function(){M.trigger("scroll.parallax"+W),M.trigger("touchmove.parallax"+W)},auto:function(){this.transformPropertiesCalculated||this.calculateTransformProperties()},scroll:function(){var e=(("top"===this.defaults.centerLayers?te.scroll.top:te.scroll.top+(te.viewport.height-J.slider.height)/2)-J.slider.offset.top)*J.resize.ratio*this.defaults.scrollModifier;J.slider.state.inFullscreen&&(e=0),this.transformPropertiesCalculated||this.calculateTransformProperties(),this.animate2D(0,e,"scroll"),this.animate3D(0,e,"scroll")},mouseMove:function(e){var t,i;this.transformPropertiesCalculated?(J.slider.state.animatingSlides||this.shadowIsChecked||!J.gui.shadow.$element||this.addShadow(),t=J.slider.offset.left+J.slider.width/2,i=J.slider.offset.top+J.slider.height/2,t=e.pageX-t,i=e.pageY-i,this.animate2D(t,i,"cursor"),this.animate3D(t,i,"cursor")):this.calculateTransformProperties()},animate2D:function(s,r,e){this.wrappers[e].$2d.each(function(){var e,t,i,a=ie(this);"active"===a.attr("data-ls-parallax")&&(t=(e=a.data(J.defaults.init.dataKey).parallax).x?-s*(e.distance/2e3)*parseInt(e.level):0,i=e.y?-r*(e.distance/2e3)*parseInt(e.level):0,ee.TweenMax.to(a[0],e.durationMove,{x:t,y:i}))})},animate3D:function(o,n,e){this.wrappers[e].$3d.each(function(){var e,t,i,a,s,r=ie(this);"active"===r.attr("data-ls-parallax")&&(a=(e=r.data(J.defaults.init.dataKey).parallax).x?(i=-o/(4e3/e.rotation),-o*(e.distance/2e3)*parseInt(e.level)):i=0,s=e.y?(t=n/(4e3/e.rotation),-n*(e.distance/2e3)*parseInt(e.level)):t=0,ee.TweenMax.to(r[0],e.durationMove,{rotationX:t,rotationY:i,x:a,y:s}))})},reset:function(){ie().add(this.wrappers.cursor.$2d).add(this.wrappers.cursor.$3d).each(function(){var e=ie(this);e.find(".ls-layer[data-ls-hidden]").length&&ee.TweenMax.set(e[0],{x:0,y:0,rotationX:0,rotationY:0}),e.find(".ls-layer[data-ls-parallax-reset]").length&&ee.TweenMax.to(e[0],ie(this).data(J.defaults.init.dataKey).parallax.durationLeave,{x:0,y:0,rotationX:0,rotationY:0})}),J.gui.shadow.$element&&this.removeShadow(),this.transformPropertiesCalculated=!1}},scroll:{defaultProperties:{shouldBeConverted:{transformOrigin:"50% 50% 0"},transformPerspective:500,duration:.5,ease:"easeOutQuart"},defaults:{centerLayers:"center"},state:{enabled:!1},$wrappers:ie(),init:function(){var e=this;M.on("scroll.scroll"+W+" touchmove.scroll"+W,function(){e.$wrappers.length&&e.scroll()}),M.on("resize.scroll"+W,function(){e.$wrappers.length&&e.calculateTransformProperties()})},addLayer:function(e,t,i,a){this.state.enabled||(J.functions.setStates(this,{enabled:!0}),this.init()),ie.extend(!0,t,this.defaultProperties,i.scroll),i.transformPerspective.scroll?t.transformPerspective=i.transformPerspective.scroll:i.transformPerspective.scroll=t.transformPerspective,i.settings.skipViewport&&(t.skipViewport=!0),t.shouldBeConverted.transformOriginAlt||(t.shouldBeConverted.transformOriginAlt=t.shouldBeConverted.transformOrigin),t.ease=J.functions.convert.easing(t.ease),t.easeRev=J.functions.convert.easing(t.easeRev||t.ease),t.durationRev=t.durationRev||t.duration,i.scroll=t,this.$wrappers=this.$wrappers.add(e)},getCenter:function(e,t){var i="project";switch(((J.slider.isScrollScene||J.slider.isSticky)&&"scene"===t||"document"===t)&&(i=t),e){case"top":switch(i){case"scene":e=J.slider.wrapperPosition.top-(te.viewport.height-J.slider.height)/2;break;case"document":default:e=te.scroll.top}break;case"center":switch(i){case"scene":e=J.slider.wrapperPosition.middleForScrollTransition;break;case"document":e=te.scroll.top;break;default:e=te.scroll.top+(te.viewport.height-J.slider.height)/2}break;case"bottom":switch(i){case"scene":e=J.slider.wrapperPosition.top+J.slider.wrapperOffset.height-te.viewport.height+(te.viewport.height-J.slider.height)/2;break;case"document":e=te.scroll.top;break;default:e=te.scroll.top+te.viewport.height-J.slider.height}}return e},setCenter:function(e,t){return"project"!==e.getPosition||e.center&&this.defaults.centerLayers!==e.center?this.getCenter(e.center||this.defaults.centerLayers,e.getPosition):t},setY:function(e,t){return(J.slider.isScrollScene||J.slider.isSticky)&&"scene"===e.getPosition?-t:"document"===e.getPosition?t:J.slider.state.inFullscreen?0:t-J.slider.offset.top},scroll:function(o){var n,l;J.slider.state.isNotDisplayed||J.slider.state.isHidden||(l=(n=this).getCenter(this.defaults.centerLayers),this.transformPropertiesCalculated||this.calculateTransformProperties(),this.$wrappers.each(function(){var e,t,i,a=ie(this),s=a.find(".ls-scroll-transform"),r=a.data(J.defaults.init.dataKey).scroll;(-1!==J.slider.position.toViewportYForSkipViewportLayers.indexOf("inside")&&r.skipViewport||!n.state.paused)&&(i=n.setCenter(r,l),t={overwrite:"all",c:e=n.setY(r,i),ease:"down"===te.scroll.direction?r.ease:r.easeRev,onUpdate:function(e,t){e=e.target.style.c<=0?"+":"-";r.layerPositionToCenter!==e&&n.setTransformProperties(ie(t),r,e),r.layerPositionToCenter=e},onUpdateParams:["{self}",this,r]},i={overwrite:"all",ease:"down"===te.scroll.direction?r.ease:r.easeRev},r.x&&(i.x=n.calculateTransformations(-e*r.x/20,"x",r,-e)),r.y&&(i.y=n.calculateTransformations(-e*r.y/20,"y",r,-e)),r.rotation&&(i.rotation=n.calculateTransformations(e*r.rotation/40,"rotation",r,-e)),r.rotationX&&(i.rotationX=n.calculateTransformations(e*r.rotationX/40,"rotationX",r,-e)),r.rotationY&&(i.rotationY=n.calculateTransformations(e*r.rotationY/40,"rotationY",r,-e)),r.skewX&&(i.skewX=n.calculateTransformations(-e*r.skewX/40,"skewX",r,-e)),r.skewY&&(i.skewY=n.calculateTransformations(-e*r.skewY/40,"skewY",r,-e)),r.scaleX&&(i.scaleX=n.calculateTransformations(1-e*r.scaleX/-4e3,"scaleX",r,e)),r.scaleY&&(i.scaleY=n.calculateTransformations(1-e*r.scaleY/-4e3,"scaleY",r,e)),r.opacity&&(i.opacity=n.calculateTransformations(1-e*(r.opacityyoyo?Math.abs(r.opacity):r.opacity)/1e3,"opacity",r,e)),e="down"===te.scroll.direction?r.duration:r.durationRev,o||0==e?(ee.TweenMax.set(a[0],t),ee.TweenMax.set(s[0],i)):(ee.TweenMax.to(a[0],e,t),ee.TweenMax.to(s[0],e,i)))}))},calculateTransformations:function(e,t,i,a){if(i[t+"yoyo"])switch(t){case"scaleX":case"scaleY":a<0&&(e=1-(e-1));break;case"opacity":a<1&&(e=1-(e-1));break;default:a<1&&(e=-e)}return"opacity"==t&&i.opacityinvert&&(e=1-e),void 0!==i[t+"min"]&&e<i[t+"min"]&&(e=i[t+"min"]),void 0!==i[t+"max"]&&e>i[t+"max"]&&(e=i[t+"max"]),("x"===t&&i.xresponsive||"y"===t&&i.yresponsive)&&(e*=J.resize.ratio),e},calculateTransformProperties:function(){var a=this;this.$wrappers.each(function(){var e=ie(this),t=e.data(J.defaults.init.dataKey).scroll,i=(e.find(".ls-layer").data(J.defaults.init.dataKey),a.setCenter(t,a.getCenter(a.defaults.centerLayers))),i=a.setY(t,i)<=0?"+":"-";a.setTransformProperties(e,t,i)}),this.transformPropertiesCalculated=!0},setTransformProperties:function(e,t,i){var a=e.find(".ls-layer"),s=a.data(J.defaults.init.dataKey);ee.TweenMax.set(e.find(".ls-scroll-transform")[0],{transformOrigin:J.functions.convert.transformOrigin("+"===i?t.shouldBeConverted.transformOrigin:t.shouldBeConverted.transformOriginAlt,e,s,a),transformPerspective:t.transformPerspective*s.settings.calculatedratio})},trigger:function(){this.scroll(!0)},reset:function(){this.transformPropertiesCalculated=!1}},filters:{createTransition:function(e,t,i,a){var s,r=new J.defaults.layer.properties.filter,o={};for(s in r)switch(t){case"in":o[s]=[r[s],r[s]],o[s][0]=(i.hasOwnProperty(s)?i:a.hasOwnProperty(s)?a:r)[s],o[s][1]=(a.hasOwnProperty(s)?a:r)[s],e.filter.values.afterIn[s]=o[s][1];break;case"hover":case"loop":case"out":o[s]=[],o[s][0]=(i.hasOwnProperty(s)?i:r)[s],o[s][1]=(a.hasOwnProperty(s)?a:i.hasOwnProperty(s)&&i[s]!==r[s]?i:r)[s],"loop"===t&&!0!==e.loop.yoyo&&-1!==e.loop.count&&(e.filter.values.afterLoop[s]=o[s][1]);break;case"bg":o[s]=[r[s],r[s]],i.hasOwnProperty(s)&&(o[s][0]=i[s]),a.hasOwnProperty(s)&&(o[s][1]=a[s])}return o},convert:function(e){for(var t,i,a={},s=/(blur|brightness|contrast|grayscale|hue-rotate|invert|saturate|sepia)/i,r=0,o=(e=e.split(" ")).length;r<o;r++)(t=(i=e[r].split("("))[0]).match(s)&&(i=parseInt(i[1]),a[t]=i);return a},animate:function(e,t){var i=100*e.target[0].p;if("object"==typeof t){var a,s="";for(a in t)if("object"==typeof t[a]&&2===t[a].length)switch(a){case"blur":s+=" blur( "+(t[a][0]<t[a][1]?t[a][0]+Math.abs(t[a][0]-t[a][1])/100*i:t[a][0]-Math.abs(t[a][0]-t[a][1])/100*i)+"px )";break;case"hue-rotate":s+=" hue-rotate( "+(t[a][0]<t[a][1]?t[a][0]+Math.abs(t[a][0]-t[a][1])/100*i:t[a][0]-Math.abs(t[a][0]-t[a][1])/100*i)+"deg )";break;default:s+=" "+a+"( "+(t[a][0]<t[a][1]?t[a][0]+Math.abs(t[a][0]-t[a][1])/100*i:t[a][0]-Math.abs(t[a][0]-t[a][1])/100*i)+"% )"}ee.TweenMax.set(e.target,{"-webkit-filter":s,filter:s})}}},splitType:{setNodesSequence:function(e,o){function t(e,t){if("desc"==t)e=o.slice(0).reverse();else if("rand"==t)e=o.slice(0).sort(function(){return.5-Math.random()});else if("center"==t){var i,a=Math.floor(o.length/2);for(e=[o[a]],i=1;i<=a;i++)e.push(o[a-i],o[a+i]);e.length=o.length}else if("edge"==t){var s,r=Math.floor(o.length/2);for(e=[o[0]],s=1;s<=r;s++)e.push(o[o.length-s],o[s]);e.length=o.length}return e||o}var i=t(o,e[1]),e={asc:"desc",desc:"asc"}[e[1]]||e[1];return[i,t(o,e)]},resetNodes:function(e,t){ie(".ls-ch, .ls-wd, .ls-ln",e).add(t.elements.$wrapper).css({transform:"none",opacity:1}).each(function(){delete this._gsTransform})},setRandomProperties:function(e,t,i,a,s){for(var r in i){for(var o=[],n=0,l=t["text"+s].nodes.length;n<l;n++)o[n]=J.functions.convert.randomProperties(i[r],r,e,t);delete a[r],a.cycle[r]=o}i=null}}},media:{defaults:{delay:500,fadeIn:500,fadeOut:750},changeBackgroundVideo:function(e,t){var i,a,s,r;J.slides.current.index&&J.slides.current.data.$backgroundVideo.length&&(r=(i=J.slides.current.data.$backgroundVideo).data(J.defaults.init.dataKey).elements.$bgWrapper,t&&(i.data(J.defaults.init.dataKey).mediaProperties.willBePaused=!0,r.fadeOut(J.transitions.media.defaults.fadeOut,function(){i.trigger("stopBackgroundVideo"),i.data(J.defaults.init.dataKey).mediaProperties.willBePaused=!1}))),J.slides.next.data.$backgroundVideo.length&&(s=(a=J.slides.next.data.$backgroundVideo).data(J.defaults.init.dataKey).elements.$bgWrapper,r=a.data(J.defaults.init.dataKey).elements.$bgOuterWrapper,te.isMobile&&($.hasClass("ls-device-is-phone")&&r.hasClass("ls-hide-on-phone")||$.hasClass("ls-device-is-tablet")&&r.hasClass("ls-hide-on-tablet"))||setTimeout(function(){a.trigger("playBackgroundVideo")},e?50:0),e||t?s.fadeIn(J.transitions.media.defaults.fadeOut):s.css({display:"block"}),a.data(J.defaults.init.dataKey).mediaProperties.isPreloaded=!0)}},timers:{defaults:{fadeInDuration:.35,reverseDuration:.3},create:function(e){this.curNext=e||"next",this.reset(),J.gui.timers.bar.$element&&this.bar.createTransition(),J.gui.timers.circle.$element&&this.circle.createTransition(),J.gui.timers.slidebar.$element&&this.slidebar.createTransition()},reverse:function(){var e;J.slides.current&&J.slides.current.data&&J.transitions._slideTimeline&&(e=J.transitions._slideTimeline.progress(),e=J.slides.current.data.duration*e/this.defaults.reverseDuration,J.gui.timers.bar.$element&&this.bar._transition&&(J.transitions._slideTimeline.remove(J.transitions.timers.bar._transition),this.bar._transition.reverse().timeScale(e)),J.gui.timers.circle.$element&&this.circle._transition&&(J.transitions._slideTimeline.remove(J.transitions.timers.circle._transition),this.circle._transition.reverse().timeScale(e)),J.gui.timers.slidebar.$element&&this.slidebar._transition&&(J.transitions._slideTimeline.remove(J.transitions.timers.slidebar._transition),this.slidebar._transition.reverse().timeScale(e)))},reset:function(){J.gui.timers.bar.$element&&this.bar._transition&&this.bar.reset(),J.gui.timers.circle.$element&&this.circle._transition&&this.circle.reset(),J.gui.timers.slidebar.$element&&this.slidebar._transition&&this.slidebar.reset()},bar:{reset:function(){this._transition&&(this._transition.kill(),this._transition=!1)},createTransition:function(){this._transition=ee.TweenMax.fromTo(J.gui.timers.bar.$element[0],J.slides[J.transitions.curNext].data.duration,{autoCSS:!1,paused:!0,css:{width:0}},{autoCSS:!1,css:{},ease:ee.Linear.easeNone,onReverseComplete:function(){J.transitions.timers.bar._transition=!1},onReverseCompleteParams:["{self}"],onComplete:function(e){e.target.style.width="100%",e.target.style.width="calc( 100% - "+J.slider.initial.skinWidth+"px )"},onCompleteParams:["{self}"],onUpdate:function(e){e.target.style.width=Math.min(J.slider.width,J.slider.width*e.progress())+"px"},onUpdateParams:["{self}"]})}},circle:{reset:function(){this._transition&&(J.gui.timers.circle.$element.stop(!0,!0),this._transition.kill(),this._transition=!1)},createTransition:function(){var e=J.gui.timers.circle.$element.find(".ls-ct-right .ls-ct-rotate")[0],t=J.gui.timers.circle.$element.find(".ls-ct-left .ls-ct-rotate")[0],i=J.slides[J.transitions.curNext].data.duration;this._transition=new ee.TimelineMax({paused:!0}).fromTo(J.gui.timers.circle.$element[0],J.transitions.timers.defaults.fadeInDuration,{autoCSS:!1,immediateRender:!0,css:{opacity:0,display:"block"}},{autoCSS:!1,css:{opacity:J.gui.timers.circle.$element.data("original").opacity}}).fromTo(e,i/2,{autoCSS:!1,css:{rotation:0}},{autoCSS:!1,css:{rotation:180},ease:ee.Linear.easeNone},0).fromTo(t,i/2,{autoCSS:!1,css:{rotation:0}},{autoCSS:!1,css:{rotation:180},ease:ee.Linear.easeNone},i/2)}},slidebar:{reset:function(){this._transition&&(this._transition.kill(),this._transition=!1)},createTransition:function(){var i=this;i._transition=new ee.TimelineMax({paused:!0,onReverseComplete:function(){J.transitions.timers.slidebar._transition=!1}}),ie.each(J.gui.timers.slidebar.$sliderContainerElement,function(t,e){i._transition.add(ee.TweenMax.fromTo(J.gui.timers.slidebar.$sliderContainerElement[t][0],J.slides[J.transitions.curNext].data.duration,{autoCSS:!1,css:{left:0}},{autoCSS:!1,immediateRender:!1,css:{},ease:ee.Linear.easeNone,onComplete:function(e){e.target.style.left="calc( 100% - "+J.gui.timers.slidebar.sliderContainerElementWidth[t]+"px )"},onCompleteParams:["{self}"],onUpdate:function(e){e.target.style.left=(J.gui.timers.slidebar.containerElementWidth[t]-J.gui.timers.slidebar.sliderContainerElementWidth[t])*e.progress()+"px"},onUpdateParams:["{self}"]}),0),i._transition.add(ee.TweenMax.fromTo(J.gui.timers.slidebar.$progressBarElement[t][0],J.slides[J.transitions.curNext].data.duration,{autoCSS:!1,css:{width:0}},{autoCSS:!1,css:{},ease:ee.Linear.easeNone,onComplete:function(e){e.target.style.width="100%"},onCompleteParams:["{self}"],onUpdate:function(e){e.target.style.width=J.gui.timers.slidebar.elementWidth[t]*e.progress()+"px"},onUpdateParams:["{self}"]}),0)})}}},scrollscene:{animate:function(e){var t,i;J.transitions._slideTimeline&&(t=J.slider.wrapperOffset.height-J.slider.height,i=te.scroll.top+this.stickLimit-J.slider.wrapperOffset.top,e=Math.max(1e-4,J.o.sceneDuration/t*i),t=ee.Quart.easeOut,i=this.initialized&&!this.immediateRender?J.o.smoothScrollDuration/1e3:0,J.transitions._slideTimeline.tweenTo(e,{ease:t}).duration(i),this.initialized=!0,this.immediateRender=!1)}}},J.plugins={load:function(){var e,a;J.o.plugins&&0!==J.o.plugins.length?(e=J.o.plugins[0],a="object"==typeof e?e.namespace:e,window._layerSlider.plugins[a]?(J.plugins.init(a,e,!0),J.plugins.load()):J.browser.usesFileProtocol||"object"!=typeof e?(J.browser.usesFileProtocol?window.console&&(console.error(J.defaults.slider.errorText,"Cannot load plugins on file:// protocol."),console.info("Please include the plugin files manually.")):window.console&&(console.error(J.defaults.slider.errorText,"Plugin files are missing!"),console.info('Plugin "'+a+'" has been added in slider init options, but the source files are not found on page.')),J.o.plugins.splice(0,1),J.plugins.load()):-1===window._layerSlider.pluginsBeingLoaded.indexOf(a)?-1===window._layerSlider.pluginsLoaded.indexOf(a)&&-1===window._layerSlider.pluginsNotLoaded.indexOf(a)?(window._layerSlider.pluginsBeingLoaded.push(a),ie.ajax({url:-1===e.js.indexOf(LS_nsProtocol||"http://")&&-1===e.js.indexOf("https://")?(window._layerSlider.pluginsPath||window._layerSlider.scriptPath+"/../plugins/")+e.js:e.js,dataType:"script",success:function(){J.plugins.init(e.namespace,e,!0),window._layerSlider.pluginsLoaded.push(a)},error:function(e,t,i){window.console&&(console.error(J.defaults.slider.errorText,a,"plugin has not been loaded!"),console.error("Additional error info:",i)),window._layerSlider.pluginsNotLoaded.push(a)},complete:function(){window._layerSlider.pluginsBeingLoaded.splice(window._layerSlider.pluginsBeingLoaded.indexOf(a),1),J.plugins.load()}})):(J[a]||-1!==window._layerSlider.pluginsNotLoaded.indexOf(a)?J.o.plugins.splice(0,1):J.plugins.init(a,e),J.plugins.load()):J.plugins.checkLoaded(a)):J.slider.check.initialized()},init:function(e,t,i){J.initializedPlugins[e]=new window._layerSlider.plugins[e](J,$,W,t.settings),window._layerSlider.checkVersions(J.initializedPlugins[e].pluginData.requiredLSVersion,J.plugin.version)?(t.css&&i&&ie('<link rel="stylesheet" href="'+(-1===t.css.indexOf(LS_nsProtocol||"http://")&&-1===t.css.indexOf("https://")?(window._layerSlider.pluginsPath||window._layerSlider.scriptPath+"/../plugins/")+t.css:t.css)+'">').appendTo("head"),J.initializedPlugins[e].init&&J.initializedPlugins[e].init()):window.console&&console.error(J.defaults.slider.errorText,e,"plugin has not been loaded! Required LayerSlider version:",J.initializedPlugins[e].pluginData.requiredLSVersion,"(you have:",J.plugin.version+")"),J.o.plugins.splice(0,1)},checkLoaded:function(e){J.intervals.pluginLoaded=setInterval(function(){-1===window._layerSlider.pluginsLoaded.indexOf(e)&&-1===window._layerSlider.pluginsNotLoaded.indexOf(e)||-1!==window._layerSlider.pluginsBeingLoaded.indexOf(e)||(clearInterval(J.intervals.pluginLoaded),delete J.intervals.pluginLoaded,J.plugins.load())},100)}},J.performance={},J.slider={shouldResize:!0,thumbnails:[],state:{isHidden:!1,isPaused:!1,preloadingImages:!1,readyForStart:!1,changingSlides:!1,animatingSlides:!1},offset:{},position:{},isBusy:function(){return this.state.preloadingImages||this.state.changingSlides||this.state.animatingSlides},load:function(){if(!document.body.contains(L))return!1;J.api.hasEvent("sliderWillLoad")&&J.api.triggerEvent("sliderWillLoad"),J.slider.set.global()},set:{global:function(){var e;J.originalMarkup=$[0].outerHTML,J.userInitOptions=J.functions.convert.properties(J.functions.convert.oldProperties(i)),J.meta={},J.o=ie.extend(!0,{},J.defaults.init.options,J.userInitOptions),J.o.forceLayersOutDuration/=1e3,J.o.forceLayersOutDuration=0<J.o.forceLayersOutDuration?J.o.forceLayersOutDuration:.75,J.o.sliderFadeInDuration/=1e3,window.console&&!0!==J.o.hideWelcomeMessage&&!0!==window._layerSlider.hideWelcomeMessage&&(window._layerSlider.hideWelcomeMessage=!0,t=window.console.info?"info":"log",e=window.LS_Meta&&window.LS_Meta.v?" | WP Plugin: "+window.LS_Meta.v:"",console[t]("LayerSlider initialized | core: "+J.plugin.version+"-"+J.plugin.release+e),console[t]("Find updates and docs @ https://layerslider.com/"));var t={namespace:"debug",js:"debug/layerslider.debug.js",css:"debug/layerslider.debug.css"};-1!==document.location.hash.indexOf("debug")&&window.console&&("object"==typeof J.o.plugins?J.o.plugins.push(t):J.o.plugins=[t]),(window._layerSlider.currentScript||window._layerSlider.lsScript)&&(window._layerSlider.scriptPath=(window._layerSlider.currentScript||window._layerSlider.lsScript).src.replace(/\\/g,"/").replace(/\/[^\/]*$/,"")),J.o.silentMode&&(J.slider.$silentWrapper=ie("<ls-silent-wrapper></ls-silent-wrapper>"),J.slider.$silentWrapper.append($).prependTo("body")),"string"==typeof J.o.getData&&(J.o.getData=[J.o.getData]),"object"==typeof J.o.plugins?J.plugins.load():J.slider.check.initialized()},styles:function(){var e,t,i,a,s,r,o,n,l,d,c,p,u,h,m,f,g,y=J.slider,v=$.parent(),w=L.style,x=window.getComputedStyle(L,null),S=parseInt(L.clientWidth),b=parseInt(L.clientHeight),T=parseInt(v.width()),k=parseInt(v.height()),C=J.o.layersContainerWidth,P=J.o.layersContainerHeight,O=J.o.type.toLowerCase();switch(J.debugMode&&J.debug.add("group","sliderInit.style"),J.o.width?e=-1==J.o.width.indexOf("%")?parseInt(J.o.width):J.o.width:w.width?e=-1==w.width.indexOf("%")?parseInt(w.width):w.width:0<C?(e=C,J.debugMode&&J.debug.add("warn","sliderInit.noWidth",C)):(e=S,J.debugMode&&J.debug.add("warn","sliderInit.noWidth2",S)),i=e,J.o.height?t=-1==J.o.height.indexOf("%")?parseInt(J.o.height):J.o.height:w.height?t=-1==w.height.indexOf("%")?parseInt(w.height):w.height:0<P?(t=P,J.debugMode&&J.debug.add("warn","sliderInit.noHeight",P)):(t=b,J.debugMode&&J.debug.add("warn","sliderInit.noHeight2",k)),a=t,s=""!==w.maxWidth?-1!==w.maxWidth.indexOf("px")?parseInt(w.maxWidth):w.maxWidth:0,void 0===J.userInitOptions.type&&(0<C&&0<P||"100%"===e&&"100%"===t?O="fullsize":C<=0&&P<=0&&(J.o.responsiveUnder<=0||0<J.o.responsiveUnder&&J.o.sliderVersion)?O=void 0!==J.o.responsive&&!1===J.o.responsive?"fixedsize":"responsive":0<J.o.responsiveUnder&&(O="fullwidth")),O){case"fullwidth":-1!==e.indexOf("%")&&(J.debugMode&&J.debug.add("warn","sliderInit.percWidth",[O,e,S]),e=S),C<=0&&(C=e,J.debugMode&&J.debug.add("warn","sliderInit.conWidth",[O,e])),J.o.responsiveUnder<=0&&(J.o.responsiveUnder=C,J.debugMode&&J.debug.add("warn","sliderInit.fullwidth",C)),-1!==t.indexOf("%")&&(o=k/(100/parseInt(t)),J.debugMode&&J.debug.add("warn","sliderInit.fullwidth2",[O,t,o]),t=o),P<=0&&(P=t);break;case"fullsize":-1!==e.indexOf("%")&&(r=0<C?C:T,J.debugMode&&J.debug.add("warn","sliderInit.fullsize",[O,e,r,T,C]),e=r),C<=0&&(C=e,J.debugMode&&J.debug.add("warn","sliderInit.conWidth",[O,e])),-1!==t.indexOf("%")&&(o=0<P?P:M.height()/(100/parseInt(t)),J.debugMode&&J.debug.add("warn","sliderInit.fullsize2",[O,t,o,M.height(),P]),t=o),P<=0&&(P=t,J.debugMode&&J.debug.add("warn","sliderInit.conHeight",[O,t]));break;case"fixedsize":break;default:J.userInitOptions.type=J.o.type=O="responsive",(J.o.responsiveUnder=-1)!==e.indexOf("%")&&(e=S,J.debugMode&&J.debug.add("warn","sliderInit.percWidth",[O,e,S])),-1!==t.indexOf("%")&&(e=b,J.debugMode&&J.debug.add("warn","sliderInit.responsive",[O,t,b])),J.debugMode&&0<C&&J.debug.add("warn","sliderInit.conWidth2",[O,C]),J.debugMode&&0<P&&J.debug.add("warn","sliderInit.conHeight2",[O,P])}if($.addClass("ls-container ls-"+O),$.parent().addClass("ls-direction-fix"),J.userInitOptions.slideBGSize||"responsive"!==O||!J.userInitOptions.hasOwnProperty("sliderVersion")||J.userInitOptions.sliderVersion||(J.o.slideBGSize="auto",J.debugMode&&J.debug.add("warn","sliderInit.bgCover",O)),J.o.slideBGSize=J.o.slideBGSize.replace("100% 100%","stretch"),n=0<C?C:e,l=0<P?P:t,(d="auto"===(g=L.style.marginLeft)?"auto":""===g?parseInt(x.getPropertyValue("margin-left")):parseInt(L.style.marginLeft))===(c="auto"===(f=L.style.marginRight)?"auto":""===f?parseInt(x.getPropertyValue("margin-right")):parseInt(L.style.marginRight))&&(""===g&&""===f&&(I=d,c=d="auto"),$.css({marginLeft:"auto",marginRight:"auto"})),p=""!==w.paddingLeft?parseInt(w.paddingLeft):parseInt($.css("padding-left")),h=""!==w.paddingRight?parseInt(w.paddingRight):parseInt($.css("padding-right")),u=""!==w.paddingTop?parseInt(w.paddingTop):parseInt($.css("padding-top")),m=""!==w.paddingBottom?parseInt(w.paddingBottom):parseInt($.css("padding-bottom")),v=""!==w.borderLeftWidth?parseInt(w.borderLeftWidth):parseInt($.css("border-left-width")),g=""!==w.borderRightWidth?parseInt(w.borderRightWidth):parseInt($.css("border-right-width")),f=""!==w.borderTopWidth?parseInt(w.borderTopWidth):parseInt($.css("border-top-width")),w=""!==w.borderBottomWidth?parseInt(w.borderBottomWidth):parseInt($.css("border-bottom-width")),y.initial={type:O,width:e,height:t,originalWidth:i,originalHeight:a,percW:e/100,percH:t/100,layersWidth:C,layersHeight:P,ratio:n/l,maxWidth:s,marginLeft:d,marginRight:c,marginTop:J.o.marginTop,marginBottom:J.o.marginBottom,paddingLeft:p,paddingTop:u,paddingRight:h,paddingBottom:m,borderLeftWidth:v,borderTopWidth:f,borderRightWidth:g,borderBottomWidth:w,skinWidth:p+h+v+g,skinHeight:u+m+f+w},J.debugMode&&(J.debug.add("log","sliderInit.style",[e,t,i,a,C,P,parseInt(n/l*100)/100,0<s?s:void 0,[d,c]]),I&&J.debug.add("warn","sliderInit.margin",I)),ie("#ls-global").length||(ie("html").attr("id")?ie("body").attr("id")||ie("body").attr("id","ls-global"):ie("html").attr("id","ls-global")),"static"!==x.getPropertyValue("position")&&"absolute"!==x.getPropertyValue("position")&&(L.style.position="relative"),J.o.insertSelector&&$[J.o.insertMethod](J.o.insertSelector),J.slider.$hiddenWrapper=ie('<div class="ls-wp-container fitvidsignore ls-hidden" data-layerslider-uid="'+W+'"></div>').addClass($.attr("class")).prependTo("body"),J.slider.$innerWrapper=ie('<div class="ls-inner"></div>'),J.slider.$slideBGColorWrapper=ie('<div class="ls-slide-bgcolor"></div>').appendTo(J.slider.$innerWrapper),J.slider.$layersWrapper=ie('<div class="ls-layers"></div>').appendTo(J.slider.$innerWrapper),J.slider.$bgVideosWrapper=ie('<div class="ls-background-videos"></div>').appendTo(J.slider.$layersWrapper),J.slider.$slideBGWrapper=ie('<div class="ls-slide-backgrounds"></div>').appendTo(J.slider.$layersWrapper),J.slider.$innerWrapper.appendTo($),!0===J.o.hideOnMobile&&te.isMobile?($.addClass("ls-forcehide"),$.closest(".ls-wp-fullwidth-container").addClass("ls-forcehide"),J.o.autoStart=!1):J.slider.check.showHide(),"sticky"===J.o.scene||"scroll"===J.o.scene){if(J.o.scene)switch(J.slider.isScene=!0,J.o.scene){case"scroll":J.slider.isScrollScene=!0;case"sticky":J.slider.isSticky=!0}$.parent().is("ls-scene-wrapper")?$.parent().attr("data-scene",J.o.scene).attr("data-layerslider-uid",W):$.wrap('<ls-scene-wrapper data-scene="'+J.o.scene+'" data-layerslider-uid="'+W+'"></ls-scene-wrapper>'),J.slider.$spacingWrapper=ie('ls-scene-wrapper[data-layerslider-uid="'+W+'"]'),$.attr("data-scene",J.o.scene)}else J.slider.$spacingWrapper=$;var I=J.slider.isScene&&"scene"===J.o.globalBGFor?J.slider.$spacingWrapper:J.slider.$innerWrapper,x=!1;-1==J.o.globalBGColor.indexOf("gradient")?I.css({backgroundColor:J.o.globalBGColor}):(x=J.o.globalBGColor,J.o.globalBGColor="transparent"),J.o.globalBGImage?I.css({backgroundImage:"url( "+J.o.globalBGImage+" )"+(x?", "+x:""),backgroundRepeat:J.o.globalBGRepeat,backgroundAttachment:J.o.globalBGAttachment,backgroundSize:J.o.globalBGSize,backgroundPosition:J.o.globalBGPosition}):x&&I.css({backgroundImage:x}),"transparent"!=J.o.globalBGColor||!1!==J.o.globalBGImage||x||I.css({background:"none transparent"}),(J.o.preventSliderClip&&J.o.fitScreenWidth&&("fullwidth"===O||"fullsize"===O&&"fitheight"!==J.o.fullSizeMode)||J.slider.isScrollScene||J.slider.isSticky)&&$.parents(":not(body, html)").each(function(){ie(this).addClass("ls-overflow-visible")})},options:function(){var t,i,a,s,r,e;ie("html").find('meta[content*="WordPress"]').length&&(J.meta.wpVersion=ie("html").find('meta[content*="WordPress"]').attr("content").split("WordPress")[1]),window.LS_Meta&&window.LS_Meta.v?J.meta.lswpVersion=window.LS_Meta.v:ie("html").find('script[src*="layerslider"]').length&&-1!=ie("html").find('script[src*="layerslider"]').attr("src").indexOf("?")&&(J.meta.lswpVersion=ie("html").find('script[src*="layerslider"]').attr("src").split("?")[1].split("=")[1]),"undefined"!=typeof layerSliderTransitions&&(J.t=ie.extend({},layerSliderTransitions)),"undefined"!=typeof layerSliderCustomTransitions&&(J.ct=ie.extend({},layerSliderCustomTransitions)),J.debugMode&&("undefined"!=typeof layerCustomSliderTransitions?(J.debug.add("log","sliderInit.customTransitions",!1),"undefined"==typeof layerSliderTransitions&&J.debug.add("warn","sliderInit.slideTransitions")):"undefined"==typeof layerSliderTransitions&&J.debug.add("warn","sliderInit.noSlideTransitions")),"number"==typeof J.o.parallaxCenterDegree&&(J.transitions.layers.parallax.defaults.centerDegree=J.o.parallaxCenterDegree),"number"==typeof J.o.parallaxSensitivity&&(J.transitions.layers.parallax.defaults.sensitive=J.o.parallaxSensitivity),J.o.parallaxCenterLayers&&(J.transitions.layers.parallax.defaults.centerLayers=J.o.parallaxCenterLayers),J.o.scrollCenterLayers&&(J.transitions.layers.scroll.defaults.centerLayers=J.o.scrollCenterLayers),J.slider.isSticky&&(ie.extend(J.o,{allowFullscreen:!1,playByScroll:!1}),J.slider.isScrollScene&&ie.extend(J.o,{autoPauseSlideshow:!1,autoStart:!1,pauseLayers:!1,pauseOnHover:!1,startInViewport:!1})),J.o.playByScroll&&ie.extend(J.o,{cycles:-1,startInViewport:!0,pauseOnHover:!1,autoStart:!1}),te.isMobile&&(J.o.pauseOnHover=!1),J.o.noContextMenu&&$.on("contextmenu."+W,function(){return!1}),J.o.startInViewport&&(J.slider.state.waitForGettingInViewport=!0,J.o.playByScroll&&(J.slider.positionToViewport=te.scroll.top>J.slider.offset.top-(te.viewport.height-J.slider.height)/2?"under":"over",t=!0,i=4*J.o.playByScrollSpeed,J.device.scroll.timeout=250,J.transitions.layers.timeline.timeScaleModifier=0,ie(document).on("wheel."+W+" touchmove."+W,function(e){te.isMobile?(a=e.originalEvent.touches[0].clientY,s<a?J.device.scroll.direction="up":a<s&&(J.device.scroll.direction="down"),r=s-a,s=a):(0<e.originalEvent.deltaY?J.device.scroll.direction="down":J.device.scroll.direction="up",r=e.originalEvent.deltaY),0!==Math.abs(r)&&(J.device.scroll.lastDirection?J.device.scroll.lastDirection!==J.device.scroll.direction&&(J.device.scroll.lastDirection=J.device.scroll.direction,J.transitions.layers.timeline.timeScaleModifier=0):J.device.scroll.lastDirection=J.device.scroll.direction,"inside"===J.slider.positionToViewport&&(J.resize.viewport(),0<=r?J.transitions.layers.timeline.scrollForward():J.transitions.layers.timeline.scrollBackwards(),t&&(clearTimeout(J.timeouts.scroll),t=!1,J.transitions.layers.timeline.timeScaleModifier=J.transitions.layers.timeline.timeScaleModifier<i?J.transitions.layers.timeline.timeScaleModifier+.25:i,J.timeouts.scroll2=setTimeout(function(){delete J.timeouts.scroll2,t=!0,J.device.scroll.timeout=50<J.device.scroll.timeout?J.device.scroll.timeout-50:50},J.device.scroll.timeout))),J.slider.check.positionToViewport(),J.timeouts.checkPosition=setTimeout(function(){J.slider.check.positionToViewport()},25))}))),J.slider.canShow=!0,te.automaticFontSizeRatio||(e=ie('<ls-dummy style="font-size: 100px; width: 0; height: 0; opacity: 0; position: absolute; overflow: hidden; pointer-events: none;">Lorem</ls-dummy>').appendTo("body"),te.automaticFontSizeRatio=parseFloat(e.css("font-size"))/parseFloat(e[0].style.fontSize)||1,e.remove())},pictureElements:function(){for(var e=$.find("picture"),t=$.find("source"),i=0,a=t.length;i<a;i++){var s=ie(t[i]);!s.attr("src")&&s.attr("data-src")&&s.attr("src",s.attr("data-src")),!s.attr("srcset")&&s.attr("data-srcset")&&s.attr("srcset",s.attr("data-srcset"))}for(var r=0,o=e.length;r<o;r++){var n,l,d,c=ie(e[r]);c.is(".ls-bg, .ls-tn")?(l=(n=c.find("img"))[0],d=c.attr("class"),!n.attr("src")&&n.attr("data-src")&&n.attr("src","data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="),!n.attr("srcset")&&n.attr("data-srcset")&&n.attr("srcset",n.attr("data-srcset")),n.attr("data-src",l.currentSrc||n.attr("data-src")||n.attr("src")),n.removeAttr("width height src srcset").addClass(d).prependTo(n.closest(".ls-slide")),c.remove()):c.find("img").appendTo(c).removeAttr("width height data-ls")}},events:function(){M.on("scroll."+W,function(){J.slider.set.offset()}),M.on("touchmove."+W,function(e){e=e.touches||e.originalEvent.touches;1==e.length&&(self.touchX=e[0].clientX)}),M.on("resize."+W,function(){J.slider.check.showHide(),J.transitions.scrollscene.immediateRender=!0,"inside"===J.slider.positionToViewport&&J.o.playByScroll&&J.resize.viewport(),J.slider.shouldResize&&(!te.isMobile||te.isMobile&&te.viewport.width!==te.viewport.lastWidth||J.slider.isPopup)&&J.resize.all(),J.slider.set.offset(),J.slider.isScene&&J.resize.scene(),J.slider.isPopup||(J.timeouts.resize&&clearTimeout(J.timeouts.resize),J.resize.once?J.resize.once=!1:J.timeouts.resize=setTimeout(function(){J.resize.once=!0,M.trigger("resize."+W),J.api.methods("resetScroll")},100))}),J.debugMode&&(M.off(".debug"+W),M.on("resize.debug"+W,function(){J.debug.add("log","resize.window",te.viewport.width,!0)})),M.on("hashchange."+W,function(){document.location.hash&&J.slides.deeplink(document.location.hash)}),J.slider.set.offset(),M.trigger("resize."+W),J.o.refreshWaypoint&&window.Waypoint&&Waypoint.refreshAll()},offset:function(){if("none"!==$.css("display")){var e=L.getBoundingClientRect(),t=J.slider.position.toViewportForPerformance;J.slider.position.toViewport;if(J.slider.get.offset(e),J.slider.get.position(e),0<J.slider.position.left-te.viewport.width?J.slider.position.left-te.viewport.width>J.performance.threshold?J.slider.position.toViewportX="after":J.slider.position.toViewportX="insideLimit":J.slider.position.right<0?J.slider.position.right<-J.performance.threshold?J.slider.position.toViewportX="before":J.slider.position.toViewportX="insideLimit":J.slider.position.toViewportX="inside",0<J.slider.position.top-te.viewport.height?J.slider.position.top-te.viewport.height>J.performance.threshold?J.slider.position.toViewportY="below":J.slider.position.toViewportY="insideLimit":J.slider.position.bottom<0?J.slider.position.bottom<-J.performance.threshold?J.slider.position.toViewportY="above":J.slider.position.toViewportY="insideLimit":J.slider.position.toViewportY="inside",J.slider.position.toViewportYForSkipViewportLayers=J.slider.position.toViewportY,J.slider.state.waitForGettingInViewport&&(J.slider.position.middle<te.viewport.height&&0<J.slider.position.middle?((J.slider.position.toViewportY="inside")===J.slider.position.toViewportX&&(J.slider.position.toViewport="inside"),J.slider.state.waitForGettingInViewport=!1,J.transitions._slideTimeline&&J.transitions._slideTimeline.play(),J.o.animateFirstSlide&&J.slideshow.firstStart&&J.slider.state.readyForStart&&(J.resize.layers({callback:J.api.resumeCallback}),J.api.resumeCallback=!1),J.debugMode&&J.debug.add("log","slideshow.inviewport",!1)):J.slider.position.toViewportY="outside"),-1!==J.slider.position.toViewportX.indexOf("inside")&&"insideLimit"==J.slider.position.toViewportY||-1!==J.slider.position.toViewportY.indexOf("inside")&&"insideLimit"==J.slider.position.toViewportX?(J.slider.position.toViewport="insideLimit",J.slider.position.toViewportForPerformance="inside"):"inside"==J.slider.position.toViewportX&&"inside"==J.slider.position.toViewportY?(J.slider.position.toViewport="inside",J.slider.position.toViewportForPerformance="inside"):(J.slider.position.toViewport="outside",J.slider.position.toViewportForPerformance="outside"),J.o.performanceMode&&t!==J.slider.position.toViewportForPerformance&&("inside"===J.slider.position.toViewportForPerformance?(J.performance.sliderIsInviewport=!0,J.api.methods("resumeSlider","performanceMode")):(J.performance.sliderIsInviewport=!1,J.api.methods("pauseSlider","performanceMode"))),(J.slider.isScrollScene||J.slider.isSticky)&&!J.slider.$spacingWrapper.is("[data-disabled-scene]")){var t=J.slider.$spacingWrapper[0].getBoundingClientRect(),i=(te.viewport.height-J.slider.height)/2,a=0;switch(J.o.stickTo||"center"){case"top":break;case"center":a=i;break;case"bottom":a=2*i}J.transitions.scrollscene.stickLimit=a,J.slider.wrapperPosition={left:t.left,top:t.top,middleForScrollTransition:t.top+t.height/2-te.viewport.height/2},J.slider.wrapperOffset={left:t.left+te.scroll.left,right:t.left+J.slider.width+te.scroll.left,top:t.top+te.scroll.top,bottom:t.bottom+J.slider.height+te.scroll.top,width:t.width,height:t.height},J.slider.state.shouldAnimateScrollSnene=!1,t.top>a?("disabled"!==J.slider.state.sticky||J.slider.isScrollScene&&!J.transitions.scrollscene.initialized)&&(J.slider.state.sticky="disabled",J.slider.state.shouldAnimateScrollSnene=!0):t.bottom-J.slider.height-a<0?("over"!==J.slider.state.sticky||J.slider.isScrollScene&&!J.transitions.scrollscene.initialized)&&(J.slider.state.sticky="over",J.slider.state.shouldAnimateScrollSnene=!0):t.top<=a&&t.bottom>-a&&("enabled"!==J.slider.state.sticky&&(J.slider.state.sticky="enabled"),J.slider.state.shouldAnimateScrollSnene=!0),J.slider.isScrollScene&&J.transitions._slideTimeline&&J.slider.state.shouldAnimateScrollSnene&&J.transitions.scrollscene.animate()}J.slider.state.isNotDisplayed&&(J.slider.state.isNotDisplayed=!1,J.resize.all(),J.slider.check.positionToViewport(),M.trigger("scroll"))}else J.slider.state.isNotDisplayed=!0},attributes:function(){$.attr("data-current-slide",J.slides.current.index)}},get:{offset:function(e){e=e||L.getBoundingClientRect(),J.slider.offset={left:e.left+te.scroll.left,right:e.left+J.slider.width+te.scroll.left,top:e.top+te.scroll.top,bottom:e.bottom+J.slider.height+te.scroll.top}},position:function(e){e=e||L.getBoundingClientRect(),J.slider.position={left:e.left,center:e.left+J.slider.width/2,right:e.right,top:e.top,middle:e.top+J.slider.height/2,bottom:e.bottom}},scrollTop:function(e,t){var i=parseFloat(e.offset().top)+(t.offset||0);switch(t.scrollposition){default:case"top":break;case"middle":i=i-window._lsData.viewport.height/2+e.height()/2;break;case"bottom":i=i+e.height()-window._lsData.viewport.height}return i}},check:{initialized:function(){J.debugMode&&J.debug.add("log","sliderInit.info",[J.plugin.version,J.plugin.releaseDate,J.userInitOptions.sliderVersion||"n/a or slider version is pre 6.0.0",$.attr("id"),W,ie.fn.jquery,J.meta.lswpVersion,J.meta.wpVersion],!0),J.slider.initialized||(J.slider.initialized=!0,this.skins())},skins:function(){J.o.skin&&""!==J.o.skin&&J.o.skinsPath&&""!==J.o.skinsPath?J.gui.skin.load():J.slider.init()},showHide:function(){te.isMobile&&!1!==J.o.hideOnMobile||(te.viewport.width<J.o.hideUnder||te.viewport.width>J.o.hideOver&&0<J.o.hideOver?J.slider.hide():J.slider.show())},visibility:function(){!!J.slider.$innerWrapper.width()?J.slider.state.isHidden&&(J.slider.state.isHidden=!1,J.resize.all({forceToGetParentWidth:!0})):J.slider.state.isHidden=!0},positionToViewport:function(){var e;delete J.timeouts.checkPosition,J.o.playByScroll&&J.device.scroll.direction&&(e="down"===J.device.scroll.direction?te.scroll.top:J.slider.offset.top-(te.viewport.height-J.slider.height)/2,(("down"===J.device.scroll.direction?J.slider.offset.top-(te.viewport.height-J.slider.height)/2:te.scroll.top)<e&&("up"===J.device.scroll.direction&&"under"===J.slider.positionToViewport||"down"===J.device.scroll.direction&&"over"===J.slider.positionToViewport)||te.document.height<=te.viewport.height||J.slider.height<te.viewport.height&&("up"===J.device.scroll.direction&&te.scroll.top<=0&&J.slider.offset.top+J.slider.height/2<te.viewport.height/2||"down"===J.device.scroll.direction&&te.scroll.top>=te.document.height-te.viewport.height&&J.slider.offset.top+J.slider.height/2>te.scroll.top+te.viewport.height/2))&&(J.slider.positionToViewport="inside",J.resize.viewport(),J.device.scroll.disable()))}},init:function(){clearTimeout(J.timeouts.skinLoad1),clearTimeout(J.timeouts.skinLoad2),clearTimeout(J.timeouts.skinLoad3),clearTimeout(J.timeouts.skinLoad4),J.slider.set.styles(),J.slider.set.options(),J.slider.set.pictureElements(),J.slides.init(),J.device.fullscreen.set(),J.media.init(),J.gui.timers.init(),J.gui.loadingIndicator.init(),J.preload.init(),J.gui.shadow.init(),J.navigation.init(),J.slideshow.init(),J.slides.set.firstSlide(),J.gui.navigation.init(),J.gui.media.init(),J.resize.slider(),J.yourLogo.init(),J.slider.set.events(),J.api.hasEvent("sliderDidLoad")&&J.api.triggerEvent("sliderDidLoad",J.api.eventData()),J.functions.setStates(J.slider,{isLoaded:!0}),J.slider.state.shouldBeDestroyed?J.api.methods("destroy"):(J.slider.isPopup||(J.intervals.checkSliderVisibility=setInterval(function(){J.slider.check.visibility()},500)),J.slideshow.changeTo(J.slides.first.index))},hide:function(){$.addClass("ls-forcehide"),$.closest(".ls-wp-fullwidth-container").addClass("ls-forcehide"),$.closest(".ls-popup").addClass("ls-forcehide"),$.closest(".ls-popup").prev(".ls-popup-overlay").addClass("ls-forcehide")},show:function(){$.removeClass("ls-forcehide"),$.closest(".ls-wp-fullwidth-container").removeClass("ls-forcehide"),$.closest(".ls-popup").removeClass("ls-forcehide"),$.closest(".ls-popup").prev(".ls-popup-overlay").removeClass("ls-forcehide")}},J.functions={getData:function(e,t){return!J.o.getData||-1===J.o.getData.indexOf(e)||(J.api.triggerEvent("getData",{property:e,value:t}),!J.o.destroyAfter)||(J.api.methods("destroy",!0),!1)},convert:{transformOrigin:function(e,t,i,a){for(var s=(d=ie.trim(e)).split(" "),r=a[0].style,o="",n=["Left","Top"],l=[J.slider.width,J.slider.height],d=d.replace("sliderleft","0").replace("sliderright","100%").replace("slidercenter","50%").replace("slidermiddle","50%").replace("slidertop","0").replace("sliderbottom","100%").replace("left","0").replace("right","100%").replace("center","50%").replace("middle","50%").replace("top","0").replace("bottom","100%").split(" "),c=0;c<d.length;c++)-1!==s[c].indexOf("slider")?(J.transitions.layers.timeline.shouldRestart=!0,o+=c<2?l[c]/(100/parseInt(d[c]))-parseInt(r[n[c].toLowerCase()])-parseInt(r["margin"+n[c]])+"px ":"0px"):-1!==d[c].indexOf("%")?o+=d[c]+" ":-1!==d[c].indexOf("em")?o+=parseFloat(d[c])*parseInt(t.css("font-size"))+"px ":o+=parseInt(d[c])*i.settings.calculatedratio+"px ";return ie.trim(o)},specialValuesOfTransformOrigin:function(e){return e=e.replace("sliderleft","0").replace("sliderright","100%").replace("slidercenter","50%").replace("slidermiddle","50%").replace("slidertop","0").replace("sliderbottom","100%").replace("left","0").replace("right","100%").replace("center","50%").replace("middle","50%").replace("top","0").replace("bottom","100%").split(" ")},nodesTransformOrigin:function(e,d,c,t){for(var i="object"==typeof e,p=(d.length,[]),u=t[0].style,h=["left","top"],a=function(e,t){for(var t=ie(d[t]),i=parseInt(t.css("font-size")),a=t.position(),s=(n=ie.trim(e)).split(" "),r="",o=[J.slider.width,J.slider.height],n=J.functions.convert.specialValuesOfTransformOrigin(n),l=0;l<n.length;l++)-1!==s[l].indexOf("slider")?(J.transitions.layers.timeline.shouldRestart=!0,r+=l<2?o[l]/(100/parseInt(n[l]))-parseInt(a[h[l]])-parseInt(u[h[l].toLowerCase()])+"px ":"0px"):-1!==n[l].indexOf("%")?r+=n[l]+" ":-1!==n[l].indexOf("em")?r+=parseFloat(n[l])*i+"px ":r+=parseInt(n[l])*c.settings.calculatedratio+"px ";p.push(ie.trim(r))},s=0,r=i&&e.length,o=0;o<d.length;o++)i?(a(e[s],o),++s==r&&(s=0)):a(e,o);return p},easing:function(e,t){return"string"!=typeof e?e:(-1!==(e=e.toLowerCase()).indexOf("swing")||-1!==e.indexOf("linear")?i=ee.Linear.easeNone:(a=e.match(/(easeinout|easein|easeout)(.+)/)[2],a=ee[a.charAt(0).toUpperCase()+a.slice(1)],-1!==e.indexOf("easeinout")?i=a.easeInOut:-1!==e.indexOf("easeout")?i=t?a.easeIn:a.easeOut:-1!==e.indexOf("easein")&&(i=t?a.easeOut:a.easeIn)),i);var i,a},transition:function(e,t,i,a){var s=ie.extend({},e);return ie.each({de:"delay",rotate:"rotation",rotateX:"rotationX",rotateY:"rotationY"},function(e,t){e in s&&(s[t]=s[e],delete s[e])}),"after"===i?s.scaleX=s.scaleY=s.scaleZ=1:s.scale3d!==a&&(s.scaleX=s.scaleY=s.scaleZ=s.scale3d,delete s.scale3d),s.delay&&(s.delay="after"===i?s.delay/1e3:s.delay),void 0===t&&(t="easeInOutQuart"),s.ease=J.functions.convert.easing(t),s},properties:function(e,t){if("string"==typeof e)return J.functions.convert._properties(e,t);if("object"!=typeof e)return e;for(var i in e)e[i]=J.functions.convert._properties(e[i],t);return e},_properties:function(e,t){if(-1!==["enable","enabled","true"].indexOf(e))return!0;if(-1!==["disable","disabled","false","undefined","null"].indexOf(e))return!1;if("string"!=typeof e||-1===e.indexOf(J.defaults.init.staggerSplitChar)||e.charAt(0)===J.defaults.init.openingBracket)return t?""+parseInt(e)=="NaN"?0:parseInt(e):ie.isNumeric(e)?parseFloat(e):e;for(var i=e.split(J.defaults.init.staggerSplitChar),a=[],s=0;s<i.length;s++)a[s]=ie.isNumeric(i[s])?parseFloat(ie.trim(i[s])):ie.trim(i[s]);return a},oldProperties:function(i){return ie.each({firstLayer:"firstSlide",loops:"cycles",forceLoopNum:"forceCycles",layersContainer:"layersContainerWidth",sublayerContainer:"layersContainerWidth",randomSlideshow:"shuffleSlideshow"},function(e,t){e in i&&(i[t]=i[e],delete i[e])}),i},randomProperties:function(e,t,i,a){var i=i||!1,a=a||!!i&&i.data(J.defaults.init.dataKey),s="Width",r=!1;-1===t.indexOf("height")&&-1===t.indexOf("top")&&-1===t.indexOf("y")||(s="Height"),-1===t.indexOf("duration")&&-1===t.indexOf("delay")&&-1===t.indexOf("start")&&-1===t.indexOf("scale")&&-1===t.indexOf("opacity")&&-1===t.indexOf("rotat")&&-1===t.indexOf("skew")||(r=!0),-1!==e.indexOf("random")&&-1!==e.indexOf("(")&&-1!==e.indexOf(",")&&-1!==e.indexOf(")")?e=e.split("(")[1].split(")")[0].replace(",",J.defaults.init.rangeSplitChar):e.charAt(0)===J.defaults.init.openingBracket&&e.charAt(e.length-1)===J.defaults.init.closingBracket&&(e=e.substring(1,e.length-1)),e=e.replace(/,/g,".").replace(/٫/g,".");var o,n=-1===t.indexOf("scale")&&-1===t.indexOf("opacity")?1:100,l=e;return-1!==e.indexOf(J.defaults.init.randomSplitChar)?l=(l=(o=e.split(J.defaults.init.randomSplitChar))[Math.floor(Math.random()*o.length)].trim()).charAt(0)===J.defaults.init.openingBracket&&l.charAt(l.length-1)===J.defaults.init.closingBracket?J.functions.convert.randomProperties(l,t,i,a):parseFloat(i?J.resize.getXY(i,a,l,s,r):l):-1!==e.indexOf(J.defaults.init.rangeSplitChar)&&((o=e.split(J.defaults.init.rangeSplitChar))[0]=parseFloat((i?J.resize.getXY(i,a,o[0],s,r):o[0])*n),o[1]=parseFloat((i?J.resize.getXY(i,a,o[1],s,r):o[1])*n),o.sort(function(e,t){return e-t}),l=Math.floor(Math.random()*(o[1]-o[0]+1)+o[0])/n),l},clipProperties:function(e,t,i,a){if(-1!==e.indexOf("polygon")&&-1===e.indexOf("clip")&&-1===e.indexOf("px")&&-1===e.indexOf(", "))return e;for(var s,r,o=e,n=-1===(e=-1!==e.indexOf("(")?ie.trim(e.split("(")[1].split(")")[0]):ie.trim(e)).indexOf(",")?e.split(" "):e.split(","),l=[["0%","0%"],["100%","0%"],["100%","100%"],["0%","100%"]],d=ie.isNumeric(t.original.width)?t.original.width:i.outerWidth(),c=ie.isNumeric(t.original.height)?t.original.height:i.outerHeight(),p=function(e){return Math.round(100*(e+Number.EPSILON))/100},u=a&&-1!==o.indexOf("rect")?0:100,h=0;h<n.length;h++)if(-1===(s=n[h].trim()).indexOf(" ")){if("number"==typeof parseInt(s))switch(0===parseInt(s)&&(s="0%"),h){case 0:-1===s.indexOf("%")&&(s=p(parseInt(s)/(c/100))+"%"),l[0][1]=s,l[1][1]=s;break;case 1:-1!==s.indexOf("%")?(l[1][0]=100-parseInt(s)+"%",l[2][0]=100-parseInt(s)+"%"):(-1===s.indexOf("%")&&(s=p(Math.abs(parseInt(s)/(d/100)-u))+"%"),l[1][0]=s,l[2][0]=s);break;case 2:-1!==s.indexOf("%")?(l[2][1]=100-parseInt(s)+"%",l[3][1]=100-parseInt(s)+"%"):(-1===s.indexOf("%")&&(s=p(Math.abs(parseInt(s)/(c/100)-u))+"%"),l[2][1]=s,l[3][1]=s);break;case 3:-1===s.indexOf("%")&&(s=p(parseInt(s)/(d/100))+"%"),l[0][0]=s,l[3][0]=s}}else-1===(r=s.split(" "))[0].indexOf("%")&&(r[0]=p(parseInt(r[0])/(d/100))+"%"),l[h][0]=r[0],-1===r[1].indexOf("%")&&(r[1]=p(parseInt(r[1])/(c/100))+"%"),l[h][1]=r[1];for(var m="polygon(",f=0;f<l.length;f++)m+=l[f].join(" "),f<l.length-1&&(m+=",");return m+=")"}},getSliderClosestParentElementWithNumericValueOfProperty:function(e){for(var t,i=$.parents().not(".ls-fullscreen-wrapper"),a=i.length,s=100,r=0;r<a;r++)if("auto"!==(t=window.getComputedStyle(i[r]).getPropertyValue(e))){if(-1!==t.indexOf("px")&&(0<parseInt(t)||J.slider.isPopup))return J.slider.$parentWithNumericWidthValue=ie(i[r]),ie(i[r]);-1!==t.indexOf("%")&&(s=s/100*parseInt(t),J.slider.$parentWithNumericWidthValuePercent=s)}},sortArray:function(e,t,i){var a,s,r,o,n,l,d,c=[],p=e*t;switch(i){case"forward":for(a=0;a<e;a++)for(s=0;s<t;s++)c.push(a+s*e);break;case"reverse":for(a=e-1;-1<a;a--)for(s=t-1;-1<s;s--)c.push(a+s*e);break;case"center":for(n=Math.floor(p/2),r=0;r<n;r++)c.push(r);for(o=n;0<=o;o--)c.push(o);break;case"edge":case"mirror":for(r=n=Math.floor(p/2);0<r;r--)c.push(r);for(o=0;o<=n;o++)c.push(o);break;case"radial-out":for(l=e/2,d=t/2,a=0;a<e;a++)for(s=0;s<t;s++)c.push(Math.floor(Math.abs(d-s-.5))+Math.floor(Math.abs(l-a-.5)));break;case"radial-in":for(l=e/2,d=t/2,a=0;a<e;a++)for(s=0;s<t;s++)c.push(Math.floor(d-Math.ceil(Math.abs(d-s-.5)))+Math.floor(l-Math.ceil(Math.abs(l-a-.5))))}return c},shuffleArray:function(e){for(var t,i,a=e.length;0!==a;)i=Math.floor(Math.random()*a),t=e[--a],e[a]=e[i],e[i]=t;return e},countProp:function(e){var t,i=0;for(t in e)e.hasOwnProperty(t)&&++i;return i},getURL:function(e){return e[0].currentSrc||(e.data("src")?e.data("src"):e.attr("src"))},getALT:function(e){return!!e.attr("alt")&&e.attr("alt")},setStates:function(e,t,i){if(e&&e.state){var a=J.slideshow.isPaused();if(i)e.state[t]=i;else for(var s in t)e.state[s]=t[s];i=J.slideshow.isPaused();e==J.slideshow&&(J.api.hasEvent("slideshowStateDidChange")&&J.api.triggerEvent("slideshowStateDidChange",J.api.eventData()),i!=a&&(i?J.api.hasEvent("slideshowDidPause")&&J.api.triggerEvent("slideshowDidPause",J.api.eventData()):(J.slideshow.start(),J.api.hasEvent("slideshowDidResume")&&J.api.triggerEvent("slideshowDidResume",J.api.eventData()))))}},clearTimers:function(){for(var e in J.timeouts)clearTimeout(J.timeouts[e]),delete J.timeouts[e];for(var t in J.intervals)clearInterval(J.intervals[t]),delete J.intervals[t]},clearTimelines:function(){J.transitions.timelines.set("all",function(e,t){e.pause().clear().kill(),delete J.transitions[t]}),ee.TweenMax.killTweensOf($.find(".ls-bg, .ls-layer, .ls-wrapper, .ls-curtile, .ls-nexttile").get())},resetSlideTimelines:function(){J.transitions.timelines.set("layers",function(e,t){e.pause().progress(0).clear().kill(),delete J.transitions[t]}),J.transitions.timelines.set("allforce",function(e,t){e.pause().progress(1).clear().kill(),delete J.transitions[t]}),$.find(".ls-layer:not(.ls-bg-video)").each(function(){var e=ie(this);if(void 0!==e.attr("data-ls-active")&&!1!==e.attr("data-ls-active")&&void 0!==e.attr("data-ls-static")&&!1!==e.attr("data-ls-static")&&parseInt(e.attr("data-ls-slidein"))!==J.slides.current.index)return!0;e=e.data(J.defaults.init.dataKey);e.loop._timeline&&(e.loop._timeline.stop().clear(),delete e.loop._timeline,ee.TweenMax.set(e.elements.$loopWrapper[0],e.reset.loopWrapperOnSlideChange)),ee.TweenMax.set(e.elements.$wrapper[0],e.reset.wrapperOnSlideChange)})},clearEvents:function(){M.add("body").add(document).add($).add($.find("*")).add("."+W).off("."+W+" .debug"+W+" .parallax"+W+" .scroll"+W),window._layerSlider.closePopupsOnEsc&&window._layerSlider.closePopupsOnEsc[W]&&delete window._layerSlider.closePopupsOnEsc[W],delete window._layerSliders[W],$.off()}},J.device={scroll:{keys:[32,33,34,35,36,37,38,39,40],disable:function(){window.addEventListener("scroll",this.preventDefault,{passive:!1,capture:!0}),window.addEventListener("wheel",this.preventDefault,{passive:!1,capture:!0}),window.addEventListener("mousewheel",this.preventDefault,{passive:!1,capture:!0}),window.addEventListener("touchmove",this.preventDefault,{passive:!1,capture:!0}),window.addEventListener("keydown",this.preventDefaultForScrollKeys,{capture:!0})},enable:function(){window.removeEventListener("scroll",this.preventDefault,{passive:!1,capture:!0}),window.removeEventListener("wheel",this.preventDefault,{passive:!1,capture:!0}),window.removeEventListener("mousewheel",this.preventDefault,{passive:!1,capture:!0}),window.removeEventListener("touchmove",this.preventDefault,{passive:!1,capture:!0}),window.removeEventListener("keydown",this.preventDefaultForScrollKeys,{capture:!0})},preventDefault:function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1},preventDefaultForScrollKeys:function(e){if(-1!==J.device.scroll.keys.indexOf(e.keyCode))return J.device.scroll.preventDefault(e),!1}},removeSelection:function(){window.getSelection?window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges():document.selection&&document.selection.empty()},fullscreen:{enter:function(){J.functions.setStates(J.slider,{inFullscreen:!0}),ie("body, html").addClass("ls-fullscreen"),J.slider.fullscreenWrapper.requestFullscreen(),$.trigger("mouseleave"),J.device.removeSelection()},exit:function(){J.functions.setStates(J.slider,{inFullscreen:!1}),J.resize.all(),ie("body, html").removeClass("ls-fullscreen"),J.device.removeSelection()},toggle:function(){J.device.fullscreen.element()?(J.device.fullscreen.exit(),document.exitFullscreen()):J.device.fullscreen.enter()},set:function(){J.o.allowFullscreen&&(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)&&($.wrap('<div class="ls-fullscreen-wrapper"></div>'),J.slider.$fullscreenWrapper=$.closest(".ls-fullscreen-wrapper"),J.slider.fullscreenWrapper=J.slider.$fullscreenWrapper[0],J.slider.$spacingWrapper=J.slider.$fullscreenWrapper,J.slider.fullscreenWrapper.requestFullscreen=J.slider.fullscreenWrapper.requestFullscreen||J.slider.fullscreenWrapper.webkitRequestFullscreen||J.slider.fullscreenWrapper.mozRequestFullScreen||J.slider.fullscreenWrapper.msRequestFullscreen,document.exitFullscreen=document.exitFullscreen||document.webkitExitFullscreen||document.mozCancelFullScreen||document.msExitFullscreen,ie(document).on("fullscreenchange."+W+" webkitfullscreenchange."+W+" mozfullscreenchange."+W+" msfullscreenchange."+W,function(){J.device.fullscreen.element()||J.device.fullscreen.exit()}),J.slider.$fullscreenWrapper.on("dblclick."+W,function(){J.device.fullscreen.toggle()}))},element:function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement}}},J.actions={do:function(t){var e,i,a=!1,s="";switch(t.action){case"scrollBelowProject":case"scrollToNextProject":case"scrollToPrevProject":case"scrollToElement":case"scrollToSelf":case"scrollToScenePosition":case"scrollToTimelinePosition":J.slider.isScene||$.addClass("ls-action-trigger"),J.slider.isScrollScene&&"scrollToTimelinePosition"===t.action&&(t.action="scrollToScenePosition",t.target="currentScene");var r,o,n,l=ie(".ls-wp-container:not(.ls-hidden):not([data-scene]), ls-scene-wrapper"),d=ie("ls-scene-wrapper, .ls-action-trigger"),c=ie([]),p=J.slider.isScene?J.slider.$spacingWrapper:$,u=d.length,h=d.index(p);if(J.slider.isScene||$.removeClass("ls-action-trigger"),"scrollToSelf"===t.action)v=J.slider.$spacingWrapper.offset().top+(t.offset||0);else if("scrollBelowProject"===t.action)v=J.slider.$spacingWrapper.offset().top+J.slider.$spacingWrapper.height()+(t.offset||0);else if("scrollToPrevProject"===t.action)0!==l.index(p)?(c=l.eq(l.index(p)-1),v=J.slider.get.scrollTop(c,t)):a="There’s no previous project to scroll to.";else if("scrollToNextProject"===t.action)l.index(p)<l.length-1?(c=l.eq(l.index(p)+1),v=J.slider.get.scrollTop(c,t)):a="There’s no next project to scroll to.";else if(-1!==t.action.indexOf("scrollToElement")){try{c=ie(t.selector.toString()).not(".ls-wp-container.ls-hidden")}catch(e){s=e}c.length?((n=c.closest("ls-scene-wrapper")).length&&(c=n),v=J.slider.get.scrollTop(c,t)):a='Couldn’t find the scroll target element "'+t.selector+'". Please verify the selector you’ve entered.'}else if("scrollToScenePosition"===t.action){switch(t.target){case"currentScene":J.slider.isScene?c=p:a="Current project is not a scene.";break;case"nextScene":h+1<u?c=ie(d[h+1]):a="There are no next scenes in the DOM.";break;case"previousScene":0<=h-1?c=ie(d[h-1]):a="There are no previous scenes in the DOM."}c.length&&(r=parseFloat(c.attr("data-scene-duration")),o=c.height(),n=(l=c.find(".ls-container")).height(),t.position=ie.trim(t.position)||"0ms",v=c.is('[data-scene="scroll"]')?(m=-1!==t.position.indexOf("%")||-1===t.position.indexOf("ms")?r*(Math.min(100,Math.max(0,parseFloat(t.position)))/100):Math.min(Math.max(0,parseFloat(t.position)/1e3),r),Math.round(parseFloat(c.offset().top)-parseFloat(l.css("top"))+m/r*(o-n))):(m=Math.min(100,Math.max(0,parseFloat(t.position)))/100,Math.round(parseFloat(c.offset().top)-parseFloat(l.css("top"))+(o-n)*m)))}else if("scrollToTimelinePosition"===t.action){var m=J.transitions._slideTimeline.duration(),f=m*(100*J.transitions._slideTimeline.progress()/100),g=0,g=-1!==t.position.indexOf("%")||-1===t.position.indexOf("ms")?m*parseFloat(t.position)/100:parseFloat(t.position)/1e3;switch(g=Math.abs(g),(t.position+"").charAt(0)){case"+":g=f+g;break;case"-":g=f-g}g=Math.max(Math.min(g,m),0)}a||(t.duration=ie.isNumeric(t.duration)?t.duration:1e3,"scrollToTimelinePosition"===t.action?J.transitions._slideTimeline.tweenTo(g,{ease:J.functions.convert.easing(t.easing)}).duration(t.duration/1e3):ee.TweenMax.to("html, body",t.duration/1e3,{scrollTop:v,ease:J.functions.convert.easing(t.easing)}));break;case"switchSlide":J.slideshow.changeTo(t.slide,!0,!0);break;case"nextSlide":case"prevSlide":case"lastSlide":case"firstSlide":case"stopSlideshow":case"startSlideshow":"nextSlide"===t.action&&(w="next"),"prevSlide"===t.action&&(w="prev"),"lastSlide"===t.action&&(w="last"),"firstSlide"===t.action&&(w="first"),"stopSlideshow"===t.action&&(w="stop"),"startSlideshow"===t.action&&(w="start"),J.navigation[w]("clicked");break;case"replaySlide":J.api.methods("replay");break;case"reverseSlide":J.api.methods("reverse",t.replay);break;case"resetSlide":J.api.methods("resetSlide");break;case"pauseProject":J.api.methods("pauseSlider");break;case"resumeProject":J.api.methods("resumeSlider");break;case"toggleProject":J.api.methods("toggleSlider");break;case"playMedia":J.media.functions.playActiveMedia();break;case"pauseMedia":J.media.functions.pauseActiveMedia();break;case"unmuteMedia":J.media.unmute.multipleMediaElements();break;case"openPopup":var y,v=ie('[data-ls-slug="'+t.popup+'"], [id^=layerslider_'+t.popup+"]").first(),w=v.data("lsSliderUID");v.length?((y=window._layerSliders[w].initializedPlugins.popup).plugin.settings.showOnce=!1,"opened"==y.state.is?t.toggle&&y.events.hide():t.slide?v.layerSlider("fastChangeTo",t.slide,function(){y.events.show()}):y.events.show()):(v={action:"ls_get_popup_markup",id:t.popup,slide:t.slide},ie.get(J.o.ajaxURL||window.ajaxurl||"/wp-admin/admin-ajax.php",v,function(e){ie(e).appendTo("body")}));break;case"launchPopups":for(i in window._layerSliders)(e=window._layerSliders[i]).initializedPlugins.popup&&e.api.methods("openPopup");break;case"closePopup":J.api.methods("closePopup");break;case"closeAllPopups":J.api.methods("closeAllPopups");break;case"jsFunction":try{window[t.function]()}catch(e){s=e,a="The browser thrown the following error after calling "+t.function+"() JavaScript function."}}a&&console.error('LayerSlider: Error while calling layer action "'+t.action+'". '+a+(""!==s?"\n\r\n\r":""),s)}},J.api={hasEvent:function(e,t){t=ie._data(t||L,"events");return!(!t||!t[e])},methods:function(e,t,i,a){if(!J.slider.isBusy())if("number"==typeof e)0<e&&e<J.slides.count+1&&e!=J.slides.current.index&&J.slideshow.changeTo(e,!0,!0);else switch(e){case"touchPrev":J.device.touchPrev=!0;case"previousSlide":case"prev":J.navigation.prev();break;case"touchNext":J.device.touchNext=!0;case"nextSlide":case"next":J.navigation.next();break;case"startSlideshow":case"start":J.navigation.start()}switch(e){case"openPopup":J.initializedPlugins.popup&&(t&&ie.isNumeric(t)?$.layerSlider("fastChangeTo",t,function(){J.initializedPlugins.popup.events.show()}):J.initializedPlugins.popup.events.show());break;case"launchPopups":J.actions.do("launchPopups");break;case"fastChangeTo":t&&ie.isNumeric(t)&&(J.slides.current.index!==t?(J.slideshow.forceFastChange=!0,J.slider.shouldResize=!0,i&&"function"==typeof i&&(J.slideshow.forceFastChangeCallback=i),J.slideshow.changeTo(t,!0,!0)):i&&i());break;case"resetScroll":J.slider.set.offset(),M.trigger("scroll.scroll"+W).trigger("touchmove.scroll"+W).trigger("scroll.parallax"+W).trigger("touchmove.parallax"+W);break;case"enableScene":J.slider.isScene&&(J.slider.$spacingWrapper.removeAttr("data-disabled-scene"),J.api.methods("resetScroll"));break;case"disableScene":J.slider.isScene&&(J.slider.$spacingWrapper.attr("data-disabled-scene",""),$.css({top:"auto",bottom:"auto"}),J.transitions.scrollscene.animate("start"),J.api.methods("resetScroll"));break;case"closePopup":J.initializedPlugins.popup&&J.initializedPlugins.popup.events.hide();break;case"closeAllPopups":ie('<div class="ls-close-all-popups-button"></div>').css("display","none").appendTo("body").trigger("click").remove();break;case"updateLayerData":t&&J.layers.update.data(t,i,a);break;case"redrawSlider":case"redraw":J.resize.all(),J.api.methods("resetScroll");break;case"replaySlide":case"replay":J.transitions._slideTimeline&&J.transitions._slideTimeline.restart();break;case"reverseSlide":case"reverse":J.transitions._slideTimeline&&(J.transitions._slideTimeline.reversed()?J.transitions._slideTimeline.play():J.transitions._slideTimeline.reverse(),t&&(J.transitions.layers.timeline.shouldReplay=!0));break;case"unmute":case"unmuteMedia":J.media.unmute.multipleMediaElements();break;case"stopSlideshow":case"stop":J.navigation.stop();break;case"pauseSlider":case"pause":t&&"performanceMode"===t&&J.functions.setStates(J.slideshow,{pausedByPerformance:!0}),J.transitions._slideTimeline&&!J.slider.isScrollScene&&J.transitions._slideTimeline.stop(),J.layers.get("active").each(function(){var e=ie(this).data(J.defaults.init.dataKey);e.loop._timeline&&e.loop._timeline.stop()}),J.transitions.layers.parallax.state.paused=!0,J.transitions.layers.scroll.state.paused=!0,J.media.functions.pauseActiveMedia(!0);break;case"resumePopup":J.layers.get("active").each(function(){J.media.functions.playIfAllowed(ie(this))}),J.transitions._slideTimeline&&(J.transitions._slideTimeline.timeScale()<.001&&J.transitions.layers.timeline.resume(),J.transitions._slideTimeline.play()),J.transitions._slideTransition&&J.transitions._slideTransition.play();break;case"resumeSlider":case"resume":J.transitions._slideTimeline&&(J.transitions._slideTimeline.timeScale()<.001&&J.transitions.layers.timeline.resume(),J.slider.isScrollScene||J.transitions._slideTimeline.play()),J.media.functions.playActiveMedia(!0),J.layers.get("active").each(function(){var e=ie(this).data(J.defaults.init.dataKey);e.loop._timeline&&e.loop._timeline.play()}),J.transitions.layers.parallax.state.paused=!1,J.transitions.layers.scroll.state.paused=!1,J.transitions._slideTransition?J.transitions._slideTransition.play():J.o.animateFirstSlide&&J.slideshow.firstStart&&J.slider.state.readyForStart&&(J.resize.layers({callback:J.api.resumeCallback}),J.api.resumeCallback=!1),t&&"performanceMode"===t&&J.functions.setStates(J.slideshow,{pausedByPerformance:!1});break;case"playMedia":J.media.functions.playActiveMedia();break;case"pauseMedia":J.media.functions.pauseActiveMedia();break;case"toggleSlider":case"toggle":J.slider.state.isPaused?($.layerSlider("resume"),J.slider.state.isPaused=!1):($.layerSlider("pause"),J.slider.state.isPaused=!0);break;case"reset":case"resetSlider":break;case"resetSlide":case"resetCurrentSlide":J.transitions.timelines.set("layers",function(e,t){e.progress(0),e.stop()}),J.media.functions.stop(!0);break;case"destroy":case"kill":if(J.slider.state.isLoaded){if(J.functions.clearTimers(),J.functions.clearTimelines(),J.layers.$all.removeData(),J.api.hasEvent("sliderDidDestroy")&&J.api.triggerEvent("sliderDidDestroy"),J.slider.state.sholudBeRemoved||t){if(J.slider.$hiddenWrapper.remove(),J.gui.timers.slidebar.$containerElement)for(var s=0;s<J.gui.timers.slidebar.$containerElement.length;s++)J.gui.timers.slidebar.$containerElement[s]instanceof jQuery&&J.gui.timers.slidebar.$containerElement[s].remove();J.api.hasEvent("sliderDidRemove")&&J.api.triggerEvent("sliderDidRemove");var r=J.slider.$spacingWrapper;r.closest(".ls-popup").length&&(r=r.closest(".ls-popup")).prev(".ls-popup-overlay").remove(),r.remove(),J.slider.$silentWrapper&&J.slider.$silentWrapper.remove()}J.functions.clearEvents(),window._layerSlider.removeSlider(W)}else J.functions.setStates(J.slider,{shouldBeDestroyed:!0,sholudBeRemoved:t||!1});J.slider.positionToViewport="under",J.device.scroll.enable()}},eventData:function(){return{data:J,userData:J.o,uid:W,target:L,slider:$,state:J.slider.state,isBusy:J.slider.isBusy(),event:{target:L},api:function(e,t,i,a){$.layerSlider(e,t,i,a)},navigation:{direction:J.navigation.direction},slides:{first:{index:J.slides.first.index,deeplink:J.slides.get.deeplink(J.slides.first.index),data:J.slides.first.data},prev:{index:J.slides.prev.index,deeplink:J.slides.get.deeplink(J.slides.prev.index),data:J.slides.prev.data},current:{index:J.slides.current.index||J.slides.first.index,deeplink:J.slides.get.deeplink(J.slides.current.index),layersIn:J.layers.get("current,in"),layersOut:J.layers.get("current,out"),timeline:J.transitions._slideTimeline,data:J.slides.current.data},next:{index:J.slides.next.index,deeplink:J.slides.get.deeplink(J.slides.next.index),layersIn:J.layers.get("next,in"),layersOut:J.layers.get("next,out"),data:J.slides.next.data},count:J.slides.count},slideChangeTimeline:J.transitions._slideTransition,slideshow:{state:J.slideshow.state,sequence:J.slideshow.sequence,direction:J.slideshow.direction,isPaused:J.slideshow.isPaused()},cycles:{max:J.o.cycles,current:J.slideshow.curCycle}}},triggerEvent:function(t,e){var i,a;try{i=e?(a=$.triggerHandler(t+".layerSlider",e),$.triggerHandler(t+".$",e)):(a=$.triggerHandler(t+".layerSlider"),$.triggerHandler(t+".$"))}catch(e){console.error('LayerSlider: Error while calling event "'+t+'":\n\r\n\r',e)}return null!=a?a:"undefinded"!=typeof i&&null!==i?i:void 0}},J.browser={isSafari:!!navigator.userAgent.match(/(iPhone|iPod|iPad|Safari)/i)&&!navigator.userAgent.match(/(Opera|Chrome|Edge)/i),isChrome:function(){var e=window.chrome,t=window.navigator,i=t.vendor,a=void 0!==window.opr,s=-1<t.userAgent.indexOf("Edge"),s=!!t.userAgent.match("CriOS")||null!=e&&"Google Inc."===i&&!1==a&&!1==s;return s},usesFileProtocol:-1!==document.location.href.indexOf("file://"),supports3D:function(){for(var e=ie("<div>"),t=!1,i=!1,a=["perspective","OPerspective","msPerspective","MozPerspective","WebkitPerspective"],s=["transformStyle","OTransformStyle","msTransformStyle","MozTransformStyle","WebkitTransformStyle"],r=a.length-1;0<=r;r--)t=t||void 0!==e[0].style[a[r]];for(var o=s.length-1;0<=o;o--)e.css("transform-style","preserve-3d"),i=i||"preserve-3d"==e[0].style[s[o]];return t&&void 0!==e[0].style[a[4]]&&(e.attr("id","ls-test3d").appendTo($),t=3===e[0].offsetHeight&&9===e[0].offsetLeft,e.remove()),t&&i},isOld:-1!==navigator.userAgent.indexOf("rident/5")},J.initializedPlugins={},J.timeouts={},J.intervals={},J.debug={options:{}},J.plugin={version:"7.12.2",release:"stable",releaseDate:"2024. 09. 03."},J.slider.load()}}(jQuery);
jQuery(function(){_initLayerSlider('#layerslider_6_1112370wcfwmq',{sliderVersion:'6.10.0',type:'fullwidth',responsiveUnder:1140,allowFullscreen:true,pauseOnHover:'enabled',cycles:1,twoWaySlideshow:true,skin:'fullwidth',sliderFadeInDuration:350,globalBGColor:'#dbdbdb',showCircleTimer:false,thumbnailNavigation:'disabled',useSrcset:true,skinsPath:'https://www.studiolegaleborzone.it/wp-content/themes/enfold/config-layerslider/LayerSlider/assets/static/layerslider/skins/',performanceMode:true});});
var layerSliderTransitions={t2d:[{n:"a b c",r:1,c:1,t:{de:0,sq:"fw"},tr:{tp:"sl",ea:"e5",du:1e3,di:"l"}},{n:"a b d",r:1,c:1,t:{de:0,sq:"fw"},tr:{tp:"sl",ea:"e5",du:1e3,di:"r"}},{n:"a b e",r:1,c:1,t:{de:0,sq:"fw"},tr:{tp:"sl",ea:"e5",du:1e3,di:"t"}},{n:"a b f",r:1,c:1,t:{de:0,sq:"fw"},tr:{tp:"sl",ea:"e5",du:1e3,di:"b"}},{n:"g",r:1,c:1,t:{de:0,sq:"fw"},tr:{tp:"f",ea:"e5",du:1e3,di:"l"}},{n:"h i j",r:[2,4],c:[4,7],t:{de:30,sq:"fw"},tr:{tp:"f",ea:"e10",du:1e3,di:"l"}},{n:"h i k",r:[2,4],c:[4,7],t:{de:30,sq:"rv"},tr:{tp:"f",ea:"e10",du:1e3,di:"l"}},{n:"h i l",r:[2,4],c:[4,7],t:{de:30,sq:"cf"},tr:{tp:"f",ea:"e10",du:1e3,di:"l"}},{n:"h i m",r:[2,4],c:[4,7],t:{de:30,sq:"cr"},tr:{tp:"f",ea:"e10",du:1e3,di:"l"}},{n:"h i n",r:[2,4],c:[4,7],t:{de:30,sq:"rnd"},tr:{tp:"f",ea:"e10",du:1e3,di:"l"}},{n:"o h b c",r:1,c:35,t:{de:25,sq:"rv"},tr:{tp:"f",ea:"e1",du:750,di:"l"}},{n:"o h b d",r:1,c:35,t:{de:25,sq:"fw"},tr:{tp:"f",ea:"e11",du:750,di:"l"}},{n:"o h b e",r:35,c:1,t:{de:25,sq:"cr"},tr:{tp:"f",ea:"e11",du:750,di:"l"}},{n:"o h b f",r:35,c:1,t:{de:25,sq:"cf"},tr:{tp:"f",ea:"e11",du:750,di:"l"}},{n:"o a b c",r:1,c:25,t:{de:30,sq:"rv"},tr:{tp:"sl",ea:"e11",du:350,di:"l"}},{n:"o a b d",r:1,c:25,t:{de:30,sq:"fw"},tr:{tp:"sl",ea:"e11",du:350,di:"r"}},{n:"o p b e",r:25,c:1,t:{de:30,sq:"cr"},tr:{tp:"sl",ea:"e11",du:350,di:"t"}},{n:"o a b f",r:25,c:1,t:{de:30,sq:"cf"},tr:{tp:"sl",ea:"e11",du:350,di:"b"}},{n:"a i q c n",r:[2,4],c:[4,7],t:{de:50,sq:"rnd"},tr:{tp:"sl",ea:"e10",du:500,di:"r"}},{n:"a i q d n",r:[2,4],c:[4,7],t:{de:50,sq:"rnd"},tr:{tp:"sl",ea:"e10",du:500,di:"l"}},{n:"a i q e n",r:[2,4],c:[4,7],t:{de:50,sq:"rnd"},tr:{tp:"sl",ea:"e10",du:500,di:"b"}},{n:"a i q f n",r:[2,4],c:[4,7],t:{de:50,sq:"rnd"},tr:{tp:"sl",ea:"e10",du:500,di:"t"}},{n:"a r i q r s",r:[2,4],c:[4,7],t:{de:50,sq:"rnd"},tr:{tp:"sl",ea:"e10",du:500,di:"rnd"}},{n:"a t q c u",r:[7,11],c:1,t:{de:100,sq:"fw"},tr:{tp:"sl",ea:"e11",du:600,di:"r"}},{n:"a t q c v",r:[7,11],c:1,t:{de:100,sq:"rv"},tr:{tp:"sl",ea:"e11",du:600,di:"r"}},{n:"a t q c n",r:[7,11],c:1,t:{de:100,sq:"rnd"},tr:{tp:"sl",ea:"e11",du:600,di:"r"}},{n:"a t q d u",r:[7,11],c:1,t:{de:100,sq:"fw"},tr:{tp:"sl",ea:"e11",du:600,di:"l"}},{n:"a t q d v",r:[7,11],c:1,t:{de:100,sq:"rv"},tr:{tp:"sl",ea:"e11",du:600,di:"l"}},{n:"a t q d n",r:[7,11],c:1,t:{de:100,sq:"rnd"},tr:{tp:"sl",ea:"e11",du:600,di:"l"}},{n:"a t b f q e u",r:[7,11],c:1,t:{de:100,sq:"fw"},tr:{tp:"sl",ea:"e11",du:600,di:"b"}},{n:"a t b f q e n",r:[7,11],c:1,t:{de:100,sq:"rnd"},tr:{tp:"sl",ea:"e11",du:600,di:"b"}},{n:"a t b e q f v",r:[7,11],c:1,t:{de:100,sq:"rv"},tr:{tp:"sl",ea:"e11",du:600,di:"t"}},{n:"a t b e q f n",r:[7,11],c:1,t:{de:100,sq:"rnd"},tr:{tp:"sl",ea:"e11",du:600,di:"t"}},{n:"a w q e u",r:1,c:[12,16],t:{de:75,sq:"fw"},tr:{tp:"sl",ea:"e11",du:600,di:"b"}},{n:"a w q e v",r:1,c:[12,16],t:{de:75,sq:"rv"},tr:{tp:"sl",ea:"e11",du:600,di:"b"}},{n:"a w q e n",r:1,c:[12,16],t:{de:75,sq:"rnd"},tr:{tp:"sl",ea:"e11",du:600,di:"b"}},{n:"a w q f u",r:1,c:[12,16],t:{de:75,sq:"fw"},tr:{tp:"sl",ea:"e11",du:600,di:"t"}},{n:"a w q f v",r:1,c:[12,16],t:{de:75,sq:"rv"},tr:{tp:"sl",ea:"e11",du:600,di:"t"}},{n:"a w q f n",r:1,c:[12,16],t:{de:75,sq:"rnd"},tr:{tp:"sl",ea:"e11",du:600,di:"t"}},{n:"a w b d q c u",r:1,c:[12,16],t:{de:75,sq:"fw"},tr:{tp:"sl",ea:"e11",du:600,di:"r"}},{n:"a w b d q c n",r:1,c:[12,16],t:{de:75,sq:"rnd"},tr:{tp:"sl",ea:"e11",du:600,di:"r"}},{n:"a w b c q d v",r:1,c:[12,16],t:{de:75,sq:"rv"},tr:{tp:"sl",ea:"e11",du:600,di:"l"}},{n:"a w b c q d n",r:1,c:[12,16],t:{de:75,sq:"rnd"},tr:{tp:"sl",ea:"e11",du:600,di:"l"}},{n:"h x a i q c n",r:[2,4],c:[4,7],t:{de:50,sq:"rnd"},tr:{tp:"mx",ea:"e10",du:500,di:"r"}},{n:"h x a i q d n",r:[2,4],c:[4,7],t:{de:50,sq:"rnd"},tr:{tp:"mx",ea:"e10",du:500,di:"l"}},{n:"h x a i q e n",r:[2,4],c:[4,7],t:{de:50,sq:"rnd"},tr:{tp:"mx",ea:"e10",du:500,di:"b"}},{n:"h x a i q f n",r:[2,4],c:[4,7],t:{de:50,sq:"rnd"},tr:{tp:"mx",ea:"e10",du:500,di:"t"}},{n:"h x a r i q r s",r:[2,4],c:[4,7],t:{de:50,sq:"rnd"},tr:{tp:"mx",ea:"e10",du:500,di:"rnd"}},{n:"h x a i b y u",r:[2,4],c:[4,7],t:{de:50,sq:"fw"},tr:{tp:"mx",ea:"e10",du:500,di:"tl"}},{n:"h x a i b z v",r:[2,4],c:[4,7],t:{de:50,sq:"rv"},tr:{tp:"mx",ea:"e10",du:500,di:"br"}},{n:"h x a i b A n",r:[2,4],c:[4,7],t:{de:50,sq:"rnd"},tr:{tp:"mx",ea:"e10",du:500,di:"tr"}},{n:"h x a i b B n",r:[2,4],c:[4,7],t:{de:50,sq:"rnd"},tr:{tp:"mx",ea:"e10",du:500,di:"bl"}},{n:"h x a t q c u",r:[7,11],c:1,t:{de:100,sq:"fw"},tr:{tp:"mx",ea:"e11",du:600,di:"r"}},{n:"h x a t q c v",r:[7,11],c:1,t:{de:100,sq:"rv"},tr:{tp:"mx",ea:"e11",du:600,di:"r"}},{n:"h x a t q c n",r:[7,11],c:1,t:{de:100,sq:"rnd"},tr:{tp:"mx",ea:"e11",du:600,di:"r"}},{n:"h x a t q d u",r:[7,11],c:1,t:{de:100,sq:"fw"},tr:{tp:"mx",ea:"e11",du:600,di:"l"}},{n:"h x a t q d v",r:[7,11],c:1,t:{de:100,sq:"rv"},tr:{tp:"mx",ea:"e11",du:600,di:"l"}},{n:"h x a t q d n",r:[7,11],c:1,t:{de:100,sq:"rnd"},tr:{tp:"mx",ea:"e11",du:600,di:"l"}},{n:"h x a t b f q e u",r:[7,11],c:1,t:{de:100,sq:"fw"},tr:{tp:"mx",ea:"e11",du:600,di:"b"}},{n:"h x a t b f q e n",r:[7,11],c:1,t:{de:100,sq:"rnd"},tr:{tp:"mx",ea:"e11",du:600,di:"b"}},{n:"h x a t b e q f v",r:[7,11],c:1,t:{de:100,sq:"rv"},tr:{tp:"mx",ea:"e11",du:600,di:"t"}},{n:"h x a t b e q f n",r:[7,11],c:1,t:{de:100,sq:"rnd"},tr:{tp:"mx",ea:"e11",du:600,di:"t"}},{n:"h x a w q e u",r:1,c:[12,16],t:{de:75,sq:"fw"},tr:{tp:"mx",ea:"e11",du:600,di:"b"}},{n:"h x a w q e v",r:1,c:[12,16],t:{de:75,sq:"rv"},tr:{tp:"mx",ea:"e11",du:600,di:"b"}},{n:"h x a w q e n",r:1,c:[12,16],t:{de:75,sq:"rnd"},tr:{tp:"mx",ea:"e11",du:600,di:"b"}},{n:"h x a w q f u",r:1,c:[12,16],t:{de:75,sq:"fw"},tr:{tp:"mx",ea:"e11",du:600,di:"t"}},{n:"h x a w q f v",r:1,c:[12,16],t:{de:75,sq:"rv"},tr:{tp:"mx",ea:"e11",du:600,di:"t"}},{n:"h x a w q f n",r:1,c:[12,16],t:{de:75,sq:"rnd"},tr:{tp:"mx",ea:"e11",du:600,di:"t"}},{n:"h x a w b d q c u",r:1,c:[12,16],t:{de:75,sq:"fw"},tr:{tp:"mx",ea:"e11",du:600,di:"r"}},{n:"h x a w b d q c n",r:1,c:[12,16],t:{de:75,sq:"rnd"},tr:{tp:"mx",ea:"e11",du:600,di:"r"}},{n:"h x a w b c q d v",r:1,c:[12,16],t:{de:75,sq:"rv"},tr:{tp:"mx",ea:"e11",du:600,di:"l"}},{n:"h x a w b c q d n",r:1,c:[12,16],t:{de:75,sq:"rnd"},tr:{tp:"mx",ea:"e11",du:600,di:"l"}},{n:"C",r:1,c:1,t:{de:0,sq:"fw"},tr:{tp:"mx",ea:"e5",du:750,di:"l",_s:.5}},{n:"C t",r:4,c:1,t:{de:50,sq:"fw"},tr:{tp:"mx",ea:"e5",du:750,di:"l",_s:.5}},{n:"C D",r:1,c:4,t:{de:50,sq:"fw"},tr:{tp:"mx",ea:"e5",du:750,di:"l",_s:.5}},{n:"C i E",r:3,c:4,t:{de:35,sq:"fw"},tr:{tp:"mx",ea:"e5",du:750,di:"l",_s:.5,_rY:90}},{n:"C i F",r:3,c:4,t:{de:35,sq:"fw"},tr:{tp:"mx",ea:"e5",du:750,di:"t",_s:.5,_rX:-90}},{n:"G i E",r:3,c:4,t:{de:15,sq:"fw"},tr:{tp:"mx",ea:"e5",du:750,di:"l",_s:.5,_rY:90}},{n:"G i F",r:3,c:4,t:{de:15,sq:"fw"},tr:{tp:"mx",ea:"e5",du:750,di:"t",_s:.5,_rX:-90}},{n:"C H t",r:4,c:1,t:{de:50,sq:"fw"},tr:{tp:"mx",ea:"e5",du:750,di:"r",_s:.5}},{n:"C H D",r:1,c:4,t:{de:50,sq:"fw"},tr:{tp:"mx",ea:"e5",du:750,di:"l",_s:.5}},{n:"I J b d",r:1,c:1,t:{de:0,sq:"fw"},tr:{tp:"sl",ea:"e10",du:750,di:"r",_rY:90}},{n:"I J b c",r:1,c:1,t:{de:0,sq:"fw"},tr:{tp:"sl",ea:"e10",du:750,di:"l",_rY:-90}},{n:"I J b f",r:1,c:1,t:{de:0,sq:"fw"},tr:{tp:"sl",ea:"e10",du:750,di:"b",_rX:-90}},{n:"I J b e",r:1,c:1,t:{de:0,sq:"fw"},tr:{tp:"sl",ea:"e10",du:750,di:"t",_rX:90}},{n:"I i b d",r:[3,4],c:[3,4],t:{de:55,sq:"fw"},tr:{tp:"f",ea:"e10",du:750,di:"l",_rY:90}},{n:"I i b c",r:[3,4],c:[3,4],t:{de:55,sq:"rv"},tr:{tp:"f",ea:"e10",du:750,di:"l",_rY:-90}},{n:"I i b f",r:[3,4],c:[3,4],t:{de:55,sq:"fw"},tr:{tp:"f",ea:"e10",du:750,di:"l",_rX:-90}},{n:"I i b e",r:[3,4],c:[3,4],t:{de:55,sq:"rv"},tr:{tp:"f",ea:"e10",du:750,di:"l",_rX:90}},{n:"I t b f",r:[6,12],c:1,t:{de:55,sq:"fw"},tr:{tp:"f",ea:"e10",du:750,di:"l",_rX:90}},{n:"I t b e",r:[6,12],c:1,t:{de:55,sq:"rv"},tr:{tp:"f",ea:"e10",du:750,di:"l",_rX:-90}},{n:"I D b d",r:1,c:[6,12],t:{de:55,sq:"fw"},tr:{tp:"f",ea:"e10",du:750,di:"l",_rY:-90}},{n:"I D b c",r:1,c:[6,12],t:{de:55,sq:"rv"},tr:{tp:"f",ea:"e10",du:750,di:"l",_rY:90}},{n:"K t b d",r:[3,10],c:1,t:{de:55,sq:"fw"},tr:{tp:"f",ea:"e10",du:750,di:"l",_rY:90}},{n:"K t b c",r:[3,10],c:1,t:{de:55,sq:"rv"},tr:{tp:"f",ea:"e10",du:750,di:"l",_rY:-90}},{n:"K D b f",r:1,c:[3,10],t:{de:55,sq:"fw"},tr:{tp:"f",ea:"e10",du:750,di:"l",_rX:-90}},{n:"K D b e",r:1,c:[3,10],t:{de:55,sq:"rv"},tr:{tp:"f",ea:"e10",du:750,di:"l",_rX:90}},{n:"K x L J b d",r:1,c:1,t:{de:75,sq:"fw"},tr:{tp:"mx",ea:"e10",du:750,di:"r",_s:.1,_r:-90,_rY:90}},{n:"K x L J b c",r:1,c:1,t:{de:75,sq:"fw"},tr:{tp:"mx",ea:"e10",du:750,di:"l",_s:.1,_r:90,_rY:-90}},{n:"K x L i b d",r:[3,4],c:[3,4],t:{de:55,sq:"fw"},tr:{tp:"mx",ea:"e10",du:750,di:"r",_r:-45}},{n:"K x L i b c",r:[3,4],c:[3,4],t:{de:55,sq:"fw"},tr:{tp:"mx",ea:"e10",du:750,di:"l",_r:-45}},{n:"K x L i b r",r:[3,4],c:[3,4],t:{de:55,sq:"rnd"},tr:{tp:"mx",ea:"e10",du:750,di:"rnd",_r:-45}},{n:"M J N",r:1,c:1,t:{de:0,sq:"fw"},tr:{tp:"f",ea:"e10",du:1500,di:"l",_s:.8}},{n:"M J b O",r:1,c:1,t:{de:0,sq:"fw"},tr:{tp:"f",ea:"e11",du:1500,di:"l",_s:1.2}},{n:"M i r",r:[3,4],c:[3,4],t:{de:35,sq:"rnd"},tr:{tp:"f",ea:"e10",du:750,di:"l",_s:.1}},{n:"M i b O r",r:[3,4],c:[3,4],t:{de:35,sq:"rnd"},tr:{tp:"f",ea:"e10",du:750,di:"l",_s:2}},{n:"M N x L i r",r:[3,4],c:[3,4],t:{de:35,sq:"rnd"},tr:{tp:"f",ea:"e10",du:750,di:"l",_s:.1,_r:90}},{n:"M x L i b O r",r:[3,4],c:[3,4],t:{de:35,sq:"rnd"},tr:{tp:"f",ea:"e10",du:750,di:"l",_s:2,_r:-90}},{n:"P i Q",r:3,c:4,t:{de:15,sq:"fw"},tr:{tp:"sl",ea:"e11",du:850,di:"tr"}},{n:"P t E",r:6,c:1,t:{de:0,sq:"fw"},tr:{tp:"mx",ea:"e10",du:750,di:"l"}},{n:"P t F",r:6,c:1,t:{de:0,sq:"fw"},tr:{tp:"mx",ea:"e10",du:750,di:"t"}},{n:"P D E",r:1,c:8,t:{de:0,sq:"fw"},tr:{tp:"mx",ea:"e10",du:750,di:"l"}},{n:"P D F",r:1,c:8,t:{de:0,sq:"fw"},tr:{tp:"mx",ea:"e10",du:750,di:"t"}},{n:"r R q d",r:10,c:1,t:{de:10,sq:"rnd"},tr:{du:1500,ea:"e11",tp:"sl",di:"l"}},{n:"r R q c",r:10,c:1,t:{de:10,sq:"rnd"},tr:{du:1500,ea:"e11",tp:"sl",di:"r"}},{n:"r R q e",r:1,c:15,t:{de:10,sq:"rnd"},tr:{du:1500,ea:"e11",tp:"sl",di:"b"}},{n:"r R q f",r:1,c:15,t:{de:10,sq:"rnd"},tr:{du:1500,ea:"e11",tp:"sl",di:"t"}},{n:"S b d",r:25,c:1,t:{de:0,sq:"rv"},tr:{tp:"sc",ea:"e11",du:2e3,di:"r"}},{n:"S b c",r:25,c:1,t:{de:0,sq:"rv"},tr:{tp:"sc",ea:"e11",du:2e3,di:"l"}},{n:"S b T",r:25,c:1,t:{de:0,sq:"rv"},tr:{tp:"sc",ea:"e11",du:2e3,di:"c"}},{n:"U b d",r:25,c:1,t:{de:0,sq:"fw"},tr:{tp:"sc",ea:"e11",du:2e3,di:"r"}},{n:"U b c",r:25,c:1,t:{de:0,sq:"fw"},tr:{tp:"sc",ea:"e11",du:2e3,di:"l"}},{n:"U b T",r:25,c:1,t:{de:0,sq:"fw"},tr:{tp:"sc",ea:"e11",du:2e3,di:"c"}},{n:"V b d",r:25,c:1,t:{de:0,sq:"c"},tr:{tp:"sc",ea:"e11",du:2e3,di:"r"}},{n:"V b c",r:25,c:1,t:{de:0,sq:"c"},tr:{tp:"sc",ea:"e11",du:2e3,di:"l"}},{n:"V b T",r:25,c:1,t:{de:0,sq:"c"},tr:{tp:"sc",ea:"e11",du:2e3,di:"c"}},{n:"W b d",r:25,c:1,t:{de:0,sq:"e"},tr:{tp:"sc",ea:"e11",du:2e3,di:"r"}},{n:"W b c",r:25,c:1,t:{de:0,sq:"e"},tr:{tp:"sc",ea:"e11",du:2e3,di:"l"}},{n:"W b T",r:25,c:1,t:{de:0,sq:"e"},tr:{tp:"sc",ea:"e11",du:2e3,di:"c"}},{n:"X b f",r:1,c:25,t:{de:0,sq:"rv"},tr:{tp:"sc",ea:"e11",du:2e3,di:"b"}},{n:"X b e",r:1,c:25,t:{de:0,sq:"rv"},tr:{tp:"sc",ea:"e11",du:2e3,di:"t"}},{n:"X b Y",r:1,c:25,t:{de:0,sq:"rv"},tr:{tp:"sc",ea:"e11",du:2e3,di:"m"}},{n:"Z b f",r:1,c:25,t:{de:0,sq:"fw"},tr:{tp:"sc",ea:"e11",du:2e3,di:"b"}},{n:"Z b e",r:1,c:25,t:{de:0,sq:"fw"},tr:{tp:"sc",ea:"e11",du:2e3,di:"t"}},{n:"Z b Y",r:1,c:25,t:{de:0,sq:"fw"},tr:{tp:"sc",ea:"e11",du:2e3,di:"m"}},{n:"0 b f",r:1,c:25,t:{de:0,sq:"c"},tr:{tp:"sc",ea:"e11",du:2e3,di:"b"}},{n:"0 b e",r:1,c:25,t:{de:0,sq:"c"},tr:{tp:"sc",ea:"e11",du:2e3,di:"t"}},{n:"0 b Y",r:1,c:25,t:{de:0,sq:"c"},tr:{tp:"sc",ea:"e11",du:2e3,di:"m"}},{n:"W b f",r:1,c:25,t:{de:0,sq:"e"},tr:{tp:"sc",ea:"e11",du:2e3,di:"b"}},{n:"W b e",r:1,c:25,t:{de:0,sq:"e"},tr:{tp:"sc",ea:"e11",du:2e3,di:"t"}},{n:"W b Y",r:1,c:25,t:{de:0,sq:"e"},tr:{tp:"sc",ea:"e11",du:2e3,di:"m"}},{n:"W E d q c",r:25,c:1,t:{de:0,sq:"mr"},tr:{tp:"sc",ea:"e11",du:2e3,di:"l"}},{n:"W E c q d",r:25,c:1,t:{de:0,sq:"mr"},tr:{tp:"sc",ea:"e11",du:2e3,di:"r"}},{n:"W F f q e",r:1,c:25,t:{de:0,sq:"mr"},tr:{tp:"sc",ea:"e11",du:2e3,di:"t"}},{n:"W F e q f",r:1,c:25,t:{de:0,sq:"mr"},tr:{tp:"sc",ea:"e11",du:2e3,di:"b"}},{n:"1 2 3 a b c",r:100,c:1,t:{de:3,sq:"c"},tr:{tp:"sl",ea:"e14",du:1e3,di:"l"}},{n:"1 2 3 a b d",r:100,c:1,t:{de:3,sq:"c"},tr:{tp:"sl",ea:"e14",du:1e3,di:"r"}},{n:"1 2 3 a b e",r:1,c:100,t:{de:3,sq:"c"},tr:{tp:"sl",ea:"e14",du:1e3,di:"t"}},{n:"1 2 3 a b f",r:1,c:100,t:{de:3,sq:"c"},tr:{tp:"sl",ea:"e14",du:1e3,di:"b"}},{n:"1 2 4 a b c",r:100,c:1,t:{de:3,sq:"e"},tr:{tp:"sl",ea:"e14",du:1e3,di:"l"}},{n:"1 2 4 a b d",r:100,c:1,t:{de:3,sq:"e"},tr:{tp:"sl",ea:"e14",du:1e3,di:"r"}},{n:"1 2 4 a b e",r:1,c:100,t:{de:3,sq:"e"},tr:{tp:"sl",ea:"e14",du:1e3,di:"t"}},{n:"1 2 4 a b f",r:1,c:100,t:{de:3,sq:"e"},tr:{tp:"sl",ea:"e14",du:1e3,di:"b"}},{n:"5 6 E",r:50,c:1,t:{de:5,sq:"c"},tr:{tp:"sl",ea:"e14",du:1e3,di:"rnd"}},{n:"5 6 F",r:1,c:50,t:{de:5,sq:"c"},tr:{tp:"sl",ea:"e14",du:1e3,di:"rnd"}},{n:"5 7 F",r:1,c:75,t:{de:3,sq:"rnd"},tr:{du:1e3,ea:"e13",tp:"sl",di:"b",_rX:0,_rY:0,_r:10,_s:1}},{rc:10,n:"5 i N",t:{de:50,sq:"ri"},tr:{tp:"sc",ea:"e4",du:500,di:"rnd",_s:0,_o:0}},{rc:10,n:"5 i O",t:{de:50,sq:"ro"},tr:{tp:"sc",ea:"e4",du:500,di:"rnd",_s:0,_o:0}},{rc:"150px",n:"5 i L",t:{de:10,sq:"e"},tr:{tp:"mx",ea:"e28",du:650,di:"rnd",_o:0,_r:20,_br:150}},{rc:"150px",n:"5 8 N 9",t:{de:5,sq:"rnd"},tr:{tp:"f",ea:"e25",du:1e3,di:"n",_s:0,_br:400,_o:0}},{rc:"100px",n:"5 aa i",t:{de:20,sq:"ri"},tr:{tp:"sl",ea:"e25",du:1e3,di:"rnd",_o:0,_s:0}},{n:"ba M q T E",r:1,c:70,t:{de:10,sq:"c"},tr:{tp:"mx",ea:"e13",du:1e3,di:"n",_sY:1.5,_o:0}},{n:"ba M q ca E",r:1,c:70,t:{de:10,sq:"e"},tr:{tp:"mx",ea:"e13",du:1e3,di:"n",_sY:1.5,_o:0}},{n:"ba M q T F",r:70,c:1,t:{de:10,sq:"c"},tr:{tp:"mx",ea:"e13",du:1e3,di:"n",_sX:1.5,_o:0}},{n:"ba M q ca F",r:70,c:1,t:{de:10,sq:"e"},tr:{tp:"mx",ea:"e13",du:1e3,di:"n",_sX:1.5,_o:0}},{n:"da q d",r:50,c:1,t:{de:5,sq:"fw"},tr:{du:1500,ea:"e11",tp:"sl",di:"l",_rX:0,_rY:0,_r:90,_s:1}},{n:"da q c",r:50,c:1,t:{de:5,sq:"fw"},tr:{du:1500,ea:"e11",tp:"sl",di:"r",_rX:0,_rY:0,_r:90,_s:1}},{n:"ea b c",r:50,c:1,t:{de:5,sq:"rnd"},tr:{du:1500,ea:"e26",tp:"sl",di:"l",_rX:0,_rY:0,_r:0,_s:1}},{n:"ea b d",r:50,c:1,t:{de:5,sq:"rnd"},tr:{du:1500,ea:"e26",tp:"sl",di:"r",_rX:0,_rY:0,_r:0,_s:1}},{n:"ea b f",r:1,c:50,t:{de:5,sq:"rnd"},tr:{du:1500,ea:"e26",tp:"sl",di:"b",_rX:0,_rY:0,_r:0,_s:1}},{n:"ea b e",r:1,c:50,t:{de:5,sq:"rnd"},tr:{du:1500,ea:"e26",tp:"sl",di:"t",_rX:0,_rY:0,_r:0,_s:1}},{n:"fa b c",r:50,c:1,t:{de:5,sq:"fw"},tr:{du:1500,ea:"e31",tp:"sl",di:"l",_rX:0,_rY:0,_r:0,_s:1}},{n:"fa b d",r:50,c:1,t:{de:5,sq:"fw"},tr:{du:1500,ea:"e31",tp:"sl",di:"r",_rX:0,_rY:0,_r:0,_s:1}},{n:"fa b f",r:1,c:50,t:{de:5,sq:"fw"},tr:{du:1500,ea:"e31",tp:"sl",di:"b",_rX:0,_rY:0,_r:0,_s:1}},{n:"fa b e",r:1,c:50,t:{de:5,sq:"fw"},tr:{du:1500,ea:"e31",tp:"sl",di:"t",_rX:0,_rY:0,_r:0,_s:1}}],t3d:[{n:"ga J q c ha",r:1,c:1,t:{de:75,sq:"fw"},an:{tr:{_rY:91},ea:"e9",du:1e3,di:"h"},af:{tr:{_rY:180},ea:"e10",du:1e3,di:"h"}},{n:"ga J q d ha",r:1,c:1,t:{de:75,sq:"fw"},an:{tr:{_rY:-91},ea:"e9",du:1e3,di:"h"},af:{tr:{_rY:-180},ea:"e10",du:1e3,di:"h"}},{n:"ga J q e ha",r:1,c:1,t:{de:75,sq:"fw"},an:{tr:{_rX:-91},ea:"e9",du:800,di:"v"},af:{tr:{_rX:-180},ea:"e10",du:800,di:"v"}},{n:"ga J q f ha",r:1,c:1,t:{de:75,sq:"fw"},an:{tr:{_rX:91},ea:"e9",du:800,di:"v"},af:{tr:{_rX:180},ea:"e10",du:800,di:"v"}},{n:"ga i q c ha",r:[2,4],c:[4,7],t:{de:75,sq:"fw"},an:{tr:{_rY:180},ea:"e11",du:1e3,di:"h"}},{n:"ga i q d ha",r:[2,4],c:[4,7],t:{de:75,sq:"rv"},an:{tr:{_rY:-180},ea:"e11",du:1e3,di:"h"}},{n:"ga i q e ha",r:[2,4],c:[4,7],t:{de:75,sq:"cf"},an:{tr:{_rX:-180},ea:"e11",du:1e3,di:"v"}},{n:"ga i q f ha",r:[2,4],c:[4,7],t:{de:75,sq:"cr"},an:{tr:{_rX:180},ea:"e11",du:1e3,di:"v"}},{n:"E ga i r ha",r:[2,4],c:[4,7],t:{de:75,sq:"rnd"},an:{tr:{_rY:180},ea:"e11",du:1300,di:"h"}},{n:"F ga i r ha",r:[2,4],c:[4,7],t:{de:75,sq:"rnd"},an:{tr:{_rX:180},ea:"e11",du:1300,di:"v"}},{n:"M x ga i q c ha",r:[2,4],c:[4,7],t:{de:75,sq:"fw"},be:{tr:{_s3:.95},du:450,ea:"e14"},an:{tr:{_rY:180},ea:"e29",du:1e3,di:"h"},af:{du:350,ea:"e29"}},{n:"M x ga i q d ha",r:[2,4],c:[4,7],t:{de:75,sq:"rv"},be:{tr:{_s3:.95},du:450,ea:"e14"},an:{tr:{_rY:-180},ea:"e29",du:1e3,di:"h"},af:{du:350,ea:"e29"}},{n:"M x ga i q e ha",r:[2,4],c:[4,7],t:{de:75,sq:"cf"},be:{tr:{_s3:.95},du:450,ea:"e14"},an:{tr:{_rX:-180},ea:"e29",du:1e3,di:"v"},af:{du:350,ea:"e29"}},{n:"M x ga i q f ha",r:[2,4],c:[4,7],t:{de:75,sq:"cr"},be:{tr:{_s3:.95},du:450,ea:"e14"},an:{tr:{_rX:180},ea:"e29",du:1e3,di:"v"},af:{du:350,ea:"e29"}},{n:"M x E ga i r ha",r:[2,4],c:[4,7],t:{de:75,sq:"rnd"},be:{tr:{_s3:.95,_rX:30},du:450,ea:"e14"},an:{tr:{_rY:180,_rX:-30},ea:"e29",du:1300,di:"h"},af:{tr:{_rX:0},du:350,ea:"e29"}},{n:"M x F ga i r ha",r:[2,4],c:[4,7],t:{de:75,sq:"rnd"},be:{tr:{_s3:.95,_rY:-15},du:450,ea:"e14"},an:{tr:{_rX:180,_rY:15},ea:"e29",du:1300,di:"v"},af:{tr:{_rY:0},du:350,ea:"e29"}},{n:"ga t q c ha",r:[5,9],c:1,t:{de:75,sq:"fw"},an:{tr:{_rY:180},ea:"e11",du:1500,di:"h"}},{n:"ga t q d ha",r:[5,9],c:1,t:{de:75,sq:"fw"},an:{tr:{_rY:-180},ea:"e11",du:1500,di:"h"}},{n:"ga t q e ha",r:[5,9],c:1,t:{de:75,sq:"fw"},an:{tr:{_rX:-180},ea:"e11",du:1e3,di:"v"}},{n:"ga t q f ha",r:[5,9],c:1,t:{de:75,sq:"rv"},an:{tr:{_rX:180},ea:"e11",du:1e3,di:"v"}},{n:"E ga t r ha",r:[5,9],c:1,t:{de:75,sq:"rnd"},an:{tr:{_rY:180},ea:"e11",du:1500,di:"h"}},{n:"F ga t r ha",r:[5,9],c:1,t:{de:75,sq:"rnd"},an:{tr:{_rX:-180},ea:"e11",du:1500,di:"v"}},{n:"F ga t r ia",r:[3,7],c:1,t:{de:150,sq:"rnd"},an:{tr:{_rX:-540},ea:"e11",du:2e3,di:"v"}},{n:"M x ga t q c ha",r:[5,9],c:1,t:{de:55,sq:"fw"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rY:180},ea:"e29",du:1200,di:"h"},af:{tr:{de:200},ea:"e28",du:600}},{n:"M x ga t q d ha",r:[5,9],c:1,t:{de:55,sq:"rv"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rY:-180},ea:"e29",du:1200,di:"h"},af:{tr:{de:200},ea:"e28",du:600}},{n:"M x ga t q e ha",r:[5,9],c:1,t:{de:55,sq:"fw"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rX:-180},ea:"e11",du:600,di:"v"},af:{tr:{de:200},ea:"e28",du:600}},{n:"M x ga t q f ha",r:[5,9],c:1,t:{de:55,sq:"rv"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rX:180},ea:"e11",du:600,di:"v"},af:{tr:{de:200},ea:"e28",du:600}},{n:"M x E ga t r ha",r:[5,9],c:1,t:{de:55,sq:"rnd"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rY:180},ea:"e29",du:1200,di:"h"},af:{tr:{de:200},ea:"e28",du:600}},{n:"M x F ga t r ha",r:[5,9],c:1,t:{de:55,sq:"rnd"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rX:-180},ea:"e29",du:600,di:"v"},af:{tr:{de:200},ea:"e28",du:600}},{n:"ga w q c ha",r:1,c:[5,9],t:{de:75,sq:"fw"},an:{tr:{_rY:180},ea:"e11",du:1500,di:"h"}},{n:"ga w q d ha",r:1,c:[5,9],t:{de:75,sq:"fw"},an:{tr:{_rY:-180},ea:"e11",du:1500,di:"h"}},{n:"ga w q e ha",r:1,c:[5,9],t:{de:75,sq:"fw"},an:{tr:{_rX:-180},ea:"e11",du:1e3,di:"v"}},{n:"ga w q f ha",r:1,c:[5,9],t:{de:75,sq:"rv"},an:{tr:{_rX:180},ea:"e11",du:1e3,di:"v"}},{n:"E ga w r ha",r:1,c:[5,9],t:{de:75,sq:"rnd"},an:{tr:{_rY:180},ea:"e11",du:1500,di:"h"}},{n:"F ga w r ha",r:1,c:[5,9],t:{de:75,sq:"rnd"},an:{tr:{_rX:-180},ea:"e11",du:1500,di:"v"}},{n:"E ga w r ia",r:1,c:[4,9],t:{de:150,sq:"rnd"},an:{tr:{_rY:540},ea:"e11",du:2e3,di:"h"}},{n:"M x ga w q c ha",r:1,c:[7,11],t:{de:55,sq:"fw"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rY:180},ea:"e11",du:600,di:"h"},af:{tr:{de:200},ea:"e28",du:600}},{n:"M x ga w q d ha",r:1,c:[7,11],t:{de:55,sq:"rv"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rY:-180},ea:"e11",du:600,di:"h"},af:{tr:{de:200},ea:"e28",du:600}},{n:"M x ga w q e ha",r:1,c:[7,11],t:{de:55,sq:"fw"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rX:-180},ea:"e29",du:1200,di:"v"},af:{tr:{de:200},ea:"e28",du:600}},{n:"M x ga w q f ha",r:1,c:[7,11],t:{de:75,sq:"rv"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rX:180},ea:"e29",du:1200,di:"v"},af:{tr:{de:200},ea:"e28",du:600}},{n:"M x E ga w r ha",r:1,c:[7,11],t:{de:75,sq:"rnd"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rY:180},ea:"e29",du:600,di:"h"},af:{tr:{de:200},ea:"e28",du:600}},{n:"M x F ga w r ha",r:1,c:[7,11],t:{de:75,sq:"rnd"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rX:-180},ea:"e29",du:1200,di:"v"},af:{tr:{de:200},ea:"e28",du:600}},{n:"ja ka M x ga q c ha",r:1,c:[7,11],t:{de:75,sq:"fw"},be:{tr:{_s3:.85,_rX:-30},du:600,ea:"e10"},an:{tr:{_rX:-30,_rY:180},ea:"e11",du:1e3,di:"h"},af:{tr:{_rX:0,de:200},ea:"e10",du:600}},{n:"ja ka M x ga q d ha",r:1,c:[7,11],t:{de:75,sq:"rv"},be:{tr:{_s3:.85,_rX:-30},du:600,ea:"e10"},an:{tr:{_rX:30,_rY:-180},ea:"e11",du:1e3,di:"h"},af:{tr:{_rX:0,de:200},ea:"e10",du:600}},{n:"I la q c ma",r:1,c:1,t:{de:75,sq:"fw"},an:{tr:{_rY:90},ea:"e11",du:1500,di:"h"}},{n:"I la q d ma",r:1,c:1,t:{de:75,sq:"fw"},an:{tr:{_rY:-90},ea:"e11",du:1500,di:"h"}},{n:"I la q e ma",r:1,c:1,t:{de:75,sq:"fw"},an:{tr:{_rX:-90},ea:"e11",du:1500,di:"v"}},{n:"I la q f ma",r:1,c:1,t:{de:75,sq:"fw"},an:{tr:{_rX:90},ea:"e11",du:1500,di:"v"}},{n:"M x I la q c ma",r:1,c:1,t:{de:75,sq:"rnd"},an:{tr:{_s3:.8,_r:7,_rX:10,_rY:45},ea:"e5",du:800,di:"h"},af:{tr:{_r:0,_rX:0,_rY:90},du:800,ea:"e5"}},{n:"M x I la q d ma",r:1,c:1,t:{de:75,sq:"rnd"},an:{tr:{_s3:.8,_r:-7,_rX:10,_rY:-45},ea:"e5",du:800,di:"h"},af:{tr:{_r:0,_rX:0,_rY:-90},du:800,ea:"e5"}},{n:"M x I na q c ma",r:[2,4],c:[4,7],t:{de:75,sq:"fw"},be:{tr:{_s3:.85},du:450,ea:"e14"},an:{tr:{_rY:90},ea:"e29",du:1e3,di:"h"},af:{du:350,ea:"e29"}},{n:"M x I na q d ma",r:[2,4],c:[4,7],t:{de:75,sq:"rv"},be:{tr:{_s3:.85},du:450,ea:"e14"},an:{tr:{_rY:-90},ea:"e29",du:1e3,di:"h"},af:{du:350,ea:"e29"}},{n:"M x I na q e ma",r:[2,4],c:[4,7],t:{de:75,sq:"cf"},be:{tr:{_s3:.85},du:450,ea:"e14"},an:{tr:{_rX:-90},ea:"e29",du:1e3,di:"v"},af:{du:350,ea:"e29"}},{n:"M x I na q f ma",r:[2,4],c:[4,7],t:{de:75,sq:"cr"},be:{tr:{_s3:.85},du:450,ea:"e14"},an:{tr:{_rX:90},ea:"e29",du:1e3,di:"v"},af:{du:350,ea:"e29"}},{n:"M x E I na r ma",r:[2,4],c:[4,7],t:{de:75,sq:"rnd"},be:{tr:{_s3:.75,_rX:-15},du:700,ea:"e14"},an:{tr:{_rY:75,_rX:15},ea:"e29",du:700,di:"h"},af:{tr:{_rY:90,_rX:0},du:700,ea:"e29"}},{n:"M x F I na r ma",r:[2,4],c:[4,7],t:{de:75,sq:"rnd"},be:{tr:{_s3:.75,_rY:15},du:700,ea:"e14"},an:{tr:{_rX:75,_rY:-15},ea:"e29",du:700,di:"v"},af:{tr:{_rX:90,_rY:0},du:700,ea:"e29"}},{n:"I t q c ma",r:[5,9],c:1,t:{de:75,sq:"fw"},an:{tr:{_rY:90},ea:"e11",du:1500,di:"h"}},{n:"I t q d ma",r:[5,9],c:1,t:{de:75,sq:"fw"},an:{tr:{_rY:-90},ea:"e11",du:1500,di:"h"}},{n:"E I t r ma",r:[5,9],c:1,t:{de:75,sq:"rnd"},an:{tr:{_rY:90},ea:"e11",du:1500,di:"h"}},{n:"M x I t q c ma",r:[5,9],c:1,t:{de:75,sq:"fw"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rY:87},ea:"e29",du:1e3,di:"h"},af:{tr:{de:200,_rY:90},ea:"e28",du:600}},{n:"M x I t q d ma",r:[5,9],c:1,t:{de:75,sq:"rv"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rY:-90},ea:"e29",du:1e3,di:"h"},af:{tr:{de:200},ea:"e28",du:600}},{n:"M x I t q e ma",r:[5,9],c:1,t:{de:75,sq:"fw"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rX:-90},ea:"e29",du:1e3,di:"v"},af:{tr:{de:200},ea:"e28",du:600}},{n:"M x I t q f ma",r:[5,9],c:1,t:{de:75,sq:"rv"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rX:90},ea:"e29",du:1e3,di:"v"},af:{tr:{de:200},ea:"e28",du:600}},{n:"M x E I t r ma",r:[5,9],c:1,t:{de:75,sq:"rnd"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rY:90},ea:"e29",du:1e3,di:"h"},af:{tr:{de:200},ea:"e28",du:600}},{n:"M x F I t r ma",r:[5,9],c:1,t:{de:75,sq:"rnd"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rX:-90},ea:"e29",du:1e3,di:"v"},af:{tr:{de:200},ea:"e28",du:600}},{n:"M x E I ja t q c ma",r:[7,11],c:1,t:{de:75,sq:"fw"},an:{tr:{_s3:.85,_rY:45},ea:"e14",du:1e3,di:"h"},af:{tr:{_rY:90},ea:"e14",du:1e3}},{n:"M x E I ja t q d ma",r:[7,11],c:1,t:{de:75,sq:"rv"},an:{tr:{_s3:.85,_rY:-45},ea:"e14",du:1e3,di:"h"},af:{tr:{_rY:-90},ea:"e14",du:1e3}},{n:"I w q e ma",r:1,c:[5,9],t:{de:75,sq:"fw"},an:{tr:{_rX:-90},ea:"e11",du:1e3,di:"v"}},{n:"I w q f ma",r:1,c:[5,9],t:{de:75,sq:"rv"},an:{tr:{_rX:90},ea:"e11",du:1e3,di:"v"}},{n:"F I w r ma",r:1,c:[5,9],t:{de:75,sq:"rnd"},an:{tr:{_rX:-90},ea:"e11",du:1e3,di:"v"}},{n:"M x I w q e ma",r:1,c:[7,11],t:{de:75,sq:"fw"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rX:-90},ea:"e29",du:1e3,di:"v"},af:{tr:{de:200},ea:"e28",du:600}},{n:"M x I w q f ma",r:1,c:[7,11],t:{de:75,sq:"rv"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rX:90},ea:"e29",du:1e3,di:"v"},af:{tr:{de:200},ea:"e28",du:600}},{n:"M x I w q c ma",r:1,c:[7,11],t:{de:75,sq:"fw"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rY:90},ea:"e29",du:1e3,di:"h"},af:{tr:{de:200},ea:"e28",du:600}},{n:"M x I w q d ma",r:1,c:[7,11],t:{de:75,sq:"rv"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rY:-90},ea:"e29",du:1e3,di:"h"},af:{tr:{de:200},ea:"e28",du:600}},{n:"M x E I w r ma",r:1,c:[7,11],t:{de:75,sq:"rnd"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rY:90},ea:"e29",du:1e3,di:"h"},af:{tr:{de:200},ea:"e28",du:600}},{n:"M x F I w r ma",r:1,c:[7,11],t:{de:75,sq:"rnd"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rX:-90},ea:"e29",du:1e3,di:"v"},af:{tr:{de:200},ea:"e28",du:600}},{n:"M x F I ja w q c ma",r:1,c:[7,11],t:{de:75,sq:"fw"},an:{tr:{_s3:.85,_rX:45},ea:"e14",du:1e3,di:"v"},af:{tr:{_rX:90},ea:"e14",du:1e3}},{n:"M x F I ja w q d ma",r:1,c:[7,11],t:{de:75,sq:"rv"},an:{tr:{_s3:.85,_rX:-45},ea:"e14",du:1e3,di:"v"},af:{tr:{_rX:-90},ea:"e14",du:1e3}},{n:"ga la q c oa pa qa",r:1,c:1,t:{de:75,sq:"fw",d:"la"},an:{tr:{_rY:180},ea:"e11",du:1500,di:"h"}},{n:"ga la q d oa pa qa",r:1,c:1,t:{de:75,sq:"fw",d:"la"},an:{tr:{_rY:-180},ea:"e11",du:1500,di:"h"}},{n:"ga la q e oa pa qa",r:1,c:1,t:{de:75,sq:"fw",d:"la"},an:{tr:{_rX:-180},ea:"e11",du:1500,di:"v"}},{n:"ga la q f oa pa qa",r:1,c:1,t:{de:75,sq:"fw",d:"la"},an:{tr:{_rX:180},ea:"e11",du:1500,di:"v"}},{n:"M x ga na q c oa pa qa",r:[2,4],c:[4,7],t:{de:75,sq:"fw",d:"la"},be:{tr:{_s3:.85},du:450,ea:"e14"},an:{tr:{_rY:180},ea:"e29",du:1e3,di:"h"},af:{du:350,ea:"e29"}},{n:"M x ga na q d oa pa qa",r:[2,4],c:[4,7],t:{de:75,sq:"rv",d:"la"},be:{tr:{_s3:.85},du:450,ea:"e14"},an:{tr:{_rY:-180},ea:"e29",du:1e3,di:"h"},af:{du:350,ea:"e29"}},{n:"M x ga na q e oa pa qa",r:[2,4],c:[4,7],t:{de:75,sq:"cf",d:"la"},be:{tr:{_s3:.85},du:450,ea:"e14"},an:{tr:{_rX:-180},ea:"e29",du:1e3,di:"v"},af:{du:350,ea:"e29"}},{n:"M x ga na q f oa pa qa",r:[2,4],c:[4,7],t:{de:75,sq:"cr",d:"la"},be:{tr:{_s3:.85},du:450,ea:"e14"},an:{tr:{_rX:180},ea:"e29",du:1e3,di:"v"},af:{du:350,ea:"e29"}},{n:"M x E ga na r oa pa qa",r:[2,4],c:[4,7],t:{de:75,sq:"rnd",d:"la"},be:{tr:{_s3:.65},du:700,ea:"e14"},an:{tr:{_rY:180},ea:"e29",du:700,di:"h"},af:{du:700,ea:"e29"}},{n:"M x F ga na r oa pa qa",r:[2,4],c:[4,7],t:{de:75,sq:"rnd",d:"la"},be:{tr:{_s3:.65},du:700,ea:"e14"},an:{tr:{_rX:180},ea:"e29",du:700,di:"v"},af:{du:700,ea:"e29"}},{n:"M x ga t q c oa pa qa",r:[5,9],c:1,t:{de:65,sq:"fw",d:"la"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rY:180},ea:"e11",du:1200,di:"h"},af:{tr:{de:200},ea:"e10",du:400}},{n:"M x ga t q d oa pa qa",r:[5,9],c:1,t:{de:65,sq:"rv",d:"la"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rY:-180},ea:"e11",du:1200,di:"h"},af:{tr:{de:200},ea:"e10",du:400}},{n:"M x ga t q e oa pa qa",r:[5,9],c:1,t:{de:65,sq:"fw",d:"la"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rX:-180},ea:"e29",du:1e3,di:"v"},af:{tr:{de:200},ea:"e10",du:400}},{n:"M x ga t q f oa pa qa",r:[5,9],c:1,t:{de:65,sq:"rv",d:"la"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rX:180},ea:"e29",du:1e3,di:"v"},af:{tr:{de:200},ea:"e10",du:400}},{n:"M x E ga t r oa pa qa",r:[5,9],c:1,t:{de:65,sq:"rnd",d:"la"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rY:180},ea:"e11",du:1200,di:"h"},af:{tr:{de:200},ea:"e10",du:400}},{n:"M x F ga t r oa pa qa",r:[5,9],c:1,t:{de:65,sq:"rnd",d:"la"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rX:-180},ea:"e29",du:1e3,di:"v"},af:{tr:{de:200},ea:"e10",du:400}},{n:"M x ga w q e oa pa qa",r:1,c:[7,11],t:{de:65,sq:"fw",d:"la"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rX:-180},ea:"e11",du:1200,di:"v"},af:{tr:{de:200},ea:"e10",du:400}},{n:"M x ga w q f oa pa qa",r:1,c:[7,11],t:{de:65,sq:"rv",d:"la"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rX:180},ea:"e11",du:1200,di:"v"},af:{tr:{de:200},ea:"e10",du:400}},{n:"M x ga w q c oa pa qa",r:1,c:[7,11],t:{de:65,sq:"fw",d:"la"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rY:180},ea:"e29",du:1e3,di:"h"},af:{tr:{de:200},ea:"e10",du:400}},{n:"M x ga w q d oa pa qa",r:1,c:[7,11],t:{de:65,sq:"rv",d:"la"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rY:-180},ea:"e29",du:1e3,di:"h"},af:{tr:{de:200},ea:"e10",du:400}},{n:"M x E ga w r oa pa qa",r:1,c:[7,11],t:{de:65,sq:"rnd",d:"la"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rY:180},ea:"e29",du:1e3,di:"h"},af:{tr:{de:200},ea:"e10",du:400}},{n:"M x F ga w r oa pa qa",r:1,c:[7,11],t:{de:65,sq:"rnd",d:"la"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rX:-180},ea:"e11",du:1200,di:"v"},af:{tr:{de:200},ea:"e10",du:400}},{n:"ra L x h sa",r:1,c:1,t:{de:1,sq:"fw",d:"la"},be:{tr:{_s3:.65,_rY:-270},du:1500,ea:"e9"},an:{tr:{_s3:1,_rY:-540},ea:"e10",du:1500,di:"h"}},{n:"ta L x h sa",r:1,c:1,t:{de:1,sq:"fw",d:"la"},be:{tr:{_s3:.65,_rX:-270},du:1500,ea:"e9"},an:{tr:{_s3:1,_rX:-540},ea:"e10",du:1500,di:"v"}},{n:"ra L x h na",r:[2,3],c:[3,5],t:{de:50,sq:"rnd"},be:{tr:{_s3:.75},du:350,ea:"e9"},an:{tr:{_rY:-45,_rX:180},ea:"e11",du:1,di:"v"},af:{tr:{_rY:0},ea:"e10",du:1200}},{n:"ta L x h na",r:[2,3],c:[3,5],t:{de:50,sq:"rnd"},be:{tr:{_s3:.75},du:350,ea:"e9"},an:{tr:{_rX:-45,_rY:180},ea:"e11",du:1,di:"h"},af:{tr:{_rX:0},ea:"e10",du:1200}}]},_lsSwapObj=function(e){for(var r in e)e[e[r]]=r,delete e[r]},_lsConvTrProp=function(e,r){var d,a,t={af:"after",an:"animation",be:"before",c:"cols",d:"depth",de:"delay",di:"direction",du:"duration",ea:"easing",n:"name",r:"rows",sq:"sequence",t:"tile",tp:"type",tr:"transition",_br:"borderRadius",_o:"opacity",_r:"rotate",_rX:"rotateX",_rY:"rotateY",_s:"scale",_s3:"scale3d",_sX:"scaleX",_sY:"scaleY",_skX:"skewX",_skY:"skewY"},n={b:"bottom",bl:"bottomleft",br:"bottomright",c:"center",cf:"col-forward",cr:"col-reverse",e:"edge",f:"fade",fw:"forward",h:"horizontal",l:"left",la:"large",m:"middle",mr:"mirror",mx:"mixed",n:"none",r:"right",ri:"radial-in",rnd:"random",ro:"radial-out",rv:"reverse",sc:"scale",sl:"slide",t:"top",tl:"topleft",tr:"topright",v:"vertical",e1:"linear",e2:"swing",e3:"easeInQuad",e4:"easeOutQuad",e5:"easeInOutQuad",e6:"easeInCubic",e7:"easeOutCubic",e8:"easeInOutCubic",e9:"easeInQuart",e10:"easeOutQuart",e11:"easeInOutQuart",e12:"easeInQuint",e13:"easeOutQuint",e14:"easeInOutQuint",e15:"easeInSine",e16:"easeOutSine",e17:"easeInOutSine",e18:"easeInExpo",e19:"easeOutExpo",e20:"easeInOutExpo",e21:"easeInCirc",e22:"easeOutCirc",e23:"easeInOutCirc",e24:"easeInElastic",e25:"easeOutElastic",e26:"easeInOutElastic",e27:"easeInBack",e28:"easeOutBack",e29:"easeInOutBack",e30:"easeInBounce",e31:"easeOutBounce",e32:"easeInOutBounce"},s=function(e){for(var r in e)"object"==typeof e[r]&&s(e[r]),t[r]&&(d=t[r],a=e[r],n[e[r]]&&(a=n[e[r]]),e[d]=a,delete e[r])};return r?(_lsSwapObj(t),_lsSwapObj(n)):_lsConvTrNames(e),s(e),e},_lsConvTrNames=function(e,t){var n,s,u,c={sliding:"a",from:"b",right:"c",left:"d",bottom:"e",top:"f",crossfading:"g",fading:"h",tiles:"i",forward:"j",reverse:"k","col-forward":"l","col-reverse":"m","(random)":"n",smooth:"o",sliging:"p",to:"q",random:"r",directions:"s",rows:"t","(forward)":"u","(reverse)":"v",columns:"w",and:"x","top-left":"y","bottom-right":"z","top-right":"A","bottom-left":"B",carousel:"C",cols:"D",horizontal:"E",vertical:"F","carousel-mirror":"G",mirror:"H",turning:"I",tile:"J",flying:"K",rotating:"L",scaling:"M",in:"N",out:"O","mirror-sliding":"P",diagonal:"Q",slices:"R","top-scaling":"S",center:"T","bottom-scaling":"U","middle-scaling":"V","edge-scaling":"W","left-scaling":"X",middle:"Y","right-scaling":"Z","center-scaling":"0",pinched:"1",at:"2","edges,":"3","center,":"4",glitch:"5",slide:"6",spikes:"7",popping:"8",elastic:"9",mosaic:"aa",liquid:"ba",edges:"ca",tornado:"da",fluid:"ea",bounce:"fa",spinning:"ga","(180°)":"ha","(540°)":"ia",drunk:"ja",colums:"ka",cuboid:"la","(90°)":"ma",cuboids:"na","(180°,":"oa",large:"pa","depth)":"qa",horizontally:"ra",cube:"sa",vertically:"ta"},i=charSet2="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".split(""),q=0,_=-1,f=i.length,l=function(e){for(var r in e)if("object"==typeof e[r]&&l(e[r]),"n"===r)if(s=n="",t){for(var d in u=e[r].toLowerCase().split(" "))c[u[d]]?s+=c[u[d]]+" ":(n=i[q]+(-1<_?charSet2[_]:""),c[u[d]]=n,q===f-1?(q=0,_++):q++,s+=n+" ");e[r]=s.trim()}else{for(var a in u=e[r].split(" "))n+=c[u[a]]+" ";e[r]=(n.charAt(0).toUpperCase()+n.slice(1)).trim()}};if(t||_lsSwapObj(c),l(e),t)return c};
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["dotlottie-player"]={})}(this,(function(exports){"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var REACT_ELEMENT_TYPE;function _jsx(t,e,r,i){REACT_ELEMENT_TYPE||(REACT_ELEMENT_TYPE="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var n=t&&t.defaultProps,s=arguments.length-3;if(e||0===s||(e={children:void 0}),1===s)e.children=i;else if(s>1){for(var a=new Array(s),o=0;o<s;o++)a[o]=arguments[o+3];e.children=a}if(e&&n)for(var h in n)void 0===e[h]&&(e[h]=n[h]);else e||(e=n||{});return{$$typeof:REACT_ELEMENT_TYPE,type:t,key:void 0===r?null:""+r,ref:null,props:e,_owner:null}}function _asyncIterator(t){var e;if("undefined"!=typeof Symbol){if(Symbol.asyncIterator&&null!=(e=t[Symbol.asyncIterator]))return e.call(t);if(Symbol.iterator&&null!=(e=t[Symbol.iterator]))return e.call(t)}throw new TypeError("Object is not async iterable")}function _AwaitValue(t){this.wrapped=t}function _AsyncGenerator(t){var e,r;function i(e,r){try{var s=t[e](r),a=s.value,o=a instanceof _AwaitValue;Promise.resolve(o?a.wrapped:a).then((function(t){o?i("return"===e?"return":"next",t):n(s.done?"return":"normal",t)}),(function(t){i("throw",t)}))}catch(t){n("throw",t)}}function n(t,n){switch(t){case"return":e.resolve({value:n,done:!0});break;case"throw":e.reject(n);break;default:e.resolve({value:n,done:!1})}(e=e.next)?i(e.key,e.arg):r=null}this._invoke=function(t,n){return new Promise((function(s,a){var o={key:t,arg:n,resolve:s,reject:a,next:null};r?r=r.next=o:(e=r=o,i(t,n))}))},"function"!=typeof t.return&&(this.return=void 0)}function _wrapAsyncGenerator(t){return function(){return new _AsyncGenerator(t.apply(this,arguments))}}function _awaitAsyncGenerator(t){return new _AwaitValue(t)}function _asyncGeneratorDelegate(t,e){var r={},i=!1;function n(r,n){return i=!0,n=new Promise((function(e){e(t[r](n))})),{done:!1,value:e(n)}}return"function"==typeof Symbol&&Symbol.iterator&&(r[Symbol.iterator]=function(){return this}),r.next=function(t){return i?(i=!1,t):n("next",t)},"function"==typeof t.throw&&(r.throw=function(t){if(i)throw i=!1,t;return n("throw",t)}),"function"==typeof t.return&&(r.return=function(t){return i?(i=!1,t):n("return",t)}),r}function asyncGeneratorStep(t,e,r,i,n,s,a){try{var o=t[s](a),h=o.value}catch(t){return void r(t)}o.done?e(h):Promise.resolve(h).then(i,n)}function _asyncToGenerator(t){return function(){var e=this,r=arguments;return new Promise((function(i,n){var s=t.apply(e,r);function a(t){asyncGeneratorStep(s,i,n,a,o,"next",t)}function o(t){asyncGeneratorStep(s,i,n,a,o,"throw",t)}a(void 0)}))}}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function _createClass(t,e,r){return e&&_defineProperties(t.prototype,e),r&&_defineProperties(t,r),t}function _defineEnumerableProperties(t,e){for(var r in e){(s=e[r]).configurable=s.enumerable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,r,s)}if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(e),n=0;n<i.length;n++){var s,a=i[n];(s=e[a]).configurable=s.enumerable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,a,s)}return t}function _defaults(t,e){for(var r=Object.getOwnPropertyNames(e),i=0;i<r.length;i++){var n=r[i],s=Object.getOwnPropertyDescriptor(e,n);s&&s.configurable&&void 0===t[n]&&Object.defineProperty(t,n,s)}return t}function _defineProperty(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _extends(){return(_extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t}).apply(this,arguments)}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?Object(arguments[e]):{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),i.forEach((function(e){_defineProperty(t,e,r[e])}))}return t}function ownKeys(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function _objectSpread2(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(r),!0).forEach((function(e){_defineProperty(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _inheritsLoose(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,_setPrototypeOf(t,e)}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function _construct(t,e,r){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(t,e,r){var i=[null];i.push.apply(i,e);var n=new(Function.bind.apply(t,i));return r&&_setPrototypeOf(n,r.prototype),n}).apply(null,arguments)}function _isNativeFunction(t){return-1!==Function.toString.call(t).indexOf("[native code]")}function _wrapNativeSuper(t){var e="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return _construct(t,arguments,_getPrototypeOf(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(r,t)})(t)}function _instanceof(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return _getRequireWildcardCache=function(){return t},t}function _interopRequireWildcard(t){if(t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var e=_getRequireWildcardCache();if(e&&e.has(t))return e.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var s=i?Object.getOwnPropertyDescriptor(t,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=t[n]}return r.default=t,e&&e.set(t,r),r}function _newArrowCheck(t,e){if(t!==e)throw new TypeError("Cannot instantiate an arrow function")}function _objectDestructuringEmpty(t){if(null==t)throw new TypeError("Cannot destructure undefined")}function _objectWithoutPropertiesLoose(t,e){if(null==t)return{};var r,i,n={},s=Object.keys(t);for(i=0;i<s.length;i++)r=s[i],e.indexOf(r)>=0||(n[r]=t[r]);return n}function _objectWithoutProperties(t,e){if(null==t)return{};var r,i,n=_objectWithoutPropertiesLoose(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _possibleConstructorReturn(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?_assertThisInitialized(t):e}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var r,i=_getPrototypeOf(t);if(e){var n=_getPrototypeOf(this).constructor;r=Reflect.construct(i,arguments,n)}else r=i.apply(this,arguments);return _possibleConstructorReturn(this,r)}}function _superPropBase(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=_getPrototypeOf(t)););return t}function _get(t,e,r){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var i=_superPropBase(t,e);if(i){var n=Object.getOwnPropertyDescriptor(i,e);return n.get?n.get.call(r):n.value}})(t,e,r||t)}function set(t,e,r,i){return(set="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(t,e,r,i){var n,s=_superPropBase(t,e);if(s){if((n=Object.getOwnPropertyDescriptor(s,e)).set)return n.set.call(i,r),!0;if(!n.writable)return!1}if(n=Object.getOwnPropertyDescriptor(i,e)){if(!n.writable)return!1;n.value=r,Object.defineProperty(i,e,n)}else _defineProperty(i,e,r);return!0})(t,e,r,i)}function _set(t,e,r,i,n){if(!set(t,e,r,i||t)&&n)throw new Error("failed to set property");return r}function _taggedTemplateLiteral(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function _taggedTemplateLiteralLoose(t,e){return e||(e=t.slice(0)),t.raw=e,t}function _readOnlyError(t){throw new TypeError('"'+t+'" is read-only')}function _writeOnlyError(t){throw new TypeError('"'+t+'" is write-only')}function _classNameTDZError(t){throw new Error('Class "'+t+'" cannot be referenced in computed property keys.')}function _temporalUndefined(){}function _tdz(t){throw new ReferenceError(t+" is not defined - temporal dead zone")}function _temporalRef(t,e){return t===_temporalUndefined?_tdz(e):t}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _slicedToArrayLoose(t,e){return _arrayWithHoles(t)||_iterableToArrayLimitLoose(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _toArray(t){return _arrayWithHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableRest()}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _maybeArrayLike(t,e,r){if(e&&!Array.isArray(e)&&"number"==typeof e.length){var i=e.length;return _arrayLikeToArray(e,void 0!==r&&r<i?r:i)}return t(e,r)}function _iterableToArray(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function _iterableToArrayLimit(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],i=!0,n=!1,s=void 0;try{for(var a,o=t[Symbol.iterator]();!(i=(a=o.next()).done)&&(r.push(a.value),!e||r.length!==e);i=!0);}catch(t){n=!0,s=t}finally{try{i||null==o.return||o.return()}finally{if(n)throw s}}return r}}function _iterableToArrayLimitLoose(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){for(var r,i=[],n=t[Symbol.iterator]();!(r=n.next()).done&&(i.push(r.value),!e||i.length!==e););return i}}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _createForOfIteratorHelper(t,e){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=_unsupportedIterableToArray(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var i=0,n=function(){};return{s:n,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,o=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return a=t.done,t},e:function(t){o=!0,s=t},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw s}}}}function _createForOfIteratorHelperLoose(t,e){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=_unsupportedIterableToArray(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(r=t[Symbol.iterator]()).next.bind(r)}function _skipFirstGeneratorNext(t){return function(){var e=t.apply(this,arguments);return e.next(),e}}function _toPrimitive(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function _toPropertyKey(t){var e=_toPrimitive(t,"string");return"symbol"==typeof e?e:String(e)}function _initializerWarningHelper(t,e){throw new Error("Decorating class property failed. Please ensure that proposal-class-properties is enabled and runs after the decorators transform.")}function _initializerDefineProperty(t,e,r,i){r&&Object.defineProperty(t,e,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function _applyDecoratedDescriptor(t,e,r,i,n){var s={};return Object.keys(i).forEach((function(t){s[t]=i[t]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,i){return i(t,e,r)||r}),s),n&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(t,e,s),s=null),s}"function"==typeof Symbol&&Symbol.asyncIterator&&(_AsyncGenerator.prototype[Symbol.asyncIterator]=function(){return this}),_AsyncGenerator.prototype.next=function(t){return this._invoke("next",t)},_AsyncGenerator.prototype.throw=function(t){return this._invoke("throw",t)},_AsyncGenerator.prototype.return=function(t){return this._invoke("return",t)};var id=0;function _classPrivateFieldLooseKey(t){return"__private_"+id+++"_"+t}function _classPrivateFieldLooseBase(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}function _classPrivateFieldGet(t,e){return _classApplyDescriptorGet(t,_classExtractFieldDescriptor(t,e,"get"))}function _classPrivateFieldSet(t,e,r){return _classApplyDescriptorSet(t,_classExtractFieldDescriptor(t,e,"set"),r),r}function _classPrivateFieldDestructureSet(t,e){return _classApplyDescriptorDestructureSet(t,_classExtractFieldDescriptor(t,e,"set"))}function _classExtractFieldDescriptor(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function _classStaticPrivateFieldSpecGet(t,e,r){return _classCheckPrivateStaticAccess(t,e),_classCheckPrivateStaticFieldDescriptor(r,"get"),_classApplyDescriptorGet(t,r)}function _classStaticPrivateFieldSpecSet(t,e,r,i){return _classCheckPrivateStaticAccess(t,e),_classCheckPrivateStaticFieldDescriptor(r,"set"),_classApplyDescriptorSet(t,r,i),i}function _classStaticPrivateMethodGet(t,e,r){return _classCheckPrivateStaticAccess(t,e),r}function _classStaticPrivateMethodSet(){throw new TypeError("attempted to set read only static private field")}function _classApplyDescriptorGet(t,e){return e.get?e.get.call(t):e.value}function _classApplyDescriptorSet(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}}function _classApplyDescriptorDestructureSet(t,e){if(e.set)return"__destrObj"in e||(e.__destrObj={set value(r){e.set.call(t,r)}}),e.__destrObj;if(!e.writable)throw new TypeError("attempted to set read only private field");return e}function _classStaticPrivateFieldDestructureSet(t,e,r){return _classCheckPrivateStaticAccess(t,e),_classCheckPrivateStaticFieldDescriptor(r,"set"),_classApplyDescriptorDestructureSet(t,r)}function _classCheckPrivateStaticAccess(t,e){if(t!==e)throw new TypeError("Private static access of wrong provenance")}function _classCheckPrivateStaticFieldDescriptor(t,e){if(void 0===t)throw new TypeError("attempted to "+e+" private static field before its declaration")}function _decorate(t,e,r,i){var n=_getDecoratorsApi();if(i)for(var s=0;s<i.length;s++)n=i[s](n);var a=e((function(t){n.initializeInstanceElements(t,o.elements)}),r),o=n.decorateClass(_coalesceClassElements(a.d.map(_createElementDescriptor)),t);return n.initializeClassElements(a.F,o.elements),n.runClassFinishers(a.F,o.finishers)}function _getDecoratorsApi(){_getDecoratorsApi=function(){return t};var t={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(t,e){["method","field"].forEach((function(r){e.forEach((function(e){e.kind===r&&"own"===e.placement&&this.defineClassElement(t,e)}),this)}),this)},initializeClassElements:function(t,e){var r=t.prototype;["method","field"].forEach((function(i){e.forEach((function(e){var n=e.placement;if(e.kind===i&&("static"===n||"prototype"===n)){var s="static"===n?t:r;this.defineClassElement(s,e)}}),this)}),this)},defineClassElement:function(t,e){var r=e.descriptor;if("field"===e.kind){var i=e.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===i?void 0:i.call(t)}}Object.defineProperty(t,e.key,r)},decorateClass:function(t,e){var r=[],i=[],n={static:[],prototype:[],own:[]};if(t.forEach((function(t){this.addElementPlacement(t,n)}),this),t.forEach((function(t){if(!_hasDecorators(t))return r.push(t);var e=this.decorateElement(t,n);r.push(e.element),r.push.apply(r,e.extras),i.push.apply(i,e.finishers)}),this),!e)return{elements:r,finishers:i};var s=this.decorateConstructor(r,e);return i.push.apply(i,s.finishers),s.finishers=i,s},addElementPlacement:function(t,e,r){var i=e[t.placement];if(!r&&-1!==i.indexOf(t.key))throw new TypeError("Duplicated element ("+t.key+")");i.push(t.key)},decorateElement:function(t,e){for(var r=[],i=[],n=t.decorators,s=n.length-1;s>=0;s--){var a=e[t.placement];a.splice(a.indexOf(t.key),1);var o=this.fromElementDescriptor(t),h=this.toElementFinisherExtras((0,n[s])(o)||o);t=h.element,this.addElementPlacement(t,e),h.finisher&&i.push(h.finisher);var l=h.extras;if(l){for(var p=0;p<l.length;p++)this.addElementPlacement(l[p],e);r.push.apply(r,l)}}return{element:t,finishers:i,extras:r}},decorateConstructor:function(t,e){for(var r=[],i=e.length-1;i>=0;i--){var n=this.fromClassDescriptor(t),s=this.toClassDescriptor((0,e[i])(n)||n);if(void 0!==s.finisher&&r.push(s.finisher),void 0!==s.elements){t=s.elements;for(var a=0;a<t.length-1;a++)for(var o=a+1;o<t.length;o++)if(t[a].key===t[o].key&&t[a].placement===t[o].placement)throw new TypeError("Duplicated element ("+t[a].key+")")}}return{elements:t,finishers:r}},fromElementDescriptor:function(t){var e={kind:t.kind,key:t.key,placement:t.placement,descriptor:t.descriptor};return Object.defineProperty(e,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===t.kind&&(e.initializer=t.initializer),e},toElementDescriptors:function(t){if(void 0!==t)return _toArray(t).map((function(t){var e=this.toElementDescriptor(t);return this.disallowProperty(t,"finisher","An element descriptor"),this.disallowProperty(t,"extras","An element descriptor"),e}),this)},toElementDescriptor:function(t){var e=String(t.kind);if("method"!==e&&"field"!==e)throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+e+'"');var r=_toPropertyKey(t.key),i=String(t.placement);if("static"!==i&&"prototype"!==i&&"own"!==i)throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "'+i+'"');var n=t.descriptor;this.disallowProperty(t,"elements","An element descriptor");var s={kind:e,key:r,placement:i,descriptor:Object.assign({},n)};return"field"!==e?this.disallowProperty(t,"initializer","A method descriptor"):(this.disallowProperty(n,"get","The property descriptor of a field descriptor"),this.disallowProperty(n,"set","The property descriptor of a field descriptor"),this.disallowProperty(n,"value","The property descriptor of a field descriptor"),s.initializer=t.initializer),s},toElementFinisherExtras:function(t){return{element:this.toElementDescriptor(t),finisher:_optionalCallableProperty(t,"finisher"),extras:this.toElementDescriptors(t.extras)}},fromClassDescriptor:function(t){var e={kind:"class",elements:t.map(this.fromElementDescriptor,this)};return Object.defineProperty(e,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),e},toClassDescriptor:function(t){var e=String(t.kind);if("class"!==e)throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+e+'"');this.disallowProperty(t,"key","A class descriptor"),this.disallowProperty(t,"placement","A class descriptor"),this.disallowProperty(t,"descriptor","A class descriptor"),this.disallowProperty(t,"initializer","A class descriptor"),this.disallowProperty(t,"extras","A class descriptor");var r=_optionalCallableProperty(t,"finisher");return{elements:this.toElementDescriptors(t.elements),finisher:r}},runClassFinishers:function(t,e){for(var r=0;r<e.length;r++){var i=(0,e[r])(t);if(void 0!==i){if("function"!=typeof i)throw new TypeError("Finishers must return a constructor.");t=i}}return t},disallowProperty:function(t,e,r){if(void 0!==t[e])throw new TypeError(r+" can't have a ."+e+" property.")}};return t}function _createElementDescriptor(t){var e,r=_toPropertyKey(t.key);"method"===t.kind?e={value:t.value,writable:!0,configurable:!0,enumerable:!1}:"get"===t.kind?e={get:t.value,configurable:!0,enumerable:!1}:"set"===t.kind?e={set:t.value,configurable:!0,enumerable:!1}:"field"===t.kind&&(e={configurable:!0,writable:!0,enumerable:!0});var i={kind:"field"===t.kind?"field":"method",key:r,placement:t.static?"static":"field"===t.kind?"own":"prototype",descriptor:e};return t.decorators&&(i.decorators=t.decorators),"field"===t.kind&&(i.initializer=t.value),i}function _coalesceGetterSetter(t,e){void 0!==t.descriptor.get?e.descriptor.get=t.descriptor.get:e.descriptor.set=t.descriptor.set}function _coalesceClassElements(t){for(var e=[],r=function(t){return"method"===t.kind&&t.key===s.key&&t.placement===s.placement},i=0;i<t.length;i++){var n,s=t[i];if("method"===s.kind&&(n=e.find(r)))if(_isDataDescriptor(s.descriptor)||_isDataDescriptor(n.descriptor)){if(_hasDecorators(s)||_hasDecorators(n))throw new ReferenceError("Duplicated methods ("+s.key+") can't be decorated.");n.descriptor=s.descriptor}else{if(_hasDecorators(s)){if(_hasDecorators(n))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+s.key+").");n.decorators=s.decorators}_coalesceGetterSetter(s,n)}else e.push(s)}return e}function _hasDecorators(t){return t.decorators&&t.decorators.length}function _isDataDescriptor(t){return void 0!==t&&!(void 0===t.value&&void 0===t.writable)}function _optionalCallableProperty(t,e){var r=t[e];if(void 0!==r&&"function"!=typeof r)throw new TypeError("Expected '"+e+"' to be a function");return r}function _classPrivateMethodGet(t,e,r){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return r}function _classPrivateMethodSet(){throw new TypeError("attempted to reassign private method")}function _wrapRegExp(t,e){_wrapRegExp=function(t,e){return new s(t,void 0,e)};var r=_wrapNativeSuper(RegExp),i=RegExp.prototype,n=new WeakMap;function s(t,e,i){var s=r.call(this,t,e);return n.set(s,i||n.get(t)),s}function a(t,e){var r=n.get(e);return Object.keys(r).reduce((function(e,i){return e[i]=t[r[i]],e}),Object.create(null))}return _inherits(s,r),s.prototype.exec=function(t){var e=i.exec.call(this,t);return e&&(e.groups=a(e,this)),e},s.prototype[Symbol.replace]=function(t,e){if("string"==typeof e){var r=n.get(this);return i[Symbol.replace].call(this,t,e.replace(/\$<([^>]+)>/g,(function(t,e){return"$"+r[e]})))}if("function"==typeof e){var s=this;return i[Symbol.replace].call(this,t,(function(){var t=[];return t.push.apply(t,arguments),"object"!=typeof t[t.length-1]&&t.push(a(t,s)),e.apply(this,t)}))}return i[Symbol.replace].call(this,t,e)},_wrapRegExp.apply(this,arguments)}
/*! *****************************************************************************
  Copyright (c) Microsoft Corporation.

  Permission to use, copy, modify, and/or distribute this software for any
  purpose with or without fee is hereby granted.

  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  PERFORMANCE OF THIS SOFTWARE.
  ***************************************************************************** */
var extendStatics=function(t,e){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};function __extends(t,e){function r(){this.constructor=t}extendStatics(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var __assign=function(){return(__assign=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)};function __rest(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(t);n<i.length;n++)e.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(t,i[n])&&(r[i[n]]=t[i[n]])}return r}function __decorate(t,e,r,i){var n,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,i);else for(var o=t.length-1;o>=0;o--)(n=t[o])&&(a=(s<3?n(a):s>3?n(e,r,a):n(e,r))||a);return s>3&&a&&Object.defineProperty(e,r,a),a}function __param(t,e){return function(r,i){e(r,i,t)}}function __metadata(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function __awaiter(t,e,r,i){return new(r||(r=Promise))((function(n,s){function a(t){try{h(i.next(t))}catch(t){s(t)}}function o(t){try{h(i.throw(t))}catch(t){s(t)}}function h(t){var e;t.done?n(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,o)}h((i=i.apply(t,e||[])).next())}))}function __generator(t,e){var r,i,n,s,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,i&&(n=2&s[0]?i.return:s[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,s[1])).done)return n;switch(i=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,i=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(n=a.trys,(n=n.length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]<n[3])){a.label=s[1];break}if(6===s[0]&&a.label<n[1]){a.label=n[1],n=s;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(s);break}n[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],i=0}finally{r=n=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,o])}}}function __createBinding(t,e,r,i){void 0===i&&(i=r),t[i]=e[r]}function __exportStar(t,e){for(var r in t)"default"===r||e.hasOwnProperty(r)||(e[r]=t[r])}function __values(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var i,n,s=r.call(t),a=[];try{for(;(void 0===e||e-->0)&&!(i=s.next()).done;)a.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return a}function __spread(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(__read(arguments[e]));return t}function __spreadArrays(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;var i=Array(t),n=0;for(e=0;e<r;e++)for(var s=arguments[e],a=0,o=s.length;a<o;a++,n++)i[n]=s[a];return i}function __await(t){return this instanceof __await?(this.v=t,this):new __await(t)}function __asyncGenerator(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,n=r.apply(t,e||[]),s=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(t){n[t]&&(i[t]=function(e){return new Promise((function(r,i){s.push([t,e,r,i])>1||o(t,e)}))})}function o(t,e){try{!function(t){t.value instanceof __await?Promise.resolve(t.value.v).then(h,l):p(s[0][2],t)}(n[t](e))}catch(t){p(s[0][3],t)}}function h(t){o("next",t)}function l(t){o("throw",t)}function p(t,e){t(e),s.shift(),s.length&&o(s[0][0],s[0][1])}}function __asyncDelegator(t){var e,r;return e={},i("next"),i("throw",(function(t){throw t})),i("return"),e[Symbol.iterator]=function(){return this},e;function i(i,n){e[i]=t[i]?function(e){return(r=!r)?{value:__await(t[i](e)),done:"return"===i}:n?n(e):e}:n}}function __asyncValues(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(r){e[r]=t[r]&&function(e){return new Promise((function(i,n){(function(t,e,r,i){Promise.resolve(i).then((function(e){t({value:e,done:r})}),e)})(i,n,(e=t[r](e)).done,e.value)}))}}}function __makeTemplateObject(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function __importStar(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function __importDefault(t){return t&&t.__esModule?t:{default:t}}function __classPrivateFieldGet(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function __classPrivateFieldSet(t,e,r){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,r),r}
const t$3=window,e$9=t$3.ShadowRoot&&(void 0===t$3.ShadyCSS||t$3.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$3=Symbol(),n$4=new WeakMap;class o$6{constructor(t,e,r){if(this._$cssResult$=!0,r!==s$3)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(e$9&&void 0===t){const r=void 0!==e&&1===e.length;r&&(t=n$4.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&n$4.set(e,t))}return t}toString(){return this.cssText}}const r$3=t=>new o$6("string"==typeof t?t:t+"",void 0,s$3),i$3=(t,...e)=>{const r=1===t.length?t[0]:e.reduce((e,r,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+t[i+1],t[0]);return new o$6(r,t,s$3)},S$1=(t,e)=>{e$9?t.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(e=>{const r=document.createElement("style"),i=t$3.litNonce;void 0!==i&&r.setAttribute("nonce",i),r.textContent=e.cssText,t.appendChild(r)})},c$1=e$9?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return r$3(e)})(t):t;var s$2;const e$8=window,r$2=e$8.trustedTypes,h$2=r$2?r$2.emptyScript:"",o$5=e$8.reactiveElementPolyfillSupport,n$3={toAttribute(t,e){switch(e){case Boolean:t=t?h$2:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=null!==t;break;case Number:r=null===t?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch(t){r=null}}return r}},a$1=(t,e)=>e!==t&&(e==e||t==t),l$3={attribute:!0,type:String,converter:n$3,reflect:!1,hasChanged:a$1};class d$1 extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((e,r)=>{const i=this._$Ep(r,e);void 0!==i&&(this._$Ev.set(i,r),t.push(i))}),t}static createProperty(t,e=l$3){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const r="symbol"==typeof t?Symbol():"__"+t,i=this.getPropertyDescriptor(t,r,e);void 0!==i&&Object.defineProperty(this.prototype,t,i)}}static getPropertyDescriptor(t,e,r){return{get(){return this[e]},set(i){const n=this[t];this[e]=i,this.requestUpdate(t,n,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||l$3}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const r of e)this.createProperty(r,t[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const t of r)e.unshift(c$1(t))}else void 0!==t&&e.push(c$1(t));return e}static _$Ep(t,e){const r=e.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach(t=>t(this))}addController(t){var e,r;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(r=t.hostConnected)||void 0===r||r.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return S$1(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach(t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)})}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach(t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)})}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EO(t,e,r=l$3){var i;const n=this.constructor._$Ep(t,r);if(void 0!==n&&!0===r.reflect){const s=(void 0!==(null===(i=r.converter)||void 0===i?void 0:i.toAttribute)?r.converter:n$3).toAttribute(e,r.type);this._$El=t,null==s?this.removeAttribute(n):this.setAttribute(n,s),this._$El=null}}_$AK(t,e){var r;const i=this.constructor,n=i._$Ev.get(t);if(void 0!==n&&this._$El!==n){const t=i.getPropertyOptions(n),s="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(r=t.converter)||void 0===r?void 0:r.fromAttribute)?t.converter:n$3;this._$El=n,this[n]=s.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,r){let i=!0;void 0!==t&&(((r=r||this.constructor.getPropertyOptions(t)).hasChanged||a$1)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===r.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,r))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((t,e)=>this[e]=t),this._$Ei=void 0);let e=!1;const r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),null===(t=this._$ES)||void 0===t||t.forEach(t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)}),this.update(r)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(r)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach(t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach((t,e)=>this._$EO(e,this[e],t)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
var t$2;d$1.finalized=!0,d$1.elementProperties=new Map,d$1.elementStyles=[],d$1.shadowRootOptions={mode:"open"},null==o$5||o$5({ReactiveElement:d$1}),(null!==(s$2=e$8.reactiveElementVersions)&&void 0!==s$2?s$2:e$8.reactiveElementVersions=[]).push("1.4.2");const i$2=window,s$1=i$2.trustedTypes,e$7=s$1?s$1.createPolicy("lit-html",{createHTML:t=>t}):void 0,o$4=`lit$${(Math.random()+"").slice(9)}$`,n$2="?"+o$4,l$2=`<${n$2}>`,h$1=document,r$1=(t="")=>h$1.createComment(t),d=t=>null===t||"object"!=typeof t&&"function"!=typeof t,u=Array.isArray,c=t=>u(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),v=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,a=/-->/g,f=/>/g,_=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),m=/'/g,p=/"/g,$=/^(?:script|style|textarea|title)$/i,g=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),y=g(1),w=g(2),x=Symbol.for("lit-noChange"),b=Symbol.for("lit-nothing"),T=new WeakMap,A=h$1.createTreeWalker(h$1,129,null,!1),E=(t,e)=>{const r=t.length-1,i=[];let n,s=2===e?"<svg>":"",o=v;for(let e=0;e<r;e++){const r=t[e];let h,l,c=-1,u=0;for(;u<r.length&&(o.lastIndex=u,l=o.exec(r),null!==l);)u=o.lastIndex,o===v?"!--"===l[1]?o=a:void 0!==l[1]?o=f:void 0!==l[2]?($.test(l[2])&&(n=RegExp("</"+l[2],"g")),o=_):void 0!==l[3]&&(o=_):o===_?">"===l[0]?(o=null!=n?n:v,c=-1):void 0===l[1]?c=-2:(c=o.lastIndex-l[2].length,h=l[1],o=void 0===l[3]?_:'"'===l[3]?p:m):o===p||o===m?o=_:o===a||o===f?o=v:(o=_,n=void 0);const d=o===_&&t[e+1].startsWith("/>")?" ":"";s+=o===v?r+l$2:c>=0?(i.push(h),r.slice(0,c)+"$lit$"+r.slice(c)+o$4+d):r+o$4+(-2===c?(i.push(void 0),e):d)}const h=s+(t[r]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==e$7?e$7.createHTML(h):h,i]};class C{constructor({strings:t,_$litType$:e},r){let i;this.parts=[];let n=0,s=0;const a=t.length-1,o=this.parts,[h,l]=E(t,e);if(this.el=C.createElement(h,r),A.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(i=A.nextNode())&&o.length<a;){if(1===i.nodeType){if(i.hasAttributes()){const t=[];for(const e of i.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(o$4)){const r=l[s++];if(t.push(e),void 0!==r){const t=i.getAttribute(r.toLowerCase()+"$lit$").split(o$4),e=/([.?@])?(.*)/.exec(r);o.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?M:"?"===e[1]?k:"@"===e[1]?H:S})}else o.push({type:6,index:n})}for(const e of t)i.removeAttribute(e)}if($.test(i.tagName)){const t=i.textContent.split(o$4),e=t.length-1;if(e>0){i.textContent=s$1?s$1.emptyScript:"";for(let r=0;r<e;r++)i.append(t[r],r$1()),A.nextNode(),o.push({type:2,index:++n});i.append(t[e],r$1())}}}else if(8===i.nodeType)if(i.data===n$2)o.push({type:2,index:n});else{let t=-1;for(;-1!==(t=i.data.indexOf(o$4,t+1));)o.push({type:7,index:n}),t+=o$4.length-1}n++}}static createElement(t,e){const r=h$1.createElement("template");return r.innerHTML=t,r}}function P(t,e,r=t,i){var n,s,a,o;if(e===x)return e;let h=void 0!==i?null===(n=r._$Co)||void 0===n?void 0:n[i]:r._$Cl;const l=d(e)?void 0:e._$litDirective$;return(null==h?void 0:h.constructor)!==l&&(null===(s=null==h?void 0:h._$AO)||void 0===s||s.call(h,!1),void 0===l?h=void 0:(h=new l(t),h._$AT(t,r,i)),void 0!==i?(null!==(a=(o=r)._$Co)&&void 0!==a?a:o._$Co=[])[i]=h:r._$Cl=h),void 0!==h&&(e=P(t,h._$AS(t,e.values),h,i)),e}class V{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:r},parts:i}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:h$1).importNode(r,!0);A.currentNode=n;let s=A.nextNode(),a=0,o=0,h=i[0];for(;void 0!==h;){if(a===h.index){let e;2===h.type?e=new N(s,s.nextSibling,this,t):1===h.type?e=new h.ctor(s,h.name,h.strings,this,t):6===h.type&&(e=new I(s,this,t)),this.u.push(e),h=i[++o]}a!==(null==h?void 0:h.index)&&(s=A.nextNode(),a++)}return n}p(t){let e=0;for(const r of this.u)void 0!==r&&(void 0!==r.strings?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class N{constructor(t,e,r,i){var n;this.type=2,this._$AH=b,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=i,this._$Cm=null===(n=null==i?void 0:i.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=P(this,t,e),d(t)?t===b||null==t||""===t?(this._$AH!==b&&this._$AR(),this._$AH=b):t!==this._$AH&&t!==x&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):c(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==b&&d(this._$AH)?this._$AA.nextSibling.data=t:this.T(h$1.createTextNode(t)),this._$AH=t}$(t){var e;const{values:r,_$litType$:i}=t,n="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=C.createElement(i.h,this.options)),i);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.p(r);else{const t=new V(n,this),e=t.v(this.options);t.p(r),this.T(e),this._$AH=t}}_$AC(t){let e=T.get(t.strings);return void 0===e&&T.set(t.strings,e=new C(t)),e}k(t){u(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,i=0;for(const n of t)i===e.length?e.push(r=new N(this.O(r$1()),this.O(r$1()),this,this.options)):r=e[i],r._$AI(n),i++;i<e.length&&(this._$AR(r&&r._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var r;for(null===(r=this._$AP)||void 0===r||r.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class S{constructor(t,e,r,i,n){this.type=1,this._$AH=b,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=n,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=b}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,r,i){const n=this.strings;let s=!1;if(void 0===n)t=P(this,t,e,0),s=!d(t)||t!==this._$AH&&t!==x,s&&(this._$AH=t);else{const i=t;let a,o;for(t=n[0],a=0;a<n.length-1;a++)o=P(this,i[r+a],e,a),o===x&&(o=this._$AH[a]),s||(s=!d(o)||o!==this._$AH[a]),o===b?t=b:t!==b&&(t+=(null!=o?o:"")+n[a+1]),this._$AH[a]=o}s&&!i&&this.j(t)}j(t){t===b?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class M extends S{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===b?void 0:t}}const R=s$1?s$1.emptyScript:"";class k extends S{constructor(){super(...arguments),this.type=4}j(t){t&&t!==b?this.element.setAttribute(this.name,R):this.element.removeAttribute(this.name)}}class H extends S{constructor(t,e,r,i,n){super(t,e,r,i,n),this.type=5}_$AI(t,e=this){var r;if((t=null!==(r=P(this,t,e,0))&&void 0!==r?r:b)===x)return;const i=this._$AH,n=t===b&&i!==b||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,s=t!==b&&(i===b||n);n&&this.element.removeEventListener(this.name,this,i),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,r;"function"==typeof this._$AH?this._$AH.call(null!==(r=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==r?r:this.element,t):this._$AH.handleEvent(t)}}class I{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){P(this,t)}}const L={P:"$lit$",A:o$4,M:n$2,C:1,L:E,R:V,D:c,V:P,I:N,H:S,N:k,U:H,B:M,F:I},z=i$2.litHtmlPolyfillSupport;null==z||z(C,N),(null!==(t$2=i$2.litHtmlVersions)&&void 0!==t$2?t$2:i$2.litHtmlVersions=[]).push("2.4.0");const Z=(t,e,r)=>{var i,n;const s=null!==(i=null==r?void 0:r.renderBefore)&&void 0!==i?i:e;let a=s._$litPart$;if(void 0===a){const t=null!==(n=null==r?void 0:r.renderBefore)&&void 0!==n?n:null;s._$litPart$=a=new N(e.insertBefore(r$1(),t),t,void 0,null!=r?r:{})}return a._$AI(t),a};var l$1,o$3;const r=d$1;class s extends d$1{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,e;const r=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=r.firstChild),r}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=Z(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return x}}s.finalized=!0,s._$litElement$=!0,null===(l$1=globalThis.litElementHydrateSupport)||void 0===l$1||l$1.call(globalThis,{LitElement:s});const n$1=globalThis.litElementPolyfillSupport;null==n$1||n$1({LitElement:s});const h={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};(null!==(o$3=globalThis.litElementVersions)&&void 0!==o$3?o$3:globalThis.litElementVersions=[]).push("3.2.0");const o$2=!1,e$6=t=>e=>"function"==typeof e?((t,e)=>(customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:r,elements:i}=e;return{kind:r,elements:i,finisher(e){customElements.define(t,e)}}})(t,e),i$1=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(r){r.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(r){r.createProperty(e.key,t)}};function e$5(t){return(e,r)=>void 0!==r?((t,e,r)=>{e.constructor.createProperty(r,t)})(t,e,r):i$1(t,e)}function t$1(t){return e$5({...t,state:!0})}
const e$4=(t,e,r)=>{Object.defineProperty(e,r,t)},t=(t,e)=>({kind:"method",placement:"prototype",key:e.key,descriptor:t}),o$1=({finisher:t,descriptor:e})=>(r,i)=>{var n;if(void 0===i){const i=null!==(n=r.originalKey)&&void 0!==n?n:r.key,s=null!=e?{kind:"method",placement:"prototype",key:i,descriptor:e(r.key)}:{...r,key:i};return null!=t&&(s.finisher=function(e){t(e,i)}),s}{const n=r.constructor;void 0!==e&&Object.defineProperty(r,i,e(i)),null==t||t(n,i)}};function e$3(t){return o$1({finisher:(e,r)=>{Object.assign(e.prototype[r],t)}})}
function i(t,e){return o$1({descriptor:r=>{const i={get(){var e,r;return null!==(r=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==r?r:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof r?Symbol():"__"+r;i.get=function(){var r,i;return void 0===this[e]&&(this[e]=null!==(i=null===(r=this.renderRoot)||void 0===r?void 0:r.querySelector(t))&&void 0!==i?i:null),this[e]}}return i}})}
function e$2(t){return o$1({descriptor:e=>({get(){var e,r;return null!==(r=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelectorAll(t))&&void 0!==r?r:[]},enumerable:!0,configurable:!0})})}
function e$1(t){return o$1({descriptor:e=>({async get(){var e;return await this.updateComplete,null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t)},enumerable:!0,configurable:!0})})}
var n;const e=null!=(null===(n=window.HTMLSlotElement)||void 0===n?void 0:n.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter(t=>t.nodeType===Node.ELEMENT_NODE);function l(t){const{slot:r,selector:i}=null!=t?t:{};return o$1({descriptor:n=>({get(){var n;const s="slot"+(r?`[name=${r}]`:":not([name])"),a=null===(n=this.renderRoot)||void 0===n?void 0:n.querySelector(s),o=null!=a?e(a,t):[];return i?o.filter(t=>t.matches(i)):o},enumerable:!0,configurable:!0})})}
function o(t,e,r){let i,n=t;return"object"==typeof t?(n=t.slot,i=t):i={flatten:e},r?l({slot:n,flatten:e,selector:r}):o$1({descriptor:t=>({get(){var t,e;const r="slot"+(n?`[name=${n}]`:":not([name])"),s=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(r);return null!==(e=null==s?void 0:s.assignedNodes(i))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(t,e,r){return t(r={path:e,exports:{},require:function(t,e){return commonjsRequire(t,null==e?r.path:e)}},r.exports),r.exports}function getCjsExportFromNamespace(t){return t&&t.default||t}function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var lottie_svg=createCommonjsModule((function(module,exports){"undefined"!=typeof navigator&&function(t,e){module.exports=e()}(0,(function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,e){var r,i,n=t.length;for(r=0;r<n;r+=1)for(var s in i=t[r].prototype)Object.prototype.hasOwnProperty.call(i,s)&&(e.prototype[s]=i[s])}function getDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)}function createProxyFunction(t){function e(){}return e.prototype=t,e}var audioControllerFactory=function(){function t(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(t){this.audios.push(t)},pause:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].pause()},resume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].resume()},setRate:function(t){var e,r=this.audios.length;for(e=0;e<r;e+=1)this.audios[e].setRate(t)},createAudio:function(t){return this.audioFactory?this.audioFactory(t):window.Howl?new window.Howl({src:[t]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(t){this.audioFactory=t},setVolume:function(t){this._volume=t,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),createTypedArray=function(){function t(t,e){var r,i=0,n=[];switch(t){case"int16":case"uint8c":r=1;break;default:r=1.1}for(i=0;i<e;i+=1)n.push(r);return n}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(e,r){return"float32"===e?new Float32Array(r):"int16"===e?new Int16Array(r):"uint8c"===e?new Uint8ClampedArray(r):t(e,r)}:t}();function createSizedArray(t){return Array.apply(null,{length:t})}function _typeof$6(t){return(_typeof$6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};function ProjectInterface$1(){return{}}!function(){var t,e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],r=e.length;for(t=0;t<r;t+=1)BMMath[e[t]]=Math[e[t]]}(),BMMath.random=Math.random,BMMath.abs=function(t){if("object"===_typeof$6(t)&&t.length){var e,r=createSizedArray(t.length),i=t.length;for(e=0;e<i;e+=1)r[e]=Math.abs(t[e]);return r}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(t){_shouldRoundValues=!!t}function bmRnd(t){return _shouldRoundValues?Math.round(t):t}function styleDiv(t){t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.display="block",t.style.transformOrigin="0 0",t.style.webkitTransformOrigin="0 0",t.style.backfaceVisibility="visible",t.style.webkitBackfaceVisibility="visible",t.style.transformStyle="preserve-3d",t.style.webkitTransformStyle="preserve-3d",t.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(t,e,r,i){this.type=t,this.currentTime=e,this.totalTime=r,this.direction=i<0?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,r,i){this.type=t,this.currentLoop=r,this.totalLoops=e,this.direction=i<0?-1:1}function BMSegmentStartEvent(t,e,r){this.type=t,this.firstFrame=e,this.totalFrames=r}function BMDestroyEvent(t,e){this.type=t,this.target=e}function BMRenderFrameErrorEvent(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function BMConfigErrorEvent(t){this.type="configError",this.nativeError=t}function BMAnimationConfigErrorEvent(t,e){this.type=t,this.nativeError=e}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(t,e,r){var i,n,s,a,o,h,l,p;switch(h=r*(1-e),l=r*(1-(o=6*t-(a=Math.floor(6*t)))*e),p=r*(1-(1-o)*e),a%6){case 0:i=r,n=p,s=h;break;case 1:i=l,n=r,s=h;break;case 2:i=h,n=r,s=p;break;case 3:i=h,n=l,s=r;break;case 4:i=p,n=h,s=r;break;case 5:i=r,n=h,s=l}return[i,n,s]}function RGBtoHSV(t,e,r){var i,n=Math.max(t,e,r),s=Math.min(t,e,r),a=n-s,o=0===n?0:a/n,h=n/255;switch(n){case s:i=0;break;case t:i=e-r+a*(e<r?6:0),i/=6*a;break;case e:i=r-t+2*a,i/=6*a;break;case r:i=t-e+4*a,i/=6*a}return[i,o,h]}function addSaturationToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[1]+=e,r[1]>1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[2]+=e,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[0]+=e/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var t,e,r=[];for(t=0;t<256;t+=1)e=t.toString(16),r[t]=1===e.length?"0"+e:e;return function(t,e,i){return t<0&&(t=0),e<0&&(e=0),i<0&&(i=0),"#"+r[t]+r[e]+r[i]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t},getIdPrefix=function(){return idPrefix$1};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){return(_typeof$5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var dataManager=function(){var t,e,r=1,i=[],n={onmessage:function(){},postMessage:function(e){t({data:e})}},s={postMessage:function(t){n.onmessage({data:t})}};function a(){e||((e=function(e){if(window.Worker&&window.Blob&&getWebWorker()){var r=new Blob(["var _workerSelf = self; self.onmessage = ",e.toString()],{type:"text/javascript"}),i=URL.createObjectURL(r);return new Worker(i)}return t=e,n}((function(t){if(s.dataManager||(s.dataManager=function(){function t(n,s){var a,o,h,l,p,f,u=n.length;for(o=0;o<u;o+=1)if("ks"in(a=n[o])&&!a.completed){if(a.completed=!0,a.hasMask){var d=a.masksProperties;for(l=d.length,h=0;h<l;h+=1)if(d[h].pt.k.i)i(d[h].pt.k);else for(f=d[h].pt.k.length,p=0;p<f;p+=1)d[h].pt.k[p].s&&i(d[h].pt.k[p].s[0]),d[h].pt.k[p].e&&i(d[h].pt.k[p].e[0])}0===a.ty?(a.layers=e(a.refId,s),t(a.layers,s)):4===a.ty?r(a.shapes):5===a.ty&&c(a)}}function e(t,e){var r=function(t,e){for(var r=0,i=e.length;r<i;){if(e[r].id===t)return e[r];r+=1}return null}(t,e);return r?r.layers.__used?JSON.parse(JSON.stringify(r.layers)):(r.layers.__used=!0,r.layers):null}function r(t){var e,n,s;for(e=t.length-1;e>=0;e-=1)if("sh"===t[e].ty)if(t[e].ks.k.i)i(t[e].ks.k);else for(s=t[e].ks.k.length,n=0;n<s;n+=1)t[e].ks.k[n].s&&i(t[e].ks.k[n].s[0]),t[e].ks.k[n].e&&i(t[e].ks.k[n].e[0]);else"gr"===t[e].ty&&r(t[e].it)}function i(t){var e,r=t.i.length;for(e=0;e<r;e+=1)t.i[e][0]+=t.v[e][0],t.i[e][1]+=t.v[e][1],t.o[e][0]+=t.v[e][0],t.o[e][1]+=t.v[e][1]}function n(t,e){var r=e?e.split("."):[100,100,100];return t[0]>r[0]||!(r[0]>t[0])&&(t[1]>r[1]||!(r[1]>t[1])&&(t[2]>r[2]||!(r[2]>t[2])&&null))}var s,a=function(){var t=[4,4,14];function e(t){var e,r,i,n=t.length;for(e=0;e<n;e+=1)5===t[e].ty&&(r=t[e],i=void 0,i=r.t.d,r.t.d={k:[{s:i,t:0}]})}return function(r){if(n(t,r.v)&&(e(r.layers),r.assets)){var i,s=r.assets.length;for(i=0;i<s;i+=1)r.assets[i].layers&&e(r.assets[i].layers)}}}(),o=(s=[4,7,99],function(t){if(t.chars&&!n(s,t.v)){var e,i=t.chars.length;for(e=0;e<i;e+=1){var a=t.chars[e];a.data&&a.data.shapes&&(r(a.data.shapes),a.data.ip=0,a.data.op=99999,a.data.st=0,a.data.sr=1,a.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},t.chars[e].t||(a.data.shapes.push({ty:"no"}),a.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),h=function(){var t=[5,7,15];function e(t){var e,r,i,n=t.length;for(e=0;e<n;e+=1)5===t[e].ty&&(r=t[e],i=void 0,"number"==typeof(i=r.t.p).a&&(i.a={a:0,k:i.a}),"number"==typeof i.p&&(i.p={a:0,k:i.p}),"number"==typeof i.r&&(i.r={a:0,k:i.r}))}return function(r){if(n(t,r.v)&&(e(r.layers),r.assets)){var i,s=r.assets.length;for(i=0;i<s;i+=1)r.assets[i].layers&&e(r.assets[i].layers)}}}(),l=function(){var t=[4,1,9];function e(t){var r,i,n,s=t.length;for(r=0;r<s;r+=1)if("gr"===t[r].ty)e(t[r].it);else if("fl"===t[r].ty||"st"===t[r].ty)if(t[r].c.k&&t[r].c.k[0].i)for(n=t[r].c.k.length,i=0;i<n;i+=1)t[r].c.k[i].s&&(t[r].c.k[i].s[0]/=255,t[r].c.k[i].s[1]/=255,t[r].c.k[i].s[2]/=255,t[r].c.k[i].s[3]/=255),t[r].c.k[i].e&&(t[r].c.k[i].e[0]/=255,t[r].c.k[i].e[1]/=255,t[r].c.k[i].e[2]/=255,t[r].c.k[i].e[3]/=255);else t[r].c.k[0]/=255,t[r].c.k[1]/=255,t[r].c.k[2]/=255,t[r].c.k[3]/=255}function r(t){var r,i=t.length;for(r=0;r<i;r+=1)4===t[r].ty&&e(t[r].shapes)}return function(e){if(n(t,e.v)&&(r(e.layers),e.assets)){var i,s=e.assets.length;for(i=0;i<s;i+=1)e.assets[i].layers&&r(e.assets[i].layers)}}}(),p=function(){var t=[4,4,18];function e(t){var r,i,n;for(r=t.length-1;r>=0;r-=1)if("sh"===t[r].ty)if(t[r].ks.k.i)t[r].ks.k.c=t[r].closed;else for(n=t[r].ks.k.length,i=0;i<n;i+=1)t[r].ks.k[i].s&&(t[r].ks.k[i].s[0].c=t[r].closed),t[r].ks.k[i].e&&(t[r].ks.k[i].e[0].c=t[r].closed);else"gr"===t[r].ty&&e(t[r].it)}function r(t){var r,i,n,s,a,o,h=t.length;for(i=0;i<h;i+=1){if((r=t[i]).hasMask){var l=r.masksProperties;for(s=l.length,n=0;n<s;n+=1)if(l[n].pt.k.i)l[n].pt.k.c=l[n].cl;else for(o=l[n].pt.k.length,a=0;a<o;a+=1)l[n].pt.k[a].s&&(l[n].pt.k[a].s[0].c=l[n].cl),l[n].pt.k[a].e&&(l[n].pt.k[a].e[0].c=l[n].cl)}4===r.ty&&e(r.shapes)}}return function(e){if(n(t,e.v)&&(r(e.layers),e.assets)){var i,s=e.assets.length;for(i=0;i<s;i+=1)e.assets[i].layers&&r(e.assets[i].layers)}}}();function c(t){0===t.t.a.length&&t.t.p}var f={completeData:function(r){r.__complete||(l(r),a(r),o(r),h(r),p(r),t(r.layers,r.assets),function(r,i){if(r){var n=0,s=r.length;for(n=0;n<s;n+=1)1===r[n].t&&(r[n].data.layers=e(r[n].data.refId,i),t(r[n].data.layers,i))}}(r.chars,r.assets),r.__complete=!0)}};return f.checkColors=l,f.checkChars=o,f.checkPathProperties=h,f.checkShapes=p,f.completeLayers=t,f}()),s.assetLoader||(s.assetLoader=function(){function t(t){var e=t.getResponseHeader("content-type");return e&&"json"===t.responseType&&-1!==e.indexOf("json")||t.response&&"object"===_typeof$5(t.response)?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):null}return{load:function(e,r,i,n){var s,a=new XMLHttpRequest;try{a.responseType="json"}catch(t){}a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status)s=t(a),i(s);else try{s=t(a),i(s)}catch(t){n&&n(t)}};try{a.open(["G","E","T"].join(""),e,!0)}catch(t){a.open(["G","E","T"].join(""),r+"/"+e,!0)}a.send()}}}()),"loadAnimation"===t.data.type)s.assetLoader.load(t.data.path,t.data.fullPath,(function(e){s.dataManager.completeData(e),s.postMessage({id:t.data.id,payload:e,status:"success"})}),(function(){s.postMessage({id:t.data.id,status:"error"})}));else if("complete"===t.data.type){var e=t.data.animation;s.dataManager.completeData(e),s.postMessage({id:t.data.id,payload:e,status:"success"})}else"loadData"===t.data.type&&s.assetLoader.load(t.data.path,t.data.fullPath,(function(e){s.postMessage({id:t.data.id,payload:e,status:"success"})}),(function(){s.postMessage({id:t.data.id,status:"error"})}))}))).onmessage=function(t){var e=t.data,r=e.id,n=i[r];i[r]=null,"success"===e.status?n.onComplete(e.payload):n.onError&&n.onError()})}function o(t,e){var n="processId_"+(r+=1);return i[n]={onComplete:t,onError:e},n}return{loadAnimation:function(t,r,i){a();var n=o(r,i);e.postMessage({type:"loadAnimation",path:t,fullPath:window.location.origin+window.location.pathname,id:n})},loadData:function(t,r,i){a();var n=o(r,i);e.postMessage({type:"loadData",path:t,fullPath:window.location.origin+window.location.pathname,id:n})},completeAnimation:function(t,r,i){a();var n=o(r,i);e.postMessage({type:"complete",animation:t,id:n})}}}(),ImagePreloader=function(){var t=function(){var t=createTag("canvas");t.width=1,t.height=1;var e=t.getContext("2d");return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),t}();function e(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(t,e,r){var i="";if(t.e)i=t.p;else if(e){var n=t.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),i=e+n}else i=r,i+=t.u?t.u:"",i+=t.p;return i}function n(t){var e=0,r=setInterval(function(){(t.getBBox().width||e>500)&&(this._imageLoaded(),clearInterval(r)),e+=1}.bind(this),50)}function s(t){var e={assetData:t},r=i(t,this.assetsPath,this.path);return dataManager.loadData(r,function(t){e.img=t,this._footageLoaded()}.bind(this),function(){e.img={},this._footageLoaded()}.bind(this)),e}function a(){this._imageLoaded=e.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=n.bind(this),this.createFootageData=s.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return a.prototype={loadAssets:function(t,e){var r;this.imagesLoadedCb=e;var i=t.length;for(r=0;r<i;r+=1)t[r].layers||(t[r].t&&"seq"!==t[r].t?3===t[r].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(t[r]))):(this.totalImages+=1,this.images.push(this._createImageData(t[r]))))},setAssetsPath:function(t){this.assetsPath=t||""},setPath:function(t){this.path=t||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(t){for(var e=0,r=this.images.length;e<r;){if(this.images[e].assetData===t)return this.images[e].img;e+=1}return null},createImgData:function(e){var r=i(e,this.assetsPath,this.path),n=createTag("img");n.crossOrigin="anonymous",n.addEventListener("load",this._imageLoaded,!1),n.addEventListener("error",function(){s.img=t,this._imageLoaded()}.bind(this),!1),n.src=r;var s={img:n,assetData:e};return s},createImageData:function(e){var r=i(e,this.assetsPath,this.path),n=createNS("image");isSafari?this.testImageLoaded(n):n.addEventListener("load",this._imageLoaded,!1),n.addEventListener("error",function(){s.img=t,this._imageLoaded()}.bind(this),!1),n.setAttributeNS("http://www.w3.org/1999/xlink","href",r),this._elementHelper.append?this._elementHelper.append(n):this._elementHelper.appendChild(n);var s={img:n,assetData:e};return s},imageLoaded:e,footageLoaded:r,setCacheType:function(t,e){"svg"===t?(this._elementHelper=e,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},a}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var r=this._cbs[t],i=0;i<r.length;i+=1)r[i](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var r=0,i=this._cbs[t].length;r<i;)this._cbs[t][r]===e&&(this._cbs[t].splice(r,1),r-=1,i-=1),r+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var markerParser=function(){function t(t){for(var e,r=t.split("\r\n"),i={},n=0,s=0;s<r.length;s+=1)2===(e=r[s].split(":")).length&&(i[e[0]]=e[1].trim(),n+=1);if(0===n)throw new Error;return i}return function(e){for(var r=[],i=0;i<e.length;i+=1){var n=e[i],s={time:n.tm,duration:n.dr};try{s.payload=JSON.parse(e[i].cm)}catch(r){try{s.payload=t(e[i].cm)}catch(t){s.payload={name:e[i].cm}}}r.push(s)}return r}}(),ProjectInterface=function(){function t(t){this.compositions.push(t)}return function(){function e(t){for(var e=0,r=this.compositions.length;e<r;){if(this.compositions[e].data&&this.compositions[e].data.nm===t)return this.compositions[e].prepareFrame&&this.compositions[e].data.xt&&this.compositions[e].prepareFrame(this.currentFrame),this.compositions[e].compInterface;e+=1}return null}return e.compositions=[],e.currentFrame=0,e.registerComposition=t,e}}(),renderers={},registerRenderer=function(t,e){renderers[t]=e};function getRenderer(t){return renderers[t]}function _typeof$4(t){return(_typeof$4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0)};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e="svg";t.animType?e=t.animType:t.renderer&&(e=t.renderer);var r=getRenderer(e);this.renderer=new r(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,""===t.loop||null===t.loop||void 0===t.loop||!0===t.loop?this.loop=!0:!1===t.loop?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(t,"autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(-1!==t.path.lastIndexOf("\\")?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(t.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(t){dataManager.completeAnimation(t,this.configAnimation)},AnimationItem.prototype.setData=function(t,e){e&&"object"!==_typeof$4(e)&&(e=JSON.parse(e));var r={wrapper:t,animationData:e},i=t.attributes;r.path=i.getNamedItem("data-animation-path")?i.getNamedItem("data-animation-path").value:i.getNamedItem("data-bm-path")?i.getNamedItem("data-bm-path").value:i.getNamedItem("bm-path")?i.getNamedItem("bm-path").value:"",r.animType=i.getNamedItem("data-anim-type")?i.getNamedItem("data-anim-type").value:i.getNamedItem("data-bm-type")?i.getNamedItem("data-bm-type").value:i.getNamedItem("bm-type")?i.getNamedItem("bm-type").value:i.getNamedItem("data-bm-renderer")?i.getNamedItem("data-bm-renderer").value:i.getNamedItem("bm-renderer")?i.getNamedItem("bm-renderer").value:"canvas";var n=i.getNamedItem("data-anim-loop")?i.getNamedItem("data-anim-loop").value:i.getNamedItem("data-bm-loop")?i.getNamedItem("data-bm-loop").value:i.getNamedItem("bm-loop")?i.getNamedItem("bm-loop").value:"";"false"===n?r.loop=!1:"true"===n?r.loop=!0:""!==n&&(r.loop=parseInt(n,10));var s=i.getNamedItem("data-anim-autoplay")?i.getNamedItem("data-anim-autoplay").value:i.getNamedItem("data-bm-autoplay")?i.getNamedItem("data-bm-autoplay").value:!i.getNamedItem("bm-autoplay")||i.getNamedItem("bm-autoplay").value;r.autoplay="false"!==s,r.name=i.getNamedItem("data-name")?i.getNamedItem("data-name").value:i.getNamedItem("data-bm-name")?i.getNamedItem("data-bm-name").value:i.getNamedItem("bm-name")?i.getNamedItem("bm-name").value:"","false"===(i.getNamedItem("data-anim-prerender")?i.getNamedItem("data-anim-prerender").value:i.getNamedItem("data-bm-prerender")?i.getNamedItem("data-bm-prerender").value:i.getNamedItem("bm-prerender")?i.getNamedItem("bm-prerender").value:"")&&(r.prerender=!1),this.setParams(r)},AnimationItem.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,r,i=this.animationData.layers,n=i.length,s=t.layers,a=s.length;for(r=0;r<a;r+=1)for(e=0;e<n;){if(i[e].id===s[r].id){i[e]=s[r];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(n=t.assets.length,e=0;e<n;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(t){this.animationData=t;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var e=t.shift();this.timeCompleted=e.time*this.frameRate;var r=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(r,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=markerParser(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(t,e){var r="number"==typeof t?t:void 0,i="number"==typeof e?e:void 0;this.renderer.updateContainerSize(r,i)},AnimationItem.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!==t||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!==t||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(t){for(var e,r=0;r<this.markers.length;r+=1)if((e=this.markers[r]).payload&&e.payload.name===t)return e;return null},AnimationItem.prototype.goToAndStop=function(t,e,r){if(!r||this.name===r){var i=Number(t);if(isNaN(i)){var n=this.getMarkerData(t);n&&this.goToAndStop(n.time,!0)}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(t,e,r){if(!r||this.name===r){var i=Number(t);if(isNaN(i)){var n=this.getMarkerData(t);n&&(n.duration?this.playSegments([n.time,n.time+n.duration],!0):this.goToAndStop(n.time,!0))}else this.goToAndStop(i,e,r);this.play()}},AnimationItem.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,r=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(r=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(r=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),r&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,e){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?r=t:this.currentRawFrame+this.firstFrame>e&&(r=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==r&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===_typeof$4(t[0])){var r,i=t.length;for(r=0;r<i;r+=1)this.segments.push(t[r])}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},AnimationItem.prototype.destroy=function(t){t&&this.name!==t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.renderer=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},AnimationItem.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(t){var e="";if(t.e)e=t.p;else if(this.assetsPath){var r=t.p;-1!==r.indexOf("images/")&&(r=r.split("/")[1]),e=this.assetsPath+r}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},AnimationItem.prototype.getAssetData=function(t){for(var e=0,r=this.assets.length;e<r;){if(t===this.assets[e].id)return this.assets[e];e+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(t,e,r){try{this.renderer.getElementByPath(t).updateDocumentData(e,r)}catch(t){}},AnimationItem.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.triggerRenderFrameError=function(t){var e=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)},AnimationItem.prototype.triggerConfigError=function(t){var e=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)};var animationManager=function(){var t={},e=[],r=0,i=0,n=0,s=!0,a=!1;function o(t){for(var r=0,n=t.target;r<i;)e[r].animation===n&&(e.splice(r,1),r-=1,i-=1,n.isPaused||p()),r+=1}function h(t,r){if(!t)return null;for(var n=0;n<i;){if(e[n].elem===t&&null!==e[n].elem)return e[n].animation;n+=1}var s=new AnimationItem;return c(s,t),s.setData(t,r),s}function l(){n+=1,d()}function p(){n-=1}function c(t,r){t.addEventListener("destroy",o),t.addEventListener("_active",l),t.addEventListener("_idle",p),e.push({elem:r,animation:t}),i+=1}function f(t){var o,h=t-r;for(o=0;o<i;o+=1)e[o].animation.advanceTime(h);r=t,n&&!a?window.requestAnimationFrame(f):s=!0}function u(t){r=t,window.requestAnimationFrame(f)}function d(){!a&&n&&s&&(window.requestAnimationFrame(u),s=!1)}return t.registerAnimation=h,t.loadAnimation=function(t){var e=new AnimationItem;return c(e,null),e.setParams(t),e},t.setSpeed=function(t,r){var n;for(n=0;n<i;n+=1)e[n].animation.setSpeed(t,r)},t.setDirection=function(t,r){var n;for(n=0;n<i;n+=1)e[n].animation.setDirection(t,r)},t.play=function(t){var r;for(r=0;r<i;r+=1)e[r].animation.play(t)},t.pause=function(t){var r;for(r=0;r<i;r+=1)e[r].animation.pause(t)},t.stop=function(t){var r;for(r=0;r<i;r+=1)e[r].animation.stop(t)},t.togglePause=function(t){var r;for(r=0;r<i;r+=1)e[r].animation.togglePause(t)},t.searchAnimations=function(t,e,r){var i,n=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),s=n.length;for(i=0;i<s;i+=1)r&&n[i].setAttribute("data-bm-type",r),h(n[i],t);if(e&&0===s){r||(r="svg");var a=document.getElementsByTagName("body")[0];a.innerText="";var o=createTag("div");o.style.width="100%",o.style.height="100%",o.setAttribute("data-bm-type",r),a.appendChild(o),h(o,t)}},t.resize=function(){var t;for(t=0;t<i;t+=1)e[t].animation.resize()},t.goToAndStop=function(t,r,n){var s;for(s=0;s<i;s+=1)e[s].animation.goToAndStop(t,r,n)},t.destroy=function(t){var r;for(r=i-1;r>=0;r-=1)e[r].animation.destroy(t)},t.freeze=function(){a=!0},t.unfreeze=function(){a=!1,d()},t.setVolume=function(t,r){var n;for(n=0;n<i;n+=1)e[n].animation.setVolume(t,r)},t.mute=function(t){var r;for(r=0;r<i;r+=1)e[r].animation.mute(t)},t.unmute=function(t){var r;for(r=0;r<i;r+=1)e[r].animation.unmute(t)},t.getRegisteredAnimations=function(){var t,r=e.length,i=[];for(t=0;t<r;t+=1)i.push(e[t].animation);return i},t}(),BezierFactory=function(){var t={getBezierEasing:function(t,r,i,n,s){var a=s||("bez_"+t+"_"+r+"_"+i+"_"+n).replace(/\./g,"p");if(e[a])return e[a];var o=new h([t,r,i,n]);return e[a]=o,o}},e={};var r="function"==typeof Float32Array;function i(t,e){return 1-3*e+3*t}function n(t,e){return 3*e-6*t}function s(t){return 3*t}function a(t,e,r){return((i(e,r)*t+n(e,r))*t+s(e))*t}function o(t,e,r){return 3*i(e,r)*t*t+2*n(e,r)*t+s(e)}function h(t){this._p=t,this._mSampleValues=r?new Float32Array(11):new Array(11),this._precomputed=!1,this.get=this.get.bind(this)}return h.prototype={get:function(t){var e=this._p[0],r=this._p[1],i=this._p[2],n=this._p[3];return this._precomputed||this._precompute(),e===r&&i===n?t:0===t?0:1===t?1:a(this._getTForX(t),r,n)},_precompute:function(){var t=this._p[0],e=this._p[1],r=this._p[2],i=this._p[3];this._precomputed=!0,t===e&&r===i||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],r=0;r<11;++r)this._mSampleValues[r]=a(.1*r,t,e)},_getTForX:function(t){for(var e=this._p[0],r=this._p[2],i=this._mSampleValues,n=0,s=1;10!==s&&i[s]<=t;++s)n+=.1;var h=n+.1*((t-i[--s])/(i[s+1]-i[s])),l=o(h,e,r);return l>=.001?function(t,e,r,i){for(var n=0;n<4;++n){var s=o(e,r,i);if(0===s)return e;e-=(a(e,r,i)-t)/s}return e}(t,h,e,r):0===l?h:function(t,e,r,i,n){var s,o,h=0;do{(s=a(o=e+(r-e)/2,i,n)-t)>0?r=o:e=o}while(Math.abs(s)>1e-7&&++h<10);return o}(t,n,n+.1,e,r)}},t}(),pooling={double:function(t){return t.concat(createSizedArray(t.length))}},poolFactory=function(t,e,r){var i=0,n=t,s=createSizedArray(n);return{newElement:function(){return i?s[i-=1]:e()},release:function(t){i===n&&(s=pooling.double(s),n*=2),r&&r(t),s[i]=t,i+=1}}},bezierLengthPool=poolFactory(8,(function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}})),segmentsLengthPool=poolFactory(8,(function(){return{lengths:[],totalLength:0}}),(function(t){var e,r=t.lengths.length;for(e=0;e<r;e+=1)bezierLengthPool.release(t.lengths[e]);t.lengths.length=0}));function bezFunction(){var t=Math;function e(t,e,r,i,n,s){var a=t*i+e*n+r*s-n*i-s*t-r*e;return a>-.001&&a<.001}var r=function(t,e,r,i){var n,s,a,o,h,l,p=getDefaultCurveSegments(),c=0,f=[],u=[],d=bezierLengthPool.newElement();for(a=r.length,n=0;n<p;n+=1){for(h=n/(p-1),l=0,s=0;s<a;s+=1)o=bmPow(1-h,3)*t[s]+3*bmPow(1-h,2)*h*r[s]+3*(1-h)*bmPow(h,2)*i[s]+bmPow(h,3)*e[s],f[s]=o,null!==u[s]&&(l+=bmPow(f[s]-u[s],2)),u[s]=f[s];l&&(c+=l=bmSqrt(l)),d.percents[n]=h,d.lengths[n]=c}return d.addedLength=c,d};function i(t){this.segmentLength=0,this.points=new Array(t)}function n(t,e){this.partialLength=t,this.point=e}var s,a=(s={},function(t,r,a,o){var h=(t[0]+"_"+t[1]+"_"+r[0]+"_"+r[1]+"_"+a[0]+"_"+a[1]+"_"+o[0]+"_"+o[1]).replace(/\./g,"p");if(!s[h]){var l,p,c,f,u,d,m,y=getDefaultCurveSegments(),g=0,v=null;2===t.length&&(t[0]!==r[0]||t[1]!==r[1])&&e(t[0],t[1],r[0],r[1],t[0]+a[0],t[1]+a[1])&&e(t[0],t[1],r[0],r[1],r[0]+o[0],r[1]+o[1])&&(y=2);var _=new i(y);for(c=a.length,l=0;l<y;l+=1){for(m=createSizedArray(c),u=l/(y-1),d=0,p=0;p<c;p+=1)f=bmPow(1-u,3)*t[p]+3*bmPow(1-u,2)*u*(t[p]+a[p])+3*(1-u)*bmPow(u,2)*(r[p]+o[p])+bmPow(u,3)*r[p],m[p]=f,null!==v&&(d+=bmPow(m[p]-v[p],2));g+=d=bmSqrt(d),_.points[l]=new n(d,m),v=m}_.segmentLength=g,s[h]=_}return s[h]});function o(t,e){var r=e.percents,i=e.lengths,n=r.length,s=bmFloor((n-1)*t),a=t*e.addedLength,o=0;if(s===n-1||0===s||a===i[s])return r[s];for(var h=i[s]>a?-1:1,l=!0;l;)if(i[s]<=a&&i[s+1]>a?(o=(a-i[s])/(i[s+1]-i[s]),l=!1):s+=h,s<0||s>=n-1){if(s===n-1)return r[s];l=!1}return r[s]+(r[s+1]-r[s])*o}var h=createTypedArray("float32",8);return{getSegmentsLength:function(t){var e,i=segmentsLengthPool.newElement(),n=t.c,s=t.v,a=t.o,o=t.i,h=t._length,l=i.lengths,p=0;for(e=0;e<h-1;e+=1)l[e]=r(s[e],s[e+1],a[e],o[e+1]),p+=l[e].addedLength;return n&&h&&(l[e]=r(s[e],s[0],a[e],o[0]),p+=l[e].addedLength),i.totalLength=p,i},getNewSegment:function(e,r,i,n,s,a,l){s<0?s=0:s>1&&(s=1);var p,c=o(s,l),f=o(a=a>1?1:a,l),u=e.length,d=1-c,m=1-f,y=d*d*d,g=c*d*d*3,v=c*c*d*3,_=c*c*c,b=d*d*m,P=c*d*m+d*c*m+d*d*f,S=c*c*m+d*c*f+c*d*f,w=c*c*f,x=d*m*m,E=c*m*m+d*f*m+d*m*f,k=c*f*m+d*f*f+c*m*f,A=c*f*f,T=m*m*m,C=f*m*m+m*f*m+m*m*f,I=f*f*m+m*f*f+f*m*f,D=f*f*f;for(p=0;p<u;p+=1)h[4*p]=t.round(1e3*(y*e[p]+g*i[p]+v*n[p]+_*r[p]))/1e3,h[4*p+1]=t.round(1e3*(b*e[p]+P*i[p]+S*n[p]+w*r[p]))/1e3,h[4*p+2]=t.round(1e3*(x*e[p]+E*i[p]+k*n[p]+A*r[p]))/1e3,h[4*p+3]=t.round(1e3*(T*e[p]+C*i[p]+I*n[p]+D*r[p]))/1e3;return h},getPointInSegment:function(e,r,i,n,s,a){var h=o(s,a),l=1-h;return[t.round(1e3*(l*l*l*e[0]+(h*l*l+l*h*l+l*l*h)*i[0]+(h*h*l+l*h*h+h*l*h)*n[0]+h*h*h*r[0]))/1e3,t.round(1e3*(l*l*l*e[1]+(h*l*l+l*h*l+l*l*h)*i[1]+(h*h*l+l*h*h+h*l*h)*n[1]+h*h*h*r[1]))/1e3]},buildBezierData:a,pointOnLine2D:e,pointOnLine3D:function(r,i,n,s,a,o,h,l,p){if(0===n&&0===o&&0===p)return e(r,i,s,a,h,l);var c,f=t.sqrt(t.pow(s-r,2)+t.pow(a-i,2)+t.pow(o-n,2)),u=t.sqrt(t.pow(h-r,2)+t.pow(l-i,2)+t.pow(p-n,2)),d=t.sqrt(t.pow(h-s,2)+t.pow(l-a,2)+t.pow(p-o,2));return(c=f>u?f>d?f-u-d:d-u-f:d>u?d-u-f:u-f-d)>-1e-4&&c<1e-4}}}var bez=bezFunction(),PropertyFactory=function(){var t=initialDefaultFrame,e=Math.abs;function r(t,e){var r,n=this.offsetTime;"multidimensional"===this.propType&&(r=createTypedArray("float32",this.pv.length));for(var s,a,o,h,l,p,c,f,u,d=e.lastIndex,m=d,y=this.keyframes.length-1,g=!0;g;){if(s=this.keyframes[m],a=this.keyframes[m+1],m===y-1&&t>=a.t-n){s.h&&(s=a),d=0;break}if(a.t-n>t){d=m;break}m<y-1?m+=1:(d=0,g=!1)}o=this.keyframesMetadata[m]||{};var v,_=a.t-n,b=s.t-n;if(s.to){o.bezierData||(o.bezierData=bez.buildBezierData(s.s,a.s||s.e,s.to,s.ti));var P=o.bezierData;if(t>=_||t<b){var S=t>=_?P.points.length-1:0;for(l=P.points[S].point.length,h=0;h<l;h+=1)r[h]=P.points[S].point[h]}else{o.__fnct?u=o.__fnct:(u=BezierFactory.getBezierEasing(s.o.x,s.o.y,s.i.x,s.i.y,s.n).get,o.__fnct=u),p=u((t-b)/(_-b));var w,x=P.segmentLength*p,E=e.lastFrame<t&&e._lastKeyframeIndex===m?e._lastAddedLength:0;for(f=e.lastFrame<t&&e._lastKeyframeIndex===m?e._lastPoint:0,g=!0,c=P.points.length;g;){if(E+=P.points[f].partialLength,0===x||0===p||f===P.points.length-1){for(l=P.points[f].point.length,h=0;h<l;h+=1)r[h]=P.points[f].point[h];break}if(x>=E&&x<E+P.points[f+1].partialLength){for(w=(x-E)/P.points[f+1].partialLength,l=P.points[f].point.length,h=0;h<l;h+=1)r[h]=P.points[f].point[h]+(P.points[f+1].point[h]-P.points[f].point[h])*w;break}f<c-1?f+=1:g=!1}e._lastPoint=f,e._lastAddedLength=E-P.points[f].partialLength,e._lastKeyframeIndex=m}}else{var k,A,T,C,I;if(y=s.s.length,v=a.s||s.e,this.sh&&1!==s.h)if(t>=_)r[0]=v[0],r[1]=v[1],r[2]=v[2];else if(t<=b)r[0]=s.s[0],r[1]=s.s[1],r[2]=s.s[2];else{!function(t,e){var r=e[0],i=e[1],n=e[2],s=e[3],a=Math.atan2(2*i*s-2*r*n,1-2*i*i-2*n*n),o=Math.asin(2*r*i+2*n*s),h=Math.atan2(2*r*s-2*i*n,1-2*r*r-2*n*n);t[0]=a/degToRads,t[1]=o/degToRads,t[2]=h/degToRads}(r,function(t,e,r){var i,n,s,a,o,h=[],l=t[0],p=t[1],c=t[2],f=t[3],u=e[0],d=e[1],m=e[2],y=e[3];(n=l*u+p*d+c*m+f*y)<0&&(n=-n,u=-u,d=-d,m=-m,y=-y);1-n>1e-6?(i=Math.acos(n),s=Math.sin(i),a=Math.sin((1-r)*i)/s,o=Math.sin(r*i)/s):(a=1-r,o=r);return h[0]=a*l+o*u,h[1]=a*p+o*d,h[2]=a*c+o*m,h[3]=a*f+o*y,h}(i(s.s),i(v),(t-b)/(_-b)))}else for(m=0;m<y;m+=1)1!==s.h&&(t>=_?p=1:t<b?p=0:(s.o.x.constructor===Array?(o.__fnct||(o.__fnct=[]),o.__fnct[m]?u=o.__fnct[m]:(k=void 0===s.o.x[m]?s.o.x[0]:s.o.x[m],A=void 0===s.o.y[m]?s.o.y[0]:s.o.y[m],T=void 0===s.i.x[m]?s.i.x[0]:s.i.x[m],C=void 0===s.i.y[m]?s.i.y[0]:s.i.y[m],u=BezierFactory.getBezierEasing(k,A,T,C).get,o.__fnct[m]=u)):o.__fnct?u=o.__fnct:(k=s.o.x,A=s.o.y,T=s.i.x,C=s.i.y,u=BezierFactory.getBezierEasing(k,A,T,C).get,s.keyframeMetadata=u),p=u((t-b)/(_-b)))),v=a.s||s.e,I=1===s.h?s.s[m]:s.s[m]+(v[m]-s.s[m])*p,"multidimensional"===this.propType?r[m]=I:r=I}return e.lastIndex=d,r}function i(t){var e=t[0]*degToRads,r=t[1]*degToRads,i=t[2]*degToRads,n=Math.cos(e/2),s=Math.cos(r/2),a=Math.cos(i/2),o=Math.sin(e/2),h=Math.sin(r/2),l=Math.sin(i/2);return[o*h*a+n*s*l,o*s*a+n*h*l,n*h*a-o*s*l,n*s*a-o*h*l]}function n(){var e=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==t&&(this._caching.lastFrame>=i&&e>=i||this._caching.lastFrame<r&&e<r))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var n=this.interpolateValue(e,this._caching);this.pv=n}return this._caching.lastFrame=e,this.pv}function s(t){var r;if("unidimensional"===this.propType)r=t*this.mult,e(this.v-r)>1e-5&&(this.v=r,this._mdf=!0);else for(var i=0,n=this.v.length;i<n;)r=t[i]*this.mult,e(this.v[i]-r)>1e-5&&(this.v[i]=r,this._mdf=!0),i+=1}function a(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t;this.lock=!0,this._mdf=this._isFirstFrame;var e=this.effectsSequence.length,r=this.kf?this.pv:this.data.k;for(t=0;t<e;t+=1)r=this.effectsSequence[t](r);this.setVValue(r),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function o(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function h(t,e,r,i){this.propType="unidimensional",this.mult=r||1,this.data=e,this.v=r?e.k*r:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=i,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=a,this.setVValue=s,this.addEffect=o}function l(t,e,r,i){var n;this.propType="multidimensional",this.mult=r||1,this.data=e,this._mdf=!1,this.elem=t,this.container=i,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var h=e.k.length;for(this.v=createTypedArray("float32",h),this.pv=createTypedArray("float32",h),this.vel=createTypedArray("float32",h),n=0;n<h;n+=1)this.v[n]=e.k[n]*this.mult,this.pv[n]=e.k[n];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=a,this.setVValue=s,this.addEffect=o}function p(e,i,h,l){this.propType="unidimensional",this.keyframes=i.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:t,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=i,this.mult=h||1,this.elem=e,this.container=l,this.comp=e.comp,this.v=t,this.pv=t,this._isFirstFrame=!0,this.getValue=a,this.setVValue=s,this.interpolateValue=r,this.effectsSequence=[n.bind(this)],this.addEffect=o}function c(e,i,h,l){var p;this.propType="multidimensional";var c,f,u,d,m=i.k.length;for(p=0;p<m-1;p+=1)i.k[p].to&&i.k[p].s&&i.k[p+1]&&i.k[p+1].s&&(c=i.k[p].s,f=i.k[p+1].s,u=i.k[p].to,d=i.k[p].ti,(2===c.length&&(c[0]!==f[0]||c[1]!==f[1])&&bez.pointOnLine2D(c[0],c[1],f[0],f[1],c[0]+u[0],c[1]+u[1])&&bez.pointOnLine2D(c[0],c[1],f[0],f[1],f[0]+d[0],f[1]+d[1])||3===c.length&&(c[0]!==f[0]||c[1]!==f[1]||c[2]!==f[2])&&bez.pointOnLine3D(c[0],c[1],c[2],f[0],f[1],f[2],c[0]+u[0],c[1]+u[1],c[2]+u[2])&&bez.pointOnLine3D(c[0],c[1],c[2],f[0],f[1],f[2],f[0]+d[0],f[1]+d[1],f[2]+d[2]))&&(i.k[p].to=null,i.k[p].ti=null),c[0]===f[0]&&c[1]===f[1]&&0===u[0]&&0===u[1]&&0===d[0]&&0===d[1]&&(2===c.length||c[2]===f[2]&&0===u[2]&&0===d[2])&&(i.k[p].to=null,i.k[p].ti=null));this.effectsSequence=[n.bind(this)],this.data=i,this.keyframes=i.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=h||1,this.elem=e,this.container=l,this.comp=e.comp,this.getValue=a,this.setVValue=s,this.interpolateValue=r,this.frameId=-1;var y=i.k[0].s.length;for(this.v=createTypedArray("float32",y),this.pv=createTypedArray("float32",y),p=0;p<y;p+=1)this.v[p]=t,this.pv[p]=t;this._caching={lastFrame:t,lastIndex:0,value:createTypedArray("float32",y)},this.addEffect=o}return{getProp:function(t,e,r,i,n){var s;if(e.k.length)if("number"==typeof e.k[0])s=new l(t,e,i,n);else switch(r){case 0:s=new p(t,e,i,n);break;case 1:s=new c(t,e,i,n)}else s=new h(t,e,i,n);return s.effectsSequence.length&&n.addDynamicProperty(s),s}}}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var t;this._mdf=!1;var e=this.dynamicProperties.length;for(t=0;t<e;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,(function(){return createTypedArray("float32",2)}));function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var r=0;r<e;)this.v[r]=pointPool.newElement(),this.o[r]=pointPool.newElement(),this.i[r]=pointPool.newElement(),r+=1},ShapePath.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(t,e,r,i,n){var s;switch(this._length=Math.max(this._length,i+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":s=this.v;break;case"i":s=this.i;break;case"o":s=this.o;break;default:s=[]}(!s[i]||s[i]&&!n)&&(s[i]=pointPool.newElement()),s[i][0]=t,s[i][1]=e},ShapePath.prototype.setTripleAt=function(t,e,r,i,n,s,a,o){this.setXYAt(t,e,"v",a,o),this.setXYAt(r,i,"o",a,o),this.setXYAt(n,s,"i",a,o)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,r=this.o,i=this.i,n=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],i[0][0],i[0][1],r[0][0],r[0][1],0,!1),n=1);var s,a=this._length-1,o=this._length;for(s=n;s<o;s+=1)t.setTripleAt(e[a][0],e[a][1],i[a][0],i[a][1],r[a][0],r[a][1],s,!1),a-=1;return t},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,(function(){return new ShapePath}),(function(t){var e,r=t._length;for(e=0;e<r;e+=1)pointPool.release(t.v[e]),pointPool.release(t.i[e]),pointPool.release(t.o[e]),t.v[e]=null,t.i[e]=null,t.o[e]=null;t._length=0,t.c=!1})),factory.clone=function(t){var e,r=factory.newElement(),i=void 0===t._length?t.v.length:t._length;for(r.setLength(i),r.c=t.c,e=0;e<i;e+=1)r.setTripleAt(t.v[e][0],t.v[e][1],t.o[e][0],t.o[e][1],t.i[e][0],t.i[e][1],e);return r},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)shapePool.release(this.shapes[t]);this._length=0};var shapeCollectionPool=(ob={newShapeCollection:function(){return _length?pool[_length-=1]:new ShapeCollection},release:function(t){var e,r=t._length;for(e=0;e<r;e+=1)shapePool.release(t.shapes[e]);t._length=0,_length===_maxLength&&(pool=pooling.double(pool),_maxLength*=2),pool[_length]=t,_length+=1}},_length=0,_maxLength=4,pool=createSizedArray(_maxLength),ob),ob,_length,_maxLength,pool,ShapePropertyFactory=function(){function t(t,e,r){var i,n,s,a,o,h,l,p,c,f=r.lastIndex,u=this.keyframes;if(t<u[0].t-this.offsetTime)i=u[0].s[0],s=!0,f=0;else if(t>=u[u.length-1].t-this.offsetTime)i=u[u.length-1].s?u[u.length-1].s[0]:u[u.length-2].e[0],s=!0;else{for(var d,m,y,g=f,v=u.length-1,_=!0;_&&(d=u[g],!((m=u[g+1]).t-this.offsetTime>t));)g<v-1?g+=1:_=!1;if(y=this.keyframesMetadata[g]||{},f=g,!(s=1===d.h)){if(t>=m.t-this.offsetTime)p=1;else if(t<d.t-this.offsetTime)p=0;else{var b;y.__fnct?b=y.__fnct:(b=BezierFactory.getBezierEasing(d.o.x,d.o.y,d.i.x,d.i.y).get,y.__fnct=b),p=b((t-(d.t-this.offsetTime))/(m.t-this.offsetTime-(d.t-this.offsetTime)))}n=m.s?m.s[0]:d.e[0]}i=d.s[0]}for(h=e._length,l=i.i[0].length,r.lastIndex=f,a=0;a<h;a+=1)for(o=0;o<l;o+=1)c=s?i.i[a][o]:i.i[a][o]+(n.i[a][o]-i.i[a][o])*p,e.i[a][o]=c,c=s?i.o[a][o]:i.o[a][o]+(n.o[a][o]-i.o[a][o])*p,e.o[a][o]=c,c=s?i.v[a][o]:i.v[a][o]+(n.v[a][o]-i.v[a][o])*p,e.v[a][o]=c}function e(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime,i=this._caching.lastFrame;return-999999!==i&&(i<e&&t<e||i>r&&t>r)||(this._caching.lastIndex=i<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}function r(){this.paths=this.localShapeCollection}function i(t){(function(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var r,i=t._length;for(r=0;r<i;r+=1)if(t.v[r][0]!==e.v[r][0]||t.v[r][1]!==e.v[r][1]||t.o[r][0]!==e.o[r][0]||t.o[r][1]!==e.o[r][1]||t.i[r][0]!==e.i[r][0]||t.i[r][1]!==e.i[r][1])return!1;return!0})(this.v,t)||(this.v=shapePool.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function n(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t,e;this.lock=!0,this._mdf=!1,t=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var r=this.effectsSequence.length;for(e=0;e<r;e+=1)t=this.effectsSequence[e](t);this.setVValue(t),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function s(t,e,i){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;var n=3===i?e.pt.k:e.ks.k;this.v=shapePool.clone(n),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=r,this.effectsSequence=[]}function a(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function o(t,i,n){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=3===n?i.pt.k:i.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var s=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,s),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=-999999,this.reset=r,this._caching={lastFrame:-999999,lastIndex:0},this.effectsSequence=[e.bind(this)]}s.prototype.interpolateShape=t,s.prototype.getValue=n,s.prototype.setVValue=i,s.prototype.addEffect=a,o.prototype.getValue=n,o.prototype.interpolateShape=t,o.prototype.setVValue=i,o.prototype.addEffect=a;var h=function(){var t=roundCorner;function e(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return e.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var e=this.p.v[0],r=this.p.v[1],i=this.s.v[0]/2,n=this.s.v[1]/2,s=3!==this.d,a=this.v;a.v[0][0]=e,a.v[0][1]=r-n,a.v[1][0]=s?e+i:e-i,a.v[1][1]=r,a.v[2][0]=e,a.v[2][1]=r+n,a.v[3][0]=s?e-i:e+i,a.v[3][1]=r,a.i[0][0]=s?e-i*t:e+i*t,a.i[0][1]=r-n,a.i[1][0]=s?e+i:e-i,a.i[1][1]=r-n*t,a.i[2][0]=s?e+i*t:e-i*t,a.i[2][1]=r+n,a.i[3][0]=s?e-i:e+i,a.i[3][1]=r+n*t,a.o[0][0]=s?e+i*t:e-i*t,a.o[0][1]=r-n,a.o[1][0]=s?e+i:e-i,a.o[1][1]=r+n*t,a.o[2][0]=s?e-i*t:e+i*t,a.o[2][1]=r+n,a.o[3][0]=s?e-i:e+i,a.o[3][1]=r-n*t}},extendPrototype([DynamicPropertyContainer],e),e}(),l=function(){function t(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=PropertyFactory.getProp(t,e.ir,0,0,this),this.is=PropertyFactory.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(t,e.pt,0,0,this),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,degToRads,this),this.or=PropertyFactory.getProp(t,e.or,0,0,this),this.os=PropertyFactory.getProp(t,e.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return t.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var t,e,r,i,n=2*Math.floor(this.pt.v),s=2*Math.PI/n,a=!0,o=this.or.v,h=this.ir.v,l=this.os.v,p=this.is.v,c=2*Math.PI*o/(2*n),f=2*Math.PI*h/(2*n),u=-Math.PI/2;u+=this.r.v;var d=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<n;t+=1){r=a?l:p,i=a?c:f;var m=(e=a?o:h)*Math.cos(u),y=e*Math.sin(u),g=0===m&&0===y?0:y/Math.sqrt(m*m+y*y),v=0===m&&0===y?0:-m/Math.sqrt(m*m+y*y);m+=+this.p.v[0],y+=+this.p.v[1],this.v.setTripleAt(m,y,m-g*i*r*d,y-v*i*r*d,m+g*i*r*d,y+v*i*r*d,t,!0),a=!a,u+=s*d}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),r=2*Math.PI/e,i=this.or.v,n=this.os.v,s=2*Math.PI*i/(4*e),a=.5*-Math.PI,o=3===this.data.d?-1:1;for(a+=this.r.v,this.v._length=0,t=0;t<e;t+=1){var h=i*Math.cos(a),l=i*Math.sin(a),p=0===h&&0===l?0:l/Math.sqrt(h*h+l*l),c=0===h&&0===l?0:-h/Math.sqrt(h*h+l*l);h+=+this.p.v[0],l+=+this.p.v[1],this.v.setTripleAt(h,l,h-p*s*n*o,l-c*s*n*o,h+p*s*n*o,l+c*s*n*o,t,!0),a+=r*o}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],t),t}(),p=function(){function t(t,e){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return t.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],r=this.s.v[0]/2,i=this.s.v[1]/2,n=bmMin(r,i,this.r.v),s=n*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+r,e-i+n,t+r,e-i+n,t+r,e-i+s,0,!0),this.v.setTripleAt(t+r,e+i-n,t+r,e+i-s,t+r,e+i-n,1,!0),0!==n?(this.v.setTripleAt(t+r-n,e+i,t+r-n,e+i,t+r-s,e+i,2,!0),this.v.setTripleAt(t-r+n,e+i,t-r+s,e+i,t-r+n,e+i,3,!0),this.v.setTripleAt(t-r,e+i-n,t-r,e+i-n,t-r,e+i-s,4,!0),this.v.setTripleAt(t-r,e-i+n,t-r,e-i+s,t-r,e-i+n,5,!0),this.v.setTripleAt(t-r+n,e-i,t-r+n,e-i,t-r+s,e-i,6,!0),this.v.setTripleAt(t+r-n,e-i,t+r-s,e-i,t+r-n,e-i,7,!0)):(this.v.setTripleAt(t-r,e+i,t-r+s,e+i,t-r,e+i,2),this.v.setTripleAt(t-r,e-i,t-r,e-i+s,t-r,e-i,3))):(this.v.setTripleAt(t+r,e-i+n,t+r,e-i+s,t+r,e-i+n,0,!0),0!==n?(this.v.setTripleAt(t+r-n,e-i,t+r-n,e-i,t+r-s,e-i,1,!0),this.v.setTripleAt(t-r+n,e-i,t-r+s,e-i,t-r+n,e-i,2,!0),this.v.setTripleAt(t-r,e-i+n,t-r,e-i+n,t-r,e-i+s,3,!0),this.v.setTripleAt(t-r,e+i-n,t-r,e+i-s,t-r,e+i-n,4,!0),this.v.setTripleAt(t-r+n,e+i,t-r+n,e+i,t-r+s,e+i,5,!0),this.v.setTripleAt(t+r-n,e+i,t+r-s,e+i,t+r-n,e+i,6,!0),this.v.setTripleAt(t+r,e+i-n,t+r,e+i-n,t+r,e+i-s,7,!0)):(this.v.setTripleAt(t-r,e-i,t-r+s,e-i,t-r,e-i,1,!0),this.v.setTripleAt(t-r,e+i,t-r,e+i-s,t-r,e+i,2,!0),this.v.setTripleAt(t+r,e+i,t+r-s,e+i,t+r,e+i,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:r},extendPrototype([DynamicPropertyContainer],t),t}();var c={getShapeProp:function(t,e,r){var i;return 3===r||4===r?i=(3===r?e.pt:e.ks).k.length?new o(t,e,r):new s(t,e,r):5===r?i=new p(t,e):6===r?i=new h(t,e):7===r&&(i=new l(t,e)),i.k&&t.addDynamicProperty(i),i},getConstructorFunction:function(){return s},getKeyframedConstructorFunction:function(){return o}};return c}(),Matrix=function(){var t=Math.cos,e=Math.sin,r=Math.tan,i=Math.round;function n(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function s(r){if(0===r)return this;var i=t(r),n=e(r);return this._t(i,-n,0,0,n,i,0,0,0,0,1,0,0,0,0,1)}function a(r){if(0===r)return this;var i=t(r),n=e(r);return this._t(1,0,0,0,0,i,-n,0,0,n,i,0,0,0,0,1)}function o(r){if(0===r)return this;var i=t(r),n=e(r);return this._t(i,0,n,0,0,1,0,0,-n,0,i,0,0,0,0,1)}function h(r){if(0===r)return this;var i=t(r),n=e(r);return this._t(i,-n,0,0,n,i,0,0,0,0,1,0,0,0,0,1)}function l(t,e){return this._t(1,e,t,1,0,0)}function p(t,e){return this.shear(r(t),r(e))}function c(i,n){var s=t(n),a=e(n);return this._t(s,a,0,0,-a,s,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(i),1,0,0,0,0,1,0,0,0,0,1)._t(s,-a,0,0,a,s,0,0,0,0,1,0,0,0,0,1)}function f(t,e,r){return r||0===r||(r=1),1===t&&1===e&&1===r?this:this._t(t,0,0,0,0,e,0,0,0,0,r,0,0,0,0,1)}function u(t,e,r,i,n,s,a,o,h,l,p,c,f,u,d,m){return this.props[0]=t,this.props[1]=e,this.props[2]=r,this.props[3]=i,this.props[4]=n,this.props[5]=s,this.props[6]=a,this.props[7]=o,this.props[8]=h,this.props[9]=l,this.props[10]=p,this.props[11]=c,this.props[12]=f,this.props[13]=u,this.props[14]=d,this.props[15]=m,this}function d(t,e,r){return r=r||0,0!==t||0!==e||0!==r?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,r,1):this}function m(t,e,r,i,n,s,a,o,h,l,p,c,f,u,d,m){var y=this.props;if(1===t&&0===e&&0===r&&0===i&&0===n&&1===s&&0===a&&0===o&&0===h&&0===l&&1===p&&0===c)return y[12]=y[12]*t+y[15]*f,y[13]=y[13]*s+y[15]*u,y[14]=y[14]*p+y[15]*d,y[15]*=m,this._identityCalculated=!1,this;var g=y[0],v=y[1],_=y[2],b=y[3],P=y[4],S=y[5],w=y[6],x=y[7],E=y[8],k=y[9],A=y[10],T=y[11],C=y[12],I=y[13],D=y[14],M=y[15];return y[0]=g*t+v*n+_*h+b*f,y[1]=g*e+v*s+_*l+b*u,y[2]=g*r+v*a+_*p+b*d,y[3]=g*i+v*o+_*c+b*m,y[4]=P*t+S*n+w*h+x*f,y[5]=P*e+S*s+w*l+x*u,y[6]=P*r+S*a+w*p+x*d,y[7]=P*i+S*o+w*c+x*m,y[8]=E*t+k*n+A*h+T*f,y[9]=E*e+k*s+A*l+T*u,y[10]=E*r+k*a+A*p+T*d,y[11]=E*i+k*o+A*c+T*m,y[12]=C*t+I*n+D*h+M*f,y[13]=C*e+I*s+D*l+M*u,y[14]=C*r+I*a+D*p+M*d,y[15]=C*i+I*o+D*c+M*m,this._identityCalculated=!1,this}function y(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function g(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function v(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e];return t}function _(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function b(t,e,r){return{x:t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+r*this.props[10]+this.props[14]}}function P(t,e,r){return t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12]}function S(t,e,r){return t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13]}function w(t,e,r){return t*this.props[2]+e*this.props[6]+r*this.props[10]+this.props[14]}function x(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,r=-this.props[1]/t,i=-this.props[4]/t,n=this.props[0]/t,s=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,a=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,o=new Matrix;return o.props[0]=e,o.props[1]=r,o.props[4]=i,o.props[5]=n,o.props[12]=s,o.props[13]=a,o}function E(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function k(t){var e,r=t.length,i=[];for(e=0;e<r;e+=1)i[e]=E(t[e]);return i}function A(t,e,r){var i=createTypedArray("float32",6);if(this.isIdentity())i[0]=t[0],i[1]=t[1],i[2]=e[0],i[3]=e[1],i[4]=r[0],i[5]=r[1];else{var n=this.props[0],s=this.props[1],a=this.props[4],o=this.props[5],h=this.props[12],l=this.props[13];i[0]=t[0]*n+t[1]*a+h,i[1]=t[0]*s+t[1]*o+l,i[2]=e[0]*n+e[1]*a+h,i[3]=e[0]*s+e[1]*o+l,i[4]=r[0]*n+r[1]*a+h,i[5]=r[0]*s+r[1]*o+l}return i}function T(t,e,r){return this.isIdentity()?[t,e,r]:[t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+r*this.props[10]+this.props[14]]}function C(t,e){if(this.isIdentity())return t+","+e;var r=this.props;return Math.round(100*(t*r[0]+e*r[4]+r[12]))/100+","+Math.round(100*(t*r[1]+e*r[5]+r[13]))/100}function I(){for(var t=0,e=this.props,r="matrix3d(";t<16;)r+=i(1e4*e[t])/1e4,r+=15===t?")":",",t+=1;return r}function D(t){return t<1e-6&&t>0||t>-1e-6&&t<0?i(1e4*t)/1e4:t}function M(){var t=this.props;return"matrix("+D(t[0])+","+D(t[1])+","+D(t[4])+","+D(t[5])+","+D(t[12])+","+D(t[13])+")"}return function(){this.reset=n,this.rotate=s,this.rotateX=a,this.rotateY=o,this.rotateZ=h,this.skew=p,this.skewFromAxis=c,this.shear=l,this.scale=f,this.setTransform=u,this.translate=d,this.transform=m,this.applyToPoint=b,this.applyToX=P,this.applyToY=S,this.applyToZ=w,this.applyToPointArray=T,this.applyToTriplePoints=A,this.applyToPointStringified=C,this.toCSS=I,this.to2dCSS=M,this.clone=v,this.cloneFromProps=_,this.equals=g,this.inversePoints=k,this.inversePoint=E,this.getInverseMatrix=x,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(t){return(_typeof$3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(t){setLocationHref(t)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(t){setSubframeEnabled(t)}function setPrefix(t){setIdPrefix(t)}function loadAnimation(t){return!0===standalone&&(t.animationData=JSON.parse(animationData)),animationManager.loadAnimation(t)}function setQuality(t){if("string"==typeof t)switch(t){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(t)&&t>1&&setDefaultCurveSegments(t);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(t,e){"expressions"===t&&setExpressionsPlugin(e)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split("&"),r=0;r<e.length;r+=1){var i=e[r].split("=");if(decodeURIComponent(i[0])==t)return decodeURIComponent(i[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.10.0";var queryString="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{"object"!==_typeof$3(exports)&&(window.bodymovin=lottie)}catch(t){}var ShapeModifiers=function(){var t={},e={};return t.registerModifier=function(t,r){e[t]||(e[t]=r)},t.getModifier=function(t,r,i){return new e[t](r,i)},t}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},ShapeModifier.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(t,e){this.s=PropertyFactory.getProp(t,e.s,0,.01,this),this.e=PropertyFactory.getProp(t,e.e,0,.01,this),this.o=PropertyFactory.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(t,e,r,i,n){var s=[];e<=1?s.push({s:t,e:e}):t>=1?s.push({s:t-1,e:e-1}):(s.push({s:t,e:1}),s.push({s:0,e:e-1}));var a,o,h=[],l=s.length;for(a=0;a<l;a+=1){var p,c;if(!((o=s[a]).e*n<i||o.s*n>i+r))p=o.s*n<=i?0:(o.s*n-i)/r,c=o.e*n>=i+r?1:(o.e*n-i)/r,h.push([p,c])}return h.length||h.push([0,0]),h},TrimModifier.prototype.releasePathsData=function(t){var e,r=t.length;for(e=0;e<r;e+=1)segmentsLengthPool.release(t[e]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){var e,r,i,n;if(this._mdf||t){var s=this.o.v%360/360;if(s<0&&(s+=1),(e=this.s.v>1?1+s:this.s.v<0?0+s:this.s.v+s)>(r=this.e.v>1?1+s:this.e.v<0?0+s:this.e.v+s)){var a=e;e=r,r=a}e=1e-4*Math.round(1e4*e),r=1e-4*Math.round(1e4*r),this.sValue=e,this.eValue=r}else e=this.sValue,r=this.eValue;var o,h,l,p,c,f=this.shapes.length,u=0;if(r===e)for(n=0;n<f;n+=1)this.shapes[n].localShapeCollection.releaseShapes(),this.shapes[n].shape._mdf=!0,this.shapes[n].shape.paths=this.shapes[n].localShapeCollection,this._mdf&&(this.shapes[n].pathsData.length=0);else if(1===r&&0===e||0===r&&1===e){if(this._mdf)for(n=0;n<f;n+=1)this.shapes[n].pathsData.length=0,this.shapes[n].shape._mdf=!0}else{var d,m,y=[];for(n=0;n<f;n+=1)if((d=this.shapes[n]).shape._mdf||this._mdf||t||2===this.m){if(h=(i=d.shape.paths)._length,c=0,!d.shape._mdf&&d.pathsData.length)c=d.totalShapeLength;else{for(l=this.releasePathsData(d.pathsData),o=0;o<h;o+=1)p=bez.getSegmentsLength(i.shapes[o]),l.push(p),c+=p.totalLength;d.totalShapeLength=c,d.pathsData=l}u+=c,d.shape._mdf=!0}else d.shape.paths=d.localShapeCollection;var g,v=e,_=r,b=0;for(n=f-1;n>=0;n-=1)if((d=this.shapes[n]).shape._mdf){for((m=d.localShapeCollection).releaseShapes(),2===this.m&&f>1?(g=this.calculateShapeEdges(e,r,d.totalShapeLength,b,u),b+=d.totalShapeLength):g=[[v,_]],h=g.length,o=0;o<h;o+=1){v=g[o][0],_=g[o][1],y.length=0,_<=1?y.push({s:d.totalShapeLength*v,e:d.totalShapeLength*_}):v>=1?y.push({s:d.totalShapeLength*(v-1),e:d.totalShapeLength*(_-1)}):(y.push({s:d.totalShapeLength*v,e:d.totalShapeLength}),y.push({s:0,e:d.totalShapeLength*(_-1)}));var P=this.addShapes(d,y[0]);if(y[0].s!==y[0].e){if(y.length>1)if(d.shape.paths.shapes[d.shape.paths._length-1].c){var S=P.pop();this.addPaths(P,m),P=this.addShapes(d,y[1],S)}else this.addPaths(P,m),P=this.addShapes(d,y[1]);this.addPaths(P,m)}}d.shape.paths=m}}},TrimModifier.prototype.addPaths=function(t,e){var r,i=t.length;for(r=0;r<i;r+=1)e.addShape(t[r])},TrimModifier.prototype.addSegment=function(t,e,r,i,n,s,a){n.setXYAt(e[0],e[1],"o",s),n.setXYAt(r[0],r[1],"i",s+1),a&&n.setXYAt(t[0],t[1],"v",s),n.setXYAt(i[0],i[1],"v",s+1)},TrimModifier.prototype.addSegmentFromArray=function(t,e,r,i){e.setXYAt(t[1],t[5],"o",r),e.setXYAt(t[2],t[6],"i",r+1),i&&e.setXYAt(t[0],t[4],"v",r),e.setXYAt(t[3],t[7],"v",r+1)},TrimModifier.prototype.addShapes=function(t,e,r){var i,n,s,a,o,h,l,p,c=t.pathsData,f=t.shape.paths.shapes,u=t.shape.paths._length,d=0,m=[],y=!0;for(r?(o=r._length,p=r._length):(r=shapePool.newElement(),o=0,p=0),m.push(r),i=0;i<u;i+=1){for(h=c[i].lengths,r.c=f[i].c,s=f[i].c?h.length:h.length+1,n=1;n<s;n+=1)if(d+(a=h[n-1]).addedLength<e.s)d+=a.addedLength,r.c=!1;else{if(d>e.e){r.c=!1;break}e.s<=d&&e.e>=d+a.addedLength?(this.addSegment(f[i].v[n-1],f[i].o[n-1],f[i].i[n],f[i].v[n],r,o,y),y=!1):(l=bez.getNewSegment(f[i].v[n-1],f[i].v[n],f[i].o[n-1],f[i].i[n],(e.s-d)/a.addedLength,(e.e-d)/a.addedLength,h[n-1]),this.addSegmentFromArray(l,r,o,y),y=!1,r.c=!1),d+=a.addedLength,o+=1}if(f[i].c&&h.length){if(a=h[n-1],d<=e.e){var g=h[n-1].addedLength;e.s<=d&&e.e>=d+g?(this.addSegment(f[i].v[n-1],f[i].o[n-1],f[i].i[0],f[i].v[0],r,o,y),y=!1):(l=bez.getNewSegment(f[i].v[n-1],f[i].v[0],f[i].o[n-1],f[i].i[0],(e.s-d)/g,(e.e-d)/g,h[n-1]),this.addSegmentFromArray(l,r,o,y),y=!1,r.c=!1)}else r.c=!1;d+=a.addedLength,o+=1}if(r._length&&(r.setXYAt(r.v[p][0],r.v[p][1],"i",p),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),d>e.e)break;i<u-1&&(r=shapePool.newElement(),y=!0,m.push(r),o=0)}return m},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(t,e){var r=e/100,i=[0,0],n=t._length,s=0;for(s=0;s<n;s+=1)i[0]+=t.v[s][0],i[1]+=t.v[s][1];i[0]/=n,i[1]/=n;var a,o,h,l,p,c,f=shapePool.newElement();for(f.c=t.c,s=0;s<n;s+=1)a=t.v[s][0]+(i[0]-t.v[s][0])*r,o=t.v[s][1]+(i[1]-t.v[s][1])*r,h=t.o[s][0]+(i[0]-t.o[s][0])*-r,l=t.o[s][1]+(i[1]-t.o[s][1])*-r,p=t.i[s][0]+(i[0]-t.i[s][0])*-r,c=t.i[s][1]+(i[1]-t.i[s][1])*-r,f.setTripleAt(a,o,h,l,p,c,s);return f},PuckerAndBloatModifier.prototype.processShapes=function(t){var e,r,i,n,s,a,o=this.shapes.length,h=this.amount.v;if(0!==h)for(r=0;r<o;r+=1){if(a=(s=this.shapes[r]).localShapeCollection,s.shape._mdf||this._mdf||t)for(a.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,n=s.shape.paths._length,i=0;i<n;i+=1)a.addShape(this.processPath(e[i],h));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var t=[0,0];function e(t,e,r){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(r||t),e.p&&e.p.s?(this.px=PropertyFactory.getProp(t,e.p.x,0,0,this),this.py=PropertyFactory.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=PropertyFactory.getProp(t,e.p.z,0,0,this))):this.p=PropertyFactory.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=PropertyFactory.getProp(t,e.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(t,e.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(t,e.rz,0,degToRads,this),e.or.k[0].ti){var i,n=e.or.k.length;for(i=0;i<n;i+=1)e.or.k[i].to=null,e.or.k[i].ti=null}this.or=PropertyFactory.getProp(t,e.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(t,e.r||{k:0},0,degToRads,this);e.sk&&(this.sk=PropertyFactory.getProp(t,e.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(t,e.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(t,e.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(t,e.s||{k:[100,100,100]},1,.01,this),e.o?this.o=PropertyFactory.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return e.prototype={applyToMatrix:function(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(e){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||e){var r;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var i,n;if(r=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(i=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/r,0),n=this.p.getValueAtTime(this.p.keyframes[0].t/r,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(i=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/r,0),n=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/r,0)):(i=this.p.pv,n=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/r,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){i=[],n=[];var s=this.px,a=this.py;s._caching.lastFrame+s.offsetTime<=s.keyframes[0].t?(i[0]=s.getValueAtTime((s.keyframes[0].t+.01)/r,0),i[1]=a.getValueAtTime((a.keyframes[0].t+.01)/r,0),n[0]=s.getValueAtTime(s.keyframes[0].t/r,0),n[1]=a.getValueAtTime(a.keyframes[0].t/r,0)):s._caching.lastFrame+s.offsetTime>=s.keyframes[s.keyframes.length-1].t?(i[0]=s.getValueAtTime(s.keyframes[s.keyframes.length-1].t/r,0),i[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/r,0),n[0]=s.getValueAtTime((s.keyframes[s.keyframes.length-1].t-.01)/r,0),n[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/r,0)):(i=[s.pv,a.pv],n[0]=s.getValueAtTime((s._caching.lastFrame+s.offsetTime-.01)/r,s.offsetTime),n[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/r,a.offsetTime))}else i=n=t;this.v.rotate(-Math.atan2(i[1]-n[1],i[0]-n[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],e),e.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},e.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(t,r,i){return new e(t,r,i)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(t,e){return 1e5*Math.abs(t-e)<=Math.min(Math.abs(t),Math.abs(e))}function floatZero(t){return Math.abs(t)<=1e-5}function lerp(t,e,r){return t*(1-r)+e*r}function lerpPoint(t,e,r){return[lerp(t[0],e[0],r),lerp(t[1],e[1],r)]}function quadRoots(t,e,r){if(0===t)return[];var i=e*e-4*t*r;if(i<0)return[];var n=-e/(2*t);if(0===i)return[n];var s=Math.sqrt(i)/(2*t);return[n-s,n+s]}function polynomialCoefficients(t,e,r,i){return[3*e-t-3*r+i,3*t-6*e+3*r,-3*t+3*e,t]}function singlePoint(t){return new PolynomialBezier(t,t,t,t,!1)}function PolynomialBezier(t,e,r,i,n){n&&pointEqual(t,e)&&(e=lerpPoint(t,i,1/3)),n&&pointEqual(r,i)&&(r=lerpPoint(t,i,2/3));var s=polynomialCoefficients(t[0],e[0],r[0],i[0]),a=polynomialCoefficients(t[1],e[1],r[1],i[1]);this.a=[s[0],a[0]],this.b=[s[1],a[1]],this.c=[s[2],a[2]],this.d=[s[3],a[3]],this.points=[t,e,r,i]}function extrema(t,e){var r=t.points[0][e],i=t.points[t.points.length-1][e];if(r>i){var n=i;i=r,r=n}for(var s=quadRoots(3*t.a[e],2*t.b[e],t.c[e]),a=0;a<s.length;a+=1)if(s[a]>0&&s[a]<1){var o=t.point(s[a])[e];o<r?r=o:o>i&&(i=o)}return{min:r,max:i}}function intersectData(t,e,r){var i=t.boundingBox();return{cx:i.cx,cy:i.cy,width:i.width,height:i.height,bez:t,t:(e+r)/2,t1:e,t2:r}}function splitData(t){var e=t.bez.split(.5);return[intersectData(e[0],t.t1,t.t),intersectData(e[1],t.t,t.t2)]}function boxIntersect(t,e){return 2*Math.abs(t.cx-e.cx)<t.width+e.width&&2*Math.abs(t.cy-e.cy)<t.height+e.height}function intersectsImpl(t,e,r,i,n,s){if(boxIntersect(t,e))if(r>=s||t.width<=i&&t.height<=i&&e.width<=i&&e.height<=i)n.push([t.t,e.t]);else{var a=splitData(t),o=splitData(e);intersectsImpl(a[0],o[0],r+1,i,n,s),intersectsImpl(a[0],o[1],r+1,i,n,s),intersectsImpl(a[1],o[0],r+1,i,n,s),intersectsImpl(a[1],o[1],r+1,i,n,s)}}function crossProduct(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function lineIntersection(t,e,r,i){var n=[t[0],t[1],1],s=[e[0],e[1],1],a=[r[0],r[1],1],o=[i[0],i[1],1],h=crossProduct(crossProduct(n,s),crossProduct(a,o));return floatZero(h[2])?null:[h[0]/h[2],h[1]/h[2]]}function polarOffset(t,e,r){return[t[0]+Math.cos(e)*r,t[1]-Math.sin(e)*r]}function pointDistance(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function pointEqual(t,e){return floatEqual(t[0],e[0])&&floatEqual(t[1],e[1])}function ZigZagModifier(){}function setPoint(t,e,r,i,n,s,a){var o=r-Math.PI/2,h=r+Math.PI/2,l=e[0]+Math.cos(r)*i*n,p=e[1]-Math.sin(r)*i*n;t.setTripleAt(l,p,l+Math.cos(o)*s,p-Math.sin(o)*s,l+Math.cos(h)*a,p-Math.sin(h)*a,t.length())}function getPerpendicularVector(t,e){var r=[e[0]-t[0],e[1]-t[1]],i=.5*-Math.PI;return[Math.cos(i)*r[0]-Math.sin(i)*r[1],Math.sin(i)*r[0]+Math.cos(i)*r[1]]}function getProjectingAngle(t,e){var r=0===e?t.length()-1:e-1,i=(e+1)%t.length(),n=getPerpendicularVector(t.v[r],t.v[i]);return Math.atan2(0,1)-Math.atan2(n[1],n[0])}function zigZagCorner(t,e,r,i,n,s,a){var o=getProjectingAngle(e,r),h=e.v[r%e._length],l=e.v[0===r?e._length-1:r-1],p=e.v[(r+1)%e._length],c=2===s?Math.sqrt(Math.pow(h[0]-l[0],2)+Math.pow(h[1]-l[1],2)):0,f=2===s?Math.sqrt(Math.pow(h[0]-p[0],2)+Math.pow(h[1]-p[1],2)):0;setPoint(t,e.v[r%e._length],o,a,i,f/(2*(n+1)),c/(2*(n+1)),s)}function zigZagSegment(t,e,r,i,n,s){for(var a=0;a<i;a+=1){var o=(a+1)/(i+1),h=2===n?Math.sqrt(Math.pow(e.points[3][0]-e.points[0][0],2)+Math.pow(e.points[3][1]-e.points[0][1],2)):0,l=e.normalAngle(o);setPoint(t,e.point(o),l,s,r,h/(2*(i+1)),h/(2*(i+1)),n),s=-s}return s}function linearOffset(t,e,r){var i=Math.atan2(e[0]-t[0],e[1]-t[1]);return[polarOffset(t,i,r),polarOffset(e,i,r)]}function offsetSegment(t,e){var r,i,n,s,a,o,h;r=(h=linearOffset(t.points[0],t.points[1],e))[0],i=h[1],n=(h=linearOffset(t.points[1],t.points[2],e))[0],s=h[1],a=(h=linearOffset(t.points[2],t.points[3],e))[0],o=h[1];var l=lineIntersection(r,i,n,s);null===l&&(l=i);var p=lineIntersection(a,o,n,s);return null===p&&(p=a),new PolynomialBezier(r,l,p,o)}function joinLines(t,e,r,i,n){var s=e.points[3],a=r.points[0];if(3===i)return s;if(pointEqual(s,a))return s;if(2===i){var o=-e.tangentAngle(1),h=-r.tangentAngle(0)+Math.PI,l=lineIntersection(s,polarOffset(s,o+Math.PI/2,100),a,polarOffset(a,o+Math.PI/2,100)),p=l?pointDistance(l,s):pointDistance(s,a)/2,c=polarOffset(s,o,2*p*roundCorner);return t.setXYAt(c[0],c[1],"o",t.length()-1),c=polarOffset(a,h,2*p*roundCorner),t.setTripleAt(a[0],a[1],a[0],a[1],c[0],c[1],t.length()),a}var f=lineIntersection(pointEqual(s,e.points[2])?e.points[0]:e.points[2],s,a,pointEqual(a,r.points[1])?r.points[3]:r.points[1]);return f&&pointDistance(f,s)<n?(t.setTripleAt(f[0],f[1],f[0],f[1],f[0],f[1],t.length()),f):s}function getIntersection(t,e){var r=t.intersections(e);return r.length&&floatEqual(r[0][0],1)&&r.shift(),r.length?r[0]:null}function pruneSegmentIntersection(t,e){var r=t.slice(),i=e.slice(),n=getIntersection(t[t.length-1],e[0]);return n&&(r[t.length-1]=t[t.length-1].split(n[0])[0],i[0]=e[0].split(n[1])[1]),t.length>1&&e.length>1&&(n=getIntersection(t[0],e[e.length-1]))?[[t[0].split(n[0])[0]],[e[e.length-1].split(n[1])[1]]]:[r,i]}function pruneIntersections(t){for(var e,r=1;r<t.length;r+=1)e=pruneSegmentIntersection(t[r-1],t[r]),t[r-1]=e[0],t[r]=e[1];return t.length>1&&(e=pruneSegmentIntersection(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}function offsetSegmentSplit(t,e){var r,i,n,s,a=t.inflectionPoints();if(0===a.length)return[offsetSegment(t,e)];if(1===a.length||floatEqual(a[1],1))return r=(n=t.split(a[0]))[0],i=n[1],[offsetSegment(r,e),offsetSegment(i,e)];r=(n=t.split(a[0]))[0];var o=(a[1]-a[0])/(1-a[0]);return s=(n=n[1].split(o))[0],i=n[1],[offsetSegment(r,e),offsetSegment(s,e),offsetSegment(i,e)]}function OffsetPathModifier(){}function getFontProperties(t){for(var e=t.fStyle?t.fStyle.split(" "):[],r="normal",i="normal",n=e.length,s=0;s<n;s+=1)switch(e[s].toLowerCase()){case"italic":i="italic";break;case"bold":r="700";break;case"black":r="900";break;case"medium":r="500";break;case"regular":case"normal":r="400";break;case"light":case"thin":r="200"}return{style:i,weight:t.fWeight||r}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(t,e.c,0,null,this),this.o=PropertyFactory.getProp(t,e.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(t,e.tr,this),this.so=PropertyFactory.getProp(t,e.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(t,e,r,i,n,s){var a=s?-1:1,o=i.s.v[0]+(1-i.s.v[0])*(1-n),h=i.s.v[1]+(1-i.s.v[1])*(1-n);t.translate(i.p.v[0]*a*n,i.p.v[1]*a*n,i.p.v[2]),e.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),e.rotate(-i.r.v*a*n),e.translate(i.a.v[0],i.a.v[1],i.a.v[2]),r.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),r.scale(s?1/o:o,s?1/h:h),r.translate(i.a.v[0],i.a.v[1],i.a.v[2])},RepeaterModifier.prototype.init=function(t,e,r,i){for(this.elem=t,this.arr=e,this.pos=r,this.elemsData=i,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[r]);r>0;)r-=1,this._elements.unshift(e[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e]._processed=!1,"gr"===t[e].ty&&this.resetElements(t[e].it)},RepeaterModifier.prototype.cloneElements=function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},RepeaterModifier.prototype.changeGroupRender=function(t,e){var r,i=t.length;for(r=0;r<i;r+=1)t[r]._render=e,"gr"===t[r].ty&&this.changeGroupRender(t[r].it,e)},RepeaterModifier.prototype.processShapes=function(t){var e,r,i,n,s,a=!1;if(this._mdf||t){var o,h=Math.ceil(this.c.v);if(this._groups.length<h){for(;this._groups.length<h;){var l={it:this.cloneElements(this._elements),ty:"gr"};l.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,l),this._groups.splice(0,0,l),this._currentCopies+=1}this.elem.reloadShapes(),a=!0}for(s=0,i=0;i<=this._groups.length-1;i+=1){if(o=s<h,this._groups[i]._render=o,this.changeGroupRender(this._groups[i].it,o),!o){var p=this.elemsData[i].it,c=p[p.length-1];0!==c.transform.op.v?(c.transform.op._mdf=!0,c.transform.op.v=0):c.transform.op._mdf=!1}s+=1}this._currentCopies=h;var f=this.o.v,u=f%1,d=f>0?Math.floor(f):Math.ceil(f),m=this.pMatrix.props,y=this.rMatrix.props,g=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var v,_,b=0;if(f>0){for(;b<d;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),b+=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,u,!1),b+=u)}else if(f<0){for(;b>d;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),b-=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-u,!0),b-=u)}for(i=1===this.data.m?0:this._currentCopies-1,n=1===this.data.m?1:-1,s=this._currentCopies;s;){if(_=(r=(e=this.elemsData[i].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),0!==b){for((0!==i&&1===n||i!==this._currentCopies-1&&-1===n)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),v=0;v<_;v+=1)r[v]=this.matrix.props[v];this.matrix.reset()}else for(this.matrix.reset(),v=0;v<_;v+=1)r[v]=this.matrix.props[v];b+=1,s-=1,i+=n}}else for(s=this._currentCopies,i=0,n=1;s;)r=(e=this.elemsData[i].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,s-=1,i+=n;return a},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(t,e){var r,i=shapePool.newElement();i.c=t.c;var n,s,a,o,h,l,p,c,f,u,d,m,y=t._length,g=0;for(r=0;r<y;r+=1)n=t.v[r],a=t.o[r],s=t.i[r],n[0]===a[0]&&n[1]===a[1]&&n[0]===s[0]&&n[1]===s[1]?0!==r&&r!==y-1||t.c?(o=0===r?t.v[y-1]:t.v[r-1],l=(h=Math.sqrt(Math.pow(n[0]-o[0],2)+Math.pow(n[1]-o[1],2)))?Math.min(h/2,e)/h:0,p=d=n[0]+(o[0]-n[0])*l,c=m=n[1]-(n[1]-o[1])*l,f=p-(p-n[0])*roundCorner,u=c-(c-n[1])*roundCorner,i.setTripleAt(p,c,f,u,d,m,g),g+=1,o=r===y-1?t.v[0]:t.v[r+1],l=(h=Math.sqrt(Math.pow(n[0]-o[0],2)+Math.pow(n[1]-o[1],2)))?Math.min(h/2,e)/h:0,p=f=n[0]+(o[0]-n[0])*l,c=u=n[1]+(o[1]-n[1])*l,d=p-(p-n[0])*roundCorner,m=c-(c-n[1])*roundCorner,i.setTripleAt(p,c,f,u,d,m,g),g+=1):(i.setTripleAt(n[0],n[1],a[0],a[1],s[0],s[1],g),g+=1):(i.setTripleAt(t.v[r][0],t.v[r][1],t.o[r][0],t.o[r][1],t.i[r][0],t.i[r][1],g),g+=1);return i},RoundCornersModifier.prototype.processShapes=function(t){var e,r,i,n,s,a,o=this.shapes.length,h=this.rd.v;if(0!==h)for(r=0;r<o;r+=1){if(a=(s=this.shapes[r]).localShapeCollection,s.shape._mdf||this._mdf||t)for(a.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,n=s.shape.paths._length,i=0;i<n;i+=1)a.addShape(this.processPath(e[i],h));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]},PolynomialBezier.prototype.derivative=function(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(t){var e=this.derivative(t);return Math.atan2(e[1],e[0])},PolynomialBezier.prototype.normalAngle=function(t){var e=this.derivative(t);return Math.atan2(e[0],e[1])},PolynomialBezier.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(t))return[];var e=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,r=e*e-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(r<0)return[];var i=Math.sqrt(r);return floatZero(i)?i>0&&i<1?[e]:[]:[e-i,e+i].filter((function(t){return t>0&&t<1}))},PolynomialBezier.prototype.split=function(t){if(t<=0)return[singlePoint(this.points[0]),this];if(t>=1)return[this,singlePoint(this.points[this.points.length-1])];var e=lerpPoint(this.points[0],this.points[1],t),r=lerpPoint(this.points[1],this.points[2],t),i=lerpPoint(this.points[2],this.points[3],t),n=lerpPoint(e,r,t),s=lerpPoint(r,i,t),a=lerpPoint(n,s,t);return[new PolynomialBezier(this.points[0],e,n,a,!0),new PolynomialBezier(a,s,i,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}},PolynomialBezier.prototype.intersections=function(t,e,r){void 0===e&&(e=2),void 0===r&&(r=7);var i=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,i,r),i},PolynomialBezier.shapeSegment=function(t,e){var r=(e+1)%t.length();return new PolynomialBezier(t.v[e],t.o[e],t.i[r],t.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(t,e){var r=(e+1)%t.length();return new PolynomialBezier(t.v[r],t.i[r],t.o[e],t.v[e],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(t,e.s,0,null,this),this.frequency=PropertyFactory.getProp(t,e.r,0,null,this),this.pointsType=PropertyFactory.getProp(t,e.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(t,e,r,i){var n=t._length,s=shapePool.newElement();if(s.c=t.c,t.c||(n-=1),0===n)return s;var a=-1,o=PolynomialBezier.shapeSegment(t,0);zigZagCorner(s,t,0,e,r,i,a);for(var h=0;h<n;h+=1)a=zigZagSegment(s,o,e,r,i,-a),o=h!==n-1||t.c?PolynomialBezier.shapeSegment(t,(h+1)%n):null,zigZagCorner(s,t,h+1,e,r,i,a);return s},ZigZagModifier.prototype.processShapes=function(t){var e,r,i,n,s,a,o=this.shapes.length,h=this.amplitude.v,l=Math.max(0,Math.round(this.frequency.v)),p=this.pointsType.v;if(0!==h)for(r=0;r<o;r+=1){if(a=(s=this.shapes[r]).localShapeCollection,s.shape._mdf||this._mdf||t)for(a.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,n=s.shape.paths._length,i=0;i<n;i+=1)a.addShape(this.processPath(e[i],h,l,p));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this.miterLimit=PropertyFactory.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(t,e,r,i){var n=shapePool.newElement();n.c=t.c;var s,a,o,h=t.length();t.c||(h-=1);var l=[];for(s=0;s<h;s+=1)o=PolynomialBezier.shapeSegment(t,s),l.push(offsetSegmentSplit(o,e));if(!t.c)for(s=h-1;s>=0;s-=1)o=PolynomialBezier.shapeSegmentInverted(t,s),l.push(offsetSegmentSplit(o,e));l=pruneIntersections(l);var p=null,c=null;for(s=0;s<l.length;s+=1){var f=l[s];for(c&&(p=joinLines(n,c,f[0],r,i)),c=f[f.length-1],a=0;a<f.length;a+=1)o=f[a],p&&pointEqual(o.points[0],p)?n.setXYAt(o.points[1][0],o.points[1][1],"o",n.length()-1):n.setTripleAt(o.points[0][0],o.points[0][1],o.points[1][0],o.points[1][1],o.points[0][0],o.points[0][1],n.length()),n.setTripleAt(o.points[3][0],o.points[3][1],o.points[3][0],o.points[3][1],o.points[2][0],o.points[2][1],n.length()),p=o.points[3]}return l.length&&joinLines(n,c,l[0][0],r,i),n},OffsetPathModifier.prototype.processShapes=function(t){var e,r,i,n,s,a,o=this.shapes.length,h=this.amount.v,l=this.miterLimit.v,p=this.lineJoin;if(0!==h)for(r=0;r<o;r+=1){if(a=(s=this.shapes[r]).localShapeCollection,s.shape._mdf||this._mdf||t)for(a.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,n=s.shape.paths._length,i=0;i<n;i+=1)a.addShape(this.processPath(e[i],h,p,l));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var t={w:0,size:0,shapes:[],data:{shapes:[]}},e=[];e=e.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var r=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],i=[65039,8205];function n(t,e){var r=createTag("span");r.setAttribute("aria-hidden",!0),r.style.fontFamily=e;var i=createTag("span");i.innerText="giItT1WQy@!-/#",r.style.position="absolute",r.style.left="-10000px",r.style.top="-10000px",r.style.fontSize="300px",r.style.fontVariant="normal",r.style.fontStyle="normal",r.style.fontWeight="normal",r.style.letterSpacing="0",r.appendChild(i),document.body.appendChild(r);var n=i.offsetWidth;return i.style.fontFamily=function(t){var e,r=t.split(","),i=r.length,n=[];for(e=0;e<i;e+=1)"sans-serif"!==r[e]&&"monospace"!==r[e]&&n.push(r[e]);return n.join(",")}(t)+", "+e,{node:i,w:n,parent:r}}function s(t,e){var r,i=document.body&&e?"svg":"canvas",n=getFontProperties(t);if("svg"===i){var s=createNS("text");s.style.fontSize="100px",s.setAttribute("font-family",t.fFamily),s.setAttribute("font-style",n.style),s.setAttribute("font-weight",n.weight),s.textContent="1",t.fClass?(s.style.fontFamily="inherit",s.setAttribute("class",t.fClass)):s.style.fontFamily=t.fFamily,e.appendChild(s),r=s}else{var a=new OffscreenCanvas(500,500).getContext("2d");a.font=n.style+" "+n.weight+" 100px "+t.fFamily,r=a}return{measureText:function(t){return"svg"===i?(r.textContent=t,r.getComputedTextLength()):r.measureText(t).width}}}var a=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};return a.isModifier=function(t,e){var i=t.toString(16)+e.toString(16);return-1!==r.indexOf(i)},a.isZeroWidthJoiner=function(t,e){return e?t===i[0]&&e===i[1]:t===i[1]},a.isCombinedCharacter=function(t){return-1!==e.indexOf(t)},a.prototype={addChars:function(t){if(t){var e;this.chars||(this.chars=[]);var r,i,n=t.length,s=this.chars.length;for(e=0;e<n;e+=1){for(r=0,i=!1;r<s;)this.chars[r].style===t[e].style&&this.chars[r].fFamily===t[e].fFamily&&this.chars[r].ch===t[e].ch&&(i=!0),r+=1;i||(this.chars.push(t[e]),s+=1)}}},addFonts:function(t,e){if(t){if(this.chars)return this.isLoaded=!0,void(this.fonts=t.list);if(!document.body)return this.isLoaded=!0,t.list.forEach((function(t){t.helper=s(t),t.cache={}})),void(this.fonts=t.list);var r,i=t.list,a=i.length,o=a;for(r=0;r<a;r+=1){var h,l,p=!0;if(i[r].loaded=!1,i[r].monoCase=n(i[r].fFamily,"monospace"),i[r].sansCase=n(i[r].fFamily,"sans-serif"),i[r].fPath){if("p"===i[r].fOrigin||3===i[r].origin){if((h=document.querySelectorAll('style[f-forigin="p"][f-family="'+i[r].fFamily+'"], style[f-origin="3"][f-family="'+i[r].fFamily+'"]')).length>0&&(p=!1),p){var c=createTag("style");c.setAttribute("f-forigin",i[r].fOrigin),c.setAttribute("f-origin",i[r].origin),c.setAttribute("f-family",i[r].fFamily),c.type="text/css",c.innerText="@font-face {font-family: "+i[r].fFamily+"; font-style: normal; src: url('"+i[r].fPath+"');}",e.appendChild(c)}}else if("g"===i[r].fOrigin||1===i[r].origin){for(h=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),l=0;l<h.length;l+=1)-1!==h[l].href.indexOf(i[r].fPath)&&(p=!1);if(p){var f=createTag("link");f.setAttribute("f-forigin",i[r].fOrigin),f.setAttribute("f-origin",i[r].origin),f.type="text/css",f.rel="stylesheet",f.href=i[r].fPath,document.body.appendChild(f)}}else if("t"===i[r].fOrigin||2===i[r].origin){for(h=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),l=0;l<h.length;l+=1)i[r].fPath===h[l].src&&(p=!1);if(p){var u=createTag("link");u.setAttribute("f-forigin",i[r].fOrigin),u.setAttribute("f-origin",i[r].origin),u.setAttribute("rel","stylesheet"),u.setAttribute("href",i[r].fPath),e.appendChild(u)}}}else i[r].loaded=!0,o-=1;i[r].helper=s(i[r],e),i[r].cache={},this.fonts.push(i[r])}0===o?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(e,r,i){for(var n=0,s=this.chars.length;n<s;){if(this.chars[n].ch===e&&this.chars[n].style===r&&this.chars[n].fFamily===i)return this.chars[n];n+=1}return("string"==typeof e&&13!==e.charCodeAt(0)||!e)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",e,r,i)),t},getFontByName:function(t){for(var e=0,r=this.fonts.length;e<r;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]},measureText:function(t,e,r){var i=this.getFontByName(e),n=t.charCodeAt(0);if(!i.cache[n+1]){var s=i.helper;if(" "===t){var a=s.measureText("|"+t+"|"),o=s.measureText("||");i.cache[n+1]=(a-o)/100}else i.cache[n+1]=s.measureText(t)/100}return i.cache[n+1]*r},checkLoadedFonts:function(){var t,e,r,i=this.fonts.length,n=i;for(t=0;t<i;t+=1)this.fonts[t].loaded?n-=1:"n"===this.fonts[t].fOrigin||0===this.fonts[t].origin?this.fonts[t].loaded=!0:(e=this.fonts[t].monoCase.node,r=this.fonts[t].monoCase.w,e.offsetWidth!==r?(n-=1,this.fonts[t].loaded=!0):(e=this.fonts[t].sansCase.node,r=this.fonts[t].sansCase.w,e.offsetWidth!==r&&(n-=1,this.fonts[t].loaded=!0)),this.fonts[t].loaded&&(this.fonts[t].sansCase.parent.parentNode.removeChild(this.fonts[t].sansCase.parent),this.fonts[t].monoCase.parent.parentNode.removeChild(this.fonts[t].monoCase.parent)));0!==n&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}},a}();function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t<e;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(t){return blendModeEnums[t]||""}),blendModeEnums;function SliderEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function AngleEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function ColorEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,1,0,r)}function PointEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,1,0,r)}function LayerIndexEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function MaskIndexEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function CheckboxEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function NoValueEffect(){this.p={}}function EffectsManager(t,e){var r,i=t.ef||[];this.effectElements=[];var n,s=i.length;for(r=0;r<s;r+=1)n=new GroupEffect(i[r],e),this.effectElements.push(n)}function GroupEffect(t,e){this.init(t,e)}function BaseElement(){}function FrameElement(){}function FootageElement(t,e,r){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,r)}function AudioElement(t,e,r){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,r),this._isPlaying=!1,this._canPlay=!1;var i=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(i),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}function TransformElement(){}function MaskElement(t,e,r){this.data=t,this.element=e,this.globalData=r,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var i,n,s=this.globalData.defs,a=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(a),this.solidPath="";var o,h,l,p,c,f,u=this.masksProperties,d=0,m=[],y=createElementID(),g="clipPath",v="clip-path";for(i=0;i<a;i+=1)if(("a"!==u[i].mode&&"n"!==u[i].mode||u[i].inv||100!==u[i].o.k||u[i].o.x)&&(g="mask",v="mask"),"s"!==u[i].mode&&"i"!==u[i].mode||0!==d?l=null:((l=createNS("rect")).setAttribute("fill","#ffffff"),l.setAttribute("width",this.element.comp.data.w||0),l.setAttribute("height",this.element.comp.data.h||0),m.push(l)),n=createNS("path"),"n"===u[i].mode)this.viewData[i]={op:PropertyFactory.getProp(this.element,u[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,u[i],3),elem:n,lastPath:""},s.appendChild(n);else{var _;if(d+=1,n.setAttribute("fill","s"===u[i].mode?"#000000":"#ffffff"),n.setAttribute("clip-rule","nonzero"),0!==u[i].x.k?(g="mask",v="mask",f=PropertyFactory.getProp(this.element,u[i].x,0,null,this.element),_=createElementID(),(p=createNS("filter")).setAttribute("id",_),(c=createNS("feMorphology")).setAttribute("operator","erode"),c.setAttribute("in","SourceGraphic"),c.setAttribute("radius","0"),p.appendChild(c),s.appendChild(p),n.setAttribute("stroke","s"===u[i].mode?"#000000":"#ffffff")):(c=null,f=null),this.storedData[i]={elem:n,x:f,expan:c,lastPath:"",lastOperator:"",filterId:_,lastRadius:0},"i"===u[i].mode){h=m.length;var b=createNS("g");for(o=0;o<h;o+=1)b.appendChild(m[o]);var P=createNS("mask");P.setAttribute("mask-type","alpha"),P.setAttribute("id",y+"_"+d),P.appendChild(n),s.appendChild(P),b.setAttribute("mask","url("+getLocationHref()+"#"+y+"_"+d+")"),m.length=0,m.push(b)}else m.push(n);u[i].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[i]={elem:n,lastPath:"",op:PropertyFactory.getProp(this.element,u[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,u[i],3),invRect:l},this.viewData[i].prop.k||this.drawPath(u[i],this.viewData[i].prop.v,this.viewData[i])}for(this.maskElement=createNS(g),a=m.length,i=0;i<a;i+=1)this.maskElement.appendChild(m[i]);d>0&&(this.maskElement.setAttribute("id",y),this.element.maskedElement.setAttribute(v,"url("+getLocationHref()+"#"+y+")"),s.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,e){var r;this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var i,n=this.data.ef.length,s=this.data.ef;for(r=0;r<n;r+=1){switch(i=null,s[r].ty){case 0:i=new SliderEffect(s[r],e,this);break;case 1:i=new AngleEffect(s[r],e,this);break;case 2:i=new ColorEffect(s[r],e,this);break;case 3:i=new PointEffect(s[r],e,this);break;case 4:case 7:i=new CheckboxEffect(s[r],e,this);break;case 10:i=new LayerIndexEffect(s[r],e,this);break;case 11:i=new MaskIndexEffect(s[r],e,this);break;case 5:i=new EffectsManager(s[r],e,this);break;default:i=new NoValueEffect(s[r],e,this)}i&&this.effectElements.push(i)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if("n"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},initExpressions:function(){var t=getExpressionInterfaces();if(t){var e=t("layer"),r=t("effects"),i=t("shape"),n=t("text"),s=t("comp");this.layerInterface=e(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var a=r.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(a),0===this.data.ty||this.data.xt?this.compInterface=s(this):4===this.data.ty?(this.layerInterface.shapeInterface=i(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=n(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var t=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(t,e,r){this.globalData=e,this.comp=r,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){var r,i=this.dynamicProperties.length;for(r=0;r<i;r+=1)(e||this._isParent&&"transform"===this.dynamicProperties[r].propType)&&(this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var t=getExpressionInterfaces();if(t){var e=t("footage");this.layerInterface=e(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var e=this.tm.v;this._currentTime=e}this._volume=this.lv.v[0];var r=this._volume*this._volumeMultiplier;this._previousVolume!==r&&(this._previousVolume=r,this.audio.volume(r))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(t){var e,r,i=this.layers.length;for(this.completeLayers=!0,e=i-1;e>=0;e-=1)this.elements[e]||(r=this.layers[e]).ip-r.st<=t-this.layers[e].st&&r.op-r.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t);default:return this.createNull(t)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(t){var e;this.completeLayers=!1;var r,i=t.length,n=this.layers.length;for(e=0;e<i;e+=1)for(r=0;r<n;){if(this.layers[r].id===t[e].id){this.layers[r]=t[e];break}r+=1}},BaseRenderer.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(t,e,r){for(var i=this.elements,n=this.layers,s=0,a=n.length;s<a;)n[s].ind==e&&(i[s]&&!0!==i[s]?(r.push(i[s]),i[s].setAsParent(),void 0!==n[s].parent?this.buildElementParenting(t,n[s].parent,r):t.setHierarchy(r)):(this.buildItem(s),this.addPendingElement(t))),s+=1},BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t)},BaseRenderer.prototype.searchExtraCompositions=function(t){var e,r=t.length;for(e=0;e<r;e+=1)if(t[e].xt){var i=this.createComp(t[e]);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},BaseRenderer.prototype.getElementByPath=function(t){var e,r=t.shift();if("number"==typeof r)e=this.elements[r];else{var i,n=this.elements.length;for(i=0;i<n;i+=1)if(this.elements[i].data.nm===r){e=this.elements[i];break}}return 0===t.length?e:e.getElementByPath(t)},BaseRenderer.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new FontManager,this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}},TransformElement.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Matrix},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,e=this.finalTransform.mat,r=0,i=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;r<i;){if(this.hierarchy[r].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}r+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),r=0;r<i;r+=1)t=this.hierarchy[r].finalTransform.mProp.v.props,e.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);for(var r,i=!0,n=this.comp;i;)n.finalTransform?(n.data.hasMask&&e.splice(0,0,n.finalTransform),n=n.comp):i=!1;var s,a=e.length;for(r=0;r<a;r+=1)s=e[r].mat.applyToPointArray(0,0,0),t=[t[0]-s[0],t[1]-s[1],0];return t},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var e,r=this.element.finalTransform.mat,i=this.masksProperties.length;for(e=0;e<i;e+=1)if((this.viewData[e].prop._mdf||t)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),(this.viewData[e].op._mdf||t)&&this.viewData[e].elem.setAttribute("fill-opacity",this.viewData[e].op.v),"n"!==this.masksProperties[e].mode&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[e].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[e].x&&(this.storedData[e].x._mdf||t))){var n=this.storedData[e].expan;this.storedData[e].x.v<0?("erode"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="erode",this.storedData[e].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[e].filterId+")")),n.setAttribute("radius",-this.storedData[e].x.v)):("dilate"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="dilate",this.storedData[e].elem.setAttribute("filter",null)),this.storedData[e].elem.setAttribute("stroke-width",2*this.storedData[e].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,t+=" h-"+this.globalData.compSize.w,t+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(t,e,r){var i,n,s=" M"+e.v[0][0]+","+e.v[0][1];for(n=e._length,i=1;i<n;i+=1)s+=" C"+e.o[i-1][0]+","+e.o[i-1][1]+" "+e.i[i][0]+","+e.i[i][1]+" "+e.v[i][0]+","+e.v[i][1];if(e.c&&n>1&&(s+=" C"+e.o[i-1][0]+","+e.o[i-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),r.lastPath!==s){var a="";r.elem&&(e.c&&(a=t.inv?this.solidPath+s:s),r.elem.setAttribute("d",a)),r.lastPath=s}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var t={};return t.createFilter=function(t,e){var r=createNS("filter");r.setAttribute("id",t),!0!==e&&(r.setAttribute("filterUnits","objectBoundingBox"),r.setAttribute("x","0%"),r.setAttribute("y","0%"),r.setAttribute("width","100%"),r.setAttribute("height","100%"));return r},t.createAlphaToLuminanceFilter=function(){var t=createNS("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1"),t},t}(),featureSupport=function(){var t={maskType:!0};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.maskType=!1),t}(),registeredEffects={},idPrefix="filter_result_";function SVGEffects(t){var e,r,i="SourceGraphic",n=t.data.ef?t.data.ef.length:0,s=createElementID(),a=filtersFactory.createFilter(s,!0),o=0;for(this.filters=[],e=0;e<n;e+=1){r=null;var h=t.data.ef[e].ty;if(registeredEffects[h])r=new(0,registeredEffects[h].effect)(a,t.effectsManager.effectElements[e],t,idPrefix+o,i),i=idPrefix+o,registeredEffects[h].countsAsEffect&&(o+=1);r&&this.filters.push(r)}o&&(t.globalData.defs.appendChild(a),t.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+s+")")),this.filters.length&&t.addRenderableComponent(this)}function registerEffect(t,e,r){registeredEffects[t]={effect:e,countsAsEffect:r}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,r),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(t,e){this.elem=t,this.pos=e}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(t){var e,r=this.filters.length;for(e=0;e<r;e+=1)this.filters[e].renderFrame(t)},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t=null;if(this.data.td){this.matteMasks={};var e=createNS("symbol");e.setAttribute("id",this.layerId);var r=createNS("g");r.appendChild(this.layerElement),e.appendChild(r),t=r,this.globalData.defs.appendChild(e)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var i=createNS("clipPath"),n=createNS("path");n.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var s=createElementID();if(i.setAttribute("id",s),i.appendChild(n),this.globalData.defs.appendChild(i),this.checkMasks()){var a=createNS("g");a.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")"),a.appendChild(this.layerElement),this.transformedElement=a,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this)},getMatte:function(t){if(!this.matteMasks[t]){var e,r,i,n,s=this.layerId+"_"+t;if(1===t||3===t){var a=createNS("mask");a.setAttribute("id",s),a.setAttribute("mask-type",3===t?"luminance":"alpha"),(i=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),a.appendChild(i),this.globalData.defs.appendChild(a),featureSupport.maskType||1!==t||(a.setAttribute("mask-type","luminance"),e=createElementID(),r=filtersFactory.createFilter(e),this.globalData.defs.appendChild(r),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(n=createNS("g")).appendChild(i),a.appendChild(n),n.setAttribute("filter","url("+getLocationHref()+"#"+e+")"))}else if(2===t){var o=createNS("mask");o.setAttribute("id",s),o.setAttribute("mask-type","alpha");var h=createNS("g");o.appendChild(h),e=createElementID(),r=filtersFactory.createFilter(e);var l=createNS("feComponentTransfer");l.setAttribute("in","SourceGraphic"),r.appendChild(l);var p=createNS("feFuncA");p.setAttribute("type","table"),p.setAttribute("tableValues","1.0 0.0"),l.appendChild(p),this.globalData.defs.appendChild(r);var c=createNS("rect");c.setAttribute("width",this.comp.data.w),c.setAttribute("height",this.comp.data.h),c.setAttribute("x","0"),c.setAttribute("y","0"),c.setAttribute("fill","#ffffff"),c.setAttribute("opacity","0"),h.setAttribute("filter","url("+getLocationHref()+"#"+e+")"),h.appendChild(c),(i=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),h.appendChild(i),featureSupport.maskType||(o.setAttribute("mask-type","luminance"),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),n=createNS("g"),h.appendChild(c),n.appendChild(this.layerElement),h.appendChild(n)),this.globalData.defs.appendChild(o)}this.matteMasks[t]=s}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initTransform(t,e,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(t){var e,r=this.shapeModifiers.length;for(e=0;e<r;e+=1)this.shapeModifiers[e].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var e=this.shapeModifiers.length;0<e;)if(this.shapeModifiers[0].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,e=this.shapes.length;for(t=0;t<e;t+=1)this.shapes[t].sh.reset();for(t=(e=this.shapeModifiers.length)-1;t>=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,r=0,i=e.length;r<i;){if(e[r].elem===t)return e[r].pos;r+=1}return 0},addProcessedElement:function(t,e){for(var r=this.processedElements,i=r.length;i;)if(r[i-=1].elem===t)return void(r[i].pos=e);r.push(new ProcessedElement(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(t,e,r){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=r,this.lvl=e,this._isAnimated=!!r.k;for(var i=0,n=t.length;i<n;){if(t[i].mProps.dynamicProperties.length){this._isAnimated=!0;break}i+=1}}function SVGStyleData(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(t,e,r,i){var n;this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(e.length),this.renderer=r,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",e.length?e.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(i);var s,a=e.length||0;for(n=0;n<a;n+=1)s=PropertyFactory.getProp(t,e[n].v,0,0,this),this.k=s.k||this.k,this.dataProps[n]={n:e[n].n,p:s};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=r,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=r}function SVGNoStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=r}function GradientProperty(t,e,r){this.data=e,this.c=createTypedArray("uint8c",4*e.p);var i=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=createTypedArray("float32",i),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=i,this.initDynamicPropertyContainer(r),this.prop=PropertyFactory.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,r)}function SVGGradientStrokeStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.initGradientData(t,e,r),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(t,e,r){this.transform={mProps:t,op:e,container:r},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,r=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),e=0;e<r;e+=1)"o"!==this.dataProps[e].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(t,e){for(var r=0,i=this.o.length/2;r<i;){if(Math.abs(t[4*r]-t[4*e+2*r])>.01)return!1;r+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,r,i,n=4*this.data.p;for(e=0;e<n;e+=1)r=e%4==0?100:255,i=Math.round(this.prop.v[e]*r),this.c[e]!==i&&(this.c[e]=i,this._cmdf=!t);if(this.o.length)for(n=this.prop.v.length,e=4*this.data.p;e<n;e+=1)r=e%2==0?100:1,i=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==i&&(this.o[e-4*this.data.p]=i,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(t,e,r){this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.s=PropertyFactory.getProp(t,e.s,1,null,this),this.e=PropertyFactory.getProp(t,e.e,1,null,this),this.h=PropertyFactory.getProp(t,e.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(t,e.a||{k:0},0,degToRads,this),this.g=new GradientProperty(t,e.g,this),this.style=r,this.stops=[],this.setGradientData(r.pElem,e),this.setGradientOpacity(e,r),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(t,e){var r=createElementID(),i=createNS(1===e.t?"linearGradient":"radialGradient");i.setAttribute("id",r),i.setAttribute("spreadMethod","pad"),i.setAttribute("gradientUnits","userSpaceOnUse");var n,s,a,o=[];for(a=4*e.g.p,s=0;s<a;s+=4)n=createNS("stop"),i.appendChild(n),o.push(n);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=i,this.cst=o},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var r,i,n,s=createNS("mask"),a=createNS("path");s.appendChild(a);var o=createElementID(),h=createElementID();s.setAttribute("id",h);var l=createNS(1===t.t?"linearGradient":"radialGradient");l.setAttribute("id",o),l.setAttribute("spreadMethod","pad"),l.setAttribute("gradientUnits","userSpaceOnUse"),n=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var p=this.stops;for(i=4*t.g.p;i<n;i+=2)(r=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),l.appendChild(r),p.push(r);a.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+o+")"),"gs"===t.ty&&(a.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),a.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),1===t.lj&&a.setAttribute("stroke-miterlimit",t.ml)),this.of=l,this.ms=s,this.ost=p,this.maskId=h,e.msElem=a}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(t,e,r,i){if(0===e)return"";var n,s=t.o,a=t.i,o=t.v,h=" M"+i.applyToPointStringified(o[0][0],o[0][1]);for(n=1;n<e;n+=1)h+=" C"+i.applyToPointStringified(s[n-1][0],s[n-1][1])+" "+i.applyToPointStringified(a[n][0],a[n][1])+" "+i.applyToPointStringified(o[n][0],o[n][1]);return r&&e&&(h+=" C"+i.applyToPointStringified(s[n-1][0],s[n-1][1])+" "+i.applyToPointStringified(a[0][0],a[0][1])+" "+i.applyToPointStringified(o[0][0],o[0][1]),h+="z"),h},SVGElementsRenderer=function(){var t=new Matrix,e=new Matrix;function r(t,e,r){(r||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",e.transform.op.v),(r||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function i(){}function n(r,i,n){var s,a,o,h,l,p,c,f,u,d,m,y=i.styles.length,g=i.lvl;for(p=0;p<y;p+=1){if(h=i.sh._mdf||n,i.styles[p].lvl<g){for(f=e.reset(),d=g-i.styles[p].lvl,m=i.transformers.length-1;!h&&d>0;)h=i.transformers[m].mProps._mdf||h,d-=1,m-=1;if(h)for(d=g-i.styles[p].lvl,m=i.transformers.length-1;d>0;)u=i.transformers[m].mProps.v.props,f.transform(u[0],u[1],u[2],u[3],u[4],u[5],u[6],u[7],u[8],u[9],u[10],u[11],u[12],u[13],u[14],u[15]),d-=1,m-=1}else f=t;if(a=(c=i.sh.paths)._length,h){for(o="",s=0;s<a;s+=1)(l=c.shapes[s])&&l._length&&(o+=buildShapeString(l,l._length,l.c,f));i.caches[p]=o}else o=i.caches[p];i.styles[p].d+=!0===r.hd?"":o,i.styles[p]._mdf=h||i.styles[p]._mdf}}function s(t,e,r){var i=e.style;(e.c._mdf||r)&&i.pElem.setAttribute("fill","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r)&&i.pElem.setAttribute("fill-opacity",e.o.v)}function a(t,e,r){o(t,e,r),h(t,e,r)}function o(t,e,r){var i,n,s,a,o,h=e.gf,l=e.g._hasOpacity,p=e.s.v,c=e.e.v;if(e.o._mdf||r){var f="gf"===t.ty?"fill-opacity":"stroke-opacity";e.style.pElem.setAttribute(f,e.o.v)}if(e.s._mdf||r){var u=1===t.t?"x1":"cx",d="x1"===u?"y1":"cy";h.setAttribute(u,p[0]),h.setAttribute(d,p[1]),l&&!e.g._collapsable&&(e.of.setAttribute(u,p[0]),e.of.setAttribute(d,p[1]))}if(e.g._cmdf||r){i=e.cst;var m=e.g.c;for(s=i.length,n=0;n<s;n+=1)(a=i[n]).setAttribute("offset",m[4*n]+"%"),a.setAttribute("stop-color","rgb("+m[4*n+1]+","+m[4*n+2]+","+m[4*n+3]+")")}if(l&&(e.g._omdf||r)){var y=e.g.o;for(s=(i=e.g._collapsable?e.cst:e.ost).length,n=0;n<s;n+=1)a=i[n],e.g._collapsable||a.setAttribute("offset",y[2*n]+"%"),a.setAttribute("stop-opacity",y[2*n+1])}if(1===t.t)(e.e._mdf||r)&&(h.setAttribute("x2",c[0]),h.setAttribute("y2",c[1]),l&&!e.g._collapsable&&(e.of.setAttribute("x2",c[0]),e.of.setAttribute("y2",c[1])));else if((e.s._mdf||e.e._mdf||r)&&(o=Math.sqrt(Math.pow(p[0]-c[0],2)+Math.pow(p[1]-c[1],2)),h.setAttribute("r",o),l&&!e.g._collapsable&&e.of.setAttribute("r",o)),e.e._mdf||e.h._mdf||e.a._mdf||r){o||(o=Math.sqrt(Math.pow(p[0]-c[0],2)+Math.pow(p[1]-c[1],2)));var g=Math.atan2(c[1]-p[1],c[0]-p[0]),v=e.h.v;v>=1?v=.99:v<=-1&&(v=-.99);var _=o*v,b=Math.cos(g+e.a.v)*_+p[0],P=Math.sin(g+e.a.v)*_+p[1];h.setAttribute("fx",b),h.setAttribute("fy",P),l&&!e.g._collapsable&&(e.of.setAttribute("fx",b),e.of.setAttribute("fy",P))}}function h(t,e,r){var i=e.style,n=e.d;n&&(n._mdf||r)&&n.dashStr&&(i.pElem.setAttribute("stroke-dasharray",n.dashStr),i.pElem.setAttribute("stroke-dashoffset",n.dashoffset[0])),e.c&&(e.c._mdf||r)&&i.pElem.setAttribute("stroke","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r)&&i.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||r)&&(i.pElem.setAttribute("stroke-width",e.w.v),i.msElem&&i.msElem.setAttribute("stroke-width",e.w.v))}return{createRenderFunction:function(t){switch(t.ty){case"fl":return s;case"gf":return o;case"gs":return a;case"st":return h;case"sh":case"el":case"rc":case"sr":return n;case"tr":return r;case"no":return i;default:return null}}}}();function SVGShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,r),this.prevViewData=[]}function LetterProps(t,e,r,i,n,s){this.o=t,this.sw=e,this.sc=r,this.fc=i,this.m=n,this.p=s,this._mdf={o:!0,sw:!!e,sc:!!r,fc:!!i,m:!0,p:!0}}function TextProperty(t,e){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var t,e,r,i,n=this.shapes.length,s=this.stylesList.length,a=[],o=!1;for(r=0;r<s;r+=1){for(i=this.stylesList[r],o=!1,a.length=0,t=0;t<n;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(i)&&(a.push(e),o=e._isAnimated||o);a.length>1&&o&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(t,e){var r,i=new SVGStyleData(t,e),n=i.pElem;if("st"===t.ty)r=new SVGStrokeStyleData(this,t,i);else if("fl"===t.ty)r=new SVGFillStyleData(this,t,i);else if("gf"===t.ty||"gs"===t.ty){r=new("gf"===t.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,t,i),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),n.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")"))}else"no"===t.ty&&(r=new SVGNoStyleData(this,t,i));return"st"!==t.ty&&"gs"!==t.ty||(n.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),n.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),n.setAttribute("fill-opacity","0"),1===t.lj&&n.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&n.setAttribute("fill-rule","evenodd"),t.ln&&n.setAttribute("id",t.ln),t.cl&&n.setAttribute("class",t.cl),t.bm&&(n.style["mix-blend-mode"]=getBlendMode(t.bm)),this.stylesList.push(i),this.addToAnimatedContents(t,r),r},SVGShapeElement.prototype.createGroupElement=function(t){var e=new ShapeGroupData;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=getBlendMode(t.bm)),e},SVGShapeElement.prototype.createTransformElement=function(t,e){var r=TransformPropertyFactory.getTransformProperty(this,t,this),i=new SVGTransformData(r,r.o,e);return this.addToAnimatedContents(t,i),i},SVGShapeElement.prototype.createShapeElement=function(t,e,r){var i=4;"rc"===t.ty?i=5:"el"===t.ty?i=6:"sr"===t.ty&&(i=7);var n=new SVGShapeData(e,r,ShapePropertyFactory.getShapeProp(this,t,i,this));return this.shapes.push(n),this.addShapeToModifiers(n),this.addToAnimatedContents(t,n),n},SVGShapeElement.prototype.addToAnimatedContents=function(t,e){for(var r=0,i=this.animatedContents.length;r<i;){if(this.animatedContents[r].element===e)return;r+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:e,data:t})},SVGShapeElement.prototype.setElementStyles=function(t){var e,r=t.styles,i=this.stylesList.length;for(e=0;e<i;e+=1)this.stylesList[e].closed||r.push(this.stylesList[e])},SVGShapeElement.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(t,e,r,i,n,s,a){var o,h,l,p,c,f,u=[].concat(s),d=t.length-1,m=[],y=[];for(o=d;o>=0;o-=1){if((f=this.searchProcessedElement(t[o]))?e[o]=r[f-1]:t[o]._render=a,"fl"===t[o].ty||"st"===t[o].ty||"gf"===t[o].ty||"gs"===t[o].ty||"no"===t[o].ty)f?e[o].style.closed=!1:e[o]=this.createStyleElement(t[o],n),t[o]._render&&e[o].style.pElem.parentNode!==i&&i.appendChild(e[o].style.pElem),m.push(e[o].style);else if("gr"===t[o].ty){if(f)for(l=e[o].it.length,h=0;h<l;h+=1)e[o].prevViewData[h]=e[o].it[h];else e[o]=this.createGroupElement(t[o]);this.searchShapes(t[o].it,e[o].it,e[o].prevViewData,e[o].gr,n+1,u,a),t[o]._render&&e[o].gr.parentNode!==i&&i.appendChild(e[o].gr)}else"tr"===t[o].ty?(f||(e[o]=this.createTransformElement(t[o],i)),p=e[o].transform,u.push(p)):"sh"===t[o].ty||"rc"===t[o].ty||"el"===t[o].ty||"sr"===t[o].ty?(f||(e[o]=this.createShapeElement(t[o],u,n)),this.setElementStyles(e[o])):"tm"===t[o].ty||"rd"===t[o].ty||"ms"===t[o].ty||"pb"===t[o].ty||"zz"===t[o].ty||"op"===t[o].ty?(f?(c=e[o]).closed=!1:((c=ShapeModifiers.getModifier(t[o].ty)).init(this,t[o]),e[o]=c,this.shapeModifiers.push(c)),y.push(c)):"rp"===t[o].ty&&(f?(c=e[o]).closed=!0:(c=ShapeModifiers.getModifier(t[o].ty),e[o]=c,c.init(this,t,o,e),this.shapeModifiers.push(c),a=!1),y.push(c));this.addProcessedElement(t[o],o+1)}for(d=m.length,o=0;o<d;o+=1)m[o].closed=!0;for(d=y.length,o=0;o<d;o+=1)y[o].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var t;this.renderModifiers();var e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<e;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var t,e,r=this.animatedContents.length;for(t=0;t<r;t+=1)e=this.animatedContents[t],(this._isFirstFrame||e.element._isAnimated)&&!0!==e.data&&e.fn(e.data,e.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(t,e,r,i,n,s){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var a=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,a=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,a=!0),this.sc!==r&&(this.sc=r,this._mdf.sc=!0,a=!0),this.fc!==i&&(this.fc=i,this._mdf.fc=!0,a=!0),this.m!==n&&(this.m=n,this._mdf.m=!0,a=!0),!s.length||this.p[0]===s[0]&&this.p[1]===s[1]&&this.p[4]===s[4]&&this.p[5]===s[5]&&this.p[12]===s[12]&&this.p[13]===s[13]||(this.p=s,this._mdf.p=!0,a=!0),a},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},TextProperty.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,r=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var i;this.lock=!0,this._mdf=!1;var n=this.effectsSequence.length,s=t||this.data.d.k[this.keysIndex].s;for(i=0;i<n;i+=1)s=r!==this.keysIndex?this.effectsSequence[i](s,s.t):this.effectsSequence[i](this.currentData,s.t);e!==s&&this.setCurrentData(s),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,r=0,i=t.length;r<=i-1&&!(r===i-1||t[r+1].t>e);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e,r,i=[],n=0,s=t.length,a=!1;n<s;)e=t.charCodeAt(n),FontManager.isCombinedCharacter(e)?i[i.length-1]+=t.charAt(n):e>=55296&&e<=56319?(r=t.charCodeAt(n+1))>=56320&&r<=57343?(a||FontManager.isModifier(e,r)?(i[i.length-1]+=t.substr(n,2),a=!1):i.push(t.substr(n,2)),n+=1):i.push(t.charAt(n)):e>56319?(r=t.charCodeAt(n+1),FontManager.isZeroWidthJoiner(e,r)?(a=!0,i[i.length-1]+=t.substr(n,2),n+=1):i.push(t.charAt(n))):FontManager.isZeroWidthJoiner(e)?(i[i.length-1]+=t.charAt(n),a=!0):i.push(t.charAt(n)),n+=1;return i},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e,r,i,n,s,a,o,h=this.elem.globalData.fontManager,l=this.data,p=[],c=0,f=l.m.g,u=0,d=0,m=0,y=[],g=0,v=0,_=h.getFontByName(t.f),b=0,P=getFontProperties(_);t.fWeight=P.weight,t.fStyle=P.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),r=t.finalText.length,t.finalLineHeight=t.lh;var S,w=t.tr/1e3*t.finalSize;if(t.sz)for(var x,E,k=!0,A=t.sz[0],T=t.sz[1];k;){x=0,g=0,r=(E=this.buildFinalText(t.t)).length,w=t.tr/1e3*t.finalSize;var C=-1;for(e=0;e<r;e+=1)S=E[e].charCodeAt(0),i=!1," "===E[e]?C=e:13!==S&&3!==S||(g=0,i=!0,x+=t.finalLineHeight||1.2*t.finalSize),h.chars?(o=h.getCharData(E[e],_.fStyle,_.fFamily),b=i?0:o.w*t.finalSize/100):b=h.measureText(E[e],t.f,t.finalSize),g+b>A&&" "!==E[e]?(-1===C?r+=1:e=C,x+=t.finalLineHeight||1.2*t.finalSize,E.splice(e,C===e?1:0,"\r"),C=-1,g=0):(g+=b,g+=w);x+=_.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&T<x?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=E,r=t.finalText.length,k=!1)}g=-w,b=0;var I,D=0;for(e=0;e<r;e+=1)if(i=!1,13===(S=(I=t.finalText[e]).charCodeAt(0))||3===S?(D=0,y.push(g),v=g>v?g:v,g=-2*w,n="",i=!0,m+=1):n=I,h.chars?(o=h.getCharData(I,_.fStyle,h.getFontByName(t.f).fFamily),b=i?0:o.w*t.finalSize/100):b=h.measureText(n,t.f,t.finalSize)," "===I?D+=b+w:(g+=b+w+D,D=0),p.push({l:b,an:b,add:u,n:i,anIndexes:[],val:n,line:m,animatorJustifyOffset:0}),2==f){if(u+=b,""===n||" "===n||e===r-1){for(""!==n&&" "!==n||(u-=b);d<=e;)p[d].an=u,p[d].ind=c,p[d].extra=b,d+=1;c+=1,u=0}}else if(3==f){if(u+=b,""===n||e===r-1){for(""===n&&(u-=b);d<=e;)p[d].an=u,p[d].ind=c,p[d].extra=b,d+=1;u=0,c+=1}}else p[c].ind=c,p[c].extra=0,c+=1;if(t.l=p,v=g>v?g:v,y.push(g),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=v,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=y;var M,F,O,R,z=l.a;a=z.length;var L=[];for(s=0;s<a;s+=1){for((M=z[s]).a.sc&&(t.strokeColorAnim=!0),M.a.sw&&(t.strokeWidthAnim=!0),(M.a.fc||M.a.fh||M.a.fs||M.a.fb)&&(t.fillColorAnim=!0),R=0,O=M.s.b,e=0;e<r;e+=1)(F=p[e]).anIndexes[s]=R,(1==O&&""!==F.val||2==O&&""!==F.val&&" "!==F.val||3==O&&(F.n||" "==F.val||e==r-1)||4==O&&(F.n||e==r-1))&&(1===M.s.rn&&L.push(R),R+=1);l.a[s].s.totalChars=R;var B,V=-1;if(1===M.s.rn)for(e=0;e<r;e+=1)V!=(F=p[e]).anIndexes[s]&&(V=F.anIndexes[s],B=L.splice(Math.floor(Math.random()*L.length),1)[0]),F.anIndexes[s]=B}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=_.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var r=this.copyData({},this.data.d.k[e].s);r=this.copyData(r,t),this.data.d.k[e].s=r,this.recalculate(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},TextProperty.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var t=Math.max,e=Math.min,r=Math.floor;function i(t,e){this._currentTextLength=-1,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=PropertyFactory.getProp(t,e.s||{k:0},0,0,this),this.e="e"in e?PropertyFactory.getProp(t,e.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(t,e.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(t,e.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(t,e.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(t,e.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(t,e.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return i.prototype={getMult:function(i){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var n=0,s=0,a=1,o=1;this.ne.v>0?n=this.ne.v/100:s=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:o=1+this.xe.v/100;var h=BezierFactory.getBezierEasing(n,s,a,o).get,l=0,p=this.finalS,c=this.finalE,f=this.data.sh;if(2===f)l=h(l=c===p?i>=c?1:0:t(0,e(.5/(c-p)+(i-p)/(c-p),1)));else if(3===f)l=h(l=c===p?i>=c?0:1:1-t(0,e(.5/(c-p)+(i-p)/(c-p),1)));else if(4===f)c===p?l=0:(l=t(0,e(.5/(c-p)+(i-p)/(c-p),1)))<.5?l*=2:l=1-2*(l-.5),l=h(l);else if(5===f){if(c===p)l=0;else{var u=c-p,d=-u/2+(i=e(t(0,i+.5-p),c-p)),m=u/2;l=Math.sqrt(1-d*d/(m*m))}l=h(l)}else 6===f?(c===p?l=0:(i=e(t(0,i+.5-p),c-p),l=(1+Math.cos(Math.PI+2*Math.PI*i/(c-p)))/2),l=h(l)):(i>=r(p)&&(l=t(0,e(i-p<0?e(c,1)-(p-i):c-i,1))),l=h(l));if(100!==this.sm.v){var y=.01*this.sm.v;0===y&&(y=1e-8);var g=.5-.5*y;l<g?l=0:(l=(l-g)/y)>1&&(l=1)}return l*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,r=this.o.v/e,i=this.s.v/e+r,n=this.e.v/e+r;if(i>n){var s=i;i=n,n=s}this.finalS=i,this.finalE=n}},extendPrototype([DynamicPropertyContainer],i),{getTextSelectorProp:function(t,e,r){return new i(t,e,r)}}}();function TextAnimatorDataProperty(t,e,r){var i={propType:!1},n=PropertyFactory.getProp,s=e.a;this.a={r:s.r?n(t,s.r,0,degToRads,r):i,rx:s.rx?n(t,s.rx,0,degToRads,r):i,ry:s.ry?n(t,s.ry,0,degToRads,r):i,sk:s.sk?n(t,s.sk,0,degToRads,r):i,sa:s.sa?n(t,s.sa,0,degToRads,r):i,s:s.s?n(t,s.s,1,.01,r):i,a:s.a?n(t,s.a,1,0,r):i,o:s.o?n(t,s.o,0,.01,r):i,p:s.p?n(t,s.p,1,0,r):i,sw:s.sw?n(t,s.sw,0,0,r):i,sc:s.sc?n(t,s.sc,1,0,r):i,fc:s.fc?n(t,s.fc,1,0,r):i,fh:s.fh?n(t,s.fh,0,0,r):i,fs:s.fs?n(t,s.fs,0,.01,r):i,fb:s.fb?n(t,s.fb,0,.01,r):i,t:s.t?n(t,s.t,0,0,r):i},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,r),this.s.t=e.s.t}function TextAnimatorProperty(t,e,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var t,e,r=this._textData.a.length,i=PropertyFactory.getProp;for(t=0;t<r;t+=1)e=this._textData.a[t],this._animatorsData[t]=new TextAnimatorDataProperty(this._elem,e,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:i(this._elem,this._textData.p.a,0,0,this),f:i(this._elem,this._textData.p.f,0,0,this),l:i(this._elem,this._textData.p.l,0,0,this),r:i(this._elem,this._textData.p.r,0,0,this),p:i(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=i(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var r,i,n,s,a,o,h,l,p,c,f,u,d,m,y,g,v,_,b,P=this._moreOptions.alignment.v,S=this._animatorsData,w=this._textData,x=this.mHelper,E=this._renderType,k=this.renderedLetters.length,A=t.l;if(this._hasMaskedPath){if(b=this._pathData.m,!this._pathData.n||this._pathData._mdf){var T,C=b.v;for(this._pathData.r.v&&(C=C.reverse()),a={tLength:0,segments:[]},s=C._length-1,g=0,n=0;n<s;n+=1)T=bez.buildBezierData(C.v[n],C.v[n+1],[C.o[n][0]-C.v[n][0],C.o[n][1]-C.v[n][1]],[C.i[n+1][0]-C.v[n+1][0],C.i[n+1][1]-C.v[n+1][1]]),a.tLength+=T.segmentLength,a.segments.push(T),g+=T.segmentLength;n=s,b.v.c&&(T=bez.buildBezierData(C.v[n],C.v[0],[C.o[n][0]-C.v[n][0],C.o[n][1]-C.v[n][1]],[C.i[0][0]-C.v[0][0],C.i[0][1]-C.v[0][1]]),a.tLength+=T.segmentLength,a.segments.push(T),g+=T.segmentLength),this._pathData.pi=a}if(a=this._pathData.pi,o=this._pathData.f.v,f=0,c=1,l=0,p=!0,m=a.segments,o<0&&b.v.c)for(a.tLength<Math.abs(o)&&(o=-Math.abs(o)%a.tLength),c=(d=m[f=m.length-1].points).length-1;o<0;)o+=d[c].partialLength,(c-=1)<0&&(c=(d=m[f-=1].points).length-1);u=(d=m[f].points)[c-1],y=(h=d[c]).partialLength}s=A.length,r=0,i=0;var I,D,M,F,O,R=1.2*t.finalSize*.714,z=!0;M=S.length;var L,B,V,N,$,j,G,U,H,W,q,Z,K=-1,Y=o,X=f,J=c,Q=-1,tt="",et=this.defaultPropsArray;if(2===t.j||1===t.j){var rt=0,it=0,nt=2===t.j?-.5:-1,st=0,at=!0;for(n=0;n<s;n+=1)if(A[n].n){for(rt&&(rt+=it);st<n;)A[st].animatorJustifyOffset=rt,st+=1;rt=0,at=!0}else{for(D=0;D<M;D+=1)(I=S[D].a).t.propType&&(at&&2===t.j&&(it+=I.t.v*nt),(O=S[D].s.getMult(A[n].anIndexes[D],w.a[D].s.totalChars)).length?rt+=I.t.v*O[0]*nt:rt+=I.t.v*O*nt);at=!1}for(rt&&(rt+=it);st<n;)A[st].animatorJustifyOffset=rt,st+=1}for(n=0;n<s;n+=1){if(x.reset(),N=1,A[n].n)r=0,i+=t.yOffset,i+=z?1:0,o=Y,z=!1,this._hasMaskedPath&&(c=J,u=(d=m[f=X].points)[c-1],y=(h=d[c]).partialLength,l=0),tt="",q="",H="",Z="",et=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Q!==A[n].line){switch(t.j){case 1:o+=g-t.lineWidths[A[n].line];break;case 2:o+=(g-t.lineWidths[A[n].line])/2}Q=A[n].line}K!==A[n].ind&&(A[K]&&(o+=A[K].extra),o+=A[n].an/2,K=A[n].ind),o+=P[0]*A[n].an*.005;var ot=0;for(D=0;D<M;D+=1)(I=S[D].a).p.propType&&((O=S[D].s.getMult(A[n].anIndexes[D],w.a[D].s.totalChars)).length?ot+=I.p.v[0]*O[0]:ot+=I.p.v[0]*O),I.a.propType&&((O=S[D].s.getMult(A[n].anIndexes[D],w.a[D].s.totalChars)).length?ot+=I.a.v[0]*O[0]:ot+=I.a.v[0]*O);for(p=!0,this._pathData.a.v&&(o=.5*A[0].an+(g-this._pathData.f.v-.5*A[0].an-.5*A[A.length-1].an)*K/(s-1),o+=this._pathData.f.v);p;)l+y>=o+ot||!d?(v=(o+ot-l)/h.partialLength,B=u.point[0]+(h.point[0]-u.point[0])*v,V=u.point[1]+(h.point[1]-u.point[1])*v,x.translate(-P[0]*A[n].an*.005,-P[1]*R*.01),p=!1):d&&(l+=h.partialLength,(c+=1)>=d.length&&(c=0,m[f+=1]?d=m[f].points:b.v.c?(c=0,d=m[f=0].points):(l-=h.partialLength,d=null)),d&&(u=h,y=(h=d[c]).partialLength));L=A[n].an/2-A[n].add,x.translate(-L,0,0)}else L=A[n].an/2-A[n].add,x.translate(-L,0,0),x.translate(-P[0]*A[n].an*.005,-P[1]*R*.01,0);for(D=0;D<M;D+=1)(I=S[D].a).t.propType&&(O=S[D].s.getMult(A[n].anIndexes[D],w.a[D].s.totalChars),0===r&&0===t.j||(this._hasMaskedPath?O.length?o+=I.t.v*O[0]:o+=I.t.v*O:O.length?r+=I.t.v*O[0]:r+=I.t.v*O));for(t.strokeWidthAnim&&(j=t.sw||0),t.strokeColorAnim&&($=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(G=[t.fc[0],t.fc[1],t.fc[2]]),D=0;D<M;D+=1)(I=S[D].a).a.propType&&((O=S[D].s.getMult(A[n].anIndexes[D],w.a[D].s.totalChars)).length?x.translate(-I.a.v[0]*O[0],-I.a.v[1]*O[1],I.a.v[2]*O[2]):x.translate(-I.a.v[0]*O,-I.a.v[1]*O,I.a.v[2]*O));for(D=0;D<M;D+=1)(I=S[D].a).s.propType&&((O=S[D].s.getMult(A[n].anIndexes[D],w.a[D].s.totalChars)).length?x.scale(1+(I.s.v[0]-1)*O[0],1+(I.s.v[1]-1)*O[1],1):x.scale(1+(I.s.v[0]-1)*O,1+(I.s.v[1]-1)*O,1));for(D=0;D<M;D+=1){if(I=S[D].a,O=S[D].s.getMult(A[n].anIndexes[D],w.a[D].s.totalChars),I.sk.propType&&(O.length?x.skewFromAxis(-I.sk.v*O[0],I.sa.v*O[1]):x.skewFromAxis(-I.sk.v*O,I.sa.v*O)),I.r.propType&&(O.length?x.rotateZ(-I.r.v*O[2]):x.rotateZ(-I.r.v*O)),I.ry.propType&&(O.length?x.rotateY(I.ry.v*O[1]):x.rotateY(I.ry.v*O)),I.rx.propType&&(O.length?x.rotateX(I.rx.v*O[0]):x.rotateX(I.rx.v*O)),I.o.propType&&(O.length?N+=(I.o.v*O[0]-N)*O[0]:N+=(I.o.v*O-N)*O),t.strokeWidthAnim&&I.sw.propType&&(O.length?j+=I.sw.v*O[0]:j+=I.sw.v*O),t.strokeColorAnim&&I.sc.propType)for(U=0;U<3;U+=1)O.length?$[U]+=(I.sc.v[U]-$[U])*O[0]:$[U]+=(I.sc.v[U]-$[U])*O;if(t.fillColorAnim&&t.fc){if(I.fc.propType)for(U=0;U<3;U+=1)O.length?G[U]+=(I.fc.v[U]-G[U])*O[0]:G[U]+=(I.fc.v[U]-G[U])*O;I.fh.propType&&(G=O.length?addHueToRGB(G,I.fh.v*O[0]):addHueToRGB(G,I.fh.v*O)),I.fs.propType&&(G=O.length?addSaturationToRGB(G,I.fs.v*O[0]):addSaturationToRGB(G,I.fs.v*O)),I.fb.propType&&(G=O.length?addBrightnessToRGB(G,I.fb.v*O[0]):addBrightnessToRGB(G,I.fb.v*O))}}for(D=0;D<M;D+=1)(I=S[D].a).p.propType&&(O=S[D].s.getMult(A[n].anIndexes[D],w.a[D].s.totalChars),this._hasMaskedPath?O.length?x.translate(0,I.p.v[1]*O[0],-I.p.v[2]*O[1]):x.translate(0,I.p.v[1]*O,-I.p.v[2]*O):O.length?x.translate(I.p.v[0]*O[0],I.p.v[1]*O[1],-I.p.v[2]*O[2]):x.translate(I.p.v[0]*O,I.p.v[1]*O,-I.p.v[2]*O));if(t.strokeWidthAnim&&(H=j<0?0:j),t.strokeColorAnim&&(W="rgb("+Math.round(255*$[0])+","+Math.round(255*$[1])+","+Math.round(255*$[2])+")"),t.fillColorAnim&&t.fc&&(q="rgb("+Math.round(255*G[0])+","+Math.round(255*G[1])+","+Math.round(255*G[2])+")"),this._hasMaskedPath){if(x.translate(0,-t.ls),x.translate(0,P[1]*R*.01+i,0),this._pathData.p.v){_=(h.point[1]-u.point[1])/(h.point[0]-u.point[0]);var ht=180*Math.atan(_)/Math.PI;h.point[0]<u.point[0]&&(ht+=180),x.rotate(-ht*Math.PI/180)}x.translate(B,V,0),o-=P[0]*A[n].an*.005,A[n+1]&&K!==A[n+1].ind&&(o+=A[n].an/2,o+=.001*t.tr*t.finalSize)}else{switch(x.translate(r,i,0),t.ps&&x.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:x.translate(A[n].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[A[n].line]),0,0);break;case 2:x.translate(A[n].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[A[n].line])/2,0,0)}x.translate(0,-t.ls),x.translate(L,0,0),x.translate(P[0]*A[n].an*.005,P[1]*R*.01,0),r+=A[n].l+.001*t.tr*t.finalSize}"html"===E?tt=x.toCSS():"svg"===E?tt=x.to2dCSS():et=[x.props[0],x.props[1],x.props[2],x.props[3],x.props[4],x.props[5],x.props[6],x.props[7],x.props[8],x.props[9],x.props[10],x.props[11],x.props[12],x.props[13],x.props[14],x.props[15]],Z=N}k<=n?(F=new LetterProps(Z,H,W,q,tt,et),this.renderedLetters.push(F),k+=1,this.lettersChangedFlag=!0):(F=this.renderedLetters[n],this.lettersChangedFlag=F.update(Z,H,W,q,tt,et)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(t,e,r){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,r),this.textProperty=new TextProperty(this,t.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this),this.initTransform(t,e,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},ITextElement.prototype.createPathShape=function(t,e){var r,i,n=e.length,s="";for(r=0;r<n;r+=1)"sh"===e[r].ty&&(i=e[r].ks.k,s+=buildShapeString(i,i.i.length,!0,t));return s},ITextElement.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},ITextElement.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},ITextElement.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},ITextElement.prototype.applyTextPropertiesToMatrix=function(t,e,r,i,n){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[r]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[r])/2,0,0)}e.translate(i,n,0)},ITextElement.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){};var emptyShapeData={shapes:[]};function SVGTextLottieElement(t,e,r){this.textSpans=[],this.renderType="svg",this.initElement(t,e,r)}function ISolidElement(t,e,r){this.initElement(t,e,r)}function NullElement(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initFrame(),this.initTransform(t,e,r),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(t,e,r){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function SVGRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var r="";if(e&&e.title){var i=createNS("title"),n=createElementID();i.setAttribute("id",n),i.textContent=e.title,this.svgElement.appendChild(i),r+=n}if(e&&e.description){var s=createNS("desc"),a=createElementID();s.setAttribute("id",a),s.textContent=e.description,this.svgElement.appendChild(s),r+=" "+a}r&&this.svgElement.setAttribute("aria-labelledby",r);var o=createNS("defs");this.svgElement.appendChild(o);var h=createNS("g");this.svgElement.appendChild(h),this.layerElement=h,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!(e&&!1===e.hideOnTransparent),viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"},width:e&&e.width,height:e&&e.height,runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:o,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(t){for(var e=0,r=t.length,i=[],n="";e<r;)t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)?(i.push(n),n=""):n+=t[e],e+=1;return i.push(n),i},SVGTextLottieElement.prototype.buildShapeData=function(t,e){if(t.shapes&&t.shapes.length){var r=t.shapes[0];if(r.it){var i=r.it[r.it.length-1];i.s&&(i.s.k[0]=e,i.s.k[1]=e)}}return t},SVGTextLottieElement.prototype.buildNewText=function(){var t,e;this.addDynamicProperty(this);var r=this.textProperty.currentData;this.renderedLetters=createSizedArray(r?r.l.length:0),r.fc?this.layerElement.setAttribute("fill",this.buildColor(r.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),r.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(r.sc)),this.layerElement.setAttribute("stroke-width",r.sw)),this.layerElement.setAttribute("font-size",r.finalSize);var i=this.globalData.fontManager.getFontByName(r.f);if(i.fClass)this.layerElement.setAttribute("class",i.fClass);else{this.layerElement.setAttribute("font-family",i.fFamily);var n=r.fWeight,s=r.fStyle;this.layerElement.setAttribute("font-style",s),this.layerElement.setAttribute("font-weight",n)}this.layerElement.setAttribute("aria-label",r.t);var a,o=r.l||[],h=!!this.globalData.fontManager.chars;e=o.length;var l=this.mHelper,p=this.data.singleShape,c=0,f=0,u=!0,d=.001*r.tr*r.finalSize;if(!p||h||r.sz){var m,y=this.textSpans.length;for(t=0;t<e;t+=1){if(this.textSpans[t]||(this.textSpans[t]={span:null,childSpan:null,glyph:null}),!h||!p||0===t){if(a=y>t?this.textSpans[t].span:createNS(h?"g":"text"),y<=t){if(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=a,h){var g=createNS("g");a.appendChild(g),this.textSpans[t].childSpan=g}this.textSpans[t].span=a,this.layerElement.appendChild(a)}a.style.display="inherit"}if(l.reset(),p&&(o[t].n&&(c=-d,f+=r.yOffset,f+=u?1:0,u=!1),this.applyTextPropertiesToMatrix(r,l,o[t].line,c,f),c+=o[t].l||0,c+=d),h){var v;if(1===(m=this.globalData.fontManager.getCharData(r.finalText[t],i.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily)).t)v=new SVGCompElement(m.data,this.globalData,this);else{var _=emptyShapeData;m.data&&m.data.shapes&&(_=this.buildShapeData(m.data,r.finalSize)),v=new SVGShapeElement(_,this.globalData,this)}if(this.textSpans[t].glyph){var b=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(b.layerElement),b.destroy()}this.textSpans[t].glyph=v,v._debug=!0,v.prepareFrame(0),v.renderFrame(),this.textSpans[t].childSpan.appendChild(v.layerElement),1===m.t&&this.textSpans[t].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else p&&a.setAttribute("transform","translate("+l.props[12]+","+l.props[13]+")"),a.textContent=o[t].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}p&&a&&a.setAttribute("d","")}else{var P=this.textContainer,S="start";switch(r.j){case 1:S="end";break;case 2:S="middle";break;default:S="start"}P.setAttribute("text-anchor",S),P.setAttribute("letter-spacing",d);var w=this.buildTextContents(r.finalText);for(e=w.length,f=r.ps?r.ps[1]+r.ascent:0,t=0;t<e;t+=1)(a=this.textSpans[t].span||createNS("tspan")).textContent=w[t],a.setAttribute("x",0),a.setAttribute("y",f),a.style.display="inherit",P.appendChild(a),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=a,f+=r.finalLineHeight;this.layerElement.appendChild(P)}for(;t<this.textSpans.length;)this.textSpans[t].span.style.display="none",t+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var t,e,r=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<r;t+=1)(e=this.textSpans[t].glyph)&&(e.prepareFrame(this.comp.renderedFrame-this.data.st),e._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if((!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var t,e;this._sizeChanged=!0;var r,i,n,s=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;for(e=a.length,t=0;t<e;t+=1)a[t].n||(r=s[t],i=this.textSpans[t].span,(n=this.textSpans[t].glyph)&&n.renderFrame(),r._mdf.m&&i.setAttribute("transform",r.m),r._mdf.o&&i.setAttribute("opacity",r.o),r._mdf.sw&&i.setAttribute("stroke-width",r.sw),r._mdf.sc&&i.setAttribute("stroke",r.sc),r._mdf.fc&&i.setAttribute("fill",r.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var t=createNS("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},NullElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(t){return new NullElement(t,this.globalData,this)},SVGRendererBase.prototype.createShape=function(t){return new SVGShapeElement(t,this.globalData,this)},SVGRendererBase.prototype.createText=function(t){return new SVGTextLottieElement(t,this.globalData,this)},SVGRendererBase.prototype.createImage=function(t){return new IImageElement(t,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(t){return new ISolidElement(t,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var e=this.globalData.defs;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var r=createNS("clipPath"),i=createNS("rect");i.setAttribute("width",t.w),i.setAttribute("height",t.h),i.setAttribute("x",0),i.setAttribute("y",0);var n=createElementID();r.setAttribute("id",n),r.appendChild(i),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")"),e.appendChild(r),this.layers=t.layers,this.elements=createSizedArray(t.layers.length)},SVGRendererBase.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(t){var e=0,r=this.layers.length;for(e=0;e<r;e+=1)if(this.layers[e].ind===t)return e;return-1},SVGRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){e[t]=!0;var r=this.createItem(this.layers[t]);if(e[t]=r,getExpressionsPlugin()&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,t),this.layers[t].tt){var i="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(-1===i)return;if(this.elements[i]&&!0!==this.elements[i]){var n=e[i].getMatte(this.layers[t].tt);r.setMatte(n)}else this.buildItem(i),this.addPendingElement(r)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,r=this.elements.length;e<r;){if(this.elements[e]===t){var i="tp"in t.data?this.findIndexByInd(t.data.tp):e-1,n=this.elements[i].getMatte(this.layers[e].tt);t.setMatte(n);break}e+=1}}},SVGRendererBase.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){var e;null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var r=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=r-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<r;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(t,e){var r=t.getBaseElement();if(r){for(var i,n=0;n<e;)this.elements[n]&&!0!==this.elements[n]&&this.elements[n].getBaseElement()&&(i=this.elements[n].getBaseElement()),n+=1;i?this.layerElement.insertBefore(r,i):this.layerElement.appendChild(r)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initTransform(t,e,r),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&e.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}var r,i=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&(this.elements[r].prepareFrame(this.renderedFrame-this.layers[r].st),this.elements[r]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},ICompElement.prototype.setElements=function(t){this.elements=t},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier);var CompExpressionInterface=function(t){function e(e){for(var r=0,i=t.layers.length;r<i;){if(t.layers[r].nm===e||t.layers[r].ind===e)return t.elements[r].layerInterface;r+=1}return null}return Object.defineProperty(e,"_name",{value:t.data.nm}),e.layer=e,e.pixelAspect=1,e.height=t.data.h||t.globalData.compSize.h,e.width=t.data.w||t.globalData.compSize.w,e.pixelAspect=1,e.frameDuration=1/t.globalData.frameRate,e.displayStartTime=0,e.numLayers=t.layers.length,e},Expressions=function(){var t={};return t.initExpressions=function(t){var e=0,r=[];t.renderer.compInterface=CompExpressionInterface(t.renderer),t.renderer.globalData.projectInterface.registerComposition(t.renderer),t.renderer.globalData.pushExpression=function(){e+=1},t.renderer.globalData.popExpression=function(){0===(e-=1)&&function(){var t,e=r.length;for(t=0;t<e;t+=1)r[t].release();r.length=0}()},t.renderer.globalData.registerExpressionProperty=function(t){-1===r.indexOf(t)&&r.push(t)}},t}(),MaskManagerInterface=function(){function t(t,e){this._mask=t,this._data=e}Object.defineProperty(t.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(t.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}});return function(e){var r,i=createSizedArray(e.viewData.length),n=e.viewData.length;for(r=0;r<n;r+=1)i[r]=new t(e.viewData[r],e.masksProperties[r]);return function(t){for(r=0;r<n;){if(e.masksProperties[r].nm===t)return i[r];r+=1}return null}}}(),ExpressionPropertyInterface=function(){var t={pv:0,v:0,mult:1},e={pv:[0,0,0],v:[0,0,0],mult:1};function r(t,e,r){Object.defineProperty(t,"velocity",{get:function(){return e.getVelocityAtTime(e.comp.currentFrame)}}),t.numKeys=e.keyframes?e.keyframes.length:0,t.key=function(i){if(!t.numKeys)return 0;var n="";n="s"in e.keyframes[i-1]?e.keyframes[i-1].s:"e"in e.keyframes[i-2]?e.keyframes[i-2].e:e.keyframes[i-2].s;var s="unidimensional"===r?new Number(n):Object.assign({},n);return s.time=e.keyframes[i-1].t/e.elem.comp.globalData.frameRate,s.value="unidimensional"===r?n[0]:n,s},t.valueAtTime=e.getValueAtTime,t.speedAtTime=e.getSpeedAtTime,t.velocityAtTime=e.getVelocityAtTime,t.propertyGroup=e.propertyGroup}function i(){return t}return function(n){return n?"unidimensional"===n.propType?function(e){e&&"pv"in e||(e=t);var i=1/e.mult,n=e.pv*i,s=new Number(n);return s.value=n,r(s,e,"unidimensional"),function(){return e.k&&e.getValue(),n=e.v*i,s.value!==n&&((s=new Number(n)).value=n,r(s,e,"unidimensional")),s}}(n):function(t){t&&"pv"in t||(t=e);var i=1/t.mult,n=t.data&&t.data.l||t.pv.length,s=createTypedArray("float32",n),a=createTypedArray("float32",n);return s.value=a,r(s,t,"multidimensional"),function(){t.k&&t.getValue();for(var e=0;e<n;e+=1)a[e]=t.v[e]*i,s[e]=a[e];return s}}(n):i}}(),TransformExpressionInterface=function(t){function e(t){switch(t){case"scale":case"Scale":case"ADBE Scale":case 6:return e.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return e.rotation;case"ADBE Rotate X":return e.xRotation;case"ADBE Rotate Y":return e.yRotation;case"position":case"Position":case"ADBE Position":case 2:return e.position;case"ADBE Position_0":return e.xPosition;case"ADBE Position_1":return e.yPosition;case"ADBE Position_2":return e.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return e.anchorPoint;case"opacity":case"Opacity":case 11:return e.opacity;default:return null}}var r,i,n,s;return Object.defineProperty(e,"rotation",{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(e,"zRotation",{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(e,"xRotation",{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(e,"yRotation",{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(e,"scale",{get:ExpressionPropertyInterface(t.s)}),t.p?s=ExpressionPropertyInterface(t.p):(r=ExpressionPropertyInterface(t.px),i=ExpressionPropertyInterface(t.py),t.pz&&(n=ExpressionPropertyInterface(t.pz))),Object.defineProperty(e,"position",{get:function(){return t.p?s():[r(),i(),n?n():0]}}),Object.defineProperty(e,"xPosition",{get:ExpressionPropertyInterface(t.px)}),Object.defineProperty(e,"yPosition",{get:ExpressionPropertyInterface(t.py)}),Object.defineProperty(e,"zPosition",{get:ExpressionPropertyInterface(t.pz)}),Object.defineProperty(e,"anchorPoint",{get:ExpressionPropertyInterface(t.a)}),Object.defineProperty(e,"opacity",{get:ExpressionPropertyInterface(t.o)}),Object.defineProperty(e,"skew",{get:ExpressionPropertyInterface(t.sk)}),Object.defineProperty(e,"skewAxis",{get:ExpressionPropertyInterface(t.sa)}),Object.defineProperty(e,"orientation",{get:ExpressionPropertyInterface(t.or)}),e},LayerExpressionInterface=function(){function t(t){var e=new Matrix;void 0!==t?this._elem.finalTransform.mProp.getValueAtTime(t).clone(e):this._elem.finalTransform.mProp.applyToMatrix(e);return e}function e(t,e){var r=this.getMatrix(e);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.applyPoint(r,t)}function r(t,e){var r=this.getMatrix(e);return this.applyPoint(r,t)}function i(t,e){var r=this.getMatrix(e);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.invertPoint(r,t)}function n(t,e){var r=this.getMatrix(e);return this.invertPoint(r,t)}function s(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,i=this._elem.hierarchy.length;for(r=0;r<i;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(t)}return t.applyToPointArray(e[0],e[1],e[2]||0)}function a(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,i=this._elem.hierarchy.length;for(r=0;r<i;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(t)}return t.inversePoint(e)}function o(t){var e=new Matrix;if(e.reset(),this._elem.finalTransform.mProp.applyToMatrix(e),this._elem.hierarchy&&this._elem.hierarchy.length){var r,i=this._elem.hierarchy.length;for(r=0;r<i;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e);return e.inversePoint(t)}return e.inversePoint(t)}function h(){return[1,1,1,1]}return function(l){var p;function c(t){switch(t){case"ADBE Root Vectors Group":case"Contents":case 2:return c.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return p;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return c.effect;case"ADBE Text Properties":return c.textInterface;default:return null}}c.getMatrix=t,c.invertPoint=a,c.applyPoint=s,c.toWorld=r,c.toWorldVec=e,c.fromWorld=n,c.fromWorldVec=i,c.toComp=r,c.fromComp=o,c.sampleImage=h,c.sourceRectAtTime=l.sourceRectAtTime.bind(l),c._elem=l;var f=getDescriptor(p=TransformExpressionInterface(l.finalTransform.mProp),"anchorPoint");return Object.defineProperties(c,{hasParent:{get:function(){return l.hierarchy.length}},parent:{get:function(){return l.hierarchy[0].layerInterface}},rotation:getDescriptor(p,"rotation"),scale:getDescriptor(p,"scale"),position:getDescriptor(p,"position"),opacity:getDescriptor(p,"opacity"),anchorPoint:f,anchor_point:f,transform:{get:function(){return p}},active:{get:function(){return l.isInRange}}}),c.startTime=l.data.st,c.index=l.data.ind,c.source=l.data.refId,c.height=0===l.data.ty?l.data.h:100,c.width=0===l.data.ty?l.data.w:100,c.inPoint=l.data.ip/l.comp.globalData.frameRate,c.outPoint=l.data.op/l.comp.globalData.frameRate,c._name=l.data.nm,c.registerMaskInterface=function(t){c.mask=new MaskManagerInterface(t,l)},c.registerEffectsInterface=function(t){c.effect=t},c}}(),propertyGroupFactory=function(t,e){return function(r){return(r=void 0===r?1:r)<=0?t:e(r-1)}},PropertyInterface=function(t,e){var r={_name:t};return function(t){return(t=void 0===t?1:t)<=0?r:e(t-1)}},EffectsExpressionInterface=function(){function t(r,i,n,s){function a(t){for(var e=r.ef,i=0,n=e.length;i<n;){if(t===e[i].nm||t===e[i].mn||t===e[i].ix)return 5===e[i].ty?l[i]:l[i]();i+=1}throw new Error}var o,h=propertyGroupFactory(a,n),l=[],p=r.ef.length;for(o=0;o<p;o+=1)5===r.ef[o].ty?l.push(t(r.ef[o],i.effectElements[o],i.effectElements[o].propertyGroup,s)):l.push(e(i.effectElements[o],r.ef[o].ty,s,h));return"ADBE Color Control"===r.mn&&Object.defineProperty(a,"color",{get:function(){return l[0]()}}),Object.defineProperties(a,{numProperties:{get:function(){return r.np}},_name:{value:r.nm},propertyGroup:{value:h}}),a.enabled=0!==r.en,a.active=a.enabled,a}function e(t,e,r,i){var n=ExpressionPropertyInterface(t.p);return t.p.setGroupProperty&&t.p.setGroupProperty(PropertyInterface("",i)),function(){return 10===e?r.comp.compInterface(t.p.v):n()}}return{createEffectsInterface:function(e,r){if(e.effectsManager){var i,n=[],s=e.data.ef,a=e.effectsManager.effectElements.length;for(i=0;i<a;i+=1)n.push(t(s[i],e.effectsManager.effectElements[i],r,e));var o=e.data.ef||[],h=function(t){for(i=0,a=o.length;i<a;){if(t===o[i].nm||t===o[i].mn||t===o[i].ix)return n[i];i+=1}return null};return Object.defineProperty(h,"numProperties",{get:function(){return o.length}}),h}return null}}}(),ShapePathInterface=function(t,e,r){var i=e.sh;function n(t){return"Shape"===t||"shape"===t||"Path"===t||"path"===t||"ADBE Vector Shape"===t||2===t?n.path:null}var s=propertyGroupFactory(n,r);return i.setGroupProperty(PropertyInterface("Path",s)),Object.defineProperties(n,{path:{get:function(){return i.k&&i.getValue(),i}},shape:{get:function(){return i.k&&i.getValue(),i}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:r}}),n},ShapeExpressionInterface=function(){function t(t,o,u){var d,m=[],y=t?t.length:0;for(d=0;d<y;d+=1)"gr"===t[d].ty?m.push(e(t[d],o[d],u)):"fl"===t[d].ty?m.push(r(t[d],o[d],u)):"st"===t[d].ty?m.push(s(t[d],o[d],u)):"tm"===t[d].ty?m.push(a(t[d],o[d],u)):"tr"===t[d].ty||("el"===t[d].ty?m.push(h(t[d],o[d],u)):"sr"===t[d].ty?m.push(l(t[d],o[d],u)):"sh"===t[d].ty?m.push(ShapePathInterface(t[d],o[d],u)):"rc"===t[d].ty?m.push(p(t[d],o[d],u)):"rd"===t[d].ty?m.push(c(t[d],o[d],u)):"rp"===t[d].ty?m.push(f(t[d],o[d],u)):"gf"===t[d].ty?m.push(i(t[d],o[d],u)):m.push(n(t[d],o[d])));return m}function e(e,r,i){var n=function(t){switch(t){case"ADBE Vectors Group":case"Contents":case 2:return n.content;default:return n.transform}};n.propertyGroup=propertyGroupFactory(n,i);var s=function(e,r,i){var n,s=function(t){for(var e=0,r=n.length;e<r;){if(n[e]._name===t||n[e].mn===t||n[e].propertyIndex===t||n[e].ix===t||n[e].ind===t)return n[e];e+=1}return"number"==typeof t?n[t-1]:null};s.propertyGroup=propertyGroupFactory(s,i),n=t(e.it,r.it,s.propertyGroup),s.numProperties=n.length;var a=o(e.it[e.it.length-1],r.it[r.it.length-1],s.propertyGroup);return s.transform=a,s.propertyIndex=e.cix,s._name=e.nm,s}(e,r,n.propertyGroup),a=o(e.it[e.it.length-1],r.it[r.it.length-1],n.propertyGroup);return n.content=s,n.transform=a,Object.defineProperty(n,"_name",{get:function(){return e.nm}}),n.numProperties=e.np,n.propertyIndex=e.ix,n.nm=e.nm,n.mn=e.mn,n}function r(t,e,r){function i(t){return"Color"===t||"color"===t?i.color:"Opacity"===t||"opacity"===t?i.opacity:null}return Object.defineProperties(i,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface("Color",r)),e.o.setGroupProperty(PropertyInterface("Opacity",r)),i}function i(t,e,r){function i(t){return"Start Point"===t||"start point"===t?i.startPoint:"End Point"===t||"end point"===t?i.endPoint:"Opacity"===t||"opacity"===t?i.opacity:null}return Object.defineProperties(i,{startPoint:{get:ExpressionPropertyInterface(e.s)},endPoint:{get:ExpressionPropertyInterface(e.e)},opacity:{get:ExpressionPropertyInterface(e.o)},type:{get:function(){return"a"}},_name:{value:t.nm},mn:{value:t.mn}}),e.s.setGroupProperty(PropertyInterface("Start Point",r)),e.e.setGroupProperty(PropertyInterface("End Point",r)),e.o.setGroupProperty(PropertyInterface("Opacity",r)),i}function n(){return function(){return null}}function s(t,e,r){var i,n=propertyGroupFactory(l,r),s=propertyGroupFactory(h,n);function a(r){Object.defineProperty(h,t.d[r].nm,{get:ExpressionPropertyInterface(e.d.dataProps[r].p)})}var o=t.d?t.d.length:0,h={};for(i=0;i<o;i+=1)a(i),e.d.dataProps[i].p.setGroupProperty(s);function l(t){return"Color"===t||"color"===t?l.color:"Opacity"===t||"opacity"===t?l.opacity:"Stroke Width"===t||"stroke width"===t?l.strokeWidth:null}return Object.defineProperties(l,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},strokeWidth:{get:ExpressionPropertyInterface(e.w)},dash:{get:function(){return h}},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface("Color",n)),e.o.setGroupProperty(PropertyInterface("Opacity",n)),e.w.setGroupProperty(PropertyInterface("Stroke Width",n)),l}function a(t,e,r){function i(e){return e===t.e.ix||"End"===e||"end"===e?i.end:e===t.s.ix?i.start:e===t.o.ix?i.offset:null}var n=propertyGroupFactory(i,r);return i.propertyIndex=t.ix,e.s.setGroupProperty(PropertyInterface("Start",n)),e.e.setGroupProperty(PropertyInterface("End",n)),e.o.setGroupProperty(PropertyInterface("Offset",n)),i.propertyIndex=t.ix,i.propertyGroup=r,Object.defineProperties(i,{start:{get:ExpressionPropertyInterface(e.s)},end:{get:ExpressionPropertyInterface(e.e)},offset:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm}}),i.mn=t.mn,i}function o(t,e,r){function i(e){return t.a.ix===e||"Anchor Point"===e?i.anchorPoint:t.o.ix===e||"Opacity"===e?i.opacity:t.p.ix===e||"Position"===e?i.position:t.r.ix===e||"Rotation"===e||"ADBE Vector Rotation"===e?i.rotation:t.s.ix===e||"Scale"===e?i.scale:t.sk&&t.sk.ix===e||"Skew"===e?i.skew:t.sa&&t.sa.ix===e||"Skew Axis"===e?i.skewAxis:null}var n=propertyGroupFactory(i,r);return e.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",n)),e.transform.mProps.p.setGroupProperty(PropertyInterface("Position",n)),e.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",n)),e.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",n)),e.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",n)),e.transform.mProps.sk&&(e.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",n)),e.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",n))),e.transform.op.setGroupProperty(PropertyInterface("Opacity",n)),Object.defineProperties(i,{opacity:{get:ExpressionPropertyInterface(e.transform.mProps.o)},position:{get:ExpressionPropertyInterface(e.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(e.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(e.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(e.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(e.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(e.transform.mProps.sa)},_name:{value:t.nm}}),i.ty="tr",i.mn=t.mn,i.propertyGroup=r,i}function h(t,e,r){function i(e){return t.p.ix===e?i.position:t.s.ix===e?i.size:null}var n=propertyGroupFactory(i,r);i.propertyIndex=t.ix;var s="tm"===e.sh.ty?e.sh.prop:e.sh;return s.s.setGroupProperty(PropertyInterface("Size",n)),s.p.setGroupProperty(PropertyInterface("Position",n)),Object.defineProperties(i,{size:{get:ExpressionPropertyInterface(s.s)},position:{get:ExpressionPropertyInterface(s.p)},_name:{value:t.nm}}),i.mn=t.mn,i}function l(t,e,r){function i(e){return t.p.ix===e?i.position:t.r.ix===e?i.rotation:t.pt.ix===e?i.points:t.or.ix===e||"ADBE Vector Star Outer Radius"===e?i.outerRadius:t.os.ix===e?i.outerRoundness:!t.ir||t.ir.ix!==e&&"ADBE Vector Star Inner Radius"!==e?t.is&&t.is.ix===e?i.innerRoundness:null:i.innerRadius}var n=propertyGroupFactory(i,r),s="tm"===e.sh.ty?e.sh.prop:e.sh;return i.propertyIndex=t.ix,s.or.setGroupProperty(PropertyInterface("Outer Radius",n)),s.os.setGroupProperty(PropertyInterface("Outer Roundness",n)),s.pt.setGroupProperty(PropertyInterface("Points",n)),s.p.setGroupProperty(PropertyInterface("Position",n)),s.r.setGroupProperty(PropertyInterface("Rotation",n)),t.ir&&(s.ir.setGroupProperty(PropertyInterface("Inner Radius",n)),s.is.setGroupProperty(PropertyInterface("Inner Roundness",n))),Object.defineProperties(i,{position:{get:ExpressionPropertyInterface(s.p)},rotation:{get:ExpressionPropertyInterface(s.r)},points:{get:ExpressionPropertyInterface(s.pt)},outerRadius:{get:ExpressionPropertyInterface(s.or)},outerRoundness:{get:ExpressionPropertyInterface(s.os)},innerRadius:{get:ExpressionPropertyInterface(s.ir)},innerRoundness:{get:ExpressionPropertyInterface(s.is)},_name:{value:t.nm}}),i.mn=t.mn,i}function p(t,e,r){function i(e){return t.p.ix===e?i.position:t.r.ix===e?i.roundness:t.s.ix===e||"Size"===e||"ADBE Vector Rect Size"===e?i.size:null}var n=propertyGroupFactory(i,r),s="tm"===e.sh.ty?e.sh.prop:e.sh;return i.propertyIndex=t.ix,s.p.setGroupProperty(PropertyInterface("Position",n)),s.s.setGroupProperty(PropertyInterface("Size",n)),s.r.setGroupProperty(PropertyInterface("Rotation",n)),Object.defineProperties(i,{position:{get:ExpressionPropertyInterface(s.p)},roundness:{get:ExpressionPropertyInterface(s.r)},size:{get:ExpressionPropertyInterface(s.s)},_name:{value:t.nm}}),i.mn=t.mn,i}function c(t,e,r){function i(e){return t.r.ix===e||"Round Corners 1"===e?i.radius:null}var n=propertyGroupFactory(i,r),s=e;return i.propertyIndex=t.ix,s.rd.setGroupProperty(PropertyInterface("Radius",n)),Object.defineProperties(i,{radius:{get:ExpressionPropertyInterface(s.rd)},_name:{value:t.nm}}),i.mn=t.mn,i}function f(t,e,r){function i(e){return t.c.ix===e||"Copies"===e?i.copies:t.o.ix===e||"Offset"===e?i.offset:null}var n=propertyGroupFactory(i,r),s=e;return i.propertyIndex=t.ix,s.c.setGroupProperty(PropertyInterface("Copies",n)),s.o.setGroupProperty(PropertyInterface("Offset",n)),Object.defineProperties(i,{copies:{get:ExpressionPropertyInterface(s.c)},offset:{get:ExpressionPropertyInterface(s.o)},_name:{value:t.nm}}),i.mn=t.mn,i}return function(e,r,i){var n;function s(t){if("number"==typeof t)return 0===(t=void 0===t?1:t)?i:n[t-1];for(var e=0,r=n.length;e<r;){if(n[e]._name===t)return n[e];e+=1}return null}return s.propertyGroup=propertyGroupFactory(s,(function(){return i})),n=t(e,r,s.propertyGroup),s.numProperties=n.length,s._name="Contents",s}}(),TextExpressionInterface=function(t){var e;function r(t){switch(t){case"ADBE Text Document":return r.sourceText;default:return null}}return Object.defineProperty(r,"sourceText",{get:function(){t.textProperty.getValue();var r=t.textProperty.currentData.t;return void 0!==r&&(t.textProperty.currentData.t=void 0,(e=new String(r)).value=r||new String(r)),e}}),r};function _typeof$2(t){return(_typeof$2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var FootageInterface=(dataInterfaceFactory=function(t){function e(t){return"Outline"===t?e.outlineInterface():null}return e._name="Outline",e.outlineInterface=function(t){var e="",r=t.getFootageData();function i(t){if(r[t])return e=t,"object"===_typeof$2(r=r[t])?i:r;var n=t.indexOf(e);if(-1!==n){var s=parseInt(t.substr(n+e.length),10);return"object"===_typeof$2(r=r[s])?i:r}return""}return function(){return e="",r=t.getFootageData(),i}}(t),e},function(t){function e(t){return"Data"===t?e.dataInterface:null}return e._name="Data",e.dataInterface=dataInterfaceFactory(t),e}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(t){return interfaces[t]||null}function _typeof$1(t){return(_typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function seedRandom(t,e){var r=this,i=e.pow(256,6),n=e.pow(2,52),s=2*n;function a(t){var e,r=t.length,i=this,n=0,s=i.i=i.j=0,a=i.S=[];for(r||(t=[r++]);n<256;)a[n]=n++;for(n=0;n<256;n++)a[n]=a[s=255&s+t[n%r]+(e=a[n])],a[s]=e;i.g=function(t){for(var e,r=0,n=i.i,s=i.j,a=i.S;t--;)e=a[n=255&n+1],r=256*r+a[255&(a[n]=a[s=255&s+e])+(a[s]=e)];return i.i=n,i.j=s,r}}function o(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function h(t,e){for(var r,i=t+"",n=0;n<i.length;)e[255&n]=255&(r^=19*e[255&n])+i.charCodeAt(n++);return l(e)}function l(t){return String.fromCharCode.apply(0,t)}e.seedrandom=function(p,c,f){var u=[],d=h(function t(e,r){var i,n=[],s=_typeof$1(e);if(r&&"object"==s)for(i in e)try{n.push(t(e[i],r-1))}catch(t){}return n.length?n:"string"==s?e:e+"\0"}((c=!0===c?{entropy:!0}:c||{}).entropy?[p,l(t)]:null===p?function(){try{void 0;var e=new Uint8Array(256);return(r.crypto||r.msCrypto).getRandomValues(e),l(e)}catch(e){var i=r.navigator,n=i&&i.plugins;return[+new Date,r,n,r.screen,l(t)]}}():p,3),u),m=new a(u),y=function(){for(var t=m.g(6),e=i,r=0;t<n;)t=256*(t+r),e*=256,r=m.g(1);for(;t>=s;)t/=2,e/=2,r>>>=1;return(t+r)/e};return y.int32=function(){return 0|m.g(4)},y.quick=function(){return m.g(4)/4294967296},y.double=y,h(l(m.S),t),(c.pass||f||function(t,r,i,n){return n&&(n.S&&o(n,m),t.state=function(){return o(m,{})}),i?(e.random=t,r):t})(y,d,"global"in c?c.global:this==e,c.state)},h(e.random(),t)}function initialize$2(t){seedRandom([],t)}var propTypes={SHAPE:"shape"};function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null;function $bm_isInstanceOfArray(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,e){return"number"===t||"boolean"===t||"string"===t||e instanceof Number}function $bm_neg(t){var e=_typeof(t);if("number"===e||"boolean"===e||t instanceof Number)return-t;if($bm_isInstanceOfArray(t)){var r,i=t.length,n=[];for(r=0;r<i;r+=1)n[r]=-t[r];return n}return t.propType?t.v:-t}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(t,e){var r=_typeof(t),i=_typeof(e);if("string"===r||"string"===i)return t+e;if(isNumerable(r,t)&&isNumerable(i,e))return t+e;if($bm_isInstanceOfArray(t)&&isNumerable(i,e))return(t=t.slice(0))[0]+=e,t;if(isNumerable(r,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t+e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var n=0,s=t.length,a=e.length,o=[];n<s||n<a;)("number"==typeof t[n]||t[n]instanceof Number)&&("number"==typeof e[n]||e[n]instanceof Number)?o[n]=t[n]+e[n]:o[n]=void 0===e[n]?t[n]:t[n]||e[n],n+=1;return o}return 0}var add=sum;function sub(t,e){var r=_typeof(t),i=_typeof(e);if(isNumerable(r,t)&&isNumerable(i,e))return"string"===r&&(t=parseInt(t,10)),"string"===i&&(e=parseInt(e,10)),t-e;if($bm_isInstanceOfArray(t)&&isNumerable(i,e))return(t=t.slice(0))[0]-=e,t;if(isNumerable(r,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t-e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var n=0,s=t.length,a=e.length,o=[];n<s||n<a;)("number"==typeof t[n]||t[n]instanceof Number)&&("number"==typeof e[n]||e[n]instanceof Number)?o[n]=t[n]-e[n]:o[n]=void 0===e[n]?t[n]:t[n]||e[n],n+=1;return o}return 0}function mul(t,e){var r,i,n,s=_typeof(t),a=_typeof(e);if(isNumerable(s,t)&&isNumerable(a,e))return t*e;if($bm_isInstanceOfArray(t)&&isNumerable(a,e)){for(n=t.length,r=createTypedArray("float32",n),i=0;i<n;i+=1)r[i]=t[i]*e;return r}if(isNumerable(s,t)&&$bm_isInstanceOfArray(e)){for(n=e.length,r=createTypedArray("float32",n),i=0;i<n;i+=1)r[i]=t*e[i];return r}return 0}function div(t,e){var r,i,n,s=_typeof(t),a=_typeof(e);if(isNumerable(s,t)&&isNumerable(a,e))return t/e;if($bm_isInstanceOfArray(t)&&isNumerable(a,e)){for(n=t.length,r=createTypedArray("float32",n),i=0;i<n;i+=1)r[i]=t[i]/e;return r}if(isNumerable(s,t)&&$bm_isInstanceOfArray(e)){for(n=e.length,r=createTypedArray("float32",n),i=0;i<n;i+=1)r[i]=t/e[i];return r}return 0}function mod(t,e){return"string"==typeof t&&(t=parseInt(t,10)),"string"==typeof e&&(e=parseInt(e,10)),t%e}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(t,e,r){if(e>r){var i=r;r=e,e=i}return Math.min(Math.max(t,e),r)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if("number"==typeof t||t instanceof Number)return e=e||0,Math.abs(t-e);var r;e||(e=helperLengthArray);var i=Math.min(t.length,e.length),n=0;for(r=0;r<i;r+=1)n+=Math.pow(e[r]-t[r],2);return Math.sqrt(n)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e,r,i=t[0],n=t[1],s=t[2],a=Math.max(i,n,s),o=Math.min(i,n,s),h=(a+o)/2;if(a===o)e=0,r=0;else{var l=a-o;switch(r=h>.5?l/(2-a-o):l/(a+o),a){case i:e=(n-s)/l+(n<s?6:0);break;case n:e=(s-i)/l+2;break;case s:e=(i-n)/l+4}e/=6}return[e,r,h,t[3]]}function hue2rgb(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function hslToRgb(t){var e,r,i,n=t[0],s=t[1],a=t[2];if(0===s)e=a,i=a,r=a;else{var o=a<.5?a*(1+s):a+s-a*s,h=2*a-o;e=hue2rgb(h,o,n+1/3),r=hue2rgb(h,o,n),i=hue2rgb(h,o,n-1/3)}return[e,r,i,t[3]]}function linear(t,e,r,i,n){if(void 0!==i&&void 0!==n||(i=e,n=r,e=0,r=1),r<e){var s=r;r=e,e=s}if(t<=e)return i;if(t>=r)return n;var a,o=r===e?0:(t-e)/(r-e);if(!i.length)return i+(n-i)*o;var h=i.length,l=createTypedArray("float32",h);for(a=0;a<h;a+=1)l[a]=i[a]+(n[a]-i[a])*o;return l}function random(t,e){if(void 0===e&&(void 0===t?(t=0,e=1):(e=t,t=void 0)),e.length){var r,i=e.length;t||(t=createTypedArray("float32",i));var n=createTypedArray("float32",i),s=BMMath.random();for(r=0;r<i;r+=1)n[r]=t[r]+s*(e[r]-t[r]);return n}return void 0===t&&(t=0),t+BMMath.random()*(e-t)}function createPath(t,e,r,i){var n,s=t.length,a=shapePool.newElement();a.setPathData(!!i,s);var o,h,l=[0,0];for(n=0;n<s;n+=1)o=e&&e[n]?e[n]:l,h=r&&r[n]?r[n]:l,a.setTripleAt(t[n][0],t[n][1],h[0]+t[n][0],h[1]+t[n][1],o[0]+t[n][0],o[1]+t[n][1],n,!0);return a}function initiateExpression(elem,data,property){function noOp(t){return t}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(t,e){var r,i,n=this.pv.length?this.pv.length:1,s=createTypedArray("float32",n);var a=Math.floor(5*time);for(r=0,i=0;r<a;){for(i=0;i<n;i+=1)s[i]+=-e+2*e*BMMath.random();r+=1}var o=5*time,h=o-Math.floor(o),l=createTypedArray("float32",n);if(n>1){for(i=0;i<n;i+=1)l[i]=this.pv[i]+s[i]+(-e+2*e*BMMath.random())*h;return l}return this.pv+s[0]+(-e+2*e*BMMath.random())*h}.bind(this);function loopInDuration(t,e){return loopIn(t,e,!0)}function loopOutDuration(t,e){return loopOut(t,e,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(t,e){var r=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],i=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads;return[-Math.atan2(r[1],r[2])/degToRads,i,0]}function easeOut(t,e,r,i,n){return applyEase(easeOutBez,t,e,r,i,n)}function easeIn(t,e,r,i,n){return applyEase(easeInBez,t,e,r,i,n)}function ease(t,e,r,i,n){return applyEase(easeInOutBez,t,e,r,i,n)}function applyEase(t,e,r,i,n,s){void 0===n?(n=r,s=i):e=(e-r)/(i-r),e>1?e=1:e<0&&(e=0);var a=t(e);if($bm_isInstanceOfArray(n)){var o,h=n.length,l=createTypedArray("float32",h);for(o=0;o<h;o+=1)l[o]=(s[o]-n[o])*a+n[o];return l}return(s-n)*a+n}function nearestKey(t){var e,r,i,n=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(r=-1,(t*=elem.comp.globalData.frameRate)<data.k[0].t)r=1,i=data.k[0].t;else{for(e=0;e<n-1;e+=1){if(t===data.k[e].t){r=e+1,i=data.k[e].t;break}if(t>data.k[e].t&&t<data.k[e+1].t){t-data.k[e].t>data.k[e+1].t-t?(r=e+2,i=data.k[e+1].t):(r=e+1,i=data.k[e].t);break}}-1===r&&(r=e+1,i=data.k[e].t)}else r=0,i=0;var s={};return s.index=r,s.time=i/elem.comp.globalData.frameRate,s}function key(t){var e,r,i;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var n=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;for(i=n.length,r=0;r<i;r+=1)e[r]=n[r],e.value[r]=n[r];return e}function framesToTime(t,e){return e||(e=elem.comp.globalData.frameRate),t/e}function timeToFrames(t,e){return t||0===t||(t=time),e||(e=elem.comp.globalData.frameRate),t*e}function seedRandom(t){BMMath.seedrandom(randSeed+t)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(t,e){return"string"==typeof value?void 0===e?value.substring(t):value.substring(t,e):""}function substr(t,e){return"string"==typeof value?void 0===e?value.substr(t):value.substr(t,e):""}function posterizeTime(t){time=0===t?0:Math.floor(time*t)/t,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(t){return value=t,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath],ob}(),expressionHelpers={searchExpressions:function(t,e,r){e.x&&(r.k=!0,r.x=!0,r.initiateExpression=ExpressionManager.initiateExpression,r.effectsSequence.push(r.initiateExpression(t,e,r).bind(r)))},getSpeedAtTime:function(t){var e=this.getValueAtTime(t),r=this.getValueAtTime(t+-.01),i=0;if(e.length){var n;for(n=0;n<e.length;n+=1)i+=Math.pow(r[n]-e[n],2);i=100*Math.sqrt(i)}else i=0;return i},getVelocityAtTime:function(t){if(void 0!==this.vel)return this.vel;var e,r,i=this.getValueAtTime(t),n=this.getValueAtTime(t+-.001);if(i.length)for(e=createTypedArray("float32",i.length),r=0;r<i.length;r+=1)e[r]=(n[r]-i[r])/-.001;else e=(n-i)/-.001;return e},getValueAtTime:function(t){return t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<t?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(t,this._cachingAtTime),this._cachingAtTime.lastFrame=t),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(t){this.propertyGroup=t}};function addPropertyDecorator(){function t(t,e,r){if(!this.k||!this.keyframes)return this.pv;t=t?t.toLowerCase():"";var i,n,s,a,o,h=this.comp.renderedFrame,l=this.keyframes,p=l[l.length-1].t;if(h<=p)return this.pv;if(r?n=p-(i=e?Math.abs(p-this.elem.comp.globalData.frameRate*e):Math.max(0,p-this.elem.data.ip)):((!e||e>l.length-1)&&(e=l.length-1),i=p-(n=l[l.length-1-e].t)),"pingpong"===t){if(Math.floor((h-n)/i)%2!=0)return this.getValueAtTime((i-(h-n)%i+n)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var c=this.getValueAtTime(n/this.comp.globalData.frameRate,0),f=this.getValueAtTime(p/this.comp.globalData.frameRate,0),u=this.getValueAtTime(((h-n)%i+n)/this.comp.globalData.frameRate,0),d=Math.floor((h-n)/i);if(this.pv.length){for(a=(o=new Array(c.length)).length,s=0;s<a;s+=1)o[s]=(f[s]-c[s])*d+u[s];return o}return(f-c)*d+u}if("continue"===t){var m=this.getValueAtTime(p/this.comp.globalData.frameRate,0),y=this.getValueAtTime((p-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(o=new Array(m.length)).length,s=0;s<a;s+=1)o[s]=m[s]+(m[s]-y[s])*((h-p)/this.comp.globalData.frameRate)/5e-4;return o}return m+(h-p)/.001*(m-y)}}return this.getValueAtTime(((h-n)%i+n)/this.comp.globalData.frameRate,0)}function e(t,e,r){if(!this.k)return this.pv;t=t?t.toLowerCase():"";var i,n,s,a,o,h=this.comp.renderedFrame,l=this.keyframes,p=l[0].t;if(h>=p)return this.pv;if(r?n=p+(i=e?Math.abs(this.elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-p)):((!e||e>l.length-1)&&(e=l.length-1),i=(n=l[e].t)-p),"pingpong"===t){if(Math.floor((p-h)/i)%2==0)return this.getValueAtTime(((p-h)%i+p)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var c=this.getValueAtTime(p/this.comp.globalData.frameRate,0),f=this.getValueAtTime(n/this.comp.globalData.frameRate,0),u=this.getValueAtTime((i-(p-h)%i+p)/this.comp.globalData.frameRate,0),d=Math.floor((p-h)/i)+1;if(this.pv.length){for(a=(o=new Array(c.length)).length,s=0;s<a;s+=1)o[s]=u[s]-(f[s]-c[s])*d;return o}return u-(f-c)*d}if("continue"===t){var m=this.getValueAtTime(p/this.comp.globalData.frameRate,0),y=this.getValueAtTime((p+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(o=new Array(m.length)).length,s=0;s<a;s+=1)o[s]=m[s]+(m[s]-y[s])*(p-h)/.001;return o}return m+(m-y)*(p-h)/.001}}return this.getValueAtTime((i-((p-h)%i+p))/this.comp.globalData.frameRate,0)}function r(t,e){if(!this.k)return this.pv;if(t=.5*(t||.4),(e=Math.floor(e||5))<=1)return this.pv;var r,i,n=this.comp.renderedFrame/this.comp.globalData.frameRate,s=n-t,a=e>1?(n+t-s)/(e-1):1,o=0,h=0;for(r=this.pv.length?createTypedArray("float32",this.pv.length):0;o<e;){if(i=this.getValueAtTime(s+o*a),this.pv.length)for(h=0;h<this.pv.length;h+=1)r[h]+=i[h];else r+=i;o+=1}if(this.pv.length)for(h=0;h<this.pv.length;h+=1)r[h]/=e;else r/=e;return r}function i(t){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var e=this._transformCachingAtTime.v;if(e.cloneFromProps(this.pre.props),this.appliedTransformations<1){var r=this.a.getValueAtTime(t);e.translate(-r[0]*this.a.mult,-r[1]*this.a.mult,r[2]*this.a.mult)}if(this.appliedTransformations<2){var i=this.s.getValueAtTime(t);e.scale(i[0]*this.s.mult,i[1]*this.s.mult,i[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var n=this.sk.getValueAtTime(t),s=this.sa.getValueAtTime(t);e.skewFromAxis(-n*this.sk.mult,s*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var a=this.r.getValueAtTime(t);e.rotate(-a*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var o=this.rz.getValueAtTime(t),h=this.ry.getValueAtTime(t),l=this.rx.getValueAtTime(t),p=this.or.getValueAtTime(t);e.rotateZ(-o*this.rz.mult).rotateY(h*this.ry.mult).rotateX(l*this.rx.mult).rotateZ(-p[2]*this.or.mult).rotateY(p[1]*this.or.mult).rotateX(p[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var c=this.px.getValueAtTime(t),f=this.py.getValueAtTime(t);if(this.data.p.z){var u=this.pz.getValueAtTime(t);e.translate(c*this.px.mult,f*this.py.mult,-u*this.pz.mult)}else e.translate(c*this.px.mult,f*this.py.mult,0)}else{var d=this.p.getValueAtTime(t);e.translate(d[0]*this.p.mult,d[1]*this.p.mult,-d[2]*this.p.mult)}return e}function n(){return this.v.clone(new Matrix)}var s=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(t,e,r){var a=s(t,e,r);return a.dynamicProperties.length?a.getValueAtTime=i.bind(a):a.getValueAtTime=n.bind(a),a.setGroupProperty=expressionHelpers.setGroupProperty,a};var a=PropertyFactory.getProp;PropertyFactory.getProp=function(i,n,s,o,h){var l=a(i,n,s,o,h);l.kf?l.getValueAtTime=expressionHelpers.getValueAtTime.bind(l):l.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(l),l.setGroupProperty=expressionHelpers.setGroupProperty,l.loopOut=t,l.loopIn=e,l.smooth=r,l.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(l),l.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(l),l.numKeys=1===n.a?n.k.length:0,l.propertyIndex=n.ix;var p=0;return 0!==s&&(p=createTypedArray("float32",1===n.a?n.k[0].s.length:n.k.length)),l._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:p},expressionHelpers.searchExpressions(i,n,l),l.k&&h.addDynamicProperty(l),l};var o=ShapePropertyFactory.getConstructorFunction(),h=ShapePropertyFactory.getKeyframedConstructorFunction();function l(){}l.prototype={vertices:function(t,e){this.k&&this.getValue();var r,i=this.v;void 0!==e&&(i=this.getValueAtTime(e,0));var n=i._length,s=i[t],a=i.v,o=createSizedArray(n);for(r=0;r<n;r+=1)o[r]="i"===t||"o"===t?[s[r][0]-a[r][0],s[r][1]-a[r][1]]:[s[r][0],s[r][1]];return o},points:function(t){return this.vertices("v",t)},inTangents:function(t){return this.vertices("i",t)},outTangents:function(t){return this.vertices("o",t)},isClosed:function(){return this.v.c},pointOnPath:function(t,e){var r=this.v;void 0!==e&&(r=this.getValueAtTime(e,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(r));for(var i,n=this._segmentsLength,s=n.lengths,a=n.totalLength*t,o=0,h=s.length,l=0;o<h;){if(l+s[o].addedLength>a){var p=o,c=r.c&&o===h-1?0:o+1,f=(a-l)/s[o].addedLength;i=bez.getPointInSegment(r.v[p],r.v[c],r.o[p],r.i[c],f,s[o]);break}l+=s[o].addedLength,o+=1}return i||(i=r.c?[r.v[0][0],r.v[0][1]]:[r.v[r._length-1][0],r.v[r._length-1][1]]),i},vectorOnPath:function(t,e,r){1==t?t=this.v.c:0==t&&(t=.999);var i=this.pointOnPath(t,e),n=this.pointOnPath(t+.001,e),s=n[0]-i[0],a=n[1]-i[1],o=Math.sqrt(Math.pow(s,2)+Math.pow(a,2));return 0===o?[0,0]:"tangent"===r?[s/o,a/o]:[-a/o,s/o]},tangentOnPath:function(t,e){return this.vectorOnPath(t,e,"tangent")},normalOnPath:function(t,e){return this.vectorOnPath(t,e,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([l],o),extendPrototype([l],h),h.prototype.getValueAtTime=function(t){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<t?this._caching.lastIndex:0,this._cachingAtTime.lastTime=t,this.interpolateShape(t,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},h.prototype.initiateExpression=ExpressionManager.initiateExpression;var p=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(t,e,r,i,n){var s=p(t,e,r,i,n);return s.propertyIndex=e.ix,s.lock=!1,3===r?expressionHelpers.searchExpressions(t,e.pt,s):4===r&&expressionHelpers.searchExpressions(t,e.ks,s),s.k&&t.addDynamicProperty(s),s}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(t,e){var r=this.calculateExpression(e);if(t.t!==r){var i={};return this.copyData(i,t),i.t=r.toString(),i.__complete=!1,i}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=t||e,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}function SVGTintFilter(t,e,r,i,n){this.filterManager=e;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","linearRGB"),s.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),s.setAttribute("result",i+"_tint_1"),t.appendChild(s),(s=createNS("feColorMatrix")).setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),s.setAttribute("result",i+"_tint_2"),t.appendChild(s),this.matrixFilter=s;var a=this.createMergeNode(i,[n,i+"_tint_1",i+"_tint_2"]);t.appendChild(a)}function SVGFillFilter(t,e,r,i){this.filterManager=e;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),n.setAttribute("result",i),t.appendChild(n),this.matrixFilter=n}function SVGStrokeEffect(t,e,r){this.initialized=!1,this.filterManager=e,this.elem=r,this.paths=[]}function SVGTritoneFilter(t,e,r,i){this.filterManager=e;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","linearRGB"),n.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),t.appendChild(n);var s=createNS("feComponentTransfer");s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("result",i),this.matrixFilter=s;var a=createNS("feFuncR");a.setAttribute("type","table"),s.appendChild(a),this.feFuncR=a;var o=createNS("feFuncG");o.setAttribute("type","table"),s.appendChild(o),this.feFuncG=o;var h=createNS("feFuncB");h.setAttribute("type","table"),s.appendChild(h),this.feFuncB=h,t.appendChild(s)}function SVGProLevelsFilter(t,e,r,i){this.filterManager=e;var n=this.filterManager.effectElements,s=createNS("feComponentTransfer");(n[10].p.k||0!==n[10].p.v||n[11].p.k||1!==n[11].p.v||n[12].p.k||1!==n[12].p.v||n[13].p.k||0!==n[13].p.v||n[14].p.k||1!==n[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",s)),(n[17].p.k||0!==n[17].p.v||n[18].p.k||1!==n[18].p.v||n[19].p.k||1!==n[19].p.v||n[20].p.k||0!==n[20].p.v||n[21].p.k||1!==n[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",s)),(n[24].p.k||0!==n[24].p.v||n[25].p.k||1!==n[25].p.v||n[26].p.k||1!==n[26].p.v||n[27].p.k||0!==n[27].p.v||n[28].p.k||1!==n[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",s)),(n[31].p.k||0!==n[31].p.v||n[32].p.k||1!==n[32].p.v||n[33].p.k||1!==n[33].p.v||n[34].p.k||0!==n[34].p.v||n[35].p.k||1!==n[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",s)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(s.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(s)),(n[3].p.k||0!==n[3].p.v||n[4].p.k||1!==n[4].p.v||n[5].p.k||1!==n[5].p.v||n[6].p.k||0!==n[6].p.v||n[7].p.k||1!==n[7].p.v)&&((s=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("result",i),t.appendChild(s),this.feFuncRComposed=this.createFeFunc("feFuncR",s),this.feFuncGComposed=this.createFeFunc("feFuncG",s),this.feFuncBComposed=this.createFeFunc("feFuncB",s))}function SVGDropShadowEffect(t,e,r,i,n){var s=e.container.globalData.renderConfig.filterSize,a=e.data.fs||s;t.setAttribute("x",a.x||s.x),t.setAttribute("y",a.y||s.y),t.setAttribute("width",a.width||s.width),t.setAttribute("height",a.height||s.height),this.filterManager=e;var o=createNS("feGaussianBlur");o.setAttribute("in","SourceAlpha"),o.setAttribute("result",i+"_drop_shadow_1"),o.setAttribute("stdDeviation","0"),this.feGaussianBlur=o,t.appendChild(o);var h=createNS("feOffset");h.setAttribute("dx","25"),h.setAttribute("dy","0"),h.setAttribute("in",i+"_drop_shadow_1"),h.setAttribute("result",i+"_drop_shadow_2"),this.feOffset=h,t.appendChild(h);var l=createNS("feFlood");l.setAttribute("flood-color","#00ff00"),l.setAttribute("flood-opacity","1"),l.setAttribute("result",i+"_drop_shadow_3"),this.feFlood=l,t.appendChild(l);var p=createNS("feComposite");p.setAttribute("in",i+"_drop_shadow_3"),p.setAttribute("in2",i+"_drop_shadow_2"),p.setAttribute("operator","in"),p.setAttribute("result",i+"_drop_shadow_4"),t.appendChild(p);var c=this.createMergeNode(i,[i+"_drop_shadow_4",n]);t.appendChild(c)}SVGComposableEffect.prototype={createMergeNode:function(t,e){var r,i,n=createNS("feMerge");for(n.setAttribute("result",t),i=0;i<e.length;i+=1)(r=createNS("feMergeNode")).setAttribute("in",e[i]),n.appendChild(r),n.appendChild(r);return n}},extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v/100;this.matrixFilter.setAttribute("values",r[0]-e[0]+" 0 0 0 "+e[0]+" "+(r[1]-e[1])+" 0 0 0 "+e[1]+" "+(r[2]-e[2])+" 0 0 0 "+e[2]+" 0 0 0 "+i+" 0")}},SVGFillFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[2].p.v,r=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+e[0]+" 0 0 0 0 "+e[1]+" 0 0 0 0 "+e[2]+" 0 0 0 "+r+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var t,e,r,i,n=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(i=this.elem.maskManager.masksProperties.length,r=0):i=(r=this.filterManager.effectElements[0].p.v-1)+1,(e=createNS("g")).setAttribute("fill","none"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-dashoffset",1);r<i;r+=1)t=createNS("path"),e.appendChild(t),this.paths.push({p:t,m:r});if(3===this.filterManager.effectElements[10].p.v){var s=createNS("mask"),a=createElementID();s.setAttribute("id",a),s.setAttribute("mask-type","alpha"),s.appendChild(e),this.elem.globalData.defs.appendChild(s);var o=createNS("g");for(o.setAttribute("mask","url("+getLocationHref()+"#"+a+")");n[0];)o.appendChild(n[0]);this.elem.layerElement.appendChild(o),this.masker=s,e.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(n=this.elem.layerElement.children||this.elem.layerElement.childNodes;n.length;)this.elem.layerElement.removeChild(n[0]);this.elem.layerElement.appendChild(e),this.elem.layerElement.removeAttribute("mask"),e.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=e},SVGStrokeEffect.prototype.renderFrame=function(t){var e;this.initialized||this.initialize();var r,i,n=this.paths.length;for(e=0;e<n;e+=1)if(-1!==this.paths[e].m&&(r=this.elem.maskManager.viewData[this.paths[e].m],i=this.paths[e].p,(t||this.filterManager._mdf||r.prop._mdf)&&i.setAttribute("d",r.lastPath),t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||r.prop._mdf)){var s;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var a=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),o=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),h=i.getTotalLength();s="0 0 0 "+h*a+" ";var l,p=h*(o-a),c=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,f=Math.floor(p/c);for(l=0;l<f;l+=1)s+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";s+="0 "+10*h+" 0 0"}else s="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;i.setAttribute("stroke-dasharray",s)}if((t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(t||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(t||this.filterManager.effectElements[3].p._mdf)){var u=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*u[0])+","+bmFloor(255*u[1])+","+bmFloor(255*u[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v,n=i[0]+" "+r[0]+" "+e[0],s=i[1]+" "+r[1]+" "+e[1],a=i[2]+" "+r[2]+" "+e[2];this.feFuncR.setAttribute("tableValues",n),this.feFuncG.setAttribute("tableValues",s),this.feFuncB.setAttribute("tableValues",a)}},SVGProLevelsFilter.prototype.createFeFunc=function(t,e){var r=createNS(t);return r.setAttribute("type","table"),e.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValue=function(t,e,r,i,n){for(var s,a,o=0,h=Math.min(t,e),l=Math.max(t,e),p=Array.call(null,{length:256}),c=0,f=n-i,u=e-t;o<=256;)a=(s=o/256)<=h?u<0?n:i:s>=l?u<0?i:n:i+f*Math.pow((s-t)/u,1/r),p[c]=a,c+=1,o+=256/255;return p.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,r=this.filterManager.effectElements;this.feFuncRComposed&&(t||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(e=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(e=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(e=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(e=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(e=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",e))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*e[0]),Math.round(255*e[1]),Math.round(255*e[2])))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var r=this.filterManager.effectElements[3].p.v,i=(this.filterManager.effectElements[2].p.v-90)*degToRads,n=r*Math.cos(i),s=r*Math.sin(i);this.feOffset.setAttribute("dx",n),this.feOffset.setAttribute("dy",s)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,r){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}function SVGGaussianBlurEffect(t,e,r,i){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","300%"),t.setAttribute("height","300%"),this.filterManager=e;var n=createNS("feGaussianBlur");n.setAttribute("result",i),t.appendChild(n),this.feGaussianBlur=n}return SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,r=_svgMatteSymbols.length;e<r;){if(_svgMatteSymbols[e]===t)return _svgMatteSymbols[e];e+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(t,e){var r=t.layerElement.parentNode;if(r){for(var i,n=r.children,s=0,a=n.length;s<a&&n[s]!==t.layerElement;)s+=1;s<=a-2&&(i=n[s+1]);var o=createNS("use");o.setAttribute("href","#"+e),i?r.insertBefore(o,i):r.appendChild(o)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,e){if(!this.findSymbol(e)){var r=createElementID(),i=createNS("mask");i.setAttribute("id",e.layerId),i.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(e);var n=t.globalData.defs;n.appendChild(i);var s=createNS("symbol");s.setAttribute("id",r),this.replaceInParent(e,r),s.appendChild(e.layerElement),n.appendChild(s);var a=createNS("use");a.setAttribute("href","#"+r),i.appendChild(a),e.data.hd=!1,e.show()}t.setMatte(e.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,e=this.elem.comp.elements,r=0,i=e.length;r<i;)e[r]&&e[r].data.ind===t&&this.setElementAsMask(this.elem,e[r]),r+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=.3*this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=3==r?0:e,n=2==r?0:e;this.feGaussianBlur.setAttribute("stdDeviation",i+" "+n);var s=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",s)}},setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect(20,SVGTintFilter,!0),registerEffect(21,SVGFillFilter,!0),registerEffect(22,SVGStrokeEffect,!1),registerEffect(23,SVGTritoneFilter,!0),registerEffect(24,SVGProLevelsFilter,!0),registerEffect(25,SVGDropShadowEffect,!0),registerEffect(28,SVGMatte3Effect,!1),registerEffect(29,SVGGaussianBlurEffect,!0),lottie}))})),jszip=createCommonjsModule((function(t,e){
/*!

  JSZip v3.6.0 - A JavaScript class for generating and reading zip files
  <http://stuartk.com/jszip>

  (c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
  Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/master/LICENSE.markdown.

  JSZip uses the library pako released under the MIT license :
  https://github.com/nodeca/pako/blob/master/LICENSE
  */
!function(e){t.exports=e()}((function(){return function t(e,r,i){function n(a,o){if(!r[a]){if(!e[a]){var h="function"==typeof commonjsRequire&&commonjsRequire;if(!o&&h)return h(a,!0);if(s)return s(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var p=r[a]={exports:{}};e[a][0].call(p.exports,(function(t){var r=e[a][1][t];return n(r||t)}),p,p.exports,t,e,r,i)}return r[a].exports}for(var s="function"==typeof commonjsRequire&&commonjsRequire,a=0;a<i.length;a++)n(i[a]);return n}({1:[function(t,e,r){(function(i){
/*!

  JSZip v3.5.0 - A JavaScript class for generating and reading zip files
  <http://stuartk.com/jszip>

  (c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
  Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/master/LICENSE.markdown.

  JSZip uses the library pako released under the MIT license :
  https://github.com/nodeca/pako/blob/master/LICENSE
  */
!function(t){"object"==typeof r&&void 0!==e?e.exports=t():("undefined"!=typeof window?window:void 0!==i?i:"undefined"!=typeof self?self:this).JSZip=t()}((function(){return function e(r,i,n){function s(o,h){if(!i[o]){if(!r[o]){var l="function"==typeof t&&t;if(!h&&l)return l(o,!0);if(a)return a(o,!0);var p=new Error("Cannot find module '"+o+"'");throw p.code="MODULE_NOT_FOUND",p}var c=i[o]={exports:{}};r[o][0].call(c.exports,(function(t){return s(r[o][1][t]||t)}),c,c.exports,e,r,i,n)}return i[o].exports}for(var a="function"==typeof t&&t,o=0;o<n.length;o++)s(n[o]);return s}({1:[function(t,e,r){(function(i){!function(t){"object"==typeof r&&void 0!==e?e.exports=t():("undefined"!=typeof window?window:void 0!==i?i:"undefined"!=typeof self?self:this).JSZip=t()}((function(){return function e(r,i,n){function s(o,h){if(!i[o]){if(!r[o]){var l="function"==typeof t&&t;if(!h&&l)return l(o,!0);if(a)return a(o,!0);var p=new Error("Cannot find module '"+o+"'");throw p.code="MODULE_NOT_FOUND",p}var c=i[o]={exports:{}};r[o][0].call(c.exports,(function(t){return s(r[o][1][t]||t)}),c,c.exports,e,r,i,n)}return i[o].exports}for(var a="function"==typeof t&&t,o=0;o<n.length;o++)s(n[o]);return s}({1:[function(t,e,r){(function(i){!function(t){"object"==typeof r&&void 0!==e?e.exports=t():("undefined"!=typeof window?window:void 0!==i?i:"undefined"!=typeof self?self:this).JSZip=t()}((function(){return function e(r,i,n){function s(o,h){if(!i[o]){if(!r[o]){var l="function"==typeof t&&t;if(!h&&l)return l(o,!0);if(a)return a(o,!0);var p=new Error("Cannot find module '"+o+"'");throw p.code="MODULE_NOT_FOUND",p}var c=i[o]={exports:{}};r[o][0].call(c.exports,(function(t){return s(r[o][1][t]||t)}),c,c.exports,e,r,i,n)}return i[o].exports}for(var a="function"==typeof t&&t,o=0;o<n.length;o++)s(n[o]);return s}({1:[function(t,e,r){(function(i){!function(t){"object"==typeof r&&void 0!==e?e.exports=t():("undefined"!=typeof window?window:void 0!==i?i:"undefined"!=typeof self?self:this).JSZip=t()}((function(){return function e(r,i,n){function s(o,h){if(!i[o]){if(!r[o]){var l="function"==typeof t&&t;if(!h&&l)return l(o,!0);if(a)return a(o,!0);var p=new Error("Cannot find module '"+o+"'");throw p.code="MODULE_NOT_FOUND",p}var c=i[o]={exports:{}};r[o][0].call(c.exports,(function(t){return s(r[o][1][t]||t)}),c,c.exports,e,r,i,n)}return i[o].exports}for(var a="function"==typeof t&&t,o=0;o<n.length;o++)s(n[o]);return s}({1:[function(t,e,r){(function(i){!function(t){"object"==typeof r&&void 0!==e?e.exports=t():("undefined"!=typeof window?window:void 0!==i?i:"undefined"!=typeof self?self:this).JSZip=t()}((function(){return function e(r,i,n){function s(o,h){if(!i[o]){if(!r[o]){var l="function"==typeof t&&t;if(!h&&l)return l(o,!0);if(a)return a(o,!0);var p=new Error("Cannot find module '"+o+"'");throw p.code="MODULE_NOT_FOUND",p}var c=i[o]={exports:{}};r[o][0].call(c.exports,(function(t){return s(r[o][1][t]||t)}),c,c.exports,e,r,i,n)}return i[o].exports}for(var a="function"==typeof t&&t,o=0;o<n.length;o++)s(n[o]);return s}({1:[function(t,e,r){var i=t("./utils"),n=t("./support"),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(t){for(var e,r,n,a,o,h,l,p=[],c=0,f=t.length,u=f,d="string"!==i.getTypeOf(t);c<t.length;)u=f-c,n=d?(e=t[c++],r=c<f?t[c++]:0,c<f?t[c++]:0):(e=t.charCodeAt(c++),r=c<f?t.charCodeAt(c++):0,c<f?t.charCodeAt(c++):0),a=e>>2,o=(3&e)<<4|r>>4,h=1<u?(15&r)<<2|n>>6:64,l=2<u?63&n:64,p.push(s.charAt(a)+s.charAt(o)+s.charAt(h)+s.charAt(l));return p.join("")},r.decode=function(t){var e,r,i,a,o,h,l=0,p=0;if("data:"===t.substr(0,"data:".length))throw new Error("Invalid base64 input, it looks like a data url.");var c,f=3*(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(t.charAt(t.length-1)===s.charAt(64)&&f--,t.charAt(t.length-2)===s.charAt(64)&&f--,f%1!=0)throw new Error("Invalid base64 input, bad content length.");for(c=n.uint8array?new Uint8Array(0|f):new Array(0|f);l<t.length;)e=s.indexOf(t.charAt(l++))<<2|(a=s.indexOf(t.charAt(l++)))>>4,r=(15&a)<<4|(o=s.indexOf(t.charAt(l++)))>>2,i=(3&o)<<6|(h=s.indexOf(t.charAt(l++))),c[p++]=e,64!==o&&(c[p++]=r),64!==h&&(c[p++]=i);return c}},{"./support":30,"./utils":32}],2:[function(t,e,r){var i=t("./external"),n=t("./stream/DataWorker"),s=t("./stream/Crc32Probe"),a=t("./stream/DataLengthProbe");function o(t,e,r,i,n){this.compressedSize=t,this.uncompressedSize=e,this.crc32=r,this.compression=i,this.compressedContent=n}o.prototype={getContentWorker:function(){var t=new n(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),e=this;return t.on("end",(function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),t},getCompressedWorker:function(){return new n(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},o.createWorkerFrom=function(t,e,r){return t.pipe(new s).pipe(new a("uncompressedSize")).pipe(e.compressWorker(r)).pipe(new a("compressedSize")).withStreamInfo("compression",e)},e.exports=o},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,e,r){var i=t("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(t){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},r.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,e,r){var i=t("./utils"),n=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();e.exports=function(t,e){return void 0!==t&&t.length?"string"!==i.getTypeOf(t)?function(t,e,r){var i=n,s=0+r;t^=-1;for(var a=0;a<s;a++)t=t>>>8^i[255&(t^e[a])];return-1^t}(0|e,t,t.length):function(t,e,r){var i=n,s=0+r;t^=-1;for(var a=0;a<s;a++)t=t>>>8^i[255&(t^e.charCodeAt(a))];return-1^t}(0|e,t,t.length):0}},{"./utils":32}],5:[function(t,e,r){r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(t,e,r){var i;i="undefined"!=typeof Promise?Promise:t("lie"),e.exports={Promise:i}},{lie:37}],7:[function(t,e,r){var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,n=t("pako"),s=t("./utils"),a=t("./stream/GenericWorker"),o=i?"uint8array":"array";function h(t,e){a.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}r.magic="\b\0",s.inherits(h,a),h.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(s.transformTo(o,t.data),!1)},h.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},h.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},h.prototype._createPako=function(){this._pako=new n[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},r.compressWorker=function(t){return new h("Deflate",t)},r.uncompressWorker=function(){return new h("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,e,r){function i(t,e){var r,i="";for(r=0;r<e;r++)i+=String.fromCharCode(255&t),t>>>=8;return i}function n(t,e,r,n,a,p){var c,f,u=t.file,d=t.compression,m=p!==o.utf8encode,y=s.transformTo("string",p(u.name)),g=s.transformTo("string",o.utf8encode(u.name)),v=u.comment,_=s.transformTo("string",p(v)),b=s.transformTo("string",o.utf8encode(v)),P=g.length!==u.name.length,S=b.length!==v.length,w="",x="",E="",k=u.dir,A=u.date,T={crc32:0,compressedSize:0,uncompressedSize:0};e&&!r||(T.crc32=t.crc32,T.compressedSize=t.compressedSize,T.uncompressedSize=t.uncompressedSize);var C=0;e&&(C|=8),m||!P&&!S||(C|=2048);var I,D=0,M=0;k&&(D|=16),"UNIX"===a?(M=798,D|=((I=u.unixPermissions)||(I=k?16893:33204),(65535&I)<<16)):(M=20,D|=63&(u.dosPermissions||0)),c=A.getUTCHours(),c<<=6,c|=A.getUTCMinutes(),c<<=5,c|=A.getUTCSeconds()/2,f=A.getUTCFullYear()-1980,f<<=4,f|=A.getUTCMonth()+1,f<<=5,f|=A.getUTCDate(),P&&(w+="up"+i((x=i(1,1)+i(h(y),4)+g).length,2)+x),S&&(w+="uc"+i((E=i(1,1)+i(h(_),4)+b).length,2)+E);var F="";return F+="\n\0",F+=i(C,2),F+=d.magic,F+=i(c,2),F+=i(f,2),F+=i(T.crc32,4),F+=i(T.compressedSize,4),F+=i(T.uncompressedSize,4),F+=i(y.length,2),F+=i(w.length,2),{fileRecord:l.LOCAL_FILE_HEADER+F+y+w,dirRecord:l.CENTRAL_FILE_HEADER+i(M,2)+F+i(_.length,2)+"\0\0\0\0"+i(D,4)+i(n,4)+y+w+_}}var s=t("../utils"),a=t("../stream/GenericWorker"),o=t("../utf8"),h=t("../crc32"),l=t("../signature");function p(t,e,r,i){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=r,this.encodeFileName=i,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}s.inherits(p,a),p.prototype.push=function(t){var e=t.meta.percent||0,r=this.entriesCount,i=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,a.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:r?(e+100*(r-i-1))/r:100}}))},p.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var r=n(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},p.prototype.closedSource=function(t){this.accumulate=!1;var e,r=this.streamFiles&&!t.file.dir,s=n(t,r,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(s.dirRecord),r)this.push({data:(e=t,l.DATA_DESCRIPTOR+i(e.crc32,4)+i(e.compressedSize,4)+i(e.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:s.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},p.prototype.flush=function(){for(var t=this.bytesWritten,e=0;e<this.dirRecords.length;e++)this.push({data:this.dirRecords[e],meta:{percent:100}});var r,n,a,o,h,p,c=this.bytesWritten-t,f=(r=this.dirRecords.length,n=c,a=t,o=this.zipComment,h=this.encodeFileName,p=s.transformTo("string",h(o)),l.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(r,2)+i(r,2)+i(n,4)+i(a,4)+i(p.length,2)+p);this.push({data:f,meta:{percent:100}})},p.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},p.prototype.registerPrevious=function(t){this._sources.push(t);var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.closedSource(e.previous.streamInfo),e._sources.length?e.prepareNextSource():e.end()})),t.on("error",(function(t){e.error(t)})),this},p.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},p.prototype.error=function(t){var e=this._sources;if(!a.prototype.error.call(this,t))return!1;for(var r=0;r<e.length;r++)try{e[r].error(t)}catch(t){}return!0},p.prototype.lock=function(){a.prototype.lock.call(this);for(var t=this._sources,e=0;e<t.length;e++)t[e].lock()},e.exports=p},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,e,r){var i=t("../compressions"),n=t("./ZipFileWorker");r.generateWorker=function(t,e,r){var s=new n(e.streamFiles,r,e.platform,e.encodeFileName),a=0;try{t.forEach((function(t,r){a++;var n=function(t,e){var r=t||e,n=i[r];if(!n)throw new Error(r+" is not a valid compression method !");return n}(r.options.compression,e.compression),o=r.options.compressionOptions||e.compressionOptions||{},h=r.dir,l=r.date;r._compressWorker(n,o).withStreamInfo("file",{name:t,dir:h,date:l,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(s)})),s.entriesCount=a}catch(t){s.error(t)}return s}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,e,r){function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files={},this.comment=null,this.root="",this.clone=function(){var t=new i;for(var e in this)"function"!=typeof this[e]&&(t[e]=this[e]);return t}}(i.prototype=t("./object")).loadAsync=t("./load"),i.support=t("./support"),i.defaults=t("./defaults"),i.version="3.5.0",i.loadAsync=function(t,e){return(new i).loadAsync(t,e)},i.external=t("./external"),e.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,e,r){var i=t("./utils"),n=t("./external"),s=t("./utf8"),a=t("./zipEntries"),o=t("./stream/Crc32Probe"),h=t("./nodejsUtils");function l(t){return new n.Promise((function(e,r){var i=t.decompressed.getContentWorker().pipe(new o);i.on("error",(function(t){r(t)})).on("end",(function(){i.streamInfo.crc32!==t.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):e()})).resume()}))}e.exports=function(t,e){var r=this;return e=i.extend(e||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:s.utf8decode}),h.isNode&&h.isStream(t)?n.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",t,!0,e.optimizedBinaryString,e.base64).then((function(t){var r=new a(e);return r.load(t),r})).then((function(t){var r=[n.Promise.resolve(t)],i=t.files;if(e.checkCRC32)for(var s=0;s<i.length;s++)r.push(l(i[s]));return n.Promise.all(r)})).then((function(t){for(var i=t.shift(),n=i.files,s=0;s<n.length;s++){var a=n[s];r.file(a.fileNameStr,a.decompressed,{binary:!0,optimizedBinaryString:!0,date:a.date,dir:a.dir,comment:a.fileCommentStr.length?a.fileCommentStr:null,unixPermissions:a.unixPermissions,dosPermissions:a.dosPermissions,createFolders:e.createFolders})}return i.zipComment.length&&(r.comment=i.zipComment),r}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,e,r){var i=t("../utils"),n=t("../stream/GenericWorker");function s(t,e){n.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(e)}i.inherits(s,n),s.prototype._bindStream=function(t){var e=this;(this._stream=t).pause(),t.on("data",(function(t){e.push({data:t,meta:{percent:0}})})).on("error",(function(t){e.isPaused?this.generatedError=t:e.error(t)})).on("end",(function(){e.isPaused?e._upstreamEnded=!0:e.end()}))},s.prototype.pause=function(){return!!n.prototype.pause.call(this)&&(this._stream.pause(),!0)},s.prototype.resume=function(){return!!n.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},e.exports=s},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,e,r){var i=t("readable-stream").Readable;function n(t,e,r){i.call(this,e),this._helper=t;var n=this;t.on("data",(function(t,e){n.push(t)||n._helper.pause(),r&&r(e)})).on("error",(function(t){n.emit("error",t)})).on("end",(function(){n.push(null)}))}t("../utils").inherits(n,i),n.prototype._read=function(){this._helper.resume()},e.exports=n},{"../utils":32,"readable-stream":16}],14:[function(t,e,r){e.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(t,e){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(t,e);if("number"==typeof t)throw new Error('The "data" argument must not be a number');return new Buffer(t,e)},allocBuffer:function(t){if(Buffer.alloc)return Buffer.alloc(t);var e=new Buffer(t);return e.fill(0),e},isBuffer:function(t){return Buffer.isBuffer(t)},isStream:function(t){return t&&"function"==typeof t.on&&"function"==typeof t.pause&&"function"==typeof t.resume}}},{}],15:[function(t,e,r){function i(t,e,r){var i,s=a.getTypeOf(e),h=a.extend(r||{},l);h.date=h.date||new Date,null!==h.compression&&(h.compression=h.compression.toUpperCase()),"string"==typeof h.unixPermissions&&(h.unixPermissions=parseInt(h.unixPermissions,8)),h.unixPermissions&&16384&h.unixPermissions&&(h.dir=!0),h.dosPermissions&&16&h.dosPermissions&&(h.dir=!0),h.dir&&(t=n(t)),h.createFolders&&(i=function(t){"/"===t.slice(-1)&&(t=t.substring(0,t.length-1));var e=t.lastIndexOf("/");return 0<e?t.substring(0,e):""}(t))&&m.call(this,i,!0);var f,y="string"===s&&!1===h.binary&&!1===h.base64;r&&void 0!==r.binary||(h.binary=!y),(e instanceof p&&0===e.uncompressedSize||h.dir||!e||0===e.length)&&(h.base64=!1,h.binary=!0,e="",h.compression="STORE",s="string"),f=e instanceof p||e instanceof o?e:u.isNode&&u.isStream(e)?new d(t,e):a.prepareContent(t,e,h.binary,h.optimizedBinaryString,h.base64);var g=new c(t,f,h);this.files[t]=g}function n(t){return"/"!==t.slice(-1)&&(t+="/"),t}var s=t("./utf8"),a=t("./utils"),o=t("./stream/GenericWorker"),h=t("./stream/StreamHelper"),l=t("./defaults"),p=t("./compressedObject"),c=t("./zipObject"),f=t("./generate"),u=t("./nodejsUtils"),d=t("./nodejs/NodejsStreamInputAdapter"),m=function(t,e){return e=void 0!==e?e:l.createFolders,t=n(t),this.files[t]||i.call(this,t,null,{dir:!0,createFolders:e}),this.files[t]};function y(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var g={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(t){var e,r,i;for(e in this.files)this.files.hasOwnProperty(e)&&(i=this.files[e],(r=e.slice(this.root.length,e.length))&&e.slice(0,this.root.length)===this.root&&t(r,i))},filter:function(t){var e=[];return this.forEach((function(r,i){t(r,i)&&e.push(i)})),e},file:function(t,e,r){if(1!==arguments.length)return t=this.root+t,i.call(this,t,e,r),this;if(y(t)){var n=t;return this.filter((function(t,e){return!e.dir&&n.test(t)}))}var s=this.files[this.root+t];return s&&!s.dir?s:null},folder:function(t){if(!t)return this;if(y(t))return this.filter((function(e,r){return r.dir&&t.test(e)}));var e=this.root+t,r=m.call(this,e),i=this.clone();return i.root=r.name,i},remove:function(t){t=this.root+t;var e=this.files[t];if(e||("/"!==t.slice(-1)&&(t+="/"),e=this.files[t]),e&&!e.dir)delete this.files[t];else for(var r=this.filter((function(e,r){return r.name.slice(0,t.length)===t})),i=0;i<r.length;i++)delete this.files[r[i].name];return this},generate:function(t){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(t){var e,r={};try{if((r=a.extend(t||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:s.utf8encode})).type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),"binarystring"===r.type&&(r.type="string"),!r.type)throw new Error("No output type specified.");a.checkSupport(r.type),"darwin"!==r.platform&&"freebsd"!==r.platform&&"linux"!==r.platform&&"sunos"!==r.platform||(r.platform="UNIX"),"win32"===r.platform&&(r.platform="DOS");var i=r.comment||this.comment||"";e=f.generateWorker(this,r,i)}catch(t){(e=new o("error")).error(t)}return new h(e,r.type||"string",r.mimeType)},generateAsync:function(t,e){return this.generateInternalStream(t).accumulate(e)},generateNodeStream:function(t,e){return(t=t||{}).type||(t.type="nodebuffer"),this.generateInternalStream(t).toNodejsStream(e)}};e.exports=g},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(t,e,r){e.exports=t("stream")},{stream:void 0}],17:[function(t,e,r){var i=t("./DataReader");function n(t){i.call(this,t);for(var e=0;e<this.data.length;e++)t[e]=255&t[e]}t("../utils").inherits(n,i),n.prototype.byteAt=function(t){return this.data[this.zero+t]},n.prototype.lastIndexOfSignature=function(t){for(var e=t.charCodeAt(0),r=t.charCodeAt(1),i=t.charCodeAt(2),n=t.charCodeAt(3),s=this.length-4;0<=s;--s)if(this.data[s]===e&&this.data[s+1]===r&&this.data[s+2]===i&&this.data[s+3]===n)return s-this.zero;return-1},n.prototype.readAndCheckSignature=function(t){var e=t.charCodeAt(0),r=t.charCodeAt(1),i=t.charCodeAt(2),n=t.charCodeAt(3),s=this.readData(4);return e===s[0]&&r===s[1]&&i===s[2]&&n===s[3]},n.prototype.readData=function(t){if(this.checkOffset(t),0===t)return[];var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=n},{"../utils":32,"./DataReader":18}],18:[function(t,e,r){var i=t("../utils");function n(t){this.data=t,this.length=t.length,this.index=0,this.zero=0}n.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(t){},readInt:function(t){var e,r=0;for(this.checkOffset(t),e=this.index+t-1;e>=this.index;e--)r=(r<<8)+this.byteAt(e);return this.index+=t,r},readString:function(t){return i.transformTo("string",this.readData(t))},readData:function(t){},lastIndexOfSignature:function(t){},readAndCheckSignature:function(t){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},e.exports=n},{"../utils":32}],19:[function(t,e,r){var i=t("./Uint8ArrayReader");function n(t){i.call(this,t)}t("../utils").inherits(n,i),n.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=n},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,e,r){var i=t("./DataReader");function n(t){i.call(this,t)}t("../utils").inherits(n,i),n.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},n.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},n.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},n.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=n},{"../utils":32,"./DataReader":18}],21:[function(t,e,r){var i=t("./ArrayReader");function n(t){i.call(this,t)}t("../utils").inherits(n,i),n.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=n},{"../utils":32,"./ArrayReader":17}],22:[function(t,e,r){var i=t("../utils"),n=t("../support"),s=t("./ArrayReader"),a=t("./StringReader"),o=t("./NodeBufferReader"),h=t("./Uint8ArrayReader");e.exports=function(t){var e=i.getTypeOf(t);return i.checkSupport(e),"string"!==e||n.uint8array?"nodebuffer"===e?new o(t):n.uint8array?new h(i.transformTo("uint8array",t)):new s(i.transformTo("array",t)):new a(t)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,e,r){r.LOCAL_FILE_HEADER="PK",r.CENTRAL_FILE_HEADER="PK",r.CENTRAL_DIRECTORY_END="PK",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",r.ZIP64_CENTRAL_DIRECTORY_END="PK",r.DATA_DESCRIPTOR="PK\b"},{}],24:[function(t,e,r){var i=t("./GenericWorker"),n=t("../utils");function s(t){i.call(this,"ConvertWorker to "+t),this.destType=t}n.inherits(s,i),s.prototype.processChunk=function(t){this.push({data:n.transformTo(this.destType,t.data),meta:t.meta})},e.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(t,e,r){var i=t("./GenericWorker"),n=t("../crc32");function s(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(s,i),s.prototype.processChunk=function(t){this.streamInfo.crc32=n(t.data,this.streamInfo.crc32||0),this.push(t)},e.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,e,r){var i=t("../utils"),n=t("./GenericWorker");function s(t){n.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}i.inherits(s,n),s.prototype.processChunk=function(t){if(t){var e=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=e+t.data.length}n.prototype.processChunk.call(this,t)},e.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(t,e,r){var i=t("../utils"),n=t("./GenericWorker");function s(t){n.call(this,"DataWorker");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then((function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=i.getTypeOf(t),e.isPaused||e._tickAndRepeat()}),(function(t){e.error(t)}))}i.inherits(s,n),s.prototype.cleanUp=function(){n.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!n.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,e);break;case"uint8array":t=this.data.subarray(this.index,e);break;case"array":case"nodebuffer":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(t,e,r){function i(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var r=0;r<this._listeners[t].length;r++)this._listeners[t][r].call(this,e)},pipe:function(t){return t.registerPrevious(this)},registerPrevious:function(t){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=t.streamInfo,this.mergeStreamInfo(),this.previous=t;var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.end()})),t.on("error",(function(t){e.error(t)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var t=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),t=!0),this.previous&&this.previous.resume(),!t},flush:function(){},processChunk:function(t){this.push(t)},withStreamInfo:function(t,e){return this.extraStreamInfo[t]=e,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var t in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t}},e.exports=i},{}],29:[function(t,e,r){var i=t("../utils"),n=t("./ConvertWorker"),s=t("./GenericWorker"),a=t("../base64"),o=t("../support"),h=t("../external"),l=null;if(o.nodestream)try{l=t("../nodejs/NodejsStreamOutputAdapter")}catch(t){}function p(t,e,r){var a=e;switch(e){case"blob":case"arraybuffer":a="uint8array";break;case"base64":a="string"}try{this._internalType=a,this._outputType=e,this._mimeType=r,i.checkSupport(a),this._worker=t.pipe(new n(a)),t.lock()}catch(t){this._worker=new s("error"),this._worker.error(t)}}p.prototype={accumulate:function(t){return e=this,r=t,new h.Promise((function(t,n){var s=[],o=e._internalType,h=e._outputType,l=e._mimeType;e.on("data",(function(t,e){s.push(t),r&&r(e)})).on("error",(function(t){s=[],n(t)})).on("end",(function(){try{var e=function(t,e,r){switch(t){case"blob":return i.newBlob(i.transformTo("arraybuffer",e),r);case"base64":return a.encode(e);default:return i.transformTo(t,e)}}(h,function(t,e){var r,i=0,n=null,s=0;for(r=0;r<e.length;r++)s+=e[r].length;switch(t){case"string":return e.join("");case"array":return Array.prototype.concat.apply([],e);case"uint8array":for(n=new Uint8Array(s),r=0;r<e.length;r++)n.set(e[r],i),i+=e[r].length;return n;case"nodebuffer":return Buffer.concat(e);default:throw new Error("concat : unsupported type '"+t+"'")}}(o,s),l);t(e)}catch(e){n(e)}s=[]})).resume()}));var e,r},on:function(t,e){var r=this;return"data"===t?this._worker.on(t,(function(t){e.call(r,t.data,t.meta)})):this._worker.on(t,(function(){i.delay(e,arguments,r)})),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(t){if(i.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new l(this,{objectMode:"nodebuffer"!==this._outputType},t)}},e.exports=p},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,e,r){if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,r.nodebuffer="undefined"!=typeof Buffer,r.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)r.blob=!1;else{var i=new ArrayBuffer(0);try{r.blob=0===new Blob([i],{type:"application/zip"}).size}catch(t){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);n.append(i),r.blob=0===n.getBlob("application/zip").size}catch(t){r.blob=!1}}}try{r.nodestream=!!t("readable-stream").Readable}catch(t){r.nodestream=!1}},{"readable-stream":16}],31:[function(t,e,r){for(var i=t("./utils"),n=t("./support"),s=t("./nodejsUtils"),a=t("./stream/GenericWorker"),o=new Array(256),h=0;h<256;h++)o[h]=252<=h?6:248<=h?5:240<=h?4:224<=h?3:192<=h?2:1;function l(){a.call(this,"utf-8 decode"),this.leftOver=null}function p(){a.call(this,"utf-8 encode")}o[254]=o[254]=1,r.utf8encode=function(t){return n.nodebuffer?s.newBufferFrom(t,"utf-8"):function(t){var e,r,i,s,a,o=t.length,h=0;for(s=0;s<o;s++)55296==(64512&(r=t.charCodeAt(s)))&&s+1<o&&56320==(64512&(i=t.charCodeAt(s+1)))&&(r=65536+(r-55296<<10)+(i-56320),s++),h+=r<128?1:r<2048?2:r<65536?3:4;for(e=n.uint8array?new Uint8Array(h):new Array(h),s=a=0;a<h;s++)55296==(64512&(r=t.charCodeAt(s)))&&s+1<o&&56320==(64512&(i=t.charCodeAt(s+1)))&&(r=65536+(r-55296<<10)+(i-56320),s++),r<128?e[a++]=r:(r<2048?e[a++]=192|r>>>6:(r<65536?e[a++]=224|r>>>12:(e[a++]=240|r>>>18,e[a++]=128|r>>>12&63),e[a++]=128|r>>>6&63),e[a++]=128|63&r);return e}(t)},r.utf8decode=function(t){return n.nodebuffer?i.transformTo("nodebuffer",t).toString("utf-8"):function(t){var e,r,n,s,a=t.length,h=new Array(2*a);for(e=r=0;e<a;)if((n=t[e++])<128)h[r++]=n;else if(4<(s=o[n]))h[r++]=65533,e+=s-1;else{for(n&=2===s?31:3===s?15:7;1<s&&e<a;)n=n<<6|63&t[e++],s--;1<s?h[r++]=65533:n<65536?h[r++]=n:(n-=65536,h[r++]=55296|n>>10&1023,h[r++]=56320|1023&n)}return h.length!==r&&(h.subarray?h=h.subarray(0,r):h.length=r),i.applyFromCharCode(h)}(t=i.transformTo(n.uint8array?"uint8array":"array",t))},i.inherits(l,a),l.prototype.processChunk=function(t){var e=i.transformTo(n.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(n.uint8array){var s=e;(e=new Uint8Array(s.length+this.leftOver.length)).set(this.leftOver,0),e.set(s,this.leftOver.length)}else e=this.leftOver.concat(e);this.leftOver=null}var a=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;0<=r&&128==(192&t[r]);)r--;return r<0||0===r?e:r+o[t[r]]>e?r:e}(e),h=e;a!==e.length&&(n.uint8array?(h=e.subarray(0,a),this.leftOver=e.subarray(a,e.length)):(h=e.slice(0,a),this.leftOver=e.slice(a,e.length))),this.push({data:r.utf8decode(h),meta:t.meta})},l.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=l,i.inherits(p,a),p.prototype.processChunk=function(t){this.push({data:r.utf8encode(t.data),meta:t.meta})},r.Utf8EncodeWorker=p},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,e,r){var i=t("./support"),n=t("./base64"),s=t("./nodejsUtils"),a=t("set-immediate-shim"),o=t("./external");function h(t){return t}function l(t,e){for(var r=0;r<t.length;++r)e[r]=255&t.charCodeAt(r);return e}r.newBlob=function(t,e){r.checkSupport("blob");try{return new Blob([t],{type:e})}catch(r){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return i.append(t),i.getBlob(e)}catch(t){throw new Error("Bug : can't construct the Blob.")}}};var p={stringifyByChunk:function(t,e,r){var i=[],n=0,s=t.length;if(s<=r)return String.fromCharCode.apply(null,t);for(;n<s;)"array"===e||"nodebuffer"===e?i.push(String.fromCharCode.apply(null,t.slice(n,Math.min(n+r,s)))):i.push(String.fromCharCode.apply(null,t.subarray(n,Math.min(n+r,s)))),n+=r;return i.join("")},stringifyByChar:function(t){for(var e="",r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return e},applyCanBeUsed:{uint8array:function(){try{return i.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(t){return!1}}(),nodebuffer:function(){try{return i.nodebuffer&&1===String.fromCharCode.apply(null,s.allocBuffer(1)).length}catch(t){return!1}}()}};function c(t){var e=65536,i=r.getTypeOf(t),n=!0;if("uint8array"===i?n=p.applyCanBeUsed.uint8array:"nodebuffer"===i&&(n=p.applyCanBeUsed.nodebuffer),n)for(;1<e;)try{return p.stringifyByChunk(t,i,e)}catch(t){e=Math.floor(e/2)}return p.stringifyByChar(t)}function f(t,e){for(var r=0;r<t.length;r++)e[r]=t[r];return e}r.applyFromCharCode=c;var u={};u.string={string:h,array:function(t){return l(t,new Array(t.length))},arraybuffer:function(t){return u.string.uint8array(t).buffer},uint8array:function(t){return l(t,new Uint8Array(t.length))},nodebuffer:function(t){return l(t,s.allocBuffer(t.length))}},u.array={string:c,array:h,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return s.newBufferFrom(t)}},u.arraybuffer={string:function(t){return c(new Uint8Array(t))},array:function(t){return f(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:h,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return s.newBufferFrom(new Uint8Array(t))}},u.uint8array={string:c,array:function(t){return f(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:h,nodebuffer:function(t){return s.newBufferFrom(t)}},u.nodebuffer={string:c,array:function(t){return f(t,new Array(t.length))},arraybuffer:function(t){return u.nodebuffer.uint8array(t).buffer},uint8array:function(t){return f(t,new Uint8Array(t.length))},nodebuffer:h},r.transformTo=function(t,e){if(e=e||"",!t)return e;r.checkSupport(t);var i=r.getTypeOf(e);return u[i][t](e)},r.getTypeOf=function(t){return"string"==typeof t?"string":"[object Array]"===Object.prototype.toString.call(t)?"array":i.nodebuffer&&s.isBuffer(t)?"nodebuffer":i.uint8array&&t instanceof Uint8Array?"uint8array":i.arraybuffer&&t instanceof ArrayBuffer?"arraybuffer":void 0},r.checkSupport=function(t){if(!i[t.toLowerCase()])throw new Error(t+" is not supported by this platform")},r.MAX_VALUE_16BITS=65535,r.MAX_VALUE_32BITS=-1,r.pretty=function(t){var e,r,i="";for(r=0;r<(t||"").length;r++)i+="\\x"+((e=t.charCodeAt(r))<16?"0":"")+e.toString(16).toUpperCase();return i},r.delay=function(t,e,r){a((function(){t.apply(r||null,e||[])}))},r.inherits=function(t,e){function r(){}r.prototype=e.prototype,t.prototype=new r},r.extend=function(){var t,e,r={};for(t=0;t<arguments.length;t++)for(e in arguments[t])arguments[t].hasOwnProperty(e)&&void 0===r[e]&&(r[e]=arguments[t][e]);return r},r.prepareContent=function(t,e,s,a,h){return o.Promise.resolve(e).then((function(t){return i.blob&&(t instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))&&"undefined"!=typeof FileReader?new o.Promise((function(e,r){var i=new FileReader;i.onload=function(t){e(t.target.result)},i.onerror=function(t){r(t.target.error)},i.readAsArrayBuffer(t)})):t})).then((function(e){var p,c=r.getTypeOf(e);return c?("arraybuffer"===c?e=r.transformTo("uint8array",e):"string"===c&&(h?e=n.decode(e):s&&!0!==a&&(e=l(p=e,i.uint8array?new Uint8Array(p.length):new Array(p.length)))),e):o.Promise.reject(new Error("Can't read the data of '"+t+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,"set-immediate-shim":54}],33:[function(t,e,r){var i=t("./reader/readerFor"),n=t("./utils"),s=t("./signature"),a=t("./zipEntry"),o=(t("./utf8"),t("./support"));function h(t){this.files=[],this.loadOptions=t}h.prototype={checkSignature:function(t){if(!this.reader.readAndCheckSignature(t)){this.reader.index-=4;var e=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+n.pretty(e)+", expected "+n.pretty(t)+")")}},isSignature:function(t,e){var r=this.reader.index;this.reader.setIndex(t);var i=this.reader.readString(4)===e;return this.reader.setIndex(r),i},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var t=this.reader.readData(this.zipCommentLength),e=o.uint8array?"uint8array":"array",r=n.transformTo(e,t);this.zipComment=this.loadOptions.decodeFileName(r)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var t,e,r,i=this.zip64EndOfCentralSize-44;0<i;)t=this.reader.readInt(2),e=this.reader.readInt(4),r=this.reader.readData(e),this.zip64ExtensibleData[t]={id:t,length:e,value:r}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var t,e;for(t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(s.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER);)(t=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(t);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var t=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);if(t<0)throw this.isSignature(0,s.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(t);var e=t;if(this.checkSignature(s.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===n.MAX_VALUE_16BITS||this.diskWithCentralDirStart===n.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===n.MAX_VALUE_16BITS||this.centralDirRecords===n.MAX_VALUE_16BITS||this.centralDirSize===n.MAX_VALUE_32BITS||this.centralDirOffset===n.MAX_VALUE_32BITS){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,s.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var r=this.centralDirOffset+this.centralDirSize;this.zip64&&(r+=20,r+=12+this.zip64EndOfCentralSize);var i=e-r;if(0<i)this.isSignature(e,s.CENTRAL_FILE_HEADER)||(this.reader.zero=i);else if(i<0)throw new Error("Corrupted zip: missing "+Math.abs(i)+" bytes.")},prepareReader:function(t){this.reader=i(t)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},e.exports=h},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utf8":31,"./utils":32,"./zipEntry":34}],34:[function(t,e,r){var i=t("./reader/readerFor"),n=t("./utils"),s=t("./compressedObject"),a=t("./crc32"),o=t("./utf8"),h=t("./compressions"),l=t("./support");function p(t,e){this.options=t,this.loadOptions=e}p.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(t){var e,r;if(t.skip(22),this.fileNameLength=t.readInt(2),r=t.readInt(2),this.fileName=t.readData(this.fileNameLength),t.skip(r),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(e=function(t){for(var e in h)if(h.hasOwnProperty(e)&&h[e].magic===t)return h[e];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+n.pretty(this.compressionMethod)+" unknown (inner file : "+n.transformTo("string",this.fileName)+")");this.decompressed=new s(this.compressedSize,this.uncompressedSize,this.crc32,e,t.readData(this.compressedSize))},readCentralPart:function(t){this.versionMadeBy=t.readInt(2),t.skip(2),this.bitFlag=t.readInt(2),this.compressionMethod=t.readString(2),this.date=t.readDate(),this.crc32=t.readInt(4),this.compressedSize=t.readInt(4),this.uncompressedSize=t.readInt(4);var e=t.readInt(2);if(this.extraFieldsLength=t.readInt(2),this.fileCommentLength=t.readInt(2),this.diskNumberStart=t.readInt(2),this.internalFileAttributes=t.readInt(2),this.externalFileAttributes=t.readInt(4),this.localHeaderOffset=t.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");t.skip(e),this.readExtraFields(t),this.parseZIP64ExtraField(t),this.fileComment=t.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var t=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(t){if(this.extraFields[1]){var e=i(this.extraFields[1].value);this.uncompressedSize===n.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===n.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===n.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===n.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(t){var e,r,i,n=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4<n;)e=t.readInt(2),r=t.readInt(2),i=t.readData(r),this.extraFields[e]={id:e,length:r,value:i};t.setIndex(n)},handleUTF8:function(){var t=l.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=o.utf8decode(this.fileName),this.fileCommentStr=o.utf8decode(this.fileComment);else{var e=this.findExtraFieldUnicodePath();if(null!==e)this.fileNameStr=e;else{var r=n.transformTo(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var i=this.findExtraFieldUnicodeComment();if(null!==i)this.fileCommentStr=i;else{var s=n.transformTo(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(s)}}},findExtraFieldUnicodePath:function(){var t=this.extraFields[28789];if(t){var e=i(t.value);return 1!==e.readInt(1)||a(this.fileName)!==e.readInt(4)?null:o.utf8decode(e.readData(t.length-5))}return null},findExtraFieldUnicodeComment:function(){var t=this.extraFields[25461];if(t){var e=i(t.value);return 1!==e.readInt(1)||a(this.fileComment)!==e.readInt(4)?null:o.utf8decode(e.readData(t.length-5))}return null}},e.exports=p},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,e,r){function i(t,e,r){this.name=t,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=e,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}}var n=t("./stream/StreamHelper"),s=t("./stream/DataWorker"),a=t("./utf8"),o=t("./compressedObject"),h=t("./stream/GenericWorker");i.prototype={internalStream:function(t){var e=null,r="string";try{if(!t)throw new Error("No output type specified.");var i="string"===(r=t.toLowerCase())||"text"===r;"binarystring"!==r&&"text"!==r||(r="string"),e=this._decompressWorker();var s=!this._dataBinary;s&&!i&&(e=e.pipe(new a.Utf8EncodeWorker)),!s&&i&&(e=e.pipe(new a.Utf8DecodeWorker))}catch(t){(e=new h("error")).error(t)}return new n(e,r,"")},async:function(t,e){return this.internalStream(t).accumulate(e)},nodeStream:function(t,e){return this.internalStream(t||"nodebuffer").toNodejsStream(e)},_compressWorker:function(t,e){if(this._data instanceof o&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new a.Utf8EncodeWorker)),o.createWorkerFrom(r,t,e)},_decompressWorker:function(){return this._data instanceof o?this._data.getContentWorker():this._data instanceof h?this._data:new s(this._data)}};for(var l=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],p=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},c=0;c<l.length;c++)i.prototype[l[c]]=p;e.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,e,r){(function(t){var r,i,n=t.MutationObserver||t.WebKitMutationObserver;if(n){var s=0,a=new n(p),o=t.document.createTextNode("");a.observe(o,{characterData:!0}),r=function(){o.data=s=++s%2}}else if(t.setImmediate||void 0===t.MessageChannel)r="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var e=t.document.createElement("script");e.onreadystatechange=function(){p(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},t.document.documentElement.appendChild(e)}:function(){setTimeout(p,0)};else{var h=new t.MessageChannel;h.port1.onmessage=p,r=function(){h.port2.postMessage(0)}}var l=[];function p(){var t,e;i=!0;for(var r=l.length;r;){for(e=l,l=[],t=-1;++t<r;)e[t]();r=l.length}i=!1}e.exports=function(t){1!==l.push(t)||i||r()}}).call(this,void 0!==i?i:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(t,e,r){var i=t("immediate");function n(){}var s={},a=["REJECTED"],o=["FULFILLED"],h=["PENDING"];function l(t){if("function"!=typeof t)throw new TypeError("resolver must be a function");this.state=h,this.queue=[],this.outcome=void 0,t!==n&&u(this,t)}function p(t,e,r){this.promise=t,"function"==typeof e&&(this.onFulfilled=e,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function c(t,e,r){i((function(){var i;try{i=e(r)}catch(i){return s.reject(t,i)}i===t?s.reject(t,new TypeError("Cannot resolve promise with itself")):s.resolve(t,i)}))}function f(t){var e=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof e)return function(){e.apply(t,arguments)}}function u(t,e){var r=!1;function i(e){r||(r=!0,s.reject(t,e))}function n(e){r||(r=!0,s.resolve(t,e))}var a=d((function(){e(n,i)}));"error"===a.status&&i(a.value)}function d(t,e){var r={};try{r.value=t(e),r.status="success"}catch(t){r.status="error",r.value=t}return r}(e.exports=l).prototype.finally=function(t){if("function"!=typeof t)return this;var e=this.constructor;return this.then((function(r){return e.resolve(t()).then((function(){return r}))}),(function(r){return e.resolve(t()).then((function(){throw r}))}))},l.prototype.catch=function(t){return this.then(null,t)},l.prototype.then=function(t,e){if("function"!=typeof t&&this.state===o||"function"!=typeof e&&this.state===a)return this;var r=new this.constructor(n);return this.state!==h?c(r,this.state===o?t:e,this.outcome):this.queue.push(new p(r,t,e)),r},p.prototype.callFulfilled=function(t){s.resolve(this.promise,t)},p.prototype.otherCallFulfilled=function(t){c(this.promise,this.onFulfilled,t)},p.prototype.callRejected=function(t){s.reject(this.promise,t)},p.prototype.otherCallRejected=function(t){c(this.promise,this.onRejected,t)},s.resolve=function(t,e){var r=d(f,e);if("error"===r.status)return s.reject(t,r.value);var i=r.value;if(i)u(t,i);else{t.state=o,t.outcome=e;for(var n=-1,a=t.queue.length;++n<a;)t.queue[n].callFulfilled(e)}return t},s.reject=function(t,e){t.state=a,t.outcome=e;for(var r=-1,i=t.queue.length;++r<i;)t.queue[r].callRejected(e);return t},l.resolve=function(t){return t instanceof this?t:s.resolve(new this(n),t)},l.reject=function(t){var e=new this(n);return s.reject(e,t)},l.all=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var r=t.length,i=!1;if(!r)return this.resolve([]);for(var a=new Array(r),o=0,h=-1,l=new this(n);++h<r;)p(t[h],h);return l;function p(t,n){e.resolve(t).then((function(t){a[n]=t,++o!==r||i||(i=!0,s.resolve(l,a))}),(function(t){i||(i=!0,s.reject(l,t))}))}},l.race=function(t){if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var e=t.length,r=!1;if(!e)return this.resolve([]);for(var i,a=-1,o=new this(n);++a<e;)i=t[a],this.resolve(i).then((function(t){r||(r=!0,s.resolve(o,t))}),(function(t){r||(r=!0,s.reject(o,t))}));return o}},{immediate:36}],38:[function(t,e,r){var i={};(0,t("./lib/utils/common").assign)(i,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),e.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,e,r){var i=t("./zlib/deflate"),n=t("./utils/common"),s=t("./utils/strings"),a=t("./zlib/messages"),o=t("./zlib/zstream"),h=Object.prototype.toString;function l(t){if(!(this instanceof l))return new l(t);this.options=n.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e=this.options;e.raw&&0<e.windowBits?e.windowBits=-e.windowBits:e.gzip&&0<e.windowBits&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var r=i.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==r)throw new Error(a[r]);if(e.header&&i.deflateSetHeader(this.strm,e.header),e.dictionary){var p;if(p="string"==typeof e.dictionary?s.string2buf(e.dictionary):"[object ArrayBuffer]"===h.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(r=i.deflateSetDictionary(this.strm,p)))throw new Error(a[r]);this._dict_set=!0}}function p(t,e){var r=new l(e);if(r.push(t,!0),r.err)throw r.msg||a[r.err];return r.result}l.prototype.push=function(t,e){var r,a,o=this.strm,l=this.options.chunkSize;if(this.ended)return!1;a=e===~~e?e:!0===e?4:0,"string"==typeof t?o.input=s.string2buf(t):"[object ArrayBuffer]"===h.call(t)?o.input=new Uint8Array(t):o.input=t,o.next_in=0,o.avail_in=o.input.length;do{if(0===o.avail_out&&(o.output=new n.Buf8(l),o.next_out=0,o.avail_out=l),1!==(r=i.deflate(o,a))&&0!==r)return this.onEnd(r),!(this.ended=!0);0!==o.avail_out&&(0!==o.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(s.buf2binstring(n.shrinkBuf(o.output,o.next_out))):this.onData(n.shrinkBuf(o.output,o.next_out)))}while((0<o.avail_in||0===o.avail_out)&&1!==r);return 4===a?(r=i.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==a||(this.onEnd(0),!(o.avail_out=0))},l.prototype.onData=function(t){this.chunks.push(t)},l.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=n.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},r.Deflate=l,r.deflate=p,r.deflateRaw=function(t,e){return(e=e||{}).raw=!0,p(t,e)},r.gzip=function(t,e){return(e=e||{}).gzip=!0,p(t,e)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,e,r){var i=t("./zlib/inflate"),n=t("./utils/common"),s=t("./utils/strings"),a=t("./zlib/constants"),o=t("./zlib/messages"),h=t("./zlib/zstream"),l=t("./zlib/gzheader"),p=Object.prototype.toString;function c(t){if(!(this instanceof c))return new c(t);this.options=n.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&0<=e.windowBits&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(0<=e.windowBits&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),15<e.windowBits&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new h,this.strm.avail_out=0;var r=i.inflateInit2(this.strm,e.windowBits);if(r!==a.Z_OK)throw new Error(o[r]);this.header=new l,i.inflateGetHeader(this.strm,this.header)}function f(t,e){var r=new c(e);if(r.push(t,!0),r.err)throw r.msg||o[r.err];return r.result}c.prototype.push=function(t,e){var r,o,h,l,c,f,u=this.strm,d=this.options.chunkSize,m=this.options.dictionary,y=!1;if(this.ended)return!1;o=e===~~e?e:!0===e?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof t?u.input=s.binstring2buf(t):"[object ArrayBuffer]"===p.call(t)?u.input=new Uint8Array(t):u.input=t,u.next_in=0,u.avail_in=u.input.length;do{if(0===u.avail_out&&(u.output=new n.Buf8(d),u.next_out=0,u.avail_out=d),(r=i.inflate(u,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&m&&(f="string"==typeof m?s.string2buf(m):"[object ArrayBuffer]"===p.call(m)?new Uint8Array(m):m,r=i.inflateSetDictionary(this.strm,f)),r===a.Z_BUF_ERROR&&!0===y&&(r=a.Z_OK,y=!1),r!==a.Z_STREAM_END&&r!==a.Z_OK)return this.onEnd(r),!(this.ended=!0);u.next_out&&(0!==u.avail_out&&r!==a.Z_STREAM_END&&(0!==u.avail_in||o!==a.Z_FINISH&&o!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(h=s.utf8border(u.output,u.next_out),l=u.next_out-h,c=s.buf2string(u.output,h),u.next_out=l,u.avail_out=d-l,l&&n.arraySet(u.output,u.output,h,l,0),this.onData(c)):this.onData(n.shrinkBuf(u.output,u.next_out)))),0===u.avail_in&&0===u.avail_out&&(y=!0)}while((0<u.avail_in||0===u.avail_out)&&r!==a.Z_STREAM_END);return r===a.Z_STREAM_END&&(o=a.Z_FINISH),o===a.Z_FINISH?(r=i.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===a.Z_OK):o!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(u.avail_out=0))},c.prototype.onData=function(t){this.chunks.push(t)},c.prototype.onEnd=function(t){t===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=n.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},r.Inflate=c,r.inflate=f,r.inflateRaw=function(t,e){return(e=e||{}).raw=!0,f(t,e)},r.ungzip=f},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,e,r){var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;r.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var r=e.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])}}return t},r.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var n={arraySet:function(t,e,r,i,n){if(e.subarray&&t.subarray)t.set(e.subarray(r,r+i),n);else for(var s=0;s<i;s++)t[n+s]=e[r+s]},flattenChunks:function(t){var e,r,i,n,s,a;for(e=i=0,r=t.length;e<r;e++)i+=t[e].length;for(a=new Uint8Array(i),e=n=0,r=t.length;e<r;e++)s=t[e],a.set(s,n),n+=s.length;return a}},s={arraySet:function(t,e,r,i,n){for(var s=0;s<i;s++)t[n+s]=e[r+s]},flattenChunks:function(t){return[].concat.apply([],t)}};r.setTyped=function(t){t?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,n)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,s))},r.setTyped(i)},{}],42:[function(t,e,r){var i=t("./common"),n=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch(t){n=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){s=!1}for(var a=new i.Buf8(256),o=0;o<256;o++)a[o]=252<=o?6:248<=o?5:240<=o?4:224<=o?3:192<=o?2:1;function h(t,e){if(e<65537&&(t.subarray&&s||!t.subarray&&n))return String.fromCharCode.apply(null,i.shrinkBuf(t,e));for(var r="",a=0;a<e;a++)r+=String.fromCharCode(t[a]);return r}a[254]=a[254]=1,r.string2buf=function(t){var e,r,n,s,a,o=t.length,h=0;for(s=0;s<o;s++)55296==(64512&(r=t.charCodeAt(s)))&&s+1<o&&56320==(64512&(n=t.charCodeAt(s+1)))&&(r=65536+(r-55296<<10)+(n-56320),s++),h+=r<128?1:r<2048?2:r<65536?3:4;for(e=new i.Buf8(h),s=a=0;a<h;s++)55296==(64512&(r=t.charCodeAt(s)))&&s+1<o&&56320==(64512&(n=t.charCodeAt(s+1)))&&(r=65536+(r-55296<<10)+(n-56320),s++),r<128?e[a++]=r:(r<2048?e[a++]=192|r>>>6:(r<65536?e[a++]=224|r>>>12:(e[a++]=240|r>>>18,e[a++]=128|r>>>12&63),e[a++]=128|r>>>6&63),e[a++]=128|63&r);return e},r.buf2binstring=function(t){return h(t,t.length)},r.binstring2buf=function(t){for(var e=new i.Buf8(t.length),r=0,n=e.length;r<n;r++)e[r]=t.charCodeAt(r);return e},r.buf2string=function(t,e){var r,i,n,s,o=e||t.length,l=new Array(2*o);for(r=i=0;r<o;)if((n=t[r++])<128)l[i++]=n;else if(4<(s=a[n]))l[i++]=65533,r+=s-1;else{for(n&=2===s?31:3===s?15:7;1<s&&r<o;)n=n<<6|63&t[r++],s--;1<s?l[i++]=65533:n<65536?l[i++]=n:(n-=65536,l[i++]=55296|n>>10&1023,l[i++]=56320|1023&n)}return h(l,i)},r.utf8border=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;0<=r&&128==(192&t[r]);)r--;return r<0||0===r?e:r+a[t[r]]>e?r:e}},{"./common":41}],43:[function(t,e,r){e.exports=function(t,e,r,i){for(var n=65535&t|0,s=t>>>16&65535|0,a=0;0!==r;){for(r-=a=2e3<r?2e3:r;s=s+(n=n+e[i++]|0)|0,--a;);n%=65521,s%=65521}return n|s<<16|0}},{}],44:[function(t,e,r){e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(t,e,r){var i=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();e.exports=function(t,e,r,n){var s=i,a=n+r;t^=-1;for(var o=n;o<a;o++)t=t>>>8^s[255&(t^e[o])];return-1^t}},{}],46:[function(t,e,r){var i,n=t("../utils/common"),s=t("./trees"),a=t("./adler32"),o=t("./crc32"),h=t("./messages"),l=-2,p=258,c=262,f=113;function u(t,e){return t.msg=h[e],e}function d(t){return(t<<1)-(4<t?9:0)}function m(t){for(var e=t.length;0<=--e;)t[e]=0}function y(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(n.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function g(t,e){s._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,y(t.strm)}function v(t,e){t.pending_buf[t.pending++]=e}function _(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function b(t,e){var r,i,n=t.max_chain_length,s=t.strstart,a=t.prev_length,o=t.nice_match,h=t.strstart>t.w_size-c?t.strstart-(t.w_size-c):0,l=t.window,f=t.w_mask,u=t.prev,d=t.strstart+p,m=l[s+a-1],y=l[s+a];t.prev_length>=t.good_match&&(n>>=2),o>t.lookahead&&(o=t.lookahead);do{if(l[(r=e)+a]===y&&l[r+a-1]===m&&l[r]===l[s]&&l[++r]===l[s+1]){s+=2,r++;do{}while(l[++s]===l[++r]&&l[++s]===l[++r]&&l[++s]===l[++r]&&l[++s]===l[++r]&&l[++s]===l[++r]&&l[++s]===l[++r]&&l[++s]===l[++r]&&l[++s]===l[++r]&&s<d);if(i=p-(d-s),s=d-p,a<i){if(t.match_start=e,o<=(a=i))break;m=l[s+a-1],y=l[s+a]}}}while((e=u[e&f])>h&&0!=--n);return a<=t.lookahead?a:t.lookahead}function P(t){var e,r,i,s,h,l,p,f,u,d,m=t.w_size;do{if(s=t.window_size-t.lookahead-t.strstart,t.strstart>=m+(m-c)){for(n.arraySet(t.window,t.window,m,m,0),t.match_start-=m,t.strstart-=m,t.block_start-=m,e=r=t.hash_size;i=t.head[--e],t.head[e]=m<=i?i-m:0,--r;);for(e=r=m;i=t.prev[--e],t.prev[e]=m<=i?i-m:0,--r;);s+=m}if(0===t.strm.avail_in)break;if(l=t.strm,p=t.window,f=t.strstart+t.lookahead,d=void 0,(u=s)<(d=l.avail_in)&&(d=u),r=0===d?0:(l.avail_in-=d,n.arraySet(p,l.input,l.next_in,d,f),1===l.state.wrap?l.adler=a(l.adler,p,d,f):2===l.state.wrap&&(l.adler=o(l.adler,p,d,f)),l.next_in+=d,l.total_in+=d,d),t.lookahead+=r,t.lookahead+t.insert>=3)for(h=t.strstart-t.insert,t.ins_h=t.window[h],t.ins_h=(t.ins_h<<t.hash_shift^t.window[h+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[h+3-1])&t.hash_mask,t.prev[h&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=h,h++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<c&&0!==t.strm.avail_in)}function S(t,e){for(var r,i;;){if(t.lookahead<c){if(P(t),t.lookahead<c&&0===e)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-c&&(t.match_length=b(t,r)),t.match_length>=3)if(i=s._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,0!=--t.match_length;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else i=s._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(g(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(g(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(g(t,!1),0===t.strm.avail_out)?1:2}function w(t,e){for(var r,i,n;;){if(t.lookahead<c){if(P(t),t.lookahead<c&&0===e)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-c&&(t.match_length=b(t,r),t.match_length<=5&&(1===t.strategy||3===t.match_length&&4096<t.strstart-t.match_start)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){for(n=t.strstart+t.lookahead-3,i=s._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=n&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!=--t.prev_length;);if(t.match_available=0,t.match_length=2,t.strstart++,i&&(g(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((i=s._tr_tally(t,0,t.window[t.strstart-1]))&&g(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=s._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(g(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(g(t,!1),0===t.strm.avail_out)?1:2}function x(t,e,r,i,n){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=i,this.func=n}function E(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new n.Buf16(1146),this.dyn_dtree=new n.Buf16(122),this.bl_tree=new n.Buf16(78),m(this.dyn_ltree),m(this.dyn_dtree),m(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new n.Buf16(16),this.heap=new n.Buf16(573),m(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new n.Buf16(573),m(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function k(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:f,t.adler=2===e.wrap?0:1,e.last_flush=0,s._tr_init(e),0):u(t,l)}function A(t){var e,r=k(t);return 0===r&&((e=t.state).window_size=2*e.w_size,m(e.head),e.max_lazy_match=i[e.level].max_lazy,e.good_match=i[e.level].good_length,e.nice_match=i[e.level].nice_length,e.max_chain_length=i[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),r}function T(t,e,r,i,s,a){if(!t)return l;var o=1;if(-1===e&&(e=6),i<0?(o=0,i=-i):15<i&&(o=2,i-=16),s<1||9<s||8!==r||i<8||15<i||e<0||9<e||a<0||4<a)return u(t,l);8===i&&(i=9);var h=new E;return(t.state=h).strm=t,h.wrap=o,h.gzhead=null,h.w_bits=i,h.w_size=1<<h.w_bits,h.w_mask=h.w_size-1,h.hash_bits=s+7,h.hash_size=1<<h.hash_bits,h.hash_mask=h.hash_size-1,h.hash_shift=~~((h.hash_bits+3-1)/3),h.window=new n.Buf8(2*h.w_size),h.head=new n.Buf16(h.hash_size),h.prev=new n.Buf16(h.w_size),h.lit_bufsize=1<<s+6,h.pending_buf_size=4*h.lit_bufsize,h.pending_buf=new n.Buf8(h.pending_buf_size),h.d_buf=1*h.lit_bufsize,h.l_buf=3*h.lit_bufsize,h.level=e,h.strategy=a,h.method=r,A(t)}i=[new x(0,0,0,0,(function(t,e){var r=65535;for(r>t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(P(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var i=t.block_start+r;if((0===t.strstart||t.strstart>=i)&&(t.lookahead=t.strstart-i,t.strstart=i,g(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-c&&(g(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(g(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(g(t,!1),t.strm.avail_out),1)})),new x(4,4,8,4,S),new x(4,5,16,8,S),new x(4,6,32,32,S),new x(4,4,16,16,w),new x(8,16,32,32,w),new x(8,16,128,128,w),new x(8,32,128,256,w),new x(32,128,258,1024,w),new x(32,258,258,4096,w)],r.deflateInit=function(t,e){return T(t,e,8,15,8,0)},r.deflateInit2=T,r.deflateReset=A,r.deflateResetKeep=k,r.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?l:(t.state.gzhead=e,0):l},r.deflate=function(t,e){var r,n,a,h;if(!t||!t.state||5<e||e<0)return t?u(t,l):l;if(n=t.state,!t.output||!t.input&&0!==t.avail_in||666===n.status&&4!==e)return u(t,0===t.avail_out?-5:l);if(n.strm=t,r=n.last_flush,n.last_flush=e,42===n.status)if(2===n.wrap)t.adler=0,v(n,31),v(n,139),v(n,8),n.gzhead?(v(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),v(n,255&n.gzhead.time),v(n,n.gzhead.time>>8&255),v(n,n.gzhead.time>>16&255),v(n,n.gzhead.time>>24&255),v(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),v(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(v(n,255&n.gzhead.extra.length),v(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=o(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(v(n,0),v(n,0),v(n,0),v(n,0),v(n,0),v(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),v(n,3),n.status=f);else{var c=8+(n.w_bits-8<<4)<<8;c|=(2<=n.strategy||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(c|=32),c+=31-c%31,n.status=f,_(n,c),0!==n.strstart&&(_(n,t.adler>>>16),_(n,65535&t.adler)),t.adler=1}if(69===n.status)if(n.gzhead.extra){for(a=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>a&&(t.adler=o(t.adler,n.pending_buf,n.pending-a,a)),y(t),a=n.pending,n.pending!==n.pending_buf_size));)v(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>a&&(t.adler=o(t.adler,n.pending_buf,n.pending-a,a)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){a=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>a&&(t.adler=o(t.adler,n.pending_buf,n.pending-a,a)),y(t),a=n.pending,n.pending===n.pending_buf_size)){h=1;break}h=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,v(n,h)}while(0!==h);n.gzhead.hcrc&&n.pending>a&&(t.adler=o(t.adler,n.pending_buf,n.pending-a,a)),0===h&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){a=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>a&&(t.adler=o(t.adler,n.pending_buf,n.pending-a,a)),y(t),a=n.pending,n.pending===n.pending_buf_size)){h=1;break}h=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,v(n,h)}while(0!==h);n.gzhead.hcrc&&n.pending>a&&(t.adler=o(t.adler,n.pending_buf,n.pending-a,a)),0===h&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&y(t),n.pending+2<=n.pending_buf_size&&(v(n,255&t.adler),v(n,t.adler>>8&255),t.adler=0,n.status=f)):n.status=f),0!==n.pending){if(y(t),0===t.avail_out)return n.last_flush=-1,0}else if(0===t.avail_in&&d(e)<=d(r)&&4!==e)return u(t,-5);if(666===n.status&&0!==t.avail_in)return u(t,-5);if(0!==t.avail_in||0!==n.lookahead||0!==e&&666!==n.status){var b=2===n.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(P(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,r=s._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(g(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(g(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(g(t,!1),0===t.strm.avail_out)?1:2}(n,e):3===n.strategy?function(t,e){for(var r,i,n,a,o=t.window;;){if(t.lookahead<=p){if(P(t),t.lookahead<=p&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&0<t.strstart&&(i=o[n=t.strstart-1])===o[++n]&&i===o[++n]&&i===o[++n]){a=t.strstart+p;do{}while(i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&n<a);t.match_length=p-(a-n),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(r=s._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=s._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(g(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(g(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(g(t,!1),0===t.strm.avail_out)?1:2}(n,e):i[n.level].func(n,e);if(3!==b&&4!==b||(n.status=666),1===b||3===b)return 0===t.avail_out&&(n.last_flush=-1),0;if(2===b&&(1===e?s._tr_align(n):5!==e&&(s._tr_stored_block(n,0,0,!1),3===e&&(m(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),y(t),0===t.avail_out))return n.last_flush=-1,0}return 4!==e?0:n.wrap<=0?1:(2===n.wrap?(v(n,255&t.adler),v(n,t.adler>>8&255),v(n,t.adler>>16&255),v(n,t.adler>>24&255),v(n,255&t.total_in),v(n,t.total_in>>8&255),v(n,t.total_in>>16&255),v(n,t.total_in>>24&255)):(_(n,t.adler>>>16),_(n,65535&t.adler)),y(t),0<n.wrap&&(n.wrap=-n.wrap),0!==n.pending?0:1)},r.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&103!==e&&e!==f&&666!==e?u(t,l):(t.state=null,e===f?u(t,-3):0):l},r.deflateSetDictionary=function(t,e){var r,i,s,o,h,p,c,f,u=e.length;if(!t||!t.state)return l;if(2===(o=(r=t.state).wrap)||1===o&&42!==r.status||r.lookahead)return l;for(1===o&&(t.adler=a(t.adler,e,u,0)),r.wrap=0,u>=r.w_size&&(0===o&&(m(r.head),r.strstart=0,r.block_start=0,r.insert=0),f=new n.Buf8(r.w_size),n.arraySet(f,e,u-r.w_size,r.w_size,0),e=f,u=r.w_size),h=t.avail_in,p=t.next_in,c=t.input,t.avail_in=u,t.next_in=0,t.input=e,P(r);r.lookahead>=3;){for(i=r.strstart,s=r.lookahead-2;r.ins_h=(r.ins_h<<r.hash_shift^r.window[i+3-1])&r.hash_mask,r.prev[i&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=i,i++,--s;);r.strstart=i,r.lookahead=2,P(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,t.next_in=p,t.input=c,t.avail_in=h,r.wrap=o,0},r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,e,r){e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(t,e,r){e.exports=function(t,e){var r,i,n,s,a,o,h,l,p,c,f,u,d,m,y,g,v,_,b,P,S,w,x,E,k;r=t.state,i=t.next_in,E=t.input,n=i+(t.avail_in-5),s=t.next_out,k=t.output,a=s-(e-t.avail_out),o=s+(t.avail_out-257),h=r.dmax,l=r.wsize,p=r.whave,c=r.wnext,f=r.window,u=r.hold,d=r.bits,m=r.lencode,y=r.distcode,g=(1<<r.lenbits)-1,v=(1<<r.distbits)-1;t:do{d<15&&(u+=E[i++]<<d,d+=8,u+=E[i++]<<d,d+=8),_=m[u&g];e:for(;;){if(u>>>=b=_>>>24,d-=b,0==(b=_>>>16&255))k[s++]=65535&_;else{if(!(16&b)){if(0==(64&b)){_=m[(65535&_)+(u&(1<<b)-1)];continue e}if(32&b){r.mode=12;break t}t.msg="invalid literal/length code",r.mode=30;break t}P=65535&_,(b&=15)&&(d<b&&(u+=E[i++]<<d,d+=8),P+=u&(1<<b)-1,u>>>=b,d-=b),d<15&&(u+=E[i++]<<d,d+=8,u+=E[i++]<<d,d+=8),_=y[u&v];r:for(;;){if(u>>>=b=_>>>24,d-=b,!(16&(b=_>>>16&255))){if(0==(64&b)){_=y[(65535&_)+(u&(1<<b)-1)];continue r}t.msg="invalid distance code",r.mode=30;break t}if(S=65535&_,d<(b&=15)&&(u+=E[i++]<<d,(d+=8)<b&&(u+=E[i++]<<d,d+=8)),h<(S+=u&(1<<b)-1)){t.msg="invalid distance too far back",r.mode=30;break t}if(u>>>=b,d-=b,(b=s-a)<S){if(p<(b=S-b)&&r.sane){t.msg="invalid distance too far back",r.mode=30;break t}if(x=f,(w=0)===c){if(w+=l-b,b<P){for(P-=b;k[s++]=f[w++],--b;);w=s-S,x=k}}else if(c<b){if(w+=l+c-b,(b-=c)<P){for(P-=b;k[s++]=f[w++],--b;);if(w=0,c<P){for(P-=b=c;k[s++]=f[w++],--b;);w=s-S,x=k}}}else if(w+=c-b,b<P){for(P-=b;k[s++]=f[w++],--b;);w=s-S,x=k}for(;2<P;)k[s++]=x[w++],k[s++]=x[w++],k[s++]=x[w++],P-=3;P&&(k[s++]=x[w++],1<P&&(k[s++]=x[w++]))}else{for(w=s-S;k[s++]=k[w++],k[s++]=k[w++],k[s++]=k[w++],2<(P-=3););P&&(k[s++]=k[w++],1<P&&(k[s++]=k[w++]))}break}}break}}while(i<n&&s<o);i-=P=d>>3,u&=(1<<(d-=P<<3))-1,t.next_in=i,t.next_out=s,t.avail_in=i<n?n-i+5:5-(i-n),t.avail_out=s<o?o-s+257:257-(s-o),r.hold=u,r.bits=d}},{}],49:[function(t,e,r){var i=t("../utils/common"),n=t("./adler32"),s=t("./crc32"),a=t("./inffast"),o=t("./inftrees"),h=-2;function l(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function p(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function c(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new i.Buf32(852),e.distcode=e.distdyn=new i.Buf32(592),e.sane=1,e.back=-1,0):h}function f(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,c(t)):h}function u(t,e){var r,i;return t&&t.state?(i=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15<e)?h:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=r,i.wbits=e,f(t))):h}function d(t,e){var r,i;return t?(i=new p,(t.state=i).window=null,0!==(r=u(t,e))&&(t.state=null),r):h}var m,y,g=!0;function v(t){if(g){var e;for(m=new i.Buf32(512),y=new i.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(o(1,t.lens,0,288,m,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;o(2,t.lens,0,32,y,0,t.work,{bits:5}),g=!1}t.lencode=m,t.lenbits=9,t.distcode=y,t.distbits=5}function _(t,e,r,n){var s,a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new i.Buf8(a.wsize)),n>=a.wsize?(i.arraySet(a.window,e,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(n<(s=a.wsize-a.wnext)&&(s=n),i.arraySet(a.window,e,r-n,s,a.wnext),(n-=s)?(i.arraySet(a.window,e,r-n,n,0),a.wnext=n,a.whave=a.wsize):(a.wnext+=s,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=s))),0}r.inflateReset=f,r.inflateReset2=u,r.inflateResetKeep=c,r.inflateInit=function(t){return d(t,15)},r.inflateInit2=d,r.inflate=function(t,e){var r,p,c,f,u,d,m,y,g,b,P,S,w,x,E,k,A,T,C,I,D,M,F,O,R=0,z=new i.Buf8(4),L=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return h;12===(r=t.state).mode&&(r.mode=13),u=t.next_out,c=t.output,m=t.avail_out,f=t.next_in,p=t.input,d=t.avail_in,y=r.hold,g=r.bits,b=d,P=m,M=0;t:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;g<16;){if(0===d)break t;d--,y+=p[f++]<<g,g+=8}if(2&r.wrap&&35615===y){z[r.check=0]=255&y,z[1]=y>>>8&255,r.check=s(r.check,z,2,0),g=y=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&y)<<8)+(y>>8))%31){t.msg="incorrect header check",r.mode=30;break}if(8!=(15&y)){t.msg="unknown compression method",r.mode=30;break}if(g-=4,D=8+(15&(y>>>=4)),0===r.wbits)r.wbits=D;else if(D>r.wbits){t.msg="invalid window size",r.mode=30;break}r.dmax=1<<D,t.adler=r.check=1,r.mode=512&y?10:12,g=y=0;break;case 2:for(;g<16;){if(0===d)break t;d--,y+=p[f++]<<g,g+=8}if(r.flags=y,8!=(255&r.flags)){t.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){t.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=y>>8&1),512&r.flags&&(z[0]=255&y,z[1]=y>>>8&255,r.check=s(r.check,z,2,0)),g=y=0,r.mode=3;case 3:for(;g<32;){if(0===d)break t;d--,y+=p[f++]<<g,g+=8}r.head&&(r.head.time=y),512&r.flags&&(z[0]=255&y,z[1]=y>>>8&255,z[2]=y>>>16&255,z[3]=y>>>24&255,r.check=s(r.check,z,4,0)),g=y=0,r.mode=4;case 4:for(;g<16;){if(0===d)break t;d--,y+=p[f++]<<g,g+=8}r.head&&(r.head.xflags=255&y,r.head.os=y>>8),512&r.flags&&(z[0]=255&y,z[1]=y>>>8&255,r.check=s(r.check,z,2,0)),g=y=0,r.mode=5;case 5:if(1024&r.flags){for(;g<16;){if(0===d)break t;d--,y+=p[f++]<<g,g+=8}r.length=y,r.head&&(r.head.extra_len=y),512&r.flags&&(z[0]=255&y,z[1]=y>>>8&255,r.check=s(r.check,z,2,0)),g=y=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(d<(S=r.length)&&(S=d),S&&(r.head&&(D=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),i.arraySet(r.head.extra,p,f,S,D)),512&r.flags&&(r.check=s(r.check,p,S,f)),d-=S,f+=S,r.length-=S),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===d)break t;for(S=0;D=p[f+S++],r.head&&D&&r.length<65536&&(r.head.name+=String.fromCharCode(D)),D&&S<d;);if(512&r.flags&&(r.check=s(r.check,p,S,f)),d-=S,f+=S,D)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===d)break t;for(S=0;D=p[f+S++],r.head&&D&&r.length<65536&&(r.head.comment+=String.fromCharCode(D)),D&&S<d;);if(512&r.flags&&(r.check=s(r.check,p,S,f)),d-=S,f+=S,D)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;g<16;){if(0===d)break t;d--,y+=p[f++]<<g,g+=8}if(y!==(65535&r.check)){t.msg="header crc mismatch",r.mode=30;break}g=y=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=12;break;case 10:for(;g<32;){if(0===d)break t;d--,y+=p[f++]<<g,g+=8}t.adler=r.check=l(y),g=y=0,r.mode=11;case 11:if(0===r.havedict)return t.next_out=u,t.avail_out=m,t.next_in=f,t.avail_in=d,r.hold=y,r.bits=g,2;t.adler=r.check=1,r.mode=12;case 12:if(5===e||6===e)break t;case 13:if(r.last){y>>>=7&g,g-=7&g,r.mode=27;break}for(;g<3;){if(0===d)break t;d--,y+=p[f++]<<g,g+=8}switch(r.last=1&y,g-=1,3&(y>>>=1)){case 0:r.mode=14;break;case 1:if(v(r),r.mode=20,6!==e)break;y>>>=2,g-=2;break t;case 2:r.mode=17;break;case 3:t.msg="invalid block type",r.mode=30}y>>>=2,g-=2;break;case 14:for(y>>>=7&g,g-=7&g;g<32;){if(0===d)break t;d--,y+=p[f++]<<g,g+=8}if((65535&y)!=(y>>>16^65535)){t.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&y,g=y=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(S=r.length){if(d<S&&(S=d),m<S&&(S=m),0===S)break t;i.arraySet(c,p,f,S,u),d-=S,f+=S,m-=S,u+=S,r.length-=S;break}r.mode=12;break;case 17:for(;g<14;){if(0===d)break t;d--,y+=p[f++]<<g,g+=8}if(r.nlen=257+(31&y),y>>>=5,g-=5,r.ndist=1+(31&y),y>>>=5,g-=5,r.ncode=4+(15&y),y>>>=4,g-=4,286<r.nlen||30<r.ndist){t.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;g<3;){if(0===d)break t;d--,y+=p[f++]<<g,g+=8}r.lens[L[r.have++]]=7&y,y>>>=3,g-=3}for(;r.have<19;)r.lens[L[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,F={bits:r.lenbits},M=o(0,r.lens,0,19,r.lencode,0,r.work,F),r.lenbits=F.bits,M){t.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;k=(R=r.lencode[y&(1<<r.lenbits)-1])>>>16&255,A=65535&R,!((E=R>>>24)<=g);){if(0===d)break t;d--,y+=p[f++]<<g,g+=8}if(A<16)y>>>=E,g-=E,r.lens[r.have++]=A;else{if(16===A){for(O=E+2;g<O;){if(0===d)break t;d--,y+=p[f++]<<g,g+=8}if(y>>>=E,g-=E,0===r.have){t.msg="invalid bit length repeat",r.mode=30;break}D=r.lens[r.have-1],S=3+(3&y),y>>>=2,g-=2}else if(17===A){for(O=E+3;g<O;){if(0===d)break t;d--,y+=p[f++]<<g,g+=8}g-=E,D=0,S=3+(7&(y>>>=E)),y>>>=3,g-=3}else{for(O=E+7;g<O;){if(0===d)break t;d--,y+=p[f++]<<g,g+=8}g-=E,D=0,S=11+(127&(y>>>=E)),y>>>=7,g-=7}if(r.have+S>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=30;break}for(;S--;)r.lens[r.have++]=D}}if(30===r.mode)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,F={bits:r.lenbits},M=o(1,r.lens,0,r.nlen,r.lencode,0,r.work,F),r.lenbits=F.bits,M){t.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,F={bits:r.distbits},M=o(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,F),r.distbits=F.bits,M){t.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(6<=d&&258<=m){t.next_out=u,t.avail_out=m,t.next_in=f,t.avail_in=d,r.hold=y,r.bits=g,a(t,P),u=t.next_out,c=t.output,m=t.avail_out,f=t.next_in,p=t.input,d=t.avail_in,y=r.hold,g=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;k=(R=r.lencode[y&(1<<r.lenbits)-1])>>>16&255,A=65535&R,!((E=R>>>24)<=g);){if(0===d)break t;d--,y+=p[f++]<<g,g+=8}if(k&&0==(240&k)){for(T=E,C=k,I=A;k=(R=r.lencode[I+((y&(1<<T+C)-1)>>T)])>>>16&255,A=65535&R,!(T+(E=R>>>24)<=g);){if(0===d)break t;d--,y+=p[f++]<<g,g+=8}y>>>=T,g-=T,r.back+=T}if(y>>>=E,g-=E,r.back+=E,r.length=A,0===k){r.mode=26;break}if(32&k){r.back=-1,r.mode=12;break}if(64&k){t.msg="invalid literal/length code",r.mode=30;break}r.extra=15&k,r.mode=22;case 22:if(r.extra){for(O=r.extra;g<O;){if(0===d)break t;d--,y+=p[f++]<<g,g+=8}r.length+=y&(1<<r.extra)-1,y>>>=r.extra,g-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;k=(R=r.distcode[y&(1<<r.distbits)-1])>>>16&255,A=65535&R,!((E=R>>>24)<=g);){if(0===d)break t;d--,y+=p[f++]<<g,g+=8}if(0==(240&k)){for(T=E,C=k,I=A;k=(R=r.distcode[I+((y&(1<<T+C)-1)>>T)])>>>16&255,A=65535&R,!(T+(E=R>>>24)<=g);){if(0===d)break t;d--,y+=p[f++]<<g,g+=8}y>>>=T,g-=T,r.back+=T}if(y>>>=E,g-=E,r.back+=E,64&k){t.msg="invalid distance code",r.mode=30;break}r.offset=A,r.extra=15&k,r.mode=24;case 24:if(r.extra){for(O=r.extra;g<O;){if(0===d)break t;d--,y+=p[f++]<<g,g+=8}r.offset+=y&(1<<r.extra)-1,y>>>=r.extra,g-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===m)break t;if(S=P-m,r.offset>S){if((S=r.offset-S)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=30;break}w=S>r.wnext?(S-=r.wnext,r.wsize-S):r.wnext-S,S>r.length&&(S=r.length),x=r.window}else x=c,w=u-r.offset,S=r.length;for(m<S&&(S=m),m-=S,r.length-=S;c[u++]=x[w++],--S;);0===r.length&&(r.mode=21);break;case 26:if(0===m)break t;c[u++]=r.length,m--,r.mode=21;break;case 27:if(r.wrap){for(;g<32;){if(0===d)break t;d--,y|=p[f++]<<g,g+=8}if(P-=m,t.total_out+=P,r.total+=P,P&&(t.adler=r.check=r.flags?s(r.check,c,P,u-P):n(r.check,c,P,u-P)),P=m,(r.flags?y:l(y))!==r.check){t.msg="incorrect data check",r.mode=30;break}g=y=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;g<32;){if(0===d)break t;d--,y+=p[f++]<<g,g+=8}if(y!==(4294967295&r.total)){t.msg="incorrect length check",r.mode=30;break}g=y=0}r.mode=29;case 29:M=1;break t;case 30:M=-3;break t;case 31:return-4;case 32:default:return h}return t.next_out=u,t.avail_out=m,t.next_in=f,t.avail_in=d,r.hold=y,r.bits=g,(r.wsize||P!==t.avail_out&&r.mode<30&&(r.mode<27||4!==e))&&_(t,t.output,t.next_out,P-t.avail_out)?(r.mode=31,-4):(b-=t.avail_in,P-=t.avail_out,t.total_in+=b,t.total_out+=P,r.total+=P,r.wrap&&P&&(t.adler=r.check=r.flags?s(r.check,c,P,t.next_out-P):n(r.check,c,P,t.next_out-P)),t.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0==b&&0===P||4===e)&&0===M&&(M=-5),M)},r.inflateEnd=function(t){if(!t||!t.state)return h;var e=t.state;return e.window&&(e.window=null),t.state=null,0},r.inflateGetHeader=function(t,e){var r;return t&&t.state?0==(2&(r=t.state).wrap)?h:((r.head=e).done=!1,0):h},r.inflateSetDictionary=function(t,e){var r,i=e.length;return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?h:11===r.mode&&n(1,e,i,0)!==r.check?-3:_(t,e,i,i)?(r.mode=31,-4):(r.havedict=1,0):h},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,e,r){var i=t("../utils/common"),n=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],s=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],o=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(t,e,r,h,l,p,c,f){var u,d,m,y,g,v,_,b,P,S=f.bits,w=0,x=0,E=0,k=0,A=0,T=0,C=0,I=0,D=0,M=0,F=null,O=0,R=new i.Buf16(16),z=new i.Buf16(16),L=null,B=0;for(w=0;w<=15;w++)R[w]=0;for(x=0;x<h;x++)R[e[r+x]]++;for(A=S,k=15;1<=k&&0===R[k];k--);if(k<A&&(A=k),0===k)return l[p++]=20971520,l[p++]=20971520,f.bits=1,0;for(E=1;E<k&&0===R[E];E++);for(A<E&&(A=E),w=I=1;w<=15;w++)if(I<<=1,(I-=R[w])<0)return-1;if(0<I&&(0===t||1!==k))return-1;for(z[1]=0,w=1;w<15;w++)z[w+1]=z[w]+R[w];for(x=0;x<h;x++)0!==e[r+x]&&(c[z[e[r+x]]++]=x);if(v=0===t?(F=L=c,19):1===t?(F=n,O-=257,L=s,B-=257,256):(F=a,L=o,-1),w=E,g=p,C=x=M=0,m=-1,y=(D=1<<(T=A))-1,1===t&&852<D||2===t&&592<D)return 1;for(;;){for(_=w-C,P=c[x]<v?(b=0,c[x]):c[x]>v?(b=L[B+c[x]],F[O+c[x]]):(b=96,0),u=1<<w-C,E=d=1<<T;l[g+(M>>C)+(d-=u)]=_<<24|b<<16|P|0,0!==d;);for(u=1<<w-1;M&u;)u>>=1;if(0!==u?(M&=u-1,M+=u):M=0,x++,0==--R[w]){if(w===k)break;w=e[r+c[x]]}if(A<w&&(M&y)!==m){for(0===C&&(C=A),g+=E,I=1<<(T=w-C);T+C<k&&!((I-=R[T+C])<=0);)T++,I<<=1;if(D+=1<<T,1===t&&852<D||2===t&&592<D)return 1;l[m=M&y]=A<<24|T<<16|g-p|0}}return 0!==M&&(l[g+M]=w-C<<24|64<<16|0),f.bits=A,0}},{"../utils/common":41}],51:[function(t,e,r){e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(t,e,r){var i=t("../utils/common");function n(t){for(var e=t.length;0<=--e;)t[e]=0}var s=15,a=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],o=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],h=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],l=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],p=new Array(576);n(p);var c=new Array(60);n(c);var f=new Array(512);n(f);var u=new Array(256);n(u);var d=new Array(29);n(d);var m,y,g,v=new Array(30);function _(t,e,r,i,n){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=i,this.max_length=n,this.has_stree=t&&t.length}function b(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function P(t){return t<256?f[t]:f[256+(t>>>7)]}function S(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function w(t,e,r){t.bi_valid>16-r?(t.bi_buf|=e<<t.bi_valid&65535,S(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=r-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)}function x(t,e,r){w(t,r[2*e],r[2*e+1])}function E(t,e){for(var r=0;r|=1&t,t>>>=1,r<<=1,0<--e;);return r>>>1}function k(t,e,r){var i,n,a=new Array(16),o=0;for(i=1;i<=s;i++)a[i]=o=o+r[i-1]<<1;for(n=0;n<=e;n++){var h=t[2*n+1];0!==h&&(t[2*n]=E(a[h]++,h))}}function A(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function T(t){8<t.bi_valid?S(t,t.bi_buf):0<t.bi_valid&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function C(t,e,r,i){var n=2*e,s=2*r;return t[n]<t[s]||t[n]===t[s]&&i[e]<=i[r]}function I(t,e,r){for(var i=t.heap[r],n=r<<1;n<=t.heap_len&&(n<t.heap_len&&C(e,t.heap[n+1],t.heap[n],t.depth)&&n++,!C(e,i,t.heap[n],t.depth));)t.heap[r]=t.heap[n],r=n,n<<=1;t.heap[r]=i}function D(t,e,r){var i,n,s,h,l=0;if(0!==t.last_lit)for(;i=t.pending_buf[t.d_buf+2*l]<<8|t.pending_buf[t.d_buf+2*l+1],n=t.pending_buf[t.l_buf+l],l++,0===i?x(t,n,e):(x(t,(s=u[n])+256+1,e),0!==(h=a[s])&&w(t,n-=d[s],h),x(t,s=P(--i),r),0!==(h=o[s])&&w(t,i-=v[s],h)),l<t.last_lit;);x(t,256,e)}function M(t,e){var r,i,n,a=e.dyn_tree,o=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.elems,p=-1;for(t.heap_len=0,t.heap_max=573,r=0;r<l;r++)0!==a[2*r]?(t.heap[++t.heap_len]=p=r,t.depth[r]=0):a[2*r+1]=0;for(;t.heap_len<2;)a[2*(n=t.heap[++t.heap_len]=p<2?++p:0)]=1,t.depth[n]=0,t.opt_len--,h&&(t.static_len-=o[2*n+1]);for(e.max_code=p,r=t.heap_len>>1;1<=r;r--)I(t,a,r);for(n=l;r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],I(t,a,1),i=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=i,a[2*n]=a[2*r]+a[2*i],t.depth[n]=(t.depth[r]>=t.depth[i]?t.depth[r]:t.depth[i])+1,a[2*r+1]=a[2*i+1]=n,t.heap[1]=n++,I(t,a,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,i,n,a,o,h,l=e.dyn_tree,p=e.max_code,c=e.stat_desc.static_tree,f=e.stat_desc.has_stree,u=e.stat_desc.extra_bits,d=e.stat_desc.extra_base,m=e.stat_desc.max_length,y=0;for(a=0;a<=s;a++)t.bl_count[a]=0;for(l[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<573;r++)m<(a=l[2*l[2*(i=t.heap[r])+1]+1]+1)&&(a=m,y++),l[2*i+1]=a,p<i||(t.bl_count[a]++,o=0,d<=i&&(o=u[i-d]),h=l[2*i],t.opt_len+=h*(a+o),f&&(t.static_len+=h*(c[2*i+1]+o)));if(0!==y){do{for(a=m-1;0===t.bl_count[a];)a--;t.bl_count[a]--,t.bl_count[a+1]+=2,t.bl_count[m]--,y-=2}while(0<y);for(a=m;0!==a;a--)for(i=t.bl_count[a];0!==i;)p<(n=t.heap[--r])||(l[2*n+1]!==a&&(t.opt_len+=(a-l[2*n+1])*l[2*n],l[2*n+1]=a),i--)}}(t,e),k(a,p,t.bl_count)}function F(t,e,r){var i,n,s=-1,a=e[1],o=0,h=7,l=4;for(0===a&&(h=138,l=3),e[2*(r+1)+1]=65535,i=0;i<=r;i++)n=a,a=e[2*(i+1)+1],++o<h&&n===a||(o<l?t.bl_tree[2*n]+=o:0!==n?(n!==s&&t.bl_tree[2*n]++,t.bl_tree[32]++):o<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=n,l=(o=0)===a?(h=138,3):n===a?(h=6,3):(h=7,4))}function O(t,e,r){var i,n,s=-1,a=e[1],o=0,h=7,l=4;for(0===a&&(h=138,l=3),i=0;i<=r;i++)if(n=a,a=e[2*(i+1)+1],!(++o<h&&n===a)){if(o<l)for(;x(t,n,t.bl_tree),0!=--o;);else 0!==n?(n!==s&&(x(t,n,t.bl_tree),o--),x(t,16,t.bl_tree),w(t,o-3,2)):o<=10?(x(t,17,t.bl_tree),w(t,o-3,3)):(x(t,18,t.bl_tree),w(t,o-11,7));s=n,l=(o=0)===a?(h=138,3):n===a?(h=6,3):(h=7,4)}}n(v);var R=!1;function z(t,e,r,n){var s,a,o;w(t,0+(n?1:0),3),a=e,o=r,T(s=t),S(s,o),S(s,~o),i.arraySet(s.pending_buf,s.window,a,o,s.pending),s.pending+=o}r._tr_init=function(t){R||(function(){var t,e,r,i,n,l=new Array(16);for(i=r=0;i<28;i++)for(d[i]=r,t=0;t<1<<a[i];t++)u[r++]=i;for(u[r-1]=i,i=n=0;i<16;i++)for(v[i]=n,t=0;t<1<<o[i];t++)f[n++]=i;for(n>>=7;i<30;i++)for(v[i]=n<<7,t=0;t<1<<o[i]-7;t++)f[256+n++]=i;for(e=0;e<=s;e++)l[e]=0;for(t=0;t<=143;)p[2*t+1]=8,t++,l[8]++;for(;t<=255;)p[2*t+1]=9,t++,l[9]++;for(;t<=279;)p[2*t+1]=7,t++,l[7]++;for(;t<=287;)p[2*t+1]=8,t++,l[8]++;for(k(p,287,l),t=0;t<30;t++)c[2*t+1]=5,c[2*t]=E(t,5);m=new _(p,a,257,286,s),y=new _(c,o,0,30,s),g=new _(new Array(0),h,0,19,7)}(),R=!0),t.l_desc=new b(t.dyn_ltree,m),t.d_desc=new b(t.dyn_dtree,y),t.bl_desc=new b(t.bl_tree,g),t.bi_buf=0,t.bi_valid=0,A(t)},r._tr_stored_block=z,r._tr_flush_block=function(t,e,r,i){var n,s,a=0;0<t.level?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,r=4093624447;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),M(t,t.l_desc),M(t,t.d_desc),a=function(t){var e;for(F(t,t.dyn_ltree,t.l_desc.max_code),F(t,t.dyn_dtree,t.d_desc.max_code),M(t,t.bl_desc),e=18;3<=e&&0===t.bl_tree[2*l[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),n=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=n&&(n=s)):n=s=r+5,r+4<=n&&-1!==e?z(t,e,r,i):4===t.strategy||s===n?(w(t,2+(i?1:0),3),D(t,p,c)):(w(t,4+(i?1:0),3),function(t,e,r,i){var n;for(w(t,e-257,5),w(t,r-1,5),w(t,i-4,4),n=0;n<i;n++)w(t,t.bl_tree[2*l[n]+1],3);O(t,t.dyn_ltree,e-1),O(t,t.dyn_dtree,r-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),D(t,t.dyn_ltree,t.dyn_dtree)),A(t),i&&T(t)},r._tr_tally=function(t,e,r){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(u[r]+256+1)]++,t.dyn_dtree[2*P(e)]++),t.last_lit===t.lit_bufsize-1},r._tr_align=function(t){var e;w(t,2,3),x(t,256,p),16===(e=t).bi_valid?(S(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}},{"../utils/common":41}],53:[function(t,e,r){e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,e,r){e.exports="function"==typeof setImmediate?setImmediate:function(){var t=[].slice.apply(arguments);t.splice(1,0,0),setTimeout.apply(null,t)}},{}]},{},[10])(10)}))}).call(this,void 0!==i?i:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)}))}).call(this,void 0!==i?i:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)}))}).call(this,void 0!==i?i:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)}))}).call(this,void 0!==i?i:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)}))}).call(this,void 0!==commonjsGlobal?commonjsGlobal:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)}))}));const DOTLOTTIE_PLAYER_VERSION="1.3.1",LOTTIE_WEB_VERSION="^5.10.0";var _templateObject$1,styles=i$3(_templateObject$1||(_templateObject$1=_taggedTemplateLiteral(["\n  * {\n    box-sizing: border-box;\n  }\n\n  :host {\n    --lottie-player-toolbar-height: 35px;\n    --lottie-player-toolbar-background-color: transparent;\n    --lottie-player-toolbar-icon-color: #999;\n    --lottie-player-toolbar-icon-hover-color: #222;\n    --lottie-player-toolbar-icon-active-color: #555;\n    --lottie-player-seeker-track-color: #ccc;\n    --lottie-player-seeker-thumb-color: rgba(0, 107, 120, 0.8);\n    --lottie-player-seeker-display: block;\n\n    display: block;\n    width: 100%;\n    height: 100%;\n  }\n\n  .main {\n    display: flex;\n    flex-direction: column;\n    height: 100%;\n    width: 100%;\n  }\n\n  .animation {\n    width: 100%;\n    height: 100%;\n    display: flex;\n  }\n  .animation.controls {\n    height: calc(100% - 35px);\n  }\n\n  .toolbar {\n    display: flex;\n    align-items: center;\n    justify-items: center;\n    background-color: var(--lottie-player-toolbar-background-color);\n    margin: 0 5px;\n    height: 35px;\n  }\n\n  .toolbar button {\n    cursor: pointer;\n    fill: var(--lottie-player-toolbar-icon-color);\n    display: flex;\n    background: none;\n    border: 0;\n    padding: 0;\n    outline: none;\n    height: 100%;\n  }\n\n  .toolbar button:hover {\n    fill: var(--lottie-player-toolbar-icon-hover-color);\n  }\n\n  .toolbar button.active {\n    fill: var(--lottie-player-toolbar-icon-active-color);\n  }\n\n  .toolbar button.active:hover {\n    fill: var(--lottie-player-toolbar-icon-hover-color);\n  }\n\n  .toolbar button:focus {\n    outline: 1px dotted var(--lottie-player-toolbar-icon-active-color);\n  }\n\n  .toolbar button svg {\n  }\n\n  .toolbar button.disabled svg {\n    display: none;\n  }\n\n  .seeker {\n    -webkit-appearance: none;\n    width: 95%;\n    outline: none;\n    background-color: var(--lottie-player-toolbar-background-color);\n    display: var(--lottie-player-seeker-display);\n  }\n\n  .seeker::-webkit-slider-runnable-track {\n    width: 100%;\n    height: 5px;\n    cursor: pointer;\n    background: var(--lottie-player-seeker-track-color);\n    border-radius: 3px;\n  }\n  .seeker::-webkit-slider-thumb {\n    height: 15px;\n    width: 15px;\n    border-radius: 50%;\n    background: var(--lottie-player-seeker-thumb-color);\n    cursor: pointer;\n    -webkit-appearance: none;\n    margin-top: -5px;\n  }\n  .seeker:focus::-webkit-slider-runnable-track {\n    background: #999;\n  }\n  .seeker::-moz-range-track {\n    width: 100%;\n    height: 5px;\n    cursor: pointer;\n    background: var(--lottie-player-seeker-track-color);\n    border-radius: 3px;\n  }\n  .seeker::-moz-range-thumb {\n    height: 15px;\n    width: 15px;\n    border-radius: 50%;\n    background: var(--lottie-player-seeker-thumb-color);\n    cursor: pointer;\n  }\n  .seeker::-ms-track {\n    width: 100%;\n    height: 5px;\n    cursor: pointer;\n    background: transparent;\n    border-color: transparent;\n    color: transparent;\n  }\n  .seeker::-ms-fill-lower {\n    background: var(--lottie-player-seeker-track-color);\n    border-radius: 3px;\n  }\n  .seeker::-ms-fill-upper {\n    background: var(--lottie-player-seeker-track-color);\n    border-radius: 3px;\n  }\n  .seeker::-ms-thumb {\n    border: 0;\n    height: 15px;\n    width: 15px;\n    border-radius: 50%;\n    background: var(--lottie-player-seeker-thumb-color);\n    cursor: pointer;\n  }\n  .seeker:focus::-ms-fill-lower {\n    background: var(--lottie-player-seeker-track-color);\n  }\n  .seeker:focus::-ms-fill-upper {\n    background: var(--lottie-player-seeker-track-color);\n  }\n\n  .error {\n    display: flex;\n    margin: auto;\n    justify-content: center;\n    height: 100%;\n    align-items: center;\n  }\n"]))),_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,PlayerState,PlayMode,PlayerEvents;function fetchPath(t){var e;const r=null===(e=t.split(".").pop())||void 0===e?void 0:e.toLowerCase();let i=!1;return"json"===r&&(i=!0),new Promise((e,r)=>{const n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType=i?"json":"arraybuffer",n.send(),n.onreadystatechange=function(){4==n.readyState&&200==n.status&&(i&&e(n.response),jszip.loadAsync(n.response).then(t=>{t.file("manifest.json").async("string").then(r=>{const i=JSON.parse(r);if(!("animations"in i))throw new Error("Manifest not found");if(0===i.animations.length)throw new Error("No animations listed in the manifest");const n=i.animations[0];t.file("animations/".concat(n.id,".json")).async("string").then(r=>{const i=JSON.parse(r);"assets"in i&&Promise.all(i.assets.map(e=>{if(e.p&&null!=t.file("images/".concat(e.p)))return new Promise(r=>{const i=e.p.split(".").pop();t.file("images/".concat(e.p)).async("base64").then(t=>{e.p="svg"===i||"svg+xml"===i?"data:image/svg+xml;base64,"+t:"data:;base64,"+t,e.e=1,r()})})})).then(()=>{e(i)})})})}).catch(t=>{r(t)}))}})}exports.PlayerState=void 0,PlayerState=exports.PlayerState||(exports.PlayerState={}),PlayerState.Loading="loading",PlayerState.Playing="playing",PlayerState.Paused="paused",PlayerState.Stopped="stopped",PlayerState.Frozen="frozen",PlayerState.Error="error",exports.PlayMode=void 0,PlayMode=exports.PlayMode||(exports.PlayMode={}),PlayMode.Normal="normal",PlayMode.Bounce="bounce",exports.PlayerEvents=void 0,PlayerEvents=exports.PlayerEvents||(exports.PlayerEvents={}),PlayerEvents.Load="load",PlayerEvents.Error="error",PlayerEvents.Ready="ready",PlayerEvents.Play="play",PlayerEvents.Pause="pause",PlayerEvents.Stop="stop",PlayerEvents.Freeze="freeze",PlayerEvents.Loop="loop",PlayerEvents.Complete="complete",PlayerEvents.Frame="frame",exports.DotLottiePlayer=class extends s{constructor(){super(...arguments),this.mode=exports.PlayMode.Normal,this.autoplay=!1,this.background="transparent",this.controls=!1,this.direction=1,this.hover=!1,this.loop=!1,this.renderer="svg",this.speed=1,this.currentState=exports.PlayerState.Loading,this.intermission=1,this._counter=0}_onVisibilityChange(){document.hidden&&this.currentState===exports.PlayerState.Playing?this.freeze():this.currentState===exports.PlayerState.Frozen&&this.play()}_handleSeekChange(t){if(!this._lottie||isNaN(t.target.value))return;const e=t.target.value/100*this._lottie.totalFrames;this.seek(e)}isLottie(t){return["v","ip","op","layers","fr","w","h"].every(e=>Object.prototype.hasOwnProperty.call(t,e))}parseSrc(t){if("object"==typeof t)return t;try{return JSON.parse(t)}catch(e){return new URL(t,window.location.href).toString()}}async load(t,e){if(!this.shadowRoot)return;const r={container:this.container,loop:!1,autoplay:!1,renderer:this.renderer,rendererSettings:e||{scaleMode:"noScale",clearCanvas:!1,progressiveLoad:!0,hideOnTransparent:!0}};try{let e=this.parseSrc(t);if("string"==typeof e&&(e=await fetchPath(e),void 0===e))throw new Error("[dotLottie] No animation to load!");if(!this.isLottie(e))throw new Error("[dotLottie] Load method failing. Object is not a valid Lottie.");this._lottie&&this._lottie.destroy(),this._lottie=lottie_svg.loadAnimation(Object.assign(Object.assign({},r),{animationData:e}))}catch(t){return this.currentState=exports.PlayerState.Error,void this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Error))}this._lottie&&(this._lottie.addEventListener("enterFrame",()=>{this.seeker=this._lottie.currentFrame/this._lottie.totalFrames*100,this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Frame,{detail:{frame:this._lottie.currentFrame,seeker:this.seeker}}))}),this._lottie.addEventListener("complete",()=>{this.currentState===exports.PlayerState.Playing?!this.loop||this.count&&this._counter>=this.count?this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Complete)):this.mode===exports.PlayMode.Bounce?(this.count&&(this._counter+=.5),setTimeout(()=>{this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Loop)),this.currentState===exports.PlayerState.Playing&&(this._lottie.setDirection(-1*this._lottie.playDirection),this._lottie.play())},this.intermission)):(this.count&&(this._counter+=1),window.setTimeout(()=>{this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Loop)),this.currentState===exports.PlayerState.Playing&&(this._lottie.stop(),this._lottie.play())},this.intermission)):this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Complete))}),this._lottie.addEventListener("DOMLoaded",()=>{this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Ready))}),this._lottie.addEventListener("data_ready",()=>{this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Load))}),this._lottie.addEventListener("data_failed",()=>{this.currentState=exports.PlayerState.Error,this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Error))}),this.container.addEventListener("mouseenter",()=>{this.hover&&this.currentState!==exports.PlayerState.Playing&&this.play()}),this.container.addEventListener("mouseleave",()=>{this.hover&&this.currentState===exports.PlayerState.Playing&&this.stop()}),this.setSpeed(this.speed),this.setDirection(this.direction),this.autoplay&&this.play())}getLottie(){return this._lottie}getVersions(){return{lottieWebVersion:LOTTIE_WEB_VERSION,dotLottiePlayerVersion:DOTLOTTIE_PLAYER_VERSION}}play(){this._lottie&&(this._lottie.play(),this.currentState=exports.PlayerState.Playing,this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Play)))}pause(){this._lottie&&(this._lottie.pause(),this.currentState=exports.PlayerState.Paused,this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Pause)))}stop(){this._lottie&&(this._counter=0,this._lottie.stop(),this.currentState=exports.PlayerState.Stopped,this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Stop)))}seek(t){if(!this._lottie)return;"number"==typeof t&&(t=Math.round(t));const e=t.toString().match(/^([0-9]+)(%?)$/);if(!e)return;const r="%"===e[2]?this._lottie.totalFrames*Number(e[1])/100:e[1];this.seeker=r,this.currentState===exports.PlayerState.Playing?this._lottie.goToAndPlay(r,!0):(this._lottie.goToAndStop(r,!0),this._lottie.pause())}snapshot(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this.shadowRoot)return;const e=this.shadowRoot.querySelector(".animation svg"),r=(new XMLSerializer).serializeToString(e);if(t){const t=document.createElement("a");t.href="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(r),t.download="download_"+this.seeker+".svg",document.body.appendChild(t),t.click(),document.body.removeChild(t)}return r}freeze(){this._lottie&&(this._lottie.pause(),this.currentState=exports.PlayerState.Frozen,this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Freeze)))}setSpeed(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this._lottie&&this._lottie.setSpeed(t)}setDirection(t){this._lottie&&this._lottie.setDirection(t)}setLooping(t){this._lottie&&(this.loop=t,this._lottie.loop=t)}togglePlay(){return this.currentState===exports.PlayerState.Playing?this.pause():this.play()}toggleLooping(){this.setLooping(!this.loop)}static get styles(){return styles}async firstUpdated(){"IntersectionObserver"in window&&(this._io=new IntersectionObserver(t=>{t[0].isIntersecting?this.currentState===exports.PlayerState.Frozen&&this.play():this.currentState===exports.PlayerState.Playing&&this.freeze()}),this._io.observe(this.container)),void 0!==document.hidden&&document.addEventListener("visibilitychange",()=>this._onVisibilityChange()),this.src&&await this.load(this.src)}disconnectedCallback(){this._io&&(this._io.disconnect(),this._io=void 0),this._lottie&&this._lottie.destroy(),document.removeEventListener("visibilitychange",()=>this._onVisibilityChange())}renderControls(){const t=this.currentState===exports.PlayerState.Playing,e=this.currentState===exports.PlayerState.Paused,r=this.currentState===exports.PlayerState.Stopped;return y(_templateObject||(_templateObject=_taggedTemplateLiteral(['\n      <div id="lottie-controls" aria-label="lottie-animation-controls" class="toolbar">\n        <button\n          id="lottie-play-button"\n          @click=',"\n          class=",'\n          style="align-items:center;"\n          tabindex="0"\n          aria-label="play-pause"\n        >\n          ','\n        </button>\n        <button\n          id="lottie-stop-button"\n          @click=',"\n          class=",'\n          style="align-items:center;"\n          tabindex="0"\n          aria-label="stop"\n        >\n          <svg width="24" height="24" aria-hidden="true" focusable="false">\n            <path d="M6 6h12v12H6V6z" />\n          </svg>\n        </button>\n        <input\n          id="lottie-seeker-input"\n          class="seeker"\n          type="range"\n          min="0"\n          step="1"\n          max="100"\n          .value=',"\n          @input=","\n          @mousedown=","\n          @mouseup=",'\n          aria-valuemin="1"\n          aria-valuemax="100"\n          role="slider"\n          aria-valuenow=','\n          tabindex="0"\n          aria-label="lottie-seek-input"\n        />\n        <button\n          id="lottie-loop-toggle"\n          @click=',"\n          class=",'\n          style="align-items:center;"\n          tabindex="0"\n          aria-label="loop-toggle"\n        >\n          <svg width="24" height="24" aria-hidden="true" focusable="false">\n            <path\n              d="M17.016 17.016v-4.031h1.969v6h-12v3l-3.984-3.984 3.984-3.984v3h10.031zM6.984 6.984v4.031H5.015v-6h12v-3l3.984 3.984-3.984 3.984v-3H6.984z"\n            />\n          </svg>\n        </button>\n      </div>\n    '])),this.togglePlay,t||e?"active":"",y(t?_templateObject2||(_templateObject2=_taggedTemplateLiteral(['\n                <svg width="24" height="24" aria-hidden="true" focusable="false">\n                  <path d="M14.016 5.016H18v13.969h-3.984V5.016zM6 18.984V5.015h3.984v13.969H6z" />\n                </svg>\n              '])):_templateObject3||(_templateObject3=_taggedTemplateLiteral(['\n                <svg width="24" height="24" aria-hidden="true" focusable="false">\n                  <path d="M8.016 5.016L18.985 12 8.016 18.984V5.015z" />\n                </svg>\n              ']))),this.stop,r?"active":"",this.seeker,this._handleSeekChange,()=>{this._prevState=this.currentState,this.freeze()},()=>{this._prevState===exports.PlayerState.Playing&&this.play(),this.seek(this._lottie.currentFrame)},this.seeker,this.toggleLooping,this.loop?"active":"")}render(){const t=this.controls?"main controls":"main",e=this.controls?"animation controls":"animation";return y(_templateObject4||(_templateObject4=_taggedTemplateLiteral(['\n      <div id="animation-container" class=',' lang="en" role="img">\n        <div id="animation" class=',' style="background:',';">\n          ',"\n        </div>\n        ","\n      </div>\n    "])),t,e,this.background,this.currentState===exports.PlayerState.Error?y(_templateObject5||(_templateObject5=_taggedTemplateLiteral(['\n                <div class="error">⚠️</div>\n              ']))):void 0,this.controls?this.renderControls():void 0)}},__decorate([i(".animation")],exports.DotLottiePlayer.prototype,"container",void 0),__decorate([e$5()],exports.DotLottiePlayer.prototype,"mode",void 0),__decorate([e$5({type:Boolean})],exports.DotLottiePlayer.prototype,"autoplay",void 0),__decorate([e$5({type:String,reflect:!0})],exports.DotLottiePlayer.prototype,"background",void 0),__decorate([e$5({type:Boolean})],exports.DotLottiePlayer.prototype,"controls",void 0),__decorate([e$5({type:Number})],exports.DotLottiePlayer.prototype,"count",void 0),__decorate([e$5({type:Number})],exports.DotLottiePlayer.prototype,"direction",void 0),__decorate([e$5({type:Boolean})],exports.DotLottiePlayer.prototype,"hover",void 0),__decorate([e$5({type:Boolean,reflect:!0})],exports.DotLottiePlayer.prototype,"loop",void 0),__decorate([e$5({type:String})],exports.DotLottiePlayer.prototype,"renderer",void 0),__decorate([e$5({type:Number})],exports.DotLottiePlayer.prototype,"speed",void 0),__decorate([e$5({type:String})],exports.DotLottiePlayer.prototype,"src",void 0),__decorate([e$5({type:String})],exports.DotLottiePlayer.prototype,"currentState",void 0),__decorate([e$5()],exports.DotLottiePlayer.prototype,"seeker",void 0),__decorate([e$5()],exports.DotLottiePlayer.prototype,"intermission",void 0),exports.DotLottiePlayer=__decorate([e$6("dotlottie-player")],exports.DotLottiePlayer),exports.fetchPath=fetchPath,Object.defineProperty(exports,"__esModule",{value:!0})}));
/*!
Waypoints - 4.0.1
Copyright © 2011-2016 Caleb Troughton
Licensed under the MIT license.
https://github.com/imakewebthings/waypoints/blob/master/licenses.txt
*/
!function(){"use strict";var t=0,e={};function i(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-"+t,this.options=i.Adapter.extend({},i.defaults,o),this.element=this.options.element,this.adapter=new i.Adapter(this.element),this.callback=o.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=i.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=i.Context.findOrCreateByElement(this.options.context),i.offsetAliases[this.options.offset]&&(this.options.offset=i.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),e[this.key]=this,t+=1}i.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},i.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},i.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete e[this.key]},i.prototype.disable=function(){return this.enabled=!1,this},i.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},i.prototype.next=function(){return this.group.next(this)},i.prototype.previous=function(){return this.group.previous(this)},i.invokeAll=function(t){var i=[];for(var o in e)i.push(e[o]);for(var n=0,r=i.length;n<r;n++)i[n][t]()},i.destroyAll=function(){i.invokeAll("destroy")},i.disableAll=function(){i.invokeAll("disable")},i.enableAll=function(){for(var t in i.Context.refreshAll(),e)e[t].enabled=!0;return this},i.refreshAll=function(){i.Context.refreshAll()},i.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},i.viewportWidth=function(){return document.documentElement.clientWidth},i.adapters=[],i.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},i.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=i}(),function(){"use strict";function t(t){window.setTimeout(t,1e3/60)}var e=0,i={},o=window.Waypoint,n=window.onload;function r(t){this.element=t,this.Adapter=o.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+e,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,i[t.waypointContextKey]=this,e+=1,o.windowContext||(o.windowContext=!0,o.windowContext=new r(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}r.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},r.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])},r.prototype.createThrottledResizeHandler=function(){var t=this;function e(){t.handleResize(),t.didResize=!1}this.adapter.on("resize.waypoints",(function(){t.didResize||(t.didResize=!0,o.requestAnimationFrame(e))}))},r.prototype.createThrottledScrollHandler=function(){var t=this;function e(){t.handleScroll(),t.didScroll=!1}this.adapter.on("scroll.waypoints",(function(){t.didScroll&&!o.isTouch||(t.didScroll=!0,o.requestAnimationFrame(e))}))},r.prototype.handleResize=function(){o.Context.refreshAll()},r.prototype.handleScroll=function(){var t={},e={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 i in e){var o=e[i],n=o.newScroll>o.oldScroll?o.forward:o.backward;for(var r in this.waypoints[i]){var s=this.waypoints[i][r];if(null!==s.triggerPoint){var a=o.oldScroll<s.triggerPoint,l=o.newScroll>=s.triggerPoint;(a&&l||!a&&!l)&&(s.queueTrigger(n),t[s.group.id]=s.group)}}}for(var h in t)t[h].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},r.prototype.innerHeight=function(){return this.element==this.element.window?o.viewportHeight():this.adapter.innerHeight()},r.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},r.prototype.innerWidth=function(){return this.element==this.element.window?o.viewportWidth():this.adapter.innerWidth()},r.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var i in this.waypoints[e])t.push(this.waypoints[e][i]);for(var o=0,n=t.length;o<n;o++)t[o].destroy()},r.prototype.refresh=function(){var t,e=this.element==this.element.window,i=e?void 0:this.adapter.offset(),n={};for(var r in this.handleScroll(),t={horizontal:{contextOffset:e?0:i.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:e?0:i.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}}){var s=t[r];for(var a in this.waypoints[r]){var l,h,p,c,u=this.waypoints[r][a],d=u.options.offset,f=u.triggerPoint,w=0,y=null==f;u.element!==u.element.window&&(w=u.adapter.offset()[s.offsetProp]),"function"==typeof d?d=d.apply(u):"string"==typeof d&&(d=parseFloat(d),u.options.offset.indexOf("%")>-1&&(d=Math.ceil(s.contextDimension*d/100))),l=s.contextScroll-s.contextOffset,u.triggerPoint=Math.floor(w+l-d),h=f<s.oldScroll,p=u.triggerPoint>=s.oldScroll,c=!h&&!p,!y&&(h&&p)?(u.queueTrigger(s.backward),n[u.group.id]=u.group):(!y&&c||y&&s.oldScroll>=u.triggerPoint)&&(u.queueTrigger(s.forward),n[u.group.id]=u.group)}}return o.requestAnimationFrame((function(){for(var t in n)n[t].flushTriggers()})),this},r.findOrCreateByElement=function(t){return r.findByElement(t)||new r(t)},r.refreshAll=function(){for(var t in i)i[t].refresh()},r.findByElement=function(t){return i[t.waypointContextKey]},window.onload=function(){n&&n(),r.refreshAll()},o.requestAnimationFrame=function(e){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t).call(window,e)},o.Context=r}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}var i={vertical:{},horizontal:{}},o=window.Waypoint;function n(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),i[this.axis][this.name]=this}n.prototype.add=function(t){this.waypoints.push(t)},n.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},n.prototype.flushTriggers=function(){for(var i in this.triggerQueues){var o=this.triggerQueues[i],n="up"===i||"left"===i;o.sort(n?e:t);for(var r=0,s=o.length;r<s;r+=1){var a=o[r];(a.options.continuous||r===o.length-1)&&a.trigger([i])}}this.clearTriggerQueues()},n.prototype.next=function(e){this.waypoints.sort(t);var i=o.Adapter.inArray(e,this.waypoints);return i===this.waypoints.length-1?null:this.waypoints[i+1]},n.prototype.previous=function(e){this.waypoints.sort(t);var i=o.Adapter.inArray(e,this.waypoints);return i?this.waypoints[i-1]:null},n.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},n.prototype.remove=function(t){var e=o.Adapter.inArray(t,this.waypoints);e>-1&&this.waypoints.splice(e,1)},n.prototype.first=function(){return this.waypoints[0]},n.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},n.findOrCreate=function(t){return i[t.axis][t.name]||new n(t)},o.Group=n}(),function(){"use strict";var t=window.jQuery,e=window.Waypoint;function i(e){this.$element=t(e)}t.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],(function(t,e){i.prototype[e]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[e].apply(this.$element,t)}})),t.each(["extend","inArray","isEmptyObject"],(function(e,o){i[o]=t[o]})),e.adapters.push({name:"jquery",Adapter:i}),e.Adapter=i}(),function(){"use strict";var t=window.Waypoint;function e(e){return function(){var i=[],o=arguments[0];return"function"==typeof arguments[0]&&((o=e.extend({},arguments[1])).handler=arguments[0]),this.each((function(){var n=e.extend({},o,{element:this});"string"==typeof n.context&&(n.context=e(this).closest(n.context)[0]),i.push(new t(n))})),i}}window.jQuery&&(window.jQuery.fn.waypoint=e(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=e(window.Zepto))}();;if(!Array.isArray){Array.isArray=function(e){return Object.prototype.toString.call(e)==='[object Array]'}}(function(e){'use strict';const opt={'bubbles':!0,'cancelable':!0};e(window).on('av-height-change',function(e){const event=new CustomEvent('avia_height_change',opt);window.dispatchEvent(event)});e('body').on('av_resize_finished',function(e){const event=new CustomEvent('avia_resize_finished',opt);document.body.dispatchEvent(event)})})(jQuery);(function(e){'use strict';e(function(){e.avia_utilities=e.avia_utilities||{};o('html');s('html');c();i();new e.AviaTooltip({'class':'avia-search-tooltip',data:'avia-search-tooltip',event:'click',position:'bottom',scope:'body',attach:'element',within_screen:!0,close_keys:27});new e.AviaTooltip({'class':'avia-related-tooltip',data:'avia-related-tooltip',scope:'.related_posts, .av-share-box',attach:'element',delay:0});new e.AviaAjaxSearch({scope:'#header, .avia_search_element'});if(e.fn.avia_iso_sort){e('.grid-sort-container').avia_iso_sort()};a();e.avia_utilities.avia_ajax_call();e.avia_utilities.postSwipeSupport()});e.avia_utilities=e.avia_utilities||{};e.avia_utilities.postSwipeSupport=function(){if(!e.fn.avia_swipe_trigger){return};const body=document.getElementsByTagName('body'),methods={};methods.beforeTrigger=function(t,i){const loader=e.avia_utilities.loading();loader.show()};methods.afterTrigger=function(e,t){let body=document.getElementsByTagName('body');if(!body.length){return};let dir=t=='prev'?'swiped-ltr':'swiped-rtl';body[0].classList.add('av-post-swiped-overlay',dir)};if(!body.length||!body[0].classList.contains('avia-post-nav-swipe-enabled')){return};let single=document.querySelector('.single #main');if(single==null){return};let prev=document.querySelector('#wrap_all .avia-post-nav.avia-post-prev'),next=document.querySelector('#wrap_all .avia-post-nav.avia-post-next'),param={prev:prev,next:next,delay_trigger:!0,event:{prev:'native_click',next:'native_click'},beforeTrigger:methods.beforeTrigger,afterTrigger:methods.afterTrigger};e(single).avia_swipe_trigger(param)};e.avia_utilities.avia_ajax_call=function(t){if(typeof t=='undefined'){t='body'};e('a.avianolink').on('click',function(e){e.preventDefault()});e('a.aviablank').attr('target','_blank');if(e.fn.avia_activate_lightbox){e(t).avia_activate_lightbox()};if(e.fn.avia_scrollspy){if(t=='body'){e('body').avia_scrollspy({target:'.main_menu .menu li > a'})}
else{e('body').avia_scrollspy('refresh')}};if(e.fn.avia_smoothscroll){e('a[href*="#"]',t).avia_smoothscroll(t)};l(t);n(t);r(t);if(e.fn.avia_html5_activation&&e.fn.mediaelementplayer){e('.avia_video, .avia_audio',t).avia_html5_activation({ratio:'16:9'})}};e.avia_utilities.log=function(e,t,i){if(typeof console=='undefined'){return};if(typeof t=='undefined'){t='log'};t='AVIA-'+t.toUpperCase();console.log('['+t+'] '+e);if(typeof i!='undefined'){console.log(i)}};function i(){var n=e(window),i=e('html').is('.html_header_sidebar')?'#main':'#header',a=e(i),r=a.parents('div').eq(0),l=e(i+' .container').first(),t='',o=function(){var i='',o=Math.round(l.width()),s=Math.round(a.width()),n=Math.round(r.width());i+=' #header .three.units{width:'+(o*0.25)+'px;}';i+=' #header .six.units{width:'+(o*0.50)+'px;}';i+=' #header .nine.units{width:'+(o*0.75)+'px;}';i+=' #header .twelve.units{width:'+(o)+'px;}';i+=' .av-framed-box .av-layout-tab-inner .container{width:'+(n)+'px;}';i+=' .html_header_sidebar .av-layout-tab-inner .container{width:'+(s)+'px;}';i+=' .boxed .av-layout-tab-inner .container{width:'+(s)+'px;}';i+=' .av-framed-box#top .av-submenu-container{width:'+(n)+'px;}';try{t.text(i)}catch(d){t.remove();var c=e('head').first();t=e('<style type=\'text/css\' id=\'av-browser-width-calc\'>'+i+'</style>').appendTo(c)}};if(e('.avia_mega_div').length>0||e('.av-layout-tab-inner').length>0||e('.av-submenu-container').length>0){var s=e('head').first();t=e('<style type=\'text/css\' id=\'av-browser-width-calc\'></style>').appendTo(s);n.on('debouncedresize',o);o()}};function a(){var t=e('.sidebar_shadow#top #main .sidebar'),i=e('.sidebar_shadow .content');if(t.height()>=i.height()){t.addClass('av-enable-shadow')}
else{i.addClass('av-enable-shadow')}};function t(t,a){var i=this,n=i.process.bind(i),o=i.refresh.bind(i),r=e(t).is('body')?e(window):e(t),s;i.$body=e('body');i.$win=e(window);i.options=e.extend({},e.fn.avia_scrollspy.defaults,a);i.selector=(i.options.target||((s=e(t).attr('href'))&&s.replace(/.*(?=#[^\s]+$)/,''))||'');i.activation_true=!1;if(i.$body.find(i.selector+'[href*=\'#\']').length){i.$scrollElement=r.on('scroll.scroll-spy.data-api',n);i.$win.on('av-height-change',o);i.$body.on('av_resize_finished',o);i.activation_true=!0;i.checkFirst();setTimeout(function(){i.refresh();i.process()},100)}};t.prototype={constructor:t,checkFirst:function(){var e=window.location.href.split('#')[0],t=this.$body.find(this.selector+'[href=\''+e+'\']').attr('href',e+'#top')},refresh:function(){if(!this.activation_true)return;var t=this,i;this.offsets=e([]);this.targets=e([]);i=this.$body.find(this.selector).map(function(){var s=e(this),n=s.data('target')||s.attr('href'),i=this.hash,i=i.replace(/\//g,''),a=/^#\w/.test(i)&&e(i),o=t.$scrollElement.get(0),r=o!=null&&o===o.window;return(a&&a.length&&[[a.position().top+(!r&&t.$scrollElement.scrollTop()),n]])||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){t.offsets.push(this[0]);t.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,s=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,n=s-this.$scrollElement.height(),t=this.offsets,a=this.targets,o=this.activeTarget,e;if(i>=n){return o!=(e=a.last()[0])&&this.activate(e)};for(e=t.length;e--;){o!=a[e]&&i>=t[e]&&(!t[e+1]||i<=t[e+1])&&this.activate(a[e])}},activate:function(t){var i,a;this.activeTarget=t;e(this.selector).parent('.'+this.options.applyClass).removeClass(this.options.applyClass);a=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]';i=e(a).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')}};e.fn.avia_scrollspy=function(i){return this.each(function(){var o=e(this),a=o.data('scrollspy'),s=typeof i=='object'&&i;if(!a)o.data('scrollspy',(a=new t(this,s)));if(typeof i=='string')a[i]()})};e.fn.avia_scrollspy.Constructor=t;e.fn.avia_scrollspy.calc_offset=function(){var t=(parseInt(e('.html_header_sticky #main').data('scroll-offset'),10))||0,i=(e('.html_header_sticky:not(.html_top_nav_header) #header_main_alternate').outerHeight())||0,a=(e('.html_header_sticky.html_header_unstick_top_disabled #header_meta').outerHeight())||0,o=1,s=parseInt(e('html').css('margin-top'),10)||0,n=parseInt(e('.av-frame-top ').outerHeight(),10)||0;return t+i+a+o+s+n};e.fn.avia_scrollspy.defaults={offset:e.fn.avia_scrollspy.calc_offset(),applyClass:'current-menu-item'};function o(t){var i={},n=function(e){e=e.toLowerCase();var t=/(edge)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(chrome)[ \/]([\w.]+)/.exec(e)||/(iemobile)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf('trident')>=0&&/(rv)(?::| )([\w.]+)/.exec(e)||e.indexOf('compatible')<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[5]||t[3]||t[1]||'',version:t[2]||t[4]||'0',versionNumber:t[4]||t[2]||'0'}};var o=n(navigator.userAgent);if(o.browser){i.browser=o.browser;i[o.browser]=!0;i.version=o.version};if(i.chrome){i.webkit=!0}
else if(i.webkit){i.safari=!0};if(typeof(i)!=='undefined'){var a='',s=i.version?parseInt(i.version):'';if(i.msie||i.rv||i.iemobile){a+='avia-msie'}
else if(i.webkit){a+='avia-webkit'}
else if(i.mozilla){a+='avia-mozilla'};if(i.version)a+=' '+a+'-'+s+' ';if(i.browser)a+=' avia-'+i.browser+' avia-'+i.browser+'-'+s+' '};if(t){e(t).addClass(a)};return a};function s(t){var i=[];e.avia_utilities.isTouchDevice='ontouchstart'in window||window.DocumentTouch&&document instanceof window.DocumentTouch||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0;i.push(e.avia_utilities.isTouchDevice?'touch-device':'no-touch-device');e.avia_utilities.pointerDevices=[];if(typeof window.matchMedia!='function'){e.avia_utilities.pointerDevices.push('undefined');i.push('pointer-device-undefined')}
else{var a=!1;if(window.matchMedia('(any-pointer: fine)')){i.push('pointer-device-fine');e.avia_utilities.pointerDevices.push('fine');a=!0};if(window.matchMedia('(any-pointer: coarse)')){i.push('pointer-device-coarse');e.avia_utilities.pointerDevices.push('coarse');if(!a){i.push('pointer-device-coarse-only')}};if(!e.avia_utilities.pointerDevices.length){i.push('pointer-device-none');e.avia_utilities.pointerDevices.push('none')}};if('undefined'==typeof e.avia_utilities.isMobile){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}};e(t).addClass(i.join(' '))};e.fn.avia_html5_activation=function(t){var i={ratio:'16:9'};var t=e.extend(i,t);this.each(function(){var t=e(this),s='#'+t.attr('id'),o=t.attr('poster'),i=['playpause','progress','current','duration','tracks','volume'],a=t.closest('.avia-video');if(a.length>0&&a.hasClass('av-html5-fullscreen-btn')){i.push('fullscreen')};if(!e(this).prop('controls')){i=[]};t.mediaelementplayer({defaultVideoWidth:480,defaultVideoHeight:270,videoWidth:-1,videoHeight:-1,audioWidth:400,audioHeight:30,startVolume:0.8,loop:!1,enableAutosize:!1,features:i,alwaysShowControls:!1,iPadUseNativeControls:!1,iPhoneUseNativeControls:!1,AndroidUseNativeControls:!1,alwaysShowHours:!1,showTimecodeFrameCount:!1,framesPerSecond:25,enableKeyboard:!0,pauseOtherPlayers:!1,poster:o,success:function(i,a,o){e.AviaVideoAPI.players[t.attr('id').replace(/_html5/,'')]=o;setTimeout(function(){if(i.pluginType=='flash'){i.addEventListener('canplay',function(){t.trigger('av-mediajs-loaded')},!1)}
else{t.trigger('av-mediajs-loaded').addClass('av-mediajs-loaded')};i.addEventListener('ended',function(){t.trigger('av-mediajs-ended')},!1);var a=document.getElementById(e(i).attr('id')+'_html5');if(a&&a!==i){i.addEventListener('ended',function(){e(a).trigger('av-mediajs-ended')})}},10)},error:function(){},keyActions:[]})})};function n(t){if(e.avia_utilities.isMobile){return};if(e('body').hasClass('av-disable-avia-hover-effect')){return};var o='',a=e.avia_utilities.supports('transition'),i=[];if(t=='body'){i=e('#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{i=e('a img',t).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',t)};i.each(function(t){var o=e(this),r=o.find('img').first();if(r.hasClass('alignleft')){o.addClass('alignleft').css({float:'left',margin:0,padding:0})};if(r.hasClass('alignright')){o.addClass('alignright').css({float:'right',margin:0,padding:0})};if(r.hasClass('aligncenter')){o.addClass('aligncenter').css({float:'none','text-align':'center',margin:0,padding:0})};if(r.hasClass('alignnone')){o.addClass('alignnone').css({margin:0,padding:0});if(!o.css('display')||o.css('display')=='inline'){o.css({display:'inline-block'})}};if(!o.css('position')||o.css('position')=='static'){o.css({position:'relative',overflow:'hidden'})};var l=o.attr('href'),s='overlay-type-video',d=o.data('opacity')||0.7,c=5,n=o.find('.image-overlay');if(l){if(l.match(/(jpg|gif|jpeg|png|tif)/)){s='overlay-type-image'};if(!l.match(/(jpg|gif|jpeg|png|\.tif|\.mov|\.swf|vimeo\.com|youtube\.com)/)){s='overlay-type-extern'}};if(!n.length){n=e('<span class=\'image-overlay '+s+'\'><span class=\'image-overlay-inside\'></span></span>').appendTo(o)};o.on('mouseenter',function(t){var i=o.find('img').first(),r=i.get(0),l=i.outerHeight(),f=i.outerWidth(),h=i.position(),p=o.css('display'),n=o.find('.image-overlay');if(l>100){if(!n.length){n=e('<span class=\'image-overlay '+s+'\'><span class=\'image-overlay-inside\'></span></span>').appendTo(o)};if(o.height()==0){o.addClass(r.className);r.className=''};if(!p||p=='inline'){o.css({display:'block'})};n.css({left:(h.left-c)+parseInt(i.css('margin-left'),10),top:h.top+parseInt(i.css('margin-top'),10)}).css({overflow:'hidden',display:'block','height':l,'width':(f+(2*c))});if(a===!1){n.stop().animate({opacity:d},400)}}
else{n.css({display:'none'})}}).on('mouseleave',i,function(){if(n.length){if(a===!1){n.stop().animate({opacity:0},400)}}})})}(function(e){e.fn.avia_smoothscroll=function(t){if(!this.length){return};var a=e(window),p=e('#header'),f=e('.html_header_top.html_header_sticky #main').not('.page-template-template-blank-php #main'),u=e('.html_header_top.html_header_unstick_top_disabled #header_meta'),v=e('.html_header_top:not(.html_top_nav_header) #header_main_alternate'),m=e('.html_header_top.html_top_nav_header'),l=e('.html_header_top.html_header_shrinking').length,c=e('.av-frame-top'),i=0,d=e.avia_utilities.isMobile,o=e('.sticky_placeholder').first(),h=function(){if(p.css('position')=='fixed'){var t=parseInt(f.data('scroll-offset'),10)||0,a=parseInt(u.outerHeight(),10)||0,o=parseInt(v.outerHeight(),10)||0;if(t>0&&l){t=(t/2)+a+o}
else{t=t+a+o};t+=parseInt(e('html').css('margin-top'),10);i=t}
else{i=parseInt(e('html').css('margin-top'),10)};if(c.length){i+=c.height()};if(m.length){i=e('.html_header_sticky #header_main_alternate').height()+parseInt(e('html').css('margin-top'),10)};if(d){i=0}};if(d){l=!1};h();a.on('debouncedresize av-height-change',h);var s=window.location.hash.replace(/\//g,'');if(i>0&&s&&t=='body'&&s.charAt(1)!='!'&&s.indexOf('=')===-1){var n=e(s),r=0;if(n.length){a.on('scroll.avia_first_scroll',function(){setTimeout(function(){if(o.length&&n.offset().top>o.offset().top){r=o.outerHeight()-3};a.off('scroll.avia_first_scroll').scrollTop(n.offset().top-i-r)},10)})}};return this.each(function(){e(this).on('click',function(t){var n=this.hash.replace(/\//g,''),d=e(this),r=d.data(),u=!1,b='undefined'!=typeof r.no_scroll_in_viewport&&r.no_scroll_in_viewport==1,T='undefined'!=typeof r.ignore_hash&&r.ignore_hash==1;if(n!=''&&n!='#'&&n!='#prev'&&n!='#next'&&!d.is('.comment-reply-link, #cancel-comment-reply-link, .no-scroll')){var s='',f='';if('#next-section'==n){f=n;var w=d.parents('.container_wrap').eq(0).nextAll('.container_wrap');w.each(function(){var t=e(this);if(t.css('display')=='none'||t.css('visibility')=='hidden'){return};s=t;return!1});if('object'==typeof s&&s.length>0){n='#'+s.attr('id')}}
else{s=e(this.hash.replace(/\//g,''))};if(s.length&&b){const rect=s[0].getBoundingClientRect();if(rect.top>i&&(rect.top<(window.innerHeight||document.documentElement.clientHeight))){u=!0}};if(s.length&&!u){var h=a.scrollTop(),p=s.offset().top,l=p-i,c=window.location.hash,c=c.replace(/\//g,''),v=window.location.href.replace(c,''),m=this,g=r.duration||1200,y=r.easing||'easeInOutQuint';if(o.length&&p>o.offset().top){l-=o.outerHeight()-3};if('undefined'!=typeof r.scroll_top_offset&&Number.isInteger(r.scroll_top_offset)){l-=r.scroll_top_offset};if(v+n==m||f){if(h!=l){if(!(h==0&&l<=0)){a.trigger('avia_smooth_scroll_start');e('html:not(:animated),body:not(:animated)').animate({scrollTop:l},g,y,function(){a.trigger('avia_smooth_scroll_end');if(!T){if(window.history.replaceState){window.history.replaceState('','',n)}}})}};t.preventDefault()}}}})})}})(jQuery);function r(e){var t=jQuery('iframe[src*="youtube.com"]:not(.av_youtube_frame)',e),i=jQuery('iframe[src*="youtube.com"]:not(.av_youtube_frame) object, iframe[src*="youtube.com"]:not(.av_youtube_frame) embed',e).attr('wmode','opaque');t.each(function(){var t=jQuery(this),e=t.attr('src');if(e){if(e.indexOf('?')!==-1){e+='&wmode=opaque&rel=0'}
else{e+='?wmode=opaque&rel=0'};t.attr('src',e)}})};function l(e){if(!e)e=document;var a=jQuery(window),t=jQuery('.avia-iframe-wrap iframe:not(.avia-slideshow iframe):not( iframe.no_resize):not(.avia-video iframe)',e),i=function(){t.each(function(){var t=jQuery(this),i=t.parent(),e=56.25;if(this.width&&this.height){e=(100/this.width)*this.height;i.css({'padding-bottom':e+'%'})}})};i()};function c(){var i=e(window),o=!1,t=e('#scroll-top-link'),a=function(){var e=i.scrollTop();if(e<500){t.removeClass('avia_pop_class')}
else if(!t.is('.avia_pop_class')){t.addClass('avia_pop_class')}};i.on('scroll',function(){window.requestAnimationFrame(a)});a()};e.AviaAjaxSearch=function(t){var i={delay:300,minChars:3,scope:'body'};this.options=e.extend({},i,t);this.scope=e(this.options.scope);this.timer=!1;this.lastVal='';this.bind_events()};e.AviaAjaxSearch.prototype={bind_events:function(){this.scope.on('keyup','#s:not(".av_disable_ajax_search #s")',this.try_search.bind(this));this.scope.on('click','#s.av-results-parked',this.reset.bind(this))},try_search:function(t){var i=e(t.currentTarget).parents('form').eq(0),a=i.find('.ajax_search_response');clearTimeout(this.timer);if(t.keyCode===27){this.reset(t);return};if(t.currentTarget.value.length>=this.options.minChars&&this.lastVal!=t.currentTarget.value.trim()){this.timer=setTimeout(this.do_search.bind(this,t),this.options.delay)}
else if(t.currentTarget.value.length==0){this.timer=setTimeout(this.reset.bind(this,t),this.options.delay)}},reset:function(t){var i=e(t.currentTarget).parents('form').eq(0),a=i.find('.ajax_search_response'),o=e(i.attr('data-ajaxcontainer')).find('.ajax_search_response'),s=e(t.currentTarget);if(e(t.currentTarget).hasClass('av-results-parked')){a.show();o.show();e('body > .ajax_search_response').show()}
else{a.remove();o.remove();s.val('');e('body > .ajax_search_response').remove()}},do_search:function(t){var w=this,l=e(t.currentTarget).attr('autocomplete','off'),c=e(t.currentTarget).parents('.av_searchform_wrapper').eq(0),h=c.offset(),m=c.outerWidth(),g=c.outerHeight(),i=l.parents('form').eq(0),y=i.find('#searchsubmit'),s=i,a=s.find('.ajax_search_response'),p=e('<div class="ajax_load"><span class="ajax_load_inner"></span></div>'),n=i.attr('action'),d=i.serialize(),f=i.data('element_id'),u=i.data('custom_color');d+='&action=avia_ajax_search';if(!a.length){a=e('<div class="ajax_search_response" style="display:none;"></div>')};if('undefined'!=typeof f){a.addClass(f)};if('undefined'!=typeof u&&u!=''){a.addClass('av_has_custom_color')};if(i.attr('id')=='searchform_element'){a.addClass('av_searchform_element_results')};if(n.indexOf('?')!=-1){n=n.split('?');d+='&'+n[1]};if(i.attr('data-ajaxcontainer')){var r=i.attr('data-ajaxcontainer');if(e(r).length){e(r).find('.ajax_search_response').remove();s=e(r)}};o={};if(i.hasClass('av_results_container_fixed')){e('body').find('.ajax_search_response').remove();s=e('body');var o={top:h.top+g,left:h.left,width:m};a.addClass('main_color');e(window).resize(function(){a.remove();this.reset.bind(this);l.val('')})};if(i.attr('data-results_style')){var v=JSON.parse(i.attr('data-results_style'));o=Object.assign(o,v);if('color'in o){a.addClass('av_has_custom_color')}};a.css(o);if(s.hasClass('avia-section')){a.addClass('container')};a.appendTo(s);if(a.find('.ajax_not_found').length&&t.currentTarget.value.indexOf(this.lastVal)!=-1){return};this.lastVal=t.currentTarget.value;e.ajax({url:avia_framework_globals.ajaxurl,type:'POST',data:d,beforeSend:function(){p.insertAfter(y);i.addClass('ajax_loading_now')},success:function(e){if(e==0){e=''};a.html(e).show()},complete:function(){p.remove();i.removeClass('ajax_loading_now')}});e(document).on('click',function(t){if(!e(t.target).closest(i).length){if(e(a).is(':visible')){e(a).hide();l.addClass('av-results-parked')}}})}};e.AviaTooltip=function(t){var a={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,close_keys:null};this.options=e.extend({},a,t);var i='';if(this.options.close_keys!=null){if(!Array.isArray(this.options.close_keys)){this.options.close_keys=[this.options.close_keys]};i=' data-close-keys="'+this.options.close_keys.join(',')+'" '};this.body=e('body');this.scope=e(this.options.scope);this.tooltip=e('<div class="'+this.options['class']+' avia-tt"'+i+'><span class="avia-arrow-wrap"><span class="avia-arrow"></span></span></div>');this.inner=e('<div class="inner_tooltip"></div>').prependTo(this.tooltip);this.open=!1;this.timer=!1;this.active=!1;this.bind_events()};e.AviaTooltip.openTTs=[];e.AviaTooltip.openTT_Elements=[];e.AviaTooltip.prototype={bind_events:function(){var i='.av-permanent-tooltip [data-'+this.options.data+']',t='[data-'+this.options.data+']:not( .av-permanent-tooltip [data-'+this.options.data+'])';this.scope.on('av_permanent_show',i,this.display_tooltip.bind(this));e(i).addClass('av-perma-tooltip').trigger('av_permanent_show');this.scope.on(this.options.event+' mouseleave',t,this.start_countdown.bind(this));if(this.options.event!='click'){this.scope.on('mouseleave',t,this.hide_tooltip.bind(this));this.scope.on('click',t,this.hide_on_click_tooltip.bind(this))}
else{this.body.on('mousedown',this.hide_tooltip.bind(this))};if(this.options.close_keys!=null){this.body.on('keyup',this.close_on_keyup.bind(this))}},start_countdown:function(t){clearTimeout(this.timer);var a=this.options.event=='click'?t.target:t.currentTarget,o=e(a);if(t.type==this.options.event){var i=this.options.event=='click'?0:this.open?0:this.options.delay;this.timer=setTimeout(this.display_tooltip.bind(this,t),i)}
else if(t.type=='mouseleave'){if(!o.hasClass('av-close-on-click-tooltip')){this.timer=setTimeout(this.stop_instant_open.bind(this,t),this.options.delayOut)}};t.preventDefault()},reset_countdown:function(e){clearTimeout(this.timer);this.timer=!1},display_tooltip:function(t){var y=this,w=this.options.event=='click'?t.target:t.currentTarget,i=e(w),d=i.data(this.options.data),u=i.data('avia-created-tooltip'),v=i.data('avia-tooltip-class'),p=this.options.attach=='element'?i:this.body,n=this.options.attach=='element'?i.position():i.offset(),c=i.data('avia-tooltip-position'),h=i.data('avia-tooltip-alignment'),m=!1,a=!1,g=!1;d='string'==typeof d?d.trim():'';if(i.is('.av-perma-tooltip')){n={top:0,left:0};p=i;m=!0};if(d==''){return};if(c==''||typeof c=='undefined'){c=this.options.position};if(h==''||typeof h=='undefined'){h='center'};if(typeof u!='undefined'){a=e.AviaTooltip.openTTs[u]}
else{this.inner.html(d);a=this.tooltip.clone();g=!0;if(this.options.attach=='element'&&m!==!0){a.insertAfter(p)}
else{a.appendTo(p)};if(v!=''){a.addClass(v)}};if(this.open&&this.active==a){return};if(i.hasClass('av-close-on-click-tooltip')){this.hide_all_tooltips()};this.open=!0;this.active=a;if((a.is(':animated:visible')&&t.type=='click')||i.is('.'+this.options['class'])||i.parents('.'+this.options['class']).length!=0){return};var r={},l={},s='',o='';if(c=='top'||c=='bottom'){switch(h){case'left':o=n.left;break;case'right':o=n.left+i.outerWidth()-a.outerWidth();break;default:o=(n.left+(i.outerWidth()/2))-(a.outerWidth()/2);break};if(y.options.within_screen){var f=i.offset().left+(i.outerWidth()/2)-(a.outerWidth()/2)+parseInt(a.css('margin-left'),10);if(f<0){o=o-f}}}
else{switch(h){case'top':s=n.top;break;case'bottom':s=n.top+i.outerHeight()-a.outerHeight();break;default:s=(n.top+(i.outerHeight()/2))-(a.outerHeight()/2);break}};switch(c){case'top':s=n.top-a.outerHeight();r={top:s-10,left:o};l={top:s};break;case'bottom':s=n.top+i.outerHeight();r={top:s+10,left:o};l={top:s};break;case'left':o=n.left-a.outerWidth();r={top:s,left:o-10};l={left:o};break;case'right':o=n.left+i.outerWidth();r={top:s,left:o+10};l={left:o};break};r['display']='block';r['opacity']=0;l['opacity']=1;a.css(r).stop().animate(l,200);a.find('input, textarea').trigger('focus');if(g){e.AviaTooltip.openTTs.push(a);e.AviaTooltip.openTT_Elements.push(i);i.data('avia-created-tooltip',e.AviaTooltip.openTTs.length-1)}},hide_on_click_tooltip:function(t){if(this.options.event=='click'){return};var i=e(t.currentTarget);if(!i.hasClass('av-close-on-click-tooltip')){return};if(!i.find('a')){t.preventDefault()};var o=i.data('avia-created-tooltip');if('undefined'!=typeof o){var a=e.AviaTooltip.openTTs[o];if('undefined'!=typeof a&&a==this.active){this.hide_all_tooltips()}}},close_on_keyup:function(t){if(this.options.close_keys==null){return};if(e.inArray(t.keyCode,this.options.close_keys)<0){return};this.hide_all_tooltips(t.keyCode)},hide_all_tooltips:function(t){var o,s,n,r='undefined'!=typeof t?t+'':null;for(var a=0;a<e.AviaTooltip.openTTs.length;++a){o=e.AviaTooltip.openTTs[a];n=e.AviaTooltip.openTT_Elements[a];s=n.data('avia-tooltip-position');if(r!=null){var i=o.data('close-keys');if('undefined'==typeof i){continue};i=i+'';i=i.split(',');if(e.inArray(r,i)<0){continue}};this.animate_hide_tooltip(o,s)};this.open=!1;this.active=!1},hide_tooltip:function(t){var i=e(t.currentTarget),a,n,o=i.data('avia-tooltip-position'),s=i.data('avia-tooltip-alignment'),a=!1;if(o==''||typeof o=='undefined'){o=this.options.position};if(s==''||typeof s=='undefined'){s='center'};if(this.options.event=='click'){i=e(t.target);if(!i.is('.'+this.options['class'])&&i.parents('.'+this.options['class']).length==0){if(this.active.length){a=this.active;this.active=!1}}}
else{if(!i.hasClass('av-close-on-click-tooltip')){a=i.data('avia-created-tooltip');a=typeof a!='undefined'?e.AviaTooltip.openTTs[a]:!1}};this.animate_hide_tooltip(a,o)},animate_hide_tooltip:function(e,t){if(e){var i={opacity:0};switch(t){case'top':i['top']=parseInt(e.css('top'),10)-10;break;case'bottom':i['top']=parseInt(e.css('top'),10)+10;break;case'left':i['left']=parseInt(e.css('left'),10)-10;break;case'right':i['left']=parseInt(e.css('left'),10)+10;break};e.animate(i,200,function(){e.css({display:'none'})})}},stop_instant_open:function(e){this.open=!1}}})(jQuery);(function(e){'use strict';e(function(){e.event.special.touchstart={setup:function(e,t,i){this.addEventListener('touchstart',i,{passive:!t.includes('noPreventDefault')})}};e.event.special.touchmove={setup:function(e,t,i){this.addEventListener('touchmove',i,{passive:!t.includes('noPreventDefault')})}};e.event.special.wheel={setup:function(e,t,i){this.addEventListener('wheel',i,{passive:!0})}};e.event.special.mousewheel={setup:function(e,t,i){this.addEventListener('mousewheel',i,{passive:!0})}}})})(jQuery);(function(){var i=0,t=['ms','moz','webkit','o'];for(var e=0;e<t.length&&!window.requestAnimationFrame;++e){window.requestAnimationFrame=window[t[e]+'RequestAnimationFrame'];window.cancelAnimationFrame=window[t[e]+'CancelAnimationFrame']||window[t[e]+'CancelRequestAnimationFrame']};if(!window.requestAnimationFrame)window.requestAnimationFrame=function(e,t){var a=new Date().getTime(),o=Math.max(0,16-(a-i)),s=window.setTimeout(function(){e(a+o)},o);i=a+o;return s};if(!window.cancelAnimationFrame)window.cancelAnimationFrame=function(e){clearTimeout(e)}}());jQuery.expr.pseudos.regex=function(e,t,i){var a=i[3].split(','),o=/^(data|css):/,s={method:a[0].match(o)?a[0].split(':')[0]:'attr',property:a.shift().replace(o,'')},n='ig',r=new RegExp(a.join('').replace(/^\s+|\s+$/g,''),n);return r.test(jQuery(e)[s.method](s.property))};(function(i){"use strict";i(function(){i.avia_utilities=i.avia_utilities||{};if("undefined"==typeof i.avia_utilities.isMobile){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_browser_height){i(".av-minimum-height, .avia-fullscreen-slider, .av-cell-min-height").avia_browser_height()};if(i.fn.avia_container_height){i(".av-column-min-height-pc").avia_container_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});i(".av-animated-when-visible",e).avia_sc_animation_delayed({delay:100});i(".av-animated-when-almost-visible",e).avia_sc_animation_delayed({delay:100});i(".av-animated-when-visible-95",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()};if(i.fn.aviaIconCircles){i(".av-icon-circles-container").aviaIconCircles()};if(i.fn.avia_sc_icongrid){i(".avia-icon-grid-container").avia_sc_icongrid()}};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%"});i(".av-animated-when-visible",e).avia_waypoints();i(".av-animated-when-almost-visible",e).avia_waypoints({offset:"80%"});i(".av-animated-when-visible-95",e).avia_waypoints({offset:"95%"});var t=i("*[class*=\"av-custom-animated-top-\"]",e);t.each(function(){var n=i(this),t=n[0].className.split(/\s+/);for(var e=0;e<t.length;e++){if(t[e].indexOf("av-custom-animated-top-")==0){var a=parseInt(t[e].replace("av-custom-animated-top-",""));if(!isNaN(a)&&a<100){n.avia_waypoints({offset:a+"%"})}}}});var a=i("body").hasClass("avia-mobile-no-animations");if(e=="body"&&a){e=".avia_desktop body"};i(".av-animated-generic",e).avia_waypoints({offset:"95%"})}};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 this};var e=i(window),c=i("html"),n=i("head").first(),r=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],s=function(){let css="",wh100=e.height(),ww100=e.width(),wh100_mod=wh100,whCover=(wh100/9)*16,wwCover=(ww100/16)*9,solo=0;if(o.length){solo=o.height()};r.each(function(){wh100_mod-=this.offsetHeight-1});let whCoverMod=(wh100_mod/9)*16;css+=".avia-section.av-minimum-height .container{opacity: 1; }\n";css+=".av-minimum-height-100:not(.av-slideshow-section) .container, .avia-fullscreen-slider .avia-slideshow, #top.avia-blank .av-minimum-height-100 .container, .av-cell-min-height-100 > .flex_cell{height: 100vh;}\n";css+=".av-minimum-height-100vw:not(.av-slideshow-section) .container, #top.avia-blank .av-minimum-height-100vw .container, .av-cell-min-height-100vw > .flex_cell{height: 100vw;}\n";css+=".av-minimum-height-100.av-slideshow-section .container { height:unset; }\n";css+=".av-minimum-height-100vw.av-slideshow-section .container { height:unset; }\n";css+=".av-minimum-height-100.av-slideshow-section {min-height: 100vh;}\n";css+=".av-minimum-height-100vw.av-slideshow-section {min-height: 100vw;}\n";i.each(t,function(i,e){css+=".av-minimum-height-"+e+":not(.av-slideshow-section) .container, .av-cell-min-height-"+e+" > .flex_cell	{height:"+e+"vh;}\n";css+=".av-minimum-height-"+e+".av-slideshow-section {min-height:"+e+"vh;}\n";css+=".av-minimum-height-"+e+"vw:not(.av-slideshow-section) .container, .av-cell-min-height-"+e+"vw > .flex_cell	{height:"+e+"vw;}\n";css+=".av-minimum-height-"+e+"vw.av-slideshow-section {min-height:"+e+"vw;}\n"});css+=".avia-builder-el-0.av-minimum-height-100:not(.av-slideshow-section) .container, .avia-builder-el-0.avia-fullscreen-slider .avia-slideshow, .avia-builder-el-0.av-cell-min-height-100 > .flex_cell{height:"+wh100_mod+"px;}\n";css+="#top .av-solo-full .avia-slideshow {min-height:"+solo+"px;}\n";if(ww100/wh100<16/9){css+="#top .av-element-cover iframe, #top .av-element-cover embed, #top .av-element-cover object, #top .av-element-cover video{width:"+whCover+"px; left: -"+(whCover-ww100)/2+"px;}\n"}
else{css+="#top .av-element-cover iframe, #top .av-element-cover embed, #top .av-element-cover object, #top .av-element-cover video{height:"+wwCover+"px; top: -"+(wwCover-wh100)/2+"px;}\n"};if(ww100/wh100_mod<16/9){css+="#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:"+whCoverMod+"px; left: -"+(whCoverMod-ww100)/2+"px;}\n"}
else{css+="#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:"+wwCover+"px; top: -"+(wwCover-wh100_mod)/2+"px;}\n"};try{a.text(css)}catch(s){a.remove();a=i("<style type='text/css' id='av-browser-height'>"+css+"</style>").appendTo(n)};setTimeout(function(){e.trigger("av-height-change")},100)};this.each(function(e){let container=i(this),height=container.data("av_minimum_height_pc");if("number"!=typeof height){return this};height=parseInt(height);if((-1==i.inArray(height,t))&&(height!=100)){t.push(height)};return this});e.on("debouncedresize",s);s()};i.fn.avia_container_height=function(){if(!this.length){return this};var e=i(window),a=function(){var a=i(this),s=a.data("av-column-min-height"),n=parseInt(s["column-min-pc"],10),t=null,r=0,o=0;if(isNaN(n)||n==0){return};t=a.closest(".avia-section");if(!t.length){t=a.closest(".av-gridrow-cell")};if(!t.length){t=a.closest(".av-layout-tab")};r=t.length?t.outerHeight():e.height();o=r*(n/100.0);if(!s["column-equal-height"]){a.css("min-height",o+"px");a.css("height","auto")}
else{a.css("height",o+"px")};setTimeout(function(){e.trigger("av-height-change")},100)};this.each(function(t){var n=i(this),o=n.data("av-column-min-height");if("object"!=typeof o){return this};e.on("debouncedresize",a.bind(n));a.call(n);return this})};i.fn.avia_video_section=function(){if(!this.length)return;var o=this.length,e="",s=i(window),t=i("head").first(),a=i("<style type='text/css' id='av-section-height'></style>").appendTo(t),n=function(n,s){if(s===0){e=""};var c="",r="#"+n.attr("id"),l=n.height(),u=n.width(),d=n.data("sectionVideoRatio").split(":"),v=d[0],f=d[1],h=(l/f)*v,m=(u/v)*f;if(u/l<v/f){c+="#top "+r+" .av-section-video-bg iframe, #top "+r+" .av-section-video-bg embed, #top "+r+" .av-section-video-bg object, #top "+r+" .av-section-video-bg video{width:"+h+"px; left: -"+(h-u)/2+"px;}\n"}
else{c+="#top "+r+" .av-section-video-bg iframe, #top "+r+" .av-section-video-bg embed, #top "+r+" .av-section-video-bg object, #top "+r+" .av-section-video-bg video{height:"+m+"px; top: -"+(m-l)/2+"px;}\n"};e=e+c;if(o==s+1){try{a.text(e)}catch(p){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);s.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"),r=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 s=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(r)>=0)&&(a.indexOf("#")>0))){s.trigger("click");if("undefined"==typeof o||"_blank"!=o){window.location.href=a};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),a=e.hasClass("animate-all-devices"),o=i("body").hasClass("avia-mobile-no-animations");setTimeout(function(){if(n&&o&&!a){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 s=this,r=arguments,o=function(){i.type="debouncedresize";t.dispatch.apply(s,r)};if(a){clearTimeout(a)};n?o():a=setTimeout(o,e.threshold)},threshold:150}})(jQuery);(function(i){"use strict";i.avia_utilities=i.avia_utilities||{};i.avia_utilities.loading=function(e,t){var a={active:!1,show:function(){if(a.active===!1){a.active=!0;a.loading_item.css({display:"block",opacity:0})};a.loading_item.stop().animate({opacity:1})},hide:function(){if(typeof t==="undefined"){t=600};a.loading_item.stop().delay(t).animate({opacity:0},function(){a.loading_item.css({display:"none"});a.active=!1})},attach:function(){if(typeof e==="undefined"){e="body"};a.loading_item=i("<div class=\"avia_loading_icon\"><div class=\"av-siteloader\"></div></div>").css({display:"none"}).appendTo(e)}};a.attach();return a};i.avia_utilities.playpause=function(e,t){var a={active:!1,to1:"",to2:"",set:function(i){a.loading_item.removeClass("av-play av-pause");a.to1=setTimeout(function(){a.loading_item.addClass("av-"+i)},10);a.to2=setTimeout(function(){a.loading_item.removeClass("av-"+i)},1500)},attach:function(){if(typeof e==="undefined"){e="body"};a.loading_item=i("<div class=\"avia_playpause_icon\"></div>").css({display:"none"}).appendTo(e)}};a.attach();return a};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",s={},l={},u=document.body.style,o=(u.WebkitTransition!==undefined)?"webkitTransitionEnd":(u.OTransition!==undefined)?"oTransitionEnd":"transitionend";t=i.avia_utilities.css_easings[t];s[c]="all "+(a/1000)+"s "+t;o=o+".avia_animate";for(var r in e){if(e.hasOwnProperty(r)){l[r]=e[r]}};e=l;this.each(function(){var t=i(this),v=!1,r,u;for(r in e){if(e.hasOwnProperty(r)){u=t.css(r);if(e[r]!=u&&e[r]!=u.replace(/px|%/g,"")){v=!0;break}}};if(v){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;s[c]="none";t.off(o);t.css(s);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(s)},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 r=i(window),t=i.avia_utilities.isMobile,n=i.avia_utilities.isTouchDevice,a=i("body"),o={prev:".prev-slide",next:".next-slide",delay_trigger:!1,event:{prev:"click",next:"click"},beforeTrigger:null,afterTrigger:null,afterDelayedTrigger:null},s={activate_touch_control:function(i){var e,t,n;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(o){if(a.hasClass("avia-swipe-executed")){return};if(!i.touchPos.X){i.touchPos.X=o.originalEvent.touches[0].clientX;i.touchPos.Y=o.originalEvent.touches[0].clientY}
else{t=o.originalEvent.touches[0].clientX-i.touchPos.X;n=o.originalEvent.touches[0].clientY-i.touchPos.Y;if(Math.abs(t)>Math.abs(n)){if(i.touchPos!==o.originalEvent.touches[0].clientX){if(Math.abs(t)>50){e=t>0?"prev":"next";let element=i.options[e];if(element==null){return};if(typeof i.options.beforeTrigger=="function"){i.options.beforeTrigger(i,e)};if(typeof i.options[e]==="string"){i.find(i.options[e]).trigger(i.options.event[e],["swipe"])}
else{if(typeof element.jquery=="string"){element.trigger(i.options.event[e],["swipe"])}
else{let action=i.options.event[e];if(action.indexOf("native_")<0){element.dispatchEvent(new Event(action))}
else{let func_action=action.replace("native_","");if(typeof element[func_action]=="function"){if(i.options.delay_trigger){setTimeout(function(){element[func_action]();if(typeof i.options.afterDelayedTrigger=="function"){i.options.afterDelayedTrigger(i,e)}},50)}
else{element[func_action]()}}
else{element.dispatchEvent(new Event(action))}}}};if(typeof i.options.afterTrigger=="function"){i.options.afterTrigger(i,e)};o.preventDefault();o.stopImmediatePropagation();a.addClass("avia-swipe-executed");setTimeout(function(){a.removeClass("avia-swipe-executed")},300);i.hasMoved=!0;i.touchPos={};return!1}}}}})}};return this.each(function(){if(t||n){var a=i(this);a.options=i.extend({},o,e);s.activate_touch_control(a)}})}}(jQuery));(function(i){if(typeof i.easing!=="undefined"){i.easing["jswing"]=i.easing["swing"]};var e=Math.pow,n=Math.sqrt,a=Math.sin,c=Math.cos,t=Math.PI,o=1.70158,s=o*1.525,l=o+1,u=(2*t)/3,v=(2*t)/4.5;function r(i){var a=7.5625,e=2.75;if(i<1/e){return a*i*i}
else if(i<2/e){return a*(i-=(1.5/e))*i+.75}
else if(i<2.5/e){return a*(i-=(2.25/e))*i+.9375}
else{return a*(i-=(2.625/e))*i+.984375}};i.extend(i.easing,{def:"easeOutQuad",swing:function(e){return i.easing[i.easing.def](e)},easeInQuad:function(i){return i*i},easeOutQuad:function(i){return 1-(1-i)*(1-i)},easeInOutQuad:function(i){return i<0.5?2*i*i:1-e(-2*i+2,2)/2},easeInCubic:function(i){return i*i*i},easeOutCubic:function(i){return 1-e(1-i,3)},easeInOutCubic:function(i){return i<0.5?4*i*i*i:1-e(-2*i+2,3)/2},easeInQuart:function(i){return i*i*i*i},easeOutQuart:function(i){return 1-e(1-i,4)},easeInOutQuart:function(i){return i<0.5?8*i*i*i*i:1-e(-2*i+2,4)/2},easeInQuint:function(i){return i*i*i*i*i},easeOutQuint:function(i){return 1-e(1-i,5)},easeInOutQuint:function(i){return i<0.5?16*i*i*i*i*i:1-e(-2*i+2,5)/2},easeInSine:function(i){return 1-c(i*t/2)},easeOutSine:function(i){return a(i*t/2)},easeInOutSine:function(i){return-(c(t*i)-1)/2},easeInExpo:function(i){return i===0?0:e(2,10*i-10)},easeOutExpo:function(i){return i===1?1:1-e(2,-10*i)},easeInOutExpo:function(i){return i===0?0:i===1?1:i<0.5?e(2,20*i-10)/2:(2-e(2,-20*i+10))/2},easeInCirc:function(i){return 1-n(1-e(i,2))},easeOutCirc:function(i){return n(1-e(i-1,2))},easeInOutCirc:function(i){return i<0.5?(1-n(1-e(2*i,2)))/2:(n(1-e(-2*i+2,2))+1)/2},easeInElastic:function(i){return i===0?0:i===1?1:-e(2,10*i-10)*a((i*10-10.75)*u)},easeOutElastic:function(i){return i===0?0:i===1?1:e(2,-10*i)*a((i*10-0.75)*u)+1},easeInOutElastic:function(i){return i===0?0:i===1?1:i<0.5?-(e(2,20*i-10)*a((20*i-11.125)*v))/2:e(2,-20*i+10)*a((20*i-11.125)*v)/2+1},easeInBack:function(i){return l*i*i*i-o*i*i},easeOutBack:function(i){return 1+l*e(i-1,3)+o*e(i-1,2)},easeInOutBack:function(i){return i<0.5?(e(2*i,2)*((s+1)*2*i-s))/2:(e(2*i-2,2)*((s+1)*(i*2-2)+s)+2)/2},easeInBounce:function(i){return 1-r(1-i)},easeOutBounce:r,easeInOutBounce:function(i){return i<0.5?(1-r(1-2*i))/2:(1+r(2*i-1))/2}})}(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));
/*!
 * Chart.js v3.9.1
 * https://www.chartjs.org
 * (c) 2022 Chart.js Contributors
 * Released under the MIT License
 */
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).Chart=e()}(this,(function(){"use strict";function t(){}const e=function(){let t=0;return function(){return t++}}();function i(t){return null==t}function s(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function n(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const o=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function a(t,e){return o(t)?t:e}function r(t,e){return void 0===t?e:t}const l=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100:t/e,h=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function c(t,e,i){if(t&&"function"==typeof t.call)return t.apply(i,e)}function d(t,e,i,o){let a,r,l;if(s(t))if(r=t.length,o)for(a=r-1;a>=0;a--)e.call(i,t[a],a);else for(a=0;a<r;a++)e.call(i,t[a],a);else if(n(t))for(l=Object.keys(t),r=l.length,a=0;a<r;a++)e.call(i,t[l[a]],l[a])}function u(t,e){let i,s,n,o;if(!t||!e||t.length!==e.length)return!1;for(i=0,s=t.length;i<s;++i)if(n=t[i],o=e[i],n.datasetIndex!==o.datasetIndex||n.index!==o.index)return!1;return!0}function f(t){if(s(t))return t.map(f);if(n(t)){const e=Object.create(null),i=Object.keys(t),s=i.length;let n=0;for(;n<s;++n)e[i[n]]=f(t[i[n]]);return e}return t}function g(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function p(t,e,i,s){if(!g(t))return;const o=e[t],a=i[t];n(o)&&n(a)?m(o,a,s):e[t]=f(a)}function m(t,e,i){const o=s(e)?e:[e],a=o.length;if(!n(t))return t;const r=(i=i||{}).merger||p;for(let s=0;s<a;++s){if(!n(e=o[s]))continue;const a=Object.keys(e);for(let s=0,n=a.length;s<n;++s)r(a[s],t,e,i)}return t}function b(t,e){return m(t,e,{merger:x})}function x(t,e,i){if(!g(t))return;const s=e[t],o=i[t];n(s)&&n(o)?b(s,o):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=f(o))}const _={"":t=>t,x:t=>t.x,y:t=>t.y};function y(t,e){const i=_[e]||(_[e]=function(t){const e=v(t);return t=>{for(const i of e){if(""===i)break;t=t&&t[i]}return t}}(e));return i(t)}function v(t){const e=t.split("."),i=[];let s="";for(const n of e)s+=n,s.endsWith("\\")?s=s.slice(0,-1)+".":(i.push(s),s="");return i}function w(t){return t.charAt(0).toUpperCase()+t.slice(1)}const M=t=>void 0!==t,k=t=>"function"==typeof t,S=(t,e)=>{if(t.size!==e.size)return!1;for(const i of t)if(!e.has(i))return!1;return!0};function P(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}const C=Math.PI,D=2*C,A=D+C,O=Number.POSITIVE_INFINITY,T=C/180,L=C/2,E=C/4,R=2*C/3,I=Math.log10,z=Math.sign;function F(t){const e=Math.round(t);t=N(t,e,t/1e3)?e:t;const i=Math.pow(10,Math.floor(I(t))),s=t/i;return(s<=1?1:s<=2?2:s<=5?5:10)*i}function B(t){const e=[],i=Math.sqrt(t);let s;for(s=1;s<i;s++)t%s==0&&(e.push(s),e.push(t/s));return i===(0|i)&&e.push(i),e.sort(((t,e)=>t-e)).pop(),e}function V(t){return!isNaN(parseFloat(t))&&isFinite(t)}function N(t,e,i){return Math.abs(t-e)<i}function W(t,e){const i=Math.round(t);return i-e<=t&&i+e>=t}function H(t,e,i){let s,n,o;for(s=0,n=t.length;s<n;s++)o=t[s][i],isNaN(o)||(e.min=Math.min(e.min,o),e.max=Math.max(e.max,o))}function j(t){return t*(C/180)}function $(t){return t*(180/C)}function Y(t){if(!o(t))return;let e=1,i=0;for(;Math.round(t*e)/e!==t;)e*=10,i++;return i}function U(t,e){const i=e.x-t.x,s=e.y-t.y,n=Math.sqrt(i*i+s*s);let o=Math.atan2(s,i);return o<-.5*C&&(o+=D),{angle:o,distance:n}}function X(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function q(t,e){return(t-e+A)%D-C}function K(t){return(t%D+D)%D}function G(t,e,i,s){const n=K(t),o=K(e),a=K(i),r=K(o-n),l=K(a-n),h=K(n-o),c=K(n-a);return n===o||n===a||s&&o===a||r>l&&h<c}function Z(t,e,i){return Math.max(e,Math.min(i,t))}function J(t){return Z(t,-32768,32767)}function Q(t,e,i,s=1e-6){return t>=Math.min(e,i)-s&&t<=Math.max(e,i)+s}function tt(t,e,i){i=i||(i=>t[i]<e);let s,n=t.length-1,o=0;for(;n-o>1;)s=o+n>>1,i(s)?o=s:n=s;return{lo:o,hi:n}}const et=(t,e,i,s)=>tt(t,i,s?s=>t[s][e]<=i:s=>t[s][e]<i),it=(t,e,i)=>tt(t,i,(s=>t[s][e]>=i));function st(t,e,i){let s=0,n=t.length;for(;s<n&&t[s]<e;)s++;for(;n>s&&t[n-1]>i;)n--;return s>0||n<t.length?t.slice(s,n):t}const nt=["push","pop","shift","splice","unshift"];function ot(t,e){t._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),nt.forEach((e=>{const i="_onData"+w(e),s=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...e){const n=s.apply(this,e);return t._chartjs.listeners.forEach((t=>{"function"==typeof t[i]&&t[i](...e)})),n}})})))}function at(t,e){const i=t._chartjs;if(!i)return;const s=i.listeners,n=s.indexOf(e);-1!==n&&s.splice(n,1),s.length>0||(nt.forEach((e=>{delete t[e]})),delete t._chartjs)}function rt(t){const e=new Set;let i,s;for(i=0,s=t.length;i<s;++i)e.add(t[i]);return e.size===s?t:Array.from(e)}const lt="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function ht(t,e,i){const s=i||(t=>Array.prototype.slice.call(t));let n=!1,o=[];return function(...i){o=s(i),n||(n=!0,lt.call(window,(()=>{n=!1,t.apply(e,o)})))}}function ct(t,e){let i;return function(...s){return e?(clearTimeout(i),i=setTimeout(t,e,s)):t.apply(this,s),e}}const dt=t=>"start"===t?"left":"end"===t?"right":"center",ut=(t,e,i)=>"start"===t?e:"end"===t?i:(e+i)/2,ft=(t,e,i,s)=>t===(s?"left":"right")?i:"center"===t?(e+i)/2:e;function gt(t,e,i){const s=e.length;let n=0,o=s;if(t._sorted){const{iScale:a,_parsed:r}=t,l=a.axis,{min:h,max:c,minDefined:d,maxDefined:u}=a.getUserBounds();d&&(n=Z(Math.min(et(r,a.axis,h).lo,i?s:et(e,l,a.getPixelForValue(h)).lo),0,s-1)),o=u?Z(Math.max(et(r,a.axis,c,!0).hi+1,i?0:et(e,l,a.getPixelForValue(c),!0).hi+1),n,s)-n:s-n}return{start:n,count:o}}function pt(t){const{xScale:e,yScale:i,_scaleRanges:s}=t,n={xmin:e.min,xmax:e.max,ymin:i.min,ymax:i.max};if(!s)return t._scaleRanges=n,!0;const o=s.xmin!==e.min||s.xmax!==e.max||s.ymin!==i.min||s.ymax!==i.max;return Object.assign(s,n),o}var mt=new class Animator{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,i,s){const n=e.listeners[s],o=e.duration;n.forEach((s=>s({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(i-e.start,o)})))}_refresh(){this._request||(this._running=!0,this._request=lt.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((i,s)=>{if(!i.running||!i.items.length)return;const n=i.items;let o,a=n.length-1,r=!1;for(;a>=0;--a)o=n[a],o._active?(o._total>i.duration&&(i.duration=o._total),o.tick(t),r=!0):(n[a]=n[n.length-1],n.pop());r&&(s.draw(),this._notify(s,i,t,"progress")),n.length||(i.running=!1,this._notify(s,i,t,"complete"),i.initial=!1),e+=n.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const i=e.items;let s=i.length-1;for(;s>=0;--s)i[s].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};
/*!
 * @kurkle/color v0.2.1
 * https://github.com/kurkle/color#readme
 * (c) 2022 Jukka Kurkela
 * Released under the MIT License
 */
function bt(t){return t+.5|0}const xt=(t,e,i)=>Math.max(Math.min(t,i),e);function _t(t){return xt(bt(2.55*t),0,255)}function yt(t){return xt(bt(255*t),0,255)}function vt(t){return xt(bt(t/2.55)/100,0,1)}function wt(t){return xt(bt(100*t),0,100)}const Mt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},kt=[..."0123456789ABCDEF"],St=t=>kt[15&t],Pt=t=>kt[(240&t)>>4]+kt[15&t],Ct=t=>(240&t)>>4==(15&t);function Dt(t){var e=(t=>Ct(t.r)&&Ct(t.g)&&Ct(t.b)&&Ct(t.a))(t)?St:Pt;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}const At=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Ot(t,e,i){const s=e*Math.min(i,1-i),n=(e,n=(e+t/30)%12)=>i-s*Math.max(Math.min(n-3,9-n,1),-1);return[n(0),n(8),n(4)]}function Tt(t,e,i){const s=(s,n=(s+t/60)%6)=>i-i*e*Math.max(Math.min(n,4-n,1),0);return[s(5),s(3),s(1)]}function Lt(t,e,i){const s=Ot(t,1,.5);let n;for(e+i>1&&(n=1/(e+i),e*=n,i*=n),n=0;n<3;n++)s[n]*=1-e-i,s[n]+=e;return s}function Et(t){const e=t.r/255,i=t.g/255,s=t.b/255,n=Math.max(e,i,s),o=Math.min(e,i,s),a=(n+o)/2;let r,l,h;return n!==o&&(h=n-o,l=a>.5?h/(2-n-o):h/(n+o),r=function(t,e,i,s,n){return t===n?(e-i)/s+(e<i?6:0):e===n?(i-t)/s+2:(t-e)/s+4}(e,i,s,h,n),r=60*r+.5),[0|r,l||0,a]}function Rt(t,e,i,s){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,i,s)).map(yt)}function It(t,e,i){return Rt(Ot,t,e,i)}function zt(t){return(t%360+360)%360}function Ft(t){const e=At.exec(t);let i,s=255;if(!e)return;e[5]!==i&&(s=e[6]?_t(+e[5]):yt(+e[5]));const n=zt(+e[2]),o=+e[3]/100,a=+e[4]/100;return i="hwb"===e[1]?function(t,e,i){return Rt(Lt,t,e,i)}(n,o,a):"hsv"===e[1]?function(t,e,i){return Rt(Tt,t,e,i)}(n,o,a):It(n,o,a),{r:i[0],g:i[1],b:i[2],a:s}}const Bt={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Vt={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let Nt;function Wt(t){Nt||(Nt=function(){const t={},e=Object.keys(Vt),i=Object.keys(Bt);let s,n,o,a,r;for(s=0;s<e.length;s++){for(a=r=e[s],n=0;n<i.length;n++)o=i[n],r=r.replace(o,Bt[o]);o=parseInt(Vt[a],16),t[r]=[o>>16&255,o>>8&255,255&o]}return t}(),Nt.transparent=[0,0,0,0]);const e=Nt[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const Ht=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const jt=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,$t=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Yt(t,e,i){if(t){let s=Et(t);s[e]=Math.max(0,Math.min(s[e]+s[e]*i,0===e?360:1)),s=It(s),t.r=s[0],t.g=s[1],t.b=s[2]}}function Ut(t,e){return t?Object.assign(e||{},t):t}function Xt(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=yt(t[3]))):(e=Ut(t,{r:0,g:0,b:0,a:1})).a=yt(e.a),e}function qt(t){return"r"===t.charAt(0)?function(t){const e=Ht.exec(t);let i,s,n,o=255;if(e){if(e[7]!==i){const t=+e[7];o=e[8]?_t(t):xt(255*t,0,255)}return i=+e[1],s=+e[3],n=+e[5],i=255&(e[2]?_t(i):xt(i,0,255)),s=255&(e[4]?_t(s):xt(s,0,255)),n=255&(e[6]?_t(n):xt(n,0,255)),{r:i,g:s,b:n,a:o}}}(t):Ft(t)}class Color{constructor(t){if(t instanceof Color)return t;const e=typeof t;let i;var s,n,o;"object"===e?i=Xt(t):"string"===e&&(o=(s=t).length,"#"===s[0]&&(4===o||5===o?n={r:255&17*Mt[s[1]],g:255&17*Mt[s[2]],b:255&17*Mt[s[3]],a:5===o?17*Mt[s[4]]:255}:7!==o&&9!==o||(n={r:Mt[s[1]]<<4|Mt[s[2]],g:Mt[s[3]]<<4|Mt[s[4]],b:Mt[s[5]]<<4|Mt[s[6]],a:9===o?Mt[s[7]]<<4|Mt[s[8]]:255})),i=n||Wt(t)||qt(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=Ut(this._rgb);return t&&(t.a=vt(t.a)),t}set rgb(t){this._rgb=Xt(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${vt(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?Dt(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=Et(t),i=e[0],s=wt(e[1]),n=wt(e[2]);return t.a<255?`hsla(${i}, ${s}%, ${n}%, ${vt(t.a)})`:`hsl(${i}, ${s}%, ${n}%)`}(this._rgb):void 0}mix(t,e){if(t){const i=this.rgb,s=t.rgb;let n;const o=e===n?.5:e,a=2*o-1,r=i.a-s.a,l=((a*r==-1?a:(a+r)/(1+a*r))+1)/2;n=1-l,i.r=255&l*i.r+n*s.r+.5,i.g=255&l*i.g+n*s.g+.5,i.b=255&l*i.b+n*s.b+.5,i.a=o*i.a+(1-o)*s.a,this.rgb=i}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,i){const s=$t(vt(t.r)),n=$t(vt(t.g)),o=$t(vt(t.b));return{r:yt(jt(s+i*($t(vt(e.r))-s))),g:yt(jt(n+i*($t(vt(e.g))-n))),b:yt(jt(o+i*($t(vt(e.b))-o))),a:t.a+i*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new Color(this.rgb)}alpha(t){return this._rgb.a=yt(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=bt(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Yt(this._rgb,2,t),this}darken(t){return Yt(this._rgb,2,-t),this}saturate(t){return Yt(this._rgb,1,t),this}desaturate(t){return Yt(this._rgb,1,-t),this}rotate(t){return function(t,e){var i=Et(t);i[0]=zt(i[0]+e),i=It(i),t.r=i[0],t.g=i[1],t.b=i[2]}(this._rgb,t),this}}function Kt(t){return new Color(t)}function Gt(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function Zt(t){return Gt(t)?t:Kt(t)}function Jt(t){return Gt(t)?t:Kt(t).saturate(.5).darken(.1).hexString()}const Qt=Object.create(null),te=Object.create(null);function ee(t,e){if(!e)return t;const i=e.split(".");for(let s=0,n=i.length;s<n;++s){const e=i[s];t=t[e]||(t[e]=Object.create(null))}return t}function ie(t,e,i){return"string"==typeof e?m(ee(t,e),i):m(ee(t,""),e)}var se=new class Defaults{constructor(t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>Jt(e.backgroundColor),this.hoverBorderColor=(t,e)=>Jt(e.borderColor),this.hoverColor=(t,e)=>Jt(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t)}set(t,e){return ie(this,t,e)}get(t){return ee(this,t)}describe(t,e){return ie(te,t,e)}override(t,e){return ie(Qt,t,e)}route(t,e,i,s){const o=ee(this,t),a=ee(this,i),l="_"+e;Object.defineProperties(o,{[l]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[l],e=a[s];return n(t)?Object.assign({},e,t):r(t,e)},set(t){this[l]=t}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function ne(){return"undefined"!=typeof window&&"undefined"!=typeof document}function oe(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function ae(t,e,i){let s;return"string"==typeof t?(s=parseInt(t,10),-1!==t.indexOf("%")&&(s=s/100*e.parentNode[i])):s=t,s}const re=t=>window.getComputedStyle(t,null);function le(t,e){return re(t).getPropertyValue(e)}const he=["top","right","bottom","left"];function ce(t,e,i){const s={};i=i?"-"+i:"";for(let n=0;n<4;n++){const o=he[n];s[o]=parseFloat(t[e+"-"+o+i])||0}return s.width=s.left+s.right,s.height=s.top+s.bottom,s}function de(t,e){if("native"in t)return t;const{canvas:i,currentDevicePixelRatio:s}=e,n=re(i),o="border-box"===n.boxSizing,a=ce(n,"padding"),r=ce(n,"border","width"),{x:l,y:h,box:c}=function(t,e){const i=t.touches,s=i&&i.length?i[0]:t,{offsetX:n,offsetY:o}=s;let a,r,l=!1;if(((t,e,i)=>(t>0||e>0)&&(!i||!i.shadowRoot))(n,o,t.target))a=n,r=o;else{const t=e.getBoundingClientRect();a=s.clientX-t.left,r=s.clientY-t.top,l=!0}return{x:a,y:r,box:l}}(t,i),d=a.left+(c&&r.left),u=a.top+(c&&r.top);let{width:f,height:g}=e;return o&&(f-=a.width+r.width,g-=a.height+r.height),{x:Math.round((l-d)/f*i.width/s),y:Math.round((h-u)/g*i.height/s)}}const ue=t=>Math.round(10*t)/10;function fe(t,e,i,s){const n=re(t),o=ce(n,"margin"),a=ae(n.maxWidth,t,"clientWidth")||O,r=ae(n.maxHeight,t,"clientHeight")||O,l=function(t,e,i){let s,n;if(void 0===e||void 0===i){const o=oe(t);if(o){const t=o.getBoundingClientRect(),a=re(o),r=ce(a,"border","width"),l=ce(a,"padding");e=t.width-l.width-r.width,i=t.height-l.height-r.height,s=ae(a.maxWidth,o,"clientWidth"),n=ae(a.maxHeight,o,"clientHeight")}else e=t.clientWidth,i=t.clientHeight}return{width:e,height:i,maxWidth:s||O,maxHeight:n||O}}(t,e,i);let{width:h,height:c}=l;if("content-box"===n.boxSizing){const t=ce(n,"border","width"),e=ce(n,"padding");h-=e.width+t.width,c-=e.height+t.height}return h=Math.max(0,h-o.width),c=Math.max(0,s?Math.floor(h/s):c-o.height),h=ue(Math.min(h,a,l.maxWidth)),c=ue(Math.min(c,r,l.maxHeight)),h&&!c&&(c=ue(h/2)),{width:h,height:c}}function ge(t,e,i){const s=e||1,n=Math.floor(t.height*s),o=Math.floor(t.width*s);t.height=n/s,t.width=o/s;const a=t.canvas;return a.style&&(i||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==s||a.height!==n||a.width!==o)&&(t.currentDevicePixelRatio=s,a.height=n,a.width=o,t.ctx.setTransform(s,0,0,s,0,0),!0)}const pe=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}return t}();function me(t,e){const i=le(t,e),s=i&&i.match(/^(\d+)(\.\d+)?px$/);return s?+s[1]:void 0}function be(t){return!t||i(t.size)||i(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function xe(t,e,i,s,n){let o=e[n];return o||(o=e[n]=t.measureText(n).width,i.push(n)),o>s&&(s=o),s}function _e(t,e,i,n){let o=(n=n||{}).data=n.data||{},a=n.garbageCollect=n.garbageCollect||[];n.font!==e&&(o=n.data={},a=n.garbageCollect=[],n.font=e),t.save(),t.font=e;let r=0;const l=i.length;let h,c,d,u,f;for(h=0;h<l;h++)if(u=i[h],null!=u&&!0!==s(u))r=xe(t,o,a,r,u);else if(s(u))for(c=0,d=u.length;c<d;c++)f=u[c],null==f||s(f)||(r=xe(t,o,a,r,f));t.restore();const g=a.length/2;if(g>i.length){for(h=0;h<g;h++)delete o[a[h]];a.splice(0,g)}return r}function ye(t,e,i){const s=t.currentDevicePixelRatio,n=0!==i?Math.max(i/2,.5):0;return Math.round((e-n)*s)/s+n}function ve(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function we(t,e,i,s){Me(t,e,i,s,null)}function Me(t,e,i,s,n){let o,a,r,l,h,c;const d=e.pointStyle,u=e.rotation,f=e.radius;let g=(u||0)*T;if(d&&"object"==typeof d&&(o=d.toString(),"[object HTMLImageElement]"===o||"[object HTMLCanvasElement]"===o))return t.save(),t.translate(i,s),t.rotate(g),t.drawImage(d,-d.width/2,-d.height/2,d.width,d.height),void t.restore();if(!(isNaN(f)||f<=0)){switch(t.beginPath(),d){default:n?t.ellipse(i,s,n/2,f,0,0,D):t.arc(i,s,f,0,D),t.closePath();break;case"triangle":t.moveTo(i+Math.sin(g)*f,s-Math.cos(g)*f),g+=R,t.lineTo(i+Math.sin(g)*f,s-Math.cos(g)*f),g+=R,t.lineTo(i+Math.sin(g)*f,s-Math.cos(g)*f),t.closePath();break;case"rectRounded":h=.516*f,l=f-h,a=Math.cos(g+E)*l,r=Math.sin(g+E)*l,t.arc(i-a,s-r,h,g-C,g-L),t.arc(i+r,s-a,h,g-L,g),t.arc(i+a,s+r,h,g,g+L),t.arc(i-r,s+a,h,g+L,g+C),t.closePath();break;case"rect":if(!u){l=Math.SQRT1_2*f,c=n?n/2:l,t.rect(i-c,s-l,2*c,2*l);break}g+=E;case"rectRot":a=Math.cos(g)*f,r=Math.sin(g)*f,t.moveTo(i-a,s-r),t.lineTo(i+r,s-a),t.lineTo(i+a,s+r),t.lineTo(i-r,s+a),t.closePath();break;case"crossRot":g+=E;case"cross":a=Math.cos(g)*f,r=Math.sin(g)*f,t.moveTo(i-a,s-r),t.lineTo(i+a,s+r),t.moveTo(i+r,s-a),t.lineTo(i-r,s+a);break;case"star":a=Math.cos(g)*f,r=Math.sin(g)*f,t.moveTo(i-a,s-r),t.lineTo(i+a,s+r),t.moveTo(i+r,s-a),t.lineTo(i-r,s+a),g+=E,a=Math.cos(g)*f,r=Math.sin(g)*f,t.moveTo(i-a,s-r),t.lineTo(i+a,s+r),t.moveTo(i+r,s-a),t.lineTo(i-r,s+a);break;case"line":a=n?n/2:Math.cos(g)*f,r=Math.sin(g)*f,t.moveTo(i-a,s-r),t.lineTo(i+a,s+r);break;case"dash":t.moveTo(i,s),t.lineTo(i+Math.cos(g)*f,s+Math.sin(g)*f)}t.fill(),e.borderWidth>0&&t.stroke()}}function ke(t,e,i){return i=i||.5,!e||t&&t.x>e.left-i&&t.x<e.right+i&&t.y>e.top-i&&t.y<e.bottom+i}function Se(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Pe(t){t.restore()}function Ce(t,e,i,s,n){if(!e)return t.lineTo(i.x,i.y);if("middle"===n){const s=(e.x+i.x)/2;t.lineTo(s,e.y),t.lineTo(s,i.y)}else"after"===n!=!!s?t.lineTo(e.x,i.y):t.lineTo(i.x,e.y);t.lineTo(i.x,i.y)}function De(t,e,i,s){if(!e)return t.lineTo(i.x,i.y);t.bezierCurveTo(s?e.cp1x:e.cp2x,s?e.cp1y:e.cp2y,s?i.cp2x:i.cp1x,s?i.cp2y:i.cp1y,i.x,i.y)}function Ae(t,e,n,o,a,r={}){const l=s(e)?e:[e],h=r.strokeWidth>0&&""!==r.strokeColor;let c,d;for(t.save(),t.font=a.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]);i(e.rotation)||t.rotate(e.rotation);e.color&&(t.fillStyle=e.color);e.textAlign&&(t.textAlign=e.textAlign);e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,r),c=0;c<l.length;++c)d=l[c],h&&(r.strokeColor&&(t.strokeStyle=r.strokeColor),i(r.strokeWidth)||(t.lineWidth=r.strokeWidth),t.strokeText(d,n,o,r.maxWidth)),t.fillText(d,n,o,r.maxWidth),Oe(t,n,o,d,r),o+=a.lineHeight;t.restore()}function Oe(t,e,i,s,n){if(n.strikethrough||n.underline){const o=t.measureText(s),a=e-o.actualBoundingBoxLeft,r=e+o.actualBoundingBoxRight,l=i-o.actualBoundingBoxAscent,h=i+o.actualBoundingBoxDescent,c=n.strikethrough?(l+h)/2:h;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=n.decorationWidth||2,t.moveTo(a,c),t.lineTo(r,c),t.stroke()}}function Te(t,e){const{x:i,y:s,w:n,h:o,radius:a}=e;t.arc(i+a.topLeft,s+a.topLeft,a.topLeft,-L,C,!0),t.lineTo(i,s+o-a.bottomLeft),t.arc(i+a.bottomLeft,s+o-a.bottomLeft,a.bottomLeft,C,L,!0),t.lineTo(i+n-a.bottomRight,s+o),t.arc(i+n-a.bottomRight,s+o-a.bottomRight,a.bottomRight,L,0,!0),t.lineTo(i+n,s+a.topRight),t.arc(i+n-a.topRight,s+a.topRight,a.topRight,0,-L,!0),t.lineTo(i+a.topLeft,s)}function Le(t,e=[""],i=t,s,n=(()=>t[0])){M(s)||(s=je("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:i,_fallback:s,_getTarget:n,override:n=>Le([n,...t],e,i,s)};return new Proxy(o,{deleteProperty:(e,i)=>(delete e[i],delete e._keys,delete t[0][i],!0),get:(i,s)=>Fe(i,s,(()=>function(t,e,i,s){let n;for(const o of e)if(n=je(Ie(o,t),i),M(n))return ze(t,n)?We(i,s,t,n):n}(s,e,t,i))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>$e(t).includes(e),ownKeys:t=>$e(t),set(t,e,i){const s=t._storage||(t._storage=n());return t[e]=s[e]=i,delete t._keys,!0}})}function Ee(t,e,i,o){const a={_cacheable:!1,_proxy:t,_context:e,_subProxy:i,_stack:new Set,_descriptors:Re(t,o),setContext:e=>Ee(t,e,i,o),override:s=>Ee(t.override(s),e,i,o)};return new Proxy(a,{deleteProperty:(e,i)=>(delete e[i],delete t[i],!0),get:(t,e,i)=>Fe(t,e,(()=>function(t,e,i){const{_proxy:o,_context:a,_subProxy:r,_descriptors:l}=t;let h=o[e];k(h)&&l.isScriptable(e)&&(h=function(t,e,i,s){const{_proxy:n,_context:o,_subProxy:a,_stack:r}=i;if(r.has(t))throw new Error("Recursion detected: "+Array.from(r).join("->")+"->"+t);r.add(t),e=e(o,a||s),r.delete(t),ze(t,e)&&(e=We(n._scopes,n,t,e));return e}(e,h,t,i));s(h)&&h.length&&(h=function(t,e,i,s){const{_proxy:o,_context:a,_subProxy:r,_descriptors:l}=i;if(M(a.index)&&s(t))e=e[a.index%e.length];else if(n(e[0])){const i=e,s=o._scopes.filter((t=>t!==i));e=[];for(const n of i){const i=We(s,o,t,n);e.push(Ee(i,a,r&&r[t],l))}}return e}(e,h,t,l.isIndexable));ze(e,h)&&(h=Ee(h,a,r&&r[e],l));return h}(t,e,i))),getOwnPropertyDescriptor:(e,i)=>e._descriptors.allKeys?Reflect.has(t,i)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,i),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,i)=>Reflect.has(t,i),ownKeys:()=>Reflect.ownKeys(t),set:(e,i,s)=>(t[i]=s,delete e[i],!0)})}function Re(t,e={scriptable:!0,indexable:!0}){const{_scriptable:i=e.scriptable,_indexable:s=e.indexable,_allKeys:n=e.allKeys}=t;return{allKeys:n,scriptable:i,indexable:s,isScriptable:k(i)?i:()=>i,isIndexable:k(s)?s:()=>s}}const Ie=(t,e)=>t?t+w(e):e,ze=(t,e)=>n(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Fe(t,e,i){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const s=i();return t[e]=s,s}function Be(t,e,i){return k(t)?t(e,i):t}const Ve=(t,e)=>!0===t?e:"string"==typeof t?y(e,t):void 0;function Ne(t,e,i,s,n){for(const o of e){const e=Ve(i,o);if(e){t.add(e);const o=Be(e._fallback,i,n);if(M(o)&&o!==i&&o!==s)return o}else if(!1===e&&M(s)&&i!==s)return null}return!1}function We(t,e,i,o){const a=e._rootScopes,r=Be(e._fallback,i,o),l=[...t,...a],h=new Set;h.add(o);let c=He(h,l,i,r||i,o);return null!==c&&((!M(r)||r===i||(c=He(h,l,r,c,o),null!==c))&&Le(Array.from(h),[""],a,r,(()=>function(t,e,i){const o=t._getTarget();e in o||(o[e]={});const a=o[e];if(s(a)&&n(i))return i;return a}(e,i,o))))}function He(t,e,i,s,n){for(;i;)i=Ne(t,e,i,s,n);return i}function je(t,e){for(const i of e){if(!i)continue;const e=i[t];if(M(e))return e}}function $e(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const i of t)for(const t of Object.keys(i).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}function Ye(t,e,i,s){const{iScale:n}=t,{key:o="r"}=this._parsing,a=new Array(s);let r,l,h,c;for(r=0,l=s;r<l;++r)h=r+i,c=e[h],a[r]={r:n.parse(y(c,o),h)};return a}const Ue=Number.EPSILON||1e-14,Xe=(t,e)=>e<t.length&&!t[e].skip&&t[e],qe=t=>"x"===t?"y":"x";function Ke(t,e,i,s){const n=t.skip?e:t,o=e,a=i.skip?e:i,r=X(o,n),l=X(a,o);let h=r/(r+l),c=l/(r+l);h=isNaN(h)?0:h,c=isNaN(c)?0:c;const d=s*h,u=s*c;return{previous:{x:o.x-d*(a.x-n.x),y:o.y-d*(a.y-n.y)},next:{x:o.x+u*(a.x-n.x),y:o.y+u*(a.y-n.y)}}}function Ge(t,e="x"){const i=qe(e),s=t.length,n=Array(s).fill(0),o=Array(s);let a,r,l,h=Xe(t,0);for(a=0;a<s;++a)if(r=l,l=h,h=Xe(t,a+1),l){if(h){const t=h[e]-l[e];n[a]=0!==t?(h[i]-l[i])/t:0}o[a]=r?h?z(n[a-1])!==z(n[a])?0:(n[a-1]+n[a])/2:n[a-1]:n[a]}!function(t,e,i){const s=t.length;let n,o,a,r,l,h=Xe(t,0);for(let c=0;c<s-1;++c)l=h,h=Xe(t,c+1),l&&h&&(N(e[c],0,Ue)?i[c]=i[c+1]=0:(n=i[c]/e[c],o=i[c+1]/e[c],r=Math.pow(n,2)+Math.pow(o,2),r<=9||(a=3/Math.sqrt(r),i[c]=n*a*e[c],i[c+1]=o*a*e[c])))}(t,n,o),function(t,e,i="x"){const s=qe(i),n=t.length;let o,a,r,l=Xe(t,0);for(let h=0;h<n;++h){if(a=r,r=l,l=Xe(t,h+1),!r)continue;const n=r[i],c=r[s];a&&(o=(n-a[i])/3,r[`cp1${i}`]=n-o,r[`cp1${s}`]=c-o*e[h]),l&&(o=(l[i]-n)/3,r[`cp2${i}`]=n+o,r[`cp2${s}`]=c+o*e[h])}}(t,o,e)}function Ze(t,e,i){return Math.max(Math.min(t,i),e)}function Je(t,e,i,s,n){let o,a,r,l;if(e.spanGaps&&(t=t.filter((t=>!t.skip))),"monotone"===e.cubicInterpolationMode)Ge(t,n);else{let i=s?t[t.length-1]:t[0];for(o=0,a=t.length;o<a;++o)r=t[o],l=Ke(i,r,t[Math.min(o+1,a-(s?0:1))%a],e.tension),r.cp1x=l.previous.x,r.cp1y=l.previous.y,r.cp2x=l.next.x,r.cp2y=l.next.y,i=r}e.capBezierPoints&&function(t,e){let i,s,n,o,a,r=ke(t[0],e);for(i=0,s=t.length;i<s;++i)a=o,o=r,r=i<s-1&&ke(t[i+1],e),o&&(n=t[i],a&&(n.cp1x=Ze(n.cp1x,e.left,e.right),n.cp1y=Ze(n.cp1y,e.top,e.bottom)),r&&(n.cp2x=Ze(n.cp2x,e.left,e.right),n.cp2y=Ze(n.cp2y,e.top,e.bottom)))}(t,i)}const Qe=t=>0===t||1===t,ti=(t,e,i)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*D/i),ei=(t,e,i)=>Math.pow(2,-10*t)*Math.sin((t-e)*D/i)+1,ii={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*L),easeOutSine:t=>Math.sin(t*L),easeInOutSine:t=>-.5*(Math.cos(C*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>Qe(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Qe(t)?t:ti(t,.075,.3),easeOutElastic:t=>Qe(t)?t:ei(t,.075,.3),easeInOutElastic(t){const e=.1125;return Qe(t)?t:t<.5?.5*ti(2*t,e,.45):.5+.5*ei(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-ii.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,i=2.75;return t<1/i?e*t*t:t<2/i?e*(t-=1.5/i)*t+.75:t<2.5/i?e*(t-=2.25/i)*t+.9375:e*(t-=2.625/i)*t+.984375},easeInOutBounce:t=>t<.5?.5*ii.easeInBounce(2*t):.5*ii.easeOutBounce(2*t-1)+.5};function si(t,e,i,s){return{x:t.x+i*(e.x-t.x),y:t.y+i*(e.y-t.y)}}function ni(t,e,i,s){return{x:t.x+i*(e.x-t.x),y:"middle"===s?i<.5?t.y:e.y:"after"===s?i<1?t.y:e.y:i>0?e.y:t.y}}function oi(t,e,i,s){const n={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},a=si(t,n,i),r=si(n,o,i),l=si(o,e,i),h=si(a,r,i),c=si(r,l,i);return si(h,c,i)}const ai=new Map;function ri(t,e,i){return function(t,e){e=e||{};const i=t+JSON.stringify(e);let s=ai.get(i);return s||(s=new Intl.NumberFormat(t,e),ai.set(i,s)),s}(e,i).format(t)}const li=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),hi=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function ci(t,e){const i=(""+t).match(li);if(!i||"normal"===i[1])return 1.2*e;switch(t=+i[2],i[3]){case"px":return t;case"%":t/=100}return e*t}function di(t,e){const i={},s=n(e),o=s?Object.keys(e):e,a=n(t)?s?i=>r(t[i],t[e[i]]):e=>t[e]:()=>t;for(const n of o)i[n]=+a(n)||0;return i}function ui(t){return di(t,{top:"y",right:"x",bottom:"y",left:"x"})}function fi(t){return di(t,["topLeft","topRight","bottomLeft","bottomRight"])}function gi(t){const e=ui(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function pi(t,e){t=t||{},e=e||se.font;let i=r(t.size,e.size);"string"==typeof i&&(i=parseInt(i,10));let s=r(t.style,e.style);s&&!(""+s).match(hi)&&(console.warn('Invalid font style specified: "'+s+'"'),s="");const n={family:r(t.family,e.family),lineHeight:ci(r(t.lineHeight,e.lineHeight),i),size:i,style:s,weight:r(t.weight,e.weight),string:""};return n.string=be(n),n}function mi(t,e,i,n){let o,a,r,l=!0;for(o=0,a=t.length;o<a;++o)if(r=t[o],void 0!==r&&(void 0!==e&&"function"==typeof r&&(r=r(e),l=!1),void 0!==i&&s(r)&&(r=r[i%r.length],l=!1),void 0!==r))return n&&!l&&(n.cacheable=!1),r}function bi(t,e,i){const{min:s,max:n}=t,o=h(e,(n-s)/2),a=(t,e)=>i&&0===t?0:t+e;return{min:a(s,-Math.abs(o)),max:a(n,o)}}function xi(t,e){return Object.assign(Object.create(t),e)}function _i(t,e,i){return t?function(t,e){return{x:i=>t+t+e-i,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,i):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function yi(t,e){let i,s;"ltr"!==e&&"rtl"!==e||(i=t.canvas.style,s=[i.getPropertyValue("direction"),i.getPropertyPriority("direction")],i.setProperty("direction",e,"important"),t.prevTextDirection=s)}function vi(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function wi(t){return"angle"===t?{between:G,compare:q,normalize:K}:{between:Q,compare:(t,e)=>t-e,normalize:t=>t}}function Mi({start:t,end:e,count:i,loop:s,style:n}){return{start:t%i,end:e%i,loop:s&&(e-t+1)%i==0,style:n}}function ki(t,e,i){if(!i)return[t];const{property:s,start:n,end:o}=i,a=e.length,{compare:r,between:l,normalize:h}=wi(s),{start:c,end:d,loop:u,style:f}=function(t,e,i){const{property:s,start:n,end:o}=i,{between:a,normalize:r}=wi(s),l=e.length;let h,c,{start:d,end:u,loop:f}=t;if(f){for(d+=l,u+=l,h=0,c=l;h<c&&a(r(e[d%l][s]),n,o);++h)d--,u--;d%=l,u%=l}return u<d&&(u+=l),{start:d,end:u,loop:f,style:t.style}}(t,e,i),g=[];let p,m,b,x=!1,_=null;const y=()=>x||l(n,b,p)&&0!==r(n,b),v=()=>!x||0===r(o,p)||l(o,b,p);for(let w=c,M=c;w<=d;++w)m=e[w%a],m.skip||(p=h(m[s]),p!==b&&(x=l(p,n,o),null===_&&y()&&(_=0===r(p,n)?w:M),null!==_&&v()&&(g.push(Mi({start:_,end:w,loop:u,count:a,style:f})),_=null),M=w,b=p));return null!==_&&g.push(Mi({start:_,end:d,loop:u,count:a,style:f})),g}function Si(t,e){const i=[],s=t.segments;for(let n=0;n<s.length;n++){const o=ki(s[n],t.points,e);o.length&&i.push(...o)}return i}function Pi(t,e){const i=t.points,s=t.options.spanGaps,n=i.length;if(!n)return[];const o=!!t._loop,{start:a,end:r}=function(t,e,i,s){let n=0,o=e-1;if(i&&!s)for(;n<e&&!t[n].skip;)n++;for(;n<e&&t[n].skip;)n++;for(n%=e,i&&(o+=n);o>n&&t[o%e].skip;)o--;return o%=e,{start:n,end:o}}(i,n,o,s);if(!0===s)return Ci(t,[{start:a,end:r,loop:o}],i,e);return Ci(t,function(t,e,i,s){const n=t.length,o=[];let a,r=e,l=t[e];for(a=e+1;a<=i;++a){const i=t[a%n];i.skip||i.stop?l.skip||(s=!1,o.push({start:e%n,end:(a-1)%n,loop:s}),e=r=i.stop?a:null):(r=a,l.skip&&(e=a)),l=i}return null!==r&&o.push({start:e%n,end:r%n,loop:s}),o}(i,a,r<a?r+n:r,!!t._fullLoop&&0===a&&r===n-1),i,e)}function Ci(t,e,i,s){return s&&s.setContext&&i?function(t,e,i,s){const n=t._chart.getContext(),o=Di(t.options),{_datasetIndex:a,options:{spanGaps:r}}=t,l=i.length,h=[];let c=o,d=e[0].start,u=d;function f(t,e,s,n){const o=r?-1:1;if(t!==e){for(t+=l;i[t%l].skip;)t-=o;for(;i[e%l].skip;)e+=o;t%l!=e%l&&(h.push({start:t%l,end:e%l,loop:s,style:n}),c=n,d=e%l)}}for(const g of e){d=r?d:g.start;let t,e=i[d%l];for(u=d+1;u<=g.end;u++){const o=i[u%l];t=Di(s.setContext(xi(n,{type:"segment",p0:e,p1:o,p0DataIndex:(u-1)%l,p1DataIndex:u%l,datasetIndex:a}))),Ai(t,c)&&f(d,u-1,g.loop,c),e=o,c=t}d<u-1&&f(d,u-1,g.loop,c)}return h}(t,e,i,s):e}function Di(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function Ai(t,e){return e&&JSON.stringify(t)!==JSON.stringify(e)}var Oi=Object.freeze({__proto__:null,easingEffects:ii,isPatternOrGradient:Gt,color:Zt,getHoverColor:Jt,noop:t,uid:e,isNullOrUndef:i,isArray:s,isObject:n,isFinite:o,finiteOrDefault:a,valueOrDefault:r,toPercentage:l,toDimension:h,callback:c,each:d,_elementsEqual:u,clone:f,_merger:p,merge:m,mergeIf:b,_mergerIf:x,_deprecated:function(t,e,i,s){void 0!==e&&console.warn(t+': "'+i+'" is deprecated. Please use "'+s+'" instead')},resolveObjectKey:y,_splitKey:v,_capitalize:w,defined:M,isFunction:k,setsEqual:S,_isClickEvent:P,toFontString:be,_measureText:xe,_longestText:_e,_alignPixel:ye,clearCanvas:ve,drawPoint:we,drawPointLegend:Me,_isPointInArea:ke,clipArea:Se,unclipArea:Pe,_steppedLineTo:Ce,_bezierCurveTo:De,renderText:Ae,addRoundedRectPath:Te,_lookup:tt,_lookupByKey:et,_rlookupByKey:it,_filterBetween:st,listenArrayEvents:ot,unlistenArrayEvents:at,_arrayUnique:rt,_createResolver:Le,_attachContext:Ee,_descriptors:Re,_parseObjectDataRadialScale:Ye,splineCurve:Ke,splineCurveMonotone:Ge,_updateBezierControlPoints:Je,_isDomSupported:ne,_getParentNode:oe,getStyle:le,getRelativePosition:de,getMaximumSize:fe,retinaScale:ge,supportsEventListenerOptions:pe,readUsedSize:me,fontString:function(t,e,i){return e+" "+t+"px "+i},requestAnimFrame:lt,throttled:ht,debounce:ct,_toLeftRightCenter:dt,_alignStartEnd:ut,_textX:ft,_getStartAndCountOfVisiblePoints:gt,_scaleRangesChanged:pt,_pointInLine:si,_steppedInterpolation:ni,_bezierInterpolation:oi,formatNumber:ri,toLineHeight:ci,_readValueToProps:di,toTRBL:ui,toTRBLCorners:fi,toPadding:gi,toFont:pi,resolve:mi,_addGrace:bi,createContext:xi,PI:C,TAU:D,PITAU:A,INFINITY:O,RAD_PER_DEG:T,HALF_PI:L,QUARTER_PI:E,TWO_THIRDS_PI:R,log10:I,sign:z,niceNum:F,_factorize:B,isNumber:V,almostEquals:N,almostWhole:W,_setMinAndMaxByKey:H,toRadians:j,toDegrees:$,_decimalPlaces:Y,getAngleFromPoint:U,distanceBetweenPoints:X,_angleDiff:q,_normalizeAngle:K,_angleBetween:G,_limitValue:Z,_int16Range:J,_isBetween:Q,getRtlAdapter:_i,overrideTextDirection:yi,restoreTextDirection:vi,_boundSegment:ki,_boundSegments:Si,_computeSegments:Pi});function Ti(t,e,i,s){const{controller:n,data:o,_sorted:a}=t,r=n._cachedMeta.iScale;if(r&&e===r.axis&&"r"!==e&&a&&o.length){const t=r._reversePixels?it:et;if(!s)return t(o,e,i);if(n._sharedOptions){const s=o[0],n="function"==typeof s.getRange&&s.getRange(e);if(n){const s=t(o,e,i-n),a=t(o,e,i+n);return{lo:s.lo,hi:a.hi}}}}return{lo:0,hi:o.length-1}}function Li(t,e,i,s,n){const o=t.getSortedVisibleDatasetMetas(),a=i[e];for(let r=0,l=o.length;r<l;++r){const{index:t,data:i}=o[r],{lo:l,hi:h}=Ti(o[r],e,a,n);for(let e=l;e<=h;++e){const n=i[e];n.skip||s(n,t,e)}}}function Ei(t,e,i,s,n){const o=[];if(!n&&!t.isPointInArea(e))return o;return Li(t,i,e,(function(i,a,r){(n||ke(i,t.chartArea,0))&&i.inRange(e.x,e.y,s)&&o.push({element:i,datasetIndex:a,index:r})}),!0),o}function Ri(t,e,i,s,n,o){let a=[];const r=function(t){const e=-1!==t.indexOf("x"),i=-1!==t.indexOf("y");return function(t,s){const n=e?Math.abs(t.x-s.x):0,o=i?Math.abs(t.y-s.y):0;return Math.sqrt(Math.pow(n,2)+Math.pow(o,2))}}(i);let l=Number.POSITIVE_INFINITY;return Li(t,i,e,(function(i,h,c){const d=i.inRange(e.x,e.y,n);if(s&&!d)return;const u=i.getCenterPoint(n);if(!(!!o||t.isPointInArea(u))&&!d)return;const f=r(e,u);f<l?(a=[{element:i,datasetIndex:h,index:c}],l=f):f===l&&a.push({element:i,datasetIndex:h,index:c})})),a}function Ii(t,e,i,s,n,o){return o||t.isPointInArea(e)?"r"!==i||s?Ri(t,e,i,s,n,o):function(t,e,i,s){let n=[];return Li(t,i,e,(function(t,i,o){const{startAngle:a,endAngle:r}=t.getProps(["startAngle","endAngle"],s),{angle:l}=U(t,{x:e.x,y:e.y});G(l,a,r)&&n.push({element:t,datasetIndex:i,index:o})})),n}(t,e,i,n):[]}function zi(t,e,i,s,n){const o=[],a="x"===i?"inXRange":"inYRange";let r=!1;return Li(t,i,e,((t,s,l)=>{t[a](e[i],n)&&(o.push({element:t,datasetIndex:s,index:l}),r=r||t.inRange(e.x,e.y,n))})),s&&!r?[]:o}var Fi={evaluateInteractionItems:Li,modes:{index(t,e,i,s){const n=de(e,t),o=i.axis||"x",a=i.includeInvisible||!1,r=i.intersect?Ei(t,n,o,s,a):Ii(t,n,o,!1,s,a),l=[];return r.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=r[0].index,i=t.data[e];i&&!i.skip&&l.push({element:i,datasetIndex:t.index,index:e})})),l):[]},dataset(t,e,i,s){const n=de(e,t),o=i.axis||"xy",a=i.includeInvisible||!1;let r=i.intersect?Ei(t,n,o,s,a):Ii(t,n,o,!1,s,a);if(r.length>0){const e=r[0].datasetIndex,i=t.getDatasetMeta(e).data;r=[];for(let t=0;t<i.length;++t)r.push({element:i[t],datasetIndex:e,index:t})}return r},point:(t,e,i,s)=>Ei(t,de(e,t),i.axis||"xy",s,i.includeInvisible||!1),nearest(t,e,i,s){const n=de(e,t),o=i.axis||"xy",a=i.includeInvisible||!1;return Ii(t,n,o,i.intersect,s,a)},x:(t,e,i,s)=>zi(t,de(e,t),"x",i.intersect,s),y:(t,e,i,s)=>zi(t,de(e,t),"y",i.intersect,s)}};const Bi=["left","top","right","bottom"];function Vi(t,e){return t.filter((t=>t.pos===e))}function Ni(t,e){return t.filter((t=>-1===Bi.indexOf(t.pos)&&t.box.axis===e))}function Wi(t,e){return t.sort(((t,i)=>{const s=e?i:t,n=e?t:i;return s.weight===n.weight?s.index-n.index:s.weight-n.weight}))}function Hi(t,e){const i=function(t){const e={};for(const i of t){const{stack:t,pos:s,stackWeight:n}=i;if(!t||!Bi.includes(s))continue;const o=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=n}return e}(t),{vBoxMaxWidth:s,hBoxMaxHeight:n}=e;let o,a,r;for(o=0,a=t.length;o<a;++o){r=t[o];const{fullSize:a}=r.box,l=i[r.stack],h=l&&r.stackWeight/l.weight;r.horizontal?(r.width=h?h*s:a&&e.availableWidth,r.height=n):(r.width=s,r.height=h?h*n:a&&e.availableHeight)}return i}function ji(t,e,i,s){return Math.max(t[i],e[i])+Math.max(t[s],e[s])}function $i(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function Yi(t,e,i,s){const{pos:o,box:a}=i,r=t.maxPadding;if(!n(o)){i.size&&(t[o]-=i.size);const e=s[i.stack]||{size:0,count:1};e.size=Math.max(e.size,i.horizontal?a.height:a.width),i.size=e.size/e.count,t[o]+=i.size}a.getPadding&&$i(r,a.getPadding());const l=Math.max(0,e.outerWidth-ji(r,t,"left","right")),h=Math.max(0,e.outerHeight-ji(r,t,"top","bottom")),c=l!==t.w,d=h!==t.h;return t.w=l,t.h=h,i.horizontal?{same:c,other:d}:{same:d,other:c}}function Ui(t,e){const i=e.maxPadding;function s(t){const s={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{s[t]=Math.max(e[t],i[t])})),s}return s(t?["left","right"]:["top","bottom"])}function Xi(t,e,i,s){const n=[];let o,a,r,l,h,c;for(o=0,a=t.length,h=0;o<a;++o){r=t[o],l=r.box,l.update(r.width||e.w,r.height||e.h,Ui(r.horizontal,e));const{same:a,other:d}=Yi(e,i,r,s);h|=a&&n.length,c=c||d,l.fullSize||n.push(r)}return h&&Xi(n,e,i,s)||c}function qi(t,e,i,s,n){t.top=i,t.left=e,t.right=e+s,t.bottom=i+n,t.width=s,t.height=n}function Ki(t,e,i,s){const n=i.padding;let{x:o,y:a}=e;for(const r of t){const t=r.box,l=s[r.stack]||{count:1,placed:0,weight:1},h=r.stackWeight/l.weight||1;if(r.horizontal){const s=e.w*h,o=l.size||t.height;M(l.start)&&(a=l.start),t.fullSize?qi(t,n.left,a,i.outerWidth-n.right-n.left,o):qi(t,e.left+l.placed,a,s,o),l.start=a,l.placed+=s,a=t.bottom}else{const s=e.h*h,a=l.size||t.width;M(l.start)&&(o=l.start),t.fullSize?qi(t,o,n.top,a,i.outerHeight-n.bottom-n.top):qi(t,o,e.top+l.placed,a,s),l.start=o,l.placed+=s,o=t.right}}e.x=o,e.y=a}se.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var Gi={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const i=t.boxes?t.boxes.indexOf(e):-1;-1!==i&&t.boxes.splice(i,1)},configure(t,e,i){e.fullSize=i.fullSize,e.position=i.position,e.weight=i.weight},update(t,e,i,s){if(!t)return;const n=gi(t.options.layout.padding),o=Math.max(e-n.width,0),a=Math.max(i-n.height,0),r=function(t){const e=function(t){const e=[];let i,s,n,o,a,r;for(i=0,s=(t||[]).length;i<s;++i)n=t[i],({position:o,options:{stack:a,stackWeight:r=1}}=n),e.push({index:i,box:n,pos:o,horizontal:n.isHorizontal(),weight:n.weight,stack:a&&o+a,stackWeight:r});return e}(t),i=Wi(e.filter((t=>t.box.fullSize)),!0),s=Wi(Vi(e,"left"),!0),n=Wi(Vi(e,"right")),o=Wi(Vi(e,"top"),!0),a=Wi(Vi(e,"bottom")),r=Ni(e,"x"),l=Ni(e,"y");return{fullSize:i,leftAndTop:s.concat(o),rightAndBottom:n.concat(l).concat(a).concat(r),chartArea:Vi(e,"chartArea"),vertical:s.concat(n).concat(l),horizontal:o.concat(a).concat(r)}}(t.boxes),l=r.vertical,h=r.horizontal;d(t.boxes,(t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()}));const c=l.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,u=Object.freeze({outerWidth:e,outerHeight:i,padding:n,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/c,hBoxMaxHeight:a/2}),f=Object.assign({},n);$i(f,gi(s));const g=Object.assign({maxPadding:f,w:o,h:a,x:n.left,y:n.top},n),p=Hi(l.concat(h),u);Xi(r.fullSize,g,u,p),Xi(l,g,u,p),Xi(h,g,u,p)&&Xi(l,g,u,p),function(t){const e=t.maxPadding;function i(i){const s=Math.max(e[i]-t[i],0);return t[i]+=s,s}t.y+=i("top"),t.x+=i("left"),i("right"),i("bottom")}(g),Ki(r.leftAndTop,g,u,p),g.x+=g.w,g.y+=g.h,Ki(r.rightAndBottom,g,u,p),t.chartArea={left:g.left,top:g.top,right:g.left+g.w,bottom:g.top+g.h,height:g.h,width:g.w},d(r.chartArea,(e=>{const i=e.box;Object.assign(i,t.chartArea),i.update(g.w,g.h,{left:0,top:0,right:0,bottom:0})}))}};class BasePlatform{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,s){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,s?Math.floor(e/s):i)}}isAttached(t){return!0}updateConfig(t){}}class BasicPlatform extends BasePlatform{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Zi="$chartjs",Ji={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Qi=t=>null===t||""===t;const ts=!!pe&&{passive:!0};function es(t,e,i){t.canvas.removeEventListener(e,i,ts)}function is(t,e){for(const i of t)if(i===e||i.contains(e))return!0}function ss(t,e,i){const s=t.canvas,n=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||is(i.addedNodes,s),e=e&&!is(i.removedNodes,s);e&&i()}));return n.observe(document,{childList:!0,subtree:!0}),n}function ns(t,e,i){const s=t.canvas,n=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||is(i.removedNodes,s),e=e&&!is(i.addedNodes,s);e&&i()}));return n.observe(document,{childList:!0,subtree:!0}),n}const os=new Map;let as=0;function rs(){const t=window.devicePixelRatio;t!==as&&(as=t,os.forEach(((e,i)=>{i.currentDevicePixelRatio!==t&&e()})))}function ls(t,e,i){const s=t.canvas,n=s&&oe(s);if(!n)return;const o=ht(((t,e)=>{const s=n.clientWidth;i(t,e),s<n.clientWidth&&i()}),window),a=new ResizeObserver((t=>{const e=t[0],i=e.contentRect.width,s=e.contentRect.height;0===i&&0===s||o(i,s)}));return a.observe(n),function(t,e){os.size||window.addEventListener("resize",rs),os.set(t,e)}(t,o),a}function hs(t,e,i){i&&i.disconnect(),"resize"===e&&function(t){os.delete(t),os.size||window.removeEventListener("resize",rs)}(t)}function cs(t,e,i){const s=t.canvas,n=ht((e=>{null!==t.ctx&&i(function(t,e){const i=Ji[t.type]||t.type,{x:s,y:n}=de(t,e);return{type:i,chart:e,native:t,x:void 0!==s?s:null,y:void 0!==n?n:null}}(e,t))}),t,(t=>{const e=t[0];return[e,e.offsetX,e.offsetY]}));return function(t,e,i){t.addEventListener(e,i,ts)}(s,e,n),n}class DomPlatform extends BasePlatform{acquireContext(t,e){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(function(t,e){const i=t.style,s=t.getAttribute("height"),n=t.getAttribute("width");if(t[Zi]={initial:{height:s,width:n,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",Qi(n)){const e=me(t,"width");void 0!==e&&(t.width=e)}if(Qi(s))if(""===t.style.height)t.height=t.width/(e||2);else{const e=me(t,"height");void 0!==e&&(t.height=e)}}(t,e),i):null}releaseContext(t){const e=t.canvas;if(!e[Zi])return!1;const s=e[Zi].initial;["height","width"].forEach((t=>{const n=s[t];i(n)?e.removeAttribute(t):e.setAttribute(t,n)}));const n=s.style||{};return Object.keys(n).forEach((t=>{e.style[t]=n[t]})),e.width=e.width,delete e[Zi],!0}addEventListener(t,e,i){this.removeEventListener(t,e);const s=t.$proxies||(t.$proxies={}),n={attach:ss,detach:ns,resize:ls}[e]||cs;s[e]=n(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={}),s=i[e];if(!s)return;({attach:hs,detach:hs,resize:hs}[e]||es)(t,e,s),i[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,s){return fe(t,e,i,s)}isAttached(t){const e=oe(t);return!(!e||!e.isConnected)}}function ds(t){return!ne()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?BasicPlatform:DomPlatform}var us=Object.freeze({__proto__:null,_detectPlatform:ds,BasePlatform:BasePlatform,BasicPlatform:BasicPlatform,DomPlatform:DomPlatform});const fs="transparent",gs={boolean:(t,e,i)=>i>.5?e:t,color(t,e,i){const s=Zt(t||fs),n=s.valid&&Zt(e||fs);return n&&n.valid?n.mix(s,i).hexString():e},number:(t,e,i)=>t+(e-t)*i};class Animation{constructor(t,e,i,s){const n=e[i];s=mi([t.to,s,n,t.from]);const o=mi([t.from,n,s]);this._active=!0,this._fn=t.fn||gs[t.type||typeof o],this._easing=ii[t.easing]||ii.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=i,this._from=o,this._to=s,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);const s=this._target[this._prop],n=i-this._start,o=this._duration-n;this._start=i,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=n,this._loop=!!t.loop,this._to=mi([t.to,e,s,t.from]),this._from=mi([t.from,s,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,i=this._duration,s=this._prop,n=this._from,o=this._loop,a=this._to;let r;if(this._active=n!==a&&(o||e<i),!this._active)return this._target[s]=a,void this._notify(!0);e<0?this._target[s]=n:(r=e/i%2,r=o&&r>1?2-r:r,r=this._easing(Math.min(1,Math.max(0,r))),this._target[s]=this._fn(n,a,r))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,i)=>{t.push({res:e,rej:i})}))}_notify(t){const e=t?"res":"rej",i=this._promises||[];for(let s=0;s<i.length;s++)i[s][e]()}}se.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const ps=Object.keys(se.animation);se.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),se.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),se.describe("animations",{_fallback:"animation"}),se.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}});class Animations{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!n(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach((i=>{const o=t[i];if(!n(o))return;const a={};for(const t of ps)a[t]=o[t];(s(o.properties)&&o.properties||[i]).forEach((t=>{t!==i&&e.has(t)||e.set(t,a)}))}))}_animateOptions(t,e){const i=e.options,s=function(t,e){if(!e)return;let i=t.options;if(!i)return void(t.options=e);i.$shared&&(t.options=i=Object.assign({},i,{$shared:!1,$animations:{}}));return i}(t,i);if(!s)return[];const n=this._createAnimations(s,i);return i.$shared&&function(t,e){const i=[],s=Object.keys(e);for(let n=0;n<s.length;n++){const e=t[s[n]];e&&e.active()&&i.push(e.wait())}return Promise.all(i)}(t.options.$animations,i).then((()=>{t.options=i}),(()=>{})),n}_createAnimations(t,e){const i=this._properties,s=[],n=t.$animations||(t.$animations={}),o=Object.keys(e),a=Date.now();let r;for(r=o.length-1;r>=0;--r){const l=o[r];if("$"===l.charAt(0))continue;if("options"===l){s.push(...this._animateOptions(t,e));continue}const h=e[l];let c=n[l];const d=i.get(l);if(c){if(d&&c.active()){c.update(d,h,a);continue}c.cancel()}d&&d.duration?(n[l]=c=new Animation(d,t,l,h),s.push(c)):t[l]=h}return s}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const i=this._createAnimations(t,e);return i.length?(mt.add(this._chart,i),!0):void 0}}function ms(t,e){const i=t&&t.options||{},s=i.reverse,n=void 0===i.min?e:0,o=void 0===i.max?e:0;return{start:s?o:n,end:s?n:o}}function bs(t,e){const i=[],s=t._getSortedDatasetMetas(e);let n,o;for(n=0,o=s.length;n<o;++n)i.push(s[n].index);return i}function xs(t,e,i,s={}){const n=t.keys,a="single"===s.mode;let r,l,h,c;if(null!==e){for(r=0,l=n.length;r<l;++r){if(h=+n[r],h===i){if(s.all)continue;break}c=t.values[h],o(c)&&(a||0===e||z(e)===z(c))&&(e+=c)}return e}}function _s(t,e){const i=t&&t.options.stacked;return i||void 0===i&&void 0!==e.stack}function ys(t,e,i){const s=t[e]||(t[e]={});return s[i]||(s[i]={})}function vs(t,e,i,s){for(const n of e.getMatchingVisibleMetas(s).reverse()){const e=t[n.index];if(i&&e>0||!i&&e<0)return n.index}return null}function ws(t,e){const{chart:i,_cachedMeta:s}=t,n=i._stacks||(i._stacks={}),{iScale:o,vScale:a,index:r}=s,l=o.axis,h=a.axis,c=function(t,e,i){return`${t.id}.${e.id}.${i.stack||i.type}`}(o,a,s),d=e.length;let u;for(let f=0;f<d;++f){const t=e[f],{[l]:i,[h]:o}=t;u=(t._stacks||(t._stacks={}))[h]=ys(n,c,i),u[r]=o,u._top=vs(u,a,!0,s.type),u._bottom=vs(u,a,!1,s.type)}}function Ms(t,e){const i=t.scales;return Object.keys(i).filter((t=>i[t].axis===e)).shift()}function ks(t,e){const i=t.controller.index,s=t.vScale&&t.vScale.axis;if(s){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[s]||void 0===e[s][i])return;delete e[s][i]}}}const Ss=t=>"reset"===t||"none"===t,Ps=(t,e)=>e?t:Object.assign({},t);class DatasetController{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=_s(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&ks(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,i=this.getDataset(),s=(t,e,i,s)=>"x"===t?e:"r"===t?s:i,n=e.xAxisID=r(i.xAxisID,Ms(t,"x")),o=e.yAxisID=r(i.yAxisID,Ms(t,"y")),a=e.rAxisID=r(i.rAxisID,Ms(t,"r")),l=e.indexAxis,h=e.iAxisID=s(l,n,o,a),c=e.vAxisID=s(l,o,n,a);e.xScale=this.getScaleForId(n),e.yScale=this.getScaleForId(o),e.rScale=this.getScaleForId(a),e.iScale=this.getScaleForId(h),e.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&at(this._data,this),t._stacked&&ks(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if(n(e))this._data=function(t){const e=Object.keys(t),i=new Array(e.length);let s,n,o;for(s=0,n=e.length;s<n;++s)o=e[s],i[s]={x:o,y:t[o]};return i}(e);else if(i!==e){if(i){at(i,this);const t=this._cachedMeta;ks(t),t._parsed=[]}e&&Object.isExtensible(e)&&ot(e,this),this._syncList=[],this._data=e}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,i=this.getDataset();let s=!1;this._dataCheck();const n=e._stacked;e._stacked=_s(e.vScale,e),e.stack!==i.stack&&(s=!0,ks(e),e.stack=i.stack),this._resyncElements(t),(s||n!==e._stacked)&&ws(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:i,_data:o}=this,{iScale:a,_stacked:r}=i,l=a.axis;let h,c,d,u=0===t&&e===o.length||i._sorted,f=t>0&&i._parsed[t-1];if(!1===this._parsing)i._parsed=o,i._sorted=!0,d=o;else{d=s(o[t])?this.parseArrayData(i,o,t,e):n(o[t])?this.parseObjectData(i,o,t,e):this.parsePrimitiveData(i,o,t,e);const a=()=>null===c[l]||f&&c[l]<f[l];for(h=0;h<e;++h)i._parsed[h+t]=c=d[h],u&&(a()&&(u=!1),f=c);i._sorted=u}r&&ws(this,d)}parsePrimitiveData(t,e,i,s){const{iScale:n,vScale:o}=t,a=n.axis,r=o.axis,l=n.getLabels(),h=n===o,c=new Array(s);let d,u,f;for(d=0,u=s;d<u;++d)f=d+i,c[d]={[a]:h||n.parse(l[f],f),[r]:o.parse(e[f],f)};return c}parseArrayData(t,e,i,s){const{xScale:n,yScale:o}=t,a=new Array(s);let r,l,h,c;for(r=0,l=s;r<l;++r)h=r+i,c=e[h],a[r]={x:n.parse(c[0],h),y:o.parse(c[1],h)};return a}parseObjectData(t,e,i,s){const{xScale:n,yScale:o}=t,{xAxisKey:a="x",yAxisKey:r="y"}=this._parsing,l=new Array(s);let h,c,d,u;for(h=0,c=s;h<c;++h)d=h+i,u=e[d],l[h]={x:n.parse(y(u,a),d),y:o.parse(y(u,r),d)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,i){const s=this.chart,n=this._cachedMeta,o=e[t.axis];return xs({keys:bs(s,!0),values:e._stacks[t.axis]},o,n.index,{mode:i})}updateRangeFromParsed(t,e,i,s){const n=i[e.axis];let o=null===n?NaN:n;const a=s&&i._stacks[e.axis];s&&a&&(s.values=a,o=xs(s,n,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,e){const i=this._cachedMeta,s=i._parsed,n=i._sorted&&t===i.iScale,a=s.length,r=this._getOtherScale(t),l=((t,e,i)=>t&&!e.hidden&&e._stacked&&{keys:bs(i,!0),values:null})(e,i,this.chart),h={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:d}=function(t){const{min:e,max:i,minDefined:s,maxDefined:n}=t.getUserBounds();return{min:s?e:Number.NEGATIVE_INFINITY,max:n?i:Number.POSITIVE_INFINITY}}(r);let u,f;function g(){f=s[u];const e=f[r.axis];return!o(f[t.axis])||c>e||d<e}for(u=0;u<a&&(g()||(this.updateRangeFromParsed(h,t,f,l),!n));++u);if(n)for(u=a-1;u>=0;--u)if(!g()){this.updateRangeFromParsed(h,t,f,l);break}return h}getAllParsedValues(t){const e=this._cachedMeta._parsed,i=[];let s,n,a;for(s=0,n=e.length;s<n;++s)a=e[s][t.axis],o(a)&&i.push(a);return i}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,i=e.iScale,s=e.vScale,n=this.getParsed(t);return{label:i?""+i.getLabelForValue(n[i.axis]):"",value:s?""+s.getLabelForValue(n[s.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,i,s,o;return n(t)?(e=t.top,i=t.right,s=t.bottom,o=t.left):e=i=s=o=t,{top:e,right:i,bottom:s,left:o,disabled:!1===t}}(r(this.options.clip,function(t,e,i){if(!1===i)return!1;const s=ms(t,i),n=ms(e,i);return{top:n.end,right:s.end,bottom:n.start,left:s.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,i=this._cachedMeta,s=i.data||[],n=e.chartArea,o=[],a=this._drawStart||0,r=this._drawCount||s.length-a,l=this.options.drawActiveElementsOnTop;let h;for(i.dataset&&i.dataset.draw(t,n,a,r),h=a;h<a+r;++h){const e=s[h];e.hidden||(e.active&&l?o.push(e):e.draw(t,n))}for(h=0;h<o.length;++h)o[h].draw(t,n)}getStyle(t,e){const i=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(t||0,i)}getContext(t,e,i){const s=this.getDataset();let n;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];n=e.$context||(e.$context=function(t,e,i){return xi(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:i,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),n.parsed=this.getParsed(t),n.raw=s.data[t],n.index=n.dataIndex=t}else n=this.$context||(this.$context=function(t,e){return xi(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),n.dataset=s,n.index=n.datasetIndex=this.index;return n.active=!!e,n.mode=i,n}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",i){const s="active"===e,n=this._cachedDataOpts,o=t+"-"+e,a=n[o],r=this.enableOptionSharing&&M(i);if(a)return Ps(a,r);const l=this.chart.config,h=l.datasetElementScopeKeys(this._type,t),c=s?[`${t}Hover`,"hover",t,""]:[t,""],d=l.getOptionScopes(this.getDataset(),h),u=Object.keys(se.elements[t]),f=l.resolveNamedOptions(d,u,(()=>this.getContext(i,s)),c);return f.$shared&&(f.$shared=r,n[o]=Object.freeze(Ps(f,r))),f}_resolveAnimations(t,e,i){const s=this.chart,n=this._cachedDataOpts,o=`animation-${e}`,a=n[o];if(a)return a;let r;if(!1!==s.options.animation){const s=this.chart.config,n=s.datasetAnimationScopeKeys(this._type,e),o=s.getOptionScopes(this.getDataset(),n);r=s.createResolver(o,this.getContext(t,i,e))}const l=new Animations(s,r&&r.animations);return r&&r._cacheable&&(n[o]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Ss(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const i=this.resolveDataElementOptions(t,e),s=this._sharedOptions,n=this.getSharedOptions(i),o=this.includeOptions(e,n)||n!==s;return this.updateSharedOptions(n,e,i),{sharedOptions:n,includeOptions:o}}updateElement(t,e,i,s){Ss(s)?Object.assign(t,i):this._resolveAnimations(e,s).update(t,i)}updateSharedOptions(t,e,i){t&&!Ss(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,s){t.active=s;const n=this.getStyle(e,s);this._resolveAnimations(e,i,s).update(t,{options:!s&&this.getSharedOptions(n)||n})}removeHoverStyle(t,e,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,i=this._cachedMeta.data;for(const[a,r,l]of this._syncList)this[a](r,l);this._syncList=[];const s=i.length,n=e.length,o=Math.min(n,s);o&&this.parse(0,o),n>s?this._insertElements(s,n-s,t):n<s&&this._removeElements(n,s-n)}_insertElements(t,e,i=!0){const s=this._cachedMeta,n=s.data,o=t+e;let a;const r=t=>{for(t.length+=e,a=t.length-1;a>=o;a--)t[a]=t[a-e]};for(r(n),a=t;a<o;++a)n[a]=new this.dataElementType;this._parsing&&r(s._parsed),this.parse(t,e),i&&this.updateElements(n,t,e,"reset")}updateElements(t,e,i,s){}_removeElements(t,e){const i=this._cachedMeta;if(this._parsing){const s=i._parsed.splice(t,e);i._stacked&&ks(i,s)}i.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,i,s]=t;this[e](i,s)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const i=arguments.length-2;i&&this._sync(["_insertElements",t,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}DatasetController.defaults={},DatasetController.prototype.datasetElementType=null,DatasetController.prototype.dataElementType=null;class Element{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}hasValue(){return V(this.x)&&V(this.y)}getProps(t,e){const i=this.$animations;if(!e||!i)return this;const s={};return t.forEach((t=>{s[t]=i[t]&&i[t].active()?i[t]._to:this[t]})),s}}Element.defaults={},Element.defaultRoutes=void 0;const Cs={values:t=>s(t)?t:""+t,numeric(t,e,i){if(0===t)return"0";const s=this.chart.options.locale;let n,o=t;if(i.length>1){const e=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value));(e<1e-4||e>1e15)&&(n="scientific"),o=function(t,e){let i=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;Math.abs(i)>=1&&t!==Math.floor(t)&&(i=t-Math.floor(t));return i}(t,i)}const a=I(Math.abs(o)),r=Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:n,minimumFractionDigits:r,maximumFractionDigits:r};return Object.assign(l,this.options.ticks.format),ri(t,s,l)},logarithmic(t,e,i){if(0===t)return"0";const s=t/Math.pow(10,Math.floor(I(t)));return 1===s||2===s||5===s?Cs.numeric.call(this,t,e,i):""}};var Ds={formatters:Cs};function As(t,e){const s=t.options.ticks,n=s.maxTicksLimit||function(t){const e=t.options.offset,i=t._tickSize(),s=t._length/i+(e?0:1),n=t._maxLength/i;return Math.floor(Math.min(s,n))}(t),o=s.major.enabled?function(t){const e=[];let i,s;for(i=0,s=t.length;i<s;i++)t[i].major&&e.push(i);return e}(e):[],a=o.length,r=o[0],l=o[a-1],h=[];if(a>n)return function(t,e,i,s){let n,o=0,a=i[0];for(s=Math.ceil(s),n=0;n<t.length;n++)n===a&&(e.push(t[n]),o++,a=i[o*s])}(e,h,o,a/n),h;const c=function(t,e,i){const s=function(t){const e=t.length;let i,s;if(e<2)return!1;for(s=t[0],i=1;i<e;++i)if(t[i]-t[i-1]!==s)return!1;return s}(t),n=e.length/i;if(!s)return Math.max(n,1);const o=B(s);for(let a=0,r=o.length-1;a<r;a++){const t=o[a];if(t>n)return t}return Math.max(n,1)}(o,e,n);if(a>0){let t,s;const n=a>1?Math.round((l-r)/(a-1)):null;for(Os(e,h,c,i(n)?0:r-n,r),t=0,s=a-1;t<s;t++)Os(e,h,c,o[t],o[t+1]);return Os(e,h,c,l,i(n)?e.length:l+n),h}return Os(e,h,c),h}function Os(t,e,i,s,n){const o=r(s,0),a=Math.min(r(n,t.length),t.length);let l,h,c,d=0;for(i=Math.ceil(i),n&&(l=n-s,i=l/Math.floor(l/i)),c=o;c<0;)d++,c=Math.round(o+d*i);for(h=Math.max(o,0);h<a;h++)h===c&&(e.push(t[h]),d++,c=Math.round(o+d*i))}se.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Ds.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),se.route("scale.ticks","color","","color"),se.route("scale.grid","color","","borderColor"),se.route("scale.grid","borderColor","","borderColor"),se.route("scale.title","color","","color"),se.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),se.describe("scales",{_fallback:"scale"}),se.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const Ts=(t,e,i)=>"top"===e||"left"===e?t[e]+i:t[e]-i;function Ls(t,e){const i=[],s=t.length/e,n=t.length;let o=0;for(;o<n;o+=s)i.push(t[Math.floor(o)]);return i}function Es(t,e,i){const s=t.ticks.length,n=Math.min(e,s-1),o=t._startPixel,a=t._endPixel,r=1e-6;let l,h=t.getPixelForTick(n);if(!(i&&(l=1===s?Math.max(h-o,a-h):0===e?(t.getPixelForTick(1)-h)/2:(h-t.getPixelForTick(n-1))/2,h+=n<e?l:-l,h<o-r||h>a+r)))return h}function Rs(t){return t.drawTicks?t.tickLength:0}function Is(t,e){if(!t.display)return 0;const i=pi(t.font,e),n=gi(t.padding);return(s(t.text)?t.text.length:1)*i.lineHeight+n.height}function zs(t,e,i){let s=dt(t);return(i&&"right"!==e||!i&&"right"===e)&&(s=(t=>"left"===t?"right":"right"===t?"left":t)(s)),s}class Scale extends Element{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:i,_suggestedMax:s}=this;return t=a(t,Number.POSITIVE_INFINITY),e=a(e,Number.NEGATIVE_INFINITY),i=a(i,Number.POSITIVE_INFINITY),s=a(s,Number.NEGATIVE_INFINITY),{min:a(t,i),max:a(e,s),minDefined:o(t),maxDefined:o(e)}}getMinMax(t){let e,{min:i,max:s,minDefined:n,maxDefined:o}=this.getUserBounds();if(n&&o)return{min:i,max:s};const r=this.getMatchingVisibleMetas();for(let a=0,l=r.length;a<l;++a)e=r[a].controller.getMinMax(this,t),n||(i=Math.min(i,e.min)),o||(s=Math.max(s,e.max));return i=o&&i>s?s:i,s=n&&i>s?i:s,{min:a(i,a(s,i)),max:a(s,a(i,s))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){c(this.options.beforeUpdate,[this])}update(t,e,i){const{beginAtZero:s,grace:n,ticks:o}=this.options,a=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=bi(this,n,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const r=a<this.ticks.length;this._convertTicksToLabels(r?Ls(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||"auto"===o.source)&&(this.ticks=As(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),r&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,i=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,i=!i),this._startPixel=t,this._endPixel=e,this._reversePixels=i,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){c(this.options.afterUpdate,[this])}beforeSetDimensions(){c(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){c(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),c(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){c(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let i,s,n;for(i=0,s=t.length;i<s;i++)n=t[i],n.label=c(e.callback,[n.value,i,t],this)}afterTickToLabelConversion(){c(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){c(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,i=this.ticks.length,s=e.minRotation||0,n=e.maxRotation;let o,a,r,l=s;if(!this._isVisible()||!e.display||s>=n||i<=1||!this.isHorizontal())return void(this.labelRotation=s);const h=this._getLabelSizes(),c=h.widest.width,d=h.highest.height,u=Z(this.chart.width-c,0,this.maxWidth);o=t.offset?this.maxWidth/i:u/(i-1),c+6>o&&(o=u/(i-(t.offset?.5:1)),a=this.maxHeight-Rs(t.grid)-e.padding-Is(t.title,this.chart.options.font),r=Math.sqrt(c*c+d*d),l=$(Math.min(Math.asin(Z((h.highest.height+6)/o,-1,1)),Math.asin(Z(a/r,-1,1))-Math.asin(Z(d/r,-1,1)))),l=Math.max(s,Math.min(n,l))),this.labelRotation=l}afterCalculateLabelRotation(){c(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){c(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:i,title:s,grid:n}}=this,o=this._isVisible(),a=this.isHorizontal();if(o){const o=Is(s,e.options.font);if(a?(t.width=this.maxWidth,t.height=Rs(n)+o):(t.height=this.maxHeight,t.width=Rs(n)+o),i.display&&this.ticks.length){const{first:e,last:s,widest:n,highest:o}=this._getLabelSizes(),r=2*i.padding,l=j(this.labelRotation),h=Math.cos(l),c=Math.sin(l);if(a){const e=i.mirror?0:c*n.width+h*o.height;t.height=Math.min(this.maxHeight,t.height+e+r)}else{const e=i.mirror?0:h*n.width+c*o.height;t.width=Math.min(this.maxWidth,t.width+e+r)}this._calculatePadding(e,s,c,h)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,i,s){const{ticks:{align:n,padding:o},position:a}=this.options,r=0!==this.labelRotation,l="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,h=this.right-this.getPixelForTick(this.ticks.length-1);let c=0,d=0;r?l?(c=s*t.width,d=i*e.height):(c=i*t.height,d=s*e.width):"start"===n?d=e.width:"end"===n?c=t.width:"inner"!==n&&(c=t.width/2,d=e.width/2),this.paddingLeft=Math.max((c-a+o)*this.width/(this.width-a),0),this.paddingRight=Math.max((d-h+o)*this.width/(this.width-h),0)}else{let i=e.height/2,s=t.height/2;"start"===n?(i=0,s=t.height):"end"===n&&(i=e.height,s=0),this.paddingTop=i+o,this.paddingBottom=s+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){c(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,s;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,s=t.length;e<s;e++)i(t[e].label)&&(t.splice(e,1),s--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let i=this.ticks;e<i.length&&(i=Ls(i,e)),this._labelSizes=t=this._computeLabelSizes(i,i.length)}return t}_computeLabelSizes(t,e){const{ctx:n,_longestTextCache:o}=this,a=[],r=[];let l,h,c,u,f,g,p,m,b,x,_,y=0,v=0;for(l=0;l<e;++l){if(u=t[l].label,f=this._resolveTickFontOptions(l),n.font=g=f.string,p=o[g]=o[g]||{data:{},gc:[]},m=f.lineHeight,b=x=0,i(u)||s(u)){if(s(u))for(h=0,c=u.length;h<c;++h)_=u[h],i(_)||s(_)||(b=xe(n,p.data,p.gc,b,_),x+=m)}else b=xe(n,p.data,p.gc,b,u),x=m;a.push(b),r.push(x),y=Math.max(b,y),v=Math.max(x,v)}!function(t,e){d(t,(t=>{const i=t.gc,s=i.length/2;let n;if(s>e){for(n=0;n<s;++n)delete t.data[i[n]];i.splice(0,s)}}))}(o,e);const w=a.indexOf(y),M=r.indexOf(v),k=t=>({width:a[t]||0,height:r[t]||0});return{first:k(0),last:k(e-1),widest:k(w),highest:k(M),widths:a,heights:r}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return J(this._alignToPixels?ye(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const i=e[t];return i.$context||(i.$context=function(t,e,i){return xi(t,{tick:i,index:e,type:"tick"})}(this.getContext(),t,i))}return this.$context||(this.$context=xi(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=j(this.labelRotation),i=Math.abs(Math.cos(e)),s=Math.abs(Math.sin(e)),n=this._getLabelSizes(),o=t.autoSkipPadding||0,a=n?n.widest.width+o:0,r=n?n.highest.height+o:0;return this.isHorizontal()?r*i>a*s?a/i:r/s:r*s<a*i?r/i:a/s}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,i=this.chart,s=this.options,{grid:o,position:a}=s,l=o.offset,h=this.isHorizontal(),c=this.ticks.length+(l?1:0),d=Rs(o),u=[],f=o.setContext(this.getContext()),g=f.drawBorder?f.borderWidth:0,p=g/2,m=function(t){return ye(i,t,g)};let b,x,_,y,v,w,M,k,S,P,C,D;if("top"===a)b=m(this.bottom),w=this.bottom-d,k=b-p,P=m(t.top)+p,D=t.bottom;else if("bottom"===a)b=m(this.top),P=t.top,D=m(t.bottom)-p,w=b+p,k=this.top+d;else if("left"===a)b=m(this.right),v=this.right-d,M=b-p,S=m(t.left)+p,C=t.right;else if("right"===a)b=m(this.left),S=t.left,C=m(t.right)-p,v=b+p,M=this.left+d;else if("x"===e){if("center"===a)b=m((t.top+t.bottom)/2+.5);else if(n(a)){const t=Object.keys(a)[0],e=a[t];b=m(this.chart.scales[t].getPixelForValue(e))}P=t.top,D=t.bottom,w=b+p,k=w+d}else if("y"===e){if("center"===a)b=m((t.left+t.right)/2);else if(n(a)){const t=Object.keys(a)[0],e=a[t];b=m(this.chart.scales[t].getPixelForValue(e))}v=b-p,M=v-d,S=t.left,C=t.right}const A=r(s.ticks.maxTicksLimit,c),O=Math.max(1,Math.ceil(c/A));for(x=0;x<c;x+=O){const t=o.setContext(this.getContext(x)),e=t.lineWidth,s=t.color,n=t.borderDash||[],a=t.borderDashOffset,r=t.tickWidth,c=t.tickColor,d=t.tickBorderDash||[],f=t.tickBorderDashOffset;_=Es(this,x,l),void 0!==_&&(y=ye(i,_,e),h?v=M=S=C=y:w=k=P=D=y,u.push({tx1:v,ty1:w,tx2:M,ty2:k,x1:S,y1:P,x2:C,y2:D,width:e,color:s,borderDash:n,borderDashOffset:a,tickWidth:r,tickColor:c,tickBorderDash:d,tickBorderDashOffset:f}))}return this._ticksLength=c,this._borderValue=b,u}_computeLabelItems(t){const e=this.axis,i=this.options,{position:o,ticks:a}=i,r=this.isHorizontal(),l=this.ticks,{align:h,crossAlign:c,padding:d,mirror:u}=a,f=Rs(i.grid),g=f+d,p=u?-d:g,m=-j(this.labelRotation),b=[];let x,_,y,v,w,M,k,S,P,C,D,A,O="middle";if("top"===o)M=this.bottom-p,k=this._getXAxisLabelAlignment();else if("bottom"===o)M=this.top+p,k=this._getXAxisLabelAlignment();else if("left"===o){const t=this._getYAxisLabelAlignment(f);k=t.textAlign,w=t.x}else if("right"===o){const t=this._getYAxisLabelAlignment(f);k=t.textAlign,w=t.x}else if("x"===e){if("center"===o)M=(t.top+t.bottom)/2+g;else if(n(o)){const t=Object.keys(o)[0],e=o[t];M=this.chart.scales[t].getPixelForValue(e)+g}k=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===o)w=(t.left+t.right)/2-g;else if(n(o)){const t=Object.keys(o)[0],e=o[t];w=this.chart.scales[t].getPixelForValue(e)}k=this._getYAxisLabelAlignment(f).textAlign}"y"===e&&("start"===h?O="top":"end"===h&&(O="bottom"));const T=this._getLabelSizes();for(x=0,_=l.length;x<_;++x){y=l[x],v=y.label;const t=a.setContext(this.getContext(x));S=this.getPixelForTick(x)+a.labelOffset,P=this._resolveTickFontOptions(x),C=P.lineHeight,D=s(v)?v.length:1;const e=D/2,i=t.color,n=t.textStrokeColor,h=t.textStrokeWidth;let d,f=k;if(r?(w=S,"inner"===k&&(f=x===_-1?this.options.reverse?"left":"right":0===x?this.options.reverse?"right":"left":"center"),A="top"===o?"near"===c||0!==m?-D*C+C/2:"center"===c?-T.highest.height/2-e*C+C:-T.highest.height+C/2:"near"===c||0!==m?C/2:"center"===c?T.highest.height/2-e*C:T.highest.height-D*C,u&&(A*=-1)):(M=S,A=(1-D)*C/2),t.showLabelBackdrop){const e=gi(t.backdropPadding),i=T.heights[x],s=T.widths[x];let n=M+A-e.top,o=w-e.left;switch(O){case"middle":n-=i/2;break;case"bottom":n-=i}switch(k){case"center":o-=s/2;break;case"right":o-=s}d={left:o,top:n,width:s+e.width,height:i+e.height,color:t.backdropColor}}b.push({rotation:m,label:v,font:P,color:i,strokeColor:n,strokeWidth:h,textOffset:A,textAlign:f,textBaseline:O,translation:[w,M],backdrop:d})}return b}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-j(this.labelRotation))return"top"===t?"left":"right";let i="center";return"start"===e.align?i="left":"end"===e.align?i="right":"inner"===e.align&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:i,mirror:s,padding:n}}=this.options,o=t+n,a=this._getLabelSizes().widest.width;let r,l;return"left"===e?s?(l=this.right+n,"near"===i?r="left":"center"===i?(r="center",l+=a/2):(r="right",l+=a)):(l=this.right-o,"near"===i?r="right":"center"===i?(r="center",l-=a/2):(r="left",l=this.left)):"right"===e?s?(l=this.left+n,"near"===i?r="right":"center"===i?(r="center",l-=a/2):(r="left",l-=a)):(l=this.left+o,"near"===i?r="left":"center"===i?(r="center",l+=a/2):(r="right",l=this.right)):r="right",{textAlign:r,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:i,top:s,width:n,height:o}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(i,s,n,o),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const i=this.ticks.findIndex((e=>e.value===t));if(i>=0){return e.setContext(this.getContext(i)).lineWidth}return 0}drawGrid(t){const e=this.options.grid,i=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let n,o;const a=(t,e,s)=>{s.width&&s.color&&(i.save(),i.lineWidth=s.width,i.strokeStyle=s.color,i.setLineDash(s.borderDash||[]),i.lineDashOffset=s.borderDashOffset,i.beginPath(),i.moveTo(t.x,t.y),i.lineTo(e.x,e.y),i.stroke(),i.restore())};if(e.display)for(n=0,o=s.length;n<o;++n){const t=s[n];e.drawOnChartArea&&a({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&a({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{grid:i}}=this,s=i.setContext(this.getContext()),n=i.drawBorder?s.borderWidth:0;if(!n)return;const o=i.setContext(this.getContext(0)).lineWidth,a=this._borderValue;let r,l,h,c;this.isHorizontal()?(r=ye(t,this.left,n)-n/2,l=ye(t,this.right,o)+o/2,h=c=a):(h=ye(t,this.top,n)-n/2,c=ye(t,this.bottom,o)+o/2,r=l=a),e.save(),e.lineWidth=s.borderWidth,e.strokeStyle=s.borderColor,e.beginPath(),e.moveTo(r,h),e.lineTo(l,c),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,i=this._computeLabelArea();i&&Se(e,i);const s=this._labelItems||(this._labelItems=this._computeLabelItems(t));let n,o;for(n=0,o=s.length;n<o;++n){const t=s[n],i=t.font,o=t.label;t.backdrop&&(e.fillStyle=t.backdrop.color,e.fillRect(t.backdrop.left,t.backdrop.top,t.backdrop.width,t.backdrop.height)),Ae(e,o,0,t.textOffset,i,t)}i&&Pe(e)}drawTitle(){const{ctx:t,options:{position:e,title:i,reverse:o}}=this;if(!i.display)return;const a=pi(i.font),r=gi(i.padding),l=i.align;let h=a.lineHeight/2;"bottom"===e||"center"===e||n(e)?(h+=r.bottom,s(i.text)&&(h+=a.lineHeight*(i.text.length-1))):h+=r.top;const{titleX:c,titleY:d,maxWidth:u,rotation:f}=function(t,e,i,s){const{top:o,left:a,bottom:r,right:l,chart:h}=t,{chartArea:c,scales:d}=h;let u,f,g,p=0;const m=r-o,b=l-a;if(t.isHorizontal()){if(f=ut(s,a,l),n(i)){const t=Object.keys(i)[0],s=i[t];g=d[t].getPixelForValue(s)+m-e}else g="center"===i?(c.bottom+c.top)/2+m-e:Ts(t,i,e);u=l-a}else{if(n(i)){const t=Object.keys(i)[0],s=i[t];f=d[t].getPixelForValue(s)-b+e}else f="center"===i?(c.left+c.right)/2-b+e:Ts(t,i,e);g=ut(s,r,o),p="left"===i?-L:L}return{titleX:f,titleY:g,maxWidth:u,rotation:p}}(this,h,e,l);Ae(t,i.text,0,0,a,{color:i.color,maxWidth:u,rotation:f,textAlign:zs(l,e,o),textBaseline:"middle",translation:[c,d]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,i=r(t.grid&&t.grid.z,-1);return this._isVisible()&&this.draw===Scale.prototype.draw?[{z:i,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:i+1,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",s=[];let n,o;for(n=0,o=e.length;n<o;++n){const o=e[n];o[i]!==this.id||t&&o.type!==t||s.push(o)}return s}_resolveTickFontOptions(t){return pi(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class TypedRegistry{constructor(t,e,i){this.type=t,this.scope=e,this.override=i,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let i;(function(t){return"id"in t&&"defaults"in t})(e)&&(i=this.register(e));const s=this.items,n=t.id,o=this.scope+"."+n;if(!n)throw new Error("class does not have id: "+t);return n in s||(s[n]=t,function(t,e,i){const s=m(Object.create(null),[i?se.get(i):{},se.get(e),t.defaults]);se.set(e,s),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((i=>{const s=i.split("."),n=s.pop(),o=[t].concat(s).join("."),a=e[i].split("."),r=a.pop(),l=a.join(".");se.route(o,n,l,r)}))}(e,t.defaultRoutes);t.descriptors&&se.describe(e,t.descriptors)}(t,o,i),this.override&&se.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const e=this.items,i=t.id,s=this.scope;i in e&&delete e[i],s&&i in se[s]&&(delete se[s][i],this.override&&delete Qt[i])}}var Fs=new class Registry{constructor(){this.controllers=new TypedRegistry(DatasetController,"datasets",!0),this.elements=new TypedRegistry(Element,"elements"),this.plugins=new TypedRegistry(Object,"plugins"),this.scales=new TypedRegistry(Scale,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,i){[...e].forEach((e=>{const s=i||this._getRegistryForType(e);i||s.isForType(e)||s===this.plugins&&e.id?this._exec(t,s,e):d(e,(e=>{const s=i||this._getRegistryForType(e);this._exec(t,s,e)}))}))}_exec(t,e,i){const s=w(t);c(i["before"+s],[],i),e[t](i),c(i["after"+s],[],i)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const i=this._typedRegistries[e];if(i.isForType(t))return i}return this.plugins}_get(t,e,i){const s=e.get(t);if(void 0===s)throw new Error('"'+t+'" is not a registered '+i+".");return s}};class PluginService{constructor(){this._init=[]}notify(t,e,i,s){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const n=s?this._descriptors(t).filter(s):this._descriptors(t),o=this._notify(n,t,e,i);return"afterDestroy"===e&&(this._notify(n,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,e,i,s){s=s||{};for(const n of t){const t=n.plugin;if(!1===c(t[i],[e,s,n.options],t)&&s.cancelable)return!1}return!0}invalidate(){i(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const i=t&&t.config,s=r(i.options&&i.options.plugins,{}),n=function(t){const e={},i=[],s=Object.keys(Fs.plugins.items);for(let o=0;o<s.length;o++)i.push(Fs.getPlugin(s[o]));const n=t.plugins||[];for(let o=0;o<n.length;o++){const t=n[o];-1===i.indexOf(t)&&(i.push(t),e[t.id]=!0)}return{plugins:i,localIds:e}}(i);return!1!==s||e?function(t,{plugins:e,localIds:i},s,n){const o=[],a=t.getContext();for(const r of e){const e=r.id,l=Bs(s[e],n);null!==l&&o.push({plugin:r,options:Vs(t.config,{plugin:r,local:i[e]},l,a)})}return o}(t,n,s,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],i=this._cache,s=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(s(e,i),t,"stop"),this._notify(s(i,e),t,"start")}}function Bs(t,e){return e||!1!==t?!0===t?{}:t:null}function Vs(t,{plugin:e,local:i},s,n){const o=t.pluginScopeKeys(e),a=t.getOptionScopes(s,o);return i&&e.defaults&&a.push(e.defaults),t.createResolver(a,n,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Ns(t,e){const i=se.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||i.indexAxis||"x"}function Ws(t,e){return"x"===t||"y"===t?t:e.axis||("top"===(i=e.position)||"bottom"===i?"x":"left"===i||"right"===i?"y":void 0)||t.charAt(0).toLowerCase();var i}function Hs(t){const e=t.options||(t.options={});e.plugins=r(e.plugins,{}),e.scales=function(t,e){const i=Qt[t.type]||{scales:{}},s=e.scales||{},o=Ns(t.type,e),a=Object.create(null),r=Object.create(null);return Object.keys(s).forEach((t=>{const e=s[t];if(!n(e))return console.error(`Invalid scale configuration for scale: ${t}`);if(e._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const l=Ws(t,e),h=function(t,e){return t===e?"_index_":"_value_"}(l,o),c=i.scales||{};a[l]=a[l]||t,r[t]=b(Object.create(null),[{axis:l},e,c[l],c[h]])})),t.data.datasets.forEach((i=>{const n=i.type||t.type,o=i.indexAxis||Ns(n,e),l=(Qt[n]||{}).scales||{};Object.keys(l).forEach((t=>{const e=function(t,e){let i=t;return"_index_"===t?i=e:"_value_"===t&&(i="x"===e?"y":"x"),i}(t,o),n=i[e+"AxisID"]||a[e]||e;r[n]=r[n]||Object.create(null),b(r[n],[{axis:e},s[n],l[t]])}))})),Object.keys(r).forEach((t=>{const e=r[t];b(e,[se.scales[e.type],se.scale])})),r}(t,e)}function js(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const $s=new Map,Ys=new Set;function Us(t,e){let i=$s.get(t);return i||(i=e(),$s.set(t,i),Ys.add(i)),i}const Xs=(t,e,i)=>{const s=y(e,i);void 0!==s&&t.add(s)};class Config{constructor(t){this._config=function(t){return(t=t||{}).data=js(t.data),Hs(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=js(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),Hs(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Us(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return Us(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return Us(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return Us(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const i=this._scopeCache;let s=i.get(t);return s&&!e||(s=new Map,i.set(t,s)),s}getOptionScopes(t,e,i){const{options:s,type:n}=this,o=this._cachedScopes(t,i),a=o.get(e);if(a)return a;const r=new Set;e.forEach((e=>{t&&(r.add(t),e.forEach((e=>Xs(r,t,e)))),e.forEach((t=>Xs(r,s,t))),e.forEach((t=>Xs(r,Qt[n]||{},t))),e.forEach((t=>Xs(r,se,t))),e.forEach((t=>Xs(r,te,t)))}));const l=Array.from(r);return 0===l.length&&l.push(Object.create(null)),Ys.has(e)&&o.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,Qt[e]||{},se.datasets[e]||{},{type:e},se,te]}resolveNamedOptions(t,e,i,n=[""]){const o={$shared:!0},{resolver:a,subPrefixes:r}=qs(this._resolverCache,t,n);let l=a;if(function(t,e){const{isScriptable:i,isIndexable:n}=Re(t);for(const o of e){const e=i(o),a=n(o),r=(a||e)&&t[o];if(e&&(k(r)||Ks(r))||a&&s(r))return!0}return!1}(a,e)){o.$shared=!1;l=Ee(a,i=k(i)?i():i,this.createResolver(t,i,r))}for(const s of e)o[s]=l[s];return o}createResolver(t,e,i=[""],s){const{resolver:o}=qs(this._resolverCache,t,i);return n(e)?Ee(o,e,void 0,s):o}}function qs(t,e,i){let s=t.get(e);s||(s=new Map,t.set(e,s));const n=i.join();let o=s.get(n);if(!o){o={resolver:Le(e,i),subPrefixes:i.filter((t=>!t.toLowerCase().includes("hover")))},s.set(n,o)}return o}const Ks=t=>n(t)&&Object.getOwnPropertyNames(t).reduce(((e,i)=>e||k(t[i])),!1);const Gs=["top","bottom","left","right","chartArea"];function Zs(t,e){return"top"===t||"bottom"===t||-1===Gs.indexOf(t)&&"x"===e}function Js(t,e){return function(i,s){return i[t]===s[t]?i[e]-s[e]:i[t]-s[t]}}function Qs(t){const e=t.chart,i=e.options.animation;e.notifyPlugins("afterRender"),c(i&&i.onComplete,[t],e)}function tn(t){const e=t.chart,i=e.options.animation;c(i&&i.onProgress,[t],e)}function en(t){return ne()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const sn={},nn=t=>{const e=en(t);return Object.values(sn).filter((t=>t.canvas===e)).pop()};function on(t,e,i){const s=Object.keys(t);for(const n of s){const s=+n;if(s>=e){const o=t[n];delete t[n],(i>0||s>e)&&(t[s+i]=o)}}}class Chart{constructor(t,i){const s=this.config=new Config(i),n=en(t),o=nn(n);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const a=s.createResolver(s.chartOptionScopes(),this.getContext());this.platform=new(s.platform||ds(n)),this.platform.updateConfig(s);const r=this.platform.acquireContext(n,a.aspectRatio),l=r&&r.canvas,h=l&&l.height,c=l&&l.width;this.id=e(),this.ctx=r,this.canvas=l,this.width=c,this.height=h,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new PluginService,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=ct((t=>this.update(t)),a.resizeDelay||0),this._dataChanges=[],sn[this.id]=this,r&&l?(mt.listen(this,"complete",Qs),mt.listen(this,"progress",tn),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:s,height:n,_aspectRatio:o}=this;return i(t)?e&&o?o:n?s/n:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():ge(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return ve(this.canvas,this.ctx),this}stop(){return mt.stop(this),this}resize(t,e){mt.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const i=this.options,s=this.canvas,n=i.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(s,t,e,n),a=i.devicePixelRatio||this.platform.getDevicePixelRatio(),r=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,ge(this,a,!0)&&(this.notifyPlugins("resize",{size:o}),c(i.onResize,[this,o],this),this.attached&&this._doResize(r)&&this.render())}ensureScalesHaveIDs(){d(this.options.scales||{},((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,i=this.scales,s=Object.keys(i).reduce(((t,e)=>(t[e]=!1,t)),{});let n=[];e&&(n=n.concat(Object.keys(e).map((t=>{const i=e[t],s=Ws(t,i),n="r"===s,o="x"===s;return{options:i,dposition:n?"chartArea":o?"bottom":"left",dtype:n?"radialLinear":o?"category":"linear"}})))),d(n,(e=>{const n=e.options,o=n.id,a=Ws(o,n),l=r(n.type,e.dtype);void 0!==n.position&&Zs(n.position,a)===Zs(e.dposition)||(n.position=e.dposition),s[o]=!0;let h=null;if(o in i&&i[o].type===l)h=i[o];else{h=new(Fs.getScale(l))({id:o,type:l,ctx:this.ctx,chart:this}),i[h.id]=h}h.init(n,t)})),d(s,((t,e)=>{t||delete i[e]})),d(i,(t=>{Gi.configure(this,t,t.options),Gi.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort(((t,e)=>t.index-e.index)),i>e){for(let t=e;t<i;++t)this._destroyDatasetMeta(t);t.splice(e,i-e)}this._sortedMetasets=t.slice(0).sort(Js("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach(((t,i)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(i)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let i,s;for(this._removeUnreferencedMetasets(),i=0,s=e.length;i<s;i++){const s=e[i];let n=this.getDatasetMeta(i);const o=s.type||this.config.type;if(n.type&&n.type!==o&&(this._destroyDatasetMeta(i),n=this.getDatasetMeta(i)),n.type=o,n.indexAxis=s.indexAxis||Ns(o,this.options),n.order=s.order||0,n.index=i,n.label=""+s.label,n.visible=this.isDatasetVisible(i),n.controller)n.controller.updateIndex(i),n.controller.linkScales();else{const e=Fs.getController(o),{datasetElementType:s,dataElementType:a}=se.datasets[o];Object.assign(e.prototype,{dataElementType:Fs.getElement(a),datasetElementType:s&&Fs.getElement(s)}),n.controller=new e(this,i),t.push(n.controller)}}return this._updateMetasets(),t}_resetElements(){d(this.data.datasets,((t,e)=>{this.getDatasetMeta(e).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const n=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let l=0,h=this.data.datasets.length;l<h;l++){const{controller:t}=this.getDatasetMeta(l),e=!s&&-1===n.indexOf(t);t.buildOrUpdateElements(e),o=Math.max(+t.getMaxOverflow(),o)}o=this._minPadding=i.layout.autoPadding?o:0,this._updateLayout(o),s||d(n,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Js("z","_idx"));const{_active:a,_lastEvent:r}=this;r?this._eventHandler(r,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){d(this.scales,(t=>{Gi.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);S(e,i)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:i,start:s,count:n}of e){on(t,s,"_removeElements"===i?-n:n)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,i=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),s=i(0);for(let n=1;n<e;n++)if(!S(s,i(n)))return;return Array.from(s).map((t=>t.split(","))).map((t=>({method:t[1],start:+t[2],count:+t[3]})))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Gi.update(this,this.width,this.height,t);const e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],d(this.boxes,(t=>{i&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))}),this),this._layers.forEach(((t,e)=>{t._idx=e})),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,i=this.data.datasets.length;e<i;++e)this._updateDataset(e,k(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const i=this.getDatasetMeta(t),s={meta:i,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",s)&&(i.controller._update(e),s.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",s))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(mt.has(this)?this.attached&&!mt.running(this)&&mt.start(this):(this.draw(),Qs({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resize(t,e),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,i=[];let s,n;for(s=0,n=e.length;s<n;++s){const n=e[s];t&&!n.visible||i.push(n)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,i=t._clip,s=!i.disabled,n=this.chartArea,o={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",o)&&(s&&Se(e,{left:!1===i.left?0:n.left-i.left,right:!1===i.right?this.width:n.right+i.right,top:!1===i.top?0:n.top-i.top,bottom:!1===i.bottom?this.height:n.bottom+i.bottom}),t.controller.draw(),s&&Pe(e),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return ke(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,i,s){const n=Fi.modes[e];return"function"==typeof n?n(this,t,i,s):[]}getDatasetMeta(t){const e=this.data.datasets[t],i=this._metasets;let s=i.filter((t=>t&&t._dataset===e)).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},i.push(s)),s}getContext(){return this.$context||(this.$context=xi(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const i=this.getDatasetMeta(t);return"boolean"==typeof i.hidden?!i.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,i){const s=i?"show":"hide",n=this.getDatasetMeta(t),o=n.controller._resolveAnimations(void 0,s);M(e)?(n.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),o.update(n,{visible:i}),this.update((e=>e.datasetIndex===t?s:void 0)))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),mt.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),ve(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete sn[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,i=(i,s)=>{e.addEventListener(this,i,s),t[i]=s},s=(t,e,i)=>{t.offsetX=e,t.offsetY=i,this._eventHandler(t)};d(this.options.events,(t=>i(t,s)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,i=(i,s)=>{e.addEventListener(this,i,s),t[i]=s},s=(i,s)=>{t[i]&&(e.removeEventListener(this,i,s),delete t[i])},n=(t,e)=>{this.canvas&&this.resize(t,e)};let o;const a=()=>{s("attach",a),this.attached=!0,this.resize(),i("resize",n),i("detach",o)};o=()=>{this.attached=!1,s("resize",n),this._stop(),this._resize(0,0),i("attach",a)},e.isAttached(this.canvas)?a():o()}unbindEvents(){d(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},d(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){const s=i?"set":"remove";let n,o,a,r;for("dataset"===e&&(n=this.getDatasetMeta(t[0].datasetIndex),n.controller["_"+s+"DatasetHoverStyle"]()),a=0,r=t.length;a<r;++a){o=t[a];const e=o&&this.getDatasetMeta(o.datasetIndex).controller;e&&e[s+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],i=t.map((({datasetIndex:t,index:e})=>{const i=this.getDatasetMeta(t);if(!i)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:i.data[e],index:e}}));!u(i,e)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}_updateHoverStyles(t,e,i){const s=this.options.hover,n=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),o=n(e,t),a=i?t:n(t,e);o.length&&this.updateHoverStyle(o,s.mode,!1),a.length&&s.mode&&this.updateHoverStyle(a,s.mode,!0)}_eventHandler(t,e){const i={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},s=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",i,s))return;const n=this._handleEvent(t,e,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,s),(n||i.changed)&&this.render(),this}_handleEvent(t,e,i){const{_active:s=[],options:n}=this,o=e,a=this._getActiveElements(t,s,i,o),r=P(t),l=function(t,e,i,s){return i&&"mouseout"!==t.type?s?e:t:null}(t,this._lastEvent,i,r);i&&(this._lastEvent=null,c(n.onHover,[t,a,this],this),r&&c(n.onClick,[t,a,this],this));const h=!u(a,s);return(h||e)&&(this._active=a,this._updateHoverStyles(a,s,e)),this._lastEvent=l,h}_getActiveElements(t,e,i,s){if("mouseout"===t.type)return[];if(!i)return e;const n=this.options.hover;return this.getElementsAtEventForMode(t,n.mode,n,s)}}const an=()=>d(Chart.instances,(t=>t._plugins.invalidate())),rn=!0;function ln(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}Object.defineProperties(Chart,{defaults:{enumerable:rn,value:se},instances:{enumerable:rn,value:sn},overrides:{enumerable:rn,value:Qt},registry:{enumerable:rn,value:Fs},version:{enumerable:rn,value:"3.9.1"},getChart:{enumerable:rn,value:nn},register:{enumerable:rn,value:(...t)=>{Fs.add(...t),an()}},unregister:{enumerable:rn,value:(...t)=>{Fs.remove(...t),an()}}});class DateAdapter{constructor(t){this.options=t||{}}init(t){}formats(){return ln()}parse(t,e){return ln()}format(t,e){return ln()}add(t,e,i){return ln()}diff(t,e,i){return ln()}startOf(t,e,i){return ln()}endOf(t,e){return ln()}}DateAdapter.override=function(t){Object.assign(DateAdapter.prototype,t)};var hn={_date:DateAdapter};function cn(t){const e=t.iScale,i=function(t,e){if(!t._cache.$bar){const i=t.getMatchingVisibleMetas(e);let s=[];for(let e=0,n=i.length;e<n;e++)s=s.concat(i[e].controller.getAllParsedValues(t));t._cache.$bar=rt(s.sort(((t,e)=>t-e)))}return t._cache.$bar}(e,t.type);let s,n,o,a,r=e._length;const l=()=>{32767!==o&&-32768!==o&&(M(a)&&(r=Math.min(r,Math.abs(o-a)||r)),a=o)};for(s=0,n=i.length;s<n;++s)o=e.getPixelForValue(i[s]),l();for(a=void 0,s=0,n=e.ticks.length;s<n;++s)o=e.getPixelForTick(s),l();return r}function dn(t,e,i,n){return s(t)?function(t,e,i,s){const n=i.parse(t[0],s),o=i.parse(t[1],s),a=Math.min(n,o),r=Math.max(n,o);let l=a,h=r;Math.abs(a)>Math.abs(r)&&(l=r,h=a),e[i.axis]=h,e._custom={barStart:l,barEnd:h,start:n,end:o,min:a,max:r}}(t,e,i,n):e[i.axis]=i.parse(t,n),e}function un(t,e,i,s){const n=t.iScale,o=t.vScale,a=n.getLabels(),r=n===o,l=[];let h,c,d,u;for(h=i,c=i+s;h<c;++h)u=e[h],d={},d[n.axis]=r||n.parse(a[h],h),l.push(dn(u,d,o,h));return l}function fn(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function gn(t,e,i,s){let n=e.borderSkipped;const o={};if(!n)return void(t.borderSkipped=o);if(!0===n)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:a,end:r,reverse:l,top:h,bottom:c}=function(t){let e,i,s,n,o;return t.horizontal?(e=t.base>t.x,i="left",s="right"):(e=t.base<t.y,i="bottom",s="top"),e?(n="end",o="start"):(n="start",o="end"),{start:i,end:s,reverse:e,top:n,bottom:o}}(t);"middle"===n&&i&&(t.enableBorderRadius=!0,(i._top||0)===s?n=h:(i._bottom||0)===s?n=c:(o[pn(c,a,r,l)]=!0,n=h)),o[pn(n,a,r,l)]=!0,t.borderSkipped=o}function pn(t,e,i,s){var n,o,a;return s?(a=i,t=mn(t=(n=t)===(o=e)?a:n===a?o:n,i,e)):t=mn(t,e,i),t}function mn(t,e,i){return"start"===t?e:"end"===t?i:t}function bn(t,{inflateAmount:e},i){t.inflateAmount="auto"===e?1===i?.33:0:e}class BarController extends DatasetController{parsePrimitiveData(t,e,i,s){return un(t,e,i,s)}parseArrayData(t,e,i,s){return un(t,e,i,s)}parseObjectData(t,e,i,s){const{iScale:n,vScale:o}=t,{xAxisKey:a="x",yAxisKey:r="y"}=this._parsing,l="x"===n.axis?a:r,h="x"===o.axis?a:r,c=[];let d,u,f,g;for(d=i,u=i+s;d<u;++d)g=e[d],f={},f[n.axis]=n.parse(y(g,l),d),c.push(dn(y(g,h),f,o,d));return c}updateRangeFromParsed(t,e,i,s){super.updateRangeFromParsed(t,e,i,s);const n=i._custom;n&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,n.min),t.max=Math.max(t.max,n.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:i,vScale:s}=e,n=this.getParsed(t),o=n._custom,a=fn(o)?"["+o.start+", "+o.end+"]":""+s.getLabelForValue(n[s.axis]);return{label:""+i.getLabelForValue(n[i.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,s,n){const o="reset"===n,{index:a,_cachedMeta:{vScale:r}}=this,l=r.getBasePixel(),h=r.isHorizontal(),c=this._getRuler(),{sharedOptions:d,includeOptions:u}=this._getSharedOptions(e,n);for(let f=e;f<e+s;f++){const e=this.getParsed(f),s=o||i(e[r.axis])?{base:l,head:l}:this._calculateBarValuePixels(f),g=this._calculateBarIndexPixels(f,c),p=(e._stacks||{})[r.axis],m={horizontal:h,base:s.base,enableBorderRadius:!p||fn(e._custom)||a===p._top||a===p._bottom,x:h?s.head:g.center,y:h?g.center:s.head,height:h?g.size:Math.abs(s.size),width:h?Math.abs(s.size):g.size};u&&(m.options=d||this.resolveDataElementOptions(f,t[f].active?"active":n));const b=m.options||t[f].options;gn(m,b,p,a),bn(m,b,c.ratio),this.updateElement(t[f],f,m,n)}}_getStacks(t,e){const{iScale:s}=this._cachedMeta,n=s.getMatchingVisibleMetas(this._type).filter((t=>t.controller.options.grouped)),o=s.options.stacked,a=[],r=t=>{const s=t.controller.getParsed(e),n=s&&s[t.vScale.axis];if(i(n)||isNaN(n))return!0};for(const i of n)if((void 0===e||!r(i))&&((!1===o||-1===a.indexOf(i.stack)||void 0===o&&void 0===i.stack)&&a.push(i.stack),i.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,i){const s=this._getStacks(t,i),n=void 0!==e?s.indexOf(e):-1;return-1===n?s.length-1:n}_getRuler(){const t=this.options,e=this._cachedMeta,i=e.iScale,s=[];let n,o;for(n=0,o=e.data.length;n<o;++n)s.push(i.getPixelForValue(this.getParsed(n)[i.axis],n));const a=t.barThickness;return{min:a||cn(e),pixels:s,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:s},options:{base:n,minBarLength:o}}=this,a=n||0,r=this.getParsed(t),l=r._custom,h=fn(l);let c,d,u=r[e.axis],f=0,g=s?this.applyStack(e,r,s):u;g!==u&&(f=g-u,g=u),h&&(u=l.barStart,g=l.barEnd-l.barStart,0!==u&&z(u)!==z(l.barEnd)&&(f=0),f+=u);const p=i(n)||h?f:n;let m=e.getPixelForValue(p);if(c=this.chart.getDataVisibility(t)?e.getPixelForValue(f+g):m,d=c-m,Math.abs(d)<o){d=function(t,e,i){return 0!==t?z(t):(e.isHorizontal()?1:-1)*(e.min>=i?1:-1)}(d,e,a)*o,u===a&&(m-=d/2);const t=e.getPixelForDecimal(0),i=e.getPixelForDecimal(1),s=Math.min(t,i),n=Math.max(t,i);m=Math.max(Math.min(m,n),s),c=m+d}if(m===e.getPixelForValue(a)){const t=z(d)*e.getLineWidthForValue(a)/2;m+=t,d-=t}return{size:d,base:m,head:c,center:c+d/2}}_calculateBarIndexPixels(t,e){const s=e.scale,n=this.options,o=n.skipNull,a=r(n.maxBarThickness,1/0);let l,h;if(e.grouped){const s=o?this._getStackCount(t):e.stackCount,r="flex"===n.barThickness?function(t,e,i,s){const n=e.pixels,o=n[t];let a=t>0?n[t-1]:null,r=t<n.length-1?n[t+1]:null;const l=i.categoryPercentage;null===a&&(a=o-(null===r?e.end-e.start:r-o)),null===r&&(r=o+o-a);const h=o-(o-Math.min(a,r))/2*l;return{chunk:Math.abs(r-a)/2*l/s,ratio:i.barPercentage,start:h}}(t,e,n,s):function(t,e,s,n){const o=s.barThickness;let a,r;return i(o)?(a=e.min*s.categoryPercentage,r=s.barPercentage):(a=o*n,r=1),{chunk:a/n,ratio:r,start:e.pixels[t]-a/2}}(t,e,n,s),c=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);l=r.start+r.chunk*c+r.chunk/2,h=Math.min(a,r.chunk*r.ratio)}else l=s.getPixelForValue(this.getParsed(t)[s.axis],t),h=Math.min(a,e.min*e.ratio);return{base:l-h/2,head:l+h/2,center:l,size:h}}draw(){const t=this._cachedMeta,e=t.vScale,i=t.data,s=i.length;let n=0;for(;n<s;++n)null!==this.getParsed(n)[e.axis]&&i[n].draw(this._ctx)}}BarController.id="bar",BarController.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},BarController.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class BubbleController extends DatasetController{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,i,s){const n=super.parsePrimitiveData(t,e,i,s);for(let o=0;o<n.length;o++)n[o]._custom=this.resolveDataElementOptions(o+i).radius;return n}parseArrayData(t,e,i,s){const n=super.parseArrayData(t,e,i,s);for(let o=0;o<n.length;o++){const t=e[i+o];n[o]._custom=r(t[2],this.resolveDataElementOptions(o+i).radius)}return n}parseObjectData(t,e,i,s){const n=super.parseObjectData(t,e,i,s);for(let o=0;o<n.length;o++){const t=e[i+o];n[o]._custom=r(t&&t.r&&+t.r,this.resolveDataElementOptions(o+i).radius)}return n}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let i=t.length-1;i>=0;--i)e=Math.max(e,t[i].size(this.resolveDataElementOptions(i))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,{xScale:i,yScale:s}=e,n=this.getParsed(t),o=i.getLabelForValue(n.x),a=s.getLabelForValue(n.y),r=n._custom;return{label:e.label,value:"("+o+", "+a+(r?", "+r:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,s){const n="reset"===s,{iScale:o,vScale:a}=this._cachedMeta,{sharedOptions:r,includeOptions:l}=this._getSharedOptions(e,s),h=o.axis,c=a.axis;for(let d=e;d<e+i;d++){const e=t[d],i=!n&&this.getParsed(d),u={},f=u[h]=n?o.getPixelForDecimal(.5):o.getPixelForValue(i[h]),g=u[c]=n?a.getBasePixel():a.getPixelForValue(i[c]);u.skip=isNaN(f)||isNaN(g),l&&(u.options=r||this.resolveDataElementOptions(d,e.active?"active":s),n&&(u.options.radius=0)),this.updateElement(e,d,u,s)}}resolveDataElementOptions(t,e){const i=this.getParsed(t);let s=super.resolveDataElementOptions(t,e);s.$shared&&(s=Object.assign({},s,{$shared:!1}));const n=s.radius;return"active"!==e&&(s.radius=0),s.radius+=r(i&&i._custom,n),s}}BubbleController.id="bubble",BubbleController.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},BubbleController.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}};class DoughnutController extends DatasetController{constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const i=this.getDataset().data,s=this._cachedMeta;if(!1===this._parsing)s._parsed=i;else{let o,a,r=t=>+i[t];if(n(i[t])){const{key:t="value"}=this._parsing;r=e=>+y(i[e],t)}for(o=t,a=t+e;o<a;++o)s._parsed[o]=r(o)}}_getRotation(){return j(this.options.rotation-90)}_getCircumference(){return j(this.options.circumference)}_getRotationExtents(){let t=D,e=-D;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)){const s=this.chart.getDatasetMeta(i).controller,n=s._getRotation(),o=s._getCircumference();t=Math.min(t,n),e=Math.max(e,n+o)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:i}=e,s=this._cachedMeta,n=s.data,o=this.getMaxBorderWidth()+this.getMaxOffset(n)+this.options.spacing,a=Math.max((Math.min(i.width,i.height)-o)/2,0),r=Math.min(l(this.options.cutout,a),1),c=this._getRingWeight(this.index),{circumference:d,rotation:u}=this._getRotationExtents(),{ratioX:f,ratioY:g,offsetX:p,offsetY:m}=function(t,e,i){let s=1,n=1,o=0,a=0;if(e<D){const r=t,l=r+e,h=Math.cos(r),c=Math.sin(r),d=Math.cos(l),u=Math.sin(l),f=(t,e,s)=>G(t,r,l,!0)?1:Math.max(e,e*i,s,s*i),g=(t,e,s)=>G(t,r,l,!0)?-1:Math.min(e,e*i,s,s*i),p=f(0,h,d),m=f(L,c,u),b=g(C,h,d),x=g(C+L,c,u);s=(p-b)/2,n=(m-x)/2,o=-(p+b)/2,a=-(m+x)/2}return{ratioX:s,ratioY:n,offsetX:o,offsetY:a}}(u,d,r),b=(i.width-o)/f,x=(i.height-o)/g,_=Math.max(Math.min(b,x)/2,0),y=h(this.options.radius,_),v=(y-Math.max(y*r,0))/this._getVisibleDatasetWeightTotal();this.offsetX=p*y,this.offsetY=m*y,s.total=this.calculateTotal(),this.outerRadius=y-v*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-v*c,0),this.updateElements(n,0,n.length,t)}_circumference(t,e){const i=this.options,s=this._cachedMeta,n=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||null===s._parsed[t]||s.data[t].hidden?0:this.calculateCircumference(s._parsed[t]*n/D)}updateElements(t,e,i,s){const n="reset"===s,o=this.chart,a=o.chartArea,r=o.options.animation,l=(a.left+a.right)/2,h=(a.top+a.bottom)/2,c=n&&r.animateScale,d=c?0:this.innerRadius,u=c?0:this.outerRadius,{sharedOptions:f,includeOptions:g}=this._getSharedOptions(e,s);let p,m=this._getRotation();for(p=0;p<e;++p)m+=this._circumference(p,n);for(p=e;p<e+i;++p){const e=this._circumference(p,n),i=t[p],o={x:l+this.offsetX,y:h+this.offsetY,startAngle:m,endAngle:m+e,circumference:e,outerRadius:u,innerRadius:d};g&&(o.options=f||this.resolveDataElementOptions(p,i.active?"active":s)),m+=e,this.updateElement(i,p,o,s)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let i,s=0;for(i=0;i<e.length;i++){const n=t._parsed[i];null===n||isNaN(n)||!this.chart.getDataVisibility(i)||e[i].hidden||(s+=Math.abs(n))}return s}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?D*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,s=i.data.labels||[],n=ri(e._parsed[t],i.options.locale);return{label:s[t]||"",value:n}}getMaxBorderWidth(t){let e=0;const i=this.chart;let s,n,o,a,r;if(!t)for(s=0,n=i.data.datasets.length;s<n;++s)if(i.isDatasetVisible(s)){o=i.getDatasetMeta(s),t=o.data,a=o.controller;break}if(!t)return 0;for(s=0,n=t.length;s<n;++s)r=a.resolveDataElementOptions(s),"inner"!==r.borderAlign&&(e=Math.max(e,r.borderWidth||0,r.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let i=0,s=t.length;i<s;++i){const t=this.resolveDataElementOptions(i);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let i=0;i<t;++i)this.chart.isDatasetVisible(i)&&(e+=this._getRingWeight(i));return e}_getRingWeight(t){return Math.max(r(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}DoughnutController.id="doughnut",DoughnutController.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"},DoughnutController.descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t},DoughnutController.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i}}=t.legend.options;return e.labels.map(((e,s)=>{const n=t.getDatasetMeta(0).controller.getStyle(s);return{text:e,fillStyle:n.backgroundColor,strokeStyle:n.borderColor,lineWidth:n.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(s),index:s}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}},tooltip:{callbacks:{title:()=>"",label(t){let e=t.label;const i=": "+t.formattedValue;return s(e)?(e=e.slice(),e[0]+=i):e+=i,e}}}}};class LineController extends DatasetController{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:i,data:s=[],_dataset:n}=e,o=this.chart._animationsDisabled;let{start:a,count:r}=gt(e,s,o);this._drawStart=a,this._drawCount=r,pt(e)&&(a=0,r=s.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!n._decimated,i.points=s;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(i,void 0,{animated:!o,options:l},t),this.updateElements(s,a,r,t)}updateElements(t,e,s,n){const o="reset"===n,{iScale:a,vScale:r,_stacked:l,_dataset:h}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(e,n),u=a.axis,f=r.axis,{spanGaps:g,segment:p}=this.options,m=V(g)?g:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||o||"none"===n;let x=e>0&&this.getParsed(e-1);for(let _=e;_<e+s;++_){const e=t[_],s=this.getParsed(_),g=b?e:{},y=i(s[f]),v=g[u]=a.getPixelForValue(s[u],_),w=g[f]=o||y?r.getBasePixel():r.getPixelForValue(l?this.applyStack(r,s,l):s[f],_);g.skip=isNaN(v)||isNaN(w)||y,g.stop=_>0&&Math.abs(s[u]-x[u])>m,p&&(g.parsed=s,g.raw=h.data[_]),d&&(g.options=c||this.resolveDataElementOptions(_,e.active?"active":n)),b||this.updateElement(e,_,g,n),x=s}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0,s=t.data||[];if(!s.length)return i;const n=s[0].size(this.resolveDataElementOptions(0)),o=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(i,n,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}LineController.id="line",LineController.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},LineController.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class PolarAreaController extends DatasetController{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,s=i.data.labels||[],n=ri(e._parsed[t].r,i.options.locale);return{label:s[t]||"",value:n}}parseObjectData(t,e,i,s){return Ye.bind(this)(t,e,i,s)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach(((t,i)=>{const s=this.getParsed(i).r;!isNaN(s)&&this.chart.getDataVisibility(i)&&(s<e.min&&(e.min=s),s>e.max&&(e.max=s))})),e}_updateRadius(){const t=this.chart,e=t.chartArea,i=t.options,s=Math.min(e.right-e.left,e.bottom-e.top),n=Math.max(s/2,0),o=(n-Math.max(i.cutoutPercentage?n/100*i.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=n-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(t,e,i,s){const n="reset"===s,o=this.chart,a=o.options.animation,r=this._cachedMeta.rScale,l=r.xCenter,h=r.yCenter,c=r.getIndexAngle(0)-.5*C;let d,u=c;const f=360/this.countVisibleElements();for(d=0;d<e;++d)u+=this._computeAngle(d,s,f);for(d=e;d<e+i;d++){const e=t[d];let i=u,g=u+this._computeAngle(d,s,f),p=o.getDataVisibility(d)?r.getDistanceFromCenterForValue(this.getParsed(d).r):0;u=g,n&&(a.animateScale&&(p=0),a.animateRotate&&(i=g=c));const m={x:l,y:h,innerRadius:0,outerRadius:p,startAngle:i,endAngle:g,options:this.resolveDataElementOptions(d,e.active?"active":s)};this.updateElement(e,d,m,s)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach(((t,i)=>{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&e++})),e}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?j(this.resolveDataElementOptions(t,e).angle||i):0}}PolarAreaController.id="polarArea",PolarAreaController.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},PolarAreaController.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i}}=t.legend.options;return e.labels.map(((e,s)=>{const n=t.getDatasetMeta(0).controller.getStyle(s);return{text:e,fillStyle:n.backgroundColor,strokeStyle:n.borderColor,lineWidth:n.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(s),index:s}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}},tooltip:{callbacks:{title:()=>"",label:t=>t.chart.data.labels[t.dataIndex]+": "+t.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class PieController extends DoughnutController{}PieController.id="pie",PieController.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class RadarController extends DatasetController{getLabelAndValue(t){const e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}parseObjectData(t,e,i,s){return Ye.bind(this)(t,e,i,s)}update(t){const e=this._cachedMeta,i=e.dataset,s=e.data||[],n=e.iScale.getLabels();if(i.points=s,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const o={_loop:!0,_fullLoop:n.length===s.length,options:e};this.updateElement(i,void 0,o,t)}this.updateElements(s,0,s.length,t)}updateElements(t,e,i,s){const n=this._cachedMeta.rScale,o="reset"===s;for(let a=e;a<e+i;a++){const e=t[a],i=this.resolveDataElementOptions(a,e.active?"active":s),r=n.getPointPositionForValue(a,this.getParsed(a).r),l=o?n.xCenter:r.x,h=o?n.yCenter:r.y,c={x:l,y:h,angle:r.angle,skip:isNaN(l)||isNaN(h),options:i};this.updateElement(e,a,c,s)}}}RadarController.id="radar",RadarController.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},RadarController.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class ScatterController extends DatasetController{update(t){const e=this._cachedMeta,{data:i=[]}=e,s=this.chart._animationsDisabled;let{start:n,count:o}=gt(e,i,s);if(this._drawStart=n,this._drawCount=o,pt(e)&&(n=0,o=i.length),this.options.showLine){const{dataset:n,_dataset:o}=e;n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!o._decimated,n.points=i;const a=this.resolveDatasetElementOptions(t);a.segment=this.options.segment,this.updateElement(n,void 0,{animated:!s,options:a},t)}this.updateElements(i,n,o,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=Fs.getElement("line")),super.addElements()}updateElements(t,e,s,n){const o="reset"===n,{iScale:a,vScale:r,_stacked:l,_dataset:h}=this._cachedMeta,c=this.resolveDataElementOptions(e,n),d=this.getSharedOptions(c),u=this.includeOptions(n,d),f=a.axis,g=r.axis,{spanGaps:p,segment:m}=this.options,b=V(p)?p:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||o||"none"===n;let _=e>0&&this.getParsed(e-1);for(let y=e;y<e+s;++y){const e=t[y],s=this.getParsed(y),c=x?e:{},p=i(s[g]),v=c[f]=a.getPixelForValue(s[f],y),w=c[g]=o||p?r.getBasePixel():r.getPixelForValue(l?this.applyStack(r,s,l):s[g],y);c.skip=isNaN(v)||isNaN(w)||p,c.stop=y>0&&Math.abs(s[f]-_[f])>b,m&&(c.parsed=s,c.raw=h.data[y]),u&&(c.options=d||this.resolveDataElementOptions(y,e.active?"active":n)),x||this.updateElement(e,y,c,n),_=s}this.updateSharedOptions(d,n,c)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let i=e.length-1;i>=0;--i)t=Math.max(t,e[i].size(this.resolveDataElementOptions(i))/2);return t>0&&t}const i=t.dataset,s=i.options&&i.options.borderWidth||0;if(!e.length)return s;const n=e[0].size(this.resolveDataElementOptions(0)),o=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(s,n,o)/2}}ScatterController.id="scatter",ScatterController.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},ScatterController.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:t=>"("+t.label+", "+t.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var xn=Object.freeze({__proto__:null,BarController:BarController,BubbleController:BubbleController,DoughnutController:DoughnutController,LineController:LineController,PolarAreaController:PolarAreaController,PieController:PieController,RadarController:RadarController,ScatterController:ScatterController});function _n(t,e,i){const{startAngle:s,pixelMargin:n,x:o,y:a,outerRadius:r,innerRadius:l}=e;let h=n/r;t.beginPath(),t.arc(o,a,r,s-h,i+h),l>n?(h=n/l,t.arc(o,a,l,i+h,s-h,!0)):t.arc(o,a,n,i+L,s-L),t.closePath(),t.clip()}function yn(t,e,i,s){const n=di(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const o=(i-e)/2,a=Math.min(o,s*e/2),r=t=>{const e=(i-Math.min(o,t))*s/2;return Z(t,0,Math.min(o,e))};return{outerStart:r(n.outerStart),outerEnd:r(n.outerEnd),innerStart:Z(n.innerStart,0,a),innerEnd:Z(n.innerEnd,0,a)}}function vn(t,e,i,s){return{x:i+t*Math.cos(e),y:s+t*Math.sin(e)}}function wn(t,e,i,s,n,o){const{x:a,y:r,startAngle:l,pixelMargin:h,innerRadius:c}=e,d=Math.max(e.outerRadius+s+i-h,0),u=c>0?c+s+i+h:0;let f=0;const g=n-l;if(s){const t=((c>0?c-s:0)+(d>0?d-s:0))/2;f=(g-(0!==t?g*t/(t+s):g))/2}const p=(g-Math.max(.001,g*d-i/C)/d)/2,m=l+p+f,b=n-p-f,{outerStart:x,outerEnd:_,innerStart:y,innerEnd:v}=yn(e,u,d,b-m),w=d-x,M=d-_,k=m+x/w,S=b-_/M,P=u+y,D=u+v,A=m+y/P,O=b-v/D;if(t.beginPath(),o){if(t.arc(a,r,d,k,S),_>0){const e=vn(M,S,a,r);t.arc(e.x,e.y,_,S,b+L)}const e=vn(D,b,a,r);if(t.lineTo(e.x,e.y),v>0){const e=vn(D,O,a,r);t.arc(e.x,e.y,v,b+L,O+Math.PI)}if(t.arc(a,r,u,b-v/u,m+y/u,!0),y>0){const e=vn(P,A,a,r);t.arc(e.x,e.y,y,A+Math.PI,m-L)}const i=vn(w,m,a,r);if(t.lineTo(i.x,i.y),x>0){const e=vn(w,k,a,r);t.arc(e.x,e.y,x,m-L,k)}}else{t.moveTo(a,r);const e=Math.cos(k)*d+a,i=Math.sin(k)*d+r;t.lineTo(e,i);const s=Math.cos(S)*d+a,n=Math.sin(S)*d+r;t.lineTo(s,n)}t.closePath()}function Mn(t,e,i,s,n,o){const{options:a}=e,{borderWidth:r,borderJoinStyle:l}=a,h="inner"===a.borderAlign;r&&(h?(t.lineWidth=2*r,t.lineJoin=l||"round"):(t.lineWidth=r,t.lineJoin=l||"bevel"),e.fullCircles&&function(t,e,i){const{x:s,y:n,startAngle:o,pixelMargin:a,fullCircles:r}=e,l=Math.max(e.outerRadius-a,0),h=e.innerRadius+a;let c;for(i&&_n(t,e,o+D),t.beginPath(),t.arc(s,n,h,o+D,o,!0),c=0;c<r;++c)t.stroke();for(t.beginPath(),t.arc(s,n,l,o,o+D),c=0;c<r;++c)t.stroke()}(t,e,h),h&&_n(t,e,n),wn(t,e,i,s,n,o),t.stroke())}class ArcElement extends Element{constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,i){const s=this.getProps(["x","y"],i),{angle:n,distance:o}=U(s,{x:t,y:e}),{startAngle:a,endAngle:l,innerRadius:h,outerRadius:c,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),u=this.options.spacing/2,f=r(d,l-a)>=D||G(n,a,l),g=Q(o,h+u,c+u);return f&&g}getCenterPoint(t){const{x:e,y:i,startAngle:s,endAngle:n,innerRadius:o,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:r,spacing:l}=this.options,h=(s+n)/2,c=(o+a+l+r)/2;return{x:e+Math.cos(h)*c,y:i+Math.sin(h)*c}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:i}=this,s=(e.offset||0)/2,n=(e.spacing||0)/2,o=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=i>D?Math.floor(i/D):0,0===i||this.innerRadius<0||this.outerRadius<0)return;t.save();let a=0;if(s){a=s/2;const e=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(e)*a,Math.sin(e)*a),this.circumference>=C&&(a=s)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const r=function(t,e,i,s,n){const{fullCircles:o,startAngle:a,circumference:r}=e;let l=e.endAngle;if(o){wn(t,e,i,s,a+D,n);for(let e=0;e<o;++e)t.fill();isNaN(r)||(l=a+r%D,r%D==0&&(l+=D))}return wn(t,e,i,s,l,n),t.fill(),l}(t,this,a,n,o);Mn(t,this,a,n,r,o),t.restore()}}function kn(t,e,i=e){t.lineCap=r(i.borderCapStyle,e.borderCapStyle),t.setLineDash(r(i.borderDash,e.borderDash)),t.lineDashOffset=r(i.borderDashOffset,e.borderDashOffset),t.lineJoin=r(i.borderJoinStyle,e.borderJoinStyle),t.lineWidth=r(i.borderWidth,e.borderWidth),t.strokeStyle=r(i.borderColor,e.borderColor)}function Sn(t,e,i){t.lineTo(i.x,i.y)}function Pn(t,e,i={}){const s=t.length,{start:n=0,end:o=s-1}=i,{start:a,end:r}=e,l=Math.max(n,a),h=Math.min(o,r),c=n<a&&o<a||n>r&&o>r;return{count:s,start:l,loop:e.loop,ilen:h<l&&!c?s+h-l:h-l}}function Cn(t,e,i,s){const{points:n,options:o}=e,{count:a,start:r,loop:l,ilen:h}=Pn(n,i,s),c=function(t){return t.stepped?Ce:t.tension||"monotone"===t.cubicInterpolationMode?De:Sn}(o);let d,u,f,{move:g=!0,reverse:p}=s||{};for(d=0;d<=h;++d)u=n[(r+(p?h-d:d))%a],u.skip||(g?(t.moveTo(u.x,u.y),g=!1):c(t,f,u,p,o.stepped),f=u);return l&&(u=n[(r+(p?h:0))%a],c(t,f,u,p,o.stepped)),!!l}function Dn(t,e,i,s){const n=e.points,{count:o,start:a,ilen:r}=Pn(n,i,s),{move:l=!0,reverse:h}=s||{};let c,d,u,f,g,p,m=0,b=0;const x=t=>(a+(h?r-t:t))%o,_=()=>{f!==g&&(t.lineTo(m,g),t.lineTo(m,f),t.lineTo(m,p))};for(l&&(d=n[x(0)],t.moveTo(d.x,d.y)),c=0;c<=r;++c){if(d=n[x(c)],d.skip)continue;const e=d.x,i=d.y,s=0|e;s===u?(i<f?f=i:i>g&&(g=i),m=(b*m+e)/++b):(_(),t.lineTo(e,i),u=s,b=0,f=g=i),p=i}_()}function An(t){const e=t.options,i=e.borderDash&&e.borderDash.length;return!(t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||i)?Dn:Cn}ArcElement.id="arc",ArcElement.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},ArcElement.defaultRoutes={backgroundColor:"backgroundColor"};const On="function"==typeof Path2D;function Tn(t,e,i,s){On&&!e.options.segment?function(t,e,i,s){let n=e._path;n||(n=e._path=new Path2D,e.path(n,i,s)&&n.closePath()),kn(t,e.options),t.stroke(n)}(t,e,i,s):function(t,e,i,s){const{segments:n,options:o}=e,a=An(e);for(const r of n)kn(t,o,r.style),t.beginPath(),a(t,e,r,{start:i,end:i+s-1})&&t.closePath(),t.stroke()}(t,e,i,s)}class LineElement extends Element{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const i=this.options;if((i.tension||"monotone"===i.cubicInterpolationMode)&&!i.stepped&&!this._pointsUpdated){const s=i.spanGaps?this._loop:this._fullLoop;Je(this._points,i,t,s,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Pi(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,i=t.length;return i&&e[t[i-1].end]}interpolate(t,e){const i=this.options,s=t[e],n=this.points,o=Si(this,{property:e,start:s,end:s});if(!o.length)return;const a=[],r=function(t){return t.stepped?ni:t.tension||"monotone"===t.cubicInterpolationMode?oi:si}(i);let l,h;for(l=0,h=o.length;l<h;++l){const{start:h,end:c}=o[l],d=n[h],u=n[c];if(d===u){a.push(d);continue}const f=r(d,u,Math.abs((s-d[e])/(u[e]-d[e])),i.stepped);f[e]=t[e],a.push(f)}return 1===a.length?a[0]:a}pathSegment(t,e,i){return An(this)(t,this,e,i)}path(t,e,i){const s=this.segments,n=An(this);let o=this._loop;e=e||0,i=i||this.points.length-e;for(const a of s)o&=n(t,this,a,{start:e,end:e+i-1});return!!o}draw(t,e,i,s){const n=this.options||{};(this.points||[]).length&&n.borderWidth&&(t.save(),Tn(t,this,i,s),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Ln(t,e,i,s){const n=t.options,{[i]:o}=t.getProps([i],s);return Math.abs(e-o)<n.radius+n.hitRadius}LineElement.id="line",LineElement.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},LineElement.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},LineElement.descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};class PointElement extends Element{constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,i){const s=this.options,{x:n,y:o}=this.getProps(["x","y"],i);return Math.pow(t-n,2)+Math.pow(e-o,2)<Math.pow(s.hitRadius+s.radius,2)}inXRange(t,e){return Ln(this,t,"x",e)}inYRange(t,e){return Ln(this,t,"y",e)}getCenterPoint(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}size(t){let e=(t=t||this.options||{}).radius||0;e=Math.max(e,e&&t.hoverRadius||0);return 2*(e+(e&&t.borderWidth||0))}draw(t,e){const i=this.options;this.skip||i.radius<.1||!ke(this,e,this.size(i)/2)||(t.strokeStyle=i.borderColor,t.lineWidth=i.borderWidth,t.fillStyle=i.backgroundColor,we(t,i,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function En(t,e){const{x:i,y:s,base:n,width:o,height:a}=t.getProps(["x","y","base","width","height"],e);let r,l,h,c,d;return t.horizontal?(d=a/2,r=Math.min(i,n),l=Math.max(i,n),h=s-d,c=s+d):(d=o/2,r=i-d,l=i+d,h=Math.min(s,n),c=Math.max(s,n)),{left:r,top:h,right:l,bottom:c}}function Rn(t,e,i,s){return t?0:Z(e,i,s)}function In(t){const e=En(t),i=e.right-e.left,s=e.bottom-e.top,o=function(t,e,i){const s=t.options.borderWidth,n=t.borderSkipped,o=ui(s);return{t:Rn(n.top,o.top,0,i),r:Rn(n.right,o.right,0,e),b:Rn(n.bottom,o.bottom,0,i),l:Rn(n.left,o.left,0,e)}}(t,i/2,s/2),a=function(t,e,i){const{enableBorderRadius:s}=t.getProps(["enableBorderRadius"]),o=t.options.borderRadius,a=fi(o),r=Math.min(e,i),l=t.borderSkipped,h=s||n(o);return{topLeft:Rn(!h||l.top||l.left,a.topLeft,0,r),topRight:Rn(!h||l.top||l.right,a.topRight,0,r),bottomLeft:Rn(!h||l.bottom||l.left,a.bottomLeft,0,r),bottomRight:Rn(!h||l.bottom||l.right,a.bottomRight,0,r)}}(t,i/2,s/2);return{outer:{x:e.left,y:e.top,w:i,h:s,radius:a},inner:{x:e.left+o.l,y:e.top+o.t,w:i-o.l-o.r,h:s-o.t-o.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,a.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(o.b,o.r))}}}}function zn(t,e,i,s){const n=null===e,o=null===i,a=t&&!(n&&o)&&En(t,s);return a&&(n||Q(e,a.left,a.right))&&(o||Q(i,a.top,a.bottom))}function Fn(t,e){t.rect(e.x,e.y,e.w,e.h)}function Bn(t,e,i={}){const s=t.x!==i.x?-e:0,n=t.y!==i.y?-e:0,o=(t.x+t.w!==i.x+i.w?e:0)-s,a=(t.y+t.h!==i.y+i.h?e:0)-n;return{x:t.x+s,y:t.y+n,w:t.w+o,h:t.h+a,radius:t.radius}}PointElement.id="point",PointElement.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},PointElement.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class BarElement extends Element{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:i,backgroundColor:s}}=this,{inner:n,outer:o}=In(this),a=(r=o.radius).topLeft||r.topRight||r.bottomLeft||r.bottomRight?Te:Fn;var r;t.save(),o.w===n.w&&o.h===n.h||(t.beginPath(),a(t,Bn(o,e,n)),t.clip(),a(t,Bn(n,-e,o)),t.fillStyle=i,t.fill("evenodd")),t.beginPath(),a(t,Bn(n,e)),t.fillStyle=s,t.fill(),t.restore()}inRange(t,e,i){return zn(this,t,e,i)}inXRange(t,e){return zn(this,t,null,e)}inYRange(t,e){return zn(this,null,t,e)}getCenterPoint(t){const{x:e,y:i,base:s,horizontal:n}=this.getProps(["x","y","base","horizontal"],t);return{x:n?(e+s)/2:e,y:n?i:(i+s)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}BarElement.id="bar",BarElement.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},BarElement.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var Vn=Object.freeze({__proto__:null,ArcElement:ArcElement,LineElement:LineElement,PointElement:PointElement,BarElement:BarElement});function Nn(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{value:e})}}function Wn(t){t.data.datasets.forEach((t=>{Nn(t)}))}var Hn={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,s)=>{if(!s.enabled)return void Wn(t);const n=t.width;t.data.datasets.forEach(((e,o)=>{const{_data:a,indexAxis:r}=e,l=t.getDatasetMeta(o),h=a||e.data;if("y"===mi([r,t.options.indexAxis]))return;if(!l.controller.supportsDecimation)return;const c=t.scales[l.xAxisID];if("linear"!==c.type&&"time"!==c.type)return;if(t.options.parsing)return;let{start:d,count:u}=function(t,e){const i=e.length;let s,n=0;const{iScale:o}=t,{min:a,max:r,minDefined:l,maxDefined:h}=o.getUserBounds();return l&&(n=Z(et(e,o.axis,a).lo,0,i-1)),s=h?Z(et(e,o.axis,r).hi+1,n,i)-n:i-n,{start:n,count:s}}(l,h);if(u<=(s.threshold||4*n))return void Nn(e);let f;switch(i(a)&&(e._data=h,delete e.data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}})),s.algorithm){case"lttb":f=function(t,e,i,s,n){const o=n.samples||s;if(o>=i)return t.slice(e,e+i);const a=[],r=(i-2)/(o-2);let l=0;const h=e+i-1;let c,d,u,f,g,p=e;for(a[l++]=t[p],c=0;c<o-2;c++){let s,n=0,o=0;const h=Math.floor((c+1)*r)+1+e,m=Math.min(Math.floor((c+2)*r)+1,i)+e,b=m-h;for(s=h;s<m;s++)n+=t[s].x,o+=t[s].y;n/=b,o/=b;const x=Math.floor(c*r)+1+e,_=Math.min(Math.floor((c+1)*r)+1,i)+e,{x:y,y:v}=t[p];for(u=f=-1,s=x;s<_;s++)f=.5*Math.abs((y-n)*(t[s].y-v)-(y-t[s].x)*(o-v)),f>u&&(u=f,d=t[s],g=s);a[l++]=d,p=g}return a[l++]=t[h],a}(h,d,u,n,s);break;case"min-max":f=function(t,e,s,n){let o,a,r,l,h,c,d,u,f,g,p=0,m=0;const b=[],x=e+s-1,_=t[e].x,y=t[x].x-_;for(o=e;o<e+s;++o){a=t[o],r=(a.x-_)/y*n,l=a.y;const e=0|r;if(e===h)l<f?(f=l,c=o):l>g&&(g=l,d=o),p=(m*p+a.x)/++m;else{const s=o-1;if(!i(c)&&!i(d)){const e=Math.min(c,d),i=Math.max(c,d);e!==u&&e!==s&&b.push({...t[e],x:p}),i!==u&&i!==s&&b.push({...t[i],x:p})}o>0&&s!==u&&b.push(t[s]),b.push(a),h=e,m=0,f=g=l,c=d=u=o}}return b}(h,d,u,n);break;default:throw new Error(`Unsupported decimation algorithm '${s.algorithm}'`)}e._decimated=f}))},destroy(t){Wn(t)}};function jn(t,e,i,s){if(s)return;let n=e[t],o=i[t];return"angle"===t&&(n=K(n),o=K(o)),{property:t,start:n,end:o}}function $n(t,e,i){for(;e>t;e--){const t=i[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function Yn(t,e,i,s){return t&&e?s(t[i],e[i]):t?t[i]:e?e[i]:0}function Un(t,e){let i=[],n=!1;return s(t)?(n=!0,i=t):i=function(t,e){const{x:i=null,y:s=null}=t||{},n=e.points,o=[];return e.segments.forEach((({start:t,end:e})=>{e=$n(t,e,n);const a=n[t],r=n[e];null!==s?(o.push({x:a.x,y:s}),o.push({x:r.x,y:s})):null!==i&&(o.push({x:i,y:a.y}),o.push({x:i,y:r.y}))})),o}(t,e),i.length?new LineElement({points:i,options:{tension:0},_loop:n,_fullLoop:n}):null}function Xn(t){return t&&!1!==t.fill}function qn(t,e,i){let s=t[e].fill;const n=[e];let a;if(!i)return s;for(;!1!==s&&-1===n.indexOf(s);){if(!o(s))return s;if(a=t[s],!a)return!1;if(a.visible)return s;n.push(s),s=a.fill}return!1}function Kn(t,e,i){const s=function(t){const e=t.options,i=e.fill;let s=r(i&&i.target,i);void 0===s&&(s=!!e.backgroundColor);if(!1===s||null===s)return!1;if(!0===s)return"origin";return s}(t);if(n(s))return!isNaN(s.value)&&s;let a=parseFloat(s);return o(a)&&Math.floor(a)===a?function(t,e,i,s){"-"!==t&&"+"!==t||(i=e+i);if(i===e||i<0||i>=s)return!1;return i}(s[0],e,a,i):["origin","start","end","stack","shape"].indexOf(s)>=0&&s}function Gn(t,e,i){const s=[];for(let n=0;n<i.length;n++){const o=i[n],{first:a,last:r,point:l}=Zn(o,e,"x");if(!(!l||a&&r))if(a)s.unshift(l);else if(t.push(l),!r)break}t.push(...s)}function Zn(t,e,i){const s=t.interpolate(e,i);if(!s)return{};const n=s[i],o=t.segments,a=t.points;let r=!1,l=!1;for(let h=0;h<o.length;h++){const t=o[h],e=a[t.start][i],s=a[t.end][i];if(Q(n,e,s)){r=n===e,l=n===s;break}}return{first:r,last:l,point:s}}class simpleArc{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,i){const{x:s,y:n,radius:o}=this;return e=e||{start:0,end:D},t.arc(s,n,o,e.end,e.start,!0),!i.bounds}interpolate(t){const{x:e,y:i,radius:s}=this,n=t.angle;return{x:e+Math.cos(n)*s,y:i+Math.sin(n)*s,angle:n}}}function Jn(t){const{chart:e,fill:i,line:s}=t;if(o(i))return function(t,e){const i=t.getDatasetMeta(e),s=i&&t.isDatasetVisible(e);return s?i.dataset:null}(e,i);if("stack"===i)return function(t){const{scale:e,index:i,line:s}=t,n=[],o=s.segments,a=s.points,r=function(t,e){const i=[],s=t.getMatchingVisibleMetas("line");for(let n=0;n<s.length;n++){const t=s[n];if(t.index===e)break;t.hidden||i.unshift(t.dataset)}return i}(e,i);r.push(Un({x:null,y:e.bottom},s));for(let l=0;l<o.length;l++){const t=o[l];for(let e=t.start;e<=t.end;e++)Gn(n,a[e],r)}return new LineElement({points:n,options:{}})}(t);if("shape"===i)return!0;const a=function(t){const e=t.scale||{};if(e.getPointPositionForValue)return function(t){const{scale:e,fill:i}=t,s=e.options,o=e.getLabels().length,a=s.reverse?e.max:e.min,r=function(t,e,i){let s;return s="start"===t?i:"end"===t?e.options.reverse?e.min:e.max:n(t)?t.value:e.getBaseValue(),s}(i,e,a),l=[];if(s.grid.circular){const t=e.getPointPositionForValue(0,a);return new simpleArc({x:t.x,y:t.y,radius:e.getDistanceFromCenterForValue(r)})}for(let n=0;n<o;++n)l.push(e.getPointPositionForValue(n,r));return l}(t);return function(t){const{scale:e={},fill:i}=t,s=function(t,e){let i=null;return"start"===t?i=e.bottom:"end"===t?i=e.top:n(t)?i=e.getPixelForValue(t.value):e.getBasePixel&&(i=e.getBasePixel()),i}(i,e);if(o(s)){const t=e.isHorizontal();return{x:t?s:null,y:t?null:s}}return null}(t)}(t);return a instanceof simpleArc?a:Un(a,s)}function Qn(t,e,i){const s=Jn(e),{line:n,scale:o,axis:a}=e,r=n.options,l=r.fill,h=r.backgroundColor,{above:c=h,below:d=h}=l||{};s&&n.points.length&&(Se(t,i),function(t,e){const{line:i,target:s,above:n,below:o,area:a,scale:r}=e,l=i._loop?"angle":e.axis;t.save(),"x"===l&&o!==n&&(to(t,s,a.top),eo(t,{line:i,target:s,color:n,scale:r,property:l}),t.restore(),t.save(),to(t,s,a.bottom));eo(t,{line:i,target:s,color:o,scale:r,property:l}),t.restore()}(t,{line:n,target:s,above:c,below:d,area:i,scale:o,axis:a}),Pe(t))}function to(t,e,i){const{segments:s,points:n}=e;let o=!0,a=!1;t.beginPath();for(const r of s){const{start:s,end:l}=r,h=n[s],c=n[$n(s,l,n)];o?(t.moveTo(h.x,h.y),o=!1):(t.lineTo(h.x,i),t.lineTo(h.x,h.y)),a=!!e.pathSegment(t,r,{move:a}),a?t.closePath():t.lineTo(c.x,i)}t.lineTo(e.first().x,i),t.closePath(),t.clip()}function eo(t,e){const{line:i,target:s,property:n,color:o,scale:a}=e,r=function(t,e,i){const s=t.segments,n=t.points,o=e.points,a=[];for(const r of s){let{start:t,end:s}=r;s=$n(t,s,n);const l=jn(i,n[t],n[s],r.loop);if(!e.segments){a.push({source:r,target:l,start:n[t],end:n[s]});continue}const h=Si(e,l);for(const e of h){const t=jn(i,o[e.start],o[e.end],e.loop),s=ki(r,n,t);for(const n of s)a.push({source:n,target:e,start:{[i]:Yn(l,t,"start",Math.max)},end:{[i]:Yn(l,t,"end",Math.min)}})}}return a}(i,s,n);for(const{source:l,target:h,start:c,end:d}of r){const{style:{backgroundColor:e=o}={}}=l,r=!0!==s;t.save(),t.fillStyle=e,io(t,a,r&&jn(n,c,d)),t.beginPath();const u=!!i.pathSegment(t,l);let f;if(r){u?t.closePath():so(t,s,d,n);const e=!!s.pathSegment(t,h,{move:u,reverse:!0});f=u&&e,f||so(t,s,c,n)}t.closePath(),t.fill(f?"evenodd":"nonzero"),t.restore()}}function io(t,e,i){const{top:s,bottom:n}=e.chart.chartArea,{property:o,start:a,end:r}=i||{};"x"===o&&(t.beginPath(),t.rect(a,s,r-a,n-s),t.clip())}function so(t,e,i,s){const n=e.interpolate(i,s);n&&t.lineTo(n.x,n.y)}var no={id:"filler",afterDatasetsUpdate(t,e,i){const s=(t.data.datasets||[]).length,n=[];let o,a,r,l;for(a=0;a<s;++a)o=t.getDatasetMeta(a),r=o.dataset,l=null,r&&r.options&&r instanceof LineElement&&(l={visible:t.isDatasetVisible(a),index:a,fill:Kn(r,a,s),chart:t,axis:o.controller.options.indexAxis,scale:o.vScale,line:r}),o.$filler=l,n.push(l);for(a=0;a<s;++a)l=n[a],l&&!1!==l.fill&&(l.fill=qn(n,a,i.propagate))},beforeDraw(t,e,i){const s="beforeDraw"===i.drawTime,n=t.getSortedVisibleDatasetMetas(),o=t.chartArea;for(let a=n.length-1;a>=0;--a){const e=n[a].$filler;e&&(e.line.updateControlPoints(o,e.axis),s&&e.fill&&Qn(t.ctx,e,o))}},beforeDatasetsDraw(t,e,i){if("beforeDatasetsDraw"!==i.drawTime)return;const s=t.getSortedVisibleDatasetMetas();for(let n=s.length-1;n>=0;--n){const e=s[n].$filler;Xn(e)&&Qn(t.ctx,e,t.chartArea)}},beforeDatasetDraw(t,e,i){const s=e.meta.$filler;Xn(s)&&"beforeDatasetDraw"===i.drawTime&&Qn(t.ctx,s,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const oo=(t,e)=>{let{boxHeight:i=e,boxWidth:s=e}=t;return t.usePointStyle&&(i=Math.min(i,e),s=t.pointStyleWidth||Math.min(s,e)),{boxWidth:s,boxHeight:i,itemHeight:Math.max(e,i)}};class Legend extends Element{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,i){this.maxWidth=t,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=c(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,i)=>t.sort(e,i,this.chart.data)))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const i=t.labels,s=pi(i.font),n=s.size,o=this._computeTitleHeight(),{boxWidth:a,itemHeight:r}=oo(i,n);let l,h;e.font=s.string,this.isHorizontal()?(l=this.maxWidth,h=this._fitRows(o,n,a,r)+10):(h=this.maxHeight,l=this._fitCols(o,n,a,r)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(h,t.maxHeight||this.maxHeight)}_fitRows(t,e,i,s){const{ctx:n,maxWidth:o,options:{labels:{padding:a}}}=this,r=this.legendHitBoxes=[],l=this.lineWidths=[0],h=s+a;let c=t;n.textAlign="left",n.textBaseline="middle";let d=-1,u=-h;return this.legendItems.forEach(((t,f)=>{const g=i+e/2+n.measureText(t.text).width;(0===f||l[l.length-1]+g+2*a>o)&&(c+=h,l[l.length-(f>0?0:1)]=0,u+=h,d++),r[f]={left:0,top:u,row:d,width:g,height:s},l[l.length-1]+=g+a})),c}_fitCols(t,e,i,s){const{ctx:n,maxHeight:o,options:{labels:{padding:a}}}=this,r=this.legendHitBoxes=[],l=this.columnSizes=[],h=o-t;let c=a,d=0,u=0,f=0,g=0;return this.legendItems.forEach(((t,o)=>{const p=i+e/2+n.measureText(t.text).width;o>0&&u+s+2*a>h&&(c+=d+a,l.push({width:d,height:u}),f+=d+a,g++,d=u=0),r[o]={left:f,top:u,col:g,width:p,height:s},d=Math.max(d,p),u+=s+a})),c+=d,l.push({width:d,height:u}),c}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:s},rtl:n}}=this,o=_i(n,this.left,this.width);if(this.isHorizontal()){let n=0,a=ut(i,this.left+s,this.right-this.lineWidths[n]);for(const r of e)n!==r.row&&(n=r.row,a=ut(i,this.left+s,this.right-this.lineWidths[n])),r.top+=this.top+t+s,r.left=o.leftForLtr(o.x(a),r.width),a+=r.width+s}else{let n=0,a=ut(i,this.top+t+s,this.bottom-this.columnSizes[n].height);for(const r of e)r.col!==n&&(n=r.col,a=ut(i,this.top+t+s,this.bottom-this.columnSizes[n].height)),r.top=a,r.left+=this.left+s,r.left=o.leftForLtr(o.x(r.left),r.width),a+=r.height+s}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;Se(t,this),this._draw(),Pe(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:i,ctx:s}=this,{align:n,labels:o}=t,a=se.color,l=_i(t.rtl,this.left,this.width),h=pi(o.font),{color:c,padding:d}=o,u=h.size,f=u/2;let g;this.drawTitle(),s.textAlign=l.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=h.string;const{boxWidth:p,boxHeight:m,itemHeight:b}=oo(o,u),x=this.isHorizontal(),_=this._computeTitleHeight();g=x?{x:ut(n,this.left+d,this.right-i[0]),y:this.top+d+_,line:0}:{x:this.left+d,y:ut(n,this.top+_+d,this.bottom-e[0].height),line:0},yi(this.ctx,t.textDirection);const y=b+d;this.legendItems.forEach(((v,w)=>{s.strokeStyle=v.fontColor||c,s.fillStyle=v.fontColor||c;const M=s.measureText(v.text).width,k=l.textAlign(v.textAlign||(v.textAlign=o.textAlign)),S=p+f+M;let P=g.x,C=g.y;l.setWidth(this.width),x?w>0&&P+S+d>this.right&&(C=g.y+=y,g.line++,P=g.x=ut(n,this.left+d,this.right-i[g.line])):w>0&&C+y>this.bottom&&(P=g.x=P+e[g.line].width+d,g.line++,C=g.y=ut(n,this.top+_+d,this.bottom-e[g.line].height));!function(t,e,i){if(isNaN(p)||p<=0||isNaN(m)||m<0)return;s.save();const n=r(i.lineWidth,1);if(s.fillStyle=r(i.fillStyle,a),s.lineCap=r(i.lineCap,"butt"),s.lineDashOffset=r(i.lineDashOffset,0),s.lineJoin=r(i.lineJoin,"miter"),s.lineWidth=n,s.strokeStyle=r(i.strokeStyle,a),s.setLineDash(r(i.lineDash,[])),o.usePointStyle){const a={radius:m*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:n},r=l.xPlus(t,p/2);Me(s,a,r,e+f,o.pointStyleWidth&&p)}else{const o=e+Math.max((u-m)/2,0),a=l.leftForLtr(t,p),r=fi(i.borderRadius);s.beginPath(),Object.values(r).some((t=>0!==t))?Te(s,{x:a,y:o,w:p,h:m,radius:r}):s.rect(a,o,p,m),s.fill(),0!==n&&s.stroke()}s.restore()}(l.x(P),C,v),P=ft(k,P+p+f,x?P+S:this.right,t.rtl),function(t,e,i){Ae(s,i.text,t,e+b/2,h,{strikethrough:i.hidden,textAlign:l.textAlign(i.textAlign)})}(l.x(P),C,v),x?g.x+=S+d:g.y+=y})),vi(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,i=pi(e.font),s=gi(e.padding);if(!e.display)return;const n=_i(t.rtl,this.left,this.width),o=this.ctx,a=e.position,r=i.size/2,l=s.top+r;let h,c=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),h=this.top+l,c=ut(t.align,c,this.right-d);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);h=l+ut(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const u=ut(a,c,c+d);o.textAlign=n.textAlign(dt(a)),o.textBaseline="middle",o.strokeStyle=e.color,o.fillStyle=e.color,o.font=i.string,Ae(o,e.text,u,h,i)}_computeTitleHeight(){const t=this.options.title,e=pi(t.font),i=gi(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,s,n;if(Q(t,this.left,this.right)&&Q(e,this.top,this.bottom))for(n=this.legendHitBoxes,i=0;i<n.length;++i)if(s=n[i],Q(t,s.left,s.left+s.width)&&Q(e,s.top,s.top+s.height))return this.legendItems[i];return null}handleEvent(t){const e=this.options;if(!function(t,e){if(("mousemove"===t||"mouseout"===t)&&(e.onHover||e.onLeave))return!0;if(e.onClick&&("click"===t||"mouseup"===t))return!0;return!1}(t.type,e))return;const i=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const o=this._hoveredItem,a=(n=i,null!==(s=o)&&null!==n&&s.datasetIndex===n.datasetIndex&&s.index===n.index);o&&!a&&c(e.onLeave,[t,o,this],this),this._hoveredItem=i,i&&!a&&c(e.onHover,[t,i,this],this)}else i&&c(e.onClick,[t,i,this],this);var s,n}}var ao={id:"legend",_element:Legend,start(t,e,i){const s=t.legend=new Legend({ctx:t.ctx,options:i,chart:t});Gi.configure(t,s,i),Gi.addBox(t,s)},stop(t){Gi.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,i){const s=t.legend;Gi.configure(t,s,i),s.options=i},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,i){const s=e.datasetIndex,n=i.chart;n.isDatasetVisible(s)?(n.hide(s),e.hidden=!0):(n.show(s),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:i,pointStyle:s,textAlign:n,color:o}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const a=t.controller.getStyle(i?0:void 0),r=gi(a.borderWidth);return{text:e[t.index].label,fillStyle:a.backgroundColor,fontColor:o,hidden:!t.visible,lineCap:a.borderCapStyle,lineDash:a.borderDash,lineDashOffset:a.borderDashOffset,lineJoin:a.borderJoinStyle,lineWidth:(r.width+r.height)/4,strokeStyle:a.borderColor,pointStyle:s||a.pointStyle,rotation:a.rotation,textAlign:n||a.textAlign,borderRadius:0,datasetIndex:t.index}}),this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class Title extends Element{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const i=this.options;if(this.left=0,this.top=0,!i.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const n=s(i.text)?i.text.length:1;this._padding=gi(i.padding);const o=n*pi(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:i,bottom:s,right:n,options:o}=this,a=o.align;let r,l,h,c=0;return this.isHorizontal()?(l=ut(a,i,n),h=e+t,r=n-i):("left"===o.position?(l=i+t,h=ut(a,s,e),c=-.5*C):(l=n-t,h=ut(a,e,s),c=.5*C),r=s-e),{titleX:l,titleY:h,maxWidth:r,rotation:c}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const i=pi(e.font),s=i.lineHeight/2+this._padding.top,{titleX:n,titleY:o,maxWidth:a,rotation:r}=this._drawArgs(s);Ae(t,e.text,0,0,i,{color:e.color,maxWidth:a,rotation:r,textAlign:dt(e.align),textBaseline:"middle",translation:[n,o]})}}var ro={id:"title",_element:Title,start(t,e,i){!function(t,e){const i=new Title({ctx:t.ctx,options:e,chart:t});Gi.configure(t,i,e),Gi.addBox(t,i),t.titleBlock=i}(t,i)},stop(t){const e=t.titleBlock;Gi.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,i){const s=t.titleBlock;Gi.configure(t,s,i),s.options=i},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const lo=new WeakMap;var ho={id:"subtitle",start(t,e,i){const s=new Title({ctx:t.ctx,options:i,chart:t});Gi.configure(t,s,i),Gi.addBox(t,s),lo.set(t,s)},stop(t){Gi.removeBox(t,lo.get(t)),lo.delete(t)},beforeUpdate(t,e,i){const s=lo.get(t);Gi.configure(t,s,i),s.options=i},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const co={average(t){if(!t.length)return!1;let e,i,s=0,n=0,o=0;for(e=0,i=t.length;e<i;++e){const i=t[e].element;if(i&&i.hasValue()){const t=i.tooltipPosition();s+=t.x,n+=t.y,++o}}return{x:s/o,y:n/o}},nearest(t,e){if(!t.length)return!1;let i,s,n,o=e.x,a=e.y,r=Number.POSITIVE_INFINITY;for(i=0,s=t.length;i<s;++i){const s=t[i].element;if(s&&s.hasValue()){const t=X(e,s.getCenterPoint());t<r&&(r=t,n=s)}}if(n){const t=n.tooltipPosition();o=t.x,a=t.y}return{x:o,y:a}}};function uo(t,e){return e&&(s(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function fo(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function go(t,e){const{element:i,datasetIndex:s,index:n}=e,o=t.getDatasetMeta(s).controller,{label:a,value:r}=o.getLabelAndValue(n);return{chart:t,label:a,parsed:o.getParsed(n),raw:t.data.datasets[s].data[n],formattedValue:r,dataset:o.getDataset(),dataIndex:n,datasetIndex:s,element:i}}function po(t,e){const i=t.chart.ctx,{body:s,footer:n,title:o}=t,{boxWidth:a,boxHeight:r}=e,l=pi(e.bodyFont),h=pi(e.titleFont),c=pi(e.footerFont),u=o.length,f=n.length,g=s.length,p=gi(e.padding);let m=p.height,b=0,x=s.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);if(x+=t.beforeBody.length+t.afterBody.length,u&&(m+=u*h.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),x){m+=g*(e.displayColors?Math.max(r,l.lineHeight):l.lineHeight)+(x-g)*l.lineHeight+(x-1)*e.bodySpacing}f&&(m+=e.footerMarginTop+f*c.lineHeight+(f-1)*e.footerSpacing);let _=0;const y=function(t){b=Math.max(b,i.measureText(t).width+_)};return i.save(),i.font=h.string,d(t.title,y),i.font=l.string,d(t.beforeBody.concat(t.afterBody),y),_=e.displayColors?a+2+e.boxPadding:0,d(s,(t=>{d(t.before,y),d(t.lines,y),d(t.after,y)})),_=0,i.font=c.string,d(t.footer,y),i.restore(),b+=p.width,{width:b,height:m}}function mo(t,e,i,s){const{x:n,width:o}=i,{width:a,chartArea:{left:r,right:l}}=t;let h="center";return"center"===s?h=n<=(r+l)/2?"left":"right":n<=o/2?h="left":n>=a-o/2&&(h="right"),function(t,e,i,s){const{x:n,width:o}=s,a=i.caretSize+i.caretPadding;return"left"===t&&n+o+a>e.width||"right"===t&&n-o-a<0||void 0}(h,t,e,i)&&(h="center"),h}function bo(t,e,i){const s=i.yAlign||e.yAlign||function(t,e){const{y:i,height:s}=e;return i<s/2?"top":i>t.height-s/2?"bottom":"center"}(t,i);return{xAlign:i.xAlign||e.xAlign||mo(t,e,i,s),yAlign:s}}function xo(t,e,i,s){const{caretSize:n,caretPadding:o,cornerRadius:a}=t,{xAlign:r,yAlign:l}=i,h=n+o,{topLeft:c,topRight:d,bottomLeft:u,bottomRight:f}=fi(a);let g=function(t,e){let{x:i,width:s}=t;return"right"===e?i-=s:"center"===e&&(i-=s/2),i}(e,r);const p=function(t,e,i){let{y:s,height:n}=t;return"top"===e?s+=i:s-="bottom"===e?n+i:n/2,s}(e,l,h);return"center"===l?"left"===r?g+=h:"right"===r&&(g-=h):"left"===r?g-=Math.max(c,u)+n:"right"===r&&(g+=Math.max(d,f)+n),{x:Z(g,0,s.width-e.width),y:Z(p,0,s.height-e.height)}}function _o(t,e,i){const s=gi(i.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-s.right:t.x+s.left}function yo(t){return uo([],fo(t))}function vo(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}class Tooltip extends Element{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart||t._chart,this._chart=this.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,i=this.options.setContext(this.getContext()),s=i.enabled&&e.options.animation&&i.animations,n=new Animations(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(n)),n}getContext(){return this.$context||(this.$context=(t=this.chart.getContext(),e=this,i=this._tooltipItems,xi(t,{tooltip:e,tooltipItems:i,type:"tooltip"})));var t,e,i}getTitle(t,e){const{callbacks:i}=e,s=i.beforeTitle.apply(this,[t]),n=i.title.apply(this,[t]),o=i.afterTitle.apply(this,[t]);let a=[];return a=uo(a,fo(s)),a=uo(a,fo(n)),a=uo(a,fo(o)),a}getBeforeBody(t,e){return yo(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:i}=e,s=[];return d(t,(t=>{const e={before:[],lines:[],after:[]},n=vo(i,t);uo(e.before,fo(n.beforeLabel.call(this,t))),uo(e.lines,n.label.call(this,t)),uo(e.after,fo(n.afterLabel.call(this,t))),s.push(e)})),s}getAfterBody(t,e){return yo(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:i}=e,s=i.beforeFooter.apply(this,[t]),n=i.footer.apply(this,[t]),o=i.afterFooter.apply(this,[t]);let a=[];return a=uo(a,fo(s)),a=uo(a,fo(n)),a=uo(a,fo(o)),a}_createItems(t){const e=this._active,i=this.chart.data,s=[],n=[],o=[];let a,r,l=[];for(a=0,r=e.length;a<r;++a)l.push(go(this.chart,e[a]));return t.filter&&(l=l.filter(((e,s,n)=>t.filter(e,s,n,i)))),t.itemSort&&(l=l.sort(((e,s)=>t.itemSort(e,s,i)))),d(l,(e=>{const i=vo(t.callbacks,e);s.push(i.labelColor.call(this,e)),n.push(i.labelPointStyle.call(this,e)),o.push(i.labelTextColor.call(this,e))})),this.labelColors=s,this.labelPointStyles=n,this.labelTextColors=o,this.dataPoints=l,l}update(t,e){const i=this.options.setContext(this.getContext()),s=this._active;let n,o=[];if(s.length){const t=co[i.position].call(this,s,this._eventPosition);o=this._createItems(i),this.title=this.getTitle(o,i),this.beforeBody=this.getBeforeBody(o,i),this.body=this.getBody(o,i),this.afterBody=this.getAfterBody(o,i),this.footer=this.getFooter(o,i);const e=this._size=po(this,i),a=Object.assign({},t,e),r=bo(this.chart,i,a),l=xo(i,a,r,this.chart);this.xAlign=r.xAlign,this.yAlign=r.yAlign,n={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(n={opacity:0});this._tooltipItems=o,this.$context=void 0,n&&this._resolveAnimations().update(this,n),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,s){const n=this.getCaretPosition(t,i,s);e.lineTo(n.x1,n.y1),e.lineTo(n.x2,n.y2),e.lineTo(n.x3,n.y3)}getCaretPosition(t,e,i){const{xAlign:s,yAlign:n}=this,{caretSize:o,cornerRadius:a}=i,{topLeft:r,topRight:l,bottomLeft:h,bottomRight:c}=fi(a),{x:d,y:u}=t,{width:f,height:g}=e;let p,m,b,x,_,y;return"center"===n?(_=u+g/2,"left"===s?(p=d,m=p-o,x=_+o,y=_-o):(p=d+f,m=p+o,x=_-o,y=_+o),b=p):(m="left"===s?d+Math.max(r,h)+o:"right"===s?d+f-Math.max(l,c)-o:this.caretX,"top"===n?(x=u,_=x-o,p=m-o,b=m+o):(x=u+g,_=x+o,p=m+o,b=m-o),y=x),{x1:p,x2:m,x3:b,y1:x,y2:_,y3:y}}drawTitle(t,e,i){const s=this.title,n=s.length;let o,a,r;if(n){const l=_i(i.rtl,this.x,this.width);for(t.x=_o(this,i.titleAlign,i),e.textAlign=l.textAlign(i.titleAlign),e.textBaseline="middle",o=pi(i.titleFont),a=i.titleSpacing,e.fillStyle=i.titleColor,e.font=o.string,r=0;r<n;++r)e.fillText(s[r],l.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+a,r+1===n&&(t.y+=i.titleMarginBottom-a)}}_drawColorBox(t,e,i,s,o){const a=this.labelColors[i],r=this.labelPointStyles[i],{boxHeight:l,boxWidth:h,boxPadding:c}=o,d=pi(o.bodyFont),u=_o(this,"left",o),f=s.x(u),g=l<d.lineHeight?(d.lineHeight-l)/2:0,p=e.y+g;if(o.usePointStyle){const e={radius:Math.min(h,l)/2,pointStyle:r.pointStyle,rotation:r.rotation,borderWidth:1},i=s.leftForLtr(f,h)+h/2,n=p+l/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,we(t,e,i,n),t.strokeStyle=a.borderColor,t.fillStyle=a.backgroundColor,we(t,e,i,n)}else{t.lineWidth=n(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,t.strokeStyle=a.borderColor,t.setLineDash(a.borderDash||[]),t.lineDashOffset=a.borderDashOffset||0;const e=s.leftForLtr(f,h-c),i=s.leftForLtr(s.xPlus(f,1),h-c-2),r=fi(a.borderRadius);Object.values(r).some((t=>0!==t))?(t.beginPath(),t.fillStyle=o.multiKeyBackground,Te(t,{x:e,y:p,w:h,h:l,radius:r}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),Te(t,{x:i,y:p+1,w:h-2,h:l-2,radius:r}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(e,p,h,l),t.strokeRect(e,p,h,l),t.fillStyle=a.backgroundColor,t.fillRect(i,p+1,h-2,l-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){const{body:s}=this,{bodySpacing:n,bodyAlign:o,displayColors:a,boxHeight:r,boxWidth:l,boxPadding:h}=i,c=pi(i.bodyFont);let u=c.lineHeight,f=0;const g=_i(i.rtl,this.x,this.width),p=function(i){e.fillText(i,g.x(t.x+f),t.y+u/2),t.y+=u+n},m=g.textAlign(o);let b,x,_,y,v,w,M;for(e.textAlign=o,e.textBaseline="middle",e.font=c.string,t.x=_o(this,m,i),e.fillStyle=i.bodyColor,d(this.beforeBody,p),f=a&&"right"!==m?"center"===o?l/2+h:l+2+h:0,y=0,w=s.length;y<w;++y){for(b=s[y],x=this.labelTextColors[y],e.fillStyle=x,d(b.before,p),_=b.lines,a&&_.length&&(this._drawColorBox(e,t,y,g,i),u=Math.max(c.lineHeight,r)),v=0,M=_.length;v<M;++v)p(_[v]),u=c.lineHeight;d(b.after,p)}f=0,u=c.lineHeight,d(this.afterBody,p),t.y-=n}drawFooter(t,e,i){const s=this.footer,n=s.length;let o,a;if(n){const r=_i(i.rtl,this.x,this.width);for(t.x=_o(this,i.footerAlign,i),t.y+=i.footerMarginTop,e.textAlign=r.textAlign(i.footerAlign),e.textBaseline="middle",o=pi(i.footerFont),e.fillStyle=i.footerColor,e.font=o.string,a=0;a<n;++a)e.fillText(s[a],r.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+i.footerSpacing}}drawBackground(t,e,i,s){const{xAlign:n,yAlign:o}=this,{x:a,y:r}=t,{width:l,height:h}=i,{topLeft:c,topRight:d,bottomLeft:u,bottomRight:f}=fi(s.cornerRadius);e.fillStyle=s.backgroundColor,e.strokeStyle=s.borderColor,e.lineWidth=s.borderWidth,e.beginPath(),e.moveTo(a+c,r),"top"===o&&this.drawCaret(t,e,i,s),e.lineTo(a+l-d,r),e.quadraticCurveTo(a+l,r,a+l,r+d),"center"===o&&"right"===n&&this.drawCaret(t,e,i,s),e.lineTo(a+l,r+h-f),e.quadraticCurveTo(a+l,r+h,a+l-f,r+h),"bottom"===o&&this.drawCaret(t,e,i,s),e.lineTo(a+u,r+h),e.quadraticCurveTo(a,r+h,a,r+h-u),"center"===o&&"left"===n&&this.drawCaret(t,e,i,s),e.lineTo(a,r+c),e.quadraticCurveTo(a,r,a+c,r),e.closePath(),e.fill(),s.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,i=this.$animations,s=i&&i.x,n=i&&i.y;if(s||n){const i=co[t.position].call(this,this._active,this._eventPosition);if(!i)return;const o=this._size=po(this,t),a=Object.assign({},i,this._size),r=bo(e,t,a),l=xo(t,a,r,e);s._to===l.x&&n._to===l.y||(this.xAlign=r.xAlign,this.yAlign=r.yAlign,this.width=o.width,this.height=o.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(e);const s={width:this.width,height:this.height},n={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const o=gi(e.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&a&&(t.save(),t.globalAlpha=i,this.drawBackground(n,t,s,e),yi(t,e.textDirection),n.y+=o.top,this.drawTitle(n,t,e),this.drawBody(n,t,e),this.drawFooter(n,t,e),vi(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const i=this._active,s=t.map((({datasetIndex:t,index:e})=>{const i=this.chart.getDatasetMeta(t);if(!i)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:i.data[e],index:e}})),n=!u(i,s),o=this._positionChanged(s,e);(n||o)&&(this._active=s,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,n=this._active||[],o=this._getActiveElements(t,n,e,i),a=this._positionChanged(o,t),r=e||!u(o,n)||a;return r&&(this._active=o,(s.enabled||s.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),r}_getActiveElements(t,e,i,s){const n=this.options;if("mouseout"===t.type)return[];if(!s)return e;const o=this.chart.getElementsAtEventForMode(t,n.mode,n,i);return n.reverse&&o.reverse(),o}_positionChanged(t,e){const{caretX:i,caretY:s,options:n}=this,o=co[n.position].call(this,t,e);return!1!==o&&(i!==o.x||s!==o.y)}}Tooltip.positioners=co;var wo={id:"tooltip",_element:Tooltip,positioners:co,afterInit(t,e,i){i&&(t.tooltip=new Tooltip({chart:t,options:i}))},beforeUpdate(t,e,i){t.tooltip&&t.tooltip.initialize(i)},reset(t,e,i){t.tooltip&&t.tooltip.initialize(i)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const i={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",i))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",i)}},afterEvent(t,e){if(t.tooltip){const i=e.replay;t.tooltip.handleEvent(e.event,i,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:t,title(t){if(t.length>0){const e=t[0],i=e.chart.data.labels,s=i?i.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(s>0&&e.dataIndex<s)return i[e.dataIndex]}return""},afterTitle:t,beforeBody:t,beforeLabel:t,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const s=t.formattedValue;return i(s)||(e+=s),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:t,afterBody:t,beforeFooter:t,footer:t,afterFooter:t}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},Mo=Object.freeze({__proto__:null,Decimation:Hn,Filler:no,Legend:ao,SubTitle:ho,Title:ro,Tooltip:wo});function ko(t,e,i,s){const n=t.indexOf(e);if(-1===n)return((t,e,i,s)=>("string"==typeof e?(i=t.push(e)-1,s.unshift({index:i,label:e})):isNaN(e)&&(i=null),i))(t,e,i,s);return n!==t.lastIndexOf(e)?i:n}class CategoryScale extends Scale{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:i,label:s}of e)t[i]===s&&t.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(i(t))return null;const s=this.getLabels();return((t,e)=>null===t?null:Z(Math.round(t),0,e))(e=isFinite(e)&&s[e]===t?e:ko(s,t,r(e,t),this._addedLabels),s.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:i,max:s}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(i=0),e||(s=this.getLabels().length-1)),this.min=i,this.max=s}buildTicks(){const t=this.min,e=this.max,i=this.options.offset,s=[];let n=this.getLabels();n=0===t&&e===n.length-1?n:n.slice(t,e+1),this._valueRange=Math.max(n.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let o=t;o<=e;o++)s.push({value:o});return s}getLabelForValue(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function So(t,e,{horizontal:i,minRotation:s}){const n=j(s),o=(i?Math.sin(n):Math.cos(n))||.001,a=.75*e*(""+t).length;return Math.min(e/o,a)}CategoryScale.id="category",CategoryScale.defaults={ticks:{callback:CategoryScale.prototype.getLabelForValue}};class LinearScaleBase extends Scale{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return i(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds();let{min:s,max:n}=this;const o=t=>s=e?s:t,a=t=>n=i?n:t;if(t){const t=z(s),e=z(n);t<0&&e<0?a(0):t>0&&e>0&&o(0)}if(s===n){let e=1;(n>=Number.MAX_SAFE_INTEGER||s<=Number.MIN_SAFE_INTEGER)&&(e=Math.abs(.05*n)),a(n+e),t||o(s-e)}this.min=s,this.max=n}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:i,stepSize:s}=t;return s?(e=Math.ceil(this.max/s)-Math.floor(this.min/s)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${s} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),i=i||11),i&&(e=Math.min(i,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let s=this.getTickLimit();s=Math.max(2,s);const n=function(t,e){const s=[],{bounds:n,step:o,min:a,max:r,precision:l,count:h,maxTicks:c,maxDigits:d,includeBounds:u}=t,f=o||1,g=c-1,{min:p,max:m}=e,b=!i(a),x=!i(r),_=!i(h),y=(m-p)/(d+1);let v,w,M,k,S=F((m-p)/g/f)*f;if(S<1e-14&&!b&&!x)return[{value:p},{value:m}];k=Math.ceil(m/S)-Math.floor(p/S),k>g&&(S=F(k*S/g/f)*f),i(l)||(v=Math.pow(10,l),S=Math.ceil(S*v)/v),"ticks"===n?(w=Math.floor(p/S)*S,M=Math.ceil(m/S)*S):(w=p,M=m),b&&x&&o&&W((r-a)/o,S/1e3)?(k=Math.round(Math.min((r-a)/S,c)),S=(r-a)/k,w=a,M=r):_?(w=b?a:w,M=x?r:M,k=h-1,S=(M-w)/k):(k=(M-w)/S,k=N(k,Math.round(k),S/1e3)?Math.round(k):Math.ceil(k));const P=Math.max(Y(S),Y(w));v=Math.pow(10,i(l)?P:l),w=Math.round(w*v)/v,M=Math.round(M*v)/v;let C=0;for(b&&(u&&w!==a?(s.push({value:a}),w<a&&C++,N(Math.round((w+C*S)*v)/v,a,So(a,y,t))&&C++):w<a&&C++);C<k;++C)s.push({value:Math.round((w+C*S)*v)/v});return x&&u&&M!==r?s.length&&N(s[s.length-1].value,r,So(r,y,t))?s[s.length-1].value=r:s.push({value:r}):x&&M!==r||s.push({value:M}),s}({maxTicks:s,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&H(n,this,"value"),t.reverse?(n.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),n}configure(){const t=this.ticks;let e=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){const s=(i-e)/Math.max(t.length-1,1)/2;e-=s,i+=s}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(t){return ri(t,this.chart.options.locale,this.options.ticks.format)}}class LinearScale extends LinearScaleBase{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=o(t)?t:0,this.max=o(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,i=j(this.options.ticks.minRotation),s=(t?Math.sin(i):Math.cos(i))||.001,n=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,n.lineHeight/s))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}function Po(t){return 1===t/Math.pow(10,Math.floor(I(t)))}LinearScale.id="linear",LinearScale.defaults={ticks:{callback:Ds.formatters.numeric}};class LogarithmicScale extends Scale{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const i=LinearScaleBase.prototype.parse.apply(this,[t,e]);if(0!==i)return o(i)&&i>0?i:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=o(t)?Math.max(0,t):null,this.max=o(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let i=this.min,s=this.max;const n=e=>i=t?i:e,o=t=>s=e?s:t,a=(t,e)=>Math.pow(10,Math.floor(I(t))+e);i===s&&(i<=0?(n(1),o(10)):(n(a(i,-1)),o(a(s,1)))),i<=0&&n(a(s,-1)),s<=0&&o(a(i,1)),this._zero&&this.min!==this._suggestedMin&&i===a(this.min,0)&&n(a(i,-1)),this.min=i,this.max=s}buildTicks(){const t=this.options,e=function(t,e){const i=Math.floor(I(e.max)),s=Math.ceil(e.max/Math.pow(10,i)),n=[];let o=a(t.min,Math.pow(10,Math.floor(I(e.min)))),r=Math.floor(I(o)),l=Math.floor(o/Math.pow(10,r)),h=r<0?Math.pow(10,Math.abs(r)):1;do{n.push({value:o,major:Po(o)}),++l,10===l&&(l=1,++r,h=r>=0?1:h),o=Math.round(l*Math.pow(10,r)*h)/h}while(r<i||r===i&&l<s);const c=a(t.max,o);return n.push({value:c,major:Po(o)}),n}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&H(e,this,"value"),t.reverse?(e.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),e}getLabelForValue(t){return void 0===t?"0":ri(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=I(t),this._valueRange=I(this.max)-I(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(I(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function Co(t){const e=t.ticks;if(e.display&&t.display){const t=gi(e.backdropPadding);return r(e.font&&e.font.size,se.font.size)+t.height}return 0}function Do(t,e,i,s,n){return t===s||t===n?{start:e-i/2,end:e+i/2}:t<s||t>n?{start:e-i,end:e}:{start:e,end:e+i}}function Ao(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},i=Object.assign({},e),n=[],o=[],a=t._pointLabels.length,r=t.options.pointLabels,l=r.centerPointLabels?C/a:0;for(let u=0;u<a;u++){const a=r.setContext(t.getPointLabelContext(u));o[u]=a.padding;const f=t.getPointPosition(u,t.drawingArea+o[u],l),g=pi(a.font),p=(h=t.ctx,c=g,d=s(d=t._pointLabels[u])?d:[d],{w:_e(h,c.string,d),h:d.length*c.lineHeight});n[u]=p;const m=K(t.getIndexAngle(u)+l),b=Math.round($(m));Oo(i,e,m,Do(b,f.x,p.w,0,180),Do(b,f.y,p.h,90,270))}var h,c,d;t.setCenterPoint(e.l-i.l,i.r-e.r,e.t-i.t,i.b-e.b),t._pointLabelItems=function(t,e,i){const s=[],n=t._pointLabels.length,o=t.options,a=Co(o)/2,r=t.drawingArea,l=o.pointLabels.centerPointLabels?C/n:0;for(let h=0;h<n;h++){const n=t.getPointPosition(h,r+a+i[h],l),o=Math.round($(K(n.angle+L))),c=e[h],d=Eo(n.y,c.h,o),u=To(o),f=Lo(n.x,c.w,u);s.push({x:n.x,y:d,textAlign:u,left:f,top:d,right:f+c.w,bottom:d+c.h})}return s}(t,n,o)}function Oo(t,e,i,s,n){const o=Math.abs(Math.sin(i)),a=Math.abs(Math.cos(i));let r=0,l=0;s.start<e.l?(r=(e.l-s.start)/o,t.l=Math.min(t.l,e.l-r)):s.end>e.r&&(r=(s.end-e.r)/o,t.r=Math.max(t.r,e.r+r)),n.start<e.t?(l=(e.t-n.start)/a,t.t=Math.min(t.t,e.t-l)):n.end>e.b&&(l=(n.end-e.b)/a,t.b=Math.max(t.b,e.b+l))}function To(t){return 0===t||180===t?"center":t<180?"left":"right"}function Lo(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}function Eo(t,e,i){return 90===i||270===i?t-=e/2:(i>270||i<90)&&(t-=e),t}function Ro(t,e,i,s){const{ctx:n}=t;if(i)n.arc(t.xCenter,t.yCenter,e,0,D);else{let i=t.getPointPosition(0,e);n.moveTo(i.x,i.y);for(let o=1;o<s;o++)i=t.getPointPosition(o,e),n.lineTo(i.x,i.y)}}LogarithmicScale.id="logarithmic",LogarithmicScale.defaults={ticks:{callback:Ds.formatters.logarithmic,major:{enabled:!0}}};class RadialLinearScale extends LinearScaleBase{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=gi(Co(this.options)/2),e=this.width=this.maxWidth-t.width,i=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+i/2+t.top),this.drawingArea=Math.floor(Math.min(e,i)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=o(t)&&!isNaN(t)?t:0,this.max=o(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Co(this.options))}generateTickLabels(t){LinearScaleBase.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map(((t,e)=>{const i=c(this.options.pointLabels.callback,[t,e],this);return i||0===i?i:""})).filter(((t,e)=>this.chart.getDataVisibility(e)))}fit(){const t=this.options;t.display&&t.pointLabels.display?Ao(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,i,s){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((i-s)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,i,s))}getIndexAngle(t){return K(t*(D/(this._pointLabels.length||1))+j(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(i(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(i(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const i=e[t];return function(t,e,i){return xi(t,{label:i,index:e,type:"pointLabel"})}(this.getContext(),t,i)}}getPointPosition(t,e,i=0){const s=this.getIndexAngle(t)-L+i;return{x:Math.cos(s)*e+this.xCenter,y:Math.sin(s)*e+this.yCenter,angle:s}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:i,right:s,bottom:n}=this._pointLabelItems[t];return{left:e,top:i,right:s,bottom:n}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const i=this.ctx;i.save(),i.beginPath(),Ro(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),i.closePath(),i.fillStyle=t,i.fill(),i.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:s,grid:n}=e,o=this._pointLabels.length;let a,r,l;if(e.pointLabels.display&&function(t,e){const{ctx:s,options:{pointLabels:n}}=t;for(let o=e-1;o>=0;o--){const e=n.setContext(t.getPointLabelContext(o)),a=pi(e.font),{x:r,y:l,textAlign:h,left:c,top:d,right:u,bottom:f}=t._pointLabelItems[o],{backdropColor:g}=e;if(!i(g)){const t=fi(e.borderRadius),i=gi(e.backdropPadding);s.fillStyle=g;const n=c-i.left,o=d-i.top,a=u-c+i.width,r=f-d+i.height;Object.values(t).some((t=>0!==t))?(s.beginPath(),Te(s,{x:n,y:o,w:a,h:r,radius:t}),s.fill()):s.fillRect(n,o,a,r)}Ae(s,t._pointLabels[o],r,l+a.lineHeight/2,a,{color:e.color,textAlign:h,textBaseline:"middle"})}}(this,o),n.display&&this.ticks.forEach(((t,e)=>{if(0!==e){r=this.getDistanceFromCenterForValue(t.value);!function(t,e,i,s){const n=t.ctx,o=e.circular,{color:a,lineWidth:r}=e;!o&&!s||!a||!r||i<0||(n.save(),n.strokeStyle=a,n.lineWidth=r,n.setLineDash(e.borderDash),n.lineDashOffset=e.borderDashOffset,n.beginPath(),Ro(t,i,o,s),n.closePath(),n.stroke(),n.restore())}(this,n.setContext(this.getContext(e-1)),r,o)}})),s.display){for(t.save(),a=o-1;a>=0;a--){const i=s.setContext(this.getPointLabelContext(a)),{color:n,lineWidth:o}=i;o&&n&&(t.lineWidth=o,t.strokeStyle=n,t.setLineDash(i.borderDash),t.lineDashOffset=i.borderDashOffset,r=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),l=this.getPointPosition(a,r),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(l.x,l.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;const s=this.getIndexAngle(0);let n,o;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(s),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach(((s,a)=>{if(0===a&&!e.reverse)return;const r=i.setContext(this.getContext(a)),l=pi(r.font);if(n=this.getDistanceFromCenterForValue(this.ticks[a].value),r.showLabelBackdrop){t.font=l.string,o=t.measureText(s.label).width,t.fillStyle=r.backdropColor;const e=gi(r.backdropPadding);t.fillRect(-o/2-e.left,-n-l.size/2-e.top,o+e.width,l.size+e.height)}Ae(t,s.label,0,-n,l,{color:r.color})})),t.restore()}drawTitle(){}}RadialLinearScale.id="radialLinear",RadialLinearScale.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Ds.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}},RadialLinearScale.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},RadialLinearScale.descriptors={angleLines:{_fallback:"grid"}};const Io={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},zo=Object.keys(Io);function Fo(t,e){return t-e}function Bo(t,e){if(i(e))return null;const s=t._adapter,{parser:n,round:a,isoWeekday:r}=t._parseOpts;let l=e;return"function"==typeof n&&(l=n(l)),o(l)||(l="string"==typeof n?s.parse(l,n):s.parse(l)),null===l?null:(a&&(l="week"!==a||!V(r)&&!0!==r?s.startOf(l,a):s.startOf(l,"isoWeek",r)),+l)}function Vo(t,e,i,s){const n=zo.length;for(let o=zo.indexOf(t);o<n-1;++o){const t=Io[zo[o]],n=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((i-e)/(n*t.size))<=s)return zo[o]}return zo[n-1]}function No(t,e,i){if(i){if(i.length){const{lo:s,hi:n}=tt(i,e);t[i[s]>=e?i[s]:i[n]]=!0}}else t[e]=!0}function Wo(t,e,i){const s=[],n={},o=e.length;let a,r;for(a=0;a<o;++a)r=e[a],n[r]=a,s.push({value:r,major:!1});return 0!==o&&i?function(t,e,i,s){const n=t._adapter,o=+n.startOf(e[0].value,s),a=e[e.length-1].value;let r,l;for(r=o;r<=a;r=+n.add(r,1,s))l=i[r],l>=0&&(e[l].major=!0);return e}(t,s,n,i):s}class TimeScale extends Scale{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e){const i=t.time||(t.time={}),s=this._adapter=new hn._date(t.adapters.date);s.init(e),b(i.displayFormats,s.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:Bo(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,i=t.time.unit||"day";let{min:s,max:n,minDefined:a,maxDefined:r}=this.getUserBounds();function l(t){a||isNaN(t.min)||(s=Math.min(s,t.min)),r||isNaN(t.max)||(n=Math.max(n,t.max))}a&&r||(l(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||l(this.getMinMax(!1))),s=o(s)&&!isNaN(s)?s:+e.startOf(Date.now(),i),n=o(n)&&!isNaN(n)?n:+e.endOf(Date.now(),i)+1,this.min=Math.min(s,n-1),this.max=Math.max(s+1,n)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],i=t[t.length-1]),{min:e,max:i}}buildTicks(){const t=this.options,e=t.time,i=t.ticks,s="labels"===i.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);const n=this.min,o=st(s,n,this.max);return this._unit=e.unit||(i.autoSkip?Vo(e.minUnit,this.min,this.max,this._getLabelCapacity(n)):function(t,e,i,s,n){for(let o=zo.length-1;o>=zo.indexOf(i);o--){const i=zo[o];if(Io[i].common&&t._adapter.diff(n,s,i)>=e-1)return i}return zo[i?zo.indexOf(i):0]}(this,o.length,e.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&"year"!==this._unit?function(t){for(let e=zo.indexOf(t)+1,i=zo.length;e<i;++e)if(Io[zo[e]].common)return zo[e]}(this._unit):void 0,this.initOffsets(s),t.reverse&&o.reverse(),Wo(this,o,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((t=>+t.value)))}initOffsets(t){let e,i,s=0,n=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),s=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,i=this.getDecimalForValue(t[t.length-1]),n=1===t.length?i:(i-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;s=Z(s,0,o),n=Z(n,0,o),this._offsets={start:s,end:n,factor:1/(s+1+n)}}_generate(){const t=this._adapter,e=this.min,i=this.max,s=this.options,n=s.time,o=n.unit||Vo(n.minUnit,e,i,this._getLabelCapacity(e)),a=r(n.stepSize,1),l="week"===o&&n.isoWeekday,h=V(l)||!0===l,c={};let d,u,f=e;if(h&&(f=+t.startOf(f,"isoWeek",l)),f=+t.startOf(f,h?"day":o),t.diff(i,e,o)>1e5*a)throw new Error(e+" and "+i+" are too far apart with stepSize of "+a+" "+o);const g="data"===s.ticks.source&&this.getDataTimestamps();for(d=f,u=0;d<i;d=+t.add(d,a,o),u++)No(c,d,g);return d!==i&&"ticks"!==s.bounds&&1!==u||No(c,d,g),Object.keys(c).sort(((t,e)=>t-e)).map((t=>+t))}getLabelForValue(t){const e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}_tickFormatFunction(t,e,i,s){const n=this.options,o=n.time.displayFormats,a=this._unit,r=this._majorUnit,l=a&&o[a],h=r&&o[r],d=i[e],u=r&&h&&d&&d.major,f=this._adapter.format(t,s||(u?h:l)),g=n.ticks.callback;return g?c(g,[f,e,i],this):f}generateTickLabels(t){let e,i,s;for(e=0,i=t.length;e<i;++e)s=t[e],s.label=this._tickFormatFunction(s.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,i=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+i)*e.factor)}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+i*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,i=this.ctx.measureText(t).width,s=j(this.isHorizontal()?e.maxRotation:e.minRotation),n=Math.cos(s),o=Math.sin(s),a=this._resolveTickFontOptions(0).size;return{w:i*n+a*o,h:i*o+a*n}}_getLabelCapacity(t){const e=this.options.time,i=e.displayFormats,s=i[e.unit]||i.millisecond,n=this._tickFormatFunction(t,0,Wo(this,[t],this._majorUnit),s),o=this._getLabelSize(n),a=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return a>0?a:1}getDataTimestamps(){let t,e,i=this._cache.data||[];if(i.length)return i;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(t=0,e=s.length;t<e;++t)i=i.concat(s[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(i)}getLabelTimestamps(){const t=this._cache.labels||[];let e,i;if(t.length)return t;const s=this.getLabels();for(e=0,i=s.length;e<i;++e)t.push(Bo(this,s[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return rt(t.sort(Fo))}}function Ho(t,e,i){let s,n,o,a,r=0,l=t.length-1;i?(e>=t[r].pos&&e<=t[l].pos&&({lo:r,hi:l}=et(t,"pos",e)),({pos:s,time:o}=t[r]),({pos:n,time:a}=t[l])):(e>=t[r].time&&e<=t[l].time&&({lo:r,hi:l}=et(t,"time",e)),({time:s,pos:o}=t[r]),({time:n,pos:a}=t[l]));const h=n-s;return h?o+(a-o)*(e-s)/h:o}TimeScale.id="time",TimeScale.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class TimeSeriesScale extends TimeScale{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=Ho(e,this.min),this._tableRange=Ho(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:i}=this,s=[],n=[];let o,a,r,l,h;for(o=0,a=t.length;o<a;++o)l=t[o],l>=e&&l<=i&&s.push(l);if(s.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(o=0,a=s.length;o<a;++o)h=s[o+1],r=s[o-1],l=s[o],Math.round((h+r)/2)!==l&&n.push({time:l,pos:o/(a-1)});return n}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),i=this.getLabelTimestamps();return t=e.length&&i.length?this.normalize(e.concat(i)):e.length?e:i,t=this._cache.all=t,t}getDecimalForValue(t){return(Ho(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return Ho(this._table,i*this._tableRange+this._minPos,!0)}}TimeSeriesScale.id="timeseries",TimeSeriesScale.defaults=TimeScale.defaults;var jo=Object.freeze({__proto__:null,CategoryScale:CategoryScale,LinearScale:LinearScale,LogarithmicScale:LogarithmicScale,RadialLinearScale:RadialLinearScale,TimeScale:TimeScale,TimeSeriesScale:TimeSeriesScale});return Chart.register(xn,jo,Vn,Mo),Chart.helpers={...Oi},Chart._adapters=hn,Chart.Animation=Animation,Chart.Animations=Animations,Chart.animator=mt,Chart.controllers=Fs.controllers.items,Chart.DatasetController=DatasetController,Chart.Element=Element,Chart.elements=Vn,Chart.Interaction=Fi,Chart.layouts=Gi,Chart.platforms=us,Chart.Scale=Scale,Chart.Ticks=Ds,Object.assign(Chart,xn,jo,Vn,Mo,us),Chart.Chart=Chart,"undefined"!=typeof window&&(window.Chart=Chart),Chart}));(function(t){'use strict';t.fn.aviaChart=function(n){if(!this.length){return};return this.each(function(){var n=t(this),a=n.data('chart_config'),i=n.find('.avia-chart').first(),r=null;if(!i.length||'undefined'==typeof(a)){return};r=new Chart(i,a)})};t(function(){t('.avia-chart-container').aviaChart()})}(jQuery));(function(a){a.fn.avia_ajax_form=function(r){var t={sendPath:'send.php',responseContainer:'.ajaxresponse'};var e=a.extend(t,r);return this.each(function(){var t=a(this),i=!1,o=t.data('fields-with-error'),r={formElements:t.find('textarea, select, input[type=text], input[type=checkbox], input[type=hidden]'),validationError:!1,button:t.find('input:submit'),dataObj:{},withError:[]},s=t.next(e.responseContainer).eq(0);r.button.on('click',l);if(a.avia_utilities.isMobile){r.formElements.each(function(r){var e=a(this),t=e.hasClass('is_email');if(t)e.attr('type','email')})};function l(e){r.validationError=!1;r.datastring='ajax=true';r.formElements=t.find('textarea, select, input[type=text], input[type=checkbox], input[type=hidden], input[type=email]');r.formElements.each(function(n){var d=a(this),e=d.parent(),s=d.val(),l=e.find('label').text().replace(/\*/g,'').trim(),c=d.attr('name'),i=d.attr('class'),o=!0;if(d.is(':checkbox')){if(d.is(':checked')){s=!0}
else{s=''}};r.dataObj[c]=encodeURIComponent(s);if(i&&i.match(/is_empty/)){if(s==''||s==null){e.removeClass('valid error ajax_alert').addClass('error');r.validationError=!0;r.withError.push(l)}
else{e.removeClass('valid error ajax_alert').addClass('valid')};o=!1};if(i&&i.match(/is_email/)){if(!s.match(/^[\w|\.|\-]+@\w[\w|\.|\-]*\.[a-zA-Z]{2,20}$/)){e.removeClass('valid error ajax_alert').addClass('error');r.validationError=!0;r.withError.push(l)}
else{e.removeClass('valid error ajax_alert').addClass('valid')};o=!1};if(i&&i.match(/is_ext_email/)){if(!s.match(/^[\w\.\-ÄÖÜäöü]+@\w[\w\.\-ÄÖÜäöü]*\.[a-zA-Z]{2,20}$/)){e.removeClass('valid error ajax_alert').addClass('error');r.validationError=!0;r.withError.push(l)}
else{e.removeClass('valid error ajax_alert').addClass('valid')};o=!1};if(i&&i.match(/is_special_email/)){if(!s.match(/^[a-zA-Z0-9.!#$%&'*+\-\/=?^_`{|}~ÄÖÜäöü]+@\w[\w\.\-ÄÖÜäöü]*\.[a-zA-Z]{2,20}$/)){e.removeClass('valid error ajax_alert').addClass('error');r.validationError=!0;r.withError.push(l)}
else{e.removeClass('valid error ajax_alert').addClass('valid')};o=!1};if(i&&i.match(/is_phone/)){if(!s.match(/^(\d|\s|\-|\/|\(|\)|\[|\]|e|x|t|ension|\.|\+|\_|\,|\:|\;){3,}$/)){e.removeClass('valid error ajax_alert').addClass('error');r.validationError=!0;r.withError.push(l)}
else{e.removeClass('valid error ajax_alert').addClass('valid')};o=!1};if(i&&i.match(/is_number/)){if(!s.match(/^-?\s*(0|[1-9]\d*)([\.,]\d+)?$/)){e.removeClass('valid error ajax_alert').addClass('error');r.validationError=!0;r.withError.push(l)}
else{e.removeClass('valid error ajax_alert').addClass('valid')};o=!1};if(i&&i.match(/is_positiv_number/)){if(!(v(s))||s==''||s<0){e.removeClass('valid error ajax_alert').addClass('error');r.validationError=!0;r.withError.push(l)}
else{e.removeClass('valid error ajax_alert').addClass('valid')};o=!1};if(i&&i.match(/captcha/)&&!i.match(/recaptcha/)){var f=t.find('#'+c+'_verifier').val(),m=f.charAt(f.length-1),h=f.charAt(m);if(s!=h){e.removeClass('valid error ajax_alert').addClass('error');r.validationError=!0}
else{e.removeClass('valid error ajax_alert').addClass('valid')};o=!1};if(o&&s!=''){e.removeClass('valid error ajax_alert').addClass('valid')}});t.find('.av-fields-with-error').remove();if(r.validationError==!1){if(t.data('av-custom-send')){d()}
else{n()}}
else{if(t.is('.av-show-form-errors')&&r.withError.length>0){var i=r.withError.join(', '),s=a('<p class="av-fields-with-error"></p>').insertAfter(a(r.button).parent());let msg=o?o+' ':'Found errors in the following field(s): ';s.text(msg+i);r.withError=[]}};return!1};function n(){if(i){return!1};if(r.button.hasClass('avia_button_inactive')){return!1};i=!0;r.button.addClass('av-sending-button');r.button.val(r.button.data('sending-label'));var o=t.data('avia-redirect')||!1,l=t.attr('action'),n=t.is('.av-form-labels-style');if(n){return};s.load(l+' '+e.responseContainer,r.dataObj,function(){if(o&&l!=o){t.attr('action',o);location.href=o}
else{s.removeClass('hidden').css({display:'block'});t.slideUp(400,function(){s.slideDown(400,function(){a('body').trigger('av_resize_finished')});r.formElements.val('')})}})};function d(){if(i){return!1};i=!0;var v=r.button.val();r.button.addClass('av-sending-button');r.button.val(r.button.data('sending-label'));r.dataObj.ajax_mailchimp=!0;var o=t.data('avia-redirect')||!1,n=t.attr('action'),l=t.find('.av-form-error-container'),d=t.data('avia-form-id');a.ajax({url:n,type:'POST',data:r.dataObj,beforeSend:function(){if(l.length){l.slideUp(400,function(){l.remove();a('body').trigger('av_resize_finished')})}},success:function(l){var c=jQuery('<div>').append(jQuery.parseHTML(l)),f=c.find('.av-form-error-container');if(f.length){i=!1;t.prepend(f);f.css({display:'none'}).slideDown(400,function(){a('body').trigger('av_resize_finished')});r.button.removeClass('av-sending-button');r.button.val(v)}
else{if(o&&n!=o){t.attr('action',o);location.href=o}
else{var m=c.find(e.responseContainer+'_'+d);s.html(m).removeClass('hidden').css({display:'block'});t.slideUp(400,function(){s.slideDown(400,function(){a('body').trigger('av_resize_finished')});r.formElements.val('')})}}},error:function(){},complete:function(){}})};function v(a){var r=typeof a;return(r==='number'||r==='string')&&!isNaN(a-parseFloat(a))}})}})(jQuery);(function(i){'use strict';i.AviaSlider=function(s,t){var e=this;this.$win=i(window);this.$slider=i(t);this.isMobile=i.avia_utilities.isMobile;this.isTouchDevice=i.avia_utilities.isTouchDevice,this._prepareSlides(s);i.avia_utilities.preload({container:this.$slider,single_callback:function(){e._init(s)}})};i.AviaSlider.defaults={interval:5,autoplay:!1,autoplay_stopper:!1,loop_autoplay:'once',loop_manual:'manual-endless',stopinfiniteloop:!1,noNavigation:!1,animation:'slide',transitionSpeed:900,easing:'easeInOutQuart',wrapElement:'>ul',slideElement:'>li',hoverpause:!1,bg_slider:!1,show_slide_delay:0,fullfade:!1,keep_padding:!1,carousel:'no',carouselSlidesToShow:3,carouselSlidesToScroll:1,carouselResponsive:[]};i.AviaSlider.prototype={_init:function(s){this.options=this._setOptions(s);this.$sliderUl=this.$slider.find(this.options.wrapElement);this.$slides=this.$sliderUl.find(this.options.slideElement);this.slide_arrows=this.$slider.find('.avia-slideshow-arrows');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(s){var o=this.$slider.data('slideshow-options');if('object'==typeof o){var t=i.extend({},i.AviaSlider.defaults,s,o);if('undefined'!=typeof t.transition_speed){t.transitionSpeed=t.transition_speed};return t};var t=i.extend(!0,{},i.AviaSlider.defaults,s),a=this.$slider.data();for(var e in a){var n=('transition_speed'!=e)?e:'transitionSpeed';if(typeof a[e]==='string'||typeof a[e]==='number'||typeof a[e]==='boolean'){t[n]=a[e]};if('undefined'!=typeof t.autoplay_stopper&&t.autoplay_stopper==1){t.autoplay_stopper=!0}};return t},_prepareSlides:function(s){var t=this.$slider.find('.avia-multi-slideshow-button');if(t.length){t.on('click',function(s){s.stopPropagation();var t=i.avia_utilities.loading(i(this));t.show()})};if(this.isMobile){var e=this.$slider.find('.av-mobile-fallback-image');e.each(function(){var t=i(this).removeClass('av-video-slide').data({'avia_video_events':!0,'video-ratio':0}),n=t.data('mobile-img'),e=t.data('fallback-link'),a=t.find('.avia-slide-wrap');t.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(s&&s.bg_slider){t.data('img-url',n);if(e!=''){if(a.is('a')){a.attr('href',e)}
else{a.replaceWith(function(){var s=i(this);return i('<a>').attr({'data-rel':s.data('rel'),'class':s.attr('class'),'href':e}).append(i(this).contents())});a=t.find('.avia-slide-wrap')};if(i.fn.avia_activate_lightbox){t.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};t.find('.avia-slide-wrap').append(o);if(l&&i.fn.avia_activate_lightbox){t.parents('#main').avia_activate_lightbox()}}})};if(i('html').is('.pointer-device-fine')){if(i('body').is('.avia-slider-video-controls-fix-support')){avia_slider_video_controls_fix(this)}}},_bgPreloadImages:function(i){this._getImageURLS();this._preloadSingle(0,function(){this._kickOff();this._preloadNext(1)})},_getImageURLS:function(){var s=this;this.$slides.each(function(t){s.imageUrls[t]=[];s.imageUrls[t]['url']=i(this).data('img-url');if(typeof s.imageUrls[t]['url']=='string'){s.imageUrls[t]['status']=!1}
else{s.imageUrls[t]['status']=!0}})},_preloadSingle:function(s,t){var e=this,a=new Image();if(typeof e.imageUrls[s]['url']=='string'){i(a).on('load error',function(){e.imageUrls[s]['status']=!0;e.$slides.eq(s).css('background-image','url('+e.imageUrls[s]['url']+')');if(typeof t=='function'){t.apply(e,[a,s])}});if(e.imageUrls[s]['url']!=''){a.src=e.imageUrls[s]['url']}
else{i(a).trigger('error')}}
else{if(typeof t=='function'){t.apply(e,[a,s])}}},_preloadNext:function(i){if(typeof this.imageUrls[i]!='undefined'){this._preloadSingle(i,function(){this._preloadNext(i+1)})}},_bindEvents:function(){var t=this,s=i(window);this.$slider.on('click','.next-slide',this.next.bind(this));this.$slider.on('click','.prev-slide',this.previous.bind(this));this.$slider.on('click','.goto-slide',this.go2.bind(this));if(this.options.hoverpause){this.$slider.on('mouseenter',this.pause.bind(this));this.$slider.on('mouseleave',this.resume.bind(this))};if(this.permaCaption.length){this.permaCaption.on('click',this._routePermaCaptionClick);this.$slider.on('avia_slider_first_slide avia_slider_last_slide avia_slider_navigate_slide',this._setPermaCaptionPointer.bind(this))};if(this.options.stopinfiniteloop&&this.options.autoplay){if(this.options.stopinfiniteloop=='last'){this.$slider.on('avia_slider_last_slide',this._stopSlideshow.bind(this))}
else if(this.options.stopinfiniteloop=='first'){this.$slider.on('avia_slider_first_slide',this._stopSlideshow.bind(this))}};if(this.options.carousel==='yes'){if(!this.isMobile){s.on('debouncedresize',this._buildCarousel.bind(this))}}
else{s.on('debouncedresize.aviaSlider',this._setSize.bind(this))};if(!this.options.noNavigation){if(!this.isMobile){this.$slider.avia_keyboard_controls()};if(this.isMobile||this.isTouchDevice){this.$slider.avia_swipe_trigger()}};t._attach_video_events()},_kickOff:function(){var s=this,t=s.$slides.eq(0),e=t.data('video-ratio');s._bindEvents();s._set_slide_arrows_visibility();this.$slider.removeClass('av-default-height-applied');if(e){s._setSize(!0)}
else{if(this.options.keep_padding!=!0){s.$sliderUl.css('padding',0);s.$win.trigger('av-height-change')}};s._setCenter();if(this.options.carousel==='no'){t.addClass('next-active-slide');t.css({visibility:'visible',opacity:0}).avia_animate({opacity:1},function(){var t=i(this).addClass('active-slide');if(s.permaCaption.length){s.permaCaption.addClass('active-slide')}})};s.$slider.trigger('avia_slider_first_slide');if(s.options.autoplay){s._startSlideshow()};if(s.options.carousel==='yes'){s._buildCarousel()};s.$slider.trigger('_kickOff')},_set_slide_arrows_visibility:function(){if(this.options.carousel=='yes'){if(0==this.currentCarousel){this.slide_arrows.removeClass('av-visible-prev');this.slide_arrows.addClass('av-visible-next')}
else if(this.currentCarousel+this.options.carouselSlidesToShow>=this.itemsCount){this.slide_arrows.addClass('av-visible-prev');this.slide_arrows.removeClass('av-visible-next')}
else{this.slide_arrows.addClass('av-visible-prev');this.slide_arrows.addClass('av-visible-next')};return};if('endless'==this.options.loop_autoplay||'manual-endless'==this.options.loop_manual){this.slide_arrows.addClass('av-visible-prev');this.slide_arrows.addClass('av-visible-next')}
else if(0==this.current){this.slide_arrows.removeClass('av-visible-prev');this.slide_arrows.addClass('av-visible-next')}
else if(this.current+1>=this.itemsCount){this.slide_arrows.addClass('av-visible-prev');this.slide_arrows.removeClass('av-visible-next')}
else{this.slide_arrows.addClass('av-visible-prev');this.slide_arrows.addClass('av-visible-next')}},_buildCarousel:function(){var r=this,a=this.$slider.outerWidth(),s=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'],t=this.options.carouselResponsive[e]['settings']['carouselSlidesToShow'];if(n>=l){s=parseInt(a/t);this.options.carouselSlidesToShow=t}}};this.slideWidthCarousel=s;this.$slides.each(function(t){i(this).width(s)});var o=s*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,s){if(this.isAnimating||this.itemsCount<2 ||!this.$slider.is(':visible')){return!1};this.isAnimating=!0;this.prev=this.current;if(s!==undefined){this.current=s;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&&this.options.autoplay){this.isAnimating=!1;this.current=this.prev;this._stopSlideshow();return!1};if(0===this.current){if('endless'!=this.options.loop_autoplay&&'manual-endless'!=this.options.loop_manual){this.isAnimating=!1;this.current=this.prev;return!1}}}
else if(i==='prev'){this.current=this.current>0?this.current-1:this.itemsCount-1;if(this.itemsCount-1===this.current){if('endless'!=this.options.loop_autoplay&&'manual-endless'!=this.options.loop_manual){this.isAnimating=!1;this.current=this.prev;return!1}}};this.gotoButtons.removeClass('active').eq(this.current).addClass('active');this._set_slide_arrows_visibility();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,s=this.$slides.eq(this.current),r=s.find('img'),a=Math.floor(this.$sliderUl.height()),o=s.data('video-ratio'),t=o?this.$sliderUl.width()/o:Math.floor(s.height()),e=s.data('video-height'),l=s.data('video-toppos');this.$sliderUl.height(a).css('padding',0);if(t!=a){if(i==!0){this.$sliderUl.css({height:t});this.$win.trigger('av-height-change')}
else{this.$sliderUl.avia_animate({height:t},function(){n.$win.trigger('av-height-change')})}};this._setCenter();if(e&&e!='set'){s.find('iframe, embed, video, object, .av_youtube_frame').css({height:e+'%',top:l+'%'});s.data('video-height','set')}},_setCenter:function(){var e=this.$slides.eq(this.current),o=e.find('img'),i=parseInt(o.css('min-width'),10),s=e.width(),a=e.find('.av-slideshow-caption'),t=((s-i)/2);if(a.length){if(a.is('.caption_left')){t=((s-i)/1.5)}
else if(a.is('.caption_right')){t=((s-i)/2.5)}};if(s>=i){t=0};o.css({left:t})},_carouselmove:function(){var i=this.slideWidthCarousel*this.currentCarousel;this.$sliderUl.css('transform','translateX(-'+i+'px)')},_carouselslide:function(i){console.log('_carouselslide:',i,this.currentCarousel);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._set_slide_arrows_visibility();this.isAnimating=!1},_slide:function(i){var l=!1,h=l==!0?2:1,r=this.$slider.width(),d=i==='next'?-1:1,s=this.browserPrefix+'transform',a={},t={},e={},o=(r*d*-1),n=(r*d)/h;if(this.cssActive){s=this.browserPrefix+'transform';if(this.css3DActive){a[s]='translate3d('+o+'px, 0, 0)';t[s]='translate3d('+n+'px, 0, 0)';e[s]='translate3d(0,0,0)'}
else{a[s]='translate('+o+'px,0)';t[s]='translate('+n+'px,0)';e[s]='translate(0,0)'}}
else{a.left=o;t.left=n;e.left=0};if(l){t['z-index']='1';e['z-index']='2'};this._slide_animate(a,t,e)},_slide_up:function(i){var l=!0,h=l==!0?2:1,r=this.$slider.height(),d=i==='next'?-1:1,s=this.browserPrefix+'transform',a={},t={},e={},o=(r*d*-1),n=(r*d)/h;if(this.cssActive){s=this.browserPrefix+'transform';if(this.css3DActive){a[s]='translate3d( 0,'+o+'px, 0)';t[s]='translate3d( 0,'+n+'px, 0)';e[s]='translate3d(0,0,0)'}
else{a[s]='translate( 0,'+o+'px)';t[s]='translate( 0,'+n+'px)';e[s]='translate(0,0)'}}
else{a.top=o;t.top=n;e.top=0};if(l){t['z-index']='1';e['z-index']='2'};this._slide_animate(a,t,e)},_slide_animate:function(i,e,a){var t=this,s=this.$slides.eq(this.current),o=this.$slides.eq(this.prev);o.trigger('pause');if(!s.data('disableAutoplay')){if(s.hasClass('av-video-lazyload')&&!s.hasClass('av-video-lazyload-complete')){s.find('.av-click-to-play-overlay').trigger('click')}
else{s.trigger('play')}};s.css({visibility:'visible',zIndex:4,opacity:1,left:0,top:0});s.css(i);o.avia_animate(e,this.options.transitionSpeed,this.options.easing);var n=function(){t.isAnimating=!1;s.addClass('active-slide');o.css({visibility:'hidden'}).removeClass('active-slide next-active-slide');t.$slider.trigger('avia-transition-done')};if(t.options.show_slide_delay>0){setTimeout(function(){s.addClass('next-active-slide');s.avia_animate(a,t.options.transitionSpeed,t.options.easing,n)},t.options.show_slide_delay)}
else{s.addClass('next-active-slide');s.avia_animate(a,t.options.transitionSpeed,t.options.easing,n)}},_fade:function(){var s=this,i=this.$slides.eq(this.current),t=this.$slides.eq(this.prev),e={visibility:'visible',zIndex:3,opacity:0},a=function(){s.isAnimating=!1;i.addClass('active-slide');t.css({visibility:'hidden',zIndex:2}).removeClass('active-slide next-active-slide');s.$slider.trigger('avia-transition-done')};t.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')}};i.addClass('next-active-slide');if(s.options.fullfade==!0){t.avia_animate({opacity:0},200,'linear',function(){i.css(e).avia_animate({opacity:1},s.options.transitionSpeed,'linear',a)})}
else{if(s.current===0){t.avia_animate({opacity:0},s.options.transitionSpeed/2,'linear');i.css(e).avia_animate({opacity:1},s.options.transitionSpeed/2,'linear',a)}
else{i.css(e).avia_animate({opacity:1},s.options.transitionSpeed/2,'linear',function(){t.avia_animate({opacity:0},200,'linear',a)})}}},_attach_video_events:function(){var s=this,t=i('html');s.$slides.each(function(t){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:t,self:s,lazyload:l},e);n.on('av-video-ended',{slide:n,self:s},a);n.on('av-video-play-executed',function(){setTimeout(function(){s.pause()},100)});r.on('click',{slide:n},o);if(n.is('.av-video-events-bound')){n.trigger('av-video-events-bound')};if(l&&t===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(t.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');s._navigate('next');s.resume()};if(i.data.slide.is('.av-loop-video')&&i.data.slide.is('.av-video-service-html5')){if(t.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,s,o){var t=this,e,a=s;t.timerId=0;this.pause=function(){window.clearTimeout(t.timerId);a-=new Date()-e};this.resume=function(){e=new Date();t.timerId=window.setTimeout(i,a)};this.destroy=function(){window.clearTimeout(t.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};this.options.autoplay=!1;this.options.loop_autoplay='once';this.$slider.removeClass('av-slideshow-autoplay').addClass('av-slideshow-manual');this.$slider.removeClass('av-loop-endless').addClass('av-loop-once')},_setPermaCaptionPointer:function(s){if(!this.permaCaption.length){return};var t=i(this.$slides[this.current]).find('a').length;this.permaCaption.css('cursor',t?'pointer':'default')},_routePermaCaptionClick:function(s){var t=i(this).siblings('.avia-slideshow-inner').find('>.active-slide a');if(t.length){s.preventDefault();t[0].click()}},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(s){return this.each(function(){var t=i.data(this,'aviaSlider');if(!t){t=i.data(this,'aviaSlider',new i.AviaSlider(s,this))}})}})(jQuery);;var aviaJS=aviaJS||{};(function(e){'use strict';var t=['years','months','weeks','days','hours','minutes','seconds'],r=1000,a=r*60,n=a*60,o=n*24,d=o*7,l=function(t,e){return new Date(e,t,0).getDate()},m=function(t){var e={year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate(),hours:t.getHours(),minutes:t.getMinutes(),seconds:t.getSeconds()};return e},c=function(t,e){var a=e.getFullYear()-t.year;if(a>0){var i=new Date(t.year+a,t.month-1,t.day,t.hours,t.minutes,t.seconds);if(i>e){a--}};return(a>=0)?a:0},f=function(t,e){var i=e.getMonth()+1,a=i-t.month;if(a<0){a=12-t.month+i};if(a>0){var n=new Date(t.year,t.month-1+a,t.day,t.hours,t.minutes,t.seconds);if(n>e){a--}};return(a>=0)?a:0},p=function(t,e){var i=e.getDate(),a=i-t.day;if(a<0){a=l(t.month,t.year)-t.day+i};if(a>0){var n=new Date(t.year,t.month-1,t.day+a,t.hours,t.minutes,t.seconds);if(n>e){a--}};return(a>=0)?a:0},h=function(t,a){var i=m(t),e={years:0,year_months:0,month_months:0,days:0};e.years=c(i,a);i.year+=e.years;e.year_months=f(i,a);i.month+=e.year_months;e.days=p(i,a);i.day+=e.days;e.month_months=e.years*12+e.year_months;return e},u=function(t,e){if(!0===e){for(let i in t.time){if(typeof t.update[i]=='object'&&t.update[i].label_container.length){t.update[i].label_container.css({'min-width':''})}};t.labelMinWidth=0;return};let newMin=t.labelMinWidth;for(let i in t.time){if(typeof t.update[i]=='object'&&t.update[i].label_container.length){let curr=t.update[i].label_container.outerWidth(!0);if(newMin<curr){newMin=curr}}};if(newMin>t.labelMinWidth){for(let i in t.time){if(typeof t.update[i]=='object'&&t.update[i].label_container.length){t.update[i].label_container.css({'min-width':newMin+'px'})}};t.labelMinWidth=newMin}},s=function(t){var m=new Date(),c=new Date(m.getTime()+m.getTimezoneOffset()*60000),s=t.end-c;if(s<=0){if(t.firstrun&&!t.container.hasClass('av-finished-msg')){s=0}
else{t.container.addClass('av-countdown-finished');clearInterval(t.countdown);return}};t.time.years=0;t.time.months=0;t.time.weeks=Math.floor(s/d);t.time.days=Math.floor((s%d)/o);t.time.hours=Math.floor((s%o)/n);t.time.minutes=Math.floor((s%n)/a);t.time.seconds=Math.floor((s%a)/r);var l=h(c,t.end);switch(t.data.maximum){case 1:t.time.seconds=Math.floor(s/r);break;case 2:t.time.minutes=Math.floor(s/a);break;case 3:t.time.hours=Math.floor(s/n);break;case 4:t.time.days=Math.floor(s/o);break;case 6:t.time.days=l.days;t.time.months=l.month_months;break;case 7:t.time.days=l.days;t.time.months=l.year_months;t.time.years=l.years;break};for(let i in t.time){if(typeof t.update[i]=='object'&&t.update[i].label_container.length){if(t.firstrun||t.oldtime[i]!=t.time[i]){let labelkey=(t.time[i]===1)?'single':'multi',new_label=t.update[i][labelkey],old_label=t.update[i].label_container.text();if(old_label!=new_label){t.update[i].label_container.text(new_label)};if(t.isFlipNumbers){if(t.update[i].unitContainer.length){if(!t.firstrun){t.update[i].backCard.attr('data-value',t.oldtime[i]);t.update[i].bottomCard.attr('data-value',t.oldtime[i])};t.update[i].topCard.text(t.time[i]);t.update[i].backBottomCard.attr('data-value',t.time[i]);t.update[i].unitContainer.removeClass('flip');void t.update[i].unitContainer[0].offsetWidth;t.update[i].unitContainer.addClass('flip')}}
else if(t.isFlipClock){if(t.update[i].unitContainer.length){if(!t.firstrun){t.update[i].currentTop.text(t.oldtime[i]);t.update[i].currentBottom.text(t.oldtime[i])};t.update[i].nextTop.text(t.time[i]);t.update[i].nextBottom.text(t.time[i]);t.update[i].unitContainer.removeClass('flip');void t.update[i].unitContainer[0].offsetWidth;t.update[i].unitContainer.addClass('flip')}}
else{t.update[i].time_container.text(t.time[i])}}}};if(t.firstrun){t.container.addClass('av-countdown-active')};t.oldtime=e.extend({},t.time);t.firstrun=!1;if((t.isFlipNumbers||t.isFlipClock)&&t.number_space){setTimeout(function(){u(t)},50)}};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);a.isFlipNumbers=a.container.hasClass('av-flip-numbers');a.isFlipClock=a.container.hasClass('av-flip-clock');a.number_space=a.container.hasClass('av-number-space-equal');a.labelMinWidth=0;var n=function(t){if(a.number_space){u(a,!0)}};if(a.data.timezone!='0'){a.end=new Date(a.end.getTime()-a.data.timezone*60000)};for(var i in t){let unitContainer=a.container.find('.av-countdown-'+t[i]);a.update[t[i]]={unitContainer:unitContainer,time_container:a.container.find('.av-countdown-'+t[i]+' .av-countdown-time'),label_container:a.container.find('.av-countdown-'+t[i]+' .av-countdown-time-label')};if(a.update[t[i]].label_container.length){a.update[t[i]].single=a.update[t[i]].label_container.data('label');a.update[t[i]].multi=a.update[t[i]].label_container.data('label-multi')};if(a.isFlipNumbers){a.update[t[i]].topCard=unitContainer.find('.card__top');a.update[t[i]].bottomCard=unitContainer.find('.card__bottom');a.update[t[i]].backCard=unitContainer.find('.card__back');a.update[t[i]].backBottomCard=unitContainer.find('.card__back .card__bottom')}
else if(a.isFlipClock){a.update[t[i]].currentTop=unitContainer.find('.curr.top');a.update[t[i]].nextTop=unitContainer.find('.next.top');a.update[t[i]].nextBottom=unitContainer.find('.next.bottom');a.update[t[i]].currentBottom=unitContainer.find('.curr.bottom')}};s(a);a.countdown=setInterval(function(){s(a)},1000);window.addEventListener('resize',aviaJS.aviaJSHelpers.debounce(n.bind(this),50))})}}(jQuery));(function(e){'use strict';e.fn.avia_sc_gallery=function(a){return this.each(function(){var t=e(this),r=t.find('img'),a=t.find('.avia-gallery-big'),s=t.find('.avia-slideshow-arrows .prev-slide'),n=t.find('.avia-slideshow-arrows .next-slide'),i=t.find('.avia-gallery-thumb a'),o=t.hasClass('no-hover-effect');if(n.length){t.avia_swipe_trigger({prev:'.prev-slide',next:'.next-slide'})};t.on('avia_start_animation',function(){r.each(function(a){var t=e(this);setTimeout(function(){t.addClass('avia_start_animation')},(a*110))})});if(t.hasClass('deactivate_avia_lazyload')){t.trigger('avia_start_animation')};if(a.length){t.on('mouseenter','.avia-gallery-thumb a',function(){var i=e(this),c=i.attr('data-prev-img'),r=a.find('img'),l=r.attr('src');if(o){if(!t.hasClass('av-force-img-change')){return}};t.removeClass('av-force-img-change');if(c==l){return};a.height(a.height());a.attr('data-onclick',i.attr('data-onclick'));a.attr('href',i.attr('href'));a.attr('title',i.attr('title'));if('undefined'==typeof i.data('srcset')){a.removeAttr('data-srcset');a.removeData('srcset')}
else{a.data('srcset',i.data('srcset'));a.attr('data-srcset',i.data('srcset'))};if('undefined'==typeof i.data('sizes')){a.removeAttr('data-sizes');a.removeData('sizes')}
else{a.data('sizes',i.data('sizes'));a.attr('data-sizes',i.data('sizes'))};var n=i.find('.big-prev-fake img').clone(!0);if(n.length==0){var s=new Image();s.src=c;n=e(s)};if(a.hasClass('avia-gallery-big-no-crop-thumb')){n.css({'height':'auto','width':'auto','max-height':'100%','max-width':'100%'})};a.stop().animate({opacity:0},function(){n.insertAfter(r);r.remove();a.animate({opacity:1})})});n.on('click',function(n){n.preventDefault();if(!a.length){return};let current=a[0].dataset.onclick,next_index=current;if(next_index>=i.length){next_index=0};t.addClass('av-force-img-change');e(i[next_index]).trigger('mouseenter')});s.on('click',function(n){n.preventDefault();if(!a.length){return};let current=a[0].dataset.onclick,prev_index=current-2;if(prev_index<0){prev_index=i.length-1};t.addClass('av-force-img-change');e(i[prev_index]).trigger('mouseenter')});a.on('click',function(a){a.preventDefault();var e=t.find('.avia-gallery-thumb a').eq(this.getAttribute('data-onclick')-1);if(e&&!e.hasClass('aviaopeninbrowser')){e.trigger('click')}
else if(e){var i=e.attr('href'),n=e.hasClass('custom_link')?'noopener,noreferrer':'';if(e.hasClass('aviablank')&&i!=''){window.open(i,'_blank',n)}
else if(i!=''){window.open(i,'_self',n)}};return!1});e(window).on('debouncedresize',function(){a.height('auto')})}})}}(jQuery));(function(a){'use strict';a.fn.avia_hor_gallery=function(e){var d={slide_container:'.av-horizontal-gallery-inner',slide_element:'.av-horizontal-gallery-slider',slide_content:'.av-horizontal-gallery-wrap',slide_arrows:'.avia-slideshow-arrows',slide_dots:'.avia-slideshow-dots',active:'av-active-gal-item',slide_controls:'.avia-slideshow-controls',prev:'.av-horizontal-gallery-prev',next:'.av-horizontal-gallery-next'};var e=a.extend(d,e),n=a(window),r=a.avia_utilities.supports('transition'),s=this.browserPrefix!==!1?!0:!1,l=a.avia_utilities.isMobile,t=a.avia_utilities.isTouchDevice,o=document.documentElement.className.indexOf('avia_transform3d')!==-1?!0:!1,i={};return this.each(function(){var r=a(this),y=r.find(e.slide_container),C=r.find(e.slide_element),u=r.find(e.slide_content),D=r.find(e.slide_controls),f=r.find(e.slide_arrows),w=r.find(e.slide_dots),z=w.find('a'),q=r.find(e.prev),T=r.find(e.next),N=r.find('img'),p=0,v=!1,d={animation:'av-tab-slide-transition',autoplay:!1,loop_autoplay:'once',interval:5,loop_manual:'manual-endless',autoplay_stopper:!1,noNavigation:!1,initial:null,enlarge:1},I=r.data('slideshow-data'),g=null;if('undefined'!=typeof I){d=a.extend({},d,I)};var x=function(){var e=(y.width()/100)*y.data('av-height');y.css({'padding':0}).height(e);N.css('display','inline-block');setTimeout(function(){N.css('display','block')},10);p=0;u.each(function(){p+=a(this).outerWidth(!0)});C.css('min-width',p);if(v!==!1){c(v)}},c=function(a){var n=C.find(e.slide_content).eq(a),t=y.width(),r=d.enlarge>1&&v==a?d.enlarge:1,u=n.outerWidth(!0)*r,f=parseInt(n.css('margin-right'),10)/2,l=t<p?(n.position().left*-1)-(u/2)+(t/2):0;l=l+f;if(l+p<t){l=(p-t-parseInt(n.css('margin-right'),10))*-1};if(l>0){l=0};if(s){i['transform']=o?'translate3d( '+l+'px, 0, 0 )':'translate( '+l+'px, 0 )';i['left']='0px';C.css(i)}
else{C.css('left',l)};y.find('.'+e.active).removeClass(e.active);n.addClass(e.active);v=a;b();k()},h=function(){if(typeof g==='number'){clearTimeout(g)};g=null},m=function(){if(!0!==d.autoplay){r.removeClass('av-slideshow-autoplay').addClass('av-slideshow-manual')};if('undefined'==typeof d.loop_autoplay||'endless'!=d.loop_autoplay){d.loop_autoplay='once'};if('undefined'==typeof d.interval){d.interval=5};if('undefined'==typeof d.autoplay||!0!==d.autoplay){d.autoplay=!1;r.removeClass('av-slideshow-autoplay').addClass('av-slideshow-manual');return};h();g=setTimeout(function(){W()},d.interval*1000)},W=function(){g=null;if('endless'!=d.loop_autoplay){var a=!1;if(v===!1){if(u.length==0){a=!0}}
else{a=v+1>=u.length};if(a){d.autoplay=!1;d.loop_autoplay='manual';r.removeClass('av-slideshow-autoplay').addClass('av-slideshow-manual');r.removeClass('av-loop-endless').addClass('av-loop-once');return}};T.trigger('click')},b=function(){if('endless'==d.loop_autoplay||'manual-endless'==d.loop_manual||!1===v){f.addClass('av-visible-prev');f.addClass('av-visible-next')}
else if(0==v){f.removeClass('av-visible-prev');f.addClass('av-visible-next')}
else if(v+1>=u.length){f.addClass('av-visible-prev');f.removeClass('av-visible-next')}
else{f.addClass('av-visible-prev');f.addClass('av-visible-next')}},k=function(){w.find('a').removeClass('active');var a=!1!==v?v:0;w.find('a').eq(a).addClass('active')};u.on('click',function(e){var l=a(this),i=u.index(l);if(v===i){return};h();c(i);m()});q.on('click',function(a){var e=v!==!1?v-1:0;if(e<0){if('endless'!=d.loop_autoplay&&'manual-endless'!=d.loop_manual){return};e=u.length-1};h();c(e);m()});T.on('click',function(a){var e=v!==!1?v+1:0;if(e>=u.length){if('endless'!=d.loop_autoplay&&'manual-endless'!=d.loop_manual){return};e=0};h();c(e);m()});z.on('click',function(e){var i=a(this),l=z.index(i);h();c(l);m()});a.avia_utilities.preload({container:r,global_callback:function(){x();if(d.initial){var a=parseInt(d.initial,10);if(isNaN(a)||a<1){a=1}
else if(a>u.length){a=u.length};c(a-1)};b();k();m();setTimeout(function(){r.addClass('av-horizontal-gallery-animated')},10);n.on('debouncedresize',x)}});if(!r.hasClass('av-control-hidden')){if(!l){r.avia_keyboard_controls({37:e.prev,39:e.next})};if(l||t){r.avia_swipe_trigger({prev:e.prev,next:e.next})}}})}}(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(a){'use strict';a.fn.aviaIconCircles=function(i){return this.each(function(){var i=a(this),e=i.find('.avia-icon-circles-icon'),t=i.find('.avia-icon-circles-icon-text');i.on('avia_start_animation',function(){if(i.hasClass('avia_animation_finished')){return};i.addClass('avia_start_animation');setTimeout(function(){i.addClass('avia_animation_finished');if(i.hasClass('avia-active-icon')){setTimeout(function(){var a=e.filter('.av-first-active');if(a.length&&!e.filter('.active').length){a.addClass('active');a.next().addClass('active');i.addClass('active-container')}},800)}},2000);e.on('mouseenter',function(){e.removeClass('active');t.removeClass('active');var n=a(this).addClass('active');n.next().addClass('active');i.addClass('active-container')});i.on('mouseleave',function(){e.removeClass('active');t.removeClass('active');i.removeClass('active-container')})})})}}(jQuery));(function(i){'use strict';i.fn.avia_sc_icongrid=function(a){return this.each(function(){var e=i(this),a=e.find('.avia-icongrid'),t=a.find('.av-icon-cell-item'),r='#'+a.attr('id'),o=e.data('min-height'),n={};t.on('touchend',function(a){var n=i(this),o=n.closest('.avia-icongrid');if(n.hasClass('avia-hover')){o.find('.av-icon-cell-item').removeClass('avia-hover')}
else{o.find('.av-icon-cell-item').removeClass('avia-hover');n.addClass('avia-hover')};var e=n.find('a');if(e.length>0){e.off('touchend.aviaIconGridLink').on('touchend.aviaIconGridLink',function(a){a.preventDefault();var n=i(this),e=n.closest('.av-icon-cell-item');if(!e.hasClass('avia-hover')){return};a.stopImmediatePropagation();n.css('opacity',0.5);window.location.href=n.attr('href')})};a.preventDefault();a.stopImmediatePropagation()});if(a.hasClass('avia_flip_force_close')){i('body').on('touchend',function(a){var n=i('.avia-icongrid.avia_flip_force_close');n.each(function(){var a=i(this);a.find('.av-icon-cell-item').removeClass('avia-hover')})})};n={buildIconGrid:function(){this.setMinHeight(i(r+' li article'))},setMinHeight:function(n){if(n.length<2){return};var e=[],t=[],r=[];n.css('min-height','0').each(function(n){var o=i(this);if(a.hasClass('avia-icongrid-flipbox')){t=o.find('.avia-icongrid-front .avia-icongrid-inner');r=o.find('.avia-icongrid-flipback .avia-icongrid-inner')}
else{t=o.find('.avia-icongrid-front .avia-icongrid-inner');r=o.find('.avia-icongrid-content');e.push(o.outerHeight(!0))};if(t.length){e.push(t.outerHeight(!0))};if(r.length){e.push(r.outerHeight(!0))}});if('undefined'!=typeof(o)){var f=parseInt(o);if(!isNaN(f)){e.push(f)}};var s=Math.max.apply(null,e);n.css('min-height',s);if(a.hasClass('avia-icongrid-tooltip')){var c=n.first().outerWidth(!0);if(s>c){n.css('min-height',c)}}}};n.buildIconGrid();i(window).on('debouncedresize',function(){n.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));'use strict';var avia_js_shortcodes=avia_js_shortcodes||{};var aviaJS=aviaJS||{};(function(){if(!avia_js_shortcodes.aviaImageDiff){class scAviaImageDiff{container=null;id='';divider='vertical';handle=null;settings={};wrapperDiv=[];btnOverlay=[];btnBefore=[];btnAfter=[];imgBefore=[];imgAfter=[];imgDimension={};mouseCapture=!1;touchCapture=!1;touchMoved=!1;downScreenX=0;downScreenY=0;downClientX=0;downClientY=0;downHandlePos=0;preview=!1;constructor(container){this.container=container;this.container.scAviaImageDiff=this;this.id=container.getAttribute('id');this.handle=container.getElementsByClassName('av-image-diff-handle');if(!this.handle.length){return};this.handle=this.handle[0];this.init()};init(){this.settings=JSON.parse(this.container.dataset.image_diff);this.wrapperDiv=this.container.getElementsByClassName('av-image-diff-wrapper');this.btnOverlay=this.container.getElementsByClassName('av-image-diff-overlay');this.btnBefore=this.btnOverlay[0].getElementsByClassName('label-before');this.btnAfter=this.btnOverlay[0].getElementsByClassName('label-after');this.imgBefore=this.container.getElementsByClassName('av-img-before');this.imgAfter=this.container.getElementsByClassName('av-img-after');if(!this.imgBefore.length||!this.imgAfter.length){this.hideHandlerDOM();return};if(this.container.classList.contains('av-handle-horizontal')){this.divider='horizontal'};this.preview=document.getElementById('av-admin-preview')!=null;this.bindEvents();this.initialPositionHandler()};hideHandlerDOM(){this.handle.style.display='none';if(this.btnOverlay.length){this.btnOverlay[0].style.display='none'}};initialPositionHandler(){let start=('undefined'==typeof this.settings.drag_start)?50:parseInt(this.settings.drag_start);if(isNaN(start)){start=50};let offset=0;this.imgDimension=this.imgBefore[0].getBoundingClientRect();if(this.divider=='horizontal'){offset=this.imgDimension.height*(start/100.0)}
else{offset=this.imgDimension.width*(start/100.0)};this.container.classList.add('av-initialise');this.adjustDividerFrame(offset);let obj=this;setTimeout(function(){obj.container.classList.remove('av-initialise')},700)};adjustDividerFrame(offset){const overhead=5;this.container.classList.remove('av-handler-at-before','av-handler-at-after');offset=Math.round(offset);if(offset<=0){offset=0;this.container.classList.add('av-handler-at-before')};if(this.divider=='horizontal'){if(offset>=(this.imgDimension.height+overhead)){offset=Math.round(this.imgDimension.height+overhead);this.container.classList.add('av-handler-at-after')};let bottom=this.imgDimension.height-offset;this.handle.style.top=offset+'px';this.imgBefore[0].style['clip-path']='inset( 0 0 '+bottom+'px 0 )';this.imgAfter[0].style['clip-path']='inset( '+offset+'px 0 0 0 )'}
else{if(offset>=(this.imgDimension.width+overhead)){offset=Math.round(this.imgDimension.width+overhead);this.container.classList.add('av-handler-at-after')};let right=this.imgDimension.width-offset;this.handle.style.left=offset+'px';this.imgBefore[0].style['clip-path']='inset( 0 '+right+'px 0 0 )';this.imgAfter[0].style['clip-path']='inset( 0 0 0 '+offset+'px )'}};bindEvents(){this.container.onavia_start_animation=(e)=>{const opt={'bubbles':!0,'cancelable':!0};const event=new CustomEvent('avia_start_animation',opt);this.container.dispatchEvent(event)};this.container.addEventListener('avia_start_animation',this.onAviaStartAnimation.bind(this));this.handle.addEventListener('click',this.onHandleClick.bind(this));this.handle.addEventListener('mousedown',this.onMouseDown.bind(this));if(this.wrapperDiv.length>0){this.wrapperDiv[0].addEventListener('click',this.onClickWrapper.bind(this));this.wrapperDiv[0].addEventListener('touchstart',this.onTouchStart.bind(this))};if(this.btnBefore.length>0){this.btnBefore[0].addEventListener('click',this.onClickBtnBefore.bind(this))};if(this.btnAfter.length>0){this.btnAfter[0].addEventListener('click',this.onClickBtnAfter.bind(this))};window.addEventListener('mousemove',this.onMouseMove.bind(this));window.addEventListener('mouseup',this.onMouseUp.bind(this));window.addEventListener('touchmove',this.onTouchMove.bind(this));window.addEventListener('touchend',this.onTouchEnd.bind(this));window.addEventListener('resize',aviaJS.aviaJSHelpers.debounce(this.onResize.bind(this),200));if(this.preview){this.container.addEventListener('animationend',this.onAnimationEnd.bind(this))}};onAviaStartAnimation(event){if(this.container.classList.contains('avia_animation_finished')){return};if(this.preview){this.container.classList.add('avia_start_animation','avia_animation_finished')};if('undefined'!=typeof event){this.container.classList.add('avia_animation_finished','avia_start_delayed_animation')}};onAnimationEnd(event){if(!this.preview){return};this.initialPositionHandler()};onMouseDown(event){if(this.touchCapture){return};event.preventDefault();event.stopPropagation();this.mouseCapture=!0;this.container.classList.add('av-active-drag');this.downScreenX=event.screenX;this.downScreenY=event.screenY;if(this.divider=='horizontal'){this.downHandlePos=this.handle.style.top}
else{this.downHandlePos=this.handle.style.left};this.downHandlePos=parseInt(this.downHandlePos.replace('px',''))};onMouseMove(event){if(!this.mouseCapture){return};event.preventDefault();event.stopPropagation();let newPos=0,diff=0;if(this.divider=='horizontal'){diff=event.screenY-this.downScreenY}
else{diff=event.screenX-this.downScreenX};if(Math.abs(diff)<5){return};newPos=this.downHandlePos+diff;this.adjustDividerFrame(newPos)};onMouseUp(event){if(!this.mouseCapture){return};event.preventDefault();event.stopPropagation();this.mouseCapture=!1;this.container.classList.remove('av-active-drag')};onTouchStart(event){if(this.mouseCapture){return};if(!event.touches.length){return};event.preventDefault();event.stopPropagation();if(event.explicitOriginalTarget){if(event.explicitOriginalTarget.classList.contains('av-img-diff-label')){let opacity=window.getComputedStyle(event.explicitOriginalTarget).getPropertyValue('opacity');if(opacity>0){event.explicitOriginalTarget.dispatchEvent(new MouseEvent('click'));return}}};this.touchCapture=!0;this.container.classList.add('av-active-drag');this.downScreenX=event.touches[0].screenX;this.downScreenY=event.touches[0].screenY;this.downClientX=event.touches[0].clientX;this.downClientY=event.touches[0].clientY;if(this.divider=='horizontal'){this.downHandlePos=this.handle.style.top}
else{this.downHandlePos=this.handle.style.left};this.downHandlePos=parseInt(this.downHandlePos.replace('px',''))};onTouchMove(event){if(!this.touchCapture){return};event.preventDefault();event.stopPropagation();let newPos=0,diff=0;if(this.divider=='horizontal'){diff=event.touches[0].screenY-this.downScreenY}
else{diff=event.touches[0].screenX-this.downScreenX};if(Math.abs(diff)<5){return};newPos=this.downHandlePos+diff;this.adjustDividerFrame(newPos);this.touchMoved=!0};onTouchEnd(event){if(!this.touchCapture){return};if(!this.touchMoved){let newPos=0,maxCheck=0,rect=this.wrapperDiv[0].getBoundingClientRect();if(this.divider=='horizontal'){newPos=this.downClientY-rect.top;maxCheck=rect.height}
else{newPos=this.downClientX-rect.left;maxCheck=rect.width};if(newPos<0){newPos=0}
else if(newPos>maxCheck){newPos=maxCheck};this.adjustDividerFrame(newPos)};event.preventDefault();event.stopPropagation();this.touchCapture=!1;this.touchMoved=!1;this.container.classList.remove('av-active-drag')};onResize(event){let lastPos=0,lastDim=0;if(this.divider=='horizontal'){lastPos=this.handle.style.top;lastDim=this.imgDimension.height}
else{lastPos=this.handle.style.left;lastDim=this.imgDimension.width};lastPos=parseInt(lastPos.replace('px',''));if(lastPos<0){lastDim=0}
else if(lastDim!=0){lastDim=Math.round((lastPos/lastDim)*100.0)};if(lastDim>100){lastDim=100};this.settings.drag_start=lastDim;this.imgBefore[0].style['clip-path']='inset( 0 0 0 0 )';this.imgAfter[0].style['clip-path']='inset( 0 0 0 0 )';this.initialPositionHandler()};onHandleClick(event){event.preventDefault();event.stopPropagation()};onClickBtnBefore(event){event.preventDefault();event.stopPropagation();this.adjustDividerFrame(0)};onClickBtnAfter(event){event.preventDefault();event.stopPropagation();let newPos=0;if(this.divider=='horizontal'){newPos=this.imgDimension.height}
else{newPos=this.imgDimension.width};this.adjustDividerFrame(newPos+15)};onClickWrapper(event){event.preventDefault();event.stopPropagation();let newPos=0;if(this.divider=='horizontal'){newPos=event.layerY}
else{newPos=event.layerX};this.adjustDividerFrame(newPos)}};avia_js_shortcodes.aviaImageDiff=function(e){return new scAviaImageDiff(e)};aviaJS.aviaPlugins.register(avia_js_shortcodes.aviaImageDiff,'.avia-image-diff-container')}})();(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));'use strict';var avia_js_shortcodes=avia_js_shortcodes||{};var aviaJS=aviaJS||{};(function(){if(!avia_js_shortcodes.aviaLottieAnimation){class scAviaLottieAnimation{container=null;id='';player=null;settings={};loaded=!1;started=!1;preview=!1;constructor(container){this.container=container;this.container.scAviaLottieAnimation=this;this.id=container.getAttribute('id');this.loaded=!1;this.started=!1;this.preview=document.getElementById('av-admin-preview')!=null;this.container.scAviaLottieAnimation=this;this.player=this.container.querySelector('dotlottie-player');this.settings=JSON.parse(this.player.dataset.av_lottie);this.initPlayer();this.container.onavia_start_animation=(e)=>{const opt={'bubbles':!0,'cancelable':!0};const event=new CustomEvent('avia_start_animation',opt);this.container.dispatchEvent(event)};this.container.addEventListener('avia_start_animation',this.avia_start_animation.bind(this));this.player.addEventListener('ready',this.lottie_animation_loaded.bind(this));const obj=this;setTimeout(function(){obj.prepareAnimation()})};initPlayer(){this.player.__speed=this.settings.speed!=''?this.settings.speed:1;this.player.__autoplay=!1;this.player.__loop=this.settings.loop=='';this.player.__hover=this.settings.hover!='';this.player.__direction=this.settings.direction!=''?-1:1;this.player.__mode=this.settings.mode!=''?'bounce':'normal';this.player.__controls=this.settings.controls!='';this.player.__background=this.settings.background=!''?this.settings.background:'transparent'};prepareAnimation(){if(this.container.classList.contains('avia_start_animation')){if(this.settings.autoplay!='no_autoplay'){this.settings.autoplay='start_loaded'};this.avia_start_animation()}
else if(this.settings.autoplay=='start_loaded'||this.settings.lazy_loading==''||this.preview){this.load_animation()}};avia_start_animation(event){if(this.container.classList.contains('avia_animation_finished')){this.start()};if(this.preview){this.container.classList.add('avia_start_animation','avia_animation_finished')};if('undefined'!=typeof event){this.container.classList.add('avia_animation_finished','avia_start_delayed_animation')};if(this.loaded){this.start()}
else{this.load_animation()}};load_animation(){if(this.loaded){return};this.player.load(this.settings.src)};start(){this.started=!0;this.container.classList.add('av-lottie-animation-started');this.player.play()};lottie_animation_loaded(event){this.loaded=!0;this.container.classList.add('av-lottie-animation-loaded');if(this.settings.autoplay=='no_autoplay'){return};if(this.settings.autoplay=='start_loaded'||this.preview||this.container.classList.contains('avia_start_delayed_animation')){this.start()};if(this.container.classList.contains('avia_start_animation')&&this.settings.lazy_loading!=''){this.start();this.container.classList.add('avia_start_delayed_animation')}}};avia_js_shortcodes.aviaLottieAnimation=function(t){return new scAviaLottieAnimation(t)};aviaJS.aviaPlugins.register(avia_js_shortcodes.aviaLottieAnimation,'.av-lottie-animation-container')}})();(function(t){'use strict';var a=!1,i={switchMag:function(n,i){var e=t(n);if(e.is('.active_sort')||a){return};var s=e.data('filter'),r=i.container.filter(':visible'),o=i.container.filter('.'+s);a=!0;i.sort_buttons.removeClass('active_sort');e.addClass('active_sort');i.magazine.height(i.magazine.outerHeight());r.avia_animate({opacity:0},200,function(){r.css({display:'none'});o.css({opacity:0,display:'block'}).avia_animate({opacity:1},150,function(){i.magazine.avia_animate({height:(o.outerHeight()+i.sort_bar.outerHeight())},150,function(){i.magazine.height('auto');a=!1})})})}};t.fn.aviaMagazine=function(a){if(!this.length){return};return this.each(function(){var a={};a.magazine=t(this),a.sort_buttons=a.magazine.find('.av-magazine-sort a');a.container=a.magazine.find('.av-magazine-group');a.sort_bar=a.magazine.find('.av-magazine-top-bar');a.sort_buttons.each(function(i){var n=t(this),r=n.data('filter'),e=a.container.filter('.'+r);if(e.length==0||e.html().trim()==''){n.hide();n.prev('span.text-sep').hide()}});a.sort_buttons.on('click',function(t){t.preventDefault();i.switchMag(this,a)})})}}(jQuery));
/*!
 * Isotope PACKAGED v3.0.6
 *
 * Licensed GPLv3 for open source use
 * or Isotope Commercial License for commercial use
 *
 * https://isotope.metafizzy.co
 * Copyright 2010-2018 Metafizzy
 */
!function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,s,a){function u(t,e,o){var n,s="$()."+i+'("'+e+'")';return t.each(function(t,u){var h=a.data(u,i);if(!h)return void r(i+" not initialized. Cannot call methods, i.e. "+s);var d=h[e];if(!d||"_"==e.charAt(0))return void r(s+" is not a valid method");var l=d.apply(h,o);n=void 0===n?l:n}),void 0!==n?n:t}function h(t,e){t.each(function(t,o){var n=a.data(o,i);n?(n.option(e),n._init()):(n=new s(o,e),a.data(o,i,n))})}a=a||e||t.jQuery,a&&(s.prototype.option||(s.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=n.call(arguments,1);return u(this,t,e)}return h(this,t),this},o(a))}function o(t){!t||t&&t.bridget||(t.bridget=i)}var n=Array.prototype.slice,s=t.console,r="undefined"==typeof s?function(){}:function(t){s.error(t)};return o(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},o=i[t]=i[t]||[];return o.indexOf(e)==-1&&o.push(e),this}},e.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}},e.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}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var o=this._onceEvents&&this._onceEvents[t],n=0;n<i.length;n++){var s=i[n],r=o&&o[s];r&&(this.off(t,s),delete o[s]),s.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),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 t(t){var e=parseFloat(t),i=t.indexOf("%")==-1&&!isNaN(e);return i&&e}function e(){}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<h;e++){var i=u[e];t[i]=0}return t}function o(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 n(){if(!d){d=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var n=o(e);r=200==Math.round(t(n.width)),s.isBoxSizeOuter=r,i.removeChild(e)}}function s(e){if(n(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var s=o(e);if("none"==s.display)return i();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var d=a.isBorderBox="border-box"==s.boxSizing,l=0;l<h;l++){var f=u[l],c=s[f],m=parseFloat(c);a[f]=isNaN(m)?0:m}var p=a.paddingLeft+a.paddingRight,y=a.paddingTop+a.paddingBottom,g=a.marginLeft+a.marginRight,v=a.marginTop+a.marginBottom,_=a.borderLeftWidth+a.borderRightWidth,z=a.borderTopWidth+a.borderBottomWidth,I=d&&r,x=t(s.width);x!==!1&&(a.width=x+(I?0:p+_));var S=t(s.height);return S!==!1&&(a.height=S+(I?0:y+z)),a.innerWidth=a.width-(p+_),a.innerHeight=a.height-(y+z),a.outerWidth=a.width+g,a.outerHeight=a.height+v,a}}var r,a="undefined"==typeof console?e:function(t){console.error(t)},u=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],h=u.length,d=!1;return s}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var o=e[i],n=o+"MatchesSelector";if(t[n])return n}}();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 o=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?o.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 i=t.querySelectorAll(o),s=0;s<i.length;s++)n.push(i[s])}}),n},i.debounceMethod=function(t,e,i){i=i||100;var o=t.prototype[e],n=e+"Timeout";t.prototype[e]=function(){var t=this[n];clearTimeout(t);var e=arguments,s=this;this[n]=setTimeout(function(){o.apply(s,e),delete s[n]},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 n=t.console;return i.htmlInit=function(e,o){i.docReady(function(){var s=i.toDashed(o),r="data-"+s,a=document.querySelectorAll("["+r+"]"),u=document.querySelectorAll(".js-"+s),h=i.makeArray(a).concat(i.makeArray(u)),d=r+"-options",l=t.jQuery;h.forEach(function(t){var i,s=t.getAttribute(r)||t.getAttribute(d);try{i=s&&JSON.parse(s)}catch(a){return void(n&&n.error("Error parsing "+r+" on "+t.className+": "+a))}var u=new e(t,i);l&&l.data(t,o,u)})})},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 i(t){for(var e in t)return!1;return e=null,!0}function o(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}function n(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}var s=document.documentElement.style,r="string"==typeof s.transition?"transition":"WebkitTransition",a="string"==typeof s.transform?"transform":"WebkitTransform",u={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[r],h={transform:a,transition:r,transitionDuration:r+"Duration",transitionProperty:r+"Property",transitionDelay:r+"Delay"},d=o.prototype=Object.create(t.prototype);d.constructor=o,d._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},d.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},d.getSize=function(){this.size=e(this.element)},d.css=function(t){var e=this.element.style;for(var i in t){var o=h[i]||i;e[o]=t[i]}},d.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),o=t[e?"left":"right"],n=t[i?"top":"bottom"],s=parseFloat(o),r=parseFloat(n),a=this.layout.size;o.indexOf("%")!=-1&&(s=s/100*a.width),n.indexOf("%")!=-1&&(r=r/100*a.height),s=isNaN(s)?0:s,r=isNaN(r)?0:r,s-=e?a.paddingLeft:a.paddingRight,r-=i?a.paddingTop:a.paddingBottom,this.position.x=s,this.position.y=r},d.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),o=this.layout._getOption("originTop"),n=i?"paddingLeft":"paddingRight",s=i?"left":"right",r=i?"right":"left",a=this.position.x+t[n];e[s]=this.getXValue(a),e[r]="";var u=o?"paddingTop":"paddingBottom",h=o?"top":"bottom",d=o?"bottom":"top",l=this.position.y+t[u];e[h]=this.getYValue(l),e[d]="",this.css(e),this.emitEvent("layout",[this])},d.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},d.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},d._transitionTo=function(t,e){this.getPosition();var i=this.position.x,o=this.position.y,n=t==this.position.x&&e==this.position.y;if(this.setPosition(t,e),n&&!this.isTransitioning)return void this.layoutPosition();var s=t-i,r=e-o,a={};a.transform=this.getTranslate(s,r),this.transition({to:a,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},d.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)"},d.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},d.moveTo=d._transitionTo,d.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},d._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},d.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(t);var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!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 l="opacity,"+n(a);d.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:l,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(u,this,!1)}},d.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},d.onotransitionend=function(t){this.ontransitionend(t)};var f={"-webkit-transform":"transform"};d.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,o=f[t.propertyName]||t.propertyName;if(delete e.ingProperties[o],i(e.ingProperties)&&this.disableTransition(),o in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[o]),o in e.onEnd){var n=e.onEnd[o];n.call(this),delete e.onEnd[o]}this.emitEvent("transitionEnd",[this])}},d.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(u,this,!1),this.isTransitioning=!1},d._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var c={transitionProperty:"",transitionDuration:"",transitionDelay:""};return d.removeTransitionStyles=function(){this.css(c)},d.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},d.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},d.remove=function(){return r&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},d.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})},d.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},d.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},d.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})},d.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},d.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},o}),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,i,o,n){"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,h&&(this.$element=h(this.element)),this.options=o.extend({},this.constructor.defaults),this.option(e);var n=++l;this.element.outlayerGUID=n,f[n]=this,this._create();var s=this._getOption("initLayout");s&&this.layout()}function r(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}function a(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),i=e&&e[1],o=e&&e[2];if(!i.length)return 0;i=parseFloat(i);var n=m[o]||1;return i*n}var u=t.console,h=t.jQuery,d=function(){},l=0,f={};s.namespace="outlayer",s.Item=n,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 c=s.prototype;o.extend(c,e.prototype),c.option=function(t){o.extend(this.options,t)},c._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"},c._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()},c.reloadItems=function(){this.items=this._itemize(this.element.children)},c._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,o=[],n=0;n<e.length;n++){var s=e[n],r=new i(s,this);o.push(r)}return o},c._filterFindItemElements=function(t){return o.filterFindElements(t,this.options.itemSelector)},c.getItemElements=function(){return this.items.map(function(t){return t.element})},c.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},c._init=c.layout,c._resetLayout=function(){this.getSize()},c.getSize=function(){this.size=i(this.element)},c._getMeasurement=function(t,e){var o,n=this.options[t];n?("string"==typeof n?o=this.element.querySelector(n):n instanceof HTMLElement&&(o=n),this[t]=o?i(o)[e]:n):this[t]=0},c.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},c._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},c._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)}},c._getItemLayoutPosition=function(){return{x:0,y:0}},c._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},c.updateStagger=function(){var t=this.options.stagger;return null===t||void 0===t?void(this.stagger=0):(this.stagger=a(t),this.stagger)},c._positionItem=function(t,e,i,o,n){o?t.goTo(e,i):(t.stagger(n*this.stagger),t.moveTo(e,i))},c._postLayout=function(){this.resizeContainer()},c.resizeContainer=function(){var t=this._getOption("resizeContainer");if(t){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},c._getContainerSize=d,c._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"}},c._emitCompleteOnItems=function(t,e){function i(){n.dispatchEvent(t+"Complete",null,[e])}function o(){r++,r==s&&i()}var n=this,s=e.length;if(!e||!s)return void i();var r=0;e.forEach(function(e){e.once(t,o)})},c.dispatchEvent=function(t,e,i){var o=e?[e].concat(i):i;if(this.emitEvent(t,o),h)if(this.$element=this.$element||h(this.element),e){var n=h.Event(e);n.type=t,this.$element.trigger(n,i)}else this.$element.trigger(t,i)},c.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},c.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},c.stamp=function(t){t=this._find(t),t&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},c.unstamp=function(t){t=this._find(t),t&&t.forEach(function(t){o.removeFrom(this.stamps,t),this.unignore(t)},this)},c._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),t=o.makeArray(t)},c._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},c._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},c._manageStamp=d,c._getElementOffset=function(t){var e=t.getBoundingClientRect(),o=this._boundingRect,n=i(t),s={left:e.left-o.left-n.marginLeft,top:e.top-o.top-n.marginTop,right:o.right-e.right-n.marginRight,bottom:o.bottom-e.bottom-n.marginBottom};return s},c.handleEvent=o.handleEvent,c.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},c.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},c.onresize=function(){this.resize()},o.debounceMethod(s,"onresize",100),c.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},c.needsResizeLayout=function(){var t=i(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},c.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},c.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},c.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)}},c.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()})}},c.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()})}},c.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},c.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},c.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},c.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},c.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)},c.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 f[e],delete this.element.outlayerGUID,h&&h.removeData(this.element,this.constructor.namespace)},s.data=function(t){t=o.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&f[e]},s.create=function(t,e){var i=r(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=r(n),o.htmlInit(i,t),h&&h.bridget&&h.bridget(t,i),i};var m={ms:1,s:1e3};return s.Item=n,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 e(){t.Item.apply(this,arguments)}var i=e.prototype=Object.create(t.Item.prototype),o=i._create;i._create=function(){this.id=this.layout.itemGUID++,o.call(this),this.sortData={}},i.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var t=this.layout.options.getSortData,e=this.layout._sorters;for(var i in t){var o=e[i];this.sortData[i]=o(this.element,this)}}};var n=i.destroy;return i.destroy=function(){n.apply(this,arguments),this.css({display:""})},e}),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 i(t){this.isotope=t,t&&(this.options=t.options[this.namespace],this.element=t.element,this.items=t.filteredItems,this.size=t.size)}var o=i.prototype,n=["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"];return n.forEach(function(t){o[t]=function(){return e.prototype[t].apply(this.isotope,arguments)}}),o.needsVerticalResizeLayout=function(){var e=t(this.isotope.element),i=this.isotope.size&&e;return i&&e.innerHeight!=this.isotope.size.innerHeight},o._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},o.getColumnWidth=function(){this.getSegmentSize("column","Width")},o.getRowHeight=function(){this.getSegmentSize("row","Height")},o.getSegmentSize=function(t,e){var i=t+e,o="outer"+e;if(this._getMeasurement(i,o),!this[i]){var n=this.getFirstItemSize();this[i]=n&&n[o]||this.isotope.size["inner"+e]}},o.getFirstItemSize=function(){var e=this.isotope.filteredItems[0];return e&&e.element&&t(e.element)},o.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},o.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},i.modes={},i.create=function(t,e){function n(){i.apply(this,arguments)}return n.prototype=Object.create(o),n.prototype.constructor=n,e&&(n.options=e),n.prototype.namespace=t,i.modes[t]=n,n},i}),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 i=t.create("masonry");i.compatOptions.fitWidth="isFitWidth";var o=i.prototype;return o._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},o.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}var o=this.columnWidth+=this.gutter,n=this.containerWidth+this.gutter,s=n/o,r=o-n%o,a=r&&r<1?"round":"floor";s=Math[a](s),this.cols=Math.max(s,1)},o.getContainerWidth=function(){var t=this._getOption("fitWidth"),i=t?this.element.parentNode:this.element,o=e(i);this.containerWidth=o&&o.innerWidth},o._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=e&&e<1?"round":"ceil",o=Math[i](t.size.outerWidth/this.columnWidth);o=Math.min(o,this.cols);for(var n=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",s=this[n](o,t),r={x:this.columnWidth*s.col,y:s.y},a=s.y+t.size.outerHeight,u=o+s.col,h=s.col;h<u;h++)this.colYs[h]=a;return r},o._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},o._getTopColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,o=0;o<i;o++)e[o]=this._getColGroupY(o,t);return e},o._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)},o._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,o=t>1&&i+t>this.cols;i=o?0:i;var n=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=n?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},o._manageStamp=function(t){var i=e(t),o=this._getElementOffset(t),n=this._getOption("originLeft"),s=n?o.left:o.right,r=s+i.outerWidth,a=Math.floor(s/this.columnWidth);a=Math.max(0,a);var u=Math.floor(r/this.columnWidth);u-=r%this.columnWidth?0:1,u=Math.min(this.cols-1,u);for(var h=this._getOption("originTop"),d=(h?o.top:o.bottom)+i.outerHeight,l=a;l<=u;l++)this.colYs[l]=Math.max(d,this.colYs[l])},o._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},o._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},o.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i}),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 i=t.create("masonry"),o=i.prototype,n={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(var s in e.prototype)n[s]||(o[s]=e.prototype[s]);var r=o.measureColumns;o.measureColumns=function(){this.items=this.isotope.filteredItems,r.call(this)};var a=o._getOption;return o._getOption=function(t){return"fitWidth"==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:a.apply(this.isotope,arguments)},i}),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 e=t.create("fitRows"),i=e.prototype;return i._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},i._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter;0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxY);var o={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,o},i._getContainerSize=function(){return{height:this.maxY}},e}),function(t,e){"function"==typeof define&&define.amd?define("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 e=t.create("vertical",{horizontalAlignment:0}),i=e.prototype;return i._resetLayout=function(){this.y=0},i._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}},i._getContainerSize=function(){return{height:this.y}},e}),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,i,o,n,s,r){function a(t,e){return function(i,o){for(var n=0;n<t.length;n++){var s=t[n],r=i.sortData[s],a=o.sortData[s];if(r>a||r<a){var u=void 0!==e[s]?e[s]:e,h=u?1:-1;return(r>a?1:-1)*h}}return 0}}var u=t.jQuery,h=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},d=e.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});d.Item=s,d.LayoutMode=r;var l=d.prototype;l._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 r.modes)this._initLayoutMode(t)},l.reloadItems=function(){this.itemGUID=0,e.prototype.reloadItems.call(this)},l._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},l._initLayoutMode=function(t){var e=r.modes[t],i=this.options[t]||{};this.options[t]=e.options?n.extend(e.options,i):i,this.modes[t]=new e(this)},l.layout=function(){return!this._isLayoutInited&&this._getOption("initLayout")?void this.arrange():void this._layout()},l._layout=function(){var t=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,t),this._isLayoutInited=!0},l.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()},l._init=l.arrange,l._hideReveal=function(t){this.reveal(t.needReveal),this.hide(t.needHide)},l._getIsInstant=function(){var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;return this._isInstant=e,e},l._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()})},l._filter=function(t){var e=this.options.filter;e=e||"*";for(var i=[],o=[],n=[],s=this._getFilterTest(e),r=0;r<t.length;r++){var a=t[r];if(!a.isIgnored){var u=s(a);u&&i.push(a),u&&a.isHidden?o.push(a):u||a.isHidden||n.push(a)}}return{matches:i,needReveal:o,needHide:n}},l._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 o(e.element,t)}},l.updateSortData=function(t){var e;t?(t=n.makeArray(t),e=this.getItems(t)):e=this.items,this._getSorters(),this._updateItemsSortData(e)},l._getSorters=function(){var t=this.options.getSortData;for(var e in t){var i=t[e];this._sorters[e]=f(i)}},l._updateItemsSortData=function(t){for(var e=t&&t.length,i=0;e&&i<e;i++){var o=t[i];o.updateSortData()}};var f=function(){function t(t){if("string"!=typeof t)return t;var i=h(t).split(" "),o=i[0],n=o.match(/^\[(.+)\]$/),s=n&&n[1],r=e(s,o),a=d.sortDataParsers[i[1]];return t=a?function(t){return t&&a(r(t))}:function(t){return t&&r(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}();d.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},l._sort=function(){if(this.options.sortBy){var t=n.makeArray(this.options.sortBy);this._getIsSameSortBy(t)||(this.sortHistory=t.concat(this.sortHistory));var e=a(this.sortHistory,this.options.sortAscending);this.filteredItems.sort(e)}},l._getIsSameSortBy=function(t){for(var e=0;e<t.length;e++)if(t[e]!=this.sortHistory[e])return!1;return!0},l._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},l._resetLayout=function(){e.prototype._resetLayout.call(this),this._mode()._resetLayout()},l._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},l._manageStamp=function(t){this._mode()._manageStamp(t)},l._getContainerSize=function(){return this._mode()._getContainerSize()},l.needsResizeLayout=function(){return this._mode().needsResizeLayout()},l.appended=function(t){var e=this.addItems(t);if(e.length){var i=this._filterRevealAdded(e);this.filteredItems=this.filteredItems.concat(i)}},l.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)}},l._filterRevealAdded=function(t){var e=this._filter(t);return this.hide(e.needHide),this.reveal(e.matches),this.layoutItems(e.matches,!0),e.matches},l.insert=function(t){var e=this.addItems(t);if(e.length){var i,o,n=e.length;for(i=0;i<n;i++)o=e[i],this.element.appendChild(o.element);var s=this._filter(e).matches;for(i=0;i<n;i++)e[i].isLayoutInstant=!0;for(this.arrange(),i=0;i<n;i++)delete e[i].isLayoutInstant;this.reveal(s)}};var c=l.remove;return l.remove=function(t){t=n.makeArray(t);var e=this.getItems(t);c.call(this,t);for(var i=e&&e.length,o=0;i&&o<i;o++){var s=e[o];n.removeFrom(this.filteredItems,s)}},l.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()},l._noTransition=function(t,e){var i=this.options.transitionDuration;this.options.transitionDuration=0;var o=t.apply(this,e);return this.options.transitionDuration=i,o},l.getFilteredItemElements=function(){return this.filteredItems.map(function(t){return t.element})},d});
/*!
 * Packery layout mode PACKAGED v2.0.1
 * sub-classes Packery
 */
!function(a,b){"function"==typeof define&&define.amd?define("packery/js/rect",b):"object"==typeof module&&module.exports?module.exports=b():(a.Packery=a.Packery||{},a.Packery.Rect=b())}(window,function(){function a(b){for(var c in a.defaults)this[c]=a.defaults[c];for(c in b)this[c]=b[c]}a.defaults={x:0,y:0,width:0,height:0};var b=a.prototype;return b.contains=function(a){var b=a.width||0,c=a.height||0;return this.x<=a.x&&this.y<=a.y&&this.x+this.width>=a.x+b&&this.y+this.height>=a.y+c},b.overlaps=function(a){var b=this.x+this.width,c=this.y+this.height,d=a.x+a.width,e=a.y+a.height;return this.x<d&&b>a.x&&this.y<e&&c>a.y},b.getMaximalFreeRects=function(b){if(!this.overlaps(b))return!1;var c,d=[],e=this.x+this.width,f=this.y+this.height,g=b.x+b.width,h=b.y+b.height;return this.y<b.y&&(c=new a({x:this.x,y:this.y,width:this.width,height:b.y-this.y}),d.push(c)),e>g&&(c=new a({x:g,y:this.y,width:e-g,height:this.height}),d.push(c)),f>h&&(c=new a({x:this.x,y:h,width:this.width,height:f-h}),d.push(c)),this.x<b.x&&(c=new a({x:this.x,y:this.y,width:b.x-this.x,height:this.height}),d.push(c)),d},b.canFit=function(a){return this.width>=a.width&&this.height>=a.height},a}),function(a,b){if("function"==typeof define&&define.amd)define("packery/js/packer",["./rect"],b);else if("object"==typeof module&&module.exports)module.exports=b(require("./rect"));else{var c=a.Packery=a.Packery||{};c.Packer=b(c.Rect)}}(window,function(a){function b(a,b,c){this.width=a||0,this.height=b||0,this.sortDirection=c||"downwardLeftToRight",this.reset()}var c=b.prototype;c.reset=function(){this.spaces=[];var b=new a({x:0,y:0,width:this.width,height:this.height});this.spaces.push(b),this.sorter=d[this.sortDirection]||d.downwardLeftToRight},c.pack=function(a){for(var b=0;b<this.spaces.length;b++){var c=this.spaces[b];if(c.canFit(a)){this.placeInSpace(a,c);break}}},c.columnPack=function(a){for(var b=0;b<this.spaces.length;b++){var c=this.spaces[b],d=c.x<=a.x&&c.x+c.width>=a.x+a.width&&c.height>=a.height-.01;if(d){a.y=c.y,this.placed(a);break}}},c.rowPack=function(a){for(var b=0;b<this.spaces.length;b++){var c=this.spaces[b],d=c.y<=a.y&&c.y+c.height>=a.y+a.height&&c.width>=a.width-.01;if(d){a.x=c.x,this.placed(a);break}}},c.placeInSpace=function(a,b){a.x=b.x,a.y=b.y,this.placed(a)},c.placed=function(a){for(var b=[],c=0;c<this.spaces.length;c++){var d=this.spaces[c],e=d.getMaximalFreeRects(a);e?b.push.apply(b,e):b.push(d)}this.spaces=b,this.mergeSortSpaces()},c.mergeSortSpaces=function(){b.mergeRects(this.spaces),this.spaces.sort(this.sorter)},c.addSpace=function(a){this.spaces.push(a),this.mergeSortSpaces()},b.mergeRects=function(a){var b=0,c=a[b];a:for(;c;){for(var d=0,e=a[b+d];e;){if(e==c)d++;else{if(e.contains(c)){a.splice(b,1),c=a[b];continue a}c.contains(e)?a.splice(b+d,1):d++}e=a[b+d]}b++,c=a[b]}return a};var d={downwardLeftToRight:function(a,b){return a.y-b.y||a.x-b.x},rightwardTopToBottom:function(a,b){return a.x-b.x||a.y-b.y}};return b}),function(a,b){"function"==typeof define&&define.amd?define("packery/js/item",["outlayer/outlayer","./rect"],b):"object"==typeof module&&module.exports?module.exports=b(require("outlayer"),require("./rect")):a.Packery.Item=b(a.Outlayer,a.Packery.Rect)}(window,function(a,b){var c=document.documentElement.style,d="string"==typeof c.transform?"transform":"WebkitTransform",e=function(){a.Item.apply(this,arguments)},f=e.prototype=Object.create(a.Item.prototype),g=f._create;f._create=function(){g.call(this),this.rect=new b};var h=f.moveTo;return f.moveTo=function(a,b){var c=Math.abs(this.position.x-a),d=Math.abs(this.position.y-b),e=this.layout.dragItemCount&&!this.isPlacing&&!this.isTransitioning&&1>c&&1>d;return e?void this.goTo(a,b):void h.apply(this,arguments)},f.enablePlacing=function(){this.removeTransitionStyles(),this.isTransitioning&&d&&(this.element.style[d]="none"),this.isTransitioning=!1,this.getSize(),this.layout._setRectSize(this.element,this.rect),this.isPlacing=!0},f.disablePlacing=function(){this.isPlacing=!1},f.removeElem=function(){this.element.parentNode.removeChild(this.element),this.layout.packer.addSpace(this.rect),this.emitEvent("remove",[this])},f.showDropPlaceholder=function(){var a=this.dropPlaceholder;a||(a=this.dropPlaceholder=document.createElement("div"),a.className="packery-drop-placeholder",a.style.position="absolute"),a.style.width=this.size.width+"px",a.style.height=this.size.height+"px",this.positionDropPlaceholder(),this.layout.element.appendChild(a)},f.positionDropPlaceholder=function(){this.dropPlaceholder.style[d]="translate("+this.rect.x+"px, "+this.rect.y+"px)"},f.hideDropPlaceholder=function(){this.layout.element.removeChild(this.dropPlaceholder)},e}),function(a,b){"function"==typeof define&&define.amd?define("packery/js/packery",["get-size/get-size","outlayer/outlayer","./rect","./packer","./item"],b):"object"==typeof module&&module.exports?module.exports=b(require("get-size"),require("outlayer"),require("./rect"),require("./packer"),require("./item")):a.Packery=b(a.getSize,a.Outlayer,a.Packery.Rect,a.Packery.Packer,a.Packery.Item)}(window,function(a,b,c,d,e){function f(a,b){return a.position.y-b.position.y||a.position.x-b.position.x}function g(a,b){return a.position.x-b.position.x||a.position.y-b.position.y}function h(a,b){var c=b.x-a.x,d=b.y-a.y;return Math.sqrt(c*c+d*d)}c.prototype.canFit=function(a){return this.width>=a.width-1&&this.height>=a.height-1};var i=b.create("packery");i.Item=e;var j=i.prototype;j._create=function(){b.prototype._create.call(this),this.packer=new d,this.shiftPacker=new d,this.isEnabled=!0,this.dragItemCount=0;var a=this;this.handleDraggabilly={dragStart:function(){a.itemDragStart(this.element)},dragMove:function(){a.itemDragMove(this.element,this.position.x,this.position.y)},dragEnd:function(){a.itemDragEnd(this.element)}},this.handleUIDraggable={start:function(b,c){c&&a.itemDragStart(b.currentTarget)},drag:function(b,c){c&&a.itemDragMove(b.currentTarget,c.position.left,c.position.top)},stop:function(b,c){c&&a.itemDragEnd(b.currentTarget)}}},j._resetLayout=function(){this.getSize(),this._getMeasurements();var a,b,c;this._getOption("horizontal")?(a=1/0,b=this.size.innerHeight+this.gutter,c="rightwardTopToBottom"):(a=this.size.innerWidth+this.gutter,b=1/0,c="downwardLeftToRight"),this.packer.width=this.shiftPacker.width=a,this.packer.height=this.shiftPacker.height=b,this.packer.sortDirection=this.shiftPacker.sortDirection=c,this.packer.reset(),this.maxY=0,this.maxX=0},j._getMeasurements=function(){this._getMeasurement("columnWidth","width"),this._getMeasurement("rowHeight","height"),this._getMeasurement("gutter","width")},j._getItemLayoutPosition=function(a){if(this._setRectSize(a.element,a.rect),this.isShifting||this.dragItemCount>0){var b=this._getPackMethod();this.packer[b](a.rect)}else this.packer.pack(a.rect);return this._setMaxXY(a.rect),a.rect},j.shiftLayout=function(){this.isShifting=!0,this.layout(),delete this.isShifting},j._getPackMethod=function(){return this._getOption("horizontal")?"rowPack":"columnPack"},j._setMaxXY=function(a){this.maxX=Math.max(a.x+a.width,this.maxX),this.maxY=Math.max(a.y+a.height,this.maxY)},j._setRectSize=function(b,c){var d=a(b),e=d.outerWidth,f=d.outerHeight;(e||f)&&(e=this._applyGridGutter(e,this.columnWidth),f=this._applyGridGutter(f,this.rowHeight)),c.width=Math.min(e,this.packer.width),c.height=Math.min(f,this.packer.height)},j._applyGridGutter=function(a,b){if(!b)return a+this.gutter;b+=this.gutter;var c=a%b,d=c&&1>c?"round":"ceil";return a=Math[d](a/b)*b},j._getContainerSize=function(){return this._getOption("horizontal")?{width:this.maxX-this.gutter}:{height:this.maxY-this.gutter}},j._manageStamp=function(a){var b,d=this.getItem(a);if(d&&d.isPlacing)b=d.rect;else{var e=this._getElementOffset(a);b=new c({x:this._getOption("originLeft")?e.left:e.right,y:this._getOption("originTop")?e.top:e.bottom})}this._setRectSize(a,b),this.packer.placed(b),this._setMaxXY(b)},j.sortItemsByPosition=function(){var a=this._getOption("horizontal")?g:f;this.items.sort(a)},j.fit=function(a,b,c){var d=this.getItem(a);d&&(this.stamp(d.element),d.enablePlacing(),this.updateShiftTargets(d),b=void 0===b?d.rect.x:b,c=void 0===c?d.rect.y:c,this.shift(d,b,c),this._bindFitEvents(d),d.moveTo(d.rect.x,d.rect.y),this.shiftLayout(),this.unstamp(d.element),this.sortItemsByPosition(),d.disablePlacing())},j._bindFitEvents=function(a){function b(){d++,2==d&&c.dispatchEvent("fitComplete",null,[a])}var c=this,d=0;a.once("layout",b),this.once("layoutComplete",b)},j.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&(this.options.shiftPercentResize?this.resizeShiftPercentLayout():this.layout())},j.needsResizeLayout=function(){var b=a(this.element),c=this._getOption("horizontal")?"innerHeight":"innerWidth";return b[c]!=this.size[c]},j.resizeShiftPercentLayout=function(){var b=this._getItemsForLayout(this.items),c=this._getOption("horizontal"),d=c?"y":"x",e=c?"height":"width",f=c?"rowHeight":"columnWidth",g=c?"innerHeight":"innerWidth",h=this[f];if(h=h&&h+this.gutter){this._getMeasurements();var i=this[f]+this.gutter;b.forEach(function(a){var b=Math.round(a.rect[d]/h);a.rect[d]=b*i})}else{var j=a(this.element)[g]+this.gutter,k=this.packer[e];b.forEach(function(a){a.rect[d]=a.rect[d]/k*j})}this.shiftLayout()},j.itemDragStart=function(a){if(this.isEnabled){this.stamp(a);var b=this.getItem(a);b&&(b.enablePlacing(),b.showDropPlaceholder(),this.dragItemCount++,this.updateShiftTargets(b))}},j.updateShiftTargets=function(a){this.shiftPacker.reset(),this._getBoundingRect();var b=this._getOption("originLeft"),d=this._getOption("originTop");this.stamps.forEach(function(a){var e=this.getItem(a);if(!e||!e.isPlacing){var f=this._getElementOffset(a),g=new c({x:b?f.left:f.right,y:d?f.top:f.bottom});this._setRectSize(a,g),this.shiftPacker.placed(g)}},this);var e=this._getOption("horizontal"),f=e?"rowHeight":"columnWidth",g=e?"height":"width";this.shiftTargetKeys=[],this.shiftTargets=[];var h,i=this[f];if(i=i&&i+this.gutter){var j=Math.ceil(a.rect[g]/i),k=Math.floor((this.shiftPacker[g]+this.gutter)/i);h=(k-j)*i;for(var l=0;k>l;l++)this._addShiftTarget(l*i,0,h)}else h=this.shiftPacker[g]+this.gutter-a.rect[g],this._addShiftTarget(0,0,h);var m=this._getItemsForLayout(this.items),n=this._getPackMethod();m.forEach(function(a){var b=a.rect;this._setRectSize(a.element,b),this.shiftPacker[n](b),this._addShiftTarget(b.x,b.y,h);var c=e?b.x+b.width:b.x,d=e?b.y:b.y+b.height;if(this._addShiftTarget(c,d,h),i)for(var f=Math.round(b[g]/i),j=1;f>j;j++){var k=e?c:b.x+i*j,l=e?b.y+i*j:d;this._addShiftTarget(k,l,h)}},this)},j._addShiftTarget=function(a,b,c){var d=this._getOption("horizontal")?b:a;if(!(0!==d&&d>c)){var e=a+","+b,f=-1!=this.shiftTargetKeys.indexOf(e);f||(this.shiftTargetKeys.push(e),this.shiftTargets.push({x:a,y:b}))}},j.shift=function(a,b,c){var d,e=1/0,f={x:b,y:c};this.shiftTargets.forEach(function(a){var b=h(a,f);e>b&&(d=a,e=b)}),a.rect.x=d.x,a.rect.y=d.y};var k=120;j.itemDragMove=function(a,b,c){function d(){f.shift(e,b,c),e.positionDropPlaceholder(),f.layout()}var e=this.isEnabled&&this.getItem(a);if(e){b-=this.size.paddingLeft,c-=this.size.paddingTop;var f=this,g=new Date;this._itemDragTime&&g-this._itemDragTime<k?(clearTimeout(this.dragTimeout),this.dragTimeout=setTimeout(d,k)):(d(),this._itemDragTime=g)}},j.itemDragEnd=function(a){function b(){d++,2==d&&(c.element.classList.remove("is-positioning-post-drag"),c.hideDropPlaceholder(),e.dispatchEvent("dragItemPositioned",null,[c]))}var c=this.isEnabled&&this.getItem(a);if(c){clearTimeout(this.dragTimeout),c.element.classList.add("is-positioning-post-drag");var d=0,e=this;c.once("layout",b),this.once("layoutComplete",b),c.moveTo(c.rect.x,c.rect.y),this.layout(),this.dragItemCount=Math.max(0,this.dragItemCount-1),this.sortItemsByPosition(),c.disablePlacing(),this.unstamp(c.element)}},j.bindDraggabillyEvents=function(a){this._bindDraggabillyEvents(a,"on")},j.unbindDraggabillyEvents=function(a){this._bindDraggabillyEvents(a,"off")},j._bindDraggabillyEvents=function(a,b){var c=this.handleDraggabilly;a[b]("dragStart",c.dragStart),a[b]("dragMove",c.dragMove),a[b]("dragEnd",c.dragEnd)},j.bindUIDraggableEvents=function(a){this._bindUIDraggableEvents(a,"on")},j.unbindUIDraggableEvents=function(a){this._bindUIDraggableEvents(a,"off")},j._bindUIDraggableEvents=function(a,b){var c=this.handleUIDraggable;a[b]("dragstart",c.start)[b]("drag",c.drag)[b]("dragstop",c.stop)};var l=j.destroy;return j.destroy=function(){l.apply(this,arguments),this.isEnabled=!1},i.Rect=c,i.Packer=d,i}),function(a,b){"function"==typeof define&&define.amd?define(["isotope-layout/js/layout-mode","packery/js/packery"],b):"object"==typeof module&&module.exports?module.exports=b(require("isotope-layout/js/layout-mode"),require("packery")):b(a.Isotope.LayoutMode,a.Packery)}(window,function(a,b){var c=a.create("packery"),d=c.prototype,e={_getElementOffset:!0,_getMeasurement:!0};for(var f in b.prototype)e[f]||(d[f]=b.prototype[f]);var g=d._resetLayout;d._resetLayout=function(){this.packer=this.packer||new b.Packer,this.shiftPacker=this.shiftPacker||new b.Packer,g.apply(this,arguments)};var h=d._getItemLayoutPosition;d._getItemLayoutPosition=function(a){return a.rect=a.rect||new b.Rect,h.call(this,a)};var i=d.needsResizeLayout;d.needsResizeLayout=function(){return this._getOption("horizontal")?this.needsVerticalResizeLayout():i.call(this)};var j=d._getOption;return d._getOption=function(a){return"horizontal"==a?void 0!==this.options.isHorizontal?this.options.isHorizontal:this.options.horizontal:j.apply(this.isotope,arguments)},c});(function(i){'use strict';i.fn.avia_masonry=function(a){if(!this.length){return this};var s=i('body'),e=i(window),n=i.avia_utilities.isMobile,l=i.avia_utilities.isTouchDevice,r=s.hasClass('avia-mobile-no-animations'),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),d=o.find('.av-masonry-sort a'),r=o.find('.av-current-sort-title');d.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){var s=i.avia_utilities.supports('transition'),o=n&&r?0:100;a.each(function(n){var r=i(this),l=r.find('.avia-curtain-reveal-overlay');if(l.length>0){o=500;l.on('animationstart',function(i){r.css({visibility:'visible'})});l.on('animationend',function(a){i(this).remove()})};setTimeout(function(){if(s===!1){r.css({visibility:'visible',opacity:0}).animate({opacity:1},1500)}
else{r.addClass('av-masonry-item-loaded');l.addClass('avia_start_delayed_animation')};if(n==a.length-1&&typeof t=='function'){t.call();e.trigger('av-height-change')}},(o*n))})},loadMore:function(a){a.preventDefault();if(o){return!1};o=!0;var l=i(this),n=l.data(),r=l.parents('.av-masonry').eq(0),f=r.data('post_id'),c=r.find('.av-masonry-container'),u=r.find('.av-masonry-entry'),d=i.avia_utilities.loading(),v=function(){o=!1;d.hide();s.trigger('av_resize_finished')};if('undefined'!=typeof f){n.post_id=f};if(!n.offset){n.offset=0};n.offset+=n.items;n.action='avia_ajax_masonry_more';n.loaded=[];u.each(function(){var a=i(this).data('av-masonry-item');if(a){n.loaded.push(a)}});i.ajax({url:avia_framework_globals.ajaxurl,type:'POST',data:n,beforeSend:function(){d.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>n.items){o=o.not(o.last())}
else{l.addClass('av-masonry-no-more-items')};o.find('.avia-animate-admin-preview').removeClass('avia-animate-admin-preview');if(o.find('.avia-curtain-reveal-overlay').length>0){o.css({visibility:'hidden'})};var s=i('<div class="loadcontainer"></div>').append(o);i.avia_utilities.preload({container:s,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();d.hide();c.isotope('insert',o);i.avia_utilities.avia_ajax_call(r);setTimeout(function(){t.show_bricks(o,v)},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{v()}},error:v,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'),s=a.find('.av-masonry-sort').css({visibility:'visible',opacity:0}).on('click','a',t.masonry_filter),l=a.find('.av-masonry-load-more').css({visibility:'visible',opacity:0});if(o.find('.avia-curtain-reveal-overlay').length>0){o.css({visibility:'hidden'})};i.avia_utilities.preload({container:e,single_callback:function(){var d=function(){s.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(){l.css({opacity:1}).on('click',t.loadMore)})};if(n&&r){d()}
else{a.waypoint(d,{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(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,u=i('.av-frame-top').height(),b=i('.av-burger-menu-main'),o=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)},h=function(n,v){var h=this.offset().top,l=n.offset().top,o=e.scrollTop(),i=a,s=!1;if(b.is(':visible')){this.css({top:'auto',position:'absolute'});s=!1;return};if(t.length){i+=t.outerHeight()+parseInt(t.css('margin-top'),10)};if(u){i+=u};if(o+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',o);o();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(h.bind(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(window['wp']&&wp.hooks){i=wp.hooks.applyFilters('aviaCookieConsent_allow_continue',i)};let allow_class=i?'avia-video-cookie-allowed':'avia-video-cookie-not-allowed';e('html').addClass(allow_class);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.options={};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.isTouchDevice=i.avia_utilities.isTouchDevice;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.defaults={interval:5,autoplay:!0,loop_autoplay:'endless'};i.AviaccordionSlider.prototype={_init:function(t){var e=this;this.options=this._setOptions(t);i.avia_utilities.preload({container:this.$slider,single_callback:function(){e._kickOff()}})},_setOptions:function(t){var s=this.$slider.data('slideshow-options');if('object'==typeof s){var e=i.extend({},i.AviaccordionSlider.defaults,t,s);return e};var e=i.extend({},i.AviaccordionSlider.defaults,t,this.$slider.data());return e},_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){if(i.options.loop_autoplay=='once'){clearInterval(i.autoplay);i.options.autoplay=!1;i.autoplay=!1;return};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 i=this.isMobile?'click':'mouseenter';this.$slider.on(i,'.aviaccordion-slide',this._move.bind(this));this.$slider.on('mouseleave','.aviaccordion-inner',this._move.bind(this));this.$win.on('debouncedresize',this._calcMovement.bind(this));this.$slider.on('av-prev av-next',this._moveTo.bind(this));if(this.isMobile||this.isTouchDevice){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 u=this.$slider.height(),f=(u/l)*110;this.$slider.css({'max-height':f});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,e){this.$slider=i(e);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.isTouchDevice=i.avia_utilities.isTouchDevice;this.mobile_no_animation=i('body').hasClass('avia-mobile-no-animations');this.options={};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',image_attachment:'scroll',parallax_enabled:!0};i.AviaFullscreenSlider.prototype={_init:function(t){var e=this,s=this.$slider.data('slideshow-options');this.options=i.extend(!0,{},i.AviaFullscreenSlider.defaults,t);if('object'==typeof s){this.options.height='undefined'!=typeof s.slide_height?s.slide_height:this.options.height;this.options.image_attachment='undefined'!=typeof s.image_attachment?s.image_attachment:this.options.image_attachment}
else{if(this.$slider.data('slide_height')){this.options.height=this.$slider.data('slide_height')};if(this.$slider.data('image_attachment')){this.options.image_attachment=this.$slider.data('image_attachment')}};this.options.parallax_enabled=this.options.image_attachment==''?!0:!1;this.$subtract=i(this.options.subtract);this._setSize();this.$win.on('debouncedresize',this._setSize.bind(this));setTimeout(function(){if(e.options.parallax_enabled){if(!e.isMobile||(e.isMobile&&!this.mobile_no_animation)){e.$win.on('scroll',e._on_scroll.bind(e))}}},100);this.$slider.aviaSlider({bg_slider:!0})},_on_scroll:function(i){var t=this;if(!t.ticking){t.ticking=!0;window.requestAnimationFrame(t._parallaxRequest.bind(t))}},_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 e=this.$win.height(),t=Math.ceil((e/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)},_parallaxRequest:function(i){var t=this;setTimeout(t._parallax_scroll.bind(t),0)},_parallax_scroll:function(t){if(!this.options.parallax_enabled){return};if(this.isMobile&&this.mobile_no_animation){return};var s=this.$win.scrollTop(),n=s+this.property.wh,e='0',a={};if(this.property.offset<s&&s<=this.property.offset+this.property.height){e=Math.round((s-this.property.offset)*0.3)};if(this.scrollPos!=e){this.scrollPos=e;if(this.transform3d){a[i.avia_utilities.supported.transition+'transform']='translate3d(0px,'+e+'px,0px)'}
else{a[i.avia_utilities.supported.transition+'transform']='translate(0px,'+e+'px)'};this.$inner.css(a)};this.ticking=!1}};i.fn.aviaFullscreenSlider=function(t){return this.each(function(){var e=i.data(this,'aviaFullscreenSlider');if(!e){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(a){'use strict';a.fn.avia_sc_tab_section=function(){var t=a(window),v=a.avia_utilities.supports('transition'),n=this.browserPrefix!==!1?!0:!1,i=a.avia_utilities.isMobile,s=a.avia_utilities.isTouchDevice,l=a('body').hasClass('avia-mobile-no-animations'),o=document.documentElement.className.indexOf('avia_transform3d')!==-1?!0:!1,e={},r=['avia_animate_when_visible','avia_animate_when_almost_visible','av-animated-generic','av-animated-when-visible','av-animated-when-almost-visible','av-animated-when-visible-95'];return this.each(function(){var v=a(this),d=v.find('.av-section-tab-title'),b=v.find('.av-tab-section-outer-container'),C=v.find('.av-tab-section-tab-title-container'),oa=v.find('.av_tab_navigation'),x=v.find('.av-tabsection-arrow'),la=x.find('.av-tab-section-slide'),da=v.find('.av-slide-section-container-wrap'),p=v.find('.av-tabsection-slides-arrow'),ra=p.find('.av-tab-section-slide-content'),E=v.find('.av-tabsection-slides-dots'),va=E.find('.goto-slide'),h=v.find('.av-tab-section-inner-container'),ca=v.find('.av-animation-delay-container'),y=v.find('.av-layout-tab'),k=v.find('.av-layout-tab-inner'),I=v.is('.av-tab-content-auto'),N=v.hasClass('av-minimum-height'),f=null,g='1',O=1,u=0,m='none',c={animation:'av-tab-slide-transition',autoplay:!1,loop_autoplay:'once',interval:5,loop_manual:'manual-endless',autoplay_stopper:!1,noNavigation:!1},Q=b.data('slideshow-data'),D={},w=null;if('undefined'!=typeof Q){c=a.extend({},c,Q)};y.each(function(){var e=a(this),t=e.data('av-deeplink-tabs'),i=e.data('av-tab-section-content');if(t){D[t.toLowerCase()]=i}});g=v.find('.av-active-tab-title').data('av-tab-section-title');g='undefined'!=typeof g?g:'1';O=parseInt(g,10);f=v.find('[data-av-tab-section-content="'+g+'"]');f.addClass('__av_init_open av-active-tab-content');if('av-tab-slide-transition'==c.animation){m='slide_sidewards'}
else if('av-tab-slide-up-transition'==c.animation){m='slide_up'}
else if('av-tab-fade-transition'==c.animation){m='fade'};if('slide_up'==m){a.each(r,function(a,e){k.find('.'+e).addClass('avia_start_animation_when_active')})};var j=function(t,p){t.preventDefault();if(v.hasClass('av-is-slideshow')&&t.originalEvent!==undefined){return};var b=a(t.currentTarget),w=b.data('av-tab-section-title'),r=parseInt(w,10),k=f;d.removeClass('av-active-tab-title');k.removeClass('av-active-tab-content');b.removeClass('no-scroll');f=v.find('[data-av-tab-section-content="'+w+'"]');g=w;O=r;b.addClass('av-active-tab-title');f.addClass('av-active-tab-content');var s=((r-1)*-100);if(a('body').hasClass('rtl')){s=((r-1)*100)};T();if(['none','slide_sidewards'].indexOf(m)>=0){if(n){s=s/d.length;e['transform']=o?'translate3d('+s+'%, 0, 0)':'translate('+s+'%,0)';e['left']='0%';h.css(e)}
else{h.css('left',s+'%')}}
else if('slide_up'==m){y.css('opacity',1);if(n){var u=f.data('slide-top');if('undefined'==typeof u){u=0};e['transform']=o?'translate3d(0, -'+u+'px, 0)':'translate(0, -'+u+'px ,0)';e['left']='0';h.css(e)}
else{h.css('top','-'+s+'px')};y.filter(':not(.av-active-tab-content)').css('opacity',0)};L();ea(r);ta(r);if(!(p||c.autoplay)){var x=b.attr('href'),C=f.data('av-deeplink-tabs');if('undefined'!=typeof(C)&&''!=C){x=C};location.hash=x};setTimeout(function(){f.trigger('avia_start_animation_if_current_slide_is_active');if(!i||(i&&!l)){ca.not(f).trigger('avia_remove_animation')}},600)},aa=function(){u=0;d.each(function(){u+=a(this).outerWidth()});C.css('min-width',u)},T=function(){var d=v.hasClass('av-hide-tabs')?0:C.height(),s=d?C.outerHeight():0,i=0,u=0,l=0,e=0,o=0;if(N){var n=v.hasClass('av-minimum-height-custom')?v.data('av_minimum_height_px'):v.css('min-height');n=parseInt(n,10);if(!isNaN(n)){i=n};if(!i){N=!1}};if(!I){k.css('height','');h.css('min-height','');var c=y.first();u=c.outerHeight()-c.height();y.each(function(){var e=a(this),t=e.find('.av-layout-tab-inner');l=Math.max(l,t.height())});e=l+u;o=e+s;if(N){if(o<i){e=i-s;o=i}};h.css('min-height',e);h.css('height',e)}
else if(I&&N){e=i-s;o=i;h.css('min-height',e);h.css('height',e)};if(['none','slide_sidewards','fade'].indexOf(m)>=0){if(!f.length){return};if(I){k.height('auto');var p=f.find('.av-layout-tab-inner').height(),g=f.outerHeight(),w=g+d+100;b.css('max-height',w);k.height(p);k.css('overflow','hidden')};setTimeout(function(){t.trigger('av-height-change')},600);return};var r=0;y.each(function(){var e=a(this),i=e.find('.av-layout-tab-inner'),n=e.data('av-tab-section-content'),o=parseInt(n,10),t=e.outerHeight();e.data('slide-top',r);r+=t;if(I&&o==O){b.css('max-height',t+s);i.css('overflow','hidden')}})},L=function(){var o=v.find('.av-active-tab-title'),t=v.width(),e=(o.position().left*-1)-(o.outerWidth()/2)+(t/2);if(!a('body').hasClass('rtl')){if(t>=u){e=0};if(e+u<t){e=(u-t)*-1};if(e>0){e=0};C.css('left',e);var n=e!==0,s=e+u>t;M(n,s)}
else{var i=0;if(t<u){if(e+u>t){if(e>0){e=0};i=(e+u-t)*-1}};C.css('left','auto');C.css('right',i);var n=i+u>t,s=i!==0;M(n,s)}},M=function(a,e){if(a){x.addClass('av-visible-prev')}
else{x.removeClass('av-visible-prev')};if(e){x.addClass('av-visible-next')}
else{x.removeClass('av-visible-next')}},ea=function(a){if(a>1){p.addClass('av-visible-prev')}
else{p.removeClass('av-visible-prev')};if(a<d.length){p.addClass('av-visible-next')}
else{p.removeClass('av-visible-next')}},ta=function(a){E.find('a').removeClass('active');E.find('a').eq(a-1).addClass('active')},ia=function(a){if(c.noNavigation){return};W(a)},W=function(e){e.preventDefault();var i=a(e.currentTarget),t=v.find('.av-active-tab-title');if(v.hasClass('av-slideshow-section')){if(i.hasClass('av_prev_tab_section')){p.find('.av_prev_tab_section').trigger('click')}
else{p.find('.av_next_tab_section').trigger('click')};return};if(i.is('.av_prev_tab_section')){if(!a('body').hasClass('rtl')){t.prev('.av-section-tab-title').trigger('click')}
else{t.next('.av-section-tab-title').trigger('click')}}
else{if(!a('body').hasClass('rtl')){t.next('.av-section-tab-title').trigger('click')}
else{t.prev('.av-section-tab-title').trigger('click')}}},na=function(e){e.preventDefault();if(c.noNavigation&&e.originalEvent!==undefined){return};var n=a(e.currentTarget),s=v.find('.av-active-tab-title'),o=s.data('av-tab-section-title'),l=parseInt(o,10),i=0;if(n.hasClass('av_prev_tab_section')){i=!a('body').hasClass('rtl')?-1:1}
else{i=!a('body').hasClass('rtl')?1:-1};var t=l+i;if(t<=0||t>d.length){if('endless'!=c.loop_autoplay&&'manual-endless'!=c.loop_manual){return};t=t<=0?d.length:1};H();d.eq(t-1).trigger('click');q()},sa=function(e){e.preventDefault();var i=a(e.currentTarget);if(i.hasClass('active')){return};var n=i.attr('href').replace('#',''),t=parseInt(n,10);if(t>d.length){return};H();d.eq(t-1).trigger('click');q()},z=function(){var t=window.location.hash?window.location.hash:'',e=t.toLowerCase().replace('#',''),a=null;if('undefined'!=typeof(D[e])&&''!=D[e]){var i=D[e];a=d.filter('[data-av-tab-section-title="'+i+'"]')}
else{a=d.filter('[href="'+t+'"]')};if(a.length){if(!a.is('.active_tab')){a.trigger('click')}}
else{v.find('.av-active-tab-title').trigger('click',!0)}},H=function(){if(typeof w==='number'){clearTimeout(w)};w=null},q=function(){if(!v.hasClass('av-slideshow-section')){return};if(!0!==c.autoplay){b.removeClass('av-slideshow-autoplay').addClass('av-slideshow-manual')};if('undefined'==typeof c.loop_autoplay||'endless'!=c.loop_autoplay){c.loop_autoplay='once'};if('undefined'==typeof c.interval){c.interval=5};if('undefined'==typeof c.autoplay||!0!==c.autoplay){c.autoplay=!1;b.removeClass('av-slideshow-autoplay').addClass('av-slideshow-manual');return};H();w=setTimeout(function(){P()},c.interval*1000)},P=function(){var n=v.find('.av-active-tab-title'),s=n.data('av-tab-section-title'),e=parseInt(s,10),i=!1,t=0;w=null;if('endless'==c.loop_autoplay){if(!a('body').hasClass('rtl')){t=e<d.length?e+1:1}
else{t=e>1?e-1:d.length}}
else{if(!a('body').hasClass('rtl')){i=e==d.length;t=e+1}
else{i=e==1;t=e-1};if(i){c.autoplay=!1;c.loop_autoplay='manual';b.removeClass('av-slideshow-autoplay').addClass('av-slideshow-manual');b.removeClass('av-loop-endless').addClass('av-loop-once');return}};d.eq(t-1).trigger('click');w=setTimeout(function(){P()},c.interval*1000)};a.avia_utilities.preload({container:f,single_callback:function(){d.on('click',j);la.on('click',W);ra.on('click',na);va.on('click',sa);if(i||s){oa.on('click',ia)};t.on('debouncedresize',L);t.on('hashchange',z);t.on('debouncedresize av-content-el-height-changed',T);aa();T();z();q()}});if(i||s){if(!c.noNavigation){h.avia_swipe_trigger({prev:'.av_prev_tab_section',next:'.av_next_tab_section'})}};T()})}}(jQuery));(function(t){'use strict';t.fn.avia_sc_tabs=function(e){var a={heading:'.tab',content:'.tab_content',active:'active_tab',sidebar:!1};var i=t(window),e=t.extend(a,e);return this.each(function(){var a=t(this),c=t('<div class="tab_titles" role="tablist"></div>').prependTo(a),n=t(e.heading,a),r=t(e.content,a),o=!1,d=!1;o=n.clone();d=n.addClass('fullsize-tab').attr({'aria-hidden':!0,'aria-selected':!1,id:'',role:'','aria-controls':'',tabindex:0});n=o;n.prependTo(c).each(function(e){var a=t(this),i=!1;if(o){i=d.eq(e)};a.addClass('tab_counter_'+e).attr({tab_counter:e}).on('click',function(){l(a,e,i);return!1});a.on('keydown',function(t){if(t.keyCode===13){a.trigger('click')}});if(o){i.on('click',function(){l(i,e,a);return!1});i.on('keydown',function(t){if(t.keyCode===13){i.trigger('click')}})}});s();f(!1);i.on('debouncedresize',s);t('a').on('click',function(){var e=t(this).attr('href');if(typeof e!='undefined'&&e){e=e.replace(/^.*?#/,'');f('#'+e)}});function s(){if(!e.sidebar){return};r.css({'min-height':c.outerHeight()+1})};function l(n,l,o){if(!n.is('.'+e.active)){t('.'+e.active,a).removeClass(e.active).attr({'aria-selected':!1,tabindex:0});t('.'+e.active+'_content',a).removeClass(e.active+'_content').attr('aria-hidden',!0);n.addClass(e.active).attr({'aria-selected':!0,tabindex:0});var s=n.data('fake-id');if(typeof s=='string'){window.location.replace(s)};if(o){o.addClass(e.active)};var d=r.eq(l).addClass(e.active+'_content').attr('aria-hidden',!1);if(typeof click_container!='undefined'&&click_container.length){sidebar_shadow.height(d.outerHeight())};var c=d.offset().top,f=c-50-parseInt(t('html').css('margin-top'),10);if(i.scrollTop()>c){t('html:not(:animated),body:not(:animated)').scrollTop(f)}};i.trigger('av-content-el-height-changed',n)};function f(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('.active_tab')){e.trigger('click')};window.scrollTo(0,a.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_padding:!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 i={single:'.single_toggle',heading:'.toggler',content:'.toggle_wrap',sortContainer:'.taglist'};var a=t(window),e=t.extend(i,e);return this.each(function(){var i=t(this).addClass('enable_toggles'),l=t(e.single,i),n=t(e.heading,i),h=t(e.content,i),s=t(e.sortContainer+' a',i),o=t('#av-admin-preview'),d='',r='';n.each(function(g){var l=t(this),s=l.hasClass('av-title-below')?l.prev(e.content,i):l.next(e.content,i),c=parseInt(l.data('slide-speed'));c=isNaN(c)?200:c;function f(){var e=s.offset().top,i=e-50-parseInt(t('html').css('margin-top'),10);if(a.scrollTop()>e){t('html:not(:animated),body:not(:animated)').animate({scrollTop:i},c)}};if(s.css('visibility')!='hidden'){l.addClass('activeTitle').attr('style',d)};l.on('keydown',function(t){if(t.keyCode===13||t.keyCode===32){l.trigger('click')}});l.on('click',function(){if(s.css('visibility')!='hidden'){s.slideUp(c,function(){s.removeClass('active_tc').attr({style:''});a.trigger('av-height-change');a.trigger('av-content-el-height-changed',this);if(o.length==0){location.replace(l.data('fake-id')+'-closed')}});l.removeClass('activeTitle').attr('style',r)}
else{if(i.is('.toggle_close_all')){h.not(s).slideUp(c,function(){t(this).removeClass('active_tc').attr({style:''});f()});n.removeClass('activeTitle').attr('style',r)};s.addClass('active_tc');setTimeout(function(){s.slideDown(c,function(){if(!i.is('.toggle_close_all')){f()};a.trigger('av-height-change');a.trigger('av-content-el-height-changed',this)})},1);l.addClass('activeTitle').attr('style',d);if(o.length==0){location.replace(l.data('fake-id'))}}})});s.on('click',function(e){e.preventDefault();var a=l.filter('[data-tags~="'+t(this).data('tag')+'"]'),i=l.not('[data-tags~="'+t(this).data('tag')+'"]');s.removeClass('activeFilter');t(this).addClass('activeFilter');n.filter('.activeTitle').trigger('click');a.slideDown();i.slideUp()});function c(){n.each(function(a){let $heading=t(this),title_open=$heading.attr('data-title-open'),title=$heading.attr('data-title'),aria_collapsed=$heading.attr('data-aria_collapsed'),aria_expanded=$heading.attr('data-aria_expanded'),content=$heading.hasClass('av-title-below')?$heading.prev(e.content,i):$heading.next(e.content,i),titleHasHtml=!1,currentTitle=$heading.contents()[0].data;if(!title){title='***'};if(!aria_collapsed){aria_collapsed='Expand Toggle'};if(!aria_expanded){aria_expanded='Collapse Toggle'};titleHasHtml=title.indexOf('<')>=0;if(content.css('visibility')!='hidden'){if(title_open&&!titleHasHtml&&currentTitle!=title_open){$heading.contents()[0].data=title_open};$heading.attr('aria-expanded','true');$heading.attr('aria-label',aria_expanded);content.attr({'aria-hidden':'false',tabindex:0})}
else{if(title_open&&!titleHasHtml&&currentTitle!=title){$heading.contents()[0].data=title};$heading.attr('aria-expanded','false');$heading.attr('aria-label',aria_collapsed);content.attr({'aria-hidden':'true',tabindex:-1})}});setTimeout(function(){c()},150)};function g(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,i.offset().top-70)}};c();g(!1);t('a').on('click',function(){var e=t(this).attr('href');if(typeof e!='undefined'&&e){e=e.replace(/^.*?#/,'');g('#'+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'),e=!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')){e=!1}
else{if(!document.cookie.match(/aviaPrivacyRefuseCookiesHideBar/)){e=!1}
else if(!document.cookie.match(/aviaPrivacyEssentialCookiesEnabled/)){e=!1}
else if(document.cookie.match(/aviaPrivacyVideoEmbedsDisabled/)){e=!1}}};if(window['wp']&&wp.hooks){e=wp.hooks.applyFilters('aviaCookieConsent_allow_continue',e)};var a=n.parents('.av-lazyload-video-embed');if(a.hasClass('avia-video-lightbox')&&a.hasClass('avia-video-standard-html')){e=!0};if(!e){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(),o='';if(a.hasClass('avia-video-lightbox')){o=a.find('a.lightbox-link');if(o.length==0){a.append(s);setTimeout(function(){o=a.find('a.lightbox-link');if(i('html').hasClass('av-default-lightbox')){o.addClass('lightbox-added').magnificPopup(i.avia_utilities.av_popup);o.trigger('click')}
else{o.trigger('avia-open-video-in-lightbox')}},100)}
else{o.trigger('click')}}
else{a.html(s)}});i('.av-lazyload-immediate .av-click-to-play-overlay').trigger('click')}(jQuery));(function(e){'use strict';e(function(){e.avia_utilities=e.avia_utilities||{};if('undefined'==typeof e.avia_utilities.isMobile){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(window).trigger('resize')});e.avia_utilities=e.avia_utilities||{};function i(){var m=e('#header'),u=e('#main .av-logo-container'),h=e('#avia-menu'),l=e('.av-burger-menu-main a'),a=e('html').eq(0),n=e('<div class="av-burger-overlay" role="menu" aria-orientation="vertical"></div>'),p=e('<div class="av-burger-overlay-scroll"></div>').appendTo(n),g=e('<div class="av-burger-overlay-inner"></div>').appendTo(p),k=e('<div class="av-burger-overlay-bg"></div>').appendTo(n),r=!1,v={},b=e('.av-logo-container .inner-container'),C=b.find('.main_menu'),d=a.is('.html_av-submenu-display-click.html_av-submenu-clone, .html_av-submenu-display-hover.html_av-submenu-clone'),y=!1,T=0;if(!a.hasClass('html_av-submenu-hidden')){a.addClass('html_av-submenu-visible')};var f=e('#avia_alternate_menu');if(f.length>0){h=f};var c=function(){if(e.avia_utilities.isMobile){p.outerHeight(window.innerHeight)}},o=function(i,u){if(!i){return};var c,s,t,r,v,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')};v=t.find('.avia_mega_div > .sub-menu > li.menu-item');var i=t.find('>a'),c=!0;if(i.length){if(i.get(0).hash=='#'||'undefined'==typeof i.attr('href')||i.attr('href')=='#'){if(r.length>0||v.length>0){c=!1}}};s=i.clone(c).attr('style','');if('undefined'==typeof i.attr('href')){s.attr('href','#')};a=e('<li>').append(s);a.attr('role','menuitem');var l=[];if('undefined'!=typeof t.attr('class')){l=t.attr('class').split(/\s+/);e.each(l,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(l,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(d&&(s.get(0).hash!='#'&&s.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(v.length){n=e('<ul class="sub-menu">').appendTo(a);if(d&&(s.get(0).hash!='#'&&s.attr('href')!='#')){a.clone(!0).prependTo(n)};v.each(function(i){var v=e(this),t=v.find('> .sub-menu'),s=v.find('> .mega_menu_title'),c=s.find('a').attr('href')||'#',r=t.length>0?t.find('>li'):null,f=!1,l=a.find('>a'),m='';if((r===null)||(r.length==0)){if(c=='#'){m=' style="display: none;"'}};if(i==0)a.addClass('av-width-submenu').find('>a').append('<span class="av-submenu-indicator">');if(s.length&&s.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="'+c+'"><span class="avia-bullet"></span><span class="avia-menu-text">'+s.text()+'</span></a>').insertBefore(n);l=a.find('>a');if(d&&(t.length>0)&&(l.length&&l.get(0).hash!='#'&&l.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)})}});l.trigger('avia_burger_list_created');return c},s,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 t={};e(document).on('touchstart','.av-burger-overlay-scroll',function(e){t.Y=e.originalEvent.touches[0].clientY});e(document).on('touchend','.av-burger-overlay-scroll',function(e){t={}});e(document).on('touchmove','.av-burger-overlay-scroll',function(i){if(!t.Y){t.Y=i.originalEvent.touches[0].clientY};var l=i.originalEvent.touches[0].clientY-t.Y,a=this,n=a.scrollTop,r=a.scrollHeight,o=n+a.offsetHeight,s=l>0?'up':'down';e('body').get(0).scrollTop=t.body;if(n<=0){if(s=='up'){i.preventDefault()}}
else if(o>=r){if(s=='down'){i.preventDefault()}}});e(window).on('debouncedresize',function(n){var s=!0;if(e.avia_utilities.isMobile&&a.hasClass('av-mobile-menu-switch-portrait')&&a.hasClass('html_text_menu_active')){var t=e(window).height(),o=e(window).width();if(o<=t){a.removeClass('html_burger_menu')}
else{var r=a.hasClass('html_mobile_menu_phone')?768:990;if(t<r){a.addClass('html_burger_menu');s=!1}
else{a.removeClass('html_burger_menu')}}};if(s&&i&&i.length){if(!l.is(':visible')){i.filter('.is-active').parents('a').eq(0).trigger('click')}};c()});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, .html_av-submenu-visible').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(C.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+'-'+T++)};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)};l=e('.av-burger-menu-main a')}());l.on('click',function(t){if(r){return};i=e(this).find('.av-hamburger'),r=!0;if(!y){y=!0;i.addClass('av-inserted-main-menu');s=e('<ul>').attr({id:'av-burger-menu-ul',class:'','aria-haspopup':'true','aria-controls':'menu2'});var d=h.find('> li:not(.menu-item-avia-special)'),f=o(d,s);s.find('.noMobile').remove();s.appendTo(g);v=g.find('#av-burger-menu-ul > li');if(e.fn.avia_smoothscroll){e('a[href*="#"]',n).avia_smoothscroll(n)}};if(i.is('.is-active')){i.removeClass('is-active');a.removeClass('av-burger-overlay-active-delayed');n.animate({opacity:0},function(){n.css({display:'none'});a.removeClass('av-burger-overlay-active');r=!1})}
else{c();var l=u.length?u.outerHeight()+u.position().top:m.outerHeight()+m.position().top;n.appendTo(e(t.target).parents('.avia-menu'));s.css({padding:(l)+'px 0px'});v.removeClass('av-active-burger-items');i.addClass('is-active');a.addClass('av-burger-overlay-active');n.css({display:'block'}).animate({opacity:1},function(){r=!1});setTimeout(function(){a.addClass('av-burger-overlay-active-delayed')},100);v.each(function(i){var a=e(this);setTimeout(function(){a.addClass('av-active-burger-items')},(i+1)*125)})};t.preventDefault()})}})(jQuery);(function(t){'use strict';t.avia_utilities=t.avia_utilities||{};t(function(){if(t.fn.avia_parallax){t('.av-parallax,.av-parallax-object').avia_parallax()}});var i=function(i,e){if(!(this.transform||this.transform3d)){return};this.options=t.extend({},i);this.win=t(window);this.body=t('body');this.isMobile=t.avia_utilities.isMobile,this.winHeight=this.win.height();this.winWidth=this.win.width();this.el=t(e).addClass('active-parallax');this.objectType=this.el.hasClass('av-parallax-object')?'object':'background-image';this.elInner=this.el;this.elBackgroundParent=this.el.parent();this.elParallax=this.el.data('parallax')||{};this.direction='';this.speed=0.5;this.elProperty={};this.ticking=!1,this.isTransformed=!1;if(t.avia_utilities.supported.transition===undefined){t.avia_utilities.supported.transition=t.avia_utilities.supports('transition')};this._init(i)};i.prototype={mediaQueries:{'av-mini-':'(max-width: 479px)','av-small-':'(min-width: 480px) and (max-width: 767px)','av-medium-':'(min-width: 768px) and (max-width: 989px)','av-desktop-':'(min-width: 990px)'},transform:document.documentElement.className.indexOf('avia_transform')!==-1,transform3d:document.documentElement.className.indexOf('avia_transform3d')!==-1,mobileNoAnimation:t('body').hasClass('avia-mobile-no-animations'),defaultSpeed:0.5,defaultDirections:['bottom_top','left_right','right_left','no_parallax'],transformCSSProps:['transform','-webkit-transform','-moz-transform','-ms-transform','-o-transform'],matrixDef:[1,0,0,1,0,0],matrix3dDef:[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],_init:function(){var t=this;if(typeof this.el.data('parallax-selector')!='undefined'&&this.el.data('parallax-selector')!==''){this.elInner=this.el.find(this.el.data('parallax-selector'));if(this.elInner.length==0){this.elInner=this.el}};if('background-image'==this.objectType){if(this.isMobile&&this.mobileNoAnimation){return};this.elParallax.parallax='bottom_top';this.elParallax.parallax_speed=parseFloat(this.el.data('avia-parallax-ratio'))||0.5};setTimeout(function(){t._fetchProperties()},30);this.win.on('debouncedresize av-height-change',t._fetchProperties.bind(t));this.body.on('av_resize_finished',t._fetchProperties.bind(t));setTimeout(function(){t.win.on('scroll',t._onScroll.bind(t))},100)},_setParallaxProps:function(){if('background-image'==this.objectType){this.direction=this.elParallax.parallax;this.speed=this.elParallax.parallax_speed;return};var e=this.elParallax.parallax||'',s=this.elParallax.parallax_speed||'',i='',a='',r='all';if(this.defaultDirections.indexOf(e)<0){e='no_parallax'};if(typeof window.matchMedia=='function'){t.each(this.mediaQueries,function(t,i){var e=window.matchMedia(i);if(e.matches){r=t;return!1}})};if('all'==r){this.direction=e;this.speed=''==s?this.defaultSpeed:parseFloat(s)/100.0;return};i=this.elParallax[r+'parallax']||'';a=this.elParallax[r+'parallax_speed']||'';if('inherit'==i){i=e;a=s};if(this.defaultDirections.indexOf(i)<0){i='no_parallax'};this.direction=i;this.speed=''==a?this.defaultSpeed:parseFloat(a)/100.0},_getTranslateObject:function(e){var i={type:'',matrix:[],x:0,y:0,z:0};t.each(this.transformCSSProps,function(t,s){var r=e.css(s);if('string'!=typeof r||'none'==r){return};if(r.indexOf('matrix')>=0){var a=r.match(/matrix.*\((.+)\)/)[1].split(', ');if(r.indexOf('matrix3d')>=0){i.type='3d';i.matrix=a;i.x=a[12];i.y=a[13];i.z=a[14]}
else{i.type='2d';i.matrix=a;i.x=a[4];i.y=a[5]};return!1}
else{i.type='';var n=r.match(/translateX\((-?\d+\.?\d*px)\)/);if(n){i.x=parseInt(n[1],10)};var l=r.match(/translateY\((-?\d+\.?\d*px)\)/);if(l){i.y=parseInt(l[1],10)}}});return i},_getTranslateMatrix:function(i,r){var s='';t.each(r,function(t,e){i[t]=e});if(this.transform3d){var e=this.matrix3dDef.slice(0);switch(i.type){case'2d':e[0]=i.matrix[0];e[1]=i.matrix[1];e[4]=i.matrix[2];e[5]=i.matrix[3];e[12]=i.x;e[13]=i.y;break;case'3d':e=i.matrix.slice(0);e[12]=i.x;e[13]=i.y;e[14]=i.z;break;default:e[12]=i.x;e[13]=i.y;break};s='matrix3d('+e.join(', ')+')'}
else if(this.transform){var a=this.matrixDef.slice(0);switch(i.type){case'2d':a=i.matrix.slice(0);a[4]=i.x;a[5]=i.y;break;case'3d':a[0]=i.matrix[0];a[1]=i.matrix[1];a[2]=i.matrix[4];a[3]=i.matrix[5];a[4]=i.x;a[5]=i.y;break;default:a[4]=i.x;a[5]=i.y;break};s='matrix('+a.join(', ')+')'};return s},_fetchProperties:function(){this._setParallaxProps();this.el.css(t.avia_utilities.supported.transition+'transform','');this.winHeight=this.win.height();this.winWidth=this.win.width();if('background-image'==this.objectType){this.elProperty.top=this.elBackgroundParent.offset().top;this.elProperty.height=this.elBackgroundParent.outerHeight();this.el.height(Math.ceil((this.winHeight*Math.abs(this.speed))+this.elProperty.height))}
else{this.elProperty.top=this.elInner.offset().top;this.elProperty.left=this.elInner.offset().left;this.elProperty.height=this.elInner.outerHeight();this.elProperty.width=this.elInner.outerWidth();this.elProperty.bottom=this.elProperty.top+this.elProperty.height;this.elProperty.right=this.elProperty.left+this.elProperty.width;this.elProperty.distanceLeft=this.elProperty.right;this.elProperty.distanceRight=this.winWidth-this.elProperty.left};this.elProperty.translateObj=this._getTranslateObject(this.el);this._parallaxScroll()},_onScroll:function(t){var i=this;if(!i.ticking){i.ticking=!0;window.requestAnimationFrame(i._parallaxRequest.bind(i))}},_inViewport:function(t,i,e,a,r,s,l,n){return!(t>s+10||e<r-10||a>n+10||i<l-10)},_parallaxRequest:function(t){var i=this;setTimeout(i._parallaxScroll.bind(i),0)},_parallaxScroll:function(i){if(('no_parallax'==this.direction||''==this.direction)&&!this.isTransformed){this.ticking=!1;return};var l=this.win.scrollTop(),o=this.win.scrollLeft(),d=o+this.winWidth,s=l+this.winHeight,e=0,a='';if('background-image'==this.objectType){if(this.elProperty.top<s&&l<=this.elProperty.top+this.elProperty.height){e=Math.ceil((s-this.elProperty.top)*this.speed);a=this._getTranslateMatrix(this.elProperty.translateObj,{y:e});this.el.css(t.avia_utilities.supported.transition+'transform',a)};this.ticking=!1;return};if(('no_parallax'==this.direction||''==this.direction)){a=this._getTranslateMatrix(this.elProperty.translateObj,{x:0,y:0});this.el.css(t.avia_utilities.supported.transition+'transform',a);this.ticking=!1;this.isTransformed=!1;return};var x=Math.ceil(this.elProperty.top-l),p=Math.ceil(s-this.elProperty.top),n=0,h=0,r={x:0,y:0};if(this.elProperty.top<this.winHeight){h=Math.ceil(this.winHeight-this.elProperty.top)};if(this.elProperty.top>s){n=0;p=0}
else{n=1-(x+h)/this.winHeight};switch(this.direction){case'bottom_top':e=Math.ceil((p-h)*this.speed);r.y=-e;a=this._getTranslateMatrix(this.elProperty.translateObj,{y:-e});break;case'left_right':e=Math.ceil(this.elProperty.distanceRight*n*this.speed);r.x=e;a=this._getTranslateMatrix(this.elProperty.translateObj,{x:e});break;case'right_left':e=Math.ceil(this.elProperty.distanceLeft*n*this.speed);r.x=-e;a=this._getTranslateMatrix(this.elProperty.translateObj,{x:-e});break;default:break};var f=this._inViewport(this.elProperty.top,this.elProperty.right,this.elProperty.bottom,this.elProperty.left,l,s,o,d),c=this._inViewport(this.elProperty.top+r.y,this.elProperty.right+r.x,this.elProperty.bottom+r.y,this.elProperty.left+r.x,l,s,o,d);if(f||c){this.el.css(t.avia_utilities.supported.transition+'transform',a)};this.ticking=!1;this.isTransformed=!0}};t.fn.avia_parallax=function(e){return this.each(function(){var a=t(this),r=a.data('aviaParallax');if(!r){r=a.data('aviaParallax',new i(e,this))}})}})(jQuery);'use strict';var avia_js_shortcodes=avia_js_shortcodes||{};var aviaJS=aviaJS||{};(function(){if(!avia_js_shortcodes.aviaFoldUnfoldSection){class avFoldUnfoldSection{container=null;id='';settings={};button=[];foldContainer=[];folded=!1;preview=!1;innerDimension={};textblock=[];multiColumsTextblock=!1;gridRow=[];colorSection=[];column=[];constructor(container){this.container=container;this.container.avFoldUnfoldSection=this;this.id=container.getAttribute('id');this.init()};init(){this.settings=JSON.parse(this.container.dataset.fold_unfold);this.preview=document.getElementById('av-admin-preview')!=null;this.moveIntoFoldContainer();if(!this.button.length||!this.foldContainer.length||this.checkMissingInnerContainers()){return};if(this.isNested()){this.container.classList.remove('avia-fold-init');this.foldContainer[0].classList.remove('unfolded','folded');this.foldContainer[0].style['max-height']='unset';this.button[0].remove();return};this.foldContainer[0].style['max-height']=this.settings.height+'px';this.foldContainer[0].classList.add('folded');this.foldContainer[0].classList.remove('unfolded');this.folded=!0;this.container.classList.add('avia-fold-init-done');this.getMaxHeight();this.foldChanged();this.bindEvents();this.container.classList.remove('avia-fold-init')};moveIntoFoldContainer(){if(this.container.hasChildNodes()){let children=this.container.childNodes;for(const child of children){if(child.classList){if(child.classList.contains('av-fold-unfold-container')){this.foldContainer[0]=child};if(child.classList.contains('av-fold-button-wrapper')){const btn=child.getElementsByClassName('av-fold-button-container');if(btn.length){this.button[0]=btn[0]}}}}};let move=null;if(this.settings.context=='avia_sc_text'){let el=this.foldContainer[0].nextSibling;while(el){if(el.classList&&el.classList.contains('avia_textblock')){move=el;break};el=el.nextSibling}}
else if(this.settings.context=='avia_sc_columns'){let el=this.foldContainer[0].nextSibling;this.column=this.foldContainer[0].getElementsByClassName('av-fold-unfold-inner');if(this.column.length){while(el){if(el.classList&&el.classList.contains('av-fold-button-wrapper')){el=el.nextSibling}
else{const next=el.nextSibling;this.column[0].append(el);el=next}}}}
else{const el=this.container.nextSibling;if(el){move=el}};if(move){this.foldContainer[0].append(move)}};checkMissingInnerContainers(){let retVal=!1;switch(this.settings.context){case'avia_sc_text':this.textblock=this.container.getElementsByClassName('avia_textblock');if(this.textblock.length==0){retVal=!0}
else{this.multiColumsTextblock=this.textblock[0].classList.contains('av_multi_colums')};break;case'avia_sc_grid_row':this.gridRow=this.container.getElementsByClassName('av-layout-grid-container');if(this.gridRow.length==0){retVal=!0};break;case'avia_sc_section':this.colorSection=this.container.getElementsByClassName('avia-section');if(this.colorSection.length==0){retVal=!0};break;case'avia_sc_columns':if(!this.column[0].childNodes.length){retVal=!0};break;default:retVal=!0};return retVal};isNested(){const parent=this.container.parentElement;if(null==parent){return!1};let closest=parent.closest('.avia-fold-unfold-section');if(closest==parent){closest=null};return closest!=null};bindEvents(){this.container.addEventListener('transitionend',this.onTransitionEnd.bind(this));this.container.addEventListener('webkitTransitionEnd',this.onTransitionEnd.bind(this));this.button[0].addEventListener('click',this.onClickFoldUnfold.bind(this));window.addEventListener('avia_fold_unfold_changed',this.onFoldUnfoldChanged.bind(this));window.addEventListener('resize',aviaJS.aviaJSHelpers.debounce(this.onResize.bind(this),200))};getMaxHeight(){switch(this.settings.context){case'avia_sc_text':this.innerDimension=this.textblock[0].getBoundingClientRect();break;case'avia_sc_grid_row':this.innerDimension=this.gridRow[0].getBoundingClientRect();break;case'avia_sc_section':this.innerDimension=this.colorSection[0].getBoundingClientRect();break;case'avia_sc_columns':this.innerDimension=this.column[0].getBoundingClientRect();break}};foldChanged(){let btnText='',btnLink='';if(this.folded){this.foldContainer[0].style['max-height']=this.settings.height+'px';btnText=this.settings.more;btnLink='#'}
else{this.getMaxHeight();this.foldContainer[0].style['max-height']=Math.ceil(this.innerDimension.height)+200+'px';btnText=this.settings.less;btnLink+='#'+this.id};this.button[0].setAttribute('href',btnLink);this.button[0].textContent=btnText;this.triggerHeightChange()};onClickFoldUnfold(event){event.preventDefault();event.stopPropagation();if(this.foldContainer[0].classList.contains('folded')){this.foldContainer[0].classList.remove('folded');this.foldContainer[0].classList.add('unfolded');this.folded=!1}
else{this.foldContainer[0].classList.remove('unfolded');this.foldContainer[0].classList.add('folded');this.folded=!0};this.foldChanged();let obj=this;setTimeout(function(){const opt={'bubbles':!0,'cancelable':!0,detail:{caller:obj}};const event=new CustomEvent('avia_fold_unfold_changed',opt);obj.container.dispatchEvent(event)},500)};onTransitionEnd(event){this.container.classList.remove('avia-fold-init-done');this.triggerHeightChange()};onResize(event){this.foldChanged()};onFoldUnfoldChanged(event){this.foldChanged()};triggerHeightChange(){const opt={'bubbles':!0,'cancelable':!0};const event=new CustomEvent('avia_height_change',opt);window.dispatchEvent(event)}};avia_js_shortcodes.aviaFoldUnfoldSection=function(t){return new avFoldUnfoldSection(t)};aviaJS.aviaPlugins.register(avia_js_shortcodes.aviaFoldUnfoldSection,'.avia-fold-unfold-section')}})();
/*! Magnific Popup - v1.3 - 2022-09-14
* http://dimsemenov.com/plugins/magnific-popup/
* Copyright (c) 2016 Dmitry Semenov; */
!function(e){var t,i,n,o,r,a,s="Close",l="BeforeClose",c="MarkupParse",d="Open",p="Change",u="mfp",f="."+u,m="mfp-ready",g="mfp-removing",v="mfp-prevent-close",h=function(){},y=!!window.jQuery,C=e(window),b=function(e,i){t.ev.on(u+e+f,i)},w=function(t,i,n,o){var r=document.createElement("div");return r.className="mfp-"+t,n&&(r.innerHTML=n),o?i&&i.appendChild(r):(r=e(r),i&&r.appendTo(i)),r},I=function(e,i){t.ev.triggerHandler(u+e,i),t.st.callbacks&&(e=e.charAt(0).toLowerCase()+e.slice(1),t.st.callbacks[e]&&t.st.callbacks[e].apply(t,Array.isArray(i)?i:[i]))},x=function(i){return i===a&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),a=i),t.currTemplate.closeBtn},k=function(){e.magnificPopup.instance||((t=new h).init(),e.magnificPopup.instance=t)};h.prototype={constructor:h,init:function(){var i=navigator.appVersion;t.isLowIE=t.isIE8=document.all&&!document.addEventListener,t.isAndroid=/android/gi.test(i),t.isIOS=/iphone|ipad|ipod/gi.test(i),t.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}(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),n=e(document),t.popupsCache={}},open:function(i){var o;if(!1===i.isObj){t.items=i.items.toArray(),t.index=0;var a,s=i.items;for(o=0;o<s.length;o++)if((a=s[o]).parsed&&(a=a.el[0]),a===i.el[0]){t.index=o;break}}else t.items=Array.isArray(i.items)?i.items:[i.items],t.index=i.index||0;if(!t.isOpen){t.types=[],r="",i.mainEl&&i.mainEl.length?t.ev=i.mainEl.eq(0):t.ev=n,i.key?(t.popupsCache[i.key]||(t.popupsCache[i.key]={}),t.currTemplate=t.popupsCache[i.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,i),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=w("bg").on("click"+f,(function(){t.close()})),t.wrap=w("wrap").attr("tabindex",-1).on("click"+f,(function(e){t._checkIfClose(e.target)&&t.close()})),t.container=w("container",t.wrap)),t.contentContainer=w("content"),t.st.preloader&&(t.preloader=w("preloader",t.container,t.st.tLoading));var l=e.magnificPopup.modules;for(o=0;o<l.length;o++){var p=l[o];p=p.charAt(0).toUpperCase()+p.slice(1),t["init"+p].call(t)}I("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(b(c,(function(e,t,i,n){i.close_replaceWith=x(n.type)})),r+=" mfp-close-btn-in"):t.wrap.append(x())),t.st.alignTop&&(r+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:C.scrollTop(),position:"absolute"}),(!1===t.st.fixedBgPos||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:n.height(),position:"absolute"}),t.st.enableEscapeKey&&n.on("keyup"+f,(function(e){27===e.keyCode&&t.close()})),C.on("resize"+f,(function(){t.updateSize()})),t.st.closeOnContentClick||(r+=" mfp-auto-cursor"),r&&t.wrap.addClass(r);var u=t.wH=C.height(),g={};if(t.fixedContentPos&&t._hasScrollBar(u)){var v=t._getScrollbarSize();v&&(g.marginRight=v)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):g.overflow="hidden");var h=t.st.mainClass;return t.isIE7&&(h+=" mfp-ie7"),h&&t._addClassToMFP(h),t.updateItemHTML(),I("BuildControls"),e("html").css(g),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout((function(){t.content?(t._addClassToMFP(m),t._setFocus()):t.bgOverlay.addClass(m),n.on("focusin"+f,t._onFocusIn)}),16),t.isOpen=!0,t.updateSize(u),I(d),i}t.updateItemHTML()},close:function(){t.isOpen&&(I(l),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(g),setTimeout((function(){t._close()}),t.st.removalDelay)):t._close())},_close:function(){I(s);var i=g+" "+m+" ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(i+=t.st.mainClass+" "),t._removeClassFromMFP(i),t.fixedContentPos){var o={marginRight:""};t.isIE7?e("body, html").css("overflow",""):o.overflow="",e("html").css(o)}n.off("keyup.mfp focusin"+f),t.ev.off(f),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&!0!==t.currTemplate[t.currItem.type]||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t.st.autoFocusLast&&t._lastFocusedEl&&e(t._lastFocusedEl).trigger("focus"),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,I("AfterClose")},updateSize:function(e){if(t.isIOS){var i=document.documentElement.clientWidth/window.innerWidth,n=window.innerHeight*i;t.wrap.css("height",n),t.wH=n}else t.wH=e||C.height();t.fixedContentPos||t.wrap.css("height",t.wH),I("Resize")},updateItemHTML:function(){var i=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),i.parsed||(i=t.parseEl(t.index));var n=i.type;if(I("BeforeChange",[t.currItem?t.currItem.type:"",n]),t.currItem=i,!t.currTemplate[n]){var r=!!t.st[n]&&t.st[n].markup;I("FirstMarkupParse",r),t.currTemplate[n]=!r||e(r)}o&&o!==i.type&&t.container.removeClass("mfp-"+o+"-holder");var a=t["get"+n.charAt(0).toUpperCase()+n.slice(1)](i,t.currTemplate[n]);t.appendContent(a,n),i.preloaded=!0,I(p,i),o=i.type,t.container.prepend(t.contentContainer),I("AfterChange")},appendContent:function(e,i){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&!0===t.currTemplate[i]?t.content.find(".mfp-close").length||t.content.append(x()):t.content=e:t.content="",I("BeforeAppend"),t.container.addClass("mfp-"+i+"-holder"),t.contentContainer.append(t.content)},parseEl:function(i){var n,o=t.items[i];if(o.tagName?o={el:e(o)}:(n=o.type,o={data:o,src:o.src}),o.el){for(var r=t.types,a=0;a<r.length;a++)if(o.el.hasClass("mfp-"+r[a])){n=r[a];break}o.src=o.el.attr("data-mfp-src"),o.src||(o.src=o.el.attr("href"))}return o.type=n||t.st.type||"inline",o.index=i,o.parsed=!0,t.items[i]=o,I("ElementParse",o),t.items[i]},addGroup:function(e,i){var n=function(n){n.mfpEl=this,t._openClick(n,e,i)};i||(i={});var o="click.magnificPopup";i.mainEl=e,i.items?(i.isObj=!0,e.off(o).on(o,n)):(i.isObj=!1,i.delegate?e.off(o).on(o,i.delegate,n):(i.items=e,e.off(o).on(o,n)))},_openClick:function(i,n,o){if((void 0!==o.midClick?o.midClick:e.magnificPopup.defaults.midClick)||!(2===i.which||i.ctrlKey||i.metaKey||i.altKey||i.shiftKey)){var r=void 0!==o.disableOn?o.disableOn:e.magnificPopup.defaults.disableOn;if(r)if("function"==typeof r){if(!r.call(t))return!0}else if(C.width()<r)return!0;i.type&&(i.preventDefault(),t.isOpen&&i.stopPropagation()),o.el=e(i.mfpEl),o.delegate&&(o.items=n.find(o.delegate)),t.open(o)}},updateStatus:function(e,n){if(t.preloader){i!==e&&t.container.removeClass("mfp-s-"+i),n||"loading"!==e||(n=t.st.tLoading);var o={status:e,text:n};I("UpdateStatus",o),e=o.status,n=o.text,t.preloader.html(n),t.preloader.find("a").on("click",(function(e){e.stopImmediatePropagation()})),t.container.addClass("mfp-s-"+e),i=e}},_checkIfClose:function(i){if(!e(i).hasClass(v)){var n=t.st.closeOnContentClick,o=t.st.closeOnBgClick;if(n&&o)return!0;if(!t.content||e(i).hasClass("mfp-close")||t.preloader&&i===t.preloader[0])return!0;if(i===t.content[0]||e.contains(t.content[0],i)){if(n)return!0}else if(o&&e.contains(document,i))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?n.height():document.body.scrollHeight)>(e||C.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).trigger("focus")},_onFocusIn:function(i){if(i.target!==t.wrap[0]&&!e.contains(t.wrap[0],i.target))return t._setFocus(),!1},_parseMarkup:function(t,i,n){var o;n.data&&(i=e.extend(n.data,i)),I(c,[t,i,n]),e.each(i,(function(i,n){if(void 0===n||!1===n)return!0;if((o=i.split("_")).length>1){var r=t.find(f+"-"+o[0]);if(r.length>0){var a=o[1];"replaceWith"===a?r[0]!==n[0]&&r.replaceWith(n):"img"===a?r.is("img")?r.attr("src",n):r.replaceWith(e("<img>").attr("src",n).attr("class",r.attr("class"))):r.attr(o[1],n)}}else t.find(f+"-"+i).html(n)}))},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:h.prototype,modules:[],open:function(t,i){return k(),(t=t?e.extend(!0,{},t):{}).isObj=!0,t.index=i||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,i){i.options&&(e.magnificPopup.defaults[t]=i.options),e.extend(this.proto,i.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},e.fn.magnificPopup=function(i){k();var n=e(this);if("string"==typeof i)if("open"===i){var o,r=y?n.data("magnificPopup"):n[0].magnificPopup,a=parseInt(arguments[1],10)||0;r.items?o=r.items[a]:(o=n,r.delegate&&(o=o.find(r.delegate)),o=o.eq(a)),t._openClick({mfpEl:o},n,r)}else t.isOpen&&t[i].apply(t,Array.prototype.slice.call(arguments,1));else i=e.extend(!0,{},i),y?n.data("magnificPopup",i):n[0].magnificPopup=i,t.addGroup(n,i);return n};var T,_,z,P="inline",S=function(){z&&(_.after(z.addClass(T)).detach(),z=null)};e.magnificPopup.registerModule(P,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(P),b(s+"."+P,(function(){S()}))},getInline:function(i,n){if(S(),i.src){var o=t.st.inline,r=e(i.src);if(r.length){var a=r[0].parentNode;a&&a.tagName&&(_||(T=o.hiddenClass,_=w(T),T="mfp-"+T),z=r.after(_).detach().removeClass(T)),t.updateStatus("ready")}else t.updateStatus("error",o.tNotFound),r=e("<div>");return i.inlineElement=r,r}return t.updateStatus("ready"),t._parseMarkup(n,{},i),n}}});var E,O="ajax",M=function(){E&&e(document.body).removeClass(E)},B=function(){M(),t.req&&t.req.abort()};e.magnificPopup.registerModule(O,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push(O),E=t.st.ajax.cursor,b(s+"."+O,B),b("BeforeChange."+O,B)},getAjax:function(i){E&&e(document.body).addClass(E),t.updateStatus("loading");var n=e.extend({url:i.src,success:function(n,o,r){var a={data:n,xhr:r};I("ParseAjax",a),t.appendContent(e(a.data),O),i.finished=!0,M(),t._setFocus(),setTimeout((function(){t.wrap.addClass(m)}),16),t.updateStatus("ready"),I("AjaxContentAdded")},error:function(){M(),i.finished=i.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",i.src))}},t.st.ajax.settings);return t.req=e.ajax(n),""}}});var A,L=function(e){if(e.data&&void 0!==e.data.title)return e.data.title;var i=t.st.image.titleSrc;if(i){if("function"==typeof i)return i.call(t,e);if(e.el)return e.el.attr(i)||""}return""};e.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=t.st.image,n=".image";t.types.push("image"),b(d+n,(function(){"image"===t.currItem.type&&i.cursor&&e(document.body).addClass(i.cursor)})),b(s+n,(function(){i.cursor&&e(document.body).removeClass(i.cursor),C.off("resize"+f)})),b("Resize"+n,t.resizeImage),t.isLowIE&&b("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var i=0;t.isLowIE&&(i=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-i)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,A&&clearInterval(A),e.isCheckingImgSize=!1,I("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var i=0,n=e.img[0],o=function(r){A&&clearInterval(A),A=setInterval((function(){n.naturalWidth>0?t._onImageHasSize(e):(i>200&&clearInterval(A),3===++i?o(10):40===i?o(50):100===i&&o(500))}),r)};o(1)},getImage:function(i,n){var o=0,r=function(){i&&(i.img[0].complete?(i.img.off(".mfploader"),i===t.currItem&&(t._onImageHasSize(i),t.updateStatus("ready")),i.hasSize=!0,i.loaded=!0,I("ImageLoadComplete")):++o<200?setTimeout(r,100):a())},a=function(){i&&(i.img.off(".mfploader"),i===t.currItem&&(t._onImageHasSize(i),t.updateStatus("error",s.tError.replace("%url%",i.src))),i.hasSize=!0,i.loaded=!0,i.loadError=!0)},s=t.st.image,l=n.find(".mfp-img");if(l.length){var c=document.createElement("img");if(c.className="mfp-img",i.el&&i.el.find("img").length&&(c.alt=i.el.find("img").attr("alt")),i.img=e(c).on("load.mfploader",r).on("error.mfploader",a),c.src=i.src,e("body").hasClass("responsive-images-lightbox-support")){var d=i.el.data("srcset"),p=i.el.data("sizes");void 0!==d?(c.srcset=d,void 0!==p&&(c.sizes=p)):(void 0!==(d=i.el.find("img").attr("srcset"))&&(c.srcset=d),void 0!==(p=i.el.find("img").attr("sizes"))&&(c.sizes=p))}l.is("img")&&(i.img=i.img.clone()),(c=i.img[0]).naturalWidth>0?i.hasSize=!0:c.width||(i.hasSize=!1)}return t._parseMarkup(n,{title:L(i),img_replaceWith:i.img},i),t.resizeImage(),i.hasSize?(A&&clearInterval(A),i.loadError?(n.addClass("mfp-loading"),t.updateStatus("error",s.tError.replace("%url%",i.src))):(n.removeClass("mfp-loading"),t.updateStatus("ready")),n):(t.updateStatus("loading"),i.loading=!0,i.hasSize||(i.imgHidden=!0,n.addClass("mfp-loading"),t.findImageSize(i)),n)}}});var H;e.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 e,i=t.st.zoom,n=".zoom";if(i.enabled&&t.supportsTransition){var o,r,a=i.duration,c=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),n="all "+i.duration/1e3+"s "+i.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},r="transition";return o["-webkit-"+r]=o["-moz-"+r]=o["-o-"+r]=o[r]=n,t.css(o),t},d=function(){t.content.css("visibility","visible")};b("BuildControls"+n,(function(){if(t._allowZoom()){if(clearTimeout(o),t.content.css("visibility","hidden"),!(e=t._getItemToZoom()))return void d();(r=c(e)).css(t._getOffset()),t.wrap.append(r),o=setTimeout((function(){r.css(t._getOffset(!0)),o=setTimeout((function(){d(),setTimeout((function(){r.remove(),e=r=null,I("ZoomAnimationEnded")}),16)}),a)}),16)}})),b(l+n,(function(){if(t._allowZoom()){if(clearTimeout(o),t.st.removalDelay=a,!e){if(!(e=t._getItemToZoom()))return;r=c(e)}r.css(t._getOffset(!0)),t.wrap.append(r),t.content.css("visibility","hidden"),setTimeout((function(){r.css(t._getOffset())}),16)}})),b(s+n,(function(){t._allowZoom()&&(d(),r&&r.remove(),e=null)}))}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(i){var n,o=(n=i?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem)).offset(),r=parseInt(n.css("padding-top"),10),a=parseInt(n.css("padding-bottom"),10);o.top-=e(window).scrollTop()-r;var s={width:n.width(),height:(y?n.innerHeight():n[0].offsetHeight)-a-r};return void 0===H&&(H=void 0!==document.createElement("p").style.MozTransform),H?s["-moz-transform"]=s.transform="translate("+o.left+"px,"+o.top+"px)":(s.left=o.left,s.top=o.top),s}}});var F="iframe",j=function(e){if(t.currTemplate[F]){var i=t.currTemplate[F].find("iframe");i.length&&(e||(i[0].src="//about:blank"),t.isIE8&&i.css("display",e?"block":"none"))}};e.magnificPopup.registerModule(F,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push(F),b("BeforeChange",(function(e,t,i){t!==i&&(t===F?j():i===F&&j(!0))})),b(s+"."+F,(function(){j()}))},getIframe:function(i,n){var o=i.src,r=t.st.iframe;e.each(r.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 a={};return r.srcAction&&(a[r.srcAction]=o),t._parseMarkup(n,a,i),t.updateStatus("ready"),n}}});var N=function(e){var i=t.items.length;return e>i-1?e-i:e<0?i+e:e},W=function(e,t,i){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,i)};e.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 i=t.st.gallery,o=".mfp-gallery";if(t.direction=!0,!i||!i.enabled)return!1;r+=" mfp-gallery",b(d+o,(function(){i.navigateByImgClick&&t.wrap.on("click"+o,".mfp-img",(function(){if(t.items.length>1)return t.next(),!1})),n.on("keydown"+o,(function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()}))})),b("UpdateStatus"+o,(function(e,i){i.text&&(i.text=W(i.text,t.currItem.index,t.items.length))})),b(c+o,(function(e,n,o,r){var a=t.items.length;o.counter=a>1?W(i.tCounter,r.index,a):""})),b("BuildControls"+o,(function(){if(t.items.length>1&&i.arrows&&!t.arrowLeft){var n=i.arrowMarkup,o=t.arrowLeft=e(n.replace(/%title%/gi,i.tPrev).replace(/%dir%/gi,"left")).addClass(v),r=t.arrowRight=e(n.replace(/%title%/gi,i.tNext).replace(/%dir%/gi,"right")).addClass(v);o.on("click",(function(){t.prev()})),r.on("click",(function(){t.next()})),t.container.append(o.add(r))}})),b(p+o,(function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout((function(){t.preloadNearbyImages(),t._preloadTimeout=null}),16)})),b(s+o,(function(){n.off(o),t.wrap.off("click"+o),t.arrowRight=t.arrowLeft=null}))},next:function(){t.direction=!0,t.index=N(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=N(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,i=t.st.gallery.preload,n=Math.min(i[0],t.items.length),o=Math.min(i[1],t.items.length);for(e=1;e<=(t.direction?o:n);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?n:o);e++)t._preloadItem(t.index-e)},_preloadItem:function(i){if(i=N(i),!t.items[i].preloaded){var n=t.items[i];if(n.parsed||(n=t.parseEl(i)),I("LazyLoad",n),"image"===n.type&&(n.img=e('<img class="mfp-img" />').on("load.mfploader",(function(){n.hasSize=!0})).on("error.mfploader",(function(){n.hasSize=!0,n.loadError=!0,I("LazyLoadError",n)})).attr("src",n.src),e("body").hasClass("responsive-images-lightbox-support")&&n.el.length>0)){var o=e(n.el[0]),r=o.data("srcset"),a=o.data("sizes");if(void 0!==r)n.img.attr("srcset",r),void 0!==a&&n.img.attr("sizes",a);else{var s=e(n.el[0]).find("img");void 0!==(r=s.attr("srcset"))&&n.img.attr("srcset",r),void 0!==(a=s.attr("sizes"))&&n.img.attr("sizes",a)}}n.preloaded=!0}}}});var R="retina";e.magnificPopup.registerModule(R,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,(function(e){return"@2x"+e}))},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,i=e.ratio;(i=isNaN(i)?i():i)>1&&(b("ImageHasSize."+R,(function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/i,width:"100%"})})),b("ElementParse."+R,(function(t,n){n.src=e.replaceSrc(n,i)})))}}}}),k()}(jQuery);(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:e('html').hasClass('av-default-lightbox-no-scroll'),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 t=e.match(/(https?:\/\/)?(www.)?(player.)?vimeo.com\/([a-z]*\/)*([0-9]{6,11})\/(\w{6,11})[?]?.*/),a,i;t=t?t:e.match(/(https?:\/\/)?(www.)?(player.)?vimeo.com\/([a-z]*\/)*([0-9]{6,11})[?]?.*/);if(!t||!t[5]){return null};i=t[5];a=e.split('?');a=a[1]?'?'+a[1]:'';if(t[6]){i=i+(a?a+'&h=':'?h=')+t[6]}
else{i=i+a};return i},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};if(this.st.el&&this.st.el.data('custom_class')){const elementCustomClass=this.st.el.data('custom_class').trim();if(elementCustomClass){this.st.mainClass=this.st.mainClass+' '+elementCustomClass}}},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'))};this.wrap.avia_swipe_trigger({prev:'.mfp-arrow-left',next:'.mfp-arrow-right'})},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"], .pagination a'},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(i){'use strict';i(function(){if(i.fn.aviaMegamenu){i('.main_menu .menu').aviaMegamenu({modify_position:!0})}});i.fn.aviaMegamenu=function(n){var e={modify_position:!0,delay:300};var t=i.extend(e,n);return this.each(function(){var f=i('html').first(),g=i('#main .container').first(),l=f.filter('.html_menu_left, .html_logo_center').length,r=i.avia_utilities.isMobile,o=i(this),s=o.find('>li:not(.ignore_menu)'),n=s.find('>div').parent().css({overflow:'hidden'}),d=o.find('>.current-menu-item>a, >.current_page_item>a'),h=s.find('>ul').parent(),p=o.parent(),m=o.parents('.main_menu').eq(0),v=p.width(),e={},a=[];if(!d.length){o.find('.current-menu-ancestor, .current_page_ancestor').eq(0).find('a').eq(0).parent().addClass('active-parent-item')};if(!f.is('.html_header_top')){t.modify_position=!1};s.on('click','a',function(i){if(this.href==window.location.href+'#'||this.href==window.location.href+'/#'){i.preventDefault()}});s.each(function(){var n=i(this),a=n.position(),o=n.find('div').first().css({opacity:0,display:'none'}),s='';if(!o.length){s=n.find('>ul').css({display:'none'})};if(o.length||s.length){var e=n.addClass('dropdown_ul_available').find('>a');e.append('<span class="dropdown_available"></span>');if(typeof e.attr('href')!='string'||e.attr('href')=='#'){e.css('cursor','default').on('click',function(i){i.preventDefault()})}};if(t.modify_position&&o.length){n.on('mouseenter focusin',function(){y(n,a,o,v)})}});function y(i,t,n,e){t=i.position();if(!l){if(t.left+n.width()<e){n.css({right:-n.outerWidth()+i.outerWidth()})}
else if(t.left+n.width()>e){n.css({right:-m.outerWidth()+(t.left+i.outerWidth())})}}
else{if(n.width()>t.left+i.outerWidth()){n.css({left:(t.left*-1)})}
else if(t.left+n.width()>e){n.css({left:(n.width()-t.left)*-1})}}};function c(i){if(e[i]==!0){var t=n.eq(i).css({overflow:'visible'}).find('div').first(),o=n.eq(i).find('a').first();a['check'+i]=!0;t.stop().css('display','block').animate({opacity:1},300);if(t.length){o.addClass('open-mega-a')}}};function u(t){if(e[t]==!1){n.eq(t).find('>a').removeClass('open-mega-a');var o=n.eq(t),s=o.find('div').first();s.stop().css('display','block').animate({opacity:0},300,function(){i(this).css('display','none');o.css({overflow:'hidden'});a['check'+t]=!1})}};if(r){n.each(function(n){i(this).on('click',function(){if(a['check'+n]!=!0){return!1}})})};n.each(function(n){i(this).on('mouseenter',function(){e[n]=!0;setTimeout(function(){c(n)},t.delay)}).on('mouseleave',function(){e[n]=!1;setTimeout(function(){u(n)},t.delay)});i(this).find('a').on('focus',function(){e[n]=!0;setTimeout(function(){c(n)},50)}).on('blur',function(){e[n]=!1;setTimeout(function(){u(n)},50)})});h.find('li').addBack().each(function(){var t=i(this),n=t.find('ul').first(),o=!1;if(n.length){n.css({display:'block',opacity:0,visibility:'hidden'});var e=t.find('>a');e.on('mouseenter',function(){n.stop().css({visibility:'visible'}).animate({opacity:1})});e.on('focus',function(){n.stop().css({visibility:'visible'}).animate({opacity:1});n.find('li').on('focusin',function(){n.stop().css({visibility:'visible'}).animate({opacity:1})}).on('focusout',function(){n.stop().animate({opacity:0},function(){n.css({visibility:'hidden'})})})}).on('focusout',function(){i(this).trigger('mouseleave')});t.on('mouseleave',function(){n.stop().animate({opacity:0},function(){n.css({visibility:'hidden'})})})}})})}})(jQuery);(function(e){'use strict';e(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 o=e(window),i=e('.html_header_top.html_header_sticky #header'),r=e('.av_header_unstick_top');if(!i.length&&!r.length){return};var v=e('#header_main .container .logo img, #header_main .container .logo svg, #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(),g=e.avia_utilities.isMobile,p=e('#scroll-top-link'),h=i.is('.av_header_transparency'),s=i.is('.av_header_shrinking'),c=i.data('av_shrink_factor'),l=n/2.0,f=n/2.0,m=i.find('#header_meta'),u=m.length?m.outerHeight():0,d=function(){var e=o.scrollTop(),d=0,c=e;if(r){e-=u};if(e<0){e=0};if(s&&!g){if(e<l){d=n-e;if(e<=0){d=n};a(i,'remove','header-scrolled')}
else{d=f;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'});v.css({'maxHeight':d+'px'})};if(r.length){if(e<=0){if(c<=0){c=0};r.css({'margin-top':'-'+c+'px'})}
else{r.css({'margin-top':'-'+u+'px'})}};if(h){if(e>50){a(i,'remove','av_header_transparency')}
else{a(i,'add','av_header_transparency')}}};if(typeof c!='undefined'){const value=parseInt(c);if(!isNaN(value)){l=n*(value/100.0);f=n-l}};if(e('body').is('.avia_deactivate_menu_resize')){s=!1};if(!h&&!s&&!r.length){return};o.on('debouncedresize',function(){n=e(t).attr('style','').first().height();d()});o.on('scroll',function(){window.requestAnimationFrame(d)});d()}})(jQuery);(function(n){'use strict';var r=null,a=null,t=null,i=null,e=null;n(function(){r=n(window);a=n('body');if(a.hasClass('av-curtain-footer')){o();return};return});function o(){i=a.find('.av-curtain-footer-container');if(i.length==0){a.removeClass('av-curtain-footer av-curtain-activated av-curtain-numeric av-curtain-screen');return};t=n('<div id="av-curtain-footer-placeholder"></div>');i.before(t);if(a.hasClass('av-curtain-numeric')){e=i.data('footer_max_height');if('undefined'==typeof e){e=70}
else{e=parseInt(e,10);if(isNaN(e)){e=70}}};u();r.on('debouncedresize',u)};function u(){var n=Math.floor(i.outerHeight()),o=r.innerHeight();if(null==e){t.css({height:n+'px'})}
else{var u=Math.floor(o*(e/100.0));if(n>u){a.removeClass('av-curtain-activated');t.css({height:''})}
else{a.addClass('av-curtain-activated');t.css({height:n+'px'})}}}})(jQuery);(function(t){'use strict';t(function(){t('.avia_auto_toc').each(function(){var f=t(this).attr('id'),r='h1',c=[],e='',i=t(this).find('.avia-toc-container');if(i.length){var n=i.attr('data-level'),o=i.attr('data-exclude');if(typeof n!='undefined'){r=n};if(typeof o!='undefined'){e=o.trim()}};c=r.split(',');t('.entry-content-wrapper').find(r).each(function(){var r=t(this);if(r.hasClass('av-no-toc')){return};if(e!=''&&(r.hasClass(e)||r.parent().hasClass(e))){return};var n=r.attr('id'),l=r.prop('tagName').toLowerCase(),f=r.text(),h=c.indexOf(l);if(typeof n=='undefined'){var o=a(f);r.attr('id',o);n=o};var s='<a href="#'+n+'" class="avia-toc-link avia-toc-level-'+h+'"><span>'+f+'</span></a>';i.append(s)});t('.avia-toc-smoothscroll .avia-toc-link').on('click',function(a){a.preventDefault();var r=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(r).offset().top-e})})})});function a(t){return t.toLowerCase().replace(/[^a-z0-9]+/g,'-').replace(/^-+|-+$/g,'-').replace(/^-+|-+$/g,'')}})(jQuery);(function(e){'use strict';var t=e('.has-background, .has-text-color');t.each(function(s){var t=e(this);if(!(t.hasClass('has-background')||t.hasClass('has-text-color'))){return};var o=t.attr('class').split(/\s+/),a='',r='';if(t.hasClass('has-background')){e.each(o,function(s,e){e=e.trim().toLowerCase();if(0==e.indexOf('has-col-')&&-1!=e.indexOf('-background-color')){a=e.replace('has-col-','');a=a.replace('-background-color','');a=a.replace(/-|[^0-9a-fA-F]/g,'');if(a.length==3||a.length==6){t.css({'background-color':'','border-color':''});r='undefined'!=typeof t.attr('style')?t.attr('style')+';':'';t.attr('style',r+' background-color: #'+a+'; border-color: #'+a+';')}}})};if(t.hasClass('has-text-color')){e.each(o,function(s,e){e=e.trim().toLowerCase();if(0==e.indexOf('has-col-')&&-1==e.indexOf('-background-color')&&-1!=e.indexOf('-color')){var a=e.replace('has-col-','');a=a.replace('-color','');a=a.replace(/-|[^0-9a-fA-F]/g,'');if(a.length==3||a.length==6){t.css('color','');r='undefined'!=typeof t.attr('style')?t.attr('style')+';':'';t.attr('style',r+' color: #'+a+';')}}})}});t=e('[class^="has-fs-"], [class$="-font-size"]');t.each(function(t){var a=e(this),s=a.attr('class').split(/\s+/);e.each(s,function(t,e){e=e.trim().toLowerCase();if(0==e.indexOf('has-fs-')&&-1!=e.indexOf('-font-size')){e=e.replace('has-fs-','');e=e.replace('-font-size','');e=e.split('-');if(e.length!=2){return};var s='undefined'!=typeof a.attr('style')?a.attr('style')+';':'';a.attr('style',s+' font-size:'+e[0]+e[1]+';')}})})})(jQuery);'use strict';(function(a){var i=null,s=function(){if('undefined'==typeof window.av_google_map||'undefined'==typeof avia_framework_globals){return};if(i!=null){return};i=this;this.document=a(document);this.script_loading=!1;this.script_loaded=!1;this.script_source=avia_framework_globals.gmap_avia_api;this.maps={};this.loading_icon_html='<div class="ajax_load"><span class="ajax_load_inner"></span></div>';this.LoadAviaMapsAPIScript()};s.prototype={LoadAviaMapsAPIScript:function(){this.maps=a('body').find('.avia-google-map-container');if(this.maps.length==0){return};var o=!1;this.maps.each(function(i){var s=a(this);if(s.hasClass('av_gmaps_show_unconditionally')||s.hasClass('av_gmaps_show_delayed')){o=!0;return!1}});if(!o){return};var e=a('html').hasClass('av-cookies-needs-opt-in')||a('html').hasClass('av-cookies-can-opt-out'),i=!0,t=a('html').hasClass('av-cookies-user-silent-accept');if(e&&!t){if(!document.cookie.match(/aviaCookieConsent/)||a('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(/aviaPrivacyGoogleMapsDisabled/)){i=!1}}};if(window['wp']&&wp.hooks){i=wp.hooks.applyFilters('aviaCookieConsent_allow_continue',i)};if(!i){a('.av_gmaps_main_wrap').addClass('av-maps-user-disabled');return};if(typeof a.AviaMapsAPI!='undefined'){this.AviaMapsScriptLoaded();return};a('body').on('avia-google-maps-api-script-loaded',this.AviaMapsScriptLoaded.bind(this));this.script_loading=!0;var s=document.createElement('script');s.id='avia-gmaps-api-script';s.type='text/javascript';s.src=this.script_source;document.body.appendChild(s)},AviaMapsScriptLoaded:function(){this.script_loading=!1;this.script_loaded=!0;var i=this;this.maps.each(function(o){var s=a(this);if(s.hasClass('av_gmaps_show_page_only')){return};var e=s.data('mapid');if('undefined'==typeof window.av_google_map[e]){console.log('Map cannot be displayed because no info: '+e);return};if(s.hasClass('av_gmaps_show_unconditionally')){s.aviaMaps()}
else if(s.hasClass('av_gmaps_show_delayed')){var t=s.closest('.av_gmaps_main_wrap'),n=t.find('a.av_text_confirm_link');n.on('click',i.AviaMapsLoadConfirmed)}
else{console.log('Map cannot be displayed because missing display class: '+e)}})},AviaMapsLoadConfirmed:function(i){i.preventDefault();var s=a(this),o=s.closest('.av_gmaps_main_wrap').find('.avia-google-map-container');o.aviaMaps()}};a(function(){new s()})})(jQuery);