@usecapsule/core-components 3.3.0-dev.0 → 3.3.0-dev.1
Sign up to get free protection for your applications and to get access to all the features.
- package/css/capsule-core.css +10 -25
- package/css/capsule-core.css.map +1 -1
- package/dist/capsule/capsule.esm.js +1 -1
- package/dist/capsule/capsule.esm.js.map +1 -1
- package/dist/capsule/index.esm.js +1 -1
- package/dist/capsule/index.esm.js.map +1 -1
- package/dist/capsule/p-0462f723.js +2 -0
- package/dist/capsule/p-0462f723.js.map +1 -0
- package/dist/capsule/p-05cb769b.entry.js +10 -0
- package/dist/capsule/{p-0e558c7f.entry.js.map → p-05cb769b.entry.js.map} +1 -1
- package/dist/capsule/p-0eea90f8.entry.js +2 -0
- package/dist/capsule/p-4203888d.entry.js +29 -0
- package/dist/capsule/p-4203888d.entry.js.map +1 -0
- package/dist/capsule/{p-1bd11889.entry.js → p-69c3c53b.entry.js} +2 -2
- package/dist/capsule/{p-1bd11889.entry.js.map → p-69c3c53b.entry.js.map} +1 -1
- package/dist/capsule/{p-5d62e610.entry.js → p-742bda0b.entry.js} +2 -2
- package/dist/capsule/p-c1aa1ffb.entry.js +2 -0
- package/dist/capsule/{p-5965b15e.entry.js.map → p-c1aa1ffb.entry.js.map} +1 -1
- package/dist/capsule/p-d351f076.entry.js +2 -0
- package/dist/capsule/p-d351f076.entry.js.map +1 -0
- package/dist/cjs/_commonjsHelpers-b3309d7b.js +12 -0
- package/dist/cjs/_commonjsHelpers-b3309d7b.js.map +1 -0
- package/dist/cjs/capsule.cjs.js +1 -1
- package/dist/cjs/{cpsl-alert_34.cjs.entry.js → cpsl-alert_33.cjs.entry.js} +13368 -16935
- package/dist/cjs/cpsl-alert_33.cjs.entry.js.map +1 -0
- package/dist/cjs/cpsl-animation.cjs.entry.js +2 -3
- package/dist/cjs/cpsl-animation.cjs.entry.js.map +1 -1
- package/dist/cjs/cpsl-hero.cjs.entry.js +6 -9
- package/dist/cjs/cpsl-hero.cjs.entry.js.map +1 -1
- package/dist/cjs/cpsl-identicon.cjs.entry.js +1 -1
- package/dist/cjs/cpsl-info-box.cjs.entry.js +2 -2
- package/dist/cjs/cpsl-info-box.cjs.entry.js.map +1 -1
- package/dist/cjs/cpsl-modal-v2.cjs.entry.js +1 -1
- package/dist/cjs/cpsl-modal-v2.cjs.entry.js.map +1 -1
- package/dist/cjs/cpsl-row.cjs.entry.js +1 -1
- package/dist/cjs/index-65f57499.js +2 -2
- package/dist/cjs/index.cjs.js +12 -35
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/assets/icons/index.js +1 -21
- package/dist/collection/assets/icons/index.js.map +1 -1
- package/dist/collection/assets/icons/refresh.svg +3 -3
- package/dist/collection/collection-manifest.json +1 -2
- package/dist/collection/components/cpsl-alert/cpsl-alert.js +2 -2
- package/dist/collection/components/cpsl-alert/cpsl-alert.js.map +1 -1
- package/dist/collection/components/cpsl-button/cpsl-button.css +2 -89
- package/dist/collection/components/cpsl-button/cpsl-button.js +5 -6
- package/dist/collection/components/cpsl-button/cpsl-button.js.map +1 -1
- package/dist/collection/components/cpsl-button/cpsl-button.stories.js.map +1 -1
- package/dist/collection/components/cpsl-card/cpsl-card.css +2 -5
- package/dist/collection/components/cpsl-code-input/cpsl-code-input.css +0 -3
- package/dist/collection/components/cpsl-code-input/cpsl-code-input.js +7 -11
- package/dist/collection/components/cpsl-code-input/cpsl-code-input.js.map +1 -1
- package/dist/collection/components/cpsl-divider/cpsl-divider.css +1 -2
- package/dist/collection/components/cpsl-drawer/cpsl-drawer.js +1 -1
- package/dist/collection/components/cpsl-drawer/cpsl-drawer.js.map +1 -1
- package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js +2 -2
- package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js.map +1 -1
- package/dist/collection/components/cpsl-file-upload/cpsl-file-upload.js +6 -1
- package/dist/collection/components/cpsl-file-upload/cpsl-file-upload.js.map +1 -1
- package/dist/collection/components/cpsl-hero/cpsl-hero.css +71 -136
- package/dist/collection/components/cpsl-hero/cpsl-hero.js +9 -63
- package/dist/collection/components/cpsl-hero/cpsl-hero.js.map +1 -1
- package/dist/collection/components/cpsl-icon/cpsl-icon.css +0 -8
- package/dist/collection/components/cpsl-icon/cpsl-icon.js +2 -2
- package/dist/collection/components/cpsl-identicon/cpsl-identicon.js +1 -1
- package/dist/collection/components/cpsl-info-box/cpsl-info-box.css +2 -1
- package/dist/collection/components/cpsl-info-box/cpsl-info-box.js +1 -1
- package/dist/collection/components/cpsl-input/cpsl-input.css +2 -21
- package/dist/collection/components/cpsl-input/cpsl-input.js +28 -100
- package/dist/collection/components/cpsl-input/cpsl-input.js.map +1 -1
- package/dist/collection/components/{cpsl-auth-modal/cpsl-auth-modal.css → cpsl-modal/cpsl-modal.css} +58 -33
- package/dist/collection/components/{cpsl-auth-modal/cpsl-auth-modal.js → cpsl-modal/cpsl-modal.js} +129 -11
- package/dist/collection/components/cpsl-modal/cpsl-modal.js.map +1 -0
- package/dist/collection/components/cpsl-modal-v2/cpsl-modal-v2.js +1 -1
- package/dist/collection/components/cpsl-modal-v2/cpsl-modal-v2.js.map +1 -1
- package/dist/collection/components/cpsl-nav-button-group/cpsl-nav-button-group.js +1 -1
- package/dist/collection/components/cpsl-overlay/cpsl-overlay.js +1 -1
- package/dist/collection/components/cpsl-pagination/cpsl-pagination.js +1 -1
- package/dist/collection/components/cpsl-pill/cpsl-pill.js +1 -1
- package/dist/collection/components/cpsl-popover/cpsl-popover.css +0 -2
- package/dist/collection/components/cpsl-popover/cpsl-popover.js +11 -9
- package/dist/collection/components/cpsl-popover/cpsl-popover.js.map +1 -1
- package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.css +3 -12
- package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +23 -28
- package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js.map +1 -1
- package/dist/collection/components/cpsl-radio/cpsl-radio.js +1 -1
- package/dist/collection/components/cpsl-row/cpsl-row.js +1 -1
- package/dist/collection/components/cpsl-select/cpsl-select.css +0 -17
- package/dist/collection/components/cpsl-select/cpsl-select.js +5 -95
- package/dist/collection/components/cpsl-select/cpsl-select.js.map +1 -1
- package/dist/collection/components/cpsl-select-item/cpsl-select-item.js +1 -1
- package/dist/collection/components/cpsl-select-item/cpsl-select-item.js.map +1 -1
- package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js +3 -3
- package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js.map +1 -1
- package/dist/collection/components/cpsl-spinner/cpsl-spinner.css +8 -30
- package/dist/collection/components/cpsl-spinner/cpsl-spinner.js +7 -5
- package/dist/collection/components/cpsl-spinner/cpsl-spinner.js.map +1 -1
- package/dist/collection/components/cpsl-switch/cpsl-switch.js +1 -1
- package/dist/collection/components/cpsl-tab/cpsl-tab.css +1 -24
- package/dist/collection/components/cpsl-tab/cpsl-tab.js +1 -1
- package/dist/collection/components/cpsl-tab/cpsl-tab.js.map +1 -1
- package/dist/collection/components/cpsl-table/cpsl-table.js +9 -1
- package/dist/collection/components/cpsl-table/cpsl-table.js.map +1 -1
- package/dist/collection/components/cpsl-tabs/cpsl-tabs.css +4 -1
- package/dist/collection/components/cpsl-tabs/cpsl-tabs.js +4 -1
- package/dist/collection/components/cpsl-tabs/cpsl-tabs.js.map +1 -1
- package/dist/collection/components/cpsl-text/cpsl-text.css +0 -19
- package/dist/collection/components/cpsl-text/cpsl-text.js +4 -5
- package/dist/collection/components/cpsl-text/cpsl-text.js.map +1 -1
- package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.css +1 -3
- package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +2 -2
- package/dist/collection/interface.js.map +1 -1
- package/dist/collection/utils/theme/generateBorderRadii.js +3 -4
- package/dist/collection/utils/theme/generateBorderRadii.js.map +1 -1
- package/dist/collection/utils/theme/generatePalette.js +6 -22
- package/dist/collection/utils/theme/generatePalette.js.map +1 -1
- package/dist/collection/utils/theme/generateTheme.js +3 -9
- package/dist/collection/utils/theme/generateTheme.js.map +1 -1
- package/dist/collection/utils/theme/utils.js.map +1 -1
- package/dist/esm/_commonjsHelpers-1789f0cf.js +9 -0
- package/dist/esm/_commonjsHelpers-1789f0cf.js.map +1 -0
- package/dist/esm/capsule.js +1 -1
- package/dist/esm/{cpsl-alert_34.entry.js → cpsl-alert_33.entry.js} +13370 -16936
- package/dist/esm/cpsl-alert_33.entry.js.map +1 -0
- package/dist/esm/cpsl-animation.entry.js +1 -2
- package/dist/esm/cpsl-animation.entry.js.map +1 -1
- package/dist/esm/cpsl-hero.entry.js +7 -10
- package/dist/esm/cpsl-hero.entry.js.map +1 -1
- package/dist/esm/cpsl-identicon.entry.js +1 -1
- package/dist/esm/cpsl-info-box.entry.js +2 -2
- package/dist/esm/cpsl-info-box.entry.js.map +1 -1
- package/dist/esm/cpsl-modal-v2.entry.js +1 -1
- package/dist/esm/cpsl-modal-v2.entry.js.map +1 -1
- package/dist/esm/cpsl-row.entry.js +1 -1
- package/dist/esm/index-91db3414.js +2 -2
- package/dist/esm/index.js +12 -35
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/assets/icons/index.d.ts +0 -20
- package/dist/types/components/cpsl-button/cpsl-button.d.ts +2 -2
- package/dist/types/components/cpsl-hero/cpsl-hero.d.ts +3 -18
- package/dist/types/components/cpsl-input/cpsl-input.d.ts +3 -13
- package/dist/types/components/{cpsl-auth-modal/cpsl-auth-modal.d.ts → cpsl-modal/cpsl-modal.d.ts} +23 -3
- package/dist/types/components/cpsl-popover/cpsl-popover.d.ts +2 -2
- package/dist/types/components/cpsl-qr-code/cpsl-qr-code.d.ts +0 -1
- package/dist/types/components/cpsl-select/cpsl-select.d.ts +1 -22
- package/dist/types/components/cpsl-text/cpsl-text.d.ts +1 -1
- package/dist/types/components.d.ts +146 -222
- package/dist/types/interface.d.ts +0 -13
- package/dist/types/utils/theme/generateBorderRadii.d.ts +1 -1
- package/dist/types/utils/theme/generatePalette.d.ts +2 -4
- package/dist/types/utils/theme/generateTheme.d.ts +1 -1
- package/package.json +2 -3
- package/dist/capsule/p-0e558c7f.entry.js +0 -10
- package/dist/capsule/p-32cdf894.entry.js +0 -2
- package/dist/capsule/p-32cdf894.entry.js.map +0 -1
- package/dist/capsule/p-3b042fd1.entry.js +0 -2
- package/dist/capsule/p-5965b15e.entry.js +0 -2
- package/dist/capsule/p-60508b1e.entry.js +0 -20
- package/dist/capsule/p-60508b1e.entry.js.map +0 -1
- package/dist/cjs/cpsl-alert_34.cjs.entry.js.map +0 -1
- package/dist/collection/assets/icons/arrow-circle-broken-down-left.svg +0 -3
- package/dist/collection/assets/icons/bank.svg +0 -3
- package/dist/collection/assets/icons/credit-card.svg +0 -3
- package/dist/collection/assets/icons/dot.svg +0 -3
- package/dist/collection/assets/icons/download.svg +0 -3
- package/dist/collection/assets/icons/globe.svg +0 -3
- package/dist/collection/assets/icons/hero-alert-circle.svg +0 -3
- package/dist/collection/assets/icons/hero-checkmark-capsule.svg +0 -11
- package/dist/collection/assets/icons/hero-checkmark.svg +0 -3
- package/dist/collection/assets/icons/hero-external-connection.svg +0 -71
- package/dist/collection/assets/icons/link-external.svg +0 -3
- package/dist/collection/assets/icons/log-out.svg +0 -3
- package/dist/collection/assets/icons/moonpay-brand.svg +0 -10
- package/dist/collection/assets/icons/puzzle-piece.svg +0 -3
- package/dist/collection/assets/icons/qr-code-02.svg +0 -3
- package/dist/collection/assets/icons/qr-code.svg +0 -3
- package/dist/collection/assets/icons/search.svg +0 -3
- package/dist/collection/assets/icons/send.svg +0 -3
- package/dist/collection/assets/icons/shield.svg +0 -3
- package/dist/collection/assets/icons/stripe-brand.svg +0 -3
- package/dist/collection/components/cpsl-auth-modal/cpsl-auth-modal.js.map +0 -1
- package/dist/collection/components/cpsl-icon-group/cpsl-icon-group.css +0 -97
- package/dist/collection/components/cpsl-icon-group/cpsl-icon-group.js +0 -121
- package/dist/collection/components/cpsl-icon-group/cpsl-icon-group.js.map +0 -1
- package/dist/esm/cpsl-alert_34.entry.js.map +0 -1
- package/dist/types/components/cpsl-icon-group/cpsl-icon-group.d.ts +0 -20
- /package/dist/capsule/{p-3b042fd1.entry.js.map → p-0eea90f8.entry.js.map} +0 -0
- /package/dist/capsule/{p-5d62e610.entry.js.map → p-742bda0b.entry.js.map} +0 -0
@@ -1,10 +0,0 @@
|
|
1
|
-
import{r as registerInstance,h,H as Host,g as getElement}from"./p-fa6b7678.js";var commonjsGlobal=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};var lottie$1={exports:{}};(function(module,exports){typeof navigator!=="undefined"&&function(t,i){module.exports=i()}(commonjsGlobal,(function(){var svgNS="http://www.w3.org/2000/svg";var locationHref="";var _useWebWorker=false;var initialDefaultFrame=-999999;var setWebWorker=function t(i){_useWebWorker=!!i};var getWebWorker=function t(){return _useWebWorker};var setLocationHref=function t(i){locationHref=i};var getLocationHref=function t(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,i){var e;var r=t.length;var s;for(e=0;e<r;e+=1){s=t[e].prototype;for(var n in s){if(Object.prototype.hasOwnProperty.call(s,n))i.prototype[n]=s[n]}}}function getDescriptor(t,i){return Object.getOwnPropertyDescriptor(t,i)}function createProxyFunction(t){function i(){}i.prototype=t;return i}var audioControllerFactory=function(){function t(t){this.audios=[];this.audioFactory=t;this._volume=1;this._isMuted=false}t.prototype={addAudio:function t(i){this.audios.push(i)},pause:function t(){var i;var e=this.audios.length;for(i=0;i<e;i+=1){this.audios[i].pause()}},resume:function t(){var i;var e=this.audios.length;for(i=0;i<e;i+=1){this.audios[i].resume()}},setRate:function t(i){var e;var r=this.audios.length;for(e=0;e<r;e+=1){this.audios[e].setRate(i)}},createAudio:function t(i){if(this.audioFactory){return this.audioFactory(i)}if(window.Howl){return new window.Howl({src:[i]})}return{isPlaying:false,play:function t(){this.isPlaying=true},seek:function t(){this.isPlaying=false},playing:function t(){},rate:function t(){},setVolume:function t(){}}},setAudioFactory:function t(i){this.audioFactory=i},setVolume:function t(i){this._volume=i;this._updateVolume()},mute:function t(){this._isMuted=true;this._updateVolume()},unmute:function t(){this._isMuted=false;this._updateVolume()},getVolume:function t(){return this._volume},_updateVolume:function t(){var i;var e=this.audios.length;for(i=0;i<e;i+=1){this.audios[i].volume(this._volume*(this._isMuted?0:1))}}};return function(){return new t}}();var createTypedArray=function(){function t(t,i){var e=0;var r=[];var s;switch(t){case"int16":case"uint8c":s=1;break;default:s=1.1;break}for(e=0;e<i;e+=1){r.push(s)}return r}function i(i,e){if(i==="float32"){return new Float32Array(e)}if(i==="int16"){return new Int16Array(e)}if(i==="uint8c"){return new Uint8ClampedArray(e)}return t(i,e)}if(typeof Uint8ClampedArray==="function"&&typeof Float32Array==="function"){return i}return t}();function createSizedArray(t){return Array.apply(null,{length:t})}function _typeof$6(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof$6=function t(i){return typeof i}}else{_typeof$6=function t(i){return i&&typeof Symbol==="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i}}return _typeof$6(t)}var subframeEnabled=true;var expressionsPlugin=null;var expressionsInterfaces=null;var idPrefix$1="";var isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);var bmPow=Math.pow;var bmSqrt=Math.sqrt;var bmFloor=Math.floor;var bmMax=Math.max;var bmMin=Math.min;var BMMath={};(function(){var t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"];var i;var e=t.length;for(i=0;i<e;i+=1){BMMath[t[i]]=Math[t[i]]}})();BMMath.random=Math.random;BMMath.abs=function(t){var i=_typeof$6(t);if(i==="object"&&t.length){var e=createSizedArray(t.length);var r;var s=t.length;for(r=0;r<s;r+=1){e[r]=Math.abs(t[r])}return e}return Math.abs(t)};var defaultCurveSegments=150;var degToRads=Math.PI/180;var roundCorner=.5519;function styleDiv(t){t.style.position="absolute";t.style.top=0;t.style.left=0;t.style.display="block";t.style.transformOrigin="0 0";t.style.webkitTransformOrigin="0 0";t.style.backfaceVisibility="visible";t.style.webkitBackfaceVisibility="visible";t.style.transformStyle="preserve-3d";t.style.webkitTransformStyle="preserve-3d";t.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(t,i,e,r){this.type=t;this.currentTime=i;this.totalTime=e;this.direction=r<0?-1:1}function BMCompleteEvent(t,i){this.type=t;this.direction=i<0?-1:1}function BMCompleteLoopEvent(t,i,e,r){this.type=t;this.currentLoop=e;this.totalLoops=i;this.direction=r<0?-1:1}function BMSegmentStartEvent(t,i,e){this.type=t;this.firstFrame=i;this.totalFrames=e}function BMDestroyEvent(t,i){this.type=t;this.target=i}function BMRenderFrameErrorEvent(t,i){this.type="renderFrameError";this.nativeError=t;this.currentTime=i}function BMConfigErrorEvent(t){this.type="configError";this.nativeError=t}var createElementID=function(){var t=0;return function i(){t+=1;return idPrefix$1+"__lottie_element_"+t}}();function HSVtoRGB(t,i,e){var r;var s;var n;var a;var h;var o;var f;var u;a=Math.floor(t*6);h=t*6-a;o=e*(1-i);f=e*(1-h*i);u=e*(1-(1-h)*i);switch(a%6){case 0:r=e;s=u;n=o;break;case 1:r=f;s=e;n=o;break;case 2:r=o;s=e;n=u;break;case 3:r=o;s=f;n=e;break;case 4:r=u;s=o;n=e;break;case 5:r=e;s=o;n=f;break}return[r,s,n]}function RGBtoHSV(t,i,e){var r=Math.max(t,i,e);var s=Math.min(t,i,e);var n=r-s;var a;var h=r===0?0:n/r;var o=r/255;switch(r){case s:a=0;break;case t:a=i-e+n*(i<e?6:0);a/=6*n;break;case i:a=e-t+n*2;a/=6*n;break;case e:a=t-i+n*4;a/=6*n;break}return[a,h,o]}function addSaturationToRGB(t,i){var e=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);e[1]+=i;if(e[1]>1){e[1]=1}else if(e[1]<=0){e[1]=0}return HSVtoRGB(e[0],e[1],e[2])}function addBrightnessToRGB(t,i){var e=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);e[2]+=i;if(e[2]>1){e[2]=1}else if(e[2]<0){e[2]=0}return HSVtoRGB(e[0],e[1],e[2])}function addHueToRGB(t,i){var e=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);e[0]+=i/360;if(e[0]>1){e[0]-=1}else if(e[0]<0){e[0]+=1}return HSVtoRGB(e[0],e[1],e[2])}var rgbToHex=function(){var t=[];var i;var e;for(i=0;i<256;i+=1){e=i.toString(16);t[i]=e.length===1?"0"+e:e}return function(i,e,r){if(i<0){i=0}if(e<0){e=0}if(r<0){r=0}return"#"+t[i]+t[e]+t[r]}}();var setSubframeEnabled=function t(i){subframeEnabled=!!i};var getSubframeEnabled=function t(){return subframeEnabled};var setExpressionsPlugin=function t(i){expressionsPlugin=i};var getExpressionsPlugin=function t(){return expressionsPlugin};var setExpressionInterfaces=function t(i){expressionsInterfaces=i};var getExpressionInterfaces=function t(){return expressionsInterfaces};var setDefaultCurveSegments=function t(i){defaultCurveSegments=i};var getDefaultCurveSegments=function t(){return defaultCurveSegments};var setIdPrefix=function t(i){idPrefix$1=i};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof$5=function t(i){return typeof i}}else{_typeof$5=function t(i){return i&&typeof Symbol==="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i}}return _typeof$5(t)}var dataManager=function(){var t=1;var i=[];var e;var r;var s={onmessage:function t(){},postMessage:function t(i){e({data:i})}};var n={postMessage:function t(i){s.onmessage({data:i})}};function a(t){if(window.Worker&&window.Blob&&getWebWorker()){var i=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"});var r=URL.createObjectURL(i);return new Worker(r)}e=t;return s}function h(){if(!r){r=a((function t(i){function e(){function t(i,e){var a;var h;var o=i.length;var f;var u;var l;var c;for(h=0;h<o;h+=1){a=i[h];if("ks"in a&&!a.completed){a.completed=true;if(a.hasMask){var v=a.masksProperties;u=v.length;for(f=0;f<u;f+=1){if(v[f].pt.k.i){n(v[f].pt.k)}else{c=v[f].pt.k.length;for(l=0;l<c;l+=1){if(v[f].pt.k[l].s){n(v[f].pt.k[l].s[0])}if(v[f].pt.k[l].e){n(v[f].pt.k[l].e[0])}}}}}if(a.ty===0){a.layers=r(a.refId,e);t(a.layers,e)}else if(a.ty===4){s(a.shapes)}else;}}}function i(i,e){if(i){var s=0;var n=i.length;for(s=0;s<n;s+=1){if(i[s].t===1){i[s].data.layers=r(i[s].data.refId,e);t(i[s].data.layers,e)}}}}function e(t,i){var e=0;var r=i.length;while(e<r){if(i[e].id===t){return i[e]}e+=1}return null}function r(t,i){var r=e(t,i);if(r){if(!r.layers.__used){r.layers.__used=true;return r.layers}return JSON.parse(JSON.stringify(r.layers))}return null}function s(t){var i;var e=t.length;var r;var a;for(i=e-1;i>=0;i-=1){if(t[i].ty==="sh"){if(t[i].ks.k.i){n(t[i].ks.k)}else{a=t[i].ks.k.length;for(r=0;r<a;r+=1){if(t[i].ks.k[r].s){n(t[i].ks.k[r].s[0])}if(t[i].ks.k[r].e){n(t[i].ks.k[r].e[0])}}}}else if(t[i].ty==="gr"){s(t[i].it)}}}function n(t){var i;var e=t.i.length;for(i=0;i<e;i+=1){t.i[i][0]+=t.v[i][0];t.i[i][1]+=t.v[i][1];t.o[i][0]+=t.v[i][0];t.o[i][1]+=t.v[i][1]}}function a(t,i){var e=i?i.split("."):[100,100,100];if(t[0]>e[0]){return true}if(e[0]>t[0]){return false}if(t[1]>e[1]){return true}if(e[1]>t[1]){return false}if(t[2]>e[2]){return true}if(e[2]>t[2]){return false}return null}var h=function(){var t=[4,4,14];function i(t){var i=t.t.d;t.t.d={k:[{s:i,t:0}]}}function e(t){var e;var r=t.length;for(e=0;e<r;e+=1){if(t[e].ty===5){i(t[e])}}}return function(i){if(a(t,i.v)){e(i.layers);if(i.assets){var r;var s=i.assets.length;for(r=0;r<s;r+=1){if(i.assets[r].layers){e(i.assets[r].layers)}}}}}}();var o=function(){var t=[4,7,99];return function(i){if(i.chars&&!a(t,i.v)){var e;var r=i.chars.length;for(e=0;e<r;e+=1){var n=i.chars[e];if(n.data&&n.data.shapes){s(n.data.shapes);n.data.ip=0;n.data.op=99999;n.data.st=0;n.data.sr=1;n.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}};if(!i.chars[e].t){n.data.shapes.push({ty:"no"});n.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})}}}}}}();var f=function(){var t=[5,7,15];function i(t){var i=t.t.p;if(typeof i.a==="number"){i.a={a:0,k:i.a}}if(typeof i.p==="number"){i.p={a:0,k:i.p}}if(typeof i.r==="number"){i.r={a:0,k:i.r}}}function e(t){var e;var r=t.length;for(e=0;e<r;e+=1){if(t[e].ty===5){i(t[e])}}}return function(i){if(a(t,i.v)){e(i.layers);if(i.assets){var r;var s=i.assets.length;for(r=0;r<s;r+=1){if(i.assets[r].layers){e(i.assets[r].layers)}}}}}}();var u=function(){var t=[4,1,9];function i(t){var e;var r=t.length;var s;var n;for(e=0;e<r;e+=1){if(t[e].ty==="gr"){i(t[e].it)}else if(t[e].ty==="fl"||t[e].ty==="st"){if(t[e].c.k&&t[e].c.k[0].i){n=t[e].c.k.length;for(s=0;s<n;s+=1){if(t[e].c.k[s].s){t[e].c.k[s].s[0]/=255;t[e].c.k[s].s[1]/=255;t[e].c.k[s].s[2]/=255;t[e].c.k[s].s[3]/=255}if(t[e].c.k[s].e){t[e].c.k[s].e[0]/=255;t[e].c.k[s].e[1]/=255;t[e].c.k[s].e[2]/=255;t[e].c.k[s].e[3]/=255}}}else{t[e].c.k[0]/=255;t[e].c.k[1]/=255;t[e].c.k[2]/=255;t[e].c.k[3]/=255}}}}function e(t){var e;var r=t.length;for(e=0;e<r;e+=1){if(t[e].ty===4){i(t[e].shapes)}}}return function(i){if(a(t,i.v)){e(i.layers);if(i.assets){var r;var s=i.assets.length;for(r=0;r<s;r+=1){if(i.assets[r].layers){e(i.assets[r].layers)}}}}}}();var l=function(){var t=[4,4,18];function i(t){var e;var r=t.length;var s;var n;for(e=r-1;e>=0;e-=1){if(t[e].ty==="sh"){if(t[e].ks.k.i){t[e].ks.k.c=t[e].closed}else{n=t[e].ks.k.length;for(s=0;s<n;s+=1){if(t[e].ks.k[s].s){t[e].ks.k[s].s[0].c=t[e].closed}if(t[e].ks.k[s].e){t[e].ks.k[s].e[0].c=t[e].closed}}}}else if(t[e].ty==="gr"){i(t[e].it)}}}function e(t){var e;var r;var s=t.length;var n;var a;var h;var o;for(r=0;r<s;r+=1){e=t[r];if(e.hasMask){var f=e.masksProperties;a=f.length;for(n=0;n<a;n+=1){if(f[n].pt.k.i){f[n].pt.k.c=f[n].cl}else{o=f[n].pt.k.length;for(h=0;h<o;h+=1){if(f[n].pt.k[h].s){f[n].pt.k[h].s[0].c=f[n].cl}if(f[n].pt.k[h].e){f[n].pt.k[h].e[0].c=f[n].cl}}}}}if(e.ty===4){i(e.shapes)}}}return function(i){if(a(t,i.v)){e(i.layers);if(i.assets){var r;var s=i.assets.length;for(r=0;r<s;r+=1){if(i.assets[r].layers){e(i.assets[r].layers)}}}}}}();function c(e){if(e.__complete){return}u(e);h(e);o(e);f(e);l(e);t(e.layers,e.assets);i(e.chars,e.assets);e.__complete=true}var v={};v.completeData=c;v.checkColors=u;v.checkChars=o;v.checkPathProperties=f;v.checkShapes=l;v.completeLayers=t;return v}if(!n.dataManager){n.dataManager=e()}if(!n.assetLoader){n.assetLoader=function(){function t(t){var i=t.getResponseHeader("content-type");if(i&&t.responseType==="json"&&i.indexOf("json")!==-1){return t.response}if(t.response&&_typeof$5(t.response)==="object"){return t.response}if(t.response&&typeof t.response==="string"){return JSON.parse(t.response)}if(t.responseText){return JSON.parse(t.responseText)}return null}function i(i,e,r,s){var n;var a=new XMLHttpRequest;try{a.responseType="json"}catch(t){}a.onreadystatechange=function(){if(a.readyState===4){if(a.status===200){n=t(a);r(n)}else{try{n=t(a);r(n)}catch(t){if(s){s(t)}}}}};try{a.open(["G","E","T"].join(""),i,true)}catch(t){a.open(["G","E","T"].join(""),e+"/"+i,true)}a.send()}return{load:i}}()}if(i.data.type==="loadAnimation"){n.assetLoader.load(i.data.path,i.data.fullPath,(function(t){n.dataManager.completeData(t);n.postMessage({id:i.data.id,payload:t,status:"success"})}),(function(){n.postMessage({id:i.data.id,status:"error"})}))}else if(i.data.type==="complete"){var r=i.data.animation;n.dataManager.completeData(r);n.postMessage({id:i.data.id,payload:r,status:"success"})}else if(i.data.type==="loadData"){n.assetLoader.load(i.data.path,i.data.fullPath,(function(t){n.postMessage({id:i.data.id,payload:t,status:"success"})}),(function(){n.postMessage({id:i.data.id,status:"error"})}))}}));r.onmessage=function(t){var e=t.data;var r=e.id;var s=i[r];i[r]=null;if(e.status==="success"){s.onComplete(e.payload)}else if(s.onError){s.onError()}}}}function o(e,r){t+=1;var s="processId_"+t;i[s]={onComplete:e,onError:r};return s}function f(t,i,e){h();var s=o(i,e);r.postMessage({type:"loadAnimation",path:t,fullPath:window.location.origin+window.location.pathname,id:s})}function u(t,i,e){h();var s=o(i,e);r.postMessage({type:"loadData",path:t,fullPath:window.location.origin+window.location.pathname,id:s})}function l(t,i,e){h();var s=o(i,e);r.postMessage({type:"complete",animation:t,id:s})}return{loadAnimation:f,loadData:u,completeAnimation:l}}();var ImagePreloader=function(){var t=function(){var t=createTag("canvas");t.width=1;t.height=1;var i=t.getContext("2d");i.fillStyle="rgba(0,0,0,0)";i.fillRect(0,0,1,1);return t}();function i(){this.loadedAssets+=1;if(this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages){if(this.imagesLoadedCb){this.imagesLoadedCb(null)}}}function e(){this.loadedFootagesCount+=1;if(this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages){if(this.imagesLoadedCb){this.imagesLoadedCb(null)}}}function r(t,i,e){var r="";if(t.e){r=t.p}else if(i){var s=t.p;if(s.indexOf("images/")!==-1){s=s.split("/")[1]}r=i+s}else{r=e;r+=t.u?t.u:"";r+=t.p}return r}function s(t){var i=0;var e=setInterval(function(){var r=t.getBBox();if(r.width||i>500){this._imageLoaded();clearInterval(e)}i+=1}.bind(this),50)}function n(i){var e=r(i,this.assetsPath,this.path);var s=createNS("image");if(isSafari){this.testImageLoaded(s)}else{s.addEventListener("load",this._imageLoaded,false)}s.addEventListener("error",function(){n.img=t;this._imageLoaded()}.bind(this),false);s.setAttributeNS("http://www.w3.org/1999/xlink","href",e);if(this._elementHelper.append){this._elementHelper.append(s)}else{this._elementHelper.appendChild(s)}var n={img:s,assetData:i};return n}function a(i){var e=r(i,this.assetsPath,this.path);var s=createTag("img");s.crossOrigin="anonymous";s.addEventListener("load",this._imageLoaded,false);s.addEventListener("error",function(){n.img=t;this._imageLoaded()}.bind(this),false);s.src=e;var n={img:s,assetData:i};return n}function h(t){var i={assetData:t};var e=r(t,this.assetsPath,this.path);dataManager.loadData(e,function(t){i.img=t;this._footageLoaded()}.bind(this),function(){i.img={};this._footageLoaded()}.bind(this));return i}function o(t,i){this.imagesLoadedCb=i;var e;var r=t.length;for(e=0;e<r;e+=1){if(!t[e].layers){if(!t[e].t||t[e].t==="seq"){this.totalImages+=1;this.images.push(this._createImageData(t[e]))}else if(t[e].t===3){this.totalFootages+=1;this.images.push(this.createFootageData(t[e]))}}}}function f(t){this.path=t||""}function u(t){this.assetsPath=t||""}function l(t){var i=0;var e=this.images.length;while(i<e){if(this.images[i].assetData===t){return this.images[i].img}i+=1}return null}function c(){this.imagesLoadedCb=null;this.images.length=0}function v(){return this.totalImages===this.loadedAssets}function p(){return this.totalFootages===this.loadedFootagesCount}function m(t,i){if(t==="svg"){this._elementHelper=i;this._createImageData=this.createImageData.bind(this)}else{this._createImageData=this.createImgData.bind(this)}}function d(){this._imageLoaded=i.bind(this);this._footageLoaded=e.bind(this);this.testImageLoaded=s.bind(this);this.createFootageData=h.bind(this);this.assetsPath="";this.path="";this.totalImages=0;this.totalFootages=0;this.loadedAssets=0;this.loadedFootagesCount=0;this.imagesLoadedCb=null;this.images=[]}d.prototype={loadAssets:o,setAssetsPath:u,setPath:f,loadedImages:v,loadedFootages:p,destroy:c,getAsset:l,createImgData:a,createImageData:n,imageLoaded:i,footageLoaded:e,setCacheType:m};return d}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function t(i,e){if(this._cbs[i]){var r=this._cbs[i];for(var s=0;s<r.length;s+=1){r[s](e)}}},addEventListener:function t(i,e){if(!this._cbs[i]){this._cbs[i]=[]}this._cbs[i].push(e);return function(){this.removeEventListener(i,e)}.bind(this)},removeEventListener:function t(i,e){if(!e){this._cbs[i]=null}else if(this._cbs[i]){var r=0;var s=this._cbs[i].length;while(r<s){if(this._cbs[i][r]===e){this._cbs[i].splice(r,1);r-=1;s-=1}r+=1}if(!this._cbs[i].length){this._cbs[i]=null}}}};var markerParser=function(){function t(t){var i=t.split("\r\n");var e={};var r;var s=0;for(var n=0;n<i.length;n+=1){r=i[n].split(":");if(r.length===2){e[r[0]]=r[1].trim();s+=1}}if(s===0){throw new Error}return e}return function(i){var e=[];for(var r=0;r<i.length;r+=1){var s=i[r];var n={time:s.tm,duration:s.dr};try{n.payload=JSON.parse(i[r].cm)}catch(e){try{n.payload=t(i[r].cm)}catch(t){n.payload={name:i[r].cm}}}e.push(n)}return e}}();var ProjectInterface=function(){function t(t){this.compositions.push(t)}return function(){function i(t){var i=0;var e=this.compositions.length;while(i<e){if(this.compositions[i].data&&this.compositions[i].data.nm===t){if(this.compositions[i].prepareFrame&&this.compositions[i].data.xt){this.compositions[i].prepareFrame(this.currentFrame)}return this.compositions[i].compInterface}i+=1}return null}i.compositions=[];i.currentFrame=0;i.registerComposition=t;return i}}();var renderers={};var registerRenderer=function t(i,e){renderers[i]=e};function getRenderer(t){return renderers[t]}function getRegisteredRenderer(){if(renderers.canvas){return"canvas"}for(var t in renderers){if(renderers[t]){return t}}return""}function _typeof$4(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof$4=function t(i){return typeof i}}else{_typeof$4=function t(i){return i&&typeof Symbol==="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i}}return _typeof$4(t)}var AnimationItem=function t(){this._cbs=[];this.name="";this.path="";this.isLoaded=false;this.currentFrame=0;this.currentRawFrame=0;this.firstFrame=0;this.totalFrames=0;this.frameRate=0;this.frameMult=0;this.playSpeed=1;this.playDirection=1;this.playCount=0;this.animationData={};this.assets=[];this.isPaused=true;this.autoplay=false;this.loop=true;this.renderer=null;this.animationID=createElementID();this.assetsPath="";this.timeCompleted=0;this.segmentPos=0;this.isSubframeEnabled=getSubframeEnabled();this.segments=[];this._idle=true;this._completedLoop=false;this.projectInterface=ProjectInterface();this.imagePreloader=new ImagePreloader;this.audioController=audioControllerFactory();this.markers=[];this.configAnimation=this.configAnimation.bind(this);this.onSetupError=this.onSetupError.bind(this);this.onSegmentComplete=this.onSegmentComplete.bind(this);this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0);this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem);AnimationItem.prototype.setParams=function(t){if(t.wrapper||t.container){this.wrapper=t.wrapper||t.container}var i="svg";if(t.animType){i=t.animType}else if(t.renderer){i=t.renderer}var e=getRenderer(i);this.renderer=new e(this,t.rendererSettings);this.imagePreloader.setCacheType(i,this.renderer.globalData.defs);this.renderer.setProjectInterface(this.projectInterface);this.animType=i;if(t.loop===""||t.loop===null||t.loop===undefined||t.loop===true){this.loop=true}else if(t.loop===false){this.loop=false}else{this.loop=parseInt(t.loop,10)}this.autoplay="autoplay"in t?t.autoplay:true;this.name=t.name?t.name:"";this.autoloadSegments=Object.prototype.hasOwnProperty.call(t,"autoloadSegments")?t.autoloadSegments:true;this.assetsPath=t.assetsPath;this.initialSegment=t.initialSegment;if(t.audioFactory){this.audioController.setAudioFactory(t.audioFactory)}if(t.animationData){this.setupAnimation(t.animationData)}else if(t.path){if(t.path.lastIndexOf("\\")!==-1){this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1)}else{this.path=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"));dataManager.loadAnimation(t.path,this.configAnimation,this.onSetupError)}};AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")};AnimationItem.prototype.setupAnimation=function(t){dataManager.completeAnimation(t,this.configAnimation)};AnimationItem.prototype.setData=function(t,i){if(i){if(_typeof$4(i)!=="object"){i=JSON.parse(i)}}var e={wrapper:t,animationData:i};var r=t.attributes;e.path=r.getNamedItem("data-animation-path")?r.getNamedItem("data-animation-path").value:r.getNamedItem("data-bm-path")?r.getNamedItem("data-bm-path").value:r.getNamedItem("bm-path")?r.getNamedItem("bm-path").value:"";e.animType=r.getNamedItem("data-anim-type")?r.getNamedItem("data-anim-type").value:r.getNamedItem("data-bm-type")?r.getNamedItem("data-bm-type").value:r.getNamedItem("bm-type")?r.getNamedItem("bm-type").value:r.getNamedItem("data-bm-renderer")?r.getNamedItem("data-bm-renderer").value:r.getNamedItem("bm-renderer")?r.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var s=r.getNamedItem("data-anim-loop")?r.getNamedItem("data-anim-loop").value:r.getNamedItem("data-bm-loop")?r.getNamedItem("data-bm-loop").value:r.getNamedItem("bm-loop")?r.getNamedItem("bm-loop").value:"";if(s==="false"){e.loop=false}else if(s==="true"){e.loop=true}else if(s!==""){e.loop=parseInt(s,10)}var n=r.getNamedItem("data-anim-autoplay")?r.getNamedItem("data-anim-autoplay").value:r.getNamedItem("data-bm-autoplay")?r.getNamedItem("data-bm-autoplay").value:r.getNamedItem("bm-autoplay")?r.getNamedItem("bm-autoplay").value:true;e.autoplay=n!=="false";e.name=r.getNamedItem("data-name")?r.getNamedItem("data-name").value:r.getNamedItem("data-bm-name")?r.getNamedItem("data-bm-name").value:r.getNamedItem("bm-name")?r.getNamedItem("bm-name").value:"";var a=r.getNamedItem("data-anim-prerender")?r.getNamedItem("data-anim-prerender").value:r.getNamedItem("data-bm-prerender")?r.getNamedItem("data-bm-prerender").value:r.getNamedItem("bm-prerender")?r.getNamedItem("bm-prerender").value:"";if(a==="false"){e.prerender=false}if(!e.path){this.trigger("destroy")}else{this.setParams(e)}};AnimationItem.prototype.includeLayers=function(t){if(t.op>this.animationData.op){this.animationData.op=t.op;this.totalFrames=Math.floor(t.op-this.animationData.ip)}var i=this.animationData.layers;var e;var r=i.length;var s=t.layers;var n;var a=s.length;for(n=0;n<a;n+=1){e=0;while(e<r){if(i[e].id===s[n].id){i[e]=s[n];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)}if(t.assets){r=t.assets.length;for(e=0;e<r;e+=1){this.animationData.assets.push(t.assets[e])}}this.animationData.__complete=false;dataManager.completeAnimation(this.animationData,this.onSegmentComplete)};AnimationItem.prototype.onSegmentComplete=function(t){this.animationData=t;var i=getExpressionsPlugin();if(i){i.initExpressions(this)}this.loadNextSegment()};AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||t.length===0||!this.autoloadSegments){this.trigger("data_ready");this.timeCompleted=this.totalFrames;return}var i=t.shift();this.timeCompleted=i.time*this.frameRate;var e=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1;dataManager.loadData(e,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))};AnimationItem.prototype.loadSegments=function(){var t=this.animationData.segments;if(!t){this.timeCompleted=this.totalFrames}this.loadNextSegment()};AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images");this.checkLoaded()};AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath);this.imagePreloader.setPath(this.path);this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))};AnimationItem.prototype.configAnimation=function(t){if(!this.renderer){return}try{this.animationData=t;if(this.initialSegment){this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]);this.firstFrame=Math.round(this.initialSegment[0])}else{this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip);this.firstFrame=Math.round(this.animationData.ip)}this.renderer.configAnimation(t);if(!t.assets){t.assets=[]}this.assets=this.animationData.assets;this.frameRate=this.animationData.fr;this.frameMult=this.animationData.fr/1e3;this.renderer.searchExtraCompositions(t.assets);this.markers=markerParser(t.markers||[]);this.trigger("config_ready");this.preloadImages();this.loadSegments();this.updaFrameModifier();this.waitForFontsLoaded();if(this.isPaused){this.audioController.pause()}}catch(t){this.triggerConfigError(t)}};AnimationItem.prototype.waitForFontsLoaded=function(){if(!this.renderer){return}if(this.renderer.globalData.fontManager.isLoaded){this.checkLoaded()}else{setTimeout(this.waitForFontsLoaded.bind(this),20)}};AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=true;var t=getExpressionsPlugin();if(t){t.initExpressions(this)}this.renderer.initItems();setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0);this.gotoFrame();if(this.autoplay){this.play()}}};AnimationItem.prototype.resize=function(t,i){var e=typeof t==="number"?t:undefined;var r=typeof i==="number"?i:undefined;this.renderer.updateContainerSize(e,r)};AnimationItem.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t};AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame;if(this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted){this.currentFrame=this.timeCompleted}this.trigger("enterFrame");this.renderFrame();this.trigger("drawnFrame")};AnimationItem.prototype.renderFrame=function(){if(this.isLoaded===false||!this.renderer){return}try{if(this.expressionsPlugin){this.expressionsPlugin.resetFrame()}this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}};AnimationItem.prototype.play=function(t){if(t&&this.name!==t){return}if(this.isPaused===true){this.isPaused=false;this.trigger("_play");this.audioController.resume();if(this._idle){this._idle=false;this.trigger("_active")}}};AnimationItem.prototype.pause=function(t){if(t&&this.name!==t){return}if(this.isPaused===false){this.isPaused=true;this.trigger("_pause");this._idle=true;this.trigger("_idle");this.audioController.pause()}};AnimationItem.prototype.togglePause=function(t){if(t&&this.name!==t){return}if(this.isPaused===true){this.play()}else{this.pause()}};AnimationItem.prototype.stop=function(t){if(t&&this.name!==t){return}this.pause();this.playCount=0;this._completedLoop=false;this.setCurrentRawFrameValue(0)};AnimationItem.prototype.getMarkerData=function(t){var i;for(var e=0;e<this.markers.length;e+=1){i=this.markers[e];if(i.payload&&i.payload.name===t){return i}}return null};AnimationItem.prototype.goToAndStop=function(t,i,e){if(e&&this.name!==e){return}var r=Number(t);if(isNaN(r)){var s=this.getMarkerData(t);if(s){this.goToAndStop(s.time,true)}}else if(i){this.setCurrentRawFrameValue(t)}else{this.setCurrentRawFrameValue(t*this.frameModifier)}this.pause()};AnimationItem.prototype.goToAndPlay=function(t,i,e){if(e&&this.name!==e){return}var r=Number(t);if(isNaN(r)){var s=this.getMarkerData(t);if(s){if(!s.duration){this.goToAndStop(s.time,true)}else{this.playSegments([s.time,s.time+s.duration],true)}}}else{this.goToAndStop(r,i,e)}this.play()};AnimationItem.prototype.advanceTime=function(t){if(this.isPaused===true||this.isLoaded===false){return}var i=this.currentRawFrame+t*this.frameModifier;var e=false;if(i>=this.totalFrames-1&&this.frameModifier>0){if(!this.loop||this.playCount===this.loop){if(!this.checkSegments(i>this.totalFrames?i%this.totalFrames:0)){e=true;i=this.totalFrames-1}}else if(i>=this.totalFrames){this.playCount+=1;if(!this.checkSegments(i%this.totalFrames)){this.setCurrentRawFrameValue(i%this.totalFrames);this._completedLoop=true;this.trigger("loopComplete")}}else{this.setCurrentRawFrameValue(i)}}else if(i<0){if(!this.checkSegments(i%this.totalFrames)){if(this.loop&&!(this.playCount--<=0&&this.loop!==true)){this.setCurrentRawFrameValue(this.totalFrames+i%this.totalFrames);if(!this._completedLoop){this._completedLoop=true}else{this.trigger("loopComplete")}}else{e=true;i=0}}}else{this.setCurrentRawFrameValue(i)}if(e){this.setCurrentRawFrameValue(i);this.pause();this.trigger("complete")}};AnimationItem.prototype.adjustSegment=function(t,i){this.playCount=0;if(t[1]<t[0]){if(this.frameModifier>0){if(this.playSpeed<0){this.setSpeed(-this.playSpeed)}else{this.setDirection(-1)}}this.totalFrames=t[0]-t[1];this.timeCompleted=this.totalFrames;this.firstFrame=t[1];this.setCurrentRawFrameValue(this.totalFrames-.001-i)}else if(t[1]>t[0]){if(this.frameModifier<0){if(this.playSpeed<0){this.setSpeed(-this.playSpeed)}else{this.setDirection(1)}}this.totalFrames=t[1]-t[0];this.timeCompleted=this.totalFrames;this.firstFrame=t[0];this.setCurrentRawFrameValue(.001+i)}this.trigger("segmentStart")};AnimationItem.prototype.setSegment=function(t,i){var e=-1;if(this.isPaused){if(this.currentRawFrame+this.firstFrame<t){e=t}else if(this.currentRawFrame+this.firstFrame>i){e=i-t}}this.firstFrame=t;this.totalFrames=i-t;this.timeCompleted=this.totalFrames;if(e!==-1){this.goToAndStop(e,true)}};AnimationItem.prototype.playSegments=function(t,i){if(i){this.segments.length=0}if(_typeof$4(t[0])==="object"){var e;var r=t.length;for(e=0;e<r;e+=1){this.segments.push(t[e])}}else{this.segments.push(t)}if(this.segments.length&&i){this.adjustSegment(this.segments.shift(),0)}if(this.isPaused){this.play()}};AnimationItem.prototype.resetSegments=function(t){this.segments.length=0;this.segments.push([this.animationData.ip,this.animationData.op]);if(t){this.checkSegments(0)}};AnimationItem.prototype.checkSegments=function(t){if(this.segments.length){this.adjustSegment(this.segments.shift(),t);return true}return false};AnimationItem.prototype.destroy=function(t){if(t&&this.name!==t||!this.renderer){return}this.renderer.destroy();this.imagePreloader.destroy();this.trigger("destroy");this._cbs=null;this.onEnterFrame=null;this.onLoopComplete=null;this.onComplete=null;this.onSegmentStart=null;this.onDestroy=null;this.renderer=null;this.expressionsPlugin=null;this.imagePreloader=null;this.projectInterface=null};AnimationItem.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t;this.gotoFrame()};AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t;this.updaFrameModifier()};AnimationItem.prototype.setDirection=function(t){this.playDirection=t<0?-1:1;this.updaFrameModifier()};AnimationItem.prototype.setLoop=function(t){this.loop=t};AnimationItem.prototype.setVolume=function(t,i){if(i&&this.name!==i){return}this.audioController.setVolume(t)};AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()};AnimationItem.prototype.mute=function(t){if(t&&this.name!==t){return}this.audioController.mute()};AnimationItem.prototype.unmute=function(t){if(t&&this.name!==t){return}this.audioController.unmute()};AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection;this.audioController.setRate(this.playSpeed*this.playDirection)};AnimationItem.prototype.getPath=function(){return this.path};AnimationItem.prototype.getAssetsPath=function(t){var i="";if(t.e){i=t.p}else if(this.assetsPath){var e=t.p;if(e.indexOf("images/")!==-1){e=e.split("/")[1]}i=this.assetsPath+e}else{i=this.path;i+=t.u?t.u:"";i+=t.p}return i};AnimationItem.prototype.getAssetData=function(t){var i=0;var e=this.assets.length;while(i<e){if(t===this.assets[i].id){return this.assets[i]}i+=1}return null};AnimationItem.prototype.hide=function(){this.renderer.hide()};AnimationItem.prototype.show=function(){this.renderer.show()};AnimationItem.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate};AnimationItem.prototype.updateDocumentData=function(t,i,e){try{var r=this.renderer.getElementByPath(t);r.updateDocumentData(i,e)}catch(t){}};AnimationItem.prototype.trigger=function(t){if(this._cbs&&this._cbs[t]){switch(t){case"enterFrame":this.triggerEvent(t,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame;this.drawnFrameEvent.totalTime=this.totalFrames;this.drawnFrameEvent.direction=this.frameModifier;this.triggerEvent(t,this.drawnFrameEvent);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)}}if(t==="enterFrame"&&this.onEnterFrame){this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult))}if(t==="loopComplete"&&this.onLoopComplete){this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult))}if(t==="complete"&&this.onComplete){this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult))}if(t==="segmentStart"&&this.onSegmentStart){this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames))}if(t==="destroy"&&this.onDestroy){this.onDestroy.call(this,new BMDestroyEvent(t,this))}};AnimationItem.prototype.triggerRenderFrameError=function(t){var i=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent("error",i);if(this.onError){this.onError.call(this,i)}};AnimationItem.prototype.triggerConfigError=function(t){var i=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent("error",i);if(this.onError){this.onError.call(this,i)}};var animationManager=function(){var t={};var i=[];var e=0;var r=0;var s=0;var n=true;var a=false;function h(t){var e=0;var s=t.target;while(e<r){if(i[e].animation===s){i.splice(e,1);e-=1;r-=1;if(!s.isPaused){l()}}e+=1}}function o(t,e){if(!t){return null}var s=0;while(s<r){if(i[s].elem===t&&i[s].elem!==null){return i[s].animation}s+=1}var n=new AnimationItem;c(n,t);n.setData(t,e);return n}function f(){var t;var e=i.length;var r=[];for(t=0;t<e;t+=1){r.push(i[t].animation)}return r}function u(){s+=1;C()}function l(){s-=1}function c(t,e){t.addEventListener("destroy",h);t.addEventListener("_active",u);t.addEventListener("_idle",l);i.push({elem:e,animation:t});r+=1}function v(t){var i=new AnimationItem;c(i,null);i.setParams(t);return i}function p(t,e){var s;for(s=0;s<r;s+=1){i[s].animation.setSpeed(t,e)}}function m(t,e){var s;for(s=0;s<r;s+=1){i[s].animation.setDirection(t,e)}}function d(t){var e;for(e=0;e<r;e+=1){i[e].animation.play(t)}}function y(t){var h=t-e;var o;for(o=0;o<r;o+=1){i[o].animation.advanceTime(h)}e=t;if(s&&!a){window.requestAnimationFrame(y)}else{n=true}}function g(t){e=t;window.requestAnimationFrame(y)}function E(t){var e;for(e=0;e<r;e+=1){i[e].animation.pause(t)}}function S(t,e,s){var n;for(n=0;n<r;n+=1){i[n].animation.goToAndStop(t,e,s)}}function b(t){var e;for(e=0;e<r;e+=1){i[e].animation.stop(t)}}function P(t){var e;for(e=0;e<r;e+=1){i[e].animation.togglePause(t)}}function M(t){var e;for(e=r-1;e>=0;e-=1){i[e].animation.destroy(t)}}function x(t,i,e){var r=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin")));var s;var n=r.length;for(s=0;s<n;s+=1){if(e){r[s].setAttribute("data-bm-type",e)}o(r[s],t)}if(i&&n===0){if(!e){e="svg"}var a=document.getElementsByTagName("body")[0];a.innerText="";var h=createTag("div");h.style.width="100%";h.style.height="100%";h.setAttribute("data-bm-type",e);a.appendChild(h);o(h,t)}}function w(){var t;for(t=0;t<r;t+=1){i[t].animation.resize()}}function C(){if(!a&&s){if(n){window.requestAnimationFrame(g);n=false}}}function I(){a=true}function T(){a=false;C()}function V(t,e){var s;for(s=0;s<r;s+=1){i[s].animation.setVolume(t,e)}}function F(t){var e;for(e=0;e<r;e+=1){i[e].animation.mute(t)}}function B(t){var e;for(e=0;e<r;e+=1){i[e].animation.unmute(t)}}t.registerAnimation=o;t.loadAnimation=v;t.setSpeed=p;t.setDirection=m;t.play=d;t.pause=E;t.stop=b;t.togglePause=P;t.searchAnimations=x;t.resize=w;t.goToAndStop=S;t.destroy=M;t.freeze=I;t.unfreeze=T;t.setVolume=V;t.mute=F;t.unmute=B;t.getRegisteredAnimations=f;return t}();var BezierFactory=function(){var t={};t.getBezierEasing=e;var i={};function e(t,e,r,s,n){var a=n||("bez_"+t+"_"+e+"_"+r+"_"+s).replace(/\./g,"p");if(i[a]){return i[a]}var h=new y([t,e,r,s]);i[a]=h;return h}var r=4;var s=.001;var n=1e-7;var a=10;var h=11;var o=1/(h-1);var f=typeof Float32Array==="function";function u(t,i){return 1-3*i+3*t}function l(t,i){return 3*i-6*t}function c(t){return 3*t}function v(t,i,e){return((u(i,e)*t+l(i,e))*t+c(i))*t}function p(t,i,e){return 3*u(i,e)*t*t+2*l(i,e)*t+c(i)}function m(t,i,e,r,s){var h,o,f=0;do{o=i+(e-i)/2;h=v(o,r,s)-t;if(h>0){e=o}else{i=o}}while(Math.abs(h)>n&&++f<a);return o}function d(t,i,e,s){for(var n=0;n<r;++n){var a=p(i,e,s);if(a===0)return i;var h=v(i,e,s)-t;i-=h/a}return i}function y(t){this._p=t;this._mSampleValues=f?new Float32Array(h):new Array(h);this._precomputed=false;this.get=this.get.bind(this)}y.prototype={get:function t(i){var e=this._p[0],r=this._p[1],s=this._p[2],n=this._p[3];if(!this._precomputed)this._precompute();if(e===r&&s===n)return i;if(i===0)return 0;if(i===1)return 1;return v(this._getTForX(i),r,n)},_precompute:function t(){var i=this._p[0],e=this._p[1],r=this._p[2],s=this._p[3];this._precomputed=true;if(i!==e||r!==s){this._calcSampleValues()}},_calcSampleValues:function t(){var i=this._p[0],e=this._p[2];for(var r=0;r<h;++r){this._mSampleValues[r]=v(r*o,i,e)}},_getTForX:function t(i){var e=this._p[0],r=this._p[2],n=this._mSampleValues;var a=0;var f=1;var u=h-1;for(;f!==u&&n[f]<=i;++f){a+=o}--f;var l=(i-n[f])/(n[f+1]-n[f]);var c=a+l*o;var v=p(c,e,r);if(v>=s){return d(i,c,e,r)}if(v===0){return c}return m(i,a,a+o,e,r)}};return t}();var pooling=function(){function t(t){return t.concat(createSizedArray(t.length))}return{double:t}}();var poolFactory=function(){return function(t,i,e){var r=0;var s=t;var n=createSizedArray(s);var a={newElement:h,release:o};function h(){var t;if(r){r-=1;t=n[r]}else{t=i()}return t}function o(t){if(r===s){n=pooling["double"](n);s*=2}if(e){e(t)}n[r]=t;r+=1}return a}}();var bezierLengthPool=function(){function t(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,t)}();var segmentsLengthPool=function(){function t(){return{lengths:[],totalLength:0}}function i(t){var i;var e=t.lengths.length;for(i=0;i<e;i+=1){bezierLengthPool.release(t.lengths[i])}t.lengths.length=0}return poolFactory(8,t,i)}();function bezFunction(){var t=Math;function i(t,i,e,r,s,n){var a=t*r+i*s+e*n-s*r-n*t-e*i;return a>-.001&&a<.001}function e(e,r,s,n,a,h,o,f,u){if(s===0&&h===0&&u===0){return i(e,r,n,a,o,f)}var l=t.sqrt(t.pow(n-e,2)+t.pow(a-r,2)+t.pow(h-s,2));var c=t.sqrt(t.pow(o-e,2)+t.pow(f-r,2)+t.pow(u-s,2));var v=t.sqrt(t.pow(o-n,2)+t.pow(f-a,2)+t.pow(u-h,2));var p;if(l>c){if(l>v){p=l-c-v}else{p=v-c-l}}else if(v>c){p=v-c-l}else{p=c-l-v}return p>-1e-4&&p<1e-4}var r=function(){return function(t,i,e,r){var s=getDefaultCurveSegments();var n;var a;var h;var o;var f;var u=0;var l;var c=[];var v=[];var p=bezierLengthPool.newElement();h=e.length;for(n=0;n<s;n+=1){f=n/(s-1);l=0;for(a=0;a<h;a+=1){o=bmPow(1-f,3)*t[a]+3*bmPow(1-f,2)*f*e[a]+3*(1-f)*bmPow(f,2)*r[a]+bmPow(f,3)*i[a];c[a]=o;if(v[a]!==null){l+=bmPow(c[a]-v[a],2)}v[a]=c[a]}if(l){l=bmSqrt(l);u+=l}p.percents[n]=f;p.lengths[n]=u}p.addedLength=u;return p}}();function s(t){var i=segmentsLengthPool.newElement();var e=t.c;var s=t.v;var n=t.o;var a=t.i;var h;var o=t._length;var f=i.lengths;var u=0;for(h=0;h<o-1;h+=1){f[h]=r(s[h],s[h+1],n[h],a[h+1]);u+=f[h].addedLength}if(e&&o){f[h]=r(s[h],s[0],n[h],a[0]);u+=f[h].addedLength}i.totalLength=u;return i}function n(t){this.segmentLength=0;this.points=new Array(t)}function a(t,i){this.partialLength=t;this.point=i}var h=function(){var t={};return function(e,r,s,h){var o=(e[0]+"_"+e[1]+"_"+r[0]+"_"+r[1]+"_"+s[0]+"_"+s[1]+"_"+h[0]+"_"+h[1]).replace(/\./g,"p");if(!t[o]){var f=getDefaultCurveSegments();var u;var l;var c;var v;var p;var m=0;var d;var y;var g=null;if(e.length===2&&(e[0]!==r[0]||e[1]!==r[1])&&i(e[0],e[1],r[0],r[1],e[0]+s[0],e[1]+s[1])&&i(e[0],e[1],r[0],r[1],r[0]+h[0],r[1]+h[1])){f=2}var E=new n(f);c=s.length;for(u=0;u<f;u+=1){y=createSizedArray(c);p=u/(f-1);d=0;for(l=0;l<c;l+=1){v=bmPow(1-p,3)*e[l]+3*bmPow(1-p,2)*p*(e[l]+s[l])+3*(1-p)*bmPow(p,2)*(r[l]+h[l])+bmPow(p,3)*r[l];y[l]=v;if(g!==null){d+=bmPow(y[l]-g[l],2)}}d=bmSqrt(d);m+=d;E.points[u]=new a(d,y);g=y}E.segmentLength=m;t[o]=E}return t[o]}}();function o(t,i){var e=i.percents;var r=i.lengths;var s=e.length;var n=bmFloor((s-1)*t);var a=t*i.addedLength;var h=0;if(n===s-1||n===0||a===r[n]){return e[n]}var o=r[n]>a?-1:1;var f=true;while(f){if(r[n]<=a&&r[n+1]>a){h=(a-r[n])/(r[n+1]-r[n]);f=false}else{n+=o}if(n<0||n>=s-1){if(n===s-1){return e[n]}f=false}}return e[n]+(e[n+1]-e[n])*h}function f(i,e,r,s,n,a){var h=o(n,a);var f=1-h;var u=t.round((f*f*f*i[0]+(h*f*f+f*h*f+f*f*h)*r[0]+(h*h*f+f*h*h+h*f*h)*s[0]+h*h*h*e[0])*1e3)/1e3;var l=t.round((f*f*f*i[1]+(h*f*f+f*h*f+f*f*h)*r[1]+(h*h*f+f*h*h+h*f*h)*s[1]+h*h*h*e[1])*1e3)/1e3;return[u,l]}var u=createTypedArray("float32",8);function l(i,e,r,s,n,a,h){if(n<0){n=0}else if(n>1){n=1}var f=o(n,h);a=a>1?1:a;var l=o(a,h);var c;var v=i.length;var p=1-f;var m=1-l;var d=p*p*p;var y=f*p*p*3;var g=f*f*p*3;var E=f*f*f;var S=p*p*m;var b=f*p*m+p*f*m+p*p*l;var P=f*f*m+p*f*l+f*p*l;var M=f*f*l;var x=p*m*m;var w=f*m*m+p*l*m+p*m*l;var C=f*l*m+p*l*l+f*m*l;var I=f*l*l;var T=m*m*m;var V=l*m*m+m*l*m+m*m*l;var F=l*l*m+m*l*l+l*m*l;var B=l*l*l;for(c=0;c<v;c+=1){u[c*4]=t.round((d*i[c]+y*r[c]+g*s[c]+E*e[c])*1e3)/1e3;u[c*4+1]=t.round((S*i[c]+b*r[c]+P*s[c]+M*e[c])*1e3)/1e3;u[c*4+2]=t.round((x*i[c]+w*r[c]+C*s[c]+I*e[c])*1e3)/1e3;u[c*4+3]=t.round((T*i[c]+V*r[c]+F*s[c]+B*e[c])*1e3)/1e3}return u}return{getSegmentsLength:s,getNewSegment:l,getPointInSegment:f,buildBezierData:h,pointOnLine2D:i,pointOnLine3D:e}}var bez=bezFunction();var initFrame=initialDefaultFrame;var mathAbs=Math.abs;function interpolateValue(t,i){var e=this.offsetTime;var r;if(this.propType==="multidimensional"){r=createTypedArray("float32",this.pv.length)}var s=i.lastIndex;var n=s;var a=this.keyframes.length-1;var h=true;var o;var f;var u;while(h){o=this.keyframes[n];f=this.keyframes[n+1];if(n===a-1&&t>=f.t-e){if(o.h){o=f}s=0;break}if(f.t-e>t){s=n;break}if(n<a-1){n+=1}else{s=0;h=false}}u=this.keyframesMetadata[n]||{};var l;var c;var v;var p;var m;var d;var y=f.t-e;var g=o.t-e;var E;if(o.to){if(!u.bezierData){u.bezierData=bez.buildBezierData(o.s,f.s||o.e,o.to,o.ti)}var S=u.bezierData;if(t>=y||t<g){var b=t>=y?S.points.length-1:0;c=S.points[b].point.length;for(l=0;l<c;l+=1){r[l]=S.points[b].point[l]}}else{if(u.__fnct){d=u.__fnct}else{d=BezierFactory.getBezierEasing(o.o.x,o.o.y,o.i.x,o.i.y,o.n).get;u.__fnct=d}v=d((t-g)/(y-g));var P=S.segmentLength*v;var M;var x=i.lastFrame<t&&i._lastKeyframeIndex===n?i._lastAddedLength:0;m=i.lastFrame<t&&i._lastKeyframeIndex===n?i._lastPoint:0;h=true;p=S.points.length;while(h){x+=S.points[m].partialLength;if(P===0||v===0||m===S.points.length-1){c=S.points[m].point.length;for(l=0;l<c;l+=1){r[l]=S.points[m].point[l]}break}else if(P>=x&&P<x+S.points[m+1].partialLength){M=(P-x)/S.points[m+1].partialLength;c=S.points[m].point.length;for(l=0;l<c;l+=1){r[l]=S.points[m].point[l]+(S.points[m+1].point[l]-S.points[m].point[l])*M}break}if(m<p-1){m+=1}else{h=false}}i._lastPoint=m;i._lastAddedLength=x-S.points[m].partialLength;i._lastKeyframeIndex=n}}else{var w;var C;var I;var T;var V;a=o.s.length;E=f.s||o.e;if(this.sh&&o.h!==1){if(t>=y){r[0]=E[0];r[1]=E[1];r[2]=E[2]}else if(t<=g){r[0]=o.s[0];r[1]=o.s[1];r[2]=o.s[2]}else{var F=createQuaternion(o.s);var B=createQuaternion(E);var R=(t-g)/(y-g);quaternionToEuler(r,slerp(F,B,R))}}else{for(n=0;n<a;n+=1){if(o.h!==1){if(t>=y){v=1}else if(t<g){v=0}else{if(o.o.x.constructor===Array){if(!u.__fnct){u.__fnct=[]}if(!u.__fnct[n]){w=o.o.x[n]===undefined?o.o.x[0]:o.o.x[n];C=o.o.y[n]===undefined?o.o.y[0]:o.o.y[n];I=o.i.x[n]===undefined?o.i.x[0]:o.i.x[n];T=o.i.y[n]===undefined?o.i.y[0]:o.i.y[n];d=BezierFactory.getBezierEasing(w,C,I,T).get;u.__fnct[n]=d}else{d=u.__fnct[n]}}else if(!u.__fnct){w=o.o.x;C=o.o.y;I=o.i.x;T=o.i.y;d=BezierFactory.getBezierEasing(w,C,I,T).get;o.keyframeMetadata=d}else{d=u.__fnct}v=d((t-g)/(y-g))}}E=f.s||o.e;V=o.h===1?o.s[n]:o.s[n]+(E[n]-o.s[n])*v;if(this.propType==="multidimensional"){r[n]=V}else{r=V}}}}i.lastIndex=s;return r}function slerp(t,i,e){var r=[];var s=t[0];var n=t[1];var a=t[2];var h=t[3];var o=i[0];var f=i[1];var u=i[2];var l=i[3];var c;var v;var p;var m;var d;v=s*o+n*f+a*u+h*l;if(v<0){v=-v;o=-o;f=-f;u=-u;l=-l}if(1-v>1e-6){c=Math.acos(v);p=Math.sin(c);m=Math.sin((1-e)*c)/p;d=Math.sin(e*c)/p}else{m=1-e;d=e}r[0]=m*s+d*o;r[1]=m*n+d*f;r[2]=m*a+d*u;r[3]=m*h+d*l;return r}function quaternionToEuler(t,i){var e=i[0];var r=i[1];var s=i[2];var n=i[3];var a=Math.atan2(2*r*n-2*e*s,1-2*r*r-2*s*s);var h=Math.asin(2*e*r+2*s*n);var o=Math.atan2(2*e*n-2*r*s,1-2*e*e-2*s*s);t[0]=a/degToRads;t[1]=h/degToRads;t[2]=o/degToRads}function createQuaternion(t){var i=t[0]*degToRads;var e=t[1]*degToRads;var r=t[2]*degToRads;var s=Math.cos(i/2);var n=Math.cos(e/2);var a=Math.cos(r/2);var h=Math.sin(i/2);var o=Math.sin(e/2);var f=Math.sin(r/2);var u=s*n*a-h*o*f;var l=h*o*a+s*n*f;var c=h*n*a+s*o*f;var v=s*o*a-h*n*f;return[l,c,v,u]}function getValueAtCurrentTime(){var t=this.comp.renderedFrame-this.offsetTime;var i=this.keyframes[0].t-this.offsetTime;var e=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=e&&t>=e||this._caching.lastFrame<i&&t<i))){if(this._caching.lastFrame>=t){this._caching._lastKeyframeIndex=-1;this._caching.lastIndex=0}var r=this.interpolateValue(t,this._caching);this.pv=r}this._caching.lastFrame=t;return this.pv}function setVValue(t){var i;if(this.propType==="unidimensional"){i=t*this.mult;if(mathAbs(this.v-i)>1e-5){this.v=i;this._mdf=true}}else{var e=0;var r=this.v.length;while(e<r){i=t[e]*this.mult;if(mathAbs(this.v[e]-i)>1e-5){this.v[e]=i;this._mdf=true}e+=1}}}function processEffectsSequence(){if(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length){return}if(this.lock){this.setVValue(this.pv);return}this.lock=true;this._mdf=this._isFirstFrame;var t;var i=this.effectsSequence.length;var e=this.kf?this.pv:this.data.k;for(t=0;t<i;t+=1){e=this.effectsSequence[t](e)}this.setVValue(e);this._isFirstFrame=false;this.lock=false;this.frameId=this.elem.globalData.frameId}function addEffect(t){this.effectsSequence.push(t);this.container.addDynamicProperty(this)}function ValueProperty(t,i,e,r){this.propType="unidimensional";this.mult=e||1;this.data=i;this.v=e?i.k*e:i.k;this.pv=i.k;this._mdf=false;this.elem=t;this.container=r;this.comp=t.comp;this.k=false;this.kf=false;this.vel=0;this.effectsSequence=[];this._isFirstFrame=true;this.getValue=processEffectsSequence;this.setVValue=setVValue;this.addEffect=addEffect}function MultiDimensionalProperty(t,i,e,r){this.propType="multidimensional";this.mult=e||1;this.data=i;this._mdf=false;this.elem=t;this.container=r;this.comp=t.comp;this.k=false;this.kf=false;this.frameId=-1;var s;var n=i.k.length;this.v=createTypedArray("float32",n);this.pv=createTypedArray("float32",n);this.vel=createTypedArray("float32",n);for(s=0;s<n;s+=1){this.v[s]=i.k[s]*this.mult;this.pv[s]=i.k[s]}this._isFirstFrame=true;this.effectsSequence=[];this.getValue=processEffectsSequence;this.setVValue=setVValue;this.addEffect=addEffect}function KeyframedValueProperty(t,i,e,r){this.propType="unidimensional";this.keyframes=i.k;this.keyframesMetadata=[];this.offsetTime=t.data.st;this.frameId=-1;this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1};this.k=true;this.kf=true;this.data=i;this.mult=e||1;this.elem=t;this.container=r;this.comp=t.comp;this.v=initFrame;this.pv=initFrame;this._isFirstFrame=true;this.getValue=processEffectsSequence;this.setVValue=setVValue;this.interpolateValue=interpolateValue;this.effectsSequence=[getValueAtCurrentTime.bind(this)];this.addEffect=addEffect}function KeyframedMultidimensionalProperty(t,i,e,r){this.propType="multidimensional";var s;var n=i.k.length;var a;var h;var o;var f;for(s=0;s<n-1;s+=1){if(i.k[s].to&&i.k[s].s&&i.k[s+1]&&i.k[s+1].s){a=i.k[s].s;h=i.k[s+1].s;o=i.k[s].to;f=i.k[s].ti;if(a.length===2&&!(a[0]===h[0]&&a[1]===h[1])&&bez.pointOnLine2D(a[0],a[1],h[0],h[1],a[0]+o[0],a[1]+o[1])&&bez.pointOnLine2D(a[0],a[1],h[0],h[1],h[0]+f[0],h[1]+f[1])||a.length===3&&!(a[0]===h[0]&&a[1]===h[1]&&a[2]===h[2])&&bez.pointOnLine3D(a[0],a[1],a[2],h[0],h[1],h[2],a[0]+o[0],a[1]+o[1],a[2]+o[2])&&bez.pointOnLine3D(a[0],a[1],a[2],h[0],h[1],h[2],h[0]+f[0],h[1]+f[1],h[2]+f[2])){i.k[s].to=null;i.k[s].ti=null}if(a[0]===h[0]&&a[1]===h[1]&&o[0]===0&&o[1]===0&&f[0]===0&&f[1]===0){if(a.length===2||a[2]===h[2]&&o[2]===0&&f[2]===0){i.k[s].to=null;i.k[s].ti=null}}}}this.effectsSequence=[getValueAtCurrentTime.bind(this)];this.data=i;this.keyframes=i.k;this.keyframesMetadata=[];this.offsetTime=t.data.st;this.k=true;this.kf=true;this._isFirstFrame=true;this.mult=e||1;this.elem=t;this.container=r;this.comp=t.comp;this.getValue=processEffectsSequence;this.setVValue=setVValue;this.interpolateValue=interpolateValue;this.frameId=-1;var u=i.k[0].s.length;this.v=createTypedArray("float32",u);this.pv=createTypedArray("float32",u);for(s=0;s<u;s+=1){this.v[s]=initFrame;this.pv[s]=initFrame}this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",u)};this.addEffect=addEffect}var PropertyFactory=function(){function t(t,i,e,r,s){if(i.sid){i=t.globalData.slotManager.getProp(i)}var n;if(!i.k.length){n=new ValueProperty(t,i,r,s)}else if(typeof i.k[0]==="number"){n=new MultiDimensionalProperty(t,i,r,s)}else{switch(e){case 0:n=new KeyframedValueProperty(t,i,r,s);break;case 1:n=new KeyframedMultidimensionalProperty(t,i,r,s);break}}if(n.effectsSequence.length){s.addDynamicProperty(n)}return n}var i={getProp:t};return i}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function t(i){if(this.dynamicProperties.indexOf(i)===-1){this.dynamicProperties.push(i);this.container.addDynamicProperty(this);this._isAnimated=true}},iterateDynamicProperties:function t(){this._mdf=false;var i;var e=this.dynamicProperties.length;for(i=0;i<e;i+=1){this.dynamicProperties[i].getValue();if(this.dynamicProperties[i]._mdf){this._mdf=true}}},initDynamicPropertyContainer:function t(i){this.container=i;this.dynamicProperties=[];this._mdf=false;this._isAnimated=false}};var pointPool=function(){function t(){return createTypedArray("float32",2)}return poolFactory(8,t)}();function ShapePath(){this.c=false;this._length=0;this._maxLength=8;this.v=createSizedArray(this._maxLength);this.o=createSizedArray(this._maxLength);this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(t,i){this.c=t;this.setLength(i);var e=0;while(e<i){this.v[e]=pointPool.newElement();this.o[e]=pointPool.newElement();this.i[e]=pointPool.newElement();e+=1}};ShapePath.prototype.setLength=function(t){while(this._maxLength<t){this.doubleArrayLength()}this._length=t};ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength));this.i=this.i.concat(createSizedArray(this._maxLength));this.o=this.o.concat(createSizedArray(this._maxLength));this._maxLength*=2};ShapePath.prototype.setXYAt=function(t,i,e,r,s){var n;this._length=Math.max(this._length,r+1);if(this._length>=this._maxLength){this.doubleArrayLength()}switch(e){case"v":n=this.v;break;case"i":n=this.i;break;case"o":n=this.o;break;default:n=[];break}if(!n[r]||n[r]&&!s){n[r]=pointPool.newElement()}n[r][0]=t;n[r][1]=i};ShapePath.prototype.setTripleAt=function(t,i,e,r,s,n,a,h){this.setXYAt(t,i,"v",a,h);this.setXYAt(e,r,"o",a,h);this.setXYAt(s,n,"i",a,h)};ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var i=this.v;var e=this.o;var r=this.i;var s=0;if(this.c){t.setTripleAt(i[0][0],i[0][1],r[0][0],r[0][1],e[0][0],e[0][1],0,false);s=1}var n=this._length-1;var a=this._length;var h;for(h=s;h<a;h+=1){t.setTripleAt(i[n][0],i[n][1],r[n][0],r[n][1],e[n][0],e[n][1],h,false);n-=1}return t};ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function t(){return new ShapePath}function i(t){var i=t._length;var e;for(e=0;e<i;e+=1){pointPool.release(t.v[e]);pointPool.release(t.i[e]);pointPool.release(t.o[e]);t.v[e]=null;t.i[e]=null;t.o[e]=null}t._length=0;t.c=false}function e(t){var i=r.newElement();var e;var s=t._length===undefined?t.v.length:t._length;i.setLength(s);i.c=t.c;for(e=0;e<s;e+=1){i.setTripleAt(t.v[e][0],t.v[e][1],t.o[e][0],t.o[e][1],t.i[e][0],t.i[e][1],e)}return i}var r=poolFactory(4,t,i);r.clone=e;return r}();function ShapeCollection(){this._length=0;this._maxLength=4;this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(t){if(this._length===this._maxLength){this.shapes=this.shapes.concat(createSizedArray(this._maxLength));this._maxLength*=2}this.shapes[this._length]=t;this._length+=1};ShapeCollection.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1){shapePool.release(this.shapes[t])}this._length=0};var shapeCollectionPool=function(){var t={newShapeCollection:s,release:n};var i=0;var e=4;var r=createSizedArray(e);function s(){var t;if(i){i-=1;t=r[i]}else{t=new ShapeCollection}return t}function n(t){var s;var n=t._length;for(s=0;s<n;s+=1){shapePool.release(t.shapes[s])}t._length=0;if(i===e){r=pooling["double"](r);e*=2}r[i]=t;i+=1}return t}();var ShapePropertyFactory=function(){var t=-999999;function i(t,i,e){var r=e.lastIndex;var s;var n;var a;var h;var o;var f;var u;var l;var c;var v=this.keyframes;if(t<v[0].t-this.offsetTime){s=v[0].s[0];a=true;r=0}else if(t>=v[v.length-1].t-this.offsetTime){s=v[v.length-1].s?v[v.length-1].s[0]:v[v.length-2].e[0];a=true}else{var p=r;var m=v.length-1;var d=true;var y;var g;var E;while(d){y=v[p];g=v[p+1];if(g.t-this.offsetTime>t){break}if(p<m-1){p+=1}else{d=false}}E=this.keyframesMetadata[p]||{};a=y.h===1;r=p;if(!a){if(t>=g.t-this.offsetTime){l=1}else if(t<y.t-this.offsetTime){l=0}else{var S;if(E.__fnct){S=E.__fnct}else{S=BezierFactory.getBezierEasing(y.o.x,y.o.y,y.i.x,y.i.y).get;E.__fnct=S}l=S((t-(y.t-this.offsetTime))/(g.t-this.offsetTime-(y.t-this.offsetTime)))}n=g.s?g.s[0]:y.e[0]}s=y.s[0]}f=i._length;u=s.i[0].length;e.lastIndex=r;for(h=0;h<f;h+=1){for(o=0;o<u;o+=1){c=a?s.i[h][o]:s.i[h][o]+(n.i[h][o]-s.i[h][o])*l;i.i[h][o]=c;c=a?s.o[h][o]:s.o[h][o]+(n.o[h][o]-s.o[h][o])*l;i.o[h][o]=c;c=a?s.v[h][o]:s.v[h][o]+(n.v[h][o]-s.v[h][o])*l;i.v[h][o]=c}}}function e(){var i=this.comp.renderedFrame-this.offsetTime;var e=this.keyframes[0].t-this.offsetTime;var r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;var s=this._caching.lastFrame;if(!(s!==t&&(s<e&&i<e||s>r&&i>r))){this._caching.lastIndex=s<i?this._caching.lastIndex:0;this.interpolateShape(i,this.pv,this._caching)}this._caching.lastFrame=i;return this.pv}function r(){this.paths=this.localShapeCollection}function s(t,i){if(t._length!==i._length||t.c!==i.c){return false}var e;var r=t._length;for(e=0;e<r;e+=1){if(t.v[e][0]!==i.v[e][0]||t.v[e][1]!==i.v[e][1]||t.o[e][0]!==i.o[e][0]||t.o[e][1]!==i.o[e][1]||t.i[e][0]!==i.i[e][0]||t.i[e][1]!==i.i[e][1]){return false}}return true}function n(t){if(!s(this.v,t)){this.v=shapePool.clone(t);this.localShapeCollection.releaseShapes();this.localShapeCollection.addShape(this.v);this._mdf=true;this.paths=this.localShapeCollection}}function a(){if(this.elem.globalData.frameId===this.frameId){return}if(!this.effectsSequence.length){this._mdf=false;return}if(this.lock){this.setVValue(this.pv);return}this.lock=true;this._mdf=false;var t;if(this.kf){t=this.pv}else if(this.data.ks){t=this.data.ks.k}else{t=this.data.pt.k}var i;var e=this.effectsSequence.length;for(i=0;i<e;i+=1){t=this.effectsSequence[i](t)}this.setVValue(t);this.lock=false;this.frameId=this.elem.globalData.frameId}function h(t,i,e){this.propType="shape";this.comp=t.comp;this.container=t;this.elem=t;this.data=i;this.k=false;this.kf=false;this._mdf=false;var s=e===3?i.pt.k:i.ks.k;this.v=shapePool.clone(s);this.pv=shapePool.clone(this.v);this.localShapeCollection=shapeCollectionPool.newShapeCollection();this.paths=this.localShapeCollection;this.paths.addShape(this.v);this.reset=r;this.effectsSequence=[]}function o(t){this.effectsSequence.push(t);this.container.addDynamicProperty(this)}h.prototype.interpolateShape=i;h.prototype.getValue=a;h.prototype.setVValue=n;h.prototype.addEffect=o;function f(i,s,n){this.propType="shape";this.comp=i.comp;this.elem=i;this.container=i;this.offsetTime=i.data.st;this.keyframes=n===3?s.pt.k:s.ks.k;this.keyframesMetadata=[];this.k=true;this.kf=true;var a=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement();this.v.setPathData(this.keyframes[0].s[0].c,a);this.pv=shapePool.clone(this.v);this.localShapeCollection=shapeCollectionPool.newShapeCollection();this.paths=this.localShapeCollection;this.paths.addShape(this.v);this.lastFrame=t;this.reset=r;this._caching={lastFrame:t,lastIndex:0};this.effectsSequence=[e.bind(this)]}f.prototype.getValue=a;f.prototype.interpolateShape=i;f.prototype.setVValue=n;f.prototype.addEffect=o;var u=function(){var t=roundCorner;function i(t,i){this.v=shapePool.newElement();this.v.setPathData(true,4);this.localShapeCollection=shapeCollectionPool.newShapeCollection();this.paths=this.localShapeCollection;this.localShapeCollection.addShape(this.v);this.d=i.d;this.elem=t;this.comp=t.comp;this.frameId=-1;this.initDynamicPropertyContainer(t);this.p=PropertyFactory.getProp(t,i.p,1,0,this);this.s=PropertyFactory.getProp(t,i.s,1,0,this);if(this.dynamicProperties.length){this.k=true}else{this.k=false;this.convertEllToPath()}}i.prototype={reset:r,getValue:function t(){if(this.elem.globalData.frameId===this.frameId){return}this.frameId=this.elem.globalData.frameId;this.iterateDynamicProperties();if(this._mdf){this.convertEllToPath()}},convertEllToPath:function i(){var e=this.p.v[0];var r=this.p.v[1];var s=this.s.v[0]/2;var n=this.s.v[1]/2;var a=this.d!==3;var h=this.v;h.v[0][0]=e;h.v[0][1]=r-n;h.v[1][0]=a?e+s:e-s;h.v[1][1]=r;h.v[2][0]=e;h.v[2][1]=r+n;h.v[3][0]=a?e-s:e+s;h.v[3][1]=r;h.i[0][0]=a?e-s*t:e+s*t;h.i[0][1]=r-n;h.i[1][0]=a?e+s:e-s;h.i[1][1]=r-n*t;h.i[2][0]=a?e+s*t:e-s*t;h.i[2][1]=r+n;h.i[3][0]=a?e-s:e+s;h.i[3][1]=r+n*t;h.o[0][0]=a?e+s*t:e-s*t;h.o[0][1]=r-n;h.o[1][0]=a?e+s:e-s;h.o[1][1]=r+n*t;h.o[2][0]=a?e-s*t:e+s*t;h.o[2][1]=r+n;h.o[3][0]=a?e-s:e+s;h.o[3][1]=r-n*t}};extendPrototype([DynamicPropertyContainer],i);return i}();var l=function(){function t(t,i){this.v=shapePool.newElement();this.v.setPathData(true,0);this.elem=t;this.comp=t.comp;this.data=i;this.frameId=-1;this.d=i.d;this.initDynamicPropertyContainer(t);if(i.sy===1){this.ir=PropertyFactory.getProp(t,i.ir,0,0,this);this.is=PropertyFactory.getProp(t,i.is,0,.01,this);this.convertToPath=this.convertStarToPath}else{this.convertToPath=this.convertPolygonToPath}this.pt=PropertyFactory.getProp(t,i.pt,0,0,this);this.p=PropertyFactory.getProp(t,i.p,1,0,this);this.r=PropertyFactory.getProp(t,i.r,0,degToRads,this);this.or=PropertyFactory.getProp(t,i.or,0,0,this);this.os=PropertyFactory.getProp(t,i.os,0,.01,this);this.localShapeCollection=shapeCollectionPool.newShapeCollection();this.localShapeCollection.addShape(this.v);this.paths=this.localShapeCollection;if(this.dynamicProperties.length){this.k=true}else{this.k=false;this.convertToPath()}}t.prototype={reset:r,getValue:function t(){if(this.elem.globalData.frameId===this.frameId){return}this.frameId=this.elem.globalData.frameId;this.iterateDynamicProperties();if(this._mdf){this.convertToPath()}},convertStarToPath:function t(){var i=Math.floor(this.pt.v)*2;var e=Math.PI*2/i;var r=true;var s=this.or.v;var n=this.ir.v;var a=this.os.v;var h=this.is.v;var o=2*Math.PI*s/(i*2);var f=2*Math.PI*n/(i*2);var u;var l;var c;var v;var p=-Math.PI/2;p+=this.r.v;var m=this.data.d===3?-1:1;this.v._length=0;for(u=0;u<i;u+=1){l=r?s:n;c=r?a:h;v=r?o:f;var d=l*Math.cos(p);var y=l*Math.sin(p);var g=d===0&&y===0?0:y/Math.sqrt(d*d+y*y);var E=d===0&&y===0?0:-d/Math.sqrt(d*d+y*y);d+=+this.p.v[0];y+=+this.p.v[1];this.v.setTripleAt(d,y,d-g*v*c*m,y-E*v*c*m,d+g*v*c*m,y+E*v*c*m,u,true);r=!r;p+=e*m}},convertPolygonToPath:function t(){var i=Math.floor(this.pt.v);var e=Math.PI*2/i;var r=this.or.v;var s=this.os.v;var n=2*Math.PI*r/(i*4);var a;var h=-Math.PI*.5;var o=this.data.d===3?-1:1;h+=this.r.v;this.v._length=0;for(a=0;a<i;a+=1){var f=r*Math.cos(h);var u=r*Math.sin(h);var l=f===0&&u===0?0:u/Math.sqrt(f*f+u*u);var c=f===0&&u===0?0:-f/Math.sqrt(f*f+u*u);f+=+this.p.v[0];u+=+this.p.v[1];this.v.setTripleAt(f,u,f-l*n*s*o,u-c*n*s*o,f+l*n*s*o,u+c*n*s*o,a,true);h+=e*o}this.paths.length=0;this.paths[0]=this.v}};extendPrototype([DynamicPropertyContainer],t);return t}();var c=function(){function t(t,i){this.v=shapePool.newElement();this.v.c=true;this.localShapeCollection=shapeCollectionPool.newShapeCollection();this.localShapeCollection.addShape(this.v);this.paths=this.localShapeCollection;this.elem=t;this.comp=t.comp;this.frameId=-1;this.d=i.d;this.initDynamicPropertyContainer(t);this.p=PropertyFactory.getProp(t,i.p,1,0,this);this.s=PropertyFactory.getProp(t,i.s,1,0,this);this.r=PropertyFactory.getProp(t,i.r,0,0,this);if(this.dynamicProperties.length){this.k=true}else{this.k=false;this.convertRectToPath()}}t.prototype={convertRectToPath:function t(){var i=this.p.v[0];var e=this.p.v[1];var r=this.s.v[0]/2;var s=this.s.v[1]/2;var n=bmMin(r,s,this.r.v);var a=n*(1-roundCorner);this.v._length=0;if(this.d===2||this.d===1){this.v.setTripleAt(i+r,e-s+n,i+r,e-s+n,i+r,e-s+a,0,true);this.v.setTripleAt(i+r,e+s-n,i+r,e+s-a,i+r,e+s-n,1,true);if(n!==0){this.v.setTripleAt(i+r-n,e+s,i+r-n,e+s,i+r-a,e+s,2,true);this.v.setTripleAt(i-r+n,e+s,i-r+a,e+s,i-r+n,e+s,3,true);this.v.setTripleAt(i-r,e+s-n,i-r,e+s-n,i-r,e+s-a,4,true);this.v.setTripleAt(i-r,e-s+n,i-r,e-s+a,i-r,e-s+n,5,true);this.v.setTripleAt(i-r+n,e-s,i-r+n,e-s,i-r+a,e-s,6,true);this.v.setTripleAt(i+r-n,e-s,i+r-a,e-s,i+r-n,e-s,7,true)}else{this.v.setTripleAt(i-r,e+s,i-r+a,e+s,i-r,e+s,2);this.v.setTripleAt(i-r,e-s,i-r,e-s+a,i-r,e-s,3)}}else{this.v.setTripleAt(i+r,e-s+n,i+r,e-s+a,i+r,e-s+n,0,true);if(n!==0){this.v.setTripleAt(i+r-n,e-s,i+r-n,e-s,i+r-a,e-s,1,true);this.v.setTripleAt(i-r+n,e-s,i-r+a,e-s,i-r+n,e-s,2,true);this.v.setTripleAt(i-r,e-s+n,i-r,e-s+n,i-r,e-s+a,3,true);this.v.setTripleAt(i-r,e+s-n,i-r,e+s-a,i-r,e+s-n,4,true);this.v.setTripleAt(i-r+n,e+s,i-r+n,e+s,i-r+a,e+s,5,true);this.v.setTripleAt(i+r-n,e+s,i+r-a,e+s,i+r-n,e+s,6,true);this.v.setTripleAt(i+r,e+s-n,i+r,e+s-n,i+r,e+s-a,7,true)}else{this.v.setTripleAt(i-r,e-s,i-r+a,e-s,i-r,e-s,1,true);this.v.setTripleAt(i-r,e+s,i-r,e+s-a,i-r,e+s,2,true);this.v.setTripleAt(i+r,e+s,i+r-a,e+s,i+r,e+s,3,true)}}},getValue:function t(){if(this.elem.globalData.frameId===this.frameId){return}this.frameId=this.elem.globalData.frameId;this.iterateDynamicProperties();if(this._mdf){this.convertRectToPath()}},reset:r};extendPrototype([DynamicPropertyContainer],t);return t}();function v(t,i,e){var r;if(e===3||e===4){var s=e===3?i.pt:i.ks;var n=s.k;if(n.length){r=new f(t,i,e)}else{r=new h(t,i,e)}}else if(e===5){r=new c(t,i)}else if(e===6){r=new u(t,i)}else if(e===7){r=new l(t,i)}if(r.k){t.addDynamicProperty(r)}return r}function p(){return h}function m(){return f}var d={};d.getShapeProp=v;d.getConstructorFunction=p;d.getKeyframedConstructorFunction=m;return d}();
|
2
|
-
/*!
|
3
|
-
Transformation Matrix v2.0
|
4
|
-
(c) Epistemex 2014-2015
|
5
|
-
www.epistemex.com
|
6
|
-
By Ken Fyrstenberg
|
7
|
-
Contributions by leeoniya.
|
8
|
-
License: MIT, header required.
|
9
|
-
*/var Matrix=function(){var t=Math.cos;var i=Math.sin;var e=Math.tan;var r=Math.round;function s(){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;return this}function n(e){if(e===0){return this}var r=t(e);var s=i(e);return this._t(r,-s,0,0,s,r,0,0,0,0,1,0,0,0,0,1)}function a(e){if(e===0){return this}var r=t(e);var s=i(e);return this._t(1,0,0,0,0,r,-s,0,0,s,r,0,0,0,0,1)}function h(e){if(e===0){return this}var r=t(e);var s=i(e);return this._t(r,0,s,0,0,1,0,0,-s,0,r,0,0,0,0,1)}function o(e){if(e===0){return this}var r=t(e);var s=i(e);return this._t(r,-s,0,0,s,r,0,0,0,0,1,0,0,0,0,1)}function f(t,i){return this._t(1,i,t,1,0,0)}function u(t,i){return this.shear(e(t),e(i))}function l(r,s){var n=t(s);var a=i(s);return this._t(n,a,0,0,-a,n,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,e(r),1,0,0,0,0,1,0,0,0,0,1)._t(n,-a,0,0,a,n,0,0,0,0,1,0,0,0,0,1)}function c(t,i,e){if(!e&&e!==0){e=1}if(t===1&&i===1&&e===1){return this}return this._t(t,0,0,0,0,i,0,0,0,0,e,0,0,0,0,1)}function v(t,i,e,r,s,n,a,h,o,f,u,l,c,v,p,m){this.props[0]=t;this.props[1]=i;this.props[2]=e;this.props[3]=r;this.props[4]=s;this.props[5]=n;this.props[6]=a;this.props[7]=h;this.props[8]=o;this.props[9]=f;this.props[10]=u;this.props[11]=l;this.props[12]=c;this.props[13]=v;this.props[14]=p;this.props[15]=m;return this}function p(t,i,e){e=e||0;if(t!==0||i!==0||e!==0){return this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,i,e,1)}return this}function m(t,i,e,r,s,n,a,h,o,f,u,l,c,v,p,m){var d=this.props;if(t===1&&i===0&&e===0&&r===0&&s===0&&n===1&&a===0&&h===0&&o===0&&f===0&&u===1&&l===0){d[12]=d[12]*t+d[15]*c;d[13]=d[13]*n+d[15]*v;d[14]=d[14]*u+d[15]*p;d[15]*=m;this._identityCalculated=false;return this}var y=d[0];var g=d[1];var E=d[2];var S=d[3];var b=d[4];var P=d[5];var M=d[6];var x=d[7];var w=d[8];var C=d[9];var I=d[10];var T=d[11];var V=d[12];var F=d[13];var B=d[14];var R=d[15];d[0]=y*t+g*s+E*o+S*c;d[1]=y*i+g*n+E*f+S*v;d[2]=y*e+g*a+E*u+S*p;d[3]=y*r+g*h+E*l+S*m;d[4]=b*t+P*s+M*o+x*c;d[5]=b*i+P*n+M*f+x*v;d[6]=b*e+P*a+M*u+x*p;d[7]=b*r+P*h+M*l+x*m;d[8]=w*t+C*s+I*o+T*c;d[9]=w*i+C*n+I*f+T*v;d[10]=w*e+C*a+I*u+T*p;d[11]=w*r+C*h+I*l+T*m;d[12]=V*t+F*s+B*o+R*c;d[13]=V*i+F*n+B*f+R*v;d[14]=V*e+F*a+B*u+R*p;d[15]=V*r+F*h+B*l+R*m;this._identityCalculated=false;return this}function d(t){var i=t.props;return this.transform(i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7],i[8],i[9],i[10],i[11],i[12],i[13],i[14],i[15])}function y(){if(!this._identityCalculated){this._identity=!(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._identityCalculated=true}return this._identity}function g(t){var i=0;while(i<16){if(t.props[i]!==this.props[i]){return false}i+=1}return true}function E(t){var i;for(i=0;i<16;i+=1){t.props[i]=this.props[i]}return t}function S(t){var i;for(i=0;i<16;i+=1){this.props[i]=t[i]}}function b(t,i,e){return{x:t*this.props[0]+i*this.props[4]+e*this.props[8]+this.props[12],y:t*this.props[1]+i*this.props[5]+e*this.props[9]+this.props[13],z:t*this.props[2]+i*this.props[6]+e*this.props[10]+this.props[14]}}function P(t,i,e){return t*this.props[0]+i*this.props[4]+e*this.props[8]+this.props[12]}function M(t,i,e){return t*this.props[1]+i*this.props[5]+e*this.props[9]+this.props[13]}function x(t,i,e){return t*this.props[2]+i*this.props[6]+e*this.props[10]+this.props[14]}function w(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4];var i=this.props[5]/t;var e=-this.props[1]/t;var r=-this.props[4]/t;var s=this.props[0]/t;var n=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t;var a=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t;var h=new Matrix;h.props[0]=i;h.props[1]=e;h.props[4]=r;h.props[5]=s;h.props[12]=n;h.props[13]=a;return h}function C(t){var i=this.getInverseMatrix();return i.applyToPointArray(t[0],t[1],t[2]||0)}function I(t){var i;var e=t.length;var r=[];for(i=0;i<e;i+=1){r[i]=C(t[i])}return r}function T(t,i,e){var r=createTypedArray("float32",6);if(this.isIdentity()){r[0]=t[0];r[1]=t[1];r[2]=i[0];r[3]=i[1];r[4]=e[0];r[5]=e[1]}else{var s=this.props[0];var n=this.props[1];var a=this.props[4];var h=this.props[5];var o=this.props[12];var f=this.props[13];r[0]=t[0]*s+t[1]*a+o;r[1]=t[0]*n+t[1]*h+f;r[2]=i[0]*s+i[1]*a+o;r[3]=i[0]*n+i[1]*h+f;r[4]=e[0]*s+e[1]*a+o;r[5]=e[0]*n+e[1]*h+f}return r}function V(t,i,e){var r;if(this.isIdentity()){r=[t,i,e]}else{r=[t*this.props[0]+i*this.props[4]+e*this.props[8]+this.props[12],t*this.props[1]+i*this.props[5]+e*this.props[9]+this.props[13],t*this.props[2]+i*this.props[6]+e*this.props[10]+this.props[14]]}return r}function F(t,i){if(this.isIdentity()){return t+","+i}var e=this.props;return Math.round((t*e[0]+i*e[4]+e[12])*100)/100+","+Math.round((t*e[1]+i*e[5]+e[13])*100)/100}function B(){var t=0;var i=this.props;var e="matrix3d(";var s=1e4;while(t<16){e+=r(i[t]*s)/s;e+=t===15?")":",";t+=1}return e}function R(t){var i=1e4;if(t<1e-6&&t>0||t>-1e-6&&t<0){return r(t*i)/i}return t}function k(){var t=this.props;var i=R(t[0]);var e=R(t[1]);var r=R(t[4]);var s=R(t[5]);var n=R(t[12]);var a=R(t[13]);return"matrix("+i+","+e+","+r+","+s+","+n+","+a+")"}return function(){this.reset=s;this.rotate=n;this.rotateX=a;this.rotateY=h;this.rotateZ=o;this.skew=u;this.skewFromAxis=l;this.shear=f;this.scale=c;this.setTransform=v;this.translate=p;this.transform=m;this.multiply=d;this.applyToPoint=b;this.applyToX=P;this.applyToY=M;this.applyToZ=x;this.applyToPointArray=V;this.applyToTriplePoints=T;this.applyToPointStringified=F;this.toCSS=B;this.to2dCSS=k;this.clone=E;this.cloneFromProps=S;this.equals=g;this.inversePoints=I;this.inversePoint=C;this.getInverseMatrix=w;this._t=this.transform;this.isIdentity=y;this._identity=true;this._identityCalculated=false;this.props=createTypedArray("float32",16);this.reset()}}();function _typeof$3(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof$3=function t(i){return typeof i}}else{_typeof$3=function t(i){return i&&typeof Symbol==="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i}}return _typeof$3(t)}var lottie={};function setLocation(t){setLocationHref(t)}function searchAnimations(){{animationManager.searchAnimations()}}function setSubframeRendering(t){setSubframeEnabled(t)}function setPrefix(t){setIdPrefix(t)}function loadAnimation(t){return animationManager.loadAnimation(t)}function setQuality(t){if(typeof t==="string"){switch(t){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}}else if(!isNaN(t)&&t>1){setDefaultCurveSegments(t)}}function inBrowser(){return typeof navigator!=="undefined"}function installPlugin(t,i){if(t==="expressions"){setExpressionsPlugin(i)}}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play;lottie.pause=animationManager.pause;lottie.setLocationHref=setLocation;lottie.togglePause=animationManager.togglePause;lottie.setSpeed=animationManager.setSpeed;lottie.setDirection=animationManager.setDirection;lottie.stop=animationManager.stop;lottie.searchAnimations=searchAnimations;lottie.registerAnimation=animationManager.registerAnimation;lottie.loadAnimation=loadAnimation;lottie.setSubframeRendering=setSubframeRendering;lottie.resize=animationManager.resize;lottie.goToAndStop=animationManager.goToAndStop;lottie.destroy=animationManager.destroy;lottie.setQuality=setQuality;lottie.inBrowser=inBrowser;lottie.installPlugin=installPlugin;lottie.freeze=animationManager.freeze;lottie.unfreeze=animationManager.unfreeze;lottie.setVolume=animationManager.setVolume;lottie.mute=animationManager.mute;lottie.unmute=animationManager.unmute;lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations;lottie.useWebWorker=setWebWorker;lottie.setIDPrefix=setPrefix;lottie.__getFactory=getFactory;lottie.version="5.12.2";function checkReady(){if(document.readyState==="complete"){clearInterval(readyStateCheckInterval);searchAnimations()}}function getQueryVariable(t){var i=queryString.split("&");for(var e=0;e<i.length;e+=1){var r=i[e].split("=");if(decodeURIComponent(r[0])==t){return decodeURIComponent(r[1])}}return null}var queryString="";{var scripts=document.getElementsByTagName("script");var index=scripts.length-1;var myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"";getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{if(!(_typeof$3(exports)==="object"&&"object"!=="undefined")&&!(typeof undefined==="function")){window.bodymovin=lottie}}catch(t){}var ShapeModifiers=function(){var t={};var i={};t.registerModifier=e;t.getModifier=r;function e(t,e){if(!i[t]){i[t]=e}}function r(t,e,r){return new i[t](e,r)}return t}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){};ShapeModifier.prototype.addShapeToModifier=function(){};ShapeModifier.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var i={shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(i);this.addShapeToModifier(i);if(this._isAnimated){t.setAsAnimated()}}};ShapeModifier.prototype.init=function(t,i){this.shapes=[];this.elem=t;this.initDynamicPropertyContainer(t);this.initModifierProperties(t,i);this.frameId=initialDefaultFrame;this.closed=false;this.k=false;if(this.dynamicProperties.length){this.k=true}else{this.getValue(true)}};ShapeModifier.prototype.processKeys=function(){if(this.elem.globalData.frameId===this.frameId){return}this.frameId=this.elem.globalData.frameId;this.iterateDynamicProperties()};extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier);TrimModifier.prototype.initModifierProperties=function(t,i){this.s=PropertyFactory.getProp(t,i.s,0,.01,this);this.e=PropertyFactory.getProp(t,i.e,0,.01,this);this.o=PropertyFactory.getProp(t,i.o,0,0,this);this.sValue=0;this.eValue=0;this.getValue=this.processKeys;this.m=i.m;this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length};TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]};TrimModifier.prototype.calculateShapeEdges=function(t,i,e,r,s){var n=[];if(i<=1){n.push({s:t,e:i})}else if(t>=1){n.push({s:t-1,e:i-1})}else{n.push({s:t,e:1});n.push({s:0,e:i-1})}var a=[];var h;var o=n.length;var f;for(h=0;h<o;h+=1){f=n[h];if(!(f.e*s<r||f.s*s>r+e)){var u;var l;if(f.s*s<=r){u=0}else{u=(f.s*s-r)/e}if(f.e*s>=r+e){l=1}else{l=(f.e*s-r)/e}a.push([u,l])}}if(!a.length){a.push([0,0])}return a};TrimModifier.prototype.releasePathsData=function(t){var i;var e=t.length;for(i=0;i<e;i+=1){segmentsLengthPool.release(t[i])}t.length=0;return t};TrimModifier.prototype.processShapes=function(t){var i;var e;if(this._mdf||t){var r=this.o.v%360/360;if(r<0){r+=1}if(this.s.v>1){i=1+r}else if(this.s.v<0){i=0+r}else{i=this.s.v+r}if(this.e.v>1){e=1+r}else if(this.e.v<0){e=0+r}else{e=this.e.v+r}if(i>e){var s=i;i=e;e=s}i=Math.round(i*1e4)*1e-4;e=Math.round(e*1e4)*1e-4;this.sValue=i;this.eValue=e}else{i=this.sValue;e=this.eValue}var n;var a;var h=this.shapes.length;var o;var f;var u;var l;var c;var v=0;if(e===i){for(a=0;a<h;a+=1){this.shapes[a].localShapeCollection.releaseShapes();this.shapes[a].shape._mdf=true;this.shapes[a].shape.paths=this.shapes[a].localShapeCollection;if(this._mdf){this.shapes[a].pathsData.length=0}}}else if(!(e===1&&i===0||e===0&&i===1)){var p=[];var m;var d;for(a=0;a<h;a+=1){m=this.shapes[a];if(!m.shape._mdf&&!this._mdf&&!t&&this.m!==2){m.shape.paths=m.localShapeCollection}else{n=m.shape.paths;f=n._length;c=0;if(!m.shape._mdf&&m.pathsData.length){c=m.totalShapeLength}else{u=this.releasePathsData(m.pathsData);for(o=0;o<f;o+=1){l=bez.getSegmentsLength(n.shapes[o]);u.push(l);c+=l.totalLength}m.totalShapeLength=c;m.pathsData=u}v+=c;m.shape._mdf=true}}var y=i;var g=e;var E=0;var S;for(a=h-1;a>=0;a-=1){m=this.shapes[a];if(m.shape._mdf){d=m.localShapeCollection;d.releaseShapes();if(this.m===2&&h>1){S=this.calculateShapeEdges(i,e,m.totalShapeLength,E,v);E+=m.totalShapeLength}else{S=[[y,g]]}f=S.length;for(o=0;o<f;o+=1){y=S[o][0];g=S[o][1];p.length=0;if(g<=1){p.push({s:m.totalShapeLength*y,e:m.totalShapeLength*g})}else if(y>=1){p.push({s:m.totalShapeLength*(y-1),e:m.totalShapeLength*(g-1)})}else{p.push({s:m.totalShapeLength*y,e:m.totalShapeLength});p.push({s:0,e:m.totalShapeLength*(g-1)})}var b=this.addShapes(m,p[0]);if(p[0].s!==p[0].e){if(p.length>1){var P=m.shape.paths.shapes[m.shape.paths._length-1];if(P.c){var M=b.pop();this.addPaths(b,d);b=this.addShapes(m,p[1],M)}else{this.addPaths(b,d);b=this.addShapes(m,p[1])}}this.addPaths(b,d)}}m.shape.paths=d}}}else if(this._mdf){for(a=0;a<h;a+=1){this.shapes[a].pathsData.length=0;this.shapes[a].shape._mdf=true}}};TrimModifier.prototype.addPaths=function(t,i){var e;var r=t.length;for(e=0;e<r;e+=1){i.addShape(t[e])}};TrimModifier.prototype.addSegment=function(t,i,e,r,s,n,a){s.setXYAt(i[0],i[1],"o",n);s.setXYAt(e[0],e[1],"i",n+1);if(a){s.setXYAt(t[0],t[1],"v",n)}s.setXYAt(r[0],r[1],"v",n+1)};TrimModifier.prototype.addSegmentFromArray=function(t,i,e,r){i.setXYAt(t[1],t[5],"o",e);i.setXYAt(t[2],t[6],"i",e+1);if(r){i.setXYAt(t[0],t[4],"v",e)}i.setXYAt(t[3],t[7],"v",e+1)};TrimModifier.prototype.addShapes=function(t,i,e){var r=t.pathsData;var s=t.shape.paths.shapes;var n;var a=t.shape.paths._length;var h;var o;var f=0;var u;var l;var c;var v;var p=[];var m;var d=true;if(!e){e=shapePool.newElement();l=0;m=0}else{l=e._length;m=e._length}p.push(e);for(n=0;n<a;n+=1){c=r[n].lengths;e.c=s[n].c;o=s[n].c?c.length:c.length+1;for(h=1;h<o;h+=1){u=c[h-1];if(f+u.addedLength<i.s){f+=u.addedLength;e.c=false}else if(f>i.e){e.c=false;break}else{if(i.s<=f&&i.e>=f+u.addedLength){this.addSegment(s[n].v[h-1],s[n].o[h-1],s[n].i[h],s[n].v[h],e,l,d);d=false}else{v=bez.getNewSegment(s[n].v[h-1],s[n].v[h],s[n].o[h-1],s[n].i[h],(i.s-f)/u.addedLength,(i.e-f)/u.addedLength,c[h-1]);this.addSegmentFromArray(v,e,l,d);d=false;e.c=false}f+=u.addedLength;l+=1}}if(s[n].c&&c.length){u=c[h-1];if(f<=i.e){var y=c[h-1].addedLength;if(i.s<=f&&i.e>=f+y){this.addSegment(s[n].v[h-1],s[n].o[h-1],s[n].i[0],s[n].v[0],e,l,d);d=false}else{v=bez.getNewSegment(s[n].v[h-1],s[n].v[0],s[n].o[h-1],s[n].i[0],(i.s-f)/y,(i.e-f)/y,c[h-1]);this.addSegmentFromArray(v,e,l,d);d=false;e.c=false}}else{e.c=false}f+=u.addedLength;l+=1}if(e._length){e.setXYAt(e.v[m][0],e.v[m][1],"i",m);e.setXYAt(e.v[e._length-1][0],e.v[e._length-1][1],"o",e._length-1)}if(f>i.e){break}if(n<a-1){e=shapePool.newElement();d=true;p.push(e);l=0}}return p};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier);PuckerAndBloatModifier.prototype.initModifierProperties=function(t,i){this.getValue=this.processKeys;this.amount=PropertyFactory.getProp(t,i.a,0,null,this);this._isAnimated=!!this.amount.effectsSequence.length};PuckerAndBloatModifier.prototype.processPath=function(t,i){var e=i/100;var r=[0,0];var s=t._length;var n=0;for(n=0;n<s;n+=1){r[0]+=t.v[n][0];r[1]+=t.v[n][1]}r[0]/=s;r[1]/=s;var a=shapePool.newElement();a.c=t.c;var h;var o;var f;var u;var l;var c;for(n=0;n<s;n+=1){h=t.v[n][0]+(r[0]-t.v[n][0])*e;o=t.v[n][1]+(r[1]-t.v[n][1])*e;f=t.o[n][0]+(r[0]-t.o[n][0])*-e;u=t.o[n][1]+(r[1]-t.o[n][1])*-e;l=t.i[n][0]+(r[0]-t.i[n][0])*-e;c=t.i[n][1]+(r[1]-t.i[n][1])*-e;a.setTripleAt(h,o,f,u,l,c,n)}return a};PuckerAndBloatModifier.prototype.processShapes=function(t){var i;var e;var r=this.shapes.length;var s;var n;var a=this.amount.v;if(a!==0){var h;var o;for(e=0;e<r;e+=1){h=this.shapes[e];o=h.localShapeCollection;if(!(!h.shape._mdf&&!this._mdf&&!t)){o.releaseShapes();h.shape._mdf=true;i=h.shape.paths.shapes;n=h.shape.paths._length;for(s=0;s<n;s+=1){o.addShape(this.processPath(i[s],a))}}h.shape.paths=h.localShapeCollection}}if(!this.dynamicProperties.length){this._mdf=false}};var TransformPropertyFactory=function(){var t=[0,0];function i(t){var i=this._mdf;this.iterateDynamicProperties();this._mdf=this._mdf||i;if(this.a){t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2])}if(this.s){t.scale(this.s.v[0],this.s.v[1],this.s.v[2])}if(this.sk){t.skewFromAxis(-this.sk.v,this.sa.v)}if(this.r){t.rotate(-this.r.v)}else{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])}if(this.data.p.s){if(this.data.p.z){t.translate(this.px.v,this.py.v,-this.pz.v)}else{t.translate(this.px.v,this.py.v,0)}}else{t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}}function e(i){if(this.elem.globalData.frameId===this.frameId){return}if(this._isDirty){this.precalculateMatrix();this._isDirty=false}this.iterateDynamicProperties();if(this._mdf||i){var e;this.v.cloneFromProps(this.pre.props);if(this.appliedTransformations<1){this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2])}if(this.appliedTransformations<2){this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2])}if(this.sk&&this.appliedTransformations<3){this.v.skewFromAxis(-this.sk.v,this.sa.v)}if(this.r&&this.appliedTransformations<4){this.v.rotate(-this.r.v)}else if(!this.r&&this.appliedTransformations<4){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])}if(this.autoOriented){var r;var s;e=this.elem.globalData.frameRate;if(this.p&&this.p.keyframes&&this.p.getValueAtTime){if(this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t){r=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/e,0);s=this.p.getValueAtTime(this.p.keyframes[0].t/e,0)}else if(this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t){r=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/e,0);s=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/e,0)}else{r=this.p.pv;s=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/e,this.p.offsetTime)}}else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){r=[];s=[];var n=this.px;var a=this.py;if(n._caching.lastFrame+n.offsetTime<=n.keyframes[0].t){r[0]=n.getValueAtTime((n.keyframes[0].t+.01)/e,0);r[1]=a.getValueAtTime((a.keyframes[0].t+.01)/e,0);s[0]=n.getValueAtTime(n.keyframes[0].t/e,0);s[1]=a.getValueAtTime(a.keyframes[0].t/e,0)}else if(n._caching.lastFrame+n.offsetTime>=n.keyframes[n.keyframes.length-1].t){r[0]=n.getValueAtTime(n.keyframes[n.keyframes.length-1].t/e,0);r[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/e,0);s[0]=n.getValueAtTime((n.keyframes[n.keyframes.length-1].t-.01)/e,0);s[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/e,0)}else{r=[n.pv,a.pv];s[0]=n.getValueAtTime((n._caching.lastFrame+n.offsetTime-.01)/e,n.offsetTime);s[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/e,a.offsetTime)}}else{s=t;r=s}this.v.rotate(-Math.atan2(r[1]-s[1],r[0]-s[0]))}if(this.data.p&&this.data.p.s){if(this.data.p.z){this.v.translate(this.px.v,this.py.v,-this.pz.v)}else{this.v.translate(this.px.v,this.py.v,0)}}else{this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}}this.frameId=this.elem.globalData.frameId}function r(){this.appliedTransformations=0;this.pre.reset();if(!this.a.effectsSequence.length){this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]);this.appliedTransformations=1}else{return}if(!this.s.effectsSequence.length){this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]);this.appliedTransformations=2}else{return}if(this.sk){if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length){this.pre.skewFromAxis(-this.sk.v,this.sa.v);this.appliedTransformations=3}else{return}}if(this.r){if(!this.r.effectsSequence.length){this.pre.rotate(-this.r.v);this.appliedTransformations=4}}else if(!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length){this.pre.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.appliedTransformations=4}}function s(){}function n(t){this._addDynamicProperty(t);this.elem.addDynamicProperty(t);this._isDirty=true}function a(t,i,e){this.elem=t;this.frameId=-1;this.propType="transform";this.data=i;this.v=new Matrix;this.pre=new Matrix;this.appliedTransformations=0;this.initDynamicPropertyContainer(e||t);if(i.p&&i.p.s){this.px=PropertyFactory.getProp(t,i.p.x,0,0,this);this.py=PropertyFactory.getProp(t,i.p.y,0,0,this);if(i.p.z){this.pz=PropertyFactory.getProp(t,i.p.z,0,0,this)}}else{this.p=PropertyFactory.getProp(t,i.p||{k:[0,0,0]},1,0,this)}if(i.rx){this.rx=PropertyFactory.getProp(t,i.rx,0,degToRads,this);this.ry=PropertyFactory.getProp(t,i.ry,0,degToRads,this);this.rz=PropertyFactory.getProp(t,i.rz,0,degToRads,this);if(i.or.k[0].ti){var r;var s=i.or.k.length;for(r=0;r<s;r+=1){i.or.k[r].to=null;i.or.k[r].ti=null}}this.or=PropertyFactory.getProp(t,i.or,1,degToRads,this);this.or.sh=true}else{this.r=PropertyFactory.getProp(t,i.r||{k:0},0,degToRads,this)}if(i.sk){this.sk=PropertyFactory.getProp(t,i.sk,0,degToRads,this);this.sa=PropertyFactory.getProp(t,i.sa,0,degToRads,this)}this.a=PropertyFactory.getProp(t,i.a||{k:[0,0,0]},1,0,this);this.s=PropertyFactory.getProp(t,i.s||{k:[100,100,100]},1,.01,this);if(i.o){this.o=PropertyFactory.getProp(t,i.o,0,.01,t)}else{this.o={_mdf:false,v:1}}this._isDirty=true;if(!this.dynamicProperties.length){this.getValue(true)}}a.prototype={applyToMatrix:i,getValue:e,precalculateMatrix:r,autoOrient:s};extendPrototype([DynamicPropertyContainer],a);a.prototype.addDynamicProperty=n;a.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function h(t,i,e){return new a(t,i,e)}return{getTransformProperty:h}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier);RepeaterModifier.prototype.initModifierProperties=function(t,i){this.getValue=this.processKeys;this.c=PropertyFactory.getProp(t,i.c,0,null,this);this.o=PropertyFactory.getProp(t,i.o,0,null,this);this.tr=TransformPropertyFactory.getTransformProperty(t,i.tr,this);this.so=PropertyFactory.getProp(t,i.tr.so,0,.01,this);this.eo=PropertyFactory.getProp(t,i.tr.eo,0,.01,this);this.data=i;if(!this.dynamicProperties.length){this.getValue(true)}this._isAnimated=!!this.dynamicProperties.length;this.pMatrix=new Matrix;this.rMatrix=new Matrix;this.sMatrix=new Matrix;this.tMatrix=new Matrix;this.matrix=new Matrix};RepeaterModifier.prototype.applyTransforms=function(t,i,e,r,s,n){var a=n?-1:1;var h=r.s.v[0]+(1-r.s.v[0])*(1-s);var o=r.s.v[1]+(1-r.s.v[1])*(1-s);t.translate(r.p.v[0]*a*s,r.p.v[1]*a*s,r.p.v[2]);i.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]);i.rotate(-r.r.v*a*s);i.translate(r.a.v[0],r.a.v[1],r.a.v[2]);e.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]);e.scale(n?1/h:h,n?1/o:o);e.translate(r.a.v[0],r.a.v[1],r.a.v[2])};RepeaterModifier.prototype.init=function(t,i,e,r){this.elem=t;this.arr=i;this.pos=e;this.elemsData=r;this._currentCopies=0;this._elements=[];this._groups=[];this.frameId=-1;this.initDynamicPropertyContainer(t);this.initModifierProperties(t,i[e]);while(e>0){e-=1;this._elements.unshift(i[e])}if(this.dynamicProperties.length){this.k=true}else{this.getValue(true)}};RepeaterModifier.prototype.resetElements=function(t){var i;var e=t.length;for(i=0;i<e;i+=1){t[i]._processed=false;if(t[i].ty==="gr"){this.resetElements(t[i].it)}}};RepeaterModifier.prototype.cloneElements=function(t){var i=JSON.parse(JSON.stringify(t));this.resetElements(i);return i};RepeaterModifier.prototype.changeGroupRender=function(t,i){var e;var r=t.length;for(e=0;e<r;e+=1){t[e]._render=i;if(t[e].ty==="gr"){this.changeGroupRender(t[e].it,i)}}};RepeaterModifier.prototype.processShapes=function(t){var i;var e;var r;var s;var n;var a=false;if(this._mdf||t){var h=Math.ceil(this.c.v);if(this._groups.length<h){while(this._groups.length<h){var o={it:this.cloneElements(this._elements),ty:"gr"};o.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"});this.arr.splice(0,0,o);this._groups.splice(0,0,o);this._currentCopies+=1}this.elem.reloadShapes();a=true}n=0;var f;for(r=0;r<=this._groups.length-1;r+=1){f=n<h;this._groups[r]._render=f;this.changeGroupRender(this._groups[r].it,f);if(!f){var u=this.elemsData[r].it;var l=u[u.length-1];if(l.transform.op.v!==0){l.transform.op._mdf=true;l.transform.op.v=0}else{l.transform.op._mdf=false}}n+=1}this._currentCopies=h;var c=this.o.v;var v=c%1;var p=c>0?Math.floor(c):Math.ceil(c);var m=this.pMatrix.props;var d=this.rMatrix.props;var y=this.sMatrix.props;this.pMatrix.reset();this.rMatrix.reset();this.sMatrix.reset();this.tMatrix.reset();this.matrix.reset();var g=0;if(c>0){while(g<p){this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,false);g+=1}if(v){this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,v,false);g+=v}}else if(c<0){while(g>p){this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,true);g-=1}if(v){this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-v,true);g-=v}}r=this.data.m===1?0:this._currentCopies-1;s=this.data.m===1?1:-1;n=this._currentCopies;var E;var S;while(n){i=this.elemsData[r].it;e=i[i.length-1].transform.mProps.v.props;S=e.length;i[i.length-1].transform.mProps._mdf=true;i[i.length-1].transform.op._mdf=true;i[i.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(r/(this._currentCopies-1));if(g!==0){if(r!==0&&s===1||r!==this._currentCopies-1&&s===-1){this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,false)}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(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]);this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]);for(E=0;E<S;E+=1){e[E]=this.matrix.props[E]}this.matrix.reset()}else{this.matrix.reset();for(E=0;E<S;E+=1){e[E]=this.matrix.props[E]}}g+=1;n-=1;r+=s}}else{n=this._currentCopies;r=0;s=1;while(n){i=this.elemsData[r].it;e=i[i.length-1].transform.mProps.v.props;i[i.length-1].transform.mProps._mdf=false;i[i.length-1].transform.op._mdf=false;n-=1;r+=s}}return a};RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier);RoundCornersModifier.prototype.initModifierProperties=function(t,i){this.getValue=this.processKeys;this.rd=PropertyFactory.getProp(t,i.r,0,null,this);this._isAnimated=!!this.rd.effectsSequence.length};RoundCornersModifier.prototype.processPath=function(t,i){var e=shapePool.newElement();e.c=t.c;var r;var s=t._length;var n;var a;var h;var o;var f;var u;var l=0;var c;var v;var p;var m;var d;var y;for(r=0;r<s;r+=1){n=t.v[r];h=t.o[r];a=t.i[r];if(n[0]===h[0]&&n[1]===h[1]&&n[0]===a[0]&&n[1]===a[1]){if((r===0||r===s-1)&&!t.c){e.setTripleAt(n[0],n[1],h[0],h[1],a[0],a[1],l);l+=1}else{if(r===0){o=t.v[s-1]}else{o=t.v[r-1]}f=Math.sqrt(Math.pow(n[0]-o[0],2)+Math.pow(n[1]-o[1],2));u=f?Math.min(f/2,i)/f:0;d=n[0]+(o[0]-n[0])*u;c=d;y=n[1]-(n[1]-o[1])*u;v=y;p=c-(c-n[0])*roundCorner;m=v-(v-n[1])*roundCorner;e.setTripleAt(c,v,p,m,d,y,l);l+=1;if(r===s-1){o=t.v[0]}else{o=t.v[r+1]}f=Math.sqrt(Math.pow(n[0]-o[0],2)+Math.pow(n[1]-o[1],2));u=f?Math.min(f/2,i)/f:0;p=n[0]+(o[0]-n[0])*u;c=p;m=n[1]+(o[1]-n[1])*u;v=m;d=c-(c-n[0])*roundCorner;y=v-(v-n[1])*roundCorner;e.setTripleAt(c,v,p,m,d,y,l);l+=1}}else{e.setTripleAt(t.v[r][0],t.v[r][1],t.o[r][0],t.o[r][1],t.i[r][0],t.i[r][1],l);l+=1}}return e};RoundCornersModifier.prototype.processShapes=function(t){var i;var e;var r=this.shapes.length;var s;var n;var a=this.rd.v;if(a!==0){var h;var o;for(e=0;e<r;e+=1){h=this.shapes[e];o=h.localShapeCollection;if(!(!h.shape._mdf&&!this._mdf&&!t)){o.releaseShapes();h.shape._mdf=true;i=h.shape.paths.shapes;n=h.shape.paths._length;for(s=0;s<n;s+=1){o.addShape(this.processPath(i[s],a))}}h.shape.paths=h.localShapeCollection}}if(!this.dynamicProperties.length){this._mdf=false}};function floatEqual(t,i){return Math.abs(t-i)*1e5<=Math.min(Math.abs(t),Math.abs(i))}function floatZero(t){return Math.abs(t)<=1e-5}function lerp(t,i,e){return t*(1-e)+i*e}function lerpPoint(t,i,e){return[lerp(t[0],i[0],e),lerp(t[1],i[1],e)]}function quadRoots(t,i,e){if(t===0)return[];var r=i*i-4*t*e;if(r<0)return[];var s=-i/(2*t);if(r===0)return[s];var n=Math.sqrt(r)/(2*t);return[s-n,s+n]}function polynomialCoefficients(t,i,e,r){return[-t+3*i-3*e+r,3*t-6*i+3*e,-3*t+3*i,t]}function singlePoint(t){return new PolynomialBezier(t,t,t,t,false)}function PolynomialBezier(t,i,e,r,s){if(s&&pointEqual(t,i)){i=lerpPoint(t,r,1/3)}if(s&&pointEqual(e,r)){e=lerpPoint(t,r,2/3)}var n=polynomialCoefficients(t[0],i[0],e[0],r[0]);var a=polynomialCoefficients(t[1],i[1],e[1],r[1]);this.a=[n[0],a[0]];this.b=[n[1],a[1]];this.c=[n[2],a[2]];this.d=[n[3],a[3]];this.points=[t,i,e,r]}PolynomialBezier.prototype.point=function(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]};PolynomialBezier.prototype.derivative=function(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]};PolynomialBezier.prototype.tangentAngle=function(t){var i=this.derivative(t);return Math.atan2(i[1],i[0])};PolynomialBezier.prototype.normalAngle=function(t){var i=this.derivative(t);return Math.atan2(i[0],i[1])};PolynomialBezier.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(t))return[];var i=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t;var e=i*i-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(e<0)return[];var r=Math.sqrt(e);if(floatZero(r)){if(r>0&&r<1)return[i];return[]}return[i-r,i+r].filter((function(t){return t>0&&t<1}))};PolynomialBezier.prototype.split=function(t){if(t<=0)return[singlePoint(this.points[0]),this];if(t>=1)return[this,singlePoint(this.points[this.points.length-1])];var i=lerpPoint(this.points[0],this.points[1],t);var e=lerpPoint(this.points[1],this.points[2],t);var r=lerpPoint(this.points[2],this.points[3],t);var s=lerpPoint(i,e,t);var n=lerpPoint(e,r,t);var a=lerpPoint(s,n,t);return[new PolynomialBezier(this.points[0],i,s,a,true),new PolynomialBezier(a,n,r,this.points[3],true)]};function extrema(t,i){var e=t.points[0][i];var r=t.points[t.points.length-1][i];if(e>r){var s=r;r=e;e=s}var n=quadRoots(3*t.a[i],2*t.b[i],t.c[i]);for(var a=0;a<n.length;a+=1){if(n[a]>0&&n[a]<1){var h=t.point(n[a])[i];if(h<e)e=h;else if(h>r)r=h}}return{min:e,max:r}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}};PolynomialBezier.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}};function intersectData(t,i,e){var r=t.boundingBox();return{cx:r.cx,cy:r.cy,width:r.width,height:r.height,bez:t,t:(i+e)/2,t1:i,t2:e}}function splitData(t){var i=t.bez.split(.5);return[intersectData(i[0],t.t1,t.t),intersectData(i[1],t.t,t.t2)]}function boxIntersect(t,i){return Math.abs(t.cx-i.cx)*2<t.width+i.width&&Math.abs(t.cy-i.cy)*2<t.height+i.height}function intersectsImpl(t,i,e,r,s,n){if(!boxIntersect(t,i))return;if(e>=n||t.width<=r&&t.height<=r&&i.width<=r&&i.height<=r){s.push([t.t,i.t]);return}var a=splitData(t);var h=splitData(i);intersectsImpl(a[0],h[0],e+1,r,s,n);intersectsImpl(a[0],h[1],e+1,r,s,n);intersectsImpl(a[1],h[0],e+1,r,s,n);intersectsImpl(a[1],h[1],e+1,r,s,n)}PolynomialBezier.prototype.intersections=function(t,i,e){if(i===undefined)i=2;if(e===undefined)e=7;var r=[];intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,i,r,e);return r};PolynomialBezier.shapeSegment=function(t,i){var e=(i+1)%t.length();return new PolynomialBezier(t.v[i],t.o[i],t.i[e],t.v[e],true)};PolynomialBezier.shapeSegmentInverted=function(t,i){var e=(i+1)%t.length();return new PolynomialBezier(t.v[e],t.i[e],t.o[i],t.v[i],true)};function crossProduct(t,i){return[t[1]*i[2]-t[2]*i[1],t[2]*i[0]-t[0]*i[2],t[0]*i[1]-t[1]*i[0]]}function lineIntersection(t,i,e,r){var s=[t[0],t[1],1];var n=[i[0],i[1],1];var a=[e[0],e[1],1];var h=[r[0],r[1],1];var o=crossProduct(crossProduct(s,n),crossProduct(a,h));if(floatZero(o[2]))return null;return[o[0]/o[2],o[1]/o[2]]}function polarOffset(t,i,e){return[t[0]+Math.cos(i)*e,t[1]-Math.sin(i)*e]}function pointDistance(t,i){return Math.hypot(t[0]-i[0],t[1]-i[1])}function pointEqual(t,i){return floatEqual(t[0],i[0])&&floatEqual(t[1],i[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier);ZigZagModifier.prototype.initModifierProperties=function(t,i){this.getValue=this.processKeys;this.amplitude=PropertyFactory.getProp(t,i.s,0,null,this);this.frequency=PropertyFactory.getProp(t,i.r,0,null,this);this.pointsType=PropertyFactory.getProp(t,i.pt,0,null,this);this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(t,i,e,r,s,n,a){var h=e-Math.PI/2;var o=e+Math.PI/2;var f=i[0]+Math.cos(e)*r*s;var u=i[1]-Math.sin(e)*r*s;t.setTripleAt(f,u,f+Math.cos(h)*n,u-Math.sin(h)*n,f+Math.cos(o)*a,u-Math.sin(o)*a,t.length())}function getPerpendicularVector(t,i){var e=[i[0]-t[0],i[1]-t[1]];var r=-Math.PI*.5;var s=[Math.cos(r)*e[0]-Math.sin(r)*e[1],Math.sin(r)*e[0]+Math.cos(r)*e[1]];return s}function getProjectingAngle(t,i){var e=i===0?t.length()-1:i-1;var r=(i+1)%t.length();var s=t.v[e];var n=t.v[r];var a=getPerpendicularVector(s,n);return Math.atan2(0,1)-Math.atan2(a[1],a[0])}function zigZagCorner(t,i,e,r,s,n,a){var h=getProjectingAngle(i,e);var o=i.v[e%i._length];var f=i.v[e===0?i._length-1:e-1];var u=i.v[(e+1)%i._length];var l=n===2?Math.sqrt(Math.pow(o[0]-f[0],2)+Math.pow(o[1]-f[1],2)):0;var c=n===2?Math.sqrt(Math.pow(o[0]-u[0],2)+Math.pow(o[1]-u[1],2)):0;setPoint(t,i.v[e%i._length],h,a,r,c/((s+1)*2),l/((s+1)*2))}function zigZagSegment(t,i,e,r,s,n){for(var a=0;a<r;a+=1){var h=(a+1)/(r+1);var o=s===2?Math.sqrt(Math.pow(i.points[3][0]-i.points[0][0],2)+Math.pow(i.points[3][1]-i.points[0][1],2)):0;var f=i.normalAngle(h);var u=i.point(h);setPoint(t,u,f,n,e,o/((r+1)*2),o/((r+1)*2));n=-n}return n}ZigZagModifier.prototype.processPath=function(t,i,e,r){var s=t._length;var n=shapePool.newElement();n.c=t.c;if(!t.c){s-=1}if(s===0)return n;var a=-1;var h=PolynomialBezier.shapeSegment(t,0);zigZagCorner(n,t,0,i,e,r,a);for(var o=0;o<s;o+=1){a=zigZagSegment(n,h,i,e,r,-a);if(o===s-1&&!t.c){h=null}else{h=PolynomialBezier.shapeSegment(t,(o+1)%s)}zigZagCorner(n,t,o+1,i,e,r,a)}return n};ZigZagModifier.prototype.processShapes=function(t){var i;var e;var r=this.shapes.length;var s;var n;var a=this.amplitude.v;var h=Math.max(0,Math.round(this.frequency.v));var o=this.pointsType.v;if(a!==0){var f;var u;for(e=0;e<r;e+=1){f=this.shapes[e];u=f.localShapeCollection;if(!(!f.shape._mdf&&!this._mdf&&!t)){u.releaseShapes();f.shape._mdf=true;i=f.shape.paths.shapes;n=f.shape.paths._length;for(s=0;s<n;s+=1){u.addShape(this.processPath(i[s],a,h,o))}}f.shape.paths=f.localShapeCollection}}if(!this.dynamicProperties.length){this._mdf=false}};function linearOffset(t,i,e){var r=Math.atan2(i[0]-t[0],i[1]-t[1]);return[polarOffset(t,r,e),polarOffset(i,r,e)]}function offsetSegment(t,i){var e;var r;var s;var n;var a;var h;var o;o=linearOffset(t.points[0],t.points[1],i);e=o[0];r=o[1];o=linearOffset(t.points[1],t.points[2],i);s=o[0];n=o[1];o=linearOffset(t.points[2],t.points[3],i);a=o[0];h=o[1];var f=lineIntersection(e,r,s,n);if(f===null)f=r;var u=lineIntersection(a,h,s,n);if(u===null)u=a;return new PolynomialBezier(e,f,u,h)}function joinLines(t,i,e,r,s){var n=i.points[3];var a=e.points[0];if(r===3)return n;if(pointEqual(n,a))return n;if(r===2){var h=-i.tangentAngle(1);var o=-e.tangentAngle(0)+Math.PI;var f=lineIntersection(n,polarOffset(n,h+Math.PI/2,100),a,polarOffset(a,h+Math.PI/2,100));var u=f?pointDistance(f,n):pointDistance(n,a)/2;var l=polarOffset(n,h,2*u*roundCorner);t.setXYAt(l[0],l[1],"o",t.length()-1);l=polarOffset(a,o,2*u*roundCorner);t.setTripleAt(a[0],a[1],a[0],a[1],l[0],l[1],t.length());return a}var c=pointEqual(n,i.points[2])?i.points[0]:i.points[2];var v=pointEqual(a,e.points[1])?e.points[3]:e.points[1];var p=lineIntersection(c,n,a,v);if(p&&pointDistance(p,n)<s){t.setTripleAt(p[0],p[1],p[0],p[1],p[0],p[1],t.length());return p}return n}function getIntersection(t,i){var e=t.intersections(i);if(e.length&&floatEqual(e[0][0],1))e.shift();if(e.length)return e[0];return null}function pruneSegmentIntersection(t,i){var e=t.slice();var r=i.slice();var s=getIntersection(t[t.length-1],i[0]);if(s){e[t.length-1]=t[t.length-1].split(s[0])[0];r[0]=i[0].split(s[1])[1]}if(t.length>1&&i.length>1){s=getIntersection(t[0],i[i.length-1]);if(s){return[[t[0].split(s[0])[0]],[i[i.length-1].split(s[1])[1]]]}}return[e,r]}function pruneIntersections(t){var i;for(var e=1;e<t.length;e+=1){i=pruneSegmentIntersection(t[e-1],t[e]);t[e-1]=i[0];t[e]=i[1]}if(t.length>1){i=pruneSegmentIntersection(t[t.length-1],t[0]);t[t.length-1]=i[0];t[0]=i[1]}return t}function offsetSegmentSplit(t,i){var e=t.inflectionPoints();var r;var s;var n;var a;if(e.length===0){return[offsetSegment(t,i)]}if(e.length===1||floatEqual(e[1],1)){n=t.split(e[0]);r=n[0];s=n[1];return[offsetSegment(r,i),offsetSegment(s,i)]}n=t.split(e[0]);r=n[0];var h=(e[1]-e[0])/(1-e[0]);n=n[1].split(h);a=n[0];s=n[1];return[offsetSegment(r,i),offsetSegment(a,i),offsetSegment(s,i)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier);OffsetPathModifier.prototype.initModifierProperties=function(t,i){this.getValue=this.processKeys;this.amount=PropertyFactory.getProp(t,i.a,0,null,this);this.miterLimit=PropertyFactory.getProp(t,i.ml,0,null,this);this.lineJoin=i.lj;this._isAnimated=this.amount.effectsSequence.length!==0};OffsetPathModifier.prototype.processPath=function(t,i,e,r){var s=shapePool.newElement();s.c=t.c;var n=t.length();if(!t.c){n-=1}var a;var h;var o;var f=[];for(a=0;a<n;a+=1){o=PolynomialBezier.shapeSegment(t,a);f.push(offsetSegmentSplit(o,i))}if(!t.c){for(a=n-1;a>=0;a-=1){o=PolynomialBezier.shapeSegmentInverted(t,a);f.push(offsetSegmentSplit(o,i))}}f=pruneIntersections(f);var u=null;var l=null;for(a=0;a<f.length;a+=1){var c=f[a];if(l)u=joinLines(s,l,c[0],e,r);l=c[c.length-1];for(h=0;h<c.length;h+=1){o=c[h];if(u&&pointEqual(o.points[0],u)){s.setXYAt(o.points[1][0],o.points[1][1],"o",s.length()-1)}else{s.setTripleAt(o.points[0][0],o.points[0][1],o.points[1][0],o.points[1][1],o.points[0][0],o.points[0][1],s.length())}s.setTripleAt(o.points[3][0],o.points[3][1],o.points[3][0],o.points[3][1],o.points[2][0],o.points[2][1],s.length());u=o.points[3]}}if(f.length)joinLines(s,l,f[0][0],e,r);return s};OffsetPathModifier.prototype.processShapes=function(t){var i;var e;var r=this.shapes.length;var s;var n;var a=this.amount.v;var h=this.miterLimit.v;var o=this.lineJoin;if(a!==0){var f;var u;for(e=0;e<r;e+=1){f=this.shapes[e];u=f.localShapeCollection;if(!(!f.shape._mdf&&!this._mdf&&!t)){u.releaseShapes();f.shape._mdf=true;i=f.shape.paths.shapes;n=f.shape.paths._length;for(s=0;s<n;s+=1){u.addShape(this.processPath(i[s],a,o,h))}}f.shape.paths=f.localShapeCollection}}if(!this.dynamicProperties.length){this._mdf=false}};function getFontProperties(t){var i=t.fStyle?t.fStyle.split(" "):[];var e="normal";var r="normal";var s=i.length;var n;for(var a=0;a<s;a+=1){n=i[a].toLowerCase();switch(n){case"italic":r="italic";break;case"bold":e="700";break;case"black":e="900";break;case"medium":e="500";break;case"regular":case"normal":e="400";break;case"light":case"thin":e="200";break}}return{style:r,weight:t.fWeight||e}}var FontManager=function(){var t=5e3;var i={w:0,size:0,shapes:[],data:{shapes:[]}};var e=[];e=e.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var r=127988;var s=917631;var n=917601;var a=917626;var h=65039;var o=8205;var f=127462;var u=127487;var l=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function c(t){var i=t.split(",");var e;var r=i.length;var s=[];for(e=0;e<r;e+=1){if(i[e]!=="sans-serif"&&i[e]!=="monospace"){s.push(i[e])}}return s.join(",")}function v(t,i){var e=createTag("span");e.setAttribute("aria-hidden",true);e.style.fontFamily=i;var r=createTag("span");r.innerText="giItT1WQy@!-/#";e.style.position="absolute";e.style.left="-10000px";e.style.top="-10000px";e.style.fontSize="300px";e.style.fontVariant="normal";e.style.fontStyle="normal";e.style.fontWeight="normal";e.style.letterSpacing="0";e.appendChild(r);document.body.appendChild(e);var s=r.offsetWidth;r.style.fontFamily=c(t)+", "+i;return{node:r,w:s,parent:e}}function p(){var i;var e=this.fonts.length;var r;var s;var n=e;for(i=0;i<e;i+=1){if(this.fonts[i].loaded){n-=1}else if(this.fonts[i].fOrigin==="n"||this.fonts[i].origin===0){this.fonts[i].loaded=true}else{r=this.fonts[i].monoCase.node;s=this.fonts[i].monoCase.w;if(r.offsetWidth!==s){n-=1;this.fonts[i].loaded=true}else{r=this.fonts[i].sansCase.node;s=this.fonts[i].sansCase.w;if(r.offsetWidth!==s){n-=1;this.fonts[i].loaded=true}}if(this.fonts[i].loaded){this.fonts[i].sansCase.parent.parentNode.removeChild(this.fonts[i].sansCase.parent);this.fonts[i].monoCase.parent.parentNode.removeChild(this.fonts[i].monoCase.parent)}}}if(n!==0&&Date.now()-this.initTime<t){setTimeout(this.checkLoadedFontsBinded,20)}else{setTimeout(this.setIsLoadedBinded,10)}}function m(t,i){var e=document.body&&i?"svg":"canvas";var r;var s=getFontProperties(t);if(e==="svg"){var n=createNS("text");n.style.fontSize="100px";n.setAttribute("font-family",t.fFamily);n.setAttribute("font-style",s.style);n.setAttribute("font-weight",s.weight);n.textContent="1";if(t.fClass){n.style.fontFamily="inherit";n.setAttribute("class",t.fClass)}else{n.style.fontFamily=t.fFamily}i.appendChild(n);r=n}else{var a=new OffscreenCanvas(500,500).getContext("2d");a.font=s.style+" "+s.weight+" 100px "+t.fFamily;r=a}function h(t){if(e==="svg"){r.textContent=t;return r.getComputedTextLength()}return r.measureText(t).width}return{measureText:h}}function d(t,i){if(!t){this.isLoaded=true;return}if(this.chars){this.isLoaded=true;this.fonts=t.list;return}if(!document.body){this.isLoaded=true;t.list.forEach((function(t){t.helper=m(t);t.cache={}}));this.fonts=t.list;return}var e=t.list;var r;var s=e.length;var n=s;for(r=0;r<s;r+=1){var a=true;var h;var o;e[r].loaded=false;e[r].monoCase=v(e[r].fFamily,"monospace");e[r].sansCase=v(e[r].fFamily,"sans-serif");if(!e[r].fPath){e[r].loaded=true;n-=1}else if(e[r].fOrigin==="p"||e[r].origin===3){h=document.querySelectorAll('style[f-forigin="p"][f-family="'+e[r].fFamily+'"], style[f-origin="3"][f-family="'+e[r].fFamily+'"]');if(h.length>0){a=false}if(a){var f=createTag("style");f.setAttribute("f-forigin",e[r].fOrigin);f.setAttribute("f-origin",e[r].origin);f.setAttribute("f-family",e[r].fFamily);f.type="text/css";f.innerText="@font-face {font-family: "+e[r].fFamily+"; font-style: normal; src: url('"+e[r].fPath+"');}";i.appendChild(f)}}else if(e[r].fOrigin==="g"||e[r].origin===1){h=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]');for(o=0;o<h.length;o+=1){if(h[o].href.indexOf(e[r].fPath)!==-1){a=false}}if(a){var u=createTag("link");u.setAttribute("f-forigin",e[r].fOrigin);u.setAttribute("f-origin",e[r].origin);u.type="text/css";u.rel="stylesheet";u.href=e[r].fPath;document.body.appendChild(u)}}else if(e[r].fOrigin==="t"||e[r].origin===2){h=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]');for(o=0;o<h.length;o+=1){if(e[r].fPath===h[o].src){a=false}}if(a){var l=createTag("link");l.setAttribute("f-forigin",e[r].fOrigin);l.setAttribute("f-origin",e[r].origin);l.setAttribute("rel","stylesheet");l.setAttribute("href",e[r].fPath);i.appendChild(l)}}e[r].helper=m(e[r],i);e[r].cache={};this.fonts.push(e[r])}if(n===0){this.isLoaded=true}else{setTimeout(this.checkLoadedFonts.bind(this),100)}}function y(t){if(!t){return}if(!this.chars){this.chars=[]}var i;var e=t.length;var r;var s=this.chars.length;var n;for(i=0;i<e;i+=1){r=0;n=false;while(r<s){if(this.chars[r].style===t[i].style&&this.chars[r].fFamily===t[i].fFamily&&this.chars[r].ch===t[i].ch){n=true}r+=1}if(!n){this.chars.push(t[i]);s+=1}}}function g(t,e,r){var s=0;var n=this.chars.length;while(s<n){if(this.chars[s].ch===t&&this.chars[s].style===e&&this.chars[s].fFamily===r){return this.chars[s]}s+=1}if((typeof t==="string"&&t.charCodeAt(0)!==13||!t)&&console&&console.warn&&!this._warned){this._warned=true;console.warn("Missing character from exported characters list: ",t,e,r)}return i}function E(t,i,e){var r=this.getFontByName(i);var s=t;if(!r.cache[s]){var n=r.helper;if(t===" "){var a=n.measureText("|"+t+"|");var h=n.measureText("||");r.cache[s]=(a-h)/100}else{r.cache[s]=n.measureText(t)/100}}return r.cache[s]*e}function S(t){var i=0;var e=this.fonts.length;while(i<e){if(this.fonts[i].fName===t){return this.fonts[i]}i+=1}return this.fonts[0]}function b(t){var i=0;var e=t.charCodeAt(0);if(e>=55296&&e<=56319){var r=t.charCodeAt(1);if(r>=56320&&r<=57343){i=(e-55296)*1024+r-56320+65536}}return i}function P(t,i){var e=t.toString(16)+i.toString(16);return l.indexOf(e)!==-1}function M(t){return t===o}function x(t){return t===h}function w(t){var i=b(t);if(i>=f&&i<=u){return true}return false}function C(t){return w(t.substr(0,2))&&w(t.substr(2,2))}function I(t){return e.indexOf(t)!==-1}function T(t,i){var e=b(t.substr(i,2));if(e!==r){return false}var h=0;i+=2;while(h<5){e=b(t.substr(i,2));if(e<n||e>a){return false}h+=1;i+=2}return b(t.substr(i,2))===s}function V(){this.isLoaded=true}var F=function t(){this.fonts=[];this.chars=null;this.typekitLoaded=0;this.isLoaded=false;this._warned=false;this.initTime=Date.now();this.setIsLoadedBinded=this.setIsLoaded.bind(this);this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};F.isModifier=P;F.isZeroWidthJoiner=M;F.isFlagEmoji=C;F.isRegionalCode=w;F.isCombinedCharacter=I;F.isRegionalFlag=T;F.isVariationSelector=x;F.BLACK_FLAG_CODE_POINT=r;var B={addChars:y,addFonts:d,getCharData:g,getFontByName:S,measureText:E,checkLoadedFonts:p,setIsLoaded:V};F.prototype=B;return F}();function SlotManager(t){this.animationData=t}SlotManager.prototype.getProp=function(t){if(this.animationData.slots&&this.animationData.slots[t.sid]){return Object.assign(t,this.animationData.slots[t.sid].p)}return t};function slotFactory(t){return new SlotManager(t)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function t(){this.isInRange=false;this.hidden=false;this.isTransparent=false;this.renderableComponents=[]},addRenderableComponent:function t(i){if(this.renderableComponents.indexOf(i)===-1){this.renderableComponents.push(i)}},removeRenderableComponent:function t(i){if(this.renderableComponents.indexOf(i)!==-1){this.renderableComponents.splice(this.renderableComponents.indexOf(i),1)}},prepareRenderableFrame:function t(i){this.checkLayerLimits(i)},checkTransparency:function t(){if(this.finalTransform.mProp.o.v<=0){if(!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent){this.isTransparent=true;this.hide()}}else if(this.isTransparent){this.isTransparent=false;this.show()}},checkLayerLimits:function t(i){if(this.data.ip-this.data.st<=i&&this.data.op-this.data.st>i){if(this.isInRange!==true){this.globalData._mdf=true;this._mdf=true;this.isInRange=true;this.show()}}else if(this.isInRange!==false){this.globalData._mdf=true;this.isInRange=false;this.hide()}},renderRenderable:function t(){var i;var e=this.renderableComponents.length;for(i=0;i<e;i+=1){this.renderableComponents[i].renderFrame(this._isFirstFrame)}},sourceRectAtTime:function t(){return{top:0,left:0,width:100,height:100}},getLayerSize:function t(){if(this.data.ty===5){return{w:this.data.textData.width,h:this.data.textData.height}}return{w:this.data.width,h:this.data.height}}};var getBlendMode=function(){var t={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(i){return t[i]||""}}();function SliderEffect(t,i,e){this.p=PropertyFactory.getProp(i,t.v,0,0,e)}function AngleEffect(t,i,e){this.p=PropertyFactory.getProp(i,t.v,0,0,e)}function ColorEffect(t,i,e){this.p=PropertyFactory.getProp(i,t.v,1,0,e)}function PointEffect(t,i,e){this.p=PropertyFactory.getProp(i,t.v,1,0,e)}function LayerIndexEffect(t,i,e){this.p=PropertyFactory.getProp(i,t.v,0,0,e)}function MaskIndexEffect(t,i,e){this.p=PropertyFactory.getProp(i,t.v,0,0,e)}function CheckboxEffect(t,i,e){this.p=PropertyFactory.getProp(i,t.v,0,0,e)}function NoValueEffect(){this.p={}}function EffectsManager(t,i){var e=t.ef||[];this.effectElements=[];var r;var s=e.length;var n;for(r=0;r<s;r+=1){n=new GroupEffect(e[r],i);this.effectElements.push(n)}}function GroupEffect(t,i){this.init(t,i)}extendPrototype([DynamicPropertyContainer],GroupEffect);GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties;GroupEffect.prototype.init=function(t,i){this.data=t;this.effectElements=[];this.initDynamicPropertyContainer(i);var e;var r=this.data.ef.length;var s;var n=this.data.ef;for(e=0;e<r;e+=1){s=null;switch(n[e].ty){case 0:s=new SliderEffect(n[e],i,this);break;case 1:s=new AngleEffect(n[e],i,this);break;case 2:s=new ColorEffect(n[e],i,this);break;case 3:s=new PointEffect(n[e],i,this);break;case 4:case 7:s=new CheckboxEffect(n[e],i,this);break;case 10:s=new LayerIndexEffect(n[e],i,this);break;case 11:s=new MaskIndexEffect(n[e],i,this);break;case 5:s=new EffectsManager(n[e],i,this);break;default:s=new NoValueEffect(n[e],i,this);break}if(s){this.effectElements.push(s)}}};function BaseElement(){}BaseElement.prototype={checkMasks:function t(){if(!this.data.hasMask){return false}var i=0;var e=this.data.masksProperties.length;while(i<e){if(this.data.masksProperties[i].mode!=="n"&&this.data.masksProperties[i].cl!==false){return true}i+=1}return false},initExpressions:function t(){var i=getExpressionInterfaces();if(!i){return}var e=i("layer");var r=i("effects");var s=i("shape");var n=i("text");var a=i("comp");this.layerInterface=e(this);if(this.data.hasMask&&this.maskManager){this.layerInterface.registerMaskInterface(this.maskManager)}var h=r.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(h);if(this.data.ty===0||this.data.xt){this.compInterface=a(this)}else if(this.data.ty===4){this.layerInterface.shapeInterface=s(this.shapesData,this.itemsData,this.layerInterface);this.layerInterface.content=this.layerInterface.shapeInterface}else if(this.data.ty===5){this.layerInterface.textInterface=n(this);this.layerInterface.text=this.layerInterface.textInterface}},setBlendMode:function t(){var i=getBlendMode(this.data.bm);var e=this.baseElement||this.layerElement;e.style["mix-blend-mode"]=i},initBaseData:function t(i,e,r){this.globalData=e;this.comp=r;this.data=i;this.layerId=createElementID();if(!this.data.sr){this.data.sr=1}this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function t(){return this.type},sourceRectAtTime:function t(){}};function FrameElement(){}FrameElement.prototype={initFrame:function t(){this._isFirstFrame=false;this.dynamicProperties=[];this._mdf=false},prepareProperties:function t(i,e){var r;var s=this.dynamicProperties.length;for(r=0;r<s;r+=1){if(e||this._isParent&&this.dynamicProperties[r].propType==="transform"){this.dynamicProperties[r].getValue();if(this.dynamicProperties[r]._mdf){this.globalData._mdf=true;this._mdf=true}}}},addDynamicProperty:function t(i){if(this.dynamicProperties.indexOf(i)===-1){this.dynamicProperties.push(i)}}};function FootageElement(t,i,e){this.initFrame();this.initRenderable();this.assetData=i.getAssetData(t.refId);this.footageData=i.imageLoader.getAsset(this.assetData);this.initBaseData(t,i,e)}FootageElement.prototype.prepareFrame=function(){};extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement);FootageElement.prototype.getBaseElement=function(){return null};FootageElement.prototype.renderFrame=function(){};FootageElement.prototype.destroy=function(){};FootageElement.prototype.initExpressions=function(){var t=getExpressionInterfaces();if(!t){return}var i=t("footage");this.layerInterface=i(this)};FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(t,i,e){this.initFrame();this.initRenderable();this.assetData=i.getAssetData(t.refId);this.initBaseData(t,i,e);this._isPlaying=false;this._canPlay=false;var r=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(r);this._currentTime=0;this.globalData.audioController.addAudio(this);this._volumeMultiplier=1;this._volume=1;this._previousVolume=null;this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,i.frameRate,this):{_placeholder:true};this.lv=PropertyFactory.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(t){this.prepareRenderableFrame(t,true);this.prepareProperties(t,true);if(!this.tm._placeholder){var i=this.tm.v;this._currentTime=i}else{this._currentTime=t/this.data.sr}this._volume=this.lv.v[0];var e=this._volume*this._volumeMultiplier;if(this._previousVolume!==e){this._previousVolume=e;this.audio.volume(e)}};extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement);AudioElement.prototype.renderFrame=function(){if(this.isInRange&&this._canPlay){if(!this._isPlaying){this.audio.play();this.audio.seek(this._currentTime/this.globalData.frameRate);this._isPlaying=true}else if(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1){this.audio.seek(this._currentTime/this.globalData.frameRate)}}};AudioElement.prototype.show=function(){};AudioElement.prototype.hide=function(){this.audio.pause();this._isPlaying=false};AudioElement.prototype.pause=function(){this.audio.pause();this._isPlaying=false;this._canPlay=false};AudioElement.prototype.resume=function(){this._canPlay=true};AudioElement.prototype.setRate=function(t){this.audio.rate(t)};AudioElement.prototype.volume=function(t){this._volumeMultiplier=t;this._previousVolume=t*this._volume;this.audio.volume(this._previousVolume)};AudioElement.prototype.getBaseElement=function(){return null};AudioElement.prototype.destroy=function(){};AudioElement.prototype.sourceRectAtTime=function(){};AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(t){var i;var e=this.layers.length;var r;this.completeLayers=true;for(i=e-1;i>=0;i-=1){if(!this.elements[i]){r=this.layers[i];if(r.ip-r.st<=t-this.layers[i].st&&r.op-r.st>t-this.layers[i].st){this.buildItem(i)}}this.completeLayers=this.elements[i]?this.completeLayers:false}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 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t);default:return this.createNull(t)}};BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")};BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)};BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)};BaseRenderer.prototype.buildAllItems=function(){var t;var i=this.layers.length;for(t=0;t<i;t+=1){this.buildItem(t)}this.checkPendingElements()};BaseRenderer.prototype.includeLayers=function(t){this.completeLayers=false;var i;var e=t.length;var r;var s=this.layers.length;for(i=0;i<e;i+=1){r=0;while(r<s){if(this.layers[r].id===t[i].id){this.layers[r]=t[i];break}r+=1}}};BaseRenderer.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t};BaseRenderer.prototype.initItems=function(){if(!this.globalData.progressiveLoad){this.buildAllItems()}};BaseRenderer.prototype.buildElementParenting=function(t,i,e){var r=this.elements;var s=this.layers;var n=0;var a=s.length;while(n<a){if(s[n].ind==i){if(!r[n]||r[n]===true){this.buildItem(n);this.addPendingElement(t)}else{e.push(r[n]);r[n].setAsParent();if(s[n].parent!==undefined){this.buildElementParenting(t,s[n].parent,e)}else{t.setHierarchy(e)}}}n+=1}};BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t)};BaseRenderer.prototype.searchExtraCompositions=function(t){var i;var e=t.length;for(i=0;i<e;i+=1){if(t[i].xt){var r=this.createComp(t[i]);r.initExpressions();this.globalData.projectInterface.registerComposition(r)}}};BaseRenderer.prototype.getElementById=function(t){var i;var e=this.elements.length;for(i=0;i<e;i+=1){if(this.elements[i].data.ind===t){return this.elements[i]}}return null};BaseRenderer.prototype.getElementByPath=function(t){var i=t.shift();var e;if(typeof i==="number"){e=this.elements[i]}else{var r;var s=this.elements.length;for(r=0;r<s;r+=1){if(this.elements[r].data.nm===i){e=this.elements[r];break}}}if(t.length===0){return e}return e.getElementByPath(t)};BaseRenderer.prototype.setupGlobalData=function(t,i){this.globalData.fontManager=new FontManager;this.globalData.slotManager=slotFactory(t);this.globalData.fontManager.addChars(t.chars);this.globalData.fontManager.addFonts(t.fonts,i);this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem);this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem);this.globalData.imageLoader=this.animationItem.imagePreloader;this.globalData.audioController=this.animationItem.audioController;this.globalData.frameId=0;this.globalData.frameRate=t.fr;this.globalData.nm=t.nm;this.globalData.compSize={w:t.w,h:t.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function t(){var i=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:false,_localMatMdf:false,_opMdf:false,mat:i,localMat:i,localOpacity:1};if(this.data.ao){this.finalTransform.mProp.autoOriented=true}},renderTransform:function t(){this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame;this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame;if(this.hierarchy){var i;var e=this.finalTransform.mat;var r=0;var s=this.hierarchy.length;if(!this.finalTransform._matMdf){while(r<s){if(this.hierarchy[r].finalTransform.mProp._mdf){this.finalTransform._matMdf=true;break}r+=1}}if(this.finalTransform._matMdf){i=this.finalTransform.mProp.v.props;e.cloneFromProps(i);for(r=0;r<s;r+=1){e.multiply(this.hierarchy[r].finalTransform.mProp.v)}}}if(this.finalTransform._matMdf){this.finalTransform._localMatMdf=this.finalTransform._matMdf}if(this.finalTransform._opMdf){this.finalTransform.localOpacity=this.finalTransform.mProp.o.v}},renderLocalTransform:function t(){if(this.localTransforms){var i=0;var e=this.localTransforms.length;this.finalTransform._localMatMdf=this.finalTransform._matMdf;if(!this.finalTransform._localMatMdf||!this.finalTransform._opMdf){while(i<e){if(this.localTransforms[i]._mdf){this.finalTransform._localMatMdf=true}if(this.localTransforms[i]._opMdf&&!this.finalTransform._opMdf){this.finalTransform.localOpacity=this.finalTransform.mProp.o.v;this.finalTransform._opMdf=true}i+=1}}if(this.finalTransform._localMatMdf){var r=this.finalTransform.localMat;this.localTransforms[0].matrix.clone(r);for(i=1;i<e;i+=1){var s=this.localTransforms[i].matrix;r.multiply(s)}r.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var n=this.finalTransform.localOpacity;for(i=0;i<e;i+=1){n*=this.localTransforms[i].opacity*.01}this.finalTransform.localOpacity=n}}},searchEffectTransforms:function t(){if(this.renderableEffectsManager){var i=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(i.length){this.localTransforms=[];this.finalTransform.localMat=new Matrix;var e=0;var r=i.length;for(e=0;e<r;e+=1){this.localTransforms.push(i[e])}}}},globalToLocal:function t(i){var e=[];e.push(this.finalTransform);var r=true;var s=this.comp;while(r){if(s.finalTransform){if(s.data.hasMask){e.splice(0,0,s.finalTransform)}s=s.comp}else{r=false}}var n;var a=e.length;var h;for(n=0;n<a;n+=1){h=e[n].mat.applyToPointArray(0,0,0);i=[i[0]-h[0],i[1]-h[1],0]}return i},mHelper:new Matrix};function MaskElement(t,i,e){this.data=t;this.element=i;this.globalData=e;this.storedData=[];this.masksProperties=this.data.masksProperties||[];this.maskElement=null;var r=this.globalData.defs;var s;var n=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(n);this.solidPath="";var a;var h=this.masksProperties;var o=0;var f=[];var u;var l;var c=createElementID();var v;var p;var m;var d;var y="clipPath";var g="clip-path";for(s=0;s<n;s+=1){if(h[s].mode!=="a"&&h[s].mode!=="n"||h[s].inv||h[s].o.k!==100||h[s].o.x){y="mask";g="mask"}if((h[s].mode==="s"||h[s].mode==="i")&&o===0){v=createNS("rect");v.setAttribute("fill","#ffffff");v.setAttribute("width",this.element.comp.data.w||0);v.setAttribute("height",this.element.comp.data.h||0);f.push(v)}else{v=null}a=createNS("path");if(h[s].mode==="n"){this.viewData[s]={op:PropertyFactory.getProp(this.element,h[s].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,h[s],3),elem:a,lastPath:""};r.appendChild(a)}else{o+=1;a.setAttribute("fill",h[s].mode==="s"?"#000000":"#ffffff");a.setAttribute("clip-rule","nonzero");var E;if(h[s].x.k!==0){y="mask";g="mask";d=PropertyFactory.getProp(this.element,h[s].x,0,null,this.element);E=createElementID();p=createNS("filter");p.setAttribute("id",E);m=createNS("feMorphology");m.setAttribute("operator","erode");m.setAttribute("in","SourceGraphic");m.setAttribute("radius","0");p.appendChild(m);r.appendChild(p);a.setAttribute("stroke",h[s].mode==="s"?"#000000":"#ffffff")}else{m=null;d=null}this.storedData[s]={elem:a,x:d,expan:m,lastPath:"",lastOperator:"",filterId:E,lastRadius:0};if(h[s].mode==="i"){l=f.length;var S=createNS("g");for(u=0;u<l;u+=1){S.appendChild(f[u])}var b=createNS("mask");b.setAttribute("mask-type","alpha");b.setAttribute("id",c+"_"+o);b.appendChild(a);r.appendChild(b);S.setAttribute("mask","url("+getLocationHref()+"#"+c+"_"+o+")");f.length=0;f.push(S)}else{f.push(a)}if(h[s].inv&&!this.solidPath){this.solidPath=this.createLayerSolidPath()}this.viewData[s]={elem:a,lastPath:"",op:PropertyFactory.getProp(this.element,h[s].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,h[s],3),invRect:v};if(!this.viewData[s].prop.k){this.drawPath(h[s],this.viewData[s].prop.v,this.viewData[s])}}}this.maskElement=createNS(y);n=f.length;for(s=0;s<n;s+=1){this.maskElement.appendChild(f[s])}if(o>0){this.maskElement.setAttribute("id",c);this.element.maskedElement.setAttribute(g,"url("+getLocationHref()+"#"+c+")");r.appendChild(this.maskElement)}if(this.viewData.length){this.element.addRenderableComponent(this)}}MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop};MaskElement.prototype.renderFrame=function(t){var i=this.element.finalTransform.mat;var e;var r=this.masksProperties.length;for(e=0;e<r;e+=1){if(this.viewData[e].prop._mdf||t){this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e])}if(this.viewData[e].op._mdf||t){this.viewData[e].elem.setAttribute("fill-opacity",this.viewData[e].op.v)}if(this.masksProperties[e].mode!=="n"){if(this.viewData[e].invRect&&(this.element.finalTransform.mProp._mdf||t)){this.viewData[e].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS())}if(this.storedData[e].x&&(this.storedData[e].x._mdf||t)){var s=this.storedData[e].expan;if(this.storedData[e].x.v<0){if(this.storedData[e].lastOperator!=="erode"){this.storedData[e].lastOperator="erode";this.storedData[e].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[e].filterId+")")}s.setAttribute("radius",-this.storedData[e].x.v)}else{if(this.storedData[e].lastOperator!=="dilate"){this.storedData[e].lastOperator="dilate";this.storedData[e].elem.setAttribute("filter",null)}this.storedData[e].elem.setAttribute("stroke-width",this.storedData[e].x.v*2)}}}}};MaskElement.prototype.getMaskelement=function(){return this.maskElement};MaskElement.prototype.createLayerSolidPath=function(){var t="M0,0 ";t+=" h"+this.globalData.compSize.w;t+=" v"+this.globalData.compSize.h;t+=" h-"+this.globalData.compSize.w;t+=" v-"+this.globalData.compSize.h+" ";return t};MaskElement.prototype.drawPath=function(t,i,e){var r=" M"+i.v[0][0]+","+i.v[0][1];var s;var n;n=i._length;for(s=1;s<n;s+=1){r+=" C"+i.o[s-1][0]+","+i.o[s-1][1]+" "+i.i[s][0]+","+i.i[s][1]+" "+i.v[s][0]+","+i.v[s][1]}if(i.c&&n>1){r+=" C"+i.o[s-1][0]+","+i.o[s-1][1]+" "+i.i[0][0]+","+i.i[0][1]+" "+i.v[0][0]+","+i.v[0][1]}if(e.lastPath!==r){var a="";if(e.elem){if(i.c){a=t.inv?this.solidPath+r:r}e.elem.setAttribute("d",a)}e.lastPath=r}};MaskElement.prototype.destroy=function(){this.element=null;this.globalData=null;this.maskElement=null;this.data=null;this.masksProperties=null};var filtersFactory=function(){var t={};t.createFilter=i;t.createAlphaToLuminanceFilter=e;function i(t,i){var e=createNS("filter");e.setAttribute("id",t);if(i!==true){e.setAttribute("filterUnits","objectBoundingBox");e.setAttribute("x","0%");e.setAttribute("y","0%");e.setAttribute("width","100%");e.setAttribute("height","100%")}return e}function e(){var t=createNS("feColorMatrix");t.setAttribute("type","matrix");t.setAttribute("color-interpolation-filters","sRGB");t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1");return t}return t}();var featureSupport=function(){var t={maskType:true,svgLumaHidden:true,offscreenCanvas:typeof OffscreenCanvas!=="undefined"};if(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent)){t.maskType=false}if(/firefox/i.test(navigator.userAgent)){t.svgLumaHidden=false}return t}();var registeredEffects$1={};var idPrefix="filter_result_";function SVGEffects(t){var i;var e="SourceGraphic";var r=t.data.ef?t.data.ef.length:0;var s=createElementID();var n=filtersFactory.createFilter(s,true);var a=0;this.filters=[];var h;for(i=0;i<r;i+=1){h=null;var o=t.data.ef[i].ty;if(registeredEffects$1[o]){var f=registeredEffects$1[o].effect;h=new f(n,t.effectsManager.effectElements[i],t,idPrefix+a,e);e=idPrefix+a;if(registeredEffects$1[o].countsAsEffect){a+=1}}if(h){this.filters.push(h)}}if(a){t.globalData.defs.appendChild(n);t.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+s+")")}if(this.filters.length){t.addRenderableComponent(this)}}SVGEffects.prototype.renderFrame=function(t){var i;var e=this.filters.length;for(i=0;i<e;i+=1){this.filters[i].renderFrame(t)}};SVGEffects.prototype.getEffects=function(t){var i;var e=this.filters.length;var r=[];for(i=0;i<e;i+=1){if(this.filters[i].type===t){r.push(this.filters[i])}}return r};function registerEffect$1(t,i,e){registeredEffects$1[t]={effect:i,countsAsEffect:e}}function SVGBaseElement(){}SVGBaseElement.prototype={initRendererElement:function t(){this.layerElement=createNS("g")},createContainerElements:function t(){this.matteElement=createNS("g");this.transformedElement=this.layerElement;this.maskedElement=this.layerElement;this._sizeChanged=false;var i=null;if(this.data.td){this.matteMasks={};var e=createNS("g");e.setAttribute("id",this.layerId);e.appendChild(this.layerElement);i=e;this.globalData.defs.appendChild(e)}else if(this.data.tt){this.matteElement.appendChild(this.layerElement);i=this.matteElement;this.baseElement=this.matteElement}else{this.baseElement=this.layerElement}if(this.data.ln){this.layerElement.setAttribute("id",this.data.ln)}if(this.data.cl){this.layerElement.setAttribute("class",this.data.cl)}if(this.data.ty===0&&!this.data.hd){var r=createNS("clipPath");var s=createNS("path");s.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var n=createElementID();r.setAttribute("id",n);r.appendChild(s);this.globalData.defs.appendChild(r);if(this.checkMasks()){var a=createNS("g");a.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")");a.appendChild(this.layerElement);this.transformedElement=a;if(i){i.appendChild(this.transformedElement)}else{this.baseElement=this.transformedElement}}else{this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")")}}if(this.data.bm!==0){this.setBlendMode()}},renderElement:function t(){if(this.finalTransform._localMatMdf){this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS())}if(this.finalTransform._opMdf){this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)}},destroyBaseElement:function t(){this.layerElement=null;this.matteElement=null;this.maskManager.destroy()},getBaseElement:function t(){if(this.data.hd){return null}return this.baseElement},createRenderableComponents:function t(){this.maskManager=new MaskElement(this.data,this,this.globalData);this.renderableEffectsManager=new SVGEffects(this);this.searchEffectTransforms()},getMatte:function t(i){if(!this.matteMasks){this.matteMasks={}}if(!this.matteMasks[i]){var e=this.layerId+"_"+i;var r;var s;var n;var a;if(i===1||i===3){var h=createNS("mask");h.setAttribute("id",e);h.setAttribute("mask-type",i===3?"luminance":"alpha");n=createNS("use");n.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId);h.appendChild(n);this.globalData.defs.appendChild(h);if(!featureSupport.maskType&&i===1){h.setAttribute("mask-type","luminance");r=createElementID();s=filtersFactory.createFilter(r);this.globalData.defs.appendChild(s);s.appendChild(filtersFactory.createAlphaToLuminanceFilter());a=createNS("g");a.appendChild(n);h.appendChild(a);a.setAttribute("filter","url("+getLocationHref()+"#"+r+")")}}else if(i===2){var o=createNS("mask");o.setAttribute("id",e);o.setAttribute("mask-type","alpha");var f=createNS("g");o.appendChild(f);r=createElementID();s=filtersFactory.createFilter(r);var u=createNS("feComponentTransfer");u.setAttribute("in","SourceGraphic");s.appendChild(u);var l=createNS("feFuncA");l.setAttribute("type","table");l.setAttribute("tableValues","1.0 0.0");u.appendChild(l);this.globalData.defs.appendChild(s);var c=createNS("rect");c.setAttribute("width",this.comp.data.w);c.setAttribute("height",this.comp.data.h);c.setAttribute("x","0");c.setAttribute("y","0");c.setAttribute("fill","#ffffff");c.setAttribute("opacity","0");f.setAttribute("filter","url("+getLocationHref()+"#"+r+")");f.appendChild(c);n=createNS("use");n.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId);f.appendChild(n);if(!featureSupport.maskType){o.setAttribute("mask-type","luminance");s.appendChild(filtersFactory.createAlphaToLuminanceFilter());a=createNS("g");f.appendChild(c);a.appendChild(this.layerElement);f.appendChild(a)}this.globalData.defs.appendChild(o)}this.matteMasks[i]=e}return this.matteMasks[i]},setMatte:function t(i){if(!this.matteElement){return}this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+i+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function t(){this.hierarchy=[];this._isParent=false;this.checkParenting()},setHierarchy:function t(i){this.hierarchy=i},setAsParent:function t(){this._isParent=true},checkParenting:function t(){if(this.data.parent!==undefined){this.comp.buildElementParenting(this,this.data.parent,[])}}};function RenderableDOMElement(){}(function(){var t={initElement:function t(i,e,r){this.initFrame();this.initBaseData(i,e,r);this.initTransform(i,e,r);this.initHierarchy();this.initRenderable();this.initRendererElement();this.createContainerElements();this.createRenderableComponents();this.createContent();this.hide()},hide:function t(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var i=this.baseElement||this.layerElement;i.style.display="none";this.hidden=true}},show:function t(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var i=this.baseElement||this.layerElement;i.style.display="block"}this.hidden=false;this._isFirstFrame=true}},renderFrame:function t(){if(this.data.hd||this.hidden){return}this.renderTransform();this.renderRenderable();this.renderLocalTransform();this.renderElement();this.renderInnerContent();if(this._isFirstFrame){this._isFirstFrame=false}},renderInnerContent:function t(){},prepareFrame:function t(i){this._mdf=false;this.prepareRenderableFrame(i);this.prepareProperties(i,this.isInRange);this.checkTransparency()},destroy:function t(){this.innerElem=null;this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(t)],RenderableDOMElement)})();function IImageElement(t,i,e){this.assetData=i.getAssetData(t.refId);if(this.assetData&&this.assetData.sid){this.assetData=i.slotManager.getProp(this.assetData)}this.initElement(t,i,e);this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement);IImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image");this.innerElem.setAttribute("width",this.assetData.w+"px");this.innerElem.setAttribute("height",this.assetData.h+"px");this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio);this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t);this.layerElement.appendChild(this.innerElem)};IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(t,i){this.elem=t;this.pos=i}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function t(i){var e;var r=this.shapeModifiers.length;for(e=0;e<r;e+=1){this.shapeModifiers[e].addShape(i)}},isShapeInAnimatedModifiers:function t(i){var e=0;var r=this.shapeModifiers.length;while(e<r){if(this.shapeModifiers[e].isAnimatedWithShape(i)){return true}}return false},renderModifiers:function t(){if(!this.shapeModifiers.length){return}var i;var e=this.shapes.length;for(i=0;i<e;i+=1){this.shapes[i].sh.reset()}e=this.shapeModifiers.length;var r;for(i=e-1;i>=0;i-=1){r=this.shapeModifiers[i].processShapes(this._isFirstFrame);if(r){break}}},searchProcessedElement:function t(i){var e=this.processedElements;var r=0;var s=e.length;while(r<s){if(e[r].elem===i){return e[r].pos}r+=1}return 0},addProcessedElement:function t(i,e){var r=this.processedElements;var s=r.length;while(s){s-=1;if(r[s].elem===i){r[s].pos=e;return}}r.push(new ProcessedElement(i,e))},prepareFrame:function t(i){this.prepareRenderableFrame(i);this.prepareProperties(i,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"};var lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(t,i,e){this.caches=[];this.styles=[];this.transformers=t;this.lStr="";this.sh=e;this.lvl=i;this._isAnimated=!!e.k;var r=0;var s=t.length;while(r<s){if(t[r].mProps.dynamicProperties.length){this._isAnimated=true;break}r+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=true};function SVGStyleData(t,i){this.data=t;this.type=t.ty;this.d="";this.lvl=i;this._mdf=false;this.closed=t.hd===true;this.pElem=createNS("path");this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="";this._mdf=false};function DashProperty(t,i,e,r){this.elem=t;this.frameId=-1;this.dataProps=createSizedArray(i.length);this.renderer=e;this.k=false;this.dashStr="";this.dashArray=createTypedArray("float32",i.length?i.length-1:0);this.dashoffset=createTypedArray("float32",1);this.initDynamicPropertyContainer(r);var s;var n=i.length||0;var a;for(s=0;s<n;s+=1){a=PropertyFactory.getProp(t,i[s].v,0,0,this);this.k=a.k||this.k;this.dataProps[s]={n:i[s].n,p:a}}if(!this.k){this.getValue(true)}this._isAnimated=this.k}DashProperty.prototype.getValue=function(t){if(this.elem.globalData.frameId===this.frameId&&!t){return}this.frameId=this.elem.globalData.frameId;this.iterateDynamicProperties();this._mdf=this._mdf||t;if(this._mdf){var i=0;var e=this.dataProps.length;if(this.renderer==="svg"){this.dashStr=""}for(i=0;i<e;i+=1){if(this.dataProps[i].n!=="o"){if(this.renderer==="svg"){this.dashStr+=" "+this.dataProps[i].p.v}else{this.dashArray[i]=this.dataProps[i].p.v}}else{this.dashoffset[0]=this.dataProps[i].p.v}}}};extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(t,i,e){this.initDynamicPropertyContainer(t);this.getValue=this.iterateDynamicProperties;this.o=PropertyFactory.getProp(t,i.o,0,.01,this);this.w=PropertyFactory.getProp(t,i.w,0,null,this);this.d=new DashProperty(t,i.d||{},"svg",this);this.c=PropertyFactory.getProp(t,i.c,1,255,this);this.style=e;this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(t,i,e){this.initDynamicPropertyContainer(t);this.getValue=this.iterateDynamicProperties;this.o=PropertyFactory.getProp(t,i.o,0,.01,this);this.c=PropertyFactory.getProp(t,i.c,1,255,this);this.style=e}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(t,i,e){this.initDynamicPropertyContainer(t);this.getValue=this.iterateDynamicProperties;this.style=e}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(t,i,e){this.data=i;this.c=createTypedArray("uint8c",i.p*4);var r=i.k.k[0].s?i.k.k[0].s.length-i.p*4:i.k.k.length-i.p*4;this.o=createTypedArray("float32",r);this._cmdf=false;this._omdf=false;this._collapsable=this.checkCollapsable();this._hasOpacity=r;this.initDynamicPropertyContainer(e);this.prop=PropertyFactory.getProp(t,i.k,1,null,this);this.k=this.prop.k;this.getValue(true)}GradientProperty.prototype.comparePoints=function(t,i){var e=0;var r=this.o.length/2;var s;while(e<r){s=Math.abs(t[e*4]-t[i*4+e*2]);if(s>.01){return false}e+=1}return true};GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4){return false}if(this.data.k.k[0].s){var t=0;var i=this.data.k.k.length;while(t<i){if(!this.comparePoints(this.data.k.k[t].s,this.data.p)){return false}t+=1}}else if(!this.comparePoints(this.data.k.k,this.data.p)){return false}return true};GradientProperty.prototype.getValue=function(t){this.prop.getValue();this._mdf=false;this._cmdf=false;this._omdf=false;if(this.prop._mdf||t){var i;var e=this.data.p*4;var r;var s;for(i=0;i<e;i+=1){r=i%4===0?100:255;s=Math.round(this.prop.v[i]*r);if(this.c[i]!==s){this.c[i]=s;this._cmdf=!t}}if(this.o.length){e=this.prop.v.length;for(i=this.data.p*4;i<e;i+=1){r=i%2===0?100:1;s=i%2===0?Math.round(this.prop.v[i]*100):this.prop.v[i];if(this.o[i-this.data.p*4]!==s){this.o[i-this.data.p*4]=s;this._omdf=!t}}}this._mdf=!t}};extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(t,i,e){this.initDynamicPropertyContainer(t);this.getValue=this.iterateDynamicProperties;this.initGradientData(t,i,e)}SVGGradientFillStyleData.prototype.initGradientData=function(t,i,e){this.o=PropertyFactory.getProp(t,i.o,0,.01,this);this.s=PropertyFactory.getProp(t,i.s,1,null,this);this.e=PropertyFactory.getProp(t,i.e,1,null,this);this.h=PropertyFactory.getProp(t,i.h||{k:0},0,.01,this);this.a=PropertyFactory.getProp(t,i.a||{k:0},0,degToRads,this);this.g=new GradientProperty(t,i.g,this);this.style=e;this.stops=[];this.setGradientData(e.pElem,i);this.setGradientOpacity(i,e);this._isAnimated=!!this._isAnimated};SVGGradientFillStyleData.prototype.setGradientData=function(t,i){var e=createElementID();var r=createNS(i.t===1?"linearGradient":"radialGradient");r.setAttribute("id",e);r.setAttribute("spreadMethod","pad");r.setAttribute("gradientUnits","userSpaceOnUse");var s=[];var n;var a;var h;h=i.g.p*4;for(a=0;a<h;a+=4){n=createNS("stop");r.appendChild(n);s.push(n)}t.setAttribute(i.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+e+")");this.gf=r;this.cst=s};SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,i){if(this.g._hasOpacity&&!this.g._collapsable){var e;var r;var s;var n=createNS("mask");var a=createNS("path");n.appendChild(a);var h=createElementID();var o=createElementID();n.setAttribute("id",o);var f=createNS(t.t===1?"linearGradient":"radialGradient");f.setAttribute("id",h);f.setAttribute("spreadMethod","pad");f.setAttribute("gradientUnits","userSpaceOnUse");s=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var u=this.stops;for(r=t.g.p*4;r<s;r+=2){e=createNS("stop");e.setAttribute("stop-color","rgb(255,255,255)");f.appendChild(e);u.push(e)}a.setAttribute(t.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+h+")");if(t.ty==="gs"){a.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]);a.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]);if(t.lj===1){a.setAttribute("stroke-miterlimit",t.ml)}}this.of=f;this.ms=n;this.ost=u;this.maskId=o;i.msElem=a}};extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(t,i,e){this.initDynamicPropertyContainer(t);this.getValue=this.iterateDynamicProperties;this.w=PropertyFactory.getProp(t,i.w,0,null,this);this.d=new DashProperty(t,i.d||{},"svg",this);this.initGradientData(t,i,e);this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[];this.prevViewData=[];this.gr=createNS("g")}function SVGTransformData(t,i,e){this.transform={mProps:t,op:i,container:e};this.elements=[];this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function t(i,e,r,s){if(e===0){return""}var n=i.o;var a=i.i;var h=i.v;var o;var f=" M"+s.applyToPointStringified(h[0][0],h[0][1]);for(o=1;o<e;o+=1){f+=" C"+s.applyToPointStringified(n[o-1][0],n[o-1][1])+" "+s.applyToPointStringified(a[o][0],a[o][1])+" "+s.applyToPointStringified(h[o][0],h[o][1])}if(r&&e){f+=" C"+s.applyToPointStringified(n[o-1][0],n[o-1][1])+" "+s.applyToPointStringified(a[0][0],a[0][1])+" "+s.applyToPointStringified(h[0][0],h[0][1]);f+="z"}return f};var SVGElementsRenderer=function(){var t=new Matrix;var i=new Matrix;var e={createRenderFunction:r};function r(t){switch(t.ty){case"fl":return h;case"gf":return f;case"gs":return o;case"st":return u;case"sh":case"el":case"rc":case"sr":return a;case"tr":return s;case"no":return n;default:return null}}function s(t,i,e){if(e||i.transform.op._mdf){i.transform.container.setAttribute("opacity",i.transform.op.v)}if(e||i.transform.mProps._mdf){i.transform.container.setAttribute("transform",i.transform.mProps.v.to2dCSS())}}function n(){}function a(e,r,s){var n;var a;var h;var o;var f;var u;var l=r.styles.length;var c=r.lvl;var v;var p;var m;var d;for(u=0;u<l;u+=1){o=r.sh._mdf||s;if(r.styles[u].lvl<c){p=i.reset();m=c-r.styles[u].lvl;d=r.transformers.length-1;while(!o&&m>0){o=r.transformers[d].mProps._mdf||o;m-=1;d-=1}if(o){m=c-r.styles[u].lvl;d=r.transformers.length-1;while(m>0){p.multiply(r.transformers[d].mProps.v);m-=1;d-=1}}}else{p=t}v=r.sh.paths;a=v._length;if(o){h="";for(n=0;n<a;n+=1){f=v.shapes[n];if(f&&f._length){h+=buildShapeString(f,f._length,f.c,p)}}r.caches[u]=h}else{h=r.caches[u]}r.styles[u].d+=e.hd===true?"":h;r.styles[u]._mdf=o||r.styles[u]._mdf}}function h(t,i,e){var r=i.style;if(i.c._mdf||e){r.pElem.setAttribute("fill","rgb("+bmFloor(i.c.v[0])+","+bmFloor(i.c.v[1])+","+bmFloor(i.c.v[2])+")")}if(i.o._mdf||e){r.pElem.setAttribute("fill-opacity",i.o.v)}}function o(t,i,e){f(t,i,e);u(t,i,e)}function f(t,i,e){var r=i.gf;var s=i.g._hasOpacity;var n=i.s.v;var a=i.e.v;if(i.o._mdf||e){var h=t.ty==="gf"?"fill-opacity":"stroke-opacity";i.style.pElem.setAttribute(h,i.o.v)}if(i.s._mdf||e){var o=t.t===1?"x1":"cx";var f=o==="x1"?"y1":"cy";r.setAttribute(o,n[0]);r.setAttribute(f,n[1]);if(s&&!i.g._collapsable){i.of.setAttribute(o,n[0]);i.of.setAttribute(f,n[1])}}var u;var l;var c;var v;if(i.g._cmdf||e){u=i.cst;var p=i.g.c;c=u.length;for(l=0;l<c;l+=1){v=u[l];v.setAttribute("offset",p[l*4]+"%");v.setAttribute("stop-color","rgb("+p[l*4+1]+","+p[l*4+2]+","+p[l*4+3]+")")}}if(s&&(i.g._omdf||e)){var m=i.g.o;if(i.g._collapsable){u=i.cst}else{u=i.ost}c=u.length;for(l=0;l<c;l+=1){v=u[l];if(!i.g._collapsable){v.setAttribute("offset",m[l*2]+"%")}v.setAttribute("stop-opacity",m[l*2+1])}}if(t.t===1){if(i.e._mdf||e){r.setAttribute("x2",a[0]);r.setAttribute("y2",a[1]);if(s&&!i.g._collapsable){i.of.setAttribute("x2",a[0]);i.of.setAttribute("y2",a[1])}}}else{var d;if(i.s._mdf||i.e._mdf||e){d=Math.sqrt(Math.pow(n[0]-a[0],2)+Math.pow(n[1]-a[1],2));r.setAttribute("r",d);if(s&&!i.g._collapsable){i.of.setAttribute("r",d)}}if(i.e._mdf||i.h._mdf||i.a._mdf||e){if(!d){d=Math.sqrt(Math.pow(n[0]-a[0],2)+Math.pow(n[1]-a[1],2))}var y=Math.atan2(a[1]-n[1],a[0]-n[0]);var g=i.h.v;if(g>=1){g=.99}else if(g<=-1){g=-.99}var E=d*g;var S=Math.cos(y+i.a.v)*E+n[0];var b=Math.sin(y+i.a.v)*E+n[1];r.setAttribute("fx",S);r.setAttribute("fy",b);if(s&&!i.g._collapsable){i.of.setAttribute("fx",S);i.of.setAttribute("fy",b)}}}}function u(t,i,e){var r=i.style;var s=i.d;if(s&&(s._mdf||e)&&s.dashStr){r.pElem.setAttribute("stroke-dasharray",s.dashStr);r.pElem.setAttribute("stroke-dashoffset",s.dashoffset[0])}if(i.c&&(i.c._mdf||e)){r.pElem.setAttribute("stroke","rgb("+bmFloor(i.c.v[0])+","+bmFloor(i.c.v[1])+","+bmFloor(i.c.v[2])+")")}if(i.o._mdf||e){r.pElem.setAttribute("stroke-opacity",i.o.v)}if(i.w._mdf||e){r.pElem.setAttribute("stroke-width",i.w.v);if(r.msElem){r.msElem.setAttribute("stroke-width",i.w.v)}}}return e}();function SVGShapeElement(t,i,e){this.shapes=[];this.shapesData=t.shapes;this.stylesList=[];this.shapeModifiers=[];this.itemsData=[];this.processedElements=[];this.animatedContents=[];this.initElement(t,i,e);this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement);SVGShapeElement.prototype.initSecondaryElement=function(){};SVGShapeElement.prototype.identityMatrix=new Matrix;SVGShapeElement.prototype.buildExpressionInterface=function(){};SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],true);this.filterUniqueShapes()};SVGShapeElement.prototype.filterUniqueShapes=function(){var t;var i=this.shapes.length;var e;var r;var s=this.stylesList.length;var n;var a=[];var h=false;for(r=0;r<s;r+=1){n=this.stylesList[r];h=false;a.length=0;for(t=0;t<i;t+=1){e=this.shapes[t];if(e.styles.indexOf(n)!==-1){a.push(e);h=e._isAnimated||h}}if(a.length>1&&h){this.setShapesAsAnimated(a)}}};SVGShapeElement.prototype.setShapesAsAnimated=function(t){var i;var e=t.length;for(i=0;i<e;i+=1){t[i].setAsAnimated()}};SVGShapeElement.prototype.createStyleElement=function(t,i){var e;var r=new SVGStyleData(t,i);var s=r.pElem;if(t.ty==="st"){e=new SVGStrokeStyleData(this,t,r)}else if(t.ty==="fl"){e=new SVGFillStyleData(this,t,r)}else if(t.ty==="gf"||t.ty==="gs"){var n=t.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;e=new n(this,t,r);this.globalData.defs.appendChild(e.gf);if(e.maskId){this.globalData.defs.appendChild(e.ms);this.globalData.defs.appendChild(e.of);s.setAttribute("mask","url("+getLocationHref()+"#"+e.maskId+")")}}else if(t.ty==="no"){e=new SVGNoStyleData(this,t,r)}if(t.ty==="st"||t.ty==="gs"){s.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]);s.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]);s.setAttribute("fill-opacity","0");if(t.lj===1){s.setAttribute("stroke-miterlimit",t.ml)}}if(t.r===2){s.setAttribute("fill-rule","evenodd")}if(t.ln){s.setAttribute("id",t.ln)}if(t.cl){s.setAttribute("class",t.cl)}if(t.bm){s.style["mix-blend-mode"]=getBlendMode(t.bm)}this.stylesList.push(r);this.addToAnimatedContents(t,e);return e};SVGShapeElement.prototype.createGroupElement=function(t){var i=new ShapeGroupData;if(t.ln){i.gr.setAttribute("id",t.ln)}if(t.cl){i.gr.setAttribute("class",t.cl)}if(t.bm){i.gr.style["mix-blend-mode"]=getBlendMode(t.bm)}return i};SVGShapeElement.prototype.createTransformElement=function(t,i){var e=TransformPropertyFactory.getTransformProperty(this,t,this);var r=new SVGTransformData(e,e.o,i);this.addToAnimatedContents(t,r);return r};SVGShapeElement.prototype.createShapeElement=function(t,i,e){var r=4;if(t.ty==="rc"){r=5}else if(t.ty==="el"){r=6}else if(t.ty==="sr"){r=7}var s=ShapePropertyFactory.getShapeProp(this,t,r,this);var n=new SVGShapeData(i,e,s);this.shapes.push(n);this.addShapeToModifiers(n);this.addToAnimatedContents(t,n);return n};SVGShapeElement.prototype.addToAnimatedContents=function(t,i){var e=0;var r=this.animatedContents.length;while(e<r){if(this.animatedContents[e].element===i){return}e+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:i,data:t})};SVGShapeElement.prototype.setElementStyles=function(t){var i=t.styles;var e;var r=this.stylesList.length;for(e=0;e<r;e+=1){if(!this.stylesList[e].closed){i.push(this.stylesList[e])}}};SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=true;var t;var i=this.itemsData.length;for(t=0;t<i;t+=1){this.prevViewData[t]=this.itemsData[t]}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],true);this.filterUniqueShapes();i=this.dynamicProperties.length;for(t=0;t<i;t+=1){this.dynamicProperties[t].getValue()}this.renderModifiers()};SVGShapeElement.prototype.searchShapes=function(t,i,e,r,s,n,a){var h=[].concat(n);var o;var f=t.length-1;var u;var l;var c=[];var v=[];var p;var m;var d;for(o=f;o>=0;o-=1){d=this.searchProcessedElement(t[o]);if(!d){t[o]._render=a}else{i[o]=e[d-1]}if(t[o].ty==="fl"||t[o].ty==="st"||t[o].ty==="gf"||t[o].ty==="gs"||t[o].ty==="no"){if(!d){i[o]=this.createStyleElement(t[o],s)}else{i[o].style.closed=false}if(t[o]._render){if(i[o].style.pElem.parentNode!==r){r.appendChild(i[o].style.pElem)}}c.push(i[o].style)}else if(t[o].ty==="gr"){if(!d){i[o]=this.createGroupElement(t[o])}else{l=i[o].it.length;for(u=0;u<l;u+=1){i[o].prevViewData[u]=i[o].it[u]}}this.searchShapes(t[o].it,i[o].it,i[o].prevViewData,i[o].gr,s+1,h,a);if(t[o]._render){if(i[o].gr.parentNode!==r){r.appendChild(i[o].gr)}}}else if(t[o].ty==="tr"){if(!d){i[o]=this.createTransformElement(t[o],r)}p=i[o].transform;h.push(p)}else if(t[o].ty==="sh"||t[o].ty==="rc"||t[o].ty==="el"||t[o].ty==="sr"){if(!d){i[o]=this.createShapeElement(t[o],h,s)}this.setElementStyles(i[o])}else if(t[o].ty==="tm"||t[o].ty==="rd"||t[o].ty==="ms"||t[o].ty==="pb"||t[o].ty==="zz"||t[o].ty==="op"){if(!d){m=ShapeModifiers.getModifier(t[o].ty);m.init(this,t[o]);i[o]=m;this.shapeModifiers.push(m)}else{m=i[o];m.closed=false}v.push(m)}else if(t[o].ty==="rp"){if(!d){m=ShapeModifiers.getModifier(t[o].ty);i[o]=m;m.init(this,t,o,i);this.shapeModifiers.push(m);a=false}else{m=i[o];m.closed=true}v.push(m)}this.addProcessedElement(t[o],o+1)}f=c.length;for(o=0;o<f;o+=1){c[o].closed=true}f=v.length;for(o=0;o<f;o+=1){v[o].closed=true}};SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var t;var i=this.stylesList.length;for(t=0;t<i;t+=1){this.stylesList[t].reset()}this.renderShape();for(t=0;t<i;t+=1){if(this.stylesList[t]._mdf||this._isFirstFrame){if(this.stylesList[t].msElem){this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d);this.stylesList[t].d="M0 0"+this.stylesList[t].d}this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0")}}};SVGShapeElement.prototype.renderShape=function(){var t;var i=this.animatedContents.length;var e;for(t=0;t<i;t+=1){e=this.animatedContents[t];if((this._isFirstFrame||e.element._isAnimated)&&e.data!==true){e.fn(e.data,e.element,this._isFirstFrame)}}};SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement();this.shapesData=null;this.itemsData=null};function LetterProps(t,i,e,r,s,n){this.o=t;this.sw=i;this.sc=e;this.fc=r;this.m=s;this.p=n;this._mdf={o:true,sw:!!i,sc:!!e,fc:!!r,m:true,p:true}}LetterProps.prototype.update=function(t,i,e,r,s,n){this._mdf.o=false;this._mdf.sw=false;this._mdf.sc=false;this._mdf.fc=false;this._mdf.m=false;this._mdf.p=false;var a=false;if(this.o!==t){this.o=t;this._mdf.o=true;a=true}if(this.sw!==i){this.sw=i;this._mdf.sw=true;a=true}if(this.sc!==e){this.sc=e;this._mdf.sc=true;a=true}if(this.fc!==r){this.fc=r;this._mdf.fc=true;a=true}if(this.m!==s){this.m=s;this._mdf.m=true;a=true}if(n.length&&(this.p[0]!==n[0]||this.p[1]!==n[1]||this.p[4]!==n[4]||this.p[5]!==n[5]||this.p[12]!==n[12]||this.p[13]!==n[13])){this.p=n;this._mdf.p=true;a=true}return a};function TextProperty(t,i){this._frameId=initialDefaultFrame;this.pv="";this.v="";this.kf=false;this._isFirstFrame=true;this._mdf=false;if(i.d&&i.d.sid){i.d=t.globalData.slotManager.getProp(i.d)}this.data=i;this.elem=t;this.comp=this.elem.comp;this.keysIndex=0;this.canResize=false;this.minimumFontSize=1;this.effectsSequence=[];this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:false,strokeColorAnim:false,strokeWidthAnim:false,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:false};this.copyData(this.currentData,this.data.d.k[0].s);if(!this.searchProperty()){this.completeTextData(this.currentData)}}TextProperty.prototype.defaultBoxWidth=[0,0];TextProperty.prototype.copyData=function(t,i){for(var e in i){if(Object.prototype.hasOwnProperty.call(i,e)){t[e]=i[e]}}return t};TextProperty.prototype.setCurrentData=function(t){if(!t.__complete){this.completeTextData(t)}this.currentData=t;this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth;this._mdf=true};TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()};TextProperty.prototype.searchKeyframes=function(){this.kf=this.data.d.k.length>1;if(this.kf){this.addEffect(this.getKeyframeValue.bind(this))}return this.kf};TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t);this.elem.addDynamicProperty(this)};TextProperty.prototype.getValue=function(t){if((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!t){return}this.currentData.t=this.data.d.k[this.keysIndex].s.t;var i=this.currentData;var e=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=true;this._mdf=false;var r;var s=this.effectsSequence.length;var n=t||this.data.d.k[this.keysIndex].s;for(r=0;r<s;r+=1){if(e!==this.keysIndex){n=this.effectsSequence[r](n,n.t)}else{n=this.effectsSequence[r](this.currentData,n.t)}}if(i!==n){this.setCurrentData(n)}this.v=this.currentData;this.pv=this.v;this.lock=false;this.frameId=this.elem.globalData.frameId};TextProperty.prototype.getKeyframeValue=function(){var t=this.data.d.k;var i=this.elem.comp.renderedFrame;var e=0;var r=t.length;while(e<=r-1){if(e===r-1||t[e+1].t>i){break}e+=1}if(this.keysIndex!==e){this.keysIndex=e}return this.data.d.k[this.keysIndex].s};TextProperty.prototype.buildFinalText=function(t){var i=[];var e=0;var r=t.length;var s;var n;var a=false;var h=false;var o="";while(e<r){a=h;h=false;s=t.charCodeAt(e);o=t.charAt(e);if(FontManager.isCombinedCharacter(s)){a=true}else if(s>=55296&&s<=56319){if(FontManager.isRegionalFlag(t,e)){o=t.substr(e,14)}else{n=t.charCodeAt(e+1);if(n>=56320&&n<=57343){if(FontManager.isModifier(s,n)){o=t.substr(e,2);a=true}else if(FontManager.isFlagEmoji(t.substr(e,4))){o=t.substr(e,4)}else{o=t.substr(e,2)}}}}else if(s>56319){n=t.charCodeAt(e+1);if(FontManager.isVariationSelector(s)){a=true}}else if(FontManager.isZeroWidthJoiner(s)){a=true;h=true}if(a){i[i.length-1]+=o;a=false}else{i.push(o)}e+=o.length}return i};TextProperty.prototype.completeTextData=function(t){t.__complete=true;var i=this.elem.globalData.fontManager;var e=this.data;var r=[];var s;var n;var a;var h=0;var o;var f=e.m.g;var u=0;var l=0;var c=0;var v=[];var p=0;var m=0;var d;var y;var g=i.getFontByName(t.f);var E;var S=0;var b=getFontProperties(g);t.fWeight=b.weight;t.fStyle=b.style;t.finalSize=t.s;t.finalText=this.buildFinalText(t.t);n=t.finalText.length;t.finalLineHeight=t.lh;var P=t.tr/1e3*t.finalSize;var M;if(t.sz){var x=true;var w=t.sz[0];var C=t.sz[1];var I;var T;while(x){T=this.buildFinalText(t.t);I=0;p=0;n=T.length;P=t.tr/1e3*t.finalSize;var V=-1;for(s=0;s<n;s+=1){M=T[s].charCodeAt(0);a=false;if(T[s]===" "){V=s}else if(M===13||M===3){p=0;a=true;I+=t.finalLineHeight||t.finalSize*1.2}if(i.chars){E=i.getCharData(T[s],g.fStyle,g.fFamily);S=a?0:E.w*t.finalSize/100}else{S=i.measureText(T[s],t.f,t.finalSize)}if(p+S>w&&T[s]!==" "){if(V===-1){n+=1}else{s=V}I+=t.finalLineHeight||t.finalSize*1.2;T.splice(s,V===s?1:0,"\r");V=-1;p=0}else{p+=S;p+=P}}I+=g.ascent*t.finalSize/100;if(this.canResize&&t.finalSize>this.minimumFontSize&&C<I){t.finalSize-=1;t.finalLineHeight=t.finalSize*t.lh/t.s}else{t.finalText=T;n=t.finalText.length;x=false}}}p=-P;S=0;var F=0;var B;for(s=0;s<n;s+=1){a=false;B=t.finalText[s];M=B.charCodeAt(0);if(M===13||M===3){F=0;v.push(p);m=p>m?p:m;p=-2*P;o="";a=true;c+=1}else{o=B}if(i.chars){E=i.getCharData(B,g.fStyle,i.getFontByName(t.f).fFamily);S=a?0:E.w*t.finalSize/100}else{S=i.measureText(o,t.f,t.finalSize)}if(B===" "){F+=S+P}else{p+=S+P+F;F=0}r.push({l:S,an:S,add:u,n:a,anIndexes:[],val:o,line:c,animatorJustifyOffset:0});if(f==2){u+=S;if(o===""||o===" "||s===n-1){if(o===""||o===" "){u-=S}while(l<=s){r[l].an=u;r[l].ind=h;r[l].extra=S;l+=1}h+=1;u=0}}else if(f==3){u+=S;if(o===""||s===n-1){if(o===""){u-=S}while(l<=s){r[l].an=u;r[l].ind=h;r[l].extra=S;l+=1}u=0;h+=1}}else{r[h].ind=h;r[h].extra=0;h+=1}}t.l=r;m=p>m?p:m;v.push(p);if(t.sz){t.boxWidth=t.sz[0];t.justifyOffset=0}else{t.boxWidth=m;switch(t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}}t.lineWidths=v;var R=e.a;var k;var A;y=R.length;var G;var _;var D=[];for(d=0;d<y;d+=1){k=R[d];if(k.a.sc){t.strokeColorAnim=true}if(k.a.sw){t.strokeWidthAnim=true}if(k.a.fc||k.a.fh||k.a.fs||k.a.fb){t.fillColorAnim=true}_=0;G=k.s.b;for(s=0;s<n;s+=1){A=r[s];A.anIndexes[d]=_;if(G==1&&A.val!==""||G==2&&A.val!==""&&A.val!==" "||G==3&&(A.n||A.val==" "||s==n-1)||G==4&&(A.n||s==n-1)){if(k.s.rn===1){D.push(_)}_+=1}}e.a[d].s.totalChars=_;var H=-1;var N;if(k.s.rn===1){for(s=0;s<n;s+=1){A=r[s];if(H!=A.anIndexes[d]){H=A.anIndexes[d];N=D.splice(Math.floor(Math.random()*D.length),1)[0]}A.anIndexes[d]=N}}}t.yOffset=t.finalLineHeight||t.finalSize*1.2;t.ls=t.ls||0;t.ascent=g.ascent*t.finalSize/100};TextProperty.prototype.updateDocumentData=function(t,i){i=i===undefined?this.keysIndex:i;var e=this.copyData({},this.data.d.k[i].s);e=this.copyData(e,t);this.data.d.k[i].s=e;this.recalculate(i);this.setCurrentData(e);this.elem.addDynamicProperty(this)};TextProperty.prototype.recalculate=function(t){var i=this.data.d.k[t].s;i.__complete=false;this.keysIndex=0;this._isFirstFrame=true;this.getValue(i)};TextProperty.prototype.canResizeFont=function(t){this.canResize=t;this.recalculate(this.keysIndex);this.elem.addDynamicProperty(this)};TextProperty.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1;this.recalculate(this.keysIndex);this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var t=Math.max;var i=Math.min;var e=Math.floor;function r(t,i){this._currentTextLength=-1;this.k=false;this.data=i;this.elem=t;this.comp=t.comp;this.finalS=0;this.finalE=0;this.initDynamicPropertyContainer(t);this.s=PropertyFactory.getProp(t,i.s||{k:0},0,0,this);if("e"in i){this.e=PropertyFactory.getProp(t,i.e,0,0,this)}else{this.e={v:100}}this.o=PropertyFactory.getProp(t,i.o||{k:0},0,0,this);this.xe=PropertyFactory.getProp(t,i.xe||{k:0},0,0,this);this.ne=PropertyFactory.getProp(t,i.ne||{k:0},0,0,this);this.sm=PropertyFactory.getProp(t,i.sm||{k:100},0,0,this);this.a=PropertyFactory.getProp(t,i.a,0,.01,this);if(!this.dynamicProperties.length){this.getValue()}}r.prototype={getMult:function r(s){if(this._currentTextLength!==this.elem.textProperty.currentData.l.length){this.getValue()}var n=0;var a=0;var h=1;var o=1;if(this.ne.v>0){n=this.ne.v/100}else{a=-this.ne.v/100}if(this.xe.v>0){h=1-this.xe.v/100}else{o=1+this.xe.v/100}var f=BezierFactory.getBezierEasing(n,a,h,o).get;var u=0;var l=this.finalS;var c=this.finalE;var v=this.data.sh;if(v===2){if(c===l){u=s>=c?1:0}else{u=t(0,i(.5/(c-l)+(s-l)/(c-l),1))}u=f(u)}else if(v===3){if(c===l){u=s>=c?0:1}else{u=1-t(0,i(.5/(c-l)+(s-l)/(c-l),1))}u=f(u)}else if(v===4){if(c===l){u=0}else{u=t(0,i(.5/(c-l)+(s-l)/(c-l),1));if(u<.5){u*=2}else{u=1-2*(u-.5)}}u=f(u)}else if(v===5){if(c===l){u=0}else{var p=c-l;s=i(t(0,s+.5-l),c-l);var m=-p/2+s;var d=p/2;u=Math.sqrt(1-m*m/(d*d))}u=f(u)}else if(v===6){if(c===l){u=0}else{s=i(t(0,s+.5-l),c-l);u=(1+Math.cos(Math.PI+Math.PI*2*s/(c-l)))/2}u=f(u)}else{if(s>=e(l)){if(s-l<0){u=t(0,i(i(c,1)-(l-s),1))}else{u=t(0,i(c-s,1))}}u=f(u)}if(this.sm.v!==100){var y=this.sm.v*.01;if(y===0){y=1e-8}var g=.5-y*.5;if(u<g){u=0}else{u=(u-g)/y;if(u>1){u=1}}}return u*this.a.v},getValue:function t(i){this.iterateDynamicProperties();this._mdf=i||this._mdf;this._currentTextLength=this.elem.textProperty.currentData.l.length||0;if(i&&this.data.r===2){this.e.v=this._currentTextLength}var e=this.data.r===2?1:100/this.data.totalChars;var r=this.o.v/e;var s=this.s.v/e+r;var n=this.e.v/e+r;if(s>n){var a=s;s=n;n=a}this.finalS=s;this.finalE=n}};extendPrototype([DynamicPropertyContainer],r);function s(t,i,e){return new r(t,i,e)}return{getTextSelectorProp:s}}();function TextAnimatorDataProperty(t,i,e){var r={propType:false};var s=PropertyFactory.getProp;var n=i.a;this.a={r:n.r?s(t,n.r,0,degToRads,e):r,rx:n.rx?s(t,n.rx,0,degToRads,e):r,ry:n.ry?s(t,n.ry,0,degToRads,e):r,sk:n.sk?s(t,n.sk,0,degToRads,e):r,sa:n.sa?s(t,n.sa,0,degToRads,e):r,s:n.s?s(t,n.s,1,.01,e):r,a:n.a?s(t,n.a,1,0,e):r,o:n.o?s(t,n.o,0,.01,e):r,p:n.p?s(t,n.p,1,0,e):r,sw:n.sw?s(t,n.sw,0,0,e):r,sc:n.sc?s(t,n.sc,1,0,e):r,fc:n.fc?s(t,n.fc,1,0,e):r,fh:n.fh?s(t,n.fh,0,0,e):r,fs:n.fs?s(t,n.fs,0,.01,e):r,fb:n.fb?s(t,n.fb,0,.01,e):r,t:n.t?s(t,n.t,0,0,e):r};this.s=TextSelectorProp.getTextSelectorProp(t,i.s,e);this.s.t=i.s.t}function TextAnimatorProperty(t,i,e){this._isFirstFrame=true;this._hasMaskedPath=false;this._frameId=-1;this._textData=t;this._renderType=i;this._elem=e;this._animatorsData=createSizedArray(this._textData.a.length);this._pathData={};this._moreOptions={alignment:{}};this.renderedLetters=[];this.lettersChangedFlag=false;this.initDynamicPropertyContainer(e)}TextAnimatorProperty.prototype.searchProperties=function(){var t;var i=this._textData.a.length;var e;var r=PropertyFactory.getProp;for(t=0;t<i;t+=1){e=this._textData.a[t];this._animatorsData[t]=new TextAnimatorDataProperty(this._elem,e,this)}if(this._textData.p&&"m"in this._textData.p){this._pathData={a:r(this._elem,this._textData.p.a,0,0,this),f:r(this._elem,this._textData.p.f,0,0,this),l:r(this._elem,this._textData.p.l,0,0,this),r:r(this._elem,this._textData.p.r,0,0,this),p:r(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)};this._hasMaskedPath=true}else{this._hasMaskedPath=false}this._moreOptions.alignment=r(this._elem,this._textData.m.a,1,0,this)};TextAnimatorProperty.prototype.getMeasures=function(t,i){this.lettersChangedFlag=i;if(!this._mdf&&!this._isFirstFrame&&!i&&(!this._hasMaskedPath||!this._pathData.m._mdf)){return}this._isFirstFrame=false;var e=this._moreOptions.alignment.v;var r=this._animatorsData;var s=this._textData;var n=this.mHelper;var a=this._renderType;var h=this.renderedLetters.length;var o;var f;var u;var l;var c=t.l;var v;var p;var m;var d;var y;var g;var E;var S;var b;var P;var M;var x;var w;var C;var I;if(this._hasMaskedPath){I=this._pathData.m;if(!this._pathData.n||this._pathData._mdf){var T=I.v;if(this._pathData.r.v){T=T.reverse()}v={tLength:0,segments:[]};l=T._length-1;var V;x=0;for(u=0;u<l;u+=1){V=bez.buildBezierData(T.v[u],T.v[u+1],[T.o[u][0]-T.v[u][0],T.o[u][1]-T.v[u][1]],[T.i[u+1][0]-T.v[u+1][0],T.i[u+1][1]-T.v[u+1][1]]);v.tLength+=V.segmentLength;v.segments.push(V);x+=V.segmentLength}u=l;if(I.v.c){V=bez.buildBezierData(T.v[u],T.v[0],[T.o[u][0]-T.v[u][0],T.o[u][1]-T.v[u][1]],[T.i[0][0]-T.v[0][0],T.i[0][1]-T.v[0][1]]);v.tLength+=V.segmentLength;v.segments.push(V);x+=V.segmentLength}this._pathData.pi=v}v=this._pathData.pi;p=this._pathData.f.v;E=0;g=1;d=0;y=true;P=v.segments;if(p<0&&I.v.c){if(v.tLength<Math.abs(p)){p=-Math.abs(p)%v.tLength}E=P.length-1;b=P[E].points;g=b.length-1;while(p<0){p+=b[g].partialLength;g-=1;if(g<0){E-=1;b=P[E].points;g=b.length-1}}}b=P[E].points;S=b[g-1];m=b[g];M=m.partialLength}l=c.length;o=0;f=0;var F=t.finalSize*1.2*.714;var B=true;var R;var k;var A;var G;var _;G=r.length;var D;var H=-1;var N;var O;var z;var L=p;var $=E;var j=g;var q=-1;var W;var Z;var J;var Y;var U;var K;var Q;var X;var tt="";var it=this.defaultPropsArray;var et;if(t.j===2||t.j===1){var rt=0;var st=0;var nt=t.j===2?-.5:-1;var at=0;var ht=true;for(u=0;u<l;u+=1){if(c[u].n){if(rt){rt+=st}while(at<u){c[at].animatorJustifyOffset=rt;at+=1}rt=0;ht=true}else{for(A=0;A<G;A+=1){R=r[A].a;if(R.t.propType){if(ht&&t.j===2){st+=R.t.v*nt}k=r[A].s;D=k.getMult(c[u].anIndexes[A],s.a[A].s.totalChars);if(D.length){rt+=R.t.v*D[0]*nt}else{rt+=R.t.v*D*nt}}}ht=false}}if(rt){rt+=st}while(at<u){c[at].animatorJustifyOffset=rt;at+=1}}for(u=0;u<l;u+=1){n.reset();W=1;if(c[u].n){o=0;f+=t.yOffset;f+=B?1:0;p=L;B=false;if(this._hasMaskedPath){E=$;g=j;b=P[E].points;S=b[g-1];m=b[g];M=m.partialLength;d=0}tt="";X="";K="";et="";it=this.defaultPropsArray}else{if(this._hasMaskedPath){if(q!==c[u].line){switch(t.j){case 1:p+=x-t.lineWidths[c[u].line];break;case 2:p+=(x-t.lineWidths[c[u].line])/2;break}q=c[u].line}if(H!==c[u].ind){if(c[H]){p+=c[H].extra}p+=c[u].an/2;H=c[u].ind}p+=e[0]*c[u].an*.005;var ot=0;for(A=0;A<G;A+=1){R=r[A].a;if(R.p.propType){k=r[A].s;D=k.getMult(c[u].anIndexes[A],s.a[A].s.totalChars);if(D.length){ot+=R.p.v[0]*D[0]}else{ot+=R.p.v[0]*D}}if(R.a.propType){k=r[A].s;D=k.getMult(c[u].anIndexes[A],s.a[A].s.totalChars);if(D.length){ot+=R.a.v[0]*D[0]}else{ot+=R.a.v[0]*D}}}y=true;if(this._pathData.a.v){p=c[0].an*.5+(x-this._pathData.f.v-c[0].an*.5-c[c.length-1].an*.5)*H/(l-1);p+=this._pathData.f.v}while(y){if(d+M>=p+ot||!b){w=(p+ot-d)/m.partialLength;O=S.point[0]+(m.point[0]-S.point[0])*w;z=S.point[1]+(m.point[1]-S.point[1])*w;n.translate(-e[0]*c[u].an*.005,-(e[1]*F)*.01);y=false}else if(b){d+=m.partialLength;g+=1;if(g>=b.length){g=0;E+=1;if(!P[E]){if(I.v.c){g=0;E=0;b=P[E].points}else{d-=m.partialLength;b=null}}else{b=P[E].points}}if(b){S=m;m=b[g];M=m.partialLength}}}N=c[u].an/2-c[u].add;n.translate(-N,0,0)}else{N=c[u].an/2-c[u].add;n.translate(-N,0,0);n.translate(-e[0]*c[u].an*.005,-e[1]*F*.01,0)}for(A=0;A<G;A+=1){R=r[A].a;if(R.t.propType){k=r[A].s;D=k.getMult(c[u].anIndexes[A],s.a[A].s.totalChars);if(o!==0||t.j!==0){if(this._hasMaskedPath){if(D.length){p+=R.t.v*D[0]}else{p+=R.t.v*D}}else if(D.length){o+=R.t.v*D[0]}else{o+=R.t.v*D}}}}if(t.strokeWidthAnim){J=t.sw||0}if(t.strokeColorAnim){if(t.sc){Z=[t.sc[0],t.sc[1],t.sc[2]]}else{Z=[0,0,0]}}if(t.fillColorAnim&&t.fc){Y=[t.fc[0],t.fc[1],t.fc[2]]}for(A=0;A<G;A+=1){R=r[A].a;if(R.a.propType){k=r[A].s;D=k.getMult(c[u].anIndexes[A],s.a[A].s.totalChars);if(D.length){n.translate(-R.a.v[0]*D[0],-R.a.v[1]*D[1],R.a.v[2]*D[2])}else{n.translate(-R.a.v[0]*D,-R.a.v[1]*D,R.a.v[2]*D)}}}for(A=0;A<G;A+=1){R=r[A].a;if(R.s.propType){k=r[A].s;D=k.getMult(c[u].anIndexes[A],s.a[A].s.totalChars);if(D.length){n.scale(1+(R.s.v[0]-1)*D[0],1+(R.s.v[1]-1)*D[1],1)}else{n.scale(1+(R.s.v[0]-1)*D,1+(R.s.v[1]-1)*D,1)}}}for(A=0;A<G;A+=1){R=r[A].a;k=r[A].s;D=k.getMult(c[u].anIndexes[A],s.a[A].s.totalChars);if(R.sk.propType){if(D.length){n.skewFromAxis(-R.sk.v*D[0],R.sa.v*D[1])}else{n.skewFromAxis(-R.sk.v*D,R.sa.v*D)}}if(R.r.propType){if(D.length){n.rotateZ(-R.r.v*D[2])}else{n.rotateZ(-R.r.v*D)}}if(R.ry.propType){if(D.length){n.rotateY(R.ry.v*D[1])}else{n.rotateY(R.ry.v*D)}}if(R.rx.propType){if(D.length){n.rotateX(R.rx.v*D[0])}else{n.rotateX(R.rx.v*D)}}if(R.o.propType){if(D.length){W+=(R.o.v*D[0]-W)*D[0]}else{W+=(R.o.v*D-W)*D}}if(t.strokeWidthAnim&&R.sw.propType){if(D.length){J+=R.sw.v*D[0]}else{J+=R.sw.v*D}}if(t.strokeColorAnim&&R.sc.propType){for(U=0;U<3;U+=1){if(D.length){Z[U]+=(R.sc.v[U]-Z[U])*D[0]}else{Z[U]+=(R.sc.v[U]-Z[U])*D}}}if(t.fillColorAnim&&t.fc){if(R.fc.propType){for(U=0;U<3;U+=1){if(D.length){Y[U]+=(R.fc.v[U]-Y[U])*D[0]}else{Y[U]+=(R.fc.v[U]-Y[U])*D}}}if(R.fh.propType){if(D.length){Y=addHueToRGB(Y,R.fh.v*D[0])}else{Y=addHueToRGB(Y,R.fh.v*D)}}if(R.fs.propType){if(D.length){Y=addSaturationToRGB(Y,R.fs.v*D[0])}else{Y=addSaturationToRGB(Y,R.fs.v*D)}}if(R.fb.propType){if(D.length){Y=addBrightnessToRGB(Y,R.fb.v*D[0])}else{Y=addBrightnessToRGB(Y,R.fb.v*D)}}}}for(A=0;A<G;A+=1){R=r[A].a;if(R.p.propType){k=r[A].s;D=k.getMult(c[u].anIndexes[A],s.a[A].s.totalChars);if(this._hasMaskedPath){if(D.length){n.translate(0,R.p.v[1]*D[0],-R.p.v[2]*D[1])}else{n.translate(0,R.p.v[1]*D,-R.p.v[2]*D)}}else if(D.length){n.translate(R.p.v[0]*D[0],R.p.v[1]*D[1],-R.p.v[2]*D[2])}else{n.translate(R.p.v[0]*D,R.p.v[1]*D,-R.p.v[2]*D)}}}if(t.strokeWidthAnim){K=J<0?0:J}if(t.strokeColorAnim){Q="rgb("+Math.round(Z[0]*255)+","+Math.round(Z[1]*255)+","+Math.round(Z[2]*255)+")"}if(t.fillColorAnim&&t.fc){X="rgb("+Math.round(Y[0]*255)+","+Math.round(Y[1]*255)+","+Math.round(Y[2]*255)+")"}if(this._hasMaskedPath){n.translate(0,-t.ls);n.translate(0,e[1]*F*.01+f,0);if(this._pathData.p.v){C=(m.point[1]-S.point[1])/(m.point[0]-S.point[0]);var ft=Math.atan(C)*180/Math.PI;if(m.point[0]<S.point[0]){ft+=180}n.rotate(-ft*Math.PI/180)}n.translate(O,z,0);p-=e[0]*c[u].an*.005;if(c[u+1]&&H!==c[u+1].ind){p+=c[u].an/2;p+=t.tr*.001*t.finalSize}}else{n.translate(o,f,0);if(t.ps){n.translate(t.ps[0],t.ps[1]+t.ascent,0)}switch(t.j){case 1:n.translate(c[u].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[c[u].line]),0,0);break;case 2:n.translate(c[u].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[c[u].line])/2,0,0);break}n.translate(0,-t.ls);n.translate(N,0,0);n.translate(e[0]*c[u].an*.005,e[1]*F*.01,0);o+=c[u].l+t.tr*.001*t.finalSize}if(a==="html"){tt=n.toCSS()}else if(a==="svg"){tt=n.to2dCSS()}else{it=[n.props[0],n.props[1],n.props[2],n.props[3],n.props[4],n.props[5],n.props[6],n.props[7],n.props[8],n.props[9],n.props[10],n.props[11],n.props[12],n.props[13],n.props[14],n.props[15]]}et=W}if(h<=u){_=new LetterProps(et,K,Q,X,tt,it);this.renderedLetters.push(_);h+=1;this.lettersChangedFlag=true}else{_=this.renderedLetters[u];this.lettersChangedFlag=_.update(et,K,Q,X,tt,it)||this.lettersChangedFlag}}};TextAnimatorProperty.prototype.getValue=function(){if(this._elem.globalData.frameId===this._frameId){return}this._frameId=this._elem.globalData.frameId;this.iterateDynamicProperties()};TextAnimatorProperty.prototype.mHelper=new Matrix;TextAnimatorProperty.prototype.defaultPropsArray=[];extendPrototype([DynamicPropertyContainer],TextAnimatorProperty);function ITextElement(){}ITextElement.prototype.initElement=function(t,i,e){this.lettersChangedFlag=true;this.initFrame();this.initBaseData(t,i,e);this.textProperty=new TextProperty(this,t.t,this.dynamicProperties);this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this);this.initTransform(t,i,e);this.initHierarchy();this.initRenderable();this.initRendererElement();this.createContainerElements();this.createRenderableComponents();this.createContent();this.hide();this.textAnimator.searchProperties(this.dynamicProperties)};ITextElement.prototype.prepareFrame=function(t){this._mdf=false;this.prepareRenderableFrame(t);this.prepareProperties(t,this.isInRange)};ITextElement.prototype.createPathShape=function(t,i){var e;var r=i.length;var s;var n="";for(e=0;e<r;e+=1){if(i[e].ty==="sh"){s=i[e].ks.k;n+=buildShapeString(s,s.i.length,true,t)}}return n};ITextElement.prototype.updateDocumentData=function(t,i){this.textProperty.updateDocumentData(t,i)};ITextElement.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)};ITextElement.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)};ITextElement.prototype.applyTextPropertiesToMatrix=function(t,i,e,r,s){if(t.ps){i.translate(t.ps[0],t.ps[1]+t.ascent,0)}i.translate(0,-t.ls,0);switch(t.j){case 1:i.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[e]),0,0);break;case 2:i.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[e])/2,0,0);break}i.translate(r,s,0)};ITextElement.prototype.buildColor=function(t){return"rgb("+Math.round(t[0]*255)+","+Math.round(t[1]*255)+","+Math.round(t[2]*255)+")"};ITextElement.prototype.emptyProp=new LetterProps;ITextElement.prototype.destroy=function(){};ITextElement.prototype.validateText=function(){if(this.textProperty._mdf||this.textProperty._isFirstFrame){this.buildNewText();this.textProperty._isFirstFrame=false;this.textProperty._mdf=false}};var emptyShapeData={shapes:[]};function SVGTextLottieElement(t,i,e){this.textSpans=[];this.renderType="svg";this.initElement(t,i,e)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement);SVGTextLottieElement.prototype.createContent=function(){if(this.data.singleShape&&!this.globalData.fontManager.chars){this.textContainer=createNS("text")}};SVGTextLottieElement.prototype.buildTextContents=function(t){var i=0;var e=t.length;var r=[];var s="";while(i<e){if(t[i]===String.fromCharCode(13)||t[i]===String.fromCharCode(3)){r.push(s);s=""}else{s+=t[i]}i+=1}r.push(s);return r};SVGTextLottieElement.prototype.buildShapeData=function(t,i){if(t.shapes&&t.shapes.length){var e=t.shapes[0];if(e.it){var r=e.it[e.it.length-1];if(r.s){r.s.k[0]=i;r.s.k[1]=i}}}return t};SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var t;var i;var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e?e.l.length:0);if(e.fc){this.layerElement.setAttribute("fill",this.buildColor(e.fc))}else{this.layerElement.setAttribute("fill","rgba(0,0,0,0)")}if(e.sc){this.layerElement.setAttribute("stroke",this.buildColor(e.sc));this.layerElement.setAttribute("stroke-width",e.sw)}this.layerElement.setAttribute("font-size",e.finalSize);var r=this.globalData.fontManager.getFontByName(e.f);if(r.fClass){this.layerElement.setAttribute("class",r.fClass)}else{this.layerElement.setAttribute("font-family",r.fFamily);var s=e.fWeight;var n=e.fStyle;this.layerElement.setAttribute("font-style",n);this.layerElement.setAttribute("font-weight",s)}this.layerElement.setAttribute("aria-label",e.t);var a=e.l||[];var h=!!this.globalData.fontManager.chars;i=a.length;var o;var f=this.mHelper;var u="";var l=this.data.singleShape;var c=0;var v=0;var p=true;var m=e.tr*.001*e.finalSize;if(l&&!h&&!e.sz){var d=this.textContainer;var y="start";switch(e.j){case 1:y="end";break;case 2:y="middle";break;default:y="start";break}d.setAttribute("text-anchor",y);d.setAttribute("letter-spacing",m);var g=this.buildTextContents(e.finalText);i=g.length;v=e.ps?e.ps[1]+e.ascent:0;for(t=0;t<i;t+=1){o=this.textSpans[t].span||createNS("tspan");o.textContent=g[t];o.setAttribute("x",0);o.setAttribute("y",v);o.style.display="inherit";d.appendChild(o);if(!this.textSpans[t]){this.textSpans[t]={span:null,glyph:null}}this.textSpans[t].span=o;v+=e.finalLineHeight}this.layerElement.appendChild(d)}else{var E=this.textSpans.length;var S;for(t=0;t<i;t+=1){if(!this.textSpans[t]){this.textSpans[t]={span:null,childSpan:null,glyph:null}}if(!h||!l||t===0){o=E>t?this.textSpans[t].span:createNS(h?"g":"text");if(E<=t){o.setAttribute("stroke-linecap","butt");o.setAttribute("stroke-linejoin","round");o.setAttribute("stroke-miterlimit","4");this.textSpans[t].span=o;if(h){var b=createNS("g");o.appendChild(b);this.textSpans[t].childSpan=b}this.textSpans[t].span=o;this.layerElement.appendChild(o)}o.style.display="inherit"}f.reset();if(l){if(a[t].n){c=-m;v+=e.yOffset;v+=p?1:0;p=false}this.applyTextPropertiesToMatrix(e,f,a[t].line,c,v);c+=a[t].l||0;c+=m}if(h){S=this.globalData.fontManager.getCharData(e.finalText[t],r.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily);var P;if(S.t===1){P=new SVGCompElement(S.data,this.globalData,this)}else{var M=emptyShapeData;if(S.data&&S.data.shapes){M=this.buildShapeData(S.data,e.finalSize)}P=new SVGShapeElement(M,this.globalData,this)}if(this.textSpans[t].glyph){var x=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(x.layerElement);x.destroy()}this.textSpans[t].glyph=P;P._debug=true;P.prepareFrame(0);P.renderFrame();this.textSpans[t].childSpan.appendChild(P.layerElement);if(S.t===1){this.textSpans[t].childSpan.setAttribute("transform","scale("+e.finalSize/100+","+e.finalSize/100+")")}}else{if(l){o.setAttribute("transform","translate("+f.props[12]+","+f.props[13]+")")}o.textContent=a[t].val;o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}}if(l&&o){o.setAttribute("d",u)}}while(t<this.textSpans.length){this.textSpans[t].span.style.display="none";t+=1}this._sizeChanged=true};SVGTextLottieElement.prototype.sourceRectAtTime=function(){this.prepareFrame(this.comp.renderedFrame-this.data.st);this.renderInnerContent();if(this._sizeChanged){this._sizeChanged=false;var t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox};SVGTextLottieElement.prototype.getValue=function(){var t;var i=this.textSpans.length;var e;this.renderedFrame=this.comp.renderedFrame;for(t=0;t<i;t+=1){e=this.textSpans[t].glyph;if(e){e.prepareFrame(this.comp.renderedFrame-this.data.st);if(e._mdf){this._mdf=true}}}};SVGTextLottieElement.prototype.renderInnerContent=function(){this.validateText();if(!this.data.singleShape||this._mdf){this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);if(this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){this._sizeChanged=true;var t;var i;var e=this.textAnimator.renderedLetters;var r=this.textProperty.currentData.l;i=r.length;var s;var n;var a;for(t=0;t<i;t+=1){if(!r[t].n){s=e[t];n=this.textSpans[t].span;a=this.textSpans[t].glyph;if(a){a.renderFrame()}if(s._mdf.m){n.setAttribute("transform",s.m)}if(s._mdf.o){n.setAttribute("opacity",s.o)}if(s._mdf.sw){n.setAttribute("stroke-width",s.sw)}if(s._mdf.sc){n.setAttribute("stroke",s.sc)}if(s._mdf.fc){n.setAttribute("fill",s.fc)}}}}}};function ISolidElement(t,i,e){this.initElement(t,i,e)}extendPrototype([IImageElement],ISolidElement);ISolidElement.prototype.createContent=function(){var t=createNS("rect");t.setAttribute("width",this.data.sw);t.setAttribute("height",this.data.sh);t.setAttribute("fill",this.data.sc);this.layerElement.appendChild(t)};function NullElement(t,i,e){this.initFrame();this.initBaseData(t,i,e);this.initFrame();this.initTransform(t,i,e);this.initHierarchy()}NullElement.prototype.prepareFrame=function(t){this.prepareProperties(t,true)};NullElement.prototype.renderFrame=function(){};NullElement.prototype.getBaseElement=function(){return null};NullElement.prototype.destroy=function(){};NullElement.prototype.sourceRectAtTime=function(){};NullElement.prototype.hide=function(){};extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement);function SVGRendererBase(){}extendPrototype([BaseRenderer],SVGRendererBase);SVGRendererBase.prototype.createNull=function(t){return new NullElement(t,this.globalData,this)};SVGRendererBase.prototype.createShape=function(t){return new SVGShapeElement(t,this.globalData,this)};SVGRendererBase.prototype.createText=function(t){return new SVGTextLottieElement(t,this.globalData,this)};SVGRendererBase.prototype.createImage=function(t){return new IImageElement(t,this.globalData,this)};SVGRendererBase.prototype.createSolid=function(t){return new ISolidElement(t,this.globalData,this)};SVGRendererBase.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg");this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink");if(this.renderConfig.viewBoxSize){this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize)}else{this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h)}if(!this.renderConfig.viewBoxOnly){this.svgElement.setAttribute("width",t.w);this.svgElement.setAttribute("height",t.h);this.svgElement.style.width="100%";this.svgElement.style.height="100%";this.svgElement.style.transform="translate3d(0,0,0)";this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility}if(this.renderConfig.width){this.svgElement.setAttribute("width",this.renderConfig.width)}if(this.renderConfig.height){this.svgElement.setAttribute("height",this.renderConfig.height)}if(this.renderConfig.className){this.svgElement.setAttribute("class",this.renderConfig.className)}if(this.renderConfig.id){this.svgElement.setAttribute("id",this.renderConfig.id)}if(this.renderConfig.focusable!==undefined){this.svgElement.setAttribute("focusable",this.renderConfig.focusable)}this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio);this.animationItem.wrapper.appendChild(this.svgElement);var i=this.globalData.defs;this.setupGlobalData(t,i);this.globalData.progressiveLoad=this.renderConfig.progressiveLoad;this.data=t;var e=createNS("clipPath");var r=createNS("rect");r.setAttribute("width",t.w);r.setAttribute("height",t.h);r.setAttribute("x",0);r.setAttribute("y",0);var s=createElementID();e.setAttribute("id",s);e.appendChild(r);this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")");i.appendChild(e);this.layers=t.layers;this.elements=createSizedArray(t.layers.length)};SVGRendererBase.prototype.destroy=function(){if(this.animationItem.wrapper){this.animationItem.wrapper.innerText=""}this.layerElement=null;this.globalData.defs=null;var t;var i=this.layers?this.layers.length:0;for(t=0;t<i;t+=1){if(this.elements[t]&&this.elements[t].destroy){this.elements[t].destroy()}}this.elements.length=0;this.destroyed=true;this.animationItem=null};SVGRendererBase.prototype.updateContainerSize=function(){};SVGRendererBase.prototype.findIndexByInd=function(t){var i=0;var e=this.layers.length;for(i=0;i<e;i+=1){if(this.layers[i].ind===t){return i}}return-1};SVGRendererBase.prototype.buildItem=function(t){var i=this.elements;if(i[t]||this.layers[t].ty===99){return}i[t]=true;var e=this.createItem(this.layers[t]);i[t]=e;if(getExpressionsPlugin()){if(this.layers[t].ty===0){this.globalData.projectInterface.registerComposition(e)}e.initExpressions()}this.appendElementInPos(e,t);if(this.layers[t].tt){var r="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(r===-1){return}if(!this.elements[r]||this.elements[r]===true){this.buildItem(r);this.addPendingElement(e)}else{var s=i[r];var n=s.getMatte(this.layers[t].tt);e.setMatte(n)}}};SVGRendererBase.prototype.checkPendingElements=function(){while(this.pendingElements.length){var t=this.pendingElements.pop();t.checkParenting();if(t.data.tt){var i=0;var e=this.elements.length;while(i<e){if(this.elements[i]===t){var r="tp"in t.data?this.findIndexByInd(t.data.tp):i-1;var s=this.elements[r];var n=s.getMatte(this.layers[i].tt);t.setMatte(n);break}i+=1}}}};SVGRendererBase.prototype.renderFrame=function(t){if(this.renderedFrame===t||this.destroyed){return}if(t===null){t=this.renderedFrame}else{this.renderedFrame=t}this.globalData.frameNum=t;this.globalData.frameId+=1;this.globalData.projectInterface.currentFrame=t;this.globalData._mdf=false;var i;var e=this.layers.length;if(!this.completeLayers){this.checkLayers(t)}for(i=e-1;i>=0;i-=1){if(this.completeLayers||this.elements[i]){this.elements[i].prepareFrame(t-this.layers[i].st)}}if(this.globalData._mdf){for(i=0;i<e;i+=1){if(this.completeLayers||this.elements[i]){this.elements[i].renderFrame()}}}};SVGRendererBase.prototype.appendElementInPos=function(t,i){var e=t.getBaseElement();if(!e){return}var r=0;var s;while(r<i){if(this.elements[r]&&this.elements[r]!==true&&this.elements[r].getBaseElement()){s=this.elements[r].getBaseElement()}r+=1}if(s){this.layerElement.insertBefore(e,s)}else{this.layerElement.appendChild(e)}};SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"};SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"};function ICompElement(){}extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement);ICompElement.prototype.initElement=function(t,i,e){this.initFrame();this.initBaseData(t,i,e);this.initTransform(t,i,e);this.initRenderable();this.initHierarchy();this.initRendererElement();this.createContainerElements();this.createRenderableComponents();if(this.data.xt||!i.progressiveLoad){this.buildAllItems()}this.hide()};ICompElement.prototype.prepareFrame=function(t){this._mdf=false;this.prepareRenderableFrame(t);this.prepareProperties(t,this.isInRange);if(!this.isInRange&&!this.data.xt){return}if(!this.tm._placeholder){var i=this.tm.v;if(i===this.data.op){i=this.data.op-1}this.renderedFrame=i}else{this.renderedFrame=t/this.data.sr}var e;var r=this.elements.length;if(!this.completeLayers){this.checkLayers(this.renderedFrame)}for(e=r-1;e>=0;e-=1){if(this.completeLayers||this.elements[e]){this.elements[e].prepareFrame(this.renderedFrame-this.layers[e].st);if(this.elements[e]._mdf){this._mdf=true}}}};ICompElement.prototype.renderInnerContent=function(){var t;var i=this.layers.length;for(t=0;t<i;t+=1){if(this.completeLayers||this.elements[t]){this.elements[t].renderFrame()}}};ICompElement.prototype.setElements=function(t){this.elements=t};ICompElement.prototype.getElements=function(){return this.elements};ICompElement.prototype.destroyElements=function(){var t;var i=this.layers.length;for(t=0;t<i;t+=1){if(this.elements[t]){this.elements[t].destroy()}}};ICompElement.prototype.destroy=function(){this.destroyElements();this.destroyBaseElement()};function SVGCompElement(t,i,e){this.layers=t.layers;this.supports3d=true;this.completeLayers=false;this.pendingElements=[];this.elements=this.layers?createSizedArray(this.layers.length):[];this.initElement(t,i,e);this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,i.frameRate,this):{_placeholder:true}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement);SVGCompElement.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)};function SVGRenderer(t,i){this.animationItem=t;this.layers=null;this.renderedFrame=-1;this.svgElement=createNS("svg");var e="";if(i&&i.title){var r=createNS("title");var s=createElementID();r.setAttribute("id",s);r.textContent=i.title;this.svgElement.appendChild(r);e+=s}if(i&&i.description){var n=createNS("desc");var a=createElementID();n.setAttribute("id",a);n.textContent=i.description;this.svgElement.appendChild(n);e+=" "+a}if(e){this.svgElement.setAttribute("aria-labelledby",e)}var h=createNS("defs");this.svgElement.appendChild(h);var o=createNS("g");this.svgElement.appendChild(o);this.layerElement=o;this.renderConfig={preserveAspectRatio:i&&i.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:i&&i.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:i&&i.contentVisibility||"visible",progressiveLoad:i&&i.progressiveLoad||false,hideOnTransparent:!(i&&i.hideOnTransparent===false),viewBoxOnly:i&&i.viewBoxOnly||false,viewBoxSize:i&&i.viewBoxSize||false,className:i&&i.className||"",id:i&&i.id||"",focusable:i&&i.focusable,filterSize:{width:i&&i.filterSize&&i.filterSize.width||"100%",height:i&&i.filterSize&&i.filterSize.height||"100%",x:i&&i.filterSize&&i.filterSize.x||"0%",y:i&&i.filterSize&&i.filterSize.y||"0%"},width:i&&i.width,height:i&&i.height,runExpressions:!i||i.runExpressions===undefined||i.runExpressions};this.globalData={_mdf:false,frameNum:-1,defs:h,renderConfig:this.renderConfig};this.elements=[];this.pendingElements=[];this.destroyed=false;this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer);SVGRenderer.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)};function ShapeTransformManager(){this.sequences={};this.sequenceList=[];this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function t(i){var e;var r=i.length;var s="_";for(e=0;e<r;e+=1){s+=i[e].transform.key+"_"}var n=this.sequences[s];if(!n){n={transforms:[].concat(i),finalTransform:new Matrix,_mdf:false};this.sequences[s]=n;this.sequenceList.push(n)}return n},processSequence:function t(i,e){var r=0;var s=i.transforms.length;var n=e;while(r<s&&!e){if(i.transforms[r].transform.mProps._mdf){n=true;break}r+=1}if(n){i.finalTransform.reset();for(r=s-1;r>=0;r-=1){i.finalTransform.multiply(i.transforms[r].transform.mProps.v)}}i._mdf=n},processSequences:function t(i){var e;var r=this.sequenceList.length;for(e=0;e<r;e+=1){this.processSequence(this.sequenceList[e],i)}},getNewKey:function t(){this.transform_key_count+=1;return"_"+this.transform_key_count}};var lumaLoader=function t(){var i="__lottie_element_luma_buffer";var e=null;var r=null;var s=null;function n(){var t=createNS("svg");var e=createNS("filter");var r=createNS("feColorMatrix");e.setAttribute("id",i);r.setAttribute("type","matrix");r.setAttribute("color-interpolation-filters","sRGB");r.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0");e.appendChild(r);t.appendChild(e);t.setAttribute("id",i+"_svg");if(featureSupport.svgLumaHidden){t.style.display="none"}return t}function a(){if(!e){s=n();document.body.appendChild(s);e=createTag("canvas");r=e.getContext("2d");r.filter="url(#"+i+")";r.fillStyle="rgba(0,0,0,0)";r.fillRect(0,0,1,1)}}function h(t){if(!e){a()}e.width=t.width;e.height=t.height;r.filter="url(#"+i+")";return e}return{load:a,get:h}};function createCanvas(t,i){if(featureSupport.offscreenCanvas){return new OffscreenCanvas(t,i)}var e=createTag("canvas");e.width=t;e.height=i;return e}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}();var registeredEffects={};function CVEffects(t){var i;var e=t.data.ef?t.data.ef.length:0;this.filters=[];var r;for(i=0;i<e;i+=1){r=null;var s=t.data.ef[i].ty;if(registeredEffects[s]){var n=registeredEffects[s].effect;r=new n(t.effectsManager.effectElements[i],t)}if(r){this.filters.push(r)}}if(this.filters.length){t.addRenderableComponent(this)}}CVEffects.prototype.renderFrame=function(t){var i;var e=this.filters.length;for(i=0;i<e;i+=1){this.filters[i].renderFrame(t)}};CVEffects.prototype.getEffects=function(t){var i;var e=this.filters.length;var r=[];for(i=0;i<e;i+=1){if(this.filters[i].type===t){r.push(this.filters[i])}}return r};function registerEffect(t,i){registeredEffects[t]={effect:i}}function CVMaskElement(t,i){this.data=t;this.element=i;this.masksProperties=this.data.masksProperties||[];this.viewData=createSizedArray(this.masksProperties.length);var e;var r=this.masksProperties.length;var s=false;for(e=0;e<r;e+=1){if(this.masksProperties[e].mode!=="n"){s=true}this.viewData[e]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[e],3)}this.hasMasks=s;if(s){this.element.addRenderableComponent(this)}}CVMaskElement.prototype.renderFrame=function(){if(!this.hasMasks){return}var t=this.element.finalTransform.mat;var i=this.element.canvasContext;var e;var r=this.masksProperties.length;var s;var n;var a;i.beginPath();for(e=0;e<r;e+=1){if(this.masksProperties[e].mode!=="n"){if(this.masksProperties[e].inv){i.moveTo(0,0);i.lineTo(this.element.globalData.compSize.w,0);i.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h);i.lineTo(0,this.element.globalData.compSize.h);i.lineTo(0,0)}a=this.viewData[e].v;s=t.applyToPointArray(a.v[0][0],a.v[0][1],0);i.moveTo(s[0],s[1]);var h;var o=a._length;for(h=1;h<o;h+=1){n=t.applyToTriplePoints(a.o[h-1],a.i[h],a.v[h]);i.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5])}n=t.applyToTriplePoints(a.o[h-1],a.i[0],a.v[0]);i.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5])}}this.element.globalData.renderer.save(true);i.clip()};CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty;CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};CVBaseElement.prototype={createElements:function t(){},initRendererElement:function t(){},createContainerElements:function t(){if(this.data.tt>=1){this.buffers=[];var i=this.globalData.canvasContext;var e=assetLoader.createCanvas(i.canvas.width,i.canvas.height);this.buffers.push(e);var r=assetLoader.createCanvas(i.canvas.width,i.canvas.height);this.buffers.push(r);if(this.data.tt>=3&&!document._isProxy){assetLoader.loadLumaCanvas()}}this.canvasContext=this.globalData.canvasContext;this.transformCanvas=this.globalData.transformCanvas;this.renderableEffectsManager=new CVEffects(this);this.searchEffectTransforms()},createContent:function t(){},setBlendMode:function t(){var i=this.globalData;if(i.blendMode!==this.data.bm){i.blendMode=this.data.bm;var e=getBlendMode(this.data.bm);i.canvasContext.globalCompositeOperation=e}},createRenderableComponents:function t(){this.maskManager=new CVMaskElement(this.data,this);this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function t(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){this.hidden=true}},showElement:function t(){if(this.isInRange&&!this.isTransparent){this.hidden=false;this._isFirstFrame=true;this.maskManager._isFirstFrame=true}},clearCanvas:function t(i){i.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function t(){if(this.data.tt>=1){var i=this.buffers[0];var e=i.getContext("2d");this.clearCanvas(e);e.drawImage(this.canvasContext.canvas,0,0);this.currentTransform=this.canvasContext.getTransform();this.canvasContext.setTransform(1,0,0,1,0,0);this.clearCanvas(this.canvasContext);this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function t(){if(this.data.tt>=1){var i=this.buffers[1];var e=i.getContext("2d");this.clearCanvas(e);e.drawImage(this.canvasContext.canvas,0,0);this.canvasContext.setTransform(1,0,0,1,0,0);this.clearCanvas(this.canvasContext);this.canvasContext.setTransform(this.currentTransform);var r=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);r.renderFrame(true);this.canvasContext.setTransform(1,0,0,1,0,0);if(this.data.tt>=3&&!document._isProxy){var s=assetLoader.getLumaCanvas(this.canvasContext.canvas);var n=s.getContext("2d");n.drawImage(this.canvasContext.canvas,0,0);this.clearCanvas(this.canvasContext);this.canvasContext.drawImage(s,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt];this.canvasContext.drawImage(i,0,0);this.canvasContext.globalCompositeOperation="destination-over";this.canvasContext.drawImage(this.buffers[0],0,0);this.canvasContext.setTransform(this.currentTransform);this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function t(i){if(this.hidden||this.data.hd){return}if(this.data.td===1&&!i){return}this.renderTransform();this.renderRenderable();this.renderLocalTransform();this.setBlendMode();var e=this.data.ty===0;this.prepareLayer();this.globalData.renderer.save(e);this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props);this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity);this.renderInnerContent();this.globalData.renderer.restore(e);this.exitLayer();if(this.maskManager.hasMasks){this.globalData.renderer.restore(true)}if(this._isFirstFrame){this._isFirstFrame=false}},destroy:function t(){this.canvasContext=null;this.data=null;this.globalData=null;this.maskManager.destroy()},mHelper:new Matrix};CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement;CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(t,i,e,r){this.styledShapes=[];this.tr=[0,0,0,0,0,0];var s=4;if(i.ty==="rc"){s=5}else if(i.ty==="el"){s=6}else if(i.ty==="sr"){s=7}this.sh=ShapePropertyFactory.getShapeProp(t,i,s,t);var n;var a=e.length;var h;for(n=0;n<a;n+=1){if(!e[n].closed){h={transforms:r.addTransformSequence(e[n].transforms),trNodes:[]};this.styledShapes.push(h);e[n].elements.push(h)}}}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(t,i,e){this.shapes=[];this.shapesData=t.shapes;this.stylesList=[];this.itemsData=[];this.prevViewData=[];this.shapeModifiers=[];this.processedElements=[];this.transformsManager=new ShapeTransformManager;this.initElement(t,i,e)}extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement);CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement;CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:false};CVShapeElement.prototype.dashResetter=[];CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,true,[])};CVShapeElement.prototype.createStyleElement=function(t,i){var e={data:t,type:t.ty,preTransforms:this.transformsManager.addTransformSequence(i),transforms:[],elements:[],closed:t.hd===true};var r={};if(t.ty==="fl"||t.ty==="st"){r.c=PropertyFactory.getProp(this,t.c,1,255,this);if(!r.c.k){e.co="rgb("+bmFloor(r.c.v[0])+","+bmFloor(r.c.v[1])+","+bmFloor(r.c.v[2])+")"}}else if(t.ty==="gf"||t.ty==="gs"){r.s=PropertyFactory.getProp(this,t.s,1,null,this);r.e=PropertyFactory.getProp(this,t.e,1,null,this);r.h=PropertyFactory.getProp(this,t.h||{k:0},0,.01,this);r.a=PropertyFactory.getProp(this,t.a||{k:0},0,degToRads,this);r.g=new GradientProperty(this,t.g,this)}r.o=PropertyFactory.getProp(this,t.o,0,.01,this);if(t.ty==="st"||t.ty==="gs"){e.lc=lineCapEnum[t.lc||2];e.lj=lineJoinEnum[t.lj||2];if(t.lj==1){e.ml=t.ml}r.w=PropertyFactory.getProp(this,t.w,0,null,this);if(!r.w.k){e.wi=r.w.v}if(t.d){var s=new DashProperty(this,t.d,"canvas",this);r.d=s;if(!r.d.k){e.da=r.d.dashArray;e["do"]=r.d.dashoffset[0]}}}else{e.r=t.r===2?"evenodd":"nonzero"}this.stylesList.push(e);r.style=e;return r};CVShapeElement.prototype.createGroupElement=function(){var t={it:[],prevViewData:[]};return t};CVShapeElement.prototype.createTransformElement=function(t){var i={transform:{opacity:1,_opMdf:false,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,t.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,t,this)}};return i};CVShapeElement.prototype.createShapeElement=function(t){var i=new CVShapeData(this,t,this.stylesList,this.transformsManager);this.shapes.push(i);this.addShapeToModifiers(i);return i};CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=true;var t;var i=this.itemsData.length;for(t=0;t<i;t+=1){this.prevViewData[t]=this.itemsData[t]}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,true,[]);i=this.dynamicProperties.length;for(t=0;t<i;t+=1){this.dynamicProperties[t].getValue()}this.renderModifiers();this.transformsManager.processSequences(this._isFirstFrame)};CVShapeElement.prototype.addTransformToStyleList=function(t){var i;var e=this.stylesList.length;for(i=0;i<e;i+=1){if(!this.stylesList[i].closed){this.stylesList[i].transforms.push(t)}}};CVShapeElement.prototype.removeTransformFromStyleList=function(){var t;var i=this.stylesList.length;for(t=0;t<i;t+=1){if(!this.stylesList[t].closed){this.stylesList[t].transforms.pop()}}};CVShapeElement.prototype.closeStyles=function(t){var i;var e=t.length;for(i=0;i<e;i+=1){t[i].closed=true}};CVShapeElement.prototype.searchShapes=function(t,i,e,r,s){var n;var a=t.length-1;var h;var o;var f=[];var u=[];var l;var c;var v;var p=[].concat(s);for(n=a;n>=0;n-=1){l=this.searchProcessedElement(t[n]);if(!l){t[n]._shouldRender=r}else{i[n]=e[l-1]}if(t[n].ty==="fl"||t[n].ty==="st"||t[n].ty==="gf"||t[n].ty==="gs"){if(!l){i[n]=this.createStyleElement(t[n],p)}else{i[n].style.closed=false}f.push(i[n].style)}else if(t[n].ty==="gr"){if(!l){i[n]=this.createGroupElement(t[n])}else{o=i[n].it.length;for(h=0;h<o;h+=1){i[n].prevViewData[h]=i[n].it[h]}}this.searchShapes(t[n].it,i[n].it,i[n].prevViewData,r,p)}else if(t[n].ty==="tr"){if(!l){v=this.createTransformElement(t[n]);i[n]=v}p.push(i[n]);this.addTransformToStyleList(i[n])}else if(t[n].ty==="sh"||t[n].ty==="rc"||t[n].ty==="el"||t[n].ty==="sr"){if(!l){i[n]=this.createShapeElement(t[n])}}else if(t[n].ty==="tm"||t[n].ty==="rd"||t[n].ty==="pb"||t[n].ty==="zz"||t[n].ty==="op"){if(!l){c=ShapeModifiers.getModifier(t[n].ty);c.init(this,t[n]);i[n]=c;this.shapeModifiers.push(c)}else{c=i[n];c.closed=false}u.push(c)}else if(t[n].ty==="rp"){if(!l){c=ShapeModifiers.getModifier(t[n].ty);i[n]=c;c.init(this,t,n,i);this.shapeModifiers.push(c);r=false}else{c=i[n];c.closed=true}u.push(c)}this.addProcessedElement(t[n],n+1)}this.removeTransformFromStyleList();this.closeStyles(f);a=u.length;for(n=0;n<a;n+=1){u[n].closed=true}};CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1;this.transformHelper._opMdf=false;this.renderModifiers();this.transformsManager.processSequences(this._isFirstFrame);this.renderShape(this.transformHelper,this.shapesData,this.itemsData,true)};CVShapeElement.prototype.renderShapeTransform=function(t,i){if(t._opMdf||i.op._mdf||this._isFirstFrame){i.opacity=t.opacity;i.opacity*=i.op.v;i._opMdf=true}};CVShapeElement.prototype.drawLayer=function(){var t;var i=this.stylesList.length;var e;var r;var s;var n;var a;var h;var o=this.globalData.renderer;var f=this.globalData.canvasContext;var u;var l;for(t=0;t<i;t+=1){l=this.stylesList[t];u=l.type;if(!((u==="st"||u==="gs")&&l.wi===0||!l.data._shouldRender||l.coOp===0||this.globalData.currentGlobalAlpha===0)){o.save();a=l.elements;if(u==="st"||u==="gs"){o.ctxStrokeStyle(u==="st"?l.co:l.grd);o.ctxLineWidth(l.wi);o.ctxLineCap(l.lc);o.ctxLineJoin(l.lj);o.ctxMiterLimit(l.ml||0)}else{o.ctxFillStyle(u==="fl"?l.co:l.grd)}o.ctxOpacity(l.coOp);if(u!=="st"&&u!=="gs"){f.beginPath()}o.ctxTransform(l.preTransforms.finalTransform.props);r=a.length;for(e=0;e<r;e+=1){if(u==="st"||u==="gs"){f.beginPath();if(l.da){f.setLineDash(l.da);f.lineDashOffset=l["do"]}}h=a[e].trNodes;n=h.length;for(s=0;s<n;s+=1){if(h[s].t==="m"){f.moveTo(h[s].p[0],h[s].p[1])}else if(h[s].t==="c"){f.bezierCurveTo(h[s].pts[0],h[s].pts[1],h[s].pts[2],h[s].pts[3],h[s].pts[4],h[s].pts[5])}else{f.closePath()}}if(u==="st"||u==="gs"){o.ctxStroke();if(l.da){f.setLineDash(this.dashResetter)}}}if(u!=="st"&&u!=="gs"){this.globalData.renderer.ctxFill(l.r)}o.restore()}}};CVShapeElement.prototype.renderShape=function(t,i,e,r){var s;var n=i.length-1;var a;a=t;for(s=n;s>=0;s-=1){if(i[s].ty==="tr"){a=e[s].transform;this.renderShapeTransform(t,a)}else if(i[s].ty==="sh"||i[s].ty==="el"||i[s].ty==="rc"||i[s].ty==="sr"){this.renderPath(i[s],e[s])}else if(i[s].ty==="fl"){this.renderFill(i[s],e[s],a)}else if(i[s].ty==="st"){this.renderStroke(i[s],e[s],a)}else if(i[s].ty==="gf"||i[s].ty==="gs"){this.renderGradientFill(i[s],e[s],a)}else if(i[s].ty==="gr"){this.renderShape(a,i[s].it,e[s].it)}else;}if(r){this.drawLayer()}};CVShapeElement.prototype.renderStyledShape=function(t,i){if(this._isFirstFrame||i._mdf||t.transforms._mdf){var e=t.trNodes;var r=i.paths;var s;var n;var a;var h=r._length;e.length=0;var o=t.transforms.finalTransform;for(a=0;a<h;a+=1){var f=r.shapes[a];if(f&&f.v){n=f._length;for(s=1;s<n;s+=1){if(s===1){e.push({t:"m",p:o.applyToPointArray(f.v[0][0],f.v[0][1],0)})}e.push({t:"c",pts:o.applyToTriplePoints(f.o[s-1],f.i[s],f.v[s])})}if(n===1){e.push({t:"m",p:o.applyToPointArray(f.v[0][0],f.v[0][1],0)})}if(f.c&&n){e.push({t:"c",pts:o.applyToTriplePoints(f.o[s-1],f.i[0],f.v[0])});e.push({t:"z"})}}}t.trNodes=e}};CVShapeElement.prototype.renderPath=function(t,i){if(t.hd!==true&&t._shouldRender){var e;var r=i.styledShapes.length;for(e=0;e<r;e+=1){this.renderStyledShape(i.styledShapes[e],i.sh)}}};CVShapeElement.prototype.renderFill=function(t,i,e){var r=i.style;if(i.c._mdf||this._isFirstFrame){r.co="rgb("+bmFloor(i.c.v[0])+","+bmFloor(i.c.v[1])+","+bmFloor(i.c.v[2])+")"}if(i.o._mdf||e._opMdf||this._isFirstFrame){r.coOp=i.o.v*e.opacity}};CVShapeElement.prototype.renderGradientFill=function(t,i,e){var r=i.style;var s;if(!r.grd||i.g._mdf||i.s._mdf||i.e._mdf||t.t!==1&&(i.h._mdf||i.a._mdf)){var n=this.globalData.canvasContext;var a=i.s.v;var h=i.e.v;if(t.t===1){s=n.createLinearGradient(a[0],a[1],h[0],h[1])}else{var o=Math.sqrt(Math.pow(a[0]-h[0],2)+Math.pow(a[1]-h[1],2));var f=Math.atan2(h[1]-a[1],h[0]-a[0]);var u=i.h.v;if(u>=1){u=.99}else if(u<=-1){u=-.99}var l=o*u;var c=Math.cos(f+i.a.v)*l+a[0];var v=Math.sin(f+i.a.v)*l+a[1];s=n.createRadialGradient(c,v,0,a[0],a[1],o)}var p;var m=t.g.p;var d=i.g.c;var y=1;for(p=0;p<m;p+=1){if(i.g._hasOpacity&&i.g._collapsable){y=i.g.o[p*2+1]}s.addColorStop(d[p*4]/100,"rgba("+d[p*4+1]+","+d[p*4+2]+","+d[p*4+3]+","+y+")")}r.grd=s}r.coOp=i.o.v*e.opacity};CVShapeElement.prototype.renderStroke=function(t,i,e){var r=i.style;var s=i.d;if(s&&(s._mdf||this._isFirstFrame)){r.da=s.dashArray;r["do"]=s.dashoffset[0]}if(i.c._mdf||this._isFirstFrame){r.co="rgb("+bmFloor(i.c.v[0])+","+bmFloor(i.c.v[1])+","+bmFloor(i.c.v[2])+")"}if(i.o._mdf||e._opMdf||this._isFirstFrame){r.coOp=i.o.v*e.opacity}if(i.w._mdf||this._isFirstFrame){r.wi=i.w.v}};CVShapeElement.prototype.destroy=function(){this.shapesData=null;this.globalData=null;this.canvasContext=null;this.stylesList.length=0;this.itemsData.length=0};function CVTextElement(t,i,e){this.textSpans=[];this.yOffset=0;this.fillColorAnim=false;this.strokeColorAnim=false;this.strokeWidthAnim=false;this.stroke=false;this.fill=false;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.initElement(t,i,e)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement);CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d");CVTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var i=false;if(t.fc){i=true;this.values.fill=this.buildColor(t.fc)}else{this.values.fill="rgba(0,0,0,0)"}this.fill=i;var e=false;if(t.sc){e=true;this.values.stroke=this.buildColor(t.sc);this.values.sWidth=t.sw}var r=this.globalData.fontManager.getFontByName(t.f);var s;var n;var a=t.l;var h=this.mHelper;this.stroke=e;this.values.fValue=t.finalSize+"px "+this.globalData.fontManager.getFontByName(t.f).fFamily;n=t.finalText.length;var o;var f;var u;var l;var c;var v;var p;var m;var d;var y;var g=this.data.singleShape;var E=t.tr*.001*t.finalSize;var S=0;var b=0;var P=true;var M=0;for(s=0;s<n;s+=1){o=this.globalData.fontManager.getCharData(t.finalText[s],r.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily);f=o&&o.data||{};h.reset();if(g&&a[s].n){S=-E;b+=t.yOffset;b+=P?1:0;P=false}c=f.shapes?f.shapes[0].it:[];p=c.length;h.scale(t.finalSize/100,t.finalSize/100);if(g){this.applyTextPropertiesToMatrix(t,h,a[s].line,S,b)}d=createSizedArray(p-1);var x=0;for(v=0;v<p;v+=1){if(c[v].ty==="sh"){l=c[v].ks.k.i.length;m=c[v].ks.k;y=[];for(u=1;u<l;u+=1){if(u===1){y.push(h.applyToX(m.v[0][0],m.v[0][1],0),h.applyToY(m.v[0][0],m.v[0][1],0))}y.push(h.applyToX(m.o[u-1][0],m.o[u-1][1],0),h.applyToY(m.o[u-1][0],m.o[u-1][1],0),h.applyToX(m.i[u][0],m.i[u][1],0),h.applyToY(m.i[u][0],m.i[u][1],0),h.applyToX(m.v[u][0],m.v[u][1],0),h.applyToY(m.v[u][0],m.v[u][1],0))}y.push(h.applyToX(m.o[u-1][0],m.o[u-1][1],0),h.applyToY(m.o[u-1][0],m.o[u-1][1],0),h.applyToX(m.i[0][0],m.i[0][1],0),h.applyToY(m.i[0][0],m.i[0][1],0),h.applyToX(m.v[0][0],m.v[0][1],0),h.applyToY(m.v[0][0],m.v[0][1],0));d[x]=y;x+=1}}if(g){S+=a[s].l;S+=E}if(this.textSpans[M]){this.textSpans[M].elem=d}else{this.textSpans[M]={elem:d}}M+=1}};CVTextElement.prototype.renderInnerContent=function(){this.validateText();var t=this.canvasContext;t.font=this.values.fValue;this.globalData.renderer.ctxLineCap("butt");this.globalData.renderer.ctxLineJoin("miter");this.globalData.renderer.ctxMiterLimit(4);if(!this.data.singleShape){this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag)}var i;var e;var r;var s;var n;var a;var h=this.textAnimator.renderedLetters;var o=this.textProperty.currentData.l;e=o.length;var f;var u=null;var l=null;var c=null;var v;var p;var m=this.globalData.renderer;for(i=0;i<e;i+=1){if(!o[i].n){f=h[i];if(f){m.save();m.ctxTransform(f.p);m.ctxOpacity(f.o)}if(this.fill){if(f&&f.fc){if(u!==f.fc){m.ctxFillStyle(f.fc);u=f.fc}}else if(u!==this.values.fill){u=this.values.fill;m.ctxFillStyle(this.values.fill)}v=this.textSpans[i].elem;s=v.length;this.globalData.canvasContext.beginPath();for(r=0;r<s;r+=1){p=v[r];a=p.length;this.globalData.canvasContext.moveTo(p[0],p[1]);for(n=2;n<a;n+=6){this.globalData.canvasContext.bezierCurveTo(p[n],p[n+1],p[n+2],p[n+3],p[n+4],p[n+5])}}this.globalData.canvasContext.closePath();m.ctxFill()}if(this.stroke){if(f&&f.sw){if(c!==f.sw){c=f.sw;m.ctxLineWidth(f.sw)}}else if(c!==this.values.sWidth){c=this.values.sWidth;m.ctxLineWidth(this.values.sWidth)}if(f&&f.sc){if(l!==f.sc){l=f.sc;m.ctxStrokeStyle(f.sc)}}else if(l!==this.values.stroke){l=this.values.stroke;m.ctxStrokeStyle(this.values.stroke)}v=this.textSpans[i].elem;s=v.length;this.globalData.canvasContext.beginPath();for(r=0;r<s;r+=1){p=v[r];a=p.length;this.globalData.canvasContext.moveTo(p[0],p[1]);for(n=2;n<a;n+=6){this.globalData.canvasContext.bezierCurveTo(p[n],p[n+1],p[n+2],p[n+3],p[n+4],p[n+5])}}this.globalData.canvasContext.closePath();m.ctxStroke()}if(f){this.globalData.renderer.restore()}}}};function CVImageElement(t,i,e){this.assetData=i.getAssetData(t.refId);this.img=i.imageLoader.getAsset(this.assetData);this.initElement(t,i,e)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement);CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement;CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame;CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var t=createTag("canvas");t.width=this.assetData.w;t.height=this.assetData.h;var i=t.getContext("2d");var e=this.img.width;var r=this.img.height;var s=e/r;var n=this.assetData.w/this.assetData.h;var a;var h;var o=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;if(s>n&&o==="xMidYMid slice"||s<n&&o!=="xMidYMid slice"){h=r;a=h*n}else{a=e;h=a/n}i.drawImage(this.img,(e-a)/2,(r-h)/2,a,h,0,0,this.assetData.w,this.assetData.h);this.img=t}};CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)};CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(t,i,e){this.initElement(t,i,e)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement);CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement;CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame;CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc);this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)};function CanvasRendererBase(){}extendPrototype([BaseRenderer],CanvasRendererBase);CanvasRendererBase.prototype.createShape=function(t){return new CVShapeElement(t,this.globalData,this)};CanvasRendererBase.prototype.createText=function(t){return new CVTextElement(t,this.globalData,this)};CanvasRendererBase.prototype.createImage=function(t){return new CVImageElement(t,this.globalData,this)};CanvasRendererBase.prototype.createSolid=function(t){return new CVSolidElement(t,this.globalData,this)};CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull;CanvasRendererBase.prototype.ctxTransform=function(t){if(t[0]===1&&t[1]===0&&t[4]===0&&t[5]===1&&t[12]===0&&t[13]===0){return}this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13])};CanvasRendererBase.prototype.ctxOpacity=function(t){this.canvasContext.globalAlpha*=t<0?0:t};CanvasRendererBase.prototype.ctxFillStyle=function(t){this.canvasContext.fillStyle=t};CanvasRendererBase.prototype.ctxStrokeStyle=function(t){this.canvasContext.strokeStyle=t};CanvasRendererBase.prototype.ctxLineWidth=function(t){this.canvasContext.lineWidth=t};CanvasRendererBase.prototype.ctxLineCap=function(t){this.canvasContext.lineCap=t};CanvasRendererBase.prototype.ctxLineJoin=function(t){this.canvasContext.lineJoin=t};CanvasRendererBase.prototype.ctxMiterLimit=function(t){this.canvasContext.miterLimit=t};CanvasRendererBase.prototype.ctxFill=function(t){this.canvasContext.fill(t)};CanvasRendererBase.prototype.ctxFillRect=function(t,i,e,r){this.canvasContext.fillRect(t,i,e,r)};CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()};CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()};CanvasRendererBase.prototype.save=function(){this.canvasContext.save()};CanvasRendererBase.prototype.restore=function(t){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}if(t){this.globalData.blendMode="source-over"}this.contextData.restore(t)};CanvasRendererBase.prototype.configAnimation=function(t){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var i=this.animationItem.container.style;i.width="100%";i.height="100%";var e="0px 0px 0px";i.transformOrigin=e;i.mozTransformOrigin=e;i.webkitTransformOrigin=e;i["-webkit-transform"]=e;i.contentVisibility=this.renderConfig.contentVisibility;this.animationItem.wrapper.appendChild(this.animationItem.container);this.canvasContext=this.animationItem.container.getContext("2d");if(this.renderConfig.className){this.animationItem.container.setAttribute("class",this.renderConfig.className)}if(this.renderConfig.id){this.animationItem.container.setAttribute("id",this.renderConfig.id)}}else{this.canvasContext=this.renderConfig.context}this.contextData.setContext(this.canvasContext);this.data=t;this.layers=t.layers;this.transformCanvas={w:t.w,h:t.h,sx:0,sy:0,tx:0,ty:0};this.setupGlobalData(t,document.body);this.globalData.canvasContext=this.canvasContext;this.globalData.renderer=this;this.globalData.isDashed=false;this.globalData.progressiveLoad=this.renderConfig.progressiveLoad;this.globalData.transformCanvas=this.transformCanvas;this.elements=createSizedArray(t.layers.length);this.updateContainerSize()};CanvasRendererBase.prototype.updateContainerSize=function(t,i){this.reset();var e;var r;if(t){e=t;r=i;this.canvasContext.canvas.width=e;this.canvasContext.canvas.height=r}else{if(this.animationItem.wrapper&&this.animationItem.container){e=this.animationItem.wrapper.offsetWidth;r=this.animationItem.wrapper.offsetHeight}else{e=this.canvasContext.canvas.width;r=this.canvasContext.canvas.height}this.canvasContext.canvas.width=e*this.renderConfig.dpr;this.canvasContext.canvas.height=r*this.renderConfig.dpr}var s;var n;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var a=this.renderConfig.preserveAspectRatio.split(" ");var h=a[1]||"meet";var o=a[0]||"xMidYMid";var f=o.substr(0,4);var u=o.substr(4);s=e/r;n=this.transformCanvas.w/this.transformCanvas.h;if(n>s&&h==="meet"||n<s&&h==="slice"){this.transformCanvas.sx=e/(this.transformCanvas.w/this.renderConfig.dpr);this.transformCanvas.sy=e/(this.transformCanvas.w/this.renderConfig.dpr)}else{this.transformCanvas.sx=r/(this.transformCanvas.h/this.renderConfig.dpr);this.transformCanvas.sy=r/(this.transformCanvas.h/this.renderConfig.dpr)}if(f==="xMid"&&(n<s&&h==="meet"||n>s&&h==="slice")){this.transformCanvas.tx=(e-this.transformCanvas.w*(r/this.transformCanvas.h))/2*this.renderConfig.dpr}else if(f==="xMax"&&(n<s&&h==="meet"||n>s&&h==="slice")){this.transformCanvas.tx=(e-this.transformCanvas.w*(r/this.transformCanvas.h))*this.renderConfig.dpr}else{this.transformCanvas.tx=0}if(u==="YMid"&&(n>s&&h==="meet"||n<s&&h==="slice")){this.transformCanvas.ty=(r-this.transformCanvas.h*(e/this.transformCanvas.w))/2*this.renderConfig.dpr}else if(u==="YMax"&&(n>s&&h==="meet"||n<s&&h==="slice")){this.transformCanvas.ty=(r-this.transformCanvas.h*(e/this.transformCanvas.w))*this.renderConfig.dpr}else{this.transformCanvas.ty=0}}else if(this.renderConfig.preserveAspectRatio==="none"){this.transformCanvas.sx=e/(this.transformCanvas.w/this.renderConfig.dpr);this.transformCanvas.sy=r/(this.transformCanvas.h/this.renderConfig.dpr);this.transformCanvas.tx=0;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.ctxTransform(this.transformCanvas.props);this.canvasContext.beginPath();this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h);this.canvasContext.closePath();this.canvasContext.clip();this.renderFrame(this.renderedFrame,true)};CanvasRendererBase.prototype.destroy=function(){if(this.renderConfig.clearCanvas&&this.animationItem.wrapper){this.animationItem.wrapper.innerText=""}var t;var i=this.layers?this.layers.length:0;for(t=i-1;t>=0;t-=1){if(this.elements[t]&&this.elements[t].destroy){this.elements[t].destroy()}}this.elements.length=0;this.globalData.canvasContext=null;this.animationItem.container=null;this.destroyed=true};CanvasRendererBase.prototype.renderFrame=function(t,i){if(this.renderedFrame===t&&this.renderConfig.clearCanvas===true&&!i||this.destroyed||t===-1){return}this.renderedFrame=t;this.globalData.frameNum=t-this.animationItem._isFirstFrame;this.globalData.frameId+=1;this.globalData._mdf=!this.renderConfig.clearCanvas||i;this.globalData.projectInterface.currentFrame=t;var e;var r=this.layers.length;if(!this.completeLayers){this.checkLayers(t)}for(e=r-1;e>=0;e-=1){if(this.completeLayers||this.elements[e]){this.elements[e].prepareFrame(t-this.layers[e].st)}}if(this.globalData._mdf){if(this.renderConfig.clearCanvas===true){this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h)}else{this.save()}for(e=r-1;e>=0;e-=1){if(this.completeLayers||this.elements[e]){this.elements[e].renderFrame()}}if(this.renderConfig.clearCanvas!==true){this.restore()}}};CanvasRendererBase.prototype.buildItem=function(t){var i=this.elements;if(i[t]||this.layers[t].ty===99){return}var e=this.createItem(this.layers[t],this,this.globalData);i[t]=e;e.initExpressions()};CanvasRendererBase.prototype.checkPendingElements=function(){while(this.pendingElements.length){var t=this.pendingElements.pop();t.checkParenting()}};CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"};CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CanvasContext(){this.opacity=-1;this.transform=createTypedArray("float32",16);this.fillStyle="";this.strokeStyle="";this.lineWidth="";this.lineCap="";this.lineJoin="";this.miterLimit="";this.id=Math.random()}function CVContextData(){this.stack=[];this.cArrPos=0;this.cTr=new Matrix;var t;var i=15;for(t=0;t<i;t+=1){var e=new CanvasContext;this.stack[t]=e}this._length=i;this.nativeContext=null;this.transformMat=new Matrix;this.currentOpacity=1;this.currentFillStyle="";this.appliedFillStyle="";this.currentStrokeStyle="";this.appliedStrokeStyle="";this.currentLineWidth="";this.appliedLineWidth="";this.currentLineCap="";this.appliedLineCap="";this.currentLineJoin="";this.appliedLineJoin="";this.appliedMiterLimit="";this.currentMiterLimit=""}CVContextData.prototype.duplicate=function(){var t=this._length*2;var i=0;for(i=this._length;i<t;i+=1){this.stack[i]=new CanvasContext}this._length=t};CVContextData.prototype.reset=function(){this.cArrPos=0;this.cTr.reset();this.stack[this.cArrPos].opacity=1};CVContextData.prototype.restore=function(t){this.cArrPos-=1;var i=this.stack[this.cArrPos];var e=i.transform;var r;var s=this.cTr.props;for(r=0;r<16;r+=1){s[r]=e[r]}if(t){this.nativeContext.restore();var n=this.stack[this.cArrPos+1];this.appliedFillStyle=n.fillStyle;this.appliedStrokeStyle=n.strokeStyle;this.appliedLineWidth=n.lineWidth;this.appliedLineCap=n.lineCap;this.appliedLineJoin=n.lineJoin;this.appliedMiterLimit=n.miterLimit}this.nativeContext.setTransform(e[0],e[1],e[4],e[5],e[12],e[13]);if(t||i.opacity!==-1&&this.currentOpacity!==i.opacity){this.nativeContext.globalAlpha=i.opacity;this.currentOpacity=i.opacity}this.currentFillStyle=i.fillStyle;this.currentStrokeStyle=i.strokeStyle;this.currentLineWidth=i.lineWidth;this.currentLineCap=i.lineCap;this.currentLineJoin=i.lineJoin;this.currentMiterLimit=i.miterLimit};CVContextData.prototype.save=function(t){if(t){this.nativeContext.save()}var i=this.cTr.props;if(this._length<=this.cArrPos){this.duplicate()}var e=this.stack[this.cArrPos];var r;for(r=0;r<16;r+=1){e.transform[r]=i[r]}this.cArrPos+=1;var s=this.stack[this.cArrPos];s.opacity=e.opacity;s.fillStyle=e.fillStyle;s.strokeStyle=e.strokeStyle;s.lineWidth=e.lineWidth;s.lineCap=e.lineCap;s.lineJoin=e.lineJoin;s.miterLimit=e.miterLimit};CVContextData.prototype.setOpacity=function(t){this.stack[this.cArrPos].opacity=t};CVContextData.prototype.setContext=function(t){this.nativeContext=t};CVContextData.prototype.fillStyle=function(t){if(this.stack[this.cArrPos].fillStyle!==t){this.currentFillStyle=t;this.stack[this.cArrPos].fillStyle=t}};CVContextData.prototype.strokeStyle=function(t){if(this.stack[this.cArrPos].strokeStyle!==t){this.currentStrokeStyle=t;this.stack[this.cArrPos].strokeStyle=t}};CVContextData.prototype.lineWidth=function(t){if(this.stack[this.cArrPos].lineWidth!==t){this.currentLineWidth=t;this.stack[this.cArrPos].lineWidth=t}};CVContextData.prototype.lineCap=function(t){if(this.stack[this.cArrPos].lineCap!==t){this.currentLineCap=t;this.stack[this.cArrPos].lineCap=t}};CVContextData.prototype.lineJoin=function(t){if(this.stack[this.cArrPos].lineJoin!==t){this.currentLineJoin=t;this.stack[this.cArrPos].lineJoin=t}};CVContextData.prototype.miterLimit=function(t){if(this.stack[this.cArrPos].miterLimit!==t){this.currentMiterLimit=t;this.stack[this.cArrPos].miterLimit=t}};CVContextData.prototype.transform=function(t){this.transformMat.cloneFromProps(t);var i=this.cTr;this.transformMat.multiply(i);i.cloneFromProps(this.transformMat.props);var e=i.props;this.nativeContext.setTransform(e[0],e[1],e[4],e[5],e[12],e[13])};CVContextData.prototype.opacity=function(t){var i=this.stack[this.cArrPos].opacity;i*=t<0?0:t;if(this.stack[this.cArrPos].opacity!==i){if(this.currentOpacity!==t){this.nativeContext.globalAlpha=t;this.currentOpacity=t}this.stack[this.cArrPos].opacity=i}};CVContextData.prototype.fill=function(t){if(this.appliedFillStyle!==this.currentFillStyle){this.appliedFillStyle=this.currentFillStyle;this.nativeContext.fillStyle=this.appliedFillStyle}this.nativeContext.fill(t)};CVContextData.prototype.fillRect=function(t,i,e,r){if(this.appliedFillStyle!==this.currentFillStyle){this.appliedFillStyle=this.currentFillStyle;this.nativeContext.fillStyle=this.appliedFillStyle}this.nativeContext.fillRect(t,i,e,r)};CVContextData.prototype.stroke=function(){if(this.appliedStrokeStyle!==this.currentStrokeStyle){this.appliedStrokeStyle=this.currentStrokeStyle;this.nativeContext.strokeStyle=this.appliedStrokeStyle}if(this.appliedLineWidth!==this.currentLineWidth){this.appliedLineWidth=this.currentLineWidth;this.nativeContext.lineWidth=this.appliedLineWidth}if(this.appliedLineCap!==this.currentLineCap){this.appliedLineCap=this.currentLineCap;this.nativeContext.lineCap=this.appliedLineCap}if(this.appliedLineJoin!==this.currentLineJoin){this.appliedLineJoin=this.currentLineJoin;this.nativeContext.lineJoin=this.appliedLineJoin}if(this.appliedMiterLimit!==this.currentMiterLimit){this.appliedMiterLimit=this.currentMiterLimit;this.nativeContext.miterLimit=this.appliedMiterLimit}this.nativeContext.stroke()};function CVCompElement(t,i,e){this.completeLayers=false;this.layers=t.layers;this.pendingElements=[];this.elements=createSizedArray(this.layers.length);this.initElement(t,i,e);this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,i.frameRate,this):{_placeholder:true}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement);CVCompElement.prototype.renderInnerContent=function(){var t=this.canvasContext;t.beginPath();t.moveTo(0,0);t.lineTo(this.data.w,0);t.lineTo(this.data.w,this.data.h);t.lineTo(0,this.data.h);t.lineTo(0,0);t.clip();var i;var e=this.layers.length;for(i=e-1;i>=0;i-=1){if(this.completeLayers||this.elements[i]){this.elements[i].renderFrame()}}};CVCompElement.prototype.destroy=function(){var t;var i=this.layers.length;for(t=i-1;t>=0;t-=1){if(this.elements[t]){this.elements[t].destroy()}}this.layers=null;this.elements=null};CVCompElement.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)};function CanvasRenderer(t,i){this.animationItem=t;this.renderConfig={clearCanvas:i&&i.clearCanvas!==undefined?i.clearCanvas:true,context:i&&i.context||null,progressiveLoad:i&&i.progressiveLoad||false,preserveAspectRatio:i&&i.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:i&&i.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:i&&i.contentVisibility||"visible",className:i&&i.className||"",id:i&&i.id||"",runExpressions:!i||i.runExpressions===undefined||i.runExpressions};this.renderConfig.dpr=i&&i.dpr||1;if(this.animationItem.wrapper){this.renderConfig.dpr=i&&i.dpr||window.devicePixelRatio||1}this.renderedFrame=-1;this.globalData={frameNum:-1,_mdf:false,renderConfig:this.renderConfig,currentGlobalAlpha:-1};this.contextData=new CVContextData;this.elements=[];this.pendingElements=[];this.transformMat=new Matrix;this.completeLayers=false;this.rendererType="canvas";if(this.renderConfig.clearCanvas){this.ctxTransform=this.contextData.transform.bind(this.contextData);this.ctxOpacity=this.contextData.opacity.bind(this.contextData);this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData);this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData);this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData);this.ctxLineCap=this.contextData.lineCap.bind(this.contextData);this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData);this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData);this.ctxFill=this.contextData.fill.bind(this.contextData);this.ctxFillRect=this.contextData.fillRect.bind(this.contextData);this.ctxStroke=this.contextData.stroke.bind(this.contextData);this.save=this.contextData.save.bind(this.contextData)}}extendPrototype([CanvasRendererBase],CanvasRenderer);CanvasRenderer.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function t(){},initRendererElement:function t(){this.baseElement=createTag(this.data.tg||"div");if(this.data.hasMask){this.svgElement=createNS("svg");this.layerElement=createNS("g");this.maskedElement=this.layerElement;this.svgElement.appendChild(this.layerElement);this.baseElement.appendChild(this.svgElement)}else{this.layerElement=this.baseElement}styleDiv(this.baseElement)},createContainerElements:function t(){this.renderableEffectsManager=new CVEffects(this);this.transformedElement=this.baseElement;this.maskedElement=this.layerElement;if(this.data.ln){this.layerElement.setAttribute("id",this.data.ln)}if(this.data.cl){this.layerElement.setAttribute("class",this.data.cl)}if(this.data.bm!==0){this.setBlendMode()}},renderElement:function t(){var i=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var e=this.finalTransform.mat.toCSS();i.transform=e;i.webkitTransform=e}if(this.finalTransform._opMdf){i.opacity=this.finalTransform.mProp.o.v}},renderFrame:function t(){if(this.data.hd||this.hidden){return}this.renderTransform();this.renderRenderable();this.renderElement();this.renderInnerContent();if(this._isFirstFrame){this._isFirstFrame=false}},destroy:function t(){this.layerElement=null;this.transformedElement=null;if(this.matteElement){this.matteElement=null}if(this.maskManager){this.maskManager.destroy();this.maskManager=null}},createRenderableComponents:function t(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function t(){},setMatte:function t(){}};HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement;HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy;HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(t,i,e){this.initElement(t,i,e)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement);HSolidElement.prototype.createContent=function(){var t;if(this.data.hasMask){t=createNS("rect");t.setAttribute("width",this.data.sw);t.setAttribute("height",this.data.sh);t.setAttribute("fill",this.data.sc);this.svgElement.setAttribute("width",this.data.sw);this.svgElement.setAttribute("height",this.data.sh)}else{t=createTag("div");t.style.width=this.data.sw+"px";t.style.height=this.data.sh+"px";t.style.backgroundColor=this.data.sc}this.layerElement.appendChild(t)};function HShapeElement(t,i,e){this.shapes=[];this.shapesData=t.shapes;this.stylesList=[];this.shapeModifiers=[];this.itemsData=[];this.processedElements=[];this.animatedContents=[];this.shapesContainer=createNS("g");this.initElement(t,i,e);this.prevViewData=[];this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement);HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent;HShapeElement.prototype.createContent=function(){var t;this.baseElement.style.fontSize=0;if(this.data.hasMask){this.layerElement.appendChild(this.shapesContainer);t=this.svgElement}else{t=createNS("svg");var i=this.comp.data?this.comp.data:this.globalData.compSize;t.setAttribute("width",i.w);t.setAttribute("height",i.h);t.appendChild(this.shapesContainer);this.layerElement.appendChild(t)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],true);this.filterUniqueShapes();this.shapeCont=t};HShapeElement.prototype.getTransformedPoint=function(t,i){var e;var r=t.length;for(e=0;e<r;e+=1){i=t[e].mProps.v.applyToPointArray(i[0],i[1],0)}return i};HShapeElement.prototype.calculateShapeBoundingBox=function(t,i){var e=t.sh.v;var r=t.transformers;var s;var n=e._length;var a;var h;var o;var f;if(n<=1){return}for(s=0;s<n-1;s+=1){a=this.getTransformedPoint(r,e.v[s]);h=this.getTransformedPoint(r,e.o[s]);o=this.getTransformedPoint(r,e.i[s+1]);f=this.getTransformedPoint(r,e.v[s+1]);this.checkBounds(a,h,o,f,i)}if(e.c){a=this.getTransformedPoint(r,e.v[s]);h=this.getTransformedPoint(r,e.o[s]);o=this.getTransformedPoint(r,e.i[0]);f=this.getTransformedPoint(r,e.v[0]);this.checkBounds(a,h,o,f,i)}};HShapeElement.prototype.checkBounds=function(t,i,e,r,s){this.getBoundsOfCurve(t,i,e,r);var n=this.shapeBoundingBox;s.x=bmMin(n.left,s.x);s.xMax=bmMax(n.right,s.xMax);s.y=bmMin(n.top,s.y);s.yMax=bmMax(n.bottom,s.yMax)};HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0};HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0};HShapeElement.prototype.getBoundsOfCurve=function(t,i,e,r){var s=[[t[0],r[0]],[t[1],r[1]]];for(var n,a,h,o,f,u,l,c=0;c<2;++c){a=6*t[c]-12*i[c]+6*e[c];n=-3*t[c]+9*i[c]-9*e[c]+3*r[c];h=3*i[c]-3*t[c];a|=0;n|=0;h|=0;if(n===0&&a===0);else if(n===0){o=-h/a;if(o>0&&o<1){s[c].push(this.calculateF(o,t,i,e,r,c))}}else{f=a*a-4*h*n;if(f>=0){u=(-a+bmSqrt(f))/(2*n);if(u>0&&u<1)s[c].push(this.calculateF(u,t,i,e,r,c));l=(-a-bmSqrt(f))/(2*n);if(l>0&&l<1)s[c].push(this.calculateF(l,t,i,e,r,c))}}}this.shapeBoundingBox.left=bmMin.apply(null,s[0]);this.shapeBoundingBox.top=bmMin.apply(null,s[1]);this.shapeBoundingBox.right=bmMax.apply(null,s[0]);this.shapeBoundingBox.bottom=bmMax.apply(null,s[1])};HShapeElement.prototype.calculateF=function(t,i,e,r,s,n){return bmPow(1-t,3)*i[n]+3*bmPow(1-t,2)*t*e[n]+3*(1-t)*bmPow(t,2)*r[n]+bmPow(t,3)*s[n]};HShapeElement.prototype.calculateBoundingBox=function(t,i){var e;var r=t.length;for(e=0;e<r;e+=1){if(t[e]&&t[e].sh){this.calculateShapeBoundingBox(t[e],i)}else if(t[e]&&t[e].it){this.calculateBoundingBox(t[e].it,i)}else if(t[e]&&t[e].style&&t[e].w){this.expandStrokeBoundingBox(t[e].w,i)}}};HShapeElement.prototype.expandStrokeBoundingBox=function(t,i){var e=0;if(t.keyframes){for(var r=0;r<t.keyframes.length;r+=1){var s=t.keyframes[r].s;if(s>e){e=s}}e*=t.mult}else{e=t.v*t.mult}i.x-=e;i.xMax+=e;i.y-=e;i.yMax+=e};HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height};HShapeElement.prototype.renderInnerContent=function(){this._renderShapeFrame();if(!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox;var i=999999;t.x=i;t.xMax=-i;t.y=i;t.yMax=-i;this.calculateBoundingBox(this.itemsData,t);t.width=t.xMax<t.x?0:t.xMax-t.x;t.height=t.yMax<t.y?0:t.yMax-t.y;if(this.currentBoxContains(t)){return}var e=false;if(this.currentBBox.w!==t.width){this.currentBBox.w=t.width;this.shapeCont.setAttribute("width",t.width);e=true}if(this.currentBBox.h!==t.height){this.currentBBox.h=t.height;this.shapeCont.setAttribute("height",t.height);e=true}if(e||this.currentBBox.x!==t.x||this.currentBBox.y!==t.y){this.currentBBox.w=t.width;this.currentBBox.h=t.height;this.currentBBox.x=t.x;this.currentBBox.y=t.y;this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var r=this.shapeCont.style;var s="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";r.transform=s;r.webkitTransform=s}}};function HTextElement(t,i,e){this.textSpans=[];this.textPaths=[];this.currentBBox={x:999999,y:-999999,h:0,w:0};this.renderType="svg";this.isMasked=false;this.initElement(t,i,e)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement);HTextElement.prototype.createContent=function(){this.isMasked=this.checkMasks();if(this.isMasked){this.renderType="svg";this.compW=this.comp.data.w;this.compH=this.comp.data.h;this.svgElement.setAttribute("width",this.compW);this.svgElement.setAttribute("height",this.compH);var t=createNS("g");this.maskedElement.appendChild(t);this.innerElem=t}else{this.renderType="html";this.innerElem=this.layerElement}this.checkParenting()};HTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var i=this.innerElem.style;var e=t.fc?this.buildColor(t.fc):"rgba(0,0,0,0)";i.fill=e;i.color=e;if(t.sc){i.stroke=this.buildColor(t.sc);i.strokeWidth=t.sw+"px"}var r=this.globalData.fontManager.getFontByName(t.f);if(!this.globalData.fontManager.chars){i.fontSize=t.finalSize+"px";i.lineHeight=t.finalSize+"px";if(r.fClass){this.innerElem.className=r.fClass}else{i.fontFamily=r.fFamily;var s=t.fWeight;var n=t.fStyle;i.fontStyle=n;i.fontWeight=s}}var a;var h;var o=t.l;h=o.length;var f;var u;var l;var c=this.mHelper;var v;var p="";var m=0;for(a=0;a<h;a+=1){if(this.globalData.fontManager.chars){if(!this.textPaths[m]){f=createNS("path");f.setAttribute("stroke-linecap",lineCapEnum[1]);f.setAttribute("stroke-linejoin",lineJoinEnum[2]);f.setAttribute("stroke-miterlimit","4")}else{f=this.textPaths[m]}if(!this.isMasked){if(this.textSpans[m]){u=this.textSpans[m];l=u.children[0]}else{u=createTag("div");u.style.lineHeight=0;l=createNS("svg");l.appendChild(f);styleDiv(u)}}}else if(!this.isMasked){if(this.textSpans[m]){u=this.textSpans[m];f=this.textPaths[m]}else{u=createTag("span");styleDiv(u);f=createTag("span");styleDiv(f);u.appendChild(f)}}else{f=this.textPaths[m]?this.textPaths[m]:createNS("text")}if(this.globalData.fontManager.chars){var d=this.globalData.fontManager.getCharData(t.finalText[a],r.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily);var y;if(d){y=d.data}else{y=null}c.reset();if(y&&y.shapes&&y.shapes.length){v=y.shapes[0].it;c.scale(t.finalSize/100,t.finalSize/100);p=this.createPathShape(c,v);f.setAttribute("d",p)}if(!this.isMasked){this.innerElem.appendChild(u);if(y&&y.shapes){document.body.appendChild(l);var g=l.getBBox();l.setAttribute("width",g.width+2);l.setAttribute("height",g.height+2);l.setAttribute("viewBox",g.x-1+" "+(g.y-1)+" "+(g.width+2)+" "+(g.height+2));var E=l.style;var S="translate("+(g.x-1)+"px,"+(g.y-1)+"px)";E.transform=S;E.webkitTransform=S;o[a].yOffset=g.y-1}else{l.setAttribute("width",1);l.setAttribute("height",1)}u.appendChild(l)}else{this.innerElem.appendChild(f)}}else{f.textContent=o[a].val;f.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve");if(!this.isMasked){this.innerElem.appendChild(u);var b=f.style;var P="translate3d(0,"+-t.finalSize/1.2+"px,0)";b.transform=P;b.webkitTransform=P}else{this.innerElem.appendChild(f)}}if(!this.isMasked){this.textSpans[m]=u}else{this.textSpans[m]=f}this.textSpans[m].style.display="block";this.textPaths[m]=f;m+=1}while(m<this.textSpans.length){this.textSpans[m].style.display="none";m+=1}};HTextElement.prototype.renderInnerContent=function(){this.validateText();var t;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag){return}if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH);t=this.svgElement.style;var i="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";t.transform=i;t.webkitTransform=i}}this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);if(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag){return}var e;var r;var s=0;var n=this.textAnimator.renderedLetters;var a=this.textProperty.currentData.l;r=a.length;var h;var o;var f;for(e=0;e<r;e+=1){if(a[e].n){s+=1}else{o=this.textSpans[e];f=this.textPaths[e];h=n[s];s+=1;if(h._mdf.m){if(!this.isMasked){o.style.webkitTransform=h.m;o.style.transform=h.m}else{o.setAttribute("transform",h.m)}}o.style.opacity=h.o;if(h.sw&&h._mdf.sw){f.setAttribute("stroke-width",h.sw)}if(h.sc&&h._mdf.sc){f.setAttribute("stroke",h.sc)}if(h.fc&&h._mdf.fc){f.setAttribute("fill",h.fc);f.style.color=h.fc}}}if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var u=this.innerElem.getBBox();if(this.currentBBox.w!==u.width){this.currentBBox.w=u.width;this.svgElement.setAttribute("width",u.width)}if(this.currentBBox.h!==u.height){this.currentBBox.h=u.height;this.svgElement.setAttribute("height",u.height)}var l=1;if(this.currentBBox.w!==u.width+l*2||this.currentBBox.h!==u.height+l*2||this.currentBBox.x!==u.x-l||this.currentBBox.y!==u.y-l){this.currentBBox.w=u.width+l*2;this.currentBBox.h=u.height+l*2;this.currentBBox.x=u.x-l;this.currentBBox.y=u.y-l;this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);t=this.svgElement.style;var c="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";t.transform=c;t.webkitTransform=c}}};function HCameraElement(t,i,e){this.initFrame();this.initBaseData(t,i,e);this.initHierarchy();var r=PropertyFactory.getProp;this.pe=r(this,t.pe,0,0,this);if(t.ks.p.s){this.px=r(this,t.ks.p.x,1,0,this);this.py=r(this,t.ks.p.y,1,0,this);this.pz=r(this,t.ks.p.z,1,0,this)}else{this.p=r(this,t.ks.p,1,0,this)}if(t.ks.a){this.a=r(this,t.ks.a,1,0,this)}if(t.ks.or.k.length&&t.ks.or.k[0].to){var s;var n=t.ks.or.k.length;for(s=0;s<n;s+=1){t.ks.or.k[s].to=null;t.ks.or.k[s].ti=null}}this.or=r(this,t.ks.or,1,degToRads,this);this.or.sh=true;this.rx=r(this,t.ks.rx,0,degToRads,this);this.ry=r(this,t.ks.ry,0,degToRads,this);this.rz=r(this,t.ks.rz,0,degToRads,this);this.mat=new Matrix;this._prevMat=new Matrix;this._isFirstFrame=true;this.finalTransform={mProp:this}}extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement);HCameraElement.prototype.setup=function(){var t;var i=this.comp.threeDElements.length;var e;var r;var s;for(t=0;t<i;t+=1){e=this.comp.threeDElements[t];if(e.type==="3d"){r=e.perspectiveElem.style;s=e.container.style;var n=this.pe.v+"px";var a="0px 0px 0px";var h="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";r.perspective=n;r.webkitPerspective=n;s.transformOrigin=a;s.mozTransformOrigin=a;s.webkitTransformOrigin=a;r.transform=h;r.webkitTransform=h}}};HCameraElement.prototype.createElements=function(){};HCameraElement.prototype.hide=function(){};HCameraElement.prototype.renderFrame=function(){var t=this._isFirstFrame;var i;var e;if(this.hierarchy){e=this.hierarchy.length;for(i=0;i<e;i+=1){t=this.hierarchy[i].finalTransform.mProp._mdf||t}}if(t||this.pe._mdf||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){this.mat.reset();if(this.hierarchy){e=this.hierarchy.length-1;for(i=e;i>=0;i-=1){var r=this.hierarchy[i].finalTransform.mProp;this.mat.translate(-r.p.v[0],-r.p.v[1],r.p.v[2]);this.mat.rotateX(-r.or.v[0]).rotateY(-r.or.v[1]).rotateZ(r.or.v[2]);this.mat.rotateX(-r.rx.v).rotateY(-r.ry.v).rotateZ(r.rz.v);this.mat.scale(1/r.s.v[0],1/r.s.v[1],1/r.s.v[2]);this.mat.translate(r.a.v[0],r.a.v[1],r.a.v[2])}}if(this.p){this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2])}else{this.mat.translate(-this.px.v,-this.py.v,this.pz.v)}if(this.a){var s;if(this.p){s=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]}else{s=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]]}var n=Math.sqrt(Math.pow(s[0],2)+Math.pow(s[1],2)+Math.pow(s[2],2));var a=[s[0]/n,s[1]/n,s[2]/n];var h=Math.sqrt(a[2]*a[2]+a[0]*a[0]);var o=Math.atan2(a[1],h);var f=Math.atan2(a[0],-a[2]);this.mat.rotateY(f).rotateX(-o)}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);var u=!this._prevMat.equals(this.mat);if((u||this.pe._mdf)&&this.comp.threeDElements){e=this.comp.threeDElements.length;var l;var c;var v;for(i=0;i<e;i+=1){l=this.comp.threeDElements[i];if(l.type==="3d"){if(u){var p=this.mat.toCSS();v=l.container.style;v.transform=p;v.webkitTransform=p}if(this.pe._mdf){c=l.perspectiveElem.style;c.perspective=this.pe.v+"px";c.webkitPerspective=this.pe.v+"px"}}}this.mat.clone(this._prevMat)}}this._isFirstFrame=false};HCameraElement.prototype.prepareFrame=function(t){this.prepareProperties(t,true)};HCameraElement.prototype.destroy=function(){};HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(t,i,e){this.assetData=i.getAssetData(t.refId);this.initElement(t,i,e)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement);HImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);var i=new Image;if(this.data.hasMask){this.imageElem=createNS("image");this.imageElem.setAttribute("width",this.assetData.w+"px");this.imageElem.setAttribute("height",this.assetData.h+"px");this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t);this.layerElement.appendChild(this.imageElem);this.baseElement.setAttribute("width",this.assetData.w);this.baseElement.setAttribute("height",this.assetData.h)}else{this.layerElement.appendChild(i)}i.crossOrigin="anonymous";i.src=t;if(this.data.ln){this.baseElement.setAttribute("id",this.data.ln)}};function HybridRendererBase(t,i){this.animationItem=t;this.layers=null;this.renderedFrame=-1;this.renderConfig={className:i&&i.className||"",imagePreserveAspectRatio:i&&i.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(i&&i.hideOnTransparent===false),filterSize:{width:i&&i.filterSize&&i.filterSize.width||"400%",height:i&&i.filterSize&&i.filterSize.height||"400%",x:i&&i.filterSize&&i.filterSize.x||"-100%",y:i&&i.filterSize&&i.filterSize.y||"-100%"}};this.globalData={_mdf:false,frameNum:-1,renderConfig:this.renderConfig};this.pendingElements=[];this.elements=[];this.threeDElements=[];this.destroyed=false;this.camera=null;this.supports3d=true;this.rendererType="html"}extendPrototype([BaseRenderer],HybridRendererBase);HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem;HybridRendererBase.prototype.checkPendingElements=function(){while(this.pendingElements.length){var t=this.pendingElements.pop();t.checkParenting()}};HybridRendererBase.prototype.appendElementInPos=function(t,i){var e=t.getBaseElement();if(!e){return}var r=this.layers[i];if(!r.ddd||!this.supports3d){if(this.threeDElements){this.addTo3dContainer(e,i)}else{var s=0;var n;var a;var h;while(s<i){if(this.elements[s]&&this.elements[s]!==true&&this.elements[s].getBaseElement){a=this.elements[s];h=this.layers[s].ddd?this.getThreeDContainerByPos(s):a.getBaseElement();n=h||n}s+=1}if(n){if(!r.ddd||!this.supports3d){this.layerElement.insertBefore(e,n)}}else if(!r.ddd||!this.supports3d){this.layerElement.appendChild(e)}}}else{this.addTo3dContainer(e,i)}};HybridRendererBase.prototype.createShape=function(t){if(!this.supports3d){return new SVGShapeElement(t,this.globalData,this)}return new HShapeElement(t,this.globalData,this)};HybridRendererBase.prototype.createText=function(t){if(!this.supports3d){return new SVGTextLottieElement(t,this.globalData,this)}return new HTextElement(t,this.globalData,this)};HybridRendererBase.prototype.createCamera=function(t){this.camera=new HCameraElement(t,this.globalData,this);return this.camera};HybridRendererBase.prototype.createImage=function(t){if(!this.supports3d){return new IImageElement(t,this.globalData,this)}return new HImageElement(t,this.globalData,this)};HybridRendererBase.prototype.createSolid=function(t){if(!this.supports3d){return new ISolidElement(t,this.globalData,this)}return new HSolidElement(t,this.globalData,this)};HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull;HybridRendererBase.prototype.getThreeDContainerByPos=function(t){var i=0;var e=this.threeDElements.length;while(i<e){if(this.threeDElements[i].startPos<=t&&this.threeDElements[i].endPos>=t){return this.threeDElements[i].perspectiveElem}i+=1}return null};HybridRendererBase.prototype.createThreeDContainer=function(t,i){var e=createTag("div");var r;var s;styleDiv(e);var n=createTag("div");styleDiv(n);if(i==="3d"){r=e.style;r.width=this.globalData.compSize.w+"px";r.height=this.globalData.compSize.h+"px";var a="50% 50%";r.webkitTransformOrigin=a;r.mozTransformOrigin=a;r.transformOrigin=a;s=n.style;var h="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";s.transform=h;s.webkitTransform=h}e.appendChild(n);var o={container:n,perspectiveElem:e,startPos:t,endPos:t,type:i};this.threeDElements.push(o);return o};HybridRendererBase.prototype.build3dContainers=function(){var t;var i=this.layers.length;var e;var r="";for(t=0;t<i;t+=1){if(this.layers[t].ddd&&this.layers[t].ty!==3){if(r!=="3d"){r="3d";e=this.createThreeDContainer(t,"3d")}e.endPos=Math.max(e.endPos,t)}else{if(r!=="2d"){r="2d";e=this.createThreeDContainer(t,"2d")}e.endPos=Math.max(e.endPos,t)}}i=this.threeDElements.length;for(t=i-1;t>=0;t-=1){this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)}};HybridRendererBase.prototype.addTo3dContainer=function(t,i){var e=0;var r=this.threeDElements.length;while(e<r){if(i<=this.threeDElements[e].endPos){var s=this.threeDElements[e].startPos;var n;while(s<i){if(this.elements[s]&&this.elements[s].getBaseElement){n=this.elements[s].getBaseElement()}s+=1}if(n){this.threeDElements[e].container.insertBefore(t,n)}else{this.threeDElements[e].container.appendChild(t)}break}e+=1}};HybridRendererBase.prototype.configAnimation=function(t){var i=createTag("div");var e=this.animationItem.wrapper;var r=i.style;r.width=t.w+"px";r.height=t.h+"px";this.resizerElem=i;styleDiv(i);r.transformStyle="flat";r.mozTransformStyle="flat";r.webkitTransformStyle="flat";if(this.renderConfig.className){i.setAttribute("class",this.renderConfig.className)}e.appendChild(i);r.overflow="hidden";var s=createNS("svg");s.setAttribute("width","1");s.setAttribute("height","1");styleDiv(s);this.resizerElem.appendChild(s);var n=createNS("defs");s.appendChild(n);this.data=t;this.setupGlobalData(t,s);this.globalData.defs=n;this.layers=t.layers;this.layerElement=this.resizerElem;this.build3dContainers();this.updateContainerSize()};HybridRendererBase.prototype.destroy=function(){if(this.animationItem.wrapper){this.animationItem.wrapper.innerText=""}this.animationItem.container=null;this.globalData.defs=null;var t;var i=this.layers?this.layers.length:0;for(t=0;t<i;t+=1){if(this.elements[t]&&this.elements[t].destroy){this.elements[t].destroy()}}this.elements.length=0;this.destroyed=true;this.animationItem=null};HybridRendererBase.prototype.updateContainerSize=function(){var t=this.animationItem.wrapper.offsetWidth;var i=this.animationItem.wrapper.offsetHeight;var e=t/i;var r=this.globalData.compSize.w/this.globalData.compSize.h;var s;var n;var a;var h;if(r>e){s=t/this.globalData.compSize.w;n=t/this.globalData.compSize.w;a=0;h=(i-this.globalData.compSize.h*(t/this.globalData.compSize.w))/2}else{s=i/this.globalData.compSize.h;n=i/this.globalData.compSize.h;a=(t-this.globalData.compSize.w*(i/this.globalData.compSize.h))/2;h=0}var o=this.resizerElem.style;o.webkitTransform="matrix3d("+s+",0,0,0,0,"+n+",0,0,0,0,1,0,"+a+","+h+",0,1)";o.transform=o.webkitTransform};HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame;HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"};HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"};HybridRendererBase.prototype.initItems=function(){this.buildAllItems();if(this.camera){this.camera.setup()}else{var t=this.globalData.compSize.w;var i=this.globalData.compSize.h;var e;var r=this.threeDElements.length;for(e=0;e<r;e+=1){var s=this.threeDElements[e].perspectiveElem.style;s.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(i,2))+"px";s.perspective=s.webkitPerspective}}};HybridRendererBase.prototype.searchExtraCompositions=function(t){var i;var e=t.length;var r=createTag("div");for(i=0;i<e;i+=1){if(t[i].xt){var s=this.createComp(t[i],r,this.globalData.comp,null);s.initExpressions();this.globalData.projectInterface.registerComposition(s)}}};function HCompElement(t,i,e){this.layers=t.layers;this.supports3d=!t.hasMask;this.completeLayers=false;this.pendingElements=[];this.elements=this.layers?createSizedArray(this.layers.length):[];this.initElement(t,i,e);this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,i.frameRate,this):{_placeholder:true}}extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement);HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements;HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements();if(this.data.hasMask){this.svgElement.setAttribute("width",this.data.w);this.svgElement.setAttribute("height",this.data.h);this.transformedElement=this.baseElement}else{this.transformedElement=this.layerElement}};HCompElement.prototype.addTo3dContainer=function(t,i){var e=0;var r;while(e<i){if(this.elements[e]&&this.elements[e].getBaseElement){r=this.elements[e].getBaseElement()}e+=1}if(r){this.layerElement.insertBefore(t,r)}else{this.layerElement.appendChild(t)}};HCompElement.prototype.createComp=function(t){if(!this.supports3d){return new SVGCompElement(t,this.globalData,this)}return new HCompElement(t,this.globalData,this)};function HybridRenderer(t,i){this.animationItem=t;this.layers=null;this.renderedFrame=-1;this.renderConfig={className:i&&i.className||"",imagePreserveAspectRatio:i&&i.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(i&&i.hideOnTransparent===false),filterSize:{width:i&&i.filterSize&&i.filterSize.width||"400%",height:i&&i.filterSize&&i.filterSize.height||"400%",x:i&&i.filterSize&&i.filterSize.x||"-100%",y:i&&i.filterSize&&i.filterSize.y||"-100%"},runExpressions:!i||i.runExpressions===undefined||i.runExpressions};this.globalData={_mdf:false,frameNum:-1,renderConfig:this.renderConfig};this.pendingElements=[];this.elements=[];this.threeDElements=[];this.destroyed=false;this.camera=null;this.supports3d=true;this.rendererType="html"}extendPrototype([HybridRendererBase],HybridRenderer);HybridRenderer.prototype.createComp=function(t){if(!this.supports3d){return new SVGCompElement(t,this.globalData,this)}return new HCompElement(t,this.globalData,this)};var CompExpressionInterface=function(){return function(t){function i(i){var e=0;var r=t.layers.length;while(e<r){if(t.layers[e].nm===i||t.layers[e].ind===i){return t.elements[e].layerInterface}e+=1}return null}Object.defineProperty(i,"_name",{value:t.data.nm});i.layer=i;i.pixelAspect=1;i.height=t.data.h||t.globalData.compSize.h;i.width=t.data.w||t.globalData.compSize.w;i.pixelAspect=1;i.frameDuration=1/t.globalData.frameRate;i.displayStartTime=0;i.numLayers=t.layers.length;return i}}();function _typeof$2(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof$2=function t(i){return typeof i}}else{_typeof$2=function t(i){return i&&typeof Symbol==="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i}}return _typeof$2(t)}function seedRandom(t,i){var e=this,r=256,s=6,n=52,a="random",h=i.pow(r,s),o=i.pow(2,n),f=o*2,u=r-1;function l(e,n,u){var l=[];n=n===true?{entropy:true}:n||{};var g=m(p(n.entropy?[e,y(t)]:e===null?d():e,3),l);var E=new c(l);var S=function t(){var i=E.g(s),e=h,n=0;while(i<o){i=(i+n)*r;e*=r;n=E.g(1)}while(i>=f){i/=2;e/=2;n>>>=1}return(i+n)/e};S.int32=function(){return E.g(4)|0};S.quick=function(){return E.g(4)/4294967296};S["double"]=S;m(y(E.S),t);return(n.pass||u||function(t,e,r,s){if(s){if(s.S){v(s,E)}t.state=function(){return v(E,{})}}if(r){i[a]=t;return e}else return t})(S,g,"global"in n?n.global:this==i,n.state)}i["seed"+a]=l;function c(t){var i,e=t.length,s=this,n=0,a=s.i=s.j=0,h=s.S=[];if(!e){t=[e++]}while(n<r){h[n]=n++}for(n=0;n<r;n++){h[n]=h[a=u&a+t[n%e]+(i=h[n])];h[a]=i}s.g=function(t){var i,e=0,n=s.i,a=s.j,h=s.S;while(t--){i=h[n=u&n+1];e=e*r+h[u&(h[n]=h[a=u&a+i])+(h[a]=i)]}s.i=n;s.j=a;return e}}function v(t,i){i.i=t.i;i.j=t.j;i.S=t.S.slice();return i}function p(t,i){var e=[],r=_typeof$2(t),s;if(i&&r=="object"){for(s in t){try{e.push(p(t[s],i-1))}catch(t){}}}return e.length?e:r=="string"?t:t+"\0"}function m(t,i){var e=t+"",r,s=0;while(s<e.length){i[u&s]=u&(r^=i[u&s]*19)+e.charCodeAt(s++)}return y(i)}function d(){try{var i=new Uint8Array(r);(e.crypto||e.msCrypto).getRandomValues(i);return y(i)}catch(i){var s=e.navigator,n=s&&s.plugins;return[+new Date,e,n,e.screen,y(t)]}}function y(t){return String.fromCharCode.apply(0,t)}m(i.random(),t)}function initialize$2(t){seedRandom([],t)}var propTypes={SHAPE:"shape"};function _typeof$1(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof$1=function t(i){return typeof i}}else{_typeof$1=function t(i){return i&&typeof Symbol==="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i}}return _typeof$1(t)}var ExpressionManager=function(){var ob={};var Math=BMMath;var window=null;var document=null;var XMLHttpRequest=null;var fetch=null;var frames=null;var _lottieGlobal={};initialize$2(BMMath);function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,i){return t==="number"||i instanceof Number||t==="boolean"||t==="string"}function $bm_neg(t){var i=_typeof$1(t);if(i==="number"||t instanceof Number||i==="boolean"){return-t}if($bm_isInstanceOfArray(t)){var e;var r=t.length;var s=[];for(e=0;e<r;e+=1){s[e]=-t[e]}return s}if(t.propType){return t.v}return-t}var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get;var easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get;var easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(t,i){var e=_typeof$1(t);var r=_typeof$1(i);if(isNumerable(e,t)&&isNumerable(r,i)||e==="string"||r==="string"){return t+i}if($bm_isInstanceOfArray(t)&&isNumerable(r,i)){t=t.slice(0);t[0]+=i;return t}if(isNumerable(e,t)&&$bm_isInstanceOfArray(i)){i=i.slice(0);i[0]=t+i[0];return i}if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(i)){var s=0;var n=t.length;var a=i.length;var h=[];while(s<n||s<a){if((typeof t[s]==="number"||t[s]instanceof Number)&&(typeof i[s]==="number"||i[s]instanceof Number)){h[s]=t[s]+i[s]}else{h[s]=i[s]===undefined?t[s]:t[s]||i[s]}s+=1}return h}return 0}var add=sum;function sub(t,i){var e=_typeof$1(t);var r=_typeof$1(i);if(isNumerable(e,t)&&isNumerable(r,i)){if(e==="string"){t=parseInt(t,10)}if(r==="string"){i=parseInt(i,10)}return t-i}if($bm_isInstanceOfArray(t)&&isNumerable(r,i)){t=t.slice(0);t[0]-=i;return t}if(isNumerable(e,t)&&$bm_isInstanceOfArray(i)){i=i.slice(0);i[0]=t-i[0];return i}if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(i)){var s=0;var n=t.length;var a=i.length;var h=[];while(s<n||s<a){if((typeof t[s]==="number"||t[s]instanceof Number)&&(typeof i[s]==="number"||i[s]instanceof Number)){h[s]=t[s]-i[s]}else{h[s]=i[s]===undefined?t[s]:t[s]||i[s]}s+=1}return h}return 0}function mul(t,i){var e=_typeof$1(t);var r=_typeof$1(i);var s;if(isNumerable(e,t)&&isNumerable(r,i)){return t*i}var n;var a;if($bm_isInstanceOfArray(t)&&isNumerable(r,i)){a=t.length;s=createTypedArray("float32",a);for(n=0;n<a;n+=1){s[n]=t[n]*i}return s}if(isNumerable(e,t)&&$bm_isInstanceOfArray(i)){a=i.length;s=createTypedArray("float32",a);for(n=0;n<a;n+=1){s[n]=t*i[n]}return s}return 0}function div(t,i){var e=_typeof$1(t);var r=_typeof$1(i);var s;if(isNumerable(e,t)&&isNumerable(r,i)){return t/i}var n;var a;if($bm_isInstanceOfArray(t)&&isNumerable(r,i)){a=t.length;s=createTypedArray("float32",a);for(n=0;n<a;n+=1){s[n]=t[n]/i}return s}if(isNumerable(e,t)&&$bm_isInstanceOfArray(i)){a=i.length;s=createTypedArray("float32",a);for(n=0;n<a;n+=1){s[n]=t/i[n]}return s}return 0}function mod(t,i){if(typeof t==="string"){t=parseInt(t,10)}if(typeof i==="string"){i=parseInt(i,10)}return t%i}var $bm_sum=sum;var $bm_sub=sub;var $bm_mul=mul;var $bm_div=div;var $bm_mod=mod;function clamp(t,i,e){if(i>e){var r=e;e=i;i=r}return Math.min(Math.max(t,i),e)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees;var helperLengthArray=[0,0,0,0,0,0];function length(t,i){if(typeof t==="number"||t instanceof Number){i=i||0;return Math.abs(t-i)}if(!i){i=helperLengthArray}var e;var r=Math.min(t.length,i.length);var s=0;for(e=0;e<r;e+=1){s+=Math.pow(i[e]-t[e],2)}return Math.sqrt(s)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var i=t[0];var e=t[1];var r=t[2];var s=Math.max(i,e,r);var n=Math.min(i,e,r);var a;var h;var o=(s+n)/2;if(s===n){a=0;h=0}else{var f=s-n;h=o>.5?f/(2-s-n):f/(s+n);switch(s){case i:a=(e-r)/f+(e<r?6:0);break;case e:a=(r-i)/f+2;break;case r:a=(i-e)/f+4;break}a/=6}return[a,h,o,t[3]]}function hue2rgb(t,i,e){if(e<0)e+=1;if(e>1)e-=1;if(e<1/6)return t+(i-t)*6*e;if(e<1/2)return i;if(e<2/3)return t+(i-t)*(2/3-e)*6;return t}function hslToRgb(t){var i=t[0];var e=t[1];var r=t[2];var s;var n;var a;if(e===0){s=r;a=r;n=r}else{var h=r<.5?r*(1+e):r+e-r*e;var o=2*r-h;s=hue2rgb(o,h,i+1/3);n=hue2rgb(o,h,i);a=hue2rgb(o,h,i-1/3)}return[s,n,a,t[3]]}function linear(t,i,e,r,s){if(r===undefined||s===undefined){r=i;s=e;i=0;e=1}if(e<i){var n=e;e=i;i=n}if(t<=i){return r}if(t>=e){return s}var a=e===i?0:(t-i)/(e-i);if(!r.length){return r+(s-r)*a}var h;var o=r.length;var f=createTypedArray("float32",o);for(h=0;h<o;h+=1){f[h]=r[h]+(s[h]-r[h])*a}return f}function random(t,i){if(i===undefined){if(t===undefined){t=0;i=1}else{i=t;t=undefined}}if(i.length){var e;var r=i.length;if(!t){t=createTypedArray("float32",r)}var s=createTypedArray("float32",r);var n=BMMath.random();for(e=0;e<r;e+=1){s[e]=t[e]+n*(i[e]-t[e])}return s}if(t===undefined){t=0}var a=BMMath.random();return t+a*(i-t)}function createPath(t,i,e,r){var s;var n=t.length;var a=shapePool.newElement();a.setPathData(!!r,n);var h=[0,0];var o;var f;for(s=0;s<n;s+=1){o=i&&i[s]?i[s]:h;f=e&&e[s]?e[s]:h;a.setTripleAt(t[s][0],t[s][1],f[0]+t[s][0],f[1]+t[s][1],o[0]+t[s][0],o[1]+t[s][1],s,true)}return a}function initiateExpression(elem,data,property){function noOp(t){return t}if(!elem.globalData.renderConfig.runExpressions){return noOp}var val=data.x;var needsVelocity=/velocity(?![\w\d])/.test(val);var _needsRandom=val.indexOf("random")!==-1;var elemType=elem.data.ty;var transform;var $bm_transform;var content;var effect;var thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime;Object.defineProperty(thisProperty,"value",{get:function t(){return thisProperty.v}});elem.comp.frameDuration=1/elem.comp.globalData.frameRate;elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate;var outPoint=elem.data.op/elem.comp.globalData.frameRate;var width=elem.data.sw?elem.data.sw:0;var height=elem.data.sh?elem.data.sh:0;var name=elem.data.nm;var loopIn;var loop_in;var loopOut;var loop_out;var smooth;var toWorld;var fromWorld;var fromComp;var toComp;var fromCompToSurface;var position;var rotation;var anchorPoint;var scale;var thisLayer;var thisComp;var mask;var valueAtTime;var velocityAtTime;var scoped_bm_rt;var expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0];var numKeys=property.kf?data.k.length:0;var active=!this.data||this.data.hd!==true;var wiggle=function t(i,e){var r;var s;var n=this.pv.length?this.pv.length:1;var a=createTypedArray("float32",n);i=5;var h=Math.floor(time*i);r=0;s=0;while(r<h){for(s=0;s<n;s+=1){a[s]+=-e+e*2*BMMath.random()}r+=1}var o=time*i;var f=o-Math.floor(o);var u=createTypedArray("float32",n);if(n>1){for(s=0;s<n;s+=1){u[s]=this.pv[s]+a[s]+(-e+e*2*BMMath.random())*f}return u}return this.pv+a[0]+(-e+e*2*BMMath.random())*f}.bind(this);if(thisProperty.loopIn){loopIn=thisProperty.loopIn.bind(thisProperty);loop_in=loopIn}if(thisProperty.loopOut){loopOut=thisProperty.loopOut.bind(thisProperty);loop_out=loopOut}if(thisProperty.smooth){smooth=thisProperty.smooth.bind(thisProperty)}function loopInDuration(t,i){return loopIn(t,i,true)}function loopOutDuration(t,i){return loopOut(t,i,true)}if(this.getValueAtTime){valueAtTime=this.getValueAtTime.bind(this)}if(this.getVelocityAtTime){velocityAtTime=this.getVelocityAtTime.bind(this)}var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(t,i){var e=[i[0]-t[0],i[1]-t[1],i[2]-t[2]];var r=Math.atan2(e[0],Math.sqrt(e[1]*e[1]+e[2]*e[2]))/degToRads;var s=-Math.atan2(e[1],e[2])/degToRads;return[s,r,0]}function easeOut(t,i,e,r,s){return applyEase(easeOutBez,t,i,e,r,s)}function easeIn(t,i,e,r,s){return applyEase(easeInBez,t,i,e,r,s)}function ease(t,i,e,r,s){return applyEase(easeInOutBez,t,i,e,r,s)}function applyEase(t,i,e,r,s,n){if(s===undefined){s=e;n=r}else{i=(i-e)/(r-e)}if(i>1){i=1}else if(i<0){i=0}var a=t(i);if($bm_isInstanceOfArray(s)){var h;var o=s.length;var f=createTypedArray("float32",o);for(h=0;h<o;h+=1){f[h]=(n[h]-s[h])*a+s[h]}return f}return(n-s)*a+s}function nearestKey(t){var i;var e=data.k.length;var r;var s;if(!data.k.length||typeof data.k[0]==="number"){r=0;s=0}else{r=-1;t*=elem.comp.globalData.frameRate;if(t<data.k[0].t){r=1;s=data.k[0].t}else{for(i=0;i<e-1;i+=1){if(t===data.k[i].t){r=i+1;s=data.k[i].t;break}else if(t>data.k[i].t&&t<data.k[i+1].t){if(t-data.k[i].t>data.k[i+1].t-t){r=i+2;s=data.k[i+1].t}else{r=i+1;s=data.k[i].t}break}}if(r===-1){r=i+1;s=data.k[i].t}}}var n={};n.index=r;n.time=s/elem.comp.globalData.frameRate;return n}function key(t){var i;var e;var r;if(!data.k.length||typeof data.k[0]==="number"){throw new Error("The property has no keyframe at index "+t)}t-=1;i={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var s=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;r=s.length;for(e=0;e<r;e+=1){i[e]=s[e];i.value[e]=s[e]}return i}function framesToTime(t,i){if(!i){i=elem.comp.globalData.frameRate}return t/i}function timeToFrames(t,i){if(!t&&t!==0){t=time}if(!i){i=elem.comp.globalData.frameRate}return t*i}function seedRandom(t){BMMath.seedrandom(randSeed+t)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(t,i){if(typeof value==="string"){if(i===undefined){return value.substring(t)}return value.substring(t,i)}return""}function substr(t,i){if(typeof value==="string"){if(i===undefined){return value.substr(t)}return value.substr(t,i)}return""}function posterizeTime(t){time=t===0?0:Math.floor(time*t)/t;value=valueAtTime(time)}var time;var velocity;var value;var text;var textIndex;var textTotal;var selectorValue;var index=elem.data.ind;var randSeed=Math.floor(Math.random()*1e6);var globalData=elem.globalData;function executeExpression(t){value=t;if(this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"){return value}if(this.propType==="textSelector"){textIndex=this.textIndex;textTotal=this.textTotal;selectorValue=this.selectorValue}if(!thisLayer){text=elem.layerInterface.text;thisLayer=elem.layerInterface;thisComp=elem.comp.compInterface;toWorld=thisLayer.toWorld.bind(thisLayer);fromWorld=thisLayer.fromWorld.bind(thisLayer);fromComp=thisLayer.fromComp.bind(thisLayer);toComp=thisLayer.toComp.bind(thisLayer);mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null;fromCompToSurface=fromComp}if(!transform){transform=elem.layerInterface("ADBE Transform Group");$bm_transform=transform;if(transform){anchorPoint=transform.anchorPoint}}if(elemType===4&&!content){content=thisLayer("ADBE Root Vectors Group")}if(!effect){effect=thisLayer(4)}time=this.comp.renderedFrame/this.comp.globalData.frameRate;if(_needsRandom){seedRandom(randSeed+time)}if(needsVelocity){velocity=velocityAtTime(time)}expression_function();this.frameExpressionId=elem.globalData.frameId;scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt;return scoped_bm_rt}executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData];return executeExpression}ob.initiateExpression=initiateExpression;ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal];ob.resetFrame=resetFrame;return ob}();var Expressions=function(){var t={};t.initExpressions=i;t.resetFrame=ExpressionManager.resetFrame;function i(t){var i=0;var e=[];function r(){i+=1}function s(){i-=1;if(i===0){a()}}function n(t){if(e.indexOf(t)===-1){e.push(t)}}function a(){var t;var i=e.length;for(t=0;t<i;t+=1){e[t].release()}e.length=0}t.renderer.compInterface=CompExpressionInterface(t.renderer);t.renderer.globalData.projectInterface.registerComposition(t.renderer);t.renderer.globalData.pushExpression=r;t.renderer.globalData.popExpression=s;t.renderer.globalData.registerExpressionProperty=n}return t}();var MaskManagerInterface=function(){function t(t,i){this._mask=t;this._data=i}Object.defineProperty(t.prototype,"maskPath",{get:function t(){if(this._mask.prop.k){this._mask.prop.getValue()}return this._mask.prop}});Object.defineProperty(t.prototype,"maskOpacity",{get:function t(){if(this._mask.op.k){this._mask.op.getValue()}return this._mask.op.v*100}});var i=function i(e){var r=createSizedArray(e.viewData.length);var s;var n=e.viewData.length;for(s=0;s<n;s+=1){r[s]=new t(e.viewData[s],e.masksProperties[s])}var a=function t(i){s=0;while(s<n){if(e.masksProperties[s].nm===i){return r[s]}s+=1}return null};return a};return i}();var ExpressionPropertyInterface=function(){var t={pv:0,v:0,mult:1};var i={pv:[0,0,0],v:[0,0,0],mult:1};function e(t,i,e){Object.defineProperty(t,"velocity",{get:function t(){return i.getVelocityAtTime(i.comp.currentFrame)}});t.numKeys=i.keyframes?i.keyframes.length:0;t.key=function(r){if(!t.numKeys){return 0}var s="";if("s"in i.keyframes[r-1]){s=i.keyframes[r-1].s}else if("e"in i.keyframes[r-2]){s=i.keyframes[r-2].e}else{s=i.keyframes[r-2].s}var n=e==="unidimensional"?new Number(s):Object.assign({},s);n.time=i.keyframes[r-1].t/i.elem.comp.globalData.frameRate;n.value=e==="unidimensional"?s[0]:s;return n};t.valueAtTime=i.getValueAtTime;t.speedAtTime=i.getSpeedAtTime;t.velocityAtTime=i.getVelocityAtTime;t.propertyGroup=i.propertyGroup}function r(i){if(!i||!("pv"in i)){i=t}var r=1/i.mult;var s=i.pv*r;var n=new Number(s);n.value=s;e(n,i,"unidimensional");return function(){if(i.k){i.getValue()}s=i.v*r;if(n.value!==s){n=new Number(s);n.value=s;e(n,i,"unidimensional")}return n}}function s(t){if(!t||!("pv"in t)){t=i}var r=1/t.mult;var s=t.data&&t.data.l||t.pv.length;var n=createTypedArray("float32",s);var a=createTypedArray("float32",s);n.value=a;e(n,t,"multidimensional");return function(){if(t.k){t.getValue()}for(var i=0;i<s;i+=1){a[i]=t.v[i]*r;n[i]=a[i]}return n}}function n(){return t}return function(t){if(!t){return n}if(t.propType==="unidimensional"){return r(t)}return s(t)}}();var TransformExpressionInterface=function(){return function(t){function i(t){switch(t){case"scale":case"Scale":case"ADBE Scale":case 6:return i.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return i.rotation;case"ADBE Rotate X":return i.xRotation;case"ADBE Rotate Y":return i.yRotation;case"position":case"Position":case"ADBE Position":case 2:return i.position;case"ADBE Position_0":return i.xPosition;case"ADBE Position_1":return i.yPosition;case"ADBE Position_2":return i.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return i.anchorPoint;case"opacity":case"Opacity":case 11:return i.opacity;default:return null}}Object.defineProperty(i,"rotation",{get:ExpressionPropertyInterface(t.r||t.rz)});Object.defineProperty(i,"zRotation",{get:ExpressionPropertyInterface(t.rz||t.r)});Object.defineProperty(i,"xRotation",{get:ExpressionPropertyInterface(t.rx)});Object.defineProperty(i,"yRotation",{get:ExpressionPropertyInterface(t.ry)});Object.defineProperty(i,"scale",{get:ExpressionPropertyInterface(t.s)});var e;var r;var s;var n;if(t.p){n=ExpressionPropertyInterface(t.p)}else{e=ExpressionPropertyInterface(t.px);r=ExpressionPropertyInterface(t.py);if(t.pz){s=ExpressionPropertyInterface(t.pz)}}Object.defineProperty(i,"position",{get:function i(){if(t.p){return n()}return[e(),r(),s?s():0]}});Object.defineProperty(i,"xPosition",{get:ExpressionPropertyInterface(t.px)});Object.defineProperty(i,"yPosition",{get:ExpressionPropertyInterface(t.py)});Object.defineProperty(i,"zPosition",{get:ExpressionPropertyInterface(t.pz)});Object.defineProperty(i,"anchorPoint",{get:ExpressionPropertyInterface(t.a)});Object.defineProperty(i,"opacity",{get:ExpressionPropertyInterface(t.o)});Object.defineProperty(i,"skew",{get:ExpressionPropertyInterface(t.sk)});Object.defineProperty(i,"skewAxis",{get:ExpressionPropertyInterface(t.sa)});Object.defineProperty(i,"orientation",{get:ExpressionPropertyInterface(t.or)});return i}}();var LayerExpressionInterface=function(){function t(t){var i=new Matrix;if(t!==undefined){var e=this._elem.finalTransform.mProp.getValueAtTime(t);e.clone(i)}else{var r=this._elem.finalTransform.mProp;r.applyToMatrix(i)}return i}function i(t,i){var e=this.getMatrix(i);e.props[12]=0;e.props[13]=0;e.props[14]=0;return this.applyPoint(e,t)}function e(t,i){var e=this.getMatrix(i);return this.applyPoint(e,t)}function r(t,i){var e=this.getMatrix(i);e.props[12]=0;e.props[13]=0;e.props[14]=0;return this.invertPoint(e,t)}function s(t,i){var e=this.getMatrix(i);return this.invertPoint(e,t)}function n(t,i){if(this._elem.hierarchy&&this._elem.hierarchy.length){var e;var r=this._elem.hierarchy.length;for(e=0;e<r;e+=1){this._elem.hierarchy[e].finalTransform.mProp.applyToMatrix(t)}}return t.applyToPointArray(i[0],i[1],i[2]||0)}function a(t,i){if(this._elem.hierarchy&&this._elem.hierarchy.length){var e;var r=this._elem.hierarchy.length;for(e=0;e<r;e+=1){this._elem.hierarchy[e].finalTransform.mProp.applyToMatrix(t)}}return t.inversePoint(i)}function h(t){var i=new Matrix;i.reset();this._elem.finalTransform.mProp.applyToMatrix(i);if(this._elem.hierarchy&&this._elem.hierarchy.length){var e;var r=this._elem.hierarchy.length;for(e=0;e<r;e+=1){this._elem.hierarchy[e].finalTransform.mProp.applyToMatrix(i)}return i.inversePoint(t)}return i.inversePoint(t)}function o(){return[1,1,1,1]}return function(f){var u;function l(t){v.mask=new MaskManagerInterface(t,f)}function c(t){v.effect=t}function v(t){switch(t){case"ADBE Root Vectors Group":case"Contents":case 2:return v.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return u;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return v.effect;case"ADBE Text Properties":return v.textInterface;default:return null}}v.getMatrix=t;v.invertPoint=a;v.applyPoint=n;v.toWorld=e;v.toWorldVec=i;v.fromWorld=s;v.fromWorldVec=r;v.toComp=e;v.fromComp=h;v.sampleImage=o;v.sourceRectAtTime=f.sourceRectAtTime.bind(f);v._elem=f;u=TransformExpressionInterface(f.finalTransform.mProp);var p=getDescriptor(u,"anchorPoint");Object.defineProperties(v,{hasParent:{get:function t(){return f.hierarchy.length}},parent:{get:function t(){return f.hierarchy[0].layerInterface}},rotation:getDescriptor(u,"rotation"),scale:getDescriptor(u,"scale"),position:getDescriptor(u,"position"),opacity:getDescriptor(u,"opacity"),anchorPoint:p,anchor_point:p,transform:{get:function t(){return u}},active:{get:function t(){return f.isInRange}}});v.startTime=f.data.st;v.index=f.data.ind;v.source=f.data.refId;v.height=f.data.ty===0?f.data.h:100;v.width=f.data.ty===0?f.data.w:100;v.inPoint=f.data.ip/f.comp.globalData.frameRate;v.outPoint=f.data.op/f.comp.globalData.frameRate;v._name=f.data.nm;v.registerMaskInterface=l;v.registerEffectsInterface=c;return v}}();var propertyGroupFactory=function(){return function(t,i){return function(e){e=e===undefined?1:e;if(e<=0){return t}return i(e-1)}}}();var PropertyInterface=function(){return function(t,i){var e={_name:t};function r(t){t=t===undefined?1:t;if(t<=0){return e}return i(t-1)}return r}}();var EffectsExpressionInterface=function(){var t={createEffectsInterface:i};function i(t,i){if(t.effectsManager){var r=[];var s=t.data.ef;var n;var a=t.effectsManager.effectElements.length;for(n=0;n<a;n+=1){r.push(e(s[n],t.effectsManager.effectElements[n],i,t))}var h=t.data.ef||[];var o=function t(i){n=0;a=h.length;while(n<a){if(i===h[n].nm||i===h[n].mn||i===h[n].ix){return r[n]}n+=1}return null};Object.defineProperty(o,"numProperties",{get:function t(){return h.length}});return o}return null}function e(t,i,s,n){function a(i){var e=t.ef;var r=0;var s=e.length;while(r<s){if(i===e[r].nm||i===e[r].mn||i===e[r].ix){if(e[r].ty===5){return o[r]}return o[r]()}r+=1}throw new Error}var h=propertyGroupFactory(a,s);var o=[];var f;var u=t.ef.length;for(f=0;f<u;f+=1){if(t.ef[f].ty===5){o.push(e(t.ef[f],i.effectElements[f],i.effectElements[f].propertyGroup,n))}else{o.push(r(i.effectElements[f],t.ef[f].ty,n,h))}}if(t.mn==="ADBE Color Control"){Object.defineProperty(a,"color",{get:function t(){return o[0]()}})}Object.defineProperties(a,{numProperties:{get:function i(){return t.np}},_name:{value:t.nm},propertyGroup:{value:h}});a.enabled=t.en!==0;a.active=a.enabled;return a}function r(t,i,e,r){var s=ExpressionPropertyInterface(t.p);function n(){if(i===10){return e.comp.compInterface(t.p.v)}return s()}if(t.p.setGroupProperty){t.p.setGroupProperty(PropertyInterface("",r))}return n}return t}();var ShapePathInterface=function(){return function t(i,e,r){var s=e.sh;function n(t){if(t==="Shape"||t==="shape"||t==="Path"||t==="path"||t==="ADBE Vector Shape"||t===2){return n.path}return null}var a=propertyGroupFactory(n,r);s.setGroupProperty(PropertyInterface("Path",a));Object.defineProperties(n,{path:{get:function t(){if(s.k){s.getValue()}return s}},shape:{get:function t(){if(s.k){s.getValue()}return s}},_name:{value:i.nm},ix:{value:i.ix},propertyIndex:{value:i.ix},mn:{value:i.mn},propertyGroup:{value:r}});return n}}();var ShapeExpressionInterface=function(){function t(t,i,o){var p=[];var m;var d=t?t.length:0;for(m=0;m<d;m+=1){if(t[m].ty==="gr"){p.push(e(t[m],i[m],o))}else if(t[m].ty==="fl"){p.push(r(t[m],i[m],o))}else if(t[m].ty==="st"){p.push(a(t[m],i[m],o))}else if(t[m].ty==="tm"){p.push(h(t[m],i[m],o))}else if(t[m].ty==="tr");else if(t[m].ty==="el"){p.push(f(t[m],i[m],o))}else if(t[m].ty==="sr"){p.push(u(t[m],i[m],o))}else if(t[m].ty==="sh"){p.push(ShapePathInterface(t[m],i[m],o))}else if(t[m].ty==="rc"){p.push(l(t[m],i[m],o))}else if(t[m].ty==="rd"){p.push(c(t[m],i[m],o))}else if(t[m].ty==="rp"){p.push(v(t[m],i[m],o))}else if(t[m].ty==="gf"){p.push(s(t[m],i[m],o))}else{p.push(n())}}return p}function i(i,e,r){var s;var n=function t(i){var e=0;var r=s.length;while(e<r){if(s[e]._name===i||s[e].mn===i||s[e].propertyIndex===i||s[e].ix===i||s[e].ind===i){return s[e]}e+=1}if(typeof i==="number"){return s[i-1]}return null};n.propertyGroup=propertyGroupFactory(n,r);s=t(i.it,e.it,n.propertyGroup);n.numProperties=s.length;var a=o(i.it[i.it.length-1],e.it[e.it.length-1],n.propertyGroup);n.transform=a;n.propertyIndex=i.cix;n._name=i.nm;return n}function e(t,e,r){var s=function t(i){switch(i){case"ADBE Vectors Group":case"Contents":case 2:return s.content;default:return s.transform}};s.propertyGroup=propertyGroupFactory(s,r);var n=i(t,e,s.propertyGroup);var a=o(t.it[t.it.length-1],e.it[e.it.length-1],s.propertyGroup);s.content=n;s.transform=a;Object.defineProperty(s,"_name",{get:function i(){return t.nm}});s.numProperties=t.np;s.propertyIndex=t.ix;s.nm=t.nm;s.mn=t.mn;return s}function r(t,i,e){function r(t){if(t==="Color"||t==="color"){return r.color}if(t==="Opacity"||t==="opacity"){return r.opacity}return null}Object.defineProperties(r,{color:{get:ExpressionPropertyInterface(i.c)},opacity:{get:ExpressionPropertyInterface(i.o)},_name:{value:t.nm},mn:{value:t.mn}});i.c.setGroupProperty(PropertyInterface("Color",e));i.o.setGroupProperty(PropertyInterface("Opacity",e));return r}function s(t,i,e){function r(t){if(t==="Start Point"||t==="start point"){return r.startPoint}if(t==="End Point"||t==="end point"){return r.endPoint}if(t==="Opacity"||t==="opacity"){return r.opacity}return null}Object.defineProperties(r,{startPoint:{get:ExpressionPropertyInterface(i.s)},endPoint:{get:ExpressionPropertyInterface(i.e)},opacity:{get:ExpressionPropertyInterface(i.o)},type:{get:function t(){return"a"}},_name:{value:t.nm},mn:{value:t.mn}});i.s.setGroupProperty(PropertyInterface("Start Point",e));i.e.setGroupProperty(PropertyInterface("End Point",e));i.o.setGroupProperty(PropertyInterface("Opacity",e));return r}function n(){function t(){return null}return t}function a(t,i,e){var r=propertyGroupFactory(f,e);var s=propertyGroupFactory(o,r);function n(e){Object.defineProperty(o,t.d[e].nm,{get:ExpressionPropertyInterface(i.d.dataProps[e].p)})}var a;var h=t.d?t.d.length:0;var o={};for(a=0;a<h;a+=1){n(a);i.d.dataProps[a].p.setGroupProperty(s)}function f(t){if(t==="Color"||t==="color"){return f.color}if(t==="Opacity"||t==="opacity"){return f.opacity}if(t==="Stroke Width"||t==="stroke width"){return f.strokeWidth}return null}Object.defineProperties(f,{color:{get:ExpressionPropertyInterface(i.c)},opacity:{get:ExpressionPropertyInterface(i.o)},strokeWidth:{get:ExpressionPropertyInterface(i.w)},dash:{get:function t(){return o}},_name:{value:t.nm},mn:{value:t.mn}});i.c.setGroupProperty(PropertyInterface("Color",r));i.o.setGroupProperty(PropertyInterface("Opacity",r));i.w.setGroupProperty(PropertyInterface("Stroke Width",r));return f}function h(t,i,e){function r(i){if(i===t.e.ix||i==="End"||i==="end"){return r.end}if(i===t.s.ix){return r.start}if(i===t.o.ix){return r.offset}return null}var s=propertyGroupFactory(r,e);r.propertyIndex=t.ix;i.s.setGroupProperty(PropertyInterface("Start",s));i.e.setGroupProperty(PropertyInterface("End",s));i.o.setGroupProperty(PropertyInterface("Offset",s));r.propertyIndex=t.ix;r.propertyGroup=e;Object.defineProperties(r,{start:{get:ExpressionPropertyInterface(i.s)},end:{get:ExpressionPropertyInterface(i.e)},offset:{get:ExpressionPropertyInterface(i.o)},_name:{value:t.nm}});r.mn=t.mn;return r}function o(t,i,e){function r(i){if(t.a.ix===i||i==="Anchor Point"){return r.anchorPoint}if(t.o.ix===i||i==="Opacity"){return r.opacity}if(t.p.ix===i||i==="Position"){return r.position}if(t.r.ix===i||i==="Rotation"||i==="ADBE Vector Rotation"){return r.rotation}if(t.s.ix===i||i==="Scale"){return r.scale}if(t.sk&&t.sk.ix===i||i==="Skew"){return r.skew}if(t.sa&&t.sa.ix===i||i==="Skew Axis"){return r.skewAxis}return null}var s=propertyGroupFactory(r,e);i.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",s));i.transform.mProps.p.setGroupProperty(PropertyInterface("Position",s));i.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",s));i.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",s));i.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",s));if(i.transform.mProps.sk){i.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",s));i.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",s))}i.transform.op.setGroupProperty(PropertyInterface("Opacity",s));Object.defineProperties(r,{opacity:{get:ExpressionPropertyInterface(i.transform.mProps.o)},position:{get:ExpressionPropertyInterface(i.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(i.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(i.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(i.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(i.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(i.transform.mProps.sa)},_name:{value:t.nm}});r.ty="tr";r.mn=t.mn;r.propertyGroup=e;return r}function f(t,i,e){function r(i){if(t.p.ix===i){return r.position}if(t.s.ix===i){return r.size}return null}var s=propertyGroupFactory(r,e);r.propertyIndex=t.ix;var n=i.sh.ty==="tm"?i.sh.prop:i.sh;n.s.setGroupProperty(PropertyInterface("Size",s));n.p.setGroupProperty(PropertyInterface("Position",s));Object.defineProperties(r,{size:{get:ExpressionPropertyInterface(n.s)},position:{get:ExpressionPropertyInterface(n.p)},_name:{value:t.nm}});r.mn=t.mn;return r}function u(t,i,e){function r(i){if(t.p.ix===i){return r.position}if(t.r.ix===i){return r.rotation}if(t.pt.ix===i){return r.points}if(t.or.ix===i||i==="ADBE Vector Star Outer Radius"){return r.outerRadius}if(t.os.ix===i){return r.outerRoundness}if(t.ir&&(t.ir.ix===i||i==="ADBE Vector Star Inner Radius")){return r.innerRadius}if(t.is&&t.is.ix===i){return r.innerRoundness}return null}var s=propertyGroupFactory(r,e);var n=i.sh.ty==="tm"?i.sh.prop:i.sh;r.propertyIndex=t.ix;n.or.setGroupProperty(PropertyInterface("Outer Radius",s));n.os.setGroupProperty(PropertyInterface("Outer Roundness",s));n.pt.setGroupProperty(PropertyInterface("Points",s));n.p.setGroupProperty(PropertyInterface("Position",s));n.r.setGroupProperty(PropertyInterface("Rotation",s));if(t.ir){n.ir.setGroupProperty(PropertyInterface("Inner Radius",s));n.is.setGroupProperty(PropertyInterface("Inner Roundness",s))}Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(n.p)},rotation:{get:ExpressionPropertyInterface(n.r)},points:{get:ExpressionPropertyInterface(n.pt)},outerRadius:{get:ExpressionPropertyInterface(n.or)},outerRoundness:{get:ExpressionPropertyInterface(n.os)},innerRadius:{get:ExpressionPropertyInterface(n.ir)},innerRoundness:{get:ExpressionPropertyInterface(n.is)},_name:{value:t.nm}});r.mn=t.mn;return r}function l(t,i,e){function r(i){if(t.p.ix===i){return r.position}if(t.r.ix===i){return r.roundness}if(t.s.ix===i||i==="Size"||i==="ADBE Vector Rect Size"){return r.size}return null}var s=propertyGroupFactory(r,e);var n=i.sh.ty==="tm"?i.sh.prop:i.sh;r.propertyIndex=t.ix;n.p.setGroupProperty(PropertyInterface("Position",s));n.s.setGroupProperty(PropertyInterface("Size",s));n.r.setGroupProperty(PropertyInterface("Rotation",s));Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(n.p)},roundness:{get:ExpressionPropertyInterface(n.r)},size:{get:ExpressionPropertyInterface(n.s)},_name:{value:t.nm}});r.mn=t.mn;return r}function c(t,i,e){function r(i){if(t.r.ix===i||i==="Round Corners 1"){return r.radius}return null}var s=propertyGroupFactory(r,e);var n=i;r.propertyIndex=t.ix;n.rd.setGroupProperty(PropertyInterface("Radius",s));Object.defineProperties(r,{radius:{get:ExpressionPropertyInterface(n.rd)},_name:{value:t.nm}});r.mn=t.mn;return r}function v(t,i,e){function r(i){if(t.c.ix===i||i==="Copies"){return r.copies}if(t.o.ix===i||i==="Offset"){return r.offset}return null}var s=propertyGroupFactory(r,e);var n=i;r.propertyIndex=t.ix;n.c.setGroupProperty(PropertyInterface("Copies",s));n.o.setGroupProperty(PropertyInterface("Offset",s));Object.defineProperties(r,{copies:{get:ExpressionPropertyInterface(n.c)},offset:{get:ExpressionPropertyInterface(n.o)},_name:{value:t.nm}});r.mn=t.mn;return r}return function(i,e,r){var s;function n(t){if(typeof t==="number"){t=t===undefined?1:t;if(t===0){return r}return s[t-1]}var i=0;var e=s.length;while(i<e){if(s[i]._name===t){return s[i]}i+=1}return null}function a(){return r}n.propertyGroup=propertyGroupFactory(n,a);s=t(i,e,n.propertyGroup);n.numProperties=s.length;n._name="Contents";return n}}();var TextExpressionInterface=function(){return function(t){var i;function e(t){switch(t){case"ADBE Text Document":return e.sourceText;default:return null}}Object.defineProperty(e,"sourceText",{get:function e(){t.textProperty.getValue();var r=t.textProperty.currentData.t;if(!i||r!==i.value){i=new String(r);i.value=r||new String(r);Object.defineProperty(i,"style",{get:function i(){return{fillColor:t.textProperty.currentData.fc}}})}return i}});return e}}();function _typeof(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function t(i){return typeof i}}else{_typeof=function t(i){return i&&typeof Symbol==="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i}}return _typeof(t)}var FootageInterface=function(){var t=function t(i){var e="";var r=i.getFootageData();function s(){e="";r=i.getFootageData();return n}function n(t){if(r[t]){e=t;r=r[t];if(_typeof(r)==="object"){return n}return r}var i=t.indexOf(e);if(i!==-1){var s=parseInt(t.substr(i+e.length),10);r=r[s];if(_typeof(r)==="object"){return n}return r}return""}return s};var i=function i(e){function r(t){if(t==="Outline"){return r.outlineInterface()}return null}r._name="Outline";r.outlineInterface=t(e);return r};return function(t){function e(t){if(t==="Data"){return e.dataInterface}return null}e._name="Data";e.dataInterface=i(t);return e}}();var interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(t){return interfaces[t]||null}var expressionHelpers=function(){function t(t,i,e){if(i.x){e.k=true;e.x=true;e.initiateExpression=ExpressionManager.initiateExpression;e.effectsSequence.push(e.initiateExpression(t,i,e).bind(e))}}function i(t){t*=this.elem.globalData.frameRate;t-=this.offsetTime;if(t!==this._cachingAtTime.lastFrame){this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<t?this._cachingAtTime.lastIndex:0;this._cachingAtTime.value=this.interpolateValue(t,this._cachingAtTime);this._cachingAtTime.lastFrame=t}return this._cachingAtTime.value}function e(t){var i=-.01;var e=this.getValueAtTime(t);var r=this.getValueAtTime(t+i);var s=0;if(e.length){var n;for(n=0;n<e.length;n+=1){s+=Math.pow(r[n]-e[n],2)}s=Math.sqrt(s)*100}else{s=0}return s}function r(t){if(this.vel!==undefined){return this.vel}var i=-.001;var e=this.getValueAtTime(t);var r=this.getValueAtTime(t+i);var s;if(e.length){s=createTypedArray("float32",e.length);var n;for(n=0;n<e.length;n+=1){s[n]=(r[n]-e[n])/i}}else{s=(r-e)/i}return s}function s(){return this.pv}function n(t){this.propertyGroup=t}return{searchExpressions:t,getSpeedAtTime:e,getVelocityAtTime:r,getValueAtTime:i,getStaticValueAtTime:s,setGroupProperty:n}}();function addPropertyDecorator(){function t(t,i,e){if(!this.k||!this.keyframes){return this.pv}t=t?t.toLowerCase():"";var r=this.comp.renderedFrame;var s=this.keyframes;var n=s[s.length-1].t;if(r<=n){return this.pv}var a;var h;if(!e){if(!i||i>s.length-1){i=s.length-1}h=s[s.length-1-i].t;a=n-h}else{if(!i){a=Math.max(0,n-this.elem.data.ip)}else{a=Math.abs(n-this.elem.comp.globalData.frameRate*i)}h=n-a}var o;var f;var u;if(t==="pingpong"){var l=Math.floor((r-h)/a);if(l%2!==0){return this.getValueAtTime((a-(r-h)%a+h)/this.comp.globalData.frameRate,0)}}else if(t==="offset"){var c=this.getValueAtTime(h/this.comp.globalData.frameRate,0);var v=this.getValueAtTime(n/this.comp.globalData.frameRate,0);var p=this.getValueAtTime(((r-h)%a+h)/this.comp.globalData.frameRate,0);var m=Math.floor((r-h)/a);if(this.pv.length){u=new Array(c.length);f=u.length;for(o=0;o<f;o+=1){u[o]=(v[o]-c[o])*m+p[o]}return u}return(v-c)*m+p}else if(t==="continue"){var d=this.getValueAtTime(n/this.comp.globalData.frameRate,0);var y=this.getValueAtTime((n-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){u=new Array(d.length);f=u.length;for(o=0;o<f;o+=1){u[o]=d[o]+(d[o]-y[o])*((r-n)/this.comp.globalData.frameRate)/5e-4}return u}return d+(d-y)*((r-n)/.001)}return this.getValueAtTime(((r-h)%a+h)/this.comp.globalData.frameRate,0)}function i(t,i,e){if(!this.k){return this.pv}t=t?t.toLowerCase():"";var r=this.comp.renderedFrame;var s=this.keyframes;var n=s[0].t;if(r>=n){return this.pv}var a;var h;if(!e){if(!i||i>s.length-1){i=s.length-1}h=s[i].t;a=h-n}else{if(!i){a=Math.max(0,this.elem.data.op-n)}else{a=Math.abs(this.elem.comp.globalData.frameRate*i)}h=n+a}var o;var f;var u;if(t==="pingpong"){var l=Math.floor((n-r)/a);if(l%2===0){return this.getValueAtTime(((n-r)%a+n)/this.comp.globalData.frameRate,0)}}else if(t==="offset"){var c=this.getValueAtTime(n/this.comp.globalData.frameRate,0);var v=this.getValueAtTime(h/this.comp.globalData.frameRate,0);var p=this.getValueAtTime((a-(n-r)%a+n)/this.comp.globalData.frameRate,0);var m=Math.floor((n-r)/a)+1;if(this.pv.length){u=new Array(c.length);f=u.length;for(o=0;o<f;o+=1){u[o]=p[o]-(v[o]-c[o])*m}return u}return p-(v-c)*m}else if(t==="continue"){var d=this.getValueAtTime(n/this.comp.globalData.frameRate,0);var y=this.getValueAtTime((n+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){u=new Array(d.length);f=u.length;for(o=0;o<f;o+=1){u[o]=d[o]+(d[o]-y[o])*(n-r)/.001}return u}return d+(d-y)*(n-r)/.001}return this.getValueAtTime((a-((n-r)%a+n))/this.comp.globalData.frameRate,0)}function e(t,i){if(!this.k){return this.pv}t=(t||.4)*.5;i=Math.floor(i||5);if(i<=1){return this.pv}var e=this.comp.renderedFrame/this.comp.globalData.frameRate;var r=e-t;var s=e+t;var n=i>1?(s-r)/(i-1):1;var a=0;var h=0;var o;if(this.pv.length){o=createTypedArray("float32",this.pv.length)}else{o=0}var f;while(a<i){f=this.getValueAtTime(r+a*n);if(this.pv.length){for(h=0;h<this.pv.length;h+=1){o[h]+=f[h]}}else{o+=f}a+=1}if(this.pv.length){for(h=0;h<this.pv.length;h+=1){o[h]/=i}}else{o/=i}return o}function r(t){if(!this._transformCachingAtTime){this._transformCachingAtTime={v:new Matrix}}var i=this._transformCachingAtTime.v;i.cloneFromProps(this.pre.props);if(this.appliedTransformations<1){var e=this.a.getValueAtTime(t);i.translate(-e[0]*this.a.mult,-e[1]*this.a.mult,e[2]*this.a.mult)}if(this.appliedTransformations<2){var r=this.s.getValueAtTime(t);i.scale(r[0]*this.s.mult,r[1]*this.s.mult,r[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var s=this.sk.getValueAtTime(t);var n=this.sa.getValueAtTime(t);i.skewFromAxis(-s*this.sk.mult,n*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var a=this.r.getValueAtTime(t);i.rotate(-a*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var h=this.rz.getValueAtTime(t);var o=this.ry.getValueAtTime(t);var f=this.rx.getValueAtTime(t);var u=this.or.getValueAtTime(t);i.rotateZ(-h*this.rz.mult).rotateY(o*this.ry.mult).rotateX(f*this.rx.mult).rotateZ(-u[2]*this.or.mult).rotateY(u[1]*this.or.mult).rotateX(u[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var l=this.px.getValueAtTime(t);var c=this.py.getValueAtTime(t);if(this.data.p.z){var v=this.pz.getValueAtTime(t);i.translate(l*this.px.mult,c*this.py.mult,-v*this.pz.mult)}else{i.translate(l*this.px.mult,c*this.py.mult,0)}}else{var p=this.p.getValueAtTime(t);i.translate(p[0]*this.p.mult,p[1]*this.p.mult,-p[2]*this.p.mult)}return i}function s(){return this.v.clone(new Matrix)}var n=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(t,i,e){var a=n(t,i,e);if(a.dynamicProperties.length){a.getValueAtTime=r.bind(a)}else{a.getValueAtTime=s.bind(a)}a.setGroupProperty=expressionHelpers.setGroupProperty;return a};var a=PropertyFactory.getProp;PropertyFactory.getProp=function(r,s,n,h,o){var f=a(r,s,n,h,o);if(f.kf){f.getValueAtTime=expressionHelpers.getValueAtTime.bind(f)}else{f.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(f)}f.setGroupProperty=expressionHelpers.setGroupProperty;f.loopOut=t;f.loopIn=i;f.smooth=e;f.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(f);f.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(f);f.numKeys=s.a===1?s.k.length:0;f.propertyIndex=s.ix;var u=0;if(n!==0){u=createTypedArray("float32",s.a===1?s.k[0].s.length:s.k.length)}f._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:u};expressionHelpers.searchExpressions(r,s,f);if(f.k){o.addDynamicProperty(f)}return f};function h(t){if(!this._cachingAtTime){this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}}t*=this.elem.globalData.frameRate;t-=this.offsetTime;if(t!==this._cachingAtTime.lastTime){this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<t?this._caching.lastIndex:0;this._cachingAtTime.lastTime=t;this.interpolateShape(t,this._cachingAtTime.shapeValue,this._cachingAtTime)}return this._cachingAtTime.shapeValue}var o=ShapePropertyFactory.getConstructorFunction();var f=ShapePropertyFactory.getKeyframedConstructorFunction();function u(){}u.prototype={vertices:function t(i,e){if(this.k){this.getValue()}var r=this.v;if(e!==undefined){r=this.getValueAtTime(e,0)}var s;var n=r._length;var t=r[i];var a=r.v;var h=createSizedArray(n);for(s=0;s<n;s+=1){if(i==="i"||i==="o"){h[s]=[t[s][0]-a[s][0],t[s][1]-a[s][1]]}else{h[s]=[t[s][0],t[s][1]]}}return h},points:function t(i){return this.vertices("v",i)},inTangents:function t(i){return this.vertices("i",i)},outTangents:function t(i){return this.vertices("o",i)},isClosed:function t(){return this.v.c},pointOnPath:function t(i,e){var r=this.v;if(e!==undefined){r=this.getValueAtTime(e,0)}if(!this._segmentsLength){this._segmentsLength=bez.getSegmentsLength(r)}var s=this._segmentsLength;var n=s.lengths;var a=s.totalLength*i;var h=0;var o=n.length;var f=0;var u;while(h<o){if(f+n[h].addedLength>a){var l=h;var c=r.c&&h===o-1?0:h+1;var v=(a-f)/n[h].addedLength;u=bez.getPointInSegment(r.v[l],r.v[c],r.o[l],r.i[c],v,n[h]);break}else{f+=n[h].addedLength}h+=1}if(!u){u=r.c?[r.v[0][0],r.v[0][1]]:[r.v[r._length-1][0],r.v[r._length-1][1]]}return u},vectorOnPath:function t(i,e,r){if(i==1){i=this.v.c}else if(i==0){i=.999}var s=this.pointOnPath(i,e);var n=this.pointOnPath(i+.001,e);var a=n[0]-s[0];var h=n[1]-s[1];var o=Math.sqrt(Math.pow(a,2)+Math.pow(h,2));if(o===0){return[0,0]}var f=r==="tangent"?[a/o,h/o]:[-h/o,a/o];return f},tangentOnPath:function t(i,e){return this.vectorOnPath(i,e,"tangent")},normalOnPath:function t(i,e){return this.vectorOnPath(i,e,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime};extendPrototype([u],o);extendPrototype([u],f);f.prototype.getValueAtTime=h;f.prototype.initiateExpression=ExpressionManager.initiateExpression;var l=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(t,i,e,r,s){var n=l(t,i,e,r,s);n.propertyIndex=i.ix;n.lock=false;if(e===3){expressionHelpers.searchExpressions(t,i.pt,n)}else if(e===4){expressionHelpers.searchExpressions(t,i.ks,n)}if(n.k){t.addDynamicProperty(n)}return n}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function t(){if(this.data.d.x){this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this);this.addEffect(this.getExpressionValue.bind(this));return true}return null}TextProperty.prototype.getExpressionValue=function(t,i){var e=this.calculateExpression(i);if(t.t!==e){var r={};this.copyData(r,t);r.t=e.toString();r.__complete=false;return r}return t};TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes();var i=this.searchExpressions();this.kf=t||i;return this.kf};TextProperty.prototype.searchExpressions=t}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function t(i,e){var r=createNS("feMerge");r.setAttribute("result",i);var s;var n;for(n=0;n<e.length;n+=1){s=createNS("feMergeNode");s.setAttribute("in",e[n]);r.appendChild(s);r.appendChild(s)}return r}};var linearFilterValue="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";function SVGTintFilter(t,i,e,r,s){this.filterManager=i;var n=createNS("feColorMatrix");n.setAttribute("type","matrix");n.setAttribute("color-interpolation-filters","linearRGB");n.setAttribute("values",linearFilterValue+" 1 0");this.linearFilter=n;n.setAttribute("result",r+"_tint_1");t.appendChild(n);n=createNS("feColorMatrix");n.setAttribute("type","matrix");n.setAttribute("color-interpolation-filters","sRGB");n.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0");n.setAttribute("result",r+"_tint_2");t.appendChild(n);this.matrixFilter=n;var a=this.createMergeNode(r,[s,r+"_tint_1",r+"_tint_2"]);t.appendChild(a)}extendPrototype([SVGComposableEffect],SVGTintFilter);SVGTintFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var i=this.filterManager.effectElements[0].p.v;var e=this.filterManager.effectElements[1].p.v;var r=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+r+" 0");this.matrixFilter.setAttribute("values",e[0]-i[0]+" 0 0 0 "+i[0]+" "+(e[1]-i[1])+" 0 0 0 "+i[1]+" "+(e[2]-i[2])+" 0 0 0 "+i[2]+" 0 0 0 1 0")}};function SVGFillFilter(t,i,e,r){this.filterManager=i;var s=createNS("feColorMatrix");s.setAttribute("type","matrix");s.setAttribute("color-interpolation-filters","sRGB");s.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0");s.setAttribute("result",r);t.appendChild(s);this.matrixFilter=s}SVGFillFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var i=this.filterManager.effectElements[2].p.v;var e=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+i[0]+" 0 0 0 0 "+i[1]+" 0 0 0 0 "+i[2]+" 0 0 0 "+e+" 0")}};function SVGStrokeEffect(t,i,e){this.initialized=false;this.filterManager=i;this.elem=e;this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var t=this.elem.layerElement.children||this.elem.layerElement.childNodes;var i;var e;var r;var s;if(this.filterManager.effectElements[1].p.v===1){s=this.elem.maskManager.masksProperties.length;r=0}else{r=this.filterManager.effectElements[0].p.v-1;s=r+1}e=createNS("g");e.setAttribute("fill","none");e.setAttribute("stroke-linecap","round");e.setAttribute("stroke-dashoffset",1);for(r;r<s;r+=1){i=createNS("path");e.appendChild(i);this.paths.push({p:i,m:r})}if(this.filterManager.effectElements[10].p.v===3){var n=createNS("mask");var a=createElementID();n.setAttribute("id",a);n.setAttribute("mask-type","alpha");n.appendChild(e);this.elem.globalData.defs.appendChild(n);var h=createNS("g");h.setAttribute("mask","url("+getLocationHref()+"#"+a+")");while(t[0]){h.appendChild(t[0])}this.elem.layerElement.appendChild(h);this.masker=n;e.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2){t=this.elem.layerElement.children||this.elem.layerElement.childNodes;while(t.length){this.elem.layerElement.removeChild(t[0])}}this.elem.layerElement.appendChild(e);this.elem.layerElement.removeAttribute("mask");e.setAttribute("stroke","#fff")}this.initialized=true;this.pathMasker=e};SVGStrokeEffect.prototype.renderFrame=function(t){if(!this.initialized){this.initialize()}var i;var e=this.paths.length;var r;var s;for(i=0;i<e;i+=1){if(this.paths[i].m!==-1){r=this.elem.maskManager.viewData[this.paths[i].m];s=this.paths[i].p;if(t||this.filterManager._mdf||r.prop._mdf){s.setAttribute("d",r.lastPath)}if(t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||r.prop._mdf){var n;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var a=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01;var h=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01;var o=s.getTotalLength();n="0 0 0 "+o*a+" ";var f=o*(h-a);var u=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;var l=Math.floor(f/u);var c;for(c=0;c<l;c+=1){n+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" "}n+="0 "+o*10+" 0 0"}else{n="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01}s.setAttribute("stroke-dasharray",n)}}}if(t||this.filterManager.effectElements[4].p._mdf){this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2)}if(t||this.filterManager.effectElements[6].p._mdf){this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v)}if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(t||this.filterManager.effectElements[3].p._mdf){var v=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(v[0]*255)+","+bmFloor(v[1]*255)+","+bmFloor(v[2]*255)+")")}}};function SVGTritoneFilter(t,i,e,r){this.filterManager=i;var s=createNS("feColorMatrix");s.setAttribute("type","matrix");s.setAttribute("color-interpolation-filters","linearRGB");s.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");t.appendChild(s);var n=createNS("feComponentTransfer");n.setAttribute("color-interpolation-filters","sRGB");n.setAttribute("result",r);this.matrixFilter=n;var a=createNS("feFuncR");a.setAttribute("type","table");n.appendChild(a);this.feFuncR=a;var h=createNS("feFuncG");h.setAttribute("type","table");n.appendChild(h);this.feFuncG=h;var o=createNS("feFuncB");o.setAttribute("type","table");n.appendChild(o);this.feFuncB=o;t.appendChild(n)}SVGTritoneFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var i=this.filterManager.effectElements[0].p.v;var e=this.filterManager.effectElements[1].p.v;var r=this.filterManager.effectElements[2].p.v;var s=r[0]+" "+e[0]+" "+i[0];var n=r[1]+" "+e[1]+" "+i[1];var a=r[2]+" "+e[2]+" "+i[2];this.feFuncR.setAttribute("tableValues",s);this.feFuncG.setAttribute("tableValues",n);this.feFuncB.setAttribute("tableValues",a)}};function SVGProLevelsFilter(t,i,e,r){this.filterManager=i;var s=this.filterManager.effectElements;var n=createNS("feComponentTransfer");if(s[10].p.k||s[10].p.v!==0||s[11].p.k||s[11].p.v!==1||s[12].p.k||s[12].p.v!==1||s[13].p.k||s[13].p.v!==0||s[14].p.k||s[14].p.v!==1){this.feFuncR=this.createFeFunc("feFuncR",n)}if(s[17].p.k||s[17].p.v!==0||s[18].p.k||s[18].p.v!==1||s[19].p.k||s[19].p.v!==1||s[20].p.k||s[20].p.v!==0||s[21].p.k||s[21].p.v!==1){this.feFuncG=this.createFeFunc("feFuncG",n)}if(s[24].p.k||s[24].p.v!==0||s[25].p.k||s[25].p.v!==1||s[26].p.k||s[26].p.v!==1||s[27].p.k||s[27].p.v!==0||s[28].p.k||s[28].p.v!==1){this.feFuncB=this.createFeFunc("feFuncB",n)}if(s[31].p.k||s[31].p.v!==0||s[32].p.k||s[32].p.v!==1||s[33].p.k||s[33].p.v!==1||s[34].p.k||s[34].p.v!==0||s[35].p.k||s[35].p.v!==1){this.feFuncA=this.createFeFunc("feFuncA",n)}if(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA){n.setAttribute("color-interpolation-filters","sRGB");t.appendChild(n)}if(s[3].p.k||s[3].p.v!==0||s[4].p.k||s[4].p.v!==1||s[5].p.k||s[5].p.v!==1||s[6].p.k||s[6].p.v!==0||s[7].p.k||s[7].p.v!==1){n=createNS("feComponentTransfer");n.setAttribute("color-interpolation-filters","sRGB");n.setAttribute("result",r);t.appendChild(n);this.feFuncRComposed=this.createFeFunc("feFuncR",n);this.feFuncGComposed=this.createFeFunc("feFuncG",n);this.feFuncBComposed=this.createFeFunc("feFuncB",n)}}SVGProLevelsFilter.prototype.createFeFunc=function(t,i){var e=createNS(t);e.setAttribute("type","table");i.appendChild(e);return e};SVGProLevelsFilter.prototype.getTableValue=function(t,i,e,r,s){var n=0;var a=256;var h;var o=Math.min(t,i);var f=Math.max(t,i);var u=Array.call(null,{length:a});var l;var c=0;var v=s-r;var p=i-t;while(n<=256){h=n/256;if(h<=o){l=p<0?s:r}else if(h>=f){l=p<0?r:s}else{l=r+v*Math.pow((h-t)/p,1/e)}u[c]=l;c+=1;n+=256/(a-1)}return u.join(" ")};SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var i;var e=this.filterManager.effectElements;if(this.feFuncRComposed&&(t||e[3].p._mdf||e[4].p._mdf||e[5].p._mdf||e[6].p._mdf||e[7].p._mdf)){i=this.getTableValue(e[3].p.v,e[4].p.v,e[5].p.v,e[6].p.v,e[7].p.v);this.feFuncRComposed.setAttribute("tableValues",i);this.feFuncGComposed.setAttribute("tableValues",i);this.feFuncBComposed.setAttribute("tableValues",i)}if(this.feFuncR&&(t||e[10].p._mdf||e[11].p._mdf||e[12].p._mdf||e[13].p._mdf||e[14].p._mdf)){i=this.getTableValue(e[10].p.v,e[11].p.v,e[12].p.v,e[13].p.v,e[14].p.v);this.feFuncR.setAttribute("tableValues",i)}if(this.feFuncG&&(t||e[17].p._mdf||e[18].p._mdf||e[19].p._mdf||e[20].p._mdf||e[21].p._mdf)){i=this.getTableValue(e[17].p.v,e[18].p.v,e[19].p.v,e[20].p.v,e[21].p.v);this.feFuncG.setAttribute("tableValues",i)}if(this.feFuncB&&(t||e[24].p._mdf||e[25].p._mdf||e[26].p._mdf||e[27].p._mdf||e[28].p._mdf)){i=this.getTableValue(e[24].p.v,e[25].p.v,e[26].p.v,e[27].p.v,e[28].p.v);this.feFuncB.setAttribute("tableValues",i)}if(this.feFuncA&&(t||e[31].p._mdf||e[32].p._mdf||e[33].p._mdf||e[34].p._mdf||e[35].p._mdf)){i=this.getTableValue(e[31].p.v,e[32].p.v,e[33].p.v,e[34].p.v,e[35].p.v);this.feFuncA.setAttribute("tableValues",i)}}};function SVGDropShadowEffect(t,i,e,r,s){var n=i.container.globalData.renderConfig.filterSize;var a=i.data.fs||n;t.setAttribute("x",a.x||n.x);t.setAttribute("y",a.y||n.y);t.setAttribute("width",a.width||n.width);t.setAttribute("height",a.height||n.height);this.filterManager=i;var h=createNS("feGaussianBlur");h.setAttribute("in","SourceAlpha");h.setAttribute("result",r+"_drop_shadow_1");h.setAttribute("stdDeviation","0");this.feGaussianBlur=h;t.appendChild(h);var o=createNS("feOffset");o.setAttribute("dx","25");o.setAttribute("dy","0");o.setAttribute("in",r+"_drop_shadow_1");o.setAttribute("result",r+"_drop_shadow_2");this.feOffset=o;t.appendChild(o);var f=createNS("feFlood");f.setAttribute("flood-color","#00ff00");f.setAttribute("flood-opacity","1");f.setAttribute("result",r+"_drop_shadow_3");this.feFlood=f;t.appendChild(f);var u=createNS("feComposite");u.setAttribute("in",r+"_drop_shadow_3");u.setAttribute("in2",r+"_drop_shadow_2");u.setAttribute("operator","in");u.setAttribute("result",r+"_drop_shadow_4");t.appendChild(u);var l=this.createMergeNode(r,[r+"_drop_shadow_4",s]);t.appendChild(l)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect);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)}if(t||this.filterManager.effectElements[0].p._mdf){var i=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(i[0]*255),Math.round(i[1]*255),Math.round(i[2]*255)))}if(t||this.filterManager.effectElements[1].p._mdf){this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255)}if(t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var e=this.filterManager.effectElements[3].p.v;var r=(this.filterManager.effectElements[2].p.v-90)*degToRads;var s=e*Math.cos(r);var n=e*Math.sin(r);this.feOffset.setAttribute("dx",s);this.feOffset.setAttribute("dy",n)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,i,e){this.initialized=false;this.filterManager=i;this.filterElem=t;this.elem=e;e.matteElement=createNS("g");e.matteElement.appendChild(e.layerElement);e.matteElement.appendChild(e.transformedElement);e.baseElement=e.matteElement}SVGMatte3Effect.prototype.findSymbol=function(t){var i=0;var e=_svgMatteSymbols.length;while(i<e){if(_svgMatteSymbols[i]===t){return _svgMatteSymbols[i]}i+=1}return null};SVGMatte3Effect.prototype.replaceInParent=function(t,i){var e=t.layerElement.parentNode;if(!e){return}var r=e.children;var s=0;var n=r.length;while(s<n){if(r[s]===t.layerElement){break}s+=1}var a;if(s<=n-2){a=r[s+1]}var h=createNS("use");h.setAttribute("href","#"+i);if(a){e.insertBefore(h,a)}else{e.appendChild(h)}};SVGMatte3Effect.prototype.setElementAsMask=function(t,i){if(!this.findSymbol(i)){var e=createElementID();var r=createNS("mask");r.setAttribute("id",i.layerId);r.setAttribute("mask-type","alpha");_svgMatteSymbols.push(i);var s=t.globalData.defs;s.appendChild(r);var n=createNS("symbol");n.setAttribute("id",e);this.replaceInParent(i,e);n.appendChild(i.layerElement);s.appendChild(n);var a=createNS("use");a.setAttribute("href","#"+e);r.appendChild(a);i.data.hd=false;i.show()}t.setMatte(i.layerId)};SVGMatte3Effect.prototype.initialize=function(){var t=this.filterManager.effectElements[0].p.v;var i=this.elem.comp.elements;var e=0;var r=i.length;while(e<r){if(i[e]&&i[e].data.ind===t){this.setElementAsMask(this.elem,i[e])}e+=1}this.initialized=true};SVGMatte3Effect.prototype.renderFrame=function(){if(!this.initialized){this.initialize()}};function SVGGaussianBlurEffect(t,i,e,r){t.setAttribute("x","-100%");t.setAttribute("y","-100%");t.setAttribute("width","300%");t.setAttribute("height","300%");this.filterManager=i;var s=createNS("feGaussianBlur");s.setAttribute("result",r);t.appendChild(s);this.feGaussianBlur=s}SVGGaussianBlurEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var i=.3;var e=this.filterManager.effectElements[0].p.v*i;var r=this.filterManager.effectElements[1].p.v;var s=r==3?0:e;var n=r==2?0:e;this.feGaussianBlur.setAttribute("stdDeviation",s+" "+n);var a=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",a)}};function TransformEffect(){}TransformEffect.prototype.init=function(t){this.effectsManager=t;this.type=effectTypes.TRANSFORM_EFFECT;this.matrix=new Matrix;this.opacity=-1;this._mdf=false;this._opMdf=false};TransformEffect.prototype.renderFrame=function(t){this._opMdf=false;this._mdf=false;if(t||this.effectsManager._mdf){var i=this.effectsManager.effectElements;var e=i[0].p.v;var r=i[1].p.v;var s=i[2].p.v===1;var n=i[3].p.v;var a=s?n:i[4].p.v;var h=i[5].p.v;var o=i[6].p.v;var f=i[7].p.v;this.matrix.reset();this.matrix.translate(-e[0],-e[1],e[2]);this.matrix.scale(a*.01,n*.01,1);this.matrix.rotate(-f*degToRads);this.matrix.skewFromAxis(-h*degToRads,(o+90)*degToRads);this.matrix.translate(r[0],r[1],0);this._mdf=true;if(this.opacity!==i[8].p.v){this.opacity=i[8].p.v;this._opMdf=true}}};function SVGTransformEffect(t,i){this.init(i)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(t){this.init(t)}extendPrototype([TransformEffect],CVTransformEffect);registerRenderer("canvas",CanvasRenderer);registerRenderer("html",HybridRenderer);registerRenderer("svg",SVGRenderer);ShapeModifiers.registerModifier("tm",TrimModifier);ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier);ShapeModifiers.registerModifier("rp",RepeaterModifier);ShapeModifiers.registerModifier("rd",RoundCornersModifier);ShapeModifiers.registerModifier("zz",ZigZagModifier);ShapeModifiers.registerModifier("op",OffsetPathModifier);setExpressionsPlugin(Expressions);setExpressionInterfaces(getInterface);initialize$1();initialize();registerEffect$1(20,SVGTintFilter,true);registerEffect$1(21,SVGFillFilter,true);registerEffect$1(22,SVGStrokeEffect,false);registerEffect$1(23,SVGTritoneFilter,true);registerEffect$1(24,SVGProLevelsFilter,true);registerEffect$1(25,SVGDropShadowEffect,true);registerEffect$1(28,SVGMatte3Effect,false);registerEffect$1(29,SVGGaussianBlurEffect,true);registerEffect$1(35,SVGTransformEffect,false);registerEffect(35,CVTransformEffect);return lottie}))})(lottie$1,lottie$1.exports);const lottie=lottie$1.exports;const cpslAnimationCss=":host{position:absolute;height:100%;width:100%;display:block;pointer-events:none}:host .background-16 path{fill:var(--cpsl-color-background-16)}:host .background-48 path{fill:var(--cpsl-color-background-48)}:host .background-80 path{fill:var(--cpsl-color-background-80)}";const CpslAnimationStyle0=cpslAnimationCss;var __awaiter=undefined&&undefined.__awaiter||function(t,i,e,r){function s(t){return t instanceof e?t:new e((function(i){i(t)}))}return new(e||(e=Promise))((function(e,n){function a(t){try{o(r.next(t))}catch(t){n(t)}}function h(t){try{o(r["throw"](t))}catch(t){n(t)}}function o(t){t.done?e(t.value):s(t.value).then(a,h)}o((r=r.apply(t,i||[])).next())}))};const CpslAnimation=class{constructor(t){registerInstance(this,t);this.src=undefined}replayAnimation(){return __awaiter(this,void 0,void 0,(function*(){this.animation.play()}))}componentDidLoad(){this.animation=lottie.loadAnimation({loop:false,container:this.animationContainerEl,renderer:"svg",path:this.src});this.animation.play()}get animationContainerEl(){return this.el.shadowRoot.getElementById("animation-container")}render(){return h(Host,{key:"5fab748126f7b18a9051aa89df1b8a78ef647648"},h("div",{key:"b9cac260ee00f54a56c7cd249850a8df5e84dc3b",part:"animation-container",id:"animation-container",class:"animation-container"}))}get el(){return getElement(this)}};CpslAnimation.style=CpslAnimationStyle0;export{CpslAnimation as cpsl_animation};
|
10
|
-
//# sourceMappingURL=p-0e558c7f.entry.js.map
|