function N2Deferred(){this.state=0,this.args=null,this.callbacks=[]}function NextendThrottle(e,t){t||(t=250);var n,r;return function(){var i=this,o=+new Date,a=arguments;n&&n+t>o?(clearTimeout(r),r=setTimeout(function(){n=o,e.apply(i,a)},t)):(n=o,e.apply(i,a))}}function NextendDeBounce(e,t,n){var r;return function(){var i=this,o=arguments,a=function(){r=null,n||e.apply(i,o)},s=n&&!r;clearTimeout(r),r=setTimeout(a,t),s&&e.apply(i,o)}}(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),function(){"undefined"==typeof window.jQuery&&(!function(e){e(window)}(function(e,t){function n(e){var t="length"in e&&e.length,n=ie.type(e);return"function"===n||ie.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e}function r(e,t,n){if(ie.isFunction(t))return ie.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return ie.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(fe.test(t))return ie.filter(t,e,n);t=ie.filter(t,e)}return ie.grep(e,function(e){return ie.inArray(e,t)>=0!==n})}function i(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}function o(e){var t=xe[e]={};return ie.each(e.match(be)||[],function(e,n){t[n]=!0}),t}function a(){he.addEventListener?(he.removeEventListener("DOMContentLoaded",s,!1),e.removeEventListener("load",s,!1)):(he.detachEvent("onreadystatechange",s),e.detachEvent("onload",s))}function s(){(he.addEventListener||"load"===event.type||"complete"===he.readyState)&&(a(),ie.ready())}function l(e,t,n){if(void 0===n&&1===e.nodeType){var r="data-"+t.replace(Ee,"-$1").toLowerCase();if(n=e.getAttribute(r),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:Ce.test(n)?ie.parseJSON(n):n}catch(i){}ie.data(e,t,n)}else n=void 0}return n}function u(e){var t;for(t in e)if(("data"!==t||!ie.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function c(e,t,n,r){if(ie.acceptData(e)){var i,o,a=ie.expando,s=e.nodeType,l=s?ie.cache:e,u=s?e[a]:e[a]&&a;if(u&&l[u]&&(r||l[u].data)||void 0!==n||"string"!=typeof t)return u||(u=s?e[a]=Q.pop()||ie.guid++:a),l[u]||(l[u]=s?{}:{toJSON:ie.noop}),("object"==typeof t||"function"==typeof t)&&(r?l[u]=ie.extend(l[u],t):l[u].data=ie.extend(l[u].data,t)),o=l[u],r||(o.data||(o.data={}),o=o.data),void 0!==n&&(o[ie.camelCase(t)]=n),"string"==typeof t?(i=o[t],null==i&&(i=o[ie.camelCase(t)])):i=o,i}}function d(e,t,n){if(ie.acceptData(e)){var r,i,o=e.nodeType,a=o?ie.cache:e,s=o?e[ie.expando]:ie.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){ie.isArray(t)?t=t.concat(ie.map(t,ie.camelCase)):t in r?t=[t]:(t=ie.camelCase(t),t=t in r?[t]:t.split(" ")),i=t.length;for(;i--;)delete r[t[i]];if(n?!u(r):!ie.isEmptyObject(r))return}(n||(delete a[s].data,u(a[s])))&&(o?ie.cleanData([e],!0):ne.deleteExpando||a!=a.window?delete a[s]:a[s]=null)}}}function f(){return!0}function p(){return!1}function h(){try{return he.activeElement}catch(e){}}function m(e){var t=Oe.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function g(e,t){var n,r,i=0,o=typeof e.getElementsByTagName!==Ne?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!==Ne?e.querySelectorAll(t||"*"):void 0;if(!o)for(o=[],n=e.childNodes||e;null!=(r=n[i]);i++)!t||ie.nodeName(r,t)?o.push(r):ie.merge(o,g(r,t));return void 0===t||t&&ie.nodeName(e,t)?ie.merge([e],o):o}function v(e){Ae.test(e.type)&&(e.defaultChecked=e.checked)}function y(e,t){return ie.nodeName(e,"table")&&ie.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function b(e){return e.type=(null!==ie.find.attr(e,"type"))+"/"+e.type,e}function x(e){var t=Ve.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function w(e,t){for(var n,r=0;null!=(n=e[r]);r++)ie._data(n,"globalEval",!t||ie._data(t[r],"globalEval"))}function T(e,t){if(1===t.nodeType&&ie.hasData(e)){var n,r,i,o=ie._data(e),a=ie._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;i>r;r++)ie.event.add(t,n,s[n][r])}a.data&&(a.data=ie.extend({},a.data))}}function N(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!ne.noCloneEvent&&t[ie.expando]){i=ie._data(t);for(r in i.events)ie.removeEvent(t,r,i.handle);t.removeAttribute(ie.expando)}"script"===n&&t.text!==e.text?(b(t).text=e.text,x(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),ne.html5Clone&&e.innerHTML&&!ie.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Ae.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}}function C(t,n){var r,i=ie(n.createElement(t)).appendTo(n.body),o=e.getDefaultComputedStyle&&(r=e.getDefaultComputedStyle(i[0]))?r.display:ie.css(i[0],"display");return i.detach(),o}function E(e){var t=he,n=Ze[e];return n||(n=C(e,t),"none"!==n&&n||(Ke=(Ke||ie("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement),t=(Ke[0].contentWindow||Ke[0].contentDocument).document,t.write(),t.close(),n=C(e,t),Ke.detach()),Ze[e]=n),n}function k(e,t){return{get:function(){var n=e();return null!=n?n?void delete this.get:(this.get=t).apply(this,arguments):void 0}}}function S(e,t){if(t in e)return t;for(var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=ft.length;i--;)if(t=ft[i]+n,t in e)return t;return r}function D(e,t){for(var n,r,i,o=[],a=0,s=e.length;s>a;a++)r=e[a],r.style&&(o[a]=ie._data(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&De(r)&&(o[a]=ie._data(r,"olddisplay",E(r.nodeName)))):(i=De(r),(n&&"none"!==n||!i)&&ie._data(r,"olddisplay",i?n:ie.css(r,"display"))));for(a=0;s>a;a++)r=e[a],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}function j(e,t,n){var r=lt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function A(e,t,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;4>o;o+=2)"margin"===n&&(a+=ie.css(e,n+Se[o],!0,i)),r?("content"===n&&(a-=ie.css(e,"padding"+Se[o],!0,i)),"margin"!==n&&(a-=ie.css(e,"border"+Se[o]+"Width",!0,i))):(a+=ie.css(e,"padding"+Se[o],!0,i),"padding"!==n&&(a+=ie.css(e,"border"+Se[o]+"Width",!0,i)));return a}function L(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=et(e),a=ne.boxSizing&&"border-box"===ie.css(e,"boxSizing",!1,o);if(0>=i||null==i){if(i=tt(e,t,o),(0>i||null==i)&&(i=e.style[t]),rt.test(i))return i;r=a&&(ne.boxSizingReliable()||i===e.style[t]),i=parseFloat(i)||0}return i+A(e,t,n||(a?"border":"content"),r,o)+"px"}function H(e,t,n,r,i){return new H.prototype.init(e,t,n,r,i)}function _(){return setTimeout(function(){pt=void 0}),pt=ie.now()}function q(e,t){var n,r={height:e},i=0;for(t=t?1:0;4>i;i+=2-t)n=Se[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function M(e,t,n){for(var r,i=(bt[t]||[]).concat(bt["*"]),o=0,a=i.length;a>o;o++)if(r=i[o].call(n,t,e))return r}function O(e,t,n){var r,i,o,a,s,l,u,c,d=this,f={},p=e.style,h=e.nodeType&&De(e),m=ie._data(e,"fxshow");n.queue||(s=ie._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,d.always(function(){d.always(function(){s.unqueued--,ie.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],u=ie.css(e,"display"),c="none"===u?ie._data(e,"olddisplay")||E(e.nodeName):u,"inline"===c&&"none"===ie.css(e,"float")&&(ne.inlineBlockNeedsLayout&&"inline"!==E(e.nodeName)?p.zoom=1:p.display="inline-block")),n.overflow&&(p.overflow="hidden",ne.shrinkWrapBlocks()||d.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(r in t)if(i=t[r],mt.exec(i)){if(delete t[r],o=o||"toggle"===i,i===(h?"hide":"show")){if("show"!==i||!m||void 0===m[r])continue;h=!0}f[r]=m&&m[r]||ie.style(e,r)}else u=void 0;if(ie.isEmptyObject(f))"inline"===("none"===u?E(e.nodeName):u)&&(p.display=u);else{m?"hidden"in m&&(h=m.hidden):m=ie._data(e,"fxshow",{}),o&&(m.hidden=!h),h?ie(e).show():d.done(function(){ie(e).hide()}),d.done(function(){var t;ie._removeData(e,"fxshow");for(t in f)ie.style(e,t,f[t])});for(r in f)a=M(h?m[r]:0,r,d),r in m||(m[r]=a.start,h&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}}function F(e,t){var n,r,i,o,a;for(n in e)if(r=ie.camelCase(n),i=t[r],o=e[n],ie.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),a=ie.cssHooks[r],a&&"expand"in a){o=a.expand(o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}function B(e,t,n){var r,i,o=0,a=yt.length,s=ie.Deferred().always(function(){delete l.elem}),l=function(){if(i)return!1;for(var t=pt||_(),n=Math.max(0,u.startTime+u.duration-t),r=n/u.duration||0,o=1-r,a=0,l=u.tweens.length;l>a;a++)u.tweens[a].run(o);return s.notifyWith(e,[u,o,n]),1>o&&l?n:(s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:ie.extend({},t),opts:ie.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:pt||_(),duration:n.duration,tweens:[],createTween:function(t,n){var r=ie.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)u.tweens[n].run(1);return t?s.resolveWith(e,[u,t]):s.rejectWith(e,[u,t]),this}}),c=u.props;for(F(c,u.opts.specialEasing);a>o;o++)if(r=yt[o].call(u,e,c,u.opts))return r;return ie.map(c,M,u),ie.isFunction(u.opts.start)&&u.opts.start.call(e,u),ie.fx.timer(ie.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function R(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(be)||[];if(ie.isFunction(n))for(;r=o[i++];)"+"===r.charAt(0)?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function P(e,t,n,r){function i(s){var l;return o[s]=!0,ie.each(e[s]||[],function(e,s){var u=s(t,n,r);return"string"!=typeof u||a||o[u]?a?!(l=u):void 0:(t.dataTypes.unshift(u),i(u),!1)}),l}var o={},a=e===It;return i(t.dataTypes[0])||!o["*"]&&i("*")}function W(e,t){var n,r,i=ie.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((i[r]?e:n||(n={}))[r]=t[r]);return n&&ie.extend(!0,e,n),e}function $(e,t,n){for(var r,i,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(a in s)if(s[a]&&s[a].test(i)){l.unshift(a);break}if(l[0]in n)o=l[0];else{for(a in n){if(!l[0]||e.converters[a+" "+l[0]]){o=a;break}r||(r=a)}o=o||r}return o?(o!==l[0]&&l.unshift(o),n[o]):void 0}function I(e,t,n,r){var i,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(a=u[l+" "+o]||u["* "+o],!a)for(i in u)if(s=i.split(" "),s[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){a===!0?a=u[i]:u[i]!==!0&&(o=s[0],c.unshift(s[1]));break}if(a!==!0)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(d){return{state:"parsererror",error:a?d:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}function z(e,t,n,r){var i;if(ie.isArray(t))ie.each(t,function(t,i){n||Vt.test(e)?r(e,i):z(e+"["+("object"==typeof i?t:"")+"]",i,n,r)});else if(n||"object"!==ie.type(t))r(e,t);else for(i in t)z(e+"["+i+"]",t[i],n,r)}function X(){try{return new e.XMLHttpRequest}catch(t){}}function U(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function V(e){return ie.isWindow(e)?e:9===e.nodeType?e.defaultView||e.parentWindow:!1}var Q=[],J=Q.slice,Y=Q.concat,G=Q.push,K=Q.indexOf,Z={},ee=Z.toString,te=Z.hasOwnProperty,ne={},re="1.11.3",ie=function(e,t){return new ie.fn.init(e,t)},oe=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ae=/^-ms-/,se=/-([\da-z])/gi,le=function(e,t){return t.toUpperCase()};ie.fn=ie.prototype={jquery:re,constructor:ie,selector:"",length:0,toArray:function(){return J.call(this)},get:function(e){return null!=e?0>e?this[e+this.length]:this[e]:J.call(this)},pushStack:function(e){var t=ie.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return ie.each(this,e,t)},map:function(e){return this.pushStack(ie.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(J.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:G,sort:Q.sort,splice:Q.splice},ie.extend=ie.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||ie.isFunction(a)||(a={}),s===l&&(a=this,s--);l>s;s++)if(null!=(i=arguments[s]))for(r in i)e=a[r],n=i[r],a!==n&&(u&&n&&(ie.isPlainObject(n)||(t=ie.isArray(n)))?(t?(t=!1,o=e&&ie.isArray(e)?e:[]):o=e&&ie.isPlainObject(e)?e:{},a[r]=ie.extend(u,o,n)):void 0!==n&&(a[r]=n));return a},ie.extend({expando:"jQuery"+(re+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===ie.type(e)},isArray:Array.isArray||function(e){return"array"===ie.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!ie.isArray(e)&&e-parseFloat(e)+1>=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||"object"!==ie.type(e)||e.nodeType||ie.isWindow(e))return!1;try{if(e.constructor&&!te.call(e,"constructor")&&!te.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}if(ne.ownLast)for(t in e)return te.call(e,t);for(t in e);return void 0===t||te.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?Z[ee.call(e)]||"object":typeof e},globalEval:function(t){t&&ie.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(ae,"ms-").replace(se,le)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,r){var i,o=0,a=e.length,s=n(e);if(r){if(s)for(;a>o&&(i=t.apply(e[o],r),i!==!1);o++);else for(o in e)if(i=t.apply(e[o],r),i===!1)break}else if(s)for(;a>o&&(i=t.call(e[o],o,e[o]),i!==!1);o++);else for(o in e)if(i=t.call(e[o],o,e[o]),i===!1)break;return e},trim:function(e){return null==e?"":(e+"").replace(oe,"")},makeArray:function(e,t){var r=t||[];return null!=e&&(n(Object(e))?ie.merge(r,"string"==typeof e?[e]:e):G.call(r,e)),r},inArray:function(e,t,n){var r;if(t){if(K)return K.call(t,e,n);for(r=t.length,n=n?0>n?Math.max(0,r+n):n:0;r>n;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;n>r;)e[i++]=t[r++];if(n!==n)for(;void 0!==t[r];)e[i++]=t[r++];return e.length=i,e},grep:function(e,t,n){for(var r,i=[],o=0,a=e.length,s=!n;a>o;o++)r=!t(e[o],o),r!==s&&i.push(e[o]);return i},map:function(e,t,r){var i,o=0,a=e.length,s=n(e),l=[];if(s)for(;a>o;o++)i=t(e[o],o,r),null!=i&&l.push(i);else for(o in e)i=t(e[o],o,r),null!=i&&l.push(i);return Y.apply([],l)},guid:1,proxy:function(e,t){var n,r,i;return"string"==typeof t&&(i=e[t],t=e,e=i),ie.isFunction(e)?(n=J.call(arguments,2),r=function(){return e.apply(t||this,n.concat(J.call(arguments)))},r.guid=e.guid=e.guid||ie.guid++,r):void 0},now:function(){return+new Date},support:ne}),ie.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){Z["[object "+t+"]"]=t.toLowerCase()});var ue=function(e){function t(e,t,n,r){var i,o,a,s,l,u,d,p,h,m;if((t?t.ownerDocument||t:P)!==H&&L(t),t=t||H,n=n||[],s=t.nodeType,"string"!=typeof e||!e||1!==s&&9!==s&&11!==s)return n;if(!r&&q){if(11!==s&&(i=ye.exec(e)))if(a=i[1]){if(9===s){if(o=t.getElementById(a),!o||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(a))&&B(t,o)&&o.id===a)return n.push(o),n}else{if(i[2])return K.apply(n,t.getElementsByTagName(e)),n;if((a=i[3])&&w.getElementsByClassName)return K.apply(n,t.getElementsByClassName(a)),n}if(w.qsa&&(!M||!M.test(e))){if(p=d=R,h=t,m=1!==s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){for(u=E(e),(d=t.getAttribute("id"))?p=d.replace(xe,"\\$&"):t.setAttribute("id",p),p="[id='"+p+"'] ",l=u.length;l--;)u[l]=p+f(u[l]);h=be.test(e)&&c(t.parentNode)||t,m=u.join(",")}if(m)try{return K.apply(n,h.querySelectorAll(m)),n}catch(g){}finally{d||t.removeAttribute("id")}}}return S(e.replace(le,"$1"),t,n,r)}function n(){function e(n,r){return t.push(n+" ")>T.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[R]=!0,e}function i(e){var t=H.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),r=e.length;r--;)T.attrHandle[n[r]]=t}function a(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||V)-(~e.sourceIndex||V);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function l(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function u(e){return r(function(t){return t=+t,r(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function c(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function d(){}function f(e){for(var t=0,n=e.length,r="";n>t;t++)r+=e[t].value;return r}function p(e,t,n){var r=t.dir,i=n&&"parentNode"===r,o=$++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||i)return e(t,n,o)}:function(t,n,a){var s,l,u=[W,o];if(a){for(;t=t[r];)if((1===t.nodeType||i)&&e(t,n,a))return!0}else for(;t=t[r];)if(1===t.nodeType||i){if(l=t[R]||(t[R]={}),(s=l[r])&&s[0]===W&&s[1]===o)return u[2]=s[2];if(l[r]=u,u[2]=e(t,n,a))return!0}}}function h(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function m(e,n,r){for(var i=0,o=n.length;o>i;i++)t(e,n[i],r);return r}function g(e,t,n,r,i){for(var o,a=[],s=0,l=e.length,u=null!=t;l>s;s++)(o=e[s])&&(!n||n(o,r,i))&&(a.push(o),u&&t.push(s));return a}function v(e,t,n,i,o,a){return i&&!i[R]&&(i=v(i)),o&&!o[R]&&(o=v(o,a)),r(function(r,a,s,l){var u,c,d,f=[],p=[],h=a.length,v=r||m(t||"*",s.nodeType?[s]:s,[]),y=!e||!r&&t?v:g(v,f,e,s,l),b=n?o||(r?e:h||i)?[]:a:y;if(n&&n(y,b,s,l),i)for(u=g(b,p),i(u,[],s,l),c=u.length;c--;)(d=u[c])&&(b[p[c]]=!(y[p[c]]=d));if(r){if(o||e){if(o){for(u=[],c=b.length;c--;)(d=b[c])&&u.push(y[c]=d);o(null,b=[],u,l)}for(c=b.length;c--;)(d=b[c])&&(u=o?ee(r,d):f[c])>-1&&(r[u]=!(a[u]=d))}}else b=g(b===a?b.splice(h,b.length):b),o?o(null,a,b,l):K.apply(a,b)})}function y(e){for(var t,n,r,i=e.length,o=T.relative[e[0].type],a=o||T.relative[" "],s=o?1:0,l=p(function(e){return e===t},a,!0),u=p(function(e){return ee(t,e)>-1},a,!0),c=[function(e,n,r){var i=!o&&(r||n!==D)||((t=n).nodeType?l(e,n,r):u(e,n,r));return t=null,i}];i>s;s++)if(n=T.relative[e[s].type])c=[p(h(c),n)];else{if(n=T.filter[e[s].type].apply(null,e[s].matches),n[R]){for(r=++s;i>r&&!T.relative[e[r].type];r++);return v(s>1&&h(c),s>1&&f(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(le,"$1"),n,r>s&&y(e.slice(s,r)),i>r&&y(e=e.slice(r)),i>r&&f(e))}c.push(n)}return h(c)}function b(e,n){var i=n.length>0,o=e.length>0,a=function(r,a,s,l,u){var c,d,f,p=0,h="0",m=r&&[],v=[],y=D,b=r||o&&T.find.TAG("*",u),x=W+=null==y?1:Math.random()||.1,w=b.length;for(u&&(D=a!==H&&a);h!==w&&null!=(c=b[h]);h++){if(o&&c){for(d=0;f=e[d++];)if(f(c,a,s)){l.push(c);break}u&&(W=x)}i&&((c=!f&&c)&&p--,r&&m.push(c))}if(p+=h,i&&h!==p){for(d=0;f=n[d++];)f(m,v,a,s);if(r){if(p>0)for(;h--;)m[h]||v[h]||(v[h]=Y.call(l));v=g(v)}K.apply(l,v),u&&!r&&v.length>0&&p+n.length>1&&t.uniqueSort(l)}return u&&(W=x,D=y),m};return i?r(a):a}var x,w,T,N,C,E,k,S,D,j,A,L,H,_,q,M,O,F,B,R="sizzle"+1*new Date,P=e.document,W=0,$=0,I=n(),z=n(),X=n(),U=function(e,t){return e===t&&(A=!0),0},V=1<<31,Q={}.hasOwnProperty,J=[],Y=J.pop,G=J.push,K=J.push,Z=J.slice,ee=function(e,t){for(var n=0,r=e.length;r>n;n++)if(e[n]===t)return n;return-1},te="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ne="[\\x20\\t\\r\\n\\f]",re="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ie=re.replace("w","w#"),oe="\\["+ne+"*("+re+")(?:"+ne+"*([*^$|!~]?=)"+ne+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ie+"))|)"+ne+"*\\]",ae=":("+re+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+oe+")*)|.*)\\)|)",se=new RegExp(ne+"+","g"),le=new RegExp("^"+ne+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ne+"+$","g"),ue=new RegExp("^"+ne+"*,"+ne+"*"),ce=new RegExp("^"+ne+"*([>+~]|"+ne+")"+ne+"*"),de=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),fe=new RegExp(ae),pe=new RegExp("^"+ie+"$"),he={ID:new RegExp("^#("+re+")"),CLASS:new RegExp("^\\.("+re+")"),TAG:new RegExp("^("+re.replace("w","w*")+")"),ATTR:new RegExp("^"+oe),PSEUDO:new RegExp("^"+ae),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},me=/^(?:input|select|textarea|button)$/i,ge=/^h\d$/i,ve=/^[^{]+\{\s*\[native \w/,ye=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,be=/[+~]/,xe=/'|\\/g,we=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),Te=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},Ne=function(){L()};try{K.apply(J=Z.call(P.childNodes),P.childNodes),J[P.childNodes.length].nodeType}catch(Ce){K={apply:J.length?function(e,t){G.apply(e,Z.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}w=t.support={},C=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},L=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:P;return r!==H&&9===r.nodeType&&r.documentElement?(H=r,_=r.documentElement,n=r.defaultView,n&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",Ne,!1):n.attachEvent&&n.attachEvent("onunload",Ne)),q=!C(r),w.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),w.getElementsByTagName=i(function(e){return e.appendChild(r.createComment("")),!e.getElementsByTagName("*").length}),w.getElementsByClassName=ve.test(r.getElementsByClassName),w.getById=i(function(e){return _.appendChild(e).id=R,!r.getElementsByName||!r.getElementsByName(R).length}),w.getById?(T.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&q){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},T.filter.ID=function(e){var t=e.replace(we,Te);return function(e){return e.getAttribute("id")===t}}):(delete T.find.ID,T.filter.ID=function(e){var t=e.replace(we,Te);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),T.find.TAG=w.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):w.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},T.find.CLASS=w.getElementsByClassName&&function(e,t){return q?t.getElementsByClassName(e):void 0},O=[],M=[],(w.qsa=ve.test(r.querySelectorAll))&&(i(function(e){_.appendChild(e).innerHTML="<a id='"+R+"'></a><select id='"+R+"-\f]' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&M.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||M.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+R+"-]").length||M.push("~="),e.querySelectorAll(":checked").length||M.push(":checked"),e.querySelectorAll("a#"+R+"+*").length||M.push(".#.+[+~]")}),i(function(e){var t=r.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&M.push("name"+ne+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||M.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),M.push(",.*:")})),(w.matchesSelector=ve.test(F=_.matches||_.webkitMatchesSelector||_.mozMatchesSelector||_.oMatchesSelector||_.msMatchesSelector))&&i(function(e){w.disconnectedMatch=F.call(e,"div"),F.call(e,"[s!='']:x"),O.push("!=",ae)}),M=M.length&&new RegExp(M.join("|")),O=O.length&&new RegExp(O.join("|")),t=ve.test(_.compareDocumentPosition),B=t||ve.test(_.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},U=t?function(e,t){if(e===t)return A=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!w.sortDetached&&t.compareDocumentPosition(e)===n?e===r||e.ownerDocument===P&&B(P,e)?-1:t===r||t.ownerDocument===P&&B(P,t)?1:j?ee(j,e)-ee(j,t):0:4&n?-1:1)}:function(e,t){if(e===t)return A=!0,0;var n,i=0,o=e.parentNode,s=t.parentNode,l=[e],u=[t];if(!o||!s)return e===r?-1:t===r?1:o?-1:s?1:j?ee(j,e)-ee(j,t):0;if(o===s)return a(e,t);for(n=e;n=n.parentNode;)l.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;l[i]===u[i];)i++;return i?a(l[i],u[i]):l[i]===P?-1:u[i]===P?1:0},r):H},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==H&&L(e),n=n.replace(de,"='$1']"),!(!w.matchesSelector||!q||O&&O.test(n)||M&&M.test(n)))try{var r=F.call(e,n);if(r||w.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(i){}return t(n,H,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==H&&L(e),B(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==H&&L(e);var n=T.attrHandle[t.toLowerCase()],r=n&&Q.call(T.attrHandle,t.toLowerCase())?n(e,t,!q):void 0;return void 0!==r?r:w.attributes||!q?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(A=!w.detectDuplicates,j=!w.sortStable&&e.slice(0),e.sort(U),A){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return j=null,e},N=t.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+=N(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=N(t);return n},T=t.selectors={cacheLength:50,createPseudo:r,match:he,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(we,Te),e[3]=(e[3]||e[4]||e[5]||"").replace(we,Te),"~="===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]||t.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]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return he.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&fe.test(n)&&(t=E(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(we,Te).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=I[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&I(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var o=t.attr(i,e);return null==o?"!="===n:n?(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(se," ")+" ").indexOf(r)>-1:"|="===n?o===r||o.slice(0,r.length+1)===r+"-":!1):!0}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,d,f,p,h,m=o!==a?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s;if(g){if(o){for(;m;){for(d=t;d=d[m];)if(s?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?g.firstChild:g.lastChild],a&&y){for(c=g[R]||(g[R]={}),u=c[e]||[],p=u[0]===W&&u[1],f=u[0]===W&&u[2],d=p&&g.childNodes[p];d=++p&&d&&d[m]||(f=p=0)||h.pop();)if(1===d.nodeType&&++f&&d===t){c[e]=[W,p,f];break}}else if(y&&(u=(t[R]||(t[R]={}))[e])&&u[0]===W)f=u[1];else for(;(d=++p&&d&&d[m]||(f=p=0)||h.pop())&&((s?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++f||(y&&((d[R]||(d[R]={}))[e]=[W,f]),d!==t)););return f-=i,f===r||f%r===0&&f/r>=0}}},PSEUDO:function(e,n){var i,o=T.pseudos[e]||T.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[R]?o(n):o.length>1?(i=[e,e,"",n],T.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=o(e,n),a=i.length;a--;)r=ee(e,i[a]),e[r]=!(t[r]=i[a])}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=k(e.replace(le,"$1"));return i[R]?r(function(e,t,n,r){for(var o,a=i(e,null,r,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(we,Te),function(t){return(t.textContent||t.innerText||N(t)).indexOf(e)>-1}}),lang:r(function(e){return pe.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(we,Te).toLowerCase(),function(t){var n;do if(n=q?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===_},focus:function(e){return e===H.activeElement&&(!H.hasFocus||H.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!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,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!T.pseudos.empty(e)},header:function(e){return ge.test(e.nodeName)},input:function(e){return me.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:u(function(){return[0]}),last:u(function(e,t){return[t-1]}),eq:u(function(e,t,n){return[0>n?n+t:n]}),even:u(function(e,t){for(var n=0;t>n;n+=2)e.push(n);return e}),odd:u(function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e}),lt:u(function(e,t,n){for(var r=0>n?n+t:n;--r>=0;)e.push(r);return e}),gt:u(function(e,t,n){for(var r=0>n?n+t:n;++r<t;)e.push(r);return e})}},T.pseudos.nth=T.pseudos.eq;for(x in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})T.pseudos[x]=s(x);for(x in{submit:!0,reset:!0})T.pseudos[x]=l(x);return d.prototype=T.filters=T.pseudos,T.setFilters=new d,E=t.tokenize=function(e,n){var r,i,o,a,s,l,u,c=z[e+" "];if(c)return n?0:c.slice(0);for(s=e,l=[],u=T.preFilter;s;){(!r||(i=ue.exec(s)))&&(i&&(s=s.slice(i[0].length)||s),l.push(o=[])),r=!1,(i=ce.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(le," ")}),s=s.slice(r.length));for(a in T.filter)!(i=he[a].exec(s))||u[a]&&!(i=u[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),s=s.slice(r.length));if(!r)break}return n?s.length:s?t.error(e):z(e,l).slice(0)},k=t.compile=function(e,t){var n,r=[],i=[],o=X[e+" "];if(!o){for(t||(t=E(e)),n=t.length;n--;)o=y(t[n]),o[R]?r.push(o):i.push(o);o=X(e,b(i,r)),o.selector=e}return o},S=t.select=function(e,t,n,r){var i,o,a,s,l,u="function"==typeof e&&e,d=!r&&E(e=u.selector||e);if(n=n||[],1===d.length){if(o=d[0]=d[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&w.getById&&9===t.nodeType&&q&&T.relative[o[1].type]){if(t=(T.find.ID(a.matches[0].replace(we,Te),t)||[])[0],!t)return n;u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=he.needsContext.test(e)?0:o.length;i--&&(a=o[i],!T.relative[s=a.type]);)if((l=T.find[s])&&(r=l(a.matches[0].replace(we,Te),be.test(o[0].type)&&c(t.parentNode)||t))){if(o.splice(i,1),e=r.length&&f(o),!e)return K.apply(n,r),n;break}}return(u||k(e,d))(r,t,!q,n,be.test(e)&&c(t.parentNode)||t),n},w.sortStable=R.split("").sort(U).join("")===R,w.detectDuplicates=!!A,L(),w.sortDetached=i(function(e){return 1&e.compareDocumentPosition(H.createElement("div"))}),i(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),w.attributes&&i(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o(te,function(e,t,n){var r;return n?void 0:e[t]===!0?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e);ie.find=ue,ie.expr=ue.selectors,ie.expr[":"]=ie.expr.pseudos,ie.unique=ue.uniqueSort,ie.text=ue.getText,ie.isXMLDoc=ue.isXML,ie.contains=ue.contains;var ce=ie.expr.match.needsContext,de=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,fe=/^.[^:#\[\.,]*$/;ie.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?ie.find.matchesSelector(r,e)?[r]:[]:ie.find.matches(e,ie.grep(t,function(e){return 1===e.nodeType}))},ie.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(ie(e).filter(function(){for(t=0;i>t;t++)if(ie.contains(r[t],this))return!0}));for(t=0;i>t;t++)ie.find(e,r[t],n);return n=this.pushStack(i>1?ie.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(r(this,e||[],!1))},not:function(e){return this.pushStack(r(this,e||[],!0))},is:function(e){return!!r(this,"string"==typeof e&&ce.test(e)?ie(e):e||[],!1).length}});var pe,he=e.document,me=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ge=ie.fn.init=function(e,t){var n,r;if(!e)return this;if("string"==typeof e){if(n="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:me.exec(e),!n||!n[1]&&t)return!t||t.jquery?(t||pe).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof ie?t[0]:t,ie.merge(this,ie.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:he,!0)),de.test(n[1])&&ie.isPlainObject(t))for(n in t)ie.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}if(r=he.getElementById(n[2]),r&&r.parentNode){if(r.id!==n[2])return pe.find(e);this.length=1,this[0]=r}return this.context=he,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):ie.isFunction(e)?"undefined"!=typeof pe.ready?pe.ready(e):e(ie):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),ie.makeArray(e,this))};ge.prototype=ie.fn,pe=ie(he);var ve=/^(?:parents|prev(?:Until|All))/,ye={children:!0,contents:!0,next:!0,prev:!0};ie.extend({dir:function(e,t,n){for(var r=[],i=e[t];i&&9!==i.nodeType&&(void 0===n||1!==i.nodeType||!ie(i).is(n));)1===i.nodeType&&r.push(i),i=i[t];return r},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),ie.fn.extend({has:function(e){var t,n=ie(e,this),r=n.length;return this.filter(function(){for(t=0;r>t;t++)if(ie.contains(this,n[t]))return!0})},closest:function(e,t){for(var n,r=0,i=this.length,o=[],a=ce.test(e)||"string"!=typeof e?ie(e,t||this.context):0;i>r;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&ie.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?ie.unique(o):o)},index:function(e){return e?"string"==typeof e?ie.inArray(this[0],ie(e)):ie.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(ie.unique(ie.merge(this.get(),ie(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ie.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return ie.dir(e,"parentNode")},parentsUntil:function(e,t,n){return ie.dir(e,"parentNode",n)},next:function(e){return i(e,"nextSibling")},prev:function(e){return i(e,"previousSibling")},nextAll:function(e){return ie.dir(e,"nextSibling")},prevAll:function(e){return ie.dir(e,"previousSibling")},nextUntil:function(e,t,n){return ie.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return ie.dir(e,"previousSibling",n)},siblings:function(e){return ie.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return ie.sibling(e.firstChild)},contents:function(e){return ie.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:ie.merge([],e.childNodes)}},function(e,t){ie.fn[e]=function(n,r){var i=ie.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=ie.filter(r,i)),this.length>1&&(ye[e]||(i=ie.unique(i)),ve.test(e)&&(i=i.reverse())),this.pushStack(i)}});var be=/\S+/g,xe={};ie.Callbacks=function(e){e="string"==typeof e?xe[e]||o(e):ie.extend({},e);var t,n,r,i,a,s,l=[],u=!e.once&&[],c=function(o){for(n=e.memory&&o,r=!0,a=s||0,s=0,i=l.length,t=!0;l&&i>a;a++)if(l[a].apply(o[0],o[1])===!1&&e.stopOnFalse){n=!1;break}t=!1,l&&(u?u.length&&c(u.shift()):n?l=[]:d.disable())},d={add:function(){if(l){var r=l.length;!function o(t){ie.each(t,function(t,n){var r=ie.type(n);"function"===r?e.unique&&d.has(n)||l.push(n):n&&n.length&&"string"!==r&&o(n)})}(arguments),t?i=l.length:n&&(s=r,c(n))}return this},remove:function(){return l&&ie.each(arguments,function(e,n){for(var r;(r=ie.inArray(n,l,r))>-1;)l.splice(r,1),t&&(i>=r&&i--,a>=r&&a--)}),this},has:function(e){return e?ie.inArray(e,l)>-1:!(!l||!l.length)},empty:function(){return l=[],i=0,this},disable:function(){return l=u=n=void 0,this},disabled:function(){return!l},lock:function(){return u=void 0,n||d.disable(),this},locked:function(){return!u},fireWith:function(e,n){return!l||r&&!u||(n=n||[],n=[e,n.slice?n.slice():n],t?u.push(n):c(n)),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!r}};return d},ie.extend({Deferred:function(e){var t=[["resolve","done",ie.Callbacks("once memory"),"resolved"],["reject","fail",ie.Callbacks("once memory"),"rejected"],["notify","progress",ie.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return ie.Deferred(function(n){ie.each(t,function(t,o){var a=ie.isFunction(e[t])&&e[t];i[o[1]](function(){var e=a&&a.apply(this,arguments);e&&ie.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o[0]+"With"](this===r?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?ie.extend(e,r):r}},i={};return r.pipe=r.then,ie.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t,n,r,i=0,o=J.call(arguments),a=o.length,s=1!==a||e&&ie.isFunction(e.promise)?a:0,l=1===s?e:ie.Deferred(),u=function(e,n,r){return function(i){n[e]=this,r[e]=arguments.length>1?J.call(arguments):i,r===t?l.notifyWith(n,r):--s||l.resolveWith(n,r)}};if(a>1)for(t=new Array(a),n=new Array(a),r=new Array(a);a>i;i++)o[i]&&ie.isFunction(o[i].promise)?o[i].promise().done(u(i,r,o)).fail(l.reject).progress(u(i,n,t)):--s;return s||l.resolveWith(r,o),l.promise()}});var we;ie.fn.ready=function(e){return ie.ready.promise().done(e),this},ie.extend({isReady:!1,readyWait:1,holdReady:function(e){e?ie.readyWait++:ie.ready(!0)},ready:function(e){if(e===!0?!--ie.readyWait:!ie.isReady){if(!he.body)return setTimeout(ie.ready);ie.isReady=!0,e!==!0&&--ie.readyWait>0||(we.resolveWith(he,[ie]),ie.fn.triggerHandler&&(ie(he).triggerHandler("ready"),ie(he).off("ready")))}}}),ie.ready.promise=function(t){if(!we)if(we=ie.Deferred(),"complete"===he.readyState)setTimeout(ie.ready);else if(he.addEventListener)he.addEventListener("DOMContentLoaded",s,!1),e.addEventListener("load",s,!1);else{he.attachEvent("onreadystatechange",s),e.attachEvent("onload",s);var n=!1;try{n=null==e.frameElement&&he.documentElement}catch(r){}n&&n.doScroll&&!function i(){if(!ie.isReady){try{n.doScroll("left")}catch(e){return setTimeout(i,50)}a(),ie.ready()}}()}return we.promise(t)};var Te,Ne="undefined";for(Te in ie(ne))break;ne.ownLast="0"!==Te,ne.inlineBlockNeedsLayout=!1,ie(function(){var e,t,n,r;n=he.getElementsByTagName("body")[0],n&&n.style&&(t=he.createElement("div"),r=he.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(t),typeof t.style.zoom!==Ne&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",ne.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(n.style.zoom=1)),n.removeChild(r))}),function(){var e=he.createElement("div");if(null==ne.deleteExpando){ne.deleteExpando=!0;try{delete e.test}catch(t){ne.deleteExpando=!1}}e=null}(),ie.acceptData=function(e){var t=ie.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return 1!==n&&9!==n?!1:!t||t!==!0&&e.getAttribute("classid")===t};var Ce=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Ee=/([A-Z])/g;ie.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return e=e.nodeType?ie.cache[e[ie.expando]]:e[ie.expando],!!e&&!u(e)},data:function(e,t,n){return c(e,t,n)},removeData:function(e,t){return d(e,t)},_data:function(e,t,n){return c(e,t,n,!0)},_removeData:function(e,t){return d(e,t,!0)}}),ie.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=ie.data(o),1===o.nodeType&&!ie._data(o,"parsedAttrs"))){for(n=a.length;n--;)a[n]&&(r=a[n].name,0===r.indexOf("data-")&&(r=ie.camelCase(r.slice(5)),l(o,r,i[r])));ie._data(o,"parsedAttrs",!0)}return i}return"object"==typeof e?this.each(function(){ie.data(this,e)}):arguments.length>1?this.each(function(){ie.data(this,e,t)}):o?l(o,e,ie.data(o,e)):void 0},removeData:function(e){return this.each(function(){ie.removeData(this,e)})}}),ie.extend({queue:function(e,t,n){var r;return e?(t=(t||"fx")+"queue",r=ie._data(e,t),n&&(!r||ie.isArray(n)?r=ie._data(e,t,ie.makeArray(n)):r.push(n)),r||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=ie.queue(e,t),r=n.length,i=n.shift(),o=ie._queueHooks(e,t),a=function(){ie.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return ie._data(e,n)||ie._data(e,n,{empty:ie.Callbacks("once memory").add(function(){ie._removeData(e,t+"queue"),ie._removeData(e,n)})})}}),ie.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?ie.queue(this[0],e):void 0===t?this:this.each(function(){var n=ie.queue(this,e,t);ie._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&ie.dequeue(this,e)})},dequeue:function(e){return this.each(function(){ie.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=ie.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)n=ie._data(o[a],e+"queueHooks"),n&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var ke=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Se=["Top","Right","Bottom","Left"],De=function(e,t){return e=t||e,"none"===ie.css(e,"display")||!ie.contains(e.ownerDocument,e)},je=ie.access=function(e,t,n,r,i,o,a){var s=0,l=e.length,u=null==n;if("object"===ie.type(n)){i=!0;for(s in n)ie.access(e,t,s,n[s],!0,o,a)}else if(void 0!==r&&(i=!0,ie.isFunction(r)||(a=!0),u&&(a?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(ie(e),n)})),t))for(;l>s;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:u?t.call(e):l?t(e[0],n):o},Ae=/^(?:checkbox|radio)$/i;!function(){var e=he.createElement("input"),t=he.createElement("div"),n=he.createDocumentFragment();if(t.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",ne.leadingWhitespace=3===t.firstChild.nodeType,ne.tbody=!t.getElementsByTagName("tbody").length,ne.htmlSerialize=!!t.getElementsByTagName("link").length,ne.html5Clone="<:nav></:nav>"!==he.createElement("nav").cloneNode(!0).outerHTML,e.type="checkbox",e.checked=!0,n.appendChild(e),ne.appendChecked=e.checked,t.innerHTML="<textarea>x</textarea>",ne.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,n.appendChild(t),t.innerHTML="<input type='radio' checked='checked' name='t'/>",ne.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,ne.noCloneEvent=!0,t.attachEvent&&(t.attachEvent("onclick",function(){ne.noCloneEvent=!1}),t.cloneNode(!0).click()),null==ne.deleteExpando){ne.deleteExpando=!0;try{delete t.test}catch(r){ne.deleteExpando=!1}}}(),function(){var t,n,r=he.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})n="on"+t,(ne[t+"Bubbles"]=n in e)||(r.setAttribute(n,"t"),ne[t+"Bubbles"]=r.attributes[n].expando===!1);r=null}();var Le=/^(?:input|select|textarea)$/i,He=/^key/,_e=/^(?:mouse|pointer|contextmenu)|click/,qe=/^(?:focusinfocus|focusoutblur)$/,Me=/^([^.]*)(?:\.(.+)|)$/;ie.event={global:{},add:function(e,t,n,r,i){var o,a,s,l,u,c,d,f,p,h,m,g=ie._data(e);if(g){for(n.handler&&(l=n,n=l.handler,i=l.selector),n.guid||(n.guid=ie.guid++),(a=g.events)||(a=g.events={}),(c=g.handle)||(c=g.handle=function(e){return typeof ie===Ne||e&&ie.event.triggered===e.type?void 0:ie.event.dispatch.apply(c.elem,arguments)},c.elem=e),t=(t||"").match(be)||[""],s=t.length;s--;)o=Me.exec(t[s])||[],p=m=o[1],h=(o[2]||"").split(".").sort(),p&&(u=ie.event.special[p]||{},p=(i?u.delegateType:u.bindType)||p,u=ie.event.special[p]||{},d=ie.extend({type:p,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&ie.expr.match.needsContext.test(i),namespace:h.join(".")},l),(f=a[p])||(f=a[p]=[],f.delegateCount=0,u.setup&&u.setup.call(e,r,h,c)!==!1||(e.addEventListener?e.addEventListener(p,c,!1):e.attachEvent&&e.attachEvent("on"+p,c))),u.add&&(u.add.call(e,d),d.handler.guid||(d.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,d):f.push(d),ie.event.global[p]=!0);e=null}},remove:function(e,t,n,r,i){var o,a,s,l,u,c,d,f,p,h,m,g=ie.hasData(e)&&ie._data(e);if(g&&(c=g.events)){for(t=(t||"").match(be)||[""],u=t.length;u--;)if(s=Me.exec(t[u])||[],p=m=s[1],h=(s[2]||"").split(".").sort(),p){for(d=ie.event.special[p]||{},p=(r?d.delegateType:d.bindType)||p,f=c[p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=o=f.length;o--;)a=f[o],!i&&m!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(f.splice(o,1),a.selector&&f.delegateCount--,d.remove&&d.remove.call(e,a));l&&!f.length&&(d.teardown&&d.teardown.call(e,h,g.handle)!==!1||ie.removeEvent(e,p,g.handle),delete c[p])}else for(p in c)ie.event.remove(e,p+t[u],n,r,!0);ie.isEmptyObject(c)&&(delete g.handle,ie._removeData(e,"events"))}},trigger:function(t,n,r,i){var o,a,s,l,u,c,d,f=[r||he],p=te.call(t,"type")?t.type:t,h=te.call(t,"namespace")?t.namespace.split("."):[];if(s=c=r=r||he,3!==r.nodeType&&8!==r.nodeType&&!qe.test(p+ie.event.triggered)&&(p.indexOf(".")>=0&&(h=p.split("."),p=h.shift(),h.sort()),a=p.indexOf(":")<0&&"on"+p,t=t[ie.expando]?t:new ie.Event(p,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=h.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:ie.makeArray(n,[t]),u=ie.event.special[p]||{},i||!u.trigger||u.trigger.apply(r,n)!==!1)){if(!i&&!u.noBubble&&!ie.isWindow(r)){for(l=u.delegateType||p,qe.test(l+p)||(s=s.parentNode);s;s=s.parentNode)f.push(s),c=s;c===(r.ownerDocument||he)&&f.push(c.defaultView||c.parentWindow||e)}for(d=0;(s=f[d++])&&!t.isPropagationStopped();)t.type=d>1?l:u.bindType||p,o=(ie._data(s,"events")||{})[t.type]&&ie._data(s,"handle"),o&&o.apply(s,n),o=a&&s[a],o&&o.apply&&ie.acceptData(s)&&(t.result=o.apply(s,n),t.result===!1&&t.preventDefault());if(t.type=p,!i&&!t.isDefaultPrevented()&&(!u._default||u._default.apply(f.pop(),n)===!1)&&ie.acceptData(r)&&a&&r[p]&&!ie.isWindow(r)){c=r[a],c&&(r[a]=null),ie.event.triggered=p;try{r[p]()}catch(m){}ie.event.triggered=void 0,c&&(r[a]=c)}return t.result}},dispatch:function(e){e=ie.event.fix(e);var t,n,r,i,o,a=[],s=J.call(arguments),l=(ie._data(this,"events")||{})[e.type]||[],u=ie.event.special[e.type]||{};if(s[0]=e,e.delegateTarget=this,!u.preDispatch||u.preDispatch.call(this,e)!==!1){for(a=ie.event.handlers.call(this,e,l),t=0;(i=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=i.elem,o=0;(r=i.handlers[o++])&&!e.isImmediatePropagationStopped();)(!e.namespace_re||e.namespace_re.test(r.namespace))&&(e.handleObj=r,e.data=r.data,n=((ie.event.special[r.origType]||{}).handle||r.handler).apply(i.elem,s),void 0!==n&&(e.result=n)===!1&&(e.preventDefault(),e.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,a=[],s=t.delegateCount,l=e.target;if(s&&l.nodeType&&(!e.button||"click"!==e.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(l.disabled!==!0||"click"!==e.type)){for(i=[],o=0;s>o;o++)r=t[o],n=r.selector+" ",void 0===i[n]&&(i[n]=r.needsContext?ie(n,this).index(l)>=0:ie.find(n,this,null,[l]).length),i[n]&&i.push(r);i.length&&a.push({elem:l,handlers:i})}return s<t.length&&a.push({elem:this,handlers:t.slice(s)}),a},fix:function(e){if(e[ie.expando])return e;var t,n,r,i=e.type,o=e,a=this.fixHooks[i];for(a||(this.fixHooks[i]=a=_e.test(i)?this.mouseHooks:He.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,e=new ie.Event(o),t=r.length;t--;)n=r[t],e[n]=o[n];return e.target||(e.target=o.srcElement||he),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,a.filter?a.filter(e,o):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,i,o=t.button,a=t.fromElement;return null==e.pageX&&null!=t.clientX&&(r=e.target.ownerDocument||he,i=r.documentElement,n=r.body,e.pageX=t.clientX+(i&&i.scrollLeft||n&&n.scrollLeft||0)-(i&&i.clientLeft||n&&n.clientLeft||0),e.pageY=t.clientY+(i&&i.scrollTop||n&&n.scrollTop||0)-(i&&i.clientTop||n&&n.clientTop||0)),!e.relatedTarget&&a&&(e.relatedTarget=a===e.target?t.toElement:a),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==h()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){return this===h()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return ie.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(e){return ie.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=ie.extend(new ie.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?ie.event.trigger(i,null,t):ie.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},ie.removeEvent=he.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var r="on"+t;e.detachEvent&&(typeof e[r]===Ne&&(e[r]=null),e.detachEvent(r,n))},ie.Event=function(e,t){return this instanceof ie.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&e.returnValue===!1?f:p):this.type=e,t&&ie.extend(this,t),this.timeStamp=e&&e.timeStamp||ie.now(),void(this[ie.expando]=!0)):new ie.Event(e,t)},ie.Event.prototype={isDefaultPrevented:p,isPropagationStopped:p,isImmediatePropagationStopped:p,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=f,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=f,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=f,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},ie.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){ie.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return(!i||i!==r&&!ie.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),ne.submitBubbles||(ie.event.special.submit={setup:function(){return ie.nodeName(this,"form")?!1:void ie.event.add(this,"click._submit keypress._submit",function(e){var t=e.target,n=ie.nodeName(t,"input")||ie.nodeName(t,"button")?t.form:void 0;n&&!ie._data(n,"submitBubbles")&&(ie.event.add(n,"submit._submit",function(e){e._submit_bubble=!0}),ie._data(n,"submitBubbles",!0))})},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&ie.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return ie.nodeName(this,"form")?!1:void ie.event.remove(this,"._submit")}}),ne.changeBubbles||(ie.event.special.change={setup:function(){return Le.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(ie.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),ie.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),ie.event.simulate("change",this,e,!0)})),!1):void ie.event.add(this,"beforeactivate._change",function(e){var t=e.target;Le.test(t.nodeName)&&!ie._data(t,"changeBubbles")&&(ie.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||ie.event.simulate("change",this.parentNode,e,!0)}),ie._data(t,"changeBubbles",!0))})},handle:function(e){var t=e.target;return this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type?e.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return ie.event.remove(this,"._change"),!Le.test(this.nodeName)}}),ne.focusinBubbles||ie.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){ie.event.simulate(t,e.target,ie.event.fix(e),!0)};ie.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=ie._data(r,t);i||r.addEventListener(e,n,!0),ie._data(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=ie._data(r,t)-1;i?ie._data(r,t,i):(r.removeEventListener(e,n,!0),ie._removeData(r,t))}}}),ie.fn.extend({on:function(e,t,n,r,i){var o,a;if("object"==typeof e){"string"!=typeof t&&(n=n||t,t=void 0);for(o in e)this.on(o,t,n,e[o],i);return this}if(null==n&&null==r?(r=t,n=t=void 0):null==r&&("string"==typeof t?(r=n,n=void 0):(r=n,n=t,t=void 0)),r===!1)r=p;else if(!r)return this;return 1===i&&(a=r,r=function(e){return ie().off(e),a.apply(this,arguments)},r.guid=a.guid||(a.guid=ie.guid++)),this.each(function(){ie.event.add(this,e,r,n,t)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,ie(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return(t===!1||"function"==typeof t)&&(n=t,t=void 0),n===!1&&(n=p),this.each(function(){ie.event.remove(this,e,n,t)})},trigger:function(e,t){return this.each(function(){ie.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?ie.event.trigger(e,t,n,!0):void 0}});var Oe="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",Fe=/ jQuery\d+="(?:null|\d+)"/g,Be=new RegExp("<(?:"+Oe+")[\\s/>]","i"),Re=/^\s+/,Pe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,We=/<([\w:]+)/,$e=/<tbody/i,Ie=/<|&#?\w+;/,ze=/<(?:script|style|link)/i,Xe=/checked\s*(?:[^=]|=\s*.checked.)/i,Ue=/^$|\/(?:java|ecma)script/i,Ve=/^true\/(.*)/,Qe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Je={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:ne.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},Ye=m(he),Ge=Ye.appendChild(he.createElement("div"));Je.optgroup=Je.option,Je.tbody=Je.tfoot=Je.colgroup=Je.caption=Je.thead,Je.th=Je.td,ie.extend({clone:function(e,t,n){var r,i,o,a,s,l=ie.contains(e.ownerDocument,e);if(ne.html5Clone||ie.isXMLDoc(e)||!Be.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(Ge.innerHTML=e.outerHTML,Ge.removeChild(o=Ge.firstChild)),!(ne.noCloneEvent&&ne.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ie.isXMLDoc(e)))for(r=g(o),s=g(e),a=0;null!=(i=s[a]);++a)r[a]&&N(i,r[a]);if(t)if(n)for(s=s||g(e),r=r||g(o),a=0;null!=(i=s[a]);a++)T(i,r[a]);else T(e,o);return r=g(o,"script"),r.length>0&&w(r,!l&&g(e,"script")),r=s=i=null,o},buildFragment:function(e,t,n,r){for(var i,o,a,s,l,u,c,d=e.length,f=m(t),p=[],h=0;d>h;h++)if(o=e[h],o||0===o)if("object"===ie.type(o))ie.merge(p,o.nodeType?[o]:o);else if(Ie.test(o)){for(s=s||f.appendChild(t.createElement("div")),l=(We.exec(o)||["",""])[1].toLowerCase(),c=Je[l]||Je._default,s.innerHTML=c[1]+o.replace(Pe,"<$1></$2>")+c[2],i=c[0];i--;)s=s.lastChild;if(!ne.leadingWhitespace&&Re.test(o)&&p.push(t.createTextNode(Re.exec(o)[0])),!ne.tbody)for(o="table"!==l||$e.test(o)?"<table>"!==c[1]||$e.test(o)?0:s:s.firstChild,i=o&&o.childNodes.length;i--;)ie.nodeName(u=o.childNodes[i],"tbody")&&!u.childNodes.length&&o.removeChild(u);for(ie.merge(p,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=f.lastChild}else p.push(t.createTextNode(o));for(s&&f.removeChild(s),ne.appendChecked||ie.grep(g(p,"input"),v),h=0;o=p[h++];)if((!r||-1===ie.inArray(o,r))&&(a=ie.contains(o.ownerDocument,o),s=g(f.appendChild(o),"script"),a&&w(s),n))for(i=0;o=s[i++];)Ue.test(o.type||"")&&n.push(o);return s=null,f},cleanData:function(e,t){for(var n,r,i,o,a=0,s=ie.expando,l=ie.cache,u=ne.deleteExpando,c=ie.event.special;null!=(n=e[a]);a++)if((t||ie.acceptData(n))&&(i=n[s],o=i&&l[i])){if(o.events)for(r in o.events)c[r]?ie.event.remove(n,r):ie.removeEvent(n,r,o.handle);l[i]&&(delete l[i],u?delete n[s]:typeof n.removeAttribute!==Ne?n.removeAttribute(s):n[s]=null,Q.push(i))}}}),ie.fn.extend({text:function(e){return je(this,function(e){return void 0===e?ie.text(this):this.empty().append((this[0]&&this[0].ownerDocument||he).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=y(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=y(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var n,r=e?ie.filter(e,this):this,i=0;null!=(n=r[i]);i++)t||1!==n.nodeType||ie.cleanData(g(n)),n.parentNode&&(t&&ie.contains(n.ownerDocument,n)&&w(g(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&ie.cleanData(g(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&ie.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return ie.clone(this,e,t)})},html:function(e){return je(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(Fe,""):void 0;if(!("string"!=typeof e||ze.test(e)||!ne.htmlSerialize&&Be.test(e)||!ne.leadingWhitespace&&Re.test(e)||Je[(We.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(Pe,"<$1></$2>");try{for(;r>n;n++)t=this[n]||{},1===t.nodeType&&(ie.cleanData(g(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=arguments[0];return this.domManip(arguments,function(t){e=this.parentNode,ie.cleanData(g(this)),e&&e.replaceChild(t,this)}),e&&(e.length||e.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t){e=Y.apply([],e);var n,r,i,o,a,s,l=0,u=this.length,c=this,d=u-1,f=e[0],p=ie.isFunction(f);if(p||u>1&&"string"==typeof f&&!ne.checkClone&&Xe.test(f))return this.each(function(n){var r=c.eq(n);p&&(e[0]=f.call(this,n,r.html())),r.domManip(e,t)});if(u&&(s=ie.buildFragment(e,this[0].ownerDocument,!1,this),n=s.firstChild,1===s.childNodes.length&&(s=n),n)){for(o=ie.map(g(s,"script"),b),i=o.length;u>l;l++)r=s,l!==d&&(r=ie.clone(r,!0,!0),i&&ie.merge(o,g(r,"script"))),t.call(this[l],r,l);if(i)for(a=o[o.length-1].ownerDocument,ie.map(o,x),l=0;i>l;l++)r=o[l],Ue.test(r.type||"")&&!ie._data(r,"globalEval")&&ie.contains(a,r)&&(r.src?ie._evalUrl&&ie._evalUrl(r.src):ie.globalEval((r.text||r.textContent||r.innerHTML||"").replace(Qe,"")));s=n=null}return this}}),ie.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){ie.fn[e]=function(e){for(var n,r=0,i=[],o=ie(e),a=o.length-1;a>=r;r++)n=r===a?this:this.clone(!0),ie(o[r])[t](n),G.apply(i,n.get());return this.pushStack(i)}});var Ke,Ze={};!function(){var e;ne.shrinkWrapBlocks=function(){if(null!=e)return e;e=!1;var t,n,r;return n=he.getElementsByTagName("body")[0],n&&n.style?(t=he.createElement("div"),r=he.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(t),typeof t.style.zoom!==Ne&&(t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",t.appendChild(he.createElement("div")).style.width="5px",e=3!==t.offsetWidth),n.removeChild(r),e):void 0}}();var et,tt,nt=/^margin/,rt=new RegExp("^("+ke+")(?!px)[a-z%]+$","i"),it=/^(top|right|bottom|left)$/;e.getComputedStyle?(et=function(t){return t.ownerDocument.defaultView.opener?t.ownerDocument.defaultView.getComputedStyle(t,null):e.getComputedStyle(t,null)},tt=function(e,t,n){var r,i,o,a,s=e.style;return n=n||et(e),a=n?n.getPropertyValue(t)||n[t]:void 0,n&&(""!==a||ie.contains(e.ownerDocument,e)||(a=ie.style(e,t)),rt.test(a)&&nt.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0===a?a:a+""}):he.documentElement.currentStyle&&(et=function(e){return e.currentStyle},tt=function(e,t,n){var r,i,o,a,s=e.style;return n=n||et(e),a=n?n[t]:void 0,null==a&&s&&s[t]&&(a=s[t]),rt.test(a)&&!it.test(t)&&(r=s.left,i=e.runtimeStyle,o=i&&i.left,o&&(i.left=e.currentStyle.left),s.left="fontSize"===t?"1em":a,a=s.pixelLeft+"px",s.left=r,o&&(i.left=o)),void 0===a?a:a+""||"auto"}),!function(){function t(){var t,n,r,i;n=he.getElementsByTagName("body")[0],n&&n.style&&(t=he.createElement("div"),r=he.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(t),t.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",o=a=!1,l=!0,e.getComputedStyle&&(o="1%"!==(e.getComputedStyle(t,null)||{}).top,a="4px"===(e.getComputedStyle(t,null)||{width:"4px"}).width,i=t.appendChild(he.createElement("div")),i.style.cssText=t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",t.style.width="1px",l=!parseFloat((e.getComputedStyle(i,null)||{}).marginRight),t.removeChild(i)),t.innerHTML="<table><tr><td></td><td>t</td></tr></table>",i=t.getElementsByTagName("td"),i[0].style.cssText="margin:0;border:0;padding:0;display:none",s=0===i[0].offsetHeight,s&&(i[0].style.display="",i[1].style.display="none",s=0===i[0].offsetHeight),n.removeChild(r))}var n,r,i,o,a,s,l;n=he.createElement("div"),n.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",i=n.getElementsByTagName("a")[0],(r=i&&i.style)&&(r.cssText="float:left;opacity:.5",ne.opacity="0.5"===r.opacity,ne.cssFloat=!!r.cssFloat,n.style.backgroundClip="content-box",n.cloneNode(!0).style.backgroundClip="",ne.clearCloneStyle="content-box"===n.style.backgroundClip,ne.boxSizing=""===r.boxSizing||""===r.MozBoxSizing||""===r.WebkitBoxSizing,ie.extend(ne,{reliableHiddenOffsets:function(){return null==s&&t(),s},boxSizingReliable:function(){return null==a&&t(),a},pixelPosition:function(){return null==o&&t(),o},reliableMarginRight:function(){return null==l&&t(),l}}))}(),ie.swap=function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i};var ot=/alpha\([^)]*\)/i,at=/opacity\s*=\s*([^)]*)/,st=/^(none|table(?!-c[ea]).+)/,lt=new RegExp("^("+ke+")(.*)$","i"),ut=new RegExp("^([+-])=("+ke+")","i"),ct={position:"absolute",visibility:"hidden",display:"block"},dt={letterSpacing:"0",fontWeight:"400"},ft=["Webkit","O","Moz","ms"];ie.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=tt(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":ne.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=ie.camelCase(t),l=e.style;if(t=ie.cssProps[s]||(ie.cssProps[s]=S(l,s)),a=ie.cssHooks[t]||ie.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];if(o=typeof n,"string"===o&&(i=ut.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(ie.css(e,t)),o="number"),null!=n&&n===n&&("number"!==o||ie.cssNumber[s]||(n+="px"),ne.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),!(a&&"set"in a&&void 0===(n=a.set(e,n,r)))))try{l[t]=n}catch(u){}}},css:function(e,t,n,r){var i,o,a,s=ie.camelCase(t);return t=ie.cssProps[s]||(ie.cssProps[s]=S(e.style,s)),a=ie.cssHooks[t]||ie.cssHooks[s],a&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=tt(e,t,r)),"normal"===o&&t in dt&&(o=dt[t]),""===n||n?(i=parseFloat(o),n===!0||ie.isNumeric(i)?i||0:o):o}}),ie.each(["height","width"],function(e,t){ie.cssHooks[t]={get:function(e,n,r){return n?st.test(ie.css(e,"display"))&&0===e.offsetWidth?ie.swap(e,ct,function(){return L(e,t,r)}):L(e,t,r):void 0},set:function(e,n,r){var i=r&&et(e);return j(e,n,r?A(e,t,r,ne.boxSizing&&"border-box"===ie.css(e,"boxSizing",!1,i),i):0)}}}),ne.opacity||(ie.cssHooks.opacity={get:function(e,t){return at.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=ie.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===ie.trim(o.replace(ot,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||r&&!r.filter)||(n.filter=ot.test(o)?o.replace(ot,i):o+" "+i)}}),ie.cssHooks.marginRight=k(ne.reliableMarginRight,function(e,t){return t?ie.swap(e,{display:"inline-block"},tt,[e,"marginRight"]):void 0}),ie.each({margin:"",padding:"",border:"Width"},function(e,t){ie.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];4>r;r++)i[e+Se[r]+t]=o[r]||o[r-2]||o[0];return i}},nt.test(e)||(ie.cssHooks[e+t].set=j)}),ie.fn.extend({css:function(e,t){return je(this,function(e,t,n){var r,i,o={},a=0;if(ie.isArray(t)){for(r=et(e),i=t.length;i>a;a++)o[t[a]]=ie.css(e,t[a],!1,r);return o}return void 0!==n?ie.style(e,t,n):ie.css(e,t)},e,t,arguments.length>1)},show:function(){return D(this,!0)},hide:function(){return D(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){De(this)?ie(this).show():ie(this).hide()})}}),ie.Tween=H,H.prototype={constructor:H,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(ie.cssNumber[n]?"":"px")},cur:function(){var e=H.propHooks[this.prop];return e&&e.get?e.get(this):H.propHooks._default.get(this)},run:function(e){var t,n=H.propHooks[this.prop];return this.options.duration?this.pos=t=ie.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):H.propHooks._default.set(this),this}},H.prototype.init.prototype=H.prototype,H.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=ie.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){ie.fx.step[e.prop]?ie.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[ie.cssProps[e.prop]]||ie.cssHooks[e.prop])?ie.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},H.propHooks.scrollTop=H.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ie.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},ie.fx=H.prototype.init,ie.fx.step={};var pt,ht,mt=/^(?:toggle|show|hide)$/,gt=new RegExp("^(?:([+-])=|)("+ke+")([a-z%]*)$","i"),vt=/queueHooks$/,yt=[O],bt={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=gt.exec(t),o=i&&i[3]||(ie.cssNumber[e]?"":"px"),a=(ie.cssNumber[e]||"px"!==o&&+r)&&gt.exec(ie.css(n.elem,e)),s=1,l=20;if(a&&a[3]!==o){o=o||a[3],i=i||[],a=+r||1;do s=s||".5",a/=s,ie.style(n.elem,e,a+o);while(s!==(s=n.cur()/r)&&1!==s&&--l)}return i&&(a=n.start=+a||+r||0,n.unit=o,n.end=i[1]?a+(i[1]+1)*i[2]:+i[2]),n}]};ie.Animation=ie.extend(B,{tweener:function(e,t){ie.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,r=0,i=e.length;i>r;r++)n=e[r],bt[n]=bt[n]||[],bt[n].unshift(t)},prefilter:function(e,t){t?yt.unshift(e):yt.push(e)}}),ie.speed=function(e,t,n){var r=e&&"object"==typeof e?ie.extend({},e):{complete:n||!n&&t||ie.isFunction(e)&&e,duration:e,easing:n&&t||t&&!ie.isFunction(t)&&t};return r.duration=ie.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in ie.fx.speeds?ie.fx.speeds[r.duration]:ie.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){ie.isFunction(r.old)&&r.old.call(this),r.queue&&ie.dequeue(this,r.queue)},r},ie.fn.extend({fadeTo:function(e,t,n,r){return this.filter(De).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=ie.isEmptyObject(e),o=ie.speed(t,n,r),a=function(){var t=B(this,ie.extend({},e),o);(i||ie._data(this,"finish"))&&t.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=ie.timers,a=ie._data(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&vt.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));(t||!n)&&ie.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=ie._data(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=ie.timers,a=r?r.length:0;for(n.finish=!0,ie.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;a>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),ie.each(["toggle","show","hide"],function(e,t){var n=ie.fn[t];ie.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(q(t,!0),e,r,i)}}),ie.each({slideDown:q("show"),slideUp:q("hide"),slideToggle:q("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){ie.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),ie.timers=[],ie.fx.tick=function(){var e,t=ie.timers,n=0;for(pt=ie.now();n<t.length;n++)e=t[n],e()||t[n]!==e||t.splice(n--,1);t.length||ie.fx.stop(),pt=void 0},ie.fx.timer=function(e){ie.timers.push(e),e()?ie.fx.start():ie.timers.pop()},ie.fx.interval=13,ie.fx.start=function(){ht||(ht=setInterval(ie.fx.tick,ie.fx.interval))},ie.fx.stop=function(){clearInterval(ht),ht=null},ie.fx.speeds={slow:600,fast:200,_default:400},ie.fn.delay=function(e,t){return e=ie.fx?ie.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},function(){var e,t,n,r,i;t=he.createElement("div"),t.setAttribute("className","t"),t.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",r=t.getElementsByTagName("a")[0],n=he.createElement("select"),i=n.appendChild(he.createElement("option")),e=t.getElementsByTagName("input")[0],r.style.cssText="top:1px",ne.getSetAttribute="t"!==t.className,ne.style=/top/.test(r.getAttribute("style")),ne.hrefNormalized="/a"===r.getAttribute("href"),ne.checkOn=!!e.value,ne.optSelected=i.selected,ne.enctype=!!he.createElement("form").enctype,n.disabled=!0,ne.optDisabled=!i.disabled,e=he.createElement("input"),e.setAttribute("value",""),ne.input=""===e.getAttribute("value"),e.value="t",e.setAttribute("type","radio"),ne.radioValue="t"===e.value}();var xt=/\r/g;ie.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=ie.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(i=r?e.call(this,n,ie(this).val()):e,null==i?i="":"number"==typeof i?i+="":ie.isArray(i)&&(i=ie.map(i,function(e){return null==e?"":e+""})),t=ie.valHooks[this.type]||ie.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))})):i?(t=ie.valHooks[i.type]||ie.valHooks[i.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(xt,""):null==n?"":n)):void 0}}),ie.extend({valHooks:{option:{get:function(e){var t=ie.find.attr(e,"value");return null!=t?t:ie.trim(ie.text(e))}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||0>i,a=o?null:[],s=o?i+1:r.length,l=0>i?s:o?i:0;s>l;l++)if(n=r[l],!(!n.selected&&l!==i||(ne.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&ie.nodeName(n.parentNode,"optgroup"))){if(t=ie(n).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var n,r,i=e.options,o=ie.makeArray(t),a=i.length;a--;)if(r=i[a],ie.inArray(ie.valHooks.option.get(r),o)>=0)try{r.selected=n=!0}catch(s){r.scrollHeight}else r.selected=!1;return n||(e.selectedIndex=-1),i}}}}),ie.each(["radio","checkbox"],function(){ie.valHooks[this]={set:function(e,t){return ie.isArray(t)?e.checked=ie.inArray(ie(e).val(),t)>=0:void 0}},ne.checkOn||(ie.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var wt,Tt,Nt=ie.expr.attrHandle,Ct=/^(?:checked|selected)$/i,Et=ne.getSetAttribute,kt=ne.input;ie.fn.extend({attr:function(e,t){return je(this,ie.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){ie.removeAttr(this,e)})}}),ie.extend({attr:function(e,t,n){var r,i,o=e.nodeType;return e&&3!==o&&8!==o&&2!==o?typeof e.getAttribute===Ne?ie.prop(e,t,n):(1===o&&ie.isXMLDoc(e)||(t=t.toLowerCase(),r=ie.attrHooks[t]||(ie.expr.match.bool.test(t)?Tt:wt)),void 0===n?r&&"get"in r&&null!==(i=r.get(e,t))?i:(i=ie.find.attr(e,t),null==i?void 0:i):null!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):void ie.removeAttr(e,t)):void 0},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(be);if(o&&1===e.nodeType)for(;n=o[i++];)r=ie.propFix[n]||n,ie.expr.match.bool.test(n)?kt&&Et||!Ct.test(n)?e[r]=!1:e[ie.camelCase("default-"+n)]=e[r]=!1:ie.attr(e,n,""),e.removeAttribute(Et?n:r)},attrHooks:{type:{set:function(e,t){if(!ne.radioValue&&"radio"===t&&ie.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}}}),Tt={set:function(e,t,n){return t===!1?ie.removeAttr(e,n):kt&&Et||!Ct.test(n)?e.setAttribute(!Et&&ie.propFix[n]||n,n):e[ie.camelCase("default-"+n)]=e[n]=!0,n}},ie.each(ie.expr.match.bool.source.match(/\w+/g),function(e,t){var n=Nt[t]||ie.find.attr;Nt[t]=kt&&Et||!Ct.test(t)?function(e,t,r){var i,o;return r||(o=Nt[t],Nt[t]=i,i=null!=n(e,t,r)?t.toLowerCase():null,Nt[t]=o),i}:function(e,t,n){return n?void 0:e[ie.camelCase("default-"+t)]?t.toLowerCase():null}}),kt&&Et||(ie.attrHooks.value={set:function(e,t,n){return ie.nodeName(e,"input")?void(e.defaultValue=t):wt&&wt.set(e,t,n)}}),Et||(wt={set:function(e,t,n){var r=e.getAttributeNode(n);return r||e.setAttributeNode(r=e.ownerDocument.createAttribute(n)),r.value=t+="","value"===n||t===e.getAttribute(n)?t:void 0}},Nt.id=Nt.name=Nt.coords=function(e,t,n){var r;return n?void 0:(r=e.getAttributeNode(t))&&""!==r.value?r.value:null},ie.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);return n&&n.specified?n.value:void 0},set:wt.set},ie.attrHooks.contenteditable={set:function(e,t,n){wt.set(e,""===t?!1:t,n)}},ie.each(["width","height"],function(e,t){ie.attrHooks[t]={set:function(e,n){return""===n?(e.setAttribute(t,"auto"),n):void 0}}})),ne.style||(ie.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var St=/^(?:input|select|textarea|button|object)$/i,Dt=/^(?:a|area)$/i;ie.fn.extend({prop:function(e,t){return je(this,ie.prop,e,t,arguments.length>1)},removeProp:function(e){return e=ie.propFix[e]||e,this.each(function(){try{this[e]=void 0,delete this[e]}catch(t){}})}}),ie.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(e,t,n){var r,i,o,a=e.nodeType;return e&&3!==a&&8!==a&&2!==a?(o=1!==a||!ie.isXMLDoc(e),o&&(t=ie.propFix[t]||t,i=ie.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]):void 0},propHooks:{tabIndex:{get:function(e){var t=ie.find.attr(e,"tabindex");return t?parseInt(t,10):St.test(e.nodeName)||Dt.test(e.nodeName)&&e.href?0:-1}}}}),ne.hrefNormalized||ie.each(["href","src"],function(e,t){ie.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),ne.optSelected||(ie.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),ie.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ie.propFix[this.toLowerCase()]=this}),ne.enctype||(ie.propFix.enctype="encoding");var jt=/[\t\r\n\f]/g;ie.fn.extend({addClass:function(e){var t,n,r,i,o,a,s=0,l=this.length,u="string"==typeof e&&e;if(ie.isFunction(e))return this.each(function(t){ie(this).addClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(be)||[];l>s;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(jt," "):" ")){for(o=0;i=t[o++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");a=ie.trim(r),n.className!==a&&(n.className=a)}return this},removeClass:function(e){var t,n,r,i,o,a,s=0,l=this.length,u=0===arguments.length||"string"==typeof e&&e;if(ie.isFunction(e))return this.each(function(t){ie(this).removeClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(be)||[];l>s;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(jt," "):"")){for(o=0;i=t[o++];)for(;r.indexOf(" "+i+" ")>=0;)r=r.replace(" "+i+" "," ");a=e?ie.trim(r):"",n.className!==a&&(n.className=a)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):this.each(ie.isFunction(e)?function(n){ie(this).toggleClass(e.call(this,n,this.className,t),t)}:function(){if("string"===n)for(var t,r=0,i=ie(this),o=e.match(be)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else(n===Ne||"boolean"===n)&&(this.className&&ie._data(this,"__className__",this.className),this.className=this.className||e===!1?"":ie._data(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,r=this.length;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(jt," ").indexOf(t)>=0)return!0;return!1}}),ie.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){ie.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),ie.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},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)}});var At=ie.now(),Lt=/\?/,Ht=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;ie.parseJSON=function(t){if(e.JSON&&e.JSON.parse)return e.JSON.parse(t+"");var n,r=null,i=ie.trim(t+"");return i&&!ie.trim(i.replace(Ht,function(e,t,i,o){return n&&t&&(r=0),0===r?e:(n=i||t,r+=!o-!i,"")}))?Function("return "+i)():ie.error("Invalid JSON: "+t)},ie.parseXML=function(t){var n,r;if(!t||"string"!=typeof t)return null;try{e.DOMParser?(r=new DOMParser,n=r.parseFromString(t,"text/xml")):(n=new ActiveXObject("Microsoft.XMLDOM"),n.async="false",n.loadXML(t))}catch(i){n=void 0}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||ie.error("Invalid XML: "+t),n};var _t,qt,Mt=/#.*$/,Ot=/([?&])_=[^&]*/,Ft=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Bt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Rt=/^(?:GET|HEAD)$/,Pt=/^\/\//,Wt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,$t={},It={},zt="*/".concat("*");try{qt=location.href}catch(Xt){qt=he.createElement("a"),qt.href="",qt=qt.href}_t=Wt.exec(qt.toLowerCase())||[],ie.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:qt,type:"GET",isLocal:Bt.test(_t[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":zt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":ie.parseJSON,"text xml":ie.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?W(W(e,ie.ajaxSettings),t):W(ie.ajaxSettings,e)},ajaxPrefilter:R($t),ajaxTransport:R(It),ajax:function(e,t){function n(e,t,n,r){var i,c,v,y,x,T=t;2!==b&&(b=2,s&&clearTimeout(s),u=void 0,a=r||"",w.readyState=e>0?4:0,i=e>=200&&300>e||304===e,n&&(y=$(d,w,n)),y=I(d,y,w,i),i?(d.ifModified&&(x=w.getResponseHeader("Last-Modified"),x&&(ie.lastModified[o]=x),x=w.getResponseHeader("etag"),x&&(ie.etag[o]=x)),204===e||"HEAD"===d.type?T="nocontent":304===e?T="notmodified":(T=y.state,c=y.data,v=y.error,i=!v)):(v=T,(e||!T)&&(T="error",0>e&&(e=0))),w.status=e,w.statusText=(t||T)+"",i?h.resolveWith(f,[c,T,w]):h.rejectWith(f,[w,T,v]),w.statusCode(g),g=void 0,l&&p.trigger(i?"ajaxSuccess":"ajaxError",[w,d,i?c:v]),m.fireWith(f,[w,T]),l&&(p.trigger("ajaxComplete",[w,d]),--ie.active||ie.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,i,o,a,s,l,u,c,d=ie.ajaxSetup({},t),f=d.context||d,p=d.context&&(f.nodeType||f.jquery)?ie(f):ie.event,h=ie.Deferred(),m=ie.Callbacks("once memory"),g=d.statusCode||{},v={},y={},b=0,x="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!c)for(c={};t=Ft.exec(a);)c[t[1].toLowerCase()]=t[2];t=c[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=y[n]=y[n]||e,v[e]=t),this},overrideMimeType:function(e){return b||(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>b)for(t in e)g[t]=[g[t],e[t]];else w.always(e[w.status]);return this},abort:function(e){var t=e||x;return u&&u.abort(t),n(0,t),this}};if(h.promise(w).complete=m.add,w.success=w.done,w.error=w.fail,d.url=((e||d.url||qt)+"").replace(Mt,"").replace(Pt,_t[1]+"//"),d.type=t.method||t.type||d.method||d.type,d.dataTypes=ie.trim(d.dataType||"*").toLowerCase().match(be)||[""],null==d.crossDomain&&(r=Wt.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]===_t[1]&&r[2]===_t[2]&&(r[3]||("http:"===r[1]?"80":"443"))===(_t[3]||("http:"===_t[1]?"80":"443")))),d.data&&d.processData&&"string"!=typeof d.data&&(d.data=ie.param(d.data,d.traditional)),P($t,d,t,w),2===b)return w;l=ie.event&&d.global,l&&0===ie.active++&&ie.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Rt.test(d.type),o=d.url,d.hasContent||(d.data&&(o=d.url+=(Lt.test(o)?"&":"?")+d.data,delete d.data),d.cache===!1&&(d.url=Ot.test(o)?o.replace(Ot,"$1_="+At++):o+(Lt.test(o)?"&":"?")+"_="+At++)),d.ifModified&&(ie.lastModified[o]&&w.setRequestHeader("If-Modified-Since",ie.lastModified[o]),ie.etag[o]&&w.setRequestHeader("If-None-Match",ie.etag[o])),(d.data&&d.hasContent&&d.contentType!==!1||t.contentType)&&w.setRequestHeader("Content-Type",d.contentType),w.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+zt+"; q=0.01":""):d.accepts["*"]);for(i in d.headers)w.setRequestHeader(i,d.headers[i]);if(d.beforeSend&&(d.beforeSend.call(f,w,d)===!1||2===b))return w.abort();x="abort";for(i in{success:1,error:1,complete:1})w[i](d[i]);if(u=P(It,d,t,w)){w.readyState=1,l&&p.trigger("ajaxSend",[w,d]),d.async&&d.timeout>0&&(s=setTimeout(function(){w.abort("timeout")},d.timeout));try{b=1,u.send(v,n)}catch(T){if(!(2>b))throw T;n(-1,T)}}else n(-1,"No Transport");return w},getJSON:function(e,t,n){return ie.get(e,t,n,"json")},getScript:function(e,t){return ie.get(e,void 0,t,"script")}}),ie.each(["get","post"],function(e,t){ie[t]=function(e,n,r,i){return ie.isFunction(n)&&(i=i||r,r=n,n=void 0),ie.ajax({url:e,type:t,dataType:i,data:n,success:r})}}),ie._evalUrl=function(e){return ie.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},ie.fn.extend({wrapAll:function(e){if(ie.isFunction(e))return this.each(function(t){ie(this).wrapAll(e.call(this,t))});if(this[0]){var t=ie(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return this.each(ie.isFunction(e)?function(t){ie(this).wrapInner(e.call(this,t))}:function(){var t=ie(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=ie.isFunction(e);return this.each(function(n){ie(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){ie.nodeName(this,"body")||ie(this).replaceWith(this.childNodes)}).end()}}),ie.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0||!ne.reliableHiddenOffsets()&&"none"===(e.style&&e.style.display||ie.css(e,"display"))},ie.expr.filters.visible=function(e){return!ie.expr.filters.hidden(e)};var Ut=/%20/g,Vt=/\[\]$/,Qt=/\r?\n/g,Jt=/^(?:submit|button|image|reset|file)$/i,Yt=/^(?:input|select|textarea|keygen)/i;ie.param=function(e,t){var n,r=[],i=function(e,t){t=ie.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=ie.ajaxSettings&&ie.ajaxSettings.traditional),ie.isArray(e)||e.jquery&&!ie.isPlainObject(e))ie.each(e,function(){i(this.name,this.value)});else for(n in e)z(n,e[n],t,i);return r.join("&").replace(Ut,"+")},ie.fn.extend({serialize:function(){return ie.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ie.prop(this,"elements");return e?ie.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ie(this).is(":disabled")&&Yt.test(this.nodeName)&&!Jt.test(e)&&(this.checked||!Ae.test(e))}).map(function(e,t){var n=ie(this).val();return null==n?null:ie.isArray(n)?ie.map(n,function(e){return{name:t.name,value:e.replace(Qt,"\r\n")}}):{name:t.name,value:n.replace(Qt,"\r\n")}}).get()}}),ie.ajaxSettings.xhr=void 0!==e.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&X()||U()}:X;var Gt=0,Kt={},Zt=ie.ajaxSettings.xhr();e.attachEvent&&e.attachEvent("onunload",function(){for(var e in Kt)Kt[e](void 0,!0)}),ne.cors=!!Zt&&"withCredentials"in Zt,Zt=ne.ajax=!!Zt,Zt&&ie.ajaxTransport(function(e){if(!e.crossDomain||ne.cors){var t;return{send:function(n,r){var i,o=e.xhr(),a=++Gt;if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(i in e.xhrFields)o[i]=e.xhrFields[i];e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(i in n)void 0!==n[i]&&o.setRequestHeader(i,n[i]+"");o.send(e.hasContent&&e.data||null),t=function(n,i){var s,l,u;if(t&&(i||4===o.readyState))if(delete Kt[a],t=void 0,o.onreadystatechange=ie.noop,i)4!==o.readyState&&o.abort();else{u={},s=o.status,"string"==typeof o.responseText&&(u.text=o.responseText);try{l=o.statusText}catch(c){l=""}s||!e.isLocal||e.crossDomain?1223===s&&(s=204):s=u.text?200:404}u&&r(s,l,u,o.getAllResponseHeaders())},e.async?4===o.readyState?setTimeout(t):o.onreadystatechange=Kt[a]=t:t()},abort:function(){t&&t(void 0,!0)}}}}),ie.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return ie.globalEval(e),e}}}),ie.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),ie.ajaxTransport("script",function(e){if(e.crossDomain){var t,n=he.head||ie("head")[0]||he.documentElement;return{send:function(r,i){t=he.createElement("script"),t.async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,n){(n||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,n||i(200,"success"))},n.insertBefore(t,n.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}});var en=[],tn=/(=)\?(?=&|$)|\?\?/;ie.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=en.pop()||ie.expando+"_"+At++;return this[e]=!0,e}}),ie.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,a,s=t.jsonp!==!1&&(tn.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&tn.test(t.data)&&"data");return s||"jsonp"===t.dataTypes[0]?(i=t.jsonpCallback=ie.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(tn,"$1"+i):t.jsonp!==!1&&(t.url+=(Lt.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||ie.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){a=arguments},r.always(function(){e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,en.push(i)),a&&ie.isFunction(o)&&o(a[0]),a=o=void 0}),"script"):void 0}),ie.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||he;var r=de.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=ie.buildFragment([e],t,i),i&&i.length&&ie(i).remove(),ie.merge([],r.childNodes))};var nn=ie.fn.load;ie.fn.load=function(e,t,n){if("string"!=typeof e&&nn)return nn.apply(this,arguments);var r,i,o,a=this,s=e.indexOf(" ");return s>=0&&(r=ie.trim(e.slice(s,e.length)),e=e.slice(0,s)),ie.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),a.length>0&&ie.ajax({url:e,type:o,dataType:"html",data:t}).done(function(e){i=arguments,a.html(r?ie("<div>").append(ie.parseHTML(e)).find(r):e)}).complete(n&&function(e,t){a.each(n,i||[e.responseText,t,e])}),this},ie.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ie.fn[t]=function(e){return this.on(t,e)}}),ie.expr.filters.animated=function(e){return ie.grep(ie.timers,function(t){return e===t.elem}).length};var rn=e.document.documentElement;ie.offset={setOffset:function(e,t,n){var r,i,o,a,s,l,u,c=ie.css(e,"position"),d=ie(e),f={};"static"===c&&(e.style.position="relative"),s=d.offset(),o=ie.css(e,"top"),l=ie.css(e,"left"),u=("absolute"===c||"fixed"===c)&&ie.inArray("auto",[o,l])>-1,u?(r=d.position(),a=r.top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(l)||0),ie.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):d.css(f)}},ie.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){ie.offset.setOffset(this,e,t)});var t,n,r={top:0,left:0},i=this[0],o=i&&i.ownerDocument;return o?(t=o.documentElement,ie.contains(t,i)?(typeof i.getBoundingClientRect!==Ne&&(r=i.getBoundingClientRect()),n=V(o),{top:r.top+(n.pageYOffset||t.scrollTop)-(t.clientTop||0),left:r.left+(n.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):r):void 0},position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===ie.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),ie.nodeName(e[0],"html")||(n=e.offset()),n.top+=ie.css(e[0],"borderTopWidth",!0),n.left+=ie.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-ie.css(r,"marginTop",!0),left:t.left-n.left-ie.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||rn;e&&!ie.nodeName(e,"html")&&"static"===ie.css(e,"position");)e=e.offsetParent;return e||rn})}}),ie.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n=/Y/.test(t);ie.fn[e]=function(r){return je(this,function(e,r,i){var o=V(e);return void 0===i?o?t in o?o[t]:o.document.documentElement[r]:e[r]:void(o?o.scrollTo(n?ie(o).scrollLeft():i,n?i:ie(o).scrollTop()):e[r]=i)},e,r,arguments.length,null)}}),ie.each(["top","left"],function(e,t){ie.cssHooks[t]=k(ne.pixelPosition,function(e,n){return n?(n=tt(e,t),rt.test(n)?ie(e).position()[t]+"px":n):void 0})}),ie.each({Height:"height",Width:"width"},function(e,t){ie.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){ie.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(r===!0||i===!0?"margin":"border");return je(this,function(t,n,r){var i;return ie.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===r?ie.css(t,n,a):ie.style(t,n,r,a)},t,o?r:void 0,o,null)}})}),ie.fn.size=function(){return this.length},ie.fn.andSelf=ie.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return ie});var on=e.jQuery,an=e.$;return ie.noConflict=function(t){return e.$===ie&&(e.$=an),t&&e.jQuery===ie&&(e.jQuery=on),ie},typeof t===Ne&&(e.jQuery=e.$=ie),ie}),jQuery.noConflict())}(),N2Deferred.prototype._doCallbacks=function(){if(0!==this.state)for(;this.callbacks.length>0;)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 for(var r=0,i=function(){r++,r===t&&n.resolve()},o=0;t>o;o++)e[o]instanceof N2Deferred?e[o].then(i):i();return n},function(e){"use strict";this.N2Classes={};var t={};this.N2D=function(n,r,i){var o=[];if(n&&t[n]===e&&(t[n]=new N2Deferred),2===arguments.length?(i=arguments[1],r=[]):"string"==typeof r&&(r=[r]),r=r||[],"$"!==n&&r.push("$"),r.length)for(var a=0;a<r.length;a++)t[r[a]]===e&&(t[r[a]]=new N2Deferred),o.push(t[r[a]]);N2Deferred.n2When(o).then(function(){if("function"==typeof i){var e=i.apply(N2Classes,[N2Classes.$]);e instanceof N2Deferred?e.then(function(e){N2Classes[n]=e,t[n].resolve()}):(N2Classes[n]=e,t[n].resolve())}else N2Classes[n]=!0,t[n].resolve()})};for(var n=0;n<this.N2_.d.length;n++)this.N2D.apply(this,this.N2_.d[n]);this.N2R=function(n,r){var i=[];if(1===arguments.length?(r=arguments[0],n=[]):"string"==typeof n&&(n=[n]),n=n||[],n.push("$"),n!==e&&n)for(var o=0;o<n.length;o++)t[n[o]]===e&&(t[n[o]]=new N2Deferred),i.push(t[n[o]]);N2Deferred.n2When(i).then(function(){for(var e=[N2Classes.$],t=0;t<n.length-1;t++)e.push(N2Classes[n[t]]);r.apply(N2Classes,e)})};for(var r=0;r<this.N2_.r.length;r++)this.N2R.apply(this,this.N2_.r[r])}.call(window),function(){var e=new Date,t=function(){if(window.nextend&&window.jQuery){var n=window.jQuery;N2D("$",function(){return window.n2=n,n}),N2R("nextend-frontend",function(){n(document).ready(function(){N2D("documentReady")}),"complete"===document.readyState?N2D("windowLoad"):n(window).on("load",function(){N2D("windowLoad")})})}else if(setTimeout(t,20),(new Date).getTime()-e.getTime()>1e3){var r=document.createElement("script");r.src="//ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js",document.getElementsByTagName("head")[0].appendChild(r)}};t()}(),N2R("$",function(e){var t={};e.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,n){t[n]=function(t){return Math.pow(t,e+2)}}),e.extend(t,{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)}}),e.each(t,function(t,n){e.easing["easeIn"+t]=n,e.easing["easeOut"+t]=function(e){return 1-n(1-e)},e.easing["easeInOut"+t]=function(e){return.5>e?n(2*e)/2:1-n(-2*e+2)/2}})}),N2D("n2-j");(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 i,r,s=this;return s.document=window.document,s.navigator=window.navigator,s.console=window.console,s.SVGElement=window.SVGElement,s.chrome=window.chrome,s._gsQueue=[],s._gsQueue.push(function(){"use strict";s._gsDefine("easing.Back",["easing.Ease"],function(t){var e,i,r,n=s.GreenSockGlobals||s,a=n.com.greensock,o=2*Math.PI,l=Math.PI/2,h=a._class,u=function(e,i){var r=h("easing."+e,function(){},!0),s=r.prototype=new t;return s.constructor=r,s.getRatio=i,r},p=t.register||function(){},f=function(t,e,i,r,s){var n=h("easing."+t,{easeOut:new e,easeIn:new i,easeInOut:new r},!0);return p(n,t),n},c=function(t,e,i){this.t=t,this.v=e,i&&(this.next=i,i.prev=this,this.c=i.v-e,this.gap=i.t-t)},_=function(e,i){var r=h("easing."+e,function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1},!0),s=r.prototype=new t;return s.constructor=r,s.getRatio=i,s.config=function(t){return new r(t)},r},d=f("Back",_("BackOut",function(t){return(t-=1)*t*((this._p1+1)*t+this._p1)+1}),_("BackIn",function(t){return t*t*((this._p1+1)*t-this._p1)}),_("BackInOut",function(t){return(t*=2)<1?.5*t*t*((this._p2+1)*t-this._p2):.5*((t-=2)*t*((this._p2+1)*t+this._p2)+2)})),m=h("easing.SlowMo",function(t,e,i){e=e||0===e?e:.7,null==t?t=.7:t>1&&(t=1),this._p=1!==t?e:0,this._p1=(1-t)/2,this._p2=t,this._p3=this._p1+this._p2,this._calcEnd=i===!0},!0),g=m.prototype=new t;return g.constructor=m,g.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},m.ease=new m(.7,.7),g.config=m.config=function(t,e,i){return new m(t,e,i)},e=h("easing.SteppedEase",function(t,e){t=t||1,this._p1=1/t,this._p2=t+(e?0:1),this._p3=e?1:0},!0),g=e.prototype=new t,g.constructor=e,g.getRatio=function(t){return 0>t?t=0:t>=1&&(t=.999999999),((this._p2*t|0)+this._p3)*this._p1},g.config=e.config=function(t,i){return new e(t,i)},i=h("easing.RoughEase",function(e){e=e||{};for(var i,r,s,n,a,o,l=e.taper||"none",h=[],u=0,p=0|(e.points||20),f=p,_=e.randomize!==!1,d=e.clamp===!0,m=e.template instanceof t?e.template:null,g="number"==typeof e.strength?.4*e.strength:.4;--f>-1;)i=_?Math.random():1/p*f,r=m?m.getRatio(i):i,"none"===l?s=g:"out"===l?(n=1-i,s=n*n*g):"in"===l?s=i*i*g:.5>i?(n=2*i,s=n*n*.5*g):(n=2*(1-i),s=n*n*.5*g),_?r+=Math.random()*s-.5*s:f%2?r+=.5*s:r-=.5*s,d&&(r>1?r=1:0>r&&(r=0)),h[u++]={x:i,y:r};for(h.sort(function(t,e){return t.x-e.x}),o=new c(1,1,null),f=p;--f>-1;)a=h[f],o=new c(a.x,a.y,o);this._prev=new c(0,0,0!==o.t?o:o.next)},!0),g=i.prototype=new t,g.constructor=i,g.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,e.v+(t-e.t)/e.gap*e.c},g.config=function(t){return new i(t)},i.ease=new i,f("Bounce",u("BounceOut",function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}),u("BounceIn",function(t){return(t=1-t)<1/2.75?1-7.5625*t*t:2/2.75>t?1-(7.5625*(t-=1.5/2.75)*t+.75):2.5/2.75>t?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)}),u("BounceInOut",function(t){var e=.5>t;return t=e?1-2*t:2*t-1,t=1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?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})),f("Circ",u("CircOut",function(t){return Math.sqrt(1-(t-=1)*t)}),u("CircIn",function(t){return-(Math.sqrt(1-t*t)-1)}),u("CircInOut",function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)})),r=function(e,i,r){var s=h("easing."+e,function(t,e){this._p1=t>=1?t:1,this._p2=(e||r)/(1>t?t:1),this._p3=this._p2/o*(Math.asin(1/this._p1)||0),this._p2=o/this._p2},!0),n=s.prototype=new t;return n.constructor=s,n.getRatio=i,n.config=function(t,e){return new s(t,e)},s},f("Elastic",r("ElasticOut",function(t){return this._p1*Math.pow(2,-10*t)*Math.sin((t-this._p3)*this._p2)+1},.3),r("ElasticIn",function(t){return-(this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2))},.3),r("ElasticInOut",function(t){return(t*=2)<1?-.5*(this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2)):this._p1*Math.pow(2,-10*(t-=1))*Math.sin((t-this._p3)*this._p2)*.5+1},.45)),f("Expo",u("ExpoOut",function(t){return 1-Math.pow(2,-10*t)}),u("ExpoIn",function(t){return Math.pow(2,10*(t-1))-.001}),u("ExpoInOut",function(t){return(t*=2)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))})),f("Sine",u("SineOut",function(t){return Math.sin(t*l)}),u("SineIn",function(t){return-Math.cos(t*l)+1}),u("SineInOut",function(t){return-.5*(Math.cos(Math.PI*t)-1)})),h("easing.EaseLookup",{find:function(e){return t.map[e]}},!0),p(n.SlowMo,"SlowMo","ease,"),p(i,"RoughEase","ease,"),p(e,"SteppedEase","ease,"),d},!0)}),s._gsDefine&&s._gsQueue.pop()(),s._gsQueue.push(function(){"use strict";s._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(t,e){var i,r,n,a,o=function(){t.call(this,"css"),this._overwriteProps.length=0,this.setRatio=o.prototype.setRatio},l=s._gsDefine.globals,h={},u=o.prototype=new t("css");u.constructor=o,o.version="1.20.3",o.API=2,o.defaultTransformPerspective=0,o.defaultSkewType="compensated",o.defaultSmoothOrigin=!0,u="px",o.suffixMap={top:u,right:u,bottom:u,left:u,width:u,height:u,fontSize:u,padding:u,margin:u,perspective:u,lineHeight:""};var p,f,c,_,d,m,g,v,y=/(?:\-|\.|\b)(\d|\.|e\-)+/g,x=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,T=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,w=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,b=/(?:\d|\-|\+|=|#|\.)*/g,P=/opacity *= *([^)]*)/i,O=/opacity:([^;]*)/i,S=/alpha\(opacity *=.+?\)/i,A=/^(rgb|hsl)/,C=/([A-Z])/g,k=/-([a-z])/gi,R=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,M=function(t,e){return e.toUpperCase()},N=/(?:Left|Right|Width)/i,D=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,F=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,L=/,(?=[^\)]*(?:\(|$))/gi,X=/[\s,\(]/i,I=Math.PI/180,z=180/Math.PI,E={},B={style:{}},Y=s.document||{createElement:function(){return B}},j=function(t,e){return Y.createElementNS?Y.createElementNS(e||"http://www.w3.org/1999/xhtml",t):Y.createElement(t)},V=j("div"),W=j("img"),G=o._internals={_specialProps:h},U=(s.navigator||{}).userAgent||"",q=function(){var t=U.indexOf("Android"),e=j("a");return c=-1!==U.indexOf("Safari")&&-1===U.indexOf("Chrome")&&(-1===t||parseFloat(U.substr(t+8,2))>3),d=c&&parseFloat(U.substr(U.indexOf("Version/")+8,2))<6,_=-1!==U.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(U)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(U))&&(m=parseFloat(RegExp.$1)),e?(e.style.cssText="top:1px;opacity:.55;",/^0.55/.test(e.style.opacity)):!1}(),H=function(t){return P.test("string"==typeof t?t:(t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100:1},Z=function(t){s.console&&console.log(t)},$="",Q="",K=function(t,e){e=e||V;var i,r,s=e.style;if(void 0!==s[t])return t;for(t=t.charAt(0).toUpperCase()+t.substr(1),i=["O","Moz","ms","Ms","Webkit"],r=5;--r>-1&&void 0===s[i[r]+t];);return r>=0?(Q=3===r?"ms":i[r],$="-"+Q.toLowerCase()+"-",Q+t):null},J=Y.defaultView?Y.defaultView.getComputedStyle:function(){},tt=o.getStyle=function(t,e,i,r,s){var n;return q||"opacity"!==e?(!r&&t.style[e]?n=t.style[e]:(i=i||J(t))?n=i[e]||i.getPropertyValue(e)||i.getPropertyValue(e.replace(C,"-$1").toLowerCase()):t.currentStyle&&(n=t.currentStyle[e]),null==s||n&&"none"!==n&&"auto"!==n&&"auto auto"!==n?n:s):H(t)},et=G.convertToPixels=function(t,i,r,s,n){if("px"===s||!s&&"lineHeight"!==i)return r;if("auto"===s||!r)return 0;var a,l,h,u=N.test(i),p=t,f=V.style,c=0>r,_=1===r;if(c&&(r=-r),_&&(r*=100),"lineHeight"!==i||s)if("%"===s&&-1!==i.indexOf("border"))a=r/100*(u?t.clientWidth:t.clientHeight);else{if(f.cssText="border:0 solid red;position:"+tt(t,"position")+";line-height:0;","%"!==s&&p.appendChild&&"v"!==s.charAt(0)&&"rem"!==s)f[u?"borderLeftWidth":"borderTopWidth"]=r+s;else{if(p=t.parentNode||Y.body,-1!==tt(p,"display").indexOf("flex")&&(f.position="absolute"),l=p._gsCache,h=e.ticker.frame,l&&u&&l.time===h)return l.width*r/100;f[u?"width":"height"]=r+s}p.appendChild(V),a=parseFloat(V[u?"offsetWidth":"offsetHeight"]),p.removeChild(V),u&&"%"===s&&o.cacheWidths!==!1&&(l=p._gsCache=p._gsCache||{},l.time=h,l.width=a/r*100),0!==a||n||(a=et(t,i,r,s,!0))}else l=J(t).lineHeight,t.style.lineHeight=r,a=parseFloat(J(t).lineHeight),t.style.lineHeight=l;return _&&(a/=100),c?-a:a},it=G.calculateOffset=function(t,e,i){if("absolute"!==tt(t,"position",i))return 0;var r="left"===e?"Left":"Top",s=tt(t,"margin"+r,i);return t["offset"+r]-(et(t,e,parseFloat(s),s.replace(b,""))||0)},rt=function(t,e){var i,r,s,n={};if(e=e||J(t,null))if(i=e.length)for(;--i>-1;)s=e[i],(-1===s.indexOf("-transform")||Rt===s)&&(n[s.replace(k,M)]=e.getPropertyValue(s));else for(i in e)(-1===i.indexOf("Transform")||kt===i)&&(n[i]=e[i]);else if(e=t.currentStyle||t.style)for(i in e)"string"==typeof i&&void 0===n[i]&&(n[i.replace(k,M)]=e[i]);return q||(n.opacity=H(t)),r=Wt(t,e,!1),n.rotation=r.rotation,n.skewX=r.skewX,n.scaleX=r.scaleX,n.scaleY=r.scaleY,n.x=r.x,n.y=r.y,Nt&&(n.z=r.z,n.rotationX=r.rotationX,n.rotationY=r.rotationY,n.scaleZ=r.scaleZ),n.filters&&delete n.filters,n},st=function(t,e,i,r,s){var n,a,o,l={},h=t.style;for(a in i)"cssText"!==a&&"length"!==a&&isNaN(a)&&(e[a]!==(n=i[a])||s&&s[a])&&-1===a.indexOf("Origin")&&("number"==typeof n||"string"==typeof n)&&(l[a]="auto"!==n||"left"!==a&&"top"!==a?""!==n&&"auto"!==n&&"none"!==n||"string"!=typeof e[a]||""===e[a].replace(w,"")?n:0:it(t,a),void 0!==h[a]&&(o=new yt(h,a,h[a],o)));if(r)for(a in r)"className"!==a&&(l[a]=r[a]);return{difs:l,firstMPT:o}},nt={width:["Left","Right"],height:["Top","Bottom"]},at=["marginLeft","marginRight","marginTop","marginBottom"],ot=function(t,e,i){if("svg"===(t.nodeName+"").toLowerCase())return(i||J(t))[e]||0;if(t.getCTM&&Yt(t))return t.getBBox()[e]||0;var r=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),s=nt[e],n=s.length;for(i=i||J(t,null);--n>-1;)r-=parseFloat(tt(t,"padding"+s[n],i,!0))||0,r-=parseFloat(tt(t,"border"+s[n]+"Width",i,!0))||0;return r},lt=function(t,e){if("contain"===t||"auto"===t||"auto auto"===t)return t+" ";(null==t||""===t)&&(t="0 0");var i,r=t.split(" "),s=-1!==t.indexOf("left")?"0%":-1!==t.indexOf("right")?"100%":r[0],n=-1!==t.indexOf("top")?"0%":-1!==t.indexOf("bottom")?"100%":r[1];if(r.length>3&&!e){for(r=t.split(", ").join(",").split(","),t=[],i=0;i<r.length;i++)t.push(lt(r[i]));return t.join(",")}return null==n?n="center"===s?"50%":"0":"center"===n&&(n="50%"),("center"===s||isNaN(parseFloat(s))&&-1===(s+"").indexOf("="))&&(s="50%"),t=s+" "+n+(r.length>2?" "+r[2]:""),e&&(e.oxp=-1!==s.indexOf("%"),e.oyp=-1!==n.indexOf("%"),e.oxr="="===s.charAt(1),e.oyr="="===n.charAt(1),e.ox=parseFloat(s.replace(w,"")),e.oy=parseFloat(n.replace(w,"")),e.v=t),e||t},ht=function(t,e){return"function"==typeof t&&(t=t(v,g)),"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2)):parseFloat(t)-parseFloat(e)||0},ut=function(t,e){return"function"==typeof t&&(t=t(v,g)),null==t?e:"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2))+e:parseFloat(t)||0},pt=function(t,e,i,r){var s,n,a,o,l,h=1e-6;return"function"==typeof t&&(t=t(v,g)),null==t?o=e:"number"==typeof t?o=t:(s=360,n=t.split("_"),l="="===t.charAt(1),a=(l?parseInt(t.charAt(0)+"1",10)*parseFloat(n[0].substr(2)):parseFloat(n[0]))*(-1===t.indexOf("rad")?1:z)-(l?0:e),n.length&&(r&&(r[i]=e+a),-1!==t.indexOf("short")&&(a%=s,a!==a%(s/2)&&(a=0>a?a+s:a-s)),-1!==t.indexOf("_cw")&&0>a?a=(a+9999999999*s)%s-(a/s|0)*s:-1!==t.indexOf("ccw")&&a>0&&(a=(a-9999999999*s)%s-(a/s|0)*s)),o=e+a),h>o&&o>-h&&(o=0),o},ft={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]},ct=function(t,e,i){return t=0>t?t+1:t>1?t-1:t,255*(1>6*t?e+(i-e)*t*6:.5>t?i:2>3*t?e+(i-e)*(2/3-t)*6:e)+.5|0},_t=o.parseColor=function(t,e){var i,r,s,n,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)),ft[t])i=ft[t];else if("#"===t.charAt(0))4===t.length&&(r=t.charAt(1),s=t.charAt(2),n=t.charAt(3),t="#"+r+r+s+s+n+n),t=parseInt(t.substr(1),16),i=[t>>16,t>>8&255,255&t];else if("hsl"===t.substr(0,3))if(i=f=t.match(y),e){if(-1!==t.indexOf("="))return t.match(x)}else a=Number(i[0])%360/360,o=Number(i[1])/100,l=Number(i[2])/100,s=.5>=l?l*(o+1):l+o-l*o,r=2*l-s,i.length>3&&(i[3]=Number(i[3])),i[0]=ct(a+1/3,r,s),i[1]=ct(a,r,s),i[2]=ct(a-1/3,r,s);else i=t.match(y)||ft.transparent;i[0]=Number(i[0]),i[1]=Number(i[1]),i[2]=Number(i[2]),i.length>3&&(i[3]=Number(i[3]))}else i=ft.black;return e&&!f&&(r=i[0]/255,s=i[1]/255,n=i[2]/255,h=Math.max(r,s,n),u=Math.min(r,s,n),l=(h+u)/2,h===u?a=o=0:(p=h-u,o=l>.5?p/(2-h-u):p/(h+u),a=h===r?(s-n)/p+(n>s?6:0):h===s?(n-r)/p+2:(r-s)/p+4,a*=60),i[0]=a+.5|0,i[1]=100*o+.5|0,i[2]=100*l+.5|0),i},dt=function(t,e){var i,r,s,n=t.match(mt)||[],a=0,o="";if(!n.length)return t;for(i=0;i<n.length;i++)r=n[i],s=t.substr(a,t.indexOf(r,a)-a),a+=s.length+r.length,r=_t(r,e),3===r.length&&r.push(1),o+=s+(e?"hsla("+r[0]+","+r[1]+"%,"+r[2]+"%,"+r[3]:"rgba("+r.join(","))+")";return o+t.substr(a)},mt="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(u in ft)mt+="|"+u+"\\b";mt=new RegExp(mt+")","gi"),o.colorStringFilter=function(t){var e,i=t[0]+" "+t[1];mt.test(i)&&(e=-1!==i.indexOf("hsl(")||-1!==i.indexOf("hsla("),t[0]=dt(t[0],e),t[1]=dt(t[1],e)),mt.lastIndex=0},e.defaultStringFilter||(e.defaultStringFilter=o.colorStringFilter);var gt=function(t,e,i,r){if(null==t)return function(t){return t};var s,n=e?(t.match(mt)||[""])[0]:"",a=t.split(n).join("").match(T)||[],o=t.substr(0,t.indexOf(a[0])),l=")"===t.charAt(t.length-1)?")":"",h=-1!==t.indexOf(" ")?" ":",",u=a.length,p=u>0?a[0].replace(y,""):"";return u?s=e?function(t){var e,f,c,_;if("number"==typeof t)t+=p;else if(r&&L.test(t)){for(_=t.replace(L,"|").split("|"),c=0;c<_.length;c++)_[c]=s(_[c]);return _.join(",")}if(e=(t.match(mt)||[n])[0],f=t.split(e).join("").match(T)||[],c=f.length,u>c--)for(;++c<u;)f[c]=i?f[(c-1)/2|0]:a[c];return o+f.join(h)+h+e+l+(-1!==t.indexOf("inset")?" inset":"")}:function(t){var e,n,f;if("number"==typeof t)t+=p;else if(r&&L.test(t)){for(n=t.replace(L,"|").split("|"),f=0;f<n.length;f++)n[f]=s(n[f]);return n.join(",")}if(e=t.match(T)||[],f=e.length,u>f--)for(;++f<u;)e[f]=i?e[(f-1)/2|0]:a[f];return o+e.join(h)+l}:function(t){return t}},vt=function(t){return t=t.split(","),function(e,i,r,s,n,a,o){var l,h=(i+"").split(" ");for(o={},l=0;4>l;l++)o[t[l]]=h[l]=h[l]||h[(l-1)/2>>0];return s.parse(e,o,n,a)}},yt=(G._setPluginRatio=function(t){this.plugin.setRatio(t);for(var e,i,r,s,n,a=this.data,o=a.proxy,l=a.firstMPT,h=1e-6;l;)e=o[l.v],l.r?e=Math.round(e):h>e&&e>-h&&(e=0),l.t[l.p]=e,l=l._next;if(a.autoRotate&&(a.autoRotate.rotation=a.mod?a.mod(o.rotation,this.t):o.rotation),1===t||0===t)for(l=a.firstMPT,n=1===t?"e":"b";l;){if(i=l.t,i.type){if(1===i.type){for(s=i.xs0+i.s+i.xs1,r=1;r<i.l;r++)s+=i["xn"+r]+i["xs"+(r+1)];i[n]=s}}else i[n]=i.s+i.xs0;l=l._next}},function(t,e,i,r,s){this.t=t,this.p=e,this.v=i,this.r=s,r&&(r._prev=this,this._next=r)}),xt=(G._parseToProxy=function(t,e,i,r,s,n){var a,o,l,h,u,p=r,f={},c={},_=i._transform,d=E;for(i._transform=null,E=e,r=u=i.parse(t,e,r,s),E=d,n&&(i._transform=_,p&&(p._prev=null,p._prev&&(p._prev._next=null)));r&&r!==p;){if(r.type<=1&&(o=r.p,c[o]=r.s+r.c,f[o]=r.s,n||(h=new yt(r,"s",o,h,r.r),r.c=0),1===r.type))for(a=r.l;--a>0;)l="xn"+a,o=r.p+"_"+l,c[o]=r.data[l],f[o]=r[l],n||(h=new yt(r,l,o,h,r.rxp[l]));r=r._next}return{proxy:f,end:c,firstMPT:h,pt:u}},G.CSSPropTween=function(t,e,r,s,n,o,l,h,u,p,f){this.t=t,this.p=e,this.s=r,this.c=s,this.n=l||e,t instanceof xt||a.push(this.n),this.r=h,this.type=o||0,u&&(this.pr=u,i=!0),this.b=void 0===p?r:p,this.e=void 0===f?r+s:f,n&&(this._next=n,n._prev=this)}),Tt=function(t,e,i,r,s,n){var a=new xt(t,e,i,r-i,s,-1,n);return a.b=i,a.e=a.xs0=r,a},wt=o.parseComplex=function(t,e,i,r,s,n,a,l,h,u){i=i||n||"","function"==typeof r&&(r=r(v,g)),a=new xt(t,e,0,0,a,u?2:1,null,!1,l,i,r),r+="",s&&mt.test(r+i)&&(r=[i,r],o.colorStringFilter(r),i=r[0],r=r[1]);var f,c,_,d,m,T,w,b,P,O,S,A,C,k=i.split(", ").join(",").split(" "),R=r.split(", ").join(",").split(" "),M=k.length,N=p!==!1;for((-1!==r.indexOf(",")||-1!==i.indexOf(","))&&(-1!==(r+i).indexOf("rgb")||-1!==(r+i).indexOf("hsl")?(k=k.join(" ").replace(L,", ").split(" "),R=R.join(" ").replace(L,", ").split(" ")):(k=k.join(" ").split(",").join(", ").split(" "),R=R.join(" ").split(",").join(", ").split(" ")),M=k.length),M!==R.length&&(k=(n||"").split(" "),M=k.length),a.plugin=h,a.setRatio=u,mt.lastIndex=0,f=0;M>f;f++)if(d=k[f],m=R[f],b=parseFloat(d),b||0===b)a.appendXtra("",b,ht(m,b),m.replace(x,""),N&&-1!==m.indexOf("px"),!0);else if(s&&mt.test(d))A=m.indexOf(")")+1,A=")"+(A?m.substr(A):""),C=-1!==m.indexOf("hsl")&&q,O=m,d=_t(d,C),m=_t(m,C),P=d.length+m.length>6,P&&!q&&0===m[3]?(a["xs"+a.l]+=a.l?" transparent":"transparent",a.e=a.e.split(R[f]).join("transparent")):(q||(P=!1),C?a.appendXtra(O.substr(0,O.indexOf("hsl"))+(P?"hsla(":"hsl("),d[0],ht(m[0],d[0]),",",!1,!0).appendXtra("",d[1],ht(m[1],d[1]),"%,",!1).appendXtra("",d[2],ht(m[2],d[2]),P?"%,":"%"+A,!1):a.appendXtra(O.substr(0,O.indexOf("rgb"))+(P?"rgba(":"rgb("),d[0],m[0]-d[0],",",!0,!0).appendXtra("",d[1],m[1]-d[1],",",!0).appendXtra("",d[2],m[2]-d[2],P?",":A,!0),P&&(d=d.length<4?1:d[3],a.appendXtra("",d,(m.length<4?1:m[3])-d,A,!1))),mt.lastIndex=0;else if(T=d.match(y)){if(w=m.match(x),!w||w.length!==T.length)return a;for(_=0,c=0;c<T.length;c++)S=T[c],O=d.indexOf(S,_),a.appendXtra(d.substr(_,O-_),Number(S),ht(w[c],S),"",N&&"px"===d.substr(O+S.length,2),0===c),_=O+S.length;a["xs"+a.l]+=d.substr(_)}else a["xs"+a.l]+=a.l||a["xs"+a.l]?" "+m:m;if(-1!==r.indexOf("=")&&a.data){for(A=a.xs0+a.data.s,f=1;f<a.l;f++)A+=a["xs"+f]+a.data["xn"+f];a.e=A+a["xs"+f]}return a.l||(a.type=-1,a.xs0=a.e),a.xfirst||a},bt=9;for(u=xt.prototype,u.l=u.pr=0;--bt>0;)u["xn"+bt]=0,u["xs"+bt]="";u.xs0="",u._next=u._prev=u.xfirst=u.data=u.plugin=u.setRatio=u.rxp=null,u.appendXtra=function(t,e,i,r,s,n){var a=this,o=a.l;return a["xs"+o]+=n&&(o||a["xs"+o])?" "+t:t||"",i||0===o||a.plugin?(a.l++,a.type=a.setRatio?2:1,a["xs"+a.l]=r||"",o>0?(a.data["xn"+o]=e+i,a.rxp["xn"+o]=s,a["xn"+o]=e,a.plugin||(a.xfirst=new xt(a,"xn"+o,e,i,a.xfirst||a,0,a.n,s,a.pr),a.xfirst.xs0=0),a):(a.data={s:e+i},a.rxp={},a.s=e,a.c=i,a.r=s,a)):(a["xs"+o]+=e+(r||""),a)};var Pt=function(t,e){e=e||{},this.p=e.prefix?K(t)||t:t,h[t]=h[this.p]=this,this.format=e.formatter||gt(e.defaultValue,e.color,e.collapsible,e.multi),e.parser&&(this.parse=e.parser),this.clrs=e.color,this.multi=e.multi,this.keyword=e.keyword,this.dflt=e.defaultValue,this.pr=e.priority||0},Ot=G._registerComplexSpecialProp=function(t,e,i){"object"!=typeof e&&(e={parser:i});var r,s,n=t.split(","),a=e.defaultValue;for(i=i||[a],r=0;r<n.length;r++)e.prefix=0===r&&e.prefix,e.defaultValue=i[r]||a,s=new Pt(n[r],e)},St=G._registerPluginProp=function(t){if(!h[t]){var e=t.charAt(0).toUpperCase()+t.substr(1)+"Plugin";Ot(t,{parser:function(t,i,r,s,n,a,o){var u=l.com.greensock.plugins[e];return u?(u._cssRegister(),h[r].parse(t,i,r,s,n,a,o)):(Z("Error: "+e+" js file not loaded."),n)}})}};u=Pt.prototype,u.parseComplex=function(t,e,i,r,s,n){var a,o,l,h,u,p,f=this.keyword;if(this.multi&&(L.test(i)||L.test(e)?(o=e.replace(L,"|").split("|"),l=i.replace(L,"|").split("|")):f&&(o=[e],l=[i])),l){for(h=l.length>o.length?l.length:o.length,a=0;h>a;a++)e=o[a]=o[a]||this.dflt,i=l[a]=l[a]||this.dflt,f&&(u=e.indexOf(f),p=i.indexOf(f),u!==p&&(-1===p?o[a]=o[a].split(f).join(""):-1===u&&(o[a]+=" "+f)));e=o.join(", "),i=l.join(", ")}return wt(t,this.p,e,i,this.clrs,this.dflt,r,this.pr,s,n)},u.parse=function(t,e,i,r,s,a,o){return this.parseComplex(t.style,this.format(tt(t,this.p,n,!1,this.dflt)),this.format(e),s,a)},o.registerSpecialProp=function(t,e,i){Ot(t,{parser:function(t,r,s,n,a,o,l){var h=new xt(t,s,0,0,a,2,s,!1,i);return h.plugin=o,h.setRatio=e(t,r,n._tween,s),h},priority:i})},o.useSVGTransformAttr=!0;var At,Ct="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),kt=K("transform"),Rt=$+"transform",Mt=K("transformOrigin"),Nt=null!==K("perspective"),Dt=G.Transform=function(){this.perspective=parseFloat(o.defaultTransformPerspective)||0,this.force3D=o.defaultForce3D!==!1&&Nt?o.defaultForce3D||"auto":!1},Ft=s.SVGElement,Lt=function(t,e,i){var r,s=Y.createElementNS("http://www.w3.org/2000/svg",t),n=/([a-z])([A-Z])/g;for(r in i)s.setAttributeNS(null,r.replace(n,"$1-$2").toLowerCase(),i[r]);return e.appendChild(s),s},Xt=Y.documentElement||{},It=function(){var t,e,i,r=m||/Android/i.test(U)&&!s.chrome;return Y.createElementNS&&!r&&(t=Lt("svg",Xt),e=Lt("rect",t,{width:100,height:50,x:100}),i=e.getBoundingClientRect().width,e.style[Mt]="50% 50%",e.style[kt]="scaleX(0.5)",r=i===e.getBoundingClientRect().width&&!(_&&Nt),Xt.removeChild(t)),r}(),zt=function(t,e,i,r,s,n){var a,l,h,u,p,f,c,_,d,m,g,v,y,x,T=t._gsTransform,w=Vt(t,!0);T&&(y=T.xOrigin,x=T.yOrigin),(!r||(a=r.split(" ")).length<2)&&(c=t.getBBox(),0===c.x&&0===c.y&&c.width+c.height===0&&(c={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}),e=lt(e).split(" "),a=[(-1!==e[0].indexOf("%")?parseFloat(e[0])/100*c.width:parseFloat(e[0]))+c.x,(-1!==e[1].indexOf("%")?parseFloat(e[1])/100*c.height:parseFloat(e[1]))+c.y]),i.xOrigin=u=parseFloat(a[0]),i.yOrigin=p=parseFloat(a[1]),r&&w!==jt&&(f=w[0],c=w[1],_=w[2],d=w[3],m=w[4],g=w[5],v=f*d-c*_,v&&(l=u*(d/v)+p*(-_/v)+(_*g-d*m)/v,h=u*(-c/v)+p*(f/v)-(f*g-c*m)/v,u=i.xOrigin=a[0]=l,p=i.yOrigin=a[1]=h)),T&&(n&&(i.xOffset=T.xOffset,i.yOffset=T.yOffset,T=i),s||s!==!1&&o.defaultSmoothOrigin!==!1?(l=u-y,h=p-x,T.xOffset+=l*w[0]+h*w[2]-l,T.yOffset+=l*w[1]+h*w[3]-h):T.xOffset=T.yOffset=0),n||t.setAttribute("data-svg-origin",a.join(" "))},Et=function(t){var e,i=j("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=this.parentNode,s=this.nextSibling,n=this.style.cssText;if(Xt.appendChild(i),i.appendChild(this),this.style.display="block",t)try{e=this.getBBox(),this._originalGetBBox=this.getBBox,this.getBBox=Et}catch(a){}else this._originalGetBBox&&(e=this._originalGetBBox());return s?r.insertBefore(this,s):r.appendChild(this),Xt.removeChild(i),this.style.cssText=n,e},Bt=function(t){try{return t.getBBox()}catch(e){return Et.call(t,!0)}},Yt=function(t){return!(!Ft||!t.getCTM||t.parentNode&&!t.ownerSVGElement||!Bt(t))},jt=[1,0,0,1,0,0],Vt=function(t,e){var i,r,s,n,a,o,l=t._gsTransform||new Dt,h=1e5,u=t.style;if(kt?r=tt(t,Rt,null,!0):t.currentStyle&&(r=t.currentStyle.filter.match(D),r=r&&4===r.length?[r[0].substr(4),Number(r[2].substr(4)),Number(r[1].substr(4)),r[3].substr(4),l.x||0,l.y||0].join(","):""),i=!r||"none"===r||"matrix(1, 0, 0, 1, 0, 0)"===r,!kt||!(o=!J(t)||"none"===J(t).display)&&t.parentNode||(o&&(n=u.display,u.display="block"),t.parentNode||(a=1,Xt.appendChild(t)),r=tt(t,Rt,null,!0),i=!r||"none"===r||"matrix(1, 0, 0, 1, 0, 0)"===r,n?u.display=n:o&&Ht(u,"display"),a&&Xt.removeChild(t)),(l.svg||t.getCTM&&Yt(t))&&(i&&-1!==(u[kt]+"").indexOf("matrix")&&(r=u[kt],i=0),s=t.getAttribute("transform"),i&&s&&(-1!==s.indexOf("matrix")?(r=s,i=0):-1!==s.indexOf("translate")&&(r="matrix(1,0,0,1,"+s.match(/(?:\-|\b)[\d\-\.e]+\b/gi).join(",")+")",i=0))),i)return jt;for(s=(r||"").match(y)||[],bt=s.length;--bt>-1;)n=Number(s[bt]),s[bt]=(a=n-(n|=0))?(a*h+(0>a?-.5:.5)|0)/h+n:n;return e&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s},Wt=G.getTransform=function(t,i,r,s){if(t._gsTransform&&r&&!s)return t._gsTransform;var n,a,l,h,u,p,f=r?t._gsTransform||new Dt:new Dt,c=f.scaleX<0,_=2e-5,d=1e5,m=Nt?parseFloat(tt(t,Mt,i,!1,"0 0 0").split(" ")[2])||f.zOrigin||0:0,g=parseFloat(o.defaultTransformPerspective)||0;if(f.svg=!(!t.getCTM||!Yt(t)),f.svg&&(zt(t,tt(t,Mt,i,!1,"50% 50%")+"",f,t.getAttribute("data-svg-origin")),At=o.useSVGTransformAttr||It),n=Vt(t),n!==jt){if(16===n.length){var v,y,x,T,w,b=n[0],P=n[1],O=n[2],S=n[3],A=n[4],C=n[5],k=n[6],R=n[7],M=n[8],N=n[9],D=n[10],F=n[12],L=n[13],X=n[14],I=n[11],E=Math.atan2(k,D);f.zOrigin&&(X=-f.zOrigin,F=M*X-n[12],L=N*X-n[13],X=D*X+f.zOrigin-n[14]),f.rotationX=E*z,E&&(T=Math.cos(-E),w=Math.sin(-E),v=A*T+M*w,y=C*T+N*w,x=k*T+D*w,M=A*-w+M*T,N=C*-w+N*T,D=k*-w+D*T,I=R*-w+I*T,A=v,C=y,k=x),E=Math.atan2(-O,D),f.rotationY=E*z,E&&(T=Math.cos(-E),w=Math.sin(-E),v=b*T-M*w,y=P*T-N*w,x=O*T-D*w,N=P*w+N*T,D=O*w+D*T,I=S*w+I*T,b=v,P=y,O=x),E=Math.atan2(P,b),f.rotation=E*z,E&&(T=Math.cos(E),w=Math.sin(E),v=b*T+P*w,y=A*T+C*w,x=M*T+N*w,P=P*T-b*w,C=C*T-A*w,N=N*T-M*w,b=v,A=y,M=x),f.rotationX&&Math.abs(f.rotationX)+Math.abs(f.rotation)>359.9&&(f.rotationX=f.rotation=0,f.rotationY=180-f.rotationY),E=Math.atan2(A,C),f.scaleX=(Math.sqrt(b*b+P*P+O*O)*d+.5|0)/d,f.scaleY=(Math.sqrt(C*C+k*k)*d+.5|0)/d,f.scaleZ=(Math.sqrt(M*M+N*N+D*D)*d+.5|0)/d,b/=f.scaleX,A/=f.scaleY,P/=f.scaleX,C/=f.scaleY,Math.abs(E)>_?(f.skewX=E*z,A=0,"simple"!==f.skewType&&(f.scaleY*=1/Math.cos(E))):f.skewX=0,f.perspective=I?1/(0>I?-I:I):0,f.x=F,f.y=L,f.z=X,f.svg&&(f.x-=f.xOrigin-(f.xOrigin*b-f.yOrigin*A),f.y-=f.yOrigin-(f.yOrigin*P-f.xOrigin*C))}else if(!Nt||s||!n.length||f.x!==n[4]||f.y!==n[5]||!f.rotationX&&!f.rotationY){var B=n.length>=6,Y=B?n[0]:1,j=n[1]||0,V=n[2]||0,W=B?n[3]:1;f.x=n[4]||0,f.y=n[5]||0,l=Math.sqrt(Y*Y+j*j),h=Math.sqrt(W*W+V*V),u=Y||j?Math.atan2(j,Y)*z:f.rotation||0,p=V||W?Math.atan2(V,W)*z+u:f.skewX||0,f.scaleX=l,f.scaleY=h,f.rotation=u,f.skewX=p,Nt&&(f.rotationX=f.rotationY=f.z=0,f.perspective=g,f.scaleZ=1),f.svg&&(f.x-=f.xOrigin-(f.xOrigin*Y+f.yOrigin*V),f.y-=f.yOrigin-(f.xOrigin*j+f.yOrigin*W))}Math.abs(f.skewX)>90&&Math.abs(f.skewX)<270&&(c?(f.scaleX*=-1,f.skewX+=f.rotation<=0?180:-180,f.rotation+=f.rotation<=0?180:-180):(f.scaleY*=-1,f.skewX+=f.skewX<=0?180:-180)),f.zOrigin=m;for(a in f)f[a]<_&&f[a]>-_&&(f[a]=0)}return r&&(t._gsTransform=f,f.svg&&(At&&t.style[kt]?e.delayedCall(.001,function(){Ht(t.style,kt)}):!At&&t.getAttribute("transform")&&e.delayedCall(.001,function(){t.removeAttribute("transform")}))),f},Gt=function(t){var e,i,r=this.data,s=-r.rotation*I,n=s+r.skewX*I,a=1e5,o=(Math.cos(s)*r.scaleX*a|0)/a,l=(Math.sin(s)*r.scaleX*a|0)/a,h=(Math.sin(n)*-r.scaleY*a|0)/a,u=(Math.cos(n)*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,_,d=this.t.offsetWidth,g=this.t.offsetHeight,v="absolute"!==f.position,y="progid:DXImageTransform.Microsoft.Matrix(M11="+o+", M12="+l+", M21="+h+", M22="+u,x=r.x+d*r.xPercent/100,T=r.y+g*r.yPercent/100;if(null!=r.ox&&(c=(r.oxp?d*r.ox*.01:r.ox)-d/2,_=(r.oyp?g*r.oy*.01:r.oy)-g/2,x+=c-(c*o+_*l),T+=_-(c*h+_*u)),v?(c=d/2,_=g/2,y+=", Dx="+(c-(c*o+_*l)+x)+", Dy="+(_-(c*h+_*u)+T)+")"):y+=", sizingMethod='auto expand')",-1!==e.indexOf("DXImageTransform.Microsoft.Matrix(")?p.filter=e.replace(F,y):p.filter=y+" "+e,(0===t||1===t)&&1===o&&0===l&&0===h&&1===u&&(v&&-1===y.indexOf("Dx=0, Dy=0")||P.test(e)&&100!==parseFloat(RegExp.$1)||-1===e.indexOf(e.indexOf("Alpha"))&&p.removeAttribute("filter")),!v){var w,O,S,A=8>m?1:-1;for(c=r.ieOffsetX||0,_=r.ieOffsetY||0,r.ieOffsetX=Math.round((d-((0>o?-o:o)*d+(0>l?-l:l)*g))/2+x),r.ieOffsetY=Math.round((g-((0>u?-u:u)*g+(0>h?-h:h)*d))/2+T),bt=0;4>bt;bt++)O=at[bt],w=f[O],i=-1!==w.indexOf("px")?parseFloat(w):et(this.t,O,parseFloat(w),w.replace(b,""))||0,S=i!==r[O]?2>bt?-r.ieOffsetX:-r.ieOffsetY:2>bt?c-r.ieOffsetX:_-r.ieOffsetY,p[O]=(r[O]=Math.round(i-S*(0===bt||2===bt?1:A)))+"px"}}},Ut=G.set3DTransformRatio=G.setTransformRatio=function(t){var e,i,r,s,n,a,o,l,h,u,p,f,c,d,m,g,v,y,x,T,w,b,P,O=this.data,S=this.t.style,A=O.rotation,C=O.rotationX,k=O.rotationY,R=O.scaleX,M=O.scaleY,N=O.scaleZ,D=O.x,F=O.y,L=O.z,X=O.svg,z=O.perspective,E=O.force3D,B=O.skewY,Y=O.skewX;if(B&&(Y+=B,A+=B),((1===t||0===t)&&"auto"===E&&(this.tween._totalTime===this.tween._totalDuration||!this.tween._totalTime)||!E)&&!L&&!z&&!k&&!C&&1===N||At&&X||!Nt)return void(A||Y||X?(A*=I,b=Y*I,P=1e5,i=Math.cos(A)*R,n=Math.sin(A)*R,r=Math.sin(A-b)*-M,a=Math.cos(A-b)*M,b&&"simple"===O.skewType&&(e=Math.tan(b-B*I),e=Math.sqrt(1+e*e),r*=e,a*=e,B&&(e=Math.tan(B*I),e=Math.sqrt(1+e*e),i*=e,n*=e)),X&&(D+=O.xOrigin-(O.xOrigin*i+O.yOrigin*r)+O.xOffset,F+=O.yOrigin-(O.xOrigin*n+O.yOrigin*a)+O.yOffset,At&&(O.xPercent||O.yPercent)&&(m=this.t.getBBox(),D+=.01*O.xPercent*m.width,F+=.01*O.yPercent*m.height),m=1e-6,m>D&&D>-m&&(D=0),m>F&&F>-m&&(F=0)),x=(i*P|0)/P+","+(n*P|0)/P+","+(r*P|0)/P+","+(a*P|0)/P+","+D+","+F+")",X&&At?this.t.setAttribute("transform","matrix("+x):S[kt]=(O.xPercent||O.yPercent?"translate("+O.xPercent+"%,"+O.yPercent+"%) matrix(":"matrix(")+x):S[kt]=(O.xPercent||O.yPercent?"translate("+O.xPercent+"%,"+O.yPercent+"%) matrix(":"matrix(")+R+",0,0,"+M+","+D+","+F+")");if(_&&(m=1e-4,m>R&&R>-m&&(R=N=2e-5),m>M&&M>-m&&(M=N=2e-5),!z||O.z||O.rotationX||O.rotationY||(z=0)),A||Y)A*=I,g=i=Math.cos(A),v=n=Math.sin(A),Y&&(A-=Y*I,g=Math.cos(A),v=Math.sin(A),"simple"===O.skewType&&(e=Math.tan((Y-B)*I),e=Math.sqrt(1+e*e),g*=e,v*=e,O.skewY&&(e=Math.tan(B*I),e=Math.sqrt(1+e*e),i*=e,n*=e))),r=-v,a=g;else{if(!(k||C||1!==N||z||X))return void(S[kt]=(O.xPercent||O.yPercent?"translate("+O.xPercent+"%,"+O.yPercent+"%) translate3d(":"translate3d(")+D+"px,"+F+"px,"+L+"px)"+(1!==R||1!==M?" scale("+R+","+M+")":""));i=a=1,r=n=0}u=1,s=o=l=h=p=f=0,c=z?-1/z:0,d=O.zOrigin,m=1e-6,T=",",w="0",A=k*I,A&&(g=Math.cos(A),v=Math.sin(A),l=-v,p=c*-v,s=i*v,o=n*v,u=g,c*=g,i*=g,n*=g),A=C*I,A&&(g=Math.cos(A),v=Math.sin(A),e=r*g+s*v,y=a*g+o*v,h=u*v,f=c*v,s=r*-v+s*g,o=a*-v+o*g,u*=g,c*=g,r=e,a=y),1!==N&&(s*=N,o*=N,u*=N,c*=N),1!==M&&(r*=M,a*=M,h*=M,f*=M),1!==R&&(i*=R,n*=R,l*=R,p*=R),(d||X)&&(d&&(D+=s*-d,F+=o*-d,L+=u*-d+d),X&&(D+=O.xOrigin-(O.xOrigin*i+O.yOrigin*r)+O.xOffset,F+=O.yOrigin-(O.xOrigin*n+O.yOrigin*a)+O.yOffset),m>D&&D>-m&&(D=w),m>F&&F>-m&&(F=w),m>L&&L>-m&&(L=0)),x=O.xPercent||O.yPercent?"translate("+O.xPercent+"%,"+O.yPercent+"%) matrix3d(":"matrix3d(",x+=(m>i&&i>-m?w:i)+T+(m>n&&n>-m?w:n)+T+(m>l&&l>-m?w:l),x+=T+(m>p&&p>-m?w:p)+T+(m>r&&r>-m?w:r)+T+(m>a&&a>-m?w:a),C||k||1!==N?(x+=T+(m>h&&h>-m?w:h)+T+(m>f&&f>-m?w:f)+T+(m>s&&s>-m?w:s),x+=T+(m>o&&o>-m?w:o)+T+(m>u&&u>-m?w:u)+T+(m>c&&c>-m?w:c)+T):x+=",0,0,0,0,1,0,",x+=D+T+F+T+L+T+(z?1+-L/z:1)+")",S[kt]=x};u=Dt.prototype,u.x=u.y=u.z=u.skewX=u.skewY=u.rotation=u.rotationX=u.rotationY=u.zOrigin=u.xPercent=u.yPercent=u.xOffset=u.yOffset=0,u.scaleX=u.scaleY=u.scaleZ=1,Ot("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,s,a,l){if(r._lastParsedTransform===l)return s;r._lastParsedTransform=l;var h,u=l.scale&&"function"==typeof l.scale?l.scale:0;"function"==typeof l[i]&&(h=l[i],l[i]=e),u&&(l.scale=u(v,t));var p,f,c,_,d,m,y,x,T,w=t._gsTransform,b=t.style,P=1e-6,O=Ct.length,S=l,A={},C="transformOrigin",k=Wt(t,n,!0,S.parseTransform),R=S.transform&&("function"==typeof S.transform?S.transform(v,g):S.transform);if(k.skewType=S.skewType||k.skewType||o.defaultSkewType,r._transform=k,R&&"string"==typeof R&&kt)f=V.style,f[kt]=R,f.display="block",f.position="absolute",Y.body.appendChild(V),p=Wt(V,null,!1),"simple"===k.skewType&&(p.scaleY*=Math.cos(p.skewX*I)),k.svg&&(m=k.xOrigin,y=k.yOrigin,p.x-=k.xOffset,p.y-=k.yOffset,(S.transformOrigin||S.svgOrigin)&&(R={},zt(t,lt(S.transformOrigin),R,S.svgOrigin,S.smoothOrigin,!0),m=R.xOrigin,y=R.yOrigin,p.x-=R.xOffset-k.xOffset,p.y-=R.yOffset-k.yOffset),(m||y)&&(x=Vt(V,!0),p.x-=m-(m*x[0]+y*x[2]),p.y-=y-(m*x[1]+y*x[3]))),Y.body.removeChild(V),p.perspective||(p.perspective=k.perspective),null!=S.xPercent&&(p.xPercent=ut(S.xPercent,k.xPercent)),null!=S.yPercent&&(p.yPercent=ut(S.yPercent,k.yPercent));else if("object"==typeof S){if(p={scaleX:ut(null!=S.scaleX?S.scaleX:S.scale,k.scaleX),scaleY:ut(null!=S.scaleY?S.scaleY:S.scale,k.scaleY),scaleZ:ut(S.scaleZ,k.scaleZ),x:ut(S.x,k.x),y:ut(S.y,k.y),z:ut(S.z,k.z),xPercent:ut(S.xPercent,k.xPercent),yPercent:ut(S.yPercent,k.yPercent),perspective:ut(S.transformPerspective,k.perspective)},d=S.directionalRotation,null!=d)if("object"==typeof d)for(f in d)S[f]=d[f];else S.rotation=d;"string"==typeof S.x&&-1!==S.x.indexOf("%")&&(p.x=0,p.xPercent=ut(S.x,k.xPercent)),"string"==typeof S.y&&-1!==S.y.indexOf("%")&&(p.y=0,p.yPercent=ut(S.y,k.yPercent)),p.rotation=pt("rotation"in S?S.rotation:"shortRotation"in S?S.shortRotation+"_short":"rotationZ"in S?S.rotationZ:k.rotation,k.rotation,"rotation",A),Nt&&(p.rotationX=pt("rotationX"in S?S.rotationX:"shortRotationX"in S?S.shortRotationX+"_short":k.rotationX||0,k.rotationX,"rotationX",A),p.rotationY=pt("rotationY"in S?S.rotationY:"shortRotationY"in S?S.shortRotationY+"_short":k.rotationY||0,k.rotationY,"rotationY",A)),p.skewX=pt(S.skewX,k.skewX),p.skewY=pt(S.skewY,k.skewY)}for(Nt&&null!=S.force3D&&(k.force3D=S.force3D,_=!0),c=k.force3D||k.z||k.rotationX||k.rotationY||p.z||p.rotationX||p.rotationY||p.perspective,c||null==S.scale||(p.scaleZ=1);--O>-1;)T=Ct[O],R=p[T]-k[T],(R>P||-P>R||null!=S[T]||null!=E[T])&&(_=!0,s=new xt(k,T,k[T],R,s),T in A&&(s.e=A[T]),s.xs0=0,s.plugin=a,r._overwriteProps.push(s.n));return R=S.transformOrigin,k.svg&&(R||S.svgOrigin)&&(m=k.xOffset,y=k.yOffset,zt(t,lt(R),p,S.svgOrigin,S.smoothOrigin),s=Tt(k,"xOrigin",(w?k:p).xOrigin,p.xOrigin,s,C),s=Tt(k,"yOrigin",(w?k:p).yOrigin,p.yOrigin,s,C),(m!==k.xOffset||y!==k.yOffset)&&(s=Tt(k,"xOffset",w?m:k.xOffset,k.xOffset,s,C),s=Tt(k,"yOffset",w?y:k.yOffset,k.yOffset,s,C)),R="0px 0px"),(R||Nt&&c&&k.zOrigin)&&(kt?(_=!0,T=Mt,R=(R||tt(t,T,n,!1,"50% 50%"))+"",s=new xt(b,T,0,0,s,-1,C),s.b=b[T],s.plugin=a,Nt?(f=k.zOrigin,R=R.split(" "),k.zOrigin=(R.length>2&&(0===f||"0px"!==R[2])?parseFloat(R[2]):f)||0,s.xs0=s.e=R[0]+" "+(R[1]||"50%")+" 0px",s=new xt(k,"zOrigin",0,0,s,-1,s.n),s.b=f,s.xs0=s.e=k.zOrigin):s.xs0=s.e=R):lt(R+"",k)),_&&(r._transformType=k.svg&&At||!c&&3!==this._transformType?2:3),h&&(l[i]=h),u&&(l.scale=u),s},prefix:!0}),Ot("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),Ot("borderRadius",{defaultValue:"0px",parser:function(t,e,i,s,a,o){e=this.format(e);var l,h,u,p,f,c,_,d,m,g,v,y,x,T,w,b,P=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],O=t.style;for(m=parseFloat(t.offsetWidth),g=parseFloat(t.offsetHeight),l=e.split(" "),h=0;h<P.length;h++)this.p.indexOf("border")&&(P[h]=K(P[h])),f=p=tt(t,P[h],n,!1,"0px"),-1!==f.indexOf(" ")&&(p=f.split(" "),f=p[0],p=p[1]),c=u=l[h],_=parseFloat(f),y=f.substr((_+"").length),x="="===c.charAt(1),x?(d=parseInt(c.charAt(0)+"1",10),c=c.substr(2),d*=parseFloat(c),v=c.substr((d+"").length-(0>d?1:0))||""):(d=parseFloat(c),v=c.substr((d+"").length)),""===v&&(v=r[i]||y),v!==y&&(T=et(t,"borderLeft",_,y),w=et(t,"borderTop",_,y),"%"===v?(f=T/m*100+"%",p=w/g*100+"%"):"em"===v?(b=et(t,"borderLeft",1,"em"),f=T/b+"em",p=w/b+"em"):(f=T+"px",p=w+"px"),x&&(c=parseFloat(f)+d+v,u=parseFloat(p)+d+v)),a=wt(O,P[h],f+" "+p,c+" "+u,!1,"0px",a);return a},prefix:!0,formatter:gt("0px 0px 0px 0px",!1,!0)}),Ot("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(t,e,i,r,s,a){return wt(t.style,i,this.format(tt(t,i,n,!1,"0px 0px")),this.format(e),!1,"0px",s)},prefix:!0,formatter:gt("0px 0px",!1,!0)}),Ot("backgroundPosition",{defaultValue:"0 0",parser:function(t,e,i,r,s,a){var o,l,h,u,p,f,c="background-position",_=n||J(t,null),d=this.format((_?m?_.getPropertyValue(c+"-x")+" "+_.getPropertyValue(c+"-y"):_.getPropertyValue(c):t.currentStyle.backgroundPositionX+" "+t.currentStyle.backgroundPositionY)||"0 0"),g=this.format(e);if(-1!==d.indexOf("%")!=(-1!==g.indexOf("%"))&&g.split(",").length<2&&(f=tt(t,"backgroundImage").replace(R,""),f&&"none"!==f)){for(o=d.split(" "),l=g.split(" "),W.setAttribute("src",f),h=2;--h>-1;)d=o[h],u=-1!==d.indexOf("%"),u!==(-1!==l[h].indexOf("%"))&&(p=0===h?t.offsetWidth-W.width:t.offsetHeight-W.height,o[h]=u?parseFloat(d)/100*p+"px":parseFloat(d)/p*100+"%");d=o.join(" ")}return this.parseComplex(t.style,d,g,s,a)},formatter:lt}),Ot("backgroundSize",{defaultValue:"0 0",formatter:function(t){return t+="",lt(-1===t.indexOf(" ")?t+" "+t:t)}}),Ot("perspective",{defaultValue:"0px",prefix:!0}),Ot("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),Ot("transformStyle",{prefix:!0}),Ot("backfaceVisibility",{prefix:!0}),Ot("userSelect",{prefix:!0}),Ot("margin",{parser:vt("marginTop,marginRight,marginBottom,marginLeft")}),Ot("padding",{parser:vt("paddingTop,paddingRight,paddingBottom,paddingLeft")}),Ot("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(t,e,i,r,s,a){var o,l,h;return 9>m?(l=t.currentStyle,h=8>m?" ":",",o="rect("+l.clipTop+h+l.clipRight+h+l.clipBottom+h+l.clipLeft+")",e=this.format(e).split(",").join(h)):(o=this.format(tt(t,this.p,n,!1,this.dflt)),e=this.format(e)),this.parseComplex(t.style,o,e,s,a)}}),Ot("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),Ot("autoRound,strictUnits",{parser:function(t,e,i,r,s){return s}}),Ot("border",{defaultValue:"0px solid #000",parser:function(t,e,i,r,s,a){var o=tt(t,"borderTopWidth",n,!1,"0px"),l=this.format(e).split(" "),h=l[0].replace(b,"");return"px"!==h&&(o=parseFloat(o)/et(t,"borderTopWidth",1,h)+h),this.parseComplex(t.style,this.format(o+" "+tt(t,"borderTopStyle",n,!1,"solid")+" "+tt(t,"borderTopColor",n,!1,"#000")),l.join(" "),s,a)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(mt)||["#000"])[0]}}),Ot("borderWidth",{parser:vt("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),Ot("float,cssFloat,styleFloat",{parser:function(t,e,i,r,s,n){var a=t.style,o="cssFloat"in a?"cssFloat":"styleFloat";return new xt(a,o,0,0,s,-1,i,!1,0,a[o],e)}});var qt=function(t){var e,i=this.t,r=i.filter||tt(this.data,"filter")||"",s=this.s+this.c*t|0;100===s&&(-1===r.indexOf("atrix(")&&-1===r.indexOf("radient(")&&-1===r.indexOf("oader(")?(i.removeAttribute("filter"),e=!tt(this.data,"filter")):(i.filter=r.replace(S,""),e=!0)),e||(this.xn1&&(i.filter=r=r||"alpha(opacity="+s+")"),-1===r.indexOf("pacity")?0===s&&this.xn1||(i.filter=r+" alpha(opacity="+s+")"):i.filter=r.replace(P,"opacity="+s))};Ot("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(t,e,i,r,s,a){var o=parseFloat(tt(t,"opacity",n,!1,"1")),l=t.style,h="autoAlpha"===i;return"string"==typeof e&&"="===e.charAt(1)&&(e=("-"===e.charAt(0)?-1:1)*parseFloat(e.substr(2))+o),h&&1===o&&"hidden"===tt(t,"visibility",n)&&0!==e&&(o=0),q?s=new xt(l,"opacity",o,e-o,s):(s=new xt(l,"opacity",100*o,100*(e-o),s),s.xn1=h?1:0,l.zoom=1,s.type=2,s.b="alpha(opacity="+s.s+")",s.e="alpha(opacity="+(s.s+s.c)+")",s.data=t,s.plugin=a,s.setRatio=qt),h&&(s=new xt(l,"visibility",0,0,s,-1,null,!1,0,0!==o?"inherit":"hidden",0===e?"hidden":"inherit"),s.xs0="inherit",r._overwriteProps.push(s.n),r._overwriteProps.push(i)),s}});var Ht=function(t,e){e&&(t.removeProperty?(("ms"===e.substr(0,2)||"webkit"===e.substr(0,6))&&(e="-"+e),t.removeProperty(e.replace(C,"-$1").toLowerCase())):t.removeAttribute(e))},Zt=function(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:Ht(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)};Ot("className",{parser:function(t,e,r,s,a,o,l){var h,u,p,f,c,_=t.getAttribute("class")||"",d=t.style.cssText;if(a=s._classNamePT=new xt(t,r,0,0,a,2),a.setRatio=Zt,a.pr=-11,i=!0,a.b=_,u=rt(t,n),p=t._gsClassPT){for(f={},c=p.data;c;)f[c.p]=1,c=c._next;p.setRatio(1)}return t._gsClassPT=a,a.e="="!==e.charAt(1)?e:_.replace(new RegExp("(?:\\s|^)"+e.substr(2)+"(?![\\w-])"),"")+("+"===e.charAt(0)?" "+e.substr(2):""),t.setAttribute("class",a.e),h=st(t,u,rt(t),l,f),t.setAttribute("class",_),a.data=h.firstMPT,t.style.cssText=d,a=a.xfirst=s.parse(t,h.difs,a,o)}});var $t=function(t){if((1===t||0===t)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var e,i,r,s,n,a=this.t.style,o=h.transform.parse;if("all"===this.e)a.cssText="",s=!0;else for(e=this.e.split(" ").join("").split(","),r=e.length;--r>-1;)i=e[r],h[i]&&(h[i].parse===o?s=!0:i="transformOrigin"===i?Mt:h[i].p),Ht(a,i);s&&(Ht(a,kt),n=this.t._gsTransform,n&&(n.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(Ot("clearProps",{parser:function(t,e,r,s,n){return n=new xt(t,r,0,0,n,2),n.setRatio=$t,n.e=e,n.pr=-10,n.data=s._tween,i=!0,n}}),u="bezier,throwProps,physicsProps,physics2D".split(","),bt=u.length;bt--;)St(u[bt]);u=o.prototype,u._firstPT=u._lastParsedTransform=u._transform=null,u._onInitTween=function(t,e,s,l){if(!t.nodeType)return!1;this._target=g=t,this._tween=s,this._vars=e,v=l,p=e.autoRound,i=!1,r=e.suffixMap||o.suffixMap,n=J(t,""),a=this._overwriteProps;var u,_,m,y,x,T,w,b,P,S=t.style;if(f&&""===S.zIndex&&(u=tt(t,"zIndex",n),("auto"===u||""===u)&&this._addLazySet(S,"zIndex",0)),"string"==typeof e&&(y=S.cssText,u=rt(t,n),S.cssText=y+";"+e,u=st(t,u,rt(t)).difs,!q&&O.test(e)&&(u.opacity=parseFloat(RegExp.$1)),e=u,S.cssText=y),e.className?this._firstPT=_=h.className.parse(t,e.className,"className",this,null,null,e):this._firstPT=_=this.parse(t,e,null),this._transformType){for(P=3===this._transformType,kt?c&&(f=!0,""===S.zIndex&&(w=tt(t,"zIndex",n),("auto"===w||""===w)&&this._addLazySet(S,"zIndex",0)),d&&this._addLazySet(S,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(P?"visible":"hidden"))):S.zoom=1,m=_;m&&m._next;)m=m._next;b=new xt(t,"transform",0,0,null,2),this._linkCSSP(b,null,m),b.setRatio=kt?Ut:Gt,b.data=this._transform||Wt(t,n,!0),b.tween=s,b.pr=-1,a.pop()}if(i){for(;_;){for(T=_._next,m=y;m&&m.pr>_.pr;)m=m._next;(_._prev=m?m._prev:x)?_._prev._next=_:y=_,(_._next=m)?m._prev=_:x=_,_=T}this._firstPT=y}return!0},u.parse=function(t,e,i,s){var a,o,l,u,f,c,_,d,m,y,x=t.style;for(a in e){if(c=e[a],"function"==typeof c&&(c=c(v,g)),o=h[a])i=o.parse(t,c,a,this,i,s,e);else{if("--"===a.substr(0,2)){this._tween._propLookup[a]=this._addTween.call(this._tween,t.style,"setProperty",J(t).getPropertyValue(a)+"",c+"",a,!1,a);continue}f=tt(t,a,n)+"",m="string"==typeof c,"color"===a||"fill"===a||"stroke"===a||-1!==a.indexOf("Color")||m&&A.test(c)?(m||(c=_t(c),c=(c.length>3?"rgba(":"rgb(")+c.join(",")+")"),i=wt(x,a,f,c,!0,"transparent",i,0,s)):m&&X.test(c)?i=wt(x,a,f,c,!0,null,i,0,s):(l=parseFloat(f),_=l||0===l?f.substr((l+"").length):"",(""===f||"auto"===f)&&("width"===a||"height"===a?(l=ot(t,a,n),_="px"):"left"===a||"top"===a?(l=it(t,a,n),_="px"):(l="opacity"!==a?0:1,_="")),y=m&&"="===c.charAt(1),y?(u=parseInt(c.charAt(0)+"1",10),c=c.substr(2),u*=parseFloat(c),d=c.replace(b,"")):(u=parseFloat(c),d=m?c.replace(b,""):""),""===d&&(d=a in r?r[a]:_),c=u||0===u?(y?u+l:u)+d:e[a],_!==d&&(""!==d||"lineHeight"===a)&&(u||0===u)&&l&&(l=et(t,a,l,_),"%"===d?(l/=et(t,a,100,"%")/100,e.strictUnits!==!0&&(f=l+"%")):"em"===d||"rem"===d||"vw"===d||"vh"===d?l/=et(t,a,1,d):"px"!==d&&(u=et(t,a,u,d),d="px"),y&&(u||0===u)&&(c=u+l+d)),y&&(u+=l),!l&&0!==l||!u&&0!==u?void 0!==x[a]&&(c||c+""!="NaN"&&null!=c)?(i=new xt(x,a,u||l||0,0,i,-1,a,!1,0,f,c),i.xs0="none"!==c||"display"!==a&&-1===a.indexOf("Style")?c:f):Z("invalid "+a+" tween value: "+e[a]):(i=new xt(x,a,l,u-l,i,0,a,p!==!1&&("px"===d||"zIndex"===a),0,f,c),i.xs0=d))}s&&i&&!i.plugin&&(i.plugin=s)}return i},u.setRatio=function(t){var e,i,r,s=this._firstPT,n=1e-6;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||this._tween._rawPrevTime===-1e-6)for(;s;){if(e=s.c*t+s.s,s.r?e=Math.round(e):n>e&&e>-n&&(e=0),s.type)if(1===s.type)if(r=s.l,2===r)s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2;else if(3===r)s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2+s.xn2+s.xs3;else if(4===r)s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2+s.xn2+s.xs3+s.xn3+s.xs4;else if(5===r)s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2+s.xn2+s.xs3+s.xn3+s.xs4+s.xn4+s.xs5;else{for(i=s.xs0+e+s.xs1,r=1;r<s.l;r++)i+=s["xn"+r]+s["xs"+(r+1)];s.t[s.p]=i}else-1===s.type?s.t[s.p]=s.xs0:s.setRatio&&s.setRatio(t);else s.t[s.p]=e+s.xs0;s=s._next}else for(;s;)2!==s.type?s.t[s.p]=s.b:s.setRatio(t),s=s._next;else for(;s;){if(2!==s.type)if(s.r&&-1!==s.type)if(e=Math.round(s.s+s.c),s.type){if(1===s.type){for(r=s.l,i=s.xs0+e+s.xs1,r=1;r<s.l;r++)i+=s["xn"+r]+s["xs"+(r+1)];s.t[s.p]=i}}else s.t[s.p]=e+s.xs0;else s.t[s.p]=s.e;else s.setRatio(t);s=s._next}},u._enableTransforms=function(t){this._transform=this._transform||Wt(this._target,n,!0),this._transformType=this._transform.svg&&At||!t&&3!==this._transformType?2:3};var Qt=function(t){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};u._addLazySet=function(t,e,i){var r=this._firstPT=new xt(t,e,0,0,this._firstPT,2);r.e=i,r.setRatio=Qt,r.data=this},u._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},u._mod=function(t){for(var e=this._firstPT;e;)"function"==typeof t[e.p]&&t[e.p]===Math.round&&(e.r=1),e=e._next},u._kill=function(e){var i,r,s,n=e;if(e.autoAlpha||e.alpha){n={};for(r in e)n[r]=e[r];n.opacity=1,n.autoAlpha&&(n.visibility=1)}for(e.className&&(i=this._classNamePT)&&(s=i.xfirst,s&&s._prev?this._linkCSSP(s._prev,i._next,s._prev._prev):s===this._firstPT&&(this._firstPT=i._next),i._next&&this._linkCSSP(i._next,i._next._next,s._prev),this._classNamePT=null),i=this._firstPT;i;)i.plugin&&i.plugin!==r&&i.plugin._kill&&(i.plugin._kill(e),r=i.plugin),i=i._next;return t.prototype._kill.call(this,n)};var Kt=function(t,e,i){var r,s,n,a;if(t.slice)for(s=t.length;--s>-1;)Kt(t[s],e,i);else for(r=t.childNodes,s=r.length;--s>-1;)n=r[s],a=n.type,n.style&&(e.push(rt(n)),i&&i.push(n)),1!==a&&9!==a&&11!==a||!n.childNodes.length||Kt(n,e,i)};return o.cascadeTo=function(t,i,r){var s,n,a,o,l=e.to(t,i,r),h=[l],u=[],p=[],f=[],c=e._internals.reservedProps;for(t=l._targets||l.target,Kt(t,u,f),l.render(i,!0,!0),Kt(t,p),l.render(0,!0,!0),l._enabled(!0),s=f.length;--s>-1;)if(n=st(f[s],u[s],p[s]),n.firstMPT){n=n.difs;for(a in r)c[a]&&(n[a]=r[a]);o={};for(a in n)o[a]=u[s][a];h.push(e.fromTo(f[s],i,o,n))}return h},t.activate([o]),o},!0)}),s._gsDefine&&s._gsQueue.pop()(),!function(t,e){"use strict";var s={},n=t.document,a=t.GreenSockGlobals=t.GreenSockGlobals||t;if(!a.TweenLite){var o,l,h,u,p,f=function(t){var e,i=t.split("."),r=a;for(e=0;e<i.length;e++)r[i[e]]=r=r[i[e]]||{};return r},c=f("com.greensock"),_=1e-10,d=function(t){var e,i=[],r=t.length;for(e=0;e!==r;i.push(t[e++]));return i},m=function(){},g=function(){var t=Object.prototype.toString,e=t.call([]);return function(i){return null!=i&&(i instanceof Array||"object"==typeof i&&!!i.push&&t.call(i)===e)}}(),v={},y=function(n,o,l,h){this.sc=v[n]?v[n].sc:[],v[n]=this,this.gsClass=null,this.func=l;var u=[];this.check=function(p){for(var c,_,d,m,g=o.length,x=g;--g>-1;)(c=v[o[g]]||new y(o[g],[])).gsClass?(u[g]=c.gsClass,x--):p&&c.sc.push(this);if(0===x&&l){if(_=("com.greensock."+n).split("."),d=_.pop(),m=f(_.join("."))[d]=this.gsClass=l.apply(l,u),h)if(a[d]=s[d]=m,"undefined"!=typeof i&&i.exports)if(n===e){i.exports=s[e]=m;for(g in s)m[g]=s[g]}else s[e]&&(s[e][d]=m);else"function"==typeof r&&r.amd&&r((t.GreenSockAMDPath?t.GreenSockAMDPath+"/":"")+n.split(".").pop(),[],function(){return m});for(g=0;g<this.sc.length;g++)this.sc[g].check()}},this.check(!0)},x=t._gsDefine=function(t,e,i,r){return new y(t,e,i,r)},T=c._class=function(t,e,i){return e=e||function(){},x(t,[],function(){return e},i),e};x.globals=a;var w=[0,0,1,1],b=T("easing.Ease",function(t,e,i,r){this._func=t,this._type=i||0,this._power=r||0,this._params=e?w.concat(e):w},!0),P=b.map={},O=b.register=function(t,e,i,r){for(var s,n,a,o,l=e.split(","),h=l.length,u=(i||"easeIn,easeOut,easeInOut").split(",");--h>-1;)for(n=l[h],s=r?T("easing."+n,null,!0):c.easing[n]||{},a=u.length;--a>-1;)o=u[a],P[n+"."+o]=P[o+n]=s[o]=t.getRatio?t:t[o]||new t};for(h=b.prototype,h._calcEnd=!1,h.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:.5>t?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:.5>t?r/2:1-r/2},o=["Linear","Quad","Cubic","Quart","Quint,Strong"],l=o.length;--l>-1;)h=o[l]+",Power"+l,O(new b(null,null,1,l),h,"easeOut",!0),O(new b(null,null,2,l),h,"easeIn"+(0===l?",easeNone":"")),O(new b(null,null,3,l),h,"easeInOut");P.linear=c.easing.Linear.easeIn,P.swing=c.easing.Quad.easeInOut;var S=T("events.EventDispatcher",function(t){this._listeners={},this._eventTarget=t||this});h=S.prototype,h.addEventListener=function(t,e,i,r,s){s=s||0;var n,a,o=this._listeners[t],l=0;for(this!==u||p||u.wake(),null==o&&(this._listeners[t]=o=[]),a=o.length;--a>-1;)n=o[a],n.c===e&&n.s===i?o.splice(a,1):0===l&&n.pr<s&&(l=a+1);o.splice(l,0,{c:e,s:i,up:r,pr:s})},h.removeEventListener=function(t,e){var i,r=this._listeners[t];if(r)for(i=r.length;--i>-1;)if(r[i].c===e)return void r.splice(i,1)},h.dispatchEvent=function(t){var e,i,r,s=this._listeners[t];if(s)for(e=s.length,e>1&&(s=s.slice(0)),i=this._eventTarget;--e>-1;)r=s[e],r&&(r.up?r.c.call(r.s||i,{type:t,target:i}):r.c.call(r.s||i))};var A=t.requestAnimationFrame,C=t.cancelAnimationFrame,k=Date.now||function(){return(new Date).getTime()},R=k();for(o=["ms","moz","webkit","o"],l=o.length;--l>-1&&!A;)A=t[o[l]+"RequestAnimationFrame"],C=t[o[l]+"CancelAnimationFrame"]||t[o[l]+"CancelRequestAnimationFrame"];T("Ticker",function(t,e){var i,r,s,a,o,l=this,h=k(),f=e!==!1&&A?"auto":!1,c=500,d=33,g="tick",v=function(t){var e,n,u=k()-R;u>c&&(h+=u-d),R+=u,l.time=(R-h)/1e3,e=l.time-o,(!i||e>0||t===!0)&&(l.frame++,o+=e+(e>=a?.004:a-e),n=!0),t!==!0&&(s=r(v)),n&&l.dispatchEvent(g)};S.call(l),l.time=l.frame=0,l.tick=function(){v(!0)},l.lagSmoothing=function(t,e){return arguments.length?(c=t||1/_,void(d=Math.min(e,c,0))):1/_>c},l.sleep=function(){null!=s&&(f&&C?C(s):clearTimeout(s),r=m,s=null,l===u&&(p=!1))},l.wake=function(t){null!==s?l.sleep():t?h+=-R+(R=k()):l.frame>10&&(R=k()-c+5),r=0===i?m:f&&A?A:function(t){return setTimeout(t,1e3*(o-l.time)+1|0)},l===u&&(p=!0),v(2)},l.fps=function(t){return arguments.length?(i=t,a=1/(i||60),o=this.time+a,void l.wake()):i},l.useRAF=function(t){return arguments.length?(l.sleep(),f=t,void l.fps(i)):f},l.fps(t),setTimeout(function(){"auto"===f&&l.frame<5&&"hidden"!==n.visibilityState&&l.useRAF(!1)},1500)}),h=c.Ticker.prototype=new c.events.EventDispatcher,h.constructor=c.Ticker;var M=T("core.Animation",function(t,e){if(this.vars=e=e||{},this._duration=this._totalDuration=t||0,this._delay=Number(e.delay)||0,this._timeScale=1,this._active=e.immediateRender===!0,this.data=e.data,this._reversed=e.reversed===!0,Q){p||u.wake();var i=this.vars.useFrames?$:Q;i.add(this,i._time),this.vars.paused&&this.paused(!0)}});u=M.ticker=new c.Ticker,h=M.prototype,h._dirty=h._gc=h._initted=h._paused=!1,h._totalTime=h._time=0,h._rawPrevTime=-1,h._next=h._last=h._onUpdate=h._timeline=h.timeline=null,h._paused=!1;var N=function(){p&&k()-R>2e3&&("hidden"!==n.visibilityState||!u.lagSmoothing())&&u.wake();var t=setTimeout(N,2e3);t.unref&&t.unref()};N(),h.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},h.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},h.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},h.seek=function(t,e){return this.totalTime(Number(t),e!==!1)},h.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,e!==!1,!0)},h.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},h.render=function(t,e,i){},h.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},h.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-1e-7},h._enabled=function(t,e){return p||u.wake(),this._gc=!t,this._active=this.isActive(),e!==!0&&(t&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!t&&this.timeline&&this._timeline._remove(this,!0)),!1},h._kill=function(t,e){return this._enabled(!1,!1)},h.kill=function(t,e){return this._kill(t,e),this},h._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},h._swapSelfInParams=function(t){for(var e=t.length,i=t.concat();--e>-1;)"{self}"===t[e]&&(i[e]=this);return i},h._callback=function(t){var e=this.vars,i=e[t],r=e[t+"Params"],s=e[t+"Scope"]||e.callbackScope||this,n=r?r.length:0;switch(n){case 0:i.call(s);break;case 1:i.call(s,r[0]);break;case 2:i.call(s,r[0],r[1]);break;default:i.apply(s,r)}},h.eventCallback=function(t,e,i,r){if("on"===(t||"").substr(0,2)){var s=this.vars;if(1===arguments.length)return s[t];null==e?delete s[t]:(s[t]=e,s[t+"Params"]=g(i)&&-1!==i.join("").indexOf("{self}")?this._swapSelfInParams(i):i,s[t+"Scope"]=r),"onUpdate"===t&&(this._onUpdate=e)}return this},h.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},h.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&0!==t&&this.totalTime(this._totalTime*(t/this._duration),!0),this):(this._dirty=!1,this._duration)},h.totalDuration=function(t){return this._dirty=!1,arguments.length?this.duration(t):this._totalDuration},h.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(t>this._duration?this._duration:t,e)):this._time},h.totalTime=function(t,e,i){if(p||u.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>t&&!i&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var r=this._totalDuration,s=this._timeline;if(t>r&&!i&&(t=r),this._startTime=(this._paused?this._pauseTime:s._time)-(this._reversed?r-t:t)/this._timeScale,s._dirty||this._uncache(!1),s._timeline)for(;s._timeline;)s._timeline._time!==(s._startTime+s._totalTime)/s._timeScale&&s.totalTime(s._totalTime,!0),s=s._timeline}this._gc&&this._enabled(!0,!1),(this._totalTime!==t||0===this._duration)&&(I.length&&J(),this.render(t,e,!1),I.length&&J())}return this},h.progress=h.totalProgress=function(t,e){var i=this.duration();return arguments.length?this.totalTime(i*t,e):i?this._time/i:this.ratio},h.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},h.endTime=function(t){return this._startTime+(0!=t?this.totalDuration():this.duration())/this._timeScale},h.timeScale=function(t){if(!arguments.length)return this._timeScale;var e,i;for(t=t||_,this._timeline&&this._timeline.smoothChildTiming&&(e=this._pauseTime,i=e||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},h.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},h.paused=function(t){if(!arguments.length)return this._paused;var e,i,r=this._timeline;return t!=this._paused&&r&&(p||t||u.wake(),e=r.rawTime(),i=e-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=T("core.SimpleTimeline",function(t){M.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0});h=D.prototype=new M,h.constructor=D,h.kill()._gc=!1,h._first=h._last=h._recent=null,h._sortChildren=!1,h.add=h.insert=function(t,e,i,r){var s,n;if(t._startTime=Number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pauseTime=t._startTime+(this.rawTime()-t._startTime)/t._timeScale),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),s=this._last,this._sortChildren)for(n=t._startTime;s&&s._startTime>n;)s=s._prev;return s?(t._next=s._next,s._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=s,this._recent=t,this._timeline&&this._uncache(!0),this},h._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},h.render=function(t,e,i){var r,s=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;s;)r=s._next,(s._active||t>=s._startTime&&!s._paused&&!s._gc)&&(s._reversed?s.render((s._dirty?s.totalDuration():s._totalDuration)-(t-s._startTime)*s._timeScale,e,i):s.render((t-s._startTime)*s._timeScale,e,i)),s=r},h.rawTime=function(){return p||u.wake(),this._totalTime};var F=T("TweenLite",function(e,i,r){if(M.call(this,i,r),this.render=F.prototype.render,null==e)throw"Cannot tween a null target.";this.target=e="string"!=typeof e?e:F.selector(e)||e;var s,n,a,o=e.jquery||e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType),l=this.vars.overwrite;if(this._overwrite=l=null==l?Z[F.defaultOverwrite]:"number"==typeof l?l>>0:Z[l],(o||e instanceof Array||e.push&&g(e))&&"number"!=typeof e[0])for(this._targets=a=d(e),this._propLookup=[],this._siblings=[],s=0;s<a.length;s++)n=a[s],n?"string"!=typeof n?n.length&&n!==t&&n[0]&&(n[0]===t||n[0].nodeType&&n[0].style&&!n.nodeType)?(a.splice(s--,1),this._targets=a=a.concat(d(n))):(this._siblings[s]=tt(n,this,!1),1===l&&this._siblings[s].length>1&&it(n,this,null,1,this._siblings[s])):(n=a[s--]=F.selector(n),"string"==typeof n&&a.splice(s+1,1)):a.splice(s--,1);else this._propLookup={},this._siblings=tt(e,this,!1),1===l&&this._siblings.length>1&&it(e,this,null,1,this._siblings);(this.vars.immediateRender||0===i&&0===this._delay&&this.vars.immediateRender!==!1)&&(this._time=-_,this.render(Math.min(0,-this._delay)))},!0),L=function(e){return e&&e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType)},X=function(t,e){var i,r={};for(i in t)H[i]||i in e&&"transform"!==i&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"className"!==i&&"border"!==i||!(!G[i]||G[i]&&G[i]._autoCSS)||(r[i]=t[i],delete t[i]);t.css=r};h=F.prototype=new M,h.constructor=F,h.kill()._gc=!1,h.ratio=0,h._firstPT=h._targets=h._overwrittenProps=h._startAt=null,h._notifyPluginsOfEnabled=h._lazy=!1,F.version="1.20.3",F.defaultEase=h._ease=new b(null,null,1,1),F.defaultOverwrite="auto",F.ticker=u,F.autoSleep=120,F.lagSmoothing=function(t,e){u.lagSmoothing(t,e)},F.selector=t.$||t.jQuery||function(e){var i=t.$||t.jQuery;return i?(F.selector=i,i(e)):"undefined"==typeof n?e:n.querySelectorAll?n.querySelectorAll(e):n.getElementById("#"===e.charAt(0)?e.substr(1):e)};var I=[],z={},E=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,B=/[\+-]=-?[\.\d]/,Y=function(t){for(var e,i=this._firstPT,r=1e-6;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(e,this._target||i.t):r>e&&e>-r&&!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},j=function(t,e,i,r){var s,n,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,s=t.match(E)||[],n=e.match(E)||[],r&&(r._next=null,r.blob=1,p._firstPT=p._applyPT=r),l=n.length,o=0;l>o;o++)u=n[o],h=e.substr(f,e.indexOf(u,f)-f),c+=h||!o?h:",",f+=h.length,_?_=(_+1)%5:"rgba("===h.substr(-5)&&(_=1),u===s[o]||s.length<=o?c+=u:(c&&(p.push(c),c=""),a=parseFloat(s[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:0}),f+=u.length;return c+=e.substr(f),c&&p.push(c),p.setRatio=Y,B.test(e)&&(p.end=null),p},V=function(t,e,i,r,s,n,a,o,l){"function"==typeof r&&(r=r(l||0,t));var h,u=typeof t[e],p="function"!==u?"":e.indexOf("set")||"function"!=typeof t["get"+e.substr(3)]?e:"get"+e.substr(3),f="get"!==i?i:p?a?t[p](a):t[p]():t[e],c="string"==typeof r&&"="===r.charAt(1),_={t:t,p:e,s:f,f:"function"===u,pg:0,n:s||e,m:n?"function"==typeof n?n:Math.round:0,pr:0,c:c?parseInt(r.charAt(0)+"1",10)*parseFloat(r.substr(2)):parseFloat(r)-f||0};return("number"!=typeof f||"number"!=typeof r&&!c)&&(a||isNaN(f)||!c&&isNaN(r)||"boolean"==typeof f||"boolean"==typeof r?(_.fp=a,h=j(f,c?parseFloat(_.s)+_.c:r,o||F.defaultStringFilter,_),_={t:h,p:"setRatio",s:0,c:1,f:2,pg:0,n:s||e,pr:0,m:0}):(_.s=parseFloat(f),c||(_.c=parseFloat(r)-_.s||0))),_.c?((_._next=this._firstPT)&&(_._next._prev=_),this._firstPT=_,_):void 0},W=F._internals={isArray:g,isSelector:L,lazyTweens:I,blobDif:j},G=F._plugins={},U=W.tweenLookup={},q=0,H=W.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},Z={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},$=M._rootFramesTimeline=new D,Q=M._rootTimeline=new D,K=30,J=W.lazyRender=function(){var t,e=I.length;for(z={};--e>-1;)t=I[e],t&&t._lazy!==!1&&(t.render(t._lazy[0],t._lazy[1],!0),t._lazy=!1);I.length=0};Q._startTime=u.time,$._startTime=u.frame,Q._active=$._active=!0,setTimeout(J,1),M._updateRoot=F.render=function(){var t,e,i;if(I.length&&J(),Q.render((u.time-Q._startTime)*Q._timeScale,!1,!1),$.render((u.frame-$._startTime)*$._timeScale,!1,!1),I.length&&J(),u.frame>=K){K=u.frame+(parseInt(F.autoSleep,10)||120);for(i in U){for(e=U[i].tweens,t=e.length;--t>-1;)e[t]._gc&&e.splice(t,1);0===e.length&&delete U[i]}if(i=Q._first,(!i||i._paused)&&F.autoSleep&&!$._first&&1===u._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||u.sleep()}}},u.addEventListener("tick",M._updateRoot);var tt=function(t,e,i){var r,s,n=t._gsTweenID;if(U[n||(t._gsTweenID=n="t"+q++)]||(U[n]={target:t,tweens:[]}),e&&(r=U[n].tweens,r[s=r.length]=e,i))for(;--s>-1;)r[s]===e&&r.splice(s,1);return U[n].tweens},et=function(t,e,i,r){var s,n,a=t.vars.onOverwrite;return a&&(s=a(t,e,i,r)),a=F.onOverwrite,a&&(n=a(t,e,i,r)),s!==!1&&n!==!1},it=function(t,e,i,r,s){var n,a,o,l;if(1===r||r>=4){for(l=s.length,n=0;l>n;n++)if((o=s[n])!==e)o._gc||o._kill(null,t,e)&&(a=!0);else if(5===r)break;return a}var h,u=e._startTime+_,p=[],f=0,c=0===e._duration;for(n=s.length;--n>-1;)(o=s[n])===e||o._gc||o._paused||(o._timeline!==e._timeline?(h=h||rt(e,0,c),0===rt(o,h,c)&&(p[f++]=o)):o._startTime<=u&&o._startTime+o.totalDuration()/o._timeScale>u&&((c||!o._initted)&&u-o._startTime<=2e-10||(p[f++]=o)));for(n=f;--n>-1;)if(o=p[n],2===r&&o._kill(i,t,e)&&(a=!0),2!==r||!o._firstPT&&o._initted){if(2!==r&&!et(o,e))continue;o._enabled(!1,!1)&&(a=!0)}return a},rt=function(t,e,i){for(var r=t._timeline,s=r._timeScale,n=t._startTime;r._timeline;){if(n+=r._startTime,s*=r._timeScale,r._paused)return-100;r=r._timeline}return n/=s,n>e?n-e:i&&n===e||!t._initted&&2*_>n-e?_:(n+=t.totalDuration()/t._timeScale/s)>e+_?0:n-e-_};h._init=function(){var t,e,i,r,s,n,a=this.vars,o=this._overwrittenProps,l=this._duration,h=!!a.immediateRender,u=a.ease;if(a.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),s={};for(r in a.startAt)s[r]=a.startAt[r];if(s.data="isStart",s.overwrite=!1,s.immediateRender=!0,s.lazy=h&&a.lazy!==!1,s.startAt=s.delay=null,s.onUpdate=a.onUpdate,s.onUpdateParams=a.onUpdateParams,s.onUpdateScope=a.onUpdateScope||a.callbackScope||this,this._startAt=F.to(this.target,0,s),h)if(this._time>0)this._startAt=null;else if(0!==l)return}else if(a.runBackwards&&0!==l)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{0!==this._time&&(h=!1),i={};for(r in a)H[r]&&"autoCSS"!==r||(i[r]=a[r]);if(i.overwrite=0,i.data="isFromStart",i.lazy=h&&a.lazy!==!1,i.immediateRender=h,this._startAt=F.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]||F.defaultEase:F.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(n=this._targets.length,t=0;n>t;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&&F._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},h._initProps=function(e,i,r,s,n){var a,o,l,h,u,p;if(null==e)return!1;z[e._gsTweenID]&&J(),this.vars.css||e.style&&e!==t&&e.nodeType&&G.css&&this.vars.autoCSS!==!1&&X(this.vars,e);for(a in this.vars)if(p=this.vars[a],H[a])p&&(p instanceof Array||p.push&&g(p))&&-1!==p.join("").indexOf("{self}")&&(this.vars[a]=p=this._swapSelfInParams(p,this));else if(G[a]&&(h=new G[a])._onInitTween(e,this.vars[a],this,n)){for(this._firstPT=u={_next:this._firstPT,t:h,p:"setRatio",s:0,c:1,f:1,n:a,pg:1,pr:h._priority,m:0},o=h._overwriteProps.length;--o>-1;)i[h._overwriteProps[o]]=this._firstPT;(h._priority||h._onInitAllProps)&&(l=!0),(h._onDisable||h._onEnable)&&(this._notifyPluginsOfEnabled=!0),u._next&&(u._next._prev=u)}else i[a]=V.call(this,e,a,"get",p,a,0,null,this.vars.stringFilter,n);return s&&this._kill(s,e)?this._initProps(e,i,r,s,n):this._overwrite>1&&this._firstPT&&r.length>1&&it(e,this,i,this._overwrite,r)?(this._kill(i,e),this._initProps(e,i,r,s,n)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(z[e._gsTweenID]=!0),l)},h.render=function(t,e,i){var r,s,n,a,o=this._time,l=this._duration,h=this._rawPrevTime;if(t>=l-1e-7&&t>=0)this._totalTime=this._time=l,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(r=!0,s="onComplete",i=i||this._timeline.autoRemoveChildren),0===l&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(0>h||0>=t&&t>=-1e-7||h===_&&"isPause"!==this.data)&&h!==t&&(i=!0,h>_&&(s="onReverseComplete")),this._rawPrevTime=a=!e||t||h===t?t:_);else if(1e-7>t)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==o||0===l&&h>0)&&(s="onReverseComplete",r=this._reversed),0>t&&(this._active=!1,0===l&&(this._initted||!this.vars.lazy||i)&&(h>=0&&(h!==_||"isPause"!==this.data)&&(i=!0),this._rawPrevTime=a=!e||t||h===t?t:_)),(!this._initted||this._startAt&&this._startAt.progress())&&(i=!0);else if(this._totalTime=this._time=t,this._easeType){var u=t/l,p=this._easeType,f=this._easePower;(1===p||3===p&&u>=.5)&&(u=1-u),3===p&&(u*=2),1===f?u*=u:2===f?u*=u*u:3===f?u*=u*u*u:4===f&&(u*=u*u*u*u),1===p?this.ratio=1-u:2===p?this.ratio=u:.5>t/l?this.ratio=u/2:this.ratio=1-u/2}else this.ratio=this._ease.getRatio(t/l);if(this._time!==o||i){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=o,this._rawPrevTime=h,I.push(this),void(this._lazy=[t,e]);this._time&&!r?this.ratio=this._ease.getRatio(this._time/l):r&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==o&&t>=0&&(this._active=!0),0===o&&(this._startAt&&(t>=0?this._startAt.render(t,!0,i):s||(s="_dummyGS")),this.vars.onStart&&(0!==this._time||0===l)&&(e||this._callback("onStart"))),n=this._firstPT;n;)n.f?n.t[n.p](n.c*this.ratio+n.s):n.t[n.p]=n.c*this.ratio+n.s,n=n._next;this._onUpdate&&(0>t&&this._startAt&&t!==-1e-4&&this._startAt.render(t,!0,i),e||(this._time!==o||r||i)&&this._callback("onUpdate")),s&&(!this._gc||i)&&(0>t&&this._startAt&&!this._onUpdate&&t!==-1e-4&&this._startAt.render(t,!0,i),r&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[s]&&this._callback(s),0===l&&this._rawPrevTime===_&&a!==_&&(this._rawPrevTime=0))}},h._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:F.selector(e)||e;var r,s,n,a,o,l,h,u,p,f=i&&this._time&&i._startTime===this._startTime&&this._timeline===i._timeline;if((g(e)||L(e))&&"number"!=typeof e[0])for(r=e.length;--r>-1;)this._kill(t,e[r],i)&&(l=!0);else{if(this._targets){for(r=this._targets.length;--r>-1;)if(e===this._targets[r]){o=this._propLookup[r]||{},this._overwrittenProps=this._overwrittenProps||[],s=this._overwrittenProps[r]=t?this._overwrittenProps[r]||{}:"all";break}}else{if(e!==this.target)return!1;o=this._propLookup,s=this._overwrittenProps=t?this._overwrittenProps||{}:"all"}if(o){if(h=t||o,u=t!==s&&"all"!==s&&t!==o&&("object"!=typeof t||!t._tempKill),i&&(F.onOverwrite||this.vars.onOverwrite)){for(n in h)o[n]&&(p||(p=[]),p.push(n));if((p||!t)&&!et(this,i,e,p))return!1}for(n in h)(a=o[n])&&(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[n]),u&&(s[n]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return l},h.invalidate=function(){return this._notifyPluginsOfEnabled&&F._onPluginEvent("_onDisable",this),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=-_,this.render(Math.min(0,-this._delay))),this},h._enabled=function(t,e){if(p||u.wake(),t&&this._gc){var i,r=this._targets;if(r)for(i=r.length;--i>-1;)this._siblings[i]=tt(r[i],this,!0);else this._siblings=tt(this.target,this,!0)}return M.prototype._enabled.call(this,t,e),this._notifyPluginsOfEnabled&&this._firstPT?F._onPluginEvent(t?"_onEnable":"_onDisable",this):!1},F.to=function(t,e,i){return new F(t,e,i)},F.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new F(t,e,i)},F.fromTo=function(t,e,i,r){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,new F(t,e,r)},F.delayedCall=function(t,e,i,r,s){return new F(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:r,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,lazy:!1,useFrames:s,overwrite:0})},F.set=function(t,e){return new F(t,0,e)},F.getTweensOf=function(t,e){if(null==t)return[];t="string"!=typeof t?t:F.selector(t)||t;var i,r,s,n;if((g(t)||L(t))&&"number"!=typeof t[0]){for(i=t.length,r=[];--i>-1;)r=r.concat(F.getTweensOf(t[i],e));for(i=r.length;--i>-1;)for(n=r[i],s=i;--s>-1;)n===r[s]&&r.splice(i,1)}else if(t._gsTweenID)for(r=tt(t).concat(),i=r.length;--i>-1;)(r[i]._gc||e&&!r[i].isActive())&&r.splice(i,1);return r||[]},F.killTweensOf=F.killDelayedCallsTo=function(t,e,i){"object"==typeof e&&(i=e,e=!1);for(var r=F.getTweensOf(t,e),s=r.length;--s>-1;)r[s]._kill(i,t)};var st=T("plugins.TweenPlugin",function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=st.prototype},!0);if(h=st.prototype,st.version="1.19.0",st.API=2,h._firstPT=null,h._addTween=V,h.setRatio=Y,h._kill=function(t){var e,i=this._overwriteProps,r=this._firstPT;if(null!=t[this._propName])this._overwriteProps=[];else for(e=i.length;--e>-1;)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},h._mod=h._roundProps=function(t){for(var e,i=this._firstPT;i;)e=t[this._propName]||null!=i.n&&t[i.n.split(this._propName+"_").join("")],e&&"function"==typeof e&&(2===i.f?i.t._applyPT.m=e:i.m=e),i=i._next},F._onPluginEvent=function(t,e){var i,r,s,n,a,o=e._firstPT;if("_onInitAllProps"===t){for(;o;){for(a=o._next,r=s;r&&r.pr>o.pr;)r=r._next;(o._prev=r?r._prev:n)?o._prev._next=o:s=o,(o._next=r)?r._prev=o:n=o,o=a}o=e._firstPT=s}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;--e>-1;)t[e].API===st.API&&(G[(new t[e])._propName]=t[e]);return!0},x.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e,i=t.propName,r=t.priority||0,s=t.overwriteProps,n={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},a=T("plugins."+i.charAt(0).toUpperCase()+i.substr(1)+"Plugin",function(){st.call(this,i,r),this._overwriteProps=s||[]},t.global===!0),o=a.prototype=new st(i);o.constructor=a,a.API=t.API;for(e in n)"function"==typeof t[e]&&(o[n[e]]=t[e]);return a.version=t.version,st.activate([a]),a},o=t._gsQueue){for(l=0;l<o.length;l++)o[l]();for(h in v)v[h].func||t.console.log("GSAP encountered missing dependency: "+h)}p=!1}}("undefined"!=typeof i&&i.exports&&"undefined"!=typeof global?global:this||window,"TweenLite"),s._gsQueue.push(function(){"use strict";s._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(t,e,i){var r=function(t){e.call(this,t),this._labels={},this.autoRemoveChildren=this.vars.autoRemoveChildren===!0,this.smoothChildTiming=this.vars.smoothChildTiming===!0,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var i,r,s=this.vars;for(r in s)i=s[r],h(i)&&-1!==i.join("").indexOf("{self}")&&(s[r]=this._swapSelfInParams(i));h(s.tweens)&&this.add(s.tweens,0,s.align,s.stagger)},n=1e-10,a=i._internals,o=r._internals={},l=a.isSelector,h=a.isArray,u=a.lazyTweens,p=a.lazyRender,f=s._gsDefine.globals,c=function(t){var e,i={};for(e in t)i[e]=t[e];return i},_=function(t,e,i){var r,s,n=t.cycle;for(r in n)s=n[r],t[r]="function"==typeof s?s(i,e[i]):s[i%s.length];delete t.cycle},d=o.pauseCallback=function(){},m=function(t){var e,i=[],r=t.length;for(e=0;e!==r;i.push(t[e++]));return i},g=r.prototype=new e;return r.version="1.20.3",g.constructor=r,g.kill()._gc=g._forcingPlayhead=g._hasPause=!1,g.to=function(t,e,r,s){var n=r.repeat&&f.TweenMax||i;return e?this.add(new n(t,e,r),s):this.set(t,r,s)},g.from=function(t,e,r,s){return this.add((r.repeat&&f.TweenMax||i).from(t,e,r),s)},g.fromTo=function(t,e,r,s,n){var a=s.repeat&&f.TweenMax||i;return e?this.add(a.fromTo(t,e,r,s),n):this.set(t,s,n)},g.staggerTo=function(t,e,s,n,a,o,h,u){var p,f,d=new r({onComplete:o,onCompleteParams:h,callbackScope:u,smoothChildTiming:this.smoothChildTiming}),g=s.cycle;for("string"==typeof t&&(t=i.selector(t)||t),t=t||[],l(t)&&(t=m(t)),n=n||0,0>n&&(t=m(t),t.reverse(),n*=-1),f=0;f<t.length;f++)p=c(s),p.startAt&&(p.startAt=c(p.startAt),p.startAt.cycle&&_(p.startAt,t,f)),g&&(_(p,t,f),null!=p.duration&&(e=p.duration,delete p.duration)),d.to(t[f],e,p,f*n);return this.add(d,a)},g.staggerFrom=function(t,e,i,r,s,n,a,o){return i.immediateRender=0!=i.immediateRender,i.runBackwards=!0,this.staggerTo(t,e,i,r,s,n,a,o)},g.staggerFromTo=function(t,e,i,r,s,n,a,o,l){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,this.staggerTo(t,e,r,s,n,a,o,l)},g.call=function(t,e,r,s){return this.add(i.delayedCall(0,t,e,r),s)},g.set=function(t,e,r){return r=this._parseTimeOrLabel(r,0,!0),null==e.immediateRender&&(e.immediateRender=r===this._time&&!this._paused),this.add(new i(t,0,e),r)},r.exportRoot=function(t,e){t=t||{},null==t.smoothChildTiming&&(t.smoothChildTiming=!0);var s,n,a,o,l=new r(t),h=l._timeline;for(null==e&&(e=!0),h._remove(l,!0),l._startTime=0,l._rawPrevTime=l._time=l._totalTime=h._time,a=h._first;a;)o=a._next,e&&a instanceof i&&a.target===a.vars.onComplete||(n=a._startTime-a._delay,0>n&&(s=1),l.add(a,n)),a=o;return h.add(l,0),s&&l.totalDuration(),l},g.add=function(s,n,a,o){var l,u,p,f,c,_;if("number"!=typeof n&&(n=this._parseTimeOrLabel(n,0,!0,s)),!(s instanceof t)){if(s instanceof Array||s&&s.push&&h(s)){for(a=a||"normal",o=o||0,l=n,u=s.length,p=0;u>p;p++)h(f=s[p])&&(f=new r({tweens:f})),this.add(f,l),"string"!=typeof f&&"function"!=typeof f&&("sequence"===a?l=f._startTime+f.totalDuration()/f._timeScale:"start"===a&&(f._startTime-=f.delay())),l+=o;return this._uncache(!0)}if("string"==typeof s)return this.addLabel(s,n);if("function"!=typeof s)throw"Cannot add "+s+" into the timeline; it is not a tween, timeline, function, or string.";s=i.delayedCall(0,s)}if(e.prototype.add.call(this,s,n),s._time&&s.render((this.rawTime()-s._startTime)*s._timeScale,!1,!1),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(c=this,_=c.rawTime()>s._startTime;c._timeline;)_&&c._timeline.smoothChildTiming?c.totalTime(c._totalTime,!0):c._gc&&c._enabled(!0,!1),c=c._timeline;return this},g.remove=function(e){if(e instanceof t){this._remove(e,!1);var i=e._timeline=e.vars.useFrames?t._rootFramesTimeline:t._rootTimeline;return e._startTime=(e._paused?e._pauseTime:i._time)-(e._reversed?e.totalDuration()-e._totalTime:e._totalTime)/e._timeScale,this}if(e instanceof Array||e&&e.push&&h(e)){for(var r=e.length;--r>-1;)this.remove(e[r]);return this}return"string"==typeof e?this.removeLabel(e):this.kill(null,e)},g._remove=function(t,i){e.prototype._remove.call(this,t,i);var r=this._last;return r?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},g.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))},g.insert=g.insertMultiple=function(t,e,i,r){return this.add(t,e||0,i,r)},g.appendMultiple=function(t,e,i,r){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),i,r)},g.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},g.addPause=function(t,e,r,s){var n=i.delayedCall(0,d,r,s||this);return n.vars.onComplete=n.vars.onReverseComplete=e,n.data="isPause",this._hasPause=!0,this.add(n,t)},g.removeLabel=function(t){return delete this._labels[t],this},g.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:-1},g._parseTimeOrLabel=function(e,i,r,s){var n,a;if(s instanceof t&&s.timeline===this)this.remove(s);else if(s&&(s instanceof Array||s.push&&h(s)))for(a=s.length;--a>-1;)s[a]instanceof t&&s[a].timeline===this&&this.remove(s[a]);if(n="number"!=typeof e||i?this.duration()>99999999999?this.recent().endTime(!1):this._duration:0,"string"==typeof i)return this._parseTimeOrLabel(i,r&&"number"==typeof e&&null==this._labels[i]?e-n:0,r);if(i=i||0,"string"!=typeof e||!isNaN(e)&&null==this._labels[e])null==e&&(e=n);else{if(a=e.indexOf("="),-1===a)return null==this._labels[e]?r?this._labels[e]=n+i:i:this._labels[e]+i;i=parseInt(e.charAt(a-1)+"1",10)*Number(e.substr(a+1)),e=a>1?this._parseTimeOrLabel(e.substr(0,a-1),0,r):n}return Number(e)+i},g.seek=function(t,e){return this.totalTime("number"==typeof t?t:this._parseTimeOrLabel(t),e!==!1)},g.stop=function(){return this.paused(!0)},g.gotoAndPlay=function(t,e){return this.play(t,e)},g.gotoAndStop=function(t,e){return this.pause(t,e)},g.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var r,s,a,o,l,h,f,c=this._time,_=this._dirty?this.totalDuration():this._totalDuration,d=this._startTime,m=this._timeScale,g=this._paused;if(c!==this._time&&(t+=this._time-c),t>=_-1e-7&&t>=0)this._totalTime=this._time=_,this._reversed||this._hasPausedChild()||(s=!0,o="onComplete",l=!!this._timeline.autoRemoveChildren,0===this._duration&&(0>=t&&t>=-1e-7||this._rawPrevTime<0||this._rawPrevTime===n)&&this._rawPrevTime!==t&&this._first&&(l=!0,this._rawPrevTime>n&&(o="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:n,t=_+1e-4;else if(1e-7>t)if(this._totalTime=this._time=0,(0!==c||0===this._duration&&this._rawPrevTime!==n&&(this._rawPrevTime>0||0>t&&this._rawPrevTime>=0))&&(o="onReverseComplete",s=this._reversed),0>t)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(l=s=!0,o="onReverseComplete"):this._rawPrevTime>=0&&this._first&&(l=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:n,0===t&&s)for(r=this._first;r&&0===r._startTime;)r._duration||(s=!1),r=r._next;t=0,this._initted||(l=!0)}else{if(this._hasPause&&!this._forcingPlayhead&&!e){if(t>=c)for(r=this._first;r&&r._startTime<=t&&!h;)r._duration||"isPause"!==r.data||r.ratio||0===r._startTime&&0===this._rawPrevTime||(h=r),r=r._next;else for(r=this._last;r&&r._startTime>=t&&!h;)r._duration||"isPause"===r.data&&r._rawPrevTime>0&&(h=r),r=r._prev;h&&(this._time=t=h._startTime,this._totalTime=t+this._cycle*(this._totalDuration+this._repeatDelay))}this._totalTime=this._time=this._rawPrevTime=t}if(this._time!==c&&this._first||i||l||h){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==c&&t>0&&(this._active=!0),0===c&&this.vars.onStart&&(0===this._time&&this._duration||e||this._callback("onStart")),f=this._time,f>=c)for(r=this._first;r&&(a=r._next,f===this._time&&(!this._paused||g));)(r._active||r._startTime<=f&&!r._paused&&!r._gc)&&(h===r&&this.pause(),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=a;else for(r=this._last;r&&(a=r._prev,f===this._time&&(!this._paused||g));){if(r._active||r._startTime<=c&&!r._paused&&!r._gc){if(h===r){for(h=r._prev;h&&h.endTime()>this._time;)h.render(h._reversed?h.totalDuration()-(t-h._startTime)*h._timeScale:(t-h._startTime)*h._timeScale,e,i),h=h._prev;h=null,this.pause()}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=a}this._onUpdate&&(e||(u.length&&p(),this._callback("onUpdate"))),o&&(this._gc||(d===this._startTime||m!==this._timeScale)&&(0===this._time||_>=this.totalDuration())&&(s&&(u.length&&p(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[o]&&this._callback(o)))}},g._hasPausedChild=function(){for(var t=this._first;t;){if(t._paused||t instanceof r&&t._hasPausedChild())return!0;t=t._next}return!1},g.getChildren=function(t,e,r,s){s=s||-9999999999;for(var n=[],a=this._first,o=0;a;)a._startTime<s||(a instanceof i?e!==!1&&(n[o++]=a):(r!==!1&&(n[o++]=a),t!==!1&&(n=n.concat(a.getChildren(!0,e,r)),o=n.length))),a=a._next;return n},g.getTweensOf=function(t,e){var r,s,n=this._gc,a=[],o=0;for(n&&this._enabled(!0,!0),r=i.getTweensOf(t),s=r.length;--s>-1;)(r[s].timeline===this||e&&this._contains(r[s]))&&(a[o++]=r[s]);return n&&this._enabled(!1,!0),a},g.recent=function(){return this._recent},g._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},g.shiftChildren=function(t,e,i){i=i||0;for(var r,s=this._first,n=this._labels;s;)s._startTime>=i&&(s._startTime+=t),s=s._next;if(e)for(r in n)n[r]>=i&&(n[r]+=t);return this._uncache(!0)},g._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,s=!1;--r>-1;)i[r]._kill(t,e)&&(s=!0);return s},g.clear=function(t){var e=this.getChildren(!1,!0,!0),i=e.length;for(this._time=this._totalTime=0;--i>-1;)e[i]._enabled(!1,!1);return t!==!1&&(this._labels={}),this._uncache(!0)},g.invalidate=function(){for(var e=this._first;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},g._enabled=function(t,i){if(t===this._gc)for(var r=this._first;r;)r._enabled(t,!0),r=r._next;return e.prototype._enabled.call(this,t,i)},g.totalTime=function(e,i,r){this._forcingPlayhead=!0;var s=t.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,s},g.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},g.totalDuration=function(t){if(!arguments.length){if(this._dirty){for(var e,i,r=0,s=this._last,n=999999999999;s;)e=s._prev,s._dirty&&s.totalDuration(),s._startTime>n&&this._sortChildren&&!s._paused&&!this._calculatingDuration?(this._calculatingDuration=1,this.add(s,s._startTime-s._delay),this._calculatingDuration=0):n=s._startTime,s._startTime<0&&!s._paused&&(r-=s._startTime,this._timeline.smoothChildTiming&&(this._startTime+=s._startTime/this._timeScale,this._time-=s._startTime,this._totalTime-=s._startTime,this._rawPrevTime-=s._startTime),this.shiftChildren(-s._startTime,!1,-9999999999),n=0),i=s._startTime+s._totalDuration/s._timeScale,i>r&&(r=i),s=e;this._duration=this._totalDuration=r,this._dirty=!1}return this._totalDuration}return t&&this.totalDuration()?this.timeScale(this._totalDuration/t):this},g.paused=function(e){if(!e)for(var i=this._first,r=this._time;i;)i._startTime===r&&"isPause"===i.data&&(i._rawPrevTime=0),i=i._next;return t.prototype.paused.apply(this,arguments)},g.usesFrames=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===t._rootFramesTimeline},g.rawTime=function(t){return t&&(this._paused||this._repeat&&this.time()>0&&this.totalProgress()<1)?this._totalTime%(this._duration+this._repeatDelay):this._paused?this._totalTime:(this._timeline.rawTime(t)-this._startTime)*this._timeScale},r},!0)}),s._gsDefine&&s._gsQueue.pop()(),!function(t){"use strict";var e=t.GreenSockGlobals||t,i=function(t){var i,r=t.split("."),s=e;for(i=0;i<r.length;i++)s[r[i]]=s=s[r[i]]||{};return s},r=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},n=document,a=n.defaultView?n.defaultView.getComputedStyle:function(){},o=/([A-Z])/g,l=function(t,e,i,r){var s;return(i=i||a(t,null))?(t=i.getPropertyValue(e.replace(o,"-$1").toLowerCase()),s=t||i.length?t:i[e]):t.currentStyle&&(i=t.currentStyle,s=i[e]),r?s:parseInt(s,10)||0},h=function(t){return!!(t.length&&t[0]&&(t[0].nodeType&&t[0].style&&!t.nodeType||t[0].length&&t[0][0]))},u=function(t){var e,i,r,s=[],n=t.length;for(e=0;n>e;e++)if(i=t[e],h(i))for(r=i.length,r=0;r<i.length;r++)s.push(i[r]);else s.push(i);return s},p=/(?:\r|\n|\t\t)/g,f=/(?:\s\s+)/g,c=55296,_=56319,d=56320,m=127462,g=127487,v=127995,y=127999,x=function(t){return(t.charCodeAt(0)-c<<10)+(t.charCodeAt(1)-d)+65536},T=n.all&&!n.addEventListener,w=" style='position:relative;display:inline-block;"+(T?"*display:inline;*zoom:1;'":"'"),b=function(t,e){t=t||"";var i=-1!==t.indexOf("++"),r=1;return i&&(t=t.split("++").join("")),function(){return"<"+e+w+(t?" class='"+t+(i?r++:"")+"'>":">")}},P=r.SplitText=e.SplitText=function(t,e){if("string"==typeof t&&(t=P.selector(t)),!t)throw"cannot split a null element.";this.elements=h(t)?u(t):[t],this.chars=[],this.words=[],this.lines=[],this._originals=[],this.vars=e||{},this.split(e)},O=function(t,e,i){var r=t.nodeType;if(1===r||9===r||11===r)for(t=t.firstChild;t;t=t.nextSibling)O(t,e,i);else(3===r||4===r)&&(t.nodeValue=t.nodeValue.split(e).join(i))},S=function(t,e){for(var i=e.length;--i>-1;)t.push(e[i])},A=function(t){var e,i=[],r=t.length;for(e=0;e!==r;i.push(t[e++]));return i},C=function(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},k=function(t){var e,i,r=A(t.childNodes),s=r.length;for(e=0;s>e;e++)i=r[e],i._isSplit?k(i):(e&&3===i.previousSibling.nodeType?i.previousSibling.nodeValue+=3===i.nodeType?i.nodeValue:i.firstChild.nodeValue:3!==i.nodeType&&t.insertBefore(i.firstChild,i),t.removeChild(i))},R=function(t,e,i,r,s,o,h){var u,p,f,c,_,d,m,g,v,y,x,T,w=a(t),b=l(t,"paddingLeft",w),P=-999,A=l(t,"borderBottomWidth",w)+l(t,"borderTopWidth",w),R=l(t,"borderLeftWidth",w)+l(t,"borderRightWidth",w),M=l(t,"paddingTop",w)+l(t,"paddingBottom",w),N=l(t,"paddingLeft",w)+l(t,"paddingRight",w),D=.2*l(t,"fontSize"),F=l(t,"textAlign",w,!0),L=[],X=[],I=[],z=e.wordDelimiter||" ",E=e.span?"span":"div",B=e.type||e.split||"chars,words,lines",Y=s&&-1!==B.indexOf("lines")?[]:null,j=-1!==B.indexOf("words"),V=-1!==B.indexOf("chars"),W="absolute"===e.position||e.absolute===!0,G=e.linesClass,U=-1!==(G||"").indexOf("++"),q=[];for(Y&&1===t.children.length&&t.children[0]._isSplit&&(t=t.children[0]),U&&(G=G.split("++").join("")),p=t.getElementsByTagName("*"),f=p.length,_=[],u=0;f>u;u++)_[u]=p[u];if(Y||W)for(u=0;f>u;u++)c=_[u],d=c.parentNode===t,(d||W||V&&!j)&&(T=c.offsetTop,Y&&d&&Math.abs(T-P)>D&&("BR"!==c.nodeName||0===u)&&(m=[],Y.push(m),P=T),W&&(c._x=c.offsetLeft,c._y=T,c._w=c.offsetWidth,c._h=c.offsetHeight),Y&&((c._isSplit&&d||!V&&d||j&&d||!j&&c.parentNode.parentNode===t&&!c.parentNode._isSplit)&&(m.push(c),c._x-=b,C(c,t,z)&&(c._wordEnd=!0)),"BR"===c.nodeName&&(c.nextSibling&&"BR"===c.nextSibling.nodeName||0===u)&&Y.push([])));for(u=0;f>u;u++)c=_[u],d=c.parentNode===t,"BR"!==c.nodeName?(W&&(v=c.style,j||d||(c._x+=c.parentNode._x,c._y+=c.parentNode._y),v.left=c._x+"px",v.top=c._y+"px",v.position="absolute",v.display="block",v.width=c._w+1+"px",v.height=c._h+"px"),!j&&V?c._isSplit?(c._next=c.nextSibling,c.parentNode.appendChild(c)):c.parentNode._isSplit?(c._parent=c.parentNode,!c.previousSibling&&c.firstChild&&(c.firstChild._isFirst=!0),c.nextSibling&&" "===c.nextSibling.textContent&&!c.nextSibling.nextSibling&&q.push(c.nextSibling),c._next=c.nextSibling&&c.nextSibling._isFirst?null:c.nextSibling,c.parentNode.removeChild(c),_.splice(u--,1),f--):d||(T=!c.nextSibling&&C(c.parentNode,t,z),c.parentNode._parent&&c.parentNode._parent.appendChild(c),T&&c.parentNode.appendChild(n.createTextNode(" ")),e.span&&(c.style.display="inline"),L.push(c)):c.parentNode._isSplit&&!c._isSplit&&""!==c.innerHTML?X.push(c):V&&!c._isSplit&&(e.span&&(c.style.display="inline"),L.push(c))):Y||W?(c.parentNode&&c.parentNode.removeChild(c),_.splice(u--,1),f--):j||t.appendChild(c);for(u=q.length;--u>-1;)q[u].parentNode.removeChild(q[u]);if(Y){for(W&&(y=n.createElement(E),t.appendChild(y),x=y.offsetWidth+"px",T=y.offsetParent===t?0:t.offsetLeft,t.removeChild(y)),v=t.style.cssText,t.style.cssText="display:none;";t.firstChild;)t.removeChild(t.firstChild);for(g=" "===z&&(!W||!j&&!V),u=0;u<Y.length;u++){for(m=Y[u],y=n.createElement(E),y.style.cssText="display:block;text-align:"+F+";position:"+(W?"absolute;":"relative;"),G&&(y.className=G+(U?u+1:"")),I.push(y),f=m.length,p=0;f>p;p++)"BR"!==m[p].nodeName&&(c=m[p],y.appendChild(c),g&&c._wordEnd&&y.appendChild(n.createTextNode(" ")),W&&(0===p&&(y.style.top=c._y+"px",y.style.left=b+T+"px"),c.style.top="0px",T&&(c.style.left=c._x-T+"px")));0===f?y.innerHTML="&nbsp;":j||V||(k(y),O(y,String.fromCharCode(160)," ")),W&&(y.style.width=x,y.style.height=c._h+"px"),t.appendChild(y)}t.style.cssText=v}W&&(h>t.clientHeight&&(t.style.height=h-M+"px",t.clientHeight<h&&(t.style.height=h+A+"px")),o>t.clientWidth&&(t.style.width=o-N+"px",t.clientWidth<o&&(t.style.width=o+R+"px"))),S(i,L),S(r,X),S(s,I)},M=function(t,e,i,r){var a,o,l,h,u,d,T,w,b,P=e.span?"span":"div",S=e.type||e.split||"chars,words,lines",A=-1!==S.indexOf("chars"),C="absolute"===e.position||e.absolute===!0,k=e.wordDelimiter||" ",R=" "!==k?"":C?"&#173; ":" ",M=e.span?"</span>":"</div>",N=!0,D=n.createElement("div"),F=t.parentNode;for(F.insertBefore(D,t),D.textContent=t.nodeValue,F.removeChild(t),t=D,a=s(t),T=-1!==a.indexOf("<"),e.reduceWhiteSpace!==!1&&(a=a.replace(f," ").replace(p,"")),T&&(a=a.split("<").join("{{LT}}")),u=a.length,o=(" "===a.charAt(0)?R:"")+i(),l=0;u>l;l++)if(d=a.charAt(l),d===k&&a.charAt(l-1)!==k&&l){for(o+=N?M:"",N=!1;a.charAt(l+1)===k;)o+=R,l++;l===u-1?o+=R:")"!==a.charAt(l+1)&&(o+=R+i(),N=!0)}else"{"===d&&"{{LT}}"===a.substr(l,6)?(o+=A?r()+"{{LT}}</"+P+">":"{{LT}}",l+=5):d.charCodeAt(0)>=c&&d.charCodeAt(0)<=_||a.charCodeAt(l+1)>=65024&&a.charCodeAt(l+1)<=65039?(w=x(a.substr(l,2)),b=x(a.substr(l+2,2)),h=w>=m&&g>=w&&b>=m&&g>=b||b>=v&&y>=b?4:2,o+=A&&" "!==d?r()+a.substr(l,h)+"</"+P+">":a.substr(l,h),l+=h-1):o+=A&&" "!==d?r()+d+"</"+P+">":d;t.outerHTML=o+(N?M:""),T&&O(F,"{{LT}}","<")},N=function(t,e,i,r){var s,n,a=A(t.childNodes),o=a.length,h="absolute"===e.position||e.absolute===!0;if(3!==t.nodeType||o>1){for(e.absolute=!1,s=0;o>s;s++)n=a[s],(3!==n.nodeType||/\S+/.test(n.nodeValue))&&(h&&3!==n.nodeType&&"inline"===l(n,"display",null,!0)&&(n.style.display="inline-block",n.style.position="relative"),n._isSplit=!0,N(n,e,i,r));return e.absolute=h,void(t._isSplit=!0)}M(t,e,i,r)},D=P.prototype;D.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,s=this.elements.length,n=t.span?"span":"div",a=b(t.wordsClass,n),o=b(t.charsClass,n);--s>-1;)r=this.elements[s],this._originals[s]=r.innerHTML,e=r.clientHeight,i=r.clientWidth,N(r,t,a,o),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},D.revert=function(){if(!this._originals)throw"revert() call wasn't scoped properly.";for(var t=this._originals.length;--t>-1;)this.elements[t].innerHTML=this._originals[t];return this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this},P.selector=t.$||t.jQuery||function(e){var i=t.$||t.jQuery;return i?(P.selector=i,i(e)):"undefined"==typeof document?e:document.querySelectorAll?document.querySelectorAll(e):document.getElementById("#"===e.charAt(0)?e.substr(1):e)},P.version="0.5.8"}(s),!function(t){"use strict";var e=t._gsDefine.plugin({propName:"roundProps",version:"1.6.0",priority:-1,API:2,init:function(t,e,i){return this._tween=i,!0}}),i=function(t){for(;t;)t.f||t.blob||(t.m=Math.round),t=t._next},r=e.prototype;r._onInitAllProps=function(){for(var t,e,r,s=this._tween,n=s.vars.roundProps.join?s.vars.roundProps:s.vars.roundProps.split(","),a=n.length,o={},l=s._propLookup.roundProps;--a>-1;)o[n[a]]=Math.round;for(a=n.length;--a>-1;)for(t=n[a],e=s._firstPT;e;)r=e._next,e.pg?e.t._mod(o):e.n===t&&(2===e.f&&e.t?i(e.t._firstPT):(this._add(e.t,t,e.s,e.c),r&&(r._prev=e._prev),e._prev?e._prev._next=r:s._firstPT===e&&(s._firstPT=r),e._next=e._prev=null,s._propLookup[t]=l)),e=r;return!1},r._add=function(t,e,i,r){this._addTween(t,e,i,i+r,e,Math.round),this._overwriteProps.push(e)}}(s),window.NextendTimeline=this.TimelineLite,window.NextendTween=this.TweenLite,window.NextendSplitText=this.SplitText,s}),N2D("n2GSAPAutoAlpha","GSAP",function(t,e){N2Classes.GSAP._gsDefine.plugin({propName:"n2AutoAlpha",API:2,version:"1.0.1",overwriteProps:["n2AutoAlpha"],init:function(t,e,i,r){var s=window.getComputedStyle(t).opacity;return"function"==typeof e&&(e=e(r,t)),this._target=t,this._style=t.style,this._tween=this._addTween(t.style,"opacity",s,e,"n2AutoAlpha"),this._tween||(this._opacity=s),!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.setAttribute("data-force-hidden",""):this._target.hasAttribute("data-force-hidden")&&this._target.removeAttribute("data-force-hidden")}})}),N2D("n2GSAPBlur","GSAP",function(t,e){var i=document.createElement("div"),r=/Edge\/\d./i.test(navigator.userAgent)?!1:i.style.filter!==e?"filter":i.style.webkitFilter!==e?"webkitFilter":!1,s=r?"filter"==r?r:"-"+r.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,s){if(!r)return!0;"function"==typeof e&&(e=e(s,t));var n=window.getComputedStyle(t)[r],a="blur("+e+"px)";return"none"===n&&(n="blur(0px)"),this._style=t.style,this._remove=!e,n!=a&&this._addTween(t.style,r,n,a,"n2blur"),!0},set:function(t){this._super.setRatio.call(this,t),1===t&&this._remove&&this._style.removeProperty(s)}})}),N2D("nextend-gsap");(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("StringHelper",function(){return{capitalize:function(e){return e.charAt(0).toUpperCase()+e.slice(1)}}}),window.n2c=function(e){var t=!1,n={logs:[],errors:[],warns:[],infos:[]};return{log:function(){n.logs.push(arguments),t&&e.log&&e.log.apply(e,arguments)},warn:function(){n.warns.push(arguments),t&&e.warn&&e.warn.apply(e,arguments)},error:function(){n.errors.push(arguments),t&&e.error&&e.error.apply(e,arguments)},info:function(i){n.infos.push(arguments),t&&e.info&&e.info.apply(e,arguments)},debug:function(e){t=e},logArray:function(){return n}}}(window.console),window.n2const={passiveEvents:!1,devicePixelRatio:window.devicePixelRatio||1,isIOS:/iPad|iPhone|iPod/.test(navigator.platform),isEdge:/Edge\/\d./i.test(navigator.userAgent),isFirefox:navigator.userAgent.toLowerCase().indexOf("firefox")>-1,isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Silk/i.test(navigator.userAgent),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(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var o=e.indexOf("Edge/");return o>0?parseInt(e.substring(o+5,e.indexOf(".",o)),10):!1}(),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]+)\./)&&parseInt(navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./)[2])>=53||navigator.userAgent.match(/Android.*(Firefox|Edge|Opera)/));return window.n2const.isVideoAutoplayAllowed=function(){return e},e},isWaybackMachine:function(){var e="undefined"!=typeof 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}},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=function(){return window.n2const.isPhone?!1:/Android|iPad|tablet|Silk/i.test(navigator.userAgent)}();try{var opts=Object.defineProperty({},"passive",{get:function(){window.n2const.passiveEvents=!0}});window.addEventListener("test",null,opts)}catch(e){}window.n2const.rtl=function(){return window.n2const.isRTL=function(){return window.n2const.rtl.isRtl},"rtl"===document.documentElement.getAttribute("dir")?{isRtl:!0,marginLeft:"marginRight",marginRight:"marginLeft",left:"right",right:"left",next:"previous",previous:"next",modifier:-1}:(document.documentElement.setAttribute("dir","ltr"),{isRtl:!1,marginLeft:"marginLeft",marginRight:"marginRight",left:"left",right:"right",next:"next",previous:"previous",modifier:1})}(),N2R("$",function(e){n2const.isRetina=function(){return 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&&window.devicePixelRatio>=2}(),nextend.triggerResize=function(){var t=100,n=null,i=e(window);return function(){n&&clearTimeout(n),n=setTimeout(function(){i.trigger("resize"),n=null},t)}}(),nextend.shouldPreventClick=!1,nextend.preventClick=function(){nextend.shouldPreventClick||(nextend.shouldPreventClick=!0,setTimeout(function(){nextend.shouldPreventClick=!1},300))},nextend.shouldPreventMouseUp=!1,nextend.preventMouseUp=function(){nextend.shouldPreventMouseUp?e("html").attr("dir","ltr"):(nextend.shouldPreventMouseUp=!0,setTimeout(function(){nextend.shouldPreventMouseUp=!1},300))}}),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(){var e=function(e){e=e.replace(/\r\n/g,"\n");for(var t="",n=0;n<e.length;n++){var i=e.charCodeAt(n);128>i?t+=String.fromCharCode(i):i>127&&2048>i?(t+=String.fromCharCode(i>>6|192),t+=String.fromCharCode(63&i|128)):(t+=String.fromCharCode(i>>12|224),t+=String.fromCharCode(i>>6&63|128),t+=String.fromCharCode(63&i|128))}return t},t=function(e){for(var t="",n=0,i=c1=c2=0;n<e.length;)i=e.charCodeAt(n),128>i?(t+=String.fromCharCode(i),n++):i>191&&224>i?(c2=e.charCodeAt(n+1),t+=String.fromCharCode((31&i)<<6|63&c2),n+=2):(c2=e.charCodeAt(n+1),c3=e.charCodeAt(n+2),t+=String.fromCharCode((15&i)<<12|(63&c2)<<6|63&c3),n+=3);return t};return N2Classes.Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(t){var n,i,o,r,a,s,T,l="",S=0;for(t=e(t);S<t.length;)n=t.charCodeAt(S++),i=t.charCodeAt(S++),o=t.charCodeAt(S++),r=n>>2,a=(3&n)<<4|i>>4,s=(15&i)<<2|o>>6,T=63&o,isNaN(i)?s=T=64:isNaN(o)&&(T=64),l=l+this._keyStr.charAt(r)+this._keyStr.charAt(a)+this._keyStr.charAt(s)+this._keyStr.charAt(T);return l},decode:function(e){var n,i,o,r,a,s,T,l="",S=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");S<e.length;)r=this._keyStr.indexOf(e.charAt(S++)),a=this._keyStr.indexOf(e.charAt(S++)),s=this._keyStr.indexOf(e.charAt(S++)),T=this._keyStr.indexOf(e.charAt(S++)),n=r<<2|a>>4,i=(15&a)<<4|s>>2,o=(3&s)<<6|T,l+=String.fromCharCode(n),64!=s&&(l+=String.fromCharCode(i)),64!=T&&(l+=String.fromCharCode(o));return l=t(l)}},N2Classes.Base64}),!function(e,t){e(function(){"use strict";function e(e,t){return null!=e&&null!=t&&e.toLowerCase()===t.toLowerCase()}function n(e,t){var n,i,o=e.length;if(!o||!t)return!1;for(n=t.toLowerCase(),i=0;o>i;++i)if(n===e[i].toLowerCase())return!0;return!1}function i(e){for(var t in e)s.call(e,t)&&(e[t]=new RegExp(e[t],"i"))}function o(e,t){this.ua=e||"",this._cache={},this.maxPhoneWidth=t||600}var r={};r.mobileDetectRules={phones:{iPhone:"\\biPhone\\b|\\biPod\\b",BlackBerry:"BlackBerry|\\bBB10\\b|rim[0-9]+",HTC:"HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\\bEVO\\b|T-Mobile G1|Z520m",Nexus:"Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6",Dell:"Dell.*Streak|Dell.*Aero|Dell.*Venue|DELL.*Venue Pro|Dell Flash|Dell Smoke|Dell Mini 3iX|XCD28|XCD35|\\b001DL\\b|\\b101DL\\b|\\bGS01\\b",Motorola:"Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b",Samsung:"Samsung|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|GT-N7105|SCH-I535|SM-N900A|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205",LG:"\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802)",Sony:"SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533",Asus:"Asus.*Galaxy|PadFone.*Mobile",Micromax:"Micromax.*\\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\\b",Palm:"PalmSource|Palm",Vertu:"Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature",Pantech:"PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|P2000|P7040|P7000|C790",Fly:"IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250",Wiko:"KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|SUNSET|GOA|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|CINK KING|CINK PEAX|CINK SLIM|SUBLIM",iMobile:"i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)",SimValley:"\\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\\b",Wolfgang:"AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q",Alcatel:"Alcatel",Nintendo:"Nintendo 3DS",Amoi:"Amoi",INQ:"INQ",GenericPhone:"Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|up.link|vodafone|\\bwap\\b|nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser"},tablets:{iPad:"iPad|iPad.*Mobile",NexusTablet:"Android.*Nexus[\\s]+(7|9|10)",SamsungTablet:"SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|SHV-E230S|SHW-M180K|SHW-M180L|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|SM-P601|SM-P605|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T330|SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-P550|SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T360|SM-T533",Kindle:"Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI)\\b",SurfaceTablet:"Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)",HPTablet:"HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10",AsusTablet:"^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|ME560CG|ME372CG|ME302KL| K010 | K017 |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|ME581CL|ME8510C|ME181C",BlackBerryTablet:"PlayBook|RIM Tablet",HTCtablet:"HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410",MotorolaTablet:"xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617",NookTablet:"Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2",AcerTablet:"Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b",ToshibaTablet:"Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO",LGTablet:"\\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\\b",FujitsuTablet:"Android.*\\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\\b",PrestigioTablet:"PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|PMT5887|PMT5001|PMT5002",LenovoTablet:"Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|B8000|B8080)(-|)(FL|F|HV|H|)",DellTablet:"Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7",YarvikTablet:"Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b",MedionTablet:"Android.*\\bOYO\\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB",ArnovaTablet:"AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2",IntensoTablet:"INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004",IRUTablet:"M702pro",MegafonTablet:"MegaFon V9|\\bZTE V9\\b|Android.*\\bMT7A\\b",EbodaTablet:"E-Boda (Supreme|Impresspeed|Izzycomm|Essential)",AllViewTablet:"Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)",ArchosTablet:"\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|)(G10| Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b",AinolTablet:"NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark",SonyTablet:"Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP612|SOT31",PhilipsTablet:"\\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\\b",CubeTablet:"Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT",CobyTablet:"MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010",MIDTablet:"M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733",MSITablet:"MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b",SMiTTablet:"Android.*(\\bMID\\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)",RockChipTablet:"Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A",FlyTablet:"IQ310|Fly Vision",bqTablet:"Android.*(bq)?.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|Livingstone|Cervantes|Avant|Aquaris E10)|Maxwell.*Lite|Maxwell.*Plus",HuaweiTablet:"MediaPad|MediaPad 7 Youth|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|S7-201|S7-Slim",NecTablet:"\\bN-06D|\\bN-08D",PantechTablet:"Pantech.*P4100",BronchoTablet:"Broncho.*(N701|N708|N802|a710)",VersusTablet:"TOUCHPAD.*[78910]|\\bTOUCHTAB\\b",ZyncTablet:"z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900",PositivoTablet:"TB07STA|TB10STA|TB07FTA|TB10FTA",NabiTablet:"Android.*\\bNabi",KoboTablet:"Kobo Touch|\\bK080\\b|\\bVox\\b Build|\\bArc\\b Build",DanewTablet:"DSlide.*\\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\\b",TexetTablet:"NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|TB-436|TB-416|TB-146SE|TB-126SE",PlaystationTablet:"Playstation.*(Portable|Vita)",TrekstorTablet:"ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab",PyleAudioTablet:"\\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\\b",AdvanTablet:"Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b ",DanyTechTablet:"Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|Genius TAB GII|Genius TAB GIII|Genius Tab S1",GalapadTablet:"Android.*\\bG1\\b",MicromaxTablet:"Funbook|Micromax.*\\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\\b",KarbonnTablet:"Android.*\\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\\b",AllFineTablet:"Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide",PROSCANTablet:"\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b",YONESTablet:"BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026",ChangJiaTablet:"TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|TPC10111|TPC10203|TPC10205|TPC10503",GUTablet:"TX-A1301|TX-M9002|Q702|kf026",PointOfViewTablet:"TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10",OvermaxTablet:"OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|MagicTab|Stream|TB-08|TB-09)",HCLTablet:"HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync",DPSTablet:"DPS Dream 9|DPS Dual 7",VistureTablet:"V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10",CrestaTablet:"CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989",MediatekTablet:"\\bMT8125|MT8389|MT8135|MT8377\\b",ConcordeTablet:"Concorde([ ]+)?Tab|ConCorde ReadMan",GoCleverTablet:"GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|TAB R104|TAB R83.3|TAB A1042",ModecomTablet:"FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003",VoninoTablet:"\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b",ECSTablet:"V07OT2|TM105A|S10OT1|TR10CS1",StorexTablet:"eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab",VodafoneTablet:"SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7",EssentielBTablet:"Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2",RossMoorTablet:"RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711",iMobileTablet:"i-mobile i-note",TolinoTablet:"tolino tab [0-9.]+|tolino shine",AudioSonicTablet:"\\bC-22Q|T7-QC|T-17B|T-17P\\b",AMPETablet:"Android.* A78 ",SkkTablet:"Android.* (SKYPAD|PHOENIX|CYCLOPS)",TecnoTablet:"TECNO P9",JXDTablet:"Android.*\\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|P1000|P300|S18|S6600|S9100)\\b",iJoyTablet:"Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)",FX2Tablet:"FX2 PAD7|FX2 PAD10",XoroTablet:"KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151",ViewsonicTablet:"ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a",OdysTablet:"LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\\bXELIO\\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10",CaptivaTablet:"CAPTIVA PAD",IconbitTablet:"NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S",TeclastTablet:"T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi",OndaTablet:"\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|Vi40)\\b[\\s]+",JaytechTablet:"TPC-PA762",BlaupunktTablet:"Endeavour 800NG|Endeavour 1010",DigmaTablet:"\\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\\b",EvolioTablet:"ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\\bEvotab\\b|\\bNeura\\b",LavaTablet:"QPAD E704|\\bIvoryS\\b|E-TAB IVORY|\\bE-TAB\\b",CelkonTablet:"CT695|CT888|CT[\\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\\bCT-1\\b",WolderTablet:"miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b",MiTablet:"\\bMI PAD\\b|\\bHM NOTE 1W\\b",NibiruTablet:"Nibiru M1|Nibiru Jupiter One",NexoTablet:"NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI",LeaderTablet:"TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100",UbislateTablet:"UbiSlate[\\s]?7C",PocketBookTablet:"Pocketbook",Hudl:"Hudl HT7S3",TelstraTablet:"T-Hub2",GenericTablet:"Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bJolla\\b|\\bTP750\\b"},oss:{AndroidOS:"Android",BlackBerryOS:"blackberry|\\bBB10\\b|rim tablet os",PalmOS:"PalmOS|avantgo|blazer|elaine|hiptop|palm|plucker|xiino",SymbianOS:"Symbian|SymbOS|Series60|Series40|SYB-[0-9]+|\\bS60\\b",WindowsMobileOS:"Windows CE.*(PPC|Smartphone|Mobile|[0-9]{3}x[0-9]{3})|Window Mobile|Windows Phone [0-9.]+|WCE;",WindowsPhoneOS:"Windows Phone 8.1|Windows Phone 8.0|Windows Phone OS|XBLWP7|ZuneWP7|Windows NT 6.[23]; ARM;",iOS:"\\biPhone.*Mobile|\\biPod|\\biPad",MeeGoOS:"MeeGo",MaemoOS:"Maemo",JavaOS:"J2ME/|\\bMIDP\\b|\\bCLDC\\b",webOS:"webOS|hpwOS",badaOS:"\\bBada\\b",BREWOS:"BREW"},uas:{Chrome:"\\bCrMo\\b|CriOS|Android.*Chrome/[.0-9]* (Mobile)?",Dolfin:"\\bDolfin\\b",Opera:"Opera.*Mini|Opera.*Mobi|Android.*Opera|Mobile.*OPR/[0-9.]+|Coast/[0-9.]+",Skyfire:"Skyfire",IE:"IEMobile|MSIEMobile",Firefox:"fennec|firefox.*maemo|(Mobile|Tablet).*Firefox|Firefox.*Mobile",Bolt:"bolt",TeaShark:"teashark",Blazer:"Blazer",Safari:"Version.*Mobile.*Safari|Safari.*Mobile|MobileSafari",Tizen:"Tizen",UCBrowser:"UC.*Browser|UCWEB",baiduboxapp:"baiduboxapp",baidubrowser:"baidubrowser",DiigoBrowser:"DiigoBrowser",Puffin:"Puffin",Mercury:"\\bMercury\\b",ObigoBrowser:"Obigo",NetFront:"NF-Browser",GenericBrowser:"NokiaBrowser|OviBrowser|OneBrowser|TwonkyBeamBrowser|SEMC.*Browser|FlyFlow|Minimo|NetFront|Novarra-Vision|MQQBrowser|MicroMessenger"},props:{Mobile:"Mobile/[VER]",Build:"Build/[VER]",Version:"Version/[VER]",VendorID:"VendorID/[VER]",iPad:"iPad.*CPU[a-z ]+[VER]",iPhone:"iPhone.*CPU[a-z ]+[VER]",iPod:"iPod.*CPU[a-z ]+[VER]",Kindle:"Kindle/[VER]",Chrome:["Chrome/[VER]","CriOS/[VER]","CrMo/[VER]"],Coast:["Coast/[VER]"],Dolfin:"Dolfin/[VER]",Firefox:"Firefox/[VER]",Fennec:"Fennec/[VER]",IE:["IEMobile/[VER];","IEMobile [VER]","MSIE [VER];","Trident/[0-9.]+;.*rv:[VER]"],NetFront:"NetFront/[VER]",NokiaBrowser:"NokiaBrowser/[VER]",Opera:[" OPR/[VER]","Opera Mini/[VER]","Version/[VER]"],"Opera Mini":"Opera Mini/[VER]","Opera Mobi":"Version/[VER]","UC Browser":"UC Browser[VER]",MQQBrowser:"MQQBrowser/[VER]",MicroMessenger:"MicroMessenger/[VER]",baiduboxapp:"baiduboxapp/[VER]",baidubrowser:"baidubrowser/[VER]",Iron:"Iron/[VER]",Safari:["Version/[VER]","Safari/[VER]"],Skyfire:"Skyfire/[VER]",Tizen:"Tizen/[VER]",Webkit:"webkit[ /][VER]",Gecko:"Gecko/[VER]",Trident:"Trident/[VER]",Presto:"Presto/[VER]",iOS:" \\bi?OS\\b [VER][ ;]{1}",Android:"Android [VER]",BlackBerry:["BlackBerry[\\w]+/[VER]","BlackBerry.*Version/[VER]","Version/[VER]"],BREW:"BREW [VER]",Java:"Java/[VER]","Windows Phone OS":["Windows Phone OS [VER]","Windows Phone [VER]"],"Windows Phone":"Windows Phone [VER]","Windows CE":"Windows CE/[VER]","Windows NT":"Windows NT [VER]",Symbian:["SymbianOS/[VER]","Symbian/[VER]"],webOS:["webOS/[VER]","hpwOS/[VER];"]},utils:{Bot:"Googlebot|facebookexternalhit|AdsBot-Google|Google Keyword Suggestion|Facebot|YandexBot|bingbot|ia_archiver|AhrefsBot|Ezooms|GSLFbot|WBSearchBot|Twitterbot|TweetmemeBot|Twikle|PaperLiBot|Wotbox|UnwindFetchor|Exabot|MJ12bot|YandexImages|TurnitinBot|Pingdom",MobileBot:"Googlebot-Mobile|AdsBot-Google-Mobile|YahooSeeker/M1A1-R2D2",DesktopMode:"WPDesktop",TV:"SonyDTV|HbbTV",WebKit:"(webkit)[ /]([\\w.]+)",Console:"\\b(Nintendo|Nintendo WiiU|Nintendo 3DS|PLAYSTATION|Xbox)\\b",Watch:"SM-V700"}},r.detectMobileBrowsers={fullPattern:/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,shortPattern:/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,tabletPattern:/android|ipad|playbook|silk/i};var a,s=Object.prototype.hasOwnProperty;return r.FALLBACK_PHONE="UnknownPhone",r.FALLBACK_TABLET="UnknownTablet",r.FALLBACK_MOBILE="UnknownMobile",a="isArray"in Array?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},function(){var e,t,n,o,T,l,S=r.mobileDetectRules;for(e in S.props)if(s.call(S.props,e)){for(t=S.props[e],a(t)||(t=[t]),T=t.length,o=0;T>o;++o)n=t[o],l=n.indexOf("[VER]"),l>=0&&(n=n.substring(0,l)+"([\\w._\\+]+)"+n.substring(l+5)),t[o]=new RegExp(n,"i");S.props[e]=t}i(S.oss),i(S.phones),i(S.tablets),i(S.uas),i(S.utils),S.oss0={WindowsPhoneOS:S.oss.WindowsPhoneOS,WindowsMobileOS:S.oss.WindowsMobileOS}}(),r.findMatch=function(e,t){for(var n in e)if(s.call(e,n)&&e[n].test(t))return n;return null},r.findMatches=function(e,t){var n=[];for(var i in e)s.call(e,i)&&e[i].test(t)&&n.push(i);return n},r.getVersionStr=function(e,t){var n,i,o,a,T=r.mobileDetectRules.props;if(s.call(T,e))for(n=T[e],o=n.length,i=0;o>i;++i)if(a=n[i].exec(t),null!==a)return a[1];return null},r.getVersion=function(e,t){var n=r.getVersionStr(e,t);return n?r.prepareVersionNo(n):NaN},r.prepareVersionNo=function(e){var t;return t=e.split(/[a-z._ \/\-]/i),1===t.length&&(e=t[0]),t.length>1&&(e=t[0]+".",t.shift(),e+=t.join("")),Number(e)},r.isMobileFallback=function(e){return r.detectMobileBrowsers.fullPattern.test(e)||r.detectMobileBrowsers.shortPattern.test(e.substr(0,4))},r.isTabletFallback=function(e){return r.detectMobileBrowsers.tabletPattern.test(e)},r.prepareDetectionCache=function(e,n,i){if(e.mobile===t){var a,s,T;return(s=r.findMatch(r.mobileDetectRules.tablets,n))?(e.mobile=e.tablet=s,void(e.phone=null)):(a=r.findMatch(r.mobileDetectRules.phones,n))?(e.mobile=e.phone=a,void(e.tablet=null)):void(r.isMobileFallback(n)?(T=o.isPhoneSized(i),T===t?(e.mobile=r.FALLBACK_MOBILE,e.tablet=e.phone=null):T?(e.mobile=e.phone=r.FALLBACK_PHONE,e.tablet=null):(e.mobile=e.tablet=r.FALLBACK_TABLET,e.phone=null)):r.isTabletFallback(n)?(e.mobile=e.tablet=r.FALLBACK_TABLET,e.phone=null):e.mobile=e.tablet=e.phone=null)}},r.mobileGrade=function(e){var t=null!==e.mobile();return e.os("iOS")&&e.version("iPad")>=4.3||e.os("iOS")&&e.version("iPhone")>=3.1||e.os("iOS")&&e.version("iPod")>=3.1||e.version("Android")>2.1&&e.is("Webkit")||e.version("Windows Phone OS")>=7||e.is("BlackBerry")&&e.version("BlackBerry")>=6||e.match("Playbook.*Tablet")||e.version("webOS")>=1.4&&e.match("Palm|Pre|Pixi")||e.match("hp.*TouchPad")||e.is("Firefox")&&e.version("Firefox")>=12||e.is("Chrome")&&e.is("AndroidOS")&&e.version("Android")>=4||e.is("Skyfire")&&e.version("Skyfire")>=4.1&&e.is("AndroidOS")&&e.version("Android")>=2.3||e.is("Opera")&&e.version("Opera Mobi")>11&&e.is("AndroidOS")||e.is("MeeGoOS")||e.is("Tizen")||e.is("Dolfin")&&e.version("Bada")>=2||(e.is("UC Browser")||e.is("Dolfin"))&&e.version("Android")>=2.3||e.match("Kindle Fire")||e.is("Kindle")&&e.version("Kindle")>=3||e.is("AndroidOS")&&e.is("NookTablet")||e.version("Chrome")>=11&&!t||e.version("Safari")>=5&&!t||e.version("Firefox")>=4&&!t||e.version("MSIE")>=7&&!t||e.version("Opera")>=10&&!t?"A":e.os("iOS")&&e.version("iPad")<4.3||e.os("iOS")&&e.version("iPhone")<3.1||e.os("iOS")&&e.version("iPod")<3.1||e.is("Blackberry")&&e.version("BlackBerry")>=5&&e.version("BlackBerry")<6||e.version("Opera Mini")>=5&&e.version("Opera Mini")<=6.5&&(e.version("Android")>=2.3||e.is("iOS"))||e.match("NokiaN8|NokiaC7|N97.*Series60|Symbian/3")||e.version("Opera Mobi")>=11&&e.is("SymbianOS")?"B":(e.version("BlackBerry")<5||e.match("MSIEMobile|Windows CE.*Mobile")||e.version("Windows Mobile")<=5.2,"C")},r.detectOS=function(e){return r.findMatch(r.mobileDetectRules.oss0,e)||r.findMatch(r.mobileDetectRules.oss,e)},r.getDeviceSmallerSide=function(){return window.screen.width<window.screen.height?window.screen.width:window.screen.height},o.prototype={constructor:o,mobile:function(){return r.prepareDetectionCache(this._cache,this.ua,this.maxPhoneWidth),this._cache.mobile},phone:function(){return r.prepareDetectionCache(this._cache,this.ua,this.maxPhoneWidth),this._cache.phone},tablet:function(){return r.prepareDetectionCache(this._cache,this.ua,this.maxPhoneWidth),this._cache.tablet},userAgent:function(){return this._cache.userAgent===t&&(this._cache.userAgent=r.findMatch(r.mobileDetectRules.uas,this.ua)),this._cache.userAgent},userAgents:function(){return this._cache.userAgents===t&&(this._cache.userAgents=r.findMatches(r.mobileDetectRules.uas,this.ua)),this._cache.userAgents},os:function(){return this._cache.os===t&&(this._cache.os=r.detectOS(this.ua)),this._cache.os},version:function(e){return r.getVersion(e,this.ua)},versionStr:function(e){return r.getVersionStr(e,this.ua)},is:function(t){return n(this.userAgents(),t)||e(t,this.os())||e(t,this.phone())||e(t,this.tablet())||n(r.findMatches(r.mobileDetectRules.utils,this.ua),t)},match:function(e){return e instanceof RegExp||(e=new RegExp(e,"i")),e.test(this.ua)},isPhoneSized:function(e){return o.isPhoneSized(e||this.maxPhoneWidth)},mobileGrade:function(){return this._cache.grade===t&&(this._cache.grade=r.mobileGrade(this)),this._cache.grade}},"undefined"!=typeof window&&window.screen?o.isPhoneSized=function(e){return 0>e?t:r.getDeviceSmallerSide()<=e}:o.isPhoneSized=function(){},o._impl=r,o})}(function(e){return function(e){window.MobileDetect=e()}}()),N2D("ImagesLoaded",function(e,t){(function(){"use strict";function e(){}function t(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}function n(e){return function(){return this[e].apply(this,arguments)}}var i=e.prototype,o=this,r=o.EventEmitter;i.getListeners=function(e){var t,n,i=this._getEvents();if("object"==typeof e){t={};for(n in i)i.hasOwnProperty(n)&&e.test(n)&&(t[n]=i[n])}else t=i[e]||(i[e]=[]);return t},i.flattenListeners=function(e){var t,n=[];for(t=0;t<e.length;t+=1)n.push(e[t].listener);return n},i.getListenersAsObject=function(e){var t,n=this.getListeners(e);return n instanceof Array&&(t={},t[e]=n),t||n},i.addListener=function(e,n){var i,o=this.getListenersAsObject(e),r="object"==typeof n;for(i in o)o.hasOwnProperty(i)&&-1===t(o[i],n)&&o[i].push(r?n:{listener:n,once:!1});return this},i.on=n("addListener"),i.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},i.once=n("addOnceListener"),i.defineEvent=function(e){return this.getListeners(e),this},i.defineEvents=function(e){for(var t=0;t<e.length;t+=1)this.defineEvent(e[t]);return this},i.removeListener=function(e,n){var i,o,r=this.getListenersAsObject(e);for(o in r)r.hasOwnProperty(o)&&(i=t(r[o],n),-1!==i&&r[o].splice(i,1));return this},i.off=n("removeListener"),i.addListeners=function(e,t){return this.manipulateListeners(!1,e,t)},i.removeListeners=function(e,t){return this.manipulateListeners(!0,e,t)},i.manipulateListeners=function(e,t,n){var i,o,r=e?this.removeListener:this.addListener,a=e?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(i=n.length;i--;)r.call(this,t,n[i]);else for(i in t)t.hasOwnProperty(i)&&(o=t[i])&&("function"==typeof o?r.call(this,i,o):a.call(this,i,o));return this},i.removeEvent=function(e){var t,n=typeof e,i=this._getEvents();if("string"===n)delete i[e];else if("object"===n)for(t in i)i.hasOwnProperty(t)&&e.test(t)&&delete i[t];else delete this._events;return this},i.removeAllListeners=n("removeEvent"),i.emitEvent=function(e,t){var n,i,o,r,a=this.getListenersAsObject(e);for(o in a)if(a.hasOwnProperty(o))for(i=a[o].length;i--;)n=a[o][i],n.once===!0&&this.removeListener(e,n.listener),r=n.listener.apply(this,t||[]),r===this._getOnceReturnValue()&&this.removeListener(e,n.listener);return this},i.trigger=n("emitEvent"),i.emit=function(e){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(e,t)},i.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},i._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},i._getEvents=function(){return this._events||(this._events={})},e.noConflict=function(){return o.EventEmitter=r,e},this.EventEmitter=e}).call(window),function(e){function n(t){var n=e.event;return n.target=n.target||n.srcElement||t,n}var i=document.documentElement,o=function(){};i.addEventListener?o=function(e,t,n){e.addEventListener(t,n,!1)}:i.attachEvent&&(o=function(e,t,i){e[t+i]=i.handleEvent?function(){var t=n(e);i.handleEvent.call(i,t)}:function(){var t=n(e);i.call(e,t)},e.attachEvent("on"+t,e[t+i])});var r=function(){};i.removeEventListener?r=function(e,t,n){e.removeEventListener(t,n,!1)}:i.detachEvent&&(r=function(e,n,i){e.detachEvent("on"+n,e[n+i]);try{delete e[n+i]}catch(o){e[n+i]=t}});var a={bind:o,unbind:r};e.eventie=a}(window),function(e,t){"use strict";e.imagesLoaded=t(e,e.EventEmitter,e.eventie)}(window,function(n,i,o){function r(e,t){for(var n in t)e[n]=t[n];return e}function a(e){return"[object Array]"==u.call(e)}function s(e){var t=[];if(a(e))t=e;else if("number"==typeof e.length)for(var n=0;n<e.length;n++)t.push(e[n]);else t.push(e);return t}function T(t,n,i){if(!(this instanceof T))return new T(t,n,i);"string"==typeof t&&(t=document.querySelectorAll(t)),this.elements=s(t),this.options=r({},this.options),"function"==typeof n?i=n:r(this.options,n),i&&this.on("always",i),this.getImages(),e&&(this.jqDeferred=new e.Deferred);var o=this;setTimeout(function(){o.check()})}function l(e){this.img=e}function S(e,t){this.url=e,this.element=t,this.img=new Image}var c=n.console,u=Object.prototype.toString;T.prototype=new i,T.prototype.options={},T.prototype.getImages=function(){this.images=[];for(var e=0;e<this.elements.length;e++){var t=this.elements[e];this.addElementImages(t)}},T.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),this.options.background===!0&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&d[t]){for(var n=e.querySelectorAll("img"),i=0;i<n.length;i++){var o=n[i];this.addImage(o)}if("string"==typeof this.options.background){var r=e.querySelectorAll(this.options.background);for(i=0;i<r.length;i++){var a=r[i];this.addElementBackgroundImages(a)}}}};var d={1:!0,9:!0,11:!0};T.prototype.addElementBackgroundImages=function(e){var t=b(e),n=/url\(["]*([^"\)]+)["]*\)/gi,i=n.exec(t.backgroundImage);if(!i){var o=/url\([']*([^'\)]+)[']*\)/gi;i=o.exec(t.backgroundImage)}for(;null!==i;){var r=i&&i[1];r&&this.addBackground(r,e),i=n.exec(t.backgroundImage)}};var b=n.getComputedStyle||function(e){return e.currentStyle};return T.prototype.addImage=function(e){var t=new l(e);this.images.push(t)},T.prototype.addBackground=function(e,t){var n=new S(e,t);this.images.push(n)},T.prototype.check=function(){function e(e,n,i){setTimeout(function(){t.progress(e,n,i)})}var t=this;if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();for(var n=0;n<this.images.length;n++){var i=this.images[n];i.once("progress",e),i.check()}},T.prototype.progress=function(e,t,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emit("progress",this,e,t),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&c&&c.log("progress: "+n,e,t)},T.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emit(e,this),this.emit("always",this),this.jqDeferred){var t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},l.prototype=new i,l.prototype.check=function(){var e=this.getIsImageComplete();return e?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,o.bind(this.proxyImage,"load",this),o.bind(this.proxyImage,"error",this),o.bind(this.img,"load",this),o.bind(this.img,"error",this),void(this.proxyImage.src=this.img.src))},l.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth!==t},l.prototype.confirm=function(e,t){this.isLoaded=e,this.emit("progress",this,this.img,t)},l.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},l.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},l.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},l.prototype.unbindEvents=function(){o.unbind(this.proxyImage,"load",this),o.unbind(this.proxyImage,"error",this),o.unbind(this.img,"load",this),o.unbind(this.img,"error",this)},S.prototype=new l,S.prototype.check=function(){o.bind(this.img,"load",this),o.bind(this.img,"error",this),this.img.src=this.url;var e=this.getIsImageComplete();e&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},S.prototype.unbindEvents=function(){o.unbind(this.img,"load",this),o.unbind(this.img,"error",this)},S.prototype.confirm=function(e,t){this.isLoaded=e,this.emit("progress",this,this.element,t)},T.makeJQueryPlugin=function(){e&&(e.fn.n2imagesLoaded=function(t,n){var i=new T(this,t,n);return i.jqDeferred.promise(e(this))})},T.makeJQueryPlugin(),T})}),N2D("UniversalPointer",function(e,t){e.event.special.universalclick={add:function(t){var n=e(this),i=!1,o=null,r=function(){i=!0,o&&clearTimeout(o),o=setTimeout(function(){i=!1},400)},a=0,s=0;try{var T=function(e){a=e.touches[0].clientX,s=e.touches[0].clientY};n[0]._touchstart=T,n[0].addEventListener("touchstart",T,window.n2const.passiveEvents?{passive:!0}:!1),n.on("touchend.universalclick",function(e){Math.abs(e.originalEvent.changedTouches[0].clientX-a)<10&&Math.abs(e.originalEvent.changedTouches[0].clientY-s)<10&&(i||(r(),t.handler.apply(this,arguments)))}).on("click.universalclick",function(e){i||(r(),t.handler.apply(this,arguments))})}catch(l){console.error(l)}},remove:function(){e(this).off(".universalclick");try{this.removeEventListener("touchstart",this._touchstart,window.n2const.passiveEvents?{passive:!0}:!1),delete this._touchstart}catch(t){}}};var n=[],i=!1,o=function(t){for(var i=e(t.target),o=n.length-1;o>=0;o--)n[o].is(i)||0!=n[o].find(i).length||n[o].trigger("universal_leave")},r=function(){if(!i){i=!0;try{e("body").get(0).addEventListener("touchstart",o,window.n2const.passiveEvents?{passive:!0}:!1)}catch(t){}}},a=function(){if(i){try{e("body").get(0).removeEventListener("touchstart",o,window.n2const.passiveEvents?{passive:!0}:!1)}catch(t){}i=!1}},s=function(t){-1==e.inArray(t,n)&&n.push(t),1==n.length&&r()},T=function(t){var i=e.inArray(t,n);i>=0&&(n.splice(i,1),0==n.length&&a())};e.event.special.universalenter={add:function(t){var n=e(this),i=!1,o=null,r=function(){i=!0,o&&(clearTimeout(o),o=null),o=setTimeout(function(){i=!1},400)},a=!1;t.data&&(a=t.data.leaveOnSecond);var l=null,S=null,c=function(e){i||("touchstart"===e.type?(r(),a?l?n.trigger("universal_leave"):(s(n),t.handler.apply(this,arguments),l=setTimeout(function(){n.trigger("universal_leave")},5e3)):(l&&(clearTimeout(l),l=null),s(n),t.handler.apply(this,arguments),l=setTimeout(function(){n.trigger("universal_leave")},5e3))):(S&&clearTimeout(S),t.handler.apply(this,arguments),n.on("mouseleave.universalleave",function(){n.off(".universalleave"),a?n.trigger("universalleave"):S=setTimeout(function(){n.trigger("universalleave"),S=null},800)})))};n.on("universal_leave.universalenter",function(e){e.stopPropagation(),clearTimeout(l),l=null,T(n),n.trigger("universalleave")}).on("mouseenter.universalenter",c);try{n[0]._mouseenter=c,n[0].addEventListener("touchstart",c,window.n2const.passiveEvents?{passive:!0}:!1)}catch(u){}},remove:function(){e(this).off(".universalenter .universalleave");try{this.removeEventListener("touchstart",this._mouseenter,window.n2const.passiveEvents?{passive:!0}:!1),delete this._mouseenter}catch(t){}}}}),N2D("EventBurrito",function(e,t){function n(n,r){function a(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}function s(e,t,n,i){return t?(e.addEventListener?e.addEventListener(t,n,i):e.attachEvent("on"+t,n),{remove:function(){T(e,t,n,i)}}):void 0}function T(e,t,n,i){t&&(e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent("on"+t,n))}function l(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function S(e){if(p={x:(h?e.clientX:e.touches[0].clientX)-f.x,y:(h?e.clientY:e.touches[0].clientY)-f.y,time:Number(new Date)-f.time},p.time-C[C.length-1].time){for(var t=0;t<C.length-1&&p.time-C[t].time>80;t++);m={x:(p.x-C[t].x)/(p.time-C[t].time),y:(p.y-C[t].y)/(p.time-C[t].time)},C.length>=5&&C.shift(),C.push({x:p.x,y:p.y,time:p.time})}}function c(e,n){o||(B=!0,h=n,g[h](e)||I(e.target)||(o=!0,0!==h&&s(document,v[h][1],u,!1),s(document,v[h][2],d,!1),s(document,v[h][3],d,!1),P.preventDefault&&h&&l(e),f={x:h?e.clientX:e.touches[0].clientX,y:h?e.clientY:e.touches[0].clientY,time:Number(new Date)},A=t,G=!1,p={x:0,y:0,time:0},m={x:0,y:0},C=[{x:0,y:0,time:0}],P.start(e,f),u(e)))}function u(e){"x"==P.axis&&(!P.preventScroll&&A||g[h](e))||I(e.target)||(S(e),(Math.abs(p.x)>P.clickTolerance||Math.abs(p.y)>P.clickTolerance)&&(B=!1),A===t&&3!==h&&(A=Math.abs(p.x)<Math.abs(p.y)&&!P.preventScroll)||P.move(e,f,p,m,G)&&P.preventDefault&&l(e))}function d(e){h&&S(e),!B&&e.target&&e.target.blur&&e.target.blur(),0!==h&&T(document,v[h][1],u,!1),T(document,v[h][2],d,!1),T(document,v[h][3],d,!1),P.end(e,f,p,m,G),G=!1,o=!1}function b(){H.push(s(document,"scroll",function(e){window.nextendScrollFocus!==t&&window.nextendScrollFocus||(G=!0)})),H.push(s(n,v[E][0],function(e){c(e,E)},0===E?{passive:!1}:!1)),0===E&&H.push(s(n,v[0][1],function(e){u(e,0)},{passive:!1})),H.push(s(n,"dragstart",l)),P.mouse&&!E&&H.push(s(n,v[3][0],function(e){c(e,3)})),H.push(s(n,"click",function(e){B?P.click(e):l(e)}))}var P={preventDefault:!0,clickTolerance:0,preventScroll:!1,mouse:!0,axis:"x",start:i,move:i,end:i,click:i};r&&a(P,r);var A,G,h,M={pointerEvents:!!window.navigator.pointerEnabled,msPointerEvents:!!window.navigator.msPointerEnabled},f={},p={},m={},C=[],H=[],B=!0,E=M.pointerEvents?1:M.msPointerEvents?2:0,v=[["touchstart","touchmove","touchend","touchcancel"],["pointerdown","pointermove","pointerup","pointercancel"],["MSPointerDown","MSPointerMove","MSPointerUp","MSPointerCancel"],["mousedown","mousemove","mouseup",!1]],g=[function(e){return e.touches&&e.touches.length>1||e.scale&&1!==e.scale},function(e){return!e.isPrimary||e.buttons&&1!==e.buttons||!P.mouse&&"touch"!==e.pointerType&&"pen"!==e.pointerType},function(e){return!e.isPrimary||e.buttons&&1!==e.buttons||!P.mouse&&e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&e.pointerType!==e.MSPOINTER_TYPE_PEN},function(e){return e.buttons&&1!==e.buttons}],I=function(t){var n=t.tagName;return!("INPUT"!=n&&"TEXTAREA"!=n&&"SELECT"!=n&&"BUTTON"!=n&&"VIDEO"!=n&&!e(t).hasClass("n2-scrollable")&&!e(t).closest(".n2-scrollable").length)};return b(),{getClicksAllowed:function(){return B},kill:function(){for(var e=H.length-1;e>=0;e--)H[e].remove()}}}var i=function(){return!0},o=!1;return n});var tmpModernizr=null;"undefined"!=typeof window.Modernizr&&(tmpModernizr=window.Modernizr),!function(e,t,n){function i(e,t){return typeof e===t}function o(){var e,t,n,o,r,a,s;for(var T in M)if(M.hasOwnProperty(T)){if(e=[],t=M[T],t.name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(n=0;n<t.options.aliases.length;n++)e.push(t.options.aliases[n].toLowerCase());for(o=i(t.fn,"function")?t.fn():t.fn,r=0;r<e.length;r++)a=e[r],s=a.split("."),1===s.length?p[s[0]]=o:(!p[s[0]]||p[s[0]]instanceof Boolean||(p[s[0]]=new Boolean(p[s[0]])),p[s[0]][s[1]]=o),v.push((o?"":"no-")+s.join("-"))}}function r(e){return e.replace(/([a-z])-([a-z])/g,function(e,t,n){return t+n.toUpperCase()}).replace(/^-/,"")}function a(e){var t=C.className,n=p._config.classPrefix||"";if(D&&(t=t.baseVal),p._config.enableJSClass){new RegExp("(^|\\s)"+n+"no-js(\\s|$)")}p._config.enableClasses&&(t+=" "+n+e.join(" "+n),D?C.className.baseVal=t:C.className=t)}function s(e,t){if("object"==typeof e)for(var n in e)E(e,n)&&s(n,e[n]);else{e=e.toLowerCase();var i=e.split("."),o=p[i[0]];if(2==i.length&&(o=o[i[1]]),"undefined"!=typeof o)return p;t="function"==typeof t?t():t,1==i.length?p[i[0]]=t:(!p[i[0]]||p[i[0]]instanceof Boolean||(p[i[0]]=new Boolean(p[i[0]])),p[i[0]][i[1]]=t),a([(t&&0!=t?"":"no-")+i.join("-")]),p._trigger(e,t)}return p}function T(e,t){return!!~(""+e).indexOf(t)}function l(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):D?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}function S(){var e=t.body;return e||(e=l(D?"svg":"body"),e.fake=!0),e}function c(e,n,i,o){var r,a,s,T,c="modernizr",u=l("div"),d=S();if(parseInt(i,10))for(;i--;)s=l("div"),s.id=o?o[i]:c+(i+1),u.appendChild(s);return r=l("style"),r.type="text/css",r.id="s"+c,(d.fake?d:u).appendChild(r),d.appendChild(u),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(t.createTextNode(e)),u.id=c,d.fake&&(d.style.background="",d.style.overflow="hidden",T=C.style.overflow,C.style.overflow="hidden",C.appendChild(d)),a=n(u,e),d.fake?(d.parentNode.removeChild(d),C.style.overflow=T,C.offsetHeight):u.parentNode.removeChild(u),!!a}function u(e,t){return function(){return e.apply(t,arguments)}}function d(e,t,n){var o;for(var r in e)if(e[r]in t)return n===!1?e[r]:(o=t[e[r]],i(o,"function")?u(o,n||t):o);return!1}function b(e){return e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function P(t,i){var o=t.length;if("CSS"in e&&"supports"in e.CSS){for(;o--;)if(e.CSS.supports(b(t[o]),i))return!0;return!1}if("CSSSupportsRule"in e){for(var r=[];o--;)r.push("("+b(t[o])+":"+i+")");return r=r.join(" or "),c("@supports ("+r+") { #modernizr { position: absolute; } }",function(e){return"absolute"==getComputedStyle(e,null).position})}return n}function A(e,t,o,a){function s(){c&&(delete N.style,delete N.modElem)}if(a=i(a,"undefined")?!1:a,!i(o,"undefined")){var S=P(e,o);if(!i(S,"undefined"))return S}for(var c,u,d,b,A,G=["modernizr","tspan"];!N.style;)c=!0,N.modElem=l(G.shift()),N.style=N.modElem.style;for(d=e.length,u=0;d>u;u++)if(b=e[u],A=N.style[b],T(b,"-")&&(b=r(b)),N.style[b]!==n){if(a||i(o,"undefined"))return s(),"pfx"==t?b:!0;try{N.style[b]=o}catch(h){}if(N.style[b]!=A)return s(),"pfx"==t?b:!0}return s(),!1}function G(e,t,n,o,r){var a=e.charAt(0).toUpperCase()+e.slice(1),s=(e+" "+w.join(a+" ")+a).split(" ");return i(t,"string")||i(t,"undefined")?A(s,t,o,r):(s=(e+" "+B.join(a+" ")+a).split(" "),d(s,t,n))}function h(e,t,i){return G(e,n,n,t,i)}var M=[],f={_version:"3.2.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var n=this;setTimeout(function(){t(n[e])},0)},addTest:function(e,t,n){M.push({name:e,fn:t,options:n})},addAsyncTest:function(e){M.push({name:null,fn:e})}},p=function(){};p.prototype=f,p=new p;var m=f._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):[];f._prefixes=m;var C=t.documentElement,H="Moz O ms Webkit",B=f._config.usePrefixes?H.toLowerCase().split(" "):[];f._domPrefixes=B;var E;!function(){var e={}.hasOwnProperty;E=i(e,"undefined")||i(e.call,"undefined")?function(e,t){return t in e&&i(e.constructor.prototype[t],"undefined")}:function(t,n){return e.call(t,n)}}();var v=[],g="CSS"in e&&"supports"in e.CSS,I="supportsCSS"in e;p.addTest("supports",g||I);var D="svg"===C.nodeName.toLowerCase();f._l={},f.on=function(e,t){this._l[e]||(this._l[e]=[]),this._l[e].push(t),p.hasOwnProperty(e)&&setTimeout(function(){p._trigger(e,p[e])},0)},f._trigger=function(e,t){if(this._l[e]){var n=this._l[e];setTimeout(function(){var e,i;for(e=0;e<n.length;e++)(i=n[e])(t)},0),delete this._l[e]}},p._q.push(function(){f.addTest=s}),D||!function(e,t){function n(e,t){var n=e.createElement("p"),i=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x<style>"+t+"</style>",i.insertBefore(n.lastChild,i.firstChild)}function i(){var e=M.elements;return"string"==typeof e?e.split(" "):e}function o(e,t){var n=M.elements;"string"!=typeof n&&(n=n.join(" ")),"string"!=typeof e&&(e=e.join(" ")),M.elements=n+" "+e,l(t)}function r(e){var t=h[e[A]];return t||(t={},G++,e[A]=G,h[G]=t),t}function a(e,n,i){if(n||(n=t),c)return n.createElement(e);i||(i=r(n));var o;return o=i.cache[e]?i.cache[e].cloneNode():P.test(e)?(i.cache[e]=i.createElem(e)).cloneNode():i.createElem(e),!o.canHaveChildren||b.test(e)||o.tagUrn?o:i.frag.appendChild(o)}function s(e,n){if(e||(e=t),c)return e.createDocumentFragment();n=n||r(e);for(var o=n.frag.cloneNode(),a=0,s=i(),T=s.length;T>a;a++)o.createElement(s[a]);return o}function T(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(n){return M.shivMethods?a(n,e,t):t.createElem(n)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+i().join().replace(/[\w\-:]+/g,function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'})+");return n}")(M,t.frag)}function l(e){e||(e=t);var i=r(e);return!M.shivCSS||S||i.hasCSS||(i.hasCSS=!!n(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),c||T(e,i),e}var S,c,u="3.7.3",d=e.html5||{},b=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,P=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,A="_html5shiv",G=0,h={};!function(){try{var e=t.createElement("a");e.innerHTML="<xyz></xyz>",S="hidden"in e,c=1==e.childNodes.length||function(){t.createElement("a");var e=t.createDocumentFragment();return"undefined"==typeof e.cloneNode||"undefined"==typeof e.createDocumentFragment||"undefined"==typeof e.createElement}()}catch(n){S=!0,c=!0}}();var M={elements:d.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:u,shivCSS:d.shivCSS!==!1,supportsUnknownElements:c,shivMethods:d.shivMethods!==!1,type:"default",shivDocument:l,createElement:a,createDocumentFragment:s,addElements:o};e.html5=M,l(t),"object"==typeof module&&module.exports&&(module.exports=M)}("undefined"!=typeof e?e:this,t);var w=f._config.usePrefixes?H.split(" "):[];f._cssomPrefixes=w;var y=function(t){var i,o=m.length,r=e.CSSRule;if("undefined"==typeof r)return n;if(!t)return!1;if(t=t.replace(/^@/,""),i=t.replace(/-/g,"_").toUpperCase()+"_RULE",i in r)return"@"+t;for(var a=0;o>a;a++){var s=m[a],T=s.toUpperCase()+"_"+i;if(T in r)return"@-"+s.toLowerCase()+"-"+t}return!1};f.atRule=y;var L=f.testStyles=c,V={elem:l("modernizr")};p._q.push(function(){delete V.elem});var N={style:V.elem.style};p._q.unshift(function(){delete N.style}),f.testProp=function(e,t,i){return A([e],n,t,i)},f.testAllProps=G,f.prefixed=function(e,t,n){return 0===e.indexOf("@")?y(e):(-1!=e.indexOf("-")&&(e=r(e)),t?G(e,t,n):G(e,"pfx"))},f.testAllProps=h,p.addTest("csstransforms3d",function(){var e=!!h("perspective","1px",!0),t=p._config.usePrefixes;if(e&&(!t||"webkitPerspective"in C.style)){var n,i="#modernizr{width:0;height:0}";p.supports?n="@supports (perspective: 1px)":(n="@media (transform-3d)",t&&(n+=",(-webkit-transform-3d)")),n+="{#modernizr{width:7px;height:18px;margin:0;padding:0;border:0}}",L(i+n,function(t){e=7===t.offsetWidth&&18===t.offsetHeight})}return e}),o(),a(v),delete f.addTest,delete f.addAsyncTest;for(var O=0;O<p._q.length;O++)p._q[O]();e.Modernizr=p}(window,document),Modernizr.addTest("csstransformspreserve3d",function(){var e,t=Modernizr.prefixed("transformStyle"),n="preserve-3d";return t?(t=t.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-"),Modernizr.testStyles("#modernizr{"+t+":"+n+";}",function(n,i){window.getComputedStyle?(e=getComputedStyle(n,null),e=e?e.getPropertyValue(t):""):e=""}),e===n):!1}),window.nModernizr=window.Modernizr,tmpModernizr&&(window.Modernizr=tmpModernizr),N2D("nextend-frontend");(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(t,e){function i(e){this.device=null,this.slider=e,this.lazyLoad=e.parameters.lazyLoad,this.lazyLoadNeighbor=e.parameters.lazyLoadNeighbor,this.deviceDeferred=t.Deferred(),this.slider.sliderElement.one("SliderDevice",t.proxy(this.onSlideDeviceChangedFirst,this)),this.slider.sliderElement.on("visibleSlidesChanged",t.proxy(this.onVisibleSlidesChanged,this)),this.slider.sliderElement.on("slideCountChanged",t.proxy(this.onVisibleSlidesChanged,this))}return i.prototype.whenWithProgress=function(e){for(var i=0,s=t.Deferred(),n=0;n<e.length;n++)t.when(e[n]).done(function(){s.notify(++i,e.length)});return t.when.apply(t,e).done(function(){s.resolveWith(null,arguments)}),s},i.prototype.getBackgroundImages=function(){for(var t=[],e=0;e<this.slider.realSlides.length;e++)t.push(this.slider.realSlides[e].background);return t},i.prototype.onVisibleSlidesChanged=function(){1==this.lazyLoad?this.load=this.preLoadSlides(this.slider.getVisibleSlides(this.slider.currentSlide)):2==this.lazyLoad&&(this.load=this.preLoadSlides(this.slider.getVisibleSlides(this.slider.currentSlide)))},i.prototype.onSlideDeviceChangedFirst=function(e,i){this.onSlideDeviceChanged(e,i),this.deviceDeferred.resolve(),this.slider.sliderElement.on("SliderDevice",t.proxy(this.onSlideDeviceChanged,this)),this.preLoadSlides=this._preLoadSlides,1==this.lazyLoad?(this.preLoadSlides=this.preloadSlidesLazyNeighbor,this.load=this.preLoadSlides(this.slider.getVisibleSlides(this.slider.currentSlide))):2==this.lazyLoad?(t(window).on("load",t.proxy(this.preLoadAll,this)),this.load=this.preLoadSlides(this.slider.getVisibleSlides(this.slider.currentSlide))):this.load=this.whenWithProgress(this.preLoadAll())},i.prototype.onSlideDeviceChanged=function(t,e){this.device=e;for(var i=0;i<this.slider.realSlides.length;i++)this.slider.realSlides[i].background&&this.slider.realSlides[i].background.updateBackgroundToDevice(e)},i.prototype.preLoadAll=function(){for(var t=[],e=0;e<this.slider.realSlides.length;e++)t.push(this.slider.realSlides[e].preLoad());return t},i.prototype._preLoadSlides=function(e){var i=[];"[object Array]"!==Object.prototype.toString.call(e)&&(e=[e]);for(var s=0;s<e.length;s++)i.push(e[s].preLoad());return t.when.apply(t,i)},i.prototype.preloadSlidesLazyNeighbor=function(e){var i=[this._preLoadSlides(e)];if(this.lazyLoadNeighbor)for(var s=0,n=e[0].previousSlide,r=e[e.length-1].nextSlide;s<this.lazyLoadNeighbor;)i.push(n.preLoad()),n=n.previousSlide,i.push(r.preLoad()),r=r.nextSlide,s++;var o=t.Deferred();if("resolved"!=i[0].state()){var a=setTimeout(t.proxy(function(){this.slider.load.showSpinner("backgroundImage"+e[0].index),a=null},this),50);t.when.apply(t,i).done(t.proxy(function(){a?(clearTimeout(a),a=null):this.slider.load.removeSpinner("backgroundImage"+e[0].index),setTimeout(function(){o.resolve()},100)},this))}else setTimeout(function(){o.resolve()},100);return o},i.prototype.hack=function(){for(var t=0;t<this.slider.realSlides.length;t++)this.slider.realSlides[t].background&&this.slider.realSlides[t].background.hack()},i}),N2D("SmartSliderLoad",function(t,e){function i(e,i){this.parameters=t.extend({fade:1,scroll:0},i),this.deferred=t.Deferred(),this.smartSlider=e,this.spinnerCouner=0,this.id=e.sliderElement.attr("id"),this.$window=t(window),this.spinner=t("#"+this.id+"-spinner")}return i.prototype.start=function(){if(this.parameters.scroll){var e=t(window);e.on("scroll."+this.id,t.proxy(this.onScroll,this)),this.onScroll()}else if(this.parameters.fade){this.loadingArea=t("#"+this.id+"-placeholder").eq(0),this.showSpinner("fadePlaceholder");var i=this.spinner.find(".n2-ss-spinner-counter");i.length&&this.smartSlider.backgrounds.load.progress(t.proxy(function(t,e){i.html(Math.round(t/(e+1)*100)+"%")},this)),this.showSlider()}else this.showSlider()},i.prototype.onScroll=function(){this.$window.scrollTop()+this.$window.height()>this.smartSlider.sliderElement.offset().top+100&&(this.$window.off("scroll."+this.id),this.showSlider())},i.prototype.loadLayerImages=function(){var e=t.Deferred();return this.smartSlider.sliderElement.find(".n2-ss-layers-container").n2imagesLoaded().always(function(){e.resolve()}),e},i.prototype.showSlider=function(){t.when(this.smartSlider.responsive.ready,this.smartSlider.backgrounds.load,this.loadLayerImages()).always(t.proxy(function(){this._showSlider()},this))},i.prototype._showSlider=function(e){this.smartSlider.responsive.isReadyToResize=!0,t.when.apply(t,this.smartSlider.widgetDeferreds).done(t.proxy(function(){this.smartSlider.responsive.invalidateResponsiveState=!0,this.smartSlider.responsive.doResize(),this.smartSlider.mainAnimation&&this.smartSlider.mainAnimation.setToStarterSlide(this.smartSlider.starterSlide),this.smartSlider.starterSlide.setStarterSlide(),this.smartSlider.sliderElement.trigger("BeforeVisible"),this.smartSlider.responsive.alignElement.addClass("n2-ss-align-visible"),this.smartSlider.sliderElement.addClass("n2-ss-loaded").removeClass("n2notransition"),this.removeSpinner("fadePlaceholder"),t("#"+this.id+"-placeholder").remove(),this.loadingArea=this.smartSlider.sliderElement,"function"==typeof e?e(this.deferred):this.deferred.resolve()},this))},i.prototype.loaded=function(t){this.deferred.done(t)},i.prototype.showSpinner=function(t){0===this.spinnerCouner&&this.spinner.appendTo(this.loadingArea).css("display",""),this.spinnerCouner++},i.prototype.removeSpinner=function(t){this.spinnerCouner--,this.spinnerCouner<=0&&(this.spinner.detach(),this.spinnerCouner=0)},i}),N2D("ScrollTracker",function(t,e,i){function s(){this.started=!1,this.items=[]}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||(t(window).on("scroll.scrollTracker",t.proxy(this.onScroll,this)),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)?n=!1:!s&&(i.bottom-i.height<0||i.top-e+i.height>=0)&&(n=!1):"not-visible"===t.mode&&(n=i.top-e<0&&i.top+i.height>0),n===!1?"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(t,e){function i(){this.sliders={},this.readys={},this._resetCounters=[]}return i.prototype.makeReady=function(t,e){if(this.sliders[t]=e,"undefined"!=typeof this.readys[t])for(var i=0;i<this.readys[t].length;i++)this.readys[t][i].call(e,e,e.sliderElement)},i.prototype.ready=function(t,e){"undefined"!=typeof this.sliders[t]?e.call(this.sliders[t],this.sliders[t],this.sliders[t].sliderElement):("undefined"==typeof this.readys[t]&&(this.readys[t]=[]),this.readys[t].push(e))},i.prototype.trigger=function(e,i){var s=t(e),n=i.split(","),r=s.closest(".n2-ss-slide,.n2-ss-static-slide");if(n.length>1){-1==t.inArray(e,this._resetCounters)&&(this._resetCounters.push(e),r.on("layerAnimationSetStart.resetCounter",function(){s.data("eventCounter",0)}));var o=s.data("eventCounter")||0;i=n[o],o++,o>n.length-1&&(o=0),s.data("eventCounter",o)}r.triggerHandler("ss"+i)},i.prototype.applyAction=function(e,i){var s=t(e).closest(".n2-ss-slider").data("ss");s[i].apply(s,Array.prototype.slice.call(arguments,2))},i.prototype.applyActionWithClick=function(){nextend.shouldPreventClick||this.applyAction.apply(this,arguments)},window.n2ss=new i,i}),N2D("SmartSliderAbstract",function($,undefined){function SmartSliderAbstract(t,e){this.editor=null,this.startedDeferred=$.Deferred(),this.visibleDeferred=$.Deferred(),t instanceof $&&(t="#"+t.attr("id"));var i=t.substr(1);if(this.elementID=i,window[i]&&window[i]instanceof SmartSliderAbstract){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.readyDeferred=$.Deferred(),N2D(t,$.proxy(function(){return this},this)),this.isAdmin=!!e.admin,this.id=parseInt(i.replace("n2-ss-","")),window[i]=this,e.isDelayed!==undefined&&e.isDelayed?$(window).ready($.proxy(function(){this.waitForExists(i,e)},this)):this.waitForExists(i,e)}return SmartSliderAbstract.prototype.kill=function(){this.killed=!0;var t=this.sliderElement.attr("id"),e=$("#"+t+"-placeholder");e.length?e.remove():N2R("documentReady",function(e){e("#"+t+"-placeholder").remove()});var i=this.sliderElement.closest(".n2-ss-margin");i.length?i.remove():N2R("documentReady",$.proxy(function(t){this.sliderElement.closest(".n2-ss-margin").remove()},this));var s=this.sliderElement.closest(".n2-ss-align");s.length?s.remove():N2R("documentReady",$.proxy(function(t){this.sliderElement.closest(".n2-ss-align").remove()},this))},SmartSliderAbstract.prototype.waitForExists=function(t,e){var i=$.Deferred(),s=function(){var e=$("#"+t);e.length?i.resolve(e):setTimeout(s,500)};i.done($.proxy(this.onSliderExists,this,t,e)),s()},SmartSliderAbstract.prototype.onSliderExists=function(t,e,i){if("SCRIPT"===i.prop("tagName")){var s=i.data("dependency"),n=i.data("delay"),r=$.proxy(function(){var s=$(i.html().replace(/^\/\*<!\[CDATA\[\*\/(.*)\/\*\]\]>\*\/$/,function(t,e){return e}).replace(/<_s_c_r_i_p_t/g,"<script").replace(/<_\/_s_c_r_i_p_t/g,"</script"));i.replaceWith(s),this.waitForDimension($("#"+t),e),$(window).triggerHandler("n2Rocket",[this.sliderElement])},this);s&&$("#n2-ss-"+s).length?n2ss.ready(s,$.proxy(function(t){t.ready(r)},this)):n?setTimeout(r,n):r()}else this.waitForDimension(i,e)},SmartSliderAbstract.prototype.waitForDimension=function(t,e){var i=$.Deferred(),s=function(){var e=t.is(":visible");e?i.resolve():setTimeout(s,200)};s(),i.done($.proxy(this.onSliderHasDimension,this,t,e))},SmartSliderAbstract.prototype.initCSS=function(){this.parameters.css&&$('<style type="text/css">'+this.parameters.css+"</style>").appendTo("head")},SmartSliderAbstract.prototype.onSliderHasDimension=function($sliderElement,parameters){if(this.killed=!1,n2const.isIE&&$sliderElement.attr("data-ie",n2const.isIE),this.responsive=!1,this.mainAnimationLastChangeTime=0,this.currentSlide=null,this.currentRealSlide=null,this.staticSlide=!1,this.isShuffled=!1,this.slides=[],this.visibleSlides=1,this.sliderElement=$sliderElement.data("ss",this),this.needBackgroundWrap=!1,this.parameters=$.extend({admin:!1,playWhenVisible:1,playWhenVisibleAt:.5,perspective:1e3,callbacks:"",autoplay:{},blockrightclick:!1,maintainSession:0,align:"normal",controls:{drag:!1,touch:"horizontal",keyboard:!1,scroll:!1,tilt:!1},hardwareAcceleration:!0,layerMode:{playOnce:0,playFirstLayer:1,mode:"skippable",inAnimation:"mainInEnd"},foreverLayerAnimation:!1,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:[],dynamicHeight:0,lightbox:[],lightboxDeviceImages:[],titles:[],descriptions:[],allowBGImageAttachmentFixed:1,backgroundParallax:{strength:0,tablet:0,mobile:0},particlejs:0},parameters),this.disableLayerAnimations=!1,!(this.isAdmin||parameters.responsive.desktop&&parameters.responsive.tablet&&parameters.responsive.mobile)){var md=new MobileDetect(window.navigator.userAgent,801),isTablet=!!md.tablet(),isMobile=!!md.phone();if(!parameters.responsive.mobile&&isMobile||!parameters.responsive.tablet&&isTablet||!parameters.responsive.desktop&&!isTablet&&!isMobile)return void this.kill()}this.initCSS(),this.firstSlideReady=$.Deferred();try{eval(this.parameters.callbacks)}catch(e){console.error(e)}this.startVisibilityCheck(),n2ss.makeReady(this.id,this),this.widgetDeferreds=[],this.sliderElement.on("addWidget",$.proxy(this.addWidget,this)),this.isAdmin&&(this.changeTo=function(){}),this.load=new N2Classes.SmartSliderLoad(this,this.parameters.load),this.backgrounds=new N2Classes.SmartSliderBackgrounds(this),this.__initSlides(),$.when(this.overrideFirstSlide()).done($.proxy(this.onFirstSlideInitialized,this)),navigator.userAgent.match("UCBrowser")&&$("html").addClass("n2-ucbrowser")},SmartSliderAbstract.prototype.overrideFirstSlide=function(){if("undefined"!=typeof window["ss"+this.id]){if("object"==typeof window["ss"+this.id])return window["ss"+this.id].done($.proxy(function(t){null!==t&&this.changeActiveBeforeLoad(t)},this));var t="undefined"!=typeof window["ss"+this.id]?parseInt(window["ss"+this.id]):null;null!==t&&this.changeActiveBeforeLoad(t)}else if(!this.isAdmin&&this.parameters.maintainSession&&"undefined"!=typeof sessionStorage){var e=sessionStorage.getItem("ss-"+this.id);null!==e&&this.changeActiveBeforeLoad(parseInt(e)),this.sliderElement.on("mainAnimationComplete",$.proxy(function(t,e,i,s){sessionStorage.setItem("ss-"+this.id,s)},this))}return!0},SmartSliderAbstract.prototype.changeActiveBeforeLoad=function(t){t>0&&t<this.realSlides.length&&this.starterSlide!==this.realSlides[t]&&(this.unsetActiveSlide(this.starterSlide),this.starterSlide=this.realSlides[t],this.setActiveSlide(this.realSlides[t]))},SmartSliderAbstract.prototype.startCurrentSlideIndex=function(){this.currentRealSlide=this.currentSlide=this.starterSlide,this.setActiveSlide(this.currentSlide),parseInt(this.parameters.carousel)?this.initCarousel():this.initNotCarousel()},SmartSliderAbstract.prototype.onFirstSlideInitialized=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.startCurrentSlideIndex(),this.firstSlideReady.resolve(this.currentSlide);for(var j=0;j<this.parameters.initCallbacks.length;j++)new Function("$",this.parameters.initCallbacks[j]).call(this,$);if(this.widgets=new N2Classes.SmartSliderWidgets(this),this.sliderElement.on({universalenter:$.proxy(function(t){$(t.target).closest(".n2-full-screen-widget").length||(this.sliderElement.addClass("n2-hover"),this.widgets.setState("hover",!0))},this),universalleave:$.proxy(function(t){t.stopPropagation(),this.sliderElement.removeClass("n2-hover"),this.widgets.setState("hover",!1)},this)}),this.controls={},this.initMainAnimationWithLayerAnimation(),this.isAdmin||!this.parameters.parallax.enabled||!this.parameters.parallax.mobile&&(this.parameters.parallax.mobile||n2const.isMobile)||(this.parallax=new N2Classes.LayerParallax(this,this.parameters.parallax),this.ready($.proxy(function(){this.parallax.start(this.currentSlide),this.sliderElement.on("sliderSwitchTo",$.proxy(function(t,e){this.parallax.start(this.slides[e])},this))},this))),this.parameters.blockrightclick&&this.sliderElement.bind("contextmenu",function(t){t.preventDefault()}),this.initMainAnimation(),this.initResponsiveMode(),!this.killed){try{var removeHoverClassCB=$.proxy(function(){this.sliderElement.removeClass("n2-has-hover"),this.sliderElement[0].removeEventListener("touchstart",removeHoverClassCB,window.n2const.passiveEvents?{passive:!0}:!1)},this);this.sliderElement[0].addEventListener("touchstart",removeHoverClassCB,window.n2const.passiveEvents?{passive:!0}:!1)}catch(e){}if(this.initControls(),this.startedDeferred.resolve(this),!this.isAdmin){var event="click";this.hasTouch()&&(event="n2click"),this.sliderElement.find("[data-n2click]").each(function(i,el){var el=$(el);el.on(event,function(){eval(el.data("n2click"))})}),this.sliderElement.find("[data-click]").each(function(i,el){var el=$(el).on("click",function(){eval(el.data("click"))}).css("cursor","pointer")}),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.sliderElement.find("[data-mouseenter]").each(function(i,el){var el=$(el).on("mouseenter",function(){eval(el.data("mouseenter"))})}),this.sliderElement.find("[data-mouseleave]").each(function(i,el){var el=$(el).on("mouseleave",function(){eval(el.data("mouseleave"))})}),this.sliderElement.find("[data-play]").each(function(i,el){var el=$(el).on("n2play",function(){eval(el.data("play"))})}),this.sliderElement.find("[data-pause]").each(function(i,el){var el=$(el).on("n2pause",function(){eval(el.data("pause"))})}),this.sliderElement.find("[data-stop]").each(function(i,el){var el=$(el).on("n2stop",function(){eval(el.data("stop"))})}),window.n2FocusAllowed===undefined&&(window.n2FocusAllowed=!1,$(window).on({keydown:function(){window.n2FocusAllowed=!0},keyup:function(){window.n2FocusAllowed=!1}})),this.sliderElement.find("a").on({focus:$.proxy(function(t){if(n2FocusAllowed){var e=this.findSlideByElement(t.currentTarget);e&&e!==this.currentRealSlide&&this.directionalChangeToReal(e.index)}},this)})}this.preReadyResolve(),this.isAdmin||this.startLightbox(),this.sliderElement.find('[role="button"],[tabindex]').not("input,select,textarea").keypress(function(t){32!==t.charCode&&13!==t.charCode||(t.preventDefault(),$(t.target).click())}).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(new N2Classes.FrontendSliderSlide(this,t.eq(e),e));this.starterSlide=this.slides[0];for(var e=0;e<this.slides.length;e++)this.slides[e].init(),1==this.slides[e].$element.data("first")&&(this.starterSlide=this.slides[e]);this.realSlides=this.slides,this.afterRawSlidesReady(),this.randomize(this.slides);var i=this.sliderElement.find(".n2-ss-static-slide");i.length&&(this.staticSlide=new N2Classes.FrontendSliderStaticSlide(this,i))},SmartSliderAbstract.prototype.afterRawSlidesReady=function(){},SmartSliderAbstract.prototype.setVisibleSlides=function(t){t!==this.visibleSlides&&(this.visibleSlides=t,this.sliderElement.triggerHandler("visibleSlidesChanged"))},SmartSliderAbstract.prototype.getVisibleSlides=function(t){return 0===arguments.length&&(t=this.currentSlide),[t]},SmartSliderAbstract.prototype.findSlideBackground=function(t){return t.$element.find(".n2-ss-slide-background")},SmartSliderAbstract.prototype.getRealIndex=function(t){return t},SmartSliderAbstract.prototype.randomize=function(t){this.randomizeFirst(),this.parameters.randomize.randomize&&this.shuffleSlides(t)},SmartSliderAbstract.prototype.randomizeFirst=function(){this.parameters.randomize.randomizeFirst&&(this.unsetActiveSlide(this.starterSlide),this.starterSlide=this.realSlides[Math.floor(Math.random()*this.realSlides.length)],this.setActiveSlide(this.starterSlide))},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);this.isShuffled=!0},SmartSliderAbstract.prototype.addWidget=function(t,e){this.widgetDeferreds.push(e)},SmartSliderAbstract.prototype.started=function(t){this.startedDeferred.done($.proxy(t,this))},SmartSliderAbstract.prototype.preReadyResolve=function(){setTimeout($.proxy(this._preReadyResolve,this),1)},SmartSliderAbstract.prototype._preReadyResolve=function(){this.load.start(),this.load.loaded($.proxy(this.readyResolve,this))},SmartSliderAbstract.prototype.readyResolve=function(){$(window).scroll(),this.readyDeferred.resolve()},SmartSliderAbstract.prototype.ready=function(t){this.readyDeferred.done($.proxy(t,this))},SmartSliderAbstract.prototype.startVisibilityCheck=function(){!this.isAdmin&&this.parameters.playWhenVisible?this.ready($.proxy(function(){$(window).on("scroll.n2-ss-visible"+this.id+" resize.n2-ss-visible"+this.id,$.proxy(this.checkIfVisible,this)),this.checkIfVisible()},this)):this.ready($.proxy(function(){this.visibleDeferred.resolve()},this))},SmartSliderAbstract.prototype.checkIfVisible=function(){var t=this.parameters.playWhenVisibleAt,e=$(window).scrollTop(),i=$(window).height(),s=$(document).height(),n=this.sliderElement[0].getBoundingClientRect(),r=i*t/2,o=e+r,a=e+i-r;r>e&&(o*=e/r),e+i>s-r&&(a+=e+i-s+r);var l=e+n.top,h=e+n.bottom;(this.isAdmin||a>=l&&l>=o||h>=o&&a>=h||o>=l&&h>=a)&&($(window).off(".n2-ss-visible"+this.id),this.visibleDeferred.resolve())},SmartSliderAbstract.prototype.visible=function(t){this.visibleDeferred.done($.proxy(t,this))},SmartSliderAbstract.prototype.isPlaying=function(){return"ended"!==this.mainAnimation.getState()},SmartSliderAbstract.prototype.focus=function(t){var e=$.Deferred();if(t===undefined&&(t=0),this.responsive.parameters.focusUser&&!t||this.responsive.parameters.focusAutoplay&&t){var i=this.sliderElement.offset().top-(this.responsive.verticalOffsetSelectors.height()||0);$(window).scrollTop()!==i?(window.nextendScrollFocus=!0,$("html, body").animate({scrollTop:i},400,$.proxy(function(){e.resolve(),setTimeout(function(){window.nextendScrollFocus=!1},300)},this))):e.resolve()}else e.resolve();return e},SmartSliderAbstract.prototype.initNotCarousel=function(){this.next=function(t,e){var i=this.currentSlide.index+1;return i<this.slides.length?this.changeTo(i,!1,t,e):!1},this.previous=function(t,e){var i=this.currentSlide.index-1;return i>=0?this.changeTo(i,!0,t,e):!1},this.isChangePossible=function(t){var e=!1;return"next"===t?(e=this.currentSlide.index+1,e>=this.slides.length&&(e=!1)):"previous"===t&&(e=this.currentSlide.index-1,0>e&&(e=!1)),e!==!1&&e!==this.currentSlide.index};var t=$.proxy(function(t){0===t?this.widgets.setState("nonCarouselFirst",!0):this.widgets.setState("nonCarouselFirst",!1),t===this.slides.length-1?this.widgets.setState("nonCarouselLast",!0):this.widgets.setState("nonCarouselLast",!1)},this);this.startedDeferred.done($.proxy(function(){t(this.currentSlide.index)},this)),this.sliderElement.on("sliderSwitchTo",function(e,i){t(i)})},SmartSliderAbstract.prototype.isChangePossibleCarousel=function(t){var e=!1;return"next"===t?(e=this.currentSlide.index+1,e>=this.slides.length&&(e=0)):"previous"===t&&(e=this.currentSlide.index-1,0>e&&(e=this.slides.length-1)),e!==!1&&e!==this.currentSlide.index},SmartSliderAbstract.prototype.initCarousel=function(){this.next=this.nextCarousel,this.previous=this.previousCarousel,this.isChangePossible=this.isChangePossibleCarousel},SmartSliderAbstract.prototype.nextCarousel=function(t,e){var i=this.currentSlide.index+1;return i>=this.slides.length&&(i=0),this.changeTo(i,!1,t,e)},SmartSliderAbstract.prototype.previousCarousel=function(t,e){var i=this.currentSlide.index-1;return 0>i&&(i=this.slides.length-1),this.changeTo(i,!0,t,e)},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(t,e,i,s){if(t=parseInt(t),t!==this.currentSlide.index){this.sliderElement.trigger("sliderSwitchTo",[t,this.getRealIndex(t)]);var n=$.now();return $.when(this.backgrounds.preLoadSlides(this.getVisibleSlides(this.slides[t])),this.focus(i)).done($.proxy(function(){if(this.mainAnimationLastChangeTime<=n){this.mainAnimationLastChangeTime=n;var r=this.mainAnimation.getState();if("ended"===r){"undefined"==typeof i&&(i=!1);var o=this.mainAnimation;"undefined"!=typeof s&&(o=s),this._changeTo(t,e,i,s),o.changeTo(this.currentSlide,this.slides[t],e,i),this._changeCurrentSlide(t)}else"playing"===r&&(this.sliderElement.off(".fastChange").one("mainAnimationComplete.fastChange",$.proxy(function(){this.changeTo.call(this,t,e,i,s)},this)),this.mainAnimation.timeScale(2*this.mainAnimation.timeScale()))}},this)),!0}return!1},SmartSliderAbstract.prototype._changeCurrentSlide=function(t){this.currentRealSlide=this.currentSlide=this.slides[t]},SmartSliderAbstract.prototype._changeTo=function(t,e,i,s){},SmartSliderAbstract.prototype.revertTo=function(t,e){this.unsetActiveSlide(this.slides[e]),this.setActiveSlide(this.slides[t]),this._changeCurrentSlide(t),this.sliderElement.trigger("sliderSwitchTo",[t,this.getRealIndex(t)])},SmartSliderAbstract.prototype.setActiveSlide=function(t){t.$element.addClass("n2-ss-slide-active")},SmartSliderAbstract.prototype.unsetActiveSlide=function(t){t.$element.removeClass("n2-ss-slide-active")},SmartSliderAbstract.prototype.initMainAnimationWithLayerAnimation=function(){"forced"===this.parameters.layerMode.mode&&this.sliderElement.on("preChangeToPlay",$.proxy(function(t,e,i,s,n){i.handled=!0,s.$element.on("layerAnimationCompleteOut.layers",function(){s.$element.off("layerAnimationCompleteOut.layers"),e.resolve()}),s.playOut()},this)),this.sliderElement.on("mainAnimationStart",$.proxy(this.onMainAnimationStartSyncLayers,this,this.parameters.layerMode)).on("reverseModeEnabled",$.proxy(this.onMainAnimationStartSyncLayersReverse,this,this.parameters.layerMode))},SmartSliderAbstract.prototype.onMainAnimationStartSyncLayers=function(t,e,i,s,n){var r=this.slides[n].$element,o=this.slides[s].$element;"mainInStart"===t.inAnimation?r.one("mainAnimationStartIn.layers",$.proxy(function(){r.off("mainAnimationStartInCancel.layers"),r.data("slide").playIn()},this)):"mainInEnd"===t.inAnimation&&r.one("mainAnimationCompleteIn.layers",$.proxy(function(){r.off("mainAnimationStartInCancel.layers"),r.data("slide").playIn()},this)),"skippable"===t.mode&&o.on("mainAnimationCompleteOut.layers",$.proxy(function(){o.off("mainAnimationCompleteOut.layers"),t.playOnce?this.parameters.foreverLayerAnimation||o.data("slide").pause():o.data("slide").reset()},this)),r.one("mainAnimationStartInCancel.layers",function(){r.off("mainAnimationStartIn.layers"),r.off("mainAnimationCompleteIn.layers")})},SmartSliderAbstract.prototype.onMainAnimationStartSyncLayersReverse=function(t,e,i){var s=this.slides[i].$element;"mainInStart"===t.inAnimation?s.one("mainAnimationStartIn.layers",$.proxy(function(){s.data("slide").playIn()},this)):"mainInEnd"===t.inAnimation&&s.one("mainAnimationCompleteIn.layers",$.proxy(function(){this.sliderElement.off("mainAnimationComplete.layers"),s.data("slide").playIn()},this)),this.sliderElement.one("mainAnimationComplete.layers",function(){s.off("mainAnimationStartIn.layers"),s.off("mainAnimationCompleteIn.layers")})},SmartSliderAbstract.prototype.findSlideByElement=function(t){t=$(t);for(var e=0;e<this.realSlides.length;e++)if(1===this.realSlides[e].$element.has(t).length)return this.realSlides[e];return!1},SmartSliderAbstract.prototype.findSlideIndexByElement=function(t){var e=this.findSlideByElement(t);return e?e:-1},SmartSliderAbstract.prototype.initMainAnimation=function(){this.mainAnimation=!1},SmartSliderAbstract.prototype.initResponsiveMode=function(){this.dimensions=this.responsive.responsiveDimensions},SmartSliderAbstract.prototype.hasTouch=function(){return"0"!=this.parameters.controls.touch&&this.slides.length>1},SmartSliderAbstract.prototype.initControls=function(){this.parameters.admin||(this.hasTouch()&&new N2Classes.SmartSliderControlTouch(this,this.parameters.controls.touch,{fallbackToMouseEvents:this.parameters.controls.drag}),this.parameters.controls.keyboard&&("undefined"!=typeof this.controls.touch?new N2Classes.SmartSliderControlKeyboard(this,this.controls.touch._direction.axis):new N2Classes.SmartSliderControlKeyboard(this,"horizontal")),this.parameters.controls.scroll&&new N2Classes.SmartSliderControlScroll(this),this.parameters.controls.tilt&&new N2Classes.SmartSliderControlTilt(this),this.controlAutoplay=new N2Classes.SmartSliderControlAutoplay(this,this.parameters.autoplay),this.controlFullscreen=new N2Classes.SmartSliderControlFullscreen(this))},SmartSliderAbstract.prototype.getSlideIndex=function(t){return t},SmartSliderAbstract.prototype.slideToID=function(t,e){for(var i=0;i<this.realSlides.length;i++)if(this.realSlides[i].id===t)return this.slide(this.getSlideIndex(i),e);var s=$('[data-id="'+t+'"]').closest(".n2-ss-slider");if(s.length&&this.id===s.data("ss").id)return!0;if(s.length){var n=0;return"undefined"!=typeof n2ScrollOffsetSelector&&(n=$(n2ScrollOffsetSelector).outerHeight()),$("html, body").animate({scrollTop:s.offset().top-n},400),s.data("ss").slideToID(t,e)}},SmartSliderAbstract.prototype.slide=function(t,e){return t>=0&&t<this.slides.length?e===undefined?parseInt(this.parameters.carousel)&&this.currentSlide.index===this.slides.length-1&&0===t?this.next():this.currentSlide.index>t?this.changeTo(t,!0):this.changeTo(t):this.changeTo(t,!e):!1},SmartSliderAbstract.prototype.startAutoplay=function(t){return"undefined"!=typeof this.controlAutoplay?(this.controlAutoplay.pauseAutoplayExtraPlayingEnded(t,"autoplayButton"),!0):!1},SmartSliderAbstract.prototype.startLightbox=function(){if(this.parameters.lightbox.length>0){if(this.isShuffled){for(var t=[],e=0;this.realSlides.length>e;e++)t.push(this.parameters.lightbox[this.realSlides[e].originalIndex]);this.parameters.lightbox=t}for(var i=[],s=0,n=this,e=0;e<this.parameters.lightbox.length;e++)i.push($('<a href="'+this.parameters.lightbox[e]+'" n2-lightbox="" data-litebox-group="'+this.id+'" style="display:none;"></a>').data({title:this.parameters.titles[e],description:this.parameters.descriptions[e]}).on("click",function(t){t.stopPropagation()}).appendTo(this.realSlides[e].$element));this.parameters.lightboxDeviceImages&&this.sliderElement.on("SliderDevice",$.proxy(function(t,e){for(var s=0;s<this.parameters.lightbox.length;s++){var n=this.parameters.lightbox[s];if(this.parameters.lightboxDeviceImages[n]){var r=this.parameters.lightbox[s];"mobile"===e.device?this.parameters.lightboxDeviceImages[n]["mobile"+(n2const.isRetina?"-retina":"")]?r=this.parameters.lightboxDeviceImages[n]["mobile"+(n2const.isRetina?"-retina":"")]:this.parameters.lightboxDeviceImages[n]["tablet"+(n2const.isRetina?"-retina":"")]&&(r=this.parameters.lightboxDeviceImages[n]["tablet"+(n2const.isRetina?"-retina":"")]):"tablet"===e.device&&this.parameters.lightboxDeviceImages[n]["tablet"+(n2const.isRetina?"-retina":"")]&&(r=this.parameters.lightboxDeviceImages[n]["tablet"+(n2const.isRetina?"-retina":"")]),i[s].attr("href",r)}}},this)),N2R("litebox",$.proxy(function(){this.sliderElement.find("a[n2-lightbox]").liteBox({callbackBeforeOpen:function(t){s=n.currentRealSlide.index,this.$element.trigger("mediaStarted",this)},callbackAfterClose:function(){this.$element.trigger("mediaEnded",this)},callbackPrev:$.proxy(function(){var t=s-1;0>t&&(t=n.realSlides.length-1),this.directionalChangeToReal(t),s=t},this),callbackNext:$.proxy(function(){var t=s+1;t>=n.realSlides.length&&(t=0),this.directionalChangeToReal(t),s=t},this)})},this));var r="click";this.hasTouch()&&(r="n2click");for(var e=0;e<this.realSlides.length;e++)this.realSlides[e].$element.css("cursor","zoom-in").on(r,$.proxy(function(t,e){$(e.target).hasClass("smart-slider-overlay")||setTimeout($.proxy(function(){"ended"===this.mainAnimation.state&&i[t].trigger("click")},this),10)},this,e))}},SmartSliderAbstract.prototype.getSlideBackgroundContainer=function(){},SmartSliderAbstract.prototype.getPerspective=function(){return this.parameters.perspective},SmartSliderAbstract.prototype.startParticleJS=function(t){if(this.pJS&&this.pJS.pJS.fn.vendors.destroypJS(),t.mobile||!n2const.isPhone){var e=this.getSlideBackgroundContainer(),i=N2Classes.particlesJS(e,$.extend(!0,t,{interactivity:{detect_on:this.sliderElement[0]}}));return this.sliderElement.on("SliderResize",function(){i.pJS.fn.resize()}),this.pJS=i,this.pJS}},SmartSliderAbstract}),N2D("SmartSliderWidgets",function($,undefined){function SmartSliderWidgets(t){this.slider=t,this.sliderElement=t.sliderElement.on("BeforeVisible",$.proxy(this.onReady,this)),this.widgets={},this.excludedSlides={},this.states={hover:!1,nonCarouselFirst:!1,nonCarouselLast:!1,currentSlideIndex:-1,singleSlide:!1},this.widgets={previous:this.sliderElement.find(".nextend-arrow-previous"),next:this.sliderElement.find(".nextend-arrow-next"),bullet:this.sliderElement.find(".n2-ss-control-bullet"),autoplay:this.sliderElement.find(".nextend-autoplay"),indicator:this.sliderElement.find(".nextend-indicator"),bar:this.sliderElement.find(".nextend-bar"),thumbnail:this.sliderElement.find(".nextend-thumbnail"),shadow:this.sliderElement.find(".nextend-shadow"),fullscreen:this.sliderElement.find(".nextend-fullscreen"),html:this.sliderElement.find(".nextend-widget-html")}}return 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("previous");break;case"nonCarouselLast":this.onStateChangeSingle("next");break;default:this.onStateChangeAll()}}},SmartSliderWidgets.prototype.onStateChangeAll=function(){for(var t in this.widgets)this.onStateChangeSingle(t)},SmartSliderWidgets.prototype.onStateChangeSingle=function(t){if(this.widgets[t].length){var e=!0;if(this.widgets[t].hasClass("n2-ss-widget-display-hover")&&(e=this.states.hover),e&&("previous"===t&&this.states.nonCarouselFirst?e=!1:"next"===t&&this.states.nonCarouselLast&&(e=!1)),e){var 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.widgets[t].toggleClass("n2-ss-widget-hidden",!e)}},SmartSliderWidgets.prototype.onReady=function(){this.slider.sliderElement.on("slideCountChanged",$.proxy(function(){this.setState("singleSlide",this.slider.slides.length<=1)},this)),this.dimensions=this.slider.dimensions,this.$vertical=this.sliderElement.find('[data-position="above"],[data-position="below"]').not(".nextend-shadow");var t=!1;for(var e in this.widgets){var i=this.widgets[e].attr("data-exclude-slides");if(i!==undefined){for(var s=i.split(","),n=s.length-1;n>=0;n--){var r=s[n].split("-");if(2===r.length){var o=parseInt(r[0]),a=parseInt(r[1]);if(a>=o)for(var l=o;a>=l;l++)s.push(l)}else s[n]=parseInt(s[n])}if(s.length>0){for(var n=0;n<s.length;n++)this.excludedSlides[e+"-"+s[n]]=!0;t=!0}}}if(t){var h=$.proxy(function(t,e){this.setState("currentSlideIndex",e)},this);h(null,this.slider.currentRealSlide.index),this.slider.sliderElement.on({sliderSwitchTo:h})}this.variableElementsDimension={width:this.sliderElement.find("[data-sswidth]"),height:this.sliderElement.find("[data-ssheight]")},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.sliderElement.on("SliderAnimatedResize",$.proxy(this.onAnimatedResize,this)),this.slider.sliderElement.on("SliderResize",$.proxy(this.onResize,this)),this.slider.sliderElement.one("slideCountChanged",$.proxy(function(){this.onResize(this.slider.responsive.lastRatios)},this)),this.onResize(this.slider.responsive.lastRatios),this.onStateChangeAll()},SmartSliderWidgets.prototype.onAnimatedResize=function(e,ratios,timeline,duration){for(var key in this.widgets){var el=this.widgets[key],visible=el.is(":visible");this.dimensions[key+"width"]=visible?el.outerWidth(!1):0,this.dimensions[key+"height"]=visible?el.outerHeight(!1):0}this.dimensions.width=this.dimensions.slider.width,this.dimensions.height=this.dimensions.slider.height,this.dimensions.outerwidth=this.sliderElement.parent().width(),this.dimensions.outerheight=this.sliderElement.parent().height(),this.dimensions.canvaswidth=this.dimensions.slide.width,this.dimensions.canvasheight=this.dimensions.slide.height,this.dimensions.margintop=this.dimensions.slider.marginTop,this.dimensions.marginright=this.dimensions.slider.marginRight,this.dimensions.marginbottom=this.dimensions.slider.marginBottom,this.dimensions.marginleft=this.dimensions.slider.marginLeft;var variableText="";for(var key in this.dimensions){var value=this.dimensions[key];if("object"==typeof value)for(var key2 in value)variableText+="var "+key+key2+" = "+value[key2]+";";else variableText+="var "+key+" = "+value+";"}eval(variableText);for(var k in this.variableElementsDimension)for(var i=0;i<this.variableElementsDimension[k].length;i++){var el=this.variableElementsDimension[k].eq(i);if(el.is(":visible")){var to={};try{to[k]=eval(el.data("ss"+k))+"px";for(var widget in this.widgets)this.widgets[widget].filter(el).length&&("width"==k?this.dimensions[widget+k]=el.outerWidth(!1):"height"==k&&(this.dimensions[widget+k]=el.outerHeight(!1)),eval(widget+k+" = "+this.dimensions[widget+k]+";"))}catch(e){console.log(el," position variable: "+e.message+": ",el.data("ss"+k))}timeline.to(el,duration,to,0)}}for(var k in this.variableElements)for(var i=0;i<this.variableElements[k].length;i++){var el=this.variableElements[k].eq(i);try{var to={};to[k]=eval(el.data("ss"+k))+"px",timeline.to(el,duration,to,0)}catch(e){console.log(el," position variable: "+e.message+": ",el.data("ss"+k))}}},SmartSliderWidgets.prototype.onResize=function(e,ratios,responsive,timeline){if(!timeline){for(var k in this.variableElements)for(var i=0;i<this.variableElements[k].length;i++){var last=this.variableElements[k].data("n2Last"+k);last>0&&this.variableElements[k].css(k,0)}for(var key in this.widgets){var el=this.widgets[key],visible=el.length&&el.is(":visible");el.length&&el.is(":visible")?(this.dimensions[key+"width"]=el.outerWidth(!1),this.dimensions[key+"height"]=el.outerHeight(!1)):(this.dimensions[key+"width"]=0,this.dimensions[key+"height"]=0)}for(var k in this.variableElements)for(var i=0;i<this.variableElements[k].length;i++){var last=this.variableElements[k].data("n2Last"+k);last>0&&this.variableElements[k].css(k,last)}this.dimensions.width=this.dimensions.slider.width,this.dimensions.height=this.dimensions.slider.height,this.dimensions.outerwidth=this.sliderElement.parent().width(),this.dimensions.outerheight=this.sliderElement.parent().height(),this.dimensions.canvaswidth=this.dimensions.slide.width,this.dimensions.canvasheight=this.dimensions.slide.height,this.dimensions.margintop=this.dimensions.slider.marginTop,this.dimensions.marginright=this.dimensions.slider.marginRight,this.dimensions.marginbottom=this.dimensions.slider.marginBottom,this.dimensions.marginleft=this.dimensions.slider.marginLeft;var variableText="";for(var key in this.dimensions){var value=this.dimensions[key];if("object"==typeof value)for(var key2 in value)variableText+="var "+key+key2+" = "+value[key2]+";";else variableText+="var "+key+" = "+value+";"}eval(variableText);for(var k in this.variableElementsDimension)for(var i=0;i<this.variableElementsDimension[k].length;i++){var el=this.variableElementsDimension[k].eq(i);if(el.is(":visible"))try{el.css(k,eval(el.data("ss"+k))+"px");for(var widget in this.widgets)this.widgets[widget].filter(el).length&&("width"==k?this.dimensions[widget+k]=el.outerWidth(!1):"height"==k&&(this.dimensions[widget+k]=el.outerHeight(!1)),eval(widget+k+" = "+this.dimensions[widget+k]+";"))}catch(e){console.log(el," position variable: "+e.message+": ",el.data("ss"+k))}}for(var k in 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));el.css(k,value+"px"),el.data("n2Last"+k,value)}catch(e){console.log(el," position variable: "+e.message+": ",el.data("ss"+k))}}this.slider.responsive.refreshStaticSizes()}},SmartSliderWidgets}),N2D("SmartSliderMainAnimationAbstract",function(t,e){function i(e,i){this.state="ended",this.isTouch=!1,this.isReverseAllowed=!0,this.isReverseEnabled=!1,this.reverseSlideIndex=null,this.isNoAnimation=!1,this.slider=e,this.parameters=t.extend({duration:1500,ease:"easeInOutQuint"},i),this.parameters.duration/=1e3,this.sliderElement=e.sliderElement,this.timeline=new NextendTimeline({paused:!0}),this.sliderElement.on("mainAnimationStart",t.proxy(function(t,e,i,s){this._revertCurrentSlideIndex=i,this._revertNextSlideIndex=s},this))}return i.prototype.setToStarterSlide=function(t){},i.prototype.enableReverseMode=function(){this.isReverseEnabled=!0,this.reverseTimeline=new NextendTimeline({paused:!0}),this.sliderElement.triggerHandler("reverseModeEnabled",this.reverseSlideIndex)},i.prototype.disableReverseMode=function(){this.isReverseEnabled=!1},i.prototype.setTouch=function(t){this.isTouch=t},i.prototype.setTouchProgress=function(t){this.isReverseEnabled?this._setTouchProgressWithReverse(t):this._setTouchProgress(t)},i.prototype._setTouchProgress=function(t){"ended"!=this.state&&(0>=t?this.timeline.progress(Math.max(t,1e-6),!1):t>=0&&1>=t&&this.timeline.progress(t))},i.prototype._setTouchProgressWithReverse=function(t){0==t?(this.reverseTimeline.progress(0),this.timeline.progress(t,!1)):t>=0&&1>=t?(this.reverseTimeline.progress(0),this.timeline.progress(t)):0>t&&t>=-1&&(this.timeline.progress(0),this.reverseTimeline.progress(Math.abs(t)))},i.prototype.setTouchEnd=function(t,e,i){"ended"!=this.state&&(this.isReverseEnabled?this._setTouchEndWithReverse(t,e,i):this._setTouchEnd(t,e,i))},i.prototype._setTouchEnd=function(t,e,i){t&&e>0?(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))},i.prototype._setTouchEndWithReverse=function(t,e,i){t?0>e&&this.reverseTimeline.totalDuration()>0?(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()):(0>e?(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))},i.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)},i.prototype.getState=function(){return this.state},i.prototype.timeScale=function(){return arguments.length>0?(this.timeline.timeScale(arguments[0]),this):this.timeline.timeScale()},i.prototype.preChangeToPlay=function(t,e,i){var s={handled:!1};this.sliderElement.trigger("preChangeToPlay",[t,s,e,i]),s.handled||t.resolve()},i.prototype.changeTo=function(e,i,s,n){if(this._initAnimation(e,i,s),this.state="initAnimation",this.timeline.paused(!0),this.timeline.eventCallback("onStart",this.onChangeToStart,[e,i,n],this),this.timeline.eventCallback("onComplete",this.onChangeToComplete,[e,i,n],this),this.timeline.eventCallback("onReverseComplete",null),this.revertCB=t.proxy(function(t){t.eventCallback("onReverseComplete",this.onReverseChangeToComplete,[i,e,n],this)},this),this.slider.parameters.dynamicHeight){var r=new NextendTimeline;this.slider.responsive.doResize(null,r,i,.6),this.timeline.add(r)}if(this.isTouch)e.onOutAnimationsPlayed();else{var o=t.Deferred();o.done(t.proxy(function(){this.play()},this.timeline)),this.preChangeToPlay(o,e,i)}},i.prototype.willRevertTo=function(e,i){this.sliderElement.triggerHandler("mainAnimationWillRevertTo",[e,i]),this.sliderElement.one("mainAnimationComplete",t.proxy(this.revertTo,this,e,i))},i.prototype.revertTo=function(t,e){this.slider.revertTo(t,e),this.slider.slides[e].triggerHandler("mainAnimationStartInCancel")},i.prototype.willCleanSlideIndex=function(e){this.sliderElement.one("mainAnimationComplete",t.proxy(this.cleanSlideIndex,this,e))},i.prototype.cleanSlideIndex=function(){},i.prototype._initAnimation=function(t,e,i){},i.prototype.onChangeToStart=function(t,e,i){this.state="playing";var s=[this,t.index,e.index,i];this.sliderElement.trigger("mainAnimationStart",s),this.slider.slides[t.index].trigger("mainAnimationStartOut",s),this.slider.slides[e.index].trigger("mainAnimationStartIn",s)},i.prototype.onChangeToComplete=function(t,e,i){var s=[this,t.index,e.index,i];this.clearTimelines(),this.disableReverseMode(),this.slider.slides[t.index].trigger("mainAnimationCompleteOut",s),this.slider.slides[e.index].trigger("mainAnimationCompleteIn",s),this.state="ended",this.sliderElement.trigger("mainAnimationComplete",s)},i.prototype.onReverseChangeToComplete=function(t,e,s){i.prototype.onChangeToComplete.apply(this,arguments)},i.prototype.clearTimelines=function(){this.revertCB=function(){},this.timeline.clear(),this.timeline.timeScale(1)},i.prototype.getEase=function(){return this.isTouch?"linear":this.parameters.ease},i}),N2D("SmartSliderPostBackgroundAnimation",function(t,e){function i(e,i){this.tween=null,this.lastTween=null,this.slider=e,this.mainAnimation=i,this.isFirst=!0,this.visibleAddedButNotPlayed=!1,this.parameters=t.extend({data:0,speed:"default",strength:"default"},e.parameters.postBackgroundAnimations),this.backgrounds=e.backgrounds,this.tweens=[],this.images=this.backgrounds.getBackgroundImages();for(var s=0;s<this.images.length;s++)this.images[s]&&this.images[s].hasImage()?(this.tweens[s]=this.images[s].loadDeferred,this.images[s].loadDeferred.done(t.proxy(function(t){this.tweens[t]=this.getAnimation(t,this.images[t],{slideW:1,slideH:1})},this,s))):this.tweens[s]=!1;this.playOnce=e.parameters.layerMode.playOnce,this.playFirst=e.parameters.layerMode.playFirstLayer;var n=e.currentSlide.index;this.tweens[n]&&t.when(this.tweens[n]).done(t.proxy(function(){this.tween=this.tweens[n],this.playFirst?this.addVisiblePlay():this.tween&&this.tween.progress(1,!1)},this)),e.sliderElement.on({mainAnimationStart:t.proxy(this.onMainAnimationStart,this),mainAnimationComplete:t.proxy(this.stop,this),SliderResize:t.proxy(this.onResize,this),mainAnimationWillRevertTo:t.proxy(this.onMainAnimationWillRevertTo,this)})}function s(t,e,i,s){this.startTime=-1,this.currentProgress=0,this.$el=t,this.duration=e,this.from=i,this.from.immediateRender=!0,this.to=s,this.$el.css("transition","all "+this.duration+"s"),this.playTimeout=null,this.pause(0)}var n={"default":5,superSlow:20,slow:10,normal:5,fast:3,superFast:1.5},r={"default":1,superSoft:.3,soft:.6,normal:1,strong:1.5,superStrong:2};return i.prototype.addVisiblePlay=function(){this.visibleAddedButNotPlayed||(this.visibleAddedButNotPlayed=!0,this.slider.visible(t.proxy(this.play,this)))},i.prototype.onMainAnimationStart=function(){this.isFirst=!1,this.mainAnimation.hasBackgroundAnimation()||this.mainAnimation.isTouch?this.slider.sliderElement.one("mainAnimationComplete",t.proxy(this.play,this)):this.play()},i.prototype.onMainAnimationWillRevertTo=function(t,e,i){this.lastTween=this.tween,this.tween=!1},i.prototype.onResize=function(t,e){for(var i=0;i<this.tweens.length;i++){var s=this.tweens[i];s&&(s==this.tween?(s.pause(0),this.tween=this.tweens[i]=this.getAnimation(i,this.images[i],e),this.playFirst||!this.isFirst?this.addVisiblePlay():this.tween.progress(1)):this.tweens[i]=this.getAnimation(i,this.images[i],e))}},i.prototype.getAnimation=function(i,o,a){if(!o.elements.image)return!1;var l=this.parameters.data,h=this.parameters.speed,d=this.parameters.strength;if(this.slider.slides[i].postBackgroundAnimation){var p=this.slider.slides[i].postBackgroundAnimation;l=p.data,h=p.speed,d=p.strength}if(!l)return!1;var c=t.extend(!0,{},l.animations[Math.floor(Math.random()*l.animations.length)]);c.from.transformOrigin===e&&(c.from.transformOrigin=l.transformOrigin),(n2const.isFirefox||n2const.isIE<=11)&&NextendTween.set(o.elements.image.$background.parent(),{rotationZ:"0.001deg"}),NextendTween.set(o.elements.image.$background,{transformOrigin:c.from.transformOrigin,backfaceVisibility:"hidden",transformStyle:"flat",overflow:"hidden"}),c.to.paused=!0;for(var i=0;i<c.strength.length;i++){var u=c.strength[i];"scale"===u?(c.from.scale=1+(c.from.scale-1)*r[d],c.to.scale=1+(c.to.scale-1)*r[d]):(c.from[u]*=r[d],c.to[u]*=r[d])}return"undefined"!=typeof c.from.x&&(c.from.x*=a.slideW),"undefined"!=typeof c.from.y&&(c.from.y*=a.slideH),"undefined"!=typeof c.to.x&&(c.to.x*=a.slideW),"undefined"!=typeof c.to.y&&(c.to.y*=a.slideH),n2const.isIOS||n2const.isMobile?NextendTween.fromTo(o.elements.image.$background,n[h],c.from,c.to):new s(o.elements.image.$background,n[h],c.from,c.to)},i.prototype.prepareToSwitchSlide=function(t,e){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},i.prototype.play=function(){this.visibleAddedButNotPlayed=!1,!this.tween||this.playOnce&&0!==this.tween.progress()||this.tween.play()},i.prototype.stop=function(){!this.playOnce&&this.lastTween&&this.lastTween.pause(0)},s.prototype.pause=function(t){0===t&&(null!==this.playTimeout&&(clearTimeout(this.playTimeout),this.playTimeout=null),this.$el.addClass("n2noselftransition"),NextendTween.set(this.$el,this.from))},s.prototype.play=function(){this.$el.removeClass("n2noselftransition"),this.startTime=t.now(),null!==this.playTimeout&&(clearTimeout(this.playTimeout),this.playTimeout=null),this.playTimeout=setTimeout(t.proxy(function(){NextendTween.set(this.$el,this.to)},this),50)},s.prototype.progress=function(e){return-1===this.startTime?0:(t.now()-this.startTime)/this.duration/1e3},i}),N2D("SmartSliderControlAutoplay",function(t,e){"use strict";function i(e,i){this._paused=!0,this._wait=!1,this._disabled=!1,this._currentCount=0,this._progressEnabled=!1,this.timeline=null,this.hasButton=!1,this.deferredsMediaPlaying=null,this.deferredMouseLeave=null,this.deferredMouseEnter=null,this.mainAnimationDeferred=!0,this.autoplayDeferred=null,this.slider=e,this.parameters=t.extend({enabled:0,start:1,duration:8e3,autoplayToSlide:0,autoplayToSlideIndex:-1,allowReStart:0,pause:{mouse:"enter",click:!0,mediaStarted:!0},resume:{click:0,mouse:0,mediaEnded:!0}},i),this.parameters.enabled?(this.parameters.duration/=1e3,e.controls.autoplay=this,this.deferredsExtraPlaying={},this.slider.visible(t.proxy(this.onReady,this))):this.disable(),e.controls.autoplay=this}var s=!1;return i.prototype.onReady=function(){this.autoplayDeferred=t.Deferred();var e={_progress:0};this.timeline=NextendTween.to(e,this.getSlideDuration(this.slider.currentSlide.index),{_progress:1,paused:!0,onComplete:t.proxy(this.next,this)}),this._progressEnabled&&this.enableProgress();var i=this.slider.sliderElement;if(this.parameters.start?this.continueAutoplay():this.pauseAutoplayExtraPlaying(null,"autoplayButton"),i.on("mainAnimationStart.autoplay",t.proxy(this.onMainAnimationStart,this)),"0"!=this.parameters.pause.mouse)switch(i.on("touchend.autoplay",function(){s=!0,setTimeout(function(){s=!1},300)}),this.parameters.pause.mouse){case"enter":i.on("mouseenter.autoplay",t.proxy(this.pauseAutoplayMouseEnter,this)),i.on("mouseleave.autoplay",t.proxy(this.pauseAutoplayMouseEnterEnded,this));break;case"leave":i.on("mouseleave.autoplay",t.proxy(this.pauseAutoplayMouseLeave,this)),i.on("mouseenter.autoplay",t.proxy(this.pauseAutoplayMouseLeaveEnded,this))}if(this.parameters.pause.click&&!this.parameters.resume.click?i.on("universalclick.autoplay",t.proxy(this.pauseAutoplayUniversal,this)):!this.parameters.pause.click&&this.parameters.resume.click?i.on("universalclick.autoplay",t.proxy(function(t){this.pauseAutoplayExtraPlayingEnded(t,"autoplayButton")},this)):this.parameters.pause.click&&this.parameters.resume.click&&i.on("universalclick.autoplay",t.proxy(function(t){this._paused?this.pauseAutoplayExtraPlayingEnded(t,"autoplayButton"):this.pauseAutoplayUniversal(t)},this)),this.parameters.pause.mediaStarted&&(this.deferredsMediaPlaying={},i.on("mediaStarted.autoplay",t.proxy(this.pauseAutoplayMediaPlaying,this)),i.on("mediaEnded.autoplay",t.proxy(this.pauseAutoplayMediaPlayingEnded,this))),"0"!=this.parameters.resume.mouse)switch(this.parameters.resume.mouse){case"enter":this.hasButton&&"0"!=this.parameters.pause.mouse?i.on("mouseenter.autoplay",t.proxy(this.continueAutoplay,this)):i.on("mouseenter.autoplay",t.proxy(function(t){this.pauseAutoplayExtraPlayingEnded(t,"autoplayButton")},this));break;case"leave":this.hasButton&&"0"!=this.parameters.pause.mouse?i.on("mouseleave.autoplay",t.proxy(this.continueAutoplay,this)):i.on("mouseleave.autoplay",t.proxy(function(t){this.pauseAutoplayExtraPlayingEnded(t,"autoplayButton")},this))}this.parameters.resume.mediaEnded&&i.on("mediaEnded.autoplay",t.proxy(this.continueAutoplay,this)),i.on("autoplayExtraWait.autoplay",t.proxy(this.pauseAutoplayExtraPlaying,this)),i.on("autoplayExtraContinue.autoplay",t.proxy(this.pauseAutoplayExtraPlayingEnded,this)),this.slider.sliderElement.on("mainAnimationComplete.autoplay",t.proxy(this.onMainAnimationComplete,this))},i.prototype.enableProgress=function(){this.timeline&&this.timeline.eventCallback("onUpdate",t.proxy(this.onUpdate,this)),this._progressEnabled=!0},i.prototype.onMainAnimationStart=function(e,i,s,n,r){this.mainAnimationDeferred=t.Deferred(),this.deActivate(0,"wait");for(var o in this.deferredsMediaPlaying)this.deferredsMediaPlaying[o].resolve()},i.prototype.onMainAnimationComplete=function(t,e,i,s){this.parameters.autoplayToSlideIndex>=0&&this.parameters.autoplayToSlideIndex==this.slider.currentRealSlide.index+1&&this.limitAutoplay(),this.timeline.duration(this.getSlideDuration(s)),this.mainAnimationDeferred.resolve(),this.continueAutoplay()},i.prototype.getSlideDuration=function(t){var e=this.slider.realSlides[this.slider.getRealIndex(t)],i=e.minimumSlideDuration;return 0==i&&(i=this.parameters.duration),i},i.prototype.continueAutoplay=function(e){"pending"==this.autoplayDeferred.state()&&this.autoplayDeferred.reject();var i=[];for(var s in this.deferredsExtraPlaying)i.push(this.deferredsExtraPlaying[s]);for(var s in this.deferredsMediaPlaying)i.push(this.deferredsMediaPlaying[s]);this.deferredMouseEnter&&i.push(this.deferredMouseEnter),this.deferredMouseLeave&&i.push(this.deferredMouseLeave),i.push(this.mainAnimationDeferred),this.autoplayDeferred=t.Deferred(),this.autoplayDeferred.done(t.proxy(this._continueAutoplay,this)),t.when.apply(t,i).done(t.proxy(function(){"pending"==this.autoplayDeferred.state()&&this.autoplayDeferred.resolve()},this))},i.prototype._continueAutoplay=function(){!this._paused&&!this._wait||this._disabled||(this._paused=!1,this._wait=!1,this.slider.sliderElement.triggerHandler("autoplayStarted"),1==this.timeline.progress()&&this.timeline.pause(0,!1),this.startTimeout(null))},i.prototype.pauseAutoplayUniversal=function(t){this.pauseAutoplayExtraPlaying(t,"autoplayButton"),this.deActivate(null,"pause")},i.prototype.pauseAutoplayMouseEnter=function(){s||(this.autoplayDeferred.reject(),this.deferredMouseEnter=t.Deferred(),this.deActivate(null,"leave"==this.parameters.resume.mouse?"wait":"pause"))},i.prototype.pauseAutoplayMouseEnterEnded=function(){this.deferredMouseEnter&&this.deferredMouseEnter.resolve()},i.prototype.pauseAutoplayMouseLeave=function(){this.autoplayDeferred.reject(),this.deferredMouseLeave=t.Deferred(),this.deActivate(null,"enter"==this.parameters.resume.mouse?"wait":"pause")},i.prototype.pauseAutoplayMouseLeaveEnded=function(){this.deferredMouseLeave&&this.deferredMouseLeave.resolve()},i.prototype.pauseAutoplayMediaPlaying=function(e,i){"undefined"!=typeof this.deferredsMediaPlaying[i]&&this.autoplayDeferred.reject(),this.deferredsMediaPlaying[i]=t.Deferred(),this.deActivate(null,"wait")},i.prototype.pauseAutoplayMediaPlayingEnded=function(t,e){"undefined"!=typeof this.deferredsMediaPlaying[e]&&(this.autoplayDeferred.reject(),this.deferredsMediaPlaying[e].resolve(),delete this.deferredsMediaPlaying[e])},i.prototype.pauseAutoplayExtraPlaying=function(e,i){"undefined"!=typeof this.deferredsExtraPlaying[i]&&this.autoplayDeferred.reject(),this.deferredsExtraPlaying[i]=t.Deferred(),this.deActivate(null,"pause")},i.prototype.pauseAutoplayExtraPlayingEnded=function(t,e){"undefined"!=typeof this.deferredsExtraPlaying[e]&&(this.autoplayDeferred.reject(),this.deferredsExtraPlaying[e].resolve(),delete this.deferredsExtraPlaying[e]),this.continueAutoplay()},i.prototype.deActivate=function(t,e){"pause"==e?this._paused||(this._paused=!0,0!==t&&this.slider.sliderElement.triggerHandler("autoplayPaused")):"wait"==e&&(this._wait||(this._wait=!0,0!==t&&this.slider.sliderElement.triggerHandler("autoplayWait"))),this.timeline&&this.timeline.pause(t,!1)},i.prototype.disable=function(){this.deActivate(0,"pause"),this.slider.sliderElement.triggerHandler("autoplayPaused"),this.slider.sliderElement.triggerHandler("autoplayDisabled"),this.slider.sliderElement.off(".autoplay"),this._disabled=!0},i.prototype.startTimeout=function(t){this._paused||this._disabled||this.timeline.play(t)},i.prototype.next=function(){this.timeline.pause(),this._currentCount++,(this.parameters.autoplayToSlide>0&&this._currentCount>=this.parameters.autoplayToSlide||this.parameters.autoplayToSlideIndex>=0&&this.parameters.autoplayToSlideIndex==this.slider.currentRealSlide.index+2)&&this.limitAutoplay(),this.slider.nextCarousel(!0)},i.prototype.limitAutoplay=function(){this.parameters.allowReStart?(this._currentCount=0,this.slider.sliderElement.triggerHandler("autoplayExtraWait","autoplayButton")):this.disable()},i.prototype.onUpdate=function(){this.slider.sliderElement.triggerHandler("autoplay",this.timeline.progress())},i}),N2D("SmartSliderControlFullscreen",function(t,e){"use strict";function i(e,i,s){this.slider=e,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._minimumHeightRatio=t.extend({},this.responsive.parameters.minimumHeightRatio),this._maximumHeightRatio=t.extend({},this.responsive.parameters.maximumHeightRatio)),this.isFullScreen=!1,this.fullParent=this.slider.sliderElement.closest(".n2-ss-align"),this.browserSpecific={};var n=this.slider.sliderElement[0];n.requestFullscreen?(this.browserSpecific.requestFullscreen="requestFullscreen",this.browserSpecific.event="fullscreenchange"):n.msRequestFullscreen?(this.browserSpecific.requestFullscreen="msRequestFullscreen",this.browserSpecific.event="MSFullscreenChange"):n.mozRequestFullScreen?(this.browserSpecific.requestFullscreen="mozRequestFullScreen",this.browserSpecific.event="mozfullscreenchange"):n.webkitRequestFullscreen?(this.browserSpecific.requestFullscreen="webkitRequestFullscreen",this.browserSpecific.event="webkitfullscreenchange"):(this.browserSpecific.requestFullscreen="nextendRequestFullscreen",this.browserSpecific.event="nextendfullscreenchange",this.fullParent[0][this.browserSpecific.requestFullscreen]=t.proxy(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),t(window).trigger("resize")},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]=t.proxy(function(){this.fullParent.css({position:"",left:"",top:"",width:"",height:"",backgroundColor:"",zIndex:""}),document.fullscreenElement=null,this.triggerEvent(document,this.browserSpecific.event)},this)),document.addEventListener(this.browserSpecific.event,t.proxy(this.fullScreenChange,this))}return i.prototype.switchState=function(){this.isFullScreen=!this.isFullScreen,this.isFullScreen?this._fullScreen():this._normalScreen()},i.prototype.requestFullscreen=function(){return this.isFullScreen?!1:(this.isFullScreen=!0,this._fullScreen(),!0)},i.prototype.exitFullscreen=function(){return this.isFullScreen?(this.isFullScreen=!1,this._normalScreen(),!0):!1},i.prototype.triggerEvent=function(t,e){var i;document.createEvent?(i=document.createEvent("HTMLEvents"),i.initEvent(e,!0,!0)):document.createEventObject&&(i=document.createEventObject(),i.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]()},i.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:t("body").css("background-color")}).addClass("n2-ss-in-fullscreen"),this.fullParent.get(0)[this.browserSpecific.requestFullscreen]()},i.prototype._normalScreen=function(){document[this.browserSpecific.exitFullscreen]?document[this.browserSpecific.exitFullscreen]():this.fullParent[0][this.browserSpecific.exitFullscreen]&&this.fullParent[0][this.browserSpecific.exitFullscreen]()},i.prototype.fullScreenChange=function(){this.isDocumentInFullScreenMode()?(this.slider.sliderElement.triggerHandler("n2FullScreen"),t("html").addClass("n2-in-fullscreen"),this.isFullScreen=!0,t(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.parameters.minimumHeightRatio=this._minimumHeightRatio,this.responsive.parameters.maximumHeightRatio=this._maximumHeightRatio,this.responsive.containerElement.css(n2const.rtl.marginLeft,this._marginLeft),this.fullParent.css({width:"",height:"",backgroundColor:""}).removeClass("n2-ss-in-fullscreen"),t("html").removeClass("n2-in-fullscreen"),t(window).trigger("resize"),this.isFullScreen=!1,this.slider.sliderElement.triggerHandler("n2ExitFullScreen"))},i.prototype.isDocumentInFullScreenMode=function(){return document.fullscreenElement&&null!==document.fullscreenElement||document.msFullscreenElement&&null!==document.msFullscreenElement||document.mozFullScreen||document.webkitIsFullScreen},i}),N2D("SmartSliderControlKeyboard",function(t,e){"use strict";function i(e,s,n){this.slider=e,this.parameters=t.extend({},n),"vertical"==s?this.parseEvent=i.prototype.parseEventVertical:this.parseEvent=i.prototype.parseEventHorizontal,t(document).on("keydown",t.proxy(this.onKeyDown,this)),e.controls.keyboard=this}return i.prototype.isSliderOnScreen=function(){var e=this.slider.sliderElement.offset(),i=t(window).scrollTop(),s=this.slider.sliderElement.height();return e.top+.5*s>=i&&e.top-.5*s<=i+t(window).height()},i.prototype.onKeyDown=function(t){t.target.tagName.match(/BODY|DIV|IMG/)&&this.isSliderOnScreen()&&(t=t||window.event,this.parseEvent.call(this,t)&&(t.preventDefault(),t.stopImmediatePropagation()))},i.prototype.parseEventHorizontal=function(t){switch(t.keyCode){case 39:return this.slider[n2const.rtl.next](),!0;case 37:return this.slider[n2const.rtl.previous](),!0;default:return!1}},i.prototype.parseEventVertical=function(t){switch(t.keyCode){case 40:return this.slider.next(),!0;case 38:return this.slider.previous(),!0;default:return!1}},i}),N2D("SmartSliderControlScroll",function(t,e){"use strict";function i(e){this.preventScroll=!1,this.preventScrollGlobal=!1,this.slider=e,e.sliderElement.on("DOMMouseScroll mousewheel",t.proxy(this.onMouseWheel,this)),e.controls.scroll=this}return i.prototype.onMouseWheel=function(t){if(this.preventScroll===!1){var e=!1;t.originalEvent&&(t.originalEvent.wheelDelta&&(e=t.originalEvent.wheelDelta/-1<0),t.originalEvent.deltaY&&(e=t.originalEvent.deltaY<0),t.originalEvent.detail&&(e=t.originalEvent.detail<0)),e?this.slider.previous()&&(t.preventDefault(),this.preventRepeat(),this.preventGlobal()):this.slider.next()&&(t.preventDefault(),this.preventRepeat(),this.preventGlobal())}else t.preventDefault(),this.preventRepeat(t)},i.prototype.preventRepeat=function(){this.preventScroll!==!1&&clearTimeout(this.preventScroll),this.preventScroll=setTimeout(t.proxy(function(){this.preventScroll=!1,this.preventScrollGlobal!==!1&&(clearTimeout(this.preventScrollGlobal),this.preventScrollGlobal=!1)},this),200)},i.prototype.preventGlobal=function(){this.preventScrollGlobal!==!1&&clearTimeout(this.preventScrollGlobal),this.preventScrollGlobal=setTimeout(t.proxy(function(){this.preventScroll!==!1&&clearTimeout(this.preventScroll),this.preventScroll=!1},this),2e3)},i}),N2D("SmartSliderControlTilt",function(t,e){"use strict";function i(i,s){return window.DeviceOrientationEvent===e||window.orientation===e?"Not supported":(this.timeout=null,this.slider=i,this.parameters=t.extend({duration:2e3},s),this.orientationchange(),window.addEventListener("orientationchange",t.proxy(this.orientationchange,this)),window.addEventListener("deviceorientation",t.proxy(this.handleOrientation,this),!0),void(i.controls.tilt=this))}return i.prototype.orientationchange=function(){switch(window.orientation){case-90:case 90:this.parseEvent=i.prototype.parseEventHorizontalLandscape;break;default:this.parseEvent=i.prototype.parseEventHorizontal}},i.prototype.clearTimeout=function(){this.timeout=null},i.prototype.handleOrientation=function(e){null==this.timeout&&this.parseEvent.call(this,e)&&(this.timeout=setTimeout(t.proxy(this.clearTimeout,this),this.parameters.duration),e.preventDefault())},i.prototype.parseEventHorizontal=function(t){return t.gamma>10?(this.slider.next(),!0):t.gamma<-10?(this.slider.previous(),!0):!1},i.prototype.parseEventHorizontalLandscape=function(t){return t.beta<-10?(this.slider.next(),!0):t.beta>10?(this.slider.previous(),!0):!1},i}),N2D("SmartSliderControlTouch",function(t,e){"use strict";function i(e,i,s){this.currentAnimation=null,this.slider=e,this._animation=e.mainAnimation,this.parameters=t.extend({fallbackToMouseEvents:!0},s),this.swipeElement=this.slider.sliderElement.find("> .n2-ss-swipe-element"),"vertical"==i?this.setVertical():"horizontal"==i&&this.setHorizontal();var r=t.proxy(function(){var t=this;this._animation.isNoAnimation?N2Classes.EventBurrito(this.swipeElement.get(0),{mouse:this.parameters.fallbackToMouseEvents,axis:"horizontal"==i?"x":"y",start:function(){n=!1},move:function(e,i,s,r,o){var a=t._direction.measure(s);if(!o&&"unknown"!=a&&null===t.currentAnimation){if("ended"!=t._animation.state)return!1;t.distance=[0],t.swipeElement.addClass("n2-grabbing"),t.currentAnimation={direction:a};var l=t.slider.isChangePossible(t._direction[a]);if(!l)return t.currentAnimation=null,!1}if(t.currentAnimation){var h=t._direction.get(s,t.currentAnimation.direction);if(t.logDistance(h),(n||Math.abs(h)>t._direction.minDistance)&&e.cancelable)return n=!0,!0}return!1},end:function(e,i,s,n,r){if(null!==t.currentAnimation){var o=r?0:t.measureRealDirection();o&&t.slider[t._direction[t.currentAnimation.direction]](),t.swipeElement.removeClass("n2-grabbing"),t.currentAnimation=null}Math.abs(s.x)<10&&Math.abs(s.y)<10?t.onTap(e):nextend.preventClick()}}):N2Classes.EventBurrito(this.swipeElement.get(0),{mouse:this.parameters.fallbackToMouseEvents,axis:"horizontal"==i?"x":"y",start:function(t,e){n=!1},move:function(e,i,s,r,o){var a=t._direction.measure(s);if(!o&&"unknown"!=a&&null===t.currentAnimation){if("ended"!=t._animation.state)return!1;t.distance=[0],t.swipeElement.addClass("n2-grabbing"),t._animation.setTouch(t._direction.axis),t.currentAnimation={direction:a,percent:0};var l=t.slider[t._direction[a]](!1);if(!l)return t._animation.setTouch(!1),t.currentAnimation=null,!1}if(t.currentAnimation){var h=t._direction.get(s,t.currentAnimation.direction);if(t.logDistance(h),t.currentAnimation.percent<1){var d=Math.max(-.99999,Math.min(.99999,h/t.slider.dimensions.slider[t._property]));t.currentAnimation.percent=d,t._animation.setTouchProgress(d)}if((n||Math.abs(h)>t._direction.minDistance)&&e.cancelable)return n=!0,!0}return!1},end:function(e,i,s,n,r){if(null!==t.currentAnimation){var o=r?0:t.measureRealDirection(),a=t._animation.timeline.progress();1!=a&&t._animation.setTouchEnd(o,t.currentAnimation.percent,s.time),t.swipeElement.removeClass("n2-grabbing"),t._animation.setTouch(!1),t.currentAnimation=null}Math.abs(s.x)<10&&Math.abs(s.y)<10?t.onTap(e):nextend.preventClick()}})},this);if(navigator.userAgent.toLowerCase().indexOf("android")>-1){var o=this.swipeElement.parent();1!=o.css("opacity")?this.swipeElement.parent().one("transitionend",r):r()}else r();this.parameters.fallbackToMouseEvents||this.swipeElement.on("click",t.proxy(this.onTap,this)),this.parameters.fallbackToMouseEvents&&this.swipeElement.addClass("n2-grab"),e.controls.touch=this}var s=window.navigator.pointerEnabled||window.navigator.msPointerEnabled,n=!1,r=!1;return i.prototype.setHorizontal=function(){this._property="width",this._direction={left:n2const.rtl.next,right:n2const.rtl.previous,up:null,down:null,axis:"horizontal",minDistance:10,measure:function(t){return!n&&Math.abs(t.x)<10||0==t.x||Math.abs(t.x)<Math.abs(t.y)?"unknown":t.x<0?"left":"right"},get:function(t,e){return"left"==e?-t.x:t.x}},s&&(this.swipeElement.css("-ms-touch-action","pan-y"),this.swipeElement.css("touch-action","pan-y"))},i.prototype.setVertical=function(){this._property="height",this._direction={left:null,right:null,up:"next",down:"previous",axis:"vertical",minDistance:1,measure:function(t){return!n&&Math.abs(t.y)<1||0==t.y||Math.abs(t.y)<Math.abs(t.x)?"unknown":t.y<0?"up":"down"},get:function(t,e){return"up"==e?-t.y:t.y}},s&&(this.swipeElement.css("-ms-touch-action","pan-x"),this.swipeElement.css("touch-action","pan-x"))},i.prototype.logDistance=function(t){this.distance.length>3&&this.distance.shift(),this.distance.push(t)},i.prototype.measureRealDirection=function(){var t=this.distance[0],e=this.distance[this.distance.length-1];return e>=0&&t>e||0>e&&e>t?0:1},i.prototype.onTap=function(e){r||(t(e.target).trigger("n2click"),r=!0,setTimeout(function(){r=!1},500))},i}),N2D("SmartSliderSlideBackground",function(t,e){function i(e,i,s){if(this.loadStarted=!1,this.types=this.types||{color:"SmartSliderSlideBackgroundColor",image:"SmartSliderSlideBackgroundImage",video:"SmartSliderSlideBackgroundVideo"},this.width=0,this.height=0,this.slide=e,this.element=i,e.slider.needBackgroundWrap){var n=i.find("> *");this.$wrapElement=t('<div class="n2-ss-slide-background-wrap n2-ow" />').appendTo(i).append(n)}else this.$wrapElement=this.element;this.manager=s,this.loadDeferred=t.Deferred(),this.elements={color:!1,image:!1,video:!1},this.currentSrc="",this.mode=i.data("mode"),this.opacity=i.data("opacity"),this.$image=this.element.find("img"),this.$image.length&&(this.elements.image=new N2Classes[this.types.image](e,s,this,this.$image));var r=this.element.find(".n2-ss-slide-background-color");r.length&&(this.elements.color=new N2Classes[this.types.color](this,r));var o=this.element.find(".n2-ss-slide-background-video");o.length&&(this.elements.video=new N2Classes[this.types.video](this.slide,this,o));var a=this.slide.slider.parameters.backgroundParallax;a.strength>0&&!(n2const.isPhone&&!a.mobile||n2const.isTablet&&!a.tablet)&&this.slide.slider.sliderElement.one("BeforeVisible",t.proxy(function(){this.startFixed(a)},this));var l=[];for(var h in this.elements)this.elements[h]&&l.push(this.elements[h].getLoadedDeferred());t.when.apply(t,l).then(t.proxy(function(){this.loadDeferred.resolve()},this))}return i.prototype.preLoad=function(){return this.loadStarted||(this.slide.$element.find("[data-lazysrc]").each(function(){var e=t(this);e.attr("src",e.data("lazysrc"))}),this.loadStarted=!0),"pending"===this.loadDeferred.state()&&this.elements.image&&this.elements.image.preLoad(),this.loadDeferred},i.prototype.fadeOut=function(){this.elements.image&&this.elements.image.fadeOut()},i.prototype.hack=function(){NextendTween.set(this.element,{rotation:1e-4})},i.prototype.hasColor=function(){return this.elements.color},i.prototype.hasImage=function(){return this.elements.image},i.prototype.hasVideo=function(){return this.elements.video},i.prototype.hasBackground=function(){return this.elements.color||this.elements.image||this.elements.video},i.prototype.updateBackgroundToDevice=function(t){this.hasImage()&&this.elements.image.updateBackgroundToDevice(t)},i.prototype.startFixed=function(e){n2const.isEdge||n2const.isIE||this.hasBackground()&&this.slide.slider.startedDeferred.done(t.proxy(function(){N2Classes.FixedBackground.addElement(this.$wrapElement,e)},this))},i}),N2D("FrontendComponent",function(t,e){function i(t,e,i,s){this.wraps={},this.isVisible=!0,this.device="",this.children=[],this.slide=t,this.parent=e,this.$layer=i.data("layer",this);var n=this.$layer.find("> .n2-ss-layer-mask");n.length&&(this.wraps.mask=n);var r=this.$layer.find("> .n2-ss-layer-parallax");switch(r.length&&(this.wraps.parallax=r),i.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)}if(this.animations=i.data("animations"),this.parallax=i.data("parallax"),this.baseSize=this.baseSize||100,this.isAdaptiveFont=this.get("adaptivefont"),this.refreshBaseSize(this.getDevice("fontsize")),s)for(var o=0;o<s.length;o++)switch(s.eq(o).data("sstype")){case"content":this.children.push(new N2Classes.FrontendComponentContent(this.slide,this,s.eq(o)));break;case"row":this.children.push(new N2Classes.FrontendComponentRow(this.slide,this,s.eq(o)));break;case"col":this.children.push(new N2Classes.FrontendComponentCol(this.slide,this,s.eq(o)));break;case"group":this.children.push(new N2Classes.FrontendComponentGroup(this.slide,this,s.eq(o)));break;default:this.children.push(new N2Classes.FrontendComponentLayer(this.slide,this,s.eq(o)))}}return i.prototype.refreshBaseSize=function(t){this.isAdaptiveFont?this.baseSize=16*t/100:this.baseSize=this.parent.baseSize*t/100},i.prototype.start=function(){this.placement.start();for(var t=0;t<this.children.length;t++)this.children[t].start();var e=this.get("rotation")||0;if(e/360!=0){var i=this.addWrap("rotation","<div class='n2-ss-layer-rotation'></div>");NextendTween.set(i[0],{rotationZ:e})}},i.prototype.onDeviceChange=function(t){this.device=t;var i=this.isVisible;if(this.isVisible=this.getDevice(""),this.isVisible===e&&(this.isVisible=1),i&&!this.isVisible?(this.$layer.data("shows",0),this.$layer.css("display","none")):!i&&this.isVisible&&(this.$layer.data("shows",1),this.$layer.css("display","")),this.isVisible){var s=this.getDevice("fontsize");this.refreshBaseSize(s),this.isAdaptiveFont?this.$layer.css("font-size",16*s/100+"px"):this.$layer.css("font-size",s+"%");for(var n=0;n<this.children.length;n++)this.children[n].onDeviceChange(t);this.placement.onDeviceChange(t),this.onAfterDeviceChange(t)}},i.prototype.onAfterDeviceChange=function(t){},i.prototype.onResize=function(t,e,i){if(this.isVisible||this.placement.alwaysResize){for(var s=0;s<this.children.length;s++)this.children[s].onResize(t,e,i);this.placement.onResize(t,e,i)}},i.prototype.getDevice=function(t,i){var s=this.$layer.data(this.device+t);return s!=e?s:"desktopportrait"!=this.device?this.$layer.data("desktopportrait"+t):i!==e?i:0},i.prototype.get=function(t){return this.$layer.data(t)},i.prototype.createLayerAnimations=function(t,e){var i=[];if(this.isVisible&&!n2const.isBot){new N2Classes.FrontendLayerAnimations(this.$layer);var s=new N2Classes.FrontendLayerAnimationManager(this.$layer,this.slide.getPerspective());s.setEventBased(this.slide,t,e),s.hasAnimation()&&i.push(s);for(var n=0;n<this.children.length;n++)i.push.apply(i,this.children[n].createLayerAnimations(t,e))}return i},i.prototype.getParallaxNodes=function(){var t=[];if(this.isVisible){this.parallax&&t.push(this.$layer[0]);for(var e=0;e<this.children.length;e++)t.push.apply(t,this.children[e].getParallaxNodes())}return t},i.prototype.addWrap=function(i,s){if(this.wraps[i]===e){var n=t(s);switch(i){case"rotation":this.wraps.mask!==e?n.appendTo(this.wraps.mask):this.wraps.parallax!==e?n.appendTo(this.wraps.parallax):n.appendTo(this.$layer),n.append(this.getContents())}this.wraps[i]=n}return n},i.prototype.getContents=function(){return!1},i}),N2D("FixedBackground",function(t,e){var i={_windowHeight:0,$window:null,isStarted:!1,elements:[],start:function(){return this.isStarted?!1:(this.$window=t(window),this.resize(),this.$window.on({"load.n2-ss-bg-parallax":t.proxy(this.resize,this),"resize.n2-ss-bg-parallax":t.proxy(this.resize,this)}),this.onScroll=t.proxy(this.render,this),document.addEventListener("scroll",this.onScroll,{passive:!0}),this.$extraScrollables=t(".n2-scrollable"),this.$extraScrollables.length&&this.$extraScrollables.on("scroll.FixedBackground",t.proxy(this.onScroll,this)),this.isStarted=!0,!0)},end:function(){this.isStarted&&(this.$window.off(".n2-ss-bg-parallax"),document.removeEventListener("scroll",this.onScroll,{passive:!0}),this.$extraScrollables.length&&this.$extraScrollables.off(".FixedBackground"),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",transformStyle:"preserve-3d","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=t(window).height(),this.render()},render:function(){for(var t=0;t<this.elements.length;t++)this.renderElement(this.elements[t])},renderElement:function(t){var e=t.$parent[0].getBoundingClientRect(),i=0;if(e.top<0||e.height>this.windowHeight?i=e.top/e.height:e.bottom>this.windowHeight&&(i=(e.bottom-this.windowHeight)/e.height),1>=i&&i>=-1){var s=i*(-t.data.strength*e.height)||0;if(t.y!==s){var n=0;NextendTween.to(t.$animated,n,{y:s+"px"}),t.y=s}}}};return i}),N2D("LayerParallax",function(t,e){function i(e,i){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=t.extend({mode:"scroll",origin:"slider",is3D:!1,animate:!0,scrollmove:"both"},i),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&(this.parameters.is3D=!1,e.sliderElement.find(".n2-ss-layers-container").css({"-webkit-perspective":"none",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=t(window),this.slider=e,this.sliderElement=e.sliderElement}var s=function(t){var e=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return function(t,i){return e.call(t,i)}}(Element.prototype);return i.prototype.resize=function(){var t=this.sliderElement.offset(),e=this.slider.responsive.responsiveDimensions;this.w2=e.width/2,this.h2=e.height/2,this.sliderOrigin={x:t.left+this.w2,y:t.top+this.h2},"slider"==this.parameters.origin&&(this.mouseOrigin=this.sliderOrigin)},i.prototype.enable=function(){this.active=!0,this.resize(),this.sliderElement.on({"SliderResize.n2-ss-parallax":t.proxy(this.resize,this)});var e=-1,i=-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,e=1}switch(this.parameters.vertical){case"mouse":this.mouseY=!0;break;case"mouse-invert":this.mouseY=!0,i=1;break;case"scroll":this.scrollY=!0,i=1;break;case"scroll-invert":this.scrollY=!0,i=-1}if((this.mouseX||this.mouseY)&&(this.sliderElement.on({"mouseenter.n2-ss-parallax":t.proxy(this.mouseEnter,this),"mousemove.n2-ss-parallax":t.proxy(this.mouseMove,this,e,i),"mouseleave.n2-ss-parallax":t.proxy(this.mouseLeave,this,!1)}),s(this.sliderElement[0],":hover")&&this.mouseEnter(!1)),this.scrollY){var n=-1,r=1;switch(this.parameters.scrollmove){case"bottom":i>0?r=0:n=0;break;case"top":i>0?n=0:r=0}this._scrollCallback=t.proxy(this.scroll,this,i,n,r),this.window.on({"scroll.n2-ss-parallax":this._scrollCallback,"resize.n2-ss-parallax":this._scrollCallback})}},i.prototype.disable=function(){this.sliderElement.off(".n2-ss-parallax"),this.window.off("scroll.n2-ss-parallax",this._scrollCallback),this.window.off("resize.n2-ss-parallax",this._scrollCallback),this.active=!1},i.prototype.start=function(e){if(null!==this.parallaxedSlideNodes&&this.end(),this.firstStart&&(this.slider.staticSlide&&(this.parallaxedStaticSlideNodes=this.slider.staticSlide.getParallaxNodes()),this.firstStart=!1),this.parallaxedSlideNodes=e.getParallaxNodes(),this.parallaxedNodes=t.merge(t.merge([],this.parallaxedSlideNodes),this.parallaxedStaticSlideNodes),this.parallaxedNodes.length){if(this.parameters.is3D){var i=this.slider.getPerspective();t.each(this.parallaxedNodes,t.proxy(function(t,e){i>0&&(n2const.isEdge?NextendTween.set(e.parentElement,{transformPerspective:i}):NextendTween.set(e.parentElement,{perspective:i}))},this))}this.active||this.enable(),this._scrollCallback&&this._scrollCallback()}else this.parallaxedNodes=null,this.parallaxedSlideNodes=null,this.active&&this.disable()},i.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},i.prototype.mouseEnter=function(t){this.ticking||(NextendTween.ticker.addEventListener("tick",this.tick,this),this.ticking=!0,t&&"enter"==this.parameters.origin&&(this.mouseOrigin={x:t.pageX,y:t.pageY}))},i.prototype.mouseMove=function(t,e,i){this.mouseOrigin===!1&&(this.mouseOrigin=this.sliderOrigin),this.mouseX&&(this.x=t*(i.pageX-this.mouseOrigin.x),this.parameters.is3D&&(this.rotationY=-this.x/this.w2)),this.mouseY&&(this.y=e*(i.pageY-this.mouseOrigin.y),this.parameters.is3D&&(this.rotationX=this.y/this.h2))},i.prototype.mouseLeave=function(t,e){this.ticking&&(NextendTween.ticker.removeEventListener("tick",this.tick,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),this.mouseOrigin=this.sliderOrigin},i.prototype.scroll=function(t,e,i){var s=this.window.height(),n=this.window.scrollTop();n<this.sliderOrigin.y+this.h2&&n+s>this.sliderOrigin.y-this.h2&&(this.y=Math.max(e,Math.min(i,-1+2*(this.sliderOrigin.y-(n-this.h2))/(s+2*this.h2))),this.sliderOrigin.y<s&&(this.y=Math.min(0,this.y)),this.y*=-t*this.h2*4,this.parameters.is3D&&(this.rotationX=this.y/this.h2),this.draw(!1,!0))},i.prototype.draw=function(e,i){if(this.parallaxedNodes)for(var s=0;s<this.parallaxedNodes.length;s++){var n=t(this.parallaxedNodes[s]).data("parallax"),r=this.levels[n],o={};if(this.parameters.is3D){var a=this.levelsDeg[n];o.rotationX=this.rotationX*a,o.rotationY=this.rotationY*a}o.x=this.x*r,o.y=this.y*r,this.render(this.parallaxedNodes[s],o)}},i.prototype.render=function(t,e){NextendTween.set(t,e)},i.prototype.animateRender=function(t,e){NextendTween.to(t,.6,e)},i.prototype.tick=function(){this.draw(this.mouseX,this.mouseY)},i}),N2D("FrontendPlacement",function(t,e){function i(t){this.layer=t,this.alwaysResize=!1}return i.prototype.start=function(){},i.prototype.onDeviceChange=function(t){},i.prototype.onResize=function(t,e,i){},i}),N2D("FrontendSliderSlide",["FrontendComponentSlideAbstract"],function(t,e){function i(e,i,s){this.isStaticSlide=!1,this.originalIndex=s,this.index=s,this.localIndex=s,this.$element=i.data("slide",this),this.id=this.$element.data("id"),this.background=!1,this.slides=[this],e.parameters.admin?this.minimumSlideDuration=0:(this.minimumSlideDuration=i.data("slide-duration"),t.isNumeric(this.minimumSlideDuration)||(this.minimumSlideDuration=0));var n=i.find(".n2-ss-layers-container");N2Classes.FrontendComponentSlideAbstract.prototype.constructor.call(this,e,n)}return i.prototype=Object.create(N2Classes.FrontendComponentSlideAbstract.prototype),i.prototype.constructor=i,i.prototype.init=function(){N2Classes.FrontendComponentSlideAbstract.prototype.init.call(this);var t=this.slider.findSlideBackground(this);t.length>0&&(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)},i.prototype.setStarterSlide=function(){N2Classes.FrontendComponentSlideAbstract.prototype.setStarterSlide.call(this)},i.prototype.setIndex=function(t){this.localIndex=this.index=t},i.prototype.preLoad=function(){return this.background?this.background.preLoad():!0},i.prototype.setPrevious=function(t){this.previousSlide=t},i.prototype.setNext=function(t){this.nextSlide=t,t.setPrevious(this)},i.prototype.hasBackgroundVideo=function(){return this.background.hasVideo()},i.prototype.getTitle=function(){return this.$element.data("title")},i.prototype.getDescription=function(){return this.$element.data("description")},i.prototype.getThumbnail=function(){return this.$element.data("thumbnail")},i.prototype.getThumbnailType=function(){return this.$element.data("thumbnail-type")},i.prototype.hasLink=function(){return!!this.$element.data("haslink")},i}),N2D("FrontendComponentSlideAbstract",["FrontendComponent"],function(t,e){function i(e,i){this.baseSize=16,this.slider=e,this.isCurrentlyEdited()||(this.status=s.NOT_INITIALIZED,N2Classes.FrontendComponent.prototype.constructor.call(this,this,this,i,i.find("> .n2-ss-layer, > .n2-ss-layer-group")),this.slider.sliderElement.on({SliderDeviceOrientation:t.proxy(function(t,e){this.onDeviceChange(e.device+e.orientation.toLowerCase())},this),SliderResize:t.proxy(function(t,e,i){this.onResize(e,i.responsiveDimensions)},this)}),N2Classes.FrontendComponent.prototype.start.call(this))}var s={NOT_INITIALIZED:-1,INITIALIZED:0,READY_TO_START:1,PLAYING:2,ENDED:3};return i.prototype=Object.create(N2Classes.FrontendComponent.prototype),i.prototype.constructor=i,i.prototype.is=function(t){return this===t},i.prototype.isCurrentlyEdited=function(){return this.slider.parameters.admin&&this.$element.hasClass("n2-ss-currently-edited-slide")},i.prototype.trigger=function(){this.$element.trigger.apply(this.$element,[].slice.call(arguments))},i.prototype.triggerHandler=function(){return this.$element.triggerHandler.apply(this.$element,[].slice.call(arguments))},i.prototype.init=function(){if(!this.isCurrentlyEdited()){this.slider.sliderElement.on("BeforeVisible",t.proxy(this.initLayerAnimations,this));var e=this.$element.find('[data-device="1"]');this.slider.sliderElement.on("SliderDeviceOrientation",t.proxy(function(t,i){for(var s=0;s<e.length;s++){var n=e.eq(s);n.attr("src",n.data(i.device))}},this))}},i.prototype.refreshBaseSize=function(t){},i.prototype.onResize=function(t,e){for(var i=0;i<this.children.length;i++)this.children[i].onResize(t,e,this.isStaticSlide)},i.prototype.hasLayers=function(){return this.children.length>0},i.prototype.onDeviceChange=function(t){this.device=t;for(var e=0;e<this.children.length;e++)this.children[e].onDeviceChange(t);this.placement.onDeviceChange(t)},i.prototype.setStarterSlide=function(){this.setStarterSlideAnimation()},i.prototype.initLayerAnimations=function(){this.status=s.INITIALIZED,this.playOnce=!this.slider.isAdmin&&this.slider.parameters.layerMode.playOnce,this.refreshTimelines(),this.slider.sliderElement.on("SliderResize",t.proxy(this.resize,this)),this.isStaticSlide?this.slider.visible(t.proxy(function(){this.setStart(),this.playIn()},this)):this.$element.on("mainAnimationStartIn",t.proxy(this.setStart,this)).on("mainAnimationStartInCancel",t.proxy(this.reset,this))},i.prototype.setStarterSlideAnimation=function(){this.slider.isAdmin||(this.slider.parameters.layerMode.playFirstLayer?this.slider.visible(t.proxy(function(){this.setStart(),this.playIn()},this)):this.slider.sliderElement.one("BeforeVisible",t.proxy(function(){this.setZeroAll()},this)))},i.prototype.resize=function(t,e,i,n){n===!1&&(this.animationsRefreshRatios(e),this.status=s.INITIALIZED,this.isStaticSlide?(this.setStart(),this.playIn()):this.slider.parameters.layerMode.playFirstLayer&&this.slider.currentSlide.is(this)?(this.setStart(),this.playIn()):this.setZeroAll())},i.prototype.animationsRefreshRatios=function(t){for(var e=0;e<this.layerAnimations.length;e++)this.layerAnimations[e].refreshRatio(t.slideW,t.slideH)},i.prototype.refreshTimelines=function(){this.slider.isAdmin||this.slider.disableLayerAnimations===!1?this.layerAnimations=this.createLayerAnimations(this.slider.responsive.lastRatios.slideW,this.slider.responsive.lastRatios.slideH):this.layerAnimations=[]},i.prototype.setZero=function(){this.$element.trigger("layerSetZero",this)},i.prototype.setZeroAll=function(){this.status=s.INITIALIZED,this.$element.trigger("layerSetZeroAll",this)},i.prototype.setStart=function(){this.status==s.INITIALIZED&&(this.$element.trigger("layerAnimationSetStart"),this.status=s.READY_TO_START)},i.prototype.playIn=function(){this.status==s.READY_TO_START&&(this.status=s.PLAYING,this.$element.trigger("layerAnimationPlayIn"))},i.prototype.playOut=function(){if(this.status==s.PLAYING){var e=[];this.$element.triggerHandler("beforeMainSwitch",[e]),t.when.apply(t,e).done(t.proxy(function(){this.onOutAnimationsPlayed()},this))}else this.onOutAnimationsPlayed()},i.prototype.onOutAnimationsPlayed=function(){this.playOnce?this.status=s.ENDED:this.status=s.INITIALIZED,this.$element.trigger("layerAnimationCompleteOut")},i.prototype.pause=function(){this.$element.triggerHandler("layerPause")},i.prototype.reset=function(){this.$element.triggerHandler("layerReset"),this.status=s.INITIALIZED},i.prototype.getTimeline=function(){for(var t=new NextendTimeline({paused:1}),e=0;e<this.layerAnimations.length;e++){var i=this.layerAnimations[e];t.add(i.linearTimeline,0),i.linearTimeline.paused(!1)}return t},i.prototype.getPerspective=function(){return this.slider.getPerspective()},i}),N2D("FrontendSliderStaticSlide",["FrontendComponentSlideAbstract"],function(t,e){function i(t,e){this.isStaticSlide=!0,this.$element=e.data("slide",this),N2Classes.FrontendComponentSlideAbstract.prototype.constructor.call(this,t,e),this.init()}return i.prototype=Object.create(N2Classes.FrontendComponentSlideAbstract.prototype),i.prototype.constructor=i,i}),N2D("SmartSliderSlideBackgroundColor",function(t,e){function i(t,e){this.$el=e}return i.prototype.getLoadedDeferred=function(){return!0},i}),N2D("SmartSliderSlideBackgroundImage",function(t,e){function i(e,i,s,n){if(this.loadStarted=!1,this.loadAllowed=!1,this.slide=e,this.manager=i,this.background=s,this.deferred=t.Deferred(),this.$el=n,this.opacity=n.data("opacity"),this.blur=n.data("blur"),this.x=n.data("x"),this.y=n.data("y"),n.css("display","none"),this.$background=t('<div class="n2-ss-slide-background-image"/>').css({backgroundPosition:this.x+"% "+this.y+"%",opacity:this.opacity/100}).insertAfter(n),"blurfit"===s.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)")):(s.element.attr("data-mode","fill"),s.mode="fill")),window.n2FilterProperty&&(this.blur>0?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=n.attr("src");else if(this.desktopSrc=n.data("desktop")||"",this.tabletSrc=n.data("tablet")||"",this.mobileSrc=n.data("mobile")||"",n2const.isRetina){var r=n.data("desktop-retina");r&&(this.desktopSrc=r),r=n.data("tablet-retina"),r&&(this.tabletSrc=r),r=n.data("mobile-retina"),r&&(this.mobileSrc=r)}}return i.prototype.getLoadedDeferred=function(){return this.deferred},i.prototype.preLoad=function(){this.loadAllowed=!0,this.manager.deviceDeferred.done(t.proxy(function(){this.updateBackgroundToDevice(this.manager.device),this.$background.n2imagesLoaded({background:!0},t.proxy(function(t){var e=t.images[0].img;switch(this.width=e.naturalWidth,this.height=e.naturalHeight,this.background.mode){case"tile":case"center":n2const.devicePixelRatio>1&&this.$background.css("background-size",this.width/n2const.devicePixelRatio+"px "+this.height/n2const.devicePixelRatio+"px")}this.deferred.resolve()},this))},this))},i.prototype.updateBackgroundToDevice=function(t){var e=this.desktopSrc;"mobile"===t.device?this.mobileSrc?e=this.mobileSrc:this.tabletSrc&&(e=this.tabletSrc):"tablet"===t.device&&this.tabletSrc&&(e=this.tabletSrc),e?this.setSrc(e):this.setSrc("")},i.prototype.setSrc=function(t){this.loadAllowed&&t!==this.currentSrc&&(""===t?this.$background.css("background-image",""):this.$background.css("background-image",'url("'+t+'")'),this.currentSrc=t)},i.prototype.fadeOut=function(){NextendTween.to(this.$background,.3,{opacity:0})},i}),N2D("SmartSliderSlideBackgroundVideo",function(t,e){function i(e,i,n){!e.slider.parameters["background.video.mobile"]&&n2const.isPhone?n.remove():n2const.isVideoAutoplayAllowed()?(this.counter=s++,this.slide=e,this.slider=e.slider,this.background=i,this.isResized=!1,this.$video=n,this.isReady=!1,this.state={ready:!1,scroll:!1,slide:!1,ended:!1},this.promise=!1,i.elements.image?this.slider.visible(t.proxy(this.load,this)):this.load()):n.remove()}var s=1;return i.prototype.load=function(){if(this.$video[0].videoWidth>0)this.onReady();else{this.$video[0].addEventListener("error",t.proxy(this.onError,this),!0),this.$video[0].addEventListener("canplay",t.proxy(this.onReady,this)),this.$video[0].addEventListener("loadedmetadata",t.proxy(this.onReady,this),!1),this.$video[0].loop||this.$video[0].addEventListener("ended",t.proxy(this.onEnded,this),!1);var i=t.proxy(function(){setTimeout(t.proxy(function(){0===this.$video[0].networkState&&this.onError()},this),100)},this);this.$video[0].n2LoadStarted===e?this.$video[0].addEventListener("loadstart",i,!0):i(),this.$video[0].load(),this.safePlay()}},i.prototype.getLoadedDeferred=function(){return!0},i.prototype.onReady=function(e){if(!this.isReady){this.isReady=!0;var i=this.$video;this.safePause(),i.data("ratio")||(i[0].videoWidth>0?i.data("ratio",i[0].videoWidth/i[0].videoHeight):i.data("ratio",i[0].offsetWidth/i[0].offsetHeight),i.addClass("n2-active"),this.slider.sliderElement.one("BeforeVisible",t.proxy(this.onResize,this)),this.slider.ready(t.proxy(function(){this.slider.sliderElement.on("SliderResize",t.proxy(this.onResize,this)),this.isResized||this.onResize(),this.setState("ready",!0,!0)},this))),-1!==t.inArray(this.slide,this.slider.getVisibleSlides(this.slider.starterSlide))&&this.setState("slide",!0,!0),this.slider.sliderElement.on({mainAnimationStart:t.proxy(function(e,i,s,n){-1===t.inArray(this.slide,this.slider.getVisibleSlides(this.slider.slides[n]))?this.setState("slide",!1,!0):this.setState("slide",!0,!0)},this),mainAnimationComplete:t.proxy(function(e,i,s,n){-1===t.inArray(this.slide,this.slider.getVisibleSlides(this.slider.slides[n]))?this.setState("slide",!1,!0):this.setState("slide",!0,!0)},this)}),N2Classes.ScrollTracker.add(this.slide.$element,"not-visible",t.proxy(function(){this.setState("scroll",!0,!0)},this),t.proxy(function(){this.setState("scroll",!1,!0)},this))}e&&"canplay"!==e.type||this.background.fadeOut()},i.prototype.onError=function(){this.$video.remove()},i.prototype.onResize=function(){if(!this.isResized){var e=this.$video.data("background");e&&""!==e&&t('<div class="n2-ss-slide-bg-video-color-overlay" style="position:absolute;left:0;top:0;width:100%;height:100%;z-index:3;'+e+';"/>').insertAfter(this.$video),this.isResized=!0}this.resizeVideo()},i.prototype.resizeVideo=function(){var t=this.$video,e=t.data("mode"),i=t.data("ratio"),s=this.slider.dimensions.slideouter||this.slider.dimensions.slide,n=s.width/s.height;"fill"===e?n>i?t.css({width:"100%",height:"auto"}):t.css({width:"auto",height:"100%"}):"fit"===e?i>n?t.css({width:"100%",height:"auto"}):t.css({width:"auto",height:"100%"}):t.css({width:"",height:""}),t.css("marginTop",0).css(n2const.rtl.marginLeft,0),this.center()},i.prototype.center=function(){var t=this.$video,e=t.parent();t.css({marginTop:Math.round((e.height()-t.height())/2)}),t.css(n2const.rtl.marginLeft,Math.round((e.width()-t.width())/2))},i.prototype.safeCallback=function(t){this.promise&&Promise!==e?this.promise.then(t)["catch"](t):t()},i.prototype.safePlay=function(){this.safeCallback(t.proxy(function(){this.promise=this.$video[0].play(),this.promise&&Promise!==e&&this.promise["catch"](t.proxy(function(e){if(e.message.match("interact")){var i=".ssBackgroundVideo"+this.counter;t("body").off(i).one("click"+i+" touchend"+i,t.proxy(function(){t("body").off(i),this.promise!==!1&&this.safePlay()},this))}},this))},this))},i.prototype.safePause=function(){this.safeCallback(t.proxy(function(){this.$video[0].pause(),this.promise=!1},this))},i.prototype.onEnded=function(){this.setState("ended",!0,!0)},i.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())},i}),N2D("FrontendPlacementAbsolute",["FrontendPlacement"],function(t,e){function i(t){return t.position()}function i(t){return{left:t.prop("offsetLeft"),top:t.prop("offsetTop")}}function s(t){this.linked=[],this.parentLayer=!1,this.$parent=!1,N2Classes.FrontendPlacement.prototype.constructor.apply(this,arguments)}return/(MSIE\ [0-7]\.\d+)/.test(navigator.userAgent),s.prototype=Object.create(N2Classes.FrontendPlacement.prototype),s.prototype.constructor=s,s.prototype.start=function(){var e=this.layer.get("parentid");e&&(this.$parent=t("#"+e),0==this.$parent.length?this.$parent=!1:(this.parentLayer=this.$parent.data("layer"),this.parentLayer.placement.addLinked(this),this.onResize=function(){}))},s.prototype.addLinked=function(t){this.linked.push(t),this.alwaysResize=!0},s.prototype.onResize=s.prototype.onResizeLinked=function(t,e,s){var n=this.layer.$layer,r=t.slideW,o=r,a=t.slideH,l=a;parseInt(this.layer.get("responsivesize"))||(o=l=1),n.css("width",this.getWidth(o)),n.css("height",this.getHeight(l)),parseInt(this.layer.get("responsiveposition"))||(r=a=1);var h=this.layer.getDevice("left")*r,d=this.layer.getDevice("top")*a,p=this.layer.getDevice("align"),c=this.layer.getDevice("valign"),u={left:"auto",top:"auto",right:"auto",bottom:"auto"};if(this.$parent&&this.$parent.data("layer").isVisible){var m=i(this.$parent),f={left:0,top:0};switch(this.layer.getDevice("parentalign")){case"right":f.left=m.left+this.$parent.width();break;case"center":f.left=m.left+this.$parent.width()/2;break;default:f.left=m.left}switch(p){case"right":u.right=n.parent().width()-f.left-h+"px";break;case"center":u.left=f.left+h-n.width()/2+"px";break;default:u.left=f.left+h+"px"}switch(this.layer.getDevice("parentvalign")){case"bottom":f.top=m.top+this.$parent.height();break;case"middle":f.top=m.top+this.$parent.height()/2;break;default:f.top=m.top}switch(c){case"bottom":u.bottom=n.parent().height()-f.top-d+"px";break;case"middle":u.top=f.top+d-n.height()/2+"px";break;default:u.top=f.top+d+"px"}}else{switch(p){case"right":u.right=-h+"px";break;case"center":u.left=(s?n.parent().width():e.slide.width)/2+h-n.width()/2+"px";break;default:u.left=h+"px"}switch(c){case"bottom":u.bottom=-d+"px";break;case"middle":u.top=(s?n.parent().height():e.slide.height)/2+d-n.height()/2+"px";break;default:u.top=d+"px"}}n.css(u);for(var y=0;y<this.linked.length;y++)this.linked[y].onResizeLinked(t,e,s)},s.prototype.getWidth=function(t){var e=this.layer.getDevice("width");return this.isDimensionPropertyAccepted(e)?e:e*t+"px"},s.prototype.getHeight=function(t){var e=this.layer.getDevice("height");return this.isDimensionPropertyAccepted(e)?e:e*t+"px"},s.prototype.isDimensionPropertyAccepted=function(t){return!(!(t+"").match(/[0-9]+%/)&&"auto"!=t)},s}),N2D("FrontendPlacementContent",["FrontendPlacement"],function(t,e){function i(t){N2Classes.FrontendPlacement.prototype.constructor.apply(this,arguments)}return i.prototype=Object.create(N2Classes.FrontendPlacement.prototype),i.prototype.constructor=i,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),i.prototype.constructor=i,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),i.prototype.constructor=i,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&&i>0){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=this.layer.getDevice("height"),e="px";if(t>0){var i=this.layer.baseSize;i>0&&(e="em",t=parseInt(t)/i),this.layer.$layer.css("height",t+e)}else this.layer.$layer.css("height","")},i.prototype.updateMaxWidth=function(){var t=parseInt(this.layer.getDevice("maxwidth"));0>=t||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",["FrontendComponent"],function(t,e){function i(t,e,i){this.$content=i.find(".n2-ss-layer-col:first"),N2Classes.FrontendComponent.prototype.constructor.call(this,t,e,i,this.$content.find("> .n2-ss-layer"))}return i.prototype=Object.create(N2Classes.FrontendComponent.prototype),i.prototype.constructor=i,i.prototype.onDeviceChange=function(t){N2Classes.FrontendComponent.prototype.onDeviceChange.apply(this,arguments),this.updateOrder(),this.updatePadding(),this.updateInnerAlign(),this.updateMaxWidth()},i.prototype.updatePadding=function(){var t=this.getDevice("padding").split("|*|"),e=t.pop(),i=this.baseSize;if("px+"===e&&i>0){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.updateInnerAlign=function(){this.$layer.attr("data-csstextalign",this.getDevice("inneralign"))},i.prototype.updateMaxWidth=function(){var t=parseInt(this.getDevice("maxwidth"));0>=t||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",["FrontendComponent"],function(t,e){function i(t,e,i){this.$content=i.find("> .n2-ss-section-main-content"),N2Classes.FrontendComponent.prototype.constructor.call(this,t,e,i,this.$content.find("> .n2-ss-layer"))}return i.prototype=Object.create(N2Classes.FrontendComponent.prototype),i.prototype.constructor=i,i.prototype.onDeviceChange=function(t){N2Classes.FrontendComponent.prototype.onDeviceChange.apply(this,arguments),this.updatePadding(),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&&i>0){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.updateInnerAlign=function(){this.$layer.attr("data-csstextalign",this.getDevice("inneralign"))},i.prototype.updateMaxWidth=function(){var t=parseInt(this.getDevice("maxwidth"));0>=t||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("FrontendComponentGroup",["FrontendComponent"],function(t,e){function i(t,e,i){N2Classes.FrontendComponent.prototype.constructor.call(this,t,e,i,i.find("> .n2-ss-layer"))}return i.prototype=Object.create(N2Classes.FrontendComponent.prototype),i.prototype.constructor=i,i}),N2D("FrontendComponentLayer",["FrontendComponent"],function(t,e){function i(t,i,s){N2Classes.FrontendComponent.prototype.constructor.call(this,t,i,s),this.wraps.mask!==e?this.$item=this.wraps.mask.children():this.wraps.parallax!==e?this.$item=this.wraps.parallax.children():this.$item=s.children()}return i.prototype=Object.create(N2Classes.FrontendComponent.prototype),i.prototype.constructor=i,i.prototype.getContents=function(){return this.$item},i}),N2D("FrontendComponentRow",["FrontendComponent"],function(t,e){function i(t,e,i){this.$row=i.find(".n2-ss-layer-row:first"),this.$rowInner=this.$row.find(".n2-ss-layer-row-inner:first"),N2Classes.FrontendComponent.prototype.constructor.call(this,t,e,i,this.$rowInner.find("> .n2-ss-layer"))}return i.prototype=Object.create(N2Classes.FrontendComponent.prototype),i.prototype.constructor=i,i.prototype.onDeviceChange=function(t){N2Classes.FrontendComponent.prototype.onDeviceChange.apply(this,arguments),this.updatePadding(),this.updateGutter(),this.updateInnerAlign()},i.prototype.onAfterDeviceChange=function(t){this.updateWrapAfter()},i.prototype.updatePadding=function(){var t=this.getDevice("padding").split("|*|"),e=t.pop(),i=this.baseSize;if("px+"===e&&i>0){e="em";for(var s=0;s<t.length;s++)t[s]=parseInt(t[s])/i}this.$row.css("padding",t.join(e+" ")+e)},i.prototype.updateInnerAlign=function(){this.$layer.attr("data-csstextalign",this.getDevice("inneralign"))},i.prototype.updateGutter=function(){var t=this.getDevice("gutter"),e=t/2;if(this.children.length>0)for(var i=this.children.length-1;i>=0;i--)this.children[i].$layer.css("margin",e+"px");this.$rowInner.css({width:"calc(100% + "+(t+1)+"px)",margin:-e+"px"})},i.prototype.getSortedColumns=function(){for(var e=t.extend([],this.children).sort(function(t,e){return t.getRealOrder()-e.getRealOrder()}),i=e.length-1;i>=0;i--)e[i].isVisible||e.splice(i,1);return e},i.prototype.updateWrapAfter=function(){var t=parseInt(this.getDevice("wrapafter")),e=this.getSortedColumns(),i=e.length,s=!1;if(0===i)return!1;t>0&&i>t&&(s=!0),this.$row.attr("row-wrapped",s?1:0);var n;if(s){var r=[];for(n=0;i>n;n++){var o=Math.floor(n/t);"undefined"==typeof r[o]&&(r[o]=[]),r[o].push(e[n]),e[n].$layer.attr("data-r",o).toggleClass("n2-ss-last-in-row",(n+1)%t===0||n===i-1)}var a=this.getDevice("gutter");for(n=0;n<r.length;n++){var l,h=r[n],d=0;for(l=0;l<h.length;l++)d+=h[l].getWidthPercentage();for(l=0;l<h.length;l++)h[l].$layer.css("width","calc("+h[l].getWidthPercentage()/d*100+"% - "+(n2const.isIE?a+1:a)+"px)")}}else{var d=0;for(n=0;i>n;n++)d+=e[n].getWidthPercentage();for(n=0;i>n;n++)e[n].$layer.css("width",e[n].getWidthPercentage()/d*100+"%").removeClass("n2-ss-last-in-row").attr("data-r",0);e[i-1].$layer.addClass("n2-ss-last-in-row")}},i.prototype.getContents=function(){return this.$row},i}),N2D("FrontendLayerAnimationManager",function(t,e){function i(t,e){this.status=s.NOT_INITIALIZED,this.inStatus=!1,this.loopStatus=!1,this.outStatus=!1,this.namespace="n2-ss-animations-"+i.index++,this.skipLoop=0,this.$layer=t,this.options={repeatable:0,transformOriginIn:"50% 50% 0",transformOriginOut:"50% 50% 0",inPlayEvent:"",loopPlayEvent:"",loopPauseEvent:"",loopStopEvent:"",outPlayEvent:"",loopRepeatSelfOnly:0,instantOut:1,startDelay:0},this.$animatableElement=t;var n=t.data("animatableselector");n&&(this.$animatableElement=t.find(n)),this.perspective=e,t.data("LayerAnimation",this),this.perspective>0&&(n2const.isEdge?NextendTween.set(this.$layer.parent(),{transformPerspective:this.perspective}):NextendTween.set(this.$layer.parent(),{perspective:this.perspective}))}var s={NOT_INITIALIZED:-1,INITIALIZED:1,INITIALIZED_REPEAT:12,PLAY_IN_DISABLED:2,PLAY_IN_STARTED:3,PLAY_IN_PAUSED:4,PLAY_IN_ENDED:5,PLAY_LOOP_STARTED:6,PLAY_LOOP_PAUSED:7,PLAY_LOOP_ENDED:8,PLAY_OUT_STARTED:9,PLAY_OUT_PAUSED:10,PLAY_OUT_ENDED:11};return i.index=1,i.optimize=function(t){return t.opacity!==e&&(t.n2AutoAlpha=t.opacity,delete t.opacity),t},i.optimizeTweenTo=function(t,e,s){NextendTween.to(t,e,i.optimize(s))},i.optimizeTo=function(t,e,s,n,r){t.to(e,s,i.optimize(n),r)},i.optimizeFromTo=function(t,e,s,n,r,o){t.fromTo(e,s,i.optimize(n),i.optimize(r),o)},i.prototype.hasAnimation=function(){return this.inStatus||this.loopStatus||this.outStatus},i.prototype.collectRelatedAnimations=function(t){t=t||{},this.relatedAnimations={"in":[],loop:[],out:[]},t.timelineMode=this.timelineMode,this.$layer.triggerHandler("collectRelatedAnimations",[this.relatedAnimations,this,t])},i.prototype.setEventBased=function(e,i,n){this.slide=e,this.timelineMode="event",e.$element.on("layerSetZero."+this.namespace,t.proxy(this.setZero,this)).on("layerSetZeroAll."+this.namespace,t.proxy(this.setZeroAll,this)).on("layerAnimationSetStart."+this.namespace,t.proxy(this.start,this)).on("layerPause."+this.namespace,t.proxy(this.pause,this)).on("layerReset."+this.namespace,t.proxy(this.reset,this)).on("beforeMainSwitch."+this.namespace,t.proxy(this.beforeMainSwitch,this)),this.collectRelatedAnimations(),this.eventDrivenMode(i,n),this.status=s.INITIALIZED},i.prototype.setOptions=function(e){this.options=t.extend(this.options,e)},i.prototype.eventDrivenMode=function(e,i){this.subscribeEvent("mainAnimationStartIn",t.proxy(this.resume,this)),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.instantOut&&(this.options.outPlayEvent="LoopComplete"),""===this.options.inPlayEvent&&(this.options.inPlayEvent="layerAnimationPlayIn"),""===this.options.loopPlayEvent&&(this.options.loopPlayEvent="InComplete"),this.incoming=new N2Classes.AnimationsControllerIncoming(this,this.$animatableElement),this.inStatus=this.incoming.eventDriven(e,i),this.subscribeEvent(this.options.inPlayEvent,t.proxy(this.playIn,this)),this.loop=new N2Classes.AnimationsControllerLoop(this,this.$layer),this.loopStatus=this.loop.eventDriven(e,i),this.loopStatus?(this.subscribeEvent(this.options.loopPlayEvent,t.proxy(this.playLoop,this)),""!==this.options.loopPauseEvent&&this.subscribeEvent(this.options.loopPauseEvent+".n2-ss-loop",t.proxy(this.loop.pause,this.loop)),""!==this.options.loopStopEvent&&this.subscribeEvent(this.options.loopStopEvent+".n2-ss-loop",t.proxy(this.loop.requestEnd,this.loop))):this.subscribeEvent("InComplete",t.proxy(this.loopComplete,this)),this.outgoing=new N2Classes.AnimationsControllerOutgoing(this,this.$animatableElement),this.outStatus=this.outgoing.eventDriven(e,i),this.outStatus?this.subscribeEvent(this.options.outPlayEvent,t.proxy(this.playOut,this)):this.subscribeEvent("LoopComplete",t.proxy(this.outComplete,this)),this.inStatus||this.loopStatus||this.outStatus||this.slide.$element.off("."+this.namespace)},i.prototype.refreshRatio=function(t,e){this.reset(),this.setZero(),this.inStatus=this.incoming.refreshRatio(t,e),this.loopStatus=this.loop.refreshRatio(t,e),this.outStatus=this.outgoing.refreshRatio(t,e)},i.prototype.setLinear=function(t,e,i){this.timelineMode="linear",this.collectRelatedAnimations({animations:t.animations.getData()});var n=this.linearMode(e,i);return this.status=s.INITIALIZED,n},i.prototype.linearMode=function(t,e){var i;for(i=0;i<this.relatedAnimations.out.length;i++)this.relatedAnimations.out[i].refresh(t,e);for(i=0;i<this.relatedAnimations.loop.length;i++)this.relatedAnimations.loop[i].refresh();for(i=0;i<this.relatedAnimations["in"].length;i++)this.relatedAnimations["in"][i].refresh(t,e);this.linearTimeline=new NextendTimeline({paused:1}),this.incoming=new N2Classes.AnimationsControllerIncoming(this,this.$animatableElement);var s=this.incoming.linear(t,e);s&&this.linearTimeline.add(s),this.loop=new N2Classes.AnimationsControllerLoop(this,this.$layer);var n=this.loop.linear(t,e);n&&this.linearTimeline.add(n),this.outgoing=new N2Classes.AnimationsControllerOutgoing(this,this.$animatableElement);var r=this.outgoing.linear(t,e);return r&&this.linearTimeline.add(r),!0},i.prototype.setZero=function(){this.$layer.triggerHandler("AnimationSetZero")},i.prototype.setZeroAll=function(){this.incoming.setZero(),this.setZero()},i.prototype.subscribeEvent=function(e,i){for(var s=e.split(","),n=0;n<s.length;n++)if(s[n].length){var r=s[n].split("."),o=s[n];switch(r[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,i);break;case"mainAnimationStartIn":case"layerAnimationPlayIn":case"SlideMouseEnter":case"SlideMouseLeave":case"SlideClick":o.match(/^Slide/)&&(o=o.replace(/^Slide/,"").toLowerCase()),this.slide.$element.on(o,i);break;case"SliderMouseEnter":case"SliderMouseLeave":case"SliderClick":o.match(/^Slider/)&&(o=o.replace(/^Slider/,"").toLowerCase()),this.slide.slider.sliderElement.on(o,t.proxy(function(e){t.inArray(this.slide,this.slide.slider.getVisibleSlides())>=0&&i()},this));break;default:var a=!1,l={"do":0,cancel:0};this.slide.$element.on("ss"+o,function(){l["do"]&&clearTimeout(l["do"]),l["do"]=setTimeout(function(){a||i(),a=!1},50)}),this.slide.$element.on("sscancel-"+o,function(){a=!0,l.cancel&&clearTimeout(l.cancel),l.cancel=setTimeout(function(){a=!1},70)})}}},i.prototype.start=function(){this.outgoing.start(),this.loop.start(),this.incoming.start(),this.status=s.INITIALIZED},i.prototype.playIn=function(){this.status===s.INITIALIZED_REPEAT&&(this.outgoing.prepareRepeat(),this.incoming.prepareRepeat(),this.loopStatus&&this.loop.resetForReplay(),this.status=s.INITIALIZED),this.status===s.INITIALIZED?(this.status=s.PLAY_IN_STARTED,this.incoming.play()):this.status===s.PLAY_IN_STARTED?this.skipLoop&&(this.skipLoop=0,this.$layer.off("InComplete.n2-instant-out")):this.status===s.PLAY_OUT_STARTED?(this.$layer.one("OutComplete.n2-instant-in",t.proxy(function(){this.playIn()},this)),this.outgoing.speedUp()):this.status===s.PLAY_LOOP_STARTED?(this.$layer.one("OutComplete.n2-instant-in",t.proxy(function(){this.playIn()},this)),this.outgoing.speedUp()):this.status===s.PLAY_LOOP_ENDED&&(this.$layer.one("OutComplete.n2-instant-in",t.proxy(function(){this.playIn()},this)),this.outgoing.speedUp())},i.prototype.inComplete=function(){this.status=s.PLAY_IN_ENDED,this.$layer.triggerHandler("InComplete")},i.prototype.playLoop=function(){this.status!==s.PLAY_IN_ENDED||this.skipLoop?this.status===s.PLAY_LOOP_STARTED&&this.loop.play():(this.status=s.PLAY_LOOP_STARTED,this.loop.play())},i.prototype.loopComplete=function(){1!==this.options.loopRepeatSelfOnly||this.skipLoop?(this.status=s.PLAY_LOOP_ENDED,this.$layer.triggerHandler("LoopComplete")):(this.loop.resetForReplay(),this.status=s.PLAY_IN_ENDED)},i.prototype.playOut=function(){this.status===s.PLAY_IN_STARTED?this.skipLoop||(this.skipLoop=1,this.$layer.one("InComplete.n2-instant-out",t.proxy(function(){this.skipLoop=0,this.loopComplete(),this._playOut()},this))):this.status===s.PLAY_IN_ENDED?(this.loopComplete(),this._playOut()):this.status===s.PLAY_LOOP_STARTED?(this.$layer.off("OutComplete.n2-instant-in"),this.$layer.one("LoopComplete",t.proxy(this._playOut,this)),this.loop.requestEnd()):this.status===s.PLAY_LOOP_ENDED?(this.$layer.off("OutComplete.n2-instant-in"),this._playOut()):this.status===s.PLAY_OUT_STARTED?this.$layer.off("OutComplete.n2-instant-in"):this.$layer.off("OutComplete.n2-instant-in")},i.prototype._playOut=function(){this.status===s.PLAY_LOOP_ENDED&&(this.status=s.PLAY_OUT_STARTED,this.outgoing.play())},i.prototype.outComplete=function(){this.options.repeatable&&(this.inStatus||this.loopStatus||this.outStatus)?this.status=s.INITIALIZED_REPEAT:this.status=s.PLAY_OUT_ENDED,this.$layer.triggerHandler("OutComplete")},i.prototype.beforeMainSwitch=function(t,e){this.status!==s.INITIALIZED&&this.status!==s.INITIALIZED_REPEAT||(this.status=s.PLAY_IN_DISABLED),e.push(this.end())},i.prototype.end=function(){if(this.status>s.PLAY_IN_DISABLED&&this.status<s.PLAY_OUT_ENDED){var e=t.Deferred();return this.$layer.one("OutComplete",t.proxy(function(){this.status=s.PLAY_IN_DISABLED,e.resolve()},this)),this.playOut(),e}return!0},i.prototype.reset=function(){switch(this.status){case s.PLAY_OUT_STARTED:this.outgoing.pause(0);break;case s.PLAY_LOOP_STARTED:this.loop.reset();break;case s.PLAY_IN_STARTED:this.incoming.pause(0)}this.status=s.INITIALIZED},i.prototype.pause=function(){switch(this.paused=!0,this.status){case s.INITIALIZED:case s.INITIALIZED_REPEAT:this.status=s.PLAY_IN_DISABLED;break;case s.PLAY_IN_STARTED:this.status=s.PLAY_IN_PAUSED,this.incoming.pause();break;case s.PLAY_LOOP_STARTED:this.status=s.PLAY_LOOP_PAUSED,this.loop.pause();break;case s.PLAY_OUT_STARTED:this.status=s.PLAY_OUT_PAUSED,this.outgoing.pause()}},i.prototype.resume=function(){this.status===s.PLAY_IN_DISABLED?this.status=s.INITIALIZED:this.status===s.PLAY_IN_PAUSED?(this.status=s.PLAY_IN_STARTED,this.incoming.resume()):this.status===s.PLAY_LOOP_PAUSED?(this.status=s.PLAY_LOOP_STARTED,this.loop.play()):this.status===s.PLAY_OUT_PAUSED&&(this.status=s.PLAY_OUT_STARTED,this.outgoing.resume())},i}),N2D("AnimationsRelated",function(t,e){function i(t,e,i){this._context=t,this._extendName=e,this._refreshName=i}return i.prototype.extendTimeline=function(t,e,i,s){this._context[this._extendName].apply(this._context,arguments)},i.prototype.refresh=function(t,e){this._context[this._refreshName].call(this._context)},i}),N2D("FrontendLayerAnimations",function(t,e){function i(e){this.$layer=e;var i=e.data("animatableselector");i?this.$animatableElement=e.find(i):this.$animatableElement=e,this.currentZero=s,this.$layer.off(".layerAnimations").on("AnimationSetZero.layerAnimations",t.proxy(this.setZero,this)).on("collectRelatedAnimations.layerAnimations",t.proxy(this.collectRelatedAnimations,this))}var s={n2AutoAlpha:1,x:0,y:0,z:0,rotationX:0,rotationY:0,rotationZ:0,scaleX:1,scaleY:1,scaleZ:1,skewX:0,n2blur:0};return i.prototype.setZero=function(){NextendTween.set(this.$animatableElement,t.extend({clearProps:"transform,n2blur"},s))},i.prototype.collectRelatedAnimations=function(i,s,n,r){this.animationManager=n;var o=!1;if(r.animations!==e)o=r.animations;else{var a=this.$layer.data("animations");a&&(o=t.parseJSON(N2Classes.Base64.decode(a)))}this.specialZeroIn=0,"object"==typeof o&&(this.animations=t.extend({repeatable:0,"in":[],specialZeroIn:0,transformOriginIn:"50|*|50|*|0",inPlayEvent:"",loop:[],repeatCount:0,repeatStartDelay:0,transformOriginLoop:"50|*|50|*|0",loopPlayEvent:"",loopPauseEvent:"",loopStopEvent:"",loopRepeatSelfOnly:0,out:[],transformOriginOut:"50|*|50|*|0",outPlayEvent:"",instantOut:1},o),this.specialZeroIn=this.animations.specialZeroIn,n.setOptions({transformOriginIn:this.animations.transformOriginIn.split("|*|").join("% ")+"px",transformOriginOut:this.animations.transformOriginOut.split("|*|").join("% ")+"px",repeatable:this.animations.repeatable?1:0,instantOut:this.animations.instantOut?1:0,inPlayEvent:this.animations.inPlayEvent,loopPlayEvent:this.animations.loopPlayEvent,loopPauseEvent:this.animations.loopPauseEvent,loopStopEvent:this.animations.loopStopEvent,outPlayEvent:this.animations.outPlayEvent,loopRepeatSelfOnly:this.animations.loopRepeatSelfOnly?1:0}),this._fillAnimations(this.animations["in"]),this._fillAnimations(this.animations.loop),this._fillAnimations(this.animations.out),this.animations["in"]&&this.animations["in"].length&&s["in"].push(new N2Classes.AnimationsRelated(this,"extendTimelineIn","refreshIn")),this.animations.loop&&this.animations.loop.length&&s.loop.push(new N2Classes.AnimationsLayerLoop(this,this.$layer,this.$animatableElement,this.animations.loop,this.animations.transformOriginLoop,this.animations.repeatCount,this.animations.repeatStartDelay)),this.animations.out&&this.animations.out.length&&s.out.push(new N2Classes.AnimationsRelated(this,"extendTimelineOut","refreshOut")))},i.prototype._fillAnimations=function(e){for(var i=0;i<e.length;i++)e[i]=t.extend({name:"Animation",duration:.8,delay:0,ease:"easeOutCubic",opacity:1,x:0,y:0,z:0,rotationX:0,rotationY:0,rotationZ:0,scaleX:1,scaleY:1,scaleZ:1,skewX:0,n2blur:0},e[i])},i.prototype.extendTimelineIn=function(t,e,i,s){this.buildTimelineIn(t,this.animations["in"],i,s,e)},i.prototype.refreshIn=function(){},i.prototype.setCurrentZero=function(){var e=t.extend({},this.currentZero);delete e.delay,delete e.duration,NextendTween.set(this.$animatableElement,e)},i.prototype.buildTimelineIn=function(e,i,s,n,r){if(i=t.extend(!0,[],i),this.specialZeroIn&&i.length>0&&(this.currentZero=i.pop(),delete this.currentZero.name,delete this.currentZero.duration,delete this.currentZero.delay,delete this.currentZero.ease,this.currentZero.x=this.currentZero.x*s,this.currentZero.y=this.currentZero.y*n,this.currentZero.rotationX=-this.currentZero.rotationX,this.currentZero.rotationY=-this.currentZero.rotationY,this.currentZero.rotationZ=-this.currentZero.rotationZ,this.setCurrentZero()),i.length>0){var o=this._buildAnimationChainIn(i,s,n);if(o.length>0){var a=0;for(this.animationManager.setOptions({startDelay:o[0].to.delay}),N2Classes.FrontendLayerAnimationManager.optimizeFromTo(e,this.$animatableElement,o[a].duration,o[a].from,o[a].to,r),r+=o[a].duration+o[a].to.delay,a++;a<o.length;a++)N2Classes.FrontendLayerAnimationManager.optimizeTo(e,this.$animatableElement,o[a].duration,o[a].to,r),r+=o[a].duration+o[a].to.delay}}},i.prototype._buildAnimationChainIn=function(e,i,s){for(var n=[{from:this.currentZero}],r=e.length-1;r>=0;r--){var o=t.extend(!0,{},e[r]),a=o.delay,l=o.duration,h=o.ease;delete o.delay,delete o.duration,delete o.ease,delete o.name;var d=n[0].from;o.x=-o.x*i,o.y=-o.y*s,o.z=-o.z,o.rotationX=-o.rotationX,o.rotationY=-o.rotationY,o.rotationZ=-o.rotationZ,n.unshift({duration:l,from:o,to:t.extend({},d,{ease:h,delay:a})})}return n.pop(),n},i.prototype.extendTimelineOut=function(t,e,i,s){this.buildTimelineOut(t,this.animations.out,i,s,0)},i.prototype.refreshOut=function(){},i.prototype.buildTimelineOut=function(e,i,s,n,r){i=t.extend(!0,[],i);var o=this._buildAnimationChainOut(i,s,n),a=0;if(o.length>0)for(0!==r?N2Classes.FrontendLayerAnimationManager.optimizeTo(e,this.$animatableElement,o[a].duration,o[a].to,r):N2Classes.FrontendLayerAnimationManager.optimizeFromTo(e,this.$animatableElement,o[a].duration,o[a].from,o[a].to,r),r+=o[a].duration+o[a].to.delay,a++;a<o.length;a++)N2Classes.FrontendLayerAnimationManager.optimizeTo(e,this.$animatableElement,o[a].duration,o[a].to,r),r+=o[a].duration+o[a].to.delay},i.prototype._buildAnimationChainOut=function(e,i,s){for(var n=[{to:this.currentZero}],r=0;r<e.length;r++){var o=t.extend(!0,{},e[r]),a=o.duration;delete o.duration,delete o.name;var l=t.extend({immediateRender:!1},n[n.length-1].to);delete l.delay,delete l.ease,o.x=o.x*i,o.y=o.y*s,n.push({duration:a,from:l,to:o})}return n.shift(),n},i}),N2D("AnimationsControllerIncoming",function(t,e){function i(t,e){this.hasAnimation=!1,this.animationManager=t,this.$animatableElement=e}return i.prototype.setTransformOrigin=function(){NextendTween.set(this.$animatableElement,{transformOrigin:this.animationManager.options.transformOriginIn})},i.prototype.prepareRepeat=function(){this.hasAnimation?(this.inTimeline.invalidate(),this.inTimeline.pause(this.animationManager.options.startDelay)):this.setTransformOrigin()},i.prototype.start=function(){this.hasAnimation&&this.inTimeline.progress(.9999).pause(0,!1)},i.prototype.play=function(){this.hasAnimation?this.inTimeline.play():this.inComplete()},i.prototype.resume=function(){this.inTimeline.play()},i.prototype.pause=function(t){this.hasAnimation&&this.inTimeline.pause(t)},i.prototype.inComplete=function(){this.animationManager.inComplete()},i.prototype.eventDriven=function(e,i){this.inTimeline=new NextendTimeline({paused:1,onComplete:t.proxy(this.inComplete,this)});for(var s=0;s<this.animationManager.relatedAnimations["in"].length;s++)this.animationManager.relatedAnimations["in"][s].extendTimeline(this.inTimeline,0,e,i);return this.inTimeline.totalDuration()?(this.inTimeline.set(this.$animatableElement,{transformOrigin:this.animationManager.options.transformOriginIn,immediateRender:!0},0),this.hasAnimation=!0,!0):(this.inTimeline=null,!1)},i.prototype.linear=function(t,e){for(var i=new NextendTimeline,s=0;s<this.animationManager.relatedAnimations["in"].length;s++)this.animationManager.relatedAnimations["in"][s].extendTimeline(i,0,t,e);return i.totalDuration()?(i.set(this.$animatableElement,{transformOrigin:this.animationManager.options.transformOriginIn,immediateRender:!0},0),i):!1},i.prototype.refreshRatio=function(e,i){this.inTimeline=new NextendTimeline({paused:1,onComplete:t.proxy(this.inComplete,this)});for(var s=0;s<this.animationManager.relatedAnimations["in"].length;s++)this.animationManager.relatedAnimations["in"][s].refresh(e,i),this.animationManager.relatedAnimations["in"][s].extendTimeline(this.inTimeline,0,e,i);return this.inTimeline.totalDuration()?(this.hasAnimation=!0,!0):(this.hasAnimation=!1,!1)},i.prototype.setZero=function(){this.hasAnimation&&this.inTimeline.progress(1)},i}),N2D("AnimationsControllerLoop",function(t,e){function i(t,e){this.status=i.status.NOT_INITIALIZED,this.animationManager=t,this.$layer=e}return i.status={NOT_INITIALIZED:-1,INITIALIZED:1,PLAYING:2,PAUSED:3,ENDING:4,ENDED:5},i.prototype.refreshRatio=function(t,e){for(var s=0;s<this.animations.length;s++)this.animations[s].refreshRatio(t,e);this.status=i.status.INITIALIZED},i.prototype.start=function(){this.status===i.status.ENDED&&(this.status=i.status.INITIALIZED)},i.prototype.reset=function(){for(var t=0;t<this.animations.length;t++)this.animations[t].reset();this.status=i.status.INITIALIZED},i.prototype.play=function(){if(this.status===i.status.INITIALIZED||this.status===i.status.PAUSED){for(var t=0;t<this.animations.length;t++)this.animations[t].play();this.status=i.status.PLAYING}},i.prototype.pause=function(){if(this.status===i.status.PLAYING){for(var t=0;t<this.animations.length;t++)this.animations[t].pause();this.status=i.status.PAUSED}},i.prototype.requestEnd=function(){if(this.status===i.status.PLAYING||this.status===i.status.PAUSED){for(var t=0;t<this.animations.length;t++)this.animations[t].requestEnd();this.status=i.status.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.status=i.status.ENDED,this.animationManager.loopComplete()},i.prototype.resetForReplay=function(){for(var t=0;t<this.animations.length;t++)this.animations[t].resetForReplay();this.status=i.status.INITIALIZED},i.prototype.eventDriven=function(t,e){this.animations=[];for(var i=0;i<this.animationManager.relatedAnimations.loop.length;i++)this.animationManager.relatedAnimations.loop[i].controller=this,this.animations.push(this.animationManager.relatedAnimations.loop[i]);return this.refreshRatio(t,e),!!this.animations.length},i.prototype.linear=function(t,e){var i=new NextendTimeline;this.animations=[];for(var s=0;s<this.animationManager.relatedAnimations.loop.length;s++)this.animations.push(this.animationManager.relatedAnimations.loop[s]);for(var s=0;s<this.animations.length;s++)this.animations[s].linear(i,t,e);return i.totalDuration()?i:!1},i}),N2D("AnimationsLayerLoop",["AnimationsLoopAbstract"],function(t,e){function i(t,e,s,n,r,o,a){this.status=i.status.NOT_INITIALIZED,this.layerAnimations=t,this.$layer=e,this.$animatableElement=s,this.animationData=n,this.transformOrigin=r.split("|*|").join("% ")+"px",this.repeatCount=o,this.repeatStartDelay=Math.max(0,a),this.single=!1,N2Classes.AnimationsLoopAbstract.prototype.constructor.call(this,parseInt(this.repeatCount)),this.inAnimation=null,this.timeline=null,this.outAnimation=null}return i.prototype=Object.create(N2Classes.AnimationsLoopAbstract.prototype),i.prototype.constructor=i,i.status={NOT_INITIALIZED:-1,INITIALIZED:1,PLAY_IN_STARTED:2,PLAY_IN_PAUSED:3,PLAY_IN_ENDED:4,PLAY_LOOP_STARTED:5,PLAY_LOOP_PAUSED:6,PLAY_LOOP_ENDED:7,PLAY_OUT_STARTED:8,PLAY_OUT_PAUSED:9,PLAY_OUT_ENDED:10},i.prototype.refreshRatio=function(e,s){this.timeline=new NextendTimeline({paused:!0,onComplete:t.proxy(function(){this.repeat()||(this.status=i.status.PLAY_LOOP_ENDED,this._playOut())},this)}),this.buildTimelineLoop(t.extend(!0,[],this.animationData),e,s),this.status=i.status.INITIALIZED},i.prototype.linear=function(e,i,s){var n=t.extend(!0,[],this.animationData);this.timeline=new NextendTimeline;var r=this._buildAnimationChainLoop(n,i,s);if(this.zero=t.extend(!0,{},r[0]),this.timeline.delay(this.repeatStartDelay),this.timeline.set(this.$animatableElement,{transformOrigin:this.transformOrigin}),!this.single){var o=t.extend({},this.zero.from);N2Classes.FrontendLayerAnimationManager.optimizeTo(this.timeline,this.$animatableElement,this.zero.duration/2,o)}var a=this.repeatCount;1>a&&(a=1);for(var l=0;a>l;l++)for(var h=0;h<r.length;h++)N2Classes.FrontendLayerAnimationManager.optimizeFromTo(this.timeline,this.$animatableElement,r[h].duration,t.extend({immediateRender:!1},r[h].from),t.extend({},r[h].to));this.single||N2Classes.FrontendLayerAnimationManager.optimizeTo(this.timeline,this.$animatableElement,this.zero.duration/2,t.extend({},this.layerAnimations.currentZero)),e.add(this.timeline,0)},i.prototype.reset=function(){this.outAnimation&&this.outAnimation.pause(0),this.timeline.pause(0),this.inAnimation&&this.inAnimation.pause(0),this.status=i.status.INITIALIZED},i.prototype.play=function(){switch(this.status){case i.status.INITIALIZED:case i.status.PLAY_OUT_ENDED:this._playIn();break;case i.status.PLAY_IN_PAUSED:this.status=i.status.PLAY_IN_STARTED,this.inAnimation.play();break;case i.status.PLAY_LOOP_PAUSED:this.status=i.status.PLAY_LOOP_STARTED,this.timeline.play();break;case i.status.PLAY_OUT_PAUSED:this.status=i.status.PLAY_OUT_STARTED,this.outAnimation.play()}},i.prototype.pause=function(){switch(this.status){case i.status.PLAY_IN_STARTED:this.status=i.status.PLAY_IN_PAUSED,this.inAnimation.pause();break;case i.status.PLAY_LOOP_STARTED:this.status=i.status.PLAY_LOOP_PAUSED,this.timeline.pause();break;case i.status.PLAY_OUT_STARTED:this.status=i.status.PLAY_OUT_PAUSED,this.outAnimation.pause()}},i.prototype.requestEnd=function(){if(!this.endingDeferred)switch(this.endingDeferred=t.Deferred(),this.status){case i.status.PLAY_OUT_PAUSED:this.outAnimation.play();break;case i.status.PLAY_IN_PAUSED:this.inAnimation.play();break;case i.status.PLAY_LOOP_PAUSED:this.timeline.play()}return this.endingDeferred},i.prototype._playIn=function(){if(this.endingDeferred=!1,NextendTween.set(this.$animatableElement,{transformOrigin:this.transformOrigin}),this.single)this.timeline.delay(this.repeatStartDelay),this._playInCompleted();else{this.status=i.status.PLAY_IN_STARTED;var e=t.extend({},this.zero.from);e.delay=this.repeatStartDelay,e.onComplete=t.proxy(this._playInCompleted,this),this.inAnimation=N2Classes.FrontendLayerAnimationManager.optimizeTweenTo(this.$animatableElement,this.zero.duration/2,e)}},i.prototype._playInCompleted=function(){this.status=i.status.PLAY_IN_ENDED,this._playLoop()},i.prototype._playLoop=function(){this.status===i.status.PLAY_IN_ENDED&&(this.status=i.status.PLAY_LOOP_STARTED,this.resetCounter(),this.timeline.restart(!0))},i.prototype.resetForReplay=function(){this.status=i.status.INITIALIZED,this.resetCounter()},i.prototype._repeat=function(){this.timeline.restart(),this.$layer.triggerHandler("LoopRoundComplete")},i.prototype._playOut=function(){if(this.status===i.status.PLAY_LOOP_ENDED)if(this.single)this._playOutCompleted();else{this.status=i.status.PLAY_OUT_STARTED;var e=t.extend({},this.layerAnimations.currentZero);e.onComplete=t.proxy(this._playOutCompleted,this),this.outAnimation=N2Classes.FrontendLayerAnimationManager.optimizeTweenTo(this.$animatableElement,this.zero.duration/2,e)}},i.prototype._playOutCompleted=function(){this.status=i.status.PLAY_OUT_ENDED,this.endingDeferred||(this.endingDeferred=t.Deferred()),this.endingDeferred.resolve(),this.controller.markSingleAnimationEnded()},i.prototype.buildTimelineLoop=function(e,i,s){var n=this._buildAnimationChainLoop(e,i,s);this.zero=t.extend(!0,{},n[0]);for(var r=0;r<n.length;r++)N2Classes.FrontendLayerAnimationManager.optimizeTo(this.timeline,this.$animatableElement,n[r].duration,n[r].to)},i.prototype._buildAnimationChainLoop=function(e,i,s){if(1===e.length){this.single=!0;var n=t.extend(!0,{},e[0]),r=t.extend({},this.layerAnimations.currentZero);r.duration=n.duration,r.ease=n.ease,360!==Math.abs(n.rotationX)&&360!==Math.abs(n.rotationY)&&360!==Math.abs(n.rotationZ)||1!=n.opacity||0!=n.x||0!=n.y||0!=n.z||1!=n.scaleX||1!=n.scaleY||1!=n.scaleZ||0!=n.skewX||0!=n.n2blur?e.push(r):(360==n.rotationX?n.rotationX="+=360":-360==n.rotationX&&(n.rotationX="-=360"),360==n.rotationY?n.rotationY="+=360":-360==n.rotationY&&(n.rotationY="-=360"),360==n.rotationZ?n.rotationZ="+=360":-360==n.rotationZ&&(n.rotationZ="-=360"))}var o=0;delete e[o].name,e[o].x=e[o].x*i,e[o].y=e[o].y*s;var a=[{duration:e[o].duration,from:t.extend({},this.layerAnimations.currentZero),to:e[o]}];for(o++;o<e.length;o++){var r=e[o],l=r.duration;delete r.duration,delete r.name;var h=t.extend({},a[a.length-1].to);delete h.delay,delete h.ease,r.x=r.x*i,r.y=r.y*s,a.push({duration:l,from:h,to:r})}return this.single||(a.push({duration:a[0].duration,from:t.extend({},a[a.length-1].to),to:t.extend({},a[0].to)}),a.shift(),delete a[0].from.duration),a},i}),N2D("AnimationsLoopTimeline",["AnimationsLoopAbstract"],function(t,e){function i(t,e){this.status=i.status.NOT_INITIALIZED,this.manager=t,N2Classes.AnimationsLoopAbstract.prototype.constructor.call(this,e)}return i.prototype=Object.create(N2Classes.AnimationsLoopAbstract.prototype),i.prototype.constructor=i,i.status={NOT_INITIALIZED:-1,INITIALIZED:1,PLAYING:2,PAUSED:3,ENDED:4},i.prototype.refreshRatio=function(e,s){this.timeline=this.manager.getLoopTimeline(),this.timeline.eventCallback("onComplete",t.proxy(this.onComplete,this)),this.status=i.status.INITIALIZED},i.prototype.linear=function(t,e,i){this.timeline=this.manager.getLoopTimeline(),this.repeatCount=0,t.add(this.timeline,0),this.timeline.paused(!1)},i.prototype.refresh=function(){this.timeline&&this.timeline.progress(.9999).pause(0,!1)},i.prototype.onComplete=function(){this.repeat()||(this.status=i.status.ENDED,this.endingDeferred||(this.endingDeferred=t.Deferred()),this.endingDeferred.resolve(),this.controller.markSingleAnimationEnded())},i.prototype.reset=function(){this.timeline.pause(0),this.status=i.status.INITIALIZED},i.prototype.play=function(){switch(this.status){case i.status.INITIALIZED:case i.status.ENDED:this.endingDeferred=!1,this.status=i.status.PLAYING,this.resetCounter(),this.timeline.restart(!0);break;case i.status.PAUSED:this.status=i.status.PLAYING,this.timeline.play()}},i.prototype.pause=function(){switch(this.status){case i.status.PLAYING:this.status=i.status.PAUSED,this.timeline.pause()}},i.prototype.requestEnd=function(){if(!this.endingDeferred)switch(this.endingDeferred=t.Deferred(),this.status){case i.status.PLAY_LOOP_PAUSED:this.timeline.play()}return this.endingDeferred},i.prototype.resetForReplay=function(){this.status=i.status.INITIALIZED,this.resetCounter()},i.prototype._repeat=function(){this.timeline.restart()},i}),N2D("AnimationsLoopAbstract",function(t,e){function i(t){this.controller=null,this.endingDeferred=!1,this._counter=0,this.repeatCount=t}return i.prototype.repeat=function(){return this._counter++,this.isInfinite()&&this.endingDeferred===!1||this._counter<this.repeatCount?(this._repeat(),!0):!1},i.prototype._repeat=function(){},i.prototype.resetCounter=function(){this._counter=0},i.prototype.isInfinite=function(){return 0===this.repeatCount},i.prototype.refreshRatio=function(t,e){},i.prototype.refresh=function(){},i.prototype.reset=function(){},i.prototype.play=function(){},i.prototype.pause=function(){},i.prototype.isEnded=function(){return!(!this.endingDeferred||"resolved"!==this.endingDeferred.state())},i.prototype.requestEnd=function(){},i.prototype.resetForReplay=function(){},i.prototype.linear=function(t,e,i){},i}),N2D("AnimationsControllerOutgoing",function(t,e){function i(t,e){this.hasAnimation=!1,this.animationManager=t,this.$animatableElement=e}return i.prototype.prepareRepeat=function(){this.hasAnimation&&(this.outTimeline.invalidate(),this.outTimeline.pause(0))},i.prototype.start=function(){this.hasAnimation&&(this.animationManager.inStatus&&this.outTimeline.progress(.9999),this.outTimeline.pause(0,!1))},i.prototype.speedUp=function(){this.hasAnimation&&this.outTimeline.totalDuration(.3)},i.prototype.pause=function(t){this.hasAnimation&&this.outTimeline.pause(t)},i.prototype.resume=function(){this.outTimeline.play()},i.prototype.play=function(){this.hasAnimation?1===this.outTimeline.progress()?(this.outTimeline.timeScale(1),this.outTimeline.play(0)):this.outTimeline.play():this.outComplete()},i.prototype.outComplete=function(){this.animationManager.outComplete()},i.prototype.eventDriven=function(e,i){this.outTimeline=new NextendTimeline({paused:1,onComplete:t.proxy(this.outComplete,this)});for(var s=0;s<this.animationManager.relatedAnimations.out.length;s++)this.animationManager.relatedAnimations.out[s].extendTimeline(this.outTimeline,0,e,i);return this.outTimeline.totalDuration()?(this.outTimeline.set(this.$animatableElement,{transformOrigin:this.animationManager.options.transformOriginOut,immediateRender:!0},0),this.hasAnimation=!0,!0):(this.outTimeline=null,!1)},i.prototype.refreshRatio=function(e,i){this.outTimeline=new NextendTimeline({paused:1,onComplete:t.proxy(this.outComplete,this)});for(var s=0;s<this.animationManager.relatedAnimations.out.length;s++)this.animationManager.relatedAnimations.out[s].refresh(e,i),this.animationManager.relatedAnimations.out[s].extendTimeline(this.outTimeline,0,e,i);return this.outTimeline.totalDuration()?(this.hasAnimation=!0,!0):(this.hasAnimation=!1,!1)},i.prototype.linear=function(t,e){for(var i=new NextendTimeline,s=0;s<this.animationManager.relatedAnimations.out.length;s++)this.animationManager.relatedAnimations.out[s].extendTimeline(i,0,t,e);return i.totalDuration()?(i.set(this.$animatableElement,{transformOrigin:this.animationManager.options.transformOriginOut,immediateRender:!0},0),i):!1},i}),N2D("SmartSliderResponsive",function(t,e){function i(e,i){this.disableTransitions=!1,this.disableTransitionsTimeout=null,this.lastClientHeight=0,this.lastClientHeightTime=0,this.lastOrientation=0,this.isFullScreen=!1,this.invalidateResponsiveState=!0,this.parameters=t.extend({desktop:1,tablet:1,mobile:1,onResizeEnabled:!0,type:"auto",downscale:!0,upscale:!1,constrainRatio:!0,minimumHeight:0,maximumHeight:0,minimumHeightRatio:0,maximumHeightRatio:{desktopLandscape:0,desktopPortrait:0,mobileLandscape:0,mobilePortrait:0,tabletLandscape:0,tabletPortrait:0},maximumSlideWidth:0,maximumSlideWidthLandscape:0,maximumSlideWidthRatio:-1,maximumSlideWidthTablet:0,maximumSlideWidthTabletLandscape:0,maximumSlideWidthMobile:0,maximumSlideWidthMobileLandscape:0,maximumSlideWidthConstrainHeight:0,forceFull:0,forceFullOverflowX:"body",forceFullHorizontalSelector:"",verticalOffsetSelectors:"",decreaseSliderHeight:0,focusUser:0,focusAutoplay:0,deviceModes:{desktopLandscape:1,desktopPortrait:0,mobileLandscape:0,mobilePortrait:0,tabletLandscape:0,tabletPortrait:0},normalizedDeviceModes:{unknownUnknown:["unknown","Unknown"],desktopPortrait:["desktop","Portrait"]},verticalRatioModifiers:{unknownUnknown:1,desktopLandscape:1,desktopPortrait:1,mobileLandscape:1,mobilePortrait:1,tabletLandscape:1,tabletPortrait:1},minimumFontSizes:{desktopLandscape:0,desktopPortrait:0,mobileLandscape:0,mobilePortrait:0,tabletLandscape:0,tabletPortrait:0},ratioToDevice:{Portrait:{tablet:0,mobile:0},Landscape:{tablet:0,mobile:0}},sliderWidthToDevice:{desktopLandscape:0,desktopPortrait:0,mobileLandscape:0,mobilePortrait:0,tabletLandscape:0,tabletPortrait:0},basedOn:"combined",desktopPortraitScreenWidth:1200,tabletPortraitScreenWidth:800,mobilePortraitScreenWidth:440,tabletLandscapeScreenWidth:1024,mobileLandscapeScreenWidth:740,orientationMode:"width_and_height",overflowHiddenPage:0},i),e.isAdmin&&(this.doResize=NextendThrottle(this.doResize,50)),this.loadDeferred=t.Deferred(),this.slider=e,this.sliderElement=e.sliderElement}var s=null,n=null;return i.OrientationMode={SCREEN:0,ADMIN_LANDSCAPE:1,ADMIN_PORTRAIT:2,SCREEN_WIDTH_ONLY:3},i.DeviceOrientation={UNKNOWN:0,LANDSCAPE:1,PORTRAIT:2},i._DeviceOrientation={0:"Unknown",1:"Landscape",2:"Portrait"},i.DeviceMode={UNKNOWN:0,DESKTOP:1,TABLET:2,MOBILE:3},i._DeviceMode={0:"unknown",1:"desktop",2:"tablet",3:"mobile"},i.prototype.start=function(){nextend.fontsDeferred===e?N2R("windowLoad",t.proxy(function(){this.loadDeferred.resolve()},this)):nextend.fontsDeferred.always(t.proxy(function(){this.loadDeferred.resolve()},this)),this.normalizeTimeout=null,this.delayedResizeAdded=!1,this.deviceMode=i.DeviceMode.UNKNOWN,this.orientationMode=i.OrientationMode.SCREEN,this.orientation=i.DeviceOrientation.UNKNOWN,this.lastRatios={ratio:-1},this.lastRawRatios={ratio:-1},this.normalizedMode="unknownUnknown",this.widgetMargins={Top:[],Right:[],Bottom:[],Left:[]},this.staticSizes={paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0},this.enabledWidgetMargins=[],this.alignElement=this.slider.sliderElement.closest(".n2-ss-align");var r=this.ready=t.Deferred();switch(this.sliderElement.triggerHandler("SliderResponsiveStarted"),this.sliderElement.one("SliderResize",function(){r.resolve()}),this.containerElementPadding=this.sliderElement.parent(),this.containerElement=this.containerElementPadding.parent(),!this.slider.isAdmin&&this.parameters.overflowHiddenPage&&t("html, body").css("overflow","hidden"),"width"==this.parameters.orientationMode&&(this.orientationMode=i.OrientationMode.SCREEN_WIDTH_ONLY),nextend.smallestZoom=Math.min(Math.max(this.parameters.sliderWidthToDevice.mobilePortrait,120),320),this.parameters.basedOn){case"screen":break;default:if(null==s){var o=new MobileDetect(window.navigator.userAgent,801);s=!!o.tablet(),n=!!o.phone()}}if(this.verticalOffsetSelectors=t(this.parameters.verticalOffsetSelectors),this.storeDefaults(),this.parameters.minimumHeight>0&&(this.parameters.minimumHeightRatio=this.parameters.minimumHeight/this.responsiveDimensions.startHeight),this.parameters.maximumHeight>0&&this.parameters.maximumHeight>=this.parameters.minimumHeight&&(this.parameters.maximumHeightRatio={desktopPortrait:this.parameters.maximumHeight/this.responsiveDimensions.startHeight},this.parameters.maximumHeightRatio.desktopLandscape=this.parameters.maximumHeightRatio.desktopPortrait,this.parameters.maximumHeightRatio.tabletPortrait=this.parameters.maximumHeightRatio.desktopPortrait,this.parameters.maximumHeightRatio.tabletLandscape=this.parameters.maximumHeightRatio.desktopPortrait,this.parameters.maximumHeightRatio.mobilePortrait=this.parameters.maximumHeightRatio.desktopPortrait,this.parameters.maximumHeightRatio.mobileLandscape=this.parameters.maximumHeightRatio.desktopPortrait),this.parameters.maximumSlideWidth>0&&(this.parameters.maximumSlideWidthRatio={desktopPortrait:this.parameters.maximumSlideWidth/this.responsiveDimensions.startSlideWidth,desktopLandscape:this.parameters.maximumSlideWidthLandscape/this.responsiveDimensions.startSlideWidth,tabletPortrait:this.parameters.maximumSlideWidthTablet/this.responsiveDimensions.startSlideWidth,tabletLandscape:this.parameters.maximumSlideWidthTabletLandscape/this.responsiveDimensions.startSlideWidth,mobilePortrait:this.parameters.maximumSlideWidthMobile/this.responsiveDimensions.startSlideWidth,mobileLandscape:this.parameters.maximumSlideWidthMobileLandscape/this.responsiveDimensions.startSlideWidth},this.parameters.maximumSlideWidthConstrainHeight)){this.parameters.maximumHeightRatio=t.extend({},this.parameters.maximumSlideWidthRatio);for(var a in this.parameters.maximumHeightRatio)this.parameters.maximumHeightRatio[a]*=this.parameters.verticalRatioModifiers[a]}if(N2Classes.Zoom!==e&&N2Classes.Zoom.add(this),this.onResize(),this.parameters.onResizeEnabled||"adaptive"==this.parameters.type)if(t(window).on({resize:t.proxy(this.onResize,this),orientationchange:t.proxy(this.onResize,this)}),this.sliderElement.on("SliderInternalResize",t.proxy(this.onResize,this)),window.ResizeObserver!==e){var l=0,h=new ResizeObserver(t.proxy(function(e){e.forEach(t.proxy(function(t){l!==t.contentRect.width&&(l=t.contentRect.width,this.sliderElement.triggerHandler("SliderInternalResize"))},this))},this));h.observe(this.containerElement.parent().get(0))}else try{t('<iframe sandbox="allow-same-origin allow-scripts" style="margin:0;padding:0;border:0;display:block;width:100%;height:0;min-height:0;"/>').on("load",t.proxy(function(e){var i=0,s=t(e.target.contentWindow?e.target.contentWindow:e.target.contentDocument.defaultView).on("resize",t.proxy(function(t){var e=s.width();i!==e&&(i=e,this.sliderElement.triggerHandler("SliderInternalResize"))},this))},this)).insertBefore(this.containerElement)}catch(d){}},i.prototype.getOuterWidth=function(){return this.responsiveDimensions.startSliderWidth+this.responsiveDimensions.startSliderMarginLeft+this.responsiveDimensions.startSliderMarginRight},i.prototype.storeDefaults=function(){this.responsiveDimensions={startWidth:this.sliderElement.outerWidth(!0),startHeight:this.sliderElement.outerHeight(!0),startSliderMarginhorizontal:0,startSliderMarginvertical:0},this.horizontalElements=[],this.verticalElements=[],this.init(),this.margins={top:this.responsiveDimensions.startSliderMarginTop,right:this.responsiveDimensions.startSliderMarginRight,bottom:this.responsiveDimensions.startSliderMarginBottom,left:this.responsiveDimensions.startSliderMarginLeft}},i.prototype.addHorizontalElement=function(t,e,i,s){i=i||"ratio";var n=new N2Classes.SmartSliderResponsiveElement(this,i,t,e,s);return this.horizontalElements.push(n),n},i.prototype.addVerticalElement=function(t,e,i,s){i=i||"ratio";var n=new N2Classes.SmartSliderResponsiveElement(this,i,t,e,s);return this.verticalElements.push(n),n},i.prototype.resizeHorizontalElements=function(t){for(var e=0;e<this.horizontalElements.length;e++){var i=this.horizontalElements[e];"undefined"==typeof t[i.ratioName]&&console.log("error with "+i.ratioName),i.resize(this.responsiveDimensions,t[i.ratioName],!1,0)}this.slider.sliderElement.triggerHandler("SliderResizeHorizontal")},i.prototype.updateVerticalRatios=function(t){return t},i.prototype._updateVerticalRatios=function(e){var i=this.responsiveDimensions.startSlideHeight*e.slideH,s=!1;return this.sliderElement.find(".n2-ss-section-main-content").addClass("n2-ss-section-main-content-calc").each(function(e,n){var r=t(n).outerHeight();r>i&&(s=!0,i=r)}).removeClass("n2-ss-section-main-content-calc"),s&&(e.slideH=i/this.responsiveDimensions.startSlideHeight,e.h=Math.max(e.h,e.slideH)),e},i.prototype.resizeVerticalElements=function(t,e,i){for(var s=0;s<this.verticalElements.length;s++){var n=this.verticalElements[s];"undefined"==typeof t[n.ratioName]&&console.log("error with "+n.ratioName),n.resize(this.responsiveDimensions,t[n.ratioName],e,i)}},i.prototype.getDeviceMode=function(){return i._DeviceMode[this.deviceMode]},i.prototype.getDeviceModeOrientation=function(){return i._DeviceMode[this.deviceMode]+i._DeviceOrientation[this.orientation]},i.prototype.onResize=function(e){this.slider.mainAnimation&&"playing"==this.slider.mainAnimation.getState()?this.delayedResizeAdded||(this.delayedResizeAdded=!0,this.sliderElement.on("mainAnimationComplete.responsive",t.proxy(this._onResize,this,e))):this._onResize(e)},i.prototype._onResize=function(t){this.doResize(t),this.delayedResizeAdded=!1},i.prototype.doNormalizedResize=function(){this.normalizeTimeout&&clearTimeout(this.normalizeTimeout),this.normalizeTimeout=setTimeout(t.proxy(this.doResize,this),10)},i.prototype._getOrientation=function(){return this.orientationMode==i.OrientationMode.SCREEN?window.innerHeight<=window.innerWidth?i.DeviceOrientation.LANDSCAPE:i.DeviceOrientation.PORTRAIT:this.orientationMode==i.OrientationMode.ADMIN_PORTRAIT?i.DeviceOrientation.PORTRAIT:this.orientationMode==i.OrientationMode.ADMIN_LANDSCAPE?i.DeviceOrientation.LANDSCAPE:void 0},i.prototype._getDevice=function(){switch(this.parameters.basedOn){case"combined":return this._getDeviceDevice(this._getDeviceScreenWidth());case"device":return this._getDeviceDevice(i.DeviceMode.DESKTOP);case"screen":return this._getDeviceScreenWidth()}},i.prototype._getDeviceScreenWidth=function(){var t=window.innerWidth;if(this.orientation==i.DeviceOrientation.PORTRAIT){if(t<this.parameters.mobilePortraitScreenWidth)return i.DeviceMode.MOBILE;if(t<this.parameters.tabletPortraitScreenWidth)return i.DeviceMode.TABLET}else{if(t<this.parameters.mobileLandscapeScreenWidth)return i.DeviceMode.MOBILE;if(t<this.parameters.tabletLandscapeScreenWidth)return i.DeviceMode.TABLET}return i.DeviceMode.DESKTOP},i.prototype._getDeviceAndOrientationByScreenWidth=function(){var t=window.innerWidth;return t<this.parameters.mobilePortraitScreenWidth?[i.DeviceMode.MOBILE,i.DeviceOrientation.PORTRAIT]:t<this.parameters.mobileLandscapeScreenWidth?[i.DeviceMode.MOBILE,i.DeviceOrientation.LANDSCAPE]:t<this.parameters.tabletPortraitScreenWidth?[i.DeviceMode.TABLET,i.DeviceOrientation.PORTRAIT]:t<this.parameters.tabletLandscapeScreenWidth?[i.DeviceMode.TABLET,i.DeviceOrientation.LANDSCAPE]:t<this.parameters.desktopPortraitScreenWidth?[i.DeviceMode.DESKTOP,i.DeviceOrientation.PORTRAIT]:[i.DeviceMode.DESKTOP,i.DeviceOrientation.LANDSCAPE]},i.prototype._getDeviceDevice=function(t){return n===!0?i.DeviceMode.MOBILE:s&&t!=i.DeviceMode.MOBILE?i.DeviceMode.TABLET:t},i.prototype._getDeviceZoom=function(t){var e;this.orientationMode==i.OrientationMode.ADMIN_PORTRAIT?e=i.DeviceOrientation.PORTRAIT:this.orientationMode==i.OrientationMode.ADMIN_LANDSCAPE&&(e=i.DeviceOrientation.LANDSCAPE);var s=i.DeviceMode.DESKTOP;return t-this.parameters.ratioToDevice[i._DeviceOrientation[e]].mobile<.001?s=i.DeviceMode.MOBILE:t-this.parameters.ratioToDevice[i._DeviceOrientation[e]].tablet<.001&&(s=i.DeviceMode.TABLET),s},i.prototype.doResize=function(e,s,n,r){this.disableTransitions||(this.disableTransitions=!0,this.sliderElement.addClass("n2notransition"),this.disableTransitionsTimeout&&clearTimeout(this.disableTransitionsTimeout),this.disableTransitionsTimeout=setTimeout(t.proxy(function(){this.sliderElement.removeClass("n2notransition"),this.disableTransitions=!1},this),500)),this.refreshMargin();var o;if("center"===this.slider.parameters.align&&("fullpage"===this.parameters.type?this.alignElement.css("maxWidth","none"):(o=this.responsiveDimensions.startWidth,this.staticSizes&&(o+=this.staticSizes.paddingLeft+this.staticSizes.paddingRight),this.alignElement.css("maxWidth",o))),!this.slider.isAdmin&&this.parameters.forceFull){"none"!==this.parameters.forceFullOverflowX&&t(this.parameters.forceFullOverflowX).css("overflow-x","hidden");var a=0,l=0;if(""!==this.parameters.forceFullHorizontalSelector){var h=this.sliderElement.closest(this.parameters.forceFullHorizontalSelector);h&&h.length>0&&(a=h.width(),l=h.offset().left)}var d,p=a>0?a:document.body.clientWidth||document.documentElement.clientWidth,c=this.containerElement.parent(),u=c.offset().left;d=n2const.rtl.isRtl?p-(u+c.outerWidth()):u,this.containerElement.css(n2const.rtl.marginLeft,-d-parseInt(c.css("paddingLeft"))-parseInt(c.css("borderLeftWidth"))+l).width(p)}var m=this.containerElementPadding.width()/this.getOuterWidth(),f=!1,y=this.orientation,g=this.deviceMode,v=null,S=null;if(this.orientationMode===i.OrientationMode.SCREEN_WIDTH_ONLY){var x=this._getDeviceAndOrientationByScreenWidth();S=x[0],v=x[1]}else v=this._getOrientation();if(this.orientation!==v&&(this.orientation=v,f=!0,this.sliderElement.trigger("SliderOrientation",{lastOrientation:i._DeviceOrientation[y],orientation:i._DeviceOrientation[v]})),this.orientationMode!==i.OrientationMode.SCREEN_WIDTH_ONLY&&(S=this._getDevice(m)),this.deviceMode!==S&&(this.deviceMode=S,this.sliderElement.removeClass("n2-ss-"+i._DeviceMode[g]).addClass("n2-ss-"+i._DeviceMode[S]),this.sliderElement.trigger("SliderDevice",{lastDevice:i._DeviceMode[g],device:i._DeviceMode[S]}),f=!0),!this.slider.isAdmin&&"fullpage"===this.parameters.type){var b=0;if(window.matchMedia&&/Android|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent||navigator.vendor||window.opera)){var A,w=!1;e&&"orientationchange"===e.type&&(w=!0),A=n2const.isIOS?document.documentElement.clientHeight:window.innerHeight,window.matchMedia("(orientation: landscape)").matches?(b=Math.min(screen.width,A),90!=this.lastOrientation&&(w=!0,this.lastOrientation=90)):(b=Math.min(screen.height,A),0!=this.lastOrientation&&(w=!0,this.lastOrientation=0)),b=window.n2ClientHeight||b;var E=t.now();!w&&Math.abs(b-this.lastClientHeight)<100&&E-this.lastClientHeightTime>400?b=this.lastClientHeight:(this.lastClientHeight=b,this.lastClientHeightTime=E)}else b=window.n2ClientHeight||document.documentElement.clientHeight||document.body.clientHeight;n2const.isBot&&(b=Math.min(b,document.documentElement.clientWidth||document.body.clientWidth)),this.parameters.maximumHeightRatio[this.getDeviceModeOrientation()]=this.parameters.minimumHeightRatio=(b-this.getVerticalOffsetHeight())/this.responsiveDimensions.startHeight}if(f){this.invalidateResponsiveState=!0;var T=this._normalizeMode(i._DeviceMode[g],i._DeviceOrientation[y]),D=this._normalizeMode(i._DeviceMode[this.deviceMode],i._DeviceOrientation[this.orientation]);T[0]===D[0]&&T[1]===D[1]||(this.normalizedMode=D[0]+D[1],this.sliderElement.trigger("SliderDeviceOrientation",{lastDevice:T[0],lastOrientation:T[1],device:D[0],orientation:D[1]}))}var C=this.parameters.sliderWidthToDevice[this.normalizedMode]/this.parameters.sliderWidthToDevice.desktopPortrait;!this.parameters.downscale&&C>m?m=C:!this.parameters.upscale&&m>C&&(m=C),this._doResize(m,s,n,r),"center"===this.slider.parameters.align&&(o=this.responsiveDimensions.slider.width,this.staticSizes&&(o+=this.staticSizes.paddingLeft+this.staticSizes.paddingRight),this.responsiveDimensions&&(o+=this.responsiveDimensions.startSliderMarginhorizontal),this.alignElement.css("maxWidth",o))},i.prototype._normalizeMode=function(t,e){return this.parameters.normalizedDeviceModes[t+e]},i.prototype.getNormalizedModeString=function(){var t=this._normalizeMode(i._DeviceMode[this.deviceMode],i._DeviceOrientation[this.orientation]);return t.join("")},i.prototype.getModeString=function(){return i._DeviceMode[this.deviceMode]+i._DeviceOrientation[this.orientation]},i.prototype.enabled=function(t,e){return this.parameters.deviceModes[t+e]},i.prototype._doResize=function(e,i,s,n){var r={ratio:e,w:e,h:e,slideW:e,slideH:e,fontRatio:1};this._buildRatios(r,this.slider.parameters.dynamicHeight,s),r.fontRatio=r.slideW;var o=!1;for(var a in r)if(r[a]!=this.lastRawRatios[a]){o=!0;break}(this.invalidateResponsiveState||o)&&(this.lastRawRatios=t.extend({},r),this.resizeHorizontalElements(r),this.finishResize(r,i,n))},i.prototype.finishResize=function(e,i,s){this.loadDeferred.done(t.proxy(function(){var n=t.proxy(function(){this.finishResize=this._finishResize,this.finishResize(e,i,s)},this);/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor)||/CriOS/.exec(window.navigator.userAgent)?setTimeout(n,200):n()},this)),this.invalidateResponsiveState=!1},i.prototype._finishResize=function(t,e,i){this.invalidateResponsiveState=!1,t=this.updateVerticalRatios(t),this.resizeVerticalElements(t,e,i),this.lastRatios=t,e?(this.sliderElement.trigger("SliderAnimatedResize",[t,e,i]),e.eventCallback("onComplete",function(){this.triggerResize(t,e)},[],this)):this.triggerResize(t,!1)},i.prototype.doVerticalResize=function(){var e=this.updateVerticalRatios(t.extend({},this.lastRawRatios)),i=!1;for(var s in e)if(e[s]!=this.lastRatios[s]){i=!0;break}i&&this.finishVerticalResize(e)},i.prototype.finishVerticalResize=function(e){this.loadDeferred.done(t.proxy(function(){this.finishVerticalResize=this._finishVerticalResize,this.finishVerticalResize(e)},this))},i.prototype._finishVerticalResize=function(t){this.resizeVerticalElements(t,!1,0),this.lastRatios=t,this.triggerResize(t,!1)},i.prototype.triggerResize=function(t,e){this.sliderElement.trigger("SliderResize",[t,this,e])},i.prototype._buildRatios=function(t,i,s){var n=this.getDeviceModeOrientation();this.parameters.maximumSlideWidthRatio[n]>0&&t.slideW>this.parameters.maximumSlideWidthRatio[n]&&(t.slideW=this.parameters.maximumSlideWidthRatio[n]),t.slideW=t.slideH=Math.min(t.slideW,t.slideH);var r=this.parameters.verticalRatioModifiers[n];if(t.slideH*=r,"fullpage"===this.parameters.type)t.h*=r,this.parameters.minimumHeightRatio>0&&(t.h=Math.max(t.h,this.parameters.minimumHeightRatio)),this.parameters.maximumHeightRatio[n]>0&&(t.h=Math.min(t.h,this.parameters.maximumHeightRatio[n])),this.slider.isAdmin?this.parameters.constrainRatio?(t.slideH=Math.min(t.slideH,t.h),t.slideH=t.slideW=Math.min(t.slideW,t.slideH)):(t.w=t.slideW,t.h=t.slideH):this.parameters.constrainRatio?(t.slideH=Math.min(t.slideH,t.h),t.slideH=t.slideW=Math.min(t.slideW,t.slideH)):(t.slideW=t.w,this.parameters.maximumSlideWidthRatio[n]>0&&t.slideW>this.parameters.maximumSlideWidthRatio[n]&&(t.slideW=this.parameters.maximumSlideWidthRatio[n]),t.slideH=t.h);else if(t.h*=r,this.parameters.minimumHeightRatio>0&&(t.h=Math.max(t.h,this.parameters.minimumHeightRatio)),this.parameters.maximumHeightRatio[n]>0&&(t.h=Math.min(t.h,this.parameters.maximumHeightRatio[n])),t.slideH=Math.min(t.slideH,t.h),t.slideW=t.slideH/r,"showcase"===this.slider.type&&(t.slideW=Math.min(t.slideW,t.w),t.slideH=Math.min(t.slideW,t.slideH)),i){var o;if(s!==e&&s.background.elements.image!==e?o=s.background.elements.image:this.slider.currentSlide.background.elements.image!==e&&(o=this.slider.currentSlide.background.elements.image),o!==e&&o.width>0&&o.height>0){var a=this.responsiveDimensions.startSlideWidth/o.width*(o.height/this.responsiveDimensions.startSlideHeight);a>0&&(t.slideH*=a,t.h*=a)}}this.sliderElement.triggerHandler("responsiveBuildRatios",[t])},i.prototype.getVerticalOffsetHeight=function(){if(this.isFullScreen)return 0;for(var t=0,e=0;e<this.verticalOffsetSelectors.length;e++)t+=this.verticalOffsetSelectors.eq(e).outerHeight();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},i.prototype.addMargin=function(t,e){this.widgetMargins[t].push(e),e.isVisible()&&(this._addMarginSize(t,e.getSize()),this.enabledWidgetMargins.push(e)),this.doNormalizedResize()},i.prototype.addStaticMargin=function(t,e){"Bottom"!=t&&"Top"!=t&&(this.widgetStaticMargins||(this.widgetStaticMargins={Top:[],Right:[],Bottom:[],Left:[]}),this.widgetStaticMargins[t].push(e),this.doNormalizedResize())},i.prototype.refreshMargin=function(){for(var e in this.widgetMargins)for(var i=this.widgetMargins[e],s=i.length-1;s>=0;s--){var n=i[s];if(n.isVisible())-1==t.inArray(n,this.enabledWidgetMargins)&&(this._addMarginSize(e,n.getSize()),this.enabledWidgetMargins.push(n));else{var r=t.inArray(n,this.enabledWidgetMargins);-1!=r&&(this._addMarginSize(e,-n.getSize()),this.enabledWidgetMargins.splice(r,1))}}this.refreshStaticSizes()},i.prototype.refreshStaticSizes=function(){if(this.widgetStaticMargins){var t={paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0};for(var e in this.widgetStaticMargins)for(var i=this.widgetStaticMargins[e],s=i.length-1;s>=0;s--){var n=i[s];n.isVisible()&&(t["padding"+e]+=n.getSize())}for(var r in t)this.containerElementPadding.css(t);this.staticSizes=t}},i.prototype._addMarginSize=function(t,e){var i=null;switch(t){case"Top":case"Bottom":i=this._sliderVertical;break;default:i=this._sliderHorizontal}i.data["margin"+t]+=e,this.responsiveDimensions["startSliderMargin"+t]+=e},i}),N2D("SmartSliderResponsiveElement",function(t,e){function i(e,i,s,n,r){this._lastRatio=1,this.responsive=e,this.ratioName=i,this.element=s,this._readyDeferred=t.Deferred(),"undefined"!=typeof r?this.name=r:this.name=null,this.data={},this.helper={parent:null,parentProps:null,fontSize:!1,centered:!1},this._lateInit(n)}return i.prototype._lateInit=function(e){this._cssProperties=e,this.reloadDefault(),-1!=t.inArray("fontSize",e)&&(this.data.fontSize=this.element.data("fontsize"),this.helper.fontSize={fontSize:this.element.data("fontsize"),desktopPortrait:this.element.data("minfontsizedesktopportrait"),desktopLandscape:this.element.data("minfontsizedesktoplandscape"),tabletPortrait:this.element.data("minfontsizetabletportrait"),tabletLandscape:this.element.data("minfontsizetabletlandscape"),mobilePortrait:this.element.data("minfontsizemobileportrait"),mobileLandscape:this.element.data("minfontsizemobilelandscape")},this.responsive.sliderElement.on("SliderDeviceOrientation",t.proxy(this.onModeChange,this))),this.resize=this._resize,this._readyDeferred.resolve()},i.prototype.reloadDefault=function(){for(var t=0;t<this._cssProperties.length;t++){var e=this._cssProperties[t];this.data[e]=parseInt(this.element.css(e))}if(this.name){var i=this.responsive.responsiveDimensions;for(var s in this.data)i["start"+N2Classes.StringHelper.capitalize(this.name)+N2Classes.StringHelper.capitalize(s)]=this.data[s]}},i.prototype.ready=function(t){this._readyDeferred.done(t)},i.prototype.resize=function(e,i){this.ready(t.proxy(this.resize,this,e,i)),this._lastRatio=i},i.prototype._resize=function(t,e,i,s){this.name&&"undefined"==typeof t[this.name]&&(t[this.name]={});var n={};for(var r in this.data){var o=this.data[r]*e;"function"==typeof this[r+"Prepare"]&&(o=this[r+"Prepare"](o)),this.name&&(t[this.name][r]=o),n[r]=o}if(i)i.to(this.element,s,n,0);else if(this.element.css(n),this.helper.centered){var a=this.getVerticalMargin(parseInt((this.helper.parent.height()-this.element.height())/2)),l=this.getHorizontalMargin(parseInt((this.helper.parent.width()-this.element.width())/2));this.element.css({marginLeft:l,marginRight:l,marginTop:a,marginBottom:a})}this._lastRatio=e},i.prototype.getHorizontalMargin=function(t){return t},i.prototype.getVerticalMargin=function(t){return t},i.prototype._refreshResize=function(){this.responsive.ready.done(t.proxy(function(){this._resize(this.responsive.responsiveDimensions,this.responsive.lastRatios[this.ratioName])},this))},i.prototype.widthPrepare=function(t){return Math.round(t)},i.prototype.heightPrepare=function(t){return Math.round(t)},i.prototype.marginLeftPrepare=function(t){return parseInt(t)},i.prototype.marginRightPrepare=function(t){return parseInt(t)},i.prototype.lineHeightPrepare=function(t){return t+"px"},i.prototype.borderLeftWidthPrepare=function(t){return parseInt(t)},i.prototype.borderRightWidthPrepare=function(t){return parseInt(t)},i.prototype.borderTopWidthPrepare=function(t){return parseInt(t)},i.prototype.borderBottomWidthPrepare=function(t){return parseInt(t)},i.prototype.fontSizePrepare=function(t){var e=this.responsive.getNormalizedModeString();return t<this.helper.fontSize[e]?this.helper.fontSize[e]:t},i.prototype.setCentered=function(){this.helper.parent=this.element.parent(),this.helper.centered=!0},i.prototype.unsetCentered=function(){this.helper.centered=!1},i.prototype.onModeChange=function(){this.setFontSizeByMode()},i.prototype.setFontSizeByMode=function(){this.element.css("fontSize",this.fontSizePrepare(this.data.fontSize*this._lastRatio))},i}),N2D("FrontendItemAnimatedHeading",function(t,e){function i(e,i){return this.slider=i,this.$el=t(e),this.$texts=this.$el.find(".n2-ss-animated-heading-i-text"),i.disableLayerAnimations?(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 e=t(this),i=e.html().split(" "),s=e.attr("class"),n=[],r=0;r<i.length;r++)n.push('<div class="'+s+'">'+i[r]+"</div>");e.replaceWith(n.join(" "))}),void this.start())}var s={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)}}},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"})}}},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}}}};return i.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)},i.prototype.start=function(){this.slider.started(t.proxy(this.started,this))},i.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=s[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.$layer.on("collectRelatedAnimations.animatedHeading",t.proxy(this.collectRelatedAnimations,this)),this.slider.isAdmin&&this.slider.sliderElement.on("SliderResizeHorizontal",t.proxy(function(){this.onResize()},this)),this.onResize()},i.prototype.collectRelatedAnimations=function(t,e,i,s){1===this.loop?(this.loopTimeline=new N2Classes.AnimationsLoopTimeline(this,0),e.loop.push(this.loopTimeline)):e["in"].push(new N2Classes.AnimationsRelated(this,"extendTimeline","refresh"))},i.prototype.initTimeline=function(){this.timeline&&this.timeline.kill(),this.kill(),this.onResize(),this.timeline=new NextendTimeline({paused:1}),this[this.currentType.fn](this.currentType.data),this.timeline.delay(this.delay)},i.prototype.getLoopTimeline=function(){return this.initTimeline(),this.timeline},i.prototype.extendTimeline=function(t,e,i,s){this.initTimeline(),t.add(this.timeline,e),this.timeline.paused(!1)},i.prototype.refresh=function(t,e){this.timeline.progress(.9999).pause(0,!1)},i.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},i.prototype.animateChars=function(e){this.$el.css("overflow","hidden"),this.animateWidth&&this.timeline.set(this.$el,{width:this.$texts.eq(0).data("width"),roundProps:["width"],rotationZ:"0.00001deg",immediateRender:!0,ease:N2Classes.Linear});var i=0,s=this.$texts.length,n=s;this.loop&&n++;for(var r=0;n>r;r++){var o=this.$texts.eq(s===r?0:r),a=this.getSplitTextChars(o);if(NextendTween.set(a,{transformPerspective:1e3,"will-change":"transform, opacity"}),r>0){var l=this.timeline.totalDuration()-i;this.timeline.staggerFromTo(a,e.duration*this.speedModifier,t.extend({},e.from),t.extend({immediateRender:s>r,ease:e.ease},e.current),e.stagger,l),this.animateWidth&&this.timeline.to(this.$el,this.timeline.recent().duration(),{width:o.data("width")},l)}n-1>r&&(this.timeline.staggerTo(a,e.duration*this.speedModifier,t.extend({ease:e.ease},e.to),e.stagger,"+="+this.showDuration),i=this.timeline.recent().duration())}this.garbage.push(function(){this.animateWidth&&this.$el.css("width",""),this.$el.css("overflow","")})},i.prototype.displayCursor=function(){var e=t('<div class="n2-ss-animated-heading-i-cursor"></div>').css("background-color",this.color).appendTo(this.$texts.parent()),i=new NextendTimeline({onComplete:function(){this.restart()}});i.fromTo(e,.1,{opacity:0},{opacity:1},"+=0.5"),i.fromTo(e,.1,{opacity:1},{opacity:0,immediateRender:!1},"+=0.5"),this.garbage.push(function(){i.kill(),e.remove()})},i.prototype.animateTypeWriter=function(t){this.$texts.css("position","relative");var e=this.$texts.length,i=e;this.loop&&i++;for(var s=0;i>s;s++){var n=this.getSplitTextChars(this.$texts.eq(e===s?0:s));s>0&&this.timeline.staggerFromTo(n,.2*this.speedModifier,{display:"none"},{display:"inline-block",immediateRender:e!==s},.2*this.speedModifier,"+=0.8"),i-1>s&&t.backspace.call(this,n,this.$texts.parent())}this.displayCursor()},i.prototype.animateWhole=function(e){e.overflow?this.$el.css("overflow",""):this.$el.css("overflow","hidden"),this.animateWidth&&this.timeline.set(this.$el,{width:this.$texts.eq(0).data("width"),immediateRender:!0}),e.transformOrigin=e.transformOrigin||"50% 50% 0",this.timeline.set(this.$texts,{transformOrigin:e.transformOrigin,transformPerspective:1e3});var i=this.$texts.length,s=i;this.loop&&s++;for(var n=0;s>n;n++){var r=this.$texts.eq(i===n?0:n);if(n>0){var o=this.timeline.totalDuration();if(this.animateWidth){var a=.4;this.timeline.to(this.$el,a,{width:r.data("width")},o-.2*a),o+=.8*a}else o-=e.overlap*this.speedModifier;this.timeline.fromTo(r,e.duration*this.speedModifier,t.extend({},e.from),t.extend({immediateRender:i>n,ease:e.ease},e.current),o)}s-1>n&&this.timeline.to(r,e.duration*this.speedModifier,t.extend({ease:e.ease},e.to),"+="+this.showDuration)}this.garbage.push(function(){this.animateWidth&&this.$el.css("width",""),this.$el.css("overflow","")})},i.prototype.kill=function(){for(var t=0;t<this.garbage.length;t++)this.garbage[t].call(this);this.garbage=[]},i}),N2D("FrontendItemAudio",function(t,e){function i(e,i,n){return this.loadDeferred=t.Deferred(),this.slider=e,this.id=i,this.$node=t("#"+i),this.audio=this.$node.find("audio").get(0),this.audio?(this.$layer=this.$node.parent(),this.isStatic=this.$node.closest(".n2-ss-static-slide").length,this.slide=this.slider.findSlideByElement(this.$node),this.isPaused=!1,this.lastVolume=1,this.parameters=t.extend({autoplay:0,loop:0,reset:0,volume:1,show:1},n),1===parseInt(this.parameters.autoplay)&&0===parseInt(this.parameters.show)&&s.get(),t(this.audio).on({play:t.proxy(this.onPlay,this),pause:t.proxy(this.onPause,this),ended:t.proxy(this.onEnded,this),timeupdate:t.proxy(this.onTimeUpdate,this),volumechange:t.proxy(this.onVolumechange,this)}),void(this.audio.duration>=0?this.onReady():this.audio.addEventListener("loadedmetadata",t.proxy(this.onReady,this)))):void this.loadDeferred.reject()}function s(){window.AudioContext=window.AudioContext||window.webkitAudioContext,window.AudioContext!==e&&(this.interaction=new Promise(t.proxy(function(t,e){this.interactionResolver=t},this)),this.context=new AudioContext,this.cache={},this.currentSource=!1,this.interaction.then(t.proxy(this.ready,this)),this.playNothing(),setTimeout(t.proxy(function(){0===this.context.currentTime?this.userInteractionCatcher():this.interactionResolver()},this),100))}function n(t,e){this.player=t,this.context=t.context,this.$node=e,this.src=e.data("src"),this.playing=0,this.source=null}return i.prototype.safePlay=function(){this.safeCallback(t.proxy(function(){this.promise=this.audio.play(),this.promise&&Promise!==e&&this.promise["catch"](t.proxy(function(e){if(e.message.match("user denied permission")){var i=t("<div />").data("src",t(this.audio).find("source").attr("src")).on({play:t.proxy(this.onPlay,this),ended:t.proxy(this.onEnded,this)});this.fallbackAudio=s.get().createAudio(i),this.safePlay=this.safePlaySafari,this.safePlay()}else if(e.message.match("interact")){var n=".ssLayerVideo"+this.counter;t("body").off(n).one("click"+n+" touchend"+n,t.proxy(function(){t("body").off(n),this.promise!==!1&&this.safePlay()},this))}},this))},this))},i.prototype.safePlaySafari=function(){s.get().play(this.fallbackAudio)},i.prototype.safePause=function(){this.safeCallback(t.proxy(function(){this.fallbackAudio===e?this.audio.pause():s.get().stop(this.fallbackAudio),this.promise=!1},this))},i.prototype.safeCallback=function(t){this.promise&&Promise!==e?this.promise.then(t)["catch"](t):t()},i.prototype.initAutoplay=function(){this.isStatic?this.safePlay():(this.slider.sliderElement.on("mainAnimationComplete",t.proxy(function(e,i,s,n,r){t.inArray(this.slide,this.slider.getVisibleSlides(this.slider.slides[n]))>=0&&this.safePlay()},this)),t.inArray(this.slide,this.slider.getVisibleSlides())>=0&&this.safePlay())},i.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",t.proxy(function(){this.safePlay()},this)),this.$node.find(".n2-ss-item-audio-pause").on("click",t.proxy(function(){this.safePause()},this)),this.$node.find(".n2-ss-item-audio-mute").on("click",t.proxy(function(){this.audio.volume=0},this)),this.$node.find(".n2-ss-item-audio-unmute").on("click",t.proxy(function(){this.audio.volume=this.lastVolume},this)),this.$progress=this.$node.find(".n2-ss-item-audio-progress-container").on("mousedown",t.proxy(function(e){e.preventDefault(),e.stopPropagation(),this.updateUITime(e),t("body").on({"mousemove.volume":t.proxy(function(t){t.preventDefault(),t.stopPropagation(),this.updateUITime(t)},this),"mouseup.volume":t.proxy(function(e){e.preventDefault(),e.stopPropagation(),this.updateUITime(e),t("body").off(".volume")},this),"mouseleave.volume":t.proxy(function(){t("body").off(".volume")},this)})},this)),this.$playhead=this.$progress.find(".n2-ss-item-audio-progress-playhead"),this.$volume=this.$node.find(".n2-ss-item-audio-volume-container").on("mousedown",t.proxy(function(e){e.preventDefault(),e.stopPropagation(),this.updateUIVolume(e),t("body").on({"mousemove.volume":t.proxy(function(t){t.preventDefault(),t.stopPropagation(),this.updateUIVolume(t)},this),"mouseup.volume":t.proxy(function(e){e.preventDefault(),e.stopPropagation(),this.updateUIVolume(e),t("body").off(".volume")},this),"mouseleave.volume":t.proxy(function(){t("body").off(".volume")},this)})},this)),this.$volumehead=this.$volume.find(".n2-ss-item-audio-volumehead"),1==this.parameters.autoplay&&this.slider.visible(t.proxy(this.initAutoplay,this)),this.isStatic||(this.slider.sliderElement.on("mainAnimationStart",t.proxy(function(t,e,i,s,n){s!=this.slideIndex&&this.safePause()},this)),parseInt(this.parameters.reset)&&this.slider.sliderElement.on("mainAnimationComplete",t.proxy(function(t,e,i,s,n){s!=this.slideIndex&&this.audio.currentTime>0&&(this.audio.currentTime=0)},this))),this.loadDeferred.resolve()},i.prototype.updateTime=function(){this.$time.html(this.timeFormat(this.audio.currentTime)+" / "+this.timeFormat(this.audio.duration))},i.prototype.onPlay=function(){this.isPaused=!1,this.$node.attr("data-state","playing"),requestAnimationFrame(t.proxy(this.refreshCurrentTime,this)),this.isStatic||this.slider.sliderElement.trigger("mediaStarted",this.id),this.$layer.triggerHandler("n2play")},i.prototype.onPause=function(){this.isPaused=!0,this.$node.attr("data-state","paused"),this.$layer.triggerHandler("n2pause")},i.prototype.onEnded=function(){1==this.parameters.loop?(this.audio.currentTime=0,this.safePlay()):(this.isStatic||this.slider.sliderElement.trigger("mediaEnded",this.id),this.$layer.triggerHandler("n2stop"))},i.prototype.onTimeUpdate=function(){this.updateTime(),this.$playhead.css("width",this.audio.currentTime/this.audio.duration*100+"%")},i.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)},i.prototype.refreshCurrentTime=function(){this.$playhead.css("width",this.audio.currentTime/this.audio.duration*100+"%"),this.isPaused||requestAnimationFrame(t.proxy(this.refreshCurrentTime,this))},i.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()))},i.prototype.updateUIVolume=function(t){this.audio.volume=Math.max(0,Math.min(1,Math.round(t.pageX-this.$volume.offset().left)/this.$volume.width()))},i.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,s>0&&e.push(this.pad(s,2,0)),e.push(this.pad(i,2,0)),e.push(this.pad(t,2,0)),e.join(":")},i.prototype.pad=function(t,e,i){return i=i||"0",t+="",t.length>=e?t:new Array(e-t.length+1).join(i)+t},s.inst=null,s.get=function(){return null===s.inst&&(s.inst=new s),s.inst},s.prototype.createAudio=function(t){return new n(this,t)},s.prototype.ready=function(){this.play=this.afterReadyPlay,this.stop=this.afterReadyStop,this.preparedAudio!==e&&this.play(this.preparedAudio)},s.prototype.play=function(t){this.preparedAudio=t},s.prototype.stop=function(t){t===this.preparedAudio&&delete this.preparedAudio},s.prototype.afterReadyPlay=function(t){this.currentAudio=t,t.play()},s.prototype.afterReadyStop=function(t){this.currentAudio===t&&t.stop()},s.prototype.userInteractionCatcher=function(){t("body > *").one("click",t.proxy(function(){this.playNothing(),setTimeout(t.proxy(this.interactionResolver,this),30)},this))},s.prototype.playNothing=function(){var t=this.context.createBuffer(2,22050,44100),e=this.context.createBufferSource();e.buffer=t,e.connect(this.context.destination),e.start(0)},n.prototype.play=function(){return this.$node.trigger("play"),this.loadMusic(this.src).then(t.proxy(function(t){this.stop(),this.playing=1,this.source=this.playBuffer(t)},this))},n.prototype.stop=function(){1===this.playing&&this.source&&(this.source.stop(0),this.playing=0,this.$node.trigger("ended"))},n.prototype.playBuffer=function(e){var i=this.context.createBufferSource();return i.buffer=e,i.connect(this.context.destination),i.start(0),setTimeout(t.proxy(function(){this.$node.trigger("ended"),this.playing=0},this),1e3*e.duration),i},n.prototype.loadMusic=function(i){return this._load===e&&(this._load=new Promise(t.proxy(function(e,s){var n=new XMLHttpRequest;n.open("GET",i,!0),n.responseType="arraybuffer",n.onload=t.proxy(function(){this.context.decodeAudioData(n.response,t.proxy(function(t){e(t)}),function(t){s(t)})},this),n.send()},this))),this._load},i}),N2D("FrontendItemCaption",function(t,e){function i(e,i,s,n,r){this.startCSS=null,this.slider=e,this.mode=s,this.direction=n,this.scale=r,this.node=t("#"+i).on("mouseenter",t.proxy(this["in"],this)).on("mouseleave",t.proxy(this.out,this)),this.image=this.node.find("img"),this.content=this.node.find(".n2-ss-item-caption-content"),this["init"+s]()}return i.prototype.initSimple=function(){var e={height:"auto"};switch(this.direction){case"left":e.bottom=0,e.left="-100%",this.startCSS={left:"-100%"};break;case"right":e.bottom=0,e.right="-100%",this.startCSS={right:"-100%"};break;default:e.left=0,this.resizeSimple(),this.slider.sliderElement.on("SliderResize",t.proxy(this.resizeSimple,this)),this._out=this._outSimple}this.content.css(e)},i.prototype.resizeSimple=function(){var t={};t[this.direction]=-this.content.height(),this.content.css(t)},i.prototype._outSimple=function(){var t={};t[this.direction]=-this.content.height(),this.tweenContent(t)},i.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)},i.prototype.initFade=function(){this.content.css({opacity:0,left:0,top:0}),this._in=this._inFade,this._out=this._outFade},i.prototype._inFade=function(){this.tweenContent({opacity:1})},i.prototype._outFade=function(){this.tweenContent({opacity:0})},i.prototype["in"]=function(){this._in(),this.scale&&this.tweenImage({scale:1.2})},i.prototype._in=function(){var t={};t[this.direction]=0,this.tweenContent(t)},i.prototype.out=function(){this._out(),this.scale&&this.tweenImage({scale:1})},i.prototype._out=function(){this.tweenContent(this.startCSS)},i.prototype.tweenContent=function(t){NextendTween.to(this.content,.5,t)},i.prototype.tweenImage=function(t){NextendTween.to(this.image,.5,t)},i}),N2D("FrontendItemCounter",function(t,e){function i(e,i,s){this.slider=e,this.data=s,this.currentPercent=0,this.node=t(i).data("counter",this),this.$layer=this.node.closest(".n2-ss-layer"),this.start()}return i.prototype.start=function(){this.slider.started(t.proxy(this.started,this))},i.prototype.started=function(){this.delay=(+this.data.delay||0)/1e3,this.data.displayMode&&(this.$display=this.node.find(this.data.display)),this.$countingDiv=this.node.find(this.data.counting),this.$layer.on("collectRelatedAnimations.counter",t.proxy(this.collectRelatedAnimations,this)),this.timeline=new NextendTimeline({paused:1});var e={percent:this.data.fromPercent};this.currentPercent=this.data.fromPercent,this.timeline.to(e,this.data.duration/1e3,this._animateData(e,this.data.toPercent))},i.prototype.collectRelatedAnimations=function(t,e){e["in"].push(new N2Classes.AnimationsRelated(this,"extendTimeline","refresh"))},i.prototype.extendTimeline=function(t,e,i,s){t.add(this.timeline,e+this.delay),this.timeline.paused(!1)},i.prototype.refresh=function(t,e){this.timeline.progress(.9999).pause(0,!1)},i.prototype._animateData=function(e,i,s){return s=s||"easeOutExpo",{percent:i,ease:s,onUpdate:t.proxy(function(){switch(this.currentPercent=e.percent,this.data.displayMode){case"circle":this.$display.attr("stroke-dashoffset",(1-e.percent)*this.data.c);break;case"width":this.$display.css("width",100*e.percent+"%")}this.$countingDiv.html(this.data.pre+(this.data.min+e.percent*(this.data.total-this.data.min)).toFixed(0)+this.data.post)},this)}},i}),N2D("FrontendItemHighlightedHeading",function(t,e){function i(e,i){i.disableLayerAnimations||(this.slider=i,this.$el=t(e),this.$layer=this.$el.closest(".n2-ss-layer"),this.$el.siblings(".n2-ss-highlighted-heading-before,.n2-ss-highlighted-heading-after").each(function(){for(var e=t(this),i=e.html().split(" "),s=e.attr("class"),n=[],r=0;r<i.length;r++)n.push('<div class="'+s+'">'+i[r]+"</div>");e.replaceWith(n.join(" "))}),this.start())}return i.prototype.start=function(){this.slider.started(t.proxy(this.started,this))},i.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 e=+this.$el.data("loop-delay");isFinite(e)||(e=2e3),this.loopDelay=e/1e3,this.$paths=this.$el.find("path"),this.$layer.on("collectRelatedAnimations.highlightedHeading",t.proxy(this.collectRelatedAnimations,this)),this.timeline=new NextendTimeline({paused:1});for(var i=0;i<this.$paths.length;i++)this.animatePath(this.$paths[i],.6*this.duration*i);this.loop&&this.loopDelay>=0&&(this.timeline.to(this.$paths,.4,{opacity:0},"+="+this.loopDelay),this.timeline.set({},{},"+=0.4")),this.timeline.delay(this.delay)},i.prototype.collectRelatedAnimations=function(t,e,i,s){1===this.loop?e.loop.push(new N2Classes.AnimationsLoopTimeline(this,0)):e["in"].push(new N2Classes.AnimationsRelated(this,"extendTimeline","refresh"))},i.prototype.extendTimeline=function(t,e,i,s){t.add(this.timeline,e),this.timeline.paused(!1)},i.prototype.refresh=function(t,e){this.timeline.progress(.9999).pause(0,!1)},i.prototype.getLoopTimeline=function(){return this.timeline},i.prototype.animatePath=function(t,e){var i=Math.round(1.01*(t.getTotalLength()||2e3));this.timeline.fromTo(t,.1,{opacity:0},{opacity:1},e),this.timeline.fromTo(t,this.duration,{"stroke-dasharray":"0 "+i},{"stroke-dasharray":i+" "+i},e)},i}),N2D("FrontendItemHeadingSplitText",function(t,e){function i(e,i,s,n,r,o,a,l){if((r||a)&&!e.disableLayerAnimations){this.node=t("#"+i),this.slider=e,this.splitText=!1;var h=this.node.find("a");h.length&&(this.node=h),this.$layer=this.node.closest(".n2-ss-layer"),this.start(s,n,r,o,a,l)}}var s={opacity:1,x:0,y:0,rotationX:0,rotationY:0,rotationZ:0,scale:1};return i.prototype.start=function(e,i,s,n,r,o){this.slider.started(t.proxy(this.started,this,e,i,s,n,r,o))},i.prototype.started=function(e,i,n,r,o,a){var l={chars:0,words:0,lines:0};n?(this.splitTextIn=this.optimize(n.data,r),l[this.splitTextIn.mode]=1):this.splitTextIn=!1,o?(this.splitTextOut=this.optimize(o.data,a),l[this.splitTextOut.mode]=1):this.splitTextOut=!1,this.modes=[];for(var h in l)l[h]&&this.modes.push(h);if(l.chars&&!l.words&&this.modes.push("words"),"words,chars"===l&&(l="chars"),this.$layer.on("refreshTimeline.splitText",t.proxy(this.refreshTimeline,this)),this.splitText=new NextendSplitText(this.node,{type:this.modes.join(",")}),this.splitTextIn){this.timelineIn=new NextendTimeline({paused:1});var d=this.splitTextIn,p={ease:d.ease};this._animate(this.timelineIn,d.mode,d.sort,d.duration,t.extend(!0,{},d.from),t.extend(!0,p,s),d.stagger)}else this.timelineIn=!1;if(this.splitTextOut){this.timelineOut=new NextendTimeline({paused:1});var d=this.splitTextOut,p={ease:d.ease};this.splitTextIn&&(p.immediateRender=!1),this._animate(this.timelineOut,d.mode,d.sort,d.duration,t.extend(!0,{},s),t.extend(!0,p,d.from),-d.stagger)}else this.timelineOut=!1;(this.timelineIn||this.timelineOut)&&this.$layer.on("collectRelatedAnimations.splitText",t.proxy(this.collectRelatedAnimations,this)),NextendTween.set(this.$layer,{perspective:1e3}),this.node.css("text-rendering","auto");for(var h in l)l[h]&&NextendTween.set(this.splitText[h],{transformOrigin:e,backfaceVisibility:i})},i.prototype.collectRelatedAnimations=function(t,e){this.timelineIn&&e["in"].push(new N2Classes.AnimationsRelated(this,"extendTimelineIn","refreshIn")),this.timelineOut&&e.out.push(new N2Classes.AnimationsRelated(this,"extendTimelineOut","refreshOut"))},i.prototype.extendTimelineIn=function(t,e,i,s){t.add(this.timelineIn,e+this.splitTextIn.delay),this.timelineIn.paused(!1)},i.prototype.refreshIn=function(t,e){this.timelineIn.progress(.9999).pause(0,!1)},i.prototype.extendTimelineOut=function(t,e,i,s){t.add(this.timelineOut,e+this.splitTextOut.delay),this.timelineOut.paused(!1)},i.prototype.refreshOut=function(t,e){this.timelineOut.progress(.9999).pause(0,!1)},i.prototype._animate=function(e,i,s,n,r,o,a){var l=t.extend([],this.splitText[i]),h=null;switch(s){case"reversed":l.reverse();break;case"random":var d=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};d(l);break;case"side":case"center":var p=[];for(h=[];l.length>1;)p.push(l.shift()),h.push(l.pop());1===l.length&&p.push(l.shift()),l=p,"center"===s&&(l.reverse(),h.reverse());break;case"sideShifted":case"centerShifted":for(var p=[];l.length>1;)p.push(l.shift()),p.push(l.pop());1===l.length&&p.push(l.shift()),l=p,"centerShifted"===s&&l.reverse()}e.staggerFromTo(l,n,r,o,a),h&&h.length&&e.staggerFromTo(h,n,r,o,a)},i.prototype.optimize=function(t,e){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},i}),N2D("FrontendItemTransition",function(t,e){function i(e,i,s){this.slider=e,n2const.isIE&&(s="Fade"),this.animation=s,this.node=t("#"+i).on("mouseenter",t.proxy(this["in"+s],this)).on("mouseleave",t.proxy(this["out"+s],this)),this.images=this.node.find("img"),this.inner=this.node.find(".n2-ss-item-transition-inner"),this["init"+s]()}return i.prototype.initFade=function(){this.images.eq(1).css("opacity",0)},i.prototype.inFade=function(){NextendTween.to(this.images.eq(1),.5,{opacity:1}),NextendTween.to(this.images.eq(0),.5,{opacity:0})},i.prototype.outFade=function(){NextendTween.to(this.images.eq(1),.5,{opacity:0}),NextendTween.to(this.images.eq(0),.5,{opacity:1})},i.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"})},i.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"})},i.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"})},i.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"})},i.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"})},i.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"})},i}),N2D("FrontendItemVideo",function(t,e){function i(e,i,n){this.state={scroll:!1,slide:!1,play:!1,continuePlay:!1},this.counter=s++,this.slider=e,this.playerId=i,this.playerElement=t("#"+this.playerId),this.videoPlayer=this.playerElement.get(0),this.parameters=t.extend({autoplay:0,loop:0,center:0,reset:0},n),this.slide=e.findSlideByElement(this.videoPlayer);var r=this.playerElement.data("volume");0===r?(this.videoPlayer.volume=1,this.videoPlayer.muted=!0):(this.videoPlayer.volume=r,this.videoPlayer.muted=!1),this.slider.sliderElement.on("BeforeVisible",t.proxy(function(){this.videoPlayer.videoWidth>0?this.initVideoPlayer():this.videoPlayer.addEventListener("loadedmetadata",t.proxy(this.initVideoPlayer,this))},this))}var s=1;return i.prototype.initVideoPlayer=function(){1===parseInt(this.parameters.center)&&(this.onResize(),this.slider.sliderElement.on("SliderResize",t.proxy(this.onResize,this)));var e=this.playerElement.parent();this.isStatic=e.closest(".n2-ss-static-slide").length,this.playerElement.on("playing",t.proxy(function(){this.isStatic||this.slider.sliderElement.trigger("mediaStarted",this.playerId),e.triggerHandler("n2play")},this)).on("ended",t.proxy(function(){1===parseInt(this.parameters.loop)?(this.videoPlayer.currentTime=0,this.safePlay()):(this.isStatic||this.slider.sliderElement.trigger("mediaEnded",this.playerId),e.triggerHandler("n2stop"),this.setState("play",!1))},this)),this.playerElement.on("pause",t.proxy(function(){e.triggerHandler("n2pause"),this.state.continuePlay?(this.setState("continuePlay",!1),this.setState("play",!0)):this.setState("play",!1)},this)),(this.isStatic||-1!==t.inArray(this.slide,this.slider.getVisibleSlides(this.slider.currentSlide)))&&this.setState("slide",!0,!0),1===parseInt(this.parameters.autoplay)&&this.slider.visible(t.proxy(this.initAutoplay,this)),this.isStatic||(this.slider.sliderElement.on("mainAnimationStart",t.proxy(function(e,i,s,n,r){-1===t.inArray(this.slide,this.slider.getVisibleSlides(this.slider.slides[n]))?this.setState("slide",!1,!0):this.setState("slide",!0,!0)},this)),parseInt(this.parameters.reset)&&this.slider.sliderElement.on("mainAnimationComplete",t.proxy(function(e,i,s,n,r){this.videoPlayer.currentTime>0&&-1===t.inArray(this.slide,this.slider.getVisibleSlides(this.slider.slides[n]))&&(this.videoPlayer.currentTime=0)},this))),""!==this.parameters["scroll-pause"]?N2Classes.ScrollTracker.add(this.playerElement,this.parameters["scroll-pause"],t.proxy(function(){this.setState("scroll",!0,!0)},this),t.proxy(function(){this.setState("continuePlay",!0),this.setState("scroll",!1,!0)},this)):this.setState("scroll",!0,!0)},i.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,e/i>s?(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)},i.prototype.initAutoplay=function(){this.isStatic?(this.setState("play",!0),this.setState("slide",!0,!0)):(this.slider.sliderElement.on("mainAnimationComplete",t.proxy(function(e,i,s,n,r){t.inArray(this.slide,this.slider.getVisibleSlides(this.slider.slides[n]))>=0&&this.playerElement.is(":visible")?(this.setState("play",!0),setTimeout(t.proxy(function(){this.setState("slide",!0,!0)},this),100)):this.setState("slide",!1,!0)},this)),t.inArray(this.slide,this.slider.getVisibleSlides())>=0&&(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.play&&this.state.slide&&this.state.scroll?this.safePlay():this.safePause())},i.prototype.safePlay=function(){this.safeCallback(t.proxy(function(){this.promise=this.videoPlayer.play(),this.promise&&Promise!==e&&this.promise["catch"](t.proxy(function(e){if(e.message.match("interact")){var i=".ssLayerVideo"+this.counter;t("body").off(i).one("click"+i+" touchend"+i,t.proxy(function(){t("body").off(i),this.promise!==!1&&this.safePlay()},this))}},this))},this))},i.prototype.safePause=function(){this.safeCallback(t.proxy(function(){this.videoPlayer.pause(),this.promise=!1},this))},i.prototype.safeCallback=function(t){this.promise&&Promise!==e?this.promise.then(t)["catch"](t):t()},i}),N2D("FrontendItemVimeo",function(t,e){function i(e,i,s,n,r,o){this.state={scroll:!1,slide:!1,play:!1,continuePlay:!1},this.readyDeferred=t.Deferred(),this.slider=e,this.playerId=i,this.$playerElement=t("#"+this.playerId),this.$cover=this.$playerElement.find(".n2-ss-layer-player-cover"),this.start=o,this.parameters=t.extend({vimeourl:"//vimeo.com/144598279",autoplay:"0",reset:"0",title:"1",byline:"1",portrait:"0",loop:"0",color:"00adef",volume:"-1"},n),navigator.userAgent.toLowerCase().indexOf("android")>-1&&(this.parameters.autoplay=0),1===parseInt(this.parameters.autoplay)||!r||n2const.isMobile?this.ready(t.proxy(this.initVimeoPlayer,this)):this.ready(t.proxy(function(){this.$playerElement.on("click.vimeo n2click.vimeo",t.proxy(function(t){this.$playerElement.off(".vimeo"),t.preventDefault(),t.stopPropagation(),this.initVimeoPlayer(),this.safePlay()},this))},this))}return i.vimeoDeferred=null,i.prototype.ready=function(e){null===i.vimeoDeferred&&(i.vimeoDeferred=t.getScript("https://player.vimeo.com/api/player.js")),i.vimeoDeferred.done(e)},i.prototype.initVimeoPlayer=function(){var e=t('<iframe 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)+'" style="position: absolute; top:0; left: 0; width: 100%; height: 100%;" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>');this.$playerElement.prepend(e),this.isStatic=e.closest(".n2-ss-static-slide").length,this.player=new Vimeo.Player(e[0],{autoplay:!0}),this.promise=this.player.ready(),this.promise.then(t.proxy(this.onReady,this))},i.prototype.onReady=function(){var e=parseFloat(this.parameters.volume);e>=0&&this.setVolume(e),this.slide=this.slider.findSlideByElement(this.$playerElement);var i=this.$playerElement.closest(".n2-ss-layer");this.$cover.length&&(n2const.isMobile&&this.$cover.css("pointer-events","none"),i.one("n2play",t.proxy(function(){NextendTween.to(this.$cover,.3,{opacity:0,onComplete:t.proxy(function(){this.$cover.remove()},this)})},this))),this.player.on("play",t.proxy(function(){this.isStatic||this.slider.sliderElement.trigger("mediaStarted",this.playerId),i.triggerHandler("n2play")},this)),this.player.on("pause",t.proxy(function(){i.triggerHandler("n2pause"),this.state.continuePlay?(this.setState("continuePlay",!1),this.setState("play",!0)):this.setState("play",!1)},this)),this.player.on("ended",t.proxy(function(){this.isStatic||this.slider.sliderElement.trigger("mediaEnded",this.playerId),i.triggerHandler("n2stop"),this.setState("play",!1)},this)),this.isStatic||this.slider.sliderElement.on("mainAnimationStart",t.proxy(function(e,i,s,n,r){-1==t.inArray(this.slide,this.slider.getVisibleSlides(this.slider.slides[n]))?(parseInt(this.parameters.reset)&&this.reset(),this.setState("slide",!1,!0)):this.setState("slide",!0,!0)},this)),""!==this.parameters["scroll-pause"]?N2Classes.ScrollTracker.add(this.$playerElement,this.parameters["scroll-pause"],t.proxy(function(){this.setState("scroll",!0,!0)},this),t.proxy(function(){this.setState("continuePlay",!0),this.setState("scroll",!1,!0)},this)):this.setState("scroll",!0,!0),(this.isStatic||-1!==t.inArray(this.slide,this.slider.getVisibleSlides(this.slider.currentSlide)))&&this.setState("slide",!0,!0),1===parseInt(this.parameters.autoplay)&&this.slider.visible(t.proxy(this.initAutoplay,this)),this.readyDeferred.resolve()},i.prototype.initAutoplay=function(){this.isStatic?(this.setState("play",!0),this.setState("slide",!0,!0)):(this.slider.sliderElement.on("mainAnimationComplete",t.proxy(function(e,i,s,n,r){t.inArray(this.slide,this.slider.getVisibleSlides(this.slider.slides[n]))>=0?(this.setState("play",!0),this.setState("slide",!0,!0)):this.setState("slide",!1,!0)},this)),t.inArray(this.slide,this.slider.getVisibleSlides())>=0&&(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.play&&this.state.slide&&this.state.scroll?this.play():this.pause())},i.prototype.play=function(){this.slider.sliderElement.trigger("mediaStarted",this.playerId),0!=this.start&&this.safeSetCurrentTime(this.start),this.safePlay(),this.player.getCurrentTime().then(t.proxy(function(t){t<this.start&&0!=this.start&&this.safeSetCurrentTime(this.start),this.safePlay()},this))["catch"](t.proxy(function(t){this.safePlay()},this))},i.prototype.pause=function(){this.safePause()},i.prototype.reset=function(){this.safeSetCurrentTime(this.start)},i.prototype.setVolume=function(e){this.safeCallback(t.proxy(function(){this.promise=this.player.setVolume(e)},this))},i.prototype.safeSetCurrentTime=function(e){this.safeCallback(t.proxy(function(){this.promise=this.player.setCurrentTime(e)},this))},i.prototype.safePlay=function(){this.safeCallback(t.proxy(function(){this.promise=this.player.getPaused(),this.safeCallback(t.proxy(function(t){t&&(this.promise=this.player.play())},this))},this))},i.prototype.safePause=function(){this.safeCallback(t.proxy(function(){this.promise=this.player.getPaused(),this.safeCallback(t.proxy(function(t){t||(this.promise=this.player.pause())},this))},this))},i.prototype.safeCallback=function(t){this.promise&&Promise!==e?this.promise.then(t)["catch"](t):t()},i}),N2D("FrontendItemYouTube",function(t,e){function i(e,i,s,n){this.state={scroll:!1,slide:!1,play:!1,continuePlay:!1},this.readyDeferred=t.Deferred(),this.slider=e,this.playerId=i,this.$playerElement=t("#"+this.playerId),this.$cover=this.$playerElement.find(".n2-ss-layer-player-cover"),this.parameters=t.extend({youtubeurl:"//www.youtube.com/watch?v=MKmIwHAFjSU",youtubecode:"MKmIwHAFjSU",center:0,autoplay:"1",theme:"dark",related:"1",vq:"default",volume:"-1",loop:0,showinfo:1,modestbranding:1,reset:0,query:[],playsinline:0},s),1===parseInt(this.parameters.autoplay)||!n||n2const.isMobile?this.ready(t.proxy(this.initYoutubePlayer,this)):this.$playerElement.on("click.youtube n2click.youtube",t.proxy(function(e){this.$playerElement.off(".youtube"),e.preventDefault(),e.stopPropagation(),this.ready(t.proxy(function(){this.readyDeferred.done(t.proxy(function(){this.play()},this)),this.initYoutubePlayer()},this))},this))}return i.YTDeferred=null,i.prototype.ready=function(s){null===i.YTDeferred&&(i.YTDeferred=t.Deferred(),window.YT===e&&t.getScript("https://www.youtube.com/iframe_api"),function(t){var i=function(){window.YT!==e&&window.YT.loaded?t.resolve():setTimeout(i,100)};i()}(i.YTDeferred)),i.YTDeferred.done(s)},i.prototype.initYoutubePlayer=function(){var e=this.$playerElement.closest(".n2-ss-layer");this.$cover.length&&(n2const.isMobile&&this.$cover.css("pointer-events","none"),e.one("n2play",t.proxy(function(){NextendTween.to(this.$cover,.3,{opacity:0,onComplete:t.proxy(function(){this.$cover.remove()},this)})},this))),this.isStatic=this.$playerElement.closest(".n2-ss-static-slide").length;var i={enablejsapi:1,origin:window.location.protocol+"//"+window.location.host,theme:this.parameters.theme,wmode:"opaque",rel:this.parameters.related,vq:this.parameters.vq,start:this.parameters.start,showinfo:this.parameters.showinfo,modestbranding:this.parameters.modestbranding,playsinline:this.parameters.playsinline};if(1===parseInt(this.parameters.autoplay))if(navigator.userAgent.toLowerCase().indexOf("android")>-1)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,i.playsinline=1)}catch(s){}}n2const.isIOS&&this.parameters.controls&&(i.use_native_controls=1),1==this.parameters.center&&(i.controls=0,i.showinfo=0),1!=this.parameters.controls&&(i.autohide=1,i.controls=0),+(navigator.platform.toUpperCase().indexOf("MAC")>=0&&navigator.userAgent.search("Firefox")>-1)&&(i.html5=1);for(var n in this.parameters.query)this.parameters.query.hasOwnProperty(n)&&(i[n]=this.parameters.query[n]);var r={videoId:this.parameters.youtubecode,wmode:"opaque",playerVars:i,events:{onReady:t.proxy(this.onReady,this),onStateChange:t.proxy(function(t){switch(t.data){case YT.PlayerState.PLAYING:this.isStatic||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(0),this.player.playVideo()):(this.isStatic||this.slider.sliderElement.trigger("mediaEnded",this.playerId),e.triggerHandler("n2stop"),this.setState("play",!1))}},this)}};this.parameters["privacy-enhanced"]&&(r.host="https://www.youtube-nocookie.com"),this.player=new YT.Player(this.playerId+"-frame",r),this.slide=this.slider.findSlideByElement(this.$playerElement),1==this.parameters.center&&(this.$playerElement.parent().css("overflow","hidden"),this.onResize(),this.slider.sliderElement.on("SliderResize",t.proxy(this.onResize,this)))},i.prototype.onReady=function(){var e=parseFloat(this.parameters.volume);e>0?this.setVolume(e):-1!==e&&this.player.mute(),(this.isStatic||-1!==t.inArray(this.slide,this.slider.getVisibleSlides(this.slider.currentSlide)))&&this.setState("slide",!0,!0),1==this.parameters.autoplay&&this.slider.visible(t.proxy(this.initAutoplay,this)),this.isStatic||(this.slider.sliderElement.on("mainAnimationStart",t.proxy(function(e,i,s,n){-1==t.inArray(this.slide,this.slider.getVisibleSlides(this.slider.slides[n]))?this.setState("slide",!1,!0):this.setState("slide",!0,!0)},this)),parseInt(this.parameters.reset)&&this.slider.sliderElement.on("mainAnimationComplete",t.proxy(function(e,i,s,n){-1==t.inArray(this.slide,this.slider.getVisibleSlides(this.slider.slides[n]))&&this.player.seekTo(0)},this))),this.readyDeferred.resolve(),""!==this.parameters["scroll-pause"]?N2Classes.ScrollTracker.add(this.$playerElement,this.parameters["scroll-pause"],t.proxy(function(){this.setState("scroll",!0,!0)},this),t.proxy(function(){this.setState("continuePlay",!0),this.setState("scroll",!1,!0)},this)):this.setState("scroll",!0,!0)},i.prototype.onResize=function(){var t=100,e=this.$playerElement.parent(),i=e.width(),s=e.height()+t,n=16/9,r={width:i,height:s,marginTop:0};r[n2const.rtl.marginLeft]=0,i/s>n?(r.height=i*n,r.marginTop=(s-r.height)/2):(r.width=s*n,r[n2const.rtl.marginLeft]=(i-r.width)/2),this.$playerElement.css(r)},i.prototype.initAutoplay=function(){this.isStatic?(this.setState("play",!0),this.setState("slide",!0,!0)):(this.slider.sliderElement.on("mainAnimationComplete",t.proxy(function(e,i,s,n){t.inArray(this.slide,this.slider.getVisibleSlides(this.slider.slides[n]))>=0?(this.setState("play",!0),this.setState("slide",!0,!0)):this.setState("slide",!1,!0)},this)),t.inArray(this.slide,this.slider.getVisibleSlides())>=0&&(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.play&&this.state.slide&&this.state.scroll?this.play():this.pause())},i.prototype.play=function(){this.isStopped()&&(this.slider.sliderElement.trigger("mediaStarted",this.playerId),this.player.playVideo())},i.prototype.pause=function(){this.isStopped()||this.player.pauseVideo()},i.prototype.stop=function(){this.player.stopVideo()},i.prototype.isStopped=function(){var t=this.player.getPlayerState();switch(t){case-1:case 0:case 2:case 5:return!0;default:return!1}},i.prototype.setVolume=function(t){this.player.setVolume(100*t)},i}),N2D("smartslider-frontend");(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("litebox",function(t,e){function o(){return null!=navigator.userAgent.match(/iPhone/i)||null!=navigator.userAgent.match(/iPod/i)}function i(){return null!=navigator.userAgent.match(/iPad/i)&&!o()}function n(e,o){this.timeout=!1,this.clickTimeout=!1,this.element=e,this.$element=t(this.element),this.options=t.extend({},s,o),this._defaults=s,this._name=a,this.init()}function l(e){t(e).each(function(){var e=new Image;e.src=this,e.width>0&&t("<img />").attr("src",this).addClass("litebox-preload").appendTo("body").hide()})}var a="liteBox",s={revealSpeed:400,background:"rgba(0,0,0,.8)",overlayClose:!0,escKey:!0,navKey:!0,closeTip:"tip-l-fade",closeTipText:"Close",prevTip:"tip-t-fade",prevTipText:"Previous",nextTip:"tip-t-fade",nextTipText:"Next",autoplay:!1,callbackInit:function(){},callbackBeforeOpen:function(){},callbackAfterOpen:function(){},callbackBeforeClose:function(){},callbackAfterClose:function(){},callbackError:function(){},callbackPrev:function(){},callbackNext:function(){},errorMessage:"Error loading content."};n.prototype={init:function(){var t=this;this.$element.on("click n2click",function(e){nextend.shouldPreventClick||t.clickTimeout===!1&&(e.preventDefault(),t.openLitebox(),t.clickTimeout=setTimeout(function(){t.clickTimeout=!1},300))}),this.options.callbackInit.call(this)},openLitebox:function(){var e=this;this.options.callbackBeforeOpen.call(this),e.buildLitebox();var n=this.$element;if(e.populateLitebox(n),e.options.overlayClose&&$litebox.on("click",function(o){e.clickTimeout===!1&&(o.target===this||t(o.target).hasClass("litebox-container")||t(o.target).hasClass("litebox-error"))&&e.closeLitebox()}),$close.on("click",function(){e.clickTimeout===!1&&e.closeLitebox()}),this.$element.attr("data-litebox-group")){var e=this,a=this.$element.attr("data-litebox-group"),s=t('[data-litebox-group="'+this.$element.attr("data-litebox-group")+'"]'),r=[];t('[data-litebox-group="'+a+'"]').each(function(){var e=t(this).attr("href")||t(this).data("href");r.push(e)}),l(r),t(".litebox-nav").show(),$prevNav.off("click").on("click",function(){e.options.callbackPrev.call(this);var o=s.index(n);n=s.eq(o-1),t(n).length||(n=s.last()),e.populateLitebox(n)}),$nextNav.off("click").on("click",function(){e.options.callbackNext.call(this);var o=s.index(n);n=s.eq(o+1),t(n).length||(n=s.first()),e.populateLitebox(n),e.startAutoplay()})}var c=27,p=37,d=39;t("body").on("keydown.litebox",function(o){e.options.escKey&&o.keyCode==c&&(o.stopImmediatePropagation(),e.closeLitebox()),e.options.navKey&&o.keyCode==p&&(o.stopImmediatePropagation(),t(".litebox-prev").trigger("click")),e.options.navKey&&o.keyCode==d&&(o.stopImmediatePropagation(),t(".litebox-next").trigger("click"))}),this.startAutoplay(),this.options.callbackAfterOpen.call(this),(i()||o())&&t(".litebox-container").addClass("litebox-iframe-holder")},startAutoplay:function(){if(this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.options.autoplay){this.timeout=setTimeout(function(){t(".litebox-next").trigger("click")},this.options.autoplay)}},buildLitebox:function(){$litebox=t("<div>",{"class":"litebox-overlay"}),$close=t("<div>",{"class":"litebox-close "+this.options.closeTip,"data-tooltip":this.options.closeTipText}),$text=t("<div>",{"class":"litebox-text"}),$error=t('<div class="litebox-error"><span>'+this.options.errorMessage+"</span></div>"),$prevNav=t("<div>",{"class":"litebox-nav litebox-prev "+this.options.prevTip,"data-tooltip":this.options.prevTipText}),$nextNav=t("<div>",{"class":"litebox-nav litebox-next "+this.options.nextTip,"data-tooltip":this.options.nextTipText}),$container=t("<div>",{"class":"litebox-container"}),$loader=t("<div>",{"class":"litebox-loader"}),t(document.fullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.body).prepend($litebox.css({"background-color":this.options.background})),$litebox.append($close,$text,$prevNav,$nextNav,$container),$litebox.css("display","flex").animate({opacity:1},this.options.revealSpeed)},populateLitebox:function(e){var o=this,i=e.attr("href")||e.data("href"),n=t(".litebox-content");this.options.autoplay=e.data("autoplay")||this.options.autoplay,$litebox.append($loader);var l=e.data("title");if("undefined"==typeof l||""==l)t(".litebox-text").removeClass("active"),t(".litebox-text").html();else{l="<b>"+l+"</b>";var a=e.data("description");"undefined"!=typeof a&&""!=a&&(l+=" - "+a),t(".litebox-text").html(l),t(".litebox-text").addClass("active")}if(null!==i.match(/\.(jpeg|jpg|gif|png|bmp)/i)){var s=t("<img>",{src:i,"class":"litebox-content"});o.transitionContent("image",n,s),t("img.litebox-content").n2imagesLoaded(function(){$loader.remove()}),s.on("error",function(){o.liteboxError(),$loader.remove()})}else if(videoURL=i.match(/(youtube|youtu|vimeo|dailymotion|kickstarter)\.(com|be)\/((watch\?v=([-\w]+))|(video\/([-\w]+))|(projects\/([-\w]+)\/([-\w]+))|([-\w]+))/)){if(n2const.lightboxMobileNewTab&&n2const.isMobile){var r=window.open(i,"_blank");if(r)return r.focus(),$loader.remove(),void this.closeLitebox()}var c="";if("youtube"==videoURL[1]&&(c="https://www.youtube.com/embed/"+videoURL[5]+"?fs=1&amp;wmode=opaque&amp;autoplay=1;rel=0"),"youtu"==videoURL[1]&&(c="https://www.youtube.com/embed/"+videoURL[3]+"?fs=1&amp;wmode=opaque&amp;autoplay=1;rel=0"),"vimeo"==videoURL[1]&&(c="https://player.vimeo.com/video/"+videoURL[3]+"?autoplay=1"),"dailymotion"==videoURL[1]&&(c="https://www.dailymotion.com/embed/video/"+videoURL[7]),"kickstarter"==videoURL[1]&&(c="https://www.kickstarter.com/projects/"+videoURL[9]+"/"+videoURL[10]+"/widget/video.html"),c){var p=t("<iframe>",{frameborder:"0",vspace:"0",hspace:"0",scrolling:"no",allowfullscreen:"","class":"litebox-content",style:"background: #000",seamless:"seamless",sandbox:"allow-forms allow-popups allow-scripts allow-same-origin"});o.transitionContent("embed",n,p),p.attr("src",c),p.on("load",function(){$loader.remove()})}}else if("#"==i.substring(0,1))t(i).length?($html=t("<div>",{"class":"litebox-content litebox-inline-html"}),$html.append(t(i).clone()),o.transitionContent("inline",n,$html)):o.liteboxError(),$loader.remove();else{var d=i.split(".").pop();if("mp4"===d){var p=t("<video autoplay controls />",{src:i,"class":"litebox-content"}).append('<source src="'+i+'" type="video/mp4">');o.transitionContent("video",n,p),$loader.remove()}else{var p=t("<iframe>",{src:i,frameborder:"0",vspace:"0",hspace:"0",scrolling:n2const.isIOS?"no":"auto","class":"litebox-content",allowfullscreen:""});i.match(/\.pdf/)||p.attr("sandbox","allow-modals allow-forms allow-popups allow-scripts allow-same-origin allow-presentation"),o.transitionContent("iframe",n,p),p.on("load",function(){$loader.remove(),n2const.isIOS&&(p.css({position:"relative"}),setTimeout(function(){p.css({position:"absolute"})},200))})}}},transitionContent:function(e,o,i){var n=this;"inline"!=e&&$container.removeClass("litebox-scroll"),o.remove(),$container.append(i),"inline"==e&&$container.addClass("litebox-scroll"),n.centerContent(),t(window).on("resize",function(){n.centerContent()})},centerContent:function(){"undefined"!=typeof $html&&t(".litebox-inline-html").outerHeight()<$container.height()&&t(".litebox-inline-html").css({"margin-top":"-"+t(".litebox-inline-html").outerHeight()/2+"px",top:"50%"})},closeLitebox:function(){this.options.callbackBeforeClose.call(this),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),$litebox.fadeOut(this.options.revealSpeed,function(){t(".litebox-nav").hide(),$litebox.empty().remove(),t(".litebox-preload").remove()}),t(".tipsy").fadeOut(this.options.revealSpeed,function(){t(this).remove()}),t(".litebox-prev").off("click"),t(".litebox-next").off("click"),t("body").off(".litebox"),this.options.callbackAfterClose.call(this)},liteboxError:function(){this.options.callbackError.call(this),$container.append($error)}},t.fn[a]=function(e){return this.each(function(){t.data(this,a)||t.data(this,a,new n(this,e))})},N2R(["litebox","windowLoad"],t.proxy(function(){window.n2Lightbox=function(e){e.find("a[n2-lightbox-urls], div[n2-lightbox-urls]").css("cursor","zoom-in").each(function(){for(var e=t(this),o=e.data("litebox-group"),i=e.attr("n2-lightbox-urls").split(","),n=e.attr("n2-lightbox-titles").split("|||"),l=0;l<i.length;l++)if(""!==i[l]){var a=t('<a href="'+i[l]+'" data-litebox-group="'+o+'" style="display:none;"></a>').appendTo("body");n[l]&&a.data("title",n[l])}}),e.find("a[n2-lightbox], div[n2-lightbox]").css("cursor","zoom-in").liteBox({callbackBeforeOpen:function(t){this.$element.trigger("mediaStarted",this)},callbackAfterClose:function(){this.$element.trigger("mediaEnded",this)}})},n2Lightbox(t("body")),t(window).on("n2Rocket",function(t,e){n2Lightbox(e)})},this))}),N2D("nextend-litebox");(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(e,t){function i(t,i){switch(this.postBackgroundAnimation=!1,this._currentBackgroundAnimation=!1,this.reverseSlideIndex=null,i=e.extend({delay:0,parallax:0,type:"horizontal",shiftedBackgroundAnimation:"auto"},i),i.delay/=1e3,N2Classes.SmartSliderMainAnimationAbstract.prototype.constructor.apply(this,arguments),!t.isAdmin&&this.slider.parameters.postBackgroundAnimations&&(this.isReverseAllowed=!1,this.postBackgroundAnimation=new N2Classes.SmartSliderPostBackgroundAnimation(t,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":0===this.parameters.parallax?this.animation=this._mainAnimationVertical:this.animation=this._mainAnimationVerticalParallax;break;case"vertical-reversed":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),i.prototype.constructor=i,i.prototype.setToStarterSlide=function(e){this.setActiveSlide(e)},i.prototype.changeTo=function(e,t,i,n){this.postBackgroundAnimation&&this.postBackgroundAnimation.prepareToSwitchSlide(e,t),N2Classes.SmartSliderMainAnimationAbstract.prototype.changeTo.apply(this,arguments)},i.prototype.setActiveSlide=function(e){for(var t=0;t<this.slider.slides.length;t++)this.slider.slides[t]!==e&&this._hideSlide(this.slider.slides[t])},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}),e.background&&NextendTween.set(e.background.element,{x:0})},i.prototype.cleanSlideIndex=function(e){this._hideSlide(this.slider.slides[e])},i.prototype.revertTo=function(e,t){this.slider.slides[t].$element.css("zIndex",""),this._hideSlide(this.slider.slides[t]),N2Classes.SmartSliderMainAnimationAbstract.prototype.revertTo.apply(this,arguments)},i.prototype._initAnimation=function(e,t,i){this.animation(e,t,i)},i.prototype.onBackwardChangeToComplete=function(e,t,i){this.reverseSlideIndex=null,this.onChangeToComplete(e,t,i)},i.prototype.onChangeToComplete=function(e,t,i){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,t,i){this._hideSlide(e),N2Classes.SmartSliderMainAnimationAbstract.prototype.onReverseChangeToComplete.apply(this,arguments)},i.prototype._mainAnimationNo=function(t,i){this._showSlide(i),this.slider.unsetActiveSlide(t),i.$element.css("opacity",0),i.background&&i.background.element.css("opacity",0),this.slider.setActiveSlide(i);var n=this.timeline.totalDuration(),s=this.getExtraDelay();this._currentBackgroundAnimation&&this.parameters.shiftedBackgroundAnimation&&this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup(),0===n&&(n=1e-5,s+=n),this.timeline.set(t.$element,{opacity:0},s),!this._currentBackgroundAnimation&&t.background&&this.timeline.set(t.background.element,{opacity:0},s),this.timeline.set(i.$element,{opacity:1},n),!this._currentBackgroundAnimation&&i.background&&this.timeline.set(i.background.element,{opacity:1},n),this.sliderElement.on("mainAnimationComplete.n2-simple-no",e.proxy(function(e,t,i,n){this.sliderElement.off("mainAnimationComplete.n2-simple-no");var s=this.slider.slides[i],a=this.slider.slides[n];s.$element.css("opacity",""),!this._currentBackgroundAnimation&&s.background&&s.background.element.css("opacity",""),a.$element.css("opacity",""),!this._currentBackgroundAnimation&&a.background&&a.background.element.css("opacity","")},this))},i.prototype._mainAnimationFade=function(t,i){t.$element.css("zIndex",23),t.background&&t.background.element.css("zIndex",23),i.$element.css("opacity",0),this._showSlide(i),this.slider.unsetActiveSlide(t),this.slider.setActiveSlide(i);var n=this.adjustMainAnimation();if(0!=this.parameters.shiftedBackgroundAnimation){var s=!1,a=!1;if("auto"==this.parameters.shiftedBackgroundAnimation?t.hasLayers()?s=!0:a=!0:s=!0,this._currentBackgroundAnimation&&s){var r=n.outDuration-n.extraDelay;r>0&&this.timeline.shiftChildren(r),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup()}else a&&(n.extraDelay>0&&this.timeline.shiftChildren(n.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup())}this.timeline.to(t.$element.get(0),n.outDuration,{opacity:0,ease:this.getEase()},n.outDelay),!this._currentBackgroundAnimation&&t.background&&this.timeline.to(t.background.element,n.outDuration,{opacity:0,ease:this.getEase()},n.outDelay),this.timeline.to(i.$element.get(0),n.inDuration,{opacity:1,ease:this.getEase()},n.inDelay),!this._currentBackgroundAnimation&&i.background&&i.background.element.css("opacity",1),this.sliderElement.on("mainAnimationComplete.n2-simple-fade",e.proxy(function(e,t,i,n){this.sliderElement.off("mainAnimationComplete.n2-simple-fade");var s=this.slider.slides[i],a=this.slider.slides[n];s.$element.css({zIndex:"",opacity:""}),!this._currentBackgroundAnimation&&s.background&&s.background.element.css({zIndex:"",opacity:""}),a.$element.css("opacity",""),!this._currentBackgroundAnimation&&a.background&&a.background.element.css("opacity","")},this))},i.prototype._mainAnimationCrossFade=function(t,i){t.$element.css("zIndex",23),t.background&&t.background.element.css("zIndex",23),i.$element.css("opacity",0),i.background&&i.background.element.css("opacity",0),this._showSlide(i),this.slider.unsetActiveSlide(t),this.slider.setActiveSlide(i);var n=this.adjustMainAnimation();if(0!=this.parameters.shiftedBackgroundAnimation){var s=!1,a=!1;if("auto"==this.parameters.shiftedBackgroundAnimation?t.hasLayers()?s=!0:a=!0:s=!0,this._currentBackgroundAnimation&&s){var r=n.outDuration-n.extraDelay;r>0&&this.timeline.shiftChildren(r),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup()}else a&&(n.extraDelay>0&&this.timeline.shiftChildren(n.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup())}this.timeline.to(t.$element.get(0),n.outDuration,{opacity:0,ease:this.getEase()},n.outDelay),!this._currentBackgroundAnimation&&t.background&&this.timeline.to(t.background.element.get(0),n.outDuration,{opacity:0,ease:this.getEase()},n.outDelay),this.timeline.to(i.$element.get(0),n.inDuration,{opacity:1,ease:this.getEase()},n.inDelay),!this._currentBackgroundAnimation&&i.background&&this.timeline.to(i.background.element.get(0),n.inDuration,{opacity:1,ease:this.getEase()},n.inDelay),this.sliderElement.on("mainAnimationComplete.n2-simple-fade",e.proxy(function(e,t,i,n){this.sliderElement.off("mainAnimationComplete.n2-simple-fade");var s=this.slider.slides[i],a=this.slider.slides[n];s.$element.css({zIndex:"",opacity:""}),!this._currentBackgroundAnimation&&s.background&&s.background.element.css({zIndex:"",opacity:""}),a.$element.css("opacity",""),!this._currentBackgroundAnimation&&a.background&&a.background.element.css("opacity","")},this))},i.prototype._mainAnimationHorizontal=function(e,t,i){this.__mainAnimationDirection(e,t,"horizontal",0,i)},i.prototype._mainAnimationVertical=function(e,t,i){this._showSlide(t),this.__mainAnimationDirection(e,t,"vertical",0,i)},i.prototype._mainAnimationHorizontalParallax=function(e,t,i){this.__mainAnimationDirection(e,t,"horizontal",this.parameters.parallax,i)},i.prototype._mainAnimationVerticalParallax=function(e,t,i){this._showSlide(t),this.__mainAnimationDirection(e,t,"vertical",this.parameters.parallax,i)},i.prototype._mainAnimationHorizontalReversed=function(e,t,i){this.__mainAnimationDirection(e,t,"horizontal",0,!i)},i.prototype._mainAnimationVerticalReversed=function(e,t,i){this._showSlide(t),this.__mainAnimationDirection(e,t,"vertical",0,!i)},i.prototype._mainAnimationHorizontalReversedParallax=function(e,t,i){this.__mainAnimationDirection(e,t,"horizontal",this.parameters.parallax,!i)},i.prototype._mainAnimationVerticalReversedParallax=function(e,t,i){this._showSlide(t),this.__mainAnimationDirection(e,t,"vertical",this.parameters.parallax,!i)},i.prototype.__mainAnimationDirection=function(t,i,n,s,a){var r="",o=0,l=0,d="",m=1-s/100;"horizontal"===n?(r="x",d="width",l=o=this.slider.dimensions.slideouter.width,n2const.rtl.isRtl&&(a=!a)):"vertical"===n&&(r="y",d="height",l=o=this.slider.dimensions.slideouter.height),a&&(o*=-1);var h={},c={ease:this.getEase()},p={},u={ease:this.getEase()},g={ease:this.getEase()},y={ease:this.getEase()},A=23,f=22;if(0!==s)if(a)t.$element.addClass("n2-ss-parallax-clip"),A=22,f=23,c[d]=-o,u[d]=-o,o*=m,h[r]=o,h[d]=-o,p[r]=o,p[d]=-o,g[d]=-o,g[r]=l,y[r]=-o;else{o*=m;var k={};if(k[r]=o,NextendTween.set(i.$element,k),i.background){var v={};v[r]=o,NextendTween.set(i.background.element,v)}i.$element.addClass("n2-ss-parallax-clip"),h[r]=l,h[d]=o,c[d]=l,p[r]=o,g[d]=o,y[d]=o,g[r]=-o,y[r]=-o}else{var S={};if(S[r]=o,NextendTween.set(i.$element,S),i.background){var _={};_[r]=o,NextendTween.set(i.background.element,_)}h[r]=o,p[r]=o,g[r]=-o,y[r]=-o}t.$element.css("zIndex",A),t.background&&t.background.element.css("zIndex",A),i.$element.css("zIndex",f),i.background&&i.background.element.css("zIndex",f),this.slider.unsetActiveSlide(t),this.slider.setActiveSlide(i);var x=this.adjustMainAnimation();if(c[r]=0,c.roundProps="x,y",u[r]=0,u.roundProps="x,y",this.timeline.fromTo(i.$element.get(0),x.inDuration,h,c,x.inDelay),i.background&&this.timeline.fromTo(i.background.element,x.inDuration,p,u,x.inDelay),0!=this.parameters.shiftedBackgroundAnimation){var b=!1,D=!1;if("auto"===this.parameters.shiftedBackgroundAnimation?t.hasLayers()?b=!0:D=!0:b=!0,this._currentBackgroundAnimation&&b){var B=x.outDuration-x.extraDelay;B>0&&this.timeline.shiftChildren(B),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup()}else D&&(x.extraDelay>0&&this.timeline.shiftChildren(x.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup())}if(g.roundProps="x,y",y.roundProps="x,y",this.timeline.to(t.$element.get(0),x.outDuration,g,x.outDelay),t.background&&this.timeline.to(t.background.element,x.outDuration,y,x.outDelay),this.isTouch&&this.isReverseAllowed&&0===s){var E=a?t.index+1:t.index-1;if(0>E?E=this.slider.parameters.carousel?this.slider.slides.length-1:t.index:E>=this.slider.slides.length&&(E=this.slider.parameters.carousel?0:t.index),E!==i.index){if(E!==t.index){this.reverseSlideIndex=E,this.enableReverseMode();var C=this.slider.slides[E];"vertical"===n&&this._showSlide(C),C.$element.css(r,o);var w={},z={ease:this.getEase()},N={},T={ease:this.getEase()};z[r]=0,w[r]=-o,T[r]=o,N[r]=0,C.$element.trigger("mainAnimationStartIn",[this,t.index,C.index,!1]),this.reverseTimeline.paused(!0),this.reverseTimeline.eventCallback("onComplete",this.onBackwardChangeToComplete,[t,C,!1],this),z.roundProps="x,y",this.reverseTimeline.fromTo(C.$element.get(0),x.inDuration,w,z,x.inDelay),C.background&&this.reverseTimeline.fromTo(C.background.element,x.inDuration,w,z,x.inDelay),T.roundProps="x,y",this.reverseTimeline.fromTo(t.$element.get(0),x.inDuration,N,T,x.inDelay),t.background&&this.reverseTimeline.fromTo(t.background.element,x.inDuration,N,T,x.inDelay)}}else this.reverseSlideIndex=null}this.sliderElement.on("mainAnimationComplete.n2-simple-fade",e.proxy(function(e,t,i,n){this.sliderElement.off("mainAnimationComplete.n2-simple-fade");var s=this.slider.slides[i],a=this.slider.slides[n];a.$element.css("zIndex","").css(r,"").removeClass("n2-ss-parallax-clip"),a.background&&a.background.element.css("zIndex","").css(r,""),s.$element.css("zIndex","").css(d,"").removeClass("n2-ss-parallax-clip"),s.background&&s.background.element.css("zIndex","").css(d,"")},this))},i.prototype.getExtraDelay=function(){return 0},i.prototype.adjustMainAnimation=function(){var e=this.parameters.duration,t=this.parameters.delay,i=this.timeline.totalDuration(),n=this.getExtraDelay();if(i>0){var s=e+t;if(!(s>i))return{inDuration:e,outDuration:e,inDelay:i-e,outDelay:n,extraDelay:n};e=e*i/s,t=t*i/s,n>t&&(e-=n-t,t=n)}else t+=n;return{inDuration:e,outDuration:e,inDelay:t,outDelay:t,extraDelay:n}},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)}return i.prototype=Object.create(N2Classes.SmartSliderResponsive.prototype),i.prototype.constructor=i,i.prototype.init=function(){this.sliderElement.find(".n2-ss-section-main-content").length&&(this.updateVerticalRatios=this._updateVerticalRatios),this._sliderHorizontal=this.addHorizontalElement(this.sliderElement,["width","marginLeft","marginRight"],"w","slider"),this.addHorizontalElement(this.sliderElement.find(".n2-ss-slider-1"),["width","paddingLeft","paddingRight","borderLeftWidth","borderRightWidth"],"w"),this._sliderVertical=this.addVerticalElement(this.sliderElement,["marginTop","marginBottom"],"h"),this.addHorizontalElement(this.sliderElement,["fontSize"],"fontRatio","slider"),this.addVerticalElement(this.sliderElement.find(".n2-ss-slider-1"),["height","paddingTop","paddingBottom","borderTopWidth","borderBottomWidth"],"h","slider"),this.addHorizontalElement(this.sliderElement.find(".n2-ss-slide"),["width"],"w","slideouter"),this.addVerticalElement(this.sliderElement.find(".n2-ss-slide"),["height"],"h","slideouter");var t=this.sliderElement.find(".n2-ss-layers-container");this.addHorizontalElement(t,["width"],"slideW","slide"),this.addVerticalElement(t,["height"],"slideH","slide").setCentered();for(var i=this.slider.parameters.mainanimation.parallax,n=this.slider.backgrounds.getBackgroundImages(),s=0;s<n.length;s++)0!==i&&(this.addHorizontalElement(n[s].element,["width"],"w"),this.addVerticalElement(n[s].element,["height"],"h"),this.slider.needBackgroundWrap&&(this.addHorizontalElement(n[s].$wrapElement,["width"],"w"),this.addVerticalElement(n[s].$wrapElement,["height"],"h")));var a=this.sliderElement.find(".n2-ss-slider-background-video");a.length&&(n2const.isVideoAutoplayAllowed()?(this._videoPlayerReady=e.proxy(this.videoPlayerReady,this,a),a[0].videoWidth>0?this._videoPlayerReady():(a[0].addEventListener("error",e.proxy(this.videoPlayerError,this,a),!0),a[0].addEventListener("canplay",this._videoPlayerReady)),a[0].load(),a[0].play()):this.videoPlayerError(a))},i.prototype.videoPlayerError=function(e){e.remove()},i.prototype.videoPlayerReady=function(t){t[0].removeEventListener("canplay",this._videoPlayerReady),t.data("ratio",t[0].videoWidth/t[0].videoHeight),t.addClass("n2-active"),this.slider.ready(e.proxy(function(){this.slider.sliderElement.on("SliderResize",e.proxy(this.resizeVideo,this,t)),this.resizeVideo(t)},this))},i.prototype.resizeVideo=function(e){var t=e.data("mode"),i=e.data("ratio"),n=this.slider.dimensions.slideouter||this.slider.dimensions.slide,s=n.width/n.height;"fill"===t?s>i?e.css({width:"100%",height:"auto"}):e.css({width:"auto",height:"100%"}):"fit"===t&&(i>s?e.css({width:"100%",height:"auto"}):e.css({width:"auto",height:"100%"})),e.css("marginTop",0).css(n2const.rtl.marginLeft,0),this.center(e)},i.prototype.center=function(e){var t=e.parent();e.css({marginTop:parseInt((t.height()-e.height())/2)}),e.css(n2const.rtl.marginLeft,parseInt((t.width()-e.width())/2))},i}),N2D("SmartSliderSimple",["SmartSliderAbstract"],function(e,t){function i(t,i){this.type="simple",N2Classes.SmartSliderAbstract.prototype.constructor.call(this,t,e.extend({bgAnimations:0,carousel:1},i))}return i.prototype=Object.create(N2Classes.SmartSliderAbstract.prototype),i.prototype.constructor=i,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(){nModernizr.csstransforms3d&&nModernizr.csstransformspreserve3d&&this.parameters.bgAnimations?this.mainAnimation=new N2Classes.SmartSliderFrontendBackgroundAnimation(this,this.parameters.mainanimation,this.parameters.bgAnimations):this.mainAnimation=new N2Classes.SmartSliderMainAnimationSimple(this,this.parameters.mainanimation),this.pJS=!1,this.parameters.particlejs&&N2R("particlesJS",e.proxy(function(){this.startParticleJS(this.parameters.particlejs)},this))},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 t=0;t<this.slides.length;t++)this.slides[t].backgroundAnimation=this.parameters.bgAnimations.slides[t];delete this.parameters.bgAnimations.slides}},i.prototype.findSlideBackground=function(e){var t=N2Classes.SmartSliderAbstract.prototype.findSlideBackground.call(this,e);return t.appendTo(this.sliderElement.find(".n2-ss-slide-backgrounds")),t},i.prototype.getSlideBackgroundContainer=function(){return this.sliderElement.find(".n2-ss-slider-3")},i}),N2D("smartslider-simple-type-frontend");(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("SmartSliderCarousel",["SmartSliderAbstract"],function(e,i){function t(i,t){this.type="carousel",this.slidesInGroup=1,N2Classes.SmartSliderAbstract.prototype.constructor.call(this,i,e.extend({maxPaneWidth:3e3},t))}return t.prototype=Object.create(N2Classes.SmartSliderAbstract.prototype),t.prototype.constructor=t,t.prototype.initResponsiveMode=function(){this.responsive=new N2Classes.SmartSliderResponsiveCarousel(this,this.parameters.responsive),this.responsive.start(),N2Classes.SmartSliderAbstract.prototype.initResponsiveMode.call(this)},t.prototype.initMainAnimation=function(){this.mainAnimation=new N2Classes.SmartSliderMainAnimationCarousel(this,this.parameters.mainanimation),this.isAdmin||this.sliderElement.one("SliderResize",e.proxy(function(){this.parameters.layerMode.playFirstLayer?this.visible(function(){this.currentSlide.setStart(),this.ready(e.proxy(function(){this.currentSlide.playIn()},this))}):this.sliderElement.one("BeforeVisible",e.proxy(function(){this.currentSlide.setZeroAll()},this))},this)),this.pJS=!1,this.parameters.particlejs&&N2R("particlesJS",e.proxy(function(){this.startParticleJS(this.parameters.particlejs)},this))},t.prototype.__initSlides=function(){var e=this.sliderElement.find(".n2-ss-slide-group");this.slides=[];for(var t=0;t<e.length;t++)this.slides.push(new N2Classes.FrontendCarouselGroupOfSlides(this,e.eq(t),t));this.realSlides=[];for(var t=0;t<this.slides.length;t++){var s=new N2Classes.FrontendSliderSlide(this,this.slides[t].getRealSlide(),this.slides[t].originalIndex);s.index=this.slides[t].index,this.realSlides.push(s),s.init(),this.slides[t].addSlide(s),1==s.$element.data("first")&&(this.starterSlide=s)}this.starterSlide==i&&(this.starterSlide=this.realSlides[0]),this.$slidesContainer=this.slides[0].$element.parent(),this.randomize(this.realSlides);var n=this.sliderElement.find(".n2-ss-static-slide");n.length&&(this.staticSlide=new N2Classes.FrontendSliderStaticSlide(this,n))},t.prototype.shuffleSlides=function(e){e.sort(function(){return.5-Math.random()});for(var i=[],t=0;t<e.length;t++){var s=e[t];i[t]=this.slides[s.originalIndex],i[t].$element.appendTo(this.$slidesContainer),s.group=i[t],i[t].setIndex(t)}this.slides=i,this.isShuffled=!0},t.prototype.startCurrentSlideIndex=function(){this.currentRealSlide=this.starterSlide,this.currentSlide=this.currentRealSlide.group,this.setActiveSlide(this.currentSlide)},t.prototype.onFirstSlideInitialized=function(){for(var i=0;i<this.slides.length;i++)this.slides[i].setNext(this.slides[i+1>this.slides.length-1?0:i+1]);N2Classes.SmartSliderAbstract.prototype.onFirstSlideInitialized.call(this),this.mainAnimation.hideNonActiveSlides(this.currentSlide),parseInt(this.parameters.carousel)?this.initCarousel():this.initNotCarousel(),this.sliderElement.on("SliderResize",e.proxy(this.responsive.onSliderResize,this.responsive)),this.responsive.onSliderResize()},t.prototype.setSlidesInGroup=function(e){this.slidesInGroup=e},t.prototype.calibrateGroup=function(){var i=this.currentSlide.slides,t=e.extend([],this.slides);this.slides=[];for(var s=0,n=0;s<this.realSlides.length;s++)s%this.slidesInGroup==0&&(this.slides.push(new N2Classes.FrontendCarouselGroupOfSlides(this,e('<div class="n2-ss-slide-group"></div>').appendTo(this.$slidesContainer),n)),n++),this.slides[n-1].addSlide(this.realSlides[s]);for(var s=0;s<this.slides.length;s++)this.slides[s].setNext(this.slides[s+1>this.slides.length-1?0:s+1]);for(var s=0;s<t.length;s++)t[s].destroy();if(this.currentSlide=i[0].group,this.isAdmin)this.currentSlide=this.currentRealSlide.group;else if("resolved"==this.readyDeferred.state()){for(var r=this.currentSlide.slides.slice(),s=0;s<i.length;s++)for(var n=0;n<r.length;n++)r[n]==i[s]&&(i.splice(s,s+1),s--,r.splice(n,n+1),n--);for(var s=0;s<i.length;s++)i[s].reset(),i[s].setStart();for(var s=0;s<r.length;s++)r[s].setStart(),r[s].playIn()}this.mainAnimation.hideNonActiveSlides(this.currentSlide),this.setActiveSlide(this.currentSlide),this.ready(e.proxy(function(){this.sliderElement.trigger("slideCountChanged",[this.slides.length,this.slidesInGroup]),this.sliderElement.trigger("sliderSwitchTo",[this.currentSlide.index,this.getRealIndex(this.currentSlide.index)])},this)),this.backgrounds.onVisibleSlidesChanged()},t.prototype.getRealIndex=function(e){return e*this.slidesInGroup},t.prototype.getSlideIndex=function(e){return Math.floor(e/this.slidesInGroup)},t.prototype.directionalChangeToReal=function(e){this.directionalChangeTo(this.getSlideIndex(e))},t.prototype.getSlideBackgroundContainer=function(){return this.sliderElement.find(".n2-ss-slider-2")},t}),N2D("SmartSliderResponsiveCarousel",["SmartSliderResponsive"],function(e,i){function t(i,t){this.slidesInGroup=0,this.maximumPaneWidthRatio=0,this.wH=0,N2Classes.SmartSliderResponsive.prototype.constructor.call(this,i,e.extend({minimumSlideGap:10},t))}return t.prototype=Object.create(N2Classes.SmartSliderResponsive.prototype),t.prototype.constructor=t,t.prototype.storeDefaults=function(){N2Classes.SmartSliderResponsive.prototype.storeDefaults.apply(this,arguments),this.slider.parameters.maxPaneWidth>0&&(this.maximumPaneWidthRatio=this.slider.parameters.maxPaneWidth/this.responsiveDimensions.startWidth)},t.prototype.init=function(){this.sliderElement.find(".n2-ss-section-main-content").length&&(this.updateVerticalRatios=this._updateVerticalRatios),this._sliderHorizontal=this.addHorizontalElement(this.sliderElement,["width","marginRight","marginLeft"],"w","slider"),this._sliderVertical=this.addVerticalElement(this.sliderElement,["marginTop","marginBottom"],"h"),this.addHorizontalElement(this.sliderElement,["fontSize"],"fontRatio","slider"),this.addVerticalElement(this.sliderElement.find(".n2-ss-slider-1"),["height"],"h","slider"),this.addHorizontalElement(this.sliderElement.find(".n2-ss-slider-2"),["width","paddingLeft","paddingRight","borderLeftWidth","borderRightWidth"],"w"),this.addVerticalElement(this.sliderElement.find(".n2-ss-slider-2"),["height","paddingTop","paddingBottom","borderTopWidth","borderBottomWidth"],"h"),this.addHorizontalElement(this.sliderElement.find(".n2-ss-slider-pane"),["width"],"paneW","pane"),this.addVerticalElement(this.sliderElement.find(".n2-ss-slider-pane"),["height"],"h","pane").setCentered(),this.addHorizontalElement(this.sliderElement.find(".n2-ss-slide"),["width"],"slideW","slideouter"),this.addVerticalElement(this.sliderElement.find(".n2-ss-slide"),["height"],"slideH","slideouter"),this.addHorizontalElement(this.sliderElement.find(".n2-ss-layers-container"),["width"],"slideW","slide"),this.addVerticalElement(this.sliderElement.find(".n2-ss-layers-container"),["height"],"slideH","slide").setCentered()},t.prototype._buildRatios=function(i,t,s){this.maximumPaneWidthRatio>0&&i.w>this.maximumPaneWidthRatio?i.paneW=this.maximumPaneWidthRatio:i.paneW=i.w;var n=this.responsiveDimensions.startWidth*i.paneW;if(n<this.responsiveDimensions.startSlideWidth){var r=n/this.responsiveDimensions.startSlideWidth;i.h=r,i.slideW=r,i.slideH=r}else i.h=1,i.slideW=1,i.slideH=1;var l=this.getDeviceModeOrientation();if(this.parameters.minimumHeightRatio>0&&(i.h=Math.max(i.h,this.parameters.minimumHeightRatio)),this.parameters.maximumHeightRatio[l]>0&&(i.h=Math.min(i.h,this.parameters.maximumHeightRatio[l])),this.slider.parameters.dynamicSliderHeight){var o=e(window).height()-100;Math.abs(this.wH-o)<100?o=this.wH:this.wH=o,i.h*this.responsiveDimensions.startHeight>o&&(i.slideW=i.slideH=o/this.responsiveDimensions.startHeight,"fullpage"!=this.parameters.type&&(i.h=i.slideW))}this.slidesInGroup=Math.max(1,Math.floor(n/(this.responsiveDimensions.startSlideWidth*i.slideW+this.parameters.minimumSlideGap))),this.sliderElement.triggerHandler("responsiveBuildRatios",[i])},t.prototype.onSliderResize=function(){this.slidesInGroup!=this.slider.slidesInGroup&&(this.slider.setSlidesInGroup(this.slidesInGroup),this.slider.calibrateGroup());for(var e=Math.floor((this.responsiveDimensions.pane.width-this.responsiveDimensions.slide.width*this.slider.slidesInGroup)/this.slider.slidesInGroup/2),i=0;i<this.slider.realSlides.length;i++)this.slider.realSlides[i].$element.css({marginLeft:e,marginRight:e,marginTop:parseInt((this.responsiveDimensions.pane.height-this.responsiveDimensions.slide.height)/2)});var t=this.slider.getRealIndex(this.slider.slides.length-1),s=this.slider.realSlides.length-t;if(s!=this.slider.slidesInGroup)for(var e=Math.floor((this.responsiveDimensions.pane.width-this.responsiveDimensions.slide.width*s)/s/2),i=t;i<this.slider.realSlides.length;i++)this.slider.realSlides[i].$element.css({marginLeft:e,marginRight:e})},t}),N2D("SmartSliderMainAnimationCarousel",["SmartSliderMainAnimationAbstract"],function(e,i){function t(i,t){switch(t=e.extend({delay:0,type:"horizontal"},t),t.delay/=1e3,N2Classes.SmartSliderMainAnimationAbstract.prototype.constructor.apply(this,arguments),this.parameters.type){case"fade":this.animation=this._mainAnimationFade;break;case"vertical":this.animation=this._mainAnimationVertical;break;case"no":this.animation=this._mainAnimationNo;break;default:this.animation=this._mainAnimationHorizontal}}return t.prototype=Object.create(N2Classes.SmartSliderMainAnimationAbstract.prototype),t.prototype.constructor=t,t.prototype.setToStarterSlide=function(e){var i=e.$element.parent().data("slide");this.hideNonActiveSlides(i),this.slider.setActiveSlide(i)},t.prototype.hideNonActiveSlides=function(e){for(var i=0;i<this.slider.slides.length;i++)this.slider.slides[i]!=e&&this.hideSlide(this.slider.slides[i])},t.prototype.hideSlide=function(e){window.n2const.isRTL()?NextendTween.set(e.$element,{right:"-100000px"}):NextendTween.set(e.$element,{left:"-100000px"})},t.prototype.showSlide=function(e){window.n2const.isRTL()?NextendTween.set(e.$element,{right:0}):NextendTween.set(e.$element,{left:0})},t.prototype._initAnimation=function(e,i,t){this.animation(e,i,t)},t.prototype.onChangeToComplete=function(e,i,t){this.hideSlide(e),N2Classes.SmartSliderMainAnimationAbstract.prototype.onChangeToComplete.apply(this,arguments)},t.prototype._mainAnimationNo=function(i,t,s){this.showSlide(t),this.slider.unsetActiveSlide(i),t.$element.css("opacity",0),this.slider.setActiveSlide(t),this.timeline.set(i.$element,{opacity:0},0),this.timeline.set(t.$element,{opacity:1},0),this.sliderElement.on("mainAnimationComplete.n2-carousel",e.proxy(function(e,i,t,s){this.sliderElement.off("mainAnimationComplete.n2-carousel"),this.slider.slides[t].$element.css("opacity",""),this.slider.slides[s].$element.css("opacity","")},this))},t.prototype._mainAnimationFade=function(i,t,s){i.$element.css("zIndex",5),this.showSlide(t),this.slider.unsetActiveSlide(i),this.slider.setActiveSlide(t),this.timeline.to(i.$element,this.parameters.duration,{opacity:0,ease:this.getEase()},0),t.$element.css("opacity",""),this.sliderElement.on("mainAnimationComplete.n2-carousel",e.proxy(function(e,i,t,s){this.sliderElement.off("mainAnimationComplete.n2-carousel"),this.slider.slides[t].$element.css("zIndex","").css("opacity",""),this.slider.slides[s].$element.css("opacity","")},this))},t.prototype._mainAnimationHorizontal=function(e,i,t){this.__mainAnimationDirection(e,i,"horizontal",t)},t.prototype._mainAnimationVertical=function(e,i,t){this.showSlide(i),this.__mainAnimationDirection(e,i,"vertical",t)},t.prototype.__mainAnimationDirection=function(i,t,s,n){var r="",l=0;"horizontal"==s?(r=window.n2const.isRTL()?"right":"left",l=i.$element.width()):"vertical"==s&&(r="top",l=i.$element.height()),n&&(l*=-1),t.$element.css(r,l),t.$element.css("zIndex",5),i.$element.css("zIndex",4),this.slider.unsetActiveSlide(i),this.slider.setActiveSlide(t);var o={ease:this.getEase()};o[r]=0,this.timeline.to(t.$element,this.parameters.duration,o,0);var a={ease:this.getEase()};a[r]=-l,this.timeline.to(i.$element,this.parameters.duration,a,0),this.sliderElement.on("mainAnimationComplete.n2-carousel",e.proxy(function(e,i,t,s){this.sliderElement.off("mainAnimationComplete.n2-carousel"),this.slider.slides[s].$element.css("zIndex","").css(r,""),this.slider.slides[t].$element.css("zIndex","")},this))},t}),N2D("FrontendCarouselGroupOfSlides",function(e,i){function t(i,t,s){this.slider=i,this.slides=[],this.originalIndex=s,this.index=s,this.$element=t.data("slide",this).on("mainAnimationStartIn",e.proxy(function(e,i,t,s){this.setStart()},this))}return t.prototype.is=function(e){if(this===e)return!0;for(var i=0;i<this.slides.length;i++)if(this.slides[i]===e)return!0;return!1},t.prototype.addSlide=function(e){this.slides.push(e),this.$element.append(e.$element),e.group=this},t.prototype.trigger=function(){this.$element.trigger.apply(this.$element,[].slice.call(arguments))},t.prototype.triggerHandler=function(){return this.$element.triggerHandler.apply(this.$element,[].slice.call(arguments))},t.prototype.setStart=function(){for(var e=0;e<this.slides.length;e++)this.slides[e].setStart()},t.prototype.setZeroAll=function(){for(var e=0;e<this.slides.length;e++)this.slides[e].setZeroAll()},t.prototype.playIn=function(){for(var e=0;e<this.slides.length;e++)this.slides[e].playIn()},t.prototype.pause=function(){for(var e=0;e<this.slides.length;e++)this.slides[e].pause()},t.prototype.onOutAnimationsPlayed=function(){for(var e=0;e<this.slides.length;e++)this.slides[e].onOutAnimationsPlayed()},t.prototype.reset=function(){for(var e=0;e<this.slides.length;e++)this.slides[e].reset()},t.prototype.getRealSlide=function(){return this.$element.find("> .n2-ss-slide")},t.prototype.destroy=function(){this.$element.remove()},t.prototype.setIndex=function(e){this.localIndex=this.index=e;for(var i=0;i<this.slides.length;i++)this.slides[i].setIndex(e)},t.prototype.preLoad=function(){for(var i=[],t=0;t<this.slides.length;t++)i.push(this.slides[t].preLoad());return e.when.apply(e,i)},t.prototype.setPrevious=function(e){this.previousSlide=e},t.prototype.setNext=function(e){this.nextSlide=e,e.setPrevious(this)},t.prototype.playOut=function(){for(var e=0;e<this.slides.length;e++)this.slides[e].playOut()},t.prototype.getTitle=function(){return this.slides[0].getTitle()},t.prototype.getDescription=function(){return this.slides[0].getDescription()},t.prototype.getThumbnail=function(){return this.slides[0].getThumbnail()},t.prototype.hasLink=function(){return!1},t}),N2D("smartslider-carousel-type-frontend")