You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
411 KiB
JavaScript

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

!function(){for(var r=0,t=["ms","moz","webkit","o"],e=0;e<t.length&&!window.requestAnimationFrame;++e)window.requestAnimationFrame=window[t[e]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[t[e]+"CancelAnimationFrame"]||window[t[e]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(t,e){var i=(new Date).getTime(),n=Math.max(0,16-(i-r)),s=window.setTimeout(function(){t(i+n)},n);return r=i+n,s}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})}(),function(r,p,c){var o=[],l=[],t={_version:"3.6.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(t,e){var i=this;setTimeout(function(){e(i[t])},0)},addTest:function(t,e,i){l.push({name:t,fn:e,options:i})},addAsyncTest:function(t){l.push({name:null,fn:t})}};function h(t,e){return typeof t===e}(u=function(){}).prototype=t;var u=new u,f=p.documentElement,d="svg"===f.nodeName.toLowerCase();var i=t._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];function m(t){return"function"!=typeof p.createElement?p.createElement(t):d?p.createElementNS.call(p,"http://www.w3.org/2000/svg",t):p.createElement.apply(p,arguments)}function s(t,e,i,n){var s,r,a,o="modernizr",l=m("div"),h=((a=p.body)||((a=m(d?"svg":"body")).fake=!0),a);if(parseInt(i,10))for(;i--;)(s=m("div")).id=n?n[i]:o+(i+1),l.appendChild(s);return(a=m("style")).type="text/css",a.id="s"+o,(h.fake?h:l).appendChild(a),h.appendChild(l),a.styleSheet?a.styleSheet.cssText=t:a.appendChild(p.createTextNode(t)),l.id=o,h.fake&&(h.style.background="",h.style.overflow="hidden",r=f.style.overflow,f.style.overflow="hidden",f.appendChild(h)),t=e(l,t),h.fake?(h.parentNode.removeChild(h),f.style.overflow=r,f.offsetHeight):l.parentNode.removeChild(l),!!t}t._prefixes=i;var n=t.testStyles=s;u.addTest("touchevents",function(){var e,t;return"ontouchstart"in r||r.DocumentTouch&&p instanceof DocumentTouch?e=!0:(t=["@media (",i.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join(""),n(t,function(t){e=9===t.offsetTop})),e});var e="Moz O ms Webkit",g=t._config.usePrefixes?e.split(" "):[];t._cssomPrefixes=g;var y=t._config.usePrefixes?e.toLowerCase().split(" "):[];function v(t,e,i){var n,s;for(s in t)if(t[s]in e)return!1===i?t[s]:h(n=e[t[s]],"function")?function(t,e){return function(){return t.apply(e,arguments)}}(n,i||e):n;return!1}t._domPrefixes=y;var a={elem:m("modernizr")};u._q.push(function(){delete a.elem});var _,b,x,w,T={style:a.elem.style};function k(t){return t.replace(/([A-Z])/g,function(t,e){return"-"+e.toLowerCase()}).replace(/^ms-/,"-ms-")}function P(t,e){var i=t.length;if("CSS"in r&&"supports"in r.CSS){for(;i--;)if(r.CSS.supports(k(t[i]),e))return!0;return!1}if("CSSSupportsRule"in r){for(var n=[];i--;)n.push("("+k(t[i])+":"+e+")");return s("@supports ("+(n=n.join(" or "))+") { #modernizr { position: absolute; } }",function(t){return"absolute"==(e=t,i=null,n="position","getComputedStyle"in r?(s=getComputedStyle.call(r,e,i),t=r.console,null!==s?n&&(s=s.getPropertyValue(n)):t&&t[t.error?"error":"log"].call(t,"getComputedStyle returning null, its possible modernizr test results are inaccurate")):s=!i&&e.currentStyle&&e.currentStyle[n],s);var e,i,n,s})}return c}function A(t,e,i,n,s){var r=t.charAt(0).toUpperCase()+t.slice(1),a=(t+" "+g.join(r+" ")+r).split(" ");return h(e,"string")||void 0===e?function(t,e,i,n){if(n=void 0!==n&&n,void 0!==i){var s=P(t,i);if(void 0!==s)return s}for(var r,a,o,l,h,p=["modernizr","tspan","samp"];!T.style&&p.length;)r=!0,T.modElem=m(p.shift()),T.style=T.modElem.style;function u(){r&&(delete T.style,delete T.modElem)}for(o=t.length,a=0;a<o;a++)if(l=t[a],h=T.style[l],~(""+l).indexOf("-")&&(l=l.replace(/([a-z])-([a-z])/g,function(t,e,i){return e+i.toUpperCase()}).replace(/^-/,"")),T.style[l]!==c){if(n||void 0===i)return u(),"pfx"!=e||l;try{T.style[l]=i}catch(t){}if(T.style[l]!=h)return u(),"pfx"!=e||l}return u(),!1}(a,e,n,s):v(a=(t+" "+y.join(r+" ")+r).split(" "),e,i)}function S(t,e,i){return A(t,c,c,e,i)}u._q.unshift(function(){delete T.style}),t.testAllProps=A,t.testAllProps=S,u.addTest("csstransitions",S("transition","all",!0)),function(){var t,e,i,n,s,r,a;for(a in l)if(l.hasOwnProperty(a)){if(t=[],(e=l[a]).name&&(t.push(e.name.toLowerCase()),e.options&&e.options.aliases&&e.options.aliases.length))for(i=0;i<e.options.aliases.length;i++)t.push(e.options.aliases[i].toLowerCase());for(n=h(e.fn,"function")?e.fn():e.fn,s=0;s<t.length;s++)1===(r=t[s].split(".")).length?u[r[0]]=n:(!u[r[0]]||u[r[0]]instanceof Boolean||(u[r[0]]=new Boolean(u[r[0]])),u[r[0]][r[1]]=n),o.push((n?"":"no-")+r.join("-"))}}(),_=o,x=f.className,w=u._config.classPrefix||"",d&&(x=x.baseVal),u._config.enableJSClass&&(b=new RegExp("(^|\\s)"+w+"no-js(\\s|$)"),x=x.replace(b,"$1"+w+"js$2")),u._config.enableClasses&&(x+=" "+w+_.join(" "+w),d?f.className.baseVal=x:f.className=x),delete t.addTest,delete t.addAsyncTest;for(var E=0;E<u._q.length;E++)u._q[E]();r.Modernizr=u}(window,document),function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(w,t){"use strict";var e=[],T=w.document,i=Object.getPrototypeOf,o=e.slice,m=e.concat,l=e.push,s=e.indexOf,n={},r=n.toString,d=n.hasOwnProperty,a=d.toString,h=a.call(Object),g={};function y(t,e){var i=(e=e||T).createElement("script");i.text=t,e.head.appendChild(i).parentNode.removeChild(i)}function p(t,e){return e.toUpperCase()}var k=function(t,e){return new k.fn.init(t,e)},u=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,c=/^-ms-/,f=/-([a-z])/g;function v(t){var e=!!t&&"length"in t&&t.length,i=k.type(t);return"function"!==i&&!k.isWindow(t)&&("array"===i||0===e||"number"==typeof e&&0<e&&e-1 in t)}k.fn=k.prototype={jquery:"3.2.1",constructor:k,length:0,toArray:function(){return o.call(this)},get:function(t){return null==t?o.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){t=k.merge(this.constructor(),t);return t.prevObject=this,t},each:function(t){return k.each(this,t)},map:function(i){return this.pushStack(k.map(this,function(t,e){return i.call(t,e,t)}))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,t=+t+(t<0?e:0);return this.pushStack(0<=t&&t<e?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:e.sort,splice:e.splice},k.extend=k.fn.extend=function(){var t,e,i,n,s,r=arguments[0]||{},a=1,o=arguments.length,l=!1;for("boolean"==typeof r&&(l=r,r=arguments[a]||{},a++),"object"==typeof r||k.isFunction(r)||(r={}),a===o&&(r=this,a--);a<o;a++)if(null!=(t=arguments[a]))for(e in t)s=r[e],r!==(i=t[e])&&(l&&i&&(k.isPlainObject(i)||(n=Array.isArray(i)))?(s=n?(n=!1,s&&Array.isArray(s)?s:[]):s&&k.isPlainObject(s)?s:{},r[e]=k.extend(l,s,i)):void 0!==i&&(r[e]=i));return r},k.extend({expando:"jQuery"+("3.2.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===k.type(t)},isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){var e=k.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},isPlainObject:function(t){return!(!t||"[object Object]"!==r.call(t))&&(!(t=i(t))||"function"==typeof(t=d.call(t,"constructor")&&t.constructor)&&a.call(t)===h)},isEmptyObject:function(t){for(var e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?n[r.call(t)]||"object":typeof t},globalEval:function(t){y(t)},camelCase:function(t){return t.replace(c,"ms-").replace(f,p)},each:function(t,e){var i,n=0;if(v(t))for(i=t.length;n<i&&!1!==e.call(t[n],n,t[n]);n++);else for(n in t)if(!1===e.call(t[n],n,t[n]))break;return t},trim:function(t){return null==t?"":(t+"").replace(u,"")},makeArray:function(t,e){e=e||[];return null!=t&&(v(Object(t))?k.merge(e,"string"==typeof t?[t]:t):l.call(e,t)),e},inArray:function(t,e,i){return null==e?-1:s.call(e,t,i)},merge:function(t,e){for(var i=+e.length,n=0,s=t.length;n<i;n++)t[s++]=e[n];return t.length=s,t},grep:function(t,e,i){for(var n=[],s=0,r=t.length,a=!i;s<r;s++)!e(t[s],s)!=a&&n.push(t[s]);return n},map:function(t,e,i){var n,s,r=0,a=[];if(v(t))for(n=t.length;r<n;r++)null!=(s=e(t[r],r,i))&&a.push(s);else for(r in t)null!=(s=e(t[r],r,i))&&a.push(s);return m.apply([],a)},guid:1,proxy:function(t,e){var i,n;if("string"==typeof e&&(n=t[e],e=t,t=n),k.isFunction(t))return i=o.call(arguments,2),(n=function(){return t.apply(e||this,i.concat(o.call(arguments)))}).guid=t.guid=t.guid||k.guid++,n},now:Date.now,support:g}),"function"==typeof Symbol&&(k.fn[Symbol.iterator]=e[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){n["[object "+e+"]"]=e.toLowerCase()});var _=function(i){function u(t,e,i){var n="0x"+e-65536;return n!=n||i?e:n<0?String.fromCharCode(65536+n):String.fromCharCode(n>>10|55296,1023&n|56320)}function f(t,e){return e?"\0"===t?"<22>":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}function n(){w()}var t,d,b,r,s,m,c,g,x,l,h,w,T,a,k,y,o,p,v,P="sizzle"+ +new Date,_=i.document,A=0,S=0,E=at(),C=at(),M=at(),D=function(t,e){return t===e&&(h=!0),0},F={}.hasOwnProperty,e=[],I=e.pop,O=e.push,L=e.push,N=e.slice,R=function(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1},V="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",j="[\\x20\\t\\r\\n\\f]",z="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",B="\\["+j+"*("+z+")(?:"+j+"*([*^$|!~]?=)"+j+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+z+"))|)"+j+"*\\]",q=":("+z+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+B+")*)|.*)\\)|)",H=new RegExp(j+"+","g"),W=new RegExp("^"+j+"+|((?:^|[^\\\\])(?:\\\\.)*)"+j+"+$","g"),X=new RegExp("^"+j+"*,"+j+"*"),Y=new RegExp("^"+j+"*([>+~]|"+j+")"+j+"*"),U=new RegExp("="+j+"*([^\\]'\"]*?)"+j+"*\\]","g"),G=new RegExp(q),Z=new RegExp("^"+z+"$"),$={ID:new RegExp("^#("+z+")"),CLASS:new RegExp("^\\.("+z+")"),TAG:new RegExp("^("+z+"|[*])"),ATTR:new RegExp("^"+B),PSEUDO:new RegExp("^"+q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+j+"*(even|odd|(([+-]|)(\\d*)n|)"+j+"*(?:([+-]|)"+j+"*(\\d+)|))"+j+"*\\)|)","i"),bool:new RegExp("^(?:"+V+")$","i"),needsContext:new RegExp("^"+j+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+j+"*((?:-\\d)?\\d*)"+j+"*\\)|)(?=[^-]|$)","i")},K=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,tt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,et=/[+~]/,it=new RegExp("\\\\([\\da-f]{1,6}"+j+"?|("+j+")|.)","ig"),nt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,st=gt(function(t){return!0===t.disabled&&("form"in t||"label"in t)},{dir:"parentNode",next:"legend"});try{L.apply(e=N.call(_.childNodes),_.childNodes),e[_.childNodes.length].nodeType}catch(t){L={apply:e.length?function(t,e){O.apply(t,N.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}function rt(t,e,i,n){var s,r,a,o,l,h,p,u=e&&e.ownerDocument,c=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==c&&9!==c&&11!==c)return i;if(!n&&((e?e.ownerDocument||e:_)!==T&&w(e),e=e||T,k)){if(11!==c&&(l=tt.exec(t)))if(s=l[1]){if(9===c){if(!(a=e.getElementById(s)))return i;if(a.id===s)return i.push(a),i}else if(u&&(a=u.getElementById(s))&&v(e,a)&&a.id===s)return i.push(a),i}else{if(l[2])return L.apply(i,e.getElementsByTagName(t)),i;if((s=l[3])&&d.getElementsByClassName&&e.getElementsByClassName)return L.apply(i,e.getElementsByClassName(s)),i}if(d.qsa&&!M[t+" "]&&(!y||!y.test(t))){if(1!==c)u=e,p=t;else if("object"!==e.nodeName.toLowerCase()){for((o=e.getAttribute("id"))?o=o.replace(nt,f):e.setAttribute("id",o=P),r=(h=m(t)).length;r--;)h[r]="#"+o+" "+mt(h[r]);p=h.join(","),u=et.test(t)&&ft(e.parentNode)||e}if(p)try{return L.apply(i,u.querySelectorAll(p)),i}catch(t){}finally{o===P&&e.removeAttribute("id")}}}return g(t.replace(W,"$1"),e,i,n)}function at(){var i=[];function n(t,e){return i.push(t+" ")>b.cacheLength&&delete n[i.shift()],n[t+" "]=e}return n}function ot(t){return t[P]=!0,t}function lt(t){var e=T.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e)}}function ht(t,e){for(var i=t.split("|"),n=i.length;n--;)b.attrHandle[i[n]]=e}function pt(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function ut(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&st(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ct(a){return ot(function(r){return r=+r,ot(function(t,e){for(var i,n=a([],t.length,r),s=n.length;s--;)t[i=n[s]]&&(t[i]=!(e[i]=t[i]))})})}function ft(t){return t&&void 0!==t.getElementsByTagName&&t}for(t in d=rt.support={},s=rt.isXML=function(t){t=t&&(t.ownerDocument||t).documentElement;return!!t&&"HTML"!==t.nodeName},w=rt.setDocument=function(t){var e,t=t?t.ownerDocument||t:_;return t!==T&&9===t.nodeType&&t.documentElement&&(a=(T=t).documentElement,k=!s(T),_!==T&&(e=T.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",n,!1):e.attachEvent&&e.attachEvent("onunload",n)),d.attributes=lt(function(t){return t.className="i",!t.getAttribute("className")}),d.getElementsByTagName=lt(function(t){return t.appendChild(T.createComment("")),!t.getElementsByTagName("*").length}),d.getElementsByClassName=J.test(T.getElementsByClassName),d.getById=lt(function(t){return a.appendChild(t).id=P,!T.getElementsByName||!T.getElementsByName(P).length}),d.getById?(b.filter.ID=function(t){var e=t.replace(it,u);return function(t){return t.getAttribute("id")===e}},b.find.ID=function(t,e){if(void 0!==e.getElementById&&k){t=e.getElementById(t);return t?[t]:[]}}):(b.filter.ID=function(t){var e=t.replace(it,u);return function(t){t=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return t&&t.value===e}},b.find.ID=function(t,e){if(void 0!==e.getElementById&&k){var i,n,s,r=e.getElementById(t);if(r){if((i=r.getAttributeNode("id"))&&i.value===t)return[r];for(s=e.getElementsByName(t),n=0;r=s[n++];)if((i=r.getAttributeNode("id"))&&i.value===t)return[r]}return[]}}),b.find.TAG=d.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):d.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],s=0,r=e.getElementsByTagName(t);if("*"!==t)return r;for(;i=r[s++];)1===i.nodeType&&n.push(i);return n},b.find.CLASS=d.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&k)return e.getElementsByClassName(t)},o=[],y=[],(d.qsa=J.test(T.querySelectorAll))&&(lt(function(t){a.appendChild(t).innerHTML="<a id='"+P+"'></a><select id='"+P+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&y.push("[*^$]="+j+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||y.push("\\["+j+"*(?:value|"+V+")"),t.querySelectorAll("[id~="+P+"-]").length||y.push("~="),t.querySelectorAll(":checked").length||y.push(":checked"),t.querySelectorAll("a#"+P+"+*").length||y.push(".#.+[+~]")}),lt(function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=T.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&y.push("name"+j+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&y.push(":enabled",":disabled"),a.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&y.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),y.push(",.*:")})),(d.matchesSelector=J.test(p=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&lt(function(t){d.disconnectedMatch=p.call(t,"*"),p.call(t,"[s!='']:x"),o.push("!=",q)}),y=y.length&&new RegExp(y.join("|")),o=o.length&&new RegExp(o.join("|")),e=J.test(a.compareDocumentPosition),v=e||J.test(a.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,e=e&&e.parentNode;return t===e||!(!e||1!==e.nodeType||!(i.contains?i.contains(e):t.compareDocumentPosition&&16&t.compareDocumentPosition(e)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},D=e?function(t,e){if(t===e)return h=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(1&(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!d.sortDetached&&e.compareDocumentPosition(t)===i?t===T||t.ownerDocument===_&&v(_,t)?-1:e===T||e.ownerDocument===_&&v(_,e)?1:l?R(l,t)-R(l,e):0:4&i?-1:1)}:function(t,e){if(t===e)return h=!0,0;var i,n=0,s=t.parentNode,r=e.parentNode,a=[t],o=[e];if(!s||!r)return t===T?-1:e===T?1:s?-1:r?1:l?R(l,t)-R(l,e):0;if(s===r)return pt(t,e);for(i=t;i=i.parentNode;)a.unshift(i);for(i=e;i=i.parentNode;)o.unshift(i);for(;a[n]===o[n];)n++;return n?pt(a[n],o[n]):a[n]===_?-1:o[n]===_?1:0}),T},rt.matches=function(t,e){return rt(t,null,null,e)},rt.matchesSelector=function(t,e){if((t.ownerDocument||t)!==T&&w(t),e=e.replace(U,"='$1']"),d.matchesSelector&&k&&!M[e+" "]&&(!o||!o.test(e))&&(!y||!y.test(e)))try{var i=p.call(t,e);if(i||d.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){}return 0<rt(e,T,null,[t]).length},rt.contains=function(t,e){return(t.ownerDocument||t)!==T&&w(t),v(t,e)},rt.attr=function(t,e){(t.ownerDocument||t)!==T&&w(t);var i=b.attrHandle[e.toLowerCase()],i=i&&F.call(b.attrHandle,e.toLowerCase())?i(t,e,!k):void 0;return void 0!==i?i:d.attributes||!k?t.getAttribute(e):(i=t.getAttributeNode(e))&&i.specified?i.value:null},rt.escape=function(t){return(t+"").replace(nt,f)},rt.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},rt.uniqueSort=function(t){var e,i=[],n=0,s=0;if(h=!d.detectDuplicates,l=!d.sortStable&&t.slice(0),t.sort(D),h){for(;e=t[s++];)e===t[s]&&(n=i.push(s));for(;n--;)t.splice(i[n],1)}return l=null,t},r=rt.getText=function(t){var e,i="",n=0,s=t.nodeType;if(s){if(1===s||9===s||11===s){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=r(t)}else if(3===s||4===s)return t.nodeValue}else for(;e=t[n++];)i+=r(e);return i},(b=rt.selectors={cacheLength:50,createPseudo:ot,match:$,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(it,u),t[3]=(t[3]||t[4]||t[5]||"").replace(it,u),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||rt.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&rt.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return $.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&G.test(i)&&(e=m(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(it,u).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=E[t+" "];return e||(e=new RegExp("(^|"+j+")"+t+"("+j+"|$)"))&&E(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(e,i,n){return function(t){t=rt.attr(t,e);return null==t?"!="===i:!i||(t+="","="===i?t===n:"!="===i?t!==n:"^="===i?n&&0===t.indexOf(n):"*="===i?n&&-1<t.indexOf(n):"$="===i?n&&t.slice(-n.length)===n:"~="===i?-1<(" "+t.replace(H," ")+" ").indexOf(n):"|="===i&&(t===n||t.slice(0,n.length+1)===n+"-"))}},CHILD:function(d,t,e,m,g){var y="nth"!==d.slice(0,3),v="last"!==d.slice(-4),_="of-type"===t;return 1===m&&0===g?function(t){return!!t.parentNode}:function(t,e,i){var n,s,r,a,o,l,h=y!=v?"nextSibling":"previousSibling",p=t.parentNode,u=_&&t.nodeName.toLowerCase(),c=!i&&!_,f=!1;if(p){if(y){for(;h;){for(a=t;a=a[h];)if(_?a.nodeName.toLowerCase()===u:1===a.nodeType)return!1;l=h="only"===d&&!l&&"nextSibling"}return!0}if(l=[v?p.firstChild:p.lastChild],v&&c){for(f=(o=(n=(s=(r=(a=p)[P]||(a[P]={}))[a.uniqueID]||(r[a.uniqueID]={}))[d]||[])[0]===A&&n[1])&&n[2],a=o&&p.childNodes[o];a=++o&&a&&a[h]||(f=o=0)||l.pop();)if(1===a.nodeType&&++f&&a===t){s[d]=[A,o,f];break}}else if(!1===(f=c?o=(n=(s=(r=(a=t)[P]||(a[P]={}))[a.uniqueID]||(r[a.uniqueID]={}))[d]||[])[0]===A&&n[1]:f))for(;(a=++o&&a&&a[h]||(f=o=0)||l.pop())&&((_?a.nodeName.toLowerCase()!==u:1!==a.nodeType)||!++f||(c&&((s=(r=a[P]||(a[P]={}))[a.uniqueID]||(r[a.uniqueID]={}))[d]=[A,f]),a!==t)););return(f-=g)===m||f%m==0&&0<=f/m}}},PSEUDO:function(t,r){var e,a=b.pseudos[t]||b.setFilters[t.toLowerCase()]||rt.error("unsupported pseudo: "+t);return a[P]?a(r):1<a.length?(e=[t,t,"",r],b.setFilters.hasOwnProperty(t.toLowerCase())?ot(function(t,e){for(var i,n=a(t,r),s=n.length;s--;)t[i=R(t,n[s])]=!(e[i]=n[s])}):function(t){return a(t,0,e)}):a}},pseudos:{not:ot(function(t){var n=[],s=[],o=c(t.replace(W,"$1"));return o[P]?ot(function(t,e,i,n){for(var s,r=o(t,null,n,[]),a=t.length;a--;)(s=r[a])&&(t[a]=!(e[a]=s))}):function(t,e,i){return n[0]=t,o(n,null,i,s),n[0]=null,!s.pop()}}),has:ot(function(e){return function(t){return 0<rt(e,t).length}}),contains:ot(function(e){return e=e.replace(it,u),function(t){return-1<(t.textContent||t.innerText||r(t)).indexOf(e)}}),lang:ot(function(i){return Z.test(i||"")||rt.error("unsupported lang: "+i),i=i.replace(it,u).toLowerCase(),function(t){var e;do{if(e=k?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(e=e.toLowerCase())===i||0===e.indexOf(i+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var e=i.location&&i.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===a},focus:function(t){return t===T.activeElement&&(!T.hasFocus||T.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:ut(!1),disabled:ut(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!b.pseudos.empty(t)},header:function(t){return Q.test(t.nodeName)},input:function(t){return K.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(t=t.getAttribute("type"))||"text"===t.toLowerCase())},first:ct(function(){return[0]}),last:ct(function(t,e){return[e-1]}),eq:ct(function(t,e,i){return[i<0?i+e:i]}),even:ct(function(t,e){for(var i=0;i<e;i+=2)t.push(i);return t}),odd:ct(function(t,e){for(var i=1;i<e;i+=2)t.push(i);return t}),lt:ct(function(t,e,i){for(var n=i<0?i+e:i;0<=--n;)t.push(n);return t}),gt:ct(function(t,e,i){for(var n=i<0?i+e:i;++n<e;)t.push(n);return t})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[t]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}(t);for(t in{submit:!0,reset:!0})b.pseudos[t]=function(i){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===i}}(t);function dt(){}function mt(t){for(var e=0,i=t.length,n="";e<i;e++)n+=t[e].value;return n}function gt(a,t,e){var o=t.dir,l=t.next,h=l||o,p=e&&"parentNode"===h,u=S++;return t.first?function(t,e,i){for(;t=t[o];)if(1===t.nodeType||p)return a(t,e,i);return!1}:function(t,e,i){var n,s,r=[A,u];if(i){for(;t=t[o];)if((1===t.nodeType||p)&&a(t,e,i))return!0}else for(;t=t[o];)if(1===t.nodeType||p)if(n=(s=t[P]||(t[P]={}))[t.uniqueID]||(s[t.uniqueID]={}),l&&l===t.nodeName.toLowerCase())t=t[o]||t;else{if((s=n[h])&&s[0]===A&&s[1]===u)return r[2]=s[2];if((n[h]=r)[2]=a(t,e,i))return!0}return!1}}function yt(s){return 1<s.length?function(t,e,i){for(var n=s.length;n--;)if(!s[n](t,e,i))return!1;return!0}:s[0]}function vt(t,e,i,n,s){for(var r,a=[],o=0,l=t.length,h=null!=e;o<l;o++)(r=t[o])&&(i&&!i(r,n,s)||(a.push(r),h&&e.push(o)));return a}function _t(f,d,m,g,y,t){return g&&!g[P]&&(g=_t(g)),y&&!y[P]&&(y=_t(y,t)),ot(function(t,e,i,n){var s,r,a,o=[],l=[],h=e.length,p=t||function(t,e,i){for(var n=0,s=e.length;n<s;n++)rt(t,e[n],i);return i}(d||"*",i.nodeType?[i]:i,[]),u=!f||!t&&d?p:vt(p,o,f,i,n),c=m?y||(t?f:h||g)?[]:e:u;if(m&&m(u,c,i,n),g)for(s=vt(c,l),g(s,[],i,n),r=s.length;r--;)(a=s[r])&&(c[l[r]]=!(u[l[r]]=a));if(t){if(y||f){if(y){for(s=[],r=c.length;r--;)(a=c[r])&&s.push(u[r]=a);y(null,c=[],s,n)}for(r=c.length;r--;)(a=c[r])&&-1<(s=y?R(t,a):o[r])&&(t[s]=!(e[s]=a))}}else c=vt(c===e?c.splice(h,c.length):c),y?y(null,e,c,n):L.apply(e,c)})}function bt(g,y){function t(t,e,i,n,s){var r,a,o,l=0,h="0",p=t&&[],u=[],c=x,f=t||_&&b.find.TAG("*",s),d=A+=null==c?1:Math.random()||.1,m=f.length;for(s&&(x=e===T||e||s);h!==m&&null!=(r=f[h]);h++){if(_&&r){for(a=0,e||r.ownerDocument===T||(w(r),i=!k);o=g[a++];)if(o(r,e||T,i)){n.push(r);break}s&&(A=d)}v&&((r=!o&&r)&&l--,t&&p.push(r))}if(l+=h,v&&h!==l){for(a=0;o=y[a++];)o(p,u,e,i);if(t){if(0<l)for(;h--;)p[h]||u[h]||(u[h]=I.call(n));u=vt(u)}L.apply(n,u),s&&!t&&0<u.length&&1<l+y.length&&rt.uniqueSort(n)}return s&&(A=d,x=c),p}var v=0<y.length,_=0<g.length;return v?ot(t):t}return dt.prototype=b.filters=b.pseudos,b.setFilters=new dt,m=rt.tokenize=function(t,e){var i,n,s,r,a,o,l,h=C[t+" "];if(h)return e?0:h.slice(0);for(a=t,o=[],l=b.preFilter;a;){for(r in i&&!(n=X.exec(a))||(n&&(a=a.slice(n[0].length)||a),o.push(s=[])),i=!1,(n=Y.exec(a))&&(i=n.shift(),s.push({value:i,type:n[0].replace(W," ")}),a=a.slice(i.length)),b.filter)!(n=$[r].exec(a))||l[r]&&!(n=l[r](n))||(i=n.shift(),s.push({value:i,type:r,matches:n}),a=a.slice(i.length));if(!i)break}return e?a.length:a?rt.error(t):C(t,o).slice(0)},c=rt.compile=function(t,e){var i,n=[],s=[],r=M[t+" "];if(!r){for(i=(e=e||m(t)).length;i--;)((r=function t(e){for(var n,i,s,r=e.length,a=b.relative[e[0].type],o=a||b.relative[" "],l=a?1:0,h=gt(function(t){return t===n},o,!0),p=gt(function(t){return-1<R(n,t)},o,!0),u=[function(t,e,i){return i=!a&&(i||e!==x)||((n=e).nodeType?h:p)(t,e,i),n=null,i}];l<r;l++)if(i=b.relative[e[l].type])u=[gt(yt(u),i)];else{if((i=b.filter[e[l].type].apply(null,e[l].matches))[P]){for(s=++l;s<r&&!b.relative[e[s].type];s++);return _t(1<l&&yt(u),1<l&&mt(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(W,"$1"),i,l<s&&t(e.slice(l,s)),s<r&&t(e=e.slice(s)),s<r&&mt(e))}u.push(i)}return yt(u)}(e[i]))[P]?n:s).push(r);(r=M(t,bt(s,n))).selector=t}return r},g=rt.select=function(t,e,i,n){var s,r,a,o,l,h="function"==typeof t&&t,p=!n&&m(t=h.selector||t);if(i=i||[],1===p.length){if(2<(r=p[0]=p[0].slice(0)).length&&"ID"===(a=r[0]).type&&9===e.nodeType&&k&&b.relative[r[1].type]){if(!(e=(b.find.ID(a.matches[0].replace(it,u),e)||[])[0]))return i;h&&(e=e.parentNode),t=t.slice(r.shift().value.length)}for(s=$.needsContext.test(t)?0:r.length;s--&&(a=r[s],!b.relative[o=a.type]);)if((l=b.find[o])&&(n=l(a.matches[0].replace(it,u),et.test(r[0].type)&&ft(e.parentNode)||e))){if(r.splice(s,1),!(t=n.length&&mt(r)))return L.apply(i,n),i;break}}return(h||c(t,p))(n,e,!k,i,!e||et.test(t)&&ft(e.parentNode)||e),i},d.sortStable=P.split("").sort(D).join("")===P,d.detectDuplicates=!!h,w(),d.sortDetached=lt(function(t){return 1&t.compareDocumentPosition(T.createElement("fieldset"))}),lt(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||ht("type|href|height|width",function(t,e,i){if(!i)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),d.attributes&&lt(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||ht("value",function(t,e,i){if(!i&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),lt(function(t){return null==t.getAttribute("disabled")})||ht(V,function(t,e,i){if(!i)return!0===t[e]?e.toLowerCase():(e=t.getAttributeNode(e))&&e.specified?e.value:null}),rt}(w);k.find=_,k.expr=_.selectors,k.expr[":"]=k.expr.pseudos,k.uniqueSort=k.unique=_.uniqueSort,k.text=_.getText,k.isXMLDoc=_.isXML,k.contains=_.contains,k.escapeSelector=_.escape;function b(t,e,i){for(var n=[],s=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(s&&k(t).is(i))break;n.push(t)}return n}function x(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i}var P=k.expr.match.needsContext;function A(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var S=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,E=/^.[^:#\[\.,]*$/;function C(t,i,n){return k.isFunction(i)?k.grep(t,function(t,e){return!!i.call(t,e,t)!==n}):i.nodeType?k.grep(t,function(t){return t===i!==n}):"string"!=typeof i?k.grep(t,function(t){return-1<s.call(i,t)!==n}):E.test(i)?k.filter(i,t,n):(i=k.filter(i,t),k.grep(t,function(t){return-1<s.call(i,t)!==n&&1===t.nodeType}))}k.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?k.find.matchesSelector(n,t)?[n]:[]:k.find.matches(t,k.grep(e,function(t){return 1===t.nodeType}))},k.fn.extend({find:function(t){var e,i,n=this.length,s=this;if("string"!=typeof t)return this.pushStack(k(t).filter(function(){for(e=0;e<n;e++)if(k.contains(s[e],this))return!0}));for(i=this.pushStack([]),e=0;e<n;e++)k.find(t,s[e],i);return 1<n?k.uniqueSort(i):i},filter:function(t){return this.pushStack(C(this,t||[],!1))},not:function(t){return this.pushStack(C(this,t||[],!0))},is:function(t){return!!C(this,"string"==typeof t&&P.test(t)?k(t):t||[],!1).length}});var M=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(k.fn.init=function(t,e,i){if(!t)return this;if(i=i||D,"string"!=typeof t)return t.nodeType?(this[0]=t,this.length=1,this):k.isFunction(t)?void 0!==i.ready?i.ready(t):t(k):k.makeArray(t,this);if(!(n="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:M.exec(t))||!n[1]&&e)return(!e||e.jquery?e||i:this.constructor(e)).find(t);if(n[1]){if(e=e instanceof k?e[0]:e,k.merge(this,k.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:T,!0)),S.test(n[1])&&k.isPlainObject(e))for(var n in e)k.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return(t=T.getElementById(n[2]))&&(this[0]=t,this.length=1),this}).prototype=k.fn;var D=k(T),F=/^(?:parents|prev(?:Until|All))/,I={children:!0,contents:!0,next:!0,prev:!0};function O(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}k.fn.extend({has:function(t){var e=k(t,this),i=e.length;return this.filter(function(){for(var t=0;t<i;t++)if(k.contains(this,e[t]))return!0})},closest:function(t,e){var i,n=0,s=this.length,r=[],a="string"!=typeof t&&k(t);if(!P.test(t))for(;n<s;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(a?-1<a.index(i):1===i.nodeType&&k.find.matchesSelector(i,t))){r.push(i);break}return this.pushStack(1<r.length?k.uniqueSort(r):r)},index:function(t){return t?"string"==typeof t?s.call(k(t),this[0]):s.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),k.each({parent:function(t){t=t.parentNode;return t&&11!==t.nodeType?t:null},parents:function(t){return b(t,"parentNode")},parentsUntil:function(t,e,i){return b(t,"parentNode",i)},next:function(t){return O(t,"nextSibling")},prev:function(t){return O(t,"previousSibling")},nextAll:function(t){return b(t,"nextSibling")},prevAll:function(t){return b(t,"previousSibling")},nextUntil:function(t,e,i){return b(t,"nextSibling",i)},prevUntil:function(t,e,i){return b(t,"previousSibling",i)},siblings:function(t){return x((t.parentNode||{}).firstChild,t)},children:function(t){return x(t.firstChild)},contents:function(t){return A(t,"iframe")?t.contentDocument:(A(t,"template")&&(t=t.content||t),k.merge([],t.childNodes))}},function(n,s){k.fn[n]=function(t,e){var i=k.map(this,s,t);return(e="Until"!==n.slice(-5)?t:e)&&"string"==typeof e&&(i=k.filter(e,i)),1<this.length&&(I[n]||k.uniqueSort(i),F.test(n)&&i.reverse()),this.pushStack(i)}});var L=/[^\x20\t\r\n\f]+/g;function N(t){return t}function R(t){throw t}function V(t,e,i,n){var s;try{t&&k.isFunction(s=t.promise)?s.call(t).done(e).fail(i):t&&k.isFunction(s=t.then)?s.call(t,e,i):e.apply(void 0,[t].slice(n))}catch(t){i.apply(void 0,[t])}}k.Callbacks=function(n){var t,i;n="string"==typeof n?(t=n,i={},k.each(t.match(L)||[],function(t,e){i[e]=!0}),i):k.extend({},n);function s(){for(o=o||n.once,a=r=!0;h.length;p=-1)for(e=h.shift();++p<l.length;)!1===l[p].apply(e[0],e[1])&&n.stopOnFalse&&(p=l.length,e=!1);n.memory||(e=!1),r=!1,o&&(l=e?[]:"")}var r,e,a,o,l=[],h=[],p=-1,u={add:function(){return l&&(e&&!r&&(p=l.length-1,h.push(e)),function i(t){k.each(t,function(t,e){k.isFunction(e)?n.unique&&u.has(e)||l.push(e):e&&e.length&&"string"!==k.type(e)&&i(e)})}(arguments),e&&!r&&s()),this},remove:function(){return k.each(arguments,function(t,e){for(var i;-1<(i=k.inArray(e,l,i));)l.splice(i,1),i<=p&&p--}),this},has:function(t){return t?-1<k.inArray(t,l):0<l.length},empty:function(){return l=l&&[],this},disable:function(){return o=h=[],l=e="",this},disabled:function(){return!l},lock:function(){return o=h=[],e||r||(l=e=""),this},locked:function(){return!!o},fireWith:function(t,e){return o||(e=[t,(e=e||[]).slice?e.slice():e],h.push(e),r||s()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!a}};return u},k.extend({Deferred:function(t){var r=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],s="pending",a={state:function(){return s},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return a.then(null,t)},pipe:function(){var s=arguments;return k.Deferred(function(n){k.each(r,function(t,e){var i=k.isFunction(s[e[4]])&&s[e[4]];o[e[1]](function(){var t=i&&i.apply(this,arguments);t&&k.isFunction(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[e[0]+"With"](this,i?[t]:arguments)})}),s=null}).promise()},then:function(e,i,n){var l=0;function h(s,r,a,o){return function(){function t(){var t,e;if(!(s<l)){if((t=a.apply(i,n))===r.promise())throw new TypeError("Thenable self-resolution");e=t&&("object"==typeof t||"function"==typeof t)&&t.then,k.isFunction(e)?o?e.call(t,h(l,r,N,o),h(l,r,R,o)):(l++,e.call(t,h(l,r,N,o),h(l,r,R,o),h(l,r,N,r.notifyWith))):(a!==N&&(i=void 0,n=[t]),(o||r.resolveWith)(i,n))}}var i=this,n=arguments,e=o?t:function(){try{t()}catch(t){k.Deferred.exceptionHook&&k.Deferred.exceptionHook(t,e.stackTrace),l<=s+1&&(a!==R&&(i=void 0,n=[t]),r.rejectWith(i,n))}};s?e():(k.Deferred.getStackHook&&(e.stackTrace=k.Deferred.getStackHook()),w.setTimeout(e))}}return k.Deferred(function(t){r[0][3].add(h(0,t,k.isFunction(n)?n:N,t.notifyWith)),r[1][3].add(h(0,t,k.isFunction(e)?e:N)),r[2][3].add(h(0,t,k.isFunction(i)?i:R))}).promise()},promise:function(t){return null!=t?k.extend(t,a):a}},o={};return k.each(r,function(t,e){var i=e[2],n=e[5];a[e[1]]=i.add,n&&i.add(function(){s=n},r[3-t][2].disable,r[0][2].lock),i.add(e[3].fire),o[e[0]]=function(){return o[e[0]+"With"](this===o?void 0:this,arguments),this},o[e[0]+"With"]=i.fireWith}),a.promise(o),t&&t.call(o,o),o},when:function(t){function e(e){return function(t){s[e]=this,r[e]=1<arguments.length?o.call(arguments):t,--i||a.resolveWith(s,r)}}var i=arguments.length,n=i,s=Array(n),r=o.call(arguments),a=k.Deferred();if(i<=1&&(V(t,a.done(e(n)).resolve,a.reject,!i),"pending"===a.state()||k.isFunction(r[n]&&r[n].then)))return a.then();for(;n--;)V(r[n],e(n),a.reject);return a.promise()}});var j=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(t,e){w.console&&w.console.warn&&t&&j.test(t.name)&&w.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},k.readyException=function(t){w.setTimeout(function(){throw t})};var z=k.Deferred();function B(){T.removeEventListener("DOMContentLoaded",B),w.removeEventListener("load",B),k.ready()}k.fn.ready=function(t){return z.then(t).catch(function(t){k.readyException(t)}),this},k.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--k.readyWait:k.isReady)||(k.isReady=!0)!==t&&0<--k.readyWait||z.resolveWith(T,[k])}}),k.ready.then=z.then,"complete"===T.readyState||"loading"!==T.readyState&&!T.documentElement.doScroll?w.setTimeout(k.ready):(T.addEventListener("DOMContentLoaded",B),w.addEventListener("load",B));function q(t,e,i,n,s,r,a){var o=0,l=t.length,h=null==i;if("object"===k.type(i))for(o in s=!0,i)q(t,e,o,i[o],!0,r,a);else if(void 0!==n&&(s=!0,k.isFunction(n)||(a=!0),e=h?a?(e.call(t,n),null):(h=e,function(t,e,i){return h.call(k(t),i)}):e))for(;o<l;o++)e(t[o],i,a?n:n.call(t[o],o,e(t[o],i)));return s?t:h?e.call(t):l?e(t[0],i):r}function H(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType}function W(){this.expando=k.expando+W.uid++}W.uid=1,W.prototype={cache:function(t){var e=t[this.expando];return e||(e={},H(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,i){var n,s=this.cache(t);if("string"==typeof e)s[k.camelCase(e)]=i;else for(n in e)s[k.camelCase(n)]=e[n];return s},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][k.camelCase(e)]},access:function(t,e,i){return void 0===e||e&&"string"==typeof e&&void 0===i?this.get(t,e):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,n=t[this.expando];if(void 0!==n){if(void 0!==e){i=(e=Array.isArray(e)?e.map(k.camelCase):(e=k.camelCase(e))in n?[e]:e.match(L)||[]).length;for(;i--;)delete n[e[i]]}void 0!==e&&!k.isEmptyObject(n)||(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){t=t[this.expando];return void 0!==t&&!k.isEmptyObject(t)}};var X=new W,Y=new W,U=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,G=/[A-Z]/g;function Z(t,e,i){var n,s;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(G,"-$&").toLowerCase(),"string"==typeof(i=t.getAttribute(n))){try{i="true"===(s=i)||"false"!==s&&("null"===s?null:s===+s+""?+s:U.test(s)?JSON.parse(s):s)}catch(t){}Y.set(t,e,i)}else i=void 0;return i}k.extend({hasData:function(t){return Y.hasData(t)||X.hasData(t)},data:function(t,e,i){return Y.access(t,e,i)},removeData:function(t,e){Y.remove(t,e)},_data:function(t,e,i){return X.access(t,e,i)},_removeData:function(t,e){X.remove(t,e)}}),k.fn.extend({data:function(i,t){var e,n,s,r=this[0],a=r&&r.attributes;if(void 0!==i)return"object"==typeof i?this.each(function(){Y.set(this,i)}):q(this,function(t){var e;return r&&void 0===t?void 0!==(e=Y.get(r,i))||void 0!==(e=Z(r,i))?e:void 0:void this.each(function(){Y.set(this,i,t)})},null,t,1<arguments.length,null,!0);if(this.length&&(s=Y.get(r),1===r.nodeType&&!X.get(r,"hasDataAttrs"))){for(e=a.length;e--;)a[e]&&0===(n=a[e].name).indexOf("data-")&&(n=k.camelCase(n.slice(5)),Z(r,n,s[n]));X.set(r,"hasDataAttrs",!0)}return s},removeData:function(t){return this.each(function(){Y.remove(this,t)})}}),k.extend({queue:function(t,e,i){var n;if(t)return n=X.get(t,e=(e||"fx")+"queue"),i&&(!n||Array.isArray(i)?n=X.access(t,e,k.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=k.queue(t,e),n=i.length,s=i.shift(),r=k._queueHooks(t,e);"inprogress"===s&&(s=i.shift(),n--),s&&("fx"===e&&i.unshift("inprogress"),delete r.stop,s.call(t,function(){k.dequeue(t,e)},r)),!n&&r&&r.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return X.get(t,i)||X.access(t,i,{empty:k.Callbacks("once memory").add(function(){X.remove(t,[e+"queue",i])})})}}),k.fn.extend({queue:function(e,i){var t=2;return"string"!=typeof e&&(i=e,e="fx",t--),arguments.length<t?k.queue(this[0],e):void 0===i?this:this.each(function(){var t=k.queue(this,e,i);k._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&k.dequeue(this,e)})},dequeue:function(t){return this.each(function(){k.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){function i(){--s||r.resolveWith(a,[a])}var n,s=1,r=k.Deferred(),a=this,o=this.length;for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";o--;)(n=X.get(a[o],t+"queueHooks"))&&n.empty&&(s++,n.empty.add(i));return i(),r.promise(e)}});function $(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&k.contains(t.ownerDocument,t)&&"none"===k.css(t,"display")}function K(t,e,i,n){var s,r={};for(s in e)r[s]=t.style[s],t.style[s]=e[s];for(s in n=i.apply(t,n||[]),e)t.style[s]=r[s];return n}var Q=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,J=new RegExp("^(?:([+-])=|)("+Q+")([a-z%]*)$","i"),tt=["Top","Right","Bottom","Left"];function et(t,e,i,n){var s,r=1,a=20,o=n?function(){return n.cur()}:function(){return k.css(t,e,"")},l=o(),h=i&&i[3]||(k.cssNumber[e]?"":"px"),p=(k.cssNumber[e]||"px"!==h&&+l)&&J.exec(k.css(t,e));if(p&&p[3]!==h)for(h=h||p[3],i=i||[],p=+l||1;p/=r=r||".5",k.style(t,e,p+h),r!==(r=o()/l)&&1!==r&&--a;);return i&&(p=+p||+l||0,s=i[1]?p+(i[1]+1)*i[2]:+i[2],n&&(n.unit=h,n.start=p,n.end=s)),s}var it={};function nt(t,e){for(var i,n,s,r,a,o=[],l=0,h=t.length;l<h;l++)(n=t[l]).style&&(i=n.style.display,e?("none"===i&&(o[l]=X.get(n,"display")||null,o[l]||(n.style.display="")),""===n.style.display&&$(n)&&(o[l]=(a=r=void 0,r=(s=n).ownerDocument,a=s.nodeName,(s=it[a])||(r=r.body.appendChild(r.createElement(a)),s=k.css(r,"display"),r.parentNode.removeChild(r),it[a]=s="none"===s?"block":s)))):"none"!==i&&(o[l]="none",X.set(n,"display",i)));for(l=0;l<h;l++)null!=o[l]&&(t[l].style.display=o[l]);return t}k.fn.extend({show:function(){return nt(this,!0)},hide:function(){return nt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){$(this)?k(this).show():k(this).hide()})}});var st=/^(?:checkbox|radio)$/i,rt=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,at=/^$|\/(?:java|ecma)script/i,ot={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function lt(t,e){var i=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&A(t,e)?k.merge([t],i):i}function ht(t,e){for(var i=0,n=t.length;i<n;i++)X.set(t[i],"globalEval",!e||X.get(e[i],"globalEval"))}ot.optgroup=ot.option,ot.tbody=ot.tfoot=ot.colgroup=ot.caption=ot.thead,ot.th=ot.td;var pt=/<|&#?\w+;/;function ut(t,e,i,n,s){for(var r,a,o,l,h,p=e.createDocumentFragment(),u=[],c=0,f=t.length;c<f;c++)if((r=t[c])||0===r)if("object"===k.type(r))k.merge(u,r.nodeType?[r]:r);else if(pt.test(r)){for(a=a||p.appendChild(e.createElement("div")),o=(rt.exec(r)||["",""])[1].toLowerCase(),o=ot[o]||ot._default,a.innerHTML=o[1]+k.htmlPrefilter(r)+o[2],h=o[0];h--;)a=a.lastChild;k.merge(u,a.childNodes),(a=p.firstChild).textContent=""}else u.push(e.createTextNode(r));for(p.textContent="",c=0;r=u[c++];)if(n&&-1<k.inArray(r,n))s&&s.push(r);else if(l=k.contains(r.ownerDocument,r),a=lt(p.appendChild(r),"script"),l&&ht(a),i)for(h=0;r=a[h++];)at.test(r.type||"")&&i.push(r);return p}e=T.createDocumentFragment().appendChild(T.createElement("div")),(_=T.createElement("input")).setAttribute("type","radio"),_.setAttribute("checked","checked"),_.setAttribute("name","t"),e.appendChild(_),g.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue;var ct=T.documentElement,ft=/^key/,dt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,mt=/^([^.]*)(?:\.(.+)|)/;function gt(){return!0}function yt(){return!1}function vt(){try{return T.activeElement}catch(t){}}function _t(t,e,i,n,s,r){var a,o;if("object"==typeof e){for(o in"string"!=typeof i&&(n=n||i,i=void 0),e)_t(t,o,i,n,e[o],r);return t}if(null==n&&null==s?(s=i,n=i=void 0):null==s&&("string"==typeof i?(s=n,n=void 0):(s=n,n=i,i=void 0)),!1===s)s=yt;else if(!s)return t;return 1===r&&(a=s,(s=function(t){return k().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=k.guid++)),t.each(function(){k.event.add(this,e,s,n,i)})}k.event={global:{},add:function(e,t,i,n,s){var r,a,o,l,h,p,u,c,f,d=X.get(e);if(d)for(i.handler&&(i=(r=i).handler,s=r.selector),s&&k.find.matchesSelector(ct,s),i.guid||(i.guid=k.guid++),(o=d.events)||(o=d.events={}),(a=d.handle)||(a=d.handle=function(t){return void 0!==k&&k.event.triggered!==t.type?k.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(L)||[""]).length;l--;)u=f=(h=mt.exec(t[l])||[])[1],c=(h[2]||"").split(".").sort(),u&&(p=k.event.special[u]||{},u=(s?p.delegateType:p.bindType)||u,p=k.event.special[u]||{},h=k.extend({type:u,origType:f,data:n,handler:i,guid:i.guid,selector:s,needsContext:s&&k.expr.match.needsContext.test(s),namespace:c.join(".")},r),(f=o[u])||((f=o[u]=[]).delegateCount=0,p.setup&&!1!==p.setup.call(e,n,c,a)||e.addEventListener&&e.addEventListener(u,a)),p.add&&(p.add.call(e,h),h.handler.guid||(h.handler.guid=i.guid)),s?f.splice(f.delegateCount++,0,h):f.push(h),k.event.global[u]=!0)},remove:function(t,e,i,n,s){var r,a,o,l,h,p,u,c,f,d,m,g=X.hasData(t)&&X.get(t);if(g&&(l=g.events)){for(h=(e=(e||"").match(L)||[""]).length;h--;)if(f=m=(o=mt.exec(e[h])||[])[1],d=(o[2]||"").split(".").sort(),f){for(u=k.event.special[f]||{},c=l[f=(n?u.delegateType:u.bindType)||f]||[],o=o[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=r=c.length;r--;)p=c[r],!s&&m!==p.origType||i&&i.guid!==p.guid||o&&!o.test(p.namespace)||n&&n!==p.selector&&("**"!==n||!p.selector)||(c.splice(r,1),p.selector&&c.delegateCount--,u.remove&&u.remove.call(t,p));a&&!c.length&&(u.teardown&&!1!==u.teardown.call(t,d,g.handle)||k.removeEvent(t,f,g.handle),delete l[f])}else for(f in l)k.event.remove(t,f+e[h],i,n,!0);k.isEmptyObject(l)&&X.remove(t,"handle events")}},dispatch:function(t){var e,i,n,s,r,a=k.event.fix(t),o=new Array(arguments.length),l=(X.get(this,"events")||{})[a.type]||[],t=k.event.special[a.type]||{};for(o[0]=a,e=1;e<arguments.length;e++)o[e]=arguments[e];if(a.delegateTarget=this,!t.preDispatch||!1!==t.preDispatch.call(this,a)){for(r=k.event.handlers.call(this,a,l),e=0;(n=r[e++])&&!a.isPropagationStopped();)for(a.currentTarget=n.elem,i=0;(s=n.handlers[i++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!a.rnamespace.test(s.namespace)||(a.handleObj=s,a.data=s.data,void 0!==(s=((k.event.special[s.origType]||{}).handle||s.handler).apply(n.elem,o))&&!1===(a.result=s)&&(a.preventDefault(),a.stopPropagation()));return t.postDispatch&&t.postDispatch.call(this,a),a.result}},handlers:function(t,e){var i,n,s,r,a,o=[],l=e.delegateCount,h=t.target;if(l&&h.nodeType&&!("click"===t.type&&1<=t.button))for(;h!==this;h=h.parentNode||this)if(1===h.nodeType&&("click"!==t.type||!0!==h.disabled)){for(r=[],a={},i=0;i<l;i++)void 0===a[s=(n=e[i]).selector+" "]&&(a[s]=n.needsContext?-1<k(s,this).index(h):k.find(s,this,null,[h]).length),a[s]&&r.push(n);r.length&&o.push({elem:h,handlers:r})}return h=this,l<e.length&&o.push({elem:h,handlers:e.slice(l)}),o},addProp:function(e,t){Object.defineProperty(k.Event.prototype,e,{enumerable:!0,configurable:!0,get:k.isFunction(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(t){return t[k.expando]?t:new k.Event(t)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==vt()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===vt()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&A(this,"input"))return this.click(),!1},_default:function(t){return A(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},k.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i)},k.Event=function(t,e){if(!(this instanceof k.Event))return new k.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?gt:yt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&k.extend(this,e),this.timeStamp=t&&t.timeStamp||k.now(),this[k.expando]=!0},k.Event.prototype={constructor:k.Event,isDefaultPrevented:yt,isPropagationStopped:yt,isImmediatePropagationStopped:yt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=gt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=gt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=gt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},k.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(t){var e=t.button;return null==t.which&&ft.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&dt.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},k.event.addProp),k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,s){k.event.special[t]={delegateType:s,bindType:s,handle:function(t){var e,i=t.relatedTarget,n=t.handleObj;return i&&(i===this||k.contains(this,i))||(t.type=n.origType,e=n.handler.apply(this,arguments),t.type=s),e}}}),k.fn.extend({on:function(t,e,i,n){return _t(this,t,e,i,n)},one:function(t,e,i,n){return _t(this,t,e,i,n,1)},off:function(t,e,i){var n,s;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,k(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"!=typeof t)return!1!==e&&"function"!=typeof e||(i=e,e=void 0),!1===i&&(i=yt),this.each(function(){k.event.remove(this,t,i,e)});for(s in t)this.off(s,e,t[s]);return this}});var bt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,xt=/<script|<style|<link/i,wt=/checked\s*(?:[^=]|=\s*.checked.)/i,Tt=/^true\/(.*)/,kt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Pt(t,e){return A(t,"table")&&A(11!==e.nodeType?e:e.firstChild,"tr")&&k(">tbody",t)[0]||t}function At(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function St(t){var e=Tt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function Et(t,e){var i,n,s,r,a,o;if(1===e.nodeType){if(X.hasData(t)&&(r=X.access(t),a=X.set(e,r),o=r.events))for(s in delete a.handle,a.events={},o)for(i=0,n=o[s].length;i<n;i++)k.event.add(e,s,o[s][i]);Y.hasData(t)&&(t=Y.access(t),t=k.extend({},t),Y.set(e,t))}}function Ct(i,n,s,r){n=m.apply([],n);var t,e,a,o,l,h,p=0,u=i.length,c=u-1,f=n[0],d=k.isFunction(f);if(d||1<u&&"string"==typeof f&&!g.checkClone&&wt.test(f))return i.each(function(t){var e=i.eq(t);d&&(n[0]=f.call(this,t,e.html())),Ct(e,n,s,r)});if(u&&(e=(t=ut(n,i[0].ownerDocument,!1,i,r)).firstChild,1===t.childNodes.length&&(t=e),e||r)){for(o=(a=k.map(lt(t,"script"),At)).length;p<u;p++)l=t,p!==c&&(l=k.clone(l,!0,!0),o&&k.merge(a,lt(l,"script"))),s.call(i[p],l,p);if(o)for(h=a[a.length-1].ownerDocument,k.map(a,St),p=0;p<o;p++)l=a[p],at.test(l.type||"")&&!X.access(l,"globalEval")&&k.contains(h,l)&&(l.src?k._evalUrl&&k._evalUrl(l.src):y(l.textContent.replace(kt,""),h))}return i}function Mt(t,e,i){for(var n,s=e?k.filter(e,t):t,r=0;null!=(n=s[r]);r++)i||1!==n.nodeType||k.cleanData(lt(n)),n.parentNode&&(i&&k.contains(n.ownerDocument,n)&&ht(lt(n,"script")),n.parentNode.removeChild(n));return t}k.extend({htmlPrefilter:function(t){return t.replace(bt,"<$1></$2>")},clone:function(t,e,i){var n,s,r,a,o,l,h,p=t.cloneNode(!0),u=k.contains(t.ownerDocument,t);if(!(g.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||k.isXMLDoc(t)))for(a=lt(p),n=0,s=(r=lt(t)).length;n<s;n++)o=r[n],l=a[n],h=void 0,"input"===(h=l.nodeName.toLowerCase())&&st.test(o.type)?l.checked=o.checked:"input"!==h&&"textarea"!==h||(l.defaultValue=o.defaultValue);if(e)if(i)for(r=r||lt(t),a=a||lt(p),n=0,s=r.length;n<s;n++)Et(r[n],a[n]);else Et(t,p);return 0<(a=lt(p,"script")).length&&ht(a,!u&&lt(t,"script")),p},cleanData:function(t){for(var e,i,n,s=k.event.special,r=0;void 0!==(i=t[r]);r++)if(H(i)){if(e=i[X.expando]){if(e.events)for(n in e.events)s[n]?k.event.remove(i,n):k.removeEvent(i,n,e.handle);i[X.expando]=void 0}i[Y.expando]&&(i[Y.expando]=void 0)}}}),k.fn.extend({detach:function(t){return Mt(this,t,!0)},remove:function(t){return Mt(this,t)},text:function(t){return q(this,function(t){return void 0===t?k.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return Ct(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Pt(this,t).appendChild(t)})},prepend:function(){return Ct(this,arguments,function(t){var e;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(e=Pt(this,t)).insertBefore(t,e.firstChild)})},before:function(){return Ct(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return Ct(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(k.cleanData(lt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return k.clone(this,t,e)})},html:function(t){return q(this,function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!xt.test(t)&&!ot[(rt.exec(t)||["",""])[1].toLowerCase()]){t=k.htmlPrefilter(t);try{for(;i<n;i++)1===(e=this[i]||{}).nodeType&&(k.cleanData(lt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var i=[];return Ct(this,arguments,function(t){var e=this.parentNode;k.inArray(this,i)<0&&(k.cleanData(lt(this)),e&&e.replaceChild(t,this))},i)}}),k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,a){k.fn[t]=function(t){for(var e,i=[],n=k(t),s=n.length-1,r=0;r<=s;r++)e=r===s?this:this.clone(!0),k(n[r])[a](e),l.apply(i,e.get());return this.pushStack(i)}});function Dt(t){var e=t.ownerDocument.defaultView;return(e=!e||!e.opener?w:e).getComputedStyle(t)}var Ft,It,Ot,Lt,Nt,Rt,Vt=/^margin/,jt=new RegExp("^("+Q+")(?!px)[a-z%]+$","i");function zt(){var t;Rt&&(Rt.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",Rt.innerHTML="",ct.appendChild(Nt),t=w.getComputedStyle(Rt),Ft="1%"!==t.top,Lt="2px"===t.marginLeft,It="4px"===t.width,Rt.style.marginRight="50%",Ot="4px"===t.marginRight,ct.removeChild(Nt),Rt=null)}function Bt(t,e,i){var n,s,r=t.style;return(i=i||Dt(t))&&(""!==(s=i.getPropertyValue(e)||i[e])||k.contains(t.ownerDocument,t)||(s=k.style(t,e)),!g.pixelMarginRight()&&jt.test(s)&&Vt.test(e)&&(n=r.width,t=r.minWidth,e=r.maxWidth,r.minWidth=r.maxWidth=r.width=s,s=i.width,r.width=n,r.minWidth=t,r.maxWidth=e)),void 0!==s?s+"":s}function qt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}Nt=T.createElement("div"),(Rt=T.createElement("div")).style&&(Rt.style.backgroundClip="content-box",Rt.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===Rt.style.backgroundClip,Nt.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",Nt.appendChild(Rt),k.extend(g,{pixelPosition:function(){return zt(),Ft},boxSizingReliable:function(){return zt(),It},pixelMarginRight:function(){return zt(),Ot},reliableMarginLeft:function(){return zt(),Lt}}));var Ht=/^(none|table(?!-c[ea]).+)/,Wt=/^--/,Xt={position:"absolute",visibility:"hidden",display:"block"},Yt={letterSpacing:"0",fontWeight:"400"},Ut=["Webkit","Moz","ms"],Gt=T.createElement("div").style;function Zt(t){return k.cssProps[t]||(k.cssProps[t]=function(t){if(t in Gt)return t;for(var e=t[0].toUpperCase()+t.slice(1),i=Ut.length;i--;)if((t=Ut[i]+e)in Gt)return t}(t)||t)}function $t(t,e,i){var n=J.exec(e);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):e}function Kt(t,e,i,n,s){for(var r=0,a=i===(n?"border":"content")?4:"width"===e?1:0;a<4;a+=2)"margin"===i&&(r+=k.css(t,i+tt[a],!0,s)),n?("content"===i&&(r-=k.css(t,"padding"+tt[a],!0,s)),"margin"!==i&&(r-=k.css(t,"border"+tt[a]+"Width",!0,s))):(r+=k.css(t,"padding"+tt[a],!0,s),"padding"!==i&&(r+=k.css(t,"border"+tt[a]+"Width",!0,s)));return r}function Qt(t,e,i){var n,s=Dt(t),r=Bt(t,e,s),a="border-box"===k.css(t,"boxSizing",!1,s);return jt.test(r)?r:(n=a&&(g.boxSizingReliable()||r===t.style[e]),"auto"===r&&(r=t["offset"+e[0].toUpperCase()+e.slice(1)]),(r=parseFloat(r)||0)+Kt(t,e,i||(a?"border":"content"),n,s)+"px")}function Jt(t,e,i,n,s){return new Jt.prototype.init(t,e,i,n,s)}k.extend({cssHooks:{opacity:{get:function(t,e){if(e){t=Bt(t,"opacity");return""===t?"1":t}}}},cssNumber:{animationIterationCount:!0,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:"cssFloat"},style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var s,r,a,o=k.camelCase(e),l=Wt.test(e),h=t.style;if(l||(e=Zt(o)),a=k.cssHooks[e]||k.cssHooks[o],void 0===i)return a&&"get"in a&&void 0!==(s=a.get(t,!1,n))?s:h[e];"string"===(r=typeof i)&&(s=J.exec(i))&&s[1]&&(i=et(t,e,s),r="number"),null!=i&&i==i&&("number"===r&&(i+=s&&s[3]||(k.cssNumber[o]?"":"px")),g.clearCloneStyle||""!==i||0!==e.indexOf("background")||(h[e]="inherit"),a&&"set"in a&&void 0===(i=a.set(t,i,n))||(l?h.setProperty(e,i):h[e]=i))}},css:function(t,e,i,n){var s,r=k.camelCase(e);return Wt.test(e)||(e=Zt(r)),"normal"===(s=void 0===(s=(r=k.cssHooks[e]||k.cssHooks[r])&&"get"in r?r.get(t,!0,i):s)?Bt(t,e,n):s)&&e in Yt&&(s=Yt[e]),""===i||i?(e=parseFloat(s),!0===i||isFinite(e)?e||0:s):s}}),k.each(["height","width"],function(t,r){k.cssHooks[r]={get:function(t,e,i){if(e)return!Ht.test(k.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?Qt(t,r,i):K(t,Xt,function(){return Qt(t,r,i)})},set:function(t,e,i){var n,s=i&&Dt(t),s=i&&Kt(t,r,i,"border-box"===k.css(t,"boxSizing",!1,s),s);return s&&(n=J.exec(e))&&"px"!==(n[3]||"px")&&(t.style[r]=e,e=k.css(t,r)),$t(0,e,s)}}}),k.cssHooks.marginLeft=qt(g.reliableMarginLeft,function(t,e){if(e)return(parseFloat(Bt(t,"marginLeft"))||t.getBoundingClientRect().left-K(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),k.each({margin:"",padding:"",border:"Width"},function(s,r){k.cssHooks[s+r]={expand:function(t){for(var e=0,i={},n="string"==typeof t?t.split(" "):[t];e<4;e++)i[s+tt[e]+r]=n[e]||n[e-2]||n[0];return i}},Vt.test(s)||(k.cssHooks[s+r].set=$t)}),k.fn.extend({css:function(t,e){return q(this,function(t,e,i){var n,s,r={},a=0;if(Array.isArray(e)){for(n=Dt(t),s=e.length;a<s;a++)r[e[a]]=k.css(t,e[a],!1,n);return r}return void 0!==i?k.style(t,e,i):k.css(t,e)},t,e,1<arguments.length)}}),((k.Tween=Jt).prototype={constructor:Jt,init:function(t,e,i,n,s,r){this.elem=t,this.prop=i,this.easing=s||k.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=r||(k.cssNumber[i]?"":"px")},cur:function(){var t=Jt.propHooks[this.prop];return(t&&t.get?t:Jt.propHooks._default).get(this)},run:function(t){var e,i=Jt.propHooks[this.prop];return this.options.duration?this.pos=e=k.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),(i&&i.set?i:Jt.propHooks._default).set(this),this}}).init.prototype=Jt.prototype,(Jt.propHooks={_default:{get:function(t){return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(t=k.css(t.elem,t.prop,""))&&"auto"!==t?t:0},set:function(t){k.fx.step[t.prop]?k.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[k.cssProps[t.prop]]&&!k.cssHooks[t.prop]?t.elem[t.prop]=t.now:k.style(t.elem,t.prop,t.now+t.unit)}}}).scrollTop=Jt.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},k.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},k.fx=Jt.prototype.init,k.fx.step={};var te,ee,ie=/^(?:toggle|show|hide)$/,ne=/queueHooks$/;function se(){ee&&(!1===T.hidden&&w.requestAnimationFrame?w.requestAnimationFrame(se):w.setTimeout(se,k.fx.interval),k.fx.tick())}function re(){return w.setTimeout(function(){te=void 0}),te=k.now()}function ae(t,e){var i,n=0,s={height:t};for(e=e?1:0;n<4;n+=2-e)s["margin"+(i=tt[n])]=s["padding"+i]=t;return e&&(s.opacity=s.width=t),s}function oe(t,e,i){for(var n,s=(le.tweeners[e]||[]).concat(le.tweeners["*"]),r=0,a=s.length;r<a;r++)if(n=s[r].call(i,e,t))return n}function le(s,t,e){var i,r,n=0,a=le.prefilters.length,o=k.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var t=te||re(),t=Math.max(0,h.startTime+h.duration-t),e=1-(t/h.duration||0),i=0,n=h.tweens.length;i<n;i++)h.tweens[i].run(e);return o.notifyWith(s,[h,e,t]),e<1&&n?t:(n||o.notifyWith(s,[h,1,0]),o.resolveWith(s,[h]),!1)},h=o.promise({elem:s,props:k.extend({},t),opts:k.extend(!0,{specialEasing:{},easing:k.easing._default},e),originalProperties:t,originalOptions:e,startTime:te||re(),duration:e.duration,tweens:[],createTween:function(t,e){t=k.Tween(s,h.opts,t,e,h.opts.specialEasing[t]||h.opts.easing);return h.tweens.push(t),t},stop:function(t){var e=0,i=t?h.tweens.length:0;if(r)return this;for(r=!0;e<i;e++)h.tweens[e].run(1);return t?(o.notifyWith(s,[h,1,0]),o.resolveWith(s,[h,t])):o.rejectWith(s,[h,t]),this}}),p=h.props;for(!function(t,e){var i,n,s,r,a;for(i in t)if(s=e[n=k.camelCase(i)],r=t[i],Array.isArray(r)&&(s=r[1],r=t[i]=r[0]),i!==n&&(t[n]=r,delete t[i]),(a=k.cssHooks[n])&&"expand"in a)for(i in r=a.expand(r),delete t[n],r)i in t||(t[i]=r[i],e[i]=s);else e[n]=s}(p,h.opts.specialEasing);n<a;n++)if(i=le.prefilters[n].call(h,s,p,h.opts))return k.isFunction(i.stop)&&(k._queueHooks(h.elem,h.opts.queue).stop=k.proxy(i.stop,i)),i;return k.map(p,oe,h),k.isFunction(h.opts.start)&&h.opts.start.call(s,h),h.progress(h.opts.progress).done(h.opts.done,h.opts.complete).fail(h.opts.fail).always(h.opts.always),k.fx.timer(k.extend(l,{elem:s,anim:h,queue:h.opts.queue})),h}k.Animation=k.extend(le,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return et(i.elem,t,J.exec(e),i),i}]},tweener:function(t,e){for(var i,n=0,s=(t=k.isFunction(t)?(e=t,["*"]):t.match(L)).length;n<s;n++)i=t[n],le.tweeners[i]=le.tweeners[i]||[],le.tweeners[i].unshift(e)},prefilters:[function(t,e,i){var n,s,r,a,o,l,h,p="width"in e||"height"in e,u=this,c={},f=t.style,d=t.nodeType&&$(t),m=X.get(t,"fxshow");for(n in i.queue||(null==(a=k._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,o=a.empty.fire,a.empty.fire=function(){a.unqueued||o()}),a.unqueued++,u.always(function(){u.always(function(){a.unqueued--,k.queue(t,"fx").length||a.empty.fire()})})),e)if(s=e[n],ie.test(s)){if(delete e[n],r=r||"toggle"===s,s===(d?"hide":"show")){if("show"!==s||!m||void 0===m[n])continue;d=!0}c[n]=m&&m[n]||k.style(t,n)}if((l=!k.isEmptyObject(e))||!k.isEmptyObject(c))for(n in p&&1===t.nodeType&&(i.overflow=[f.overflow,f.overflowX,f.overflowY],null==(h=m&&m.display)&&(h=X.get(t,"display")),"none"===(p=k.css(t,"display"))&&(h?p=h:(nt([t],!0),h=t.style.display||h,p=k.css(t,"display"),nt([t]))),("inline"===p||"inline-block"===p&&null!=h)&&"none"===k.css(t,"float")&&(l||(u.done(function(){f.display=h}),null==h&&(p=f.display,h="none"===p?"":p)),f.display="inline-block")),i.overflow&&(f.overflow="hidden",u.always(function(){f.overflow=i.overflow[0],f.overflowX=i.overflow[1],f.overflowY=i.overflow[2]})),l=!1,c)l||(m?"hidden"in m&&(d=m.hidden):m=X.access(t,"fxshow",{display:h}),r&&(m.hidden=!d),d&&nt([t],!0),u.done(function(){for(n in d||nt([t]),X.remove(t,"fxshow"),c)k.style(t,n,c[n])})),l=oe(d?m[n]:0,n,u),n in m||(m[n]=l.start,d&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?le.prefilters.unshift(t):le.prefilters.push(t)}}),k.speed=function(t,e,i){var n=t&&"object"==typeof t?k.extend({},t):{complete:i||!i&&e||k.isFunction(t)&&t,duration:t,easing:i&&e||e&&!k.isFunction(e)&&e};return k.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in k.fx.speeds?n.duration=k.fx.speeds[n.duration]:n.duration=k.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){k.isFunction(n.old)&&n.old.call(this),n.queue&&k.dequeue(this,n.queue)},n},k.fn.extend({fadeTo:function(t,e,i,n){return this.filter($).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(e,t,i,n){var s=k.isEmptyObject(e),r=k.speed(t,i,n),n=function(){var t=le(this,k.extend({},e),r);(s||X.get(this,"finish"))&&t.stop(!0)};return n.finish=n,s||!1===r.queue?this.each(n):this.queue(r.queue,n)},stop:function(s,t,r){function a(t){var e=t.stop;delete t.stop,e(r)}return"string"!=typeof s&&(r=t,t=s,s=void 0),t&&!1!==s&&this.queue(s||"fx",[]),this.each(function(){var t=!0,e=null!=s&&s+"queueHooks",i=k.timers,n=X.get(this);if(e)n[e]&&n[e].stop&&a(n[e]);else for(e in n)n[e]&&n[e].stop&&ne.test(e)&&a(n[e]);for(e=i.length;e--;)i[e].elem!==this||null!=s&&i[e].queue!==s||(i[e].anim.stop(r),t=!1,i.splice(e,1));!t&&r||k.dequeue(this,s)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var t,e=X.get(this),i=e[a+"queue"],n=e[a+"queueHooks"],s=k.timers,r=i?i.length:0;for(e.finish=!0,k.queue(this,a,[]),n&&n.stop&&n.stop.call(this,!0),t=s.length;t--;)s[t].elem===this&&s[t].queue===a&&(s[t].anim.stop(!0),s.splice(t,1));for(t=0;t<r;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete e.finish})}}),k.each(["toggle","show","hide"],function(t,n){var s=k.fn[n];k.fn[n]=function(t,e,i){return null==t||"boolean"==typeof t?s.apply(this,arguments):this.animate(ae(n,!0),t,e,i)}}),k.each({slideDown:ae("show"),slideUp:ae("hide"),slideToggle:ae("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,n){k.fn[t]=function(t,e,i){return this.animate(n,t,e,i)}}),k.timers=[],k.fx.tick=function(){var t,e=0,i=k.timers;for(te=k.now();e<i.length;e++)(t=i[e])()||i[e]!==t||i.splice(e--,1);i.length||k.fx.stop(),te=void 0},k.fx.timer=function(t){k.timers.push(t),k.fx.start()},k.fx.interval=13,k.fx.start=function(){ee||(ee=!0,se())},k.fx.stop=function(){ee=null},k.fx.speeds={slow:600,fast:200,_default:400},k.fn.delay=function(n,t){return n=k.fx&&k.fx.speeds[n]||n,this.queue(t=t||"fx",function(t,e){var i=w.setTimeout(t,n);e.stop=function(){w.clearTimeout(i)}})},e=T.createElement("input"),Q=T.createElement("select").appendChild(T.createElement("option")),e.type="checkbox",g.checkOn=""!==e.value,g.optSelected=Q.selected,(e=T.createElement("input")).value="t",e.type="radio",g.radioValue="t"===e.value;var he,pe=k.expr.attrHandle;k.fn.extend({attr:function(t,e){return q(this,k.attr,t,e,1<arguments.length)},removeAttr:function(t){return this.each(function(){k.removeAttr(this,t)})}}),k.extend({attr:function(t,e,i){var n,s,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===t.getAttribute?k.prop(t,e,i):(1===r&&k.isXMLDoc(t)||(s=k.attrHooks[e.toLowerCase()]||(k.expr.match.bool.test(e)?he:void 0)),void 0!==i?null===i?void k.removeAttr(t,e):s&&"set"in s&&void 0!==(n=s.set(t,i,e))?n:(t.setAttribute(e,i+""),i):!(s&&"get"in s&&null!==(n=s.get(t,e)))&&null==(n=k.find.attr(t,e))?void 0:n)},attrHooks:{type:{set:function(t,e){if(!g.radioValue&&"radio"===e&&A(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,n=0,s=e&&e.match(L);if(s&&1===t.nodeType)for(;i=s[n++];)t.removeAttribute(i)}}),he={set:function(t,e,i){return!1===e?k.removeAttr(t,i):t.setAttribute(i,i),i}},k.each(k.expr.match.bool.source.match(/\w+/g),function(t,e){var a=pe[e]||k.find.attr;pe[e]=function(t,e,i){var n,s,r=e.toLowerCase();return i||(s=pe[r],pe[r]=n,n=null!=a(t,e,i)?r:null,pe[r]=s),n}});var ue=/^(?:input|select|textarea|button)$/i,ce=/^(?:a|area)$/i;function fe(t){return(t.match(L)||[]).join(" ")}function de(t){return t.getAttribute&&t.getAttribute("class")||""}k.fn.extend({prop:function(t,e){return q(this,k.prop,t,e,1<arguments.length)},removeProp:function(t){return this.each(function(){delete this[k.propFix[t]||t]})}}),k.extend({prop:function(t,e,i){var n,s,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&k.isXMLDoc(t)||(e=k.propFix[e]||e,s=k.propHooks[e]),void 0!==i?s&&"set"in s&&void 0!==(n=s.set(t,i,e))?n:t[e]=i:s&&"get"in s&&null!==(n=s.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=k.find.attr(t,"tabindex");return e?parseInt(e,10):ue.test(t.nodeName)||ce.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(k.propHooks.selected={get:function(t){t=t.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(t){t=t.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){k.propFix[this.toLowerCase()]=this}),k.fn.extend({addClass:function(e){var t,i,n,s,r,a,o=0;if(k.isFunction(e))return this.each(function(t){k(this).addClass(e.call(this,t,de(this)))});if("string"==typeof e&&e)for(t=e.match(L)||[];i=this[o++];)if(a=de(i),n=1===i.nodeType&&" "+fe(a)+" "){for(r=0;s=t[r++];)n.indexOf(" "+s+" ")<0&&(n+=s+" ");a!==(a=fe(n))&&i.setAttribute("class",a)}return this},removeClass:function(e){var t,i,n,s,r,a,o=0;if(k.isFunction(e))return this.each(function(t){k(this).removeClass(e.call(this,t,de(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(L)||[];i=this[o++];)if(a=de(i),n=1===i.nodeType&&" "+fe(a)+" "){for(r=0;s=t[r++];)for(;-1<n.indexOf(" "+s+" ");)n=n.replace(" "+s+" "," ");a!==(a=fe(n))&&i.setAttribute("class",a)}return this},toggleClass:function(s,e){var r=typeof s;return"boolean"==typeof e&&"string"==r?e?this.addClass(s):this.removeClass(s):k.isFunction(s)?this.each(function(t){k(this).toggleClass(s.call(this,t,de(this),e),e)}):this.each(function(){var t,e,i,n;if("string"==r)for(e=0,i=k(this),n=s.match(L)||[];t=n[e++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==s&&"boolean"!=r||((t=de(this))&&X.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",!t&&!1!==s&&X.get(this,"__className__")||""))})},hasClass:function(t){for(var e,i=0,n=" "+t+" ";e=this[i++];)if(1===e.nodeType&&-1<(" "+fe(de(e))+" ").indexOf(n))return!0;return!1}});var me=/\r/g;k.fn.extend({val:function(e){var i,t,n,s=this[0];return arguments.length?(n=k.isFunction(e),this.each(function(t){1===this.nodeType&&(null==(t=n?e.call(this,t,k(this).val()):e)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=k.map(t,function(t){return null==t?"":t+""})),(i=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in i&&void 0!==i.set(this,t,"value")||(this.value=t))})):s?(i=k.valHooks[s.type]||k.valHooks[s.nodeName.toLowerCase()])&&"get"in i&&void 0!==(t=i.get(s,"value"))?t:"string"==typeof(t=s.value)?t.replace(me,""):null==t?"":t:void 0}}),k.extend({valHooks:{option:{get:function(t){var e=k.find.attr(t,"value");return null!=e?e:fe(k.text(t))}},select:{get:function(t){for(var e,i=t.options,n=t.selectedIndex,s="select-one"===t.type,r=s?null:[],a=s?n+1:i.length,o=n<0?a:s?n:0;o<a;o++)if(((e=i[o]).selected||o===n)&&!e.disabled&&(!e.parentNode.disabled||!A(e.parentNode,"optgroup"))){if(e=k(e).val(),s)return e;r.push(e)}return r},set:function(t,e){for(var i,n,s=t.options,r=k.makeArray(e),a=s.length;a--;)((n=s[a]).selected=-1<k.inArray(k.valHooks.option.get(n),r))&&(i=!0);return i||(t.selectedIndex=-1),r}}}}),k.each(["radio","checkbox"],function(){k.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=-1<k.inArray(k(t).val(),e)}},g.checkOn||(k.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var ge=/^(?:focusinfocus|focusoutblur)$/;k.extend(k.event,{trigger:function(t,e,i,n){var s,r,a,o,l,h,p=[i||T],u=d.call(t,"type")?t.type:t,c=d.call(t,"namespace")?t.namespace.split("."):[],f=r=i=i||T;if(3!==i.nodeType&&8!==i.nodeType&&!ge.test(u+k.event.triggered)&&(-1<u.indexOf(".")&&(u=(c=u.split(".")).shift(),c.sort()),o=u.indexOf(":")<0&&"on"+u,(t=t[k.expando]?t:new k.Event(u,"object"==typeof t&&t)).isTrigger=n?2:3,t.namespace=c.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+c.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),e=null==e?[t]:k.makeArray(e,[t]),h=k.event.special[u]||{},n||!h.trigger||!1!==h.trigger.apply(i,e))){if(!n&&!h.noBubble&&!k.isWindow(i)){for(a=h.delegateType||u,ge.test(a+u)||(f=f.parentNode);f;f=f.parentNode)p.push(f),r=f;r===(i.ownerDocument||T)&&p.push(r.defaultView||r.parentWindow||w)}for(s=0;(f=p[s++])&&!t.isPropagationStopped();)t.type=1<s?a:h.bindType||u,(l=(X.get(f,"events")||{})[t.type]&&X.get(f,"handle"))&&l.apply(f,e),(l=o&&f[o])&&l.apply&&H(f)&&(t.result=l.apply(f,e),!1===t.result&&t.preventDefault());return t.type=u,n||t.isDefaultPrevented()||h._default&&!1!==h._default.apply(p.pop(),e)||!H(i)||o&&k.isFunction(i[u])&&!k.isWindow(i)&&((r=i[o])&&(i[o]=null),i[k.event.triggered=u](),k.event.triggered=void 0,r&&(i[o]=r)),t.result}},simulate:function(t,e,i){t=k.extend(new k.Event,i,{type:t,isSimulated:!0});k.event.trigger(t,null,e)}}),k.fn.extend({trigger:function(t,e){return this.each(function(){k.event.trigger(t,e,this)})},triggerHandler:function(t,e){var i=this[0];if(i)return k.event.trigger(t,e,i,!0)}}),k.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,i){k.fn[i]=function(t,e){return 0<arguments.length?this.on(i,null,t,e):this.trigger(i)}}),k.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),g.focusin="onfocusin"in w,g.focusin||k.each({focus:"focusin",blur:"focusout"},function(i,n){function s(t){k.event.simulate(n,t.target,k.event.fix(t))}k.event.special[n]={setup:function(){var t=this.ownerDocument||this,e=X.access(t,n);e||t.addEventListener(i,s,!0),X.access(t,n,(e||0)+1)},teardown:function(){var t=this.ownerDocument||this,e=X.access(t,n)-1;e?X.access(t,n,e):(t.removeEventListener(i,s,!0),X.remove(t,n))}}});var ye=w.location,ve=k.now(),_e=/\?/;k.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new w.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||k.error("Invalid XML: "+t),e};var be=/\[\]$/,xe=/\r?\n/g,we=/^(?:submit|button|image|reset|file)$/i,Te=/^(?:input|select|textarea|keygen)/i;k.param=function(t,e){function i(t,e){e=k.isFunction(e)?e():e,s[s.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==e?"":e)}var n,s=[];if(Array.isArray(t)||t.jquery&&!k.isPlainObject(t))k.each(t,function(){i(this.name,this.value)});else for(n in t)!function i(n,t,s,r){if(Array.isArray(t))k.each(t,function(t,e){s||be.test(n)?r(n,e):i(n+"["+("object"==typeof e&&null!=e?t:"")+"]",e,s,r)});else if(s||"object"!==k.type(t))r(n,t);else for(var e in t)i(n+"["+e+"]",t[e],s,r)}(n,t[n],e,i);return s.join("&")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=k.prop(this,"elements");return t?k.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!k(this).is(":disabled")&&Te.test(this.nodeName)&&!we.test(t)&&(this.checked||!st.test(t))}).map(function(t,e){var i=k(this).val();return null==i?null:Array.isArray(i)?k.map(i,function(t){return{name:e.name,value:t.replace(xe,"\r\n")}}):{name:e.name,value:i.replace(xe,"\r\n")}}).get()}});var ke=/%20/g,Pe=/#.*$/,Ae=/([?&])_=[^&]*/,Se=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ee=/^(?:GET|HEAD)$/,Ce=/^\/\//,Me={},De={},Fe="*/".concat("*"),Ie=T.createElement("a");function Oe(r){return function(t,e){"string"!=typeof t&&(e=t,t="*");var i,n=0,s=t.toLowerCase().match(L)||[];if(k.isFunction(e))for(;i=s[n++];)"+"===i[0]?(i=i.slice(1)||"*",(r[i]=r[i]||[]).unshift(e)):(r[i]=r[i]||[]).push(e)}}function Le(e,n,s,r){var a={},o=e===De;function l(t){var i;return a[t]=!0,k.each(e[t]||[],function(t,e){e=e(n,s,r);return"string"!=typeof e||o||a[e]?o?!(i=e):void 0:(n.dataTypes.unshift(e),l(e),!1)}),i}return l(n.dataTypes[0])||!a["*"]&&l("*")}function Ne(t,e){var i,n,s=k.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((s[i]?t:n=n||{})[i]=e[i]);return n&&k.extend(!0,t,n),t}Ie.href=ye.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ye.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ye.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Fe,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ne(Ne(t,k.ajaxSettings),e):Ne(k.ajaxSettings,t)},ajaxPrefilter:Oe(Me),ajaxTransport:Oe(De),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0);var l,h,p,i,u,c,f,n,s,d=k.ajaxSetup({},e=e||{}),m=d.context||d,g=d.context&&(m.nodeType||m.jquery)?k(m):k.event,y=k.Deferred(),v=k.Callbacks("once memory"),_=d.statusCode||{},r={},a={},o="canceled",b={readyState:0,getResponseHeader:function(t){var e;if(c){if(!i)for(i={};e=Se.exec(p);)i[e[1].toLowerCase()]=e[2];e=i[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return c?p:null},setRequestHeader:function(t,e){return null==c&&(t=a[t.toLowerCase()]=a[t.toLowerCase()]||t,r[t]=e),this},overrideMimeType:function(t){return null==c&&(d.mimeType=t),this},statusCode:function(t){if(t)if(c)b.always(t[b.status]);else for(var e in t)_[e]=[_[e],t[e]];return this},abort:function(t){t=t||o;return l&&l.abort(t),x(0,t),this}};if(y.promise(b),d.url=((t||d.url||ye.href)+"").replace(Ce,ye.protocol+"//"),d.type=e.method||e.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(L)||[""],null==d.crossDomain){s=T.createElement("a");try{s.href=d.url,s.href=s.href,d.crossDomain=Ie.protocol+"//"+Ie.host!=s.protocol+"//"+s.host}catch(t){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=k.param(d.data,d.traditional)),Le(Me,d,e,b),c)return b;for(n in(f=k.event&&d.global)&&0==k.active++&&k.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Ee.test(d.type),h=d.url.replace(Pe,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(ke,"+")):(s=d.url.slice(h.length),d.data&&(h+=(_e.test(h)?"&":"?")+d.data,delete d.data),!1===d.cache&&(h=h.replace(Ae,"$1"),s=(_e.test(h)?"&":"?")+"_="+ve+++s),d.url=h+s),d.ifModified&&(k.lastModified[h]&&b.setRequestHeader("If-Modified-Since",k.lastModified[h]),k.etag[h]&&b.setRequestHeader("If-None-Match",k.etag[h])),(d.data&&d.hasContent&&!1!==d.contentType||e.contentType)&&b.setRequestHeader("Content-Type",d.contentType),b.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Fe+"; q=0.01":""):d.accepts["*"]),d.headers)b.setRequestHeader(n,d.headers[n]);if(d.beforeSend&&(!1===d.beforeSend.call(m,b,d)||c))return b.abort();if(o="abort",v.add(d.complete),b.done(d.success),b.fail(d.error),l=Le(De,d,e,b)){if(b.readyState=1,f&&g.trigger("ajaxSend",[b,d]),c)return b;d.async&&0<d.timeout&&(u=w.setTimeout(function(){b.abort("timeout")},d.timeout));try{c=!1,l.send(r,x)}catch(t){if(c)throw t;x(-1,t)}}else x(-1,"No Transport");function x(t,e,i,n){var s,r,a,o=e;c||(c=!0,u&&w.clearTimeout(u),l=void 0,p=n||"",b.readyState=0<t?4:0,n=200<=t&&t<300||304===t,i&&(a=function(t,e,i){for(var n,s,r,a,o=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(s in o)if(o[s]&&o[s].test(n)){l.unshift(s);break}if(l[0]in i)r=l[0];else{for(s in i){if(!l[0]||t.converters[s+" "+l[0]]){r=s;break}a=a||s}r=r||a}if(r)return r!==l[0]&&l.unshift(r),i[r]}(d,b,i)),a=function(t,e,i,n){var s,r,a,o,l,h={},p=t.dataTypes.slice();if(p[1])for(a in t.converters)h[a.toLowerCase()]=t.converters[a];for(r=p.shift();r;)if(t.responseFields[r]&&(i[t.responseFields[r]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=r,r=p.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(a=h[l+" "+r]||h["* "+r]))for(s in h)if((o=s.split(" "))[1]===r&&(a=h[l+" "+o[0]]||h["* "+o[0]])){!0===a?a=h[s]:!0!==h[s]&&(r=o[0],p.unshift(o[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+l+" to "+r}}}return{state:"success",data:e}}(d,a,b,n),n?(d.ifModified&&((i=b.getResponseHeader("Last-Modified"))&&(k.lastModified[h]=i),(i=b.getResponseHeader("etag"))&&(k.etag[h]=i)),204===t||"HEAD"===d.type?o="nocontent":304===t?o="notmodified":(o=a.state,s=a.data,n=!(r=a.error))):(r=o,!t&&o||(o="error",t<0&&(t=0))),b.status=t,b.statusText=(e||o)+"",n?y.resolveWith(m,[s,o,b]):y.rejectWith(m,[b,o,r]),b.statusCode(_),_=void 0,f&&g.trigger(n?"ajaxSuccess":"ajaxError",[b,d,n?s:r]),v.fireWith(m,[b,o]),f&&(g.trigger("ajaxComplete",[b,d]),--k.active||k.event.trigger("ajaxStop")))}return b},getJSON:function(t,e,i){return k.get(t,e,i,"json")},getScript:function(t,e){return k.get(t,void 0,e,"script")}}),k.each(["get","post"],function(t,s){k[s]=function(t,e,i,n){return k.isFunction(e)&&(n=n||i,i=e,e=void 0),k.ajax(k.extend({url:t,type:s,dataType:n,data:e,success:i},k.isPlainObject(t)&&t))}}),k._evalUrl=function(t){return k.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},k.fn.extend({wrapAll:function(t){return this[0]&&(k.isFunction(t)&&(t=t.call(this[0])),t=k(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(i){return k.isFunction(i)?this.each(function(t){k(this).wrapInner(i.call(this,t))}):this.each(function(){var t=k(this),e=t.contents();e.length?e.wrapAll(i):t.append(i)})},wrap:function(e){var i=k.isFunction(e);return this.each(function(t){k(this).wrapAll(i?e.call(this,t):e)})},unwrap:function(t){return this.parent(t).not("body").each(function(){k(this).replaceWith(this.childNodes)}),this}}),k.expr.pseudos.hidden=function(t){return!k.expr.pseudos.visible(t)},k.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new w.XMLHttpRequest}catch(t){}};var Re={0:200,1223:204},Ve=k.ajaxSettings.xhr();g.cors=!!Ve&&"withCredentials"in Ve,g.ajax=Ve=!!Ve,k.ajaxTransport(function(s){var r,a;if(g.cors||Ve&&!s.crossDomain)return{send:function(t,e){var i,n=s.xhr();if(n.open(s.type,s.url,s.async,s.username,s.password),s.xhrFields)for(i in s.xhrFields)n[i]=s.xhrFields[i];for(i in s.mimeType&&n.overrideMimeType&&n.overrideMimeType(s.mimeType),s.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t)n.setRequestHeader(i,t[i]);r=function(t){return function(){r&&(r=a=n.onload=n.onerror=n.onabort=n.onreadystatechange=null,"abort"===t?n.abort():"error"===t?"number"!=typeof n.status?e(0,"error"):e(n.status,n.statusText):e(Re[n.status]||n.status,n.statusText,"text"!==(n.responseType||"text")||"string"!=typeof n.responseText?{binary:n.response}:{text:n.responseText},n.getAllResponseHeaders()))}},n.onload=r(),a=n.onerror=r("error"),void 0!==n.onabort?n.onabort=a:n.onreadystatechange=function(){4===n.readyState&&w.setTimeout(function(){r&&a()})},r=r("abort");try{n.send(s.hasContent&&s.data||null)}catch(t){if(r)throw t}},abort:function(){r&&r()}}}),k.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return k.globalEval(t),t}}}),k.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),k.ajaxTransport("script",function(i){var n,s;if(i.crossDomain)return{send:function(t,e){n=k("<script>").prop({charset:i.scriptCharset,src:i.url}).on("load error",s=function(t){n.remove(),s=null,t&&e("error"===t.type?404:200,t.type)}),T.head.appendChild(n[0])},abort:function(){s&&s()}}});var je=[],ze=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=je.pop()||k.expando+"_"+ve++;return this[t]=!0,t}}),k.ajaxPrefilter("json jsonp",function(t,e,i){var n,s,r,a=!1!==t.jsonp&&(ze.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&ze.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return n=t.jsonpCallback=k.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(ze,"$1"+n):!1!==t.jsonp&&(t.url+=(_e.test(t.url)?"&":"?")+t.jsonp+"="+n),t.converters["script json"]=function(){return r||k.error(n+" was not called"),r[0]},t.dataTypes[0]="json",s=w[n],w[n]=function(){r=arguments},i.always(function(){void 0===s?k(w).removeProp(n):w[n]=s,t[n]&&(t.jsonpCallback=e.jsonpCallback,je.push(n)),r&&k.isFunction(s)&&s(r[0]),r=s=void 0}),"script"}),g.createHTMLDocument=((e=T.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===e.childNodes.length),k.parseHTML=function(t,e,i){return"string"!=typeof t?[]:("boolean"==typeof e&&(i=e,e=!1),e||(g.createHTMLDocument?((n=(e=T.implementation.createHTMLDocument("")).createElement("base")).href=T.location.href,e.head.appendChild(n)):e=T),n=!i&&[],(i=S.exec(t))?[e.createElement(i[1])]:(i=ut([t],e,n),n&&n.length&&k(n).remove(),k.merge([],i.childNodes)));var n},k.fn.load=function(t,e,i){var n,s,r,a=this,o=t.indexOf(" ");return-1<o&&(n=fe(t.slice(o)),t=t.slice(0,o)),k.isFunction(e)?(i=e,e=void 0):e&&"object"==typeof e&&(s="POST"),0<a.length&&k.ajax({url:t,type:s||"GET",dataType:"html",data:e}).done(function(t){r=arguments,a.html(n?k("<div>").append(k.parseHTML(t)).find(n):t)}).always(i&&function(t,e){a.each(function(){i.apply(this,r||[t.responseText,e,t])})}),this},k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){k.fn[e]=function(t){return this.on(e,t)}}),k.expr.pseudos.animated=function(e){return k.grep(k.timers,function(t){return e===t.elem}).length},k.offset={setOffset:function(t,e,i){var n,s,r,a,o=k.css(t,"position"),l=k(t),h={};"static"===o&&(t.style.position="relative"),r=l.offset(),n=k.css(t,"top"),a=k.css(t,"left"),a=("absolute"===o||"fixed"===o)&&-1<(n+a).indexOf("auto")?(s=(o=l.position()).top,o.left):(s=parseFloat(n)||0,parseFloat(a)||0),null!=(e=k.isFunction(e)?e.call(t,i,k.extend({},r)):e).top&&(h.top=e.top-r.top+s),null!=e.left&&(h.left=e.left-r.left+a),"using"in e?e.using.call(t,h):l.css(h)}},k.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){k.offset.setOffset(this,e,t)});var t,i,n=this[0];return n?n.getClientRects().length?(t=n.getBoundingClientRect(),n=(i=n.ownerDocument).documentElement,i=i.defaultView,{top:t.top+i.pageYOffset-n.clientTop,left:t.left+i.pageXOffset-n.clientLeft}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,i=this[0],n={top:0,left:0};return"fixed"===k.css(i,"position")?e=i.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),n={top:(n=!A(t[0],"html")?t.offset():n).top+k.css(t[0],"borderTopWidth",!0),left:n.left+k.css(t[0],"borderLeftWidth",!0)}),{top:e.top-n.top-k.css(i,"marginTop",!0),left:e.left-n.left-k.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===k.css(t,"position");)t=t.offsetParent;return t||ct})}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,s){var r="pageYOffset"===s;k.fn[e]=function(t){return q(this,function(t,e,i){var n;return k.isWindow(t)?n=t:9===t.nodeType&&(n=t.defaultView),void 0===i?n?n[s]:t[e]:void(n?n.scrollTo(r?n.pageXOffset:i,r?i:n.pageYOffset):t[e]=i)},e,t,arguments.length)}}),k.each(["top","left"],function(t,i){k.cssHooks[i]=qt(g.pixelPosition,function(t,e){if(e)return e=Bt(t,i),jt.test(e)?k(t).position()[i]+"px":e})}),k.each({Height:"height",Width:"width"},function(a,o){k.each({padding:"inner"+a,content:o,"":"outer"+a},function(n,r){k.fn[r]=function(t,e){var i=arguments.length&&(n||"boolean"!=typeof t),s=n||(!0===t||!0===e?"margin":"border");return q(this,function(t,e,i){var n;return k.isWindow(t)?0===r.indexOf("outer")?t["inner"+a]:t.document.documentElement["client"+a]:9===t.nodeType?(n=t.documentElement,Math.max(t.body["scroll"+a],n["scroll"+a],t.body["offset"+a],n["offset"+a],n["client"+a])):void 0===i?k.css(t,e,s):k.style(t,e,i,s)},o,i?t:void 0,i)}})}),k.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)}}),k.holdReady=function(t){t?k.readyWait++:k.ready(!0)},k.isArray=Array.isArray,k.parseJSON=JSON.parse,k.nodeName=A,"function"==typeof define&&define.amd&&define("jquery",[],function(){return k});var Be=w.jQuery,qe=w.$;return k.noConflict=function(t){return w.$===k&&(w.$=qe),t&&w.jQuery===k&&(w.jQuery=Be),k},t||(w.jQuery=w.$=k),k}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t.Vimeo=t.Vimeo||{},t.Vimeo.Player=e())}(this,function(){"use strict";var t="undefined"!=typeof global&&"[object global]"==={}.toString.call(global);function r(t,e){return 0===t.indexOf(e.toLowerCase())?t:""+e.toLowerCase()+t.substr(0,1).toUpperCase()+t.substr(1)}function o(t){return/^(https?:)?\/\/((player|www).)?vimeo.com(?=$|\/)/.test(t)}function a(t){var e=0<arguments.length&&void 0!==t?t:{},i=e.id,t=e.url,e=i||t;if(!e)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(t=e,!isNaN(parseFloat(t))&&isFinite(t)&&Math.floor(t)==t)return"https://vimeo.com/"+e;if(o(e))return e.replace("http:","https:");if(i)throw new TypeError("“"+i+"” is not a valid video id.");throw new TypeError("“"+e+"” is not a vimeo.com url.")}var e=void 0!==Array.prototype.indexOf,i="undefined"!=typeof window&&void 0!==window.postMessage;if(!(t||e&&i))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var b="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}n(function(t,e){function i(t,e){function i(t){if(!this||this.constructor!==i)return new i(t);this._keys=[],this._values=[],this._itp=[],this.objectOnly=e,t&&function(t){this.add?t.forEach(this.add,this):t.forEach(function(t){this.set(t[0],t[1])},this)}.call(this,t)}return e||y(t,"size",{get:f}),(t.constructor=i).prototype=t,i}function n(t){return this.has(t)&&(this._keys.splice(g,1),this._values.splice(g,1),this._itp.forEach(function(t){g<t[0]&&t[0]--})),-1<g}function s(t){return this.has(t)?this._values[g]:void 0}function r(t,e){if(this.objectOnly&&e!==Object(e))throw new TypeError("Invalid value used as weak collection key");if(e!=e||0===e)for(g=t.length;g--&&!v(t[g],e););else g=t.indexOf(e);return-1<g}function a(t){return r.call(this,this._values,t)}function o(t){return r.call(this,this._keys,t)}function l(t,e){return this.has(t)?this._values[g]=e:this._values[this._keys.push(t)-1]=e,this}function h(t){return this.has(t)||this._values.push(t),this}function p(){(this._keys||0).length=this._values.length=0}function u(){return c(this._itp,this._values)}function c(i,n,s){var r=[0],a=!1;return i.push(r),{next:function(){var t,e=r[0];return!a&&e<n.length?(t=s?[n[e],s[e]]:n[e],r[0]++):(a=!0,i.splice(i.indexOf(r),1)),{done:a,value:t}}}}function f(){return this._values.length}function d(t,e){for(var i=this.entries();;){var n=i.next();if(n.done)break;t.call(e,n.value[1],n.value[0],this)}}var m,g,y,v;m=void 0!==b?b:window,y=Object.defineProperty,v=function(t,e){return t===e||t!=t&&e!=e},"undefined"==typeof WeakMap&&(m.WeakMap=i({delete:n,clear:p,get:s,has:o,set:l},!0)),"undefined"!=typeof Map&&"function"==typeof(new Map).values&&(new Map).values().next||(m.Map=i({delete:n,has:o,get:s,set:l,keys:function(){return c(this._itp,this._keys)},values:u,entries:function(){return c(this._itp,this._keys,this._values)},forEach:d,clear:p})),"undefined"!=typeof Set&&"function"==typeof(new Set).values&&(new Set).values().next||(m.Set=i({has:a,add:h,delete:n,clear:p,keys:u,values:u,entries:function(){return c(this._itp,this._values,this._values)},forEach:d})),"undefined"==typeof WeakSet&&(m.WeakSet=i({delete:n,add:h,clear:p,has:a},!0))});var l=n(function(t){var e,i,n,_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};n=function(){var e,i,n,s,r,t=Object.prototype.toString,a="undefined"!=typeof setImmediate?function(t){return setImmediate(t)}:setTimeout;try{Object.defineProperty({},"x",{}),e=function(t,e,i,n){return Object.defineProperty(t,e,{value:i,writable:!0,configurable:!1!==n})}}catch(t){e=function(t,e,i){return t[e]=i,t}}function o(t,e){this.fn=t,this.self=e,this.next=void 0}function l(t,e){y.add(t,e),i=i||a(y.drain)}function h(t){var e,i=void 0===t?"undefined":_(t);return"function"==typeof(e=null!=t&&("object"==i||"function"==i)?t.then:e)&&e}function p(){for(var t=0;t<this.chain.length;t++)!function(t,e,i){var n,s;try{!1===e?i.reject(t.msg):(n=!0===e?t.msg:e.call(void 0,t.msg))===i.promise?i.reject(TypeError("Promise-chain cycle")):(s=h(n))?s.call(n,i.resolve,i.reject):i.resolve(n)}catch(t){i.reject(t)}}(this,1===this.state?this.chain[t].success:this.chain[t].failure,this.chain[t]);this.chain.length=0}function u(t){var i,n=this;if(!n.triggered){n.triggered=!0,n.def&&(n=n.def);try{(i=h(t))?l(function(){var e=new d(n);try{i.call(t,function(){u.apply(e,arguments)},function(){c.apply(e,arguments)})}catch(t){c.call(e,t)}}):(n.msg=t,n.state=1,0<n.chain.length&&l(p,n))}catch(t){c.call(new d(n),t)}}}function c(t){var e=this;e.triggered||(e.triggered=!0,(e=e.def?e.def:e).msg=t,e.state=2,0<e.chain.length&&l(p,e))}function f(t,i,n,s){for(var e=0;e<i.length;e++)!function(e){t.resolve(i[e]).then(function(t){n(e,t)},s)}(e)}function d(t){this.def=t,this.triggered=!1}function m(t){this.promise=t,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function g(t){if("function"!=typeof t)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var n=new m(this);this.then=function(t,e){var i={success:"function"!=typeof t||t,failure:"function"==typeof e&&e};return i.promise=new this.constructor(function(t,e){if("function"!=typeof t||"function"!=typeof e)throw TypeError("Not a function");i.resolve=t,i.reject=e}),n.chain.push(i),0!==n.state&&l(p,n),i.promise},this.catch=function(t){return this.then(void 0,t)};try{t.call(void 0,function(t){u.call(n,t)},function(t){c.call(n,t)})}catch(t){c.call(n,t)}}var y={add:function(t,e){r=new o(t,e),s?s.next=r:n=r,s=r,r=void 0},drain:function(){var t=n;for(n=s=i=void 0;t;)t.fn.call(t.self),t=t.next}},v=e({},"constructor",g,!1);return e(g.prototype=v,"__NPO__",0,!1),e(g,"resolve",function(i){return i&&"object"==(void 0===i?"undefined":_(i))&&1===i.__NPO__?i:new this(function(t,e){if("function"!=typeof t||"function"!=typeof e)throw TypeError("Not a function");t(i)})}),e(g,"reject",function(i){return new this(function(t,e){if("function"!=typeof t||"function"!=typeof e)throw TypeError("Not a function");e(i)})}),e(g,"all",function(e){var a=this;return"[object Array]"!=t.call(e)?a.reject(TypeError("Not an array")):0===e.length?a.resolve([]):new a(function(i,t){if("function"!=typeof i||"function"!=typeof t)throw TypeError("Not a function");var n=e.length,s=Array(n),r=0;f(a,e,function(t,e){s[t]=e,++r===n&&i(s)},t)})}),e(g,"race",function(e){var n=this;return"[object Array]"!=t.call(e)?n.reject(TypeError("Not an array")):new n(function(i,t){if("function"!=typeof i||"function"!=typeof t)throw TypeError("Not a function");f(n,e,function(t,e){i(e)},t)})}),g},(i=b)[e="Promise"]=i[e]||n(),t.exports&&(t.exports=i[e])}),h=new WeakMap;function p(t,e,i){var n=h.get(t.element)||{};e in n||(n[e]=[]),n[e].push(i),h.set(t.element,n)}function u(t,e){return(h.get(t.element)||{})[e]||[]}function c(t,e,i){var n=h.get(t.element)||{};if(!n[e])return!0;if(!i)return n[e]=[],h.set(t.element,n),!0;i=n[e].indexOf(i);return-1!==i&&n[e].splice(i,1),h.set(t.element,n),n[e]&&0===n[e].length}var s=["id","url","width","maxwidth","height","maxheight","portrait","title","byline","color","autoplay","autopause","loop","responsive","speed","background","transparent"];function f(n,t){return s.reduce(function(t,e){var i=n.getAttribute("data-vimeo-"+e);return!i&&""!==i||(t[e]=""===i?1:i),t},1<arguments.length&&void 0!==t?t:{})}function d(r,t){var a=1<arguments.length&&void 0!==t?t:{};return new Promise(function(e,i){if(!o(r))throw new TypeError("“"+r+"” is not a vimeo.com url.");var t,n="https://vimeo.com/api/oembed.json?url="+encodeURIComponent(r);for(t in a)a.hasOwnProperty(t)&&(n+="&"+t+"="+encodeURIComponent(a[t]));var s=new("XDomainRequest"in window?XDomainRequest:XMLHttpRequest);s.open("GET",n,!0),s.onload=function(){if(404!==s.status)if(403!==s.status)try{var t=JSON.parse(s.responseText);e(t)}catch(t){i(t)}else i(new Error("“"+r+"” is not embeddable."));else i(new Error("“"+r+"” was not found."))},s.onerror=function(){var t=s.status?" ("+s.status+")":"";i(new Error("There was an error fetching the embed code from Vimeo"+t+"."))},s.send()})}function m(t,e){var i=t.html;if(!e)throw new TypeError("An element must be provided");if(null!==e.getAttribute("data-vimeo-initialized"))return e.querySelector("iframe");t=document.createElement("div");return t.innerHTML=i,e.appendChild(t.firstChild),e.setAttribute("data-vimeo-initialized","true"),e.querySelector("iframe")}function g(t){function i(t){"console"in window&&console.error&&console.error("There was an error creating an embed: "+t)}t=0<arguments.length&&void 0!==t?t:document,t=[].slice.call(t.querySelectorAll("[data-vimeo-id], [data-vimeo-url]"));t.forEach(function(e){try{if(null!==e.getAttribute("data-vimeo-defer"))return;var t=f(e);d(a(t),t).then(function(t){return m(t,e)}).catch(i)}catch(t){i(t)}})}function y(t){return t="string"==typeof t?JSON.parse(t):t}function v(t,e,i){t.element.contentWindow&&t.element.contentWindow.postMessage&&(e={method:e},void 0!==i&&(e.value=i),8<=(i=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1")))&&i<10&&(e=JSON.stringify(e)),t.element.contentWindow.postMessage(e,t.origin))}function _(i,n){n=y(n);var t,e,s,r=[],a=void 0;n.event?("error"===n.event&&u(i,n.data.method).forEach(function(t){var e=new Error(n.data.message);e.name=n.data.name,t.reject(e),c(i,n.data.method,t)}),r=u(i,"event:"+n.event),a=n.data):n.method&&(t=i,e=n.method,(s=!((s=u(t,e)).length<1)&&(s=s.shift(),c(t,e,s),s))&&(r.push(s),a=n.value)),r.forEach(function(t){try{if("function"==typeof t)return void t.call(i,a);t.resolve(a)}catch(t){}})}i=function(t,e,i){return e&&x(t.prototype,e),i&&x(t,i),t};function x(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var w=new WeakMap,T=new WeakMap,i=(i(k,[{key:"callMethod",value:function(i){var n=this,s=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return new l(function(t,e){return n.ready().then(function(){p(n,i,{resolve:t,reject:e}),v(n,i,s)})})}},{key:"get",value:function(i){var n=this;return new l(function(t,e){return i=r(i,"get"),n.ready().then(function(){p(n,i,{resolve:t,reject:e}),v(n,i)})})}},{key:"set",value:function(n,t){var s=this;return l.resolve(t).then(function(i){if(n=r(n,"set"),null==i)throw new TypeError("There must be a value to set.");return s.ready().then(function(){return new l(function(t,e){p(s,n,{resolve:t,reject:e}),v(s,n,i)})})})}},{key:"on",value:function(t,e){if(!t)throw new TypeError("You must pass an event name.");if(!e)throw new TypeError("You must pass a callback function.");if("function"!=typeof e)throw new TypeError("The callback must be a function.");0===u(this,"event:"+t).length&&this.callMethod("addEventListener",t).catch(function(){}),p(this,"event:"+t,e)}},{key:"off",value:function(t,e){if(!t)throw new TypeError("You must pass an event name.");if(e&&"function"!=typeof e)throw new TypeError("The callback must be a function.");c(this,"event:"+t,e)&&this.callMethod("removeEventListener",t).catch(function(t){})}},{key:"loadVideo",value:function(t){return this.callMethod("loadVideo",t)}},{key:"ready",value:function(){var t=T.get(this);return l.resolve(t)}},{key:"addCuePoint",value:function(t){return this.callMethod("addCuePoint",{time:t,data:1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}})}},{key:"removeCuePoint",value:function(t){return this.callMethod("removeCuePoint",t)}},{key:"enableTextTrack",value:function(t,e){if(!t)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:t,kind:e})}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(t){return this.set("autopause",t)}},{key:"getColor",value:function(){return this.get("color")}},{key:"setColor",value:function(t){return this.set("color",t)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(t){return this.set("currentTime",t)}},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(t){return this.set("loop",t)}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getPlaybackRate",value:function(){return this.get("playbackRate")}},{key:"setPlaybackRate",value:function(t){return this.set("playbackRate",t)}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(t){return this.set("volume",t)}}]),k);function k(s){var r=this,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,k),window.jQuery&&s instanceof jQuery&&(1<s.length&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),s=s[0]),"string"==typeof s&&(s=document.getElementById(s)),!(s instanceof window.HTMLElement))throw new TypeError("You must pass either a valid element or a valid id.");if("IFRAME"===s.nodeName||(t=s.querySelector("iframe"))&&(s=t),"IFRAME"===s.nodeName&&!o(s.getAttribute("src")||""))throw new Error("The player element passed isnt a Vimeo embed.");if(w.has(s))return w.get(s);this.element=s,this.origin="*";var t=new l(function(n,e){var t=function(t){if(o(t.origin)&&r.element.contentWindow===t.source){"*"===r.origin&&(r.origin=t.origin);var e=y(t.data),i="event"in e&&"ready"===e.event,t="method"in e&&"ping"===e.method;if(i||t)return r.element.setAttribute("data-ready","true"),void n();_(r,e)}};window.addEventListener?window.addEventListener("message",t,!1):window.attachEvent&&window.attachEvent("onmessage",t),"IFRAME"!==r.element.nodeName&&d(a(t=f(s,i)),t).then(function(t){var e,i,n=m(t,s);return r.element=n,e=s,i=n,n=h.get(e),h.set(i,n),h.delete(e),w.set(r.element,r),t}).catch(function(t){return e(t)})});return T.set(this,t),w.set(this.element,this),"IFRAME"===this.element.nodeName&&v(this,"ping"),this}return t||(g(),function(t){var s=0<arguments.length&&void 0!==t?t:document,t=function(t){if(o(t.origin)&&t.data&&"spacechange"===t.data.event)for(var e=s.querySelectorAll("iframe"),i=0;i<e.length;i++)if(e[i].contentWindow===t.source){var n=e[i].parentElement;n&&-1!==n.className.indexOf("vimeo-space")&&(n.style.paddingBottom=t.data.data[0].bottom+"px");break}};window.addEventListener?window.addEventListener("message",t,!1):window.attachEvent&&window.attachEvent("onmessage",t)}()),i});var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";function c(t,e,i,n,s,r){var a,o,l,h,p,u,c,f,d={},m=[],g=r||t[0];for(o in s="string"==typeof s?","+s+",":",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",null==e&&(e=1),t[0])m.push(o);if(1<t.length){for(f=t[t.length-1],c=!0,a=m.length;-1<--a;)if(o=m[a],.05<Math.abs(g[o]-f[o])){c=!1;break}c&&(t=t.concat(),r&&t.unshift(r),t.push(t[1]),r=t[t.length-3])}for(v.length=_.length=b.length=0,a=m.length;-1<--a;)o=m[a],y[o]=-1!==s.indexOf(","+o+","),d[o]=function(t,e,i,n){var s,r,a,o,l,h,p=[];if(n)for(r=(t=[n].concat(t)).length;-1<--r;)"string"==typeof(h=t[r][e])&&"="===h.charAt(1)&&(t[r][e]=n[e]+Number(h.charAt(0)+h.substr(2)));if((s=t.length-2)<0)return p[0]=new x(t[0][e],0,0,t[0][e]),p;for(r=0;r<s;r++)a=t[r][e],o=t[r+1][e],p[r]=new x(a,0,0,o),i&&(l=t[r+2][e],v[r]=(v[r]||0)+(o-a)*(o-a),_[r]=(_[r]||0)+(l-o)*(l-o));return p[r]=new x(t[r][e],0,0,t[r+1][e]),p}(t,o,y[o],r);for(a=v.length;-1<--a;)v[a]=Math.sqrt(v[a]),_[a]=Math.sqrt(_[a]);if(!n){for(a=m.length;-1<--a;)if(y[o])for(u=(l=d[m[a]]).length-1,h=0;h<u;h++)p=l[h+1].da/_[h]+l[h].da/v[h]||0,b[h]=(b[h]||0)+p*p;for(a=b.length;-1<--a;)b[a]=Math.sqrt(b[a])}for(a=m.length,h=i?4:1;-1<--a;)(function(t,e,i,n,s){for(var r,a,o,l,h,p,u,c,f,d=t.length-1,m=0,g=t[0].a,y=0;y<d;y++)r=(o=t[m]).a,a=o.d,h=t[m+1].d,h=s?(u=v[y],f=((c=_[y])+u)*e*.25/(!n&&b[y]||.5),a-((l=a-(a-r)*(n?.5*e:0!==u?f/u:0))+(((f=a+(h-a)*(n?.5*e:0!==c?f/c:0))-l)*(3*u/(u+c)+.5)/4||0))):a-((l=a-(a-r)*e*.5)+(f=a+(h-a)*e*.5))/2,f+=h,o.c=h=l+=h,o.b=0!==y?g:g=o.a+.6*(o.c-o.a),o.da=a-r,o.ca=h-r,o.ba=g-r,i?(p=w(r,g,h,a),t.splice(m,1,p[0],p[1],p[2],p[3]),m+=4):m++,g=f;(o=t[m]).b=g,o.c=g+.4*(o.d-g),o.da=o.d-o.a,o.ca=o.c-o.a,o.ba=g-o.a,i&&(p=w(o.a,g,o.c,o.d),t.splice(m,1,p[0],p[1],p[2],p[3]))})(l=d[o=m[a]],e,i,n,y[o]),c&&(l.splice(0,h),l.splice(l.length-h,h));return d}function f(t,e){var i,n,s,r,a=[],o=[],l=0,h=0,p=(e=e>>0||6)-1,u=[],c=[];for(i in t)!function(t,e,i){for(var n,s,r,a,o,l,h,p,u,c,f=1/i,d=t.length;-1<--d;)for(r=(u=t[d]).a,a=u.d-r,o=u.c-r,l=u.b-r,s=0,h=1;h<=i;h++)n=s-(s=((c=f*h)*c*a+3*(p=1-c)*(c*o+p*l))*c),e[c=d*i+h-1]=(e[c]||0)+n*n}(t[i],a,e);for(s=a.length,n=0;n<s;n++)l+=Math.sqrt(a[n]),c[r=n%e]=l,r==p&&(h+=l,u[r=n/e>>0]=c,o[r]=h,l=0,c=[]);return{length:h,lengths:o,segments:u}}var T,v,_,b,y,e,x,w,g,t;_gsScope._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(n,p,g){function y(t){for(var e=[],i=t.length,n=0;n!==i;e.push(t[n++]));return e}function v(t,e,i){var n,s,r=t.cycle;for(n in r)s=r[n],t[n]="function"==typeof s?s(i,e[i]):s[i%s.length];delete t.cycle}function _(t,e,i){g.call(this,t,e,i),this._cycle=0,this._yoyo=!0===this.vars.yoyo||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._repeat&&this._uncache(!0),this.render=_.prototype.render}var b=1e-10,x=g._internals,w=x.isSelector,T=x.isArray,t=_.prototype=g.to({},.1,{}),k=[];_.version="1.20.3",t.constructor=_,t.kill()._gc=!1,_.killTweensOf=_.killDelayedCallsTo=g.killTweensOf,_.getTweensOf=g.getTweensOf,_.lagSmoothing=g.lagSmoothing,_.ticker=g.ticker,_.render=g.render,t.invalidate=function(){return this._yoyo=!0===this.vars.yoyo||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._yoyoEase=null,this._uncache(!0),g.prototype.invalidate.call(this)},t.updateTo=function(t,e){var i,n=this.ratio,s=this.vars.immediateRender||t.immediateRender;for(i in e&&this._startTime<this._timeline._time&&(this._startTime=this._timeline._time,this._uncache(!1),this._gc?this._enabled(!0,!1):this._timeline.insert(this,this._startTime-this._delay)),t)this.vars[i]=t[i];if(this._initted||s)if(e)this._initted=!1,s&&this.render(0,!0,!0);else if(this._gc&&this._enabled(!0,!1),this._notifyPluginsOfEnabled&&this._firstPT&&g._onPluginEvent("_onDisable",this),.998<this._time/this._duration){e=this._totalTime;this.render(0,!0,!1),this._initted=!1,this.render(e,!0,!1)}else if(this._initted=!1,this._init(),0<this._time||s)for(var r,a=1/(1-n),o=this._firstPT;o;)r=o.s+o.c,o.c*=a,o.s=r-o.c,o=o._next;return this},t.render=function(t,e,i){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var n,s,r,a,o,l,h,p=this._dirty?this.totalDuration():this._totalDuration,u=this._time,c=this._totalTime,f=this._cycle,d=this._duration,m=this._rawPrevTime;if(p-1e-7<=t&&0<=t?(this._totalTime=p,this._cycle=this._repeat,this._yoyo&&0!=(1&this._cycle)?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=d,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(n=!0,s="onComplete",i=i||this._timeline.autoRemoveChildren),0===d&&(!this._initted&&this.vars.lazy&&!i||(this._startTime===this._timeline._duration&&(t=0),(m<0||t<=0&&-1e-7<=t||m===b&&"isPause"!==this.data)&&m!==t&&(i=!0,b<m&&(s="onReverseComplete")),this._rawPrevTime=l=!e||t||m===t?t:b))):t<1e-7?(this._totalTime=this._time=this._cycle=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==c||0===d&&0<m)&&(s="onReverseComplete",n=this._reversed),t<0&&(this._active=!1,0===d&&(!this._initted&&this.vars.lazy&&!i||(0<=m&&(i=!0),this._rawPrevTime=l=!e||t||m===t?t:b))),this._initted||(i=!0)):(this._totalTime=this._time=t,0!==this._repeat&&(o=d+this._repeatDelay,this._cycle=this._totalTime/o>>0,0!==this._cycle&&this._cycle===this._totalTime/o&&c<=t&&this._cycle--,this._time=this._totalTime-this._cycle*o,this._yoyo&&0!=(1&this._cycle)&&(this._time=d-this._time,(h=this._yoyoEase||this.vars.yoyoEase)&&(this._yoyoEase||(!0!==h||this._initted?this._yoyoEase=h=!0===h?this._ease:h instanceof Ease?h:Ease.map[h]:(h=this.vars.ease,this._yoyoEase=h=h?h instanceof Ease?h:"function"==typeof h?new Ease(h,this.vars.easeParams):Ease.map[h]||g.defaultEase:g.defaultEase)),this.ratio=h?1-h.getRatio((d-this._time)/d):0)),this._time>d?this._time=d:this._time<0&&(this._time=0)),this._easeType&&!h?(a=this._time/d,(1===(p=this._easeType)||3===p&&.5<=a)&&(a=1-a),3===p&&(a*=2),1===(o=this._easePower)?a*=a:2===o?a*=a*a:3===o?a*=a*a*a:4===o&&(a*=a*a*a*a),1===p?this.ratio=1-a:2===p?this.ratio=a:this._time/d<.5?this.ratio=a/2:this.ratio=1-a/2):h||(this.ratio=this._ease.getRatio(this._time/d))),u!==this._time||i||f!==this._cycle){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration))return this._time=u,this._totalTime=c,this._rawPrevTime=m,this._cycle=f,x.lazyTweens.push(this),void(this._lazy=[t,e]);!this._time||n||h?n&&this._ease._calcEnd&&!h&&(this.ratio=this._ease.getRatio(0===this._time?0:1)):this.ratio=this._ease.getRatio(this._time/d)}for(!1!==this._lazy&&(this._lazy=!1),this._active||!this._paused&&this._time!==u&&0<=t&&(this._active=!0),0===c&&(2===this._initted&&0<t&&this._init(),this._startAt&&(0<=t?this._startAt.render(t,!0,i):s=s||"_dummyGS"),this.vars.onStart&&(0===this._totalTime&&0!==d||e||this._callback("onStart"))),r=this._firstPT;r;)r.f?r.t[r.p](r.c*this.ratio+r.s):r.t[r.p]=r.c*this.ratio+r.s,r=r._next;this._onUpdate&&(t<0&&this._startAt&&this._startTime&&this._startAt.render(t,!0,i),e||this._totalTime===c&&!s||this._callback("onUpdate")),this._cycle!==f&&(e||this._gc||this.vars.onRepeat&&this._callback("onRepeat")),s&&(this._gc&&!i||(t<0&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(t,!0,i),n&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[s]&&this._callback(s),0===d&&this._rawPrevTime===b&&l!==b&&(this._rawPrevTime=0)))}else c!==this._totalTime&&this._onUpdate&&(e||this._callback("onUpdate"))},_.to=function(t,e,i){return new _(t,e,i)},_.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new _(t,e,i)},_.fromTo=function(t,e,i,n){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,new _(t,e,n)},_.staggerTo=_.allTo=function(t,e,i,n,s,r,a){n=n||0;function o(){i.onComplete&&i.onComplete.apply(i.onCompleteScope||this,arguments),s.apply(a||i.callbackScope||this,r||k)}var l,h,p,u,c=0,f=[],d=i.cycle,m=i.startAt&&i.startAt.cycle;for(T(t)||("string"==typeof t&&(t=g.selector(t)||t),w(t)&&(t=y(t))),t=t||[],n<0&&((t=y(t)).reverse(),n*=-1),l=t.length-1,p=0;p<=l;p++){for(u in h={},i)h[u]=i[u];if(d&&(v(h,t,p),null!=h.duration&&(e=h.duration,delete h.duration)),m){for(u in m=h.startAt={},i.startAt)m[u]=i.startAt[u];v(h.startAt,t,p)}h.delay=c+(h.delay||0),p===l&&s&&(h.onComplete=o),f[p]=new _(t[p],e,h),c+=n}return f},_.staggerFrom=_.allFrom=function(t,e,i,n,s,r,a){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,_.staggerTo(t,e,i,n,s,r,a)},_.staggerFromTo=_.allFromTo=function(t,e,i,n,s,r,a,o){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,_.staggerTo(t,e,n,s,r,a,o)},_.delayedCall=function(t,e,i,n,s){return new _(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:n,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,useFrames:s,overwrite:0})},_.set=function(t,e){return new _(t,0,e)},_.isTweening=function(t){return 0<g.getTweensOf(t,!0).length};function r(t,e){for(var i=[],n=0,s=t._first;s;)s instanceof g?i[n++]=s:(e&&(i[n++]=s),n=(i=i.concat(r(s,e))).length),s=s._next;return i}var u=_.getAllTweens=function(t){return r(n._rootTimeline,t).concat(r(n._rootFramesTimeline,t))};_.killAll=function(t,e,i,n){null==e&&(e=!0),null==i&&(i=!0);for(var s,r,a=u(0!=n),o=a.length,l=e&&i&&n,h=0;h<o;h++)r=a[h],(l||r instanceof p||(s=r.target===r.vars.onComplete)&&i||e&&!s)&&(t?r.totalTime(r._reversed?0:r.totalDuration()):r._enabled(!1,!1))},_.killChildTweensOf=function(t,e){if(null!=t){var i,n,s,r,a,o=x.tweenLookup;if("string"==typeof t&&(t=g.selector(t)||t),w(t)&&(t=y(t)),T(t))for(r=t.length;-1<--r;)_.killChildTweensOf(t[r],e);else{for(s in i=[],o)for(n=o[s].target.parentNode;n;)n===t&&(i=i.concat(o[s].tweens)),n=n.parentNode;for(a=i.length,r=0;r<a;r++)e&&i[r].totalTime(i[r].totalDuration()),i[r]._enabled(!1,!1)}}};function s(t,e,i,n){e=!1!==e,i=!1!==i;for(var s,r,a=u(n=!1!==n),o=e&&i&&n,l=a.length;-1<--l;)r=a[l],(o||r instanceof p||(s=r.target===r.vars.onComplete)&&i||e&&!s)&&r.paused(t)}return _.pauseAll=function(t,e,i){s(!0,t,e,i)},_.resumeAll=function(t,e,i){s(!1,t,e,i)},_.globalTimeScale=function(t){var e=n._rootTimeline,i=g.ticker.time;return arguments.length?(e._startTime=i-(i-e._startTime)*e._timeScale/(t=t||b),e=n._rootFramesTimeline,i=g.ticker.frame,e._startTime=i-(i-e._startTime)*e._timeScale/t,e._timeScale=n._rootTimeline._timeScale=t):e._timeScale},t.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatDelay),e):this._time/this.duration()},t.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()},t.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),t>this._duration&&(t=this._duration),this._yoyo&&0!=(1&this._cycle)?t=this._duration-t+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(t+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(t,e)):this._time},t.duration=function(t){return arguments.length?n.prototype.duration.call(this,t):this._duration},t.totalDuration=function(t){return arguments.length?-1===this._repeat?this:this.duration((t-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},t.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},t.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},t.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},_},!0),_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(p,u,c){function f(t){u.call(this,t),this._labels={},this.autoRemoveChildren=!0===this.vars.autoRemoveChildren,this.smoothChildTiming=!0===this.vars.smoothChildTiming,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var e,i,n=this.vars;for(i in n)e=n[i],_(e)&&-1!==e.join("").indexOf("{self}")&&(n[i]=this._swapSelfInParams(e));_(n.tweens)&&this.add(n.tweens,0,n.align,n.stagger)}function d(t){var e,i={};for(e in t)i[e]=t[e];return i}function m(t,e,i){var n,s,r=t.cycle;for(n in r)s=r[n],t[n]="function"==typeof s?s(i,e[i]):s[i%s.length];delete t.cycle}function g(t){for(var e=[],i=t.length,n=0;n!==i;e.push(t[n++]));return e}var y=1e-10,t=c._internals,e=f._internals={},v=t.isSelector,_=t.isArray,b=t.lazyTweens,x=t.lazyRender,a=_gsScope._gsDefine.globals,s=e.pauseCallback=function(){},e=f.prototype=new u;return f.version="1.20.3",e.constructor=f,e.kill()._gc=e._forcingPlayhead=e._hasPause=!1,e.to=function(t,e,i,n){var s=i.repeat&&a.TweenMax||c;return e?this.add(new s(t,e,i),n):this.set(t,i,n)},e.from=function(t,e,i,n){return this.add((i.repeat&&a.TweenMax||c).from(t,e,i),n)},e.fromTo=function(t,e,i,n,s){var r=n.repeat&&a.TweenMax||c;return e?this.add(r.fromTo(t,e,i,n),s):this.set(t,n,s)},e.staggerTo=function(t,e,i,n,s,r,a,o){var l,h,p=new f({onComplete:r,onCompleteParams:a,callbackScope:o,smoothChildTiming:this.smoothChildTiming}),u=i.cycle;for("string"==typeof t&&(t=c.selector(t)||t),v(t=t||[])&&(t=g(t)),(n=n||0)<0&&((t=g(t)).reverse(),n*=-1),h=0;h<t.length;h++)(l=d(i)).startAt&&(l.startAt=d(l.startAt),l.startAt.cycle&&m(l.startAt,t,h)),u&&(m(l,t,h),null!=l.duration&&(e=l.duration,delete l.duration)),p.to(t[h],e,l,h*n);return this.add(p,s)},e.staggerFrom=function(t,e,i,n,s,r,a,o){return i.immediateRender=0!=i.immediateRender,i.runBackwards=!0,this.staggerTo(t,e,i,n,s,r,a,o)},e.staggerFromTo=function(t,e,i,n,s,r,a,o,l){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,this.staggerTo(t,e,n,s,r,a,o,l)},e.call=function(t,e,i,n){return this.add(c.delayedCall(0,t,e,i),n)},e.set=function(t,e,i){return i=this._parseTimeOrLabel(i,0,!0),null==e.immediateRender&&(e.immediateRender=i===this._time&&!this._paused),this.add(new c(t,0,e),i)},f.exportRoot=function(t,e){null==(t=t||{}).smoothChildTiming&&(t.smoothChildTiming=!0);var i,n,s,r,a=new f(t),t=a._timeline;for(null==e&&(e=!0),t._remove(a,!0),a._startTime=0,a._rawPrevTime=a._time=a._totalTime=t._time,s=t._first;s;)r=s._next,e&&s instanceof c&&s.target===s.vars.onComplete||((n=s._startTime-s._delay)<0&&(i=1),a.add(s,n)),s=r;return t.add(a,0),i&&a.totalDuration(),a},e.add=function(t,e,i,n){var s,r,a,o,l,h;if("number"!=typeof e&&(e=this._parseTimeOrLabel(e,0,!0,t)),!(t instanceof p)){if(t instanceof Array||t&&t.push&&_(t)){for(i=i||"normal",n=n||0,s=e,r=t.length,a=0;a<r;a++)_(o=t[a])&&(o=new f({tweens:o})),this.add(o,s),"string"!=typeof o&&"function"!=typeof o&&("sequence"===i?s=o._startTime+o.totalDuration()/o._timeScale:"start"===i&&(o._startTime-=o.delay())),s+=n;return this._uncache(!0)}if("string"==typeof t)return this.addLabel(t,e);if("function"!=typeof t)throw"Cannot add "+t+" into the timeline; it is not a tween, timeline, function, or string.";t=c.delayedCall(0,t)}if(u.prototype.add.call(this,t,e),t._time&&t.render((this.rawTime()-t._startTime)*t._timeScale,!1,!1),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(h=(l=this).rawTime()>t._startTime;l._timeline;)h&&l._timeline.smoothChildTiming?l.totalTime(l._totalTime,!0):l._gc&&l._enabled(!0,!1),l=l._timeline;return this},e.remove=function(t){if(t instanceof p){this._remove(t,!1);var e=t._timeline=t.vars.useFrames?p._rootFramesTimeline:p._rootTimeline;return t._startTime=(t._paused?t._pauseTime:e._time)-(t._reversed?t.totalDuration()-t._totalTime:t._totalTime)/t._timeScale,this}if(t instanceof Array||t&&t.push&&_(t)){for(var i=t.length;-1<--i;)this.remove(t[i]);return this}return"string"==typeof t?this.removeLabel(t):this.kill(null,t)},e._remove=function(t,e){return u.prototype._remove.call(this,t,e),this._last?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},e.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))},e.insert=e.insertMultiple=function(t,e,i,n){return this.add(t,e||0,i,n)},e.appendMultiple=function(t,e,i,n){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),i,n)},e.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},e.addPause=function(t,e,i,n){n=c.delayedCall(0,s,i,n||this);return n.vars.onComplete=n.vars.onReverseComplete=e,n.data="isPause",this._hasPause=!0,this.add(n,t)},e.removeLabel=function(t){return delete this._labels[t],this},e.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:-1},e._parseTimeOrLabel=function(t,e,i,n){var s,r;if(n instanceof p&&n.timeline===this)this.remove(n);else if(n&&(n instanceof Array||n.push&&_(n)))for(r=n.length;-1<--r;)n[r]instanceof p&&n[r].timeline===this&&this.remove(n[r]);if(s="number"!=typeof t||e?99999999999<this.duration()?this.recent().endTime(!1):this._duration:0,"string"==typeof e)return this._parseTimeOrLabel(e,i&&"number"==typeof t&&null==this._labels[e]?t-s:0,i);if(e=e||0,"string"!=typeof t||!isNaN(t)&&null==this._labels[t])null==t&&(t=s);else{if(-1===(r=t.indexOf("=")))return null==this._labels[t]?i?this._labels[t]=s+e:e:this._labels[t]+e;e=parseInt(t.charAt(r-1)+"1",10)*Number(t.substr(r+1)),t=1<r?this._parseTimeOrLabel(t.substr(0,r-1),0,i):s}return Number(t)+e},e.seek=function(t,e){return this.totalTime("number"==typeof t?t:this._parseTimeOrLabel(t),!1!==e)},e.stop=function(){return this.paused(!0)},e.gotoAndPlay=function(t,e){return this.play(t,e)},e.gotoAndStop=function(t,e){return this.pause(t,e)},e.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var n,s,r,a,o,l,h,p=this._time,u=this._dirty?this.totalDuration():this._totalDuration,c=this._startTime,f=this._timeScale,d=this._paused;if(p!==this._time&&(t+=this._time-p),u-1e-7<=t&&0<=t)this._totalTime=this._time=u,this._reversed||this._hasPausedChild()||(s=!0,a="onComplete",o=!!this._timeline.autoRemoveChildren,0===this._duration&&(t<=0&&-1e-7<=t||this._rawPrevTime<0||this._rawPrevTime===y)&&this._rawPrevTime!==t&&this._first&&(o=!0,this._rawPrevTime>y&&(a="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:y,t=u+1e-4;else if(t<1e-7)if(((this._totalTime=this._time=0)!==p||0===this._duration&&this._rawPrevTime!==y&&(0<this._rawPrevTime||t<0&&0<=this._rawPrevTime))&&(a="onReverseComplete",s=this._reversed),t<0)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(o=s=!0,a="onReverseComplete"):0<=this._rawPrevTime&&this._first&&(o=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:y,0===t&&s)for(n=this._first;n&&0===n._startTime;)n._duration||(s=!1),n=n._next;t=0,this._initted||(o=!0)}else{if(this._hasPause&&!this._forcingPlayhead&&!e){if(p<=t)for(n=this._first;n&&n._startTime<=t&&!l;)n._duration||"isPause"!==n.data||n.ratio||0===n._startTime&&0===this._rawPrevTime||(l=n),n=n._next;else for(n=this._last;n&&n._startTime>=t&&!l;)n._duration||"isPause"===n.data&&0<n._rawPrevTime&&(l=n),n=n._prev;l&&(this._time=t=l._startTime,this._totalTime=t+this._cycle*(this._totalDuration+this._repeatDelay))}this._totalTime=this._time=this._rawPrevTime=t}if(this._time!==p&&this._first||i||o||l){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==p&&0<t&&(this._active=!0),0===p&&this.vars.onStart&&(0===this._time&&this._duration||e||this._callback("onStart")),p<=(h=this._time))for(n=this._first;n&&(r=n._next,h===this._time&&(!this._paused||d));)(n._active||n._startTime<=h&&!n._paused&&!n._gc)&&(l===n&&this.pause(),n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)),n=r;else for(n=this._last;n&&(r=n._prev,h===this._time&&(!this._paused||d));){if(n._active||n._startTime<=p&&!n._paused&&!n._gc){if(l===n){for(l=n._prev;l&&l.endTime()>this._time;)l.render(l._reversed?l.totalDuration()-(t-l._startTime)*l._timeScale:(t-l._startTime)*l._timeScale,e,i),l=l._prev;l=null,this.pause()}n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)}n=r}this._onUpdate&&(e||(b.length&&x(),this._callback("onUpdate"))),a&&(this._gc||c!==this._startTime&&f===this._timeScale||(0===this._time||u>=this.totalDuration())&&(s&&(b.length&&x(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[a]&&this._callback(a)))}},e._hasPausedChild=function(){for(var t=this._first;t;){if(t._paused||t instanceof f&&t._hasPausedChild())return!0;t=t._next}return!1},e.getChildren=function(t,e,i,n){n=n||-9999999999;for(var s=[],r=this._first,a=0;r;)r._startTime<n||(r instanceof c?!1!==e&&(s[a++]=r):(!1!==i&&(s[a++]=r),!1!==t&&(a=(s=s.concat(r.getChildren(!0,e,i))).length))),r=r._next;return s},e.getTweensOf=function(t,e){var i,n,s=this._gc,r=[],a=0;for(s&&this._enabled(!0,!0),n=(i=c.getTweensOf(t)).length;-1<--n;)(i[n].timeline===this||e&&this._contains(i[n]))&&(r[a++]=i[n]);return s&&this._enabled(!1,!0),r},e.recent=function(){return this._recent},e._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},e.shiftChildren=function(t,e,i){i=i||0;for(var n,s=this._first,r=this._labels;s;)s._startTime>=i&&(s._startTime+=t),s=s._next;if(e)for(n in r)r[n]>=i&&(r[n]+=t);return this._uncache(!0)},e._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var i=e?this.getTweensOf(e):this.getChildren(!0,!0,!1),n=i.length,s=!1;-1<--n;)i[n]._kill(t,e)&&(s=!0);return s},e.clear=function(t){var e=this.getChildren(!1,!0,!0),i=e.length;for(this._time=this._totalTime=0;-1<--i;)e[i]._enabled(!1,!1);return!1!==t&&(this._labels={}),this._uncache(!0)},e.invalidate=function(){for(var t=this._first;t;)t.invalidate(),t=t._next;return p.prototype.invalidate.call(this)},e._enabled=function(t,e){if(t===this._gc)for(var i=this._first;i;)i._enabled(t,!0),i=i._next;return u.prototype._enabled.call(this,t,e)},e.totalTime=function(t,e,i){this._forcingPlayhead=!0;var n=p.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,n},e.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},e.totalDuration=function(t){if(arguments.length)return t&&this.totalDuration()?this.timeScale(this._totalDuration/t):this;if(this._dirty){for(var e,i,n=0,s=this._last,r=999999999999;s;)e=s._prev,s._dirty&&s.totalDuration(),s._startTime>r&&this._sortChildren&&!s._paused&&!this._calculatingDuration?(this._calculatingDuration=1,this.add(s,s._startTime-s._delay),this._calculatingDuration=0):r=s._startTime,s._startTime<0&&!s._paused&&(n-=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),r=0),n<(i=s._startTime+s._totalDuration/s._timeScale)&&(n=i),s=e;this._duration=this._totalDuration=n,this._dirty=!1}return this._totalDuration},e.paused=function(t){if(!t)for(var e=this._first,i=this._time;e;)e._startTime===i&&"isPause"===e.data&&(e._rawPrevTime=0),e=e._next;return p.prototype.paused.apply(this,arguments)},e.usesFrames=function(){for(var t=this._timeline;t._timeline;)t=t._timeline;return t===p._rootFramesTimeline},e.rawTime=function(t){return t&&(this._paused||this._repeat&&0<this.time()&&this.totalProgress()<1)?this._totalTime%(this._duration+this._repeatDelay):this._paused?this._totalTime:(this._timeline.rawTime(t)-this._startTime)*this._timeScale},f},!0),_gsScope._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(e,o,t){function i(t){e.call(this,t),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=!0===this.vars.yoyo,this._dirty=!0}var P=1e-10,n=o._internals,A=n.lazyTweens,S=n.lazyRender,l=_gsScope._gsDefine.globals,h=new t(null,null,1,0),t=i.prototype=new e;return t.constructor=i,t.kill()._gc=!1,i.version="1.20.3",t.invalidate=function(){return this._yoyo=!0===this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),e.prototype.invalidate.call(this)},t.addCallback=function(t,e,i,n){return this.add(o.delayedCall(0,t,i,n),e)},t.removeCallback=function(t,e){if(t)if(null==e)this._kill(null,t);else for(var i=this.getTweensOf(t,!1),n=i.length,s=this._parseTimeOrLabel(e);-1<--n;)i[n]._startTime===s&&i[n]._enabled(!1,!1);return this},t.removePause=function(t){return this.removeCallback(e._internals.pauseCallback,t)},t.tweenTo=function(t,e){e=e||{};var i,n,s,r={ease:h,useFrames:this.usesFrames(),immediateRender:!1},a=e.repeat&&l.TweenMax||o;for(n in e)r[n]=e[n];return r.time=this._parseTimeOrLabel(t),i=Math.abs(Number(r.time)-this._time)/this._timeScale||.001,s=new a(this,i,r),r.onStart=function(){s.target.paused(!0),s.vars.time!==s.target.time()&&i===s.duration()&&s.duration(Math.abs(s.vars.time-s.target.time())/s.target._timeScale),e.onStart&&e.onStart.apply(e.onStartScope||e.callbackScope||s,e.onStartParams||[])},s},t.tweenFromTo=function(t,e,i){i=i||{},t=this._parseTimeOrLabel(t),i.startAt={onComplete:this.seek,onCompleteParams:[t],callbackScope:this},i.immediateRender=!1!==i.immediateRender;i=this.tweenTo(e,i);return i.duration(Math.abs(i.vars.time-t)/this._timeScale||.001)},t.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var n,s,r,a,o,l,h,p=this._time,u=this._dirty?this.totalDuration():this._totalDuration,c=this._duration,f=this._totalTime,d=this._startTime,m=this._timeScale,g=this._rawPrevTime,y=this._paused,v=this._cycle;if(p!==this._time&&(t+=this._time-p),u-1e-7<=t&&0<=t)this._locked||(this._totalTime=u,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(s=!0,a="onComplete",o=!!this._timeline.autoRemoveChildren,0===this._duration&&(t<=0&&-1e-7<=t||g<0||g===P)&&g!==t&&this._first&&(o=!0,P<g&&(a="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:P,this._yoyo&&0!=(1&this._cycle)?this._time=t=0:t=(this._time=c)+1e-4;else if(t<1e-7)if(this._locked||(this._totalTime=this._cycle=0),((this._time=0)!==p||0===c&&g!==P&&(0<g||t<0&&0<=g)&&!this._locked)&&(a="onReverseComplete",s=this._reversed),t<0)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(o=s=!0,a="onReverseComplete"):0<=g&&this._first&&(o=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=c||!e||t||this._rawPrevTime===t?t:P,0===t&&s)for(n=this._first;n&&0===n._startTime;)n._duration||(s=!1),n=n._next;t=0,this._initted||(o=!0)}else if(0===c&&g<0&&(o=!0),this._time=this._rawPrevTime=t,this._locked||(this._totalTime=t,0!==this._repeat&&(k=c+this._repeatDelay,this._cycle=this._totalTime/k>>0,0!==this._cycle&&this._cycle===this._totalTime/k&&f<=t&&this._cycle--,this._time=this._totalTime-this._cycle*k,this._yoyo&&0!=(1&this._cycle)&&(this._time=c-this._time),this._time>c?t=(this._time=c)+1e-4:this._time<0?this._time=t=0:t=this._time)),this._hasPause&&!this._forcingPlayhead&&!e){if(p<=(t=this._time)||this._repeat&&v!==this._cycle)for(n=this._first;n&&n._startTime<=t&&!l;)n._duration||"isPause"!==n.data||n.ratio||0===n._startTime&&0===this._rawPrevTime||(l=n),n=n._next;else for(n=this._last;n&&n._startTime>=t&&!l;)n._duration||"isPause"===n.data&&0<n._rawPrevTime&&(l=n),n=n._prev;l&&l._startTime<c&&(this._time=t=l._startTime,this._totalTime=t+this._cycle*(this._totalDuration+this._repeatDelay))}if(this._cycle!==v&&!this._locked){var _=this._yoyo&&0!=(1&v),b=_===(this._yoyo&&0!=(1&this._cycle)),x=this._totalTime,w=this._cycle,T=this._rawPrevTime,k=this._time;if(this._totalTime=v*c,this._cycle<v?_=!_:this._totalTime+=c,this._time=p,this._rawPrevTime=0===c?g-1e-4:g,this._cycle=v,this._locked=!0,this.render(p=_?0:c,e,0===c),e||this._gc||this.vars.onRepeat&&(this._cycle=w,this._locked=!1,this._callback("onRepeat")),p!==this._time)return;if(b&&(this._cycle=v,this._locked=!0,this.render(p=_?c+1e-4:-1e-4,!0,!1)),this._locked=!1,this._paused&&!y)return;this._time=k,this._totalTime=x,this._cycle=w,this._rawPrevTime=T}if(this._time!==p&&this._first||i||o||l){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._totalTime!==f&&0<t&&(this._active=!0),0===f&&this.vars.onStart&&(0===this._totalTime&&this._totalDuration||e||this._callback("onStart")),p<=(h=this._time))for(n=this._first;n&&(r=n._next,h===this._time&&(!this._paused||y));)(n._active||n._startTime<=this._time&&!n._paused&&!n._gc)&&(l===n&&this.pause(),n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)),n=r;else for(n=this._last;n&&(r=n._prev,h===this._time&&(!this._paused||y));){if(n._active||n._startTime<=p&&!n._paused&&!n._gc){if(l===n){for(l=n._prev;l&&l.endTime()>this._time;)l.render(l._reversed?l.totalDuration()-(t-l._startTime)*l._timeScale:(t-l._startTime)*l._timeScale,e,i),l=l._prev;l=null,this.pause()}n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)}n=r}this._onUpdate&&(e||(A.length&&S(),this._callback("onUpdate"))),a&&(this._locked||this._gc||d!==this._startTime&&m===this._timeScale||(0===this._time||u>=this.totalDuration())&&(s&&(A.length&&S(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[a]&&this._callback(a)))}else f!==this._totalTime&&this._onUpdate&&(e||this._callback("onUpdate"))},t.getActive=function(t,e,i){for(var n,s=[],r=this.getChildren(t=null==t?!0:t,e=null==e?!0:e,i=null==i?!1:i),a=0,o=r.length,l=0;l<o;l++)(n=r[l]).isActive()&&(s[a++]=n);return s},t.getLabelAfter=function(t){t||0!==t&&(t=this._time);for(var e=this.getLabelsArray(),i=e.length,n=0;n<i;n++)if(e[n].time>t)return e[n].name;return null},t.getLabelBefore=function(t){null==t&&(t=this._time);for(var e=this.getLabelsArray(),i=e.length;-1<--i;)if(e[i].time<t)return e[i].name;return null},t.getLabelsArray=function(){var t,e=[],i=0;for(t in this._labels)e[i++]={time:this._labels[t],name:t};return e.sort(function(t,e){return t.time-e.time}),e},t.invalidate=function(){return this._locked=!1,e.prototype.invalidate.call(this)},t.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatDelay),e):this._time/this.duration()||0},t.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()||0},t.totalDuration=function(t){return arguments.length?-1!==this._repeat&&t?this.timeScale(this.totalDuration()/t):this:(this._dirty&&(e.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},t.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),t>this._duration&&(t=this._duration),this._yoyo&&0!=(1&this._cycle)?t=this._duration-t+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(t+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(t,e)):this._time},t.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},t.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},t.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},t.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.getLabelBefore(this._time+1e-8)},i},!0),T=180/Math.PI,v=[],_=[],b=[],y={},e=_gsScope._gsDefine.globals,x=function(t,e,i,n){i===n&&(i=n-(n-e)/1e6),t===e&&(e=t+(i-t)/1e6),this.a=t,this.b=e,this.c=i,this.d=n,this.da=n-t,this.ca=i-t,this.ba=e-t},w=function(t,e,i,n){var s={a:t},r={},a={},o={c:n},l=(t+e)/2,h=(e+i)/2,p=(i+n)/2,e=(l+h)/2,i=(h+p)/2,h=(i-e)/8;return s.b=l+(t-l)/4,r.b=e+h,s.c=r.a=(s.b+r.b)/2,r.c=a.a=(e+i)/2,a.b=i-h,o.b=p+(n-p)/4,a.c=o.a=(a.b+o.b)/2,[s,r,a,o]},g=_gsScope._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.8",API:2,global:!0,init:function(t,e,i){this._target=t,e instanceof Array&&(e={values:e}),this._func={},this._mod={},this._props=[],this._timeRes=null==e.timeResolution?6:parseInt(e.timeResolution,10);var n,s,r,a,o,l=e.values||[],h={},p=l[0],u=e.autoRotate||i.vars.orientToBezier;for(n in this._autoRotate=u?u instanceof Array?u:[["x","y","rotation",!0!==u&&Number(u)||0]]:null,p)this._props.push(n);for(r=this._props.length;-1<--r;)n=this._props[r],this._overwriteProps.push(n),s=this._func[n]="function"==typeof t[n],h[n]=s?t[n.indexOf("set")||"function"!=typeof t["get"+n.substr(3)]?n:"get"+n.substr(3)]():parseFloat(t[n]),o||h[n]!==l[0][n]&&(o=h);if(this._beziers="cubic"!==e.type&&"quadratic"!==e.type&&"soft"!==e.type?c(l,isNaN(e.curviness)?1:e.curviness,!1,"thruBasic"===e.type,e.correlate,o):function(t,e,i){var n,s,r,a,o,l,h,p,u,c,f,d={},m="cubic"===(e=e||"soft")?3:2,g="soft"===e,y=[];if(null==(t=g&&i?[i].concat(t):t)||t.length<1+m)throw"invalid Bezier data";for(u in t[0])y.push(u);for(l=y.length;-1<--l;){for(d[u=y[l]]=o=[],p=t.length,h=c=0;h<p;h++)n=null==i?t[h][u]:"string"==typeof(f=t[h][u])&&"="===f.charAt(1)?i[u]+Number(f.charAt(0)+f.substr(2)):Number(f),g&&1<h&&h<p-1&&(o[c++]=(n+o[c-2])/2),o[c++]=n;for(p=c-m+1,h=c=0;h<p;h+=m)n=o[h],s=o[h+1],r=o[h+2],a=2==m?0:o[h+3],o[c++]=f=3==m?new x(n,s,r,a):new x(n,(2*s+n)/3,(2*s+r)/3,r);o.length=c}return d}(l,e.type,h),this._segCount=this._beziers[n].length,this._timeRes&&(e=f(this._beziers,this._timeRes),this._length=e.length,this._lengths=e.lengths,this._segments=e.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length),u=this._autoRotate)for(this._initialRotations=[],u[0]instanceof Array||(this._autoRotate=u=[u]),r=u.length;-1<--r;){for(a=0;a<3;a++)n=u[r][a],this._func[n]="function"==typeof t[n]&&t[n.indexOf("set")||"function"!=typeof t["get"+n.substr(3)]?n:"get"+n.substr(3)];n=u[r][2],this._initialRotations[r]=(this._func[n]?this._func[n].call(this._target):this._target[n])||0,this._overwriteProps.push(n)}return this._startRatio=i.vars.runBackwards?1:0,!0},set:function(t){var e,i,n,s,r,a,o,l,h,p=this._segCount,u=this._func,c=this._target,f=t!==this._startRatio;if(this._timeRes){if(l=this._lengths,h=this._curSeg,t*=this._length,w=this._li,t>this._l2&&w<p-1){for(o=p-1;w<o&&(this._l2=l[++w])<=t;);this._l1=l[w-1],this._li=w,this._curSeg=h=this._segments[w],this._s2=h[this._s1=this._si=0]}else if(t<this._l1&&0<w){for(;0<w&&(this._l1=l[--w])>=t;);0===w&&t<this._l1?this._l1=0:w++,this._l2=l[w],this._li=w,this._curSeg=h=this._segments[w],this._s1=h[(this._si=h.length-1)-1]||0,this._s2=h[this._si]}if(e=w,t-=this._l1,w=this._si,t>this._s2&&w<h.length-1){for(o=h.length-1;w<o&&(this._s2=h[++w])<=t;);this._s1=h[w-1],this._si=w}else if(t<this._s1&&0<w){for(;0<w&&(this._s1=h[--w])>=t;);0===w&&t<this._s1?this._s1=0:w++,this._s2=h[w],this._si=w}r=(w+(t-this._s1)/(this._s2-this._s1))*this._prec||0}else r=(t-(e=t<0?0:1<=t?p-1:p*t>>0)*(1/p))*p;for(i=1-r,w=this._props.length;-1<--w;)n=this._props[w],a=(r*r*(s=this._beziers[n][e]).da+3*i*(r*s.ca+i*s.ba))*r+s.a,this._mod[n]&&(a=this._mod[n](a,c)),u[n]?c[n](a):c[n]=a;if(this._autoRotate)for(var d,m,g,y,v,_,b,x=this._autoRotate,w=x.length;-1<--w;)n=x[w][2],_=x[w][3]||0,b=!0===x[w][4]?1:T,s=this._beziers[x[w][0]],d=this._beziers[x[w][1]],s&&d&&(s=s[e],d=d[e],m=s.a+(s.b-s.a)*r,m+=((y=s.b+(s.c-s.b)*r)-m)*r,y+=(s.c+(s.d-s.c)*r-y)*r,g=d.a+(d.b-d.a)*r,g+=((v=d.b+(d.c-d.b)*r)-g)*r,v+=(d.c+(d.d-d.c)*r-v)*r,a=f?Math.atan2(v-g,y-m)*b+_:this._initialRotations[w],this._mod[n]&&(a=this._mod[n](a,c)),u[n]?c[n](a):c[n]=a)}}),t=g.prototype,g.bezierThrough=c,g.cubicToQuadratic=w,g._autoCSS=!0,g.quadraticToCubic=function(t,e,i){return new x(t,(2*e+t)/3,(2*e+i)/3,i)},g._cssRegister=function(){var f,d,m,t=e.CSSPlugin;t&&(t=t._internals,f=t._parseToProxy,d=t._setPluginRatio,m=t.CSSPropTween,t._registerComplexSpecialProp("bezier",{parser:function(t,e,i,n,s,r){e instanceof Array&&(e={values:e}),r=new g;var a,o,l,h=e.values,p=h.length-1,u=[],c={};if(p<0)return s;for(a=0;a<=p;a++)l=f(t,h[a],n,s,r,p!==a),u[a]=l.end;for(o in e)c[o]=e[o];return c.values=u,(s=new m(t,"bezier",0,0,l.pt,2)).data=l,s.plugin=r,s.setRatio=d,0===c.autoRotate&&(c.autoRotate=!0),!c.autoRotate||c.autoRotate instanceof Array||(a=!0===c.autoRotate?0:Number(c.autoRotate),c.autoRotate=null!=l.end.left?[["left","top","rotation",a,!1]]:null!=l.end.x&&[["x","y","rotation",a,!1]]),c.autoRotate&&(n._transform||n._enableTransforms(!1),l.autoRotate=n._target._gsTransform,l.proxy.rotation=l.autoRotate.rotation||0,n._overwriteProps.push("rotation")),r._onInitTween(l.proxy,c,n._tween),s}}))},t._mod=function(t){for(var e,i=this._overwriteProps,n=i.length;-1<--n;)(e=t[i[n]])&&"function"==typeof e&&(this._mod[i[n]]=e)},t._kill=function(t){var e,i,n=this._props;for(e in this._beziers)if(e in t)for(delete this._beziers[e],delete this._func[e],i=n.length;-1<--i;)n[i]===e&&n.splice(i,1);if(n=this._autoRotate)for(i=n.length;-1<--i;)t[n[i][2]]&&n.splice(i,1);return this._super._kill.call(this,t)},_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(r,M){function D(){r.call(this,"css"),this._overwriteProps.length=0,this.setRatio=D.prototype.setRatio}var c,w,k,u,h=_gsScope._gsDefine.globals,f={},t=D.prototype=new r("css");(t.constructor=D).version="1.20.3",D.API=2,D.defaultTransformPerspective=0,D.defaultSkewType="compensated",D.defaultSmoothOrigin=!0,D.suffixMap={top:t="px",right:t,bottom:t,left:t,width:t,height:t,fontSize:t,padding:t,margin:t,perspective:t,lineHeight:""};function a(t,e){return e.toUpperCase()}function o(t,e){return Q.createElementNS?Q.createElementNS(e||"http://www.w3.org/1999/xhtml",t):Q.createElement(t)}function l(t){return V.test("string"==typeof t?t:(t.currentStyle||t.style).filter||"")?parseFloat(RegExp.$1)/100:1}function d(t){_gsScope.console&&console.log(t)}function T(t,e){var i,n,s=(e=e||J).style;if(void 0!==s[t])return t;for(t=t.charAt(0).toUpperCase()+t.substr(1),i=["O","Moz","ms","Ms","Webkit"],n=5;-1<--n&&void 0===s[i[n]+t];);return 0<=n?(nt="-"+(st=3===n?"ms":i[n]).toLowerCase()+"-",st+t):null}function m(t,e){var i,n,s={};if(e=e||rt(t,null))if(i=e.length)for(;-1<--i;)-1!==(n=e[i]).indexOf("-transform")&&It!==n||(s[n.replace(q,a)]=e.getPropertyValue(n));else for(i in e)-1!==i.indexOf("Transform")&&Ft!==i||(s[i]=e[i]);else if(e=t.currentStyle||t.style)for(i in e)"string"==typeof i&&void 0===s[i]&&(s[i.replace(q,a)]=e[i]);return it||(s.opacity=l(t)),t=Wt(t,e,!1),s.rotation=t.rotation,s.skewX=t.skewX,s.scaleX=t.scaleX,s.scaleY=t.scaleY,s.x=t.x,s.y=t.y,Lt&&(s.z=t.z,s.rotationX=t.rotationX,s.rotationY=t.rotationY,s.scaleZ=t.scaleZ),s.filters&&delete s.filters,s}function g(t,e,i,n,s){var r,a,o,l={},h=t.style;for(a in i)"cssText"!==a&&"length"!==a&&isNaN(a)&&(e[a]!==(r=i[a])||s&&s[a])&&-1===a.indexOf("Origin")&&("number"!=typeof r&&"string"!=typeof r||(l[a]="auto"!==r||"left"!==a&&"top"!==a?""!==r&&"auto"!==r&&"none"!==r||"string"!=typeof e[a]||""===e[a].replace(N,"")?r:0:lt(t,a),void 0!==h[a]&&(o=new yt(h,a,h[a],o))));if(n)for(a in n)"className"!==a&&(l[a]=n[a]);return{difs:l,firstMPT:o}}function A(t,e){return"string"==typeof(t="function"==typeof t?t(I,C):t)&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2)):parseFloat(t)-parseFloat(e)||0}function P(t,e){return null==(t="function"==typeof t?t(I,C):t)?e:"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2))+e:parseFloat(t)||0}function S(t,e,i,n){var s,r,a;return a=(a=null==(t="function"==typeof t?t(I,C):t)?e:"number"==typeof t?t:(s=360,r=t.split("_"),a=((a="="===t.charAt(1))?parseInt(t.charAt(0)+"1",10)*parseFloat(r[0].substr(2)):parseFloat(r[0]))*(-1===t.indexOf("rad")?1:$)-(a?0:e),r.length&&(n&&(n[i]=e+a),-1!==t.indexOf("short")&&(a%=s)!==a%180&&(a=a<0?a+s:a-s),-1!==t.indexOf("_cw")&&a<0?a=(a+3599999999640)%s-(a/s|0)*s:-1!==t.indexOf("ccw")&&0<a&&(a=(a-3599999999640)%s-(a/s|0)*s)),e+a))<1e-6&&-1e-6<a?0:a}function p(t,e,i){return 255*(6*(t=t<0?t+1:1<t?t-1:t)<1?e+(i-e)*t*6:t<.5?i:3*t<2?e+(i-e)*(2/3-t)*6:e)+.5|0}function i(t,e){var i,n,s,r=t.match(dt)||[],a=0,o="";if(!r.length)return t;for(i=0;i<r.length;i++)n=r[i],a+=(s=t.substr(a,t.indexOf(n,a)-a)).length+n.length,3===(n=ft(n,e)).length&&n.push(1),o+=s+(e?"hsla("+n[0]+","+n[1]+"%,"+n[2]+"%,"+n[3]:"rgba("+n.join(","))+")";return o+t.substr(a)}var E,y,v,F,_,x,C,I,O=/(?:\-|\.|\b)(\d|\.|e\-)+/g,L=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,b=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,N=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,R=/(?:\d|\-|\+|=|#|\.)*/g,V=/opacity *= *([^)]*)/i,j=/opacity:([^;]*)/i,s=/alpha\(opacity *=.+?\)/i,z=/^(rgb|hsl)/,B=/([A-Z])/g,q=/-([a-z])/gi,H=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,W=/(?:Left|Right|Width)/i,X=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,Y=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,U=/,(?=[^\)]*(?:\(|$))/gi,G=/[\s,\(]/i,Z=Math.PI/180,$=180/Math.PI,K={},e={style:{}},Q=_gsScope.document||{createElement:function(){return e}},J=o("div"),tt=o("img"),n=D._internals={_specialProps:f},et=(_gsScope.navigator||{}).userAgent||"",it=(Mt=et.indexOf("Android"),Ct=o("a"),v=-1!==et.indexOf("Safari")&&-1===et.indexOf("Chrome")&&(-1===Mt||3<parseFloat(et.substr(Mt+8,2))),_=v&&parseFloat(et.substr(et.indexOf("Version/")+8,2))<6,F=-1!==et.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(et)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(et))&&(x=parseFloat(RegExp.$1)),!!Ct&&(Ct.style.cssText="top:1px;opacity:.55;",/^0.55/.test(Ct.style.opacity))),nt="",st="",rt=Q.defaultView?Q.defaultView.getComputedStyle:function(){},at=D.getStyle=function(t,e,i,n,s){var r;return it||"opacity"!==e?(!n&&t.style[e]?r=t.style[e]:(i=i||rt(t))?r=i[e]||i.getPropertyValue(e)||i.getPropertyValue(e.replace(B,"-$1").toLowerCase()):t.currentStyle&&(r=t.currentStyle[e]),null==s||r&&"none"!==r&&"auto"!==r&&"auto auto"!==r?r:s):l(t)},ot=n.convertToPixels=function(t,e,i,n,s){if("px"===n||!n&&"lineHeight"!==e)return i;if("auto"===n||!i)return 0;var r,a,o,l=W.test(e),h=t,p=J.style,u=i<0,c=1===i;if(u&&(i=-i),c&&(i*=100),"lineHeight"!==e||n)if("%"===n&&-1!==e.indexOf("border"))r=i/100*(l?t.clientWidth:t.clientHeight);else{if(p.cssText="border:0 solid red;position:"+at(t,"position")+";line-height:0;","%"!==n&&h.appendChild&&"v"!==n.charAt(0)&&"rem"!==n)p[l?"borderLeftWidth":"borderTopWidth"]=i+n;else{if(h=t.parentNode||Q.body,-1!==at(h,"display").indexOf("flex")&&(p.position="absolute"),a=h._gsCache,o=M.ticker.frame,a&&l&&a.time===o)return a.width*i/100;p[l?"width":"height"]=i+n}h.appendChild(J),r=parseFloat(J[l?"offsetWidth":"offsetHeight"]),h.removeChild(J),l&&"%"===n&&!1!==D.cacheWidths&&((a=h._gsCache=h._gsCache||{}).time=o,a.width=r/i*100),0!==r||s||(r=ot(t,e,i,n,!0))}else a=rt(t).lineHeight,t.style.lineHeight=i,r=parseFloat(rt(t).lineHeight),t.style.lineHeight=a;return c&&(r/=100),u?-r:r},lt=n.calculateOffset=function(t,e,i){if("absolute"!==at(t,"position",i))return 0;var n="left"===e?"Left":"Top",i=at(t,"margin"+n,i);return t["offset"+n]-(ot(t,e,parseFloat(i),i.replace(R,""))||0)},ht={width:["Left","Right"],height:["Top","Bottom"]},pt=["marginLeft","marginRight","marginTop","marginBottom"],ut=function(t,e){if("contain"===t||"auto"===t||"auto auto"===t)return t+" ";var i,n=(t=null==t||""===t?"0 0":t).split(" "),s=-1!==t.indexOf("left")?"0%":-1!==t.indexOf("right")?"100%":n[0],r=-1!==t.indexOf("top")?"0%":-1!==t.indexOf("bottom")?"100%":n[1];if(3<n.length&&!e){for(n=t.split(", ").join(",").split(","),t=[],i=0;i<n.length;i++)t.push(ut(n[i]));return t.join(",")}return null==r?r="center"===s?"50%":"0":"center"===r&&(r="50%"),t=(s="center"===s||isNaN(parseFloat(s))&&-1===(s+"").indexOf("=")?"50%":s)+" "+r+(2<n.length?" "+n[2]:""),e&&(e.oxp=-1!==s.indexOf("%"),e.oyp=-1!==r.indexOf("%"),e.oxr="="===s.charAt(1),e.oyr="="===r.charAt(1),e.ox=parseFloat(s.replace(N,"")),e.oy=parseFloat(r.replace(N,"")),e.v=t),e||t},ct={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]},ft=D.parseColor=function(t,e){var i,n,s,r,a,o,l,h;if(t)if("number"==typeof t)i=[t>>16,t>>8&255,255&t];else{if(","===t.charAt(t.length-1)&&(t=t.substr(0,t.length-1)),ct[t])i=ct[t];else if("#"===t.charAt(0))4===t.length&&(t="#"+(n=t.charAt(1))+n+(s=t.charAt(2))+s+(r=t.charAt(3))+r),i=[(t=parseInt(t.substr(1),16))>>16,t>>8&255,255&t];else if("hsl"===t.substr(0,3))if(i=h=t.match(O),e){if(-1!==t.indexOf("="))return t.match(L)}else a=Number(i[0])%360/360,o=Number(i[1])/100,n=2*(l=Number(i[2])/100)-(s=l<=.5?l*(o+1):l+o-l*o),3<i.length&&(i[3]=Number(i[3])),i[0]=p(a+1/3,n,s),i[1]=p(a,n,s),i[2]=p(a-1/3,n,s);else i=t.match(O)||ct.transparent;i[0]=Number(i[0]),i[1]=Number(i[1]),i[2]=Number(i[2]),3<i.length&&(i[3]=Number(i[3]))}else i=ct.black;return e&&!h&&(n=i[0]/255,s=i[1]/255,r=i[2]/255,l=((t=Math.max(n,s,r))+(e=Math.min(n,s,r)))/2,t===e?a=o=0:(h=t-e,o=.5<l?h/(2-t-e):h/(t+e),a=t===n?(s-r)/h+(s<r?6:0):t===s?(r-n)/h+2:(n-s)/h+4,a*=60),i[0]=a+.5|0,i[1]=100*o+.5|0,i[2]=100*l+.5|0),i},dt="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(t in ct)dt+="|"+t+"\\b";dt=new RegExp(dt+")","gi"),D.colorStringFilter=function(t){var e=t[0]+" "+t[1];dt.test(e)&&(e=-1!==e.indexOf("hsl(")||-1!==e.indexOf("hsla("),t[0]=i(t[0],e),t[1]=i(t[1],e)),dt.lastIndex=0},M.defaultStringFilter||(M.defaultStringFilter=D.colorStringFilter);function mt(t,e,r,a){if(null==t)return function(t){return t};var o,l=e?(t.match(dt)||[""])[0]:"",h=t.split(l).join("").match(b)||[],p=t.substr(0,t.indexOf(h[0])),u=")"===t.charAt(t.length-1)?")":"",c=-1!==t.indexOf(" ")?" ":",",f=h.length,d=0<f?h[0].replace(O,""):"";return f?o=e?function(t){var e,i,n,s;if("number"==typeof t)t+=d;else if(a&&U.test(t)){for(s=t.replace(U,"|").split("|"),n=0;n<s.length;n++)s[n]=o(s[n]);return s.join(",")}if(e=(t.match(dt)||[l])[0],n=(i=t.split(e).join("").match(b)||[]).length,f>n--)for(;++n<f;)i[n]=r?i[(n-1)/2|0]:h[n];return p+i.join(c)+c+e+u+(-1!==t.indexOf("inset")?" inset":"")}:function(t){var e,i,n;if("number"==typeof t)t+=d;else if(a&&U.test(t)){for(i=t.replace(U,"|").split("|"),n=0;n<i.length;n++)i[n]=o(i[n]);return i.join(",")}if(n=(e=t.match(b)||[]).length,f>n--)for(;++n<f;)e[n]=r?e[(n-1)/2|0]:h[n];return p+e.join(c)+u}:function(t){return t}}function gt(h){return h=h.split(","),function(t,e,i,n,s,r,a){var o,l=(e+"").split(" ");for(a={},o=0;o<4;o++)a[h[o]]=l[o]=l[o]||l[(o-1)/2>>0];return n.parse(t,a,s,r)}}function yt(t,e,i,n,s){this.t=t,this.p=e,this.v=i,this.r=s,n&&((n._prev=this)._next=n)}n._setPluginRatio=function(t){this.plugin.setRatio(t);for(var e,i,n,s,r,a=this.data,o=a.proxy,l=a.firstMPT;l;)e=o[l.v],l.r?e=Math.round(e):e<1e-6&&-1e-6<e&&(e=0),l.t[l.p]=e,l=l._next;if(a.autoRotate&&(a.autoRotate.rotation=a.mod?a.mod(o.rotation,this.t):o.rotation),1===t||0===t)for(l=a.firstMPT,r=1===t?"e":"b";l;){if((i=l.t).type){if(1===i.type){for(s=i.xs0+i.s+i.xs1,n=1;n<i.l;n++)s+=i["xn"+n]+i["xs"+(n+1)];i[r]=s}}else i[r]=i.s+i.xs0;l=l._next}},n._parseToProxy=function(t,e,i,n,s,r){var a,o,l,h,p=n,u={},c={},f=i._transform,d=K;for(i._transform=null,K=e,n=s=i.parse(t,e,n,s),K=d,r&&(i._transform=f,p&&(p._prev=null,p._prev&&(p._prev._next=null)));n&&n!==p;){if(n.type<=1&&(c[o=n.p]=n.s+n.c,u[o]=n.s,r||(h=new yt(n,"s",o,h,n.r),n.c=0),1===n.type))for(a=n.l;0<--a;)c[o=n.p+"_"+(l="xn"+a)]=n.data[l],u[o]=n[l],r||(h=new yt(n,l,o,h,n.rxp[l]));n=n._next}return{proxy:u,end:c,firstMPT:h,pt:s}};function vt(t,e,i,n,s,r){return(r=new _t(t,e,i,n-i,s,-1,r)).b=i,r.e=r.xs0=n,r}var _t=n.CSSPropTween=function(t,e,i,n,s,r,a,o,l,h,p){this.t=t,this.p=e,this.s=i,this.c=n,this.n=a||e,t instanceof _t||u.push(this.n),this.r=o,this.type=r||0,l&&(this.pr=l,c=!0),this.b=void 0===h?i:h,this.e=void 0===p?i+n:p,s&&((this._next=s)._prev=this)},bt=D.parseComplex=function(t,e,i,n,s,r,a,o,l,h){i=i||r||"","function"==typeof n&&(n=n(I,C)),a=new _t(t,e,0,0,a,h?2:1,null,!1,o,i,n),n+="",s&&dt.test(n+i)&&(D.colorStringFilter(n=[i,n]),i=n[0],n=n[1]);var p,u,c,f,d,m,g,y,v,_,b,x,w=i.split(", ").join(",").split(" "),T=n.split(", ").join(",").split(" "),k=w.length,P=!1!==E;for(-1===n.indexOf(",")&&-1===i.indexOf(",")||(T=-1!==(n+i).indexOf("rgb")||-1!==(n+i).indexOf("hsl")?(w=w.join(" ").replace(U,", ").split(" "),T.join(" ").replace(U,", ").split(" ")):(w=w.join(" ").split(",").join(", ").split(" "),T.join(" ").split(",").join(", ").split(" ")),k=w.length),k!==T.length&&(k=(w=(r||"").split(" ")).length),a.plugin=l,a.setRatio=h,p=dt.lastIndex=0;p<k;p++)if(f=w[p],d=T[p],(y=parseFloat(f))||0===y)a.appendXtra("",y,A(d,y),d.replace(L,""),P&&-1!==d.indexOf("px"),!0);else if(s&&dt.test(f))b=")"+((b=d.indexOf(")")+1)?d.substr(b):""),x=-1!==d.indexOf("hsl")&&it,v=d,f=ft(f,x),d=ft(d,x),(y=6<f.length+d.length)&&!it&&0===d[3]?(a["xs"+a.l]+=a.l?" transparent":"transparent",a.e=a.e.split(T[p]).join("transparent")):(it||(y=!1),x?a.appendXtra(v.substr(0,v.indexOf("hsl"))+(y?"hsla(":"hsl("),f[0],A(d[0],f[0]),",",!1,!0).appendXtra("",f[1],A(d[1],f[1]),"%,",!1).appendXtra("",f[2],A(d[2],f[2]),y?"%,":"%"+b,!1):a.appendXtra(v.substr(0,v.indexOf("rgb"))+(y?"rgba(":"rgb("),f[0],d[0]-f[0],",",!0,!0).appendXtra("",f[1],d[1]-f[1],",",!0).appendXtra("",f[2],d[2]-f[2],y?",":b,!0),y&&(f=f.length<4?1:f[3],a.appendXtra("",f,(d.length<4?1:d[3])-f,b,!1))),dt.lastIndex=0;else if(m=f.match(O)){if(!(g=d.match(L))||g.length!==m.length)return a;for(u=c=0;u<m.length;u++)_=m[u],v=f.indexOf(_,c),a.appendXtra(f.substr(c,v-c),Number(_),A(g[u],_),"",P&&"px"===f.substr(v+_.length,2),0===u),c=v+_.length;a["xs"+a.l]+=f.substr(c)}else a["xs"+a.l]+=a.l||a["xs"+a.l]?" "+d:d;if(-1!==n.indexOf("=")&&a.data){for(b=a.xs0+a.data.s,p=1;p<a.l;p++)b+=a["xs"+p]+a.data["xn"+p];a.e=b+a["xs"+p]}return a.l||(a.type=-1,a.xs0=a.e),a.xfirst||a},xt=9;for((t=_t.prototype).l=t.pr=0;0<--xt;)t["xn"+xt]=0,t["xs"+xt]="";t.xs0="",t._next=t._prev=t.xfirst=t.data=t.plugin=t.setRatio=t.rxp=null,t.appendXtra=function(t,e,i,n,s,r){var a=this,o=a.l;return a["xs"+o]+=r&&(o||a["xs"+o])?" "+t:t||"",i||0===o||a.plugin?(a.l++,a.type=a.setRatio?2:1,a["xs"+a.l]=n||"",0<o?(a.data["xn"+o]=e+i,a.rxp["xn"+o]=s,a["xn"+o]=e,a.plugin||(a.xfirst=new _t(a,"xn"+o,e,i,a.xfirst||a,0,a.n,s,a.pr),a.xfirst.xs0=0)):(a.data={s:e+i},a.rxp={},a.s=e,a.c=i,a.r=s),a):(a["xs"+o]+=e+(n||""),a)};function wt(t,e){this.p=(e=e||{}).prefix&&T(t)||t,(f[t]=f[this.p]=this).format=e.formatter||mt(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}var Tt=n._registerComplexSpecialProp=function(t,e,i){"object"!=typeof e&&(e={parser:i});var n,s=t.split(","),r=e.defaultValue;for(i=i||[r],n=0;n<s.length;n++)e.prefix=0===n&&e.prefix,e.defaultValue=i[n]||r,new wt(s[n],e)},kt=n._registerPluginProp=function(t){var l;f[t]||(l=t.charAt(0).toUpperCase()+t.substr(1)+"Plugin",Tt(t,{parser:function(t,e,i,n,s,r,a){var o=h.com.greensock.plugins[l];return o?(o._cssRegister(),f[i].parse(t,e,i,n,s,r,a)):(d("Error: "+l+" js file not loaded."),s)}}))};(t=wt.prototype).parseComplex=function(t,e,i,n,s,r){var a,o,l,h,p,u,c=this.keyword;if(this.multi&&(U.test(i)||U.test(e)?(o=e.replace(U,"|").split("|"),l=i.replace(U,"|").split("|")):c&&(o=[e],l=[i])),l){for(h=(l.length>o.length?l:o).length,a=0;a<h;a++)e=o[a]=o[a]||this.dflt,i=l[a]=l[a]||this.dflt,c&&(p=e.indexOf(c))!==(u=i.indexOf(c))&&(-1===u?o[a]=o[a].split(c).join(""):-1===p&&(o[a]+=" "+c));e=o.join(", "),i=l.join(", ")}return bt(t,this.p,e,i,this.clrs,this.dflt,n,this.pr,s,r)},t.parse=function(t,e,i,n,s,r,a){return this.parseComplex(t.style,this.format(at(t,this.p,k,!1,this.dflt)),this.format(e),s,r)},D.registerSpecialProp=function(t,o,l){Tt(t,{parser:function(t,e,i,n,s,r,a){s=new _t(t,i,0,0,s,2,i,!1,l);return s.plugin=r,s.setRatio=o(t,e,n._tween,i),s},priority:l})},D.useSVGTransformAttr=!0;function Pt(t,e,i,n,s,r){var a,o,l,h,p,u,c,f,d,m,g,y,v=t._gsTransform,_=At(t,!0);v&&(g=v.xOrigin,y=v.yOrigin),(!n||(a=n.split(" ")).length<2)&&(0===(c=t.getBBox()).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}),a=[(-1!==(e=ut(e).split(" "))[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=h=parseFloat(a[0]),i.yOrigin=p=parseFloat(a[1]),n&&_!==Ht&&(u=_[0],c=_[1],f=_[2],d=_[3],m=_[4],e=_[5],(n=u*d-c*f)&&(l=h*(-c/n)+p*(u/n)-(u*e-c*m)/n,h=i.xOrigin=a[0]=o=h*(d/n)+p*(-f/n)+(f*e-d*m)/n,p=i.yOrigin=a[1]=l)),v&&(r&&(i.xOffset=v.xOffset,i.yOffset=v.yOffset,v=i),s||!1!==s&&!1!==D.defaultSmoothOrigin?(v.xOffset+=(o=h-g)*_[0]+(l=p-y)*_[2]-o,v.yOffset+=o*_[1]+l*_[3]-l):v.xOffset=v.yOffset=0),r||t.setAttribute("data-svg-origin",a.join(" "))}function At(t,e){var i,n,s,r,a,o,l=t._gsTransform||new Nt,h=t.style;if(Ft?n=at(t,It,null,!0):t.currentStyle&&(n=(n=t.currentStyle.filter.match(X))&&4===n.length?[n[0].substr(4),Number(n[2].substr(4)),Number(n[1].substr(4)),n[3].substr(4),l.x||0,l.y||0].join(","):""),i=!n||"none"===n||"matrix(1, 0, 0, 1, 0, 0)"===n,!Ft||!(o=!rt(t)||"none"===rt(t).display)&&t.parentNode||(o&&(r=h.display,h.display="block"),t.parentNode||(a=1,jt.appendChild(t)),i=!(n=at(t,It,null,!0))||"none"===n||"matrix(1, 0, 0, 1, 0, 0)"===n,r?h.display=r:o&&Gt(h,"display"),a&&jt.removeChild(t)),(l.svg||t.getCTM&&qt(t))&&(i&&-1!==(h[Ft]+"").indexOf("matrix")&&(n=h[Ft],i=0),s=t.getAttribute("transform"),i&&s&&(-1!==s.indexOf("matrix")?(n=s,i=0):-1!==s.indexOf("translate")&&(n="matrix(1,0,0,1,"+s.match(/(?:\-|\b)[\d\-\.e]+\b/gi).join(",")+")",i=0))),i)return Ht;for(s=(n||"").match(O)||[],xt=s.length;-1<--xt;)r=Number(s[xt]),s[xt]=(a=r-(r|=0))?(1e5*a+(a<0?-.5:.5)|0)/1e5+r:r;return e&&6<s.length?[s[0],s[1],s[4],s[5],s[12],s[13]]:s}function St(t){var e,i,n=this.data,s=(m=-n.rotation*Z)+n.skewX*Z,r=1e5,a=(Math.cos(m)*n.scaleX*r|0)/r,o=(Math.sin(m)*n.scaleX*r|0)/r,l=(Math.sin(s)*-n.scaleY*r|0)/r,h=(Math.cos(s)*n.scaleY*r|0)/r,p=this.t.style,u=this.t.currentStyle;if(u){i=o,o=-l,l=-i,e=u.filter,p.filter="";var c=this.t.offsetWidth,f=this.t.offsetHeight,d="absolute"!==u.position,m="progid:DXImageTransform.Microsoft.Matrix(M11="+a+", M12="+o+", M21="+l+", M22="+h,s=n.x+c*n.xPercent/100,r=n.y+f*n.yPercent/100;if(null!=n.ox&&(s+=(_=(n.oxp?c*n.ox*.01:n.ox)-c/2)-(_*a+(b=(n.oyp?f*n.oy*.01:n.oy)-f/2)*o),r+=b-(_*l+b*h)),m+=d?", Dx="+((_=c/2)-(_*a+(b=f/2)*o)+s)+", Dy="+(b-(_*l+b*h)+r)+")":", sizingMethod='auto expand')",-1!==e.indexOf("DXImageTransform.Microsoft.Matrix(")?p.filter=e.replace(Y,m):p.filter=m+" "+e,0!==t&&1!==t||1==a&&0==o&&0==l&&1==h&&(d&&-1===m.indexOf("Dx=0, Dy=0")||V.test(e)&&100!==parseFloat(RegExp.$1)||-1===e.indexOf(e.indexOf("Alpha"))&&p.removeAttribute("filter")),!d){var g,y,v=x<8?1:-1,_=n.ieOffsetX||0,b=n.ieOffsetY||0;for(n.ieOffsetX=Math.round((c-((a<0?-a:a)*c+(o<0?-o:o)*f))/2+s),n.ieOffsetY=Math.round((f-((h<0?-h:h)*f+(l<0?-l:l)*c))/2+r),xt=0;xt<4;xt++)y=(i=-1!==(y=u[g=pt[xt]]).indexOf("px")?parseFloat(y):ot(this.t,g,parseFloat(y),y.replace(R,""))||0)!==n[g]?xt<2?-n.ieOffsetX:-n.ieOffsetY:xt<2?_-n.ieOffsetX:b-n.ieOffsetY,p[g]=(n[g]=Math.round(i-y*(0===xt||2===xt?1:v)))+"px"}}}var Et,Ct,Mt,Dt="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),Ft=T("transform"),It=nt+"transform",Ot=T("transformOrigin"),Lt=null!==T("perspective"),Nt=n.Transform=function(){this.perspective=parseFloat(D.defaultTransformPerspective)||0,this.force3D=!1!==D.defaultForce3D&&Lt&&(D.defaultForce3D||"auto")},Rt=_gsScope.SVGElement,Vt=function(t,e,i){var n,s=Q.createElementNS("http://www.w3.org/2000/svg",t),r=/([a-z])([A-Z])/g;for(n in i)s.setAttributeNS(null,n.replace(r,"$1-$2").toLowerCase(),i[n]);return e.appendChild(s),s},jt=Q.documentElement||{},zt=(Mt=x||/Android/i.test(et)&&!_gsScope.chrome,Q.createElementNS&&!Mt&&(Ct=Vt("svg",jt),Vt=(et=Vt("rect",Ct,{width:100,height:50,x:100})).getBoundingClientRect().width,et.style[Ot]="50% 50%",et.style[Ft]="scaleX(0.5)",Mt=Vt===et.getBoundingClientRect().width&&!(F&&Lt),jt.removeChild(Ct)),Mt),Bt=function(t){var e,i=o("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=this.parentNode,s=this.nextSibling,r=this.style.cssText;if(jt.appendChild(i),i.appendChild(this),this.style.display="block",t)try{e=this.getBBox(),this._originalGetBBox=this.getBBox,this.getBBox=Bt}catch(t){}else this._originalGetBBox&&(e=this._originalGetBBox());return s?n.insertBefore(this,s):n.appendChild(this),jt.removeChild(i),this.style.cssText=r,e},qt=function(t){return!(!Rt||!t.getCTM||t.parentNode&&!t.ownerSVGElement||!function(e){try{return e.getBBox()}catch(t){return Bt.call(e,!0)}}(t))},Ht=[1,0,0,1,0,0],Wt=n.getTransform=function(t,e,i,n){if(t._gsTransform&&i&&!n)return t._gsTransform;var s,r,a,o,l,h,p,u,c,f,d,m,g,y,v,_,b,x,w,T,k,P,A=i&&t._gsTransform||new Nt,S=A.scaleX<0,E=Lt&&(parseFloat(at(t,Ot,e,!1,"0 0 0").split(" ")[2])||A.zOrigin)||0,C=parseFloat(D.defaultTransformPerspective)||0;if(A.svg=!(!t.getCTM||!qt(t)),A.svg&&(Pt(t,at(t,Ot,e,!1,"50% 50%")+"",A,t.getAttribute("data-svg-origin")),Et=D.useSVGTransformAttr||zt),(r=At(t))!==Ht)for(s in 16===r.length?(T=r[0],P=r[1],a=r[2],o=r[3],k=r[4],l=r[5],h=r[6],p=r[7],u=r[8],c=r[9],f=r[10],d=r[12],x=r[13],w=r[14],m=r[11],e=Math.atan2(h,f),A.zOrigin&&(d=u*(w=-A.zOrigin)-r[12],x=c*w-r[13],w=f*w+A.zOrigin-r[14]),A.rotationX=e*$,e&&(g=k*(_=Math.cos(-e))+u*(b=Math.sin(-e)),y=l*_+c*b,v=h*_+f*b,u=k*-b+u*_,c=l*-b+c*_,f=h*-b+f*_,m=p*-b+m*_,k=g,l=y,h=v),e=Math.atan2(-a,f),A.rotationY=e*$,e&&(y=P*(_=Math.cos(-e))-c*(b=Math.sin(-e)),v=a*_-f*b,c=P*b+c*_,f=a*b+f*_,m=o*b+m*_,T=g=T*_-u*b,P=y,a=v),e=Math.atan2(P,T),A.rotation=e*$,e&&(g=T*(_=Math.cos(e))+P*(b=Math.sin(e)),y=k*_+l*b,v=u*_+c*b,P=P*_-T*b,l=l*_-k*b,c=c*_-u*b,T=g,k=y,u=v),A.rotationX&&359.9<Math.abs(A.rotationX)+Math.abs(A.rotation)&&(A.rotationX=A.rotation=0,A.rotationY=180-A.rotationY),e=Math.atan2(k,l),A.scaleX=(1e5*Math.sqrt(T*T+P*P+a*a)+.5|0)/1e5,A.scaleY=(1e5*Math.sqrt(l*l+h*h)+.5|0)/1e5,A.scaleZ=(1e5*Math.sqrt(u*u+c*c+f*f)+.5|0)/1e5,T/=A.scaleX,k/=A.scaleY,P/=A.scaleX,l/=A.scaleY,2e-5<Math.abs(e)?(A.skewX=e*$,k=0,"simple"!==A.skewType&&(A.scaleY*=1/Math.cos(e))):A.skewX=0,A.perspective=m?1/(m<0?-m:m):0,A.x=d,A.y=x,A.z=w,A.svg&&(A.x-=A.xOrigin-(A.xOrigin*T-A.yOrigin*k),A.y-=A.yOrigin-(A.yOrigin*P-A.xOrigin*l))):Lt&&!n&&r.length&&A.x===r[4]&&A.y===r[5]&&(A.rotationX||A.rotationY)||(w=(x=6<=r.length)?r[0]:1,T=r[1]||0,k=r[2]||0,P=x?r[3]:1,A.x=r[4]||0,A.y=r[5]||0,l=Math.sqrt(w*w+T*T),n=Math.sqrt(P*P+k*k),x=w||T?Math.atan2(T,w)*$:A.rotation||0,r=k||P?Math.atan2(k,P)*$+x:A.skewX||0,A.scaleX=l,A.scaleY=n,A.rotation=x,A.skewX=r,Lt&&(A.rotationX=A.rotationY=A.z=0,A.perspective=C,A.scaleZ=1),A.svg&&(A.x-=A.xOrigin-(A.xOrigin*w+A.yOrigin*k),A.y-=A.yOrigin-(A.xOrigin*T+A.yOrigin*P))),90<Math.abs(A.skewX)&&Math.abs(A.skewX)<270&&(S?(A.scaleX*=-1,A.skewX+=A.rotation<=0?180:-180,A.rotation+=A.rotation<=0?180:-180):(A.scaleY*=-1,A.skewX+=A.skewX<=0?180:-180)),A.zOrigin=E,A)A[s]<2e-5&&-2e-5<A[s]&&(A[s]=0);return i&&(t._gsTransform=A).svg&&(Et&&t.style[Ft]?M.delayedCall(.001,function(){Gt(t.style,Ft)}):!Et&&t.getAttribute("transform")&&M.delayedCall(.001,function(){t.removeAttribute("transform")})),A},Xt=n.set3DTransformRatio=n.setTransformRatio=function(t){var e,i,n,s,r,a,o,l,h,p,u,c,f,d,m=this.data,g=this.t.style,y=m.rotation,v=m.rotationX,_=m.rotationY,b=m.scaleX,x=m.scaleY,w=m.scaleZ,T=m.x,k=m.y,P=m.z,A=m.svg,S=m.perspective,E=m.force3D,C=m.skewY,M=m.skewX;if(C&&(M+=C,y+=C),!((1!==t&&0!==t||"auto"!==E||this.tween._totalTime!==this.tween._totalDuration&&this.tween._totalTime)&&E||P||S||_||v||1!==w)||Et&&A||!Lt)y||M||A?(y*=Z,d=M*Z,i=Math.cos(y)*b,s=Math.sin(y)*b,n=Math.sin(y-d)*-x,r=Math.cos(y-d)*x,d&&"simple"===m.skewType&&(e=Math.tan(d-C*Z),n*=e=Math.sqrt(1+e*e),r*=e,C&&(e=Math.tan(C*Z),i*=e=Math.sqrt(1+e*e),s*=e)),A&&(T+=m.xOrigin-(m.xOrigin*i+m.yOrigin*n)+m.xOffset,k+=m.yOrigin-(m.xOrigin*s+m.yOrigin*r)+m.yOffset,Et&&(m.xPercent||m.yPercent)&&(p=this.t.getBBox(),T+=.01*m.xPercent*p.width,k+=.01*m.yPercent*p.height),T<(p=1e-6)&&-p<T&&(T=0),k<p&&-p<k&&(k=0)),f=(1e5*i|0)/1e5+","+(1e5*s|0)/1e5+","+(1e5*n|0)/1e5+","+(1e5*r|0)/1e5+","+T+","+k+")",A&&Et?this.t.setAttribute("transform","matrix("+f):g[Ft]=(m.xPercent||m.yPercent?"translate("+m.xPercent+"%,"+m.yPercent+"%) matrix(":"matrix(")+f):g[Ft]=(m.xPercent||m.yPercent?"translate("+m.xPercent+"%,"+m.yPercent+"%) matrix(":"matrix(")+b+",0,0,"+x+","+T+","+k+")";else{if(F&&(b<(p=1e-4)&&-p<b&&(b=w=2e-5),x<p&&-p<x&&(x=w=2e-5),!S||m.z||m.rotationX||m.rotationY||(S=0)),y||M)y*=Z,u=i=Math.cos(y),c=s=Math.sin(y),M&&(y-=M*Z,u=Math.cos(y),c=Math.sin(y),"simple"===m.skewType&&(e=Math.tan((M-C)*Z),u*=e=Math.sqrt(1+e*e),c*=e,m.skewY&&(e=Math.tan(C*Z),i*=e=Math.sqrt(1+e*e),s*=e))),n=-c,r=u;else{if(!(_||v||1!==w||S||A))return void(g[Ft]=(m.xPercent||m.yPercent?"translate("+m.xPercent+"%,"+m.yPercent+"%) translate3d(":"translate3d(")+T+"px,"+k+"px,"+P+"px)"+(1!==b||1!==x?" scale("+b+","+x+")":""));i=r=1,n=s=0}o=1,d=E=t=a=l=h=0,M=S?-1/S:0,C=m.zOrigin,p=1e-6,(y=_*Z)&&(u=Math.cos(y),l=M*(t=-(c=Math.sin(y))),d=i*c,E=s*c,M*=o=u,i*=u,s*=u),(y=v*Z)&&(e=n*(u=Math.cos(y))+d*(c=Math.sin(y)),y=r*u+E*c,a=o*c,h=M*c,d=n*-c+d*u,E=r*-c+E*u,o*=u,M*=u,n=e,r=y),1!==w&&(d*=w,E*=w,o*=w,M*=w),1!==x&&(n*=x,r*=x,a*=x,h*=x),1!==b&&(i*=b,s*=b,t*=b,l*=b),(C||A)&&(C&&(T+=d*-C,k+=E*-C,P+=o*-C+C),A&&(T+=m.xOrigin-(m.xOrigin*i+m.yOrigin*n)+m.xOffset,k+=m.yOrigin-(m.xOrigin*s+m.yOrigin*r)+m.yOffset),T<p&&-p<T&&(T="0"),k<p&&-p<k&&(k="0"),P<p&&-p<P&&(P=0)),f=m.xPercent||m.yPercent?"translate("+m.xPercent+"%,"+m.yPercent+"%) matrix3d(":"matrix3d(",f+=(i<p&&-p<i?"0":i)+","+(s<p&&-p<s?"0":s)+","+(t<p&&-p<t?"0":t),f+=","+(l<p&&-p<l?"0":l)+","+(n<p&&-p<n?"0":n)+","+(r<p&&-p<r?"0":r),v||_||1!==w?(f+=","+(a<p&&-p<a?"0":a)+","+(h<p&&-p<h?"0":h)+","+(d<p&&-p<d?"0":d),f+=","+(E<p&&-p<E?"0":E)+","+(o<p&&-p<o?"0":o)+","+(M<p&&-p<M?"0":M)+","):f+=",0,0,0,0,1,0,",g[Ft]=f+=T+","+k+","+P+","+(S?1+-P/S:1)+")"}};(t=Nt.prototype).x=t.y=t.z=t.skewX=t.skewY=t.rotation=t.rotationX=t.rotationY=t.zOrigin=t.xPercent=t.yPercent=t.xOffset=t.yOffset=0,t.scaleX=t.scaleY=t.scaleZ=1,Tt("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,n,s,r,a){if(n._lastParsedTransform===a)return s;var o,l=(n._lastParsedTransform=a).scale&&"function"==typeof a.scale?a.scale:0;"function"==typeof a[i]&&(o=a[i],a[i]=e),l&&(a.scale=l(I,t));var h,p,u,c,f,d,m,g,y=t._gsTransform,v=t.style,_=Dt.length,b=a,x={},e="transformOrigin",w=Wt(t,k,!0,b.parseTransform),T=b.transform&&("function"==typeof b.transform?b.transform(I,C):b.transform);if(w.skewType=b.skewType||w.skewType||D.defaultSkewType,n._transform=w,T&&"string"==typeof T&&Ft)(p=J.style)[Ft]=T,p.display="block",p.position="absolute",Q.body.appendChild(J),h=Wt(J,null,!1),"simple"===w.skewType&&(h.scaleY*=Math.cos(h.skewX*Z)),w.svg&&(f=w.xOrigin,d=w.yOrigin,h.x-=w.xOffset,h.y-=w.yOffset,(b.transformOrigin||b.svgOrigin)&&(T={},Pt(t,ut(b.transformOrigin),T,b.svgOrigin,b.smoothOrigin,!0),f=T.xOrigin,d=T.yOrigin,h.x-=T.xOffset-w.xOffset,h.y-=T.yOffset-w.yOffset),(f||d)&&(m=At(J,!0),h.x-=f-(f*m[0]+d*m[2]),h.y-=d-(f*m[1]+d*m[3]))),Q.body.removeChild(J),h.perspective||(h.perspective=w.perspective),null!=b.xPercent&&(h.xPercent=P(b.xPercent,w.xPercent)),null!=b.yPercent&&(h.yPercent=P(b.yPercent,w.yPercent));else if("object"==typeof b){if(h={scaleX:P(null!=b.scaleX?b.scaleX:b.scale,w.scaleX),scaleY:P(null!=b.scaleY?b.scaleY:b.scale,w.scaleY),scaleZ:P(b.scaleZ,w.scaleZ),x:P(b.x,w.x),y:P(b.y,w.y),z:P(b.z,w.z),xPercent:P(b.xPercent,w.xPercent),yPercent:P(b.yPercent,w.yPercent),perspective:P(b.transformPerspective,w.perspective)},null!=(c=b.directionalRotation))if("object"==typeof c)for(p in c)b[p]=c[p];else b.rotation=c;"string"==typeof b.x&&-1!==b.x.indexOf("%")&&(h.x=0,h.xPercent=P(b.x,w.xPercent)),"string"==typeof b.y&&-1!==b.y.indexOf("%")&&(h.y=0,h.yPercent=P(b.y,w.yPercent)),h.rotation=S("rotation"in b?b.rotation:"shortRotation"in b?b.shortRotation+"_short":"rotationZ"in b?b.rotationZ:w.rotation,w.rotation,"rotation",x),Lt&&(h.rotationX=S("rotationX"in b?b.rotationX:"shortRotationX"in b?b.shortRotationX+"_short":w.rotationX||0,w.rotationX,"rotationX",x),h.rotationY=S("rotationY"in b?b.rotationY:"shortRotationY"in b?b.shortRotationY+"_short":w.rotationY||0,w.rotationY,"rotationY",x)),h.skewX=S(b.skewX,w.skewX),h.skewY=S(b.skewY,w.skewY)}for(Lt&&null!=b.force3D&&(w.force3D=b.force3D,u=!0),(m=w.force3D||w.z||w.rotationX||w.rotationY||h.z||h.rotationX||h.rotationY||h.perspective)||null==b.scale||(h.scaleZ=1);-1<--_;)(1e-6<(T=h[g=Dt[_]]-w[g])||T<-1e-6||null!=b[g]||null!=K[g])&&(u=!0,s=new _t(w,g,w[g],T,s),g in x&&(s.e=x[g]),s.xs0=0,s.plugin=r,n._overwriteProps.push(s.n));return T=b.transformOrigin,w.svg&&(T||b.svgOrigin)&&(f=w.xOffset,d=w.yOffset,Pt(t,ut(T),h,b.svgOrigin,b.smoothOrigin),s=vt(w,"xOrigin",(y?w:h).xOrigin,h.xOrigin,s,e),s=vt(w,"yOrigin",(y?w:h).yOrigin,h.yOrigin,s,e),f===w.xOffset&&d===w.yOffset||(s=vt(w,"xOffset",y?f:w.xOffset,w.xOffset,s,e),s=vt(w,"yOffset",y?d:w.yOffset,w.yOffset,s,e)),T="0px 0px"),(T||Lt&&m&&w.zOrigin)&&(Ft?(u=!0,g=Ot,T=(T||at(t,g,k,!1,"50% 50%"))+"",(s=new _t(v,g,0,0,s,-1,e)).b=v[g],s.plugin=r,Lt?(p=w.zOrigin,T=T.split(" "),w.zOrigin=(2<T.length&&(0===p||"0px"!==T[2])?parseFloat(T[2]):p)||0,s.xs0=s.e=T[0]+" "+(T[1]||"50%")+" 0px",(s=new _t(w,"zOrigin",0,0,s,-1,s.n)).b=p,s.xs0=s.e=w.zOrigin):s.xs0=s.e=T):ut(T+"",w)),u&&(n._transformType=w.svg&&Et||!m&&3!==this._transformType?2:3),o&&(a[i]=o),l&&(a.scale=l),s},prefix:!0}),Tt("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),Tt("borderRadius",{defaultValue:"0px",parser:function(t,e,i,n,s,r){e=this.format(e);for(var a,o,l,h,p,u,c,f,d,m,g=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],y=t.style,v=parseFloat(t.offsetWidth),_=parseFloat(t.offsetHeight),b=e.split(" "),x=0;x<g.length;x++)this.p.indexOf("border")&&(g[x]=T(g[x])),-1!==(l=o=at(t,g[x],k,!1,"0px")).indexOf(" ")&&(l=(o=l.split(" "))[0],o=o[1]),h=a=b[x],d=parseFloat(l),m=l.substr((d+"").length),(u=""===(u=(c="="===h.charAt(1))?(p=parseInt(h.charAt(0)+"1",10),h=h.substr(2),p*=parseFloat(h),h.substr((p+"").length-(p<0?1:0))||""):(p=parseFloat(h),h.substr((p+"").length)))?w[i]||m:u)!==m&&(f=ot(t,"borderLeft",d,m),d=ot(t,"borderTop",d,m),o="%"===u?(l=f/v*100+"%",d/_*100+"%"):"em"===u?(l=f/(m=ot(t,"borderLeft",1,"em"))+"em",d/m+"em"):(l=f+"px",d+"px"),c&&(h=parseFloat(l)+p+u,a=parseFloat(o)+p+u)),s=bt(y,g[x],l+" "+o,h+" "+a,!1,"0px",s);return s},prefix:!0,formatter:mt("0px 0px 0px 0px",!1,!0)}),Tt("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(t,e,i,n,s,r){return bt(t.style,i,this.format(at(t,i,k,!1,"0px 0px")),this.format(e),!1,"0px",s)},prefix:!0,formatter:mt("0px 0px",!1,!0)}),Tt("backgroundPosition",{defaultValue:"0 0",parser:function(t,e,i,n,s,r){var a,o,l,h,p,u,c="background-position",f=k||rt(t,null),d=this.format((f?x?f.getPropertyValue(c+"-x")+" "+f.getPropertyValue(c+"-y"):f.getPropertyValue(c):t.currentStyle.backgroundPositionX+" "+t.currentStyle.backgroundPositionY)||"0 0"),e=this.format(e);if(-1!==d.indexOf("%")!=(-1!==e.indexOf("%"))&&e.split(",").length<2&&(u=at(t,"backgroundImage").replace(H,""))&&"none"!==u){for(a=d.split(" "),o=e.split(" "),tt.setAttribute("src",u),l=2;-1<--l;)(h=-1!==(d=a[l]).indexOf("%"))!=(-1!==o[l].indexOf("%"))&&(p=0===l?t.offsetWidth-tt.width:t.offsetHeight-tt.height,a[l]=h?parseFloat(d)/100*p+"px":parseFloat(d)/p*100+"%");d=a.join(" ")}return this.parseComplex(t.style,d,e,s,r)},formatter:ut}),Tt("backgroundSize",{defaultValue:"0 0",formatter:function(t){return ut(-1===(t+="").indexOf(" ")?t+" "+t:t)}}),Tt("perspective",{defaultValue:"0px",prefix:!0}),Tt("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),Tt("transformStyle",{prefix:!0}),Tt("backfaceVisibility",{prefix:!0}),Tt("userSelect",{prefix:!0}),Tt("margin",{parser:gt("marginTop,marginRight,marginBottom,marginLeft")}),Tt("padding",{parser:gt("paddingTop,paddingRight,paddingBottom,paddingLeft")}),Tt("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(t,e,i,n,s,r){var a,o;return e=x<9?(a=t.currentStyle,o=x<8?" ":",",a="rect("+a.clipTop+o+a.clipRight+o+a.clipBottom+o+a.clipLeft+")",this.format(e).split(",").join(o)):(a=this.format(at(t,this.p,k,!1,this.dflt)),this.format(e)),this.parseComplex(t.style,a,e,s,r)}}),Tt("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),Tt("autoRound,strictUnits",{parser:function(t,e,i,n,s){return s}}),Tt("border",{defaultValue:"0px solid #000",parser:function(t,e,i,n,s,r){var a=at(t,"borderTopWidth",k,!1,"0px"),o=this.format(e).split(" "),e=o[0].replace(R,"");return"px"!==e&&(a=parseFloat(a)/ot(t,"borderTopWidth",1,e)+e),this.parseComplex(t.style,this.format(a+" "+at(t,"borderTopStyle",k,!1,"solid")+" "+at(t,"borderTopColor",k,!1,"#000")),o.join(" "),s,r)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(dt)||["#000"])[0]}}),Tt("borderWidth",{parser:gt("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),Tt("float,cssFloat,styleFloat",{parser:function(t,e,i,n,s,r){var a=t.style,t="cssFloat"in a?"cssFloat":"styleFloat";return new _t(a,t,0,0,s,-1,i,!1,0,a[t],e)}});function Yt(t){var e,i=this.t,n=i.filter||at(this.data,"filter")||"",t=this.s+this.c*t|0;(e=100==t?-1===n.indexOf("atrix(")&&-1===n.indexOf("radient(")&&-1===n.indexOf("oader(")?(i.removeAttribute("filter"),!at(this.data,"filter")):(i.filter=n.replace(s,""),!0):e)||(this.xn1&&(i.filter=n=n||"alpha(opacity="+t+")"),-1===n.indexOf("pacity")?0==t&&this.xn1||(i.filter=n+" alpha(opacity="+t+")"):i.filter=n.replace(V,"opacity="+t))}Tt("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(t,e,i,n,s,r){var a=parseFloat(at(t,"opacity",k,!1,"1")),o=t.style,l="autoAlpha"===i;return"string"==typeof e&&"="===e.charAt(1)&&(e=("-"===e.charAt(0)?-1:1)*parseFloat(e.substr(2))+a),l&&1===a&&"hidden"===at(t,"visibility",k)&&0!==e&&(a=0),it?s=new _t(o,"opacity",a,e-a,s):((s=new _t(o,"opacity",100*a,100*(e-a),s)).xn1=l?1:0,o.zoom=1,s.type=2,s.b="alpha(opacity="+s.s+")",s.e="alpha(opacity="+(s.s+s.c)+")",s.data=t,s.plugin=r,s.setRatio=Yt),l&&((s=new _t(o,"visibility",0,0,s,-1,null,!1,0,0!==a?"inherit":"hidden",0===e?"hidden":"inherit")).xs0="inherit",n._overwriteProps.push(s.n),n._overwriteProps.push(i)),s}});function Ut(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:Gt(i,e.p),e=e._next;1===t&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)}var Gt=function(t,e){e&&(t.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),t.removeProperty(e.replace(B,"-$1").toLowerCase())):t.removeAttribute(e))};Tt("className",{parser:function(t,e,i,n,s,r,a){var o,l,h,p=t.getAttribute("class")||"",u=t.style.cssText;if((s=n._classNamePT=new _t(t,i,0,0,s,2)).setRatio=Ut,s.pr=-11,c=!0,s.b=p,o=m(t,k),i=t._gsClassPT){for(l={},h=i.data;h;)l[h.p]=1,h=h._next;i.setRatio(1)}return(t._gsClassPT=s).e="="!==e.charAt(1)?e:p.replace(new RegExp("(?:\\s|^)"+e.substr(2)+"(?![\\w-])"),"")+("+"===e.charAt(0)?" "+e.substr(2):""),t.setAttribute("class",s.e),a=g(t,o,m(t),a,l),t.setAttribute("class",p),s.data=a.firstMPT,t.style.cssText=u,s=s.xfirst=n.parse(t,a.difs,s,r)}});function Zt(t){if((1===t||0===t)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var e,i,n,s,r=this.t.style,a=f.transform.parse;if("all"===this.e)s=!(r.cssText="");else for(n=(e=this.e.split(" ").join("").split(",")).length;-1<--n;)i=e[n],f[i]&&(f[i].parse===a?s=!0:i="transformOrigin"===i?Ot:f[i].p),Gt(r,i);s&&(Gt(r,Ft),(t=this.t._gsTransform)&&(t.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}}for(Tt("clearProps",{parser:function(t,e,i,n,s){return(s=new _t(t,i,0,0,s,2)).setRatio=Zt,s.e=e,s.pr=-10,s.data=n._tween,c=!0,s}}),t="bezier,throwProps,physicsProps,physics2D".split(","),xt=t.length;xt--;)kt(t[xt]);(t=D.prototype)._firstPT=t._lastParsedTransform=t._transform=null,t._onInitTween=function(t,e,i,n){if(!t.nodeType)return!1;this._target=C=t,this._tween=i,this._vars=e,I=n,E=e.autoRound,c=!1,w=e.suffixMap||D.suffixMap,k=rt(t,""),u=this._overwriteProps;var s,r,a,o,l,h,n=t.style;if(y&&""===n.zIndex&&("auto"!==(h=at(t,"zIndex",k))&&""!==h||this._addLazySet(n,"zIndex",0)),"string"==typeof e&&(a=n.cssText,h=m(t,k),n.cssText=a+";"+e,h=g(t,h,m(t)).difs,!it&&j.test(e)&&(h.opacity=parseFloat(RegExp.$1)),e=h,n.cssText=a),e.className?this._firstPT=s=f.className.parse(t,e.className,"className",this,null,null,e):this._firstPT=s=this.parse(t,e,null),this._transformType){for(h=3===this._transformType,Ft?v&&(y=!0,""===n.zIndex&&("auto"!==(e=at(t,"zIndex",k))&&""!==e||this._addLazySet(n,"zIndex",0)),_&&this._addLazySet(n,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(h?"visible":"hidden"))):n.zoom=1,r=s;r&&r._next;)r=r._next;n=new _t(t,"transform",0,0,null,2),this._linkCSSP(n,null,r),n.setRatio=Ft?Xt:St,n.data=this._transform||Wt(t,k,!0),n.tween=i,n.pr=-1,u.pop()}if(c){for(;s;){for(l=s._next,r=a;r&&r.pr>s.pr;)r=r._next;(s._prev=r?r._prev:o)?s._prev._next=s:a=s,(s._next=r)?r._prev=s:o=s,s=l}this._firstPT=a}return!0},t.parse=function(t,e,i,n){var s,r,a,o,l,h,p,u,c=t.style;for(s in e){if("function"==typeof(l=e[s])&&(l=l(I,C)),u=f[s])i=u.parse(t,l,s,this,i,n,e);else{if("--"===s.substr(0,2)){this._tween._propLookup[s]=this._addTween.call(this._tween,t.style,"setProperty",rt(t).getPropertyValue(s)+"",l+"",s,!1,s);continue}o=at(t,s,k)+"",p="string"==typeof l,"color"===s||"fill"===s||"stroke"===s||-1!==s.indexOf("Color")||p&&z.test(l)?(p||(l=(3<(l=ft(l)).length?"rgba(":"rgb(")+l.join(",")+")"),i=bt(c,s,o,l,!0,"transparent",i,0,n)):p&&G.test(l)?i=bt(c,s,o,l,!0,null,i,0,n):(h=(r=parseFloat(o))||0===r?o.substr((r+"").length):"",""!==o&&"auto"!==o||(h="width"===s||"height"===s?(r=function(t,e,i){if("svg"===(t.nodeName+"").toLowerCase())return(i||rt(t))[e]||0;if(t.getCTM&&qt(t))return t.getBBox()[e]||0;var n=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),s=ht[e],r=s.length;for(i=i||rt(t,null);-1<--r;)n-=parseFloat(at(t,"padding"+s[r],i,!0))||0,n-=parseFloat(at(t,"border"+s[r]+"Width",i,!0))||0;return n}(t,s,k),"px"):"left"===s||"top"===s?(r=lt(t,s,k),"px"):(r="opacity"!==s?0:1,"")),""===(p=(u=p&&"="===l.charAt(1))?(a=parseInt(l.charAt(0)+"1",10),l=l.substr(2),a*=parseFloat(l),l.replace(R,"")):(a=parseFloat(l),p?l.replace(R,""):""))&&(p=s in w?w[s]:h),l=a||0===a?(u?a+r:a)+p:e[s],h!==p&&(""===p&&"lineHeight"!==s||(a||0===a)&&r&&(r=ot(t,s,r,h),"%"===p?(r/=ot(t,s,100,"%")/100,!0!==e.strictUnits&&(o=r+"%")):"em"===p||"rem"===p||"vw"===p||"vh"===p?r/=ot(t,s,1,p):"px"!==p&&(a=ot(t,s,a,p),p="px"),u&&(!a&&0!==a||(l=a+r+p)))),u&&(a+=r),!r&&0!==r||!a&&0!==a?void 0!==c[s]&&(l||l+""!="NaN"&&null!=l)?(i=new _t(c,s,a||r||0,0,i,-1,s,!1,0,o,l)).xs0="none"!==l||"display"!==s&&-1===s.indexOf("Style")?l:o:d("invalid "+s+" tween value: "+e[s]):(i=new _t(c,s,r,a-r,i,0,s,!1!==E&&("px"===p||"zIndex"===s),0,o,l)).xs0=p)}n&&i&&!i.plugin&&(i.plugin=n)}return i},t.setRatio=function(t){var e,i,n,s=this._firstPT;if(1!==t||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(t||this._tween._time!==this._tween._duration&&0!==this._tween._time||-1e-6===this._tween._rawPrevTime)for(;s;){if(e=s.c*t+s.s,s.r?e=Math.round(e):e<1e-6&&-1e-6<e&&(e=0),s.type)if(1===s.type)if(2===(n=s.l))s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2;else if(3===n)s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2+s.xn2+s.xs3;else if(4===n)s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2+s.xn2+s.xs3+s.xn3+s.xs4;else if(5===n)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,n=1;n<s.l;n++)i+=s["xn"+n]+s["xs"+(n+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(n=s.l,i=s.xs0+e+s.xs1,n=1;n<s.l;n++)i+=s["xn"+n]+s["xs"+(n+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}},t._enableTransforms=function(t){this._transform=this._transform||Wt(this._target,k,!0),this._transformType=this._transform.svg&&Et||!t&&3!==this._transformType?2:3};function $t(t){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)}t._addLazySet=function(t,e,i){e=this._firstPT=new _t(t,e,0,0,this._firstPT,2);e.e=i,e.setRatio=$t,e.data=this},t._linkCSSP=function(t,e,i,n){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,n=!0),i?i._next=t:n||null!==this._firstPT||(this._firstPT=t),t._next=e,t._prev=i),t},t._mod=function(t){for(var e=this._firstPT;e;)"function"==typeof t[e.p]&&t[e.p]===Math.round&&(e.r=1),e=e._next},t._kill=function(t){var e,i,n,s=t;if(t.autoAlpha||t.alpha){for(i in s={},t)s[i]=t[i];s.opacity=1,s.autoAlpha&&(s.visibility=1)}for(t.className&&(e=this._classNamePT)&&((n=e.xfirst)&&n._prev?this._linkCSSP(n._prev,e._next,n._prev._prev):n===this._firstPT&&(this._firstPT=e._next),e._next&&this._linkCSSP(e._next,e._next._next,n._prev),this._classNamePT=null),e=this._firstPT;e;)e.plugin&&e.plugin!==i&&e.plugin._kill&&(e.plugin._kill(t),i=e.plugin),e=e._next;return r.prototype._kill.call(this,s)};function Kt(t,e,i){var n,s,r,a;if(t.slice)for(s=t.length;-1<--s;)Kt(t[s],e,i);else for(s=(n=t.childNodes).length;-1<--s;)a=(r=n[s]).type,r.style&&(e.push(m(r)),i&&i.push(r)),1!==a&&9!==a&&11!==a||!r.childNodes.length||Kt(r,e,i)}return D.cascadeTo=function(t,e,i){var n,s,r,a,o=M.to(t,e,i),l=[o],h=[],p=[],u=[],c=M._internals.reservedProps;for(t=o._targets||o.target,Kt(t,h,u),o.render(e,!0,!0),Kt(t,p),o.render(0,!0,!0),o._enabled(!0),n=u.length;-1<--n;)if((s=g(u[n],h[n],p[n])).firstMPT){for(r in s=s.difs,i)c[r]&&(s[r]=i[r]);for(r in a={},s)a[r]=h[n][r];l.push(M.fromTo(u[n],e,a,s))}return l},r.activate([D]),D},!0),(t=(t=_gsScope._gsDefine.plugin({propName:"roundProps",version:"1.6.0",priority:-1,API:2,init:function(t,e,i){return this._tween=i,!0}})).prototype)._onInitAllProps=function(){for(var t,e,i,n=this._tween,s=n.vars.roundProps.join?n.vars.roundProps:n.vars.roundProps.split(","),r=s.length,a={},o=n._propLookup.roundProps;-1<--r;)a[s[r]]=Math.round;for(r=s.length;-1<--r;)for(t=s[r],e=n._firstPT;e;)i=e._next,e.pg?e.t._mod(a):e.n===t&&(2===e.f&&e.t?function(t){for(;t;)t.f||t.blob||(t.m=Math.round),t=t._next}(e.t._firstPT):(this._add(e.t,t,e.s,e.c),i&&(i._prev=e._prev),e._prev?e._prev._next=i:n._firstPT===e&&(n._firstPT=i),e._next=e._prev=null,n._propLookup[t]=o)),e=i;return!1},t._add=function(t,e,i,n){this._addTween(t,e,i,i+n,e,Math.round),this._overwriteProps.push(e)},_gsScope._gsDefine.plugin({propName:"attr",API:2,version:"0.6.1",init:function(t,e,i,n){var s,r;if("function"!=typeof t.setAttribute)return!1;for(s in e)"function"==typeof(r=e[s])&&(r=r(n,t)),this._addTween(t,"setAttribute",t.getAttribute(s)+"",r+"",s,!1,s),this._overwriteProps.push(s);return!0}}),_gsScope._gsDefine.plugin({propName:"directionalRotation",version:"0.3.1",API:2,init:function(t,e,i,n){"object"!=typeof e&&(e={rotation:e}),this.finals={};var s,r,a,o,l,h=!0===e.useRadians?2*Math.PI:360;for(s in e)"useRadians"!==s&&(r=(l=((o="function"==typeof(o=e[s])?o(n,t):o)+"").split("_"))[0],a=parseFloat("function"!=typeof t[s]?t[s]:t[s.indexOf("set")||"function"!=typeof t["get"+s.substr(3)]?s:"get"+s.substr(3)]()),o=(o=this.finals[s]="string"==typeof r&&"="===r.charAt(1)?a+parseInt(r.charAt(0)+"1",10)*Number(r.substr(2)):Number(r)||0)-a,l.length&&(-1!==(r=l.join("_")).indexOf("short")&&(o%=h)!==o%(h/2)&&(o=o<0?o+h:o-h),-1!==r.indexOf("_cw")&&o<0?o=(o+9999999999*h)%h-(o/h|0)*h:-1!==r.indexOf("ccw")&&0<o&&(o=(o-9999999999*h)%h-(o/h|0)*h)),(1e-6<o||o<-1e-6)&&(this._addTween(t,s,a,a+o,s),this._overwriteProps.push(s)));return!0},set:function(t){var e;if(1!==t)this._super.setRatio.call(this,t);else for(e=this._firstPT;e;)e.f?e.t[e.p](this.finals[e.p]):e.t[e.p]=this.finals[e.p],e=e._next}})._autoCSS=!0,_gsScope._gsDefine("easing.Back",["easing.Ease"],function(g){function t(t,e){var i=l("easing."+t,function(){},!0);return(t=i.prototype=new g).constructor=i,t.getRatio=e,i}function e(t,e,i,n,s){return n=l("easing."+t,{easeOut:new e,easeIn:new i,easeInOut:new n},!0),h(n,t),n}function y(t,e,i){this.t=t,this.v=e,i&&(((this.next=i).prev=this).c=i.v-e,this.gap=i.t-t)}var i,n,s=_gsScope.GreenSockGlobals||_gsScope,r=s.com.greensock,a=2*Math.PI,o=Math.PI/2,l=r._class,h=g.register||function(){},p=function(t,e){var i=l("easing."+t,function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1},!0),t=i.prototype=new g;return t.constructor=i,t.getRatio=e,t.config=function(t){return new i(t)},i},r=e("Back",p("BackOut",function(t){return(t-=1)*t*((this._p1+1)*t+this._p1)+1}),p("BackIn",function(t){return t*t*((this._p1+1)*t-this._p1)}),p("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)})),u=l("easing.SlowMo",function(t,e,i){e=e||0===e?e:.7,null==t?t=.7:1<t&&(t=1),this._p=1!==t?e:0,this._p1=(1-t)/2,this._p2=t,this._p3=this._p1+this._p2,this._calcEnd=!0===i},!0),p=u.prototype=new g;return p.constructor=u,p.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},u.ease=new u(.7,.7),p.config=u.config=function(t,e,i){return new u(t,e,i)},(p=(i=l("easing.SteppedEase",function(t,e){this._p1=1/(t=t||1),this._p2=t+(e?0:1),this._p3=e?1:0},!0)).prototype=new g).constructor=i,p.getRatio=function(t){return t<0?t=0:1<=t&&(t=.999999999),((this._p2*t|0)+this._p3)*this._p1},p.config=i.config=function(t,e){return new i(t,e)},(p=(n=l("easing.RoughEase",function(t){for(var e,i,n,s,r,a,o=(t=t||{}).taper||"none",l=[],h=0,p=0|(t.points||20),u=p,c=!1!==t.randomize,f=!0===t.clamp,d=t.template instanceof g?t.template:null,m="number"==typeof t.strength?.4*t.strength:.4;-1<--u;)e=c?Math.random():1/p*u,i=d?d.getRatio(e):e,n="none"===o?m:"out"===o?(s=1-e)*s*m:"in"===o?e*e*m:e<.5?(s=2*e)*s*.5*m:(s=2*(1-e))*s*.5*m,c?i+=Math.random()*n-.5*n:u%2?i+=.5*n:i-=.5*n,f&&(1<i?i=1:i<0&&(i=0)),l[h++]={x:e,y:i};for(l.sort(function(t,e){return t.x-e.x}),a=new y(1,1,null),u=p;-1<--u;)r=l[u],a=new y(r.x,r.y,a);this._prev=new y(0,0,0!==a.t?a:a.next)},!0)).prototype=new g).constructor=n,p.getRatio=function(t){var e=this._prev;if(t>e.t){for(;e.next&&t>=e.t;)e=e.next;e=e.prev}else for(;e.prev&&t<=e.t;)e=e.prev;return(this._prev=e).v+(t-e.t)/e.gap*e.c},p.config=function(t){return new n(t)},n.ease=new n,e("Bounce",t("BounceOut",function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}),t("BounceIn",function(t){return(t=1-t)<1/2.75?1-7.5625*t*t:t<2/2.75?1-(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)}),t("BounceInOut",function(t){var e=t<.5;return(t=e?1-2*t:2*t-1)<1/2.75?t*=7.5625*t:t=t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,e?.5*(1-t):.5*t+.5})),e("Circ",t("CircOut",function(t){return Math.sqrt(1-(t-=1)*t)}),t("CircIn",function(t){return-(Math.sqrt(1-t*t)-1)}),t("CircInOut",function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)})),e("Elastic",(p=function(t,e,i){var n=l("easing."+t,function(t,e){this._p1=1<=t?t:1,this._p2=(e||i)/(t<1?t:1),this._p3=this._p2/a*(Math.asin(1/this._p1)||0),this._p2=a/this._p2},!0),t=n.prototype=new g;return t.constructor=n,t.getRatio=e,t.config=function(t,e){return new n(t,e)},n})("ElasticOut",function(t){return this._p1*Math.pow(2,-10*t)*Math.sin((t-this._p3)*this._p2)+1},.3),p("ElasticIn",function(t){return-(this._p1*Math.pow(2,10*--t)*Math.sin((t-this._p3)*this._p2))},.3),p("ElasticInOut",function(t){return(t*=2)<1?this._p1*Math.pow(2,10*--t)*Math.sin((t-this._p3)*this._p2)*-.5:this._p1*Math.pow(2,-10*--t)*Math.sin((t-this._p3)*this._p2)*.5+1},.45)),e("Expo",t("ExpoOut",function(t){return 1-Math.pow(2,-10*t)}),t("ExpoIn",function(t){return Math.pow(2,10*(t-1))-.001}),t("ExpoInOut",function(t){return(t*=2)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))})),e("Sine",t("SineOut",function(t){return Math.sin(t*o)}),t("SineIn",function(t){return 1-Math.cos(t*o)}),t("SineInOut",function(t){return-.5*(Math.cos(Math.PI*t)-1)})),l("easing.EaseLookup",{find:function(t){return g.map[t]}},!0),h(s.SlowMo,"SlowMo","ease,"),h(n,"RoughEase","ease,"),h(i,"SteppedEase","ease,"),r},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(c,f){"use strict";var d={},m=c.document,g=c.GreenSockGlobals=c.GreenSockGlobals||c;if(!g.TweenLite){var y,e,i,v=function(t){for(var e=t.split("."),i=g,n=0;n<e.length;n++)i[e[n]]=i=i[e[n]]||{};return i},u=v("com.greensock"),_=1e-10,o=function(t){for(var e=[],i=t.length,n=0;n!==i;e.push(t[n++]));return e},b=function(){},x=(e=Object.prototype.toString,i=e.call([]),function(t){return null!=t&&(t instanceof Array||"object"==typeof t&&!!t.push&&e.call(t)===i)}),w={},T=function(o,l,h,p){this.sc=w[o]?w[o].sc:[],(w[o]=this).gsClass=null,this.func=h;var u=[];this.check=function(t){for(var e,i,n,s,r=l.length,a=r;-1<--r;)(e=w[l[r]]||new T(l[r],[])).gsClass?(u[r]=e.gsClass,a--):t&&e.sc.push(this);if(0===a&&h){if(n=(i=("com.greensock."+o).split(".")).pop(),s=v(i.join("."))[n]=this.gsClass=h.apply(h,u),p)if(g[n]=d[n]=s,"undefined"!=typeof module&&module.exports)if(o===f)for(r in module.exports=d[f]=s,d)s[r]=d[r];else d[f]&&(d[f][n]=s);else"function"==typeof define&&define.amd&&define((c.GreenSockAMDPath?c.GreenSockAMDPath+"/":"")+o.split(".").pop(),[],function(){return s});for(r=0;r<this.sc.length;r++)this.sc[r].check()}},this.check(!0)},n=c._gsDefine=function(t,e,i,n){return new T(t,e,i,n)},k=u._class=function(t,e,i){return e=e||function(){},n(t,[],function(){return e},i),e};n.globals=g;var t,s=[0,0,1,1],P=k("easing.Ease",function(t,e,i,n){this._func=t,this._type=i||0,this._power=n||0,this._params=e?s.concat(e):s},!0),A=P.map={},r=P.register=function(t,e,i,n){for(var s,r,a,o,l=e.split(","),h=l.length,p=(i||"easeIn,easeOut,easeInOut").split(",");-1<--h;)for(r=l[h],s=n?k("easing."+r,null,!0):u.easing[r]||{},a=p.length;-1<--a;)o=p[a],A[r+"."+o]=A[o+r]=s[o]=t.getRatio?t:t[o]||new t};for((t=P.prototype)._calcEnd=!1,t.getRatio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,i=this._power,n=1===e?1-t:2===e?t:t<.5?2*t:2*(1-t);return 1===i?n*=n:2===i?n*=n*n:3===i?n*=n*n*n:4===i&&(n*=n*n*n*n),1===e?1-n:2===e?n:t<.5?n/2:1-n/2},l=(a=["Linear","Quad","Cubic","Quart","Quint,Strong"]).length;-1<--l;)t=a[l]+",Power"+l,r(new P(null,null,1,l),t,"easeOut",!0),r(new P(null,null,2,l),t,"easeIn"+(0===l?",easeNone":"")),r(new P(null,null,3,l),t,"easeInOut");A.linear=u.easing.Linear.easeIn,A.swing=u.easing.Quad.easeInOut;var S=k("events.EventDispatcher",function(t){this._listeners={},this._eventTarget=t||this});(t=S.prototype).addEventListener=function(t,e,i,n,s){s=s||0;var r,a,o=this._listeners[t],l=0;for(this!==F||y||F.wake(),null==o&&(this._listeners[t]=o=[]),a=o.length;-1<--a;)(r=o[a]).c===e&&r.s===i?o.splice(a,1):0===l&&r.pr<s&&(l=a+1);o.splice(l,0,{c:e,s:i,up:n,pr:s})},t.removeEventListener=function(t,e){var i,n=this._listeners[t];if(n)for(i=n.length;-1<--i;)if(n[i].c===e)return void n.splice(i,1)},t.dispatchEvent=function(t){var e,i,n,s=this._listeners[t];if(s)for(1<(e=s.length)&&(s=s.slice(0)),i=this._eventTarget;-1<--e;)(n=s[e])&&(n.up?n.c.call(n.s||i,{type:t,target:i}):n.c.call(n.s||i))};for(var a,E=c.requestAnimationFrame,C=c.cancelAnimationFrame,M=Date.now||function(){return(new Date).getTime()},D=M(),l=(a=["ms","moz","webkit","o"]).length;-1<--l&&!E;)E=c[a[l]+"RequestAnimationFrame"],C=c[a[l]+"CancelAnimationFrame"]||c[a[l]+"CancelRequestAnimationFrame"];k("Ticker",function(t,e){var n,s,r,a,o,l=this,h=M(),i=!(!1===e||!E)&&"auto",p=500,u=33,c="tick",f=function(t){var e,i=M()-D;p<i&&(h+=i-u),D+=i,l.time=(D-h)/1e3,i=l.time-o,(!n||0<i||!0===t)&&(l.frame++,o+=i+(a<=i?.004:a-i),e=!0),!0!==t&&(r=s(f)),e&&l.dispatchEvent(c)};S.call(l),l.time=l.frame=0,l.tick=function(){f(!0)},l.lagSmoothing=function(t,e){if(!arguments.length)return p<1e10;p=t||1e10,u=Math.min(e,p,0)},l.sleep=function(){null!=r&&((i&&C?C:clearTimeout)(r),s=b,r=null,l===F&&(y=!1))},l.wake=function(t){null!==r?l.sleep():t?h+=-D+(D=M()):10<l.frame&&(D=M()-p+5),s=0===n?b:i&&E?E:function(t){return setTimeout(t,1e3*(o-l.time)+1|0)},l===F&&(y=!0),f(2)},l.fps=function(t){if(!arguments.length)return n;a=1/((n=t)||60),o=this.time+a,l.wake()},l.useRAF=function(t){if(!arguments.length)return i;l.sleep(),i=t,l.fps(n)},l.fps(t),setTimeout(function(){"auto"===i&&l.frame<5&&"hidden"!==m.visibilityState&&l.useRAF(!1)},1500)}),(t=u.Ticker.prototype=new u.events.EventDispatcher).constructor=u.Ticker;var h=k("core.Animation",function(t,e){this.vars=e=e||{},this._duration=this._totalDuration=t||0,this._delay=Number(e.delay)||0,this._timeScale=1,this._active=!0===e.immediateRender,this.data=e.data,this._reversed=!0===e.reversed,$&&(y||F.wake(),(e=this.vars.useFrames?Z:$).add(this,e._time),this.vars.paused&&this.paused(!0))}),F=h.ticker=new u.Ticker;(t=h.prototype)._dirty=t._gc=t._initted=t._paused=!1,t._totalTime=t._time=0,t._rawPrevTime=-1,t._next=t._last=t._onUpdate=t._timeline=t.timeline=null,t._paused=!1;var p=function(){y&&2e3<M()-D&&("hidden"!==m.visibilityState||!F.lagSmoothing())&&F.wake();var t=setTimeout(p,2e3);t.unref&&t.unref()};p(),t.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},t.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},t.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},t.seek=function(t,e){return this.totalTime(Number(t),!1!==e)},t.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,!1!==e,!0)},t.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},t.render=function(t,e,i){},t.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,!this._gc&&this.timeline||this._enabled(!0),this},t.isActive=function(){var t,e=this._timeline,i=this._startTime;return!e||!this._gc&&!this._paused&&e.isActive()&&(t=e.rawTime(!0))>=i&&t<i+this.totalDuration()/this._timeScale-1e-7},t._enabled=function(t,e){return y||F.wake(),this._gc=!t,this._active=this.isActive(),!0!==e&&(t&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!t&&this.timeline&&this._timeline._remove(this,!0)),!1},t._kill=function(t,e){return this._enabled(!1,!1)},t.kill=function(t,e){return this._kill(t,e),this},t._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},t._swapSelfInParams=function(t){for(var e=t.length,i=t.concat();-1<--e;)"{self}"===t[e]&&(i[e]=this);return i},t._callback=function(t){var e=this.vars,i=e[t],n=e[t+"Params"],s=e[t+"Scope"]||e.callbackScope||this;switch(n?n.length:0){case 0:i.call(s);break;case 1:i.call(s,n[0]);break;case 2:i.call(s,n[0],n[1]);break;default:i.apply(s,n)}},t.eventCallback=function(t,e,i,n){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"]=x(i)&&-1!==i.join("").indexOf("{self}")?this._swapSelfInParams(i):i,s[t+"Scope"]=n),"onUpdate"===t&&(this._onUpdate=e)}return this},t.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},t.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&0<this._time&&this._time<this._duration&&0!==t&&this.totalTime(this._totalTime*(t/this._duration),!0),this):(this._dirty=!1,this._duration)},t.totalDuration=function(t){return this._dirty=!1,arguments.length?this.duration(t):this._totalDuration},t.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(t>this._duration?this._duration:t,e)):this._time},t.totalTime=function(t,e,i){if(y||F.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(t<0&&!i&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var n=this._totalDuration,s=this._timeline;if(n<t&&!i&&(t=n),this._startTime=(this._paused?this._pauseTime:s._time)-(this._reversed?n-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||(N.length&&Q(),this.render(t,e,!1),N.length&&Q())}return this},t.progress=t.totalProgress=function(t,e){var i=this.duration();return arguments.length?this.totalTime(i*t,e):i?this._time/i:this.ratio},t.startTime=function(t){return arguments.length?(t!==this._startTime&&(this._startTime=t,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,t-this._delay)),this):this._startTime},t.endTime=function(t){return this._startTime+(0!=t?this.totalDuration():this.duration())/this._timeScale},t.timeScale=function(t){if(!arguments.length)return this._timeScale;var e,i;for(t=t||_,this._timeline&&this._timeline.smoothChildTiming&&(i=(e=this._pauseTime)||0===e?e:this._timeline.totalTime(),this._startTime=i-(i-this._startTime)*this._timeScale/t),this._timeScale=t,i=this.timeline;i&&i.timeline;)i._dirty=!0,i.totalDuration(),i=i.timeline;return this},t.reversed=function(t){return arguments.length?(t!=this._reversed&&(this._reversed=t,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},t.paused=function(t){if(!arguments.length)return this._paused;var e,i,n=this._timeline;return t!=this._paused&&n&&(y||t||F.wake(),i=(e=n.rawTime())-this._pauseTime,!t&&n.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=n.smoothChildTiming?this._totalTime:(e-this._startTime)/this._timeScale,this.render(e,e===this._totalTime,!0))),this._gc&&!t&&this._enabled(!0,!1),this};var I=k("core.SimpleTimeline",function(t){h.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0});(t=I.prototype=new h).constructor=I,t.kill()._gc=!1,t._first=t._last=t._recent=null,t._sortChildren=!1,t.add=t.insert=function(t,e,i,n){var s,r;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(r=t._startTime;s&&s._startTime>r;)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},t._remove=function(t,e){return t.timeline===this&&(e||t._enabled(!1,!0),t._prev?t._prev._next=t._next:this._first===t&&(this._first=t._next),t._next?t._next._prev=t._prev:this._last===t&&(this._last=t._prev),t._next=t._prev=t.timeline=null,t===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},t.render=function(t,e,i){var n,s=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;s;)n=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=n},t.rawTime=function(){return y||F.wake(),this._totalTime};var O=k("TweenLite",function(t,e,i){if(h.call(this,e,i),this.render=O.prototype.render,null==t)throw"Cannot tween a null target.";this.target=t="string"==typeof t&&O.selector(t)||t;var n,s,r,i=t.jquery||t.length&&t!==c&&t[0]&&(t[0]===c||t[0].nodeType&&t[0].style&&!t.nodeType),a=this.vars.overwrite;if(this._overwrite=a=null==a?G[O.defaultOverwrite]:"number"==typeof a?a>>0:G[a],(i||t instanceof Array||t.push&&x(t))&&"number"!=typeof t[0])for(this._targets=r=o(t),this._propLookup=[],this._siblings=[],n=0;n<r.length;n++)(s=r[n])?"string"!=typeof s?s.length&&s!==c&&s[0]&&(s[0]===c||s[0].nodeType&&s[0].style&&!s.nodeType)?(r.splice(n--,1),this._targets=r=r.concat(o(s))):(this._siblings[n]=J(s,this,!1),1===a&&1<this._siblings[n].length&&et(s,this,null,1,this._siblings[n])):"string"==typeof(s=r[n--]=O.selector(s))&&r.splice(n+1,1):r.splice(n--,1);else this._propLookup={},this._siblings=J(t,this,!1),1===a&&1<this._siblings.length&&et(t,this,null,1,this._siblings);(this.vars.immediateRender||0===e&&0===this._delay&&!1!==this.vars.immediateRender)&&(this._time=-_,this.render(Math.min(0,-this._delay)))},!0),L=function(t){return t&&t.length&&t!==c&&t[0]&&(t[0]===c||t[0].nodeType&&t[0].style&&!t.nodeType)};(t=O.prototype=new h).constructor=O,t.kill()._gc=!1,t.ratio=0,t._firstPT=t._targets=t._overwrittenProps=t._startAt=null,t._notifyPluginsOfEnabled=t._lazy=!1,O.version="1.20.3",O.defaultEase=t._ease=new P(null,null,1,1),O.defaultOverwrite="auto",O.ticker=F,O.autoSleep=120,O.lagSmoothing=function(t,e){F.lagSmoothing(t,e)},O.selector=c.$||c.jQuery||function(t){var e=c.$||c.jQuery;return e?(O.selector=e)(t):void 0===m?t:m.querySelectorAll?m.querySelectorAll(t):m.getElementById("#"===t.charAt(0)?t.substr(1):t)};var N=[],R={},V=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,j=/[\+-]=-?[\.\d]/,z=function(t){for(var e,i=this._firstPT;i;)e=i.blob?1===t&&null!=this.end?this.end:t?this.join(""):this.start:i.c*t+i.s,i.m?e=i.m(e,this._target||i.t):e<1e-6&&-1e-6<e&&!i.blob&&(e=0),i.f?i.fp?i.t[i.p](i.fp,e):i.t[i.p](e):i.t[i.p]=e,i=i._next},B=function(t,e,i,n){var s,r,a,o,l,h,p=[],u=0,c="",f=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(V)||[],r=e.match(V)||[],n&&(n._next=null,n.blob=1,p._firstPT=p._applyPT=n),o=r.length,a=0;a<o;a++)h=r[a],c+=(l=e.substr(u,e.indexOf(h,u)-u))||!a?l:",",u+=l.length,f?f=(f+1)%5:"rgba("===l.substr(-5)&&(f=1),h===s[a]||s.length<=a?c+=h:(c&&(p.push(c),c=""),l=parseFloat(s[a]),p.push(l),p._firstPT={_next:p._firstPT,t:p,p:p.length-1,s:l,c:("="===h.charAt(1)?parseInt(h.charAt(0)+"1",10)*parseFloat(h.substr(2)):parseFloat(h)-l)||0,f:0,m:f&&f<4?Math.round:0}),u+=h.length;return(c+=e.substr(u))&&p.push(c),p.setRatio=z,j.test(e)&&(p.end=null),p},q=function(t,e,i,n,s,r,a,o,l){"function"==typeof n&&(n=n(l||0,t));var h=typeof t[e],l="function"!=h?"":e.indexOf("set")||"function"!=typeof t["get"+e.substr(3)]?e:"get"+e.substr(3),i="get"!==i?i:l?a?t[l](a):t[l]():t[e],l="string"==typeof n&&"="===n.charAt(1),r={t:t,p:e,s:i,f:"function"==h,pg:0,n:s||e,m:r?"function"==typeof r?r:Math.round:0,pr:0,c:l?parseInt(n.charAt(0)+"1",10)*parseFloat(n.substr(2)):parseFloat(n)-i||0};if("number"==typeof i&&("number"==typeof n||l)||(a||isNaN(i)||!l&&isNaN(n)||"boolean"==typeof i||"boolean"==typeof n?(r.fp=a,r={t:B(i,l?parseFloat(r.s)+r.c:n,o||O.defaultStringFilter,r),p:"setRatio",s:0,c:1,f:2,pg:0,n:s||e,pr:0,m:0}):(r.s=parseFloat(i),l||(r.c=parseFloat(n)-r.s||0))),r.c)return(r._next=this._firstPT)&&(r._next._prev=r),this._firstPT=r},H=O._internals={isArray:x,isSelector:L,lazyTweens:N,blobDif:B},W=O._plugins={},X=H.tweenLookup={},Y=0,U=H.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},G={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},Z=h._rootFramesTimeline=new I,$=h._rootTimeline=new I,K=30,Q=H.lazyRender=function(){var t,e=N.length;for(R={};-1<--e;)(t=N[e])&&!1!==t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0),t._lazy=!1);N.length=0};$._startTime=F.time,Z._startTime=F.frame,$._active=Z._active=!0,setTimeout(Q,1),h._updateRoot=O.render=function(){var t,e,i;if(N.length&&Q(),$.render((F.time-$._startTime)*$._timeScale,!1,!1),Z.render((F.frame-Z._startTime)*Z._timeScale,!1,!1),N.length&&Q(),F.frame>=K){for(i in K=F.frame+(parseInt(O.autoSleep,10)||120),X){for(t=(e=X[i].tweens).length;-1<--t;)e[t]._gc&&e.splice(t,1);0===e.length&&delete X[i]}if((!(i=$._first)||i._paused)&&O.autoSleep&&!Z._first&&1===F._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||F.sleep()}}},F.addEventListener("tick",h._updateRoot);var J=function(t,e,i){var n,s,r=t._gsTweenID;if(X[r||(t._gsTweenID=r="t"+Y++)]||(X[r]={target:t,tweens:[]}),e&&((n=X[r].tweens)[s=n.length]=e,i))for(;-1<--s;)n[s]===e&&n.splice(s,1);return X[r].tweens},tt=function(t,e,i,n){var s,r,a=t.vars.onOverwrite;return a&&(s=a(t,e,i,n)),(a=O.onOverwrite)&&(r=a(t,e,i,n)),!1!==s&&!1!==r},et=function(t,e,i,n,s){var r,a,o;if(1===n||4<=n){for(o=s.length,f=0;f<o;f++)if((a=s[f])!==e)a._gc||a._kill(null,t,e)&&(r=!0);else if(5===n)break;return r}for(var l,h=e._startTime+_,p=[],u=0,c=0===e._duration,f=s.length;-1<--f;)(a=s[f])===e||a._gc||a._paused||(a._timeline!==e._timeline?(l=l||it(e,0,c),0===it(a,l,c)&&(p[u++]=a)):a._startTime<=h&&a._startTime+a.totalDuration()/a._timeScale>h&&((c||!a._initted)&&h-a._startTime<=2e-10||(p[u++]=a)));for(f=u;-1<--f;)a=p[f],2===n&&a._kill(i,t,e)&&(r=!0),(2!==n||!a._firstPT&&a._initted)&&(2===n||tt(a,e))&&a._enabled(!1,!1)&&(r=!0);return r},it=function(t,e,i){for(var n=t._timeline,s=n._timeScale,r=t._startTime;n._timeline;){if(r+=n._startTime,s*=n._timeScale,n._paused)return-100;n=n._timeline}return e<(r/=s)?r-e:i&&r===e||!t._initted&&r-e<2e-10?_:(r+=t.totalDuration()/t._timeScale/s)>e+_?0:r-e-_};t._init=function(){var t,e,i,n,s,r,a=this.vars,o=this._overwrittenProps,l=this._duration,h=!!a.immediateRender,p=a.ease;if(a.startAt){for(n in this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),s={},a.startAt)s[n]=a.startAt[n];if(s.data="isStart",s.overwrite=!1,s.immediateRender=!0,s.lazy=h&&!1!==a.lazy,s.startAt=s.delay=null,s.onUpdate=a.onUpdate,s.onUpdateParams=a.onUpdateParams,s.onUpdateScope=a.onUpdateScope||a.callbackScope||this,this._startAt=O.to(this.target,0,s),h)if(0<this._time)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{for(n in 0!==this._time&&(h=!1),i={},a)U[n]&&"autoCSS"!==n||(i[n]=a[n]);if(i.overwrite=0,i.data="isFromStart",i.lazy=h&&!1!==a.lazy,i.immediateRender=h,this._startAt=O.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=p=p?p instanceof P?p:"function"==typeof p?new P(p,a.easeParams):A[p]||O.defaultEase:O.defaultEase,a.easeParams instanceof Array&&p.config&&(this._ease=p.config.apply(p,a.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(r=this._targets.length,t=0;t<r;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&&O._onPluginEvent("_onInitAllProps",this),o&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),a.runBackwards)for(i=this._firstPT;i;)i.s+=i.c,i.c=-i.c,i=i._next;this._onUpdate=a.onUpdate,this._initted=!0},t._initProps=function(t,e,i,n,s){var r,a,o,l,h,p;if(null==t)return!1;for(r in R[t._gsTweenID]&&Q(),this.vars.css||t.style&&t!==c&&t.nodeType&&W.css&&!1!==this.vars.autoCSS&&function(t,e){var i,n={};for(i in t)U[i]||i in e&&"transform"!==i&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"className"!==i&&"border"!==i||!(!W[i]||W[i]&&W[i]._autoCSS)||(n[i]=t[i],delete t[i]);t.css=n}(this.vars,t),this.vars)if(p=this.vars[r],U[r])p&&(p instanceof Array||p.push&&x(p))&&-1!==p.join("").indexOf("{self}")&&(this.vars[r]=p=this._swapSelfInParams(p,this));else if(W[r]&&(l=new W[r])._onInitTween(t,this.vars[r],this,s)){for(this._firstPT=h={_next:this._firstPT,t:l,p:"setRatio",s:0,c:1,f:1,n:r,pg:1,pr:l._priority,m:0},a=l._overwriteProps.length;-1<--a;)e[l._overwriteProps[a]]=this._firstPT;(l._priority||l._onInitAllProps)&&(o=!0),(l._onDisable||l._onEnable)&&(this._notifyPluginsOfEnabled=!0),h._next&&(h._next._prev=h)}else e[r]=q.call(this,t,r,"get",p,r,0,null,this.vars.stringFilter,s);return n&&this._kill(n,t)?this._initProps(t,e,i,n,s):1<this._overwrite&&this._firstPT&&1<i.length&&et(t,this,e,this._overwrite,i)?(this._kill(e,t),this._initProps(t,e,i,n,s)):(this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration)&&(R[t._gsTweenID]=!0),o)},t.render=function(t,e,i){var n,s,r,a,o,l,h,p=this._time,u=this._duration,c=this._rawPrevTime;if(u-1e-7<=t&&0<=t?(this._totalTime=this._time=u,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(n=!0,s="onComplete",i=i||this._timeline.autoRemoveChildren),0===u&&(!this._initted&&this.vars.lazy&&!i||(this._startTime===this._timeline._duration&&(t=0),(c<0||t<=0&&-1e-7<=t||c===_&&"isPause"!==this.data)&&c!==t&&(i=!0,_<c&&(s="onReverseComplete")),this._rawPrevTime=a=!e||t||c===t?t:_))):t<1e-7?(this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==p||0===u&&0<c)&&(s="onReverseComplete",n=this._reversed),t<0&&(this._active=!1,0===u&&(!this._initted&&this.vars.lazy&&!i||(0<=c&&(c!==_||"isPause"!==this.data)&&(i=!0),this._rawPrevTime=a=!e||t||c===t?t:_))),(!this._initted||this._startAt&&this._startAt.progress())&&(i=!0)):(this._totalTime=this._time=t,this._easeType?(o=t/u,(1===(l=this._easeType)||3===l&&.5<=o)&&(o=1-o),3===l&&(o*=2),1===(h=this._easePower)?o*=o:2===h?o*=o*o:3===h?o*=o*o*o:4===h&&(o*=o*o*o*o),this.ratio=1===l?1-o:2===l?o:t/u<.5?o/2:1-o/2):this.ratio=this._ease.getRatio(t/u)),this._time!==p||i){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=p,this._rawPrevTime=c,N.push(this),void(this._lazy=[t,e]);this._time&&!n?this.ratio=this._ease.getRatio(this._time/u):n&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(!1!==this._lazy&&(this._lazy=!1),this._active||!this._paused&&this._time!==p&&0<=t&&(this._active=!0),0===p&&(this._startAt&&(0<=t?this._startAt.render(t,!0,i):s=s||"_dummyGS"),this.vars.onStart&&(0===this._time&&0!==u||e||this._callback("onStart"))),r=this._firstPT;r;)r.f?r.t[r.p](r.c*this.ratio+r.s):r.t[r.p]=r.c*this.ratio+r.s,r=r._next;this._onUpdate&&(t<0&&this._startAt&&-1e-4!==t&&this._startAt.render(t,!0,i),e||(this._time!==p||n||i)&&this._callback("onUpdate")),s&&(this._gc&&!i||(t<0&&this._startAt&&!this._onUpdate&&-1e-4!==t&&this._startAt.render(t,!0,i),n&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[s]&&this._callback(s),0===u&&this._rawPrevTime===_&&a!==_&&(this._rawPrevTime=0)))}},t._kill=function(t,e,i){if(null==(t="all"===t?null:t)&&(null==e||e===this.target))return this._lazy=!1,this._enabled(!1,!1);e="string"!=typeof e?e||this._targets||this.target:O.selector(e)||e;var n,s,r,a,o,l,h,p,u,c=i&&this._time&&i._startTime===this._startTime&&this._timeline===i._timeline;if((x(e)||L(e))&&"number"!=typeof e[0])for(n=e.length;-1<--n;)this._kill(t,e[n],i)&&(l=!0);else{if(this._targets){for(n=this._targets.length;-1<--n;)if(e===this._targets[n]){o=this._propLookup[n]||{},this._overwrittenProps=this._overwrittenProps||[],s=this._overwrittenProps[n]=t?this._overwrittenProps[n]||{}:"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,p=t!==s&&"all"!==s&&t!==o&&("object"!=typeof t||!t._tempKill),i&&(O.onOverwrite||this.vars.onOverwrite)){for(r in h)o[r]&&(u=u||[]).push(r);if((u||!t)&&!tt(this,i,e,u))return!1}for(r in h)(a=o[r])&&(c&&(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[r]),p&&(s[r]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return l},t.invalidate=function(){return this._notifyPluginsOfEnabled&&O._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],h.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-_,this.render(Math.min(0,-this._delay))),this},t._enabled=function(t,e){if(y||F.wake(),t&&this._gc){var i,n=this._targets;if(n)for(i=n.length;-1<--i;)this._siblings[i]=J(n[i],this,!0);else this._siblings=J(this.target,this,!0)}return h.prototype._enabled.call(this,t,e),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&O._onPluginEvent(t?"_onEnable":"_onDisable",this)},O.to=function(t,e,i){return new O(t,e,i)},O.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new O(t,e,i)},O.fromTo=function(t,e,i,n){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,new O(t,e,n)},O.delayedCall=function(t,e,i,n,s){return new O(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:n,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,lazy:!1,useFrames:s,overwrite:0})},O.set=function(t,e){return new O(t,0,e)},O.getTweensOf=function(t,e){if(null==t)return[];var i,n,s,r;if(t="string"==typeof t&&O.selector(t)||t,(x(t)||L(t))&&"number"!=typeof t[0]){for(i=t.length,n=[];-1<--i;)n=n.concat(O.getTweensOf(t[i],e));for(i=n.length;-1<--i;)for(r=n[i],s=i;-1<--s;)r===n[s]&&n.splice(i,1)}else if(t._gsTweenID)for(i=(n=J(t).concat()).length;-1<--i;)(n[i]._gc||e&&!n[i].isActive())&&n.splice(i,1);return n||[]},O.killTweensOf=O.killDelayedCallsTo=function(t,e,i){"object"==typeof e&&(i=e,e=!1);for(var n=O.getTweensOf(t,e),s=n.length;-1<--s;)n[s]._kill(i,t)};var nt=k("plugins.TweenPlugin",function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=nt.prototype},!0);if(t=nt.prototype,nt.version="1.19.0",nt.API=2,t._firstPT=null,t._addTween=q,t.setRatio=z,t._kill=function(t){var e,i=this._overwriteProps,n=this._firstPT;if(null!=t[this._propName])this._overwriteProps=[];else for(e=i.length;-1<--e;)null!=t[i[e]]&&i.splice(e,1);for(;n;)null!=t[n.n]&&(n._next&&(n._next._prev=n._prev),n._prev?(n._prev._next=n._next,n._prev=null):this._firstPT===n&&(this._firstPT=n._next)),n=n._next;return!1},t._mod=t._roundProps=function(t){for(var e,i=this._firstPT;i;)(e=t[this._propName]||null!=i.n&&t[i.n.split(this._propName+"_").join("")])&&"function"==typeof e&&(2===i.f?i.t._applyPT.m=e:i.m=e),i=i._next},O._onPluginEvent=function(t,e){var i,n,s,r,a,o=e._firstPT;if("_onInitAllProps"===t){for(;o;){for(a=o._next,n=s;n&&n.pr>o.pr;)n=n._next;(o._prev=n?n._prev:r)?o._prev._next=o:s=o,(o._next=n)?n._prev=o:r=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},nt.activate=function(t){for(var e=t.length;-1<--e;)t[e].API===nt.API&&(W[(new t[e])._propName]=t[e]);return!0},n.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e,i=t.propName,n=t.priority||0,s=t.overwriteProps,r={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},a=k("plugins."+i.charAt(0).toUpperCase()+i.substr(1)+"Plugin",function(){nt.call(this,i,n),this._overwriteProps=s||[]},!0===t.global),o=a.prototype=new nt(i);for(e in(o.constructor=a).API=t.API,r)"function"==typeof t[e]&&(o[r[e]]=t[e]);return a.version=t.version,nt.activate([a]),a},a=c._gsQueue){for(l=0;l<a.length;l++)a[l]();for(t in w)w[t].func||c.console.log("GSAP encountered missing dependency: "+t)}y=!1}}("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"TweenMax"),((_gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window)._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";function r(t,e){var i="x"===e?"Width":"Height",n="scroll"+i,s="client"+i,e=document.body;return t===o||t===a||t===e?Math.max(a[n],e[n])-(o["inner"+i]||a[s]||e[s]):t[n]-t["offset"+i]}function s(t,e){var i=l(t).getBoundingClientRect(),n=!e||e===o||e===document.body,t=(n?a:e).getBoundingClientRect(),t={x:i.left-t.left,y:i.top-t.top};return!n&&e&&(t.x+=h(e,"x")(),t.y+=h(e,"y")()),t}function n(t,e,i){var n=typeof t;return isNaN(t)?"number"==n||"string"==n&&"="===t.charAt(1)?t:"max"===t?r(e,i):Math.min(r(e,i),s(t,e)[i]):parseFloat(t)}var a=(_gsScope.document||{}).documentElement,o=_gsScope,l=function(t){return(t=(t="string"==typeof t?TweenLite.selector(t):t).length&&t!==o&&t[0]&&t[0].style&&!t.nodeType?t[0]:t)===o||t.nodeType&&t.style?t:null},h=function(t,e){var i="scroll"+("x"===e?"Left":"Top");return t===o&&(null!=t.pageXOffset?i="page"+e.toUpperCase()+"Offset":t=null!=a[i]?a:document.body),function(){return t[i]}},p=_gsScope._gsDefine.plugin({propName:"scrollTo",API:2,global:!0,version:"1.9.0",init:function(t,e,i){return this._wdw=t===o,this._target=t,this._tween=i,"object"!=typeof e?"string"==typeof(e={y:e}).y&&"max"!==e.y&&"="!==e.y.charAt(1)&&(e.x=e.y):e.nodeType&&(e={y:e,x:e}),this.vars=e,this._autoKill=!1!==e.autoKill,this.getX=h(t,"x"),this.getY=h(t,"y"),this.x=this.xPrev=this.getX(),this.y=this.yPrev=this.getY(),null!=e.x?(this._addTween(this,"x",this.x,n(e.x,t,"x")-(e.offsetX||0),"scrollTo_x",!0),this._overwriteProps.push("scrollTo_x")):this.skipX=!0,null!=e.y?(this._addTween(this,"y",this.y,n(e.y,t,"y")-(e.offsetY||0),"scrollTo_y",!0),this._overwriteProps.push("scrollTo_y")):this.skipY=!0,!0},set:function(t){this._super.setRatio.call(this,t);var e=this._wdw||!this.skipX?this.getX():this.xPrev,i=this._wdw||!this.skipY?this.getY():this.yPrev,n=i-this.yPrev,s=e-this.xPrev,t=p.autoKillThreshold;this.x<0&&(this.x=0),this.y<0&&(this.y=0),this._autoKill&&(!this.skipX&&(t<s||s<-t)&&e<r(this._target,"x")&&(this.skipX=!0),!this.skipY&&(t<n||n<-t)&&i<r(this._target,"y")&&(this.skipY=!0),this.skipX&&this.skipY&&(this._tween.kill(),this.vars.onAutoKill&&this.vars.onAutoKill.apply(this.vars.onAutoKillScope||this._tween,this.vars.onAutoKillParams||[]))),this._wdw?o.scrollTo(this.skipX?e:this.x,this.skipY?i:this.y):(this.skipY||(this._target.scrollTop=this.y),this.skipX||(this._target.scrollLeft=this.x)),this.xPrev=this.x,this.yPrev=this.y}}),t=p.prototype;p.max=r,p.getOffset=s,p.buildGetter=h,p.autoKillThreshold=7,t._kill=function(t){return t.scrollTo_x&&(this.skipX=!0),t.scrollTo_y&&(this.skipY=!0),this._super._kill.call(this,t)}}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(){"use strict";function t(){return(_gsScope.GreenSockGlobals||_gsScope).ScrollToPlugin}"undefined"!=typeof module&&module.exports?(require("../TweenLite.js"),module.exports=t()):"function"==typeof define&&define.amd&&define(["TweenLite"],t)}();var CountUp=function(t,e,i,n,s,r){var a=this;if(a.version=function(){return"1.9.3"},a.options={useEasing:!0,useGrouping:!0,separator:",",decimal:".",easingFn:function(t,e,i,n){return i*(1-Math.pow(2,-10*t/n))*1024/1023+e},formattingFn:function(t){var e,i,n,s,r=t<0;if(t=Math.abs(t).toFixed(a.decimals),t=(t+="").split("."),e=t[0],t=1<t.length?a.options.decimal+t[1]:"",a.options.useGrouping){for(i="",n=0,s=e.length;n<s;++n)0!==n&&n%3==0&&(i=a.options.separator+i),i=e[s-n-1]+i;e=i}a.options.numerals.length&&(e=e.replace(/[0-9]/g,function(t){return a.options.numerals[+t]}),t=t.replace(/[0-9]/g,function(t){return a.options.numerals[+t]}));return(r?"-":"")+a.options.prefix+e+t+a.options.suffix},prefix:"",suffix:"",numerals:[]},r&&"object"==typeof r)for(var o in a.options)r.hasOwnProperty(o)&&null!==r[o]&&(a.options[o]=r[o]);""===a.options.separator?a.options.useGrouping=!1:a.options.separator=""+a.options.separator;for(var l=0,h=["webkit","moz","ms","o"],p=0;p<h.length&&!window.requestAnimationFrame;++p)window.requestAnimationFrame=window[h[p]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[h[p]+"CancelAnimationFrame"]||window[h[p]+"CancelRequestAnimationFrame"];function u(t){return"number"==typeof t&&!isNaN(t)}window.requestAnimationFrame||(window.requestAnimationFrame=function(t,e){var i=(new Date).getTime(),n=Math.max(0,16-(i-l)),s=window.setTimeout(function(){t(i+n)},n);return l=i+n,s}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)}),a.initialize=function(){return!!a.initialized||(a.error="",a.d="string"==typeof t?document.getElementById(t):t,a.d?(a.startVal=Number(e),a.endVal=Number(i),u(a.startVal)&&u(a.endVal)?(a.decimals=Math.max(0,n||0),a.dec=Math.pow(10,a.decimals),a.duration=1e3*Number(s)||2e3,a.countDown=a.startVal>a.endVal,a.frameVal=a.startVal,a.initialized=!0):(a.error="[CountUp] startVal ("+e+") or endVal ("+i+") is not a number",!1)):!(a.error="[CountUp] target is null or undefined"))},a.printValue=function(t){var e=a.options.formattingFn(t),i=Math.floor(e/60),t=Math.floor(e%60),e=(i=i<10?"0"+i:i)+" <span>:</span> "+(t=t<10?"0"+t:t);"INPUT"===a.d.tagName?this.d.value=e:"text"===a.d.tagName||"tspan"===a.d.tagName?this.d.textContent=e:this.d.innerHTML=e},a.count=function(t){a.startTime||(a.startTime=t);t=(a.timestamp=t)-a.startTime;a.remaining=a.duration-t,a.options.useEasing?a.countDown?a.frameVal=a.startVal-a.options.easingFn(t,0,a.startVal-a.endVal,a.duration):a.frameVal=a.options.easingFn(t,a.startVal,a.endVal-a.startVal,a.duration):a.countDown?a.frameVal=a.startVal-(a.startVal-a.endVal)*(t/a.duration):a.frameVal=a.startVal+(a.endVal-a.startVal)*(t/a.duration),a.countDown?a.frameVal=a.frameVal<a.endVal?a.endVal:a.frameVal:a.frameVal=a.frameVal>a.endVal?a.endVal:a.frameVal,a.frameVal=Math.round(a.frameVal*a.dec)/a.dec,a.printValue(a.frameVal),t<a.duration?a.rAF=requestAnimationFrame(a.count):a.callback&&a.callback()},a.start=function(t){a.initialize()&&(a.callback=t,a.rAF=requestAnimationFrame(a.count))},a.pauseResume=function(){a.paused?(a.paused=!1,delete a.startTime,a.duration=a.remaining,a.startVal=a.frameVal,requestAnimationFrame(a.count)):(a.paused=!0,cancelAnimationFrame(a.rAF))},a.reset=function(){a.paused=!1,delete a.startTime,a.initialized=!1,a.initialize()&&(cancelAnimationFrame(a.rAF),a.printValue(a.startVal))},a.update=function(t){a.initialize()&&(u(t=Number(t))?(a.error="",t!==a.frameVal&&(cancelAnimationFrame(a.rAF),a.paused=!1,delete a.startTime,a.startVal=a.frameVal,a.endVal=t,a.countDown=a.startVal>a.endVal,a.rAF=requestAnimationFrame(a.count))):a.error="[CountUp] update() - new endVal is not a number: "+t)},a.initialize()&&a.printValue(a.startVal)};!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("scrollMonitor",[],e):"object"==typeof exports?exports.scrollMonitor=e():t.scrollMonitor=e()}(this,function(){return n=[function(t,e,i){"use strict";var n=i(1).isInBrowser,i=new(i(2))(n?document.body:null);i.setStateFromDOM(null),i.listenToDOM(),n&&(window.scrollMonitor=i),t.exports=i},function(t,e){"use strict";e.VISIBILITYCHANGE="visibilityChange",e.ENTERVIEWPORT="enterViewport",e.FULLYENTERVIEWPORT="fullyEnterViewport",e.EXITVIEWPORT="exitViewport",e.PARTIALLYEXITVIEWPORT="partiallyExitViewport",e.LOCATIONCHANGE="locationChange",e.STATECHANGE="stateChange",e.eventTypes=[e.VISIBILITYCHANGE,e.ENTERVIEWPORT,e.FULLYENTERVIEWPORT,e.EXITVIEWPORT,e.PARTIALLYEXITVIEWPORT,e.LOCATIONCHANGE,e.STATECHANGE],e.isOnServer="undefined"==typeof window,e.isInBrowser=!e.isOnServer,e.defaultOffsets={top:0,bottom:0}},function(t,e,i){"use strict";function a(t){return s?0:t===document.body?window.innerHeight||document.documentElement.clientHeight:t.clientHeight}function o(t){return s?0:t===document.body?Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.documentElement.clientHeight):t.scrollHeight}function l(t){return s?0:t===document.body?window.pageYOffset||document.documentElement&&document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop}var n=i(1),s=n.isOnServer,r=n.isInBrowser,h=n.eventTypes,p=i(3),i=(u.prototype.listenToDOM=function(){r&&(window.addEventListener?((this.item===document.body?window:this.item).addEventListener("scroll",this.DOMListener),window.addEventListener("resize",this.DOMListener)):((this.item===document.body?window:this.item).attachEvent("onscroll",this.DOMListener),window.attachEvent("onresize",this.DOMListener)),this.destroy=function(){window.addEventListener?(this.item===document.body?(window.removeEventListener("scroll",this.DOMListener),this.containerWatcher.destroy()):this.item.removeEventListener("scroll",this.DOMListener),window.removeEventListener("resize",this.DOMListener)):(this.item===document.body?(window.detachEvent("onscroll",this.DOMListener),this.containerWatcher.destroy()):this.item.detachEvent("onscroll",this.DOMListener),window.detachEvent("onresize",this.DOMListener))})},u.prototype.destroy=function(){},u.prototype.DOMListener=function(t){this.setStateFromDOM(t)},u.prototype.setStateFromDOM=function(t){var e=l(this.item),i=a(this.item),n=o(this.item);this.setState(e,i,n,t)},u.prototype.setState=function(t,e,i,n){var s=e!==this.viewportHeight||i!==this.contentHeight;if(this.latestEvent=n,this.viewportTop=t,this.viewportHeight=e,this.viewportBottom=t+e,this.contentHeight=i,s)for(var r=this.watchers.length;r--;)this.watchers[r].recalculateLocation();this.updateAndTriggerWatchers(n)},u.prototype.updateAndTriggerWatchers=function(t){for(var e=this.watchers.length;e--;)this.watchers[e].update();for(e=this.watchers.length;e--;)this.watchers[e].triggerCallbacks(t)},u.prototype.createCustomContainer=function(){return new u},u.prototype.createContainer=function(t){"string"==typeof t?t=document.querySelector(t):t&&0<t.length&&(t=t[0]);t=new u(t,this);return t.setStateFromDOM(),t.listenToDOM(),t},u.prototype.create=function(t,e){"string"==typeof t?t=document.querySelector(t):t&&0<t.length&&(t=t[0]);e=new p(this,t,e);return this.watchers.push(e),e},u.prototype.beget=function(t,e){return this.create(t,e)},u);function u(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u);var i,n,s,r=this;this.item=t,this.watchers=[],this.viewportTop=null,this.viewportBottom=null,this.documentHeight=o(t),this.viewportHeight=a(t),this.DOMListener=function(){u.prototype.DOMListener.apply(r,arguments)},this.eventTypes=h,e&&(this.containerWatcher=e.create(t)),this.update=function(){(function(){if(r.viewportTop=l(t),r.viewportBottom=r.viewportTop+r.viewportHeight,r.documentHeight=o(t),r.documentHeight!==i){for(n=r.watchers.length;n--;)r.watchers[n].recalculateLocation();i=r.documentHeight}})(),function(){for(s=r.watchers.length;s--;)r.watchers[s].update();for(s=r.watchers.length;s--;)r.watchers[s].triggerCallbacks()}()},this.recalculateLocations=function(){this.documentHeight=0,this.update()}}t.exports=i},function(t,e,i){"use strict";function n(t,e,i){function a(t,e){if(0!==t.length)for(h=t.length;h--;)(p=t[h]).callback.call(n,e,n),p.isOne&&t.splice(h,1)}var n=this;this.watchItem=e,this.container=t,this.offsets=i?i===+i?{top:i,bottom:i}:{top:i.top||x.top,bottom:i.bottom||x.bottom}:x,this.callbacks={};for(var s,r,o,l,h,p,u=0,c=b.length;u<c;u++)n.callbacks[b[u]]=[];this.locked=!1,this.triggerCallbacks=function(t){switch(this.isInViewport&&!s&&a(this.callbacks[d],t),this.isFullyInViewport&&!r&&a(this.callbacks[m],t),this.isAboveViewport!==o&&this.isBelowViewport!==l&&(a(this.callbacks[f],t),r||this.isFullyInViewport||(a(this.callbacks[m],t),a(this.callbacks[y],t)),s||this.isInViewport||(a(this.callbacks[d],t),a(this.callbacks[g],t))),!this.isFullyInViewport&&r&&a(this.callbacks[y],t),!this.isInViewport&&s&&a(this.callbacks[g],t),this.isInViewport!==s&&a(this.callbacks[f],t),!0){case s!==this.isInViewport:case r!==this.isFullyInViewport:case o!==this.isAboveViewport:case l!==this.isBelowViewport:a(this.callbacks[_],t)}s=this.isInViewport,r=this.isFullyInViewport,o=this.isAboveViewport,l=this.isBelowViewport},this.recalculateLocation=function(){if(!this.locked){var t=this.top,e=this.bottom;if(this.watchItem.nodeName){var i=this.watchItem.style.display;"none"===i&&(this.watchItem.style.display="");for(var n=0,s=this.container;s.containerWatcher;)n+=s.containerWatcher.top-s.containerWatcher.container.viewportTop,s=s.containerWatcher.container;var r=this.watchItem.getBoundingClientRect();this.top=r.top+this.container.viewportTop-n,this.bottom=r.bottom+this.container.viewportTop-n,"none"===i&&(this.watchItem.style.display=i)}else this.watchItem===+this.watchItem?0<this.watchItem?this.top=this.bottom=this.watchItem:this.top=this.bottom=this.container.documentHeight-this.watchItem:(this.top=this.watchItem.top,this.bottom=this.watchItem.bottom);this.top-=this.offsets.top,this.bottom+=this.offsets.bottom,this.height=this.bottom-this.top,void 0===t&&void 0===e||this.top===t&&this.bottom===e||a(this.callbacks[v],null)}},this.recalculateLocation(),this.update(),s=this.isInViewport,r=this.isFullyInViewport,o=this.isAboveViewport,l=this.isBelowViewport}var i=i(1),f=i.VISIBILITYCHANGE,d=i.ENTERVIEWPORT,m=i.FULLYENTERVIEWPORT,g=i.EXITVIEWPORT,y=i.PARTIALLYEXITVIEWPORT,v=i.LOCATIONCHANGE,_=i.STATECHANGE,b=i.eventTypes,x=i.defaultOffsets;n.prototype={on:function(t,e,i){switch(!0){case t===f&&!this.isInViewport&&this.isAboveViewport:case t===d&&this.isInViewport:case t===m&&this.isFullyInViewport:case t===g&&this.isAboveViewport&&!this.isInViewport:case t===y&&this.isInViewport&&this.isAboveViewport:if(e.call(this,this.container.latestEvent,this),i)return}if(!this.callbacks[t])throw new Error("Tried to add a scroll monitor listener of type "+t+". Your options are: "+b.join(", "));this.callbacks[t].push({callback:e,isOne:i||!1})},off:function(t,e){if(!this.callbacks[t])throw new Error("Tried to remove a scroll monitor listener of type "+t+". Your options are: "+b.join(", "));for(var i,n=0;i=this.callbacks[t][n];n++)if(i.callback===e){this.callbacks[t].splice(n,1);break}},one:function(t,e){this.on(t,e,!0)},recalculateSize:function(){this.height=this.watchItem.offsetHeight+this.offsets.top+this.offsets.bottom,this.bottom=this.top+this.height},update:function(){this.isAboveViewport=this.top<this.container.viewportTop,this.isBelowViewport=this.bottom>this.container.viewportBottom,this.isInViewport=this.top<this.container.viewportBottom&&this.bottom>this.container.viewportTop,this.isFullyInViewport=this.top>=this.container.viewportTop&&this.bottom<=this.container.viewportBottom||this.isAboveViewport&&this.isBelowViewport},destroy:function(){var t=this.container.watchers.indexOf(this);this.container.watchers.splice(t,1);for(var e=0,i=b.length;e<i;e++)this.callbacks[b[e]].length=0},lock:function(){this.locked=!0},unlock:function(){this.locked=!1}};for(var s=0,r=b.length;s<r;s++){var a=b[s];n.prototype[a]=function(i){return function(t,e){this.on.call(this,i,t,e)}}(a)}t.exports=n}],s={},i.m=n,i.c=s,i.p="",i(0);function i(t){if(s[t])return s[t].exports;var e=s[t]={exports:{},id:t,loaded:!1};return n[t].call(e.exports,e,e.exports,i),e.loaded=!0,e.exports}var n,s}),function(t,e){"function"==typeof define&&define.amd?define(function(){return e(t)}):"object"==typeof module&&module.exports?module.exports=e(t):t.bodymovin=e(t)}(window||{},function(a){var o,l,x="http://www.w3.org/2000/svg",w="",e=!0,t=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),T=(Math.round,Math.pow),k=Math.sqrt,c=(Math.abs,Math.floor),g=(Math.max,Math.min),n={};!function(){for(var t=Object.getOwnPropertyNames(Math),e=t.length,i=0;i<e;i+=1)n[t[i]]=Math[t[i]]}(),n.random=Math.random,n.abs=function(t){if("object"==typeof t&&t.length){for(var e=Array.apply(null,{length:t.length}),i=t.length,n=0;n<i;n+=1)e[n]=Math.abs(t[n]);return e}return Math.abs(t)};var P=150,y=Math.PI/180,v=.5519;function i(t){l=t?Math.round:function(t){return t}}function s(t){return Math.round(1e4*t)/1e4}function r(t,e,i,n){this.type=t,this.currentTime=e,this.totalTime=i,this.direction=n<0?-1:1}function h(t,e){this.type=t,this.direction=e<0?-1:1}function p(t,e,i,n){this.type=t,this.currentLoop=e,this.totalLoops=i,this.direction=n<0?-1:1}function u(t,e,i){this.type=t,this.firstFrame=e,this.totalFrames=i}function f(t,e){this.type=t,this.target=e}function A(t,e){void 0===e&&(e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890");for(var i="",n=t;0<n;--n)i+=e[Math.round(Math.random()*(e.length-1))];return i}function d(t,e,i){var n,s,r,a,o,l,h,p;switch(1===arguments.length&&(e=t.s,i=t.v,t=t.h),l=i*(1-e),h=i*(1-(o=6*t-(a=Math.floor(6*t)))*e),p=i*(1-(1-o)*e),a%6){case 0:n=i,s=p,r=l;break;case 1:n=h,s=i,r=l;break;case 2:n=l,s=i,r=p;break;case 3:n=l,s=h,r=i;break;case 4:n=p,s=l,r=i;break;case 5:n=i,s=l,r=h}return[n,s,r]}function m(t,e,i){1===arguments.length&&(e=t.g,i=t.b,t=t.r);var n,s=Math.max(t,e,i),r=Math.min(t,e,i),a=s-r,o=0===s?0:a/s,l=s/255;switch(s){case r:n=0;break;case t:n=e-i+a*(e<i?6:0),n/=6*a;break;case e:n=i-t+2*a,n/=6*a;break;case i:n=t-e+4*a,n/=6*a}return[n,o,l]}function nt(t,e){t=m(255*t[0],255*t[1],255*t[2]);return t[1]+=e,1<t[1]?t[1]=1:t[1]<=0&&(t[1]=0),d(t[0],t[1],t[2])}function st(t,e){t=m(255*t[0],255*t[1],255*t[2]);return t[2]+=e,1<t[2]?t[2]=1:t[2]<0&&(t[2]=0),d(t[0],t[1],t[2])}function rt(t,e){t=m(255*t[0],255*t[1],255*t[2]);return t[0]+=e/360,1<t[0]?--t[0]:t[0]<0&&(t[0]+=1),d(t[0],t[1],t[2])}i(!1);var _=function(){for(var t,n=[],e=0;e<256;e+=1)t=e.toString(16),n[e]=1==t.length?"0"+t:t;return function(t,e,i){return"#"+n[t=t<0?0:t]+n[e=e<0?0:e]+n[i=i<0?0:i]}}();var b;b=[];var S=function(){this.reset=E,this.rotate=C,this.rotateX=M,this.rotateY=D,this.rotateZ=F,this.skew=O,this.skewFromAxis=L,this.shear=I,this.scale=N,this.setTransform=R,this.translate=V,this.transform=j,this.applyToPoint=H,this.applyToX=W,this.applyToY=X,this.applyToZ=Y,this.applyToPointArray=Z,this.applyToPointStringified=$,this.toArray=K,this.toCSS=Q,this.to2dCSS=J,this.toString=tt,this.clone=B,this.cloneFromProps=q,this.inversePoints=G,this.inversePoint=U,this._t=this.transform,this.isIdentity=z,this._identity=!0,this._identityCalculated=!1,this.props=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],this.cssParts=["matrix3d(","",")"]};function E(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function C(t){if(0===t)return this;var e=Math.cos(t),t=Math.sin(t);return this._t(e,-t,0,0,t,e,0,0,0,0,1,0,0,0,0,1)}function M(t){if(0===t)return this;var e=Math.cos(t),t=Math.sin(t);return this._t(1,0,0,0,0,e,-t,0,0,t,e,0,0,0,0,1)}function D(t){if(0===t)return this;var e=Math.cos(t),t=Math.sin(t);return this._t(e,0,t,0,0,1,0,0,-t,0,e,0,0,0,0,1)}function F(t){if(0===t)return this;var e=Math.cos(t),t=Math.sin(t);return this._t(e,-t,0,0,t,e,0,0,0,0,1,0,0,0,0,1)}function I(t,e){return this._t(1,e,t,1,0,0)}function O(t,e){return this.shear(Math.tan(t),Math.tan(e))}function L(t,e){var i=Math.cos(e),e=Math.sin(e);return this._t(i,e,0,0,-e,i,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,Math.tan(t),1,0,0,0,0,1,0,0,0,0,1)._t(i,-e,0,0,e,i,0,0,0,0,1,0,0,0,0,1)}function N(t,e,i){return i=isNaN(i)?1:i,1==t&&1==e&&1==i?this:this._t(t,0,0,0,0,e,0,0,0,0,i,0,0,0,0,1)}function R(t,e,i,n,s,r,a,o,l,h,p,u,c,f,d,m){return this.props[0]=t,this.props[1]=e,this.props[2]=i,this.props[3]=n,this.props[4]=s,this.props[5]=r,this.props[6]=a,this.props[7]=o,this.props[8]=l,this.props[9]=h,this.props[10]=p,this.props[11]=u,this.props[12]=c,this.props[13]=f,this.props[14]=d,this.props[15]=m,this}function V(t,e,i){return i=i||0,0!==t||0!==e||0!==i?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,i,1):this}function j(t,e,i,n,s,r,a,o,l,h,p,u,c,f,d,m){if(1===t&&0===e&&0===i&&0===n&&0===s&&1===r&&0===a&&0===o&&0===l&&0===h&&1===p&&0===u)return 0===c&&0===f&&0===d||(this.props[12]=this.props[12]*t+this.props[13]*s+this.props[14]*l+this.props[15]*c,this.props[13]=this.props[12]*e+this.props[13]*r+this.props[14]*h+this.props[15]*f,this.props[14]=this.props[12]*i+this.props[13]*a+this.props[14]*p+this.props[15]*d,this.props[15]=this.props[12]*n+this.props[13]*o+this.props[14]*u+this.props[15]*m),this._identityCalculated=!1,this;var g=this.props[0],y=this.props[1],v=this.props[2],_=this.props[3],b=this.props[4],x=this.props[5],w=this.props[6],T=this.props[7],k=this.props[8],P=this.props[9],A=this.props[10],S=this.props[11],E=this.props[12],C=this.props[13],M=this.props[14],D=this.props[15];return this.props[0]=g*t+y*s+v*l+_*c,this.props[1]=g*e+y*r+v*h+_*f,this.props[2]=g*i+y*a+v*p+_*d,this.props[3]=g*n+y*o+v*u+_*m,this.props[4]=b*t+x*s+w*l+T*c,this.props[5]=b*e+x*r+w*h+T*f,this.props[6]=b*i+x*a+w*p+T*d,this.props[7]=b*n+x*o+w*u+T*m,this.props[8]=k*t+P*s+A*l+S*c,this.props[9]=k*e+P*r+A*h+S*f,this.props[10]=k*i+P*a+A*p+S*d,this.props[11]=k*n+P*o+A*u+S*m,this.props[12]=E*t+C*s+M*l+D*c,this.props[13]=E*e+C*r+M*h+D*f,this.props[14]=E*i+C*a+M*p+D*d,this.props[15]=E*n+C*o+M*u+D*m,this._identityCalculated=!1,this}function z(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function B(t){for(var e=0;e<16;e+=1)t.props[e]=this.props[e]}function q(t){for(var e=0;e<16;e+=1)this.props[e]=t[e]}function H(t,e,i){return{x:t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}}function W(t,e,i){return t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12]}function X(t,e,i){return t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13]}function Y(t,e,i){return t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}function U(t){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],i=this.props[5]/e,n=-this.props[1]/e,s=-this.props[4]/e,r=this.props[0]/e,a=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,e=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e;return[t[0]*i+t[1]*s+a,t[0]*n+t[1]*r+e,0]}function G(t){for(var e=t.length,i=[],n=0;n<e;n+=1)i[n]=U(t[n]);return i}function Z(t,e,i,n){if(n&&2===n){n=Ye.newPoint();return n[0]=t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],n[1]=t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],n}return[t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]]}function $(t,e){return this.isIdentity()?t+","+e:l(t*this.props[0]+e*this.props[4]+this.props[12])+","+l(t*this.props[1]+e*this.props[5]+this.props[13])}function K(){return[this.props[0],this.props[1],this.props[2],this.props[3],this.props[4],this.props[5],this.props[6],this.props[7],this.props[8],this.props[9],this.props[10],this.props[11],this.props[12],this.props[13],this.props[14],this.props[15]]}function Q(){return t?"matrix3d("+s(this.props[0])+","+s(this.props[1])+","+s(this.props[2])+","+s(this.props[3])+","+s(this.props[4])+","+s(this.props[5])+","+s(this.props[6])+","+s(this.props[7])+","+s(this.props[8])+","+s(this.props[9])+","+s(this.props[10])+","+s(this.props[11])+","+s(this.props[12])+","+s(this.props[13])+","+s(this.props[14])+","+s(this.props[15])+")":(this.cssParts[1]=this.props.join(","),this.cssParts.join(""))}function J(){return"matrix("+s(this.props[0])+","+s(this.props[1])+","+s(this.props[4])+","+s(this.props[5])+","+s(this.props[12])+","+s(this.props[13])+")"}function tt(){return""+this.toArray()}function S(){}!function(r,a){var o,l=this,h=256,p=6,u="random",c=a.pow(h,p),f=a.pow(2,52),d=2*f,m=h-1;function g(t){var e,i=t.length,a=this,n=0,s=a.i=a.j=0,r=a.S=[];for(i||(t=[i++]);n<h;)r[n]=n++;for(n=0;n<h;n++)r[n]=r[s=m&s+t[n%i]+(e=r[n])],r[s]=e;(a.g=function(t){for(var e,i=0,n=a.i,s=a.j,r=a.S;t--;)e=r[n=m&n+1],i=i*h+r[m&(r[n]=r[s=m&s+e])+(r[s]=e)];return a.i=n,a.j=s,i})(h)}function y(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function v(t,e){for(var i,n=t+"",s=0;s<n.length;)e[m&s]=m&(i^=19*e[m&s])+n.charCodeAt(s++);return _(e)}function _(t){return String.fromCharCode.apply(0,t)}a["seed"+u]=function(t,e,i){var n=[],t=v(function t(e,i){var n,s=[],r=typeof e;if(i&&"object"==r)for(n in e)try{s.push(t(e[n],i-1))}catch(t){}return s.length?s:"string"==r?e:e+"\0"}((e=1==e?{entropy:!0}:e||{}).entropy?[t,_(r)]:null==t?function(){try{if(o)return _(o.randomBytes(h));var e=new Uint8Array(h);return(l.crypto||l.msCrypto).getRandomValues(e),_(e)}catch(t){e=l.navigator,e=e&&e.plugins;return[+new Date,l,e,l.screen,_(r)]}}():t,3),n),s=new g(n);return(n=function(){for(var t=s.g(p),e=c,i=0;t<f;)t=(t+i)*h,e*=h,i=s.g(1);for(;d<=t;)t/=2,e/=2,i>>>=1;return(t+i)/e}).int32=function(){return 0|s.g(4)},n.quick=function(){return s.g(4)/4294967296},n.double=n,v(_(s.S),r),(e.pass||i||function(t,e,i,n){return n&&(n.S&&y(n,s),t.state=function(){return y(s,{})}),i?(a[u]=t,e):t})(n,t,"global"in e?e.global:this==a,e.state)},v(a.random(),r)}([],n);var et,it,at,ot,lt=(Ni={getBezierEasing:function(t,e,i,n,s){s=s||("bez_"+t+"_"+e+"_"+i+"_"+n).replace(/\./g,"p");if(et[s])return et[s];n=new ct([t,e,i,n]);return et[s]=n}},et={},at=1/((it=11)-1),ot="function"==typeof Float32Array,ct.prototype={get:function(t){var e=this._p[0],i=this._p[1],n=this._p[2],s=this._p[3];return this._precomputed||this._precompute(),e===i&&n===s?t:0===t?0:1===t?1:pt(this._getTForX(t),i,s)},_precompute:function(){var t=this._p[0],e=this._p[1],i=this._p[2],n=this._p[3];this._precomputed=!0,t===e&&i===n||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],i=0;i<it;++i)this._mSampleValues[i]=pt(i*at,t,e)},_getTForX:function(t){for(var e=this._p[0],i=this._p[2],n=this._mSampleValues,s=0,r=1,a=it-1;r!==a&&n[r]<=t;++r)s+=at;var o=s+(t-n[--r])/(n[r+1]-n[r])*at,l=ut(o,e,i);return.001<=l?function(t,e,i,n){for(var s=0;s<4;++s){var r=ut(e,i,n);if(0===r)return e;e-=(pt(e,i,n)-t)/r}return e}(t,o,e,i):0===l?o:function(t,e,i,n,s){for(var r,a,o=0;0<(r=pt(a=e+(i-e)/2,n,s)-t)?i=a:e=a,1e-7<Math.abs(r)&&++o<10;);return a}(t,s,s+at,e,i)}},Ni);function ht(t,e){return 1-3*e+3*t}function pt(t,e,i){return((ht(e,i)*t+(3*i-6*e))*t+3*e)*t}function ut(t,e,i){return 3*ht(e,i)*t*t+2*(3*i-6*e)*t+3*e}function ct(t){this._p=t,this._mSampleValues=new(ot?Float32Array:Array)(it),this._precomputed=!1,this.get=this.get.bind(this)}function ft(t,e,i){if(!e){i=Object.create(t.prototype,i);return i&&"[object Function]"==={}.toString.call(i.init)&&i.init(),i}e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).prototype._parent=t.prototype}function dt(t,e){for(var i in t.prototype)t.prototype.hasOwnProperty(i)&&(e.prototype[i]=t.prototype[i])}!function(){for(var r=0,t=["ms","moz","webkit","o"],e=0;e<t.length&&!a.requestAnimationFrame;++e)a.requestAnimationFrame=a[t[e]+"RequestAnimationFrame"],a.cancelAnimationFrame=a[t[e]+"CancelAnimationFrame"]||a[t[e]+"CancelRequestAnimationFrame"];a.requestAnimationFrame||(a.requestAnimationFrame=function(t,e){var i=(new Date).getTime(),n=Math.max(0,16-(i-r)),s=setTimeout(function(){t(i+n)},n);return r=i+n,s}),a.cancelAnimationFrame||(a.cancelAnimationFrame=function(t){clearTimeout(t)})}();var mt=function(){function y(t,e,i,n,s,r){e=t*n+e*s+i*r-s*n-r*t-i*e;return-1e-4<e&&e<1e-4}Math;var h=function(t,e,i,n){for(var s,r,a,o,l=P,h=0,p=[],u=[],c={addedLength:0,segments:[]},f=i.length,d=0;d<l;d+=1){for(a=d/(l-1),s=o=0;s<f;s+=1)r=T(1-a,3)*t[s]+3*T(1-a,2)*a*i[s]+3*(1-a)*T(a,2)*n[s]+T(a,3)*e[s],p[s]=r,null!==u[s]&&(o+=T(p[s]-u[s],2)),u[s]=p[s];o&&(h+=o=k(o)),c.segments.push(new m(h,a))}return c.addedLength=h,c};function m(t,e){this.l=t,this.p=e}function v(t){this.segmentLength=0,this.points=new Array(t)}function _(t,e){this.partialLength=t,this.point=e}var b,t=(b={},function(t){var e=t.s,i=t.e,n=t.to,s=t.ti,r=(e.join("_")+"_"+i.join("_")+"_"+n.join("_")+"_"+s.join("_")).replace(/\./g,"p");if(b[r])t.bezierData=b[r];else{for(var a,o,l,h,p,u=P,c=0,f=null,d=new v(u=2===e.length&&(e[0]!=i[0]||e[1]!=i[1])&&y(e[0],e[1],i[0],i[1],e[0]+n[0],e[1]+n[1])&&y(e[0],e[1],i[0],i[1],i[0]+s[0],i[1]+s[1])?2:u),m=n.length,g=0;g<u;g+=1){for(p=new Array(m),l=g/(u-1),a=h=0;a<m;a+=1)o=T(1-l,3)*e[a]+3*T(1-l,2)*l*(e[a]+n[a])+3*(1-l)*T(l,2)*(i[a]+s[a])+T(l,3)*i[a],p[a]=o,null!==f&&(h+=T(p[a]-f[a],2));c+=h=k(h),d.points[g]=new _(h,p),f=p}d.segmentLength=c,t.bezierData=d,b[r]=d}});function d(t,e){var i=e.segments,n=i.length,s=c((n-1)*t),r=t*e.addedLength,a=0;if(r==i[s].l)return i[s].p;for(var o=i[s].l>r?-1:1,l=!0;l;)i[s].l<=r&&i[s+1].l>r?(a=(r-i[s].l)/(i[s+1].l-i[s].l),l=!1):s+=o,(s<0||n-1<=s)&&(l=!1);return i[s].p+(i[s+1].p-i[s].p)*a}function g(){this.pt1=new Array(2),this.pt2=new Array(2),this.pt3=new Array(2),this.pt4=new Array(2)}return{getBezierLength:h,getSegmentsLength:function(t){for(var e=t.c,i=t.v,n=t.o,s=t.i,r=t._length,a=[],o=0,l=0;l<r-1;l+=1)a[l]=h(i[l],i[l+1],n[l],s[l+1]),o+=a[l].addedLength;return e&&(a[l]=h(i[l],i[0],n[l],s[0]),o+=a[l].addedLength),{lengths:a,totalLength:o}},getNewSegment:function(t,e,i,n,s,r,a){for(var o=new g,l=d(s=s<0?0:1<s?1:s,a),h=d(r=1<r?1:r,a),p=t.length,u=1-l,c=1-h,f=0;f<p;f+=1)o.pt1[f]=Math.round(1e3*(u*u*u*t[f]+(l*u*u+u*l*u+u*u*l)*i[f]+(l*l*u+u*l*l+l*u*l)*n[f]+l*l*l*e[f]))/1e3,o.pt3[f]=Math.round(1e3*(u*u*c*t[f]+(l*u*c+u*l*c+u*u*h)*i[f]+(l*l*c+u*l*h+l*u*h)*n[f]+l*l*h*e[f]))/1e3,o.pt4[f]=Math.round(1e3*(u*c*c*t[f]+(l*c*c+u*h*c+u*c*h)*i[f]+(l*h*c+u*h*h+l*c*h)*n[f]+l*h*h*e[f]))/1e3,o.pt2[f]=Math.round(1e3*(c*c*c*t[f]+(h*c*c+c*h*c+c*c*h)*i[f]+(h*h*c+c*h*h+h*c*h)*n[f]+h*h*h*e[f]))/1e3;return o},getPointInSegment:function(t,e,i,n,s,r){return s=d(s,r),r=1-s,[Math.round(1e3*(r*r*r*t[0]+(s*r*r+r*s*r+r*r*s)*i[0]+(s*s*r+r*s*s+s*r*s)*n[0]+s*s*s*e[0]))/1e3,Math.round(1e3*(r*r*r*t[1]+(s*r*r+r*s*r+r*r*s)*i[1]+(s*s*r+r*s*s+s*r*s)*n[1]+s*s*s*e[1]))/1e3]},buildBezierData:t,pointOnLine2D:y,pointOnLine3D:function(t,e,i,n,s,r,a,o,l){if(0===i&&0===r&&0===l)return y(t,e,n,s,a,o);var h=Math.sqrt(Math.pow(n-t,2)+Math.pow(s-e,2)+Math.pow(r-i,2)),i=Math.sqrt(Math.pow(a-t,2)+Math.pow(o-e,2)+Math.pow(l-i,2)),r=Math.sqrt(Math.pow(a-n,2)+Math.pow(o-s,2)+Math.pow(l-r,2));return-1e-4<(r=i<h?r<h?h-i-r:r-i-h:i<r?r-i-h:i-h-r)&&r<1e-4}}}();var gt,yt,vt,_t,bt,xt,wt,Tt,kt=(gt=[4,4,14],yt=function(t){if(St(gt,t.v)&&(Et(t.layers),t.assets))for(var e=t.assets.length,i=0;i<e;i+=1)t.assets[i].layers&&Et(t.assets[i].layers)},vt=[4,7,99],bt=function(t){if(t.chars&&!St(vt,t.v))for(var e,i,n,s,r=t.chars.length,a=0;a<r;a+=1)if(t.chars[a].data&&t.chars[a].data.shapes)for(i=(s=t.chars[a].data.shapes[0].it).length,e=0;e<i;e+=1)(n=s[e].ks.k).__converted||(At(s[e].ks.k),n.__converted=!0)},_t=[4,1,9],xt=function(t){if(St(_t,t.v)&&(Ct(t.layers),t.assets))for(var e=t.assets.length,i=0;i<e;i+=1)t.assets[i].layers&&Ct(t.assets[i].layers)},wt=[4,4,18],Tt=function(t){if(St(wt,t.v)&&(Mt(t.layers),t.assets))for(var e=t.assets.length,i=0;i<e;i+=1)t.assets[i].layers&&Mt(t.assets[i].layers)},{completeData:function(t,e){t.__complete||(xt(t),yt(t),bt(t),Tt(t),Pt(t.layers,t.assets,e),t.__complete=!0)}});function Pt(t,e,i){for(var n,s,r,a=t.length,o=0;o<a;o+=1)if("ks"in(r=t[o])&&!r.completed){if(r.completed=!0,r.tt&&(t[o-1].td=r.tt),r.hasMask)for(var l=r.masksProperties,h=l.length,p=0;p<h;p+=1)if(l[p].pt.k.i)At(l[p].pt.k);else for(s=l[p].pt.k.length,n=0;n<s;n+=1)l[p].pt.k[n].s&&At(l[p].pt.k[n].s[0]),l[p].pt.k[n].e&&At(l[p].pt.k[n].e[0]);0===r.ty?(r.layers=function(t,e){var i=0,n=e.length;for(;i<n;){if(e[i].id===t)return e[i].layers.__used?JSON.parse(JSON.stringify(e[i].layers)):(e[i].layers.__used=!0,e[i].layers);i+=1}}(r.refId,e),Pt(r.layers,e,i)):4===r.ty?function t(e){var i,n=e.length;var s,r;for(i=n-1;0<=i;--i)if("sh"==e[i].ty){if(e[i].ks.k.i)At(e[i].ks.k);else for(r=e[i].ks.k.length,s=0;s<r;s+=1)e[i].ks.k[s].s&&At(e[i].ks.k[s].s[0]),e[i].ks.k[s].e&&At(e[i].ks.k[s].e[0]);0}else"gr"==e[i].ty&&t(e[i].it)}(r.shapes):5==r.ty&&(0!==(r=r).t.a.length||"m"in r.t.p||(r.singleShape=!0))}}function At(t){for(var e=t.i.length,i=0;i<e;i+=1)t.i[i][0]+=t.v[i][0],t.i[i][1]+=t.v[i][1],t.o[i][0]+=t.v[i][0],t.o[i][1]+=t.v[i][1]}function St(t,e){e=e?e.split("."):[100,100,100];return t[0]>e[0]||!(e[0]>t[0])&&(t[1]>e[1]||!(e[1]>t[1])&&(t[2]>e[2]||(e[2],void t[2])))}function Et(t){for(var e,i,n=t.length,s=0;s<n;s+=1)5===t[s].ty&&(e=t[s],i=void 0,i=e.t.d,e.t.d={k:[{s:i,t:0}]})}function Ct(t){for(var e=t.length,i=0;i<e;i+=1)4===t[i].ty&&!function t(e){for(var i,n,s=e.length,r=0;r<s;r+=1)if("gr"===e[r].ty)t(e[r].it);else if("fl"===e[r].ty||"st"===e[r].ty)if(e[r].c.k&&e[r].c.k[0].i)for(n=e[r].c.k.length,i=0;i<n;i+=1)e[r].c.k[i].s&&(e[r].c.k[i].s[0]/=255,e[r].c.k[i].s[1]/=255,e[r].c.k[i].s[2]/=255,e[r].c.k[i].s[3]/=255),e[r].c.k[i].e&&(e[r].c.k[i].e[0]/=255,e[r].c.k[i].e[1]/=255,e[r].c.k[i].e[2]/=255,e[r].c.k[i].e[3]/=255);else e[r].c.k[0]/=255,e[r].c.k[1]/=255,e[r].c.k[2]/=255,e[r].c.k[3]/=255}(t[i].shapes)}function Mt(t){for(var e,i,n,s=t.length,r=0;r<s;r+=1){if((e=t[r]).hasMask)for(var a=e.masksProperties,o=a.length,l=0;l<o;l+=1)if(a[l].pt.k.i)a[l].pt.k.c=a[l].cl;else for(n=a[l].pt.k.length,i=0;i<n;i+=1)a[l].pt.k[i].s&&(a[l].pt.k[i].s[0].c=a[l].cl),a[l].pt.k[i].e&&(a[l].pt.k[i].e[0].c=a[l].cl);4===e.ty&&!function t(e){for(var i,n,s=e.length-1;0<=s;--s)if("sh"==e[s].ty)if(e[s].ks.k.i)e[s].ks.k.c=e[s].closed;else for(n=e[s].ks.k.length,i=0;i<n;i+=1)e[s].ks.k[i].s&&(e[s].ks.k[i].s[0].c=e[s].closed),e[s].ks.k[i].e&&(e[s].ks.k[i].e[0].c=e[s].closed);else"gr"==e[s].ty&&t(e[s].it)}(e.shapes)}}var Dt,Ft=(Dt=5e3,Lt.prototype.addChars=function(t){if(t){this.chars||(this.chars=[]);for(var e,i,n=t.length,s=this.chars.length,r=0;r<n;r+=1){for(e=0,i=!1;e<s;)this.chars[e].style===t[r].style&&this.chars[e].fFamily===t[r].fFamily&&this.chars[e].ch===t[r].ch&&(i=!0),e+=1;i||(this.chars.push(t[r]),s+=1)}}},Lt.prototype.addFonts=function(t,e){if(t){if(this.chars)return this.loaded=!0,void(this.fonts=t.list);for(var i,n,s,r=t.list,a=r.length,o=0;o<a;o+=1)r[o].loaded=!1,r[o].monoCase=It(r[o].fFamily,"monospace"),r[o].sansCase=It(r[o].fFamily,"sans-serif"),r[o].fPath?"p"===r[o].fOrigin||3===r[o].origin?((i=document.createElement("style")).type="text/css",i.innerHTML="@font-face {font-family: "+r[o].fFamily+"; font-style: normal; src: url('"+r[o].fPath+"');}",e.appendChild(i)):"g"===r[o].fOrigin||1===r[o].origin?((n=document.createElement("link")).type="text/css",n.rel="stylesheet",n.href=r[o].fPath,e.appendChild(n)):"t"!==r[o].fOrigin&&2!==r[o].origin||((s=document.createElement("script")).setAttribute("src",r[o].fPath),e.appendChild(s)):r[o].loaded=!0,r[o].helper=(i=e,n=r[o],s=void 0,(s=document.createElementNS(x,"text")).style.fontSize="100px",s.style.fontFamily=n.fFamily,s.textContent="1",n.fClass?(s.style.fontFamily="inherit",s.className=n.fClass):s.style.fontFamily=n.fFamily,i.appendChild(s),(s=document.createElement("canvas").getContext("2d")).font="100px "+n.fFamily,s),this.fonts.push(r[o]);Ot.bind(this)()}else this.loaded=!0},Lt.prototype.getCharData=function(t,e,i){for(var n=0,s=this.chars.length;n<s;){if(this.chars[n].ch===t&&this.chars[n].style===e&&this.chars[n].fFamily===i)return this.chars[n];n+=1}},Lt.prototype.getFontByName=function(t){for(var e=0,i=this.fonts.length;e<i;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return"sans-serif"},Lt.prototype.measureText=function(t,e,i){return this.getFontByName(e).helper.measureText(t).width*i/100},Lt);function It(t,e){var i=document.createElement("span");i.style.fontFamily=e;var n=document.createElement("span");n.innerHTML="giItT1WQy@!-/#",i.style.position="absolute",i.style.left="-10000px",i.style.top="-10000px",i.style.fontSize="300px",i.style.fontVariant="normal",i.style.fontStyle="normal",i.style.fontWeight="normal",i.style.letterSpacing="0",i.appendChild(n),document.body.appendChild(i);var s=n.offsetWidth;return n.style.fontFamily=t+", "+e,{node:n,w:s,parent:i}}function Ot(){for(var t,e,i=this.fonts.length,n=i,s=0;s<i;s+=1)if(this.fonts[s].loaded)--n;else if("t"===this.fonts[s].fOrigin||2===this.fonts[s].origin){if(a.Typekit&&a.Typekit.load&&0===this.typekitLoaded){this.typekitLoaded=1;try{a.Typekit.load({async:!0,active:function(){this.typekitLoaded=2}.bind(this)})}catch(t){}}2===this.typekitLoaded&&(this.fonts[s].loaded=!0)}else"n"===this.fonts[s].fOrigin||0===this.fonts[s].origin?this.fonts[s].loaded=!0:(t=this.fonts[s].monoCase.node,e=this.fonts[s].monoCase.w,t.offsetWidth!==e?(--n,this.fonts[s].loaded=!0):(t=this.fonts[s].sansCase.node,e=this.fonts[s].sansCase.w,t.offsetWidth!==e&&(--n,this.fonts[s].loaded=!0)),this.fonts[s].loaded&&(this.fonts[s].sansCase.parent.parentNode.removeChild(this.fonts[s].sansCase.parent),this.fonts[s].monoCase.parent.parentNode.removeChild(this.fonts[s].monoCase.parent)));0!==n&&Date.now()-this.initTime<Dt?setTimeout(Ot.bind(this),20):setTimeout(function(){this.loaded=!0}.bind(this),0)}function Lt(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.loaded=!1,this.initTime=Date.now()}var Nt,Rt,Vt,jt,zt,Bt,qt,Ht=(Nt=-999999,Rt=function(t,e,i){this.elem=t,this.frameId=-1,this.type="transform",this.dynamicProperties=[],this.mdf=!1,this.data=e,this.getValue=le,this.applyToMatrix=oe,this.setInverted=he,this.autoOrient=pe,this.v=new S,e.p.s?(this.px=Ht.getProp(t,e.p.x,0,0,this.dynamicProperties),this.py=Ht.getProp(t,e.p.y,0,0,this.dynamicProperties),e.p.z&&(this.pz=Ht.getProp(t,e.p.z,0,0,this.dynamicProperties))):this.p=Ht.getProp(t,e.p,1,0,this.dynamicProperties),e.r?this.r=Ht.getProp(t,e.r,0,y,this.dynamicProperties):e.rx&&(this.rx=Ht.getProp(t,e.rx,0,y,this.dynamicProperties),this.ry=Ht.getProp(t,e.ry,0,y,this.dynamicProperties),this.rz=Ht.getProp(t,e.rz,0,y,this.dynamicProperties),this.or=Ht.getProp(t,e.or,1,y,this.dynamicProperties),this.or.sh=!0),e.sk&&(this.sk=Ht.getProp(t,e.sk,0,y,this.dynamicProperties),this.sa=Ht.getProp(t,e.sa,0,y,this.dynamicProperties)),e.a&&(this.a=Ht.getProp(t,e.a,1,0,this.dynamicProperties)),e.s&&(this.s=Ht.getProp(t,e.s,1,.01,this.dynamicProperties)),e.o?this.o=Ht.getProp(t,e.o,0,.01,this.dynamicProperties):this.o={mdf:!1,v:1},this.dynamicProperties.length?i.push(this):(this.a&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r?this.v.rotate(-this.r.v):this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?e.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])),Object.defineProperty(this,"position",{get:Kt}),Object.defineProperty(this,"xPosition",{get:Qt}),Object.defineProperty(this,"yPosition",{get:Jt}),Object.defineProperty(this,"orientation",{get:ee}),Object.defineProperty(this,"anchorPoint",{get:te}),Object.defineProperty(this,"rotation",{get:ie}),Object.defineProperty(this,"scale",{get:ne}),Object.defineProperty(this,"opacity",{get:se}),Object.defineProperty(this,"skew",{get:re}),Object.defineProperty(this,"skewAxis",{get:ae})},Vt=function(t,e,i,n){this.elem=t,this.frameId=-1,this.dataProps=new Array(e.length),this.renderer=i,this.mdf=!1,this.k=!1,"svg"===this.renderer?this.dasharray="":this.dasharray=new Array(e.length-1),this.dashoffset=0;for(var s,r=e.length,a=0;a<r;a+=1)s=Ht.getProp(t,e[a].v,0,0,n),this.k=!!s.k||this.k,this.dataProps[a]={n:e[a].n,p:s};this.getValue=de,this.k?n.push(this):this.getValue(!0)},jt=Math.max,zt=Math.min,Bt=Math.floor,qt=function(t,e,i){this.mdf=!1,this.k=!1,this.data=e,this.dynamicProperties=[],this.getValue=me,this.getMult=ge,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.s=Ht.getProp(t,e.s||{k:0},0,0,this.dynamicProperties),"e"in e?this.e=Ht.getProp(t,e.e,0,0,this.dynamicProperties):this.e={v:100},this.o=Ht.getProp(t,e.o||{k:0},0,0,this.dynamicProperties),this.xe=Ht.getProp(t,e.xe||{k:0},0,0,this.dynamicProperties),this.ne=Ht.getProp(t,e.ne||{k:0},0,0,this.dynamicProperties),this.a=Ht.getProp(t,e.a,0,.01,this.dynamicProperties),this.dynamicProperties.length?i.push(this):this.getValue()},{getProp:ue,getDashProp:function(t,e,i,n){return new Vt(t,e,i,n)},getTextSelectorProp:function(t,e,i){return new qt(t,e,i)},getGradientProp:function(t,e,i){return new fe(t,e,i)}});function Wt(t,e,i,n){var s,r=this.offsetTime;i.constructor===Array&&(s=Array.apply(null,{length:i.length}));for(var a,o,l,h=e,p=this.keyframes.length-1,u=!0;u;){if(a=this.keyframes[h],o=this.keyframes[h+1],h==p-1&&t>=o.t-r){a.h&&(a=o),e=0;break}if(o.t-r>t){e=h;break}h<p-1?h+=1:(e=0,u=!1)}if(a.to){a.bezierData||mt.buildBezierData(a);var c=a.bezierData;if(t>=o.t-r||t<a.t-r){for(var f=t>=o.t-r?c.points.length-1:0,d=c.points[f].point.length,m=0;m<d;m+=1)s[m]=c.points[f].point[m];n._lastBezierData=null}else{a.__fnct?l=a.__fnct:(l=lt.getBezierEasing(a.o.x,a.o.y,a.i.x,a.i.y,a.n).get,a.__fnct=l);for(var g,y=l((t-(a.t-r))/(o.t-r-(a.t-r))),v=c.segmentLength*y,_=n.lastFrame<t&&n._lastBezierData===c?n._lastAddedLength:0,b=n.lastFrame<t&&n._lastBezierData===c?n._lastPoint:0,u=!0,x=c.points.length;u;){if(_+=c.points[b].partialLength,0==v||0===y||b==c.points.length-1){for(d=c.points[b].point.length,m=0;m<d;m+=1)s[m]=c.points[b].point[m];break}if(_<=v&&v<_+c.points[b+1].partialLength){for(g=(v-_)/c.points[b+1].partialLength,d=c.points[b].point.length,m=0;m<d;m+=1)s[m]=c.points[b].point[m]+(c.points[b+1].point[m]-c.points[b].point[m])*g;break}b<x-1?b+=1:u=!1}n._lastPoint=b,n._lastAddedLength=_-c.points[b].partialLength,n._lastBezierData=c}}else for(var w,T,k,P,A,S,p=a.s.length,h=0;h<p;h+=1)1!==a.h&&(y=t>=o.t-r?1:t<a.t-r?0:(a.o.x.constructor===Array?(a.__fnct||(a.__fnct=[]),a.__fnct[h]?l=a.__fnct[h]:(w=a.o.x[h]||a.o.x[0],T=a.o.y[h]||a.o.y[0],k=a.i.x[h]||a.i.x[0],P=a.i.y[h]||a.i.y[0],l=lt.getBezierEasing(w,T,k,P).get,a.__fnct[h]=l)):a.__fnct?l=a.__fnct:(w=a.o.x,T=a.o.y,k=a.i.x,P=a.i.y,l=lt.getBezierEasing(w,T,k,P).get,a.__fnct=l),l((t-(a.t-r))/(o.t-r-(a.t-r))))),A=this.sh&&1!==a.h?((A=a.s[h])-(S=a.e[h])<-180?A+=360:180<A-S&&(A-=360),A+(S-A)*y):1===a.h?a.s[h]:a.s[h]+(a.e[h]-a.s[h])*y,1===p?s=A:s[h]=A;return{value:s,iterationIndex:e}}function Xt(){if(this.elem.globalData.frameId!==this.frameId){this.mdf=!1;var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==Nt&&(this._caching.lastFrame>=i&&i<=t||this._caching.lastFrame<e&&t<e))){var n=this._caching.lastFrame<t?this._caching.lastIndex:0,s=this.interpolateValue(t,n,this.pv,this._caching);if(this._caching.lastIndex=s.iterationIndex,this.pv.constructor===Array)for(n=0;n<this.v.length;)this.pv[n]=s.value[n],this.v[n]=this.mult?this.pv[n]*this.mult:this.pv[n],this.lastPValue[n]!==this.pv[n]&&(this.mdf=!0,this.lastPValue[n]=this.pv[n]),n+=1;else this.pv=s.value,this.v=this.mult?this.pv*this.mult:this.pv,this.lastPValue!=this.pv&&(this.mdf=!0,this.lastPValue=this.pv)}this._caching.lastFrame=t,this.frameId=this.elem.globalData.frameId}}function Yt(){}function Ut(t,e,i){this.mult=i,this.v=i?e.k*i:e.k,this.pv=e.k,this.mdf=!1,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.getValue=Yt}function Gt(t,e,i){this.mult=i,this.data=e,this.mdf=!1,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1,this.v=Array.apply(null,{length:e.k.length}),this.pv=Array.apply(null,{length:e.k.length}),this.lastValue=Array.apply(null,{length:e.k.length});t=Array.apply(null,{length:e.k.length});this.vel=t.map(function(){return 0});for(var n=e.k.length,s=0;s<n;s+=1)this.v[s]=i?e.k[s]*i:e.k[s],this.pv[s]=e.k[s];this.getValue=Yt}function Zt(t,e,i){this.keyframes=e.k,this.offsetTime=t.data.st,this.lastValue=-99999,this.lastPValue=-99999,this.frameId=-1,this._caching={lastFrame:Nt,lastIndex:0},this.k=!0,this.kf=!0,this.data=e,this.mult=i,this.elem=t,this.comp=t.comp,this.v=i?e.k[0].s[0]*i:e.k[0].s[0],this.pv=e.k[0].s[0],this.getValue=Xt,this.interpolateValue=Wt}function $t(t,e,i){for(var n,s,r,a,o=e.k.length,l=0;l<o-1;l+=1)e.k[l].to&&e.k[l].s&&e.k[l].e&&(n=e.k[l].s,s=e.k[l].e,r=e.k[l].to,a=e.k[l].ti,(2===n.length&&(n[0]!==s[0]||n[1]!==s[1])&&mt.pointOnLine2D(n[0],n[1],s[0],s[1],n[0]+r[0],n[1]+r[1])&&mt.pointOnLine2D(n[0],n[1],s[0],s[1],s[0]+a[0],s[1]+a[1])||3===n.length&&(n[0]!==s[0]||n[1]!==s[1]||n[2]!==s[2])&&mt.pointOnLine3D(n[0],n[1],n[2],s[0],s[1],s[2],n[0]+r[0],n[1]+r[1],n[2]+r[2])&&mt.pointOnLine3D(n[0],n[1],n[2],s[0],s[1],s[2],s[0]+a[0],s[1]+a[1],s[2]+a[2]))&&(e.k[l].to=null,e.k[l].ti=null));this.keyframes=e.k,this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this.mult=i,this.elem=t,this.comp=t.comp,this._caching={lastFrame:Nt,lastIndex:0},this.getValue=Xt,this.interpolateValue=Wt,this.frameId=-1,this.v=Array.apply(null,{length:e.k[0].s.length}),this.pv=Array.apply(null,{length:e.k[0].s.length}),this.lastValue=Array.apply(null,{length:e.k[0].s.length}),this.lastPValue=Array.apply(null,{length:e.k[0].s.length})}function Kt(){return this.p?ExpressionValue(this.p):[this.px.v,this.py.v,this.pz?this.pz.v:0]}function Qt(){return ExpressionValue(this.px)}function Jt(){return ExpressionValue(this.py)}function te(){return ExpressionValue(this.a)}function ee(){return ExpressionValue(this.or)}function ie(){return this.r?ExpressionValue(this.r,1/y):ExpressionValue(this.rz,1/y)}function ne(){return ExpressionValue(this.s,100)}function se(){return ExpressionValue(this.o,100)}function re(){return ExpressionValue(this.sk)}function ae(){return ExpressionValue(this.sa)}function oe(t){for(var e=this.dynamicProperties.length,i=0;i<e;i+=1)this.dynamicProperties[i].getValue(),this.dynamicProperties[i].mdf&&(this.mdf=!0);this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.r?t.rotate(-this.r.v):t.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function le(){if(this.elem.globalData.frameId!==this.frameId){this.mdf=!1;for(var t,e,i=this.dynamicProperties.length,n=0;n<i;n+=1)this.dynamicProperties[n].getValue(),this.dynamicProperties[n].mdf&&(this.mdf=!0);this.mdf&&(this.v.reset(),this.a&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r?this.v.rotate(-this.r.v):this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented&&this.p.keyframes&&this.p.getValueAtTime&&(e=this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(t=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/this.elem.globalData.frameRate,0),this.p.getValueAtTime(this.p.keyframes[0].t/this.elem.globalData.frameRate,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(t=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/this.elem.globalData.frameRate,0),this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.01)/this.elem.globalData.frameRate,0)):(t=this.p.pv,this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/this.elem.globalData.frameRate,this.p.offsetTime)),this.v.rotate(-Math.atan2(t[1]-e[1],t[0]-e[0]))),this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])),this.frameId=this.elem.globalData.frameId}}function he(){this.inverted=!0,this.iv=new S,this.k||(this.data.p.s?this.iv.translate(this.px.v,this.py.v,-this.pz.v):this.iv.translate(this.p.v[0],this.p.v[1],-this.p.v[2]),this.r?this.iv.rotate(-this.r.v):this.iv.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.s&&this.iv.scale(this.s.v[0],this.s.v[1],1),this.a&&this.iv.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]))}function pe(){}function ue(t,e,i,n,s){var r;if(2===i)r=new Rt(t,e,s);else if(0===e.a)r=new(0===i?Ut:Gt)(t,e,n);else if(1===e.a)r=new(0===i?Zt:$t)(t,e,n);else if(e.k.length)if("number"==typeof e.k[0])r=new Gt(t,e,n);else switch(i){case 0:r=new Zt(t,e,n);break;case 1:r=new $t(t,e,n)}else r=new Ut(t,e,n);return r.k&&s.push(r),r}function ce(t){if(this.prop.getValue(),this.cmdf=!1,this.omdf=!1,this.prop.mdf||t){for(var e,i,n=4*this.data.p,s=0;s<n;s+=1)e=s%4==0?100:255,i=Math.round(this.prop.v[s]*e),this.c[s]!==i&&(this.c[s]=i,this.cmdf=!0);if(this.o.length)for(n=this.prop.v.length,s=4*this.data.p;s<n;s+=1)e=s%2==0?100:1,i=s%2==0?Math.round(100*this.prop.v[s]):this.prop.v[s],this.o[s-4*this.data.p]!==i&&(this.o[s-4*this.data.p]=i,this.omdf=!0)}}function fe(t,e,i){this.prop=ue(t,e.k,1,null,[]),this.data=e,this.k=this.prop.k,this.c=Array.apply(null,{length:4*e.p});e=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=Array.apply(null,{length:e}),this.cmdf=!1,this.omdf=!1,this.getValue=ce,this.prop.k&&i.push(this),this.getValue(!0)}function de(t){var e=0,i=this.dataProps.length;if(this.elem.globalData.frameId!==this.frameId||t){for(this.mdf=!1,this.frameId=this.elem.globalData.frameId;e<i;){if(this.dataProps[e].p.mdf){this.mdf=!0;break}e+=1}if(this.mdf||t)for("svg"===this.renderer&&(this.dasharray=""),e=0;e<i;e+=1)"o"!=this.dataProps[e].n?"svg"===this.renderer?this.dasharray+=" "+this.dataProps[e].p.v:this.dasharray[e]=this.dataProps[e].p.v:this.dashoffset=this.dataProps[e].p.v}}function me(t){if(this.mdf=t||!1,this.dynamicProperties.length)for(var e=this.dynamicProperties.length,i=0;i<e;i+=1)this.dynamicProperties[i].getValue(),this.dynamicProperties[i].mdf&&(this.mdf=!0);var n=this.elem.textProperty.currentData?this.elem.textProperty.currentData.l.length:0;t&&2===this.data.r&&(this.e.v=n);var s=2===this.data.r?1:100/n,t=this.o.v/s,n=this.s.v/s+t,s=this.e.v/s+t;s<n&&(t=n,n=s,s=t),this.finalS=n,this.finalE=s}function ge(t){var e,i=lt.getBezierEasing(this.ne.v/100,0,1-this.xe.v/100,1).get,n=0,s=this.finalS,r=this.finalE,a=this.data.sh;return(n=2==a?i(n=r===s?r<=t?1:0:jt(0,zt(.5/(r-s)+(t-s)/(r-s),1))):3==a?i(n=r===s?r<=t?0:1:1-jt(0,zt(.5/(r-s)+(t-s)/(r-s),1))):4==a?(r===s?n=0:(n=jt(0,zt(.5/(r-s)+(t-s)/(r-s),1)))<.5?n*=2:n=1-2*(n-.5),i(n)):i(n=5==a?r===s?0:(i=-(e=r-s)/2+(t=zt(jt(0,t+.5-s),r-s)),e=e/2,Math.sqrt(1-i*i/(e*e))):6==a?r===s?0:(t=zt(jt(0,t+.5-s),r-s),(1+Math.cos(Math.PI+2*Math.PI*t/(r-s)))/2):t>=Bt(s)?t-s<0?1-(s-t):jt(0,zt(r-t,1)):n))*this.a.v}function ye(){this.c=!1,this._length=0,this._maxLength=8,this.v=Array.apply(null,{length:this._maxLength}),this.o=Array.apply(null,{length:this._maxLength}),this.i=Array.apply(null,{length:this._maxLength})}ye.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var i=0;i<e;)this.v[i]=Ye.newPoint(),this.o[i]=Ye.newPoint(),this.i[i]=Ye.newPoint(),i+=1},ye.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},ye.prototype.doubleArrayLength=function(){this.v=this.v.concat(Array.apply(null,{length:this._maxLength})),this.i=this.i.concat(Array.apply(null,{length:this._maxLength})),this.o=this.o.concat(Array.apply(null,{length:this._maxLength})),this._maxLength*=2},ye.prototype.setXYAt=function(t,e,i,n,s){var r;switch(this._length=Math.max(this._length,n+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case"v":r=this.v;break;case"i":r=this.i;break;case"o":r=this.o}r[n]&&(!r[n]||s)||(r[n]=Ye.newPoint()),r[n][0]=t,r[n][1]=e},ye.prototype.setTripleAt=function(t,e,i,n,s,r,a,o){this.setXYAt(t,e,"v",a,o),this.setXYAt(i,n,"o",a,o),this.setXYAt(s,r,"i",a,o)};var ve,_e=function(){function t(t,e,i,n){var s,r;if(t<this.keyframes[0].t-this.offsetTime)s=this.keyframes[0].s[0],r=!0,e=0;else if(t>=this.keyframes[this.keyframes.length-1].t-this.offsetTime)s=(1===this.keyframes[this.keyframes.length-2].h?this.keyframes[this.keyframes.length-1].s:this.keyframes[this.keyframes.length-2].e)[0],r=!0;else{for(var a,o,l,h,p,u,c=e,f=this.keyframes.length-1,d=!0;d&&(a=this.keyframes[c],!((o=this.keyframes[c+1]).t-this.offsetTime>t));)c<f-1?c+=1:d=!1;e=c,(r=1===a.h)||(p=t>=o.t-this.offsetTime?1:t<a.t-this.offsetTime?0:(a.__fnct?h=a.__fnct:(h=lt.getBezierEasing(a.o.x,a.o.y,a.i.x,a.i.y).get,a.__fnct=h),h((t-(a.t-this.offsetTime))/(o.t-this.offsetTime-(a.t-this.offsetTime)))),u=a.e[0]),s=a.s[0]}for(var m,g=i._length,y=s.i[0].length,v=!1,_=0;_<g;_+=1)for(l=0;l<y;l+=1)m=r?(m=s.i[_][l],i.i[_][l]!==m&&(i.i[_][l]=m,n&&(this.pv.i[_][l]=m),v=!0),m=s.o[_][l],i.o[_][l]!==m&&(i.o[_][l]=m,n&&(this.pv.o[_][l]=m),v=!0),s.v[_][l]):(m=s.i[_][l]+(u.i[_][l]-s.i[_][l])*p,i.i[_][l]!==m&&(i.i[_][l]=m,n&&(this.pv.i[_][l]=m),v=!0),m=s.o[_][l]+(u.o[_][l]-s.o[_][l])*p,i.o[_][l]!==m&&(i.o[_][l]=m,n&&(this.pv.o[_][l]=m),v=!0),s.v[_][l]+(u.v[_][l]-s.v[_][l])*p),i.v[_][l]!==m&&(i.v[_][l]=m,n&&(this.pv.v[_][l]=m),v=!0);return v&&(i.c=s.c),{iterationIndex:e,hasModified:v}}function n(){this.paths=this.localShapeCollection,this.k||(this.mdf=!1)}function a(t,e,i){this.__shapeObject=1,this.comp=t.comp,this.k=!1,this.mdf=!1;e=(3===i?e.pt:e.ks).k;this.v=Ue.clone(e),this.pv=Ue.clone(this.v),this.localShapeCollection=Je.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=n}function o(t,e,i){this.__shapeObject=1,this.comp=t.comp,this.elem=t,this.offsetTime=t.data.st,this._lastIndex=0,this.keyframes=(3===i?e.pt:e.ks).k,this.k=!0,this.kf=!0;e=this.keyframes[0].s[0].i.length,this.keyframes[0].s[0].i[0].length;this.v=Ue.newShape(),this.v.setPathData(this.keyframes[0].s[0].c,e),this.pv=Ue.clone(this.v),this.localShapeCollection=Je.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=-999999,this.reset=n}a.prototype.interpolateShape=t,a.prototype.getValue=function(){return this.v},o.prototype.getValue=function(){var t,e,i;this.elem.globalData.frameId!==this.frameId&&(this.mdf=!1,t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime,-999999!==this.lastFrame&&(this.lastFrame<e&&t<e||this.lastFrame>i&&i<t)||(i=this.lastFrame<t?this._lastIndex:0,i=this.interpolateShape(t,i,this.v,!0),this._lastIndex=i.iterationIndex,this.mdf=i.hasModified,i.hasModified&&(this.paths=this.localShapeCollection)),this.lastFrame=t,this.frameId=this.elem.globalData.frameId)},o.prototype.interpolateShape=t;var s,l=(s=v,function(t,e){this.v=Ue.newShape(),this.v.setPathData(!0,4),this.localShapeCollection=Je.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.dynamicProperties=[],this.elem=t,this.comp=t.comp,this.frameId=-1,this.mdf=!1,this.getValue=r,this.convertEllToPath=i,this.reset=n,this.p=Ht.getProp(t,e.p,1,0,this.dynamicProperties),this.s=Ht.getProp(t,e.s,1,0,this.dynamicProperties),this.dynamicProperties.length?this.k=!0:this.convertEllToPath()});function i(){var t=this.p.v[0],e=this.p.v[1],i=this.s.v[0]/2,n=this.s.v[1]/2;3!==this.d?(this.v.v[0][0]=t,this.v.v[0][1]=e-n,this.v.v[1][0]=t+i,this.v.v[1][1]=e,this.v.v[2][0]=t,this.v.v[2][1]=e+n,this.v.v[3][0]=t-i,this.v.v[3][1]=e,this.v.i[0][0]=t-i*s,this.v.i[0][1]=e-n,this.v.i[1][0]=t+i,this.v.i[1][1]=e-n*s,this.v.i[2][0]=t+i*s,this.v.i[2][1]=e+n,this.v.i[3][0]=t-i,this.v.i[3][1]=e+n*s,this.v.o[0][0]=t+i*s,this.v.o[0][1]=e-n,this.v.o[1][0]=t+i,this.v.o[1][1]=e+n*s,this.v.o[2][0]=t-i*s,this.v.o[2][1]=e+n,this.v.o[3][0]=t-i):(this.v.v[0][0]=t,this.v.v[0][1]=e-n,this.v.v[1][0]=t-i,this.v.v[1][1]=e,this.v.v[2][0]=t,this.v.v[2][1]=e+n,this.v.v[3][0]=t+i,this.v.v[3][1]=e,this.v.i[0][0]=t+i*s,this.v.i[0][1]=e-n,this.v.i[1][0]=t-i,this.v.i[1][1]=e-n*s,this.v.i[2][0]=t-i*s,this.v.i[2][1]=e+n,this.v.i[3][0]=t+i,this.v.i[3][1]=e+n*s,this.v.o[0][0]=t-i*s,this.v.o[0][1]=e-n,this.v.o[1][0]=t-i,this.v.o[1][1]=e+n*s,this.v.o[2][0]=t+i*s,this.v.o[2][1]=e+n,this.v.o[3][0]=t+i),this.v.o[3][1]=e-n*s}function r(t){var e,i=this.dynamicProperties.length;if(this.elem.globalData.frameId!==this.frameId){for(this.mdf=!1,this.frameId=this.elem.globalData.frameId,e=0;e<i;e+=1)this.dynamicProperties[e].getValue(t),this.dynamicProperties[e].mdf&&(this.mdf=!0);this.mdf&&this.convertEllToPath()}}var h=function(t,e){this.v=Ue.newShape(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.dynamicProperties=[],this.mdf=!1,this.getValue=c,this.reset=n,1===e.sy?(this.ir=Ht.getProp(t,e.ir,0,0,this.dynamicProperties),this.is=Ht.getProp(t,e.is,0,.01,this.dynamicProperties),this.convertToPath=u):this.convertToPath=p,this.pt=Ht.getProp(t,e.pt,0,0,this.dynamicProperties),this.p=Ht.getProp(t,e.p,1,0,this.dynamicProperties),this.r=Ht.getProp(t,e.r,0,y,this.dynamicProperties),this.or=Ht.getProp(t,e.or,0,0,this.dynamicProperties),this.os=Ht.getProp(t,e.os,0,.01,this.dynamicProperties),this.localShapeCollection=Je.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:this.convertToPath()};function p(){var t,e=Math.floor(this.pt.v),i=2*Math.PI/e,n=this.or.v,s=this.os.v,r=2*Math.PI*n/(4*e),a=-Math.PI/2,o=3===this.data.d?-1:1;for(a+=this.r.v,t=this.v._length=0;t<e;t+=1){var l=n*Math.cos(a),h=n*Math.sin(a),p=0===l&&0===h?0:h/Math.sqrt(l*l+h*h),u=0===l&&0===h?0:-l/Math.sqrt(l*l+h*h);l+=+this.p.v[0],h+=+this.p.v[1],this.v.setTripleAt(l,h,l-p*r*s*o,h-u*r*s*o,l+p*r*s*o,h+u*r*s*o,t,!0),a+=i*o}this.paths.length=0,this.paths[0]=this.v}function u(){var t=2*Math.floor(this.pt.v),e=2*Math.PI/t,i=!0,n=this.or.v,s=this.ir.v,r=this.os.v,a=this.is.v,o=2*Math.PI*n/(2*t),l=2*Math.PI*s/(2*t),h=-Math.PI/2;h+=this.r.v;for(var p=3===this.data.d?-1:1,u=this.v._length=0;u<t;u+=1){var c=i?r:a,f=i?o:l,d=(y=i?n:s)*Math.cos(h),m=y*Math.sin(h),g=0===d&&0===m?0:m/Math.sqrt(d*d+m*m),y=0===d&&0===m?0:-d/Math.sqrt(d*d+m*m);d+=+this.p.v[0],m+=+this.p.v[1],this.v.setTripleAt(d,m,d-g*f*c*p,m-y*f*c*p,d+g*f*c*p,m+y*f*c*p,u,!0),i=!i,h+=e*p}}function c(){if(this.elem.globalData.frameId!==this.frameId){this.mdf=!1,this.frameId=this.elem.globalData.frameId;for(var t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e].mdf&&(this.mdf=!0);this.mdf&&this.convertToPath()}}var f=function(t,e){this.v=Ue.newShape(),this.v.c=!0,this.localShapeCollection=Je.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.dynamicProperties=[],this.mdf=!1,this.getValue=d,this.convertRectToPath=m,this.reset=n,this.p=Ht.getProp(t,e.p,1,0,this.dynamicProperties),this.s=Ht.getProp(t,e.s,1,0,this.dynamicProperties),this.r=Ht.getProp(t,e.r,0,0,this.dynamicProperties),this.dynamicProperties.length?this.k=!0:this.convertRectToPath()};function d(t){if(this.elem.globalData.frameId!==this.frameId){this.mdf=!1,this.frameId=this.elem.globalData.frameId;for(var e=this.dynamicProperties.length,i=0;i<e;i+=1)this.dynamicProperties[i].getValue(t),this.dynamicProperties[i].mdf&&(this.mdf=!0);this.mdf&&this.convertRectToPath()}}function m(){var t=this.p.v[0],e=this.p.v[1],i=this.s.v[0]/2,n=this.s.v[1]/2,s=g(i,n,this.r.v),r=s*(1-v);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+i,e-n+s,t+i,e-n+s,t+i,e-n+r,0,!0),this.v.setTripleAt(t+i,e+n-s,t+i,e+n-r,t+i,e+n-s,1,!0),0!==s?(this.v.setTripleAt(t+i-s,e+n,t+i-s,e+n,t+i-r,e+n,2,!0),this.v.setTripleAt(t-i+s,e+n,t-i+r,e+n,t-i+s,e+n,3,!0),this.v.setTripleAt(t-i,e+n-s,t-i,e+n-s,t-i,e+n-r,4,!0),this.v.setTripleAt(t-i,e-n+s,t-i,e-n+r,t-i,e-n+s,5,!0),this.v.setTripleAt(t-i+s,e-n,t-i+s,e-n,t-i+r,e-n,6,!0),this.v.setTripleAt(t+i-s,e-n,t+i-r,e-n,t+i-s,e-n,7,!0)):(this.v.setTripleAt(t-i,e+n,t-i+r,e+n,t-i,e+n,2),this.v.setTripleAt(t-i,e-n,t-i,e-n+r,t-i,e-n,3))):(this.v.setTripleAt(t+i,e-n+s,t+i,e-n+r,t+i,e-n+s,0,!0),0!==s?(this.v.setTripleAt(t+i-s,e-n,t+i-s,e-n,t+i-r,e-n,1,!0),this.v.setTripleAt(t-i+s,e-n,t-i+r,e-n,t-i+s,e-n,2,!0),this.v.setTripleAt(t-i,e-n+s,t-i,e-n+s,t-i,e-n+r,3,!0),this.v.setTripleAt(t-i,e+n-s,t-i,e+n-r,t-i,e+n-s,4,!0),this.v.setTripleAt(t-i+s,e+n,t-i+s,e+n,t-i+r,e+n,5,!0),this.v.setTripleAt(t+i-s,e+n,t+i-r,e+n,t+i-s,e+n,6,!0),this.v.setTripleAt(t+i,e+n-s,t+i,e+n-s,t+i,e+n-r,7,!0)):(this.v.setTripleAt(t-i,e-n,t-i+r,e-n,t-i,e-n,1,!0),this.v.setTripleAt(t-i,e+n,t-i,e+n-r,t-i,e+n,2,!0),this.v.setTripleAt(t+i,e+n,t+i-r,e+n,t+i,e+n,3,!0)))}var e={getShapeProp:function(t,e,i,n){var s,r;return 3===i||4===i?(r=(s=3===i?e.pt:e.ks).k,r=new(1===s.a||r.length?o:a)(t,e,i)):5===i?r=new f(t,e):6===i?r=new l(t,e):7===i&&(r=new h(t,e)),r.k&&n.push(r),r},getConstructorFunction:function(){return a},getKeyframedConstructorFunction:function(){return o}};return e}(),be=(ve={},(Vi={}).registerModifier=function(t,e){ve[t]||(ve[t]=e)},Vi.getModifier=function(t,e,i,n){return new ve[t](e,i,n)},Vi);function xe(){}function we(){}function Te(){}function ke(){}function Pe(){this._length=0,this._maxLength=4,this.shapes=Array.apply(null,{length:this._maxLength})}xe.prototype.initModifierProperties=function(){},xe.prototype.addShapeToModifier=function(){},xe.prototype.addShape=function(t){this.closed||(this.shapes.push({shape:t.sh,data:t,localShapeCollection:Je.newShapeCollection()}),this.addShapeToModifier(t.sh))},xe.prototype.init=function(t,e,i){this.elem=t,this.frameId=-1,this.shapes=[],this.dynamicProperties=[],this.mdf=!1,this.closed=!1,this.k=!1,this.comp=t.comp,this.initModifierProperties(t,e),this.dynamicProperties.length?(this.k=!0,i.push(this)):this.getValue(!0)},dt(xe,we),we.prototype.processKeys=function(t){if(this.elem.globalData.frameId!==this.frameId||t){this.mdf=!!t,this.frameId=this.elem.globalData.frameId;for(var e,i,n,s=this.dynamicProperties.length,r=0;r<s;r+=1)this.dynamicProperties[r].getValue(),this.dynamicProperties[r].mdf&&(this.mdf=!0);(this.mdf||t)&&((e=this.o.v%360/360)<0&&(e+=1),i=this.s.v+e,(n=this.e.v+e)<i&&(t=i,i=n,n=t),this.sValue=i,this.eValue=n,this.oValue=e)}},we.prototype.initModifierProperties=function(t,e){this.sValue=0,this.eValue=0,this.oValue=0,this.getValue=this.processKeys,this.s=Ht.getProp(t,e.s,0,.01,this.dynamicProperties),this.e=Ht.getProp(t,e.e,0,.01,this.dynamicProperties),this.o=Ht.getProp(t,e.o,0,0,this.dynamicProperties),this.m=e.m,this.dynamicProperties.length||this.getValue(!0)},we.prototype.calculateShapeEdges=function(t,e,i,n,s){var r=[];e<=1?r.push({s:t,e:e}):1<=t?r.push({s:t-1,e:e-1}):(r.push({s:t,e:1}),r.push({s:0,e:e-1}));for(var a,o,l=[],h=r.length,p=0;p<h;p+=1)(o=r[p]).e*s<n||o.s*s>n+i||(a=o.s*s<=n?0:(o.s*s-n)/i,o=o.e*s>=n+i?1:(o.e*s-n)/i,l.push([a,o]));return l.length||l.push([0,0]),l},we.prototype.processShapes=function(t){var e,i,n,s,r=this.shapes.length,a=this.sValue,o=this.eValue,l=0;if(o===a)for(u=0;u<r;u+=1)this.shapes[u].localShapeCollection.releaseShapes(),this.shapes[u].shape.mdf=!0,this.shapes[u].shape.paths=this.shapes[u].localShapeCollection;else if(1===o&&0===a||0===o&&1===a){if(this.mdf)for(u=0;u<r;u+=1)this.shapes[u].shape.mdf=!0}else{for(var h,p=[],u=0;u<r;u+=1)if((h=this.shapes[u]).shape.mdf||this.mdf||t||2===this.m){if(f=(e=h.shape.paths)._length,s=0,!h.shape.mdf&&h.pathsData)s=h.totalShapeLength;else{for(i=[],c=0;c<f;c+=1)n=mt.getSegmentsLength(e.shapes[c]),i.push(n),s+=n.totalLength;h.totalShapeLength=s,h.pathsData=i}l+=s,h.shape.mdf=!0}else h.shape.paths=h.localShapeCollection;var c,f,d,m,g=a,y=o,v=0;for(u=r-1;0<=u;--u)if((h=this.shapes[u]).shape.mdf){for((m=h.localShapeCollection).releaseShapes(),2===this.m&&1<r?(d=this.calculateShapeEdges(a,o,h.totalShapeLength,v,l),v+=h.totalShapeLength):d=[[g,y]],f=d.length,c=0;c<f;c+=1){g=d[c][0],y=d[c][1],p.length=0,y<=1?p.push({s:h.totalShapeLength*g,e:h.totalShapeLength*y}):1<=g?p.push({s:h.totalShapeLength*(g-1),e:h.totalShapeLength*(y-1)}):(p.push({s:h.totalShapeLength*g,e:h.totalShapeLength}),p.push({s:0,e:h.totalShapeLength*(y-1)}));var _,b=this.addShapes(h,p[0]);p[0].s!==p[0].e&&(1<p.length&&(b=h.shape.v.c?(_=b.pop(),this.addPaths(b,m),this.addShapes(h,p[1],_)):(this.addPaths(b,m),this.addShapes(h,p[1]))),this.addPaths(b,m))}h.shape.paths=m}}this.dynamicProperties.length||(this.mdf=!1)},we.prototype.addPaths=function(t,e){for(var i=t.length,n=0;n<i;n+=1)e.addShape(t[n])},we.prototype.addSegment=function(t,e,i,n,s,r,a){s.setXYAt(e[0],e[1],"o",r),s.setXYAt(i[0],i[1],"i",r+1),a&&s.setXYAt(t[0],t[1],"v",r),s.setXYAt(n[0],n[1],"v",r+1)},we.prototype.addShapes=function(t,e,i){var n,s,r,a,o,l,h,p,u=t.pathsData,c=t.shape.paths.shapes,f=t.shape.paths._length,d=0,m=[],g=!0,y=i?(a=i._length,i._length):(i=Ue.newShape(),a=0);for(m.push(i),n=0;n<f;n+=1){for(o=u[n].lengths,i.c=c[n].c,r=c[n].c?o.length:o.length+1,s=1;s<r;s+=1)if(d+(p=o[s-1]).addedLength<e.s)d+=p.addedLength,i.c=!1;else{if(d>e.e){i.c=!1;break}e.s<=d&&e.e>=d+p.addedLength?(this.addSegment(c[n].v[s-1],c[n].o[s-1],c[n].i[s],c[n].v[s],i,a,g),g=!1):(l=mt.getNewSegment(c[n].v[s-1],c[n].v[s],c[n].o[s-1],c[n].i[s],(e.s-d)/p.addedLength,(e.e-d)/p.addedLength,o[s-1]),this.addSegment(l.pt1,l.pt3,l.pt4,l.pt2,i,a,g),i.c=g=!1),d+=p.addedLength,a+=1}if(c[n].c&&(p=o[s-1],d<=e.e?(h=o[s-1].addedLength,e.s<=d&&e.e>=d+h?(this.addSegment(c[n].v[s-1],c[n].o[s-1],c[n].i[0],c[n].v[0],i,a,g),g=!1):(l=mt.getNewSegment(c[n].v[s-1],c[n].v[0],c[n].o[s-1],c[n].i[0],(e.s-d)/h,(e.e-d)/h,o[s-1]),this.addSegment(l.pt1,l.pt3,l.pt4,l.pt2,i,a,g),i.c=g=!1)):i.c=!1,d+=p.addedLength,a+=1),i._length&&(i.setXYAt(i.v[y][0],i.v[y][1],"i",y),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),d>e.e)break;n<f-1&&(i=Ue.newShape(),g=!0,m.push(i),a=0)}return m},be.registerModifier("tm",we),dt(xe,Te),Te.prototype.processKeys=function(t){if(this.elem.globalData.frameId!==this.frameId||t){this.mdf=!!t,this.frameId=this.elem.globalData.frameId;for(var e=this.dynamicProperties.length,i=0;i<e;i+=1)this.dynamicProperties[i].getValue(),this.dynamicProperties[i].mdf&&(this.mdf=!0)}},Te.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=Ht.getProp(t,e.r,0,null,this.dynamicProperties),this.dynamicProperties.length||this.getValue(!0)},Te.prototype.processPath=function(t,e){var i=Ue.newShape();i.c=t.c;for(var n,s,r,a,o,l,h,p,u,c,f=t._length,d=0,m=0;m<f;m+=1)n=t.v[m],r=t.o[m],s=t.i[m],n[0]===r[0]&&n[1]===r[1]&&n[0]===s[0]&&n[1]===s[1]?0!==m&&m!==f-1||t.c?(a=0===m?t.v[f-1]:t.v[m-1],l=(o=Math.sqrt(Math.pow(n[0]-a[0],2)+Math.pow(n[1]-a[1],2)))?Math.min(o/2,e)/o:0,u=n[0]+(a[0]-n[0])*l,c=n[1]-(n[1]-a[1])*l,h=u-(u-n[0])*v,p=c-(c-n[1])*v,i.setTripleAt(u,c,h,p,u,c,d),d+=1,a=m===f-1?t.v[0]:t.v[m+1],l=(o=Math.sqrt(Math.pow(n[0]-a[0],2)+Math.pow(n[1]-a[1],2)))?Math.min(o/2,e)/o:0,h=n[0]+(a[0]-n[0])*l,p=n[1]+(a[1]-n[1])*l,u=h-(h-n[0])*v,c=p-(p-n[1])*v,i.setTripleAt(h,p,h,p,u,c,d)):i.setTripleAt(n[0],n[1],r[0],r[1],s[0],s[1],d):i.setTripleAt(t.v[m][0],t.v[m][1],t.o[m][0],t.o[m][1],t.i[m][0],t.i[m][1],d),d+=1;return i},Te.prototype.processShapes=function(t){var e,i,n,s=this.shapes.length,r=this.rd.v;if(0!==r)for(var a,o,l=0;l<s;l+=1){if((a=this.shapes[l]).shape.paths,o=a.localShapeCollection,a.shape.mdf||this.mdf||t)for(o.releaseShapes(),a.shape.mdf=!0,e=a.shape.paths.shapes,n=a.shape.paths._length,i=0;i<n;i+=1)o.addShape(this.processPath(e[i],r));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this.mdf=!1)},be.registerModifier("rd",Te),ke.prototype.processKeys=function(t){if(this.elem.globalData.frameId!==this.frameId||t){this.mdf=!!t;for(var e=this.dynamicProperties.length,i=0;i<e;i+=1)this.dynamicProperties[i].getValue(),this.dynamicProperties[i].mdf&&(this.mdf=!0)}},ke.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=Ht.getProp(t,e.c,0,null,this.dynamicProperties),this.o=Ht.getProp(t,e.o,0,null,this.dynamicProperties),this.tr=Ht.getProp(t,e.tr,2,null,this.dynamicProperties),this.data=e,this.dynamicProperties.length||this.getValue(!0),this.pMatrix=new S,this.rMatrix=new S,this.sMatrix=new S,this.tMatrix=new S,this.matrix=new S},ke.prototype.applyTransforms=function(t,e,i,n,s,r){var a=r?-1:1,o=n.s.v[0]+(1-n.s.v[0])*(1-s),l=n.s.v[1]+(1-n.s.v[1])*(1-s);t.translate(n.p.v[0]*a*s,n.p.v[1]*a*s,n.p.v[2]),e.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),e.rotate(-n.r.v*a*s),e.translate(n.a.v[0],n.a.v[1],n.a.v[2]),i.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),i.scale(r?1/o:o,r?1/l:l),i.translate(n.a.v[0],n.a.v[1],n.a.v[2])},ke.prototype.init=function(t,e,i,n,s){this.elem=t,this.arr=e,this.pos=i,this.elemsData=n,this._currentCopies=0,this._elements=[],this._groups=[],this.dynamicProperties=[],this.frameId=-1,this.initModifierProperties(t,e[i]);for(;0<i;)this._elements.unshift(e[--i]),0;this.dynamicProperties.length?(this.k=!0,s.push(this)):this.getValue(!0)},ke.prototype.resetElements=function(t){for(var e=t.length,i=0;i<e;i+=1)t[i]._processed=!1,"gr"===t[i].ty&&this.resetElements(t[i].it)},ke.prototype.cloneElements=function(t){t.length;t=JSON.parse(JSON.stringify(t));return this.resetElements(t),t},ke.prototype.changeGroupRender=function(t,e){for(var i=t.length,n=0;n<i;n+=1)t[n]._render=e,"gr"===t[n].ty&&this.changeGroupRender(t[n].it,e)},ke.prototype.processShapes=function(t){if(this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.dynamicProperties.length||t||(this.mdf=!1),this.mdf)){var e=Math.ceil(this.c.v);if(this._groups.length<e){for(;this._groups.length<e;){var i={it:this.cloneElements(this._elements),ty:"gr"};i.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:0,ix:6,k:0},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,i),this._groups.splice(0,0,i),this._currentCopies+=1}this.elem.reloadShapes()}for(var n,s=0,r=0;r<=this._groups.length-1;r+=1)this._groups[r]._render=n=s<e,this.changeGroupRender(this._groups[r].it,n),s+=1;this._currentCopies=e,this.elem.firstFrame=!0;var a=this.o.v,t=a%1,o=0<a?Math.floor(a):Math.ceil(a),l=(this.tr.v.props,this.pMatrix.props),h=this.rMatrix.props,p=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var u=0;if(0<a){for(;u<o;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),u+=1;t&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,t,!1),u+=t)}else if(a<0){for(;o<u;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),--u;t&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-t,!0),u-=t)}r=1===this.data.m?0:this._currentCopies-1;for(var c=1===this.data.m?1:-1,s=this._currentCopies;s;){if(0!==u){(0!==r&&1==c||r!==this._currentCopies-1&&-1==c)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(h[0],h[1],h[2],h[3],h[4],h[5],h[6],h[7],h[8],h[9],h[10],h[11],h[12],h[13],h[14],h[15]),this.matrix.transform(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15]),this.matrix.transform(l[0],l[1],l[2],l[3],l[4],l[5],l[6],l[7],l[8],l[9],l[10],l[11],l[12],l[13],l[14],l[15]);var f=(m=(d=this.elemsData[r].it)[d.length-1].transform.mProps.v.props).length;for(g=0;g<f;g+=1)m[g]=this.matrix.props[g];this.matrix.reset()}else{this.matrix.reset();var d,m,g,f=(m=(d=this.elemsData[r].it)[d.length-1].transform.mProps.v.props).length;for(g=0;g<f;g+=1)m[g]=this.matrix.props[g]}u+=1,--s,r+=c}}},ke.prototype.addShape=function(){},be.registerModifier("rp",ke),Pe.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(Array.apply(null,{length:this._maxLength})),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},Pe.prototype.releaseShapes=function(){for(var t=0;t<this._length;t+=1)Ue.release(this.shapes[t]);this._length=0};var Ae,Se=function(){this.loadAssets=De,this.setAssetsPath=Ie,this.setPath=Fe,this.assetsPath="",this.path="",this.totalAssets=0,this.totalImages=0,this.loadedAssets=0};function Ee(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&Ae&&Ae(null)}function Ce(t){var e,i="";return this.assetsPath?(-1!==(e=t.p).indexOf("images/")&&(e=e.split("/")[1]),i=this.assetsPath+e):(i=this.path,i+=t.u||"",i+=t.p),i}function Me(t){var e=document.createElement("img");e.addEventListener("load",Ee.bind(this),!1),e.addEventListener("error",Ee.bind(this),!1),e.src=t}function De(t,e){var i;for(Ae=e,this.totalAssets=t.length,i=0;i<this.totalAssets;i+=1)t[i].layers||(Me.bind(this)(Ce.bind(this)(t[i])),this.totalImages+=1)}function Fe(t){this.path=t||""}function Ie(t){this.assetsPath=t||""}var Oe=(Ni={maskType:!0},(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(Ni.maskType=!1),Ni),Le=((Vi={}).createFilter=function(t){var e=document.createElementNS(x,"filter");return e.setAttribute("id",t),e.setAttribute("filterUnits","objectBoundingBox"),e.setAttribute("x","0%"),e.setAttribute("y","0%"),e.setAttribute("width","100%"),e.setAttribute("height","100%"),e},Vi.createAlphaToLuminanceFilter=function(){var t=document.createElementNS(x,"feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t},Vi);function Ne(t,e,i){this.mdf=!1,this._firstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._dynamicProperties=[],this._textData=t,this._renderType=e,this._elem=i,this._animatorsData=Array.apply(null,{length:this._textData.a.length}),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1}function Re(t,e,i,n,s,r){this.o=t,this.sw=e,this.sc=i,this.fc=n,this.m=s,this.p=r,this.mdf={o:!0,sw:!!e,sc:!!i,fc:!!n,m:!0,p:!0}}function Ve(t,e,i){this._frameId=-99999,this.pv="",this.v="",this.kf=!1,this.firstFrame=!0,this.mdf=!0,this.data=e,this.elem=t,this.keysIndex=-1,this.currentData={ascent:0,boxWidth:[0,0],f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,__complete:!1},this.searchProperty()?i.push(this):this.getValue(!0)}Ne.prototype.searchProperties=function(t){for(var e,i,n=this._textData.a.length,s=Ht.getProp,r=0;r<n;r+=1)e={a:{},s:{}},"r"in(i=this._textData.a[r]).a&&(e.a.r=s(this._elem,i.a.r,0,y,this._dynamicProperties)),"rx"in i.a&&(e.a.rx=s(this._elem,i.a.rx,0,y,this._dynamicProperties)),"ry"in i.a&&(e.a.ry=s(this._elem,i.a.ry,0,y,this._dynamicProperties)),"sk"in i.a&&(e.a.sk=s(this._elem,i.a.sk,0,y,this._dynamicProperties)),"sa"in i.a&&(e.a.sa=s(this._elem,i.a.sa,0,y,this._dynamicProperties)),"s"in i.a&&(e.a.s=s(this._elem,i.a.s,1,.01,this._dynamicProperties)),"a"in i.a&&(e.a.a=s(this._elem,i.a.a,1,0,this._dynamicProperties)),"o"in i.a&&(e.a.o=s(this._elem,i.a.o,0,.01,this._dynamicProperties)),"p"in i.a&&(e.a.p=s(this._elem,i.a.p,1,0,this._dynamicProperties)),"sw"in i.a&&(e.a.sw=s(this._elem,i.a.sw,0,0,this._dynamicProperties)),"sc"in i.a&&(e.a.sc=s(this._elem,i.a.sc,1,0,this._dynamicProperties)),"fc"in i.a&&(e.a.fc=s(this._elem,i.a.fc,1,0,this._dynamicProperties)),"fh"in i.a&&(e.a.fh=s(this._elem,i.a.fh,0,0,this._dynamicProperties)),"fs"in i.a&&(e.a.fs=s(this._elem,i.a.fs,0,.01,this._dynamicProperties)),"fb"in i.a&&(e.a.fb=s(this._elem,i.a.fb,0,.01,this._dynamicProperties)),"t"in i.a&&(e.a.t=s(this._elem,i.a.t,0,0,this._dynamicProperties)),e.s=Ht.getTextSelectorProp(this._elem,i.s,this._dynamicProperties),e.s.t=i.s.t,this._animatorsData[r]=e;this._textData.p&&"m"in this._textData.p?(this._pathData={f:s(this._elem,this._textData.p.f,0,0,this._dynamicProperties),l:s(this._elem,this._textData.p.l,0,0,this._dynamicProperties),r:this._textData.p.r,m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=s(this._elem,this._textData.m.a,1,0,this._dynamicProperties),this._dynamicProperties.length&&t.push(this)},Ne.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,this.mdf||this._firstFrame||e||this._hasMaskedPath&&this._pathData.m.mdf){this._firstFrame=!1;var i=this._moreOptions.alignment.v,n=this._animatorsData,s=this._textData,r=this.mHelper,a=this._renderType,o=this.renderedLetters.length,l=(this.data,t.l);if(this._hasMaskedPath){var h=this._pathData.m;if(!this._pathData.n||this._pathData.mdf){for(var p,u=h.v,c={tLength:0,segments:[]},f=(u=this._pathData.r?function(t){var e=[],i=[],n=[],s={},r=0;t.c&&(e[0]=t.o[0],i[0]=t.i[0],n[0]=t.v[0],r=1);for(var a,o=(a=t.i.length)-1,l=r;l<a;l+=1)e.push(t.o[o]),i.push(t.i[o]),n.push(t.v[o]),--o;return s.i=e,s.o=i,s.v=n,s}(u):u)._length-1,d=0,m=0;m<f;m+=1)p={s:u.v[m],e:u.v[m+1],to:[u.o[m][0]-u.v[m][0],u.o[m][1]-u.v[m][1]],ti:[u.i[m+1][0]-u.v[m+1][0],u.i[m+1][1]-u.v[m+1][1]]},mt.buildBezierData(p),c.tLength+=p.bezierData.segmentLength,c.segments.push(p),d+=p.bezierData.segmentLength;m=f,h.v.c&&(p={s:u.v[m],e:u.v[0],to:[u.o[m][0]-u.v[m][0],u.o[m][1]-u.v[m][1]],ti:[u.i[0][0]-u.v[0][0],u.i[0][1]-u.v[0][1]]},mt.buildBezierData(p),c.tLength+=p.bezierData.segmentLength,c.segments.push(p),d+=p.bezierData.segmentLength),this._pathData.pi=c}var c=this._pathData.pi,g=this._pathData.f.v,y=0,v=1,_=0,b=!0,x=c.segments;if(g<0&&h.v.c)for(c.tLength<Math.abs(g)&&(g=-Math.abs(g)%c.tLength),v=(w=x[y=x.length-1].bezierData.points).length-1;g<0;)g+=w[v].partialLength,--v<0&&(v=(w=x[--y].bezierData.points).length-1);var w,T,k,P=(w=x[y].bezierData.points)[v-1],A=(T=w[v]).partialLength}f=l.length;var S,E,C=0,M=0,D=1.2*t.s*.714,F=!0,I=n.length;if(e)for(it=0;it<I;it+=1)n[it].s.getValue(!0);var O,L,N,R,V,j,z,B,q,H,W,X,Y,U,G=-1,Z=g,$=y,K=v,Q=-1,J="",tt=this.defaultPropsArray;for(m=0;m<f;m+=1){if(r.reset(),V=1,l[m].n)M+=t.yOffset,M+=F?1:0,g=Z,F=!1,C=0,this._hasMaskedPath&&(P=(w=x[y=$].bezierData.points)[(v=K)-1],A=(T=w[v]).partialLength,_=0),Y=H=X=J="",tt=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Q!==l[m].line){switch(t.j){case 1:g+=d-t.lineWidths[l[m].line];break;case 2:g+=(d-t.lineWidths[l[m].line])/2}Q=l[m].line}G!==l[m].ind&&(l[G]&&(g+=l[G].extra),g+=l[m].an/2,G=l[m].ind),g+=i[0]*l[m].an/200;for(var et=0,it=0;it<I;it+=1)"p"in(S=n[it].a)&&((O=n[it].s.getMult(l[m].anIndexes[it],s.a[it].s.totalChars)).length?et+=S.p.v[0]*O[0]:et+=S.p.v[0]*O),"a"in S&&((O=n[it].s.getMult(l[m].anIndexes[it],s.a[it].s.totalChars)).length?et+=S.a.v[0]*O[0]:et+=S.a.v[0]*O);for(b=!0;b;)g+et<=_+A||!w?(k=(g+et-_)/T.partialLength,N=P.point[0]+(T.point[0]-P.point[0])*k,R=P.point[1]+(T.point[1]-P.point[1])*k,r.translate(-i[0]*l[m].an/200,-i[1]*D/100),b=!1):w&&(_+=T.partialLength,(v+=1)>=w.length&&(v=0,w=x[y+=1]?x[y].bezierData.points:h.v.c?x[y=v=0].bezierData.points:(_-=T.partialLength,null)),w&&(P=T,A=(T=w[v]).partialLength));L=l[m].an/2-l[m].add,r.translate(-L,0,0)}else L=l[m].an/2-l[m].add,r.translate(-L,0,0),r.translate(-i[0]*l[m].an/200,-i[1]*D/100,0);for(l[m].l,it=0;it<I;it+=1)"t"in(S=n[it].a)&&(O=n[it].s.getMult(l[m].anIndexes[it],s.a[it].s.totalChars),this._hasMaskedPath?O.length?g+=S.t*O[0]:g+=S.t*O:O.length?C+=S.t.v*O[0]:C+=S.t.v*O);for(l[m].l,t.strokeWidthAnim&&(z=t.sw||0),t.strokeColorAnim&&(j=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(B=[t.fc[0],t.fc[1],t.fc[2]]),it=0;it<I;it+=1)"a"in(S=n[it].a)&&((O=n[it].s.getMult(l[m].anIndexes[it],s.a[it].s.totalChars)).length?r.translate(-S.a.v[0]*O[0],-S.a.v[1]*O[1],S.a.v[2]*O[2]):r.translate(-S.a.v[0]*O,-S.a.v[1]*O,S.a.v[2]*O));for(it=0;it<I;it+=1)"s"in(S=n[it].a)&&((O=n[it].s.getMult(l[m].anIndexes[it],s.a[it].s.totalChars)).length?r.scale(1+(S.s.v[0]-1)*O[0],1+(S.s.v[1]-1)*O[1],1):r.scale(1+(S.s.v[0]-1)*O,1+(S.s.v[1]-1)*O,1));for(it=0;it<I;it+=1){if(S=n[it].a,O=n[it].s.getMult(l[m].anIndexes[it],s.a[it].s.totalChars),"sk"in S&&(O.length?r.skewFromAxis(-S.sk.v*O[0],S.sa.v*O[1]):r.skewFromAxis(-S.sk.v*O,S.sa.v*O)),"r"in S&&(O.length?r.rotateZ(-S.r.v*O[2]):r.rotateZ(-S.r.v*O)),"ry"in S&&(O.length?r.rotateY(S.ry.v*O[1]):r.rotateY(S.ry.v*O)),"rx"in S&&(O.length?r.rotateX(S.rx.v*O[0]):r.rotateX(S.rx.v*O)),"o"in S&&(O.length?V+=(S.o.v*O[0]-V)*O[0]:V+=(S.o.v*O-V)*O),t.strokeWidthAnim&&"sw"in S&&(O.length?z+=S.sw.v*O[0]:z+=S.sw.v*O),t.strokeColorAnim&&"sc"in S)for(q=0;q<3;q+=1)O.length?j[q]=j[q]+(S.sc.v[q]-j[q])*O[0]:j[q]=j[q]+(S.sc.v[q]-j[q])*O;if(t.fillColorAnim&&t.fc){if("fc"in S)for(q=0;q<3;q+=1)O.length?B[q]=B[q]+(S.fc.v[q]-B[q])*O[0]:B[q]=B[q]+(S.fc.v[q]-B[q])*O;"fh"in S&&(B=O.length?rt(B,S.fh.v*O[0]):rt(B,S.fh.v*O)),"fs"in S&&(B=O.length?nt(B,S.fs.v*O[0]):nt(B,S.fs.v*O)),"fb"in S&&(B=O.length?st(B,S.fb.v*O[0]):st(B,S.fb.v*O))}}for(it=0;it<I;it+=1)"p"in(S=n[it].a)&&(O=n[it].s.getMult(l[m].anIndexes[it],s.a[it].s.totalChars),this._hasMaskedPath?O.length?r.translate(0,S.p.v[1]*O[0],-S.p.v[2]*O[1]):r.translate(0,S.p.v[1]*O,-S.p.v[2]*O):O.length?r.translate(S.p.v[0]*O[0],S.p.v[1]*O[1],-S.p.v[2]*O[2]):r.translate(S.p.v[0]*O,S.p.v[1]*O,-S.p.v[2]*O));if(t.strokeWidthAnim&&(H=z<0?0:z),t.strokeColorAnim&&(W="rgb("+Math.round(255*j[0])+","+Math.round(255*j[1])+","+Math.round(255*j[2])+")"),t.fillColorAnim&&t.fc&&(X="rgb("+Math.round(255*B[0])+","+Math.round(255*B[1])+","+Math.round(255*B[2])+")"),this._hasMaskedPath)r.translate(0,-t.ls),r.translate(0,i[1]*D/100+M,0),s.p.p&&(U=(T.point[1]-P.point[1])/(T.point[0]-P.point[0]),U=180*Math.atan(U)/Math.PI,T.point[0]<P.point[0]&&(U+=180),r.rotate(-U*Math.PI/180)),r.translate(N,R,0),g-=i[0]*l[m].an/200,l[m+1]&&G!==l[m+1].ind&&(g+=l[m].an/2,g+=t.tr/1e3*t.s);else{switch(r.translate(C,M,0),t.ps&&r.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:r.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[l[m].line]),0,0);break;case 2:r.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[l[m].line])/2,0,0)}r.translate(0,-t.ls),r.translate(L,0,0),r.translate(i[0]*l[m].an/200,i[1]*D/100,0),C+=l[m].l+t.tr/1e3*t.s}"html"===a?J=r.toCSS():"svg"===a?J=r.to2dCSS():tt=[r.props[0],r.props[1],r.props[2],r.props[3],r.props[4],r.props[5],r.props[6],r.props[7],r.props[8],r.props[9],r.props[10],r.props[11],r.props[12],r.props[13],r.props[14],r.props[15]],Y=V}o<=m?(E=new Re(Y,H,W,X,J,tt),this.renderedLetters.push(E),o+=1,this.lettersChangedFlag=!0):(E=this.renderedLetters[m],this.lettersChangedFlag=E.update(Y,H,W,X,J,tt)||this.lettersChangedFlag)}}},Ne.prototype.getValue=function(){if(this._elem.globalData.frameId!==this._frameId){this._frameId=this._elem.globalData.frameId;var t,e=this._dynamicProperties.length;for(this.mdf=!1,t=0;t<e;t+=1)this._dynamicProperties[t].getValue(),this.mdf=this._dynamicProperties[t].mdf||this.mdf}},Ne.prototype.mHelper=new S,Ne.prototype.defaultPropsArray=[],Re.prototype.update=function(t,e,i,n,s,r){this.mdf.o=!1,this.mdf.sw=!1,this.mdf.sc=!1,this.mdf.fc=!1,this.mdf.m=!1;var a=this.mdf.p=!1;return this.o!==t&&(this.o=t,a=this.mdf.o=!0),this.sw!==e&&(this.sw=e,a=this.mdf.sw=!0),this.sc!==i&&(this.sc=i,a=this.mdf.sc=!0),this.fc!==n&&(this.fc=n,a=this.mdf.fc=!0),this.m!==s&&(this.m=s,a=this.mdf.m=!0),!r.length||this.p[0]===r[0]&&this.p[1]===r[1]&&this.p[4]===r[4]&&this.p[5]===r[5]&&this.p[12]===r[12]&&this.p[13]===r[13]||(this.p=r,a=this.mdf.p=!0),a},Ve.prototype.setCurrentData=function(t){var e=this.currentData;e.ascent=t.ascent,e.boxWidth=t.boxWidth||e.boxWidth,e.f=t.f,e.fStyle=t.fStyle,e.fWeight=t.fWeight,e.fc=t.fc,e.j=t.j,e.justifyOffset=t.justifyOffset,e.l=t.l,e.lh=t.lh,e.lineWidths=t.lineWidths,e.ls=t.ls,e.of=t.of,e.s=t.s,e.sc=t.sc,e.sw=t.sw,e.t=t.t,e.tr=t.tr,e.fillColorAnim=t.fillColorAnim||e.fillColorAnim,e.strokeColorAnim=t.strokeColorAnim||e.strokeColorAnim,e.strokeWidthAnim=t.strokeWidthAnim||e.strokeWidthAnim,e.yOffset=t.yOffset,e.__complete=!1},Ve.prototype.searchProperty=function(){return this.kf=1<this.data.d.k.length,this.kf},Ve.prototype.getValue=function(){this.mdf=!1;var t=this.elem.globalData.frameId;if(t!==this._frameId&&this.kf||this.firstFrame){for(var e,i=this.data.d.k,n=0,s=i.length;n<=s-1&&(e=i[n].s,!(n===s-1||i[n+1].t>t));)n+=1;this.keysIndex!==n&&(e.__complete||this.completeTextData(e),this.setCurrentData(e),this.mdf=!this.firstFrame,this.pv=this.v=this.currentData.t,this.keysIndex=n),this._frameId=t}},Ve.prototype.completeTextData=function(t){t.__complete=!0;var e,i,n,s=this.elem.globalData.fontManager,r=this.data,a=[],o=0,l=r.m.g,h=0,p=0,u=0,c=[],f=0,d=0,m=s.getFontByName(t.f),g=0,y=m.fStyle.split(" "),v="normal",_="normal",b=y.length;for(k=0;k<b;k+=1)switch(y[k].toLowerCase()){case"italic":_="italic";break;case"bold":v="700";break;case"black":v="900";break;case"medium":v="500";break;case"regular":case"normal":v="400";case"light":case"thin":v="200"}t.fWeight=v,t.fStyle=_,b=t.t.length;var x=t.tr/1e3*t.s;if(t.sz){for(var w=t.sz[0],T=-1,k=0;k<b;k+=1)e=!1," "===t.t.charAt(k)?T=k:13===t.t.charCodeAt(k)&&(e=!(f=0)),w<f+(g=s.chars?(n=s.getCharData(t.t.charAt(k),m.fStyle,m.fFamily),e?0:n.w*t.s/100):s.measureText(t.t.charAt(k),t.f,t.s))&&" "!==t.t.charAt(k)?(-1===T?b+=1:k=T,t.t=t.t.substr(0,k)+"\r"+t.t.substr(k===T?k+1:k),T=-1,f=0):(f+=g,f+=x);b=t.t.length}var P,f=-x,g=0,A=0;for(k=0;k<b;k+=1)if(e=!1," "===(P=t.t.charAt(k))?i=" ":13===P.charCodeAt(0)?(A=0,c.push(f),d=d<f?f:d,f=-2*x,e=!(i=""),u+=1):i=t.t.charAt(k),g=s.chars?(n=s.getCharData(P,m.fStyle,s.getFontByName(t.f).fFamily),e?0:n.w*t.s/100):s.measureText(i,t.f,t.s)," "===P?A+=g+x:(f+=g+x+A,A=0),a.push({l:g,an:g,add:h,n:e,anIndexes:[],val:i,line:u}),2==l){if(h+=g,""==i||" "==i||k==b-1){for(""!=i&&" "!=i||(h-=g);p<=k;)a[p].an=h,a[p].ind=o,a[p].extra=g,p+=1;o+=1,h=0}}else if(3==l){if(h+=g,""==i||k==b-1){for(""==i&&(h-=g);p<=k;)a[p].an=h,a[p].ind=o,a[p].extra=g,p+=1;h=0,o+=1}}else a[o].ind=o,a[o].extra=0,o+=1;if(t.l=a,d=d<f?f:d,c.push(f),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=d,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=c;for(var S,E,C,M,D=r.a,F=D.length,I=[],O=0;O<F;O+=1){for((S=D[O]).a.sc&&(t.strokeColorAnim=!0),S.a.sw&&(t.strokeWidthAnim=!0),(S.a.fc||S.a.fh||S.a.fs||S.a.fb)&&(t.fillColorAnim=!0),C=S.s.b,k=M=0;k<b;k+=1)(E=a[k]).anIndexes[O]=M,(1==C&&""!=E.val||2==C&&""!=E.val&&" "!=E.val||3==C&&(E.n||" "==E.val||k==b-1)||4==C&&(E.n||k==b-1))&&(1===S.s.rn&&I.push(M),M+=1);r.a[O].s.totalChars=M;var L,N=-1;if(1===S.s.rn)for(k=0;k<b;k+=1)N!=(E=a[k]).anIndexes[O]&&(N=E.anIndexes[O],L=I.splice(Math.floor(Math.random()*I.length),1)[0]),E.anIndexes[O]=L}t.yOffset=t.lh||1.2*t.s,t.ls=t.ls||0,t.ascent=m.ascent*t.s/100},Ve.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;e=this.data.d.k[e].s;e.__complete=!1,e.t=t.t,this.keysIndex=-1,this.firstFrame=!0,this.getValue()};var je,ze,Be,qe,He,We,Xe={double:function(t){return t.concat(Array.apply(null,{length:t.length}))}},Ye=(Ni={newPoint:function(){var t;t=je?Be[--je]:[.1,.1];return t},release:function(t){je===ze&&(Be=Xe.double(Be),ze*=2);Be[je]=t,je+=1}},je=0,ze=8,Be=Array.apply(null,{length:ze}),Ni),Ue=(Vi={clone:function(t,e){var i,n,s=void 0===t._length?t.v.length:t._length,r=Ge();for(r.setLength(s),r.c=t.c,i=0;i<s;i+=1)e?(n=e.applyToPointArray(t.v[i][0],t.v[i][1],0,2),r.setXYAt(n[0],n[1],"v",i),Ye.release(n),n=e.applyToPointArray(t.o[i][0],t.o[i][1],0,2),r.setXYAt(n[0],n[1],"o",i),Ye.release(n),n=e.applyToPointArray(t.i[i][0],t.i[i][1],0,2),r.setXYAt(n[0],n[1],"i",i),Ye.release(n)):r.setTripleAt(t.v[i][0],t.v[i][1],t.o[i][0],t.o[i][1],t.i[i][0],t.i[i][1],i);return r},newShape:Ge,release:Ze,releaseArray:function(t,e){for(;e--;)Ze(t[e])}},qe=0,He=4,We=Array.apply(null,{length:He}),Vi);function Ge(){var t=qe?We[--qe]:new ye;return t}function Ze(t){qe===He&&(We=Xe.double(We),He*=2);for(var e=t._length,i=0;i<e;i+=1)Ye.release(t.v[i]),Ye.release(t.i[i]),Ye.release(t.o[i]),t.v[i]=null,t.i[i]=null,t.o[i]=null;t._length=0,t.c=!1,We[qe]=t,qe+=1}var $e,Ke,Qe,Je=(Ni={newShapeCollection:function(){var t;t=$e?Qe[--$e]:new Pe;return t},release:ti,clone:function(t,e){ti(t),$e===Ke&&(Qe=Xe.double(Qe),Ke*=2);Qe[$e]=t,$e+=1}},$e=0,Ke=4,Qe=Array.apply(null,{length:Ke}),Ni);function ti(t){for(var e=t._length,i=0;i<e;i+=1)Ue.release(t.shapes[i]);t._length=0,$e===Ke&&(Qe=Xe.double(Qe),Ke*=2),Qe[$e]=t,$e+=1}function ei(){}function ii(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.globalData={frameNum:-1},this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!e||!1!==e.hideOnTransparent,viewBoxOnly:e&&e.viewBoxOnly||!1,className:e&&e.className||""},this.globalData.renderConfig=this.renderConfig,this.elements=[],this.pendingElements=[],this.destroyed=!1}function ni(t,e,i){this.dynamicProperties=[],this.data=t,this.element=e,this.globalData=i,this.storedData=[],this.masksProperties=this.data.masksProperties,this.viewData=Array.apply(null,{length:this.masksProperties.length}),this.maskElement=null,this.firstFrame=!0;for(var n,s,r,a,o,l=this.globalData.defs,h=this.masksProperties.length,p=this.masksProperties,u=0,c=[],f=A(10),d="clipPath",m="clip-path",g=0;g<h;g++)if(("a"!==p[g].mode&&"n"!==p[g].mode||p[g].inv||100!==p[g].o.k)&&(m=d="mask"),"s"!=p[g].mode&&"i"!=p[g].mode||0!=u?s=null:((s=document.createElementNS(x,"rect")).setAttribute("fill","#ffffff"),s.setAttribute("width",this.element.comp.data.w),s.setAttribute("height",this.element.comp.data.h),c.push(s)),n=document.createElementNS(x,"path"),"n"!=p[g].mode){if(u+=1,"s"==p[g].mode?n.setAttribute("fill","#000000"):n.setAttribute("fill","#ffffff"),n.setAttribute("clip-rule","nonzero"),0!==p[g].x.k?(m=d="mask",a=Ht.getProp(this.element,p[g].x,0,null,this.dynamicProperties),o="fi_"+A(10),(b=document.createElementNS(x,"filter")).setAttribute("id",o),(r=document.createElementNS(x,"feMorphology")).setAttribute("operator","dilate"),r.setAttribute("in","SourceGraphic"),r.setAttribute("radius","0"),b.appendChild(r),l.appendChild(b),"s"==p[g].mode?n.setAttribute("stroke","#000000"):n.setAttribute("stroke","#ffffff")):a=r=null,this.storedData[g]={elem:n,x:a,expan:r,lastPath:"",lastOperator:"",filterId:o,lastRadius:0},"i"==p[g].mode){for(var y=c.length,v=document.createElementNS(x,"g"),_=0;_<y;_+=1)v.appendChild(c[_]);var b=document.createElementNS(x,"mask");b.setAttribute("mask-type","alpha"),b.setAttribute("id",f+"_"+u),b.appendChild(n),l.appendChild(b),v.setAttribute("mask","url("+w+"#"+f+"_"+u+")"),c.length=0,c.push(v)}else c.push(n);p[g].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[g]={elem:n,lastPath:"",op:Ht.getProp(this.element,p[g].o,0,.01,this.dynamicProperties),prop:_e.getShapeProp(this.element,p[g],3,this.dynamicProperties,null)},s&&(this.viewData[g].invRect=s),this.viewData[g].prop.k||this.drawPath(p[g],this.viewData[g].prop.v,this.viewData[g])}else this.viewData[g]={op:Ht.getProp(this.element,p[g].o,0,.01,this.dynamicProperties),prop:_e.getShapeProp(this.element,p[g],3,this.dynamicProperties,null),elem:n},l.appendChild(n);for(this.maskElement=document.createElementNS(x,d),h=c.length,g=0;g<h;g+=1)this.maskElement.appendChild(c[g]);this.maskElement.setAttribute("id",f),0<u&&this.element.maskedElement.setAttribute(m,"url("+w+"#"+f+")"),l.appendChild(this.maskElement)}function si(){}function ri(t,e,i,n,s){this.globalData=i,this.comp=n,this.data=t,this.matteElement=null,this.transformedElement=null,this.isTransparent=!1,this.parentContainer=e,this.layerId=s?s.layerId:"ly_"+A(10),this.placeholder=s,this._sizeChanged=!1,this.init()}function ai(t,e,i,n,s){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this._parent.constructor.call(this,t,e,i,n,s)}ei.prototype.checkLayers=function(t){var e,i,n=this.layers.length;for(this.completeLayers=!0,e=n-1;0<=e;e--)this.elements[e]||(i=this.layers[e]).ip-i.st<=t-this.layers[e].st&&i.op-i.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},ei.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 13:return this.createCamera(t);case 99:return null}return this.createBase(t)},ei.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},ei.prototype.buildAllItems=function(){for(var t=this.layers.length,e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},ei.prototype.includeLayers=function(t){this.completeLayers=!1;for(var e,i=t.length,n=this.layers.length,s=0;s<i;s+=1)for(e=0;e<n;){if(this.layers[e].id==t[s].id){this.layers[e]=t[s];break}e+=1}},ei.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},ei.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},ei.prototype.buildElementParenting=function(t,e,i){i=i||[];for(var n=this.elements,s=this.layers,r=0,a=s.length;r<a;)s[r].ind==e&&(n[r]&&!0!==n[r]?void 0!==s[r].parent?(i.push(n[r]),n[r]._isParent=!0,this.buildElementParenting(t,s[r].parent,i)):(i.push(n[r]),n[r]._isParent=!0,t.setHierarchy(i)):(this.buildItem(r),this.addPendingElement(t))),r+=1},ei.prototype.addPendingElement=function(t){this.pendingElements.push(t)},dt(ei,ii),ii.prototype.createBase=function(t){return new ri(t,this.layerElement,this.globalData,this)},ii.prototype.createShape=function(t){return new ai(t,this.layerElement,this.globalData,this)},ii.prototype.createText=function(t){return new li(t,this.layerElement,this.globalData,this)},ii.prototype.createImage=function(t){return new vi(t,this.layerElement,this.globalData,this)},ii.prototype.createComp=function(t){return new yi(t,this.layerElement,this.globalData,this)},ii.prototype.createSolid=function(t){return new _i(t,this.layerElement,this.globalData,this)},ii.prototype.configAnimation=function(t){this.layerElement=document.createElementNS(x,"svg"),this.layerElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.layerElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.layerElement.setAttribute("width",t.w),this.layerElement.setAttribute("height",t.h),this.layerElement.style.width="100%",this.layerElement.style.height="100%"),this.renderConfig.className&&this.layerElement.setAttribute("class",this.renderConfig.className),this.layerElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.layerElement);var e=document.createElementNS(x,"defs");this.globalData.defs=e,this.layerElement.appendChild(e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.frameId=0,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h},this.data=t,this.globalData.frameRate=t.fr;var i=document.createElementNS(x,"clipPath"),n=document.createElementNS(x,"rect");n.setAttribute("width",t.w),n.setAttribute("height",t.h),n.setAttribute("x",0),n.setAttribute("y",0);var s="animationMask_"+A(10);i.setAttribute("id",s),i.appendChild(n);n=document.createElementNS(x,"g");n.setAttribute("clip-path","url("+w+"#"+s+")"),this.layerElement.appendChild(n),e.appendChild(i),this.layerElement=n,this.layers=t.layers,this.globalData.fontManager=new Ft,this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.elements=Array.apply(null,{length:t.layers.length})},ii.prototype.destroy=function(){this.animationItem.wrapper.innerHTML="",this.layerElement=null,this.globalData.defs=null;for(var t=this.layers?this.layers.length:0,e=0;e<t;e++)this.elements[e]&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},ii.prototype.updateContainerSize=function(){},ii.prototype.buildItem=function(t){var e,i=this.elements;i[t]||99==this.layers[t].ty||(i[t]=!0,e=this.createItem(this.layers[t]),i[t]=e,o&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(e),e.initExpressions()),this.appendElementInPos(e,t),this.layers[t].tt&&(this.elements[t-1]&&!0!==this.elements[t-1]?e.setMatte(i[t-1].layerId):(this.buildItem(t-1),this.addPendingElement(e))))},ii.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,i=this.elements.length;e<i;){if(this.elements[e]===t){t.setMatte(this.elements[e-1].layerId);break}e+=1}}},ii.prototype.renderFrame=function(t){if(this.renderedFrame!=t&&!this.destroyed){null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t;var e,i=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=i-1;0<=e;e--)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);for(e=i-1;0<=e;e--)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},ii.prototype.appendElementInPos=function(t,e){t=t.getBaseElement();if(t){for(var i,n=0;n<e;)this.elements[n]&&!0!==this.elements[n]&&this.elements[n].getBaseElement()&&(i=this.elements[n].getBaseElement()),n+=1;i?this.layerElement.insertBefore(t,i):this.layerElement.appendChild(t)}},ii.prototype.hide=function(){this.layerElement.style.display="none"},ii.prototype.show=function(){this.layerElement.style.display="block"},ii.prototype.searchExtraCompositions=function(t){for(var e,i=t.length,n=document.createElementNS(x,"g"),s=0;s<i;s+=1)t[s].xt&&((e=this.createComp(t[s],n,this.globalData.comp,null)).initExpressions(),this.globalData.projectInterface.registerComposition(e))},ni.prototype.getMaskProperty=function(t){return this.viewData[t].prop},ni.prototype.prepareFrame=function(){for(var t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue()},ni.prototype.renderFrame=function(t){for(var e,i=this.masksProperties.length,n=0;n<i;n++)(this.viewData[n].prop.mdf||this.firstFrame)&&this.drawPath(this.masksProperties[n],this.viewData[n].prop.v,this.viewData[n]),(this.viewData[n].op.mdf||this.firstFrame)&&this.viewData[n].elem.setAttribute("fill-opacity",this.viewData[n].op.v),"n"!==this.masksProperties[n].mode&&(this.viewData[n].invRect&&(this.element.finalTransform.mProp.mdf||this.firstFrame)&&(this.viewData[n].invRect.setAttribute("x",-t.props[12]),this.viewData[n].invRect.setAttribute("y",-t.props[13])),this.storedData[n].x&&(this.storedData[n].x.mdf||this.firstFrame)&&(e=this.storedData[n].expan,this.storedData[n].x.v<0?("erode"!==this.storedData[n].lastOperator&&(this.storedData[n].lastOperator="erode",this.storedData[n].elem.setAttribute("filter","url("+w+"#"+this.storedData[n].filterId+")")),e.setAttribute("radius",-this.storedData[n].x.v)):("dilate"!==this.storedData[n].lastOperator&&(this.storedData[n].lastOperator="dilate",this.storedData[n].elem.setAttribute("filter",null)),this.storedData[n].elem.setAttribute("stroke-width",2*this.storedData[n].x.v))));this.firstFrame=!1},ni.prototype.getMaskelement=function(){return this.maskElement},ni.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,t+=" h-"+this.globalData.compSize.w,t+=" v-"+this.globalData.compSize.h+" "},ni.prototype.drawPath=function(t,e,i){for(var n=" M"+e.v[0][0]+","+e.v[0][1],s=e._length,r=1;r<s;r+=1)n+=" C"+l(e.o[r-1][0])+","+l(e.o[r-1][1])+" "+l(e.i[r][0])+","+l(e.i[r][1])+" "+l(e.v[r][0])+","+l(e.v[r][1]);e.c&&1<s&&(n+=" C"+l(e.o[r-1][0])+","+l(e.o[r-1][1])+" "+l(e.i[0][0])+","+l(e.i[0][1])+" "+l(e.v[0][0])+","+l(e.v[0][1])),i.lastPath!==n&&(i.elem&&(e.c?t.inv?i.elem.setAttribute("d",this.solidPath+n):i.elem.setAttribute("d",n):i.elem.setAttribute("d","")),i.lastPath=n)},ni.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null},si.prototype.checkMasks=function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if("n"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},si.prototype.checkParenting=function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent)},si.prototype.prepareFrame=function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!0!==this.isVisible&&(this.elemMdf=!0,this.globalData.mdf=!0,this.isVisible=!0,this.firstFrame=!0,this.data.hasMask&&(this.maskManager.firstFrame=!0)):!1!==this.isVisible&&(this.elemMdf=!0,this.globalData.mdf=!0,this.isVisible=!1);for(var e=this.dynamicProperties.length,i=0;i<e;i+=1)(this.isVisible||this._isParent&&"transform"===this.dynamicProperties[i].type)&&(this.dynamicProperties[i].getValue(),this.dynamicProperties[i].mdf&&(this.elemMdf=!0,this.globalData.mdf=!0));return this.data.hasMask&&this.isVisible&&this.maskManager.prepareFrame(t*this.data.sr),this.currentFrameNum=t*this.data.sr,this.isVisible},si.prototype.globalToLocal=function(t){var e=[];e.push(this.finalTransform);for(var i=!0,n=this.comp;i;)n.finalTransform?(n.data.hasMask&&e.splice(0,0,n.finalTransform),n=n.comp):i=!1;for(var s,r=e.length,a=0;a<r;a+=1)s=e[a].mat.applyToPointArray(0,0,0),t=[t[0]-s[0],t[1]-s[1],0];return t},si.prototype.initExpressions=function(){this.layerInterface=LayerExpressionInterface(this),this.data.hasMask&&this.layerInterface.registerMaskInterface(this.maskManager);var t=EffectsExpressionInterface.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(t),0===this.data.ty||this.data.xt?this.compInterface=CompExpressionInterface(this):4===this.data.ty?this.layerInterface.shapeInterface=ShapeExpressionInterface.createShapeInterface(this.shapesData,this.itemsData,this.layerInterface):5===this.data.ty&&(this.layerInterface.textInterface=TextExpressionInterface(this))},si.prototype.setBlendMode=function(){var t="";switch(this.data.bm){case 1:t="multiply";break;case 2:t="screen";break;case 3:t="overlay";break;case 4:t="darken";break;case 5:t="lighten";break;case 6:t="color-dodge";break;case 7:t="color-burn";break;case 8:t="hard-light";break;case 9:t="soft-light";break;case 10:t="difference";break;case 11:t="exclusion";break;case 12:t="hue";break;case 13:t="saturation";break;case 14:t="color";break;case 15:t="luminosity"}(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},si.prototype.init=function(){this.data.sr||(this.data.sr=1),this.dynamicProperties=this.dynamicProperties||[],this.data.ef&&(this.effects=new EffectsManager(this.data,this,this.dynamicProperties)),this.hidden=!1,this.firstFrame=!0,this.isVisible=!1,this._isParent=!1,this.currentFrameNum=-99999,this.lastNum=-99999,this.data.ks&&(this.finalTransform={mProp:Ht.getProp(this,this.data.ks,2,null,this.dynamicProperties),matMdf:!1,opMdf:!1,mat:new S,opacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.finalTransform.op=this.finalTransform.mProp.o,this.transform=this.finalTransform.mProp,11!==this.data.ty&&this.createElements(),this.data.hasMask&&this.addMasks(this.data)),this.elemMdf=!1},si.prototype.getType=function(){return this.type},si.prototype.resetHierarchy=function(){this.hierarchy?this.hierarchy.length=0:this.hierarchy=[]},si.prototype.getHierarchy=function(){return this.hierarchy||(this.hierarchy=[]),this.hierarchy},si.prototype.setHierarchy=function(t){this.hierarchy=t},si.prototype.getLayerSize=function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}},si.prototype.hide=function(){},si.prototype.sourceRectAtTime=function(){return{top:0,left:0,width:100,height:100}},si.prototype.mHelper=new S,ft(si,ri),ri.prototype.createElements=function(){this.layerElement=document.createElementNS(x,"g"),this.transformedElement=this.layerElement,this.data.hasMask&&(this.maskedElement=this.layerElement);var t,e,i,n,s,r,a=null;this.data.td?3==this.data.td||1==this.data.td?((i=document.createElementNS(x,"mask")).setAttribute("id",this.layerId),i.setAttribute("mask-type",3==this.data.td?"luminance":"alpha"),i.appendChild(this.layerElement),this.globalData.defs.appendChild(a=i),Oe.maskType||1!=this.data.td||(i.setAttribute("mask-type","luminance"),t=A(10),e=Le.createFilter(t),this.globalData.defs.appendChild(e),e.appendChild(Le.createAlphaToLuminanceFilter()),(n=document.createElementNS(x,"g")).appendChild(this.layerElement),i.appendChild(a=n),n.setAttribute("filter","url("+w+"#"+t+")"))):2==this.data.td&&((s=document.createElementNS(x,"mask")).setAttribute("id",this.layerId),s.setAttribute("mask-type","alpha"),r=document.createElementNS(x,"g"),s.appendChild(r),t=A(10),e=Le.createFilter(t),(i=document.createElementNS(x,"feColorMatrix")).setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 -1 1"),e.appendChild(i),this.globalData.defs.appendChild(e),(i=document.createElementNS(x,"rect")).setAttribute("width",this.comp.data.w),i.setAttribute("height",this.comp.data.h),i.setAttribute("x","0"),i.setAttribute("y","0"),i.setAttribute("fill","#ffffff"),i.setAttribute("opacity","0"),r.setAttribute("filter","url("+w+"#"+t+")"),r.appendChild(i),r.appendChild(this.layerElement),a=r,Oe.maskType||(s.setAttribute("mask-type","luminance"),e.appendChild(Le.createAlphaToLuminanceFilter()),n=document.createElementNS(x,"g"),r.appendChild(i),n.appendChild(this.layerElement),r.appendChild(a=n)),this.globalData.defs.appendChild(s)):(this.data.hasMask||this.data.tt)&&this.data.tt?(this.matteElement=document.createElementNS(x,"g"),this.matteElement.appendChild(this.layerElement),a=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement,!this.data.ln&&!this.data.cl||4!==this.data.ty&&0!==this.data.ty||(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl)),0===this.data.ty&&(r=document.createElementNS(x,"clipPath"),(n=document.createElementNS(x,"path")).setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z"),s="cp_"+A(8),r.setAttribute("id",s),r.appendChild(n),this.globalData.defs.appendChild(r),this.checkMasks()?((r=document.createElementNS(x,"g")).setAttribute("clip-path","url("+w+"#"+s+")"),r.appendChild(this.layerElement),this.transformedElement=r,a?a.appendChild(this.transformedElement):this.baseElement=this.transformedElement):this.layerElement.setAttribute("clip-path","url("+w+"#"+s+")")),0!==this.data.bm&&this.setBlendMode(),this.layerElement!==this.parentContainer&&(this.placeholder=null),this.data.ef&&(this.effectsManager=new gi(this)),this.checkParenting()},ri.prototype.setBlendMode=si.prototype.setBlendMode,ri.prototype.renderFrame=function(t){if(3===this.data.ty||this.data.hd||!this.isVisible)return!1;var e;this.lastNum=this.currentFrameNum,this.finalTransform.opMdf=this.firstFrame||this.finalTransform.op.mdf,this.finalTransform.matMdf=this.firstFrame||this.finalTransform.mProp.mdf,this.finalTransform.opacity=this.finalTransform.op.v;var i=this.finalTransform.mat;if(this.hierarchy){var n=0,s=this.hierarchy.length;if(!this.finalTransform.matMdf)for(;n<s;){if(this.hierarchy[n].finalTransform.mProp.mdf){this.finalTransform.matMdf=!0;break}n+=1}if(this.finalTransform.matMdf)for(e=this.finalTransform.mProp.v.props,i.cloneFromProps(e),n=0;n<s;n+=1)e=this.hierarchy[n].finalTransform.mProp.v.props,i.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}else this.isVisible&&(i=this.finalTransform.mProp.v);return this.finalTransform.matMdf&&this.layerElement&&this.transformedElement.setAttribute("transform",i.to2dCSS()),this.finalTransform.opMdf&&this.layerElement&&(this.finalTransform.op.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.hidden&&this.isTransparent&&(this.isTransparent=!1,this.show()),this.transformedElement.setAttribute("opacity",this.finalTransform.op.v)),this.data.hasMask&&this.maskManager.renderFrame(i),this.effectsManager&&this.effectsManager.renderFrame(this.firstFrame),this.isVisible},ri.prototype.destroy=function(){this.layerElement=null,this.parentContainer=null,this.matteElement&&(this.matteElement=null),this.maskManager&&this.maskManager.destroy()},ri.prototype.getBaseElement=function(){return this.baseElement},ri.prototype.addMasks=function(t){this.maskManager=new ni(t,this,this.globalData)},ri.prototype.setMatte=function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+w+"#"+t+")")},ri.prototype.hide=function(){this.hidden||(this.layerElement.style.display="none",this.hidden=!0)},ri.prototype.show=function(){this.isVisible&&!this.isTransparent&&(this.hidden=!1,this.layerElement.style.display="block")},ft(ri,ai),ai.prototype.identityMatrix=new S,ai.prototype.lcEnum={1:"butt",2:"round",3:"square"},ai.prototype.ljEnum={1:"miter",2:"round",3:"butt"},ai.prototype.searchProcessedElement=function(t){for(var e=this.processedElements.length;e;)if(this.processedElements[--e].elem===t)return this.processedElements[e].pos;return 0},ai.prototype.addProcessedElement=function(t,e){for(var i=this.processedElements.length;i;)if(this.processedElements[--i].elem===t){this.processedElements[i].pos=e;break}0===i&&this.processedElements.push({elem:t,pos:e})},ai.prototype.buildExpressionInterface=function(){},ai.prototype.createElements=function(){var t;this._parent.createElements.call(this),this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,this.dynamicProperties,0,[],!0),this.data.hd&&!this.data.td||((t=this.layerElement).style.userSelect="none",t.style.MozUserSelect="none",t.style.webkitUserSelect="none",t.style.oUserSelect="none")},ai.prototype.setGradientData=function(t,e,i){var n="gr_"+A(10),s=1===e.t?document.createElementNS(x,"linearGradient"):document.createElementNS(x,"radialGradient");s.setAttribute("id",n),s.setAttribute("spreadMethod","pad"),s.setAttribute("gradientUnits","userSpaceOnUse");for(var r,a=[],o=4*e.g.p,l=0;l<o;l+=4)r=document.createElementNS(x,"stop"),s.appendChild(r),a.push(r);t.setAttribute("gf"===e.ty?"fill":"stroke","url(#"+n+")"),this.globalData.defs.appendChild(s),i.gf=s,i.cst=a},ai.prototype.setGradientOpacity=function(t,e,i){if(t.g.k.k[0].s&&t.g.k.k[0].s.length>4*t.g.p||t.g.k.k.length>4*t.g.p){var n,s,r=document.createElementNS(x,"mask"),a=document.createElementNS(x,"path");r.appendChild(a);var o="op_"+A(10),l="mk_"+A(10);r.setAttribute("id",l),(n=1===t.t?document.createElementNS(x,"linearGradient"):document.createElementNS(x,"radialGradient")).setAttribute("id",o),n.setAttribute("spreadMethod","pad"),n.setAttribute("gradientUnits","userSpaceOnUse");for(var h=(t.g.k.k[0].s||t.g.k.k).length,p=[],u=4*t.g.p;u<h;u+=2)(s=document.createElementNS(x,"stop")).setAttribute("stop-color","rgb(255,255,255)"),n.appendChild(s),p.push(s);return a.setAttribute("gf"===t.ty?"fill":"stroke","url(#"+o+")"),this.globalData.defs.appendChild(n),this.globalData.defs.appendChild(r),e.of=n,e.ost=p,i.msElem=a,l}},ai.prototype.createStyleElement=function(t,e,i){var n={},s={data:t,type:t.ty,d:"",ld:"",lvl:e,mdf:!1,closed:!1},r=document.createElementNS(x,"path");return n.o=Ht.getProp(this,t.o,0,.01,i),"st"!=t.ty&&"gs"!=t.ty||(r.setAttribute("stroke-linecap",this.lcEnum[t.lc]||"round"),r.setAttribute("stroke-linejoin",this.ljEnum[t.lj]||"round"),r.setAttribute("fill-opacity","0"),1==t.lj&&r.setAttribute("stroke-miterlimit",t.ml),n.w=Ht.getProp(this,t.w,0,null,i),t.d&&((e=Ht.getDashProp(this,t.d,"svg",i)).k||(r.setAttribute("stroke-dasharray",e.dasharray),r.setAttribute("stroke-dashoffset",e.dashoffset)),n.d=e)),"fl"==t.ty||"st"==t.ty?n.c=Ht.getProp(this,t.c,1,255,i):(n.g=Ht.getGradientProp(this,t.g,i),2==t.t&&(n.h=Ht.getProp(this,t.h,0,.01,i),n.a=Ht.getProp(this,t.a,0,y,i)),n.s=Ht.getProp(this,t.s,1,null,i),n.e=Ht.getProp(this,t.e,1,null,i),this.setGradientData(r,t,n,s),(i=this.setGradientOpacity(t,n,s))&&r.setAttribute("mask","url(#"+i+")")),n.elem=r,2===t.r&&r.setAttribute("fill-rule","evenodd"),t.ln&&r.setAttribute("id",t.ln),t.cl&&r.setAttribute("class",t.cl),s.pElem=r,this.stylesList.push(s),n.style=s,n},ai.prototype.createGroupElement=function(t){var e={it:[],prevViewData:[]},i=document.createElementNS(x,"g");return e.gr=i,t.ln&&e.gr.setAttribute("id",t.ln),e},ai.prototype.createTransformElement=function(t,e){return{transform:{op:Ht.getProp(this,t.o,0,.01,e),mProps:Ht.getProp(this,t,2,null,e)},elements:[]}},ai.prototype.createShapeElement=function(t,e,i,n){var s={elements:[],caches:[],styles:[],transformers:e,lStr:""},e=4;return"rc"==t.ty?e=5:"el"==t.ty?e=6:"sr"==t.ty&&(e=7),s.sh=_e.getShapeProp(this,t,e,n),s.lvl=i,this.shapes.push(s.sh),this.addShapeToModifiers(s),s};function oi(t,e,i,n){}function li(t,e,i,n,s){this.textSpans=[],this.renderType="svg",this._parent.constructor.call(this,t,e,i,n,s)}function hi(t,e){this.filterManager=e;var i=document.createElementNS(x,"feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","linearRGB"),i.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),i.setAttribute("result","f1"),t.appendChild(i),(i=document.createElementNS(x,"feColorMatrix")).setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),i.setAttribute("result","f2"),t.appendChild(i),this.matrixFilter=i,100===e.effectElements[2].p.v&&!e.effectElements[2].p.k||(e=document.createElementNS(x,"feMerge"),t.appendChild(e),(t=document.createElementNS(x,"feMergeNode")).setAttribute("in","SourceGraphic"),e.appendChild(t),(t=document.createElementNS(x,"feMergeNode")).setAttribute("in","f2"),e.appendChild(t))}function pi(t,e){this.filterManager=e;e=document.createElementNS(x,"feColorMatrix");e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),t.appendChild(e),this.matrixFilter=e}function ui(t,e){this.initialized=!1,this.filterManager=e,this.elem=t,this.paths=[]}function ci(t,e){this.filterManager=e;e=document.createElementNS(x,"feColorMatrix");e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","linearRGB"),e.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.setAttribute("result","f1"),t.appendChild(e);e=document.createElementNS(x,"feComponentTransfer");e.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(e),this.matrixFilter=e;t=document.createElementNS(x,"feFuncR");t.setAttribute("type","table"),e.appendChild(t),this.feFuncR=t;t=document.createElementNS(x,"feFuncG");t.setAttribute("type","table"),e.appendChild(t),this.feFuncG=t;t=document.createElementNS(x,"feFuncB");t.setAttribute("type","table"),e.appendChild(t),this.feFuncB=t}function fi(t,e){this.filterManager=e;var i=this.filterManager.effectElements,e=document.createElementNS(x,"feComponentTransfer");(i[9].p.k||0!==i[9].p.v||i[10].p.k||1!==i[10].p.v||i[11].p.k||1!==i[11].p.v||i[12].p.k||0!==i[12].p.v||i[13].p.k||1!==i[13].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",e)),(i[16].p.k||0!==i[16].p.v||i[17].p.k||1!==i[17].p.v||i[18].p.k||1!==i[18].p.v||i[19].p.k||0!==i[19].p.v||i[20].p.k||1!==i[20].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",e)),(i[23].p.k||0!==i[23].p.v||i[24].p.k||1!==i[24].p.v||i[25].p.k||1!==i[25].p.v||i[26].p.k||0!==i[26].p.v||i[27].p.k||1!==i[27].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",e)),(i[30].p.k||0!==i[30].p.v||i[31].p.k||1!==i[31].p.v||i[32].p.k||1!==i[32].p.v||i[33].p.k||0!==i[33].p.v||i[34].p.k||1!==i[34].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",e)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(e.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(e),e=document.createElementNS(x,"feComponentTransfer")),(i[2].p.k||0!==i[2].p.v||i[3].p.k||1!==i[3].p.v||i[4].p.k||1!==i[4].p.v||i[5].p.k||0!==i[5].p.v||i[6].p.k||1!==i[6].p.v)&&(e.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(e),this.feFuncRComposed=this.createFeFunc("feFuncR",e),this.feFuncGComposed=this.createFeFunc("feFuncG",e),this.feFuncBComposed=this.createFeFunc("feFuncB",e))}function di(t,e){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","400%"),t.setAttribute("height","400%"),this.filterManager=e;e=document.createElementNS(x,"feGaussianBlur");e.setAttribute("in","SourceAlpha"),e.setAttribute("result","drop_shadow_1"),e.setAttribute("stdDeviation","0"),this.feGaussianBlur=e,t.appendChild(e);e=document.createElementNS(x,"feOffset");e.setAttribute("dx","25"),e.setAttribute("dy","0"),e.setAttribute("in","drop_shadow_1"),e.setAttribute("result","drop_shadow_2"),this.feOffset=e,t.appendChild(e);e=document.createElementNS(x,"feFlood");e.setAttribute("flood-color","#00ff00"),e.setAttribute("flood-opacity","1"),e.setAttribute("result","drop_shadow_3"),this.feFlood=e,t.appendChild(e);e=document.createElementNS(x,"feComposite");e.setAttribute("in","drop_shadow_3"),e.setAttribute("in2","drop_shadow_2"),e.setAttribute("operator","in"),e.setAttribute("result","drop_shadow_4"),t.appendChild(e);e=document.createElementNS(x,"feMerge");t.appendChild(e),t=document.createElementNS(x,"feMergeNode"),e.appendChild(t),(t=document.createElementNS(x,"feMergeNode")).setAttribute("in","SourceGraphic"),this.feMergeNode=t,this.feMerge=e,this.originalNodeAdded=!1,e.appendChild(t)}function mi(t,e,i){this.initialized=!1,this.filterManager=e,this.filterElem=t,(this.elem=i).matteElement=document.createElementNS(x,"g"),i.matteElement.appendChild(i.layerElement),i.matteElement.appendChild(i.transformedElement),i.baseElement=i.matteElement}function gi(t){var e,i,n=t.data.ef.length,s=A(10),r=Le.createFilter(s),a=0;for(this.filters=[],e=0;e<n;e+=1)20===t.data.ef[e].ty?(a+=1,i=new hi(r,t.effects.effectElements[e]),this.filters.push(i)):21===t.data.ef[e].ty?(a+=1,i=new pi(r,t.effects.effectElements[e]),this.filters.push(i)):22===t.data.ef[e].ty?(i=new ui(t,t.effects.effectElements[e]),this.filters.push(i)):23===t.data.ef[e].ty?(a+=1,i=new ci(r,t.effects.effectElements[e]),this.filters.push(i)):24===t.data.ef[e].ty?(a+=1,i=new fi(r,t.effects.effectElements[e]),this.filters.push(i)):25===t.data.ef[e].ty?(a+=1,i=new di(r,t.effects.effectElements[e]),this.filters.push(i)):28===t.data.ef[e].ty&&(i=new mi(r,t.effects.effectElements[e],t),this.filters.push(i));a&&(t.globalData.defs.appendChild(r),t.layerElement.setAttribute("filter","url("+w+"#"+s+")"))}function yi(t,e,i,n,s){this._parent.constructor.call(this,t,e,i,n,s),this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?Array.apply(null,{length:this.layers.length}):[],this.data.tm&&(this.tm=Ht.getProp(this,this.data.tm,0,i.frameRate,this.dynamicProperties)),this.data.xt?(this.layerElement=document.createElementNS(x,"g"),this.buildAllItems()):i.progressiveLoad||this.buildAllItems()}function vi(t,e,i,n,s){this.assetData=i.getAssetData(t.refId),this._parent.constructor.call(this,t,e,i,n,s)}function _i(t,e,i,n,s){this._parent.constructor.call(this,t,e,i,n,s)}ai.prototype.setElementStyles=function(){for(var t=this.stylesList.length,e=[],i=0;i<t;i+=1)this.stylesList[i].closed||e.push(this.stylesList[i]);return e},ai.prototype.reloadShapes=function(){this.firstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,this.dynamicProperties,0,[],!0);var e,t=this.dynamicProperties.length;for(e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},ai.prototype.searchShapes=function(t,e,i,n,s,r,a,o){for(var l,h,p,u,c,f=[].concat(a),d=t.length-1,m=[],g=[],y=d;0<=y;--y){if((c=this.searchProcessedElement(t[y]))?e[y]=i[c-1]:t[y]._render=o,"fl"==t[y].ty||"st"==t[y].ty||"gf"==t[y].ty||"gs"==t[y].ty)c?e[y].style.closed=!1:e[y]=this.createStyleElement(t[y],r,s),t[y]._render&&n.appendChild(e[y].elem),m.push(e[y].style);else if("gr"==t[y].ty){if(c)for(h=e[y].it.length,l=0;l<h;l+=1)e[y].prevViewData[l]=e[y].it[l];else e[y]=this.createGroupElement(t[y]);this.searchShapes(t[y].it,e[y].it,e[y].prevViewData,e[y].gr,s,r+1,f,o),t[y]._render&&n.appendChild(e[y].gr)}else"tr"==t[y].ty?(c||(e[y]=this.createTransformElement(t[y],s)),p=e[y].transform,f.push(p)):"sh"==t[y].ty||"rc"==t[y].ty||"el"==t[y].ty||"sr"==t[y].ty?(c||(e[y]=this.createShapeElement(t[y],f,r,s)),e[y].elements=this.setElementStyles()):"tm"==t[y].ty||"rd"==t[y].ty||"ms"==t[y].ty?(c?(u=e[y]).closed=!1:((u=be.getModifier(t[y].ty)).init(this,t[y],s),e[y]=u,this.shapeModifiers.push(u)),g.push(u)):"rp"==t[y].ty&&(c?(u=e[y]).closed=!0:(u=be.getModifier(t[y].ty),(e[y]=u).init(this,t,y,e,s),this.shapeModifiers.push(u),o=!1),g.push(u));this.addProcessedElement(t[y],y+1)}for(d=m.length,y=0;y<d;y+=1)m[y].closed=!0;for(d=g.length,y=0;y<d;y+=1)g[y].closed=!0},ai.prototype.addShapeToModifiers=function(t){for(var e=this.shapeModifiers.length,i=0;i<e;i+=1)this.shapeModifiers[i].addShape(t)},ai.prototype.renderModifiers=function(){if(this.shapeModifiers.length){for(var t=this.shapes.length,e=0;e<t;e+=1)this.shapes[e].reset();for(e=(t=this.shapeModifiers.length)-1;0<=e;--e)this.shapeModifiers[e].processShapes(this.firstFrame)}},ai.prototype.renderFrame=function(t){if(!1!==this._parent.renderFrame.call(this,t)){this.hidden&&(this.layerElement.style.display="block",this.hidden=!1),this.renderModifiers();for(var e=this.stylesList.length,i=0;i<e;i+=1)this.stylesList[i].d="",this.stylesList[i].mdf=!1;for(this.renderShape(this.shapesData,this.itemsData,null),i=0;i<e;i+=1)"0"===this.stylesList[i].ld&&(this.stylesList[i].ld="1",this.stylesList[i].pElem.style.display="block"),(this.stylesList[i].mdf||this.firstFrame)&&(this.stylesList[i].pElem.setAttribute("d",this.stylesList[i].d),this.stylesList[i].msElem&&this.stylesList[i].msElem.setAttribute("d",this.stylesList[i].d));this.firstFrame&&(this.firstFrame=!1)}else this.hide()},ai.prototype.hide=function(){if(!this.hidden){this.layerElement.style.display="none";for(var t=this.stylesList.length-1;0<=t;--t)"0"!==this.stylesList[t].ld&&(this.stylesList[t].ld="0",this.stylesList[t].pElem.style.display="none",this.stylesList[t].pElem.parentNode&&(this.stylesList[t].parent=this.stylesList[t].pElem.parentNode));this.hidden=!0}},ai.prototype.renderShape=function(t,e,i){for(var n,s=t.length-1;0<=s;--s)"tr"==(n=t[s].ty)?((this.firstFrame||e[s].transform.op.mdf&&i)&&i.setAttribute("opacity",e[s].transform.op.v),(this.firstFrame||e[s].transform.mProps.mdf&&i)&&i.setAttribute("transform",e[s].transform.mProps.v.to2dCSS())):"sh"==n||"el"==n||"rc"==n||"sr"==n?this.renderPath(t[s],e[s]):"fl"==n?this.renderFill(t[s],e[s]):"gf"==n?this.renderGradient(t[s],e[s]):"gs"==n?(this.renderGradient(t[s],e[s]),this.renderStroke(t[s],e[s])):"st"==n?this.renderStroke(t[s],e[s]):"gr"==n&&this.renderShape(t[s].it,e[s].it,e[s].gr)},ai.prototype.buildShapeString=function(t,e,i,n){for(var s="",r=1;r<e;r+=1)1===r&&(s+=" M"+n.applyToPointStringified(t.v[0][0],t.v[0][1])),s+=" C"+n.applyToPointStringified(t.o[r-1][0],t.o[r-1][1])+" "+n.applyToPointStringified(t.i[r][0],t.i[r][1])+" "+n.applyToPointStringified(t.v[r][0],t.v[r][1]);return 1===e&&(s+=" M"+n.applyToPointStringified(t.v[0][0],t.v[0][1])),i&&e&&(s+=" C"+n.applyToPointStringified(t.o[r-1][0],t.o[r-1][1])+" "+n.applyToPointStringified(t.i[0][0],t.i[0][1])+" "+n.applyToPointStringified(t.v[0][0],t.v[0][1]),s+="z"),s},ai.prototype.renderPath=function(t,e){var i,n,s,r=e.elements.length,a=e.lvl;if(t._render)for(s=0;s<r;s+=1)if(e.elements[s].data._render){var o=e.sh.mdf||this.firstFrame,l="M0 0",h=e.sh.paths,p=h._length;if(e.elements[s].lvl<a){for(var u,c=this.mHelper.reset(),f=a-e.elements[s].lvl,d=e.transformers.length-1;0<f;)o=e.transformers[d].mProps.mdf||o,u=e.transformers[d].mProps.v.props,c.transform(u[0],u[1],u[2],u[3],u[4],u[5],u[6],u[7],u[8],u[9],u[10],u[11],u[12],u[13],u[14],u[15]),f--,d--;if(o){for(i=0;i<p;i+=1)(n=h.shapes[i])&&n._length&&(l+=this.buildShapeString(n,n._length,n.c,c));e.caches[s]=l}else l=e.caches[s]}else if(o){for(i=0;i<p;i+=1)(n=h.shapes[i])&&n._length&&(l+=this.buildShapeString(n,n._length,n.c,this.identityMatrix));e.caches[s]=l}else l=e.caches[s];e.elements[s].d+=l,e.elements[s].mdf=o||e.elements[s].mdf}else e.elements[s].mdf=!0},ai.prototype.renderFill=function(t,e){var i=e.style;(e.c.mdf||this.firstFrame)&&i.pElem.setAttribute("fill","rgb("+c(e.c.v[0])+","+c(e.c.v[1])+","+c(e.c.v[2])+")"),(e.o.mdf||this.firstFrame)&&i.pElem.setAttribute("fill-opacity",e.o.v)},ai.prototype.renderGradient=function(t,e){var i,n,s,r,a=e.gf,o=e.of,l=e.s.v,h=e.e.v;if((e.o.mdf||this.firstFrame)&&(n="gf"===t.ty?"fill-opacity":"stroke-opacity",e.elem.setAttribute(n,e.o.v)),(e.s.mdf||this.firstFrame)&&(n="x1"==(i=1===t.t?"x1":"cx")?"y1":"cy",a.setAttribute(i,l[0]),a.setAttribute(n,l[1]),o&&(o.setAttribute(i,l[0]),o.setAttribute(n,l[1]))),e.g.cmdf||this.firstFrame)for(var p=e.cst,u=e.g.c,c=p.length,f=0;f<c;f+=1)(s=p[f]).setAttribute("offset",u[4*f]+"%"),s.setAttribute("stop-color","rgb("+u[4*f+1]+","+u[4*f+2]+","+u[4*f+3]+")");if(o&&(e.g.omdf||this.firstFrame)){p=e.ost;var d=e.g.o;for(c=p.length,f=0;f<c;f+=1)(s=p[f]).setAttribute("offset",d[2*f]+"%"),s.setAttribute("stop-opacity",d[2*f+1])}1===t.t?(e.e.mdf||this.firstFrame)&&(a.setAttribute("x2",h[0]),a.setAttribute("y2",h[1]),o&&(o.setAttribute("x2",h[0]),o.setAttribute("y2",h[1]))):((e.s.mdf||e.e.mdf||this.firstFrame)&&(r=Math.sqrt(Math.pow(l[0]-h[0],2)+Math.pow(l[1]-h[1],2)),a.setAttribute("r",r),o&&o.setAttribute("r",r)),(e.e.mdf||e.h.mdf||e.a.mdf||this.firstFrame)&&(r=r||Math.sqrt(Math.pow(l[0]-h[0],2)+Math.pow(l[1]-h[1],2)),t=Math.atan2(h[1]-l[1],h[0]-l[0]),h=r*(1<=e.h.v?.99:e.h.v<=-1?-.99:e.h.v),r=Math.cos(t+e.a.v)*h+l[0],l=Math.sin(t+e.a.v)*h+l[1],a.setAttribute("fx",r),a.setAttribute("fy",l),o&&(o.setAttribute("fx",r),o.setAttribute("fy",l))))},ai.prototype.renderStroke=function(t,e){var i=e.style,n=e.d;n&&n.k&&(n.mdf||this.firstFrame)&&(i.pElem.setAttribute("stroke-dasharray",n.dasharray),i.pElem.setAttribute("stroke-dashoffset",n.dashoffset)),e.c&&(e.c.mdf||this.firstFrame)&&i.pElem.setAttribute("stroke","rgb("+c(e.c.v[0])+","+c(e.c.v[1])+","+c(e.c.v[2])+")"),(e.o.mdf||this.firstFrame)&&i.pElem.setAttribute("stroke-opacity",e.o.v),(e.w.mdf||this.firstFrame)&&(i.pElem.setAttribute("stroke-width",e.w.v),i.msElem&&i.msElem.setAttribute("stroke-width",e.w.v))},ai.prototype.destroy=function(){this._parent.destroy.call(this._parent),this.shapeData=null,this.itemsData=null,this.parentContainer=null,this.placeholder=null},oi.prototype.init=function(){this.lettersChangedFlag=!0,this.dynamicProperties=this.dynamicProperties||[],this.textAnimator=new Ne(this.data.t,this.renderType,this),this.textProperty=new Ve(this,this.data.t,this.dynamicProperties),this._parent.init.call(this),this.textAnimator.searchProperties(this.dynamicProperties)},oi.prototype.prepareFrame=function(t){this._parent.prepareFrame.call(this,t),(this.textProperty.mdf||this.textProperty.firstFrame)&&(this.buildNewText(),this.textProperty.firstFrame=!1)},oi.prototype.createPathShape=function(t,e){for(var i,n=e.length,s="",r=0;r<n;r+=1)i=e[r].ks.k,s+=this.buildShapeString(i,i.i.length,!0,t);return s},oi.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},oi.prototype.applyTextPropertiesToMatrix=function(t,e,i,n,s){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i])/2,0,0)}e.translate(n,s,0)},oi.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},oi.prototype.buildShapeString=ai.prototype.buildShapeString,oi.prototype.emptyProp=new Re,oi.prototype.destroy=function(){this._parent.destroy.call(this._parent)},ft(ri,li),dt(oi,li),li.prototype.createElements=function(){this._parent.createElements.call(this),this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=document.createElementNS(x,"text"))},li.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=Array.apply(null,{length:t?t.l.length:0}),t.fc?this.layerElement.setAttribute("fill",this.buildColor(t.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),t.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(t.sc)),this.layerElement.setAttribute("stroke-width",t.sw)),this.layerElement.setAttribute("font-size",t.s);var e,i,n=this.globalData.fontManager.getFontByName(t.f);n.fClass?this.layerElement.setAttribute("class",n.fClass):(this.layerElement.setAttribute("font-family",n.fFamily),e=t.fWeight,i=t.fStyle,this.layerElement.setAttribute("font-style",i),this.layerElement.setAttribute("font-weight",e));var s=t.l||[],r=this.globalData.fontManager.chars;if(y=s.length){var a,o=this.mHelper,l="",h=this.data.singleShape,p=0,u=0,c=!0,f=t.tr/1e3*t.s;if(h&&!r){var d=this.textContainer,m="";switch(t.j){case 1:m="end";break;case 2:m="middle";break;case 2:m="start"}d.setAttribute("text-anchor",m),d.setAttribute("letter-spacing",f);for(var g=t.t.split(String.fromCharCode(13)),y=g.length,u=t.ps?t.ps[1]+t.ascent:0,v=0;v<y;v+=1)(a=this.textSpans[v]||document.createElementNS(x,"tspan")).textContent=g[v],a.setAttribute("x",0),a.setAttribute("y",u),a.style.display="inherit",d.appendChild(a),this.textSpans[v]=a,u+=t.lh;this.layerElement.appendChild(d)}else{var _,b=this.textSpans.length;for(v=0;v<y;v+=1)r&&h&&0!==v||(a=v<b?this.textSpans[v]:document.createElementNS(x,r?"path":"text"),b<=v&&(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[v]=a,this.layerElement.appendChild(a)),a.style.display="inherit"),o.reset(),r?(o.scale(t.s/100,t.s/100),h&&(s[v].n&&(p=-f,u+=t.yOffset,u+=c?1:0,c=!1),this.applyTextPropertiesToMatrix(t,o,s[v].line,p,u),p+=s[v].l||0,p+=f),_=(_=(_=this.globalData.fontManager.getCharData(t.t.charAt(v),n.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily))&&_.data||{}).shapes?_.shapes[0].it:[],h?l+=this.createPathShape(o,_):a.setAttribute("d",this.createPathShape(o,_))):(a.textContent=s[v].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"));h&&a.setAttribute("d",l)}for(;v<this.textSpans.length;)this.textSpans[v].style.display="none",v+=1;this._sizeChanged=!0}},li.prototype.sourceRectAtTime=function(t){var e;return this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderLetters(),this._sizeChanged&&(this._sizeChanged=!1,e=this.layerElement.getBBox(),this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}),this.bbox},li.prototype.renderLetters=function(){if(!this.data.singleShape&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;for(var t,e,i=this.textAnimator.renderedLetters,n=this.textProperty.currentData.l,s=n.length,r=0;r<s;r+=1)n[r].n||(t=i[r],e=this.textSpans[r],t.mdf.m&&e.setAttribute("transform",t.m),t.mdf.o&&e.setAttribute("opacity",t.o),t.mdf.sw&&e.setAttribute("stroke-width",t.sw),t.mdf.sc&&e.setAttribute("stroke",t.sc),t.mdf.fc&&e.setAttribute("fill",t.fc))}},li.prototype.renderFrame=function(t){!1!==this._parent.renderFrame.call(this,t)?(this.hidden&&this.show(),this.firstFrame&&(this.firstFrame=!1),this.renderLetters()):this.hide()},hi.prototype.renderFrame=function(t){var e,i;(t||this.filterManager.mdf)&&(e=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,t=this.filterManager.effectElements[2].p.v/100,this.matrixFilter.setAttribute("values",i[0]-e[0]+" 0 0 0 "+e[0]+" "+(i[1]-e[1])+" 0 0 0 "+e[1]+" "+(i[2]-e[2])+" 0 0 0 "+e[2]+" 0 0 0 "+t+" 0"))},pi.prototype.renderFrame=function(t){var e;(t||this.filterManager.mdf)&&(e=this.filterManager.effectElements[2].p.v,t=this.filterManager.effectElements[6].p.v,this.matrixFilter.setAttribute("values","0 0 0 0 "+e[0]+" 0 0 0 0 "+e[1]+" 0 0 0 0 "+e[2]+" 0 0 0 "+t+" 0"))},ui.prototype.initialize=function(){var t,e,i,n,s=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(n=this.elem.maskManager.masksProperties.length,i=0):n=(i=this.filterManager.effectElements[0].p.v-1)+1,(e=document.createElementNS(x,"g")).setAttribute("fill","none"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-dashoffset",1);i<n;i+=1)t=document.createElementNS(x,"path"),e.appendChild(t),this.paths.push({p:t,m:i});if(3===this.filterManager.effectElements[10].p.v){var r=document.createElementNS(x,"mask"),a="stms_"+A(10);r.setAttribute("id",a),r.setAttribute("mask-type","alpha"),r.appendChild(e),this.elem.globalData.defs.appendChild(r);var o=document.createElementNS(x,"g");o.setAttribute("mask","url("+w+"#"+a+")"),s[0]&&o.appendChild(s[0]),this.elem.layerElement.appendChild(o),this.masker=r,e.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(s=this.elem.layerElement.children||this.elem.layerElement.childNodes;s.length;)this.elem.layerElement.removeChild(s[0]);this.elem.layerElement.appendChild(e),this.elem.layerElement.removeAttribute("mask"),e.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=e},ui.prototype.renderFrame=function(t){this.initialized||this.initialize();for(var e,i,n=this.paths.length,s=0;s<n;s+=1)if(h=this.elem.maskManager.viewData[this.paths[s].m],e=this.paths[s].p,(t||this.filterManager.mdf||h.prop.mdf)&&e.setAttribute("d",h.lastPath),t||this.filterManager.effectElements[9].p.mdf||this.filterManager.effectElements[4].p.mdf||this.filterManager.effectElements[7].p.mdf||this.filterManager.effectElements[8].p.mdf||h.prop.mdf){if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){for(var r=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)/100,a=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)/100,o=e.getTotalLength(),l="0 0 0 "+o*r+" ",h=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v/100,p=Math.floor(o*(a-r)/h),u=0;u<p;u+=1)l+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v/100+" ";l+="0 "+10*o+" 0 0"}else l="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v/100;e.setAttribute("stroke-dasharray",l)}(t||this.filterManager.effectElements[4].p.mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(t||this.filterManager.effectElements[6].p.mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),1!==this.filterManager.effectElements[10].p.v&&2!==this.filterManager.effectElements[10].p.v||(t||this.filterManager.effectElements[3].p.mdf)&&(i=this.filterManager.effectElements[3].p.v,this.pathMasker.setAttribute("stroke","rgb("+c(255*i[0])+","+c(255*i[1])+","+c(255*i[2])+")"))},ci.prototype.renderFrame=function(t){var e,i,n,s;(t||this.filterManager.mdf)&&(s=this.filterManager.effectElements[0].p.v,e=this.filterManager.effectElements[1].p.v,n=(i=this.filterManager.effectElements[2].p.v)[0]+" "+e[0]+" "+s[0],t=i[1]+" "+e[1]+" "+s[1],s=i[2]+" "+e[2]+" "+s[2],this.feFuncR.setAttribute("tableValues",n),this.feFuncG.setAttribute("tableValues",t),this.feFuncB.setAttribute("tableValues",s))},fi.prototype.createFeFunc=function(t,e){t=document.createElementNS(x,t);return t.setAttribute("type","table"),e.appendChild(t),t},fi.prototype.getTableValue=function(t,e,i,n,s){for(var r,a=0,o=Math.min(t,e),l=Math.max(t,e),h=Array.call(null,{length:256}),p=0,u=s-n,c=e-t;a<=256;)r=(r=a/256)<=o?c<0?s:n:l<=r?c<0?n:s:n+u*Math.pow((r-t)/c,1/i),h[p++]=r,a+=256/255;return h.join(" ")},fi.prototype.renderFrame=function(t){var e,i;(t||this.filterManager.mdf)&&(i=this.filterManager.effectElements,this.feFuncRComposed&&(t||i[2].p.mdf||i[3].p.mdf||i[4].p.mdf||i[5].p.mdf||i[6].p.mdf)&&(e=this.getTableValue(i[2].p.v,i[3].p.v,i[4].p.v,i[5].p.v,i[6].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||i[9].p.mdf||i[10].p.mdf||i[11].p.mdf||i[12].p.mdf||i[13].p.mdf)&&(e=this.getTableValue(i[9].p.v,i[10].p.v,i[11].p.v,i[12].p.v,i[13].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||i[16].p.mdf||i[17].p.mdf||i[18].p.mdf||i[19].p.mdf||i[20].p.mdf)&&(e=this.getTableValue(i[16].p.v,i[17].p.v,i[18].p.v,i[19].p.v,i[20].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||i[23].p.mdf||i[24].p.mdf||i[25].p.mdf||i[26].p.mdf||i[27].p.mdf)&&(e=this.getTableValue(i[23].p.v,i[24].p.v,i[25].p.v,i[26].p.v,i[27].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||i[30].p.mdf||i[31].p.mdf||i[32].p.mdf||i[33].p.mdf||i[34].p.mdf)&&(e=this.getTableValue(i[30].p.v,i[31].p.v,i[32].p.v,i[33].p.v,i[34].p.v),this.feFuncA.setAttribute("tableValues",e)))},di.prototype.renderFrame=function(t){var e,i;(t||this.filterManager.mdf)&&((t||this.filterManager.effectElements[4].p.mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),(t||this.filterManager.effectElements[0].p.mdf)&&(i=this.filterManager.effectElements[0].p.v,this.feFlood.setAttribute("flood-color",_(Math.round(255*i[0]),Math.round(255*i[1]),Math.round(255*i[2])))),(t||this.filterManager.effectElements[1].p.mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),(t||this.filterManager.effectElements[2].p.mdf||this.filterManager.effectElements[3].p.mdf)&&(e=this.filterManager.effectElements[3].p.v,i=(this.filterManager.effectElements[2].p.v-90)*y,t=e*Math.cos(i),i=e*Math.sin(i),this.feOffset.setAttribute("dx",t),this.feOffset.setAttribute("dy",i)))},mi.prototype.setElementAsMask=function(t,e){var i=document.createElementNS(x,"mask");i.setAttribute("id",e.layerId),i.setAttribute("mask-type","alpha"),i.appendChild(e.layerElement),t.setMatte(e.layerId),e.data.hd=!1,t.globalData.defs.appendChild(i)},mi.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,e=0,i=this.elem.comp.elements.length;e<i;)this.elem.comp.elements[e].data.ind===t&&this.setElementAsMask(this.elem,this.elem.comp.elements[e]),e+=1;this.initialized=!0},mi.prototype.renderFrame=function(){this.initialized||this.initialize()},gi.prototype.renderFrame=function(t){for(var e=this.filters.length,i=0;i<e;i+=1)this.filters[i].renderFrame(t)},ft(ri,yi),yi.prototype.hide=function(){if(!this.hidden){this._parent.hide.call(this);for(var t=this.elements.length,e=0;e<t;e+=1)this.elements[e]&&this.elements[e].hide()}},yi.prototype.prepareFrame=function(t){if(this._parent.prepareFrame.call(this,t),!1!==this.isVisible||this.data.xt){var e;this.tm?((e=this.tm.v)===this.data.op&&(e=this.data.op-1),this.renderedFrame=e):this.renderedFrame=t/this.data.sr;var i,n=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),i=0;i<n;i+=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st)}},yi.prototype.renderFrame=function(t){var e,t=this._parent.renderFrame.call(this,t),i=this.layers.length;if(!1!==t){for(this.hidden&&this.show(),e=0;e<i;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame();this.firstFrame&&(this.firstFrame=!1)}else this.hide()},yi.prototype.setElements=function(t){this.elements=t},yi.prototype.getElements=function(){return this.elements},yi.prototype.destroy=function(){this._parent.destroy.call(this._parent);for(var t=this.layers.length,e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},yi.prototype.checkLayers=ii.prototype.checkLayers,yi.prototype.buildItem=ii.prototype.buildItem,yi.prototype.buildAllItems=ii.prototype.buildAllItems,yi.prototype.buildElementParenting=ii.prototype.buildElementParenting,yi.prototype.createItem=ii.prototype.createItem,yi.prototype.createImage=ii.prototype.createImage,yi.prototype.createComp=ii.prototype.createComp,yi.prototype.createSolid=ii.prototype.createSolid,yi.prototype.createShape=ii.prototype.createShape,yi.prototype.createText=ii.prototype.createText,yi.prototype.createBase=ii.prototype.createBase,yi.prototype.appendElementInPos=ii.prototype.appendElementInPos,yi.prototype.checkPendingElements=ii.prototype.checkPendingElements,yi.prototype.addPendingElement=ii.prototype.addPendingElement,ft(ri,vi),vi.prototype.createElements=function(){var t=this.globalData.getAssetsPath(this.assetData);this._parent.createElements.call(this),this.innerElem=document.createElementNS(x,"image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio","xMidYMid slice"),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.maskedElement=this.innerElem,this.layerElement.appendChild(this.innerElem),this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl)},vi.prototype.renderFrame=function(t){!1!==this._parent.renderFrame.call(this,t)?(this.hidden&&this.show(),this.firstFrame&&(this.firstFrame=!1)):this.hide()},vi.prototype.destroy=function(){this._parent.destroy.call(this._parent),this.innerElem=null},ft(ri,_i),_i.prototype.createElements=function(){this._parent.createElements.call(this);var t=document.createElementNS(x,"rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t),this.innerElem=t,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl)},_i.prototype.renderFrame=vi.prototype.renderFrame,_i.prototype.destroy=vi.prototype.destroy;var bi,xi,wi,Ti,ki,Pi=(Vi={},bi=[],Ti=!(wi=xi=0),ki=0,setTimeout(Ii,0),Vi.registerAnimation=Si,Vi.loadAnimation=function(t){var e=new Oi;return Mi(e,null),e.setParams(t),e},Vi.setSpeed=function(t,e){for(var i=0;i<wi;i+=1)bi[i].animation.setSpeed(t,e)},Vi.setDirection=function(t,e){for(var i=0;i<wi;i+=1)bi[i].animation.setDirection(t,e)},Vi.play=function(t){for(var e=0;e<wi;e+=1)bi[e].animation.play(t)},Vi.moveFrame=function(t,e){var i;for(xi=Date.now(),i=0;i<wi;i+=1)bi[i].animation.moveFrame(t,e)},Vi.pause=function(t){for(var e=0;e<wi;e+=1)bi[e].animation.pause(t)},Vi.stop=function(t){for(var e=0;e<wi;e+=1)bi[e].animation.stop(t)},Vi.togglePause=function(t){for(var e=0;e<wi;e+=1)bi[e].animation.togglePause(t)},Vi.searchAnimations=function(t,e,i){for(var n,s=document.getElementsByClassName("bodymovin"),r=s.length,a=0;a<r;a+=1)i&&s[a].setAttribute("data-bm-type",i),Si(s[a],t);e&&0===r&&(i=i||"svg",(n=document.getElementsByTagName("body")[0]).innerHTML="",(e=document.createElement("div")).style.width="100%",e.style.height="100%",e.setAttribute("data-bm-type",i),n.appendChild(e),Si(e,t))},Vi.resize=function(){for(var t=0;t<wi;t+=1)bi[t].animation.resize()},Vi.start=Ii,Vi.goToAndStop=function(t,e,i){for(var n=0;n<wi;n+=1)bi[n].animation.goToAndStop(t,e,i)},Vi.destroy=function(t){for(var e=wi-1;0<=e;--e)bi[e].animation.destroy(t)},Vi);function Ai(t){for(var e=0,i=t.target;e<wi;)bi[e].animation===i&&(bi.splice(e,1),--e,--wi,i.isPaused||Ci()),e+=1}function Si(t,e){if(!t)return null;for(var i=0;i<wi;){if(bi[i].elem==t&&null!==bi[i].elem)return bi[i].animation;i+=1}var n=new Oi;return Mi(n,t),n.setData(t,e),n}function Ei(){ki+=1,Ti&&(Ti=!1,a.requestAnimationFrame(Fi))}function Ci(){0===--ki&&(Ti=!0)}function Mi(t,e){t.addEventListener("destroy",Ai),t.addEventListener("_active",Ei),t.addEventListener("_idle",Ci),bi.push({elem:e,animation:t}),wi+=1}function Di(t){for(var e=t-xi,i=0;i<wi;i+=1)bi[i].animation.advanceTime(e);xi=t,Ti||a.requestAnimationFrame(Di)}function Fi(t){xi=t,a.requestAnimationFrame(Di)}function Ii(){a.requestAnimationFrame(Fi)}var Oi=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.pendingElements=0,this.playCount=0,this.prerenderFramesFlag=!0,this.animationData={},this.layers=[],this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=A(10),this.scaleMode="fit",this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.subframeEnabled=e,this.segments=[],this.pendingSegment=!1,this._idle=!0,this.projectInterface={}};function Li(){this.renderer.globalData.fontManager.loaded?(kt.completeData(this.animationData,this.renderer.globalData.fontManager),this.checkLoaded()):setTimeout(Li.bind(this),20)}Oi.prototype.setParams=function(t){var e=this;t.context&&(this.context=t.context),(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var i,n=t.animType||t.renderer||"svg";switch(n){case"canvas":this.renderer=new CanvasRenderer(this,t.rendererSettings);break;case"svg":this.renderer=new ii(this,t.rendererSettings);break;default:this.renderer=new HybridRenderer(this,t.rendererSettings)}this.renderer.setProjectInterface(this.projectInterface),this.animType=n,""===t.loop||null===t.loop||(!1===t.loop?this.loop=!1:!0===t.loop?this.loop=!0:this.loop=parseInt(t.loop)),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name||"",this.prerenderFramesFlag=!("prerender"in t)||t.prerender,this.autoloadSegments=!t.hasOwnProperty("autoloadSegments")||t.autoloadSegments,t.animationData?e.configAnimation(t.animationData):t.path&&("json"!=t.path.substr(-4)&&("/"!=t.path.substr(-1,1)&&(t.path+="/"),t.path+="data.json"),i=new XMLHttpRequest,-1!=t.path.lastIndexOf("\\")?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.assetsPath=t.assetsPath,this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),i.open("GET",t.path,!0),i.send(),i.onreadystatechange=function(){if(4==i.readyState)if(200==i.status)e.configAnimation(JSON.parse(i.responseText));else try{var t=JSON.parse(i.responseText);e.configAnimation(t)}catch(t){}})},Oi.prototype.setData=function(t,e){var i={wrapper:t,animationData:e?"object"==typeof e?e:JSON.parse(e):null},e=t.attributes;i.path=e.getNamedItem("data-animation-path")?e.getNamedItem("data-animation-path").value:e.getNamedItem("data-bm-path")?e.getNamedItem("data-bm-path").value:e.getNamedItem("bm-path")?e.getNamedItem("bm-path").value:"",i.animType=e.getNamedItem("data-anim-type")?e.getNamedItem("data-anim-type").value:e.getNamedItem("data-bm-type")?e.getNamedItem("data-bm-type").value:e.getNamedItem("bm-type")?e.getNamedItem("bm-type").value:e.getNamedItem("data-bm-renderer")?e.getNamedItem("data-bm-renderer").value:e.getNamedItem("bm-renderer")?e.getNamedItem("bm-renderer").value:"canvas";t=e.getNamedItem("data-anim-loop")?e.getNamedItem("data-anim-loop").value:e.getNamedItem("data-bm-loop")?e.getNamedItem("data-bm-loop").value:e.getNamedItem("bm-loop")?e.getNamedItem("bm-loop").value:"";""===t||(i.loop="false"!==t&&("true"===t||parseInt(t)));t=e.getNamedItem("data-anim-autoplay")?e.getNamedItem("data-anim-autoplay").value:e.getNamedItem("data-bm-autoplay")?e.getNamedItem("data-bm-autoplay").value:!e.getNamedItem("bm-autoplay")||e.getNamedItem("bm-autoplay").value;i.autoplay="false"!==t,i.name=e.getNamedItem("data-name")?e.getNamedItem("data-name").value:e.getNamedItem("data-bm-name")?e.getNamedItem("data-bm-name").value:e.getNamedItem("bm-name")?e.getNamedItem("bm-name").value:"","false"===(e.getNamedItem("data-anim-prerender")?e.getNamedItem("data-anim-prerender").value:e.getNamedItem("data-bm-prerender")?e.getNamedItem("data-bm-prerender").value:e.getNamedItem("bm-prerender")?e.getNamedItem("bm-prerender").value:"")&&(i.prerender=!1),this.setParams(i)},Oi.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip),this.animationData.tf=this.totalFrames);for(var e,i=this.animationData.layers,n=i.length,s=t.layers,r=s.length,a=0;a<r;a+=1)for(e=0;e<n;){if(i[e].id==s[a].id){i[e]=s[a];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(n=t.assets.length,e=0;e<n;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,kt.completeData(this.animationData,this.renderer.globalData.fontManager),this.renderer.includeLayers(t.layers),o&&o.initExpressions(this),this.renderer.renderFrame(null),this.loadNextSegment()},Oi.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.animationData.tf);t=t.shift();this.timeCompleted=t.time*this.frameRate;var e=new XMLHttpRequest,i=this,t=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,e.open("GET",t,!0),e.send(),e.onreadystatechange=function(){if(4==e.readyState)if(200==e.status)i.includeLayers(JSON.parse(e.responseText));else try{var t=JSON.parse(e.responseText);i.includeLayers(t)}catch(t){}}},Oi.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.animationData.tf),this.loadNextSegment()},Oi.prototype.configAnimation=function(t){var e=this;this.renderer&&this.renderer.destroyed||(this.animationData=t,this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.animationData.tf=this.totalFrames,this.renderer.configAnimation(t),t.assets||(t.assets=[]),t.comps&&(t.assets=t.assets.concat(t.comps),t.comps=null),this.renderer.searchExtraCompositions(t.assets),this.layers=this.animationData.layers,this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.firstFrame=Math.round(this.animationData.ip),this.frameMult=this.animationData.fr/1e3,this.trigger("config_ready"),this.imagePreloader=new Se,this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(t.assets,function(t){t||e.trigger("loaded_images")}),this.loadSegments(),this.updaFrameModifier(),this.renderer.globalData.fontManager?this.waitForFontsLoaded():(kt.completeData(this.animationData,this.renderer.globalData.fontManager),this.checkLoaded()))},Oi.prototype.waitForFontsLoaded=function(){Li.bind(this)()},Oi.prototype.addPendingElement=function(){this.pendingElements+=1},Oi.prototype.elementLoaded=function(){this.pendingElements--,this.checkLoaded()},Oi.prototype.checkLoaded=function(){0===this.pendingElements&&(o&&o.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.isLoaded=!0,this.gotoFrame(),this.autoplay&&this.play())},Oi.prototype.resize=function(){this.renderer.updateContainerSize()},Oi.prototype.setSubframe=function(t){this.subframeEnabled=!!t},Oi.prototype.gotoFrame=function(){this.subframeEnabled?this.currentFrame=this.currentRawFrame:this.currentFrame=Math.floor(this.currentRawFrame),this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame()},Oi.prototype.renderFrame=function(){!1!==this.isLoaded&&this.renderer.renderFrame(this.currentFrame+this.firstFrame)},Oi.prototype.play=function(t){t&&this.name!=t||!0===this.isPaused&&(this.isPaused=!1,this._idle&&(this._idle=!1,this.trigger("_active")))},Oi.prototype.pause=function(t){t&&this.name!=t||!1===this.isPaused&&(this.isPaused=!0,this.pendingSegment||(this._idle=!0,this.trigger("_idle")))},Oi.prototype.togglePause=function(t){t&&this.name!=t||(!0===this.isPaused?this.play():this.pause())},Oi.prototype.stop=function(t){t&&this.name!=t||(this.pause(),this.currentFrame=this.currentRawFrame=0,this.playCount=0,this.gotoFrame())},Oi.prototype.goToAndStop=function(t,e,i){i&&this.name!=i||(e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier),this.pause())},Oi.prototype.goToAndPlay=function(t,e,i){this.goToAndStop(t,e,i),this.play()},Oi.prototype.advanceTime=function(t){if(this.pendingSegment)return this.pendingSegment=!1,this.adjustSegment(this.segments.shift()),void(this.isPaused&&this.play());!0!==this.isPaused&&!1!==this.isLoaded&&this.setCurrentRawFrameValue(this.currentRawFrame+t*this.frameModifier)},Oi.prototype.updateAnimation=function(t){this.setCurrentRawFrameValue(this.totalFrames*t)},Oi.prototype.moveFrame=function(t,e){e&&this.name!=e||this.setCurrentRawFrameValue(this.currentRawFrame+t)},Oi.prototype.adjustSegment=function(t){this.playCount=0,t[1]<t[0]?(0<this.frameModifier&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.01)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.firstFrame=t[0],this.setCurrentRawFrameValue(0)),this.trigger("segmentStart")},Oi.prototype.setSegment=function(t,e){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?i=t:this.currentRawFrame+this.firstFrame>e&&(i=e-t-.01)),this.firstFrame=t,this.totalFrames=e-t,-1!==i&&this.goToAndStop(i,!0)},Oi.prototype.playSegments=function(t,e){if("object"==typeof t[0])for(var i=t.length,n=0;n<i;n+=1)this.segments.push(t[n]);else this.segments.push(t);e&&this.adjustSegment(this.segments.shift()),this.isPaused&&this.play()},Oi.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip*this.frameRate,Math.floor(this.animationData.op-this.animationData.ip+this.animationData.ip*this.frameRate)]),t&&this.adjustSegment(this.segments.shift())},Oi.prototype.checkSegments=function(){this.segments.length&&(this.pendingSegment=!0)},Oi.prototype.remove=function(t){t&&this.name!=t||this.renderer.destroy()},Oi.prototype.destroy=function(t){t&&this.name!=t||this.renderer&&this.renderer.destroyed||(this.renderer.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=this.onLoopComplete=this.onComplete=this.onSegmentStart=this.onDestroy=null)},Oi.prototype.setCurrentRawFrameValue=function(t){if(this.currentRawFrame=t,this.currentRawFrame>=this.totalFrames){if(this.checkSegments(),!1===this.loop)return this.currentRawFrame=this.totalFrames-.01,this.gotoFrame(),this.pause(),void this.trigger("complete");if(this.trigger("loopComplete"),this.playCount+=1,!0!==this.loop&&this.playCount==this.loop||this.pendingSegment)return this.currentRawFrame=this.totalFrames-.01,this.gotoFrame(),this.pause(),void this.trigger("complete");this.currentRawFrame=this.currentRawFrame%this.totalFrames}else if(this.currentRawFrame<0)return this.checkSegments(),--this.playCount,this.playCount<0&&(this.playCount=0),!1===this.loop||this.pendingSegment?(this.currentRawFrame=0,this.gotoFrame(),this.pause(),void this.trigger("complete")):(this.trigger("loopComplete"),this.currentRawFrame=(this.totalFrames+this.currentRawFrame)%this.totalFrames,void this.gotoFrame());this.gotoFrame()},Oi.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},Oi.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},Oi.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection},Oi.prototype.getPath=function(){return this.path},Oi.prototype.getAssetsPath=function(t){var e,i="";return this.assetsPath?(-1!==(e=t.p).indexOf("images/")&&(e=e.split("/")[1]),i=this.assetsPath+e):(i=this.path,i+=t.u||"",i+=t.p),i},Oi.prototype.getAssetData=function(t){for(var e=0,i=this.assets.length;e<i;){if(t==this.assets[e].id)return this.assets[e];e+=1}},Oi.prototype.hide=function(){this.renderer.hide()},Oi.prototype.show=function(){this.renderer.show()},Oi.prototype.getAssets=function(){return this.assets},Oi.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new r(t,this.currentFrame,this.totalFrames,this.frameMult));break;case"loopComplete":this.triggerEvent(t,new p(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new h(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new u(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new f(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new r(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new p(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new h(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new u(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new f(t,this))},Oi.prototype.addEventListener=function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},Oi.prototype.removeEventListener=function(t,e){if(e){if(this._cbs[t]){for(var i=0,n=this._cbs[t].length;i<n;)this._cbs[t][i]===e&&(this._cbs[t].splice(i,1),--i,--n),i+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null},Oi.prototype.triggerEvent=function(t,e){if(this._cbs[t])for(var i=this._cbs[t].length,n=0;n<i;n++)this._cbs[t][n](e)};var Ni={};function Ri(){!0===zi?Pi.searchAnimations(Bi,zi,qi):Pi.searchAnimations()}Ni.play=function(t){Pi.play(t)},Ni.pause=function(t){Pi.pause(t)},Ni.setLocationHref=function(t){w=t},Ni.togglePause=function(t){Pi.togglePause(t)},Ni.setSpeed=function(t,e){Pi.setSpeed(t,e)},Ni.setDirection=function(t,e){Pi.setDirection(t,e)},Ni.stop=function(t){Pi.stop(t)},Ni.moveFrame=function(t){Pi.moveFrame(t)},Ni.searchAnimations=Ri,Ni.registerAnimation=function(t){return Pi.registerAnimation(t)},Ni.loadAnimation=function(t){return!0===zi&&(t.animationData=JSON.parse(Bi)),Pi.loadAnimation(t)},Ni.setSubframeRendering=function(t){e=t},Ni.resize=function(){Pi.resize()},Ni.start=function(){Pi.start()},Ni.goToAndStop=function(t,e,i){Pi.goToAndStop(t,e,i)},Ni.destroy=function(t){return Pi.destroy(t)},Ni.setQuality=function(t){if("string"==typeof t)switch(t){case"high":P=200;break;case"medium":P=50;break;case"low":P=10}else!isNaN(t)&&1<t&&(P=t);i(!(50<=P))},Ni.inBrowser=function(){return"undefined"!=typeof navigator},Ni.installPlugin=function(t,e){"expressions"===t&&(o=e)},Ni.__getFactory=function(t){switch(t){case"propertyFactory":return Ht;case"shapePropertyFactory":return _e;case"matrix":return S}},Ni.version="4.13.0";var Vi,ji,zi="__[STANDALONE]__",Bi="__[ANIMATIONDATA]__",qi="";zi&&(Vi=document.getElementsByTagName("script"),ji=(Vi[Vi.length-1]||{src:""}).src.replace(/^[^\?]+\??/,""),qi=function(t){for(var e=ji.split("&"),i=0;i<e.length;i++){var n=e[i].split("=");if(decodeURIComponent(n[0])==t)return decodeURIComponent(n[1])}}("renderer"));var Hi=setInterval(function(){"complete"===document.readyState&&(clearInterval(Hi),Ri())},100);return Ni}),function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():t.PhotoSwipe=e()}(this,function(){"use strict";return function(c,i,t,e){var f={features:null,bind:function(t,e,i,n){var s=(n?"remove":"add")+"EventListener";e=e.split(" ");for(var r=0;r<e.length;r++)e[r]&&t[s](e[r],i,!1)},isArray:function(t){return t instanceof Array},createEl:function(t,e){e=document.createElement(e||"div");return t&&(e.className=t),e},getScrollY:function(){var t=window.pageYOffset;return void 0!==t?t:document.documentElement.scrollTop},unbind:function(t,e,i){f.bind(t,e,i,!0)},removeClass:function(t,e){e=new RegExp("(\\s|^)"+e+"(\\s|$)");t.className=t.className.replace(e," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")},addClass:function(t,e){f.hasClass(t,e)||(t.className+=(t.className?" ":"")+e)},hasClass:function(t,e){return t.className&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(t.className)},getChildByClass:function(t,e){for(var i=t.firstChild;i;){if(f.hasClass(i,e))return i;i=i.nextSibling}},arraySearch:function(t,e,i){for(var n=t.length;n--;)if(t[n][i]===e)return n;return-1},extend:function(t,e,i){for(var n in e)e.hasOwnProperty(n)&&(i&&t.hasOwnProperty(n)||(t[n]=e[n]))},easing:{sine:{out:function(t){return Math.sin(t*(Math.PI/2))},inOut:function(t){return-(Math.cos(Math.PI*t)-1)/2}},cubic:{out:function(t){return--t*t*t+1}}},detectFeatures:function(){if(f.features)return f.features;var t,e,i=f.createEl().style,n="",s={};s.oldIE=document.all&&!document.addEventListener,s.touch="ontouchstart"in window,window.requestAnimationFrame&&(s.raf=window.requestAnimationFrame,s.caf=window.cancelAnimationFrame),s.pointerEvent=navigator.pointerEnabled||navigator.msPointerEnabled,s.pointerEvent||(t=navigator.userAgent,!/iP(hone|od)/.test(navigator.platform)||(e=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/))&&0<e.length&&1<=(e=parseInt(e[1],10))&&e<8&&(s.isOldIOSPhone=!0),e=(e=t.match(/Android\s([0-9\.]*)/))?e[1]:0,1<=(e=parseFloat(e))&&(e<4.4&&(s.isOldAndroid=!0),s.androidVersion=e),s.isMobileOpera=/opera mini|opera mobi/i.test(t));for(var r,a,o,l=["transform","perspective","animationName"],h=["","webkit","Moz","ms","O"],p=0;p<4;p++){for(var n=h[p],u=0;u<3;u++)r=l[u],a=n+(n?r.charAt(0).toUpperCase()+r.slice(1):r),!s[r]&&a in i&&(s[r]=a);n&&!s.raf&&(n=n.toLowerCase(),s.raf=window[n+"RequestAnimationFrame"],s.raf&&(s.caf=window[n+"CancelAnimationFrame"]||window[n+"CancelRequestAnimationFrame"]))}return s.raf||(o=0,s.raf=function(t){var e=(new Date).getTime(),i=Math.max(0,16-(e-o)),n=window.setTimeout(function(){t(e+i)},i);return o=e+i,n},s.caf=function(t){clearTimeout(t)}),s.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,f.features=s}};f.detectFeatures(),f.features.oldIE&&(f.bind=function(t,e,i,n){e=e.split(" ");for(var s,r=(n?"detach":"attach")+"Event",a=function(){i.handleEvent.call(i)},o=0;o<e.length;o++)if(s=e[o])if("object"==typeof i&&i.handleEvent){if(n){if(!i["oldIE"+s])return!1}else i["oldIE"+s]=a;t[r]("on"+s,i["oldIE"+s])}else t[r]("on"+s,i)});var d=this,r=25,m={allowPanToNext:!0,spacing:.12,bgOpacity:1,mouseUsed:!1,loop:!0,pinchToClose:!0,closeOnScroll:!0,closeOnVerticalDrag:!0,verticalDragRange:.75,hideAnimationDuration:333,showAnimationDuration:333,showHideOpacity:!1,focus:!0,escKey:!0,arrowKeys:!0,mainScrollEndFriction:.35,panEndFriction:.35,isClickableElement:function(t){return"A"===t.tagName},getDoubleTapZoom:function(t,e){return t||e.initialZoomLevel<.7?1:1.33},maxSpreadZoom:1.33,modal:!0,scaleMode:"fit"};f.extend(m,e);function n(){return{x:0,y:0}}function s(t,e){f.extend(d,e.publicMethods),Mt.push(t)}function a(t){var e=$e();return e-1<t?t-e:t<0?e+t:t}function o(t,e){return It[t]||(It[t]=[]),It[t].push(e)}function l(t,e,i,n){return n===d.currItem.initialZoomLevel?(i[t]=d.currItem.initialPosition[t],!0):(i[t]=qt(t,n),i[t]>e.min[t]?(i[t]=e.min[t],!0):i[t]<e.max[t]&&(i[t]=e.max[t],!0))}function h(t){var e="";m.escKey&&27===t.keyCode?e="close":m.arrowKeys&&(37===t.keyCode?e="prev":39===t.keyCode&&(e="next")),e&&(t.ctrlKey||t.altKey||t.shiftKey||t.metaKey||(t.preventDefault?t.preventDefault():t.returnValue=!1,d[e]()))}function p(t){t&&(at||rt||dt||et)&&(t.preventDefault(),t.stopPropagation())}function u(){d.setScrollOffset(0,f.getScrollY())}function g(t){var e;"mousedown"===t.type&&0<t.button||(Ge?t.preventDefault():it&&"mousedown"===t.type||(Ae(t,!0)&&t.preventDefault(),Ot("pointerDown"),B&&((e=f.arraySearch(he,t.pointerId,"id"))<0&&(e=he.length),he[e]={x:t.pageX,y:t.pageY,id:t.pointerId}),t=(e=Oe(t)).length,ht=null,te(),nt&&1!==t||(nt=gt=!0,f.bind(window,P,d),tt=_t=yt=et=lt=at=st=rt=!1,mt=null,Ot("firstTouchStart",e),Ht(wt,Tt),xt.x=xt.y=0,Ht(oe,e[0]),Ht(le,oe),pe.x=St.x*Pt,ue=[{x:oe.x,y:oe.y}],Q=K=Lt(),Ut(E,!0),xe(),we()),!pt&&1<t&&!dt&&!lt&&(C=E,pt=st=!(rt=!1),xt.y=xt.x=0,Ht(wt,Tt),Ht(se,e[0]),Ht(re,e[1]),Ee(se,re,ve),ye.x=Math.abs(ve.x)-Tt.x,ye.y=Math.abs(ve.y)-Tt.y,ut=be(se,re))))}function y(t){var e,i;t.preventDefault(),!B||-1<(e=f.arraySearch(he,t.pointerId,"id"))&&((i=he[e]).x=t.pageX,i.y=t.pageY),nt&&(i=Oe(t),mt||at||pt?ht=i:ge.x!==St.x*Pt?mt="h":(t=Math.abs(i[0].x-oe.x)-Math.abs(i[0].y-oe.y),Math.abs(t)>=ne&&(mt=0<t?"h":"v",ht=i)))}function v(t){if(Z.isOldAndroid){if(it&&"mouseup"===t.type)return;-1<t.type.indexOf("touch")&&(clearTimeout(it),it=setTimeout(function(){it=0},600))}Ot("pointerUp"),Ae(t,!1)&&t.preventDefault(),!B||-1<(i=f.arraySearch(he,t.pointerId,"id"))&&(r=he.splice(i,1)[0],navigator.pointerEnabled?r.type=t.pointerType||"mouse":(r.type={4:"mouse",2:"touch",3:"pen"}[t.pointerType],r.type||(r.type=t.pointerType||"mouse")));var e=Oe(t),i=e.length;if(2===(i="mouseup"===t.type?0:i))return!(ht=null);1===i&&Ht(le,e[0]),0!==i||mt||dt||(r||("mouseup"===t.type?r={x:t.pageX,y:t.pageY,type:"mouse"}:t.changedTouches&&t.changedTouches[0]&&(r={x:t.changedTouches[0].pageX,y:t.changedTouches[0].pageY,type:"touch"})),Ot("touchRelease",t,r));var n,s,r=-1;if(0===i&&(nt=!1,f.unbind(window,P,d),xe(),pt?r=0:-1!==me&&(r=Lt()-me)),me=1===i?Lt():-1,r=-1!==r&&r<150?"zoom":"swipe",pt&&i<2&&(pt=!1,1===i&&(r="zoomPointerUp"),Ot("zoomGestureEnded")),ht=null,at||rt||dt||et)if(te(),(J=J||Re()).calculateSwipeSpeed("x"),et)Me()<m.verticalDragRange?d.close():(n=Tt.y,s=vt,ee("verticalDrag",0,1,300,f.easing.cubic.out,function(t){Tt.y=(d.currItem.initialPosition.y-n)*t+n,Nt((1-s)*t+s),Vt()}),Ot("onVerticalDrag",1));else{if((lt||dt)&&0===i){if(je(r,J))return;r="zoomPointerUp"}dt||("swipe"===r?!lt&&E>d.currItem.fitRatio&&Ve(J):Be())}}var _,b,x,w,T,k,P,A,S,E,C,M,D,F,I,O,L,N,R,V,j,z,B,q,H,W,X,Y,U,G,Z,$,K,Q,J,tt,et,it,nt,st,rt,at,ot,lt,ht,pt,ut,ct,ft,dt,mt,gt,yt,vt,_t,bt,xt=n(),wt=n(),Tt=n(),kt={},Pt=0,At={},St=n(),Et=0,Ct=!0,Mt=[],Dt={},Ft=!1,It={},Ot=function(t){var e=It[t];if(e){var i=Array.prototype.slice.call(arguments);i.shift();for(var n=0;n<e.length;n++)e[n].apply(d,i)}},Lt=function(){return(new Date).getTime()},Nt=function(t){vt=t,d.bg.style.opacity=t*m.bgOpacity},Rt=function(t,e,i,n,s){(!Ft||s&&s!==d.currItem)&&(n/=(s||d.currItem).fitRatio),t[z]=M+e+"px, "+i+"px"+D+" scale("+n+")"},Vt=function(t){ft&&(t&&(E>d.currItem.fitRatio?Ft||(ri(d.currItem,!1,!0),Ft=!0):Ft&&(ri(d.currItem),Ft=!1)),Rt(ft,Tt.x,Tt.y,E))},jt=function(t){t.container&&Rt(t.container.style,t.initialPosition.x,t.initialPosition.y,t.initialZoomLevel,t)},zt=function(t,e){e[z]=M+t+"px, 0px"+D},Bt=function(t,e){var i;!m.loop&&e&&(i=w+(St.x*Pt-t)/St.x,e=Math.round(t-ge.x),(i<0&&0<e||i>=$e()-1&&e<0)&&(t=ge.x+e*m.mainScrollEndFriction)),ge.x=t,zt(t,T)},qt=function(t,e){var i=ye[t]-At[t];return wt[t]+xt[t]+i-e/C*i},Ht=function(t,e){t.x=e.x,t.y=e.y,e.id&&(t.id=e.id)},Wt=function(t){t.x=Math.round(t.x),t.y=Math.round(t.y)},Xt=null,Yt=function(){Xt&&(f.unbind(document,"mousemove",Yt),f.addClass(c,"pswp--has_mouse"),m.mouseUsed=!0,Ot("mouseUsed")),Xt=setTimeout(function(){Xt=null},100)},Ut=function(t,e){t=ni(d.currItem,kt,t);return e&&(ct=t),t},Gt=function(t){return(t=t||d.currItem).initialZoomLevel},Zt=function(t){return 0<(t=t||d.currItem).w?m.maxSpreadZoom:1},$t={},Kt=0,Qt=function(t){$t[t]&&($t[t].raf&&W($t[t].raf),Kt--,delete $t[t])},Jt=function(t){$t[t]&&Qt(t),$t[t]||(Kt++,$t[t]={})},te=function(){for(var t in $t)$t.hasOwnProperty(t)&&Qt(t)},ee=function(t,e,i,n,s,r,a){var o,l=Lt();Jt(t);function h(){if($t[t]){if(o=Lt()-l,n<=o)return Qt(t),r(i),void(a&&a());r((i-e)*s(o/n)+e),$t[t].raf=H(h)}}h()},e={shout:Ot,listen:o,viewportSize:kt,options:m,isMainScrollAnimating:function(){return dt},getZoomLevel:function(){return E},getCurrentIndex:function(){return w},isDragging:function(){return nt},isZooming:function(){return pt},setScrollOffset:function(t,e){At.x=t,G=At.y=e,Ot("updateScrollOffset",At)},applyZoomPan:function(t,e,i,n){Tt.x=e,Tt.y=i,E=t,Vt(n)},init:function(){if(!_&&!b){var t;d.framework=f,d.template=c,d.bg=f.getChildByClass(c,"pswp__bg"),X=c.className,_=!0,Z=f.detectFeatures(),H=Z.raf,W=Z.caf,z=Z.transform,U=Z.oldIE,d.scrollWrap=f.getChildByClass(c,"pswp__scroll-wrap"),d.container=f.getChildByClass(d.scrollWrap,"pswp__container"),T=d.container.style,d.itemHolders=O=[{el:d.container.children[0],wrap:0,index:-1},{el:d.container.children[1],wrap:0,index:-1},{el:d.container.children[2],wrap:0,index:-1}],O[0].el.style.display=O[2].el.style.display="none",function(){if(z){var t=Z.perspective&&!q;return M="translate"+(t?"3d(":"("),D=Z.perspective?", 0px)":")"}z="left",f.addClass(c,"pswp--ie"),zt=function(t,e){e.left=t+"px"},jt=function(t){var e=1<t.fitRatio?1:t.fitRatio,i=t.container.style,n=e*t.w,e=e*t.h;i.width=n+"px",i.height=e+"px",i.left=t.initialPosition.x+"px",i.top=t.initialPosition.y+"px"},Vt=function(){var t,e,i,n;ft&&(t=ft,i=(e=1<(n=d.currItem).fitRatio?1:n.fitRatio)*n.w,n=e*n.h,t.width=i+"px",t.height=n+"px",t.left=Tt.x+"px",t.top=Tt.y+"px")}}(),S={resize:d.updateSize,orientationchange:function(){clearTimeout($),$=setTimeout(function(){kt.x!==d.scrollWrap.clientWidth&&d.updateSize()},500)},scroll:u,keydown:h,click:p};var e=Z.isOldIOSPhone||Z.isOldAndroid||Z.isMobileOpera;for(Z.animationName&&Z.transform&&!e||(m.showAnimationDuration=m.hideAnimationDuration=0),t=0;t<Mt.length;t++)d["init"+Mt[t]]();i&&(d.ui=new i(d,f)).init(),Ot("firstUpdate"),w=w||m.index||0,(isNaN(w)||w<0||w>=$e())&&(w=0),d.currItem=Ze(w),(Z.isOldIOSPhone||Z.isOldAndroid)&&(Ct=!1),c.setAttribute("aria-hidden","false"),m.modal&&(Ct?c.style.position="fixed":(c.style.position="absolute",c.style.top=f.getScrollY()+"px")),void 0===G&&(Ot("initialLayout"),G=Y=f.getScrollY());e="pswp--open ";for(m.mainClass&&(e+=m.mainClass+" "),m.showHideOpacity&&(e+="pswp--animate_opacity "),e+=q?"pswp--touch":"pswp--notouch",e+=Z.animationName?" pswp--css_animation":"",e+=Z.svg?" pswp--svg":"",f.addClass(c,e),d.updateSize(),k=-1,Et=null,t=0;t<3;t++)zt((t+k)*St.x,O[t].el.style);U||f.bind(d.scrollWrap,A,d),o("initialZoomInEnd",function(){d.setContent(O[0],w-1),d.setContent(O[2],w+1),O[0].el.style.display=O[2].el.style.display="block",m.focus&&c.focus(),f.bind(document,"keydown",d),Z.transform&&f.bind(d.scrollWrap,"click",d),m.mouseUsed||f.bind(document,"mousemove",Yt),f.bind(window,"resize scroll orientationchange",d),Ot("bindEvents")}),d.setContent(O[1],w),d.updateCurrItem(),Ot("afterInit"),Ct||(F=setInterval(function(){Kt||nt||pt||E!==d.currItem.initialZoomLevel||d.updateSize()},1e3)),f.addClass(c,"pswp--visible")}},close:function(){_&&(b=!(_=!1),Ot("close"),f.unbind(window,"resize scroll orientationchange",d),f.unbind(window,"scroll",S.scroll),f.unbind(document,"keydown",d),f.unbind(document,"mousemove",Yt),Z.transform&&f.unbind(d.scrollWrap,"click",d),nt&&f.unbind(window,P,d),clearTimeout($),Ot("unbindEvents"),Ke(d.currItem,null,!0,d.destroy))},destroy:function(){Ot("destroy"),Xe&&clearTimeout(Xe),c.setAttribute("aria-hidden","true"),c.className=X,F&&clearInterval(F),f.unbind(d.scrollWrap,A,d),f.unbind(window,"scroll",d),xe(),te(),It=null},panTo:function(t,e,i){i||(t>ct.min.x?t=ct.min.x:t<ct.max.x&&(t=ct.max.x),e>ct.min.y?e=ct.min.y:e<ct.max.y&&(e=ct.max.y)),Tt.x=t,Tt.y=e,Vt()},handleEvent:function(t){t=t||window.event,S[t.type]&&S[t.type](t)},goTo:function(t){var e=(t=a(t))-w;Et=e,w=t,d.currItem=Ze(w),Pt-=e,Bt(St.x*Pt),te(),dt=!1,d.updateCurrItem()},next:function(){d.goTo(w+1)},prev:function(){d.goTo(w-1)},updateCurrZoomItem:function(t){var e;t&&Ot("beforeChange",0),ft=O[1].el.children.length?(e=O[1].el.children[0],f.hasClass(e,"pswp__zoom-wrap")?e.style:null):null,ct=d.currItem.bounds,C=E=d.currItem.initialZoomLevel,Tt.x=ct.center.x,Tt.y=ct.center.y,t&&Ot("afterChange")},invalidateCurrItems:function(){I=!0;for(var t=0;t<3;t++)O[t].item&&(O[t].item.needsUpdate=!0)},updateCurrItem:function(t){if(0!==Et){var e,i=Math.abs(Et);if(!(t&&i<2)){d.currItem=Ze(w),Ft=!1,Ot("beforeChange",Et),3<=i&&(k+=Et+(0<Et?-3:3),i=3);for(var n=0;n<i;n++)0<Et?(e=O.shift(),O[2]=e,zt((++k+2)*St.x,e.el.style),d.setContent(e,w-i+n+1+1)):(e=O.pop(),O.unshift(e),zt(--k*St.x,e.el.style),d.setContent(e,w+i-n-1-1));!ft||1!==Math.abs(Et)||(t=Ze(L)).initialZoomLevel!==E&&(ni(t,kt),ri(t),jt(t)),Et=0,d.updateCurrZoomItem(),L=w,Ot("afterChange")}}},updateSize:function(t){if(!Ct&&m.modal){var e=f.getScrollY();if(G!==e&&(c.style.top=e+"px",G=e),!t&&Dt.x===window.innerWidth&&Dt.y===window.innerHeight)return;Dt.x=window.innerWidth,Dt.y=window.innerHeight,c.style.height=Dt.y+"px"}if(kt.x=d.scrollWrap.clientWidth,kt.y=d.scrollWrap.clientHeight,u(),St.x=kt.x+Math.round(kt.x*m.spacing),St.y=kt.y,Bt(St.x*Pt),Ot("beforeResize"),void 0!==k){for(var i,n,s,r=0;r<3;r++)i=O[r],zt((r+k)*St.x,i.el.style),s=w+r-1,m.loop&&2<$e()&&(s=a(s)),(n=Ze(s))&&(I||n.needsUpdate||!n.bounds)?(d.cleanSlide(n),d.setContent(i,s),1===r&&(d.currItem=n,d.updateCurrZoomItem(!0)),n.needsUpdate=!1):-1===i.index&&0<=s&&d.setContent(i,s),n&&n.container&&(ni(n,kt),ri(n),jt(n));I=!1}C=E=d.currItem.initialZoomLevel,(ct=d.currItem.bounds)&&(Tt.x=ct.center.x,Tt.y=ct.center.y,Vt(!0)),Ot("resize")},zoomTo:function(e,t,i,n,s){t&&(C=E,ye.x=Math.abs(t.x)-Tt.x,ye.y=Math.abs(t.y)-Tt.y,Ht(wt,Tt));var t=Ut(e,!1),r={};l("x",t,r,e),l("y",t,r,e);var a=E,o={x:Tt.x,y:Tt.y};Wt(r);t=function(t){1===t?(E=e,Tt.x=r.x,Tt.y=r.y):(E=(e-a)*t+a,Tt.x=(r.x-o.x)*t+o.x,Tt.y=(r.y-o.y)*t+o.y),s&&s(t),Vt(1===t)};i?ee("customZoomTo",0,1,i,n||f.easing.sine.inOut,t):t(1)}},ie=30,ne=10,se={},re={},ae={},oe={},le={},he=[],pe={},ue=[],ce={},fe=0,de=n(),me=0,ge=n(),ye=n(),ve=n(),_e=function(t,e){return t.x===e.x&&t.y===e.y},be=function(t,e){return ce.x=Math.abs(t.x-e.x),ce.y=Math.abs(t.y-e.y),Math.sqrt(ce.x*ce.x+ce.y*ce.y)},xe=function(){ot&&(W(ot),ot=null)},we=function(){nt&&(ot=H(we),Ne())},Te=function(){return!("fit"===m.scaleMode&&E===d.currItem.initialZoomLevel)},ke=function(t,e){return!(!t||t===document)&&(!(t.getAttribute("class")&&-1<t.getAttribute("class").indexOf("pswp__scroll-wrap"))&&(e(t)?t:ke(t.parentNode,e)))},Pe={},Ae=function(t,e){return Pe.prevent=!ke(t.target,m.isClickableElement),Ot("preventDragEvent",t,e,Pe),Pe.prevent},Se=function(t,e){return e.x=t.pageX,e.y=t.pageY,e.id=t.identifier,e},Ee=function(t,e,i){i.x=.5*(t.x+e.x),i.y=.5*(t.y+e.y)},Ce=function(t,e,i){var n;50<t-Q&&((n=2<ue.length?ue.shift():{}).x=e,n.y=i,ue.push(n),Q=t)},Me=function(){var t=Tt.y-d.currItem.initialPosition.y;return 1-Math.abs(t/(kt.y/2))},De={},Fe={},Ie=[],Oe=function(t){for(;0<Ie.length;)Ie.pop();return B?(bt=0,he.forEach(function(t){0===bt?Ie[0]=t:1===bt&&(Ie[1]=t),bt++})):-1<t.type.indexOf("touch")?t.touches&&0<t.touches.length&&(Ie[0]=Se(t.touches[0],De),1<t.touches.length&&(Ie[1]=Se(t.touches[1],Fe))):(De.x=t.pageX,De.y=t.pageY,De.id="",Ie[0]=De),Ie},Le=function(t,e){var i,n,s,r=Tt[t]+e[t],a=0<e[t],o=ge.x+e.x,l=ge.x-pe.x,h=r>ct.min[t]||r<ct.max[t]?m.panEndFriction:1,r=Tt[t]+e[t]*h;if((m.allowPanToNext||E===d.currItem.initialZoomLevel)&&(ft?"h"!==mt||"x"!==t||rt||(a?(r>ct.min[t]&&(h=m.panEndFriction,ct.min[t],i=ct.min[t]-wt[t]),(i<=0||l<0)&&1<$e()?(s=o,l<0&&o>pe.x&&(s=pe.x)):ct.min.x!==ct.max.x&&(n=r)):(r<ct.max[t]&&(h=m.panEndFriction,ct.max[t],i=wt[t]-ct.max[t]),(i<=0||0<l)&&1<$e()?(s=o,0<l&&o<pe.x&&(s=pe.x)):ct.min.x!==ct.max.x&&(n=r))):s=o,"x"===t))return void 0!==s&&(Bt(s,!0),lt=s!==pe.x),ct.min.x!==ct.max.x&&(void 0!==n?Tt.x=n:lt||(Tt.x+=e.x*h)),void 0!==s;dt||lt||E>d.currItem.fitRatio&&(Tt[t]+=e[t]*h)},Ne=function(){if(ht){var t,e,i,n,s=ht.length;if(0!==s)if(Ht(se,ht[0]),ae.x=se.x-oe.x,ae.y=se.y-oe.y,pt&&1<s)oe.x=se.x,oe.y=se.y,!ae.x&&!ae.y&&_e(ht[1],re)||(Ht(re,ht[1]),rt||(rt=!0,Ot("zoomGestureStarted")),t=be(se,re),(r=ze(t))>d.currItem.initialZoomLevel+d.currItem.initialZoomLevel/15&&(_t=!0),e=1,i=Gt(),n=Zt(),r<i?m.pinchToClose&&!_t&&C<=d.currItem.initialZoomLevel?(Nt(s=1-(i-r)/(i/1.2)),Ot("onPinchClose",s),yt=!0):r=i-(e=1<(e=(i-r)/i)?1:e)*(i/3):n<r&&(r=n+(e=1<(e=(r-n)/(6*i))?1:e)*i),e<0&&(e=0),Ee(se,re,de),xt.x+=de.x-ve.x,xt.y+=de.y-ve.y,Ht(ve,de),Tt.x=qt("x",r),Tt.y=qt("y",r),tt=E<r,E=r,Vt());else if(mt&&(gt&&(gt=!1,Math.abs(ae.x)>=ne&&(ae.x-=ht[0].x-le.x),Math.abs(ae.y)>=ne&&(ae.y-=ht[0].y-le.y)),oe.x=se.x,oe.y=se.y,0!==ae.x||0!==ae.y)){if("v"===mt&&m.closeOnVerticalDrag&&!Te()){xt.y+=ae.y,Tt.y+=ae.y;var r=Me();return et=!0,Ot("onVerticalDrag",r),Nt(r),void Vt()}Ce(Lt(),se.x,se.y),at=!0,ct=d.currItem.bounds,Le("x",ae)||(Le("y",ae),Wt(Tt),Vt())}}},Re=function(){var e,i,n={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(t){i=1<ue.length?(e=Lt()-Q+50,ue[ue.length-2][t]):(e=Lt()-K,le[t]),n.lastFlickOffset[t]=oe[t]-i,n.lastFlickDist[t]=Math.abs(n.lastFlickOffset[t]),20<n.lastFlickDist[t]?n.lastFlickSpeed[t]=n.lastFlickOffset[t]/e:n.lastFlickSpeed[t]=0,Math.abs(n.lastFlickSpeed[t])<.1&&(n.lastFlickSpeed[t]=0),n.slowDownRatio[t]=.95,n.slowDownRatioReverse[t]=1-n.slowDownRatio[t],n.speedDecelerationRatio[t]=1},calculateOverBoundsAnimOffset:function(e,t){n.backAnimStarted[e]||(Tt[e]>ct.min[e]?n.backAnimDestination[e]=ct.min[e]:Tt[e]<ct.max[e]&&(n.backAnimDestination[e]=ct.max[e]),void 0!==n.backAnimDestination[e]&&(n.slowDownRatio[e]=.7,n.slowDownRatioReverse[e]=1-n.slowDownRatio[e],n.speedDecelerationRatioAbs[e]<.05&&(n.lastFlickSpeed[e]=0,n.backAnimStarted[e]=!0,ee("bounceZoomPan"+e,Tt[e],n.backAnimDestination[e],t||300,f.easing.sine.out,function(t){Tt[e]=t,Vt()}))))},calculateAnimOffset:function(t){n.backAnimStarted[t]||(n.speedDecelerationRatio[t]=n.speedDecelerationRatio[t]*(n.slowDownRatio[t]+n.slowDownRatioReverse[t]-n.slowDownRatioReverse[t]*n.timeDiff/10),n.speedDecelerationRatioAbs[t]=Math.abs(n.lastFlickSpeed[t]*n.speedDecelerationRatio[t]),n.distanceOffset[t]=n.lastFlickSpeed[t]*n.speedDecelerationRatio[t]*n.timeDiff,Tt[t]+=n.distanceOffset[t])},panAnimLoop:function(){$t.zoomPan&&($t.zoomPan.raf=H(n.panAnimLoop),n.now=Lt(),n.timeDiff=n.now-n.lastNow,n.lastNow=n.now,n.calculateAnimOffset("x"),n.calculateAnimOffset("y"),Vt(),n.calculateOverBoundsAnimOffset("x"),n.calculateOverBoundsAnimOffset("y"),n.speedDecelerationRatioAbs.x<.05&&n.speedDecelerationRatioAbs.y<.05&&(Tt.x=Math.round(Tt.x),Tt.y=Math.round(Tt.y),Vt(),Qt("zoomPan")))}};return n},Ve=function(t){if(t.calculateSwipeSpeed("y"),ct=d.currItem.bounds,t.backAnimDestination={},t.backAnimStarted={},Math.abs(t.lastFlickSpeed.x)<=.05&&Math.abs(t.lastFlickSpeed.y)<=.05)return t.speedDecelerationRatioAbs.x=t.speedDecelerationRatioAbs.y=0,t.calculateOverBoundsAnimOffset("x"),t.calculateOverBoundsAnimOffset("y"),!0;Jt("zoomPan"),t.lastNow=Lt(),t.panAnimLoop()},je=function(t,e){var i,n;dt||(fe=w),"swipe"===t&&(n=oe.x-le.x,t=e.lastFlickDist.x<10,ie<n&&(t||20<e.lastFlickOffset.x)?r=-1:n<-ie&&(t||e.lastFlickOffset.x<-20)&&(r=1)),r&&((w+=r)<0?(w=m.loop?$e()-1:0,s=!0):w>=$e()&&(w=m.loop?0:$e()-1,s=!0),s&&!m.loop||(Et+=r,Pt-=r,i=!0));var s=St.x*Pt,r=Math.abs(s-ge.x),a=i||s>ge.x==0<e.lastFlickSpeed.x?(a=0<Math.abs(e.lastFlickSpeed.x)?r/Math.abs(e.lastFlickSpeed.x):333,a=Math.min(a,400),Math.max(a,250)):333;return fe===w&&(i=!1),dt=!0,Ot("mainScrollAnimStart"),ee("mainScroll",ge.x,s,a,f.easing.cubic.out,Bt,function(){te(),dt=!1,fe=-1,!i&&fe===w||d.updateCurrItem(),Ot("mainScrollAnimComplete")}),i&&d.updateCurrItem(!0),i},ze=function(t){return 1/ut*t*C},Be=function(){var t=E,e=Gt(),i=Zt();E<e?t=e:i<E&&(t=i);var n,s=vt;return yt&&!tt&&!_t&&E<e?d.close():(yt&&(n=function(t){Nt((1-s)*t+s)}),d.zoomTo(t,0,200,f.easing.cubic.out,n)),!0};s("Gestures",{publicMethods:{initGestures:function(){function t(t,e,i,n,s){N=t+e,R=t+i,V=t+n,j=s?t+s:""}(B=Z.pointerEvent)&&Z.touch&&(Z.touch=!1),B?navigator.pointerEnabled?t("pointer","down","move","up","cancel"):t("MSPointer","Down","Move","Up","Cancel"):Z.touch?(t("touch","start","move","end","cancel"),q=!0):t("mouse","down","move","up"),P=R+" "+V+" "+j,A=N,B&&!q&&(q=1<navigator.maxTouchPoints||1<navigator.msMaxTouchPoints),d.likelyTouchDevice=q,S[N]=g,S[R]=y,S[V]=v,j&&(S[j]=S[V]),Z.touch&&(A+=" mousedown",P+=" mousemove mouseup",S.mousedown=S[N],S.mousemove=S[R],S.mouseup=S[V]),q||(m.allowPanToNext=!1)}}});function qe(t){function e(){t.loading=!1,t.loaded=!0,t.loadComplete?t.loadComplete(t):t.img=null,i.onload=i.onerror=null,i=null}t.loading=!0,t.loaded=!1;var i=t.img=f.createEl("pswp__img","img");return i.onload=e,i.onerror=function(){t.loadError=!0,e()},i.src=t.src,i}function He(t,e){return t.src&&t.loadError&&t.container&&(e&&(t.container.innerHTML=""),t.container.innerHTML=m.errorMsg.replace("%url%",t.src),1)}function We(){if(Je.length){for(var t,e=0;e<Je.length;e++)(t=Je[e]).holder.index===t.index&&si(t.index,t.item,t.baseDiv,t.img,!1,t.clearPlaceholder);Je=[]}}var Xe,Ye,Ue,Ge,Ze,$e,Ke=function(r,t,a,e){var o;Xe&&clearTimeout(Xe),Ue=Ge=!0,r.initialLayout?(o=r.initialLayout,r.initialLayout=null):o=m.getThumbBoundsFn&&m.getThumbBoundsFn(w);function l(){Qt("initialZoom"),a?(d.template.removeAttribute("style"),d.bg.removeAttribute("style")):(Nt(1),t&&(t.style.display="block"),f.addClass(c,"pswp--animated-in"),Ot("initialZoom"+(a?"OutEnd":"InEnd"))),e&&e(),Ge=!1}var h=a?m.hideAnimationDuration:m.showAnimationDuration;if(!h||!o||void 0===o.x)return Ot("initialZoom"+(a?"Out":"In")),E=r.initialZoomLevel,Ht(Tt,r.initialPosition),Vt(),c.style.opacity=a?0:1,Nt(1),void(h?setTimeout(function(){l()},h):l());var p,u;p=x,u=!d.currItem.src||d.currItem.loadError||m.showHideOpacity,r.miniImg&&(r.miniImg.style.webkitBackfaceVisibility="hidden"),a||(E=o.w/r.w,Tt.x=o.x,Tt.y=o.y-Y,d[u?"template":"bg"].style.opacity=.001,Vt()),Jt("initialZoom"),a&&!p&&f.removeClass(c,"pswp--animated-in"),u&&(a?f[(p?"remove":"add")+"Class"](c,"pswp--animate_opacity"):setTimeout(function(){f.addClass(c,"pswp--animate_opacity")},30)),Xe=setTimeout(function(){var e,i,n,s,t;Ot("initialZoom"+(a?"Out":"In")),a?(e=o.w/r.w,i={x:Tt.x,y:Tt.y},n=E,s=vt,t=function(t){1===t?(E=e,Tt.x=o.x,Tt.y=o.y-G):(E=(e-n)*t+n,Tt.x=(o.x-i.x)*t+i.x,Tt.y=(o.y-G-i.y)*t+i.y),Vt(),u?c.style.opacity=1-t:Nt(s-t*s)},p?ee("initialZoom",0,1,h,f.easing.cubic.out,t,l):(t(1),Xe=setTimeout(l,h+20))):(E=r.initialZoomLevel,Ht(Tt,r.initialPosition),Vt(),Nt(1),u?c.style.opacity=1:Nt(1),Xe=setTimeout(l,h+20))},a?25:90)},Qe={},Je=[],ti={index:0,errorMsg:'<div class="pswp__error-msg"><a href="%url%" target="_blank">The image</a> could not be loaded.</div>',forceProgressiveLoading:!1,preload:[1,1],getNumItemsFn:function(){return Ye.length}},ei=function(){return{center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}}},ii=function(t,e,i){var n=t.bounds;n.center.x=Math.round((Qe.x-e)/2),n.center.y=Math.round((Qe.y-i)/2)+t.vGap.top,n.max.x=e>Qe.x?Math.round(Qe.x-e):n.center.x,n.max.y=i>Qe.y?Math.round(Qe.y-i)+t.vGap.top:n.center.y,n.min.x=e>Qe.x?0:n.center.x,n.min.y=i>Qe.y?t.vGap.top:n.center.y},ni=function(t,e,i){if(!t.src||t.loadError)return t.w=t.h=0,t.initialZoomLevel=t.fitRatio=1,t.bounds=ei(),t.initialPosition=t.bounds.center,t.bounds;var n,s=!i;return s&&(t.vGap||(t.vGap={top:0,bottom:0}),Ot("parseVerticalMargin",t)),Qe.x=e.x,Qe.y=e.y-t.vGap.top-t.vGap.bottom,s&&(n=Qe.x/t.w,e=Qe.y/t.h,t.fitRatio=n<e?n:e,"orig"===(e=m.scaleMode)?i=1:"fit"===e&&(i=t.fitRatio),t.initialZoomLevel=i=1<i?1:i,t.bounds||(t.bounds=ei())),i?(ii(t,t.w*i,t.h*i),s&&i===t.initialZoomLevel&&(t.initialPosition=t.bounds.center),t.bounds):void 0},si=function(t,e,i,n,s,r){e.loadError||n&&(e.imageAppended=!0,ri(e,n,e===d.currItem&&Ft),i.appendChild(n),r&&setTimeout(function(){e&&e.loaded&&e.placeholder&&(e.placeholder.style.display="none",e.placeholder=null)},500))},ri=function(t,e,i){var n;t.src&&(e=e||t.container.lastChild,n=i?t.w:Math.round(t.w*t.fitRatio),i=i?t.h:Math.round(t.h*t.fitRatio),t.placeholder&&!t.loaded&&(t.placeholder.style.width=n+"px",t.placeholder.style.height=i+"px"),e.style.width=n+"px",e.style.height=i+"px")};s("Controller",{publicMethods:{lazyLoadItem:function(t){t=a(t);var e=Ze(t);e&&(!e.loaded&&!e.loading||I)&&(Ot("gettingData",t,e),e.src&&qe(e))},initController:function(){f.extend(m,ti,!0),d.items=Ye=t,Ze=d.getItemAt,$e=m.getNumItemsFn,m.loop,$e()<3&&(m.loop=!1),o("beforeChange",function(t){for(var e=m.preload,i=null===t||0<=t,n=Math.min(e[0],$e()),s=Math.min(e[1],$e()),r=1;r<=(i?s:n);r++)d.lazyLoadItem(w+r);for(r=1;r<=(i?n:s);r++)d.lazyLoadItem(w-r)}),o("initialLayout",function(){d.currItem.initialLayout=m.getThumbBoundsFn&&m.getThumbBoundsFn(w)}),o("mainScrollAnimComplete",We),o("initialZoomInEnd",We),o("destroy",function(){for(var t,e=0;e<Ye.length;e++)(t=Ye[e]).container&&(t.container=null),t.placeholder&&(t.placeholder=null),t.img&&(t.img=null),t.preloader&&(t.preloader=null),t.loadError&&(t.loaded=t.loadError=!1);Je=null})},getItemAt:function(t){return 0<=t&&(void 0!==Ye[t]&&Ye[t])},allowProgressiveImg:function(){return m.forceProgressiveLoading||!q||m.mouseUsed||1200<screen.width},setContent:function(e,i){m.loop&&(i=a(i));var t=d.getItemAt(e.index);t&&(t.container=null);var n,s,r=d.getItemAt(i);r?(Ot("gettingData",i,r),e.index=i,s=(e.item=r).container=f.createEl("pswp__zoom-wrap"),!r.src&&r.html&&(r.html.tagName?s.appendChild(r.html):s.innerHTML=r.html),He(r),ni(r,kt),!r.src||r.loadError||r.loaded?r.src&&!r.loadError&&((n=f.createEl("pswp__img","img")).style.opacity=1,n.src=r.src,ri(r,n),si(i,r,s,n,!0)):(r.loadComplete=function(t){if(_){if(e&&e.index===i){if(He(t,!0))return t.loadComplete=t.img=null,ni(t,kt),jt(t),void(e.index===w&&d.updateCurrZoomItem());t.imageAppended?!Ge&&t.placeholder&&(t.placeholder.style.display="none",t.placeholder=null):Z.transform&&(dt||Ge)?Je.push({item:t,baseDiv:s,img:t.img,index:i,holder:e,clearPlaceholder:!0}):si(i,t,s,t.img,dt||Ge,!0)}t.loadComplete=null,t.img=null,Ot("imageLoadComplete",i,t)}},f.features.transform&&(t="pswp__img pswp__img--placeholder",t+=r.msrc?"":" pswp__img--placeholder--blank",t=f.createEl(t,r.msrc?"img":""),r.msrc&&(t.src=r.msrc),ri(r,t),s.appendChild(t),r.placeholder=t),r.loading||qe(r),d.allowProgressiveImg()&&(!Ue&&Z.transform?Je.push({item:r,baseDiv:s,img:r.img,index:i,holder:e}):si(i,r,s,r.img,!0,!0))),Ue||i!==w?jt(r):(ft=s.style,Ke(r,n||r.img)),e.el.innerHTML="",e.el.appendChild(s)):e.el.innerHTML=""},cleanSlide:function(t){t.img&&(t.img.onload=t.img.onerror=null),t.loaded=t.loading=t.img=t.imageAppended=!1}}});function ai(t,e,i){var n=document.createEvent("CustomEvent"),i={origEvent:t,target:t.target,releasePoint:e,pointerType:i||"touch"};n.initCustomEvent("pswpTap",!0,!0,i),t.target.dispatchEvent(n)}var oi,li,hi={};s("Tap",{publicMethods:{initTap:function(){o("firstTouchStart",d.onTapStart),o("touchRelease",d.onTapRelease),o("destroy",function(){hi={},oi=null})},onTapStart:function(t){1<t.length&&(clearTimeout(oi),oi=null)},onTapRelease:function(t,e){var i,n,s;e&&(at||st||Kt||(i=e,oi&&(clearTimeout(oi),oi=null,n=i,s=hi,Math.abs(n.x-s.x)<r&&Math.abs(n.y-s.y)<r)?Ot("doubleTap",i):"mouse"!==e.type?"BUTTON"===t.target.tagName.toUpperCase()||f.hasClass(t.target,"pswp__single-tap")?ai(t,e):(Ht(hi,i),oi=setTimeout(function(){ai(t,e),oi=null},300)):ai(t,e,"mouse")))}}}),s("DesktopZoom",{publicMethods:{initDesktopZoom:function(){U||(q?o("mouseUsed",function(){d.setupDesktopZoom()}):d.setupDesktopZoom(!0))},setupDesktopZoom:function(t){li={};var e="wheel mousewheel DOMMouseScroll";o("bindEvents",function(){f.bind(c,e,d.handleMouseWheel)}),o("unbindEvents",function(){li&&f.unbind(c,e,d.handleMouseWheel)}),d.mouseZoomedIn=!1;function i(){d.mouseZoomedIn&&(f.removeClass(c,"pswp--zoomed-in"),d.mouseZoomedIn=!1),E<1?f.addClass(c,"pswp--zoom-allowed"):f.removeClass(c,"pswp--zoom-allowed"),s()}var n,s=function(){n&&(f.removeClass(c,"pswp--dragging"),n=!1)};o("resize",i),o("afterChange",i),o("pointerDown",function(){d.mouseZoomedIn&&(n=!0,f.addClass(c,"pswp--dragging"))}),o("pointerUp",s),t||i()},handleMouseWheel:function(t){if(E<=d.currItem.fitRatio)return m.modal&&(!m.closeOnScroll||Kt||nt?t.preventDefault():z&&2<Math.abs(t.deltaY)&&(x=!0,d.close())),!0;if(t.stopPropagation(),li.x=0,"deltaX"in t)1===t.deltaMode?(li.x=18*t.deltaX,li.y=18*t.deltaY):(li.x=t.deltaX,li.y=t.deltaY);else if("wheelDelta"in t)t.wheelDeltaX&&(li.x=-.16*t.wheelDeltaX),t.wheelDeltaY?li.y=-.16*t.wheelDeltaY:li.y=-.16*t.wheelDelta;else{if(!("detail"in t))return;li.y=t.detail}Ut(E,!0);var e=Tt.x-li.x,i=Tt.y-li.y;(m.modal||e<=ct.min.x&&e>=ct.max.x&&i<=ct.min.y&&i>=ct.max.y)&&t.preventDefault(),d.panTo(e,i)},toggleDesktopZoom:function(t){t=t||{x:kt.x/2+At.x,y:kt.y/2+At.y};var e=m.getDoubleTapZoom(!0,d.currItem),i=E===e;d.mouseZoomedIn=!i,d.zoomTo(i?d.currItem.initialZoomLevel:e,t,333),f[(i?"remove":"add")+"Class"](c,"pswp--zoomed-in")}}});function pi(){ci&&clearTimeout(ci),di&&clearTimeout(di)}function ui(){var t=Pi(),e={};if(t.length<5)return e;var i,n=t.split("&");for(r=0;r<n.length;r++)n[r]&&((i=n[r].split("=")).length<2||(e[i[0]]=i[1]));if(m.galleryPIDs){for(var s=e.pid,r=e.pid=0;r<Ye.length;r++)if(Ye[r].pid===s){e.pid=r;break}}else e.pid=parseInt(e.pid,10)-1;return e.pid<0&&(e.pid=0),e}var ci,fi,di,mi,gi,yi,vi,_i,bi,xi,wi,Ti,ki={history:!0,galleryUID:1},Pi=function(){return wi.hash.substring(1)},Ai=function(){var t,e;di&&clearTimeout(di),Kt||nt?di=setTimeout(Ai,500):(mi?clearTimeout(fi):mi=!0,e=w+1,(t=Ze(w)).hasOwnProperty("pid")&&(e=t.pid),t=vi+"&gid="+m.galleryUID+"&pid="+e,_i||-1===wi.hash.indexOf(t)&&(xi=!0),e=wi.href.split("#")[0]+"#"+t,Ti?"#"+t!==window.location.hash&&history[_i?"replaceState":"pushState"]("",document.title,e):_i?wi.replace(e):wi.hash=t,_i=!0,fi=setTimeout(function(){mi=!1},60))};s("History",{publicMethods:{initHistory:function(){var t,e;f.extend(m,ki,!0),m.history&&(wi=window.location,_i=bi=xi=!1,vi=Pi(),Ti="pushState"in history,-1<vi.indexOf("gid=")&&(vi=(vi=vi.split("&gid=")[0]).split("?gid=")[0]),o("afterChange",d.updateURL),o("unbindEvents",function(){f.unbind(window,"hashchange",d.onHashChange)}),t=function(){yi=!0,bi||(xi?history.back():vi?wi.hash=vi:Ti?history.pushState("",document.title,wi.pathname+wi.search):wi.hash=""),pi()},o("unbindEvents",function(){x&&t()}),o("destroy",function(){yi||t()}),o("firstUpdate",function(){w=ui().pid}),-1<(e=vi.indexOf("pid="))&&"&"===(vi=vi.substring(0,e)).slice(-1)&&(vi=vi.slice(0,-1)),setTimeout(function(){_&&f.bind(window,"hashchange",d.onHashChange)},40))},onHashChange:function(){if(Pi()===vi)return bi=!0,void d.close();mi||(gi=!0,d.goTo(ui().pid),gi=!1)},updateURL:function(){pi(),gi||(_i?ci=setTimeout(Ai,800):Ai())}}}),f.extend(d,e)}}),function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():t.PhotoSwipeUI_Default=e()}(this,function(){"use strict";return function(n,o){function t(t){if(S)return!0;t=t||window.event,A.timeToIdle&&A.mouseUsed&&!b&&a();for(var e,i,n=(t.target||t.srcElement).getAttribute("class")||"",s=0;s<V.length;s++)(e=V[s]).onTap&&-1<n.indexOf("pswp__"+e.name)&&(e.onTap(),i=!0);i&&(t.stopPropagation&&t.stopPropagation(),S=!0,t=o.features.isOldAndroid?600:30,setTimeout(function(){S=!1},t))}function i(){var t=1===A.getNumItemsFn();t!==P&&(L(f,"ui--one-slide",t),P=t)}function e(){L(v,"share-modal--hidden",I)}function s(){return(I=!I)?(o.removeClass(v,"pswp__share-modal--fade-in"),setTimeout(function(){I&&e()},300)):(e(),setTimeout(function(){I||o.addClass(v,"pswp__share-modal--fade-in")},30)),I||function(){for(var t="",e,i,n,s,r,a=0;a<A.shareButtons.length;a++){e=A.shareButtons[a];n=A.getImageURLForShare(e);s=A.getPageURLForShare(e);r=A.getTextForShare(e);i=e.url.replace("{{url}}",encodeURIComponent(s)).replace("{{image_url}}",encodeURIComponent(n)).replace("{{raw_image_url}}",n).replace("{{text}}",encodeURIComponent(r));t+='<a href="'+i+'" target="_blank" '+'class="pswp__share--'+e.id+'"'+(e.download?"download":"")+">"+e.label+"</a>";if(A.parseShareButtonOut)t=A.parseShareButtonOut(e,t)}v.children[0].innerHTML=t,v.children[0].onclick=N}(),0}function r(t){for(var e=0;e<A.closeElClasses.length;e++)if(o.hasClass(t,"pswp__"+A.closeElClasses[e]))return!0}function a(){clearTimeout(C),R=0,b&&M.setIdle(!1)}function l(t){(t=(t=t||window.event).relatedTarget||t.toElement)&&"HTML"!==t.nodeName||(clearTimeout(C),C=setTimeout(function(){M.setIdle(!0)},A.timeToIdleOutside))}function h(t){T!==t&&(L(w,"preloader--active",!t),T=t)}function p(t){var e,i=t.vGap;!n.likelyTouchDevice||A.mouseUsed||screen.width>A.fitControlsWidth?(e=A.barsSize,A.captionEl&&"auto"===e.bottom?(m||((m=o.createEl("pswp__caption pswp__caption--fake")).appendChild(o.createEl("pswp__caption__center")),f.insertBefore(m,d),o.addClass(f,"pswp__ui--fit")),A.addCaptionHTMLFn(t,m,!0)?(t=m.clientHeight,i.bottom=parseInt(t,10)||44):i.bottom=e.top):i.bottom="auto"===e.bottom?0:e.bottom,i.top=e.top):i.top=i.bottom=0}function u(){function t(t){if(t)for(var e=t.length,i=0;i<e;i++){s=t[i],r=s.className;for(var n=0;n<V.length;n++)a=V[n],-1<r.indexOf("pswp__"+a.name)&&(A[a.option]?(o.removeClass(s,"pswp__element--disabled"),a.onInit&&a.onInit(s)):o.addClass(s,"pswp__element--disabled"))}}var s,r,a;t(f.children);var e=o.getChildByClass(f,"pswp__top-bar");e&&t(e.children)}var c,f,d,m,g,y,v,_,b,x,w,T,k,P,A,S,E,C,M=this,D=!1,F=!0,I=!0,O={barsSize:{top:44,bottom:"auto"},closeElClasses:["item","caption","zoom-wrap","ui","top-bar"],timeToIdle:4e3,timeToIdleOutside:1e3,loadingIndicatorDelay:1e3,addCaptionHTMLFn:function(t,e){return t.title?(e.children[0].innerHTML=t.title,!0):(e.children[0].innerHTML="",!1)},closeEl:!0,captionEl:!0,fullscreenEl:!0,zoomEl:!0,shareEl:!0,counterEl:!0,arrowEl:!0,preloaderEl:!0,tapToClose:!1,tapToToggleControls:!0,clickToCloseNonZoomable:!0,shareButtons:[{id:"facebook",label:"Share on Facebook",url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:"Tweet",url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:"Pin it",url:"http://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"},{id:"download",label:"Download image",url:"{{raw_image_url}}",download:!0}],getImageURLForShare:function(){return n.currItem.src||""},getPageURLForShare:function(){return window.location.href},getTextForShare:function(){return n.currItem.title||""},indexIndicatorSep:" / ",fitControlsWidth:1200},L=function(t,e,i){o[(i?"add":"remove")+"Class"](t,"pswp__"+e)},N=function(t){var e=(t=t||window.event).target||t.srcElement;return n.shout("shareLinkClick",t,e),!!e.href&&(!!e.hasAttribute("download")||(window.open(e.href,"pswp_share","scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=550,height=420,top=100,left="+(window.screen?Math.round(screen.width/2-275):100)),I||s(),!1))},R=0,V=[{name:"caption",option:"captionEl",onInit:function(t){d=t}},{name:"share-modal",option:"shareEl",onInit:function(t){v=t},onTap:function(){s()}},{name:"button--share",option:"shareEl",onInit:function(t){y=t},onTap:function(){s()}},{name:"button--zoom",option:"zoomEl",onTap:n.toggleDesktopZoom},{name:"counter",option:"counterEl",onInit:function(t){g=t}},{name:"button--close",option:"closeEl",onTap:n.close},{name:"button--arrow--left",option:"arrowEl",onTap:n.prev},{name:"button--arrow--right",option:"arrowEl",onTap:n.next},{name:"button--fs",option:"fullscreenEl",onTap:function(){c.isFullscreen()?c.exit():c.enter()}},{name:"preloader",option:"preloaderEl",onInit:function(t){w=t}}];M.init=function(){var e;o.extend(n.options,O,!0),A=n.options,f=o.getChildByClass(n.scrollWrap,"pswp__ui"),(x=n.listen)("onVerticalDrag",function(t){F&&t<.95?M.hideControls():!F&&.95<=t&&M.showControls()}),x("onPinchClose",function(t){F&&t<.9?(M.hideControls(),e=!0):e&&!F&&.9<t&&M.showControls()}),x("zoomGestureEnded",function(){(e=!1)&&!F&&M.showControls()}),x("beforeChange",M.update),x("doubleTap",function(t){var e=n.currItem.initialZoomLevel;n.getZoomLevel()!==e?n.zoomTo(e,t,333):n.zoomTo(A.getDoubleTapZoom(!1,n.currItem),t,333)}),x("preventDragEvent",function(t,e,i){var n=t.target||t.srcElement;n&&n.getAttribute("class")&&-1<t.type.indexOf("mouse")&&(0<n.getAttribute("class").indexOf("__caption")||/(SMALL|STRONG|EM)/i.test(n.tagName))&&(i.prevent=!1)}),x("bindEvents",function(){o.bind(f,"pswpTap click",t),o.bind(n.scrollWrap,"pswpTap",M.onGlobalTap),n.likelyTouchDevice||o.bind(n.scrollWrap,"mouseover",M.onMouseOver)}),x("unbindEvents",function(){I||s(),E&&clearInterval(E),o.unbind(document,"mouseout",l),o.unbind(document,"mousemove",a),o.unbind(f,"pswpTap click",t),o.unbind(n.scrollWrap,"pswpTap",M.onGlobalTap),o.unbind(n.scrollWrap,"mouseover",M.onMouseOver),c&&(o.unbind(document,c.eventK,M.updateFullscreen),c.isFullscreen()&&(A.hideAnimationDuration=0,c.exit()),c=null)}),x("destroy",function(){A.captionEl&&(m&&f.removeChild(m),o.removeClass(d,"pswp__caption--empty")),v&&(v.children[0].onclick=null),o.removeClass(f,"pswp__ui--over-close"),o.addClass(f,"pswp__ui--hidden"),M.setIdle(!1)}),A.showAnimationDuration||o.removeClass(f,"pswp__ui--hidden"),x("initialZoomIn",function(){A.showAnimationDuration&&o.removeClass(f,"pswp__ui--hidden")}),x("initialZoomOut",function(){o.addClass(f,"pswp__ui--hidden")}),x("parseVerticalMargin",p),u(),A.shareEl&&y&&v&&(I=!0),i(),A.timeToIdle&&x("mouseUsed",function(){o.bind(document,"mousemove",a),o.bind(document,"mouseout",l),E=setInterval(function(){2===++R&&M.setIdle(!0)},A.timeToIdle/2)}),A.fullscreenEl&&!o.features.isOldAndroid&&((c=c||M.getFullscreenAPI())?(o.bind(document,c.eventK,M.updateFullscreen),M.updateFullscreen(),o.addClass(n.template,"pswp--supports-fs")):o.removeClass(n.template,"pswp--supports-fs")),A.preloaderEl&&(h(!0),x("beforeChange",function(){clearTimeout(k),k=setTimeout(function(){n.currItem&&n.currItem.loading?n.allowProgressiveImg()&&(!n.currItem.img||n.currItem.img.naturalWidth)||h(!1):h(!0)},A.loadingIndicatorDelay)}),x("imageLoadComplete",function(t,e){n.currItem===e&&h(!0)}))},M.setIdle=function(t){L(f,"ui--idle",b=t)},M.update=function(){D=!(!F||!n.currItem)&&(M.updateIndexIndicator(),A.captionEl&&(A.addCaptionHTMLFn(n.currItem,d),L(d,"caption--empty",!n.currItem.title)),!0),I||s(),i()},M.updateFullscreen=function(t){t&&setTimeout(function(){n.setScrollOffset(0,o.getScrollY())},50),o[(c.isFullscreen()?"add":"remove")+"Class"](n.template,"pswp--fs")},M.updateIndexIndicator=function(){A.counterEl&&(g.innerHTML=n.getCurrentIndex()+1+A.indexIndicatorSep+A.getNumItemsFn())},M.onGlobalTap=function(t){var e=(t=t||window.event).target||t.srcElement;S||(t.detail&&"mouse"===t.detail.pointerType?r(e)?n.close():o.hasClass(e,"pswp__img")&&(1===n.getZoomLevel()&&n.getZoomLevel()<=n.currItem.fitRatio?A.clickToCloseNonZoomable&&n.close():n.toggleDesktopZoom(t.detail.releasePoint)):(A.tapToToggleControls&&(F?M.hideControls():M.showControls()),A.tapToClose&&(o.hasClass(e,"pswp__img")||r(e))&&n.close()))},M.onMouseOver=function(t){t=(t=t||window.event).target||t.srcElement;L(f,"ui--over-close",r(t))},M.hideControls=function(){o.addClass(f,"pswp__ui--hidden"),F=!1},M.showControls=function(){F=!0,D||M.update(),o.removeClass(f,"pswp__ui--hidden")},M.supportsFullscreen=function(){var t=document;return!!(t.exitFullscreen||t.mozCancelFullScreen||t.webkitExitFullscreen||t.msExitFullscreen)},M.getFullscreenAPI=function(){var t,e=document.documentElement,i="fullscreenchange";return e.requestFullscreen?t={enterK:"requestFullscreen",exitK:"exitFullscreen",elementK:"fullscreenElement",eventK:i}:e.mozRequestFullScreen?t={enterK:"mozRequestFullScreen",exitK:"mozCancelFullScreen",elementK:"mozFullScreenElement",eventK:"moz"+i}:e.webkitRequestFullscreen?t={enterK:"webkitRequestFullscreen",exitK:"webkitExitFullscreen",elementK:"webkitFullscreenElement",eventK:"webkit"+i}:e.msRequestFullscreen&&(t={enterK:"msRequestFullscreen",exitK:"msExitFullscreen",elementK:"msFullscreenElement",eventK:"MSFullscreenChange"}),t&&(t.enter=function(){if(_=A.closeOnScroll,A.closeOnScroll=!1,"webkitRequestFullscreen"!==this.enterK)return n.template[this.enterK]();n.template[this.enterK](Element.ALLOW_KEYBOARD_INPUT)},t.exit=function(){return A.closeOnScroll=_,document[this.exitK]()},t.isFullscreen=function(){return document[this.elementK]}),t}}});