/* Minification failed. Returning unminified contents.
(16,1-6): run-time error JS1195: Expected expression: class
(16,35-36): run-time error JS1004: Expected ';': {
(16,301-302): run-time error JS1004: Expected ';': {
(16,307-308): run-time error JS1010: Expected identifier: {
(16,324-325): run-time error JS1004: Expected ';': :
(16,327-328): run-time error JS1195: Expected expression: =
(16,351-352): run-time error JS1010: Expected identifier: [
(16,356-358): run-time error JS1004: Expected ';': of
(16,359-365): run-time error JS1006: Expected ')': Object
(16,376-377): run-time error JS1004: Expected ';': )
(16,393-394): run-time error JS1004: Expected ';': {
(16,528-529): run-time error JS1004: Expected ';': {
(16,822-823): run-time error JS1004: Expected ';': {
(16,1246-1247): run-time error JS1004: Expected ';': {
(16,1600-1601): run-time error JS1004: Expected ';': {
(16,1630-1631): run-time error JS1004: Expected ';': {
(16,1663-1664): run-time error JS1004: Expected ';': {
(16,1731-1732): run-time error JS1004: Expected ';': {
(16,1845-1846): run-time error JS1004: Expected ';': {
(16,2402-2403): run-time error JS1014: Invalid character: `
(16,2404-2405): run-time error JS1014: Invalid character: \
(16,2404-2405): run-time error JS1195: Expected expression: \
(16,2410-2411): run-time error JS1193: Expected ',' or ')': $
(16,2415-2416): run-time error JS1014: Invalid character: \
(16,2415-2416): run-time error JS1195: Expected expression: \
(16,2421-2422): run-time error JS1014: Invalid character: `
(16,2422-2423): run-time error JS1004: Expected ';': )
(16,2537-2538): run-time error JS1014: Invalid character: `
(16,2540-2541): run-time error JS1006: Expected ')': {
(16,2543-2544): run-time error JS1014: Invalid character: `
(16,2544-2545): run-time error JS1195: Expected expression: )
(16,2592-2593): run-time error JS1010: Expected identifier: {
(16,2602-2603): run-time error JS1195: Expected expression: =
(16,2647-2648): run-time error JS1002: Syntax error: }
(16,2690-2691): run-time error JS1004: Expected ';': {
(16,2778-2779): run-time error JS1014: Invalid character: `
(16,2780-2781): run-time error JS1014: Invalid character: \
(16,2780-2781): run-time error JS1195: Expected expression: \
(16,2786-2787): run-time error JS1193: Expected ',' or ')': $
(16,2791-2792): run-time error JS1014: Invalid character: \
(16,2791-2792): run-time error JS1195: Expected expression: \
(16,2797-2798): run-time error JS1014: Invalid character: `
(16,2798-2799): run-time error JS1004: Expected ';': )
(16,2829-2830): run-time error JS1197: Too many errors. The file might not be a JavaScript file: .
(16,1846-1864): run-time error JS1018: 'return' statement outside of function: return this._links
(16,1732-1836): run-time error JS1018: 'return' statement outside of function: return e.end?this.formatTime(e.end):this.formatTime(new Date(e.start.getTime()+e.duration*this.msToMin))
(16,1664-1711): run-time error JS1018: 'return' statement outside of function: return e.toISOString().replace(/-|:|\.\d+/g,"")
(16,1631-1649): run-time error JS1018: 'return' statement outside of function: return this.ics(e)
(16,1601-1619): run-time error JS1018: 'return' statement outside of function: return this.ics(e)
(16,1307-1592): run-time error JS1018: 'return' statement outside of function: return encodeURI("data:text/calendar;charset=utf8,"+["BEGIN:VCALENDAR","VERSION:2.0","BEGIN:VEVENT","URL:"+document.URL,"DTSTART:"+(t||""),"DTEND:"+(i||""),"SUMMARY:"+(e.title||""),"DESCRIPTION:"+(e.description||""),"LOCATION:"+(e.address||""),"END:VEVENT","END:VCALENDAR"].join("\n"))
(16,1057-1239): run-time error JS1018: 'return' statement outside of function: return encodeURI(["http://calendar.yahoo.com/?v=60&view=d&type=20","&title="+(e.title||""),"&st="+s,"&dur="+(i||""),"&desc="+(e.description||""),"&in_loc="+(e.address||"")].join(""))
(16,589-813): run-time error JS1018: 'return' statement outside of function: return encodeURI(["https://www.google.com/calendar/render","?action=TEMPLATE","&text="+(e.title||""),"&dates="+(t||""),"/"+(i||""),"&details="+(e.description||""),"&location="+(e.address||""),"&sprop=&sprop=name:"].join(""))
 */
