!function(t){function e(i){if(r[i])return r[i].exports;var n=r[i]={i:i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var r={};e.m=t,e.c=r,e.i=function(t){return t},e.d=function(t,r,i){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="./dist/",e(e.s=6)}([function(t,e){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e){t.exports=function(t,e,r,i){var n,a=t=t||{},s=typeof t.default;"object"!==s&&"function"!==s||(n=t,a=t.default);var o="function"==typeof a?a.options:a;if(e&&(o.render=e.render,o.staticRenderFns=e.staticRenderFns),r&&(o._scopeId=r),i){var h=Object.create(o.computed||null);Object.keys(i).forEach(function(t){var e=i[t];h[t]=function(){return e}}),o.computed=h}return{esModule:n,exports:a,options:o}}},function(t,e,r){r(16);var i=r(1)(r(4),r(15),null,null);t.exports=i.exports},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,r){function i(t){return void 0===t||null===t}function n(t){return void 0!==t&&null!==t}function a(t){return!0===t}function s(t){return!1===t}function o(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function h(t){return null!==t&&"object"==typeof t}function l(t){return"[object Object]"===oa.call(t)}function p(t){return"[object RegExp]"===oa.call(t)}function f(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function c(t){return null==t?"":"object"==typeof t?JSON.stringify(t,null,2):String(t)}function d(t){var e=parseFloat(t);return isNaN(e)?t:e}function u(t,e){for(var r=Object.create(null),i=t.split(","),n=0;n-1)return t.splice(r,1)}}function y(t,e){return pa.call(t,e)}function v(t){var e=Object.create(null);return function(r){return e[r]||(e[r]=t(r))}}function g(t,e){function r(r){var i=arguments.length;return i?i>1?t.apply(e,arguments):t.call(e,r):t.call(e)}return r._length=t.length,r}function b(t,e){return t.bind(e)}function _(t,e){e=e||0;for(var r=t.length-e,i=new Array(r);r--;)i[r]=t[r+e];return i}function x(t,e){for(var r in e)t[r]=e[r];return t}function E(t){for(var e={},r=0;r-1)if(a&&!y(n,"default"))s=!1;else if(""===s||s===ma(t)){var h=rt(String,n.type);(h<0||o0&&(s=bt(s,(e||"")+"_"+r),gt(s[0])&>(l)&&(p[h]=I(l.text+s[0].text),s.shift()),p.push.apply(p,s)):o(s)?gt(l)?p[h]=I(l.text+s):""!==s&&p.push(I(s)):gt(s)&>(l)?p[h]=I(l.text+s.text):(a(t._isVList)&&n(s.tag)&&i(s.key)&&n(e)&&(s.key="__vlist"+e+"_"+r+"__"),p.push(s)));return p}function _t(t,e){return(t.__esModule||za&&"Module"===t[Symbol.toStringTag])&&(t=t.default),h(t)?e.extend(t):t}function xt(t,e,r,i,n){var a=Ua();return a.asyncFactory=t,a.asyncMeta={data:e,context:r,children:i,tag:n},a}function Et(t,e,r){if(a(t.error)&&n(t.errorComp))return t.errorComp;if(n(t.resolved))return t.resolved;if(a(t.loading)&&n(t.loadingComp))return t.loadingComp;if(!n(t.contexts)){var s=t.contexts=[r],o=!0,l=function(){for(var t=0,e=s.length;tgs&&ds[r].id>t.id;)r--;ds.splice(r+1,0,t)}else ds.push(t);ys||(ys=!0,ht(zt))}}function Wt(t,e,r){xs.get=function(){return this[e][r]},xs.set=function(t){this[e][r]=t},Object.defineProperty(t,r,xs)}function qt(t){t._watchers=[];var e=t.$options;e.props&&Ut(t,e.props),e.methods&&Qt(t,e.methods),e.data?Xt(t):L(t._data={},!0),e.computed&&Jt(t,e.computed),e.watch&&e.watch!==Ia&&te(t,e.watch)}function Ut(t,e){var r=t.$options.propsData||{},i=t._props={},n=t.$options._propKeys=[];!t.$parent||R(!1);for(var a in e)!function(a){n.push(a);var s=Z(a,e,r,t);N(i,a,s),a in t||Wt(t,"_props",a)}(a);R(!0)}function Xt(t){var e=t.$options.data;e=t._data="function"==typeof e?Yt(e,t):e||{},l(e)||(e={});for(var r=Object.keys(e),i=t.$options.props,n=(t.$options.methods,r.length);n--;){var a=r[n];i&&y(i,a)||A(a)||Wt(t,"_data",a)}L(e,!0)}function Yt(t,e){D();try{return t.call(e,e)}catch(t){return it(t,e,"data()"),{}}finally{F()}}function Jt(t,e){var r=t._computedWatchers=Object.create(null),i=La();for(var n in e){var a=e[n],s="function"==typeof a?a:a.get;i||(r[n]=new _s(t,s||k,k,Es)),n in t||Kt(t,n,a)}}function Kt(t,e,r){var i=!La();"function"==typeof r?(xs.get=i?Zt(e):r,xs.set=k):(xs.get=r.get?i&&!1!==r.cache?Zt(e):r.get:k,xs.set=r.set?r.set:k),Object.defineProperty(t,e,xs)}function Zt(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),ja.target&&e.depend(),e.value}}function Qt(t,e){t.$options.props;for(var r in e)t[r]=null==e[r]?k:ya(e[r],t)}function te(t,e){for(var r in e){var i=e[r];if(Array.isArray(i))for(var n=0;n=0||r.indexOf(t[n])<0)&&i.push(t[n]);return i}return t}function Ve(t){this._init(t)}function Re(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var r=_(arguments,1);return r.unshift(this),"function"==typeof t.install?t.install.apply(t,r):"function"==typeof t&&t.apply(null,r),e.push(t),this}}function Be(t){t.mixin=function(t){return this.options=J(this.options,t),this}}function Oe(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var r=this,i=r.cid,n=t._Ctor||(t._Ctor={});if(n[i])return n[i];var a=t.name||r.options.name,s=function(t){this._init(t)};return s.prototype=Object.create(r.prototype),s.prototype.constructor=s,s.cid=e++,s.options=J(r.options,t),s.super=r,s.options.props&&Le(s),s.options.computed&&Ne(s),s.extend=r.extend,s.mixin=r.mixin,s.use=r.use,_a.forEach(function(t){s[t]=r[t]}),a&&(s.options.components[a]=s),s.superOptions=r.options,s.extendOptions=t,s.sealedOptions=x({},s.options),n[i]=s,s}}function Le(t){var e=t.options.props;for(var r in e)Wt(t.prototype,"_props",r)}function Ne(t){var e=t.options.computed;for(var r in e)Kt(t.prototype,r,e[r])}function ze(t){_a.forEach(function(e){t[e]=function(t,r){return r?("component"===e&&l(r)&&(r.name=r.name||t,r=this.options._base.extend(r)),"directive"===e&&"function"==typeof r&&(r={bind:r,update:r}),this.options[e+"s"][t]=r,r):this.options[e+"s"][t]}})}function Ge(t){return t&&(t.Ctor.options.name||t.tag)}function $e(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!p(t)&&t.test(e)}function je(t,e){var r=t.cache,i=t.keys,n=t._vnode;for(var a in r){var s=r[a];if(s){var o=Ge(s.componentOptions);o&&!e(o)&&He(r,a,i,n)}}}function He(t,e,r,i){var n=t[e];!n||i&&n.tag===i.tag||n.componentInstance.$destroy(),t[e]=null,m(r,e)}function We(t){for(var e=t.data,r=t,i=t;n(i.componentInstance);)(i=i.componentInstance._vnode)&&i.data&&(e=qe(i.data,e));for(;n(r=r.parent);)r&&r.data&&(e=qe(e,r.data));return Ue(e.staticClass,e.class)}function qe(t,e){return{staticClass:Xe(t.staticClass,e.staticClass),class:n(t.class)?[t.class,e.class]:e.class}}function Ue(t,e){return n(t)||n(e)?Xe(t,Ye(e)):""}function Xe(t,e){return t?e?t+" "+e:t:e||""}function Ye(t){return Array.isArray(t)?Je(t):h(t)?Ke(t):"string"==typeof t?t:""}function Je(t){for(var e,r="",i=0,a=t.length;i-1?to[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:to[t]=/HTMLUnknownElement/.test(e.toString())}function tr(t){if("string"==typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function er(t,e){var r=document.createElement(t);return"select"!==t?r:(e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&r.setAttribute("multiple","multiple"),r)}function rr(t,e){return document.createElementNS(Ys[t],e)}function ir(t){return document.createTextNode(t)}function nr(t){return document.createComment(t)}function ar(t,e,r){t.insertBefore(e,r)}function sr(t,e){t.removeChild(e)}function or(t,e){t.appendChild(e)}function hr(t){return t.parentNode}function lr(t){return t.nextSibling}function pr(t){return t.tagName}function fr(t,e){t.textContent=e}function cr(t,e){t.setAttribute(e,"")}function dr(t,e){var r=t.data.ref;if(n(r)){var i=t.context,a=t.componentInstance||t.elm,s=i.$refs;e?Array.isArray(s[r])?m(s[r],a):s[r]===a&&(s[r]=void 0):t.data.refInFor?Array.isArray(s[r])?s[r].indexOf(a)<0&&s[r].push(a):s[r]=[a]:s[r]=a}}function ur(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&n(t.data)===n(e.data)&&mr(t,e)||a(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&i(e.asyncFactory.error))}function mr(t,e){if("input"!==t.tag)return!0;var r,i=n(r=t.data)&&n(r=r.attrs)&&r.type,a=n(r=e.data)&&n(r=r.attrs)&&r.type;return i===a||eo(i)&&eo(a)}function yr(t,e,r){var i,a,s={};for(i=e;i<=r;++i)a=t[i].key,n(a)&&(s[a]=i);return s}function vr(t,e){(t.data.directives||e.data.directives)&&gr(t,e)}function gr(t,e){var r,i,n,a=t===no,s=e===no,o=br(t.data.directives,t.context),h=br(e.data.directives,e.context),l=[],p=[];for(r in h)i=o[r],n=h[r],i?(n.oldValue=i.value,xr(n,"update",e,t),n.def&&n.def.componentUpdated&&p.push(n)):(xr(n,"bind",e,t),n.def&&n.def.inserted&&l.push(n));if(l.length){var f=function(){for(var r=0;r-1?Sr(t,e,r):Hs(e)?Xs(r)?t.removeAttribute(e):(r="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,r)):js(e)?t.setAttribute(e,Xs(r)||"false"===r?"false":"true"):qs(e)?Xs(r)?t.removeAttributeNS(Ws,Us(e)):t.setAttributeNS(Ws,e,r):Sr(t,e,r)}function Sr(t,e,r){if(Xs(r))t.removeAttribute(e);else{if(Ta&&!Ma&&"TEXTAREA"===t.tagName&&"placeholder"===e&&!t.__ieph){var i=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",i)};t.addEventListener("input",i),t.__ieph=!0}t.setAttribute(e,r)}}function Cr(t,e){var r=e.elm,a=e.data,s=t.data;if(!(i(a.staticClass)&&i(a.class)&&(i(s)||i(s.staticClass)&&i(s.class)))){var o=We(e),h=r._transitionClasses;n(h)&&(o=Xe(o,Ye(h))),o!==r._prevClass&&(r.setAttribute("class",o),r._prevClass=o)}}function Pr(t){function e(){(s||(s=[])).push(t.slice(u,n).trim()),u=n+1}var r,i,n,a,s,o=!1,h=!1,l=!1,p=!1,f=0,c=0,d=0,u=0;for(n=0;n=0&&" "===(y=t.charAt(m));m--);y&&fo.test(y)||(p=!0)}}else void 0===a?(u=n+1,a=t.slice(0,n).trim()):e();if(void 0===a?a=t.slice(0,n).trim():0!==u&&e(),s)for(n=0;n-1?{exp:t.slice(0,Vs),key:'"'+t.slice(Vs+1)+'"'}:{exp:t,key:null};for(Fs=t,Vs=Rs=Bs=0;!Gr();)Is=zr(),$r(Is)?Hr(Is):91===Is&&jr(Is);return{exp:t.slice(0,Rs),key:t.slice(Rs+1,Bs)}}function zr(){return Fs.charCodeAt(++Vs)}function Gr(){return Vs>=Ds}function $r(t){return 34===t||39===t}function jr(t){var e=1;for(Rs=Vs;!Gr();)if(t=zr(),$r(t))Hr(t);else if(91===t&&e++,93===t&&e--,0===e){Bs=Vs;break}}function Hr(t){for(var e=t;!Gr()&&(t=zr())!==e;);}function Wr(t,e,r){Os=r;var i=e.value,n=e.modifiers,a=t.tag,s=t.attrsMap.type;if(t.component)return Or(t,i,n),!1;if("select"===a)Xr(t,i,n);else if("input"===a&&"checkbox"===s)qr(t,i,n);else if("input"===a&&"radio"===s)Ur(t,i,n);else if("input"===a||"textarea"===a)Yr(t,i,n);else if(!Ea.isReservedTag(a))return Or(t,i,n),!1;return!0}function qr(t,e,r){var i=r&&r.number,n=Rr(t,"value")||"null",a=Rr(t,"true-value")||"true",s=Rr(t,"false-value")||"false";Mr(t,"checked","Array.isArray("+e+")?_i("+e+","+n+")>-1"+("true"===a?":("+e+")":":_q("+e+","+a+")")),Vr(t,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+a+"):("+s+");if(Array.isArray($$a)){var $$v="+(i?"_n("+n+")":n)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Lr(e,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Lr(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Lr(e,"$$c")+"}",null,!0)}function Ur(t,e,r){var i=r&&r.number,n=Rr(t,"value")||"null";n=i?"_n("+n+")":n,Mr(t,"checked","_q("+e+","+n+")"),Vr(t,"change",Lr(e,n),null,!0)}function Xr(t,e,r){var i=r&&r.number,n='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(i?"_n(val)":"val")+"})",a="var $$selectedVal = "+n+";";a=a+" "+Lr(e,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),Vr(t,"change",a,null,!0)}function Yr(t,e,r){var i=t.attrsMap.type,n=r||{},a=n.lazy,s=n.number,o=n.trim,h=!a&&"range"!==i,l=a?"change":"range"===i?co:"input",p="$event.target.value";o&&(p="$event.target.value.trim()"),s&&(p="_n("+p+")");var f=Lr(e,p);h&&(f="if($event.target.composing)return;"+f),Mr(t,"value","("+e+")"),Vr(t,l,f,null,!0),(o||s)&&Vr(t,"blur","$forceUpdate()")}function Jr(t){if(n(t[co])){var e=Ta?"change":"input";t[e]=[].concat(t[co],t[e]||[]),delete t[co]}n(t[uo])&&(t.change=[].concat(t[uo],t.change||[]),delete t[uo])}function Kr(t,e,r){var i=Ls;return function n(){null!==t.apply(null,arguments)&&Qr(e,n,r,i)}}function Zr(t,e,r,i,n){e=ot(e),r&&(e=Kr(e,t,i)),Ls.addEventListener(t,e,Va?{capture:i,passive:n}:i)}function Qr(t,e,r,i){(i||Ls).removeEventListener(t,e._withTask||e,r)}function ti(t,e){if(!i(t.data.on)||!i(e.data.on)){var r=e.data.on||{},n=t.data.on||{};Ls=e.elm,Jr(r),ct(r,n,Zr,Qr,e.context),Ls=void 0}}function ei(t,e){if(!i(t.data.domProps)||!i(e.data.domProps)){var r,a,s=e.elm,o=t.data.domProps||{},h=e.data.domProps||{};n(h.__ob__)&&(h=e.data.domProps=x({},h));for(r in o)i(h[r])&&(s[r]="");for(r in h){if(a=h[r],"textContent"===r||"innerHTML"===r){if(e.children&&(e.children.length=0),a===o[r])continue;1===s.childNodes.length&&s.removeChild(s.childNodes[0])}if("value"===r){s._value=a;var l=i(a)?"":String(a);ri(s,l)&&(s.value=l)}else s[r]=a}}}function ri(t,e){return!t.composing&&("OPTION"===t.tagName||ii(t,e)||ni(t,e))}function ii(t,e){var r=!0;try{r=document.activeElement!==t}catch(t){}return r&&t.value!==e}function ni(t,e){var r=t.value,i=t._vModifiers;if(n(i)){if(i.lazy)return!1;if(i.number)return d(r)!==d(e);if(i.trim)return r.trim()!==e.trim()}return r!==e}function ai(t){var e=si(t.style);return t.staticStyle?x(t.staticStyle,e):e}function si(t){return Array.isArray(t)?E(t):"string"==typeof t?vo(t):t}function oi(t,e){var r,i={};if(e)for(var n=t;n.componentInstance;)(n=n.componentInstance._vnode)&&n.data&&(r=ai(n.data))&&x(i,r);(r=ai(t.data))&&x(i,r);for(var a=t;a=a.parent;)a.data&&(r=ai(a.data))&&x(i,r);return i}function hi(t,e){var r=e.data,a=t.data;if(!(i(r.staticStyle)&&i(r.style)&&i(a.staticStyle)&&i(a.style))){var s,o,h=e.elm,l=a.staticStyle,p=a.normalizedStyle||a.style||{},f=l||p,c=si(e.data.style)||{};e.data.normalizedStyle=n(c.__ob__)?x({},c):c;var d=oi(e,!0);for(o in f)i(d[o])&&_o(h,o,"");for(o in d)(s=d[o])!==f[o]&&_o(h,o,null==s?"":s)}}function li(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var r=" "+(t.getAttribute("class")||"")+" ";r.indexOf(" "+e+" ")<0&&t.setAttribute("class",(r+e).trim())}}function pi(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var r=" "+(t.getAttribute("class")||"")+" ",i=" "+e+" ";r.indexOf(i)>=0;)r=r.replace(i," ");r=r.trim(),r?t.setAttribute("class",r):t.removeAttribute("class")}}function fi(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&x(e,So(t.name||"v")),x(e,t),e}return"string"==typeof t?So(t):void 0}}function ci(t){Fo(function(){Fo(t)})}function di(t,e){var r=t._transitionClasses||(t._transitionClasses=[]);r.indexOf(e)<0&&(r.push(e),li(t,e))}function ui(t,e){t._transitionClasses&&m(t._transitionClasses,e),pi(t,e)}function mi(t,e,r){var i=yi(t,e),n=i.type,a=i.timeout,s=i.propCount;if(!n)return r();var o=n===Po?To:Do,h=0,l=function(){t.removeEventListener(o,p),r()},p=function(e){e.target===t&&++h>=s&&l()};setTimeout(function(){h0&&(r=Po,p=s,f=a.length):e===Ao?l>0&&(r=Ao,p=l,f=h.length):(p=Math.max(s,l),r=p>0?s>l?Po:Ao:null,f=r?r===Po?a.length:h.length:0),{type:r,timeout:p,propCount:f,hasTransform:r===Po&&Io.test(i[wo+"Property"])}}function vi(t,e){for(;t.length1}function ki(t,e){!0!==e.data.show&&bi(e)}function Si(t,e,r){Ci(t,e,r),(Ta||Da)&&setTimeout(function(){Ci(t,e,r)},0)}function Ci(t,e,r){var i=e.value,n=t.multiple;if(!n||Array.isArray(i)){for(var a,s,o=0,h=t.options.length;o-1,s.selected!==a&&(s.selected=a);else if(S(Ai(s),i))return void(t.selectedIndex!==o&&(t.selectedIndex=o));n||(t.selectedIndex=-1)}}function Pi(t,e){return e.every(function(e){return!S(e,t)})}function Ai(t){return"_value"in t?t._value:t.value}function wi(t){t.target.composing=!0}function Ti(t){t.target.composing&&(t.target.composing=!1,Mi(t.target,"input"))}function Mi(t,e){var r=document.createEvent("HTMLEvents");r.initEvent(e,!0,!0),t.dispatchEvent(r)}function Di(t){return!t.componentInstance||t.data&&t.data.transition?t:Di(t.componentInstance._vnode)}function Fi(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Fi(St(e.children)):t}function Ii(t){var e={},r=t.$options;for(var i in r.propsData)e[i]=t[i];var n=r._parentListeners;for(var a in n)e[ca(a)]=n[a];return e}function Vi(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function Ri(t){for(;t=t.parent;)if(t.data.transition)return!0}function Bi(t,e){return e.key===t.key&&e.tag===t.tag}function Oi(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Li(t){t.data.newPos=t.elm.getBoundingClientRect()}function Ni(t){var e=t.data.pos,r=t.data.newPos,i=e.left-r.left,n=e.top-r.top;if(i||n){t.data.moved=!0;var a=t.elm.style;a.transform=a.WebkitTransform="translate("+i+"px,"+n+"px)",a.transitionDuration="0s"}}function zi(t,e){var r=e?Yo(e):Uo;if(r.test(t)){for(var i,n,a,s=[],o=[],h=r.lastIndex=0;i=r.exec(t);){n=i.index,n>h&&(o.push(a=t.slice(h,n)),s.push(JSON.stringify(a)));var l=Pr(i[1].trim());s.push("_s("+l+")"),o.push({"@binding":l}),h=n+i[0].length}return h=0&&s[n].lowerCasedTag!==o;n--);else n=0;if(n>=0){for(var h=s.length-1;h>=n;h--)e.end&&e.end(s[h].tag,r,i);s.length=n,a=n&&s[n-1].tag}else"br"===o?e.start&&e.start(t,[],!0,r,i):"p"===o&&(e.start&&e.start(t,[],!1,r,i),e.end&&e.end(t,r,i))}for(var n,a,s=[],o=e.expectHTML,h=e.isUnaryTag||va,l=e.canBeLeftOpenTag||va,p=0;t;){if(n=t,a&&kh(a)){var f=0,c=a.toLowerCase(),d=Sh[c]||(Sh[c]=new RegExp("([\\s\\S]*?)(]*>)","i")),u=t.replace(d,function(t,r,i){return f=i.length,kh(c)||"noscript"===c||(r=r.replace(//g,"$1").replace(//g,"$1")),Th(c,r)&&(r=r.slice(1)),e.chars&&e.chars(r),""});p+=t.length-u.length,t=u,i(c,p-f,p)}else{var m=t.indexOf("<");if(0===m){if(lh.test(t)){var y=t.indexOf("--\x3e");if(y>=0){e.shouldKeepComment&&e.comment(t.substring(4,y)),r(y+3);continue}}if(ph.test(t)){var v=t.indexOf("]>");if(v>=0){r(v+2);continue}}var g=t.match(hh);if(g){r(g[0].length);continue}var b=t.match(oh);if(b){var _=p;r(b[0].length),i(b[1],_,p);continue}var x=function(){var e=t.match(ah);if(e){var i={tagName:e[1],attrs:[],start:p};r(e[0].length);for(var n,a;!(n=t.match(sh))&&(a=t.match(rh));)r(a[0].length),i.attrs.push(a);if(n)return i.unarySlash=n[1],r(n[0].length),i.end=p,i}}();if(x){!function(t){var r=t.tagName,n=t.unarySlash;o&&("p"===a&&eh(r)&&i(a),l(r)&&a===r&&i(r));for(var p=h(r)||!!n,f=t.attrs.length,c=new Array(f),d=0;d=0){for(k=t.slice(m);!(oh.test(k)||ah.test(k)||lh.test(k)||ph.test(k)||(S=k.indexOf("<",1))<0);)m+=S,k=t.slice(m);E=t.substring(0,m),r(m)}m<0&&(E=t,t=""),e.chars&&E&&e.chars(E)}if(t===n){e.chars&&e.chars(t);break}}i()}function Ui(t,e,r){return{type:1,tag:t,attrsList:e,attrsMap:dn(e),parent:r,children:[]}}function Xi(t,e){function r(t){t.pre&&(o=!1),vh(t.tag)&&(h=!1);for(var r=0;r':'
',Eh.innerHTML.indexOf(" ")>0}function aa(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}/*! * Vue.js v2.5.16 * (c) 2014-2018 Evan You * Released under the MIT License. */ var sa=Object.freeze({}),oa=Object.prototype.toString,ha=u("slot,component",!0),la=u("key,ref,slot,slot-scope,is"),pa=Object.prototype.hasOwnProperty,fa=/-(\w)/g,ca=v(function(t){return t.replace(fa,function(t,e){return e?e.toUpperCase():""})}),da=v(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),ua=/\B([A-Z])/g,ma=v(function(t){return t.replace(ua,"-$1").toLowerCase()}),ya=Function.prototype.bind?b:g,va=function(t,e,r){return!1},ga=function(t){return t},ba="data-server-rendered",_a=["component","directive","filter"],xa=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured"],Ea={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:va,isReservedAttr:va,isUnknownElement:va,getTagNamespace:k,parsePlatformTagName:ga,mustUseProp:va,_lifecycleHooks:xa},ka=/[^\w.$]/,Sa="__proto__"in{},Ca="undefined"!=typeof window,Pa="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,Aa=Pa&&WXEnvironment.platform.toLowerCase(),wa=Ca&&window.navigator.userAgent.toLowerCase(),Ta=wa&&/msie|trident/.test(wa),Ma=wa&&wa.indexOf("msie 9.0")>0,Da=wa&&wa.indexOf("edge/")>0,Fa=(wa&&wa.indexOf("android"),wa&&/iphone|ipad|ipod|ios/.test(wa)||"ios"===Aa),Ia=(wa&&/chrome\/\d+/.test(wa),{}.watch),Va=!1;if(Ca)try{var Ra={};Object.defineProperty(Ra,"passive",{get:function(){Va=!0}}),window.addEventListener("test-passive",null,Ra)}catch(t){}var Ba,Oa,La=function(){return void 0===Ba&&(Ba=!Ca&&!Pa&&void 0!==t&&"server"===t.process.env.VUE_ENV),Ba},Na=Ca&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,za="undefined"!=typeof Symbol&&M(Symbol)&&"undefined"!=typeof Reflect&&M(Reflect.ownKeys);Oa="undefined"!=typeof Set&&M(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var Ga=k,$a=0,ja=function(){this.id=$a++,this.subs=[]};ja.prototype.addSub=function(t){this.subs.push(t)},ja.prototype.removeSub=function(t){m(this.subs,t)},ja.prototype.depend=function(){ja.target&&ja.target.addDep(this)},ja.prototype.notify=function(){for(var t=this.subs.slice(),e=0,r=t.length;e1?_(r):r;for(var i=_(arguments,1),n=0,a=r.length;nparseInt(this.max)&&He(h,l[0],l,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},Ms={KeepAlive:Ts};!function(t){var e={};e.get=function(){return Ea},Object.defineProperty(t,"config",e),t.util={warn:Ga,extend:x,mergeOptions:J,defineReactive:N},t.set=z,t.delete=G,t.nextTick=ht,t.options=Object.create(null),_a.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,x(t.options.components,Ms),Re(t),Be(t),Oe(t),ze(t)}(Ve),Object.defineProperty(Ve.prototype,"$isServer",{get:La}),Object.defineProperty(Ve.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Ve,"FunctionalRenderContext",{value:ve}),Ve.version="2.5.16";var Ds,Fs,Is,Vs,Rs,Bs,Os,Ls,Ns,zs=u("style,class"),Gs=u("input,textarea,option,select,progress"),$s=function(t,e,r){return"value"===r&&Gs(t)&&"button"!==e||"selected"===r&&"option"===t||"checked"===r&&"input"===t||"muted"===r&&"video"===t},js=u("contenteditable,draggable,spellcheck"),Hs=u("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Ws="http://www.w3.org/1999/xlink",qs=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Us=function(t){return qs(t)?t.slice(6,t.length):""},Xs=function(t){return null==t||!1===t},Ys={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Js=u("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Ks=u("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Zs=function(t){return"pre"===t},Qs=function(t){return Js(t)||Ks(t)},to=Object.create(null),eo=u("text,number,password,search,email,tel,url"),ro=Object.freeze({createElement:er,createElementNS:rr,createTextNode:ir,createComment:nr,insertBefore:ar,removeChild:sr,appendChild:or,parentNode:hr,nextSibling:lr,tagName:pr,setTextContent:fr,setStyleScope:cr}),io={create:function(t,e){dr(e)},update:function(t,e){t.data.ref!==e.data.ref&&(dr(t,!0),dr(e))},destroy:function(t){dr(t,!0)}},no=new Wa("",{},[]),ao=["create","activate","update","remove","destroy"],so={create:vr,update:vr,destroy:function(t){vr(t,no)}},oo=Object.create(null),ho=[io,so],lo={create:Er,update:Er},po={create:Cr,update:Cr},fo=/[\w).+\-_$\]]/,co="__r",uo="__c",mo={create:ti,update:ti},yo={create:ei,update:ei},vo=v(function(t){var e={},r=/;(?![^(]*\))/g,i=/:(.+)/;return t.split(r).forEach(function(t){if(t){var r=t.split(i);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}),go=/^--/,bo=/\s*!important$/,_o=function(t,e,r){if(go.test(e))t.style.setProperty(e,r);else if(bo.test(r))t.style.setProperty(e,r.replace(bo,""),"important");else{var i=Eo(e);if(Array.isArray(r))for(var n=0,a=r.length;nu?(f=i(r[v+1])?null:r[v+1].elm,g(t,f,r,d,v,a)):d>v&&_(t,e,c,u)}function k(t,e,r,i){for(var a=r;a\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ih="[a-zA-Z_][\\w\\-\\.]*",nh="((?:"+ih+"\\:)?"+ih+")",ah=new RegExp("^<"+nh),sh=/^\s*(\/?)>/,oh=new RegExp("^<\\/"+nh+"[^>]*>"),hh=/^]+>/i,lh=/^",""":'"',"&":"&"," ":"\n"," ":"\t"},Ph=/&(?:lt|gt|quot|amp);/g,Ah=/&(?:lt|gt|quot|amp|#10|#9);/g,wh=u("pre,textarea",!0),Th=function(t,e){return t&&wh(t)&&"\n"===e[0]},Mh=/^@|^v-on:/,Dh=/^v-|^@|^:/,Fh=/([^]*?)\s+(?:in|of)\s+([^]*)/,Ih=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Vh=/^\(|\)$/g,Rh=/:(.*)$/,Bh=/^:|^v-bind:/,Oh=/\.[^.]+/g,Lh=v(Zo.decode),Nh=/^xmlns:NS\d+/,zh=/^NS\d+:/,Gh={preTransformNode:vn},$h=[Jo,Ko,Gh],jh={model:Wr,text:bn,html:_n},Hh={expectHTML:!0,modules:$h,directives:jh,isPreTag:Zs,isUnaryTag:Qo,mustUseProp:$s,canBeLeftOpenTag:th,isReservedTag:Qs,getTagNamespace:Ze,staticKeys:function(t){return t.reduce(function(t,e){return t.concat(e.staticKeys||[])},[]).join(",")}($h)},Wh=v(En),qh=/^([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/,Uh=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Xh={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Yh={esc:"Escape",tab:"Tab",enter:"Enter",space:" ",up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete"]},Jh=function(t){return"if("+t+")return null;"},Kh={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Jh("$event.target !== $event.currentTarget"),ctrl:Jh("!$event.ctrlKey"),shift:Jh("!$event.shiftKey"),alt:Jh("!$event.altKey"),meta:Jh("!$event.metaKey"),left:Jh("'button' in $event && $event.button !== 0"),middle:Jh("'button' in $event && $event.button !== 1"),right:Jh("'button' in $event && $event.button !== 2")},Zh={on:Dn,bind:Fn,cloak:k},Qh=function(t){this.options=t,this.warn=t.warn||wr,this.transforms=Tr(t.modules,"transformCode"),this.dataGenFns=Tr(t.modules,"genData"),this.directives=x(x({},Zh),t.directives);var e=t.isReservedTag||va;this.maybeComponent=function(t){return!e(t.tag)},this.onceId=0,this.staticRenderFns=[]},tl=(new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)"),function(t){return function(e){function r(r,i){var n=Object.create(e),a=[],s=[];if(n.warn=function(t,e){(e?s:a).push(t)},i){i.modules&&(n.modules=(e.modules||[]).concat(i.modules)),i.directives&&(n.directives=x(Object.create(e.directives||null),i.directives));for(var o in i)"modules"!==o&&"directives"!==o&&(n[o]=i[o])}var h=t(r,n);return h.errors=a,h.tips=s,h}return{compile:r,compileToFunctions:ia(r)}}}(function(t,e){var r=Xi(t.trim(),e);!1!==e.optimize&&xn(r,e);var i=In(r,e);return{ast:r,render:i.render,staticRenderFns:i.staticRenderFns}})),el=tl(Hh),rl=el.compileToFunctions,il=!!Ca&&na(!1),nl=!!Ca&&na(!0),al=v(function(t){var e=tr(t);return e&&e.innerHTML}),sl=Ve.prototype.$mount;Ve.prototype.$mount=function(t,e){if((t=t&&tr(t))===document.body||t===document.documentElement)return this;var r=this.$options;if(!r.render){var i=r.template;if(i)if("string"==typeof i)"#"===i.charAt(0)&&(i=al(i));else{if(!i.nodeType)return this;i=i.innerHTML}else t&&(i=aa(t));if(i){var n=rl(i,{shouldDecodeNewlines:il,shouldDecodeNewlinesForHref:nl,delimiters:r.delimiters,comments:r.comments},this),a=n.render,s=n.staticRenderFns;r.render=a,r.staticRenderFns=s}}return sl.call(this,t,e)},Ve.compile=rl,e.default=Ve}.call(e,r(0),r(12).setImmediate)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(13),n=function(t){return t&&t.__esModule?t:{default:t}}(i),a=r(19),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}(a);e.default={name:"app",components:{lottie:n.default},data:function(){return{defaultOptions:{animationData:s},animationSpeed:1}},methods:{handleAnimation:function(t){this.anim=t},stop:function(){this.anim.stop()},play:function(){this.anim.play()},pause:function(){this.anim.pause()},onSpeedChange:function(){this.anim.setSpeed(this.animationSpeed)}}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(9),n=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default={props:{options:{type:Object,required:!0},height:Number,width:Number},data:function(){return{style:{width:this.width?this.width+"px":"100%",height:this.height?this.height+"px":"100%",overflow:"hidden",margin:"0 auto"}}},mounted:function(){this.anim=n.default.loadAnimation({container:this.$refs.lavContainer,renderer:"svg",loop:!1!==this.options.loop,autoplay:!1!==this.options.autoplay,animationData:this.options.animationData,rendererSettings:this.options.rendererSettings}),this.$emit("animCreated",this.anim)}}},function(t,e,r){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}var n=r(3),a=i(n),s=r(2),o=i(s);new a.default({el:"#app",render:function(t){return t(o.default)}})},function(t,e,r){e=t.exports=r(8)(),e.push([t.i,"#app{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:center;color:#2c3e50;margin-top:60px}h1,h2{font-weight:400}ul{list-style-type:none;padding:0}li{display:inline-block;margin:0 10px}a{color:#42b983}",""])},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e0;--r)i+=e[Math.round(Math.random()*(e.length-1))];return i}function HSVtoRGB(t,e,r){var i,n,a,s,o,h,l,p;switch(s=Math.floor(6*t),o=6*t-s,h=r*(1-e),l=r*(1-o*e),p=r*(1-(1-o)*e),s%6){case 0:i=r,n=p,a=h;break;case 1:i=l,n=r,a=h;break;case 2:i=h,n=r,a=p;break;case 3:i=h,n=l,a=r;break;case 4:i=p,n=h,a=r;break;case 5:i=r,n=h,a=l}return[i,n,a]}function RGBtoHSV(t,e,r){var i,n=Math.max(t,e,r),a=Math.min(t,e,r),s=n-a,o=0===n?0:s/n,h=n/255;switch(n){case a:i=0;break;case t:i=e-r+s*(e1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[2]+=e,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[0]+=e/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}function BaseEvent(){}function createSizedArray(t){return Array.apply(null,{length:t})}function createNS(t){return document.createElementNS(svgNS,t)}function createTag(t){return document.createElement(t)}function addDynamicProperty(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this))}function extendPrototype(t,e){var r,i,n=t.length;for(r=0;r-.001&&s<.001}function e(e,r,i,n,a,s,o,h,l){if(0===i&&0===s&&0===l)return t(e,r,n,a,o,h);var p,f=Math.sqrt(Math.pow(n-e,2)+Math.pow(a-r,2)+Math.pow(s-i,2)),c=Math.sqrt(Math.pow(o-e,2)+Math.pow(h-r,2)+Math.pow(l-i,2)),d=Math.sqrt(Math.pow(o-n,2)+Math.pow(h-a,2)+Math.pow(l-s,2));return(p=f>c?f>d?f-c-d:d-c-f:d>c?d-c-f:c-f-d)>-1e-4&&p<1e-4}function r(t){var e,r=segments_length_pool.newElement(),i=t.c,n=t.v,a=t.o,s=t.i,o=t._length,l=r.lengths,p=0;for(e=0;es?-1:1,l=!0;l;)if(i[a]<=s&&i[a+1]>s?(o=(s-i[a])/(i[a+1]-i[a]),l=!1):a+=h,a<0||a>=n-1){if(a===n-1)return r[a];l=!1}return r[a]+(r[a+1]-r[a])*o}function s(t,e,r,i,n,s){var o=a(n,s),h=1-o;return[Math.round(1e3*(h*h*h*t[0]+(o*h*h+h*o*h+h*h*o)*r[0]+(o*o*h+h*o*o+o*h*o)*i[0]+o*o*o*e[0]))/1e3,Math.round(1e3*(h*h*h*t[1]+(o*h*h+h*o*h+h*h*o)*r[1]+(o*o*h+h*o*o+o*h*o)*i[1]+o*o*o*e[1]))/1e3]}function o(t,e,r,i,n,s,o){n=n<0?0:n>1?1:n;var h=a(n,o);s=s>1?1:s;var l,f=a(s,o),c=t.length,d=1-h,u=1-f,m=d*d*d,y=h*d*d*3,v=h*h*d*3,g=h*h*h,b=d*d*u,_=h*d*u+d*h*u+d*d*f,x=h*h*u+d*h*f+h*d*f,E=h*h*f,k=d*u*u,S=h*u*u+d*f*u+d*u*f,C=h*f*u+d*f*f+h*u*f,P=h*f*f,A=u*u*u,w=f*u*u+u*f*u+u*u*f,T=f*f*u+u*f*f+f*u*f,M=f*f*f;for(l=0;l=0;e-=1)if("sh"==t[e].ty){if(t[e].ks.k.i)i(t[e].ks.k);else for(a=t[e].ks.k.length,n=0;nr[0]||!(r[0]>t[0])&&(t[1]>r[1]||!(r[1]>t[1])&&(t[2]>r[2]||!(r[2]>t[2])&&void 0))}function a(e,r){e.__complete||(l(e),o(e),h(e),p(e),t(e.layers,e.assets,r),e.__complete=!0)}function s(t,e){0!==t.t.a.length||"m"in t.t.p||(t.singleShape=!0)}var o=function(){function t(t){var e=t.t.d;t.t.d={k:[{s:e,t:0}]}}function e(e){var r,i=e.length;for(r=0;r=0;r-=1)if("sh"==e[r].ty){if(e[r].ks.k.i)e[r].ks.k.c=e[r].closed;else for(n=e[r].ks.k.length,i=0;i0&&(this.maskElement.setAttribute("id",y),this.element.maskedElement.setAttribute(g,"url("+locationHref+"#"+y+")"),n.appendChild(this.maskElement))}function HierarchyElement(){}function FrameElement(){}function TransformElement(){}function RenderableElement(){}function RenderableDOMElement(){}function ProcessedElement(t,e){this.elem=t,this.pos=e}function SVGStyleData(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!1,this.pElem=createNS("path"),this.msElem=null}function SVGShapeData(t,e,r){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=r,this.lvl=e}function SVGTransformData(t,e){this.transform={mProps:t,op:e},this.elements=[]}function SVGStrokeStyleData(t,e,r){this.o=PropertyFactory.getProp(t,e.o,0,.01,t),this.w=PropertyFactory.getProp(t,e.w,0,null,t),this.d=new DashProperty(t,e.d||{},"svg",t),this.c=PropertyFactory.getProp(t,e.c,1,255,t),this.style=r}function SVGFillStyleData(t,e,r){this.o=PropertyFactory.getProp(t,e.o,0,.01,t),this.c=PropertyFactory.getProp(t,e.c,1,255,t),this.style=r}function SVGGradientFillStyleData(t,e,r){this.initGradientData(t,e,r)}function SVGGradientStrokeStyleData(t,e,r){this.w=PropertyFactory.getProp(t,e.w,0,null,t),this.d=new DashProperty(t,e.d||{},"svg",t),this.initGradientData(t,e,r)}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function BaseElement(){}function NullElement(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initFrame(),this.initTransform(t,e,r),this.initHierarchy()}function SVGBaseElement(){}function IShapeElement(){}function ITextElement(){}function ICompElement(){}function IImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,r)}function ISolidElement(t,e,r){this.initElement(t,e,r)}function SVGCompElement(t,e,r){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function SVGTextElement(t,e,r){this.textSpans=[],this.renderType="svg",this.initElement(t,e,r)}function SVGShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.initElement(t,e,r),this.prevViewData=[]}function SVGTintFilter(t,e){this.filterManager=e;var r=createNS("feColorMatrix");if(r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","linearRGB"),r.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),r.setAttribute("result","f1"),t.appendChild(r),r=createNS("feColorMatrix"),r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","sRGB"),r.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),r.setAttribute("result","f2"),t.appendChild(r),this.matrixFilter=r,100!==e.effectElements[2].p.v||e.effectElements[2].p.k){var i=createNS("feMerge");t.appendChild(i);var n;n=createNS("feMergeNode"),n.setAttribute("in","SourceGraphic"),i.appendChild(n),n=createNS("feMergeNode"),n.setAttribute("in","f2"),i.appendChild(n)}}function SVGFillFilter(t,e){this.filterManager=e;var r=createNS("feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","sRGB"),r.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),t.appendChild(r),this.matrixFilter=r}function SVGStrokeEffect(t,e){this.initialized=!1,this.filterManager=e,this.elem=t,this.paths=[]}function SVGTritoneFilter(t,e){this.filterManager=e;var r=createNS("feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","linearRGB"),r.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),r.setAttribute("result","f1"),t.appendChild(r);var i=createNS("feComponentTransfer");i.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(i),this.matrixFilter=i;var n=createNS("feFuncR");n.setAttribute("type","table"),i.appendChild(n),this.feFuncR=n;var a=createNS("feFuncG");a.setAttribute("type","table"),i.appendChild(a),this.feFuncG=a;var s=createNS("feFuncB");s.setAttribute("type","table"),i.appendChild(s),this.feFuncB=s}function SVGProLevelsFilter(t,e){this.filterManager=e;var r=this.filterManager.effectElements,i=createNS("feComponentTransfer");(r[10].p.k||0!==r[10].p.v||r[11].p.k||1!==r[11].p.v||r[12].p.k||1!==r[12].p.v||r[13].p.k||0!==r[13].p.v||r[14].p.k||1!==r[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",i)),(r[17].p.k||0!==r[17].p.v||r[18].p.k||1!==r[18].p.v||r[19].p.k||1!==r[19].p.v||r[20].p.k||0!==r[20].p.v||r[21].p.k||1!==r[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",i)),(r[24].p.k||0!==r[24].p.v||r[25].p.k||1!==r[25].p.v||r[26].p.k||1!==r[26].p.v||r[27].p.k||0!==r[27].p.v||r[28].p.k||1!==r[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",i)),(r[31].p.k||0!==r[31].p.v||r[32].p.k||1!==r[32].p.v||r[33].p.k||1!==r[33].p.v||r[34].p.k||0!==r[34].p.v||r[35].p.k||1!==r[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",i)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(i.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(i),i=createNS("feComponentTransfer")),(r[3].p.k||0!==r[3].p.v||r[4].p.k||1!==r[4].p.v||r[5].p.k||1!==r[5].p.v||r[6].p.k||0!==r[6].p.v||r[7].p.k||1!==r[7].p.v)&&(i.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(i),this.feFuncRComposed=this.createFeFunc("feFuncR",i),this.feFuncGComposed=this.createFeFunc("feFuncG",i),this.feFuncBComposed=this.createFeFunc("feFuncB",i))}function SVGDropShadowEffect(t,e){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","400%"),t.setAttribute("height","400%"),this.filterManager=e;var r=createNS("feGaussianBlur");r.setAttribute("in","SourceAlpha"),r.setAttribute("result","drop_shadow_1"),r.setAttribute("stdDeviation","0"),this.feGaussianBlur=r,t.appendChild(r);var i=createNS("feOffset");i.setAttribute("dx","25"),i.setAttribute("dy","0"),i.setAttribute("in","drop_shadow_1"),i.setAttribute("result","drop_shadow_2"),this.feOffset=i,t.appendChild(i);var n=createNS("feFlood");n.setAttribute("flood-color","#00ff00"),n.setAttribute("flood-opacity","1"),n.setAttribute("result","drop_shadow_3"),this.feFlood=n,t.appendChild(n);var a=createNS("feComposite");a.setAttribute("in","drop_shadow_3"),a.setAttribute("in2","drop_shadow_2"),a.setAttribute("operator","in"),a.setAttribute("result","drop_shadow_4"),t.appendChild(a);var s=createNS("feMerge");t.appendChild(s);var o;o=createNS("feMergeNode"),s.appendChild(o),o=createNS("feMergeNode"),o.setAttribute("in","SourceGraphic"),this.feMergeNode=o,this.feMerge=s,this.originalNodeAdded=!1,s.appendChild(o)}function SVGMatte3Effect(t,e,r){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}function SVGEffects(t){var e,r=t.data.ef?t.data.ef.length:0,i=randomString(10),n=filtersFactory.createFilter(i),a=0;this.filters=[];var s;for(e=0;e1&&(defaultCurveSegments=t);roundValues(!(defaultCurveSegments>=50))}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(t,e){"expressions"===t&&(expressionsPlugin=e)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split("&"),r=0;r=y;)t/=2,e/=2,r>>>=1;return(t+r)/e};return _.int32=function(){return 0|b.g(4)},_.quick=function(){return b.g(4)/4294967296},_.double=_,s(h(b.S),t),(l.pass||p||function(t,r,i,a){return a&&(a.S&&n(a,b),t.state=function(){return n(b,{})}),i?(e[d]=t,r):t})(_,g,"global"in l?l.global:this==e,l.state)}function i(t){var e,r=t.length,i=this,n=0,a=i.i=i.j=0,s=i.S=[];for(r||(t=[r++]);n0?r=o:e=o}while(Math.abs(s)>c&&++h=.001?o(t,f,e,r):0===c?f:s(t,n,n+m,e,r)}},l}();!function(){for(var t=0,e=["ms","moz","webkit","o"],r=0;r=h.t-s){o.h&&(o=h),l=0;break}if(h.t-s>t){l=p;break}p=h.t-s||t=h.t-s?b.points.length-1:0;for(u=b.points[_].point.length,d=0;d=k&&E=h.t-s)a[0]=o.e[0],a[1]=o.e[1],a[2]=o.e[2];else if(t<=o.t-s)a[0]=o.s[0],a[1]=o.s[1],a[2]=o.s[2];else{var T=i(o.s),M=i(o.e),D=(t-(o.t-s))/(h.t-s-(o.t-s));r(a,e(T,M,D))}else for(p=0;p=h.t-s?m=1:t1e-6?(i=Math.acos(n),a=Math.sin(i),s=Math.sin((1-r)*i)/a,o=Math.sin(r*i)/a):(s=1-r,o=r),h[0]=s*l+o*d,h[1]=s*p+o*u,h[2]=s*f+o*m,h[3]=s*c+o*y,h}function r(t,e){var r=e[0],i=e[1],n=e[2],a=e[3],s=Math.atan2(2*i*a-2*r*n,1-2*i*i-2*n*n),o=Math.asin(2*r*i+2*n*a),h=Math.atan2(2*r*a-2*i*n,1-2*r*r-2*n*n);t[0]=s/degToRads,t[1]=o/degToRads,t[2]=h/degToRads}function i(t){var e=t[0]*degToRads,r=t[1]*degToRads,i=t[2]*degToRads,n=Math.cos(e/2),a=Math.cos(r/2),s=Math.cos(i/2),o=Math.sin(e/2),h=Math.sin(r/2),l=Math.sin(i/2);return[o*h*s+n*a*l,o*a*s+n*h*l,n*h*s-o*a*l,n*a*s-o*h*l]}function n(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==d&&(this._caching.lastFrame>=r&&t>=r||this._caching.lastFrame1e-5&&(this.v=e,this._mdf=!0);else for(var r=0,i=this.v.length;r1e-5&&(this.v[r]=e,this._mdf=!0),r+=1}function s(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length){if(this.lock)return void this.setVValue(this.pv);this.lock=!0,this._mdf=this._isFirstFrame;var t,e=this.effectsSequence.length,r=this.kf?this.pv:this.data.k;for(t=0;t=this.p.keyframes[this.p.keyframes.length-1].t?(e=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/this.elem.globalData.frameRate,0),r=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.01)/this.elem.globalData.frameRate,0)):(e=this.p.pv,r=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/this.elem.globalData.frameRate,this.p.offsetTime)),this.v.rotate(-Math.atan2(e[1]-r[1],e[0]-r[0]))}this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function i(){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]))}function n(){}function a(t,e,r){if(this.elem=t,this.frameId=-1,this.propType="transform",this.container=r||t,this.dynamicProperties=[],this._mdf=!1,this.data=e,this.v=new Matrix,e.p.s?(this.px=PropertyFactory.getProp(t,e.p.x,0,0,this),this.py=PropertyFactory.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=PropertyFactory.getProp(t,e.p.z,0,0,this))):this.p=PropertyFactory.getProp(t,e.p,1,0,this),e.r)this.r=PropertyFactory.getProp(t,e.r,0,degToRads,this);else if(e.rx){if(this.rx=PropertyFactory.getProp(t,e.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(t,e.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(t,e.rz,0,degToRads,this),e.or.k[0].ti){var i,n=e.or.k.length;for(i=0;i=this._maxLength&&this.doubleArrayLength(),r){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o}(!a[i]||a[i]&&!n)&&(a[i]=point_pool.newElement()),a[i][0]=t,a[i][1]=e},ShapePath.prototype.setTripleAt=function(t,e,r,i,n,a,s,o){this.setXYAt(t,e,"v",s,o),this.setXYAt(r,i,"o",s,o),this.setXYAt(n,a,"i",s,o)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,r=this.o,i=this.i,n=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],i[0][0],i[0][1],r[0][0],r[0][1],0,!1),n=1);var a,s=this._length-1,o=this._length;for(a=n;a=this.keyframes[this.keyframes.length-1].t-this.offsetTime)i=1===this.keyframes[this.keyframes.length-2].h?this.keyframes[this.keyframes.length-1].s[0]:this.keyframes[this.keyframes.length-2].e[0],a=!0;else{for(var d,u,m=c,y=this.keyframes.length-1,v=!0;v&&(d=this.keyframes[m],u=this.keyframes[m+1],!(u.t-this.offsetTime>t));)m=u.t-this.offsetTime)p=1;else if(tr&&t>r)||(this._caching.lastIndex=i=1?a.push({s:t-1,e:e-1}):(a.push({s:t,e:1}),a.push({s:0,e:e-1}));var s,o,h=[],l=a.length;for(s=0;si+r);else{var p,f;p=o.s*n<=i?0:(o.s*n-i)/r,f=o.e*n>=i+r?1:(o.e*n-i)/r,h.push([p,f])}return h.length||h.push([0,0]),h},TrimModifier.prototype.releasePathsData=function(t){var e,r=t.length;for(e=0;er){var n=e;e=r,r=n}this.sValue=e,this.eValue=r}else e=this.sValue,r=this.eValue;var a,s,o,h,l,p,f,c=this.shapes.length,d=0;if(r===e)for(s=0;s=0;s-=1)if(u=this.shapes[s],u.shape._mdf){for(m=u.localShapeCollection,m.releaseShapes(),2===this.m&&c>1?(v=this.calculateShapeEdges(e,r,u.totalShapeLength,_,d),_+=u.totalShapeLength):v=[[g,b]],h=v.length,o=0;o=1?y.push({s:u.totalShapeLength*(g-1),e:u.totalShapeLength*(b-1)}):(y.push({s:u.totalShapeLength*g,e:u.totalShapeLength}),y.push({s:0,e:u.totalShapeLength*(b-1)}));var x=this.addShapes(u,y[0]);if(y[0].s!==y[0].e){if(y.length>1)if(u.shape.v.c){var E=x.pop();this.addPaths(x,m),x=this.addShapes(u,y[1],E)}else this.addPaths(x,m),x=this.addShapes(u,y[1]);this.addPaths(x,m)}}u.shape.paths=m}}},TrimModifier.prototype.addPaths=function(t,e){var r,i=t.length;for(r=0;re.e){r.c=!1;break}e.s<=u&&e.e>=u+s.addedLength?(this.addSegment(c[i].v[n-1],c[i].o[n-1],c[i].i[n],c[i].v[n],r,o,y),y=!1):(l=bez.getNewSegment(c[i].v[n-1],c[i].v[n],c[i].o[n-1],c[i].i[n],(e.s-u)/s.addedLength,(e.e-u)/s.addedLength,h[n-1]),this.addSegmentFromArray(l,r,o,y),y=!1,r.c=!1),u+=s.addedLength,o+=1}if(c[i].c){if(s=h[n-1],u<=e.e){var v=h[n-1].addedLength;e.s<=u&&e.e>=u+v?(this.addSegment(c[i].v[n-1],c[i].o[n-1],c[i].i[0],c[i].v[0],r,o,y),y=!1):(l=bez.getNewSegment(c[i].v[n-1],c[i].v[0],c[i].o[n-1],c[i].i[0],(e.s-u)/v,(e.e-u)/v,h[n-1]),this.addSegmentFromArray(l,r,o,y),y=!1,r.c=!1)}else r.c=!1;u+=s.addedLength,o+=1}if(r._length&&(r.setXYAt(r.v[p][0],r.v[p][1],"i",p),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),u>e.e)break;i0;)r-=1,this._elements.unshift(e[r]),n+=1;this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,r=t.length;for(e=0;e0?Math.floor(l):Math.ceil(l),c=(this.tr.v.props,this.pMatrix.props),d=this.rMatrix.props,u=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var m=0;if(l>0){for(;mf;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),m-=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-p,!0),m-=p)}i=1===this.data.m?0:this._currentCopies-1,n=1===this.data.m?1:-1,a=this._currentCopies;for(var y,v;a;){if(e=this.elemsData[i].it,r=e[e.length-1].transform.mProps.v.props,v=r.length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,0!==m){for((0!==i&&1===n||i!==this._currentCopies-1&&-1===n)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],d[9],d[10],d[11],d[12],d[13],d[14],d[15]),this.matrix.transform(u[0],u[1],u[2],u[3],u[4],u[5],u[6],u[7],u[8],u[9],u[10],u[11],u[12],u[13],u[14],u[15]),this.matrix.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]),y=0;y.01)return!1;r+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t=o+lt||!u?(g=(o+lt-l)/h.partialLength,N=d.point[0]+(h.point[0]-d.point[0])*g,z=d.point[1]+(h.point[1]-d.point[1])*g,S.translate(-x[0]*A[n].an/200,-x[1]*R/100),p=!1):u&&(l+=h.partialLength,f+=1,f>=u.length&&(f=0,c+=1,m[c]?u=m[c].bezierData.points:_.v.c?(f=0,c=0,u=m[c].bezierData.points):(l-=h.partialLength,u=null)),u&&(d=h,h=u[f],y=h.partialLength));L=A[n].an/2-A[n].add,S.translate(-L,0,0)}else L=A[n].an/2-A[n].add,S.translate(-L,0,0),S.translate(-x[0]*A[n].an/200,-x[1]*R/100,0);for(et+=A[n].l/2,F=0;F1,this.kf},TextProperty.prototype.getValue=function(t){this._mdf=!1;var e=this.elem.globalData.frameId;if(e!==this._frameId&&this.kf||this._isFirstFrame||t){for(var r,i=this.data.d.k,n=this.elem.comp.renderedFrame,a=0,s=i.length;a<=s-1&&(r=i[a].s,!(a===s-1||i[a+1].t>n));)a+=1;this.keysIndex!==a&&(r.__complete||this.completeTextData(r),this.setCurrentData(r),this._mdf=!this._isFirstFrame,this.pv=this.v=this.currentData.t,this.keysIndex=a),this._frameId=e}},TextProperty.prototype.buildFinalText=function(t){for(var e=FontManager.getCombinedCharacterCodes(),r=[],i=0,n=t.length;iw&&" "!==P[e]?(-1===M?r+=1:e=M,C+=t.finalLineHeight||1.2*t.finalSize,P.splice(e,M===e?1:0,"\r"),M=-1,v=0):(v+=_,v+=S);C+=b.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&Tg?v:g,v=-2*S,n="",i=!0,m+=1):n=t.finalText[e],h.chars?(o=h.getCharData(D,b.fStyle,h.getFontByName(t.f).fFamily),_=i?0:o.w*t.finalSize/100):_=h.measureText(n,t.f,t.finalSize)," "===D?F+=_+S:(v+=_+S+F,F=0),p.push({l:_,an:_,add:d,n:i,anIndexes:[],val:n,line:m,animatorJustifyOffset:0}),2==c){if(d+=_,""===n||" "===n||e===r-1){for(""!==n&&" "!==n||(d-=_);u<=e;)p[u].an=d,p[u].ind=f,p[u].extra=_,u+=1;f+=1,d=0}}else if(3==c){if(d+=_,""===n||e===r-1){for(""===n&&(d-=_);u<=e;)p[u].an=d,p[u].ind=f,p[u].extra=_,u+=1;d=0,f+=1}}else p[f].ind=f,p[f].extra=0,f+=1;if(t.l=p,g=v>g?v:g,y.push(v),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=g,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=y;var I,V,R=l.a;s=R.length;var B,O,L=[];for(a=0;a=o?1:0:r(0,i(.5/(o-s)+(t-s)/(o-s),1)),a=e(a);else if(3==h)a=o===s?t>=o?0:1:1-r(0,i(.5/(o-s)+(t-s)/(o-s),1)),a=e(a);else if(4==h)o===s?a=0:(a=r(0,i(.5/(o-s)+(t-s)/(o-s),1)),a<.5?a*=2:a=1-2*(a-.5)),a=e(a);else if(5==h){if(o===s)a=0;else{var l=o-s;t=i(r(0,t+.5-s),o-s);var p=-l/2+t,f=l/2;a=Math.sqrt(1-p*p/(f*f))}a=e(a)}else 6==h?(o===s?a=0:(t=i(r(0,t+.5-s),o-s),a=(1+Math.cos(Math.PI+2*Math.PI*t/(o-s)))/2),a=e(a)):(t>=n(s)&&(a=t-s<0?1-(s-t):r(0,i(o-t,1))),a=e(a));return a*this.a.v},getValue:function(t){if(this._mdf=t||!1,this.dynamicProperties.length){var e,r=this.dynamicProperties.length;for(e=0;eo){var h=s;s=o,o=h}this.finalS=s,this.finalE=o}},{getTextSelectorProp:e}}(),pool_factory=function(){return function(t,e,r,i){function n(){var t;return s?(s-=1,t=h[s]):t=e(),t}function a(t){s===o&&(h=pooling.double(h),o*=2),r&&r(t),h[s]=t,s+=1}var s=0,o=t,h=createSizedArray(o);return{newElement:n,release:a}}}(),pooling=function(){function t(t){return t.concat(createSizedArray(t.length))}return{double:t}}(),point_pool=function(){function t(){return createTypedArray("float32",2)}return pool_factory(8,t)}(),shape_pool=function(){function t(){return new ShapePath}function e(t){var e,r=t._length;for(e=0;e=0;e--)this.elements[e]||(r=this.layers[e],r.ip-r.st<=t-this.layers[e].st&&r.op-r.st>t-this.layers[e].st&&this.buildItem(e)),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 13:return this.createCamera(t)}return this.createNull(t)},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t=0;e--)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e1&&(a+=" C"+e.o[i-1][0]+","+e.o[i-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),r.lastPath!==a){var s="";r.elem&&(e.c&&(s=t.inv?this.solidPath+a:a),r.elem.setAttribute("d",s)),r.lastPath=a}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){var r,i=this.dynamicProperties.length;for(r=0;rt?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){this.maskManager.renderFrame(this.finalTransform.mat),this.renderableEffectsManager.renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},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}}},function(){extendPrototype([RenderableElement,createProxyFunction({initElement:function(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initTransform(t,e,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.addMasks(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){(this.baseElement||this.layerElement).style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){(this.baseElement||this.layerElement).style.display="block"}this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement)}(),SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},SVGGradientFillStyleData.prototype.initGradientData=function(t,e,r){this.o=PropertyFactory.getProp(t,e.o,0,.01,t),this.s=PropertyFactory.getProp(t,e.s,1,null,t),this.e=PropertyFactory.getProp(t,e.e,1,null,t),this.h=PropertyFactory.getProp(t,e.h||{k:0},0,.01,t),this.a=PropertyFactory.getProp(t,e.a||{k:0},0,degToRads,t),this.g=new GradientProperty(t,e.g,t),this.style=r,this.stops=[],this.setGradientData(r.pElem,e),this.setGradientOpacity(e,r)},SVGGradientFillStyleData.prototype.setGradientData=function(t,e){var r="gr_"+randomString(10),i=createNS(1===e.t?"linearGradient":"radialGradient");i.setAttribute("id",r),i.setAttribute("spreadMethod","pad"),i.setAttribute("gradientUnits","userSpaceOnUse");var n,a,s,o=[];for(s=4*e.g.p,a=0;a=0;t-=1)this.shapeModifiers[t].processShapes(this._isFirstFrame)}},lcEnum:{1:"butt",2:"round",3:"square"},ljEnum:{1:"miter",2:"round",3:"butt"},searchProcessedElement:function(t){for(var e=0,r=this.processedElements.length;et?this.textSpans[t]:createNS(o?"path":"text"),b<=t&&(h.setAttribute("stroke-linecap","butt"),h.setAttribute("stroke-linejoin","round"),h.setAttribute("stroke-miterlimit","4"),this.textSpans[t]=h,this.layerElement.appendChild(h)),h.style.display="inherit"),p.reset(),p.scale(r.finalSize/100,r.finalSize/100),c&&(s[t].n&&(d=-y,u+=r.yOffset,u+=m?1:0,m=!1),this.applyTextPropertiesToMatrix(r,p,s[t].line,d,u),d+=s[t].l||0,d+=y),o?(g=this.globalData.fontManager.getCharData(r.finalText[t],i.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily),v=g&&g.data||{},l=v.shapes?v.shapes[0].it:[],c?f+=this.createPathShape(p,l):h.setAttribute("d",this.createPathShape(p,l))):(c&&h.setAttribute("transform","translate("+p.props[12]+","+p.props[13]+")"),h.textContent=s[t].val,h.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"));c&&h.setAttribute("d",f)}else{var _=this.textContainer,x="start";switch(r.j){case 1:x="end";break;case 2:x="middle"}_.setAttribute("text-anchor",x),_.setAttribute("letter-spacing",y);var E=this.buildTextContents(r.finalText);for(e=E.length,u=r.ps?r.ps[1]+r.ascent:0,t=0;t=0;o-=1){if(c=this.searchProcessedElement(t[o]),c?e[o]=r[c-1]:t[o]._render=s,"fl"==t[o].ty||"st"==t[o].ty||"gf"==t[o].ty||"gs"==t[o].ty)c?e[o].style.closed=!1:e[o]=this.createStyleElement(t[o],n),t[o]._render&&i.appendChild(e[o].style.pElem),m.push(e[o].style);else if("gr"==t[o].ty){if(c)for(l=e[o].it.length,h=0;h0;)n=t.transformers[f].mProps._mdf||n,l=t.transformers[f].mProps.v.props,h.transform(l[0],l[1],l[2],l[3],l[4],l[5],l[6],l[7],l[8],l[9],l[10],l[11],l[12],l[13],l[14],l[15]),p--,f--;else h=this.identityMatrix;if(o=t.sh.paths,r=o._length,n){for(i="",e=0;e=1?.99:e.h.v<=-1?-.99:e.h.v,g=m*v,b=Math.cos(y+e.a.v)*g+n[0],_=Math.sin(y+e.a.v)*g+n[1];r.setAttribute("fx",b),r.setAttribute("fy",_),i&&!e.g._collapsable&&(e.of.setAttribute("fx",b),e.of.setAttribute("fy",_))}}},SVGShapeElement.prototype.renderStroke=function(t,e){var r=e.style,i=e.d;i&&(i._mdf||this._isFirstFrame)&&i.dashStr&&(r.pElem.setAttribute("stroke-dasharray",i.dashStr),r.pElem.setAttribute("stroke-dashoffset",i.dashoffset[0])),e.c&&(e.c._mdf||this._isFirstFrame)&&r.pElem.setAttribute("stroke","rgb("+bm_floor(e.c.v[0])+","+bm_floor(e.c.v[1])+","+bm_floor(e.c.v[2])+")"),(e.o._mdf||this._isFirstFrame)&&r.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||this._isFirstFrame)&&(r.pElem.setAttribute("stroke-width",e.w.v),r.msElem&&r.msElem.setAttribute("stroke-width",e.w.v))},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapeData=null,this.itemsData=null},SVGTintFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v/100;this.matrixFilter.setAttribute("values",r[0]-e[0]+" 0 0 0 "+e[0]+" "+(r[1]-e[1])+" 0 0 0 "+e[1]+" "+(r[2]-e[2])+" 0 0 0 "+e[2]+" 0 0 0 "+i+" 0")}},SVGFillFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[2].p.v,r=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+e[0]+" 0 0 0 0 "+e[1]+" 0 0 0 0 "+e[2]+" 0 0 0 "+r+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var t,e,r,i,n=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(i=this.elem.maskManager.masksProperties.length,r=0):(r=this.filterManager.effectElements[0].p.v-1,i=r+1),e=createNS("g"),e.setAttribute("fill","none"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-dashoffset",1),r;r=l?d<0?i:n:i+c*Math.pow((a-t)/d,1/r),p[f++]=s,o+=256/255;return p.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,r=this.filterManager.effectElements;this.feFuncRComposed&&(t||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(e=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(e=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(e=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(e=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(e=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",e))}},SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*e[0]),Math.round(255*e[1]),Math.round(255*e[2])))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var r=this.filterManager.effectElements[3].p.v,i=(this.filterManager.effectElements[2].p.v-90)*degToRads,n=r*Math.cos(i),a=r*Math.sin(i);this.feOffset.setAttribute("dx",n),this.feOffset.setAttribute("dy",a)}}};var _svgMatteSymbols=[],_svgMatteMaskCounter=0;SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,r=_svgMatteSymbols.length;e=0;e-=1)_[e].animation.destroy(t)}function y(t,r,i){var n,a=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),s=a.length;for(n=0;nthis.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip),this.animationData.tf=this.totalFrames);var e,r,i=this.animationData.layers,n=i.length,a=t.layers,s=a.length;for(r=0;rthis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame()},AnimationItem.prototype.renderFrame=function(){!1!==this.isLoaded&&this.renderer.renderFrame(this.currentFrame+this.firstFrame)},AnimationItem.prototype.play=function(t){t&&this.name!=t||!0===this.isPaused&&(this.isPaused=!1,this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!=t||!1===this.isPaused&&(this.isPaused=!0,this._idle=!0,this.trigger("_idle"))},AnimationItem.prototype.togglePause=function(t){t&&this.name!=t||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!=t||(this.pause(),this.playCount=0,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.goToAndStop=function(t,e,r){r&&this.name!=r||(e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier),this.pause())},AnimationItem.prototype.goToAndPlay=function(t,e,r){this.goToAndStop(t,e,r),this.play()},AnimationItem.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,r=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e%this.totalFrames)||(r=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(r=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e),r&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.timeCompleted=this.totalFrames=t[0]-t[1],this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.timeCompleted=this.totalFrames=t[1]-t[0],this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,e){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFramee&&(r=e-t)),this.firstFrame=t,this.timeCompleted=this.totalFrames=e-t,-1!==r&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(t,e){if("object"==typeof t[0]){var r,i=t.length;for(r=0;rr&&"meet"===a||ir&&"slice"===a)?(t-this.transformCanvas.w*(e/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===o&&(ir&&"slice"===a)?(t-this.transformCanvas.w*(e/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===h&&(i>r&&"meet"===a||ir&&"meet"===a||i=0;t-=1)this.elements[t]&&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&&!0===this.renderConfig.clearCanvas||this.destroyed||-1===t)){this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!1,this.globalData.projectInterface.currentFrame=t;var e,r=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=0;e=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRenderer.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!=this.layers[t].ty){var r=this.createItem(this.layers[t],this,this.globalData);e[t]=r,r.initExpressions()}},CanvasRenderer.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){this.pendingElements.pop().checkParenting()}},CanvasRenderer.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRenderer.prototype.show=function(){this.animationItem.container.style.display="block"},extendPrototype([BaseRenderer],HybridRenderer),HybridRenderer.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRenderer.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){this.pendingElements.pop().checkParenting()}},HybridRenderer.prototype.appendElementInPos=function(t,e){var r=t.getBaseElement();if(r){var i=this.layers[e];if(i.ddd&&this.supports3d)this.addTo3dContainer(r,e);else{for(var n,a,s,o=0;o=t)return this.threeDElements[e].perspectiveElem;e+=1}},HybridRenderer.prototype.createThreeDContainer=function(t){var e=createTag("div");styleDiv(e),e.style.width=this.globalData.compSize.w+"px",e.style.height=this.globalData.compSize.h+"px",e.style.transformOrigin=e.style.mozTransformOrigin=e.style.webkitTransformOrigin="50% 50%";var r=createTag("div");styleDiv(r),r.style.transform=r.style.webkitTransform="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)",e.appendChild(r),this.resizerElem.appendChild(e);var i={container:r,perspectiveElem:e,startPos:t,endPos:t};return this.threeDElements.push(i),i},HybridRenderer.prototype.build3dContainers=function(){var t,e,r=this.layers.length;for(t=0;ts?(t=n/this.globalData.compSize.w,e=n/this.globalData.compSize.w,r=0,i=(a-this.globalData.compSize.h*(n/this.globalData.compSize.w))/2):(t=a/this.globalData.compSize.h,e=a/this.globalData.compSize.h,r=(n-this.globalData.compSize.w*(a/this.globalData.compSize.h))/2,i=0),this.resizerElem.style.transform=this.resizerElem.style.webkitTransform="matrix3d("+t+",0,0,0,0,"+e+",0,0,0,0,1,0,"+r+","+i+",0,1)"},HybridRenderer.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRenderer.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRenderer.prototype.show=function(){this.resizerElem.style.display="block"},HybridRenderer.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var t,e=this.globalData.compSize.w,r=this.globalData.compSize.h,i=this.threeDElements.length;for(t=0;to?(r=a,e=r*o):(e=n,r=e/o),i.drawImage(this.img,(n-e)/2,(a-r)/2,e,r,0,0,this.assetData.w,this.assetData.h),this.img=t}},CVImageElement.prototype.imageFailed=function(){this.failed=!0,this.globalData.elementLoaded()},CVImageElement.prototype.createContent=function(){var t=this.img;t.addEventListener("load",this.imageLoaded.bind(this),!1),t.addEventListener("error",this.imageFailed.bind(this),!1);var e=this.globalData.getAssetsPath(this.assetData);t.src=e},CVImageElement.prototype.renderInnerContent=function(t){this.failed||this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([CanvasRenderer,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=e-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){var t,e=this.layers.length;for(t=e-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null},CVMaskElement.prototype.renderFrame=function(t){if(this.hasMasks){var e,r,i,n,a=this.element.canvasContext,s=this.masksProperties.length;for(a.beginPath(),e=0;e=0;n-=1){if(o=this.searchProcessedElement(t[n]),o?e[n]=r[o-1]:t[n]._render=i,"fl"==t[n].ty||"st"==t[n].ty)o?e[n].style.closed=!1:e[n]=this.createStyleElement(t[n]),p.push(e[n].style);else if("gr"==t[n].ty){if(o)for(s=e[n].it.length,a=0;a=0;n-=1)"tr"==e[n].ty?(a=r[n].transform,this.renderShapeTransform(t,a)):"sh"==e[n].ty||"el"==e[n].ty||"rc"==e[n].ty||"sr"==e[n].ty?this.renderPath(e[n],r[n],a):"fl"==e[n].ty?this.renderFill(e[n],r[n],a):"st"==e[n].ty?this.renderStroke(e[n],r[n],a):"gr"==e[n].ty?this.renderShape(a,e[n].it,r[n].it):e[n].ty;i&&this.drawLayer()},CVShapeElement.prototype.renderPath=function(t,e,r){var i,n,a,s;if(r._matMdf||e.sh._mdf||this._isFirstFrame){var o=e.sh.paths,h=r.mat;s=!1===t._render?0:o._length;var l=e.trNodes;for(l.length=0,a=0;a=0;t-=1){var i=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-i.p.v[0],-i.p.v[1],i.p.v[2]),this.mat.rotateX(-i.rx.v).rotateY(-i.ry.v).rotateZ(i.rz.v),this.mat.scale(1/i.s.v[0],1/i.s.v[1],1/i.s.v[2]),this.mat.translate(i.a.v[0],i.a.v[1],i.a.v[2])}}if(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]],a=Math.sqrt(Math.pow(n[0],2)+Math.pow(n[1],2)+Math.pow(n[2],2)),s=[n[0]/a,n[1]/a,n[2]/a],o=Math.sqrt(s[2]*s[2]+s[0]*s[0]),h=Math.atan2(s[1],o),l=Math.atan2(s[0],-s[2]);this.mat.rotateY(l).rotateX(-h)}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._prevMat.equals(this.mat)&&this.comp.threeDElements){e=this.comp.threeDElements.length;var p;for(t=0;tr){var i=r;r=e,e=i}return Math.min(Math.max(t,e),r)}function radiansToDegrees(t){return t/degToRads}function degreesToRadians(t){return t*degToRads}function length(t,e){if("number"==typeof t||t instanceof Number)return e=e||0,Math.abs(t-e);e||(e=helperLengthArray);var r,i=Math.min(t.length,e.length),n=0;for(r=0;r.5?l/(2-s-o):l/(s+o),s){case i:e=(n-a)/l+(n1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function hslToRgb(t){var e,r,i,n=t[0],a=t[1],s=t[2];if(0===a)e=r=i=s;else{var o=s<.5?s*(1+a):s+a-s*a,h=2*s-o;e=hue2rgb(h,o,n+1/3),r=hue2rgb(h,o,n),i=hue2rgb(h,o,n-1/3)}return[e,r,i,t[3]]}function linear(t,e,r,i,n){if(void 0===i||void 0===n)return linear(t,0,1,e,r);if(t<=e)return i;if(t>=r)return n;var a=r===e?0:(t-e)/(r-e);if(!i.length)return i+(n-i)*a;var s,o=i.length,h=createTypedArray("float32",o);for(s=0;sdata.k[e].t&&tdata.k[e+1].t-t?(r=e+2,i=data.k[e+1].t):(r=e+1,i=data.k[e].t);break}}-1===r&&(r=e+1,i=data.k[e].t)}else r=0,i=0;var a={};return a.index=r,a.time=i/elem.comp.globalData.frameRate,a}function key(t){var e,r,i;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate};var n;for(n=t!==data.k.length-1||data.k[t].h?data.k[t].s:data.k[t-1].e,i=n.length,r=0;r1){for(i=0;in.length-1)&&(e=n.length-1),o=n[n.length-1-e].t,s=a-o);var h,l,p;if("pingpong"===t){if(Math.floor((i-o)/s)%2!=0)return this.getValueAtTime((s-(i-o)%s+o)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var f=this.getValueAtTime(o/this.comp.globalData.frameRate,0),c=this.getValueAtTime(a/this.comp.globalData.frameRate,0),d=this.getValueAtTime(((i-o)%s+o)/this.comp.globalData.frameRate,0),u=Math.floor((i-o)/s);if(this.pv.length){for(p=new Array(f.length),l=p.length,h=0;h=a)return this.pv;var s,o;r?(s=e?Math.abs(elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-a),o=a+s):((!e||e>n.length-1)&&(e=n.length-1),o=n[e].t,s=o-a);var h,l,p;if("pingpong"===t){if(Math.floor((a-i)/s)%2==0)return this.getValueAtTime(((a-i)%s+a)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var f=this.getValueAtTime(a/this.comp.globalData.frameRate,0),c=this.getValueAtTime(o/this.comp.globalData.frameRate,0),d=this.getValueAtTime((s-(a-i)%s+a)/this.comp.globalData.frameRate,0),u=Math.floor((a-i)/s)+1;if(this.pv.length){for(p=new Array(f.length),l=p.length,h=0;hs){var p=o,f=r.c&&o===h-1?0:o+1,c=(s-l)/a[o].addedLength;i=bez.getPointInSegment(r.v[p],r.v[f],r.o[p],r.i[f],c,a[o]);break}l+=a[o].addedLength,o+=1}return i||(i=r.c?[r.v[0][0],r.v[0][1]]:[r.v[r._length-1][0],r.v[r._length-1][1]]),i},vectorOnPath:function(t,e,r){t=1==t?this.v.c?0:.999:t;var i=this.pointOnPath(t,e),n=this.pointOnPath(t+.001,e),a=n[0]-i[0],s=n[1]-i[1],o=Math.sqrt(Math.pow(a,2)+Math.pow(s,2));return"tangent"===r?[a/o,s/o]:[-s/o,a/o]},tangentOnPath:function(t,e){return this.vectorOnPath(t,e,"tangent")},normalOnPath:function(t,e){return this.vectorOnPath(t,e,"normal")},setGroupProperty:a,getValueAtTime:t},extendPrototype([p],u),extendPrototype([p],m),m.prototype.getValueAtTime=l,m.prototype.initiateExpression=ExpressionManager.initiateExpression;var y=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(t,e,r,i,n){var a=y(t,e,r,i,n);return a.propertyIndex=e.ix,a.lock=!1,3===r?s(t,e.pt,a):4===r&&s(t,e.ks,a),a.k&&t.addDynamicProperty(a),a};var v=TextSelectorProp.getTextSelectorProp;TextSelectorProp.getTextSelectorProp=function(t,e,r){return 1===e.t?new f(t,e,r):v(t,e,r)}}(),function(){function t(){return!!this.data.d.x&&(this.comp=this.elem.comp,this.getValue&&(this.getPreValue=this.getValue),this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.getValue=this.getExpressionValue,!0)}TextProperty.prototype.searchProperty=function(){return this.kf=this.searchExpressions()||this.data.d.k.length>1,this.kf},TextProperty.prototype.getExpressionValue=function(t){this.calculateExpression(),this._mdf&&(this.currentData.t=this.v.toString(),this.completeTextData(this.currentData))},TextProperty.prototype.searchExpressions=t}();var ShapeExpressionInterface=function(){function t(t,e,s){var d,u=[],m=t?t.length:0;for(d=0;d1)for(var r=1;r=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},r(11),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(e,r(0))},function(t,e,r){var i=r(1)(r(5),r(14),null,null);t.exports=i.exports},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{ref:"lavContainer",style:t.style})},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{attrs:{id:"app"}},[r("lottie",{attrs:{options:t.defaultOptions,height:400,width:400},on:{animCreated:t.handleAnimation}}),t._v(" "),r("div",[r("p",[t._v("Speed: x"+t._s(t.animationSpeed))]),t._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:t.animationSpeed,expression:"animationSpeed"}],attrs:{type:"range",value:"1",min:"0",max:"3",step:"0.5"},domProps:{value:t.animationSpeed},on:{change:t.onSpeedChange,__r:function(e){t.animationSpeed=e.target.value}}})]),t._v(" "),r("button",{on:{click:t.stop}},[t._v("stop")]),t._v(" "),r("button",{on:{click:t.pause}},[t._v("pause")]),t._v(" "),r("button",{on:{click:t.play}},[t._v("play")])],1)},staticRenderFns:[]}},function(t,e,r){var i=r(7);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);r(17)("323354f6",i,!0)},function(t,e,r){function i(t){for(var e=0;er.parts.length&&(i.parts.length=r.parts.length)}else{for(var s=[],n=0;n