diff --git a/.changeset/four-seals-jog.md b/.changeset/four-seals-jog.md new file mode 100644 index 00000000..6e439e1e --- /dev/null +++ b/.changeset/four-seals-jog.md @@ -0,0 +1,5 @@ +--- +"sofa-api": patch +--- + +Fix release diff --git a/tsconfig.build.json b/tsconfig.build.json new file mode 100644 index 00000000..ecd055f6 --- /dev/null +++ b/tsconfig.build.json @@ -0,0 +1,7 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "rootDir": "./src" + }, + "files": ["src/index.ts"] +} \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index 18ee28e2..371bf3e4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,7 +4,6 @@ "module": "esnext", "target": "es2021", "lib": ["esnext"], - "rootDir": ".", "moduleResolution": "node", "sourceMap": false, "declaration": true, @@ -16,6 +15,5 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true }, - "include": ["src"], "exclude": ["node_modules", "dist"] } diff --git a/tsconfig.test.json b/tsconfig.test.json deleted file mode 100644 index cf2487b1..00000000 --- a/tsconfig.test.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "module": "CommonJS" - }, - "include": ["tests"] -} diff --git a/website/animation/build/asset-manifest.json b/website/animation/build/asset-manifest.json deleted file mode 100644 index 49de15c2..00000000 --- a/website/animation/build/asset-manifest.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "files": { - "main.js": "/animation/static/js/main.9993eb07.js", - "index.html": "/animation/index.html", - "main.9993eb07.js.map": "/animation/static/js/main.9993eb07.js.map" - }, - "entrypoints": [ - "static/js/main.9993eb07.js" - ] -} \ No newline at end of file diff --git a/website/animation/build/favicon.ico b/website/animation/build/favicon.ico deleted file mode 100755 index a11777cc..00000000 Binary files a/website/animation/build/favicon.ico and /dev/null differ diff --git a/website/animation/build/index.html b/website/animation/build/index.html deleted file mode 100644 index c9f3e80e..00000000 --- a/website/animation/build/index.html +++ /dev/null @@ -1 +0,0 @@ -Sofa Animation
\ No newline at end of file diff --git a/website/animation/build/manifest.json b/website/animation/build/manifest.json deleted file mode 100755 index 1f2f141f..00000000 --- a/website/animation/build/manifest.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "short_name": "React App", - "name": "Create React App Sample", - "icons": [ - { - "src": "favicon.ico", - "sizes": "64x64 32x32 24x24 16x16", - "type": "image/x-icon" - } - ], - "start_url": ".", - "display": "standalone", - "theme_color": "#000000", - "background_color": "#ffffff" -} diff --git a/website/animation/build/static/js/main.9993eb07.js b/website/animation/build/static/js/main.9993eb07.js deleted file mode 100644 index 22bb4501..00000000 --- a/website/animation/build/static/js/main.9993eb07.js +++ /dev/null @@ -1,3 +0,0 @@ -/*! For license information please see main.9993eb07.js.LICENSE.txt */ -(function(){var __webpack_modules__={625:function(module,exports,__webpack_require__){var factory;"undefined"!==typeof navigator&&(factory=function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,e){var i,r,a=t.length;for(i=0;i1?i[1]=1:i[1]<=0&&(i[1]=0),HSVtoRGB(i[0],i[1],i[2])}function addBrightnessToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[2]+=e,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),HSVtoRGB(i[0],i[1],i[2])}function addHueToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[0]+=e/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),HSVtoRGB(i[0],i[1],i[2])}var rgbToHex=function(){var t,e,i=[];for(t=0;t<256;t+=1)e=t.toString(16),i[t]=1===e.length?"0"+e:e;return function(t,e,r){return t<0&&(t=0),e<0&&(e=0),r<0&&(r=0),"#"+i[t]+i[e]+i[r]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t},getIdPrefix=function(){return idPrefix$1};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){return _typeof$5="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$5(t)}var dataManager=function(){var t,e,i=1,r=[],a={onmessage:function(){},postMessage:function(e){t({data:e})}},n={postMessage:function(t){a.onmessage({data:t})}};function s(){e||(e=function(e){if(window.Worker&&window.Blob&&getWebWorker()){var i=new Blob(["var _workerSelf = self; self.onmessage = ",e.toString()],{type:"text/javascript"}),r=URL.createObjectURL(i);return new Worker(r)}return t=e,a}((function(t){if(n.dataManager||(n.dataManager=function(){function t(a,n){var s,o,l,p,c,u,f=a.length;for(o=0;o=0;e-=1)if("sh"===t[e].ty)if(t[e].ks.k.i)r(t[e].ks.k);else for(n=t[e].ks.k.length,a=0;ai[0]||!(i[0]>t[0])&&(t[1]>i[1]||!(i[1]>t[1])&&(t[2]>i[2]||!(i[2]>t[2])&&null))}var n=function(){var t=[4,4,14];function e(t){var e=t.t.d;t.t.d={k:[{s:e,t:0}]}}function i(t){var i,r=t.length;for(i=0;i=0;i-=1)if("sh"===t[i].ty)if(t[i].ks.k.i)t[i].ks.k.c=t[i].closed;else for(a=t[i].ks.k.length,r=0;r500)&&(this._imageLoaded(),clearInterval(i)),e+=1}.bind(this),50)}function n(t){var e={assetData:t},i=r(t,this.assetsPath,this.path);return dataManager.loadData(i,function(t){e.img=t,this._footageLoaded()}.bind(this),function(){e.img={},this._footageLoaded()}.bind(this)),e}function s(){this._imageLoaded=e.bind(this),this._footageLoaded=i.bind(this),this.testImageLoaded=a.bind(this),this.createFootageData=n.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return s.prototype={loadAssets:function(t,e){var i;this.imagesLoadedCb=e;var r=t.length;for(i=0;ithis.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,i,r=this.animationData.layers,a=r.length,n=t.layers,s=n.length;for(i=0;ithis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!==t||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!==t||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(t){for(var e,i=0;i=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(i=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(i=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),i&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,e){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFramee&&(i=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==i&&this.goToAndStop(i,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===_typeof$4(t[0])){var i,r=t.length;for(i=0;i=0;i-=1)e[i].animation.destroy(t)},t.freeze=function(){s=!0},t.unfreeze=function(){s=!1,m()},t.setVolume=function(t,i){var a;for(a=0;a=.001?function(t,e,i,r){for(var a=0;a<4;++a){var n=l(e,i,r);if(0===n)return e;e-=(o(e,i,r)-t)/n}return e}(t,p,e,r):0===h?p:function(t,e,i,r,a){var n,s,l=0;do{(n=o(s=e+(i-e)/2,r,a)-t)>0?i=s:e=s}while(Math.abs(n)>1e-7&&++l<10);return s}(t,n,n+i,e,r)}},t}(),pooling={double:function(t){return t.concat(createSizedArray(t.length))}},poolFactory=function(t,e,i){var r=0,a=t,n=createSizedArray(a);return{newElement:function(){return r?n[r-=1]:e()},release:function(t){r===a&&(n=pooling.double(n),a*=2),i&&i(t),n[r]=t,r+=1}}},bezierLengthPool=poolFactory(8,(function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}})),segmentsLengthPool=poolFactory(8,(function(){return{lengths:[],totalLength:0}}),(function(t){var e,i=t.lengths.length;for(e=0;e-.001&&s<.001}var i=function(t,e,i,r){var a,n,s,o,l,p,h=getDefaultCurveSegments(),c=0,u=[],f=[],m=bezierLengthPool.newElement();for(s=i.length,a=0;as?-1:1,p=!0;p;)if(r[n]<=s&&r[n+1]>s?(o=(s-r[n])/(r[n+1]-r[n]),p=!1):n+=l,n<0||n>=a-1){if(n===a-1)return i[n];p=!1}return i[n]+(i[n+1]-i[n])*o}var o=createTypedArray("float32",8);return{getSegmentsLength:function(t){var e,r=segmentsLengthPool.newElement(),a=t.c,n=t.v,s=t.o,o=t.i,l=t._length,p=r.lengths,h=0;for(e=0;e1&&(n=1);var h,c=s(n,p),u=s(l=l>1?1:l,p),f=e.length,m=1-c,d=1-u,x=m*m*m,y=c*m*m*3,k=c*c*m*3,g=c*c*c,v=m*m*d,_=c*m*d+m*c*d+m*m*u,E=c*c*d+m*c*u+c*m*u,b=c*c*u,S=m*d*d,A=c*d*d+m*u*d+m*d*u,D=c*u*d+m*u*u+c*d*u,P=c*u*u,G=d*d*d,B=u*d*d+d*u*d+d*d*u,V=u*u*d+d*u*u+u*d*u,F=u*u*u;for(h=0;hf?u>m?u-f-m:m-f-u:m>f?m-f-u:f-u-m)>-1e-4&&c<1e-4}}}var bez=bezFunction(),PropertyFactory=function(){var t=initialDefaultFrame,e=Math.abs;function i(t,e){var i,a=this.offsetTime;"multidimensional"===this.propType&&(i=createTypedArray("float32",this.pv.length));for(var n,s,o,l,p,h,c,u,f,m=e.lastIndex,d=m,x=this.keyframes.length-1,y=!0;y;){if(n=this.keyframes[d],s=this.keyframes[d+1],d===x-1&&t>=s.t-a){n.h&&(n=s),m=0;break}if(s.t-a>t){m=d;break}d=g||t=g?_.points.length-1:0;for(p=_.points[E].point.length,l=0;l=A&&S=g?(i[0]=k[0],i[1]=k[1],i[2]=k[2]):t<=v?(i[0]=n.s[0],i[1]=n.s[1],i[2]=n.s[2]):function(t,e){var i=e[0],r=e[1],a=e[2],n=e[3],s=Math.atan2(2*r*n-2*i*a,1-2*r*r-2*a*a),o=Math.asin(2*i*r+2*a*n),l=Math.atan2(2*i*n-2*r*a,1-2*i*i-2*a*a);t[0]=s/degToRads,t[1]=o/degToRads,t[2]=l/degToRads}(i,function(t,e,i){var r,a,n,s,o,l=[],p=t[0],h=t[1],c=t[2],u=t[3],f=e[0],m=e[1],d=e[2],x=e[3];return(a=p*f+h*m+c*d+u*x)<0&&(a=-a,f=-f,m=-m,d=-d,x=-x),1-a>1e-6?(r=Math.acos(a),n=Math.sin(r),s=Math.sin((1-i)*r)/n,o=Math.sin(i*r)/n):(s=1-i,o=i),l[0]=s*p+o*f,l[1]=s*h+o*m,l[2]=s*c+o*d,l[3]=s*u+o*x,l}(r(n.s),r(k),(t-v)/(g-v)));else for(d=0;d=g?h=1:t=r&&e>=r||this._caching.lastFrame=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var a=this.interpolateValue(e,this._caching);this.pv=a}return this._caching.lastFrame=e,this.pv}function n(t){var i;if("unidimensional"===this.propType)i=t*this.mult,e(this.v-i)>1e-5&&(this.v=i,this._mdf=!0);else for(var r=0,a=this.v.length;r1e-5&&(this.v[r]=i,this._mdf=!0),r+=1}function s(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t;this.lock=!0,this._mdf=this._isFirstFrame;var e=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(t=0;t=this._maxLength&&this.doubleArrayLength(),i){case"v":n=this.v;break;case"i":n=this.i;break;case"o":n=this.o;break;default:n=[]}(!n[r]||n[r]&&!a)&&(n[r]=pointPool.newElement()),n[r][0]=t,n[r][1]=e},ShapePath.prototype.setTripleAt=function(t,e,i,r,a,n,s,o){this.setXYAt(t,e,"v",s,o),this.setXYAt(i,r,"o",s,o),this.setXYAt(a,n,"i",s,o)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,i=this.o,r=this.i,a=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],r[0][0],r[0][1],i[0][0],i[0][1],0,!1),a=1);var n,s=this._length-1,o=this._length;for(n=a;n=f[f.length-1].t-this.offsetTime)r=f[f.length-1].s?f[f.length-1].s[0]:f[f.length-2].e[0],n=!0;else{for(var m,d,x,y=u,k=f.length-1,g=!0;g&&(m=f[y],!((d=f[y+1]).t-this.offsetTime>t));)y=d.t-this.offsetTime)h=1;else if(tr&&e>r)||(this._caching.lastIndex=a0||t>-1e-6&&t<0?r(1e4*t)/1e4:t}function T(){var t=this.props;return"matrix("+F(t[0])+","+F(t[1])+","+F(t[4])+","+F(t[5])+","+F(t[12])+","+F(t[13])+")"}return function(){this.reset=a,this.rotate=n,this.rotateX=s,this.rotateY=o,this.rotateZ=l,this.skew=h,this.skewFromAxis=c,this.shear=p,this.scale=u,this.setTransform=f,this.translate=m,this.transform=d,this.applyToPoint=v,this.applyToX=_,this.applyToY=E,this.applyToZ=b,this.applyToPointArray=G,this.applyToTriplePoints=P,this.applyToPointStringified=B,this.toCSS=V,this.to2dCSS=T,this.clone=k,this.cloneFromProps=g,this.equals=y,this.inversePoints=D,this.inversePoint=A,this.getInverseMatrix=S,this._t=this.transform,this.isIdentity=x,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(t){return _typeof$3="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$3(t)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(t){setLocationHref(t)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(t){setSubframeEnabled(t)}function setPrefix(t){setIdPrefix(t)}function loadAnimation(t){return!0===standalone&&(t.animationData=JSON.parse(animationData)),animationManager.loadAnimation(t)}function setQuality(t){if("string"===typeof t)switch(t){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(t)&&t>1&&setDefaultCurveSegments(t);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return"undefined"!==typeof navigator}function installPlugin(t,e){"expressions"===t&&setExpressionsPlugin(e)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split("&"),i=0;i=1?n.push({s:t-1,e:e-1}):(n.push({s:t,e:1}),n.push({s:0,e:e-1}));var s,o,l=[],p=n.length;for(s=0;sr+i||(h=o.s*a<=r?0:(o.s*a-r)/i,c=o.e*a>=r+i?1:(o.e*a-r)/i,l.push([h,c]))}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(t){var e,i=t.length;for(e=0;e1?1+n:this.s.v<0?0+n:this.s.v+n)>(i=this.e.v>1?1+n:this.e.v<0?0+n:this.e.v+n)){var s=e;e=i,i=s}e=1e-4*Math.round(1e4*e),i=1e-4*Math.round(1e4*i),this.sValue=e,this.eValue=i}else e=this.sValue,i=this.eValue;var o,l,p,h,c,u=this.shapes.length,f=0;if(i===e)for(a=0;a=0;a-=1)if((m=this.shapes[a]).shape._mdf){for((d=m.localShapeCollection).releaseShapes(),2===this.m&&u>1?(y=this.calculateShapeEdges(e,i,m.totalShapeLength,v,f),v+=m.totalShapeLength):y=[[k,g]],l=y.length,o=0;o=1?x.push({s:m.totalShapeLength*(k-1),e:m.totalShapeLength*(g-1)}):(x.push({s:m.totalShapeLength*k,e:m.totalShapeLength}),x.push({s:0,e:m.totalShapeLength*(g-1)}));var _=this.addShapes(m,x[0]);if(x[0].s!==x[0].e){if(x.length>1)if(m.shape.paths.shapes[m.shape.paths._length-1].c){var E=_.pop();this.addPaths(_,d),_=this.addShapes(m,x[1],E)}else this.addPaths(_,d),_=this.addShapes(m,x[1]);this.addPaths(_,d)}}m.shape.paths=d}}},TrimModifier.prototype.addPaths=function(t,e){var i,r=t.length;for(i=0;ie.e){i.c=!1;break}e.s<=m&&e.e>=m+s.addedLength?(this.addSegment(u[r].v[a-1],u[r].o[a-1],u[r].i[a],u[r].v[a],i,o,x),x=!1):(p=bez.getNewSegment(u[r].v[a-1],u[r].v[a],u[r].o[a-1],u[r].i[a],(e.s-m)/s.addedLength,(e.e-m)/s.addedLength,l[a-1]),this.addSegmentFromArray(p,i,o,x),x=!1,i.c=!1),m+=s.addedLength,o+=1}if(u[r].c&&l.length){if(s=l[a-1],m<=e.e){var y=l[a-1].addedLength;e.s<=m&&e.e>=m+y?(this.addSegment(u[r].v[a-1],u[r].o[a-1],u[r].i[0],u[r].v[0],i,o,x),x=!1):(p=bez.getNewSegment(u[r].v[a-1],u[r].v[0],u[r].o[a-1],u[r].i[0],(e.s-m)/y,(e.e-m)/y,l[a-1]),this.addSegmentFromArray(p,i,o,x),x=!1,i.c=!1)}else i.c=!1;m+=s.addedLength,o+=1}if(i._length&&(i.setXYAt(i.v[h][0],i.v[h][1],"i",h),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),m>e.e)break;r=this.p.keyframes[this.p.keyframes.length-1].t?(r=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/i,0),a=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/i,0)):(r=this.p.pv,a=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/i,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){r=[],a=[];var n=this.px,s=this.py;n._caching.lastFrame+n.offsetTime<=n.keyframes[0].t?(r[0]=n.getValueAtTime((n.keyframes[0].t+.01)/i,0),r[1]=s.getValueAtTime((s.keyframes[0].t+.01)/i,0),a[0]=n.getValueAtTime(n.keyframes[0].t/i,0),a[1]=s.getValueAtTime(s.keyframes[0].t/i,0)):n._caching.lastFrame+n.offsetTime>=n.keyframes[n.keyframes.length-1].t?(r[0]=n.getValueAtTime(n.keyframes[n.keyframes.length-1].t/i,0),r[1]=s.getValueAtTime(s.keyframes[s.keyframes.length-1].t/i,0),a[0]=n.getValueAtTime((n.keyframes[n.keyframes.length-1].t-.01)/i,0),a[1]=s.getValueAtTime((s.keyframes[s.keyframes.length-1].t-.01)/i,0)):(r=[n.pv,s.pv],a[0]=n.getValueAtTime((n._caching.lastFrame+n.offsetTime-.01)/i,n.offsetTime),a[1]=s.getValueAtTime((s._caching.lastFrame+s.offsetTime-.01)/i,s.offsetTime))}else r=a=t;this.v.rotate(-Math.atan2(r[1]-a[1],r[0]-a[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):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)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],e),e.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},e.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(t,i,r){return new e(t,i,r)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function getFontProperties(t){for(var e=t.fStyle?t.fStyle.split(" "):[],i="normal",r="normal",a=e.length,n=0;n0;)i-=1,this._elements.unshift(e[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,i=t.length;for(e=0;e0?Math.floor(u):Math.ceil(u),d=this.pMatrix.props,x=this.rMatrix.props,y=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var k,g,v=0;if(u>0){for(;vm;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),v-=1;f&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-f,!0),v-=f)}for(r=1===this.data.m?0:this._currentCopies-1,a=1===this.data.m?1:-1,n=this._currentCopies;n;){if(g=(i=(e=this.elemsData[r].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(r/(this._currentCopies-1)),0!==v){for((0!==r&&1===a||r!==this._currentCopies-1&&-1===a)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(x[0],x[1],x[2],x[3],x[4],x[5],x[6],x[7],x[8],x[9],x[10],x[11],x[12],x[13],x[14],x[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(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]),k=0;k0&&(h=!1),h){var c=createTag("style");c.setAttribute("f-forigin",r[i].fOrigin),c.setAttribute("f-origin",r[i].origin),c.setAttribute("f-family",r[i].fFamily),c.type="text/css",c.innerText="@font-face {font-family: "+r[i].fFamily+"; font-style: normal; src: url('"+r[i].fPath+"');}",e.appendChild(c)}}else if("g"===r[i].fOrigin||1===r[i].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),p=0;pt?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t0&&(this.maskElement.setAttribute("id",x),this.element.maskedElement.setAttribute(k,"url("+getLocationHref()+"#"+x+")"),n.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}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(){this.layerInterface=FootageInterface(this)},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var e=this.tm.v;this._currentTime=e}this._volume=this.lv.v[0];var i=this._volume*this._volumeMultiplier;this._previousVolume!==i&&(this._previousVolume=i,this.audio.volume(i))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},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(){},BaseRenderer.prototype.checkLayers=function(t){var e,i,r=this.layers.length;for(this.completeLayers=!0,e=r-1;e>=0;e-=1)this.elements[e]||(i=this.layers[e]).ip-i.st<=t-this.layers[e].st&&i.op-i.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},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:default: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)}},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,e=this.layers.length;for(t=0;t1&&(n+=" C"+e.o[r-1][0]+","+e.o[r-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),i.lastPath!==n){var s="";i.elem&&(e.c&&(s=t.inv?this.solidPath+n:n),i.elem.setAttribute("d",s)),i.lastPath=n}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var t={createFilter:function(t,e){var i=createNS("filter");return i.setAttribute("id",t),!0!==e&&(i.setAttribute("filterUnits","objectBoundingBox"),i.setAttribute("x","0%"),i.setAttribute("y","0%"),i.setAttribute("width","100%"),i.setAttribute("height","100%")),i},createAlphaToLuminanceFilter:function(){var t=createNS("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t}};return t}(),featureSupport=function(){var t={maskType:!0};return(/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=!1),t}(),registeredEffects={},idPrefix="filter_result_";function SVGEffects(t){var e,i,r="SourceGraphic",a=t.data.ef?t.data.ef.length:0,n=createElementID(),s=filtersFactory.createFilter(n,!0),o=0;for(this.filters=[],e=0;e=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,i=0,r=e.length;i.01)return!1;i+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t0;)l=r.transformers[d].mProps._mdf||l,m-=1,d-=1;if(l)for(m=y-r.styles[h].lvl,d=r.transformers.length-1;m>0;)f=r.transformers[d].mProps.v.props,u.transform(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9],f[10],f[11],f[12],f[13],f[14],f[15]),m-=1,d-=1}else u=t;if(s=(c=r.sh.paths)._length,l){for(o="",n=0;n=1?k=.99:k<=-1&&(k=-.99);var g=o*k,v=Math.cos(y+e.a.v)*g+h[0],_=Math.sin(y+e.a.v)*g+h[1];l.setAttribute("fx",v),l.setAttribute("fy",_),p&&!e.g._collapsable&&(e.of.setAttribute("fx",v),e.of.setAttribute("fy",_))}}function l(t,e,i){var r=e.style,a=e.d;a&&(a._mdf||i)&&a.dashStr&&(r.pElem.setAttribute("stroke-dasharray",a.dashStr),r.pElem.setAttribute("stroke-dashoffset",a.dashoffset[0])),e.c&&(e.c._mdf||i)&&r.pElem.setAttribute("stroke","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i)&&r.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||i)&&(r.pElem.setAttribute("stroke-width",e.w.v),r.msElem&&r.msElem.setAttribute("stroke-width",e.w.v))}return{createRenderFunction:function(t){switch(t.ty){case"fl":return n;case"gf":return o;case"gs":return s;case"st":return l;case"sh":case"el":case"rc":case"sr":return a;case"tr":return i;case"no":return r;default:return null}}}}();function SVGShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,i),this.prevViewData=[]}function LetterProps(t,e,i,r,a,n){this.o=t,this.sw=e,this.sc=i,this.fc=r,this.m=a,this.p=n,this._mdf={o:!0,sw:!!e,sc:!!i,fc:!!r,m:!0,p:!0}}function TextProperty(t,e){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,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:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}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,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var t,e,i,r,a=this.shapes.length,n=this.stylesList.length,s=[],o=!1;for(i=0;i1&&o&&this.setShapesAsAnimated(s)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,i=t.length;for(e=0;e=0;o-=1){if((u=this.searchProcessedElement(t[o]))?e[o]=i[u-1]:t[o]._render=s,"fl"===t[o].ty||"st"===t[o].ty||"gf"===t[o].ty||"gs"===t[o].ty||"no"===t[o].ty)u?e[o].style.closed=!1:e[o]=this.createStyleElement(t[o],a),t[o]._render&&e[o].style.pElem.parentNode!==r&&r.appendChild(e[o].style.pElem),d.push(e[o].style);else if("gr"===t[o].ty){if(u)for(p=e[o].it.length,l=0;l1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),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){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,i=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var r;this.lock=!0,this._mdf=!1;var a=this.effectsSequence.length,n=t||this.data.d.k[this.keysIndex].s;for(r=0;re);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e,i,r=[],a=0,n=t.length,s=!1;a=55296&&e<=56319?(i=t.charCodeAt(a+1))>=56320&&i<=57343?(s||FontManager.isModifier(e,i)?(r[r.length-1]+=t.substr(a,2),s=!1):r.push(t.substr(a,2)),a+=1):r.push(t.charAt(a)):e>56319?(i=t.charCodeAt(a+1),FontManager.isZeroWidthJoiner(e,i)?(s=!0,r[r.length-1]+=t.substr(a,2),a+=1):r.push(t.charAt(a))):FontManager.isZeroWidthJoiner(e)?(r[r.length-1]+=t.charAt(a),s=!0):r.push(t.charAt(a)),a+=1;return r},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e,i,r,a,n,s,o,l=this.elem.globalData.fontManager,p=this.data,h=[],c=0,u=p.m.g,f=0,m=0,d=0,x=[],y=0,k=0,g=l.getFontByName(t.f),v=0,_=getFontProperties(g);t.fWeight=_.weight,t.fStyle=_.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),i=t.finalText.length,t.finalLineHeight=t.lh;var E,b=t.tr/1e3*t.finalSize;if(t.sz)for(var S,A,D=!0,P=t.sz[0],G=t.sz[1];D;){S=0,y=0,i=(A=this.buildFinalText(t.t)).length,b=t.tr/1e3*t.finalSize;var B=-1;for(e=0;eP&&" "!==A[e]?(-1===B?i+=1:e=B,S+=t.finalLineHeight||1.2*t.finalSize,A.splice(e,B===e?1:0,"\r"),B=-1,y=0):(y+=v,y+=b);S+=g.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&Gk?y:k,y=-2*b,a="",r=!0,d+=1):a=V,l.chars?(o=l.getCharData(V,g.fStyle,l.getFontByName(t.f).fFamily),v=r?0:o.w*t.finalSize/100):v=l.measureText(a,t.f,t.finalSize)," "===V?F+=v+b:(y+=v+b+F,F=0),h.push({l:v,an:v,add:f,n:r,anIndexes:[],val:a,line:d,animatorJustifyOffset:0}),2==u){if(f+=v,""===a||" "===a||e===i-1){for(""!==a&&" "!==a||(f-=v);m<=e;)h[m].an=f,h[m].ind=c,h[m].extra=v,m+=1;c+=1,f=0}}else if(3==u){if(f+=v,""===a||e===i-1){for(""===a&&(f-=v);m<=e;)h[m].an=f,h[m].ind=c,h[m].extra=v,m+=1;f=0,c+=1}}else h[c].ind=c,h[c].extra=0,c+=1;if(t.l=h,k=y>k?y:k,x.push(y),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=k,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=x;var T,w,C,M,I=p.a;s=I.length;var R=[];for(n=0;n0?a=this.ne.v/100:n=-this.ne.v/100,this.xe.v>0?s=1-this.xe.v/100:o=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(a,n,s,o).get,p=0,h=this.finalS,c=this.finalE,u=this.data.sh;if(2===u)p=l(p=c===h?r>=c?1:0:t(0,e(.5/(c-h)+(r-h)/(c-h),1)));else if(3===u)p=l(p=c===h?r>=c?0:1:1-t(0,e(.5/(c-h)+(r-h)/(c-h),1)));else if(4===u)c===h?p=0:(p=t(0,e(.5/(c-h)+(r-h)/(c-h),1)))<.5?p*=2:p=1-2*(p-.5),p=l(p);else if(5===u){if(c===h)p=0;else{var f=c-h,m=-f/2+(r=e(t(0,r+.5-h),c-h)),d=f/2;p=Math.sqrt(1-m*m/(d*d))}p=l(p)}else 6===u?(c===h?p=0:(r=e(t(0,r+.5-h),c-h),p=(1+Math.cos(Math.PI+2*Math.PI*r/(c-h)))/2),p=l(p)):(r>=i(h)&&(p=t(0,e(r-h<0?e(c,1)-(h-r):c-r,1))),p=l(p));if(100!==this.sm.v){var x=.01*this.sm.v;0===x&&(x=1e-8);var y=.5-.5*x;p1&&(p=1)}return p*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,i=this.o.v/e,r=this.s.v/e+i,a=this.e.v/e+i;if(r>a){var n=r;r=a,a=n}this.finalS=r,this.finalE=a}},extendPrototype([DynamicPropertyContainer],r),{getTextSelectorProp:function(t,e,i){return new r(t,e,i)}}}();function TextAnimatorDataProperty(t,e,i){var r={propType:!1},a=PropertyFactory.getProp,n=e.a;this.a={r:n.r?a(t,n.r,0,degToRads,i):r,rx:n.rx?a(t,n.rx,0,degToRads,i):r,ry:n.ry?a(t,n.ry,0,degToRads,i):r,sk:n.sk?a(t,n.sk,0,degToRads,i):r,sa:n.sa?a(t,n.sa,0,degToRads,i):r,s:n.s?a(t,n.s,1,.01,i):r,a:n.a?a(t,n.a,1,0,i):r,o:n.o?a(t,n.o,0,.01,i):r,p:n.p?a(t,n.p,1,0,i):r,sw:n.sw?a(t,n.sw,0,0,i):r,sc:n.sc?a(t,n.sc,1,0,i):r,fc:n.fc?a(t,n.fc,1,0,i):r,fh:n.fh?a(t,n.fh,0,0,i):r,fs:n.fs?a(t,n.fs,0,.01,i):r,fb:n.fb?a(t,n.fb,0,.01,i):r,t:n.t?a(t,n.t,0,0,i):r},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,i),this.s.t=e.s.t}function TextAnimatorProperty(t,e,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=i,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var t,e,i=this._textData.a.length,r=PropertyFactory.getProp;for(t=0;t=o+ot||!m?(k=(o+ot-p)/l.partialLength,L=f.point[0]+(l.point[0]-f.point[0])*k,z=f.point[1]+(l.point[1]-f.point[1])*k,S.translate(-_[0]*P[a].an*.005,-_[1]*M*.01),h=!1):m&&(p+=l.partialLength,(c+=1)>=m.length&&(c=0,d[u+=1]?m=d[u].points:v.v.c?(c=0,m=d[u=0].points):(p-=l.partialLength,m=null)),m&&(f=l,x=(l=m[c]).partialLength));R=P[a].an/2-P[a].add,S.translate(-R,0,0)}else R=P[a].an/2-P[a].add,S.translate(-R,0,0),S.translate(-_[0]*P[a].an*.005,-_[1]*M*.01,0);for(F=0;Ft?this.textSpans[t].span:createNS(l?"g":"text"),x<=t){if(s.setAttribute("stroke-linecap","butt"),s.setAttribute("stroke-linejoin","round"),s.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=s,l){var y=createNS("g");s.appendChild(y),this.textSpans[t].childSpan=y}this.textSpans[t].span=s,this.layerElement.appendChild(s)}s.style.display="inherit"}if(p.reset(),h&&(o[t].n&&(c=-m,u+=i.yOffset,u+=f?1:0,f=!1),this.applyTextPropertiesToMatrix(i,p,o[t].line,c,u),c+=o[t].l||0,c+=m),l){var k;if(1===(d=this.globalData.fontManager.getCharData(i.finalText[t],r.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily)).t)k=new SVGCompElement(d.data,this.globalData,this);else{var g=emptyShapeData;d.data&&d.data.shapes&&(g=this.buildShapeData(d.data,i.finalSize)),k=new SVGShapeElement(g,this.globalData,this)}if(this.textSpans[t].glyph){var v=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(v.layerElement),v.destroy()}this.textSpans[t].glyph=k,k._debug=!0,k.prepareFrame(0),k.renderFrame(),this.textSpans[t].childSpan.appendChild(k.layerElement),1===d.t&&this.textSpans[t].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")")}else h&&s.setAttribute("transform","translate("+p.props[12]+","+p.props[13]+")"),s.textContent=o[t].val,s.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}h&&s&&s.setAttribute("d","")}else{var _=this.textContainer,E="start";switch(i.j){case 1:E="end";break;case 2:E="middle";break;default:E="start"}_.setAttribute("text-anchor",E),_.setAttribute("letter-spacing",m);var b=this.buildTextContents(i.finalText);for(e=b.length,u=i.ps?i.ps[1]+i.ascent:0,t=0;t=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e=0;i-=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t=0;r-=1)i=t.transforms[r].transform.mProps.v.props,t.finalTransform.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]);t._mdf=n},processSequences:function(t){var e,i=this.sequenceList.length;for(e=0;e=0;n-=1){if((l=this.searchProcessedElement(t[n]))?e[n]=i[l-1]:t[n]._shouldRender=r,"fl"===t[n].ty||"st"===t[n].ty||"gf"===t[n].ty||"gs"===t[n].ty)l?e[n].style.closed=!1:e[n]=this.createStyleElement(t[n],m),u.push(e[n].style);else if("gr"===t[n].ty){if(l)for(o=e[n].it.length,s=0;s=0;a-=1)"tr"===e[a].ty?(n=i[a].transform,this.renderShapeTransform(t,n)):"sh"===e[a].ty||"el"===e[a].ty||"rc"===e[a].ty||"sr"===e[a].ty?this.renderPath(e[a],i[a]):"fl"===e[a].ty?this.renderFill(e[a],i[a],n):"st"===e[a].ty?this.renderStroke(e[a],i[a],n):"gf"===e[a].ty||"gs"===e[a].ty?this.renderGradientFill(e[a],i[a],n):"gr"===e[a].ty?this.renderShape(n,e[a].it,i[a].it):e[a].ty;r&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var i,r,a,n=t.trNodes,s=e.paths,o=s._length;n.length=0;var l=t.transforms.finalTransform;for(a=0;a=1?c=.99:c<=-1&&(c=-.99);var u=p*c,f=Math.cos(h+e.a.v)*u+o[0],m=Math.sin(h+e.a.v)*u+o[1];r=s.createRadialGradient(f,m,0,o[0],o[1],p)}var d=t.g.p,x=e.g.c,y=1;for(n=0;no&&"xMidYMid slice"===l||si&&"meet"===n||ri&&"slice"===n)?(t-this.transformCanvas.w*(e/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===o&&(ri&&"slice"===n)?(t-this.transformCanvas.w*(e/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===l&&(r>i&&"meet"===n||ri&&"meet"===n||r=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(t,e){if((this.renderedFrame!==t||!0!==this.renderConfig.clearCanvas||e)&&!this.destroyed&&-1!==t){var i;this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var r=this.layers.length;for(this.completeLayers||this.checkLayers(t),i=0;i=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){var i=this.createItem(this.layers[t],this,this.globalData);e[t]=i,i.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var t,e=this.canvasContext;for(e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip(),t=this.layers.length-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){var t;for(t=this.layers.length-1;t>=0;t-=1)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)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),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)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var t=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var e=this.finalTransform.mat.toCSS();t.transform=e,t.webkitTransform=e}this.finalTransform._opMdf&&(t.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var t;this.data.hasMask?((t=createNS("rect")).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)):((t=createTag("div")).style.width=this.data.sw+"px",t.style.height=this.data.sh+"px",t.style.backgroundColor=this.data.sc),this.layerElement.appendChild(t)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var t;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),t=this.svgElement;else{t=createNS("svg");var e=this.comp.data?this.comp.data:this.globalData.compSize;t.setAttribute("width",e.w),t.setAttribute("height",e.h),t.appendChild(this.shapesContainer),this.layerElement.appendChild(t)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=t},HShapeElement.prototype.getTransformedPoint=function(t,e){var i,r=t.length;for(i=0;i0&&o<1&&c[u].push(this.calculateF(o,t,e,i,r,u)):(l=n*n-4*s*a)>=0&&((p=(-n+bmSqrt(l))/(2*a))>0&&p<1&&c[u].push(this.calculateF(p,t,e,i,r,u)),(h=(-n-bmSqrt(l))/(2*a))>0&&h<1&&c[u].push(this.calculateF(h,t,e,i,r,u))));this.shapeBoundingBox.left=bmMin.apply(null,c[0]),this.shapeBoundingBox.top=bmMin.apply(null,c[1]),this.shapeBoundingBox.right=bmMax.apply(null,c[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,c[1])},HShapeElement.prototype.calculateF=function(t,e,i,r,a,n){return bmPow(1-t,3)*e[n]+3*bmPow(1-t,2)*t*i[n]+3*(1-t)*bmPow(t,2)*r[n]+bmPow(t,3)*a[n]},HShapeElement.prototype.calculateBoundingBox=function(t,e){var i,r=t.length;for(i=0;ii&&(i=a)}i*=t.mult}else i=t.v*t.mult;e.x-=i,e.xMax+=i,e.y-=i,e.yMax+=i},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(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox,e=999999;if(t.x=e,t.xMax=-e,t.y=e,t.yMax=-e,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMax=0;t-=1){var r=this.hierarchy[t].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]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var a;a=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[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(a[0],2)+Math.pow(a[1],2)+Math.pow(a[2],2)),s=[a[0]/n,a[1]/n,a[2]/n],o=Math.sqrt(s[2]*s[2]+s[0]*s[0]),l=Math.atan2(s[1],o),p=Math.atan2(s[0],-s[2]);this.mat.rotateY(p).rotateX(-l)}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 h=!this._prevMat.equals(this.mat);if((h||this.pe._mdf)&&this.comp.threeDElements){var c,u,f;for(e=this.comp.threeDElements.length,t=0;t=t)return this.threeDElements[e].perspectiveElem;e+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(t,e){var i,r,a=createTag("div");styleDiv(a);var n=createTag("div");if(styleDiv(n),"3d"===e){(i=a.style).width=this.globalData.compSize.w+"px",i.height=this.globalData.compSize.h+"px";var s="50% 50%";i.webkitTransformOrigin=s,i.mozTransformOrigin=s,i.transformOrigin=s;var o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(r=n.style).transform=o,r.webkitTransform=o}a.appendChild(n);var l={container:n,perspectiveElem:a,startPos:t,endPos:t,type:e};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var t,e,i=this.layers.length,r="";for(t=0;t=0;t-=1)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(t,e){for(var i=0,r=this.threeDElements.length;is?(t=a/this.globalData.compSize.w,e=a/this.globalData.compSize.w,i=0,r=(n-this.globalData.compSize.h*(a/this.globalData.compSize.w))/2):(t=n/this.globalData.compSize.h,e=n/this.globalData.compSize.h,i=(a-this.globalData.compSize.w*(n/this.globalData.compSize.h))/2,r=0);var o=this.resizerElem.style;o.webkitTransform="matrix3d("+t+",0,0,0,0,"+e+",0,0,0,0,1,0,"+i+","+r+",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(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var t,e=this.globalData.compSize.w,i=this.globalData.compSize.h,r=this.threeDElements.length;for(t=0;t=s;)t/=2,e/=2,i>>>=1;return(t+i)/e};return k.int32=function(){return 0|y.g(4)},k.quick=function(){return y.g(4)/4294967296},k.double=k,c(u(y.S),t),(f.pass||m||function(t,i,r,a){return a&&(a.S&&p(a,y),t.state=function(){return p(y,{})}),r?(e.random=t,i):t})(k,x,"global"in f?f.global:this==e,f.state)},c(e.random(),t)}function initialize$2(t){seedRandom([],t)}var propTypes={SHAPE:"shape"};function _typeof(t){return _typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null;function $bm_isInstanceOfArray(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,e){return"number"===t||"boolean"===t||"string"===t||e instanceof Number}function $bm_neg(t){var e=_typeof(t);if("number"===e||"boolean"===e||t instanceof Number)return-t;if($bm_isInstanceOfArray(t)){var i,r=t.length,a=[];for(i=0;ii){var r=i;i=e,e=r}return Math.min(Math.max(t,e),i)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if("number"===typeof t||t instanceof Number)return e=e||0,Math.abs(t-e);var i;e||(e=helperLengthArray);var r=Math.min(t.length,e.length),a=0;for(i=0;i.5?p/(2-s-o):p/(s+o),s){case r:e=(a-n)/p+(a1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function hslToRgb(t){var e,i,r,a=t[0],n=t[1],s=t[2];if(0===n)e=s,r=s,i=s;else{var o=s<.5?s*(1+n):s+n-s*n,l=2*s-o;e=hue2rgb(l,o,a+1/3),i=hue2rgb(l,o,a),r=hue2rgb(l,o,a-1/3)}return[e,i,r,t[3]]}function linear(t,e,i,r,a){if(void 0!==r&&void 0!==a||(r=e,a=i,e=0,i=1),i=i)return a;var s,o=i===e?0:(t-e)/(i-e);if(!r.length)return r+(a-r)*o;var l=r.length,p=createTypedArray("float32",l);for(s=0;s1){for(r=0;r1?e=1:e<0&&(e=0);var s=t(e);if($bm_isInstanceOfArray(a)){var o,l=a.length,p=createTypedArray("float32",l);for(o=0;odata.k[e].t&&tdata.k[e+1].t-t?(i=e+2,r=data.k[e+1].t):(i=e+1,r=data.k[e].t);break}}-1===i&&(i=e+1,r=data.k[e].t)}else i=0,r=0;var n={};return n.index=i,n.time=r/elem.comp.globalData.frameRate,n}function key(t){var e,i,r;if(!data.k.length||"number"===typeof data.k[0])throw new Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var a=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;for(r=a.length,i=0;ip.length-1)&&(e=p.length-1),r=h-(a=p[p.length-1-e].t)),"pingpong"===t){if(Math.floor((l-a)/r)%2!==0)return this.getValueAtTime((r-(l-a)%r+a)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var c=this.getValueAtTime(a/this.comp.globalData.frameRate,0),u=this.getValueAtTime(h/this.comp.globalData.frameRate,0),f=this.getValueAtTime(((l-a)%r+a)/this.comp.globalData.frameRate,0),m=Math.floor((l-a)/r);if(this.pv.length){for(s=(o=new Array(c.length)).length,n=0;n=h)return this.pv;if(i?a=h+(r=e?Math.abs(this.elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-h)):((!e||e>p.length-1)&&(e=p.length-1),r=(a=p[e].t)-h),"pingpong"===t){if(Math.floor((h-l)/r)%2===0)return this.getValueAtTime(((h-l)%r+h)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var c=this.getValueAtTime(h/this.comp.globalData.frameRate,0),u=this.getValueAtTime(a/this.comp.globalData.frameRate,0),f=this.getValueAtTime((r-(h-l)%r+h)/this.comp.globalData.frameRate,0),m=Math.floor((h-l)/r)+1;if(this.pv.length){for(s=(o=new Array(c.length)).length,n=0;n1?(a+t-n)/(e-1):1,o=0,l=0;for(i=this.pv.length?createTypedArray("float32",this.pv.length):0;os){var h=o,c=i.c&&o===l-1?0:o+1,u=(s-p)/n[o].addedLength;r=bez.getPointInSegment(i.v[h],i.v[c],i.o[h],i.i[c],u,n[o]);break}p+=n[o].addedLength,o+=1}return r||(r=i.c?[i.v[0][0],i.v[0][1]]:[i.v[i._length-1][0],i.v[i._length-1][1]]),r},vectorOnPath:function(t,e,i){1==t?t=this.v.c:0==t&&(t=.999);var r=this.pointOnPath(t,e),a=this.pointOnPath(t+.001,e),n=a[0]-r[0],s=a[1]-r[1],o=Math.sqrt(Math.pow(n,2)+Math.pow(s,2));return 0===o?[0,0]:"tangent"===i?[n/o,s/o]:[-s/o,n/o]},tangentOnPath:function(t,e){return this.vectorOnPath(t,e,"tangent")},normalOnPath:function(t,e){return this.vectorOnPath(t,e,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([p],o),extendPrototype([p],l),l.prototype.getValueAtTime=function(t){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime=p?f<0?r:a:r+u*Math.pow((n-t)/f,1/i),h[c]=s,c+=1,o+=256/255;return h.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,i=this.filterManager.effectElements;this.feFuncRComposed&&(t||i[3].p._mdf||i[4].p._mdf||i[5].p._mdf||i[6].p._mdf||i[7].p._mdf)&&(e=this.getTableValue(i[3].p.v,i[4].p.v,i[5].p.v,i[6].p.v,i[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||i[10].p._mdf||i[11].p._mdf||i[12].p._mdf||i[13].p._mdf||i[14].p._mdf)&&(e=this.getTableValue(i[10].p.v,i[11].p.v,i[12].p.v,i[13].p.v,i[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||i[17].p._mdf||i[18].p._mdf||i[19].p._mdf||i[20].p._mdf||i[21].p._mdf)&&(e=this.getTableValue(i[17].p.v,i[18].p.v,i[19].p.v,i[20].p.v,i[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||i[24].p._mdf||i[25].p._mdf||i[26].p._mdf||i[27].p._mdf||i[28].p._mdf)&&(e=this.getTableValue(i[24].p.v,i[25].p.v,i[26].p.v,i[27].p.v,i[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||i[31].p._mdf||i[32].p._mdf||i[33].p._mdf||i[34].p._mdf||i[35].p._mdf)&&(e=this.getTableValue(i[31].p.v,i[32].p.v,i[33].p.v,i[34].p.v,i[35].p.v),this.feFuncA.setAttribute("tableValues",e))}},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),t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*e[0]),Math.round(255*e[1]),Math.round(255*e[2])))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var i=this.filterManager.effectElements[3].p.v,r=(this.filterManager.effectElements[2].p.v-90)*degToRads,a=i*Math.cos(r),n=i*Math.sin(r);this.feOffset.setAttribute("dx",a),this.feOffset.setAttribute("dy",n)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,i){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=i,i.matteElement=createNS("g"),i.matteElement.appendChild(i.layerElement),i.matteElement.appendChild(i.transformedElement),i.baseElement=i.matteElement}function SVGGaussianBlurEffect(t,e,i,r){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","300%"),t.setAttribute("height","300%"),this.filterManager=e;var a=createNS("feGaussianBlur");a.setAttribute("result",r),t.appendChild(a),this.feGaussianBlur=a}return SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,i=_svgMatteSymbols.length;e