function onYouTubePlayerAPIReady(){jQuery(document).jQYT("ready")}!function(t,e){"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(t,e){function i(t){var e="length"in t&&t.length,i=rt.type(t);return"function"!==i&&!rt.isWindow(t)&&(!(1!==t.nodeType||!e)||("array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t))}function n(t,e,i){if(rt.isFunction(e))return rt.grep(t,function(t,n){return!!e.call(t,n,t)!==i});if(e.nodeType)return rt.grep(t,function(t){return t===e!==i});if("string"==typeof e){if(pt.test(e))return rt.filter(e,t,i);e=rt.filter(e,t)}return rt.grep(t,function(t){return rt.inArray(t,e)>=0!==i})}function r(t,e){do t=t[e];while(t&&1!==t.nodeType);return t}function a(t){var e=wt[t]={};return rt.each(t.match(bt)||[],function(t,i){e[i]=!0}),e}function s(){ft.addEventListener?(ft.removeEventListener("DOMContentLoaded",o,!1),t.removeEventListener("load",o,!1)):(ft.detachEvent("onreadystatechange",o),t.detachEvent("onload",o))}function o(){(ft.addEventListener||"load"===event.type||"complete"===ft.readyState)&&(s(),rt.ready())}function l(t,e,i){if(void 0===i&&1===t.nodeType){var n="data-"+e.replace(St,"-$1").toLowerCase();if(i=t.getAttribute(n),"string"==typeof i){try{i="true"===i||"false"!==i&&("null"===i?null:+i+""===i?+i:_t.test(i)?rt.parseJSON(i):i)}catch(r){}rt.data(t,e,i)}else i=void 0}return i}function c(t){var e;for(e in t)if(("data"!==e||!rt.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function h(t,e,i,n){if(rt.acceptData(t)){var r,a,s=rt.expando,o=t.nodeType,l=o?rt.cache:t,c=o?t[s]:t[s]&&s;if(c&&l[c]&&(n||l[c].data)||void 0!==i||"string"!=typeof e)return c||(c=o?t[s]=X.pop()||rt.guid++:s),l[c]||(l[c]=o?{}:{toJSON:rt.noop}),"object"!=typeof e&&"function"!=typeof e||(n?l[c]=rt.extend(l[c],e):l[c].data=rt.extend(l[c].data,e)),a=l[c],n||(a.data||(a.data={}),a=a.data),void 0!==i&&(a[rt.camelCase(e)]=i),"string"==typeof e?(r=a[e],null==r&&(r=a[rt.camelCase(e)])):r=a,r}}function d(t,e,i){if(rt.acceptData(t)){var n,r,a=t.nodeType,s=a?rt.cache:t,o=a?t[rt.expando]:rt.expando;if(s[o]){if(e&&(n=i?s[o]:s[o].data)){rt.isArray(e)?e=e.concat(rt.map(e,rt.camelCase)):e in n?e=[e]:(e=rt.camelCase(e),e=e in n?[e]:e.split(" ")),r=e.length;for(;r--;)delete n[e[r]];if(i?!c(n):!rt.isEmptyObject(n))return}(i||(delete s[o].data,c(s[o])))&&(a?rt.cleanData([t],!0):it.deleteExpando||s!=s.window?delete s[o]:s[o]=null)}}}function p(){return!0}function u(){return!1}function f(){try{return ft.activeElement}catch(t){}}function m(t){var e=Ot.split("|"),i=t.createDocumentFragment();if(i.createElement)for(;e.length;)i.createElement(e.pop());return i}function g(t,e){var i,n,r=0,a=typeof t.getElementsByTagName!==Et?t.getElementsByTagName(e||"*"):typeof t.querySelectorAll!==Et?t.querySelectorAll(e||"*"):void 0;if(!a)for(a=[],i=t.childNodes||t;null!=(n=i[r]);r++)!e||rt.nodeName(n,e)?a.push(n):rt.merge(a,g(n,e));return void 0===e||e&&rt.nodeName(t,e)?rt.merge([t],a):a}function v(t){Pt.test(t.type)&&(t.defaultChecked=t.checked)}function y(t,e){return rt.nodeName(t,"table")&&rt.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function b(t){return t.type=(null!==rt.find.attr(t,"type"))+"/"+t.type,t}function w(t){var e=Yt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function k(t,e){for(var i,n=0;null!=(i=t[n]);n++)rt._data(i,"globalEval",!e||rt._data(e[n],"globalEval"))}function x(t,e){if(1===e.nodeType&&rt.hasData(t)){var i,n,r,a=rt._data(t),s=rt._data(e,a),o=a.events;if(o){delete s.handle,s.events={};for(i in o)for(n=0,r=o[i].length;n")).appendTo(e.documentElement),e=(Kt[0].contentWindow||Kt[0].contentDocument).document,e.write(),e.close(),i=_(t,e),Kt.detach()),Jt[t]=i),i}function C(t,e){return{get:function(){var i=t();if(null!=i)return i?void delete this.get:(this.get=e).apply(this,arguments)}}}function T(t,e){if(e in t)return e;for(var i=e.charAt(0).toUpperCase()+e.slice(1),n=e,r=pe.length;r--;)if(e=pe[r]+i,e in t)return e;return n}function D(t,e){for(var i,n,r,a=[],s=0,o=t.length;s=0&&i=0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},isPlainObject:function(t){var e;if(!t||"object"!==rt.type(t)||t.nodeType||rt.isWindow(t))return!1;try{if(t.constructor&&!et.call(t,"constructor")&&!et.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(i){return!1}if(it.ownLast)for(e in t)return et.call(t,e);for(e in t);return void 0===e||et.call(t,e)},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?J[tt.call(t)]||"object":typeof t},globalEval:function(e){e&&rt.trim(e)&&(t.execScript||function(e){t.eval.call(t,e)})(e)},camelCase:function(t){return t.replace(st,"ms-").replace(ot,lt)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,n){var r,a=0,s=t.length,o=i(t);if(n){if(o)for(;ax.cacheLength&&delete t[e.shift()],t[i+" "]=n}var e=[];return t}function n(t){return t[V]=!0,t}function r(t){var e=M.createElement("div");try{return!!t(e)}catch(i){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function a(t,e){for(var i=t.split("|"),n=t.length;n--;)x.attrHandle[i[n]]=e}function s(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||Y)-(~t.sourceIndex||Y);if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function o(t){return function(e){var i=e.nodeName.toLowerCase();return"input"===i&&e.type===t}}function l(t){return function(e){var i=e.nodeName.toLowerCase();return("input"===i||"button"===i)&&e.type===t}}function c(t){return n(function(e){return e=+e,n(function(i,n){for(var r,a=t([],i.length,e),s=a.length;s--;)i[r=a[s]]&&(i[r]=!(n[r]=i[r]))})})}function h(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function d(){}function p(t){for(var e=0,i=t.length,n="";e1?function(e,i,n){for(var r=t.length;r--;)if(!t[r](e,i,n))return!1;return!0}:t[0]}function m(t,i,n){for(var r=0,a=i.length;r-1&&(n[c]=!(s[c]=d))}}else b=g(b===s?b.splice(f,b.length):b),a?a(null,s,b,l):K.apply(s,b)})}function y(t){for(var e,i,n,r=t.length,a=x.relative[t[0].type],s=a||x.relative[" "],o=a?1:0,l=u(function(t){return t===e},s,!0),c=u(function(t){return tt(e,t)>-1},s,!0),h=[function(t,i,n){var r=!a&&(n||i!==D)||((e=i).nodeType?l(t,i,n):c(t,i,n));return e=null,r}];o1&&f(h),o>1&&p(t.slice(0,o-1).concat({value:" "===t[o-2].type?"*":""})).replace(lt,"$1"),i,o0,a=t.length>0,s=function(n,s,o,l,c){var h,d,p,u=0,f="0",m=n&&[],v=[],y=D,b=n||a&&x.find.TAG("*",c),w=Q+=null==y?1:Math.random()||.1,k=b.length;for(c&&(D=s!==M&&s);f!==k&&null!=(h=b[f]);f++){if(a&&h){for(d=0;p=t[d++];)if(p(h,s,o)){l.push(h);break}c&&(Q=w)}r&&((h=!p&&h)&&u--,n&&m.push(h))}if(u+=f,r&&f!==u){for(d=0;p=i[d++];)p(m,v,s,o);if(n){if(u>0)for(;f--;)m[f]||v[f]||(v[f]=U.call(l));v=g(v)}K.apply(l,v),c&&!n&&v.length>0&&u+i.length>1&&e.uniqueSort(l)}return c&&(Q=w,D=y),m};return r?n(s):s}var w,k,x,E,_,S,C,T,D,A,P,N,M,I,F,j,O,L,H,V="sizzle"+1*new Date,R=t.document,Q=0,z=0,B=i(),$=i(),q=i(),W=function(t,e){return t===e&&(P=!0),0},Y=1<<31,X={}.hasOwnProperty,G=[],U=G.pop,Z=G.push,K=G.push,J=G.slice,tt=function(t,e){for(var i=0,n=t.length;i+~]|"+it+")"+it+"*"),dt=new RegExp("="+it+"*([^\\]'\"]*?)"+it+"*\\]","g"),pt=new RegExp(st),ut=new RegExp("^"+rt+"$"),ft={ID:new RegExp("^#("+nt+")"),CLASS:new RegExp("^\\.("+nt+")"),TAG:new RegExp("^("+nt.replace("w","w*")+")"),ATTR:new RegExp("^"+at),PSEUDO:new RegExp("^"+st),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+it+"*(even|odd|(([+-]|)(\\d*)n|)"+it+"*(?:([+-]|)"+it+"*(\\d+)|))"+it+"*\\)|)","i"),bool:new RegExp("^(?:"+et+")$","i"),needsContext:new RegExp("^"+it+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+it+"*((?:-\\d)?\\d*)"+it+"*\\)|)(?=[^-]|$)","i")},mt=/^(?:input|select|textarea|button)$/i,gt=/^h\d$/i,vt=/^[^{]+\{\s*\[native \w/,yt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,bt=/[+~]/,wt=/'|\\/g,kt=new RegExp("\\\\([\\da-f]{1,6}"+it+"?|("+it+")|.)","ig"),xt=function(t,e,i){var n="0x"+e-65536;return n!==n||i?e:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},Et=function(){N()};try{K.apply(G=J.call(R.childNodes),R.childNodes),G[R.childNodes.length].nodeType}catch(_t){K={apply:G.length?function(t,e){Z.apply(t,J.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}k=e.support={},_=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},N=e.setDocument=function(t){var e,i,n=t?t.ownerDocument||t:R;return n!==M&&9===n.nodeType&&n.documentElement?(M=n,I=n.documentElement,i=n.defaultView,i&&i!==i.top&&(i.addEventListener?i.addEventListener("unload",Et,!1):i.attachEvent&&i.attachEvent("onunload",Et)),F=!_(n),k.attributes=r(function(t){return t.className="i",!t.getAttribute("className")}),k.getElementsByTagName=r(function(t){return t.appendChild(n.createComment("")),!t.getElementsByTagName("*").length}),k.getElementsByClassName=vt.test(n.getElementsByClassName),k.getById=r(function(t){return I.appendChild(t).id=V,!n.getElementsByName||!n.getElementsByName(V).length}),k.getById?(x.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&F){var i=e.getElementById(t);return i&&i.parentNode?[i]:[]}},x.filter.ID=function(t){var e=t.replace(kt,xt);return function(t){return t.getAttribute("id")===e}}):(delete x.find.ID,x.filter.ID=function(t){var e=t.replace(kt,xt);return function(t){var i="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}}),x.find.TAG=k.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):k.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],r=0,a=e.getElementsByTagName(t);if("*"===t){for(;i=a[r++];)1===i.nodeType&&n.push(i);return n}return a},x.find.CLASS=k.getElementsByClassName&&function(t,e){if(F)return e.getElementsByClassName(t)},O=[],j=[],(k.qsa=vt.test(n.querySelectorAll))&&(r(function(t){I.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&j.push("[*^$]="+it+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||j.push("\\["+it+"*(?:value|"+et+")"),t.querySelectorAll("[id~="+V+"-]").length||j.push("~="),t.querySelectorAll(":checked").length||j.push(":checked"),t.querySelectorAll("a#"+V+"+*").length||j.push(".#.+[+~]")}),r(function(t){var e=n.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&j.push("name"+it+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||j.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),j.push(",.*:")})),(k.matchesSelector=vt.test(L=I.matches||I.webkitMatchesSelector||I.mozMatchesSelector||I.oMatchesSelector||I.msMatchesSelector))&&r(function(t){k.disconnectedMatch=L.call(t,"div"),L.call(t,"[s!='']:x"),O.push("!=",st)}),j=j.length&&new RegExp(j.join("|")),O=O.length&&new RegExp(O.join("|")),e=vt.test(I.compareDocumentPosition),H=e||vt.test(I.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},W=e?function(t,e){if(t===e)return P=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i?i:(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&i||!k.sortDetached&&e.compareDocumentPosition(t)===i?t===n||t.ownerDocument===R&&H(R,t)?-1:e===n||e.ownerDocument===R&&H(R,e)?1:A?tt(A,t)-tt(A,e):0:4&i?-1:1)}:function(t,e){if(t===e)return P=!0,0;var i,r=0,a=t.parentNode,o=e.parentNode,l=[t],c=[e];if(!a||!o)return t===n?-1:e===n?1:a?-1:o?1:A?tt(A,t)-tt(A,e):0;if(a===o)return s(t,e);for(i=t;i=i.parentNode;)l.unshift(i);for(i=e;i=i.parentNode;)c.unshift(i);for(;l[r]===c[r];)r++;return r?s(l[r],c[r]):l[r]===R?-1:c[r]===R?1:0},n):M},e.matches=function(t,i){return e(t,null,null,i)},e.matchesSelector=function(t,i){if((t.ownerDocument||t)!==M&&N(t),i=i.replace(dt,"='$1']"),k.matchesSelector&&F&&(!O||!O.test(i))&&(!j||!j.test(i)))try{var n=L.call(t,i);if(n||k.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(r){}return e(i,M,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==M&&N(t),H(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==M&&N(t);var i=x.attrHandle[e.toLowerCase()],n=i&&X.call(x.attrHandle,e.toLowerCase())?i(t,e,!F):void 0;return void 0!==n?n:k.attributes||!F?t.getAttribute(e):(n=t.getAttributeNode(e))&&n.specified?n.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,i=[],n=0,r=0;if(P=!k.detectDuplicates,A=!k.sortStable&&t.slice(0),t.sort(W),P){for(;e=t[r++];)e===t[r]&&(n=i.push(r));for(;n--;)t.splice(i[n],1)}return A=null,t},E=e.getText=function(t){var e,i="",n=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=E(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[n++];)i+=E(e);return i},x=e.selectors={cacheLength:50,createPseudo:n,match:ft,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(kt,xt),t[3]=(t[3]||t[4]||t[5]||"").replace(kt,xt),"~="===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]||e.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]&&e.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return ft.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&pt.test(i)&&(e=S(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(kt,xt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=B[t+" "];return e||(e=new RegExp("(^|"+it+")"+t+"("+it+"|$)"))&&B(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,i,n){return function(r){var a=e.attr(r,t);return null==a?"!="===i:!i||(a+="","="===i?a===n:"!="===i?a!==n:"^="===i?n&&0===a.indexOf(n):"*="===i?n&&a.indexOf(n)>-1:"$="===i?n&&a.slice(-n.length)===n:"~="===i?(" "+a.replace(ot," ")+" ").indexOf(n)>-1:"|="===i&&(a===n||a.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,i,n,r){var a="nth"!==t.slice(0,3),s="last"!==t.slice(-4),o="of-type"===e;return 1===n&&0===r?function(t){return!!t.parentNode}:function(e,i,l){var c,h,d,p,u,f,m=a!==s?"nextSibling":"previousSibling",g=e.parentNode,v=o&&e.nodeName.toLowerCase(),y=!l&&!o;if(g){if(a){for(;m;){for(d=e;d=d[m];)if(o?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;f=m="only"===t&&!f&&"nextSibling"}return!0}if(f=[s?g.firstChild:g.lastChild],s&&y){for(h=g[V]||(g[V]={}),c=h[t]||[],u=c[0]===Q&&c[1],p=c[0]===Q&&c[2],d=u&&g.childNodes[u];d=++u&&d&&d[m]||(p=u=0)||f.pop();)if(1===d.nodeType&&++p&&d===e){h[t]=[Q,u,p];break}}else if(y&&(c=(e[V]||(e[V]={}))[t])&&c[0]===Q)p=c[1];else for(;(d=++u&&d&&d[m]||(p=u=0)||f.pop())&&((o?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++p||(y&&((d[V]||(d[V]={}))[t]=[Q,p]),d!==e)););return p-=r,p===n||p%n===0&&p/n>=0}}},PSEUDO:function(t,i){var r,a=x.pseudos[t]||x.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return a[V]?a(i):a.length>1?(r=[t,t,"",i],x.setFilters.hasOwnProperty(t.toLowerCase())?n(function(t,e){for(var n,r=a(t,i),s=r.length;s--;)n=tt(t,r[s]),t[n]=!(e[n]=r[s])}):function(t){return a(t,0,r)}):a}},pseudos:{not:n(function(t){var e=[],i=[],r=C(t.replace(lt,"$1"));return r[V]?n(function(t,e,i,n){for(var a,s=r(t,null,n,[]),o=t.length;o--;)(a=s[o])&&(t[o]=!(e[o]=a))}):function(t,n,a){return e[0]=t,r(e,null,a,i),e[0]=null,!i.pop()}}),has:n(function(t){return function(i){return e(t,i).length>0}}),contains:n(function(t){return t=t.replace(kt,xt),function(e){return(e.textContent||e.innerText||E(e)).indexOf(t)>-1}}),lang:n(function(t){return ut.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(kt,xt).toLowerCase(),function(e){var i;do if(i=F?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return i=i.toLowerCase(),i===t||0===i.indexOf(t+"-");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var i=t.location&&t.location.hash;return i&&i.slice(1)===e.id},root:function(t){return t===I},focus:function(t){return t===M.activeElement&&(!M.hasFocus||M.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return t.disabled===!1},disabled:function(t){return t.disabled===!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,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!x.pseudos.empty(t)},header:function(t){return gt.test(t.nodeName)},input:function(t){return mt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:c(function(){return[0]}),last:c(function(t,e){return[e-1]}),eq:c(function(t,e,i){return[i<0?i+e:i]}),even:c(function(t,e){for(var i=0;i=0;)t.push(n);return t}),gt:c(function(t,e,i){for(var n=i<0?i+e:i;++n2&&"ID"===(s=a[0]).type&&k.getById&&9===e.nodeType&&F&&x.relative[a[1].type]){if(e=(x.find.ID(s.matches[0].replace(kt,xt),e)||[])[0],!e)return i;c&&(e=e.parentNode),t=t.slice(a.shift().value.length)}for(r=ft.needsContext.test(t)?0:a.length;r--&&(s=a[r],!x.relative[o=s.type]);)if((l=x.find[o])&&(n=l(s.matches[0].replace(kt,xt),bt.test(a[0].type)&&h(e.parentNode)||e))){if(a.splice(r,1),t=n.length&&p(a),!t)return K.apply(i,n),i;break}}return(c||C(t,d))(n,e,!F,i,bt.test(t)&&h(e.parentNode)||e),i},k.sortStable=V.split("").sort(W).join("")===V,k.detectDuplicates=!!P,N(),k.sortDetached=r(function(t){return 1&t.compareDocumentPosition(M.createElement("div"))}),r(function(t){return t.innerHTML="","#"===t.firstChild.getAttribute("href")})||a("type|href|height|width",function(t,e,i){if(!i)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),k.attributes&&r(function(t){return t.innerHTML="",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||a("value",function(t,e,i){if(!i&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),r(function(t){return null==t.getAttribute("disabled")})||a(et,function(t,e,i){var n;if(!i)return t[e]===!0?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null}),e}(t);rt.find=ct,rt.expr=ct.selectors,rt.expr[":"]=rt.expr.pseudos,rt.unique=ct.uniqueSort,rt.text=ct.getText,rt.isXMLDoc=ct.isXML,rt.contains=ct.contains;var ht=rt.expr.match.needsContext,dt=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,pt=/^.[^:#\[\.,]*$/;rt.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?rt.find.matchesSelector(n,t)?[n]:[]:rt.find.matches(t,rt.grep(e,function(t){return 1===t.nodeType}))},rt.fn.extend({find:function(t){var e,i=[],n=this,r=n.length;if("string"!=typeof t)return this.pushStack(rt(t).filter(function(){for(e=0;e1?rt.unique(i):i),i.selector=this.selector?this.selector+" "+t:t,i},filter:function(t){return this.pushStack(n(this,t||[],!1))},not:function(t){return this.pushStack(n(this,t||[],!0))},is:function(t){return!!n(this,"string"==typeof t&&ht.test(t)?rt(t):t||[],!1).length}});var ut,ft=t.document,mt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,gt=rt.fn.init=function(t,e){var i,n;if(!t)return this;if("string"==typeof t){if(i="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:mt.exec(t),!i||!i[1]&&e)return!e||e.jquery?(e||ut).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof rt?e[0]:e,rt.merge(this,rt.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:ft,!0)),dt.test(i[1])&&rt.isPlainObject(e))for(i in e)rt.isFunction(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}if(n=ft.getElementById(i[2]),n&&n.parentNode){if(n.id!==i[2])return ut.find(t);this.length=1,this[0]=n}return this.context=ft,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):rt.isFunction(t)?"undefined"!=typeof ut.ready?ut.ready(t):t(rt):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),rt.makeArray(t,this))};gt.prototype=rt.fn,ut=rt(ft);var vt=/^(?:parents|prev(?:Until|All))/,yt={children:!0,contents:!0,next:!0,prev:!0};rt.extend({dir:function(t,e,i){for(var n=[],r=t[e];r&&9!==r.nodeType&&(void 0===i||1!==r.nodeType||!rt(r).is(i));)1===r.nodeType&&n.push(r),r=r[e];return n},sibling:function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i}}),rt.fn.extend({has:function(t){var e,i=rt(t,this),n=i.length;return this.filter(function(){for(e=0;e-1:1===i.nodeType&&rt.find.matchesSelector(i,t))){a.push(i);break}return this.pushStack(a.length>1?rt.unique(a):a)},index:function(t){return t?"string"==typeof t?rt.inArray(this[0],rt(t)):rt.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(rt.unique(rt.merge(this.get(),rt(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),rt.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return rt.dir(t,"parentNode")},parentsUntil:function(t,e,i){return rt.dir(t,"parentNode",i)},next:function(t){return r(t,"nextSibling")},prev:function(t){return r(t,"previousSibling")},nextAll:function(t){return rt.dir(t,"nextSibling")},prevAll:function(t){return rt.dir(t,"previousSibling")},nextUntil:function(t,e,i){return rt.dir(t,"nextSibling",i)},prevUntil:function(t,e,i){return rt.dir(t,"previousSibling",i)},siblings:function(t){return rt.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return rt.sibling(t.firstChild)},contents:function(t){return rt.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:rt.merge([],t.childNodes)}},function(t,e){rt.fn[t]=function(i,n){var r=rt.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(r=rt.filter(n,r)),this.length>1&&(yt[t]||(r=rt.unique(r)),vt.test(t)&&(r=r.reverse())),this.pushStack(r)}});var bt=/\S+/g,wt={};rt.Callbacks=function(t){t="string"==typeof t?wt[t]||a(t):rt.extend({},t);var e,i,n,r,s,o,l=[],c=!t.once&&[],h=function(a){for(i=t.memory&&a,n=!0,s=o||0,o=0,r=l.length,e=!0;l&&s-1;)l.splice(n,1),e&&(n<=r&&r--,n<=s&&s--)}),this},has:function(t){return t?rt.inArray(t,l)>-1:!(!l||!l.length)},empty:function(){return l=[],r=0,this},disable:function(){return l=c=i=void 0,this},disabled:function(){return!l},lock:function(){return c=void 0,i||d.disable(),this},locked:function(){return!c},fireWith:function(t,i){return!l||n&&!c||(i=i||[],i=[t,i.slice?i.slice():i],e?c.push(i):h(i)),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!n}};return d},rt.extend({Deferred:function(t){var e=[["resolve","done",rt.Callbacks("once memory"),"resolved"],["reject","fail",rt.Callbacks("once memory"),"rejected"],["notify","progress",rt.Callbacks("memory")]],i="pending",n={state:function(){return i},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var t=arguments;return rt.Deferred(function(i){rt.each(e,function(e,a){var s=rt.isFunction(t[e])&&t[e];r[a[1]](function(){var t=s&&s.apply(this,arguments);t&&rt.isFunction(t.promise)?t.promise().done(i.resolve).fail(i.reject).progress(i.notify):i[a[0]+"With"](this===n?i.promise():this,s?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?rt.extend(t,n):n}},r={};return n.pipe=n.then,rt.each(e,function(t,a){var s=a[2],o=a[3];n[a[1]]=s.add,o&&s.add(function(){i=o},e[1^t][2].disable,e[2][2].lock),r[a[0]]=function(){return r[a[0]+"With"](this===r?n:this,arguments),this},r[a[0]+"With"]=s.fireWith}),n.promise(r),t&&t.call(r,r),r},when:function(t){var e,i,n,r=0,a=G.call(arguments),s=a.length,o=1!==s||t&&rt.isFunction(t.promise)?s:0,l=1===o?t:rt.Deferred(),c=function(t,i,n){return function(r){i[t]=this,n[t]=arguments.length>1?G.call(arguments):r,n===e?l.notifyWith(i,n):--o||l.resolveWith(i,n)}};if(s>1)for(e=new Array(s),i=new Array(s),n=new Array(s);r0||(kt.resolveWith(ft,[rt]),rt.fn.triggerHandler&&(rt(ft).triggerHandler("ready"),rt(ft).off("ready")))}}}),rt.ready.promise=function(e){if(!kt)if(kt=rt.Deferred(),"complete"===ft.readyState)setTimeout(rt.ready);else if(ft.addEventListener)ft.addEventListener("DOMContentLoaded",o,!1),t.addEventListener("load",o,!1);else{ft.attachEvent("onreadystatechange",o),t.attachEvent("onload",o);var i=!1;try{i=null==t.frameElement&&ft.documentElement}catch(n){}i&&i.doScroll&&!function r(){if(!rt.isReady){try{i.doScroll("left")}catch(t){return setTimeout(r,50)}s(),rt.ready()}}()}return kt.promise(e)};var xt,Et="undefined";for(xt in rt(it))break;it.ownLast="0"!==xt,it.inlineBlockNeedsLayout=!1,rt(function(){var t,e,i,n;i=ft.getElementsByTagName("body")[0],i&&i.style&&(e=ft.createElement("div"),n=ft.createElement("div"),n.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",i.appendChild(n).appendChild(e),typeof e.style.zoom!==Et&&(e.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",it.inlineBlockNeedsLayout=t=3===e.offsetWidth,t&&(i.style.zoom=1)),i.removeChild(n))}),function(){var t=ft.createElement("div");if(null==it.deleteExpando){it.deleteExpando=!0;try{delete t.test}catch(e){it.deleteExpando=!1}}t=null}(),rt.acceptData=function(t){var e=rt.noData[(t.nodeName+" ").toLowerCase()],i=+t.nodeType||1;return(1===i||9===i)&&(!e||e!==!0&&t.getAttribute("classid")===e)};var _t=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,St=/([A-Z])/g;rt.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(t){return t=t.nodeType?rt.cache[t[rt.expando]]:t[rt.expando],!!t&&!c(t)},data:function(t,e,i){return h(t,e,i)},removeData:function(t,e){return d(t,e)},_data:function(t,e,i){return h(t,e,i,!0)},_removeData:function(t,e){return d(t,e,!0)}}),rt.fn.extend({data:function(t,e){var i,n,r,a=this[0],s=a&&a.attributes;if(void 0===t){if(this.length&&(r=rt.data(a),1===a.nodeType&&!rt._data(a,"parsedAttrs"))){for(i=s.length;i--;)s[i]&&(n=s[i].name,0===n.indexOf("data-")&&(n=rt.camelCase(n.slice(5)),l(a,n,r[n])));rt._data(a,"parsedAttrs",!0)}return r}return"object"==typeof t?this.each(function(){rt.data(this,t)}):arguments.length>1?this.each(function(){rt.data(this,t,e)}):a?l(a,t,rt.data(a,t)):void 0},removeData:function(t){return this.each(function(){rt.removeData(this,t)})}}),rt.extend({queue:function(t,e,i){var n;if(t)return e=(e||"fx")+"queue",n=rt._data(t,e),i&&(!n||rt.isArray(i)?n=rt._data(t,e,rt.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=rt.queue(t,e),n=i.length,r=i.shift(),a=rt._queueHooks(t,e),s=function(){rt.dequeue(t,e)};"inprogress"===r&&(r=i.shift(),n--),r&&("fx"===e&&i.unshift("inprogress"),delete a.stop,r.call(t,s,a)),!n&&a&&a.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return rt._data(t,i)||rt._data(t,i,{empty:rt.Callbacks("once memory").add(function(){rt._removeData(t,e+"queue"),rt._removeData(t,i)})})}}),rt.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length
a",it.leadingWhitespace=3===e.firstChild.nodeType,it.tbody=!e.getElementsByTagName("tbody").length,it.htmlSerialize=!!e.getElementsByTagName("link").length,it.html5Clone="<:nav>"!==ft.createElement("nav").cloneNode(!0).outerHTML,t.type="checkbox",t.checked=!0,i.appendChild(t),it.appendChecked=t.checked,e.innerHTML="",it.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,i.appendChild(e),e.innerHTML="",it.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,it.noCloneEvent=!0,e.attachEvent&&(e.attachEvent("onclick",function(){it.noCloneEvent=!1}),e.cloneNode(!0).click()),null==it.deleteExpando){it.deleteExpando=!0;try{delete e.test}catch(n){it.deleteExpando=!1}}}(),function(){var e,i,n=ft.createElement("div");for(e in{submit:!0,change:!0,focusin:!0})i="on"+e,(it[e+"Bubbles"]=i in t)||(n.setAttribute(i,"t"),it[e+"Bubbles"]=n.attributes[i].expando===!1);n=null}();var Nt=/^(?:input|select|textarea)$/i,Mt=/^key/,It=/^(?:mouse|pointer|contextmenu)|click/,Ft=/^(?:focusinfocus|focusoutblur)$/,jt=/^([^.]*)(?:\.(.+)|)$/;rt.event={global:{},add:function(t,e,i,n,r){var a,s,o,l,c,h,d,p,u,f,m,g=rt._data(t);if(g){for(i.handler&&(l=i,i=l.handler,r=l.selector),i.guid||(i.guid=rt.guid++),(s=g.events)||(s=g.events={}),(h=g.handle)||(h=g.handle=function(t){return typeof rt===Et||t&&rt.event.triggered===t.type?void 0:rt.event.dispatch.apply(h.elem,arguments)},h.elem=t),e=(e||"").match(bt)||[""],o=e.length;o--;)a=jt.exec(e[o])||[],u=m=a[1],f=(a[2]||"").split(".").sort(),u&&(c=rt.event.special[u]||{},u=(r?c.delegateType:c.bindType)||u,c=rt.event.special[u]||{},d=rt.extend({type:u,origType:m,data:n,handler:i,guid:i.guid,selector:r,needsContext:r&&rt.expr.match.needsContext.test(r),namespace:f.join(".")},l),(p=s[u])||(p=s[u]=[],p.delegateCount=0,c.setup&&c.setup.call(t,n,f,h)!==!1||(t.addEventListener?t.addEventListener(u,h,!1):t.attachEvent&&t.attachEvent("on"+u,h))),c.add&&(c.add.call(t,d),d.handler.guid||(d.handler.guid=i.guid)),r?p.splice(p.delegateCount++,0,d):p.push(d),rt.event.global[u]=!0);t=null}},remove:function(t,e,i,n,r){var a,s,o,l,c,h,d,p,u,f,m,g=rt.hasData(t)&&rt._data(t);if(g&&(h=g.events)){for(e=(e||"").match(bt)||[""],c=e.length;c--;)if(o=jt.exec(e[c])||[],u=m=o[1],f=(o[2]||"").split(".").sort(),u){for(d=rt.event.special[u]||{},u=(n?d.delegateType:d.bindType)||u,p=h[u]||[],o=o[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=a=p.length;a--;)s=p[a],!r&&m!==s.origType||i&&i.guid!==s.guid||o&&!o.test(s.namespace)||n&&n!==s.selector&&("**"!==n||!s.selector)||(p.splice(a,1),s.selector&&p.delegateCount--,d.remove&&d.remove.call(t,s));l&&!p.length&&(d.teardown&&d.teardown.call(t,f,g.handle)!==!1||rt.removeEvent(t,u,g.handle),delete h[u])}else for(u in h)rt.event.remove(t,u+e[c],i,n,!0);rt.isEmptyObject(h)&&(delete g.handle,rt._removeData(t,"events"))}},trigger:function(e,i,n,r){var a,s,o,l,c,h,d,p=[n||ft],u=et.call(e,"type")?e.type:e,f=et.call(e,"namespace")?e.namespace.split("."):[];if(o=h=n=n||ft,3!==n.nodeType&&8!==n.nodeType&&!Ft.test(u+rt.event.triggered)&&(u.indexOf(".")>=0&&(f=u.split("."),u=f.shift(),f.sort()),s=u.indexOf(":")<0&&"on"+u,e=e[rt.expando]?e:new rt.Event(u,"object"==typeof e&&e),e.isTrigger=r?2:3,e.namespace=f.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),i=null==i?[e]:rt.makeArray(i,[e]),c=rt.event.special[u]||{},r||!c.trigger||c.trigger.apply(n,i)!==!1)){if(!r&&!c.noBubble&&!rt.isWindow(n)){for(l=c.delegateType||u,Ft.test(l+u)||(o=o.parentNode);o;o=o.parentNode)p.push(o),h=o;h===(n.ownerDocument||ft)&&p.push(h.defaultView||h.parentWindow||t)}for(d=0;(o=p[d++])&&!e.isPropagationStopped();)e.type=d>1?l:c.bindType||u,a=(rt._data(o,"events")||{})[e.type]&&rt._data(o,"handle"),a&&a.apply(o,i),a=s&&o[s],a&&a.apply&&rt.acceptData(o)&&(e.result=a.apply(o,i),e.result===!1&&e.preventDefault());if(e.type=u,!r&&!e.isDefaultPrevented()&&(!c._default||c._default.apply(p.pop(),i)===!1)&&rt.acceptData(n)&&s&&n[u]&&!rt.isWindow(n)){h=n[s],h&&(n[s]=null),rt.event.triggered=u;try{n[u]()}catch(m){}rt.event.triggered=void 0,h&&(n[s]=h)}return e.result}},dispatch:function(t){t=rt.event.fix(t);var e,i,n,r,a,s=[],o=G.call(arguments),l=(rt._data(this,"events")||{})[t.type]||[],c=rt.event.special[t.type]||{};if(o[0]=t,t.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,t)!==!1){for(s=rt.event.handlers.call(this,t,l),e=0;(r=s[e++])&&!t.isPropagationStopped();)for(t.currentTarget=r.elem,a=0;(n=r.handlers[a++])&&!t.isImmediatePropagationStopped();)t.namespace_re&&!t.namespace_re.test(n.namespace)||(t.handleObj=n,t.data=n.data,i=((rt.event.special[n.origType]||{}).handle||n.handler).apply(r.elem,o),void 0!==i&&(t.result=i)===!1&&(t.preventDefault(),t.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,t),t.result}},handlers:function(t,e){var i,n,r,a,s=[],o=e.delegateCount,l=t.target;if(o&&l.nodeType&&(!t.button||"click"!==t.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(l.disabled!==!0||"click"!==t.type)){for(r=[],a=0;a=0:rt.find(i,this,null,[l]).length),r[i]&&r.push(n);r.length&&s.push({elem:l,handlers:r})}return o]","i"),Vt=/^\s+/,Rt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Qt=/<([\w:]+)/,zt=/\s*$/g,Gt={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:it.htmlSerialize?[0,"",""]:[1,"X
","
"]},Ut=m(ft),Zt=Ut.appendChild(ft.createElement("div"));Gt.optgroup=Gt.option,Gt.tbody=Gt.tfoot=Gt.colgroup=Gt.caption=Gt.thead,Gt.th=Gt.td,rt.extend({clone:function(t,e,i){var n,r,a,s,o,l=rt.contains(t.ownerDocument,t);if(it.html5Clone||rt.isXMLDoc(t)||!Ht.test("<"+t.nodeName+">")?a=t.cloneNode(!0):(Zt.innerHTML=t.outerHTML,Zt.removeChild(a=Zt.firstChild)),!(it.noCloneEvent&&it.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||rt.isXMLDoc(t)))for(n=g(a),o=g(t),s=0;null!=(r=o[s]);++s)n[s]&&E(r,n[s]);if(e)if(i)for(o=o||g(t),n=n||g(a),s=0;null!=(r=o[s]);s++)x(r,n[s]);else x(t,a);return n=g(a,"script"),n.length>0&&k(n,!l&&g(t,"script")),n=o=r=null,a},buildFragment:function(t,e,i,n){for(var r,a,s,o,l,c,h,d=t.length,p=m(e),u=[],f=0;f")+h[2],r=h[0];r--;)o=o.lastChild;if(!it.leadingWhitespace&&Vt.test(a)&&u.push(e.createTextNode(Vt.exec(a)[0])),!it.tbody)for(a="table"!==l||zt.test(a)?""!==h[1]||zt.test(a)?0:o:o.firstChild,r=a&&a.childNodes.length;r--;)rt.nodeName(c=a.childNodes[r],"tbody")&&!c.childNodes.length&&a.removeChild(c);for(rt.merge(u,o.childNodes),o.textContent="";o.firstChild;)o.removeChild(o.firstChild);o=p.lastChild}else u.push(e.createTextNode(a));for(o&&p.removeChild(o),it.appendChecked||rt.grep(g(u,"input"),v),f=0;a=u[f++];)if((!n||rt.inArray(a,n)===-1)&&(s=rt.contains(a.ownerDocument,a),o=g(p.appendChild(a),"script"),s&&k(o),i))for(r=0;a=o[r++];)Wt.test(a.type||"")&&i.push(a);return o=null,p},cleanData:function(t,e){for(var i,n,r,a,s=0,o=rt.expando,l=rt.cache,c=it.deleteExpando,h=rt.event.special;null!=(i=t[s]);s++)if((e||rt.acceptData(i))&&(r=i[o],a=r&&l[r])){if(a.events)for(n in a.events)h[n]?rt.event.remove(i,n):rt.removeEvent(i,n,a.handle);l[r]&&(delete l[r],c?delete i[o]:typeof i.removeAttribute!==Et?i.removeAttribute(o):i[o]=null,X.push(r))}}}),rt.fn.extend({text:function(t){return At(this,function(t){return void 0===t?rt.text(this):this.empty().append((this[0]&&this[0].ownerDocument||ft).createTextNode(t))},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=y(this,t);e.appendChild(t)}})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=y(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var i,n=t?rt.filter(t,this):this,r=0;null!=(i=n[r]);r++)e||1!==i.nodeType||rt.cleanData(g(i)),i.parentNode&&(e&&rt.contains(i.ownerDocument,i)&&k(g(i,"script")),i.parentNode.removeChild(i));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++){for(1===t.nodeType&&rt.cleanData(g(t,!1));t.firstChild;)t.removeChild(t.firstChild);t.options&&rt.nodeName(t,"select")&&(t.options.length=0)}return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return rt.clone(this,t,e)})},html:function(t){return At(this,function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t)return 1===e.nodeType?e.innerHTML.replace(Lt,""):void 0;if("string"==typeof t&&!$t.test(t)&&(it.htmlSerialize||!Ht.test(t))&&(it.leadingWhitespace||!Vt.test(t))&&!Gt[(Qt.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(Rt,"<$1>");try{for(;i1&&"string"==typeof p&&!it.checkClone&&qt.test(p))return this.each(function(i){var n=h.eq(i);u&&(t[0]=p.call(this,i,n.html())),n.domManip(t,e)});if(c&&(o=rt.buildFragment(t,this[0].ownerDocument,!1,this),i=o.firstChild,1===o.childNodes.length&&(o=i),i)){for(a=rt.map(g(o,"script"),b),r=a.length;l
t
",r=e.getElementsByTagName("td"),r[0].style.cssText="margin:0;border:0;padding:0;display:none",o=0===r[0].offsetHeight,o&&(r[0].style.display="",r[1].style.display="none",o=0===r[0].offsetHeight),i.removeChild(n))}var i,n,r,a,s,o,l;i=ft.createElement("div"),i.innerHTML="
a",r=i.getElementsByTagName("a")[0],n=r&&r.style,n&&(n.cssText="float:left;opacity:.5",it.opacity="0.5"===n.opacity,it.cssFloat=!!n.cssFloat,i.style.backgroundClip="content-box",i.cloneNode(!0).style.backgroundClip="",it.clearCloneStyle="content-box"===i.style.backgroundClip,it.boxSizing=""===n.boxSizing||""===n.MozBoxSizing||""===n.WebkitBoxSizing,rt.extend(it,{reliableHiddenOffsets:function(){return null==o&&e(),o},boxSizingReliable:function(){return null==s&&e(),s},pixelPosition:function(){return null==a&&e(),a},reliableMarginRight:function(){return null==l&&e(),l}}))}(),rt.swap=function(t,e,i,n){var r,a,s={};for(a in e)s[a]=t.style[a],t.style[a]=e[a];r=i.apply(t,n||[]);for(a in e)t.style[a]=s[a];return r};var ae=/alpha\([^)]*\)/i,se=/opacity\s*=\s*([^)]*)/,oe=/^(none|table(?!-c[ea]).+)/,le=new RegExp("^("+Ct+")(.*)$","i"),ce=new RegExp("^([+-])=("+Ct+")","i"),he={position:"absolute",visibility:"hidden",display:"block"},de={letterSpacing:"0",fontWeight:"400"},pe=["Webkit","O","Moz","ms"];rt.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=ee(t,"opacity");return""===i?"1":i}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":it.cssFloat?"cssFloat":"styleFloat"},style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,a,s,o=rt.camelCase(e),l=t.style;if(e=rt.cssProps[o]||(rt.cssProps[o]=T(l,o)),s=rt.cssHooks[e]||rt.cssHooks[o],void 0===i)return s&&"get"in s&&void 0!==(r=s.get(t,!1,n))?r:l[e];if(a=typeof i,"string"===a&&(r=ce.exec(i))&&(i=(r[1]+1)*r[2]+parseFloat(rt.css(t,e)),a="number"),null!=i&&i===i&&("number"!==a||rt.cssNumber[o]||(i+="px"),it.clearCloneStyle||""!==i||0!==e.indexOf("background")||(l[e]="inherit"),!(s&&"set"in s&&void 0===(i=s.set(t,i,n)))))try{l[e]=i}catch(c){}}},css:function(t,e,i,n){var r,a,s,o=rt.camelCase(e);return e=rt.cssProps[o]||(rt.cssProps[o]=T(t.style,o)),s=rt.cssHooks[e]||rt.cssHooks[o],s&&"get"in s&&(a=s.get(t,!0,i)),void 0===a&&(a=ee(t,e,n)),"normal"===a&&e in de&&(a=de[e]),""===i||i?(r=parseFloat(a),i===!0||rt.isNumeric(r)?r||0:a):a}}),rt.each(["height","width"],function(t,e){rt.cssHooks[e]={get:function(t,i,n){if(i)return oe.test(rt.css(t,"display"))&&0===t.offsetWidth?rt.swap(t,he,function(){return N(t,e,n)}):N(t,e,n)},set:function(t,i,n){var r=n&&te(t);return A(t,i,n?P(t,e,n,it.boxSizing&&"border-box"===rt.css(t,"boxSizing",!1,r),r):0)}}}),it.opacity||(rt.cssHooks.opacity={get:function(t,e){return se.test((e&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":e?"1":""},set:function(t,e){var i=t.style,n=t.currentStyle,r=rt.isNumeric(e)?"alpha(opacity="+100*e+")":"",a=n&&n.filter||i.filter||"";i.zoom=1,(e>=1||""===e)&&""===rt.trim(a.replace(ae,""))&&i.removeAttribute&&(i.removeAttribute("filter"),""===e||n&&!n.filter)||(i.filter=ae.test(a)?a.replace(ae,r):a+" "+r)}}),rt.cssHooks.marginRight=C(it.reliableMarginRight,function(t,e){if(e)return rt.swap(t,{display:"inline-block"},ee,[t,"marginRight"])}),rt.each({margin:"",padding:"",border:"Width"},function(t,e){rt.cssHooks[t+e]={expand:function(i){for(var n=0,r={},a="string"==typeof i?i.split(" "):[i];n<4;n++)r[t+Tt[n]+e]=a[n]||a[n-2]||a[0];return r}},ie.test(t)||(rt.cssHooks[t+e].set=A)}),rt.fn.extend({css:function(t,e){return At(this,function(t,e,i){var n,r,a={},s=0;if(rt.isArray(e)){for(n=te(t),r=e.length;s1)},show:function(){return D(this,!0)},hide:function(){return D(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Dt(this)?rt(this).show():rt(this).hide()})}}),rt.Tween=M,M.prototype={constructor:M,init:function(t,e,i,n,r,a){this.elem=t,this.prop=i,this.easing=r||"swing",this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=a||(rt.cssNumber[i]?"":"px")},cur:function(){var t=M.propHooks[this.prop];return t&&t.get?t.get(this):M.propHooks._default.get(this)},run:function(t){var e,i=M.propHooks[this.prop];return this.options.duration?this.pos=e=rt.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.set(this):M.propHooks._default.set(this),this}},M.prototype.init.prototype=M.prototype,M.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=rt.css(t.elem,t.prop,""),e&&"auto"!==e?e:0):t.elem[t.prop]},set:function(t){rt.fx.step[t.prop]?rt.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[rt.cssProps[t.prop]]||rt.cssHooks[t.prop])?rt.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},M.propHooks.scrollTop=M.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},rt.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},rt.fx=M.prototype.init,rt.fx.step={};var ue,fe,me=/^(?:toggle|show|hide)$/,ge=new RegExp("^(?:([+-])=|)("+Ct+")([a-z%]*)$","i"),ve=/queueHooks$/,ye=[O],be={"*":[function(t,e){var i=this.createTween(t,e),n=i.cur(),r=ge.exec(e),a=r&&r[3]||(rt.cssNumber[t]?"":"px"),s=(rt.cssNumber[t]||"px"!==a&&+n)&&ge.exec(rt.css(i.elem,t)),o=1,l=20;if(s&&s[3]!==a){a=a||s[3],r=r||[],s=+n||1;do o=o||".5",s/=o,rt.style(i.elem,t,s+a);while(o!==(o=i.cur()/n)&&1!==o&&--l)}return r&&(s=i.start=+s||+n||0,i.unit=a,i.end=r[1]?s+(r[1]+1)*r[2]:+r[2]),i}]};rt.Animation=rt.extend(H,{tweener:function(t,e){rt.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var i,n=0,r=t.length;n
a",n=e.getElementsByTagName("a")[0],i=ft.createElement("select"),r=i.appendChild(ft.createElement("option")),t=e.getElementsByTagName("input")[0],n.style.cssText="top:1px",it.getSetAttribute="t"!==e.className,it.style=/top/.test(n.getAttribute("style")),it.hrefNormalized="/a"===n.getAttribute("href"),it.checkOn=!!t.value,it.optSelected=r.selected,it.enctype=!!ft.createElement("form").enctype,i.disabled=!0,it.optDisabled=!r.disabled,t=ft.createElement("input"),t.setAttribute("value",""),it.input=""===t.getAttribute("value"),t.value="t",t.setAttribute("type","radio"),it.radioValue="t"===t.value}();var we=/\r/g;rt.fn.extend({val:function(t){var e,i,n,r=this[0];{if(arguments.length)return n=rt.isFunction(t),this.each(function(i){var r;1===this.nodeType&&(r=n?t.call(this,i,rt(this).val()):t,null==r?r="":"number"==typeof r?r+="":rt.isArray(r)&&(r=rt.map(r,function(t){return null==t?"":t+""})),e=rt.valHooks[this.type]||rt.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))});if(r)return e=rt.valHooks[r.type]||rt.valHooks[r.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(i=e.get(r,"value"))?i:(i=r.value,"string"==typeof i?i.replace(we,""):null==i?"":i)}}}),rt.extend({valHooks:{option:{get:function(t){var e=rt.find.attr(t,"value");return null!=e?e:rt.trim(rt.text(t))}},select:{get:function(t){for(var e,i,n=t.options,r=t.selectedIndex,a="select-one"===t.type||r<0,s=a?null:[],o=a?r+1:n.length,l=r<0?o:a?r:0;l=0)try{n.selected=i=!0}catch(o){n.scrollHeight}else n.selected=!1;return i||(t.selectedIndex=-1),r}}}}),rt.each(["radio","checkbox"],function(){rt.valHooks[this]={set:function(t,e){if(rt.isArray(e))return t.checked=rt.inArray(rt(t).val(),e)>=0}},it.checkOn||(rt.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var ke,xe,Ee=rt.expr.attrHandle,_e=/^(?:checked|selected)$/i,Se=it.getSetAttribute,Ce=it.input;rt.fn.extend({attr:function(t,e){return At(this,rt.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){rt.removeAttr(this,t)})}}),rt.extend({attr:function(t,e,i){var n,r,a=t.nodeType;if(t&&3!==a&&8!==a&&2!==a)return typeof t.getAttribute===Et?rt.prop(t,e,i):(1===a&&rt.isXMLDoc(t)||(e=e.toLowerCase(),n=rt.attrHooks[e]||(rt.expr.match.bool.test(e)?xe:ke)),void 0===i?n&&"get"in n&&null!==(r=n.get(t,e))?r:(r=rt.find.attr(t,e),null==r?void 0:r):null!==i?n&&"set"in n&&void 0!==(r=n.set(t,i,e))?r:(t.setAttribute(e,i+""),i):void rt.removeAttr(t,e))},removeAttr:function(t,e){var i,n,r=0,a=e&&e.match(bt);if(a&&1===t.nodeType)for(;i=a[r++];)n=rt.propFix[i]||i,rt.expr.match.bool.test(i)?Ce&&Se||!_e.test(i)?t[n]=!1:t[rt.camelCase("default-"+i)]=t[n]=!1:rt.attr(t,i,""),t.removeAttribute(Se?i:n)},attrHooks:{type:{set:function(t,e){if(!it.radioValue&&"radio"===e&&rt.nodeName(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}}}),xe={set:function(t,e,i){return e===!1?rt.removeAttr(t,i):Ce&&Se||!_e.test(i)?t.setAttribute(!Se&&rt.propFix[i]||i,i):t[rt.camelCase("default-"+i)]=t[i]=!0,i}},rt.each(rt.expr.match.bool.source.match(/\w+/g),function(t,e){var i=Ee[e]||rt.find.attr;Ee[e]=Ce&&Se||!_e.test(e)?function(t,e,n){var r,a;return n||(a=Ee[e],Ee[e]=r,r=null!=i(t,e,n)?e.toLowerCase():null,Ee[e]=a),r}:function(t,e,i){if(!i)return t[rt.camelCase("default-"+e)]?e.toLowerCase():null}}),Ce&&Se||(rt.attrHooks.value={set:function(t,e,i){return rt.nodeName(t,"input")?void(t.defaultValue=e):ke&&ke.set(t,e,i)}}),Se||(ke={set:function(t,e,i){var n=t.getAttributeNode(i);if(n||t.setAttributeNode(n=t.ownerDocument.createAttribute(i)),n.value=e+="","value"===i||e===t.getAttribute(i))return e}},Ee.id=Ee.name=Ee.coords=function(t,e,i){var n;if(!i)return(n=t.getAttributeNode(e))&&""!==n.value?n.value:null},rt.valHooks.button={get:function(t,e){var i=t.getAttributeNode(e);if(i&&i.specified)return i.value},set:ke.set},rt.attrHooks.contenteditable={set:function(t,e,i){ke.set(t,""!==e&&e,i)}},rt.each(["width","height"],function(t,e){rt.attrHooks[e]={set:function(t,i){if(""===i)return t.setAttribute(e,"auto"),i}}})),it.style||(rt.attrHooks.style={get:function(t){return t.style.cssText||void 0},set:function(t,e){return t.style.cssText=e+""}});var Te=/^(?:input|select|textarea|button|object)$/i,De=/^(?:a|area)$/i;rt.fn.extend({prop:function(t,e){return At(this,rt.prop,t,e,arguments.length>1)},removeProp:function(t){return t=rt.propFix[t]||t,this.each(function(){try{this[t]=void 0,delete this[t]}catch(e){}})}}),rt.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(t,e,i){var n,r,a,s=t.nodeType;if(t&&3!==s&&8!==s&&2!==s)return a=1!==s||!rt.isXMLDoc(t),a&&(e=rt.propFix[e]||e,r=rt.propHooks[e]),void 0!==i?r&&"set"in r&&void 0!==(n=r.set(t,i,e))?n:t[e]=i:r&&"get"in r&&null!==(n=r.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=rt.find.attr(t,"tabindex");return e?parseInt(e,10):Te.test(t.nodeName)||De.test(t.nodeName)&&t.href?0:-1}}}}),it.hrefNormalized||rt.each(["href","src"],function(t,e){rt.propHooks[e]={get:function(t){return t.getAttribute(e,4)}}}),it.optSelected||(rt.propHooks.selected={get:function(t){var e=t.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null}}),rt.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){rt.propFix[this.toLowerCase()]=this}),it.enctype||(rt.propFix.enctype="encoding");var Ae=/[\t\r\n\f]/g;rt.fn.extend({addClass:function(t){var e,i,n,r,a,s,o=0,l=this.length,c="string"==typeof t&&t;if(rt.isFunction(t))return this.each(function(e){rt(this).addClass(t.call(this,e,this.className))});if(c)for(e=(t||"").match(bt)||[];o=0;)n=n.replace(" "+r+" "," ");s=t?rt.trim(n):"",i.className!==s&&(i.className=s)}return this},toggleClass:function(t,e){var i=typeof t;return"boolean"==typeof e&&"string"===i?e?this.addClass(t):this.removeClass(t):rt.isFunction(t)?this.each(function(i){rt(this).toggleClass(t.call(this,i,this.className,e),e)}):this.each(function(){if("string"===i)for(var e,n=0,r=rt(this),a=t.match(bt)||[];e=a[n++];)r.hasClass(e)?r.removeClass(e):r.addClass(e);else i!==Et&&"boolean"!==i||(this.className&&rt._data(this,"__className__",this.className),this.className=this.className||t===!1?"":rt._data(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",i=0,n=this.length;i=0)return!0;return!1}}),rt.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){rt.fn[e]=function(t,i){return arguments.length>0?this.on(e,null,t,i):this.trigger(e)}}),rt.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},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)}});var Pe=rt.now(),Ne=/\?/,Me=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;rt.parseJSON=function(e){if(t.JSON&&t.JSON.parse)return t.JSON.parse(e+"");var i,n=null,r=rt.trim(e+"");return r&&!rt.trim(r.replace(Me,function(t,e,r,a){return i&&e&&(n=0),0===n?t:(i=r||e,n+=!a-!r,"")}))?Function("return "+r)():rt.error("Invalid JSON: "+e)},rt.parseXML=function(e){var i,n;if(!e||"string"!=typeof e)return null;try{t.DOMParser?(n=new DOMParser,i=n.parseFromString(e,"text/xml")):(i=new ActiveXObject("Microsoft.XMLDOM"),i.async="false",i.loadXML(e))}catch(r){i=void 0}return i&&i.documentElement&&!i.getElementsByTagName("parsererror").length||rt.error("Invalid XML: "+e),i};var Ie,Fe,je=/#.*$/,Oe=/([?&])_=[^&]*/,Le=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,He=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Ve=/^(?:GET|HEAD)$/,Re=/^\/\//,Qe=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,ze={},Be={},$e="*/".concat("*");try{Fe=location.href}catch(qe){Fe=ft.createElement("a"),Fe.href="",Fe=Fe.href}Ie=Qe.exec(Fe.toLowerCase())||[],rt.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Fe,type:"GET",isLocal:He.test(Ie[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":$e,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":rt.parseJSON,"text xml":rt.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Q(Q(t,rt.ajaxSettings),e):Q(rt.ajaxSettings,t)},ajaxPrefilter:V(ze),ajaxTransport:V(Be),ajax:function(t,e){function i(t,e,i,n){var r,h,v,y,w,x=e;2!==b&&(b=2,o&&clearTimeout(o),c=void 0,s=n||"",k.readyState=t>0?4:0,r=t>=200&&t<300||304===t,i&&(y=z(d,k,i)),y=B(d,y,k,r),r?(d.ifModified&&(w=k.getResponseHeader("Last-Modified"),w&&(rt.lastModified[a]=w),w=k.getResponseHeader("etag"),w&&(rt.etag[a]=w)),204===t||"HEAD"===d.type?x="nocontent":304===t?x="notmodified":(x=y.state,h=y.data,v=y.error,r=!v)):(v=x,!t&&x||(x="error",t<0&&(t=0))),k.status=t,k.statusText=(e||x)+"",r?f.resolveWith(p,[h,x,k]):f.rejectWith(p,[k,x,v]),k.statusCode(g),g=void 0,l&&u.trigger(r?"ajaxSuccess":"ajaxError",[k,d,r?h:v]),m.fireWith(p,[k,x]),l&&(u.trigger("ajaxComplete",[k,d]),--rt.active||rt.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,r,a,s,o,l,c,h,d=rt.ajaxSetup({},e),p=d.context||d,u=d.context&&(p.nodeType||p.jquery)?rt(p):rt.event,f=rt.Deferred(),m=rt.Callbacks("once memory"),g=d.statusCode||{},v={},y={},b=0,w="canceled",k={readyState:0,getResponseHeader:function(t){var e;if(2===b){if(!h)for(h={};e=Le.exec(s);)h[e[1].toLowerCase()]=e[2];e=h[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===b?s:null},setRequestHeader:function(t,e){var i=t.toLowerCase();return b||(t=y[i]=y[i]||t,v[t]=e),this},overrideMimeType:function(t){return b||(d.mimeType=t),this},statusCode:function(t){var e;if(t)if(b<2)for(e in t)g[e]=[g[e],t[e]];else k.always(t[k.status]);return this},abort:function(t){var e=t||w;return c&&c.abort(e),i(0,e),this}};if(f.promise(k).complete=m.add,k.success=k.done,k.error=k.fail,d.url=((t||d.url||Fe)+"").replace(je,"").replace(Re,Ie[1]+"//"),d.type=e.method||e.type||d.method||d.type,d.dataTypes=rt.trim(d.dataType||"*").toLowerCase().match(bt)||[""],null==d.crossDomain&&(n=Qe.exec(d.url.toLowerCase()),d.crossDomain=!(!n||n[1]===Ie[1]&&n[2]===Ie[2]&&(n[3]||("http:"===n[1]?"80":"443"))===(Ie[3]||("http:"===Ie[1]?"80":"443")))),d.data&&d.processData&&"string"!=typeof d.data&&(d.data=rt.param(d.data,d.traditional)),R(ze,d,e,k),2===b)return k;l=rt.event&&d.global,l&&0===rt.active++&&rt.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Ve.test(d.type),a=d.url,d.hasContent||(d.data&&(a=d.url+=(Ne.test(a)?"&":"?")+d.data,delete d.data),d.cache===!1&&(d.url=Oe.test(a)?a.replace(Oe,"$1_="+Pe++):a+(Ne.test(a)?"&":"?")+"_="+Pe++)),d.ifModified&&(rt.lastModified[a]&&k.setRequestHeader("If-Modified-Since",rt.lastModified[a]),rt.etag[a]&&k.setRequestHeader("If-None-Match",rt.etag[a])),(d.data&&d.hasContent&&d.contentType!==!1||e.contentType)&&k.setRequestHeader("Content-Type",d.contentType),k.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+$e+"; q=0.01":""):d.accepts["*"]);for(r in d.headers)k.setRequestHeader(r,d.headers[r]);if(d.beforeSend&&(d.beforeSend.call(p,k,d)===!1||2===b))return k.abort();w="abort";for(r in{success:1,error:1,complete:1})k[r](d[r]);if(c=R(Be,d,e,k)){k.readyState=1,l&&u.trigger("ajaxSend",[k,d]),d.async&&d.timeout>0&&(o=setTimeout(function(){k.abort("timeout")},d.timeout));try{b=1,c.send(v,i)}catch(x){if(!(b<2))throw x;i(-1,x)}}else i(-1,"No Transport");return k},getJSON:function(t,e,i){return rt.get(t,e,i,"json")},getScript:function(t,e){return rt.get(t,void 0,e,"script")}}),rt.each(["get","post"],function(t,e){rt[e]=function(t,i,n,r){return rt.isFunction(i)&&(r=r||n,n=i,i=void 0),rt.ajax({url:t,type:e,dataType:r,data:i,success:n})}}),rt._evalUrl=function(t){return rt.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},rt.fn.extend({wrapAll:function(t){if(rt.isFunction(t))return this.each(function(e){rt(this).wrapAll(t.call(this,e))});if(this[0]){var e=rt(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstChild&&1===t.firstChild.nodeType;)t=t.firstChild;return t}).append(this)}return this},wrapInner:function(t){return rt.isFunction(t)?this.each(function(e){rt(this).wrapInner(t.call(this,e))}):this.each(function(){var e=rt(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)})},wrap:function(t){var e=rt.isFunction(t);return this.each(function(i){rt(this).wrapAll(e?t.call(this,i):t)})},unwrap:function(){return this.parent().each(function(){rt.nodeName(this,"body")||rt(this).replaceWith(this.childNodes)}).end()}}),rt.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0||!it.reliableHiddenOffsets()&&"none"===(t.style&&t.style.display||rt.css(t,"display"))},rt.expr.filters.visible=function(t){return!rt.expr.filters.hidden(t)};var We=/%20/g,Ye=/\[\]$/,Xe=/\r?\n/g,Ge=/^(?:submit|button|image|reset|file)$/i,Ue=/^(?:input|select|textarea|keygen)/i;rt.param=function(t,e){var i,n=[],r=function(t,e){e=rt.isFunction(e)?e():null==e?"":e,n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=rt.ajaxSettings&&rt.ajaxSettings.traditional),rt.isArray(t)||t.jquery&&!rt.isPlainObject(t))rt.each(t,function(){r(this.name,this.value)});else for(i in t)$(i,t[i],e,r);return n.join("&").replace(We,"+")},rt.fn.extend({serialize:function(){return rt.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=rt.prop(this,"elements");return t?rt.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!rt(this).is(":disabled")&&Ue.test(this.nodeName)&&!Ge.test(t)&&(this.checked||!Pt.test(t))}).map(function(t,e){var i=rt(this).val();return null==i?null:rt.isArray(i)?rt.map(i,function(t){return{name:e.name,value:t.replace(Xe,"\r\n")}}):{name:e.name,value:i.replace(Xe,"\r\n")}}).get()}}),rt.ajaxSettings.xhr=void 0!==t.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&q()||W()}:q;var Ze=0,Ke={},Je=rt.ajaxSettings.xhr();t.attachEvent&&t.attachEvent("onunload",function(){for(var t in Ke)Ke[t](void 0,!0)}),it.cors=!!Je&&"withCredentials"in Je,Je=it.ajax=!!Je,Je&&rt.ajaxTransport(function(t){if(!t.crossDomain||it.cors){var e;return{send:function(i,n){var r,a=t.xhr(),s=++Ze;if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(r in t.xhrFields)a[r]=t.xhrFields[r];t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(r in i)void 0!==i[r]&&a.setRequestHeader(r,i[r]+"");a.send(t.hasContent&&t.data||null),e=function(i,r){var o,l,c;if(e&&(r||4===a.readyState))if(delete Ke[s],e=void 0,a.onreadystatechange=rt.noop,r)4!==a.readyState&&a.abort();else{c={},o=a.status,"string"==typeof a.responseText&&(c.text=a.responseText);try{l=a.statusText}catch(h){l=""}o||!t.isLocal||t.crossDomain?1223===o&&(o=204):o=c.text?200:404}c&&n(o,l,c,a.getAllResponseHeaders())},t.async?4===a.readyState?setTimeout(e):a.onreadystatechange=Ke[s]=e:e()},abort:function(){e&&e(void 0,!0)}}}}),rt.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return rt.globalEval(t),t}}}),rt.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)}),rt.ajaxTransport("script",function(t){if(t.crossDomain){var e,i=ft.head||rt("head")[0]||ft.documentElement;return{send:function(n,r){e=ft.createElement("script"),e.async=!0,t.scriptCharset&&(e.charset=t.scriptCharset),e.src=t.url,e.onload=e.onreadystatechange=function(t,i){(i||!e.readyState||/loaded|complete/.test(e.readyState))&&(e.onload=e.onreadystatechange=null,e.parentNode&&e.parentNode.removeChild(e),e=null,i||r(200,"success"))},i.insertBefore(e,i.firstChild)},abort:function(){e&&e.onload(void 0,!0)}}}});var ti=[],ei=/(=)\?(?=&|$)|\?\?/;rt.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=ti.pop()||rt.expando+"_"+Pe++;return this[t]=!0,t}}),rt.ajaxPrefilter("json jsonp",function(e,i,n){var r,a,s,o=e.jsonp!==!1&&(ei.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&ei.test(e.data)&&"data");if(o||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=rt.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,o?e[o]=e[o].replace(ei,"$1"+r):e.jsonp!==!1&&(e.url+=(Ne.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return s||rt.error(r+" was not called"),s[0]},e.dataTypes[0]="json",a=t[r],t[r]=function(){s=arguments},n.always(function(){t[r]=a,e[r]&&(e.jsonpCallback=i.jsonpCallback,ti.push(r)),s&&rt.isFunction(a)&&a(s[0]),s=a=void 0}),"script"}),rt.parseHTML=function(t,e,i){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(i=e,e=!1),e=e||ft;var n=dt.exec(t),r=!i&&[];return n?[e.createElement(n[1])]:(n=rt.buildFragment([t],e,r),r&&r.length&&rt(r).remove(),rt.merge([],n.childNodes))};var ii=rt.fn.load;rt.fn.load=function(t,e,i){if("string"!=typeof t&&ii)return ii.apply(this,arguments);var n,r,a,s=this,o=t.indexOf(" ");return o>=0&&(n=rt.trim(t.slice(o,t.length)),t=t.slice(0,o)),rt.isFunction(e)?(i=e,e=void 0):e&&"object"==typeof e&&(a="POST"),s.length>0&&rt.ajax({url:t,type:a,dataType:"html",data:e}).done(function(t){r=arguments,s.html(n?rt("
").append(rt.parseHTML(t)).find(n):t)}).complete(i&&function(t,e){s.each(i,r||[t.responseText,e,t])}),this},rt.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){rt.fn[e]=function(t){return this.on(e,t)}}),rt.expr.filters.animated=function(t){return rt.grep(rt.timers,function(e){return t===e.elem}).length};var ni=t.document.documentElement;rt.offset={setOffset:function(t,e,i){var n,r,a,s,o,l,c,h=rt.css(t,"position"),d=rt(t),p={};"static"===h&&(t.style.position="relative"),o=d.offset(),a=rt.css(t,"top"),l=rt.css(t,"left"),c=("absolute"===h||"fixed"===h)&&rt.inArray("auto",[a,l])>-1,c?(n=d.position(),s=n.top,r=n.left):(s=parseFloat(a)||0,r=parseFloat(l)||0),rt.isFunction(e)&&(e=e.call(t,i,o)),null!=e.top&&(p.top=e.top-o.top+s),null!=e.left&&(p.left=e.left-o.left+r),"using"in e?e.using.call(t,p):d.css(p)}},rt.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){rt.offset.setOffset(this,t,e)});var e,i,n={top:0,left:0},r=this[0],a=r&&r.ownerDocument;if(a)return e=a.documentElement,rt.contains(e,r)?(typeof r.getBoundingClientRect!==Et&&(n=r.getBoundingClientRect()),i=Y(a),{top:n.top+(i.pageYOffset||e.scrollTop)-(e.clientTop||0),left:n.left+(i.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}):n},position:function(){if(this[0]){var t,e,i={top:0,left:0},n=this[0];return"fixed"===rt.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),rt.nodeName(t[0],"html")||(i=t.offset()),i.top+=rt.css(t[0],"borderTopWidth",!0),i.left+=rt.css(t[0],"borderLeftWidth",!0)),{top:e.top-i.top-rt.css(n,"marginTop",!0),left:e.left-i.left-rt.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||ni;t&&!rt.nodeName(t,"html")&&"static"===rt.css(t,"position");)t=t.offsetParent;return t||ni})}}),rt.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var i=/Y/.test(e);rt.fn[t]=function(n){return At(this,function(t,n,r){var a=Y(t);return void 0===r?a?e in a?a[e]:a.document.documentElement[n]:t[n]:void(a?a.scrollTo(i?rt(a).scrollLeft():r,i?r:rt(a).scrollTop()):t[n]=r)},t,n,arguments.length,null)}}),rt.each(["top","left"],function(t,e){rt.cssHooks[e]=C(it.pixelPosition,function(t,i){if(i)return i=ee(t,e),ne.test(i)?rt(t).position()[e]+"px":i})}),rt.each({Height:"height",Width:"width"},function(t,e){rt.each({padding:"inner"+t,content:e,"":"outer"+t},function(i,n){rt.fn[n]=function(n,r){var a=arguments.length&&(i||"boolean"!=typeof n),s=i||(n===!0||r===!0?"margin":"border");return At(this,function(e,i,n){var r; return rt.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+t],r["scroll"+t],e.body["offset"+t],r["offset"+t],r["client"+t])):void 0===n?rt.css(e,i,s):rt.style(e,i,n,s)},e,a?n:void 0,a,null)}})}),rt.fn.size=function(){return this.length},rt.fn.andSelf=rt.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return rt});var ri=t.jQuery,ai=t.$;return rt.noConflict=function(e){return t.$===rt&&(t.$=ai),e&&t.jQuery===rt&&(t.jQuery=ri),rt},typeof e===Et&&(t.jQuery=t.$=rt),rt}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(t){function e(e,n){var r,a,s,o=e.nodeName.toLowerCase();return"area"===o?(r=e.parentNode,a=r.name,!(!e.href||!a||"map"!==r.nodeName.toLowerCase())&&(s=t("img[usemap='#"+a+"']")[0],!!s&&i(s))):(/^(input|select|textarea|button|object)$/.test(o)?!e.disabled:"a"===o?e.href||n:n)&&i(e)}function i(e){return t.expr.filters.visible(e)&&!t(e).parents().addBack().filter(function(){return"hidden"===t.css(this,"visibility")}).length}function n(t){for(var e,i;t.length&&t[0]!==document;){if(e=t.css("position"),("absolute"===e||"relative"===e||"fixed"===e)&&(i=parseInt(t.css("zIndex"),10),!isNaN(i)&&0!==i))return i;t=t.parent()}return 0}function r(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},t.extend(this._defaults,this.regional[""]),this.regional.en=t.extend(!0,{},this.regional[""]),this.regional["en-US"]=t.extend(!0,{},this.regional.en),this.dpDiv=a(t("
"))}function a(e){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.delegate(i,"mouseout",function(){t(this).removeClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&t(this).removeClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&t(this).removeClass("ui-datepicker-next-hover")}).delegate(i,"mouseover",s)}function s(){t.datepicker._isDisabledDatepicker(d.inline?d.dpDiv.parent()[0]:d.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&t(this).addClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&t(this).addClass("ui-datepicker-next-hover"))}function o(e,i){t.extend(e,i);for(var n in i)null==i[n]&&(e[n]=i[n]);return e}t.ui=t.ui||{},t.extend(t.ui,{version:"1.11.4",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),t.fn.extend({scrollParent:function(e){var i=this.css("position"),n="absolute"===i,r=e?/(auto|scroll|hidden)/:/(auto|scroll)/,a=this.parents().filter(function(){var e=t(this);return(!n||"static"!==e.css("position"))&&r.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==i&&a.length?a:t(this[0].ownerDocument||document)},uniqueId:function(){var t=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++t)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")})}}),t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(i){return!!t.data(i,e)}}):function(e,i,n){return!!t.data(e,n[3])},focusable:function(i){return e(i,!isNaN(t.attr(i,"tabindex")))},tabbable:function(i){var n=t.attr(i,"tabindex"),r=isNaN(n);return(r||n>=0)&&e(i,!r)}}),t("").outerWidth(1).jquery||t.each(["Width","Height"],function(e,i){function n(e,i,n,a){return t.each(r,function(){i-=parseFloat(t.css(e,"padding"+this))||0,n&&(i-=parseFloat(t.css(e,"border"+this+"Width"))||0),a&&(i-=parseFloat(t.css(e,"margin"+this))||0)}),i}var r="Width"===i?["Left","Right"]:["Top","Bottom"],a=i.toLowerCase(),s={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+i]=function(e){return void 0===e?s["inner"+i].call(this):this.each(function(){t(this).css(a,n(this,e)+"px")})},t.fn["outer"+i]=function(e,r){return"number"!=typeof e?s["outer"+i].call(this,e):this.each(function(){t(this).css(a,n(this,e,!0,r)+"px")})}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t("").data("a-b","a").removeData("a-b").data("a-b")&&(t.fn.removeData=function(e){return function(i){return arguments.length?e.call(this,t.camelCase(i)):e.call(this)}}(t.fn.removeData)),t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),t.fn.extend({focus:function(e){return function(i,n){return"number"==typeof i?this.each(function(){var e=this;setTimeout(function(){t(e).focus(),n&&n.call(e)},i)}):e.apply(this,arguments)}}(t.fn.focus),disableSelection:function(){var t="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.bind(t+".ui-disableSelection",function(t){t.preventDefault()})}}(),enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(e){if(void 0!==e)return this.css("zIndex",e);if(this.length)for(var i,n,r=t(this[0]);r.length&&r[0]!==document;){if(i=r.css("position"),("absolute"===i||"relative"===i||"fixed"===i)&&(n=parseInt(r.css("zIndex"),10),!isNaN(n)&&0!==n))return n;r=r.parent()}return 0}}),t.ui.plugin={add:function(e,i,n){var r,a=t.ui[e].prototype;for(r in n)a.plugins[r]=a.plugins[r]||[],a.plugins[r].push([i,n[r]])},call:function(t,e,i,n){var r,a=t.plugins[e];if(a&&(n||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(r=0;r",options:{disabled:!1,create:null},_createWidget:function(e,i){i=t(i||this.defaultElement||this)[0],this.element=t(i),this.uuid=l++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),i!==this&&(t.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===i&&this.destroy()}}),this.document=t(i.style?i.ownerDocument:i.document||i),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:t.noop,_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(t.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var n,r,a,s=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(s={},n=e.split("."),e=n.shift(),n.length){for(r=s[e]=t.widget.extend({},this.options[e]),a=0;a=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}});!function(){function e(t,e,i){return[parseFloat(t[0])*(u.test(t[0])?e/100:1),parseFloat(t[1])*(u.test(t[1])?i/100:1)]}function i(e,i){return parseInt(t.css(e,i),10)||0}function n(e){var i=e[0];return 9===i.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}t.ui=t.ui||{};var r,a,s=Math.max,o=Math.abs,l=Math.round,c=/left|center|right/,h=/top|center|bottom/,d=/[\+\-]\d+(\.[\d]+)?%?/,p=/^\w+/,u=/%$/,f=t.fn.position;t.position={scrollbarWidth:function(){if(void 0!==r)return r;var e,i,n=t("
"),a=n.children()[0];return t("body").append(n),e=a.offsetWidth,n.css("overflow","scroll"),i=a.offsetWidth,e===i&&(i=n[0].clientWidth),n.remove(),r=e-i},getScrollInfo:function(e){var i=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),n=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),r="scroll"===i||"auto"===i&&e.width0?"right":"center",vertical:a<0?"top":n>0?"bottom":"middle"};ms(o(n),o(a))?l.important="horizontal":l.important="vertical",r.using.call(this,t,l)}),h.offset(t.extend(T,{using:c}))})},t.ui.position={fit:{left:function(t,e){var i,n=e.within,r=n.isWindow?n.scrollLeft:n.offset.left,a=n.width,o=t.left-e.collisionPosition.marginLeft,l=r-o,c=o+e.collisionWidth-a-r;e.collisionWidth>a?l>0&&c<=0?(i=t.left+l+e.collisionWidth-a-r,t.left+=l-i):c>0&&l<=0?t.left=r:l>c?t.left=r+a-e.collisionWidth:t.left=r:l>0?t.left+=l:c>0?t.left-=c:t.left=s(t.left-o,t.left)},top:function(t,e){var i,n=e.within,r=n.isWindow?n.scrollTop:n.offset.top,a=e.within.height,o=t.top-e.collisionPosition.marginTop,l=r-o,c=o+e.collisionHeight-a-r;e.collisionHeight>a?l>0&&c<=0?(i=t.top+l+e.collisionHeight-a-r,t.top+=l-i):c>0&&l<=0?t.top=r:l>c?t.top=r+a-e.collisionHeight:t.top=r:l>0?t.top+=l:c>0?t.top-=c:t.top=s(t.top-o,t.top)}},flip:{left:function(t,e){var i,n,r=e.within,a=r.offset.left+r.scrollLeft,s=r.width,l=r.isWindow?r.scrollLeft:r.offset.left,c=t.left-e.collisionPosition.marginLeft,h=c-l,d=c+e.collisionWidth-s-l,p="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,u="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];h<0?(i=t.left+p+u+f+e.collisionWidth-s-a,(i<0||i0&&(n=t.left-e.collisionPosition.marginLeft+p+u+f-l,(n>0||o(n)0&&(i=t.top-e.collisionPosition.marginTop+u+f+m-l,(i>0||o(i)10&&r<11,e.innerHTML="",i.removeChild(e)}()}();t.ui.position;t.extend(t.ui,{datepicker:{version:"1.11.4"}});var d;t.extend(r.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return o(this._defaults,t||{}),this},_attachDatepicker:function(e,i){var n,r,a;n=e.nodeName.toLowerCase(),r="div"===n||"span"===n,e.id||(this.uuid+=1,e.id="dp"+this.uuid),a=this._newInst(t(e),r),a.settings=t.extend({},i||{}),"input"===n?this._connectDatepicker(e,a):r&&this._inlineDatepicker(e,a)},_newInst:function(e,i){var n=e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:n,input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?a(t("
")):this.dpDiv}},_connectDatepicker:function(e,i){var n=t(e);i.append=t([]),i.trigger=t([]),n.hasClass(this.markerClassName)||(this._attachments(n,i),n.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp),this._autoSize(i),t.data(e,"datepicker",i),i.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,i){var n,r,a,s=this._get(i,"appendText"),o=this._get(i,"isRTL");i.append&&i.append.remove(),s&&(i.append=t(""+s+""),e[o?"before":"after"](i.append)),e.unbind("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),n=this._get(i,"showOn"),"focus"!==n&&"both"!==n||e.focus(this._showDatepicker),"button"!==n&&"both"!==n||(r=this._get(i,"buttonText"),a=this._get(i,"buttonImage"),i.trigger=t(this._get(i,"buttonImageOnly")?t("").addClass(this._triggerClass).attr({src:a,alt:r,title:r}):t("").addClass(this._triggerClass).html(a?t("").attr({src:a,alt:r,title:r}):r)),e[o?"before":"after"](i.trigger),i.trigger.click(function(){return t.datepicker._datepickerShowing&&t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():t.datepicker._datepickerShowing&&t.datepicker._lastInput!==e[0]?(t.datepicker._hideDatepicker(),t.datepicker._showDatepicker(e[0])):t.datepicker._showDatepicker(e[0]),!1}))},_autoSize:function(t){if(this._get(t,"autoSize")&&!t.inline){var e,i,n,r,a=new Date(2009,11,20),s=this._get(t,"dateFormat");s.match(/[DM]/)&&(e=function(t){for(i=0,n=0,r=0;ri&&(i=t[r].length,n=r);return n},a.setMonth(e(this._get(t,s.match(/MM/)?"monthNames":"monthNamesShort"))),a.setDate(e(this._get(t,s.match(/DD/)?"dayNames":"dayNamesShort"))+20-a.getDay())),t.input.attr("size",this._formatDate(t,a).length)}},_inlineDatepicker:function(e,i){var n=t(e);n.hasClass(this.markerClassName)||(n.addClass(this.markerClassName).append(i.dpDiv),t.data(e,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(e),i.dpDiv.css("display","block"))},_dialogDatepicker:function(e,i,n,r,a){var s,l,c,h,d,p=this._dialogInst;return p||(this.uuid+=1,s="dp"+this.uuid,this._dialogInput=t(""),this._dialogInput.keydown(this._doKeyDown),t("body").append(this._dialogInput),p=this._dialogInst=this._newInst(this._dialogInput,!1),p.settings={},t.data(this._dialogInput[0],"datepicker",p)),o(p.settings,r||{}),i=i&&i.constructor===Date?this._formatDate(p,i):i,this._dialogInput.val(i),this._pos=a?a.length?a:[a.pageX,a.pageY]:null,this._pos||(l=document.documentElement.clientWidth,c=document.documentElement.clientHeight,h=document.documentElement.scrollLeft||document.body.scrollLeft,d=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[l/2-100+h,c/2-150+d]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),p.settings.onSelect=n,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&&t.blockUI(this.dpDiv),t.data(this._dialogInput[0],"datepicker",p),this},_destroyDatepicker:function(e){var i,n=t(e),r=t.data(e,"datepicker");n.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),t.removeData(e,"datepicker"),"input"===i?(r.append.remove(),r.trigger.remove(),n.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):"div"!==i&&"span"!==i||n.removeClass(this.markerClassName).empty(),d===r&&(d=null))},_enableDatepicker:function(e){var i,n,r=t(e),a=t.data(e,"datepicker");r.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),"input"===i?(e.disabled=!1,a.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==i&&"span"!==i||(n=r.children("."+this._inlineClass),n.children().removeClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var i,n,r=t(e),a=t.data(e,"datepicker");r.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),"input"===i?(e.disabled=!0,a.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==i&&"span"!==i||(n=r.children("."+this._inlineClass),n.children().addClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;e-1},_doKeyUp:function(e){var i,n=t.datepicker._getInst(e.target);if(n.input.val()!==n.lastVal)try{i=t.datepicker.parseDate(t.datepicker._get(n,"dateFormat"),n.input?n.input.val():null,t.datepicker._getFormatConfig(n)),i&&(t.datepicker._setDateFromField(n),t.datepicker._updateAlternate(n),t.datepicker._updateDatepicker(n))}catch(r){}return!0},_showDatepicker:function(e){if(e=e.target||e,"input"!==e.nodeName.toLowerCase()&&(e=t("input",e.parentNode)[0]),!t.datepicker._isDisabledDatepicker(e)&&t.datepicker._lastInput!==e){var i,r,a,s,l,c,h;i=t.datepicker._getInst(e),t.datepicker._curInst&&t.datepicker._curInst!==i&&(t.datepicker._curInst.dpDiv.stop(!0,!0),i&&t.datepicker._datepickerShowing&&t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),r=t.datepicker._get(i,"beforeShow"),a=r?r.apply(e,[e,i]):{},a!==!1&&(o(i.settings,a),i.lastVal=null,t.datepicker._lastInput=e,t.datepicker._setDateFromField(i),t.datepicker._inDialog&&(e.value=""),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(e),t.datepicker._pos[1]+=e.offsetHeight),s=!1,t(e).parents().each(function(){return s|="fixed"===t(this).css("position"),!s}),l={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),t.datepicker._updateDatepicker(i),l=t.datepicker._checkOffset(i,l,s),i.dpDiv.css({position:t.datepicker._inDialog&&t.blockUI?"static":s?"fixed":"absolute",display:"none",left:l.left+"px",top:l.top+"px"}),i.inline||(c=t.datepicker._get(i,"showAnim"),h=t.datepicker._get(i,"duration"),i.dpDiv.css("z-index",n(t(e))+1),t.datepicker._datepickerShowing=!0,t.effects&&t.effects.effect[c]?i.dpDiv.show(c,t.datepicker._get(i,"showOptions"),h):i.dpDiv[c||"show"](c?h:null),t.datepicker._shouldFocusInput(i)&&i.input.focus(),t.datepicker._curInst=i))}},_updateDatepicker:function(e){this.maxRows=4,d=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var i,n=this._getNumberOfMonths(e),r=n[1],a=17,o=e.dpDiv.find("."+this._dayOverClass+" a");o.length>0&&s.apply(o.get(0)),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),r>1&&e.dpDiv.addClass("ui-datepicker-multi-"+r).css("width",a*r+"em"),e.dpDiv[(1!==n[0]||1!==n[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===t.datepicker._curInst&&t.datepicker._datepickerShowing&&t.datepicker._shouldFocusInput(e)&&e.input.focus(),e.yearshtml&&(i=e.yearshtml,setTimeout(function(){i===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year:first").replaceWith(e.yearshtml),i=e.yearshtml=null},0))},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(e,i,n){var r=e.dpDiv.outerWidth(),a=e.dpDiv.outerHeight(),s=e.input?e.input.outerWidth():0,o=e.input?e.input.outerHeight():0,l=document.documentElement.clientWidth+(n?0:t(document).scrollLeft()),c=document.documentElement.clientHeight+(n?0:t(document).scrollTop());return i.left-=this._get(e,"isRTL")?r-s:0,i.left-=n&&i.left===e.input.offset().left?t(document).scrollLeft():0,i.top-=n&&i.top===e.input.offset().top+o?t(document).scrollTop():0,i.left-=Math.min(i.left,i.left+r>l&&l>r?Math.abs(i.left+r-l):0),i.top-=Math.min(i.top,i.top+a>c&&c>a?Math.abs(a+o):0),i},_findPos:function(e){for(var i,n=this._getInst(e),r=this._get(n,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||t.expr.filters.hidden(e));)e=e[r?"previousSibling":"nextSibling"];return i=t(e).offset(),[i.left,i.top]},_hideDatepicker:function(e){var i,n,r,a,s=this._curInst;!s||e&&s!==t.data(e,"datepicker")||this._datepickerShowing&&(i=this._get(s,"showAnim"),n=this._get(s,"duration"),r=function(){t.datepicker._tidyDialog(s)},t.effects&&(t.effects.effect[i]||t.effects[i])?s.dpDiv.hide(i,t.datepicker._get(s,"showOptions"),n,r):s.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?n:null,r),i||r(),this._datepickerShowing=!1,a=this._get(s,"onClose"),a&&a.apply(s.input?s.input[0]:null,[s.input?s.input.val():"",s]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),t.blockUI&&(t.unblockUI(),t("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(t.datepicker._curInst){var i=t(e.target),n=t.datepicker._getInst(i[0]);(i[0].id===t.datepicker._mainDivId||0!==i.parents("#"+t.datepicker._mainDivId).length||i.hasClass(t.datepicker.markerClassName)||i.closest("."+t.datepicker._triggerClass).length||!t.datepicker._datepickerShowing||t.datepicker._inDialog&&t.blockUI)&&(!i.hasClass(t.datepicker.markerClassName)||t.datepicker._curInst===n)||t.datepicker._hideDatepicker()}},_adjustDate:function(e,i,n){var r=t(e),a=this._getInst(r[0]);this._isDisabledDatepicker(r[0])||(this._adjustInstDate(a,i+("M"===n?this._get(a,"showCurrentAtPos"):0),n),this._updateDatepicker(a))},_gotoToday:function(e){var i,n=t(e),r=this._getInst(n[0]);this._get(r,"gotoCurrent")&&r.currentDay?(r.selectedDay=r.currentDay,r.drawMonth=r.selectedMonth=r.currentMonth,r.drawYear=r.selectedYear=r.currentYear):(i=new Date,r.selectedDay=i.getDate(),r.drawMonth=r.selectedMonth=i.getMonth(),r.drawYear=r.selectedYear=i.getFullYear()),this._notifyChange(r),this._adjustDate(n)},_selectMonthYear:function(e,i,n){var r=t(e),a=this._getInst(r[0]);a["selected"+("M"===n?"Month":"Year")]=a["draw"+("M"===n?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(a),this._adjustDate(r)},_selectDay:function(e,i,n,r){var a,s=t(e);t(r).hasClass(this._unselectableClass)||this._isDisabledDatepicker(s[0])||(a=this._getInst(s[0]),a.selectedDay=a.currentDay=t("a",r).html(),a.selectedMonth=a.currentMonth=i,a.selectedYear=a.currentYear=n,this._selectDate(e,this._formatDate(a,a.currentDay,a.currentMonth,a.currentYear)))},_clearDate:function(e){var i=t(e);this._selectDate(i,"")},_selectDate:function(e,i){var n,r=t(e),a=this._getInst(r[0]);i=null!=i?i:this._formatDate(a),a.input&&a.input.val(i),this._updateAlternate(a),n=this._get(a,"onSelect"),n?n.apply(a.input?a.input[0]:null,[i,a]):a.input&&a.input.trigger("change"),a.inline?this._updateDatepicker(a):(this._hideDatepicker(),this._lastInput=a.input[0],"object"!=typeof a.input[0]&&a.input.focus(),this._lastInput=null)},_updateAlternate:function(e){var i,n,r,a=this._get(e,"altField");a&&(i=this._get(e,"altFormat")||this._get(e,"dateFormat"),n=this._getDate(e),r=this.formatDate(i,n,this._getFormatConfig(e)),t(a).each(function(){t(this).val(r)}))},noWeekends:function(t){var e=t.getDay();return[e>0&&e<6,""]},iso8601Week:function(t){var e,i=new Date(t.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),e=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((e-i)/864e5)/7)+1},parseDate:function(e,i,n){if(null==e||null==i)throw"Invalid arguments";if(i="object"==typeof i?i.toString():i+"",""===i)return null;var r,a,s,o,l=0,c=(n?n.shortYearCutoff:null)||this._defaults.shortYearCutoff,h="string"!=typeof c?c:(new Date).getFullYear()%100+parseInt(c,10),d=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,p=(n?n.dayNames:null)||this._defaults.dayNames,u=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,f=(n?n.monthNames:null)||this._defaults.monthNames,m=-1,g=-1,v=-1,y=-1,b=!1,w=function(t){var i=r+1-1)for(g=1,v=y;;){if(a=this._getDaysInMonth(m,g-1),v<=a)break;g++,v-=a}if(o=this._daylightSavingAdjust(new Date(m,g-1,v)),o.getFullYear()!==m||o.getMonth()+1!==g||o.getDate()!==v)throw"Invalid date";return o},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(t,e,i){if(!e)return"";var n,r=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,a=(i?i.dayNames:null)||this._defaults.dayNames,s=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,o=(i?i.monthNames:null)||this._defaults.monthNames,l=function(e){var i=n+112?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var n=!e,r=t.selectedMonth,a=t.selectedYear,s=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=s.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=s.getMonth(),t.drawYear=t.selectedYear=t.currentYear=s.getFullYear(),r===t.selectedMonth&&a===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(n?"":this._formatDate(t))},_getDate:function(t){var e=!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return e},_attachHandlers:function(e){var i=this._get(e,"stepMonths"),n="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){t.datepicker._adjustDate(n,-i,"M")},next:function(){t.datepicker._adjustDate(n,+i,"M")},hide:function(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToday(n)},selectDay:function(){return t.datepicker._selectDay(n,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return t.datepicker._selectMonthYear(n,this,"M"),!1},selectYear:function(){return t.datepicker._selectMonthYear(n,this,"Y"),!1}};t(this).bind(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,i,n,r,a,s,o,l,c,h,d,p,u,f,m,g,v,y,b,w,k,x,E,_,S,C,T,D,A,P,N,M,I,F,j,O,L,H,V,R=new Date,Q=this._daylightSavingAdjust(new Date(R.getFullYear(),R.getMonth(),R.getDate())),z=this._get(t,"isRTL"),B=this._get(t,"showButtonPanel"),$=this._get(t,"hideIfNoPrevNext"),q=this._get(t,"navigationAsDateFormat"),W=this._getNumberOfMonths(t),Y=this._get(t,"showCurrentAtPos"),X=this._get(t,"stepMonths"),G=1!==W[0]||1!==W[1],U=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),Z=this._getMinMaxDate(t,"min"),K=this._getMinMaxDate(t,"max"),J=t.drawMonth-Y,tt=t.drawYear;if(J<0&&(J+=12,tt--),K)for(e=this._daylightSavingAdjust(new Date(K.getFullYear(),K.getMonth()-W[0]*W[1]+1,K.getDate())),e=Z&&ee;)J--,J<0&&(J=11,tt--);for(t.drawMonth=J,t.drawYear=tt,i=this._get(t,"prevText"),i=q?this.formatDate(i,this._daylightSavingAdjust(new Date(tt,J-X,1)),this._getFormatConfig(t)):i,n=this._canAdjustMonth(t,-1,tt,J)?"
"+i+"":$?"":""+i+"",r=this._get(t,"nextText"),r=q?this.formatDate(r,this._daylightSavingAdjust(new Date(tt,J+X,1)),this._getFormatConfig(t)):r,a=this._canAdjustMonth(t,1,tt,J)?""+r+"":$?"":""+r+"",s=this._get(t,"currentText"),o=this._get(t,"gotoCurrent")&&t.currentDay?U:Q,s=q?this.formatDate(s,o,this._getFormatConfig(t)):s,l=t.inline?"":"",c=B?"
"+(z?l:"")+(this._isInRange(t,o)?"":"")+(z?"":l)+"
":"",h=parseInt(this._get(t,"firstDay"),10),h=isNaN(h)?0:h,d=this._get(t,"showWeek"),p=this._get(t,"dayNames"),u=this._get(t,"dayNamesMin"),f=this._get(t,"monthNames"),m=this._get(t,"monthNamesShort"),g=this._get(t,"beforeShowDay"),v=this._get(t,"showOtherMonths"),y=this._get(t,"selectOtherMonths"),b=this._getDefaultDate(t),w="",x=0;x1)switch(_){case 0:T+=" ui-datepicker-group-first",C=" ui-corner-"+(z?"right":"left");break;case W[1]-1:T+=" ui-datepicker-group-last",C=" ui-corner-"+(z?"left":"right");break;default:T+=" ui-datepicker-group-middle",C=""}T+="'>"}for(T+="
"+(/all|left/.test(C)&&0===x?z?a:n:"")+(/all|right/.test(C)&&0===x?z?n:a:"")+this._generateMonthYearHeader(t,J,tt,Z,K,x>0||_>0,f,m)+"
",D=d?"":"",k=0;k<7;k++)A=(k+h)%7,D+="";for(T+=D+"",P=this._getDaysInMonth(tt,J),tt===t.selectedYear&&J===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,P)),N=(this._getFirstDayOfMonth(tt,J)-h+7)%7,M=Math.ceil((N+P)/7),I=G&&this.maxRows>M?this.maxRows:M,this.maxRows=I,F=this._daylightSavingAdjust(new Date(tt,J,1-N)),j=0;j",O=d?"":"",k=0;k<7;k++)L=g?g.apply(t.input?t.input[0]:null,[F]):[!0,""],H=F.getMonth()!==J,V=H&&!y||!L[0]||Z&&FK,O+="",F.setDate(F.getDate()+1),F=this._daylightSavingAdjust(F);T+=O+""}J++,J>11&&(J=0,tt++),T+="
"+this._get(t,"weekHeader")+"=5?" class='ui-datepicker-week-end'":"")+">"+u[A]+"
"+this._get(t,"calculateWeek")(F)+""+(H&&!v?" ":V?""+F.getDate()+"":""+F.getDate()+"")+"
"+(G?"
"+(W[0]>0&&_===W[1]-1?"
":""):""),E+=T}w+=E}return w+=c,t._keyEvent=!1,w},_generateMonthYearHeader:function(t,e,i,n,r,a,s,o){var l,c,h,d,p,u,f,m,g=this._get(t,"changeMonth"),v=this._get(t,"changeYear"),y=this._get(t,"showMonthAfterYear"),b="
",w="";if(a||!g)w+=""+s[e]+"";else{for(l=n&&n.getFullYear()===i,c=r&&r.getFullYear()===i,w+=""}if(y||(b+=w+(!a&&g&&v?"":" ")),!t.yearshtml)if(t.yearshtml="",a||!v)b+=""+i+"";else{for(d=this._get(t,"yearRange").split(":"),p=(new Date).getFullYear(),u=function(t){var e=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?p+parseInt(t,10):parseInt(t,10);return isNaN(e)?p:e},f=u(d[0]),m=Math.max(f,u(d[1]||"")),f=n?Math.max(f,n.getFullYear()):f,m=r?Math.min(m,r.getFullYear()):m,t.yearshtml+="",b+=t.yearshtml,t.yearshtml=null}return b+=this._get(t,"yearSuffix"),y&&(b+=(!a&&g&&v?"":" ")+w),b+="
"},_adjustInstDate:function(t,e,i){var n=t.drawYear+("Y"===i?e:0),r=t.drawMonth+("M"===i?e:0),a=Math.min(t.selectedDay,this._getDaysInMonth(n,r))+("D"===i?e:0),s=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(n,r,a)));t.selectedDay=s.getDate(),t.drawMonth=t.selectedMonth=s.getMonth(),t.drawYear=t.selectedYear=s.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),n=this._getMinMaxDate(t,"max"),r=i&&en?n:r},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,n){var r=this._getNumberOfMonths(t),a=this._daylightSavingAdjust(new Date(i,n+(e<0?e:r[0]*r[1]),1));return e<0&&a.setDate(this._getDaysInMonth(a.getFullYear(),a.getMonth())),this._isInRange(t,a)},_isInRange:function(t,e){var i,n,r=this._getMinMaxDate(t,"min"),a=this._getMinMaxDate(t,"max"),s=null,o=null,l=this._get(t,"yearRange");return l&&(i=l.split(":"),n=(new Date).getFullYear(),s=parseInt(i[0],10),o=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(s+=n),i[1].match(/[+\-].*/)&&(o+=n)),(!r||e.getTime()>=r.getTime())&&(!a||e.getTime()<=a.getTime())&&(!s||e.getFullYear()>=s)&&(!o||e.getFullYear()<=o)},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),{shortYearCutoff:e,dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,n){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var r=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(n,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),r,this._getFormatConfig(t))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).mousedown(t.datepicker._checkExternalClick),t.datepicker.initialized=!0),0===t("#"+t.datepicker._mainDivId).length&&t("body").append(t.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!==e&&"getDate"!==e&&"widget"!==e?"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i)):this.each(function(){"string"==typeof e?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this].concat(i)):t.datepicker._attachDatepicker(this,e)}):t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i))},t.datepicker=new r,t.datepicker.initialized=!1,t.datepicker.uuid=(new Date).getTime(),t.datepicker.version="1.11.4";t.datepicker}),function(t){function e(t){var e=t.length,n=i.type(t);return"function"!==n&&!i.isWindow(t)&&(!(1!==t.nodeType||!e)||("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t))}if(!t.jQuery){var i=function(t,e){return new i.fn.init(t,e)};i.isWindow=function(t){return null!=t&&t==t.window},i.type=function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?r[s.call(t)]||"object":typeof t},i.isArray=Array.isArray||function(t){return"array"===i.type(t)},i.isPlainObject=function(t){var e;if(!t||"object"!==i.type(t)||t.nodeType||i.isWindow(t))return!1;try{if(t.constructor&&!a.call(t,"constructor")&&!a.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}for(e in t);return void 0===e||a.call(t,e)},i.each=function(t,i,n){var r,a=0,s=t.length,o=e(t);if(n){if(o)for(;a0?r=s:i=s;while(Math.abs(a)>v&&++o=g?h(e,o):0==l?o:p(e,i,i+w)}function f(){_=!0,t==i&&n==r||d()}var m=4,g=.001,v=1e-7,y=10,b=11,w=1/(b-1),k="Float32Array"in e;if(4!==arguments.length)return!1;for(var x=0;x<4;++x)if("number"!=typeof arguments[x]||isNaN(arguments[x])||!isFinite(arguments[x]))return!1;t=Math.min(t,1),n=Math.min(n,1),t=Math.max(t,0),n=Math.max(n,0);var E=k?new Float32Array(b):new Array(b),_=!1,S=function(e){return _||f(),t===i&&n===r?e:0===e?0:1===e?1:l(u(e),i,r)};S.getControlPoints=function(){return[{x:t,y:i},{x:n,y:r}]};var C="generateBezier("+[t,i,n,r]+")";return S.toString=function(){return C},S}function c(t,e){var i=t;return m.isString(t)?b.Easings[t]||(i=!1):i=m.isArray(t)&&1===t.length?o.apply(null,t):m.isArray(t)&&2===t.length?w.apply(null,t.concat([e])):!(!m.isArray(t)||4!==t.length)&&l.apply(null,t),i===!1&&(i=b.Easings[b.defaults.easing]?b.defaults.easing:y),i}function h(t){if(t){var e=(new Date).getTime(),i=b.State.calls.length;i>1e4&&(b.State.calls=r(b.State.calls));for(var a=0;a4;t--){var e=i.createElement("div");if(e.innerHTML="",e.getElementsByTagName("span").length)return e=null,t}return n}(),f=function(){var t=0;return e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||function(e){var i,n=(new Date).getTime();return i=Math.max(0,16-(n-t)),t=n+i,setTimeout(function(){e(n+i)},i)}}(),m={isString:function(t){return"string"==typeof t},isArray:Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},isFunction:function(t){return"[object Function]"===Object.prototype.toString.call(t)},isNode:function(t){return t&&t.nodeType},isNodeList:function(t){return"object"==typeof t&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(t))&&t.length!==n&&(0===t.length||"object"==typeof t[0]&&t[0].nodeType>0)},isWrapped:function(t){return t&&(t.jquery||e.Zepto&&e.Zepto.zepto.isZ(t))},isSVG:function(t){return e.SVGElement&&t instanceof e.SVGElement},isEmptyObject:function(t){for(var e in t)return!1;return!0}},g=!1;if(t.fn&&t.fn.jquery?(p=t,g=!0):p=e.Velocity.Utilities,u<=8&&!g)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(u<=7)return void(jQuery.fn.velocity=jQuery.fn.animate);var v=400,y="swing",b={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isAndroid:/Android/i.test(navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(navigator.userAgent),isChrome:e.chrome,isFirefox:/Firefox/i.test(navigator.userAgent),prefixElement:i.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[]},CSS:{},Utilities:p,Redirects:{},Easings:{},Promise:e.Promise,defaults:{queue:"",duration:v,easing:y,begin:n,complete:n,progress:n,display:n,visibility:n,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0},init:function(t){p.data(t,"velocity",{isSVG:m.isSVG(t),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:2,patch:2},debug:!1};e.pageYOffset!==n?(b.State.scrollAnchor=e,b.State.scrollPropertyLeft="pageXOffset",b.State.scrollPropertyTop="pageYOffset"):(b.State.scrollAnchor=i.documentElement||i.body.parentNode||i.body,b.State.scrollPropertyLeft="scrollLeft",b.State.scrollPropertyTop="scrollTop");var w=function(){function t(t){return-t.tension*t.x-t.friction*t.v}function e(e,i,n){var r={x:e.x+n.dx*i,v:e.v+n.dv*i,tension:e.tension,friction:e.friction};return{dx:r.v,dv:t(r)}}function i(i,n){var r={dx:i.v,dv:t(i)},a=e(i,.5*n,r),s=e(i,.5*n,a),o=e(i,n,s),l=1/6*(r.dx+2*(a.dx+s.dx)+o.dx),c=1/6*(r.dv+2*(a.dv+s.dv)+o.dv);return i.x=i.x+l*n,i.v=i.v+c*n,i}return function n(t,e,r){var a,s,o,l={x:-1,v:0,tension:null,friction:null},c=[0],h=0,d=1e-4,p=.016;for(t=parseFloat(t)||500,e=parseFloat(e)||20,r=r||null,l.tension=t,l.friction=e,a=null!==r,a?(h=n(t,e),s=h/r*p):s=p;;)if(o=i(o||l,s),c.push(1+o.x),h+=16,!(Math.abs(o.x)>d&&Math.abs(o.v)>d))break;return a?function(t){return c[t*(c.length-1)|0]}:h}}();b.Easings={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},spring:function(t){return 1-Math.cos(4.5*t*Math.PI)*Math.exp(6*-t)}},p.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],function(t,e){b.Easings[e[0]]=l.apply(null,e[1])});var k=b.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"]},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var t=0;t=1?"":"alpha(opacity="+parseInt(100*parseFloat(i),10)+")"}else switch(t){case"name":return"opacity";case"extract":return i;case"inject":return i}}},register:function(){u<=9||b.State.isGingerbread||(k.Lists.transformsBase=k.Lists.transformsBase.concat(k.Lists.transforms3D));for(var t=0;t=2&&console.log("Get "+i+": "+l),l},setPropertyValue:function(t,i,n,r,a){var o=i;if("scroll"===i)a.container?a.container["scroll"+a.direction]=n:"Left"===a.direction?e.scrollTo(n,a.alternateValue):e.scrollTo(a.alternateValue,n);else if(k.Normalizations.registered[i]&&"transform"===k.Normalizations.registered[i]("name",t))k.Normalizations.registered[i]("inject",t,n),o="transform",n=s(t).transformCache[i];else{if(k.Hooks.registered[i]){var l=i,c=k.Hooks.getRoot(i);r=r||k.getPropertyValue(t,c),n=k.Hooks.injectValue(l,n,r),i=c}if(k.Normalizations.registered[i]&&(n=k.Normalizations.registered[i]("inject",t,n),i=k.Normalizations.registered[i]("name",t)),o=k.Names.prefixCheck(i)[0],u<=8)try{t.style[o]=n}catch(h){b.debug&&console.log("Browser does not support ["+n+"] for ["+o+"]")}else s(t)&&s(t).isSVG&&k.Names.SVGAttribute(i)?t.setAttribute(i,n):t.style[o]=n;b.debug>=2&&console.log("Set "+i+" ("+o+"): "+n)}return[o,n]},flushTransformCache:function(t){function e(e){return parseFloat(k.getPropertyValue(t,e))}var i="";if((u||b.State.isAndroid&&!b.State.isChrome)&&s(t).isSVG){var n={translate:[e("translateX"),e("translateY")],skewX:[e("skewX")],skewY:[e("skewY")],scale:1!==e("scale")?[e("scale"),e("scale")]:[e("scaleX"),e("scaleY")],rotate:[e("rotateZ"),0,0]};p.each(s(t).transformCache,function(t){/^translate/i.test(t)?t="translate":/^scale/i.test(t)?t="scale":/^rotate/i.test(t)&&(t="rotate"),n[t]&&(i+=t+"("+n[t].join(" ")+") ",delete n[t])})}else{var r,a;p.each(s(t).transformCache,function(e){return r=s(t).transformCache[e],"transformPerspective"===e?(a=r,!0):(9===u&&"rotateZ"===e&&(e="rotate"),void(i+=e+r+" "))}),a&&(i="perspective"+a+" "+i)}k.setPropertyValue(t,"transform",i)}};k.Hooks.register(),k.Normalizations.register(),b.hook=function(t,e,i){var r=n;return t=a(t),p.each(t,function(t,a){if(s(a)===n&&b.init(a),i===n)r===n&&(r=b.CSS.getPropertyValue(a,e));else{var o=b.CSS.setPropertyValue(a,e,i);"transform"===o[0]&&b.CSS.flushTransformCache(a),r=o}}),r};var x=function(){function t(){return o?T.promise||null:l}function r(){function t(t){function d(t,e){var i=n,r=n,s=n;return m.isArray(t)?(i=t[0],!m.isArray(t[1])&&/^[\d-]/.test(t[1])||m.isFunction(t[1])||k.RegEx.isHex.test(t[1])?s=t[1]:(m.isString(t[1])&&!k.RegEx.isHex.test(t[1])||m.isArray(t[1]))&&(r=e?t[1]:c(t[1],o.duration),t[2]!==n&&(s=t[2]))):i=t,e||(r=r||o.easing),m.isFunction(i)&&(i=i.call(a,_,E)),m.isFunction(s)&&(s=s.call(a,_,E)),[i||0,r,s]}function u(t,e){var i,n;return n=(e||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(t){return i=t,""}),i||(i=k.Values.getUnitType(t)),[n,i]}function v(){var t={myParent:a.parentNode||i.body,position:k.getPropertyValue(a,"position"),fontSize:k.getPropertyValue(a,"fontSize")},n=t.position===F.lastPosition&&t.myParent===F.lastParent,r=t.fontSize===F.lastFontSize;F.lastParent=t.myParent,F.lastPosition=t.position,F.lastFontSize=t.fontSize;var o=100,l={};if(r&&n)l.emToPx=F.lastEmToPx,l.percentToPxWidth=F.lastPercentToPxWidth,l.percentToPxHeight=F.lastPercentToPxHeight;else{var c=s(a).isSVG?i.createElementNS("http://www.w3.org/2000/svg","rect"):i.createElement("div");b.init(c),t.myParent.appendChild(c),p.each(["overflow","overflowX","overflowY"],function(t,e){b.CSS.setPropertyValue(c,e,"hidden")}),b.CSS.setPropertyValue(c,"position",t.position),b.CSS.setPropertyValue(c,"fontSize",t.fontSize),b.CSS.setPropertyValue(c,"boxSizing","content-box"),p.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(t,e){b.CSS.setPropertyValue(c,e,o+"%")}),b.CSS.setPropertyValue(c,"paddingLeft",o+"em"),l.percentToPxWidth=F.lastPercentToPxWidth=(parseFloat(k.getPropertyValue(c,"width",null,!0))||1)/o,l.percentToPxHeight=F.lastPercentToPxHeight=(parseFloat(k.getPropertyValue(c,"height",null,!0))||1)/o,l.emToPx=F.lastEmToPx=(parseFloat(k.getPropertyValue(c,"paddingLeft"))||1)/o,t.myParent.removeChild(c)}return null===F.remToPx&&(F.remToPx=parseFloat(k.getPropertyValue(i.body,"fontSize"))||16),null===F.vwToPx&&(F.vwToPx=parseFloat(e.innerWidth)/100,F.vhToPx=parseFloat(e.innerHeight)/100),l.remToPx=F.remToPx,l.vwToPx=F.vwToPx,l.vhToPx=F.vhToPx,b.debug>=1&&console.log("Unit ratios: "+JSON.stringify(l),a),l}if(o.begin&&0===_)try{o.begin.call(f,f)}catch(w){setTimeout(function(){throw w},1)}if("scroll"===D){var x,S,C,A=/^x$/i.test(o.axis)?"Left":"Top",P=parseFloat(o.offset)||0;o.container?m.isWrapped(o.container)||m.isNode(o.container)?(o.container=o.container[0]||o.container,x=o.container["scroll"+A],C=x+p(a).position()[A.toLowerCase()]+P):o.container=null:(x=b.State.scrollAnchor[b.State["scrollProperty"+A]],S=b.State.scrollAnchor[b.State["scrollProperty"+("Left"===A?"Top":"Left")]],C=p(a).offset()[A.toLowerCase()]+P),l={scroll:{rootPropertyValue:!1,startValue:x,currentValue:x,endValue:C,unitType:"",easing:o.easing,scrollData:{container:o.container,direction:A,alternateValue:S}},element:a},b.debug&&console.log("tweensContainer (scroll): ",l.scroll,a)}else if("reverse"===D){if(!s(a).tweensContainer)return void p.dequeue(a,o.queue);"none"===s(a).opts.display&&(s(a).opts.display="auto"),"hidden"===s(a).opts.visibility&&(s(a).opts.visibility="visible"),s(a).opts.loop=!1,s(a).opts.begin=null,s(a).opts.complete=null,y.easing||delete o.easing,y.duration||delete o.duration,o=p.extend({},s(a).opts,o);var N=p.extend(!0,{},s(a).tweensContainer);for(var M in N)if("element"!==M){var I=N[M].startValue;N[M].startValue=N[M].currentValue=N[M].endValue,N[M].endValue=I,m.isEmptyObject(y)||(N[M].easing=o.easing),b.debug&&console.log("reverse tweensContainer ("+M+"): "+JSON.stringify(N[M]),a)}l=N}else if("start"===D){var N;s(a).tweensContainer&&s(a).isAnimating===!0&&(N=s(a).tweensContainer),p.each(g,function(t,e){if(RegExp("^"+k.Lists.colors.join("$|^")+"$").test(t)){var i=d(e,!0),r=i[0],a=i[1],s=i[2];if(k.RegEx.isHex.test(r)){for(var o=["Red","Green","Blue"],l=k.Values.hexToRgb(r),c=s?k.Values.hexToRgb(s):n,h=0;hparseFloat(i[1]))}if(!t.Velocity||!t.Velocity.Utilities)return void(e.console&&console.log("Velocity UI Pack: Velocity must be loaded first. Aborting."));var a=t.Velocity,s=a.Utilities,o=a.version,l={major:1,minor:1,patch:0};if(r(l,o)){var c="Velocity UI Pack: You need to update Velocity (jquery.velocity.js) to a newer version. Visit http://github.com/julianshapiro/velocity.";throw alert(c),new Error(c)}a.RegisterEffect=a.RegisterUI=function(t,e){function i(t,e,i,n){var r,o=0;s.each(t.nodeType?[t]:t,function(t,e){n&&(i+=t*n),r=e.parentNode,s.each(["height","paddingTop","paddingBottom","marginTop","marginBottom"],function(t,i){o+=parseFloat(a.CSS.getPropertyValue(e,i))})}),a.animate(r,{height:("In"===e?"+":"-")+"="+o},{queue:!1,easing:"ease-in-out",duration:i*("In"===e?.6:1)})}return a.Redirects[t]=function(r,o,l,c,h,d){function p(){o.display!==n&&"none"!==o.display||!/Out$/.test(t)||s.each(h.nodeType?[h]:h,function(t,e){a.CSS.setPropertyValue(e,"display","none")}),o.complete&&o.complete.call(h,h),d&&d.resolver(h||r)}var u=l===c-1;"function"==typeof e.defaultDuration?e.defaultDuration=e.defaultDuration.call(h,h):e.defaultDuration=parseFloat(e.defaultDuration);for(var f=0;f1&&(s.each(e.reverse(),function(t,i){var n=e[t+1];if(n){var r=i.o||i.options,o=n.o||n.options,l=r&&r.sequenceQueue===!1?"begin":"complete",c=o&&o[l],h={};h[l]=function(){var t=n.e||n.elements,e=t.nodeType?[t]:t;c&&c.call(e,e),a(i)},n.o?n.o=s.extend({},o,h):n.options=s.extend({},o,h)}}),e.reverse()),a(e[0])}}(window.jQuery||window.Zepto||window,window,document)}),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){"use strict";var e=window.Slick||{};e=function(){function e(e,n){var r,a=this;a.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:t(e),appendDots:t(e),arrows:!0,asNavFor:null,prevArrow:'',nextArrow:'',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,e){return'"},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},a.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},t.extend(a,a.initials),a.activeBreakpoint=null,a.animType=null,a.animProp=null,a.breakpoints=[],a.breakpointSettings=[],a.cssTransitions=!1,a.hidden="hidden",a.paused=!1,a.positionProp=null,a.respondTo=null,a.rowCount=1,a.shouldClick=!0,a.$slider=t(e),a.$slidesCache=null,a.transformType=null,a.transitionType=null,a.visibilityChange="visibilitychange",a.windowWidth=0,a.windowTimer=null,r=t(e).data("slick")||{},a.options=t.extend({},a.defaults,r,n),a.currentSlide=a.options.initialSlide,a.originalSettings=a.options,"undefined"!=typeof document.mozHidden?(a.hidden="mozHidden",a.visibilityChange="mozvisibilitychange"):"undefined"!=typeof document.webkitHidden&&(a.hidden="webkitHidden",a.visibilityChange="webkitvisibilitychange"),a.autoPlay=t.proxy(a.autoPlay,a),a.autoPlayClear=t.proxy(a.autoPlayClear,a),a.changeSlide=t.proxy(a.changeSlide,a),a.clickHandler=t.proxy(a.clickHandler,a),a.selectHandler=t.proxy(a.selectHandler,a),a.setPosition=t.proxy(a.setPosition,a),a.swipeHandler=t.proxy(a.swipeHandler,a),a.dragHandler=t.proxy(a.dragHandler,a),a.keyHandler=t.proxy(a.keyHandler,a),a.autoPlayIterator=t.proxy(a.autoPlayIterator,a),a.instanceUid=i++,a.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,a.registerBreakpoints(),a.init(!0),a.checkResponsive(!0)}var i=0;return e}(),e.prototype.addSlide=e.prototype.slickAdd=function(e,i,n){var r=this;if("boolean"==typeof i)n=i,i=null;else if(i<0||i>=r.slideCount)return!1;r.unload(),"number"==typeof i?0===i&&0===r.$slides.length?t(e).appendTo(r.$slideTrack):n?t(e).insertBefore(r.$slides.eq(i)):t(e).insertAfter(r.$slides.eq(i)):n===!0?t(e).prependTo(r.$slideTrack):t(e).appendTo(r.$slideTrack),r.$slides=r.$slideTrack.children(this.options.slide),r.$slideTrack.children(this.options.slide).detach(),r.$slideTrack.append(r.$slides),r.$slides.each(function(e,i){t(i).attr("data-slick-index",e)}),r.$slidesCache=r.$slides,r.reinit()},e.prototype.animateHeight=function(){var t=this;if(1===t.options.slidesToShow&&t.options.adaptiveHeight===!0&&t.options.vertical===!1){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.animate({height:e},t.options.speed)}},e.prototype.animateSlide=function(e,i){var n={},r=this;r.animateHeight(),r.options.rtl===!0&&r.options.vertical===!1&&(e=-e),r.transformsEnabled===!1?r.options.vertical===!1?r.$slideTrack.animate({left:e},r.options.speed,r.options.easing,i):r.$slideTrack.animate({top:e},r.options.speed,r.options.easing,i):r.cssTransitions===!1?(r.options.rtl===!0&&(r.currentLeft=-r.currentLeft),t({animStart:r.currentLeft}).animate({animStart:e},{duration:r.options.speed,easing:r.options.easing,step:function(t){t=Math.ceil(t),r.options.vertical===!1?(n[r.animType]="translate("+t+"px, 0px)",r.$slideTrack.css(n)):(n[r.animType]="translate(0px,"+t+"px)",r.$slideTrack.css(n))},complete:function(){i&&i.call()}})):(r.applyTransition(),e=Math.ceil(e),r.options.vertical===!1?n[r.animType]="translate3d("+e+"px, 0px, 0px)":n[r.animType]="translate3d(0px,"+e+"px, 0px)",r.$slideTrack.css(n),i&&setTimeout(function(){r.disableTransition(),i.call()},r.options.speed))},e.prototype.asNavFor=function(e){var i=this,n=i.options.asNavFor;n&&null!==n&&(n=t(n).not(i.$slider)),null!==n&&"object"==typeof n&&n.each(function(){var i=t(this).slick("getSlick");i.unslicked||i.slideHandler(e,!0)})},e.prototype.applyTransition=function(t){var e=this,i={};e.options.fade===!1?i[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:i[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,e.options.fade===!1?e.$slideTrack.css(i):e.$slides.eq(t).css(i)},e.prototype.autoPlay=function(){var t=this;t.autoPlayTimer&&clearInterval(t.autoPlayTimer),t.slideCount>t.options.slidesToShow&&t.paused!==!0&&(t.autoPlayTimer=setInterval(t.autoPlayIterator,t.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){var t=this;t.autoPlayTimer&&clearInterval(t.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var t=this;t.options.infinite===!1?1===t.direction?(t.currentSlide+1===t.slideCount-1&&(t.direction=0),t.slideHandler(t.currentSlide+t.options.slidesToScroll)):(t.currentSlide-1===0&&(t.direction=1),t.slideHandler(t.currentSlide-t.options.slidesToScroll)):t.slideHandler(t.currentSlide+t.options.slidesToScroll)},e.prototype.buildArrows=function(){var e=this;e.options.arrows===!0&&(e.$prevArrow=t(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=t(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),e.options.infinite!==!0&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,i,n=this;if(n.options.dots===!0&&n.slideCount>n.options.slidesToShow){for(i='
    ',e=0;e<=n.getDotCount();e+=1)i+="
  • "+n.options.customPaging.call(this,n,e)+"
  • ";i+="
",n.$dots=t(i).appendTo(n.options.appendDots),n.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,i){t(i).attr("data-slick-index",e).data("originalStyling",t(i).attr("style")||"")}),e.$slidesCache=e.$slides,e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?t('
').appendTo(e.$slider):e.$slides.wrapAll('
').parent(),e.$list=e.$slideTrack.wrap('
').parent(),e.$slideTrack.css("opacity",0),e.options.centerMode!==!0&&e.options.swipeToSlide!==!0||(e.options.slidesToScroll=1),t("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.options.draggable===!0&&e.$list.addClass("draggable")},e.prototype.buildRows=function(){var t,e,i,n,r,a,s,o=this;if(n=document.createDocumentFragment(),a=o.$slider.children(),o.options.rows>1){for(s=o.options.slidesPerRow*o.options.rows,r=Math.ceil(a.length/s),t=0;ts.breakpoints[n]&&(r=s.breakpoints[n]));null!==r?null!==s.activeBreakpoint?(r!==s.activeBreakpoint||i)&&(s.activeBreakpoint=r,"unslick"===s.breakpointSettings[r]?s.unslick(r):(s.options=t.extend({},s.originalSettings,s.breakpointSettings[r]),e===!0&&(s.currentSlide=s.options.initialSlide),s.refresh(e)),o=r):(s.activeBreakpoint=r,"unslick"===s.breakpointSettings[r]?s.unslick(r):(s.options=t.extend({},s.originalSettings,s.breakpointSettings[r]),e===!0&&(s.currentSlide=s.options.initialSlide),s.refresh(e)),o=r):null!==s.activeBreakpoint&&(s.activeBreakpoint=null,s.options=s.originalSettings,e===!0&&(s.currentSlide=s.options.initialSlide),s.refresh(e),o=r),e||o===!1||s.$slider.trigger("breakpoint",[s,o])}},e.prototype.changeSlide=function(e,i){var n,r,a,s=this,o=t(e.target);switch(o.is("a")&&e.preventDefault(),o.is("li")||(o=o.closest("li")),a=s.slideCount%s.options.slidesToScroll!==0,n=a?0:(s.slideCount-s.currentSlide)%s.options.slidesToScroll,e.data.message){case"previous":r=0===n?s.options.slidesToScroll:s.options.slidesToShow-n,s.slideCount>s.options.slidesToShow&&s.slideHandler(s.currentSlide-r,!1,i);break;case"next":r=0===n?s.options.slidesToScroll:n,s.slideCount>s.options.slidesToShow&&s.slideHandler(s.currentSlide+r,!1,i);break;case"index":var l=0===e.data.index?0:e.data.index||o.index()*s.options.slidesToScroll;s.slideHandler(s.checkNavigable(l),!1,i),o.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(t){var e,i,n=this;if(e=n.getNavigableIndexes(),i=0,t>e[e.length-1])t=e[e.length-1];else for(var r in e){if(te.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide)),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),t(document).off(e.visibilityChange,e.visibility),e.$list.off("mouseenter.slick",t.proxy(e.setPaused,e,!0)),e.$list.off("mouseleave.slick",t.proxy(e.setPaused,e,!1)),e.options.accessibility===!0&&e.$list.off("keydown.slick",e.keyHandler),e.options.focusOnSelect===!0&&t(e.$slideTrack).children().off("click.slick",e.selectHandler),t(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),t(window).off("resize.slick.slick-"+e.instanceUid,e.resize),t("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),t(window).off("load.slick.slick-"+e.instanceUid,e.setPosition),t(document).off("ready.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.cleanUpRows=function(){var t,e=this;e.options.rows>1&&(t=e.$slides.children().children(),t.removeAttr("style"),e.$slider.html(t))},e.prototype.clickHandler=function(t){var e=this;e.shouldClick===!1&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())},e.prototype.destroy=function(e){var i=this;i.autoPlayClear(),i.touchObject={},i.cleanUpEvents(),t(".slick-cloned",i.$slider).detach(),i.$dots&&i.$dots.remove(),i.options.arrows===!0&&(i.$prevArrow&&i.$prevArrow.length&&(i.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.prevArrow)&&i.$prevArrow.remove()),i.$nextArrow&&i.$nextArrow.length&&(i.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.nextArrow)&&i.$nextArrow.remove())),i.$slides&&(i.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){t(this).attr("style",t(this).data("originalStyling"))}),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.detach(),i.$list.detach(),i.$slider.append(i.$slides)),i.cleanUpRows(),i.$slider.removeClass("slick-slider"),i.$slider.removeClass("slick-initialized"),i.unslicked=!0,e||i.$slider.trigger("destroy",[i])},e.prototype.disableTransition=function(t){var e=this,i={};i[e.transitionType]="",e.options.fade===!1?e.$slideTrack.css(i):e.$slides.eq(t).css(i)},e.prototype.fadeSlide=function(t,e){var i=this;i.cssTransitions===!1?(i.$slides.eq(t).css({zIndex:i.options.zIndex}),i.$slides.eq(t).animate({opacity:1},i.options.speed,i.options.easing,e)):(i.applyTransition(t),i.$slides.eq(t).css({opacity:1,zIndex:i.options.zIndex}),e&&setTimeout(function(){i.disableTransition(t),e.call()},i.options.speed))},e.prototype.fadeSlideOut=function(t){var e=this;e.cssTransitions===!1?e.$slides.eq(t).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(t),e.$slides.eq(t).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(t){var e=this;null!==t&&(e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(t).appendTo(e.$slideTrack),e.reinit())},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){var t=this;return t.currentSlide},e.prototype.getDotCount=function(){var t=this,e=0,i=0,n=0;if(t.options.infinite===!0)for(;er.options.slidesToShow&&(r.slideOffset=r.slideWidth*r.options.slidesToShow*-1,a=i*r.options.slidesToShow*-1),r.slideCount%r.options.slidesToScroll!==0&&t+r.options.slidesToScroll>r.slideCount&&r.slideCount>r.options.slidesToShow&&(t>r.slideCount?(r.slideOffset=(r.options.slidesToShow-(t-r.slideCount))*r.slideWidth*-1,a=(r.options.slidesToShow-(t-r.slideCount))*i*-1):(r.slideOffset=r.slideCount%r.options.slidesToScroll*r.slideWidth*-1,a=r.slideCount%r.options.slidesToScroll*i*-1))):t+r.options.slidesToShow>r.slideCount&&(r.slideOffset=(t+r.options.slidesToShow-r.slideCount)*r.slideWidth,a=(t+r.options.slidesToShow-r.slideCount)*i),r.slideCount<=r.options.slidesToShow&&(r.slideOffset=0,a=0),r.options.centerMode===!0&&r.options.infinite===!0?r.slideOffset+=r.slideWidth*Math.floor(r.options.slidesToShow/2)-r.slideWidth:r.options.centerMode===!0&&(r.slideOffset=0,r.slideOffset+=r.slideWidth*Math.floor(r.options.slidesToShow/2)),e=r.options.vertical===!1?t*r.slideWidth*-1+r.slideOffset:t*i*-1+a,r.options.variableWidth===!0&&(n=r.slideCount<=r.options.slidesToShow||r.options.infinite===!1?r.$slideTrack.children(".slick-slide").eq(t):r.$slideTrack.children(".slick-slide").eq(t+r.options.slidesToShow),e=n[0]?n[0].offsetLeft*-1:0,r.options.centerMode===!0&&(n=r.options.infinite===!1?r.$slideTrack.children(".slick-slide").eq(t):r.$slideTrack.children(".slick-slide").eq(t+r.options.slidesToShow+1),e=n[0]?n[0].offsetLeft*-1:0,e+=(r.$list.width()-n.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(t){var e=this;return e.options[t]},e.prototype.getNavigableIndexes=function(){var t,e=this,i=0,n=0,r=[];for(e.options.infinite===!1?t=e.slideCount:(i=e.options.slidesToScroll*-1,n=e.options.slidesToScroll*-1,t=2*e.slideCount);ir.swipeLeft*-1)return i=a,!1}),e=Math.abs(t(i).attr("data-slick-index")-r.currentSlide)||1):r.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(t,e){var i=this;i.changeSlide({data:{message:"index",index:parseInt(t)}},e)},e.prototype.init=function(e){var i=this;t(i.$slider).hasClass("slick-initialized")||(t(i.$slider).addClass("slick-initialized"),i.buildRows(),i.buildOut(),i.setProps(),i.startLoad(),i.loadSlider(),i.initializeEvents(),i.updateArrows(),i.updateDots()),e&&i.$slider.trigger("init",[i]),i.options.accessibility===!0&&i.initADA()},e.prototype.initArrowEvents=function(){var t=this;t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.on("click.slick",{message:"previous"},t.changeSlide),t.$nextArrow.on("click.slick",{message:"next"},t.changeSlide))},e.prototype.initDotEvents=function(){var e=this;e.options.dots===!0&&e.slideCount>e.options.slidesToShow&&t("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),e.options.dots===!0&&e.options.pauseOnDotsHover===!0&&e.options.autoplay===!0&&t("li",e.$dots).on("mouseenter.slick",t.proxy(e.setPaused,e,!0)).on("mouseleave.slick",t.proxy(e.setPaused,e,!1))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),t(document).on(e.visibilityChange,t.proxy(e.visibility,e)),e.$list.on("mouseenter.slick",t.proxy(e.setPaused,e,!0)),e.$list.on("mouseleave.slick",t.proxy(e.setPaused,e,!1)),e.options.accessibility===!0&&e.$list.on("keydown.slick",e.keyHandler),e.options.focusOnSelect===!0&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),t(window).on("orientationchange.slick.slick-"+e.instanceUid,t.proxy(e.orientationChange,e)),t(window).on("resize.slick.slick-"+e.instanceUid,t.proxy(e.resize,e)),t("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),t(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),t(document).on("ready.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.initUI=function(){var t=this;t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.show(),t.$nextArrow.show()),t.options.dots===!0&&t.slideCount>t.options.slidesToShow&&t.$dots.show(),t.options.autoplay===!0&&t.autoPlay()},e.prototype.keyHandler=function(t){var e=this;t.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===t.keyCode&&e.options.accessibility===!0?e.changeSlide({data:{message:"previous"}}):39===t.keyCode&&e.options.accessibility===!0&&e.changeSlide({data:{message:"next"}}))},e.prototype.lazyLoad=function(){function e(e){t("img[data-lazy]",e).each(function(){var e=t(this),i=t(this).attr("data-lazy"),n=document.createElement("img");n.onload=function(){e.animate({opacity:0},100,function(){e.attr("src",i).animate({opacity:1},200,function(){e.removeAttr("data-lazy").removeClass("slick-loading")})})},n.src=i})}var i,n,r,a,s=this;s.options.centerMode===!0?s.options.infinite===!0?(r=s.currentSlide+(s.options.slidesToShow/2+1),a=r+s.options.slidesToShow+2):(r=Math.max(0,s.currentSlide-(s.options.slidesToShow/2+1)),a=2+(s.options.slidesToShow/2+1)+s.currentSlide):(r=s.options.infinite?s.options.slidesToShow+s.currentSlide:s.currentSlide,a=r+s.options.slidesToShow,s.options.fade===!0&&(r>0&&r--,a<=s.slideCount&&a++)),i=s.$slider.find(".slick-slide").slice(r,a),e(i),s.slideCount<=s.options.slidesToShow?(n=s.$slider.find(".slick-slide"),e(n)):s.currentSlide>=s.slideCount-s.options.slidesToShow?(n=s.$slider.find(".slick-cloned").slice(0,s.options.slidesToShow),e(n)):0===s.currentSlide&&(n=s.$slider.find(".slick-cloned").slice(s.options.slidesToShow*-1),e(n))},e.prototype.loadSlider=function(){var t=this;t.setPosition(),t.$slideTrack.css({opacity:1}),t.$slider.removeClass("slick-loading"),t.initUI(),"progressive"===t.options.lazyLoad&&t.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){var t=this;t.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){var t=this;t.checkResponsive(),t.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){var t=this;t.autoPlayClear(),t.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var t=this;t.paused=!1,t.autoPlay()},e.prototype.postSlide=function(t){var e=this;e.$slider.trigger("afterChange",[e,t]),e.animating=!1,e.setPosition(),e.swipeLeft=null,e.options.autoplay===!0&&e.paused===!1&&e.autoPlay(),e.options.accessibility===!0&&e.initADA()},e.prototype.prev=e.prototype.slickPrev=function(){var t=this;t.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(t){t.preventDefault()},e.prototype.progressiveLazyLoad=function(){var e,i,n=this;e=t("img[data-lazy]",n.$slider).length,e>0&&(i=t("img[data-lazy]",n.$slider).first(),i.attr("src",i.attr("data-lazy")).removeClass("slick-loading").load(function(){i.removeAttr("data-lazy"),n.progressiveLazyLoad(),n.options.adaptiveHeight===!0&&n.setPosition()}).error(function(){i.removeAttr("data-lazy"),n.progressiveLazyLoad()}))},e.prototype.refresh=function(e){var i=this,n=i.currentSlide;i.destroy(!0),t.extend(i,i.initials,{currentSlide:n}),i.init(),e||i.changeSlide({data:{message:"index",index:n}},!1)},e.prototype.registerBreakpoints=function(){var e,i,n,r=this,a=r.options.responsive||null;if("array"===t.type(a)&&a.length){r.respondTo=r.options.respondTo||"window";for(e in a)if(n=r.breakpoints.length-1,i=a[e].breakpoint,a.hasOwnProperty(e)){for(;n>=0;)r.breakpoints[n]&&r.breakpoints[n]===i&&r.breakpoints.splice(n,1),n--;r.breakpoints.push(i),r.breakpointSettings[i]=a[e].settings}r.breakpoints.sort(function(t,e){return r.options.mobileFirst?t-e:e-t})}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.checkResponsive(!1,!0),e.options.focusOnSelect===!0&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses(0),e.setPosition(),e.$slider.trigger("reInit",[e]),e.options.autoplay===!0&&e.focusHandler(); },e.prototype.resize=function(){var e=this;t(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=t(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},e.prototype.removeSlide=e.prototype.slickRemove=function(t,e,i){var n=this;return"boolean"==typeof t?(e=t,t=e===!0?0:n.slideCount-1):t=e===!0?--t:t,!(n.slideCount<1||t<0||t>n.slideCount-1)&&(n.unload(),i===!0?n.$slideTrack.children().remove():n.$slideTrack.children(this.options.slide).eq(t).remove(),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slidesCache=n.$slides,void n.reinit())},e.prototype.setCSS=function(t){var e,i,n=this,r={};n.options.rtl===!0&&(t=-t),e="left"==n.positionProp?Math.ceil(t)+"px":"0px",i="top"==n.positionProp?Math.ceil(t)+"px":"0px",r[n.positionProp]=t,n.transformsEnabled===!1?n.$slideTrack.css(r):(r={},n.cssTransitions===!1?(r[n.animType]="translate("+e+", "+i+")",n.$slideTrack.css(r)):(r[n.animType]="translate3d("+e+", "+i+", 0px)",n.$slideTrack.css(r)))},e.prototype.setDimensions=function(){var t=this;t.options.vertical===!1?t.options.centerMode===!0&&t.$list.css({padding:"0px "+t.options.centerPadding}):(t.$list.height(t.$slides.first().outerHeight(!0)*t.options.slidesToShow),t.options.centerMode===!0&&t.$list.css({padding:t.options.centerPadding+" 0px"})),t.listWidth=t.$list.width(),t.listHeight=t.$list.height(),t.options.vertical===!1&&t.options.variableWidth===!1?(t.slideWidth=Math.ceil(t.listWidth/t.options.slidesToShow),t.$slideTrack.width(Math.ceil(t.slideWidth*t.$slideTrack.children(".slick-slide").length))):t.options.variableWidth===!0?t.$slideTrack.width(5e3*t.slideCount):(t.slideWidth=Math.ceil(t.listWidth),t.$slideTrack.height(Math.ceil(t.$slides.first().outerHeight(!0)*t.$slideTrack.children(".slick-slide").length)));var e=t.$slides.first().outerWidth(!0)-t.$slides.first().width();t.options.variableWidth===!1&&t.$slideTrack.children(".slick-slide").width(t.slideWidth-e)},e.prototype.setFade=function(){var e,i=this;i.$slides.each(function(n,r){e=i.slideWidth*n*-1,i.options.rtl===!0?t(r).css({position:"relative",right:e,top:0,zIndex:i.options.zIndex-2,opacity:0}):t(r).css({position:"relative",left:e,top:0,zIndex:i.options.zIndex-2,opacity:0})}),i.$slides.eq(i.currentSlide).css({zIndex:i.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var t=this;if(1===t.options.slidesToShow&&t.options.adaptiveHeight===!0&&t.options.vertical===!1){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.css("height",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(e,i,n){var r,a,s=this;if("responsive"===e&&"array"===t.type(i))for(a in i)if("array"!==t.type(s.options.responsive))s.options.responsive=[i[a]];else{for(r=s.options.responsive.length-1;r>=0;)s.options.responsive[r].breakpoint===i[a].breakpoint&&s.options.responsive.splice(r,1),r--;s.options.responsive.push(i[a])}else s.options[e]=i;n===!0&&(s.unload(),s.reinit())},e.prototype.setPosition=function(){var t=this;t.setDimensions(),t.setHeight(),t.options.fade===!1?t.setCSS(t.getLeft(t.currentSlide)):t.setFade(),t.$slider.trigger("setPosition",[t])},e.prototype.setProps=function(){var t=this,e=document.body.style;t.positionProp=t.options.vertical===!0?"top":"left","top"===t.positionProp?t.$slider.addClass("slick-vertical"):t.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||t.options.useCSS===!0&&(t.cssTransitions=!0),t.options.fade&&("number"==typeof t.options.zIndex?t.options.zIndex<3&&(t.options.zIndex=3):t.options.zIndex=t.defaults.zIndex),void 0!==e.OTransform&&(t.animType="OTransform",t.transformType="-o-transform",t.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.MozTransform&&(t.animType="MozTransform",t.transformType="-moz-transform",t.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(t.animType=!1)),void 0!==e.webkitTransform&&(t.animType="webkitTransform",t.transformType="-webkit-transform",t.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.msTransform&&(t.animType="msTransform",t.transformType="-ms-transform",t.transitionType="msTransition",void 0===e.msTransform&&(t.animType=!1)),void 0!==e.transform&&t.animType!==!1&&(t.animType="transform",t.transformType="transform",t.transitionType="transition"),t.transformsEnabled=null!==t.animType&&t.animType!==!1},e.prototype.setSlideClasses=function(t){var e,i,n,r,a=this;i=a.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),a.$slides.eq(t).addClass("slick-current"),a.options.centerMode===!0?(e=Math.floor(a.options.slidesToShow/2),a.options.infinite===!0&&(t>=e&&t<=a.slideCount-1-e?a.$slides.slice(t-e,t+e+1).addClass("slick-active").attr("aria-hidden","false"):(n=a.options.slidesToShow+t,i.slice(n-e+1,n+e+2).addClass("slick-active").attr("aria-hidden","false")),0===t?i.eq(i.length-1-a.options.slidesToShow).addClass("slick-center"):t===a.slideCount-1&&i.eq(a.options.slidesToShow).addClass("slick-center")),a.$slides.eq(t).addClass("slick-center")):t>=0&&t<=a.slideCount-a.options.slidesToShow?a.$slides.slice(t,t+a.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):i.length<=a.options.slidesToShow?i.addClass("slick-active").attr("aria-hidden","false"):(r=a.slideCount%a.options.slidesToShow,n=a.options.infinite===!0?a.options.slidesToShow+t:t,a.options.slidesToShow==a.options.slidesToScroll&&a.slideCount-tr.options.slidesToShow)){for(n=r.options.centerMode===!0?r.options.slidesToShow+1:r.options.slidesToShow,e=r.slideCount;e>r.slideCount-n;e-=1)i=e-1,t(r.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i-r.slideCount).prependTo(r.$slideTrack).addClass("slick-cloned");for(e=0;el.getDotCount()*l.options.slidesToScroll)?void(l.options.fade===!1&&(n=l.currentSlide,i!==!0?l.animateSlide(s,function(){l.postSlide(n)}):l.postSlide(n))):l.options.infinite===!1&&l.options.centerMode===!0&&(t<0||t>l.slideCount-l.options.slidesToScroll)?void(l.options.fade===!1&&(n=l.currentSlide,i!==!0?l.animateSlide(s,function(){l.postSlide(n)}):l.postSlide(n))):(l.options.autoplay===!0&&clearInterval(l.autoPlayTimer),r=n<0?l.slideCount%l.options.slidesToScroll!==0?l.slideCount-l.slideCount%l.options.slidesToScroll:l.slideCount+n:n>=l.slideCount?l.slideCount%l.options.slidesToScroll!==0?0:n-l.slideCount:n,l.animating=!0,l.$slider.trigger("beforeChange",[l,l.currentSlide,r]),a=l.currentSlide,l.currentSlide=r,l.setSlideClasses(l.currentSlide),l.updateDots(),l.updateArrows(),l.options.fade===!0?(i!==!0?(l.fadeSlideOut(a),l.fadeSlide(r,function(){l.postSlide(r)})):l.postSlide(r),void l.animateHeight()):void(i!==!0?l.animateSlide(o,function(){l.postSlide(r)}):l.postSlide(r)))},e.prototype.startLoad=function(){var t=this;t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.hide(),t.$nextArrow.hide()),t.options.dots===!0&&t.slideCount>t.options.slidesToShow&&t.$dots.hide(),t.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var t,e,i,n,r=this;return t=r.touchObject.startX-r.touchObject.curX,e=r.touchObject.startY-r.touchObject.curY,i=Math.atan2(e,t),n=Math.round(180*i/Math.PI),n<0&&(n=360-Math.abs(n)),n<=45&&n>=0?r.options.rtl===!1?"left":"right":n<=360&&n>=315?r.options.rtl===!1?"left":"right":n>=135&&n<=225?r.options.rtl===!1?"right":"left":r.options.verticalSwiping===!0?n>=35&&n<=135?"left":"right":"vertical"},e.prototype.swipeEnd=function(t){var e,i=this;if(i.dragging=!1,i.shouldClick=!(i.touchObject.swipeLength>10),void 0===i.touchObject.curX)return!1;if(i.touchObject.edgeHit===!0&&i.$slider.trigger("edge",[i,i.swipeDirection()]),i.touchObject.swipeLength>=i.touchObject.minSwipe)switch(i.swipeDirection()){case"left":e=i.options.swipeToSlide?i.checkNavigable(i.currentSlide+i.getSlideCount()):i.currentSlide+i.getSlideCount(),i.slideHandler(e),i.currentDirection=0,i.touchObject={},i.$slider.trigger("swipe",[i,"left"]);break;case"right":e=i.options.swipeToSlide?i.checkNavigable(i.currentSlide-i.getSlideCount()):i.currentSlide-i.getSlideCount(),i.slideHandler(e),i.currentDirection=1,i.touchObject={},i.$slider.trigger("swipe",[i,"right"])}else i.touchObject.startX!==i.touchObject.curX&&(i.slideHandler(i.currentSlide),i.touchObject={})},e.prototype.swipeHandler=function(t){var e=this;if(!(e.options.swipe===!1||"ontouchend"in document&&e.options.swipe===!1||e.options.draggable===!1&&t.type.indexOf("mouse")!==-1))switch(e.touchObject.fingerCount=t.originalEvent&&void 0!==t.originalEvent.touches?t.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,e.options.verticalSwiping===!0&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),t.data.action){case"start":e.swipeStart(t);break;case"move":e.swipeMove(t);break;case"end":e.swipeEnd(t)}},e.prototype.swipeMove=function(t){var e,i,n,r,a,s=this;return a=void 0!==t.originalEvent?t.originalEvent.touches:null,!(!s.dragging||a&&1!==a.length)&&(e=s.getLeft(s.currentSlide),s.touchObject.curX=void 0!==a?a[0].pageX:t.clientX,s.touchObject.curY=void 0!==a?a[0].pageY:t.clientY,s.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(s.touchObject.curX-s.touchObject.startX,2))),s.options.verticalSwiping===!0&&(s.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(s.touchObject.curY-s.touchObject.startY,2)))),i=s.swipeDirection(),"vertical"!==i?(void 0!==t.originalEvent&&s.touchObject.swipeLength>4&&t.preventDefault(),r=(s.options.rtl===!1?1:-1)*(s.touchObject.curX>s.touchObject.startX?1:-1),s.options.verticalSwiping===!0&&(r=s.touchObject.curY>s.touchObject.startY?1:-1),n=s.touchObject.swipeLength,s.touchObject.edgeHit=!1,s.options.infinite===!1&&(0===s.currentSlide&&"right"===i||s.currentSlide>=s.getDotCount()&&"left"===i)&&(n=s.touchObject.swipeLength*s.options.edgeFriction,s.touchObject.edgeHit=!0),s.options.vertical===!1?s.swipeLeft=e+n*r:s.swipeLeft=e+n*(s.$list.height()/s.listWidth)*r,s.options.verticalSwiping===!0&&(s.swipeLeft=e+n*r),s.options.fade!==!0&&s.options.touchMove!==!1&&(s.animating===!0?(s.swipeLeft=null,!1):void s.setCSS(s.swipeLeft))):void 0)},e.prototype.swipeStart=function(t){var e,i=this;return 1!==i.touchObject.fingerCount||i.slideCount<=i.options.slidesToShow?(i.touchObject={},!1):(void 0!==t.originalEvent&&void 0!==t.originalEvent.touches&&(e=t.originalEvent.touches[0]),i.touchObject.startX=i.touchObject.curX=void 0!==e?e.pageX:t.clientX,i.touchObject.startY=i.touchObject.curY=void 0!==e?e.pageY:t.clientY,void(i.dragging=!0))},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var t=this;null!==t.$slidesCache&&(t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.appendTo(t.$slideTrack),t.reinit())},e.prototype.unload=function(){var e=this;t(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},e.prototype.unslick=function(t){var e=this;e.$slider.trigger("unslick",[e,t]),e.destroy()},e.prototype.updateArrows=function(){var t,e=this;t=Math.floor(e.options.slidesToShow/2),e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&!e.options.infinite&&(e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===e.currentSlide?(e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):e.currentSlide>=e.slideCount-e.options.slidesToShow&&e.options.centerMode===!1?(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):e.currentSlide>=e.slideCount-1&&e.options.centerMode===!0&&(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){var t=this;null!==t.$dots&&(t.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),t.$dots.find("li").eq(Math.floor(t.currentSlide/t.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))},e.prototype.visibility=function(){var t=this;document[t.hidden]?(t.paused=!0,t.autoPlayClear()):t.options.autoplay===!0&&(t.paused=!1,t.autoPlay())},e.prototype.initADA=function(){var e=this;e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),e.$slideTrack.attr("role","listbox"),e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(i){t(this).attr({role:"option","aria-describedby":"slick-slide"+e.instanceUid+i})}),null!==e.$dots&&e.$dots.attr("role","tablist").find("li").each(function(i){t(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+e.instanceUid+i,id:"slick-slide"+e.instanceUid+i})}).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar"),e.activateADA()},e.prototype.activateADA=function(){var t=this,e=t.$slider.find("*").is(":focus");t.$slideTrack.find(".slick-active").attr({"aria-hidden":"false",tabindex:"0"}).find("a, input, button, select").attr({tabindex:"0"}),e&&t.$slideTrack.find(".slick-active").focus()},e.prototype.focusHandler=function(){var e=this;e.$slider.on("focus.slick blur.slick","*",function(i){i.stopImmediatePropagation();var n=t(this);setTimeout(function(){e.isPlay&&(n.is(":focus")?(e.autoPlayClear(),e.paused=!0):(e.paused=!1,e.autoPlay()))},0)})},t.fn.slick=function(){var t,i=this,n=arguments[0],r=Array.prototype.slice.call(arguments,1),a=i.length,s=0;for(s;sn.oldScroll,a=r?n.forward:n.backward;for(var s in this.waypoints[i]){var o=this.waypoints[i][s],l=n.oldScroll=o.triggerPoint,h=l&&c,d=!l&&!c;(h||d)&&(o.queueTrigger(a),t[o.group.id]=o.group)}}for(var p in t)t[p].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},e.prototype.innerHeight=function(){return this.element==this.element.window?r.viewportHeight():this.adapter.innerHeight()},e.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},e.prototype.innerWidth=function(){return this.element==this.element.window?r.viewportWidth():this.adapter.innerWidth()},e.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var i in this.waypoints[e])t.push(this.waypoints[e][i]);for(var n=0,r=t.length;n-1&&(f=Math.ceil(s.contextDimension*f/100))),l=s.contextScroll-s.contextOffset,u.triggerPoint=g+l-f,c=m=s.oldScroll,d=c&&h,p=!c&&!h,!v&&d?(u.queueTrigger(s.backward),n[u.group.id]=u.group):!v&&p?(u.queueTrigger(s.forward),n[u.group.id]=u.group):v&&s.oldScroll>=u.triggerPoint&&(u.queueTrigger(s.forward),n[u.group.id]=u.group)}}return r.requestAnimationFrame(function(){for(var t in n)n[t].flushTriggers()}),this},e.findOrCreateByElement=function(t){return e.findByElement(t)||new e(t)},e.refreshAll=function(){for(var t in n)n[t].refresh()},e.findByElement=function(t){return n[t.waypointContextKey]},window.onload=function(){a&&a(),e.refreshAll()},r.requestAnimationFrame=function(e){var i=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t;i.call(window,e)},r.Context=e}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}function i(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),n[this.axis][this.name]=this}var n={vertical:{},horizontal:{}},r=window.Waypoint;i.prototype.add=function(t){this.waypoints.push(t)},i.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},i.prototype.flushTriggers=function(){for(var i in this.triggerQueues){var n=this.triggerQueues[i],r="up"===i||"left"===i;n.sort(r?e:t);for(var a=0,s=n.length;a-1&&this.waypoints.splice(e,1)},i.prototype.first=function(){return this.waypoints[0]},i.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},i.findOrCreate=function(t){return n[t.axis][t.name]||new i(t)},r.Group=i}(),function(){"use strict";function t(t){this.$element=e(t)}var e=window.jQuery,i=window.Waypoint;e.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(e,i){t.prototype[i]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[i].apply(this.$element,t)}}),e.each(["extend","inArray","isEmptyObject"],function(i,n){t[n]=e[n]}),i.adapters.push({name:"jquery",Adapter:t}),i.Adapter=t}(),function(){"use strict";function t(t){return function(){var i=[],n=arguments[0];return t.isFunction(arguments[0])&&(n=t.extend({},arguments[1]),n.handler=arguments[0]),this.each(function(){var r=t.extend({},n,{element:this});"string"==typeof r.context&&(r.context=t(this).closest(r.context)[0]),i.push(new e(r))}),i}}var e=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=t(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=t(window.Zepto))}(),function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof module&&module.exports?module.exports=e():t.bodymovin=e()}(window,function(){function roundValues(t){bm_rnd=t?Math.round:function(t){return t}}function roundTo2Decimals(t){return Math.round(1e4*t)/1e4}function roundTo3Decimals(t){return Math.round(100*t)/100}function styleDiv(t){t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.display="block",t.style.transformOrigin=t.style.webkitTransformOrigin="0 0",t.style.backfaceVisibility=t.style.webkitBackfaceVisibility="visible",t.style.transformStyle=t.style.webkitTransformStyle=t.style.mozTransformStyle="preserve-3d"}function styleUnselectableDiv(t){t.style.userSelect="none",t.style.MozUserSelect="none",t.style.webkitUserSelect="none",t.style.oUserSelect="none"}function BMEnterFrameEvent(t,e,i,n){this.type=t,this.currentTime=e,this.totalTime=i,this.direction=0>n?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=0>e?-1:1}function BMCompleteLoopEvent(t,e,i,n){this.type=t,this.currentLoop=e,this.totalLoops=i,this.direction=0>n?-1:1}function BMSegmentStartEvent(t,e,i){this.type=t,this.firstFrame=e,this.totalFrames=i}function BMDestroyEvent(t,e){this.type=t,this.target=e}function _addEventListener(t,e){this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e)}function _removeEventListener(t,e){if(e){if(this._cbs[t]){for(var i=0,n=this._cbs[t].length;n>i;)this._cbs[t][i]===e&&(this._cbs[t].splice(i,1),i-=1,n-=1),i+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}function _triggerEvent(t,e){if(this._cbs[t])for(var i=this._cbs[t].length,n=0;i>n;n++)this._cbs[t][n](e)}function randomString(t,e){void 0===e&&(e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890");var i,n="";for(i=t;i>0;--i)n+=e[Math.round(Math.random()*(e.length-1))];return n}function HSVtoRGB(t,e,i){var n,r,a,s,o,l,c,h;switch(1===arguments.length&&(e=t.s,i=t.v,t=t.h),s=Math.floor(6*t),o=6*t-s,l=i*(1-e),c=i*(1-o*e),h=i*(1-(1-o)*e),s%6){case 0:n=i,r=h,a=l;break;case 1:n=c,r=i,a=l;break;case 2:n=l,r=i,a=h;break;case 3:n=l,r=c,a=i;break;case 4:n=h,r=l,a=i;break;case 5:n=i,r=l,a=c}return[Math.round(255*n),Math.round(255*r),Math.round(255*a)]}function RGBtoHSV(t,e,i){1===arguments.length&&(e=t.g,i=t.b,t=t.r);var n,r=Math.max(t,e,i),a=Math.min(t,e,i),s=r-a,o=0===r?0:s/r,l=r/255;switch(r){case a:n=0;break;case t:n=e-i+s*(i>e?6:0),n/=6*s;break;case e:n=i-t+2*s,n/=6*s;break;case i:n=t-e+4*s,n/=6*s}return[n,o,l]}function addSaturationToRGB(t,e){var i=RGBtoHSV(t[0],t[1],t[2]);return i[1]+=e,i[1]>1?i[1]=1:i[1]<=0&&(i[1]=0),HSVtoRGB(i[0],i[1],i[2])}function addBrightnessToRGB(t,e){var i=RGBtoHSV(t[0],t[1],t[2]);return i[2]+=e,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),HSVtoRGB(i[0],i[1],i[2])}function addHueToRGB(t,e){var i=RGBtoHSV(t[0],t[1],t[2]);return i[0]+=e/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),HSVtoRGB(i[0],i[1],i[2])}function componentToHex(t){var e=t.toString(16);return 1==e.length?"0"+e:e}function fillToRgba(t,e){if(!cachedColors[t]){var i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);cachedColors[t]=parseInt(i[1],16)+","+parseInt(i[2],16)+","+parseInt(i[3],16)}return"rgba("+cachedColors[t]+","+e+")"}function RenderedFrame(t,e){this.tr=t,this.o=e}function LetterProps(t,e,i,n,r,a){this.o=t,this.sw=e,this.sc=i,this.fc=n,this.m=r,this.props=a}function iterateDynamicProperties(t){var e,i=this.dynamicProperties;for(e=0;i>e;e+=1)this.dynamicProperties[e].getValue(t)}function reversePath(t,e){var i,n,r=[],a=[],s=[],o={},l=0;e&&(r[0]=t.o[0],a[0]=t.i[0],s[0]=t.v[0],l=1),n=t.i.length;var c=n-1;for(i=l;n>i;i+=1)r.push(t.o[c]),a.push(t.i[c]),s.push(t.v[c]),c-=1;return o.i=r,o.o=a,o.v=s,o}function Matrix(){}function matrixManagerFunction(){var t=new Matrix,e=function(e,i,n,r,a){return t.reset().translate(r,a).rotate(e).scale(i,n).toCSS()},i=function(t){return e(t.tr.r[2],t.tr.s[0],t.tr.s[1],t.tr.p[0],t.tr.p[1])};return{getMatrix:i}}function createElement(t,e,i){if(!e){var n=Object.create(t.prototype,i),r={};return n&&"[object Function]"===r.toString.call(n.init)&&n.init(),n}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.prototype.parent=t.prototype}function extendPrototype(t,e){for(var i in t.prototype)t.prototype.hasOwnProperty(i)&&(e.prototype[i]=t.prototype[i])}function bezFunction(){function t(t,e,i,n,r,a){var s=t*n+e*r+i*a-r*n-a*t-i*e;return s>-1e-4&&1e-4>s}function e(e,i,n,r,a,s,o,l,c){return t(e,i,r,a,o,l)&&t(e,n,r,s,o,c)}function i(t){this.segmentLength=0,this.points=new Array(t)}function n(t,e){this.partialLength=t,this.point=e}function r(t,e){var i=e.segments,n=i.length,r=bm_floor((n-1)*t),a=t*e.addedLength,s=0;if(a==i[r].l)return i[r].p;for(var o=i[r].l>a?-1:1,l=!0;l;)i[r].l<=a&&i[r+1].l>a?(s=(a-i[r].l)/(i[r+1].l-i[r].l),l=!1):r+=o,(0>r||r>=n-1)&&(l=!1);return i[r].p+(i[r+1].p-i[r].p)*s}function a(){this.pt1=new Array(2),this.pt2=new Array(2),this.pt3=new Array(2),this.pt4=new Array(2)}function s(t,e,i,n,s,o,l){var c=new a;s=0>s?0:s;var h=r(s,l);o=o>1?1:o;var d,p=r(o,l),u=t.length,f=1-h,m=1-p;for(d=0;u>d;d+=1)c.pt1[d]=f*f*f*t[d]+(h*f*f+f*h*f+f*f*h)*i[d]+(h*h*f+f*h*h+h*f*h)*n[d]+h*h*h*e[d],c.pt3[d]=f*f*m*t[d]+(h*f*m+f*h*m+f*f*p)*i[d]+(h*h*m+f*h*p+h*f*p)*n[d]+h*h*p*e[d],c.pt4[d]=f*m*m*t[d]+(h*m*m+f*p*m+f*m*p)*i[d]+(h*p*m+f*p*p+h*m*p)*n[d]+h*p*p*e[d],c.pt2[d]=m*m*m*t[d]+(p*m*m+m*p*m+m*m*p)*i[d]+(p*p*m+m*p*p+p*m*p)*n[d]+p*p*p*e[d];return c}var o=(Math,function(){function t(t,e){this.l=t,this.p=e}var e={};return function(i,n,r,a){var s=(i.join("_")+"_"+n.join("_")+"_"+r.join("_")+"_"+a.join("_")).replace(/\./g,"p");if(e[s])return e[s];var o,l,c,h,d,p,u=defaultCurveSegments,f=0,m=[],g=[],v={addedLength:0,segments:[]};for(c=r.length,o=0;u>o;o+=1){for(d=o/(u-1),p=0,l=0;c>l;l+=1)h=bm_pow(1-d,3)*i[l]+3*bm_pow(1-d,2)*d*r[l]+3*(1-d)*bm_pow(d,2)*a[l]+bm_pow(d,3)*n[l],m[l]=h,null!==g[l]&&(p+=bm_pow(m[l]-g[l],2)),g[l]=m[l];p&&(p=bm_sqrt(p),f+=p),v.segments.push(new t(f,d))}return v.addedLength=f,e[s]=v,v}}()),l=function(){var e={};return function(r){var a=r.s,s=r.e,o=r.to,l=r.ti,c=(a.join("_")+"_"+s.join("_")+"_"+o.join("_")+"_"+l.join("_")).replace(/\./g,"p");if(e[c])return void(r.bezierData=e[c]);var h,d,p,u,f,m,g,v=defaultCurveSegments,y=0,b=null;2===a.length&&(a[0]!=s[0]||a[1]!=s[1])&&t(a[0],a[1],s[0],s[1],a[0]+o[0],a[1]+o[1])&&t(a[0],a[1],s[0],s[1],s[0]+l[0],s[1]+l[1])&&(v=2);var w=new i(v);for(p=o.length,h=0;v>h;h+=1){for(g=new Array(p),f=h/(v-1),m=0,d=0;p>d;d+=1)u=bm_pow(1-f,3)*a[d]+3*bm_pow(1-f,2)*f*(a[d]+o[d])+3*(1-f)*bm_pow(f,2)*(s[d]+l[d])+bm_pow(f,3)*s[d],g[d]=u,null!==b&&(m+=bm_pow(g[d]-b[d],2));m=bm_sqrt(m),y+=m,w.points[h]=new n(m,g),b=g}w.segmentLength=y,r.bezierData=w,e[c]=w}}();return{getBezierLength:o,getNewSegment:s,buildBezierData:l,pointOnLine2D:t,pointOnLine3D:e}}function dataFunctionManager(){function t(r,s,o){var l,c,h,d,p,u,f,m,g=r.length;for(d=0;g>d;d+=1)if(l=r[d],"ks"in l&&!l.completed){if(l.completed=!0,l.tt&&(r[d-1].td=l.tt),c=[],h=-1,l.hasMask){var v=l.masksProperties;for(u=v.length,p=0;u>p;p+=1)if(v[p].pt.k.i)n(v[p].pt.k);else for(m=v[p].pt.k.length,f=0;m>f;f+=1)v[p].pt.k[f].s&&n(v[p].pt.k[f].s[0]),v[p].pt.k[f].e&&n(v[p].pt.k[f].e[0])}0===l.ty?(l.layers=e(l.refId,s),t(l.layers,s,o)):4===l.ty?i(l.shapes,!1):5==l.ty&&a(l,o)}}function e(t,e){for(var i=0,n=e.length;n>i;){if(e[i].id===t)return JSON.parse(JSON.stringify(e[i].layers));i+=1}}function i(t,e){var r,a,s,o=t.length,l=!!e&&e;for(r=o-1;r>=0;r-=1)if("tm"==t[r].ty&&(l=!0),"sh"==t[r].ty)if(t[r].trimmed=l,t[r].ks.k.i)n(t[r].ks.k);else for(s=t[r].ks.k.length,a=0;s>a;a+=1)t[r].ks.k[a].s&&n(t[r].ks.k[a].s[0]), t[r].ks.k[a].e&&n(t[r].ks.k[a].e[0]);else"gr"==t[r].ty?i(t[r].it,l):("el"==t[r].ty||"rc"==t[r].ty)&&(t[r].trimmed=l)}function n(t){var e,i=t.i.length;for(e=0;i>e;e+=1)t.i[e][0]+=t.v[e][0],t.i[e][1]+=t.v[e][1],t.o[e][0]+=t.v[e][0],t.o[e][1]+=t.v[e][1]}function r(e,i){t(e.layers,e.assets,i)}function a(t,e){var i,n,r,a,s,o,l,c=[],h=t.t.d,d=0,p=t.t.m.g,u=0,f=0,m=0,g=[],v=0,y=0,b=e.getFontByName(h.f),w=0,k=b.fStyle.split(" "),x="normal",E="normal";for(n=k.length,i=0;n>i;i+=1)"italic"===k[i].toLowerCase()?E="italic":"bold"===k[i].toLowerCase()?x="700":"black"===k[i].toLowerCase()?x="900":"medium"===k[i].toLowerCase()?x="500":"regular"===k[i].toLowerCase()||"normal"===k[i].toLowerCase()?x="400":("light"===k[i].toLowerCase()||"thin"===k[i].toLowerCase())&&(x="200");if(h.fWeight=x,h.fStyle=E,n=h.t.length,h.sz){var _=h.sz[0],S=-1;for(i=0;n>i;i+=1)r=!1," "===h.t.charAt(i)?S=i:13===h.t.charCodeAt(i)&&(v=0,r=!0),e.chars?(l=e.getCharData(h.t.charAt(i),b.fStyle,b.fFamily),w=r?0:l.w*h.s/100):w=e.measureText(h.t.charAt(i),h.f,h.s),v+w>_?(-1===S?(h.t=h.t.substr(0,i)+"\r"+h.t.substr(i),n+=1):(i=S,h.t=h.t.substr(0,i)+"\r"+h.t.substr(i+1)),S=-1,v=0):v+=w;n=h.t.length}for(v=0,w=0,i=0;n>i;i+=1)if(r=!1," "===h.t.charAt(i)?a=" ":13===h.t.charCodeAt(i)?(g.push(v),y=v>y?v:y,v=0,a="",r=!0,m+=1):a=h.t.charAt(i),e.chars?(l=e.getCharData(h.t.charAt(i),b.fStyle,e.getFontByName(h.f).fFamily),w=r?0:l.w*h.s/100):w=e.measureText(a,h.f,h.s),v+=w,c.push({l:w,an:w,add:u,n:r,anIndexes:[],val:a,line:m}),2==p){if(u+=w,""==a||" "==a||i==n-1){for((""==a||" "==a)&&(u-=w);i>=f;)c[f].an=u,c[f].ind=d,c[f].extra=w,f+=1;d+=1,u=0}}else if(3==p){if(u+=w,""==a||i==n-1){for(""==a&&(u-=w);i>=f;)c[f].an=u,c[f].ind=d,c[f].extra=w,f+=1;u=0,d+=1}}else c[d].ind=d,c[d].extra=0,d+=1;if(h.l=c,y=v>y?v:y,g.push(v),h.sz)h.boxWidth=h.sz[0],t.t.d.justifyOffset=0;else switch(h.boxWidth=y,h.j){case 1:t.t.d.justifyOffset=-h.boxWidth;break;case 2:t.t.d.justifyOffset=-h.boxWidth/2;break;default:t.t.d.justifyOffset=0}h.lineWidths=g;var C=t.t.a;o=C.length;var T,D,A=[];for(s=0;o>s;s+=1){for(C[s].a.sc&&(h.strokeColorAnim=!0),C[s].a.sw&&(h.strokeWidthAnim=!0),(C[s].a.fc||C[s].a.fh||C[s].a.fs||C[s].a.fb)&&(h.fillColorAnim=!0),D=0,T=C[s].s.b,i=0;n>i;i+=1)c[i].anIndexes[s]=D,(1==T&&""!=c[i].val||2==T&&""!=c[i].val&&" "!=c[i].val||3==T&&(c[i].n||" "==c[i].val||i==n-1)||4==T&&(c[i].n||i==n-1))&&(1===C[s].s.rn&&A.push(D),D+=1);t.t.a[s].s.totalChars=D;var P,N=-1;if(1===C[s].s.rn)for(i=0;n>i;i+=1)N!=c[i].anIndexes[s]&&(N=c[i].anIndexes[s],P=A.splice(Math.floor(Math.random()*A.length),1)[0]),c[i].anIndexes[s]=P}0!==o||"m"in t.t.p||(t.singleShape=!0),h.yOffset=1.2*h.s,h.ascent=b.ascent*h.s/100}var s={};return s.completeData=r,s}function ExpressionComp(){}function ShapeInterface(){}function LayerInterface(){}function SVGRenderer(t){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.globalData={frameNum:-1},this.elements=[],this.destroyed=!1}function CanvasRenderer(t,e){this.animationItem=t,this.renderConfig={clearCanvas:e&&e.clearCanvas||!0,context:e&&e.context||null,scaleMode:e&&e.scaleMode||"fit"},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1},this.contextData={saved:new Array(15),savedOp:new Array(15),cArrPos:0,cTr:new Matrix,cO:1};var i,n=15;for(i=0;n>i;i+=1)this.contextData.saved[i]=new Array(16);this.elements=[],this.transformMat=new Matrix}function HybridRenderer(t){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.globalData={frameNum:-1},this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null}function MaskElement(t,e,i){this.dynamicProperties=[],this.data=t,this.element=e,this.globalData=i,this.paths=[],this.storedData=[],this.masksProperties=this.data.masksProperties,this.viewData=new Array(this.masksProperties.length),this.maskElement=null,this.firstFrame=!0;var n,r,a,s,o,l,c,h,d=(this.element.maskedElement,this.globalData.defs),p=this.masksProperties.length,u=this.masksProperties,f=0,m=[],g=randomString(10),v="clipPath",y="clip-path";for(n=0;p>n;n++)if(("a"!==u[n].mode&&"n"!==u[n].mode||u[n].inv)&&(v="mask",y="mask"),"s"!=u[n].mode&&"i"!=u[n].mode||0!=f||(o=document.createElementNS(svgNS,"rect"),o.setAttribute("fill","#ffffff"),o.setAttribute("x","0"),o.setAttribute("y","0"),o.setAttribute("width","100%"),o.setAttribute("height","100%"),m.push(o)),"n"!=u[n].mode&&u[n].cl!==!1){if(f+=1,r=document.createElementNS(svgNS,"path"),u[n].cl?"s"==u[n].mode?r.setAttribute("fill","#000000"):r.setAttribute("fill","#ffffff"):(r.setAttribute("fill","none"),"s"==u[n].mode?r.setAttribute("fill","#000000"):r.setAttribute("fill","#ffffff"),r.setAttribute("stroke-width","1"),r.setAttribute("stroke-miterlimit","10")),r.setAttribute("clip-rule","nonzero"),0!==u[n].x.k){v="mask",y="mask",h=PropertyFactory.getProp(this.element,u[n].x,0,null,this.dynamicProperties);var b="fi_"+randomString(10);l=document.createElementNS(svgNS,"filter"),l.setAttribute("id",b),c=document.createElementNS(svgNS,"feMorphology"),c.setAttribute("operator","dilate"),c.setAttribute("in","SourceGraphic"),c.setAttribute("radius","0"),l.appendChild(c),d.appendChild(l),"s"==u[n].mode?r.setAttribute("stroke","#000000"):r.setAttribute("stroke","#ffffff")}else c=null,h=null;if(this.storedData[n]={elem:r,x:h,expan:c,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},"i"==u[n].mode){s=m.length;var w=document.createElementNS(svgNS,"g");for(a=0;s>a;a+=1)w.appendChild(m[a]);var k=document.createElementNS(svgNS,"mask");k.setAttribute("mask-type","alpha"),k.setAttribute("id",g+"_"+f),k.appendChild(r),d.appendChild(k),w.setAttribute("mask","url(#"+g+"_"+f+")"),m.length=0,m.push(w)}else m.push(r);u[n].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[n]={elem:r,lastPath:"",prop:PropertyFactory.getShapeProp(this.element,u[n],3,this.dynamicProperties,null)},this.viewData[n].prop.k||this.drawPath(u[n],this.viewData[n].prop.v,this.viewData[n])}else this.viewData[n]={prop:PropertyFactory.getShapeProp(this.element,u[n],3,this.dynamicProperties,null)};for(this.maskElement=document.createElementNS(svgNS,v),p=m.length,n=0;p>n;n+=1)this.maskElement.appendChild(m[n]);this.maskElement.setAttribute("id",g),f>0&&this.element.maskedElement.setAttribute(y,"url(#"+g+")"),d.appendChild(this.maskElement)}function SliderEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function AngleEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function ColorEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,1,1/255,i)}function PointEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,1,0,i)}function CheckboxEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,1,0,i)}function EffectsManager(t,e,i){this.data=t,this.element=e;var n=t.ef;this.effectElements=[];var r,a,s=n.length;for(r=0;s>r;r++)switch(n[r].ty){case 0:a=new SliderEffect(n[r],e,i),this.effectElements.push(a.proxyFunction.bind(a));break;case 1:a=new AngleEffect(n[r],e,i),this.effectElements.push(a.proxyFunction.bind(a));break;case 2:a=new ColorEffect(n[r],e,i),this.effectElements.push(a.proxyFunction.bind(a));break;case 3:a=new PointEffect(n[r],e,i),this.effectElements.push(a.proxyFunction.bind(a));break;case 4:a=new CheckboxEffect(n[r],e,i),this.effectElements.push(a.proxyFunction.bind(a))}}function BaseElement(){}function SVGBaseElement(t,e,i,n,r){this.globalData=i,this.comp=n,this.data=t,this.matteElement=null,this.parentContainer=e,this.layerId=r?r.layerId:"ly_"+randomString(10),this.placeholder=r,this.init()}function ITextElement(t,e,i,n){}function SVGTextElement(t,e,i,n,r){this.textSpans=[],this.renderType="svg",this.parent.constructor.call(this,t,e,i,n,r)}function ICompElement(t,e,i,n,r){this.parent.constructor.call(this,t,e,i,n,r),this.layers=t.layers,this.isSvg=!0,this.data.tm&&(this.tm=PropertyFactory.getProp(this,this.data.tm,0,i.frameRate,this.dynamicProperties))}function IImageElement(t,e,i,n,r){this.assetData=i.getAssetData(t.refId),this.path=i.getPath(),this.parent.constructor.call(this,t,e,i,n,r)}function IShapeElement(t,e,i,n,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.viewData=[],this.shapesContainer=document.createElementNS(svgNS,"g"),this.parent.constructor.call(this,t,e,i,n,r)}function ISolidElement(t,e,i,n,r){this.parent.constructor.call(this,t,e,i,n,r)}function CVBaseElement(t,e,i){this.globalData=i,this.data=t,this.comp=e,this.canvasContext=i.canvasContext,this.init()}function CVCompElement(t,e,i){this.parent.constructor.call(this,t,e,i),this.layers=t.layers,this.data.tm&&(this.tm=PropertyFactory.getProp(this,this.data.tm,0,i.frameRate,this.dynamicProperties))}function CVImageElement(t,e,i){this.animationItem=i.renderer.animationItem,this.assetData=this.animationItem.getAssetData(t.refId),this.path=this.animationItem.getPath(),this.parent.constructor.call(this,t,e,i),this.animationItem.pendingElements+=1}function CVMaskElement(t,e,i){this.data=t,this.element=e,this.globalData=i,this.dynamicProperties=[],this.masksProperties=this.data.masksProperties,this.ctx=this.element.canvasContext,this.viewData=new Array(this.masksProperties.length);var n,r=this.masksProperties.length;for(n=0;r>n;n++)this.viewData[n]=PropertyFactory.getShapeProp(this.element,this.masksProperties[n],3,this.dynamicProperties,null)}function CVShapeElement(t,e,i){this.shapes=[],this.stylesList=[],this.viewData=[],this.shapesData=t.shapes,this.firstFrame=!0,this.parent.constructor.call(this,t,e,i)}function CVSolidElement(t,e,i){this.parent.constructor.call(this,t,e,i)}function CVTextElement(t,e,i){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.parent.constructor.call(this,t,e,i)}function HBaseElement(t,e,i,n,r){this.globalData=i,this.comp=n,this.data=t,this.matteElement=null,this.parentContainer=e,this.layerId=r?r.layerId:"ly_"+randomString(10),this.placeholder=r,this.init()}function HSolidElement(t,e,i,n,r){this.parent.constructor.call(this,t,e,i,n,r)}function HCompElement(t,e,i,n,r){this.parent.constructor.call(this,t,e,i,n,r),this.layers=t.layers,this.isSvg=!1,this.data.tm&&(this.tm=PropertyFactory.getProp(this,this.data.tm,0,i.frameRate,this.dynamicProperties)),this.data.hasMask&&(this.isSvg=!0)}function HShapeElement(t,e,i,n,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.viewData=[],this.parent.constructor.call(this,t,e,i,n,r)}function HTextElement(t,e,i,n,r){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.parent.constructor.call(this,t,e,i,n,r)}function HImageElement(t,e,i,n,r){this.assetData=i.getAssetData(t.refId),this.path=i.getPath(),this.parent.constructor.call(this,t,e,i,n,r)}function HCameraElement(t,e,i,n,r){if(this.parent.constructor.call(this,t,e,i,n,r),this.pe=PropertyFactory.getProp(this,t.pe,0,0,this.dynamicProperties),t.ks.p.s?(this.px=PropertyFactory.getProp(this,t.ks.p.x,1,0,this.dynamicProperties),this.py=PropertyFactory.getProp(this,t.ks.p.y,1,0,this.dynamicProperties),this.pz=PropertyFactory.getProp(this,t.ks.p.z,1,0,this.dynamicProperties)):this.p=PropertyFactory.getProp(this,t.ks.p,1,0,this.dynamicProperties),t.ks.a&&(this.a=PropertyFactory.getProp(this,t.ks.a,1,0,this.dynamicProperties)),t.ks.or.k.length){var a,s=t.ks.or.k.length;for(a=0;s>a;a+=1)t.ks.or.k[a].to=null,t.ks.or.k[a].ti=null}this.or=PropertyFactory.getProp(this,t.ks.or,1,degToRads,this.dynamicProperties),this.or.sh=!0,this.rx=PropertyFactory.getProp(this,t.ks.rx,0,degToRads,this.dynamicProperties),this.ry=PropertyFactory.getProp(this,t.ks.ry,0,degToRads,this.dynamicProperties),this.rz=PropertyFactory.getProp(this,t.ks.rz,0,degToRads,this.dynamicProperties),this.mat=new Matrix}function play(t){animationManager.play(t)}function pause(t){animationManager.pause(t)}function togglePause(t){animationManager.togglePause(t)}function setSpeed(t,e){animationManager.setSpeed(t,e)}function setDirection(t,e){animationManager.setDirection(t,e)}function stop(t){animationManager.stop(t)}function moveFrame(t){animationManager.moveFrame(t)}function searchAnimations(){standalone===!0?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function registerAnimation(t){return animationManager.registerAnimation(t)}function resize(){animationManager.resize()}function start(){animationManager.start()}function goToAndStop(t,e,i){animationManager.goToAndStop(t,e,i)}function setSubframeRendering(t){subframeEnabled=t}function loadAnimation(t){return standalone===!0&&(t.animationData=JSON.parse(animationData)),animationManager.loadAnimation(t)}function destroy(t){return animationManager.destroy(t)}function setQuality(t){if("string"==typeof t)switch(t){case"high":defaultCurveSegments=200;break;case"medium":defaultCurveSegments=50;break;case"low":defaultCurveSegments=10}else!isNaN(t)&&t>1&&(defaultCurveSegments=t);roundValues(!(defaultCurveSegments>=50))}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split("&"),i=0;it;t+=1)e=t.toString(16),i[t]=1==e.length?"0"+e:e;return function(t,e,n){return 0>t&&(t=0),0>e&&(e=0),0>n&&(n=0),"#"+i[t]+i[e]+i[n]}}(),fillColorToString=function(){var t=[];return function(e,i){return void 0!==i&&(e[3]=i),t[e[0]]||(t[e[0]]={}),t[e[0]][e[1]]||(t[e[0]][e[1]]={}),t[e[0]][e[1]][e[2]]||(t[e[0]][e[1]][e[2]]={}),t[e[0]][e[1]][e[2]][e[3]]||(t[e[0]][e[1]][e[2]][e[3]]="rgba("+e.join(",")+")"),t[e[0]][e[1]][e[2]][e[3]]}}(),Matrix=function(){function t(){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 e(t){if(0===t)return this;var e=Math.cos(t),i=Math.sin(t);return this._t(e,-i,0,0,i,e,0,0,0,0,1,0,0,0,0,1)}function i(t){if(0===t)return this;var e=Math.cos(t),i=Math.sin(t);return this._t(1,0,0,0,0,e,-i,0,0,i,e,0,0,0,0,1)}function n(t){if(0===t)return this;var e=Math.cos(t),i=Math.sin(t);return this._t(e,0,i,0,0,1,0,0,-i,0,e,0,0,0,0,1)}function r(t){if(0===t)return this;var e=Math.cos(t),i=Math.sin(t);return this._t(e,-i,0,0,i,e,0,0,0,0,1,0,0,0,0,1)}function a(t,e){return this._t(1,e,t,1,0,0)}function s(t,e){return this.shear(Math.tan(t),Math.tan(e))}function o(t,e){var i=Math.cos(e),n=Math.sin(e);return this._t(i,n,0,0,-n,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,-n,0,0,n,i,0,0,0,0,1,0,0,0,0,1)}function l(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 c(t,e,i,n,r,a,s,o,l,c,h,d,p,u,f,m){return this.props[0]=t,this.props[1]=e,this.props[2]=i,this.props[3]=n,this.props[4]=r,this.props[5]=a,this.props[6]=s,this.props[7]=o,this.props[8]=l,this.props[9]=c,this.props[10]=h,this.props[11]=d,this.props[12]=p,this.props[13]=u,this.props[14]=f,this.props[15]=m,this}function h(t,e,i){return i=isNaN(i)?0:i,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 d(t,e,i,n,r,a,s,o,l,c,h,d,p,u,f,m){if(1===t&&0===e&&0===i&&0===n&&0===r&&1===a&&0===s&&0===o&&0===l&&0===c&&1===h&&0===d)return(0!==p||0!==u||0!==f)&&(this.props[12]=this.props[12]*t+this.props[13]*r+this.props[14]*l+this.props[15]*p,this.props[13]=this.props[12]*e+this.props[13]*a+this.props[14]*c+this.props[15]*u,this.props[14]=this.props[12]*i+this.props[13]*s+this.props[14]*h+this.props[15]*f,this.props[15]=this.props[12]*n+this.props[13]*o+this.props[14]*d+this.props[15]*m),this;var g=this.props[0],v=this.props[1],y=this.props[2],b=this.props[3],w=this.props[4],k=this.props[5],x=this.props[6],E=this.props[7],_=this.props[8],S=this.props[9],C=this.props[10],T=this.props[11],D=this.props[12],A=this.props[13],P=this.props[14],N=this.props[15];return this.props[0]=g*t+v*r+y*l+b*p,this.props[1]=g*e+v*a+y*c+b*u,this.props[2]=g*i+v*s+y*h+b*f,this.props[3]=g*n+v*o+y*d+b*m,this.props[4]=w*t+k*r+x*l+E*p,this.props[5]=w*e+k*a+x*c+E*u,this.props[6]=w*i+k*s+x*h+E*f,this.props[7]=w*n+k*o+x*d+E*m,this.props[8]=_*t+S*r+C*l+T*p,this.props[9]=_*e+S*a+C*c+T*u,this.props[10]=_*i+S*s+C*h+T*f,this.props[11]=_*n+S*o+C*d+T*m,this.props[12]=D*t+A*r+P*l+N*p,this.props[13]=D*e+A*a+P*c+N*u,this.props[14]=D*i+A*s+P*h+N*f,this.props[15]=D*n+A*o+P*d+N*m,this}function p(t){var e;for(e=0;16>e;e+=1)t.props[e]=this.props[e]}function u(t){var e;for(e=0;16>e;e+=1)this.props[e]=t[e]}function f(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 m(t,e,i){return t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12]}function g(t,e,i){return t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13]}function v(t,e,i){return t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}function y(t,e,i){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 b(t,e){return bm_rnd(t*this.props[0]+e*this.props[4]+this.props[12])+","+bm_rnd(t*this.props[1]+e*this.props[5]+this.props[13])}function w(){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 k(){return isSafari?"matrix3d("+roundTo2Decimals(this.props[0])+","+roundTo2Decimals(this.props[1])+","+roundTo2Decimals(this.props[2])+","+roundTo2Decimals(this.props[3])+","+roundTo2Decimals(this.props[4])+","+roundTo2Decimals(this.props[5])+","+roundTo2Decimals(this.props[6])+","+roundTo2Decimals(this.props[7])+","+roundTo2Decimals(this.props[8])+","+roundTo2Decimals(this.props[9])+","+roundTo2Decimals(this.props[10])+","+roundTo2Decimals(this.props[11])+","+roundTo2Decimals(this.props[12])+","+roundTo2Decimals(this.props[13])+","+roundTo2Decimals(this.props[14])+","+roundTo2Decimals(this.props[15])+")":(this.cssParts[1]=this.props.join(","),this.cssParts.join(""))}function x(){return"matrix("+this.props[0]+","+this.props[1]+","+this.props[4]+","+this.props[5]+","+this.props[12]+","+this.props[13]+")"}function E(){return""+this.toArray()}return function(){this.reset=t,this.rotate=e,this.rotateX=i,this.rotateY=n,this.rotateZ=r,this.skew=s,this.skewFromAxis=o,this.shear=a,this.scale=l,this.setTransform=c,this.translate=h,this.transform=d,this.applyToPoint=f,this.applyToX=m,this.applyToY=g,this.applyToZ=v,this.applyToPointArray=y,this.applyToPointStringified=b,this.toArray=w,this.toCSS=k,this.to2dCSS=x,this.toString=E,this.clone=p,this.cloneFromProps=u,this._t=this.transform,this.props=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],this.cssParts=["matrix3d(","",")"]}}();!function(t,e){function i(i,c,h){var u=[];c=1==c?{entropy:!0}:c||{};var y=s(a(c.entropy?[i,l(t)]:null==i?o():i,3),u),b=new n(u),w=function(){for(var t=b.g(p),e=m,i=0;g>t;)t=(t+i)*d,e*=d,i=b.g(1);for(;t>=v;)t/=2,e/=2,i>>>=1;return(t+i)/e};return w.int32=function(){return 0|b.g(4)},w.quick=function(){return b.g(4)/4294967296},w["double"]=w,s(l(b.S),t),(c.pass||h||function(t,i,n,a){return a&&(a.S&&r(a,b),t.state=function(){return r(b,{})}),n?(e[f]=t,i):t})(w,y,"global"in c?c.global:this==e,c.state)}function n(t){var e,i=t.length,n=this,r=0,a=n.i=n.j=0,s=n.S=[];for(i||(t=[i++]);d>r;)s[r]=r++;for(r=0;d>r;r++)s[r]=s[a=y&a+t[r%i]+(e=s[r])],s[a]=e;(n.g=function(t){for(var e,i=0,r=n.i,a=n.j,s=n.S;t--;)e=s[r=y&r+1],i=i*d+s[y&(s[r]=s[a=y&a+e])+(s[a]=e)];return n.i=r,n.j=a,i})(d)}function r(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function a(t,e){var i,n=[],r=typeof t;if(e&&"object"==r)for(i in t)try{n.push(a(t[i],e-1))}catch(s){}return n.length?n:"string"==r?t:t+"\0"}function s(t,e){for(var i,n=t+"",r=0;r0?i=o:e=o;while(Math.abs(s)>u&&++ls;++s){var o=a(e,i,n);if(0===o)return e;var l=r(e,i,n)-t;e-=l/o}return e}function l(t){this._p=t,this._mSampleValues=v?new Float32Array(m):new Array(m),this._precomputed=!1,this.get=this.get.bind(this)}var c={};c.getBezierEasing=t;var h={},d=4,p=.001,u=1e-7,f=10,m=11,g=1/(m-1),v="function"==typeof Float32Array;return l.prototype={get:function(t){var e=this._p[0],i=this._p[1],n=this._p[2],a=this._p[3];return this._precomputed||this._precompute(),e===i&&n===a?t:0===t?0:1===t?1:r(this._getTForX(t),i,a)},_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;m>i;++i)this._mSampleValues[i]=r(i*g,t,e)},_getTForX:function(t){for(var e=this._p[0],i=this._p[2],n=this._mSampleValues,r=0,l=1,c=m-1;l!==c&&n[l]<=t;++l)r+=g;--l;var h=(t-n[l])/(n[l+1]-n[l]),d=r+h*g,u=a(d,e,i);return u>=p?o(t,d,e,i):0===u?d:s(t,r,r+g,e,i)}},c}(),MatrixManager=matrixManagerFunction;!function(){for(var t=0,e=["ms","moz","webkit","o"],i=0;it;t+=1)if(this.fonts[t].loaded)a-=1;else if("t"===this.fonts[t].fOrigin){if(window.Typekit&&window.Typekit.load&&0===this.typekitLoaded){this.typekitLoaded=1;try{Typekit.load({async:!0,active:function(){this.typekitLoaded=2}.bind(this)})}catch(s){}}2===this.typekitLoaded&&(this.fonts[t].loaded=!0)}else"n"===this.fonts[t].fOrigin?this.fonts[t].loaded=!0:(i=this.fonts[t].monoCase.node,n=this.fonts[t].monoCase.w,i.offsetWidth!==n?(a-=1,this.fonts[t].loaded=!0):(i=this.fonts[t].sansCase.node,n=this.fonts[t].sansCase.w,i.offsetWidth!==n&&(a-=1,this.fonts[t].loaded=!0)),this.fonts[t].loaded&&(this.fonts[t].sansCase.parent.parentNode.removeChild(this.fonts[t].sansCase.parent),this.fonts[t].monoCase.parent.parentNode.removeChild(this.fonts[t].monoCase.parent)));0!==a&&Date.now()-this.initTimea;a+=1){if(s[a].loaded=!1,s[a].monoCase=t(s[a].fFamily,"monospace"),s[a].sansCase=t(s[a].fFamily,"sans-serif"),s[a].fPath){if("p"===s[a].fOrigin){var l=document.createElement("style");l.type="text/css",l.innerHTML="@font-face {font-family: "+s[a].fFamily+"; font-style: normal; src: url('"+s[a].fPath+"');}",r.appendChild(l)}else if("g"===s[a].fOrigin){var c=document.createElement("link");c.type="text/css",c.rel="stylesheet",c.href=s[a].fPath,r.appendChild(c)}else if("t"===s[a].fOrigin){var h=document.createElement("script");h.setAttribute("src",s[a].fPath),r.appendChild(h)}}else s[a].loaded=!0;s[a].helper=i(r,s[a]),this.fonts.push(s[a])}e.bind(this)()}function r(t){if(t){this.chars||(this.chars=[]);var e,i,n,r=t.length,a=this.chars.length;for(e=0;r>e;e+=1){for(i=0,n=!1;a>i;)this.chars[i].style===t[e].style&&this.chars[i].fFamily===t[e].fFamily&&this.chars[i].ch===t[e].ch&&(n=!0),i+=1;n||(this.chars.push(t[e]),a+=1)}}}function a(t,e,i){for(var n=0,r=this.chars.length;r>n;){if(this.chars[n].ch===t&&this.chars[n].style===e&&this.chars[n].fFamily===i)return this.chars[n];n+=1}}function s(t,e,i){var n=this.getFontByName(e),r=n.helper;return r.measureText(t).width*i/100}function o(t){for(var e=0,i=this.fonts.length;i>e;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return"sans-serif"}var l=5e3,c=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.loaded=!1,this.initTime=Date.now()};return c.prototype.addChars=r,c.prototype.addFonts=n,c.prototype.getCharData=a,c.prototype.getFontByName=o,c.prototype.measureText=s,c}(),ExpressionManager=function(){function sum(t,e){var i=typeof t,n=typeof e;if(!("number"!==i&&"boolean"!==i||"number"!==n&&"boolean"!==n))return t+e;if("object"===i&&("number"===n||"boolean"===n))return t[0]=t[0]+e,t;if(("number"===i||"boolean"===i)&&"object"===n)return e[0]=t+e[0],e;if("object"===i&&"object"===n){for(var r=0,a=t.length,s=e.length,o=[];a>r||s>r;)o[r]="number"==typeof t[r]&&"number"==typeof e[r]?t[r]+e[r]:t[r]||e[r],r+=1;return o}return 0}function sub(t,e){var i=typeof t,n=typeof e;if(!("number"!==i&&"boolean"!==i||"number"!==n&&"boolean"!==n))return t-e;if("object"===i&&("number"===n||"boolean"===n))return t[0]=t[0]-e,t;if(("number"===i||"boolean"===i)&&"object"===n)return e[0]=t-e[0],e;if("object"===i&&"object"===n){for(var r=0,a=t.length,s=e.length,o=[];a>r||s>r;)o[r]="number"==typeof t[r]&&"number"==typeof e[r]?t[r]-e[r]:t[r]||e[r],r+=1;return o}return 0}function mul(t,e){var i=typeof t,n=typeof e;if(!("number"!==i&&"boolean"!==i||"number"!==n&&"boolean"!==n))return t*e;var r,a;if("object"===i&&("number"===n||"boolean"===n)){for(a=t.length,arr=Array.apply(null,{length:a}),r=0;a>r;r+=1)arr[r]=t[r]*e;return arr}if(("number"===i||"boolean"===i)&&"object"===n){for(a=e.length,arr=Array.apply(null,{length:a}),r=0;a>r;r+=1)arr[r]=t*e[r];return arr}return 0}function div(t,e){var i=typeof t,n=typeof e;if(!("number"!==i&&"boolean"!==i||"number"!==n&&"boolean"!==n))return t/e;var r,a;if("object"===i&&("number"===n||"boolean"===n)){for(a=t.length,arr=Array.apply(null,{length:a}),r=0;a>r;r+=1)arr[r]=t[r]/e;return arr}if(("number"===i||"boolean"===i)&&"object"===n){for(a=e.length,arr=Array.apply(null,{length:a}),r=0;a>r;r+=1)arr[r]=t/e[r];return arr}return 0}function clamp(t,e,i){if(e>i){var n=i;i=e,e=n}return Math.min(Math.max(t,e),i)}function radiansToDegrees(t){return t/degToRads}function length(t,e){var i,n=t.length,r=0;for(i=0;n>i;i+=1)r+=Math.pow(e[i]-t[i],2);return Math.sqrt(r)}function linear(t,e,i,n,r){if(e>=t)return n;if(t>=i)return r;var a=t/(i-e);if(!n.length)return n+(r-n)*a;var s,o=n.length,l=Array.apply(null,{length:o});for(s=0;o>s;s+=1)l[s]=n[s]+(r[s]-n[s])*a;return l}function seedRandom(t){BMMath.seedrandom(t)}function random(t,e){if(void 0===e&&(void 0===t?(t=0,e=1):(e=t,t=void 0)),e.length){var i,n=e.length;t||(t=Array.apply(null,{length:n}));var r=Array.apply(null,{length:n}),a=BMMath.random();for(i=0;n>i;i+=1)r[i]=t[i]+a*(e[i]-t[i]);return r}void 0===t&&(t=0);var s=BMMath.random();return t+s*(e-t)}function initiateExpression(elem,data){function effect(t){return elem.effectsManager.getEffect(t)}function nearestKey(t){var e,i,n=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])for(e=0;n>e;e+=1){if(t===data.k[e].t){i=e+1;break}if(tdata.k[e].t&&e===n-1){i=n;break}}else i=0;var r={};return r.index=i,r}function key(t){if(!data.k.length||"number"==typeof data.k[0])return{time:0};t-=1;var e,i={time:data.k[t].t/thisComp.globalData.frameRate};e=t===data.k.length-1?data.k[t-1].e:data.k[t].s;var n,r=e.length;for(n=0;r>n;n+=1)i[n]=e[n];return i}function hasParentGetter(){}function execute(){seedRandom(0),"textSelector"===this.type&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),transform||(transform=elem.transform),!content&&elem.content&&(content=elem.content.bind(elem)),this.getPreValue&&this.getPreValue(),value=this.pv,time=this.comp.renderedFrame/this.comp.globalData.frameRate,bindedFn();var t,e;if(this.mult)if("number"==typeof this.v)this.v*=this.mult;else for(e=this.v.length,value===this.v&&(this.v=2===e?[value[0],value[1]]:[value[0],value[1],value[2]]),t=0;e>t;t+=1)this.v[t]*=this.mult;if("number"==typeof this.v)this.lastValue!==this.v&&(this.lastValue=this.v,this.mdf=!0);else if(this.v.i)this.mdf=!0;else for(e=this.v.length,t=0;e>t;t+=1)this.v[t]!==this.lastValue[t]&&(this.lastValue[t]=this.v[t],this.mdf=!0)}var val=data.x,transform,content,effect,thisComp=elem.comp;elem.comp.frameDuration=1/thisComp.globalData.frameRate;var inPoint=elem.data.ip/thisComp.globalData.frameRate,outPoint=elem.data.op/thisComp.globalData.frameRate,thisLayer=elem,fnStr="var fn = function(){"+val+";this.v = $bm_rt;}";eval(fnStr);var bindedFn=fn.bind(this),numKeys=data.k?data.k.length:0,wiggle=function(t,e){var i,n,r=this.pv.length?this.pv.length:1,a=Array.apply(null,{len:r});for(n=0;r>n;n+=1)a[n]=0;t=5;var s=Math.floor(time*t);for(i=0,n=0;s>i;){for(n=0;r>n;n+=1)a[n]+=-e+2*e*BMMath.random();i+=1}var o=time*t,l=o-Math.floor(o),c=Array.apply({length:r});for(n=0;r>n;n+=1)c[n]=this.pv[n]+a[n]+(-e+2*e*BMMath.random())*l;return c}.bind(this),loopIn=function(t,e,i){if(!this.k)return this.pv;var n=time*thisComp.globalData.frameRate,r=this.keyframes,a=r[0].t;if(n>=a)return this.pv;var s,o;i?(s=e?Math.abs(thisComp.globalData.frameRate*e):Math.max(0,this.elem.data.op-a),o=a+s):((!e||e>r.length-1)&&(e=r.length-1),o=r[e].t,s=o-a);var l,c,h;if("pingpong"===t){var d=Math.floor((a-n)/s);if(d%2===0)return this.getValueAtTime((a-n)%s+a)}else{if("offset"===t){var p=this.getValueAtTime(a),u=this.getValueAtTime(o),f=this.getValueAtTime(s-(a-n)%s+a),m=Math.floor((a-n)/s)+1;if(this.pv.length){for(h=new Array(p.length),c=h.length,l=0;c>l;l+=1)h[l]=f[l]-(u[l]-p[l])*m; return h}return f-(u-p)*m}if("continue"===t){var g=this.getValueAtTime(a),v=this.getValueAtTime(a+.001);if(this.pv.length){for(h=new Array(g.length),c=h.length,l=0;c>l;l+=1)h[l]=g[l]+(g[l]-v[l])*(a-n)/5e-4;return h}return g+(g-v)*(a-n)/5e-4}}return this.getValueAtTime(s-(a-n)%s+a)}.bind(this),loopInDuration=function(t,e){return loopIn(t,e,!0)}.bind(this),loopOut=function(t,e,i){if(!this.k)return this.pv;var n=time*thisComp.globalData.frameRate,r=this.keyframes,a=r[r.length-1].t;if(a>=n)return this.pv;var s,o;i?(s=e?Math.abs(a-thisComp.globalData.frameRate*e):Math.max(0,a-this.elem.data.ip),o=a-s):((!e||e>r.length-1)&&(e=r.length-1),o=r[r.length-1-e].t,s=a-o);var l,c,h;if("pingpong"===t){var d=Math.floor((n-o)/s);if(d%2!==0)return this.getValueAtTime(s-(n-o)%s+o)}else{if("offset"===t){var p=this.getValueAtTime(o),u=this.getValueAtTime(a),f=this.getValueAtTime((n-o)%s+o),m=Math.floor((n-o)/s);if(this.pv.length){for(h=new Array(p.length),c=h.length,l=0;c>l;l+=1)h[l]=(u[l]-p[l])*m+f[l];return h}return(u-p)*m+f}if("continue"===t){var g=this.getValueAtTime(a),v=this.getValueAtTime(a-.001);if(this.pv.length){for(h=new Array(g.length),c=h.length,l=0;c>l;l+=1)h[l]=g[l]+(g[l]-v[l])*(n-a)/5e-4;return h}return g+(g-v)*(n-a)/5e-4}}return this.getValueAtTime((n-o)%s+o)}.bind(this),loopOutDuration=function(t,e){return loopOut(t,e,!0)}.bind(this),valueAtTime=function(t){return this.getValueAtTime(t*thisComp.globalData.frameRate)}.bind(this),velocityAtTime=function(t){return this.getVelocityAtTime(t*thisComp.globalData.frameRate)}.bind(this);Object.defineProperty(this,"hasParent",{get:hasParentGetter});var time,value,textIndex,textTotal,selectorValue,index=elem.data.ind+1,hasParent=!(!elem.hierarchy||!elem.hierarchy.length);return execute}var ob={};return ob.initiateExpression=initiateExpression,ob}();!function(){ExpressionComp.prototype.layer=function(t){for(var e=0,i=this.layers.length;i>e;){if(this.layers[e].nm===t)return this.elements[e];e+=1}},ExpressionComp.prototype.pixelAspect=1}(),ShapeInterface.prototype.fillInterface=function(t){var e={get color(){return t.c.k&&t.c.getValue(),[t.c.pv[0],t.c.pv[1],t.c.pv[2]]},get opacity(){return t.o.k&&t.o.getValue(),t.o.pv}};return e},ShapeInterface.prototype.strokeInterface=function(t,e){var i={get color(){return e.c.k&&e.c.getValue(),[e.c.pv[0],e.c.pv[1],e.c.pv[2]]},get opacity(){return e.o.k&&e.o.getValue(),e.o.pv},get strokeWidth(){return e.w.k&&e.w.getValue(),e.w.pv},dashOb:{},get dash(){var i,n=e.d,r=t.d,a=r.length;for(i=0;a>i;i+=1)n.dataProps[i].p.k&&n.dataProps[i].p.getValue(),this.dashOb[r[i].nm]=n.dataProps[i].p.v;return this.dashOb}};return i},ShapeInterface.prototype.shapeInterface=function(t){var e={get shape(){return t.sh.k&&t.sh.getValue(),t.sh.pv}};return e},ShapeInterface.prototype.ellipseInterface=function(t){var e={get size(){return t.sh.s.k&&t.sh.s.getValue(),[t.sh.s.pv[0],t.sh.s.pv[1]]},get position(){return t.sh.p.k&&t.sh.p.getValue(),[t.sh.p.pv[0],t.sh.p.pv[1]]}};return e},ShapeInterface.prototype.rectangleInterface=function(t){var e="tm"===t.sh.ty?t.sh.prop:t.sh,i={get size(){return e.s.k&&e.s.getValue(),[e.s.pv[0],e.s.pv[1]]},get position(){return e.p.k&&e.p.getValue(),[e.p.pv[0],e.p.pv[1]]},get roundness(){return e.r.k&&e.r.getValue(),e.r.pv}};return i},ShapeInterface.prototype.trimInterface=function(t){var e={get start(){return t.tr.s.k&&t.tr.s.getValue(),t.tr.s.pv},get end(){return t.tr.e.k&&t.tr.e.getValue(),t.tr.e.pv},get offset(){return t.tr.o.k&&t.tr.o.getValue(),t.tr.o.pv}};return e},ShapeInterface.prototype.transformInterface=function(t){var e={get opacity(){return t.transform.mProps.o.k&&t.transform.mProps.o.getValue(),t.transform.mProps.o.pv},get position(){return t.transform.mProps.p.k&&t.transform.mProps.p.getValue(),[t.transform.mProps.p.pv[0],t.transform.mProps.p.pv[1]]},get anchorPoint(){return t.transform.mProps.a.k&&t.transform.mProps.a.getValue(),[t.transform.mProps.a.pv[0],t.transform.mProps.a.pv[1]]},get scale(){return t.transform.mProps.s.k&&t.transform.mProps.s.getValue(),[t.transform.mProps.s.pv[0],t.transform.mProps.s.pv[1]]},get rotation(){return t.transform.mProps.r.k&&t.transform.mProps.r.getValue(),t.transform.mProps.r.pv},get skew(){return t.transform.mProps.sk.k&&t.transform.mProps.sk.getValue(),t.transform.mProps.sk.pv},get skewAxis(){return t.transform.mProps.sa.k&&t.transform.mProps.sa.getValue(),t.transform.mProps.sa.pv}};return e},ShapeInterface.prototype.groupInterface=function(t,e,i){var n,r,a=[],s=t.length;for(n=0;s>n;n+=1)"gr"===t[n].ty?(r={},this.groupInterface(t[n].it,e[n].it,r),a.push(r)):"sh"===t[n].ty?(r=this.shapeInterface(e[n]),a.push(r)):"fl"===t[n].ty?(r=this.fillInterface(e[n]),a.push(r)):"st"===t[n].ty?(r=this.strokeInterface(t[n],e[n]),a.push(r)):"el"===t[n].ty?(r=this.ellipseInterface(e[n]),a.push(r)):"rc"===t[n].ty?(r=this.rectangleInterface(e[n]),a.push(r)):"tr"===t[n].ty?i.transform=this.transformInterface(e[n]):"tm"===t[n].ty?(r=this.trimInterface(e[n]),a.push(r)):a.push("");i.content=function(e){var i,n=t.length;for(i=0;n>i;i+=1)if(t[i].nm===e)return a[i]}},ShapeInterface.prototype.buildExpressionInterface=function(){this.groupInterface(this.shapesData,this.viewData,this)},LayerInterface.prototype.toWorld=function(t){if(this.hierarchy&&this.hierarchy.length){var e,i=new Matrix,n=this.hierarchy.length;for(this.finalTransform.mProp.applyToMatrix(i,!1),e=0;n>e;e+=1)this.hierarchy[e].finalTransform.mProp.applyToMatrix(i,!0);var r=i.applyToPointArray(t[0],t[1],t[2]||0);return r}return t},LayerInterface.prototype.effect=function(t){console.log(this.effectsManager),console.log(t)};var PropertyFactory=function(){function t(t){for(var e,i,n=0,r=this.keyframes.length-1,a=1,s=!0,o=0,l="object"==typeof this.pv?[this.pv.length]:0;s;){if(e=this.keyframes[n],i=this.keyframes[n+1],n==r-1&&t>=i.t-o){e.h&&(e=i);break}if(i.t-o>t)break;r-1>n?n+=a:s=!1}var c,h,d,p,u,f=0;if(e.to){e.bezierData||bez.buildBezierData(e);var m=e.bezierData;if(t>=i.t-o||t=i.t-o?m.points.length-1:0;for(h=m.points[g].point.length,c=0;h>c;c+=1)l[c]=m.points[g].point[c]}else{e.__fnct?u=e.__fnct:(u=BezierFactory.getBezierEasing(e.o.x,e.o.y,e.i.x,e.i.y,e.n).get,e.__fnct=u),d=u((t-(e.t-o))/(i.t-o-(e.t-o)));var v,y=m.segmentLength*d,b=0;for(a=1,s=!0,p=m.points.length;s;){if(b+=m.points[f].partialLength*a,0===y||0===d||f==m.points.length-1){for(h=m.points[f].point.length,c=0;h>c;c+=1)l[c]=m.points[f].point[c];break}if(y>=b&&yc;c+=1)l[c]=m.points[f].point[c]+(m.points[f+1].point[c]-m.points[f].point[c])*v;break}p-1>f&&1==a||f>0&&-1==a?f+=a:s=!1}}}else{var w,k,x,E,_,S=!1;for(r=e.s.length,n=0;r>n;n+=1){if(1!==e.h&&(e.o.x instanceof Array?(S=!0,e.__fnct||(e.__fnct=[]),e.__fnct[n]||(w=e.o.x[n]||e.o.x[0],k=e.o.y[n]||e.o.y[0],x=e.i.x[n]||e.i.x[0],E=e.i.y[n]||e.i.y[0])):(S=!1,e.__fnct||(w=e.o.x,k=e.o.y,x=e.i.x,E=e.i.y)),S?e.__fnct[n]?u=e.__fnct[n]:(u=BezierFactory.getBezierEasing(w,k,x,E).get,e.__fnct[n]=u):e.__fnct?u=e.__fnct:(u=BezierFactory.getBezierEasing(w,k,x,E).get,e.__fnct=u),d=t>=i.t-o?1:tC-T?C+=360:C-T>180&&(C-=360),_=C+(T-C)*d}else _=1===e.h?e.s[n]:e.s[n]+(e.e[n]-e.s[n])*d;1===r?l=_:l[n]=_}}return l}function e(t){var e,i=.01,n=this.getValueAtTime(t),r=this.getValueAtTime(t+i);if(n.length){e=Array.apply(null,{length:n.length});var a;for(a=0;a=this.keyframes[this.keyframes.length-1].t-this.offsetTime&&t>=this.keyframes[this.keyframes.length-1].t-this.offsetTime||this.lastFrame=i.t-this.offsetTime){e.h&&(e=i);break}if(i.t-this.offsetTime>t)break;r-1>n?n+=a:s=!1}var o,l,c,h,d,p=0;if(e.to){e.bezierData||bez.buildBezierData(e);var u=e.bezierData;if(t>=i.t-this.offsetTime||t=i.t-this.offsetTime?u.points.length-1:0;for(l=u.points[f].point.length,o=0;l>o;o+=1)this.v[o]=this.mult?u.points[f].point[o]*this.mult:u.points[f].point[o],this.pv[o]=u.points[f].point[o],this.lastPValue[o]!==this.pv[o]&&(this.mdf=!0,this.lastPValue[o]=this.pv[o])}else{e.__fnct?d=e.__fnct:(d=BezierFactory.getBezierEasing(e.o.x,e.o.y,e.i.x,e.i.y,e.n).get,e.__fnct=d),c=d((t-(e.t-this.offsetTime))/(i.t-this.offsetTime-(e.t-this.offsetTime)));var m,v=u.segmentLength*c,y=0;for(a=1,s=!0,h=u.points.length;s;){if(y+=u.points[p].partialLength*a,0===v||0===c||p==u.points.length-1){for(l=u.points[p].point.length,o=0;l>o;o+=1)this.v[o]=this.mult?u.points[p].point[o]*this.mult:u.points[p].point[o],this.pv[o]=u.points[p].point[o],this.lastPValue[o]!==this.pv[o]&&(this.mdf=!0,this.lastPValue[o]=this.pv[o]);break}if(v>=y&&vo;o+=1)this.v[o]=this.mult?(u.points[p].point[o]+(u.points[p+1].point[o]-u.points[p].point[o])*m)*this.mult:u.points[p].point[o]+(u.points[p+1].point[o]-u.points[p].point[o])*m,this.pv[o]=u.points[p].point[o]+(u.points[p+1].point[o]-u.points[p].point[o])*m,this.lastPValue[o]!==this.pv[o]&&(this.mdf=!0,this.lastPValue[o]=this.pv[o]);break}h-1>p&&1==a||p>0&&-1==a?p+=a:s=!1}}}else{var b,w,k,x,E,_=!1;for(r=e.s.length,n=0;r>n;n+=1){if(1!==e.h&&(e.o.x instanceof Array?(_=!0,e.__fnct||(e.__fnct=[]),e.__fnct[n]||(b=e.o.x[n]||e.o.x[0],w=e.o.y[n]||e.o.y[0],k=e.i.x[n]||e.i.x[0],x=e.i.y[n]||e.i.y[0])):(_=!1,e.__fnct||(b=e.o.x,w=e.o.y,k=e.i.x,x=e.i.y)),_?e.__fnct[n]?d=e.__fnct[n]:(d=BezierFactory.getBezierEasing(b,w,k,x).get,e.__fnct[n]=d):e.__fnct?d=e.__fnct:(d=BezierFactory.getBezierEasing(b,w,k,x).get,e.__fnct=d),c=t>=i.t-this.offsetTime?1:tS-C?S+=360:S-C>180&&(S-=360),E=S+(C-S)*c}else E=1===e.h?e.s[n]:e.s[n]+(e.e[n]-e.s[n])*c;1===r?(this.v=this.mult?E*this.mult:E,this.pv=E,this.lastPValue!=this.pv&&(this.mdf=!0,this.lastPValue=this.pv)):(this.v[n]=this.mult?E*this.mult:E,this.pv[n]=E,this.lastPValue[n]!==this.pv[n]&&(this.mdf=!0,this.lastPValue[n]=this.pv[n]))}}}this.lastFrame=t}}function n(){this.mdf=!1;var t=this.comp.renderedFrame-this.offsetTime;if(this.lastFrame!==g&&(this.lastFramethis.keyframes[this.keyframes.length-1].t-this.offsetTime&&t>this.keyframes[this.keyframes.length-1].t-this.offsetTime));else{var e,i,n;if(tthis.keyframes[this.keyframes.length-1].t-this.offsetTime)this.mdf=!0,e=1===this.keyframes[this.keyframes.length-2].h?this.keyframes[this.keyframes.length-2].s[0]:this.keyframes[this.keyframes.length-2].e[0],n=!0;else{this.mdf=!0;for(var r,a,s,o,l,c,h=0,d=this.keyframes.length-1,p=1,u=!0;u&&(r=this.keyframes[h],a=this.keyframes[h+1],!(a.t-this.offsetTime>t&&1==p));)d-1>h&&1==p||h>0&&-1==p?h+=p:u=!1;var f;if(1!==r.h){var m;r.__fnct?m=r.__fnct:(m=BezierFactory.getBezierEasing(r.o.x,r.o.y,r.i.x,r.i.y).get,r.__fnct=m),f=t>=a.t-this.offsetTime?1:ts;s+=1)for(l=0;c>l;l+=1)n?(this.v.i[s][l]=e.i[s][l],this.v.o[s][l]=e.o[s][l],this.v.v[s][l]=e.v[s][l],this.pv.i[s][l]=e.i[s][l],this.pv.o[s][l]=e.o[s][l],this.pv.v[s][l]=e.v[s][l]):(this.v.i[s][l]=e.i[s][l]+(i.i[s][l]-e.i[s][l])*f,this.v.o[s][l]=e.o[s][l]+(i.o[s][l]-e.o[s][l])*f,this.v.v[s][l]=e.v[s][l]+(i.v[s][l]-e.v[s][l])*f,this.pv.i[s][l]=e.i[s][l]+(i.i[s][l]-e.i[s][l])*f,this.pv.o[s][l]=e.o[s][l]+(i.o[s][l]-e.o[s][l])*f,this.pv.v[s][l]=e.v[s][l]+(i.v[s][l]-e.v[s][l])*f)}this.lastFrame=t}function r(t,e){this.getExpression=ExpressionManager.initiateExpression,e.x&&(this.k=!0,this.x=!0,this.getValue&&(this.getPreValue=this.getValue),this.getValue=this.getExpression(t,e))}function a(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,r.bind(this)(t,e)}function s(t,e,i){this.mult=i,this.data=e,this.mdf=!1,this.comp=t.comp,this.k=!1,r.bind(this)(t,e),this.v=new Array(e.k.length),this.pv=new Array(e.k.length),this.lastValue=new Array(e.k.length);var n,a=e.k.length;for(n=0;a>n;n+=1)this.v[n]=i?e.k[n]*i:e.k[n],this.pv[n]=e.k[n]}function o(n,a,s){this.keyframes=a.k,this.offsetTime=n.data.st,this.lastValue=-99999,this.lastPValue=-99999,this.frameId=-1,this.k=!0,this.data=a,this.mult=s,this.elem=n,this.comp=n.comp,this.lastFrame=g,this.v=s?a.k[0].s[0]*s:a.k[0].s[0],this.pv=a.k[0].s[0],this.getValue=i,this.getValueAtTime=t,this.getVelocityAtTime=e,r.bind(this)(n,a)}function l(n,a,s){var o,l,c,h,d,p=a.k.length;for(o=0;p-1>o;o+=1)a.k[o].to&&a.k[o].s&&a.k[o].e&&(l=a.k[o].s,c=a.k[o].e,h=a.k[o].to,d=a.k[o].ti,(2==l.length&&bez.pointOnLine2D(l[0],l[1],c[0],c[1],l[0]+h[0],l[1]+h[1])&&bez.pointOnLine2D(l[0],l[1],c[0],c[1],c[0]+d[0],c[1]+d[1])||bez.pointOnLine3D(l[0],l[1],l[2],c[0],c[1],c[2],l[0]+h[0],l[1]+h[1],l[2]+h[2])&&bez.pointOnLine3D(l[0],l[1],l[2],c[0],c[1],c[2],c[0]+d[0],c[1]+d[1],c[2]+d[2]))&&(a.k[o].to=null,a.k[o].ti=null));this.keyframes=a.k,this.offsetTime=n.data.st,this.k=!0,this.mult=s,this.elem=n,this.comp=n.comp,this.getValue=i,this.getValueAtTime=t,this.getVelocityAtTime=e,this.frameId=-1,this.v=new Array(a.k[0].s.length),this.pv=new Array(a.k[0].s.length),this.lastValue=new Array(a.k[0].s.length),this.lastPValue=new Array(a.k[0].s.length),this.lastFrame=g,r.bind(this)(n,a)}function c(t,e,i,n,r){var c;if(2===i)c=new v(t,e,r);else if(7===i)c=new k(t,e,r);else if(e.k.length)if("number"==typeof e.k[0])c=new s(t,e,n);else switch(i){case 0:c=new o(t,e,n);break;case 1:c=new l(t,e,n)}else c=new a(t,e,n);return(c.k||c.x)&&r.push(c),c}function h(){return this.v}function d(t,e,i){this.comp=t.comp,this.k=!1,this.mdf=!1,this.closed=3===i?e.cl:e.closed,this.numNodes=3===i?e.pt.k.v.length:e.ks.k.v.length,this.v=3===i?e.pt.k:e.ks.k;var n=3===i?e.pt:e.ks;this.getValue=h,this.pv=this.v,r.bind(this)(t,n)}function p(t,e,i){this.comp=t.comp,this.offsetTime=t.data.st,this.getValue=n,this.keyframes=3===i?e.pt.k:e.ks.k,this.k=!0,this.closed=3===i?e.cl:e.closed;var a,s=this.keyframes[0].s[0].i.length,o=this.keyframes[0].s[0].i[0].length;for(this.numNodes=s,this.v={i:new Array(s),o:new Array(s),v:new Array(s)},this.pv={i:new Array(s),o:new Array(s),v:new Array(s)},a=0;s>a;a+=1)this.v.i[a]=new Array(o),this.v.o[a]=new Array(o),this.v.v[a]=new Array(o),this.pv.i[a]=new Array(o),this.pv.o[a]=new Array(o),this.pv.v[a]=new Array(o);this.lastFrame=g;var l=3===i?e.pt:e.ks;r.bind(this)(t,l)}function u(t,e,i,n,r){var a;if(3===i||4===i){var s=3===i?e.pt.k:e.ks.k;a=s.length?new p(t,e,i):new d(t,e,i)}else 5===i?a=new w(t,e):6===i?a=new y(t,e):7===i&&(a=new b(t,e));var o=!1;if(r)for(var l=0,c=r.length;c>l;){if(!r[l].closed){o=!0;break}l+=1}return o&&(a=new x(a,r)),a.k&&n.push(a),a}function f(t,e,i,n){return new E(t,e,i,n)}function m(t,e,i){switch(e.t){case 0:return new S(t,e,i);case 1:return new _(t,e)}}var g=-999999,v=function(){function t(){return this.p.k&&this.getValue(),this.p.pv}function e(){return this.a.k&&this.getValue(),this.a.pv}function i(){return this.or.k&&this.getValue(),this.or.pv}function n(){return this.r.k&&this.getValue(),this.r.pv}function r(){return this.s.k&&this.getValue(),this.s.pv}function a(){return this.o.k&&this.o.getValue(),this.o.pv}function s(){return this.sk.k&&this.sk.getValue(),this.sk.pv}function o(){return this.sa.k&&this.sa.getValue(),this.sa.pv}function l(t,e){var i,n=this.dynamicProperties.length;if(e){for(i=0;n>i;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])}else this.a&&t.translate(-this.a.pv[0],-this.a.pv[1],this.a.pv[2]),this.s&&t.scale(this.s.pv[0],this.s.pv[1],this.s.pv[2]),this.r?t.rotate(-this.r.pv):t.rotateZ(-this.rz.pv).rotateY(this.ry.pv).rotateX(this.rx.pv).rotateZ(-this.or.pv[2]).rotateY(this.or.pv[1]).rotateX(this.or.pv[0]),this.data.p.s?this.data.p.z?t.translate(this.px.pv,this.py.pv,-this.pz.pv):t.translate(this.px.pv,this.py.pv,0):t.translate(this.p.pv[0],this.p.pv[1],-this.p.pv[2])}function h(){if(this.elem.globalData.frameId!==this.frameId){this.mdf=!1,this.frameId=this.elem.globalData.frameId;var t,e=this.dynamicProperties.length;for(t=0;e>t;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t].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.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]))}}function d(){this.inverted=!0,this.iv=new Matrix,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]))}return function(p,u,f){this.elem=p,this.frameId=-1,this.dynamicProperties=[],this.mdf=!1,this.data=u,this.getValue=h,this.applyToMatrix=l,this.setInverted=d,this.v=new Matrix,u.p.s?(this.px=c(p,u.p.x,0,0,this.dynamicProperties),this.py=c(p,u.p.y,0,0,this.dynamicProperties),u.p.z&&(this.pz=c(p,u.p.z,0,0,this.dynamicProperties))):this.p=c(p,u.p,1,0,this.dynamicProperties),u.r?this.r=c(p,u.r,0,degToRads,this.dynamicProperties):u.rx&&(this.rx=c(p,u.rx,0,degToRads,this.dynamicProperties),this.ry=c(p,u.ry,0,degToRads,this.dynamicProperties),this.rz=c(p,u.rz,0,degToRads,this.dynamicProperties),this.or=c(p,u.or,0,degToRads,this.dynamicProperties)),u.sk&&(this.sk=c(p,u.sk,0,degToRads,this.dynamicProperties),this.sa=c(p,u.sa,0,degToRads,this.dynamicProperties)),u.a&&(this.a=c(p,u.a,1,0,this.dynamicProperties)),u.s&&(this.s=c(p,u.s,1,.01,this.dynamicProperties)),this.o=u.o?c(p,u.o,0,.01,f):{mdf:!1,v:1},this.dynamicProperties.length?f.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?u.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:t}),Object.defineProperty(this,"orientation",{get:i}),Object.defineProperty(this,"anchorPoint",{get:e}),Object.defineProperty(this,"rotation",{get:n}),Object.defineProperty(this,"scale",{get:r}),Object.defineProperty(this,"opacity",{get:a}),Object.defineProperty(this,"skew",{get:s}),Object.defineProperty(this,"skewAxis",{get:o})}}(),y=function(){function t(){var t=this.p.v[0],e=this.p.v[1],n=this.s.v[0]/2,r=this.s.v[1]/2;2!==this.d&&3!==this.d?(this.v.v[0]=[t,e-r],this.v.i[0]=[t-n*i,e-r],this.v.o[0]=[t+n*i,e-r],this.v.v[1]=[t+n,e],this.v.i[1]=[t+n,e-r*i],this.v.o[1]=[t+n,e+r*i],this.v.v[2]=[t,e+r],this.v.i[2]=[t+n*i,e+r],this.v.o[2]=[t-n*i,e+r],this.v.v[3]=[t-n,e],this.v.i[3]=[t-n,e+r*i],this.v.o[3]=[t-n,e-r*i]):(this.v.v[0]=[t,e-r],this.v.o[0]=[t-n*i,e-r],this.v.i[0]=[t+n*i,e-r],this.v.v[1]=[t-n,e],this.v.o[1]=[t-n,e+r*i],this.v.i[1]=[t-n,e-r*i],this.v.v[2]=[t,e+r],this.v.o[2]=[t+n*i,e+r],this.v.i[2]=[t-n*i,e+r],this.v.v[3]=[t+n,e],this.v.o[3]=[t+n,e-r*i],this.v.i[3]=[t+n,e+r*i])}function e(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;i>e;e+=1)this.dynamicProperties[e].getValue(t),this.dynamicProperties[e].mdf&&(this.mdf=!0);this.mdf&&this.convertEllToPath()}}var i=.5519;return function(i,n){this.v={v:new Array(4),i:new Array(4),o:new Array(4),c:!0},this.numNodes=4,this.d=n.d,this.dynamicProperties=[],n.closed=!0,this.closed=!0,this.elem=i,this.comp=i.comp,this.frameId=-1,this.mdf=!1,this.getValue=e,this.convertEllToPath=t,this.p=c(i,n.p,1,0,this.dynamicProperties),this.s=c(i,n.s,1,0,this.dynamicProperties),this.dynamicProperties.length?this.k=!0:this.convertEllToPath()}}(),b=function(){function t(){var t=Math.floor(this.pt.v),e=2*Math.PI/t;this.v.v.length=t,this.v.i.length=t,this.v.o.length=t;var i,n=this.or.v,r=this.os.v,a=2*Math.PI*n/(4*t),s=-Math.PI/2,o=3===this.data.d?-1:1;for(s+=this.r.v,i=0;t>i;i+=1){var l=n*Math.cos(s),c=n*Math.sin(s),h=0===l&&0===c?0:c/Math.sqrt(l*l+c*c),d=0===l&&0===c?0:-l/Math.sqrt(l*l+c*c);l+=+this.p.v[0],c+=+this.p.v[1],this.v.v[i]=[l,c],this.v.i[i]=[l+h*a*r*o,c+d*a*r*o],this.v.o[i]=[l-h*a*r*o,c-d*a*r*o],s+=e*o}this.numNodes=t}function e(){var t=2*Math.floor(this.pt.v),e=2*Math.PI/t;this.v.v.length=t,this.v.i.length=t,this.v.o.length=t;var i,n,r,a,s=!0,o=this.or.v,l=this.ir.v,c=this.os.v,h=this.is.v,d=2*Math.PI*o/(2*t),p=2*Math.PI*l/(2*t),u=-Math.PI/2;u+=this.r.v;var f=3===this.data.d?-1:1;for(i=0;t>i;i+=1){n=s?o:l,r=s?c:h,a=s?d:p;var m=n*Math.cos(u),g=n*Math.sin(u),v=0===m&&0===g?0:g/Math.sqrt(m*m+g*g),y=0===m&&0===g?0:-m/Math.sqrt(m*m+g*g);m+=+this.p.v[0],g+=+this.p.v[1],this.v.v[i]=[m,g],this.v.i[i]=[m+v*a*r*f,g+y*a*r*f],this.v.o[i]=[m-v*a*r*f,g-y*a*r*f],s=!s,u+=e*f}this.numNodes=t}function i(){if(this.elem.globalData.frameId!==this.frameId){this.mdf=!1,this.frameId=this.elem.globalData.frameId;var t,e=this.dynamicProperties.length;for(t=0;e>t;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t].mdf&&(this.mdf=!0);this.mdf&&this.convertToPath()}}return function(n,r){this.v={v:[],i:[],o:[],c:!0},this.elem=n,this.comp=n.comp,this.data=r,this.frameId=-1,this.d=r.d,this.dynamicProperties=[],this.mdf=!1,r.closed=!0,this.closed=!0,this.getValue=i,1===r.sy?(this.ir=c(n,r.ir,0,0,this.dynamicProperties),this.is=c(n,r.is,0,.01,this.dynamicProperties),this.convertToPath=e):this.convertToPath=t,this.pt=c(n,r.pt,0,0,this.dynamicProperties),this.p=c(n,r.p,1,0,this.dynamicProperties),this.r=c(n,r.r,0,degToRads,this.dynamicProperties),this.or=c(n,r.or,0,0,this.dynamicProperties),this.os=c(n,r.os,0,.01,this.dynamicProperties),this.dynamicProperties.length?this.k=!0:this.convertToPath()}}(),w=function(){function t(t){if(this.elem.globalData.frameId!==this.frameId){this.mdf=!1,this.frameId=this.elem.globalData.frameId;var e,i=this.dynamicProperties.length;for(e=0;i>e;e+=1)this.dynamicProperties[e].getValue(t),this.dynamicProperties[e].mdf&&(this.mdf=!0);this.mdf&&this.convertRectToPath()}}function e(){var t=this.p.v[0],e=this.p.v[1],i=this.s.v[0]/2,n=this.s.v[1]/2,r=bm_min(i,n,this.r.v),a=r*(1-.5519);2===this.d||1===this.d?(this.v.v[0]=[t+i,e-n+r],this.v.o[0]=this.v.v[0],this.v.i[0]=[t+i,e-n+a],this.v.v[1]=[t+i,e+n-r],this.v.o[1]=[t+i,e+n-a],this.v.i[1]=this.v.v[1],this.v.v[2]=[t+i-r,e+n],this.v.o[2]=this.v.v[2],this.v.i[2]=[t+i-a,e+n],this.v.v[3]=[t-i+r,e+n],this.v.o[3]=[t-i+a,e+n],this.v.i[3]=this.v.v[3],this.v.v[4]=[t-i,e+n-r],this.v.o[4]=this.v.v[4],this.v.i[4]=[t-i,e+n-a],this.v.v[5]=[t-i,e-n+r],this.v.o[5]=[t-i,e-n+a],this.v.i[5]=this.v.v[5],this.v.v[6]=[t-i+r,e-n],this.v.o[6]=this.v.v[6],this.v.i[6]=[t-i+a,e-n],this.v.v[7]=[t+i-r,e-n],this.v.o[7]=[t+i-a,e-n],this.v.i[7]=this.v.v[7]):(this.v.v[0]=[t+i,e-n+r],this.v.o[0]=[t+i,e-n+a],this.v.i[0]=this.v.v[0],this.v.v[1]=[t+i-r,e-n],this.v.o[1]=this.v.v[1],this.v.i[1]=[t+i-a,e-n],this.v.v[2]=[t-i+r,e-n],this.v.o[2]=[t-i+a,e-n],this.v.i[2]=this.v.v[2],this.v.v[3]=[t-i,e-n+r],this.v.o[3]=this.v.v[3],this.v.i[3]=[t-i,e-n+a],this.v.v[4]=[t-i,e+n-r],this.v.o[4]=[t-i,e+n-a],this.v.i[4]=this.v.v[4],this.v.v[5]=[t-i+r,e+n],this.v.o[5]=this.v.v[5],this.v.i[5]=[t-i+a,e+n],this.v.v[6]=[t+i-r,e+n],this.v.o[6]=[t+i-a,e+n],this.v.i[6]=this.v.v[6],this.v.v[7]=[t+i,e+n-r],this.v.o[7]=this.v.v[7],this.v.i[7]=[t+i,e+n-a])}return function(i,n){this.v={v:new Array(8),i:new Array(8),o:new Array(8),c:!0},this.numNodes=8,this.elem=i,this.comp=i.comp,this.frameId=-1,this.d=n.d,this.dynamicProperties=[],this.mdf=!1,n.closed=!0,this.closed=!0,this.getValue=t,this.convertRectToPath=e,this.p=c(i,n.p,1,0,this.dynamicProperties),this.s=c(i,n.s,1,0,this.dynamicProperties),this.r=c(i,n.r,0,0,this.dynamicProperties),this.dynamicProperties.length?this.k=!0:this.convertRectToPath()}}(),k=function(){function t(t){if(this.elem.globalData.frameId!==this.frameId||t){this.mdf=!1,this.frameId=this.elem.globalData.frameId;var e,i=this.dynamicProperties.length;for(e=0;i>e;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e].mdf&&(this.mdf=!0);if(this.mdf||t){var n=this.o.v%360/360;if(0===n&&0===this.s.v&&1==this.e.v)return void(this.isTrimming=!1);this.isTrimming=!0,0>n&&(n+=1);var r=this.s.v+n,a=this.e.v+n;if(r>a){var s=r;r=a,a=s}this.sValue=r,this.eValue=a,this.oValue=n}}}return function(e,i){this.elem=e,this.frameId=-1,this.dynamicProperties=[],this.sValue=0,this.eValue=0,this.oValue=0,this.mdf=!1,this.getValue=t,this.k=!1,this.isTrimming=!1,this.comp=e.comp,this.s=c(e,i.s,0,.01,this.dynamicProperties),this.e=c(e,i.e,0,.01,this.dynamicProperties),this.o=c(e,i.o,0,0,this.dynamicProperties),this.dynamicProperties.length?this.k=!0:this.getValue(!0)}}(),x=function(){function t(t,e){this.totalLength=0;var i,n=t.v,r=t.o,a=t.i,s=n.length;for(i=0;s-1>i;i+=1)this.lengths[i]=bez.getBezierLength(n[i],n[i+1],r[i],a[i+1]),this.totalLength+=this.lengths[i].addedLength;e&&(this.lengths[i]=bez.getBezierLength(n[i],n[0],r[i],a[0]),this.totalLength+=this.lengths[i].addedLength)}function e(t,e,i,n,r){this.nextO[this.segmentCount]=e,this.nextI[this.segmentCount+1]=i,this.nextV[this.segmentCount+1]=n,this.pathStarted?this.nextV[this.segmentCount]=t:(this.pathStarted=!0,this.v.s[this.segmentCount]=t),this.segmentCount+=1}function i(t){this.mdf=!!t,this.prop.k&&this.prop.getValue();var e=0,i=this.trims.length;for(this.pathStarted=!1;i>e;){if(this.trims[e].mdf){this.mdf=!0;break}e+=1}if(this.mdf=!!this.prop.mdf||this.mdf,this.mdf){this.nextO.length=0,this.nextI.length=0,this.nextV.length=0,this.v.s.length=0;var n=this.prop.closed;this.getSegmentsLength(this.prop.v,n);var r,a,s,o,l,c,h=this.prop.v,d=this.trims.length;for(r=0;d>r;r+=1)if(this.trims[r].isTrimming){if(a=this.trims[r].eValue,s=this.trims[r].sValue,o=this.trims[r].oValue,a===s)return this.v.v=this.nextV,this.v.o=this.nextO,void(this.v.i=this.nextI);1>=a?(this.segments[0].s=this.totalLength*s,this.segments[0].e=this.totalLength*a,this.segments[1].vl=!1):s>=1?(this.segments[0].s=this.totalLength*(s-1),this.segments[0].e=this.totalLength*(a-1),this.segments[1].vl=!1):(this.segments[0].s=this.totalLength*s,this.segments[0].e=this.totalLength,this.segments[1].s=0,this.segments[1].e=this.totalLength*(a-1),this.segments[1].vl=!0),this.v.v=h.v,this.v.o=h.o,this.v.i=h.i,c=this.v.v.length;var p=0,u=0;i=this.segments[1].vl?2:1;var f;for(this.segmentCount=0,e=0;i>e;e+=1){for(p=0,l=1;c>l;l++)if(u=this.lengths[l-1].addedLength,p+uthis.segments[e].e)break;this.segments[e].s<=p&&this.segments[e].e>=p+u?this.addSegment(this.v.v[l-1],this.v.o[l-1],this.v.i[l],this.v.v[l],this.lengths[l-1]):(f=bez.getNewSegment(this.v.v[l-1],this.v.v[l],this.v.o[l-1],this.v.i[l],(this.segments[e].s-p)/u,(this.segments[e].e-p)/u,this.lengths[l-1]),this.addSegment(f.pt1,f.pt3,f.pt4,f.pt2)),p+=u}n!==!1?p<=this.segments[e].e&&(u=this.lengths[l-1].addedLength,this.segments[e].s<=p&&this.segments[e].e>=p+u?this.addSegment(this.v.v[l-1],this.v.o[l-1],this.v.i[0],this.v.v[0],this.lengths[l-1]):(f=bez.getNewSegment(this.v.v[l-1],this.v.v[0],this.v.o[l-1],this.v.i[0],(this.segments[e].s-p)/u,(this.segments[e].e-p)/u,this.lengths[l-1]),this.addSegment(f.pt1,f.pt3,f.pt4,f.pt2))):this.pathStarted=!1}n=!1}else this.v.v=h.v,this.v.o=h.o,this.v.i=h.i;this.nextV.length?(this.v.v=this.nextV,this.v.o=this.nextO,this.v.i=this.nextI):this.v.s.length=0,this.v.c=n}}return function(n,r){this.trims=[],this.k=!1,this.mdf=!1,this.ty="tm",this.pathStarted=!1,this.segments=[{s:0,e:0,vl:!0},{s:0,e:0,vl:!1}],this.nextO=[],this.nextV=[],this.nextI=[],this.v={i:null,o:null,v:null,s:[],c:!1};var a,s=r.length;for(a=0;s>a;a+=1)r[a].closed||(this.k=!!r[a].trimProp.k||this.k,this.trims.push(r[a].trimProp));this.prop=n,this.prop.numNodes?(s=this.prop.numNodes-1,s+=this.prop.closed?1:0,this.lengths=new Array(s)):this.lengths=[],this.k=!!n.k||this.k,this.totalLength=0,this.getValue=i,this.addSegment=e,this.getSegmentsLength=t,this.k||(this.prop.getValue(),this.getValue(!0))}}(),E=function(){function t(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;i>e;){if(this.dataProps[e].p.mdf){this.mdf=!0;break}e+=1}if(this.mdf||t)for("svg"===this.renderer&&(this.dasharray=""),e=0;i>e;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}}return function(e,i,n,r){this.elem=e,this.frameId=-1,this.dataProps=new Array(i.length),this.renderer=n,this.mdf=!1,this.k=!1,this.dasharray="svg"===this.renderer?"":new Array(i.length-1),this.dashoffset=0;var a,s,o=i.length;for(a=0;o>a;a+=1)s=c(e,i[a].v,0,0,r),this.k=!!s.k||this.k,this.dataProps[a]={n:i[a].n,p:s};this.getValue=t,this.k?r.push(this):this.getValue(!0)}}(),_=function(){function t(t,e){return this.textIndex=t+1,this.textTotal=e,this.getValue(),this.v}return function(e,i){this.pv=1,this.comp=e.comp,this.mult=.01,this.type="textSelector",this.textTotal=i.totalChars,this.selectorValue=100,this.lastValue=[1,1,1],r.bind(this)(e,i),this.getMult=t}}(),S=function(){function t(){if(this.dynamicProperties.length){var t,e=this.dynamicProperties.length;for(t=0;e>t;t+=1)this.dynamicProperties[t].getValue()}var i=this.data.totalChars,n=2===this.data.r?1:100/i,r=this.o.v/n,a=this.s.v/n+r,s=this.e.v/n+r;if(a>s){var o=a;a=s,s=o}this.finalS=a,this.finalE=s}function e(t){var e=BezierFactory.getBezierEasing(this.ne.v/100,0,1-this.xe.v/100,1).get,a=0,s=this.finalS,o=this.finalE,l=this.data.sh;if(2==l)a=o===s?t>=o?1:0:i(0,n(.5/(o-s)+(t-s)/(o-s),1)),a=e(a);else if(3==l)a=o===s?t>=o?0:1:1-i(0,n(.5/(o-s)+(t-s)/(o-s),1)),a=e(a);else if(4==l)o===s?a=t>=o?0:1:(a=i(0,n(.5/(o-s)+(t-s)/(o-s),1)),.5>a?a*=2:a=1-a);else if(5==l)if(o===s)a=t>=o?0:1;else{var c=o-s;a=-4/(c*c)*t*t+4/c*t}else 6==l?a=o===s?t>=o?0:1:(1+(Math.cos(Math.PI+2*Math.PI*(t-s)/(o-s))+0))/2:t>=r(s)&&(a=0>t-s?1-(s-t):i(0,n(o-t,1)));return a*this.a.v}var i=Math.max,n=Math.min,r=Math.floor;return function(i,n,r){this.mdf=!1,this.k=!1,this.data=n,this.dynamicProperties=[],this.getValue=t,this.getMult=e,this.comp=i.comp,this.finalS=0,this.finalE=0,this.s=c(i,n.s||{k:0},0,0,this.dynamicProperties),this.e="e"in n?c(i,n.e,0,0,this.dynamicProperties):{v:2===n.r?n.totalChars:100},this.o=c(i,n.o||{k:0},0,0,this.dynamicProperties),this.xe=c(i,n.xe||{k:0},0,0,this.dynamicProperties), this.ne=c(i,n.ne||{k:0},0,0,this.dynamicProperties),this.a=c(i,n.a,0,.01,this.dynamicProperties),this.dynamicProperties.length?r.push(this):this.getValue()}}(),C={};return C.getProp=c,C.getShapeProp=u,C.getDashProp=f,C.getTextSelectorProp=m,C}();SVGRenderer.prototype.createItem=function(t,e,i,n){switch(t.ty){case 2:return this.createImage(t,e,i,n);case 0:return this.createComp(t,e,i,n);case 1:return this.createSolid(t,e,i,n);case 4:return this.createShape(t,e,i,n);case 5:return this.createText(t,e,i,n);case 99:return this.createPlaceHolder(t,e)}return this.createBase(t,e,i)},SVGRenderer.prototype.buildItems=function(t,e,i,n,r){var a,s=t.length;i||(i=this.elements),e||(e=this.animationItem.container),n||(n=this);var o;for(a=s-1;a>=0;a--)i[a]=this.createItem(t[a],e,n,r),0===t[a].ty&&(o=[],this.buildItems(t[a].layers,i[a].getDomElement(),o,i[a],i[a].placeholder),i[a].setElements(o)),t[a].td&&i[a+1].setMatte(i[a].layerId)},SVGRenderer.prototype.includeLayers=function(t,e,i){var n,r=t.length;i||(i=this.elements),e||(e=this.animationItem.container);var a,s,o,l=i.length;for(n=0;r>n;n+=1)for(a=0;l>a;){if(i[a].data.id==t[n].id){o=i[a],i[a]=this.createItem(t[n],e,this,o),0===t[n].ty&&(s=[],this.buildItems(t[n].layers,i[a].getDomElement(),s,i[a],i[n].placeholder),i[a].setElements(s));break}a+=1}for(n=0;r>n;n+=1)t[n].td&&i[n+1].setMatte(i[n].layerId)},SVGRenderer.prototype.createBase=function(t,e,i,n){return new SVGBaseElement(t,e,this.globalData,i,n)},SVGRenderer.prototype.createPlaceHolder=function(t,e){return new PlaceHolderElement(t,e,this.globalData)},SVGRenderer.prototype.createShape=function(t,e,i,n){return new IShapeElement(t,e,this.globalData,i,n)},SVGRenderer.prototype.createText=function(t,e,i,n){return new SVGTextElement(t,e,this.globalData,i,n)},SVGRenderer.prototype.createImage=function(t,e,i,n){return new IImageElement(t,e,this.globalData,i,n)},SVGRenderer.prototype.createComp=function(t,e,i,n){return new ICompElement(t,e,this.globalData,i,n)},SVGRenderer.prototype.createSolid=function(t,e,i,n){return new ISolidElement(t,e,this.globalData,i,n)},SVGRenderer.prototype.configAnimation=function(t){this.animationItem.container=document.createElementNS(svgNS,"svg"),this.animationItem.container.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.animationItem.container.setAttribute("width",t.w),this.animationItem.container.setAttribute("height",t.h),this.animationItem.container.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.animationItem.container.setAttribute("preserveAspectRatio","xMidYMid meet"),this.animationItem.container.style.width="100%",this.animationItem.container.style.height="100%",this.animationItem.container.style.transform="translate3d(0,0,0)",this.animationItem.container.style.transformOrigin=this.animationItem.container.style.mozTransformOrigin=this.animationItem.container.style.webkitTransformOrigin=this.animationItem.container.style["-webkit-transform"]="0px 0px 0px",this.animationItem.wrapper.appendChild(this.animationItem.container);var e=document.createElementNS(svgNS,"defs");this.globalData.defs=e,this.animationItem.container.appendChild(e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getPath=this.animationItem.getPath.bind(this.animationItem),this.globalData.elementLoaded=this.animationItem.elementLoaded.bind(this.animationItem),this.globalData.frameId=0,this.globalData.compSize={w:t.w,h:t.h},this.globalData.frameRate=t.fr;var i=document.createElementNS(svgNS,"clipPath"),n=document.createElementNS(svgNS,"rect");n.setAttribute("width",t.w),n.setAttribute("height",t.h),n.setAttribute("x",0),n.setAttribute("y",0);var r="animationMask_"+randomString(10);i.setAttribute("id",r),i.appendChild(n);var a=document.createElementNS(svgNS,"g");a.setAttribute("clip-path","url(#"+r+")"),this.animationItem.container.appendChild(a),e.appendChild(i),this.animationItem.container=a,this.layers=t.layers,this.globalData.fontManager=new FontManager,this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e)},SVGRenderer.prototype.buildStage=function(t,e,i){var n,r,a=e.length;for(i||(i=this.elements),n=a-1;n>=0;n--)r=e[n],void 0!==r.parent&&this.buildItemParenting(r,i[n],e,r.parent,i,!0),0===r.ty&&this.buildStage(i[n].getComposingElement(),r.layers,i[n].getElements())},SVGRenderer.prototype.buildItemParenting=function(t,e,i,n,r,a){t.parents||(t.parents=[]),a&&e.resetHierarchy();for(var s=0,o=i.length;o>s;)i[s].ind==n&&(e.getHierarchy().push(r[s]),void 0!==i[s].parent&&this.buildItemParenting(t,e,i,i[s].parent,r,!1)),s+=1},SVGRenderer.prototype.destroy=function(){this.animationItem.wrapper.innerHTML="",this.animationItem.container=null,this.globalData.defs=null;var t,e=this.layers.length;for(t=0;e>t;t++)this.elements[t].destroy();this.elements.length=0,this.destroyed=!0},SVGRenderer.prototype.updateContainerSize=function(){},SVGRenderer.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;var e,i=this.layers.length;for(e=0;i>e;e++)this.elements[e].prepareFrame(t-this.layers[e].st);for(e=0;i>e;e++)this.elements[e].renderFrame()}},SVGRenderer.prototype.hide=function(){this.animationItem.container.style.display="none"},SVGRenderer.prototype.show=function(){this.animationItem.container.style.display="block"},extendPrototype(ExpressionComp,SVGRenderer),CanvasRenderer.prototype.createItem=function(t,e){switch(t.ty){case 0:return this.createComp(t,e);case 1:return this.createSolid(t,e);case 2:return this.createImage(t,e);case 4:return this.createShape(t,e);case 5:return this.createText(t,e);case 99:return this.createPlaceHolder(t,e);default:return this.createBase(t,e)}return this.createBase(t,e)},CanvasRenderer.prototype.buildItems=function(t,e,i){e||(e=this.elements),i||(i=this);var n,r=t.length;for(n=0;r>n;n++)if(e[n]=this.createItem(t[n],i),0===t[n].ty){var a=[];this.buildItems(t[n].layers,a,e[n]),e[e.length-1].setElements(a)}},CanvasRenderer.prototype.includeLayers=function(t,e,i){var n,r=t.length;i||(i=this.elements);var a,s,o=i.length;for(n=0;r>n;n+=1)for(a=0;o>a;){if(i[a].data.id==t[n].id){i[a]=this.createItem(t[n],this),0===t[n].ty&&(s=[],this.buildItems(t[n].layers,s,i[a]),i[a].setElements(s));break}a+=1}},CanvasRenderer.prototype.createBase=function(t,e){return new CVBaseElement(t,e,this.globalData)},CanvasRenderer.prototype.createShape=function(t,e){return new CVShapeElement(t,e,this.globalData)},CanvasRenderer.prototype.createText=function(t,e){return new CVTextElement(t,e,this.globalData)},CanvasRenderer.prototype.createPlaceHolder=function(t){return new PlaceHolderElement(t,null,this.globalData)},CanvasRenderer.prototype.createImage=function(t,e){return new CVImageElement(t,e,this.globalData)},CanvasRenderer.prototype.createComp=function(t,e){return new CVCompElement(t,e,this.globalData)},CanvasRenderer.prototype.createSolid=function(t,e){return new CVSolidElement(t,e,this.globalData)},CanvasRenderer.prototype.ctxTransform=function(t){if(1!==t[0]||0!==t[1]||0!==t[4]||1!==t[5]||0!==t[12]||0!==t[13]){if(!this.renderConfig.clearCanvas)return void this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13]);this.transformMat.cloneFromProps(t),this.transformMat.transform(this.contextData.cTr.props[0],this.contextData.cTr.props[1],this.contextData.cTr.props[2],this.contextData.cTr.props[3],this.contextData.cTr.props[4],this.contextData.cTr.props[5],this.contextData.cTr.props[6],this.contextData.cTr.props[7],this.contextData.cTr.props[8],this.contextData.cTr.props[9],this.contextData.cTr.props[10],this.contextData.cTr.props[11],this.contextData.cTr.props[12],this.contextData.cTr.props[13],this.contextData.cTr.props[14],this.contextData.cTr.props[15]),this.contextData.cTr.cloneFromProps(this.transformMat.props);var e=this.contextData.cTr.props;this.canvasContext.setTransform(e[0],e[1],e[4],e[5],e[12],e[13])}},CanvasRenderer.prototype.ctxOpacity=function(t){if(1!==t){if(!this.renderConfig.clearCanvas)return void(this.canvasContext.globalAlpha*=0>t?0:t);this.contextData.cO*=0>t?0:t,this.canvasContext.globalAlpha=this.contextData.cO}},CanvasRenderer.prototype.reset=function(){return this.renderConfig.clearCanvas?(this.contextData.cArrPos=0,this.contextData.cTr.reset(),void(this.contextData.cO=1)):void this.canvasContext.restore()},CanvasRenderer.prototype.save=function(t){if(!this.renderConfig.clearCanvas)return void this.canvasContext.save();t&&this.canvasContext.save();var e=this.contextData.cTr.props;(null===this.contextData.saved[this.contextData.cArrPos]||void 0===this.contextData.saved[this.contextData.cArrPos])&&(this.contextData.saved[this.contextData.cArrPos]=new Array(16));var i,n=this.contextData.saved[this.contextData.cArrPos];for(i=0;16>i;i+=1)n[i]=e[i];this.contextData.savedOp[this.contextData.cArrPos]=this.contextData.cO,this.contextData.cArrPos+=1},CanvasRenderer.prototype.restore=function(t){if(!this.renderConfig.clearCanvas)return void this.canvasContext.restore();t&&this.canvasContext.restore(),this.contextData.cArrPos-=1;var e,i=this.contextData.saved[this.contextData.cArrPos],n=this.contextData.cTr.props;for(e=0;16>e;e+=1)n[e]=i[e];this.canvasContext.setTransform(i[0],i[1],i[4],i[5],i[12],i[13]),i=this.contextData.savedOp[this.contextData.cArrPos],this.contextData.cO=i,this.canvasContext.globalAlpha=i},CanvasRenderer.prototype.configAnimation=function(t){this.animationItem.wrapper?(this.animationItem.container=document.createElement("canvas"),this.animationItem.container.style.width="100%",this.animationItem.container.style.height="100%",this.animationItem.container.style.transformOrigin=this.animationItem.container.style.mozTransformOrigin=this.animationItem.container.style.webkitTransformOrigin=this.animationItem.container.style["-webkit-transform"]="0px 0px 0px",this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d")):this.canvasContext=this.renderConfig.context,this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.totalFrames=Math.floor(t.tf),this.globalData.compWidth=t.w,this.globalData.compHeight=t.h,this.globalData.frameRate=t.fr,this.globalData.frameId=0,this.layers=t.layers,this.transformCanvas={},this.transformCanvas.w=t.w,this.transformCanvas.h=t.h,this.updateContainerSize(),this.globalData.fontManager=new FontManager,this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,document)},CanvasRenderer.prototype.updateContainerSize=function(){var t,e;if(this.animationItem.wrapper&&this.animationItem.container?(t=this.animationItem.wrapper.offsetWidth,e=this.animationItem.wrapper.offsetHeight,this.animationItem.container.setAttribute("width",t*this.renderConfig.dpr),this.animationItem.container.setAttribute("height",e*this.renderConfig.dpr)):(t=this.canvasContext.canvas.width*this.renderConfig.dpr,e=this.canvasContext.canvas.height*this.renderConfig.dpr),"fit"==this.renderConfig.scaleMode){var i=t/e,n=this.transformCanvas.w/this.transformCanvas.h;n>i?(this.transformCanvas.sx=t/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=t/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=(e-this.transformCanvas.h*(t/this.transformCanvas.w))/2*this.renderConfig.dpr):(this.transformCanvas.sx=e/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=e/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=(t-this.transformCanvas.w*(e/this.transformCanvas.h))/2*this.renderConfig.dpr,this.transformCanvas.ty=0)}else this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0;this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.globalData.cWidth=t,this.globalData.cHeight=e},CanvasRenderer.prototype.buildStage=function(t,e,i){i||(i=this.elements);var n,r,a=e.length;for(n=a-1;n>=0;n--)r=e[n],void 0!==r.parent&&this.buildItemHierarchy(r,i[n],e,r.parent,i,!0),0==r.ty&&this.buildStage(null,r.layers,i[n].getElements())},CanvasRenderer.prototype.buildItemHierarchy=function(t,e,i,n,r,a){var s=0,o=i.length;for(a&&e.resetHierarchy();o>s;)i[s].ind===n&&(e.getHierarchy().push(r[s]),void 0!==i[s].parent&&this.buildItemHierarchy(t,e,i,i[s].parent,r,!1)),s+=1},CanvasRenderer.prototype.destroy=function(){this.renderConfig.clearCanvas&&(this.animationItem.wrapper.innerHTML="");var t,e=this.layers.length;for(t=e-1;t>=0;t-=1)this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRenderer.prototype.renderFrame=function(t){if(!(this.renderedFrame==t&&this.renderConfig.clearCanvas===!0||this.destroyed||null===t)){this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem.firstFrame,this.globalData.frameId+=1,this.renderConfig.clearCanvas===!0?(this.reset(),this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h)):this.save(),this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip();var e,i=this.layers.length;for(e=0;i>e;e++)this.elements[e].prepareFrame(t-this.layers[e].st);for(e=i-1;e>=0;e-=1)this.elements[e].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}},CanvasRenderer.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRenderer.prototype.show=function(){this.animationItem.container.style.display="block"},extendPrototype(ExpressionComp,CanvasRenderer),HybridRenderer.prototype.createItem=function(t,e,i,n){switch(t.ty){case 2:return this.createImage(t,e,i,n);case 0:return this.createComp(t,e,i,n);case 1:return this.createSolid(t,e,i,n);case 4:return this.createShape(t,e,i,n);case 5:return this.createText(t,e,i,n);case 13:return this.createCamera(t,e,i,n);case 99:return this.createPlaceHolder(t,e)}return this.createBase(t,e,i)},HybridRenderer.prototype.buildItems=function(t,e,i,n,r){var a,s=t.length;i||(i=this.elements),n||(n=this);var o,l,c=!1;for(a=s-1;a>=0;a--)e?i[a]=this.createItem(t[a],e,n,r):t[a].ddd?(c||(c=!0,o=this.getThreeDContainer()),i[a]=this.createItem(t[a],o,n,r)):(c=!1,i[a]=this.createItem(t[a],this.animationItem.resizerElem,n,r)),0===t[a].ty&&(l=[],this.buildItems(t[a].layers,i[a].getDomElement(),l,i[a],i[a].placeholder),i[a].setElements(l)),t[a].td&&i[a+1].setMatte(i[a].layerId);if(this.currentContainer=this.animationItem.resizerElem,!e&&this.threeDElements.length)if(this.camera)this.camera.setup();else{var h=this.globalData.compSize.w,d=this.globalData.compSize.h;for(s=this.threeDElements.length,a=0;s>a;a+=1)this.threeDElements[0][a].style.perspective=this.threeDElements[0][a].style.webkitPerspective=Math.sqrt(Math.pow(h,2)+Math.pow(d,2))+"px"}},HybridRenderer.prototype.includeLayers=function(t,e,i){var n,r=t.length;i||(i=this.elements),e||(e=this.currentContainer);var a,s,o,l=i.length;for(n=0;r>n;n+=1)if(t[n].id)for(a=0;l>a;)i[a].data.id==t[n].id&&(o=i[a],i[a]=this.createItem(t[n],e,this,o),0===t[n].ty&&(s=[],this.buildItems(t[n].layers,i[a].getDomElement(),s,i[a],i[n].placeholder),i[a].setElements(s))),a+=1;else{var c=this.createItem(t[n],e,this);i.push(c),0===t[n].ty&&(s=[],this.buildItems(t[n].layers,c.getDomElement(),s,c),c.setElements(s))}for(n=0;r>n;n+=1)t[n].td&&i[n+1].setMatte(i[n].layerId)},HybridRenderer.prototype.createBase=function(t,e,i,n){return new SVGBaseElement(t,e,this.globalData,i,n)},HybridRenderer.prototype.createPlaceHolder=function(t,e){return new PlaceHolderElement(t,e,this.globalData)},HybridRenderer.prototype.createShape=function(t,e,i,n){return i.isSvg?new IShapeElement(t,e,this.globalData,i,n):new HShapeElement(t,e,this.globalData,i,n)},HybridRenderer.prototype.createText=function(t,e,i,n){return i.isSvg?new SVGTextElement(t,e,this.globalData,i,n):new HTextElement(t,e,this.globalData,i,n)},HybridRenderer.prototype.createCamera=function(t,e,i,n){return this.camera=new HCameraElement(t,e,this.globalData,i,n),this.camera},HybridRenderer.prototype.createImage=function(t,e,i,n){return i.isSvg?new IImageElement(t,e,this.globalData,i,n):new HImageElement(t,e,this.globalData,i,n)},HybridRenderer.prototype.createComp=function(t,e,i,n){return i.isSvg?new ICompElement(t,e,this.globalData,i,n):new HCompElement(t,e,this.globalData,i,n)},HybridRenderer.prototype.createSolid=function(t,e,i,n){return i.isSvg?new ISolidElement(t,e,this.globalData,i,n):new HSolidElement(t,e,this.globalData,i,n)},HybridRenderer.prototype.getThreeDContainer=function(){var t=document.createElement("div");styleDiv(t),t.style.width=this.globalData.compSize.w+"px",t.style.height=this.globalData.compSize.h+"px",t.style.transformOrigin=t.style.mozTransformOrigin=t.style.webkitTransformOrigin="50% 50%";var e=document.createElement("div");return styleDiv(e),e.style.transform=e.style.webkitTransform="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)",t.appendChild(e),this.animationItem.resizerElem.appendChild(t),this.threeDElements.push([t,e]),e},HybridRenderer.prototype.configAnimation=function(t){var e=document.createElement("div"),i=this.animationItem.wrapper;e.style.width=t.w+"px",e.style.height=t.h+"px",this.animationItem.resizerElem=e,styleDiv(e),e.style.transformStyle=e.style.webkitTransformStyle=e.style.mozTransformStyle="flat",i.appendChild(e),e.style.overflow="hidden";var n=document.createElementNS(svgNS,"svg");n.setAttribute("width","1"),n.setAttribute("height","1"),styleDiv(n),this.animationItem.resizerElem.appendChild(n);var r=document.createElementNS(svgNS,"defs");n.appendChild(r),this.globalData.defs=r,this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getPath=this.animationItem.getPath.bind(this.animationItem),this.globalData.elementLoaded=this.animationItem.elementLoaded.bind(this.animationItem),this.globalData.frameId=0,this.globalData.compSize={w:t.w,h:t.h},this.globalData.frameRate=t.fr,this.layers=t.layers,this.globalData.fontManager=new FontManager,this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,n),this.updateContainerSize()},HybridRenderer.prototype.buildStage=function(t,e,i){var n,r,a=e.length;for(i||(i=this.elements),n=a-1;n>=0;n--)r=e[n],void 0!==r.parent&&this.buildItemParenting(r,i[n],e,r.parent,i,!0),0===r.ty&&this.buildStage(i[n].getComposingElement(),r.layers,i[n].getElements())},HybridRenderer.prototype.buildItemParenting=function(t,e,i,n,r,a){t.parents||(t.parents=[]),a&&e.resetHierarchy();for(var s=0,o=i.length;o>s;)i[s].ind==n&&(e.getHierarchy().push(r[s]),13===e.data.ty&&r[s].finalTransform.mProp.setInverted(),void 0!==i[s].parent&&this.buildItemParenting(t,e,i,i[s].parent,r,!1)),s+=1},HybridRenderer.prototype.destroy=function(){this.animationItem.wrapper.innerHTML="",this.animationItem.container=null,this.globalData.defs=null;var t,e=this.layers.length;for(t=0;e>t;t++)this.elements[t].destroy();this.elements.length=0,this.destroyed=!0},HybridRenderer.prototype.updateContainerSize=function(){var t,e,i,n,r=this.animationItem.wrapper.offsetWidth,a=this.animationItem.wrapper.offsetHeight,s=r/a,o=this.globalData.compSize.w/this.globalData.compSize.h;o>s?(t=r/this.globalData.compSize.w,e=r/this.globalData.compSize.w,i=0,n=(a-this.globalData.compSize.h*(r/this.globalData.compSize.w))/2):(t=a/this.globalData.compSize.h,e=a/this.globalData.compSize.h,i=(r-this.globalData.compSize.w*(a/this.globalData.compSize.h))/2,n=0),this.animationItem.resizerElem.style.transform=this.animationItem.resizerElem.style.webkitTransform="matrix3d("+t+",0,0,0,0,"+e+",0,0,0,0,1,0,"+i+","+n+",0,1)"},HybridRenderer.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;var e,i=this.layers.length;for(e=0;i>e;e++)this.elements[e].prepareFrame(t-this.layers[e].st);for(e=0;i>e;e++)this.elements[e].renderFrame()}},HybridRenderer.prototype.hide=function(){this.animationItem.resizerElem.style.display="none"},HybridRenderer.prototype.show=function(){this.animationItem.resizerElem.style.display="block"},extendPrototype(ExpressionComp,HybridRenderer),MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.prepareFrame=function(){var t,e=this.dynamicProperties.length;for(t=0;e>t;t+=1)this.dynamicProperties[t].getValue()},MaskElement.prototype.renderFrame=function(){var t,e=this.masksProperties.length;for(t=0;e>t;t++)if("n"!==this.masksProperties[t].mode&&this.masksProperties[t].cl!==!1&&((this.viewData[t].prop.mdf||this.firstFrame)&&this.drawPath(this.masksProperties[t],this.viewData[t].prop.v,this.viewData[t]),this.storedData[t].x&&(this.storedData[t].x.mdf||this.firstFrame))){var i=this.storedData[t].expan;this.storedData[t].x.v<0?("erode"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="erode",this.storedData[t].elem.setAttribute("filter","url(#"+this.storedData[t].filterId+")")),i.setAttribute("radius",-this.storedData[t].x.v)):("dilate"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="dilate",this.storedData[t].elem.setAttribute("filter",null)),this.storedData[t].elem.setAttribute("stroke-width",2*this.storedData[t].x.v))}this.firstFrame=!1},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,t+=" h-"+this.globalData.compSize.w,t+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(t,e,i){var n,r,a="";for(r=e.v.length,n=1;r>n;n+=1)1==n&&(a+=" M"+bm_rnd(e.v[0][0])+","+bm_rnd(e.v[0][1])),a+=" C"+bm_rnd(e.o[n-1][0])+","+bm_rnd(e.o[n-1][1])+" "+bm_rnd(e.i[n][0])+","+bm_rnd(e.i[n][1])+" "+bm_rnd(e.v[n][0])+","+bm_rnd(e.v[n][1]);t.cl&&(a+=" C"+bm_rnd(e.o[n-1][0])+","+bm_rnd(e.o[n-1][1])+" "+bm_rnd(e.i[0][0])+","+bm_rnd(e.i[0][1])+" "+bm_rnd(e.v[0][0])+","+bm_rnd(e.v[0][1])),i.lastPath!==a&&(t.inv?i.elem.setAttribute("d",this.solidPath+a):i.elem.setAttribute("d",a),i.lastPath=a)},MaskElement.prototype.getMask=function(t){for(var e=0,i=this.masksProperties.length;i>e;){if(this.masksProperties[e].nm===t)return{maskPath:this.viewData[e].prop.pv};e+=1}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.paths=null,this.masksProperties=null},SliderEffect.prototype.proxyFunction=function(){return this.p.k&&this.p.getValue(),this.p.v},AngleEffect.prototype.proxyFunction=SliderEffect.prototype.proxyFunction,ColorEffect.prototype.proxyFunction=SliderEffect.prototype.proxyFunction,PointEffect.prototype.proxyFunction=SliderEffect.prototype.proxyFunction,CheckboxEffect.prototype.proxyFunction=SliderEffect.prototype.proxyFunction,EffectsManager.prototype.getEffect=function(t){for(var e=this.data.ef,i=0,n=e.length;n>i;){if(e[i].nm===t)return this.effectElements[i];i+=1}},BaseElement.prototype.checkMasks=function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;e>t;){if("n"!==this.data.masksProperties[t].mode&&this.data.masksProperties[t].cl!==!1)return!0;t+=1}return!1},BaseElement.prototype.prepareFrame=function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?this.isVisible!==!0&&(this.isVisible=!0,this.firstFrame=!0,this.data.hasMask&&(this.maskManager.firstFrame=!0)):this.isVisible!==!1&&(this.isVisible=!1);var e,i=this.dynamicProperties.length;for(e=0;i>e;e+=1)this.dynamicProperties[e].getValue(t);return this.data.hasMask&&this.maskManager.prepareFrame(t),this.currentFrameNum=t,this.isVisible},BaseElement.prototype.init=function(){this.hidden=!1,this.firstFrame=!0,this.isVisible=!1,this.dynamicProperties=[],this.currentFrameNum=-99999,this.lastNum=-99999,this.data.ef&&(this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties),this.effect=this.effectsManager.getEffect.bind(this.effectsManager)),this.finalTransform={mProp:PropertyFactory.getProp(this,this.data.ks,2,null,this.dynamicProperties),matMdf:!1,opMdf:!1,mat:new Matrix,opacity:1},this.finalTransform.op=this.finalTransform.mProp.o,this.transform=this.finalTransform.mProp,this.createElements(),this.data.hasMask&&this.addMasks(this.data)},BaseElement.prototype.getType=function(){return this.type},BaseElement.prototype.resetHierarchy=function(){this.hierarchy?this.hierarchy.length=0:this.hierarchy=[]},BaseElement.prototype.getHierarchy=function(){return this.hierarchy||(this.hierarchy=[]),this.hierarchy},BaseElement.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}},BaseElement.prototype.hide=function(){},BaseElement.prototype.mHelper=new Matrix,BaseElement.prototype.mask=function(t){return this.maskManager.getMask(t)},extendPrototype(LayerInterface,BaseElement),Object.defineProperty(BaseElement.prototype,"anchorPoint",{get:function(){return this.finalTransform.mProp.anchorPoint}}),createElement(BaseElement,SVGBaseElement),SVGBaseElement.prototype.appendNodeToParent=function(t){if(this.placeholder){var e=this.placeholder.phElement;e.parentNode.insertBefore(t,e)}else this.parentContainer.appendChild(t)},SVGBaseElement.prototype.createElements=function(){if(this.data.td){if(3==this.data.td)this.layerElement=document.createElementNS(svgNS,"mask"),this.layerElement.setAttribute("id",this.layerId),this.layerElement.setAttribute("mask-type","luminance"),this.globalData.defs.appendChild(this.layerElement);else if(2==this.data.td){var t=document.createElementNS(svgNS,"mask");t.setAttribute("id",this.layerId),t.setAttribute("mask-type","alpha");var e=document.createElementNS(svgNS,"g");t.appendChild(e),this.layerElement=document.createElementNS(svgNS,"g");var i=document.createElementNS(svgNS,"filter"),n=randomString(10);i.setAttribute("id",n),i.setAttribute("filterUnits","objectBoundingBox"),i.setAttribute("x","0%"),i.setAttribute("y","0%"),i.setAttribute("width","100%"),i.setAttribute("height","100%");var r=document.createElementNS(svgNS,"feComponentTransfer");r.setAttribute("in","SourceGraphic"),i.appendChild(r);var a=document.createElementNS(svgNS,"feFuncA");a.setAttribute("type","table"),a.setAttribute("tableValues","1.0 0.0"),r.appendChild(a),this.globalData.defs.appendChild(i);var s=document.createElementNS(svgNS,"rect");s.setAttribute("width","100%"),s.setAttribute("height","100%"),s.setAttribute("x","0"),s.setAttribute("y","0"),s.setAttribute("fill","#ffffff"),s.setAttribute("opacity","0"),e.setAttribute("filter","url(#"+n+")"),e.appendChild(s),e.appendChild(this.layerElement),this.globalData.defs.appendChild(t)}else{this.layerElement=document.createElementNS(svgNS,"g");var o=document.createElementNS(svgNS,"mask");o.setAttribute("id",this.layerId),o.setAttribute("mask-type","alpha"),o.appendChild(this.layerElement),this.globalData.defs.appendChild(o)}this.data.hasMask&&(this.maskedElement=this.layerElement)}else this.data.hasMask?(this.layerElement=document.createElementNS(svgNS,"g"),this.data.tt?(this.matteElement=document.createElementNS(svgNS,"g"),this.matteElement.appendChild(this.layerElement),this.appendNodeToParent(this.matteElement)):this.appendNodeToParent(this.layerElement),this.maskedElement=this.layerElement):this.data.tt?(this.matteElement=document.createElementNS(svgNS,"g"),this.matteElement.setAttribute("id",this.layerId),this.appendNodeToParent(this.matteElement),this.layerElement=this.matteElement):this.layerElement=this.parentContainer;!this.data.ln||4!==this.data.ty&&0!==this.data.ty||(this.layerElement===this.parentContainer&&(this.layerElement=document.createElementNS(svgNS,"g"),this.appendNodeToParent(this.layerElement)),this.layerElement.setAttribute("id",this.data.ln)),0!==this.data.ty||!this.finalTransform.op.k&&1===this.finalTransform.op.p||this.layerElement!==this.parentContainer||(this.layerElement=document.createElementNS(svgNS,"g"),this.appendNodeToParent(this.layerElement)),this.layerElement!==this.parentContainer&&(this.placeholder=null)},SVGBaseElement.prototype.renderFrame=function(t){if(3===this.data.ty)return!1;if(this.currentFrameNum===this.lastNum||!this.isVisible)return this.isVisible;this.lastNum=this.currentFrameNum,this.data.hasMask&&this.maskManager.renderFrame(),this.finalTransform.opMdf=this.finalTransform.op.mdf,this.finalTransform.matMdf=this.finalTransform.mProp.mdf,this.finalTransform.opacity=this.finalTransform.op.v,this.firstFrame&&(this.finalTransform.opMdf=!0,this.finalTransform.matMdf=!0);var e,i=this.finalTransform.mat;if(this.hierarchy){var n,r=this.hierarchy.length;for(e=this.finalTransform.mProp.v.props,i.cloneFromProps(e),n=0;r>n;n+=1)this.finalTransform.matMdf=!!this.hierarchy[n].finalTransform.mProp.mdf||this.finalTransform.matMdf,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&&(t?(e=this.finalTransform.mProp.v.props,i.cloneFromProps(e)):i.cloneFromProps(this.finalTransform.mProp.v.props));return t&&(e=t.mat.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]),this.finalTransform.opacity*=t.opacity,this.finalTransform.opMdf=!!t.opMdf||this.finalTransform.opMdf,this.finalTransform.matMdf=!!t.matMdf||this.finalTransform.matMdf),this.data.hasMask?(this.finalTransform.matMdf&&this.layerElement.setAttribute("transform",i.to2dCSS()),this.finalTransform.opMdf&&this.layerElement.setAttribute("opacity",this.finalTransform.opacity)):0===this.data.ty&&this.finalTransform.opMdf&&(this.finalTransform.op.k||1!==this.finalTransform.op.p)&&(this.layerElement.setAttribute("opacity",this.finalTransform.opacity),this.finalTransform.opacity=1),this.isVisible},SVGBaseElement.prototype.destroy=function(){this.layerElement=null,this.parentContainer=null,this.matteElement&&(this.matteElement=null),this.maskManager&&this.maskManager.destroy()},SVGBaseElement.prototype.getDomElement=function(){return this.layerElement},SVGBaseElement.prototype.addMasks=function(t){this.maskManager=new MaskElement(t,this,this.globalData)},SVGBaseElement.prototype.setMatte=function(t){this.matteElement&&this.matteElement.setAttribute("mask","url(#"+t+")")},SVGBaseElement.prototype.hide=function(){},ITextElement.prototype.init=function(){this.parent.init.call(this),this.lettersChangedFlag=!1;var t=this.data;this.renderedLetters=Array.apply(null,{length:t.t.d.l.length}),this.viewData={m:{a:PropertyFactory.getProp(this,t.t.m.a,1,0,this.dynamicProperties)}};var e=this.data.t;if(e.a.length){this.viewData.a=Array.apply(null,{length:e.a.length});var i,n,r,a=e.a.length;for(i=0;a>i;i+=1)r=e.a[i],n={a:{},s:{}},"r"in r.a&&(n.a.r=PropertyFactory.getProp(this,r.a.r,0,degToRads,this.dynamicProperties)),"rx"in r.a&&(n.a.rx=PropertyFactory.getProp(this,r.a.rx,0,degToRads,this.dynamicProperties)),"ry"in r.a&&(n.a.ry=PropertyFactory.getProp(this,r.a.ry,0,degToRads,this.dynamicProperties)),"sk"in r.a&&(n.a.sk=PropertyFactory.getProp(this,r.a.sk,0,degToRads,this.dynamicProperties)),"sa"in r.a&&(n.a.sa=PropertyFactory.getProp(this,r.a.sa,0,degToRads,this.dynamicProperties)),"s"in r.a&&(n.a.s=PropertyFactory.getProp(this,r.a.s,1,.01,this.dynamicProperties)),"a"in r.a&&(n.a.a=PropertyFactory.getProp(this,r.a.a,1,0,this.dynamicProperties)),"o"in r.a&&(n.a.o=PropertyFactory.getProp(this,r.a.o,0,.01,this.dynamicProperties)),"p"in r.a&&(n.a.p=PropertyFactory.getProp(this,r.a.p,1,0,this.dynamicProperties)),"sw"in r.a&&(n.a.sw=PropertyFactory.getProp(this,r.a.sw,0,0,this.dynamicProperties)),"sc"in r.a&&(n.a.sc=PropertyFactory.getProp(this,r.a.sc,1,0,this.dynamicProperties)), "fc"in r.a&&(n.a.fc=PropertyFactory.getProp(this,r.a.fc,1,0,this.dynamicProperties)),"fh"in r.a&&(n.a.fh=PropertyFactory.getProp(this,r.a.fh,0,0,this.dynamicProperties)),"fs"in r.a&&(n.a.fs=PropertyFactory.getProp(this,r.a.fs,0,.01,this.dynamicProperties)),"fb"in r.a&&(n.a.fb=PropertyFactory.getProp(this,r.a.fb,0,.01,this.dynamicProperties)),"t"in r.a&&(n.a.t=PropertyFactory.getProp(this,r.a.t,0,0,this.dynamicProperties)),n.s=PropertyFactory.getTextSelectorProp(this,r.s,this.dynamicProperties),n.s.t=r.s.t,this.viewData.a[i]=n}else this.viewData.a=[];e.p&&"m"in e.p?(this.viewData.p={f:PropertyFactory.getProp(this,e.p.f,0,0,this.dynamicProperties),l:PropertyFactory.getProp(this,e.p.l,0,0,this.dynamicProperties),r:e.p.r,m:this.maskManager.getMaskProperty(e.p.m)},this.maskPath=!0):this.maskPath=!1},ITextElement.prototype.createPathShape=function(t,e){var i,n,r,a,s=e.length,o="";for(i=0;s>i;i+=1){for(r=e[i].ks.k.i.length,a=e[i].ks.k,n=1;r>n;n+=1)1==n&&(o+=" M"+t.applyToPointStringified(a.v[0][0],a.v[0][1])),o+=" C"+t.applyToPointStringified(a.o[n-1][0],a.o[n-1][1])+" "+t.applyToPointStringified(a.i[n][0],a.i[n][1])+" "+t.applyToPointStringified(a.v[n][0],a.v[n][1]);o+=" C"+t.applyToPointStringified(a.o[n-1][0],a.o[n-1][1])+" "+t.applyToPointStringified(a.i[0][0],a.i[0][1])+" "+t.applyToPointStringified(a.v[0][0],a.v[0][1]),o+="z"}return o},ITextElement.prototype.getMeasures=function(){var t,e,i,n,r=this.mHelper,a=this.renderType,s=this.data,o=s.t.d,l=o.l;if(this.maskPath){var c=this.viewData.p.m;if(!this.viewData.p.n||this.viewData.p.mdf){var h=c.v;this.viewData.p.r&&(h=reversePath(h,c.closed));var d={tLength:0,segments:[]};n=h.v.length-1;var p,u=0;for(i=0;n>i;i+=1)p={s:h.v[i],e:h.v[i+1],to:[h.o[i][0]-h.v[i][0],h.o[i][1]-h.v[i][1]],ti:[h.i[i+1][0]-h.v[i+1][0],h.i[i+1][1]-h.v[i+1][1]]},bez.buildBezierData(p),d.tLength+=p.bezierData.segmentLength,d.segments.push(p),u+=p.bezierData.segmentLength;i=n,c.closed&&(p={s:h.v[i],e:h.v[0],to:[h.o[i][0]-h.v[i][0],h.o[i][1]-h.v[i][1]],ti:[h.i[0][0]-h.v[0][0],h.i[0][1]-h.v[0][1]]},bez.buildBezierData(p),d.tLength+=p.bezierData.segmentLength,d.segments.push(p),u+=p.bezierData.segmentLength),this.viewData.p.pi=d}var f,m,g,d=this.viewData.p.pi,v=this.viewData.p.f.v,y=0,b=1,w=0,k=!0,x=d.segments;if(0>v&&c.closed)for(d.tLengthv;)v+=g[b].partialLength,b-=1,0>b&&(y-=1,g=x[y].bezierData.points,b=g.length-1);g=x[y].bezierData.points,m=g[b-1],f=g[b];var E,_,S=f.partialLength}n=l.length,t=0,e=0;var C,T,D,A,P,N=1.2*s.t.d.s*.714,M=!0,I=this.viewData,F=Array.apply(null,{length:n});this.lettersChangedFlag=!1,A=I.a.length;var j,O,L,H,V,R,Q,z,B,$,q,W,Y,X,G,U,Z=-1,K=v,J=y,tt=b,et=-1,it=0;for(i=0;n>i;i+=1)if(r.reset(),R=1,l[i].n)t=0,e+=o.yOffset,e+=M?1:0,v=K,M=!1,it=0,this.maskPath&&(y=J,b=tt,g=x[y].bezierData.points,m=g[b-1],f=g[b],S=f.partialLength,w=0),F[i]=this.emptyProp;else{if(this.maskPath){if(et!==l[i].line){switch(o.j){case 1:v+=u-o.lineWidths[l[i].line];break;case 2:v+=(u-o.lineWidths[l[i].line])/2}et=l[i].line}Z!==l[i].ind&&(l[Z]&&(v+=l[Z].extra),v+=l[i].an/2,Z=l[i].ind),v+=I.m.a.v[0]*l[i].an/200;var nt=0;for(D=0;A>D;D+=1)C=I.a[D].a,"p"in C&&(T=I.a[D].s,O=T.getMult(l[i].anIndexes[D]),nt+=O.length?C.p.v[0]*O[0]:C.p.v[0]*O);for(k=!0;k;)w+S>=v+nt||!g?(E=(v+nt-w)/f.partialLength,H=m.point[0]+(f.point[0]-m.point[0])*E,V=m.point[1]+(f.point[1]-m.point[1])*E,r.translate(0,-(I.m.a.v[1]*N/100)+e),k=!1):g&&(w+=f.partialLength,b+=1,b>=g.length&&(b=0,y+=1,x[y]?g=x[y].bezierData.points:c.closed?(b=0,y=0,g=x[y].bezierData.points):(w-=f.partialLength,g=null)),g&&(m=f,f=g[b],S=f.partialLength));L=l[i].an/2-l[i].add,r.translate(-L,0,0)}else L=l[i].an/2-l[i].add,r.translate(-L,0,0),r.translate(-I.m.a.v[0]*l[i].an/200,-I.m.a.v[1]*N/100,0);for(it+=l[i].l/2,D=0;A>D;D+=1)C=I.a[D].a,"t"in C&&(T=I.a[D].s,O=T.getMult(l[i].anIndexes[D]),this.maskPath?v+=O.length?C.t*O[0]:C.t*O:t+=O.length?C.t.v*O[0]:C.t.v*O);for(it+=l[i].l/2,o.strokeWidthAnim&&(z=s.t.d.sw||0),o.strokeColorAnim&&(Q=s.t.d.sc?[s.t.d.sc[0],s.t.d.sc[1],s.t.d.sc[2]]:[0,0,0]),o.fillColorAnim&&(B=[s.t.d.fc[0],s.t.d.fc[1],s.t.d.fc[2]]),D=0;A>D;D+=1)C=I.a[D].a,"a"in C&&(T=I.a[D].s,O=T.getMult(l[i].anIndexes[D]),O.length?r.translate(-C.a.v[0]*O[0],-C.a.v[1]*O[1],C.a.v[2]*O[2]):r.translate(-C.a.v[0]*O,-C.a.v[1]*O,C.a.v[2]*O));for(D=0;A>D;D+=1)C=I.a[D].a,"s"in C&&(T=I.a[D].s,O=T.getMult(l[i].anIndexes[D]),O.length?r.scale(1+(C.s.v[0]-1)*O[0],1+(C.s.v[1]-1)*O[1],1):r.scale(1+(C.s.v[0]-1)*O,1+(C.s.v[1]-1)*O,1));for(D=0;A>D;D+=1){if(C=I.a[D].a,T=I.a[D].s,O=T.getMult(l[i].anIndexes[D]),"sk"in C&&(O.length?r.skewFromAxis(-C.sk.v*O[0],C.sa.v*O[1]):r.skewFromAxis(-C.sk.v*O,C.sa.v*O)),"r"in C&&r.rotateZ(O.length?-C.r.v*O[2]:-C.r.v*O),"ry"in C&&r.rotateY(O.length?C.ry.v*O[1]:C.ry.v*O),"rx"in C&&r.rotateX(O.length?C.rx.v*O[0]:C.rx.v*O),"o"in C&&(R+=O.length?(C.o.v*O[0]-R)*O[0]:(C.o.v*O-R)*O),o.strokeWidthAnim&&"sw"in C&&(z+=O.length?C.sw.v*O[0]:C.sw.v*O),o.strokeColorAnim&&"sc"in C)for($=0;3>$;$+=1)Q[$]=Math.round(O.length?Q[$]+(C.sc.v[$]-Q[$])*O[0]:Q[$]+(C.sc.v[$]-Q[$])*O);if(o.fillColorAnim){if("fc"in C)for($=0;3>$;$+=1)B[$]=Math.round(O.length?B[$]+(C.fc.v[$]-B[$])*O[0]:B[$]+(C.fc.v[$]-B[$])*O);"fh"in C&&(B=O.length?addHueToRGB(B,C.fh.v*O[0]):addHueToRGB(B,C.fh.v*O)),"fs"in C&&(B=O.length?addSaturationToRGB(B,C.fs.v*O[0]):addSaturationToRGB(B,C.fs.v*O)),"fb"in C&&(B=O.length?addBrightnessToRGB(B,C.fb.v*O[0]):addBrightnessToRGB(B,C.fb.v*O))}}for(D=0;A>D;D+=1)C=I.a[D].a,"p"in C&&(T=I.a[D].s,O=T.getMult(l[i].anIndexes[D]),this.maskPath?O.length?r.translate(0,C.p.v[1]*O[0],-C.p.v[2]*O[1]):r.translate(0,C.p.v[1]*O,-C.p.v[2]*O):O.length?r.translate(C.p.v[0]*O[0],C.p.v[1]*O[1],-C.p.v[2]*O[2]):r.translate(C.p.v[0]*O,C.p.v[1]*O,-C.p.v[2]*O));if(o.strokeWidthAnim&&(q=0>z?0:z),o.strokeColorAnim&&(W="rgb("+Q[0]+","+Q[1]+","+Q[2]+")"),o.fillColorAnim&&(Y="rgb("+B[0]+","+B[1]+","+B[2]+")"),this.maskPath){if(s.t.p.p){_=(f.point[1]-m.point[1])/(f.point[0]-m.point[0]);var rt=180*Math.atan(_)/Math.PI;f.point[0]r;r+=1){if(this.globalData.fontManager.chars?d&&0!==r||(o=document.createElementNS(svgNS,"path")):o=document.createElementNS(svgNS,"text"),o.setAttribute("stroke-linecap","butt"),o.setAttribute("stroke-linejoin","round"),o.setAttribute("stroke-miterlimit","4"),d&&s[r].n&&(p=0,u+=t.yOffset,u+=g?1:0,g=!1),c.reset(),this.globalData.fontManager.chars&&c.scale(t.s/100,t.s/100),d){switch(t.ps&&c.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:c.translate(t.justifyOffset+(m-f[s[r].line]),0,0);break;case 2:c.translate(t.justifyOffset+(m-f[s[r].line])/2,0,0)}c.translate(p,u,0)}if(this.globalData.fontManager.chars){var v,y=this.globalData.fontManager.getCharData(t.t.charAt(r),e.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily);v=y?y.data:null,v&&v.shapes&&(l=v.shapes[0].it,d||(h=""),h+=this.createPathShape(c,l),d||o.setAttribute("d",h)),d||this.innerElem.appendChild(o)}else o.textContent=s[r].val,o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.innerElem.appendChild(o),d&&o.setAttribute("transform",c.to2dCSS());d&&(p+=s[r].l),this.textSpans.push(o)}d&&this.globalData.fontManager.chars&&(o.setAttribute("d",h),this.innerElem.appendChild(o))}},SVGTextElement.prototype.hide=function(){this.hidden||(this.innerElem.style.display="none",this.hidden=!0)},SVGTextElement.prototype.renderFrame=function(t){var e=this.parent.renderFrame.call(this,t);if(e===!1)return void this.hide();if(this.hidden&&(this.hidden=!1,this.innerElem.style.display="block"),this.data.hasMask||(this.finalTransform.matMdf&&this.innerElem.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform.opMdf&&this.innerElem.setAttribute("opacity",this.finalTransform.opacity)),!this.data.singleShape&&(this.getMeasures(),this.lettersChangedFlag)){var i,n,r=this.renderedLetters,a=this.data.t.d.l;n=a.length;var s;for(i=0;n>i;i+=1)a[i].n||(s=r[i],this.textSpans[i].setAttribute("transform",s.m),this.textSpans[i].setAttribute("opacity",s.o),s.sw&&this.textSpans[i].setAttribute("stroke-width",s.sw),s.sc&&this.textSpans[i].setAttribute("stroke",s.sc),s.fc&&this.textSpans[i].setAttribute("fill",s.fc));this.firstFrame&&(this.firstFrame=!1)}},SVGTextElement.prototype.destroy=function(){this.parent.destroy.call(),this.innerElem=null};var PlaceHolderElement=function(t,e,i){if(this.data=t,this.globalData=i,e){this.parentContainer=e;var n=document.createElementNS(svgNS,"g");n.setAttribute("id",this.data.id),e.appendChild(n),this.phElement=n}this.layerId="ly_"+randomString(10)};PlaceHolderElement.prototype.prepareFrame=function(){},PlaceHolderElement.prototype.renderFrame=function(){},PlaceHolderElement.prototype.draw=function(){},createElement(SVGBaseElement,ICompElement),extendPrototype(ExpressionComp,ICompElement),ICompElement.prototype.getComposingElement=function(){return this.layerElement},ICompElement.prototype.hide=function(){if(!this.hidden){var t,e=this.elements.length;for(t=0;e>t;t+=1)this.elements[t].hide();this.hidden=!0}},ICompElement.prototype.prepareFrame=function(t){if(this.parent.prepareFrame.call(this,t),this.isVisible!==!1){var e=t;this.tm&&(e=this.tm.v,e===this.data.op&&(e=this.data.op-1)),this.renderedFrame=e;var i,n=this.elements.length;for(i=0;n>i;i+=1)this.elements[i].prepareFrame(e-this.layers[i].st)}},ICompElement.prototype.renderFrame=function(t){var e,i=this.parent.renderFrame.call(this,t),n=this.layers.length;if(i===!1)return void this.hide();for(this.hidden=!1,e=0;n>e;e+=1)this.data.hasMask?this.elements[e].renderFrame():this.elements[e].renderFrame(this.finalTransform);this.firstFrame&&(this.firstFrame=!1)},ICompElement.prototype.setElements=function(t){this.elements=t},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroy=function(){this.parent.destroy.call();var t,e=this.layers.length;for(t=0;e>t;t+=1)this.elements[t].destroy()},createElement(SVGBaseElement,IImageElement),IImageElement.prototype.createElements=function(){var t=this,e=function(){t.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t.path+t.assetData.p),t.maskedElement=t.innerElem},i=new Image;i.addEventListener("load",e,!1),i.addEventListener("error",e,!1),i.src=this.path+this.assetData.p,this.parent.createElements.call(this),this.innerElem=document.createElementNS(svgNS,"image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.layerElement===this.parentContainer?this.appendNodeToParent(this.innerElem):this.layerElement.appendChild(this.innerElem),this.data.ln&&this.innerElem.setAttribute("id",this.data.ln)},IImageElement.prototype.hide=function(){this.hidden||(this.innerElem.setAttribute("visibility","hidden"),this.hidden=!0)},IImageElement.prototype.renderFrame=function(t){var e=this.parent.renderFrame.call(this,t);return e===!1?void this.hide():(this.hidden&&(this.hidden=!1,this.innerElem.setAttribute("visibility","visible")),this.data.hasMask||((this.finalTransform.matMdf||this.firstFrame)&&this.innerElem.setAttribute("transform",this.finalTransform.mat.to2dCSS()),(this.finalTransform.opMdf||this.firstFrame)&&this.innerElem.setAttribute("opacity",this.finalTransform.opacity)),void(this.firstFrame&&(this.firstFrame=!1)))},IImageElement.prototype.destroy=function(){this.parent.destroy.call(),this.innerElem=null},createElement(SVGBaseElement,IShapeElement),IShapeElement.prototype.lcEnum={1:"butt",2:"round",3:"butt"},IShapeElement.prototype.ljEnum={1:"miter",2:"round",3:"butt"},IShapeElement.prototype.transformHelper={opacity:1,mat:new Matrix,matMdf:!1,opMdf:!1},IShapeElement.prototype.createElements=function(){this.parent.createElements.call(this),this.searchShapes(this.shapesData,this.viewData,this.dynamicProperties,[]),this.layerElement.appendChild(this.shapesContainer),styleUnselectableDiv(this.layerElement),styleUnselectableDiv(this.shapesContainer),this.buildExpressionInterface()},IShapeElement.prototype.searchShapes=function(t,e,i,n){var r,a,s,o=t.length-1,l=[],c=[];for(r=o;r>=0;r-=1)if("fl"==t[r].ty||"st"==t[r].ty){e[r]={};var h;if(e[r].c=PropertyFactory.getProp(this,t[r].c,1,null,i),e[r].o=PropertyFactory.getProp(this,t[r].o,0,.01,i),"st"==t[r].ty){if(h=document.createElementNS(svgNS,"g"),h.style.strokeLinecap=this.lcEnum[t[r].lc]||"round",h.style.strokeLinejoin=this.ljEnum[t[r].lj]||"round",h.style.fillOpacity=0,1==t[r].lj&&(h.style.strokeMiterlimit=t[r].ml),e[r].c.k||(h.style.stroke="rgb("+e[r].c.v[0]+","+e[r].c.v[1]+","+e[r].c.v[2]+")"),e[r].o.k||(h.style.strokeOpacity=e[r].o.v),e[r].w=PropertyFactory.getProp(this,t[r].w,0,null,i),e[r].w.k||(h.style.strokeWidth=e[r].w.v),t[r].d){var d=PropertyFactory.getDashProp(this,t[r].d,"svg",i);d.k||(h.style.strokeDasharray=d.dasharray,h.style.strokeDashoffset=d.dashoffset),e[r].d=d}}else h=document.createElementNS(svgNS,"path"),e[r].c.k||(h.style.fill="rgb("+e[r].c.v[0]+","+e[r].c.v[1]+","+e[r].c.v[2]+")"),e[r].o.k||(h.style.fillOpacity=e[r].o.v);this.shapesContainer.appendChild(h),this.stylesList.push({pathElement:h,type:t[r].ty,d:"",ld:"",mdf:!1}),e[r].style=this.stylesList[this.stylesList.length-1],l.push(e[r].style)}else if("gr"==t[r].ty)e[r]={it:[]},this.searchShapes(t[r].it,e[r].it,i,n);else if("tr"==t[r].ty)e[r]={transform:{mat:new Matrix,opacity:1,matMdf:!1,opMdf:!1,op:PropertyFactory.getProp(this,t[r].o,0,.01,i),mProps:PropertyFactory.getProp(this,t[r],2,null,i)},elements:[]};else if("sh"==t[r].ty||"rc"==t[r].ty||"el"==t[r].ty||"sr"==t[r].ty){e[r]={elements:[],styles:[],lStr:""};var p=4;"rc"==t[r].ty?p=5:"el"==t[r].ty?p=6:"sr"==t[r].ty&&(p=7),n.length&&(t[r].trimmed=!0),e[r].sh=PropertyFactory.getShapeProp(this,t[r],p,i,n),s=this.stylesList.length;var u,f=!1,m=!1;for(a=0;s>a;a+=1)this.stylesList[a].closed||("st"===this.stylesList[a].type?(f=!0,u=document.createElementNS(svgNS,"path"),this.stylesList[a].pathElement.appendChild(u),e[r].elements.push({ty:this.stylesList[a].type,el:u})):(m=!0,e[r].elements.push({ty:this.stylesList[a].type,st:this.stylesList[a]})));e[r].st=f,e[r].fl=m}else if("tm"==t[r].ty){var g={closed:!1,trimProp:PropertyFactory.getProp(this,t[r],7,null,i)};e[r]={tr:g.trimProp},n.push(g),c.push(g)}for(o=l.length,r=0;o>r;r+=1)l[r].closed=!0;for(o=c.length,r=0;o>r;r+=1)c[r].closed=!0},IShapeElement.prototype.renderFrame=function(t){var e=this.parent.renderFrame.call(this,t);return e===!1?void this.hide():(this.hidden=!1,this.finalTransform.matMdf&&!this.data.hasMask&&this.shapesContainer.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.transformHelper.opacity=this.finalTransform.opacity,this.transformHelper.matMdf=!1,this.transformHelper.opMdf=this.finalTransform.opMdf,void this.renderShape(this.transformHelper,null,null,!0))},IShapeElement.prototype.hide=function(){if(!this.hidden){var t,e=this.stylesList.length;for(t=e-1;t>=0;t-=1)"0"!==this.stylesList[t].ld&&(this.stylesList[t].ld="0",this.stylesList[t].pathElement.style.display="none",this.stylesList[t].pathElement.parentNode&&(this.stylesList[t].parent=this.stylesList[t].pathElement.parentNode));this.hidden=!0}},IShapeElement.prototype.renderShape=function(t,e,i,n){var r,a;if(!e)for(e=this.shapesData,a=this.stylesList.length,r=0;a>r;r+=1)this.stylesList[r].d="",this.stylesList[r].mdf=!1;i||(i=this.viewData),a=e.length-1;var s,o;for(s=t,r=a;r>=0;r-=1)if("tr"==e[r].ty){s=i[r].transform;var l=i[r].transform.mProps.v.props;if(s.matMdf=s.mProps.mdf,s.opMdf=s.op.mdf,o=s.mat,o.cloneFromProps(l),t){var c=t.mat.props;s.opacity=t.opacity,s.opacity*=i[r].transform.op.v,s.matMdf=!!t.matMdf||s.matMdf,s.opMdf=!!t.opMdf||s.opMdf,o.transform(c[0],c[1],c[2],c[3],c[4],c[5],c[6],c[7],c[8],c[9],c[10],c[11],c[12],c[13],c[14],c[15])}else s.opacity=s.op.o}else"sh"==e[r].ty||"el"==e[r].ty||"rc"==e[r].ty||"sr"==e[r].ty?this.renderPath(e[r],i[r],s):"fl"==e[r].ty?this.renderFill(e[r],i[r],s):"st"==e[r].ty?this.renderStroke(e[r],i[r],s):"gr"==e[r].ty?this.renderShape(s,e[r].it,i[r].it):"tm"==e[r].ty;if(n){for(a=this.stylesList.length,r=0;a>r;r+=1)"0"===this.stylesList[r].ld&&(this.stylesList[r].ld="1",this.stylesList[r].pathElement.style.display="block"),"fl"===this.stylesList[r].type&&(this.stylesList[r].mdf||this.firstFrame)&&this.stylesList[r].pathElement.setAttribute("d",this.stylesList[r].d);this.firstFrame&&(this.firstFrame=!1)}},IShapeElement.prototype.renderPath=function(t,e,i){var n,r,a=e.sh.v,s="";if(a.v){n=a.v.length;var o=i.matMdf||e.sh.mdf||this.firstFrame;if(o){var l=a.s?a.s:[];for(r=1;n>r;r+=1)l[r-1]?s+=" M"+i.mat.applyToPointStringified(l[r-1][0],l[r-1][1]):1==r&&(s+=" M"+i.mat.applyToPointStringified(a.v[0][0],a.v[0][1])),s+=" C"+i.mat.applyToPointStringified(a.o[r-1][0],a.o[r-1][1])+" "+i.mat.applyToPointStringified(a.i[r][0],a.i[r][1])+" "+i.mat.applyToPointStringified(a.v[r][0],a.v[r][1]);1==n&&(s+=l[0]?" M"+i.mat.applyToPointStringified(l[0][0],l[0][1]):" M"+i.mat.applyToPointStringified(a.v[0][0],a.v[0][1])),n&&t.closed&&(!t.trimmed||a.c)&&(s+=" C"+i.mat.applyToPointStringified(a.o[r-1][0],a.o[r-1][1])+" "+i.mat.applyToPointStringified(a.i[0][0],a.i[0][1])+" "+i.mat.applyToPointStringified(a.v[0][0],a.v[0][1]),s+="z"),e.lStr=s}else s=e.lStr;for(n=e.elements.length,r=0;n>r;r+=1)"st"===e.elements[r].ty?(i.matMdf||e.sh.mdf||this.firstFrame)&&e.elements[r].el.setAttribute("d",s):(e.elements[r].st.mdf=!!o||e.elements[r].st.mdf,e.elements[r].st.d+=s)}},IShapeElement.prototype.renderFill=function(t,e,i){var n=e.style;(e.c.mdf||this.firstFrame)&&(n.pathElement.style.fill="rgb("+bm_floor(e.c.v[0])+","+bm_floor(e.c.v[1])+","+bm_floor(e.c.v[2])+")"),(e.o.mdf||i.opMdf||this.firstFrame)&&(n.pathElement.style.fillOpacity=e.o.v*i.opacity)},IShapeElement.prototype.renderStroke=function(t,e,i){var n=e.style,r=e.d;r&&r.k&&(r.mdf||this.firstFrame)&&(n.pathElement.style.strokeDasharray=r.dasharray,n.pathElement.style.strokeDashoffset=r.dashoffset),(e.c.mdf||this.firstFrame)&&(n.pathElement.style.stroke="rgb("+bm_floor(e.c.v[0])+","+bm_floor(e.c.v[1])+","+bm_floor(e.c.v[2])+")"),(e.o.mdf||i.opMdf||this.firstFrame)&&(n.pathElement.style.strokeOpacity=e.o.v*i.opacity),(e.w.mdf||this.firstFrame)&&(n.pathElement.style.strokeWidth=e.w.v)},IShapeElement.prototype.destroy=function(){this.parent.destroy.call(),this.shapeData=null,this.viewData=null,this.parentContainer=null,this.placeholder=null},extendPrototype(ShapeInterface,IShapeElement),createElement(SVGBaseElement,ISolidElement),ISolidElement.prototype.createElements=function(){this.parent.createElements.call(this);var t=document.createElementNS(svgNS,"rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement===this.parentContainer?this.appendNodeToParent(t):this.layerElement.appendChild(t),this.data.ln&&this.innerElem.setAttribute("id",this.data.ln),this.innerElem=t},ISolidElement.prototype.hide=IImageElement.prototype.hide,ISolidElement.prototype.renderFrame=IImageElement.prototype.renderFrame,ISolidElement.prototype.destroy=IImageElement.prototype.destroy,createElement(BaseElement,CVBaseElement),CVBaseElement.prototype.createElements=function(){},CVBaseElement.prototype.renderFrame=function(t){if(3===this.data.ty)return!1;if(!this.isVisible)return this.isVisible;this.finalTransform.opMdf=this.finalTransform.op.mdf,this.finalTransform.matMdf=this.finalTransform.mProp.mdf,this.finalTransform.opacity=this.finalTransform.op.v;var e,i=this.finalTransform.mat;if(this.hierarchy){var n,r=this.hierarchy.length;for(e=this.finalTransform.mProp.v.props,i.cloneFromProps(e),n=0;r>n;n+=1)this.finalTransform.matMdf=!!this.hierarchy[n].finalTransform.mProp.mdf||this.finalTransform.matMdf,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 t?(e=this.finalTransform.mProp.v.props,i.cloneFromProps(e)):i.cloneFromProps(this.finalTransform.mProp.v.props);return t&&(e=t.mat.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]),this.finalTransform.opacity*=t.opacity,this.finalTransform.opMdf=!!t.opMdf||this.finalTransform.opMdf,this.finalTransform.matMdf=!!t.matMdf||this.finalTransform.matMdf),this.data.hasMask&&(this.globalData.renderer.save(!0),this.maskManager.renderFrame(i)),this.isVisible},CVBaseElement.prototype.getCurrentAnimData=function(){return this.currentAnimData},CVBaseElement.prototype.addMasks=function(t){this.maskManager=new CVMaskElement(t,this,this.globalData)},CVBaseElement.prototype.destroy=function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager&&this.maskManager.destroy()},CVBaseElement.prototype.mHelper=new Matrix,createElement(CVBaseElement,CVCompElement),CVCompElement.prototype.prepareFrame=function(t){if(this.parent.prepareFrame.call(this,t),this.isVisible!==!1){var e=t;this.tm&&(e=this.tm.v,e===this.data.op&&(e=this.data.op-1)),this.renderedFrame=e;var i,n=this.elements.length;for(i=0;n>i;i+=1)this.elements[i].prepareFrame(e-this.layers[i].st)}},CVCompElement.prototype.renderFrame=function(t){if(this.parent.renderFrame.call(this,t)!==!1){var e,i=this.layers.length;for(e=i-1;e>=0;e-=1)this.elements[e].renderFrame(this.finalTransform);this.data.hasMask&&this.globalData.renderer.restore(!0),this.firstFrame&&(this.firstFrame=!1)}},CVCompElement.prototype.setElements=function(t){this.elements=t},CVCompElement.prototype.getElements=function(){return this.elements},CVCompElement.prototype.destroy=function(){var t,e=this.layers.length;for(t=e-1;t>=0;t-=1)this.elements[t].destroy();this.layers=null,this.elements=null,this.parent.destroy.call()},createElement(CVBaseElement,CVImageElement),CVImageElement.prototype.createElements=function(){var t=this,e=function(){t.animationItem.elementLoaded()},i=function(){t.failed=!0,t.animationItem.elementLoaded()};this.img=new Image,this.img.addEventListener("load",e,!1),this.img.addEventListener("error",i,!1),this.img.src=this.path+this.assetData.p,this.parent.createElements.call(this)},CVImageElement.prototype.renderFrame=function(t){if(!this.failed&&this.parent.renderFrame.call(this,t)!==!1){var e=this.canvasContext;this.globalData.renderer.save();var i=this.finalTransform.mat.props;this.globalData.renderer.ctxTransform(i),this.globalData.renderer.ctxOpacity(this.finalTransform.opacity),e.drawImage(this.img,0,0),this.globalData.renderer.restore(this.data.hasMask),this.firstFrame&&(this.firstFrame=!1)}},CVImageElement.prototype.destroy=function(){this.img=null,this.animationItem=null,this.parent.destroy.call()},CVMaskElement.prototype.getMaskProperty=function(t){return this.viewData[t]},CVMaskElement.prototype.prepareFrame=function(t){var e,i=this.dynamicProperties.length;for(e=0;i>e;e+=1)this.dynamicProperties[e].getValue(t)},CVMaskElement.prototype.renderFrame=function(t){var e,i,n,r,a,s=this.ctx,o=this.data.masksProperties.length,l=!1;for(e=0;o>e;e++)if("n"!==this.masksProperties[e].mode){l===!1&&(s.beginPath(),l=!0),this.masksProperties[e].inv&&(s.moveTo(0,0),s.lineTo(this.globalData.compWidth,0),s.lineTo(this.globalData.compWidth,this.globalData.compHeight),s.lineTo(0,this.globalData.compHeight),s.lineTo(0,0)),a=this.viewData[e].v,i=t.applyToPointArray(a.v[0][0],a.v[0][1],0),s.moveTo(i[0],i[1]);var c,h=a.v.length;for(c=1;h>c;c++)i=t.applyToPointArray(a.o[c-1][0],a.o[c-1][1],0),n=t.applyToPointArray(a.i[c][0],a.i[c][1],0),r=t.applyToPointArray(a.v[c][0],a.v[c][1],0),s.bezierCurveTo(i[0],i[1],n[0],n[1],r[0],r[1]);i=t.applyToPointArray(a.o[c-1][0],a.o[c-1][1],0),n=t.applyToPointArray(a.i[0][0],a.i[0][1],0),r=t.applyToPointArray(a.v[0][0],a.v[0][1],0),s.bezierCurveTo(i[0],i[1],n[0],n[1],r[0],r[1])}l&&s.clip()},CVMaskElement.prototype.getMask=function(t){for(var e=0,i=this.masksProperties.length;i>e;){if(this.masksProperties[e].nm===t)return{maskPath:this.viewData[e].pv};e+=1}},CVMaskElement.prototype.destroy=function(){this.ctx=null},createElement(CVBaseElement,CVShapeElement),CVShapeElement.prototype.lcEnum={1:"butt",2:"round",3:"butt"},CVShapeElement.prototype.ljEnum={1:"miter",2:"round",3:"butt"},CVShapeElement.prototype.transformHelper={opacity:1,mat:new Matrix,matMdf:!1,opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createElements=function(){this.parent.createElements.call(this),this.searchShapes(this.shapesData,this.viewData,this.dynamicProperties,[]),this.buildExpressionInterface()},CVShapeElement.prototype.searchShapes=function(t,e,i,n){var r,a,s,o,l=t.length-1,c=[],h=[];for(r=l;r>=0;r-=1)if("fl"==t[r].ty||"st"==t[r].ty){if(o={type:t[r].ty,elements:[]},e[r]={},e[r].c=PropertyFactory.getProp(this,t[r].c,1,null,i),e[r].c.k||(o.co="rgb("+bm_floor(e[r].c.v[0])+","+bm_floor(e[r].c.v[1])+","+bm_floor(e[r].c.v[2])+")"),e[r].o=PropertyFactory.getProp(this,t[r].o,0,.01,i),"st"==t[r].ty&&(o.lc=this.lcEnum[t[r].lc]||"round",o.lj=this.ljEnum[t[r].lj]||"round",1==t[r].lj&&(o.ml=t[r].ml),e[r].w=PropertyFactory.getProp(this,t[r].w,0,null,i),e[r].w.k||(o.wi=e[r].w.v),t[r].d)){var d=PropertyFactory.getDashProp(this,t[r].d,"canvas",i);e[r].d=d,e[r].d.k||(o.da=e[r].d.dasharray,o["do"]=e[r].d.dashoffset)}this.stylesList.push(o),e[r].style=o,c.push(e[r].style)}else if("gr"==t[r].ty)e[r]={it:[]},this.searchShapes(t[r].it,e[r].it,i,n);else if("tr"==t[r].ty)e[r]={transform:{mat:new Matrix,opacity:1,matMdf:!1,opMdf:!1,op:PropertyFactory.getProp(this,t[r].o,0,.01,i),mProps:PropertyFactory.getProp(this,t[r],2,null,i)},elements:[]};else if("sh"==t[r].ty||"rc"==t[r].ty||"el"==t[r].ty||"sr"==t[r].ty){e[r]={nodes:[],trNodes:[],tr:[0,0,0,0,0,0]};var p=4;"rc"==t[r].ty?p=5:"el"==t[r].ty?p=6:"sr"==t[r].ty&&(p=7),n.length&&(t[r].trimmed=!0),e[r].sh=PropertyFactory.getShapeProp(this,t[r],p,i,n),s=this.stylesList.length;var u=!1,f=!1;for(a=0;s>a;a+=1)this.stylesList[a].closed||(this.stylesList[a].elements.push(e[r]),"st"===this.stylesList[a].type?u=!0:f=!0);e[r].st=u,e[r].fl=f}else if("tm"==t[r].ty){var m={closed:!1,trimProp:PropertyFactory.getProp(this,t[r],7,null,i)};n.push(m),h.push(m)}for(l=c.length,r=0;l>r;r+=1)c[r].closed=!0;for(l=h.length,r=0;l>r;r+=1)h[r].closed=!0},CVShapeElement.prototype.renderFrame=function(t){this.parent.renderFrame.call(this,t)!==!1&&(this.transformHelper.mat.reset(),this.transformHelper.opacity=this.finalTransform.opacity,this.transformHelper.matMdf=!1,this.transformHelper.opMdf=this.finalTransform.opMdf,this.renderShape(this.transformHelper,null,null,!0),this.data.hasMask&&this.globalData.renderer.restore(!0))},CVShapeElement.prototype.renderShape=function(t,e,i,n){var r,a;if(!e)for(e=this.shapesData,a=this.stylesList.length,r=0;a>r;r+=1)this.stylesList[r].d="",this.stylesList[r].mdf=!1;i||(i=this.viewData),a=e.length-1;var s,o;for(s=t,r=a;r>=0;r-=1)if("tr"==e[r].ty){s=i[r].transform;var l=i[r].transform.mProps.v.props;if(s.matMdf=s.mProps.mdf,s.opMdf=s.op.mdf,o=s.mat,o.cloneFromProps(l),t){var c=t.mat.props;s.opacity=t.opacity,s.opacity*=i[r].transform.op.v,s.matMdf=!!t.matMdf||s.matMdf,s.opMdf=!!t.opMdf||s.opMdf,o.transform(c[0],c[1],c[2],c[3],c[4],c[5],c[6],c[7],c[8],c[9],c[10],c[11],c[12],c[13],c[14],c[15])}else s.opacity=s.op.o}else"sh"==e[r].ty||"el"==e[r].ty||"rc"==e[r].ty||"sr"==e[r].ty?this.renderPath(e[r],i[r],s):"fl"==e[r].ty?this.renderFill(e[r],i[r],s):"st"==e[r].ty?this.renderStroke(e[r],i[r],s):"gr"==e[r].ty?this.renderShape(s,e[r].it,i[r].it):"tm"==e[r].ty;if(n){a=this.stylesList.length;var h,d,p,u,f,m,g,v=this.globalData.renderer,y=this.globalData.canvasContext;for(v.save(),v.ctxTransform(this.finalTransform.mat.props),r=0;a>r;r+=1)if(g=this.stylesList[r].type,"st"!==g||0!==this.stylesList[r].wi){for(v.save(),f=this.stylesList[r].elements,d=f.length,"st"===g?(y.strokeStyle=this.stylesList[r].co,y.lineWidth=this.stylesList[r].wi,y.lineCap=this.stylesList[r].lc,y.lineJoin=this.stylesList[r].lj,y.miterLimit=this.stylesList[r].ml||0):y.fillStyle=this.stylesList[r].co,v.ctxOpacity(this.stylesList[r].coOp),"st"!==g&&y.beginPath(),h=0;d>h;h+=1){for("st"===g&&(y.beginPath(),this.stylesList[r].da?(y.setLineDash(this.stylesList[r].da),y.lineDashOffset=this.stylesList[r]["do"],this.globalData.isDashed=!0):this.globalData.isDashed&&(y.setLineDash(this.dashResetter),this.globalData.isDashed=!1)),m=f[h].trNodes,u=m.length,p=0;u>p;p+=1)"m"==m[p].t?y.moveTo(m[p].p[0],m[p].p[1]):"c"==m[p].t?y.bezierCurveTo(m[p].p1[0],m[p].p1[1],m[p].p2[0],m[p].p2[1],m[p].p3[0],m[p].p3[1]):y.closePath();"st"===g&&y.stroke()}"st"!==g&&y.fill(),v.restore()}v.restore(),this.firstFrame&&(this.firstFrame=!1)}},CVShapeElement.prototype.renderPath=function(t,e,i){var n,r,a=e.sh.v;if(a.v){n=a.v.length;var s=i.matMdf||e.sh.mdf||this.firstFrame;if(s){var o=e.trNodes;o.length=0;var l=a.s?a.s:[];for(r=1;n>r;r+=1)l[r-1]?o.push({t:"m",p:i.mat.applyToPointArray(l[r-1][0],l[r-1][1],0)}):1==r&&o.push({t:"m",p:i.mat.applyToPointArray(a.v[0][0],a.v[0][1],0)}),o.push({t:"c",p1:i.mat.applyToPointArray(a.o[r-1][0],a.o[r-1][1],0),p2:i.mat.applyToPointArray(a.i[r][0],a.i[r][1],0),p3:i.mat.applyToPointArray(a.v[r][0],a.v[r][1],0)});if(1==n&&o.push(l[0]?{t:"m",p:i.mat.applyToPointArray(l[0][0],l[0][1],0)}:{t:"m",p:i.mat.applyToPointArray(a.v[0][0],a.v[0][1],0)}),n&&t.closed&&(!t.trimmed||a.c)&&(o.push({t:"c",p1:i.mat.applyToPointArray(a.o[r-1][0],a.o[r-1][1],0),p2:i.mat.applyToPointArray(a.i[0][0],a.i[0][1],0),p3:i.mat.applyToPointArray(a.v[0][0],a.v[0][1],0)}),o.push({t:"z"})),e.st)for(r=0;16>r;r+=1)e.tr[r]=i.mat.props[r];e.trNodes=o}}},CVShapeElement.prototype.renderFill=function(t,e,i){ var n=e.style;(e.c.mdf||this.firstFrame)&&(n.co="rgb("+bm_floor(e.c.v[0])+","+bm_floor(e.c.v[1])+","+bm_floor(e.c.v[2])+")"),(e.o.mdf||i.opMdf||this.firstFrame)&&(n.coOp=e.o.v*i.opacity)},CVShapeElement.prototype.renderStroke=function(t,e,i){var n=e.style,r=e.d;r&&(r.mdf||this.firstFrame)&&(n.da=r.dasharray,n["do"]=r.dashoffset),(e.c.mdf||this.firstFrame)&&(n.co="rgb("+bm_floor(e.c.v[0])+","+bm_floor(e.c.v[1])+","+bm_floor(e.c.v[2])+")"),(e.o.mdf||i.opMdf||this.firstFrame)&&(n.coOp=e.o.v*i.opacity),(e.w.mdf||this.firstFrame)&&(n.wi=e.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.viewData.length=0,this.parent.destroy.call()},extendPrototype(ShapeInterface,CVShapeElement),createElement(CVBaseElement,CVSolidElement),CVSolidElement.prototype.renderFrame=function(t){if(this.parent.renderFrame.call(this,t)!==!1){var e=this.canvasContext;this.globalData.renderer.save();var i=this.finalTransform.mat.props;this.globalData.renderer.ctxTransform(i),this.globalData.renderer.ctxOpacity(this.finalTransform.opacity),e.fillStyle=this.data.sc,e.fillRect(0,0,this.data.sw,this.data.sh),this.globalData.renderer.restore(this.data.hasMask),this.firstFrame&&(this.firstFrame=!1)}},createElement(CVBaseElement,CVTextElement),CVTextElement.prototype.init=ITextElement.prototype.init,CVTextElement.prototype.getMeasures=ITextElement.prototype.getMeasures,CVTextElement.prototype.getMult=ITextElement.prototype.getMult,CVTextElement.prototype.tHelper=document.createElement("canvas").getContext("2d"),CVTextElement.prototype.createElements=function(){this.parent.createElements.call(this);var t=this.data.t.d,e=!1;t.fc?(e=!0,this.values.fill="rgb("+t.fc[0]+","+t.fc[1]+","+t.fc[2]+")"):this.values.fill="rgba(0,0,0,0)",this.fill=e;var i=!1;t.sc&&(i=!0,this.values.stroke="rgb("+t.sc[0]+","+t.sc[1]+","+t.sc[2]+")",this.values.sWidth=t.sw);var n,r,a=this.globalData.fontManager.getFontByName(t.f),s=t.l,o=this.mHelper;this.stroke=i,this.values.fValue=t.s+"px "+this.globalData.fontManager.getFontByName(t.f).fFamily,r=t.t.length,this.tHelper.font=this.values.fValue;var l,c,h,d,p,u,f,m,g,v,y=this.data.singleShape;if(y)var b=0,w=0,k=t.lineWidths,x=t.boxWidth,E=!0;for(n=0;r>n;n+=1){l=this.globalData.fontManager.getCharData(t.t.charAt(n),a.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily);var c;if(c=l?l.data:null,o.reset(),y&&s[n].n&&(b=0,w+=t.yOffset,w+=E?1:0,E=!1),c&&c.shapes){if(p=c.shapes[0].it,f=p.length,o.scale(t.s/100,t.s/100),y){switch(t.ps&&o.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:o.translate(t.justifyOffset+(x-k[s[n].line]),0,0);break;case 2:o.translate(t.justifyOffset+(x-k[s[n].line])/2,0,0)}o.translate(b,w,0)}for(g=new Array(f),u=0;f>u;u+=1){for(d=p[u].ks.k.i.length,m=p[u].ks.k,v=[],h=1;d>h;h+=1)1==h&&v.push(o.applyToX(m.v[0][0],m.v[0][1],0),o.applyToY(m.v[0][0],m.v[0][1],0)),v.push(o.applyToX(m.o[h-1][0],m.o[h-1][1],0),o.applyToY(m.o[h-1][0],m.o[h-1][1],0),o.applyToX(m.i[h][0],m.i[h][1],0),o.applyToY(m.i[h][0],m.i[h][1],0),o.applyToX(m.v[h][0],m.v[h][1],0),o.applyToY(m.v[h][0],m.v[h][1],0));v.push(o.applyToX(m.o[h-1][0],m.o[h-1][1],0),o.applyToY(m.o[h-1][0],m.o[h-1][1],0),o.applyToX(m.i[0][0],m.i[0][1],0),o.applyToY(m.i[0][0],m.i[0][1],0),o.applyToX(m.v[0][0],m.v[0][1],0),o.applyToY(m.v[0][0],m.v[0][1],0)),g[u]=v}}else g=[];y&&(b+=s[n].l),this.textSpans.push({elem:g})}},CVTextElement.prototype.renderFrame=function(t){if(this.parent.renderFrame.call(this,t)!==!1){var e=this.canvasContext,i=this.finalTransform.mat.props;this.globalData.renderer.save(),this.globalData.renderer.ctxTransform(i),this.globalData.renderer.ctxOpacity(this.finalTransform.opacity),e.font=this.values.fValue,e.lineCap="butt",e.lineJoin="miter",e.miterLimit=4,this.data.singleShape||this.getMeasures();var n,r,a,s,o,l,c=this.renderedLetters,h=this.data.t.d.l;r=h.length;var d,p,u,f=null,m=null,g=null;for(n=0;r>n;n+=1)if(!h[n].n){if(d=c[n],d&&(this.globalData.renderer.save(),this.globalData.renderer.ctxTransform(d.props),this.globalData.renderer.ctxOpacity(d.o)),this.fill){for(d&&d.fc?f!==d.fc&&(f=d.fc,e.fillStyle=d.fc):f!==this.values.fill&&(f=this.values.fill,e.fillStyle=this.values.fill),p=this.textSpans[n].elem,s=p.length,this.globalData.canvasContext.beginPath(),a=0;s>a;a+=1)for(u=p[a],l=u.length,this.globalData.canvasContext.moveTo(u[0],u[1]),o=2;l>o;o+=6)this.globalData.canvasContext.bezierCurveTo(u[o],u[o+1],u[o+2],u[o+3],u[o+4],u[o+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.fill()}if(this.stroke){for(d&&d.sw?g!==d.sw&&(g=d.sw,e.lineWidth=d.sw):g!==this.values.sWidth&&(g=this.values.sWidth,e.lineWidth=this.values.sWidth),d&&d.sc?m!==d.sc&&(m=d.sc,e.strokeStyle=d.sc):m!==this.values.stroke&&(m=this.values.stroke,e.strokeStyle=this.values.stroke),p=this.textSpans[n].elem,s=p.length,this.globalData.canvasContext.beginPath(),a=0;s>a;a+=1)for(u=p[a],l=u.length,this.globalData.canvasContext.moveTo(u[0],u[1]),o=2;l>o;o+=6)this.globalData.canvasContext.bezierCurveTo(u[o],u[o+1],u[o+2],u[o+3],u[o+4],u[o+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.stroke()}d&&this.globalData.renderer.restore()}this.globalData.renderer.restore(this.data.hasMask),this.firstFrame&&(this.firstFrame=!1)}},createElement(BaseElement,HBaseElement),HBaseElement.prototype.appendNodeToParent=function(t){if(this.placeholder){var e=this.placeholder.phElement;e.parentNode.insertBefore(t,e)}else this.parentContainer.appendChild(t)},HBaseElement.prototype.createElements=function(){this.data.hasMask?(this.layerElement=document.createElementNS(svgNS,"svg"),this.appendNodeToParent(this.layerElement),this.maskedElement=this.layerElement):this.layerElement=this.parentContainer,!this.data.ln||4!==this.data.ty&&0!==this.data.ty||(this.layerElement===this.parentContainer&&(this.layerElement=document.createElementNS(svgNS,"g"),this.appendNodeToParent(this.layerElement)),this.layerElement.setAttribute("id",this.data.ln)),this.layerElement!==this.parentContainer&&(this.placeholder=null)},HBaseElement.prototype.renderFrame=function(t){if(3===this.data.ty)return!1;if(this.currentFrameNum===this.lastNum||!this.isVisible)return this.isVisible;this.lastNum=this.currentFrameNum,this.data.hasMask&&this.maskManager.renderFrame(),this.finalTransform.opMdf=this.finalTransform.op.mdf,this.finalTransform.matMdf=this.finalTransform.mProp.mdf,this.finalTransform.opacity=this.finalTransform.op.v,this.firstFrame&&(this.finalTransform.opMdf=!0,this.finalTransform.matMdf=!0);var e,i=this.finalTransform.mat;if(this.hierarchy){var n,r=this.hierarchy.length;for(e=this.finalTransform.mProp.v.props,i.cloneFromProps(e),n=0;r>n;n+=1)this.finalTransform.matMdf=!!this.hierarchy[n].finalTransform.mProp.mdf||this.finalTransform.matMdf,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&&this.finalTransform.matMdf&&(t?(e=this.finalTransform.mProp.v.props,i.cloneFromProps(e)):i.cloneFromProps(this.finalTransform.mProp.v.props));return t&&(e=t.mat.props,i.cloneFromProps(e),this.finalTransform.opacity*=t.opacity,this.finalTransform.opMdf=!!t.opMdf||this.finalTransform.opMdf,this.finalTransform.matMdf=!!t.matMdf||this.finalTransform.matMdf),this.finalTransform.matMdf&&(this.layerElement.style.transform=this.layerElement.style.webkitTransform=i.toCSS()),this.finalTransform.opMdf&&(this.layerElement.style.opacity=this.finalTransform.opacity),this.isVisible},HBaseElement.prototype.destroy=function(){this.layerElement=null,this.parentContainer=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},HBaseElement.prototype.getDomElement=function(){return this.layerElement},HBaseElement.prototype.addMasks=function(t){this.maskManager=new MaskElement(t,this,this.globalData)},HBaseElement.prototype.hide=function(){},HBaseElement.prototype.setMatte=function(){},createElement(HBaseElement,HSolidElement),HSolidElement.prototype.createElements=function(){var t=document.createElement("div");styleDiv(t);var e=document.createElementNS(svgNS,"svg");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),t.appendChild(e),this.layerElement=t,this.parentContainer.appendChild(t),this.innerElem=t,this.data.ln&&this.innerElem.setAttribute("id",this.data.ln);var i=document.createElementNS(svgNS,"rect");i.setAttribute("width",this.data.sw),i.setAttribute("height",this.data.sh),i.setAttribute("fill",this.data.sc),e.appendChild(i),this.data.hasMask&&(this.maskedElement=i)},HSolidElement.prototype.hide=function(){this.hidden||(this.innerElem.style.display="none",this.hidden=!0)},HSolidElement.prototype.renderFrame=function(t){var e=this.parent.renderFrame.call(this,t);return e===!1?void this.hide():(this.hidden&&(this.hidden=!1,this.innerElem.style.display="block"),void(this.firstFrame&&(this.firstFrame=!1)))},HSolidElement.prototype.destroy=function(){this.parent.destroy.call(),this.innerElem=null},createElement(HBaseElement,HCompElement),extendPrototype(ExpressionComp,HCompElement),HCompElement.prototype.getDomElement=function(){return this.composingElement},HCompElement.prototype.getComposingElement=function(){return this.layerElement},HCompElement.prototype.createElements=function(){if(this.layerElement=document.createElement("div"),styleDiv(this.layerElement),this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.layerElement.style.clip="rect(0px, "+this.data.w+"px, "+this.data.h+"px, 0px)",this.layerElement!==this.parentContainer&&(this.placeholder=null),this.data.hasMask){var t=document.createElementNS(svgNS,"svg");t.setAttribute("width",this.data.w),t.setAttribute("height",this.data.h);var e=document.createElementNS(svgNS,"g");t.appendChild(e),this.layerElement.appendChild(t),this.maskedElement=e,this.composingElement=e}else this.composingElement=this.layerElement;this.appendNodeToParent(this.layerElement)},HCompElement.prototype.hide=ICompElement.prototype.hide,HCompElement.prototype.prepareFrame=ICompElement.prototype.prepareFrame,HCompElement.prototype.setElements=ICompElement.prototype.setElements,HCompElement.prototype.getElements=ICompElement.prototype.getElements,HCompElement.prototype.destroy=ICompElement.prototype.destroy,HCompElement.prototype.renderFrame=function(t){var e,i=this.parent.renderFrame.call(this,t),n=this.layers.length;if(i===!1)return void this.hide();for(this.hidden=!1,e=0;n>e;e+=1)this.elements[e].renderFrame();this.firstFrame&&(this.firstFrame=!1)},createElement(HBaseElement,HShapeElement);var parent=HShapeElement.prototype.parent;extendPrototype(IShapeElement,HShapeElement),HShapeElement.prototype.parent=parent,HShapeElement.prototype.createElements=function(){var t=document.createElement("div");styleDiv(t);var e=document.createElementNS(svgNS,"svg");if(999999===this.data.bounds.l,e.setAttribute("width",this.data.bounds.r-this.data.bounds.l),e.setAttribute("height",this.data.bounds.b-this.data.bounds.t),e.setAttribute("viewBox",this.data.bounds.l+" "+this.data.bounds.t+" "+(this.data.bounds.r-this.data.bounds.l)+" "+(this.data.bounds.b-this.data.bounds.t)),e.style.transform=e.style.webkitTransform="translate("+this.data.bounds.l+"px,"+this.data.bounds.t+"px)",this.data.hasMask){var i=document.createElementNS(svgNS,"g");t.appendChild(e),e.appendChild(i),this.maskedElement=i,this.layerElement=i,this.shapesContainer=i}else t.appendChild(e),this.layerElement=e,this.shapesContainer=document.createElementNS(svgNS,"g"),this.layerElement.appendChild(this.shapesContainer);this.parentContainer.appendChild(t),this.innerElem=t,this.data.ln&&this.innerElem.setAttribute("id",this.data.ln),this.searchShapes(this.shapesData,this.viewData,this.dynamicProperties,[]),this.buildExpressionInterface(),this.layerElement=t},HShapeElement.prototype.renderFrame=function(t){var e=this.parent.renderFrame.call(this,t);return e===!1?void this.hide():(this.hidden=!1,this.transformHelper.opacity=this.finalTransform.opacity,this.transformHelper.matMdf=!1,this.transformHelper.opMdf=this.finalTransform.opMdf,void this.renderShape(this.transformHelper,null,null,!0))},createElement(HBaseElement,HTextElement),HTextElement.prototype.init=ITextElement.prototype.init,HTextElement.prototype.getMeasures=ITextElement.prototype.getMeasures,HTextElement.prototype.createPathShape=ITextElement.prototype.createPathShape,HTextElement.prototype.createElements=function(){this.isMasked=this.checkMasks();var t=this.data.t.d,e=document.createElement("div");if(styleDiv(e),this.layerElement=e,this.isMasked){this.renderType="svg";var i=document.createElementNS(svgNS,"svg");this.cont=i,this.compW=this.comp.data?this.comp.data.w:this.globalData.compSize.w,this.compH=this.comp.data?this.comp.data.h:this.globalData.compSize.h,i.setAttribute("width",this.compW),i.setAttribute("height",this.compH);var n=document.createElementNS(svgNS,"g");i.appendChild(n),e.appendChild(i),this.maskedElement=n,this.innerElem=n}else this.renderType="html",this.innerElem=e;this.parentContainer.appendChild(e),this.innerElem.style.color=this.innerElem.style.fill=t.fc?"rgb("+t.fc[0]+","+t.fc[1]+","+t.fc[2]+")":"rgba(0,0,0,0)",t.sc&&(this.innerElem.style.stroke="rgb("+t.sc[0]+","+t.sc[1]+","+t.sc[2]+")",this.innerElem.style.strokeWidth=t.sw+"px");var r=this.globalData.fontManager.getFontByName(t.f);if(!this.globalData.fontManager.chars)if(this.innerElem.style.fontSize=t.s+"px",this.innerElem.style.lineHeight=t.s+"px",r.fClass)this.innerElem.className=r.fClass;else{this.innerElem.style.fontFamily=r.fFamily;var a=t.fWeight,s=t.fStyle;this.innerElem.style.fontStyle=s,this.innerElem.style.fontWeight=a}var o,l,c=t.l;l=c.length;var h,d,p,u,f=this.mHelper,m="";for(o=0;l>o;o+=1){if(this.globalData.fontManager.chars?(h=document.createElementNS(svgNS,"path"),this.isMasked||(d=document.createElement("div"),p=document.createElementNS(svgNS,"svg"),d.appendChild(p),p.appendChild(h),styleDiv(d)),h.setAttribute("stroke-linecap","butt"),h.setAttribute("stroke-linejoin","round"),h.setAttribute("stroke-miterlimit","4")):this.isMasked?h=document.createElementNS(svgNS,"text"):(d=document.createElement("span"),styleDiv(d),h=document.createElement("span"),styleDiv(h),d.appendChild(h)),this.globalData.fontManager.chars){var g,v=this.globalData.fontManager.getCharData(t.t.charAt(o),r.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily);if(g=v?v.data:null,f.reset(),g&&g.shapes&&(u=g.shapes[0].it,f.scale(t.s/100,t.s/100),m=this.createPathShape(f,u),h.setAttribute("d",m)),this.isMasked)this.innerElem.appendChild(h);else{this.innerElem.appendChild(d);var y=t.s/100;if(g&&g.shapes){var b=Math.ceil(g.bounds.r*y),w=Math.floor(g.bounds.t*y),k=Math.floor(g.bounds.l*y),x=Math.ceil(g.bounds.b*y);p.setAttribute("width",b-k),p.setAttribute("height",x-w),p.setAttribute("viewBox",k+" "+w+" "+(b-k)+" "+(x-w)),p.style.transform=p.style.webkitTransform="translate("+k+"px,"+w+"px)",c[o].yOffset=w}else p.setAttribute("width",1),p.setAttribute("height",1)}}else h.textContent=c[o].val,h.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked?this.innerElem.appendChild(h):(this.innerElem.appendChild(d),h.style.transform=h.style.webkitTransform="translate3d(0,"+-t.s/1.2+"px,0)");this.textSpans.push(this.isMasked?h:d),this.textPaths.push(h)}},HTextElement.prototype.hide=SVGTextElement.prototype.hide,HTextElement.prototype.renderFrame=function(t){var e=this.parent.renderFrame.call(this,t);if(e===!1)return void this.hide();if(this.hidden&&(this.hidden=!1,this.innerElem.style.display="block"),this.data.singleShape){if(!this.firstFrame)return;this.isMasked&&this.finalTransform.matMdf&&(this.cont.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),this.cont.style.transform=this.cont.style.webkitTransform="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)")}if(this.getMeasures(),this.lettersChangedFlag){var i,n,r=this.renderedLetters,a=this.data.t.d.l;n=a.length;var s;for(i=0;n>i;i+=1)a[i].n||(s=r[i],this.isMasked?this.textSpans[i].setAttribute("transform",s.m):this.textSpans[i].style.transform=this.textSpans[i].style.webkitTransform=s.m,this.textSpans[i].style.opacity=s.o,s.sw&&this.textPaths[i].setAttribute("stroke-width",s.sw),s.sc&&this.textPaths[i].setAttribute("stroke",s.sc),s.fc&&(this.textPaths[i].setAttribute("fill",s.fc),this.textPaths[i].style.color=s.fc));if(this.isMasked){var o=this.innerElem.getBBox();this.currentBBox.w!==o.width&&(this.currentBBox.w=o.width,this.cont.setAttribute("width",o.width)),this.currentBBox.h!==o.height&&(this.currentBBox.h=o.height,this.cont.setAttribute("height",o.height)),(this.currentBBox.w!==o.width||this.currentBBox.h!==o.height||this.currentBBox.x!==o.x||this.currentBBox.y!==o.y)&&(this.currentBBox.w=o.width,this.currentBBox.h=o.height,this.currentBBox.x=o.x,this.currentBBox.y=o.y,this.cont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),this.cont.style.transform=this.cont.style.webkitTransform="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)")}this.firstFrame&&(this.firstFrame=!1)}},HTextElement.prototype.destroy=SVGTextElement.prototype.destroy,createElement(HBaseElement,HImageElement),HImageElement.prototype.createElements=function(){var t,e=function(){this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",this.path+this.assetData.p)},i=new Image;if(this.data.hasMask){var t=document.createElement("div");styleDiv(t);var n=document.createElementNS(svgNS,"svg");n.setAttribute("width",this.assetData.w),n.setAttribute("height",this.assetData.h),t.appendChild(n),this.imageElem=document.createElementNS(svgNS,"image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),n.appendChild(this.imageElem),this.layerElement=t,this.parentContainer.appendChild(t),this.innerElem=t,this.maskedElement=this.imageElem,i.addEventListener("load",e.bind(this),!1),i.addEventListener("error",e.bind(this),!1)}else styleDiv(i),this.layerElement=i,this.parentContainer.appendChild(i),this.innerElem=i;i.src=this.path+this.assetData.p,this.data.ln&&this.innerElem.setAttribute("id",this.data.ln)},HImageElement.prototype.hide=HSolidElement.prototype.hide,HImageElement.prototype.renderFrame=HSolidElement.prototype.renderFrame,HImageElement.prototype.destroy=HSolidElement.prototype.destroy,createElement(HBaseElement,HCameraElement),HCameraElement.prototype.setup=function(){var t,e,i=this.comp.threeDElements.length;for(t=0;i>t;t+=1)e=this.comp.threeDElements[t],e[0].style.perspective=e[0].style.webkitPerspective=this.pe.v+"px",e[1].style.transformOrigin=e[1].style.mozTransformOrigin=e[1].style.webkitTransformOrigin="0px 0px 0px",e[0].style.transform=e[0].style.webkitTransform="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)"},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var t,e,i=this.firstFrame;if(this.hierarchy)for(e=this.hierarchy.length,t=0;e>t;t+=1)i=!!this.hierarchy[t].finalTransform.mProp.mdf||i;if(i||this.p&&this.p.mdf||this.px&&(this.px.mdf||this.py.mdf||this.pz.mdf)||this.rx.mdf||this.ry.mdf||this.rz.mdf||this.or.mdf||this.a&&this.a.mdf){if(this.mat.reset(),this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var n=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]],r=Math.sqrt(Math.pow(n[0],2)+Math.pow(n[1],2)+Math.pow(n[2],2)),a=[n[0]/r,n[1]/r,n[2]/r],s=Math.sqrt(a[2]*a[2]+a[0]*a[0]),o=Math.atan2(a[1],s),l=Math.atan2(a[0],-a[2]);this.mat.rotateY(l).rotateX(-o)}if(this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v),this.hierarchy){var c;for(e=this.hierarchy.length,t=0;e>t;t+=1)c=this.hierarchy[t].finalTransform.mProp.iv.props,this.mat.transform(c[0],c[1],c[2],c[3],c[4],c[5],c[6],c[7],c[8],c[9],c[10],c[11],-c[12],-c[13],c[14],c[15])}e=this.comp.threeDElements.length;var h;for(t=0;e>t;t+=1)h=this.comp.threeDElements[t],h[1].style.transform=h[1].style.webkitTransform=this.mat.toCSS()}this.firstFrame=!1},HCameraElement.prototype.destroy=function(){};var animationManager=function(){function t(e){var i=0,n=e.target;for(n.removeEventListener("destroy",t);k>i;)y[i].animation===n&&(y.splice(i,1),i-=1,k-=1),i+=1}function e(e,i){if(!e)return null;for(var n=0;k>n;){if(y[n].elem==e&&null!==y[n].elem)return y[n].animation;n+=1}var r=new AnimationItem;return r.setData(e,i),r.addEventListener("destroy",t),y.push({elem:e,animation:r}),k+=1,r}function i(e){var i=new AnimationItem;return i.setParams(e),i.addEventListener("destroy",t),y.push({elem:null,animation:i}),k+=1,i}function n(t,e){var i;for(i=0;k>i;i+=1)y[i].animation.setSpeed(t,e)}function r(t,e){var i;for(i=0;k>i;i+=1)y[i].animation.setDirection(t,e)}function a(t){var e;for(e=0;k>e;e+=1)y[e].animation.play(t)}function s(t,e){w=!1,b=Date.now();var i;for(i=0;k>i;i+=1)y[i].animation.moveFrame(t,e)}function o(t){var e,i=t-b;for(e=0;k>e;e+=1)y[e].animation.advanceTime(i);b=t,requestAnimationFrame(o)}function l(t){b=t,requestAnimationFrame(o)}function c(t){var e;for(e=0;k>e;e+=1)y[e].animation.pause(t)}function h(t,e,i){var n;for(n=0;k>n;n+=1)y[n].animation.goToAndStop(t,e,i)}function d(t){var e;for(e=0;k>e;e+=1)y[e].animation.stop(t)}function p(t){var e;for(e=0;k>e;e+=1)y[e].animation.togglePause(t)}function u(t){var e;for(e=0;k>e;e+=1)y[e].animation.destroy(t)}function f(t,i,n){var r,a=document.getElementsByClassName("bodymovin"),s=a.length;for(r=0;s>r;r+=1)n&&a[r].setAttribute("data-bm-type",n),e(a[r],t);if(i&&0===s){n||(n="svg");var o=document.getElementsByTagName("body")[0];o.innerHTML="";var l=document.createElement("div");l.style.width="100%",l.style.height="100%",l.setAttribute("data-bm-type",n),o.appendChild(l),e(l,t)}}function m(){var t;for(t=0;k>t;t+=1)y[t].animation.resize()}function g(){requestAnimationFrame(l)}var v={},y=[],b=0,w=!0,k=0;return setTimeout(g,0),v.registerAnimation=e,v.loadAnimation=i,v.setSpeed=n,v.setDirection=r,v.play=a,v.moveFrame=s,v.pause=c,v.stop=d,v.togglePause=p,v.searchAnimations=f,v.resize=m,v.start=g,v.goToAndStop=h,v.destroy=u,v}(),AnimationItem=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.repeat="indefinite",this.animationData={},this.layers=[],this.assets=[],this.isPaused=!0,this.isScrolling=!1,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=randomString(10),this.renderedFrameCount=0,this.scaleMode="fit",this.math=Math,this.removed=!1,this.timeCompleted=0,this.segmentPos=0,this.segments=[]};AnimationItem.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=t.animType?t.animType:t.renderer?t.renderer:"canvas";switch(i){case"canvas":this.renderer=new CanvasRenderer(this,t.rendererSettings);break;case"svg":this.renderer=new SVGRenderer(this,t.rendererSettings);break;case"hybrid":case"html":default:this.renderer=new HybridRenderer(this,t.rendererSettings)}if(this.animType=i,""===t.loop||null===t.loop||(this.loop=t.loop!==!1&&(t.loop===!0||parseInt(t.loop))),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.prerenderFramesFlag=!("prerender"in t)||t.prerender,this.autoloadSegments=!t.hasOwnProperty("autoloadSegments")||t.autoloadSegments,t.animationData)e.configAnimation(t.animationData);else if(t.path){"json"!=t.path.substr(-4)&&("/"!=t.path.substr(-1,1)&&(t.path+="/"),t.path+="data.json");var n=new XMLHttpRequest;this.path=-1!=t.path.lastIndexOf("\\")?t.path.substr(0,t.path.lastIndexOf("\\")+1):t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),n.open("GET",t.path,!0),n.send(),n.onreadystatechange=function(){if(4==n.readyState)if(200==n.status)e.configAnimation(JSON.parse(n.responseText));else try{var t=JSON.parse(n.responseText);e.configAnimation(t)}catch(i){}}}},AnimationItem.prototype.setData=function(t,e){var i={wrapper:t,animationData:e?"object"==typeof e?e:JSON.parse(e):null},n=t.attributes;i.path=n.getNamedItem("data-animation-path")?n.getNamedItem("data-animation-path").value:n.getNamedItem("data-bm-path")?n.getNamedItem("data-bm-path").value:n.getNamedItem("bm-path")?n.getNamedItem("bm-path").value:"",i.animType=n.getNamedItem("data-anim-type")?n.getNamedItem("data-anim-type").value:n.getNamedItem("data-bm-type")?n.getNamedItem("data-bm-type").value:n.getNamedItem("bm-type")?n.getNamedItem("bm-type").value:n.getNamedItem("data-bm-renderer")?n.getNamedItem("data-bm-renderer").value:n.getNamedItem("bm-renderer")?n.getNamedItem("bm-renderer").value:"canvas";var r=n.getNamedItem("data-anim-loop")?n.getNamedItem("data-anim-loop").value:n.getNamedItem("data-bm-loop")?n.getNamedItem("data-bm-loop").value:n.getNamedItem("bm-loop")?n.getNamedItem("bm-loop").value:"";""===r||(i.loop="false"!==r&&("true"===r||parseInt(r))),i.name=n.getNamedItem("data-name")?n.getNamedItem("data-name").value:n.getNamedItem("data-bm-name")?n.getNamedItem("data-bm-name").value:n.getNamedItem("bm-name")?n.getNamedItem("bm-name").value:"";var a=n.getNamedItem("data-anim-prerender")?n.getNamedItem("data-anim-prerender").value:n.getNamedItem("data-bm-prerender")?n.getNamedItem("data-bm-prerender").value:n.getNamedItem("bm-prerender")?n.getNamedItem("bm-prerender").value:"";"false"===a&&(i.prerender=!1),this.setParams(i)},AnimationItem.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);var e,i,n=this.animationData.layers,r=n.length,a=t.layers,s=a.length;for(i=0;s>i;i+=1)for(e=0;r>e;){if(n[e].id==a[i].id){n[e]=a[i];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(r=t.assets.length,e=0;r>e;e+=1)this.animationData.assets.push(t.assets[e]);dataManager.completeData(this.animationData,this.renderer.globalData.fontManager),this.renderer.includeLayers(t.layers),this.renderer.buildStage(this.container,this.layers),this.renderer.renderFrame(null),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.animationData.tf);var e=t.shift();this.timeCompleted=e.time*this.frameRate;var i=new XMLHttpRequest,n=this,r=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,i.open("GET",r,!0),i.send(),i.onreadystatechange=function(){if(4==i.readyState)if(200==i.status)n.includeLayers(JSON.parse(i.responseText));else try{var t=JSON.parse(i.responseText);n.includeLayers(t)}catch(e){}}},AnimationItem.prototype.loadSegments=function(){var t=this.animationData.segments;t||(this.timeCompleted=this.animationData.tf),this.loadNextSegment()},AnimationItem.prototype.configAnimation=function(t){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.animationData._id=this.animationID,this.animationData._animType=this.animType,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.loadSegments(),this.updaFrameModifier(),this.renderer.globalData.fontManager?this.waitForFontsLoaded():(dataManager.completeData(this.animationData,this.renderer.globalData.fontManager),this.checkLoaded())},AnimationItem.prototype.waitForFontsLoaded=function(){function t(){this.renderer.globalData.fontManager.loaded?(dataManager.completeData(this.animationData,this.renderer.globalData.fontManager),this.renderer.buildItems(this.animationData.layers),this.checkLoaded()):setTimeout(t.bind(this),20)}return function(){t.bind(this)()}}(),AnimationItem.prototype.elementLoaded=function(){this.pendingElements--,this.checkLoaded()},AnimationItem.prototype.checkLoaded=function(){0===this.pendingElements&&(this.renderer.buildStage(this.container,this.layers),this.trigger("DOMLoaded"),this.isLoaded=!0,this.gotoFrame(),this.autoplay&&this.play())},AnimationItem.prototype.resize=function(){this.renderer.updateContainerSize()},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=subframeEnabled?this.currentRawFrame:this.math.floor(this.currentRawFrame),this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame()},AnimationItem.prototype.renderFrame=function(){this.isLoaded!==!1&&this.renderer.renderFrame(this.currentFrame+this.firstFrame)},AnimationItem.prototype.play=function(t){t&&this.name!=t||this.isPaused===!0&&(this.isPaused=!1)},AnimationItem.prototype.pause=function(t){t&&this.name!=t||this.isPaused===!1&&(this.isPaused=!0)},AnimationItem.prototype.togglePause=function(t){t&&this.name!=t||(this.isPaused===!0?(this.isPaused=!1,this.play()):(this.isPaused=!0,this.pause()))},AnimationItem.prototype.stop=function(t){t&&this.name!=t||(this.isPaused=!0,this.currentFrame=this.currentRawFrame=0,this.playCount=0,this.gotoFrame())},AnimationItem.prototype.goToAndStop=function(t,e,i){i&&this.name!=i||(this.setCurrentRawFrameValue(e?t:t*this.frameModifier),this.isPaused=!0)},AnimationItem.prototype.advanceTime=function(t){this.isPaused!==!0&&this.isScrolling!==!0&&this.isLoaded!==!1&&this.setCurrentRawFrameValue(this.currentRawFrame+t*this.frameModifier)},AnimationItem.prototype.updateAnimation=function(t){this.setCurrentRawFrameValue(this.totalFrames*t)},AnimationItem.prototype.moveFrame=function(t,e){e&&this.name!=e||this.setCurrentRawFrameValue(this.currentRawFrame+t)},AnimationItem.prototype.adjustSegment=function(t){this.totalFrames=t[1]-t[0],this.firstFrame=t[0],this.trigger("segmentStart")},AnimationItem.prototype.playSegments=function(t,e){if("object"==typeof t[0]){var i,n=t.length;for(i=0;n>i;i+=1)this.segments.push(t[i])}else this.segments.push(t);e&&(this.adjustSegment(this.segments.shift()),this.setCurrentRawFrameValue(0)),this.isPaused&&this.play()},AnimationItem.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())},AnimationItem.prototype.remove=function(t){t&&this.name!=t||this.renderer.destroy()},AnimationItem.prototype.destroy=function(t){t&&this.name!=t||this.renderer&&this.renderer.destroyed||(this.renderer.destroy(),this.trigger("destroy"),this._cbs=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t;var e=!1;if(this.currentRawFrame>=this.totalFrames){if(this.segments.length&&(e=!0),this.loop===!1)return this.currentRawFrame=this.totalFrames-.01,this.gotoFrame(),this.pause(),void this.trigger("complete");if(this.trigger("loopComplete"),this.playCount+=1,this.loop!==!0&&this.playCount==this.loop)return this.currentRawFrame=this.totalFrames-.01, this.gotoFrame(),this.pause(),void this.trigger("complete")}else if(this.currentRawFrame<0)return this.playCount-=1,this.playCount<0&&(this.playCount=0),this.loop===!1?(this.currentRawFrame=0,this.gotoFrame(),this.pause(),void this.trigger("complete")):(this.trigger("loopComplete"),this.currentRawFrame=this.totalFrames+this.currentRawFrame,void this.gotoFrame());if(e){var i=this.currentRawFrame%this.totalFrames;this.adjustSegment(this.segments.shift()),this.currentRawFrame=i}else this.currentRawFrame=this.currentRawFrame%this.totalFrames;this.gotoFrame()},AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(t){this.playDirection=0>t?-1:1,this.updaFrameModifier()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetData=function(t){for(var e=0,i=this.assets.length;i>e;){if(t==this.assets[e].id)return this.assets[e];e+=1}},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getAssets=function(){return this.assets},AnimationItem.prototype.trigger=function(t){if(this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult));break;case"loopComplete":this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.addEventListener=_addEventListener,AnimationItem.prototype.removeEventListener=_removeEventListener,AnimationItem.prototype.triggerEvent=_triggerEvent;var bodymovinjs={};bodymovinjs.play=play,bodymovinjs.pause=pause,bodymovinjs.togglePause=togglePause,bodymovinjs.setSpeed=setSpeed,bodymovinjs.setDirection=setDirection,bodymovinjs.stop=stop,bodymovinjs.moveFrame=moveFrame,bodymovinjs.searchAnimations=searchAnimations,bodymovinjs.registerAnimation=registerAnimation,bodymovinjs.loadAnimation=loadAnimation,bodymovinjs.setSubframeRendering=setSubframeRendering,bodymovinjs.resize=resize,bodymovinjs.start=start,bodymovinjs.goToAndStop=goToAndStop,bodymovinjs.destroy=destroy,bodymovinjs.setQuality=setQuality,bodymovinjs.version="4.1.8";var standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index],queryString=myScript.src.replace(/^[^\?]+\??/,"");renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);return bodymovinjs}),function(t){var e=t(window);t.fn.visible=function(t,i,n){if(!(this.length<1)){var r=this.length>1?this.eq(0):this,a=r.get(0),s=e.width(),o=e.height(),n=n?n:"both",l=i!==!0||a.offsetWidth*a.offsetHeight;if("function"==typeof a.getBoundingClientRect){var c=a.getBoundingClientRect(),h=c.top>=0&&c.top0&&c.bottom<=o,p=c.left>=0&&c.left0&&c.right<=s,f=t?h||d:h&&d,m=t?p||u:p&&u;if("both"===n)return l&&f&&m;if("vertical"===n)return l&&f;if("horizontal"===n)return l&&m}else{var g=e.scrollTop(),v=g+o,y=e.scrollLeft(),b=y+s,w=r.offset(),k=w.top,x=k+r.height(),E=w.left,_=E+r.width(),S=t===!0?x:k,C=t===!0?k:x,T=t===!0?_:E,D=t===!0?E:_;if("both"===n)return!!l&&C<=v&&S>=g&&D<=b&&T>=y;if("vertical"===n)return!!l&&C<=v&&S>=g;if("horizontal"===n)return!!l&&D<=b&&T>=y}}}}(jQuery),function(t){var e={_timers:{},_appended:!1,_player:{},_video_data:{},_args:{},_queue:[],_ogstate:{},_ready:!1,_elid:"",_prefix:"jqyt_",_m_pos:0,_on_error:{2:"Invalid parameter in request.",100:"Video request not found.",101:"Video request does not allow playback in the embedded players.",150:"Video request does not allow playback in the embedded players."},_controls:{},_durations:{},_total_bytes:{},_parent:{},_body:{},_scrub_avail:{},_log:function(){return window.console&&console.log&&console.log("[jQYT] "+Array.prototype.join.call(arguments," ")),!1},_format_time:function(t){return parseInt(t/60,10)+"."+(t%60/100+"").split(".").pop().substr(0,2)},_ucfirst:function(t){return t.charAt(0).toUpperCase()+t.slice(1)},_prettify_quality:function(t){return e._ucfirst(t).replace(/hd/i,"HD ")},_get_player_id:function(t){return t.replace(e._prefix,"")},_extend_args:function(i,n){var r=t.extend({height:"390",width:"640",videoId:"Cj6ho1-G6tw",playerVars:{modestbranding:0,rel:0,showinfo:0},playerSharing:0,onReady:null,onStateChange:null,onPlaybackQualityChange:null,onError:null,onPlay:null,onPause:null,onStop:null,onMute:null,onUnmute:null,onFullscreen:null,onQualitySelect:null,onVolumeChange:null,onSeek:null,onUnstart:null,onEnd:null,onBuffer:null,onCued:null,onUpdateTime:null},i),a=e._get_player_id(n);return r.playerVars.controls=0,r.playerVars.wmode="transparent",r.events={onReady:function(t){e._callback(a,"onReady",t)},onStateChange:function(t){e._on_state_change(t.data,a),e._callback(a,"onStateChange",t)},onPlaybackQualityChange:function(t){e._controls[a].a.quality.text(e._prettify_quality(e._player[a].getPlaybackQuality())),e._total_bytes[a]=e._player[a].getVideoBytesTotal(),e._callback(a,"onPlaybackQualityChange",t)},onError:function(t){e._callback(a,"onError",t)}},r.videoUrl="https://www.youtube.com/watch?v="+r.videoId,r},_render_ql:function(i,n){for(var r=t("