// source --> //www.tranghotelbangkok.com/wp-content/plugins/nextend-smart-slider3-pro/Public/SmartSlider3/Application/Frontend/Assets/dist/n2-j.min.js?ver=ff7f6f5b 
function N2Deferred(){this.state=0,this.args=null,this.callbacks=[]}function NextendThrottle(r,i){var o,s;return i=i||250,function(){var e=this,t=+new Date,n=arguments;o&&t<o+i?(clearTimeout(s),s=setTimeout(function(){o=t,r.apply(e,n)},i)):(o=t,r.apply(e,n))}}function NextendDeBounce(r,i,o){var s;return function(){var e=this,t=arguments,n=o&&!s;clearTimeout(s),s=setTimeout(function(){s=null,o||r.apply(e,t)},i),n&&r.apply(e,t)}}(function(){var e=this;e.N2_=e.N2_||{r:[],d:[]},e.N2R=e.N2R||function(){e.N2_.r.push(arguments)},e.N2D=e.N2D||function(){e.N2_.d.push(arguments)}}).call(window),void 0===window.jQuery&&(function(C){"use strict";function g(e){return null!=e&&e===e.window}var e=[],E=C.document,r=Object.getPrototypeOf,a=e.slice,v=e.concat,u=e.push,i=e.indexOf,n={},o=n.toString,m=n.hasOwnProperty,s=m.toString,l=s.call(Object),y={},x=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var t="3.4.1",k=function(e,t){return new k.fn.init(e,t)},f=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function d(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!x(e)&&!g(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}k.fn=k.prototype={jquery:t,constructor:k,length:0,toArray:function(){return a.call(this)},get:function(e){return null==e?a.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=k.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return k.each(this,e)},map:function(n){return this.pushStack(k.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:e.sort,splice:e.splice},k.extend=k.fn.extend=function(){var e,t,n,r,i,o,s=arguments[0]||{},a=1,u=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[a]||{},a++),"object"==typeof s||x(s)||(s={}),a===u&&(s=this,a--);a<u;a++)if(null!=(e=arguments[a]))for(t in e)r=e[t],"__proto__"!==t&&s!==r&&(l&&r&&(k.isPlainObject(r)||(i=Array.isArray(r)))?(n=s[t],o=i&&!Array.isArray(n)?[]:i||k.isPlainObject(n)?n:{},i=!1,s[t]=k.extend(l,o,r)):void 0!==r&&(s[t]=r));return s},k.extend({expando:"jQuery"+(t+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==o.call(e)||(t=r(e))&&("function"!=typeof(n=m.call(t,"constructor")&&t.constructor)||s.call(n)!==l))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t){b(e,{nonce:t&&t.nonce})},each:function(e,t){var n,r=0;if(d(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(f,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(d(Object(e))?k.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:i.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,s=!n;i<o;i++)!t(e[i],i)!=s&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,s=[];if(d(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&s.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&s.push(i);return v.apply([],s)},guid:1,support:y}),"function"==typeof Symbol&&(k.fn[Symbol.iterator]=e[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var p=function(n){function f(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(65536+r):String.fromCharCode(r>>10|55296,1023&r|56320)}function i(){T()}var e,p,b,o,s,h,d,g,w,u,l,T,C,a,E,v,c,m,y,k="sizzle"+ +new Date,x=n.document,N=0,r=0,S=ue(),A=ue(),L=ue(),D=ue(),j=function(e,t){return e===t&&(l=!0),0},P={}.hasOwnProperty,t=[],q=t.pop,I=t.push,O=t.push,M=t.slice,H=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",_="[\\x20\\t\\r\\n\\f]",B="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",W="\\["+_+"*("+B+")(?:"+_+"*([*^$|!~]?=)"+_+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+B+"))|)"+_+"*\\]",$=":("+B+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",F=new RegExp(_+"+","g"),z=new RegExp("^"+_+"+|((?:^|[^\\\\])(?:\\\\.)*)"+_+"+$","g"),X=new RegExp("^"+_+"*,"+_+"*"),U=new RegExp("^"+_+"*([>+~]|"+_+")"+_+"*"),G=new RegExp(_+"|>"),V=new RegExp($),Y=new RegExp("^"+B+"$"),Q={ID:new RegExp("^#("+B+")"),CLASS:new RegExp("^\\.("+B+")"),TAG:new RegExp("^("+B+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+_+"*(even|odd|(([+-]|)(\\d*)n|)"+_+"*(?:([+-]|)"+_+"*(\\d+)|))"+_+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+_+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+_+"*((?:-\\d)?\\d*)"+_+"*\\)|)(?=[^-]|$)","i")},J=/HTML$/i,K=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,ee=/^[^{]+\{\s*\[native \w/,te=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ne=/[+~]/,re=new RegExp("\\\\([\\da-f]{1,6}"+_+"?|("+_+")|.)","ig"),ie=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,oe=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},se=ye(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{O.apply(t=M.call(x.childNodes),x.childNodes),t[x.childNodes.length].nodeType}catch(e){O={apply:t.length?function(e,t){I.apply(e,M.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function ae(e,t,n,r){var i,o,s,a,u,l,c,f=t&&t.ownerDocument,d=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==d&&9!==d&&11!==d)return n;if(!r&&((t?t.ownerDocument||t:x)!==C&&T(t),t=t||C,E)){if(11!==d&&(u=te.exec(e)))if(i=u[1]){if(9===d){if(!(s=t.getElementById(i)))return n;if(s.id===i)return n.push(s),n}else if(f&&(s=f.getElementById(i))&&y(t,s)&&s.id===i)return n.push(s),n}else{if(u[2])return O.apply(n,t.getElementsByTagName(e)),n;if((i=u[3])&&p.getElementsByClassName&&t.getElementsByClassName)return O.apply(n,t.getElementsByClassName(i)),n}if(p.qsa&&!D[e+" "]&&(!v||!v.test(e))&&(1!==d||"object"!==t.nodeName.toLowerCase())){if(c=e,f=t,1===d&&G.test(e)){for((a=t.getAttribute("id"))?a=a.replace(ie,oe):t.setAttribute("id",a=k),o=(l=h(e)).length;o--;)l[o]="#"+a+" "+me(l[o]);c=l.join(","),f=ne.test(e)&&ge(t.parentNode)||t}try{return O.apply(n,f.querySelectorAll(c)),n}catch(t){D(e,!0)}finally{a===k&&t.removeAttribute("id")}}}return g(e.replace(z,"$1"),t,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[k]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){for(var n=e.split("|"),r=n.length;r--;)b.attrHandle[n[r]]=t}function de(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function pe(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&se(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function he(s){return le(function(o){return o=+o,le(function(e,t){for(var n,r=s([],e.length,o),i=r.length;i--;)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in p=ae.support={},s=ae.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!J.test(t||n&&n.nodeName||"HTML")},T=ae.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:x;return r!==C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!s(C),x!==C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",i,!1):n.attachEvent&&n.attachEvent("onunload",i)),p.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),p.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),p.getElementsByClassName=ee.test(C.getElementsByClassName),p.getById=ce(function(e){return a.appendChild(e).id=k,!C.getElementsByName||!C.getElementsByName(k).length}),p.getById?(b.filter.ID=function(e){var t=e.replace(re,f);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if(void 0!==t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(re,f);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if(void 0!==t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=p.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):p.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[i++];)1===n.nodeType&&r.push(n);return r},b.find.CLASS=p.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&E)return t.getElementsByClassName(e)},c=[],v=[],(p.qsa=ee.test(C.querySelectorAll))&&(ce(function(e){a.appendChild(e).innerHTML="<a id='"+k+"'></a><select id='"+k+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+_+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+_+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+k+"-]").length||v.push("~="),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+k+"+*").length||v.push(".#.+[+~]")}),ce(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+_+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(p.matchesSelector=ee.test(m=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){p.disconnectedMatch=m.call(e,"*"),m.call(e,"[s!='']:x"),c.push("!=",$)}),v=v.length&&new RegExp(v.join("|")),c=c.length&&new RegExp(c.join("|")),t=ee.test(a.compareDocumentPosition),y=t||ee.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},j=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!p.sortDetached&&t.compareDocumentPosition(e)===n?e===C||e.ownerDocument===x&&y(x,e)?-1:t===C||t.ownerDocument===x&&y(x,t)?1:u?H(u,e)-H(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,s=[e],a=[t];if(!i||!o)return e===C?-1:t===C?1:i?-1:o?1:u?H(u,e)-H(u,t):0;if(i===o)return de(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;s[r]===a[r];)r++;return r?de(s[r],a[r]):s[r]===x?-1:a[r]===x?1:0}),C},ae.matches=function(e,t){return ae(e,null,null,t)},ae.matchesSelector=function(e,t){if((e.ownerDocument||e)!==C&&T(e),p.matchesSelector&&E&&!D[t+" "]&&(!c||!c.test(t))&&(!v||!v.test(t)))try{var n=m.call(e,t);if(n||p.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){D(t,!0)}return 0<ae(t,C,null,[e]).length},ae.contains=function(e,t){return(e.ownerDocument||e)!==C&&T(e),y(e,t)},ae.attr=function(e,t){(e.ownerDocument||e)!==C&&T(e);var n=b.attrHandle[t.toLowerCase()],r=n&&P.call(b.attrHandle,t.toLowerCase())?n(e,t,!E):void 0;return void 0!==r?r:p.attributes||!E?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},ae.escape=function(e){return(e+"").replace(ie,oe)},ae.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ae.uniqueSort=function(e){var t,n=[],r=0,i=0;if(l=!p.detectDuplicates,u=!p.sortStable&&e.slice(0),e.sort(j),l){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return u=null,e},o=ae.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=o(t);return n},(b=ae.selectors={cacheLength:50,createPseudo:le,match:Q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(re,f),e[3]=(e[3]||e[4]||e[5]||"").replace(re,f),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ae.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ae.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Q.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&V.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(re,f).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=S[e+" "];return t||(t=new RegExp("(^|"+_+")"+e+"("+_+"|$)"))&&S(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=ae.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace(F," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(h,e,t,g,v){var m="nth"!==h.slice(0,3),y="last"!==h.slice(-4),x="of-type"===e;return 1===g&&0===v?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,s,a,u,l=m!=y?"nextSibling":"previousSibling",c=e.parentNode,f=x&&e.nodeName.toLowerCase(),d=!n&&!x,p=!1;if(c){if(m){for(;l;){for(s=e;s=s[l];)if(x?s.nodeName.toLowerCase()===f:1===s.nodeType)return!1;u=l="only"===h&&!u&&"nextSibling"}return!0}if(u=[y?c.firstChild:c.lastChild],y&&d){for(p=(a=(r=(i=(o=(s=c)[k]||(s[k]={}))[s.uniqueID]||(o[s.uniqueID]={}))[h]||[])[0]===N&&r[1])&&r[2],s=a&&c.childNodes[a];s=++a&&s&&s[l]||(p=a=0)||u.pop();)if(1===s.nodeType&&++p&&s===e){i[h]=[N,a,p];break}}else if(d&&(p=a=(r=(i=(o=(s=e)[k]||(s[k]={}))[s.uniqueID]||(o[s.uniqueID]={}))[h]||[])[0]===N&&r[1]),!1===p)for(;(s=++a&&s&&s[l]||(p=a=0)||u.pop())&&((x?s.nodeName.toLowerCase()!==f:1!==s.nodeType)||!++p||(d&&((i=(o=s[k]||(s[k]={}))[s.uniqueID]||(o[s.uniqueID]={}))[h]=[N,p]),s!==e)););return(p-=v)===g||p%g==0&&0<=p/g}}},PSEUDO:function(e,o){var t,s=b.pseudos[e]||b.setFilters[e.toLowerCase()]||ae.error("unsupported pseudo: "+e);return s[k]?s(o):1<s.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?le(function(e,t){for(var n,r=s(e,o),i=r.length;i--;)e[n=H(e,r[i])]=!(t[n]=r[i])}):function(e){return s(e,0,t)}):s}},pseudos:{not:le(function(e){var r=[],i=[],a=d(e.replace(z,"$1"));return a[k]?le(function(e,t,n,r){for(var i,o=a(e,null,r,[]),s=e.length;s--;)(i=o[s])&&(e[s]=!(t[s]=i))}):function(e,t,n){return r[0]=e,a(r,null,n,i),r[0]=null,!i.pop()}}),has:le(function(t){return function(e){return 0<ae(t,e).length}}),contains:le(function(t){return t=t.replace(re,f),function(e){return-1<(e.textContent||o(e)).indexOf(t)}}),lang:le(function(n){return Y.test(n||"")||ae.error("unsupported lang: "+n),n=n.replace(re,f).toLowerCase(),function(e){var t;do{if(t=E?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===a},focus:function(e){return e===C.activeElement&&(!C.hasFocus||C.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:pe(!1),disabled:pe(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return Z.test(e.nodeName)},input:function(e){return K.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:he(function(){return[0]}),last:he(function(e,t){return[t-1]}),eq:he(function(e,t,n){return[n<0?n+t:n]}),even:he(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:he(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:he(function(e,t,n){for(var r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:he(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(e);function ve(){}function me(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function ye(a,e,t){var u=e.dir,l=e.next,c=l||u,f=t&&"parentNode"===c,d=r++;return e.first?function(e,t,n){for(;e=e[u];)if(1===e.nodeType||f)return a(e,t,n);return!1}:function(e,t,n){var r,i,o,s=[N,d];if(n){for(;e=e[u];)if((1===e.nodeType||f)&&a(e,t,n))return!0}else for(;e=e[u];)if(1===e.nodeType||f)if(i=(o=e[k]||(e[k]={}))[e.uniqueID]||(o[e.uniqueID]={}),l&&l===e.nodeName.toLowerCase())e=e[u]||e;else{if((r=i[c])&&r[0]===N&&r[1]===d)return s[2]=r[2];if((i[c]=s)[2]=a(e,t,n))return!0}return!1}}function xe(i){return 1<i.length?function(e,t,n){for(var r=i.length;r--;)if(!i[r](e,t,n))return!1;return!0}:i[0]}function be(e,t,n,r,i){for(var o,s=[],a=0,u=e.length,l=null!=t;a<u;a++)(o=e[a])&&(n&&!n(o,r,i)||(s.push(o),l&&t.push(a)));return s}function we(e){for(var i,t,n,r=e.length,o=b.relative[e[0].type],s=o||b.relative[" "],a=o?1:0,u=ye(function(e){return e===i},s,!0),l=ye(function(e){return-1<H(i,e)},s,!0),c=[function(e,t,n){var r=!o&&(n||t!==w)||((i=t).nodeType?u:l)(e,t,n);return i=null,r}];a<r;a++)if(t=b.relative[e[a].type])c=[ye(xe(c),t)];else{if((t=b.filter[e[a].type].apply(null,e[a].matches))[k]){for(n=++a;n<r&&!b.relative[e[n].type];n++);return function e(p,h,g,v,m,t){return v&&!v[k]&&(v=e(v)),m&&!m[k]&&(m=e(m,t)),le(function(e,t,n,r){var i,o,s,a=[],u=[],l=t.length,c=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)ae(e,t[r],n);return n}(h||"*",n.nodeType?[n]:n,[]),f=!p||!e&&h?c:be(c,a,p,n,r),d=g?m||(e?p:l||v)?[]:t:f;if(g&&g(f,d,n,r),v)for(i=be(d,u),v(i,[],n,r),o=i.length;o--;)(s=i[o])&&(d[u[o]]=!(f[u[o]]=s));if(e){if(m||p){if(m){for(i=[],o=d.length;o--;)(s=d[o])&&i.push(f[o]=s);m(null,d=[],i,r)}for(o=d.length;o--;)(s=d[o])&&-1<(i=m?H(e,s):a[o])&&(e[i]=!(t[i]=s))}}else d=be(d===t?d.splice(l,d.length):d),m?m(null,t,d,r):O.apply(t,d)})}(1<a&&xe(c),1<a&&me(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(z,"$1"),t,a<n&&we(e.slice(a,n)),n<r&&we(e=e.slice(n)),n<r&&me(e))}c.push(t)}return xe(c)}return ve.prototype=b.filters=b.pseudos,b.setFilters=new ve,h=ae.tokenize=function(e,t){var n,r,i,o,s,a,u,l=A[e+" "];if(l)return t?0:l.slice(0);for(s=e,a=[],u=b.preFilter;s;){for(o in n&&!(r=X.exec(s))||(r&&(s=s.slice(r[0].length)||s),a.push(i=[])),n=!1,(r=U.exec(s))&&(n=r.shift(),i.push({value:n,type:r[0].replace(z," ")}),s=s.slice(n.length)),b.filter)!(r=Q[o].exec(s))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?ae.error(e):A(e,a).slice(0)},d=ae.compile=function(e,t){var n,v,m,y,x,r,i=[],o=[],s=L[e+" "];if(!s){for(n=(t=t||h(e)).length;n--;)(s=we(t[n]))[k]?i.push(s):o.push(s);(s=L(e,(v=o,y=0<(m=i).length,x=0<v.length,r=function(e,t,n,r,i){var o,s,a,u=0,l="0",c=e&&[],f=[],d=w,p=e||x&&b.find.TAG("*",i),h=N+=null==d?1:Math.random()||.1,g=p.length;for(i&&(w=t===C||t||i);l!==g&&null!=(o=p[l]);l++){if(x&&o){for(s=0,t||o.ownerDocument===C||(T(o),n=!E);a=v[s++];)if(a(o,t||C,n)){r.push(o);break}i&&(N=h)}y&&((o=!a&&o)&&u--,e&&c.push(o))}if(u+=l,y&&l!==u){for(s=0;a=m[s++];)a(c,f,t,n);if(e){if(0<u)for(;l--;)c[l]||f[l]||(f[l]=q.call(r));f=be(f)}O.apply(r,f),i&&!e&&0<f.length&&1<u+m.length&&ae.uniqueSort(r)}return i&&(N=h,w=d),c},y?le(r):r))).selector=e}return s},g=ae.select=function(e,t,n,r){var i,o,s,a,u,l="function"==typeof e&&e,c=!r&&h(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(s=o[0]).type&&9===t.nodeType&&E&&b.relative[o[1].type]){if(!(t=(b.find.ID(s.matches[0].replace(re,f),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=Q.needsContext.test(e)?0:o.length;i--&&(s=o[i],!b.relative[a=s.type]);)if((u=b.find[a])&&(r=u(s.matches[0].replace(re,f),ne.test(o[0].type)&&ge(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&me(o)))return O.apply(n,r),n;break}}return(l||d(e,c))(r,t,!E,n,!t||ne.test(e)&&ge(t.parentNode)||t),n},p.sortStable=k.split("").sort(j).join("")===k,p.detectDuplicates=!!l,T(),p.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(C.createElement("fieldset"))}),ce(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||fe("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),p.attributes&&ce(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||fe("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||fe(R,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),ae}(C);k.find=p,k.expr=p.selectors,k.expr[":"]=k.expr.pseudos,k.uniqueSort=k.unique=p.uniqueSort,k.text=p.getText,k.isXMLDoc=p.isXML,k.contains=p.contains,k.escapeSelector=p.escape;function h(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&k(e).is(n))break;r.push(e)}return r}function T(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}var N=k.expr.match.needsContext;function S(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var A=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function L(e,n,r){return x(n)?k.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?k.grep(e,function(e){return e===n!==r}):"string"!=typeof n?k.grep(e,function(e){return-1<i.call(n,e)!==r}):k.filter(n,e,r)}k.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?k.find.matchesSelector(r,e)?[r]:[]:k.find.matches(e,k.grep(t,function(e){return 1===e.nodeType}))},k.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(k(e).filter(function(){for(t=0;t<r;t++)if(k.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)k.find(e,i[t],n);return 1<r?k.uniqueSort(n):n},filter:function(e){return this.pushStack(L(this,e||[],!1))},not:function(e){return this.pushStack(L(this,e||[],!0))},is:function(e){return!!L(this,"string"==typeof e&&N.test(e)?k(e):e||[],!1).length}});var D,j=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||D,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):x(e)?void 0!==n.ready?n.ready(e):e(k):k.makeArray(e,this);if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:j.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),A.test(r[1])&&k.isPlainObject(t))for(r in t)x(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}).prototype=k.fn,D=k(E);var P=/^(?:parents|prev(?:Until|All))/,q={children:!0,contents:!0,next:!0,prev:!0};function I(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(k.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],s="string"!=typeof e&&k(e);if(!N.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?-1<s.index(n):1===n.nodeType&&k.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?k.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?i.call(k(e),this[0]):i.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),k.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return h(e,"parentNode")},parentsUntil:function(e,t,n){return h(e,"parentNode",n)},next:function(e){return I(e,"nextSibling")},prev:function(e){return I(e,"previousSibling")},nextAll:function(e){return h(e,"nextSibling")},prevAll:function(e){return h(e,"previousSibling")},nextUntil:function(e,t,n){return h(e,"nextSibling",n)},prevUntil:function(e,t,n){return h(e,"previousSibling",n)},siblings:function(e){return T((e.parentNode||{}).firstChild,e)},children:function(e){return T(e.firstChild)},contents:function(e){return void 0!==e.contentDocument?e.contentDocument:(S(e,"template")&&(e=e.content||e),k.merge([],e.childNodes))}},function(r,i){k.fn[r]=function(e,t){var n=k.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=k.filter(t,n)),1<this.length&&(q[r]||k.uniqueSort(n),P.test(r)&&n.reverse()),this.pushStack(n)}});var O=/[^\x20\t\r\n\f]+/g;function M(e){return e}function H(e){throw e}function R(e,t,n,r){var i;try{e&&x(i=e.promise)?i.call(e).done(t).fail(n):e&&x(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}k.Callbacks=function(r){var n;r="string"==typeof r?(n={},k.each(r.match(O)||[],function(e,t){n[t]=!0}),n):k.extend({},r);function i(){for(s=s||r.once,t=o=!0;u.length;l=-1)for(e=u.shift();++l<a.length;)!1===a[l].apply(e[0],e[1])&&r.stopOnFalse&&(l=a.length,e=!1);r.memory||(e=!1),o=!1,s&&(a=e?[]:"")}var o,e,t,s,a=[],u=[],l=-1,c={add:function(){return a&&(e&&!o&&(l=a.length-1,u.push(e)),function n(e){k.each(e,function(e,t){x(t)?r.unique&&c.has(t)||a.push(t):t&&t.length&&"string"!==w(t)&&n(t)})}(arguments),e&&!o&&i()),this},remove:function(){return k.each(arguments,function(e,t){for(var n;-1<(n=k.inArray(t,a,n));)a.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<k.inArray(e,a):0<a.length},empty:function(){return a=a&&[],this},disable:function(){return s=u=[],a=e="",this},disabled:function(){return!a},lock:function(){return s=u=[],e||o||(a=e=""),this},locked:function(){return!!s},fireWith:function(e,t){return s||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),o||i()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!t}};return c},k.extend({Deferred:function(e){var o=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],i="pending",s={state:function(){return i},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return s.then(null,e)},pipe:function(){var i=arguments;return k.Deferred(function(r){k.each(o,function(e,t){var n=x(i[t[4]])&&i[t[4]];a[t[1]](function(){var e=n&&n.apply(this,arguments);e&&x(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){var u=0;function l(i,o,s,a){return function(){function e(){var e,t;if(!(i<u)){if((e=s.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,x(t)?a?t.call(e,l(u,o,M,a),l(u,o,H,a)):(u++,t.call(e,l(u,o,M,a),l(u,o,H,a),l(u,o,M,o.notifyWith))):(s!==M&&(n=void 0,r=[e]),(a||o.resolveWith)(n,r))}}var n=this,r=arguments,t=a?e:function(){try{e()}catch(e){k.Deferred.exceptionHook&&k.Deferred.exceptionHook(e,t.stackTrace),u<=i+1&&(s!==H&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(k.Deferred.getStackHook&&(t.stackTrace=k.Deferred.getStackHook()),C.setTimeout(t))}}return k.Deferred(function(e){o[0][3].add(l(0,e,x(r)?r:M,e.notifyWith)),o[1][3].add(l(0,e,x(t)?t:M)),o[2][3].add(l(0,e,x(n)?n:H))}).promise()},promise:function(e){return null!=e?k.extend(e,s):s}},a={};return k.each(o,function(e,t){var n=t[2],r=t[5];s[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),a[t[0]]=function(){return a[t[0]+"With"](this===a?void 0:this,arguments),this},a[t[0]+"With"]=n.fireWith}),s.promise(a),e&&e.call(a,a),a},when:function(e){function t(t){return function(e){i[t]=this,o[t]=1<arguments.length?a.call(arguments):e,--n||s.resolveWith(i,o)}}var n=arguments.length,r=n,i=Array(r),o=a.call(arguments),s=k.Deferred();if(n<=1&&(R(e,s.done(t(r)).resolve,s.reject,!n),"pending"===s.state()||x(o[r]&&o[r].then)))return s.then();for(;r--;)R(o[r],t(r),s.reject);return s.promise()}});var _=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(e,t){C.console&&C.console.warn&&e&&_.test(e.name)&&C.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},k.readyException=function(e){C.setTimeout(function(){throw e})};var B=k.Deferred();function W(){E.removeEventListener("DOMContentLoaded",W),C.removeEventListener("load",W),k.ready()}k.fn.ready=function(e){return B.then(e).catch(function(e){k.readyException(e)}),this},k.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--k.readyWait:k.isReady)||(k.isReady=!0)!==e&&0<--k.readyWait||B.resolveWith(E,[k])}}),k.ready.then=B.then,"complete"===E.readyState||"loading"!==E.readyState&&!E.documentElement.doScroll?C.setTimeout(k.ready):(E.addEventListener("DOMContentLoaded",W),C.addEventListener("load",W));var $=function(e,t,n,r,i,o,s){var a=0,u=e.length,l=null==n;if("object"===w(n))for(a in i=!0,n)$(e,t,a,n[a],!0,o,s);else if(void 0!==r&&(i=!0,x(r)||(s=!0),l&&(t=s?(t.call(e,r),null):(l=t,function(e,t,n){return l.call(k(e),n)})),t))for(;a<u;a++)t(e[a],n,s?r:r.call(e[a],a,t(e[a],n)));return i?e:l?t.call(e):u?t(e[0],n):o},F=/^-ms-/,z=/-([a-z])/g;function X(e,t){return t.toUpperCase()}function U(e){return e.replace(F,"ms-").replace(z,X)}function G(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function V(){this.expando=k.expando+V.uid++}V.uid=1,V.prototype={cache:function(e){var t=e[this.expando];return t||(t={},G(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[U(t)]=n;else for(r in t)i[U(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][U(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(U):(t=U(t))in r?[t]:t.match(O)||[]).length;for(;n--;)delete r[t[n]]}void 0!==t&&!k.isEmptyObject(r)||(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!k.isEmptyObject(t)}};var Y=new V,Q=new V,J=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,K=/[A-Z]/g;function Z(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(K,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:J.test(i)?JSON.parse(i):i)}catch(e){}Q.set(e,t,n)}else n=void 0;return n}k.extend({hasData:function(e){return Q.hasData(e)||Y.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,n){return Y.access(e,t,n)},_removeData:function(e,t){Y.remove(e,t)}}),k.fn.extend({data:function(n,e){var t,r,i,o=this[0],s=o&&o.attributes;if(void 0!==n)return"object"==typeof n?this.each(function(){Q.set(this,n)}):$(this,function(e){var t;return o&&void 0===e?void 0!==(t=Q.get(o,n))||void 0!==(t=Z(o,n))?t:void 0:void this.each(function(){Q.set(this,n,e)})},null,e,1<arguments.length,null,!0);if(this.length&&(i=Q.get(o),1===o.nodeType&&!Y.get(o,"hasDataAttrs"))){for(t=s.length;t--;)s[t]&&0===(r=s[t].name).indexOf("data-")&&(r=U(r.slice(5)),Z(o,r,i[r]));Y.set(o,"hasDataAttrs",!0)}return i},removeData:function(e){return this.each(function(){Q.remove(this,e)})}}),k.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Y.get(e,t),n&&(!r||Array.isArray(n)?r=Y.access(e,t,k.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=k.queue(e,t),r=n.length,i=n.shift(),o=k._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){k.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Y.get(e,n)||Y.access(e,n,{empty:k.Callbacks("once memory").add(function(){Y.remove(e,[t+"queue",n])})})}}),k.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?k.queue(this[0],t):void 0===n?this:this.each(function(){var e=k.queue(this,t,n);k._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&k.dequeue(this,t)})},dequeue:function(e){return this.each(function(){k.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){function n(){--i||o.resolveWith(s,[s])}var r,i=1,o=k.Deferred(),s=this,a=this.length;for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(r=Y.get(s[a],e+"queueHooks"))&&r.empty&&(i++,r.empty.add(n));return n(),o.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ne=["Top","Right","Bottom","Left"],re=E.documentElement,ie=function(e){return k.contains(e.ownerDocument,e)},oe={composed:!0};re.getRootNode&&(ie=function(e){return k.contains(e.ownerDocument,e)||e.getRootNode(oe)===e.ownerDocument});function se(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ie(e)&&"none"===k.css(e,"display")}function ae(e,t,n,r){var i,o,s={};for(o in t)s[o]=e.style[o],e.style[o]=t[o];for(o in i=n.apply(e,r||[]),t)e.style[o]=s[o];return i}function ue(e,t,n,r){var i,o,s=20,a=r?function(){return r.cur()}:function(){return k.css(e,t,"")},u=a(),l=n&&n[3]||(k.cssNumber[t]?"":"px"),c=e.nodeType&&(k.cssNumber[t]||"px"!==l&&+u)&&te.exec(k.css(e,t));if(c&&c[3]!==l){for(u/=2,l=l||c[3],c=+u||1;s--;)k.style(e,t,c+l),(1-o)*(1-(o=a()/u||.5))<=0&&(s=0),c/=o;c*=2,k.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var le={};function ce(e,t){for(var n,r,i,o,s,a,u=[],l=0,c=e.length;l<c;l++)(r=e[l]).style&&(n=r.style.display,t?("none"===n&&(u[l]=Y.get(r,"display")||null,u[l]||(r.style.display="")),""===r.style.display&&se(r)&&(u[l]=(a=o=i=void 0,o=r.ownerDocument,s=r.nodeName,(a=le[s])||(i=o.body.appendChild(o.createElement(s)),a=k.css(i,"display"),i.parentNode.removeChild(i),"none"===a&&(a="block"),le[s]=a)))):"none"!==n&&(u[l]="none",Y.set(r,"display",n)));for(l=0;l<c;l++)null!=u[l]&&(e[l].style.display=u[l]);return e}k.fn.extend({show:function(){return ce(this,!0)},hide:function(){return ce(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){se(this)?k(this).show():k(this).hide()})}});var fe=/^(?:checkbox|radio)$/i,de=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,pe=/^$|^module$|\/(?:java|ecma)script/i,he={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ge(e,t){var n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&S(e,t)?k.merge([e],n):n}function ve(e,t){for(var n=0,r=e.length;n<r;n++)Y.set(e[n],"globalEval",!t||Y.get(t[n],"globalEval"))}he.optgroup=he.option,he.tbody=he.tfoot=he.colgroup=he.caption=he.thead,he.th=he.td;var me,ye,xe=/<|&#?\w+;/;function be(e,t,n,r,i){for(var o,s,a,u,l,c,f=t.createDocumentFragment(),d=[],p=0,h=e.length;p<h;p++)if((o=e[p])||0===o)if("object"===w(o))k.merge(d,o.nodeType?[o]:o);else if(xe.test(o)){for(s=s||f.appendChild(t.createElement("div")),a=(de.exec(o)||["",""])[1].toLowerCase(),u=he[a]||he._default,s.innerHTML=u[1]+k.htmlPrefilter(o)+u[2],c=u[0];c--;)s=s.lastChild;k.merge(d,s.childNodes),(s=f.firstChild).textContent=""}else d.push(t.createTextNode(o));for(f.textContent="",p=0;o=d[p++];)if(r&&-1<k.inArray(o,r))i&&i.push(o);else if(l=ie(o),s=ge(f.appendChild(o),"script"),l&&ve(s),n)for(c=0;o=s[c++];)pe.test(o.type||"")&&n.push(o);return f}me=E.createDocumentFragment().appendChild(E.createElement("div")),(ye=E.createElement("input")).setAttribute("type","radio"),ye.setAttribute("checked","checked"),ye.setAttribute("name","t"),me.appendChild(ye),y.checkClone=me.cloneNode(!0).cloneNode(!0).lastChild.checked,me.innerHTML="<textarea>x</textarea>",y.noCloneChecked=!!me.cloneNode(!0).lastChild.defaultValue;var we=/^key/,Te=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ce=/^([^.]*)(?:\.(.+)|)/;function Ee(){return!0}function ke(){return!1}function Ne(e,t){return e===function(){try{return E.activeElement}catch(e){}}()==("focus"===t)}function Se(e,t,n,r,i,o){var s,a;if("object"==typeof t){for(a in"string"!=typeof n&&(r=r||n,n=void 0),t)Se(e,a,n,r,t[a],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=ke;else if(!i)return e;return 1===o&&(s=i,(i=function(e){return k().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=k.guid++)),e.each(function(){k.event.add(this,t,i,r,n)})}function Ae(e,i,o){o?(Y.set(e,i,!1),k.event.add(e,i,{namespace:!1,handler:function(e){var t,n,r=Y.get(this,i);if(1&e.isTrigger&&this[i]){if(r.length)(k.event.special[i]||{}).delegateType&&e.stopPropagation();else if(r=a.call(arguments),Y.set(this,i,r),t=o(this,i),this[i](),r!==(n=Y.get(this,i))||t?Y.set(this,i,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n.value}else r.length&&(Y.set(this,i,{value:k.event.trigger(k.extend(r[0],k.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Y.get(e,i)&&k.event.add(e,i,Ee)}k.event={global:{},add:function(t,e,n,r,i){var o,s,a,u,l,c,f,d,p,h,g,v=Y.get(t);if(v)for(n.handler&&(n=(o=n).handler,i=o.selector),i&&k.find.matchesSelector(re,i),n.guid||(n.guid=k.guid++),(u=v.events)||(u=v.events={}),(s=v.handle)||(s=v.handle=function(e){return void 0!==k&&k.event.triggered!==e.type?k.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(O)||[""]).length;l--;)p=g=(a=Ce.exec(e[l])||[])[1],h=(a[2]||"").split(".").sort(),p&&(f=k.event.special[p]||{},p=(i?f.delegateType:f.bindType)||p,f=k.event.special[p]||{},c=k.extend({type:p,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&k.expr.match.needsContext.test(i),namespace:h.join(".")},o),(d=u[p])||((d=u[p]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,s)||t.addEventListener&&t.addEventListener(p,s)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,c):d.push(c),k.event.global[p]=!0)},remove:function(e,t,n,r,i){var o,s,a,u,l,c,f,d,p,h,g,v=Y.hasData(e)&&Y.get(e);if(v&&(u=v.events)){for(l=(t=(t||"").match(O)||[""]).length;l--;)if(p=g=(a=Ce.exec(t[l])||[])[1],h=(a[2]||"").split(".").sort(),p){for(f=k.event.special[p]||{},d=u[p=(r?f.delegateType:f.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=d.length;o--;)c=d[o],!i&&g!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(d.splice(o,1),c.selector&&d.delegateCount--,f.remove&&f.remove.call(e,c));s&&!d.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||k.removeEvent(e,p,v.handle),delete u[p])}else for(p in u)k.event.remove(e,p+t[l],n,r,!0);k.isEmptyObject(u)&&Y.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,s,a=k.event.fix(e),u=new Array(arguments.length),l=(Y.get(this,"events")||{})[a.type]||[],c=k.event.special[a.type]||{};for(u[0]=a,t=1;t<arguments.length;t++)u[t]=arguments[t];if(a.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,a)){for(s=k.event.handlers.call(this,a,l),t=0;(i=s[t++])&&!a.isPropagationStopped();)for(a.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!1!==o.namespace&&!a.rnamespace.test(o.namespace)||(a.handleObj=o,a.data=o.data,void 0!==(r=((k.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,u))&&!1===(a.result=r)&&(a.preventDefault(),a.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,a),a.result}},handlers:function(e,t){var n,r,i,o,s,a=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],s={},n=0;n<u;n++)void 0===s[i=(r=t[n]).selector+" "]&&(s[i]=r.needsContext?-1<k(i,this).index(l):k.find(i,this,null,[l]).length),s[i]&&o.push(r);o.length&&a.push({elem:l,handlers:o})}return l=this,u<t.length&&a.push({elem:l,handlers:t.slice(u)}),a},addProp:function(t,e){Object.defineProperty(k.Event.prototype,t,{enumerable:!0,configurable:!0,get:x(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[k.expando]?e:new k.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return fe.test(t.type)&&t.click&&S(t,"input")&&Ae(t,"click",Ee),!1},trigger:function(e){var t=this||e;return fe.test(t.type)&&t.click&&S(t,"input")&&Ae(t,"click"),!0},_default:function(e){var t=e.target;return fe.test(t.type)&&t.click&&S(t,"input")&&Y.get(t,"click")||S(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},k.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},k.Event=function(e,t){if(!(this instanceof k.Event))return new k.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ee:ke,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&k.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[k.expando]=!0},k.Event.prototype={constructor:k.Event,isDefaultPrevented:ke,isPropagationStopped:ke,isImmediatePropagationStopped:ke,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ee,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ee,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ee,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},k.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&we.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Te.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},k.event.addProp),k.each({focus:"focusin",blur:"focusout"},function(e,t){k.event.special[e]={setup:function(){return Ae(this,e,Ne),!1},trigger:function(){return Ae(this,e),!0},delegateType:t}}),k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){k.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||k.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),k.fn.extend({on:function(e,t,n,r){return Se(this,e,t,n,r)},one:function(e,t,n,r){return Se(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,k(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=ke),this.each(function(){k.event.remove(this,e,n,t)});for(i in e)this.off(i,t,e[i]);return this}});var Le=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,De=/<script|<style|<link/i,je=/checked\s*(?:[^=]|=\s*.checked.)/i,Pe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function qe(e,t){return S(e,"table")&&S(11!==t.nodeType?t:t.firstChild,"tr")&&k(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Oe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Me(e,t){var n,r,i,o,s,a,u,l;if(1===t.nodeType){if(Y.hasData(e)&&(o=Y.access(e),s=Y.set(t,o),l=o.events))for(i in delete s.handle,s.events={},l)for(n=0,r=l[i].length;n<r;n++)k.event.add(t,i,l[i][n]);Q.hasData(e)&&(a=Q.access(e),u=k.extend({},a),Q.set(t,u))}}function He(n,r,i,o){r=v.apply([],r);var e,t,s,a,u,l,c=0,f=n.length,d=f-1,p=r[0],h=x(p);if(h||1<f&&"string"==typeof p&&!y.checkClone&&je.test(p))return n.each(function(e){var t=n.eq(e);h&&(r[0]=p.call(this,e,t.html())),He(t,r,i,o)});if(f&&(t=(e=be(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(a=(s=k.map(ge(e,"script"),Ie)).length;c<f;c++)u=e,c!==d&&(u=k.clone(u,!0,!0),a&&k.merge(s,ge(u,"script"))),i.call(n[c],u,c);if(a)for(l=s[s.length-1].ownerDocument,k.map(s,Oe),c=0;c<a;c++)u=s[c],pe.test(u.type||"")&&!Y.access(u,"globalEval")&&k.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?k._evalUrl&&!u.noModule&&k._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")}):b(u.textContent.replace(Pe,""),u,l))}return n}function Re(e,t,n){for(var r,i=t?k.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||k.cleanData(ge(r)),r.parentNode&&(n&&ie(r)&&ve(ge(r,"script")),r.parentNode.removeChild(r));return e}k.extend({htmlPrefilter:function(e){return e.replace(Le,"<$1></$2>")},clone:function(e,t,n){var r,i,o,s,a,u,l,c=e.cloneNode(!0),f=ie(e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||k.isXMLDoc(e)))for(s=ge(c),r=0,i=(o=ge(e)).length;r<i;r++)a=o[r],"input"===(l=(u=s[r]).nodeName.toLowerCase())&&fe.test(a.type)?u.checked=a.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=a.defaultValue);if(t)if(n)for(o=o||ge(e),s=s||ge(c),r=0,i=o.length;r<i;r++)Me(o[r],s[r]);else Me(e,c);return 0<(s=ge(c,"script")).length&&ve(s,!f&&ge(e,"script")),c},cleanData:function(e){for(var t,n,r,i=k.event.special,o=0;void 0!==(n=e[o]);o++)if(G(n)){if(t=n[Y.expando]){if(t.events)for(r in t.events)i[r]?k.event.remove(n,r):k.removeEvent(n,r,t.handle);n[Y.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),k.fn.extend({detach:function(e){return Re(this,e,!0)},remove:function(e){return Re(this,e)},text:function(e){return $(this,function(e){return void 0===e?k.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return He(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||qe(this,e).appendChild(e)})},prepend:function(){return He(this,arguments,function(e){var t;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(t=qe(this,e)).insertBefore(e,t.firstChild)})},before:function(){return He(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return He(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(k.cleanData(ge(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return k.clone(this,e,t)})},html:function(e){return $(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!De.test(e)&&!he[(de.exec(e)||["",""])[1].toLowerCase()]){e=k.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(k.cleanData(ge(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return He(this,arguments,function(e){var t=this.parentNode;k.inArray(this,n)<0&&(k.cleanData(ge(this)),t&&t.replaceChild(e,this))},n)}}),k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,s){k.fn[e]=function(e){for(var t,n=[],r=k(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),k(r[o])[s](t),u.apply(n,t.get());return this.pushStack(n)}});var _e,Be,We,$e,Fe,ze,Xe,Ue=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Ge=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=C),t.getComputedStyle(e)},Ve=new RegExp(ne.join("|"),"i");function Ye(e,t,n){var r,i,o,s,a=e.style;return(n=n||Ge(e))&&(""!==(s=n.getPropertyValue(t)||n[t])||ie(e)||(s=k.style(e,t)),!y.pixelBoxStyles()&&Ue.test(s)&&Ve.test(t)&&(r=a.width,i=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=r,a.minWidth=i,a.maxWidth=o)),void 0!==s?s+"":s}function Qe(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}function Je(){var e;Xe&&(ze.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",Xe.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",re.appendChild(ze).appendChild(Xe),e=C.getComputedStyle(Xe),_e="1%"!==e.top,Fe=12===Ke(e.marginLeft),Xe.style.right="60%",$e=36===Ke(e.right),Be=36===Ke(e.width),Xe.style.position="absolute",We=12===Ke(Xe.offsetWidth/3),re.removeChild(ze),Xe=null)}function Ke(e){return Math.round(parseFloat(e))}ze=E.createElement("div"),(Xe=E.createElement("div")).style&&(Xe.style.backgroundClip="content-box",Xe.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===Xe.style.backgroundClip,k.extend(y,{boxSizingReliable:function(){return Je(),Be},pixelBoxStyles:function(){return Je(),$e},pixelPosition:function(){return Je(),_e},reliableMarginLeft:function(){return Je(),Fe},scrollboxSize:function(){return Je(),We}}));var Ze=["Webkit","Moz","ms"],et=E.createElement("div").style,tt={};function nt(e){return k.cssProps[e]||tt[e]||(e in et?e:tt[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Ze.length;n--;)if((e=Ze[n]+t)in et)return e}(e)||e)}var rt=/^(none|table(?!-c[ea]).+)/,it=/^--/,ot={position:"absolute",visibility:"hidden",display:"block"},st={letterSpacing:"0",fontWeight:"400"};function at(e,t,n){var r=te.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function ut(e,t,n,r,i,o){var s="width"===t?1:0,a=0,u=0;if(n===(r?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(u+=k.css(e,n+ne[s],!0,i)),r?("content"===n&&(u-=k.css(e,"padding"+ne[s],!0,i)),"margin"!==n&&(u-=k.css(e,"border"+ne[s]+"Width",!0,i))):(u+=k.css(e,"padding"+ne[s],!0,i),"padding"!==n?u+=k.css(e,"border"+ne[s]+"Width",!0,i):a+=k.css(e,"border"+ne[s]+"Width",!0,i));return!r&&0<=o&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-a-.5))||0),u}function lt(e,t,n){var r=Ge(e),i=(!y.boxSizingReliable()||n)&&"border-box"===k.css(e,"boxSizing",!1,r),o=i,s=Ye(e,t,r),a="offset"+t[0].toUpperCase()+t.slice(1);if(Ue.test(s)){if(!n)return s;s="auto"}return(!y.boxSizingReliable()&&i||"auto"===s||!parseFloat(s)&&"inline"===k.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===k.css(e,"boxSizing",!1,r),(o=a in e)&&(s=e[a])),(s=parseFloat(s)||0)+ut(e,t,n||(i?"border":"content"),o,r,s)+"px"}function ct(e,t,n,r,i){return new ct.prototype.init(e,t,n,r,i)}k.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ye(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,s,a=U(t),u=it.test(t),l=e.style;if(u||(t=nt(a)),s=k.cssHooks[t]||k.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(i=s.get(e,!1,r))?i:l[t];"string"==(o=typeof n)&&(i=te.exec(n))&&i[1]&&(n=ue(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(k.cssNumber[a]?"":"px")),y.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,s,a=U(t);return it.test(t)||(t=nt(a)),(s=k.cssHooks[t]||k.cssHooks[a])&&"get"in s&&(i=s.get(e,!0,n)),void 0===i&&(i=Ye(e,t,r)),"normal"===i&&t in st&&(i=st[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),k.each(["height","width"],function(e,u){k.cssHooks[u]={get:function(e,t,n){if(t)return!rt.test(k.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?lt(e,u,n):ae(e,ot,function(){return lt(e,u,n)})},set:function(e,t,n){var r,i=Ge(e),o=!y.scrollboxSize()&&"absolute"===i.position,s=(o||n)&&"border-box"===k.css(e,"boxSizing",!1,i),a=n?ut(e,u,n,s,i):0;return s&&o&&(a-=Math.ceil(e["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(i[u])-ut(e,u,"border",!1,i)-.5)),a&&(r=te.exec(t))&&"px"!==(r[3]||"px")&&(e.style[u]=t,t=k.css(e,u)),at(0,t,a)}}}),k.cssHooks.marginLeft=Qe(y.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ye(e,"marginLeft"))||e.getBoundingClientRect().left-ae(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),k.each({margin:"",padding:"",border:"Width"},function(i,o){k.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+ne[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(k.cssHooks[i+o].set=at)}),k.fn.extend({css:function(e,t){return $(this,function(e,t,n){var r,i,o={},s=0;if(Array.isArray(t)){for(r=Ge(e),i=t.length;s<i;s++)o[t[s]]=k.css(e,t[s],!1,r);return o}return void 0!==n?k.style(e,t,n):k.css(e,t)},e,t,1<arguments.length)}}),((k.Tween=ct).prototype={constructor:ct,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||k.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(k.cssNumber[n]?"":"px")},cur:function(){var e=ct.propHooks[this.prop];return e&&e.get?e.get(this):ct.propHooks._default.get(this)},run:function(e){var t,n=ct.propHooks[this.prop];return this.options.duration?this.pos=t=k.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ct.propHooks._default.set(this),this}}).init.prototype=ct.prototype,(ct.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=k.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){k.fx.step[e.prop]?k.fx.step[e.prop](e):1!==e.elem.nodeType||!k.cssHooks[e.prop]&&null==e.elem.style[nt(e.prop)]?e.elem[e.prop]=e.now:k.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=ct.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},k.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},k.fx=ct.prototype.init,k.fx.step={};var ft,dt,pt,ht,gt=/^(?:toggle|show|hide)$/,vt=/queueHooks$/;function mt(){dt&&(!1===E.hidden&&C.requestAnimationFrame?C.requestAnimationFrame(mt):C.setTimeout(mt,k.fx.interval),k.fx.tick())}function yt(){return C.setTimeout(function(){ft=void 0}),ft=Date.now()}function xt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ne[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function bt(e,t,n){for(var r,i=(wt.tweeners[t]||[]).concat(wt.tweeners["*"]),o=0,s=i.length;o<s;o++)if(r=i[o].call(n,t,e))return r}function wt(o,e,t){var n,s,r=0,i=wt.prefilters.length,a=k.Deferred().always(function(){delete u.elem}),u=function(){if(s)return!1;for(var e=ft||yt(),t=Math.max(0,l.startTime+l.duration-e),n=1-(t/l.duration||0),r=0,i=l.tweens.length;r<i;r++)l.tweens[r].run(n);return a.notifyWith(o,[l,n,t]),n<1&&i?t:(i||a.notifyWith(o,[l,1,0]),a.resolveWith(o,[l]),!1)},l=a.promise({elem:o,props:k.extend({},e),opts:k.extend(!0,{specialEasing:{},easing:k.easing._default},t),originalProperties:e,originalOptions:t,startTime:ft||yt(),duration:t.duration,tweens:[],createTween:function(e,t){var n=k.Tween(o,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(s)return this;for(s=!0;t<n;t++)l.tweens[t].run(1);return e?(a.notifyWith(o,[l,1,0]),a.resolveWith(o,[l,e])):a.rejectWith(o,[l,e]),this}}),c=l.props;for(function(e,t){var n,r,i,o,s;for(n in e)if(i=t[r=U(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(s=k.cssHooks[r])&&"expand"in s)for(n in o=s.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);r<i;r++)if(n=wt.prefilters[r].call(l,o,c,l.opts))return x(n.stop)&&(k._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return k.map(c,bt,l),x(l.opts.start)&&l.opts.start.call(o,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),k.fx.timer(k.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l}k.Animation=k.extend(wt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ue(n.elem,e,te.exec(t),n),n}]},tweener:function(e,t){for(var n,r=0,i=(e=x(e)?(t=e,["*"]):e.match(O)).length;r<i;r++)n=e[r],wt.tweeners[n]=wt.tweeners[n]||[],wt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,s,a,u,l,c,f="width"in t||"height"in t,d=this,p={},h=e.style,g=e.nodeType&&se(e),v=Y.get(e,"fxshow");for(r in n.queue||(null==(s=k._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,d.always(function(){d.always(function(){s.unqueued--,k.queue(e,"fx").length||s.empty.fire()})})),t)if(i=t[r],gt.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}p[r]=v&&v[r]||k.style(e,r)}if((u=!k.isEmptyObject(t))||!k.isEmptyObject(p))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=Y.get(e,"display")),"none"===(c=k.css(e,"display"))&&(l?c=l:(ce([e],!0),l=e.style.display||l,c=k.css(e,"display"),ce([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===k.css(e,"float")&&(u||(d.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",d.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,p)u||(v?"hidden"in v&&(g=v.hidden):v=Y.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&ce([e],!0),d.done(function(){for(r in g||ce([e]),Y.remove(e,"fxshow"),p)k.style(e,r,p[r])})),u=bt(g?v[r]:0,r,d),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?wt.prefilters.unshift(e):wt.prefilters.push(e)}}),k.speed=function(e,t,n){var r=e&&"object"==typeof e?k.extend({},e):{complete:n||!n&&t||x(e)&&e,duration:e,easing:n&&t||t&&!x(t)&&t};return k.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in k.fx.speeds?r.duration=k.fx.speeds[r.duration]:r.duration=k.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){x(r.old)&&r.old.call(this),r.queue&&k.dequeue(this,r.queue)},r},k.fn.extend({fadeTo:function(e,t,n,r){return this.filter(se).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){function i(){var e=wt(this,k.extend({},t),s);(o||Y.get(this,"finish"))&&e.stop(!0)}var o=k.isEmptyObject(t),s=k.speed(e,n,r);return i.finish=i,o||!1===s.queue?this.each(i):this.queue(s.queue,i)},stop:function(i,e,o){function s(e){var t=e.stop;delete e.stop,t(o)}return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&!1!==i&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=k.timers,r=Y.get(this);if(t)r[t]&&r[t].stop&&s(r[t]);else for(t in r)r[t]&&r[t].stop&&vt.test(t)&&s(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||k.dequeue(this,i)})},finish:function(s){return!1!==s&&(s=s||"fx"),this.each(function(){var e,t=Y.get(this),n=t[s+"queue"],r=t[s+"queueHooks"],i=k.timers,o=n?n.length:0;for(t.finish=!0,k.queue(this,s,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===s&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),k.each(["toggle","show","hide"],function(e,r){var i=k.fn[r];k.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(xt(r,!0),e,t,n)}}),k.each({slideDown:xt("show"),slideUp:xt("hide"),slideToggle:xt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){k.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),k.timers=[],k.fx.tick=function(){var e,t=0,n=k.timers;for(ft=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||k.fx.stop(),ft=void 0},k.fx.timer=function(e){k.timers.push(e),k.fx.start()},k.fx.interval=13,k.fx.start=function(){dt||(dt=!0,mt())},k.fx.stop=function(){dt=null},k.fx.speeds={slow:600,fast:200,_default:400},k.fn.delay=function(r,e){return r=k.fx&&k.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=C.setTimeout(e,r);t.stop=function(){C.clearTimeout(n)}})},pt=E.createElement("input"),ht=E.createElement("select").appendChild(E.createElement("option")),pt.type="checkbox",y.checkOn=""!==pt.value,y.optSelected=ht.selected,(pt=E.createElement("input")).value="t",pt.type="radio",y.radioValue="t"===pt.value;var Tt,Ct=k.expr.attrHandle;k.fn.extend({attr:function(e,t){return $(this,k.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){k.removeAttr(this,e)})}}),k.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?k.prop(e,t,n):(1===o&&k.isXMLDoc(e)||(i=k.attrHooks[t.toLowerCase()]||(k.expr.match.bool.test(t)?Tt:void 0)),void 0!==n?null===n?void k.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):!(i&&"get"in i&&null!==(r=i.get(e,t)))&&null==(r=k.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!y.radioValue&&"radio"===t&&S(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(O);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),Tt={set:function(e,t,n){return!1===t?k.removeAttr(e,n):e.setAttribute(n,n),n}},k.each(k.expr.match.bool.source.match(/\w+/g),function(e,t){var s=Ct[t]||k.find.attr;Ct[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=Ct[o],Ct[o]=r,r=null!=s(e,t,n)?o:null,Ct[o]=i),r}});var Et=/^(?:input|select|textarea|button)$/i,kt=/^(?:a|area)$/i;function Nt(e){return(e.match(O)||[]).join(" ")}function St(e){return e.getAttribute&&e.getAttribute("class")||""}function At(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(O)||[]}k.fn.extend({prop:function(e,t){return $(this,k.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[k.propFix[e]||e]})}}),k.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&k.isXMLDoc(e)||(t=k.propFix[t]||t,i=k.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=k.find.attr(e,"tabindex");return t?parseInt(t,10):Et.test(e.nodeName)||kt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),y.optSelected||(k.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){k.propFix[this.toLowerCase()]=this}),k.fn.extend({addClass:function(t){var e,n,r,i,o,s,a,u=0;if(x(t))return this.each(function(e){k(this).addClass(t.call(this,e,St(this)))});if((e=At(t)).length)for(;n=this[u++];)if(i=St(n),r=1===n.nodeType&&" "+Nt(i)+" "){for(s=0;o=e[s++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(a=Nt(r))&&n.setAttribute("class",a)}return this},removeClass:function(t){var e,n,r,i,o,s,a,u=0;if(x(t))return this.each(function(e){k(this).removeClass(t.call(this,e,St(this)))});if(!arguments.length)return this.attr("class","");if((e=At(t)).length)for(;n=this[u++];)if(i=St(n),r=1===n.nodeType&&" "+Nt(i)+" "){for(s=0;o=e[s++];)for(;-1<r.indexOf(" "+o+" ");)r=r.replace(" "+o+" "," ");i!==(a=Nt(r))&&n.setAttribute("class",a)}return this},toggleClass:function(i,t){var o=typeof i,s="string"==o||Array.isArray(i);return"boolean"==typeof t&&s?t?this.addClass(i):this.removeClass(i):x(i)?this.each(function(e){k(this).toggleClass(i.call(this,e,St(this),t),t)}):this.each(function(){var e,t,n,r;if(s)for(t=0,n=k(this),r=At(i);e=r[t++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else void 0!==i&&"boolean"!=o||((e=St(this))&&Y.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==i&&Y.get(this,"__className__")||""))})},hasClass:function(e){for(var t,n=0,r=" "+e+" ";t=this[n++];)if(1===t.nodeType&&-1<(" "+Nt(St(t))+" ").indexOf(r))return!0;return!1}});var Lt=/\r/g;k.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=x(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,k(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=k.map(t,function(e){return null==e?"":e+""})),(r=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,t,"value")||(this.value=t))})):t?(r=k.valHooks[t.type]||k.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&void 0!==(e=r.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(Lt,""):null==e?"":e:void 0}}),k.extend({valHooks:{option:{get:function(e){var t=k.find.attr(e,"value");return null!=t?t:Nt(k.text(e))}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type,s=o?null:[],a=o?i+1:r.length,u=i<0?a:o?i:0;u<a;u++)if(((n=r[u]).selected||u===i)&&!n.disabled&&(!n.parentNode.disabled||!S(n.parentNode,"optgroup"))){if(t=k(n).val(),o)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=k.makeArray(t),s=i.length;s--;)((r=i[s]).selected=-1<k.inArray(k.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),k.each(["radio","checkbox"],function(){k.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<k.inArray(k(e).val(),t)}},y.checkOn||(k.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),y.focusin="onfocusin"in C;function Dt(e){e.stopPropagation()}var jt=/^(?:focusinfocus|focusoutblur)$/;k.extend(k.event,{trigger:function(e,t,n,r){var i,o,s,a,u,l,c,f=[n||E],d=m.call(e,"type")?e.type:e,p=m.call(e,"namespace")?e.namespace.split("."):[],h=c=o=n=n||E;if(3!==n.nodeType&&8!==n.nodeType&&!jt.test(d+k.event.triggered)&&(-1<d.indexOf(".")&&(d=(p=d.split(".")).shift(),p.sort()),a=d.indexOf(":")<0&&"on"+d,(e=e[k.expando]?e:new k.Event(d,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=p.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:k.makeArray(t,[e]),l=k.event.special[d]||{},r||!l.trigger||!1!==l.trigger.apply(n,t))){if(!r&&!l.noBubble&&!g(n)){for(s=l.delegateType||d,jt.test(s+d)||(h=h.parentNode);h;h=h.parentNode)f.push(h),o=h;o===(n.ownerDocument||E)&&f.push(o.defaultView||o.parentWindow||C)}for(i=0;(h=f[i++])&&!e.isPropagationStopped();)c=h,e.type=1<i?s:l.bindType||d,(u=(Y.get(h,"events")||{})[e.type]&&Y.get(h,"handle"))&&u.apply(h,t),(u=a&&h[a])&&u.apply&&G(h)&&(e.result=u.apply(h,t),!1===e.result&&e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||l._default&&!1!==l._default.apply(f.pop(),t)||!G(n)||a&&x(n[d])&&!g(n)&&((o=n[a])&&(n[a]=null),k.event.triggered=d,e.isPropagationStopped()&&c.addEventListener(d,Dt),n[d](),e.isPropagationStopped()&&c.removeEventListener(d,Dt),k.event.triggered=void 0,o&&(n[a]=o)),e.result}},simulate:function(e,t,n){var r=k.extend(new k.Event,n,{type:e,isSimulated:!0});k.event.trigger(r,null,t)}}),k.fn.extend({trigger:function(e,t){return this.each(function(){k.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return k.event.trigger(e,t,n,!0)}}),y.focusin||k.each({focus:"focusin",blur:"focusout"},function(n,r){function i(e){k.event.simulate(r,e.target,k.event.fix(e))}k.event.special[r]={setup:function(){var e=this.ownerDocument||this,t=Y.access(e,r);t||e.addEventListener(n,i,!0),Y.access(e,r,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this,t=Y.access(e,r)-1;t?Y.access(e,r,t):(e.removeEventListener(n,i,!0),Y.remove(e,r))}}});var Pt=C.location,qt=Date.now(),It=/\?/;k.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new C.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||k.error("Invalid XML: "+e),t};var Ot=/\[\]$/,Mt=/\r?\n/g,Ht=/^(?:submit|button|image|reset|file)$/i,Rt=/^(?:input|select|textarea|keygen)/i;k.param=function(e,t){function n(e,t){var n=x(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)}var r,i=[];if(null==e)return"";if(Array.isArray(e)||e.jquery&&!k.isPlainObject(e))k.each(e,function(){n(this.name,this.value)});else for(r in e)!function n(r,e,i,o){var t;if(Array.isArray(e))k.each(e,function(e,t){i||Ot.test(r)?o(r,t):n(r+"["+("object"==typeof t&&null!=t?e:"")+"]",t,i,o)});else if(i||"object"!==w(e))o(r,e);else for(t in e)n(r+"["+t+"]",e[t],i,o)}(r,e[r],t,n);return i.join("&")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=k.prop(this,"elements");return e?k.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!k(this).is(":disabled")&&Rt.test(this.nodeName)&&!Ht.test(e)&&(this.checked||!fe.test(e))}).map(function(e,t){var n=k(this).val();return null==n?null:Array.isArray(n)?k.map(n,function(e){return{name:t.name,value:e.replace(Mt,"\r\n")}}):{name:t.name,value:n.replace(Mt,"\r\n")}}).get()}});var _t=/%20/g,Bt=/#.*$/,Wt=/([?&])_=[^&]*/,$t=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ft=/^(?:GET|HEAD)$/,zt=/^\/\//,Xt={},Ut={},Gt="*/".concat("*"),Vt=E.createElement("a");function Yt(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(O)||[];if(x(t))for(;n=i[r++];)"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Qt(t,i,o,s){var a={},u=t===Ut;function l(e){var r;return a[e]=!0,k.each(t[e]||[],function(e,t){var n=t(i,o,s);return"string"!=typeof n||u||a[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),l(n),!1)}),r}return l(i.dataTypes[0])||!a["*"]&&l("*")}function Jt(e,t){var n,r,i=k.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r=r||{})[n]=t[n]);return r&&k.extend(!0,e,r),e}Vt.href=Pt.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Pt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Pt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Gt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Jt(Jt(e,k.ajaxSettings),t):Jt(k.ajaxSettings,e)},ajaxPrefilter:Yt(Xt),ajaxTransport:Yt(Ut),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,f,d,n,p,r,h,g,i,o,v=k.ajaxSetup({},t),m=v.context||v,y=v.context&&(m.nodeType||m.jquery)?k(m):k.event,x=k.Deferred(),b=k.Callbacks("once memory"),w=v.statusCode||{},s={},a={},u="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n)for(n={};t=$t.exec(d);)n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?d:null},setRequestHeader:function(e,t){return null==h&&(e=a[e.toLowerCase()]=a[e.toLowerCase()]||e,s[e]=t),this},overrideMimeType:function(e){return null==h&&(v.mimeType=e),this},statusCode:function(e){var t;if(e)if(h)T.always(e[T.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||u;return c&&c.abort(t),l(0,t),this}};if(x.promise(T),v.url=((e||v.url||Pt.href)+"").replace(zt,Pt.protocol+"//"),v.type=t.method||t.type||v.method||v.type,v.dataTypes=(v.dataType||"*").toLowerCase().match(O)||[""],null==v.crossDomain){r=E.createElement("a");try{r.href=v.url,r.href=r.href,v.crossDomain=Vt.protocol+"//"+Vt.host!=r.protocol+"//"+r.host}catch(e){v.crossDomain=!0}}if(v.data&&v.processData&&"string"!=typeof v.data&&(v.data=k.param(v.data,v.traditional)),Qt(Xt,v,t,T),h)return T;for(i in(g=k.event&&v.global)&&0==k.active++&&k.event.trigger("ajaxStart"),v.type=v.type.toUpperCase(),v.hasContent=!Ft.test(v.type),f=v.url.replace(Bt,""),v.hasContent?v.data&&v.processData&&0===(v.contentType||"").indexOf("application/x-www-form-urlencoded")&&(v.data=v.data.replace(_t,"+")):(o=v.url.slice(f.length),v.data&&(v.processData||"string"==typeof v.data)&&(f+=(It.test(f)?"&":"?")+v.data,delete v.data),!1===v.cache&&(f=f.replace(Wt,"$1"),o=(It.test(f)?"&":"?")+"_="+qt+++o),v.url=f+o),v.ifModified&&(k.lastModified[f]&&T.setRequestHeader("If-Modified-Since",k.lastModified[f]),k.etag[f]&&T.setRequestHeader("If-None-Match",k.etag[f])),(v.data&&v.hasContent&&!1!==v.contentType||t.contentType)&&T.setRequestHeader("Content-Type",v.contentType),T.setRequestHeader("Accept",v.dataTypes[0]&&v.accepts[v.dataTypes[0]]?v.accepts[v.dataTypes[0]]+("*"!==v.dataTypes[0]?", "+Gt+"; q=0.01":""):v.accepts["*"]),v.headers)T.setRequestHeader(i,v.headers[i]);if(v.beforeSend&&(!1===v.beforeSend.call(m,T,v)||h))return T.abort();if(u="abort",b.add(v.complete),T.done(v.success),T.fail(v.error),c=Qt(Ut,v,t,T)){if(T.readyState=1,g&&y.trigger("ajaxSend",[T,v]),h)return T;v.async&&0<v.timeout&&(p=C.setTimeout(function(){T.abort("timeout")},v.timeout));try{h=!1,c.send(s,l)}catch(e){if(h)throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,n,r){var i,o,s,a,u,l=t;h||(h=!0,p&&C.clearTimeout(p),c=void 0,d=r||"",T.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(a=function(e,t,n){for(var r,i,o,s,a=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}s=s||i}o=o||s}if(o)return o!==u[0]&&u.unshift(o),n[o]}(v,T,n)),a=function(e,t,n,r){var i,o,s,a,u,l={},c=e.dataTypes.slice();if(c[1])for(s in e.converters)l[s.toLowerCase()]=e.converters[s];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(s=l[u+" "+o]||l["* "+o]))for(i in l)if((a=i.split(" "))[1]===o&&(s=l[u+" "+a[0]]||l["* "+a[0]])){!0===s?s=l[i]:!0!==l[i]&&(o=a[0],c.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(v,a,T,i),i?(v.ifModified&&((u=T.getResponseHeader("Last-Modified"))&&(k.lastModified[f]=u),(u=T.getResponseHeader("etag"))&&(k.etag[f]=u)),204===e||"HEAD"===v.type?l="nocontent":304===e?l="notmodified":(l=a.state,o=a.data,i=!(s=a.error))):(s=l,!e&&l||(l="error",e<0&&(e=0))),T.status=e,T.statusText=(t||l)+"",i?x.resolveWith(m,[o,l,T]):x.rejectWith(m,[T,l,s]),T.statusCode(w),w=void 0,g&&y.trigger(i?"ajaxSuccess":"ajaxError",[T,v,i?o:s]),b.fireWith(m,[T,l]),g&&(y.trigger("ajaxComplete",[T,v]),--k.active||k.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return k.get(e,t,n,"json")},getScript:function(e,t){return k.get(e,void 0,t,"script")}}),k.each(["get","post"],function(e,i){k[i]=function(e,t,n,r){return x(t)&&(r=r||n,n=t,t=void 0),k.ajax(k.extend({url:e,type:i,dataType:r,data:t,success:n},k.isPlainObject(e)&&e))}}),k._evalUrl=function(e,t){return k.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){k.globalEval(e,t)}})},k.fn.extend({wrapAll:function(e){var t;return this[0]&&(x(e)&&(e=e.call(this[0])),t=k(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return x(n)?this.each(function(e){k(this).wrapInner(n.call(this,e))}):this.each(function(){var e=k(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=x(t);return this.each(function(e){k(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){k(this).replaceWith(this.childNodes)}),this}}),k.expr.pseudos.hidden=function(e){return!k.expr.pseudos.visible(e)},k.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new C.XMLHttpRequest}catch(e){}};var Kt={0:200,1223:204},Zt=k.ajaxSettings.xhr();y.cors=!!Zt&&"withCredentials"in Zt,y.ajax=Zt=!!Zt,k.ajaxTransport(function(i){var o,s;if(y.cors||Zt&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=s=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(Kt[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),s=r.onerror=r.ontimeout=o("error"),void 0!==r.onabort?r.onabort=s:r.onreadystatechange=function(){4===r.readyState&&C.setTimeout(function(){o&&s()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),k.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return k.globalEval(e),e}}}),k.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),k.ajaxTransport("script",function(n){var r,i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=k("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var en,tn=[],nn=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=tn.pop()||k.expando+"_"+qt++;return this[e]=!0,e}}),k.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,s=!1!==e.jsonp&&(nn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=x(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(nn,"$1"+r):!1!==e.jsonp&&(e.url+=(It.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||k.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?k(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,tn.push(r)),o&&x(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((en=E.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===en.childNodes.length),k.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=A.exec(e))?[t.createElement(i[1])]:(i=be([e],t,o),o&&o.length&&k(o).remove(),k.merge([],i.childNodes)));var r,i,o},k.fn.load=function(e,t,n){var r,i,o,s=this,a=e.indexOf(" ");return-1<a&&(r=Nt(e.slice(a)),e=e.slice(0,a)),x(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<s.length&&k.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,s.html(r?k("<div>").append(k.parseHTML(e)).find(r):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){k.fn[t]=function(e){return this.on(t,e)}}),k.expr.pseudos.animated=function(t){return k.grep(k.timers,function(e){return t===e.elem}).length},k.offset={setOffset:function(e,t,n){var r,i,o,s,a,u,l=k.css(e,"position"),c=k(e),f={};"static"===l&&(e.style.position="relative"),a=c.offset(),o=k.css(e,"top"),u=k.css(e,"left"),i=("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(s=(r=c.position()).top,r.left):(s=parseFloat(o)||0,parseFloat(u)||0),x(t)&&(t=t.call(e,n,k.extend({},a))),null!=t.top&&(f.top=t.top-a.top+s),null!=t.left&&(f.left=t.left-a.left+i),"using"in t?t.using.call(e,f):c.css(f)}},k.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){k.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===k.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===k.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=k(e).offset()).top+=k.css(e,"borderTopWidth",!0),i.left+=k.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-k.css(r,"marginTop",!0),left:t.left-i.left-k.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===k.css(e,"position");)e=e.offsetParent;return e||re})}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;k.fn[t]=function(e){return $(this,function(e,t,n){var r;return g(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n?r?r[i]:e[t]:void(r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n)},t,e,arguments.length)}}),k.each(["top","left"],function(e,n){k.cssHooks[n]=Qe(y.pixelPosition,function(e,t){if(t)return t=Ye(e,n),Ue.test(t)?k(e).position()[n]+"px":t})}),k.each({Height:"height",Width:"width"},function(s,a){k.each({padding:"inner"+s,content:a,"":"outer"+s},function(r,o){k.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return $(this,function(e,t,n){var r;return g(e)?0===o.indexOf("outer")?e["inner"+s]:e.document.documentElement["client"+s]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+s],r["scroll"+s],e.body["offset"+s],r["offset"+s],r["client"+s])):void 0===n?k.css(e,t,i):k.style(e,t,n,i)},a,n?e:void 0,n)}})}),k.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){k.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}}),k.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),k.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),k.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),x(e))return r=a.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(a.call(arguments)))}).guid=e.guid=e.guid||k.guid++,i},k.holdReady=function(e){e?k.readyWait++:k.ready(!0)},k.isArray=Array.isArray,k.parseJSON=JSON.parse,k.nodeName=S,k.isFunction=x,k.isWindow=g,k.camelCase=U,k.type=w,k.now=Date.now,k.isNumeric=function(e){var t=k.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},"function"==typeof define&&define.amd&&define("jquery",[],function(){return k});var rn=C.jQuery,on=C.$;k.noConflict=function(e){return C.$===k&&(C.$=on),e&&C.jQuery===k&&(C.jQuery=rn),k},C.jQuery=C.$=k}(window),jQuery.noConflict()),N2Deferred.prototype._doCallbacks=function(){if(0!==this.state)for(;0<this.callbacks.length;)this.callbacks.shift().apply(window,this.args)},N2Deferred.prototype.resolve=function(){this.state=1,this.args=arguments,this._doCallbacks()},N2Deferred.prototype.reject=function(){this.state=-1,this._doCallbacks()},N2Deferred.prototype.then=function(e){this.callbacks.push(e),this._doCallbacks()},N2Deferred.n2When=function(e){var t=e.length,n=new N2Deferred;if(0===t)n.resolve();else{function r(){++i===t&&n.resolve()}for(var i=0,o=0;o<t;o++)e[o]instanceof N2Deferred?e[o].then(r):r()}return n},function(o){"use strict";this.N2Classes={};var s={};this.N2D=function(t,e,n){var r=[];if(t&&s[t]===o&&(s[t]=new N2Deferred),2===arguments.length?(n=arguments[1],e=[]):"string"==typeof e&&(e=[e]),e=e||[],"$"!==t&&e.push("$"),e.length)for(var i=0;i<e.length;i++)s[e[i]]===o&&(s[e[i]]=new N2Deferred),r.push(s[e[i]]);N2Deferred.n2When(r).then(function(){var e;"function"==typeof n?(e=n.apply(N2Classes,[N2Classes.$]))instanceof N2Deferred?e.then(function(e){N2Classes[t]=e,s[t].resolve()}):(N2Classes[t]=e,s[t].resolve()):(N2Classes[t]=!0,s[t].resolve())})};for(var e=0;e<this.N2_.d.length;e++)this.N2D.apply(this,this.N2_.d[e]);this.N2R=function(n,r){var e=[];if(1===arguments.length?(r=arguments[0],n=[]):"string"==typeof n&&(n=[n]),(n=n||[]).push("$"),n)for(var t=0;t<n.length;t++)s[n[t]]===o&&(s[n[t]]=new N2Deferred),e.push(s[n[t]]);N2Deferred.n2When(e).then(function(){for(var e=[N2Classes.$],t=0;t<n.length-1;t++)e.push(N2Classes[n[t]]);r.apply(N2Classes,e)})};for(var t=0;t<this.N2_.r.length;t++)this.N2R.apply(this,this.N2_.r[t])}.call(window),function(){var n=new Date,r=function(){var e,t;window.nextend&&window.jQuery?(e=window.jQuery,N2D("$",function(){return window.n2=e}),N2R("nextend-frontend",function(){e(document).ready(function(){N2D("documentReady")}),"complete"===document.readyState?N2D("windowLoad"):e(window).on("load",function(){N2D("windowLoad")})})):(setTimeout(r,20),1e3<(new Date).getTime()-n.getTime()&&((t=document.createElement("script")).src=window.nextend.jQueryFallback,document.getElementsByTagName("head")[0].appendChild(t)))};r()}(),N2R("$",function(n){var r={};n.each(["Quad","Cubic","Quart","Quint","Expo"],function(t,e){r[e]=function(e){return Math.pow(e,t+2)}}),n.extend(r,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return 0===e||1===e?e:-Math.pow(2,8*(e-1))*Math.sin((80*(e-1)-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){for(var t,n=4;e<((t=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*t-2)/22-e,2)}}),n.each(r,function(e,t){n.easing["easeIn"+e]=t,n.easing["easeOut"+e]=function(e){return 1-t(1-e)},n.easing["easeInOut"+e]=function(e){return e<.5?t(2*e)/2:1-t(-2*e+2)/2}})}),N2Classes.StringHelper={capitalize:function(e){return e.charAt(0).toUpperCase()+e.slice(1)}};var isIpad13="MacIntel"===navigator.platform&&1<navigator.maxTouchPoints;window.n2const={passiveEvents:!1,devicePixelRatio:window.devicePixelRatio||1,isIOS:/iPad|iPhone|iPod/.test(navigator.platform)||isIpad13,isEdge:function(){var e=navigator.userAgent.match(/Edge\/([0-9]+)/);return null!==e&&e[1]}(),isFirefox:-1<navigator.userAgent.toLowerCase().indexOf("firefox"),isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Silk/i.test(navigator.userAgent)||isIpad13,isPhone:/Android/i.test(navigator.userAgent)&&/mobile/i.test(navigator.userAgent)||/webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isIE:function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(0<t)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(0<e.indexOf("Trident/")){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}return!1}(),isSamsungBrowser:navigator.userAgent.match(/SamsungBrowser/i),isBot:/bot|googlebot|crawler|spider|robot|crawling|Google Search Console/i.test(navigator.userAgent),lightboxMobileNewTab:1,isVideoAutoplayAllowed:function(){var e=!!(navigator.platform.match(/(Win|Mac)/)||!/Mobi/.test(navigator.userAgent)||"playsInline"in document.createElement("video")||"webkit-playsinline"in document.createElement("video")||navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./)&&53<=parseInt(navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./)[2])||navigator.userAgent.match(/Android.*(Firefox|Edge|Opera)/));return window.n2const.isVideoAutoplayAllowed=function(){return e},e},isWaybackMachine:function(){var e=void 0!==window.__wm;return window.n2const.isWaybackMachine=function(){return e},e},setLocation:function(e){"function"==typeof window.zajax_goto?window.zajax_goto(e):window.location=e},isParentSameOrigin:function(){try{return parent.document,!0}catch(e){}return!1},activeElementBlur:function(){document.activeElement&&document.activeElement.blur()},getScrollbarSize:function(){var e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),n2const.getScrollbarSize=function(){return t},t}},window.n2const.IOSVersion=function(){if(window.n2const.isIOS){var e=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return e?e[1]:100}return!1}(),window.n2const.isTablet=!window.n2const.isPhone&&(/Android|iPad|tablet|Silk/i.test(navigator.userAgent)||isIpad13);try{var opts=Object.defineProperty({},"passive",{get:function(){window.n2const.passiveEvents=!0}});window.addEventListener("test",null,opts)}catch(e){}window.n2const.rtl=(window.n2const.isRTL=function(){return window.n2const.rtl.isRtl},"rtl"===document.documentElement.getAttribute("dir")?{isRtl:!0,marginLeft:"marginRight",marginRight:"marginLeft",left:"right",right:"left",modifier:-1}:(document.documentElement.setAttribute("dir","ltr"),{isRtl:!1,marginLeft:"marginLeft",marginRight:"marginRight",left:"left",right:"right",modifier:1})),N2R("$",function(e){var t,n;n2const.isRetina=window.matchMedia&&(window.matchMedia("only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx), only screen and (min-resolution: 75.6dpcm)").matches||window.matchMedia("only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (min--moz-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2)").matches)||window.devicePixelRatio&&2<=window.devicePixelRatio,nextend.triggerResize=(t=null,n=e(window),function(){t&&clearTimeout(t),t=setTimeout(function(){n.trigger("resize"),t=null},100)}),nextend.shouldPreventClick=!1,nextend.preventClick=function(){nextend.shouldPreventClick||(nextend.shouldPreventClick=!0,setTimeout(function(){nextend.shouldPreventClick=!1},300))},nextend.marker={markings:{},mark:function(e){void 0!==this.markings[e]&&clearTimeout(this.markings[e]),this.markings[e]=setTimeout(function(){delete nextend.marker.markings[e]},100)},isMarked:function(e){return void 0!==nextend.marker.markings[e]}}}),window.n2FilterProperty=!1;var element=document.createElement("div");void 0!==element.style.webkitFilter?window.n2FilterProperty="webkitFilter":void 0!==element.style.filter&&(window.n2FilterProperty="filter"),N2D("Base64",function(){return N2Classes.Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){var t,n,r,i,o,s,a,u="",l=0;for(e=function(e){e=e.replace(/\r\n/g,"\n");for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t+=String.fromCharCode(r):(127<r&&r<2048?t+=String.fromCharCode(r>>6|192):(t+=String.fromCharCode(r>>12|224),t+=String.fromCharCode(r>>6&63|128)),t+=String.fromCharCode(63&r|128))}return t}(e);l<e.length;)i=(t=e.charCodeAt(l++))>>2,o=(3&t)<<4|(n=e.charCodeAt(l++))>>4,s=(15&n)<<2|(r=e.charCodeAt(l++))>>6,a=63&r,isNaN(n)?s=a=64:isNaN(r)&&(a=64),u=u+this._keyStr.charAt(i)+this._keyStr.charAt(o)+this._keyStr.charAt(s)+this._keyStr.charAt(a);return u},decode:function(e){var t,n,r,i,o,s,a="",u=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");u<e.length;)t=this._keyStr.indexOf(e.charAt(u++))<<2|(i=this._keyStr.indexOf(e.charAt(u++)))>>4,n=(15&i)<<4|(o=this._keyStr.indexOf(e.charAt(u++)))>>2,r=(3&o)<<6|(s=this._keyStr.indexOf(e.charAt(u++))),a+=String.fromCharCode(t),64!=o&&(a+=String.fromCharCode(n)),64!=s&&(a+=String.fromCharCode(r));return a=function(e){for(var t="",n=0,r=c1=c2=0;n<e.length;)(r=e.charCodeAt(n))<128?(t+=String.fromCharCode(r),n++):191<r&&r<224?(c2=e.charCodeAt(n+1),t+=String.fromCharCode((31&r)<<6|63&c2),n+=2):(c2=e.charCodeAt(n+1),c3=e.charCodeAt(n+2),t+=String.fromCharCode((15&r)<<12|(63&c2)<<6|63&c3),n+=3);return t}(a)}},N2Classes.Base64}),N2D("ImagesLoaded",function(o,e){function t(){}var n=t.prototype;n.on=function(e,t){if(e&&t){var n=this._events=this._events||{},r=n[e]=n[e]||[];return-1===r.indexOf(t)&&r.push(t),this}},n.once=function(e,t){if(e&&t){this.on(e,t);var n=this._onceEvents=this._onceEvents||{};return(n[e]=n[e]||{})[t]=!0,this}},n.off=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){var r=n.indexOf(t);return-1!==r&&n.splice(r,1),this}},n.emitEvent=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){n=n.slice(0),t=t||[];for(var r=this._onceEvents&&this._onceEvents[e],i=0;i<n.length;i++){var o=n[i];r&&r[o]&&(this.off(e,o),delete r[o]),o.apply(this,t)}return this}},n.allOff=function(){delete this._events,delete this._onceEvents};var s=window.console;function a(e,t){for(var n in t)e[n]=t[n];return e}var u=Array.prototype.slice;function l(e,t,n){if(!(this instanceof l))return new l(e,t,n);var r,i=e;"string"==typeof e&&(i=document.querySelectorAll(e)),i?(this.elements=(r=i,Array.isArray(r)?r:"object"==typeof r&&"number"==typeof r.length?u.call(r):[r]),this.options=a({},this.options),"function"==typeof t?n=t:a(this.options,t),n&&this.on("always",n),this.getImages(),o&&(this.jqDeferred=new o.Deferred),setTimeout(this.check.bind(this))):s.error("Bad element for imagesLoaded "+(i||e))}(l.prototype=Object.create(t.prototype)).options={},l.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},l.prototype.addElementImages=function(e){"IMG"===e.nodeName&&this.addImage(e),!0===this.options.background&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&c[t]){for(var n=e.querySelectorAll("img"),r=0;r<n.length;r++){var i=n[r];this.addImage(i)}if("string"==typeof this.options.background)for(var o=e.querySelectorAll(this.options.background),r=0;r<o.length;r++){var s=o[r];this.addElementBackgroundImages(s)}}};var c={1:!0,9:!0,11:!0};function r(e){this.img=e}function i(e,t){this.url=e,this.element=t,this.img=new Image}l.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var n=/url\((['"])?(.*?)\1\)/gi,r=n.exec(t.backgroundImage);null!==r;){var i=r&&r[2];i&&this.addBackground(i,e),r=n.exec(t.backgroundImage)}},l.prototype.addImage=function(e){var t=new r(e);this.images.push(t)},l.prototype.addBackground=function(e,t){var n=new i(e,t);this.images.push(n)},l.prototype.check=function(){var r=this;function t(e,t,n){setTimeout(function(){r.progress(e,t,n)})}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach(function(e){e.once("progress",t),e.check()}):this.complete()},l.prototype.progress=function(e,t,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount===this.images.length&&this.complete()},l.prototype.complete=function(){var e,t=this.hasAnyBroken?"fail":"done";this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred&&(e=this.hasAnyBroken?"reject":"resolve",this.jqDeferred[e](this))},(r.prototype=Object.create(t.prototype)).check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},r.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},r.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.img,t])},r.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},r.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},r.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},r.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},(i.prototype=Object.create(r.prototype)).check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},i.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},i.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},o.fn.n2imagesLoaded=function(e,t){return new l(this,e,t).jqDeferred.promise(o(this))}}),N2D("UniversalPointer",function(r,t){var i=!!(window.PointerEvent||window.MSPointerEvent||window.navigator.msPointerEnabled||window.navigator.pointerEnabled),o=!!window.TouchEvent;o&&navigator.userAgent.match(/iPhone|iPad|iPod/i);function s(e,t){this.el=e,this.handler=t,this.$el=r(e).data("universalclick",this),this.preventMouse=!1,this.timeouts=[],this.localListeners=[],this.globalListeners=[]}function n(e,t,n){this.el=e,this.handler=t,this.$el=r(e).data("universalenter",this),this.leaveOnSecond=n,this.preventMouse=!1,this.isActive=!1,this.timeouts=[],this.localListeners=[],this.globalListeners=[]}s.prototype.addTimeout=function(e){this.timeouts.push(e)},s.prototype.clearTimeouts=function(){for(var e=0;e<this.timeouts.length;e++)clearTimeout(this.timeouts[e]);this.timeouts=[]},s.prototype.click=function(e){this.currentTarget!==t&&(e={currentTarget:this.currentTarget,target:this.el}),this.handler.call(this.el,e),this.clear()},s.prototype.clear=function(){for(var e=0;e<this.localListeners.length;e++)this.localListeners[e][0].removeEventListener(this.localListeners[e][1],this.localListeners[e][2],this.localListeners[e][3])},s.prototype.addGlobalEventListener=function(e,t,n){this.globalListeners.push([e,t,n]),this.el.addEventListener(e,t,n)},s.prototype.addLocalEventListener=function(e,t,n,r){this.localListeners.push([e,t,n,r]),e.addEventListener(t,n,r)},s.prototype.remove=function(){this.clear(),this.clearTimeouts();for(var e=0;e<this.globalListeners.length;e++)this.el.removeEventListener(this.globalListeners[e][0],this.globalListeners[e][1],this.globalListeners[e][2])},s.prototype.startComplexInteraction=function(e){this.clearTimeouts(),this.preventMouse=!0,this.currentTarget=e},s.prototype.endComplexInteraction=function(){delete this.currentTarget,this.addTimeout(setTimeout(function(){this.preventMouse=!1}.bind(this),1e3))},r.event.special.universalclick={add:function(e){var n=new s(this,e.handler);n.addGlobalEventListener("click",function(e){n.preventMouse||n.click(e)}),i?n.addGlobalEventListener("pointerdown",function(t){t.isPrimary&&(n.startComplexInteraction(t.currentTarget),n.addLocalEventListener(document.body.parentNode,"pointerup",function(e){e.isPrimary&&t.pointerId===e.pointerId&&(Math.abs(e.clientX-t.clientX)<10&&Math.abs(e.clientY-t.clientY)<10?n.click(e):n.clear(),n.endComplexInteraction())}))}):o&&n.addGlobalEventListener("touchstart",function(t){n.clearTimeouts(),n.startComplexInteraction(t.currentTarget),n.addLocalEventListener(document.body.parentNode,"touchend",function(e){Math.abs(e.changedTouches[0].clientX-t.changedTouches[0].clientX)<10&&Math.abs(e.changedTouches[0].clientY-t.changedTouches[0].clientY)<10?n.click(e):n.clear(),n.endComplexInteraction()},{passive:!0})},{passive:!0})},remove:function(){var e=r(this),t=e.data("universalclick");t&&(t.remove(),e.removeData("universalclick"))}},n.prototype.enter=function(e){return this.leaveOnSecond&&this.isActive?(this.leave(),!1):(this.handler.apply(this.el,arguments),this.isActive=!0)},n.prototype.leave=function(){this.clearTimeouts();for(var e=0;e<this.localListeners.length;e++)this.localListeners[e][0].removeEventListener(this.localListeners[e][1],this.localListeners[e][2],this.localListeners[e][3]);this.isActive=!1,this.$el.triggerHandler("universalleave")},n.prototype.testLeave=function(e){this.$el.is(e)||0!==this.$el.find(e).length||this.leave()},n.prototype.addTimeout=function(e){this.timeouts.push(e)},n.prototype.clearTimeouts=function(){for(var e=0;e<this.timeouts.length;e++)clearTimeout(this.timeouts[e]);this.timeouts=[]},n.prototype.addGlobalEventListener=function(e,t,n){this.globalListeners.push([e,t,n]),this.el.addEventListener(e,t,n)},n.prototype.remove=function(){this.isActive&&this.leave(),this.clearTimeouts();for(var e=0;e<this.globalListeners.length;e++)this.el.removeEventListener(this.globalListeners[e][0],this.globalListeners[e][1],this.globalListeners[e][2])},n.prototype.addLocalEventListener=function(e,t,n,r){this.localListeners.push([e,t,n,r]),e.addEventListener(t,n,r)},r.event.special.universalenter={add:function(e){var t=new n(this,e.handler,!!e.data&&e.data.leaveOnSecond);i?(t.addGlobalEventListener("pointerenter",function(e){e.isPrimary&&(t.clearTimeouts(),t.enter(e)&&"mouse"!==e.pointerType&&(t.addLocalEventListener(document.body.parentNode,"pointerdown",function(e){e.isPrimary&&t.testLeave(e.target)}),t.addTimeout(setTimeout(function(){t.leave()},5e3))))}),t.addGlobalEventListener("pointerleave",function(e){e.isPrimary&&"mouse"===e.pointerType&&t.leave()})):(t.addGlobalEventListener("mouseenter",function(e){t.preventMouse||t.enter(e)}),t.addGlobalEventListener("mouseleave",function(){t.preventMouse||t.leave()}),o&&t.addGlobalEventListener("touchstart",function(e){t.preventMouse=!0,t.clearTimeouts(),t.enter(e)&&(t.addLocalEventListener(document.body.parentNode,"touchstart",function(e){t.testLeave(e.target)}),t.addTimeout(setTimeout(function(){t.leave(),t.preventMouse=!1},5e3)))},{passive:!0}))},remove:function(){var e=r(this),t=e.data("universalenter");t&&(t.remove(),e.removeData("universalenter"))}}}),N2D("EventBurrito",function(C,E){function k(){return!0}var N=!1;return function(e,t){var n={preventDefault:!0,clickTolerance:10,preventScroll:!1,mouse:!0,axis:"x",start:k,move:k,end:k,click:k};t&&function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}(n,t);var r,i,o,s={pointerEvents:!(n2const.isIOS&&window.TouchEvent||!(window.PointerEvent||window.MSPointerEvent||window.navigator.msPointerEnabled||window.navigator.pointerEnabled||window.PointerEventsPolyfill))},a={},u={},l=[],c=!0,f=s.pointerEvents?1:0,d=[["touchstart","touchmove","touchend","touchcancel"],["pointerdown","pointermove","pointerup","pointercancel","pointerleave"],["mousedown","mousemove","mouseup","","mouseleave"]],p=[function(e){return e.touches&&1<e.touches.length||e.scale&&1!==e.scale},function(e){return!e.isPrimary||e.buttons&&1!==e.buttons||!n.mouse&&"touch"!==e.pointerType&&"pen"!==e.pointerType},function(e){return e.buttons&&1!==e.buttons}],h=function(e){var t=e.tagName;return!("INPUT"!=t&&"TEXTAREA"!=t&&"SELECT"!=t&&"BUTTON"!=t&&"VIDEO"!=t&&!C(e).hasClass("n2_container_scrollable")&&!C(e).closest(".n2_container_scrollable").length)};function g(e,t,n,r){if(t)return e.addEventListener?e.addEventListener(t,n,r):e.attachEvent("on"+t,n),{remove:function(){v(e,t,n,r)}}}function v(e,t,n,r){t&&(e.removeEventListener?e.removeEventListener(t,n,r):e.detachEvent("on"+t,n))}function m(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function y(e){u={x:(o?e.clientX:e.touches[0].clientX)-a.x,y:(o?e.clientY:e.touches[0].clientY)-a.y,time:Date.now()}}function x(e,t){e.isPrimary!==E&&!e.isPrimary||N||(c=!0,p[o=t](e)||h(e.target)||(N=!0,0!==o&&g(document,d[o][1],b,{passive:!1,capture:!0}),g(document,d[o][2],T,{passive:!1,capture:!0}),g(document,d[o][3],T,{passive:!1,capture:!0}),g(document.body,d[o][4],w,{passive:!1,capture:!0}),a={x:o?e.clientX:e.touches[0].clientX,y:o?e.clientY:e.touches[0].clientY,time:Date.now()},r=E,i=!1,u={x:0,y:0},n.start(e,a),b(e)))}function b(e){e.isPrimary!==E&&!e.isPrimary||"x"===n.axis&&(!n.preventScroll&&r||p[o](e))||h(e.target)||(y(e),(Math.abs(u.x)>n.clickTolerance||Math.abs(u.y)>n.clickTolerance)&&(c=!1),r===E&&2!==o&&(r=Math.abs(u.x)<Math.abs(u.y)&&!n.preventScroll)||n.move(e,a,u,i)&&n.preventDefault&&m(e))}function w(e){e.target===e.currentTarget&&T(e)}function T(e){e.isPrimary!==E&&!e.isPrimary||(o&&y(e),!c&&e.target&&e.target.blur&&e.target.blur(),0!==o&&v(document,d[o][1],b,{passive:!1,capture:!0}),v(document,d[o][2],T,{passive:!1,capture:!0}),v(document,d[o][3],T,{passive:!1,capture:!0}),v(document.body,d[o][4],w,{passive:!1,capture:!0}),n.end(e,a,u,i),N=i=!1)}return l.push(g(document,"scroll",function(e){window.nextendScrollFocus!==E&&window.nextendScrollFocus||(i=!0)})),1==f&&("y"===n.axis?e.style.touchAction="pan-x":e.style.touchAction="pan-y"),l.push(g(e,d[f][0],function(e){x(e,f)},{passive:!1,capture:!0})),0==f&&l.push(g(e,d[0][1],function(e){b(e)},{passive:!1,capture:!0})),l.push(g(e,"dragstart",m)),n.mouse&&0==f&&l.push(g(e,d[2][0],function(e){x(e,2)})),l.push(g(e,"click",function(e){c?n.click(e):m(e)})),{supportsPointerEvents:s.pointerEvents,getClicksAllowed:function(){return c},kill:function(){for(var e=l.length-1;0<=e;e--)l[e].remove()}}}}),N2D("nextend-frontend"),N2D("n2-j");
// source --> //www.tranghotelbangkok.com/wp-content/plugins/nextend-smart-slider3-pro/Public/SmartSlider3/Application/Frontend/Assets/dist/nextend-gsap.min.js?ver=ff7f6f5b 
(function(){var t=this;t.N2_=t.N2_||{r:[],d:[]},t.N2R=t.N2R||function(){t.N2_.r.push(arguments)},t.N2D=t.N2D||function(){t.N2_.d.push(arguments)}}).call(window),N2D("GSAP",function(t,e){var ne=this;return ne.document=window.document,ne.navigator=window.navigator,ne.console=window.console,ne.SVGElement=window.SVGElement,ne.chrome=window.chrome,ne.getComputedStyle=function(){return window.getComputedStyle.apply(window,arguments)},ne._gsQueue=[],ne._gsQueue.push(function(){"use strict";ne._gsDefine("easing.Back",["easing.Ease"],function(m){function t(t,e){var i=p("easing."+t,function(){},!0),r=i.prototype=new m;return r.constructor=i,r.getRatio=e,i}function e(t,e,i,r,n){var s=p("easing."+t,{easeOut:new e,easeIn:new i,easeInOut:new r},!0);return f(s,t),s}function g(t,e,i){this.t=t,this.v=e,i&&(((this.next=i).prev=this).c=i.v-e,this.gap=i.t-t)}function i(t,e){var i=p("easing."+t,function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1},!0),r=i.prototype=new m;return r.constructor=i,r.getRatio=e,r.config=function(t){return new i(t)},i}var r,n,s,a,o=ne.GreenSockGlobals||ne,l=o.com.greensock,h=2*Math.PI,u=Math.PI/2,p=l._class,f=m.register||function(){},c=e("Back",i("BackOut",function(t){return--t*t*((this._p1+1)*t+this._p1)+1}),i("BackIn",function(t){return t*t*((this._p1+1)*t-this._p1)}),i("BackInOut",function(t){return(t*=2)<1?.5*t*t*((this._p2+1)*t-this._p2):.5*((t-=2)*t*((this._p2+1)*t+this._p2)+2)})),_=p("easing.SlowMo",function(t,e,i){e=e||0===e?e:.7,null==t?t=.7:1<t&&(t=1),this._p=1!==t?e:0,this._p1=(1-t)/2,this._p2=t,this._p3=this._p1+this._p2,this._calcEnd=!0===i},!0),d=_.prototype=new m;return d.constructor=_,d.getRatio=function(t){var e=t+(.5-t)*this._p;return t<this._p1?this._calcEnd?1-(t=1-t/this._p1)*t:e-(t=1-t/this._p1)*t*t*t*e:t>this._p3?this._calcEnd?1===t?0:1-(t=(t-this._p3)/this._p1)*t:e+(t-e)*(t=(t-this._p3)/this._p1)*t*t*t:this._calcEnd?1:e},_.ease=new _(.7,.7),d.config=_.config=function(t,e,i){return new _(t,e,i)},(d=(r=p("easing.SteppedEase",function(t,e){t=t||1,this._p1=1/t,this._p2=t+(e?0:1),this._p3=e?1:0},!0)).prototype=new m).constructor=r,d.getRatio=function(t){return t<0?t=0:1<=t&&(t=.999999999),((this._p2*t|0)+this._p3)*this._p1},d.config=r.config=function(t,e){return new r(t,e)},(d=(n=p("easing.ExpoScaleEase",function(t,e,i){this._p1=Math.log(e/t),this._p2=e-t,this._p3=t,this._ease=i},!0)).prototype=new m).constructor=n,d.getRatio=function(t){return this._ease&&(t=this._ease.getRatio(t)),(this._p3*Math.exp(this._p1*t)-this._p3)/this._p2},d.config=n.config=function(t,e,i){return new n(t,e,i)},(d=(s=p("easing.RoughEase",function(t){for(var e,i,r,n,s,a,o=(t=t||{}).taper||"none",l=[],h=0,u=0|(t.points||20),p=u,f=!1!==t.randomize,c=!0===t.clamp,_=t.template instanceof m?t.template:null,d="number"==typeof t.strength?.4*t.strength:.4;-1<--p;)e=f?Math.random():1/u*p,i=_?_.getRatio(e):e,r="none"===o?d:"out"===o?(n=1-e)*n*d:"in"===o?e*e*d:(n=e<.5?2*e:2*(1-e))*n*.5*d,f?i+=Math.random()*r-.5*r:p%2?i+=.5*r:i-=.5*r,c&&(1<i?i=1:i<0&&(i=0)),l[h++]={x:e,y:i};for(l.sort(function(t,e){return t.x-e.x}),a=new g(1,1,null),p=u;-1<--p;)s=l[p],a=new g(s.x,s.y,a);this._prev=new g(0,0,0!==a.t?a:a.next)},!0)).prototype=new m).constructor=s,d.getRatio=function(t){var e=this._prev;if(t>e.t){for(;e.next&&t>=e.t;)e=e.next;e=e.prev}else for(;e.prev&&t<=e.t;)e=e.prev;return(this._prev=e).v+(t-e.t)/e.gap*e.c},d.config=function(t){return new s(t)},s.ease=new s,e("Bounce",t("BounceOut",function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}),t("BounceIn",function(t){return(t=1-t)<1/2.75?1-7.5625*t*t:t<2/2.75?1-(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)}),t("BounceInOut",function(t){var e=t<.5;return t=(t=e?1-2*t:2*t-1)<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,e?.5*(1-t):.5*t+.5})),e("Circ",t("CircOut",function(t){return Math.sqrt(1- --t*t)}),t("CircIn",function(t){return-(Math.sqrt(1-t*t)-1)}),t("CircInOut",function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)})),e("Elastic",(a=function(t,e,i){var r=p("easing."+t,function(t,e){this._p1=1<=t?t:1,this._p2=(e||i)/(t<1?t:1),this._p3=this._p2/h*(Math.asin(1/this._p1)||0),this._p2=h/this._p2},!0),n=r.prototype=new m;return n.constructor=r,n.getRatio=e,n.config=function(t,e){return new r(t,e)},r})("ElasticOut",function(t){return this._p1*Math.pow(2,-10*t)*Math.sin((t-this._p3)*this._p2)+1},.3),a("ElasticIn",function(t){return-(this._p1*Math.pow(2,10*--t)*Math.sin((t-this._p3)*this._p2))},.3),a("ElasticInOut",function(t){return(t*=2)<1?this._p1*Math.pow(2,10*--t)*Math.sin((t-this._p3)*this._p2)*-.5:this._p1*Math.pow(2,-10*--t)*Math.sin((t-this._p3)*this._p2)*.5+1},.45)),e("Expo",t("ExpoOut",function(t){return 1-Math.pow(2,-10*t)}),t("ExpoIn",function(t){return Math.pow(2,10*(t-1))-.001}),t("ExpoInOut",function(t){return(t*=2)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))})),e("Sine",t("SineOut",function(t){return Math.sin(t*u)}),t("SineIn",function(t){return 1-Math.cos(t*u)}),t("SineInOut",function(t){return-.5*(Math.cos(Math.PI*t)-1)})),p("easing.EaseLookup",{find:function(t){return m.map[t]}},!0),f(o.SlowMo,"SlowMo","ease,"),f(s,"RoughEase","ease,"),f(r,"SteppedEase","ease,"),c},!0)}),ne._gsDefine&&ne._gsQueue.pop()(),ne._gsQueue.push(function(){"use strict";ne._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(s,B){var _,P,O,d,Y=function(){s.call(this,"css"),this._overwriteProps.length=0,this.setRatio=Y.prototype.setRatio},h=ne._gsDefine.globals,m={},t=Y.prototype=new s("css");(t.constructor=Y).version="2.1.3",Y.API=2,Y.defaultTransformPerspective=0,Y.defaultSkewType="compensated",Y.defaultSmoothOrigin=!0,t="px",Y.suffixMap={top:t,right:t,bottom:t,left:t,width:t,height:t,fontSize:t,padding:t,margin:t,perspective:t,lineHeight:""};function a(t,e){return e.toUpperCase()}function o(t,e){var i=et.createElementNS?et.createElementNS(e||"http://www.w3.org/1999/xhtml",t):et.createElement(t);return i.style?i:et.createElement(t)}function l(t){return X.test("string"==typeof t?t:(t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100:1}function g(t){ne.console&&console.log(t)}function S(t,e){var i,r,n=(e=e||it).style;if(void 0!==n[t])return t;for(t=t.charAt(0).toUpperCase()+t.substr(1),i=["O","Moz","ms","Ms","Webkit"],r=5;-1<--r&&void 0===n[i[r]+t];);return 0<=r?(ot="-"+(lt=3===r?"ms":i[r]).toLowerCase()+"-",lt+t):null}function v(t){return ht.getComputedStyle(t)}function y(t,e){var i,r,n,s={};if(e=e||v(t))if(i=e.length)for(;-1<--i;)-1!==(n=e[i]).indexOf("-transform")&&zt!==n||(s[n.replace(W,a)]=e.getPropertyValue(n));else for(i in e)-1!==i.indexOf("Transform")&&Xt!==i||(s[i]=e[i]);else if(e=t.currentStyle||t.style)for(i in e)"string"==typeof i&&void 0===s[i]&&(s[i.replace(W,a)]=e[i]);return at||(s.opacity=l(t)),r=Qt(t,e,!1),s.rotation=r.rotation,s.skewX=r.skewX,s.scaleX=r.scaleX,s.scaleY=r.scaleY,s.x=r.x,s.y=r.y,Yt&&(s.z=r.z,s.rotationX=r.rotationX,s.rotationY=r.rotationY,s.scaleZ=r.scaleZ),s.filters&&delete s.filters,s}function x(t,e,i,r,n){var s,a,o,l={},h=t.style;for(a in i)"cssText"!==a&&"length"!==a&&isNaN(a)&&(e[a]!==(s=i[a])||n&&n[a])&&-1===a.indexOf("Origin")&&("number"==typeof s||"string"==typeof s)&&(l[a]="auto"!==s||"left"!==a&&"top"!==a?""!==s&&"auto"!==s&&"none"!==s||"string"!=typeof e[a]||""===e[a].replace(u,"")?s:0:ft(t,a),void 0!==h[a]&&(o=new wt(h,a,h[a],o)));if(r)for(a in r)"className"!==a&&(l[a]=r[a]);return{difs:l,firstMPT:o}}function C(t,e){return"function"==typeof t&&(t=t(F,N)),"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2)):parseFloat(t)-parseFloat(e)||0}function A(t,e){"function"==typeof t&&(t=t(F,N));var i="string"==typeof t&&"="===t.charAt(1);return"string"==typeof t&&"v"===t.charAt(t.length-2)&&(t=(i?t.substr(0,2):0)+window["inner"+("vh"===t.substr(-2)?"Height":"Width")]*(parseFloat(i?t.substr(2):t)/100)),null==t?e:i?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2))+e:parseFloat(t)||0}function k(t,e,i,r){var n,s,a,o,l;return"function"==typeof t&&(t=t(F,N)),(o=null==t?e:"number"==typeof t?t:(n=360,s=t.split("_"),a=((l="="===t.charAt(1))?parseInt(t.charAt(0)+"1",10)*parseFloat(s[0].substr(2)):parseFloat(s[0]))*(-1===t.indexOf("rad")?1:K)-(l?0:e),s.length&&(r&&(r[i]=e+a),-1!==t.indexOf("short")&&((a%=n)!==a%180&&(a=a<0?a+n:a-n)),-1!==t.indexOf("_cw")&&a<0?a=(a+3599999999640)%n-(a/n|0)*n:-1!==t.indexOf("ccw")&&0<a&&(a=(a-3599999999640)%n-(a/n|0)*n)),e+a))<1e-6&&-1e-6<o&&(o=0),o}function c(t,e,i){return 255*(6*(t=t<0?t+1:1<t?t-1:t)<1?e+(i-e)*t*6:t<.5?i:3*t<2?e+(i-e)*(2/3-t)*6:e)+.5|0}function r(t,e){var i,r,n,s=t.match(vt)||[],a=0,o="";if(!s.length)return t;for(i=0;i<s.length;i++)r=s[i],a+=(n=t.substr(a,t.indexOf(r,a)-a)).length+r.length,3===(r=gt(r,e)).length&&r.push(1),o+=n+(e?"hsla("+r[0]+","+r[1]+"%,"+r[2]+"%,"+r[3]:"rgba("+r.join(","))+")";return o+t.substr(a)}var R,T,w,j,b,M,N,F,e,i,D=/(?:\-|\.|\b)(\d|\.|e\-)+/g,E=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,I=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,n=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b),?/gi,u=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,L=/(?:\d|\-|\+|=|#|\.)*/g,X=/opacity *= *([^)]*)/i,z=/opacity:([^;]*)/i,p=/alpha\(opacity *=.+?\)/i,V=/^(rgb|hsl)/,f=/([A-Z])/g,W=/-([a-z])/gi,G=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,U=/(?:Left|Right|Width)/i,q=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,H=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,Z=/,(?=[^\)]*(?:\(|$))/gi,Q=/[\s,\(]/i,$=Math.PI/180,K=180/Math.PI,J={},tt={style:{}},et=ne.document||{createElement:function(){return tt}},it=o("div"),rt=o("img"),nt=Y._internals={_specialProps:m},st=(ne.navigator||{}).userAgent||"",at=(e=st.indexOf("Android"),i=o("a"),w=-1!==st.indexOf("Safari")&&-1===st.indexOf("Chrome")&&(-1===e||3<parseFloat(st.substr(e+8,2))),b=w&&parseFloat(st.substr(st.indexOf("Version/")+8,2))<6,j=-1!==st.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(st)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(st))&&(M=parseFloat(RegExp.$1)),!!i&&(i.style.cssText="top:1px;opacity:.55;",/^0.55/.test(i.style.opacity))),ot="",lt="",ht="undefined"!=typeof window?window:et.defaultView||{getComputedStyle:function(){}},ut=Y.getStyle=function(t,e,i,r,n){var s;return at||"opacity"!==e?(!r&&t.style[e]?s=t.style[e]:(i=i||v(t))?s=i[e]||i.getPropertyValue(e)||i.getPropertyValue(e.replace(f,"-$1").toLowerCase()):t.currentStyle&&(s=t.currentStyle[e]),null==n||s&&"none"!==s&&"auto"!==s&&"auto auto"!==s?s:n):l(t)},pt=nt.convertToPixels=function(t,e,i,r,n){if("px"===r||!r&&"lineHeight"!==e)return i;if("auto"===r||!i)return 0;var s,a,o,l=U.test(e),h=t,u=it.style,p=i<0,f=1===i;if(p&&(i=-i),f&&(i*=100),"lineHeight"!==e||r)if("%"===r&&-1!==e.indexOf("border"))s=i/100*(l?t.clientWidth:t.clientHeight);else{if(u.cssText="border:0 solid red;position:"+ut(t,"position")+";line-height:0;","%"!==r&&h.appendChild&&"v"!==r.charAt(0)&&"rem"!==r)u[l?"borderLeftWidth":"borderTopWidth"]=i+r;else{if(h=t.parentNode||et.body,-1!==ut(h,"display").indexOf("flex")&&(u.position="absolute"),a=h._gsCache,o=B.ticker.frame,a&&l&&a.time===o)return a.width*i/100;u[l?"width":"height"]=i+r}h.appendChild(it),s=parseFloat(it[l?"offsetWidth":"offsetHeight"]),h.removeChild(it),l&&"%"===r&&!1!==Y.cacheWidths&&((a=h._gsCache=h._gsCache||{}).time=o,a.width=s/i*100),0!==s||n||(s=pt(t,e,i,r,!0))}else a=v(t).lineHeight,t.style.lineHeight=i,s=parseFloat(v(t).lineHeight),t.style.lineHeight=a;return f&&(s/=100),p?-s:s},ft=nt.calculateOffset=function(t,e,i){if("absolute"!==ut(t,"position",i))return 0;var r="left"===e?"Left":"Top",n=ut(t,"margin"+r,i);return t["offset"+r]-(pt(t,e,parseFloat(n),n.replace(L,""))||0)},ct={width:["Left","Right"],height:["Top","Bottom"]},_t=["marginLeft","marginRight","marginTop","marginBottom"],dt=function(t,e){if("contain"===t||"auto"===t||"auto auto"===t)return t+" ";null!=t&&""!==t||(t="0 0");var i,r=t.split(" "),n=-1!==t.indexOf("left")?"0%":-1!==t.indexOf("right")?"100%":r[0],s=-1!==t.indexOf("top")?"0%":-1!==t.indexOf("bottom")?"100%":r[1];if(3<r.length&&!e){for(r=t.split(", ").join(",").split(","),t=[],i=0;i<r.length;i++)t.push(dt(r[i]));return t.join(",")}return null==s?s="center"===n?"50%":"0":"center"===s&&(s="50%"),("center"===n||isNaN(parseFloat(n))&&-1===(n+"").indexOf("="))&&(n="50%"),t=n+" "+s+(2<r.length?" "+r[2]:""),e&&(e.oxp=-1!==n.indexOf("%"),e.oyp=-1!==s.indexOf("%"),e.oxr="="===n.charAt(1),e.oyr="="===s.charAt(1),e.ox=parseFloat(n.replace(u,"")),e.oy=parseFloat(s.replace(u,"")),e.v=t),e||t},mt={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]},gt=Y.parseColor=function(t,e){var i,r,n,s,a,o,l,h,u,p,f;if(t)if("number"==typeof t)i=[t>>16,t>>8&255,255&t];else{if(","===t.charAt(t.length-1)&&(t=t.substr(0,t.length-1)),mt[t])i=mt[t];else if("#"===t.charAt(0))4===t.length&&(t="#"+(r=t.charAt(1))+r+(n=t.charAt(2))+n+(s=t.charAt(3))+s),i=[(t=parseInt(t.substr(1),16))>>16,t>>8&255,255&t];else if("hsl"===t.substr(0,3))if(i=f=t.match(D),e){if(-1!==t.indexOf("="))return t.match(E)}else a=Number(i[0])%360/360,o=Number(i[1])/100,r=2*(l=Number(i[2])/100)-(n=l<=.5?l*(o+1):l+o-l*o),3<i.length&&(i[3]=Number(i[3])),i[0]=c(a+1/3,r,n),i[1]=c(a,r,n),i[2]=c(a-1/3,r,n);else i=t.match(D)||mt.transparent;i[0]=Number(i[0]),i[1]=Number(i[1]),i[2]=Number(i[2]),3<i.length&&(i[3]=Number(i[3]))}else i=mt.black;return e&&!f&&(r=i[0]/255,n=i[1]/255,s=i[2]/255,l=((h=Math.max(r,n,s))+(u=Math.min(r,n,s)))/2,h===u?a=o=0:(p=h-u,o=.5<l?p/(2-h-u):p/(h+u),a=h===r?(n-s)/p+(n<s?6:0):h===n?(s-r)/p+2:(r-n)/p+4,a*=60),i[0]=a+.5|0,i[1]=100*o+.5|0,i[2]=100*l+.5|0),i},vt="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(t in mt)vt+="|"+t+"\\b";vt=new RegExp(vt+")","gi"),Y.colorStringFilter=function(t){var e,i=t[0]+" "+t[1];vt.test(i)&&(e=-1!==i.indexOf("hsl(")||-1!==i.indexOf("hsla("),t[0]=r(t[0],e),t[1]=r(t[1],e)),vt.lastIndex=0},B.defaultStringFilter||(B.defaultStringFilter=Y.colorStringFilter);function yt(t,e,s,a){if(null==t)return function(t){return t};var o,l=e?(t.match(vt)||[""])[0]:"",h=t.split(l).join("").match(I)||[],u=t.substr(0,t.indexOf(h[0])),p=")"===t.charAt(t.length-1)?")":"",f=-1!==t.indexOf(" ")?" ":",",c=h.length,_=0<c?h[0].replace(D,""):"";return c?o=e?function(t){var e,i,r,n;if("number"==typeof t)t+=_;else if(a&&Z.test(t)){for(n=t.replace(Z,"|").split("|"),r=0;r<n.length;r++)n[r]=o(n[r]);return n.join(",")}if(e=(t.match(vt)||[l])[0],r=(i=t.split(e).join("").match(I)||[]).length,c>r--)for(;++r<c;)i[r]=s?i[(r-1)/2|0]:h[r];return u+i.join(f)+f+e+p+(-1!==t.indexOf("inset")?" inset":"")}:function(t){var e,i,r;if("number"==typeof t)t+=_;else if(a&&Z.test(t)){for(i=t.replace(Z,"|").split("|"),r=0;r<i.length;r++)i[r]=o(i[r]);return i.join(",")}if(r=(e=t.match(","==f?I:n)||[]).length,c>r--)for(;++r<c;)e[r]=s?e[(r-1)/2|0]:h[r];return(u&&"none"!==t&&t.substr(0,t.indexOf(e[0]))||u)+e.join(f)+p}:function(t){return t}}function xt(h){return h=h.split(","),function(t,e,i,r,n,s,a){var o,l=(e+"").split(" ");for(a={},o=0;o<4;o++)a[h[o]]=l[o]=l[o]||l[(o-1)/2>>0];return r.parse(t,a,n,s)}}function Tt(t,e,i,r,n,s){var a=new bt(t,e,i,r-i,n,-1,s);return a.b=i,a.e=a.xs0=r,a}var wt=(nt._setPluginRatio=function(t){this.plugin.setRatio(t);for(var e,i,r,n,s,a=this.data,o=a.proxy,l=a.firstMPT;l;)e=o[l.v],l.r?e=l.r(e):e<1e-6&&-1e-6<e&&(e=0),l.t[l.p]=e,l=l._next;if(a.autoRotate&&(a.autoRotate.rotation=a.mod?a.mod.call(this._tween,o.rotation,this.t,this._tween):o.rotation),1===t||0===t)for(l=a.firstMPT,s=1===t?"e":"b";l;){if((i=l.t).type){if(1===i.type){for(n=i.xs0+i.s+i.xs1,r=1;r<i.l;r++)n+=i["xn"+r]+i["xs"+(r+1)];i[s]=n}}else i[s]=i.s+i.xs0;l=l._next}},function(t,e,i,r,n){this.t=t,this.p=e,this.v=i,this.r=n,r&&((r._prev=this)._next=r)}),bt=(nt._parseToProxy=function(t,e,i,r,n,s){var a,o,l,h,u,p=r,f={},c={},_=i._transform,d=J;for(i._transform=null,J=e,r=u=i.parse(t,e,r,n),J=d,s&&(i._transform=_,p&&(p._prev=null,p._prev&&(p._prev._next=null)));r&&r!==p;){if(r.type<=1&&(c[o=r.p]=r.s+r.c,f[o]=r.s,s||(h=new wt(r,"s",o,h,r.r),r.c=0),1===r.type))for(a=r.l;0<--a;)l="xn"+a,c[o=r.p+"_"+l]=r.data[l],f[o]=r[l],s||(h=new wt(r,l,o,h,r.rxp[l]));r=r._next}return{proxy:f,end:c,firstMPT:h,pt:u}},nt.CSSPropTween=function(t,e,i,r,n,s,a,o,l,h,u){this.t=t,this.p=e,this.s=i,this.c=r,this.n=a||e,t instanceof bt||d.push(this.n),this.r=!o||"function"==typeof o?o:Math.round,this.type=s||0,l&&(this.pr=l,_=!0),this.b=void 0===h?i:h,this.e=void 0===u?i+r:u,n&&((this._next=n)._prev=this)}),Pt=Y.parseComplex=function(t,e,i,r,n,s,a,o,l,h){i=i||s||"","function"==typeof r&&(r=r(F,N)),a=new bt(t,e,0,0,a,h?2:1,null,!1,o,i,r),r+="",n&&vt.test(r+i)&&(r=[i,r],Y.colorStringFilter(r),i=r[0],r=r[1]);var u,p,f,c,_,d,m,g,v,y,x,T,w,b=i.split(", ").join(",").split(" "),P=r.split(", ").join(",").split(" "),O=b.length,S=!1!==R;for(-1===r.indexOf(",")&&-1===i.indexOf(",")||(P=-1!==(r+i).indexOf("rgb")||-1!==(r+i).indexOf("hsl")?(b=b.join(" ").replace(Z,", ").split(" "),P.join(" ").replace(Z,", ").split(" ")):(b=b.join(" ").split(",").join(", ").split(" "),P.join(" ").split(",").join(", ").split(" ")),O=b.length),O!==P.length&&(O=(b=(s||"").split(" ")).length),a.plugin=l,a.setRatio=h,u=vt.lastIndex=0;u<O;u++)if(c=b[u],_=P[u]+"",(g=parseFloat(c))||0===g)a.appendXtra("",g,C(_,g),_.replace(E,""),S&&-1!==_.indexOf("px")&&Math.round,!0);else if(n&&vt.test(c))T=")"+((T=_.indexOf(")")+1)?_.substr(T):""),w=-1!==_.indexOf("hsl")&&at,y=_,c=gt(c,w),_=gt(_,w),(v=6<c.length+_.length)&&!at&&0===_[3]?(a["xs"+a.l]+=a.l?" transparent":"transparent",a.e=a.e.split(P[u]).join("transparent")):(at||(v=!1),w?a.appendXtra(y.substr(0,y.indexOf("hsl"))+(v?"hsla(":"hsl("),c[0],C(_[0],c[0]),",",!1,!0).appendXtra("",c[1],C(_[1],c[1]),"%,",!1).appendXtra("",c[2],C(_[2],c[2]),v?"%,":"%"+T,!1):a.appendXtra(y.substr(0,y.indexOf("rgb"))+(v?"rgba(":"rgb("),c[0],_[0]-c[0],",",Math.round,!0).appendXtra("",c[1],_[1]-c[1],",",Math.round).appendXtra("",c[2],_[2]-c[2],v?",":T,Math.round),v&&(c=c.length<4?1:c[3],a.appendXtra("",c,(_.length<4?1:_[3])-c,T,!1))),vt.lastIndex=0;else if(d=c.match(D)){if(!(m=_.match(E))||m.length!==d.length)return a;for(p=f=0;p<d.length;p++)x=d[p],y=c.indexOf(x,f),a.appendXtra(c.substr(f,y-f),Number(x),C(m[p],x),"",S&&"px"===c.substr(y+x.length,2)&&Math.round,0===p),f=y+x.length;a["xs"+a.l]+=c.substr(f)}else a["xs"+a.l]+=a.l||a["xs"+a.l]?" "+_:_;if(-1!==r.indexOf("=")&&a.data){for(T=a.xs0+a.data.s,u=1;u<a.l;u++)T+=a["xs"+u]+a.data["xn"+u];a.e=T+a["xs"+u]}return a.l||(a.type=-1,a.xs0=a.e),a.xfirst||a},Ot=9;for((t=bt.prototype).l=t.pr=0;0<--Ot;)t["xn"+Ot]=0,t["xs"+Ot]="";t.xs0="",t._next=t._prev=t.xfirst=t.data=t.plugin=t.setRatio=t.rxp=null,t.appendXtra=function(t,e,i,r,n,s){var a=this,o=a.l;return a["xs"+o]+=s&&(o||a["xs"+o])?" "+t:t||"",i||0===o||a.plugin?(a.l++,a.type=a.setRatio?2:1,a["xs"+a.l]=r||"",0<o?(a.data["xn"+o]=e+i,a.rxp["xn"+o]=n,a["xn"+o]=e,a.plugin||(a.xfirst=new bt(a,"xn"+o,e,i,a.xfirst||a,0,a.n,n,a.pr),a.xfirst.xs0=0)):(a.data={s:e+i},a.rxp={},a.s=e,a.c=i,a.r=n)):a["xs"+o]+=e+(r||""),a};function St(t,e){e=e||{},this.p=e.prefix&&S(t)||t,(m[t]=m[this.p]=this).format=e.formatter||yt(e.defaultValue,e.color,e.collapsible,e.multi),e.parser&&(this.parse=e.parser),this.clrs=e.color,this.multi=e.multi,this.keyword=e.keyword,this.dflt=e.defaultValue,this.allowFunc=e.allowFunc,this.pr=e.priority||0}var Ct=nt._registerComplexSpecialProp=function(t,e,i){"object"!=typeof e&&(e={parser:i});var r,n=t.split(","),s=e.defaultValue;for(i=i||[s],r=0;r<n.length;r++)e.prefix=0===r&&e.prefix,e.defaultValue=i[r]||s,new St(n[r],e)},At=nt._registerPluginProp=function(t){var l;m[t]||(l=t.charAt(0).toUpperCase()+t.substr(1)+"Plugin",Ct(t,{parser:function(t,e,i,r,n,s,a){var o=h.com.greensock.plugins[l];return o?(o._cssRegister(),m[i].parse(t,e,i,r,n,s,a)):(g("Error: "+l+" js file not loaded."),n)}}))};(t=St.prototype).parseComplex=function(t,e,i,r,n,s){var a,o,l,h,u,p,f=this.keyword;if(this.multi&&(Z.test(i)||Z.test(e)?(o=e.replace(Z,"|").split("|"),l=i.replace(Z,"|").split("|")):f&&(o=[e],l=[i])),l){for(h=l.length>o.length?l.length:o.length,a=0;a<h;a++)e=o[a]=o[a]||this.dflt,i=l[a]=l[a]||this.dflt,f&&((u=e.indexOf(f))!==(p=i.indexOf(f))&&(-1===p?o[a]=o[a].split(f).join(""):-1===u&&(o[a]+=" "+f)));e=o.join(", "),i=l.join(", ")}return Pt(t,this.p,e,i,this.clrs,this.dflt,r,this.pr,n,s)},t.parse=function(t,e,i,r,n,s,a){return this.parseComplex(t.style,this.format(ut(t,this.p,O,!1,this.dflt)),this.format(e),n,s)},Y.registerSpecialProp=function(t,l,h){Ct(t,{parser:function(t,e,i,r,n,s,a){var o=new bt(t,i,0,0,n,2,i,!1,h);return o.plugin=s,o.setRatio=l(t,e,r._tween,i),o},priority:h})},Y.useSVGTransformAttr=!0;function kt(t,e,i){var r,n=et.createElementNS("http://www.w3.org/2000/svg",t),s=/([a-z])([A-Z])/g;for(r in i)n.setAttributeNS(null,r.replace(s,"$1-$2").toLowerCase(),i[r]);return e.appendChild(n),n}function Rt(t,e,i,r,n,s){var a,o,l,h,u,p,f,c,_,d,m,g,v,y,x=t._gsTransform,T=Zt(t,!0);x&&(v=x.xOrigin,y=x.yOrigin),(!r||(a=r.split(" ")).length<2)&&(0===(f=t.getBBox()).x&&0===f.y&&f.width+f.height===0&&(f={x:parseFloat(t.hasAttribute("x")?t.getAttribute("x"):t.hasAttribute("cx")?t.getAttribute("cx"):0)||0,y:parseFloat(t.hasAttribute("y")?t.getAttribute("y"):t.hasAttribute("cy")?t.getAttribute("cy"):0)||0,width:0,height:0}),a=[(-1!==(e=dt(e).split(" "))[0].indexOf("%")?parseFloat(e[0])/100*f.width:parseFloat(e[0]))+f.x,(-1!==e[1].indexOf("%")?parseFloat(e[1])/100*f.height:parseFloat(e[1]))+f.y]),i.xOrigin=h=parseFloat(a[0]),i.yOrigin=u=parseFloat(a[1]),r&&T!==Ht&&(p=T[0],f=T[1],c=T[2],_=T[3],d=T[4],m=T[5],(g=p*_-f*c)&&(o=h*(_/g)+u*(-c/g)+(c*m-_*d)/g,l=h*(-f/g)+u*(p/g)-(p*m-f*d)/g,h=i.xOrigin=a[0]=o,u=i.yOrigin=a[1]=l)),x&&(s&&(i.xOffset=x.xOffset,i.yOffset=x.yOffset,x=i),n||!1!==n&&!1!==Y.defaultSmoothOrigin?(o=h-v,l=u-y,x.xOffset+=o*T[0]+l*T[2]-o,x.yOffset+=o*T[1]+l*T[3]-l):x.xOffset=x.yOffset=0),s||t.setAttribute("data-svg-origin",a.join(" "))}function Mt(t){var e,i,r=this.data,n=-r.rotation*$,s=n+r.skewX*$,a=1e5,o=(Math.cos(n)*r.scaleX*a|0)/a,l=(Math.sin(n)*r.scaleX*a|0)/a,h=(Math.sin(s)*-r.scaleY*a|0)/a,u=(Math.cos(s)*r.scaleY*a|0)/a,p=this.t.style,f=this.t.currentStyle;if(f){i=l,l=-h,h=-i,e=f.filter,p.filter="";var c=this.t.offsetWidth,_=this.t.offsetHeight,d="absolute"!==f.position,m="progid:DXImageTransform.Microsoft.Matrix(M11="+o+", M12="+l+", M21="+h+", M22="+u,g=r.x+c*r.xPercent/100,v=r.y+_*r.yPercent/100;if(null!=r.ox&&(g+=(b=(r.oxp?c*r.ox*.01:r.ox)-c/2)-(b*o+(P=(r.oyp?_*r.oy*.01:r.oy)-_/2)*l),v+=P-(b*h+P*u)),d?m+=", Dx="+((b=c/2)-(b*o+(P=_/2)*l)+g)+", Dy="+(P-(b*h+P*u)+v)+")":m+=", sizingMethod='auto expand')",-1!==e.indexOf("DXImageTransform.Microsoft.Matrix(")?p.filter=e.replace(H,m):p.filter=m+" "+e,0!==t&&1!==t||1!=o||0!=l||0!=h||1!=u||(d&&-1===m.indexOf("Dx=0, Dy=0")||X.test(e)&&100!==parseFloat(RegExp.$1)||-1===e.indexOf(e.indexOf("Alpha"))&&p.removeAttribute("filter")),!d){var y,x,T,w=M<8?1:-1,b=r.ieOffsetX||0,P=r.ieOffsetY||0;for(r.ieOffsetX=Math.round((c-((o<0?-o:o)*c+(l<0?-l:l)*_))/2+g),r.ieOffsetY=Math.round((_-((u<0?-u:u)*_+(h<0?-h:h)*c))/2+v),Ot=0;Ot<4;Ot++)T=(i=-1!==(y=f[x=_t[Ot]]).indexOf("px")?parseFloat(y):pt(this.t,x,parseFloat(y),y.replace(L,""))||0)!==r[x]?Ot<2?-r.ieOffsetX:-r.ieOffsetY:Ot<2?b-r.ieOffsetX:P-r.ieOffsetY,p[x]=(r[x]=Math.round(i-T*(0===Ot||2===Ot?1:w)))+"px"}}}var Nt,Ft,Dt,Et,It,Lt="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),Xt=S("transform"),zt=ot+"transform",Bt=S("transformOrigin"),Yt=null!==S("perspective"),jt=nt.Transform=function(){this.perspective=parseFloat(Y.defaultTransformPerspective)||0,this.force3D=!(!1===Y.defaultForce3D||!Yt)&&(Y.defaultForce3D||"auto")},Vt=ne.SVGElement,Wt=et.documentElement||{},Gt=(It=M||/Android/i.test(st)&&!ne.chrome,et.createElementNS&&Wt.appendChild&&!It&&(Ft=kt("svg",Wt),Et=(Dt=kt("rect",Ft,{width:100,height:50,x:100})).getBoundingClientRect().width,Dt.style[Bt]="50% 50%",Dt.style[Xt]="scaleX(0.5)",It=Et===Dt.getBoundingClientRect().width&&!(j&&Yt),Wt.removeChild(Ft)),It),Ut=function(t){var e,i=o("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=this.parentNode,n=this.nextSibling,s=this.style.cssText;if(Wt.appendChild(i),i.appendChild(this),this.style.display="block",t)try{e=this.getBBox(),this._originalGetBBox=this.getBBox,this.getBBox=Ut}catch(t){}else this._originalGetBBox&&(e=this._originalGetBBox());return n?r.insertBefore(this,n):r.appendChild(this),Wt.removeChild(i),this.style.cssText=s,e},qt=function(t){return!(!Vt||!t.getCTM||t.parentNode&&!t.ownerSVGElement||!function(e){try{return e.getBBox()}catch(t){return Ut.call(e,!0)}}(t))},Ht=[1,0,0,1,0,0],Zt=function(t,e){var i,r,n,s,a,o,l,h=t._gsTransform||new jt,u=t.style;if(Xt?r=ut(t,zt,null,!0):t.currentStyle&&(r=(r=t.currentStyle.filter.match(q))&&4===r.length?[r[0].substr(4),Number(r[2].substr(4)),Number(r[1].substr(4)),r[3].substr(4),h.x||0,h.y||0].join(","):""),i=!r||"none"===r||"matrix(1, 0, 0, 1, 0, 0)"===r,Xt&&i&&!t.offsetParent&&t!==Wt&&(s=u.display,u.display="block",(l=t.parentNode)&&t.offsetParent||(a=1,o=t.nextSibling,Wt.appendChild(t)),i=!(r=ut(t,zt,null,!0))||"none"===r||"matrix(1, 0, 0, 1, 0, 0)"===r,s?u.display=s:te(u,"display"),a&&(o?l.insertBefore(t,o):l?l.appendChild(t):Wt.removeChild(t))),(h.svg||t.getCTM&&qt(t))&&(i&&-1!==(u[Xt]+"").indexOf("matrix")&&(r=u[Xt],i=0),n=t.getAttribute("transform"),i&&n&&(r="matrix("+(n=t.transform.baseVal.consolidate().matrix).a+","+n.b+","+n.c+","+n.d+","+n.e+","+n.f+")",i=0)),i)return Ht;for(n=(r||"").match(D)||[],Ot=n.length;-1<--Ot;)s=Number(n[Ot]),n[Ot]=(a=s-(s|=0))?(1e5*a+(a<0?-.5:.5)|0)/1e5+s:s;return e&&6<n.length?[n[0],n[1],n[4],n[5],n[12],n[13]]:n},Qt=nt.getTransform=function(t,e,i,r){if(t._gsTransform&&i&&!r)return t._gsTransform;var n,s,a,o,l,h,u,p,f,c,_,d,m,g,v,y,x,T,w,b,P,O,S,C,A,k,R,M,N,F,D,E,I=i&&t._gsTransform||new jt,L=I.scaleX<0,X=Yt&&(parseFloat(ut(t,Bt,e,!1,"0 0 0").split(" ")[2])||I.zOrigin)||0,z=parseFloat(Y.defaultTransformPerspective)||0;if(I.svg=!(!t.getCTM||!qt(t)),I.svg&&(Rt(t,ut(t,Bt,e,!1,"50% 50%")+"",I,t.getAttribute("data-svg-origin")),Nt=Y.useSVGTransformAttr||Gt),(n=Zt(t))!==Ht)for(s in 16===n.length?(d=n[0],m=n[1],g=n[2],v=n[3],y=n[4],x=n[5],T=n[6],w=n[7],b=n[8],P=n[9],O=n[10],S=n[12],C=n[13],A=n[14],k=n[11],R=Math.atan2(T,O),I.zOrigin&&(S=b*(A=-I.zOrigin)-n[12],C=P*A-n[13],A=O*A+I.zOrigin-n[14]),I.rotationX=R*K,R&&(u=y*(c=Math.cos(-R))+b*(_=Math.sin(-R)),p=x*c+P*_,f=T*c+O*_,b=y*-_+b*c,P=x*-_+P*c,O=T*-_+O*c,k=w*-_+k*c,y=u,x=p,T=f),R=Math.atan2(-g,O),I.rotationY=R*K,R&&(p=m*(c=Math.cos(-R))-P*(_=Math.sin(-R)),f=g*c-O*_,P=m*_+P*c,O=g*_+O*c,k=v*_+k*c,d=u=d*c-b*_,m=p,g=f),R=Math.atan2(m,d),I.rotation=R*K,R&&(u=d*(c=Math.cos(R))+m*(_=Math.sin(R)),p=y*c+x*_,f=b*c+P*_,m=m*c-d*_,x=x*c-y*_,P=P*c-b*_,d=u,y=p,b=f),I.rotationX&&359.9<Math.abs(I.rotationX)+Math.abs(I.rotation)&&(I.rotationX=I.rotation=0,I.rotationY=180-I.rotationY),R=Math.atan2(y,x),I.scaleX=(1e5*Math.sqrt(d*d+m*m+g*g)+.5|0)/1e5,I.scaleY=(1e5*Math.sqrt(x*x+T*T)+.5|0)/1e5,I.scaleZ=(1e5*Math.sqrt(b*b+P*P+O*O)+.5|0)/1e5,d/=I.scaleX,y/=I.scaleY,m/=I.scaleX,x/=I.scaleY,2e-5<Math.abs(R)?(I.skewX=R*K,y=0,"simple"!==I.skewType&&(I.scaleY*=1/Math.cos(R))):I.skewX=0,I.perspective=k?1/(k<0?-k:k):0,I.x=S,I.y=C,I.z=A,I.svg&&(I.x-=I.xOrigin-(I.xOrigin*d-I.yOrigin*y),I.y-=I.yOrigin-(I.yOrigin*m-I.xOrigin*x))):Yt&&!r&&n.length&&I.x===n[4]&&I.y===n[5]&&(I.rotationX||I.rotationY)||(N=(M=6<=n.length)?n[0]:1,F=n[1]||0,D=n[2]||0,E=M?n[3]:1,I.x=n[4]||0,I.y=n[5]||0,a=Math.sqrt(N*N+F*F),o=Math.sqrt(E*E+D*D),l=N||F?Math.atan2(F,N)*K:I.rotation||0,h=D||E?Math.atan2(D,E)*K+l:I.skewX||0,I.scaleX=a,I.scaleY=o,I.rotation=l,I.skewX=h,Yt&&(I.rotationX=I.rotationY=I.z=0,I.perspective=z,I.scaleZ=1),I.svg&&(I.x-=I.xOrigin-(I.xOrigin*N+I.yOrigin*D),I.y-=I.yOrigin-(I.xOrigin*F+I.yOrigin*E))),90<Math.abs(I.skewX)&&Math.abs(I.skewX)<270&&(L?(I.scaleX*=-1,I.skewX+=I.rotation<=0?180:-180,I.rotation+=I.rotation<=0?180:-180):(I.scaleY*=-1,I.skewX+=I.skewX<=0?180:-180)),I.zOrigin=X,I)I[s]<2e-5&&-2e-5<I[s]&&(I[s]=0);return i&&((t._gsTransform=I).svg&&(Nt&&t.style[Xt]?B.delayedCall(.001,function(){te(t.style,Xt)}):!Nt&&t.getAttribute("transform")&&B.delayedCall(.001,function(){t.removeAttribute("transform")}))),I},$t=nt.set3DTransformRatio=nt.setTransformRatio=function(t){var e,i,r,n,s,a,o,l,h,u,p,f,c,_,d,m,g,v,y,x,T,w,b,P=this.data,O=this.t.style,S=P.rotation,C=P.rotationX,A=P.rotationY,k=P.scaleX,R=P.scaleY,M=P.scaleZ,N=P.x,F=P.y,D=P.z,E=P.svg,I=P.perspective,L=P.force3D,X=P.skewY,z=P.skewX;if(X&&(z+=X,S+=X),!((1!==t&&0!==t||"auto"!==L||this.tween._totalTime!==this.tween._totalDuration&&this.tween._totalTime)&&L||D||I||A||C||1!==M)||Nt&&E||!Yt)S||z||E?(S*=$,w=z*$,b=1e5,i=Math.cos(S)*k,s=Math.sin(S)*k,r=Math.sin(S-w)*-R,a=Math.cos(S-w)*R,w&&"simple"===P.skewType&&(e=Math.tan(w-X*$),r*=e=Math.sqrt(1+e*e),a*=e,X&&(e=Math.tan(X*$),i*=e=Math.sqrt(1+e*e),s*=e)),E&&(N+=P.xOrigin-(P.xOrigin*i+P.yOrigin*r)+P.xOffset,F+=P.yOrigin-(P.xOrigin*s+P.yOrigin*a)+P.yOffset,Nt&&(P.xPercent||P.yPercent)&&(d=this.t.getBBox(),N+=.01*P.xPercent*d.width,F+=.01*P.yPercent*d.height),N<(d=1e-6)&&-d<N&&(N=0),F<d&&-d<F&&(F=0)),y=(i*b|0)/b+","+(s*b|0)/b+","+(r*b|0)/b+","+(a*b|0)/b+","+N+","+F+")",E&&Nt?this.t.setAttribute("transform","matrix("+y):O[Xt]=(P.xPercent||P.yPercent?"translate("+P.xPercent+"%,"+P.yPercent+"%) matrix(":"matrix(")+y):O[Xt]=(P.xPercent||P.yPercent?"translate("+P.xPercent+"%,"+P.yPercent+"%) matrix(":"matrix(")+k+",0,0,"+R+","+N+","+F+")";else{if(j&&(k<(d=1e-4)&&-d<k&&(k=M=2e-5),R<d&&-d<R&&(R=M=2e-5),!I||P.z||P.rotationX||P.rotationY||(I=0)),S||z)S*=$,m=i=Math.cos(S),g=s=Math.sin(S),z&&(S-=z*$,m=Math.cos(S),g=Math.sin(S),"simple"===P.skewType&&(e=Math.tan((z-X)*$),m*=e=Math.sqrt(1+e*e),g*=e,P.skewY&&(e=Math.tan(X*$),i*=e=Math.sqrt(1+e*e),s*=e))),r=-g,a=m;else{if(!(A||C||1!==M||I||E))return void(O[Xt]=(P.xPercent||P.yPercent?"translate("+P.xPercent+"%,"+P.yPercent+"%) translate3d(":"translate3d(")+N+"px,"+F+"px,"+D+"px)"+(1!==k||1!==R?" scale("+k+","+R+")":""));i=a=1,r=s=0}u=1,n=o=l=h=p=f=0,c=I?-1/I:0,_=P.zOrigin,d=1e-6,x=",",T="0",(S=A*$)&&(m=Math.cos(S),p=c*(l=-(g=Math.sin(S))),n=i*g,o=s*g,c*=u=m,i*=m,s*=m),(S=C*$)&&(e=r*(m=Math.cos(S))+n*(g=Math.sin(S)),v=a*m+o*g,h=u*g,f=c*g,n=r*-g+n*m,o=a*-g+o*m,u*=m,c*=m,r=e,a=v),1!==M&&(n*=M,o*=M,u*=M,c*=M),1!==R&&(r*=R,a*=R,h*=R,f*=R),1!==k&&(i*=k,s*=k,l*=k,p*=k),(_||E)&&(_&&(N+=n*-_,F+=o*-_,D+=u*-_+_),E&&(N+=P.xOrigin-(P.xOrigin*i+P.yOrigin*r)+P.xOffset,F+=P.yOrigin-(P.xOrigin*s+P.yOrigin*a)+P.yOffset),N<d&&-d<N&&(N=T),F<d&&-d<F&&(F=T),D<d&&-d<D&&(D=0)),y=P.xPercent||P.yPercent?"translate("+P.xPercent+"%,"+P.yPercent+"%) matrix3d(":"matrix3d(",y+=(i<d&&-d<i?T:i)+x+(s<d&&-d<s?T:s)+x+(l<d&&-d<l?T:l),y+=x+(p<d&&-d<p?T:p)+x+(r<d&&-d<r?T:r)+x+(a<d&&-d<a?T:a),C||A||1!==M?(y+=x+(h<d&&-d<h?T:h)+x+(f<d&&-d<f?T:f)+x+(n<d&&-d<n?T:n),y+=x+(o<d&&-d<o?T:o)+x+(u<d&&-d<u?T:u)+x+(c<d&&-d<c?T:c)+x):y+=",0,0,0,0,1,0,",y+=N+x+F+x+D+x+(I?1+-D/I:1)+")",O[Xt]=y}};(t=jt.prototype).x=t.y=t.z=t.skewX=t.skewY=t.rotation=t.rotationX=t.rotationY=t.zOrigin=t.xPercent=t.yPercent=t.xOffset=t.yOffset=0,t.scaleX=t.scaleY=t.scaleZ=1,Ct("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(t,e,i,r,n,s,a){if(r._lastParsedTransform===a)return n;var o=(r._lastParsedTransform=a).scale&&"function"==typeof a.scale?a.scale:0;o&&(a.scale=o(F,t));var l,h,u,p,f,c,_,d,m,g=t._gsTransform,v=t.style,y=Lt.length,x=a,T={},w="transformOrigin",b=Qt(t,O,!0,x.parseTransform),P=x.transform&&("function"==typeof x.transform?x.transform(F,N):x.transform);if(b.skewType=x.skewType||b.skewType||Y.defaultSkewType,r._transform=b,"rotationZ"in x&&(x.rotation=x.rotationZ),P&&"string"==typeof P&&Xt)(h=it.style)[Xt]=P,h.display="block",h.position="absolute",-1!==P.indexOf("%")&&(h.width=ut(t,"width"),h.height=ut(t,"height")),et.body.appendChild(it),l=Qt(it,null,!1),"simple"===b.skewType&&(l.scaleY*=Math.cos(l.skewX*$)),b.svg&&(c=b.xOrigin,_=b.yOrigin,l.x-=b.xOffset,l.y-=b.yOffset,(x.transformOrigin||x.svgOrigin)&&(P={},Rt(t,dt(x.transformOrigin),P,x.svgOrigin,x.smoothOrigin,!0),c=P.xOrigin,_=P.yOrigin,l.x-=P.xOffset-b.xOffset,l.y-=P.yOffset-b.yOffset),(c||_)&&(d=Zt(it,!0),l.x-=c-(c*d[0]+_*d[2]),l.y-=_-(c*d[1]+_*d[3]))),et.body.removeChild(it),l.perspective||(l.perspective=b.perspective),null!=x.xPercent&&(l.xPercent=A(x.xPercent,b.xPercent)),null!=x.yPercent&&(l.yPercent=A(x.yPercent,b.yPercent));else if("object"==typeof x){if(l={scaleX:A(null!=x.scaleX?x.scaleX:x.scale,b.scaleX),scaleY:A(null!=x.scaleY?x.scaleY:x.scale,b.scaleY),scaleZ:A(x.scaleZ,b.scaleZ),x:A(x.x,b.x),y:A(x.y,b.y),z:A(x.z,b.z),xPercent:A(x.xPercent,b.xPercent),yPercent:A(x.yPercent,b.yPercent),perspective:A(x.transformPerspective,b.perspective)},null!=(f=x.directionalRotation))if("object"==typeof f)for(h in f)x[h]=f[h];else x.rotation=f;"string"==typeof x.x&&-1!==x.x.indexOf("%")&&(l.x=0,l.xPercent=A(x.x,b.xPercent)),"string"==typeof x.y&&-1!==x.y.indexOf("%")&&(l.y=0,l.yPercent=A(x.y,b.yPercent)),l.rotation=k("rotation"in x?x.rotation:"shortRotation"in x?x.shortRotation+"_short":b.rotation,b.rotation,"rotation",T),Yt&&(l.rotationX=k("rotationX"in x?x.rotationX:"shortRotationX"in x?x.shortRotationX+"_short":b.rotationX||0,b.rotationX,"rotationX",T),l.rotationY=k("rotationY"in x?x.rotationY:"shortRotationY"in x?x.shortRotationY+"_short":b.rotationY||0,b.rotationY,"rotationY",T)),l.skewX=k(x.skewX,b.skewX),l.skewY=k(x.skewY,b.skewY)}for(Yt&&null!=x.force3D&&(b.force3D=x.force3D,p=!0),(u=b.force3D||b.z||b.rotationX||b.rotationY||l.z||l.rotationX||l.rotationY||l.perspective)||null==x.scale||(l.scaleZ=1);-1<--y;)(1e-6<(P=l[m=Lt[y]]-b[m])||P<-1e-6||null!=x[m]||null!=J[m])&&(p=!0,n=new bt(b,m,b[m],P,n),m in T&&(n.e=T[m]),n.xs0=0,n.plugin=s,r._overwriteProps.push(n.n));return P="function"==typeof x.transformOrigin?x.transformOrigin(F,N):x.transformOrigin,b.svg&&(P||x.svgOrigin)&&(c=b.xOffset,_=b.yOffset,Rt(t,dt(P),l,x.svgOrigin,x.smoothOrigin),n=Tt(b,"xOrigin",(g?b:l).xOrigin,l.xOrigin,n,w),n=Tt(b,"yOrigin",(g?b:l).yOrigin,l.yOrigin,n,w),c===b.xOffset&&_===b.yOffset||(n=Tt(b,"xOffset",g?c:b.xOffset,b.xOffset,n,w),n=Tt(b,"yOffset",g?_:b.yOffset,b.yOffset,n,w)),P="0px 0px"),(P||Yt&&u&&b.zOrigin)&&(Xt?(p=!0,m=Bt,P||(P=(P=(ut(t,m,O,!1,"50% 50%")+"").split(" "))[0]+" "+P[1]+" "+b.zOrigin+"px"),P+="",(n=new bt(v,m,0,0,n,-1,w)).b=v[m],n.plugin=s,Yt?(h=b.zOrigin,P=P.split(" "),b.zOrigin=(2<P.length?parseFloat(P[2]):h)||0,n.xs0=n.e=P[0]+" "+(P[1]||"50%")+" 0px",(n=new bt(b,"zOrigin",0,0,n,-1,n.n)).b=h,n.xs0=n.e=b.zOrigin):n.xs0=n.e=P):dt(P+"",b)),p&&(r._transformType=b.svg&&Nt||!u&&3!==this._transformType?2:3),o&&(a.scale=o),n},allowFunc:!0,prefix:!0}),Ct("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),Ct("clipPath",{defaultValue:"inset(0%)",prefix:!0,multi:!0,formatter:yt("inset(0% 0% 0% 0%)",!1,!0)}),Ct("borderRadius",{defaultValue:"0px",parser:function(t,e,i,r,n,s){e=this.format(e);for(var a,o,l,h,u,p,f,c,_,d,m,g,v=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],y=t.style,x=parseFloat(t.offsetWidth),T=parseFloat(t.offsetHeight),w=e.split(" "),b=0;b<v.length;b++)this.p.indexOf("border")&&(v[b]=S(v[b])),-1!==(l=o=ut(t,v[b],O,!1,"0px")).indexOf(" ")&&(l=(o=l.split(" "))[0],o=o[1]),h=a=w[b],u=parseFloat(l),c=l.substr((u+"").length),""===(f=(_="="===h.charAt(1))?(p=parseInt(h.charAt(0)+"1",10),h=h.substr(2),p*=parseFloat(h),h.substr((p+"").length-(p<0?1:0))||""):(p=parseFloat(h),h.substr((p+"").length)))&&(f=P[i]||c),f!==c&&(d=pt(t,"borderLeft",u,c),m=pt(t,"borderTop",u,c),o="%"===f?(l=d/x*100+"%",m/T*100+"%"):"em"===f?(l=d/(g=pt(t,"borderLeft",1,"em"))+"em",m/g+"em"):(l=d+"px",m+"px"),_&&(h=parseFloat(l)+p+f,a=parseFloat(o)+p+f)),n=Pt(y,v[b],l+" "+o,h+" "+a,!1,"0px",n);return n},prefix:!0,formatter:yt("0px 0px 0px 0px",!1,!0)}),Ct("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(t,e,i,r,n,s){return Pt(t.style,i,this.format(ut(t,i,O,!1,"0px 0px")),this.format(e),!1,"0px",n)},prefix:!0,formatter:yt("0px 0px",!1,!0)}),Ct("backgroundPosition",{defaultValue:"0 0",parser:function(t,e,i,r,n,s){var a,o,l,h,u,p,f="background-position",c=O||v(t),_=this.format((c?M?c.getPropertyValue(f+"-x")+" "+c.getPropertyValue(f+"-y"):c.getPropertyValue(f):t.currentStyle.backgroundPositionX+" "+t.currentStyle.backgroundPositionY)||"0 0"),d=this.format(e);if(-1!==_.indexOf("%")!=(-1!==d.indexOf("%"))&&d.split(",").length<2&&((p=ut(t,"backgroundImage").replace(G,""))&&"none"!==p)){for(a=_.split(" "),o=d.split(" "),rt.setAttribute("src",p),l=2;-1<--l;)(h=-1!==(_=a[l]).indexOf("%"))!=(-1!==o[l].indexOf("%"))&&(u=0===l?t.offsetWidth-rt.width:t.offsetHeight-rt.height,a[l]=h?parseFloat(_)/100*u+"px":parseFloat(_)/u*100+"%");_=a.join(" ")}return this.parseComplex(t.style,_,d,n,s)},formatter:dt}),Ct("backgroundSize",{defaultValue:"0 0",formatter:function(t){return"co"===(t+="").substr(0,2)?t:dt(-1===t.indexOf(" ")?t+" "+t:t)}}),Ct("perspective",{defaultValue:"0px",prefix:!0}),Ct("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),Ct("transformStyle",{prefix:!0}),Ct("backfaceVisibility",{prefix:!0}),Ct("userSelect",{prefix:!0}),Ct("margin",{parser:xt("marginTop,marginRight,marginBottom,marginLeft")}),Ct("padding",{parser:xt("paddingTop,paddingRight,paddingBottom,paddingLeft")}),Ct("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(t,e,i,r,n,s){var a,o,l;return e=M<9?(o=t.currentStyle,l=M<8?" ":",",a="rect("+o.clipTop+l+o.clipRight+l+o.clipBottom+l+o.clipLeft+")",this.format(e).split(",").join(l)):(a=this.format(ut(t,this.p,O,!1,this.dflt)),this.format(e)),this.parseComplex(t.style,a,e,n,s)}}),Ct("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),Ct("autoRound,strictUnits",{parser:function(t,e,i,r,n){return n}}),Ct("border",{defaultValue:"0px solid #000",parser:function(t,e,i,r,n,s){var a=ut(t,"borderTopWidth",O,!1,"0px"),o=this.format(e).split(" "),l=o[0].replace(L,"");return"px"!==l&&(a=parseFloat(a)/pt(t,"borderTopWidth",1,l)+l),this.parseComplex(t.style,this.format(a+" "+ut(t,"borderTopStyle",O,!1,"solid")+" "+ut(t,"borderTopColor",O,!1,"#000")),o.join(" "),n,s)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(vt)||["#000"])[0]}}),Ct("borderWidth",{parser:xt("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),Ct("float,cssFloat,styleFloat",{parser:function(t,e,i,r,n,s){var a=t.style,o="cssFloat"in a?"cssFloat":"styleFloat";return new bt(a,o,0,0,n,-1,i,!1,0,a[o],e)}});function Kt(t){var e,i=this.t,r=i.filter||ut(this.data,"filter")||"",n=this.s+this.c*t|0;100==n&&(e=-1===r.indexOf("atrix(")&&-1===r.indexOf("radient(")&&-1===r.indexOf("oader(")?(i.removeAttribute("filter"),!ut(this.data,"filter")):(i.filter=r.replace(p,""),!0)),e||(this.xn1&&(i.filter=r=r||"alpha(opacity="+n+")"),-1===r.indexOf("pacity")?0==n&&this.xn1||(i.filter=r+" alpha(opacity="+n+")"):i.filter=r.replace(X,"opacity="+n))}Ct("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(t,e,i,r,n,s){var a=parseFloat(ut(t,"opacity",O,!1,"1")),o=t.style,l="autoAlpha"===i;return"string"==typeof e&&"="===e.charAt(1)&&(e=("-"===e.charAt(0)?-1:1)*parseFloat(e.substr(2))+a),l&&1===a&&"hidden"===ut(t,"visibility",O)&&0!==e&&(a=0),at?n=new bt(o,"opacity",a,e-a,n):((n=new bt(o,"opacity",100*a,100*(e-a),n)).xn1=l?1:0,o.zoom=1,n.type=2,n.b="alpha(opacity="+n.s+")",n.e="alpha(opacity="+(n.s+n.c)+")",n.data=t,n.plugin=s,n.setRatio=Kt),l&&((n=new bt(o,"visibility",0,0,n,-1,null,!1,0,0!==a?"inherit":"hidden",0===e?"hidden":"inherit")).xs0="inherit",r._overwriteProps.push(n.n),r._overwriteProps.push(i)),n}});function Jt(t){if(this.t._gsClassPT=this,1===t||0===t){this.t.setAttribute("class",0===t?this.b:this.e);for(var e=this.data,i=this.t.style;e;)e.v?i[e.p]=e.v:te(i,e.p),e=e._next;1===t&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)}var te=function(t,e){e&&(t.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),t.removeProperty(e.replace(f,"-$1").toLowerCase())):t.removeAttribute(e))};Ct("className",{parser:function(t,e,i,r,n,s,a){var o,l,h,u,p,f=t.getAttribute("class")||"",c=t.style.cssText;if((n=r._classNamePT=new bt(t,i,0,0,n,2)).setRatio=Jt,n.pr=-11,_=!0,n.b=f,l=y(t,O),h=t._gsClassPT){for(u={},p=h.data;p;)u[p.p]=1,p=p._next;h.setRatio(1)}return(t._gsClassPT=n).e="="!==e.charAt(1)?e:f.replace(new RegExp("(?:\\s|^)"+e.substr(2)+"(?![\\w-])"),"")+("+"===e.charAt(0)?" "+e.substr(2):""),t.setAttribute("class",n.e),o=x(t,l,y(t),a,u),t.setAttribute("class",f),n.data=o.firstMPT,t.style.cssText!==c&&(t.style.cssText=c),n.xfirst=r.parse(t,o.difs,n,s)}});function ee(t){if((1===t||0===t)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var e,i,r,n,s,a=this.t.style,o=m.transform.parse;if("all"===this.e)n=!(a.cssText="");else for(r=(e=this.e.split(" ").join("").split(",")).length;-1<--r;)i=e[r],m[i]&&(m[i].parse===o?n=!0:i="transformOrigin"===i?Bt:m[i].p),te(a,i);n&&(te(a,Xt),(s=this.t._gsTransform)&&(s.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}}for(Ct("clearProps",{parser:function(t,e,i,r,n){return(n=new bt(t,i,0,0,n,2)).setRatio=ee,n.e=e,n.pr=-10,n.data=r._tween,_=!0,n}}),t="bezier,throwProps,physicsProps,physics2D".split(","),Ot=t.length;Ot--;)At(t[Ot]);(t=Y.prototype)._firstPT=t._lastParsedTransform=t._transform=null,t._onInitTween=function(t,e,i,r){if(!t.nodeType)return!1;this._target=N=t,this._tween=i,this._vars=e,F=r,R=e.autoRound,_=!1,P=e.suffixMap||Y.suffixMap,O=v(t),d=this._overwriteProps;var n,s,a,o,l,h,u,p,f,c=t.style;if(T&&""===c.zIndex&&("auto"!==(n=ut(t,"zIndex",O))&&""!==n||this._addLazySet(c,"zIndex",0)),"string"==typeof e&&(o=c.cssText,n=y(t,O),c.cssText=o+";"+e,n=x(t,n,y(t)).difs,!at&&z.test(e)&&(n.opacity=parseFloat(RegExp.$1)),e=n,c.cssText=o),e.className?this._firstPT=s=m.className.parse(t,e.className,"className",this,null,null,e):this._firstPT=s=this.parse(t,e,null),this._transformType){for(f=3===this._transformType,Xt?w&&(T=!0,""===c.zIndex&&("auto"!==(u=ut(t,"zIndex",O))&&""!==u||this._addLazySet(c,"zIndex",0)),b&&this._addLazySet(c,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(f?"visible":"hidden"))):c.zoom=1,a=s;a&&a._next;)a=a._next;p=new bt(t,"transform",0,0,null,2),this._linkCSSP(p,null,a),p.setRatio=Xt?$t:Mt,p.data=this._transform||Qt(t,O,!0),p.tween=i,p.pr=-1,d.pop()}if(_){for(;s;){for(h=s._next,a=o;a&&a.pr>s.pr;)a=a._next;(s._prev=a?a._prev:l)?s._prev._next=s:o=s,(s._next=a)?a._prev=s:l=s,s=h}this._firstPT=o}return!0},t.parse=function(t,e,i,r){var n,s,a,o,l,h,u,p,f,c,_=t.style;for(n in e){if(h=e[n],s=m[n],"function"!=typeof h||s&&s.allowFunc||(h=h(F,N)),s)i=s.parse(t,h,n,this,i,r,e);else{if("--"===n.substr(0,2)){this._tween._propLookup[n]=this._addTween.call(this._tween,t.style,"setProperty",v(t).getPropertyValue(n)+"",h+"",n,!1,n);continue}l=ut(t,n,O)+"",f="string"==typeof h,"color"===n||"fill"===n||"stroke"===n||-1!==n.indexOf("Color")||f&&V.test(h)?(f||(h=(3<(h=gt(h)).length?"rgba(":"rgb(")+h.join(",")+")"),i=Pt(_,n,l,h,!0,"transparent",i,0,r)):f&&Q.test(h)?i=Pt(_,n,l,h,!0,null,i,0,r):(u=(a=parseFloat(l))||0===a?l.substr((a+"").length):"",""!==l&&"auto"!==l||(u="width"===n||"height"===n?(a=function(t,e,i){if("svg"===(t.nodeName+"").toLowerCase())return(i||v(t))[e]||0;if(t.getCTM&&qt(t))return t.getBBox()[e]||0;var r=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),n=ct[e],s=n.length;for(i=i||v(t);-1<--s;)r-=parseFloat(ut(t,"padding"+n[s],i,!0))||0,r-=parseFloat(ut(t,"border"+n[s]+"Width",i,!0))||0;return r}(t,n,O),"px"):"left"===n||"top"===n?(a=ft(t,n,O),"px"):(a="opacity"!==n?0:1,"")),""===(p=(c=f&&"="===h.charAt(1))?(o=parseInt(h.charAt(0)+"1",10),h=h.substr(2),o*=parseFloat(h),h.replace(L,"")):(o=parseFloat(h),f?h.replace(L,""):""))&&(p=n in P?P[n]:u),h=o||0===o?(c?o+a:o)+p:e[n],u===p||""===p&&"lineHeight"!==n||!o&&0!==o||!a||(a=pt(t,n,a,u),"%"===p?(a/=pt(t,n,100,"%")/100,!0!==e.strictUnits&&(l=a+"%")):"em"===p||"rem"===p||"vw"===p||"vh"===p?a/=pt(t,n,1,p):"px"!==p&&(o=pt(t,n,o,p),p="px"),c&&(o||0===o)&&(h=o+a+p)),c&&(o+=a),!a&&0!==a||!o&&0!==o?void 0!==_[n]&&(h||h+""!="NaN"&&null!=h)?(i=new bt(_,n,o||a||0,0,i,-1,n,!1,0,l,h)).xs0="none"!==h||"display"!==n&&-1===n.indexOf("Style")?h:l:g("invalid "+n+" tween value: "+e[n]):(i=new bt(_,n,a,o-a,i,0,n,!1!==R&&("px"===p||"zIndex"===n),0,l,h)).xs0=p)}r&&i&&!i.plugin&&(i.plugin=r)}return i},t.setRatio=function(t){var e,i,r,n=this._firstPT;if(1!==t||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(t||this._tween._time!==this._tween._duration&&0!==this._tween._time||-1e-6===this._tween._rawPrevTime)for(;n;){if(e=n.c*t+n.s,n.r?e=n.r(e):e<1e-6&&-1e-6<e&&(e=0),n.type)if(1===n.type)if(2===(r=n.l))n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2;else if(3===r)n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3;else if(4===r)n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3+n.xn3+n.xs4;else if(5===r)n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3+n.xn3+n.xs4+n.xn4+n.xs5;else{for(i=n.xs0+e+n.xs1,r=1;r<n.l;r++)i+=n["xn"+r]+n["xs"+(r+1)];n.t[n.p]=i}else-1===n.type?n.t[n.p]=n.xs0:n.setRatio&&n.setRatio(t);else n.t[n.p]=e+n.xs0;n=n._next}else for(;n;)2!==n.type?n.t[n.p]=n.b:n.setRatio(t),n=n._next;else for(;n;){if(2!==n.type)if(n.r&&-1!==n.type)if(e=n.r(n.s+n.c),n.type){if(1===n.type){for(r=n.l,i=n.xs0+e+n.xs1,r=1;r<n.l;r++)i+=n["xn"+r]+n["xs"+(r+1)];n.t[n.p]=i}}else n.t[n.p]=e+n.xs0;else n.t[n.p]=n.e;else n.setRatio(t);n=n._next}},t._enableTransforms=function(t){this._transform=this._transform||Qt(this._target,O,!0),this._transformType=this._transform.svg&&Nt||!t&&3!==this._transformType?2:3};function ie(t){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)}t._addLazySet=function(t,e,i){var r=this._firstPT=new bt(t,e,0,0,this._firstPT,2);r.e=i,r.setRatio=ie,r.data=this},t._linkCSSP=function(t,e,i,r){return t&&(e&&(e._prev=t),t._next&&(t._next._prev=t._prev),t._prev?t._prev._next=t._next:this._firstPT===t&&(this._firstPT=t._next,r=!0),i?i._next=t:r||null!==this._firstPT||(this._firstPT=t),t._next=e,t._prev=i),t},t._mod=function(t){for(var e=this._firstPT;e;)"function"==typeof t[e.p]&&(e.r=t[e.p]),e=e._next},t._kill=function(t){var e,i,r,n=t;if(t.autoAlpha||t.alpha){for(i in n={},t)n[i]=t[i];n.opacity=1,n.autoAlpha&&(n.visibility=1)}for(t.className&&(e=this._classNamePT)&&((r=e.xfirst)&&r._prev?this._linkCSSP(r._prev,e._next,r._prev._prev):r===this._firstPT&&(this._firstPT=e._next),e._next&&this._linkCSSP(e._next,e._next._next,r._prev),this._classNamePT=null),e=this._firstPT;e;)e.plugin&&e.plugin!==i&&e.plugin._kill&&(e.plugin._kill(t),i=e.plugin),e=e._next;return s.prototype._kill.call(this,n)};var re=function(t,e,i){var r,n,s,a;if(t.slice)for(n=t.length;-1<--n;)re(t[n],e,i);else for(n=(r=t.childNodes).length;-1<--n;)a=(s=r[n]).type,s.style&&(e.push(y(s)),i&&i.push(s)),1!==a&&9!==a&&11!==a||!s.childNodes.length||re(s,e,i)};return Y.cascadeTo=function(t,e,i){var r,n,s,a,o=B.to(t,e,i),l=[o],h=[],u=[],p=[],f=B._internals.reservedProps;for(t=o._targets||o.target,re(t,h,p),o.render(e,!0,!0),re(t,u),o.render(0,!0,!0),o._enabled(!0),r=p.length;-1<--r;)if((n=x(p[r],h[r],u[r])).firstMPT){for(s in n=n.difs,i)f[s]&&(n[s]=i[s]);for(s in a={},n)a[s]=h[r][s];l.push(B.fromTo(p[r],e,a,n))}return l},s.activate([Y]),Y},!0)}),ne._gsDefine&&ne._gsQueue.pop()(),function(p,t){"use strict";var f={},r=p.document,c=p.GreenSockGlobals=p.GreenSockGlobals||p,e=c[t];if(e)return;function _(t){for(var e=t.split("."),i=c,r=0;r<e.length;r++)i[e[r]]=i=i[e[r]]||{};return i}function l(t){for(var e=[],i=t.length,r=0;r!==i;e.push(t[r++]));return e}function d(){}var m,i,n,g=_("com.greensock"),v=1e-8,y=(i=Object.prototype.toString,n=i.call([]),function(t){return null!=t&&(t instanceof Array||"object"==typeof t&&!!t.push&&i.call(t)===n)}),x={},T=function(o,l,h,u){this.sc=x[o]?x[o].sc:[],(x[o]=this).gsClass=null,this.func=h;var p=[];this.check=function(t){for(var e,i,r,n,s=l.length,a=s;-1<--s;)(e=x[l[s]]||new T(l[s],[])).gsClass?(p[s]=e.gsClass,a--):t&&e.sc.push(this);if(0===a&&h)for(r=(i=("com.greensock."+o).split(".")).pop(),n=_(i.join("."))[r]=this.gsClass=h.apply(h,p),u&&(c[r]=f[r]=n),s=0;s<this.sc.length;s++)this.sc[s].check()},this.check(!0)},s=p._gsDefine=function(t,e,i,r){return new T(t,e,i,r)},w=g._class=function(t,e,i){return e=e||function(){},s(t,[],function(){return e},i),e};s.globals=c;var a,o=[0,0,1,1],b=w("easing.Ease",function(t,e,i,r){this._func=t,this._type=i||0,this._power=r||0,this._params=e?o.concat(e):o},!0),P=b.map={},h=b.register=function(t,e,i,r){for(var n,s,a,o,l=e.split(","),h=l.length,u=(i||"easeIn,easeOut,easeInOut").split(",");-1<--h;)for(s=l[h],n=r?w("easing."+s,null,!0):g.easing[s]||{},a=u.length;-1<--a;)o=u[a],P[s+"."+o]=P[o+s]=n[o]=t.getRatio?t:t[o]||new t};for((a=b.prototype)._calcEnd=!1,a.getRatio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,i=this._power,r=1===e?1-t:2===e?t:t<.5?2*t:2*(1-t);return 1===i?r*=r:2===i?r*=r*r:3===i?r*=r*r*r:4===i&&(r*=r*r*r*r),1===e?1-r:2===e?r:t<.5?r/2:1-r/2},R=(u=["Linear","Quad","Cubic","Quart","Quint,Strong"]).length;-1<--R;)a=u[R]+",Power"+R,h(new b(null,null,1,R),a,"easeOut",!0),h(new b(null,null,2,R),a,"easeIn"+(0===R?",easeNone":"")),h(new b(null,null,3,R),a,"easeInOut");P.linear=g.easing.Linear.easeIn,P.swing=g.easing.Quad.easeInOut;var O=w("events.EventDispatcher",function(t){this._listeners={},this._eventTarget=t||this});(a=O.prototype).addEventListener=function(t,e,i,r,n){n=n||0;var s,a,o=this._listeners[t],l=0;for(this!==N||m||N.wake(),null==o&&(this._listeners[t]=o=[]),a=o.length;-1<--a;)(s=o[a]).c===e&&s.s===i?o.splice(a,1):0===l&&s.pr<n&&(l=a+1);o.splice(l,0,{c:e,s:i,up:r,pr:n})},a.removeEventListener=function(t,e){var i,r=this._listeners[t];if(r)for(i=r.length;-1<--i;)if(r[i].c===e)return void r.splice(i,1)},a.dispatchEvent=function(t){var e,i,r,n=this._listeners[t];if(n)for(1<(e=n.length)&&(n=n.slice(0)),i=this._eventTarget;-1<--e;)(r=n[e])&&(r.up?r.c.call(r.s||i,{type:t,target:i}):r.c.call(r.s||i))};for(var u,S=p.requestAnimationFrame,C=p.cancelAnimationFrame,A=Date.now||function(){return(new Date).getTime()},k=A(),R=(u=["ms","moz","webkit","o"]).length;-1<--R&&!S;)S=p[u[R]+"RequestAnimationFrame"],C=p[u[R]+"CancelAnimationFrame"]||p[u[R]+"CancelRequestAnimationFrame"];w("Ticker",function(t,e){var n,s,a,o,l,h=this,u=A(),i=!(!1===e||!S)&&"auto",p=500,f=33,c=function(t){var e,i,r=A()-k;p<r&&(u+=r-f),k+=r,h.time=(k-u)/1e3,e=h.time-l,(!n||0<e||!0===t)&&(h.frame++,l+=e+(o<=e?.004:o-e),i=!0),!0!==t&&(a=s(c)),i&&h.dispatchEvent("tick")};O.call(h),h.time=h.frame=0,h.tick=function(){c(!0)},h.lagSmoothing=function(t,e){return arguments.length?(p=t||1e8,void(f=Math.min(e,p,0))):p<1e8},h.sleep=function(){null!=a&&((i&&C?C:clearTimeout)(a),s=d,a=null,h===N&&(m=!1))},h.wake=function(t){null!==a?h.sleep():t?u+=-k+(k=A()):10<h.frame&&(k=A()-p+5),s=0===n?d:i&&S?S:function(t){return setTimeout(t,1e3*(l-h.time)+1|0)},h===N&&(m=!0),c(2)},h.fps=function(t){return arguments.length?(o=1/((n=t)||60),l=this.time+o,void h.wake()):n},h.useRAF=function(t){return arguments.length?(h.sleep(),i=t,void h.fps(n)):i},h.fps(t),setTimeout(function(){"auto"===i&&h.frame<5&&"hidden"!==(r||{}).visibilityState&&h.useRAF(!1)},1500)}),(a=g.Ticker.prototype=new g.events.EventDispatcher).constructor=g.Ticker;var M=w("core.Animation",function(t,e){var i;this.vars=e=e||{},this._duration=this._totalDuration=t||0,this._delay=Number(e.delay)||0,this._timeScale=1,this._active=!!e.immediateRender,this.data=e.data,this._reversed=!!e.reversed,K&&(m||N.wake(),(i=this.vars.useFrames?$:K).add(this,i._time),this.vars.paused&&this.paused(!0))}),N=M.ticker=new g.Ticker;(a=M.prototype)._dirty=a._gc=a._initted=a._paused=!1,a._totalTime=a._time=0,a._rawPrevTime=-1,a._next=a._last=a._onUpdate=a._timeline=a.timeline=null,a._paused=!1;var F=function(){m&&2e3<A()-k&&("hidden"!==(r||{}).visibilityState||!N.lagSmoothing())&&N.wake();var t=setTimeout(F,2e3);t.unref&&t.unref()};F(),a.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},a.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},a.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},a.seek=function(t,e){return this.totalTime(Number(t),!1!==e)},a.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,!1!==e,!0)},a.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},a.render=function(t,e,i){},a.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,!this._gc&&this.timeline||this._enabled(!0),this},a.isActive=function(){var t,e=this._timeline,i=this._startTime;return!e||!this._gc&&!this._paused&&e.isActive()&&(t=e.rawTime(!0))>=i&&t<i+this.totalDuration()/this._timeScale-v},a._enabled=function(t,e){return m||N.wake(),this._gc=!t,this._active=this.isActive(),!0!==e&&(t&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!t&&this.timeline&&this._timeline._remove(this,!0)),!1},a._kill=function(t,e){return this._enabled(!1,!1)},a.kill=function(t,e){return this._kill(t,e),this},a._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},a._swapSelfInParams=function(t){for(var e=t.length,i=t.concat();-1<--e;)"{self}"===t[e]&&(i[e]=this);return i},a._callback=function(t){var e=this.vars,i=e[t],r=e[t+"Params"],n=e[t+"Scope"]||e.callbackScope||this;switch(r?r.length:0){case 0:i.call(n);break;case 1:i.call(n,r[0]);break;case 2:i.call(n,r[0],r[1]);break;default:i.apply(n,r)}},a.eventCallback=function(t,e,i,r){if("on"===(t||"").substr(0,2)){var n=this.vars;if(1===arguments.length)return n[t];null==e?delete n[t]:(n[t]=e,n[t+"Params"]=y(i)&&-1!==i.join("").indexOf("{self}")?this._swapSelfInParams(i):i,n[t+"Scope"]=r),"onUpdate"===t&&(this._onUpdate=e)}return this},a.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},a.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&0<this._time&&this._time<this._duration&&0!==t&&this.totalTime(this._totalTime*(t/this._duration),!0),this):(this._dirty=!1,this._duration)},a.totalDuration=function(t){return this._dirty=!1,arguments.length?this.duration(t):this._totalDuration},a.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(t>this._duration?this._duration:t,e)):this._time},a.totalTime=function(t,e,i){if(m||N.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(t<0&&!i&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var r=this._totalDuration,n=this._timeline;if(r<t&&!i&&(t=r),this._startTime=(this._paused?this._pauseTime:n._time)-(this._reversed?r-t:t)/this._timeScale,n._dirty||this._uncache(!1),n._timeline)for(;n._timeline;)n._timeline._time!==(n._startTime+n._totalTime)/n._timeScale&&n.totalTime(n._totalTime,!0),n=n._timeline}this._gc&&this._enabled(!0,!1),this._totalTime===t&&0!==this._duration||(Y.length&&tt(),this.render(t,e,!1),Y.length&&tt())}return this},a.progress=a.totalProgress=function(t,e){var i=this.duration();return arguments.length?this.totalTime(i*t,e):i?this._time/i:this.ratio},a.startTime=function(t){return arguments.length?(t!==this._startTime&&(this._startTime=t,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,t-this._delay)),this):this._startTime},a.endTime=function(t){return this._startTime+(0!=t?this.totalDuration():this.duration())/this._timeScale},a.timeScale=function(t){if(!arguments.length)return this._timeScale;var e,i;for(t=t||v,this._timeline&&this._timeline.smoothChildTiming&&(i=(e=this._pauseTime)||0===e?e:this._timeline.totalTime(),this._startTime=i-(i-this._startTime)*this._timeScale/t),this._timeScale=t,i=this.timeline;i&&i.timeline;)i._dirty=!0,i.totalDuration(),i=i.timeline;return this},a.reversed=function(t){return arguments.length?(t!=this._reversed&&(this._reversed=t,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},a.paused=function(t){if(!arguments.length)return this._paused;var e,i,r=this._timeline;return t!=this._paused&&r&&(m||t||N.wake(),i=(e=r.rawTime())-this._pauseTime,!t&&r.smoothChildTiming&&(this._startTime+=i,this._uncache(!1)),this._pauseTime=t?e:null,this._paused=t,this._active=this.isActive(),!t&&0!=i&&this._initted&&this.duration()&&(e=r.smoothChildTiming?this._totalTime:(e-this._startTime)/this._timeScale,this.render(e,e===this._totalTime,!0))),this._gc&&!t&&this._enabled(!0,!1),this};var D=w("core.SimpleTimeline",function(t){M.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0});(a=D.prototype=new M).constructor=D,a.kill()._gc=!1,a._first=a._last=a._recent=null,a._sortChildren=!1,a.add=a.insert=function(t,e,i,r){var n,s;if(t._startTime=Number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pauseTime=this.rawTime()-(t._timeline.rawTime()-t._pauseTime)),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),n=this._last,this._sortChildren)for(s=t._startTime;n&&n._startTime>s;)n=n._prev;return n?(t._next=n._next,n._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=n,this._recent=t,this._timeline&&this._uncache(!0),this},a._remove=function(t,e){return t.timeline===this&&(e||t._enabled(!1,!0),t._prev?t._prev._next=t._next:this._first===t&&(this._first=t._next),t._next?t._next._prev=t._prev:this._last===t&&(this._last=t._prev),t._next=t._prev=t.timeline=null,t===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},a.render=function(t,e,i){var r,n=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;n;)r=n._next,(n._active||t>=n._startTime&&!n._paused&&!n._gc)&&(n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)),n=r},a.rawTime=function(){return m||N.wake(),this._totalTime};function E(t){return t&&t.length&&t!==p&&t[0]&&(t[0]===p||t[0].nodeType&&t[0].style&&!t.nodeType)}var I=w("TweenLite",function(t,e,i){if(M.call(this,e,i),this.render=I.prototype.render,null==t)throw"Cannot tween a null target.";this.target=t="string"==typeof t&&I.selector(t)||t;var r,n,s,a=t.jquery||t.length&&t!==p&&t[0]&&(t[0]===p||t[0].nodeType&&t[0].style&&!t.nodeType),o=this.vars.overwrite;if(this._overwrite=o=null==o?Q[I.defaultOverwrite]:"number"==typeof o?o>>0:Q[o],(a||t instanceof Array||t.push&&y(t))&&"number"!=typeof t[0])for(this._targets=s=l(t),this._propLookup=[],this._siblings=[],r=0;r<s.length;r++)(n=s[r])?"string"!=typeof n?n.length&&n!==p&&n[0]&&(n[0]===p||n[0].nodeType&&n[0].style&&!n.nodeType)?(s.splice(r--,1),this._targets=s=s.concat(l(n))):(this._siblings[r]=it(n,this,!1),1===o&&1<this._siblings[r].length&&rt(n,this,null,1,this._siblings[r])):"string"==typeof(n=s[r--]=I.selector(n))&&s.splice(r+1,1):s.splice(r--,1);else this._propLookup={},this._siblings=it(t,this,!1),1===o&&1<this._siblings.length&&rt(t,this,null,1,this._siblings);(this.vars.immediateRender||0===e&&0===this._delay&&!1!==this.vars.immediateRender)&&(this._time=-v,this.render(Math.min(0,-this._delay)))},!0);(a=I.prototype=new M).constructor=I,a.kill()._gc=!1,a.ratio=0,a._firstPT=a._targets=a._overwrittenProps=a._startAt=null,a._notifyPluginsOfEnabled=a._lazy=!1,I.version="2.1.3",I.defaultEase=a._ease=new b(null,null,1,1),I.defaultOverwrite="auto",I.ticker=N,I.autoSleep=120,I.lagSmoothing=function(t,e){N.lagSmoothing(t,e)},I.selector=p.$||p.jQuery||function(t){var e=p.$||p.jQuery;return e?(I.selector=e)(t):(r=r||p.document)?r.querySelectorAll?r.querySelectorAll(t):r.getElementById("#"===t.charAt(0)?t.substr(1):t):t};function L(t){for(var e,i=this._firstPT;i;)e=i.blob?1===t&&null!=this.end?this.end:t?this.join(""):this.start:i.c*t+i.s,i.m?e=i.m.call(this._tween,e,this._target||i.t,this._tween):e<1e-6&&-1e-6<e&&!i.blob&&(e=0),i.f?i.fp?i.t[i.p](i.fp,e):i.t[i.p](e):i.t[i.p]=e,i=i._next}function X(t){return(1e3*t|0)/1e3+""}function z(t,e,i,r){var n,s,a,o,l,h,u,p=[],f=0,c="",_=0;for(p.start=t,p.end=e,t=p[0]=t+"",e=p[1]=e+"",i&&(i(p),t=p[0],e=p[1]),p.length=0,n=t.match(V)||[],s=e.match(V)||[],r&&(r._next=null,r.blob=1,p._firstPT=p._applyPT=r),l=s.length,o=0;o<l;o++)u=s[o],c+=(h=e.substr(f,e.indexOf(u,f)-f))||!o?h:",",f+=h.length,_?_=(_+1)%5:"rgba("===h.substr(-5)&&(_=1),u===n[o]||n.length<=o?c+=u:(c&&(p.push(c),c=""),a=parseFloat(n[o]),p.push(a),p._firstPT={_next:p._firstPT,t:p,p:p.length-1,s:a,c:("="===u.charAt(1)?parseInt(u.charAt(0)+"1",10)*parseFloat(u.substr(2)):parseFloat(u)-a)||0,f:0,m:_&&_<4?Math.round:X}),f+=u.length;return(c+=e.substr(f))&&p.push(c),p.setRatio=L,W.test(e)&&(p.end=null),p}function B(t,e,i,r,n,s,a,o,l){"function"==typeof r&&(r=r(l||0,t));var h=typeof t[e],u="function"!=h?"":e.indexOf("set")||"function"!=typeof t["get"+e.substr(3)]?e:"get"+e.substr(3),p="get"!==i?i:u?a?t[u](a):t[u]():t[e],f="string"==typeof r&&"="===r.charAt(1),c={t:t,p:e,s:p,f:"function"==h,pg:0,n:n||e,m:s?"function"==typeof s?s:Math.round:0,pr:0,c:f?parseInt(r.charAt(0)+"1",10)*parseFloat(r.substr(2)):parseFloat(r)-p||0};return"number"==typeof p&&("number"==typeof r||f)||(a||isNaN(p)||!f&&isNaN(r)||"boolean"==typeof p||"boolean"==typeof r?(c.fp=a,c={t:z(p,f?parseFloat(c.s)+c.c+(c.s+"").replace(/[0-9\-\.]/g,""):r,o||I.defaultStringFilter,c),p:"setRatio",s:0,c:1,f:2,pg:0,n:n||e,pr:0,m:0}):(c.s=parseFloat(p),f||(c.c=parseFloat(r)-c.s||0))),c.c?((c._next=this._firstPT)&&(c._next._prev=c),this._firstPT=c):void 0}var Y=[],j={},V=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,W=/[\+-]=-?[\.\d]/,G=I._internals={isArray:y,isSelector:E,lazyTweens:Y,blobDif:z},U=I._plugins={},q=G.tweenLookup={},H=0,Z=G.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1,yoyoEase:1,stagger:1},Q={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},$=M._rootFramesTimeline=new D,K=M._rootTimeline=new D,J=30,tt=G.lazyRender=function(){var t,e,i=Y.length;for(j={},t=0;t<i;t++)(e=Y[t])&&!1!==e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0),e._lazy=!1);Y.length=0};K._startTime=N.time,$._startTime=N.frame,K._active=$._active=!0,setTimeout(tt,1),M._updateRoot=I.render=function(){var t,e,i;if(Y.length&&tt(),K.render((N.time-K._startTime)*K._timeScale,!1,!1),$.render((N.frame-$._startTime)*$._timeScale,!1,!1),Y.length&&tt(),N.frame>=J){for(i in J=N.frame+(parseInt(I.autoSleep,10)||120),q){for(t=(e=q[i].tweens).length;-1<--t;)e[t]._gc&&e.splice(t,1);0===e.length&&delete q[i]}if((!(i=K._first)||i._paused)&&I.autoSleep&&!$._first&&1===N._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||N.sleep()}}},N.addEventListener("tick",M._updateRoot);function et(t,e,i,r){var n,s,a=t.vars.onOverwrite;return a&&(n=a(t,e,i,r)),(a=I.onOverwrite)&&(s=a(t,e,i,r)),!1!==n&&!1!==s}var it=function(t,e,i){var r,n,s=t._gsTweenID;if(q[s||(t._gsTweenID=s="t"+H++)]||(q[s]={target:t,tweens:[]}),e&&((r=q[s].tweens)[n=r.length]=e,i))for(;-1<--n;)r[n]===e&&r.splice(n,1);return q[s].tweens},rt=function(t,e,i,r,n){var s,a,o;if(1===r||4<=r){for(o=n.length,c=0;c<o;c++)if((a=n[c])!==e)a._gc||a._kill(null,t,e)&&(s=!0);else if(5===r)break;return s}for(var l,h=e._startTime+v,u=[],p=0,f=0===e._duration,c=n.length;-1<--c;)(a=n[c])===e||a._gc||a._paused||(a._timeline!==e._timeline?(l=l||nt(e,0,f),0===nt(a,l,f)&&(u[p++]=a)):a._startTime<=h&&a._startTime+a.totalDuration()/a._timeScale>h&&((f||!a._initted)&&h-a._startTime<=2e-8||(u[p++]=a)));for(c=p;-1<--c;)if(o=(a=u[c])._firstPT,2===r&&a._kill(i,t,e)&&(s=!0),2!==r||!a._firstPT&&a._initted&&o){if(2!==r&&!et(a,e))continue;a._enabled(!1,!1)&&(s=!0)}return s},nt=function(t,e,i){for(var r=t._timeline,n=r._timeScale,s=t._startTime;r._timeline;){if(s+=r._startTime,n*=r._timeScale,r._paused)return-100;r=r._timeline}return e<(s/=n)?s-e:i&&s===e||!t._initted&&s-e<2e-8?v:(s+=t.totalDuration()/t._timeScale/n)>e+v?0:s-e-v};a._init=function(){var t,e,i,r,n,s,a=this.vars,o=this._overwrittenProps,l=this._duration,h=!!a.immediateRender,u=a.ease,p=this._startAt;if(a.startAt){for(r in p&&(p.render(-1,!0),p.kill()),n={},a.startAt)n[r]=a.startAt[r];if(n.data="isStart",n.overwrite=!1,n.immediateRender=!0,n.lazy=h&&!1!==a.lazy,n.startAt=n.delay=null,n.onUpdate=a.onUpdate,n.onUpdateParams=a.onUpdateParams,n.onUpdateScope=a.onUpdateScope||a.callbackScope||this,this._startAt=I.to(this.target||{},0,n),h)if(0<this._time)this._startAt=null;else if(0!==l)return}else if(a.runBackwards&&0!==l)if(p)p.render(-1,!0),p.kill(),this._startAt=null;else{for(r in 0!==this._time&&(h=!1),i={},a)Z[r]&&"autoCSS"!==r||(i[r]=a[r]);if(i.overwrite=0,i.data="isFromStart",i.lazy=h&&!1!==a.lazy,i.immediateRender=h,this._startAt=I.to(this.target,0,i),h){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=u=u?u instanceof b?u:"function"==typeof u?new b(u,a.easeParams):P[u]||I.defaultEase:I.defaultEase,a.easeParams instanceof Array&&u.config&&(this._ease=u.config.apply(u,a.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(s=this._targets.length,t=0;t<s;t++)this._initProps(this._targets[t],this._propLookup[t]={},this._siblings[t],o?o[t]:null,t)&&(e=!0);else e=this._initProps(this.target,this._propLookup,this._siblings,o,0);if(e&&I._onPluginEvent("_onInitAllProps",this),o&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),a.runBackwards)for(i=this._firstPT;i;)i.s+=i.c,i.c=-i.c,i=i._next;this._onUpdate=a.onUpdate,this._initted=!0},a._initProps=function(t,e,i,r,n){var s,a,o,l,h,u;if(null==t)return!1;for(s in j[t._gsTweenID]&&tt(),this.vars.css||t.style&&t!==p&&t.nodeType&&U.css&&!1!==this.vars.autoCSS&&function(t,e){var i,r={};for(i in t)Z[i]||i in e&&"transform"!==i&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"className"!==i&&"border"!==i||!(!U[i]||U[i]&&U[i]._autoCSS)||(r[i]=t[i],delete t[i]);t.css=r}(this.vars,t),this.vars)if(u=this.vars[s],Z[s])u&&(u instanceof Array||u.push&&y(u))&&-1!==u.join("").indexOf("{self}")&&(this.vars[s]=u=this._swapSelfInParams(u,this));else if(U[s]&&(l=new U[s])._onInitTween(t,this.vars[s],this,n)){for(this._firstPT=h={_next:this._firstPT,t:l,p:"setRatio",s:0,c:1,f:1,n:s,pg:1,pr:l._priority,m:0},a=l._overwriteProps.length;-1<--a;)e[l._overwriteProps[a]]=this._firstPT;(l._priority||l._onInitAllProps)&&(o=!0),(l._onDisable||l._onEnable)&&(this._notifyPluginsOfEnabled=!0),h._next&&(h._next._prev=h)}else e[s]=B.call(this,t,s,"get",u,s,0,null,this.vars.stringFilter,n);return r&&this._kill(r,t)?this._initProps(t,e,i,r,n):1<this._overwrite&&this._firstPT&&1<i.length&&rt(t,this,e,this._overwrite,i)?(this._kill(e,t),this._initProps(t,e,i,r,n)):(this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration)&&(j[t._gsTweenID]=!0),o)},a.render=function(t,e,i){var r,n,s,a,o,l,h,u=this,p=u._time,f=u._duration,c=u._rawPrevTime;if(f-v<=t&&0<=t?(u._totalTime=u._time=f,u.ratio=u._ease._calcEnd?u._ease.getRatio(1):1,u._reversed||(r=!0,n="onComplete",i=i||u._timeline.autoRemoveChildren),0!==f||!u._initted&&u.vars.lazy&&!i||(u._startTime===u._timeline._duration&&(t=0),(c<0||t<=0&&-v<=t||c===v&&"isPause"!==u.data)&&c!==t&&(i=!0,v<c&&(n="onReverseComplete")),u._rawPrevTime=a=!e||t||c===t?t:v)):t<v?(u._totalTime=u._time=0,u.ratio=u._ease._calcEnd?u._ease.getRatio(0):0,(0!==p||0===f&&0<c)&&(n="onReverseComplete",r=u._reversed),-v<t?t=0:t<0&&(u._active=!1,0!==f||!u._initted&&u.vars.lazy&&!i||(0<=c&&(c!==v||"isPause"!==u.data)&&(i=!0),u._rawPrevTime=a=!e||t||c===t?t:v)),(!u._initted||u._startAt&&u._startAt.progress())&&(i=!0)):(u._totalTime=u._time=t,u._easeType?(o=t/f,(1===(l=u._easeType)||3===l&&.5<=o)&&(o=1-o),3===l&&(o*=2),1===(h=u._easePower)?o*=o:2===h?o*=o*o:3===h?o*=o*o*o:4===h&&(o*=o*o*o*o),u.ratio=1===l?1-o:2===l?o:t/f<.5?o/2:1-o/2):u.ratio=u._ease.getRatio(t/f)),u._time!==p||i){if(!u._initted){if(u._init(),!u._initted||u._gc)return;if(!i&&u._firstPT&&(!1!==u.vars.lazy&&u._duration||u.vars.lazy&&!u._duration))return u._time=u._totalTime=p,u._rawPrevTime=c,Y.push(u),void(u._lazy=[t,e]);u._time&&!r?u.ratio=u._ease.getRatio(u._time/f):r&&u._ease._calcEnd&&(u.ratio=u._ease.getRatio(0===u._time?0:1))}for(!1!==u._lazy&&(u._lazy=!1),u._active||!u._paused&&u._time!==p&&0<=t&&(u._active=!0),0===p&&(u._startAt&&(0<=t?u._startAt.render(t,!0,i):n=n||"_dummyGS"),!u.vars.onStart||0===u._time&&0!==f||(e||u._callback("onStart"))),s=u._firstPT;s;)s.f?s.t[s.p](s.c*u.ratio+s.s):s.t[s.p]=s.c*u.ratio+s.s,s=s._next;u._onUpdate&&(t<0&&u._startAt&&-1e-4!==t&&u._startAt.render(t,!0,i),e||(u._time!==p||r||i)&&u._callback("onUpdate")),!n||u._gc&&!i||(t<0&&u._startAt&&!u._onUpdate&&-1e-4!==t&&u._startAt.render(t,!0,i),r&&(u._timeline.autoRemoveChildren&&u._enabled(!1,!1),u._active=!1),!e&&u.vars[n]&&u._callback(n),0===f&&u._rawPrevTime===v&&a!==v&&(u._rawPrevTime=0))}},a._kill=function(t,e,i){if("all"===t&&(t=null),null==t&&(null==e||e===this.target))return this._lazy=!1,this._enabled(!1,!1);e="string"!=typeof e?e||this._targets||this.target:I.selector(e)||e;var r,n,s,a,o,l,h,u,p,f=i&&this._time&&i._startTime===this._startTime&&this._timeline===i._timeline,c=this._firstPT;if((y(e)||E(e))&&"number"!=typeof e[0])for(r=e.length;-1<--r;)this._kill(t,e[r],i)&&(l=!0);else{if(this._targets){for(r=this._targets.length;-1<--r;)if(e===this._targets[r]){o=this._propLookup[r]||{},this._overwrittenProps=this._overwrittenProps||[],n=this._overwrittenProps[r]=t?this._overwrittenProps[r]||{}:"all";break}}else{if(e!==this.target)return!1;o=this._propLookup,n=this._overwrittenProps=t?this._overwrittenProps||{}:"all"}if(o){if(h=t||o,u=t!==n&&"all"!==n&&t!==o&&("object"!=typeof t||!t._tempKill),i&&(I.onOverwrite||this.vars.onOverwrite)){for(s in h)o[s]&&(p=p||[]).push(s);if((p||!t)&&!et(this,i,e,p))return!1}for(s in h)(a=o[s])&&(f&&(a.f?a.t[a.p](a.s):a.t[a.p]=a.s,l=!0),a.pg&&a.t._kill(h)&&(l=!0),a.pg&&0!==a.t._overwriteProps.length||(a._prev?a._prev._next=a._next:a===this._firstPT&&(this._firstPT=a._next),a._next&&(a._next._prev=a._prev),a._next=a._prev=null),delete o[s]),u&&(n[s]=1);!this._firstPT&&this._initted&&c&&this._enabled(!1,!1)}}return l},a.invalidate=function(){this._notifyPluginsOfEnabled&&I._onPluginEvent("_onDisable",this);var t=this._time;return this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?[]:{},M.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-v,this.render(t,!1,!1!==this.vars.lazy)),this},a._enabled=function(t,e){if(m||N.wake(),t&&this._gc){var i,r=this._targets;if(r)for(i=r.length;-1<--i;)this._siblings[i]=it(r[i],this,!0);else this._siblings=it(this.target,this,!0)}return M.prototype._enabled.call(this,t,e),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&I._onPluginEvent(t?"_onEnable":"_onDisable",this)},I.to=function(t,e,i){return new I(t,e,i)},I.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new I(t,e,i)},I.fromTo=function(t,e,i,r){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,new I(t,e,r)},I.delayedCall=function(t,e,i,r,n){return new I(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:r,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,lazy:!1,useFrames:n,overwrite:0})},I.set=function(t,e){return new I(t,0,e)},I.getTweensOf=function(t,e){if(null==t)return[];var i,r,n,s;if(t="string"==typeof t&&I.selector(t)||t,(y(t)||E(t))&&"number"!=typeof t[0]){for(i=t.length,r=[];-1<--i;)r=r.concat(I.getTweensOf(t[i],e));for(i=r.length;-1<--i;)for(s=r[i],n=i;-1<--n;)s===r[n]&&r.splice(i,1)}else if(t._gsTweenID)for(i=(r=it(t).concat()).length;-1<--i;)(r[i]._gc||e&&!r[i].isActive())&&r.splice(i,1);return r||[]},I.killTweensOf=I.killDelayedCallsTo=function(t,e,i){"object"==typeof e&&(i=e,e=!1);for(var r=I.getTweensOf(t,e),n=r.length;-1<--n;)r[n]._kill(i,t)};var st=w("plugins.TweenPlugin",function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=st.prototype},!0);if(a=st.prototype,st.version="1.19.0",st.API=2,a._firstPT=null,a._addTween=B,a.setRatio=L,a._kill=function(t){var e,i=this._overwriteProps,r=this._firstPT;if(null!=t[this._propName])this._overwriteProps=[];else for(e=i.length;-1<--e;)null!=t[i[e]]&&i.splice(e,1);for(;r;)null!=t[r.n]&&(r._next&&(r._next._prev=r._prev),r._prev?(r._prev._next=r._next,r._prev=null):this._firstPT===r&&(this._firstPT=r._next)),r=r._next;return!1},a._mod=a._roundProps=function(t){for(var e,i=this._firstPT;i;)(e=t[this._propName]||null!=i.n&&t[i.n.split(this._propName+"_").join("")])&&"function"==typeof e&&(2===i.f?i.t._applyPT.m=e:i.m=e),i=i._next},I._onPluginEvent=function(t,e){var i,r,n,s,a,o=e._firstPT;if("_onInitAllProps"===t){for(;o;){for(a=o._next,r=n;r&&r.pr>o.pr;)r=r._next;(o._prev=r?r._prev:s)?o._prev._next=o:n=o,(o._next=r)?r._prev=o:s=o,o=a}o=e._firstPT=n}for(;o;)o.pg&&"function"==typeof o.t[t]&&o.t[t]()&&(i=!0),o=o._next;return i},st.activate=function(t){for(var e=t.length;-1<--e;)t[e].API===st.API&&(U[(new t[e])._propName]=t[e]);return!0},s.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e,i=t.propName,r=t.priority||0,n=t.overwriteProps,s={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},a=w("plugins."+i.charAt(0).toUpperCase()+i.substr(1)+"Plugin",function(){st.call(this,i,r),this._overwriteProps=n||[]},!0===t.global),o=a.prototype=new st(i);for(e in(o.constructor=a).API=t.API,s)"function"==typeof t[e]&&(o[s[e]]=t[e]);return a.version=t.version,st.activate([a]),a},u=p._gsQueue){for(R=0;R<u.length;R++)u[R]();for(a in x)x[a].func||p.console.log("GSAP encountered missing dependency: "+a)}m=!1}(this||window,"TweenLite"),ne._gsQueue.push(function(){"use strict";ne._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(p,f,_){function d(t){f.call(this,t);var e,i,r=this,n=r.vars;for(i in r._labels={},r.autoRemoveChildren=!!n.autoRemoveChildren,r.smoothChildTiming=!!n.smoothChildTiming,r._sortChildren=!0,r._onUpdate=n.onUpdate,n)e=n[i],c(e)&&-1!==e.join("").indexOf("{self}")&&(n[i]=r._swapSelfInParams(e));c(n.tweens)&&r.add(n.tweens,0,n.align,n.stagger)}function m(t){var e,i={};for(e in t)i[e]=t[e];return i}function g(t,e,i){var r,n,s=t.cycle;for(r in s)n=s[r],t[r]="function"==typeof n?n(i,e[i],e):n[i%n.length];delete t.cycle}function h(t,e,i,r){var n="immediateRender";return n in e||(e[n]=!(i&&!1===i[n]||r)),e}function v(t){if("function"==typeof t)return t;var _="object"==typeof t?t:{each:t},d=_.ease,m=_.from||0,g=_.base||0,v={},y=isNaN(m),x=_.axis,T={center:.5,end:1}[m]||0;return function(t,e,i){var r,n,s,a,o,l,h,u,p,f=(i||_).length,c=v[f];if(!c){if(!(p="auto"===_.grid?0:(_.grid||[1/0])[0])){for(h=-1/0;h<(h=i[p++].getBoundingClientRect().left)&&p<f;);p--}for(c=v[f]=[],r=y?Math.min(p,f)*T-.5:m%p,n=y?f*T/p-.5:m/p|0,u=1/(h=0),l=0;l<f;l++)s=l%p-r,a=n-(l/p|0),c[l]=o=x?Math.abs("y"===x?a:s):Math.sqrt(s*s+a*a),h<o&&(h=o),o<u&&(u=o);c.max=h-u,c.min=u,c.v=f=_.amount||_.each*(f<p?f-1:x?"y"===x?f/p:p:Math.max(p,f/p))||0,c.b=f<0?g-f:g}return f=(c[t]-c.min)/c.max,c.b+(d?d.getRatio(f):f)*c.v}}var y=1e-8,t=_._internals,e=d._internals={},x=t.isSelector,c=t.isArray,T=t.lazyTweens,w=t.lazyRender,a=ne._gsDefine.globals,s=e.pauseCallback=function(){},i=d.prototype=new f;return d.version="2.1.3",d.distribute=v,i.constructor=d,i.kill()._gc=i._forcingPlayhead=i._hasPause=!1,i.to=function(t,e,i,r){var n=i.repeat&&a.TweenMax||_;return e?this.add(new n(t,e,i),r):this.set(t,i,r)},i.from=function(t,e,i,r){return this.add((i.repeat&&a.TweenMax||_).from(t,e,h(0,i)),r)},i.fromTo=function(t,e,i,r,n){var s=r.repeat&&a.TweenMax||_;return r=h(0,r,i),e?this.add(s.fromTo(t,e,i,r),n):this.set(t,r,n)},i.staggerTo=function(t,e,i,r,n,s,a,o){var l,h,u=new d({onComplete:s,onCompleteParams:a,callbackScope:o,smoothChildTiming:this.smoothChildTiming}),p=v(i.stagger||r),f=i.startAt,c=i.cycle;for("string"==typeof t&&(t=_.selector(t)||t),x(t=t||[])&&(t=function(t){for(var e=[],i=t.length,r=0;r!==i;e.push(t[r++]));return e}(t)),h=0;h<t.length;h++)l=m(i),f&&(l.startAt=m(f),f.cycle&&g(l.startAt,t,h)),c&&(g(l,t,h),null!=l.duration&&(e=l.duration,delete l.duration)),u.to(t[h],e,l,p(h,t[h],t));return this.add(u,n)},i.staggerFrom=function(t,e,i,r,n,s,a,o){return i.runBackwards=!0,this.staggerTo(t,e,h(0,i),r,n,s,a,o)},i.staggerFromTo=function(t,e,i,r,n,s,a,o,l){return r.startAt=i,this.staggerTo(t,e,h(0,r,i),n,s,a,o,l)},i.call=function(t,e,i,r){return this.add(_.delayedCall(0,t,e,i),r)},i.set=function(t,e,i){return this.add(new _(t,0,h(0,e,null,!0)),i)},d.exportRoot=function(t,e){null==(t=t||{}).smoothChildTiming&&(t.smoothChildTiming=!0);var i,r,n,s,a=new d(t),o=a._timeline;for(null==e&&(e=!0),o._remove(a,!0),a._startTime=0,a._rawPrevTime=a._time=a._totalTime=o._time,n=o._first;n;)s=n._next,e&&n instanceof _&&n.target===n.vars.onComplete||((r=n._startTime-n._delay)<0&&(i=1),a.add(n,r)),n=s;return o.add(a,0),i&&a.totalDuration(),a},i.add=function(t,e,i,r){var n,s,a,o,l,h,u=this;if("number"!=typeof e&&(e=u._parseTimeOrLabel(e,0,!0,t)),!(t instanceof p)){if(t instanceof Array||t&&t.push&&c(t)){for(i=i||"normal",r=r||0,n=e,s=t.length,a=0;a<s;a++)c(o=t[a])&&(o=new d({tweens:o})),u.add(o,n),"string"!=typeof o&&"function"!=typeof o&&("sequence"===i?n=o._startTime+o.totalDuration()/o._timeScale:"start"===i&&(o._startTime-=o.delay())),n+=r;return u._uncache(!0)}if("string"==typeof t)return u.addLabel(t,e);if("function"!=typeof t)throw"Cannot add "+t+" into the timeline; it is not a tween, timeline, function, or string.";t=_.delayedCall(0,t)}if(f.prototype.add.call(u,t,e),(t._time||!t._duration&&t._initted)&&(n=(u.rawTime()-t._startTime)*t._timeScale,(!t._duration||1e-5<Math.abs(Math.max(0,Math.min(t.totalDuration(),n)))-t._totalTime)&&t.render(n,!1,!1)),(u._gc||u._time===u._duration)&&!u._paused&&u._duration<u.duration())for(h=(l=u).rawTime()>t._startTime;l._timeline;)h&&l._timeline.smoothChildTiming?l.totalTime(l._totalTime,!0):l._gc&&l._enabled(!0,!1),l=l._timeline;return u},i.remove=function(t){if(t instanceof p){this._remove(t,!1);var e=t._timeline=t.vars.useFrames?p._rootFramesTimeline:p._rootTimeline;return t._startTime=(t._paused?t._pauseTime:e._time)-(t._reversed?t.totalDuration()-t._totalTime:t._totalTime)/t._timeScale,this}if(t instanceof Array||t&&t.push&&c(t)){for(var i=t.length;-1<--i;)this.remove(t[i]);return this}return"string"==typeof t?this.removeLabel(t):this.kill(null,t)},i._remove=function(t,e){return f.prototype._remove.call(this,t,e),this._last?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},i.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))},i.insert=i.insertMultiple=function(t,e,i,r){return this.add(t,e||0,i,r)},i.appendMultiple=function(t,e,i,r){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),i,r)},i.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},i.addPause=function(t,e,i,r){var n=_.delayedCall(0,s,i,r||this);return n.vars.onComplete=n.vars.onReverseComplete=e,n.data="isPause",this._hasPause=!0,this.add(n,t)},i.removeLabel=function(t){return delete this._labels[t],this},i.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:-1},i._parseTimeOrLabel=function(t,e,i,r){var n,s;if(r instanceof p&&r.timeline===this)this.remove(r);else if(r&&(r instanceof Array||r.push&&c(r)))for(s=r.length;-1<--s;)r[s]instanceof p&&r[s].timeline===this&&this.remove(r[s]);if(n="number"!=typeof t||e?99999999999<this.duration()?this.recent().endTime(!1):this._duration:0,"string"==typeof e)return this._parseTimeOrLabel(e,i&&"number"==typeof t&&null==this._labels[e]?t-n:0,i);if(e=e||0,"string"!=typeof t||!isNaN(t)&&null==this._labels[t])null==t&&(t=n);else{if(-1===(s=t.indexOf("=")))return null==this._labels[t]?i?this._labels[t]=n+e:e:this._labels[t]+e;e=parseInt(t.charAt(s-1)+"1",10)*Number(t.substr(s+1)),t=1<s?this._parseTimeOrLabel(t.substr(0,s-1),0,i):n}return Number(t)+e},i.seek=function(t,e){return this.totalTime("number"==typeof t?t:this._parseTimeOrLabel(t),!1!==e)},i.stop=function(){return this.paused(!0)},i.gotoAndPlay=function(t,e){return this.play(t,e)},i.gotoAndStop=function(t,e){return this.pause(t,e)},i.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var r,n,s,a,o,l,h,u,p=this,f=p._time,c=p._dirty?p.totalDuration():p._totalDuration,_=p._startTime,d=p._timeScale,m=p._paused;if(f!==p._time&&(t+=p._time-f),p._hasPause&&!p._forcingPlayhead&&!e){if(f<t)for(r=p._first;r&&r._startTime<=t&&!l;)r._duration||"isPause"!==r.data||r.ratio||0===r._startTime&&0===p._rawPrevTime||(l=r),r=r._next;else for(r=p._last;r&&r._startTime>=t&&!l;)r._duration||"isPause"===r.data&&0<r._rawPrevTime&&(l=r),r=r._prev;l&&(p._time=p._totalTime=t=l._startTime,u=p._startTime+(p._reversed?p._duration-t:t)/p._timeScale)}if(c-y<=t&&0<=t)p._totalTime=p._time=c,p._reversed||p._hasPausedChild()||(n=!0,a="onComplete",o=!!p._timeline.autoRemoveChildren,0===p._duration&&(t<=0&&-y<=t||p._rawPrevTime<0||p._rawPrevTime===y)&&p._rawPrevTime!==t&&p._first&&(o=!0,p._rawPrevTime>y&&(a="onReverseComplete"))),p._rawPrevTime=p._duration||!e||t||p._rawPrevTime===t?t:y,t=c+1e-4;else if(t<y)if(p._totalTime=p._time=0,-y<t&&(t=0),(0!==f||0===p._duration&&p._rawPrevTime!==y&&(0<p._rawPrevTime||t<0&&0<=p._rawPrevTime))&&(a="onReverseComplete",n=p._reversed),t<0)p._active=!1,p._timeline.autoRemoveChildren&&p._reversed?(o=n=!0,a="onReverseComplete"):0<=p._rawPrevTime&&p._first&&(o=!0),p._rawPrevTime=t;else{if(p._rawPrevTime=p._duration||!e||t||p._rawPrevTime===t?t:y,0===t&&n)for(r=p._first;r&&0===r._startTime;)r._duration||(n=!1),r=r._next;t=0,p._initted||(o=!0)}else p._totalTime=p._time=p._rawPrevTime=t;if(p._time!==f&&p._first||i||o||l){if(p._initted||(p._initted=!0),p._active||!p._paused&&p._time!==f&&0<t&&(p._active=!0),0===f&&p.vars.onStart&&(0===p._time&&p._duration||e||p._callback("onStart")),f<=(h=p._time))for(r=p._first;r&&(s=r._next,h===p._time&&(!p._paused||m));)(r._active||r._startTime<=h&&!r._paused&&!r._gc)&&(l===r&&(p.pause(),p._pauseTime=u),r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)),r=s;else for(r=p._last;r&&(s=r._prev,h===p._time&&(!p._paused||m));){if(r._active||r._startTime<=f&&!r._paused&&!r._gc){if(l===r){for(l=r._prev;l&&l.endTime()>p._time;)l.render(l._reversed?l.totalDuration()-(t-l._startTime)*l._timeScale:(t-l._startTime)*l._timeScale,e,i),l=l._prev;l=null,p.pause(),p._pauseTime=u}r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)}r=s}p._onUpdate&&(e||(T.length&&w(),p._callback("onUpdate"))),a&&(p._gc||_!==p._startTime&&d===p._timeScale||!(0===p._time||c>=p.totalDuration())||(n&&(T.length&&w(),p._timeline.autoRemoveChildren&&p._enabled(!1,!1),p._active=!1),!e&&p.vars[a]&&p._callback(a)))}},i._hasPausedChild=function(){for(var t=this._first;t;){if(t._paused||t instanceof d&&t._hasPausedChild())return!0;t=t._next}return!1},i.getChildren=function(t,e,i,r){r=r||-9999999999;for(var n=[],s=this._first,a=0;s;)s._startTime<r||(s instanceof _?!1!==e&&(n[a++]=s):(!1!==i&&(n[a++]=s),!1!==t&&(a=(n=n.concat(s.getChildren(!0,e,i))).length))),s=s._next;return n},i.getTweensOf=function(t,e){var i,r,n=this._gc,s=[],a=0;for(n&&this._enabled(!0,!0),r=(i=_.getTweensOf(t)).length;-1<--r;)(i[r].timeline===this||e&&this._contains(i[r]))&&(s[a++]=i[r]);return n&&this._enabled(!1,!0),s},i.recent=function(){return this._recent},i._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},i.shiftChildren=function(t,e,i){i=i||0;for(var r,n=this._first,s=this._labels;n;)n._startTime>=i&&(n._startTime+=t),n=n._next;if(e)for(r in s)s[r]>=i&&(s[r]+=t);return this._uncache(!0)},i._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var i=e?this.getTweensOf(e):this.getChildren(!0,!0,!1),r=i.length,n=!1;-1<--r;)i[r]._kill(t,e)&&(n=!0);return n},i.clear=function(t){var e=this.getChildren(!1,!0,!0),i=e.length;for(this._time=this._totalTime=0;-1<--i;)e[i]._enabled(!1,!1);return!1!==t&&(this._labels={}),this._uncache(!0)},i.invalidate=function(){for(var t=this._first;t;)t.invalidate(),t=t._next;return p.prototype.invalidate.call(this)},i._enabled=function(t,e){if(t===this._gc)for(var i=this._first;i;)i._enabled(t,!0),i=i._next;return f.prototype._enabled.call(this,t,e)},i.totalTime=function(t,e,i){this._forcingPlayhead=!0;var r=p.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,r},i.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},i.totalDuration=function(t){if(arguments.length)return t&&this.totalDuration()?this.timeScale(this._totalDuration/t):this;if(this._dirty){for(var e,i,r=0,n=this,s=n._last,a=999999999999;s;)e=s._prev,s._dirty&&s.totalDuration(),s._startTime>a&&n._sortChildren&&!s._paused&&!n._calculatingDuration?(n._calculatingDuration=1,n.add(s,s._startTime-s._delay),n._calculatingDuration=0):a=s._startTime,s._startTime<0&&!s._paused&&(r-=s._startTime,n._timeline.smoothChildTiming&&(n._startTime+=s._startTime/n._timeScale,n._time-=s._startTime,n._totalTime-=s._startTime,n._rawPrevTime-=s._startTime),n.shiftChildren(-s._startTime,!1,-9999999999),a=0),r<(i=s._startTime+s._totalDuration/s._timeScale)&&(r=i),s=e;n._duration=n._totalDuration=r,n._dirty=!1}return this._totalDuration},i.paused=function(t){if(!1===t&&this._paused)for(var e=this._first;e;)e._startTime===this._time&&"isPause"===e.data&&(e._rawPrevTime=0),e=e._next;return p.prototype.paused.apply(this,arguments)},i.usesFrames=function(){for(var t=this._timeline;t._timeline;)t=t._timeline;return t===p._rootFramesTimeline},i.rawTime=function(t){return t&&(this._paused||this._repeat&&0<this.time()&&this.totalProgress()<1)?this._totalTime%(this._duration+this._repeatDelay):this._paused?this._totalTime:(this._timeline.rawTime(t)-this._startTime)*this._timeScale},d},!0)}),ne._gsDefine&&ne._gsQueue.pop()(),function(i){"use strict";function Y(t){return e.getComputedStyle(t)}function j(t,e,i,r){var n;return(i=i||Y(t))?n=(t=i.getPropertyValue(e.replace(s,"-$1").toLowerCase()))||i.length?t:i[e]:t.currentStyle&&(n=(i=t.currentStyle)[e]),r?n:parseInt(n,10)||0}function a(t){return!!(t.length&&t[0]&&(t[0].nodeType&&t[0].style&&!t.nodeType||t[0].length&&t[0][0]))}function P(t,e){for(var i,r=e.length;-1<--r;)if(i=e[r],t.substr(0,i.length)===i)return i.length}function O(t){return(t.charCodeAt(0)-55296<<10)+(t.charCodeAt(1)-56320)+65536}function l(t,e){var i=-1!==(t=t||"").indexOf("++"),r=1;return i&&(t=t.split("++").join("")),function(){return"<"+e+o+(t?" class='"+t+(i?r++:"")+"'>":">")}}function V(t,e){for(var i=e.length;-1<--i;)t.push(e[i])}function h(t){for(var e=[],i=t.length,r=0;r!==i;e.push(t[r++]));return e}function W(t,e,i){for(var r;t&&t!==e;){if(r=t._next||t.nextSibling)return r.textContent.charAt(0)===i;t=t.parentNode||t._parent}return!1}var n=i.GreenSockGlobals||i,t=function(t){for(var e=t.split("."),i=n,r=0;r<e.length;r++)i[e[r]]=i=i[e[r]]||{};return i}("com.greensock.utils"),S=function(t){var e=t.nodeType,i="";if(1===e||9===e||11===e){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=S(t)}else if(3===e||4===e)return t.nodeValue;return i},G=ne.document||{},e=void 0!==i?i:G.defaultView||{getComputedStyle:function(){}},s=/([A-Z])/g,C=/(?:\r|\n|\t\t)/g,A=/(?:\s\s+)/g,o=" style='position:relative;display:inline-block;"+(G.all&&!G.addEventListener?"*display:inline;*zoom:1;'":"'"),r=t.SplitText=n.SplitText=function(t,e){if("string"==typeof t&&(t=r.selector(t)),!t)throw"cannot split a null element.";this.elements=a(t)?function(t){for(var e,i,r=[],n=t.length,s=0;s<n;s++)if(e=t[s],a(e))for(i=e.length,i=0;i<e.length;i++)r.push(e[i]);else r.push(e);return r}(t):[t],this.chars=[],this.words=[],this.lines=[],this._originals=[],this.vars=e||{},this.split(e)},U=function(t,e,i){var r=t.nodeType;if(1===r||9===r||11===r)for(t=t.firstChild;t;t=t.nextSibling)U(t,e,i);else 3!==r&&4!==r||(t.nodeValue=t.nodeValue.split(e).join(i))},q=function(t){for(var e,i=h(t.childNodes),r=i.length,n=0;n<r;n++)(e=i[n])._isSplit?q(e):(n&&3===e.previousSibling.nodeType?e.previousSibling.nodeValue+=3===e.nodeType?e.nodeValue:e.firstChild.nodeValue:3!==e.nodeType&&t.insertBefore(e.firstChild,e),t.removeChild(e))},u=function(t,e,i,r){var n,s,a=h(t.childNodes),o=a.length,l="absolute"===e.position||!0===e.absolute;if(3!==t.nodeType||1<o){for(e.absolute=!1,n=0;n<o;n++)3===(s=a[n]).nodeType&&!/\S+/.test(s.nodeValue)||(l&&3!==s.nodeType&&"inline"===j(s,"display",null,!0)&&(s.style.display="inline-block",s.style.position="relative"),s._isSplit=!0,u(s,e,i,r));return e.absolute=l,void(t._isSplit=!0)}!function(t,e,i,r){var n,s,a,o,l,h,u,p,f,c,_=e.tag?e.tag:e.span?"span":"div-ss",d=-1!==(e.type||e.split||"chars,words,lines").indexOf("chars"),m="absolute"===e.position||!0===e.absolute,g=e.wordDelimiter||" ",v=" "!==g?"":m?"&#173; ":" ",y="</"+_+">",x=!0,T=e.specialChars?"function"==typeof e.specialChars?e.specialChars:P:null,w=G.createElement("div"),b=t.parentNode;for(b.insertBefore(w,t),w.textContent=t.nodeValue,b.removeChild(t),u=-1!==(n=S(t=w)).indexOf("<"),!1!==e.reduceWhiteSpace&&(n=n.replace(A," ").replace(C,"")),u&&(n=n.split("<").join("{{LT}}")),l=n.length,s=(" "===n.charAt(0)?v:"")+i(),a=0;a<l;a++)if(h=n.charAt(a),T&&(c=T(n.substr(a),e.specialChars)))h=n.substr(a,c||1),s+=d&&" "!==h?r()+h+"</"+_+">":h,a+=c-1;else if(h===g&&n.charAt(a-1)!==g&&a){for(s+=x?y:"",x=!1;n.charAt(a+1)===g;)s+=v,a++;a===l-1?s+=v:")"!==n.charAt(a+1)&&(s+=v+i(),x=!0)}else"{"===h&&"{{LT}}"===n.substr(a,6)?(s+=d?r()+"{{LT}}</"+_+">":"{{LT}}",a+=5):55296<=h.charCodeAt(0)&&h.charCodeAt(0)<=56319||65024<=n.charCodeAt(a+1)&&n.charCodeAt(a+1)<=65039?(p=O(n.substr(a,2)),f=O(n.substr(a+2,2)),o=127462<=p&&p<=127487&&127462<=f&&f<=127487||127995<=f&&f<=127999?4:2,s+=d&&" "!==h?r()+n.substr(a,o)+"</"+_+">":n.substr(a,o),a+=o-1):s+=d&&" "!==h?r()+h+"</"+_+">":h;t.outerHTML=s+(x?y:""),u&&U(b,"{{LT}}","<")}(t,e,i,r)},p=r.prototype;p.split=function(t){this.isSplit&&this.revert(),this.vars=t=t||this.vars,this._originals.length=this.chars.length=this.words.length=this.lines.length=0;for(var e,i,r,n=this.elements.length,s=t.tag?t.tag:t.span?"span":"div-ss",a=l(t.wordsClass,s),o=l(t.charsClass,s);-1<--n;)r=this.elements[n],this._originals[n]=r.innerHTML,e=r.clientHeight,i=r.clientWidth,u(r,t,a,o),function(t,e,i,r,n,s,a){var o,l,h,u,p,f,c,_,d,m,g,v,y=Y(t),x=j(t,"paddingLeft",y),T=-999,w=j(t,"borderBottomWidth",y)+j(t,"borderTopWidth",y),b=j(t,"borderLeftWidth",y)+j(t,"borderRightWidth",y),P=j(t,"paddingTop",y)+j(t,"paddingBottom",y),O=j(t,"paddingLeft",y)+j(t,"paddingRight",y),S=.2*j(t,"fontSize"),C=j(t,"textAlign",y,!0),A=[],k=[],R=[],M=e.wordDelimiter||" ",N=e.tag?e.tag:e.span?"span":"div-ss",F=e.type||e.split||"chars,words,lines",D=n&&-1!==F.indexOf("lines")?[]:null,E=-1!==F.indexOf("words"),I=-1!==F.indexOf("chars"),L="absolute"===e.position||!0===e.absolute,X=e.linesClass,z=-1!==(X||"").indexOf("++"),B=[];for(z&&(X=X.split("++").join("")),h=(l=t.getElementsByTagName("*")).length,p=[],o=0;o<h;o++)p[o]=l[o];if(D||L)for(o=0;o<h;o++)((f=(u=p[o]).parentNode===t)||L||I&&!E)&&(v=u.offsetTop,D&&f&&Math.abs(v-T)>S&&("BR"!==u.nodeName||0===o)&&(c=[],D.push(c),T=v),L&&(u._x=u.offsetLeft,u._y=v,u._w=u.offsetWidth,u._h=u.offsetHeight),D&&((u._isSplit&&f||!I&&f||E&&f||!E&&u.parentNode.parentNode===t&&!u.parentNode._isSplit)&&(c.push(u),u._x-=x,W(u,t,M)&&(u._wordEnd=!0)),"BR"===u.nodeName&&(u.nextSibling&&"BR"===u.nextSibling.nodeName||0===o)&&D.push([])));for(o=0;o<h;o++)f=(u=p[o]).parentNode===t,"BR"!==u.nodeName?(L&&(d=u.style,E||f||(u._x+=u.parentNode._x,u._y+=u.parentNode._y),d.left=u._x+"px",d.top=u._y+"px",d.position="absolute",d.display="block",d.width=u._w+1+"px",d.height=u._h+"px"),!E&&I?u._isSplit?(u._next=u.nextSibling,u.parentNode.appendChild(u)):u.parentNode._isSplit?(u._parent=u.parentNode,!u.previousSibling&&u.firstChild&&(u.firstChild._isFirst=!0),u.nextSibling&&" "===u.nextSibling.textContent&&!u.nextSibling.nextSibling&&B.push(u.nextSibling),u._next=u.nextSibling&&u.nextSibling._isFirst?null:u.nextSibling,u.parentNode.removeChild(u),p.splice(o--,1),h--):f||(v=!u.nextSibling&&W(u.parentNode,t,M),u.parentNode._parent&&u.parentNode._parent.appendChild(u),v&&u.parentNode.appendChild(G.createTextNode(" ")),"span"===N&&(u.style.display="inline"),A.push(u)):u.parentNode._isSplit&&!u._isSplit&&""!==u.innerHTML?k.push(u):I&&!u._isSplit&&("span"===N&&(u.style.display="inline"),A.push(u))):D||L?(u.parentNode&&u.parentNode.removeChild(u),p.splice(o--,1),h--):E||t.appendChild(u);for(o=B.length;-1<--o;)B[o].parentNode.removeChild(B[o]);if(D){for(L&&(m=G.createElement(N),t.appendChild(m),g=m.offsetWidth+"px",v=m.offsetParent===t?0:t.offsetLeft,t.removeChild(m)),d=t.style.cssText,t.style.cssText="display:none;";t.firstChild;)t.removeChild(t.firstChild);for(_=" "===M&&(!L||!E&&!I),o=0;o<D.length;o++){for(c=D[o],(m=G.createElement(N)).style.cssText="display:block;text-align:"+C+";position:"+(L?"absolute;":"relative;"),X&&(m.className=X+(z?o+1:"")),R.push(m),h=c.length,l=0;l<h;l++)"BR"!==c[l].nodeName&&(u=c[l],m.appendChild(u),_&&u._wordEnd&&m.appendChild(G.createTextNode(" ")),L&&(0===l&&(m.style.top=u._y+"px",m.style.left=x+v+"px"),u.style.top="0px",v&&(u.style.left=u._x-v+"px")));0===h?m.innerHTML="&nbsp;":E||I||(q(m),U(m,String.fromCharCode(160)," ")),L&&(m.style.width=g,m.style.height=u._h+"px"),t.appendChild(m)}t.style.cssText=d}L&&(a>t.clientHeight&&(t.style.height=a-P+"px",t.clientHeight<a&&(t.style.height=a+w+"px")),s>t.clientWidth&&(t.style.width=s-O+"px",t.clientWidth<s&&(t.style.width=s+b+"px"))),V(i,A),E&&V(r,k),V(n,R)}(r,t,this.chars,this.words,this.lines,i,e);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.isSplit=!0,this},p.revert=function(){if(!this._originals)throw"revert() call wasn't scoped properly.";for(var t=this._originals.length;-1<--t;)this.elements[t].innerHTML=this._originals[t];return this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this},r.selector=i.$||i.jQuery||function(t){var e=i.$||i.jQuery;return e?(r.selector=e)(t):"undefined"==typeof document?t:document.querySelectorAll?document.querySelectorAll(t):document.getElementById("#"===t.charAt(0)?t.substr(1):t)},r.version="0.7.0"}(ne),ne._gsQueue.push(function(){"use strict";var t=ne._gsDefine.plugin({propName:"roundProps",version:"1.7.0",priority:-1,API:2,init:function(t,e,i){return this._tween=i,!0}}),e=t.prototype;e._onInitAllProps=function(){var t,e,i,r,n=this._tween,s=n.vars.roundProps,a={},o=n._propLookup.roundProps;if("object"!=typeof s||s.push)for("string"==typeof s&&(s=s.split(",")),i=s.length;-1<--i;)a[s[i]]=Math.round;else for(r in s)a[r]=function(e){var i=e<1?Math.pow(10,(e+"").length-2):1;return function(t){return(Math.round(t/e)*e*i|0)/i}}(s[r]);for(r in a)for(t=n._firstPT;t;)e=t._next,t.pg?t.t._mod(a):t.n===r&&(2===t.f&&t.t?function(t,e){for(;t;)t.f||t.blob||(t.m=e||Math.round),t=t._next}(t.t._firstPT,a[r]):(this._add(t.t,r,t.s,t.c,a[r]),e&&(e._prev=t._prev),t._prev?t._prev._next=e:n._firstPT===t&&(n._firstPT=e),t._next=t._prev=null,n._propLookup[r]=o)),t=e;return!1},e._add=function(t,e,i,r,n){this._addTween(t,e,i,i+r,e,n||Math.round),this._overwriteProps.push(e)}}),ne._gsDefine&&ne._gsQueue.pop()(),window.NextendTimeline=this.TimelineLite,window.NextendTween=this.TweenLite,window.NextendSplitText=this.SplitText,ne}),N2D("n2GSAPBlur","GSAP",function(t,e){function l(t){return Math.round((10*t|0)/10)}var i=N2Classes.GSAP._gsDefine.plugin({propName:"n2RoundProps",version:"1.7.0",priority:-1,API:2,init:function(t,e,i){return this._tween=i,!0}}),r=i.prototype;r._onInitAllProps=function(){var t,e,i,r,n=this._tween,s=n.vars.n2RoundProps,a={},o=n._propLookup.n2RoundProps;for("string"==typeof s&&(s=s.split(",")),i=s.length;-1<--i;)a[s[i]]=l;for(r in a)for(t=n._firstPT;t;)e=t._next,t.pg?t.t._mod(a):t.n===r&&(2===t.f&&t.t||(this._add(t.t,r,t.s,t.c,a[r]),e&&(e._prev=t._prev),t._prev?t._prev._next=e:n._firstPT===t&&(n._firstPT=e),t._next=t._prev=null,n._propLookup[r]=o)),t=e;return!1},r._add=function(t,e,i,r,n){this._addTween(t,e,i,i+r,e,n||l),this._overwriteProps.push(e)}}),N2D("n2GSAPAutoAlpha","GSAP",function(t,r){function e(t,e){t.dispatchEvent(new i("n2AutoAlphaVisibility",{cancelable:!1,bubbles:!1,detail:{visibility:e}}))}var i="function"!=typeof window.CustomEvent?function(t,e){e=e||{bubbles:!1,cancelable:!1,detail:r};var i=document.createEvent("CustomEvent");return i.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),i}:window.CustomEvent;N2Classes.GSAP._gsDefine.plugin({propName:"n2AutoAlpha",API:2,version:"1.0.1",overwriteProps:["n2AutoAlpha"],init:function(t,e,i,r){var n=window.getComputedStyle(t).opacity;return this._target=t,this._style=t.style,this._tween=this._addTween(t.style,"opacity",n,e,"n2AutoAlpha"),this._tween||(this._opacity=n),!0},set:function(t){this._super.setRatio.call(this,t),this._tween||this._opacity===this._style.opacity||(this._style.opacity=this._opacity),"0"===this._style.opacity?this._target.hasAttribute("data-force-hidden")||(this._target.setAttribute("data-force-hidden",""),e(this._target,!1)):this._target.hasAttribute("data-force-hidden")&&(this._target.removeAttribute("data-force-hidden"),e(this._target,!0))}})}),N2D("n2GSAPBlur","GSAP",function(t,e){var i=document.createElement("div"),a=!/Edge\/\d./i.test(navigator.userAgent)&&(i.style.filter!==e?"filter":i.style.webkitFilter!==e&&"webkitFilter"),r=a?"filter"==a?a:"-"+a.replace(/([A-Z])/g,"-$1").toLowerCase():"";N2Classes.GSAP._gsDefine.plugin({propName:"n2blur",API:2,version:"1.1.0",overwriteProps:["n2blur"],init:function(t,e,i,r){if(!a)return!0;"function"==typeof e&&(e=e(r,t));var n=window.getComputedStyle(t)[a],s="blur("+e+"px)";return"none"===n&&(n="blur(0px)"),this._style=t.style,this._remove=!e,n!=s&&this._addTween(t.style,a,n,s,"n2blur"),!0},set:function(t){this._super.setRatio.call(this,t),1===t&&this._remove&&this._style.removeProperty(r)}})}),N2D("nextend-gsap");
// source --> //www.tranghotelbangkok.com/wp-content/plugins/nextend-smart-slider3-pro/Public/SmartSlider3/Application/Frontend/Assets/dist/smartslider-frontend.min.js?ver=ff7f6f5b 
(function(){var t=this;t.N2_=t.N2_||{r:[],d:[]},t.N2R=t.N2R||function(){t.N2_.r.push(arguments)},t.N2D=t.N2D||function(){t.N2_.d.push(arguments)}}).call(window),N2D("SmartSliderBackgrounds",function(a,t){function e(t){this.device=null,this.slider=t,this.hasFixed=!1,this.lazyLoad=parseInt(t.parameters.lazyLoad),this.lazyLoadNeighbor=parseInt(t.parameters.lazyLoadNeighbor),this.loadDeferred=a.Deferred(),this.deviceDeferred=a.Deferred(),this.slider.stages.done("Resized",this.onResized.bind(this)),this.slider.stages.done("StarterSlide",this.onStarterSlide.bind(this))}return e.prototype.loadWithProgress=function(t){for(var e=0,i=this.loadDeferred,s=0;s<t.length;s++)a.when(t[s]).done(function(){i.notify(++e,t.length)});a.when.apply(a,t).done(function(){i.resolveWith(null,arguments)})},e.prototype.getBackgroundImages=function(){for(var t=[],e=0;e<this.slider.realSlides.length;e++)t.push(this.slider.realSlides[e].background);return t},e.prototype.onResized=function(){this.onSlideDeviceChanged(this.slider.responsive.getDeviceMode()),this.deviceDeferred.resolve(),this.slider.sliderElement.on("SliderDevice",function(t,e){this.onSlideDeviceChanged(e.device)}.bind(this))},e.prototype.onStarterSlide=function(){1===this.lazyLoad?(this.preLoadSlides=this.preloadSlidesLazyNeighbor,this.loadWithProgress(this.preLoadSlides(this.slider.getVisibleSlides(this.slider.currentSlide)))):2===this.lazyLoad?(this.preLoadSlides=this._preLoadSlides,this.slider.stages.done("SlidesReady",function(){N2R("windowLoad",this.preLoadAll.bind(this))}.bind(this)),this.loadWithProgress(this.preLoadSlides(this.slider.getVisibleSlides(this.slider.currentSlide)))):(this.preLoadSlides=this._preLoadSlides,this.loadWithProgress(this.preLoadAll())),this.slider.sliderElement.on("visibleSlidesChanged",this.onVisibleSlidesChanged.bind(this))},e.prototype.onVisibleSlidesChanged=function(){(1===this.lazyLoad||2===this.lazyLoad)&&a.when.apply(a,this.preLoadSlides(this.slider.getVisibleSlides()))},e.prototype.onSlideDeviceChanged=function(t){this.device=t;for(var e=0;e<this.slider.visibleRealSlides.length;e++)this.slider.visibleRealSlides[e].background&&this.slider.visibleRealSlides[e].background.updateBackgroundToDevice(t)},e.prototype.preLoadAll=function(){for(var t=[],e=0;e<this.slider.visibleRealSlides.length;e++)t.push(this.slider.visibleRealSlides[e].preLoad());return t},e.prototype._preLoadSlides=function(t){var e=[];"[object Array]"!==Object.prototype.toString.call(t)&&(t=[t]);for(var i=0;i<t.length;i++)e.push(t[i].preLoad());return e},e.prototype.preloadSlidesLazyNeighbor=function(t){var e=this._preLoadSlides(t);if(this.lazyLoadNeighbor)for(var i=0,s=t[0].getPrevious(),n=t[t.length-1].getNext();i<this.lazyLoadNeighbor;)s&&(e.push(s.preLoad()),s=s.getPrevious()),n&&(e.push(n.preLoad()),n=n.getNext()),i++;var o,r=a.Deferred();return"resolved"!==e[0].state()?(o=setTimeout(function(){this.slider.load.showSpinner("backgroundImage"+t[0].index),o=null}.bind(this),50),a.when.apply(a,e).done(function(){o?(clearTimeout(o),o=null):this.slider.load.removeSpinner("backgroundImage"+t[0].index),setTimeout(function(){r.resolve()},100)}.bind(this))):setTimeout(function(){r.resolve()},100),e.push(r),e},e.prototype.hack=function(){for(var t=0;t<this.slider.realSlides.length;t++)this.slider.realSlides[t].background&&this.slider.realSlides[t].background.hack()},e}),N2D("CSSData",function(t,e){"use strict";function i(t,e){this.$=t,this.css=e}return i.prototype.flush=function(){this.$.css(this.css)},i}),N2D("FontSize",function(e,i){var s;return{toRem:function(t){return t/(s===i&&(s=e('<div style="font-size:10rem;"></div>').appendTo("body")),parseFloat(s.css("fontSize"))/10)+"rem"}}}),N2D("SmartSliderLoad",function(i,t){function e(t,e){this.parameters=i.extend({fade:1,scroll:0},e),this.deferred=i.Deferred(),this.slider=t,this.spinnerCouner=0,this.id=t.sliderElement.attr("id"),this.$window=i(window),this.spinner=i("#"+this.id+"-spinner"),this.$placeholder=i("#"+this.id+"-placeholder")}return e.prototype.start=function(){var i;this.parameters.scroll?(this.onScrollCallback=this.onScroll.bind(this),window.addEventListener("scroll",this.onScrollCallback,{capture:!0,passive:!0}),this.onScroll()):(this.parameters.fade&&(this.loadingArea=this.$placeholder,this.showSpinner("fadePlaceholder"),(i=this.spinner.find(".n2-ss-spinner-counter")).length&&(i.html("0%"),this.slider.stages.done("SlidesReady",function(){this.slider.backgrounds.loadDeferred.progress(function(t,e){i.html(Math.round(t/(e+1)*100)+"%")}.bind(this))}.bind(this)))),this.showSlider())},e.prototype.onScroll=function(){this.$window.scrollTop()+this.$window.height()>this.slider.sliderElement.offset().top+100&&(window.removeEventListener("scroll",this.onScrollCallback,{capture:!0,passive:!0}),this.showSlider())},e.prototype.loadLayerImages=function(){var t=i.Deferred();return this.slider.sliderElement.find(".n2-ss-layers-container").n2imagesLoaded().always(function(){t.resolve()}),t},e.prototype.showSlider=function(){this.slider.stages.done("ResizeFirst",this.stage1.bind(this))},e.prototype.stage1=function(){this.slider.responsive.isReadyToResize=!0,i.when.apply(i,this.slider.widgetDeferreds).done(this.stage2.bind(this))},e.prototype.stage2=function(){this.slider.responsive.doResize(),this.slider.finalizeStarterSlide(),i.when(this.slider.backgrounds.loadDeferred,this.loadLayerImages(),this.slider.stages.get("Fonts").getDeferred()).always(this.stage3.bind(this))},e.prototype.stage3=function(){this.slider.responsive.doResize(),this.slider.initLayerAnimations(),this.slider.stages.resolve("BeforeShow"),this.slider.widgets.onReady(),this.slider.responsive.alignElement.addClass("n2-ss-align-visible"),this.slider.sliderElement.addClass("n2-ss-loaded").removeClass("n2notransition"),this.spinner.find(".n2-ss-spinner-counter").html(""),this.removeSpinner("fadePlaceholder"),this.$placeholder.remove(),this.loadingArea=this.slider.sliderElement,i(window).scroll(),this.slider.stages.resolve("Show"),this.slider.startVisibilityCheck()},e.prototype.showSpinner=function(t){0===this.spinnerCouner&&this.spinner.appendTo(this.loadingArea).css("display",""),this.spinnerCouner++},e.prototype.removeSpinner=function(t){this.spinnerCouner--,this.spinnerCouner<=0&&(this.spinner.detach(),this.spinnerCouner=0)},e}),N2D("SmartSliderPlugins",function(t,i){function s(t){this.slider=t,this.plugins={}}s.prototype.add=function(t,e){this.plugins[t]=new e(this.slider)},s.prototype.get=function(t){return this.plugins[t]||!1};var n={},o=[];return{addPlugin:function(t,e){for(var i=0;i<o.length;i++)o[i].plugins.add(t,e);n[t]=e},addSlider:function(t){if(t.plugins===i)for(var e in t.plugins=new s(t),n)t.plugins.add(e,n[e]);o.push(t)}}}),N2D("ScrollTracker",function(t,e,i){function s(){this.started=!1,this.items=[],this.onScrollCallback=this.onScroll.bind(this)}return s.prototype.add=function(t,e,i,s){var n={$el:t,mode:e,onVisible:i,onHide:s,state:"unknown"};this.items.push(n),this._onScroll(n,Math.max(document.documentElement.clientHeight,window.innerHeight)),this.started||this.start()},s.prototype.start=function(){this.started||(window.addEventListener("scroll",this.onScrollCallback,{capture:!0,passive:!0}),this.started=!0)},s.prototype.onScroll=function(t){for(var e=Math.max(document.documentElement.clientHeight,window.innerHeight),i=0;i<this.items.length;i++)this._onScroll(this.items[i],e)},s.prototype._onScroll=function(t,e){var i=t.$el[0].getBoundingClientRect(),s=i.height>.7*e,n=!0;"partly-visible"===t.mode?(s&&(i.bottom<0||i.top>=i.height)||!s&&(i.bottom-i.height<0||0<=i.top-e+i.height))&&(n=!1):"not-visible"===t.mode&&(n=i.top-e<0&&0<i.top+i.height),!1===n?"hidden"!==t.state&&("function"==typeof t.onHide&&t.onHide(),t.state="hidden"):"visible"!==t.state&&("function"==typeof t.onVisible&&t.onVisible(),t.state="visible")},new s}),N2D("SmartSliderApi",function(h,o){function t(){this.sliders={},this.readys={},this.eventListeners={}}t.prototype.makeReady=function(t,e){if(this.sliders[t]=e,this.readys[t]!==o)for(var i=0;i<this.readys[t].length;i++)this.readys[t][i].call(e,e,e.sliderElement)},t.prototype.ready=function(t,e){this.sliders[t]!==o?e.call(this.sliders[t],this.sliders[t],this.sliders[t].sliderElement):(this.readys[t]===o&&(this.readys[t]=[]),this.readys[t].push(e))},t.prototype.on=function(t,e){this.eventListeners[t]===o&&(this.eventListeners[t]=[]),this.eventListeners[t].push(e)},t.prototype.off=function(t,e){if(this.eventListeners[t]!==o)for(var i=this.eventListeners[t].length-1;0<=i;i--)this.eventListeners[t][i]===e&&this.eventListeners[t].splice(i,1)},t.prototype.dispatch=function(t,e){if(this.eventListeners[t]!==o&&this.eventListeners[t].length)for(var i=this.eventListeners[t].length-1;0<=i;i--)this.eventListeners[t][i]&&this.eventListeners[t][i].call(e,e)},t.prototype.trigger=function(t,e,i){i&&i.preventDefault();var s=h(t),n=e.split(","),o=s.closest(".n2-ss-slide,.n2-ss-static-slide"),r=o.data("ss-last-event");s.data("ss-reset-events")||(s.data("ss-reset-events",1),o.on("layerAnimationPlayIn.resetCounter",function(t){t.data("ss-last-event","")}.bind(this,o)));for(var a=n.length-1,l=0;l<n.length;l++)n[l]===r&&(a=l);e=a===n.length-1?n[0]:n[a+1],o.data("ss-last-event",e),o.triggerHandler("ss"+e)},t.prototype.applyAction=function(t,e){var i,s;this.isClickAllowed(t)&&(i=t.currentTarget,(s=h(i).closest(".n2-ss-slider").data("ss"))[e].apply(s,Array.prototype.slice.call(arguments,2)))},t.prototype.applyActionWithClick=function(t){this.isClickAllowed(t)&&(nextend.shouldPreventClick||(t.preventDefault(),this.applyAction.apply(this,arguments)))},t.prototype.isClickAllowed=function(t){return!h.contains(t.currentTarget,h(t.target).closest('a[href!="#"], *[onclick][onclick!=""], *[data-n2click][data-n2click!=""], *[data-n2-lightbox]').get(0))},t.prototype.openUrl=function(t,e){var i,s,n;this.isClickAllowed(t)&&(s=(i=h(t.currentTarget)).data("href"),e===o&&(e=i.data("target")),"_blank"===e?((n=window.open()).opener=null,n.location=s):n2const.setLocation(s))};var n={focusOffsetTop:0,to:function(t){var e=h("html, body, .n2_iframe_application__content");"smooth"===h("html").css("scroll-behavior")?e.scrollTop(t):e.animate({scrollTop:t},window.n2ScrollSpeed||400)},top:function(){n.to(0)},bottom:function(){n.to(h(document).height()-h(window).height())},before:function(t){n.to(t.offset().top-h(window).height())},after:function(t){n.to(t.offset().top+t.height())},next:function(i,t){var e=h(t),s=-1;e.each(function(t,e){if(h(i).is(e)||h.contains(e,i))return s=t+1,!1}),-1!==s&&s<=e.length&&n.element(e.eq(s))},previous:function(i,t){var e=h(t),s=-1;e.each(function(t,e){if(h(i).is(e)||h.contains(e,i))return s=t-1,!1}),0<=s&&n.element(e.eq(s))},element:function(t){n.to(h(t).offset().top-n.focusOffsetTop)}};return t.prototype.scroll=function(t,e){var i;this.isClickAllowed(t)&&(t.preventDefault(),(i=this.findSliderByElement(t.target))&&(n.focusOffsetTop=i.responsive.focusOffsetTop),n[e].apply(window,Array.prototype.slice.call(arguments,2)))},t.prototype.findSliderByElement=function(t){return h(t).closest(".n2-ss-slider").data("ss")},window.n2ss=new t,window.n2ss}),N2D("SmartSliderAbstract",function($,undefined){function SmartSliderAbstract(t,e){this.editor=null,t instanceof $&&(t="#"+t.attr("id"));var i=t.substr(1);if(this.elementID=i,window[i]&&window[i]instanceof SmartSliderAbstract&&(!window[i].__$sliderElement||$.contains(document.body,window[i].__$sliderElement.get(0)))){if(window[i].sliderElement===undefined)return void console.error("Slider [#"+i+"] inited multiple times");if($.contains(document.body,window[i].sliderElement.get(0)))return void console.error("Slider [#"+i+"] embedded multiple times")}this.stages=new N2Classes.Stages,N2D(t,function(){return this}.bind(this)),this.isAdmin=!!e.admin,N2Classes.SmartSliderPlugins.addSlider(this),this.id=parseInt(i.replace("n2-ss-","")),window[i]=this,e.isDelayed!==undefined&&e.isDelayed?$(window).ready(function(){this.waitForExists(i,e)}.bind(this)):this.waitForExists(i,e)}SmartSliderAbstract.prototype.kill=function(){this.killed=!0;var e=this.sliderElement.attr("id"),t=$("#"+e+"-placeholder");t.length?t.remove():N2R("documentReady",function(t){t("#"+e+"-placeholder").remove()});var i=this.sliderElement.closest(".n2-ss-margin");i.length?i.remove():N2R("documentReady",function(t){this.sliderElement.closest(".n2-ss-margin").remove()}.bind(this));var s=this.sliderElement.closest(".n2-ss-align");s.length?s.remove():N2R("documentReady",function(t){this.sliderElement.closest(".n2-ss-align").remove()}.bind(this)),n2ss.makeReady(this.id,this)},SmartSliderAbstract.prototype.waitForExists=function(e,t){var i=$.Deferred(),s=function(){var t=$("#"+e);t.length?i.resolve(t):setTimeout(s,500)};i.done(this.onSliderExists.bind(this,e,t)),s()};var lazySliders=[];function lazySliderLoad(t,e){lazySliders.push({element:t.__$sliderElement.parent()[0],callback:e}),1===lazySliders.length&&(window.addEventListener("resize",lazySliderCheckScroll,{capture:!0}),window.addEventListener("scroll",lazySliderCheckScroll,{capture:!0,passive:!0}),N2Classes.SmartSliderApi.on("SliderResize",lazySliderCheckScroll),lazySliderCheckScroll())}function lazySliderCheckScroll(){for(var t,e=1.4*$(window).height(),i=0;i<lazySliders.length;i++){lazySliders[i].element.getBoundingClientRect().y<e&&(t=lazySliders[i].callback,lazySliders.splice(i,1),i--,t())}0===lazySliders.length&&(window.removeEventListener("resize",lazySliderCheckScroll,{capture:!0}),window.removeEventListener("scroll",lazySliderCheckScroll,{capture:!0,passive:!0}),N2Classes.SmartSliderApi.off("SliderResize",lazySliderCheckScroll))}return SmartSliderAbstract.prototype.onSliderExists=function(t,e,i){var s,n;this.__$sliderElement=i,this.stages.resolve("Exists"),"TEMPLATE"===i.prop("tagName")?(s=i.data("loading-type"),n=function(){var t=$(i.html());i.replaceWith(t),this.waitForDimension(t,e),$(window).triggerHandler("n2Rocket",[t])}.bind(this),"afterOnLoad"===s?N2R("windowLoad",lazySliderLoad.bind(this,this,n)):"afterDelay"===s?setTimeout(n,i.data("loading-delay")):n()):this.waitForDimension(i,e)},SmartSliderAbstract.prototype.waitForDimension=function(t,e){var i=function(){t.is(":visible")?this.onSliderHasDimension(t,e):setTimeout(i,200)}.bind(this);i()},SmartSliderAbstract.prototype.initCSS=function(){this.parameters.css&&$('<style type="text/css">'+this.parameters.css+"</style>").appendTo("head")},SmartSliderAbstract.prototype.onSliderHasDimension=function($sliderElement,parameters){this.stages.resolve("HasDimension"),this.killed=!1,this.isVisible=!0,n2const.isIE?$sliderElement.attr("data-ie",n2const.isIE):n2const.isEdge&&$sliderElement.attr("data-ie",n2const.isEdge),this.responsive=!1,this.mainAnimationLastChangeTime=0,this.currentSlide=null,this.currentRealSlide=null,this.staticSlides=[],this.slides=[],this.visibleRealSlides=[],this.visibleSlides=[],this.sliderElement=$sliderElement.data("ss",this),this.needBackgroundWrap=!1,this.blockCarousel=!1,this.parameters=$.extend({plugins:[],admin:!1,playWhenVisible:1,playWhenVisibleAt:.5,perspective:1e3,callbacks:"",autoplay:{},blockrightclick:!1,maintainSession:0,align:"normal",controls:{touch:"horizontal",keyboard:!1,mousewheel:!1,blockCarouselInteraction:1},hardwareAcceleration:!0,layerMode:{playOnce:0,playFirstLayer:1,mode:"skippable",inAnimation:"mainInEnd"},parallax:{enabled:0,mobile:0,horizontal:"mouse",vertical:"mouse",origin:"enter"},load:{},mainanimation:{},randomize:{randomize:0,randomizeFirst:0},responsive:{},lazyload:{enabled:0},postBackgroundAnimations:!1,initCallbacks:!1,dynamicHeight:0,titles:[],descriptions:[],backgroundParallax:{strength:0,tablet:0,mobile:0},alias:{id:0,smoothScroll:0,slideSwitch:0,scrollSpeed:400}},parameters),this.stages.resolve("Parameters"),this.disabled={layerAnimations:!1,layerSplitTextAnimations:!1,backgroundAnimations:!1,postBackgroundAnimations:!1},this.disableLayerAnimations!==undefined&&!0===this.disableLayerAnimations&&(this.disabled.layerAnimations=!0),n2const.isSamsungBrowser&&(this.disabled.layerSplitTextAnimations=!0,this.disabled.postBackgroundAnimations=!0),this.initCSS();try{eval(this.parameters.callbacks)}catch(t){console.error(t)}n2ss.makeReady(this.id,this),this.widgetDeferreds=[],this.sliderElement.on("addWidget",this.addWidget.bind(this)),this.isAdmin&&(this.changeTo=function(){}),this.load=new N2Classes.SmartSliderLoad(this,this.parameters.load),this.backgrounds=new N2Classes.SmartSliderBackgrounds(this),this.initSlides(),"function"==typeof this.parameters.initCallbacks&&this.parameters.initCallbacks.call(this,$),this.stages.done("VisibleSlides",this.onSlidesReady.bind(this)),this.initUI(),navigator.userAgent.match("UCBrowser")&&$("html").addClass("n2-ucbrowser")},SmartSliderAbstract.prototype.onSlidesReady=function(){this.stages.resolve("SlidesReady")},SmartSliderAbstract.prototype.initUI=function(){for(var i=0;i<this.realSlides.length;i++)this.realSlides[i].setNext(this.realSlides[i+1>this.realSlides.length-1?0:i+1]);this.widgets=new N2Classes.SmartSliderWidgets(this);var isHover=!1,hoverTimeout,eventName;if(this.sliderElement.on({universalenter:function(t){$(t.target).closest(".n2-full-screen-widget").length||(clearTimeout(hoverTimeout),isHover=!0,this.sliderElement.addClass("n2-hover"),this.widgets.setState("hover",!0))}.bind(this),universalleave:function(t){t.stopPropagation(),hoverTimeout=setTimeout(function(){isHover=!1,this.sliderElement.removeClass("n2-hover"),this.widgets.setState("hover",!1)}.bind(this),1e3)}.bind(this)}),this.parameters.carousel||this.initNotCarousel(),this.initHideArrow(),this.controls={},this.initMainAnimationWithLayerAnimation(),this.isAdmin||!this.parameters.parallax.enabled||!this.parameters.parallax.mobile&&(this.parameters.parallax.mobile||n2const.isMobile)||this.ready(function(){this.parallax=new N2Classes.LayerParallax(this,this.parameters.parallax),this.parallax.start(this.currentSlide),this.sliderElement.off(".parallax").on("SlideWillChange",function(t,e){this.parallax.start(e)}.bind(this))}.bind(this)),this.parameters.blockrightclick&&this.sliderElement.bind("contextmenu",function(t){t.preventDefault()}),this.initMainAnimation(),this.initResponsiveMode(),!this.killed){try{var removeHoverClassCB=function(){this.sliderElement.removeClass("n2-has-hover"),this.sliderElement[0].removeEventListener("touchstart",removeHoverClassCB,!!window.n2const.passiveEvents&&{passive:!0})}.bind(this);this.sliderElement[0].addEventListener("touchstart",removeHoverClassCB,!!window.n2const.passiveEvents&&{passive:!0})}catch(t){}this.initControls(),this.stages.resolve("UIReady"),this.isAdmin||(eventName="click",this.hasTouch()&&(eventName="n2click"),this.sliderElement.find("[data-n2click]").each(function(i,el){var el=$(el);el.on(eventName,function(e){eval(el.data("n2click"))})}),this.sliderElement.find("[data-n2middleclick]").on("mousedown",function(e){var el=$(this);2!=e.which&&4!=e.which||(e.preventDefault(),eval(el.data("n2middleclick")))})),this.load.start(),this.sliderElement.keypress(function(t){32!==t.charCode&&13!==t.charCode||($target=$(t.target).filter('[role="button"],[tabindex]').not("a,input,select,textarea"),$target.length&&(t.preventDefault(),$(t.target).click().triggerHandler("n2Activate")))}).on("mouseleave",function(t){$(t.currentTarget).blur()})}},SmartSliderAbstract.prototype.initSlides=function(){for(var t=this.sliderElement.find(".n2-ss-slide"),e=0;e<t.length;e++)this.slides.push(this.createSlide(t.eq(e),e));for(e=0;e<this.slides.length;e++)this.slides[e].init(),1===this.slides[e].$element.data("first")&&(this.originalRealStarterSlide=this.slides[e]);this.realSlides=this.slides,this.visibleSlides=this.slides,this.initSlidesEnd()},SmartSliderAbstract.prototype.initSlidesEnd=function(){this.afterRawSlidesReady(),this.stages.resolve("RawSlides"),this.randomize(this.realSlides),this.stages.resolve("RawSlidesOrdered"),this.initStaticSlides()},SmartSliderAbstract.prototype.initStaticSlides=function(){for(var t=this.sliderElement.find(".n2-ss-static-slide"),e=0;e<t.length;e++)this.staticSlides.push(new N2Classes.FrontendSliderStaticSlide(this,t.eq(e)))},SmartSliderAbstract.prototype.createSlide=function(t,e){return new N2Classes.FrontendSliderSlide(this,t,e)},SmartSliderAbstract.prototype.afterRawSlidesReady=function(){},SmartSliderAbstract.prototype.trigger=function(){this.sliderElement.triggerHandler.apply(this.sliderElement,arguments)},SmartSliderAbstract.prototype.publicTrigger=function(){this.trigger.apply(this,arguments),N2Classes.SmartSliderApi.dispatch(arguments[0],this)},SmartSliderAbstract.prototype.getVisibleSlides=function(t){return t===undefined&&(t=this.currentSlide),[t]},SmartSliderAbstract.prototype.getActiveSlides=function(t){return this.getVisibleSlides(t)},SmartSliderAbstract.prototype.findSlideBackground=function(t){return t.$element.find(".n2-ss-slide-background")},SmartSliderAbstract.prototype.getRealIndex=function(t){return t},SmartSliderAbstract.prototype.finalizeStarterSlide=function(){var t,e=this.originalRealStarterSlide;this.isAdmin?this.finalizeStarterSlideComplete(e):this.parameters.randomize.randomizeFirst?(e=this.visibleRealSlides[Math.floor(Math.random()*this.visibleRealSlides.length)],this.finalizeStarterSlideComplete(e)):window["ss"+this.id]!==undefined?"object"==typeof window["ss"+this.id]?window["ss"+this.id].done(this.overrideStarterSlideIndex.bind(this)):this.overrideStarterSlideIndex(window["ss"+this.id]):!this.isAdmin&&this.parameters.maintainSession&&window.localStorage!==undefined?(t=window.localStorage.getItem("ss-"+this.id),this.overrideStarterSlideIndex(t),this.sliderElement.on("mainAnimationComplete",function(t,e,i,s){window.localStorage.setItem("ss-"+this.id,s)}.bind(this))):this.finalizeStarterSlideComplete(e)},SmartSliderAbstract.prototype.overrideStarterSlideIndex=function(t){var e;null!==t&&this.realSlides[t]&&(e=this.realSlides[t]),this.finalizeStarterSlideComplete(e)},SmartSliderAbstract.prototype.finalizeStarterSlideComplete=function(t){t!==undefined&&t.isVisible||(t=this.visibleRealSlides[0]),t!==undefined?this.finalizeStarterSlideComplete2(t):(this.hide(),this.sliderElement.one({SliderResize:function(){this.finalizeStarterSlideComplete(t)}.bind(this)}))},SmartSliderAbstract.prototype.finalizeStarterSlideComplete2=function(t){t!==this.originalRealStarterSlide&&this.originalRealStarterSlide!==undefined&&this.originalRealStarterSlide.unsetActive(),this.responsive.onStarterSlide(t),this.stages.resolve("StarterSlide")},SmartSliderAbstract.prototype.randomize=function(t){this.parameters.randomize.randomize&&this.shuffleSlides(t)},SmartSliderAbstract.prototype.shuffleSlides=function(t){t.sort(function(){return.5-Math.random()});for(var e=t[0].$element.parent(),i=0;i<t.length;i++)t[i].$element.appendTo(e),t[i].setIndex(i)},SmartSliderAbstract.prototype.addWidget=function(t,e){this.widgetDeferreds.push(e)},SmartSliderAbstract.prototype.started=function(t){this.stages.done("UIReady",t.bind(this))},SmartSliderAbstract.prototype.ready=function(t){this.stages.done("Show",t.bind(this))},SmartSliderAbstract.prototype.startVisibilityCheck=function(){!this.isAdmin&&this.parameters.playWhenVisible?(this.checkIfVisibleCallback=this.checkIfVisible.bind(this),$(window).on("resize.n2-ss-visible"+this.id,this.checkIfVisibleCallback),this.sliderElement.on("mouseover.n2-ss-visible",this._markVisible.bind(this)),window.addEventListener("scroll",this.checkIfVisibleCallback,{capture:!0,passive:!0}),this.checkIfVisible()):this.stages.resolve("Visible")},SmartSliderAbstract.prototype.checkIfVisible=function(){var t=this.parameters.playWhenVisibleAt,e=$(window).scrollTop(),i=$(window).height(),s=$(document).height(),n=this.sliderElement[0].getBoundingClientRect(),o=i*t/2,r=e+o,a=e+i-o;e<o&&(r*=e/o),s-o<e+i&&(a+=e+i-s+o);var l=e+n.top,h=e+n.bottom;(this.isAdmin||l<=a&&r<=l||r<=h&&h<=a||l<=r&&a<=h)&&this._markVisible()},SmartSliderAbstract.prototype._markVisible=function(){this.sliderElement.off(".n2-ss-visible"),$(window).off(".n2-ss-visible"+this.id),window.removeEventListener("scroll",this.checkIfVisibleCallback,{capture:!0,passive:!0}),this.stages.resolve("Visible")},SmartSliderAbstract.prototype.visible=function(t){this.stages.done("Visible",t.bind(this))},SmartSliderAbstract.prototype.isPlaying=function(){return"ended"!==this.mainAnimation.getState()},SmartSliderAbstract.prototype.focus=function(t){var e=!1;if(this.responsive.parameters.focusUser&&!t&&(e=!0),e){var i=$(window).scrollTop(),s=this.responsive.focusOffsetTop,n=this.responsive.focusOffsetBottom,o=$(window).height(),r=this.sliderElement[0].getBoundingClientRect(),a=r.top-s,l=o-r.bottom-n,h=this.responsive.parameters.focusEdge,d="";"top-force"===h?d="top":"bottom-force"===h?d="bottom":a<=0&&l<=0||0<a&&0<l||(a<0?d="top"===h||"bottom"!==h&&-a<=l?"top":"bottom":l<0&&(d="top"!==h&&("bottom"===h||-l<=a)?"bottom":"top"));var c=i;if("top"===d?c=i-s+r.top:"bottom"===d&&(c=i+n+r.bottom-o),c!==i)return this._scrollTo(c,Math.abs(i-c))}return!0},SmartSliderAbstract.prototype._scrollTo=function(t,e){var i=$.Deferred();return window.nextendScrollFocus=!0,$("html, body").animate({scrollTop:t},e,function(){i.resolve(),setTimeout(function(){window.nextendScrollFocus=!1},100)}.bind(this)),i},SmartSliderAbstract.prototype.isChangeCarousel=function(t){return"next"===t?this.currentSlide.index+1>=this.slides.length:"previous"===t&&this.currentSlide.index-1<0},SmartSliderAbstract.prototype.initNotCarousel=function(){this.realSlides[0].setPrevious(!1),this.realSlides[this.realSlides.length-1].setNext(!1)},SmartSliderAbstract.prototype.initHideArrow=function(){var i=function(t){this.widgets.setState("nonCarouselFirst",!this.getUIPreviousSlide(t)),this.widgets.setState("nonCarouselLast",!this.getUINextSlide(t))}.bind(this);this.stages.done("StarterSlide",function(){i(this.currentSlide),this.sliderElement.on("SliderResize",function(){i(this.currentSlide)}.bind(this))}.bind(this)),this.sliderElement.on("SlideWillChange",function(t,e){i(e)})},SmartSliderAbstract.prototype.next=function(t,e){var i=this.currentSlide.getNext();return!(!i||!this.getUINextSlide(this.currentSlide))&&this.changeTo(i.index,!1,t,e)},SmartSliderAbstract.prototype.previous=function(t,e){var i=this.getUIPreviousSlide(this.currentSlide);return!!i&&this.changeTo(i.index,!0,t,e)},SmartSliderAbstract.prototype.isChangePossible=function(t){var e,i,s=!1;return"next"===t?(e=this.currentSlide.getNext())&&(s=e.index):"previous"!==t||(i=this.currentSlide.getPrevious())&&(s=i.index),!1!==s&&s!==this.currentSlide.index},SmartSliderAbstract.prototype.nextCarousel=function(t,e){return!!this.next(t,e)||this.changeTo(this.getFirstSlide().index,!1,t,e)},SmartSliderAbstract.prototype.getFirstSlide=function(){return this.slides[0].isVisible?this.slides[0]:this.slides[0].getNext()},SmartSliderAbstract.prototype.getSlideCount=function(){for(var t=0,e=0;e<this.slides.length;e++)this.slides[e].isVisible&&t++;return t},SmartSliderAbstract.prototype.directionalChangeToReal=function(t){this.directionalChangeTo(t)},SmartSliderAbstract.prototype.directionalChangeTo=function(t){t>this.currentSlide.index?this.changeTo(t,!1):this.changeTo(t,!0)},SmartSliderAbstract.prototype.changeTo=function(i,s,n,o){if((i=parseInt(i))===this.currentSlide.index)return!1;if(!this.slides[i].isVisible)return console.error("this slide is not visible on this device"),!1;this.trigger("SlideWillChange",[this.slides[i]]);var r=$.now();return $.when($.when.apply($,this.backgrounds.preLoadSlides(this.getVisibleSlides(this.slides[i]))),this.focus(n)).done(function(){var t,e;i!==this.currentSlide.index&&this.mainAnimationLastChangeTime<=r&&(this.mainAnimationLastChangeTime=r,"ended"===(t=this.mainAnimation.getState())?(n===undefined&&(n=!1),e=this.mainAnimation,o!==undefined&&(e=o),this._changeTo(i,s,n,o),e.changeTo(this.currentSlide,this.slides[i],s,n),this._changeCurrentSlide(i)):"initAnimation"!==t&&"playing"!==t||(this.sliderElement.off(".fastChange").one("mainAnimationComplete.fastChange",function(){this.changeTo.call(this,i,s,n,o)}.bind(this)),this.mainAnimation.timeScale(2*this.mainAnimation.timeScale())))}.bind(this)),!0},SmartSliderAbstract.prototype.setCurrentRealSlide=function(t){this.currentRealSlide=this.currentSlide=t},SmartSliderAbstract.prototype._changeCurrentSlide=function(t){this.setCurrentRealSlide(this.slides[t]),this.sliderElement.triggerHandler("sliderChangeCurrentSlide")},SmartSliderAbstract.prototype._changeTo=function(t,e,i,s){},SmartSliderAbstract.prototype.revertTo=function(t,e){this.slides[e].unsetActive(),this.slides[t].setActive(),this._changeCurrentSlide(t),this.trigger("SlideWillChange",[this.slides[t]])},SmartSliderAbstract.prototype.forceSetActiveSlide=function(t){t.setActive()},SmartSliderAbstract.prototype.forceUnsetActiveSlide=function(t){t.unsetActive()},SmartSliderAbstract.prototype.updateInsideSlides=function(t){for(var e=0;e<this.slides.length;e++)this.slides[e].setInside(0<=t.indexOf(this.slides[e]))},SmartSliderAbstract.prototype.playSlide=function(t){t.playIn()},SmartSliderAbstract.prototype.initMainAnimationWithLayerAnimation=function(){"forced"===this.parameters.layerMode.mode&&this.sliderElement.on("preChangeToPlay",function(t,e,i,s,n){i.handled=!0,s.$element.on("layerAnimationCompleteOut.layers",function(){s.$element.off("layerAnimationCompleteOut.layers"),e.resolve()}),s.playOut()}.bind(this)),this.sliderElement.on({mainAnimationStart:this.onMainAnimationStartSyncLayers.bind(this,this.parameters.layerMode),reverseModeEnabled:this.onMainAnimationStartSyncLayersReverse.bind(this,this.parameters.layerMode)})},SmartSliderAbstract.prototype.onMainAnimationStartSyncLayers=function(t,e,i,s,n){var o=this.slides[n];this.slides[s];"mainInStart"===t.inAnimation?o.$element.one("mainAnimationStartIn.layers",function(){o.$element.off("mainAnimationStartInCancel.layers"),this.playSlide(o)}.bind(this)):"mainInEnd"===t.inAnimation&&o.$element.one("mainAnimationCompleteIn.layers",function(){o.$element.off("mainAnimationStartInCancel.layers"),this.playSlide(o)}.bind(this)),o.$element.one("mainAnimationStartInCancel.layers",function(){o.$element.off("mainAnimationStartIn.layers"),o.$element.off("mainAnimationCompleteIn.layers")})},SmartSliderAbstract.prototype.onMainAnimationStartSyncLayersReverse=function(t,e,i){var s=this.slides[i];"mainInStart"===t.inAnimation?s.$element.one("mainAnimationStartIn.layers",function(){this.playSlide(s)}.bind(this)):"mainInEnd"===t.inAnimation&&s.$element.one("mainAnimationCompleteIn.layers",function(){this.sliderElement.off("mainAnimationComplete.layers"),this.playSlide(s)}.bind(this)),this.sliderElement.one("mainAnimationComplete.layers",function(){s.$element.off("mainAnimationStartIn.layers"),s.$element.off("mainAnimationCompleteIn.layers")})},SmartSliderAbstract.prototype.findSlideByElement=function(t){var e;for(t=$(t),e=0;e<this.realSlides.length;e++)if(1===this.realSlides[e].$element.has(t).length)return this.realSlides[e];for(e=0;e<this.staticSlides.length;e++)if(1===this.staticSlides[e].$element.has(t).length)return this.staticSlides[e];return!1},SmartSliderAbstract.prototype.findSlideIndexByElement=function(t){var e=this.findSlideByElement(t);return e||-1},SmartSliderAbstract.prototype.initMainAnimation=function(){this.mainAnimation=!1},SmartSliderAbstract.prototype.initResponsiveMode=function(){},SmartSliderAbstract.prototype.hasTouch=function(){return"0"!=this.parameters.controls.touch},SmartSliderAbstract.prototype.initControls=function(){if(!this.parameters.admin){if(this.hasTouch())switch(this.parameters.controls.touch){case"vertical":new N2Classes.SmartSliderControlTouchVertical(this);break;case"horizontal":new N2Classes.SmartSliderControlTouchHorizontal(this)}this.parameters.controls.keyboard&&(this.controls.touch!==undefined?new N2Classes.SmartSliderControlKeyboard(this,this.controls.touch.axis):new N2Classes.SmartSliderControlKeyboard(this,"horizontal")),this.parameters.controls.mousewheel&&new N2Classes.SmartSliderControlMouseWheel(this),this.controlAutoplay=new N2Classes.SmartSliderControlAutoplay(this,this.parameters.autoplay),this.controlFullscreen=new N2Classes.SmartSliderControlFullscreen(this),this.parameters.alias.id&&new N2Classes.SmartSliderControlAlias(this,this.parameters.alias)}},SmartSliderAbstract.prototype.getSlideIndex=function(t){return t},SmartSliderAbstract.prototype.slideToID=function(t,e,i){for(var s=0;s<this.realSlides.length;s++)if(this.realSlides[s].id===t)return this.slide(this.getSlideIndex(s),e,i);var n=$('[data-id="'+t+'"]').closest(".n2-ss-slider");return!(!n.length||this.id!==n.data("ss").id)||(n.length?($("html, body").animate({scrollTop:n.offset().top},400),n.data("ss").slideToID(t,e,!0)):void 0)},SmartSliderAbstract.prototype.slide=function(t,e,i){return 0<=t&&t<this.slides.length&&(e===undefined?this.parameters.carousel&&this.currentSlide.index===this.slides.length-1&&0===t?this.next(i):this.currentSlide.index>t?this.changeTo(t,!0,i):this.changeTo(t,!1,i):this.changeTo(t,!e,i))},SmartSliderAbstract.prototype.hide=function(){this.isVisible&&(this.responsive.alignElement.addClass("n2-ss-slider-has-no-slide"),this.load.$placeholder.addClass("n2-ss-slider-has-no-slide"),this.isVisible=!1)},SmartSliderAbstract.prototype.show=function(){this.isVisible||(this.responsive.alignElement.removeClass("n2-ss-slider-has-no-slide"),this.load.$placeholder.removeClass("n2-ss-slider-has-no-slide"),$(window).scroll(),this.isVisible=!0)},SmartSliderAbstract.prototype.startAutoplay=function(){return this.controlAutoplay!==undefined&&(this.controlAutoplay.setState("pausedSecondary",0),!0)},SmartSliderAbstract.prototype.pauseAutoplay=function(){return this.controlAutoplay!==undefined&&(this.controlAutoplay.setState("pausedSecondary",1),!0)},SmartSliderAbstract.prototype.initLayerAnimations=function(){for(var t=0;t<this.staticSlides.length;t++)this.staticSlides[t].initLayerAnimations();for(var e=0;e<this.realSlides.length;e++)this.realSlides[e].initLayerAnimations();this.sliderElement.on("SliderDeviceOrientation",this._deviceSlides.bind(this)),this.sliderElement.on("SliderResize",this._resizeSlides.bind(this)),this.isAdmin||this.visible(function(){this.parameters.layerMode.playFirstLayer?this.currentSlide.playIn():this.currentSlide.playSpecialEventOnly()}.bind(this))},SmartSliderAbstract.prototype._deviceSlides=function(t,e){for(var i=0;i<this.staticSlides.length;i++)this.staticSlides[i].setDevice.call(this.staticSlides[i],e.device);for(var s=0;s<this.realSlides.length;s++)this.realSlides[s].setDevice.call(this.realSlides[s],e.device)},SmartSliderAbstract.prototype._resizeSlides=function(t,e,i){for(var s=0;s<this.staticSlides.length;s++)this.staticSlides[s].resize.apply(this.staticSlides[s],arguments);for(var n=0;n<this.realSlides.length;n++)this.realSlides[n].resize.apply(this.realSlides[n],arguments)},SmartSliderAbstract.prototype.getSlideBackgroundContainer=function(){},SmartSliderAbstract.prototype.getPerspective=function(){return this.parameters.perspective},SmartSliderAbstract.prototype.getAnimationAxis=function(){return"horizontal"},SmartSliderAbstract.prototype.getDirectionPrevious=function(){return n2const.isRTL()&&"horizontal"===this.getAnimationAxis()?"next":"previous"},SmartSliderAbstract.prototype.getDirectionNext=function(){return n2const.isRTL()&&"horizontal"===this.getAnimationAxis()?"previous":"next"},SmartSliderAbstract.prototype.previousWithDirection=function(){return this[this.getDirectionPrevious()]()},SmartSliderAbstract.prototype.nextWithDirection=function(){return this[this.getDirectionNext()]()},SmartSliderAbstract.prototype.getUIPreviousSlide=function(t){return t.getPrevious()},SmartSliderAbstract.prototype.getUINextSlide=function(t){return t.getNext()},SmartSliderAbstract}),N2D("Stages",function(o,e){function t(){this.stages={}}function i(t){this.n=t,this.d=o.Deferred()}return t.prototype.get=function(t){return this.stages[t]===e&&(this.stages[t]=new i(t)),this.stages[t]},t.prototype.resolve=function(t){this.get(t).resolve()},t.prototype.done=function(t,e){var i;if("string"==typeof t)i=this.get(t);else{for(var s=[],n=0;n<t.length;n++)s.push(this.get(t[n]).getDeferred());i=o.when.apply(o,s)}i.done(e)},t.prototype.resolved=function(t){return this.get(t).resolved()},i.prototype.getDeferred=function(){return this.d},i.prototype.resolve=function(){this.resolved()||(this.d.resolve(),this.d=!0)},i.prototype.done=function(t){!0===this.d?t():this.d.done(t)},i.prototype.resolved=function(){return!0===this.d||"resolved"===this.d.state()},t}),N2D("SmartSliderWidget",function(t,e){"use strict";function i(t){this.slider=t,this.slider.started(this.register.bind(this))}return i.prototype.register=function(){this.slider.widgets.has(this.key)||(this.slider.widgets.register(this.key,this),this.onStart())},i.prototype.onStart=function(){},i.prototype.isVisible=function(){return this.$widget.is(":visible")},i.prototype.calculateDimensions=function(t){this.isVisible()?(t[this.key+"width"]=this.$widget.outerWidth(),t[this.key+"height"]=this.$widget.outerHeight()):(t[this.key+"width"]=0,t[this.key+"height"]=0)},i.prototype.filterSliderVerticalCSS=function(t){},i}),N2D("SmartSliderWidgets",function($,undefined){function SmartSliderWidgets(t){this.slider=t,this.sliderElement=t.sliderElement,this.controls={previous:undefined,next:undefined,bullet:undefined,autoplay:undefined,indicator:undefined,bar:undefined,thumbnail:undefined,shadow:undefined,fullscreen:undefined,html:undefined},this.excludedSlides={},this.states={hover:!1,nonCarouselFirst:!1,nonCarouselLast:!1,currentSlideIndex:-1,singleSlide:!1}}return SmartSliderWidgets.prototype.register=function(t,e){this.controls[t]=e},SmartSliderWidgets.prototype.has=function(t){return this.controls[t]!==undefined},SmartSliderWidgets.prototype.setState=function(t,e){if(this.states[t]!=e){this.states[t]=e;var i=t.split(".");switch(i[0]){case"hide":this.onStateChangeSingle(i[1]);break;case"nonCarouselFirst":this.onStateChangeSingle(this.slider.getDirectionPrevious());break;case"nonCarouselLast":this.onStateChangeSingle(this.slider.getDirectionNext());break;default:this.onStateChangeAll()}}},SmartSliderWidgets.prototype.onStateChangeAll=function(){for(var t in this.controls)this.onStateChangeSingle(t)},SmartSliderWidgets.prototype.onStateChangeSingle=function(t){var e,i;this.controls[t]&&(e=!0,this.controls[t].$widget.hasClass("n2-ss-widget-display-hover")&&(e=this.states.hover),e&&(t===this.slider.getDirectionPrevious()&&this.states.nonCarouselFirst||t===this.slider.getDirectionNext()&&this.states.nonCarouselLast)&&(e=!1),e&&(i=t+"-"+(this.states.currentSlideIndex+1),this.excludedSlides[i]&&(e=!1)),e&&this.states["hide."+t]!==undefined&&this.states["hide."+t]&&(e=!1),e&&this.states.singleSlide&&("previous"!==t&&"next"!==t&&"bullet"!==t&&"autoplay"!==t&&"indicator"!==t||(e=!1)),this.controls[t].$widget.toggleClass("n2-ss-widget-hidden",!e))},SmartSliderWidgets.prototype.onReady=function(){this.slider.sliderElement.on("visibleSlidesChanged",function(){this.setState("singleSlide",this.slider.visibleSlides.length<=1)}.bind(this)),this.setState("singleSlide",this.slider.visibleSlides.length<=1),this.$vertical=this.sliderElement.find('[data-position="above"],[data-position="below"]').not(".nextend-shadow");var t,e=!1;for(var i in this.controls)if(this.controls[i]!==undefined){var s=this.controls[i].$widget.attr("data-exclude-slides");if(s!==undefined){for(var n=s.split(","),o=n.length-1;0<=o;o--){var r=n[o].split("-");if(2===r.length){var a=parseInt(r[0]),l=parseInt(r[1]);if(a<=l)for(var h=a;h<=l;h++)n.push(h)}else n[o]=parseInt(n[o])}if(0<n.length){for(o=0;o<n.length;o++)this.excludedSlides[i+"-"+n[o]]=!0;e=!0}}}e&&((t=function(t,e){this.setState("currentSlideIndex",e.index)}.bind(this))(null,this.slider.currentRealSlide),this.slider.sliderElement.on("SlideWillChange",t)),this.variableElements={top:this.sliderElement.find("[data-sstop]"),right:this.sliderElement.find("[data-ssright]"),bottom:this.sliderElement.find("[data-ssbottom]"),left:this.sliderElement.find("[data-ssleft]")},this.slider.responsive.addFilter("SliderVerticalCSS",this.filterSliderVerticalCSS.bind(this)),this.forceLayoutComposition(),this.onStateChangeAll(),this.slider.stages.resolve("WidgetsReady")},SmartSliderWidgets.prototype.calculateDimensions=function(){for(var t in this.controls)this.controls[t]!==undefined?this.controls[t].calculateDimensions(this.slider.responsive.resizeContext):(this.slider.responsive.resizeContext[t+"width"]=0,this.slider.responsive.resizeContext[t+"height"]=0)},SmartSliderWidgets.prototype.getDimensions=function(){this.calculateDimensions();var t=$.extend(!0,{},this.slider.responsive.resizeContext);return t.width=t.sliderWidth,t.height=t.sliderHeight,t.outerwidth=this.sliderElement.parent().width(),t.outerheight=this.sliderElement.parent().height(),t.canvaswidth=t.slideWidth,t.canvasheight=t.slideHeight,t.paneWidth!==undefined&&(t.panewidth=t.paneWidth),t.margintop=t.marginright=t.marginbottom=t.marginleft=0,t},SmartSliderWidgets.prototype.dimensionsToVariables=function(t){var e="";for(var i in t){var s=t[i];"number"==typeof s&&(e+="var "+i+" = "+s+";")}return e},SmartSliderWidgets.prototype.forceLayoutComposition=function(){for(var t=this.filterSliderVerticalCSS([]),e=0;e<t.length;e++)t[e].flush()},SmartSliderWidgets.prototype.filterSliderVerticalCSS=function(cssData){var temp,dimensions=this.getDimensions();for(var k in this.dimensions=dimensions,this.controls)this.controls[k]!==undefined&&this.controls[k].filterSliderVerticalCSS(cssData);for(var k in eval(this.dimensionsToVariables(dimensions)),this.variableElements)for(var i=0;i<this.variableElements[k].length;i++){var el=this.variableElements[k].eq(i);try{var value=eval(el.data("ss"+k)),temp={};temp[k]=value+"px",cssData.push(new N2Classes.CSSData(el,temp))}catch(t){console.log(el," position variable: "+t.message+": ",el.data("ss"+k))}}return cssData},SmartSliderWidgets}),N2D("SmartSliderPluginLightbox",["SmartSliderPlugins","litebox"],function(r,a){function t(t){t.isAdmin||(this.slider=t).stages.done("Visible",this.onVisible.bind(this))}t.prototype.onVisible=function(){if(this.slider.parameters.plugins.lightbox!==a){this.parameters=r.extend({label:""},this.slider.parameters.plugins.lightbox),this.onVisibleRealSlidesChanged(),this.slider.sliderElement.on({visibleRealSlidesChanged:this.onVisibleRealSlidesChanged.bind(this)});var t="click";this.slider.hasTouch()&&(t="n2click");for(var e=0;e<this.slider.realSlides.length;e++)this.slider.realSlides[e].getLightboxImage()&&this.slider.realSlides[e].$element.css("cursor","zoom-in").on(t,function(t,e){n2ss.isClickAllowed(e)&&!r(e.target).hasClass("smart-slider-overlay")&&setTimeout(function(){"ended"===this.slider.mainAnimation.state&&this.openLightbox(t)}.bind(this),10)}.bind(this,this.slider.realSlides[e]))}},t.prototype.onVisibleRealSlidesChanged=function(){this.$lightboxes!==a&&this.$lightboxes.remove(),this.$lightboxes=r();for(var t=0,e=0;t<this.slider.visibleRealSlides.length;t++){var i=this.slider.visibleRealSlides[t],s=i.getLightboxImage();if(s){var n={slide:i,index:e};switch(this.parameters.label){case"name":n.title=i.getTitle();break;case"namemore":n.title=i.getTitle(),n.description=i.getDescription()}var o=r('<a href="'+s+'" data-n2-lightbox="" data-litebox-group="'+this.slider.id+'" class="nolightbox no-lightbox" style="display:none;"></a>').data(n).on("click",function(t){t.stopPropagation()}).appendTo(i.$element);i.$element.data("$lightbox",o),this.$lightboxes=this.$lightboxes.add(o),e++}}this.$lightboxes.liteBox({blockrightclick:this.slider.parameters.blockrightclick,callbackBeforeOpen:function(t){this.$element.trigger("mediaStarted","lightbox")},callbackAfterClose:function(){this.$element.trigger("mediaEnded","lightbox")},callbackPrev:function(){var t=this.$currentLightboxedImage.data("index")-1;t<0&&(t=this.$lightboxes.length-1),this.$currentLightboxedImage=this.$lightboxes.eq(t);var e=this.$currentLightboxedImage.data("slide");this.slider.directionalChangeTo(e.group.index)}.bind(this),callbackNext:function(){var t=this.$currentLightboxedImage.data("index")+1;t===this.$lightboxes.length&&(t=0),this.$currentLightboxedImage=this.$lightboxes.eq(t);var e=this.$currentLightboxedImage.data("slide");this.slider.directionalChangeTo(e.group.index)}.bind(this)})},t.prototype.openLightbox=function(t){this.$currentLightboxedImage=t.$element.data("$lightbox"),this.$currentLightboxedImage.trigger("click")},N2Classes.SmartSliderPlugins.addPlugin("lightbox",t)}),N2D("SmartSliderPluginParticleJS",["SmartSliderPlugins","particlesJS"],function(i,t){function e(t){(this.slider=t).stages.done("Parameters",function(){this.slider.parameters.particlejs&&t.stages.done("BeforeShow",this.onBeforeShow.bind(this))}.bind(this))}e.prototype.onBeforeShow=function(){this.start(this.slider.parameters.particlejs)},e.prototype.start=function(t){if(this.pJS&&(this.pJS.pJS.fn.vendors.destroypJS(),this.slider.sliderElement.off(".particleJS")),t){if(!t.mobile&&n2const.isPhone)return;var e=this.slider.getSlideBackgroundContainer();this.pJS=N2Classes.particlesJS(e,i.extend(!0,t,{interactivity:{detect_on:this.slider.sliderElement[0]}})),this.slider.sliderElement.on("SliderResize.particleJS",function(){this.pJS.pJS.fn.resize()}.bind(this))}},N2Classes.SmartSliderPlugins.addPlugin("particleJS",e)}),N2D("SmartSliderMainAnimationAbstract",function(r,t){function s(t,e){this.state="ended",this.isTouch=!1,this.isReverseAllowed=!0,this.isReverseEnabled=!1,this.reverseSlideIndex=null,this.isNoAnimation=!1,this.slider=t,this.parameters=r.extend({duration:1500,ease:"easeInOutQuint"},e),this.parameters.duration/=1e3,this.sliderElement=t.sliderElement,this.timeline=new NextendTimeline({paused:!0}),this.sliderElement.on("mainAnimationStart",function(t,e,i,s){this._revertCurrentSlideIndex=i,this._revertNextSlideIndex=s}.bind(this)),this.slider.stages.done("ResponsiveStart",this.init.bind(this))}return s.prototype.init=function(){this.responsive=this.slider.responsive},s.prototype.enableReverseMode=function(){this.isReverseEnabled=!0,this.reverseTimeline=new NextendTimeline({paused:!0}),this.slider.trigger("reverseModeEnabled",this.reverseSlideIndex)},s.prototype.disableReverseMode=function(){this.isReverseEnabled=!1},s.prototype.setTouch=function(t){this.isTouch=t},s.prototype.setTouchProgress=function(t){"ended"!==this.state&&(this.isReverseEnabled?0===t?(this.reverseTimeline.progress(0),this.timeline.progress(t,!1)):0<=t&&t<=1?(this.reverseTimeline.progress(0),this.timeline.progress(t)):t<0&&-1<=t&&(this.timeline.progress(0),this.reverseTimeline.progress(Math.abs(t))):t<=0?this.timeline.progress(Math.max(t,1e-6),!1):0<=t&&t<=1&&this.timeline.progress(t))},s.prototype.setTouchEnd=function(t,e,i){"ended"!=this.state&&(this.isReverseEnabled?this._setTouchEndWithReverse(t,e,i):this._setTouchEnd(t,e,i))},s.prototype._setTouchEnd=function(t,e,i){t&&0<e?(this.fixTouchDuration(this.timeline,e,i),this.timeline.play()):(this.revertCB(this.timeline),this.fixTouchDuration(this.timeline,1-e,i),this.timeline.reverse(),this.willRevertTo(this._revertCurrentSlideIndex,this._revertNextSlideIndex))},s.prototype._setTouchEndWithReverse=function(t,e,i){t?e<0&&0<this.reverseTimeline.totalDuration()?(this.fixTouchDuration(this.reverseTimeline,e,i),this.reverseTimeline.play(),this.willRevertTo(this.reverseSlideIndex,this._revertNextSlideIndex)):(this.willCleanSlideIndex(this.reverseSlideIndex),this.fixTouchDuration(this.timeline,e,i),this.timeline.play()):(e<0?(this.revertCB(this.reverseTimeline),this.fixTouchDuration(this.reverseTimeline,1-e,i),this.reverseTimeline.reverse()):(this.revertCB(this.timeline),this.fixTouchDuration(this.timeline,1-e,i),this.timeline.reverse()),this.willCleanSlideIndex(this.reverseSlideIndex),this.willRevertTo(this._revertCurrentSlideIndex,this._revertNextSlideIndex))},s.prototype.fixTouchDuration=function(t,e,i){var s=t.totalDuration(),n=Math.max(s/3,Math.min(s,i/Math.abs(e)/1e3));n!==s&&t.totalDuration(n)},s.prototype.getState=function(){return this.state},s.prototype.timeScale=function(){return 0<arguments.length?(this.timeline.timeScale(arguments[0]),this):this.timeline.timeScale()},s.prototype.preChangeToPlay=function(t,e,i){var s={handled:!1};this.slider.trigger("preChangeToPlay",[t,s,e,i]),s.handled||t.resolve()},s.prototype.changeTo=function(e,i,t,s){var n,o;this._initAnimation(e,i,t),this.state="initAnimation",this.timeline.paused(!0),this.timeline.eventCallback("onStart",this.onChangeToStart,[e,i,s],this),this.timeline.eventCallback("onComplete",this.onChangeToComplete,[e,i,s],this),this.timeline.eventCallback("onReverseComplete",null),this.revertCB=function(t){t.eventCallback("onReverseComplete",this.onReverseChangeToComplete,[i,e,s],this)}.bind(this),this.slider.parameters.dynamicHeight&&(n=new NextendTimeline,this.slider.responsive.resizeStage2HeightAnimated(n,i,.6),this.timeline.add(n)),this.isTouch?e.onOutAnimationsPlayed():((o=r.Deferred()).done(function(){this.play()}.bind(this.timeline)),this.preChangeToPlay(o,e,i))},s.prototype.willRevertTo=function(t,e){this.slider.trigger("mainAnimationWillRevertTo",[t,e]),this.sliderElement.one("mainAnimationComplete",this.revertTo.bind(this,t,e))},s.prototype.revertTo=function(t,e){this.slider.revertTo(t,e),this.slider.slides[e].triggerHandler("mainAnimationStartInCancel")},s.prototype.willCleanSlideIndex=function(t){this.sliderElement.one("mainAnimationComplete",this.cleanSlideIndex.bind(this,t))},s.prototype.cleanSlideIndex=function(){},s.prototype._initAnimation=function(t,e,i){this.slider.updateInsideSlides([t,e])},s.prototype.onChangeToStart=function(t,e,i){this.state="playing";var s=[this,t.index,e.index,i];this.slider.trigger("mainAnimationStart",s),t.triggerHandler("mainAnimationStartOut",s),e.triggerHandler("mainAnimationStartIn",s)},s.prototype.onChangeToComplete=function(t,e,i){var s=[this,t.index,e.index,i];this.clearTimelines(),this.disableReverseMode(),t.triggerHandler("mainAnimationCompleteOut",s),e.triggerHandler("mainAnimationCompleteIn",s),this.state="ended",this.slider.updateInsideSlides([e]),i||e.focus(),this.slider.trigger("mainAnimationComplete",s)},s.prototype.onReverseChangeToComplete=function(t,e,i){s.prototype.onChangeToComplete.apply(this,arguments)},s.prototype.clearTimelines=function(){this.revertCB=function(){},this.timeline.clear(),this.timeline.timeScale(1)},s.prototype.getEase=function(){return this.isTouch?"linear":this.parameters.ease},s}),N2D("SmartSliderPostBackgroundAnimation",function(h,d){var c={default:5,superSlow:20,slow:10,normal:5,fast:3,superFast:1.5},p={default:1,superSoft:.3,soft:.6,normal:1,strong:1.5,superStrong:2};function t(t,e){this.tween=null,this.lastTween=null,this.slider=t,this.mainAnimation=e,this.isFirst=!0,this.visibleAddedButNotPlayed=!1,this.parameters=h.extend({data:0,speed:"default",strength:"default"},t.parameters.postBackgroundAnimations),this.ratios={slideW:1,slideH:1},this.slider.stages.done("StarterSlide",this.init.bind(this))}return t.prototype.init=function(){this.backgrounds=this.slider.backgrounds,this.tweens=[],this.images=this.backgrounds.getBackgroundImages();for(var t=0;t<this.images.length;t++)this.images[t]&&this.images[t].hasImage()?(this.tweens[t]=this.images[t].loadDeferred,this.images[t].loadDeferred.done(function(t){this.tweens[t]=this.getAnimation(t,this.images[t])}.bind(this,t))):this.tweens[t]=!1;this.playOnce=this.slider.parameters.layerMode.playOnce,this.playFirst=this.slider.parameters.layerMode.playFirstLayer;var e=this.slider.currentSlide.index;this.tweens[e]&&h.when(this.tweens[e]).done(function(){this.tween=this.tweens[e],this.playFirst?this.addVisiblePlay():this.tween&&this.tween.progress(1,!1)}.bind(this)),this.slider.sliderElement.on({mainAnimationStart:this.onMainAnimationStart.bind(this),mainAnimationComplete:this.stop.bind(this),SliderResize:this.onResize.bind(this),mainAnimationWillRevertTo:this.onMainAnimationWillRevertTo.bind(this),SlideForceChange:function(t,e,i){this.prepareToSwitchSlide(e,i)}.bind(this)})},t.prototype.addVisiblePlay=function(){this.visibleAddedButNotPlayed||(this.visibleAddedButNotPlayed=!0,this.slider.visible(this.play.bind(this)))},t.prototype.onMainAnimationStart=function(){this.isFirst=!1,this.mainAnimation.hasBackgroundAnimation()||this.mainAnimation.isTouch?this.slider.sliderElement.one("mainAnimationComplete",this.play.bind(this)):this.play()},t.prototype.onMainAnimationWillRevertTo=function(t,e,i){this.lastTween=this.tween,this.tween=!1},t.prototype.onResize=function(t,e){this.ratios={slideW:e.slideW,slideH:e.slideH};for(var i=0;i<this.tweens.length;i++){var s=this.tweens[i];s&&s.invalidate&&s.invalidate()}},t.prototype.getAnimation=function(t,e){if(!e.elements.image)return!1;var i,s=this.parameters.data,n=this.parameters.speed,o=this.parameters.strength;if(this.slider.slides[t].postBackgroundAnimation&&(s=(i=this.slider.slides[t].postBackgroundAnimation).data,n=i.speed,o=i.strength),!s)return!1;var r=h.extend(!0,{},s.animations[Math.floor(Math.random()*s.animations.length)]);r.from.transformOrigin===d&&(r.from.transformOrigin=s.transformOrigin),(n2const.isFirefox||n2const.isIE<=11)&&NextendTween.set(e.elements.image.$background.parent(),{rotationZ:"0.001deg"}),NextendTween.set(e.elements.image.$background,{transformOrigin:r.from.transformOrigin,backfaceVisibility:"hidden",transformStyle:"flat",overflow:"hidden"}),r.to.paused=!0;for(var a=0;a<r.strength.length;a++){var l=r.strength[a];"scale"===l?(r.from.scale=1+(r.from.scale-1)*p[o],r.to.scale=1+(r.to.scale-1)*p[o]):(r.from[l]*=p[o],r.to[l]*=p[o])}return r.from.x!==d&&(r.from.x=function(t){return this.ratios.slideW*t}.bind(this,r.from.x)),r.from.y!==d&&(r.from.y=function(t){return this.ratios.slideH*t}.bind(this,r.from.y)),r.to.x!==d&&(r.to.x=function(t){return this.ratios.slideW*t}.bind(this,r.to.x)),r.to.y!==d&&(r.to.y=function(t){return this.ratios.slideH*t}.bind(this,r.to.y)),e.elements.image.$background.css("will-change","transform"),NextendTween.fromTo(e.elements.image.$background,c[n],r.from,r.to)},t.prototype.prepareToSwitchSlide=function(t,e){t&&this.tweens[t.index]?(this.mainAnimation.hasBackgroundAnimation()&&this.tweens[t.index].pause(),this.lastTween=this.tweens[t.index]):this.lastTween=!1,this.tweens[e.index]?this.tween=this.tweens[e.index]:this.tween=!1},t.prototype.play=function(){this.visibleAddedButNotPlayed=!1,!this.tween||this.playOnce&&0!==this.tween.progress()||this.tween.play()},t.prototype.stop=function(){!this.playOnce&&this.lastTween&&this.lastTween.pause(0)},t}),N2D("SmartSliderControlAlias",function(s,e){"use strict";function t(t,e){var i="#"+t.elementID;this.elements=s.extend({sliderSelector:i,$slider:s(i),$sliderAlign:s(i+"-align")}),this.parameters=s.extend({slider:t,slideCount:t.slides.length,alias:s(i).data("alias"),href:window.location.href},e),this.parameters.anchor=this.getAnchor(),this.parameters.alias&&(this.createElement(this.parameters.alias),this.initSmoothScroll(),this.parameters.slideSwitch&&(this.switchOnLoad(),this.switchOnClick()))}return t.prototype.getAnchor=function(){var t,e={hasAnchor:0},i=window.location.hash.substr(1);return i&&(i===this.parameters.alias||this.parameters.slideSwitch&&-1<i.indexOf(this.parameters.alias)?e.hasAnchor=1:this.parameters.href=this.parameters.href.replace("#"+i,""),-1<i.indexOf("-")&&(t=i.split("-"),e.number=t[t.length-1])),e},t.prototype.switchOnLoad=function(){this.createAnchorElements();var t=this.parameters.anchor.number;t===e&&this.parameters.slideSwitch&&(t=this.getParameterNumber()),null!==t&&(t--,window["ss"+this.parameters.slider.id]=t,N2R("windowLoad",function(t){this.smoothScrollTo(this.elements.$slider)}.bind(this)))},t.prototype.switchOnClick=function(){var i;N2R("windowLoad",function(){for(var t=1;t<this.parameters.slideCount+1;t++)i="#"+this.parameters.alias+"-"+t,s('a[href="'+i+'"]').on("click",function(t,e){this.switchToSlide(t-1),this.smoothScrollTo(s(i),e)}.bind(this,t))}.bind(this))},t.prototype.switchToSlide=function(i){N2R(this.elements.sliderSelector,function(t,e){e.slide(i)})},t.prototype.createAnchorElements=function(){if(this.parameters.scroll)for(var t=1;t<this.parameters.slideCount+1;t++)this.createElement(this.parameters.alias+"-"+t)},t.prototype.createElement=function(t){s("<div></div>").attr("id",t).css({height:0,lineHeight:0,minHeight:0,margin:0,padding:0}).insertBefore(this.elements.$sliderAlign)},t.prototype.initSmoothScroll=function(){N2R("windowLoad",function(e){var i="#"+this.parameters.alias;e("a[href='"+i+"']").on("click",function(t){this.smoothScrollTo(e(i),t,1)}.bind(this)),this.initAnchorSmoothScroll()}.bind(this))},t.prototype.initAnchorSmoothScroll=function(){this.parameters.anchor.hasAnchor&&this.smoothScrollTo(this.elements.$slider)},t.prototype.getParameterNumber=function(){var s={};return this.parameters.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(t,e,i){s[e]=i}),s[this.parameters.alias]!==e?parseInt(s[this.parameters.alias]):null},t.prototype.smoothScrollTo=function(t,e,i){(!this.parameters.slideSwitch||this.parameters.scroll||i)&&this.parameters.smoothScroll&&(e&&e.preventDefault(),s("html, body").animate({scrollTop:t.offset().top},this.parameters.scrollSpeed))},t}),N2D("SmartSliderControlAutoplay",function(i,s){"use strict";function t(t,e){this.slider=t,this.state={enabled:1,paused:1,pausedSecondary:0,mainAnimationPlaying:0,wait:0},this.wait=new N2Classes.SmartSliderControlAutoplayWait(this),this._currentCount=1,this.autoplayToSlide=0,this.autoplayToSlideIndex=-1,this.parameters=i.extend({enabled:0,start:1,duration:8e3,autoplayLoop:0,allowReStart:0,pause:{mouse:"enter",click:!0,mediaStarted:!0},resume:{click:0,mouse:0,mediaEnded:!0},interval:1,intervalModifier:"loop",intervalSlide:"current"},e),this.clickHandled=!1,(t.controls.autoplay=this).parameters.enabled?(this.parameters.duration/=1e3,this.slider.visible(this.onReady.bind(this))):this.disable()}return t.prototype.preventClickHandle=function(){this.clickHandled=!0,setTimeout(function(){this.clickHandled=!1}.bind(this),300)},t.prototype.onReady=function(){this.timeline=NextendTween.to({_progress:0},this.getSlideDuration(this.slider.currentSlide.index),{_progress:1,paused:!0,onComplete:this.next.bind(this)}),this.slider.sliderElement.on({"BeforeCurrentSlideChange.autoplay":function(){this.wait.resolveWeak(),this.setState("mainAnimationPlaying",1)}.bind(this),"CurrentSlideChanged.autoplay":function(t,e){this.timeline.duration(this.getSlideDuration(e.index)),this.timeline.pause(0,!1),this.setState("mainAnimationPlaying",0)}.bind(this),"mainAnimationStart.autoplay":function(){this._currentCount++,this.wait.resolveWeak(),this.setState("mainAnimationPlaying",1)}.bind(this),"mainAnimationComplete.autoplay":function(t,e,i,s){this.timeline.duration(this.getSlideDuration(s)),this.timeline.pause(0,!1),this.setState("mainAnimationPlaying",0)}.bind(this),"autoplayPause.autoplay":function(){this.setState("paused",1)}.bind(this),"autoplayResume.autoplay":function(t,e){(this.state.paused||0===parseInt(this.parameters.start)&&0===parseInt(this.state.paused))&&(this._currentCount=1),this.setState("pausedSecondary",0),this.setState("paused",0),e!==s&&this.timeline.progress(e)}.bind(this)}),this.initClick(this.parameters.pause.click,this.parameters.resume.click),this.initHover(this.parameters.pause.mouse,this.parameters.resume.mouse),this.initMedia(this.parameters.pause.mediaStarted,this.parameters.resume.mediaEnded),this.slider.stages.resolve("AutoplayReady"),this.slider.trigger("autoplay",0),this.parameters.start||this.setState("pausedSecondary",1),this.setState("paused",0)},t.prototype.setState=function(t,e){this.state[t]!==e&&(this.state[t]=e,this.timeline!==s&&(!this.state.enabled||this.state.paused||this.state.pausedSecondary||this.state.wait||this.state.mainAnimationPlaying?(this.timeline.paused()||this.timeline.pause(),this.state.mainAnimationPlaying||this.isPaused!==s&&this.isPaused||(this.isPaused=!0,this.slider.trigger("autoplayPaused"))):(this.timeline.paused()&&this.timeline.play(),this.isPaused!==s&&!this.isPaused||(this.isPaused=!1,this.slider.trigger("autoplayStarted")))))},t.prototype.initClick=function(e,i){(e||i)&&this.slider.sliderElement.on("universalclick.autoplay",function(t){this.clickHandled||(this.state.pausedSecondary?i&&this.setState("pausedSecondary",0):e&&this.setState("pausedSecondary",1))}.bind(this))},t.prototype.initHover=function(e,i){var s;(e||i)&&(s=!1,this.slider.sliderElement.on({"touchend.autoplay":function(){s=!0,setTimeout(function(){s=!1},300)},"mouseenter.autoplay":function(t){this.state.pausedSecondary?"enter"===i&&this.setState("pausedSecondary",0):s||"enter"!==e||this.setState("pausedSecondary",1)}.bind(this),"mouseleave.autoplay":function(t){this.state.pausedSecondary?"leave"===i&&this.setState("pausedSecondary",0):"leave"===e&&this.setState("pausedSecondary",1)}.bind(this)}))},t.prototype.initMedia=function(t,e){var i=this.slider.sliderElement;t?i.on({"mediaStarted.autoplay":function(t,e){this.wait.add(e)}.bind(this),"mediaEnded.autoplay":function(t,e){this.wait.resolve(e)}.bind(this)}):e&&i.on({"mediaEnded.autoplay":function(){this.setState("pausedSecondary",0)}.bind(this)})},t.prototype.enableProgress=function(){this.timeline&&this.timeline.eventCallback("onUpdate",function(){this.slider.trigger("autoplay",this.timeline.progress())}.bind(this))},t.prototype.next=function(){if(this.timeline.pause(),!this.parameters.autoplayLoop){switch(this.parameters.intervalModifier){case"slide":this.slideSwitchingSlideCount();break;case"slideindex":this.slideSwitchingIndex();break;default:this.slideSwitchingLoop()}0<this.autoplayToSlide&&this._currentCount>=this.autoplayToSlide&&this.limitAutoplay(),0<=this.autoplayToSlideIndex&&this.slider.slides.length===this.slider.visibleSlides.length&&(this.autoplayToSlideIndex===this.slider.currentRealSlide.index+2||1===this.autoplayToSlideIndex&&this.slider.currentRealSlide.index+this.autoplayToSlideIndex===this.slider.slides.length)&&this.limitAutoplay()}this.slider.nextCarousel(!0)},t.prototype.slideSwitchingLoop=function(){this.autoplayToSlide=this.parameters.interval*this.slider.visibleSlides.length-1,"next"===this.parameters.intervalSlide&&this.autoplayToSlide++},t.prototype.slideSwitchingSlideCount=function(){this.autoplayToSlide=this.parameters.interval},t.prototype.slideSwitchingIndex=function(){var t=Math.max(1,this.parameters.interval);t>this.slider.slides.length&&(t=1),this.autoplayToSlideIndex=t},t.prototype.limitAutoplay=function(){this.parameters.allowReStart?(this._currentCount=0,this.setState("paused",1)):this.disable()},t.prototype.disable=function(){this.setState("enabled",0),this.slider.sliderElement.off(".autoplay"),this.slider.stages.resolve("AutoplayDestroyed")},t.prototype.getSlideDuration=function(t){var e=this.slider.realSlides[this.slider.getRealIndex(t)],i=e.minimumSlideDuration;return 0===parseInt(e.minimumSlideDuration)&&(i=this.parameters.duration),i},t}),N2D("SmartSliderControlFullscreen",function(n,t){"use strict";function e(t,e,i){this.slider=t,this.responsive=this.slider.responsive,this._type=this.responsive.parameters.type,this._forceFull=this.responsive.parameters.forceFull,this.forceFullpage="auto"==this._type||"fullwidth"==this._type||"fullpage"==this._type,this.forceFullpage&&(this._upscale=this.responsive.parameters.upscale),this.isFullScreen=!1,this.fullParent=this.slider.sliderElement.closest(".n2-ss-align"),this.browserSpecific={};var s=this.slider.sliderElement[0];s.requestFullscreen?(this.browserSpecific.requestFullscreen="requestFullscreen",this.browserSpecific.event="fullscreenchange"):s.msRequestFullscreen?(this.browserSpecific.requestFullscreen="msRequestFullscreen",this.browserSpecific.event="MSFullscreenChange"):s.mozRequestFullScreen?(this.browserSpecific.requestFullscreen="mozRequestFullScreen",this.browserSpecific.event="mozfullscreenchange"):s.webkitRequestFullscreen?(this.browserSpecific.requestFullscreen="webkitRequestFullscreen",this.browserSpecific.event="webkitfullscreenchange"):(this.browserSpecific.requestFullscreen="nextendRequestFullscreen",this.browserSpecific.event="nextendfullscreenchange",this.fullParent[0][this.browserSpecific.requestFullscreen]=function(){this.fullParent.css({position:"fixed",left:0,top:0,width:"100%",height:"100%",backgroundColor:"#000",zIndex:1e6}),document.fullscreenElement=this.fullParent[0],this.triggerEvent(document,this.browserSpecific.event),n(window).trigger("resize")}.bind(this)),document.exitFullscreen?this.browserSpecific.exitFullscreen="exitFullscreen":document.msExitFullscreen?this.browserSpecific.exitFullscreen="msExitFullscreen":document.mozCancelFullScreen?this.browserSpecific.exitFullscreen="mozCancelFullScreen":document.webkitExitFullscreen?this.browserSpecific.exitFullscreen="webkitExitFullscreen":(this.browserSpecific.exitFullscreen="nextendExitFullscreen",this.fullParent[0][this.browserSpecific.exitFullscreen]=function(){this.fullParent.css({position:"",left:"",top:"",width:"",height:"",backgroundColor:"",zIndex:""}),document.fullscreenElement=null,this.triggerEvent(document,this.browserSpecific.event)}.bind(this)),document.addEventListener(this.browserSpecific.event,this.fullScreenChange.bind(this))}return e.prototype.switchState=function(){this.isFullScreen=!this.isFullScreen,this.isFullScreen?this._fullScreen():this._normalScreen()},e.prototype.requestFullscreen=function(){return!this.isFullScreen&&(this.isFullScreen=!0,this._fullScreen(),!0)},e.prototype.exitFullscreen=function(){return!!this.isFullScreen&&(this.isFullScreen=!1,this._normalScreen(),!0)},e.prototype.triggerEvent=function(t,e){var i;document.createEvent?(i=document.createEvent("HTMLEvents")).initEvent(e,!0,!0):document.createEventObject&&((i=document.createEventObject()).eventType=e),i.eventName=e,t.dispatchEvent?t.dispatchEvent(i):t.fireEvent&&htmlEvents["on"+e]?t.fireEvent("on"+i.eventType,i):t[e]?t[e]():t["on"+e]&&t["on"+e]()},e.prototype._fullScreen=function(){this.forceFullpage&&(this.responsive.isFullScreen=!0,this.responsive.parameters.type="fullpage",this.responsive.parameters.upscale=!0,this.responsive.parameters.forceFull=!1,this._marginLeft=this.responsive.containerElement[0].style.marginLeft,this.responsive.containerElement.css(n2const.rtl.marginLeft,0)),this.fullParent.css({width:"100%",height:"100%",backgroundColor:n("body").css("background-color")}).addClass("n2-ss-in-fullscreen"),this.fullParent.get(0)[this.browserSpecific.requestFullscreen]()},e.prototype._normalScreen=function(){document[this.browserSpecific.exitFullscreen]?document[this.browserSpecific.exitFullscreen]():this.fullParent[0][this.browserSpecific.exitFullscreen]&&this.fullParent[0][this.browserSpecific.exitFullscreen]()},e.prototype.fullScreenChange=function(){this.isDocumentInFullScreenMode()?(this.slider.trigger("n2FullScreen"),n("html").addClass("n2-in-fullscreen"),this.isFullScreen=!0,n(window).trigger("resize")):this.forceFullpage&&(this.responsive.isFullScreen=!1,this.responsive.parameters.type=this._type,this.responsive.parameters.upscale=this._upscale,this.responsive.parameters.forceFull=this._forceFull,this.responsive.containerElement.css(n2const.rtl.marginLeft,this._marginLeft),this.fullParent.css({width:"",height:"",backgroundColor:""}).removeClass("n2-ss-in-fullscreen"),n("html").removeClass("n2-in-fullscreen"),n(window).trigger("resize"),this.isFullScreen=!1,this.slider.trigger("n2ExitFullScreen"))},e.prototype.isDocumentInFullScreenMode=function(){return document.fullscreenElement&&null!==document.fullscreenElement||document.msFullscreenElement&&null!==document.msFullscreenElement||document.mozFullScreen||document.webkitIsFullScreen},e}),N2D("SmartSliderControlKeyboard",function(s,t){"use strict";var n;function o(){this.controls=[],document.addEventListener("keydown",this.onKeyDown.bind(this)),document.addEventListener("mousemove",this.onMouseMove.bind(this),{capture:!0})}function r(t,e,i){this.slider=t,this.parameters=s.extend({},i),this.parseEvent="vertical"===e?r.prototype.parseEventVertical:r.prototype.parseEventHorizontal,(n=n||new o).addControl(this),this.slider.sliderElement.on("SliderKeyDown",this.onKeyDown.bind(this)),t.controls.keyboard=this}return o.prototype.onMouseMove=function(t){this.mouseEvent=t},o.prototype.addControl=function(t){this.controls.push(t)},o.prototype.onKeyDown=function(t){if(t.target.tagName.match(/BODY|DIV|IMG/)&&!t.target.isContentEditable){var e;if(this.mouseEvent&&(e=this.findSlider(document.elementFromPoint(this.mouseEvent.clientX,this.mouseEvent.clientY))))return void e.trigger("SliderKeyDown",t);if(document.activeElement!==document.body&&(e=this.findSlider(document.activeElement)))return void e.trigger("SliderKeyDown",t);for(var i=0;i<this.controls.length;i++)this.controls[i].onKeyDown(!1,t)}},o.prototype.findSlider=function(t){var e=s(t),i=e.hasClass("n2-ss-slider")?e:e.closest(".n2-ss-slider");return!!i.length&&i},r.prototype.isSliderOnScreen=function(){var t=this.slider.sliderElement.offset(),e=s(window).scrollTop(),i=this.slider.sliderElement.height();return t.top+.5*i>=e&&t.top-.5*i<=e+s(window).height()},r.prototype.onKeyDown=function(t,e){!e.defaultPrevented&&this.isSliderOnScreen()&&this.parseEvent.call(this,e)&&e.preventDefault()},r.prototype.parseEventHorizontal=function(t){switch(t.keyCode){case 39:return n2const.activeElementBlur(),this.slider[n2const.isRTL()?"previous":"next"](),!0;case 37:return n2const.activeElementBlur(),this.slider[n2const.isRTL()?"next":"previous"](),!0;default:return!1}},r.prototype.parseEventVertical=function(t){switch(t.keyCode){case 40:return this.slider.isChangeCarousel("next")&&this.slider.parameters.controls.blockCarouselInteraction?!1:(n2const.activeElementBlur(),this.slider.next(),!0);case 38:return this.slider.isChangeCarousel("previous")&&this.slider.parameters.controls.blockCarouselInteraction?!1:(n2const.activeElementBlur(),this.slider.previous(),!0);default:return!1}},r}),N2D("SmartSliderControlMouseWheel",function(s,t){"use strict";function e(t){this.preventScroll={local:!1,curve:!1,curveGlobal:!1,global:!1,localTimeout:!1,curveTimeout:!1,curveGlobalTimeout:!1,globalTimeout:!1},this.maxDelta=0,this.slider=t,document.addEventListener("wheel",this.onGlobalMouseWheel.bind(this),{passive:!1}),t.controls.mouseWheel=this}return e.prototype.hasScrollableParentRecursive=function(t,e){if(e===this.slider.sliderElement[0])return!1;if(e.scrollHeight>e.clientHeight){var i=s(e).css("overflow");if("hidden"!==i&&"visible"!==i)if(t){if(0<e.scrollTop)return!0}else if(e.scrollTop+e.clientHeight<e.scrollHeight)return!0}return this.hasScrollableParentRecursive(t,e.parentNode)},e.prototype.onGlobalMouseWheel=function(t){this.onCurveEvent(t),this.preventScroll.local||this.preventScroll.curve||Math.abs(t.deltaY)<this.maxDelta/2?t.preventDefault():(this.preventScroll.global&&t.preventDefault(),this.slider.sliderElement[0]!==t.target&&!s.contains(this.slider.sliderElement[0],t.target)||t.shiftKey||this.hasScrollableParentRecursive(t.deltaY<0,t.target)||this.onMouseWheel(t))},e.prototype.onMouseWheel=function(t){t.deltaY<0?this.slider.isChangeCarousel("previous")&&this.slider.parameters.controls.blockCarouselInteraction||(this.slider.previous(),t.preventDefault(),this.startCurveWatcher(t),this.local(),this.global()):this.slider.isChangeCarousel("next")&&this.slider.parameters.controls.blockCarouselInteraction||(this.slider.next(),t.preventDefault(),this.startCurveWatcher(t),this.local(),this.global())},e.prototype.startCurveWatcher=function(t){!1!==this.preventScroll.curve&&clearTimeout(this.preventScroll.curveTimeout),this.preventScroll.curveGlobal||(this.dynamicDelta=!1,this.lastDeltaY=t.deltaY,this.preventScroll.curveGlobal=!0,this.preventScroll.curveGlobalTimeout=setTimeout(s.proxy(function(){this.preventScroll.curveGlobal=!1,this.maxDelta=0},this),500)),this.preventScroll.curve=!0,this.preventScroll.curveTimeout=setTimeout(s.proxy(this.releaseCurveLock,this),5e3)},e.prototype.onCurveEvent=function(t){var e;this.preventScroll.curveGlobal&&(this.dynamicDelta||this.lastDeltaY===t.deltaY||(this.lastDeltaY=t.deltaY,this.dynamicDelta=!0),e=Math.abs(t.deltaY),this.preventScroll.curve&&this.maxDelta/2>e&&this.releaseCurveLock(),this.maxDelta=Math.max(this.maxDelta,e),this.preventScroll.curveGlobalTimeout&&clearTimeout(this.preventScroll.curveGlobalTimeout),this.preventScroll.curveGlobalTimeout=setTimeout(s.proxy(function(){this.preventScroll.curveGlobal=!1,this.maxDelta=0},this),500))},e.prototype.releaseCurveLock=function(){this.preventScroll.curve=!1,clearTimeout(this.preventScroll.curveTimeout)},e.prototype.local=function(){!1!==this.preventScroll.local&&clearTimeout(this.preventScroll.localTimeout),this.preventScroll.local=!0,this.preventScroll.localTimeout=setTimeout(function(){this.preventScroll.local=!1,this.dynamicDelta||this.releaseCurveLock()}.bind(this),1e3)},e.prototype.global=function(){!1!==this.preventScroll.global&&clearTimeout(this.preventScroll.globalTimeout),this.preventScroll.global=!0,this.preventScroll.globalTimeout=setTimeout(function(){this.preventScroll.global=!1}.bind(this),2e3)},e}),N2D("SmartSliderControlTouch",function(e,t){"use strict";function i(t){this.slider=t,this.minDistance=10,this.interactiveDrag=!0,this.preventMultipleTap=!1,this._animation=t.mainAnimation,this.swipeElement=this.slider.sliderElement.find("> .n2_ss__touch_element"),this.$window=e(window),t.controls.touch=this,t.stages.done("StarterSlide",this.onStarterSlide.bind(this)),t.sliderElement.on("visibleSlidesChanged",this.onVisibleSlidesChanged.bind(this))}return i.prototype.onStarterSlide=function(){-1<navigator.userAgent.toLowerCase().indexOf("android")&&"1"!==this.swipeElement.parent().css("opacity")?this.swipeElement.parent().one("transitionend",this.initTouch.bind(this)):this.initTouch(),this.slider.sliderElement.on("sliderChangeCurrentSlide",this.updatePanDirections.bind(this))},i.prototype.onVisibleSlidesChanged=function(){this.swipeElement.toggleClass("n2-grab",1<this.slider.visibleSlides.length)},i.prototype.initTouch=function(){this._animation.isNoAnimation&&(this.interactiveDrag=!1),this.eventBurrito=N2Classes.EventBurrito(this.swipeElement.get(0),{mouse:!0,axis:"horizontal"===this.axis?"x":"y",start:this._start.bind(this),move:this._move.bind(this),end:this._end.bind(this)}),this.updatePanDirections(),this.cancelKineticScroll=function(){this.kineticScrollCancelled=!0}.bind(this)},i.prototype._start=function(t){this.currentInteraction={type:"pointerdown"===t.type?"pointer":"touchstart"===t.type?"touch":"mouse",state:e.extend({},this.state),action:"unknown",distance:[],distanceY:[],percent:0,progress:0,scrollTop:this.$window.scrollTop(),animationStartDirection:"unknown",hadDirection:!1},this.logDistance(0,0)},i.prototype._move=function(t,e,i,s){if(!s||"unknown"!==this.currentInteraction.action){this.currentInteraction.direction=this.measure(i);var n=this.get(i);if((this.currentInteraction.hadDirection||Math.abs(n)>this.minDistance||Math.abs(i.y)>this.minDistance)&&(this.logDistance(n,i.y),this.currentInteraction.percent<1&&this.setTouchProgress(n,i.y),"touch"===this.currentInteraction.type&&t.cancelable&&("switch"!==this.currentInteraction.action&&"hold"!==this.currentInteraction.action||(this.currentInteraction.hadDirection=!0))),"switch"===this.currentInteraction.action)return!0}return!1},i.prototype._end=function(t,e,i,s){var n;"switch"===this.currentInteraction.action&&(n=s?0:this.measureRealDirection(),this.interactiveDrag?(this._animation.timeline.progress()<1&&this._animation.setTouchEnd(n,this.currentInteraction.progress,i.time),this._animation.setTouch(!1)):n&&this.callAction(this.currentInteraction.animationStartDirection),this.swipeElement.removeClass("n2-grabbing")),this.onEnd(),delete this.currentInteraction,Math.abs(i.x)<10&&Math.abs(i.y)<10?this.onTap(t):nextend.preventClick()},i.prototype.onEnd=function(){var t,e,i,s,n;"scroll"===this.currentInteraction.action&&"pointer"===this.currentInteraction.type&&(t=this.currentInteraction.distanceY[0],e=this.currentInteraction.distanceY[this.currentInteraction.distanceY.length-1],i=(t.d-e.d)/(e.t-t.t)*10,s=Date.now(),n=function(){requestAnimationFrame(function(){var t,e;if(!this.kineticScrollCancelled&&i&&(t=Date.now()-s,1<(e=i*Math.exp(-t/325))||e<-1))return this.$window.scrollTop(this.$window.scrollTop()+e),void n();this.onEndKineticScroll()}.bind(this))}.bind(this),this.kineticScrollCancelled=!1,n(),document.addEventListener("pointerdown",this.cancelKineticScroll))},i.prototype.onEndKineticScroll=function(){delete this.kineticScrollCancelled,document.removeEventListener("pointerdown",this.cancelKineticScroll),e("html").css("scroll-behavior","")},i.prototype.setTouchProgress=function(t,e){this.recognizeSwitchInteraction();var i,s=this.getPercent(t);if(this.currentInteraction.percent=s,"switch"===this.currentInteraction.action){if(this.interactiveDrag){switch(this.currentInteraction.animationStartDirection){case"up":i=-1*s;break;case"down":i=s;break;case"left":i=-1*s;break;case"right":i=s}this.currentInteraction.progress=i,this._animation.setTouchProgress(i)}}else"unknown"!==this.currentInteraction.action&&"scroll"!==this.currentInteraction.action||this.startScrollInteraction(e)},i.prototype.startScrollInteraction=function(t){"vertical"!==this.axis&&!n2const.isEdge||this.slider.controlFullscreen.isFullScreen||(this.currentInteraction.action="scroll","pointer"===this.currentInteraction.type&&(e("html").css("scroll-behavior","auto"),this.$window.scrollTop(Math.max(0,this.currentInteraction.scrollTop-t))))},i.prototype.recognizeSwitchInteraction=function(){var t;"unknown"===this.currentInteraction.action&&1<this.slider.visibleSlides.length&&("ended"===this._animation.state?"unknown"!==(t=this.currentInteraction.direction)&&this.currentInteraction.state[t]&&(this.currentInteraction.animationStartDirection=t,this.interactiveDrag&&(this._animation.setTouch(this.axis),this.callAction(t,!1)),this.currentInteraction.action="switch",this.swipeElement.addClass("n2-grabbing")):"playing"===this._animation.state&&(this.currentInteraction.action="hold"))},i.prototype.logDistance=function(t,e){3<this.currentInteraction.distance.length&&(this.currentInteraction.distance.shift(),this.currentInteraction.distanceY.shift()),this.currentInteraction.distance.push({d:t,t:Date.now()}),this.currentInteraction.distanceY.push({d:e,t:Date.now()})},i.prototype.measureRealDirection=function(){var t=this.currentInteraction.distance[0],e=this.currentInteraction.distance[this.currentInteraction.distance.length-1];return 0<=e.d&&t.d>e.d||e.d<0&&t.d<e.d?0:1},i.prototype.onTap=function(t){this.preventMultipleTap||(e(t.target).trigger("n2click"),this.preventMultipleTap=!0,setTimeout(function(){this.preventMultipleTap=!1}.bind(this),500))},i.prototype.updatePanDirections=function(){},i.prototype.setState=function(t,e){"object"!=typeof arguments[0]&&((t={})[arguments[0]]=arguments[1],e=arguments[2]);var i=!1;for(var s in t)this.state[s]!==t[s]&&(this.state[s]=t[s],i=!0);i&&e&&this.eventBurrito.supportsPointerEvents&&this.syncTouchAction()},i}),N2D("SmartSliderControlTouchHorizontal","SmartSliderControlTouch",function(t,e){"use strict";function i(){this.state={left:!1,right:!1},this.axis="horizontal",N2Classes.SmartSliderControlTouch.prototype.constructor.apply(this,arguments)}return((i.prototype=Object.create(N2Classes.SmartSliderControlTouch.prototype)).constructor=i).prototype.callAction=function(t,e){switch(t){case"left":return this.slider[n2const.isRTL()?"previous":"next"].call(this.slider,e);case"right":return this.slider[n2const.isRTL()?"next":"previous"].call(this.slider,e)}return!1},i.prototype.measure=function(t){return!this.currentInteraction.hadDirection&&Math.abs(t.x)<10||0===t.x||Math.abs(t.x)<Math.abs(t.y)?"unknown":t.x<0?"left":"right"},i.prototype.get=function(t){return t.x},i.prototype.getPercent=function(t){return Math.max(-.99999,Math.min(.99999,t/this.slider.responsive.resizeContext.sliderWidth))},i.prototype.updatePanDirections=function(){var t=this.slider.currentSlide.index,e=t+1<this.slider.slides.length,i=0<=t-1;this.slider.parameters.carousel&&(i=e=!0),n2const.isRTL()&&"vertical"!==this.slider.getAnimationAxis()?this.setState({right:e,left:i},!0):this.setState({right:i,left:e},!0)},i.prototype.syncTouchAction=function(){var t={"pan-y":!1,none:!1};n2const.isEdge?t.none=!0:(this.state.left&&(t["pan-y"]=!0),this.state.right&&(t["pan-y"]=!0));var e=[];for(var i in t)t[i]&&e.push(i);this.swipeElement.css("touch-action",e.join(" ")),window.PointerEventsPolyfill&&this.swipeElement.attr("touch-action",e.join(" "))},i}),N2D("SmartSliderControlTouchVertical","SmartSliderControlTouch",function(t,e){"use strict";function i(){this.state={up:!1,down:!1},this.action={up:"next",down:"previous"},this.axis="vertical",N2Classes.SmartSliderControlTouch.prototype.constructor.apply(this,arguments)}return((i.prototype=Object.create(N2Classes.SmartSliderControlTouch.prototype)).constructor=i).prototype.callAction=function(t,e){switch(t){case"up":return this.slider.next.call(this.slider,e);case"down":return this.slider.previous.call(this.slider,e)}return!1},i.prototype.measure=function(t){return!this.currentInteraction.hadDirection&&Math.abs(t.y)<1||0==t.y||Math.abs(t.y)<Math.abs(t.x)?"unknown":t.y<0?"up":"down"},i.prototype.get=function(t){return t.y},i.prototype.getPercent=function(t){return Math.max(-.99999,Math.min(.99999,t/this.slider.responsive.resizeContext.sliderHeight))},i.prototype.updatePanDirections=function(){this.setState({down:!this.slider.isChangeCarousel("previous")||!this.slider.parameters.controls.blockCarouselInteraction,up:!this.slider.isChangeCarousel("next")||!this.slider.parameters.controls.blockCarouselInteraction},!0)},i.prototype.syncTouchAction=function(){var t={"pan-x":!1,none:!1};n2const.isEdge?t.none=!0:(this.state.up&&(t["pan-x"]=!0),this.state.down&&(t["pan-x"]=!0));var e=[];for(var i in t)t[i]&&e.push(i);this.swipeElement.css("touch-action",e.join(" ")),window.PointerEventsPolyfill&&this.swipeElement.attr("touch-action",e.join(" "))},i.prototype._start=function(t){this.slider.blockCarousel=!0,N2Classes.SmartSliderControlTouch.prototype._start.apply(this,arguments)},i.prototype.onEnd=function(t){N2Classes.SmartSliderControlTouch.prototype.onEnd.apply(this,arguments),this.slider.blockCarousel=!1},i}),N2D("SmartSliderControlAutoplayWait",function(t,e){"use strict";function i(t){this.autoplay=t,this.waits={}}return i.Strong=["lightbox"],i.prototype.add=function(t){this.waits[t]=1,this._refresh()},i.prototype.resolve=function(t){delete this.waits[t],this._refresh()},i.prototype.resolveWeak=function(){var t={};for(var e in this.waits)1===this.waits[e]&&-1!==i.Strong.indexOf(e)&&(t[e]=1);this.waits=t,this._refresh()},i.prototype.resolveAll=function(){this.waits={},this._refresh()},i.prototype._refresh=function(){var t=!1;for(var e in this.waits)if(this.waits[e]){t=!0;break}this.autoplay.setState("wait",t)},i}),N2D("SmartSliderSlideBackgroundColor",function(t,e){function i(t,e){this.$el=e}return i.prototype.getLoadedDeferred=function(){return!0},i}),N2D("SmartSliderSlideBackgroundImage",function(o,n){function t(t,e,i,s){var n;this.loadStarted=!1,this.loadAllowed=!1,this.slide=t,this.manager=e,this.background=i,this.deferred=o.Deferred(),this.$background=s,this.blur=s.data("blur"),"blurfit"===i.mode&&(window.n2FilterProperty?(this.$background=this.$background.add(this.$background.clone().insertAfter(this.$background)),this.$background.first().css({margin:"-14px",padding:"14px"}).css(window.n2FilterProperty,"blur(7px)")):(i.element.attr("data-mode","fill"),i.mode="fill")),window.n2FilterProperty&&(0<this.blur?this.$background.last().css({margin:"-"+2*this.blur+"px",padding:2*this.blur+"px"}).css(window.n2FilterProperty,"blur("+this.blur+"px)"):this.$background.last().css({margin:"",padding:""}).css(window.n2FilterProperty,"")),n2const.isWaybackMachine()?this.mobileSrc=this.tabletSrc=this.desktopSrc=s.data("desktop"):(this.desktopSrc=s.data("desktop")||"",this.tabletSrc=s.data("tablet")||"",this.mobileSrc=s.data("mobile")||"",n2const.isRetina&&((n=s.data("desktop-retina"))&&(this.desktopSrc=n),(n=s.data("tablet-retina"))&&(this.tabletSrc=n),(n=s.data("mobile-retina"))&&(this.mobileSrc=n)))}return t.prototype.getLoadedDeferred=function(){return this.deferred},t.prototype.preLoad=function(){this.loadAllowed=!0,this.manager.deviceDeferred.done(function(){this.updateBackgroundToDevice(this.manager.device),this.waitForImage()}.bind(this))},t.prototype.waitForImage=function(){this.$background.n2imagesLoaded({background:!0},function(t){if(0<t.images.length){var e=t.images[0].img;switch(this.width=e.naturalWidth,this.height=e.naturalHeight,this.background.mode){case"tile":case"center":1<n2const.devicePixelRatio&&this.$background.css("background-size",this.width/n2const.devicePixelRatio+"px "+this.height/n2const.devicePixelRatio+"px")}this.deferred.resolve()}else setTimeout(this.waitForImage.bind(this),100)}.bind(this))},t.prototype.updateBackgroundToDevice=function(t){var e=this.desktopSrc;"mobilePortrait"===t||"mobileLandscape"===t?this.mobileSrc?e=this.mobileSrc:this.tabletSrc&&(e=this.tabletSrc):"tabletPortrait"!==t&&"tabletLandscape"!==t||this.tabletSrc&&(e=this.tabletSrc),e?this.setSrc(e):this.setSrc("")},t.prototype.setSrc=function(t){var e,i,s;this.loadAllowed&&t!==this.currentSrc&&(""===t?this.$background.css("background-image",""):this.$background.css("background-image",'url("'+t+'")'),this.currentSrc=t,this.$seo!==n&&(this.$seo.remove(),delete this.$seo),(e=this.$background.data("alt"))&&(i={alt:e,src:t},(s=this.$background.data("title"))&&(i.title=s),this.$seo=o('<img style="display:none;">').attr(i).appendTo(this.$background)))},t.prototype.fadeOut=function(){NextendTween.to(this.$background,.3,{opacity:0})},t}),N2D("SmartSliderSlideBackgroundVideo",function(i,e){var s=1;function t(t,e,i){(t.slider.parameters["background.video.mobile"]||!n2const.isPhone)&&n2const.isVideoAutoplayAllowed()?(this.counter=s++,this.slide=t,this.slider=t.slider,this.background=e,this.isResized=!1,this.$video=i,this.isReady=!1,this.state={ready:!1,scroll:!1,slide:!1,ended:!1},this.promise=!1,e.elements.image?this.slider.visible(this.load.bind(this)):this.load()):i.remove()}return t.prototype.load=function(){var t;0<this.$video[0].videoWidth?this.onReady():(this.$video[0].addEventListener("error",this.onError.bind(this),!0),this.$video[0].addEventListener("canplay",this.onReady.bind(this)),this.$video[0].addEventListener("loadedmetadata",this.onReady.bind(this),!1),this.$video[0].loop||this.$video[0].addEventListener("ended",this.onEnded.bind(this),!1),t=function(){setTimeout(function(){0===this.$video[0].networkState&&this.onError()}.bind(this),100)}.bind(this),this.$video[0].n2LoadStarted===e?this.$video[0].addEventListener("loadstart",t,!0):t(),this.$video[0].load(),this.safePlay())},t.prototype.getLoadedDeferred=function(){return!0},t.prototype.onReady=function(t){var e;this.isReady||(this.isReady=!0,e=this.$video,this.safePause(),e.data("ratio")||(0<e[0].videoWidth?e.data("ratio",e[0].videoWidth/e[0].videoHeight):e.data("ratio",e[0].offsetWidth/e[0].offsetHeight),e.addClass("n2-active"),this.slider.stages.done("BeforeShow",this.onResize.bind(this)),this.slider.ready(function(){this.slider.sliderElement.on("SliderResize",this.onResize.bind(this)),this.isResized||this.onResize(),this.setState("ready",!0,!0)}.bind(this))),this.slider.stages.done("BeforeShow",function(){this.slide.isActiveWhen()&&this.setState("slide",!0,!0)}.bind(this)),this.slider.sliderElement.on({CurrentSlideChanged:function(t,e){this.setState("slide",this.slide.isActiveWhen(e),!0)}.bind(this),mainAnimationStart:function(t,e,i,s){this.setState("slide",this.slide.isActiveWhen(this.slider.slides[s]),!0)}.bind(this),mainAnimationComplete:function(t,e,i,s){this.setState("slide",this.slide.isActiveWhen(this.slider.slides[s]),!0)}.bind(this)}),e.data("reset-slide-change")&&this.slider.sliderElement.on("mainAnimationComplete",function(t,e,i,s,n){0<this.$video[0].currentTime&&-1===this.slider.getVisibleSlides(this.slider.slides[s]).indexOf(this.slide)&&(this.$video[0].currentTime=0,this.setState("ended",!1,!0))}.bind(this)),N2Classes.ScrollTracker.add(this.slide.$element,"not-visible",function(){this.setState("scroll",!0,!0)}.bind(this),function(){this.setState("scroll",!1,!0)}.bind(this))),t&&"canplay"!==t.type||this.background.fadeOut()},t.prototype.onError=function(){this.$video.remove()},t.prototype.onResize=function(){var t;this.isResized||((t=this.$video.data("background"))&&""!==t&&i('<div class="n2-ss-slide-bg-video-color-overlay" style="position:absolute;left:0;top:0;width:100%;height:100%;z-index:3;'+t+';"></div>').insertAfter(this.$video),this.isResized=!0),this.resizeVideo()},t.prototype.resizeVideo=function(){var t=this.$video,e=t.data("mode"),i=t.data("ratio"),s=this.slider.responsive.resizeContext.slideOuterWidth/this.slider.responsive.resizeContext.slideOuterHeight;"fill"===e?i<s?t.css({width:"100%",height:"auto"}):t.css({width:"auto",height:"100%"}):"fit"===e?s<i?t.css({width:"100%",height:"auto"}):t.css({width:"auto",height:"100%"}):t.css({width:"",height:""}),t.css({marginTop:0,marginLeft:0}),this.center()},t.prototype.center=function(){var t=this.$video,e=t.parent();t.css({marginTop:Math.round((e.height()-t.height())/2),marginLeft:Math.round((e.width()-t.width())/2)})},t.prototype.safeCallback=function(t){this.promise&&Promise!==e?this.promise.then(t).catch(t):t()},t.prototype.safePlay=function(){this.safeCallback(function(){this.promise=this.$video[0].play(),this.promise&&Promise!==e&&this.promise.catch(function(t){var e;"NotAllowedError"===t.name&&(e=".ssBackgroundVideo"+this.counter,i("body").off(e).one("click"+e+" touchend"+e,function(){i("body").off(e),!1!==this.promise&&this.safePlay()}.bind(this)))}.bind(this))}.bind(this))},t.prototype.safePause=function(){this.safeCallback(function(){this.$video[0].pause(),this.promise=!1}.bind(this))},t.prototype.onEnded=function(){this.setState("ended",!0,!0)},t.prototype.setState=function(t,e,i){i=i||!1,this.state[t]=e,i&&(this.state.ready&&!this.state.ended&&this.state.slide&&this.state.scroll?(this.safePlay(),this.$video.triggerHandler("n2playvideo")):this.safePause())},t}),N2D("SmartSliderSlideBackground",function(d,t){function e(t,e,i){var s;this.loadStarted=!1,this.types=this.types||{color:"SmartSliderSlideBackgroundColor",image:"SmartSliderSlideBackgroundImage",video:"SmartSliderSlideBackgroundVideo"},this.width=0,this.height=0,this.slide=t,this.element=e,t.slider.needBackgroundWrap?(s=e.find("> *"),this.$wrapElement=d('<div class="n2-ss-slide-background-wrap n2-ow"></div>').appendTo(e).append(s)):this.$wrapElement=this.element,this.manager=i,this.loadDeferred=d.Deferred(),this.elements={color:!1,image:!1,video:!1},this.currentSrc="",this.mode=e.data("mode"),this.opacity=e.data("opacity");var n=this.element.find(".n2-ss-slide-background-image");n.length&&(this.elements.image=new N2Classes[this.types.image](t,i,this,n));var o=this.element.find(".n2-ss-slide-background-color");o.length&&(this.elements.color=new N2Classes[this.types.color](this,o));var r=this.element.find(".n2-ss-slide-background-video");r.length&&(this.elements.video=new N2Classes[this.types.video](this.slide,this,r));var a=this.slide.slider.parameters.backgroundParallax;0<a.strength&&!(n2const.isPhone&&!a.mobile||n2const.isTablet&&!a.tablet)&&(n2const.isEdge||n2const.isIE||this.hasBackground()&&(this.slide.slider.stages.done("BeforeShow",function(){this.startFixed(a)}.bind(this)),this.manager.hasFixed=!0));var l=[];for(var h in this.elements)this.elements[h]&&l.push(this.elements[h].getLoadedDeferred());d.when.apply(d,l).then(function(){this.loadDeferred.resolve()}.bind(this))}return e.prototype.preLoad=function(){return this.loadStarted||(this.slide.$element.find("[data-lazysrc]").each(function(){var t=d(this);t.attr("src",t.data("lazysrc"))}),this.loadStarted=!0),"pending"===this.loadDeferred.state()&&this.elements.image&&this.elements.image.preLoad(),this.loadDeferred},e.prototype.fadeOut=function(){this.elements.image&&this.elements.image.fadeOut()},e.prototype.hack=function(){NextendTween.set(this.element,{rotation:1e-4})},e.prototype.hasColor=function(){return this.elements.color},e.prototype.hasImage=function(){return this.elements.image},e.prototype.hasVideo=function(){return this.elements.video},e.prototype.hasBackground=function(){return this.elements.color||this.elements.image||this.elements.video},e.prototype.updateBackgroundToDevice=function(t){this.hasImage()&&this.elements.image.updateBackgroundToDevice(t)},e.prototype.startFixed=function(t){this.slide.slider.started(function(){navigator.userAgent.match(/^((?!chrome|android).)*safari/i)||N2Classes.FixedBackground.addElement(this.$wrapElement,t)}.bind(this))},e}),N2D("FrontendComponentCommon",["FrontendComponent"],function(s,n){function t(t,e,i,s){this.wraps={},this.skipSelfAnimation=!1,N2Classes.FrontendComponent.prototype.constructor.apply(this,arguments)}return((t.prototype=Object.create(N2Classes.FrontendComponent.prototype)).constructor=t).prototype.init=function(t){this.stateCBs=[],this.state={InComplete:!1};var e=this.$layer.find("> .n2-ss-layer-mask");e.length&&(this.wraps.mask=e);var i=this.$layer.find("> .n2-ss-layer-parallax");switch(i.length&&(this.wraps.parallax=i),this.$layer.data("pm")){case"absolute":this.placement=new N2Classes.FrontendPlacementAbsolute(this);break;case"normal":this.placement=new N2Classes.FrontendPlacementNormal(this);break;case"content":this.placement=new N2Classes.FrontendPlacementContent(this);break;default:this.placement=new N2Classes.FrontendPlacementDefault(this)}this.animations=this.$layer.data("animv2"),this.parallax=this.$layer.data("parallax"),this.baseSize=this.baseSize||100,this.isAdaptiveFont=this.isAdaptiveFont||this.parent.isAdaptiveFont||this.get("adaptivefont"),this.refreshBaseSize(this.getDevice("fontsize",100)),N2Classes.FrontendComponent.prototype.init.call(this,t)},t.prototype.setState=function(t,e){this.state[t]=e;for(var i=0;i<this.stateCBs.length;i++)this.stateCBs[i].call(this,this.state)},t.prototype.addStateCallback=function(t){this.stateCBs.push(t),t.call(this,this.state)},t.prototype.refreshBaseSize=function(t){this.isAdaptiveFont?this.baseSize=16*t/100:this.baseSize=this.parent.baseSize*t/100},t.prototype.start=function(){this.placement.start(),N2Classes.FrontendComponent.prototype.start.call(this);var t,e=this.get("rotation")||0;e/360!=0&&(t=this.addWrap("rotation","<div class='n2-ss-layer-rotation'></div>"),NextendTween.set(t[0],{rotationZ:e}))},t.prototype.onDeviceChange=function(t){N2Classes.FrontendComponent.prototype.onDeviceChange.call(this,t);var e=this.isVisible;if(this.isVisible=this.getDevice("")&&this.parent.isVisible,this.isVisible===n&&(this.isVisible=1),e&&!this.isVisible?(this.$layer.data("shows",0),this.$layer.css("display","none"),this.$layer.triggerHandler("visibilityChange",[0])):!e&&this.isVisible&&(this.$layer.data("shows",1),this.$layer.css("display",""),this.$layer.triggerHandler("visibilityChange",[1])),this.isVisible){var i=this.getDevice("fontsize",100);this.refreshBaseSize(i),!this.parent.isAdaptiveFont&&this.isAdaptiveFont?this.$layer.css("font-size",N2Classes.FontSize.toRem(16*i/100)):this.$layer.css("font-size",i+"%");for(var s=0;s<this.children.length;s++)this.children[s].onDeviceChange(t);this.placement.onDeviceChange(t),this.onAfterDeviceChange(t)}else for(s=0;s<this.children.length;s++)this.children[s].onDeviceChange(t)},t.prototype.onAfterDeviceChange=function(t){},t.prototype.onResize=function(t,e){var i;(this.isVisible||this.placement.alwaysResize)&&(!this.parent.isAdaptiveFont&&this.isAdaptiveFont&&(i=this.getDevice("fontsize",100),this.$layer.css("font-size",N2Classes.FontSize.toRem(16*i/100))),N2Classes.FrontendComponent.prototype.onResize.apply(this,arguments),this.placement.onResize(t,e),this.animationManager&&this.animationManager.onResize())},t.prototype.hasLayerAnimation=function(){return this.animationManager!==n},t.prototype.createLayerAnimations=function(t,e){var i,s=[];return n2const.isBot||(this.skipSelfAnimation||((i=new N2Classes.FrontendLayerAnimationManager(this,this.$layer,this.slide.getPerspective())).setEventBased(this.slide.realSlide,t,e),i.hasAnimation()?(this.animationManager=i,s.push(i)):this.setState("InComplete",!0)),s.push.apply(s,N2Classes.FrontendComponent.prototype.createLayerAnimations.call(this,t,e))),s},t.prototype.getParallaxNodes=function(){var t=[];return this.isVisible&&(this.parallax&&t.push(this.$layer[0]),t.push.apply(t,N2Classes.FrontendComponent.prototype.getParallaxNodes.call(this))),t},t.prototype.addWrap=function(t,e){var i;return this.wraps[t]===n&&(i=s(e),"rotation"===t&&(this.wraps.mask!==n?i.appendTo(this.wraps.mask):this.wraps.parallax!==n?i.appendTo(this.wraps.parallax):i.appendTo(this.$layer),i.append(this.getContents())),this.wraps[t]=i),i},t.prototype.getContents=function(){return!1},t}),N2D("FrontendComponent",function($,undefined){function FrontendComponent(t,e,i,s){this.device="",this.children=[],this.slide=t,this.parent=e,this.$layer=i.data("layer",this),this.isVisible=!0,this.init(s)}return FrontendComponent.prototype.init=function(t){if(t)for(var e=0;e<t.length;e++)switch(t.eq(e).data("sstype")){case"content":this.children.push(new N2Classes.FrontendComponentContent(this.slide,this,t.eq(e)));break;case"row":this.children.push(new N2Classes.FrontendComponentRow(this.slide,this,t.eq(e)));break;case"col":this.children.push(new N2Classes.FrontendComponentCol(this.slide,this,t.eq(e)));break;default:this.children.push(new N2Classes.FrontendComponentLayer(this.slide,this,t.eq(e)))}this.slide.slider.isAdmin||this.initEvents()},FrontendComponent.prototype.start=function(){for(var t=0;t<this.children.length;t++)this.children[t].start()},FrontendComponent.prototype.onDeviceChange=function(t){this.device=t},FrontendComponent.prototype.onResize=function(t,e){for(var i=0;i<this.children.length;i++)this.children[i].onResize(t,e)},FrontendComponent.prototype.getDevice=function(t,e){var i=this.$layer.data(this.device+t);return i!==undefined?i:"desktopportrait"!==this.device?this.$layer.data("desktopportrait"+t):e!==undefined?e:0},FrontendComponent.prototype.get=function(t){return this.$layer.data(t)},FrontendComponent.prototype.initEvents=function(){this.initEvent("click","click"),this.initEvent("mouseenter","mouseenter"),this.initEvent("mouseleave","mouseleave"),this.initEvent("play","n2play"),this.initEvent("pause","n2pause"),this.initEvent("stop","n2stop")},FrontendComponent.prototype.initEvent=function(name,event){var value=this.$layer.data(name),$el,selector;value&&($el=this.$layer,selector=$el.data("animatableselector"),selector&&($el=$el.find(selector)),$el.on(event,function(value,e){eval(value)}.bind(this,value)),"click"===event&&$el.css("cursor","pointer"))},FrontendComponent.prototype.createLayerAnimations=function(t,e){for(var i=[],s=0;s<this.children.length;s++)i.push.apply(i,this.children[s].createLayerAnimations(t,e));return i},FrontendComponent.prototype.getParallaxNodes=function(){for(var t=[],e=0;e<this.children.length;e++)t.push.apply(t,this.children[e].getParallaxNodes());return t},FrontendComponent}),N2D("FrontendSlideControls",function(i,t){function e(t,e){this.slider=t,this.$element=e.data("slide",this),this.status=new N2Classes.SlideStatus}return e.prototype.isCurrentlyEdited=function(){return this._isCurrentlyEdited},e.prototype.is=function(t){return this===t},e.prototype.triggerHandler=function(){return this.$element.triggerHandler.apply(this.$element,arguments)},e.prototype.isVisibleWhen=function(t){return!0},e.prototype.isActiveWhen=function(t){return!0},e.prototype.isStatic=function(){return!1},e.prototype.initLayerAnimations=function(){this.isCurrentlyEdited()||(this.status.set("INITIALIZED"),this.playOnce=!this.slider.isAdmin&&this.slider.parameters.layerMode.playOnce,this.refreshTimelines(),this.isStatic()?this.slider.visible(function(){this.playIn()}.bind(this)):this.playOnce||this.$element.on("mainAnimationStartInCancel",this.reset.bind(this)))},e.prototype.setDevice=function(t){if(!this.isCurrentlyEdited())for(var e=0;e<this.layerAnimations.length;e++)this.layerAnimations[e].setDevice(t)},e.prototype.resize=function(t,e,i){this.isCurrentlyEdited()||this.animationsRefreshRatios(e)},e.prototype.animationsRefreshRatios=function(t){for(var e=0;e<this.layerAnimations.length;e++)this.layerAnimations[e].refreshRatio(t.slideW,t.slideH)},e.prototype.refreshTimelines=function(){this.slider.isAdmin||!1===this.slider.disabled.layerAnimations?this.layerAnimations=this.component.createLayerAnimations(this.slider.responsive.ratios.slideW,this.slider.responsive.ratios.slideH):this.layerAnimations=[]},e.prototype.playIn=function(){if(this.status.is("INITIALIZED")){this.status.set("PLAYING"),this.onPlay();for(var t=0;t<this.layerAnimations.length;t++)this.layerAnimations[t].play();this.$element.trigger("layerAnimationPlayIn")}else this.status.is("SUSPENDED")&&this.unsuspend()},e.prototype.onPlay=function(){},e.prototype.playSpecialEventOnly=function(){if(this.status.is("INITIALIZED")){this.status.set("PLAYING");for(var t=0;t<this.layerAnimations.length;t++)this.layerAnimations[t].playSpecialEventOnly();this.$element.trigger("layerAnimationPlayIn")}},e.prototype.playOut=function(){if(this.status.is("PLAYING")){for(var t=[],e=0;e<this.layerAnimations.length;e++)this.layerAnimations[e].beforeMainSwitch(t);i.when.apply(i,t).done(function(){this.onOutAnimationsPlayed()}.bind(this))}else this.onOutAnimationsPlayed()},e.prototype.onOutAnimationsPlayed=function(){this.playOnce?this.status.set("ENDED"):this.status.set("INITIALIZED"),this.$element.trigger("layerAnimationCompleteOut")},e.prototype.suspend=function(){for(var t=0;t<this.layerAnimations.length;t++)this.layerAnimations[t].suspend();this.status.set("SUSPENDED")},e.prototype.unsuspend=function(){if(this.status.is("SUSPENDED")){for(var t=0;t<this.layerAnimations.length;t++)this.layerAnimations[t].unsuspend();this.status.set("PLAYING")}},e.prototype.reset=function(){if(this.layerAnimations){for(var t=0;t<this.layerAnimations.length;t++)this.layerAnimations[t].reset();this.status.set("INITIALIZED")}},e.prototype.getPerspective=function(){return this.slider.getPerspective()},e}),N2D("FixedBackground",function(t,e){var s=function(){if(!navigator.userAgent.match(/iphone|ipod|ipad|android/i))return(s=function(){return window.innerHeight})();var t,e=Math.abs(window.orientation),i={w:0,h:0};return(t=document.createElement("div")).style.position="fixed",t.style.height="100vh",t.style.width=0,t.style.top=0,document.documentElement.appendChild(t),i.w=90===e?t.offsetHeight:window.innerWidth,i.h=90===e?window.innerWidth:t.offsetHeight,document.documentElement.removeChild(t),t=null,(s=function(){return 90!==Math.abs(window.orientation)?i.h:i.w})()};return{_windowHeight:0,$window:null,isStarted:!1,elements:[],start:function(){return!this.isStarted&&(this.$window=t(window),navigator.userAgent.match(/iphone|ipod|ipad/i)&&(this.setY=this.setYRAF),this.resize(),this.$window.on({"load.n2-ss-bg-parallax":this.resize.bind(this),"resize.n2-ss-bg-parallax":this.resize.bind(this),"orientationchange.n2-ss-bg-parallax":this.resize.bind(this)}),this.onScroll=this.render.bind(this),document.addEventListener("scroll",this.onScroll,{capture:!0,passive:!0}),this.isStarted=!0)},end:function(){this.isStarted&&(this.$window.off(".n2-ss-bg-parallax"),document.removeEventListener("scroll",this.onScroll,{capture:!0,passive:!0}),this.isStarted=!1)},addElement:function(t,e){var i={$animated:t,$parent:t.parent(),data:e,y:0};this.elements.push(i),NextendTween.set(t,{backfaceVisibility:"hidden",force3D:"true","will-change":"transform"}),this.start()||this.renderElement(i)},removeElement:function(t){for(var e=0;e<this.elements.length;e++)if(this.elements[e].$animated===t){this.elements.splice(e,1);break}0===this.elements.length&&this.end()},resize:function(){this.windowHeight=s(),this.render()},render:function(){for(var t=0;t<this.elements.length;t++)this.renderElement(this.elements[t])},renderElement:function(t){var e,i=t.$parent[0].getBoundingClientRect(),s=0;i.top<0||i.height>this.windowHeight?s=i.top/i.height:i.bottom>this.windowHeight&&(s=(i.bottom-this.windowHeight)/i.height),s<=1&&-1<=s&&(e=Math.round(s*(-t.data.strength*i.height))||0,t.y!==e&&(this.setY(t.$animated,e),t.y=e))},setY:function(t,e){NextendTween.to(t,0,{y:e+"px"})},setYRAF:function(t,e){window.requestAnimationFrame(function(){t.css("transform","translate3D(0,"+e+"px,0)")})}}}),N2D("LayerParallax",function(o,i){var t,s,n=(t=Element.prototype,s=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector,function(t,e){return s.call(t,e)});function e(t,e){this.ticking=!1,this.active=!1,this.mouseOrigin=!1,this.parallaxedNodes=null,this.parallaxedStaticSlideNodes=[],this.parallaxedSlideNodes=null,this._scrollCallback=!1,this.firstStart=!0,this.parameters=o.extend({mode:"scroll",origin:"slider",is3D:!1,animate:!0,scrollmove:"both"},e),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&(this.parameters.is3D=!1,t.sliderElement.find(".n2-ss-layers-container").css({perspective:"none"})),this.x=this.y=0,this.levels={1:.01,2:.02,3:.05,4:.1,5:.2,6:.3,7:.4,8:.5,9:.6,10:.7},this.parameters.is3D&&(this.rotationX=this.rotationY=0,this.levelsDeg={1:2,2:6,3:10,4:15,5:20,6:25,7:30,8:35,9:40,10:45}),this.parameters.animate&&(this.render=this.animateRender),this.window=o(window),this.slider=t,this.sliderElement=t.sliderElement}return e.prototype.resize=function(){this.refreshSliderDimension()},e.prototype.refreshSliderDimension=function(){var t=this.sliderElement[0].getBoundingClientRect();this.dimensions={w2:t.width/2,h2:t.height/2,x:(t.x||t.left)+t.width/2,y:(t.y||t.top)+t.height/2}},e.prototype.enable=function(){this.active=!0,this.resize(),this.sliderElement.on({"SliderResize.n2-ss-parallax":this.resize.bind(this)});var t=-1,e=-1;switch(this.mouseX=!1,this.mouseY=!1,this.scrollY=!1,this.parameters.horizontal){case"mouse":this.mouseX=!0;break;case"mouse-invert":this.mouseX=!0,t=1}switch(this.parameters.vertical){case"mouse":this.mouseY=!0;break;case"mouse-invert":this.mouseY=!0,e=1;break;case"scroll":this.scrollY=!0,e=1;break;case"scroll-invert":this.scrollY=!0,e=-1}if((this.mouseX||this.mouseY)&&(this.sliderElement.on({"mouseenter.n2-ss-parallax":this.mouseEnter.bind(this),"mousemove.n2-ss-parallax":this.mouseMove.bind(this,t,e),"mouseleave.n2-ss-parallax":this.mouseLeave.bind(this,!1)}),n(this.sliderElement[0],":hover")&&this.mouseEnter(!1)),this.scrollY){var i=-1,s=1;switch(this.parameters.scrollmove){case"bottom":0<e?s=0:i=0;break;case"top":0<e?i=0:s=0}this._scrollCallback=this.scroll.bind(this,e,i,s),window.addEventListener("scroll",this._scrollCallback,{capture:!0,passive:!0}),this.window.on({"resize.n2-ss-parallax":this._scrollCallback})}},e.prototype.disable=function(){this.sliderElement.off(".n2-ss-parallax"),this._scrollCallback&&(window.removeEventListener("scroll",this._scrollCallback,{capture:!0,passive:!0}),this.window.off("resize.n2-ss-parallax",this._scrollCallback)),this.active=!1},e.prototype.start=function(t){if(null!==this.parallaxedSlideNodes&&this.end(),this.firstStart){if(this.slider.staticSlides){this.parallaxedStaticSlideNodes=o();for(var e=0;e<this.slider.staticSlides.length;e++)this.parallaxedStaticSlideNodes=this.parallaxedStaticSlideNodes.add(this.slider.staticSlides[e].getParallaxNodes())}this.firstStart=!1}var i;this.parallaxedSlideNodes=t.getParallaxNodes(),this.parallaxedNodes=o.merge(o.merge([],this.parallaxedSlideNodes),this.parallaxedStaticSlideNodes),this.parallaxedNodes.length?(this.parameters.is3D&&(i=this.slider.getPerspective(),o.each(this.parallaxedNodes,function(t,e){0<i&&(n2const.isEdge?NextendTween.set(e.parentElement,{transformPerspective:i}):NextendTween.set(e.parentElement,{perspective:i}))}.bind(this))),this.active||this.enable(),this._scrollCallback&&this._scrollCallback()):(this.parallaxedNodes=null,this.parallaxedSlideNodes=null,this.active&&this.disable())},e.prototype.end=function(){switch(this.parameters.mode){case"mouse-scroll":this.mouseLeave(null,!0);break;case"scroll":break;default:this.mouseLeave(null,!0)}this.parallaxedNodes=null},e.prototype.mouseEnter=function(t){this.ticking||(NextendTween.ticker.addEventListener("tick",this.draw,this),this.ticking=!0),this.refreshSliderDimension(),t&&"enter"===this.parameters.origin?this.mouseOrigin={x:t.clientX,y:t.clientY}:this.mouseOrigin=this.dimensions},e.prototype.mouseMove=function(t,e,i){!1!==this.mouseOrigin&&(this.mouseX&&(this.x=t*(i.clientX-this.mouseOrigin.x),this.parameters.is3D&&(this.rotationY=-this.x/this.dimensions.w2)),this.mouseY&&(this.y=e*(i.clientY-this.mouseOrigin.y),this.parameters.is3D&&(this.rotationX=this.y/this.dimensions.h2)))},e.prototype.mouseLeave=function(t,e){this.ticking&&(NextendTween.ticker.removeEventListener("tick",this.draw,this),this.ticking=!1);var i={};this.mouseX&&(i.x=0),this.mouseY&&(i.y=0),this.parameters.is3D&&(i.rotationX=i.rotationY=0),NextendTween.to(e?this.parallaxedSlideNodes:this.parallaxedNodes,2,i)},e.prototype.getScrollTopRecursive=function(t,e){return null===t||t.scrollTop===i?e:(e+=t.scrollTop,this.getScrollTopRecursive(t.parentNode,e))},e.prototype.scroll=function(t,e,i){this.refreshSliderDimension();var s=this.window.height(),n=this.getScrollTopRecursive(this.sliderElement[0],0);0<this.dimensions.y+this.dimensions.h2&&s>this.dimensions.y-this.dimensions.h2&&(this.y=Math.max(e,Math.min(i,2*(this.dimensions.y+this.dimensions.h2)/(s+2*this.dimensions.h2)-1)),this.dimensions.y+n<s&&(this.y=Math.min(0,this.y)),this.y*=-t*this.dimensions.h2*4,this.parameters.is3D&&(this.rotationX=this.y/this.dimensions.h2),this.draw())},e.prototype.draw=function(){if(this.parallaxedNodes)for(var t=0;t<this.parallaxedNodes.length;t++){var e,i=o(this.parallaxedNodes[t]).data("parallax"),s=this.levels[i],n={};this.parameters.is3D&&(e=this.levelsDeg[i],n.rotationX=this.rotationX*e,n.rotationY=this.rotationY*e),n.x=Math.round(this.x*s),n.y=Math.round(this.y*s),this.render(this.parallaxedNodes[t],n)}},e.prototype.render=function(t,e){NextendTween.set(t,e)},e.prototype.animateRender=function(t,e){NextendTween.to(t,.6,e)},e}),N2D("FrontendPlacement",function(t,e){function i(t){this.layer=t,this.alwaysResize=!1,this.linked=[]}return i.prototype.start=function(){},i.prototype.onDeviceChange=function(t){},i.prototype.onResize=function(t,e){for(var i=0;i<this.linked.length;i++)this.linked[i].onResizeLinked(t,e)},i.prototype.addLinked=function(t){this.linked.push(t),this.alwaysResize=!0},i}),N2D("FrontendSliderSlide",["FrontendSliderSlideAbstract"],function(s,t){function e(t,e,i){this.slides=[this],this.playCount=0,N2Classes.FrontendSliderSlideAbstract.prototype.constructor.apply(this,arguments),this.id=this.$element.data("id"),this.$slideFocus=s('<div tabindex="-1" class="n2-ss-slide--focus"></div>').prependTo(this.$element),this.$focusableElements=this.$element.find('a[href]:not([href=""]),link,button,input:not([type="hidden"]),select,textarea,audio[controls],video[controls],[tabindex]:not([tabindex="-1"])'),this.disableFocus(),this.background=!1,t.parameters.admin?this.minimumSlideDuration=0:(this.minimumSlideDuration=e.data("slide-duration"),s.isNumeric(this.minimumSlideDuration)||(this.minimumSlideDuration=0)),this._isCurrentlyEdited=this.slider.parameters.admin&&this.$element.hasClass("n2-ss-currently-edited-slide"),this.isCurrentlyEdited()?(this.$layer=e.find('.n2-ss-layer[data-sstype="slide"]'),t.sliderElement.on({SliderDeviceOrientation:function(){this.slider.visibleRealSlides.push(this),this.isVisible=!0,this.slider.responsive.visibleRealSlidesChanged=!0,this.triggerHandler("Visible")}.bind(this)})):(this.component=new N2Classes.FrontendComponentSectionSlide(this,t,e.find('.n2-ss-layer[data-sstype="slide"]')),this.$layer=this.component.$layer)}var i=!(((e.prototype=Object.create(N2Classes.FrontendSliderSlideAbstract.prototype)).constructor=e).prototype._setInside=function(t){this.isInside!==t&&(this.isInside=t,this.isCurrentlyEdited()||(t?this.status.is("SUSPENDED")&&this.unsuspend():!this.slider.parameters.layerMode.playOnce||this.playCount<1?this.reset():"skippable"===this.slider.parameters.layerMode.mode&&this.suspend()))});try{document.createElement("div").focus(Object.defineProperty({},"preventScroll",{get:function(){i=!0}}))}catch(t){}return e.prototype.focus=function(){i&&this.$slideFocus[0].focus({preventScroll:!0})},e.prototype.allowFocus=function(){this.$focusableElements.attr("tabindex","0"),this.$element.removeAttr("aria-hidden")},e.prototype.disableFocus=function(){this.$focusableElements.attr("tabindex","-1"),this.$element.attr("aria-hidden",!0)},e.prototype.init=function(){var n;this.isCurrentlyEdited()||(n=this.$element.find('[data-device="1"]'),this.slider.sliderElement.on("SliderDeviceOrientation",function(t,e){for(var i=0;i<n.length;i++){var s=n.eq(i);s.attr("src",s.data(e.group))}}.bind(this)));var t=this.slider.findSlideBackground(this);0<t.length&&(this.slider.isAdmin?this.background=new N2Classes.SmartSliderSlideBackgroundAdmin(this,t,this.slider.backgrounds):this.background=new N2Classes.SmartSliderSlideBackground(this,t,this.slider.backgrounds)),this.$element.data("slideBackground",this.background)},e.prototype.onDeviceChange=function(t){this.$element.data("hide-"+t)?!1!==this.isVisible&&(this.isVisible=!1,this.slider.responsive.visibleRealSlidesChanged=!0,this.triggerHandler("Hidden")):(this.slider.visibleRealSlides.push(this),!0!==this.isVisible&&(this.isVisible=!0,this.slider.responsive.visibleRealSlidesChanged=!0,this.triggerHandler("Visible")))},e.prototype.hasLayers=function(){return 0<this.component.children.length},e.prototype.getParallaxNodes=function(){return this.component.getParallaxNodes()},e.prototype.hasBackgroundVideo=function(){return this.background.hasVideo()},e.prototype.getThumbnailType=function(){return this.$element.data("thumbnail-type")},e.prototype.hasLink=function(){return!!this.$element.data("haslink")},e.prototype.getLightboxImage=function(){return this.$element.data("lightbox-image")},e.prototype.onPlay=function(){this.playCount++},e}),N2D("FrontendSliderSlideAbstract",["FrontendSlideControls"],function(i,t){function e(t,e,i){N2Classes.FrontendSlideControls.prototype.constructor.call(this,t,e),this.slides=this.slides||[],(this.group=this).originalIndex=i,this.index=i,this.localIndex=i,this.groupIndex=0,this.isVisible=!0,this.isInside=-1}for(var s in N2Classes.FrontendSlideControls.prototype)e.prototype[s]=N2Classes.FrontendSlideControls.prototype[s];return e.prototype.setIndex=function(t){for(var e=0;e<this.slides.length;e++)this.slides[e]._setIndex(t)},e.prototype._setIndex=function(t){this.localIndex=this.index=t},e.prototype.preLoad=function(){for(var t=[],e=0;e<this.slides.length;e++)t.push(this.slides[e]._preLoad());return i.when.apply(i,t)},e.prototype._preLoad=function(){return!this.background||this.background.preLoad()},e.prototype.setPrevious=function(t){this.previousSlide=t},e.prototype.getPrevious=function(){for(var t=this;(t=t.previousSlide)&&t!==this&&!t.isVisible;);return t},e.prototype.setNext=function(t){(this.nextSlide=t)&&t.setPrevious(this)},e.prototype.getNext=function(){for(var t=this;(t=t.nextSlide)&&t!==this&&!t.isVisible;);return t},e.prototype.getTitle=function(){return this.slides[0].$element.data("title")},e.prototype.getDescription=function(){return this.slides[0].$element.data("description")},e.prototype.getThumbnail=function(){return this.slides[0].$element.data("thumbnail")},e.prototype.hasLink=function(){return!1},e.prototype.setActive=function(){this.allowFocus(),this.$element.addClass("n2-ss-slide-active")},e.prototype.unsetActive=function(){this.disableFocus(),this.$element.removeClass("n2-ss-slide-active")},e.prototype.setInside=function(t){for(var e=0;e<this.slides.length;e++)this.slides[e]._setInside(t)},e.prototype._setInside=function(t){},e.prototype.focus=function(){},e.prototype.allowFocus=function(){},e.prototype.disableFocus=function(){},e.prototype.isVisibleWhen=function(t){return-1!==this.slider.getVisibleSlides(t).indexOf(this)},e.prototype.isActiveWhen=function(t){return-1!==this.slider.getActiveSlides(t).indexOf(this)},e}),N2D("SlideStatus",function(t,e){var i={NOT_INITIALIZED:-1,INITIALIZED:0,READY_TO_START:1,PLAYING:2,ENDED:3,SUSPENDED:4};function s(){this.status=i.NOT_INITIALIZED}return s.prototype.set=function(t){this.status=i[t]},s.prototype.is=function(t){return this.status===i[t]},s}),N2D("FrontendSliderStaticSlide",["FrontendSlideControls"],function(t,e){function i(t,e){N2Classes.FrontendSlideControls.prototype.constructor.call(this,t,e),this.slides=[this],this.isVisible=!0,this._isCurrentlyEdited=this.slider.parameters.admin&&this.$element.hasClass("n2-ss-currently-edited-slide"),this.isCurrentlyEdited()?this.$layer=this.$element.find('.n2-ss-layer[data-sstype="slide"]'):(this.component=new N2Classes.FrontendComponentSectionSlide(this,t,e.find('.n2-ss-layer[data-sstype="slide"]')),this.$layer=this.component.$layer),this.init()}for(var s in N2Classes.FrontendSlideControls.prototype)i.prototype[s]=N2Classes.FrontendSlideControls.prototype[s];return i.prototype.isStatic=function(){return!0},i.prototype.init=function(){var n;this.isCurrentlyEdited()||(this.slider.stages.done("BeforeShow",function(){this.initLayerAnimations(),this.slider.visible(function(){this.isVisible&&this.playIn()}.bind(this))}.bind(this)),n=this.$element.find('[data-device="1"]'),this.slider.sliderElement.on("SliderDeviceOrientation",function(t,e){for(var i=0;i<n.length;i++){var s=n.eq(i);s.attr("src",s.data(e.group))}}.bind(this)))},i.prototype.getParallaxNodes=function(){return this.component.getParallaxNodes()},i.prototype.onDeviceChange=function(t){this.$element.data("hide-"+t)?!1!==this.isVisible&&(this.isVisible=!1,this.triggerHandler("Hidden")):!0!==this.isVisible&&(this.isVisible=!0,this.status.is("INITIALIZED")&&this.playIn(),this.triggerHandler("Visible"))},i}),N2D("FrontendPlacementAbsolute",["FrontendPlacement"],function(e,t){function i(t){this.parentLayer=!1,this.$parent=!1,N2Classes.FrontendPlacement.prototype.constructor.apply(this,arguments)}return((i.prototype=Object.create(N2Classes.FrontendPlacement.prototype)).constructor=i).prototype.start=function(){var t=this.layer.get("parentid");t&&(this.$parent=e("#"+t),0===this.$parent.length?this.$parent=!1:(this.parentLayer=this.$parent.data("layer"),this.parentLayer.placement.addLinked(this),this.onResize=function(){}))},i.prototype.onResize=i.prototype.onResizeLinked=function(t,e){var i=this.layer.$layer,s=t.slideW,n=s,o=t.slideH,r=o;parseInt(this.layer.get("responsivesize"))||(n=r=1),i.css("width",this.getWidth(n)),i.css("height",this.getHeight(r)),parseInt(this.layer.get("responsiveposition"))||(s=o=1);var a,l=this.layer.getDevice("left")*s,h=this.layer.getDevice("top")*o,d=this.layer.getDevice("align"),c=this.layer.getDevice("valign"),p={left:"auto",top:"auto",right:"auto",bottom:"auto"};if(this.$parent&&this.$parent.data("layer").isVisible){var u={left:(a=this.$parent).prop("offsetLeft"),top:a.prop("offsetTop")},m={left:0,top:0};switch(this.layer.getDevice("parentalign")){case"right":m.left=u.left+this.$parent.width();break;case"center":m.left=u.left+this.$parent.width()/2;break;default:m.left=u.left}switch(d){case"right":p.right=i.parent()[0].offsetWidth-m.left-l+"px";break;case"center":p.left=m.left+l-i.width()/2+"px";break;default:p.left=m.left+l+"px"}switch(this.layer.getDevice("parentvalign")){case"bottom":m.top=u.top+this.$parent.height();break;case"middle":m.top=u.top+this.$parent.height()/2;break;default:m.top=u.top}switch(c){case"bottom":p.bottom=i.parent()[0].offsetHeight-m.top-h+"px";break;case"middle":p.top=m.top+h-i.height()/2+"px";break;default:p.top=m.top+h+"px"}}else{switch(d){case"right":p.right=-l+"px";break;case"center":var f=!this.layer.slide.isStatic&&this.layer.parent instanceof N2Classes.FrontendComponentSectionSlide?e.slideWidth:i.parent()[0].offsetWidth;p.left=Math.round(f/2+l-i.width()/2)+"px";break;default:p.left=l+"px"}switch(c){case"bottom":p.bottom=-h+"px";break;case"middle":var y=!this.layer.slide.isStatic&&this.layer.parent instanceof N2Classes.FrontendComponentSectionSlide?e.slideHeight:i.parent()[0].offsetHeight;p.top=Math.round(y/2+h-i.height()/2)+"px";break;default:p.top=h+"px"}}i.css(p);for(var g=0;g<this.linked.length;g++)this.linked[g].onResizeLinked(t,e)},i.prototype.getWidth=function(t){var e=this.layer.getDevice("width");return this.isDimensionPropertyAccepted(e)?e:e*t+"px"},i.prototype.getHeight=function(t){var e=this.layer.getDevice("height");return this.isDimensionPropertyAccepted(e)?e:e*t+"px"},i.prototype.isDimensionPropertyAccepted=function(t){return!(!(t+"").match(/[0-9]+%/)&&"auto"!=t)},i}),N2D("FrontendPlacementContent",["FrontendPlacement"],function(t,e){function i(t){N2Classes.FrontendPlacement.prototype.constructor.apply(this,arguments)}return(i.prototype=Object.create(N2Classes.FrontendPlacement.prototype)).constructor=i}),N2D("FrontendPlacementDefault",["FrontendPlacement"],function(t,e){function i(t){N2Classes.FrontendPlacement.prototype.constructor.apply(this,arguments)}return(i.prototype=Object.create(N2Classes.FrontendPlacement.prototype)).constructor=i}),N2D("FrontendPlacementNormal",["FrontendPlacement"],function(t,e){function i(t){N2Classes.FrontendPlacement.prototype.constructor.apply(this,arguments)}return((i.prototype=Object.create(N2Classes.FrontendPlacement.prototype)).constructor=i).prototype.onDeviceChange=function(){this.updateMargin(),this.updateHeight(),this.updateMaxWidth(),this.updateSelfAlign()},i.prototype.updateMargin=function(){var t=this.layer.getDevice("margin").split("|*|"),e=t.pop(),i=this.layer.baseSize;if("px+"==e&&0<i){e="em";for(var s=0;s<t.length;s++)t[s]=parseInt(t[s])/i}this.layer.$layer.css("margin",t.join(e+" ")+e)},i.prototype.updateHeight=function(){var t,e=this.layer.getDevice("height"),i="px";0<e?(0<(t=this.layer.baseSize)&&(i="em",e=parseInt(e)/t),this.layer.$layer.css("height",e+i).attr("data-custom-height",1)):this.layer.$layer.css("height","").removeAttr("data-custom-height")},i.prototype.updateMaxWidth=function(){var t=parseInt(this.layer.getDevice("maxwidth"));t<=0||isNaN(t)?this.layer.$layer.css("maxWidth","").attr("data-has-maxwidth","0"):this.layer.$layer.css("maxWidth",t+"px").attr("data-has-maxwidth","1")},i.prototype.updateSelfAlign=function(){this.layer.$layer.attr("data-cssselfalign",this.layer.getDevice("selfalign"))},i}),N2D("FrontendComponentCol",["FrontendComponentCommon"],function(t,e){function i(t,e,i){this.$content=i.find(".n2-ss-layer-col:first"),N2Classes.FrontendComponentCommon.prototype.constructor.call(this,t,e,i,this.$content.find("> .n2-ss-layer"))}return((i.prototype=Object.create(N2Classes.FrontendComponentCommon.prototype)).constructor=i).prototype.onDeviceChange=function(t){N2Classes.FrontendComponentCommon.prototype.onDeviceChange.apply(this,arguments),this.updateOrder(),this.updatePadding(),this.updateVerticalAlign(),this.updateInnerAlign(),this.updateMaxWidth()},i.prototype.updatePadding=function(){var t=this.getDevice("padding").split("|*|"),e=t.pop(),i=this.baseSize;if("px+"===e&&0<i){e="em";for(var s=0;s<t.length;s++)t[s]=parseInt(t[s])/i}this.$content.css("padding",t.join(e+" ")+e)},i.prototype.updateVerticalAlign=function(){this.$content.attr("data-verticalalign",this.getDevice("verticalalign"))},i.prototype.updateInnerAlign=function(){this.$layer.attr("data-csstextalign",this.getDevice("inneralign"))},i.prototype.updateMaxWidth=function(){var t=parseInt(this.getDevice("maxwidth"));t<=0||isNaN(t)?this.$layer.css("maxWidth","").attr("data-has-maxwidth","0"):this.$layer.css("maxWidth",t+"px").attr("data-has-maxwidth","1")},i.prototype.getWidthPercentage=function(){return parseFloat(this.$layer.data("colwidthpercent"))},i.prototype.getRealOrder=function(){var t=this.getDevice("order");return 0==t?10:t},i.prototype.updateOrder=function(){var t=this.getDevice("order");0==t?this.$layer.css("order",""):this.$layer.css("order",t)},i.prototype.getContents=function(){return this.$content},i}),N2D("FrontendComponentContent",["FrontendComponentCommon"],function(t,e){function i(t,e,i){this.$content=i.find(".n2-ss-section-main-content:first"),N2Classes.FrontendComponentCommon.prototype.constructor.call(this,t,e,i,this.$content.find("> .n2-ss-layer"))}return((i.prototype=Object.create(N2Classes.FrontendComponentCommon.prototype)).constructor=i).prototype.onDeviceChange=function(t){N2Classes.FrontendComponentCommon.prototype.onDeviceChange.apply(this,arguments),this.updatePadding(),this.updateVerticalAlign(),this.updateInnerAlign(),this.updateMaxWidth(),this.updateSelfAlign()},i.prototype.updatePadding=function(){var t=this.getDevice("padding").split("|*|"),e=t.pop(),i=this.baseSize;if("px+"==e&&0<i){e="em";for(var s=0;s<t.length;s++)t[s]=parseInt(t[s])/i}this.$content.css("padding",t.join(e+" ")+e)},i.prototype.updateVerticalAlign=function(){this.$content.attr("data-verticalalign",this.getDevice("verticalalign"))},i.prototype.updateInnerAlign=function(){this.$layer.attr("data-csstextalign",this.getDevice("inneralign"))},i.prototype.updateMaxWidth=function(){var t=parseInt(this.getDevice("maxwidth"));t<=0||isNaN(t)?this.$layer.css("maxWidth","").attr("data-has-maxwidth","0"):this.$layer.css("maxWidth",t+"px").attr("data-has-maxwidth","1")},i.prototype.updateSelfAlign=function(){this.$layer.attr("data-cssselfalign",this.getDevice("selfalign"))},i.prototype.getContents=function(){return this.$content},i}),N2D("FrontendComponentLayer",["FrontendComponentCommon"],function(t,s){function e(t,e,i){N2Classes.FrontendComponentCommon.prototype.constructor.call(this,t,e,i),this.wraps.mask!==s?this.$item=this.wraps.mask.children():this.wraps.parallax!==s?this.$item=this.wraps.parallax.children():this.$item=i.children()}return((e.prototype=Object.create(N2Classes.FrontendComponentCommon.prototype)).constructor=e).prototype.getContents=function(){return this.$item},e}),N2D("FrontendComponentRow",["FrontendComponentCommon"],function(i,c){function t(t,e,i){this.$row=i.find(".n2-ss-layer-row:first"),this.$rowInner=this.$row.find(".n2-ss-layer-row-inner:first"),this.columns=[],N2Classes.FrontendComponentCommon.prototype.constructor.call(this,t,e,i,this.$rowInner.find("> .n2-ss-layer"))}return((t.prototype=Object.create(N2Classes.FrontendComponentCommon.prototype)).constructor=t).prototype.init=function(t){N2Classes.FrontendComponentCommon.prototype.init.call(this,t);for(var e=0;e<this.children.length;e++)this.children[e]instanceof N2Classes.FrontendComponentCol&&this.columns.push(this.children[e])},t.prototype.onDeviceChange=function(t){N2Classes.FrontendComponentCommon.prototype.onDeviceChange.apply(this,arguments),this.updatePadding(),this.updateGutter(),this.updateInnerAlign()},t.prototype.onAfterDeviceChange=function(t){this.updateWrapAfter()},t.prototype.updatePadding=function(){var t=this.getDevice("padding").split("|*|"),e=t.pop(),i=this.baseSize;if("px+"===e&&0<i){e="em";for(var s=0;s<t.length;s++)t[s]=parseInt(t[s])/i}this.$row.css("padding",t.join(e+" ")+e)},t.prototype.updateInnerAlign=function(){this.$layer.attr("data-csstextalign",this.getDevice("inneralign"))},t.prototype.updateGutter=function(){var t=this.getDevice("gutter"),e=t/2;if(0<this.columns.length)for(var i=this.columns.length-1;0<=i;i--)this.columns[i].$layer.css("margin",e+"px");this.$rowInner.css({width:"calc(100% + "+(t+1)+"px)",margin:-e+"px"})},t.prototype.getSortedColumns=function(){for(var t=i.extend([],this.columns).sort(function(t,e){return t.getRealOrder()-e.getRealOrder()}),e=t.length-1;0<=e;e--)t[e].isVisible||t.splice(e,1);return t},t.prototype.updateWrapAfter=function(){var t=parseInt(this.getDevice("wrapafter")),e=this.getSortedColumns(),i=e.length,s=!1;if(0===i)return!1;if(0<t&&t<i&&(s=!0),this.$row.attr("row-wrapped",s?1:0),s){for(var n=[],o=0;o<i;o++){var r=Math.floor(o/t);n[r]===c&&(n[r]=[]),n[r].push(e[o]),e[o].$layer.attr("data-r",r).toggleClass("n2-ss-last-in-row",(o+1)%t==0||o===i-1)}var a=this.getDevice("gutter");for(o=0;o<n.length;o++){for(var l=n[o],h=0,d=0;d<l.length;d++)h+=l[d].getWidthPercentage();for(d=0;d<l.length;d++)l[d].$layer.css("width","calc("+l[d].getWidthPercentage()/h*100+"% - "+(n2const.isIE||n2const.isEdge?a+1:a)+"px)")}}else{h=0;for(o=0;o<i;o++)h+=e[o].getWidthPercentage();for(o=0;o<i;o++)e[o].$layer.css("width",e[o].getWidthPercentage()/h*100+"%").removeClass("n2-ss-last-in-row").attr("data-r",0);e[i-1].$layer.addClass("n2-ss-last-in-row")}},t.prototype.getContents=function(){return this.$row},t}),N2D("FrontendComponentSectionSlide",["FrontendComponent"],function(t,e){function i(t,e,i){this.realSlide=t,this.slider=e,this.$element=t.$element,this.$layer=i,this.baseSize=16,this.isStatic=t.isStatic(),N2Classes.FrontendComponent.prototype.constructor.call(this,this,this,i,i.find("> .n2-ss-layer")),e.sliderElement.on({SliderDeviceOrientation:function(t,e){this.onDeviceChange(e.device.toLowerCase())}.bind(this),SliderResize:function(t,e,i){this.onResize(e,i.resizeContext)}.bind(this)}),this.start()}return((i.prototype=Object.create(N2Classes.FrontendComponent.prototype)).constructor=i).prototype.onDeviceChange=function(t){N2Classes.FrontendComponent.prototype.onDeviceChange.call(this,t);for(var e=0;e<this.children.length;e++)this.children[e].onDeviceChange(t);this.realSlide.onDeviceChange(t),this.updatePadding()},i.prototype.updatePadding=function(){var t=this.getDevice("padding").split("|*|");this.$layer.css("padding",t.join("px ")+"px")},i.prototype.getPerspective=function(){return this.slider.getPerspective()},i}),N2D("FrontendLayerAnimationManager",function(n,o){function r(t,e,i){this.status=new N2Classes.AnimationStatus,this.inStatus=!1,this.loopStatus=!1,this.outStatus=!1,this.namespace="n2-ss-animations-"+r.index++,this.hasSpecialEvent=!1,this.linear=!1,this.layer=t,this.$layer=e,this.options={repeatable:0,startDelay:0,endDelay:0,loopRepeatSelfOnly:0,inPlayEvent:"",loopPlayEvent:"",loopPauseEvent:"",loopStopEvent:"",outPlayEvent:""},this.promises={in:new N2Classes.AnimationPromise(this,"IN"),loop:new N2Classes.AnimationPromise(this,"LOOP"),out:new N2Classes.AnimationPromise(this,"OUT"),reset:function(){this.in.reset(),this.loop.reset(),this.out.reset()}};var s=(this.$animatableElement=e).data("animatableselector");s&&(this.$animatableElement=e.find(s),this.$animatableElement.on("n2AutoAlphaVisibility",function(t){(t=t.originalEvent||t).detail.visibility?this.$layer.removeAttr("data-force-hidden"):this.$layer.attr("data-force-hidden","")}.bind(this))),this.perspective=i,e.data("LayerAnimation",this),0<this.perspective&&(n2const.isEdge?NextendTween.set(this.$layer.parent(),{transformPerspective:this.perspective}):NextendTween.set(this.$layer.parent(),{perspective:this.perspective})),this.plugins=new a}function a(){this.keys=["basic","reveal"],this.basic=o,this.reveal=o}return r.index=1,r.optimize=function(t){return t.opacity!==o&&(t.n2AutoAlpha=t.opacity,delete t.opacity),t},r.optimizeTweenTo=function(t,e,i){NextendTween.to(t,e,r.optimize(i))},r.optimizeTo=function(t,e,i,s,n){t.to(e,i,r.optimize(s),n)},r.optimizeFromTo=function(t,e,i,s,n,o){t.fromTo(e,i,r.optimize(s),r.optimize(n),o)},r.prototype.hasAnimation=function(){return this.inStatus||this.loopStatus||this.outStatus},r.prototype.collectRelatedAnimations=function(){this.relatedAnimations={needInvalidate:!1,setDevice:[],updateRatios:[],in:[],loop:[],out:[]};for(var t=0;t<a.keys.length;t++){var e=a.keys[t];this.options[e]&&(this.plugins[e]||this.plugins.initPlugin(e,this.$layer,this.$animatableElement),this.plugins[e].collectRelatedAnimations(this.relatedAnimations,this,this.options[e]))}this.$layer.triggerHandler("collectRelatedAnimations",[this.relatedAnimations,this])},r.prototype.needInvalidate=function(){this.relatedAnimations.needInvalidate=!0},r.prototype.onStageReached=function(t){"loop"===t&&this.loopStatus&&this.loop.play(),this.$layer.triggerHandler(t.charAt(0).toUpperCase()+t.slice(1)+"Started")},r.prototype.setEventBased=function(t,e,i){this.slide=t,this.horizontalRatio=e,this.verticalRatio=i;var s=this.$layer.data("animv2");s&&("object"!=typeof s?this.setOptions(n.parseJSON(s)):this.setOptions(s)),this.device=this.slide.slider.responsive.getDeviceMode(),this.collectRelatedAnimations(),this.options.repeatable&&""===this.options.inPlayEvent&&(this.options.inPlayEvent="layerAnimationPlayIn,OutComplete",""===this.options.loopPlayEvent&&(this.options.loopPlayEvent="InComplete"),""===this.options.outPlayEvent&&(this.options.outPlayEvent="LoopComplete")),""===this.options.outPlayEvent?"forced"===this.slide.slider.parameters.layerMode.mode?this.options.outPlayEvent="OutForced":this.options.outPlayEvent="LoopComplete":this.options.outPlayEvent.match(/OutForced/)?this.options.outPlayEvent="OutForced":this.options.outPlayEvent.match(/^(.*?,|.*? )?InstantOut(,.*?| .*?)?$/)&&(this.options.outPlayEvent="LoopComplete"),""===this.options.inPlayEvent&&(this.options.inPlayEvent="layerAnimationPlayIn"),""===this.options.loopPlayEvent&&(this.options.loopPlayEvent="InComplete"),this.buildTimeline(),this.updateRatios(e,i),this.inStatus?(this.hasSpecialEvent||this.options.inPlayEvent.match("layerAnimationPlayIn")||(this.hasSpecialEvent=!0),this.options.inPlayEvent.match("OutComplete")?this.promises.in.forceResolve():this.subscribeEvent(this.options.inPlayEvent,function(){this.status.suspended()||(this.status.is("INITIALIZED_PLAYING")||this.status.is("IN_WAIT")?(this.promises.in.resolveAndCheck(),delete this.targetStage):(this.status.isLoop()||this.status.isOut()||this.targetStage!==o&&"in"!==this.targetStage)&&(this.status.isIn()?delete this.targetStage:this.targetStage="in"))}.bind(this))):this.promises.in.forceResolve(),this.loopStatus?(this.options.loopPlayEvent.match("InComplete")?this.promises.loop.forceResolve():(this.hasSpecialEvent||(this.hasSpecialEvent=!0),this.subscribeEvent(this.options.loopPlayEvent,function(){this.status.suspended()||(this.status.is("LOOP_WAIT")?this.promises.loop.resolveAndCheck():this.status.is("LOOP_PAUSED")&&this.loop.resume())}.bind(this))),""!==this.options.loopPauseEvent&&this.subscribeEvent(this.options.loopPauseEvent+".n2-ss-loop",this.loop.pause.bind(this.loop)),""!==this.options.loopStopEvent&&this.subscribeEvent(this.options.loopStopEvent+".n2-ss-loop",this.loop.requestEnd.bind(this.loop,!1))):(this.promises.loop.forceResolve(),this.subscribeEvent("InComplete",this.loopComplete.bind(this))),!this.outStatus||this.options.outPlayEvent.match("LoopComplete")?this.promises.out.forceResolve():"OutForced"===this.options.outPlayEvent||(this.hasSpecialEvent=!0,this.subscribeEvent(this.options.outPlayEvent,function(){this.status.suspended()||(this.status.is("OUT_WAIT")?(this.promises.out.resolveAndCheck(),delete this.targetStage):this.status.is("LOOP_WAIT")?(this.promises.loop.resolve(),this.promises.out.resolve(),this.status.set("OUT_WAIT"),this.timeline.seek("OUT").play()):this.status.is("LOOP_PLAYING")||this.status.is("LOOP_PAUSED")?(this.promises.out.resolve(),this.loop.requestEnd(!0)):(this.status.isIn()||this.status.isLoop()||this.targetStage!==o&&"out"!==this.targetStage)&&(this.status.isOut()?delete this.targetStage:this.targetStage="out"))}.bind(this))),this.status.set("INITIALIZED")},r.prototype.play=function(){!this.status.suspended()&&this.status.is("INITIALIZED")&&this.status.set("INITIALIZED_PLAYING"),this.timeline.play()},r.prototype.playSpecialEventOnly=function(){this.hasSpecialEvent?this.play():"OutForced"===this.options.outPlayEvent?(this.status.set("LOOP_WAIT"),this.timeline.seek("ZERO",!0)):(this.status.set("DISABLED"),this.timeline.progress(1,!0))},r.prototype.setOptions=function(t){this.options=n.extend(this.options,t)},r.prototype.buildTimeline=function(){this.timeline=new NextendTimeline({paused:!0});var t=this.options.repeatable?this.options.startDelay:0;this.timeline.addLabel("IN",t),this.linear?this.timeline.set({},{},t):(this.timeline.addPause("+="+(.001+t),this.promises.in.wait.bind(this.promises.in)),this.promises.in.addPauseTween(this.timeline.recent()));for(var e=new NextendTimeline,i=0;i<this.relatedAnimations.in.length;i++)this.relatedAnimations.in[i].extendTimeline(e);e.totalDuration()?(this.linear||e.eventCallback("onComplete",this.inComplete,null,this),this.inStatus=!0,this.timeline.add(e)):(e.kill(),this.inStatus=!1),this.timeline.addLabel("ZERO","+=0.001"),this.loop=new N2Classes.AnimationsControllerLoop(this,this.$layer),this.loopStatus=this.loop.buildTimeline(this.timeline);var s=new NextendTimeline;for(i=0;i<this.relatedAnimations.out.length;i++)this.relatedAnimations.out[i].extendTimeline(s);var n=this.options.repeatable?this.options.endDelay:0;s.totalDuration()?(this.linear?s.set({},{},"+="+n):(this.timeline.addLabel("OUT","+=0.001"),this.timeline.addPause("+=0.002",this.promises.out.wait.bind(this.promises.out)),this.promises.out.addPauseTween(this.timeline.recent()),s.set({},{},"+="+n),s.eventCallback("onComplete",this.outComplete,null,this)),this.outStatus=!0,this.timeline.add(s)):(s.kill(),this.outStatus=!1,this.timeline.set({},{onComplete:this.outComplete.bind(this)},"+="+n))},r.prototype.setDevice=function(t){if(this.device=t,0<this.relatedAnimations.setDevice.length)for(var e=0;e<this.relatedAnimations.setDevice.length;e++)this.relatedAnimations.setDevice[e].setDevice(t)},r.prototype.updateRatios=function(t,e){if(this.horizontalRatio=t,this.verticalRatio=e,0<this.relatedAnimations.updateRatios.length)for(var i=0;i<this.relatedAnimations.updateRatios.length;i++)this.relatedAnimations.updateRatios[i].updateRatios(t,e)},r.prototype.refreshRatio=function(t,e){var i;this.updateRatios(t,e),this.relatedAnimations.needInvalidate&&(i=this.timeline.time(),this.timeline.time(0),this.timeline.invalidate(),this.timeline.time(i,!0))},r.prototype.setLinear=function(t,e,i,s){return this.linear=!0,this.horizontalRatio=i,this.verticalRatio=s,this.setOptions(t.animations.getData()),this.device=e,this.collectRelatedAnimations(),this.buildTimeline(),this.updateRatios(i,s),this.hasAnimation()},r.prototype.resetToEditor=function(){this.plugins.resetToEditor(),this.$layer.triggerHandler("AnimationSetZero")},r.prototype.inComplete=function(){this.status.set("IN_ENDED"),this.layer.setState("InComplete",!0),this.outStatus&&this.targetStage!==o&&(this.promises.loop.resolve(),this.promises.out.resolve(),this.status.set("OUT_WAIT"),this.timeline.seek("OUT").play()),this.$layer.triggerHandler("InComplete")},r.prototype.loopComplete=function(){1!==this.options.loopRepeatSelfOnly||this.status.is("LOOP_ENDING_FORCED")?(this.status.set("LOOP_ENDED"),this.targetStage!==o&&(this.promises[this.targetStage].resolve(),delete this.targetStage),this.$layer.triggerHandler("LoopComplete")):(this.promises.loop.reset(),this.loop.resetForReplay(),this.status.set("IN_ENDED"),this.timeline.seek("ZERO"))},r.prototype.outComplete=function(){this.options.repeatable&&this.hasAnimation()?this.status.set("INITIALIZED"):this.status.set("OUT_ENDED"),this.$layer.triggerHandler("OutComplete"),this.status.is("INITIALIZED")&&this.repeat()},r.prototype.repeat=function(){this.loopStatus&&this.loop.resetForReplay(),this.promises.reset(),this.targetStage!==o&&(this.promises[this.targetStage].resolve(),delete this.targetStage),this.timeline.seek("IN"),this.timeline.timeScale(1)},r.prototype.beforeMainSwitch=function(t){var e;this.status.is("DISABLED")||this.status.is("INITIALIZED")||this.status.is("INITIALIZED_PLAYING")||this.status.is("OUT_ENDED")?this.status.set("DISABLED"):this.hasSpecialEvent?this.$layer.triggerHandler("OutForced"):(e=n.Deferred(),this.$layer.one("OutComplete",function(){this.$layer.off(".n2-instant-in"),this.status.set("DISABLED"),e.resolve()}.bind(this)),this.forcePlayOut(),t.push(e))},r.prototype.forcePlayOut=function(){this.status.isIn()?this.$layer.one("InComplete.n2-instant-out",function(){this.promises.out.resolve(),this.outStatus&&this.timeline.seek("OUT")}.bind(this)):this.status.is("LOOP_WAIT")?(this.promises.out.resolve(),this.timeline.play("OUT")):this.status.isLoop()?(this.promises.out.resolve(),this.loop.requestEnd(!0)):this.status.is("OUT_WAIT")?this.promises.out.resolveAndCheck():this.status.is("OUT_PAUSED")&&this.timeline.play()},r.prototype.reset=function(){this.loop&&this.loop.reset(),this.layer.setState("InComplete",!1),this.promises.reset(),this.status.suspended()&&this.status.suspended(!1),this.status.set("INITIALIZED"),this.timeline.pause(0)},r.prototype.suspend=function(){this.status.suspended()||(this.status.isPlaying()&&(this.status.isLoop()&&this.loop.suspend(),this.timeline.pause()),this.status.suspended(!0))},r.prototype.unsuspend=function(){this.status.suspended()&&(this.status.suspended(!1),this.status.isPlaying()&&(this.status.isLoop()&&this.loop.unsuspend(),this.timeline.play()))},r.prototype.subscribeEvent=function(t,e){for(var i=t.split(","),s=0;s<i.length;s++)if(i[s].length){var n=i[s].replace(/\s/g,"").split("."),o=i[s];switch(n[0]){case"InComplete":case"LoopComplete":case"OutComplete":case"LoopRoundComplete":case"LayerClick":case"LayerMouseEnter":case"LayerMouseLeave":o.match(/^Layer/)&&(o=o.replace(/^Layer/,"").toLowerCase()),this.$layer.on(o,e);break;case"mainAnimationStartIn":case"layerAnimationPlayIn":case"SlideMouseEnter":case"SlideMouseLeave":case"SlideClick":o.match(/^Slide/)&&(o=o.replace(/^Slide/,"").toLowerCase()),this.slide.$element.on(o,e);break;case"SliderMouseEnter":case"SliderMouseLeave":case"SliderClick":o.match(/^Slider/)&&(o=o.replace(/^Slider/,"").toLowerCase()),this.slide.slider.sliderElement.on(o,function(t){this.slide.isVisibleWhen()&&e()}.bind(this));break;case"OutForced":this.$layer.on(o,e);break;default:var r={killed:!1,do:0,cancel:0};this.slide.$element.on("ss"+o,function(t){t.do&&clearTimeout(t.do),t.do=setTimeout(function(){t.killed||e(),t.killed=!1},50)}.bind(this,r)),this.slide.$element.on("sscancel-"+o,function(t){t.killed=!0,t.cancel&&clearTimeout(t.cancel),t.cancel=setTimeout(function(){t.killed=!1},70)}.bind(this,r))}}},r.prototype.onResize=function(){this.plugins.onResize()},a.keys=["basic","reveal"],a.prototype.initPlugin=function(t,e,i){switch(t){case"basic":this.basic=new N2Classes.FrontendLayerAnimationsBasic(e,i);break;case"reveal":this.reveal=new N2Classes.FrontendLayerAnimationsReveal(e,i)}},a.prototype.resetToEditor=function(){this.basic&&this.basic.resetToEditor(),this.reveal&&this.reveal.resetToEditor()},a.prototype.onResize=function(){this.basic&&this.basic.onResize(),this.reveal&&this.reveal.onResize()},r}),N2D("AnimationPromise",function(t,e){function i(t,e){this.manager=t,this.status=t.status,this.stack=e,this._done=!1,this._resolved=!1,this._forced=!1,this.pauseTween=null,this.position=null}return i.prototype.addPauseTween=function(t){t.stack=this.stack,this.pauseTween=t,Object.defineProperty(this.pauseTween,"data",{get:function(){return this._resolved?"":"isPause"}.bind(this)}),this.position=t.startTime()},i.prototype.resolve=function(){this._resolved=!0},i.prototype.forceResolve=function(){this._forced=!0,this.resolve()},i.prototype.resolved=function(){return this._resolved},i.prototype.reset=function(){this._done=!1,this._forced||(this._resolved=!1)},i.prototype.wait=function(){this._done||(this._done=!0,this._resolved?(this.status.set(this.stack+"_PLAYING"),this.manager.onStageReached(this.stack)):(this.status.set(this.stack+"_WAIT"),this.manager.timeline.seek(this.position)))},i.prototype.resolveAndCheck=function(){this.resolve(),this._done&&!this.status.suspended()&&this.status.is(this.stack+"_WAIT")&&(this.status.set(this.stack+"_PLAYING"),this.manager.onStageReached(this.stack),this.manager.timeline._paused&&this.manager.timeline.play())},i}),N2D("AnimationsRelated",function(t,e){function i(t,e){this._context=t,this._extendName=e}return i.prototype.extendTimeline=function(t,e,i){this._context[this._extendName].apply(this._context,arguments)},i}),N2D("AnimationStatus",function(t,e){var i={DISABLED:-1,NOT_INITIALIZED:0,INITIALIZED:1,INITIALIZED_PLAYING:10,IN_WAIT:100,IN_PLAYING:110,IN_PAUSED:120,IN_ENDED:190,LOOP_WAIT:200,LOOP_PLAYING:210,LOOP_PAUSED:220,LOOP_ENDING:230,LOOP_ENDING_FORCED:240,LOOP_ENDED:290,OUT_WAIT:300,OUT_PLAYING:310,OUT_PAUSED:320,OUT_ENDED:390};function s(){this._suspended=!1,this.status=0}return s.prototype.set=function(t){this.status=i[t]},s.prototype.is=function(t){return this.status===i[t]},s.prototype.isIn=function(){return 100<=this.status&&this.status<200},s.prototype.isLoop=function(){return 200<=this.status&&this.status<300},s.prototype.isOut=function(){return 300<=this.status&&this.status<400},s.prototype.isPlaying=function(){return this.status%100==10},s.prototype.suspended=function(){return arguments.length&&(this._suspended=arguments[0]),this._suspended},s}),N2D("FrontendLayerAnimationsAbstract",function(t,e){function i(t,e){this.hasAnimation=!1,this.$layer=t,this.$animatableElement=e}return i.prototype.onResize=function(){},i.prototype.resetToEditor=function(){},i}),N2D("FrontendLayerAnimationsBasic","FrontendLayerAnimationsAbstract",function(l,r){var n={n2AutoAlpha:1,x:0,y:0,z:0,rotationX:0,rotationY:0,rotationZ:0,scaleX:1,scaleY:1,skewX:0,n2blur:0};function e(t){return t.split("|*|").join("% ")+"px"}function t(t,e){this.device="desktopPortrait",N2Classes.FrontendLayerAnimationsAbstract.prototype.constructor.call(this,t,e),this.isAbsolute="absolute"===t.data("pm"),this.startValues=l.extend({},n),this.hadImmediateRender=!1,this.horizontalRatio=this.verticalRatio=1,this._requireUpdateRatios=!1}((t.prototype=Object.create(N2Classes.FrontendLayerAnimationsAbstract.prototype)).constructor=t).prototype.updateRatios=function(t,e){this.horizontalRatio=t,this.verticalRatio=e},t.prototype.optimizeFromTo=function(t,e,i,s,n,o){this.hadImmediateRender?n.immediateRender=!1:this.hadImmediateRender=!0,N2Classes.FrontendLayerAnimationManager.optimizeFromTo(t,e,i,s,n,o)},t.prototype.resetToEditor=function(){this.hasAnimation&&this.setZero()},t.prototype.setStartValues=function(t){l.extend(this.startValues,t),delete this.startValues.duration,delete this.startValues.delay,delete this.startValues.ease},t.prototype.setZero=function(){this.hasAnimation&&NextendTween.set(this.$animatableElement,l.extend({clearProps:"transform,n2blur"},n))},t.prototype.collectRelatedAnimations=function(t,e,i){var s;this.device=e.device,this.animationManager=e,this.hasAnimation=!0,this.currentZero=n,this.options={in:l.extend({specialZero:0,transformOrigin:"50|*|50|*|0",keyFrames:[]},i.in),loop:l.extend({repeatCount:0,repeatStartDelay:0,transformOrigin:"50|*|50|*|0",keyFrames:[]},i.loop),out:l.extend({transformOrigin:"50|*|50|*|0",keyFrames:[]},i.out)},this._fillAnimations(this.options.in.keyFrames),this._fillAnimations(this.options.loop.keyFrames),this._fillAnimations(this.options.out.keyFrames),this.options.in.keyFrames.length&&t.in.push(new N2Classes.AnimationsRelated(this,"extendTimelineIn")),this.options.loop.keyFrames.length&&(s=new N2Classes.AnimationsLayerLoop(this,e,this.$layer,this.$animatableElement,this.options.loop),t.loop.push(s)),this.options.out.keyFrames.length&&t.out.push(new N2Classes.AnimationsRelated(this,"extendTimelineOut")),t.setDevice.push(this)},t.prototype.setDevice=function(t){this.device=t},t.prototype.requireUpdateRatios=function(){this._requireUpdateRatios||(this._requireUpdateRatios=!0,this.animationManager.needInvalidate(),this.animationManager.relatedAnimations.updateRatios.push(this),this.updateRatios(this.animationManager.horizontalRatio,this.animationManager.verticalRatio))},t.prototype._fillAnimations=function(t){for(var e=0;e<t.length;e++)t[e]=l.extend({duration:.8,delay:0,ease:"easeOutCubic",opacity:1,x:0,y:0,z:0,rotationX:0,rotationY:0,rotationZ:0,scaleX:1,scaleY:1,skewX:0,n2blur:0},t[e])};var a=["desktopLandscape","desktopPortrait","tabletLandscape","tabletPortrait","mobileLandscape","mobilePortrait"];return t.prototype.prepareDeviceSpecific=function(t,e){this.prepareDeviceSpecificProp("x",t,e),this.prepareDeviceSpecificProp("y",t,e),delete t.desktopLandscape,delete t.tabletLandscape,delete t.tabletPortrait,delete t.mobileLandscape,delete t.mobilePortrait},t.prototype.prepareDeviceSpecificProp=function(t,e,i){for(var s={desktopPortrait:e[t]*i},n=!1,o=0;o<a.length;o++)e[a[o]]&&e[a[o]][t]!==r&&(s[a[o]]=e[a[o]][t]*i,n=!0);this.isAbsolute?(this.requireUpdateRatios(),n?(this.animationManager.needInvalidate(),e[t]=function(t){return t[this.device]===r?t.desktopPortrait*this.horizontalRatio:t[this.device]*this.horizontalRatio}.bind(this,s)):e[t]=function(t){return t*this.horizontalRatio}.bind(this,s.desktopPortrait)):n?(this.animationManager.needInvalidate(),e[t]=function(t){return t[this.device]===r?t.desktopPortrait:t[this.device]}.bind(this,s)):e[t]=s.desktopPortrait},t.prototype.extendTimelineIn=function(t){NextendTween.set(this.$animatableElement,{transformOrigin:e(this.options.in.transformOrigin)}),this.buildTimelineIn(t,this.options.in.keyFrames)},t.prototype.setCurrentZero=function(){var t=l.extend({},this.currentZero);delete t.delay,delete t.duration,NextendTween.set(this.$animatableElement,t)},t.prototype.buildTimelineIn=function(t,e){var i=0;if(e=l.extend(!0,[],e),this.options.in.specialZero&&0<e.length&&(this.currentZero=e.pop(),delete this.currentZero.name,delete this.currentZero.duration,delete this.currentZero.delay,delete this.currentZero.ease,this.prepareDeviceSpecific(this.currentZero,1),this.currentZero.rotationX=-this.currentZero.rotationX,this.currentZero.rotationY=-this.currentZero.rotationY,this.currentZero.rotationZ=-this.currentZero.rotationZ,this.setCurrentZero(),this.setStartValues(this.currentZero)),0<e.length){var s=this._buildAnimationChainIn(e);if(0<s.length)for(var n=0;n<s.length;n++)this.optimizeFromTo(t,this.$animatableElement,s[n].duration,s[n].from,s[n].to,i),i+=s[n].duration+s[n].to.delay;this.setStartValues(s[0].from)}},t.prototype._buildAnimationChainIn=function(t){for(var e=[{from:this.currentZero}],i=t.length-1;0<=i;i--){var s=l.extend(!0,{},t[i]),n=s.delay,o=s.duration,r=s.ease;delete s.delay,delete s.duration,delete s.ease,delete s.name,this.prepareDeviceSpecific(s,-1);var a=e[0].from;s.z=-s.z,s.rotationX=-s.rotationX,s.rotationY=-s.rotationY,s.rotationZ=-s.rotationZ,e.unshift({duration:o,from:s,to:l.extend({},a,{ease:r,delay:n})})}return e.pop(),e},t.prototype.extendTimelineOut=function(t){t.set(this.$animatableElement,{transformOrigin:e(this.options.out.transformOrigin),immediateRender:!1}),this.buildTimelineOut(t,this.options.out.keyFrames)},t.prototype.buildTimelineOut=function(t,e){var i=0;e=l.extend(!0,[],e);var s=this._buildAnimationChainOut(e);if(0<s.length)for(var n=0;n<s.length;n++)this.optimizeFromTo(t,this.$animatableElement,s[n].duration,s[n].from,s[n].to,i),i+=s[n].duration+s[n].to.delay},t.prototype._buildAnimationChainOut=function(t){for(var e=[{to:this.currentZero}],i=0;i<t.length;i++){var s=l.extend(!0,{},t[i]),n=s.duration;delete s.duration,delete s.name;var o=l.extend({},e[e.length-1].to);delete o.delay,delete o.ease,this.prepareDeviceSpecific(s,1),e.push({duration:n,from:o,to:s})}return e.shift(),e},t}),N2D("FrontendLayerAnimationsReveal","FrontendLayerAnimationsAbstract",function(i,s){var n={from:"top",fromease:"easeOutCubic",to:"bottom",toease:"easeOutCubic",content:"",duration:2,delay:0,color:"ffffff"};function t(t,e){N2Classes.FrontendLayerAnimationsAbstract.prototype.constructor.call(this,t,e)}return((t.prototype=Object.create(N2Classes.FrontendLayerAnimationsAbstract.prototype)).constructor=t).prototype.resetToEditor=function(){this.hasAnimation&&(this.in||this.out)&&(this._destroyGroup("in"),this._destroyGroup("out"),NextendTween.set(this.$revealedElements,{clearProps:"transform, opacity"}),this.$revealedElements.removeAttr("data-force-hidden"))},t.prototype.setZero=function(){this.hasAnimation&&(this.in||this.out)&&(this.in&&this.in.$clip.css("visibility","hidden"),this.out&&this.out.$clip.css("visibility","hidden"),NextendTween.set(this.$revealedElements,{clearProps:"transform, opacity"}),this.$revealedElements.removeAttr("data-force-hidden"))},t.prototype.collectRelatedAnimations=function(t,e,i){this.animationManager=e,this.in=!1,this.out=!1,i.in===s&&i.out===s||(this.hasAnimation=!0,this.$revealedElements=this.$animatableElement.find(".n2-ss-layer-content,.n2-ss-layer-row,.n2-ss-item,.n2-ss-item-content").eq(0),i.in!==s&&(this.in=this._initGroup("in",i),t.in.push(new N2Classes.AnimationsRelated(this,"extendTimelineIn"))),i.out!==s&&(this.out=this._initGroup("out",i),t.out.push(new N2Classes.AnimationsRelated(this,"extendTimelineOut"))))},t.prototype._initGroup=function(t,e){return{$revealedElements:this.$revealedElements,options:i.extend({},n,e[t]),$clip:i('<div class="n2-ss-reveal-clip"></div>').appendTo(this.$animatableElement)}},t.prototype._destroyGroup=function(t){this[t]&&(this[t].$clip.remove(),delete this[t])},t.prototype.extendTimelineIn=function(t,e,i){N2Classes.FrontendLayerAnimationsRevealAnimation.in(t,this.in)},t.prototype.extendTimelineOut=function(t,e,i){N2Classes.FrontendLayerAnimationsRevealAnimation.out(t,this.out)},t.prototype.onResize=function(){this.in&&this.in.$clip.triggerHandler("RevealInternalResize"),this.out&&this.out.$clip.triggerHandler("RevealInternalResize")},t}),N2D("FrontendLayerAnimationsRevealAnimation",function(a,d){function c(t,e,i,s){switch(t){case"curtains-horizontal":var n=(o=a("<div></div>").css({width:"50%",background:"#"+i}).appendTo(e)).clone().css("left","50%").appendTo(e);return o=o.add(n);case"curtains-vertical":n=(o=a("<div></div>").css({height:"50%",background:"#"+i}).appendTo(e)).clone().css("top","50%").appendTo(e);return o=o.add(n);case"curtains-diagonal-1":return a('<svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><polygon points="0,0 33,0 0,33" /><polygon points="32,32 32,-1 -1,32" /></svg>').appendTo(e).find("polygon").attr("fill","#"+i);case"curtains-diagonal-2":return a('<svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><polygon points="0,32 33,32 0,-1" /><polygon points="32,0 32,33 -1,0" /></svg>').appendTo(e).find("polygon").attr("fill","#"+i);case"circle-top":case"circle-right":case"circle-bottom":case"circle-left":var o=a("<div></div>").css({borderRadius:"100%",background:"#"+i}).appendTo(e),r=function(t,e,i){var s;switch(e){case"circle-top":case"circle-bottom":s=2*Math.ceil(Math.sqrt(i.width*i.width/4+i.height*i.height));break;case"circle-right":case"circle-left":s=2*Math.ceil(Math.sqrt(i.width*i.width+i.height*i.height/4))}t.css({marginTop:-s/2,marginLeft:-s/2,width:s,height:s})}.bind(this,o,t);switch(r(s),e.on("RevealInternalResize",function(t,e){e(t[0].getBoundingClientRect())}.bind(this,e,r)),t){case"circle-top":o.css({left:"50%"});break;case"circle-right":o.css({left:"100%",top:"50%"});break;case"circle-bottom":o.css({left:"50%",top:"100%"});break;case"circle-left":o.css({top:"50%"})}return o}return a("<div></div>").css({background:"#"+i}).appendTo(e)}function p(t,e,i,s,n,o){var r=h(n,o),a=t.totalDuration();r.length===d&&(r=[r]);for(var l=0;l<r.length;l++)r[l].b.ease=s,t.fromTo(e.eq(l),i,r[l].a,r[l].b,a)}function u(t,e,i,s,n,o,r){var a=h(o,r);a.length===d&&(a=[a]);for(var l=0;l<a.length;l++)a[l].a.ease=n,t.fromTo(e.eq(l),i,a[l].b,a[l].a,s)}function m(t,e){var i={},s={};switch(t){case"fade":i={n2AutoAlpha:0},s={n2AutoAlpha:1};break;case"scale-up":i={scale:.7},s={scale:1};break;case"scale-down":i={scale:1.3},s={scale:1};break;case"top":i={y:"-100.1%"},s={y:"0%"};break;case"right":i={x:"100.1%"},s={x:"0%"};break;case"bottom":i={y:"100.1%"},s={y:"0%"};break;case"left":i={x:"-100.1%"},s={x:"0%"};break;default:return!1}return"out"===e?{from:s,to:i}:{from:i,to:s}}var h=function(t,e){var i,s;switch(t){case"top":return{a:{y:"-100.1%"},b:{y:"0%"}};case"right":return{a:{x:"100.1%"},b:{x:"0%"}};case"bottom":return{a:{y:"100.1%"},b:{y:"0%"}};case"left":return{a:{x:"-100.1%"},b:{x:"0%"}};case"skew-top":return i=20,s=Math.cos((90-i)*Math.PI/180)*e.width,{a:{y:-1*(e.height+s),skewY:-i+"deg",skewType:"simple"},b:{y:0,skewY:"0deg"}};case"skew-right":return i=20,s=Math.cos((90-i)*Math.PI/180)*e.height,{a:{x:e.width+s,skewX:-i+"deg",skewType:"simple"},b:{x:0,skewX:"0deg"}};case"skew-bottom":return i=20,s=Math.cos((90-i)*Math.PI/180)*e.width,{a:{y:e.height+s,skewY:i+"deg",skewType:"simple"},b:{y:0,skewY:"0deg"}};case"skew-left":return i=20,s=Math.cos((90-i)*Math.PI/180)*e.height,{a:{x:-1*(e.width+s),skewX:i+"deg",skewType:"simple"},b:{x:0,skewX:"0deg"}};case"rotate-top-left":return{a:{rotationZ:"-90deg",transformOrigin:"0 0"},b:{rotationZ:0}};case"rotate-top-left-":return{a:{rotationZ:"90deg",transformOrigin:"0 0"},b:{rotationZ:0}};case"rotate-top-right":return{a:{rotationZ:"90deg",transformOrigin:"100% 0"},b:{rotationZ:0}};case"rotate-top-right-":return{a:{rotationZ:"-90deg",transformOrigin:"100% 0"},b:{rotationZ:0}};case"rotate-bottom-left":return{a:{rotationZ:"90deg",transformOrigin:"0 100%"},b:{rotationZ:0}};case"rotate-bottom-left-":return{a:{rotationZ:"-90deg",transformOrigin:"0 100%"},b:{rotationZ:0}};case"rotate-bottom-right":return{a:{rotationZ:"-90deg",transformOrigin:"100% 100%"},b:{rotationZ:0}};case"rotate-bottom-right-":return{a:{rotationZ:"90deg",transformOrigin:"100% 100%"},b:{rotationZ:0}};case"circle-top":return{a:{scale:0,transformOrigin:"50% 50%",y:"-5%"},b:{y:"0%",scale:1}};case"circle-right":return{a:{scale:0,transformOrigin:"50% 50%",x:"5%"},b:{x:"0%",scale:1}};case"circle-bottom":return{a:{scale:0,transformOrigin:"50% 50%",y:"5%"},b:{y:"0%",scale:1}};case"circle-left":return{a:{scale:0,transformOrigin:"50% 50%",x:"-5%"},b:{x:"0%",scale:1}};case"curtains-horizontal":return[{a:{x:"-100%"},b:{x:"0%"}},{a:{x:"100%"},b:{x:"0%"}}];case"curtains-vertical":return[{a:{y:"-100%"},b:{y:"0%"}},{a:{y:"100%"},b:{y:"0%"}}];case"curtains-diagonal-1":case"curtains-diagonal-2":return[{a:{x:"-100%"},b:{x:"0%"}},{a:{x:"100%"},b:{x:"0%"}}]}};return{in:function(t,e){"no"!==e.options.from&&t.fromTo(e.$revealedElements,1e-8,{n2AutoAlpha:0},{n2AutoAlpha:0},0);var i=new NextendTimeline,s="no"===e.options.from?1:2,n=e.options.duration/s;t.add(i),t.set(e.$clip,{visibility:"visible"},0);var o=e.$clip[0].getBoundingClientRect(),r=c(e.options.from,e.$clip,e.options.color,o),a=c(e.options.to,e.$clip,e.options.color,o);r.css("display","none"),i.set({},{},e.options.delay),"no"!==e.options.from?(a.css("display","none"),i.set(r,{display:"block"}),p(i,r,n,e.options.fromease,e.options.from,o),i.set(r,{display:"none"}),i.set(a,{display:"block"})):e.$clip.css("visibility","visible");var l=i.totalDuration(),h=m(e.options.content,"in");h?(h.from.n2AutoAlpha===d&&i.set(e.$revealedElements,{n2AutoAlpha:1}),h.to.ease="easeOutCubic",i.fromTo(e.$revealedElements,n,h.from,h.to)):i.set(e.$revealedElements,{n2AutoAlpha:1}),u(i,a,n,l,e.options.toease,e.options.to,o),i.set(a,{display:"none"}),i.set(e.$clip,{visibility:"hidden"})},out:function(t,e){var i=new NextendTimeline,s="no"===e.options.to?1:2,n=e.options.duration/s;t.add(i),t.set(e.$clip,{visibility:"visible"},0);var o=e.$clip[0].getBoundingClientRect(),r=c(e.options.from,e.$clip,e.options.color,o),a=c(e.options.to,e.$clip,e.options.color,o);r.css("display","none"),a.css("display","none"),i.set({},{},e.options.delay),i.set(r,{display:"block"}),p(i,r,n,e.options.fromease,e.options.from,o),i.set(r,{display:"none"});var l=i.totalDuration(),h=m(e.options.content,"out");h?(h.from.n2AutoAlpha===d&&i.set(e.$revealedElements,{n2AutoAlpha:0}),h.to.ease="easeOutCubic",i.fromTo(e.$revealedElements,n,h.from,h.to,l-n)):i.set(e.$revealedElements,{n2AutoAlpha:0}),l=i.totalDuration(),i.set(a,{display:"block"},l),u(i,a,n,l,e.options.toease,e.options.to,o),i.set(a,{display:"none"}),i.set(e.$clip,{visibility:"hidden"})}}}),N2D("AnimationsControllerLoop","FrontendLayerAnimationManager",function(t,e){function i(t,e){this.animationManager=t,this.status=this.animationManager.status,this.$layer=e}return i.prototype.reset=function(){for(var t=0;t<this.animations.length;t++)this.animations[t].reset()},i.prototype.play=function(){if(!this.status.suspended()&&this.status.is("LOOP_PLAYING"))for(var t=0;t<this.animations.length;t++)this.animations[t].play()},i.prototype.resume=function(){for(var t=0;t<this.animations.length;t++)this.animations[t].resume();this.status.set("LOOP_PLAYING")},i.prototype.pause=function(){if(!this.status.suspended()&&this.status.is("LOOP_PLAYING")){for(var t=0;t<this.animations.length;t++)this.animations[t].pause();this.status.set("LOOP_PAUSED")}},i.prototype.suspend=function(){if(!this.status.suspended()&&this.status.is("LOOP_PLAYING"))for(var t=1;t<this.animations.length;t++)this.animations[t].suspend()},i.prototype.unsuspend=function(){if(!this.status.suspended()&&this.status.is("LOOP_PLAYING"))for(var t=1;t<this.animations.length;t++)this.animations[t].unsuspend()},i.prototype.requestEnd=function(t){if(!this.status.suspended()&&(this.status.is("LOOP_PLAYING")||this.status.is("LOOP_PAUSED"))){for(var e=0;e<this.animations.length;e++)this.animations[e].requestEnd();t?this.status.set("LOOP_ENDING_FORCED"):this.status.set("LOOP_ENDING")}},i.prototype.markSingleAnimationEnded=function(){for(var t=0;t<this.animations.length;t++)if(!this.animations[t].isEnded())return;this.ended()},i.prototype.ended=function(){this.animationManager.loopComplete()},i.prototype.resetForReplay=function(){for(var t=0;t<this.animations.length;t++)this.animations[t].resetForReplay()},i.prototype.invalidate=function(){for(var t=1;t<this.animations.length;t++)this.animations[t].invalidate()},i.prototype.buildTimeline=function(t){this.animations=[];for(var e=0;e<this.animationManager.relatedAnimations.loop.length;e++)this.animationManager.relatedAnimations.loop[e].setController(this,e),this.animations.push(this.animationManager.relatedAnimations.loop[e]);if(0<this.animations.length){this.animationManager.linear||(t.addPause("+=0.002",this.animationManager.promises.loop.wait.bind(this.animationManager.promises.loop)),this.animationManager.promises.loop.addPauseTween(t.recent()));var i=t.totalDuration();this.animations[0].buildTimeline(t,i);for(e=1;e<this.animations.length;e++)this.animations[e].buildTimeline(!!this.animationManager.linear&&t,this.animationManager.linear?i:0)}return this.animations.length},i}),N2D("AnimationsLayerLoop",["AnimationsLoopAbstract"],function(l,t){function e(t,e,i,s,n){this.layerAnimations=t,this.animationManager=e,this.$layer=i,this.$animatableElement=s,this.animationData=n.keyFrames,this.transformOrigin=n.transformOrigin.split("|*|").join("% ")+"px",this.repeatCount=n.repeatCount,this.repeatStartDelay=Math.max(0,n.repeatStartDelay),this.single=!1,N2Classes.AnimationsLoopAbstract.prototype.constructor.call(this,parseInt(this.repeatCount))}return((e.prototype=Object.create(N2Classes.AnimationsLoopAbstract.prototype)).constructor=e).prototype.playLoopAgain=function(){N2Classes.AnimationsLoopAbstract.prototype.playLoopAgain.call(this),this.$layer.triggerHandler("LoopRoundComplete")},e.prototype.buildTimeline=function(t,e){var i=this.animationManager.linear?"linear":"event";this.timeline=t||new NextendTimeline({paused:!0}),e+=.001,this.timeline.set(this.$animatableElement,{transformOrigin:this.transformOrigin,immediateRender:!1},e),0<this.repeatStartDelay&&(e+=this.repeatStartDelay,this.timeline.set({},{},e)),this.buildTimelineLoop(e,i,l.extend(!0,[],this.animationData)),this.animationManager.linear||this.timeline.set({},{onComplete:this.onComplete.bind(this)})},e.prototype.buildTimelineLoop=function(t,e,i){var s,n=this._buildAnimationChainLoop(i);if(this.zero=l.extend(!0,{ease:n[0].to.ease},n[0]),this.single||(s=this.zero.duration/2,N2Classes.FrontendLayerAnimationManager.optimizeFromTo(this.timeline,this.$animatableElement,s,l.extend({},this.layerAnimations.currentZero),l.extend({immediateRender:!1,ease:this.zero.ease},this.zero.from),t),t+=s),"linear"===e){var o=this.repeatCount;o<1&&(o=1);for(var r=0;r<o;r++)for(var a=0;a<n.length;a++)N2Classes.FrontendLayerAnimationManager.optimizeFromTo(this.timeline,this.$animatableElement,n[a].duration,l.extend({},n[a].from),l.extend({immediateRender:!1},n[a].to),t),t+=n[a].duration}else if("event"===e){this.timeline.addLabel("LOOP",t);for(a=0;a<n.length;a++)n[a].to.immediateRender=!1,N2Classes.FrontendLayerAnimationManager.optimizeFromTo(this.timeline,this.$animatableElement,n[a].duration,n[a].from,n[a].to,t),t+=n[a].duration;this.timeline.set({},{onComplete:this.repeat.bind(this)},t)}this.single||N2Classes.FrontendLayerAnimationManager.optimizeFromTo(this.timeline,this.$animatableElement,this.zero.duration/2,l.extend({},this.zero.from),l.extend({immediateRender:!1,ease:this.zero.ease},this.layerAnimations.currentZero),t)},e.prototype._buildAnimationChainLoop=function(t){var e;1===t.length&&(this.single=!0,e=l.extend(!0,{},t[0]),(n=l.extend({},this.layerAnimations.currentZero)).duration=e.duration,n.ease=e.ease,360!==Math.abs(e.rotationX)&&360!==Math.abs(e.rotationY)&&360!==Math.abs(e.rotationZ)||1!=e.opacity||0!=e.x||0!=e.y||0!=e.z||1!=e.scaleX||1!=e.scaleY||0!=e.skewX||0!=e.n2blur?t.push(n):(360==+e.rotationX?e.rotationX="+=360":-360==+e.rotationX&&(e.rotationX="-=360"),360==+e.rotationY?e.rotationY="+=360":-360==+e.rotationY&&(e.rotationY="-=360"),360==+e.rotationZ?e.rotationZ="+=360":-360==+e.rotationZ&&(e.rotationZ="-=360")));var i=0;delete t[i].name,this.layerAnimations.prepareDeviceSpecific(t[i],1);var s=[{duration:t[i].duration,from:l.extend({},this.layerAnimations.currentZero),to:t[i]}];for(i++;i<t.length;i++){var n,o=(n=t[i]).duration;delete n.duration,delete n.name;var r=l.extend({},s[s.length-1].to);delete r.delay,delete r.ease,this.layerAnimations.prepareDeviceSpecific(t[i],1),s.push({duration:o,from:r,to:n})}return this.single||(s.push({duration:s[0].duration,from:l.extend({},s[s.length-1].to),to:l.extend({},s[0].to)}),s.shift(),delete s[0].from.duration),s},e}),N2D("AnimationsLoopTimeline",["AnimationsLoopAbstract"],function(t,e){N2Classes.AnimationsLoopAbstract.status;function i(t,e){this.manager=t,N2Classes.AnimationsLoopAbstract.prototype.constructor.call(this,e)}return((i.prototype=Object.create(N2Classes.AnimationsLoopAbstract.prototype)).constructor=i).prototype.buildTimeline=function(t,e){this.timeline=t||new NextendTimeline({paused:!0}),this.controller.animationManager.linear?this.repeatCount=0:this.timeline.addLabel("LOOP",e);var i=this.manager.getLoopTimeline();this.timeline.add(i.paused(0),e),this.controller.animationManager.linear||i.eventCallback("onComplete",function(){this.repeat()||this.onComplete()},null,this)},i.prototype.invalidate=function(){var t=this.timeline.time();this.timeline.invalidate().time(t,!0)},i}),N2D("AnimationsLoopAbstract",function(t,e){function i(t){this.controller=null,this.ending=!1,this.ended=!1,this._counter=0,this.repeatCount=t,this.timeline=null}return i.prototype.setController=function(t,e){this.controller=t,this.index=e},i.prototype.repeat=function(){return this._counter++,!!(this.isInfinite()&&!1===this.ending||this._counter<this.repeatCount)&&(this.playLoopAgain(),!0)},i.prototype.playLoopAgain=function(){this.timeline.seek("LOOP")},i.prototype.resetCounter=function(){this._counter=0},i.prototype.isInfinite=function(){return 0===this.repeatCount},i.prototype.buildTimeline=function(t,e){},i.prototype.refresh=function(){},i.prototype.reset=function(){this.resetForReplay(),0<this.index&&this.timeline.pause(0)},i.prototype.resetForReplay=function(){this.ending=!1,this.ended=!1,this.resetCounter()},i.prototype.play=function(){0<this.index&&this.timeline.restart(!0)},i.prototype.pause=function(){this.timeline.pause()},i.prototype.resume=function(){this.timeline.play()},i.prototype.suspend=function(){this.timeline.pause()},i.prototype.unsuspend=function(){this.timeline.play()},i.prototype.onComplete=function(){this.ended=!0,this.controller.markSingleAnimationEnded()},i.prototype.isEnded=function(){return this.ended},i.prototype.requestEnd=function(){this.ended||this.ending||(this.ending=!0,this.timeline.play())},i}),N2D("SmartSliderResponsive",function(p,t){function u(t,e){this.state={StarterSlide:!1},this.isResetActiveSlideEarly=this.isResetActiveSlideEarly||!1,this.disableTransitions=!1,this.disableTransitionsTimeout=null,this.lastClientHeight=0,this.lastClientHeightTime=0,this.isLandscape=!1,this.pixelSnappingFraction=0,this.focusOffsetTop=0,this.focusOffsetBottom=0,this.fullPageMinimumSliderHeight=0,this.minimumSlideHeight=0,this.isFullScreen=!1,this.visibleRealSlidesChanged=!0,this.filters={SliderWidth:[],SliderHeight:[],SlideHeight:[],SliderVerticalCSS:[]},this.parameters=p.extend({hideOn:{desktopLandscape:0,desktopPortrait:0,tabletLandscape:0,tabletPortrait:0,mobileLandscape:0,mobilePortrait:0},onResizeEnabled:!0,type:"auto",downscale:!0,upscale:!1,constrainRatio:!0,minimumHeight:0,maximumSlideWidth:{ratio:-1,desktopLandscape:0,desktopPortrait:0,tabletLandscape:0,tabletPortrait:0,mobileLandscape:0,mobilePortrait:0},forceFull:0,forceFullOverflowX:"body",forceFullHorizontalSelector:"",sliderHeightBasedOn:"real",decreaseSliderHeight:0,focusUser:1,focusEdge:"auto",enabledDevices:{desktopLandscape:1,desktopPortrait:0,mobileLandscape:0,mobilePortrait:0,tabletLandscape:0,tabletPortrait:0},breakpoints:[],sizes:{desktopPortrait:{width:1200,height:600,max:1e4,min:40}},normalizedDeviceModes:{unknown:"unknown",desktopPortrait:"desktopPortrait"},ratioToDevice:{Portrait:{tablet:0,mobile:0},Landscape:{tablet:0,mobile:0}},overflowHiddenPage:0,focus:{offsetTop:"",offsetBottom:""}},e),this.parameters.hideOn=window.ssOverrideHideOn||this.parameters.hideOn,this.doThrottledResize=NextendThrottle(this.doResize.bind(this),50),this.slider=t,this.sliderElement=t.sliderElement,this.addFilter("SliderWidth",this.filterSliderWidthHorizontalSpacing.bind(this)),this.slider.parameters.dynamicHeight&&this.slider.stages.done("BeforeShow",function(){this.doResize()}.bind(this))}return u.DeviceMode={unknown:0,desktopLandscape:1,desktopPortrait:2,tabletLandscape:3,tabletPortrait:4,mobileLandscape:5,mobilePortrait:6},u._DeviceMode={0:"unknown",1:"desktopLandscape",2:"desktopPortrait",3:"tabletLandscape",4:"tabletPortrait",5:"mobileLandscape",6:"mobilePortrait"},u._DeviceGroup={desktopLandscape:"desktop",desktopPortrait:"desktop",tabletLandscape:"tablet",tabletPortrait:"tablet",mobileLandscape:"mobile",mobilePortrait:"mobile"},u.prototype.setDeviceID=function(t){this.deviceID=t,this.device=u._DeviceMode[t]},u.prototype.start=function(){if(this.slider.stages.done("ResizeFirst",function(){nextend.fontsDeferred===t?(this.slider.stages.resolve("Fonts"),this.slider.stages.resolved("windowLoad")||N2R("windowLoad",function(){this.doResize()}.bind(this))):nextend.fontsDeferred.always(function(){this.slider.stages.resolve("Fonts")}.bind(this))}.bind(this)),this.normalizeTimeout=null,this.delayedResizeAdded=!1,this.setDeviceID(u.DeviceMode.unknown),this.ratios={slideW:1,slideH:1},this.horizontalSpacingControls={right:[],left:[]},this.horizontalSpacing={right:0,left:0},this.staticSizes={paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0},this.alignElement=this.slider.sliderElement.closest(".n2-ss-align"),this.$section=this.alignElement.closest(".n2-section-smartslider"),"fullpage"===this.parameters.type&&"100vh"===this.parameters.sliderHeightBasedOn&&(this.$viewportHeight=p('<div style="height:100vh;width:0;position:absolute;bottom:0;visibility:hidden;"></div>').appendTo("body")),this.containerElementPadding=this.sliderElement.parent(),this.containerElement=this.containerElementPadding.parent(),!this.slider.isAdmin&&this.parameters.overflowHiddenPage&&p("html, body").css("overflow","hidden"),nextend.smallestZoom=320,this.slider.stages.resolve("ResponsiveStart"),this.init(),this.onResize(),p(window).on("SliderContentResize",function(t){this.onResize(t)}.bind(this)),this.parameters.onResizeEnabled)if(p(window).on({resize:this.onResize.bind(this),orientationchange:this.onResize.bind(this)}),window.ResizeObserver!==t){var e=0;new ResizeObserver(function(t){t.forEach(function(t){e!==t.contentRect.width&&(e=t.contentRect.width,this.internalResize())}.bind(this))}.bind(this)).observe(this.containerElement.parent().get(0))}else try{p('<iframe class="bt_skip_resize intrinsic-ignore" title="Resize helper" sandbox="allow-same-origin allow-scripts" style="margin:0 !important;padding:0;border:0;display:block;width:100%;height:0;min-height:0 !important;max-height:0;"></iframe>').on("load",function(t){var i=0,s=p(t.target.contentWindow?t.target.contentWindow:t.target.contentDocument.defaultView).on("resize",function(t){var e=s.width();i!==e&&(i=e,this.internalResize())}.bind(this));s[0].document.getElementsByTagName("HTML")[0].setAttribute("lang",window.document.getElementsByTagName("HTML")[0].getAttribute("lang"))}.bind(this)).insertBefore(this.containerElement)}catch(t){}},u.prototype.internalResize=function(){this.onResize()},u.prototype.getMinimumContentHeight=function(){for(var t,e=this.slider.visibleRealSlides,i=0,s=0;s<this.slider.visibleRealSlides.length;s++)e[s].$layer.addClass("n2-ss-layer--height-calc");for(s=0;s<this.slider.visibleRealSlides.length;s++)t=e[s].$layer.outerHeight(),i=Math.max(i,t),e[s].$layer.data("contentHeight",t);for(s=0;s<this.slider.visibleRealSlides.length;s++)e[s].$layer.removeClass("n2-ss-layer--height-calc");return i},u.prototype.getMinimumStaticContentHeight=function(){for(var i=0,t=p(),e=0;e<this.slider.staticSlides.length;e++)t=t.add(this.slider.staticSlides[e].$element[0]);return t.addClass("n2-ss-layer--height-calc").each(function(t,e){i=Math.max(i,p(e).outerHeight())}).removeClass("n2-ss-layer--height-calc"),i},u.prototype.getDeviceMode=function(){return u._DeviceMode[this.deviceID]},u.prototype.getDeviceGroup=function(){return u._DeviceGroup[this.getDeviceMode()]},u.prototype.onResize=function(t){this.slider.mainAnimation&&"playing"===this.slider.mainAnimation.getState()?this.delayedResizeAdded||(this.delayedResizeAdded=!0,this.sliderElement.on("mainAnimationComplete.responsive",this._onResize.bind(this,t))):this._onResize(t)},u.prototype._onResize=function(t){this.doResize(t),this.delayedResizeAdded=!1},u.prototype.doNormalizedResize=function(){this.normalizeTimeout&&clearTimeout(this.normalizeTimeout),this.normalizeTimeout=setTimeout(this.doResize.bind(this),10)},u.prototype.identifyDeviceID=function(){this.containerElementPadding.css("overflow","hidden");var t,e,i=u.DeviceMode.desktopPortrait,s=window.n2Width||window.innerWidth,n=window.n2Height||window.innerHeight;this.isLandscape=n<s;for(var o=this.parameters.breakpoints.length-1;0<=o;o--)if(t=this.parameters.breakpoints[o],e=this.isLandscape?t.landscapeWidth:t.portraitWidth,"max-screen-width"===t.type){if(s<=e){i=u.DeviceMode[t.device];break}}else if("min-screen-width"===t.type&&e<=s){i=u.DeviceMode[t.device];break}return this.containerElementPadding.css("overflow",""),i},u.prototype.updateOffsets=function(){if(this.focusOffsetTop=0,""!==this.parameters.focus.offsetTop)for(var t=p(this.parameters.focus.offsetTop),e=0;e<t.length;e++)t.eq(e).is(":visible")&&(this.focusOffsetTop+=t.eq(e).outerHeight());if(this.slider.isAdmin&&(this.focusOffsetTop+=p(".n2-lb-header").outerHeight()),this.focusOffsetBottom=0,""!==this.parameters.focus.offsetBottom){var i=p(this.parameters.focus.offsetBottom);for(e=0;e<i.length;e++)i.eq(e).is(":visible")&&(this.focusOffsetBottom+=i.eq(e).outerHeight())}},u.prototype.calculateFullPageSliderHeight=function(t){var e,i,s,n,o;this.slider.isAdmin||("fullpage"===this.parameters.type?(e=0,"100vh"===this.parameters.sliderHeightBasedOn?e=window.n2ClientHeight||this.$viewportHeight.height():window.matchMedia&&/Android|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent||navigator.vendor||window.opera)?(s=!1,t&&"orientationchange"===t.type&&(s=!0),i=n2const.isIOS?document.documentElement.clientHeight:window.innerHeight,window.matchMedia("(orientation: landscape)").matches?(e=Math.min(screen.width,i),90!==this.lastOrientation&&(s=!0,this.lastOrientation=90)):(e=Math.min(screen.height,i),0!==this.lastOrientation&&(s=!0,this.lastOrientation=0)),e=window.n2ClientHeight||e,n=p.now(),o=100,/SamsungBrowser/i.test(navigator.userAgent)&&(o=150),!s&&Math.abs(e-this.lastClientHeight)<o&&400<n-this.lastClientHeightTime?e=this.lastClientHeight:(this.lastClientHeight=e,this.lastClientHeightTime=n)):e=window.n2ClientHeight||document.documentElement.clientHeight||document.body.clientHeight,n2const.isBot&&(e=Math.min(e,document.documentElement.clientWidth||document.body.clientWidth)),this.fullPageMinimumSliderHeight=e-this.getVerticalOffsetHeight()):this.fullPageMinimumSliderHeight=0)},u.prototype.doResize=function(t){var e,i,s,n,o,r,a,l,h=this.identifyDeviceID();if(this.parameters.hideOn[u._DeviceMode[h]])return this.$section.addClass("n2-section-smartslider--hidden"),!1;if(this.$section.removeClass("n2-section-smartslider--hidden"),!this.containerElementPadding.is(":visible"))return!1;this.updateOffsets(),this.disableTransitions||(this.disableTransitions=!0,this.sliderElement.addClass("n2notransition"),this.disableTransitionsTimeout&&clearTimeout(this.disableTransitionsTimeout),this.disableTransitionsTimeout=setTimeout(function(){this.sliderElement.removeClass("n2notransition"),this.disableTransitions=!1}.bind(this),500)),this.slider.isAdmin||this.parameters.forceFull&&("none"!==this.parameters.forceFullOverflowX&&p(this.parameters.forceFullOverflowX).css("overflow-x","hidden"),n=s=0,this.parameters.forceFullHorizontalSelector=window.ssForceFullHorizontalSelector||this.parameters.forceFullHorizontalSelector,""===this.parameters.forceFullHorizontalSelector||(e=this.sliderElement.closest(this.parameters.forceFullHorizontalSelector))&&0<e.length&&(s=(i=e[0].getBoundingClientRect()).width,n=n2const.rtl.isRtl?(document.body.clientWidth||document.documentElement.clientWidth)-i.right:i.left),o=0<s?s:document.body.clientWidth||document.documentElement.clientWidth,a=(r=this.containerElement.parent())[0].getBoundingClientRect(),l=-(n2const.rtl.isRtl?(document.body.clientWidth||document.documentElement.clientWidth)-a.right:a.left)-parseInt(r.css("paddingLeft"))-parseInt(r.css("borderLeftWidth"))+n,this.containerElement.css({marginLeft:l,marginRight:l}).width(o));var d=!1,c=this.device;this.deviceID!==h&&(this.setDeviceID(h),this.sliderElement.removeClass("n2-ss-"+c).attr("data-device-mode",this.device).addClass("n2-ss-"+this.device),this.sliderElement.trigger("SliderDevice",{lastDevice:c,device:this.device,group:u._DeviceGroup[this.device]}),d=!0,this.slider.stages.resolve("Device")),this.calculateFullPageSliderHeight(t),d&&(this.slider.visibleRealSlides=[],this.sliderElement.trigger("SliderDeviceOrientation",{slider:this.slider,lastDevice:c,device:this.device,group:u._DeviceGroup[this.device]}),this.slider.stages.resolve("DeviceOrientation"),this.finalizeVisibleSlidesStage1()),(this.slider.isVisible||this.visibleRealSlidesChanged)&&(this.resizeStage1Width(),this.sliderElement.trigger("SliderResizeHorizontal"),this.resizeStage2Height())},u.prototype.resizeStage1Width=function(){this.resizeContext={}},u.prototype.resizeStage2Height=function(){for(var t=this.applyFilter("SliderVerticalCSS",this.getResizeStage2CSS()),e=0;e<t.length;e++)t[e].flush();this.ratios={slideW:this.resizeContext.slideWidth/this.base.slideWidth,slideH:this.resizeContext.slideHeight/this.base.slideHeight},this.slider.stages.resolve("ResizeFirst"),this.finalizeVisibleSlidesStage2(),this.triggerResize()},u.prototype.resizeStage2HeightAnimated=function(t,e,i){this.dynamicHeightSlide=e;var s=this.applyFilter("SliderVerticalCSS",this.getResizeStage2CSS());delete this.dynamicHeightSlide,this.ratios={slideW:this.resizeContext.slideWidth/this.base.slideWidth,slideH:this.resizeContext.slideHeight/this.base.slideHeight},this.finalizeVisibleSlidesStage2();for(var n=0;n<s.length;n++)t.to(s[n].$,i,s[n].css,0);t.eventCallback("onComplete",function(){this.slider.trigger("SliderResizeAnimated",[this.ratios,this])}.bind(this))},u.prototype.getResizeStage2CSS=function(){},u.prototype.onStarterSlide=function(t){this.state.StarterSlide=!0,this.calibrateActiveSlide(t),delete this.targetCurrentSlide},u.prototype.finalizeVisibleSlidesStage1=function(){this.visibleRealSlidesChanged&&(this.slider.visibleRealSlides.sort(function(t,e){return t.index-e.index}),this.updateVisibleSlides(),this.slider.trigger("visibleRealSlidesChanged"),this.slider.stages.resolve("VisibleRealSlides"),this.isResetActiveSlideEarly&&this.calibrateActiveSlide())},u.prototype.updateVisibleSlides=function(){this.slider.visibleSlides=this.slider.visibleRealSlides},u.prototype.calibrateActiveSlide=function(t){var e;this.state.StarterSlide&&0<this.slider.visibleSlides.length&&((e=t||this.slider.currentRealSlide).isVisible||(e=(e=e.getNext())||this.slider.currentSlide.getPrevious()),this.resetActiveRealSlide(e))},u.prototype.resetActiveRealSlide=function(t){var e,i;t&&t!==this.slider.currentRealSlide?(this.slider.trigger("BeforeCurrentSlideChange",t),(e=this.slider.currentSlide)&&this.slider.forceUnsetActiveSlide(e),this.slider.setCurrentRealSlide(t),i=this.slider.currentSlide,this.targetCurrentSlide=i,this.slider.forceSetActiveSlide(i),this.slider.trigger("SlideForceChange",[e,i])):i=this.slider.currentSlide,this.slider.updateInsideSlides([i])},u.prototype.finalizeVisibleSlidesStage2=function(){this.visibleRealSlidesChanged&&(this.visibleRealSlidesChanged=!1,this.isResetActiveSlideEarly||this.calibrateActiveSlide(),this.triggerVisibleSlidesChanged(),this.targetCurrentSlide!==t&&(this.slider.trigger("SlideWillChange",this.targetCurrentSlide),this.slider.trigger("CurrentSlideChanged",this.targetCurrentSlide),this.slider.stages.resolved("Visible")&&this.slider.playSlide(this.targetCurrentSlide),delete this.targetCurrentSlide))},u.prototype.triggerVisibleSlidesChanged=function(){this.slider.trigger("visibleSlidesChanged"),this.slider.stages.resolve("VisibleSlides"),this.slider.visibleRealSlides.length?this.slider.isVisible||this.slider.show():this.slider.isVisible&&this.slider.hide()},u.prototype.getNormalizedModeString=function(){return u._DeviceMode[this.deviceID]},u.prototype.triggerResize=function(){this.slider.publicTrigger("SliderResize",[this.ratios,this]),this.slider.stages.resolve("Resized")},u.prototype.getVerticalOffsetHeight=function(){if(this.isFullScreen)return 0;var t=this.focusOffsetTop+this.focusOffsetBottom;if(this.slider.widgets.$vertical)for(var e=0;e<this.slider.widgets.$vertical.length;e++)t+=this.slider.widgets.$vertical.eq(e).outerHeight();return t+this.parameters.decreaseSliderHeight},u.prototype.addHorizontalSpacingControl=function(t,e){this.horizontalSpacingControls[t].push(e),this.slider.stages.resolved("ResizeFirst")&&this.doNormalizedResize()},u.prototype.filterSliderWidthHorizontalSpacing=function(t){for(var e in this.horizontalSpacing={right:0,left:0},this.horizontalSpacingControls)for(var i=this.horizontalSpacingControls[e],s=i.length-1;0<=s;s--){var n=i[s];n.isVisible()&&(n.refreshSliderSize(t),this.horizontalSpacing[e]+=n.getSize())}return this.containerElementPadding.css({paddingLeft:this.horizontalSpacing.left,paddingRight:this.horizontalSpacing.right}),t-this.horizontalSpacing.left-this.horizontalSpacing.right},u.prototype.addFilter=function(t,e){this.filters[t].push(e)},u.prototype.removeFilter=function(t,e){this.filters[t].push(e)},u.prototype.applyFilter=function(t,e){for(var i=0;i<this.filters[t].length;i++)e=this.filters[t][i].call(this,e);return e},u.prototype.prepareFontSize=function(t){return N2Classes.FontSize.toRem(t)},u}),N2D("FrontendItemAnimatedHeading",function(l,t){var h={fade:{fn:"animateWhole",fixedWidth:!0,data:{duration:.6,overlap:0,ease:"easeInOutQuad",from:{opacity:0},current:{opacity:1},to:{opacity:0}}},slide:{fn:"animateWhole",fixedWidth:!0,data:{duration:.6,overlap:0,ease:"easeInOutQuad",from:{opacity:0,x:"100%"},current:{opacity:1,x:"0%"},to:{opacity:0,x:"-100%"}}},rotating:{fn:"animateWhole",fixedWidth:!0,data:{overflow:!0,duration:.6,overlap:.2,ease:"easeInOutQuad",transformOrigin:"50% 100% 0",from:{opacity:0,rotationX:"-70deg"},current:{opacity:1,rotationX:"0deg"},to:{opacity:0,rotationX:"70deg"}}},"drop-in":{fn:"animateWhole",fixedWidth:!0,data:{overflow:!0,duration:.6,overlap:.3,ease:"easeInOutQuad",from:{opacity:0,scale:1.2},current:{opacity:1,scale:1},to:{opacity:0,scale:.6}}},"slide-down":{fn:"animateWhole",fixedWidth:!0,data:{duration:.6,overlap:.6,ease:"easeInOutQuad",from:{opacity:0,y:"-100%"},current:{opacity:1,y:"0%"},to:{opacity:0,y:"100%"}}},typewriter1:{fn:"animateTypeWriter",data:{backspace:function(t){this.timeline.staggerFromTo(t,.1*this.speedModifier,{display:"inline-block"},{display:"none",immediateRender:!1},-.1*this.speedModifier,"+="+this.showDuration)},backspaceDuration:function(t){return this.showDuration+.1*this.speedModifier+.1*(t.length-1)*this.speedModifier}}},typewriter2:{fn:"animateTypeWriter",data:{backspace:function(t,e){this.timeline.set(e,{className:"+=n2-ss-animated-heading-i-selection",background:this.color},"+="+this.showDuration),this.timeline.set(e,{css:{color:"#"+this.color2}}),this.timeline.set(e,{className:"-=n2-ss-animated-heading-i-selection",background:""},"+=0.5"),this.timeline.set(e,{clearProps:"color"}),this.timeline.set(t,{display:"none"})},backspaceDuration:function(t){return this.showDuration+.5}}},chars:{fn:"animateChars",fixedWidth:!0,data:{duration:.4,stagger:.05,ease:"easeOutCubic",from:{scale:0,opacity:0},current:{scale:1,opacity:1},to:{scale:0,opacity:0}}},chars2:{fn:"animateChars",fixedWidth:!0,data:{duration:.4,stagger:.05,ease:"easeOutCubic",from:{rotationY:"90deg",opacity:0},current:{rotationY:"0deg",opacity:1},to:{rotationY:"-90deg",opacity:0}}}};function e(t,e){if(this.slider=e,this.$el=l(t),this.$wrapper=this.$el.parent(),this.refreshJustifyContent(),this.$texts=this.$el.find(".n2-ss-animated-heading-i-text"),!this.isEmpty(this.$texts)){if(n2const.isParentSameOrigin()&&window.parent.tpEditorApp)return this.$texts.css({position:"static",margin:"0 10px"}),void this.$el.find(".n2-ss-animated-heading-i2").css("white-space","normal");if(e.disabled.layerAnimations)return this.$texts.eq(0).css("position","static"),void this.$texts.not(":eq(0)").css("display","none");this.garbage=[],this.$layer=this.$el.closest(".n2-ss-layer"),this.$el.siblings(".n2-ss-animated-heading-before,.n2-ss-animated-heading-after").each(function(){for(var t=l(this),e=t.html().split(" "),i=t.attr("class"),s=[],n=0;n<e.length;n++)s.push('<div class="'+i+'">'+e[n]+"&nbsp;</div>");t.replaceWith(s.join(""))}),this.start()}}return e.prototype.isEmpty=function(t){return!l.trim(t.html())},e.prototype.start=function(){this.slider.started(this.started.bind(this))},e.prototype.started=function(){this.type=this.$el.data("animation-type")||"slide",this.color=this.$el.data("color")||"RGBA(255,255,255,1)",this.color2=this.$el.data("color2")||"000000",this.currentType=h[this.type],this.currentType.fixedWidth?this.animateWidth=0===this.$el.data("animate-width")?0:1:this.animateWidth=0,this.delay=(+this.$el.data("delay")||0)/1e3,this.speedModifier=1/(Math.max(+this.$el.data("speed")||100,0)/100),this.showDuration=Math.max(+this.$el.data("show-duration")||1500,0)/1e3,this.loop=+this.$el.data("loop")||0,this.totalDuration=0;var t=this.currentType.data,e=this.$texts.length,i=e;switch(this.loop&&i++,this.currentType.fn){case"animateWhole":var s=0,n=0;this.animateWidth?s=.4*.8:n=t.overlap*this.speedModifier,this.totalDuration=(i-1)*this.showDuration+2*(i-1)*t.duration*this.speedModifier+(i-1)*s-(i-1)*n;break;case"animateTypeWriter":for(var o=0;o<i;o++){var r=this.getSplitTextChars(this.$texts.eq(e===o?0:o));0<o&&(this.totalDuration+=.8+.2*this.speedModifier+.2*this.speedModifier*(r.length-1)),o<i-1&&(this.totalDuration+=t.backspaceDuration.call(this,r))}break;case"animateChars":for(n=0,o=0;o<i;o++){var a=this.$texts.eq(e===o?0:o),r=this.getSplitTextChars(a);0<o&&(this.totalDuration+=Math.max(n,t.duration*this.speedModifier+(r.length-1)*t.stagger)),o<i-1&&(this.totalDuration+=this.showDuration,n=t.duration*this.speedModifier+(r.length-1)*t.stagger)}}this.$layer.on("collectRelatedAnimations.animatedHeading",this.collectRelatedAnimations.bind(this)),this.slider.sliderElement.on("SliderResizeHorizontal",function(){this.onResize()}.bind(this)),this.onResize()},e.prototype.onResize=function(){this.size={height:0},this.currentType.fixedWidth&&!this.animateWidth&&(this.size.width=0);for(var t=0;t<this.$texts.length;t++){var e=this.$texts.eq(t).addClass("n2-ss-animated-heading-measure-width"),i=e.outerWidth()+4,s=e.outerHeight();e.removeClass("n2-ss-animated-heading-measure-width"),e.data("width",i),e.data("height",s),this.size.height=Math.max(this.size.height,s),this.currentType.fixedWidth&&!this.animateWidth&&(this.size.width=Math.max(this.size.width,i))}this.currentType.fixedWidth&&this.animateWidth?(this.size.width=this.$texts.eq(0).data("width"),this.$el.css(this.size),this.invalidate()):this.$el.css(this.size),this.refreshJustifyContent()},e.prototype.invalidate=function(){var t;this.timeline&&(t=this.timeline.time(),this.timeline.invalidate().time(t,!0))},e.prototype.collectRelatedAnimations=function(t,e){1===this.loop?(this.loopTimeline=new N2Classes.AnimationsLoopTimeline(this,0),e.loop.push(this.loopTimeline)):e.in.push(new N2Classes.AnimationsRelated(this,"extendTimeline"))},e.prototype.getTimeline=function(){return this.timeline===t?(this.timeline=new NextendTimeline({paused:1}),this[this.currentType.fn](this.currentType.data),this.timeline.delay(this.delay)):this.timeline.invalidate(),this.timeline},e.prototype.getLoopTimeline=function(){return this.getTimeline()},e.prototype.extendTimeline=function(t,e,i){var s=this.getTimeline();t.add(s,0),s.paused(!1)},e.prototype.getSplitTextChars=function(t){var e=t.data("splitTextChars");return e||(new NextendSplitText(t[0],{type:"words,chars"}),t.contents().filter(function(){return 3===this.nodeType&&!/\S/.test(this.nodeValue)}).replaceWith('<div style="position: relative; display: inline-block;">&nbsp;</div>'),e=t.find(":not(:has(*))"),t.data("splitTextChars",e)),e},e.prototype.animateChars=function(t){this.$el.css("overflow","hidden"),this.animateWidth&&this.timeline.set(this.$el,{width:function(){return this.data("width")}.bind(this.$texts.eq(0)),n2RoundProps:"width",rotationZ:"0.00001deg",immediateRender:!0,ease:N2Classes.Linear});var e=0,i=this.$texts.length,s=i;this.loop&&s++;for(var n=0;n<s;n++){var o,r=this.$texts.eq(i===n?0:n),a=this.getSplitTextChars(r);NextendTween.set(a,{transformPerspective:1e3,"will-change":"transform, opacity"}),0<n&&(o=this.timeline.totalDuration()-e,this.timeline.staggerFromTo(a,t.duration*this.speedModifier,l.extend({},t.from),l.extend({immediateRender:n<i,ease:t.ease},t.current),t.stagger,o),this.animateWidth&&this.timeline.to(this.$el,this.timeline.recent().duration(),{width:function(){return this.data("width")}.bind(r)},o)),n<s-1&&(this.timeline.staggerFromTo(a,t.duration*this.speedModifier,l.extend({},t.current),l.extend({immediateRender:0===n,ease:t.ease},t.to),t.stagger,"+="+this.showDuration),e=this.timeline.recent().duration())}this.garbage.push(function(){this.animateWidth&&this.$el.css("width",""),this.$el.css("overflow","")})},e.prototype.displayCursor=function(){var t=l('<div class="n2-ss-animated-heading-i-cursor"></div>').css("background-color",this.color).appendTo(this.$texts.parent()),e=new NextendTimeline({onComplete:function(){this.restart()}});e.fromTo(t,.1,{opacity:0},{opacity:1},"+=0.5"),e.fromTo(t,.1,{opacity:1},{opacity:0,immediateRender:!1},"+=0.5"),this.garbage.push(function(){e.kill(),t.remove()})},e.prototype.animateTypeWriter=function(t){this.$texts.css("position","relative"),this.timeline.set(this.$texts.eq(0),{display:"inline-block",immediateRender:!0});for(var e=1;e<this.$texts.length;e++)this.$texts.eq(e).css("display","none"),this.timeline.set(this.$texts.eq(e),{display:"none",immediateRender:!0});this.timeline.set(this.getSplitTextChars(this.$texts.eq(0)),{display:"inline-block",immediateRender:!0});var i=this.$texts.length,s=i;this.loop&&s++;for(var n=0;n<s;n++){var o=this.getSplitTextChars(this.$texts.eq(i===n?0:n));0<n&&(this.timeline.set(this.$texts.eq(i===n?0:n),{display:"inline-block",immediateRender:i!==n}),this.timeline.staggerFromTo(o,.2*this.speedModifier,{display:"none"},{display:"inline-block",immediateRender:i!==n},.2*this.speedModifier,"+=0.8")),n<s-1&&(t.backspace.call(this,o,this.$texts.parent()),this.timeline.set(this.$texts.eq(i===n?0:n),{display:"none",immediateRender:!1}))}this.displayCursor()},e.prototype.animateWhole=function(t){t.overflow?this.$el.css("overflow",""):this.$el.css("overflow","hidden"),this.animateWidth&&this.timeline.set(this.$el,{width:function(){return this.data("width")}.bind(this.$texts.eq(0)),immediateRender:!0}),t.transformOrigin=t.transformOrigin||"50% 50% 0",this.timeline.set(this.$texts,{transformOrigin:t.transformOrigin,transformPerspective:1e3});var e=this.$texts.length,i=e;this.loop&&i++;for(var s=0;s<i;s++){var n,o=this.$texts.eq(e===s?0:s);0<s&&(n=this.timeline.totalDuration(),this.animateWidth?(this.timeline.to(this.$el,.4,{width:function(){return this.data("width")}.bind(o)},n-.4*.2),n+=.4*.8):n-=t.overlap*this.speedModifier,this.timeline.fromTo(o,t.duration*this.speedModifier,l.extend({},t.from),l.extend({immediateRender:s<e,ease:t.ease},t.current),n)),s<i-1&&this.timeline.fromTo(o,t.duration*this.speedModifier,l.extend({},t.current),l.extend({immediateRender:0===s,ease:t.ease},t.to),"+="+this.showDuration)}this.garbage.push(function(){this.animateWidth&&this.$el.css("width",""),this.$el.css("overflow","")})},e.prototype.refreshJustifyContent=function(){var t="";switch(this.$wrapper.css("text-align")){case"left":t="flex-start";break;case"center":t="center";break;case"right":t="flex-end";break;case"justify":t="space-between"}this.$wrapper.css("justify-content",t)},e}),N2D("FrontendItemAudio",function(s,e){function t(t,e,i){this.state={slideVisible:!1,visible:!1,slide:!1,play:!1,continuePlay:!1},this.loadDeferred=s.Deferred(),this.slider=t,this.id=e,this.$node=s("#"+e),this.audio=this.$node.find("audio").get(0),this.audio?(this.$layer=this.$node.parent(),this.slide=this.slider.findSlideByElement(this.$node),this.isStatic=this.slide.isStatic(),this.isPaused=!1,this.lastVolume=1,this.parameters=s.extend({autoplay:0,loop:0,reset:0,volume:1,show:1},i),s(this.audio).on({play:this.onPlay.bind(this),pause:this.onPause.bind(this),ended:this.onEnded.bind(this),timeupdate:this.onTimeUpdate.bind(this),volumechange:this.onVolumechange.bind(this)}),0<=this.audio.duration?this.onReady():this.audio.addEventListener("loadedmetadata",this.onReady.bind(this))):this.loadDeferred.reject()}return t.prototype.setState=function(t,e,i){i=i||!1,this.state[t]=e,i&&(this.state.slideVisible&&this.state.visible&&this.state.play&&this.state.slide?this.safePlay():this.safePause())},t.prototype.safePlay=function(){this.safeCallback(function(){this.promise=this.audio.play(),this.promise&&Promise!==e&&this.promise.catch(function(t){var e;"NotAllowedError"===t.name&&(e=".ssLayerVideo"+this.counter,s("body").off(e).one("click"+e+" touchend"+e,function(){s("body").off(e),!1!==this.promise&&this.safePlay()}.bind(this)))}.bind(this))}.bind(this))},t.prototype.safePause=function(){this.safeCallback(function(){this.audio.pause(),this.promise=!1}.bind(this))},t.prototype.safeCallback=function(t){this.promise&&Promise!==e?this.promise.then(t).catch(t):t()},t.prototype.initAutoplay=function(){this.isStatic?(this.setState("play",!0),this.setState("slide",!0,!0)):(this.slider.sliderElement.on("mainAnimationComplete",function(t,e,i,s){this.slide.isActiveWhen(this.slider.slides[s])?(this.setState("play",!0),this.setState("slide",!0,!0)):this.setState("slide",!1,!0)}.bind(this)),this.slide.isActiveWhen()&&(this.setState("play",!0),this.setState("slide",!0,!0)))},t.prototype.onReady=function(){this.$time=this.$node.find(".n2-ss-item-audio-time"),this.updateTime(),this.audio.volume=this.parameters.volume,this.$node.find(".n2-ss-item-audio-play").on("click",function(){this.setState("play",!0,!0)}.bind(this)),this.$node.find(".n2-ss-item-audio-pause").on("click",function(){this.setState("play",!1,!0)}.bind(this)),this.$node.find(".n2-ss-item-audio-mute").on("click",function(){this.audio.volume=0}.bind(this)),this.$node.find(".n2-ss-item-audio-unmute").on("click",function(){this.audio.volume=this.lastVolume}.bind(this)),this.$progress=this.$node.find(".n2-ss-item-audio-progress-container").on("pointerdown",function(t){t.preventDefault(),t.stopPropagation(),this.updateUITime(t),s("body").on({"pointermove.volume":function(t){t.preventDefault(),t.stopPropagation(),this.updateUITime(t)}.bind(this),"pointerup.volume":function(t){t.preventDefault(),t.stopPropagation(),this.updateUITime(t),s("body").off(".volume")}.bind(this),"pointerleave.volume":function(){s("body").off(".volume")}.bind(this)})}.bind(this)),this.$playhead=this.$progress.find(".n2-ss-item-audio-progress-playhead"),this.$volume=this.$node.find(".n2-ss-item-audio-volume-container").on("pointerdown",function(t){t.preventDefault(),t.stopPropagation(),this.updateUIVolume(t),s("body").on({"pointermove.volume":function(t){t.preventDefault(),t.stopPropagation(),this.updateUIVolume(t)}.bind(this),"pointerup.volume":function(t){t.preventDefault(),t.stopPropagation(),this.updateUIVolume(t),s("body").off(".volume")}.bind(this),"pointerleave.volume":function(){s("body").off(".volume")}.bind(this)})}.bind(this)),this.$volumehead=this.$volume.find(".n2-ss-item-audio-volumehead");var t=this.$node.closest(".n2-ss-layer");this.layer=t.data("layer"),this.layer.isVisible&&this.setState("visible",!0,!0),this.layer.$layer.on("visibilityChange",function(t,e){var i;e?this.setState("visible",!0,!0):(i=this.state.play,this.setState("visible",!1,!0),i&&this.setState("continuePlay",!0))}.bind(this)),this.slide.isVisible&&this.setState("slideVisible",!0,!0),this.slide.$element.on({Hidden:function(){var t=this.state.play;this.setState("slideVisible",!1,!0),t&&this.setState("continuePlay",!0)}.bind(this),Visible:function(){this.setState("slideVisible",!0,!0)}.bind(this)}),this.slider.stages.done("BeforeShow",function(){this.slide.isActiveWhen()&&this.setState("slide",!0,!0)}.bind(this)),1==this.parameters.autoplay&&this.slider.visible(this.initAutoplay.bind(this)),this.isStatic||(this.slider.sliderElement.on({CurrentSlideChanged:function(t,e){this.onCurrentSlideChange(e)}.bind(this),mainAnimationStart:function(t,e,i,s){this.onCurrentSlideChange(this.slider.slides[s])}.bind(this)}),parseInt(this.parameters.reset)&&this.slider.sliderElement.on("mainAnimationComplete",function(t,e,i,s,n){s!=this.slideIndex&&0<this.audio.currentTime&&(this.audio.currentTime=0)}.bind(this))),this.loadDeferred.resolve()},t.prototype.onCurrentSlideChange=function(t){var e=this.slide.isActiveWhen(t);e&&1==this.parameters.autoplay&&this.setState("play",!0),this.setState("slide",e,!0)},t.prototype.updateTime=function(){this.$time.html(this.timeFormat(this.audio.currentTime)+" / "+this.timeFormat(this.audio.duration))},t.prototype.onPlay=function(){this.isPaused=!1,this.$node.attr("data-state","playing"),requestAnimationFrame(this.refreshCurrentTime.bind(this)),this.isStatic||this.slider.trigger("mediaStarted",this.id),this.$layer.triggerHandler("n2play")},t.prototype.onPause=function(){this.isPaused=!0,this.$node.attr("data-state","paused"),this.$layer.triggerHandler("n2pause"),this.state.continuePlay?(this.setState("continuePlay",!1),this.setState("play",!0)):this.setState("play",!1)},t.prototype.onEnded=function(){1==this.parameters.loop?(this.audio.currentTime=0,this.safePlay()):(this.isStatic||this.slider.trigger("mediaEnded",this.id),this.$layer.triggerHandler("n2stop"),this.setState("play",!1))},t.prototype.onTimeUpdate=function(){this.updateTime(),this.$playhead.css("width",this.audio.currentTime/this.audio.duration*100+"%")},t.prototype.onVolumechange=function(){this.$volumehead.css("width",100*this.audio.volume+"%"),this.$node.attr("data-volume",this.audio.volume),0!=this.audio.volume&&(this.lastVolume=this.audio.volume)},t.prototype.refreshCurrentTime=function(){this.$playhead.css("width",this.audio.currentTime/this.audio.duration*100+"%"),this.isPaused||requestAnimationFrame(this.refreshCurrentTime.bind(this))},t.prototype.updateUITime=function(t){this.audio.currentTime=this.audio.duration*Math.max(0,Math.min(.99,Math.round(t.pageX-this.$progress.offset().left)/this.$progress.width()))},t.prototype.updateUIVolume=function(t){this.audio.volume=Math.max(0,Math.min(1,Math.round(t.pageX-this.$volume.offset().left)/this.$volume.width()))},t.prototype.timeFormat=function(t){t=parseInt(t);var e=[],i=parseInt(t/60);t-=60*i;var s=parseInt(i/60);return i-=60*s,0<s&&e.push(this.pad(s,2,0)),e.push(this.pad(i,2,0)),e.push(this.pad(t,2,0)),e.join(":")},t.prototype.pad=function(t,e,i){return i=i||"0",(t+="").length>=e?t:new Array(e-t.length+1).join(i)+t},t}),N2D("FrontendItemCaption",function(o,t){function e(t,e,i,s,n){this.startCSS=null,this.slider=t,this.mode=i,this.direction=s,this.scale=n,this.node=o("#"+e).on("mouseenter",this.in.bind(this)).on("mouseleave",this.out.bind(this)),this.image=this.node.find("img"),this.content=this.node.find(".n2-ss-item-caption-content"),this["init"+i]()}return e.prototype.initSimple=function(){var t={height:"auto"};switch(this.direction){case"left":t.bottom=0,t.left="-100%",this.startCSS={left:"-100%"};break;case"right":t.bottom=0,t.right="-100%",this.startCSS={right:"-100%"};break;default:t.left=0,this.resizeSimple(),this.slider.sliderElement.on("SliderResize",this.resizeSimple.bind(this)),this._out=this._outSimple}this.content.css(t)},e.prototype.resizeSimple=function(){var t={};t[this.direction]=-this.content.height(),this.content.css(t)},e.prototype._outSimple=function(){var t={};t[this.direction]=-this.content.height(),this.tweenContent(t)},e.prototype.initFull=function(){var t={};switch(this.direction){case"left":t.bottom=0,t.left="-100%",this.startCSS={left:"-100%"};break;case"right":t.bottom=0,t.right="-100%",this.startCSS={right:"-100%"};break;case"top":t.left=0,t.top="-100%",this.startCSS={top:"-100%"};break;case"bottom":t.left=0,t.bottom="-100%",this.startCSS={bottom:"-100%"}}this.content.css(t)},e.prototype.initFade=function(){this.content.css({opacity:0,left:0,top:0}),this._in=this._inFade,this._out=this._outFade},e.prototype._inFade=function(){this.tweenContent({opacity:1})},e.prototype._outFade=function(){this.tweenContent({opacity:0})},e.prototype.in=function(){this._in(),this.scale&&this.tweenImage({scale:1.2})},e.prototype._in=function(){var t={};t[this.direction]=0,this.tweenContent(t)},e.prototype.out=function(){this._out(),this.scale&&this.tweenImage({scale:1})},e.prototype._out=function(){this.tweenContent(this.startCSS)},e.prototype.tweenContent=function(t){NextendTween.to(this.content,.5,t)},e.prototype.tweenImage=function(t){NextendTween.to(this.image,.5,t)},e}),N2D("FrontendItemCounter",function(s,t){function e(t,e,i){this.slider=t,this.data=i,this.currentPercent=this.data.fromPercent,this.node=s(e).data("counter",this),this.$layer=this.node.closest(".n2-ss-layer"),this.data.displayMode&&(this.$display=this.node.find(this.data.display)),this.$countingDiv=this.node.find(this.data.counting),0<this.data.duration&&this.start()}return e.prototype.start=function(){this.slider.started(this.started.bind(this))},e.prototype.started=function(){this.delay=(+this.data.delay||0)/1e3,this.$layer.on("collectRelatedAnimations.counter",this.collectRelatedAnimations.bind(this)),this.timeline=new NextendTimeline({paused:1});var e=this.update.bind(this),t={_percent:this.data.fromPercent,get percent(){return this._percent},set percent(t){this._percent=t,e(t)}};this.timeline.fromTo(t,this.data.duration/1e3,{percent:this.data.fromPercent},this._animateData(this.data.toPercent))},e.prototype.collectRelatedAnimations=function(t,e){e.in.push(new N2Classes.AnimationsRelated(this,"extendTimeline"))},e.prototype.extendTimeline=function(t,e,i){t.add(this.timeline,this.delay),this.timeline.paused(!1)},e.prototype._animateData=function(t,e){return{percent:t,ease:e=e||"easeOutExpo"}},e.prototype.update=function(t){switch(this.currentPercent=t,this.data.displayMode){case"circle":this.$display.attr("stroke-dashoffset",(1-t)*this.data.c);break;case"width":this.$display.css("width",100*t+"%")}this.$countingDiv.html(this.data.pre+(this.data.min+t*(this.data.total-this.data.min)).toFixed(0)+this.data.post)},e.prototype.to=function(t,e){var i=this.update.bind(this),s={_percent:this.currentPercent,get percent(){return this._percent},set percent(t){this._percent=t,i(t)}};NextendTween.to(s,e/1e3,this._animateData(t/100))},e}),N2D("FrontendItemHighlightedHeading",function(o,i){function t(t,e){this.slider=e,this.$el=o(t),this.$wrapper=this.$el.parent(),this.refreshJustifyContent(),this.slider.sliderElement.on("SliderResize",this.refreshJustifyContent.bind(this)),this.$layer=this.$el.closest(".n2-ss-layer"),this.clean(),!e.disabled.layerAnimations&&this.$el.data("animate")&&(n2const.isParentSameOrigin()&&window.parent.tpEditorApp||(this.$el.siblings(".n2-ss-highlighted-heading-before,.n2-ss-highlighted-heading-after").each(function(){var t=o(this),e=t.html().split(" "),i=t.attr("class"),s=[];"n2-ss-highlighted-heading-after"===i&&s.push('<div class="'+i+'">&nbsp;</div>');for(var n=0;n<e.length;n++)s.push('<div class="'+i+'">'+e[n]+"&nbsp;</div>");t.replaceWith(s.join(""))}),this.start()))}return t.prototype.clean=function(){},t.prototype.start=function(){this.slider.started(this.started.bind(this))},t.prototype.started=function(){this.delay=(+this.$el.data("delay")||0)/1e3,this.duration=Math.max(+this.$el.data("duration")||1500,1)/1e3,this.loop=+this.$el.data("loop")||0;var t=+this.$el.data("loop-delay");isFinite(t)||(t=2e3),this.loopDelay=t/1e3,this.$paths=this.$el.find("path"),this.totalDuration=.6*this.duration*(this.$paths.length-1)+this.duration,this.loop&&0<=this.loopDelay&&(this.totalDuration+=this.loopDelay+.8),this.$layer.on("collectRelatedAnimations.highlightedHeading",this.collectRelatedAnimations.bind(this))},t.prototype.collectRelatedAnimations=function(t,e){1===this.loop?e.loop.push(new N2Classes.AnimationsLoopTimeline(this,0)):e.in.push(new N2Classes.AnimationsRelated(this,"extendTimeline"))},t.prototype.extendTimeline=function(t){var e=this.getTimeline();t.add(e,0),e.paused(!1)},t.prototype.getTimeline=function(){if(this.timeline===i){for(var t=new NextendTimeline({paused:1}),e=0;e<this.$paths.length;e++)this.animatePath(t,this.$paths[e],.6*this.duration*e);this.loop&&0<=this.loopDelay&&(t.to(this.$paths,.4,{opacity:0},"+="+this.loopDelay),t.set({},{},"+=0.4")),t.delay(this.delay),this.timeline=t}return this.timeline},t.prototype.getLoopTimeline=function(){return this.getTimeline()},t.prototype.animatePath=function(t,e,i){var s=Math.round(1.01*(e.getTotalLength()||2e3));t.fromTo(e,.1,{opacity:0},{opacity:1},i),t.fromTo(e,this.duration,{"stroke-dasharray":"0 "+s},{"stroke-dasharray":s+" "+s},i)},t.prototype.refreshJustifyContent=function(){var t="";switch(this.$wrapper.css("text-align")){case"left":t="flex-start";break;case"center":t="center";break;case"right":t="flex-end";break;case"justify":t="space-between"}this.$wrapper.css("justify-content",t)},t}),N2D("FrontendItemHeadingSplitText",function(d,h){var i={opacity:1,x:0,y:0,rotationX:0,rotationY:0,rotationZ:0,scale:1};function t(t,e,i,s,n,o,r,a){var l;(n||r)&&(t.disabled.layerAnimations||t.disabled.layerSplitTextAnimations||(this.node=d("#"+e),this.slider=t,this.splitText=!1,(l=this.node.find("a")).length&&(this.node=l),this.$layer=this.node.closest(".n2-ss-layer"),this.in={options:!1,totalDuration:0,timeline:h,invalidate:!1},this.out={options:!1,totalDuration:0,timeline:h,invalidate:!1},this.start(i,s,n,o,r,a)))}return t.prototype.start=function(t,e,i,s,n,o){this.slider.started(this.started.bind(this,t,e,i,s,n,o))},t.prototype.started=function(t,e,i,s,n,o){var r,a,l={chars:0,words:0,lines:0};for(var h in i&&(this.in.options=this.optimize(i.data,s),l[this.in.options.mode]=1),n&&(this.out.options=this.optimize(n.data,o),l[this.out.options.mode]=1),this.modes=[],l)l[h]&&this.modes.push(h);if(l.chars&&!l.words&&this.modes.push("words"),this.splitText=new NextendSplitText(this.node,{type:this.modes.join(",")}),this.in.options){switch(r=this.in.options,a=this.splitText[r.mode].length,r.sort){case"side":case"center":a=Math.ceil(a/2)}this.in.totalDuration=(a-1)*Math.abs(r.stagger)+r.duration}if(this.out.options){switch(r=this.out.options,a=this.splitText[r.mode].length,r.sort){case"side":case"center":a=Math.ceil(a/2)}this.out.totalDuration=(a-1)*Math.abs(r.stagger)+r.duration}for(var h in(this.in.options||this.out.options)&&this.$layer.on("collectRelatedAnimations.splitText",this.collectRelatedAnimations.bind(this)),NextendTween.set(this.$layer,{perspective:1e3}),this.node.css("text-rendering","auto"),l)l[h]&&NextendTween.set(this.splitText[h],{transformOrigin:t,backfaceVisibility:e})},t.prototype.getTimelineIn=function(){this.in.timeline=new NextendTimeline({paused:1});var t=this.in.options,e={ease:t.ease};return this._animate(this.in.timeline,t.mode,t.sort,t.duration,d.extend(!0,{},t.from),d.extend(!0,e,i),t.stagger),this.in.timeline},t.prototype.getTimelineOut=function(){this.out.timeline=new NextendTimeline({paused:1});var t=this.out.options,e={ease:t.ease};return this.in.timeline&&(e.immediateRender=!1),this._animate(this.out.timeline,t.mode,t.sort,t.duration,d.extend(!0,{},i),d.extend(!0,e,t.from),-t.stagger),this.out.timeline},t.prototype.collectRelatedAnimations=function(t,e){this.in.options&&e.in.push(new N2Classes.AnimationsRelated(this,"extendTimelineIn")),this.out.options&&e.out.push(new N2Classes.AnimationsRelated(this,"extendTimelineOut"))},t.prototype.extendTimelineIn=function(t){var e=this.getTimelineIn();t.add(e,this.in.options.delay),e.paused(!1)},t.prototype.extendTimelineOut=function(t){var e=this.getTimelineOut();t.add(e,this.out.options.delay),e.paused(!1)},t.prototype._animate=function(t,e,i,s,n,o,r){var a=d.extend([],this.splitText[e]),l=null,h=[];switch(i){case"reversed":a.reverse();break;case"random":!function(t,e,i,s){for(i=t.length;i;)e=Math.random()*i--|0,s=t[i],t[i]=t[e],t[e]=s}(a);break;case"side":case"center":for(l=[];1<a.length;)h.push(a.shift()),l.push(a.pop());1===a.length&&h.push(a.shift()),a=h,"center"===i&&(a.reverse(),l.reverse());break;case"sideShifted":case"centerShifted":for(;1<a.length;)h.push(a.shift()),h.push(a.pop());1===a.length&&h.push(a.shift()),a=h,"centerShifted"===i&&a.reverse()}t.staggerFromTo(a,s,n,o,r,0),l&&l.length&&t.staggerFromTo(l,s,n,o,r,0)},t.prototype.optimize=function(t,e){"lines"===t.mode&&(t.mode="words");var i={mode:t.mode,sort:t.sort,duration:t.duration,stagger:t.stagger,delay:e,from:{},ease:t.ease};return 1!=t.opacity&&(i.from.opacity=t.opacity),1!=t.scale&&(i.from.scale=t.scale),0!=t.x&&(i.from.x=t.x),0!=t.y&&(i.from.y=t.y),0!=t.rotationX&&(i.from.rotationX=t.rotationX),0!=t.rotationY&&(i.from.rotationY=t.rotationY),0!=t.rotationZ&&(i.from.rotationZ=t.rotationZ),i},t}),N2D("FrontendItemTransition",function(s,t){function e(t,e,i){this.slider=t,(n2const.isIE||n2const.isEdge)&&(i="Fade"),this.animation=i,this.node=s("#"+e).on("mouseenter",this["in"+i].bind(this)).on("mouseleave",this["out"+i].bind(this)),this.images=this.node.find("img"),this.inner=this.node.find(".n2-ss-item-transition-inner"),this["init"+i]()}return e.prototype.initFade=function(){this.images.eq(1).css("opacity",0)},e.prototype.inFade=function(){NextendTween.to(this.images.eq(1),.5,{opacity:1}),NextendTween.to(this.images.eq(0),.5,{opacity:0})},e.prototype.outFade=function(){NextendTween.to(this.images.eq(1),.5,{opacity:0}),NextendTween.to(this.images.eq(0),.5,{opacity:1})},e.prototype.initVerticalFlip=function(){NextendTween.set(this.inner,{perspective:1e3}),NextendTween.set(this.images.eq(0),{rotationX:0,backfaceVisibility:"hidden"}),NextendTween.set(this.images.eq(1),{rotationX:180,backfaceVisibility:"hidden"})},e.prototype.inVerticalFlip=function(){NextendTween.to(this.images.eq(0),.5,{rotationX:-180,backfaceVisibility:"hidden"}),NextendTween.to(this.images.eq(1),.5,{rotationX:0,backfaceVisibility:"hidden"})},e.prototype.outVerticalFlip=function(){NextendTween.to(this.images.eq(0),.5,{rotationX:0,backfaceVisibility:"hidden"}),NextendTween.to(this.images.eq(1),.5,{rotationX:180,backfaceVisibility:"hidden"})},e.prototype.initHorizontalFlip=function(){NextendTween.set(this.inner,{perspective:1e3}),NextendTween.set(this.images.eq(0),{rotationY:0,backfaceVisibility:"hidden"}),NextendTween.set(this.images.eq(1),{rotationY:180,backfaceVisibility:"hidden"})},e.prototype.inHorizontalFlip=function(){NextendTween.to(this.images.eq(0),.5,{rotationY:-180,backfaceVisibility:"hidden"}),NextendTween.to(this.images.eq(1),.5,{rotationY:0,backfaceVisibility:"hidden"})},e.prototype.outHorizontalFlip=function(){NextendTween.to(this.images.eq(0),.5,{rotationY:0,backfaceVisibility:"hidden"}),NextendTween.to(this.images.eq(1),.5,{rotationY:180,backfaceVisibility:"hidden"})},e}),N2D("FrontendItemVideo",function(n,e){var o=1;function t(t,e,i){this.state={slideVisible:!1,visible:!1,scroll:!1,slide:!1,play:!1,continuePlay:!1},this.counter=o++,this.slider=t,this.playerId=e,this.playerElement=n("#"+this.playerId),this.videoPlayer=this.playerElement.get(0),this.parameters=n.extend({autoplay:0,loop:0,center:0,reset:0},i),this.slide=t.findSlideByElement(this.videoPlayer),this.isStatic=this.slide.isStatic();var s=this.playerElement.data("volume");0===s?(this.videoPlayer.volume=1,this.videoPlayer.muted=!0):(this.videoPlayer.volume=s,this.videoPlayer.muted=!1),this.slider.stages.done("BeforeShow",function(){0<this.videoPlayer.videoWidth?this.initVideoPlayer():this.videoPlayer.addEventListener("loadedmetadata",this.initVideoPlayer.bind(this))}.bind(this))}return t.prototype.initVideoPlayer=function(){"fill"===n(this.videoPlayer).parent().data("aspect-ratio")&&this.slider.responsive.doThrottledResize(),1===parseInt(this.parameters.center)&&(this.onResize(),this.slider.sliderElement.on("SliderResize",this.onResize.bind(this)));var t=this.playerElement.closest(".n2-ss-layer");this.layer=t.data("layer"),this.layer.isVisible&&this.setState("visible",!0,!0),this.layer.$layer.on("visibilityChange",function(t,e){var i;e?this.setState("visible",!0,!0):(i=this.state.play,this.setState("visible",!1,!0),i&&this.setState("continuePlay",!0))}.bind(this)),this.slide.isVisible&&this.setState("slideVisible",!0,!0),this.slide.$element.on({Hidden:function(){var t=this.state.play;this.setState("slideVisible",!1,!0),t&&this.setState("continuePlay",!0)}.bind(this),Visible:function(){this.setState("slideVisible",!0,!0)}.bind(this)}),this.playerElement.on("playing",function(){this.isStatic||this.slider.trigger("mediaStarted",this.playerId),t.triggerHandler("n2play")}.bind(this)).on("ended",function(){1===parseInt(this.parameters.loop)?(this.videoPlayer.currentTime=0,this.safePlay()):(this.isStatic||this.slider.trigger("mediaEnded",this.playerId),t.triggerHandler("n2stop"),this.setState("play",!1),"next"===this.parameters.ended&&((document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)&&(document.exitFullscreen||document.mozCancelFullScreen||document.webkitExitFullscreen).call(document),this.slider.next()))}.bind(this)),this.playerElement.on("pause",function(){t.triggerHandler("n2pause"),this.state.continuePlay?(this.setState("continuePlay",!1),this.setState("play",!0)):this.setState("play",!1)}.bind(this)),this.slide.isActiveWhen()&&this.setState("slide",!0,!0),1===parseInt(this.parameters.autoplay)&&this.slider.visible(this.initAutoplay.bind(this)),this.isStatic||(this.slider.sliderElement.on({CurrentSlideChanged:function(t,e){this.onCurrentSlideChange(e)}.bind(this),mainAnimationStart:function(t,e,i,s){this.onCurrentSlideChange(this.slider.slides[s])}.bind(this)}),parseInt(this.parameters.reset)&&this.slider.sliderElement.on("mainAnimationComplete",function(t,e,i,s,n){0<this.videoPlayer.currentTime&&!this.slide.isActiveWhen(this.slider.slides[s])&&(this.videoPlayer.currentTime=0)}.bind(this))),""!==this.parameters["scroll-pause"]?N2Classes.ScrollTracker.add(this.playerElement,this.parameters["scroll-pause"],function(){this.setState("scroll",!0,!0)}.bind(this),function(){this.setState("continuePlay",!0),this.setState("scroll",!1,!0)}.bind(this)):this.setState("scroll",!0,!0)},t.prototype.onCurrentSlideChange=function(t){var e=this.slide.isActiveWhen(t);e&&1==this.parameters.autoplay&&this.setState("play",!0),this.setState("slide",e,!0)},t.prototype.onResize=function(){var t=this.playerElement.parent(),e=t.width(),i=t.height(),s=this.videoPlayer.videoWidth/this.videoPlayer.videoHeight,n={width:e,height:i,marginTop:0};n[n2const.rtl.marginLeft]=0,s<e/i?(n.height=e*s,n.marginTop=(i-n.height)/2):(n.width=i*s,n[n2const.rtl.marginLeft]=(e-n.width)/2),this.playerElement.css(n)},t.prototype.initAutoplay=function(){this.isStatic?(this.setState("play",!0),this.setState("slide",!0,!0)):(this.slider.sliderElement.on("mainAnimationComplete",function(t,e,i,s,n){this.slide.isActiveWhen(this.slider.slides[s])?(this.setState("play",!0),setTimeout(function(){this.setState("slide",!0,!0)}.bind(this),100)):this.setState("slide",!1,!0)}.bind(this)),this.slide.isActiveWhen()&&(this.setState("play",!0),this.setState("slide",!0,!0)))},t.prototype.setState=function(t,e,i){i=i||!1,this.state[t]=e,i&&(this.state.slideVisible&&this.state.visible&&this.state.play&&this.state.slide&&this.state.scroll?this.safePlay():this.safePause())},t.prototype.safePlay=function(){this.safeCallback(function(){this.promise=this.videoPlayer.play(),this.promise&&Promise!==e&&this.promise.catch(function(t){var e;"NotAllowedError"===t.name&&(e=".ssLayerVideo"+this.counter,n("body").off(e).one("click"+e+" touchend"+e,function(){n("body").off(e),!1!==this.promise&&this.safePlay()}.bind(this)))}.bind(this))}.bind(this))},t.prototype.safePause=function(){this.safeCallback(function(){this.videoPlayer.pause(),this.promise=!1}.bind(this))},t.prototype.safeCallback=function(t){this.promise&&Promise!==e?this.promise.then(t).catch(t):t()},t}),N2D("FrontendItemVimeo",function(r,e){function i(t,e,i,s,n,o){if(this.state={slideVisible:!1,visible:!1,scroll:!1,slide:!1,InComplete:!1,play:!1,continuePlay:!1},this.readyDeferred=r.Deferred(),this.slider=t,this.playerId=e,this.$playerElement=r("#"+this.playerId),this.$cover=this.$playerElement.find(".n2_ss_video_player__cover"),this.start=o,this.parameters=r.extend({vimeourl:"//vimeo.com/144598279",autoplay:"0",ended:"",reset:"0",title:"1",byline:"1",portrait:"0",loop:"0",color:"00adef",volume:"-1",dnt:"0"},s),1===parseInt(this.parameters.autoplay))if(-1<navigator.userAgent.toLowerCase().indexOf("android"))this.parameters.volume=0;else if(n2const.isIOS){this.parameters.autoplay=0;try{"playsInline"in document.createElement("video")&&(this.parameters.autoplay=1,this.parameters.volume=0)}catch(t){}}1===parseInt(this.parameters.autoplay)||!n||n2const.isMobile?this.ready(this.initVimeoPlayer.bind(this)):this.ready(function(){this.$playerElement.on("click.vimeo n2click.vimeo",function(t){this.$playerElement.off(".vimeo"),t.preventDefault(),t.stopPropagation(),this.initVimeoPlayer(),this.safePlay()}.bind(this))}.bind(this))}return i.vimeoDeferred=null,i.prototype.ready=function(t){null===i.vimeoDeferred&&(i.vimeoDeferred=r.getScript("https://player.vimeo.com/api/player.js")),i.vimeoDeferred.done(t)},i.prototype.initVimeoPlayer=function(){var t=r('<iframe class="intrinsic-ignore" allow="autoplay; encrypted-media" id="'+this.playerId+'-frame" src="https://player.vimeo.com/video/'+this.parameters.vimeocode+"?autoplay=0&_video&title="+this.parameters.title+"&byline="+this.parameters.byline+"&background="+this.parameters.background+"&portrait="+this.parameters.portrait+"&color="+this.parameters.color+"&loop="+this.parameters.loop+("-1"==this.parameters.quality?"":"&quality="+this.parameters.quality)+"&dnt="+this.parameters["privacy-enhanced"]+'" style="position: absolute; top:0; left: 0; width: 100%; height: 100%;" webkitAllowFullScreen allowFullScreen></iframe>');this.$playerElement.prepend(t),this.player=new Vimeo.Player(t[0],{autoplay:!1}),this.promise=this.player.ready(),this.slider.stages.done("BeforeShow",function(){this.promise.then(this.onReady.bind(this))}.bind(this))},i.prototype.onReady=function(){var t=parseFloat(this.parameters.volume);0<=t&&this.setVolume(t),this.slide=this.slider.findSlideByElement(this.$playerElement),this.isStatic=this.slide.isStatic();var e=this.$playerElement.closest(".n2-ss-layer");this.layer=e.data("layer"),this.layer.isVisible&&this.setState("visible",!0,!0),this.layer.$layer.on("visibilityChange",function(t,e){var i;e?this.setState("visible",!0,!0):(i=this.state.play,this.setState("visible",!1,!0),i&&this.setState("continuePlay",!0))}.bind(this)),this.slide.isVisible&&this.setState("slideVisible",!0,!0),this.slide.$element.on({Hidden:function(){var t=this.state.play;this.setState("slideVisible",!1,!0),t&&this.setState("continuePlay",!0)}.bind(this),Visible:function(){this.setState("slideVisible",!0,!0)}.bind(this)}),this.$cover.length&&(n2const.isMobile&&this.$cover.on("click",this.safePlay.bind(this)),e.one("n2play",function(){NextendTween.to(this.$cover,.3,{opacity:0,onComplete:function(){this.$cover.remove()}.bind(this)})}.bind(this))),this.player.on("play",function(){this.isStatic||this.slider.trigger("mediaStarted",this.playerId),e.triggerHandler("n2play")}.bind(this)),this.player.on("pause",function(){e.triggerHandler("n2pause"),this.state.continuePlay?(this.setState("continuePlay",!1),this.setState("play",!0)):this.setState("play",!1)}.bind(this)),this.player.on("ended",function(){this.isStatic||this.slider.trigger("mediaEnded",this.playerId),e.triggerHandler("n2stop"),this.setState("play",!1),"next"===this.parameters.ended&&0==this.parameters.loop&&((document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)&&(document.exitFullscreen||document.mozCancelFullScreen||document.webkitExitFullscreen).call(document),this.slider.next())}.bind(this)),this.isStatic||this.slider.sliderElement.on({CurrentSlideChanged:function(t,e){this.onCurrentSlideChange(e)}.bind(this),mainAnimationStart:function(t,e,i,s){this.onCurrentSlideChange(this.slider.slides[s])}.bind(this)}),""!==this.parameters["scroll-pause"]?N2Classes.ScrollTracker.add(this.$playerElement,this.parameters["scroll-pause"],function(){this.setState("scroll",!0,!0)}.bind(this),function(){this.setState("continuePlay",!0),this.setState("scroll",!1,!0)}.bind(this)):this.setState("scroll",!0,!0),this.slide.isActiveWhen()&&this.setState("slide",!0,!0),1===parseInt(this.parameters.autoplay)&&this.slider.visible(this.initAutoplay.bind(this)),this.readyDeferred.resolve()},i.prototype.onCurrentSlideChange=function(t){this.slide.isActiveWhen(t)?1==this.parameters.autoplay&&this.setState("play",!0):parseInt(this.parameters.reset)&&this.reset(),this.setState("slide",!0,!0)},i.prototype.initAutoplay=function(){this.layer.addStateCallback(function(t){this.setState("InComplete",t.InComplete,!0)}.bind(this)),this.isStatic?(this.setState("play",!0),this.setState("slide",!0,!0)):(this.slider.sliderElement.on("mainAnimationComplete",function(t,e,i,s,n){this.slide.isActiveWhen(this.slider.slides[s])?(this.setState("play",!0),this.setState("slide",!0,!0)):this.setState("slide",!1,!0)}.bind(this)),this.slide.isActiveWhen()&&(this.setState("play",!0),this.setState("slide",!0,!0)))},i.prototype.setState=function(t,e,i){i=i||!1,this.state[t]=e,i&&(this.state.slideVisible&&this.state.visible&&this.state.play&&this.state.slide&&this.state.InComplete&&this.state.scroll&&this.layer.isVisible?this.play():this.pause())},i.prototype.play=function(){this.slider.trigger("mediaStarted",this.playerId),0!=this.start&&this.safeSetCurrentTime(this.start),this.safePlay(),this.player.getCurrentTime().then(function(t){t<this.start&&0!=this.start&&this.safeSetCurrentTime(this.start),this.safePlay()}.bind(this)).catch(function(t){this.safePlay()}.bind(this))},i.prototype.pause=function(){this.safePause()},i.prototype.reset=function(){this.safeSetCurrentTime(this.start)},i.prototype.setVolume=function(t){this.safeCallback(function(){this.promise=this.player.setVolume(t)}.bind(this))},i.prototype.safeSetCurrentTime=function(t){this.safeCallback(function(){this.promise=this.player.setCurrentTime(t)}.bind(this))},i.prototype.safePlay=function(){this.safeCallback(function(){this.promise=this.player.getPaused(),this.safeCallback(function(t){t&&(this.promise=this.player.play())}.bind(this))}.bind(this))},i.prototype.safePause=function(){this.safeCallback(function(){this.promise=this.player.getPaused(),this.safeCallback(function(t){t||(this.promise=this.player.pause())}.bind(this))}.bind(this))},i.prototype.safeCallback=function(t){this.promise&&Promise!==e?this.promise.then(t).catch(t):t()},i}),N2D("FrontendItemYouTube",function(o,r){function a(t,e,i,s){this.state={slideVisible:!1,visible:!1,scroll:!1,slide:!1,InComplete:!1,play:!1,continuePlay:!1},this.readyDeferred=o.Deferred(),this.slider=t,this.playerId=e,this.$playerElement=o("#"+this.playerId),this.$cover=this.$playerElement.find(".n2_ss_video_player__cover"),this.parameters=o.extend({youtubeurl:"//www.youtube.com/watch?v=3PPtkRU7D74",youtubecode:"3PPtkRU7D74",center:0,autoplay:1,ended:"",related:"1",volume:"-1",loop:0,modestbranding:1,reset:0,query:[],playsinline:0},i),1===parseInt(this.parameters.autoplay)||!s||n2const.isMobile?this.ready(this.initYoutubePlayer.bind(this)):this.$playerElement.on("click.youtube n2click.youtube",function(t){this.$playerElement.off(".youtube"),t.preventDefault(),t.stopPropagation(),this.ready(function(){this.readyDeferred.done(function(){this.play()}.bind(this)),this.initYoutubePlayer()}.bind(this))}.bind(this))}return a.YTDeferred=null,a.prototype.ready=function(t){var e,i,s,n;null===a.YTDeferred&&(a.YTDeferred=o.Deferred(),window.YT===r&&o.getScript("https://www.youtube.com/iframe_api"),window._EPYT_!==r?(s=a.YTDeferred,(n=function(){!0===window._EPADashboard_.initStarted?s.resolve():setTimeout(n,100)})()):(e=a.YTDeferred,(i=function(){window.YT!==r&&window.YT.loaded?e.resolve():setTimeout(i,100)})())),a.YTDeferred.done(t)},a.prototype.fadeOutCover=function(){this.coverFadedOut===r&&this.$cover.length&&(this.coverFadedOut=!0,NextendTween.to(this.$cover,.3,{opacity:0,onComplete:function(){this.$cover.remove()}.bind(this)}))},a.prototype.initYoutubePlayer=function(){var e=this.$playerElement.closest(".n2-ss-layer");this.layer=e.data("layer"),this.$cover.length&&(n2const.isMobile&&this.$cover.on("click",this.play.bind(this)),e.one("n2play",this.fadeOutCover.bind(this))),this.slide=this.slider.findSlideByElement(this.$playerElement),this.isStatic=this.slide.isStatic();var t={enablejsapi:1,origin:window.location.protocol+"//"+window.location.host,wmode:"opaque",rel:1-this.parameters.related,start:this.parameters.start,end:this.parameters.end,modestbranding:this.parameters.modestbranding,playsinline:this.parameters.playsinline};if(1===parseInt(this.parameters.autoplay))if(-1<navigator.userAgent.toLowerCase().indexOf("android"))this.parameters.volume=0;else if(n2const.isIOS){this.parameters.autoplay=0;try{"playsInline"in document.createElement("video")&&(this.parameters.autoplay=1,this.parameters.volume=0,t.playsinline=1)}catch(t){}}for(var i in n2const.isIOS&&this.parameters.controls&&(t.use_native_controls=1),1==this.parameters.center&&(t.controls=0),1!=this.parameters.controls&&(t.autohide=1,t.controls=0),+(0<=navigator.platform.toUpperCase().indexOf("MAC")&&-1<navigator.userAgent.search("Firefox"))&&(t.html5=1),this.parameters.query)this.parameters.query.hasOwnProperty(i)&&(t[i]=this.parameters.query[i]);var s={videoId:this.parameters.youtubecode,wmode:"opaque",playerVars:t,events:{onReady:this.onReady.bind(this),onStateChange:function(t){switch(t.data){case YT.PlayerState.PLAYING:case YT.PlayerState.BUFFERING:this.isStatic||this.slide.isActiveWhen(this.slider.currentSlide)&&this.slider.sliderElement.trigger("mediaStarted",this.playerId),e.triggerHandler("n2play");break;case YT.PlayerState.PAUSED:e.triggerHandler("n2pause"),this.state.continuePlay?(this.setState("continuePlay",!1),this.setState("play",!0)):this.setState("play",!1);break;case YT.PlayerState.ENDED:1==this.parameters.loop?(this.player.seekTo(this.parameters.start),this.player.playVideo()):(this.isStatic||this.slider.trigger("mediaEnded",this.playerId),e.triggerHandler("n2stop"),this.setState("play",!1),"next"===this.parameters.ended&&((document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)&&(document.exitFullscreen||document.mozCancelFullScreen||document.webkitExitFullscreen).call(document),this.slider.next()))}}.bind(this)}};(this.parameters["privacy-enhanced"]||jQuery&&jQuery.fn.revolution)&&(s.host="https://www.youtube-nocookie.com"),this.player=new YT.Player(this.playerId+"-frame",s),1==this.parameters.center&&(this.$playerElement.parent().css("overflow","hidden"),this.onResize(),this.slider.sliderElement.on("SliderResize",this.onResize.bind(this)))},a.prototype.onReady=function(){this.slider.stages.done("BeforeShow",this.onBeforeShow.bind(this))},a.prototype.onBeforeShow=function(){var t=parseFloat(this.parameters.volume);0<t?this.setVolume(t):-1!==t&&this.player.mute(),this.layer.isVisible&&this.setState("visible",!0,!0),this.layer.$layer.on("visibilityChange",function(t,e){var i;e?this.setState("visible",!0,!0):(i=this.state.play,this.setState("visible",!1,!0),i&&this.setState("continuePlay",!0))}.bind(this)),this.slide.isVisible&&this.setState("slideVisible",!0,!0),this.slide.$element.on({Hidden:function(){var t=this.state.play;this.setState("slideVisible",!1,!0),t&&this.setState("continuePlay",!0)}.bind(this),Visible:function(){this.setState("slideVisible",!0,!0)}.bind(this)}),this.slide.isActiveWhen()&&this.setState("slide",!0,!0),1==this.parameters.autoplay&&this.slider.visible(this.initAutoplay.bind(this)),this.isStatic||(this.slider.sliderElement.on({CurrentSlideChanged:function(t,e){this.onCurrentSlideChange(e)}.bind(this),mainAnimationStart:function(t,e,i,s){this.onCurrentSlideChange(this.slider.slides[s])}.bind(this)}),parseInt(this.parameters.reset)&&this.slider.sliderElement.on("mainAnimationComplete",function(t,e,i,s){this.slide.isActiveWhen(this.slider.slides[s])||0!==this.player.getCurrentTime()&&this.player.seekTo(this.parameters.start)}.bind(this))),this.readyDeferred.resolve(),""!==this.parameters["scroll-pause"]?N2Classes.ScrollTracker.add(this.$playerElement,this.parameters["scroll-pause"],function(){this.setState("scroll",!0,!0)}.bind(this),function(){this.setState("continuePlay",!0),this.setState("scroll",!1,!0)}.bind(this)):this.setState("scroll",!0,!0)},a.prototype.onCurrentSlideChange=function(t){var e=this.slide.isActiveWhen(t);e&&1==this.parameters.autoplay&&this.setState("play",!0),this.setState("slide",e,!0)},a.prototype.onResize=function(){var t=this.$playerElement.parent(),e=t.width(),i=t.height()+100,s={width:e,height:i,marginTop:0};s[n2const.rtl.marginLeft]=0,16/9<e/i?(s.height=e*(16/9),s.marginTop=(i-s.height)/2):(s.width=i*(16/9),s[n2const.rtl.marginLeft]=(e-s.width)/2),this.$playerElement.css(s)},a.prototype.initAutoplay=function(){this.layer.addStateCallback(function(t){this.setState("InComplete",t.InComplete,!0)}.bind(this)),this.isStatic?(this.setState("play",!0),this.setState("slide",!0,!0)):(this.slider.sliderElement.on("mainAnimationComplete",function(t,e,i,s){this.slide.isActiveWhen(this.slider.slides[s])?(this.setState("play",!0),this.setState("slide",!0,!0)):this.setState("slide",!1,!0)}.bind(this)),this.slide.isActiveWhen()&&(this.setState("play",!0),this.setState("slide",!0,!0)))},a.prototype.setState=function(t,e,i){i=i||!1,this.state[t]=e,i&&(this.state.slideVisible&&this.state.visible&&this.state.play&&this.state.slide&&this.state.InComplete&&this.state.scroll?this.play():this.pause())},a.prototype.play=function(){this.isStopped()&&(this.coverFadedOut===r&&setTimeout(this.fadeOutCover.bind(this),200),this.slider.trigger("mediaStarted",this.playerId),this.player.playVideo())},a.prototype.pause=function(){this.isStopped()||this.player.pauseVideo()},a.prototype.stop=function(){this.player.stopVideo()},a.prototype.isStopped=function(){switch(this.player.getPlayerState()){case-1:case 2:case 5:return!0;default:return!1}},a.prototype.setVolume=function(t){this.player.setVolume(100*t)},a}),N2D("smartslider-frontend");
// source --> //www.tranghotelbangkok.com/wp-content/plugins/nextend-smart-slider3-pro/Public/SmartSlider3/Slider/SliderType/Simple/Assets/dist/smartslider-simple-type-frontend.min.js?ver=ff7f6f5b 
(function(){var e=this;e.N2_=e.N2_||{r:[],d:[]},e.N2R=e.N2R||function(){e.N2_.r.push(arguments)},e.N2D=e.N2D||function(){e.N2_.d.push(arguments)}}).call(window),N2D("SmartSliderMainAnimationSimple",["SmartSliderMainAnimationAbstract"],function(t,e){function i(e,i){switch(this.postBackgroundAnimation=!1,this._currentBackgroundAnimation=!1,this.reverseSlideIndex=null,(i=t.extend({delay:0,parallax:0,type:"horizontal",shiftedBackgroundAnimation:"auto"},i)).delay/=1e3,N2Classes.SmartSliderMainAnimationAbstract.prototype.constructor.apply(this,arguments),e.isAdmin||e.disabled.postBackgroundAnimations||!this.slider.parameters.postBackgroundAnimations||(this.isReverseAllowed=!1,this.postBackgroundAnimation=new N2Classes.SmartSliderPostBackgroundAnimation(e,this)),this.parameters.type){case"no":this.animation=this._mainAnimationNo,this.isNoAnimation=!0;break;case"fade":this.animation=this._mainAnimationFade;break;case"crossfade":this.animation=this._mainAnimationCrossFade;break;case"vertical":e.backgrounds.hasFixed?this.animation=this._mainAnimationFade:0===this.parameters.parallax?this.animation=this._mainAnimationVertical:this.animation=this._mainAnimationVerticalParallax;break;case"vertical-reversed":e.backgrounds.hasFixed?this.animation=this._mainAnimationFade:0===this.parameters.parallax?this.animation=this._mainAnimationVerticalReversed:this.animation=this._mainAnimationVerticalReversedParallax;break;case"horizontal-reversed":0===this.parameters.parallax?this.animation=this._mainAnimationHorizontalReversed:this.animation=this._mainAnimationHorizontalReversedParallax;break;default:0===this.parameters.parallax?this.animation=this._mainAnimationHorizontal:this.animation=this._mainAnimationHorizontalParallax}}return((i.prototype=Object.create(N2Classes.SmartSliderMainAnimationAbstract.prototype)).constructor=i).prototype.changeTo=function(e,i,t,s){this.postBackgroundAnimation&&this.postBackgroundAnimation.prepareToSwitchSlide(e,i),N2Classes.SmartSliderMainAnimationAbstract.prototype.changeTo.apply(this,arguments)},i.prototype.setActiveSlide=function(e){for(var i=0;i<this.slider.slides.length;i++)this.slider.slides[i]!==e&&this.hideSlide(this.slider.slides[i])},i.prototype.hideSlide=function(e){NextendTween.set(e.$element,{x:-1e5*n2const.rtl.modifier}),e.background&&NextendTween.set(e.background.element,{x:-1e5*n2const.rtl.modifier})},i.prototype.showSlide=function(e){NextendTween.set(e.$element.get(0),{x:0,y:0}),e.background&&NextendTween.set(e.background.element,{x:0,y:0})},i.prototype.cleanSlideIndex=function(e){this.hideSlide(this.slider.slides[e])},i.prototype.revertTo=function(e,i){this.slider.slides[i].$element.css("zIndex",""),this.hideSlide(this.slider.slides[i]),N2Classes.SmartSliderMainAnimationAbstract.prototype.revertTo.apply(this,arguments)},i.prototype._initAnimation=function(e,i,t){this.animation(e,i,t)},i.prototype.onBackwardChangeToComplete=function(e,i,t){this.reverseSlideIndex=null,this.onChangeToComplete(e,i,t)},i.prototype.onChangeToComplete=function(e,i,t){null!==this.reverseSlideIndex&&(this.slider.slides[this.reverseSlideIndex].triggerHandler("mainAnimationStartInCancel"),this.reverseSlideIndex=null),this.hideSlide(e),N2Classes.SmartSliderMainAnimationAbstract.prototype.onChangeToComplete.apply(this,arguments)},i.prototype.onReverseChangeToComplete=function(e,i,t){this.hideSlide(e),N2Classes.SmartSliderMainAnimationAbstract.prototype.onReverseChangeToComplete.apply(this,arguments)},i.prototype._mainAnimationNo=function(e,i){this.showSlide(i),e.unsetActive(),i.$element.css("opacity",0),i.background&&i.background.element.css("opacity",0),i.setActive();var t=this.timeline.totalDuration(),s=this.getExtraDelay();this._currentBackgroundAnimation&&this.parameters.shiftedBackgroundAnimation&&this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup(),0===t&&(s+=t=1e-5),this.timeline.set(e.$element,{opacity:0},s),!this._currentBackgroundAnimation&&e.background&&this.timeline.set(e.background.element,{opacity:0},s),this.timeline.set(i.$element,{opacity:1},t),!this._currentBackgroundAnimation&&i.background&&this.timeline.set(i.background.element,{opacity:1},t),this.sliderElement.on("mainAnimationComplete.n2-simple-no",function(e,i,t,s){this.sliderElement.off("mainAnimationComplete.n2-simple-no");var n=this.slider.slides[t],a=this.slider.slides[s];n.$element.css("opacity",""),!this._currentBackgroundAnimation&&n.background&&n.background.element.css("opacity",""),a.$element.css("opacity",""),!this._currentBackgroundAnimation&&a.background&&a.background.element.css("opacity","")}.bind(this)),this.slider.updateInsideSlides([e,i])},i.prototype._mainAnimationFade=function(e,i){e.$element.css("zIndex",23),e.background&&e.background.element.css("zIndex",23),i.$element.css("opacity",0),this.showSlide(i),e.unsetActive(),i.setActive();var t,s,n,a=this.adjustMainAnimation();0!=this.parameters.shiftedBackgroundAnimation&&(s=t=!1,"auto"!=this.parameters.shiftedBackgroundAnimation||e.hasLayers()?t=!0:s=!0,this._currentBackgroundAnimation&&t?(0<(n=a.outDuration-a.extraDelay)&&this.timeline.shiftChildren(n),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup()):s&&(0<a.extraDelay&&this.timeline.shiftChildren(a.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup())),this.timeline.to(e.$element.get(0),a.outDuration,{opacity:0,ease:this.getEase()},a.outDelay),!this._currentBackgroundAnimation&&e.background&&this.timeline.to(e.background.element,a.outDuration,{opacity:0,ease:this.getEase()},a.outDelay),this.timeline.to(i.$element.get(0),a.inDuration,{opacity:1,ease:this.getEase()},a.inDelay),!this._currentBackgroundAnimation&&i.background&&i.background.element.css("opacity",1),this.sliderElement.on("mainAnimationComplete.n2-simple-fade",function(e,i,t,s){this.sliderElement.off("mainAnimationComplete.n2-simple-fade");var n=this.slider.slides[t],a=this.slider.slides[s];n.$element.css({zIndex:"",opacity:""}),!this._currentBackgroundAnimation&&n.background&&n.background.element.css({zIndex:"",opacity:""}),a.$element.css("opacity",""),!this._currentBackgroundAnimation&&a.background&&a.background.element.css("opacity","")}.bind(this)),this.slider.updateInsideSlides([e,i])},i.prototype._mainAnimationCrossFade=function(e,i){e.$element.css("zIndex",23),e.background&&e.background.element.css("zIndex",23),i.$element.css("opacity",0),i.background&&i.background.element.css("opacity",0),this.showSlide(i),e.unsetActive(),i.setActive();var t,s,n,a=this.adjustMainAnimation();0!=this.parameters.shiftedBackgroundAnimation&&(s=t=!1,"auto"!=this.parameters.shiftedBackgroundAnimation||e.hasLayers()?t=!0:s=!0,this._currentBackgroundAnimation&&t?(0<(n=a.outDuration-a.extraDelay)&&this.timeline.shiftChildren(n),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup()):s&&(0<a.extraDelay&&this.timeline.shiftChildren(a.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup())),this.timeline.to(e.$element.get(0),a.outDuration,{opacity:0,ease:this.getEase()},a.outDelay),!this._currentBackgroundAnimation&&e.background&&this.timeline.to(e.background.element.get(0),a.outDuration,{opacity:0,ease:this.getEase()},a.outDelay),this.timeline.to(i.$element.get(0),a.inDuration,{opacity:1,ease:this.getEase()},a.inDelay),!this._currentBackgroundAnimation&&i.background&&this.timeline.to(i.background.element.get(0),a.inDuration,{opacity:1,ease:this.getEase()},a.inDelay),this.sliderElement.on("mainAnimationComplete.n2-simple-fade",function(e,i,t,s){this.sliderElement.off("mainAnimationComplete.n2-simple-fade");var n=this.slider.slides[t],a=this.slider.slides[s];n.$element.css({zIndex:"",opacity:""}),!this._currentBackgroundAnimation&&n.background&&n.background.element.css({zIndex:"",opacity:""}),a.$element.css("opacity",""),!this._currentBackgroundAnimation&&a.background&&a.background.element.css("opacity","")}.bind(this)),this.slider.updateInsideSlides([e,i])},i.prototype._mainAnimationHorizontal=function(e,i,t){this.__mainAnimationDirection(e,i,"horizontal",0,t)},i.prototype._mainAnimationVertical=function(e,i,t){this.showSlide(i),this.__mainAnimationDirection(e,i,"vertical",0,t)},i.prototype._mainAnimationHorizontalParallax=function(e,i,t){this.__mainAnimationDirection(e,i,"horizontal",this.parameters.parallax,t)},i.prototype._mainAnimationVerticalParallax=function(e,i,t){this.showSlide(i),this.__mainAnimationDirection(e,i,"vertical",this.parameters.parallax,t)},i.prototype._mainAnimationHorizontalReversed=function(e,i,t){this.__mainAnimationDirection(e,i,"horizontal",0,!t)},i.prototype._mainAnimationVerticalReversed=function(e,i,t){this.showSlide(i),this.__mainAnimationDirection(e,i,"vertical",0,!t)},i.prototype._mainAnimationHorizontalReversedParallax=function(e,i,t){this.__mainAnimationDirection(e,i,"horizontal",this.parameters.parallax,!t)},i.prototype._mainAnimationVerticalReversedParallax=function(e,i,t){this.showSlide(i),this.__mainAnimationDirection(e,i,"vertical",this.parameters.parallax,!t)},i.prototype.__mainAnimationDirection=function(e,i,t,s,n){var a=[e,i],r="",o=0,l=0,h="",d=1-s/100;"horizontal"===t?(r="x",h="width",l=o=this.slider.responsive.resizeContext.slideOuterWidth,n2const.rtl.isRtl&&(n=!n)):"vertical"===t&&(r="y",h="height",l=o=this.slider.responsive.resizeContext.slideOuterHeight),n&&(o*=-1);var m,c,u,p,g={},y={ease:this.getEase()},S={},A={ease:this.getEase()},f={ease:this.getEase()},b={ease:this.getEase()},x=23,k=22;0!==s?n?(e.$element.addClass("n2-ss-parallax-clip"),x=22,k=23,y[h]=-o,A[h]=-o,o*=d,g[r]=o,g[h]=-o,S[r]=o,S[h]=-o,f[h]=-o,f[r]=l):((m={})[r]=o*=d,NextendTween.set(i.$element,m),i.background&&((c={})[r]=o,NextendTween.set(i.background.element,c)),i.$element.addClass("n2-ss-parallax-clip"),g[r]=l,g[h]=o,y[h]=l,S[r]=o,f[h]=o,b[h]=o,f[r]=-o):((u={})[r]=o,NextendTween.set(i.$element,u),i.background&&((p={})[r]=o,NextendTween.set(i.background.element,p)),g[r]=o,S[r]=o,f[r]=-o),b[r]=-o,e.$element.css("zIndex",x),e.background&&e.background.element.css("zIndex",x),i.$element.css("zIndex",k),i.background&&i.background.element.css("zIndex",k),e.unsetActive(),i.setActive();var v,C,_,z,H,D,B,w,$=this.adjustMainAnimation();y[r]=0,y.n2RoundProps="x,y",A[r]=0,A.n2RoundProps="x,y",this.timeline.fromTo(i.$element.get(0),$.inDuration,g,y,$.inDelay),i.background&&this.timeline.fromTo(i.background.element,$.inDuration,S,A,$.inDelay),0!=this.parameters.shiftedBackgroundAnimation&&(C=v=!1,"auto"!==this.parameters.shiftedBackgroundAnimation||e.hasLayers()?v=!0:C=!0,this._currentBackgroundAnimation&&v?(0<(_=$.outDuration-$.extraDelay)&&this.timeline.shiftChildren(_),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup()):C&&(0<$.extraDelay&&this.timeline.shiftChildren($.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup())),f.n2RoundProps="x,y",b.n2RoundProps="x,y",this.timeline.to(e.$element.get(0),$.outDuration,f,$.outDelay),e.background&&this.timeline.to(e.background.element,$.outDuration,b,$.outDelay),this.isTouch&&this.isReverseAllowed&&0===s&&(n?this.slider.blockCarousel&&this.slider.isChangeCarousel("next")||(z=e.getNext()):this.slider.blockCarousel&&this.slider.isChangeCarousel("previous")||(z=e.getPrevious()),z&&z!==i?(this.reverseSlideIndex=z.index,this.enableReverseMode(),a.push(z),"vertical"===t&&this.showSlide(z),z.$element.css(r,o),H={},D={ease:this.getEase()},B={},w={ease:this.getEase()},D[r]=0,H[r]=-o,w[r]=o,B[r]=0,z.$element.trigger("mainAnimationStartIn",[this,e.index,z.index,!1]),this.reverseTimeline.paused(!0),this.reverseTimeline.eventCallback("onComplete",this.onBackwardChangeToComplete,[e,z,!1],this),D.n2RoundProps="x,y",this.reverseTimeline.fromTo(z.$element.get(0),$.inDuration,H,D,$.inDelay),z.background&&this.reverseTimeline.fromTo(z.background.element,$.inDuration,H,D,$.inDelay),w.n2RoundProps="x,y",this.reverseTimeline.fromTo(e.$element.get(0),$.inDuration,B,w,$.inDelay),e.background&&this.reverseTimeline.fromTo(e.background.element,$.inDuration,B,w,$.inDelay)):this.reverseSlideIndex=null),this.sliderElement.on("mainAnimationComplete.n2-simple-fade",function(e,i,t,s){this.sliderElement.off("mainAnimationComplete.n2-simple-fade");var n=this.slider.slides[t],a=this.slider.slides[s];a.$element.css("zIndex","").css(r,"").removeClass("n2-ss-parallax-clip"),a.background&&a.background.element.css("zIndex","").css(r,""),n.$element.css("zIndex","").css(h,"").removeClass("n2-ss-parallax-clip"),n.background&&n.background.element.css("zIndex","").css(h,"")}.bind(this)),this.slider.updateInsideSlides(a)},i.prototype.getExtraDelay=function(){return 0},i.prototype.adjustMainAnimation=function(){var e=this.parameters.duration,i=this.parameters.delay,t=this.timeline.totalDuration(),s=this.getExtraDelay();if(0<t){var n=e+i;if(!(t<n))return{inDuration:e,outDuration:e,inDelay:t-e,outDelay:s,extraDelay:s};e=e*t/n,(i=i*t/n)<s&&(e-=s-i,i=s)}else i+=s;return{inDuration:e,outDuration:e,inDelay:i,outDelay:i,extraDelay:s}},i.prototype.hasBackgroundAnimation=function(){return!1},i}),N2D("SmartSliderResponsiveSimple",["SmartSliderResponsive"],function(e,t){function i(){this.round=1,N2Classes.SmartSliderResponsive.prototype.constructor.apply(this,arguments),this.mainAnimation=this.slider.mainAnimation}return((i.prototype=Object.create(N2Classes.SmartSliderResponsive.prototype)).constructor=i).prototype.init=function(){this.$cache={"n2-ss-slider-2":this.sliderElement.find(".n2-ss-slider-2"),"n2-ss-slider-3":this.sliderElement.find(".n2-ss-slider-3"),"n2-ss-slide":this.sliderElement.find(".n2-ss-slide"),"n2-ss-layers-container":this.sliderElement.find(".n2-ss-layers-container")},this.$cache["n2-ss-slider-3"][0].addEventListener("scroll",function(e){e.currentTarget.scrollTop=0,e.currentTarget.scrollLeft=0},{capture:!0}),this.base={sliderWidth:this.sliderElement.width(),sliderHeight:this.sliderElement.height(),sliderOuterHeight:this.$cache["n2-ss-slider-2"].outerHeight(),sliderInnerHeight:this.$cache["n2-ss-slider-2"].height(),sliderPaddingTop:parseInt(this.$cache["n2-ss-slider-2"].css("paddingTop"))||0,sliderPaddingRight:parseInt(this.$cache["n2-ss-slider-2"].css("paddingRight"))||0,sliderPaddingBottom:parseInt(this.$cache["n2-ss-slider-2"].css("paddingBottom"))||0,sliderPaddingLeft:parseInt(this.$cache["n2-ss-slider-2"].css("paddingLeft"))||0,slideOuterWidth:this.$cache["n2-ss-slide"].width(),slideOuterHeight:this.$cache["n2-ss-slide"].height(),slideWidth:this.$cache["n2-ss-layers-container"].width(),slideHeight:this.$cache["n2-ss-layers-container"].height()};var e=this.sliderElement.find(".n2-ss-slider-background-video");e.length&&(n2const.isVideoAutoplayAllowed()?(this._videoPlayerReady=this.videoPlayerReady.bind(this,e),0<e[0].videoWidth?this._videoPlayerReady():(e[0].addEventListener("error",this.videoPlayerError.bind(this,e),!0),e[0].addEventListener("canplay",this._videoPlayerReady)),e[0].load(),e[0].play()):this.videoPlayerError(e)),this.slider.parameters.dynamicHeight&&(this.addFilter("SlideHeight",this.filterSlideHeightDynamicHeight.bind(this)),this.addFilter("SliderHeight",this.filterSliderHeightDynamicHeight.bind(this)))},i.prototype.filterSlideHeightDynamicHeight=function(e){var i;return this.dynamicHeightSlide!==t&&this.dynamicHeightSlide.background.elements.image!==t?i=this.dynamicHeightSlide.background.elements.image:this.slider.currentSlide&&this.slider.currentSlide.background.elements.image!==t&&(i=this.slider.currentSlide.background.elements.image),i!==t&&0<i.width&&0<i.height&&(e=Math.floor(i.height*this.resizeContext.slideWidth/i.width)),e},i.prototype.filterSliderHeightDynamicHeight=function(e){return 0===this.fullPageMinimumSliderHeight?this.resizeContext.slideHeight+(this.base.sliderHeight-this.base.slideHeight):e},i.prototype.resizeStage1Width=function(){N2Classes.SmartSliderResponsive.prototype.resizeStage1Width.call(this),this.stage1CalculateSliderWidth(),this.stage1CalculateSlideWidth()},i.prototype.stage1CalculateSliderWidth=function(){var e=this.containerElementPadding.outerWidth();this.parameters.upscale||(e=Math.min(e,this.base.sliderWidth)),this.parameters.downscale||(e=Math.max(e,this.base.sliderWidth)),this.resizeContext.sliderWidth=this.applyFilter("SliderWidth",e),this.resizeContext.sliderInnerWidth=this.resizeContext.sliderWidth-(this.base.sliderWidth-this.base.slideOuterWidth)+this.base.sliderPaddingLeft+this.base.sliderPaddingRight,this.resizeContext.sliderRatio=this.resizeContext.sliderWidth/this.base.sliderWidth,this.sliderElement.css({width:this.resizeContext.sliderWidth})},i.prototype.stage1CalculateSlideWidth=function(){var e,i,t,s,n=this.resizeContext.sliderWidth-(this.base.sliderWidth-this.base.slideOuterWidth);this.resizeContext.slideOuterWidth=n,this.$cache["n2-ss-slide"].css("width",n),this.resizeContext.slideWidth=Math.min(n,this.parameters.maximumSlideWidth[this.device]),0<this.fullPageMinimumSliderHeight&&this.parameters.constrainRatio&&(e=this.fullPageMinimumSliderHeight-(this.base.sliderOuterHeight-this.base.slideOuterHeight),i=this.parameters.sizes[this.device],t=this.base.slideHeight,0<i.height&&(t=this.base.slideWidth/i.width*i.height),e<(s=Math.floor(this.resizeContext.slideWidth/this.base.slideWidth*t))&&(this.resizeContext.slideWidth*=e/s)),this.resizeContext.slideRatio=this.resizeContext.slideWidth/this.base.slideWidth;var a=Math.floor((n-this.resizeContext.slideWidth)/2);this.$cache["n2-ss-layers-container"].css({width:this.resizeContext.slideWidth,marginLeft:a,marginRight:a,fontSize:16*this.resizeContext.slideRatio+"px"}),this.sliderElement.css({fontSize:16*this.resizeContext.slideRatio+"px"})},i.prototype.getResizeStage2CSS=function(){var e=[];return this.stage2CalculateSlideHeight(e),this.stage2CalculateSliderHeight(e),e},i.prototype.stage2CalculateSlideHeight=function(e){var i=this.parameters.sizes[this.device],t=this.base.slideHeight;0<i.height&&(t=this.base.slideWidth/i.width*i.height);var s=Math.floor(this.resizeContext.slideWidth/this.base.slideWidth*t);0<this.fullPageMinimumSliderHeight&&!this.parameters.constrainRatio&&(s=Math.max(0,this.parameters.minimumHeight-(this.base.sliderOuterHeight-this.base.slideOuterHeight),this.fullPageMinimumSliderHeight-(this.base.sliderOuterHeight-this.base.slideOuterHeight))),this.minimumSlideHeight=s,this.resizeContext.slideHeight=Math.max(this.applyFilter("SlideHeight",s),this.getMinimumContentHeight(),this.getMinimumStaticContentHeight()),e.push(new N2Classes.CSSData(this.$cache["n2-ss-layers-container"],{height:this.resizeContext.slideHeight}))},i.prototype.stage2CalculateSliderHeight=function(e){var i,t,s;0<this.fullPageMinimumSliderHeight?s=Math.max(this.resizeContext.slideHeight+(this.base.sliderOuterHeight-this.base.slideOuterHeight),this.fullPageMinimumSliderHeight):(s=Math.max(this.resizeContext.slideHeight+(this.base.sliderOuterHeight-this.base.sliderInnerHeight),this.parameters.minimumHeight,this.fullPageMinimumSliderHeight),0<(i=this.parameters.sizes[this.device]).height&&(t=Math.min(i.height,Math.floor(this.resizeContext.sliderWidth/i.width*i.height)),s=Math.max(s,t))),this.resizeContext.sliderHeight=this.applyFilter("SliderHeight",s),this.resizeContext.sliderInnerHeight=this.resizeContext.sliderHeight-(this.base.sliderHeight-this.base.slideOuterHeight)+this.base.sliderPaddingTop+this.base.sliderPaddingBottom,e.push(new N2Classes.CSSData(this.$cache["n2-ss-slider-2"],{height:this.resizeContext.sliderHeight-(this.base.sliderOuterHeight-this.base.sliderInnerHeight)})),this.resizeContext.slideOuterHeight=this.resizeContext.sliderHeight-(this.base.sliderOuterHeight-this.base.slideOuterHeight);for(var n=this.slider.parameters.mainanimation.parallax,a=this.slider.backgrounds.getBackgroundImages(),r=0;r<a.length;r++)0!==n&&(e.push(new N2Classes.CSSData(a[r].element,{width:this.resizeContext.slideOuterWidth,height:this.resizeContext.slideOuterHeight})),this.slider.needBackgroundWrap&&e.push(new N2Classes.CSSData(a[r].$wrapElement,{width:this.resizeContext.slideOuterWidth,height:this.resizeContext.slideOuterHeight})));this.$cache["n2-ss-slide"].css("height",this.resizeContext.slideOuterHeight);var o=Math.floor((this.resizeContext.slideOuterHeight-this.resizeContext.slideHeight)/2);e.push(new N2Classes.CSSData(this.$cache["n2-ss-layers-container"],{marginTop:o,marginBottom:o}))},i.prototype.onStarterSlide=function(e){N2Classes.SmartSliderResponsive.prototype.onStarterSlide.apply(this,arguments),this.mainAnimation.setActiveSlide(this.slider.currentSlide)},i.prototype.videoPlayerError=function(e){e.remove()},i.prototype.videoPlayerReady=function(e){e[0].removeEventListener("canplay",this._videoPlayerReady),e.data("ratio",e[0].videoWidth/e[0].videoHeight),e.addClass("n2-active"),this.slider.ready(function(){this.slider.sliderElement.on("SliderResize",this.resizeVideo.bind(this,e)),this.resizeVideo(e)}.bind(this))},i.prototype.resizeVideo=function(e){var i=e.data("mode"),t=e.data("ratio"),s=this.slider.responsive.resizeContext.slideOuterWidth/this.slider.responsive.resizeContext.slideOuterHeight;"fill"===i?t<s?e.css({width:"100%",height:"auto"}):e.css({width:"auto",height:"100%"}):"fit"===i&&(s<t?e.css({width:"100%",height:"auto"}):e.css({width:"auto",height:"100%"})),e.css({marginTop:0,marginLeft:0}),this.center(e)},i.prototype.center=function(e){var i=e.parent();e.css({marginTop:Math.round((i.height()-e.height())/2),marginLeft:Math.round((i.width()-e.width())/2)})},i}),N2D("SmartSliderSimple",["SmartSliderAbstract"],function(t,e){function i(e,i){this.type="simple",N2Classes.SmartSliderAbstract.prototype.constructor.call(this,e,t.extend({bgAnimations:0,carousel:1},i))}return((i.prototype=Object.create(N2Classes.SmartSliderAbstract.prototype)).constructor=i).prototype.initSlides=function(){1!==this.parameters.mainanimation.parallax&&(this.needBackgroundWrap=!0),N2Classes.SmartSliderAbstract.prototype.initSlides.apply(this,arguments)},i.prototype.initResponsiveMode=function(){this.responsive=new N2Classes.SmartSliderResponsiveSimple(this,this.parameters.responsive),this.responsive.start(),N2Classes.SmartSliderAbstract.prototype.initResponsiveMode.call(this),this.$backgroundsContainer=this.sliderElement.find(".n2-ss-slide-backgrounds")},i.prototype.initMainAnimation=function(){this.disabled.backgroundAnimations||!this.parameters.bgAnimations||n2const.isIE||n2const.isEdge?this.mainAnimation=new N2Classes.SmartSliderMainAnimationSimple(this,this.parameters.mainanimation):this.mainAnimation=new N2Classes.SmartSliderFrontendBackgroundAnimation(this,this.parameters.mainanimation,this.parameters.bgAnimations)},i.prototype.afterRawSlidesReady=function(){if(this.parameters.postBackgroundAnimations&&this.parameters.postBackgroundAnimations.slides){for(var e=0;e<this.slides.length;e++)this.slides[e].postBackgroundAnimation=this.parameters.postBackgroundAnimations.slides[e];delete this.parameters.postBackgroundAnimations.slides}if(this.parameters.bgAnimations&&this.parameters.bgAnimations.slides){for(var i=0;i<this.slides.length;i++)this.slides[i].backgroundAnimation=this.parameters.bgAnimations.slides[i];delete this.parameters.bgAnimations.slides}},i.prototype.findSlideBackground=function(e){var i=N2Classes.SmartSliderAbstract.prototype.findSlideBackground.call(this,e);return i.appendTo(this.sliderElement.find(".n2-ss-slide-backgrounds")),i},i.prototype.forceSetActiveSlide=function(e){e.setActive(),this.mainAnimation.showSlide(e)},i.prototype.forceUnsetActiveSlide=function(e){e.unsetActive(),this.mainAnimation.hideSlide(e)},i.prototype.getSlideBackgroundContainer=function(){return this.sliderElement.find(".n2-ss-slider-3")},i.prototype.getAnimationAxis=function(){switch(this.mainAnimation.parameters.type){case"vertical":case"vertical-reversed":return"vertical"}return"horizontal"},i}),N2D("smartslider-simple-type-frontend");