document.addEventListener("DOMContentLoaded", $(function () {
    $('.lazy').Lazy();
    var eventObserver = new MutationObserver(function () {
        $(window).trigger('scroll');
    });
    var events = $('.events__container')[0];
    if (events) {
        eventObserver.observe(events, { attributes: true, attributeFilter: ['style'] });
    }
    var news = $('.news__container')[0];
    if (news) {
        eventObserver.observe(news, { attributes: true, attributeFilter: ['style'] });
    }
}));
;
class AddToCalendar{constructor(e){this._options=Object.assign({selectors:{google:".googleCalendar",iCal:".iCalendar",outlook:".outlook"},data:{title:"My awesome eventTitle",start:new Date,duration:120,end:new Date,address:"",description:""}},e),this.msToMin=6e4,this.generateURLs()}validateOptions(){const{selectors:e,data:t}=this._options;for(const[e,i]of Object.entries(t));}generateURLs(){const e=this._options.data;this._links={google:this.google(e),yahoo:this.yahoo(e),iCal:this.ical(e),outlook:this.outlook(e)}}google(e){const t=this.formatTime(e.start),i=this.calculateEndTime(e);return encodeURI(["https://www.google.com/calendar/render","?action=TEMPLATE","&text="+(e.title||""),"&dates="+(t||""),"/"+(i||""),"&details="+(e.description||""),"&location="+(e.address||""),"&sprop=&sprop=name:"].join(""))}yahoo(e){const t=e.end?(e.end.getTime()-e.start.getTime())/this.msToMin:e.duration,i=(t<600?"0"+Math.floor(t/60):Math.floor(t/60)+"")+(t%60<10?"0"+t%60:t%60+""),s=this.formatTime(new Date(e.start-e.start.getTimezoneOffset()*this.msToMin))||"";return encodeURI(["http://calendar.yahoo.com/?v=60&view=d&type=20","&title="+(e.title||""),"&st="+s,"&dur="+(i||""),"&desc="+(e.description||""),"&in_loc="+(e.address||"")].join(""))}ics(e){const t=this.formatTime(e.start),i=this.calculateEndTime(e);return encodeURI("data:text/calendar;charset=utf8,"+["BEGIN:VCALENDAR","VERSION:2.0","BEGIN:VEVENT","URL:"+document.URL,"DTSTART:"+(t||""),"DTEND:"+(i||""),"SUMMARY:"+(e.title||""),"DESCRIPTION:"+(e.description||""),"LOCATION:"+(e.address||""),"END:VEVENT","END:VCALENDAR"].join("\n"))}ical(e){return this.ics(e)}outlook(e){return this.ics(e)}formatTime(e){return e.toISOString().replace(/-|:|\.\d+/g,"")}calculateEndTime(e){return e.end?this.formatTime(e.end):this.formatTime(new Date(e.start.getTime()+e.duration*this.msToMin))}render(){return this._links}}[Element.prototype,Document.prototype,DocumentFragment.prototype].forEach(function(e){e.hasOwnProperty("append")||Object.defineProperty(e,"append",{configurable:!0,enumerable:!0,writable:!0,value:function(){var e=Array.prototype.slice.call(arguments),t=document.createDocumentFragment();e.forEach(function(e){var i=e instanceof Node;t.appendChild(i?e:document.createTextNode(String(e)))}),this.appendChild(t)}})}),Element.prototype.hasClass=function(e){return this.classList?this.classList.contains(e):!!this.className.match(new RegExp(`(\\s|^)${e}(\\s|$)`))},Element.prototype.addClass=function(e){this.hasClass(e)||(this.classList?this.classList.add(e):this.className+=` ${e}`)},NodeList.prototype.addClass=function(e){const{length:t}=this;for(let i=0;i<t;i++)this[i].addClass(e)},Element.prototype.removeClass=function(e){if(this.hasClass(e))if(this.classList)this.classList.remove(e);else{const t=new RegExp(`(\\s|^)${e}(\\s|$)`);this.className=this.className.replace(t," ")}},NodeList.prototype.removeClass=function(e){const{length:t}=this;for(let i=0;i<t;i++)this[i].removeClass(e)},Element.prototype.toggleClass=function(e){this.hasClass(e)?this.removeClass(e):this.addClass(e)},NodeList.prototype.toggleClass=function(e){const{length:t}=this;for(let i=0;i<t;i++)this[i].toggleClass(e)},HTMLCollection.prototype.addClass=NodeList.prototype.addClass,HTMLCollection.prototype.removeClass=NodeList.prototype.removeClass,HTMLCollection.prototype.toggleClass=NodeList.prototype.toggleClass,Array.prototype.each=function(e){if("function"==typeof e){var t,i,s=this.length;for(t=0;t<s&&(!0===(i=e(this[t],t))||!1!==i);t++);}},NodeList.prototype.each=Array.prototype.each,HTMLCollection.prototype.each=Array.prototype.each,Element.prototype.getOffset=function(e,t){var i,s={l:0,t:0};for(i=this;i&&i!==e;i=i.offsetParent)s.l+=i.offsetLeft,s.t+=i.offsetTop,t&&("BODY"===i.tagName?(s.l-=window.scrollX||window.pageXOffset||document.body.scrollLeft||document.documentElement.scrollLeft||i.scrollLeft||0,s.t-=window.scrollY||window.pageYOffset||document.body.scrollTop||document.documentElement.scrollTop||i.scrollTop||0):(s.l-=i.scrollLeft,s.t-=i.scrollTop));return s},Element.prototype.addClass=function(e){var t,i=this;if(i.classList)i.classList.add(e);else{if(i.hasClass(e))return;(t=i.className.split(" ")).push(e),i.className=t.join(" ")}return i},NodeList.prototype.addClass=function(e){return this.each(function(t){t.addClass(e)}),this},HTMLCollection.prototype.addClass=NodeList.prototype.addClass,Element.prototype.hasClass=function(e){return this.classList?this.classList.contains(e):this.className.split(" ").indexOf(e)>=0},Element.prototype.removeClass=function(e){var t,i=this;if(i.classList)i.classList.remove(e);else{if(!i.hasClass(e))return;(t=i.className.split(" ")).splice(t.indexOf(e)),i.className=t.join(" ")}return i},NodeList.prototype.removeClass=function(e){return this.each(function(t){t.removeClass(e)}),this},HTMLCollection.prototype.removeClass=NodeList.prototype.removeClass,Element.prototype.addEvent=function(e,t,i){if("function"==typeof t){var s,n,r,o,a=this;a._event=a._event||{},r=(n=e.split("."))[0]||"_",(o=n[1])&&a.removeEvent(e,i),i=!!i,s={id:o,fn:t.bind(a),capture:i},a._event[r]=a._event[r]||[],a._event[r].push(s),a.addEventListener(r,s.fn,i)}},document.addEvent=Element.prototype.addEvent.bind(document),window.addEvent=Element.prototype.addEvent.bind(window),Element.prototype.removeEvent=function(e,t){var i,s,n,r,o,a,l=this,c=[];if(l._event&&(n=(s=e.split("."))[0]||"_",r=s[1],l._event[n]&&(t=!!t,a=l._event[n].length))){for(o=0;o<a;o++)(i=l._event[n][o]).capture!==t||r&&i.id!==r||c.push(i);for(a=c.length,o=0;o<a;o++)i=c[o],l.removeEventListener(n,i.fn,i.capture),l._event[n].splice(l._event[n].indexOf(i),1)}},document.removeEvent=Element.prototype.removeEvent.bind(document),window.removeEvent=Element.prototype.removeEvent.bind(window),Element.prototype.trigger=function(e,t,i){var s,n,r,o,a,l,c=this;if(c._event&&(r=(n=e.split("."))[0]||"_",o=n[1],c._event[r]&&(t=!!t,l=c._event[r].length)))for(a=0;a<l;a++)(s=c._event[r][a]).capture!==t||o&&s.id!==o||s.fn({currentTarget:c,props:i})},document.trigger=Element.prototype.trigger.bind(document),window.trigger=Element.prototype.trigger.bind(window),function(e){"use strict";if(!e.fetch){var t={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(t.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=function(e){return e&&DataView.prototype.isPrototypeOf(e)},n=ArrayBuffer.isView||function(e){return e&&i.indexOf(Object.prototype.toString.call(e))>-1};h.prototype.append=function(e,t){e=a(e),t=l(t);var i=this.map[e];this.map[e]=i?i+","+t:t},h.prototype.delete=function(e){delete this.map[a(e)]},h.prototype.get=function(e){return e=a(e),this.has(e)?this.map[e]:null},h.prototype.has=function(e){return this.map.hasOwnProperty(a(e))},h.prototype.set=function(e,t){this.map[a(e)]=l(t)},h.prototype.forEach=function(e,t){for(var i in this.map)this.map.hasOwnProperty(i)&&e.call(t,this.map[i],i,this)},h.prototype.keys=function(){var e=[];return this.forEach(function(t,i){e.push(i)}),c(e)},h.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),c(e)},h.prototype.entries=function(){var e=[];return this.forEach(function(t,i){e.push([i,t])}),c(e)},t.iterable&&(h.prototype[Symbol.iterator]=h.prototype.entries);var r=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},f.call(_.prototype),f.call(v.prototype),v.prototype.clone=function(){return new v(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},v.error=function(){var e=new v(null,{status:0,statusText:""});return e.type="error",e};var o=[301,302,303,307,308];v.redirect=function(e,t){if(-1===o.indexOf(t))throw new RangeError("Invalid status code");return new v(null,{status:t,headers:{location:e}})},e.Headers=h,e.Request=_,e.Response=v,e.fetch=function(e,i){return new Promise(function(s,n){var r=new _(e,i),o=new XMLHttpRequest;o.onload=function(){var e,t,i={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",t=new h,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(e){var i=e.split(":"),s=i.shift().trim();if(s){var n=i.join(":").trim();t.append(s,n)}}),t)};i.url="responseURL"in o?o.responseURL:i.headers.get("X-Request-URL");var n="response"in o?o.response:o.responseText;s(new v(n,i))},o.onerror=function(){n(new TypeError("Network request failed"))},o.ontimeout=function(){n(new TypeError("Network request failed"))},o.open(r.method,r.url,!0),"include"===r.credentials?o.withCredentials=!0:"omit"===r.credentials&&(o.withCredentials=!1),"responseType"in o&&t.blob&&(o.responseType="blob"),r.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),o.send(void 0===r._bodyInit?null:r._bodyInit)})},e.fetch.polyfill=!0}function a(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function l(e){return"string"!=typeof e&&(e=String(e)),e}function c(e){var i={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t.iterable&&(i[Symbol.iterator]=function(){return i}),i}function h(e){this.map={},e instanceof h?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function d(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function u(e){return new Promise(function(t,i){e.onload=function(){t(e.result)},e.onerror=function(){i(e.error)}})}function p(e){var t=new FileReader,i=u(t);return t.readAsArrayBuffer(e),i}function m(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function f(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(t.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(t.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(t.arrayBuffer&&t.blob&&s(e))this._bodyArrayBuffer=m(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!t.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e)&&!n(e))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=m(e)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},t.blob&&(this.blob=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?d(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(p)}),this.text=function(){var e,t,i,s=d(this);if(s)return s;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,i=u(t),t.readAsText(e),i;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),i=new Array(t.length),s=0;s<t.length;s++)i[s]=String.fromCharCode(t[s]);return i.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},t.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}function _(e,t){var i,s,n=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new h(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new h(t.headers)),this.method=(i=t.method||this.method||"GET",s=i.toUpperCase(),r.indexOf(s)>-1?s:i),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function g(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var i=e.split("="),s=i.shift().replace(/\+/g," "),n=i.join("=").replace(/\+/g," ");t.append(decodeURIComponent(s),decodeURIComponent(n))}}),t}function v(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new h(t.headers),this.url=t.url||"",this._initBody(e)}}("undefined"!=typeof self?self:this),window.scrollLeft=function(e){if(!e)return window.scrollX||window.pageXOffset||document.body.scrollLeft||document.documentElement.scrollLeft||0;document.body.scrollLeft=document.documentElement.scrollLeft=e},window.scrollTop=function(e){if(!e)return window.scrollY||window.pageYOffset||document.body.scrollTop||document.documentElement.scrollTop||0;document.body.scrollTop=document.documentElement.scrollTop=e};const debounce=(e,t)=>{let i;return function(){clearTimeout(i),i=setTimeout(()=>e.apply(this,arguments),t)}};!function(e,t){function i(){var e=f.elements;return"string"==typeof e?e.split(" "):e}function s(e){var t=m[e[u]];return t||(t={},p++,e[u]=p,m[p]=t),t}function n(e,i,n){return i||(i=t),l?i.createElement(e):(n||(n=s(i)),!(r=n.cache[e]?n.cache[e].cloneNode():d.test(e)?(n.cache[e]=n.createElem(e)).cloneNode():n.createElem(e)).canHaveChildren||h.test(e)||r.tagUrn?r:n.frag.appendChild(r));var r}function r(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(i){return f.shivMethods?n(i,e,t):t.createElem(i)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+i().join().replace(/[\w\-:]+/g,function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'})+");return n}")(f,t.frag)}function o(e){e||(e=t);var i=s(e);return!f.shivCSS||a||i.hasCSS||(i.hasCSS=!!function(e,t){var i=e.createElement("p"),s=e.getElementsByTagName("head")[0]||e.documentElement;return i.innerHTML="x<style>"+t+"</style>",s.insertBefore(i.lastChild,s.firstChild)}(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),l||r(e,i),e}var a,l,c=e.html5||{},h=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,d=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,u="_html5shiv",p=0,m={};!function(){try{var e=t.createElement("a");e.innerHTML="<xyz></xyz>",a="hidden"in e,l=1==e.childNodes.length||function(){t.createElement("a");var e=t.createDocumentFragment();return void 0===e.cloneNode||void 0===e.createDocumentFragment||void 0===e.createElement}()}catch(e){a=!0,l=!0}}();var f={elements:c.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:"3.7.3",shivCSS:!1!==c.shivCSS,supportsUnknownElements:l,shivMethods:!1!==c.shivMethods,type:"default",shivDocument:o,createElement:n,createDocumentFragment:function(e,n){if(e||(e=t),l)return e.createDocumentFragment();for(var r=(n=n||s(e)).frag.cloneNode(),o=0,a=i(),c=a.length;c>o;o++)r.createElement(a[o]);return r},addElements:function(e,t){var i=f.elements;"string"!=typeof i&&(i=i.join(" ")),"string"!=typeof e&&(e=e.join(" ")),f.elements=i+" "+e,o(t)}};e.html5=f,o(t),"object"==typeof module&&module.exports&&(module.exports=f)}("undefined"!=typeof window?window:this,document);class Marquee3k{constructor(e,t){this.element=e,this.selector=t.selector,this.speed=e.dataset.speed||.25,this.pausable=e.dataset.pausable,this.reverse=e.dataset.reverse,this.paused=!1,this.parent=e.parentElement,this.parentProps=this.parent.getBoundingClientRect(),this.content=e.children[0],this.innerContent=this.content.innerHTML,this.wrapStyles="",this.offset=0,this._setupWrapper(),this._setupContent(),this._setupEvents(),this.wrapper.appendChild(this.content),this.element.appendChild(this.wrapper)}_setupWrapper(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("marquee3k__wrapper"),this.wrapper.style.whiteSpace="nowrap"}_setupContent(){this.content.classList.add(`${this.selector}__copy`),this.content.style.display="inline-block",this.contentWidth=this.content.offsetWidth,this.requiredReps=this.contentWidth>this.parentProps.width?2:Math.ceil((this.parentProps.width-this.contentWidth)/this.contentWidth)+1;for(let e=0;e<this.requiredReps;e++)this._createClone();this.reverse&&(this.offset=-1*this.contentWidth),this.element.classList.add("is-init")}_setupEvents(){this.element.addEventListener("mouseenter",()=>{this.pausable&&(this.paused=!0)}),this.element.addEventListener("mouseleave",()=>{this.pausable&&(this.paused=!1)})}_createClone(){const e=this.content.cloneNode(!0);e.style.display="inline-block",e.classList.add(`${this.selector}__copy`),this.wrapper.appendChild(e)}animate(){if(!this.paused){const e=this.reverse?this.offset<0:this.offset>-1*this.contentWidth,t=this.reverse?-1:1,i=this.reverse?-1*this.contentWidth:0;e?this.offset-=this.speed*t:this.offset=i,this.wrapper.style.whiteSpace="nowrap",this.wrapper.style.transform=`translate(${this.offset}px, 0) translateZ(0)`}}_refresh(){this.contentWidth=this.content.offsetWidth}repopulate(e,t){if(this.contentWidth=this.content.offsetWidth,t){const t=Math.ceil(e/this.contentWidth)+1;for(let e=0;e<t;e++)this._createClone()}}static refresh(e){MARQUEES[e]._refresh()}static refreshAll(){for(let e=0;e<MARQUEES.length;e++)MARQUEES[e]._refresh()}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{selector:"marquee3k"};window.MARQUEES=[];const t=Array.from(document.querySelectorAll(`.${e.selector}`));let i,s=window.innerWidth;for(let i=0;i<t.length;i++){const s=t[i],n=new Marquee3k(s,e);MARQUEES.push(n)}!function e(){for(let e=0;e<MARQUEES.length;e++)MARQUEES[e].animate();window.requestAnimationFrame(e)}(),window.addEventListener("resize",()=>{clearTimeout(i),i=setTimeout(()=>{const e=s<window.innerWidth,t=window.innerWidth-s;for(let i=0;i<MARQUEES.length;i++)MARQUEES[i].repopulate(t,e);s=this.innerWidth})},250)}}window.performance||(window.performance={}),window.performance.now||(window.performance.now=window.performance.now||function(){return(new Date).getTime()}),Array.prototype.indexOf||(Array.prototype.indexOf=function(e,t){var i,s=this.length;for(i=t=t||0;i<s;i++)if(this[i]===e)return i;return-1}),Array.from||(Array.from=function(e){"use strict";return[].slice.call(e)}),Element.prototype.closest||(Element.prototype.closest=function(e){var t,i,s=document.querySelectorAll(e),n=s.length;for(t=this;t;t=t.parentElement)for(i=0;i<n;i++)if(s[i]===t)return t;return null}),Element.prototype.matches||(Element.prototype.matches=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.msMatchesSelector||function(e){var t,i=document.querySelectorAll(e),s=i.length;for(t=0;t<s;t++)if(i[t]===this)return!0;return!1}),Function.prototype.bind||(Function.prototype.bind=function(e){var t=this,i=Array.prototype.slice.call(arguments,1);return function(){t.apply(e,i)}}),Object.assign||(Object.assign=function(e){if(e!==Object(e))throw new TypeError("Object.keys called on a non-object");var t,i,s,n,r,o,a,l;for(t=Object(e),r=arguments.length,n=1;n<r;n++)if(i=arguments[n])for(a=(s=Object.keys(i)).length,o=0;o<a;o++)t[l=s[o]]=i[l];return t}),Object.keys||(Object.keys=function(e){if(e!==Object(e))throw new TypeError("Object.keys called on a non-object");var t,i=[];for(t in e)e.hasOwnProperty(t)&&i.push(t);return i}),window.cancelAnimationFrame||(window.cancelAnimationFrame=window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||window.oCancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||clearTimeout),window.requestAnimationFrame||(window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)}),[Element.prototype,Document.prototype,DocumentFragment.prototype].forEach(function(e){e.hasOwnProperty("prepend")||Object.defineProperty(e,"prepend",{configurable:!0,enumerable:!0,writable:!0,value:function(){var e=Array.prototype.slice.call(arguments),t=document.createDocumentFragment();e.forEach(function(e){var i=e instanceof Node;t.appendChild(i?e:document.createTextNode(String(e)))}),this.insertBefore(t,this.firstChild)}})});const StickySidebar=(()=>{const e=".stickySidebar",t={topSpacing:0,bottomSpacing:0,containerSelector:!1,innerWrapperSelector:".inner-wrapper-sticky",stickyClass:"is-affixed",resizeSensor:!0,minWidth:!1};class i{constructor(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.options=i.extend(t,s),this.sidebar="string"==typeof e?document.querySelector(e):e,void 0===this.sidebar)throw new Error("There is no specific sidebar element.");this.sidebarInner=!1,this.container=this.sidebar.parentElement,this.affixedType="STATIC",this.direction="down",this.support={transform:!1,transform3d:!1},this._initialized=!1,this._reStyle=!1,this._breakpoint=!1,this.dimensions={translateY:0,maxTranslateY:0,topSpacing:0,lastTopSpacing:0,bottomSpacing:0,lastBottomSpacing:0,sidebarHeight:0,sidebarWidth:0,containerTop:0,containerHeight:0,viewportHeight:0,viewportTop:0,lastViewportTop:0},["handleEvent"].forEach(e=>{this[e]=this[e].bind(this)}),this.initialize()}initialize(){if(this._setSupportFeatures(),this.options.innerWrapperSelector&&(this.sidebarInner=this.sidebar.querySelector(this.options.innerWrapperSelector),null===this.sidebarInner&&(this.sidebarInner=!1)),!this.sidebarInner){let e=document.createElement("div");for(e.setAttribute("class","inner-wrapper-sticky"),this.sidebar.appendChild(e);this.sidebar.firstChild!=e;)e.appendChild(this.sidebar.firstChild);this.sidebarInner=this.sidebar.querySelector(".inner-wrapper-sticky")}if(this.options.containerSelector){let e=document.querySelectorAll(this.options.containerSelector);if((e=Array.prototype.slice.call(e)).forEach((e,t)=>{e.contains(this.sidebar)&&(this.container=e)}),!e.length)throw new Error("The container does not contains on the sidebar.")}"function"!=typeof this.options.topSpacing&&(this.options.topSpacing=parseInt(this.options.topSpacing)||0),"function"!=typeof this.options.bottomSpacing&&(this.options.bottomSpacing=parseInt(this.options.bottomSpacing)||0),this._widthBreakpoint(),this.calcDimensions(),this.stickyPosition(),this.bindEvents(),this._initialized=!0}bindEvents(){window.addEventListener("resize",this,{passive:!0,capture:!1}),window.addEventListener("scroll",this,{passive:!0,capture:!1}),this.sidebar.addEventListener("update"+e,this),this.options.resizeSensor&&"undefined"!=typeof ResizeSensor&&(new ResizeSensor(this.sidebarInner,this.handleEvent),new ResizeSensor(this.container,this.handleEvent))}handleEvent(e){this.updateSticky(e)}calcDimensions(){if(!this._breakpoint){var e=this.dimensions;e.containerTop=i.offsetRelative(this.container).top,e.containerHeight=this.container.clientHeight,e.containerBottom=e.containerTop+e.containerHeight,e.sidebarHeight=this.sidebarInner.offsetHeight,e.sidebarWidth=this.sidebarInner.offsetWidth,e.viewportHeight=window.innerHeight,e.maxTranslateY=e.containerHeight-e.sidebarHeight,this._calcDimensionsWithScroll()}}_calcDimensionsWithScroll(){var e=this.dimensions;e.sidebarLeft=i.offsetRelative(this.sidebar).left,e.viewportTop=document.documentElement.scrollTop||document.body.scrollTop,e.viewportBottom=e.viewportTop+e.viewportHeight,e.viewportLeft=document.documentElement.scrollLeft||document.body.scrollLeft,e.topSpacing=this.options.topSpacing,e.bottomSpacing=this.options.bottomSpacing,"function"==typeof e.topSpacing&&(e.topSpacing=parseInt(e.topSpacing(this.sidebar))||0),"function"==typeof e.bottomSpacing&&(e.bottomSpacing=parseInt(e.bottomSpacing(this.sidebar))||0),"VIEWPORT-TOP"===this.affixedType?e.topSpacing<e.lastTopSpacing&&(e.translateY+=e.lastTopSpacing-e.topSpacing,this._reStyle=!0):"VIEWPORT-BOTTOM"===this.affixedType&&e.bottomSpacing<e.lastBottomSpacing&&(e.translateY+=e.lastBottomSpacing-e.bottomSpacing,this._reStyle=!0),e.lastTopSpacing=e.topSpacing,e.lastBottomSpacing=e.bottomSpacing}isSidebarFitsViewport(){return this.dimensions.sidebarHeight<this.dimensions.viewportHeight}observeScrollDir(){var e=this.dimensions;if(e.lastViewportTop!==e.viewportTop){var t="down"===this.direction?Math.min:Math.max;e.viewportTop===t(e.viewportTop,e.lastViewportTop)&&(this.direction="down"===this.direction?"up":"down")}}getAffixType(){this._calcDimensionsWithScroll();var e=this.dimensions,t=e.viewportTop+e.topSpacing,i=this.affixedType;return t<=e.containerTop||e.containerHeight<=e.sidebarHeight?(e.translateY=0,i="STATIC"):i="up"===this.direction?this._getAffixTypeScrollingUp():this._getAffixTypeScrollingDown(),e.translateY=Math.max(0,e.translateY),e.translateY=Math.min(e.containerHeight,e.translateY),e.translateY=Math.round(e.translateY),e.lastViewportTop=e.viewportTop,i}_getAffixTypeScrollingDown(){var e=this.dimensions,t=e.sidebarHeight+e.containerTop,i=e.viewportTop+e.topSpacing,s=e.viewportBottom-e.bottomSpacing,n=this.affixedType;return this.isSidebarFitsViewport()?e.sidebarHeight+i>=e.containerBottom?(e.translateY=e.containerBottom-t,n="CONTAINER-BOTTOM"):i>=e.containerTop&&(e.translateY=i-e.containerTop,n="VIEWPORT-TOP"):e.containerBottom<=s?(e.translateY=e.containerBottom-t,n="CONTAINER-BOTTOM"):t+e.translateY<=s?(e.translateY=s-t,n="VIEWPORT-BOTTOM"):e.containerTop+e.translateY<=i&&0!==e.translateY&&e.maxTranslateY!==e.translateY&&(n="VIEWPORT-UNBOTTOM"),n}_getAffixTypeScrollingUp(){var e=this.dimensions,t=e.sidebarHeight+e.containerTop,i=e.viewportTop+e.topSpacing,s=e.viewportBottom-e.bottomSpacing,n=this.affixedType;return i<=e.translateY+e.containerTop?(e.translateY=i-e.containerTop,n="VIEWPORT-TOP"):e.containerBottom<=s?(e.translateY=e.containerBottom-t,n="CONTAINER-BOTTOM"):this.isSidebarFitsViewport()||e.containerTop<=i&&0!==e.translateY&&e.maxTranslateY!==e.translateY&&(n="VIEWPORT-UNBOTTOM"),n}_getStyle(e){if(void 0!==e){var t={inner:{},outer:{}},s=this.dimensions;switch(e){case"VIEWPORT-TOP":t.inner={position:"fixed",top:s.topSpacing,left:s.sidebarLeft-s.viewportLeft,width:s.sidebarWidth};break;case"VIEWPORT-BOTTOM":t.inner={position:"fixed",top:"auto",left:s.sidebarLeft,bottom:s.bottomSpacing,width:s.sidebarWidth};break;case"CONTAINER-BOTTOM":case"VIEWPORT-UNBOTTOM":let i=this._getTranslate(0,s.translateY+"px");t.inner=i?{transform:i}:{position:"absolute",top:s.translateY,width:s.sidebarWidth}}switch(e){case"VIEWPORT-TOP":case"VIEWPORT-BOTTOM":case"VIEWPORT-UNBOTTOM":case"CONTAINER-BOTTOM":t.outer={height:s.sidebarHeight,position:"relative"}}return t.outer=i.extend({height:"",position:""},t.outer),t.inner=i.extend({position:"relative",top:"",left:"",bottom:"",width:"",transform:""},t.inner),t}}stickyPosition(t){if(!this._breakpoint){t=this._reStyle||t||!1;this.options.topSpacing,this.options.bottomSpacing;var s=this.getAffixType(),n=this._getStyle(s);if((this.affixedType!=s||t)&&s){let t="affix."+s.toLowerCase().replace("viewport-","")+e;i.eventTrigger(this.sidebar,t),"STATIC"===s?i.removeClass(this.sidebar,this.options.stickyClass):i.addClass(this.sidebar,this.options.stickyClass);for(let e in n.outer){let t="number"==typeof n.outer[e]?"px":"";this.sidebar.style[e]=n.outer[e]+t}for(let e in n.inner){let t="number"==typeof n.inner[e]?"px":"";this.sidebarInner.style[e]=n.inner[e]+t}let r="affixed."+s.toLowerCase().replace("viewport-","")+e;i.eventTrigger(this.sidebar,r)}else this._initialized&&(this.sidebarInner.style.left=n.inner.left);this.affixedType=s}}_widthBreakpoint(){window.innerWidth<=this.options.minWidth?(this._breakpoint=!0,this.affixedType="STATIC",this.sidebar.removeAttribute("style"),i.removeClass(this.sidebar,this.options.stickyClass),this.sidebarInner.removeAttribute("style")):this._breakpoint=!1}updateSticky(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._running||(this._running=!0,(e=>{requestAnimationFrame(()=>{switch(e){case"scroll":this._calcDimensionsWithScroll(),this.observeScrollDir(),this.stickyPosition();break;case"resize":default:this._widthBreakpoint(),this.calcDimensions(),this.stickyPosition(!0)}this._running=!1})})(e.type))}_setSupportFeatures(){var e=this.support;e.transform=i.supportTransform(),e.transform3d=i.supportTransform(!0)}_getTranslate(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.support.transform3d?"translate3d("+e+", "+t+", "+i+")":!!this.support.translate&&"translate("+e+", "+t+")"}destroy(){window.removeEventListener("resize",this,{capture:!1}),window.removeEventListener("scroll",this,{capture:!1}),this.sidebar.classList.remove(this.options.stickyClass),this.sidebar.style.minHeight="",this.sidebar.removeEventListener("update"+e,this);var t={inner:{},outer:{}};t.inner={position:"",top:"",left:"",bottom:"",width:"",transform:""},t.outer={height:"",position:""};for(let e in t.outer)this.sidebar.style[e]=t.outer[e];for(let e in t.inner)this.sidebarInner.style[e]=t.inner[e];this.options.resizeSensor&&"undefined"!=typeof ResizeSensor&&(ResizeSensor.detach(this.sidebarInner,this.handleEvent),ResizeSensor.detach(this.container,this.handleEvent))}static supportTransform(e){var t=!1,i=e?"perspective":"transform",s=i.charAt(0).toUpperCase()+i.slice(1),n=document.createElement("support").style;return(i+" "+["Webkit","Moz","O","ms"].join(s+" ")+s).split(" ").forEach(function(e,i){if(void 0!==n[e])return t=e,!1}),t}static eventTrigger(e,t,i){try{var s=new CustomEvent(t,{detail:i})}catch(e){(s=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,i)}e.dispatchEvent(s)}static extend(e,t){var i={};for(let s in e)void 0!==t[s]?i[s]=t[s]:i[s]=e[s];return i}static offsetRelative(e){var t={left:0,top:0};do{let i=e.offsetTop,s=e.offsetLeft;isNaN(i)||(t.top+=i),isNaN(s)||(t.left+=s),e="BODY"===e.tagName?e.parentElement:e.offsetParent}while(e);return t}static addClass(e,t){i.hasClass(e,t)||(e.classList?e.classList.add(t):e.className+=" "+t)}static removeClass(e,t){i.hasClass(e,t)&&(e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," "))}static hasClass(e,t){return e.classList?e.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(e.className)}static get defaults(){return t}}return i})();window.StickySidebar=StickySidebar,function(e){if("content"in e.createElement("template"))return!1;for(var t,i,s,n=e.getElementsByTagName("template"),r=n.length,o=0;o<r;++o){for((i=(t=n[o]).childNodes).length,s=e.createDocumentFragment();i[0];)s.appendChild(i[0]);t.content=s}}(document),function(e,t){"use strict";var i=e.GreenSockGlobals=e.GreenSockGlobals||e;if(!i.TweenLite){var s,n,r,o,a,l=function(e){var t,s=e.split("."),n=i;for(t=0;s.length>t;t++)n[s[t]]=n=n[s[t]]||{};return n},c=l("com.greensock"),h=1e-10,d=function(e){var t,i=[],s=e.length;for(t=0;t!==s;i.push(e[t++]));return i},u=function(){},p=function(){var e=Object.prototype.toString,t=e.call([]);return function(i){return null!=i&&(i instanceof Array||"object"==typeof i&&!!i.push&&e.call(i)===t)}}(),m={},f=function(t,s,n,r){this.sc=m[t]?m[t].sc:[],m[t]=this,this.gsClass=null,this.func=n;var o=[];this.check=function(a){for(var c,h,d,u,p,_=s.length,g=_;--_>-1;)(c=m[s[_]]||new f(s[_],[])).gsClass?(o[_]=c.gsClass,g--):a&&c.sc.push(this);if(0===g&&n)for(d=(h=("com.greensock."+t).split(".")).pop(),u=l(h.join("."))[d]=this.gsClass=n.apply(n,o),r&&(i[d]=u,!(p="undefined"!=typeof module&&module.exports)&&"function"==typeof define&&define.amd?define((e.GreenSockAMDPath?e.GreenSockAMDPath+"/":"")+t.split(".").pop(),[],function(){return u}):"TweenLite"===t&&p&&(module.exports=u)),_=0;this.sc.length>_;_++)this.sc[_].check()},this.check(!0)},_=e._gsDefine=function(e,t,i,s){return new f(e,t,i,s)},g=c._class=function(e,t,i){return t=t||function(){},_(e,[],function(){return t},i),t};_.globals=i;var v=[0,0,1,1],y=[],w=g("easing.Ease",function(e,t,i,s){this._func=e,this._type=i||0,this._power=s||0,this._params=t?v.concat(t):v},!0),b=w.map={},S=w.register=function(e,t,i,s){for(var n,r,o,a,l=t.split(","),h=l.length,d=(i||"easeIn,easeOut,easeInOut").split(",");--h>-1;)for(r=l[h],n=s?g("easing."+r,null,!0):c.easing[r]||{},o=d.length;--o>-1;)a=d[o],b[r+"."+a]=b[a+r]=n[a]=e.getRatio?e:e[a]||new e};for((r=w.prototype)._calcEnd=!1,r.getRatio=function(e){if(this._func)return this._params[0]=e,this._func.apply(null,this._params);var t=this._type,i=this._power,s=1===t?1-e:2===t?e:.5>e?2*e:2*(1-e);return 1===i?s*=s:2===i?s*=s*s:3===i?s*=s*s*s:4===i&&(s*=s*s*s*s),1===t?1-s:2===t?s:.5>e?s/2:1-s/2},n=(s=["Linear","Quad","Cubic","Quart","Quint,Strong"]).length;--n>-1;)r=s[n]+",Power"+n,S(new w(null,null,1,n),r,"easeOut",!0),S(new w(null,null,2,n),r,"easeIn"+(0===n?",easeNone":"")),S(new w(null,null,3,n),r,"easeInOut");b.linear=c.easing.Linear.easeIn,b.swing=c.easing.Quad.easeInOut;var x=g("events.EventDispatcher",function(e){this._listeners={},this._eventTarget=e||this});(r=x.prototype).addEventListener=function(e,t,i,s,n){n=n||0;var r,l,c=this._listeners[e],h=0;for(null==c&&(this._listeners[e]=c=[]),l=c.length;--l>-1;)(r=c[l]).c===t&&r.s===i?c.splice(l,1):0===h&&n>r.pr&&(h=l+1);c.splice(h,0,{c:t,s:i,up:s,pr:n}),this!==o||a||o.wake()},r.removeEventListener=function(e,t){var i,s=this._listeners[e];if(s)for(i=s.length;--i>-1;)if(s[i].c===t)return void s.splice(i,1)},r.dispatchEvent=function(e){var t,i,s,n=this._listeners[e];if(n)for(t=n.length,i=this._eventTarget;--t>-1;)(s=n[t])&&(s.up?s.c.call(s.s||i,{type:e,target:i}):s.c.call(s.s||i))};var T=e.requestAnimationFrame,C=e.cancelAnimationFrame,E=Date.now||function(){return(new Date).getTime()},k=E();for(n=(s=["ms","moz","webkit","o"]).length;--n>-1&&!T;)T=e[s[n]+"RequestAnimationFrame"],C=e[s[n]+"CancelAnimationFrame"]||e[s[n]+"CancelRequestAnimationFrame"];g("Ticker",function(e,t){var i,s,n,r,l,c=this,d=E(),p=!1!==t&&T,m=500,f=33,_=function(e){var t,o,a=E()-k;a>m&&(d+=a-f),k+=a,c.time=(k-d)/1e3,t=c.time-l,(!i||t>0||!0===e)&&(c.frame++,l+=t+(t>=r?.004:r-t),o=!0),!0!==e&&(n=s(_)),o&&c.dispatchEvent("tick")};x.call(c),c.time=c.frame=0,c.tick=function(){_(!0)},c.lagSmoothing=function(e,t){m=e||1/h,f=Math.min(t,m,0)},c.sleep=function(){null!=n&&(p&&C?C(n):clearTimeout(n),s=u,n=null,c===o&&(a=!1))},c.wake=function(){null!==n?c.sleep():c.frame>10&&(k=E()-m+5),s=0===i?u:p&&T?T:function(e){return setTimeout(e,0|1e3*(l-c.time)+1)},c===o&&(a=!0),_(2)},c.fps=function(e){return arguments.length?(r=1/((i=e)||60),l=this.time+r,void c.wake()):i},c.useRAF=function(e){return arguments.length?(c.sleep(),p=e,void c.fps(i)):p},c.fps(e),setTimeout(function(){p&&5>c.frame&&c.useRAF(!1)},1500)}),(r=c.Ticker.prototype=new c.events.EventDispatcher).constructor=c.Ticker;var P=g("core.Animation",function(e,t){if(this.vars=t=t||{},this._duration=this._totalDuration=e||0,this._delay=Number(t.delay)||0,this._timeScale=1,this._active=!0===t.immediateRender,this.data=t.data,this._reversed=!0===t.reversed,Y){a||o.wake();var i=this.vars.useFrames?j:Y;i.add(this,i._time),this.vars.paused&&this.paused(!0)}});o=P.ticker=new c.Ticker,(r=P.prototype)._dirty=r._gc=r._initted=r._paused=!1,r._totalTime=r._time=0,r._rawPrevTime=-1,r._next=r._last=r._onUpdate=r._timeline=r.timeline=null,r._paused=!1;var A=function(){a&&E()-k>2e3&&o.wake(),setTimeout(A,2e3)};A(),r.play=function(e,t){return null!=e&&this.seek(e,t),this.reversed(!1).paused(!1)},r.pause=function(e,t){return null!=e&&this.seek(e,t),this.paused(!0)},r.resume=function(e,t){return null!=e&&this.seek(e,t),this.paused(!1)},r.seek=function(e,t){return this.totalTime(Number(e),!1!==t)},r.restart=function(e,t){return this.reversed(!1).paused(!1).totalTime(e?-this._delay:0,!1!==t,!0)},r.reverse=function(e,t){return null!=e&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},r.render=function(){},r.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},r.isActive=function(){var e,t=this._timeline,i=this._startTime;return!t||!this._gc&&!this._paused&&t.isActive()&&(e=t.rawTime())>=i&&i+this.totalDuration()/this._timeScale>e},r._enabled=function(e,t){return a||o.wake(),this._gc=!e,this._active=this.isActive(),!0!==t&&(e&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!e&&this.timeline&&this._timeline._remove(this,!0)),!1},r._kill=function(){return this._enabled(!1,!1)},r.kill=function(e,t){return this._kill(e,t),this},r._uncache=function(e){for(var t=e?this:this.timeline;t;)t._dirty=!0,t=t.timeline;return this},r._swapSelfInParams=function(e){for(var t=e.length,i=e.concat();--t>-1;)"{self}"===e[t]&&(i[t]=this);return i},r._callback=function(e){var t=this.vars;t[e].apply(t[e+"Scope"]||t.callbackScope||this,t[e+"Params"]||y)},r.eventCallback=function(e,t,i,s){if("on"===(e||"").substr(0,2)){var n=this.vars;if(1===arguments.length)return n[e];null==t?delete n[e]:(n[e]=t,n[e+"Params"]=p(i)&&-1!==i.join("").indexOf("{self}")?this._swapSelfInParams(i):i,n[e+"Scope"]=s),"onUpdate"===e&&(this._onUpdate=t)}return this},r.delay=function(e){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+e-this._delay),this._delay=e,this):this._delay},r.duration=function(e){return arguments.length?(this._duration=this._totalDuration=e,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&0!==e&&this.totalTime(this._totalTime*(e/this._duration),!0),this):(this._dirty=!1,this._duration)},r.totalDuration=function(e){return this._dirty=!1,arguments.length?this.duration(e):this._totalDuration},r.time=function(e,t){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(e>this._duration?this._duration:e,t)):this._time},r.totalTime=function(e,t,i){if(a||o.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>e&&!i&&(e+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var s=this._totalDuration,n=this._timeline;if(e>s&&!i&&(e=s),this._startTime=(this._paused?this._pauseTime:n._time)-(this._reversed?s-e:e)/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!==e||0===this._duration)&&(L.length&&U(),this.render(e,t,!1),L.length&&U())}return this},r.progress=r.totalProgress=function(e,t){var i=this.duration();return arguments.length?this.totalTime(i*e,t):i?this._time/i:this.ratio},r.startTime=function(e){return arguments.length?(e!==this._startTime&&(this._startTime=e,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,e-this._delay)),this):this._startTime},r.endTime=function(e){return this._startTime+(0!=e?this.totalDuration():this.duration())/this._timeScale},r.timeScale=function(e){if(!arguments.length)return this._timeScale;if(e=e||h,this._timeline&&this._timeline.smoothChildTiming){var t=this._pauseTime,i=t||0===t?t:this._timeline.totalTime();this._startTime=i-(i-this._startTime)*this._timeScale/e}return this._timeScale=e,this._uncache(!1)},r.reversed=function(e){return arguments.length?(e!=this._reversed&&(this._reversed=e,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},r.paused=function(e){if(!arguments.length)return this._paused;var t,i,s=this._timeline;return e!=this._paused&&s&&(a||e||o.wake(),i=(t=s.rawTime())-this._pauseTime,!e&&s.smoothChildTiming&&(this._startTime+=i,this._uncache(!1)),this._pauseTime=e?t:null,this._paused=e,this._active=this.isActive(),!e&&0!==i&&this._initted&&this.duration()&&(t=s.smoothChildTiming?this._totalTime:(t-this._startTime)/this._timeScale,this.render(t,t===this._totalTime,!0))),this._gc&&!e&&this._enabled(!0,!1),this};var O=g("core.SimpleTimeline",function(e){P.call(this,0,e),this.autoRemoveChildren=this.smoothChildTiming=!0});(r=O.prototype=new P).constructor=O,r.kill()._gc=!1,r._first=r._last=r._recent=null,r._sortChildren=!1,r.add=r.insert=function(e,t){var i,s;if(e._startTime=Number(t||0)+e._delay,e._paused&&this!==e._timeline&&(e._pauseTime=e._startTime+(this.rawTime()-e._startTime)/e._timeScale),e.timeline&&e.timeline._remove(e,!0),e.timeline=e._timeline=this,e._gc&&e._enabled(!0,!0),i=this._last,this._sortChildren)for(s=e._startTime;i&&i._startTime>s;)i=i._prev;return i?(e._next=i._next,i._next=e):(e._next=this._first,this._first=e),e._next?e._next._prev=e:this._last=e,e._prev=i,this._recent=e,this._timeline&&this._uncache(!0),this},r._remove=function(e,t){return e.timeline===this&&(t||e._enabled(!1,!0),e._prev?e._prev._next=e._next:this._first===e&&(this._first=e._next),e._next?e._next._prev=e._prev:this._last===e&&(this._last=e._prev),e._next=e._prev=e.timeline=null,e===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},r.render=function(e,t,i){var s,n=this._first;for(this._totalTime=this._time=this._rawPrevTime=e;n;)s=n._next,(n._active||e>=n._startTime&&!n._paused)&&(n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(e-n._startTime)*n._timeScale,t,i):n.render((e-n._startTime)*n._timeScale,t,i)),n=s},r.rawTime=function(){return a||o.wake(),this._totalTime};var M=g("TweenLite",function(t,i,s){if(P.call(this,i,s),this.render=M.prototype.render,null==t)throw"Cannot tween a null target.";this.target=t="string"!=typeof t?t:M.selector(t)||t;var n,r,o,a=t.jquery||t.length&&t!==e&&t[0]&&(t[0]===e||t[0].nodeType&&t[0].style&&!t.nodeType),l=this.vars.overwrite;if(this._overwrite=l=null==l?W[M.defaultOverwrite]:"number"==typeof l?l>>0:W[l],(a||t instanceof Array||t.push&&p(t))&&"number"!=typeof t[0])for(this._targets=o=d(t),this._propLookup=[],this._siblings=[],n=0;o.length>n;n++)(r=o[n])?"string"!=typeof r?r.length&&r!==e&&r[0]&&(r[0]===e||r[0].nodeType&&r[0].style&&!r.nodeType)?(o.splice(n--,1),this._targets=o=o.concat(d(r))):(this._siblings[n]=$(r,this,!1),1===l&&this._siblings[n].length>1&&Q(r,this,null,1,this._siblings[n])):"string"==typeof(r=o[n--]=M.selector(r))&&o.splice(n+1,1):o.splice(n--,1);else this._propLookup={},this._siblings=$(t,this,!1),1===l&&this._siblings.length>1&&Q(t,this,null,1,this._siblings);(this.vars.immediateRender||0===i&&0===this._delay&&!1!==this.vars.immediateRender)&&(this._time=-h,this.render(-this._delay))},!0),q=function(t){return t&&t.length&&t!==e&&t[0]&&(t[0]===e||t[0].nodeType&&t[0].style&&!t.nodeType)};(r=M.prototype=new P).constructor=M,r.kill()._gc=!1,r.ratio=0,r._firstPT=r._targets=r._overwrittenProps=r._startAt=null,r._notifyPluginsOfEnabled=r._lazy=!1,M.version="1.18.0",M.defaultEase=r._ease=new w(null,null,1,1),M.defaultOverwrite="auto",M.ticker=o,M.autoSleep=120,M.lagSmoothing=function(e,t){o.lagSmoothing(e,t)},M.selector=e.$||e.jQuery||function(t){var i=e.$||e.jQuery;return i?(M.selector=i,i(t)):"undefined"==typeof document?t:document.querySelectorAll?document.querySelectorAll(t):document.getElementById("#"===t.charAt(0)?t.substr(1):t)};var L=[],I={},B=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,N=function(e){for(var t,i=this._firstPT;i;)t=i.blob?e?this.join(""):this.start:i.c*e+i.s,i.r?t=Math.round(t):1e-6>t&&t>-1e-6&&(t=0),i.f?i.fp?i.t[i.p](i.fp,t):i.t[i.p](t):i.t[i.p]=t,i=i._next},R=function(e,t,i,s){var n,r,o,a,l,c,h,d=[e,t],u=0,p="",m=0;for(d.start=e,i&&(i(d),e=d[0],t=d[1]),d.length=0,n=e.match(B)||[],r=t.match(B)||[],s&&(s._next=null,s.blob=1,d._firstPT=s),l=r.length,a=0;l>a;a++)h=r[a],p+=(c=t.substr(u,t.indexOf(h,u)-u))||!a?c:",",u+=c.length,m?m=(m+1)%5:"rgba("===c.substr(-5)&&(m=1),h===n[a]||a>=n.length?p+=h:(p&&(d.push(p),p=""),o=parseFloat(n[a]),d.push(o),d._firstPT={_next:d._firstPT,t:d,p:d.length-1,s:o,c:("="===h.charAt(1)?parseInt(h.charAt(0)+"1",10)*parseFloat(h.substr(2)):parseFloat(h)-o)||0,f:0,r:m&&4>m}),u+=h.length;return(p+=t.substr(u))&&d.push(p),d.setRatio=N,d},D=function(e,t,i,s,n,r,o,a){var l,c="get"===i?e[t]:i,h=typeof e[t],d="string"==typeof s&&"="===s.charAt(1),u={t:e,p:t,s:c,f:"function"===h,pg:0,n:n||t,r:r,pr:0,c:d?parseInt(s.charAt(0)+"1",10)*parseFloat(s.substr(2)):parseFloat(s)-c||0};return"number"!==h&&("function"===h&&"get"===i&&(l=t.indexOf("set")||"function"!=typeof e["get"+t.substr(3)]?t:"get"+t.substr(3),u.s=c=o?e[l](o):e[l]()),"string"==typeof c&&(o||isNaN(c))?(u.fp=o,u={t:R(c,s,a||M.defaultStringFilter,u),p:"setRatio",s:0,c:1,f:2,pg:0,n:n||t,pr:0}):d||(u.c=parseFloat(s)-parseFloat(c)||0)),u.c?((u._next=this._firstPT)&&(u._next._prev=u),this._firstPT=u,u):void 0},V=M._internals={isArray:p,isSelector:q,lazyTweens:L,blobDif:R},z=M._plugins={},H=V.tweenLookup={},F=0,G=V.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1},W={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},j=P._rootFramesTimeline=new O,Y=P._rootTimeline=new O,X=30,U=V.lazyRender=function(){var e,t=L.length;for(I={};--t>-1;)(e=L[t])&&!1!==e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0),e._lazy=!1);L.length=0};Y._startTime=o.time,j._startTime=o.frame,Y._active=j._active=!0,setTimeout(U,1),P._updateRoot=M.render=function(){var e,t,i;if(L.length&&U(),Y.render((o.time-Y._startTime)*Y._timeScale,!1,!1),j.render((o.frame-j._startTime)*j._timeScale,!1,!1),L.length&&U(),o.frame>=X){for(i in X=o.frame+(parseInt(M.autoSleep,10)||120),H){for(e=(t=H[i].tweens).length;--e>-1;)t[e]._gc&&t.splice(e,1);0===t.length&&delete H[i]}if((!(i=Y._first)||i._paused)&&M.autoSleep&&!j._first&&1===o._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||o.sleep()}}},o.addEventListener("tick",P._updateRoot);var $=function(e,t,i){var s,n,r=e._gsTweenID;if(H[r||(e._gsTweenID=r="t"+F++)]||(H[r]={target:e,tweens:[]}),t&&((s=H[r].tweens)[n=s.length]=t,i))for(;--n>-1;)s[n]===t&&s.splice(n,1);return H[r].tweens},Z=function(e,t,i,s){var n,r,o=e.vars.onOverwrite;return o&&(n=o(e,t,i,s)),(o=M.onOverwrite)&&(r=o(e,t,i,s)),!1!==n&&!1!==r},Q=function(e,t,i,s,n){var r,o,a,l;if(1===s||s>=4){for(l=n.length,r=0;l>r;r++)if((a=n[r])!==t)a._gc||a._kill(null,e,t)&&(o=!0);else if(5===s)break;return o}var c,d=t._startTime+h,u=[],p=0,m=0===t._duration;for(r=n.length;--r>-1;)(a=n[r])===t||a._gc||a._paused||(a._timeline!==t._timeline?(c=c||J(t,0,m),0===J(a,c,m)&&(u[p++]=a)):d>=a._startTime&&a._startTime+a.totalDuration()/a._timeScale>d&&((m||!a._initted)&&2e-10>=d-a._startTime||(u[p++]=a)));for(r=p;--r>-1;)if(a=u[r],2===s&&a._kill(i,e,t)&&(o=!0),2!==s||!a._firstPT&&a._initted){if(2!==s&&!Z(a,t))continue;a._enabled(!1,!1)&&(o=!0)}return o},J=function(e,t,i){for(var s=e._timeline,n=s._timeScale,r=e._startTime;s._timeline;){if(r+=s._startTime,n*=s._timeScale,s._paused)return-100;s=s._timeline}return(r/=n)>t?r-t:i&&r===t||!e._initted&&2*h>r-t?h:(r+=e.totalDuration()/e._timeScale/n)>t+h?0:r-t-h};r._init=function(){var e,t,i,s,n,r=this.vars,o=this._overwrittenProps,a=this._duration,l=!!r.immediateRender,c=r.ease;if(r.startAt){for(s in this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),n={},r.startAt)n[s]=r.startAt[s];if(n.overwrite=!1,n.immediateRender=!0,n.lazy=l&&!1!==r.lazy,n.startAt=n.delay=null,this._startAt=M.to(this.target,0,n),l)if(this._time>0)this._startAt=null;else if(0!==a)return}else if(r.runBackwards&&0!==a)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{for(s in 0!==this._time&&(l=!1),i={},r)G[s]&&"autoCSS"!==s||(i[s]=r[s]);if(i.overwrite=0,i.data="isFromStart",i.lazy=l&&!1!==r.lazy,i.immediateRender=l,this._startAt=M.to(this.target,0,i),l){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=c=c?c instanceof w?c:"function"==typeof c?new w(c,r.easeParams):b[c]||M.defaultEase:M.defaultEase,r.easeParams instanceof Array&&c.config&&(this._ease=c.config.apply(c,r.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(e=this._targets.length;--e>-1;)this._initProps(this._targets[e],this._propLookup[e]={},this._siblings[e],o?o[e]:null)&&(t=!0);else t=this._initProps(this.target,this._propLookup,this._siblings,o);if(t&&M._onPluginEvent("_onInitAllProps",this),o&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),r.runBackwards)for(i=this._firstPT;i;)i.s+=i.c,i.c=-i.c,i=i._next;this._onUpdate=r.onUpdate,this._initted=!0},r._initProps=function(t,i,s,n){var r,o,a,l,c,h;if(null==t)return!1;for(r in I[t._gsTweenID]&&U(),this.vars.css||t.style&&t!==e&&t.nodeType&&z.css&&!1!==this.vars.autoCSS&&function(e,t){var i,s={};for(i in e)G[i]||i in t&&"transform"!==i&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"className"!==i&&"border"!==i||!(!z[i]||z[i]&&z[i]._autoCSS)||(s[i]=e[i],delete e[i]);e.css=s}(this.vars,t),this.vars)if(h=this.vars[r],G[r])h&&(h instanceof Array||h.push&&p(h))&&-1!==h.join("").indexOf("{self}")&&(this.vars[r]=h=this._swapSelfInParams(h,this));else if(z[r]&&(l=new z[r])._onInitTween(t,this.vars[r],this)){for(this._firstPT=c={_next:this._firstPT,t:l,p:"setRatio",s:0,c:1,f:1,n:r,pg:1,pr:l._priority},o=l._overwriteProps.length;--o>-1;)i[l._overwriteProps[o]]=this._firstPT;(l._priority||l._onInitAllProps)&&(a=!0),(l._onDisable||l._onEnable)&&(this._notifyPluginsOfEnabled=!0),c._next&&(c._next._prev=c)}else i[r]=D.call(this,t,r,"get",h,r,0,null,this.vars.stringFilter);return n&&this._kill(n,t)?this._initProps(t,i,s,n):this._overwrite>1&&this._firstPT&&s.length>1&&Q(t,this,i,this._overwrite,s)?(this._kill(i,t),this._initProps(t,i,s,n)):(this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration)&&(I[t._gsTweenID]=!0),a)},r.render=function(e,t,i){var s,n,r,o,a=this._time,l=this._duration,c=this._rawPrevTime;if(e>=l)this._totalTime=this._time=l,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(s=!0,n="onComplete",i=i||this._timeline.autoRemoveChildren),0===l&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(e=0),(0===e||0>c||c===h&&"isPause"!==this.data)&&c!==e&&(i=!0,c>h&&(n="onReverseComplete")),this._rawPrevTime=o=!t||e||c===e?e:h);else if(1e-7>e)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==a||0===l&&c>0)&&(n="onReverseComplete",s=this._reversed),0>e&&(this._active=!1,0===l&&(this._initted||!this.vars.lazy||i)&&(c>=0&&(c!==h||"isPause"!==this.data)&&(i=!0),this._rawPrevTime=o=!t||e||c===e?e:h)),this._initted||(i=!0);else if(this._totalTime=this._time=e,this._easeType){var d=e/l,u=this._easeType,p=this._easePower;(1===u||3===u&&d>=.5)&&(d=1-d),3===u&&(d*=2),1===p?d*=d:2===p?d*=d*d:3===p?d*=d*d*d:4===p&&(d*=d*d*d*d),this.ratio=1===u?1-d:2===u?d:.5>e/l?d/2:1-d/2}else this.ratio=this._ease.getRatio(e/l);if(this._time!==a||i){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=a,this._rawPrevTime=c,L.push(this),void(this._lazy=[e,t]);this._time&&!s?this.ratio=this._ease.getRatio(this._time/l):s&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(!1!==this._lazy&&(this._lazy=!1),this._active||!this._paused&&this._time!==a&&e>=0&&(this._active=!0),0===a&&(this._startAt&&(e>=0?this._startAt.render(e,t,i):n||(n="_dummyGS")),this.vars.onStart&&(0!==this._time||0===l)&&(t||this._callback("onStart"))),r=this._firstPT;r;)r.f?r.t[r.p](r.c*this.ratio+r.s):r.t[r.p]=r.c*this.ratio+r.s,r=r._next;this._onUpdate&&(0>e&&this._startAt&&-1e-4!==e&&this._startAt.render(e,t,i),t||(this._time!==a||s)&&this._callback("onUpdate")),n&&(!this._gc||i)&&(0>e&&this._startAt&&!this._onUpdate&&-1e-4!==e&&this._startAt.render(e,t,i),s&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!t&&this.vars[n]&&this._callback(n),0===l&&this._rawPrevTime===h&&o!==h&&(this._rawPrevTime=0))}},r._kill=function(e,t,i){if("all"===e&&(e=null),null==e&&(null==t||t===this.target))return this._lazy=!1,this._enabled(!1,!1);t="string"!=typeof t?t||this._targets||this.target:M.selector(t)||t;var s,n,r,o,a,l,c,h,d,u=i&&this._time&&i._startTime===this._startTime&&this._timeline===i._timeline;if((p(t)||q(t))&&"number"!=typeof t[0])for(s=t.length;--s>-1;)this._kill(e,t[s],i)&&(l=!0);else{if(this._targets){for(s=this._targets.length;--s>-1;)if(t===this._targets[s]){a=this._propLookup[s]||{},this._overwrittenProps=this._overwrittenProps||[],n=this._overwrittenProps[s]=e?this._overwrittenProps[s]||{}:"all";break}}else{if(t!==this.target)return!1;a=this._propLookup,n=this._overwrittenProps=e?this._overwrittenProps||{}:"all"}if(a){if(c=e||a,h=e!==n&&"all"!==n&&e!==a&&("object"!=typeof e||!e._tempKill),i&&(M.onOverwrite||this.vars.onOverwrite)){for(r in c)a[r]&&(d||(d=[]),d.push(r));if((d||!e)&&!Z(this,i,t,d))return!1}for(r in c)(o=a[r])&&(u&&(o.f?o.t[o.p](o.s):o.t[o.p]=o.s,l=!0),o.pg&&o.t._kill(c)&&(l=!0),o.pg&&0!==o.t._overwriteProps.length||(o._prev?o._prev._next=o._next:o===this._firstPT&&(this._firstPT=o._next),o._next&&(o._next._prev=o._prev),o._next=o._prev=null),delete a[r]),h&&(n[r]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return l},r.invalidate=function(){return this._notifyPluginsOfEnabled&&M._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],P.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-h,this.render(-this._delay)),this},r._enabled=function(e,t){if(a||o.wake(),e&&this._gc){var i,s=this._targets;if(s)for(i=s.length;--i>-1;)this._siblings[i]=$(s[i],this,!0);else this._siblings=$(this.target,this,!0)}return P.prototype._enabled.call(this,e,t),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&M._onPluginEvent(e?"_onEnable":"_onDisable",this)},M.to=function(e,t,i){return new M(e,t,i)},M.from=function(e,t,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new M(e,t,i)},M.fromTo=function(e,t,i,s){return s.startAt=i,s.immediateRender=0!=s.immediateRender&&0!=i.immediateRender,new M(e,t,s)},M.delayedCall=function(e,t,i,s,n){return new M(t,0,{delay:e,onComplete:t,onCompleteParams:i,callbackScope:s,onReverseComplete:t,onReverseCompleteParams:i,immediateRender:!1,lazy:!1,useFrames:n,overwrite:0})},M.set=function(e,t){return new M(e,0,t)},M.getTweensOf=function(e,t){if(null==e)return[];var i,s,n,r;if(e="string"!=typeof e?e:M.selector(e)||e,(p(e)||q(e))&&"number"!=typeof e[0]){for(i=e.length,s=[];--i>-1;)s=s.concat(M.getTweensOf(e[i],t));for(i=s.length;--i>-1;)for(r=s[i],n=i;--n>-1;)r===s[n]&&s.splice(i,1)}else for(i=(s=$(e).concat()).length;--i>-1;)(s[i]._gc||t&&!s[i].isActive())&&s.splice(i,1);return s},M.killTweensOf=M.killDelayedCallsTo=function(e,t,i){"object"==typeof t&&(i=t,t=!1);for(var s=M.getTweensOf(e,t),n=s.length;--n>-1;)s[n]._kill(i,e)};var K=g("plugins.TweenPlugin",function(e,t){this._overwriteProps=(e||"").split(","),this._propName=this._overwriteProps[0],this._priority=t||0,this._super=K.prototype},!0);if(r=K.prototype,K.version="1.18.0",K.API=2,r._firstPT=null,r._addTween=D,r.setRatio=N,r._kill=function(e){var t,i=this._overwriteProps,s=this._firstPT;if(null!=e[this._propName])this._overwriteProps=[];else for(t=i.length;--t>-1;)null!=e[i[t]]&&i.splice(t,1);for(;s;)null!=e[s.n]&&(s._next&&(s._next._prev=s._prev),s._prev?(s._prev._next=s._next,s._prev=null):this._firstPT===s&&(this._firstPT=s._next)),s=s._next;return!1},r._roundProps=function(e,t){for(var i=this._firstPT;i;)(e[this._propName]||null!=i.n&&e[i.n.split(this._propName+"_").join("")])&&(i.r=t),i=i._next},M._onPluginEvent=function(e,t){var i,s,n,r,o,a=t._firstPT;if("_onInitAllProps"===e){for(;a;){for(o=a._next,s=n;s&&s.pr>a.pr;)s=s._next;(a._prev=s?s._prev:r)?a._prev._next=a:n=a,(a._next=s)?s._prev=a:r=a,a=o}a=t._firstPT=n}for(;a;)a.pg&&"function"==typeof a.t[e]&&a.t[e]()&&(i=!0),a=a._next;return i},K.activate=function(e){for(var t=e.length;--t>-1;)e[t].API===K.API&&(z[(new e[t])._propName]=e[t]);return!0},_.plugin=function(e){if(!(e&&e.propName&&e.init&&e.API))throw"illegal plugin definition.";var t,i=e.propName,s=e.priority||0,n=e.overwriteProps,r={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_roundProps",initAll:"_onInitAllProps"},o=g("plugins."+i.charAt(0).toUpperCase()+i.substr(1)+"Plugin",function(){K.call(this,i,s),this._overwriteProps=n||[]},!0===e.global),a=o.prototype=new K(i);for(t in a.constructor=o,o.API=e.API,r)"function"==typeof e[t]&&(a[r[t]]=e[t]);return o.version=e.version,K.activate([o]),o},s=e._gsQueue){for(n=0;s.length>n;n++)s[n]();for(r in m)m[r].func||e.console.log("GSAP encountered missing dependency: com.greensock."+r)}a=!1}}("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window);var _gsScope,tns=function(){function e(){for(var e,t,i,s=arguments[0]||{},n=1,r=arguments.length;n<r;n++)if(null!==(e=arguments[n]))for(t in e)s!==(i=e[t])&&void 0!==i&&(s[t]=i);return s}function t(e){return["true","false"].indexOf(e)>=0?JSON.parse(e):e}function i(e,t,i){return i&&localStorage.setItem(e,t),t}function s(){var e=document,t=e.body;return t||((t=e.createElement("body")).fake=!0),t}Object.keys||(Object.keys=function(e){var t=[];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.push(i);return t}),function(){"use strict";"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)})}();var n=document.documentElement;function r(e){var t="";return e.fake&&(t=n.style.overflow,e.style.background="",e.style.overflow=n.style.overflow="hidden",n.appendChild(e)),t}function o(e,t){e.fake&&(e.remove(),n.style.overflow=t,n.offsetHeight)}function a(e,t,i,s){"insertRule"in e?e.insertRule(t+"{"+i+"}",s):e.addRule(t,i,s)}function l(e){return("insertRule"in e?e.cssRules:e.rules).length}function c(e,t){return e.className.indexOf(t)>=0}function h(e,t){c(e,t)||(e.className+=" "+t)}function d(e,t){c(e,t)&&(e.className=e.className.replace(t,""))}function u(e,t){return e.hasAttribute(t)}function p(e){return void 0!==e.item}function m(e,t){if(e=p(e)||e instanceof Array?e:[e],"[object Object]"===Object.prototype.toString.call(t))for(var i=e.length;i--;)for(var s in t)e[i].setAttribute(s,t[s])}function f(e,t){e=p(e)||e instanceof Array?e:[e];for(var i=(t=t instanceof Array?t:[t]).length,s=e.length;s--;)for(var n=i;n--;)e[s].removeAttribute(t[n])}function _(e){u(e,"hidden")||m(e,{hidden:""})}function g(e){u(e,"hidden")&&f(e,"hidden")}function v(e){return e.offsetWidth>0&&e.offsetHeight>0}function y(e){for(var t=document.createElement("fakeelement"),i=(e.length,0);i<e.length;i++){var s=e[i];if(void 0!==t.style[s])return s}return!1}function w(e,t){var i=!1;return/^Webkit/.test(e)?i="webkit"+t+"End":/^O/.test(e)?i="o"+t+"End":e&&(i=t.toLowerCase()+"end"),i}var b=!1;try{var S=Object.defineProperty({},"passive",{get:function(){b=!0}});window.addEventListener("test",null,S)}catch(e){}var x=!!b&&{passive:!0};function T(e,t){for(var i in t){var s=("touchstart"===i||"touchmove"===i)&&x;e.addEventListener(i,t[i],s)}}function C(e,t){for(var i in t){var s=["touchstart","touchmove"].indexOf(i)>=0&&x;e.removeEventListener(i,t[i],s)}}var E=navigator.userAgent,k=!0,P={};try{(P=localStorage).tnsApp?P.tnsApp!==E&&(P.tnsApp=E,["tC","tSP","tMQ","tTf","tTDu","tTDe","tADu","tADe","tTE","tAE"].forEach(function(e){P.removeItem(e)})):P.tnsApp=E}catch(e){k=!1}var A=document,O=window,M={ENTER:13,SPACE:32,PAGEUP:33,PAGEDOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40},q=t(P.tC)||i("tC",function(){var e=document,t=s(),i=r(t),n=e.createElement("div"),a=!1;t.appendChild(n);try{for(var l,c=["calc(10px)","-moz-calc(10px)","-webkit-calc(10px)"],h=0;h<3;h++)if(l=c[h],n.style.width=l,10===n.offsetWidth){a=l.replace("(10px)","");break}}catch(e){}return t.fake?o(t,i):n.remove(),a}(),k),L=t(P.tSP)||i("tSP",function(){var e,t,i=document,n=s(),a=r(n),l=i.createElement("div"),c=i.createElement("div");return l.style.cssText="width: 10px",c.style.cssText="float: left; width: 5.5px; height: 10px;",e=c.cloneNode(!0),l.appendChild(c),l.appendChild(e),n.appendChild(l),t=c.offsetTop!==e.offsetTop,n.fake?o(n,a):l.remove(),t}(),k),I=t(P.tMQ)||i("tMQ",function(){var e,t=document,i=s(),n=r(i),a=t.createElement("div"),l=t.createElement("style"),c="@media all and (min-width:1px){.tns-mq-test{position:absolute}}";return l.type="text/css",a.className="tns-mq-test",i.appendChild(l),i.appendChild(a),l.styleSheet?l.styleSheet.cssText=c:l.appendChild(t.createTextNode(c)),e=window.getComputedStyle?window.getComputedStyle(a).position:a.currentStyle.position,i.fake?o(i,n):a.remove(),"absolute"===e}(),k),B=t(P.tTf)||i("tTf",y(["transform","WebkitTransform","MozTransform","msTransform","OTransform"]),k),N=t(P.tTDu)||i("tTDu",y(["transitionDuration","WebkitTransitionDuration","MozTransitionDuration","OTransitionDuration"]),k),R=t(P.tTDe)||i("tTDe",y(["transitionDelay","WebkitTransitionDelay","MozTransitionDelay","OTransitionDelay"]),k),D=t(P.tADu)||i("tADu",y(["animationDuration","WebkitAnimationDuration","MozAnimationDuration","OAnimationDuration"]),k),V=t(P.tADe)||i("tADe",y(["animationDelay","WebkitAnimationDelay","MozAnimationDelay","OAnimationDelay"]),k),z=t(P.tTE)||i("tTE",w(N,"Transition"),k),H=t(P.tAE)||i("tAE",w(D,"Animation"),k);I||(L=!1);return function(t){t=e({container:A.querySelector(".slider"),mode:"carousel",axis:"horizontal",items:1,gutter:0,edgePadding:0,fixedWidth:!1,slideBy:1,controls:!0,controlsText:["prev","next"],controlsContainer:!1,nav:!0,navContainer:!1,navAsThumbnails:!1,arrowKeys:!1,speed:300,autoplay:!1,autoplayTimeout:5e3,autoplayDirection:"forward",autoplayText:["start","stop"],autoplayHoverPause:!1,autoplayButton:!1,autoplayButtonOutput:!0,autoplayResetOnVisibility:!0,loop:!0,rewind:!1,autoHeight:!1,responsive:!1,lazyload:!1,touch:!0,mouseDrag:!1,nested:!1,freezable:!0,onInit:!1},t||{}),["container","controlsContainer","navContainer","autoplayButton"].forEach(function(e){"string"==typeof t[e]&&(t[e]=A.querySelector(t[e]))});var i=O.console&&"function"==typeof O.console.warn;if(t.container&&t.container.nodeName){if(t.container.children.length,t.responsive){var s={},n=t.responsive;for(var r in n){var o=n[r];s[r]="number"==typeof o?{items:o}:o}t.responsive=s,s=null,0 in t.responsive&&delete(t=e(t,t.responsive[0])).responsive[0]}var p="carousel"===t.mode;if(!p){t.axis="horizontal",t.rewind=!1,t.loop=!0,t.edgePadding=!1;var y="tns-fadeIn",w="tns-fadeOut",b=!1,S=t.animateNormal||"tns-normal";z&&H&&(y=t.animateIn||y,w=t.animateOut||w,b=t.animateDelay||b)}var x,E="horizontal"===t.axis,k=A.createElement("div"),P=A.createElement("div"),F=t.container,G=F.parentNode,W=F.children,j=W.length,Y=G.clientWidth,X=t.responsive,U=[],$=!1,Z=0,Q=Ft();if(X){($=Object.keys(X).map(function(e){return parseInt(e)}).sort(function(e,t){return e-t})).forEach(function(e){U=U.concat(Object.keys(X[e]))});var J=[];U.forEach(function(e){J.indexOf(e)<0&&J.push(e)}),U=J,Qt()}var K,ee,te,ie,se,ne,re,oe=Wt("items"),ae="page"===Wt("slideBy")?oe:Wt("slideBy"),le=t.nested,ce=Wt("gutter"),he=Wt("edgePadding"),de=Wt("fixedWidth"),ue=Wt("arrowKeys"),pe=Wt("speed"),me=t.rewind,fe=!me&&t.loop,_e=Wt("autoHeight"),ge=(re=document.createElement("style"),ne&&re.setAttribute("media",ne),document.querySelector("head").appendChild(re),re.sheet?re.sheet:re.styleSheet),ve=t.lazyload,ye=[],we=fe?2*j:0,be=p?j+2*we:j+we,Se=!(!de||fe||he),xe=!p||!fe,Te=E?"left":"top",Ce="",Ee="",ke=Wt("startIndex"),Pe=ke?(Ht=ke,(Ht%=j)<0&&(Ht+=j),Ht=Math.min(Ht,be-oe)):p?we:0,Ae=Pe,Oe=0,Me=be-oe,qe=!1,Le=t.onInit,Ie=new function(){return{topics:{},on:function(e,t){this.topics[e]=this.topics[e]||[],this.topics[e].push(t)},off:function(e,t){if(this.topics[e])for(var i=0;i<this.topics[e].length;i++)if(this.topics[e][i]===t){this.topics[e].splice(i,1);break}},emit:function(e,t){this.topics[e]&&this.topics[e].forEach(function(e){e(t)})}}},Be=F.id,Ne=" tns-slider tns-"+t.mode,Re=F.id||(se=window.tnsId,window.tnsId=se?se+1:1,"tns"+window.tnsId),De=Wt("disable"),Ve=t.freezable,ze=!!De||!!Ve&&j<=oe,He="inner"===le?" !important":"",Fe={click:wi,keydown:function(e){switch((e=e||O.event).keyCode){case M.LEFT:case M.UP:case M.PAGEUP:it.disabled||wi(e,-1);break;case M.RIGHT:case M.DOWN:case M.PAGEDOWN:st.disabled||wi(e,1);break;case M.HOME:yi(0,e);break;case M.END:yi(j-1,e)}}},Ge={click:function(e){if(!qe){for(var t=(e=e||O.event).target||e.srcElement;t!==dt&&!u(t,"data-nav");)t=t.parentNode;u(t,"data-nav")&&yi(mt=[].indexOf.call(ct,t),e)}},keydown:function(e){var i=A.activeElement;if(u(i,"data-nav")){var s=(e=e||O.event).keyCode,n=[].indexOf.call(ct,i),r=ut.length,o=ut.indexOf(n);switch(t.navContainer&&(r=j,o=n),s){case M.LEFT:case M.PAGEUP:o>0&&ki(ct[a(o-1)]);break;case M.UP:case M.HOME:o>0&&ki(ct[a(0)]);break;case M.RIGHT:case M.PAGEDOWN:o<r-1&&ki(ct[a(o+1)]);break;case M.DOWN:case M.END:o<r-1&&ki(ct[a(r-1)]);break;case M.ENTER:case M.SPACE:mt=n,yi(n,e)}}function a(e){return t.navContainer?e:ut[e]}}},We={mouseover:function(){yt&&(Si(),wt=!0)},mouseout:function(){wt&&(bi(),wt=!1)}},je={visibilitychange:function(){A.hidden?yt&&(Si(),bt=!0):bt&&(bi(),bt=!1)}},Ye={keydown:function(e){switch((e=e||O.event).keyCode){case M.LEFT:wi(e,-1);break;case M.RIGHT:wi(e,1)}}},Xe={touchstart:Mi,touchmove:qi,touchend:Li,touchcancel:Li},Ue={mousedown:Mi,mousemove:qi,mouseup:Li,mouseleave:Li},$e=Gt("controls"),Ze=Gt("nav"),Qe=t.navAsThumbnails,Je=Gt("autoplay"),Ke=Gt("touch"),et=Gt("mouseDrag"),tt="tns-slide-active";if($e)var it,st,nt,rt,ot=Wt("controls"),at=Wt("controlsText"),lt=t.controlsContainer;if(Ze)var ct,ht=Wt("nav"),dt=t.navContainer,ut=[],pt=ut,mt=-1,ft=Pe%j,_t=ft,gt="tns-nav-active";if(Je)var vt,yt,wt,bt,St=Wt("autoplay"),xt=Wt("autoplayTimeout"),Tt="forward"===t.autoplayDirection?1:-1,Ct=Wt("autoplayText"),Et=Wt("autoplayHoverPause"),kt=t.autoplayButton,Pt=Wt("autoplayResetOnVisibility"),At=["<span class='tns-visually-hidden'>"," animation</span>"];if(Ke)var Ot,Mt,qt,Lt=Wt("touch"),It=null,Bt=null,Nt=0;if(et)var Rt=Wt("mouseDrag"),Dt=!1;ze&&(ot=ht=Lt=Rt=ue=St=Et=Pt=!1),B&&(Te=B,Ce="translate",Ce+=E?"X(":"Y(",Ee=")"),function(){k.appendChild(P),G.insertBefore(k,F),P.appendChild(F),x=P.clientWidth;var e="tns-outer",i="tns-inner",s=Gt("gutter");if(p?E&&(Gt("edgePadding")||s&&!t.fixedWidth)?e+=" tns-ovh":i+=" tns-ovh":s&&(e+=" tns-ovh"),k.className=e,P.className=i,P.id=Re+"-iw",_e&&(P.className+=" tns-ah",P.style[N]=pe/1e3+"s"),""===F.id&&(F.id=Re),Ne+=L?" tns-subpixel":" tns-no-subpixel",Ne+=q?" tns-calc":" tns-no-calc",p&&(Ne+=" tns-"+t.axis),F.className+=Ne,p&&z){var n={};n[z]=vi,T(F,n)}e=i=null;for(var r=0;r<j;r++)(C=W[r]).id||(C.id=Re+"-item"+r),h(C,"tns-item"),!p&&S&&h(C,S),m(C,{"aria-hidden":"true",tabindex:"-1"});if(fe||he){for(var o=A.createDocumentFragment(),c=A.createDocumentFragment(),u=we;u--;){var g=u%j,v=W[g].cloneNode(!0);if(f(v,"id"),c.insertBefore(v,c.firstChild),p){var w=W[j-1-g].cloneNode(!0);f(w,"id"),o.appendChild(w)}}F.insertBefore(o,F.firstChild),F.appendChild(c),W=F.children}for(var b=Pe;b<Pe+Math.min(j,oe);b++){var C;m(C=W[b],{"aria-hidden":"false"}),f(C,["tabindex"]),h(C,tt),p||(C.style.left=100*(b-Pe)/oe+"%",h(C,y),d(C,S))}if(p&&E&&(L?(a(ge,"#"+Re+" > .tns-item","font-size:"+O.getComputedStyle(W[0]).fontSize+";",l(ge)),a(ge,"#"+Re,"font-size:0;",l(ge))):[].forEach.call(W,function(e,t){e.style.marginLeft=function(e){return q?q+"("+100*e+"% / "+be+")":100*e/be+"%"}(t)})),I){var M=jt(t.edgePadding,t.gutter,t.fixedWidth);a(ge,"#"+Re+"-iw",M,l(ge)),p&&E&&(M="width:"+Yt(t.fixedWidth,t.gutter,t.items),a(ge,"#"+Re,M,l(ge))),(E||t.gutter)&&(M=Xt(t.fixedWidth,t.gutter,t.items)+Ut(t.gutter),a(ge,"#"+Re+" > .tns-item",M,l(ge)))}else P.style.cssText=jt(he,ce,de),p&&E&&(F.style.width=Yt(de,ce,oe)),(E||ce)&&(M=Xt(de,ce,oe)+Ut(ce),a(ge,"#"+Re+" > .tns-item",M,l(ge)));if(E||De||(ri(),Ii()),X&&I&&$.forEach(function(e){var t,i=X[e],s="",n="",r="",o=Wt("items",e),a=Wt("fixedWidth",e),l=Wt("edgePadding",e),c=Wt("gutter",e);("edgePadding"in i||"gutter"in i)&&(s="#"+Re+"-iw{"+jt(l,c,a)+"}"),p&&E&&("fixedWidth"in i||"gutter"in i||"items"in i)&&(n="#"+Re+"{width:"+Yt(a,c,o)+"}"),("fixedWidth"in i||Gt("fixedWidth")&&"gutter"in i||!p&&"items"in i)&&(r+=Xt(a,c,o)),"gutter"in i&&(r+=Ut(c)),r.length>0&&(r="#"+Re+" > .tns-item{"+r+"}"),(t=s+n+r).length>0&&ge.insertRule("@media (min-width: "+e/16+"em) {"+t+"}",ge.cssRules.length)}),p&&!De&&pi(),navigator.msMaxTouchPoints&&(h(k,"ms-touch"),T(k,{scroll:Pi}),oi()),Ze){var B=p?we:0;if(dt)m(dt,{"aria-label":"Carousel Pagination"}),ct=dt.children,[].forEach.call(ct,function(e,t){m(e,{"data-nav":t,tabindex:"-1","aria-selected":"false","aria-controls":W[B+t].id})});else{var R="";for(b=0;b<j;b++)R+='<button data-nav="'+b+'" tabindex="-1" aria-selected="false" aria-controls="'+W[B+b].id+'" hidden type="button"></button>';R='<div class="tns-nav" aria-label="Carousel Pagination">'+R+"</div>",k.insertAdjacentHTML("afterbegin",R),dt=k.querySelector(".tns-nav"),ct=dt.children}if(Bi(),N){var D=N.substring(0,N.length-18).toLowerCase();M="transition: all "+pe/1e3+"s",D&&(M="-"+D+"-"+M),a(ge,"[aria-controls^="+Re+"-item]",M,l(ge))}m(ct[ft],{tabindex:"0","aria-selected":"true"}),h(ct[ft],gt),T(dt,Ge),ht||_(dt)}if(Je){var V=St?"stop":"start";kt?m(kt,{"data-action":V}):t.autoplayButtonOutput&&(P.insertAdjacentHTML("beforebegin",'<button data-action="'+V+'" type="button">'+At[0]+V+At[1]+Ct[0]+"</button>"),kt=k.querySelector("[data-action]")),kt&&T(kt,{click:Ei}),St?(Ti(),Et&&T(F,We),Pt&&T(F,je)):kt&&_(kt)}$e&&(lt?(it=lt.children[0],st=lt.children[1],m(lt,{"aria-label":"Carousel Navigation",tabindex:"0"}),m(it,{"data-controls":"prev"}),m(st,{"data-controls":"next"}),m(lt.children,{"aria-controls":Re,tabindex:"-1"})):(k.insertAdjacentHTML("afterbegin",'<div class="tns-controls" aria-label="Carousel Navigation" tabindex="0"><button data-controls="prev" tabindex="-1" aria-controls="'+Re+'" type="button">'+at[0]+'</button><button data-controls="next" tabindex="-1" aria-controls="'+Re+'" type="button">'+at[1]+"</button></div>"),lt=k.querySelector(".tns-controls"),it=lt.children[0],st=lt.children[1]),nt=ai(it),rt=ai(st),hi(),T(lt,Fe),ot||_(lt)),Lt&&T(F,Xe),Rt&&T(F,Ue),ue&&T(A,Ye),"inner"===le?Ie.on("outerResized",function(){Zt(),Ie.emit("innerLoaded",Ni())}):(T(O,{resize:$t}),"outer"===le&&Ie.on("innerLoaded",ii)),ti(),ii(),Jt(),Kt(),Ie.on("indexChanged",si),"function"==typeof Le&&Le(Ni()),"inner"===le&&Ie.emit("innerLoaded",Ni()),De&&ei(!0)}(),window.innerWidth<=539&&Zt();var Vt=fe?function(){var e=Oe,t=Me;if(p)if(e+=ae,t-=ae,he)e+=1,t-=1;else if(de){var i=ce||0;Y%(de+i)>i&&(t-=1)}if(Pe>t)for(;Pe>=e+j;)Pe-=j;else if(Pe<e)for(;Pe<=t-j;)Pe+=j}:function(){Pe=Math.max(Oe,Math.min(Me,Pe))},zt=p?function(e,t){t||(t=ui()),Se&&Pe===Me&&(t=-((de+ce)*be-x)+"px"),N||!e?(pi(t),e&&v(F)||vi()):function(e,t,i,s,n,r,o){var a=Math.min(r,10),l=n.indexOf("%")>=0?"%":"px",c=(n=n.replace(l,""),Number(e.style[t].replace(i,"").replace(s,"").replace(l,""))),h=(n-c)/r*a;setTimeout(function n(){r-=a,c+=h,e.style[t]=i+c+l+s,r>0?setTimeout(n,a):o()},a)}(F,Te,Ce,Ee,t,pe,vi),E||Ii()}:function(e){ye=[];var t={};t[z]=t[H]=vi,C(W[Ae],t),T(W[Pe],t),mi(Ae,y,w,!0),mi(Pe,S,y),z&&H&&e||vi()};return{getInfo:Ni,events:Ie,goTo:yi,play:function(){St&&!yt&&Ti()},pause:function(){yt&&Ci()},destroy:function(){if(ge.disabled=!0,fe)for(var e=we;e--;)p&&W[0].remove(),W[W.length-1].remove();var i=["tns-item",tt];p||(i=i.concat("tns-normal",y));for(var s=j;s--;){var n=W[s];n.id.indexOf(Re+"-item")>=0&&(n.id=""),i.forEach(function(e){d(n,e)})}if(f(W,["style","aria-hidden","tabindex"]),W=Re=j=be=we=null,ot&&(C(lt,Fe),t.controlsContainer&&(f(lt,["aria-label","tabindex"]),f(lt.children,["aria-controls","aria-disabled","tabindex"])),lt=it=st=null),ht&&(C(dt,Ge),t.navContainer&&(f(dt,["aria-label"]),f(ct,["aria-selected","aria-controls","tabindex"])),dt=ct=null),St&&(clearInterval(vt),kt&&C(kt,{click:Ei}),C(F,We),C(F,je),t.autoplayButton&&f(kt,["data-action"])),F.id=Be||"",F.className=F.className.replace(Ne,""),F.style.transform="",p&&z){var r={};r[z]=vi,C(F,r)}C(F,Xe),C(F,Ue),G.insertBefore(F,k),k.remove(),k=P=F=null,C(A,Ye),C(O,{resize:$t})}}}var Ht;function Ft(){return O.innerWidth||A.documentElement.clientWidth||A.body.clientWidth}function Gt(e){var i=t[e];return!i&&$&&U.indexOf(e)>=0&&$.forEach(function(t){X[t][e]&&(i=!0)}),i}function Wt(e,i){i=i||Q;var s,n={slideBy:"page",edgePadding:!1,autoHeight:!0};if(!p&&e in n)s=n[e];else if("items"===e&&Wt("fixedWidth"))s=Math.floor(Y/(Wt("fixedWidth")+Wt("gutter")));else if("autoHeight"===e&&"outer"===le)s=!0;else if(s=t[e],$&&U.indexOf(e)>=0)for(var r=0,o=$.length;r<o;r++){var a=$[r];if(!(i>=a))break;e in X[a]&&(s=X[a][e])}return"slideBy"===e&&"page"===s&&(s=Wt("items")),s}function jt(e,t,i){var s="";if(e){var n=e;t&&(n+=t),s=i?"margin: 0px "+(Y%(i+t)+t)/2+"px":E?"margin: 0 "+e+"px 0 "+n+"px;":"padding: "+n+"px 0 "+e+"px 0;"}else if(t&&!i){var r="-"+t+"px";s="margin: 0 "+(E?r+" 0 0":"0 "+r+" 0")+";"}return s}function Yt(e,t,i){return e?(e+t)*be+"px":q?q+"("+100*be+"% / "+i+")":100*be/i+"%"}function Xt(e,t,i){var s="";if(E){if(s="width:",e)s+=e+t+"px";else{var n=p?be:i;s+=q?q+"(100% / "+n+")":100/n+"%"}s+=He+";"}return s}function Ut(e){var t="";return!1!==e&&(t=(E?"padding-":"margin-")+(E?"right":"bottom")+": "+e+"px;"),t}function $t(e){e=e||O.event,clearTimeout(ee),ee=setTimeout(function(){var t=Ft();Q!==t&&(Q=t,Zt(),"outer"===le&&Ie.emit("outerResized",Ni(e)))},100)}function Zt(){var e=Z,t=Pe,i=oe,s=ze;if(Y=k.clientWidth,x=P.clientWidth,$&&Qt(),e!==Z||de){var n=ue,r=_e,o=de,c=he,u=ce,m=De;if(oe=Wt("items"),ae=Wt("slideBy"),De=Wt("disable"),ze=!!De||!!Ve&&j<=oe,oe!==i&&(Me=be-oe,Vt()),De!==m&&ei(De),ze!==s&&(ze&&(Pe=p?we:0),Jt()),e!==Z&&(pe=Wt("speed"),he=Wt("edgePadding"),ce=Wt("gutter"),de=Wt("fixedWidth"),De||de===o||pi(),(_e=Wt("autoHeight"))!==r&&(_e||(P.style.height=""))),(ue=!ze&&Wt("arrowKeys"))!==n&&(ue?T(A,Ye):C(A,Ye)),$e){var f=ot,v=at;ot=!ze&&Wt("controls"),at=Wt("controlsText"),ot!==f&&(ot?g(lt):_(lt)),at!==v&&(it.innerHTML=at[0],st.innerHTML=at[1])}if(Ze){var b=ht;(ht=!ze&&Wt("nav"))!==b&&(ht?(g(dt),Bi()):_(dt))}if(Ke){var O=Lt;(Lt=!ze&&Wt("touch"))!==O&&p&&(Lt?T(F,Xe):C(F,Xe))}if(et){var M=Rt;(Rt=!ze&&Wt("mouseDrag"))!==M&&p&&(Rt?T(F,Ue):C(F,Ue))}if(Je){var q=St,L=Et,B=Pt,N=Ct;if(ze?St=Et=Pt=!1:(St=Wt("autoplay"))?(Et=Wt("autoplayHoverPause"),Pt=Wt("autoplayResetOnVisibility")):Et=Pt=!1,Ct=Wt("autoplayText"),xt=Wt("autoplayTimeout"),St!==q&&(St?(kt&&g(kt),yt||Ti()):(kt&&_(kt),yt&&Ci())),Et!==L&&(Et?T(F,We):C(F,We)),Pt!==B&&(Pt?T(A,je):C(A,je)),kt&&Ct!==N){var R=St?1:0,D=kt.innerHTML,V=D.length-N[R].length;D.substring(V)===N[R]&&(kt.innerHTML=D.substring(0,V)+Ct[R])}}if(!I){if(ze||he===c&&ce===u||(P.style.cssText=jt(he,ce,de)),p&&E&&(de!==o||ce!==u||oe!==i)&&(F.style.width=Yt(de,ce,oe)),E&&(oe!==i||ce!==u||de!=o)){var z=Xt(de,ce,oe)+Ut(ce);ge.removeRule(l(ge)-1),a(ge,"#"+Re+" > .tns-item",z,l(ge))}de||Pe!==t||fi(0)}Pe!==t&&(Ie.emit("indexChanged",Ni()),fi(0),Ae=Pe),oe!==i&&(si(),function(){if(!p){for(var e=Pe+Math.min(j,oe),t=be;t--;){var i=W[t];t>=Pe&&t<e?(h(i,"tns-moving"),i.style.left=100*(t-Pe)/oe+"%",h(i,y),d(i,S)):i.style.left&&(i.style.left="",h(i,S),d(i,y)),d(i,w)}setTimeout(function(){[].forEach.call(W,function(e){d(e,"tns-moving")})},300)}}(),ii(),navigator.msMaxTouchPoints&&oi())}E||De||(ri(),Ii(),pi()),Kt(!0),ii()}function Qt(){Z=0,$.forEach(function(e,t){Q>=e&&(Z=t+1)})}function Jt(){var e="tns-transparent";if(ze){if(!ie){if(he&&(P.style.margin="0px"),we)for(var t=we;t--;)p&&h(W[t],e),h(W[be-t-1],e);ie=!0}}else if(ie){if(he&&!de&&I&&(P.style.margin=""),we)for(t=we;t--;)p&&d(W[t],e),d(W[be-t-1],e);ie=!1}}function Kt(e){de&&he&&(ze||Y<=de+ce?"0px"!==P.style.margin&&(P.style.margin="0px"):e&&(P.style.cssText=jt(he,ce,de)))}function ei(e){var t=W.length;if(e){if(ge.disabled=!0,F.className=F.className.replace(Ne.substring(1),""),F.style.transform="",fe)for(var i=we;i--;)p&&_(W[i]),_(W[t-i-1]);if(E&&p||(P.style=""),!p)for(var s=Pe;s<Pe+j;s++)(n=W[s]).style="",d(n,y),d(n,S)}else{if(ge.disabled=!1,F.className+=Ne,E||ri(),pi(),fe)for(i=we;i--;)p&&g(W[i]),g(W[t-i-1]);if(!p)for(s=Pe;s<Pe+j;s++){var n=W[s],r=s<Pe+oe?y:S;n.style.left=100*(s-Pe)/oe+"%",h(n,r)}}}function ti(){if(ve&&!De){var e=Pe,t=Pe+oe;for(he&&(e-=1,t+=1);e<t;e++)[].forEach.call(W[e].querySelectorAll(".tns-lazy-img"),function(e){var t,i={};i[z]=function(e){e.stopPropagation()},T(e,i),c(e,"loaded")||(e.src=(t="data-src",e.getAttribute(t)),h(e,"loaded"))})}}function ii(){if(_e&&!De){for(var e=[],t=Pe;t<Pe+oe;t++)[].forEach.call(W[t].querySelectorAll("img"),function(t){e.push(t)});0===e.length?ni():function e(t){t.forEach(function(e,i){(function(e){return"boolean"==typeof e.complete?e.complete:"number"==typeof e.naturalWidth?0!==e.naturalWidth:void 0})(e)&&t.splice(i,1)}),0===t.length?ni():setTimeout(function(){e(t)},16)}(e)}}function si(){ti(),function(){for(var e=Pe+Math.min(j,oe),t=be;t--;){var i=W[t];t>=Pe&&t<e?u(i,"tabindex")&&(m(i,{"aria-hidden":"false"}),f(i,["tabindex"]),h(i,tt)):(u(i,"tabindex")||m(i,{"aria-hidden":"true",tabindex:"-1"}),c(i,tt)&&d(i,tt))}}(),hi(),Bi(),function(){if(ht&&(ft=-1!==mt?mt:Pe%j,mt=-1,ft!==_t)){var e=ct[_t],t=ct[ft];m(e,{tabindex:"-1","aria-selected":"false"}),m(t,{tabindex:"0","aria-selected":"true"}),d(e,gt),h(t,gt)}}()}function ni(){for(var e,t=[],i=Pe;i<Pe+oe;i++)t.push(W[i].offsetHeight);e=Math.max.apply(null,t),P.style.height!==e&&(N&&di(pe),P.style.height=e+"px")}function ri(){K=[0];for(var e,t=W[0].getBoundingClientRect().top,i=1;i<be;i++)e=W[i].getBoundingClientRect().top,K.push(e-t)}function oi(){k.style.msScrollSnapPointsX="snapInterval(0%, "+100/oe+"%)"}function ai(e){return"button"===e.nodeName.toLowerCase()}function li(e){return"true"===e.getAttribute("aria-disabled")}function ci(e,t,i){e?t.disabled=i:t.setAttribute("aria-disabled",i.toString())}function hi(){if(ot&&!me&&!fe){var e=nt?it.disabled:li(it),t=rt?st.disabled:li(st),i=Pe===Oe,s=!me&&Pe===Me;i&&!e&&ci(nt,it,!0),!i&&e&&ci(nt,it,!1),s&&!t&&ci(rt,st,!0),!s&&t&&ci(rt,st,!1)}}function di(e,t){e=e?e/1e3+"s":"",(t=t||F).style[N]=e,p||(t.style[D]=e),E||(P.style[N]=e)}function ui(){return E?de?-(de+ce)*Pe+"px":100*-Pe/(B?be:oe)+"%":-K[Pe]+"px"}function pi(e){e||(e=ui()),F.style[Te]=Ce+e+Ee}function mi(e,t,i,s){for(var n=e,r=e+oe;n<r;n++){var o=W[n];s||(o.style.left=100*(n-Pe)/oe+"%"),N&&di(pe,o),b&&R&&(o.style[R]=o.style[V]=b*(n-e)/1e3+"s"),d(o,t),h(o,i),s&&ye.push(o)}}function fi(e,t){isNaN(e)&&(e=pe),yt&&!v(F)&&(e=0),N&&di(e),zt(e,t)}function _i(e,t){xe&&Vt(),(Pe!==Ae||t)&&(Ie.emit("indexChanged",Ni()),Ie.emit("transitionStart",Ni()),yt&&e&&["click","keydown"].indexOf(e.type)>=0&&Ci(),qe=!0,fi())}function gi(e){return e.toLowerCase().replace(/-/g,"")}function vi(e){if(p||qe){if(Ie.emit("transitionEnd",Ni(e)),!p&&ye.length>0)for(var t=0;t<oe;t++){var i=ye[t];i.style.left="",N&&di(0,i),b&&R&&(i.style[R]=i.style[V]=""),d(i,w),h(i,S)}if(!e||!p&&e.target.parentNode===F||e.target===F&&gi(e.propertyName)===gi(Te)){if(!xe){var s=Pe;Vt(),Pe!==s&&(Ie.emit("indexChanged",Ni()),N&&di(0),pi())}ii(),"inner"===le&&Ie.emit("innerLoaded",Ni()),qe=!1,_t=ft,Ae=Pe}}}function yi(e,t){if(!ze)if("prev"===e)wi(t,-1);else if("next"===e)wi(t,1);else if(!qe){var i=Pe%j,s=0;if(i<0&&(i+=j),"first"===e)s=-i;else if("last"===e)s=j-oe-i;else if("number"!=typeof e&&(e=parseInt(e)),!isNaN(e)){var n=e%j;n<0&&(n+=j),s=n-i}(Pe+=s)%j!=Ae%j&&_i(t)}}function wi(e,t){if(!qe){var i;if(!t){for(var s=(e=e||O.event).target||e.srcElement;s!==lt&&[it,st].indexOf(s)<0;)s=s.parentNode;var n=[it,st].indexOf(s);n>=0&&(i=!0,t=0===n?-1:1)}if(me){if(Pe===Oe&&-1===t)return void yi("last",e);if(Pe===Me&&1===t)return void yi(0,e)}t&&(Pe+=ae*t,_i(i||e&&"keydown"===e.type?e:null))}}function bi(){vt=setInterval(function(){wi(null,Tt)},xt),yt=!0}function Si(){clearInterval(vt),yt=!1}function xi(e,t){m(kt,{"data-action":e}),kt.innerHTML=At[0]+e+At[1]+t}function Ti(){bi(),kt&&xi("stop",Ct[1])}function Ci(){Si(),kt&&xi("start",Ct[0])}function Ei(){yt?Ci():Ti()}function ki(e){e.focus()}function Pi(){fi(0,F.scrollLeft()),Ae=Pe}function Ai(e){return e.type.indexOf("touch")>=0}function Oi(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Mi(e){var t;Nt=0,te=!1,It=Bt=null,qe||(Ai(e=e||O.event)?(t=e.changedTouches[0],Ie.emit("touchStart",Ni(e))):(t=e,Oi(e),Ie.emit("dragStart",Ni(e))),It=parseInt(t.clientX),Bt=parseInt(t.clientY),Ot=parseFloat(F.style[Te].replace(Ce,"").replace(Ee,"")))}function qi(e){var i,s,n,r,o;if(!qe&&null!==It&&(Ai(e=e||O.event)?i=e.changedTouches[0]:(i=e,Oi(e)),Mt=parseInt(i.clientX)-It,qt=parseInt(i.clientY)-Bt,0===Nt&&(s=function(e,t){return Math.atan2(e,t)*(180/Math.PI)}(qt,Mt),n=15,r=!1,(o=Math.abs(90-Math.abs(s)))>=90-n?r="horizontal":o<=n&&(r="vertical"),Nt=r===t.axis),Nt)){Ai(e)?Ie.emit("touchMove",Ni(e)):(Dt||(Dt=!0),Ie.emit("dragMove",Ni(e))),te||(te=!0);var a=Ot;E?de?(a+=Mt,a+="px"):(a+=B?Mt*oe*100/(x*be):100*Mt/x,a+="%"):(a+=qt,a+="px"),B&&di(0),F.style[Te]=Ce+a+Ee}}function Li(e){if(!qe&&te){var t;Ai(e=e||O.event)?(t=e.changedTouches[0],Ie.emit("touchEnd",Ni(e))):(t=e,Ie.emit("dragEnd",Ni(e))),Mt=parseInt(t.clientX)-It,qt=parseInt(t.clientY)-Bt;var i=Boolean(E?Mt:qt);if(Nt=0,te=!1,It=Bt=null,E){var s=-Mt*oe/x;s=Mt>0?Math.floor(s):Math.ceil(s),Pe+=s}else{var n=-(Ot+qt);if(n<=0)Pe=Oe;else if(n>=K[K.length-1])Pe=Me;else{var r=0;do{r++,Pe=qt<0?r+1:r}while(r<be&&n>=K[r+1])}}if(_i(e,i),Dt){Dt=!1;var o=function(e){return e.target||e.srcElement}(e);T(o,{click:function e(t){Oi(t),C(o,{click:e})}})}}}function Ii(){P.style.height=K[Pe+oe]-K[Pe]+"px"}function Bi(){ht&&!Qe&&(function(){ut=[];for(var e=Pe%j%oe;e<j;)!fe&&e+oe>j&&(e=j-oe),ut.push(e),e+=oe;(fe&&ut.length*oe<j||!fe&&ut[0]>0)&&ut.unshift(0)}(),ut!==pt&&([].forEach.call(ct,function(e,t){ut.indexOf(t)<0?_(e):g(e)}),pt=ut))}function Ni(e){return{container:F,slideItems:W,navContainer:dt,navItems:ct,controlsContainer:lt,hasControls:$e,prevButton:it,nextButton:st,items:oe,slideBy:ae,cloneCount:we,slideCount:j,slideCountNew:be,index:Pe,indexCached:Ae,navCurrentIndex:ft,navCurrentIndexCached:_t,visibleNavIndexes:ut,visibleNavIndexesCached:pt,event:e||{}}}i&&console.warn("Can't find container element.")}}();((_gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window)._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("easing.Back",["easing.Ease"],function(e){var t,i,s,n=_gsScope.GreenSockGlobals||_gsScope,r=n.com.greensock,o=2*Math.PI,a=Math.PI/2,l=r._class,c=function(t,i){var s=l("easing."+t,function(){},!0),n=s.prototype=new e;return n.constructor=s,n.getRatio=i,s},h=e.register||function(){},d=function(e,t,i,s){var n=l("easing."+e,{easeOut:new t,easeIn:new i,easeInOut:new s},!0);return h(n,e),n},u=function(e,t,i){this.t=e,this.v=t,i&&(this.next=i,i.prev=this,this.c=i.v-t,this.gap=i.t-e)},p=function(t,i){var s=l("easing."+t,function(e){this._p1=e||0===e?e:1.70158,this._p2=1.525*this._p1},!0),n=s.prototype=new e;return n.constructor=s,n.getRatio=i,n.config=function(e){return new s(e)},s},m=d("Back",p("BackOut",function(e){return(e-=1)*e*((this._p1+1)*e+this._p1)+1}),p("BackIn",function(e){return e*e*((this._p1+1)*e-this._p1)}),p("BackInOut",function(e){return 1>(e*=2)?.5*e*e*((this._p2+1)*e-this._p2):.5*((e-=2)*e*((this._p2+1)*e+this._p2)+2)})),f=l("easing.SlowMo",function(e,t,i){t=t||0===t?t:.7,null==e?e=.7:e>1&&(e=1),this._p=1!==e?t:0,this._p1=(1-e)/2,this._p2=e,this._p3=this._p1+this._p2,this._calcEnd=!0===i},!0),_=f.prototype=new e;return _.constructor=f,_.getRatio=function(e){var t=e+(.5-e)*this._p;return this._p1>e?this._calcEnd?1-(e=1-e/this._p1)*e:t-(e=1-e/this._p1)*e*e*e*t:e>this._p3?this._calcEnd?1-(e=(e-this._p3)/this._p1)*e:t+(e-t)*(e=(e-this._p3)/this._p1)*e*e*e:this._calcEnd?1:t},f.ease=new f(.7,.7),_.config=f.config=function(e,t,i){return new f(e,t,i)},(_=(t=l("easing.SteppedEase",function(e){e=e||1,this._p1=1/e,this._p2=e+1},!0)).prototype=new e).constructor=t,_.getRatio=function(e){return 0>e?e=0:e>=1&&(e=.999999999),(this._p2*e>>0)*this._p1},_.config=t.config=function(e){return new t(e)},(_=(i=l("easing.RoughEase",function(t){for(var i,s,n,r,o,a,l=(t=t||{}).taper||"none",c=[],h=0,d=0|(t.points||20),p=d,m=!1!==t.randomize,f=!0===t.clamp,_=t.template instanceof e?t.template:null,g="number"==typeof t.strength?.4*t.strength:.4;--p>-1;)i=m?Math.random():1/d*p,s=_?_.getRatio(i):i,"none"===l?n=g:"out"===l?n=(r=1-i)*r*g:"in"===l?n=i*i*g:.5>i?n=.5*(r=2*i)*r*g:n=.5*(r=2*(1-i))*r*g,m?s+=Math.random()*n-.5*n:p%2?s+=.5*n:s-=.5*n,f&&(s>1?s=1:0>s&&(s=0)),c[h++]={x:i,y:s};for(c.sort(function(e,t){return e.x-t.x}),a=new u(1,1,null),p=d;--p>-1;)o=c[p],a=new u(o.x,o.y,a);this._prev=new u(0,0,0!==a.t?a:a.next)},!0)).prototype=new e).constructor=i,_.getRatio=function(e){var t=this._prev;if(e>t.t){for(;t.next&&e>=t.t;)t=t.next;t=t.prev}else for(;t.prev&&t.t>=e;)t=t.prev;return this._prev=t,t.v+(e-t.t)/t.gap*t.c},_.config=function(e){return new i(e)},i.ease=new i,d("Bounce",c("BounceOut",function(e){return 1/2.75>e?7.5625*e*e:2/2.75>e?7.5625*(e-=1.5/2.75)*e+.75:2.5/2.75>e?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}),c("BounceIn",function(e){return 1/2.75>(e=1-e)?1-7.5625*e*e:2/2.75>e?1-(7.5625*(e-=1.5/2.75)*e+.75):2.5/2.75>e?1-(7.5625*(e-=2.25/2.75)*e+.9375):1-(7.5625*(e-=2.625/2.75)*e+.984375)}),c("BounceInOut",function(e){var t=.5>e;return e=1/2.75>(e=t?1-2*e:2*e-1)?7.5625*e*e:2/2.75>e?7.5625*(e-=1.5/2.75)*e+.75:2.5/2.75>e?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,t?.5*(1-e):.5*e+.5})),d("Circ",c("CircOut",function(e){return Math.sqrt(1-(e-=1)*e)}),c("CircIn",function(e){return-(Math.sqrt(1-e*e)-1)}),c("CircInOut",function(e){return 1>(e*=2)?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)})),d("Elastic",(s=function(t,i,s){var n=l("easing."+t,function(e,t){this._p1=e>=1?e:1,this._p2=(t||s)/(1>e?e:1),this._p3=this._p2/o*(Math.asin(1/this._p1)||0),this._p2=o/this._p2},!0),r=n.prototype=new e;return r.constructor=n,r.getRatio=i,r.config=function(e,t){return new n(e,t)},n})("ElasticOut",function(e){return this._p1*Math.pow(2,-10*e)*Math.sin((e-this._p3)*this._p2)+1},.3),s("ElasticIn",function(e){return-this._p1*Math.pow(2,10*(e-=1))*Math.sin((e-this._p3)*this._p2)},.3),s("ElasticInOut",function(e){return 1>(e*=2)?-.5*this._p1*Math.pow(2,10*(e-=1))*Math.sin((e-this._p3)*this._p2):.5*this._p1*Math.pow(2,-10*(e-=1))*Math.sin((e-this._p3)*this._p2)+1},.45)),d("Expo",c("ExpoOut",function(e){return 1-Math.pow(2,-10*e)}),c("ExpoIn",function(e){return Math.pow(2,10*(e-1))-.001}),c("ExpoInOut",function(e){return 1>(e*=2)?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*(e-1)))})),d("Sine",c("SineOut",function(e){return Math.sin(e*a)}),c("SineIn",function(e){return 1-Math.cos(e*a)}),c("SineInOut",function(e){return-.5*(Math.cos(Math.PI*e)-1)})),l("easing.EaseLookup",{find:function(t){return e.map[t]}},!0),h(n.SlowMo,"SlowMo","ease,"),h(i,"RoughEase","ease,"),h(t,"SteppedEase","ease,"),m},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),((_gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window)._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(e,t){var i,s,n,r,o=function(){e.call(this,"css"),this._overwriteProps.length=0,this.setRatio=o.prototype.setRatio},a=_gsScope._gsDefine.globals,l={},c=o.prototype=new e("css");c.constructor=o,o.version="1.20.4",o.API=2,o.defaultTransformPerspective=0,o.defaultSkewType="compensated",o.defaultSmoothOrigin=!0,c="px",o.suffixMap={top:c,right:c,bottom:c,left:c,width:c,height:c,fontSize:c,padding:c,margin:c,perspective:c,lineHeight:""};var h,d,u,p,m,f,_,g,v=/(?:\-|\.|\b)(\d|\.|e\-)+/g,y=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,w=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,b=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,S=/(?:\d|\-|\+|=|#|\.)*/g,x=/opacity *= *([^)]*)/i,T=/opacity:([^;]*)/i,C=/alpha\(opacity *=.+?\)/i,E=/^(rgb|hsl)/,k=/([A-Z])/g,P=/-([a-z])/gi,A=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,O=function(e,t){return t.toUpperCase()},M=/(?:Left|Right|Width)/i,q=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,L=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,I=/,(?=[^\)]*(?:\(|$))/gi,B=/[\s,\(]/i,N=Math.PI/180,R=180/Math.PI,D={},V={style:{}},z=_gsScope.document||{createElement:function(){return V}},H=function(e,t){return z.createElementNS?z.createElementNS(t||"http://www.w3.org/1999/xhtml",e):z.createElement(e)},F=H("div"),G=H("img"),W=o._internals={_specialProps:l},j=(_gsScope.navigator||{}).userAgent||"",Y=function(){var e=j.indexOf("Android"),t=H("a");return u=-1!==j.indexOf("Safari")&&-1===j.indexOf("Chrome")&&(-1===e||parseFloat(j.substr(e+8,2))>3),m=u&&parseFloat(j.substr(j.indexOf("Version/")+8,2))<6,p=-1!==j.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(j)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(j))&&(f=parseFloat(RegExp.$1)),!!t&&(t.style.cssText="top:1px;opacity:.55;",/^0.55/.test(t.style.opacity))}(),X=function(e){return x.test("string"==typeof e?e:(e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?parseFloat(RegExp.$1)/100:1},U=function(e){_gsScope.console&&console.log(e)},$="",Z="",Q=function(e,t){var i,s,n=(t=t||F).style;if(void 0!==n[e])return e;for(e=e.charAt(0).toUpperCase()+e.substr(1),i=["O","Moz","ms","Ms","Webkit"],s=5;--s>-1&&void 0===n[i[s]+e];);return s>=0?($="-"+(Z=3===s?"ms":i[s]).toLowerCase()+"-",Z+e):null},J=z.defaultView?z.defaultView.getComputedStyle:function(){},K=o.getStyle=function(e,t,i,s,n){var r;return Y||"opacity"!==t?(!s&&e.style[t]?r=e.style[t]:(i=i||J(e))?r=i[t]||i.getPropertyValue(t)||i.getPropertyValue(t.replace(k,"-$1").toLowerCase()):e.currentStyle&&(r=e.currentStyle[t]),null==n||r&&"none"!==r&&"auto"!==r&&"auto auto"!==r?r:n):X(e)},ee=W.convertToPixels=function(e,i,s,n,r){if("px"===n||!n&&"lineHeight"!==i)return s;if("auto"===n||!s)return 0;var a,l,c,h=M.test(i),d=e,u=F.style,p=0>s,m=1===s;if(p&&(s=-s),m&&(s*=100),"lineHeight"!==i||n)if("%"===n&&-1!==i.indexOf("border"))a=s/100*(h?e.clientWidth:e.clientHeight);else{if(u.cssText="border:0 solid red;position:"+K(e,"position")+";line-height:0;","%"!==n&&d.appendChild&&"v"!==n.charAt(0)&&"rem"!==n)u[h?"borderLeftWidth":"borderTopWidth"]=s+n;else{if(d=e.parentNode||z.body,-1!==K(d,"display").indexOf("flex")&&(u.position="absolute"),l=d._gsCache,c=t.ticker.frame,l&&h&&l.time===c)return l.width*s/100;u[h?"width":"height"]=s+n}d.appendChild(F),a=parseFloat(F[h?"offsetWidth":"offsetHeight"]),d.removeChild(F),h&&"%"===n&&!1!==o.cacheWidths&&((l=d._gsCache=d._gsCache||{}).time=c,l.width=a/s*100),0!==a||r||(a=ee(e,i,s,n,!0))}else l=J(e).lineHeight,e.style.lineHeight=s,a=parseFloat(J(e).lineHeight),e.style.lineHeight=l;return m&&(a/=100),p?-a:a},te=W.calculateOffset=function(e,t,i){if("absolute"!==K(e,"position",i))return 0;var s="left"===t?"Left":"Top",n=K(e,"margin"+s,i);return e["offset"+s]-(ee(e,t,parseFloat(n),n.replace(S,""))||0)},ie=function(e,t){var i,s,n,r={};if(t=t||J(e,null))if(i=t.length)for(;--i>-1;)(-1===(n=t[i]).indexOf("-transform")||Ae===n)&&(r[n.replace(P,O)]=t.getPropertyValue(n));else for(i in t)(-1===i.indexOf("Transform")||Pe===i)&&(r[i]=t[i]);else if(t=e.currentStyle||e.style)for(i in t)"string"==typeof i&&void 0===r[i]&&(r[i.replace(P,O)]=t[i]);return Y||(r.opacity=X(e)),s=Fe(e,t,!1),r.rotation=s.rotation,r.skewX=s.skewX,r.scaleX=s.scaleX,r.scaleY=s.scaleY,r.x=s.x,r.y=s.y,Me&&(r.z=s.z,r.rotationX=s.rotationX,r.rotationY=s.rotationY,r.scaleZ=s.scaleZ),r.filters&&delete r.filters,r},se=function(e,t,i,s,n){var r,o,a,l={},c=e.style;for(o in i)"cssText"!==o&&"length"!==o&&isNaN(o)&&(t[o]!==(r=i[o])||n&&n[o])&&-1===o.indexOf("Origin")&&("number"==typeof r||"string"==typeof r)&&(l[o]="auto"!==r||"left"!==o&&"top"!==o?""!==r&&"auto"!==r&&"none"!==r||"string"!=typeof t[o]||""===t[o].replace(b,"")?r:0:te(e,o),void 0!==c[o]&&(a=new ve(c,o,c[o],a)));if(s)for(o in s)"className"!==o&&(l[o]=s[o]);return{difs:l,firstMPT:a}},ne={width:["Left","Right"],height:["Top","Bottom"]},re=["marginLeft","marginRight","marginTop","marginBottom"],oe=function(e,t,i){if("svg"===(e.nodeName+"").toLowerCase())return(i||J(e))[t]||0;if(e.getCTM&&Ve(e))return e.getBBox()[t]||0;var s=parseFloat("width"===t?e.offsetWidth:e.offsetHeight),n=ne[t],r=n.length;for(i=i||J(e,null);--r>-1;)s-=parseFloat(K(e,"padding"+n[r],i,!0))||0,s-=parseFloat(K(e,"border"+n[r]+"Width",i,!0))||0;return s},ae=function(e,t){if("contain"===e||"auto"===e||"auto auto"===e)return e+" ";(null==e||""===e)&&(e="0 0");var i,s=e.split(" "),n=-1!==e.indexOf("left")?"0%":-1!==e.indexOf("right")?"100%":s[0],r=-1!==e.indexOf("top")?"0%":-1!==e.indexOf("bottom")?"100%":s[1];if(s.length>3&&!t){for(s=e.split(", ").join(",").split(","),e=[],i=0;i<s.length;i++)e.push(ae(s[i]));return e.join(",")}return null==r?r="center"===n?"50%":"0":"center"===r&&(r="50%"),("center"===n||isNaN(parseFloat(n))&&-1===(n+"").indexOf("="))&&(n="50%"),e=n+" "+r+(s.length>2?" "+s[2]:""),t&&(t.oxp=-1!==n.indexOf("%"),t.oyp=-1!==r.indexOf("%"),t.oxr="="===n.charAt(1),t.oyr="="===r.charAt(1),t.ox=parseFloat(n.replace(b,"")),t.oy=parseFloat(r.replace(b,"")),t.v=e),t||e},le=function(e,t){return"function"==typeof e&&(e=e(g,_)),"string"==typeof e&&"="===e.charAt(1)?parseInt(e.charAt(0)+"1",10)*parseFloat(e.substr(2)):parseFloat(e)-parseFloat(t)||0},ce=function(e,t){return"function"==typeof e&&(e=e(g,_)),null==e?t:"string"==typeof e&&"="===e.charAt(1)?parseInt(e.charAt(0)+"1",10)*parseFloat(e.substr(2))+t:parseFloat(e)||0},he=function(e,t,i,s){var n,r,o,a,l;return"function"==typeof e&&(e=e(g,_)),null==e?a=t:"number"==typeof e?a=e:(n=360,r=e.split("_"),o=((l="="===e.charAt(1))?parseInt(e.charAt(0)+"1",10)*parseFloat(r[0].substr(2)):parseFloat(r[0]))*(-1===e.indexOf("rad")?1:R)-(l?0:t),r.length&&(s&&(s[i]=t+o),-1!==e.indexOf("short")&&((o%=n)!==o%(n/2)&&(o=0>o?o+n:o-n)),-1!==e.indexOf("_cw")&&0>o?o=(o+9999999999*n)%n-(o/n|0)*n:-1!==e.indexOf("ccw")&&o>0&&(o=(o-9999999999*n)%n-(o/n|0)*n)),a=t+o),1e-6>a&&a>-1e-6&&(a=0),a},de={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]},ue=function(e,t,i){return 255*(1>6*(e=0>e?e+1:e>1?e-1:e)?t+(i-t)*e*6:.5>e?i:2>3*e?t+(i-t)*(2/3-e)*6:t)+.5|0},pe=o.parseColor=function(e,t){var i,s,n,r,o,a,l,c,h,d,u;if(e)if("number"==typeof e)i=[e>>16,e>>8&255,255&e];else{if(","===e.charAt(e.length-1)&&(e=e.substr(0,e.length-1)),de[e])i=de[e];else if("#"===e.charAt(0))4===e.length&&(e="#"+(s=e.charAt(1))+s+(n=e.charAt(2))+n+(r=e.charAt(3))+r),i=[(e=parseInt(e.substr(1),16))>>16,e>>8&255,255&e];else if("hsl"===e.substr(0,3))if(i=u=e.match(v),t){if(-1!==e.indexOf("="))return e.match(y)}else o=Number(i[0])%360/360,a=Number(i[1])/100,s=2*(l=Number(i[2])/100)-(n=.5>=l?l*(a+1):l+a-l*a),i.length>3&&(i[3]=Number(i[3])),i[0]=ue(o+1/3,s,n),i[1]=ue(o,s,n),i[2]=ue(o-1/3,s,n);else i=e.match(v)||de.transparent;i[0]=Number(i[0]),i[1]=Number(i[1]),i[2]=Number(i[2]),i.length>3&&(i[3]=Number(i[3]))}else i=de.black;return t&&!u&&(s=i[0]/255,n=i[1]/255,r=i[2]/255,l=((c=Math.max(s,n,r))+(h=Math.min(s,n,r)))/2,c===h?o=a=0:(d=c-h,a=l>.5?d/(2-c-h):d/(c+h),o=c===s?(n-r)/d+(r>n?6:0):c===n?(r-s)/d+2:(s-n)/d+4,o*=60),i[0]=o+.5|0,i[1]=100*a+.5|0,i[2]=100*l+.5|0),i},me=function(e,t){var i,s,n,r=e.match(fe)||[],o=0,a="";if(!r.length)return e;for(i=0;i<r.length;i++)s=r[i],o+=(n=e.substr(o,e.indexOf(s,o)-o)).length+s.length,3===(s=pe(s,t)).length&&s.push(1),a+=n+(t?"hsla("+s[0]+","+s[1]+"%,"+s[2]+"%,"+s[3]:"rgba("+s.join(","))+")";return a+e.substr(o)},fe="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(c in de)fe+="|"+c+"\\b";fe=new RegExp(fe+")","gi"),o.colorStringFilter=function(e){var t,i=e[0]+" "+e[1];fe.test(i)&&(t=-1!==i.indexOf("hsl(")||-1!==i.indexOf("hsla("),e[0]=me(e[0],t),e[1]=me(e[1],t)),fe.lastIndex=0},t.defaultStringFilter||(t.defaultStringFilter=o.colorStringFilter);var _e=function(e,t,i,s){if(null==e)return function(e){return e};var n,r=t?(e.match(fe)||[""])[0]:"",o=e.split(r).join("").match(w)||[],a=e.substr(0,e.indexOf(o[0])),l=")"===e.charAt(e.length-1)?")":"",c=-1!==e.indexOf(" ")?" ":",",h=o.length,d=h>0?o[0].replace(v,""):"";return h?n=t?function(e){var t,u,p,m;if("number"==typeof e)e+=d;else if(s&&I.test(e)){for(m=e.replace(I,"|").split("|"),p=0;p<m.length;p++)m[p]=n(m[p]);return m.join(",")}if(t=(e.match(fe)||[r])[0],p=(u=e.split(t).join("").match(w)||[]).length,h>p--)for(;++p<h;)u[p]=i?u[(p-1)/2|0]:o[p];return a+u.join(c)+c+t+l+(-1!==e.indexOf("inset")?" inset":"")}:function(e){var t,r,u;if("number"==typeof e)e+=d;else if(s&&I.test(e)){for(r=e.replace(I,"|").split("|"),u=0;u<r.length;u++)r[u]=n(r[u]);return r.join(",")}if(u=(t=e.match(w)||[]).length,h>u--)for(;++u<h;)t[u]=i?t[(u-1)/2|0]:o[u];return a+t.join(c)+l}:function(e){return e}},ge=function(e){return e=e.split(","),function(t,i,s,n,r,o,a){var l,c=(i+"").split(" ");for(a={},l=0;4>l;l++)a[e[l]]=c[l]=c[l]||c[(l-1)/2>>0];return n.parse(t,a,r,o)}},ve=(W._setPluginRatio=function(e){this.plugin.setRatio(e);for(var t,i,s,n,r,o=this.data,a=o.proxy,l=o.firstMPT;l;)t=a[l.v],l.r?t=Math.round(t):1e-6>t&&t>-1e-6&&(t=0),l.t[l.p]=t,l=l._next;if(o.autoRotate&&(o.autoRotate.rotation=o.mod?o.mod(a.rotation,this.t):a.rotation),1===e||0===e)for(l=o.firstMPT,r=1===e?"e":"b";l;){if((i=l.t).type){if(1===i.type){for(n=i.xs0+i.s+i.xs1,s=1;s<i.l;s++)n+=i["xn"+s]+i["xs"+(s+1)];i[r]=n}}else i[r]=i.s+i.xs0;l=l._next}},function(e,t,i,s,n){this.t=e,this.p=t,this.v=i,this.r=n,s&&(s._prev=this,this._next=s)}),ye=(W._parseToProxy=function(e,t,i,s,n,r){var o,a,l,c,h,d=s,u={},p={},m=i._transform,f=D;for(i._transform=null,D=t,s=h=i.parse(e,t,s,n),D=f,r&&(i._transform=m,d&&(d._prev=null,d._prev&&(d._prev._next=null)));s&&s!==d;){if(s.type<=1&&(p[a=s.p]=s.s+s.c,u[a]=s.s,r||(c=new ve(s,"s",a,c,s.r),s.c=0),1===s.type))for(o=s.l;--o>0;)l="xn"+o,p[a=s.p+"_"+l]=s.data[l],u[a]=s[l],r||(c=new ve(s,l,a,c,s.rxp[l]));s=s._next}return{proxy:u,end:p,firstMPT:c,pt:h}},W.CSSPropTween=function(e,t,s,n,o,a,l,c,h,d,u){this.t=e,this.p=t,this.s=s,this.c=n,this.n=l||t,e instanceof ye||r.push(this.n),this.r=c,this.type=a||0,h&&(this.pr=h,i=!0),this.b=void 0===d?s:d,this.e=void 0===u?s+n:u,o&&(this._next=o,o._prev=this)}),we=function(e,t,i,s,n,r){var o=new ye(e,t,i,s-i,n,-1,r);return o.b=i,o.e=o.xs0=s,o},be=o.parseComplex=function(e,t,i,s,n,r,a,l,c,d){i=i||r||"","function"==typeof s&&(s=s(g,_)),a=new ye(e,t,0,0,a,d?2:1,null,!1,l,i,s),s+="",n&&fe.test(s+i)&&(s=[i,s],o.colorStringFilter(s),i=s[0],s=s[1]);var u,p,m,f,w,b,S,x,T,C,E,k,P,A=i.split(", ").join(",").split(" "),O=s.split(", ").join(",").split(" "),M=A.length,q=!1!==h;for((-1!==s.indexOf(",")||-1!==i.indexOf(","))&&(-1!==(s+i).indexOf("rgb")||-1!==(s+i).indexOf("hsl")?(A=A.join(" ").replace(I,", ").split(" "),O=O.join(" ").replace(I,", ").split(" ")):(A=A.join(" ").split(",").join(", ").split(" "),O=O.join(" ").split(",").join(", ").split(" ")),M=A.length),M!==O.length&&(M=(A=(r||"").split(" ")).length),a.plugin=c,a.setRatio=d,fe.lastIndex=0,u=0;M>u;u++)if(f=A[u],w=O[u],(x=parseFloat(f))||0===x)a.appendXtra("",x,le(w,x),w.replace(y,""),q&&-1!==w.indexOf("px"),!0);else if(n&&fe.test(f))k=")"+((k=w.indexOf(")")+1)?w.substr(k):""),P=-1!==w.indexOf("hsl")&&Y,C=w,f=pe(f,P),w=pe(w,P),(T=f.length+w.length>6)&&!Y&&0===w[3]?(a["xs"+a.l]+=a.l?" transparent":"transparent",a.e=a.e.split(O[u]).join("transparent")):(Y||(T=!1),P?a.appendXtra(C.substr(0,C.indexOf("hsl"))+(T?"hsla(":"hsl("),f[0],le(w[0],f[0]),",",!1,!0).appendXtra("",f[1],le(w[1],f[1]),"%,",!1).appendXtra("",f[2],le(w[2],f[2]),T?"%,":"%"+k,!1):a.appendXtra(C.substr(0,C.indexOf("rgb"))+(T?"rgba(":"rgb("),f[0],w[0]-f[0],",",!0,!0).appendXtra("",f[1],w[1]-f[1],",",!0).appendXtra("",f[2],w[2]-f[2],T?",":k,!0),T&&(f=f.length<4?1:f[3],a.appendXtra("",f,(w.length<4?1:w[3])-f,k,!1))),fe.lastIndex=0;else if(b=f.match(v)){if(!(S=w.match(y))||S.length!==b.length)return a;for(m=0,p=0;p<b.length;p++)E=b[p],C=f.indexOf(E,m),a.appendXtra(f.substr(m,C-m),Number(E),le(S[p],E),"",q&&"px"===f.substr(C+E.length,2),0===p),m=C+E.length;a["xs"+a.l]+=f.substr(m)}else a["xs"+a.l]+=a.l||a["xs"+a.l]?" "+w:w;if(-1!==s.indexOf("=")&&a.data){for(k=a.xs0+a.data.s,u=1;u<a.l;u++)k+=a["xs"+u]+a.data["xn"+u];a.e=k+a["xs"+u]}return a.l||(a.type=-1,a.xs0=a.e),a.xfirst||a},Se=9;for((c=ye.prototype).l=c.pr=0;--Se>0;)c["xn"+Se]=0,c["xs"+Se]="";c.xs0="",c._next=c._prev=c.xfirst=c.data=c.plugin=c.setRatio=c.rxp=null,c.appendXtra=function(e,t,i,s,n,r){var o=this,a=o.l;return o["xs"+a]+=r&&(a||o["xs"+a])?" "+e:e||"",i||0===a||o.plugin?(o.l++,o.type=o.setRatio?2:1,o["xs"+o.l]=s||"",a>0?(o.data["xn"+a]=t+i,o.rxp["xn"+a]=n,o["xn"+a]=t,o.plugin||(o.xfirst=new ye(o,"xn"+a,t,i,o.xfirst||o,0,o.n,n,o.pr),o.xfirst.xs0=0),o):(o.data={s:t+i},o.rxp={},o.s=t,o.c=i,o.r=n,o)):(o["xs"+a]+=t+(s||""),o)};var xe=function(e,t){t=t||{},this.p=t.prefix&&Q(e)||e,l[e]=l[this.p]=this,this.format=t.formatter||_e(t.defaultValue,t.color,t.collapsible,t.multi),t.parser&&(this.parse=t.parser),this.clrs=t.color,this.multi=t.multi,this.keyword=t.keyword,this.dflt=t.defaultValue,this.pr=t.priority||0},Te=W._registerComplexSpecialProp=function(e,t,i){"object"!=typeof t&&(t={parser:i});var s,n=e.split(","),r=t.defaultValue;for(i=i||[r],s=0;s<n.length;s++)t.prefix=0===s&&t.prefix,t.defaultValue=i[s]||r,new xe(n[s],t)},Ce=W._registerPluginProp=function(e){if(!l[e]){var t=e.charAt(0).toUpperCase()+e.substr(1)+"Plugin";Te(e,{parser:function(e,i,s,n,r,o,c){var h=a.com.greensock.plugins[t];return h?(h._cssRegister(),l[s].parse(e,i,s,n,r,o,c)):(U("Error: "+t+" js file not loaded."),r)}})}};(c=xe.prototype).parseComplex=function(e,t,i,s,n,r){var o,a,l,c,h,d,u=this.keyword;if(this.multi&&(I.test(i)||I.test(t)?(a=t.replace(I,"|").split("|"),l=i.replace(I,"|").split("|")):u&&(a=[t],l=[i])),l){for(c=l.length>a.length?l.length:a.length,o=0;c>o;o++)t=a[o]=a[o]||this.dflt,i=l[o]=l[o]||this.dflt,u&&((h=t.indexOf(u))!==(d=i.indexOf(u))&&(-1===d?a[o]=a[o].split(u).join(""):-1===h&&(a[o]+=" "+u)));t=a.join(", "),i=l.join(", ")}return be(e,this.p,t,i,this.clrs,this.dflt,s,this.pr,n,r)},c.parse=function(e,t,i,s,r,o,a){return this.parseComplex(e.style,this.format(K(e,this.p,n,!1,this.dflt)),this.format(t),r,o)},o.registerSpecialProp=function(e,t,i){Te(e,{parser:function(e,s,n,r,o,a,l){var c=new ye(e,n,0,0,o,2,n,!1,i);return c.plugin=a,c.setRatio=t(e,s,r._tween,n),c},priority:i})},o.useSVGTransformAttr=!0;var Ee,ke="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),Pe=Q("transform"),Ae=$+"transform",Oe=Q("transformOrigin"),Me=null!==Q("perspective"),qe=W.Transform=function(){this.perspective=parseFloat(o.defaultTransformPerspective)||0,this.force3D=!(!1===o.defaultForce3D||!Me)&&(o.defaultForce3D||"auto")},Le=_gsScope.SVGElement,Ie=function(e,t,i){var s,n=z.createElementNS("http://www.w3.org/2000/svg",e),r=/([a-z])([A-Z])/g;for(s in i)n.setAttributeNS(null,s.replace(r,"$1-$2").toLowerCase(),i[s]);return t.appendChild(n),n},Be=z.documentElement||{},Ne=function(){var e,t,i,s=f||/Android/i.test(j)&&!_gsScope.chrome;return z.createElementNS&&!s&&(e=Ie("svg",Be),i=(t=Ie("rect",e,{width:100,height:50,x:100})).getBoundingClientRect().width,t.style[Oe]="50% 50%",t.style[Pe]="scaleX(0.5)",s=i===t.getBoundingClientRect().width&&!(p&&Me),Be.removeChild(e)),s}(),Re=function(e,t,i,s,n,r){var a,l,c,h,d,u,p,m,f,_,g,v,y,w,b=e._gsTransform,S=He(e,!0);b&&(y=b.xOrigin,w=b.yOrigin),(!s||(a=s.split(" ")).length<2)&&(0===(p=e.getBBox()).x&&0===p.y&&p.width+p.height===0&&(p={x:parseFloat(e.hasAttribute("x")?e.getAttribute("x"):e.hasAttribute("cx")?e.getAttribute("cx"):0)||0,y:parseFloat(e.hasAttribute("y")?e.getAttribute("y"):e.hasAttribute("cy")?e.getAttribute("cy"):0)||0,width:0,height:0}),a=[(-1!==(t=ae(t).split(" "))[0].indexOf("%")?parseFloat(t[0])/100*p.width:parseFloat(t[0]))+p.x,(-1!==t[1].indexOf("%")?parseFloat(t[1])/100*p.height:parseFloat(t[1]))+p.y]),i.xOrigin=h=parseFloat(a[0]),i.yOrigin=d=parseFloat(a[1]),s&&S!==ze&&(u=S[0],p=S[1],m=S[2],f=S[3],_=S[4],g=S[5],(v=u*f-p*m)&&(l=h*(f/v)+d*(-m/v)+(m*g-f*_)/v,c=h*(-p/v)+d*(u/v)-(u*g-p*_)/v,h=i.xOrigin=a[0]=l,d=i.yOrigin=a[1]=c)),b&&(r&&(i.xOffset=b.xOffset,i.yOffset=b.yOffset,b=i),n||!1!==n&&!1!==o.defaultSmoothOrigin?(l=h-y,c=d-w,b.xOffset+=l*S[0]+c*S[2]-l,b.yOffset+=l*S[1]+c*S[3]-c):b.xOffset=b.yOffset=0),r||e.setAttribute("data-svg-origin",a.join(" "))},De=function(e){var t,i=H("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),s=this.parentNode,n=this.nextSibling,r=this.style.cssText;if(Be.appendChild(i),i.appendChild(this),this.style.display="block",e)try{t=this.getBBox(),this._originalGetBBox=this.getBBox,this.getBBox=De}catch(e){}else this._originalGetBBox&&(t=this._originalGetBBox());return n?s.insertBefore(this,n):s.appendChild(this),Be.removeChild(i),this.style.cssText=r,t},Ve=function(e){return!(!Le||!e.getCTM||e.parentNode&&!e.ownerSVGElement||!function(e){try{return e.getBBox()}catch(t){return De.call(e,!0)}}(e))},ze=[1,0,0,1,0,0],He=function(e,t){var i,s,n,r,o,a,l=e._gsTransform||new qe,c=e.style;if(Pe?s=K(e,Ae,null,!0):e.currentStyle&&(s=(s=e.currentStyle.filter.match(q))&&4===s.length?[s[0].substr(4),Number(s[2].substr(4)),Number(s[1].substr(4)),s[3].substr(4),l.x||0,l.y||0].join(","):""),i=!s||"none"===s||"matrix(1, 0, 0, 1, 0, 0)"===s,!Pe||!(a=!J(e)||"none"===J(e).display)&&e.parentNode||(a&&(r=c.display,c.display="block"),e.parentNode||(o=1,Be.appendChild(e)),i=!(s=K(e,Ae,null,!0))||"none"===s||"matrix(1, 0, 0, 1, 0, 0)"===s,r?c.display=r:a&&Ye(c,"display"),o&&Be.removeChild(e)),(l.svg||e.getCTM&&Ve(e))&&(i&&-1!==(c[Pe]+"").indexOf("matrix")&&(s=c[Pe],i=0),n=e.getAttribute("transform"),i&&n&&(s="matrix("+(n=e.transform.baseVal.consolidate().matrix).a+","+n.b+","+n.c+","+n.d+","+n.e+","+n.f+")",i=0)),i)return ze;for(n=(s||"").match(v)||[],Se=n.length;--Se>-1;)r=Number(n[Se]),n[Se]=(o=r-(r|=0))?(1e5*o+(0>o?-.5:.5)|0)/1e5+r:r;return t&&n.length>6?[n[0],n[1],n[4],n[5],n[12],n[13]]:n},Fe=W.getTransform=function(e,i,s,n){if(e._gsTransform&&s&&!n)return e._gsTransform;var r,a,l,c,h,d,u=s&&e._gsTransform||new qe,p=u.scaleX<0,m=2e-5,f=1e5,_=Me&&(parseFloat(K(e,Oe,i,!1,"0 0 0").split(" ")[2])||u.zOrigin)||0,g=parseFloat(o.defaultTransformPerspective)||0;if(u.svg=!(!e.getCTM||!Ve(e)),u.svg&&(Re(e,K(e,Oe,i,!1,"50% 50%")+"",u,e.getAttribute("data-svg-origin")),Ee=o.useSVGTransformAttr||Ne),(r=He(e))!==ze){if(16===r.length){var v,y,w,b,S,x=r[0],T=r[1],C=r[2],E=r[3],k=r[4],P=r[5],A=r[6],O=r[7],M=r[8],q=r[9],L=r[10],I=r[12],B=r[13],N=r[14],D=r[11],V=Math.atan2(A,L);u.zOrigin&&(I=M*(N=-u.zOrigin)-r[12],B=q*N-r[13],N=L*N+u.zOrigin-r[14]),u.rotationX=V*R,V&&(v=k*(b=Math.cos(-V))+M*(S=Math.sin(-V)),y=P*b+q*S,w=A*b+L*S,M=k*-S+M*b,q=P*-S+q*b,L=A*-S+L*b,D=O*-S+D*b,k=v,P=y,A=w),V=Math.atan2(-C,L),u.rotationY=V*R,V&&(y=T*(b=Math.cos(-V))-q*(S=Math.sin(-V)),w=C*b-L*S,q=T*S+q*b,L=C*S+L*b,D=E*S+D*b,x=v=x*b-M*S,T=y,C=w),V=Math.atan2(T,x),u.rotation=V*R,V&&(v=x*(b=Math.cos(V))+T*(S=Math.sin(V)),y=k*b+P*S,w=M*b+q*S,T=T*b-x*S,P=P*b-k*S,q=q*b-M*S,x=v,k=y,M=w),u.rotationX&&Math.abs(u.rotationX)+Math.abs(u.rotation)>359.9&&(u.rotationX=u.rotation=0,u.rotationY=180-u.rotationY),V=Math.atan2(k,P),u.scaleX=(Math.sqrt(x*x+T*T+C*C)*f+.5|0)/f,u.scaleY=(Math.sqrt(P*P+A*A)*f+.5|0)/f,u.scaleZ=(Math.sqrt(M*M+q*q+L*L)*f+.5|0)/f,x/=u.scaleX,k/=u.scaleY,T/=u.scaleX,P/=u.scaleY,Math.abs(V)>m?(u.skewX=V*R,k=0,"simple"!==u.skewType&&(u.scaleY*=1/Math.cos(V))):u.skewX=0,u.perspective=D?1/(0>D?-D:D):0,u.x=I,u.y=B,u.z=N,u.svg&&(u.x-=u.xOrigin-(u.xOrigin*x-u.yOrigin*k),u.y-=u.yOrigin-(u.yOrigin*T-u.xOrigin*P))}else if(!Me||n||!r.length||u.x!==r[4]||u.y!==r[5]||!u.rotationX&&!u.rotationY){var z=r.length>=6,H=z?r[0]:1,F=r[1]||0,G=r[2]||0,W=z?r[3]:1;u.x=r[4]||0,u.y=r[5]||0,l=Math.sqrt(H*H+F*F),c=Math.sqrt(W*W+G*G),h=H||F?Math.atan2(F,H)*R:u.rotation||0,d=G||W?Math.atan2(G,W)*R+h:u.skewX||0,u.scaleX=l,u.scaleY=c,u.rotation=h,u.skewX=d,Me&&(u.rotationX=u.rotationY=u.z=0,u.perspective=g,u.scaleZ=1),u.svg&&(u.x-=u.xOrigin-(u.xOrigin*H+u.yOrigin*G),u.y-=u.yOrigin-(u.xOrigin*F+u.yOrigin*W))}for(a in Math.abs(u.skewX)>90&&Math.abs(u.skewX)<270&&(p?(u.scaleX*=-1,u.skewX+=u.rotation<=0?180:-180,u.rotation+=u.rotation<=0?180:-180):(u.scaleY*=-1,u.skewX+=u.skewX<=0?180:-180)),u.zOrigin=_,u)u[a]<m&&u[a]>-m&&(u[a]=0)}return s&&(e._gsTransform=u,u.svg&&(Ee&&e.style[Pe]?t.delayedCall(.001,function(){Ye(e.style,Pe)}):!Ee&&e.getAttribute("transform")&&t.delayedCall(.001,function(){e.removeAttribute("transform")}))),u},Ge=function(e){var t,i,s=this.data,n=-s.rotation*N,r=n+s.skewX*N,o=1e5,a=(Math.cos(n)*s.scaleX*o|0)/o,l=(Math.sin(n)*s.scaleX*o|0)/o,c=(Math.sin(r)*-s.scaleY*o|0)/o,h=(Math.cos(r)*s.scaleY*o|0)/o,d=this.t.style,u=this.t.currentStyle;if(u){i=l,l=-c,c=-i,t=u.filter,d.filter="";var p,m,_=this.t.offsetWidth,g=this.t.offsetHeight,v="absolute"!==u.position,y="progid:DXImageTransform.Microsoft.Matrix(M11="+a+", M12="+l+", M21="+c+", M22="+h,w=s.x+_*s.xPercent/100,b=s.y+g*s.yPercent/100;if(null!=s.ox&&(w+=(p=(s.oxp?_*s.ox*.01:s.ox)-_/2)-(p*a+(m=(s.oyp?g*s.oy*.01:s.oy)-g/2)*l),b+=m-(p*c+m*h)),v?y+=", Dx="+((p=_/2)-(p*a+(m=g/2)*l)+w)+", Dy="+(m-(p*c+m*h)+b)+")":y+=", sizingMethod='auto expand')",-1!==t.indexOf("DXImageTransform.Microsoft.Matrix(")?d.filter=t.replace(L,y):d.filter=y+" "+t,(0===e||1===e)&&1===a&&0===l&&0===c&&1===h&&(v&&-1===y.indexOf("Dx=0, Dy=0")||x.test(t)&&100!==parseFloat(RegExp.$1)||-1===t.indexOf(t.indexOf("Alpha"))&&d.removeAttribute("filter")),!v){var T,C,E,k=8>f?1:-1;for(p=s.ieOffsetX||0,m=s.ieOffsetY||0,s.ieOffsetX=Math.round((_-((0>a?-a:a)*_+(0>l?-l:l)*g))/2+w),s.ieOffsetY=Math.round((g-((0>h?-h:h)*g+(0>c?-c:c)*_))/2+b),Se=0;4>Se;Se++)E=(i=-1!==(T=u[C=re[Se]]).indexOf("px")?parseFloat(T):ee(this.t,C,parseFloat(T),T.replace(S,""))||0)!==s[C]?2>Se?-s.ieOffsetX:-s.ieOffsetY:2>Se?p-s.ieOffsetX:m-s.ieOffsetY,d[C]=(s[C]=Math.round(i-E*(0===Se||2===Se?1:k)))+"px"}}},We=W.set3DTransformRatio=W.setTransformRatio=function(e){var t,i,s,n,r,o,a,l,c,h,d,u,m,f,_,g,v,y,w,b,S,x,T,C=this.data,E=this.t.style,k=C.rotation,P=C.rotationX,A=C.rotationY,O=C.scaleX,M=C.scaleY,q=C.scaleZ,L=C.x,I=C.y,B=C.z,R=C.svg,D=C.perspective,V=C.force3D,z=C.skewY,H=C.skewX;if(z&&(H+=z,k+=z),!((1!==e&&0!==e||"auto"!==V||this.tween._totalTime!==this.tween._totalDuration&&this.tween._totalTime)&&V||B||D||A||P||1!==q)||Ee&&R||!Me)k||H||R?(k*=N,x=H*N,T=1e5,i=Math.cos(k)*O,r=Math.sin(k)*O,s=Math.sin(k-x)*-M,o=Math.cos(k-x)*M,x&&"simple"===C.skewType&&(t=Math.tan(x-z*N),s*=t=Math.sqrt(1+t*t),o*=t,z&&(t=Math.tan(z*N),i*=t=Math.sqrt(1+t*t),r*=t)),R&&(L+=C.xOrigin-(C.xOrigin*i+C.yOrigin*s)+C.xOffset,I+=C.yOrigin-(C.xOrigin*r+C.yOrigin*o)+C.yOffset,Ee&&(C.xPercent||C.yPercent)&&(_=this.t.getBBox(),L+=.01*C.xPercent*_.width,I+=.01*C.yPercent*_.height),(_=1e-6)>L&&L>-_&&(L=0),_>I&&I>-_&&(I=0)),w=(i*T|0)/T+","+(r*T|0)/T+","+(s*T|0)/T+","+(o*T|0)/T+","+L+","+I+")",R&&Ee?this.t.setAttribute("transform","matrix("+w):E[Pe]=(C.xPercent||C.yPercent?"translate("+C.xPercent+"%,"+C.yPercent+"%) matrix(":"matrix(")+w):E[Pe]=(C.xPercent||C.yPercent?"translate("+C.xPercent+"%,"+C.yPercent+"%) matrix(":"matrix(")+O+",0,0,"+M+","+L+","+I+")";else{if(p&&((_=1e-4)>O&&O>-_&&(O=q=2e-5),_>M&&M>-_&&(M=q=2e-5),!D||C.z||C.rotationX||C.rotationY||(D=0)),k||H)k*=N,g=i=Math.cos(k),v=r=Math.sin(k),H&&(k-=H*N,g=Math.cos(k),v=Math.sin(k),"simple"===C.skewType&&(t=Math.tan((H-z)*N),g*=t=Math.sqrt(1+t*t),v*=t,C.skewY&&(t=Math.tan(z*N),i*=t=Math.sqrt(1+t*t),r*=t))),s=-v,o=g;else{if(!(A||P||1!==q||D||R))return void(E[Pe]=(C.xPercent||C.yPercent?"translate("+C.xPercent+"%,"+C.yPercent+"%) translate3d(":"translate3d(")+L+"px,"+I+"px,"+B+"px)"+(1!==O||1!==M?" scale("+O+","+M+")":""));i=o=1,s=r=0}h=1,n=a=l=c=d=u=0,m=D?-1/D:0,f=C.zOrigin,_=1e-6,b=",",S="0",(k=A*N)&&(g=Math.cos(k),l=-(v=Math.sin(k)),d=m*-v,n=i*v,a=r*v,h=g,m*=g,i*=g,r*=g),(k=P*N)&&(t=s*(g=Math.cos(k))+n*(v=Math.sin(k)),y=o*g+a*v,c=h*v,u=m*v,n=s*-v+n*g,a=o*-v+a*g,h*=g,m*=g,s=t,o=y),1!==q&&(n*=q,a*=q,h*=q,m*=q),1!==M&&(s*=M,o*=M,c*=M,u*=M),1!==O&&(i*=O,r*=O,l*=O,d*=O),(f||R)&&(f&&(L+=n*-f,I+=a*-f,B+=h*-f+f),R&&(L+=C.xOrigin-(C.xOrigin*i+C.yOrigin*s)+C.xOffset,I+=C.yOrigin-(C.xOrigin*r+C.yOrigin*o)+C.yOffset),_>L&&L>-_&&(L=S),_>I&&I>-_&&(I=S),_>B&&B>-_&&(B=0)),w=C.xPercent||C.yPercent?"translate("+C.xPercent+"%,"+C.yPercent+"%) matrix3d(":"matrix3d(",w+=(_>i&&i>-_?S:i)+b+(_>r&&r>-_?S:r)+b+(_>l&&l>-_?S:l),w+=b+(_>d&&d>-_?S:d)+b+(_>s&&s>-_?S:s)+b+(_>o&&o>-_?S:o),P||A||1!==q?(w+=b+(_>c&&c>-_?S:c)+b+(_>u&&u>-_?S:u)+b+(_>n&&n>-_?S:n),w+=b+(_>a&&a>-_?S:a)+b+(_>h&&h>-_?S:h)+b+(_>m&&m>-_?S:m)+b):w+=",0,0,0,0,1,0,",w+=L+b+I+b+B+b+(D?1+-B/D:1)+")",E[Pe]=w}};(c=qe.prototype).x=c.y=c.z=c.skewX=c.skewY=c.rotation=c.rotationX=c.rotationY=c.zOrigin=c.xPercent=c.yPercent=c.xOffset=c.yOffset=0,c.scaleX=c.scaleY=c.scaleZ=1,Te("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(e,t,i,s,r,a,l){if(s._lastParsedTransform===l)return r;s._lastParsedTransform=l;var c,h=l.scale&&"function"==typeof l.scale?l.scale:0;"function"==typeof l[i]&&(c=l[i],l[i]=t),h&&(l.scale=h(g,e));var d,u,p,m,f,v,y,w,b,S=e._gsTransform,x=e.style,T=ke.length,C=l,E={},k="transformOrigin",P=Fe(e,n,!0,C.parseTransform),A=C.transform&&("function"==typeof C.transform?C.transform(g,_):C.transform);if(P.skewType=C.skewType||P.skewType||o.defaultSkewType,s._transform=P,A&&"string"==typeof A&&Pe)(u=F.style)[Pe]=A,u.display="block",u.position="absolute",z.body.appendChild(F),d=Fe(F,null,!1),"simple"===P.skewType&&(d.scaleY*=Math.cos(d.skewX*N)),P.svg&&(v=P.xOrigin,y=P.yOrigin,d.x-=P.xOffset,d.y-=P.yOffset,(C.transformOrigin||C.svgOrigin)&&(A={},Re(e,ae(C.transformOrigin),A,C.svgOrigin,C.smoothOrigin,!0),v=A.xOrigin,y=A.yOrigin,d.x-=A.xOffset-P.xOffset,d.y-=A.yOffset-P.yOffset),(v||y)&&(w=He(F,!0),d.x-=v-(v*w[0]+y*w[2]),d.y-=y-(v*w[1]+y*w[3]))),z.body.removeChild(F),d.perspective||(d.perspective=P.perspective),null!=C.xPercent&&(d.xPercent=ce(C.xPercent,P.xPercent)),null!=C.yPercent&&(d.yPercent=ce(C.yPercent,P.yPercent));else if("object"==typeof C){if(d={scaleX:ce(null!=C.scaleX?C.scaleX:C.scale,P.scaleX),scaleY:ce(null!=C.scaleY?C.scaleY:C.scale,P.scaleY),scaleZ:ce(C.scaleZ,P.scaleZ),x:ce(C.x,P.x),y:ce(C.y,P.y),z:ce(C.z,P.z),xPercent:ce(C.xPercent,P.xPercent),yPercent:ce(C.yPercent,P.yPercent),perspective:ce(C.transformPerspective,P.perspective)},null!=(f=C.directionalRotation))if("object"==typeof f)for(u in f)C[u]=f[u];else C.rotation=f;"string"==typeof C.x&&-1!==C.x.indexOf("%")&&(d.x=0,d.xPercent=ce(C.x,P.xPercent)),"string"==typeof C.y&&-1!==C.y.indexOf("%")&&(d.y=0,d.yPercent=ce(C.y,P.yPercent)),d.rotation=he("rotation"in C?C.rotation:"shortRotation"in C?C.shortRotation+"_short":"rotationZ"in C?C.rotationZ:P.rotation,P.rotation,"rotation",E),Me&&(d.rotationX=he("rotationX"in C?C.rotationX:"shortRotationX"in C?C.shortRotationX+"_short":P.rotationX||0,P.rotationX,"rotationX",E),d.rotationY=he("rotationY"in C?C.rotationY:"shortRotationY"in C?C.shortRotationY+"_short":P.rotationY||0,P.rotationY,"rotationY",E)),d.skewX=he(C.skewX,P.skewX),d.skewY=he(C.skewY,P.skewY)}for(Me&&null!=C.force3D&&(P.force3D=C.force3D,m=!0),(p=P.force3D||P.z||P.rotationX||P.rotationY||d.z||d.rotationX||d.rotationY||d.perspective)||null==C.scale||(d.scaleZ=1);--T>-1;)((A=d[b=ke[T]]-P[b])>1e-6||-1e-6>A||null!=C[b]||null!=D[b])&&(m=!0,r=new ye(P,b,P[b],A,r),b in E&&(r.e=E[b]),r.xs0=0,r.plugin=a,s._overwriteProps.push(r.n));return A=C.transformOrigin,P.svg&&(A||C.svgOrigin)&&(v=P.xOffset,y=P.yOffset,Re(e,ae(A),d,C.svgOrigin,C.smoothOrigin),r=we(P,"xOrigin",(S?P:d).xOrigin,d.xOrigin,r,k),r=we(P,"yOrigin",(S?P:d).yOrigin,d.yOrigin,r,k),(v!==P.xOffset||y!==P.yOffset)&&(r=we(P,"xOffset",S?v:P.xOffset,P.xOffset,r,k),r=we(P,"yOffset",S?y:P.yOffset,P.yOffset,r,k)),A="0px 0px"),(A||Me&&p&&P.zOrigin)&&(Pe?(m=!0,b=Oe,A=(A||K(e,b,n,!1,"50% 50%"))+"",(r=new ye(x,b,0,0,r,-1,k)).b=x[b],r.plugin=a,Me?(u=P.zOrigin,A=A.split(" "),P.zOrigin=(A.length>2&&(0===u||"0px"!==A[2])?parseFloat(A[2]):u)||0,r.xs0=r.e=A[0]+" "+(A[1]||"50%")+" 0px",(r=new ye(P,"zOrigin",0,0,r,-1,r.n)).b=u,r.xs0=r.e=P.zOrigin):r.xs0=r.e=A):ae(A+"",P)),m&&(s._transformType=P.svg&&Ee||!p&&3!==this._transformType?2:3),c&&(l[i]=c),h&&(l.scale=h),r},prefix:!0}),Te("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),Te("borderRadius",{defaultValue:"0px",parser:function(e,t,i,r,o,a){t=this.format(t);var l,c,h,d,u,p,m,f,_,g,v,y,w,b,S,x,T=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],C=e.style;for(_=parseFloat(e.offsetWidth),g=parseFloat(e.offsetHeight),l=t.split(" "),c=0;c<T.length;c++)this.p.indexOf("border")&&(T[c]=Q(T[c])),-1!==(u=d=K(e,T[c],n,!1,"0px")).indexOf(" ")&&(u=(d=u.split(" "))[0],d=d[1]),p=h=l[c],m=parseFloat(u),y=u.substr((m+"").length),(w="="===p.charAt(1))?(f=parseInt(p.charAt(0)+"1",10),p=p.substr(2),f*=parseFloat(p),v=p.substr((f+"").length-(0>f?1:0))||""):(f=parseFloat(p),v=p.substr((f+"").length)),""===v&&(v=s[i]||y),v!==y&&(b=ee(e,"borderLeft",m,y),S=ee(e,"borderTop",m,y),"%"===v?(u=b/_*100+"%",d=S/g*100+"%"):"em"===v?(u=b/(x=ee(e,"borderLeft",1,"em"))+"em",d=S/x+"em"):(u=b+"px",d=S+"px"),w&&(p=parseFloat(u)+f+v,h=parseFloat(d)+f+v)),o=be(C,T[c],u+" "+d,p+" "+h,!1,"0px",o);return o},prefix:!0,formatter:_e("0px 0px 0px 0px",!1,!0)}),Te("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(e,t,i,s,r,o){return be(e.style,i,this.format(K(e,i,n,!1,"0px 0px")),this.format(t),!1,"0px",r)},prefix:!0,formatter:_e("0px 0px",!1,!0)}),Te("backgroundPosition",{defaultValue:"0 0",parser:function(e,t,i,s,r,o){var a,l,c,h,d,u,p="background-position",m=n||J(e,null),_=this.format((m?f?m.getPropertyValue(p+"-x")+" "+m.getPropertyValue(p+"-y"):m.getPropertyValue(p):e.currentStyle.backgroundPositionX+" "+e.currentStyle.backgroundPositionY)||"0 0"),g=this.format(t);if(-1!==_.indexOf("%")!=(-1!==g.indexOf("%"))&&g.split(",").length<2&&((u=K(e,"backgroundImage").replace(A,""))&&"none"!==u)){for(a=_.split(" "),l=g.split(" "),G.setAttribute("src",u),c=2;--c>-1;)(h=-1!==(_=a[c]).indexOf("%"))!==(-1!==l[c].indexOf("%"))&&(d=0===c?e.offsetWidth-G.width:e.offsetHeight-G.height,a[c]=h?parseFloat(_)/100*d+"px":parseFloat(_)/d*100+"%");_=a.join(" ")}return this.parseComplex(e.style,_,g,r,o)},formatter:ae}),Te("backgroundSize",{defaultValue:"0 0",formatter:function(e){return ae(-1===(e+="").indexOf(" ")?e+" "+e:e)}}),Te("perspective",{defaultValue:"0px",prefix:!0}),Te("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),Te("transformStyle",{prefix:!0}),Te("backfaceVisibility",{prefix:!0}),Te("userSelect",{prefix:!0}),Te("margin",{parser:ge("marginTop,marginRight,marginBottom,marginLeft")}),Te("padding",{parser:ge("paddingTop,paddingRight,paddingBottom,paddingLeft")}),Te("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(e,t,i,s,r,o){var a,l,c;return 9>f?(l=e.currentStyle,c=8>f?" ":",",a="rect("+l.clipTop+c+l.clipRight+c+l.clipBottom+c+l.clipLeft+")",t=this.format(t).split(",").join(c)):(a=this.format(K(e,this.p,n,!1,this.dflt)),t=this.format(t)),this.parseComplex(e.style,a,t,r,o)}}),Te("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),Te("autoRound,strictUnits",{parser:function(e,t,i,s,n){return n}}),Te("border",{defaultValue:"0px solid #000",parser:function(e,t,i,s,r,o){var a=K(e,"borderTopWidth",n,!1,"0px"),l=this.format(t).split(" "),c=l[0].replace(S,"");return"px"!==c&&(a=parseFloat(a)/ee(e,"borderTopWidth",1,c)+c),this.parseComplex(e.style,this.format(a+" "+K(e,"borderTopStyle",n,!1,"solid")+" "+K(e,"borderTopColor",n,!1,"#000")),l.join(" "),r,o)},color:!0,formatter:function(e){var t=e.split(" ");return t[0]+" "+(t[1]||"solid")+" "+(e.match(fe)||["#000"])[0]}}),Te("borderWidth",{parser:ge("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),Te("float,cssFloat,styleFloat",{parser:function(e,t,i,s,n,r){var o=e.style,a="cssFloat"in o?"cssFloat":"styleFloat";return new ye(o,a,0,0,n,-1,i,!1,0,o[a],t)}});var je=function(e){var t,i=this.t,s=i.filter||K(this.data,"filter")||"",n=this.s+this.c*e|0;100===n&&(-1===s.indexOf("atrix(")&&-1===s.indexOf("radient(")&&-1===s.indexOf("oader(")?(i.removeAttribute("filter"),t=!K(this.data,"filter")):(i.filter=s.replace(C,""),t=!0)),t||(this.xn1&&(i.filter=s=s||"alpha(opacity="+n+")"),-1===s.indexOf("pacity")?0===n&&this.xn1||(i.filter=s+" alpha(opacity="+n+")"):i.filter=s.replace(x,"opacity="+n))};Te("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(e,t,i,s,r,o){var a=parseFloat(K(e,"opacity",n,!1,"1")),l=e.style,c="autoAlpha"===i;return"string"==typeof t&&"="===t.charAt(1)&&(t=("-"===t.charAt(0)?-1:1)*parseFloat(t.substr(2))+a),c&&1===a&&"hidden"===K(e,"visibility",n)&&0!==t&&(a=0),Y?r=new ye(l,"opacity",a,t-a,r):((r=new ye(l,"opacity",100*a,100*(t-a),r)).xn1=c?1:0,l.zoom=1,r.type=2,r.b="alpha(opacity="+r.s+")",r.e="alpha(opacity="+(r.s+r.c)+")",r.data=e,r.plugin=o,r.setRatio=je),c&&((r=new ye(l,"visibility",0,0,r,-1,null,!1,0,0!==a?"inherit":"hidden",0===t?"hidden":"inherit")).xs0="inherit",s._overwriteProps.push(r.n),s._overwriteProps.push(i)),r}});var Ye=function(e,t){t&&(e.removeProperty?(("ms"===t.substr(0,2)||"webkit"===t.substr(0,6))&&(t="-"+t),e.removeProperty(t.replace(k,"-$1").toLowerCase())):e.removeAttribute(t))},Xe=function(e){if(this.t._gsClassPT=this,1===e||0===e){this.t.setAttribute("class",0===e?this.b:this.e);for(var t=this.data,i=this.t.style;t;)t.v?i[t.p]=t.v:Ye(i,t.p),t=t._next;1===e&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};Te("className",{parser:function(e,t,s,r,o,a,l){var c,h,d,u,p,m=e.getAttribute("class")||"",f=e.style.cssText;if((o=r._classNamePT=new ye(e,s,0,0,o,2)).setRatio=Xe,o.pr=-11,i=!0,o.b=m,h=ie(e,n),d=e._gsClassPT){for(u={},p=d.data;p;)u[p.p]=1,p=p._next;d.setRatio(1)}return e._gsClassPT=o,o.e="="!==t.charAt(1)?t:m.replace(new RegExp("(?:\\s|^)"+t.substr(2)+"(?![\\w-])"),"")+("+"===t.charAt(0)?" "+t.substr(2):""),e.setAttribute("class",o.e),c=se(e,h,ie(e),l,u),e.setAttribute("class",m),o.data=c.firstMPT,e.style.cssText=f,o.xfirst=r.parse(e,c.difs,o,a)}});var Ue=function(e){if((1===e||0===e)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var t,i,s,n,r,o=this.t.style,a=l.transform.parse;if("all"===this.e)o.cssText="",n=!0;else for(s=(t=this.e.split(" ").join("").split(",")).length;--s>-1;)i=t[s],l[i]&&(l[i].parse===a?n=!0:i="transformOrigin"===i?Oe:l[i].p),Ye(o,i);n&&(Ye(o,Pe),(r=this.t._gsTransform)&&(r.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(Te("clearProps",{parser:function(e,t,s,n,r){return(r=new ye(e,s,0,0,r,2)).setRatio=Ue,r.e=t,r.pr=-10,r.data=n._tween,i=!0,r}}),c="bezier,throwProps,physicsProps,physics2D".split(","),Se=c.length;Se--;)Ce(c[Se]);(c=o.prototype)._firstPT=c._lastParsedTransform=c._transform=null,c._onInitTween=function(e,t,a,c){if(!e.nodeType)return!1;this._target=_=e,this._tween=a,this._vars=t,g=c,h=t.autoRound,i=!1,s=t.suffixMap||o.suffixMap,n=J(e,""),r=this._overwriteProps;var p,f,v,y,w,b,S,x,C,E=e.style;if(d&&""===E.zIndex&&(("auto"===(p=K(e,"zIndex",n))||""===p)&&this._addLazySet(E,"zIndex",0)),"string"==typeof t&&(y=E.cssText,p=ie(e,n),E.cssText=y+";"+t,p=se(e,p,ie(e)).difs,!Y&&T.test(t)&&(p.opacity=parseFloat(RegExp.$1)),t=p,E.cssText=y),t.className?this._firstPT=f=l.className.parse(e,t.className,"className",this,null,null,t):this._firstPT=f=this.parse(e,t,null),this._transformType){for(C=3===this._transformType,Pe?u&&(d=!0,""===E.zIndex&&(("auto"===(S=K(e,"zIndex",n))||""===S)&&this._addLazySet(E,"zIndex",0)),m&&this._addLazySet(E,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(C?"visible":"hidden"))):E.zoom=1,v=f;v&&v._next;)v=v._next;x=new ye(e,"transform",0,0,null,2),this._linkCSSP(x,null,v),x.setRatio=Pe?We:Ge,x.data=this._transform||Fe(e,n,!0),x.tween=a,x.pr=-1,r.pop()}if(i){for(;f;){for(b=f._next,v=y;v&&v.pr>f.pr;)v=v._next;(f._prev=v?v._prev:w)?f._prev._next=f:y=f,(f._next=v)?v._prev=f:w=f,f=b}this._firstPT=y}return!0},c.parse=function(e,t,i,r){var o,a,c,d,u,p,m,f,v,y,w=e.style;for(o in t){if("function"==typeof(p=t[o])&&(p=p(g,_)),a=l[o])i=a.parse(e,p,o,this,i,r,t);else{if("--"===o.substr(0,2)){this._tween._propLookup[o]=this._addTween.call(this._tween,e.style,"setProperty",J(e).getPropertyValue(o)+"",p+"",o,!1,o);continue}u=K(e,o,n)+"",v="string"==typeof p,"color"===o||"fill"===o||"stroke"===o||-1!==o.indexOf("Color")||v&&E.test(p)?(v||(p=((p=pe(p)).length>3?"rgba(":"rgb(")+p.join(",")+")"),i=be(w,o,u,p,!0,"transparent",i,0,r)):v&&B.test(p)?i=be(w,o,u,p,!0,null,i,0,r):(m=(c=parseFloat(u))||0===c?u.substr((c+"").length):"",(""===u||"auto"===u)&&("width"===o||"height"===o?(c=oe(e,o,n),m="px"):"left"===o||"top"===o?(c=te(e,o,n),m="px"):(c="opacity"!==o?0:1,m="")),(y=v&&"="===p.charAt(1))?(d=parseInt(p.charAt(0)+"1",10),p=p.substr(2),d*=parseFloat(p),f=p.replace(S,"")):(d=parseFloat(p),f=v?p.replace(S,""):""),""===f&&(f=o in s?s[o]:m),p=d||0===d?(y?d+c:d)+f:t[o],m!==f&&(""!==f||"lineHeight"===o)&&(d||0===d)&&c&&(c=ee(e,o,c,m),"%"===f?(c/=ee(e,o,100,"%")/100,!0!==t.strictUnits&&(u=c+"%")):"em"===f||"rem"===f||"vw"===f||"vh"===f?c/=ee(e,o,1,f):"px"!==f&&(d=ee(e,o,d,f),f="px"),y&&(d||0===d)&&(p=d+c+f)),y&&(d+=c),!c&&0!==c||!d&&0!==d?void 0!==w[o]&&(p||p+""!="NaN"&&null!=p)?(i=new ye(w,o,d||c||0,0,i,-1,o,!1,0,u,p)).xs0="none"!==p||"display"!==o&&-1===o.indexOf("Style")?p:u:U("invalid "+o+" tween value: "+t[o]):(i=new ye(w,o,c,d-c,i,0,o,!1!==h&&("px"===f||"zIndex"===o),0,u,p)).xs0=f)}r&&i&&!i.plugin&&(i.plugin=r)}return i},c.setRatio=function(e){var t,i,s,n=this._firstPT;if(1!==e||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(e||this._tween._time!==this._tween._duration&&0!==this._tween._time||-1e-6===this._tween._rawPrevTime)for(;n;){if(t=n.c*e+n.s,n.r?t=Math.round(t):1e-6>t&&t>-1e-6&&(t=0),n.type)if(1===n.type)if(2===(s=n.l))n.t[n.p]=n.xs0+t+n.xs1+n.xn1+n.xs2;else if(3===s)n.t[n.p]=n.xs0+t+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3;else if(4===s)n.t[n.p]=n.xs0+t+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3+n.xn3+n.xs4;else if(5===s)n.t[n.p]=n.xs0+t+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3+n.xn3+n.xs4+n.xn4+n.xs5;else{for(i=n.xs0+t+n.xs1,s=1;s<n.l;s++)i+=n["xn"+s]+n["xs"+(s+1)];n.t[n.p]=i}else-1===n.type?n.t[n.p]=n.xs0:n.setRatio&&n.setRatio(e);else n.t[n.p]=t+n.xs0;n=n._next}else for(;n;)2!==n.type?n.t[n.p]=n.b:n.setRatio(e),n=n._next;else for(;n;){if(2!==n.type)if(n.r&&-1!==n.type)if(t=Math.round(n.s+n.c),n.type){if(1===n.type){for(s=n.l,i=n.xs0+t+n.xs1,s=1;s<n.l;s++)i+=n["xn"+s]+n["xs"+(s+1)];n.t[n.p]=i}}else n.t[n.p]=t+n.xs0;else n.t[n.p]=n.e;else n.setRatio(e);n=n._next}},c._enableTransforms=function(e){this._transform=this._transform||Fe(this._target,n,!0),this._transformType=this._transform.svg&&Ee||!e&&3!==this._transformType?2:3};var $e=function(e){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};c._addLazySet=function(e,t,i){var s=this._firstPT=new ye(e,t,0,0,this._firstPT,2);s.e=i,s.setRatio=$e,s.data=this},c._linkCSSP=function(e,t,i,s){return e&&(t&&(t._prev=e),e._next&&(e._next._prev=e._prev),e._prev?e._prev._next=e._next:this._firstPT===e&&(this._firstPT=e._next,s=!0),i?i._next=e:s||null!==this._firstPT||(this._firstPT=e),e._next=t,e._prev=i),e},c._mod=function(e){for(var t=this._firstPT;t;)"function"==typeof e[t.p]&&e[t.p]===Math.round&&(t.r=1),t=t._next},c._kill=function(t){var i,s,n,r=t;if(t.autoAlpha||t.alpha){for(s in r={},t)r[s]=t[s];r.opacity=1,r.autoAlpha&&(r.visibility=1)}for(t.className&&(i=this._classNamePT)&&((n=i.xfirst)&&n._prev?this._linkCSSP(n._prev,i._next,n._prev._prev):n===this._firstPT&&(this._firstPT=i._next),i._next&&this._linkCSSP(i._next,i._next._next,n._prev),this._classNamePT=null),i=this._firstPT;i;)i.plugin&&i.plugin!==s&&i.plugin._kill&&(i.plugin._kill(t),s=i.plugin),i=i._next;return e.prototype._kill.call(this,r)};var Ze=function(e,t,i){var s,n,r,o;if(e.slice)for(n=e.length;--n>-1;)Ze(e[n],t,i);else for(n=(s=e.childNodes).length;--n>-1;)o=(r=s[n]).type,r.style&&(t.push(ie(r)),i&&i.push(r)),1!==o&&9!==o&&11!==o||!r.childNodes.length||Ze(r,t,i)};return o.cascadeTo=function(e,i,s){var n,r,o,a,l=t.to(e,i,s),c=[l],h=[],d=[],u=[],p=t._internals.reservedProps;for(e=l._targets||l.target,Ze(e,h,u),l.render(i,!0,!0),Ze(e,d),l.render(0,!0,!0),l._enabled(!0),n=u.length;--n>-1;)if((r=se(u[n],h[n],d[n])).firstMPT){for(o in r=r.difs,s)p[o]&&(r[o]=s[o]);for(o in a={},r)a[o]=h[n][o];c.push(t.fromTo(u[n],i,a,r))}return c},e.activate([o]),o},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(e){"use strict";var t=function(){return(_gsScope.GreenSockGlobals||_gsScope).CSSPlugin};"undefined"!=typeof module&&module.exports?(require("../TweenLite.min.js"),module.exports=t()):"function"==typeof define&&define.amd&&define(["TweenLite"],t)}();class Ajax{constructor(e){this._prepareAjax(e)}_prepareAjax(e){const{container:t,type:i}=e,s=document.getElementById("loader").content.cloneNode(!0);if(null!==t)if("loadPictures"==i){const e=t.querySelector(".text-center");t.insertBefore(s,e)}else t.appendChild(s);this._doAjax(e)}_doAjax(e){const t={requestType:e.requestType?e.requestType:"GET"};fetch(e.url,{method:t.requestType}).then(e=>e.text()).then(t=>{e.onComplete(t,e)}).catch(e=>{console.log(e.message)})}}class AjaxRequests{constructor(){this._setVars()&&this._setEvents()}_setVars(){if(this._buttons=document.querySelectorAll("[data-ajax]"),this._isZoomed=!1,this._buttons.length)return!0}_setEvents(){this._buttons.each(e=>{e.addEvent("click",t=>{t.stopPropagation(),t.preventDefault(),this._prepareAjaxArgs(e)})})}_rebindEvents(){this._removeEvents(),this._setVars(),this._setEvents()}_removeEvents(){this._buttons.each(e=>{e.removeEvent("click")})}_prepareAjaxArgs(e){const t=e.getAttribute("data-ajax"),i=!!e.getAttribute("data-id")&&e.getAttribute("data-id"),s={id:i,type:t,container:e.getAttribute("data-ajax-container")?document.querySelector(e.getAttribute("data-ajax-container")):e.parentElement,url:e.getAttribute("data-source")||this._getUrl(t,i),onStart:this._onStart(t,e),onComplete:(e,t)=>this._onComplete(e,t),startIndex:void 0!==e.dataset.startIndex?parseInt(e.dataset.startIndex):0};new Ajax(s)}_getUrl(e,t){let i;switch(e){case"loadPictures":i="./../tmpServerResponses/pictures.php";break;case"loadEvents":i="./../tmpServerResponses/events.php";break;case"loadNews":i="./../tmpServerResponses/news.php";break;case"loadGallery":i="./../tmpServerResponses/gallery.php";break;case"popupGallery":i=`./../tmpServerResponses/popupGallery-${t}.php`;break;case"popupVideo":i=`./../tmpServerResponses/popupVideo-${t}.php`;break;case"popupBuyTicket":i="./../tmpServerResponses/popupBuyTicket.php";break;case"popupImage":i=`./../tmpServerResponses/popupImage-${t}.php`;break;default:throw`Request type: ${e} is not handled`}return i}_onStart(e,t){if("popupGallery"===e){document.cftn.popup=new Popup;const e=document.cftn.popup,t=document.getElementById("loader").content.cloneNode(!0);e.show(),e._outer.addClass(e._classes.outerLoad),e._arrow.addClass(e._classes.arrow),e._outer.appendChild(t)}else if("popupGeneric"===e){document.cftn.popup=new Popup;const e=document.cftn.popup,t=document.getElementById("loader").content.cloneNode(!0);e.show(),e._outer.addClass(e._classes.outerLoad),e._arrow.addClass(e._classes.arrow),e._outer.appendChild(t)}else if("popupBuyTicket"===e){document.cftn.popup=new Popup;const e=document.cftn.popup,t=document.getElementById("loader").content.cloneNode(!0);e.show(),e._outer.addClass(e._classes.outerLoad),e._arrow.addClass(e._classes.arrow),e._outer.appendChild(t)}}_onComplete(e,t){const{type:i}=t;switch(i){case"loadPictures":this._handlePictures(e,t);break;case"loadEvents":this._handleEvents(e,t);break;case"loadNews":this._handleNews(e,t);break;case"loadGallery":this._handleGallery(e,t);break;case"popupGallery":this._handlePopupGallery(e,t);break;case"popupGeneric":case"popupBuyTicket":this._handlePopupGeneric(e,t);break;default:throw`Response type: ${i} is not handled`}}_handlePictures(e,t){const{container:i}=t,s=i.querySelector(".singleGallery__grid");i.removeChild(i.querySelector(".loader")),s.insertAdjacentHTML("beforeend",e);const n=i.id.split("-")[1];document.cftn.galleryGrid._galleries[n]._preload(),this._rebindEvents()}_handleEvents(e,t){const{container:i}=t,s=i.scrollHeight;i.style.height=`${s}px`,i.style.overflow="hidden",i.removeChild(document.querySelector(".loader")),i.innerHTML+=e;const n=i.scrollHeight;TweenLite.to(i,1,{height:n,onComplete:()=>{i.style.height="",i.style.overflow=""}})}_handleNews(e,t){const{container:i}=t,s=i.scrollHeight;i.style.height=`${s}px`,i.style.overflow="hidden",i.removeChild(document.querySelector(".loader")),i.innerHTML+=e;const n=i.scrollHeight;TweenLite.to(i,.5,{height:n,onComplete:()=>{i.style.height="",i.style.overflow=""}})}_handleGallery(e,t){const{container:i}=t,s=i.scrollHeight;i.style.height=`${s}px`,i.style.overflow="hidden",i.removeChild(document.querySelector(".loader")),i.innerHTML+=e;const n=i.scrollHeight;TweenLite.to(i,.5,{height:n,onComplete:()=>{i.style.height="",i.style.overflow=""}}),this._rebindEvents()}_handlePopupGallery(e,t){document.cftn.popup.handlePopupGalleryAjax(e,t),document.querySelector(".popup__zoom").parentElement.removeChild(document.querySelector(".popup__zoom")),document.querySelector(".popup__showZoomButton").parentElement.removeChild(document.querySelector(".popup__showZoomButton")),document.cftn.VideoPlayer.reinit()}_handlePopupGeneric(e,t){document.cftn.popup.handlePopupGenericAjax(e,t)}}class AppPopup{constructor(){this.setVars()&&(this.setEvents(),this.cookieContainer.classList.contains("cookie--hide")&&(this.appPopupContainer.style.display=""))}setVars(){return this.appPopupContainer=document.querySelector(".appPopup"),!!this.appPopupContainer&&(this.cookieContainer=document.querySelector(".cookie"),this.cookieObserver=new MutationObserver((e,t)=>{for(const t of e)if("attributes"===t.type){this.appPopupContainer.style.display="",this.cookieObserver.disconnect();break}}),!0)}setEvents(){this.appPopupContainer.querySelector(".appPopup--close").addEventListener("click",e=>{this.appPopupContainer.style.display="none",this.setCookie("AppPopupClosed","",7)}),this.cookieObserver.observe(this.cookieContainer,{attributes:!0})}setCookie(e,t,i){const s=new Date;s.setTime(s.getTime()+24*i*60*60*1e3);const n="expires="+s.toUTCString();document.cookie=e+"="+t+";"+n+";path=/"}}class BannerOverflowButtons{constructor(e){this.setVars(e),this.setEvents(),this.handleButtonOverflow()}setVars(e){this.container=e,this.banner=this.container.querySelector(".banner__inner"),this.bannerPanel=this.container.querySelector(".bannerPanel__container"),this.buttonContainer=this.container.querySelector(".bannerPanel__buttons"),this.buttonBottomContainer=this.container.querySelector(".banner__buttonContainer"),this.offset=parseInt(this.bannerPanel.dataset.offset),this.buttonContainerHeight=this.buttonContainer.offsetHeight}setEvents(){window.addEvent("resize",this.handleButtonOverflow.bind(this))}handleButtonOverflow(){window.matchMedia("(max-width: 999px)").matches?this.restoreAllButtons():this.isEnoughSpaceForButtons()?this.restoreAllButtons():this.checkForOverflow()}checkForOverflow(){this.banner.offsetHeight-this.offset<this.bannerPanel.offsetHeight&&this.buttonContainer.childElementCount>0&&this.pushButtons()}isEnoughSpaceForButtons(){return this.banner.offsetHeight-this.offset-this.bannerPanel.offsetHeight>this.buttonContainerHeight}pushButtons(){Array.from(this.buttonContainer.children).each(e=>{this.buttonBottomContainer.prepend(e)})}restoreButton(e){this.buttonContainer.append(e)}restoreAllButtons(){this.buttonBottomContainer.querySelectorAll(".button").each(e=>{this.restoreButton(e)})}restoreFirstButton(){const e=this.buttonBottomContainer.children[0];e&&this.restoreButton(e)}}class CalendarSearch{constructor(){this._setVars()&&this._setEvents()}_setVars(){if(this._form=document.querySelector(".calendarFilter__searchForm"),this._form)return this._input=this._form.querySelector(".calendarFilter__searchInput"),this._button=this._form.querySelector(".calendarFilter__searchButton"),this._results=this._form.querySelector(".calendarFilter__searchResult"),this._classes={selectedLink:"searchLink--selected"},!0}_setEvents(){this._input.addEvent("input",debounce(e=>{this._handleSearch(e.target.value)},300)),this._button.addEvent("click",()=>this._form.submit()),window.addEvent("click",e=>{null===e.target.closest(".calendarFilter__searchForm")&&this._close()}),this._input.addEvent("keydown",e=>{this._results.innerHTML})}_handleSearch(e){if(this._results.innerHTML="",e.length<3)return;const t={type:"eventSearch",container:this._results,url:`./../tmpServerResponses/search.php?q=${e}`,onComplete:e=>this._onComplete(e)};new Ajax(t)}_onComplete(e){this._results.innerHTML=e}_close(){this._results.innerHTML=""}}class Cookie{constructor(){this._setVars()&&(this._setEvents(),document.cookie.split("; ").find(e=>e.startsWith("cookieOptions="))&&updateConsentOptions())}_setVars(){if(this._container=document.querySelector(".cookie"),this._container)return this.acceptSelected=this._container.querySelector(".cookie__button--acceptSelected"),this.acceptAll=this._container.querySelector(".cookie__button--acceptAll"),this.personalize=this._container.querySelector(".cookie__button--personalize"),this.deny=this._container.querySelector(".cookie__button--deny"),this.deny.style.display="none",this.tabs=this._container.querySelectorAll(".cookie__tab"),this.cookieOptions={analitics:!1,marketing:!1},this._container.querySelectorAll(".cookie__switch input").forEach(e=>{"Essentials"!=e.dataset.fieldname&&(this.cookieOptions[e.dataset.fieldname]=e.checked)}),this.cookieVer=1,!0}_setEvents(){this._container.querySelectorAll(".cookie__switch--container").forEach(e=>{var t=e.querySelector(".cookie__switch__arrow");t.addEvent("click",()=>{t.classList.toggle("cookie__switch__arrow--exp"),e.querySelector(".cookie__switch--desc").classList.toggle("cookie__switch--desc--exp")}),e.querySelector("input").addEvent("click",e=>{this.cookieOptions[e.target.dataset.fieldname]=e.target.checked})}),this.acceptSelected.addEvent("click",()=>{this._setCookie("cookieOptions",JSON.stringify(this.cookieOptions),30),this._setCookie("cookieVer",this.cookieVer,30),this._container.addClass("cookie--hide"),updateConsentOptions(),this._removeBlur()}),this.acceptAll.addEvent("click",()=>{this.cookieOptions={analitics:!0,marketing:!0},this._setCookie("cookieOptions",JSON.stringify(this.cookieOptions),30),this._setCookie("cookieVer",this.cookieVer,30),this._container.addClass("cookie--hide"),this._container.querySelectorAll(".cookie__switch input").forEach(e=>{"Essentials"!=e.dataset.fieldname&&(e.checked=!0)}),updateConsentOptions(),this._removeBlur(),this._container.querySelectorAll(".cookie__switch input").forEach(e=>{"Essentials"!=e.dataset.fieldname&&(e.checked=!0)})}),this.deny.addEvent("click",()=>{this.cookieOptions={analitics:!1,marketing:!1},this._setCookie("cookieOptions",JSON.stringify(this.cookieOptions),30),this._setCookie("cookieVer",this.cookieVer,30),this._container.addClass("cookie--hide"),updateConsentOptions(),this._removeBlur(),this._container.querySelectorAll(".cookie__switch input").forEach(e=>{"Essentials"!=e.dataset.fieldname&&(e.checked=!1)})}),this.tabs.forEach(e=>{e.addEvent("click",t=>{var i=this._container.querySelectorAll(".cookie__mainContainer");i.removeClass("cookie__mainContainer--selected"),i[e.dataset.index].classList.add("cookie__mainContainer--selected");var s=t.target.dataset.index;this.personalize.classList.toggle("cookie__button--hidden",1==s),this.acceptSelected.classList.toggle("cookie__button--hidden",1!=s),this.deny.style.display=1==s?"block":"none"})}),this.personalize.addEvent("click",()=>{this.tabs[1].click()}),this._container.querySelector(".cookie__popupButton").addEvent("click",()=>{this._container.classList.toggle("cookie--hide")})}_setCookie(e,t,i){const s=new Date;s.setTime(s.getTime()+24*i*60*60*1e3);const n="expires="+s.toUTCString();document.cookie=e+"="+t+";"+n+";path=/"}_removeBlur(){document.querySelector("header").style="",document.querySelector("main").style="",document.querySelector("body").style="",document.querySelector(".cookie__popupButton").style=""}}class DescriptionGalleryAnimation{constructor(){this.setVars()&&(this.setEvents(),this.init())}setVars(){if(this._galleryPanel=document.querySelector(".descriptionGallery"),this._toggleButton=document.querySelector(".jsToggleGallery"),this._closeButton=document.querySelector(".jsCloseGallery"),this._toggleMobileButton=document.querySelector(".jsToggleGalleryMobile"),this._toggleButton)return this.classes={toggled:"descriptionGallery--toggled",toggleButtonHidden:"descriptionGallery__toggleButton--hidden",closeButtonHidden:"descriptionGallery__closeButton--hidden"},!0}setEvents(){this._toggleButton.addEvent("click",()=>this.toggle()),this._closeButton.addEvent("click",()=>this.toggle()),this._toggleMobileButton.addEvent("click",()=>this.toggleMobile())}init(){}toggleMobile(){console.log("dupa"),this._galleryPanel.hasClass("descriptionGallery__toogleMobile")?this._galleryPanel.removeClass("descriptionGallery__toogleMobile"):this._galleryPanel.addClass("descriptionGallery__toogleMobile")}toggle(){var e=!!window.MSInputMethodContext&&!!document.documentMode,t=e?0:1e3;this._galleryPanel.hasClass(this.classes.toggled)?(this._galleryPanel.removeClass(this.classes.toggled),setTimeout(function(){document.querySelector(".jsCloseGallery").style.setProperty("display","none"),document.querySelector(".jsToggleGallery").style.setProperty("display","block")},300+t),setTimeout(function(){document.querySelector(".jsToggleGallery").removeClass("descriptionGallery__toggleButton--hidden")},400+t)):(this._galleryPanel.addClass(this.classes.toggled),this._toggleButton.addClass(this.classes.toggleButtonHidden),e?(document.querySelector(".jsToggleGallery").style.setProperty("display","none"),document.querySelector(".jsCloseGallery").style.setProperty("display","block")):setTimeout(function(){document.querySelector(".jsToggleGallery").style.setProperty("display","none"),document.querySelector(".jsCloseGallery").style.setProperty("display","block")},300))}}class Events{constructor(){this._setVars()&&this._addClass()}_setVars(){if(this._events=document.querySelectorAll(".events"),this._events)return!0}_addClass(){for(let e of this._events)e.classList.contains("events--type-two")||e.classList.contains("events--type-three")?e.querySelectorAll(".events__organizerImg").forEach(e=>{e.classList.add("events__organizerImg--medium")}):e.classList.contains("events--type-one")&&e.querySelectorAll(".events__organizerImg").forEach(e=>{e.classList.add("events__organizerImg--big")})}}class Fixed{constructor(){this._setVars()&&(this._setEvents(),this._run())}_setVars(){if(this._panel=document.querySelector(".eventPanel"),this._panel)return this._match=window.matchMedia("(max-width: 999px)").matches,this._running=!1,!0}_setEvents(){window.addEvent("resize",()=>{this._match=window.matchMedia("(max-width: 999px)").matches,this._run()})}_run(){this._match||this._running?this._match&&this._running&&(this._sidebar.destroy(),this._running=!1,console.log("destroy")):(this._sidebar=new StickySidebar(".eventPanel",{containerSelector:".singleEvent__inner",innerWrapperSelector:".eventPanel__inner",topSpacing:117,bottomSpacing:40}),this._running=!0)}}class FixedMenu{constructor(){this._setVars()&&this._setEvents()}_setVars(){return this._header=document.querySelector(".header"),!!this._header&&(this._fixedMenu=document.querySelector(".fixedMenu"),!!this._fixedMenu&&(this._classes={fixedMenu:"fixedMenu--active"},!0))}_setEvents(){window.addEvent("scroll",()=>{this._checkFixed()})}_checkFixed(){let e=this._header.getOffset().t;window.scrollTop()>e+this._header.clientHeight?(this._setFixed(),document.cftn.submenu&&document.cftn.submenu.closeAll()):this._setFixed(!1)}_setFixed(e){!1!==e?this._fixedMenu.addClass(this._classes.fixedMenu):(this._fixedMenu.removeClass(this._classes.fixedMenu),this._closeSubmenu())}_closeSubmenu(){let e=this._fixedMenu.querySelector(".header__subList--active");e&&(e.style.visibility="hidden",e.style.opacity=0),document.cftn.submenu&&document.cftn.submenu.showMask(!1)}}class FlexImages{constructor(e,t){this.container=e,this.options=Object.assign({gutter:20,max_height:165},t),this._vars(),this.grid.querySelectorAll("[data-grid-item]").length>0&&this._preload()}_vars(){this.grid=this.container.querySelector("[data-grid]"),this.loadMoreButton=document.querySelector("[data-grid-load-more]"),this.top=0,this.left=0,this.valuesAll=[],this.valuesTmp=[],this.MAX_HEIGHT=this.options.max_height,this.GUTTER=this.options.gutter,this.grid_height=0}_events(){window.addEventListener("resize",()=>{this._renderRows()})}_preload(){var e=[];Array.from(this.grid.querySelectorAll("[data-grid-item]")).forEach((t,i)=>{e.push(this._loadImage(t))}),Promise.all(e).then(e=>{this.valuesAll=e,this.valuesTmp=e,this._renderRows()})}_loadImage(e){return new Promise((t,i)=>{var s=new Image;s.src=e.querySelector("[data-grid-item-image]").style.backgroundImage.slice(4,-1).replace(/"/g,""),s.onload=function(){t({image:s,item:e})}})}_renderRows(){this.grid_height=0,this.left=0;for(var e=this.top,t=0,i=[],s=0,n=0;n<this.valuesTmp.length;n++){var r=this.valuesTmp[n].image.naturalWidth,o=this.valuesTmp[n].image.naturalHeight,a=o/this.MAX_HEIGHT;t<=this.grid.clientWidth&&i.push(this.valuesTmp[n]);var l=this._transform(r,o,a,this.valuesTmp[n],!1,e);if((t=t+l.width+this.GUTTER)>this.grid.clientWidth){for(var c=t,h=this.MAX_HEIGHT,d=0;c>this.grid.clientWidth;){h-=1;var u=0;i.forEach(t=>{const i=this._recalculateRow(t,h,u,e);u+=i.width+this.GUTTER,d=i.height+this.GUTTER}),c=u-this.GUTTER}(n<this.valuesTmp.length-1||window.innerWidth<500)&&(this.grid_height=this.grid_height+d),this.left=0,e=e+h+this.GUTTER,t=0,i=[]}else s=l.height+this.GUTTER}this.grid_height=this.grid_height+s,this.grid.style.height=this.grid_height+"px"}_recalculateRow(e,t,i,s){var n=e.image.naturalWidth,r=e.image.naturalHeight,o=r/t;return n>r?(r=t,n/=o):(r>t&&(n*=t/r,r=t),r<t&&(n/=o,r=t)),e.item.style.width=n+"px",e.item.style.height=r+"px",e.item.style.transform="translate3d("+i+"px, "+s+"px, 0px)",{width:n,height:r}}_transform(e,t,i,s,n,r){return void 0===n&&(n=!1),e>t?e/=i:(t>this.MAX_HEIGHT&&(e*=this.MAX_HEIGHT/t,t=this.MAX_HEIGHT),t<this.MAX_HEIGHT&&(e/=i,t=this.MAX_HEIGHT)),0!=n&&(t=n),s.item.style.width=e+"px",s.item.style.height=t+"px",s.item.style.transform="translate3d("+this.left+"px, "+r+"px, 0px)",this.left+=e+this.GUTTER,{width:e,height:t,left:this.left}}}class FormPopup{constructor(){this.setVars()&&this.setEvents()}setVars(){if(this.link=document.querySelector(".form__popupLink"),this.link)return!0}setEvents(){this.link.addEvent("click",e=>{e.stopPropagation(),e.preventDefault(),this.openPopup()})}openPopup(){const e=document.querySelector(".popup__agreementText").cloneNode(!0);e.classList.add("popup__agreementText--show"),e&&(document.cftn.popup=(new Popup).prepareData("text",null,e))}}class GalleryGrid{constructor(){this._setVars()&&this._setEvents()}_setVars(){var e=document.querySelectorAll(".singleGallery__container.singleGallery__container--noSlider");if(e.length)return this._galleries=[],e.each((e,t)=>{if(!e)return;e.id="gallery-"+t++;let i=new FlexImages(e,{gutter:20,max_height:165});this._galleries.push(i)}),!0}_setEvents(){window.onresize=(()=>{this._galleries.forEach(e=>{e._renderRows()})})}}class GenerateCalendarLinks{constructor(){"undefined"!=typeof calendarOptions&&this.setVars()}setVars(){this.sections=document.querySelectorAll(".jsAddToCalendar"),this.sections.length&&(this.classes={container:"addToCalendar__container--show"},this.prepare())}prepare(){this.sections.each(e=>{const t=e.querySelector(".addToCalendar__container"),i=new AddToCalendar(calendarOptions[e.dataset.id]).render();e.GenerateCalendarLinks={container:t,data:i},this.populateWithData(i,t)}),this.setEvents()}setEvents(){this.sections.each(e=>{e.addEventListener("click",()=>{this.toggleContainer(e)}),e.addEvent("mouseleave",()=>{this.closeAll()}),e.addEvent("blur",()=>{this.closeAll()})})}toggleContainer(e){const t=e.GenerateCalendarLinks.container,i=this.classes.container;t.hasClass(i)?this.close(t):this.open(t)}close(e){const t=e.querySelector(".addToCalendar__mask");t&&this.toggleMask(t,!0),e.removeClass(this.classes.container)}closeAll(){this.sections.each(e=>{this.close(e.GenerateCalendarLinks.container)})}open(e){const t=e.querySelector(".addToCalendar__mask");t&&this.toggleMask(t,!0),e.addClass(this.classes.container)}populateWithData(e,t){t.querySelectorAll(".addToCalendar__link").each(t=>{t.href=e[t.dataset.name]})}toggleMask(e,t){t?(e.addEvent("click.GenerateCalendarLinks",e=>{e.stopPropagation(),this.closeAll()}),e.addEvent("mouseenter.GenerateCalendarLinks",e=>{e.stopPropagation(),this.closeAll()})):(e.removeEvent("click.GenerateCalendarLinks"),e.removeEvent("mouseenter.GenerateCalendarLinks"))}}class GoogleMaps{constructor(){this._setVars()}_setVars(){return this.styles=this._getStyles(),!0}initGMap(){mapSettings.each(e=>{this._initMap(e)})}_initMap(e){let t,i=e.desc,s=new google.maps.Map(document.querySelector(e.selector),{center:e.values.center,zoom:e.values.zoom,styles:this.styles,disableDefaultUI:!0});t=new google.maps.Marker({map:s,animation:google.maps.Animation.DROP,position:e.values.pin,icon:e.values.iconPath});let n='<div class="mapInfo">'+this._returnLogo(i.logo)+`<p class="mapInfo__address"> ${i.addres} </p>\n          <a class="mapInfo__link" href="${i.link}"> ${i.linkText} </a>\n        </div>`,r=new google.maps.InfoWindow({content:n,maxWidth:185});t.addListener("click",()=>{r.open(s,t)}),google.maps.event.addListener(s,"click",function(){r.close()}),r.open(s,t)}_returnLogo(e){return e?'<span class="mapInfo__icon icon-mtp_side"></span>':'<span class="mapInfo__spacer"></span>'}_getStyles(){return[{featureType:"all",elementType:"labels",stylers:[{visibility:"on"}]},{featureType:"all",elementType:"labels.text.fill",stylers:[{saturation:36},{color:"#333333"},{lightness:40}]},{featureType:"all",elementType:"labels.text.stroke",stylers:[{visibility:"on"},{color:"#ffffff"},{lightness:16}]},{featureType:"all",elementType:"labels.icon",stylers:[{visibility:"on"}]},{featureType:"administrative",elementType:"geometry.fill",stylers:[{color:"#fefefe"},{lightness:20}]},{featureType:"administrative",elementType:"geometry.stroke",stylers:[{color:"#fefefe"},{lightness:17},{weight:1.2}]},{featureType:"administrative",elementType:"labels",stylers:[{visibility:"on"}]},{featureType:"administrative.country",elementType:"geometry.stroke",stylers:[{visibility:"on"},{color:"#dfdfdf"}]},{featureType:"landscape",elementType:"geometry",stylers:[{color:"#f5f5f5"},{lightness:20}]},{featureType:"landscape",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#f5f5f5"},{lightness:21}]},{featureType:"poi",elementType:"labels",stylers:[{visibility:"on"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#dedede"},{lightness:21}]},{featureType:"road",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"road.highway",elementType:"geometry.fill",stylers:[{color:"#e2e2e2"},{lightness:17}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#e2e2e2"},{lightness:29},{weight:.2}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#e2e2e2"},{lightness:18}]},{featureType:"road.local",elementType:"geometry",stylers:[{color:"#e2e2e2"},{lightness:16}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#f2f2f2"},{lightness:19}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#e9e9e9"},{lightness:17}]}]}}class HeaderSearch{constructor(){this._setVars()&&(this._prepare(),this._setEvents())}_setVars(){if(this._form=document.querySelectorAll(".header__searchForm"),this._form.length)return!0}_prepare(){this._form.each(e=>{e.HeaderSearch=e.HeaderSearch||{},e.HeaderSearch.button=e.querySelector(".header__searchButton")})}_setEvents(){this._form.each(e=>{e.HeaderSearch.button.addEvent("click",()=>{e.submit()})})}}class LangSwitcher{constructor(){this._setVars()&&this._setEvents()}_setVars(){if(this._button=document.querySelector(".header__langSwitcher"),this._mobileButton=document.querySelector(".header__item--hasToggle > .header__langSwitcher"),(this._button||this._mobileButton)&&(this._container=document.querySelector(".header__langContainer"),this._mobileContainer=this._mobileButton.nextElementSibling,this._container||this._mobileContainer))return this._classes={toggle:"header__langContainer--show"},!0}_setEvents(){this._mobileButton.addEvent("click",e=>this._toggle(e)),this._button.addEvent("click",e=>this._toggle(e)),this._button.addEvent("blur",()=>this._close(this._container)),this._container.addEvent("mouseleave",()=>this._close(this._container))}_toggle(e){e.preventDefault(),(e.currentTarget===this._mobileButton?this._mobileContainer:this._container).toggleClass(this._classes.toggle)}_open(e){e.addClass(this._classes.toggle)}_close(e){e.removeClass(this._classes.toggle)}}class Marquee{constructor(){this._setVars()&&(this._run(),this._setEvents())}_setVars(){if(this._container=document.querySelector(".importantMessage"),this._container)return this._elem=this._container.querySelector(".importantMessage__inner"),this._close=this._container.querySelector(".importantMessage__close"),!0}_run(){Marquee3k.init({selector:"importantMessage__inner"})}_setEvents(){this._close.addEvent("click",e=>{e.preventDefault(),this._container.addClass("importantMessage--hide")})}}class MobileNav{constructor(){this._setVars(),this._setEvents()}_setVars(){this._hamburger=document.querySelector(".header__hamburgerButton"),this._classes={hamburger:"header__hamburgerButton--active",topNav:"header__item--active",botNav:"header__navBot--active",navWrap:"header__navWrap--active"},this._topNav=document.querySelector(".header__item--topList"),this._botNav=document.querySelector(".header__navBot"),this._navWrap=document.querySelector(".header__navWrap")}_setEvents(){this._hamburger.addEvent("click",e=>{e.preventDefault(),this._showNav(e.target)})}_showNav(e){const t=this._classes;e.hasClass(t.hamburger)?(e.removeClass(t.hamburger),this._topNav.removeClass(t.topNav),this._navWrap.removeClass(t.navWrap)):(e.addClass(t.hamburger),this._topNav.addClass(t.topNav),this._navWrap.addClass(t.navWrap))}}class Navbars{constructor(){this.setVars()&&(this.setEvents(),this.init())}setVars(){return this.togglers=document.querySelectorAll(".header__iconLink"),!!this.togglers&&(this.classes={toggler:"header__toggler--active"},this.isPhone=window.matchMedia("(max-width: 539px)").matches,this.isTablet=window.matchMedia("(max-width: 999px)").matches,this.currState=this.isPhone,!0)}setEvents(){this.togglers.each(e=>{e.addEvent("click.Navbars",t=>{t.preventDefault(),this.toggle(e)})}),window.addEvent("resize",()=>{this.isPhone=window.matchMedia("(max-width: 539px)").matches,this.isTablet=window.matchMedia("(max-width: 999px)").matches,this.isTablet&&this.togglers.each(e=>{this.close(e.previousElementSibling)})})}init(){this.isTablet&&this.togglers.each(e=>{this.close(e.previousElementSibling)})}toggle(e){let t=e.previousElementSibling;TweenLite.killTweensOf(t),t.hasClass(this.classes.toggler)?(this.close(t),e.trigger(".close_Navbars")):(this.open(t),e.trigger(".open_Navbars"))}open(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.4;e.addClass(this.classes.toggler),this.isPhone?(TweenLite.set(e,{width:"auto"}),TweenLite.set(e,{height:"auto"}),TweenLite.from(e,t,{height:0,ease:Power2.easeOut})):(TweenLite.set(e,{width:"auto"}),TweenLite.set(e,{height:"auto"}),TweenLite.from(e,t,{width:0,ease:Power2.easeOut}))}close(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.4;document.cftn.headerSearch&&e.nextElementSibling.Lock||(e.removeClass(this.classes.toggler),this.isPhone?(TweenLite.set(e,{height:"auto"}),TweenLite.to(e,t,{height:0,ease:Power2.easeOut})):(TweenLite.set(e,{width:"auto"}),TweenLite.to(e,t,{width:0,ease:Power2.easeOut})))}}class NewsSingle{constructor(){this._setVars()&&(this._init(),this._setEvents())}_setVars(){if(this._news=Array.from(document.querySelectorAll(".news__single")),this._news)return this._arr=[],this._maxValue=0,!0}_init(){this._getHeight(),this._setHeight()}_setEvents(){window.addEventListener("resize",()=>{this._setVars(),this._getHeight(),this._setHeight()})}_getHeight(){this._arr=[];for(let e of this._news)this._arr.push(e.getBoundingClientRect().height);this._arr.shift(),this._arr.pop(),this._maxValue=Math.max(...this._arr)}_setHeight(){this._news.shift(),this._news.pop();for(let e of this._news)e.style.minHeight=this._maxValue+"px"}}class PanelSectionAnimate{constructor(e){this.setVars(e),this.setEvents()}setVars(e){this.container=e,this.children=e.querySelectorAll(".panelSection__col"),this.classes={active:"active",side:"side"}}setEvents(){this.children.each(e=>{e.addEvent("mouseenter",e=>{this.animate(e.target)}),e.addEvent("mouseleave",()=>{this.stopAll()})})}animate(e){this.children.each(t=>{t.isEqualNode(e)?t.classList.add("active"):t.classList.add("side")})}stop(e){for(let t in this.classes)this.classes.hasOwnProperty(t)&&e.classList.remove(t)}stopAll(){this.children.each(e=>{this.stop(e)})}}class PartnersInFooter{constructor(){this._setVars()&&this._setWidth()}_setVars(){if(this._footer=document.querySelector(".footer"),this._footer)return this._partnerContainer=this._footer.querySelectorAll(".footer__partnersContainer"),this._footerObject=this._footer.querySelectorAll(".footer__object"),!0}_setWidth(){for(let e of this._partnerContainer)if(e.querySelector(".footer__object"))if(2==e.childElementCount)for(let t of e.querySelectorAll(".footer__object"))t.classList.add("footer__object--two");else if(3==e.childElementCount)for(let t of e.querySelectorAll(".footer__object"))t.classList.add("footer__object--three");else if(4==e.childElementCount)for(let t of e.querySelectorAll(".footer__object"))t.classList.add("footer__object--four")}}class Popup{constructor(){this._setVars()}_setVars(){const e=document.querySelector("#popup");if(e)return this._blurElements=document.querySelectorAll("[data-popup-blur]"),this._mainContainer=e.content.cloneNode(!0),this._activeSlide=null,this._outer=this._mainContainer.querySelector(".popup__outer"),this._inner=this._mainContainer.querySelector(".popup__inner"),this._arrow=this._mainContainer.querySelector(".popup__closeIcon"),this._classes={outer:"popup__outer--show",outerLoad:"popup__outer--loading",arrow:"popup__closeIcon--hidden",containerGallery:"popup__inner--gallery",img:"popup__img--loaded",blurred:"elementBlur",button:"popup__showGalleryButton--close",nav:"popup__navContainer--show",zoomActive:"popup__zoom--active"},!0}prepareData(e,t,i){if("image"===e){this._outer.addClass(this._classes.outerLoad),this._arrow.addClass(this._classes.arrow);const e=new Image;e.addClass("popup__img"),e.onload=(()=>{this._inner.appendChild(e),e.addClass(this._classes.img),this._arrow.removeClass(this._classes.arrow),this._outer.removeClass(this._classes.outerLoad),this._outer.removeChild(document.querySelector(".loader"))}),e.src=t}else if("video"===e){this._outer.addClass(this._classes.outerLoad);let e=document.createElement("iframe");e.addClass("popup__video"),e.width=700,e.height=394,e.src=t;const i=document.createElement("div");i.addClass("popup__vidContainer"),i.appendChild(e),this._inner.appendChild(i)}else this._inner.appendChild(i);this.show()}show(){document.body.appendChild(this._mainContainer),this._outer.addClass(this._classes.outer),this._blurElements.each(e=>{e.addClass(this._classes.blurred)}),this._bindEvents()}close(){document.removeEvent("click.popup"),document.querySelector(".popup").remove(),this._activeSlide=null,this._blurElements.each(e=>{e.removeClass(this._classes.blurred)})}_bindEvents(){document.querySelector(".popup").addEventListener("click",e=>{e.target.hasClass("popup")&&this.close()}),this._arrow.addEvent("click",e=>{e.preventDefault(),this.close()})}handlePopupGenericAjax(e){const t=this._outer,i=this._inner,s=t.querySelector(".loader"),n=document.querySelector(".popup .popup__zoomIcon");document.querySelector(".popup__closeZoomIcon").remove(),n.remove(),t.removeClass(this._classes.outerLoad),this._arrow.removeClass(this._classes.arrow),i.addClass("popup__inner--generic"),i.innerHTML=e;const r=i.querySelector("img");null!=r&&r.addEventListener("load",function(){r.clientWidth>r.clientHeight?r.classList.add("galleryPopup__popupGalleryMainItem--horizontal"):r.classList.add("galleryPopup__popupGalleryMainItem--vertical")}),t.removeChild(s)}getNumberOfThumbs(e,t){return void 0==e?t:Math.min(e._activeSlide.parentNode.childElementCount,t)}handlePopupGalleryAjax(e,t){const i=this._outer,s=this._inner,n=i.querySelector(".loader");i.removeClass(this._classes.outerLoad),this._arrow.removeClass(this._classes.arrow),s.addClass(this._classes.containerGallery),s.innerHTML=e;const r={name:"loadGallery",options:{container:".popup__items",items:1,gutter:0,nav:!1,loop:!1,mouseDrag:!1,lazyload:!0,controlsContainer:'.sliderNav__controls[data-slider="loadGallery"]',startIndex:t.startIndex}},o=document.cftn.slidersController;o._slides=o._slides||{};const a=r.options,l=r.name;document.querySelector(a.container)&&(o._slides[l]=tns(a),o._slides[l].events.on("transitionEnd",this.onIndexChange),this.handleZoom(o._slides[l].getInfo()),this.bindPopupEvents(o._slides[l]));const c={name:"loadGallery_thumb",options:{container:".popup__navInner",items:1,gutter:10,nav:!1,lazyload:!0,loop:!1,rewind:!0,controlsContainer:'.sliderNav__controls[data-slider="loadGallery_thumb"]',startIndex:t.startIndex,responsive:{539:{items:this.getNumberOfThumbs(this,3)},919:{items:this.getNumberOfThumbs(this,5)}},onInit:()=>{this.bindThumbEvents(t.startIndex)}}},h=c.options;if(document.querySelector(h.container)){let e=c.name;o._slides[e]=tns(h)}[...s.querySelectorAll(".popup__items img")].forEach(e=>{e.addEventListener("load",function(){e.clientWidth>e.clientHeight?e.classList.add("galleryPopup__popupGalleryMainItem--horizontal"):e.classList.add("galleryPopup__popupGalleryMainItem--vertical")})}),i.removeChild(n)}onIndexChange(e){let t=e.container,i=document.querySelector(".popup .popup__zoomIcon"),s=t.querySelector(".tns-slide-active"),n=s.querySelector(".galleryPopup__popupGalleryMainItem--text");document.querySelectorAll(".galleryPopup__popupGalleryMainItem--text--animated").forEach(e=>e.removeClass("galleryPopup__popupGalleryMainItem--text--animated")),n&&(n.innerText||(n.style.display="none"),n.addClass("galleryPopup__popupGalleryMainItem--text--animated")),s.querySelector(".videoSection")?i.addClass("popup__zoomIcon--hidden"):i.removeClass("popup__zoomIcon--hidden")}handleZoom(e){let t=e.container,i=document.querySelector(".popup .popup__zoomIcon"),s=t.querySelector(".tns-slide-active"),n=s.querySelector(".galleryPopup__popupGalleryMainItem--text");document.querySelectorAll(".galleryPopup__popupGalleryMainItem--text--animated").forEach(e=>e.removeClass("galleryPopup__popupGalleryMainItem--text--animated")),n&&(n.innerText||(n.style.display="none"),n.addClass("galleryPopup__popupGalleryMainItem--text--animated")),s.querySelector(".videoSection")?i.addClass("popup__zoomIcon--hidden"):i.removeClass("popup__zoomIcon--hidden"),i.addEventListener("click",e=>this.zoomIn(e,t,i))}zoomSingle(e,t,i){e.preventDefault();const s=t.querySelector("img"),n=s.src,r=document.createElement("div"),o=i,a=s.clientWidth>s.clientHeight?"horizontal":"vertical";r.setAttribute("class","zoomPopup"),r.innerHTML=`<img src="${n}" class="zoomPopup__image zoomPopup__image--${a}"/><a class="zoomPopup__close" href="#"><span class="icon-zoom-out"></span></a>`,document.querySelector(".popup").appendChild(r),o.classList.add("popup__zoomIcon--hidden");const l=document.querySelector(".zoomPopup__image");l.addEventListener("mousedown",e=>this.moveImage(l,e)),r.querySelector(".zoomPopup__close").addEventListener("click",e=>this.zoomOut(e,t))}zoomIn(e,t,i){e.preventDefault();const s=t.querySelector(".tns-slide-active"),n=s.querySelector("img"),r=n.src,o=document.createElement("div"),a=document.querySelector(".popup__zoomIcon"),l=i.getBoundingClientRect().top,c=n.classList.contains("galleryPopup__popupGalleryMainItem--horizontal")?"horizontal":"vertical";s.style.opacity="0",o.setAttribute("class","zoomPopup"),o.innerHTML=`<img src="${r}" class="zoomPopup__image zoomPopup__image--${c}"/><a class="zoomPopup__close" href="#" style="top: ${l}px;"><span class="icon-zoom-out"></span></a>`,document.querySelector(".popup__galleryContent").appendChild(o),a.classList.add("popup__zoomIcon--hidden");const h=document.querySelector(".zoomPopup__image");h.addEventListener("mousedown",e=>this.moveImage(h,e)),this.resetScroll(o),o.querySelector(".zoomPopup__close").addEventListener("click",e=>this.zoomOut(e,s))}resetScroll(e){const t={left:e.scrollWidth/2-e.offsetWidth/2};e.scrollTo(t)}moveAt(e,t,i,s,n){this.activeDrag&&(e.style.left=t-s+"px",e.style.top=i-n+"px")}moveImage(e,t){this.activeDrag=!0;let i=t.screenX-e.getBoundingClientRect().left,s=t.screenY-e.getBoundingClientRect().top;this.moveAt(e,t.screenX,t.screenY,i,s),document.addEventListener("mousemove",t=>this.moveAt(e,t.screenX,t.screenY,i,s)),e.addEventListener("mouseup",()=>{this.activeDrag=!1}),e.ondragstart=function(){return!1}}zoomOut(e,t){e.preventDefault();const i=e.currentTarget.parentElement,s=i.querySelector("img"),n=document.querySelector(".popup__zoomIcon");t.removeAttribute("style"),n.classList.remove("popup__zoomIcon--hidden"),s.addClass("zoomPopup__image--zoomedOut"),i.parentElement.removeChild(i)}bindThumbEvents(e){const t=document.querySelectorAll(".galleryPopup__popupGalleryNavItem"),i=document.cftn.slidersController._slides,s=i.loadGallery;t.each((n,r)=>{r===e&&n.addClass("active"),n.addEvent("click",()=>{const e=i.loadGallery_thumb,r=parseInt(n.getAttribute("data-slide"));s.goTo(r);const o=r-Math.floor(e.getInfo().items/2);e.goTo(o>0?r-1:0),t.each(e=>e.removeClass("active")),n.addClass("active")})});const n=document.querySelector(".popup__showGalleryButton"),r=document.querySelector(".popup__showZoomButton"),o=document.querySelector(".popup__closeZoomIcon"),a=document.querySelector(".popup__navContainer");r.addEvent("click",e=>{e.preventDefault(),this.zoomImage(e)}),o.addEvent("click",e=>{e.preventDefault(),document.querySelector(".popup__zoom").removeClass(this._classes.zoomActive)}),n.addEvent("click",e=>{e.preventDefault(),n.toggleClass("popup__showGalleryButton--close"),a.toggleClass("popup__navContainer--show")})}zoomImage(){this._inner.querySelectorAll(".popup__item").each(e=>{e.hasClass("tns-slide-active")&&this.showZoomImage(e.querySelector(".popup__img").dataset.src)})}showZoomImage(e){document.querySelector(".popup__zoom--img").src=e,document.querySelector(".popup__zoom").addClass(this._classes.zoomActive)}toggleClosingEvents(e){const t=document.querySelector(".popup__showGalleryButton"),i=document.querySelector(".popup__navContainer");e?(document.removeEvent("click.popupNav"),document.querySelector(".popup__inner").removeEvent("mousemove.popupNav")):document.addEvent("click.popupNav",e=>{null===e.target.closest(".popup__navContainer")&&(t.removeClass(this._classes.buttonClass),i.removeClass(this._classes.nav))})}bindPopupEvents(e){this._activeSlide=document.querySelector(".popup .tns-slide-active");const t=document.cftn.slidersController._slides,i=document.querySelector('.sliderNav__controls[data-slider="loadGallery"]').children,s=document.querySelector('.sliderNav__controls[data-slider="loadGallery_thumb"]').children;i.each(e=>{e.addEventListener("click",e=>e.preventDefault())}),s.each(e=>{e.addEventListener("click",e=>e.preventDefault())}),e.events.on("indexChanged",()=>{const i=document.querySelector(".zoomPopup");document.querySelector(".popup .tns-slide-active").style.opacity=1,i&&i.parentElement.removeChild(i);const s=e.getInfo().index,n=t.loadGallery_thumb,r=s-Math.floor(n.getInfo().items/2),o=document.querySelectorAll(".galleryPopup__popupGalleryNavItem");if(this._activeSlide&&this._activeSlide.querySelector("iframe")){document.querySelector(".videoSection__poster").classList.remove("videoSection__poster--hidden"),this._activeSlide.querySelector("iframe").contentWindow.postMessage(JSON.stringify({event:"command",func:"stopVideo"}),"*")}this._activeSlide=document.querySelector(".popup .tns-slide-active"),n.goTo(r>0?s:0),o.each(e=>{e.getAttribute("data-slide")==s?e.addClass("active"):e.removeClass("active")})})}}class PopupSingle{constructor(){this._setVars()&&this._setEvents()}_setVars(){if(this._buttons=document.querySelectorAll('.media__link:not([data-type="gallery"])'),this._buttons.length)return!0}_setEvents(){this._buttons.each(e=>{e.addEvent("click",t=>{t.stopPropagation(),t.preventDefault(),this._openPopup(e)})})}_openPopup(e){const t=e.getAttribute("data-type"),i=e.href,s=document.getElementById("loader").content.cloneNode(!0);document.cftn.popup=new Popup;const n=document.cftn.popup;n._outer.appendChild(s),n.prepareData(t,i)}}class ResetFilters{constructor(){this._setVars()&&this._setEvents()}_setVars(){if(this._resetButton=document.querySelector(".jsResetFilters"),this._resetButton)return this._form=document.querySelector(".calendarFilter__filters"),!0}_setEvents(){this._resetButton.addEvent("click",()=>this._form.reset())}}class ScrollCore{constructor(){this._touchStart=0,this._scrollY=0,this._actionTouch=(e=>{this._touchStart=e.touches[0].pageY}),this._actionScroll=(e=>{this.findScrollableElementInside(e)}),this._actionLockScroll=(e=>{window.scroll(0,this._scrollY)})}lock(){this._scrollY=window.scrollY||window.pageYOffset||document.documentElement.scrollTop,window.addEventListener("mousewheel",this._actionScroll,{passive:!1}),window.addEventListener("touchmove",this._actionScroll,{passive:!1}),window.addEventListener("touchstart",this._actionTouch),window.addEventListener("scroll",this._actionLockScroll)}unlock(){window.removeEventListener("mousewheel",this._actionScroll),window.removeEventListener("touchmove",this._actionScroll),window.removeEventListener("touchstart",this._actionTouch),window.removeEventListener("scroll",this._actionLockScroll)}findScrollableElementInside(e){var t=e.target,i=this._touchStart;if(t===document)return e.preventDefault(),!0;for(;"body"!=t.nodeName.toLowerCase();){var s=window.getComputedStyle(t,null).getPropertyValue("overflow-y"),n=e.wheelDelta?-e.wheelDelta<0:e.touches[0].pageY>i;if("scroll"==s||"auto"==s){if(!n&&t.scrollTop<t.scrollHeight-t.clientHeight)return!0;if(n&&t.scrollTop>0)return!0}t=t.parentNode}return e.preventDefault(),!0}}class ScrollTo{constructor(){this._setVars()&&this._setEvents()}_setVars(){return this._headerEl=document.querySelector(".header"),!!this._headerEl&&(this._inLoop=!1,this._fready=!0,this._time=null,this._raf=null,this._duration=800,this._bTime=null,this._eTime=null,this._bScroll=null,this._dScroll=0,this._easing={easeInCubic:e=>e*e*e,easeOutCubic:e=>1-(e=1-e)*e*e,easeInOutCubic:e=>(e*=2)<=1?e*e*e/2:1-(e=2-e)*e*e/2},!0)}_setEvents(){window.addEvent("click.ScrollTo",e=>{this._onClick(e)})}_bindOnWheel(){window.addEvent("wheel.ScrollTo",()=>{this._onWheel()})}_unbindOnWheel(){window.removeEvent("wheel.ScrollTo")}_onWheel(){this._stopLoop()}_onClick(e){const t=e.target.closest(".jsScrollTo");if(!t)return;e.preventDefault();let i=document.querySelector(t.getAttribute("data-section"))||t.parentElement;i&&this._scrollTo(i)}scrollTo(e){this._scrollTo(e)}_scrollTo(e){e&&this._animScrollTo(e.getOffset().t-this._headerEl.offsetHeight)}_animScrollTo(e){const t=scrollTop();this._bTime=window.performance.now(),this._eTime=this._bTime+this._duration,this._bScroll=t,this._dScroll=e-t,this._startLoop()}_loop(){this._raf=requestAnimationFrame(()=>{this._loop()}),this._fready&&(this._fready=!1,this._time=window.performance.now(),this._update(this._time),this._fready=!0)}_startLoop(){this._inLoop||(this._bindOnWheel(),this._inLoop=!0,this._raf=requestAnimationFrame(()=>{this._loop()}))}_stopLoop(){this._unbindOnWheel(),cancelAnimationFrame(this._raf),this._raf=null,this._inLoop=!1}_update(e){e>this._eTime&&this._stopLoop();let t=(e-this._bTime)/this._duration;t=this._easing.easeOutCubic(t),scrollTop(this._bScroll+t*this._dScroll)}}class ServiceBoxesWidth{constructor(){this._setVars()&&this._setEvents()}_setVars(){if(this._services=document.querySelector(".services"),this._services)return this._boxes=this._services.querySelectorAll(".services__box"),this._numberOfBoxes=this._boxes.length,this._breakpoints={laptop:1e3},!0}_setEvents(){this._setWidth(),window.addEventListener("resize",()=>{this._setWidth()})}_setWidth(){Array.from(this._boxes).forEach(e=>{window.innerWidth>=this._breakpoints.laptop&&(e.style.width=`calc(1/${this._numberOfBoxes}*100% - 3px)`)})}}class ShowContact{constructor(){this._setVars()&&this._setEvents()}_setVars(){if(this._button=document.querySelector(".jsShowContact"),this._button)return this._section=document.querySelector(".servicesContact"),this._classes={section:"servicesContact--active",button:"active"},!0}_setEvents(){this._button.addEvent("click",e=>{e.preventDefault(),this._showHideContact()}),document.addEvent("click",e=>{e.target.closest(".jsShowContact")||e.target.closest(".servicesContact__container")||(this._section.removeClass(this._classes.section),this._button.removeClass(this._classes.button))})}_showHideContact(){this._section.hasClass(this._classes.section)?(this._section.removeClass(this._classes.section),this._button.removeClass(this._classes.button)):(this._section.addClass(this._classes.section),this._button.addClass(this._classes.button))}}class ShowHideFilters{constructor(){this._setVars()&&this._setEvents()}_setVars(){if(this._button=document.querySelector(".jsToggleFilters"),this._button)return this._filters=document.querySelector(".calendarFilter__filters"),this._classes={filters:"calendarFilter__filters--active",button:"calendarFilter__showFilters--active"},!0}_setEvents(){this._button.addEvent("click",e=>{e.preventDefault(),this._showHideFilters()})}_showHideFilters(){this._filters.hasClass(this._classes.filters)?this._hide():this._show(!0)}_show(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];TweenLite.set(this._filters,{height:"auto"}),e&&TweenLite.from(this._filters,.3,{height:0,onComplete:()=>{this._filters.style.height="auto"}}),this._filters.addClass(this._classes.filters)}_hide(){TweenLite.to(this._filters,.3,{height:0}),this._filters.removeClass(this._classes.filters)}}class ShowIframe{constructor(){this._setVars()&&this._setEvents()}_setVars(){if(this._button=document.querySelector(".map__icon"),this._button&&(this._iframe=document.querySelector(".map__iframeInner"),this._iframe))return this._content=document.querySelector(".map__content"),this._classes={content:"map__content--hide",iframe:"map__iframeInner--show"},!0}_setEvents(){this._button.addEvent("click",e=>{e.preventDefault(),this._showIframe()})}_showIframe(){this._content.addClass(this._classes.content),this._iframe.addClass(this._classes.iframe)}}class SocialsInFooter{constructor(){this._setVars()&&this._setSpace()}_setVars(){if(this._socialContainer=document.querySelector(".footer__socialContainer"),this._socialContainer)return this._socialsNodeList=this._socialContainer.querySelectorAll(".footer__social"),this._socials=Array.from(this._socialsNodeList),this._numberOfSocials=this._socials.length,this._lastSocial=this._socials[this._numberOfSocials-1],!0}_setSpace(){this._numberOfSocials>0&&this._numberOfSocials<=3&&(this._socialContainer.style.justifyContent="start",this._socials.forEach(e=>{e.style.marginRight="10px"}),this._lastSocial.style.marginRight="0")}}class Submenu{constructor(){this._setVars()&&this._setEvents()}_setVars(){if(this._links=document.querySelectorAll(".header__link--hasSubmenu, .header__label--hasSubmenu"),this._links)return this._submenus=document.querySelectorAll(".header__subList"),this._header=document.querySelector(".header"),this._fixedMenu=document.querySelector(".fixedMenu"),this._mask=document.querySelector(".header__mask"),this._classes={submenu:"header__subList--active",mask:"header__mask--show",link:"header__link--active"},this._isMobile=window.matchMedia("(max-width: 1279px)").matches,this._currState=this._isMobile,!0}_setEvents(){this._links.each(e=>{e.addEvent("click",t=>{t.preventDefault(),this._toggle(e)})}),this._header.addEvent("mouseleave",()=>{this.closeAll()}),this._fixedMenu.addEvent("mouseleave",()=>{this.closeAll()}),window.addEvent("resize",()=>{this._isMobile=window.matchMedia("(max-width: 1279px)").matches,this._currState!==this._isMobile&&(this._isMobile?this._setMobileSub():this._setDesktopSub(),this._currState=this._isMobile)})}_setMobileSub(){this._links.each(e=>{let t=e.nextElementSibling;TweenLite.set(t,{visibility:"visible",opacity:1,height:0})}),this.showMask(!1)}_setDesktopSub(){this._links.each(e=>{let t=e.nextElementSibling;TweenLite.set(t,{visibility:"hidden",opacity:0,height:"auto"})})}_toggle(e){this.closeAll(e);let t=this._classes.submenu,i=e.nextElementSibling;i.hasClass(t)?(e.removeClass(this._classes.link),this._isMobile&&this._close(i)):(this.calcSubmenuOffset(i),e.addClass(this._classes.link),this._open(i))}calcSubmenuOffset(e){if(!e.classList.contains("header__subList--single")&&!e.classList.contains("header__subList--dual")||window.innerWidth<1e3)return!1;e.style.left="";const t=e.closest(".wrapper"),i=e.getBoundingClientRect(),s=t.getBoundingClientRect();i.right>s.right?e.style.left=`${s.right-i.right}px`:i.left<s.left&&(e.style.left=`${s.left-i.left}px`)}_open(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.2;TweenLite.killTweensOf(e),e.addClass(this._classes.submenu),this._isMobile?(TweenLite.set(e,{height:"auto"}),TweenLite.from(e,t,{height:0})):(TweenLite.set(e,{visibility:"visible"}),TweenLite.to(e,t,{opacity:1}),this.showMask())}_close(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.2;TweenLite.killTweensOf(e),e.removeClass(this._classes.submenu),this._isMobile?TweenLite.to(e,t,{height:0}):(TweenLite.to(e,t,{opacity:0,onComplete:()=>{TweenLite.set(e,{visibility:"hidden"})}}),this.showMask(!1))}closeAll(e){let t=this._submenus,i=document.querySelectorAll(".header__link");this._isMobile||(t.each(e=>this._close(e)),i.each(e=>e.removeClass(this._classes.link)))}showMask(e){!1===e?this._mask.removeClass(this._classes.mask):this._mask.addClass(this._classes.mask)}}class TicketsEqualHeight{constructor(){this.setVars()&&(this.setEvents(),this.init())}setVars(){if(this.container=document.querySelectorAll(".tickets__inner"),this.showMore=document.querySelectorAll(".tickets__showMore"),this.container&&this.showMore)return!0}setEvents(){this.container.each(e=>{e.addEvent("resize",()=>{this.setHeight(e)})}),this.showMore.each(e=>{e.addEvent("click",()=>{this.toggle(e)})})}init(){this.container.each(e=>{this.setHeight(e)})}setHeight(e){const t=e.querySelectorAll(".tickets__singleWrap");let i=0;t.each(e=>{e.style.height="";let t=e.offsetHeight;t>i&&(i=t)}),t.each(e=>{e.style.height=`${i}px`})}toggle(e){const t=e.parentNode.parentNode.parentNode,i=e.previousElementSibling,s=e.querySelector(".icon-arrow");i.classList.contains("tickets__list--toogled")?(i.classList.remove("tickets__list--toogled"),s.classList.remove("icon-arrow--toogled")):(i.classList.add("tickets__list--toogled"),s.classList.add("icon-arrow--toogled")),this.setHeight(t)}}class TicketsNameHeight{constructor(){this._setVars()&&(this._checkHeight(),this._setHeight())}_setVars(){if(this._ticketsContainers=Array.from(document.querySelectorAll(".tickets__inner")),this._ticketsContainers.length)return this._arrs=[],this._max=[],this._numberOfItems=[],!0}_checkHeight(){for(let e of this._ticketsContainers)this._ticktsName=Array.from(e.querySelectorAll(".tickets__name:not(.tickets__name--custom)")),this._numberOfItems.push(e.querySelectorAll(".tickets__name")),this._getTicketnameHeight(this._ticktsName,this._arrs,this._max)}_getTicketnameHeight(e,t,i){for(let i=0;i<e.length-1;i++)t.push(e[i].getBoundingClientRect().height);i.push(Math.max(...t))}_setHeight(){this._ticketsContainers.forEach((e,t)=>{Array.from(e.querySelectorAll(".tickets__name:not(.tickets__name--custom)")).forEach(e=>{e.style.height=this._max[t]+"px"})})}}class Timer{constructor(e){this.setVars(e)&&(this.prepare(),this.setEvents())}setVars(e){if(this.dateTime=e,this.dateTime)return this.startDate=new Date(this.dateTime.dataset.timerDate),this.formats={days:864e5,hours:36e5,minutes:6e4,seconds:1e3},this.animationDuration=800,this.transition="transform .8s ease-in-out",!0}setEvents(){setInterval(()=>{this.applyValues(this.getValues())},1e3)}prepare(){this.dateTime.Timer=this.dateTime.Timer||{},this.dateTime.Timer.elements={};const e=this.getValues();for(let t in this.formats){const i=this.dateTime.querySelector(`[data-timer="${t}"]`),s=i.cloneNode(!0);s.classList.add(i.classList[0]+"--next"),s.innerHTML=e[t]-1,i.parentElement.appendChild(s),this.dateTime.Timer.elements[t]=i}}getValues(){const e=new Date,t=this.formats,i=this.startDate-e;let s={};if(i<0){for(let e in t)s[e]=0;return s}let n=i;for(let e in t){const r=t[e];s[e]=Math.floor(n/r),n=i%r}return s}applyValues(e){const t=this.dateTime.Timer.elements;for(let i in e){const s=t[i],n=s.nextElementSibling;if(parseInt(s.innerHTML)!==e[i]){const t=s.parentElement,r=this.formatValue(e[i]);n.innerText=r,s.parentElement.style.transition=this.transition,t.style.transform="translateY(100%)",clearTimeout(this.timeout),this.timeout=setTimeout(()=>{s.innerText=r,s.parentElement.style.transition="",s.parentElement.style.transform="translateY(0)"},this.animationDuration)}}}formatValue(e){return e<10?"0"+e:e}}class ToggleMapPanel{constructor(){this._setVars()&&(this._setEvents(),this._toggleArrow(),this._triggerMobile())}_setVars(){if(this._panels=document.querySelectorAll(".mapPanel"),0!=this._panels.length)return this._classes={button:"mapPanel__button--active",section:"mapPanel__panelSingle--active",listItem:"mapPanel__item--active"},this._prepare(),!0}_setEvents(){this._panels.each(e=>{e._toggleMapPanel.buttons.each(t=>{t.addEvent("click",i=>{i.preventDefault(),this._togglePanel(e,t)})})}),window.addEvent("resize",()=>{window.matchMedia("(max-width: 719px)").matches?(this._toggleArrow(),this._triggerMobile()):this._panels.each(e=>{e._toggleMapPanel.list.style.height="auto"})})}_prepare(){this._panels.each(e=>{e._toggleMapPanel={el:e,buttons:e.querySelectorAll(".mapPanel__button"),list:e.querySelector(".mapPanel__list"),listItem:e.querySelectorAll(".mapPanel__item"),sections:e.querySelectorAll(".mapPanel__panelSingle"),arrow:e.querySelector(".mapPanel__arrow")}})}_togglePanel(e,t){let i=e._toggleMapPanel,s=t.getAttribute("data-name"),n=i.el.querySelector(`.mapPanel__panelSingle[data-name=${s}]`),r=window.matchMedia("(max-width: 999px)").matches;i.sections.each(e=>e.removeClass(this._classes.section)),i.buttons.each(e=>e.removeClass(this._classes.button)),i.listItem.each(e=>e.removeClass(this._classes.listItem)),n.addClass(this._classes.section),t.addClass(this._classes.button),t.parentElement.addClass(this._classes.listItem),r&&TweenLite.to(i.list,.3,{height:n.offsetHeight})}_triggerMobile(){this._panels.each(e=>{e._toggleMapPanel.buttons.each(t=>{t.hasClass(this._classes.button)&&this._togglePanel(e,t)})})}_toggleArrow(){const e=window.innerHeight;this._panels.each(t=>{if(t.offsetHeight+70>=e){t._toggleMapPanel.arrow.style.display="block"}})}}class TogglePanel{constructor(){this._setVars()&&this._setEvents()}_setVars(){if(this._buttons=document.querySelectorAll(".jsTogglePanel"),this._buttons.length)return this._classes={toggle:"toggle"},this._duration=.2,this.mainContainer=document.querySelector(".site"),!0}_setEvents(){this._buttons.each(e=>{const t=document.querySelector(e.dataset.toggle);t&&e.addEvent("click.TogglePanel",()=>{this._toggle(t,e)})})}_toggle(e,t){e.hasClass(this._classes.toggle)?this._hide(e,t):this._show(e,t)}_show(e,t){TweenLite.set(e,{height:"auto"}),TweenLite.from(e,this._duration,{height:0,ease:Power2.easeOut,onUpdate:this._onUpdate.bind(this)}),t.addClass(this._classes.toggle),e.addClass(this._classes.toggle)}_hide(e,t){TweenLite.to(e,this._duration,{height:0,ease:Power2.easeOut,onUpdate:this._onUpdate.bind(this)}),t.removeClass(this._classes.toggle),e.removeClass(this._classes.toggle)}_onUpdate(){this.mainContainer.trigger(".panelToggle")}}class ToggleServiceNav{constructor(){this._setVars()&&(this._setEvents(),this._checkVisible(),this._setRelativePosition())}_setVars(){if(this._nav=document.querySelector(".serviceBoxes__nav"),this._nav&&(this._toggler=document.querySelector(".serviceBoxes__toggler"),this._toggler&&(this._section=document.querySelector(".serviceBoxes"),this._section)))return this._relative=document.querySelector(".singleService__headerContainer"),this._links=document.querySelectorAll(".serviceBoxes__link"),this._classes={showNav:"serviceBoxes__nav--show",showToggle:"serviceBoxes__toggler--show"},!0}_setEvents(){this._toggler.addEvent("click",e=>{e.preventDefault(),this._handleClickEvent()}),this._links.each(e=>{e.addEvent("click",()=>{this._handleClickEvent()})}),window.addEvent("scroll",debounce(()=>{this._checkVisible()},50)),window.addEvent("resize",debounce(()=>{this._setRelativePosition()},50))}_handleClickEvent(){this._nav.hasClass(this._classes.showNav)?this._nav.removeClass(this._classes.showNav):this._nav.addClass(this._classes.showNav)}_checkVisible(){window.scrollTop();let e=window.scrollTop()+window.innerHeight,t=(this._section.getOffset().t,this._section.getOffset().t+this._section.offsetHeight);this._nav.hasClass(this._classes.showNav)||(e<=t?this._toggler.addClass(this._classes.showToggle):(this._toggler.removeClass(this._classes.showToggle),this._nav.removeClass(this._classes.showNav)))}_setRelativePosition(){this._toggler.style.top=this._relative?`${this._returnRelativePosition(this._relative)}%`:""}_returnRelativePosition(e){const t=e.getOffset().t,i=window.innerHeight;return t<i?parseInt(t/i*100):50}}class ToggleSocial{constructor(){this._setVars()&&this._setEvents()}_setVars(){if(this._button=document.querySelector(".eventPanel__toggleSocial"),this._button)return this._container=document.querySelector(".eventPanel__socialContainer--toggle"),this._classes={container:"eventPanel__socialContainer--show"},!0}_setEvents(){this._button.addEvent("click",e=>{e.preventDefault(),this._toggleContainer()})}_toggleContainer(){this._container.hasClass(this._classes.container)?this._container.removeClass(this._classes.container):this._container.addClass(this._classes.container)}}class VideoPlayer{constructor(){this.setVars()&&(this.setEvents(),this.bindVideoPlayEvents())}reinit(){this.setVars()&&(this.setEvents(),this.bindVideoPlayEvents())}setVars(){if(this.atts={container:"data-video",poster:"data-video-poster",play:"data-video-play",output:"data-video-output"},this.config={apiUrl:{youtube:"https://www.youtube.com/player_api",vimeo:"https://player.vimeo.com/api/player.js"},mode:[{regex:new RegExp("^.*(youtu.be/|v/|embed/|v=|^)([a-zA-Z0-9-_]{11}).*$"),type:"youtube"},{regex:new RegExp("^.*(vimeo.com/|video/|^)([0-9]{6,11}).*$"),type:"vimeo"}],detect:{youtube:()=>"undefined"!=typeof YT&&void 0!==YT.Player,vimeo:()=>"undefined"!=typeof Vimeo&&void 0!==Vimeo.Player},detectStep:10},this.videos=this.getVideos(),this.videos.length)return this.status={apiReady:{youtube:"",vimeo:""}},!0}setEvents(){window.addEventListener("playVideo",e=>{const t=this.findVideoWrapper(e.detail);t&&this.initVideo(this.videos[t],t)}),window.addEventListener("pauseVideo",()=>{this.pauseOtherVideos()})}findVideoWrapper(e){const{length:t}=this.videos;for(let i=0;i<t;i++)if(this.videos[i].wrapper===e)return i;return this.addNewVideo(e)}addNewVideo(e){const t=this.getVideoObject(e);if(t)return this.videos.push(t),this.videos.length-1}getVideos(){const e=document.querySelectorAll(`[${this.atts.container}]`),t=[],{length:i}=e;for(let s=0;s<i;s++){const i=this.getVideoObject(e[s]);i&&t.push(i)}return t}getVideoObject(e){const t=e.querySelector(`[${this.atts.poster}]`),i=e.querySelector(`[${this.atts.play}]`),s=e.querySelector(`[${this.atts.output}]`);if(!s)return;const n=this.getVideoData(e.getAttribute(this.atts.container));if(!n)return;const r={wrapper:e,poster:t,posterClass:t?t.getAttribute(this.atts.poster):"",play:i,playClass:i?i.getAttribute(this.atts.play):"",output:s};return r.videoType=n.videoType,r.videoId=n.videoId,r}getVideoData(e){const{length:t}=this.config.mode;for(let i=0;i<t;i++){const t=e.match(this.config.mode[i].regex);if(t)return{videoType:this.config.mode[i].type,videoId:t[2]}}return null}bindVideoPlayEvents(){const{length:e}=this.videos;for(let t=0;t<e;t++)this.videos[t].play.addEventListener("click",e=>{e.preventDefault(),this.initVideo(this.videos[t],t,e.currentTarget)})}initVideo(e,t,i){void 0!==this.config.apiUrl[e.videoType]&&(e.playClass&&e.play.classList.add(e.playClass),this.status.apiReady[e.videoType]?this.playVideo(e,t):this.loadApi(e.videoType,()=>{this.status.apiReady[e.videoType]=!0,this.playVideo(e,t)}))}loadApi(e,t){const i=document.createElement("script");i.src=this.config.apiUrl[e];const s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(i,s);const n=()=>{this.config.detect[e]()?t():setTimeout(()=>{n()},this.config.detectStep)};n()}playVideo(e,t){"youtube"===e.videoType?this.playYoutubeVideo(e,t):"vimeo"===e.videoType&&this.playVimeoVideo(e,t)}playYoutubeVideo(e,t){void 0===this.videos[t].player?this.videos[t].player=new YT.Player(e.output,{videoId:e.videoId,playerVars:{controls:1,rel:0,showinfo:0,ecver:2,loop:1,origin:`${window.location.protocol}//${window.location.hostname}`},events:{onReady:()=>{e.player.playVideo()},onStateChange:i=>{i.data===YT.PlayerState.PLAYING&&(this.pauseOtherVideos(t),e.poster&&e.poster.classList.add(e.posterClass),e.playClass&&e.play.classList.remove(e.playClass))}}}):e.player.playVideo()}playVimeoVideo(e,t){void 0===this.videos[t].player?(this.videos[t].player=new Vimeo.Player(e.output,{id:e.videoId,responsive:!0,background:!0}),this.videos[t].player.play(),this.videos[t].player.on("play",()=>{this.videos[t].player.on("timeupdate",()=>{this.videos[t].player.off("timeupdate"),this.pauseOtherVideos(t),e.poster&&e.poster.classList.add(e.posterClass),e.playClass&&e.play.classList.remove(e.playClass)})})):this.videos[t].player.play()}pauseOtherVideos(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;const{length:t}=this.videos;for(let i=0;i<t;i++)i!==e&&void 0!==this.videos[i].player&&("youtube"===this.videos[i].videoType?this.videos[i].player.pauseVideo():"vimeo"===this.videos[i].videoType&&this.videos[i].player.pause(),this.videos[i].poster&&this.videos[i].poster.classList.remove(this.videos[i].posterClass))}}class EventPanelToggle{constructor(){this._setVars()&&(this._setEvents(),this._checkVisible())}_setVars(){if(this._toggler=document.querySelector(".eventPanel__toggler"),this._toggler)return this._panel=document.querySelector(".eventPanel"),this._eventContainer=document.querySelector(".singleEvent"),this._classes={panel:"eventPanel--show",toggler:"eventPanel__toggler--show",togglerActive:"eventPanel__toggler--active",togglerShown:"eventPanel__toggler--shown",iconInfo:"icon-info2",iconClose:"icon-close"},!0}_setEvents(){this._toggler.addEvent("click",e=>{e.preventDefault(),this._togglePanel()}),window.addEvent("scroll",()=>{this._checkVisible()})}_togglePanel(){this._panel.hasClass(this._classes.panel)?(this._panel.removeClass(this._classes.panel),this._toggler.removeClass(this._classes.togglerActive),this._toggler._shown&&this._toggler.addClass(this._classes.togglerShown)):(this._panel.addClass(this._classes.panel),this._toggler.addClass(this._classes.togglerActive),this._toggler._shown=!0)}_checkVisible(){window.scrollTop();let e=window.scrollTop()+window.innerHeight,t=(this._eventContainer.getOffset().t,this._eventContainer.getOffset().t+this._eventContainer.offsetHeight);this._panel.hasClass(this._classes.panel)||(e<=t?this._toggler.addClass(this._classes.toggler):(this._toggler.removeClass(this._classes.toggler),this._panel.removeClass(this._classes.panel)))}}class EventsEqualHeight{constructor(){this._setVars()&&(this._setEvents(),this._isTablet&&this._isPhone===this._isTablet?this._setHeight("auto"):this._setHeight())}_setVars(){if(this._eventBox=document.querySelectorAll(".events__event"),this._eventBox)return this._isTablet=window.matchMedia("(max-width: 719px)").matches,this._isPhone=window.matchMedia("(max-width: 539px)").matches,!0}_setEvents(){window.addEvent("resize",()=>{this.checkHeight()})}checkHeight(){this._isTablet?(this._isPhone,this._isTablet,this._setHeight()):this._setHeight()}_setHeight(e){const t=[...this._eventBox].filter(e=>e.closest('.events__container[data-type="slider"]'));if(t.each(e=>{e.children[0].style.height=""}),e)t.each(e=>{e.children[0].style.height=""});else{let e=0;t.each(t=>{let i=t.offsetHeight;i>e&&(e=i)}),t.each(t=>{t.children[0].style.height=`${e}px`})}}}class EventsHandleLinks{constructor(){this._setVars()&&this._setEvents()}_setVars(){return this._eventBox=document.querySelectorAll(".events__event"),!0}_setEvents(){this._eventBox.each(e=>{var t,i=null===(t=e.querySelector(".events__title"))||void 0===t?void 0:t.href;i&&e.addEventListener("click",t=>{e.querySelector(".addToCalendar").contains(t.target)||(window.location.href=i)})})}_setHeight(e){const t=[...this._eventBox].filter(e=>e.closest('.events__container[data-type="slider"]'));if(t.each(e=>{e.children[0].style.height=""}),e)t.each(e=>{e.children[0].style.height=""});else{let e=0;t.each(t=>{let i=t.offsetHeight;i>e&&(e=i)}),t.each(t=>{t.children[0].style.height=`${e}px`})}}}class EventsShowDetails{constructor(){this._setVars()&&this._setEvents()}_setVars(){return this.buttons=document.querySelectorAll(".event__menu--item"),this.dayButtons=document.querySelectorAll(".dayButton"),this.pathButtons=document.querySelectorAll(".pathButton"),this.details=document.querySelectorAll(".event__details--item"),this.wrapper=document.querySelector(".event__details--items"),!!this.dayButtons.length&&(!!this.details.length&&(this.activeTab="event__menu--itemActive",this.activeDetails="event__details--itemActive",this.activeDetailsClass=".event__details--item",!0))}_setEvents(){this.buttons.each(e=>{e.addEvent("click",e=>{this.checkTab(e)})})}checkTab(e){e.target.classList.contains("event__menu--itemActive")||(e.target.classList.contains("dayButton")&&(this.dayButtons.removeClass(this.activeTab),this.dayButtons.forEach(t=>{e.target.dataset.date==t.dataset.date&&t.addClass(this.activeTab)})),e.target.classList.contains("pathButton")&&(this.pathButtons.removeClass(this.activeTab),this.pathButtons.forEach(t=>{e.target.dataset.path==t.dataset.path&&t.addClass(this.activeTab)})),this.showItems())}showItems(){const e=this.activeDetails,t=this.currentDate,i=this.activeDetailsClass;TweenLite.set(i,{autoAlpha:0}),this.details.removeClass(e),this.details.each(i=>{i.dataset.date==t&&i.addClass(e)}),TweenLite.to(i,1.5,{autoAlpha:1})}scrollUp(){window.scroll({top:this.wrapper.offsetTop,left:0,behavior:"smooth"})}}class EventsSlider{constructor(){}prepare(){this.options=this.getSliderOptions(),this.bindBasicEvents()}bindBasicEvents(){this.arrows=document.querySelectorAll(".sliderNav__arrow"),this.arrows.each(e=>{e.addEventListener("click",e=>e.preventDefault())})}initCustomSliderOptions(){document.cftn.SlidersSticky=new SlidersSticky(this),document.cftn.SliderMobileColumnLayout=new SlidersMobileColumnLayout(this)}initSlider(){this.sliders=this.sliders||{},this.options.forEach(e=>{let t=e.options,i=e.name;document.querySelector(t.container)&&(this.sliders[i]=tns(t))})}getOptionsByName(e){return this.options.filter(t=>t.name===e)}getSliderOptions(){return[{}]}}class EventsToggleText{constructor(){this.setVars()&&this.setEvents()}setVars(){if(this.sections=document.querySelectorAll(".currEvents__textContainer"),this.sections.length)return!0}setEvents(){this.sections.each(e=>{const t=e.querySelector(".currEvents__moreBtn"),i=e.querySelector(".currEvents__desc");t.addEvent("click",e=>{this.openSection(i,t)})})}openSection(e,t){const i=e.clientHeight,s=e.scrollHeight,n=44===i,r=!e.style.height;n?(e.classList.add("active"),t.childNodes[0].nodeValue="Ukryj"):(e.classList.remove("active"),t.childNodes[0].nodeValue="Pokaż więcej"),e.style.height=(n||r?s:44)+"px"}}class NewsPanelSlider{constructor(){window.addEventListener("DOMContentLoaded",e=>{var t=document.querySelectorAll(".news");t&&t.forEach(e=>{this._setEvents(e),this._adjustText(e)})})}_setEvents(e){var t=e.querySelector(".sliderNav__controls"),i=t.querySelector(".sliderNav__arrow--prev"),s=t.querySelector(".sliderNav__arrow--next"),n=e.querySelector(".news__sliderItemsContainer"),r=50,o=n.querySelectorAll(".news--item"),a=(parseInt(o.length)-1)/2-2;window.matchMedia("(max-width: 500px)").matches&&(r=100,a=parseInt(o.length)-1,this._setMobileEvents(o,n,i,s)),i.addEventListener("click",e=>{var o=parseInt(t.getAttribute("tabindex"));1==o&&i.setAttribute("aria-disabled",!0),s.setAttribute("aria-disabled",!1),t.setAttribute("tabindex",o-1),n.style.transform="translateX("+-(o-1)*r+"%)"}),s.addEventListener("click",e=>{var o=parseInt(t.getAttribute("tabindex"));o==a-1&&s.setAttribute("aria-disabled",!0),i.setAttribute("aria-disabled",!1),t.setAttribute("tabindex",o+1),n.style.transform="translateX("+-(o+1)*r+"%)"})}_adjustText(e){e.querySelectorAll(".events__title")}_setMobileEvents(e,t,i,s){var n=0,r=0;e.forEach(e=>{e.addEventListener("touchstart",e=>{t.style.transitionDuration="0ms",n=new WebKitCSSMatrix(window.getComputedStyle(t).transform).m41,r=e.targetTouches[0].pageX}),e.addEventListener("touchmove",e=>{var o=e.targetTouches[0].pageX,a=r-o;return!("true"===i.getAttribute("aria-disabled")&&a<0)&&(!("true"===s.getAttribute("aria-disabled")&&a>0)&&void(t.style.transform="translateX("+(-a+n)+"px)"))}),e.addEventListener("touchend",e=>{t.style.transitionDuration=null;var r=new WebKitCSSMatrix(window.getComputedStyle(t).transform).m41,o=(n-r)/window.screen.width*100;o>=30?s.click():o<=-30?i.click():t.style.transform="translateX("+n+"px)"})})}}class SliderPopup{constructor(){this.setVars()&&this.setEvents()}setVars(){return this.galleries=document.querySelectorAll("[data-popup-gallery]"),!!this.galleries.length&&(this.slider=[],this.thumbnails=[],this.mainSlider=[],this._activeSlide=null,this.box=null,this.elHeight=null,this.elWidth=null,!0)}setEvents(){Array.from(this.galleries).forEach((e,t)=>{e.getAttribute("data-basic-slider")&&this.initMainSlider(t,e.getAttribute("data-basic-slider")),Array.from(e.querySelectorAll("[data-image]")).forEach((i,s)=>{i.addEventListener("click",i=>{i.preventDefault();const n={galleryTitle:i.target.closest("[data-gallery-title]").getAttribute("data-gallery-title"),galleryUrl:i.target.closest("[data-gallery-url]").getAttribute("data-gallery-url")};let r=i.target.closest("[data-popup-gallery]").querySelectorAll("[data-image]");r=this.prepareItems(r);const o=e.getAttribute("data-popup-gallery");this.createTemplate(r,n,o),this.init(t,o),this.thumbnails[t].getInfo().slideItems[s].addClass("gallery__popupGalleryNavItem--active"),this.slider[t].goTo(s),this.removeClassPopup(),Array.from(this.thumbnails[t].getInfo().slideItems).forEach(e=>{e.addEventListener("click",i=>{this.slider[t].goTo(e.getAttribute("id").replace(`${o}-thumbnails-item`,""))})}),this.slider[t].events.on("indexChanged",e=>{this._activeSlide=document.querySelector(".popup .tns-slide-active");const i=document.querySelector(".zoomPopup");if(i&&i.parentElement.removeChild(i),this._activeSlide&&this._activeSlide.querySelector("iframe")){document.querySelector(".videoSection__poster").classList.remove("videoSection__poster--hidden"),this._activeSlide.querySelector("iframe").contentWindow.postMessage(JSON.stringify({event:"command",func:"stopVideo"}),"*")}this._activeSlide=document.querySelector(".popup .tns-slide-active"),document.querySelector(".popup .tns-slide-active").style.opacity=1,this.removeClass(t),this.thumbnails[t].getInfo().slideItems[e.index].addClass("gallery__popupGalleryNavItem--active"),this.thumbnails[t].goTo(e.index)})})})})}initMainSlider(e,t){switch(this.numOfSlides=document.getElementById(t).children.length,this.numOfSlides){case 3:this.items=3;break;case 2:this.items=2;break;case 1:this.items=1;break;default:this.items=4}this.mainSlider[e]=tns({container:`#${t}`,autoHeight:!0,controlsContainer:`[data-slider="${t}"]`,slideBy:"page",loop:!1,mouseDrag:!1,nav:!1,lazyload:!0,responsive:{1400:{items:this.items},900:{items:Math.ceil(this.items/2)},640:{items:1}}})}init(e,t){switch(this.numOfSlides=document.getElementById(t).children.length,this.numOfSlides){case 4:this.items=4;break;case 3:this.items=3;break;case 2:this.items=2;break;case 1:this.items=1;break;default:this.items=5}this.slider[e]=tns({container:`#${t}`,items:1,autoHeight:!0,controlsContainer:`#${t}-main-nav`,slideBy:"page",loop:!1,navContainer:".gallery__thumbnails",mouseDrag:!1,nav:!1,lazyload:!0}),this.thumbnails[e]=tns({container:`#${t}-thumbnails`,items:this.items,controlsContainer:`#${t}-nav`,loop:!1,rewind:!0,slideBy:1,nav:!0,lazyload:!0});var i=document.createElement("a");i.setAttribute("class","popup__zoomIcon"),i.setAttribute("href","#"),i.innerHTML='<span class="popup__icon icon-zoom-in1"></span>',document.querySelector(".popup>.popup__outer").appendChild(i),this._handleZoom(this.slider[e].getInfo()),this.slider[e].events.on("transitionEnd",this._onIndexChange)}_onIndexChange(e){let t=e.container,i=document.querySelector(".popup .popup__zoomIcon"),s=t.querySelector(".tns-slide-active"),n=s.querySelector(".galleryPopup__popupGalleryMainItem--text");document.querySelectorAll(".galleryPopup__popupGalleryMainItem--text--animated").forEach(e=>e.removeClass("galleryPopup__popupGalleryMainItem--text--animated")),n&&(n.innerText||(n.style.display="none"),n.addClass("galleryPopup__popupGalleryMainItem--text--animated")),s.querySelector(".videoSection")?i.addClass("popup__zoomIcon--hidden"):i.removeClass("popup__zoomIcon--hidden")}_handleZoom(e){let t=e.container,i=document.querySelector(".popup .popup__zoomIcon"),s=t.querySelector(".tns-slide-active"),n=s.querySelector(".galleryPopup__popupGalleryMainItem--text");document.querySelectorAll(".galleryPopup__popupGalleryMainItem--text--animated").forEach(e=>e.removeClass("galleryPopup__popupGalleryMainItem--text--animated")),n&&(n.innerText||(n.style.display="none"),n.addClass("galleryPopup__popupGalleryMainItem--text--animated")),s.querySelector(".videoSection")?i.addClass("popup__zoomIcon--hidden"):i.removeClass("popup__zoomIcon--hidden"),i.addEventListener("click",e=>this._zoomIn(e,t,i))}_zoomIn(e,t,i){e.preventDefault();const s=t.querySelector(".tns-slide-active"),n=s.querySelector("img"),r=n.src,o=document.createElement("div"),a=document.querySelector(".popup__zoomIcon"),l=i.getBoundingClientRect().top,c=n.classList.contains("galleryPopup__popupGalleryMainItem--horizontal")?"horizontal":"vertical";s.style.opacity="0",o.setAttribute("class","zoomPopup"),o.innerHTML=`<img src="${r}" class="zoomPopup__image zoomPopup__image--${c}"/><a class="zoomPopup__close" href="#" style="top: ${l}px;"><span class="icon-zoom-out"></span></a>`,document.querySelector(".popup__galleryContent").appendChild(o),a.classList.add("popup__zoomIcon--hidden");const h=document.querySelector(".zoomPopup__image");h.addEventListener("mousedown",e=>this._moveImage(h,e)),this._resetScroll(o),o.querySelector(".zoomPopup__close").addEventListener("click",e=>this._zoomOut(e,s))}_resetScroll(e){const t={left:e.scrollWidth/2-e.offsetWidth/2};e.scrollTo(t)}_moveAt(e,t,i,s,n){this.activeDrag&&(e.style.left=t-s+"px",e.style.top=i-n+"px")}_moveImage(e,t){this.activeDrag=!0;let i=t.screenX-e.getBoundingClientRect().left,s=t.screenY-e.getBoundingClientRect().top;this._moveAt(e,t.screenX,t.screenY,i,s),document.addEventListener("mousemove",t=>this._moveAt(e,t.screenX,t.screenY,i,s)),e.addEventListener("mouseup",()=>{this.activeDrag=!1}),e.ondragstart=function(){return!1}}_zoomOut(e,t){e.preventDefault();const i=e.currentTarget.parentElement,s=i.querySelector("img"),n=document.querySelector(".popup__zoomIcon");t.removeAttribute("style"),n.classList.remove("popup__zoomIcon--hidden"),s.addClass("zoomPopup__image--zoomedOut"),this._closeZoomPopup(i)}_closeZoomPopup(e){e.parentElement.removeChild(e)}removeClassPopup(){let e=document.querySelector(".galleryPopup__popupGalleryMainItem ").querySelector(".tns-slide-active").querySelector("[data-video]");null!=e&&((e=e.getAttribute("data-video")).length||document.querySelector(".popup__outer").removeClass("popup__outer--loading"))}prepareItems(e){let t=[];return Array.from(e).forEach((e,i)=>{t[i]={url:e.querySelector("[data-url]").getAttribute("data-url"),title:e.querySelector("[data-title]").getAttribute("data-title"),video:e.querySelector("[data-video]").getAttribute("data-video").length?e.querySelector("[data-video]").getAttribute("data-video"):""}}),t}createTemplate(e,t,i){const s=document.querySelector('[data-template="gallery-popup-template"]');if(!s)return!1;const n=document.createElement("div");n.innerHTML=s.innerHTML;let r=n.children[0];r=this.createTemplateMain(e,r,i),r=this.createTemplateThumbnails(e,r,i),document.body.appendChild(r),document.cftn.VideoPlayer.reinit(),this.popup=document.querySelector("[data-popup]"),this.popupClose=this.popup.querySelector("[data-popup-close]"),this.navContainer=this.popup.querySelector("[data-nav-more]"),this.popupClose.addEventListener("click",e=>{e.preventDefault(),e.target.closest("[data-popup]").remove()}),this.navContainer.addEventListener("click",e=>{e.preventDefault();const t=e.target.closest("[data-nav-container]");t.toggleClass(t.getAttribute("data-nav-container")),e.target.toggleClass("popup__showGalleryButton--close")}),document.querySelector(".popup").addEventListener("click",e=>{e.stopPropagation(),e.preventDefault(),e.target.hasClass("popup")&&this._closeZoomPopup(document.querySelector(".popup"))})}createTemplateMain(e,t,i){const s=t.querySelector("[data-gallery-main]");return s.setAttribute("id",`${i}`),s.closest("[data-gallery-wrapper]").querySelector("[data-gallery-nav]").setAttribute("id",`${i}-main-nav`),document.querySelector(".loader")&&document.querySelector(".loader").parentNode.removeChild(document.querySelector(".loader")),Array.from(e).forEach(e=>{let t=document.createElement("div");if(t.setAttribute("class","galleryPopup__popupGalleryMainItem"),e.video.length){const i=e.video.split("/").pop();t.innerHTML=`\n          <div class="videoSection">\n            <div class="videoSection__inner">\n              <div class="videoSection__wrapper">\n                <div class="videoSection__video" data-video="${i}">\n                  <div class="videoSection__poster" data-video-poster="videoSection__poster--hidden">\n                    <div class="videoSection__placeholder"\n                         style="background-image: url(${e.url});"></div>\n                    <button class="videoSection__play" data-video-play="videoSection__play--loading"></button>\n                  </div>\n                  <div class="videoSection__output" data-video-output></div>\n                </div>\n              </div>\n            </div>\n          </div>\n          <p class="galleryPopup__popupGalleryMainItem--text">${e.title}</p>\n        `,s.appendChild(t)}else{t.setAttribute("data-image",""),t.innerHTML=`\n          <img loading="lazy" class="galleryPopup__popupGalleryMainItem--image tns-lazy-img" data-src="${e.url}"/>\n          <p class="galleryPopup__popupGalleryMainItem--text">${e.title}</p>\n        `;const i=t.querySelector("img");i.addEventListener("load",function(){i.clientWidth>i.clientHeight?i.classList.add("galleryPopup__popupGalleryMainItem--horizontal"):i.classList.add("galleryPopup__popupGalleryMainItem--vertical")}),s.appendChild(t)}}),t}createTemplateThumbnails(e,t,i){const s=t.querySelector("[data-gallery-thumbnails]");return s.setAttribute("id",`${i}-thumbnails`),s.closest("[data-thumbnails-wrapper]").querySelector("[data-gallery-thumbnails-nav]").setAttribute("id",`${i}-nav`),Array.from(e).forEach(e=>{let t=document.createElement("div");t.setAttribute("class","galleryPopup__popupGalleryNavItem"),t.innerHTML=`\n        <img class="galleryPopup__popupGalleryNavItem--image tns-lazy-img" data-video="${e.video}" data-src="${e.url}">\n      `,s.appendChild(t)}),t}removeClass(e){Array.from(this.thumbnails[e].getInfo().slideItems).forEach(e=>{e.removeClass("galleryPopup__popupGalleryNavItem--active")})}}class SlidersController{constructor(){this.prepare(),this.initSliders(),this.initCustomSliderOptions()}prepare(){this.options=this.getSliderOptions(),this.bindBasicEvents()}bindBasicEvents(){this.arrows=document.querySelectorAll(".sliderNav__arrow"),this.arrows.each(e=>{e.addEventListener("click",e=>e.preventDefault())})}initCustomSliderOptions(){document.cftn.SlidersSticky=new SlidersSticky(this),document.cftn.SliderMobileColumnLayout=new SlidersMobileColumnLayout(this)}initSliders(){this.sliders=this.sliders||{},this.options.forEach(e=>{let t=e.options,i=e.name;document.querySelector(t.container)&&(this.sliders[i]=tns(t))})}getOptionsByName(e){return this.options.filter(t=>t.name===e)}getSliderOptions(){return[{name:"banner",options:{container:".bannerSlider",items:1,nav:!0,controls:!1,mode:"gallery",speed:100,autoplay:!0,autoplayButtonOutput:!1,autoplayTimeout:1e4,animateIn:"fadeIn",animateOut:"fadeOut"}},{name:"events",custom:[{name:"sticky",stickyClass:"events__event--locked",breakpoint:719}],mobileColumn:{breakpoint:719,perColumn:1},options:{container:'.events__container[data-type="slider"]',items:1,nav:!1,loop:!1,controlsContainer:'.sliderNav__controls[data-slider="events"]',responsive:{540:{items:2,gutter:18},720:{items:3},1000:{items:4},1100:{items:5}}}},{name:"media",mobileColumn:{perColumn:2,breakpoint:539},options:{container:'.media__container[data-type="slider"]',items:1,gutter:20,nav:!1,controlsContainer:'.sliderNav__controls[data-slider="media"]',lazyload:!0,responsive:{539:{items:2},999:{items:4}}}},{name:"withUs",mobileColumn:{perColumn:1,breakpoint:539},options:{container:".withUs__container",items:1,gutter:15,nav:!0,controls:!0,autoplay:!0,touchDrag:!0,autoplayButtonOutput:!1,controlsContainer:'.sliderNav__controls[data-slider="withUs"]',responsive:{539:{items:2,slideBy:"page"},719:{items:4},999:{items:5,gutter:30},1279:{items:6}}}},{name:"forYou",options:{container:'.singleGallery__container[data-name="forYou"]',items:1,gutter:9,nav:!1,loop:!1,controlsContainer:'.sliderNav__controls[data-slider="forYou"]',responsive:{539:{items:2},999:{items:4}}}},{name:"ourEvents",options:{container:'.singleGallery__container[data-name="ourEvents"]',items:1,gutter:9,nav:!1,loop:!1,controlsContainer:'.sliderNav__controls[data-slider="ourEvents"]',responsive:{539:{items:2},999:{items:4}}}},{name:"ourVids",options:{container:'.singleGallery__container[data-name="ourVids"]',items:1,gutter:9,nav:!1,loop:!1,controlsContainer:'.sliderNav__controls[data-slider="ourVids"]',responsive:{539:{items:2},999:{items:4}}}},{name:"concert",options:{container:'.singleGallery__container[data-name="concert"]',items:1,gutter:9,nav:!1,loop:!1,controlsContainer:'.sliderNav__controls[data-slider="concert"]',responsive:{539:{items:2},999:{items:4}}}},{name:"slider-3",options:{container:'.singleGallery__container[data-name="slider-3"]',items:1,gutter:0,nav:!1,loop:!1,controlsContainer:'.sliderNav__controls[data-slider="slider-3"]',responsive:{719:{items:2,gutter:15},919:{items:3}}}},{name:"contactBox",options:{container:".servicesContact__contactList",controlsContainer:'.sliderNav__controls[data-slider="contactBox"]',items:1,gutter:0,nav:!1,loop:!0,responsive:{919:{items:document.querySelector(".servicesContact")?parseInt(document.querySelector(".servicesContact").getAttribute("data-count"))<2?parseInt(document.querySelector(".servicesContact").getAttribute("data-count")):2:0},999:{items:document.querySelector(".servicesContact")?parseInt(document.querySelector(".servicesContact").getAttribute("data-count"))<3?parseInt(document.querySelector(".servicesContact").getAttribute("data-count")):3:0}}}},{name:"newsPage",options:{container:'.newsTop__inner[data-name="newsPage"]',items:1,gutter:0,nav:!0,controls:!1,loop:!0,autoplay:!0,speed:500,autoplayButtonOutput:!1,autoplayTimeout:5e3,responsive:{919:{disable:!0}}}},{name:"servicesIcons",options:{container:'.servicesIcons__inner[data-name="servicesIcons"]',controlsContainer:'.sliderNav__controls[data-slider="servicesIcons"]',items:1,gutter:0,loop:!0,autoplay:!0,speed:500,autoplayButtonOutput:!1,autoplayTimeout:5e3,mouseDrag:!1,responsive:{719:{disable:!0}}}},{name:"tickets",options:{container:'.tickets__inner[data-name="tickets"]',controlsContainer:'.sliderNav__controls[data-slider="tickets"]',items:1,gutter:32,nav:!1,loop:!1,lazyload:!1,responsive:{719:{items:2},999:{items:3}}}},{name:"tickets2",options:{container:'.tickets__inner[data-name="tickets2"]',controlsContainer:'.sliderNav__controls[data-slider="tickets2"]',items:1,gutter:32,nav:!1,loop:!1,responsive:{719:{items:2},999:{items:3}}}},{name:"tickets3",options:{container:'.tickets__inner[data-name="tickets3"]',controlsContainer:'.sliderNav__controls[data-slider="tickets3"]',items:1,gutter:32,nav:!1,loop:!1,responsive:{719:{items:2},999:{items:3}}}}]}}class SlidersMobileColumnLayout{constructor(e){this._setVars(e),this._prepare(),this._setEvents(),this._setColumns()}_setVars(e){return this.sliders=e.sliders,this.options=e.options,this.wrappClass="slider__wrap",!0}_setEvents(){window.addEvent("resize",()=>{this._setColumns()})}_prepare(){this.columnSlides=this.options.filter(e=>e.mobileColumn&&document.querySelector(e.options.container)),this.columnSlides.each(e=>{e.columns=e.columns||{},e.columns.state=!1})}_setColumns(){this.columnSlides.each(e=>{const t=e.mobileColumn,i=t.breakpoint?t.breakpoint:539;window.matchMedia(`(max-width: ${i}px)`).matches!==e.columns.state&&(e.columns.state=!e.columns.state,this._getSliderByName(e.name).destroy(),window.matchMedia(`(max-width: ${i}px)`).matches?this._setWrap(e.options.container,t):this._unsetWrap(e.options.container,t),this.sliders[e.name]=tns(e.options),document.cftn.EventsEqualHeight&&document.cftn.EventsEqualHeight.checkHeight())})}_getSliderByName(e){return this.sliders[e]}_setWrap(e,t){let i=document.querySelector(e);if(!i)return;let s=this._returnPairs(i.children,t);i.innerHTML="",s.each(e=>{let t=document.createElement("div");t.addClass(this.wrappClass),e.each(e=>{t.appendChild(e)}),i.appendChild(t)})}_returnPairs(e,t){let i=[],s=[];if(t.nested){document.querySelectorAll(t.child).each((e,n)=>{n%t.perColumn==0&&0!==n&&(i.push(s),s=[]),s.push(e)}),i.push(s)}else e.each((e,n)=>{n%t.perColumn==0&&0!==n&&(i.push(s),s=[]),s.push(e)}),i.push(s);return i}_unsetWrap(e,t){let i=document.querySelector(e),s=i.querySelectorAll(`.${this.wrappClass}`);s.length>0&&s.each(e=>{let t=e.children;Array.from(t).each(e=>{i.appendChild(e)}),i.removeChild(e)})}}class SlidersSticky{constructor(e){this._setVars(e),this._setEvents(),this._initialRun()}_setVars(e){this.sliders=e.sliders,this.options=e.options,this.isTablet=window.matchMedia("(max-width: 719px)").matches,this.currState=this.isTablet,this._prepare()}_prepare(){this.slidersWithStickyOption=this.options.filter(e=>e.custom&&document.querySelector(e.options.container)),this.slidersWithStickyOption.each(e=>{const t=this._getStickyOptions(e),i=t.breakpoint;t.breakpointHit=window.matchMedia(`(max-width: ${i}px)`).matches})}_setEvents(){window.addEventListener("resize",this._setCustom.bind(this))}_initialRun(){this.slidersWithStickyOption.each(e=>{const t=this._getSliderByName(e.name),i=this._getStickyOptions(e);document.querySelector(`.${i.stickyClass}`)&&this._setSticky(t,e)})}_setCustom(){this.slidersWithStickyOption.each(e=>{const t=this._getSliderByName(e.name),i=this._getStickyOptions(e);if(document.querySelector(`.${i.stickyClass}`)){const s=i.breakpoint,n=window.matchMedia(`(max-width: ${s}px)`).matches;i.breakpointHit!==n&&(this._setSticky(t,e),i.breakpointHit=n)}})}_setSticky(e,t){const{stickyClass:i,breakpoint:s}=this._getStickyOptions(t),n=e.getInfo().container,r="(max-width: "+s+"px)",o=t.mobileColumn&&!window.matchMedia(`(max-width: ${t.mobileColumn.breakpoint}px)`);if(this._modifyOptions(t),o||e.destroy(),window.matchMedia(r).matches){const e=n.closest(".slider__stickyContainer");if(null!==e){const t=e.parentElement,s=e.querySelectorAll("."+i),r=t.querySelector(".mobileLinkButton");s.each(e=>{n.prepend(e)}),r?t.insertBefore(n,r):t.appendChild(n),t.removeChild(e)}}else{const e=n.querySelectorAll("."+i),t=document.createElement("div"),s=n.parentElement,r=s.querySelector(".mobileLinkButton");t.addClass("slider__stickyContainer"),e.each(e=>{t.appendChild(e)}),t.appendChild(n),r?s.insertBefore(t,r):s.appendChild(t)}o||(this.sliders[t.name]=tns(t.options))}_modifyOptions(e){const t=e.custom[0].breakpoint,i=e.options.responsive;Object.keys(i).forEach(e=>{parseInt(e)>=t&&(i[e].items-=1)})}_getSliderByName(e){return this.sliders[e]}_getStickyOptions(e){return e.custom.filter(e=>"sticky"===e.name)[0]}}class SpeakersSlider{constructor(){this.setVars()&&this.setEvents()}setVars(){return this.speakerSlider=document.querySelector(".speakers__slider"),!!this.speakerSlider&&(this.slider=null,this.checkWindow(),!0)}setEvents(){window.addEventListener("resize",()=>{this.checkWindow()})}checkWindow(){window.innerWidth<541?null==this.slider&&(this.removeClassFlex(),this.initSlider()):(null!=this.slider&&(this.slider.destroy(),this.slider=null),this.addClassFlex())}initSlider(){this.slider=new tns({container:".speakers__slider",items:2,slideBy:"page",gutter:10,mouseDrag:!1,nav:!1,controlsContainer:'.sliderNav__controls[data-slider="speakersArrows"]'})}addClassFlex(){this.speakerSlider.classList.add("speakers__inner--flex"),this.speakerSlider.querySelectorAll(".speakers__single").forEach(e=>{e.classList.add("speakers__single--flex")})}removeClassFlex(){this.speakerSlider.classList.remove("speakers__inner--flex"),this.speakerSlider.querySelectorAll(".speakers__single").forEach(e=>{e.classList.remove("speakers__single--flex")})}}class Core{constructor(){this.run()}run(){document.cftn=document.cftn||{},document.cftn.slidersController=new SlidersController,document.querySelectorAll(".banner").each((e,t)=>{document.cftn.BannerOverflowButtons=document.cftn.BannerOverflowButtons||[],document.cftn.BannerOverflowButtons[t]=new BannerOverflowButtons(e)}),document.cftn.AjaxRequests=new AjaxRequests,document.cftn.scrollCore=new ScrollCore,document.cftn.Marquee=new Marquee,document.cftn.Cookie=new Cookie,document.cftn.AppPopup=new AppPopup,document.cftn.navbars=new Navbars,document.cftn.submenu=new Submenu,document.cftn.enets=new Events,document.cftn.fixedMenu=new FixedMenu,document.cftn.headerSearch=new HeaderSearch,document.cftn.NewsSingle=new NewsSingle,document.cftn.mobileNav=new MobileNav,document.cftn.langSwitcher=new LangSwitcher,document.cftn.EventsEqualHeight=new EventsEqualHeight,document.cftn.scrollTo=new ScrollTo,document.cftn.fixed=new Fixed,document.cftn.TicketsNameHeight=new TicketsNameHeight,document.cftn.eventPanelToggle=new EventPanelToggle,document.cftn.toggleMapPanel=new ToggleMapPanel,document.cftn.showHideFilters=new ShowHideFilters,document.cftn.showContact=new ShowContact,document.cftn.resetFilters=new ResetFilters,document.cftn.showIframe=new ShowIframe,document.cftn.socialsInFooter=new SocialsInFooter,document.cftn.GenerateCalendarLinks=new GenerateCalendarLinks,document.cftn.toggleSocial=new ToggleSocial,document.cftn.PopupSingle=new PopupSingle,document.cftn.CalendarSearch=new CalendarSearch,document.cftn.ToggleServiceNav=new ToggleServiceNav,document.cftn.TogglePanel=new TogglePanel,document.cftn.DescriptionGalleryAnimation=new DescriptionGalleryAnimation,document.cftn.galleryGrid=new GalleryGrid,document.cftn.speakersSlider=new SpeakersSlider,document.cftn.serviceBoxesWidth=new ServiceBoxesWidth,document.cftn.SliderPopup=new SliderPopup,document.cftn.PartnersInFooter=new PartnersInFooter,document.cftn.VideoPlayer=new VideoPlayer,document.cftn.EventsSlider=new EventsSlider,document.cftn.FormPopup=new FormPopup,document.cftn.EventsToggleText=new EventsToggleText,document.cftn.EventsShowDetails=new EventsShowDetails,document.cftn.EventsHandleLinks=new EventsHandleLinks,document.cftn.TicketsEqualHeight=new TicketsEqualHeight,document.querySelectorAll("[data-timer-date]").each((e,t)=>{document.cftn.Timer=document.cftn.Timer||[],document.cftn.Timer[t]=new Timer(e)}),document.querySelectorAll(".jsPanelSectionAnimate").each((e,t)=>{document.cftn.PanelSectionAnimate=document.cftn.PanelSectionAnimate||[],document.cftn.PanelSectionAnimate[t]=new PanelSectionAnimate(e)}),document.cftn.NewsPanelSlider=new NewsPanelSlider}}const ready=e=>{(document.attachEvent?"complete"===document.readyState:"loading"!==document.readyState)?e():document.addEventListener("DOMContentLoaded",e)};ready(()=>{new Core});;
(function () {
    //register all dependent modules ("modules" object is registered in layout and updated in specific modules)
    var app = angular.module('prod', modules);

    app.run(["$rootScope", "$location", "$anchorScroll",
        function ($rootScope, $location, $anchorScroll) {
            //when the route is changed scroll to the proper element.
            $rootScope.$on('$routeChangeSuccess', function (newRoute, oldRoute) {
                if ($location.hash()) $anchorScroll();
            });
        }]);

    $('#mainLogo').click(function (e) {
        //parse url params
        let searchParams = new URLSearchParams(document.location.search);
        //parse pathname
        let path = window.location.pathname
        if (path.substr(-1) === '/') {
            path = path.substr(0, path.length - 1);
        }
        //check if we are on homepage
        if (path == '/pl' || path == '/en') {
            //disable normal redirect
            e.preventDefault();
            //scroll up
            $('body,html').animate({ scrollTop: 0 }, 800);
            return false;
        }
        //return control to native html
        return true;
    });

})();;

window.addEventListener('load', function () {
    if (localStorage.getItem('TextZoom') == "true") TextZoom();
    if (localStorage.getItem('HighContrast') == "true") HighContrast();


});

//Zoom
function ToggleTextZoom() {

    if ((localStorage.getItem('TextZoom') == "false") || (localStorage.getItem('TextZoom') == null))
        localStorage.setItem('TextZoom', true);
    else 
        localStorage.setItem('TextZoom', false);

    TextZoom();
}

function TextZoom() {
    document.getElementById("icon-font-zoom").classList.toggle("icon-font-zoom-in");
    document.getElementById("icon-font-zoom").classList.toggle("icon-font-zoom-out");
    document.querySelector("body").classList.toggle("zoom");
}

//High contrast
function ToggleHighContrast() {

    if ((localStorage.getItem('HighContrast') == "false") || (localStorage.getItem('HighContrast') == null))
        localStorage.setItem('HighContrast', true);
    else
        localStorage.setItem('HighContrast', false);

    HighContrast();
}

function HighContrast() {

    document.querySelector("body").classList.toggle("negative-contrast");
}

//Menu
function ToogleAccessibilityMenu(e) {
    e.currentTarget.querySelector(".header__wcagContainer").classList.toggle("header__wcagContainer--show");
}

;
/* @preserve
    _____ __ _     __                _
   / ___// /(_)___/ /___  ____      (_)___
  / (_ // // // _  // -_)/ __/_    / /(_-<
  \___//_//_/ \_,_/ \__//_/  (_)__/ //___/
                              |___/

  Version: 1.7.2
  Author: Nick Piscitelli (pickykneee)
  Website: https://nickpiscitelli.com
  Documentation: http://nickpiscitelli.github.io/Glider.js
  License: MIT License
  Release Date: October 25th, 2018

*/

/* global define */

var initGlider = function (repeatDelay) {

    //ensure repeatDelay is a number
    if (repeatDelay !== undefined && (typeof repeatDelay == "number" && repeatDelay === parseInt(repeatDelay))) {
        window.setInterval(function () {
            let newIndex = 0;
            let pageCount = Math.ceil(glider.slides.length / glider.opt.slidesToShow);
            if (glider.page < pageCount - 1) {
                newIndex = glider.page + 1;
            }
            glider.scrollItem(newIndex, true);
        },
            repeatDelay)
    }

    let getResponsiveConfigs = function (config) {
        let responsive = [];
        let arrows = {
            prev: '#' + containerId + ' .arrowPrev',
            next: '#' + containerId + ' .arrowNext',
        };

        for (let index in config.responsive) {
            let responsiveItem = {
                breakpoint: config.responsive[index].breakpoint,
                settings: {
                    slidesToShow: config.responsive[index].slidesShown > 0 ? config.responsive[index].slidesShown : 'auto',
                    draggable: config.responsive[index].drag,
                    scrollLock: config.responsive[index].snap,
                    itemWidth: config.responsive[index].slideWidth,
                    exactWidth: typeof config.responsive[index].slideWidth == "number" && config.responsive[index].slideWidth !== 0,
                    arrows: config.responsive[index].arrows ? arrows : undefined,
                    dots: config.responsive[index].dots ? '#' + containerId + ' .slidierDots' : undefined,
                }
            };
            responsive.push(responsiveItem);
        };

        return responsive.length > 0 ? responsive : undefined;
    }

    let containerId = 'fairsCards';
    let sliderId = 'fairsCardsSlides';
    let container = $('#' + containerId)[0];
    let slider = $('#' + sliderId)[0];
    let arrows = {
        prev: '#' + containerId + ' .arrowPrev',
        next: '#' + containerId + ' .arrowNext',
    };
    let config = {
        default: {
            slidesShown: 1,
            drag: false,
            snap: true,
            slideWidth: 'auto',
            arrows: true,
            dots: false
        },
        responsive: [
            {
                breakpoint: 769,
                slidesShown: 4,
                drag: false,
                snap: true,
                slideWidth: 0,
                arrows: true,
                dots: false
            }
        ]
    };

    if (container == undefined || slider == undefined) {
        return;
    }

    let glider = new Glider(slider, {
        slidesToShow: config.default.slidesShown > 0 ? config.default.slidesShown : 'auto',
        draggable: config.default.drag,
        scrollLock: config.default.snap,
        itemWidth: config.default.slideWidth,
        exactWidth: typeof config.default.slideWidth == "number" && config.default.slideWidth !== 0,
        arrows: config.default.arrows ? arrows : undefined,
        dots: config.default.dots ? '#' + containerId + ' .slidierDots' : undefined,
        duration: 8,

        responsive: getResponsiveConfigs(config)
    });    
};

(function (factory) {
    typeof define === 'function' && define.amd
        ? define(factory)
        : typeof exports === 'object'
            ? (module.exports = factory())
            : factory()
})(function () {
    ('use strict') // eslint-disable-line no-unused-expressions

    /* globals window:true */
    var _window = typeof window !== 'undefined' ? window : this

    var Glider = (_window.Glider = function (element, settings) {
        var _ = this
        if (element._glider) return element._glider

        _.ele = element
        _.ele.classList.add('glider')

        // expose glider object to its DOM element
        _.ele._glider = _

        // merge user setting with defaults
        _.opt = Object.assign(
            {},
            {
                slidesToScroll: 1,
                slidesToShow: 1,
                resizeLock: true,
                duration: 0.5,
                // easeInQuad
                easing: function (x, t, b, c, d) {
                    return c * (t /= d) * t + b
                }
            },
            settings
        )

        // set defaults
        _.animate_id = _.page = _.slide = 0
        _.arrows = {}

        // preserve original options to
        // extend breakpoint settings
        _._opt = _.opt

        if (_.opt.skipTrack) {
            // first and only child is the track
            _.track = _.ele.children[0]
        } else {
            // create track and wrap slides
            _.track = document.createElement('div')
            _.ele.appendChild(_.track)
            while (_.ele.children.length !== 1) {
                _.track.appendChild(_.ele.children[0])
            }
        }

        _.track.classList.add('glider-track')

        // start glider
        _.init()

        // set events
        _.resize = _.init.bind(_, true)
        _.event(_.ele, 'add', {
            scroll: _.updateControls.bind(_)
        })
        _.event(_window, 'add', {
            resize: _.resize
        })
    })

    var gliderPrototype = Glider.prototype
    gliderPrototype.init = function (refresh, paging) {
        var _ = this

        var width = 0

        var height = 0

        _.slides = _.track.children;

        [].forEach.call(_.slides, function (_) {
            _.classList.add('glider-slide')
        })

        _.containerWidth = _.ele.clientWidth

        var breakpointChanged = _.settingsBreakpoint()
        if (!paging) paging = breakpointChanged

        if (_.opt.slidesToShow === 'auto' || _.opt._autoSlide) {
            var slideCount = _.containerWidth / _.opt.itemWidth

            _.opt._autoSlide = _.opt.slidesToShow = _.opt.exactWidth
                ? slideCount
                : Math.floor(slideCount)
        }
        if (_.opt.slidesToScroll === 'auto') {
            _.opt.slidesToScroll = Math.floor(_.opt.slidesToShow)
        }

        _.itemWidth = _.opt.exactWidth
            ? _.opt.itemWidth
            : _.containerWidth / _.opt.slidesToShow;

        // set slide dimensions
        [].forEach.call(_.slides, function (__) {
            __.style.height = 'auto'
            __.style.width = _.itemWidth + 'px'
            width += _.itemWidth
            height = Math.max(__.offsetHeight, height)
        })
        
        _.track.style.width = width + 'px'
        _.trackWidth = width

        _.opt.resizeLock && _.scrollTo(_.slide * _.itemWidth, 0)

        if (breakpointChanged || paging) {
            _.bindArrows()
            _.buildDots()
            _.bindDrag()
        }

        _.updateControls()

        _.emit(refresh ? 'refresh' : 'loaded')
    }

    gliderPrototype.bindDrag = function () {
        var _ = this
        _.mouse = _.mouse || _.handleMouse.bind(_)

        var mouseup = function () {
            _.mouseDown = undefined
            _.ele.classList.remove('drag')
        }

        var events = {
            mouseup: mouseup,
            mouseleave: mouseup,
            mousedown: function (e) {
                _.mouseDown = e.clientX
                _.ele.classList.add('drag')
            },
            mousemove: _.mouse
        }

        _.ele.classList.toggle('draggable', _.opt.draggable === true)
        _.event(_.ele, 'remove', events)
        if (_.opt.draggable) _.event(_.ele, 'add', events)
    }

    gliderPrototype.buildDots = function () {
        var _ = this

        if (!_.opt.dots) {
            if (_.dots) _.dots.innerHTML = ''
            return
        }

        if (typeof _.opt.dots === 'string') {
            _.dots = document.querySelector(_.opt.dots)
        } else _.dots = _.opt.dots
        if (!_.dots) return

        _.dots.innerHTML = ''
        _.dots.classList.add('glider-dots')

        for (var i = 0; i < Math.ceil(_.slides.length / _.opt.slidesToShow); ++i) {
            var dot = document.createElement('button')
            dot.dataset.index = i
            dot.setAttribute('aria-label', 'Page ' + (i + 1))
            dot.className = 'glider-dot ' + (i ? '' : 'active')
            _.event(dot, 'add', {
                click: _.scrollItem.bind(_, i, true)
            })
            _.dots.appendChild(dot)
        }
    }

    gliderPrototype.bindArrows = function () {
        var _ = this
        if (!_.opt.arrows) {
            Object.keys(_.arrows).forEach(function (direction) {
                var element = _.arrows[direction]
                _.event(element, 'remove', { click: element._func })
            })
            return
        }
        ['prev', 'next'].forEach(function (direction) {
            var arrow = _.opt.arrows[direction]
            if (arrow) {
                if (typeof arrow === 'string') arrow = document.querySelector(arrow)
                arrow._func = arrow._func || _.scrollItem.bind(_, direction)
                _.event(arrow, 'remove', {
                    click: arrow._func
                })
                _.event(arrow, 'add', {
                    click: arrow._func
                })
                _.arrows[direction] = arrow
            }
        })
    }

    gliderPrototype.updateControls = function (event) {
        var _ = this

        if (event && !_.opt.scrollPropagate) {
            event.stopPropagation()
        }

        var disableArrows = _.containerWidth >= _.trackWidth

        if (!_.opt.rewind) {
            if (_.arrows.prev) {
                _.arrows.prev.classList.toggle(
                    'disabled',
                    _.ele.scrollLeft <= 0 || disableArrows
                )
            }
            if (_.arrows.next) {
                _.arrows.next.classList.toggle(
                    'disabled',
                    Math.ceil(_.ele.scrollLeft + _.containerWidth) >=
                    Math.floor(_.trackWidth) || disableArrows
                )
            }
        }

        _.slide = Math.round(_.ele.scrollLeft / _.itemWidth)
        _.page = Math.round(_.ele.scrollLeft / _.containerWidth)

        var middle = _.slide + Math.floor(Math.floor(_.opt.slidesToShow) / 2)

        var extraMiddle = Math.floor(_.opt.slidesToShow) % 2 ? 0 : middle + 1
        if (Math.floor(_.opt.slidesToShow) === 1) {
            extraMiddle = 0
        }

        // the last page may be less than one half of a normal page width so
        // the page is rounded down. when at the end, force the page to turn
        if (_.ele.scrollLeft + _.containerWidth >= Math.floor(_.trackWidth)) {
            _.page = _.dots ? _.dots.children.length - 1 : 0
        }

        [].forEach.call(_.slides, function (slide, index) {
            var slideClasses = slide.classList

            var wasVisible = slideClasses.contains('visible')

            var start = _.ele.scrollLeft

            var end = _.ele.scrollLeft + _.containerWidth

            var itemStart = _.itemWidth * index

            var itemEnd = itemStart + _.itemWidth;

            [].forEach.call(slideClasses, function (className) {
                /^left|right/.test(className) && slideClasses.remove(className)
            })
            slideClasses.toggle('active', _.slide === index)
            if (middle === index || (extraMiddle && extraMiddle === index)) {
                slideClasses.add('center')
            } else {
                slideClasses.remove('center')
                slideClasses.add(
                    [
                        index < middle ? 'left' : 'right',
                        Math.abs(index - (index < middle ? middle : extraMiddle || middle))
                    ].join('-')
                )
            }

            var isVisible =
                Math.ceil(itemStart) >= start && Math.floor(itemEnd) <= end
            slideClasses.toggle('visible', isVisible)
            if (isVisible !== wasVisible) {
                _.emit('slide-' + (isVisible ? 'visible' : 'hidden'), {
                    slide: index
                })
            }
        })
        if (_.dots) {
            [].forEach.call(_.dots.children, function (dot, index) {
                dot.classList.toggle('active', _.page === index)
            })
        }

        if (event && _.opt.scrollLock) {
            clearTimeout(_.scrollLock)
            _.scrollLock = setTimeout(function () {
                clearTimeout(_.scrollLock)
                // dont attempt to scroll less than a pixel fraction - causes looping
                if (Math.abs(_.ele.scrollLeft / _.itemWidth - _.slide) > 0.02) {
                    if (!_.mouseDown) {
                        _.scrollItem(_.round(_.ele.scrollLeft / _.itemWidth))
                    }
                }
            }, _.opt.scrollLockDelay || 250)
        }
    }

    gliderPrototype.scrollItem = function (slide, dot, e) {
        if (e) e.preventDefault()

        var _ = this

        var originalSlide = slide
        ++_.animate_id

        if (dot === true) {
            slide = slide * _.containerWidth
            slide = Math.round(slide / _.itemWidth) * _.itemWidth
        } else {
            if (typeof slide === 'string') {
                var backwards = slide === 'prev'

                // use precise location if fractional slides are on
                if (_.opt.slidesToScroll % 1 || _.opt.slidesToShow % 1) {
                    slide = _.round(_.ele.scrollLeft / _.itemWidth)
                } else {
                    slide = _.slide
                }

                if (backwards) slide -= _.opt.slidesToScroll
                else slide += _.opt.slidesToScroll

                if (_.opt.rewind) {
                    var scrollLeft = _.ele.scrollLeft
                    slide =
                        backwards && !scrollLeft
                            ? _.slides.length
                            : !backwards &&
                                scrollLeft + _.containerWidth >= Math.floor(_.trackWidth)
                                ? 0
                                : slide
                }
            }

            slide = Math.max(Math.min(slide, _.slides.length), 0)

            _.slide = slide
            slide = _.itemWidth * slide
        }

        _.scrollTo(
            slide,
            _.opt.duration * Math.abs(_.ele.scrollLeft - slide),
            function () {
                _.updateControls()
                _.emit('animated', {
                    value: originalSlide,
                    type:
                        typeof originalSlide === 'string' ? 'arrow' : dot ? 'dot' : 'slide'
                })
            }
        )

        return false
    }

    gliderPrototype.settingsBreakpoint = function () {
        var _ = this

        var resp = _._opt.responsive

        if (resp) {
            // Sort the breakpoints in mobile first order
            resp.sort(function (a, b) {
                return b.breakpoint - a.breakpoint
            })

            for (var i = 0; i < resp.length; ++i) {
                var size = resp[i]
                if (_window.innerWidth >= size.breakpoint) {
                    if (_.breakpoint !== size.breakpoint) {
                        _.opt = Object.assign({}, _._opt, size.settings)
                        _.breakpoint = size.breakpoint
                        return true
                    }
                    return false
                }
            }
        }
        // set back to defaults in case they were overriden
        var breakpointChanged = _.breakpoint !== 0
        _.opt = Object.assign({}, _._opt)
        _.breakpoint = 0
        return breakpointChanged
    }

    gliderPrototype.scrollTo = function (scrollTarget, scrollDuration, callback) {
        var _ = this

        var start = new Date().getTime()

        var animateIndex = _.animate_id

        var animate = function () {
            var now = new Date().getTime() - start
            _.ele.scrollLeft =
                _.ele.scrollLeft +
                (scrollTarget - _.ele.scrollLeft) *
                _.opt.easing(0, now, 0, 1, scrollDuration)
            if (now < scrollDuration && animateIndex === _.animate_id) {
                _window.requestAnimationFrame(animate)
            } else {
                _.ele.scrollLeft = scrollTarget
                callback && callback.call(_)
            }
        }

        _window.requestAnimationFrame(animate)
    }

    gliderPrototype.removeItem = function (index) {
        var _ = this

        if (_.slides.length) {
            _.track.removeChild(_.slides[index])
            _.refresh(true)
            _.emit('remove')
        }
    }

    gliderPrototype.addItem = function (ele) {
        var _ = this

        _.track.appendChild(ele)
        _.refresh(true)
        _.emit('add')
    }

    gliderPrototype.handleMouse = function (e) {
        var _ = this
        if (_.mouseDown) {
            _.ele.scrollLeft +=
                (_.mouseDown - e.clientX) * (_.opt.dragVelocity || 3.3)
            _.mouseDown = e.clientX
        }
    }

    // used to round to the nearest 0.XX fraction
    gliderPrototype.round = function (double) {
        var _ = this
        var step = _.opt.slidesToScroll % 1 || 1
        var inv = 1.0 / step
        return Math.round(double * inv) / inv
    }

    gliderPrototype.refresh = function (paging) {
        var _ = this
        _.init(true, paging)
    }

    gliderPrototype.setOption = function (opt, global) {
        var _ = this

        if (_.breakpoint && !global) {
            _._opt.responsive.forEach(function (v) {
                if (v.breakpoint === _.breakpoint) {
                    v.settings = Object.assign({}, v.settings, opt)
                }
            })
        } else {
            _._opt = Object.assign({}, _._opt, opt)
        }

        _.breakpoint = 0
        _.settingsBreakpoint()
    }

    gliderPrototype.destroy = function () {
        var _ = this

        var replace = _.ele.cloneNode(true)

        var clear = function (ele) {
            ele.removeAttribute('style');
            [].forEach.call(ele.classList, function (className) {
                /^glider/.test(className) && ele.classList.remove(className)
            })
        }
        // remove track
        replace.children[0].outerHTML = replace.children[0].innerHTML
        clear(replace);
        [].forEach.call(replace.getElementsByTagName('*'), clear)
        _.ele.parentNode.replaceChild(replace, _.ele)
        _.event(_window, 'remove', {
            resize: _.resize
        })
        _.emit('destroy')
    }

    gliderPrototype.emit = function (name, arg) {
        var _ = this

        var e = new _window.CustomEvent('glider-' + name, {
            bubbles: !_.opt.eventPropagate,
            detail: arg
        })
        _.ele.dispatchEvent(e)
    }

    gliderPrototype.event = function (ele, type, args) {
        var eventHandler = ele[type + 'EventListener'].bind(ele)
        Object.keys(args).forEach(function (k) {
            eventHandler(k, args[k])
        })
    }

    return Glider
})
jQuery(document).ready(initGlider());;

$(document).ready(function () {
    window.setTimeout(function () {
        var ad = $('.adPanel .adView');
        $.each(ad, function (index, value) {
            if (value.clientHeight != 0) {
                $.get(value.dataset.vdta)
            }
        });
    }, 1);
});
;
