@aarsteinmedia/dotlottie-player 5.0.3 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/index.js +20 -29
- package/dist/unpkg.js +8 -2
- package/package.json +6 -7
package/dist/unpkg.js
CHANGED
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
!function(exports){"use strict";let idPrefix={current:""},getIDPrefix=()=>idPrefix.current,isServer$1=()=>!("undefined"!=typeof window&&window.document),createElementID=function(){let t=0;return()=>(t++,`${getIDPrefix()}__lottie_element_${t}`)}();var hasRequiredLottie,PreserveAspectRatio$1=function(t){return t.Contain="xMidYMid meet",t.Cover="xMidYMid slice",t.Initial="none",t.None="xMinYMin slice",t}({});function getDefaultExportFromCjs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var lottie$1={exports:{}},lottie=lottie$1.exports;function requireLottie(){return hasRequiredLottie||(hasRequiredLottie=1,!function(module,exports){"undefined"!=typeof document&&"undefined"!=typeof navigator&&function(t,e){module.exports=e()}(0,function(){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,s,r=t.length;for(i=0;i<r;i+=1)for(var n in s=t[i].prototype)Object.prototype.hasOwnProperty.call(s,n)&&(e.prototype[n]=s[n])}function getDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)}function createProxyFunction(t){function e(){}return e.prototype=t,e}var audioControllerFactory=function(){function t(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(t){this.audios.push(t)},pause:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].pause()},resume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].resume()},setRate:function(t){var e,i=this.audios.length;for(e=0;e<i;e+=1)this.audios[e].setRate(t)},createAudio:function(t){return this.audioFactory?this.audioFactory(t):window.Howl?new window.Howl({src:[t]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(t){this.audioFactory=t},setVolume:function(t){this._volume=t,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].volume(!this._isMuted*this._volume)}},function(){return new t}}(),createTypedArray=function(){function t(t,e){var i,s=0,r=[];switch(t){case"int16":case"uint8c":i=1;break;default:i=1.1}for(s=0;s<e;s+=1)r.push(i);return r}function e(e,i){return"float32"===e?new Float32Array(i):"int16"===e?new Int16Array(i):"uint8c"===e?new Uint8ClampedArray(i):t(e,i)}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?e:t}();function createSizedArray(t){return Array.apply(null,{length:t})}function _typeof$6(t){return(_typeof$6="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})(t)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};!function(){var t,e=["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"],i=e.length;for(t=0;t<i;t+=1)BMMath[e[t]]=Math[e[t]]}(),BMMath.random=Math.random,BMMath.abs=function(t){if("object"===_typeof$6(t)&&t.length){var e,i=createSizedArray(t.length),s=t.length;for(e=0;e<s;e+=1)i[e]=Math.abs(t[e]);return i}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,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,e,i,s){this.type=t,this.currentTime=e,this.totalTime=i,this.direction=s<0?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,i,s){this.type=t,this.currentLoop=i,this.totalLoops=e,this.direction=s<0?-1:1}function BMSegmentStartEvent(t,e,i){this.type=t,this.firstFrame=e,this.totalFrames=i}function BMDestroyEvent(t,e){this.type=t,this.target=e}function BMRenderFrameErrorEvent(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function BMConfigErrorEvent(t){this.type="configError",this.nativeError=t}var createElementID=function(){var t=0;return function(){return t+=1,idPrefix$1+"__lottie_element_"+t}}();function HSVtoRGB(t,e,i){var s,r,n,a,o,h,l,p;switch(a=Math.floor(6*t),o=6*t-a,h=i*(1-e),l=i*(1-o*e),p=i*(1-(1-o)*e),a%6){case 0:s=i,r=p,n=h;break;case 1:s=l,r=i,n=h;break;case 2:s=h,r=i,n=p;break;case 3:s=h,r=l,n=i;break;case 4:s=p,r=h,n=i;break;case 5:s=i,r=h,n=l}return[s,r,n]}function RGBtoHSV(t,e,i){var s,r=Math.max(t,e,i),n=Math.min(t,e,i),a=r-n,o=0===r?0:a/r,h=r/255;switch(r){case n:s=0;break;case t:s=(e-i+6*(e<i)*a)/(6*a);break;case e:s=(i-t+2*a)/(6*a);break;case i:s=(t-e+4*a)/(6*a)}return[s,o,h]}function addSaturationToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[1]+=e,i[1]>1?i[1]=1:i[1]<=0&&(i[1]=0),HSVtoRGB(i[0],i[1],i[2])}function addBrightnessToRGB(t,e){var i=RGBtoHSV(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,s){return t<0&&(t=0),e<0&&(e=0),s<0&&(s=0),"#"+i[t]+i[e]+i[s]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t};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})(t)}var dataManager=function(){var t,e,i=1,s=[],r={onmessage:function(){},postMessage:function(e){t({data:e})}},n={postMessage:function(t){r.onmessage({data:t})}};function a(e){if(window.Worker&&window.Blob&&getWebWorker()){var i=new Blob(["var _workerSelf = self; self.onmessage = ",e.toString()],{type:"text/javascript"});return new Worker(URL.createObjectURL(i))}return t=e,r}function o(){e||((e=a(function(t){function e(){function t(e,i){var a,o,h,l,p,f,u=e.length;for(o=0;o<u;o+=1)if("ks"in(a=e[o])&&!a.completed){if(a.completed=!0,a.hasMask){var m=a.masksProperties;for(h=0,l=m.length;h<l;h+=1)if(m[h].pt.k.i)n(m[h].pt.k);else for(p=0,f=m[h].pt.k.length;p<f;p+=1)m[h].pt.k[p].s&&n(m[h].pt.k[p].s[0]),m[h].pt.k[p].e&&n(m[h].pt.k[p].e[0])}0===a.ty?(a.layers=s(a.refId,i),t(a.layers,i)):4===a.ty?r(a.shapes):5===a.ty&&c(a)}}function e(e,i){if(e){var r=0,n=e.length;for(r=0;r<n;r+=1)1===e[r].t&&(e[r].data.layers=s(e[r].data.refId,i),t(e[r].data.layers,i))}}function i(t,e){for(var i=0,s=e.length;i<s;){if(e[i].id===t)return e[i];i+=1}return null}function s(t,e){var s=i(t,e);return s?s.layers.__used?JSON.parse(JSON.stringify(s.layers)):(s.layers.__used=!0,s.layers):null}function r(t){var e,i,s;for(e=t.length-1;e>=0;e-=1)if("sh"===t[e].ty)if(t[e].ks.k.i)n(t[e].ks.k);else for(i=0,s=t[e].ks.k.length;i<s;i+=1)t[e].ks.k[i].s&&n(t[e].ks.k[i].s[0]),t[e].ks.k[i].e&&n(t[e].ks.k[i].e[0]);else"gr"===t[e].ty&&r(t[e].it)}function n(t){var e,i=t.i.length;for(e=0;e<i;e+=1)t.i[e][0]+=t.v[e][0],t.i[e][1]+=t.v[e][1],t.o[e][0]+=t.v[e][0],t.o[e][1]+=t.v[e][1]}function a(t,e){var i=e?e.split("."):[100,100,100];return t[0]>i[0]||!(i[0]>t[0])&&(t[1]>i[1]||!(i[1]>t[1])&&(t[2]>i[2]||!(i[2]>t[2])&&null))}var o=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,s=t.length;for(i=0;i<s;i+=1)5===t[i].ty&&e(t[i])}return function(e){if(a(t,e.v)&&(i(e.layers),e.assets)){var s,r=e.assets.length;for(s=0;s<r;s+=1)e.assets[s].layers&&i(e.assets[s].layers)}}}(),h=function(){var t=[4,7,99];return function(e){if(e.chars&&!a(t,e.v)){var i,s=e.chars.length;for(i=0;i<s;i+=1){var n=e.chars[i];n.data&&n.data.shapes&&(r(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}},e.chars[i].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"})))}}}}(),l=function(){var t=[5,7,15];function e(t){var e=t.t.p;"number"==typeof e.a&&(e.a={a:0,k:e.a}),"number"==typeof e.p&&(e.p={a:0,k:e.p}),"number"==typeof e.r&&(e.r={a:0,k:e.r})}function i(t){var i,s=t.length;for(i=0;i<s;i+=1)5===t[i].ty&&e(t[i])}return function(e){if(a(t,e.v)&&(i(e.layers),e.assets)){var s,r=e.assets.length;for(s=0;s<r;s+=1)e.assets[s].layers&&i(e.assets[s].layers)}}}(),p=function(){var t=[4,1,9];function e(t){var i,s,r,n=t.length;for(i=0;i<n;i+=1)if("gr"===t[i].ty)e(t[i].it);else if("fl"===t[i].ty||"st"===t[i].ty)if(t[i].c.k&&t[i].c.k[0].i)for(s=0,r=t[i].c.k.length;s<r;s+=1)t[i].c.k[s].s&&(t[i].c.k[s].s[0]/=255,t[i].c.k[s].s[1]/=255,t[i].c.k[s].s[2]/=255,t[i].c.k[s].s[3]/=255),t[i].c.k[s].e&&(t[i].c.k[s].e[0]/=255,t[i].c.k[s].e[1]/=255,t[i].c.k[s].e[2]/=255,t[i].c.k[s].e[3]/=255);else t[i].c.k[0]/=255,t[i].c.k[1]/=255,t[i].c.k[2]/=255,t[i].c.k[3]/=255}function i(t){var i,s=t.length;for(i=0;i<s;i+=1)4===t[i].ty&&e(t[i].shapes)}return function(e){if(a(t,e.v)&&(i(e.layers),e.assets)){var s,r=e.assets.length;for(s=0;s<r;s+=1)e.assets[s].layers&&i(e.assets[s].layers)}}}(),f=function(){var t=[4,4,18];function e(t){var i,s,r;for(i=t.length-1;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(s=0,r=t[i].ks.k.length;s<r;s+=1)t[i].ks.k[s].s&&(t[i].ks.k[s].s[0].c=t[i].closed),t[i].ks.k[s].e&&(t[i].ks.k[s].e[0].c=t[i].closed);else"gr"===t[i].ty&&e(t[i].it)}function i(t){var i,s,r,n,a,o,h=t.length;for(s=0;s<h;s+=1){if((i=t[s]).hasMask){var l=i.masksProperties;for(r=0,n=l.length;r<n;r+=1)if(l[r].pt.k.i)l[r].pt.k.c=l[r].cl;else for(a=0,o=l[r].pt.k.length;a<o;a+=1)l[r].pt.k[a].s&&(l[r].pt.k[a].s[0].c=l[r].cl),l[r].pt.k[a].e&&(l[r].pt.k[a].e[0].c=l[r].cl)}4===i.ty&&e(i.shapes)}}return function(e){if(a(t,e.v)&&(i(e.layers),e.assets)){var s,r=e.assets.length;for(s=0;s<r;s+=1)e.assets[s].layers&&i(e.assets[s].layers)}}}();function c(t){0===t.t.a.length&&t.t.p}var u={};return u.completeData=function(i){i.__complete||(p(i),o(i),h(i),l(i),f(i),t(i.layers,i.assets),e(i.chars,i.assets),i.__complete=!0)},u.checkColors=p,u.checkChars=h,u.checkPathProperties=l,u.checkShapes=f,u.completeLayers=t,u}if(n.dataManager||(n.dataManager=e()),n.assetLoader||(n.assetLoader=function(){function t(t){var e=t.getResponseHeader("content-type");return e&&"json"===t.responseType&&-1!==e.indexOf("json")||t.response&&"object"===_typeof$5(t.response)?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):null}return{load:function(e,i,s,r){var n,a=new XMLHttpRequest;try{a.responseType="json"}catch(t){}a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status)s(n=t(a));else try{n=t(a),s(n)}catch(t){r&&r(t)}};try{a.open("GET",e,!0)}catch(t){a.open("GET",i+"/"+e,!0)}a.send()}}}()),"loadAnimation"===t.data.type)n.assetLoader.load(t.data.path,t.data.fullPath,function(e){n.dataManager.completeData(e),n.postMessage({id:t.data.id,payload:e,status:"success"})},function(){n.postMessage({id:t.data.id,status:"error"})});else if("complete"===t.data.type){var i=t.data.animation;n.dataManager.completeData(i),n.postMessage({id:t.data.id,payload:i,status:"success"})}else"loadData"===t.data.type&&n.assetLoader.load(t.data.path,t.data.fullPath,function(e){n.postMessage({id:t.data.id,payload:e,status:"success"})},function(){n.postMessage({id:t.data.id,status:"error"})})})).onmessage=function(t){var e=t.data,i=e.id,r=s[i];s[i]=null,"success"===e.status?r.onComplete(e.payload):r.onError&&r.onError()})}function h(t,e){var r="processId_"+(i+=1);return s[r]={onComplete:t,onError:e},r}return{loadAnimation:function(t,i,s){o();var r=h(i,s);e.postMessage({type:"loadAnimation",path:t,fullPath:window.location.origin+window.location.pathname,id:r})},loadData:function(t,i,s){o();var r=h(i,s);e.postMessage({type:"loadData",path:t,fullPath:window.location.origin+window.location.pathname,id:r})},completeAnimation:function(t,i,s){o();var r=h(i,s);e.postMessage({type:"complete",animation:t,id:r})}}}(),ImagePreloader=function(){var t=function(){var t=createTag("canvas");t.width=1,t.height=1;var e=t.getContext("2d");return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),t}();function e(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function s(t,e,i){var s="";if(t.e)s=t.p;else if(e){var r=t.p;-1!==r.indexOf("images/")&&(r=r.split("/")[1]),s=e+r}else s=i+(t.u?t.u:"")+t.p;return s}function r(t){var e=0,i=setInterval((function(){(t.getBBox().width||e>500)&&(this._imageLoaded(),clearInterval(i)),e+=1}).bind(this),50)}function n(t){var e={assetData:t},i=s(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 a(){this._imageLoaded=e.bind(this),this._footageLoaded=i.bind(this),this.testImageLoaded=r.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 a.prototype={loadAssets:function(t,e){this.imagesLoadedCb=e;var i,s=t.length;for(i=0;i<s;i+=1)t[i].layers||(t[i].t&&"seq"!==t[i].t?3===t[i].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(t[i]))):(this.totalImages+=1,this.images.push(this._createImageData(t[i]))))},setAssetsPath:function(t){this.assetsPath=t||""},setPath:function(t){this.path=t||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(t){for(var e=0,i=this.images.length;e<i;){if(this.images[e].assetData===t)return this.images[e].img;e+=1}return null},createImgData:function(e){var i=s(e,this.assetsPath,this.path),r=createTag("img");r.crossOrigin="anonymous",r.addEventListener("load",this._imageLoaded,!1),r.addEventListener("error",(function(){n.img=t,this._imageLoaded()}).bind(this),!1),r.src=i;var n={img:r,assetData:e};return n},createImageData:function(e){var i=s(e,this.assetsPath,this.path),r=createNS("image");isSafari?this.testImageLoaded(r):r.addEventListener("load",this._imageLoaded,!1),r.addEventListener("error",(function(){n.img=t,this._imageLoaded()}).bind(this),!1),r.setAttributeNS("http://www.w3.org/1999/xlink","href",i),this._elementHelper.append?this._elementHelper.append(r):this._elementHelper.appendChild(r);var n={img:r,assetData:e};return n},imageLoaded:e,footageLoaded:i,setCacheType:function(t,e){"svg"===t?(this._elementHelper=e,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},a}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var i=this._cbs[t],s=0;s<i.length;s+=1)i[s](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),(function(){this.removeEventListener(t,e)}).bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var i=0,s=this._cbs[t].length;i<s;)this._cbs[t][i]===e&&(this._cbs[t].splice(i,1),i-=1,s-=1),i+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var markerParser=function(){function t(t){for(var e,i=t.split("\r\n"),s={},r=0,n=0;n<i.length;n+=1)2===(e=i[n].split(":")).length&&(s[e[0]]=e[1].trim(),r+=1);if(0===r)throw Error();return s}return function(e){for(var i=[],s=0;s<e.length;s+=1){var r=e[s],n={time:r.tm,duration:r.dr};try{n.payload=JSON.parse(e[s].cm)}catch(i){try{n.payload=t(e[s].cm)}catch(t){n.payload={name:e[s].cm}}}i.push(n)}return i}}(),ProjectInterface=function(){function t(t){this.compositions.push(t)}return function(){function e(t){for(var e=0,i=this.compositions.length;e<i;){if(this.compositions[e].data&&this.compositions[e].data.nm===t)return this.compositions[e].prepareFrame&&this.compositions[e].data.xt&&this.compositions[e].prepareFrame(this.currentFrame),this.compositions[e].compInterface;e+=1}return null}return e.compositions=[],e.currentFrame=0,e.registerComposition=t,e}}(),renderers={},registerRenderer=function(t,e){renderers[t]=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){return(_typeof$4="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})(t)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,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=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,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){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e="svg";t.animType?e=t.animType:t.renderer&&(e=t.renderer);var i=getRenderer(e);this.renderer=new i(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,""===t.loop||null===t.loop||void 0===t.loop||!0===t.loop?this.loop=!0:!1===t.loop?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(t,"autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(-1!==t.path.lastIndexOf("\\")?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.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,e){e&&"object"!==_typeof$4(e)&&(e=JSON.parse(e));var i={wrapper:t,animationData:e},s=t.attributes;i.path=s.getNamedItem("data-animation-path")?s.getNamedItem("data-animation-path").value:s.getNamedItem("data-bm-path")?s.getNamedItem("data-bm-path").value:s.getNamedItem("bm-path")?s.getNamedItem("bm-path").value:"",i.animType=s.getNamedItem("data-anim-type")?s.getNamedItem("data-anim-type").value:s.getNamedItem("data-bm-type")?s.getNamedItem("data-bm-type").value:s.getNamedItem("bm-type")?s.getNamedItem("bm-type").value:s.getNamedItem("data-bm-renderer")?s.getNamedItem("data-bm-renderer").value:s.getNamedItem("bm-renderer")?s.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var r=s.getNamedItem("data-anim-loop")?s.getNamedItem("data-anim-loop").value:s.getNamedItem("data-bm-loop")?s.getNamedItem("data-bm-loop").value:s.getNamedItem("bm-loop")?s.getNamedItem("bm-loop").value:"";"false"===r?i.loop=!1:"true"===r?i.loop=!0:""!==r&&(i.loop=parseInt(r,10)),i.autoplay="false"!==(s.getNamedItem("data-anim-autoplay")?s.getNamedItem("data-anim-autoplay").value:s.getNamedItem("data-bm-autoplay")?s.getNamedItem("data-bm-autoplay").value:!s.getNamedItem("bm-autoplay")||s.getNamedItem("bm-autoplay").value),i.name=s.getNamedItem("data-name")?s.getNamedItem("data-name").value:s.getNamedItem("data-bm-name")?s.getNamedItem("data-bm-name").value:s.getNamedItem("bm-name")?s.getNamedItem("bm-name").value:"","false"===(s.getNamedItem("data-anim-prerender")?s.getNamedItem("data-anim-prerender").value:s.getNamedItem("data-bm-prerender")?s.getNamedItem("data-bm-prerender").value:s.getNamedItem("bm-prerender")?s.getNamedItem("bm-prerender").value:"")&&(i.prerender=!1),i.path?this.setParams(i):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,i,s=this.animationData.layers,r=s.length,n=t.layers,a=n.length;for(i=0;i<a;i+=1)for(e=0;e<r;){if(s[e].id===n[i].id){s[e]=n[i];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(e=0,r=t.assets.length;e<r;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(t){this.animationData=t;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var e=t.shift();this.timeCompleted=e.time*this.frameRate;var i=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(i,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(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)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),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(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(t,e){var i="number"==typeof t?t:void 0,s="number"==typeof e?e:void 0;this.renderer.updateContainerSize(i,s)},AnimationItem.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,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(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),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("_play"),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("_pause"),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.markers.length;i+=1)if((e=this.markers[i]).payload&&e.payload.name===t)return e;return null},AnimationItem.prototype.goToAndStop=function(t,e,i){if(!i||this.name===i){var s=Number(t);if(isNaN(s)){var r=this.getMarkerData(t);r&&this.goToAndStop(r.time,!0)}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(t,e,i){if(!i||this.name===i){var s=Number(t);if(isNaN(s)){var r=this.getMarkerData(t);r&&(r.duration?this.playSegments([r.time,r.time+r.duration],!0):this.goToAndStop(r.time,!0))}else this.goToAndStop(s,e,i);this.play()}},AnimationItem.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,i=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._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)?(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(i=!0,e=0)):this.setCurrentRawFrameValue(e),i&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>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.firstFrame<t?i=t:this.currentRawFrame+this.firstFrame>e&&(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,s=t.length;for(i=0;i<s;i+=1)this.segments.push(t[i])}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},AnimationItem.prototype.destroy=function(t){(!t||this.name===t)&&this.renderer&&(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,e){e&&this.name!==e||this.audioController.setVolume(t)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},AnimationItem.prototype.unmute=function(t){t&&this.name!==t||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 e="";if(t.e)e=t.p;else if(this.assetsPath){var i=t.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),e=this.assetsPath+i}else e=this.path+(t.u?t.u:"")+t.p;return e},AnimationItem.prototype.getAssetData=function(t){for(var e=0,i=this.assets.length;e<i;){if(t===this.assets[e].id)return this.assets[e];e+=1}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,e,i){try{this.renderer.getElementByPath(t).updateDocumentData(e,i)}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)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.triggerRenderFrameError=function(t){var e=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)},AnimationItem.prototype.triggerConfigError=function(t){var e=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)};var animationManager=function(){var t={},e=[],i=0,s=0,r=0,n=!0,a=!1;function o(t){for(var i=0,r=t.target;i<s;)e[i].animation===r&&(e.splice(i,1),i-=1,s-=1,r.isPaused||f()),i+=1}function h(t,i){if(!t)return null;for(var r=0;r<s;){if(e[r].elem===t&&null!==e[r].elem)return e[r].animation;r+=1}var n=new AnimationItem;return c(n,t),n.setData(t,i),n}function l(){var t,i=e.length,s=[];for(t=0;t<i;t+=1)s.push(e[t].animation);return s}function p(){r+=1,A()}function f(){r-=1}function c(t,i){t.addEventListener("destroy",o),t.addEventListener("_active",p),t.addEventListener("_idle",f),e.push({elem:i,animation:t}),s+=1}function u(t){var e=new AnimationItem;return c(e,null),e.setParams(t),e}function m(t,i){var r;for(r=0;r<s;r+=1)e[r].animation.setSpeed(t,i)}function d(t,i){var r;for(r=0;r<s;r+=1)e[r].animation.setDirection(t,i)}function g(t){var i;for(i=0;i<s;i+=1)e[i].animation.play(t)}function y(t){var o,h=t-i;for(o=0;o<s;o+=1)e[o].animation.advanceTime(h);i=t,r&&!a?window.requestAnimationFrame(y):n=!0}function v(t){i=t,window.requestAnimationFrame(y)}function b(t){var i;for(i=0;i<s;i+=1)e[i].animation.pause(t)}function _(t,i,r){var n;for(n=0;n<s;n+=1)e[n].animation.goToAndStop(t,i,r)}function x(t){var i;for(i=0;i<s;i+=1)e[i].animation.stop(t)}function k(t){var i;for(i=0;i<s;i+=1)e[i].animation.togglePause(t)}function w(t){var i;for(i=s-1;i>=0;i-=1)e[i].animation.destroy(t)}function S(t,e,i){var s,r=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),n=r.length;for(s=0;s<n;s+=1)i&&r[s].setAttribute("data-bm-type",i),h(r[s],t);if(e&&0===n){i||(i="svg");var a=document.getElementsByTagName("body")[0];a.innerText="";var o=createTag("div");o.style.width="100%",o.style.height="100%",o.setAttribute("data-bm-type",i),a.appendChild(o),h(o,t)}}function C(){var t;for(t=0;t<s;t+=1)e[t].animation.resize()}function A(){!a&&r&&n&&(window.requestAnimationFrame(v),n=!1)}function P(){a=!0}function M(){a=!1,A()}function E(t,i){var r;for(r=0;r<s;r+=1)e[r].animation.setVolume(t,i)}function D(t){var i;for(i=0;i<s;i+=1)e[i].animation.mute(t)}function T(t){var i;for(i=0;i<s;i+=1)e[i].animation.unmute(t)}return t.registerAnimation=h,t.loadAnimation=u,t.setSpeed=m,t.setDirection=d,t.play=g,t.pause=b,t.stop=x,t.togglePause=k,t.searchAnimations=S,t.resize=C,t.goToAndStop=_,t.destroy=w,t.freeze=P,t.unfreeze=M,t.setVolume=E,t.mute=D,t.unmute=T,t.getRegisteredAnimations=l,t}(),BezierFactory=function(){var t={};t.getBezierEasing=i;var e={};function i(t,i,s,r,n){var a=n||("bez_"+t+"_"+i+"_"+s+"_"+r).replace(/\./g,"p");if(e[a])return e[a];var o=new y([t,i,s,r]);return e[a]=o,o}var s=4,r=.001,n=1e-7,a=10,o=11,h=.1,l="function"==typeof Float32Array;function p(t,e){return 1-3*e+3*t}function f(t,e){return 3*e-6*t}function c(t){return 3*t}function u(t,e,i){return((p(e,i)*t+f(e,i))*t+c(e))*t}function m(t,e,i){return 3*p(e,i)*t*t+2*f(e,i)*t+c(e)}function d(t,e,i,s,r){var o,h,l=0;do(o=u(h=e+(i-e)/2,s,r)-t)>0?i=h:e=h;while(Math.abs(o)>n&&++l<a);return h}function g(t,e,i,r){for(var n=0;n<s;++n){var a=m(e,i,r);if(0===a)break;var o=u(e,i,r)-t;e-=o/a}return e}function y(t){this._p=t,this._mSampleValues=l?new Float32Array(o):Array(o),this._precomputed=!1,this.get=this.get.bind(this)}return y.prototype={get:function(t){var e=this._p[0],i=this._p[1],s=this._p[2],r=this._p[3];return(this._precomputed||this._precompute(),e===i&&s===r)?t:0===t?0:1===t?1:u(this._getTForX(t),i,r)},_precompute:function(){var t=this._p[0],e=this._p[1],i=this._p[2],s=this._p[3];this._precomputed=!0,(t!==e||i!==s)&&this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],i=0;i<o;++i)this._mSampleValues[i]=u(i*h,t,e)},_getTForX:function(t){for(var e=this._p[0],i=this._p[2],s=this._mSampleValues,n=0,a=1,l=o-1;a!==l&&s[a]<=t;++a)n+=h;var p=n+(t-s[--a])/(s[a+1]-s[a])*h,f=m(p,e,i);return f>=r?g(t,p,e,i):0===f?p:d(t,n,n+h,e,i)}},t}(),pooling=function(){return{double:function(t){return t.concat(createSizedArray(t.length))}}}(),poolFactory=function(){return function(t,e,i){var s=0,r=t,n=createSizedArray(r);return{newElement:function(){var t;return s?(s-=1,t=n[s]):t=e(),t},release:function(t){s===r&&(n=pooling.double(n),r*=2),i&&i(t),n[s]=t,s+=1}}}}(),bezierLengthPool=function(){return poolFactory(8,function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}})}(),segmentsLengthPool=function(){return poolFactory(8,function(){return{lengths:[],totalLength:0}},function(t){var e,i=t.lengths.length;for(e=0;e<i;e+=1)bezierLengthPool.release(t.lengths[e]);t.lengths.length=0})}();function bezFunction(){var t=Math;function e(t,e,i,s,r,n){var a=t*s+e*r+i*n-r*s-n*t-i*e;return a>-.001&&a<.001}function i(i,s,r,n,a,o,h,l,p){if(0===r&&0===o&&0===p)return e(i,s,n,a,h,l);var f,c=t.sqrt(t.pow(n-i,2)+t.pow(a-s,2)+t.pow(o-r,2)),u=t.sqrt(t.pow(h-i,2)+t.pow(l-s,2)+t.pow(p-r,2)),m=t.sqrt(t.pow(h-n,2)+t.pow(l-a,2)+t.pow(p-o,2));return(f=c>u?c>m?c-u-m:m-u-c:m>u?m-u-c:u-c-m)>-1e-4&&f<1e-4}var s=function(){return function(t,e,i,s){var r,n,a,o,h,l,p=getDefaultCurveSegments(),f=0,c=[],u=[],m=bezierLengthPool.newElement();for(r=0,a=i.length;r<p;r+=1){for(n=0,h=r/(p-1),l=0;n<a;n+=1)o=bmPow(1-h,3)*t[n]+3*bmPow(1-h,2)*h*i[n]+3*(1-h)*bmPow(h,2)*s[n]+bmPow(h,3)*e[n],c[n]=o,null!==u[n]&&(l+=bmPow(c[n]-u[n],2)),u[n]=c[n];l&&(f+=l=bmSqrt(l)),m.percents[r]=h,m.lengths[r]=f}return m.addedLength=f,m}}();function r(t){var e,i=segmentsLengthPool.newElement(),r=t.c,n=t.v,a=t.o,o=t.i,h=t._length,l=i.lengths,p=0;for(e=0;e<h-1;e+=1)l[e]=s(n[e],n[e+1],a[e],o[e+1]),p+=l[e].addedLength;return r&&h&&(l[e]=s(n[e],n[0],a[e],o[0]),p+=l[e].addedLength),i.totalLength=p,i}function n(t){this.segmentLength=0,this.points=Array(t)}function a(t,e){this.partialLength=t,this.point=e}var o=function(){var t={};return function(i,s,r,o){var h=(i[0]+"_"+i[1]+"_"+s[0]+"_"+s[1]+"_"+r[0]+"_"+r[1]+"_"+o[0]+"_"+o[1]).replace(/\./g,"p");if(!t[h]){var l,p,f,c,u,m,d,g=getDefaultCurveSegments(),y=0,v=null;2===i.length&&(i[0]!==s[0]||i[1]!==s[1])&&e(i[0],i[1],s[0],s[1],i[0]+r[0],i[1]+r[1])&&e(i[0],i[1],s[0],s[1],s[0]+o[0],s[1]+o[1])&&(g=2);var b=new n(g);for(l=0,f=r.length;l<g;l+=1){for(p=0,d=createSizedArray(f),u=l/(g-1),m=0;p<f;p+=1)c=bmPow(1-u,3)*i[p]+3*bmPow(1-u,2)*u*(i[p]+r[p])+3*(1-u)*bmPow(u,2)*(s[p]+o[p])+bmPow(u,3)*s[p],d[p]=c,null!==v&&(m+=bmPow(d[p]-v[p],2));y+=m=bmSqrt(m),b.points[l]=new a(m,d),v=d}b.segmentLength=y,t[h]=b}return t[h]}}();function h(t,e){var i=e.percents,s=e.lengths,r=i.length,n=bmFloor((r-1)*t),a=t*e.addedLength,o=0;if(n===r-1||0===n||a===s[n])return i[n];for(var h=s[n]>a?-1:1,l=!0;l;)if(s[n]<=a&&s[n+1]>a?(o=(a-s[n])/(s[n+1]-s[n]),l=!1):n+=h,n<0||n>=r-1){if(n===r-1)return i[n];l=!1}return i[n]+(i[n+1]-i[n])*o}function l(e,i,s,r,n,a){var o=h(n,a),l=1-o;return[t.round((l*l*l*e[0]+(o*l*l+l*o*l+l*l*o)*s[0]+(o*o*l+l*o*o+o*l*o)*r[0]+o*o*o*i[0])*1e3)/1e3,t.round((l*l*l*e[1]+(o*l*l+l*o*l+l*l*o)*s[1]+(o*o*l+l*o*o+o*l*o)*r[1]+o*o*o*i[1])*1e3)/1e3]}var p=createTypedArray("float32",8);return{getSegmentsLength:r,getNewSegment:function(e,i,s,r,n,a,o){n<0?n=0:n>1&&(n=1);var l,f=h(n,o),c=h(a=a>1?1:a,o),u=e.length,m=1-f,d=1-c,g=m*m*m,y=f*m*m*3,v=f*f*m*3,b=f*f*f,_=m*m*d,x=f*m*d+m*f*d+m*m*c,k=f*f*d+m*f*c+f*m*c,w=f*f*c,S=m*d*d,C=f*d*d+m*c*d+m*d*c,A=f*c*d+m*c*c+f*d*c,P=f*c*c,M=d*d*d,E=c*d*d+d*c*d+d*d*c,D=c*c*d+d*c*c+c*d*c,T=c*c*c;for(l=0;l<u;l+=1)p[4*l]=t.round((g*e[l]+y*s[l]+v*r[l]+b*i[l])*1e3)/1e3,p[4*l+1]=t.round((_*e[l]+x*s[l]+k*r[l]+w*i[l])*1e3)/1e3,p[4*l+2]=t.round((S*e[l]+C*s[l]+A*r[l]+P*i[l])*1e3)/1e3,p[4*l+3]=t.round((M*e[l]+E*s[l]+D*r[l]+T*i[l])*1e3)/1e3;return p},getPointInSegment:l,buildBezierData:o,pointOnLine2D:e,pointOnLine3D:i}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(t,e){var i,s,r,n,a,o=this.offsetTime;"multidimensional"===this.propType&&(g=createTypedArray("float32",this.pv.length));for(var h=e.lastIndex,l=h,p=this.keyframes.length-1,f=!0;f;){if(y=this.keyframes[l],v=this.keyframes[l+1],l===p-1&&t>=v.t-o){y.h&&(y=v),h=0;break}if(v.t-o>t){h=l;break}l<p-1?l+=1:(h=0,f=!1)}b=this.keyframesMetadata[l]||{};var c=v.t-o,u=y.t-o;if(y.to){b.bezierData||(b.bezierData=bez.buildBezierData(y.s,v.s||y.e,y.to,y.ti));var m=b.bezierData;if(t>=c||t<u){var d=t>=c?m.points.length-1:0;for(_=0,x=m.points[d].point.length;_<x;_+=1)g[_]=m.points[d].point[_]}else{b.__fnct?S=b.__fnct:b.__fnct=S=BezierFactory.getBezierEasing(y.o.x,y.o.y,y.i.x,y.i.y,y.n).get;var g,y,v,b,_,x,k,w,S,C,A,P=S((t-u)/(c-u)),M=m.segmentLength*P,E=e.lastFrame<t&&e._lastKeyframeIndex===l?e._lastAddedLength:0;for(w=e.lastFrame<t&&e._lastKeyframeIndex===l?e._lastPoint:0,f=!0,k=m.points.length;f;){if(E+=m.points[w].partialLength,0===M||0===P||w===m.points.length-1){for(_=0,x=m.points[w].point.length;_<x;_+=1)g[_]=m.points[w].point[_];break}if(M>=E&&M<E+m.points[w+1].partialLength){for(_=0,A=(M-E)/m.points[w+1].partialLength,x=m.points[w].point.length;_<x;_+=1)g[_]=m.points[w].point[_]+(m.points[w+1].point[_]-m.points[w].point[_])*A;break}w<k-1?w+=1:f=!1}e._lastPoint=w,e._lastAddedLength=E-m.points[w].partialLength,e._lastKeyframeIndex=l}}else if(p=y.s.length,C=v.s||y.e,this.sh&&1!==y.h)t>=c?(g[0]=C[0],g[1]=C[1],g[2]=C[2]):t<=u?(g[0]=y.s[0],g[1]=y.s[1],g[2]=y.s[2]):quaternionToEuler(g,slerp(createQuaternion(y.s),createQuaternion(C),(t-u)/(c-u)));else for(l=0;l<p;l+=1)1!==y.h&&(t>=c?P=1:t<u?P=0:(y.o.x.constructor===Array?(b.__fnct||(b.__fnct=[]),b.__fnct[l]?S=b.__fnct[l]:(i=void 0===y.o.x[l]?y.o.x[0]:y.o.x[l],s=void 0===y.o.y[l]?y.o.y[0]:y.o.y[l],r=void 0===y.i.x[l]?y.i.x[0]:y.i.x[l],n=void 0===y.i.y[l]?y.i.y[0]:y.i.y[l],S=BezierFactory.getBezierEasing(i,s,r,n).get,b.__fnct[l]=S)):b.__fnct?S=b.__fnct:(i=y.o.x,s=y.o.y,r=y.i.x,n=y.i.y,S=BezierFactory.getBezierEasing(i,s,r,n).get,y.keyframeMetadata=S),P=S((t-u)/(c-u)))),C=v.s||y.e,a=1===y.h?y.s[l]:y.s[l]+(C[l]-y.s[l])*P,"multidimensional"===this.propType?g[l]=a:g=a;return e.lastIndex=h,g}function slerp(t,e,i){var s,r,n,a,o,h=[],l=t[0],p=t[1],f=t[2],c=t[3],u=e[0],m=e[1],d=e[2],g=e[3];return(r=l*u+p*m+f*d+c*g)<0&&(r=-r,u=-u,m=-m,d=-d,g=-g),1-r>1e-6?(n=Math.sin(s=Math.acos(r)),a=Math.sin((1-i)*s)/n,o=Math.sin(i*s)/n):(a=1-i,o=i),h[0]=a*l+o*u,h[1]=a*p+o*m,h[2]=a*f+o*d,h[3]=a*c+o*g,h}function quaternionToEuler(t,e){var i=e[0],s=e[1],r=e[2],n=e[3],a=Math.atan2(2*s*n-2*i*r,1-2*s*s-2*r*r),o=Math.asin(2*i*s+2*r*n),h=Math.atan2(2*i*n-2*s*r,1-2*i*i-2*r*r);t[0]=a/degToRads,t[1]=o/degToRads,t[2]=h/degToRads}function createQuaternion(t){var e=t[0]*degToRads,i=t[1]*degToRads,s=t[2]*degToRads,r=Math.cos(e/2),n=Math.cos(i/2),a=Math.cos(s/2),o=Math.sin(e/2),h=Math.sin(i/2),l=Math.sin(s/2),p=r*n*a-o*h*l;return[o*h*a+r*n*l,o*n*a+r*h*l,r*h*a-o*n*l,p]}function getValueAtCurrentTime(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=i&&t>=i||this._caching.lastFrame<e&&t<e))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var s=this.interpolateValue(t,this._caching);this.pv=s}return this._caching.lastFrame=t,this.pv}function setVValue(t){var e;if("unidimensional"===this.propType)e=t*this.mult,mathAbs(this.v-e)>1e-5&&(this.v=e,this._mdf=!0);else for(var i=0,s=this.v.length;i<s;)e=t[i]*this.mult,mathAbs(this.v[i]-e)>1e-5&&(this.v[i]=e,this._mdf=!0),i+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length){if(this.lock)return void this.setVValue(this.pv);this.lock=!0,this._mdf=this._isFirstFrame;var t,e=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(t=0;t<e;t+=1)i=this.effectsSequence[t](i);this.setVValue(i),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function ValueProperty(t,e,i,s){this.propType="unidimensional",this.mult=i||1,this.data=e,this.v=i?e.k*i:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=s,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(t,e,i,s){this.propType="multidimensional",this.mult=i||1,this.data=e,this._mdf=!1,this.elem=t,this.container=s,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var r,n=e.k.length;for(r=0,this.v=createTypedArray("float32",n),this.pv=createTypedArray("float32",n),this.vel=createTypedArray("float32",n);r<n;r+=1)this.v[r]=e.k[r]*this.mult,this.pv[r]=e.k[r];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(t,e,i,s){this.propType="unidimensional",this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=e,this.mult=i||1,this.elem=t,this.container=s,this.comp=t.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(t,e,i,s){this.propType="multidimensional";var r,n,a,o,h,l=e.k.length;for(r=0;r<l-1;r+=1)e.k[r].to&&e.k[r].s&&e.k[r+1]&&e.k[r+1].s&&(n=e.k[r].s,a=e.k[r+1].s,o=e.k[r].to,h=e.k[r].ti,(2===n.length&&(n[0]!==a[0]||n[1]!==a[1])&&bez.pointOnLine2D(n[0],n[1],a[0],a[1],n[0]+o[0],n[1]+o[1])&&bez.pointOnLine2D(n[0],n[1],a[0],a[1],a[0]+h[0],a[1]+h[1])||3===n.length&&(n[0]!==a[0]||n[1]!==a[1]||n[2]!==a[2])&&bez.pointOnLine3D(n[0],n[1],n[2],a[0],a[1],a[2],n[0]+o[0],n[1]+o[1],n[2]+o[2])&&bez.pointOnLine3D(n[0],n[1],n[2],a[0],a[1],a[2],a[0]+h[0],a[1]+h[1],a[2]+h[2]))&&(e.k[r].to=null,e.k[r].ti=null),n[0]===a[0]&&n[1]===a[1]&&0===o[0]&&0===o[1]&&0===h[0]&&0===h[1]&&(2===n.length||n[2]===a[2]&&0===o[2]&&0===h[2])&&(e.k[r].to=null,e.k[r].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=e,this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=i||1,this.elem=t,this.container=s,this.comp=t.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var p=e.k[0].s.length;for(r=0,this.v=createTypedArray("float32",p),this.pv=createTypedArray("float32",p);r<p;r+=1)this.v[r]=initFrame,this.pv[r]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",p)},this.addEffect=addEffect}var PropertyFactory=function(){return{getProp:function(t,e,i,s,r){var n;if(e.sid&&(e=t.globalData.slotManager.getProp(e)),e.k.length)if("number"==typeof e.k[0])n=new MultiDimensionalProperty(t,e,s,r);else switch(i){case 0:n=new KeyframedValueProperty(t,e,s,r);break;case 1:n=new KeyframedMultidimensionalProperty(t,e,s,r)}else n=new ValueProperty(t,e,s,r);return n.effectsSequence.length&&r.addDynamicProperty(n),n}}}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var t,e=this.dynamicProperties.length;for(t=0;t<e;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=function(){return poolFactory(8,function(){return createTypedArray("float32",2)})}();function ShapePath(){this.c=!1,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,e){this.c=t,this.setLength(e);for(var i=0;i<e;)this.v[i]=pointPool.newElement(),this.o[i]=pointPool.newElement(),this.i[i]=pointPool.newElement(),i+=1},ShapePath.prototype.setLength=function(t){for(;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,e,i,s,r){var n;switch(this._length=Math.max(this._length,s+1),this._length>=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[s]&&(!n[s]||r)||(n[s]=pointPool.newElement()),n[s][0]=t,n[s][1]=e},ShapePath.prototype.setTripleAt=function(t,e,i,s,r,n,a,o){this.setXYAt(t,e,"v",a,o),this.setXYAt(i,s,"o",a,o),this.setXYAt(r,n,"i",a,o)},ShapePath.prototype.reverse=function(){var t,e=new ShapePath;e.setPathData(this.c,this._length);var i=this.v,s=this.o,r=this.i,n=0;this.c&&(e.setTripleAt(i[0][0],i[0][1],r[0][0],r[0][1],s[0][0],s[0][1],0,!1),n=1);var a=this._length-1,o=this._length;for(t=n;t<o;t+=1)e.setTripleAt(i[a][0],i[a][1],r[a][0],r[a][1],s[a][0],s[a][1],t,!1),a-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function t(t){var i,s=e.newElement(),r=void 0===t._length?t.v.length:t._length;for(s.setLength(r),s.c=t.c,i=0;i<r;i+=1)s.setTripleAt(t.v[i][0],t.v[i][1],t.o[i][0],t.o[i][1],t.i[i][0],t.i[i][1],i);return s}var e=poolFactory(4,function(){return new ShapePath},function(t){var e,i=t._length;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=!1});return e.clone=t,e}();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(t){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:r,release:n},e=0,i=4,s=createSizedArray(4);function r(){var t;return e?(e-=1,t=s[e]):t=new ShapeCollection,t}function n(t){var r,n=t._length;for(r=0;r<n;r+=1)shapePool.release(t.shapes[r]);t._length=0,e===i&&(s=pooling.double(s),i*=2),s[e]=t,e+=1}return t}(),ShapePropertyFactory=function(){var t=-999999;function e(t,e,i){var s=i.lastIndex,r=this.keyframes;if(t<r[0].t-this.offsetTime)n=r[0].s[0],o=!0,s=0;else if(t>=r[r.length-1].t-this.offsetTime)n=r[r.length-1].s?r[r.length-1].s[0]:r[r.length-2].e[0],o=!0;else{for(var n,a,o,h,l,p,f,c,u,m,d,g,y,v=s,b=r.length-1,_=!0;_&&(m=r[v],!((d=r[v+1]).t-this.offsetTime>t));)v<b-1?v+=1:_=!1;g=this.keyframesMetadata[v]||{},o=1===m.h,s=v,o||(t>=d.t-this.offsetTime?c=1:t<m.t-this.offsetTime?c=0:(g.__fnct?y=g.__fnct:g.__fnct=y=BezierFactory.getBezierEasing(m.o.x,m.o.y,m.i.x,m.i.y).get,c=y((t-(m.t-this.offsetTime))/(d.t-this.offsetTime-(m.t-this.offsetTime)))),a=d.s?d.s[0]:m.e[0]),n=m.s[0]}for(h=0,p=e._length,f=n.i[0].length,i.lastIndex=s;h<p;h+=1)for(l=0;l<f;l+=1)u=o?n.i[h][l]:n.i[h][l]+(a.i[h][l]-n.i[h][l])*c,e.i[h][l]=u,u=o?n.o[h][l]:n.o[h][l]+(a.o[h][l]-n.o[h][l])*c,e.o[h][l]=u,u=o?n.v[h][l]:n.v[h][l]+(a.v[h][l]-n.v[h][l])*c,e.v[h][l]=u}function i(){var e=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,s=this.keyframes[this.keyframes.length-1].t-this.offsetTime,r=this._caching.lastFrame;return r!==t&&(r<i&&e<i||r>s&&e>s)||(this._caching.lastIndex=r<e?this._caching.lastIndex:0,this.interpolateShape(e,this.pv,this._caching)),this._caching.lastFrame=e,this.pv}function s(){this.paths=this.localShapeCollection}function r(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var i,s=t._length;for(i=0;i<s;i+=1)if(t.v[i][0]!==e.v[i][0]||t.v[i][1]!==e.v[i][1]||t.o[i][0]!==e.o[i][0]||t.o[i][1]!==e.o[i][1]||t.i[i][0]!==e.i[i][0]||t.i[i][1]!==e.i[i][1])return!1;return!0}function n(t){r(this.v,t)||(this.v=shapePool.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function a(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock)return void this.setVValue(this.pv);this.lock=!0,this._mdf=!1,t=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var t,e,i=this.effectsSequence.length;for(e=0;e<i;e+=1)t=this.effectsSequence[e](t);this.setVValue(t),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function o(t,e,i){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;var r=3===i?e.pt.k:e.ks.k;this.v=shapePool.clone(r),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=s,this.effectsSequence=[]}function h(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function l(e,r,n){this.propType="shape",this.comp=e.comp,this.elem=e,this.container=e,this.offsetTime=e.data.st,this.keyframes=3===n?r.pt.k:r.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;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=s,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[i.bind(this)]}o.prototype.interpolateShape=e,o.prototype.getValue=a,o.prototype.setVValue=n,o.prototype.addEffect=h,l.prototype.getValue=a,l.prototype.interpolateShape=e,l.prototype.setVValue=n,l.prototype.addEffect=h;var p=function(){var t=roundCorner;function e(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return e.prototype={reset:s,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var e=this.p.v[0],i=this.p.v[1],s=this.s.v[0]/2,r=this.s.v[1]/2,n=3!==this.d,a=this.v;a.v[0][0]=e,a.v[0][1]=i-r,a.v[1][0]=n?e+s:e-s,a.v[1][1]=i,a.v[2][0]=e,a.v[2][1]=i+r,a.v[3][0]=n?e-s:e+s,a.v[3][1]=i,a.i[0][0]=n?e-s*t:e+s*t,a.i[0][1]=i-r,a.i[1][0]=n?e+s:e-s,a.i[1][1]=i-r*t,a.i[2][0]=n?e+s*t:e-s*t,a.i[2][1]=i+r,a.i[3][0]=n?e-s:e+s,a.i[3][1]=i+r*t,a.o[0][0]=n?e+s*t:e-s*t,a.o[0][1]=i-r,a.o[1][0]=n?e+s:e-s,a.o[1][1]=i+r*t,a.o[2][0]=n?e-s*t:e+s*t,a.o[2][1]=i+r,a.o[3][0]=n?e-s:e+s,a.o[3][1]=i-r*t}},extendPrototype([DynamicPropertyContainer],e),e}(),f=function(){function t(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=PropertyFactory.getProp(t,e.ir,0,0,this),this.is=PropertyFactory.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(t,e.pt,0,0,this),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,degToRads,this),this.or=PropertyFactory.getProp(t,e.or,0,0,this),this.os=PropertyFactory.getProp(t,e.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return t.prototype={reset:s,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var t,e,i,s,r=2*Math.floor(this.pt.v),n=2*Math.PI/r,a=!0,o=this.or.v,h=this.ir.v,l=this.os.v,p=this.is.v,f=2*Math.PI*o/(2*r),c=2*Math.PI*h/(2*r),u=-Math.PI/2;u+=this.r.v;var m=3===this.data.d?-1:1;for(t=0,this.v._length=0;t<r;t+=1){e=a?o:h,i=a?l:p,s=a?f:c;var d=e*Math.cos(u),g=e*Math.sin(u),y=0===d&&0===g?0:g/Math.sqrt(d*d+g*g),v=0===d&&0===g?0:-d/Math.sqrt(d*d+g*g);d+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(d,g,d-y*s*i*m,g-v*s*i*m,d+y*s*i*m,g+v*s*i*m,t,!0),a=!a,u+=n*m}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),i=2*Math.PI/e,s=this.or.v,r=this.os.v,n=2*Math.PI*s/(4*e),a=-(.5*Math.PI),o=3===this.data.d?-1:1;for(a+=this.r.v,this.v._length=0,t=0;t<e;t+=1){var h=s*Math.cos(a),l=s*Math.sin(a),p=0===h&&0===l?0:l/Math.sqrt(h*h+l*l),f=0===h&&0===l?0:-h/Math.sqrt(h*h+l*l);h+=+this.p.v[0],l+=+this.p.v[1],this.v.setTripleAt(h,l,h-p*n*r*o,l-f*n*r*o,h+p*n*r*o,l+f*n*r*o,t,!0),a+=i*o}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],t),t}(),c=function(){function t(t,e){this.v=shapePool.newElement(),this.v.c=!0,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=e.d,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return t.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],i=this.s.v[0]/2,s=this.s.v[1]/2,r=bmMin(i,s,this.r.v),n=r*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+i,e-s+r,t+i,e-s+r,t+i,e-s+n,0,!0),this.v.setTripleAt(t+i,e+s-r,t+i,e+s-n,t+i,e+s-r,1,!0),0!==r?(this.v.setTripleAt(t+i-r,e+s,t+i-r,e+s,t+i-n,e+s,2,!0),this.v.setTripleAt(t-i+r,e+s,t-i+n,e+s,t-i+r,e+s,3,!0),this.v.setTripleAt(t-i,e+s-r,t-i,e+s-r,t-i,e+s-n,4,!0),this.v.setTripleAt(t-i,e-s+r,t-i,e-s+n,t-i,e-s+r,5,!0),this.v.setTripleAt(t-i+r,e-s,t-i+r,e-s,t-i+n,e-s,6,!0),this.v.setTripleAt(t+i-r,e-s,t+i-n,e-s,t+i-r,e-s,7,!0)):(this.v.setTripleAt(t-i,e+s,t-i+n,e+s,t-i,e+s,2),this.v.setTripleAt(t-i,e-s,t-i,e-s+n,t-i,e-s,3))):(this.v.setTripleAt(t+i,e-s+r,t+i,e-s+n,t+i,e-s+r,0,!0),0!==r?(this.v.setTripleAt(t+i-r,e-s,t+i-r,e-s,t+i-n,e-s,1,!0),this.v.setTripleAt(t-i+r,e-s,t-i+n,e-s,t-i+r,e-s,2,!0),this.v.setTripleAt(t-i,e-s+r,t-i,e-s+r,t-i,e-s+n,3,!0),this.v.setTripleAt(t-i,e+s-r,t-i,e+s-n,t-i,e+s-r,4,!0),this.v.setTripleAt(t-i+r,e+s,t-i+r,e+s,t-i+n,e+s,5,!0),this.v.setTripleAt(t+i-r,e+s,t+i-n,e+s,t+i-r,e+s,6,!0),this.v.setTripleAt(t+i,e+s-r,t+i,e+s-r,t+i,e+s-n,7,!0)):(this.v.setTripleAt(t-i,e-s,t-i+n,e-s,t-i,e-s,1,!0),this.v.setTripleAt(t-i,e+s,t-i,e+s-n,t-i,e+s,2,!0),this.v.setTripleAt(t+i,e+s,t+i-n,e+s,t+i,e+s,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:s},extendPrototype([DynamicPropertyContainer],t),t}();function u(){return o}function m(){return l}var d={};return d.getShapeProp=function(t,e,i){var s;return 3===i||4===i?s=(3===i?e.pt:e.ks).k.length?new l(t,e,i):new o(t,e,i):5===i?s=new c(t,e):6===i?s=new p(t,e):7===i&&(s=new f(t,e)),s.k&&t.addDynamicProperty(s),s},d.getConstructorFunction=u,d.getKeyframedConstructorFunction=m,d}(),Matrix=function(){var t=Math.cos,e=Math.sin,i=Math.tan,s=Math.round;function r(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function n(i){if(0===i)return this;var s=t(i),r=e(i);return this._t(s,-r,0,0,r,s,0,0,0,0,1,0,0,0,0,1)}function a(i){if(0===i)return this;var s=t(i),r=e(i);return this._t(1,0,0,0,0,s,-r,0,0,r,s,0,0,0,0,1)}function o(i){if(0===i)return this;var s=t(i),r=e(i);return this._t(s,0,r,0,0,1,0,0,-r,0,s,0,0,0,0,1)}function h(i){if(0===i)return this;var s=t(i),r=e(i);return this._t(s,-r,0,0,r,s,0,0,0,0,1,0,0,0,0,1)}function l(t,e){return this._t(1,e,t,1,0,0)}function p(t,e){return this.shear(i(t),i(e))}function f(s,r){var n=t(r),a=e(r);return this._t(n,a,0,0,-a,n,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,i(s),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,e,i){return(i||0===i||(i=1),1===t&&1===e&&1===i)?this:this._t(t,0,0,0,0,e,0,0,0,0,i,0,0,0,0,1)}function u(t,e,i,s,r,n,a,o,h,l,p,f,c,u,m,d){return this.props[0]=t,this.props[1]=e,this.props[2]=i,this.props[3]=s,this.props[4]=r,this.props[5]=n,this.props[6]=a,this.props[7]=o,this.props[8]=h,this.props[9]=l,this.props[10]=p,this.props[11]=f,this.props[12]=c,this.props[13]=u,this.props[14]=m,this.props[15]=d,this}function m(t,e,i){return(i=i||0,0!==t||0!==e||0!==i)?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,i,1):this}function d(t,e,i,s,r,n,a,o,h,l,p,f,c,u,m,d){var g=this.props;if(1===t&&0===e&&0===i&&0===s&&0===r&&1===n&&0===a&&0===o&&0===h&&0===l&&1===p&&0===f)return g[12]=g[12]*t+g[15]*c,g[13]=g[13]*n+g[15]*u,g[14]=g[14]*p+g[15]*m,g[15]*=d,this._identityCalculated=!1,this;var y=g[0],v=g[1],b=g[2],_=g[3],x=g[4],k=g[5],w=g[6],S=g[7],C=g[8],A=g[9],P=g[10],M=g[11],E=g[12],D=g[13],T=g[14],F=g[15];return g[0]=y*t+v*r+b*h+_*c,g[1]=y*e+v*n+b*l+_*u,g[2]=y*i+v*a+b*p+_*m,g[3]=y*s+v*o+b*f+_*d,g[4]=x*t+k*r+w*h+S*c,g[5]=x*e+k*n+w*l+S*u,g[6]=x*i+k*a+w*p+S*m,g[7]=x*s+k*o+w*f+S*d,g[8]=C*t+A*r+P*h+M*c,g[9]=C*e+A*n+P*l+M*u,g[10]=C*i+A*a+P*p+M*m,g[11]=C*s+A*o+P*f+M*d,g[12]=E*t+D*r+T*h+F*c,g[13]=E*e+D*n+T*l+F*u,g[14]=E*i+D*a+T*p+F*m,g[15]=E*s+D*o+T*f+F*d,this._identityCalculated=!1,this}function g(t){var e=t.props;return this.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}function y(){return this._identityCalculated||(this._identity=1===this.props[0]&&0===this.props[1]&&0===this.props[2]&&0===this.props[3]&&0===this.props[4]&&1===this.props[5]&&0===this.props[6]&&0===this.props[7]&&0===this.props[8]&&0===this.props[9]&&1===this.props[10]&&0===this.props[11]&&0===this.props[12]&&0===this.props[13]&&0===this.props[14]&&1===this.props[15],this._identityCalculated=!0),this._identity}function v(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function b(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e];return t}function _(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function x(t,e,i){return{x:t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}}function k(t,e,i){return t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12]}function w(t,e,i){return t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13]}function S(t,e,i){return t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}function C(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,i=-this.props[1]/t,s=-this.props[4]/t,r=this.props[0]/t,n=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,a=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,o=new Matrix;return o.props[0]=e,o.props[1]=i,o.props[4]=s,o.props[5]=r,o.props[12]=n,o.props[13]=a,o}function A(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function P(t){var e,i=t.length,s=[];for(e=0;e<i;e+=1)s[e]=A(t[e]);return s}function M(t,e,i){var s=createTypedArray("float32",6);if(this.isIdentity())s[0]=t[0],s[1]=t[1],s[2]=e[0],s[3]=e[1],s[4]=i[0],s[5]=i[1];else{var r=this.props[0],n=this.props[1],a=this.props[4],o=this.props[5],h=this.props[12],l=this.props[13];s[0]=t[0]*r+t[1]*a+h,s[1]=t[0]*n+t[1]*o+l,s[2]=e[0]*r+e[1]*a+h,s[3]=e[0]*n+e[1]*o+l,s[4]=i[0]*r+i[1]*a+h,s[5]=i[0]*n+i[1]*o+l}return s}function E(t,e,i){var s;return this.isIdentity()?[t,e,i]:[t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]]}function D(t,e){if(this.isIdentity())return t+","+e;var i=this.props;return Math.round((t*i[0]+e*i[4]+i[12])*100)/100+","+Math.round((t*i[1]+e*i[5]+i[13])*100)/100}function T(){for(var t=0,e=this.props,i="matrix3d(",r=1e4;t<16;)i+=s(e[t]*r)/r,i+=15===t?")":",",t+=1;return i}function F(t){var e=1e4;return t<1e-6&&t>0||t>-1e-6&&t<0?s(t*e)/e:t}function I(){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=r,this.rotate=n,this.rotateX=a,this.rotateY=o,this.rotateZ=h,this.skew=p,this.skewFromAxis=f,this.shear=l,this.scale=c,this.setTransform=u,this.translate=m,this.transform=d,this.multiply=g,this.applyToPoint=x,this.applyToX=k,this.applyToY=w,this.applyToZ=S,this.applyToPointArray=E,this.applyToTriplePoints=M,this.applyToPointStringified=D,this.toCSS=T,this.to2dCSS=I,this.clone=b,this.cloneFromProps=_,this.equals=v,this.inversePoints=P,this.inversePoint=A,this.getInverseMatrix=C,this._t=this.transform,this.isIdentity=y,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})(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("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)}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<e.length;i+=1){var s=e[i].split("=");if(decodeURIComponent(s[0])==t)return decodeURIComponent(s[1])}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.13.0";var queryString="",scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer");var readyStateCheckInterval=setInterval(checkReady,100);try{"object"!==_typeof$3(exports)&&(window.bodymovin=lottie)}catch(err){}var ShapeModifiers=function(){var t={},e={};function i(t,i,s){return new e[t](i,s)}return t.registerModifier=function t(t,i){e[t]||(e[t]=i)},t.getModifier=i,t}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},ShapeModifier.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(t,e){this.s=PropertyFactory.getProp(t,e.s,0,.01,this),this.e=PropertyFactory.getProp(t,e.e,0,.01,this),this.o=PropertyFactory.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.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,e,i,s,r){var n,a,o,h=[];e<=1?h.push({s:t,e:e}):t>=1?h.push({s:t-1,e:e-1}):(h.push({s:t,e:1}),h.push({s:0,e:e-1}));var l=[],p=h.length;for(n=0;n<p;n+=1)(a=h[n]).e*r<s||a.s*r>s+i||(o=a.s*r<=s?0:(a.s*r-s)/i,l.push([o,a.e*r>=s+i?1:(a.e*r-s)/i]));return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(t){var e,i=t.length;for(e=0;e<i;e+=1)segmentsLengthPool.release(t[e]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){if(this._mdf||t){var e=this.o.v%360/360;if(e<0&&(e+=1),(n=this.s.v>1?1+e:this.s.v<0?0+e:this.s.v+e)>(a=this.e.v>1?1+e:this.e.v<0?0+e:this.e.v+e)){var i=n;n=a,a=i}n=1e-4*Math.round(1e4*n),a=1e-4*Math.round(1e4*a),this.sValue=n,this.eValue=a}else n=this.sValue,a=this.eValue;var s=this.shapes.length,r=0;if(a===n)for(h=0;h<s;h+=1)this.shapes[h].localShapeCollection.releaseShapes(),this.shapes[h].shape._mdf=!0,this.shapes[h].shape.paths=this.shapes[h].localShapeCollection,this._mdf&&(this.shapes[h].pathsData.length=0);else if((1!==a||0!==n)&&(0!==a||1!==n)){var n,a,o,h,l,p,f,c,u,m,d,g,y=[];for(h=0;h<s;h+=1)if((m=this.shapes[h]).shape._mdf||this._mdf||t||2===this.m){if(p=(o=m.shape.paths)._length,u=0,!m.shape._mdf&&m.pathsData.length)u=m.totalShapeLength;else{for(l=0,f=this.releasePathsData(m.pathsData);l<p;l+=1)c=bez.getSegmentsLength(o.shapes[l]),f.push(c),u+=c.totalLength;m.totalShapeLength=u,m.pathsData=f}r+=u,m.shape._mdf=!0}else m.shape.paths=m.localShapeCollection;var v=n,b=a,_=0;for(h=s-1;h>=0;h-=1)if((m=this.shapes[h]).shape._mdf){for((d=m.localShapeCollection).releaseShapes(),2===this.m&&s>1?(g=this.calculateShapeEdges(n,a,m.totalShapeLength,_,r),_+=m.totalShapeLength):g=[[v,b]],p=g.length,l=0;l<p;l+=1){v=g[l][0],b=g[l][1],y.length=0,b<=1?y.push({s:m.totalShapeLength*v,e:m.totalShapeLength*b}):v>=1?y.push({s:m.totalShapeLength*(v-1),e:m.totalShapeLength*(b-1)}):(y.push({s:m.totalShapeLength*v,e:m.totalShapeLength}),y.push({s:0,e:m.totalShapeLength*(b-1)}));var x=this.addShapes(m,y[0]);if(y[0].s!==y[0].e){if(y.length>1)if(m.shape.paths.shapes[m.shape.paths._length-1].c){var k=x.pop();this.addPaths(x,d),x=this.addShapes(m,y[1],k)}else this.addPaths(x,d),x=this.addShapes(m,y[1]);this.addPaths(x,d)}}m.shape.paths=d}}else if(this._mdf)for(h=0;h<s;h+=1)this.shapes[h].pathsData.length=0,this.shapes[h].shape._mdf=!0},TrimModifier.prototype.addPaths=function(t,e){var i,s=t.length;for(i=0;i<s;i+=1)e.addShape(t[i])},TrimModifier.prototype.addSegment=function(t,e,i,s,r,n,a){r.setXYAt(e[0],e[1],"o",n),r.setXYAt(i[0],i[1],"i",n+1),a&&r.setXYAt(t[0],t[1],"v",n),r.setXYAt(s[0],s[1],"v",n+1)},TrimModifier.prototype.addSegmentFromArray=function(t,e,i,s){e.setXYAt(t[1],t[5],"o",i),e.setXYAt(t[2],t[6],"i",i+1),s&&e.setXYAt(t[0],t[4],"v",i),e.setXYAt(t[3],t[7],"v",i+1)},TrimModifier.prototype.addShapes=function(t,e,i){var s,r,n,a,o,h,l,p,f=t.pathsData,c=t.shape.paths.shapes,u=t.shape.paths._length,m=0,d=[],g=!0;for(i?(o=i._length,p=i._length):(i=shapePool.newElement(),o=0,p=0),d.push(i),s=0;s<u;s+=1){for(r=1,h=f[s].lengths,i.c=c[s].c,n=c[s].c?h.length:h.length+1;r<n;r+=1)if(m+(a=h[r-1]).addedLength<e.s)m+=a.addedLength,i.c=!1;else if(m>e.e){i.c=!1;break}else e.s<=m&&e.e>=m+a.addedLength?(this.addSegment(c[s].v[r-1],c[s].o[r-1],c[s].i[r],c[s].v[r],i,o,g),g=!1):(l=bez.getNewSegment(c[s].v[r-1],c[s].v[r],c[s].o[r-1],c[s].i[r],(e.s-m)/a.addedLength,(e.e-m)/a.addedLength,h[r-1]),this.addSegmentFromArray(l,i,o,g),g=!1,i.c=!1),m+=a.addedLength,o+=1;if(c[s].c&&h.length){if(a=h[r-1],m<=e.e){var y=h[r-1].addedLength;e.s<=m&&e.e>=m+y?(this.addSegment(c[s].v[r-1],c[s].o[r-1],c[s].i[0],c[s].v[0],i,o,g),g=!1):(l=bez.getNewSegment(c[s].v[r-1],c[s].v[0],c[s].o[r-1],c[s].i[0],(e.s-m)/y,(e.e-m)/y,h[r-1]),this.addSegmentFromArray(l,i,o,g),g=!1,i.c=!1)}else i.c=!1;m+=a.addedLength,o+=1}if(i._length&&(i.setXYAt(i.v[p][0],i.v[p][1],"i",p),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),m>e.e)break;s<u-1&&(i=shapePool.newElement(),g=!0,d.push(i),o=0)}return d},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(t,e){var i,s,r,n,a,o,h=e/100,l=[0,0],p=t._length,f=0;for(f=0;f<p;f+=1)l[0]+=t.v[f][0],l[1]+=t.v[f][1];l[0]/=p,l[1]/=p;var c=shapePool.newElement();for(f=0,c.c=t.c;f<p;f+=1)i=t.v[f][0]+(l[0]-t.v[f][0])*h,s=t.v[f][1]+(l[1]-t.v[f][1])*h,r=t.o[f][0]+-((l[0]-t.o[f][0])*h),n=t.o[f][1]+-((l[1]-t.o[f][1])*h),a=t.i[f][0]+-((l[0]-t.i[f][0])*h),o=t.i[f][1]+-((l[1]-t.i[f][1])*h),c.setTripleAt(i,s,r,n,a,o,f);return c},PuckerAndBloatModifier.prototype.processShapes=function(t){var e,i,s,r,n,a,o=this.shapes.length,h=this.amount.v;if(0!==h)for(i=0;i<o;i+=1){if(a=(n=this.shapes[i]).localShapeCollection,!(!n.shape._mdf&&!this._mdf&&!t))for(a.releaseShapes(),n.shape._mdf=!0,e=n.shape.paths.shapes,r=n.shape.paths._length,s=0;s<r;s+=1)a.addShape(this.processPath(e[s],h));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var t=[0,0];function e(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0}function i(t,e,i){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(i||t),e.p&&e.p.s?(this.px=PropertyFactory.getProp(t,e.p.x,0,0,this),this.py=PropertyFactory.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=PropertyFactory.getProp(t,e.p.z,0,0,this))):this.p=PropertyFactory.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=PropertyFactory.getProp(t,e.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(t,e.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(t,e.rz,0,degToRads,this),e.or.k[0].ti){var s,r=e.or.k.length;for(s=0;s<r;s+=1)e.or.k[s].to=null,e.or.k[s].ti=null}this.or=PropertyFactory.getProp(t,e.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(t,e.r||{k:0},0,degToRads,this);e.sk&&(this.sk=PropertyFactory.getProp(t,e.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(t,e.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(t,e.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(t,e.s||{k:[100,100,100]},1,.01,this),e.o?this.o=PropertyFactory.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return i.prototype={applyToMatrix:function(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(e){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||e){var i;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!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]),this.autoOriented){if(i=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(s=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/i,0),r=this.p.getValueAtTime(this.p.keyframes[0].t/i,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(s=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/i,0),r=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/i,0)):(s=this.p.pv,r=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){var s=[],r=[],n=this.px,a=this.py;n._caching.lastFrame+n.offsetTime<=n.keyframes[0].t?(s[0]=n.getValueAtTime((n.keyframes[0].t+.01)/i,0),s[1]=a.getValueAtTime((a.keyframes[0].t+.01)/i,0),r[0]=n.getValueAtTime(n.keyframes[0].t/i,0),r[1]=a.getValueAtTime(a.keyframes[0].t/i,0)):n._caching.lastFrame+n.offsetTime>=n.keyframes[n.keyframes.length-1].t?(s[0]=n.getValueAtTime(n.keyframes[n.keyframes.length-1].t/i,0),s[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/i,0),r[0]=n.getValueAtTime((n.keyframes[n.keyframes.length-1].t-.01)/i,0),r[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/i,0)):(s=[n.pv,a.pv],r[0]=n.getValueAtTime((n._caching.lastFrame+n.offsetTime-.01)/i,n.offsetTime),r[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/i,a.offsetTime))}else s=r=t;this.v.rotate(-Math.atan2(s[1]-r[1],s[0]-r[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.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length){if(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;else 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],i),i.prototype.addDynamicProperty=e,i.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(t,e,s){return new i(t,e,s)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(t,e){return 1e5*Math.abs(t-e)<=Math.min(Math.abs(t),Math.abs(e))}function floatZero(t){return 1e-5>=Math.abs(t)}function lerp(t,e,i){return t*(1-i)+e*i}function lerpPoint(t,e,i){return[lerp(t[0],e[0],i),lerp(t[1],e[1],i)]}function quadRoots(t,e,i){if(0===t)return[];var s=e*e-4*t*i;if(s<0)return[];var r=-e/(2*t);if(0===s)return[r];var n=Math.sqrt(s)/(2*t);return[r-n,r+n]}function polynomialCoefficients(t,e,i,s){return[-t+3*e-3*i+s,3*t-6*e+3*i,-3*t+3*e,t]}function singlePoint(t){return new PolynomialBezier(t,t,t,t,!1)}function PolynomialBezier(t,e,i,s,r){r&&pointEqual(t,e)&&(e=lerpPoint(t,s,1/3)),r&&pointEqual(i,s)&&(i=lerpPoint(t,s,2/3));var n=polynomialCoefficients(t[0],e[0],i[0],s[0]),a=polynomialCoefficients(t[1],e[1],i[1],s[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,e,i,s]}function extrema(t,e){var i=t.points[0][e],s=t.points[t.points.length-1][e];if(i>s){var r=s;s=i,i=r}for(var n=quadRoots(3*t.a[e],2*t.b[e],t.c[e]),a=0;a<n.length;a+=1)if(n[a]>0&&n[a]<1){var o=t.point(n[a])[e];o<i?i=o:o>s&&(s=o)}return{min:i,max:s}}function intersectData(t,e,i){var s=t.boundingBox();return{cx:s.cx,cy:s.cy,width:s.width,height:s.height,bez:t,t:(e+i)/2,t1:e,t2:i}}function splitData(t){var e=t.bez.split(.5);return[intersectData(e[0],t.t1,t.t),intersectData(e[1],t.t,t.t2)]}function boxIntersect(t,e){return 2*Math.abs(t.cx-e.cx)<t.width+e.width&&2*Math.abs(t.cy-e.cy)<t.height+e.height}function intersectsImpl(t,e,i,s,r,n){if(boxIntersect(t,e)){if(i>=n||t.width<=s&&t.height<=s&&e.width<=s&&e.height<=s)return void r.push([t.t,e.t]);var a=splitData(t),o=splitData(e);intersectsImpl(a[0],o[0],i+1,s,r,n),intersectsImpl(a[0],o[1],i+1,s,r,n),intersectsImpl(a[1],o[0],i+1,s,r,n),intersectsImpl(a[1],o[1],i+1,s,r,n)}}function crossProduct(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function lineIntersection(t,e,i,s){var r=[t[0],t[1],1],n=[e[0],e[1],1],a=[i[0],i[1],1],o=[s[0],s[1],1],h=crossProduct(crossProduct(r,n),crossProduct(a,o));return floatZero(h[2])?null:[h[0]/h[2],h[1]/h[2]]}function polarOffset(t,e,i){return[t[0]+Math.cos(e)*i,t[1]-Math.sin(e)*i]}function pointDistance(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function pointEqual(t,e){return floatEqual(t[0],e[0])&&floatEqual(t[1],e[1])}function ZigZagModifier(){}function setPoint(t,e,i,s,r,n,a){var o=i-Math.PI/2,h=i+Math.PI/2,l=e[0]+Math.cos(i)*s*r,p=e[1]-Math.sin(i)*s*r;t.setTripleAt(l,p,l+Math.cos(o)*n,p-Math.sin(o)*n,l+Math.cos(h)*a,p-Math.sin(h)*a,t.length())}function getPerpendicularVector(t,e){var i=[e[0]-t[0],e[1]-t[1]],s=-(.5*Math.PI);return[Math.cos(s)*i[0]-Math.sin(s)*i[1],Math.sin(s)*i[0]+Math.cos(s)*i[1]]}function getProjectingAngle(t,e){var i=0===e?t.length()-1:e-1,s=(e+1)%t.length(),r=getPerpendicularVector(t.v[i],t.v[s]);return Math.atan2(0,1)-Math.atan2(r[1],r[0])}function zigZagCorner(t,e,i,s,r,n,a){var o=getProjectingAngle(e,i),h=e.v[i%e._length],l=e.v[0===i?e._length-1:i-1],p=e.v[(i+1)%e._length],f=2===n?Math.sqrt(Math.pow(h[0]-l[0],2)+Math.pow(h[1]-l[1],2)):0,c=2===n?Math.sqrt(Math.pow(h[0]-p[0],2)+Math.pow(h[1]-p[1],2)):0;setPoint(t,e.v[i%e._length],o,a,s,c/((r+1)*2),f/((r+1)*2))}function zigZagSegment(t,e,i,s,r,n){for(var a=0;a<s;a+=1){var o=(a+1)/(s+1),h=2===r?Math.sqrt(Math.pow(e.points[3][0]-e.points[0][0],2)+Math.pow(e.points[3][1]-e.points[0][1],2)):0,l=e.normalAngle(o);setPoint(t,e.point(o),l,n,i,h/((s+1)*2),h/((s+1)*2)),n=-n}return n}function linearOffset(t,e,i){var s=Math.atan2(e[0]-t[0],e[1]-t[1]);return[polarOffset(t,s,i),polarOffset(e,s,i)]}function offsetSegment(t,e){i=(o=linearOffset(t.points[0],t.points[1],e))[0],s=o[1],r=(o=linearOffset(t.points[1],t.points[2],e))[0],n=o[1],a=(o=linearOffset(t.points[2],t.points[3],e))[0];var i,s,r,n,a,o,h=o[1],l=lineIntersection(i,s,r,n);null===l&&(l=s);var p=lineIntersection(a,h,r,n);return null===p&&(p=a),new PolynomialBezier(i,l,p,h)}function joinLines(t,e,i,s,r){var n=e.points[3],a=i.points[0];if(3===s||pointEqual(n,a))return n;if(2===s){var o=-e.tangentAngle(1),h=-i.tangentAngle(0)+Math.PI,l=lineIntersection(n,polarOffset(n,o+Math.PI/2,100),a,polarOffset(a,o+Math.PI/2,100)),p=l?pointDistance(l,n):pointDistance(n,a)/2,f=polarOffset(n,o,2*p*roundCorner);return t.setXYAt(f[0],f[1],"o",t.length()-1),f=polarOffset(a,h,2*p*roundCorner),t.setTripleAt(a[0],a[1],a[0],a[1],f[0],f[1],t.length()),a}var c=pointEqual(n,e.points[2])?e.points[0]:e.points[2],u=pointEqual(a,i.points[1])?i.points[3]:i.points[1],m=lineIntersection(c,n,a,u);return m&&pointDistance(m,n)<r?(t.setTripleAt(m[0],m[1],m[0],m[1],m[0],m[1],t.length()),m):n}function getIntersection(t,e){var i=t.intersections(e);return(i.length&&floatEqual(i[0][0],1)&&i.shift(),i.length)?i[0]:null}function pruneSegmentIntersection(t,e){var i=t.slice(),s=e.slice(),r=getIntersection(t[t.length-1],e[0]);return(r&&(i[t.length-1]=t[t.length-1].split(r[0])[0],s[0]=e[0].split(r[1])[1]),t.length>1&&e.length>1&&(r=getIntersection(t[0],e[e.length-1])))?[[t[0].split(r[0])[0]],[e[e.length-1].split(r[1])[1]]]:[i,s]}function pruneIntersections(t){for(var e,i=1;i<t.length;i+=1)e=pruneSegmentIntersection(t[i-1],t[i]),t[i-1]=e[0],t[i]=e[1];return t.length>1&&(e=pruneSegmentIntersection(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}function offsetSegmentSplit(t,e){var i,s,r,n,a=t.inflectionPoints();if(0===a.length)return[offsetSegment(t,e)];if(1===a.length||floatEqual(a[1],1))return i=(r=t.split(a[0]))[0],s=r[1],[offsetSegment(i,e),offsetSegment(s,e)];i=(r=t.split(a[0]))[0];var o=(a[1]-a[0])/(1-a[0]);return n=(r=r[1].split(o))[0],s=r[1],[offsetSegment(i,e),offsetSegment(n,e),offsetSegment(s,e)]}function OffsetPathModifier(){}function getFontProperties(t){for(var e=t.fStyle?t.fStyle.split(" "):[],i="normal",s="normal",r=e.length,n=0;n<r;n+=1)switch(e[n].toLowerCase()){case"italic":s="italic";break;case"bold":i="700";break;case"black":i="900";break;case"medium":i="500";break;case"regular":case"normal":i="400";break;case"light":case"thin":i="200"}return{style:s,weight:t.fWeight||i}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(t,e.c,0,null,this),this.o=PropertyFactory.getProp(t,e.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(t,e.tr,this),this.so=PropertyFactory.getProp(t,e.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),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,e,i,s,r,n){var a=n?-1:1,o=s.s.v[0]+(1-s.s.v[0])*(1-r),h=s.s.v[1]+(1-s.s.v[1])*(1-r);t.translate(s.p.v[0]*a*r,s.p.v[1]*a*r,s.p.v[2]),e.translate(-s.a.v[0],-s.a.v[1],s.a.v[2]),e.rotate(-s.r.v*a*r),e.translate(s.a.v[0],s.a.v[1],s.a.v[2]),i.translate(-s.a.v[0],-s.a.v[1],s.a.v[2]),i.scale(n?1/o:o,n?1/h:h),i.translate(s.a.v[0],s.a.v[1],s.a.v[2])},RepeaterModifier.prototype.init=function(t,e,i,s){for(this.elem=t,this.arr=e,this.pos=i,this.elemsData=s,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[i]);i>0;)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;e<i;e+=1)t[e]._processed=!1,"gr"===t[e].ty&&this.resetElements(t[e].it)},RepeaterModifier.prototype.cloneElements=function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},RepeaterModifier.prototype.changeGroupRender=function(t,e){var i,s=t.length;for(i=0;i<s;i+=1)t[i]._render=e,"gr"===t[i].ty&&this.changeGroupRender(t[i].it,e)},RepeaterModifier.prototype.processShapes=function(t){var e=!1;if(this._mdf||t){var i,s,r,n,a,o,h,l,p=Math.ceil(this.c.v);if(this._groups.length<p){for(;this._groups.length<p;){var f={it:this.cloneElements(this._elements),ty:"gr"};f.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,f),this._groups.splice(0,0,f),this._currentCopies+=1}this.elem.reloadShapes(),e=!0}for(r=0,a=0;r<=this._groups.length-1;r+=1){if(o=a<p,this._groups[r]._render=o,this.changeGroupRender(this._groups[r].it,o),!o){var c=this.elemsData[r].it,u=c[c.length-1];0!==u.transform.op.v?(u.transform.op._mdf=!0,u.transform.op.v=0):u.transform.op._mdf=!1}a+=1}this._currentCopies=p;var m=this.o.v,d=m%1,g=m>0?Math.floor(m):Math.ceil(m),y=this.pMatrix.props,v=this.rMatrix.props,b=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var _=0;if(m>0){for(;_<g;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),_+=1;d&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,d,!1),_+=d)}else if(m<0){for(;_>g;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),_-=1;d&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-d,!0),_-=d)}for(r=1===this.data.m?0:this._currentCopies-1,n=1===this.data.m?1:-1,a=this._currentCopies;a;){if(l=(s=(i=this.elemsData[r].it)[i.length-1].transform.mProps.v.props).length,i[i.length-1].transform.mProps._mdf=!0,i[i.length-1].transform.op._mdf=!0,i[i.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!==_){for((0!==r&&1===n||r!==this._currentCopies-1&&-1===n)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15]),this.matrix.transform(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],b[8],b[9],b[10],b[11],b[12],b[13],b[14],b[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]),h=0;h<l;h+=1)s[h]=this.matrix.props[h];this.matrix.reset()}else for(this.matrix.reset(),h=0;h<l;h+=1)s[h]=this.matrix.props[h];_+=1,a-=1,r+=n}}else for(a=this._currentCopies,r=0,n=1;a;)s=(i=this.elemsData[r].it)[i.length-1].transform.mProps.v.props,i[i.length-1].transform.mProps._mdf=!1,i[i.length-1].transform.op._mdf=!1,a-=1,r+=n;return e},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(t,e){var i,s,r,n,a,o,h,l,p,f,c,u,m,d=shapePool.newElement();d.c=t.c;var g=t._length,y=0;for(i=0;i<g;i+=1)s=t.v[i],n=t.o[i],r=t.i[i],s[0]===n[0]&&s[1]===n[1]&&s[0]===r[0]&&s[1]===r[1]?0!==i&&i!==g-1||t.c?(a=0===i?t.v[g-1]:t.v[i-1],h=(o=Math.sqrt(Math.pow(s[0]-a[0],2)+Math.pow(s[1]-a[1],2)))?Math.min(o/2,e)/o:0,l=u=s[0]+(a[0]-s[0])*h,p=m=s[1]-(s[1]-a[1])*h,f=l-(l-s[0])*roundCorner,c=p-(p-s[1])*roundCorner,d.setTripleAt(l,p,f,c,u,m,y),y+=1,a=i===g-1?t.v[0]:t.v[i+1],h=(o=Math.sqrt(Math.pow(s[0]-a[0],2)+Math.pow(s[1]-a[1],2)))?Math.min(o/2,e)/o:0,l=f=s[0]+(a[0]-s[0])*h,p=c=s[1]+(a[1]-s[1])*h,u=l-(l-s[0])*roundCorner,m=p-(p-s[1])*roundCorner,d.setTripleAt(l,p,f,c,u,m,y)):d.setTripleAt(s[0],s[1],n[0],n[1],r[0],r[1],y):d.setTripleAt(t.v[i][0],t.v[i][1],t.o[i][0],t.o[i][1],t.i[i][0],t.i[i][1],y),y+=1;return d},RoundCornersModifier.prototype.processShapes=function(t){var e,i,s,r,n,a,o=this.shapes.length,h=this.rd.v;if(0!==h)for(i=0;i<o;i+=1){if(a=(n=this.shapes[i]).localShapeCollection,!(!n.shape._mdf&&!this._mdf&&!t))for(a.releaseShapes(),n.shape._mdf=!0,e=n.shape.paths.shapes,r=n.shape.paths._length,s=0;s<r;s+=1)a.addShape(this.processPath(e[s],h));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},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 e=this.derivative(t);return Math.atan2(e[1],e[0])},PolynomialBezier.prototype.normalAngle=function(t){var e=this.derivative(t);return Math.atan2(e[0],e[1])},PolynomialBezier.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(t))return[];var e=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,i=e*e-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(i<0)return[];var s=Math.sqrt(i);return floatZero(s)?s>0&&s<1?[e]:[]:[e-s,e+s].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 e=lerpPoint(this.points[0],this.points[1],t),i=lerpPoint(this.points[1],this.points[2],t),s=lerpPoint(this.points[2],this.points[3],t),r=lerpPoint(e,i,t),n=lerpPoint(i,s,t),a=lerpPoint(r,n,t);return[new PolynomialBezier(this.points[0],e,r,a,!0),new PolynomialBezier(a,n,s,this.points[3],!0)]},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}},PolynomialBezier.prototype.intersections=function(t,e,i){void 0===e&&(e=2),void 0===i&&(i=7);var s=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,s,i),s},PolynomialBezier.shapeSegment=function(t,e){var i=(e+1)%t.length();return new PolynomialBezier(t.v[e],t.o[e],t.i[i],t.v[i],!0)},PolynomialBezier.shapeSegmentInverted=function(t,e){var i=(e+1)%t.length();return new PolynomialBezier(t.v[i],t.i[i],t.o[e],t.v[e],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(t,e.s,0,null,this),this.frequency=PropertyFactory.getProp(t,e.r,0,null,this),this.pointsType=PropertyFactory.getProp(t,e.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(t,e,i,s){var r=t._length,n=shapePool.newElement();if(n.c=t.c,t.c||(r-=1),0===r)return n;var a=-1,o=PolynomialBezier.shapeSegment(t,0);zigZagCorner(n,t,0,e,i,s,a);for(var h=0;h<r;h+=1)a=zigZagSegment(n,o,e,i,s,-a),o=h!==r-1||t.c?PolynomialBezier.shapeSegment(t,(h+1)%r):null,zigZagCorner(n,t,h+1,e,i,s,a);return n},ZigZagModifier.prototype.processShapes=function(t){var e,i,s,r,n,a,o=this.shapes.length,h=this.amplitude.v,l=Math.max(0,Math.round(this.frequency.v)),p=this.pointsType.v;if(0!==h)for(i=0;i<o;i+=1){if(a=(n=this.shapes[i]).localShapeCollection,!(!n.shape._mdf&&!this._mdf&&!t))for(a.releaseShapes(),n.shape._mdf=!0,e=n.shape.paths.shapes,r=n.shape.paths._length,s=0;s<r;s+=1)a.addShape(this.processPath(e[s],h,l,p));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this.miterLimit=PropertyFactory.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(t,e,i,s){var r,n,a,o=shapePool.newElement();o.c=t.c;var h=t.length();t.c||(h-=1);var l=[];for(r=0;r<h;r+=1)a=PolynomialBezier.shapeSegment(t,r),l.push(offsetSegmentSplit(a,e));if(!t.c)for(r=h-1;r>=0;r-=1)a=PolynomialBezier.shapeSegmentInverted(t,r),l.push(offsetSegmentSplit(a,e));l=pruneIntersections(l);var p=null,f=null;for(r=0;r<l.length;r+=1){var c=l[r];for(f&&(p=joinLines(o,f,c[0],i,s)),f=c[c.length-1],n=0;n<c.length;n+=1)a=c[n],p&&pointEqual(a.points[0],p)?o.setXYAt(a.points[1][0],a.points[1][1],"o",o.length()-1):o.setTripleAt(a.points[0][0],a.points[0][1],a.points[1][0],a.points[1][1],a.points[0][0],a.points[0][1],o.length()),o.setTripleAt(a.points[3][0],a.points[3][1],a.points[3][0],a.points[3][1],a.points[2][0],a.points[2][1],o.length()),p=a.points[3]}return l.length&&joinLines(o,f,l[0][0],i,s),o},OffsetPathModifier.prototype.processShapes=function(t){var e,i,s,r,n,a,o=this.shapes.length,h=this.amount.v,l=this.miterLimit.v,p=this.lineJoin;if(0!==h)for(i=0;i<o;i+=1){if(a=(n=this.shapes[i]).localShapeCollection,!(!n.shape._mdf&&!this._mdf&&!t))for(a.releaseShapes(),n.shape._mdf=!0,e=n.shape.paths.shapes,r=n.shape.paths._length,s=0;s<r;s+=1)a.addShape(this.processPath(e[s],h,p,l));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var t=5e3,e={w:0,size:0,shapes:[],data:{shapes:[]}},i=[];i=i.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 s=127988,r=917631,n=917601,a=917626,o=65039,h=8205,l=127462,p=127487,f=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function c(t){var e,i=t.split(","),s=i.length,r=[];for(e=0;e<s;e+=1)"sans-serif"!==i[e]&&"monospace"!==i[e]&&r.push(i[e]);return r.join(",")}function u(t,e){var i=createTag("span");i.setAttribute("aria-hidden",!0),i.style.fontFamily=e;var s=createTag("span");s.innerText="giItT1WQy@!-/#",i.style.position="absolute",i.style.left="-10000px",i.style.top="-10000px",i.style.fontSize="300px",i.style.fontVariant="normal",i.style.fontStyle="normal",i.style.fontWeight="normal",i.style.letterSpacing="0",i.appendChild(s),document.body.appendChild(i);var r=s.offsetWidth;return s.style.fontFamily=c(t)+", "+e,{node:s,w:r,parent:i}}function m(){var e,i,s,r=this.fonts.length,n=r;for(e=0;e<r;e+=1)this.fonts[e].loaded?n-=1:"n"===this.fonts[e].fOrigin||0===this.fonts[e].origin?this.fonts[e].loaded=!0:(i=this.fonts[e].monoCase.node,s=this.fonts[e].monoCase.w,i.offsetWidth!==s?(n-=1,this.fonts[e].loaded=!0):(i=this.fonts[e].sansCase.node,s=this.fonts[e].sansCase.w,i.offsetWidth!==s&&(n-=1,this.fonts[e].loaded=!0)),this.fonts[e].loaded&&(this.fonts[e].sansCase.parent.parentNode.removeChild(this.fonts[e].sansCase.parent),this.fonts[e].monoCase.parent.parentNode.removeChild(this.fonts[e].monoCase.parent)));0!==n&&Date.now()-this.initTime<t?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function d(t,e){var i,s=document.body&&e?"svg":"canvas",r=getFontProperties(t);if("svg"===s){var n=createNS("text");n.style.fontSize="100px",n.setAttribute("font-family",t.fFamily),n.setAttribute("font-style",r.style),n.setAttribute("font-weight",r.weight),n.textContent="1",t.fClass?(n.style.fontFamily="inherit",n.setAttribute("class",t.fClass)):n.style.fontFamily=t.fFamily,e.appendChild(n),i=n}else{var a=new OffscreenCanvas(500,500).getContext("2d");a.font=r.style+" "+r.weight+" 100px "+t.fFamily,i=a}return{measureText:function(t){return"svg"===s?(i.textContent=t,i.getComputedTextLength()):i.measureText(t).width}}}function g(t,e){if(!t){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=t.list;return}if(!document.body){this.isLoaded=!0,t.list.forEach(function(t){t.helper=d(t),t.cache={}}),this.fonts=t.list;return}var i=t.list,s=i.length,r=s;for(n=0;n<s;n+=1){var n,a,o,h=!0;if(i[n].loaded=!1,i[n].monoCase=u(i[n].fFamily,"monospace"),i[n].sansCase=u(i[n].fFamily,"sans-serif"),i[n].fPath){if("p"===i[n].fOrigin||3===i[n].origin){if((a=document.querySelectorAll('style[f-forigin="p"][f-family="'+i[n].fFamily+'"], style[f-origin="3"][f-family="'+i[n].fFamily+'"]')).length>0&&(h=!1),h){var l=createTag("style");l.setAttribute("f-forigin",i[n].fOrigin),l.setAttribute("f-origin",i[n].origin),l.setAttribute("f-family",i[n].fFamily),l.type="text/css",l.innerText="@font-face {font-family: "+i[n].fFamily+"; font-style: normal; src: url('"+i[n].fPath+"');}",e.appendChild(l)}}else if("g"===i[n].fOrigin||1===i[n].origin){for(o=0,a=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]');o<a.length;o+=1)-1!==a[o].href.indexOf(i[n].fPath)&&(h=!1);if(h){var p=createTag("link");p.setAttribute("f-forigin",i[n].fOrigin),p.setAttribute("f-origin",i[n].origin),p.type="text/css",p.rel="stylesheet",p.href=i[n].fPath,document.body.appendChild(p)}}else if("t"===i[n].fOrigin||2===i[n].origin){for(o=0,a=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]');o<a.length;o+=1)i[n].fPath===a[o].src&&(h=!1);if(h){var f=createTag("link");f.setAttribute("f-forigin",i[n].fOrigin),f.setAttribute("f-origin",i[n].origin),f.setAttribute("rel","stylesheet"),f.setAttribute("href",i[n].fPath),e.appendChild(f)}}}else i[n].loaded=!0,r-=1;i[n].helper=d(i[n],e),i[n].cache={},this.fonts.push(i[n])}0===r?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function y(t){if(t){this.chars||(this.chars=[]);var e,i,s,r=t.length,n=this.chars.length;for(e=0;e<r;e+=1){for(i=0,s=!1;i<n;)this.chars[i].style===t[e].style&&this.chars[i].fFamily===t[e].fFamily&&this.chars[i].ch===t[e].ch&&(s=!0),i+=1;s||(this.chars.push(t[e]),n+=1)}}}function v(t,i,s){for(var r=0,n=this.chars.length;r<n;){if(this.chars[r].ch===t&&this.chars[r].style===i&&this.chars[r].fFamily===s)return this.chars[r];r+=1}return("string"==typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",t,i,s)),e}function b(t,e,i){var s=this.getFontByName(e),r=t;if(!s.cache[r]){var n=s.helper;if(" "===t){var a=n.measureText("|"+t+"|"),o=n.measureText("||");s.cache[r]=(a-o)/100}else s.cache[r]=n.measureText(t)/100}return s.cache[r]*i}function _(t){for(var e=0,i=this.fonts.length;e<i;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]}function x(t){var e=0,i=t.charCodeAt(0);if(i>=55296&&i<=56319){var s=t.charCodeAt(1);s>=56320&&s<=57343&&(e=(i-55296)*1024+s-56320+65536)}return e}function k(t){return t===h}function w(t){return t===o}function S(t){var e=x(t);return!!(e>=l)&&!!(e<=p)}function C(t){return S(t.substr(0,2))&&S(t.substr(2,2))}function A(t){return -1!==i.indexOf(t)}function P(t,e){var i=x(t.substr(e,2));if(i!==s)return!1;var o=0;for(e+=2;o<5;){if((i=x(t.substr(e,2)))<n||i>a)return!1;o+=1,e+=2}return x(t.substr(e,2))===r}function M(){this.isLoaded=!0}var E=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};return E.isModifier=function(t,e){var i=t.toString(16)+e.toString(16);return -1!==f.indexOf(i)},E.isZeroWidthJoiner=k,E.isFlagEmoji=C,E.isRegionalCode=S,E.isCombinedCharacter=A,E.isRegionalFlag=P,E.isVariationSelector=w,E.BLACK_FLAG_CODE_POINT=s,E.prototype={addChars:y,addFonts:g,getCharData:v,getFontByName:_,measureText:b,checkLoadedFonts:m,setIsLoaded:M},E}();function SlotManager(t){this.animationData=t}function slotFactory(t){return new SlotManager(t)}function RenderableElement(){}SlotManager.prototype.getProp=function(t){return this.animationData.slots&&this.animationData.slots[t.sid]?Object.assign(t,this.animationData.slots[t.sid].p):t},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!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;t<e;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};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(e){return t[e]||""}}();function SliderEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function AngleEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function ColorEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,1,0,i)}function PointEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,1,0,i)}function LayerIndexEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function MaskIndexEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function CheckboxEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function NoValueEffect(){this.p={}}function EffectsManager(t,e){var i,s,r=t.ef||[];this.effectElements=[];var n=r.length;for(i=0;i<n;i+=1)s=new GroupEffect(r[i],e),this.effectElements.push(s)}function GroupEffect(t,e){this.init(t,e)}function BaseElement(){}function FrameElement(){}function FootageElement(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,i)}function AudioElement(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,i),this._isPlaying=!1,this._canPlay=!1;var s=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(s),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,e.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,e){this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var i,s,r=this.data.ef.length,n=this.data.ef;for(i=0;i<r;i+=1){switch(s=null,n[i].ty){case 0:s=new SliderEffect(n[i],e,this);break;case 1:s=new AngleEffect(n[i],e,this);break;case 2:s=new ColorEffect(n[i],e,this);break;case 3:s=new PointEffect(n[i],e,this);break;case 4:case 7:s=new CheckboxEffect(n[i],e,this);break;case 10:s=new LayerIndexEffect(n[i],e,this);break;case 11:s=new MaskIndexEffect(n[i],e,this);break;case 5:s=new EffectsManager(n[i],e);break;default:s=new NoValueEffect(n[i])}s&&this.effectElements.push(s)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if("n"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},initExpressions:function(){var t=getExpressionInterfaces();if(t){var e=t("layer"),i=t("effects"),s=t("shape"),r=t("text"),n=t("comp");this.layerInterface=e(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var a=i.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(a),0===this.data.ty||this.data.xt?this.compInterface=n(this):4===this.data.ty?(this.layerInterface.shapeInterface=s(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=r(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var t=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(t,e,i){this.globalData=e,this.comp=i,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){var i,s=this.dynamicProperties.length;for(i=0;i<s;i+=1)(e||this._isParent&&"transform"===this.dynamicProperties[i].propType)&&(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},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){var e=t("footage");this.layerInterface=e(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,s=this.layers.length;for(this.completeLayers=!0,e=s-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 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;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(t){this.completeLayers=!1;var e,i,s=t.length,r=this.layers.length;for(e=0;e<s;e+=1)for(i=0;i<r;){if(this.layers[i].id===t[e].id){this.layers[i]=t[e];break}i+=1}},BaseRenderer.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(t,e,i){for(var s=this.elements,r=this.layers,n=0,a=r.length;n<a;)r[n].ind==e&&(s[n]&&!0!==s[n]?(i.push(s[n]),s[n].setAsParent(),void 0!==r[n].parent?this.buildElementParenting(t,r[n].parent,i):t.setHierarchy(i)):(this.buildItem(n),this.addPendingElement(t))),n+=1},BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t)},BaseRenderer.prototype.searchExtraCompositions=function(t){var e,i=t.length;for(e=0;e<i;e+=1)if(t[e].xt){var s=this.createComp(t[e]);s.initExpressions(),this.globalData.projectInterface.registerComposition(s)}},BaseRenderer.prototype.getElementById=function(t){var e,i=this.elements.length;for(e=0;e<i;e+=1)if(this.elements[e].data.ind===t)return this.elements[e];return null},BaseRenderer.prototype.getElementByPath=function(t){var e=t.shift();if("number"==typeof e)i=this.elements[e];else{var i,s,r=this.elements.length;for(s=0;s<r;s+=1)if(this.elements[s].data.nm===e){i=this.elements[s];break}}return 0===t.length?i:i.getElementByPath(t)},BaseRenderer.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(t),this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),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(){}function MaskElement(t,e,i){this.data=t,this.element=e,this.globalData=i,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var s=this.globalData.defs,r=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(r),this.solidPath="";var n=this.masksProperties,a=0,o=[],h=createElementID(),l="clipPath",p="clip-path";for(f=0;f<r;f+=1)if(("a"!==n[f].mode&&"n"!==n[f].mode||n[f].inv||100!==n[f].o.k||n[f].o.x)&&(l="mask",p="mask"),("s"===n[f].mode||"i"===n[f].mode)&&0===a?((m=createNS("rect")).setAttribute("fill","#ffffff"),m.setAttribute("width",this.element.comp.data.w||0),m.setAttribute("height",this.element.comp.data.h||0),o.push(m)):m=null,c=createNS("path"),"n"===n[f].mode)this.viewData[f]={op:PropertyFactory.getProp(this.element,n[f].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,n[f],3),elem:c,lastPath:""},s.appendChild(c);else{if(a+=1,c.setAttribute("fill","s"===n[f].mode?"#000000":"#ffffff"),c.setAttribute("clip-rule","nonzero"),0!==n[f].x.k?(l="mask",p="mask",y=PropertyFactory.getProp(this.element,n[f].x,0,null,this.element),v=createElementID(),(d=createNS("filter")).setAttribute("id",v),(g=createNS("feMorphology")).setAttribute("operator","erode"),g.setAttribute("in","SourceGraphic"),g.setAttribute("radius","0"),d.appendChild(g),s.appendChild(d),c.setAttribute("stroke","s"===n[f].mode?"#000000":"#ffffff")):(g=null,y=null),this.storedData[f]={elem:c,x:y,expan:g,lastPath:"",lastOperator:"",filterId:v,lastRadius:0},"i"===n[f].mode){var f,c,u,m,d,g,y,v,b=o.length,_=createNS("g");for(u=0;u<b;u+=1)_.appendChild(o[u]);var x=createNS("mask");x.setAttribute("mask-type","alpha"),x.setAttribute("id",h+"_"+a),x.appendChild(c),s.appendChild(x),_.setAttribute("mask","url("+getLocationHref()+"#"+h+"_"+a+")"),o.length=0,o.push(_)}else o.push(c);n[f].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[f]={elem:c,lastPath:"",op:PropertyFactory.getProp(this.element,n[f].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,n[f],3),invRect:m},this.viewData[f].prop.k||this.drawPath(n[f],this.viewData[f].prop.v,this.viewData[f])}for(f=0,this.maskElement=createNS(l),r=o.length;f<r;f+=1)this.maskElement.appendChild(o[f]);a>0&&(this.maskElement.setAttribute("id",h),this.element.maskedElement.setAttribute(p,"url("+getLocationHref()+"#"+h+")"),s.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var t=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:t,localMat:t,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,e=this.finalTransform.mat,i=0,s=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<s;){if(this.hierarchy[i].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}i+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),i=0;i<s;i+=1)e.multiply(this.hierarchy[i].finalTransform.mProp.v)}(!this.localTransforms||this.finalTransform._matMdf)&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var t=0,e=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;t<e;)this.localTransforms[t]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[t]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),t+=1;if(this.finalTransform._localMatMdf){var i=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(i),t=1;t<e;t+=1){var s=this.localTransforms[t].matrix;i.multiply(s)}i.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var r=this.finalTransform.localOpacity;for(t=0;t<e;t+=1)r*=.01*this.localTransforms[t].opacity;this.finalTransform.localOpacity=r}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var t=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(t.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var e=0,i=t.length;for(e=0;e<i;e+=1)this.localTransforms.push(t[e])}}},globalToLocal:function(t){var e,i,s=[];s.push(this.finalTransform);for(var r=!0,n=this.comp;r;)n.finalTransform?(n.data.hasMask&&s.splice(0,0,n.finalTransform),n=n.comp):r=!1;var a=s.length;for(e=0;e<a;e+=1)i=s[e].mat.applyToPointArray(0,0,0),t=[t[0]-i[0],t[1]-i[1],0];return t},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var e,i=this.element.finalTransform.mat,s=this.masksProperties.length;for(e=0;e<s;e+=1)if((this.viewData[e].prop._mdf||t)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),(this.viewData[e].op._mdf||t)&&this.viewData[e].elem.setAttribute("fill-opacity",this.viewData[e].op.v),"n"!==this.masksProperties[e].mode&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[e].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS()),this.storedData[e].x&&(this.storedData[e].x._mdf||t))){var r=this.storedData[e].expan;this.storedData[e].x.v<0?("erode"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="erode",this.storedData[e].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[e].filterId+")")),r.setAttribute("radius",-this.storedData[e].x.v)):("dilate"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="dilate",this.storedData[e].elem.setAttribute("filter",null)),this.storedData[e].elem.setAttribute("stroke-width",2*this.storedData[e].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+(" h"+this.globalData.compSize.w+" v"+this.globalData.compSize.h+" h-"+this.globalData.compSize.w+(" v-"+this.globalData.compSize.h)+" ")},MaskElement.prototype.drawPath=function(t,e,i){var s,r,n=" M"+e.v[0][0]+","+e.v[0][1];for(s=1,r=e._length;s<r;s+=1)n+=" C"+e.o[s-1][0]+","+e.o[s-1][1]+" "+e.i[s][0]+","+e.i[s][1]+" "+e.v[s][0]+","+e.v[s][1];if(e.c&&r>1&&(n+=" C"+e.o[s-1][0]+","+e.o[s-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),i.lastPath!==n){var a="";i.elem&&(e.c&&(a=t.inv?this.solidPath+n:n),i.elem.setAttribute("d",a)),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={};function e(){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.createFilter=function t(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},t.createAlphaToLuminanceFilter=e,t}(),featureSupport=function(){var t={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas};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),/firefox/i.test(navigator.userAgent)&&(t.svgLumaHidden=!1),t}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(t){var e,i,s="SourceGraphic",r=t.data.ef?t.data.ef.length:0,n=createElementID(),a=filtersFactory.createFilter(n,!0),o=0;for(e=0,this.filters=[];e<r;e+=1){i=null;var h=t.data.ef[e].ty;registeredEffects$1[h]&&(i=new registeredEffects$1[h].effect(a,t.effectsManager.effectElements[e],t,idPrefix+o,s),s=idPrefix+o,registeredEffects$1[h].countsAsEffect&&(o+=1)),i&&this.filters.push(i)}o&&(t.globalData.defs.appendChild(a),t.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+n+")")),this.filters.length&&t.addRenderableComponent(this)}function registerEffect$1(t,e,i){registeredEffects$1[t]={effect:e,countsAsEffect:i}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.assetData&&this.assetData.sid&&(this.assetData=e.slotManager.getProp(this.assetData)),this.initElement(t,e,i),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(t,e){this.elem=t,this.pos=e}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(t){var e,i=this.filters.length;for(e=0;e<i;e+=1)this.filters[e].renderFrame(t)},SVGEffects.prototype.getEffects=function(t){var e,i=this.filters.length,s=[];for(e=0;e<i;e+=1)this.filters[e].type===t&&s.push(this.filters[e]);return s},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t=null;if(this.data.td){this.matteMasks={};var e=createNS("g");e.setAttribute("id",this.layerId),e.appendChild(this.layerElement),t=e,this.globalData.defs.appendChild(e)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var i=createNS("clipPath"),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 r=createElementID();if(i.setAttribute("id",r),i.appendChild(s),this.globalData.defs.appendChild(i),this.checkMasks()){var n=createNS("g");n.setAttribute("clip-path","url("+getLocationHref()+"#"+r+")"),n.appendChild(this.layerElement),this.transformedElement=n,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+r+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var e,i,s,r,n=this.layerId+"_"+t;if(1===t||3===t){var a=createNS("mask");a.setAttribute("id",n),a.setAttribute("mask-type",3===t?"luminance":"alpha"),(s=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),a.appendChild(s),this.globalData.defs.appendChild(a),featureSupport.maskType||1!==t||(a.setAttribute("mask-type","luminance"),e=createElementID(),i=filtersFactory.createFilter(e),this.globalData.defs.appendChild(i),i.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(r=createNS("g")).appendChild(s),a.appendChild(r),r.setAttribute("filter","url("+getLocationHref()+"#"+e+")"))}else if(2===t){var o=createNS("mask");o.setAttribute("id",n),o.setAttribute("mask-type","alpha");var h=createNS("g");o.appendChild(h),e=createElementID(),i=filtersFactory.createFilter(e);var l=createNS("feComponentTransfer");l.setAttribute("in","SourceGraphic"),i.appendChild(l);var p=createNS("feFuncA");p.setAttribute("type","table"),p.setAttribute("tableValues","1.0 0.0"),l.appendChild(p),this.globalData.defs.appendChild(i);var f=createNS("rect");f.setAttribute("width",this.comp.data.w),f.setAttribute("height",this.comp.data.h),f.setAttribute("x","0"),f.setAttribute("y","0"),f.setAttribute("fill","#ffffff"),f.setAttribute("opacity","0"),h.setAttribute("filter","url("+getLocationHref()+"#"+e+")"),h.appendChild(f),(s=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),h.appendChild(s),featureSupport.maskType||(o.setAttribute("mask-type","luminance"),i.appendChild(filtersFactory.createAlphaToLuminanceFilter()),r=createNS("g"),h.appendChild(f),r.appendChild(this.layerElement),h.appendChild(r)),this.globalData.defs.appendChild(o)}this.matteMasks[t]=n}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},function(){extendPrototype([RenderableElement,createProxyFunction({initElement:function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement)}(),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},IShapeElement.prototype={addShapeToModifiers:function(t){var e,i=this.shapeModifiers.length;for(e=0;e<i;e+=1)this.shapeModifiers[e].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var e=0,i=this.shapeModifiers.length;e<i;)if(this.shapeModifiers[e].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,e=this.shapes.length;for(t=0;t<e;t+=1)this.shapes[t].sh.reset();for(e=this.shapeModifiers.length,t=e-1;t>=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,i=0,s=e.length;i<s;){if(e[i].elem===t)return e[i].pos;i+=1}return 0},addProcessedElement:function(t,e){for(var i=this.processedElements,s=i.length;s;)if(i[s-=1].elem===t){i[s].pos=e;return}i.push(new ProcessedElement(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(t,e,i){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=i,this.lvl=e,this._isAnimated=!!i.k;for(var s=0,r=t.length;s<r;){if(t[s].mProps.dynamicProperties.length){this._isAnimated=!0;break}s+=1}}function SVGStyleData(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(t,e,i,s){this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(e.length),this.renderer=i,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",e.length?e.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(s);var r,n,a=e.length||0;for(r=0;r<a;r+=1)n=PropertyFactory.getProp(t,e[r].v,0,0,this),this.k=n.k||this.k,this.dataProps[r]={n:e[r].n,p:n};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=i,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=i}function SVGNoStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=i}function GradientProperty(t,e,i){this.data=e,this.c=createTypedArray("uint8c",4*e.p);var s=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=createTypedArray("float32",s),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=s,this.initDynamicPropertyContainer(i),this.prop=PropertyFactory.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,i)}function SVGGradientStrokeStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.initGradientData(t,e,i),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(t,e,i){this.transform={mProps:t,op:e,container:i},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,i=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),e=0;e<i;e+=1)"o"!==this.dataProps[e].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(t,e){for(var i=0,s=this.o.length/2;i<s;){if(Math.abs(t[4*i]-t[4*e+2*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;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,i,s,r=4*this.data.p;for(e=0;e<r;e+=1)i=e%4==0?100:255,s=Math.round(this.prop.v[e]*i),this.c[e]!==s&&(this.c[e]=s,this._cmdf=!t);if(this.o.length)for(r=this.prop.v.length,e=4*this.data.p;e<r;e+=1)i=e%2==0?100:1,s=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==s&&(this.o[e-4*this.data.p]=s,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(t,e,i){this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.s=PropertyFactory.getProp(t,e.s,1,null,this),this.e=PropertyFactory.getProp(t,e.e,1,null,this),this.h=PropertyFactory.getProp(t,e.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(t,e.a||{k:0},0,degToRads,this),this.g=new GradientProperty(t,e.g,this),this.style=i,this.stops=[],this.setGradientData(i.pElem,e),this.setGradientOpacity(e,i),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(t,e){var i,s,r,n=createElementID(),a=createNS(1===e.t?"linearGradient":"radialGradient");a.setAttribute("id",n),a.setAttribute("spreadMethod","pad"),a.setAttribute("gradientUnits","userSpaceOnUse");var o=[];for(s=0,r=4*e.g.p;s<r;s+=4)i=createNS("stop"),a.appendChild(i),o.push(i);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+n+")"),this.gf=a,this.cst=o},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var i,s,r,n=createNS("mask"),a=createNS("path");n.appendChild(a);var o=createElementID(),h=createElementID();n.setAttribute("id",h);var l=createNS(1===t.t?"linearGradient":"radialGradient");l.setAttribute("id",o),l.setAttribute("spreadMethod","pad"),l.setAttribute("gradientUnits","userSpaceOnUse"),r=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var p=this.stops;for(s=4*t.g.p;s<r;s+=2)(i=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),l.appendChild(i),p.push(i);a.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+o+")"),"gs"===t.ty&&(a.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),a.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),1===t.lj&&a.setAttribute("stroke-miterlimit",t.ml)),this.of=l,this.ms=n,this.ost=p,this.maskId=h,e.msElem=a}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(t,e,i,s){if(0===e)return"";var r,n=t.o,a=t.i,o=t.v,h=" M"+s.applyToPointStringified(o[0][0],o[0][1]);for(r=1;r<e;r+=1)h+=" C"+s.applyToPointStringified(n[r-1][0],n[r-1][1])+" "+s.applyToPointStringified(a[r][0],a[r][1])+" "+s.applyToPointStringified(o[r][0],o[r][1]);return i&&e&&(h+=" C"+s.applyToPointStringified(n[r-1][0],n[r-1][1])+" "+s.applyToPointStringified(a[0][0],a[0][1])+" "+s.applyToPointStringified(o[0][0],o[0][1])+"z"),h},SVGElementsRenderer=function(){var t=new Matrix,e=new Matrix;function i(t,e,i){(i||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",e.transform.op.v),(i||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function s(){}function r(i,s,r){var n,a,o,h,l,p,f,c,u,m,d=s.styles.length,g=s.lvl;for(p=0;p<d;p+=1){if(h=s.sh._mdf||r,s.styles[p].lvl<g){for(c=e.reset(),u=g-s.styles[p].lvl,m=s.transformers.length-1;!h&&u>0;)h=s.transformers[m].mProps._mdf||h,u-=1,m-=1;if(h)for(u=g-s.styles[p].lvl,m=s.transformers.length-1;u>0;)c.multiply(s.transformers[m].mProps.v),u-=1,m-=1}else c=t;if(a=(f=s.sh.paths)._length,h){for(n=0,o="";n<a;n+=1)(l=f.shapes[n])&&l._length&&(o+=buildShapeString(l,l._length,l.c,c));s.caches[p]=o}else o=s.caches[p];s.styles[p].d+=!0===i.hd?"":o,s.styles[p]._mdf=h||s.styles[p]._mdf}}function n(t,e,i){var s=e.style;(e.c._mdf||i)&&s.pElem.setAttribute("fill","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i)&&s.pElem.setAttribute("fill-opacity",e.o.v)}function a(t,e,i){o(t,e,i),h(t,e,i)}function o(t,e,i){var s,r,n,a,o,h=e.gf,l=e.g._hasOpacity,p=e.s.v,f=e.e.v;if(e.o._mdf||i){var c="gf"===t.ty?"fill-opacity":"stroke-opacity";e.style.pElem.setAttribute(c,e.o.v)}if(e.s._mdf||i){var u=1===t.t?"x1":"cx",m="x1"===u?"y1":"cy";h.setAttribute(u,p[0]),h.setAttribute(m,p[1]),l&&!e.g._collapsable&&(e.of.setAttribute(u,p[0]),e.of.setAttribute(m,p[1]))}if(e.g._cmdf||i){s=e.cst;var d=e.g.c;for(r=0,n=s.length;r<n;r+=1)(a=s[r]).setAttribute("offset",d[4*r]+"%"),a.setAttribute("stop-color","rgb("+d[4*r+1]+","+d[4*r+2]+","+d[4*r+3]+")")}if(l&&(e.g._omdf||i)){var g=e.g.o;for(r=0,n=(s=e.g._collapsable?e.cst:e.ost).length;r<n;r+=1)a=s[r],e.g._collapsable||a.setAttribute("offset",g[2*r]+"%"),a.setAttribute("stop-opacity",g[2*r+1])}if(1===t.t)(e.e._mdf||i)&&(h.setAttribute("x2",f[0]),h.setAttribute("y2",f[1]),l&&!e.g._collapsable&&(e.of.setAttribute("x2",f[0]),e.of.setAttribute("y2",f[1])));else if((e.s._mdf||e.e._mdf||i)&&(o=Math.sqrt(Math.pow(p[0]-f[0],2)+Math.pow(p[1]-f[1],2)),h.setAttribute("r",o),l&&!e.g._collapsable&&e.of.setAttribute("r",o)),e.s._mdf||e.e._mdf||e.h._mdf||e.a._mdf||i){o||(o=Math.sqrt(Math.pow(p[0]-f[0],2)+Math.pow(p[1]-f[1],2)));var y=Math.atan2(f[1]-p[1],f[0]-p[0]),v=e.h.v;v>=1?v=.99:v<=-1&&(v=-.99);var b=o*v,_=Math.cos(y+e.a.v)*b+p[0],x=Math.sin(y+e.a.v)*b+p[1];h.setAttribute("fx",_),h.setAttribute("fy",x),l&&!e.g._collapsable&&(e.of.setAttribute("fx",_),e.of.setAttribute("fy",x))}}function h(t,e,i){var s=e.style,r=e.d;r&&(r._mdf||i)&&r.dashStr&&(s.pElem.setAttribute("stroke-dasharray",r.dashStr),s.pElem.setAttribute("stroke-dashoffset",r.dashoffset[0])),e.c&&(e.c._mdf||i)&&s.pElem.setAttribute("stroke","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i)&&s.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||i)&&(s.pElem.setAttribute("stroke-width",e.w.v),s.msElem&&s.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 a;case"st":return h;case"sh":case"el":case"rc":case"sr":return r;case"tr":return i;case"no":return s;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,s,r,n){this.o=t,this.sw=e,this.sc=i,this.fc=s,this.m=r,this.p=n,this._mdf={o:!0,sw:!!e,sc:!!i,fc:!!s,m:!0,p:!0}}function TextProperty(t,e){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,e.d&&e.d.sid&&(e.d=t.globalData.slotManager.getProp(e.d)),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,s,r=this.shapes.length,n=this.stylesList.length,a=[],o=!1;for(i=0;i<n;i+=1){for(t=0,s=this.stylesList[i],o=!1,a.length=0;t<r;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(s)&&(a.push(e),o=e._isAnimated||o);a.length>1&&o&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(t,e){var i,s=new SVGStyleData(t,e),r=s.pElem;return"st"===t.ty?i=new SVGStrokeStyleData(this,t,s):"fl"===t.ty?i=new SVGFillStyleData(this,t,s):"gf"===t.ty||"gs"===t.ty?(i=new("gf"===t.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,t,s),this.globalData.defs.appendChild(i.gf),i.maskId&&(this.globalData.defs.appendChild(i.ms),this.globalData.defs.appendChild(i.of),r.setAttribute("mask","url("+getLocationHref()+"#"+i.maskId+")"))):"no"===t.ty&&(i=new SVGNoStyleData(this,t,s)),("st"===t.ty||"gs"===t.ty)&&(r.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),r.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),r.setAttribute("fill-opacity","0"),1===t.lj&&r.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&r.setAttribute("fill-rule","evenodd"),t.ln&&r.setAttribute("id",t.ln),t.cl&&r.setAttribute("class",t.cl),t.bm&&(r.style["mix-blend-mode"]=getBlendMode(t.bm)),this.stylesList.push(s),this.addToAnimatedContents(t,i),i},SVGShapeElement.prototype.createGroupElement=function(t){var e=new ShapeGroupData;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=getBlendMode(t.bm)),e},SVGShapeElement.prototype.createTransformElement=function(t,e){var i=TransformPropertyFactory.getTransformProperty(this,t,this),s=new SVGTransformData(i,i.o,e);return this.addToAnimatedContents(t,s),s},SVGShapeElement.prototype.createShapeElement=function(t,e,i){var s=4;"rc"===t.ty?s=5:"el"===t.ty?s=6:"sr"===t.ty&&(s=7);var r=new SVGShapeData(e,i,ShapePropertyFactory.getShapeProp(this,t,s,this));return this.shapes.push(r),this.addShapeToModifiers(r),this.addToAnimatedContents(t,r),r},SVGShapeElement.prototype.addToAnimatedContents=function(t,e){for(var i=0,s=this.animatedContents.length;i<s;){if(this.animatedContents[i].element===e)return;i+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:e,data:t})},SVGShapeElement.prototype.setElementStyles=function(t){var e,i=t.styles,s=this.stylesList.length;for(e=0;e<s;e+=1)-1!==i.indexOf(this.stylesList[e])||this.stylesList[e].closed||i.push(this.stylesList[e])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var t,e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(t,e,i,s,r,n,a){var o,h,l,p,f,c,u=[].concat(n),m=t.length-1,d=[],g=[];for(o=m;o>=0;o-=1){if((c=this.searchProcessedElement(t[o]))?e[o]=i[c-1]:t[o]._render=a,"fl"===t[o].ty||"st"===t[o].ty||"gf"===t[o].ty||"gs"===t[o].ty||"no"===t[o].ty)c?e[o].style.closed=t[o].hd:e[o]=this.createStyleElement(t[o],r),t[o]._render&&e[o].style.pElem.parentNode!==s&&s.appendChild(e[o].style.pElem),d.push(e[o].style);else if("gr"===t[o].ty){if(c)for(h=0,l=e[o].it.length;h<l;h+=1)e[o].prevViewData[h]=e[o].it[h];else e[o]=this.createGroupElement(t[o]);this.searchShapes(t[o].it,e[o].it,e[o].prevViewData,e[o].gr,r+1,u,a),t[o]._render&&e[o].gr.parentNode!==s&&s.appendChild(e[o].gr)}else"tr"===t[o].ty?(c||(e[o]=this.createTransformElement(t[o],s)),p=e[o].transform,u.push(p)):"sh"===t[o].ty||"rc"===t[o].ty||"el"===t[o].ty||"sr"===t[o].ty?(c||(e[o]=this.createShapeElement(t[o],u,r)),this.setElementStyles(e[o])):"tm"===t[o].ty||"rd"===t[o].ty||"ms"===t[o].ty||"pb"===t[o].ty||"zz"===t[o].ty||"op"===t[o].ty?(c?(f=e[o]).closed=!1:((f=ShapeModifiers.getModifier(t[o].ty)).init(this,t[o]),e[o]=f,this.shapeModifiers.push(f)),g.push(f)):"rp"===t[o].ty&&(c?(f=e[o]).closed=!0:(f=ShapeModifiers.getModifier(t[o].ty),e[o]=f,f.init(this,t,o,e),this.shapeModifiers.push(f),a=!1),g.push(f));this.addProcessedElement(t[o],o+1)}for(o=0,m=d.length;o<m;o+=1)d[o].closed=!0;for(o=0,m=g.length;o<m;o+=1)g[o].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var t,e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<e;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(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,e,i=this.animatedContents.length;for(t=0;t<i;t+=1)e=this.animatedContents[t],(this._isFirstFrame||e.element._isAnimated)&&!0!==e.data&&e.fn(e.data,e.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(t,e,i,s,r,n){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var a=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,a=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,a=!0),this.sc!==i&&(this.sc=i,this._mdf.sc=!0,a=!0),this.fc!==s&&(this.fc=s,this._mdf.fc=!0,a=!0),this.m!==r&&(this.m=r,this._mdf.m=!0,a=!0),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=!0,a=!0),a},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},TextProperty.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,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,i=this.currentData,s=this.keysIndex;if(this.lock)return void this.setCurrentData(this.currentData);this.lock=!0,this._mdf=!1;var r=this.effectsSequence.length,n=t||this.data.d.k[this.keysIndex].s;for(e=0;e<r;e+=1)n=s!==this.keysIndex?this.effectsSequence[e](n,n.t):this.effectsSequence[e](this.currentData,n.t);i!==n&&this.setCurrentData(n),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,i=0,s=t.length;i<=s-1&&i!==s-1&&!(t[i+1].t>e);)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,s=[],r=0,n=t.length,a=!1,o=!1,h="";r<n;)a=o,o=!1,e=t.charCodeAt(r),h=t.charAt(r),FontManager.isCombinedCharacter(e)?a=!0:e>=55296&&e<=56319?FontManager.isRegionalFlag(t,r)?h=t.substr(r,14):(i=t.charCodeAt(r+1))>=56320&&i<=57343&&(FontManager.isModifier(e,i)?(h=t.substr(r,2),a=!0):h=FontManager.isFlagEmoji(t.substr(r,4))?t.substr(r,4):t.substr(r,2)):e>56319?(i=t.charCodeAt(r+1),FontManager.isVariationSelector(e)&&(a=!0)):FontManager.isZeroWidthJoiner(e)&&(a=!0,o=!0),a?(s[s.length-1]+=h,a=!1):s.push(h),r+=h.length;return s},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e=this.elem.globalData.fontManager,i=this.data,s=[],r=0,n=i.m.g,a=0,o=0,h=0,l=[],p=0,f=0,c=e.getFontByName(t.f),u=0,m=getFontProperties(c);t.fWeight=m.weight,t.fStyle=m.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),y=t.finalText.length,t.finalLineHeight=t.lh;var d=t.tr/1e3*t.finalSize;if(t.sz)for(var g,y,v,b,_,x,k,w,S,C,A=!0,P=t.sz[0],M=t.sz[1];A;){C=this.buildFinalText(t.t),S=0,p=0,y=C.length,d=t.tr/1e3*t.finalSize;var E=-1;for(g=0;g<y;g+=1)w=C[g].charCodeAt(0),v=!1," "===C[g]?E=g:(13===w||3===w)&&(p=0,v=!0,S+=t.finalLineHeight||1.2*t.finalSize),e.chars?(k=e.getCharData(C[g],c.fStyle,c.fFamily),u=v?0:k.w*t.finalSize/100):u=e.measureText(C[g],t.f,t.finalSize),p+u>P&&" "!==C[g]?(-1===E?y+=1:g=E,S+=t.finalLineHeight||1.2*t.finalSize,C.splice(g,+(E===g),"\r"),E=-1,p=0):(p+=u,p+=d);S+=c.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&M<S?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=C,y=t.finalText.length,A=!1)}p=-d,u=0;var D=0;for(g=0;g<y;g+=1)if(v=!1,13===(w=(I=t.finalText[g]).charCodeAt(0))||3===w?(D=0,l.push(p),f=p>f?p:f,p=-2*d,b="",v=!0,h+=1):b=I,e.chars?(k=e.getCharData(I,c.fStyle,e.getFontByName(t.f).fFamily),u=v?0:k.w*t.finalSize/100):u=e.measureText(b,t.f,t.finalSize)," "===I?D+=u+d:(p+=u+d+D,D=0),s.push({l:u,an:u,add:a,n:v,anIndexes:[],val:b,line:h,animatorJustifyOffset:0}),2==n){if(a+=u,""===b||" "===b||g===y-1){for((""===b||" "===b)&&(a-=u);o<=g;)s[o].an=a,s[o].ind=r,s[o].extra=u,o+=1;r+=1,a=0}}else if(3==n){if(a+=u,""===b||g===y-1){for(""===b&&(a-=u);o<=g;)s[o].an=a,s[o].ind=r,s[o].extra=u,o+=1;a=0,r+=1}}else s[r].ind=r,s[r].extra=0,r+=1;if(t.l=s,f=p>f?p:f,l.push(p),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=f,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=l;var T=i.a;x=T.length;var F=[];for(_=0;_<x;_+=1){for((L=T[_]).a.sc&&(t.strokeColorAnim=!0),L.a.sw&&(t.strokeWidthAnim=!0),(L.a.fc||L.a.fh||L.a.fs||L.a.fb)&&(t.fillColorAnim=!0),O=0,z=L.s.b,g=0;g<y;g+=1)(B=s[g]).anIndexes[_]=O,(1==z&&""!==B.val||2==z&&""!==B.val&&" "!==B.val||3==z&&(B.n||" "==B.val||g==y-1)||4==z&&(B.n||g==y-1))&&(1===L.s.rn&&F.push(O),O+=1);i.a[_].s.totalChars=O;var I,L,B,z,O,R,V=-1;if(1===L.s.rn)for(g=0;g<y;g+=1)V!=(B=s[g]).anIndexes[_]&&(V=B.anIndexes[_],R=F.splice(Math.floor(Math.random()*F.length),1)[0]),B.anIndexes[_]=R}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=c.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var i=this.copyData({},this.data.d.k[e].s);i=this.copyData(i,t),this.data.d.k[e].s=i,this.recalculate(e),this.setCurrentData(i),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},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,e=Math.min,i=Math.floor;function s(t,e){this._currentTextLength=-1,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=PropertyFactory.getProp(t,e.s||{k:0},0,0,this),"e"in e?this.e=PropertyFactory.getProp(t,e.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(t,e.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(t,e.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(t,e.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(t,e.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(t,e.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return s.prototype={getMult:function(s){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var r=0,n=0,a=1,o=1;this.ne.v>0?r=this.ne.v/100:n=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:o=1+this.xe.v/100;var h=BezierFactory.getBezierEasing(r,n,a,o).get,l=0,p=this.finalS,f=this.finalE,c=this.data.sh;if(2===c)l=h(l=f===p?+(s>=f):t(0,e(.5/(f-p)+(s-p)/(f-p),1)));else if(3===c)l=h(l=f===p?s>=f?0:1:1-t(0,e(.5/(f-p)+(s-p)/(f-p),1)));else if(4===c)f===p?l=0:(l=t(0,e(.5/(f-p)+(s-p)/(f-p),1)))<.5?l*=2:l=1-2*(l-.5),l=h(l);else if(5===c){if(f===p)l=0;else{var u=f-p,m=-u/2+(s=e(t(0,s+.5-p),f-p)),d=u/2;l=Math.sqrt(1-m*m/(d*d))}l=h(l)}else 6===c?l=h(l=f===p?0:(1+Math.cos(Math.PI+2*Math.PI*(s=e(t(0,s+.5-p),f-p))/(f-p)))/2):(s>=i(p)&&(l=s-p<0?t(0,e(e(f,1)-(p-s),1)):t(0,e(f-s,1))),l=h(l));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var y=.5-.5*g;l<y?l=0:(l=(l-y)/g)>1&&(l=1)}return l*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,s=this.s.v/e+i,r=this.e.v/e+i;if(s>r){var n=s;s=r,r=n}this.finalS=s,this.finalE=r}},extendPrototype([DynamicPropertyContainer],s),{getTextSelectorProp:function(t,e,i){return new s(t,e)}}}();function TextAnimatorDataProperty(t,e,i){var s={propType:!1},r=PropertyFactory.getProp,n=e.a;this.a={r:n.r?r(t,n.r,0,degToRads,i):s,rx:n.rx?r(t,n.rx,0,degToRads,i):s,ry:n.ry?r(t,n.ry,0,degToRads,i):s,sk:n.sk?r(t,n.sk,0,degToRads,i):s,sa:n.sa?r(t,n.sa,0,degToRads,i):s,s:n.s?r(t,n.s,1,.01,i):s,a:n.a?r(t,n.a,1,0,i):s,o:n.o?r(t,n.o,0,.01,i):s,p:n.p?r(t,n.p,1,0,i):s,sw:n.sw?r(t,n.sw,0,0,i):s,sc:n.sc?r(t,n.sc,1,0,i):s,fc:n.fc?r(t,n.fc,1,0,i):s,fh:n.fh?r(t,n.fh,0,0,i):s,fs:n.fs?r(t,n.fs,0,.01,i):s,fb:n.fb?r(t,n.fb,0,.01,i):s,t:n.t?r(t,n.t,0,0,i):s},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,s=PropertyFactory.getProp;for(t=0;t<i;t+=1)e=this._textData.a[t],this._animatorsData[t]=new TextAnimatorDataProperty(this._elem,e,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:s(this._elem,this._textData.p.a,0,0,this),f:s(this._elem,this._textData.p.f,0,0,this),l:s(this._elem,this._textData.p.l,0,0,this),r:s(this._elem,this._textData.p.r,0,0,this),p:s(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=s(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var i,s,r,n,a,o,h,l,p,f,c,u,m,d,g,y,v,b,_=this._moreOptions.alignment.v,x=this._animatorsData,k=this._textData,w=this.mHelper,S=this._renderType,C=this.renderedLetters.length,A=t.l;if(this._hasMaskedPath){if(H=this._pathData.m,!this._pathData.n||this._pathData._mdf){var P,M,E,D,T,F,I,L,B,z,O,R,V,N,j,G,q,W,H,Y,$=H.v;for(this._pathData.r.v&&($=$.reverse()),T={tLength:0,segments:[]},D=$._length-1,G=0,E=0;E<D;E+=1)Y=bez.buildBezierData($.v[E],$.v[E+1],[$.o[E][0]-$.v[E][0],$.o[E][1]-$.v[E][1]],[$.i[E+1][0]-$.v[E+1][0],$.i[E+1][1]-$.v[E+1][1]]),T.tLength+=Y.segmentLength,T.segments.push(Y),G+=Y.segmentLength;E=D,H.v.c&&(Y=bez.buildBezierData($.v[E],$.v[0],[$.o[E][0]-$.v[E][0],$.o[E][1]-$.v[E][1]],[$.i[0][0]-$.v[0][0],$.i[0][1]-$.v[0][1]]),T.tLength+=Y.segmentLength,T.segments.push(Y),G+=Y.segmentLength),this._pathData.pi=T}if(T=this._pathData.pi,F=this._pathData.f.v,O=0,z=1,L=0,B=!0,N=T.segments,F<0&&H.v.c)for(T.tLength<Math.abs(F)&&(F=-Math.abs(F)%T.tLength),O=N.length-1,z=(V=N[O].points).length-1;F<0;)F+=V[z].partialLength,(z-=1)<0&&(O-=1,z=(V=N[O].points).length-1);R=(V=N[O].points)[z-1],j=(I=V[z]).partialLength}D=A.length,P=0,M=0;var J=1.2*t.finalSize*.714,X=!0;n=x.length;var U=-1,K=F,Z=O,Q=z,tt=-1,te="",ti=this.defaultPropsArray;if(2===t.j||1===t.j){var ts=0,tr=0,tn=2===t.j?-.5:-1,ta=0,to=!0;for(E=0;E<D;E+=1)if(A[E].n){for(ts&&(ts+=tr);ta<E;)A[ta].animatorJustifyOffset=ts,ta+=1;ts=0,to=!0}else{for(r=0;r<n;r+=1)(i=x[r].a).t.propType&&(to&&2===t.j&&(tr+=i.t.v*tn),(o=(s=x[r].s).getMult(A[E].anIndexes[r],k.a[r].s.totalChars)).length?ts+=i.t.v*o[0]*tn:ts+=i.t.v*o*tn);to=!1}for(ts&&(ts+=tr);ta<E;)A[ta].animatorJustifyOffset=ts,ta+=1}for(E=0;E<D;E+=1){if(w.reset(),f=1,A[E].n)P=0,M+=t.yOffset,M+=+!!X,F=K,X=!1,this._hasMaskedPath&&(O=Z,z=Q,R=(V=N[O].points)[z-1],j=(I=V[z]).partialLength,L=0),te="",v="",g="",b="",ti=this.defaultPropsArray;else{if(this._hasMaskedPath){if(tt!==A[E].line){switch(t.j){case 1:F+=G-t.lineWidths[A[E].line];break;case 2:F+=(G-t.lineWidths[A[E].line])/2}tt=A[E].line}U!==A[E].ind&&(A[U]&&(F+=A[U].extra),F+=A[E].an/2,U=A[E].ind),F+=_[0]*A[E].an*.005;var th=0;for(r=0;r<n;r+=1)(i=x[r].a).p.propType&&((o=(s=x[r].s).getMult(A[E].anIndexes[r],k.a[r].s.totalChars)).length?th+=i.p.v[0]*o[0]:th+=i.p.v[0]*o),i.a.propType&&((o=(s=x[r].s).getMult(A[E].anIndexes[r],k.a[r].s.totalChars)).length?th+=i.a.v[0]*o[0]:th+=i.a.v[0]*o);for(B=!0,this._pathData.a.v&&(F=.5*A[0].an+(G-this._pathData.f.v-.5*A[0].an-.5*A[A.length-1].an)*U/(D-1)+this._pathData.f.v);B;)L+j>=F+th||!V?(q=(F+th-L)/I.partialLength,l=R.point[0]+(I.point[0]-R.point[0])*q,p=R.point[1]+(I.point[1]-R.point[1])*q,w.translate(-_[0]*A[E].an*.005,-(.01*(_[1]*J))),B=!1):V&&(L+=I.partialLength,(z+=1)>=V.length&&(z=0,N[O+=1]?V=N[O].points:H.v.c?(z=0,V=N[O=0].points):(L-=I.partialLength,V=null)),V&&(R=I,j=(I=V[z]).partialLength));h=A[E].an/2-A[E].add,w.translate(-h,0,0)}else h=A[E].an/2-A[E].add,w.translate(-h,0,0),w.translate(-_[0]*A[E].an*.005,-_[1]*J*.01,0);for(r=0;r<n;r+=1)(i=x[r].a).t.propType&&(o=(s=x[r].s).getMult(A[E].anIndexes[r],k.a[r].s.totalChars),(0!==P||0!==t.j)&&(this._hasMaskedPath?o.length?F+=i.t.v*o[0]:F+=i.t.v*o:o.length?P+=i.t.v*o[0]:P+=i.t.v*o));for(t.strokeWidthAnim&&(u=t.sw||0),t.strokeColorAnim&&(c=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(m=[t.fc[0],t.fc[1],t.fc[2]]),r=0;r<n;r+=1)(i=x[r].a).a.propType&&((o=(s=x[r].s).getMult(A[E].anIndexes[r],k.a[r].s.totalChars)).length?w.translate(-i.a.v[0]*o[0],-i.a.v[1]*o[1],i.a.v[2]*o[2]):w.translate(-i.a.v[0]*o,-i.a.v[1]*o,i.a.v[2]*o));for(r=0;r<n;r+=1)(i=x[r].a).s.propType&&((o=(s=x[r].s).getMult(A[E].anIndexes[r],k.a[r].s.totalChars)).length?w.scale(1+(i.s.v[0]-1)*o[0],1+(i.s.v[1]-1)*o[1],1):w.scale(1+(i.s.v[0]-1)*o,1+(i.s.v[1]-1)*o,1));for(r=0;r<n;r+=1){if(i=x[r].a,o=(s=x[r].s).getMult(A[E].anIndexes[r],k.a[r].s.totalChars),i.sk.propType&&(o.length?w.skewFromAxis(-i.sk.v*o[0],i.sa.v*o[1]):w.skewFromAxis(-i.sk.v*o,i.sa.v*o)),i.r.propType&&(o.length?w.rotateZ(-i.r.v*o[2]):w.rotateZ(-i.r.v*o)),i.ry.propType&&(o.length?w.rotateY(i.ry.v*o[1]):w.rotateY(i.ry.v*o)),i.rx.propType&&(o.length?w.rotateX(i.rx.v*o[0]):w.rotateX(i.rx.v*o)),i.o.propType&&(o.length?f+=(i.o.v*o[0]-f)*o[0]:f+=(i.o.v*o-f)*o),t.strokeWidthAnim&&i.sw.propType&&(o.length?u+=i.sw.v*o[0]:u+=i.sw.v*o),t.strokeColorAnim&&i.sc.propType)for(d=0;d<3;d+=1)o.length?c[d]+=(i.sc.v[d]-c[d])*o[0]:c[d]+=(i.sc.v[d]-c[d])*o;if(t.fillColorAnim&&t.fc){if(i.fc.propType)for(d=0;d<3;d+=1)o.length?m[d]+=(i.fc.v[d]-m[d])*o[0]:m[d]+=(i.fc.v[d]-m[d])*o;i.fh.propType&&(m=o.length?addHueToRGB(m,i.fh.v*o[0]):addHueToRGB(m,i.fh.v*o)),i.fs.propType&&(m=o.length?addSaturationToRGB(m,i.fs.v*o[0]):addSaturationToRGB(m,i.fs.v*o)),i.fb.propType&&(m=o.length?addBrightnessToRGB(m,i.fb.v*o[0]):addBrightnessToRGB(m,i.fb.v*o))}}for(r=0;r<n;r+=1)(i=x[r].a).p.propType&&(o=(s=x[r].s).getMult(A[E].anIndexes[r],k.a[r].s.totalChars),this._hasMaskedPath?o.length?w.translate(0,i.p.v[1]*o[0],-i.p.v[2]*o[1]):w.translate(0,i.p.v[1]*o,-i.p.v[2]*o):o.length?w.translate(i.p.v[0]*o[0],i.p.v[1]*o[1],-i.p.v[2]*o[2]):w.translate(i.p.v[0]*o,i.p.v[1]*o,-i.p.v[2]*o));if(t.strokeWidthAnim&&(g=u<0?0:u),t.strokeColorAnim&&(y="rgb("+Math.round(255*c[0])+","+Math.round(255*c[1])+","+Math.round(255*c[2])+")"),t.fillColorAnim&&t.fc&&(v="rgb("+Math.round(255*m[0])+","+Math.round(255*m[1])+","+Math.round(255*m[2])+")"),this._hasMaskedPath){if(w.translate(0,-t.ls),w.translate(0,_[1]*J*.01+M,0),this._pathData.p.v){var tl=180*Math.atan(W=(I.point[1]-R.point[1])/(I.point[0]-R.point[0]))/Math.PI;I.point[0]<R.point[0]&&(tl+=180),w.rotate(-tl*Math.PI/180)}w.translate(l,p,0),F-=_[0]*A[E].an*.005,A[E+1]&&U!==A[E+1].ind&&(F+=A[E].an/2,F+=.001*t.tr*t.finalSize)}else{switch(w.translate(P,M,0),t.ps&&w.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:w.translate(A[E].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[A[E].line]),0,0);break;case 2:w.translate(A[E].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[A[E].line])/2,0,0)}w.translate(0,-t.ls),w.translate(h,0,0),w.translate(_[0]*A[E].an*.005,_[1]*J*.01,0),P+=A[E].l+.001*t.tr*t.finalSize}"html"===S?te=w.toCSS():"svg"===S?te=w.to2dCSS():ti=[w.props[0],w.props[1],w.props[2],w.props[3],w.props[4],w.props[5],w.props[6],w.props[7],w.props[8],w.props[9],w.props[10],w.props[11],w.props[12],w.props[13],w.props[14],w.props[15]],b=f}C<=E?(a=new LetterProps(b,g,y,v,te,ti),this.renderedLetters.push(a),C+=1,this.lettersChangedFlag=!0):(a=this.renderedLetters[E],this.lettersChangedFlag=a.update(b,g,y,v,te,ti)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(t,e,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,i),this.textProperty=new TextProperty(this,t.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this),this.initTransform(t,e,i),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=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)},ITextElement.prototype.createPathShape=function(t,e){var i,s,r=e.length,n="";for(i=0;i<r;i+=1)"sh"===e[i].ty&&(n+=buildShapeString(s=e[i].ks.k,s.i.length,!0,t));return n},ITextElement.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},ITextElement.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},ITextElement.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},ITextElement.prototype.applyTextPropertiesToMatrix=function(t,e,i,s,r){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i])/2,0,0)}e.translate(s,r,0)},ITextElement.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(t,e,i){this.textSpans=[],this.renderType="svg",this.initElement(t,e,i)}function ISolidElement(t,e,i){this.initElement(t,e,i)}function NullElement(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initFrame(),this.initTransform(t,e,i),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(t,e,i){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function SVGRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var i="";if(e&&e.title){var s=createNS("title"),r=createElementID();s.setAttribute("id",r),s.textContent=e.title,this.svgElement.appendChild(s),i+=r}if(e&&e.description){var n=createNS("desc"),a=createElementID();n.setAttribute("id",a),n.textContent=e.description,this.svgElement.appendChild(n),i+=" "+a}i&&this.svgElement.setAttribute("aria-labelledby",i);var o=createNS("defs");this.svgElement.appendChild(o);var h=createNS("g");this.svgElement.appendChild(h),this.layerElement=h,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!(e&&!1===e.hideOnTransparent),viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"},width:e&&e.width,height:e&&e.height,runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:o,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(t){for(var e=0,i=t.length,s=[],r="";e<i;)"\r"===t[e]||"\x03"===t[e]?(s.push(r),r=""):r+=t[e],e+=1;return s.push(r),s},SVGTextLottieElement.prototype.buildShapeData=function(t,e){if(t.shapes&&t.shapes.length){var i=t.shapes[0];if(i.it){var s=i.it[i.it.length-1];s.s&&(s.s.k[0]=e,s.s.k[1]=e)}}return t},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t?t.l.length:0),t.fc?this.layerElement.setAttribute("fill",this.buildColor(t.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),t.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(t.sc)),this.layerElement.setAttribute("stroke-width",t.sw)),this.layerElement.setAttribute("font-size",t.finalSize);var e=this.globalData.fontManager.getFontByName(t.f);if(e.fClass)this.layerElement.setAttribute("class",e.fClass);else{this.layerElement.setAttribute("font-family",e.fFamily);var i=t.fWeight,s=t.fStyle;this.layerElement.setAttribute("font-style",s),this.layerElement.setAttribute("font-weight",i)}this.layerElement.setAttribute("aria-label",t.t);var r=t.l||[],n=!!this.globalData.fontManager.chars;g=r.length;var a=this.mHelper,o="",h=this.data.singleShape,l=0,p=0,f=!0,c=.001*t.tr*t.finalSize;if(!h||n||t.sz){var u=this.textSpans.length;for(d=0;d<g;d+=1){if(this.textSpans[d]||(this.textSpans[d]={span:null,childSpan:null,glyph:null}),!n||!h||0===d){if(y=u>d?this.textSpans[d].span:createNS(n?"g":"text"),u<=d){if(y.setAttribute("stroke-linecap","butt"),y.setAttribute("stroke-linejoin","round"),y.setAttribute("stroke-miterlimit","4"),this.textSpans[d].span=y,n){var m=createNS("g");y.appendChild(m),this.textSpans[d].childSpan=m}this.textSpans[d].span=y,this.layerElement.appendChild(y)}y.style.display="inherit"}if(a.reset(),h&&(r[d].n&&(l=-c,p+=t.yOffset,p+=+!!f,f=!1),this.applyTextPropertiesToMatrix(t,a,r[d].line,l,p),l+=r[d].l||0,l+=c),n){if(1===(v=this.globalData.fontManager.getCharData(t.finalText[d],e.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily)).t)b=new SVGCompElement(v.data,this.globalData,this);else{var d,g,y,v,b,_=emptyShapeData;v.data&&v.data.shapes&&(_=this.buildShapeData(v.data,t.finalSize)),b=new SVGShapeElement(_,this.globalData,this)}if(this.textSpans[d].glyph){var x=this.textSpans[d].glyph;this.textSpans[d].childSpan.removeChild(x.layerElement),x.destroy()}this.textSpans[d].glyph=b,b._debug=!0,b.prepareFrame(0),b.renderFrame(),this.textSpans[d].childSpan.appendChild(b.layerElement),1===v.t&&this.textSpans[d].childSpan.setAttribute("transform","scale("+t.finalSize/100+","+t.finalSize/100+")")}else h&&y.setAttribute("transform","translate("+a.props[12]+","+a.props[13]+")"),y.textContent=r[d].val,y.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}h&&y&&y.setAttribute("d",o)}else{var k=this.textContainer,w="start";switch(t.j){case 1:w="end";break;case 2:w="middle";break;default:w="start"}k.setAttribute("text-anchor",w),k.setAttribute("letter-spacing",c);var S=this.buildTextContents(t.finalText);for(d=0,g=S.length,p=t.ps?t.ps[1]+t.ascent:0;d<g;d+=1)(y=this.textSpans[d].span||createNS("tspan")).textContent=S[d],y.setAttribute("x",0),y.setAttribute("y",p),y.style.display="inherit",k.appendChild(y),this.textSpans[d]||(this.textSpans[d]={span:null,glyph:null}),this.textSpans[d].span=y,p+=t.finalLineHeight;this.layerElement.appendChild(k)}for(;d<this.textSpans.length;)this.textSpans[d].span.style.display="none",d+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;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,e,i=this.textSpans.length;for(t=0,this.renderedFrame=this.comp.renderedFrame;t<i;t+=1)(e=this.textSpans[t].glyph)&&(e.prepareFrame(this.comp.renderedFrame-this.data.st),e._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var t,e,i,s,r,n=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;for(t=0,e=a.length;t<e;t+=1)!a[t].n&&(i=n[t],s=this.textSpans[t].span,(r=this.textSpans[t].glyph)&&r.renderFrame(),i._mdf.m&&s.setAttribute("transform",i.m),i._mdf.o&&s.setAttribute("opacity",i.o),i._mdf.sw&&s.setAttribute("stroke-width",i.sw),i._mdf.sc&&s.setAttribute("stroke",i.sc),i._mdf.fc&&s.setAttribute("fill",i.fc))}},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)},NullElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},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),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"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),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),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var e=this.globalData.defs;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var i=createNS("clipPath"),s=createNS("rect");s.setAttribute("width",t.w),s.setAttribute("height",t.h),s.setAttribute("x",0),s.setAttribute("y",0);var r=createElementID();i.setAttribute("id",r),i.appendChild(s),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+r+")"),e.appendChild(i),this.layers=t.layers,this.elements=createSizedArray(t.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t,e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(t){var e=0,i=this.layers.length;for(e=0;e<i;e+=1)if(this.layers[e].ind===t)return e;return -1},SVGRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){e[t]=!0;var i=this.createItem(this.layers[t]);if(e[t]=i,getExpressionsPlugin()&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(i),i.initExpressions()),this.appendElementInPos(i,t),this.layers[t].tt){var s="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(-1===s)return;if(this.elements[s]&&!0!==this.elements[s]){var r=e[s].getMatte(this.layers[t].tt);i.setMatte(r)}else this.buildItem(s),this.addPendingElement(i)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,i=this.elements.length;e<i;){if(this.elements[e]===t){var s="tp"in t.data?this.findIndexByInd(t.data.tp):e-1,r=this.elements[s].getMatte(this.layers[e].tt);t.setMatte(r);break}e+=1}}},SVGRendererBase.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var e,i=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=i-1;e>=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<i;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(t,e){var i,s=t.getBaseElement();if(s){for(var r=0;r<e;)this.elements[r]&&!0!==this.elements[r]&&this.elements[r].getBaseElement()&&(i=this.elements[r].getBaseElement()),r+=1;i?this.layerElement.insertBefore(s,i):this.layerElement.appendChild(s)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!e.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e,i=this.tm.v;i===this.data.op&&(i=this.data.op-1),this.renderedFrame=i}var s=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),e=s-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&(this.elements[e].prepareFrame(this.renderedFrame-this.layers[e].st),this.elements[e]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)(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,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},ShapeTransformManager.prototype={addTransformSequence:function(t){var e,i=t.length,s="_";for(e=0;e<i;e+=1)s+=t[e].transform.key+"_";var r=this.sequences[s];return r||(r={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[s]=r,this.sequenceList.push(r)),r},processSequence:function(t,e){for(var i=0,s=t.transforms.length,r=e;i<s&&!e;){if(t.transforms[i].transform.mProps._mdf){r=!0;break}i+=1}if(r)for(t.finalTransform.reset(),i=s-1;i>=0;i-=1)t.finalTransform.multiply(t.transforms[i].transform.mProps.v);t._mdf=r},processSequences:function(t){var e,i=this.sequenceList.length;for(e=0;e<i;e+=1)this.processSequence(this.sequenceList[e],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var t="__lottie_element_luma_buffer",e=null,i=null,s=null;function r(){var e=createNS("svg"),i=createNS("filter"),s=createNS("feColorMatrix");return i.setAttribute("id",t),s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","sRGB"),s.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"),i.appendChild(s),e.appendChild(i),e.setAttribute("id",t+"_svg"),featureSupport.svgLumaHidden&&(e.style.display="none"),e}function n(){e||(s=r(),document.body.appendChild(s),(i=(e=createTag("canvas")).getContext("2d")).filter="url(#"+t+")",i.fillStyle="rgba(0,0,0,0)",i.fillRect(0,0,1,1))}function a(s){return e||n(),e.width=s.width,e.height=s.height,i.filter="url(#"+t+")",e}return{load:n,get:a}};function createCanvas(t,e){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(t,e);var i=createTag("canvas");return i.width=t,i.height=e,i}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas:createCanvas}}(),registeredEffects={};function CVEffects(t){var e,i,s=t.data.ef?t.data.ef.length:0;for(e=0,this.filters=[];e<s;e+=1){i=null;var r=t.data.ef[e].ty;registeredEffects[r]&&(i=new registeredEffects[r].effect(t.effectsManager.effectElements[e],t)),i&&this.filters.push(i)}this.filters.length&&t.addRenderableComponent(this)}function registerEffect(t,e){registeredEffects[t]={effect:e}}function CVMaskElement(t,e){this.data=t,this.element=e,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var i,s=this.masksProperties.length,r=!1;for(i=0;i<s;i+=1)"n"!==this.masksProperties[i].mode&&(r=!0),this.viewData[i]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[i],3);this.hasMasks=r,r&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(t){var e,i=this.filters.length;for(e=0;e<i;e+=1)this.filters[e].renderFrame(t)},CVEffects.prototype.getEffects=function(t){var e,i=this.filters.length,s=[];for(e=0;e<i;e+=1)this.filters[e].type===t&&s.push(this.filters[e]);return s},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var t=this.element.finalTransform.mat,e=this.element.canvasContext,i=this.masksProperties.length;for(e.beginPath(),s=0;s<i;s+=1)if("n"!==this.masksProperties[s].mode){this.masksProperties[s].inv&&(e.moveTo(0,0),e.lineTo(this.element.globalData.compSize.w,0),e.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),e.lineTo(0,this.element.globalData.compSize.h),e.lineTo(0,0)),a=this.viewData[s].v,r=t.applyToPointArray(a.v[0][0],a.v[0][1],0),e.moveTo(r[0],r[1]);var s,r,n,a,o,h=a._length;for(o=1;o<h;o+=1)n=t.applyToTriplePoints(a.o[o-1],a.i[o],a.v[o]),e.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);n=t.applyToTriplePoints(a.o[o-1],a.i[0],a.v[0]),e.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5])}this.element.globalData.renderer.save(!0),e.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};function CVShapeData(t,e,i,s){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var r,n,a=4;"rc"===e.ty?a=5:"el"===e.ty?a=6:"sr"===e.ty&&(a=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,a,t);var o=i.length;for(r=0;r<o;r+=1)i[r].closed||(n={transforms:s.addTransformSequence(i[r].transforms),trNodes:[]},this.styledShapes.push(n),i[r].elements.push(n))}function CVShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(t,e,i)}function CVTextElement(t,e,i){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(t,e,i)}function CVImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.img=e.imageLoader.getAsset(this.assetData),this.initElement(t,e,i)}function CVSolidElement(t,e,i){this.initElement(t,e,i)}function CanvasRendererBase(){}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,e=15;for(t=0;t<e;t+=1){var i=new CanvasContext;this.stack[t]=i}this._length=e,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=""}function CVCompElement(t,e,i){this.completeLayers=!1,this.layers=t.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function CanvasRenderer(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||void 0===e.clearCanvas||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||"",runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",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))}function HBaseElement(){}function HSolidElement(t,e,i){this.initElement(t,e,i)}function HShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(t,e,i),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(t,e,i){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(t,e,i)}function HCameraElement(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initHierarchy();var s=PropertyFactory.getProp;if(this.pe=s(this,t.pe,0,0,this),t.ks.p.s?(this.px=s(this,t.ks.p.x,1,0,this),this.py=s(this,t.ks.p.y,1,0,this),this.pz=s(this,t.ks.p.z,1,0,this)):this.p=s(this,t.ks.p,1,0,this),t.ks.a&&(this.a=s(this,t.ks.a,1,0,this)),t.ks.or.k.length&&t.ks.or.k[0].to){var r,n=t.ks.or.k.length;for(r=0;r<n;r+=1)t.ks.or.k[r].to=null,t.ks.or.k[r].ti=null}this.or=s(this,t.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=s(this,t.ks.rx,0,degToRads,this),this.ry=s(this,t.ks.ry,0,degToRads,this),this.rz=s(this,t.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,i)}function HybridRendererBase(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(t,e,i){this.layers=t.layers,this.supports3d=!t.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function HybridRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"},runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var t=this.globalData.canvasContext,e=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(e);var i=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(i),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(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var e=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=e}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(t){t.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var t=this.buffers[0].getContext("2d");this.clearCanvas(t),t.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(){if(this.data.tt>=1){var t=this.buffers[1],e=t.getContext("2d");if(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),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var i=assetLoader.getLumaCanvas(this.canvasContext.canvas);i.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(i,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(t,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){if(!this.hidden&&!this.data.hd&&(1!==this.data.td||t)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var e=0===this.data.ty;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(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){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,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(t,e){var i={data:t,type:t.ty,preTransforms:this.transformsManager.addTransformSequence(e),transforms:[],elements:[],closed:!0===t.hd},s={};return"fl"===t.ty||"st"===t.ty?(s.c=PropertyFactory.getProp(this,t.c,1,255,this),s.c.k||(i.co="rgb("+bmFloor(s.c.v[0])+","+bmFloor(s.c.v[1])+","+bmFloor(s.c.v[2])+")")):("gf"===t.ty||"gs"===t.ty)&&(s.s=PropertyFactory.getProp(this,t.s,1,null,this),s.e=PropertyFactory.getProp(this,t.e,1,null,this),s.h=PropertyFactory.getProp(this,t.h||{k:0},0,.01,this),s.a=PropertyFactory.getProp(this,t.a||{k:0},0,degToRads,this),s.g=new GradientProperty(this,t.g,this)),s.o=PropertyFactory.getProp(this,t.o,0,.01,this),"st"===t.ty||"gs"===t.ty?(i.lc=lineCapEnum[t.lc||2],i.lj=lineJoinEnum[t.lj||2],1==t.lj&&(i.ml=t.ml),s.w=PropertyFactory.getProp(this,t.w,0,null,this),s.w.k||(i.wi=s.w.v),t.d&&(s.d=new DashProperty(this,t.d,"canvas",this),s.d.k||(i.da=s.d.dashArray,i.do=s.d.dashoffset[0]))):i.r=2===t.r?"evenodd":"nonzero",this.stylesList.push(i),s.style=i,s},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(t){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,t.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,t,this)}}},CVShapeElement.prototype.createShapeElement=function(t){var e=new CVShapeData(this,t,this.stylesList,this.transformsManager);return this.shapes.push(e),this.addShapeToModifiers(e),e},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var t,e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(t){var e,i=this.stylesList.length;for(e=0;e<i;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.push(t)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var t,e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.pop()},CVShapeElement.prototype.closeStyles=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e].closed=!0},CVShapeElement.prototype.searchShapes=function(t,e,i,s,r){var n,a,o,h,l,p,f=t.length-1,c=[],u=[],m=[].concat(r);for(n=f;n>=0;n-=1){if((h=this.searchProcessedElement(t[n]))?e[n]=i[h-1]:t[n]._shouldRender=s,"fl"===t[n].ty||"st"===t[n].ty||"gf"===t[n].ty||"gs"===t[n].ty)h?e[n].style.closed=!1:e[n]=this.createStyleElement(t[n],m),c.push(e[n].style);else if("gr"===t[n].ty){if(h)for(a=0,o=e[n].it.length;a<o;a+=1)e[n].prevViewData[a]=e[n].it[a];else e[n]=this.createGroupElement(t[n]);this.searchShapes(t[n].it,e[n].it,e[n].prevViewData,s,m)}else"tr"===t[n].ty?(h||(p=this.createTransformElement(t[n]),e[n]=p),m.push(e[n]),this.addTransformToStyleList(e[n])):"sh"===t[n].ty||"rc"===t[n].ty||"el"===t[n].ty||"sr"===t[n].ty?h||(e[n]=this.createShapeElement(t[n])):"tm"===t[n].ty||"rd"===t[n].ty||"pb"===t[n].ty||"zz"===t[n].ty||"op"===t[n].ty?(h?(l=e[n]).closed=!1:((l=ShapeModifiers.getModifier(t[n].ty)).init(this,t[n]),e[n]=l,this.shapeModifiers.push(l)),u.push(l)):"rp"===t[n].ty&&(h?(l=e[n]).closed=!0:(l=ShapeModifiers.getModifier(t[n].ty),e[n]=l,l.init(this,t,n,e),this.shapeModifiers.push(l),s=!1),u.push(l));this.addProcessedElement(t[n],n+1)}for(this.removeTransformFromStyleList(),this.closeStyles(c),f=u.length,n=0;n<f;n+=1)u[n].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(t,e){(t._opMdf||e.op._mdf||this._isFirstFrame)&&(e.opacity=t.opacity,e.opacity*=e.op.v,e._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var t,e,i,s,r,n,a,o,h,l=this.stylesList.length,p=this.globalData.renderer,f=this.globalData.canvasContext;for(t=0;t<l;t+=1)if(!(("st"===(o=(h=this.stylesList[t]).type)||"gs"===o)&&0===h.wi||!h.data._shouldRender||0===h.coOp||0===this.globalData.currentGlobalAlpha)){for(p.save(),n=h.elements,"st"===o||"gs"===o?(p.ctxStrokeStyle("st"===o?h.co:h.grd),p.ctxLineWidth(h.wi),p.ctxLineCap(h.lc),p.ctxLineJoin(h.lj),p.ctxMiterLimit(h.ml||0)):p.ctxFillStyle("fl"===o?h.co:h.grd),p.ctxOpacity(h.coOp),"st"!==o&&"gs"!==o&&f.beginPath(),p.ctxTransform(h.preTransforms.finalTransform.props),i=n.length,e=0;e<i;e+=1){for(("st"===o||"gs"===o)&&(f.beginPath(),h.da&&(f.setLineDash(h.da),f.lineDashOffset=h.do)),r=(a=n[e].trNodes).length,s=0;s<r;s+=1)"m"===a[s].t?f.moveTo(a[s].p[0],a[s].p[1]):"c"===a[s].t?f.bezierCurveTo(a[s].pts[0],a[s].pts[1],a[s].pts[2],a[s].pts[3],a[s].pts[4],a[s].pts[5]):f.closePath();("st"===o||"gs"===o)&&(p.ctxStroke(),h.da&&f.setLineDash(this.dashResetter))}"st"!==o&&"gs"!==o&&this.globalData.renderer.ctxFill(h.r),p.restore()}},CVShapeElement.prototype.renderShape=function(t,e,i,s){var r,n,a=e.length-1;for(n=t,r=a;r>=0;r-=1)"tr"===e[r].ty?(n=i[r].transform,this.renderShapeTransform(t,n)):"sh"===e[r].ty||"el"===e[r].ty||"rc"===e[r].ty||"sr"===e[r].ty?this.renderPath(e[r],i[r]):"fl"===e[r].ty?this.renderFill(e[r],i[r],n):"st"===e[r].ty?this.renderStroke(e[r],i[r],n):"gf"===e[r].ty||"gs"===e[r].ty?this.renderGradientFill(e[r],i[r],n):"gr"===e[r].ty?this.renderShape(n,e[r].it,i[r].it):e[r].ty;s&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var i,s,r,n=t.trNodes,a=e.paths,o=a._length;n.length=0;var h=t.transforms.finalTransform;for(r=0;r<o;r+=1){var l=a.shapes[r];if(l&&l.v){for(i=1,s=l._length;i<s;i+=1)1===i&&n.push({t:"m",p:h.applyToPointArray(l.v[0][0],l.v[0][1],0)}),n.push({t:"c",pts:h.applyToTriplePoints(l.o[i-1],l.i[i],l.v[i])});1===s&&n.push({t:"m",p:h.applyToPointArray(l.v[0][0],l.v[0][1],0)}),l.c&&s&&(n.push({t:"c",pts:h.applyToTriplePoints(l.o[i-1],l.i[0],l.v[0])}),n.push({t:"z"}))}}t.trNodes=n}},CVShapeElement.prototype.renderPath=function(t,e){if(!0!==t.hd&&t._shouldRender){var i,s=e.styledShapes.length;for(i=0;i<s;i+=1)this.renderStyledShape(e.styledShapes[i],e.sh)}},CVShapeElement.prototype.renderFill=function(t,e,i){var s=e.style;(e.c._mdf||this._isFirstFrame)&&(s.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i._opMdf||this._isFirstFrame)&&(s.coOp=e.o.v*i.opacity)},CVShapeElement.prototype.renderGradientFill=function(t,e,i){var s=e.style;if(!s.grd||e.g._mdf||e.s._mdf||e.e._mdf||1!==t.t&&(e.h._mdf||e.a._mdf)){var r,n,a=this.globalData.canvasContext,o=e.s.v,h=e.e.v;if(1===t.t)r=a.createLinearGradient(o[0],o[1],h[0],h[1]);else{var l=Math.sqrt(Math.pow(o[0]-h[0],2)+Math.pow(o[1]-h[1],2)),p=Math.atan2(h[1]-o[1],h[0]-o[0]),f=e.h.v;f>=1?f=.99:f<=-1&&(f=-.99);var c=l*f,u=Math.cos(p+e.a.v)*c+o[0],m=Math.sin(p+e.a.v)*c+o[1];r=a.createRadialGradient(u,m,0,o[0],o[1],l)}var d=t.g.p,g=e.g.c,y=1;for(n=0;n<d;n+=1)e.g._hasOpacity&&e.g._collapsable&&(y=e.g.o[2*n+1]),r.addColorStop(g[4*n]/100,"rgba("+g[4*n+1]+","+g[4*n+2]+","+g[4*n+3]+","+y+")");s.grd=r}s.coOp=e.o.v*i.opacity},CVShapeElement.prototype.renderStroke=function(t,e,i){var s=e.style,r=e.d;r&&(r._mdf||this._isFirstFrame)&&(s.da=r.dashArray,s.do=r.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(s.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i._opMdf||this._isFirstFrame)&&(s.coOp=e.o.v*i.opacity),(e.w._mdf||this._isFirstFrame)&&(s.wi=e.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var t,e,i,s,r,n,a,o,h,l,p,f,c=this.textProperty.currentData;this.renderedLetters=createSizedArray(c.l?c.l.length:0);var u=!1;c.fc?(u=!0,this.values.fill=this.buildColor(c.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=u;var m=!1;c.sc&&(m=!0,this.values.stroke=this.buildColor(c.sc),this.values.sWidth=c.sw);var d=this.globalData.fontManager.getFontByName(c.f),g=c.l,y=this.mHelper;this.stroke=m,this.values.fValue=c.finalSize+"px "+this.globalData.fontManager.getFontByName(c.f).fFamily,e=c.finalText.length;var v=this.data.singleShape,b=.001*c.tr*c.finalSize,_=0,x=0,k=!0,w=0;for(t=0;t<e;t+=1){s=(i=this.globalData.fontManager.getCharData(c.finalText[t],d.fStyle,this.globalData.fontManager.getFontByName(c.f).fFamily))&&i.data||{},y.reset(),v&&g[t].n&&(_=-b,x+=c.yOffset,x+=+!!k,k=!1),h=(a=s.shapes?s.shapes[0].it:[]).length,y.scale(c.finalSize/100,c.finalSize/100),v&&this.applyTextPropertiesToMatrix(c,y,g[t].line,_,x),p=createSizedArray(h-1);var S=0;for(o=0;o<h;o+=1)if("sh"===a[o].ty){for(r=1,n=a[o].ks.k.i.length,l=a[o].ks.k,f=[];r<n;r+=1)1===r&&f.push(y.applyToX(l.v[0][0],l.v[0][1],0),y.applyToY(l.v[0][0],l.v[0][1],0)),f.push(y.applyToX(l.o[r-1][0],l.o[r-1][1],0),y.applyToY(l.o[r-1][0],l.o[r-1][1],0),y.applyToX(l.i[r][0],l.i[r][1],0),y.applyToY(l.i[r][0],l.i[r][1],0),y.applyToX(l.v[r][0],l.v[r][1],0),y.applyToY(l.v[r][0],l.v[r][1],0));f.push(y.applyToX(l.o[r-1][0],l.o[r-1][1],0),y.applyToY(l.o[r-1][0],l.o[r-1][1],0),y.applyToX(l.i[0][0],l.i[0][1],0),y.applyToY(l.i[0][0],l.i[0][1],0),y.applyToX(l.v[0][0],l.v[0][1],0),y.applyToY(l.v[0][0],l.v[0][1],0)),p[S]=f,S+=1}v&&(_+=g[t].l,_+=b),this.textSpans[w]?this.textSpans[w].elem=p:this.textSpans[w]={elem:p},w+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText(),this.canvasContext.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var t,e,i,s,r,n,a,o,h,l=this.textAnimator.renderedLetters,p=this.textProperty.currentData.l;e=p.length;var f=null,c=null,u=null,m=this.globalData.renderer;for(t=0;t<e;t+=1)if(!p[t].n){if((a=l[t])&&(m.save(),m.ctxTransform(a.p),m.ctxOpacity(a.o)),this.fill){for(a&&a.fc?f!==a.fc&&(m.ctxFillStyle(a.fc),f=a.fc):f!==this.values.fill&&(f=this.values.fill,m.ctxFillStyle(this.values.fill)),s=(o=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),i=0;i<s;i+=1)for(n=(h=o[i]).length,this.globalData.canvasContext.moveTo(h[0],h[1]),r=2;r<n;r+=6)this.globalData.canvasContext.bezierCurveTo(h[r],h[r+1],h[r+2],h[r+3],h[r+4],h[r+5]);this.globalData.canvasContext.closePath(),m.ctxFill()}if(this.stroke){for(a&&a.sw?u!==a.sw&&(u=a.sw,m.ctxLineWidth(a.sw)):u!==this.values.sWidth&&(u=this.values.sWidth,m.ctxLineWidth(this.values.sWidth)),a&&a.sc?c!==a.sc&&(c=a.sc,m.ctxStrokeStyle(a.sc)):c!==this.values.stroke&&(c=this.values.stroke,m.ctxStrokeStyle(this.values.stroke)),s=(o=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),i=0;i<s;i+=1)for(n=(h=o[i]).length,this.globalData.canvasContext.moveTo(h[0],h[1]),r=2;r<n;r+=6)this.globalData.canvasContext.bezierCurveTo(h[r],h[r+1],h[r+2],h[r+3],h[r+4],h[r+5]);this.globalData.canvasContext.closePath(),m.ctxStroke()}a&&this.globalData.renderer.restore()}},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,e,i=createTag("canvas");i.width=this.assetData.w,i.height=this.assetData.h;var s=i.getContext("2d"),r=this.img.width,n=this.img.height,a=r/n,o=this.assetData.w/this.assetData.h,h=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;a>o&&"xMidYMid slice"===h||a<o&&"xMidYMid slice"!==h?t=(e=n)*o:e=(t=r)/o,s.drawImage(this.img,(r-t)/2,(n-e)/2,t,e,0,0,this.assetData.w,this.assetData.h),this.img=i}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},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)},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){(1!==t[0]||0!==t[1]||0!==t[4]||1!==t[5]||0!==t[12]||0!==t[13])&&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,e,i,s){this.canvasContext.fillRect(t,e,i,s)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas)return void this.canvasContext.restore();this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(t){if(!this.renderConfig.clearCanvas)return void this.canvasContext.restore();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 e=this.animationItem.container.style;e.width="100%",e.height="100%";var i="0px 0px 0px";e.transformOrigin=i,e.mozTransformOrigin=i,e.webkitTransformOrigin=i,e["-webkit-transform"]=i,e.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),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=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(t.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(t,e){if(this.reset(),t?(i=t,s=e,this.canvasContext.canvas.width=i,this.canvasContext.canvas.height=s):(this.animationItem.wrapper&&this.animationItem.container?(i=this.animationItem.wrapper.offsetWidth,s=this.animationItem.wrapper.offsetHeight):(i=this.canvasContext.canvas.width,s=this.canvasContext.canvas.height),this.canvasContext.canvas.width=i*this.renderConfig.dpr,this.canvasContext.canvas.height=s*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var i,s,r,n,a=this.renderConfig.preserveAspectRatio.split(" "),o=a[1]||"meet",h=a[0]||"xMidYMid",l=h.substr(0,4),p=h.substr(4);r=i/s,(n=this.transformCanvas.w/this.transformCanvas.h)>r&&"meet"===o||n<r&&"slice"===o?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=s/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=s/(this.transformCanvas.h/this.renderConfig.dpr)),"xMid"===l&&(n<r&&"meet"===o||n>r&&"slice"===o)?this.transformCanvas.tx=(i-this.transformCanvas.w*(s/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===l&&(n<r&&"meet"===o||n>r&&"slice"===o)?this.transformCanvas.tx=(i-this.transformCanvas.w*(s/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,"YMid"===p&&(n>r&&"meet"===o||n<r&&"slice"===o)?this.transformCanvas.ty=(s-this.transformCanvas.h*(i/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===p&&(n>r&&"meet"===o||n<r&&"slice"===o)?this.transformCanvas.ty=(s-this.transformCanvas.h*(i/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=s/(this.transformCanvas.h/this.renderConfig.dpr)):(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,!0)},CanvasRendererBase.prototype.destroy=function(){var t;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),t=(this.layers?this.layers.length:0)-1;t>=0;t-=1)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=!0},CanvasRendererBase.prototype.renderFrame=function(t,e){if((this.renderedFrame!==t||!0!==this.renderConfig.clearCanvas||e)&&!this.destroyed&&-1!==t){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 i,s=this.layers.length;for(this.completeLayers||this.checkLayers(t),i=s-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(t-this.layers[i].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),i=s-1;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"},CVContextData.prototype.duplicate=function(){var t=2*this._length,e=0;for(e=this._length;e<t;e+=1)this.stack[e]=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 e,i=this.stack[this.cArrPos],s=i.transform,r=this.cTr.props;for(e=0;e<16;e+=1)r[e]=s[e];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(s[0],s[1],s[4],s[5],s[12],s[13]),(t||-1!==i.opacity&&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){t&&this.nativeContext.save();var e,i=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var s=this.stack[this.cArrPos];for(e=0;e<16;e+=1)s.transform[e]=i[e];this.cArrPos+=1;var r=this.stack[this.cArrPos];r.opacity=s.opacity,r.fillStyle=s.fillStyle,r.strokeStyle=s.strokeStyle,r.lineWidth=s.lineWidth,r.lineCap=s.lineCap,r.lineJoin=s.lineJoin,r.miterLimit=s.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){this.stack[this.cArrPos].fillStyle!==t&&(this.currentFillStyle=t,this.stack[this.cArrPos].fillStyle=t)},CVContextData.prototype.strokeStyle=function(t){this.stack[this.cArrPos].strokeStyle!==t&&(this.currentStrokeStyle=t,this.stack[this.cArrPos].strokeStyle=t)},CVContextData.prototype.lineWidth=function(t){this.stack[this.cArrPos].lineWidth!==t&&(this.currentLineWidth=t,this.stack[this.cArrPos].lineWidth=t)},CVContextData.prototype.lineCap=function(t){this.stack[this.cArrPos].lineCap!==t&&(this.currentLineCap=t,this.stack[this.cArrPos].lineCap=t)},CVContextData.prototype.lineJoin=function(t){this.stack[this.cArrPos].lineJoin!==t&&(this.currentLineJoin=t,this.stack[this.cArrPos].lineJoin=t)},CVContextData.prototype.miterLimit=function(t){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 e=this.cTr;this.transformMat.multiply(e),e.cloneFromProps(this.transformMat.props);var i=e.props;this.nativeContext.setTransform(i[0],i[1],i[4],i[5],i[12],i[13])},CVContextData.prototype.opacity=function(t){var e=this.stack[this.cArrPos].opacity;e*=t<0?0:t,this.stack[this.cArrPos].opacity!==e&&(this.currentOpacity!==t&&(this.nativeContext.globalAlpha=t,this.currentOpacity=t),this.stack[this.cArrPos].opacity=e)},CVContextData.prototype.fill=function(t){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(t)},CVContextData.prototype.fillRect=function(t,e,i,s){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(t,e,i,s)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()},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,s=t.length;for(i=0;i<s;i+=1)e=t[i].mProps.v.applyToPointArray(e[0],e[1],0);return e},HShapeElement.prototype.calculateShapeBoundingBox=function(t,e){var i,s,r,n,a,o=t.sh.v,h=t.transformers,l=o._length;if(!(l<=1)){for(i=0;i<l-1;i+=1)s=this.getTransformedPoint(h,o.v[i]),r=this.getTransformedPoint(h,o.o[i]),n=this.getTransformedPoint(h,o.i[i+1]),a=this.getTransformedPoint(h,o.v[i+1]),this.checkBounds(s,r,n,a,e);o.c&&(s=this.getTransformedPoint(h,o.v[i]),r=this.getTransformedPoint(h,o.o[i]),n=this.getTransformedPoint(h,o.i[0]),a=this.getTransformedPoint(h,o.v[0]),this.checkBounds(s,r,n,a,e))}},HShapeElement.prototype.checkBounds=function(t,e,i,s,r){this.getBoundsOfCurve(t,e,i,s);var n=this.shapeBoundingBox;r.x=bmMin(n.left,r.x),r.xMax=bmMax(n.right,r.xMax),r.y=bmMin(n.top,r.y),r.yMax=bmMax(n.bottom,r.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,e,i,s){for(var r,n,a,o,h,l,p,f=[[t[0],s[0]],[t[1],s[1]]],c=0;c<2;++c)n=6*t[c]-12*e[c]+6*i[c],r=-3*t[c]+9*e[c]-9*i[c]+3*s[c],a=3*e[c]-3*t[c],n|=0,a|=0,0==(r|=0)&&0===n||(0===r?(o=-a/n)>0&&o<1&&f[c].push(this.calculateF(o,t,e,i,s,c)):(h=n*n-4*a*r)>=0&&((l=(-n+bmSqrt(h))/(2*r))>0&&l<1&&f[c].push(this.calculateF(l,t,e,i,s,c)),(p=(-n-bmSqrt(h))/(2*r))>0&&p<1&&f[c].push(this.calculateF(p,t,e,i,s,c))));this.shapeBoundingBox.left=bmMin.apply(null,f[0]),this.shapeBoundingBox.top=bmMin.apply(null,f[1]),this.shapeBoundingBox.right=bmMax.apply(null,f[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,f[1])},HShapeElement.prototype.calculateF=function(t,e,i,s,r,n){return bmPow(1-t,3)*e[n]+3*bmPow(1-t,2)*t*i[n]+3*(1-t)*bmPow(t,2)*s[n]+bmPow(t,3)*r[n]},HShapeElement.prototype.calculateBoundingBox=function(t,e){var i,s=t.length;for(i=0;i<s;i+=1)t[i]&&t[i].sh?this.calculateShapeBoundingBox(t[i],e):t[i]&&t[i].it?this.calculateBoundingBox(t[i].it,e):t[i]&&t[i].style&&t[i].w&&this.expandStrokeBoundingBox(t[i].w,e)},HShapeElement.prototype.expandStrokeBoundingBox=function(t,e){var i=0;if(t.keyframes){for(var s=0;s<t.keyframes.length;s+=1){var r=t.keyframes[s].s;r>i&&(i=r)}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=999999,t.xMax=-e,t.y=e,t.yMax=-e,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,!this.currentBoxContains(t)){var i=!1;if(this.currentBBox.w!==t.width&&(this.currentBBox.w=t.width,this.shapeCont.setAttribute("width",t.width),i=!0),this.currentBBox.h!==t.height&&(this.currentBBox.h=t.height,this.shapeCont.setAttribute("height",t.height),i=!0),i||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 s=this.shapeCont.style,r="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";s.transform=r,s.webkitTransform=r}}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),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 e=this.innerElem.style,i=t.fc?this.buildColor(t.fc):"rgba(0,0,0,0)";e.fill=i,e.color=i,t.sc&&(e.stroke=this.buildColor(t.sc),e.strokeWidth=t.sw+"px");var s=this.globalData.fontManager.getFontByName(t.f);if(!this.globalData.fontManager.chars)if(e.fontSize=t.finalSize+"px",e.lineHeight=t.finalSize+"px",s.fClass)this.innerElem.className=s.fClass;else{e.fontFamily=s.fFamily;var r=t.fWeight;e.fontStyle=t.fStyle,e.fontWeight=r}var n=t.l;p=n.length;var a=this.mHelper,o="",h=0;for(l=0;l<p;l+=1){if(this.globalData.fontManager.chars?(this.textPaths[h]?f=this.textPaths[h]:((f=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),f.setAttribute("stroke-linejoin",lineJoinEnum[2]),f.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[h]?u=(c=this.textSpans[h]).children[0]:((c=createTag("div")).style.lineHeight=0,(u=createNS("svg")).appendChild(f),styleDiv(c)))):this.isMasked?f=this.textPaths[h]?this.textPaths[h]:createNS("text"):this.textSpans[h]?(c=this.textSpans[h],f=this.textPaths[h]):(styleDiv(c=createTag("span")),styleDiv(f=createTag("span")),c.appendChild(f)),this.globalData.fontManager.chars){var l,p,f,c,u,m,d,g=this.globalData.fontManager.getCharData(t.finalText[l],s.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily);if(d=g?g.data:null,a.reset(),d&&d.shapes&&d.shapes.length&&(m=d.shapes[0].it,a.scale(t.finalSize/100,t.finalSize/100),o=this.createPathShape(a,m),f.setAttribute("d",o)),this.isMasked)this.innerElem.appendChild(f);else{if(this.innerElem.appendChild(c),d&&d.shapes){document.body.appendChild(u);var y=u.getBBox();u.setAttribute("width",y.width+2),u.setAttribute("height",y.height+2),u.setAttribute("viewBox",y.x-1+" "+(y.y-1)+" "+(y.width+2)+" "+(y.height+2));var v=u.style,b="translate("+(y.x-1)+"px,"+(y.y-1)+"px)";v.transform=b,v.webkitTransform=b,n[l].yOffset=y.y-1}else u.setAttribute("width",1),u.setAttribute("height",1);c.appendChild(u)}}else if(f.textContent=n[l].val,f.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(f);else{this.innerElem.appendChild(c);var _=f.style,x="translate3d(0,"+-t.finalSize/1.2+"px,0)";_.transform=x,_.webkitTransform=x}this.isMasked?this.textSpans[h]=f:this.textSpans[h]=c,this.textSpans[h].style.display="block",this.textPaths[h]=f,h+=1}for(;h<this.textSpans.length;)this.textSpans[h].style.display="none",h+=1},HTextElement.prototype.renderInnerContent=function(){if(this.validateText(),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);var t,e,i,s,r,n=this.svgElement.style,a="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";n.transform=a,n.webkitTransform=a}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var o=0,h=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;for(t=0,e=l.length;t<e;t+=1)l[t].n?o+=1:(s=this.textSpans[t],r=this.textPaths[t],i=h[o],o+=1,i._mdf.m&&(this.isMasked?s.setAttribute("transform",i.m):(s.style.webkitTransform=i.m,s.style.transform=i.m)),s.style.opacity=i.o,i.sw&&i._mdf.sw&&r.setAttribute("stroke-width",i.sw),i.sc&&i._mdf.sc&&r.setAttribute("stroke",i.sc),i.fc&&i._mdf.fc&&(r.setAttribute("fill",i.fc),r.style.color=i.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var p=this.innerElem.getBBox();this.currentBBox.w!==p.width&&(this.currentBBox.w=p.width,this.svgElement.setAttribute("width",p.width)),this.currentBBox.h!==p.height&&(this.currentBBox.h=p.height,this.svgElement.setAttribute("height",p.height));var f=1;if(this.currentBBox.w!==p.width+2*f||this.currentBBox.h!==p.height+2*f||this.currentBBox.x!==p.x-f||this.currentBBox.y!==p.y-f){this.currentBBox.w=p.width+2*f,this.currentBBox.h=p.height+2*f,this.currentBBox.x=p.x-f,this.currentBBox.y=p.y-f,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),n=this.svgElement.style;var c="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";n.transform=c,n.webkitTransform=c}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var t,e,i,s,r=this.comp.threeDElements.length;for(t=0;t<r;t+=1)if("3d"===(e=this.comp.threeDElements[t]).type){i=e.perspectiveElem.style,s=e.container.style;var n=this.pe.v+"px",a="0px 0px 0px",o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";i.perspective=n,i.webkitPerspective=n,s.transformOrigin=a,s.mozTransformOrigin=a,s.webkitTransformOrigin=a,i.transform=o,i.webkitTransform=o}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var t=this._isFirstFrame;if(this.hierarchy)for(i=0,s=this.hierarchy.length;i<s;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){if(this.mat.reset(),this.hierarchy)for(i=s=this.hierarchy.length-1;i>=0;i-=1){var e=this.hierarchy[i].finalTransform.mProp;this.mat.translate(-e.p.v[0],-e.p.v[1],e.p.v[2]),this.mat.rotateX(-e.or.v[0]).rotateY(-e.or.v[1]).rotateZ(e.or.v[2]),this.mat.rotateX(-e.rx.v).rotateY(-e.ry.v).rotateZ(e.rz.v),this.mat.scale(1/e.s.v[0],1/e.s.v[1],1/e.s.v[2]),this.mat.translate(e.a.v[0],e.a.v[1],e.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 i,s,r=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]],n=Math.sqrt(Math.pow(r[0],2)+Math.pow(r[1],2)+Math.pow(r[2],2)),a=[r[0]/n,r[1]/n,r[2]/n],o=Math.sqrt(a[2]*a[2]+a[0]*a[0]),h=Math.atan2(a[1],o),l=Math.atan2(a[0],-a[2]);this.mat.rotateY(l).rotateX(-h)}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 p=!this._prevMat.equals(this.mat);if((p||this.pe._mdf)&&this.comp.threeDElements){for(i=0,s=this.comp.threeDElements.length;i<s;i+=1)if("3d"===(f=this.comp.threeDElements[i]).type){if(p){var f,c,u,m=this.mat.toCSS();(u=f.container.style).transform=m,u.webkitTransform=m}this.pe._mdf&&((c=f.perspectiveElem.style).perspective=this.pe.v+"px",c.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData),e=new Image;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)):this.layerElement.appendChild(e),e.crossOrigin="anonymous",e.src=t,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(t,e){var i=t.getBaseElement();if(i){var s=this.layers[e];if(s.ddd&&this.supports3d)this.addTo3dContainer(i,e);else if(this.threeDElements)this.addTo3dContainer(i,e);else{for(var r,n,a=0;a<e;)this.elements[a]&&!0!==this.elements[a]&&this.elements[a].getBaseElement&&(n=this.elements[a],r=(this.layers[a].ddd?this.getThreeDContainerByPos(a):n.getBaseElement())||r),a+=1;r?s.ddd&&this.supports3d||this.layerElement.insertBefore(i,r):s.ddd&&this.supports3d||this.layerElement.appendChild(i)}}},HybridRendererBase.prototype.createShape=function(t){return this.supports3d?new HShapeElement(t,this.globalData,this):new SVGShapeElement(t,this.globalData,this)},HybridRendererBase.prototype.createText=function(t){return this.supports3d?new HTextElement(t,this.globalData,this):new SVGTextLottieElement(t,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(t){return this.camera=new HCameraElement(t,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(t){return this.supports3d?new HImageElement(t,this.globalData,this):new IImageElement(t,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(t){return this.supports3d?new HSolidElement(t,this.globalData,this):new ISolidElement(t,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(t){for(var e=0,i=this.threeDElements.length;e<i;){if(this.threeDElements[e].startPos<=t&&this.threeDElements[e].endPos>=t)return this.threeDElements[e].perspectiveElem;e+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(t,e){var i,s,r=createTag("div");styleDiv(r);var n=createTag("div");if(styleDiv(n),"3d"===e){(i=r.style).width=this.globalData.compSize.w+"px",i.height=this.globalData.compSize.h+"px";var a="50% 50%";i.webkitTransformOrigin=a,i.mozTransformOrigin=a,i.transformOrigin=a;var o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(s=n.style).transform=o,s.webkitTransform=o}r.appendChild(n);var h={container:n,perspectiveElem:r,startPos:t,endPos:t,type:e};return this.threeDElements.push(h),h},HybridRendererBase.prototype.build3dContainers=function(){var t,e,i=this.layers.length,s="";for(t=0;t<i;t+=1)this.layers[t].ddd&&3!==this.layers[t].ty?"3d"!==s&&(s="3d",e=this.createThreeDContainer(t,"3d")):"2d"!==s&&(s="2d",e=this.createThreeDContainer(t,"2d")),e.endPos=Math.max(e.endPos,t);for(t=(i=this.threeDElements.length)-1;t>=0;t-=1)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(t,e){for(var i=0,s=this.threeDElements.length;i<s;){if(e<=this.threeDElements[i].endPos){for(var r,n=this.threeDElements[i].startPos;n<e;)this.elements[n]&&this.elements[n].getBaseElement&&(r=this.elements[n].getBaseElement()),n+=1;r?this.threeDElements[i].container.insertBefore(t,r):this.threeDElements[i].container.appendChild(t);break}i+=1}},HybridRendererBase.prototype.configAnimation=function(t){var e=createTag("div"),i=this.animationItem.wrapper,s=e.style;s.width=t.w+"px",s.height=t.h+"px",this.resizerElem=e,styleDiv(e),s.transformStyle="flat",s.mozTransformStyle="flat",s.webkitTransformStyle="flat",this.renderConfig.className&&e.setAttribute("class",this.renderConfig.className),i.appendChild(e),s.overflow="hidden";var r=createNS("svg");r.setAttribute("width","1"),r.setAttribute("height","1"),styleDiv(r),this.resizerElem.appendChild(r);var n=createNS("defs");r.appendChild(n),this.data=t,this.setupGlobalData(t,r),this.globalData.defs=n,this.layers=t.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var t,e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var t,e,i,s,r=this.animationItem.wrapper.offsetWidth,n=this.animationItem.wrapper.offsetHeight,a=r/n;this.globalData.compSize.w/this.globalData.compSize.h>a?(t=r/this.globalData.compSize.w,e=r/this.globalData.compSize.w,i=0,s=(n-this.globalData.compSize.h*(r/this.globalData.compSize.w))/2):(t=n/this.globalData.compSize.h,e=n/this.globalData.compSize.h,i=(r-this.globalData.compSize.w*(n/this.globalData.compSize.h))/2,s=0);var o=this.resizerElem.style;o.webkitTransform="matrix3d("+t+",0,0,0,0,"+e+",0,0,0,0,1,0,"+i+","+s+",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,s=this.threeDElements.length;for(t=0;t<s;t+=1){var r=this.threeDElements[t].perspectiveElem.style;r.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(i,2))+"px",r.perspective=r.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(t){var e,i=t.length,s=createTag("div");for(e=0;e<i;e+=1)if(t[e].xt){var r=this.createComp(t[e],s,this.globalData.comp,null);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(t,e){for(var i,s=0;s<e;)this.elements[s]&&this.elements[s].getBaseElement&&(i=this.elements[s].getBaseElement()),s+=1;i?this.layerElement.insertBefore(t,i):this.layerElement.appendChild(t)},HCompElement.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)};var CompExpressionInterface=function(){return function(t){function e(e){for(var i=0,s=t.layers.length;i<s;){if(t.layers[i].nm===e||t.layers[i].ind===e)return t.elements[i].layerInterface;i+=1}return null}return Object.defineProperty(e,"_name",{value:t.data.nm}),e.layer=e,e.pixelAspect=1,e.height=t.data.h||t.globalData.compSize.h,e.width=t.data.w||t.globalData.compSize.w,e.pixelAspect=1,e.frameDuration=1/t.globalData.frameRate,e.displayStartTime=0,e.numLayers=t.layers.length,e}}();function _typeof$2(t){return(_typeof$2="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})(t)}function seedRandom(t,e){var i=this,s=256,r=6,n=52,a="random",o=e.pow(s,r),h=e.pow(2,n),l=2*h,p=s-1;function f(i,n,p){var f=[],v=d(m((n=!0===n?{entropy:!0}:n||{}).entropy?[i,y(t)]:null===i?g():i,3),f),b=new c(f),_=function(){for(var t=b.g(r),e=o,i=0;t<h;)t=(t+i)*s,e*=s,i=b.g(1);for(;t>=l;)t/=2,e/=2,i>>>=1;return(t+i)/e};return _.int32=function(){return 0|b.g(4)},_.quick=function(){return b.g(4)/0x100000000},_.double=_,d(y(b.S),t),(n.pass||p||function(t,i,s,r){return(r&&(r.S&&u(r,b),t.state=function(){return u(b,{})}),s)?(e[a]=t,i):t})(_,v,"global"in n?n.global:this==e,n.state)}function c(t){var e,i=t.length,r=this,n=0,a=r.i=r.j=0,o=r.S=[];for(i||(t=[i++]);n<s;)o[n]=n++;for(n=0;n<s;n++)o[n]=o[a=p&a+t[n%i]+(e=o[n])],o[a]=e;r.g=function(t){for(var e,i=0,n=r.i,a=r.j,o=r.S;t--;)e=o[n=p&n+1],i=i*s+o[p&(o[n]=o[a=p&a+e])+(o[a]=e)];return r.i=n,r.j=a,i}}function u(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function m(t,e){var i,s=[],r=_typeof$2(t);if(e&&"object"==r)for(i in t)try{s.push(m(t[i],e-1))}catch(t){}return s.length?s:"string"==r?t:t+"\0"}function d(t,e){for(var i,s=t+"",r=0;r<s.length;)e[p&r]=p&(i^=19*e[p&r])+s.charCodeAt(r++);return y(e)}function g(){try{var e=new Uint8Array(s);return(i.crypto||i.msCrypto).getRandomValues(e),y(e)}catch(e){var r=i.navigator,n=r&&r.plugins;return[+new Date,i,n,i.screen,y(t)]}}function y(t){return String.fromCharCode.apply(0,t)}e["seed"+a]=f,d(e.random(),t)}function initialize$2(t){seedRandom([],t)}var propTypes={SHAPE:"shape"};function _typeof$1(t){return(_typeof$1="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})(t)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,e){return"number"===t||e instanceof Number||"boolean"===t||"string"===t}function $bm_neg(t){var e=_typeof$1(t);if("number"===e||t instanceof Number||"boolean"===e)return-t;if($bm_isInstanceOfArray(t)){var i,s=t.length,r=[];for(i=0;i<s;i+=1)r[i]=-t[i];return r}return t.propType?t.v:-t}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(t,e){var i=_typeof$1(t),s=_typeof$1(e);if(isNumerable(i,t)&&isNumerable(s,e)||"string"===i||"string"===s)return t+e;if($bm_isInstanceOfArray(t)&&isNumerable(s,e))return t=t.slice(0),t[0]+=e,t;if(isNumerable(i,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t+e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var r=0,n=t.length,a=e.length,o=[];r<n||r<a;)("number"==typeof t[r]||t[r]instanceof Number)&&("number"==typeof e[r]||e[r]instanceof Number)?o[r]=t[r]+e[r]:o[r]=void 0===e[r]?t[r]:t[r]||e[r],r+=1;return o}return 0}var add=sum;function sub(t,e){var i=_typeof$1(t),s=_typeof$1(e);if(isNumerable(i,t)&&isNumerable(s,e))return"string"===i&&(t=parseInt(t,10)),"string"===s&&(e=parseInt(e,10)),t-e;if($bm_isInstanceOfArray(t)&&isNumerable(s,e))return t=t.slice(0),t[0]-=e,t;if(isNumerable(i,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t-e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var r=0,n=t.length,a=e.length,o=[];r<n||r<a;)("number"==typeof t[r]||t[r]instanceof Number)&&("number"==typeof e[r]||e[r]instanceof Number)?o[r]=t[r]-e[r]:o[r]=void 0===e[r]?t[r]:t[r]||e[r],r+=1;return o}return 0}function mul(t,e){var i,s,r,n=_typeof$1(t),a=_typeof$1(e);if(isNumerable(n,t)&&isNumerable(a,e))return t*e;if($bm_isInstanceOfArray(t)&&isNumerable(a,e)){for(s=0,i=createTypedArray("float32",r=t.length);s<r;s+=1)i[s]=t[s]*e;return i}if(isNumerable(n,t)&&$bm_isInstanceOfArray(e)){for(s=0,i=createTypedArray("float32",r=e.length);s<r;s+=1)i[s]=t*e[s];return i}return 0}function div(t,e){var i,s,r,n=_typeof$1(t),a=_typeof$1(e);if(isNumerable(n,t)&&isNumerable(a,e))return t/e;if($bm_isInstanceOfArray(t)&&isNumerable(a,e)){for(s=0,i=createTypedArray("float32",r=t.length);s<r;s+=1)i[s]=t[s]/e;return i}if(isNumerable(n,t)&&$bm_isInstanceOfArray(e)){for(s=0,i=createTypedArray("float32",r=e.length);s<r;s+=1)i[s]=t/e[s];return i}return 0}function mod(t,e){return"string"==typeof t&&(t=parseInt(t,10)),"string"==typeof e&&(e=parseInt(e,10)),t%e}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(t,e,i){if(e>i){var s=i;i=e,e=s}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);e||(e=helperLengthArray);var i,s=Math.min(t.length,e.length),r=0;for(i=0;i<s;i+=1)r+=Math.pow(e[i]-t[i],2);return Math.sqrt(r)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e,i,s=t[0],r=t[1],n=t[2],a=Math.max(s,r,n),o=Math.min(s,r,n),h=(a+o)/2;if(a===o)e=0,i=0;else{var l=a-o;switch(i=h>.5?l/(2-a-o):l/(a+o),a){case s:e=(r-n)/l+6*(r<n);break;case r:e=(n-s)/l+2;break;case n:e=(s-r)/l+4}e/=6}return[e,i,h,t[3]]}function hue2rgb(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function hslToRgb(t){var e,i,s,r=t[0],n=t[1],a=t[2];if(0===n)e=a,s=a,i=a;else{var o=a<.5?a*(1+n):a+n-a*n,h=2*a-o;e=hue2rgb(h,o,r+1/3),i=hue2rgb(h,o,r),s=hue2rgb(h,o,r-1/3)}return[e,i,s,t[3]]}function linear(t,e,i,s,r){if((void 0===s||void 0===r)&&(s=e,r=i,e=0,i=1),i<e){var n,a=i;i=e,e=a}if(t<=e)return s;if(t>=i)return r;var o=i===e?0:(t-e)/(i-e);if(!s.length)return s+(r-s)*o;var h=s.length,l=createTypedArray("float32",h);for(n=0;n<h;n+=1)l[n]=s[n]+(r[n]-s[n])*o;return l}function random(t,e){if(void 0===e&&(void 0===t?(t=0,e=1):(e=t,t=void 0)),e.length){var i,s=e.length;t||(t=createTypedArray("float32",s));var r=createTypedArray("float32",s),n=BMMath.random();for(i=0;i<s;i+=1)r[i]=t[i]+n*(e[i]-t[i]);return r}return void 0===t&&(t=0),t+BMMath.random()*(e-t)}function createPath(t,e,i,s){var r,n,a,o=t.length,h=shapePool.newElement();h.setPathData(!!s,o);var l=[0,0];for(r=0;r<o;r+=1)n=e&&e[r]?e[r]:l,a=i&&i[r]?i[r]:l,h.setTripleAt(t[r][0],t[r][1],a[0]+t[r][0],a[1]+t[r][1],n[0]+t[r][0],n[1]+t[r][1],r,!0);return h}function initiateExpression(elem,data,property){function noOp(t){return t}if(!elem.globalData.renderConfig.runExpressions)return noOp;var transform,$bm_transform,content,effect,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,time,velocity,value,text,textIndex,textTotal,selectorValue,parent,val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,thisProperty=property;thisProperty._name=elem.data.nm,thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=(function(t,e){var i,s,r=this.pv.length?this.pv.length:1,n=createTypedArray("float32",r);t=5;var a=Math.floor(time*t);for(i=0,s=0;i<a;){for(s=0;s<r;s+=1)n[s]+=-e+2*e*BMMath.random();i+=1}var o=time*t,h=o-Math.floor(o),l=createTypedArray("float32",r);if(r>1){for(s=0;s<r;s+=1)l[s]=this.pv[s]+n[s]+(-e+2*e*BMMath.random())*h;return l}return this.pv+n[0]+(-e+2*e*BMMath.random())*h}).bind(this);function loopInDuration(t,e){return loopIn(t,e,!0)}function loopOutDuration(t,e){return loopOut(t,e,!0)}thisProperty.loopIn&&(loop_in=loopIn=thisProperty.loopIn.bind(thisProperty)),thisProperty.loopOut&&(loop_out=loopOut=thisProperty.loopOut.bind(thisProperty)),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(t,e){var i=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],s=Math.atan2(i[0],Math.sqrt(i[1]*i[1]+i[2]*i[2]))/degToRads;return[-Math.atan2(i[1],i[2])/degToRads,s,0]}function easeOut(t,e,i,s,r){return applyEase(easeOutBez,t,e,i,s,r)}function easeIn(t,e,i,s,r){return applyEase(easeInBez,t,e,i,s,r)}function ease(t,e,i,s,r){return applyEase(easeInOutBez,t,e,i,s,r)}function applyEase(t,e,i,s,r,n){void 0===r?(r=i,n=s):e=(e-i)/(s-i),e>1?e=1:e<0&&(e=0);var a=t(e);if($bm_isInstanceOfArray(r)){var o,h=r.length,l=createTypedArray("float32",h);for(o=0;o<h;o+=1)l[o]=(n[o]-r[o])*a+r[o];return l}return(n-r)*a+r}function nearestKey(t){var e,i,s,r=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(i=-1,(t*=elem.comp.globalData.frameRate)<data.k[0].t)i=1,s=data.k[0].t;else{for(e=0;e<r-1;e+=1)if(t===data.k[e].t){i=e+1,s=data.k[e].t;break}else if(t>data.k[e].t&&t<data.k[e+1].t){t-data.k[e].t>data.k[e+1].t-t?(i=e+2,s=data.k[e+1].t):(i=e+1,s=data.k[e].t);break}-1===i&&(i=e+1,s=data.k[e].t)}else i=0,s=0;var n={};return n.index=i,n.time=s/elem.comp.globalData.frameRate,n}function key(t){if(!data.k.length||"number"==typeof data.k[0])throw Error("The property has no keyframe at index "+t);t-=1;var e,i,s={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]},r=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;for(e=0,i=r.length;e<i;e+=1)s[e]=r[e],s.value[e]=r[e];return s}function framesToTime(t,e){return e||(e=elem.comp.globalData.frameRate),t/e}function timeToFrames(t,e){return t||0===t||(t=time),e||(e=elem.comp.globalData.frameRate),t*e}function seedRandom(t){BMMath.seedrandom(randSeed+t)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(t,e){return"string"==typeof value?void 0===e?value.substring(t):value.substring(t,e):""}function substr(t,e){return"string"==typeof value?void 0===e?value.substr(t):value.substr(t,e):""}function posterizeTime(t){time=0===t?0:Math.floor(time*t)/t,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(t){return(value=t,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType)?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),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),!transform&&($bm_transform=transform=elem.layerInterface("ADBE Transform Group"),transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!!(elem.hierarchy&&elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),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 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],executeExpression}return 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,ob}(),Expressions=function(){var t={};return t.initExpressions=function t(t){var e=0,i=[];function s(){e+=1}function r(){0==(e-=1)&&a()}function n(t){-1===i.indexOf(t)&&i.push(t)}function a(){var t,e=i.length;for(t=0;t<e;t+=1)i[t].release();i.length=0}t.renderer.compInterface=CompExpressionInterface(t.renderer),t.renderer.globalData.projectInterface.registerComposition(t.renderer),t.renderer.globalData.pushExpression=s,t.renderer.globalData.popExpression=r,t.renderer.globalData.registerExpressionProperty=n},t.resetFrame=ExpressionManager.resetFrame,t}(),MaskManagerInterface=function(){function t(t,e){this._mask=t,this._data=e}return Object.defineProperty(t.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(t.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(e){var i,s=createSizedArray(e.viewData.length),r=e.viewData.length;for(i=0;i<r;i+=1)s[i]=new t(e.viewData[i],e.masksProperties[i]);return function(t){for(i=0;i<r;){if(e.masksProperties[i].nm===t)return s[i];i+=1}return null}}}(),ExpressionPropertyInterface=function(){var t={pv:0,v:0,mult:1},e={pv:[0,0,0],v:[0,0,0],mult:1};function i(t,e,i){Object.defineProperty(t,"velocity",{get:function(){return e.getVelocityAtTime(e.comp.currentFrame)}}),t.numKeys=e.keyframes?e.keyframes.length:0,t.key=function(s){if(!t.numKeys)return 0;var r="";r="s"in e.keyframes[s-1]?e.keyframes[s-1].s:"e"in e.keyframes[s-2]?e.keyframes[s-2].e:e.keyframes[s-2].s;var n="unidimensional"===i?new Number(r):Object.assign({},r);return n.time=e.keyframes[s-1].t/e.elem.comp.globalData.frameRate,n.value="unidimensional"===i?r[0]:r,n},t.valueAtTime=e.getValueAtTime,t.speedAtTime=e.getSpeedAtTime,t.velocityAtTime=e.getVelocityAtTime,t.propertyGroup=e.propertyGroup}function s(e){e&&"pv"in e||(e=t);var s=1/e.mult,r=e.pv*s,n=new Number(r);return n.value=r,i(n,e,"unidimensional"),function(){return e.k&&e.getValue(),r=e.v*s,n.value!==r&&((n=new Number(r)).value=r,n[0]=r,i(n,e,"unidimensional")),n}}function r(t){t&&"pv"in t||(t=e);var s=1/t.mult,r=t.data&&t.data.l||t.pv.length,n=createTypedArray("float32",r),a=createTypedArray("float32",r);return n.value=a,i(n,t,"multidimensional"),function(){t.k&&t.getValue();for(var e=0;e<r;e+=1)a[e]=t.v[e]*s,n[e]=a[e];return n}}function n(){return t}return function(t){return t?"unidimensional"===t.propType?s(t):r(t):n}}(),TransformExpressionInterface=function(){return function(t){var e,i,s,r;function n(t){switch(t){case"scale":case"Scale":case"ADBE Scale":case 6:return n.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return n.rotation;case"ADBE Rotate X":return n.xRotation;case"ADBE Rotate Y":return n.yRotation;case"position":case"Position":case"ADBE Position":case 2:return n.position;case"ADBE Position_0":return n.xPosition;case"ADBE Position_1":return n.yPosition;case"ADBE Position_2":return n.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return n.anchorPoint;case"opacity":case"Opacity":case 11:return n.opacity;default:return null}}return Object.defineProperty(n,"rotation",{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(n,"zRotation",{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(n,"xRotation",{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(n,"yRotation",{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(n,"scale",{get:ExpressionPropertyInterface(t.s)}),t.p?r=ExpressionPropertyInterface(t.p):(e=ExpressionPropertyInterface(t.px),i=ExpressionPropertyInterface(t.py),t.pz&&(s=ExpressionPropertyInterface(t.pz))),Object.defineProperty(n,"position",{get:function(){return t.p?r():[e(),i(),s?s():0]}}),Object.defineProperty(n,"xPosition",{get:ExpressionPropertyInterface(t.px)}),Object.defineProperty(n,"yPosition",{get:ExpressionPropertyInterface(t.py)}),Object.defineProperty(n,"zPosition",{get:ExpressionPropertyInterface(t.pz)}),Object.defineProperty(n,"anchorPoint",{get:ExpressionPropertyInterface(t.a)}),Object.defineProperty(n,"opacity",{get:ExpressionPropertyInterface(t.o)}),Object.defineProperty(n,"skew",{get:ExpressionPropertyInterface(t.sk)}),Object.defineProperty(n,"skewAxis",{get:ExpressionPropertyInterface(t.sa)}),Object.defineProperty(n,"orientation",{get:ExpressionPropertyInterface(t.or)}),n}}(),LayerExpressionInterface=function(){function t(t){var e=new Matrix;return void 0!==t?this._elem.finalTransform.mProp.getValueAtTime(t).clone(e):this._elem.finalTransform.mProp.applyToMatrix(e),e}function e(t,e){var i=this.getMatrix(e);return i.props[12]=0,i.props[13]=0,i.props[14]=0,this.applyPoint(i,t)}function i(t,e){var i=this.getMatrix(e);return this.applyPoint(i,t)}function s(t,e){var i=this.getMatrix(e);return i.props[12]=0,i.props[13]=0,i.props[14]=0,this.invertPoint(i,t)}function r(t,e){var i=this.getMatrix(e);return this.invertPoint(i,t)}function n(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var i,s=this._elem.hierarchy.length;for(i=0;i<s;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(t)}return t.applyToPointArray(e[0],e[1],e[2]||0)}function a(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var i,s=this._elem.hierarchy.length;for(i=0;i<s;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(t)}return t.inversePoint(e)}function o(t){var e=new Matrix;if(e.reset(),this._elem.finalTransform.mProp.applyToMatrix(e),this._elem.hierarchy&&this._elem.hierarchy.length){var i,s=this._elem.hierarchy.length;for(i=0;i<s;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(e)}return e.inversePoint(t)}function h(){return[1,1,1,1]}return function(l){function p(t){c.mask=new MaskManagerInterface(t,l)}function f(t){c.effect=t}function c(t){switch(t){case"ADBE Root Vectors Group":case"Contents":case 2:return c.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 c.effect;case"ADBE Text Properties":return c.textInterface;default:return null}}c.getMatrix=t,c.invertPoint=a,c.applyPoint=n,c.toWorld=i,c.toWorldVec=e,c.fromWorld=r,c.fromWorldVec=s,c.toComp=i,c.fromComp=o,c.sampleImage=h,c.sourceRectAtTime=l.sourceRectAtTime.bind(l),c._elem=l;var u=TransformExpressionInterface(l.finalTransform.mProp),m=getDescriptor(u,"anchorPoint");return Object.defineProperties(c,{hasParent:{get:function(){return l.hierarchy.length}},parent:{get:function(){return l.hierarchy[0].layerInterface}},rotation:getDescriptor(u,"rotation"),scale:getDescriptor(u,"scale"),position:getDescriptor(u,"position"),opacity:getDescriptor(u,"opacity"),anchorPoint:m,anchor_point:m,transform:{get:function(){return u}},active:{get:function(){return l.isInRange}}}),c.startTime=l.data.st,c.index=l.data.ind,c.source=l.data.refId,c.height=0===l.data.ty?l.data.h:100,c.width=0===l.data.ty?l.data.w:100,c.inPoint=l.data.ip/l.comp.globalData.frameRate,c.outPoint=l.data.op/l.comp.globalData.frameRate,c._name=l.data.nm,c.registerMaskInterface=p,c.registerEffectsInterface=f,c}}(),propertyGroupFactory=function(){return function(t,e){return function(i){return(i=void 0===i?1:i)<=0?t:e(i-1)}}}(),PropertyInterface=function(){return function(t,e){var i={_name:t};return function(t){return(t=void 0===t?1:t)<=0?i:e(t-1)}}}(),EffectsExpressionInterface=function(){function t(i,s,r,n){function a(t){for(var e=i.ef,s=0,r=e.length;s<r;){if(t===e[s].nm||t===e[s].mn||t===e[s].ix){if(5===e[s].ty)return l[s];return l[s]()}s+=1}throw Error()}var o,h=propertyGroupFactory(a,r),l=[],p=i.ef.length;for(o=0;o<p;o+=1)5===i.ef[o].ty?l.push(t(i.ef[o],s.effectElements[o],s.effectElements[o].propertyGroup,n)):l.push(e(s.effectElements[o],i.ef[o].ty,n,h));return"ADBE Color Control"===i.mn&&Object.defineProperty(a,"color",{get:function(){return l[0]()}}),Object.defineProperties(a,{numProperties:{get:function(){return i.np}},_name:{value:i.nm},propertyGroup:{value:h}}),a.enabled=0!==i.en,a.active=a.enabled,a}function e(t,e,i,s){var r=ExpressionPropertyInterface(t.p);function n(){return 10===e?i.comp.compInterface(t.p.v):r()}return t.p.setGroupProperty&&t.p.setGroupProperty(PropertyInterface("",s)),n}return{createEffectsInterface:function(e,i){if(e.effectsManager){var s,r=[],n=e.data.ef,a=e.effectsManager.effectElements.length;for(s=0;s<a;s+=1)r.push(t(n[s],e.effectsManager.effectElements[s],i,e));var o=e.data.ef||[],h=function(t){for(s=0,a=o.length;s<a;){if(t===o[s].nm||t===o[s].mn||t===o[s].ix)return r[s];s+=1}return null};return Object.defineProperty(h,"numProperties",{get:function(){return o.length}}),h}return null}}}(),ShapePathInterface=function(){return function(t,e,i){var s=e.sh;function r(t){return"Shape"===t||"shape"===t||"Path"===t||"path"===t||"ADBE Vector Shape"===t||2===t?r.path:null}var n=propertyGroupFactory(r,i);return s.setGroupProperty(PropertyInterface("Path",n)),Object.defineProperties(r,{path:{get:function(){return s.k&&s.getValue(),s}},shape:{get:function(){return s.k&&s.getValue(),s}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:i}}),r}}(),ShapeExpressionInterface=function(){function t(t,e,h){var m,d=[],g=t?t.length:0;for(m=0;m<g;m+=1)"gr"===t[m].ty?d.push(i(t[m],e[m],h)):"fl"===t[m].ty?d.push(s(t[m],e[m],h)):"st"===t[m].ty?d.push(a(t[m],e[m],h)):"tm"===t[m].ty?d.push(o(t[m],e[m],h)):"tr"===t[m].ty||("el"===t[m].ty?d.push(l(t[m],e[m],h)):"sr"===t[m].ty?d.push(p(t[m],e[m],h)):"sh"===t[m].ty?d.push(ShapePathInterface(t[m],e[m],h)):"rc"===t[m].ty?d.push(f(t[m],e[m],h)):"rd"===t[m].ty?d.push(c(t[m],e[m],h)):"rp"===t[m].ty?d.push(u(t[m],e[m],h)):"gf"===t[m].ty?d.push(r(t[m],e[m],h)):d.push(n(t[m],e[m])));return d}function e(e,i,s){var r,n=function(t){for(var e=0,i=r.length;e<i;){if(r[e]._name===t||r[e].mn===t||r[e].propertyIndex===t||r[e].ix===t||r[e].ind===t)return r[e];e+=1}return"number"==typeof t?r[t-1]:null};n.propertyGroup=propertyGroupFactory(n,s),r=t(e.it,i.it,n.propertyGroup),n.numProperties=r.length;var a=h(e.it[e.it.length-1],i.it[i.it.length-1],n.propertyGroup);return n.transform=a,n.propertyIndex=e.cix,n._name=e.nm,n}function i(t,i,s){var r=function(t){switch(t){case"ADBE Vectors Group":case"Contents":case 2:return r.content;default:return r.transform}};r.propertyGroup=propertyGroupFactory(r,s);var n=e(t,i,r.propertyGroup),a=h(t.it[t.it.length-1],i.it[i.it.length-1],r.propertyGroup);return r.content=n,r.transform=a,Object.defineProperty(r,"_name",{get:function(){return t.nm}}),r.numProperties=t.np,r.propertyIndex=t.ix,r.nm=t.nm,r.mn=t.mn,r}function s(t,e,i){function s(t){return"Color"===t||"color"===t?s.color:"Opacity"===t||"opacity"===t?s.opacity:null}return Object.defineProperties(s,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface("Color",i)),e.o.setGroupProperty(PropertyInterface("Opacity",i)),s}function r(t,e,i){function s(t){return"Start Point"===t||"start point"===t?s.startPoint:"End Point"===t||"end point"===t?s.endPoint:"Opacity"===t||"opacity"===t?s.opacity:null}return Object.defineProperties(s,{startPoint:{get:ExpressionPropertyInterface(e.s)},endPoint:{get:ExpressionPropertyInterface(e.e)},opacity:{get:ExpressionPropertyInterface(e.o)},type:{get:function(){return"a"}},_name:{value:t.nm},mn:{value:t.mn}}),e.s.setGroupProperty(PropertyInterface("Start Point",i)),e.e.setGroupProperty(PropertyInterface("End Point",i)),e.o.setGroupProperty(PropertyInterface("Opacity",i)),s}function n(){return function(){return null}}function a(t,e,i){var s,r=propertyGroupFactory(l,i),n=propertyGroupFactory(h,r);function a(i){Object.defineProperty(h,t.d[i].nm,{get:ExpressionPropertyInterface(e.d.dataProps[i].p)})}var o=t.d?t.d.length:0,h={};for(s=0;s<o;s+=1)a(s),e.d.dataProps[s].p.setGroupProperty(n);function l(t){return"Color"===t||"color"===t?l.color:"Opacity"===t||"opacity"===t?l.opacity:"Stroke Width"===t||"stroke width"===t?l.strokeWidth:null}return Object.defineProperties(l,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},strokeWidth:{get:ExpressionPropertyInterface(e.w)},dash:{get:function(){return h}},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface("Color",r)),e.o.setGroupProperty(PropertyInterface("Opacity",r)),e.w.setGroupProperty(PropertyInterface("Stroke Width",r)),l}function o(t,e,i){function s(e){return e===t.e.ix||"End"===e||"end"===e?s.end:e===t.s.ix?s.start:e===t.o.ix?s.offset:null}var r=propertyGroupFactory(s,i);return s.propertyIndex=t.ix,e.s.setGroupProperty(PropertyInterface("Start",r)),e.e.setGroupProperty(PropertyInterface("End",r)),e.o.setGroupProperty(PropertyInterface("Offset",r)),s.propertyIndex=t.ix,s.propertyGroup=i,Object.defineProperties(s,{start:{get:ExpressionPropertyInterface(e.s)},end:{get:ExpressionPropertyInterface(e.e)},offset:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm}}),s.mn=t.mn,s}function h(t,e,i){function s(e){return t.a.ix===e||"Anchor Point"===e?s.anchorPoint:t.o.ix===e||"Opacity"===e?s.opacity:t.p.ix===e||"Position"===e?s.position:t.r.ix===e||"Rotation"===e||"ADBE Vector Rotation"===e?s.rotation:t.s.ix===e||"Scale"===e?s.scale:t.sk&&t.sk.ix===e||"Skew"===e?s.skew:t.sa&&t.sa.ix===e||"Skew Axis"===e?s.skewAxis:null}var r=propertyGroupFactory(s,i);return e.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",r)),e.transform.mProps.p.setGroupProperty(PropertyInterface("Position",r)),e.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",r)),e.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",r)),e.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",r)),e.transform.mProps.sk&&(e.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",r)),e.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",r))),e.transform.op.setGroupProperty(PropertyInterface("Opacity",r)),Object.defineProperties(s,{opacity:{get:ExpressionPropertyInterface(e.transform.mProps.o)},position:{get:ExpressionPropertyInterface(e.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(e.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(e.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(e.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(e.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(e.transform.mProps.sa)},_name:{value:t.nm}}),s.ty="tr",s.mn=t.mn,s.propertyGroup=i,s}function l(t,e,i){function s(e){return t.p.ix===e?s.position:t.s.ix===e?s.size:null}var r=propertyGroupFactory(s,i);s.propertyIndex=t.ix;var n="tm"===e.sh.ty?e.sh.prop:e.sh;return n.s.setGroupProperty(PropertyInterface("Size",r)),n.p.setGroupProperty(PropertyInterface("Position",r)),Object.defineProperties(s,{size:{get:ExpressionPropertyInterface(n.s)},position:{get:ExpressionPropertyInterface(n.p)},_name:{value:t.nm}}),s.mn=t.mn,s}function p(t,e,i){function s(e){return t.p.ix===e?s.position:t.r.ix===e?s.rotation:t.pt.ix===e?s.points:t.or.ix===e||"ADBE Vector Star Outer Radius"===e?s.outerRadius:t.os.ix===e?s.outerRoundness:t.ir&&(t.ir.ix===e||"ADBE Vector Star Inner Radius"===e)?s.innerRadius:t.is&&t.is.ix===e?s.innerRoundness:null}var r=propertyGroupFactory(s,i),n="tm"===e.sh.ty?e.sh.prop:e.sh;return s.propertyIndex=t.ix,n.or.setGroupProperty(PropertyInterface("Outer Radius",r)),n.os.setGroupProperty(PropertyInterface("Outer Roundness",r)),n.pt.setGroupProperty(PropertyInterface("Points",r)),n.p.setGroupProperty(PropertyInterface("Position",r)),n.r.setGroupProperty(PropertyInterface("Rotation",r)),t.ir&&(n.ir.setGroupProperty(PropertyInterface("Inner Radius",r)),n.is.setGroupProperty(PropertyInterface("Inner Roundness",r))),Object.defineProperties(s,{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}}),s.mn=t.mn,s}function f(t,e,i){function s(e){return t.p.ix===e?s.position:t.r.ix===e?s.roundness:t.s.ix===e||"Size"===e||"ADBE Vector Rect Size"===e?s.size:null}var r=propertyGroupFactory(s,i),n="tm"===e.sh.ty?e.sh.prop:e.sh;return s.propertyIndex=t.ix,n.p.setGroupProperty(PropertyInterface("Position",r)),n.s.setGroupProperty(PropertyInterface("Size",r)),n.r.setGroupProperty(PropertyInterface("Rotation",r)),Object.defineProperties(s,{position:{get:ExpressionPropertyInterface(n.p)},roundness:{get:ExpressionPropertyInterface(n.r)},size:{get:ExpressionPropertyInterface(n.s)},_name:{value:t.nm}}),s.mn=t.mn,s}function c(t,e,i){function s(e){return t.r.ix===e||"Round Corners 1"===e?s.radius:null}var r=propertyGroupFactory(s,i),n=e;return s.propertyIndex=t.ix,n.rd.setGroupProperty(PropertyInterface("Radius",r)),Object.defineProperties(s,{radius:{get:ExpressionPropertyInterface(n.rd)},_name:{value:t.nm}}),s.mn=t.mn,s}function u(t,e,i){function s(e){return t.c.ix===e||"Copies"===e?s.copies:t.o.ix===e||"Offset"===e?s.offset:null}var r=propertyGroupFactory(s,i),n=e;return s.propertyIndex=t.ix,n.c.setGroupProperty(PropertyInterface("Copies",r)),n.o.setGroupProperty(PropertyInterface("Offset",r)),Object.defineProperties(s,{copies:{get:ExpressionPropertyInterface(n.c)},offset:{get:ExpressionPropertyInterface(n.o)},_name:{value:t.nm}}),s.mn=t.mn,s}return function(e,i,s){var r;function n(t){if("number"==typeof t)return 0===(t=void 0===t?1:t)?s:r[t-1];for(var e=0,i=r.length;e<i;){if(r[e]._name===t)return r[e];e+=1}return null}return n.propertyGroup=propertyGroupFactory(n,function(){return s}),r=t(e,i,n.propertyGroup),n.numProperties=r.length,n._name="Contents",n}}(),TextExpressionInterface=function(){return function(t){var e;function i(t){return"ADBE Text Document"===t?i.sourceText:null}return Object.defineProperty(i,"sourceText",{get:function(){t.textProperty.getValue();var i=t.textProperty.currentData.t;return e&&i===e.value||((e=new String(i)).value=i||new String(i),Object.defineProperty(e,"style",{get:function(){return{fillColor:t.textProperty.currentData.fc}}})),e}}),i}}();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})(t)}var FootageInterface=function(){var t=function(t){var e="",i=t.getFootageData();function s(t){if(i[t])return(e=t,i=i[t],"object"===_typeof(i))?s:i;var r=t.indexOf(e);return -1!==r?(i=i[parseInt(t.substr(r+e.length),10)],"object"===_typeof(i))?s:i:""}return function(){return e="",i=t.getFootageData(),s}},e=function(e){function i(t){return"Outline"===t?i.outlineInterface():null}return i._name="Outline",i.outlineInterface=t(e),i};return function(t){function i(t){return"Data"===t?i.dataInterface:null}return i._name="Data",i.dataInterface=e(t),i}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(t){return interfaces[t]||null}var expressionHelpers=function(){return{searchExpressions:function(t,e,i){e.x&&(i.k=!0,i.x=!0,i.initiateExpression=ExpressionManager.initiateExpression,i.effectsSequence.push(i.initiateExpression(t,e,i).bind(i)))},getSpeedAtTime:function(t){var e,i=-.01,s=this.getValueAtTime(t),r=this.getValueAtTime(t+i),n=0;if(s.length){for(e=0;e<s.length;e+=1)n+=Math.pow(r[e]-s[e],2);n=100*Math.sqrt(n)}else n=0;return n},getVelocityAtTime:function(t){if(void 0!==this.vel)return this.vel;var e,i,s=-.001,r=this.getValueAtTime(t),n=this.getValueAtTime(t+s);if(r.length)for(i=0,e=createTypedArray("float32",r.length);i<r.length;i+=1)e[i]=(n[i]-r[i])/s;else e=(n-r)/s;return e},getValueAtTime:function(t){return t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==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),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(t){this.propertyGroup=t}}}();function addPropertyDecorator(){function t(t,e,i){if(!this.k||!this.keyframes)return this.pv;t=t?t.toLowerCase():"";var s,r,n,a,o,h=this.comp.renderedFrame,l=this.keyframes,p=l[l.length-1].t;if(h<=p)return this.pv;if(i?(s=e?Math.abs(p-this.elem.comp.globalData.frameRate*e):Math.max(0,p-this.elem.data.ip),r=p-s):((!e||e>l.length-1)&&(e=l.length-1),s=p-(r=l[l.length-1-e].t)),"pingpong"===t){if(Math.floor((h-r)/s)%2!=0)return this.getValueAtTime((s-(h-r)%s+r)/this.comp.globalData.frameRate,0)}else if("offset"===t){var f=this.getValueAtTime(r/this.comp.globalData.frameRate,0),c=this.getValueAtTime(p/this.comp.globalData.frameRate,0),u=this.getValueAtTime(((h-r)%s+r)/this.comp.globalData.frameRate,0),m=Math.floor((h-r)/s);if(this.pv.length){for(n=0,a=(o=Array(f.length)).length;n<a;n+=1)o[n]=(c[n]-f[n])*m+u[n];return o}return(c-f)*m+u}else if("continue"===t){var d=this.getValueAtTime(p/this.comp.globalData.frameRate,0),g=this.getValueAtTime((p-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(n=0,a=(o=Array(d.length)).length;n<a;n+=1)o[n]=d[n]+(d[n]-g[n])*((h-p)/this.comp.globalData.frameRate)/5e-4;return o}return d+(h-p)/.001*(d-g)}return this.getValueAtTime(((h-r)%s+r)/this.comp.globalData.frameRate,0)}function e(t,e,i){if(!this.k)return this.pv;t=t?t.toLowerCase():"";var s,r,n,a,o,h=this.comp.renderedFrame,l=this.keyframes,p=l[0].t;if(h>=p)return this.pv;if(i?(s=e?Math.abs(this.elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-p),r=p+s):((!e||e>l.length-1)&&(e=l.length-1),s=(r=l[e].t)-p),"pingpong"===t){if(Math.floor((p-h)/s)%2==0)return this.getValueAtTime(((p-h)%s+p)/this.comp.globalData.frameRate,0)}else if("offset"===t){var f=this.getValueAtTime(p/this.comp.globalData.frameRate,0),c=this.getValueAtTime(r/this.comp.globalData.frameRate,0),u=this.getValueAtTime((s-(p-h)%s+p)/this.comp.globalData.frameRate,0),m=Math.floor((p-h)/s)+1;if(this.pv.length){for(n=0,a=(o=Array(f.length)).length;n<a;n+=1)o[n]=u[n]-(c[n]-f[n])*m;return o}return u-(c-f)*m}else if("continue"===t){var d=this.getValueAtTime(p/this.comp.globalData.frameRate,0),g=this.getValueAtTime((p+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(n=0,a=(o=Array(d.length)).length;n<a;n+=1)o[n]=d[n]+(d[n]-g[n])*(p-h)/.001;return o}return d+(d-g)*(p-h)/.001}return this.getValueAtTime((s-((p-h)%s+p))/this.comp.globalData.frameRate,0)}function i(t,e){if(!this.k||(t=.5*(t||.4),(e=Math.floor(e||5))<=1))return this.pv;var i,s,r=this.comp.renderedFrame/this.comp.globalData.frameRate,n=r-t,a=r+t,o=e>1?(a-n)/(e-1):1,h=0,l=0;for(i=this.pv.length?createTypedArray("float32",this.pv.length):0;h<e;){if(s=this.getValueAtTime(n+h*o),this.pv.length)for(l=0;l<this.pv.length;l+=1)i[l]+=s[l];else i+=s;h+=1}if(this.pv.length)for(l=0;l<this.pv.length;l+=1)i[l]/=e;else i/=e;return i}function s(t){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var e=this._transformCachingAtTime.v;if(e.cloneFromProps(this.pre.props),this.appliedTransformations<1){var i=this.a.getValueAtTime(t);e.translate(-i[0]*this.a.mult,-i[1]*this.a.mult,i[2]*this.a.mult)}if(this.appliedTransformations<2){var s=this.s.getValueAtTime(t);e.scale(s[0]*this.s.mult,s[1]*this.s.mult,s[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var r=this.sk.getValueAtTime(t),n=this.sa.getValueAtTime(t);e.skewFromAxis(-r*this.sk.mult,n*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var a=this.r.getValueAtTime(t);e.rotate(-a*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var o=this.rz.getValueAtTime(t),h=this.ry.getValueAtTime(t),l=this.rx.getValueAtTime(t),p=this.or.getValueAtTime(t);e.rotateZ(-o*this.rz.mult).rotateY(h*this.ry.mult).rotateX(l*this.rx.mult).rotateZ(-p[2]*this.or.mult).rotateY(p[1]*this.or.mult).rotateX(p[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var f=this.px.getValueAtTime(t),c=this.py.getValueAtTime(t);if(this.data.p.z){var u=this.pz.getValueAtTime(t);e.translate(f*this.px.mult,c*this.py.mult,-u*this.pz.mult)}else e.translate(f*this.px.mult,c*this.py.mult,0)}else{var m=this.p.getValueAtTime(t);e.translate(m[0]*this.p.mult,m[1]*this.p.mult,-m[2]*this.p.mult)}return e}function r(){return this.v.clone(new Matrix)}var n=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(t,e,i){var a=n(t,e,i);return a.dynamicProperties.length?a.getValueAtTime=s.bind(a):a.getValueAtTime=r.bind(a),a.setGroupProperty=expressionHelpers.setGroupProperty,a};var a=PropertyFactory.getProp;function o(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<t?this._caching.lastIndex:0,this._cachingAtTime.lastTime=t,this.interpolateShape(t,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}PropertyFactory.getProp=function(s,r,n,o,h){var l=a(s,r,n,o,h);l.kf?l.getValueAtTime=expressionHelpers.getValueAtTime.bind(l):l.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(l),l.setGroupProperty=expressionHelpers.setGroupProperty,l.loopOut=t,l.loopIn=e,l.smooth=i,l.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(l),l.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(l),l.numKeys=1===r.a?r.k.length:0,l.propertyIndex=r.ix;var p=0;return 0!==n&&(p=createTypedArray("float32",1===r.a?r.k[0].s.length:r.k.length)),l._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:p},expressionHelpers.searchExpressions(s,r,l),l.k&&h.addDynamicProperty(l),l};var h=ShapePropertyFactory.getConstructorFunction(),l=ShapePropertyFactory.getKeyframedConstructorFunction();function p(){}p.prototype={vertices:function(t,e){this.k&&this.getValue();var i,s=this.v;void 0!==e&&(s=this.getValueAtTime(e,0));var r=s._length,n=s[t],a=s.v,o=createSizedArray(r);for(i=0;i<r;i+=1)"i"===t||"o"===t?o[i]=[n[i][0]-a[i][0],n[i][1]-a[i][1]]:o[i]=[n[i][0],n[i][1]];return o},points:function(t){return this.vertices("v",t)},inTangents:function(t){return this.vertices("i",t)},outTangents:function(t){return this.vertices("o",t)},isClosed:function(){return this.v.c},pointOnPath:function(t,e){var i,s=this.v;void 0!==e&&(s=this.getValueAtTime(e,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(s));for(var r=this._segmentsLength,n=r.lengths,a=r.totalLength*t,o=0,h=n.length,l=0;o<h;){if(l+n[o].addedLength>a){var p=o,f=s.c&&o===h-1?0:o+1,c=(a-l)/n[o].addedLength;i=bez.getPointInSegment(s.v[p],s.v[f],s.o[p],s.i[f],c,n[o]);break}l+=n[o].addedLength,o+=1}return i||(i=s.c?[s.v[0][0],s.v[0][1]]:[s.v[s._length-1][0],s.v[s._length-1][1]]),i},vectorOnPath:function(t,e,i){1==t?t=this.v.c:0==t&&(t=.999);var s=this.pointOnPath(t,e),r=this.pointOnPath(t+.001,e),n=r[0]-s[0],a=r[1]-s[1],o=Math.sqrt(Math.pow(n,2)+Math.pow(a,2));return 0===o?[0,0]:"tangent"===i?[n/o,a/o]:[-a/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],h),extendPrototype([p],l),l.prototype.getValueAtTime=o,l.prototype.initiateExpression=ExpressionManager.initiateExpression;var f=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(t,e,i,s,r){var n=f(t,e,i,s,r);return n.propertyIndex=e.ix,n.lock=!1,3===i?expressionHelpers.searchExpressions(t,e.pt,n):4===i&&expressionHelpers.searchExpressions(t,e.ks,n),n.k&&t.addDynamicProperty(n),n}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function t(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(t,e){var i=this.calculateExpression(e);if(t.t!==i){var s={};return this.copyData(s,t),s.t=i.toString(),s.__complete=!1,s}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=t||e,this.kf},TextProperty.prototype.searchExpressions=t}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(t,e){var i,s,r=createNS("feMerge");for(r.setAttribute("result",t),s=0;s<e.length;s+=1)(i=createNS("feMergeNode")).setAttribute("in",e[s]),r.appendChild(i),r.appendChild(i);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,e,i,s,r){this.filterManager=e;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",s+"_tint_1"),t.appendChild(n),(n=createNS("feColorMatrix")).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",s+"_tint_2"),t.appendChild(n),this.matrixFilter=n;var a=this.createMergeNode(s,[r,s+"_tint_1",s+"_tint_2"]);t.appendChild(a)}function SVGFillFilter(t,e,i,s){this.filterManager=e;var r=createNS("feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","sRGB"),r.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),r.setAttribute("result",s),t.appendChild(r),this.matrixFilter=r}function SVGStrokeEffect(t,e,i){this.initialized=!1,this.filterManager=e,this.elem=i,this.paths=[]}function SVGTritoneFilter(t,e,i,s){this.filterManager=e;var r=createNS("feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","linearRGB"),r.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),t.appendChild(r);var n=createNS("feComponentTransfer");n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("result",s),this.matrixFilter=n;var a=createNS("feFuncR");a.setAttribute("type","table"),n.appendChild(a),this.feFuncR=a;var o=createNS("feFuncG");o.setAttribute("type","table"),n.appendChild(o),this.feFuncG=o;var h=createNS("feFuncB");h.setAttribute("type","table"),n.appendChild(h),this.feFuncB=h,t.appendChild(n)}function SVGProLevelsFilter(t,e,i,s){this.filterManager=e;var r=this.filterManager.effectElements,n=createNS("feComponentTransfer");(r[10].p.k||0!==r[10].p.v||r[11].p.k||1!==r[11].p.v||r[12].p.k||1!==r[12].p.v||r[13].p.k||0!==r[13].p.v||r[14].p.k||1!==r[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",n)),(r[17].p.k||0!==r[17].p.v||r[18].p.k||1!==r[18].p.v||r[19].p.k||1!==r[19].p.v||r[20].p.k||0!==r[20].p.v||r[21].p.k||1!==r[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",n)),(r[24].p.k||0!==r[24].p.v||r[25].p.k||1!==r[25].p.v||r[26].p.k||1!==r[26].p.v||r[27].p.k||0!==r[27].p.v||r[28].p.k||1!==r[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",n)),(r[31].p.k||0!==r[31].p.v||r[32].p.k||1!==r[32].p.v||r[33].p.k||1!==r[33].p.v||r[34].p.k||0!==r[34].p.v||r[35].p.k||1!==r[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",n)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(n.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(n)),(r[3].p.k||0!==r[3].p.v||r[4].p.k||1!==r[4].p.v||r[5].p.k||1!==r[5].p.v||r[6].p.k||0!==r[6].p.v||r[7].p.k||1!==r[7].p.v)&&((n=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("result",s),t.appendChild(n),this.feFuncRComposed=this.createFeFunc("feFuncR",n),this.feFuncGComposed=this.createFeFunc("feFuncG",n),this.feFuncBComposed=this.createFeFunc("feFuncB",n))}function SVGDropShadowEffect(t,e,i,s,r){var n=e.container.globalData.renderConfig.filterSize,a=e.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=e;var o=createNS("feGaussianBlur");o.setAttribute("in","SourceAlpha"),o.setAttribute("result",s+"_drop_shadow_1"),o.setAttribute("stdDeviation","0"),this.feGaussianBlur=o,t.appendChild(o);var h=createNS("feOffset");h.setAttribute("dx","25"),h.setAttribute("dy","0"),h.setAttribute("in",s+"_drop_shadow_1"),h.setAttribute("result",s+"_drop_shadow_2"),this.feOffset=h,t.appendChild(h);var l=createNS("feFlood");l.setAttribute("flood-color","#00ff00"),l.setAttribute("flood-opacity","1"),l.setAttribute("result",s+"_drop_shadow_3"),this.feFlood=l,t.appendChild(l);var p=createNS("feComposite");p.setAttribute("in",s+"_drop_shadow_3"),p.setAttribute("in2",s+"_drop_shadow_2"),p.setAttribute("operator","in"),p.setAttribute("result",s+"_drop_shadow_4"),t.appendChild(p);var f=this.createMergeNode(s,[s+"_drop_shadow_4",r]);t.appendChild(f)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,s=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+s+" 0"),this.matrixFilter.setAttribute("values",i[0]-e[0]+" 0 0 0 "+e[0]+" "+(i[1]-e[1])+" 0 0 0 "+e[1]+" "+(i[2]-e[2])+" 0 0 0 "+e[2]+" 0 0 0 1 0")}},SVGFillFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[2].p.v,i=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+e[0]+" 0 0 0 0 "+e[1]+" 0 0 0 0 "+e[2]+" 0 0 0 "+i+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var t,e,i,s,r=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(s=this.elem.maskManager.masksProperties.length,i=0):s=(i=this.filterManager.effectElements[0].p.v-1)+1,(e=createNS("g")).setAttribute("fill","none"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-dashoffset",1);i<s;i+=1)t=createNS("path"),e.appendChild(t),this.paths.push({p:t,m:i});if(3===this.filterManager.effectElements[10].p.v){var n=createNS("mask"),a=createElementID();n.setAttribute("id",a),n.setAttribute("mask-type","alpha"),n.appendChild(e),this.elem.globalData.defs.appendChild(n);var o=createNS("g");for(o.setAttribute("mask","url("+getLocationHref()+"#"+a+")");r[0];)o.appendChild(r[0]);this.elem.layerElement.appendChild(o),this.masker=n,e.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(r=this.elem.layerElement.children||this.elem.layerElement.childNodes;r.length;)this.elem.layerElement.removeChild(r[0]);this.elem.layerElement.appendChild(e),this.elem.layerElement.removeAttribute("mask"),e.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=e},SVGStrokeEffect.prototype.renderFrame=function(t){this.initialized||this.initialize();var e=this.paths.length;for(i=0;i<e;i+=1)if(-1!==this.paths[i].m&&(s=this.elem.maskManager.viewData[this.paths[i].m],r=this.paths[i].p,(t||this.filterManager._mdf||s.prop._mdf)&&r.setAttribute("d",s.lastPath),t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||s.prop._mdf)){if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var i,s,r,n,a,o=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),h=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),l=r.getTotalLength();n="0 0 0 "+l*o+" ";var p=Math.floor(l*(h-o)/(1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01));for(a=0;a<p;a+=1)n+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";n+="0 "+10*l+" 0 0"}else n="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;r.setAttribute("stroke-dasharray",n)}if((t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(t||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(t||this.filterManager.effectElements[3].p._mdf)){var f=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*f[0])+","+bmFloor(255*f[1])+","+bmFloor(255*f[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,s=this.filterManager.effectElements[2].p.v,r=s[0]+" "+i[0]+" "+e[0],n=s[1]+" "+i[1]+" "+e[1],a=s[2]+" "+i[2]+" "+e[2];this.feFuncR.setAttribute("tableValues",r),this.feFuncG.setAttribute("tableValues",n),this.feFuncB.setAttribute("tableValues",a)}},SVGProLevelsFilter.prototype.createFeFunc=function(t,e){var i=createNS(t);return i.setAttribute("type","table"),e.appendChild(i),i},SVGProLevelsFilter.prototype.getTableValue=function(t,e,i,s,r){for(var n,a,o=0,h=256,l=Math.min(t,e),p=Math.max(t,e),f=Array.call(null,{length:256}),c=0,u=r-s,m=e-t;o<=256;)a=(n=o/256)<=l?m<0?r:s:n>=p?m<0?s:r:s+u*Math.pow((n-t)/m,1/i),f[c]=a,c+=1,o+=256/(h-1);return f.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,s=(this.filterManager.effectElements[2].p.v-90)*degToRads,r=i*Math.cos(s),n=i*Math.sin(s);this.feOffset.setAttribute("dx",r),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,s){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","300%"),t.setAttribute("height","300%"),this.filterManager=e;var r=createNS("feGaussianBlur");r.setAttribute("result",s),t.appendChild(r),this.feGaussianBlur=r}function TransformEffect(){}function SVGTransformEffect(t,e){this.init(e)}function CVTransformEffect(t){this.init(t)}return SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,i=_svgMatteSymbols.length;e<i;){if(_svgMatteSymbols[e]===t)return _svgMatteSymbols[e];e+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(t,e){var i,s=t.layerElement.parentNode;if(s){for(var r=s.children,n=0,a=r.length;n<a&&r[n]!==t.layerElement;)n+=1;n<=a-2&&(i=r[n+1]);var o=createNS("use");o.setAttribute("href","#"+e),i?s.insertBefore(o,i):s.appendChild(o)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,e){if(!this.findSymbol(e)){var i=createElementID(),s=createNS("mask");s.setAttribute("id",e.layerId),s.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(e);var r=t.globalData.defs;r.appendChild(s);var n=createNS("symbol");n.setAttribute("id",i),this.replaceInParent(e,i),n.appendChild(e.layerElement),r.appendChild(n);var a=createNS("use");a.setAttribute("href","#"+i),s.appendChild(a),e.data.hd=!1,e.show()}t.setMatte(e.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,e=this.elem.comp.elements,i=0,s=e.length;i<s;)e[i]&&e[i].data.ind===t&&this.setElementAsMask(this.elem,e[i]),i+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=.3,i=this.filterManager.effectElements[0].p.v*e,s=this.filterManager.effectElements[1].p.v,r=3==s?0:i,n=2==s?0:i;this.feGaussianBlur.setAttribute("stdDeviation",r+" "+n);var a=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",a)}},TransformEffect.prototype.init=function(t){this.effectsManager=t,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(t){if(this._opMdf=!1,this._mdf=!1,t||this.effectsManager._mdf){var e=this.effectsManager.effectElements,i=e[0].p.v,s=e[1].p.v,r=1===e[2].p.v,n=e[3].p.v,a=r?n:e[4].p.v,o=e[5].p.v,h=e[6].p.v,l=e[7].p.v;this.matrix.reset(),this.matrix.translate(-i[0],-i[1],i[2]),this.matrix.scale(.01*a,.01*n,1),this.matrix.rotate(-l*degToRads),this.matrix.skewFromAxis(-o*degToRads,(h+90)*degToRads),this.matrix.translate(s[0],s[1],0),this._mdf=!0,this.opacity!==e[8].p.v&&(this.opacity=e[8].p.v,this._opMdf=!0)}},extendPrototype([TransformEffect],SVGTransformEffect),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,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie})}(lottie$1,lottie$1.exports)),lottie$1.exports}var lottieExports=requireLottie(),Lottie=getDefaultExportFromCjs(lottieExports);let updateOnConnected=Symbol("UPDATE_ON_CONNECTED");isServer$1()&&(global.HTMLElement=class{});class PropertyCallbackElement extends HTMLElement{constructor(){super(),updateOnConnected in this&&(this[updateOnConnected]=[]);let{observedProperties:t=[]}=this.constructor,{length:e}=t;for(let i=0;i<e;i++){let e=this[t[i]],s=Symbol(t[i]);this[s]=e,Object.defineProperty(this,t[i],{get(){return this[s]},set(e){let r=this[s];this[s]=e,this.propertyChangedCallback(t[i],r,e)}}),void 0!==e&&updateOnConnected in this&&Array.isArray(this[updateOnConnected])&&this[updateOnConnected].push(t[i])}}async connectedCallback(){let t=[];updateOnConnected in this&&Array.isArray(this[updateOnConnected])&&(t=this[updateOnConnected]);let{length:e}=t;for(let i=0;i<e;i++)"propertyChangedCallback"in this&&"function"==typeof this.propertyChangedCallback&&t[i]in this&&this.propertyChangedCallback(t[i],void 0,this[t[i]])}propertyChangedCallback(t,e,i){throw Error(`${this.constructor.name}: Method propertyChangedCallback is not implemented`)}}var ObjectFit=function(t){return t.Contain="contain",t.Cover="cover",t.Fill="fill",t.None="none",t.ScaleDown="scale-down",t}({}),PlayerState=function(t){return t.Completed="completed",t.Destroyed="destroyed",t.Error="error",t.Frozen="frozen",t.Loading="loading",t.Paused="paused",t.Playing="playing",t.Stopped="stopped",t}({}),PlayMode=function(t){return t.Bounce="bounce",t.Normal="normal",t}({}),PlayerEvents=function(t){return t.Complete="complete",t.Destroyed="destroyed",t.Error="error",t.Frame="frame",t.Freeze="freeze",t.Load="load",t.Loop="loop",t.Next="next",t.Pause="pause",t.Play="play",t.Previous="previous",t.Ready="ready",t.Rendered="rendered",t.Stop="stop",t}({}),PreserveAspectRatio=function(t){return t.Contain="xMidYMid meet",t.Cover="xMidYMid slice",t.Initial="none",t.None="xMinYMin slice",t}({}),RendererType=function(t){return t.Canvas="canvas",t.HTML="html",t.SVG="svg",t}({}),css_248z="* {\n box-sizing: border-box;\n}\n\n:host {\n --lottie-player-toolbar-height: 35px;\n --lottie-player-toolbar-background-color: #fff;\n --lottie-player-toolbar-icon-color: #000;\n --lottie-player-toolbar-icon-hover-color: #000;\n --lottie-player-toolbar-icon-active-color: #4285f4;\n --lottie-player-seeker-track-color: rgb(0 0 0 / 20%);\n --lottie-player-seeker-thumb-color: #4285f4;\n --lottie-player-seeker-display: block;\n\n width: 100%;\n height: 100%;\n\n &:not([hidden]) {\n display: block;\n }\n\n .main {\n display: flex;\n flex-direction: column;\n height: 100%;\n width: 100%;\n margin: 0;\n padding: 0;\n }\n\n .animation {\n width: 100%;\n height: 100%;\n display: flex;\n margin: 0;\n padding: 0;\n }\n\n [data-controls='true'] .animation {\n height: calc(100% - 35px);\n }\n\n .animation-container {\n position: relative;\n }\n\n .popover {\n position: absolute;\n right: 5px;\n bottom: 40px;\n background-color: var(--lottie-player-toolbar-background-color);\n border-radius: 5px;\n padding: 10px 15px;\n border: solid 2px var(--lottie-player-toolbar-icon-color);\n animation: fade-in 0.2s ease-in-out;\n\n &::before {\n content: '';\n right: 10px;\n border: 7px solid transparent;\n margin-right: -7px;\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n top: 100%;\n border-top-color: var(--lottie-player-toolbar-icon-color);\n }\n }\n\n .error {\n display: flex;\n margin: auto;\n justify-content: center;\n height: 100%;\n align-items: center;\n\n & svg {\n width: 100%;\n height: auto;\n }\n }\n\n .toolbar {\n display: flex;\n place-items: center center;\n background: var(--lottie-player-toolbar-background-color);\n margin: 0;\n height: 35px;\n padding: 5px;\n border-radius: 5px;\n gap: 5px;\n\n &.has-error {\n pointer-events: none;\n opacity: 0.5;\n }\n\n & button {\n cursor: pointer;\n fill: var(--lottie-player-toolbar-icon-color);\n color: var(--lottie-player-toolbar-icon-color);\n background: none;\n border: 0;\n padding: 0;\n outline: 0;\n height: 100%;\n margin: 0;\n align-items: center;\n gap: 5px;\n opacity: 0.9;\n\n &:not([hidden]) {\n display: flex;\n }\n\n &:hover {\n opacity: 1;\n }\n\n &[data-active='true'] {\n opacity: 1;\n fill: var(--lottie-player-toolbar-icon-active-color);\n }\n\n &:disabled {\n opacity: 0.5;\n }\n\n &:focus {\n outline: 0;\n }\n\n & svg {\n pointer-events: none;\n\n & > * {\n fill: inherit;\n }\n }\n\n &.disabled svg {\n display: none;\n }\n }\n }\n\n .progress-container {\n position: relative;\n width: 100%;\n\n &.simple {\n margin-right: 12px;\n }\n }\n\n .seeker {\n appearance: none;\n outline: none;\n width: 100%;\n height: 20px;\n border-radius: 3px;\n border: 0;\n cursor: pointer;\n background-color: transparent;\n\n display: var(--lottie-player-seeker-display);\n color: var(--lottie-player-seeker-thumb-color);\n margin: 0;\n padding: 7.5px 0;\n position: relative;\n z-index: 1;\n\n &::-webkit-slider-runnable-track,\n &::-webkit-slider-thumb {\n appearance: none;\n outline: none;\n }\n\n &::-webkit-slider-thumb {\n height: 15px;\n width: 15px;\n border-radius: 50%;\n border: 0;\n background-color: var(--lottie-player-seeker-thumb-color);\n cursor: pointer;\n -webkit-transition: transform 0.2s ease-in-out;\n transition: transform 0.2s ease-in-out;\n transform: scale(0);\n }\n\n &:hover::-webkit-slider-thumb,\n &:focus::-webkit-slider-thumb {\n transform: scale(1);\n }\n\n &::-moz-range-progress {\n background-color: var(--lottie-player-seeker-thumb-color);\n height: 5px;\n border-radius: 3px;\n }\n\n &::-moz-range-thumb {\n height: 15px;\n width: 15px;\n border-radius: 50%;\n background-color: var(--lottie-player-seeker-thumb-color);\n border: 0;\n cursor: pointer;\n -moz-transition: transform 0.2s ease-in-out;\n transition: transform 0.2s ease-in-out;\n transform: scale(0);\n }\n\n &:hover::-moz-range-thumb,\n &:focus::-moz-range-thumb {\n transform: scale(1);\n }\n\n &::-ms-track {\n width: 100%;\n height: 5px;\n cursor: pointer;\n background: transparent;\n border-color: transparent;\n color: transparent;\n }\n\n &::-ms-fill-upper {\n background: var(--lottie-player-seeker-track-color);\n border-radius: 3px;\n }\n\n &::-ms-fill-lower {\n background-color: var(--lottie-player-seeker-thumb-color);\n border-radius: 3px;\n }\n\n &::-ms-thumb {\n border: 0;\n height: 15px;\n width: 15px;\n border-radius: 50%;\n background: var(--lottie-player-seeker-thumb-color);\n cursor: pointer;\n -ms-transition: transform 0.2s ease-in-out;\n transition: transform 0.2s ease-in-out;\n transform: scale(0);\n }\n\n &:hover::-ms-thumb {\n transform: scale(1);\n }\n\n &:focus {\n &::-ms-thumb {\n transform: scale(1);\n }\n\n &::-ms-fill-lower,\n &::-ms-fill-upper {\n background: var(--lottie-player-seeker-track-color);\n }\n }\n }\n\n & progress {\n appearance: none;\n outline: none;\n position: absolute;\n width: 100%;\n height: 5px;\n border-radius: 3px;\n border: 0;\n top: 0;\n left: 0;\n margin: 7.5px 0;\n background-color: var(--lottie-player-seeker-track-color);\n pointer-events: none;\n\n &::-webkit-progress-inner-element {\n border-radius: 3px;\n overflow: hidden;\n }\n\n &::-webkit-slider-runnable-track {\n background-color: transparent;\n }\n\n &::-webkit-progress-value {\n background-color: var(--lottie-player-seeker-thumb-color);\n }\n }\n\n & *::-moz-progress-bar {\n background-color: var(--lottie-player-seeker-thumb-color);\n }\n}\n\n@keyframes fade-in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@media (prefers-color-scheme: dark) {\n :host {\n --lottie-player-toolbar-background-color: #000;\n --lottie-player-toolbar-icon-color: #fff;\n --lottie-player-toolbar-icon-hover-color: #fff;\n --lottie-player-seeker-track-color: rgb(255 255 255 / 60%);\n }\n}\n";function renderControls(){if(!this.shadow)throw Error("No Shadow Element");let t=this.shadow.querySelector("slot[name=controls]");if(!t)return;if(!this.controls){t.innerHTML="";return}t.innerHTML=`<div class="lottie-controls toolbar ${this.playerState===PlayerState.Error?"has-error":""}" aria-label="Lottie Animation controls"><button class="togglePlay" data-active="false" aria-label="Toggle Play/Pause"><svg width="24" height="24" aria-hidden="true" focusable="false"><path d="M8.016 5.016L18.985 12 8.016 18.984V5.015z"/></svg></button> <button class="stop" data-active="true" aria-label="Stop"><svg width="24" height="24" aria-hidden="true" focusable="false"><path d="M6 6h12v12H6V6z"/></svg></button> <button class="prev" aria-label="Previous animation" hidden><svg width="24" height="24" aria-hidden="true" focusable="false"><path d="M17.9 18.2 8.1 12l9.8-6.2v12.4zm-10.3 0H6.1V5.8h1.5v12.4z"/></svg></button> <button class="next" aria-label="Next animation" hidden><svg width="24" height="24" aria-hidden="true" focusable="false"><path d="m6.1 5.8 9.8 6.2-9.8 6.2V5.8zM16.4 5.8h1.5v12.4h-1.5z"/></svg></button><form class="progress-container${this.simple?" simple":""}"><input class="seeker" type="range" min="0" max="100" step="1" value="${this._seeker.toString()}" aria-valuemin="0" aria-valuemax="100" role="slider" aria-valuenow="${this._seeker.toString()}" tabindex="0" aria-label="Slider for search"><progress max="100" value="${this._seeker}"></progress></form>${this.simple?"":`<button class="toggleLoop" data-active="${this.loop}" tabindex="0" aria-label="Toggle loop"><svg width="24" height="24" aria-hidden="true" focusable="false"><path d="M17.016 17.016v-4.031h1.969v6h-12v3l-3.984-3.984 3.984-3.984v3h10.031zM6.984 6.984v4.031H5.015v-6h12v-3l3.984 3.984-3.984 3.984v-3H6.984z"/></svg></button> <button class="toggleBoomerang" data-active="${this.mode===PlayMode.Bounce}" aria-label="Toggle boomerang" tabindex="0"><svg width="24" height="24" aria-hidden="true" focusable="false"><path d="m11.8 13.2-.3.3c-.5.5-1.1 1.1-1.7 1.5-.5.4-1 .6-1.5.8-.5.2-1.1.3-1.6.3s-1-.1-1.5-.3c-.6-.2-1-.5-1.4-1-.5-.6-.8-1.2-.9-1.9-.2-.9-.1-1.8.3-2.6.3-.7.8-1.2 1.3-1.6.3-.2.6-.4 1-.5.2-.2.5-.2.8-.3.3 0 .7-.1 1 0 .3 0 .6.1.9.2.9.3 1.7.9 2.4 1.5.4.4.8.7 1.1 1.1l.1.1.4-.4c.6-.6 1.2-1.2 1.9-1.6.5-.3 1-.6 1.5-.7.4-.1.7-.2 1-.2h.9c1 .1 1.9.5 2.6 1.4.4.5.7 1.1.8 1.8.2.9.1 1.7-.2 2.5-.4.9-1 1.5-1.8 2-.4.2-.7.4-1.1.4-.4.1-.8.1-1.2.1-.5 0-.9-.1-1.3-.3-.8-.3-1.5-.9-2.1-1.5-.4-.4-.8-.7-1.1-1.1h-.3zm-1.1-1.1c-.1-.1-.1-.1 0 0-.3-.3-.6-.6-.8-.9-.5-.5-1-.9-1.6-1.2-.4-.3-.8-.4-1.3-.4-.4 0-.8 0-1.1.2-.5.2-.9.6-1.1 1-.2.3-.3.7-.3 1.1 0 .3 0 .6.1.9.1.5.4.9.8 1.2.5.4 1.1.5 1.7.5.5 0 1-.2 1.5-.5.6-.4 1.1-.8 1.6-1.3.1-.3.3-.5.5-.6zM13 12c.5.5 1 1 1.5 1.4.5.5 1.1.9 1.9 1 .4.1.8 0 1.2-.1.3-.1.6-.3.9-.5.4-.4.7-.9.8-1.4.1-.5 0-.9-.1-1.4-.3-.8-.8-1.2-1.7-1.4-.4-.1-.8-.1-1.2 0-.5.1-1 .4-1.4.7-.5.4-1 .8-1.4 1.2-.2.2-.4.3-.5.5z"/></svg></button> <button class="toggleSettings" aria-label="Settings" aria-haspopup="true" aria-expanded="${!!this._isSettingsOpen}" aria-controls="${this._identifier}-settings"><svg width="24" height="24" aria-hidden="true" focusable="false"><circle cx="12" cy="5.4" r="2.5"/><circle cx="12" cy="12" r="2.5"/><circle cx="12" cy="18.6" r="2.5"/></svg></button><div id="${this._identifier}-settings" class="popover" hidden><button class="convert" aria-label="Convert JSON animation to dotLottie format" hidden><svg width="24" height="24" aria-hidden="true" focusable="false"><path d="M17.016 17.016v-4.031h1.969v6h-12v3l-3.984-3.984 3.984-3.984v3h10.031zM6.984 6.984v4.031H5.015v-6h12v-3l3.984 3.984-3.984 3.984v-3H6.984z"/></svg> Convert to dotLottie</button> <button class="snapshot" aria-label="Download still image"><svg width="24" height="24" aria-hidden="true" focusable="false"><path d="M16.8 10.8 12 15.6l-4.8-4.8h3V3.6h3.6v7.2h3zM12 15.6H3v4.8h18v-4.8h-9zm7.8 2.4h-2.4v-1.2h2.4V18z"/></svg> Download still image</button></div>`}</div>`;let e=this.shadow.querySelector(".togglePlay");e instanceof HTMLButtonElement&&(e.onclick=this.togglePlay);let i=this.shadow.querySelector(".stop");i instanceof HTMLButtonElement&&(i.onclick=this.stop);let s=this.shadow.querySelector(".prev");s instanceof HTMLButtonElement&&(s.onclick=this.prev);let r=this.shadow.querySelector(".next");r instanceof HTMLButtonElement&&(r.onclick=this.next);let n=this.shadow.querySelector(".seeker");if(n instanceof HTMLInputElement&&(n.onchange=this._handleSeekChange,n.onmousedown=this._freeze),!this.simple){let t=this.shadow.querySelector(".toggleLoop");t instanceof HTMLButtonElement&&(t.onclick=this.toggleLoop);let e=this.shadow.querySelector(".toggleBoomerang");e instanceof HTMLButtonElement&&(e.onclick=this.toggleBoomerang);let i=this.shadow.querySelector(".convert");i instanceof HTMLButtonElement&&(i.onclick=this.convert);let s=this.shadow.querySelector(".snapshot");s instanceof HTMLButtonElement&&(s.onclick=()=>this.snapshot(!0));let r=this.shadow.querySelector(".toggleSettings");r instanceof HTMLButtonElement&&(r.onclick=this._handleSettingsClick,r.onblur=this._handleBlur)}}async function renderPlayer(){if(!this.shadow)throw Error("No Shadow Element");this.template.innerHTML=`<div class="animation-container main" data-controls="${this.controls??!1}" lang="${this.description?document.documentElement.lang:"en"}" aria-label="${this.description??"Lottie animation"}" data-loaded="${this._playerState.loaded}"><figure class="animation" style="background:${this.background}">${this.playerState===PlayerState.Error?`<div class="error"><svg preserveAspectRatio="xMidYMid slice" xmlns="http://www.w3.org/2000/svg" xml:space="preserve" width="1920" height="1080" viewBox="0 0 1920 1080"><path fill="#fff" d="M0 0h1920v1080H0z"/><path fill="#3a6d8b" d="M1190.2 531 1007 212.4c-22-38.2-77.2-38-98.8.5L729.5 531.3c-21.3 37.9 6.1 84.6 49.5 84.6l361.9.3c43.7 0 71.1-47.3 49.3-85.2zM937.3 288.7c.2-7.5 3.3-23.9 23.2-23.9 16.3 0 23 16.1 23 23.5 0 55.3-10.7 197.2-12.2 214.5-.1 1-.9 1.7-1.9 1.7h-18.3c-1 0-1.8-.7-1.9-1.7-1.4-17.5-13.4-162.9-11.9-214.1zm24.2 283.8c-13.1 0-23.7-10.6-23.7-23.7s10.6-23.7 23.7-23.7 23.7 10.6 23.7 23.7-10.6 23.7-23.7 23.7zM722.1 644h112.6v34.4h-70.4V698h58.8v31.7h-58.8v22.6h72.4v36.2H722.1V644zm162 57.1h.6c8.3-12.9 18.2-17.8 31.3-17.8 3 0 5.1.4 6.3 1v32.6h-.8c-22.4-3.8-35.6 6.3-35.6 29.5v42.3h-38.2V685.5h36.4v15.6zm78.9 0h.6c8.3-12.9 18.2-17.8 31.3-17.8 3 0 5.1.4 6.3 1v32.6h-.8c-22.4-3.8-35.6 6.3-35.6 29.5v42.3h-38.2V685.5H963v15.6zm39.5 36.2c0-31.3 22.2-54.8 56.6-54.8 34.4 0 56.2 23.5 56.2 54.8s-21.8 54.6-56.2 54.6c-34.4-.1-56.6-23.3-56.6-54.6zm74 0c0-17.4-6.1-29.1-17.8-29.1-11.7 0-17.4 11.7-17.4 29.1 0 17.4 5.7 29.1 17.4 29.1s17.8-11.8 17.8-29.1zm83.1-36.2h.6c8.3-12.9 18.2-17.8 31.3-17.8 3 0 5.1.4 6.3 1v32.6h-.8c-22.4-3.8-35.6 6.3-35.6 29.5v42.3h-38.2V685.5h36.4v15.6z"/><path fill="none" d="M718.9 807.7h645v285.4h-645z"/><text fill="#3a6d8b" style="text-align:center;position:absolute;left:100%;font-size:47px;font-family:system-ui,-apple-system,BlinkMacSystemFont,'.SFNSText-Regular',sans-serif" x="50%" y="848.017" text-anchor="middle">${this._errorMessage}</text></svg></div>`:""}</figure><slot name="controls"></slot></div>`,this.shadow.adoptedStyleSheets=[await DotLottiePlayer.styles()],this.shadow.appendChild(this.template.content.cloneNode(!0))}var ch2={},wk=function(t,e,i,s,r){var n=new Worker(ch2[e]||(ch2[e]=URL.createObjectURL(new Blob([t+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return n.onmessage=function(t){var e=t.data,i=e.$e$;if(i){var s=Error(i[0]);s.code=i[1],s.stack=i[2],r(s,null)}else r(null,e)},n.postMessage(i,s),n},u8=Uint8Array,u16=Uint16Array,i32=Int32Array,fleb=new u8([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),fdeb=new u8([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),clim=new u8([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),freb=function(t,e){for(var i=new u16(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];for(var r=new i32(i[30]),s=1;s<30;++s)for(var n=i[s];n<i[s+1];++n)r[n]=n-i[s]<<5|s;return{b:i,r:r}},_a=freb(fleb,2),fl=_a.b,revfl=_a.r;fl[28]=258,revfl[258]=28;for(var _b=freb(fdeb,0),fd=_b.b,revfd=_b.r,rev=new u16(32768),i=0;i<32768;++i){var x=(43690&i)>>1|(21845&i)<<1;x=(61680&(x=(52428&x)>>2|(13107&x)<<2))>>4|(3855&x)<<4,rev[i]=((65280&x)>>8|(255&x)<<8)>>1}for(var hMap=function(t,e,i){for(var s,r=t.length,n=0,a=new u16(e);n<r;++n)t[n]&&++a[t[n]-1];var o=new u16(e);for(n=1;n<e;++n)o[n]=o[n-1]+a[n-1]<<1;if(i){s=new u16(1<<e);var h=15-e;for(n=0;n<r;++n)if(t[n])for(var l=n<<4|t[n],p=e-t[n],f=o[t[n]-1]++<<p,c=f|(1<<p)-1;f<=c;++f)s[rev[f]>>h]=l}else for(n=0,s=new u16(r);n<r;++n)t[n]&&(s[n]=rev[o[t[n]-1]++]>>15-t[n]);return s},flt=new u8(288),i=0;i<144;++i)flt[i]=8;for(var i=144;i<256;++i)flt[i]=9;for(var i=256;i<280;++i)flt[i]=7;for(var i=280;i<288;++i)flt[i]=8;for(var fdt=new u8(32),i=0;i<32;++i)fdt[i]=5;var flm=hMap(flt,9,0),flrm=hMap(flt,9,1),fdm=hMap(fdt,5,0),fdrm=hMap(fdt,5,1),max=function(t){for(var e=t[0],i=1;i<t.length;++i)t[i]>e&&(e=t[i]);return e},bits=function(t,e,i){var s=e/8|0;return(t[s]|t[s+1]<<8)>>(7&e)&i},bits16=function(t,e){var i=e/8|0;return(t[i]|t[i+1]<<8|t[i+2]<<16)>>(7&e)},shft=function(t){return(t+7)/8|0},slc=function(t,e,i){return(null==e||e<0)&&(e=0),(null==i||i>t.length)&&(i=t.length),new u8(t.subarray(e,i))},ec=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],err=function(t,e,i){var s=Error(e||ec[t]);if(s.code=t,Error.captureStackTrace&&Error.captureStackTrace(s,err),!i)throw s;return s},inflt=function(t,e,i,s){var r=t.length,n=s?s.length:0;if(!r||e.f&&!e.l)return i||new u8(0);var a=!i,o=a||2!=e.i,h=e.i;a&&(i=new u8(3*r));var l=function(t){var e=i.length;if(t>e){var s=new u8(Math.max(2*e,t));s.set(i),i=s}},p=e.f||0,f=e.p||0,c=e.b||0,u=e.l,m=e.d,d=e.m,g=e.n,y=8*r;do{if(!u){p=bits(t,f,1);var v=bits(t,f+1,3);if(f+=3,v)if(1==v)u=flrm,m=fdrm,d=9,g=5;else if(2==v){var b=bits(t,f,31)+257,_=bits(t,f+10,15)+4,x=b+bits(t,f+5,31)+1;f+=14;for(var k=new u8(x),w=new u8(19),S=0;S<_;++S)w[clim[S]]=bits(t,f+3*S,7);f+=3*_;for(var C=max(w),A=(1<<C)-1,P=hMap(w,C,1),S=0;S<x;){var M=P[bits(t,f,A)];f+=15&M;var E=M>>4;if(E<16)k[S++]=E;else{var D=0,T=0;for(16==E?(T=3+bits(t,f,3),f+=2,D=k[S-1]):17==E?(T=3+bits(t,f,7),f+=3):18==E&&(T=11+bits(t,f,127),f+=7);T--;)k[S++]=D}}var F=k.subarray(0,b),I=k.subarray(b);d=max(F),g=max(I),u=hMap(F,d,1),m=hMap(I,g,1)}else err(1);else{var E=shft(f)+4,L=t[E-4]|t[E-3]<<8,B=E+L;if(B>r){h&&err(0);break}o&&l(c+L),i.set(t.subarray(E,B),c),e.b=c+=L,e.p=f=8*B,e.f=p;continue}if(f>y){h&&err(0);break}}o&&l(c+131072);for(var z=(1<<d)-1,O=(1<<g)-1,R=f;;R=f){var D=u[bits16(t,f)&z],V=D>>4;if((f+=15&D)>y){h&&err(0);break}if(D||err(2),V<256)i[c++]=V;else if(256==V){R=f,u=null;break}else{var N=V-254;if(V>264){var S=V-257,j=fleb[S];N=bits(t,f,(1<<j)-1)+fl[S],f+=j}var G=m[bits16(t,f)&O],q=G>>4;G||err(3),f+=15&G;var I=fd[q];if(q>3){var j=fdeb[q];I+=bits16(t,f)&(1<<j)-1,f+=j}if(f>y){h&&err(0);break}o&&l(c+131072);var W=c+N;if(c<I){var H=n-I,Y=Math.min(I,W);for(H+c<0&&err(3);c<Y;++c)i[c]=s[H+c]}for(;c<W;++c)i[c]=i[c-I]}}e.l=u,e.p=R,e.b=c,e.f=p,u&&(p=1,e.m=d,e.d=m,e.n=g)}while(!p);return c!=i.length&&a?slc(i,0,c):i.subarray(0,c)},wbits=function(t,e,i){i<<=7&e;var s=e/8|0;t[s]|=i,t[s+1]|=i>>8},wbits16=function(t,e,i){i<<=7&e;var s=e/8|0;t[s]|=i,t[s+1]|=i>>8,t[s+2]|=i>>16},hTree=function(t,e){for(var i=[],s=0;s<t.length;++s)t[s]&&i.push({s:s,f:t[s]});var r=i.length,n=i.slice();if(!r)return{t:et,l:0};if(1==r){var a=new u8(i[0].s+1);return a[i[0].s]=1,{t:a,l:1}}i.sort(function(t,e){return t.f-e.f}),i.push({s:-1,f:25001});var o=i[0],h=i[1],l=0,p=1,f=2;for(i[0]={s:-1,f:o.f+h.f,l:o,r:h};p!=r-1;)o=i[i[l].f<i[f].f?l++:f++],h=i[l!=p&&i[l].f<i[f].f?l++:f++],i[p++]={s:-1,f:o.f+h.f,l:o,r:h};for(var c=n[0].s,s=1;s<r;++s)n[s].s>c&&(c=n[s].s);var u=new u16(c+1),m=ln(i[p-1],u,0);if(m>e){var s=0,d=0,g=m-e,y=1<<g;for(n.sort(function(t,e){return u[e.s]-u[t.s]||t.f-e.f});s<r;++s){var v=n[s].s;if(u[v]>e)d+=y-(1<<m-u[v]),u[v]=e;else break}for(d>>=g;d>0;){var b=n[s].s;u[b]<e?d-=1<<e-u[b]++-1:++s}for(;s>=0&&d;--s){var _=n[s].s;u[_]==e&&(--u[_],++d)}m=e}return{t:new u8(u),l:m}},ln=function(t,e,i){return -1==t.s?Math.max(ln(t.l,e,i+1),ln(t.r,e,i+1)):e[t.s]=i},lc=function(t){for(var e=t.length;e&&!t[--e];);for(var i=new u16(++e),s=0,r=t[0],n=1,a=function(t){i[s++]=t},o=1;o<=e;++o)if(t[o]==r&&o!=e)++n;else{if(!r&&n>2){for(;n>138;n-=138)a(32754);n>2&&(a(n>10?n-11<<5|28690:n-3<<5|12305),n=0)}else if(n>3){for(a(r),--n;n>6;n-=6)a(8304);n>2&&(a(n-3<<5|8208),n=0)}for(;n--;)a(r);n=1,r=t[o]}return{c:i.subarray(0,s),n:e}},clen=function(t,e){for(var i=0,s=0;s<e.length;++s)i+=t[s]*e[s];return i},wfblk=function(t,e,i){var s=i.length,r=shft(e+2);t[r]=255&s,t[r+1]=s>>8,t[r+2]=255^t[r],t[r+3]=255^t[r+1];for(var n=0;n<s;++n)t[r+n+4]=i[n];return(r+4+s)*8},wblk=function(t,e,i,s,r,n,a,o,h,l,p){wbits(e,p++,i),++r[256];for(var f,c,u,m,d=hTree(r,15),g=d.t,y=d.l,v=hTree(n,15),b=v.t,_=v.l,x=lc(g),k=x.c,w=x.n,S=lc(b),C=S.c,A=S.n,P=new u16(19),M=0;M<k.length;++M)++P[31&k[M]];for(var M=0;M<C.length;++M)++P[31&C[M]];for(var E=hTree(P,7),D=E.t,T=E.l,F=19;F>4&&!D[clim[F-1]];--F);var I=l+5<<3,L=clen(r,flt)+clen(n,fdt)+a,B=clen(r,g)+clen(n,b)+a+14+3*F+clen(P,D)+2*P[16]+3*P[17]+7*P[18];if(h>=0&&I<=L&&I<=B)return wfblk(e,p,t.subarray(h,h+l));if(wbits(e,p,1+(B<L)),p+=2,B<L){f=hMap(g,y,0),c=g,u=hMap(b,_,0),m=b;var z=hMap(D,T,0);wbits(e,p,w-257),wbits(e,p+5,A-1),wbits(e,p+10,F-4),p+=14;for(var M=0;M<F;++M)wbits(e,p+3*M,D[clim[M]]);p+=3*F;for(var O=[k,C],R=0;R<2;++R)for(var V=O[R],M=0;M<V.length;++M){var N=31&V[M];wbits(e,p,z[N]),p+=D[N],N>15&&(wbits(e,p,V[M]>>5&127),p+=V[M]>>12)}}else f=flm,c=flt,u=fdm,m=fdt;for(var M=0;M<o;++M){var j=s[M];if(j>255){var N=j>>18&31;wbits16(e,p,f[N+257]),p+=c[N+257],N>7&&(wbits(e,p,j>>23&31),p+=fleb[N]);var G=31&j;wbits16(e,p,u[G]),p+=m[G],G>3&&(wbits16(e,p,j>>5&8191),p+=fdeb[G])}else wbits16(e,p,f[j]),p+=c[j]}return wbits16(e,p,f[256]),p+c[256]},deo=new i32([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),et=new u8(0),dflt=function(t,e,i,s,r,n){var a=n.z||t.length,o=new u8(s+a+5*(1+Math.ceil(a/7e3))+r),h=o.subarray(s,o.length-r),l=n.l,p=7&(n.r||0);if(e){p&&(h[0]=n.r>>3);for(var f=deo[e-1],c=f>>13,u=8191&f,m=(1<<i)-1,d=n.p||new u16(32768),g=n.h||new u16(m+1),y=Math.ceil(i/3),v=2*y,b=function(e){return(t[e]^t[e+1]<<y^t[e+2]<<v)&m},_=new i32(25e3),x=new u16(288),k=new u16(32),w=0,S=0,C=n.i||0,A=0,P=n.w||0,M=0;C+2<a;++C){var E=b(C),D=32767&C,T=g[E];if(d[D]=T,g[E]=D,P<=C){var F=a-C;if((w>7e3||A>24576)&&(F>423||!l)){p=wblk(t,h,0,_,x,k,S,A,M,C-M,p),A=w=S=0,M=C;for(var I=0;I<286;++I)x[I]=0;for(var I=0;I<30;++I)k[I]=0}var L=2,B=0,z=u,O=D-T&32767;if(F>2&&E==b(C-O))for(var R=Math.min(c,F)-1,V=Math.min(32767,C),N=Math.min(258,F);O<=V&&--z&&D!=T;){if(t[C+L]==t[C+L-O]){for(var j=0;j<N&&t[C+j]==t[C+j-O];++j);if(j>L){if(L=j,B=O,j>R)break;for(var G=Math.min(O,j-2),q=0,I=0;I<G;++I){var W=C-O+I&32767,H=d[W],Y=W-H&32767;Y>q&&(q=Y,T=W)}}}T=d[D=T],O+=D-T&32767}if(B){_[A++]=0x10000000|revfl[L]<<18|revfd[B];var $=31&revfl[L],J=31&revfd[B];S+=fleb[$]+fdeb[J],++x[257+$],++k[J],P=C+L,++w}else _[A++]=t[C],++x[t[C]]}}for(C=Math.max(C,P);C<a;++C)_[A++]=t[C],++x[t[C]];p=wblk(t,h,l,_,x,k,S,A,M,C-M,p),l||(n.r=7&p|h[p/8|0]<<3,p-=7,n.h=g,n.p=d,n.i=C,n.w=P)}else{for(var C=n.w||0;C<a+l;C+=65535){var X=C+65535;X>=a&&(h[p/8|0]=l,X=a),p=wfblk(h,p+1,t.subarray(C,X))}n.i=a}return slc(o,0,s+shft(p)+r)},crct=function(){for(var t=new Int32Array(256),e=0;e<256;++e){for(var i=e,s=9;--s;)i=(1&i&&-0x12477ce0)^i>>>1;t[e]=i}return t}(),crc=function(){var t=-1;return{p:function(e){for(var i=t,s=0;s<e.length;++s)i=crct[255&i^e[s]]^i>>>8;t=i},d:function(){return~t}}},dopt=function(t,e,i,s,r){if(!r&&(r={l:1},e.dictionary)){var n=e.dictionary.subarray(-32768),a=new u8(n.length+t.length);a.set(n),a.set(t,n.length),t=a,r.w=n.length}return dflt(t,null==e.level?6:e.level,null==e.mem?r.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):20:12+e.mem,i,s,r)},mrg=function(t,e){var i={};for(var s in t)i[s]=t[s];for(var s in e)i[s]=e[s];return i},wcln=function(t,e,i){for(var s=t(),r=t.toString(),n=r.slice(r.indexOf("[")+1,r.lastIndexOf("]")).replace(/\s+/g,"").split(","),a=0;a<s.length;++a){var o=s[a],h=n[a];if("function"==typeof o){e+=";"+h+"=";var l=o.toString();if(o.prototype)if(-1!=l.indexOf("[native code]")){var p=l.indexOf(" ",8)+1;e+=l.slice(p,l.indexOf("(",p))}else for(var f in e+=l,o.prototype)e+=";"+h+".prototype."+f+"="+o.prototype[f].toString();else e+=l}else i[h]=o}return e},ch=[],cbfs=function(t){var e=[];for(var i in t)t[i].buffer&&e.push((t[i]=new t[i].constructor(t[i])).buffer);return e},wrkr=function(t,e,i,s){if(!ch[i]){for(var r="",n={},a=t.length-1,o=0;o<a;++o)r=wcln(t[o],r,n);ch[i]={c:wcln(t[a],r,n),e:n}}var h=mrg({},ch[i].e);return wk(ch[i].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+e.toString()+"}",i,h,cbfs(h),s)},bInflt=function(){return[u8,u16,i32,fleb,fdeb,clim,fl,fd,flrm,fdrm,rev,ec,hMap,max,bits,bits16,shft,slc,err,inflt,inflateSync,pbf,gopt]},bDflt=function(){return[u8,u16,i32,fleb,fdeb,clim,revfl,revfd,flm,flt,fdm,fdt,rev,deo,et,hMap,wbits,wbits16,hTree,ln,lc,clen,wfblk,wblk,shft,slc,dflt,dopt,deflateSync,pbf]},pbf=function(t){return postMessage(t,[t.buffer])},gopt=function(t){return t&&{out:t.size&&new u8(t.size),dictionary:t.dictionary}},cbify=function(t,e,i,s,r,n){var a=wrkr(i,s,r,function(t,e){a.terminate(),n(t,e)});return a.postMessage([t,e],e.consume?[t.buffer]:[]),function(){a.terminate()}},b2=function(t,e){return t[e]|t[e+1]<<8},b4=function(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0},b8=function(t,e){return b4(t,e)+0x100000000*b4(t,e+4)},wbytes=function(t,e,i){for(;i;++e)t[e]=i,i>>>=8};function deflate(t,e,i){return i||(i=e,e={}),"function"!=typeof i&&err(7),cbify(t,e,[bDflt],function(t){return pbf(deflateSync(t.data[0],t.data[1]))},0,i)}function deflateSync(t,e){return dopt(t,e||{},0,0)}function inflate(t,e,i){return i||(i=e,e={}),"function"!=typeof i&&err(7),cbify(t,e,[bInflt],function(t){return pbf(inflateSync(t.data[0],gopt(t.data[1])))},1,i)}function inflateSync(t,e){return inflt(t,{i:2},e&&e.out,e&&e.dictionary)}var fltn=function(t,e,i,s){for(var r in t){var n=t[r],a=e+r,o=s;Array.isArray(n)&&(o=mrg(s,n[1]),n=n[0]),n instanceof u8?i[a]=[n,o]:(i[a+="/"]=[new u8(0),o],fltn(n,a,i,s))}},te="undefined"!=typeof TextEncoder&&new TextEncoder,td="undefined"!=typeof TextDecoder&&new TextDecoder,tds=0;try{td.decode(et,{stream:!0}),tds=1}catch(e){}var dutf8=function(t){for(var e="",i=0;;){var s=t[i++],r=(s>127)+(s>223)+(s>239);if(i+r>t.length)return{s:e,r:slc(t,i-1)};r?3==r?e+=String.fromCharCode(55296|(s=((15&s)<<18|(63&t[i++])<<12|(63&t[i++])<<6|63&t[i++])-65536)>>10,56320|1023&s):1&r?e+=String.fromCharCode((31&s)<<6|63&t[i++]):e+=String.fromCharCode((15&s)<<12|(63&t[i++])<<6|63&t[i++]):e+=String.fromCharCode(s)}};function strToU8(t,e){if(e){for(var i=new u8(t.length),s=0;s<t.length;++s)i[s]=t.charCodeAt(s);return i}if(te)return te.encode(t);for(var r=t.length,n=new u8(t.length+(t.length>>1)),a=0,o=function(t){n[a++]=t},s=0;s<r;++s){if(a+5>n.length){var h=new u8(a+8+(r-s<<1));h.set(n),n=h}var l=t.charCodeAt(s);l<128||e?o(l):(l<2048?o(192|l>>6):(l>55295&&l<57344?(o(240|(l=65536+(1047552&l)|1023&t.charCodeAt(++s))>>18),o(128|l>>12&63)):o(224|l>>12),o(128|l>>6&63)),o(128|63&l))}return slc(n,0,a)}function strFromU8(t,e){if(e){for(var i="",s=0;s<t.length;s+=16384)i+=String.fromCharCode.apply(null,t.subarray(s,s+16384));return i}if(td)return td.decode(t);var r=dutf8(t),n=r.s,i=r.r;return i.length&&err(8),n}var slzh=function(t,e){return e+30+b2(t,e+26)+b2(t,e+28)},zh=function(t,e,i){var s=b2(t,e+28),r=strFromU8(t.subarray(e+46,e+46+s),!(2048&b2(t,e+8))),n=e+46+s,a=b4(t,e+20),o=i&&0xffffffff==a?z64e(t,n):[a,b4(t,e+24),b4(t,e+42)],h=o[0],l=o[1],p=o[2];return[b2(t,e+10),h,l,r,n+b2(t,e+30)+b2(t,e+32),p]},z64e=function(t,e){for(;1!=b2(t,e);e+=4+b2(t,e+2));return[b8(t,e+12),b8(t,e+4),b8(t,e+20)]},exfl=function(t){var e=0;if(t)for(var i in t){var s=t[i].length;s>65535&&err(9),e+=s+4}return e},wzh=function(t,e,i,s,r,n,a,o){var h=s.length,l=i.extra,p=o&&o.length,f=exfl(l);wbytes(t,e,null!=a?0x2014b50:0x4034b50),e+=4,null!=a&&(t[e++]=20,t[e++]=i.os),t[e]=20,e+=2,t[e++]=i.flag<<1|(n<0&&8),t[e++]=r&&8,t[e++]=255&i.compression,t[e++]=i.compression>>8;var c=new Date(null==i.mtime?Date.now():i.mtime),u=c.getFullYear()-1980;if((u<0||u>119)&&err(10),wbytes(t,e,u<<25|c.getMonth()+1<<21|c.getDate()<<16|c.getHours()<<11|c.getMinutes()<<5|c.getSeconds()>>1),e+=4,-1!=n&&(wbytes(t,e,i.crc),wbytes(t,e+4,n<0?-n-2:n),wbytes(t,e+8,i.size)),wbytes(t,e+12,h),wbytes(t,e+14,f),e+=16,null!=a&&(wbytes(t,e,p),wbytes(t,e+6,i.attrs),wbytes(t,e+10,a),e+=14),t.set(s,e),e+=h,f)for(var m in l){var d=l[m],g=d.length;wbytes(t,e,+m),wbytes(t,e+2,g),t.set(d,e+4),e+=4+g}return p&&(t.set(o,e),e+=p),e},wzf=function(t,e,i,s,r){wbytes(t,e,0x6054b50),wbytes(t,e+8,i),wbytes(t,e+10,i),wbytes(t,e+12,s),wbytes(t,e+16,r)};function zip(t,e,i){i||(i=e,e={}),"function"!=typeof i&&err(7);var s={};fltn(t,"",s,e);var r=Object.keys(s),n=r.length,a=0,o=0,h=n,l=Array(n),p=[],f=function(){for(var t=0;t<p.length;++t)p[t]()},c=function(t,e){mt(function(){i(t,e)})};mt(function(){c=i});var u=function(){var t=new u8(o+22),e=a,i=o-a;o=0;for(var s=0;s<h;++s){var r=l[s];try{var n=r.c.length;wzh(t,o,r,r.f,r.u,n);var p=30+r.f.length+exfl(r.extra),f=o+p;t.set(r.c,f),wzh(t,a,r,r.f,r.u,n,o,r.m),a+=16+p+(r.m?r.m.length:0),o=f+n}catch(t){return c(t,null)}}wzf(t,a,l.length,i,e),c(null,t)};n||u();for(var m=function(t){var e=r[t],i=s[e],h=i[0],m=i[1],d=crc(),g=h.length;d.p(h);var y=strToU8(e),v=y.length,b=m.comment,_=b&&strToU8(b),x=_&&_.length,k=exfl(m.extra),w=8*(0!=m.level),S=function(i,s){if(i)f(),c(i,null);else{var r=s.length;l[t]=mrg(m,{size:g,crc:d.d(),c:s,f:y,m:_,u:v!=e.length||_&&b.length!=x,compression:w}),a+=30+v+k+r,o+=76+2*(v+k)+(x||0)+r,--n||u()}};if(v>65535&&S(err(11,0,1),null),w)if(g<16e4)try{S(null,deflateSync(h,m))}catch(t){S(t,null)}else p.push(deflate(h,m,S));else S(null,h)},d=0;d<h;++d)m(d);return f}var mt="function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout?setTimeout:function(t){t()};function unzip$1(t,e,i){i||(i=e,e={}),"function"!=typeof i&&err(7);var s=[],r=function(){for(var t=0;t<s.length;++t)s[t]()},n={},a=function(t,e){mt(function(){i(t,e)})};mt(function(){a=i});for(var o=t.length-22;0x6054b50!=b4(t,o);--o)if(!o||t.length-o>65558)return a(err(13,0,1),null),r;var h=b2(t,o+8);if(h){var l=h,p=b4(t,o+16),f=0xffffffff==p||65535==l;if(f){var c=b4(t,o-12);(f=0x6064b50==b4(t,c))&&(l=h=b4(t,c+32),p=b4(t,c+48))}for(var u=e&&e.filter,m=function(e){var i=zh(t,p,f),o=i[0],l=i[1],c=i[2],m=i[3],d=i[4],g=slzh(t,i[5]);p=d;var y=function(t,e){t?(r(),a(t,null)):(e&&(n[m]=e),--h||a(null,n))};if(!u||u({name:m,size:l,originalSize:c,compression:o}))if(o)if(8==o){var v=t.subarray(g,g+l);if(c<524288||l>.8*c)try{y(null,inflateSync(v,{out:new u8(c)}))}catch(t){y(t,null)}else s.push(inflate(v,{size:c},y))}else y(err(14,"unknown compression type "+o,1),null);else y(null,slc(t,g,g+l));else y(null,null)},d=0;d<l;++d)m(d)}else a(null,{});return r}class CustomError extends Error{}let getManifest=t=>{let e=JSON.parse(strFromU8(t["manifest.json"],!1));if(!("animations"in e))throw Error("Manifest not found");if(0===e.animations.length)throw Error("No animations listed in manifest");return e},isServer=()=>!("undefined"!=typeof window&&window.document),hasExt=t=>{let e=t?.split("/").pop()?.lastIndexOf(".");return(e??0)>1&&t&&t.length-1>(e??0)},getExt=t=>{if("string"==typeof t&&t&&hasExt(t))return t.split(".").pop()?.toLowerCase()},unzip=async t=>{let e=new Uint8Array(await t.arrayBuffer());return await new Promise((t,i)=>{unzip$1(e,(e,s)=>{e&&i(e),t(s)})})},getArrayBuffer=async t=>await new Promise((e,i)=>{zip(t,{level:9},(t,s)=>t?void i(t):s.buffer instanceof ArrayBuffer?void e(s.buffer):void i(Error("Data is not transferable")))}),getMimeFromExt=t=>{switch(t){case"svg":case"svg+xml":return"image/svg+xml";case"jpg":case"jpeg":return"image/jpeg";case"png":case"gif":case"webp":case"avif":return`image/${t}`;case"mp3":case"mpeg":case"wav":return`audio/${t}`;default:return""}},isAudio=t=>!("h"in t)&&!("w"in t)&&"p"in t&&"e"in t&&"u"in t&&"id"in t,isImage=t=>"w"in t&&"h"in t&&!("xt"in t)&&"p"in t,parseBase64=t=>t.slice(Math.max(0,t.indexOf(",")+1)),isBase64=t=>!!t&&/^(?:[0-9a-z+/]{4})*(?:[0-9a-z+/]{2}==|[0-9a-z+/]{3}=)?$/i.test(parseBase64(t)),resolveAssets=async(t,e)=>{if(!Array.isArray(e))return;let i=[],{length:s}=e;for(let r=0;r<s;r++){if(!isAudio(e[r])&&!isImage(e[r]))continue;let s=isImage(e[r])?"images":"audio",n=t?.[`${s}/${e[r].p}`];n&&i.push(new Promise(t=>{let i;if(isServer())i=Buffer.from(n).toString("base64");else{let t="",{length:e}=n;for(let i=0;i<e;i++)t+=String.fromCharCode(n[i]);i=btoa(t)}e[r].p=e[r].p?.startsWith("data:")||isBase64(e[r].p)?e[r].p:`data:${getMimeFromExt(getExt(e[r].p))};base64,${i}`,e[r].e=1,e[r].u="",t()}))}await Promise.all(i)},prepareString=t=>t.replaceAll(RegExp(/"""/,"g"),'""').replaceAll(/(["'])(.*?)\1/g,(t,e,i)=>{let s=i.replaceAll(/[^\w\s.#]/g,"");return`${e}${s}${e}`}),fileToBase64=async t=>{let e=await fetch(t),i=await e.blob();return new Promise((t,e)=>{try{let s=new FileReader;s.onload=()=>{if("string"==typeof s.result)return void t(s.result);e(Error("Could not create bas64"))},s.readAsDataURL(i)}catch(t){e(t)}})},getLottieJSON=async t=>{let e=await unzip(t),i=getManifest(e),s=[],r=[],{length:n}=i.animations,a="animations";e[`a/${i.animations[0].id}.json`]&&(a="a");for(let t=0;t<n;t++){let n=JSON.parse(prepareString(strFromU8(e[`${a}/${i.animations[t].id}.json`]))),{length:o}=n.layers;for(let t=0;t<o;t++){let{ks:e}=n.layers[t],i=Object.keys(e),{length:s}=i;for(let r=0;r<s;r++){let{e:s,x:a}=e[i[r]];a&&s&&(n.layers[t].ks[i[r]].x=atob(a))}}r.push(resolveAssets(e,n.assets)),s.push(n)}return await Promise.all(r),{data:s,manifest:i}},download=(t,e)=>{let i=new Blob([t],{type:e?.mimeType}),s=e?.name||createElementID(),r=URL.createObjectURL(i),n=document.createElement("a");n.href=r,n.download=s,n.hidden=!0,document.body.appendChild(n),n.click(),setTimeout(()=>{n.remove(),URL.revokeObjectURL(r)},1e3)},getFilename=(t,e)=>(getExt(t),`${t.split("/").pop()?.replace(/\.[^.]*$/,"").replaceAll(/\W+/g,"-")}`),addExt=(t,e)=>{if(e)return getExt(e)?getExt(e)===t?e:`${getFilename(e)}.${t}`:`${e}.${t}`},aspectRatio=t=>{switch(t){case ObjectFit.Contain:case ObjectFit.ScaleDown:return PreserveAspectRatio$1.Contain;case ObjectFit.Cover:return PreserveAspectRatio$1.Cover;case ObjectFit.Fill:return PreserveAspectRatio$1.Initial;case ObjectFit.None:return PreserveAspectRatio$1.None;default:return PreserveAspectRatio$1.Contain}},base64ToU8=t=>strToU8(isServer()?Buffer.from(parseBase64(t),"base64").toString("binary"):atob(parseBase64(t)),!0),getExtFromB64=t=>t.split(":")[1].split(";")[0].split("/")[1].split("+")[0],handleErrors=t=>{let e={message:"Unknown error",status:isServer()?500:400};return t&&"object"==typeof t&&("message"in t&&"string"==typeof t.message&&(e.message=t.message),"status"in t&&(e.status=Number(t.status))),e},createDotLottie=async({animations:t=[],fileName:e,manifest:i,shouldDownload:s=!0})=>{try{if(0===t.length||!i)throw Error(`Missing or malformed required parameter(s):
|
|
2
|
-
${t.length>0?"- manifest\n":""} ${i?"- animations\n":""}`);let r=0,n=9,a=addExt("lottie",e)||`${createElementID()}.lottie`,o={"manifest.json":[strToU8(JSON.stringify(i),!0),{level:r}]},{length:h}=t;for(let e=0;e<h;e++){let{length:s}=t[e].assets;for(let i=0;i<s;i++){let s=t[e].assets[i];if(!s.p||!isImage(s)&&!isAudio(s))continue;let{p:r,u:a}=s;if(!r)continue;let h=createElementID(),l=r.startsWith("data:"),p=l?getExtFromB64(r):getExt(r),f=l?r:await fileToBase64(a?a.endsWith("/")&&`${a}${r}`||`${a}/${r}`:r);t[e].assets[i].e=1,t[e].assets[i].p=`${h}.${p}`,t[e].assets[i].u="",o[`${isAudio(s)?"audio":"images"}/${h}.${p}`]=[base64ToU8(f),{level:n}]}let{length:r}=t[e].layers;for(let i=0;i<r;i++){let{ks:s}=t[e].layers[i],r=Object.keys(s),{length:n}=r;for(let a=0;a<n;a++){let{x:n}=s[r[a]];n&&(t[e].layers[i].ks[r[a]].x=btoa(n),t[e].layers[i].ks[r[a]].e=1)}}o[`a/${i.animations[e].id}.json`]=[strToU8(JSON.stringify(t[e]),!0),{level:n}]}let l=await getArrayBuffer(o);if(s)return download(l,{mimeType:"application/zip",name:a}),null;return l}catch(t){return console.error(`❌ ${handleErrors(t).message}`),null}},createJSON=({animation:t,fileName:e,shouldDownload:i})=>{try{if(!t)throw Error("createJSON: Missing or malformed required parameter(s):\n - animation\n'");let s=addExt("json",e)||`${createElementID()}.json`,r=JSON.stringify(t);i&&download(r,{mimeType:"application/json",name:s});return}catch(t){console.error(`❌ ${handleErrors(t).message}`)}},frameOutput=t=>((t??0)+1).toString().padStart(3,"0"),getAnimationData=async t=>{try{if(!t||"string"!=typeof t&&"object"!=typeof t)throw Error("Broken file or invalid file format");if("string"!=typeof t)return{animations:Array.isArray(t)?t:[t],isDotLottie:!1,manifest:null};let e=await fetch(t,{headers:{"Content-Type":"application/json; charset=UTF-8"}});if(!e.ok){let t=new CustomError(e.statusText);throw t.status=e.status,t}let i=!0,s=e.headers.get("content-type");if("application/zip+dotlottie"===s&&(i=!1),i){let i=getExt(t);if("json"===i)return{animations:[await e.json()],isDotLottie:!1,manifest:null};let s=await e.clone().text();try{return{animations:[JSON.parse(s)],isDotLottie:!1,manifest:null}}catch(t){}}let{data:r,manifest:n}=await getLottieJSON(e);return{animations:r,isDotLottie:!0,manifest:n}}catch(t){return console.error(`❌ ${handleErrors(t).message}`),{animations:void 0,isDotLottie:!1,manifest:null}}},generator="@aarsteinmedia/dotlottie-player";class DotLottiePlayer extends PropertyCallbackElement{static get observedAttributes(){return["animateOnScroll","autoplay","controls","direction","hover","loop","mode","speed","src","subframe"]}static get observedProperties(){return["playerState","_isSettingsOpen","_seeker","_currentAnimation","_animations"]}static get styles(){return async()=>{let t=new CSSStyleSheet;return await t.replace(css_248z),t}}set animateOnScroll(t){this.setAttribute("animateOnScroll",(!!t).toString())}get animateOnScroll(){let t=this.getAttribute("animateOnScroll");return"true"===t||""===t||"1"===t}set autoplay(t){this.setAttribute("autoplay",(!!t).toString())}get autoplay(){let t=this.getAttribute("autoplay");return"true"===t||""===t||"1"===t}set background(t){this.setAttribute("background",t)}get background(){return this.getAttribute("background")||"transparent"}set controls(t){this.setAttribute("controls",(!!t).toString())}get controls(){let t=this.getAttribute("controls");return"true"===t||""===t||"1"===t}set count(t){this.setAttribute("count",t.toString())}get count(){let t=this.getAttribute("count");return t?Number(t):0}set description(t){t&&this.setAttribute("description",t)}get description(){return this.getAttribute("description")}set direction(t){this.setAttribute("direction",t.toString())}get direction(){let t=Number(this.getAttribute("direction"));return -1===t?t:1}set hover(t){this.setAttribute("hover",t.toString())}get hover(){let t=this.getAttribute("hover");return"true"===t||""===t||"1"===t}set intermission(t){this.setAttribute("intermission",t.toString())}get intermission(){let t=Number(this.getAttribute("intermission"));return isNaN(t)?0:t}set loop(t){this.setAttribute("loop",(!!t).toString())}get loop(){let t=this.getAttribute("loop");return"true"===t||""===t||"1"===t}set mode(t){this.setAttribute("mode",t.toString())}get mode(){let t=this.getAttribute("mode");return t===PlayMode.Bounce?t:PlayMode.Normal}set objectfit(t){this.setAttribute("objectfit",t)}get objectfit(){let t=this.getAttribute("objectfit");return t&&Object.values(ObjectFit).includes(t)?t:ObjectFit.Contain}set preserveAspectRatio(t){this.setAttribute("preserveAspectRatio",t||PreserveAspectRatio.Contain)}get preserveAspectRatio(){let t=this.getAttribute("preserveAspectRatio");return t&&Object.values(PreserveAspectRatio).includes(t)?t:null}set renderer(t){this.setAttribute("renderer",t)}get renderer(){let t=this.getAttribute("renderer");return t===RendererType.Canvas||t===RendererType.HTML?t:RendererType.SVG}set simple(t){this.setAttribute("simple",t.toString())}get simple(){let t=this.getAttribute("simple");return"true"===t||""===t||"1"===t}set speed(t){this.setAttribute("speed",t.toString())}get speed(){let t=this.getAttribute("speed");return null===t||isNaN(Number(t))?1:Number(t)}set src(t){this.setAttribute("src",t||"")}get src(){return this.getAttribute("src")}set subframe(t){this.setAttribute("subframe",(!!t).toString())}get subframe(){let t=this.getAttribute("subframe");return"true"===t||""===t||"1"===t}constructor(){super(),this.playerState=PlayerState.Loading,this._container=null,this._errorMessage="Something went wrong",this._identifier=this.id||createElementID(),this._isSettingsOpen=!1,this._playerState={count:0,loaded:!1,prev:PlayerState.Loading,scrollTimeout:null,scrollY:0,visible:!1},this._render=renderPlayer,this._renderControls=renderControls,this._seeker=0,this._animations=[],this._currentAnimation=0,this._isBounce=!1,this._isDotLottie=!1,this._lottieInstance=null,this._multiAnimationSettings=[],this._handleSettingsClick=({target:t})=>{this._toggleSettings(),t instanceof HTMLElement&&t.focus()},this._complete=this._complete.bind(this),this._dataFailed=this._dataFailed.bind(this),this._dataReady=this._dataReady.bind(this),this._DOMLoaded=this._DOMLoaded.bind(this),this._enterFrame=this._enterFrame.bind(this),this._freeze=this._freeze.bind(this),this._handleBlur=this._handleBlur.bind(this),this._handleScroll=this._handleScroll.bind(this),this._handleSeekChange=this._handleSeekChange.bind(this),this._handleWindowBlur=this._handleWindowBlur.bind(this),this._loopComplete=this._loopComplete.bind(this),this._mouseEnter=this._mouseEnter.bind(this),this._mouseLeave=this._mouseLeave.bind(this),this._onVisibilityChange=this._onVisibilityChange.bind(this),this._switchInstance=this._switchInstance.bind(this),this.togglePlay=this.togglePlay.bind(this),this.stop=this.stop.bind(this),this.prev=this.prev.bind(this),this.next=this.next.bind(this),this._renderControls=this._renderControls.bind(this),this.snapshot=this.snapshot.bind(this),this.toggleLoop=this.toggleLoop.bind(this),this.toggleBoomerang=this.toggleBoomerang.bind(this),this.convert=this.convert.bind(this),this.destroy=this.destroy.bind(this),this.template=document.createElement("template"),this.shadow=this.attachShadow({mode:"open"})}async addAnimation(t,e,i=!0){let{animations:s=[],manifest:r={animations:this.src?[{id:this._identifier}]:[]}}=this.src?await getAnimationData(this.src):{};try{if(!r)throw Error("Manifest is not set");r.generator=generator;let{length:n}=t;for(let e=0;e<n;e++){let{url:i}=t[e],{animations:n}=await getAnimationData(i);if(!n)throw Error("No animation loaded");if(r.animations.some(({id:i})=>i===t[e].id))throw Error("Duplicate id for animation");r.animations=[...r.animations,{id:t[e].id}],s.push(...n)}return{result:await createDotLottie({animations:s,fileName:e,manifest:r,shouldDownload:i}),success:!0}}catch(t){return{error:handleErrors(t).message,success:!1}}}async attributeChangedCallback(t,e,i){if(this._lottieInstance){if("animateOnScroll"===t){if(""===i||i){this._lottieInstance.autoplay=!1,addEventListener("scroll",this._handleScroll,{capture:!0,passive:!0});return}removeEventListener("scroll",this._handleScroll,!0)}if("autoplay"===t){if(this.animateOnScroll)return;if(""===i||i)return void this.play();this.stop()}if("controls"===t&&this._renderControls(),"direction"===t){if(-1===Number(i))return void this.setDirection(-1);this.setDirection(1)}if("hover"===t&&this._container){if(""===i||i){this._container.addEventListener("mouseenter",this._mouseEnter),this._container.addEventListener("mouseleave",this._mouseLeave);return}this._container.removeEventListener("mouseenter",this._mouseEnter),this._container.removeEventListener("mouseleave",this._mouseLeave)}if("loop"===t){let t=this.shadow?.querySelector(".toggleLoop");t instanceof HTMLButtonElement&&(t.dataset.active=i),this.setLoop(""===i||!!i)}if("mode"===t){let t=this.shadow?.querySelector(".toggleBoomerang");t instanceof HTMLButtonElement&&(t.dataset.active=(i===PlayMode.Bounce).toString()),this._isBounce=i===PlayMode.Bounce}if("speed"===t){let t=Number(i);t&&!isNaN(t)&&this.setSpeed(t)}"src"===t&&await this.load(i),"subframe"===t&&this.setSubframe(""===i||!!i)}}async connectedCallback(){if(await super.connectedCallback(),await this._render(),!this.shadow)throw Error("Missing Shadow element");this._container=this.shadow.querySelector(".animation"),this._renderControls(),void 0!==document.hidden&&document.addEventListener("visibilitychange",this._onVisibilityChange),this._addIntersectionObserver(),await this.load(this.src),this.dispatchEvent(new CustomEvent(PlayerEvents.Rendered))}async convert({animations:t,fileName:e,manifest:i,shouldDownload:s=!0,src:r,typeCheck:n}){let a=r||this.src||this.source;if(!a)throw Error("No animation to convert");if(n||this._isDotLottie){let t=await getAnimationData(a);createJSON({animation:t.animations?.[0],fileName:`${getFilename(e||a||"converted")}.json`,shouldDownload:s});return}let o=t;return o||(o=(await getAnimationData(a)).animations),createDotLottie({animations:o,fileName:`${getFilename(e||a||"converted")}.lottie`,manifest:{...i??this._manifest,generator},shouldDownload:s})}destroy(){this._lottieInstance&&(this.playerState=PlayerState.Destroyed,this._lottieInstance.destroy(),this._lottieInstance=null,this.dispatchEvent(new CustomEvent(PlayerEvents.Destroyed)),this.remove(),document.removeEventListener("visibilitychange",this._onVisibilityChange))}disconnectedCallback(){this._intersectionObserver&&(this._intersectionObserver.disconnect(),this._intersectionObserver=void 0),this._lottieInstance&&this._lottieInstance.destroy(),document.removeEventListener("visibilitychange",this._onVisibilityChange)}getLottie(){return this._lottieInstance}getManifest(){return this._manifest}getMultiAnimationSettings(){return this._multiAnimationSettings}getSegment(){return this._segment}async load(t){if(!this.shadowRoot||!t)return;this.source=t;try{let{animations:e,isDotLottie:i,manifest:s}=await getAnimationData(t);if(!e||e.some(t=>!this._isLottie(t)))throw Error("Broken or corrupted file");this._isBounce=this.mode===PlayMode.Bounce,this._multiAnimationSettings.length>0&&this._multiAnimationSettings[this._currentAnimation]?.mode&&(this._isBounce=this._multiAnimationSettings[this._currentAnimation].mode===PlayMode.Bounce),this._isDotLottie=!!i,this._animations=e,this._manifest=s??{animations:[{autoplay:!this.animateOnScroll&&this.autoplay,direction:this.direction,id:createElementID(),loop:this.loop,mode:this.mode,speed:this.speed}]},this._lottieInstance&&this._lottieInstance.destroy(),this.playerState=PlayerState.Stopped,!this.animateOnScroll&&(this.autoplay||this._multiAnimationSettings[this._currentAnimation]?.autoplay)&&(this.playerState=PlayerState.Playing),this._lottieInstance=Lottie.loadAnimation({...this._getOptions(),animationData:e[this._currentAnimation]})}catch(t){this._errorMessage=handleErrors(t).message,this.playerState=PlayerState.Error,this.dispatchEvent(new CustomEvent(PlayerEvents.Error));return}this._addEventListeners();let e=this._multiAnimationSettings[this._currentAnimation]?.speed??this.speed,i=this._multiAnimationSettings[this._currentAnimation]?.direction??this.direction;this._lottieInstance.setSpeed(e),this._lottieInstance.setDirection(i),this._lottieInstance.setSubframe(!!this.subframe),(this.autoplay||this.animateOnScroll)&&(-1===this.direction&&this.seek("99%"),"IntersectionObserver"in window||(this.animateOnScroll||this.play(),this._playerState.visible=!0),this._addIntersectionObserver())}next(){this._currentAnimation++,this._switchInstance()}pause(){if(this._lottieInstance){this._playerState.prev=this.playerState;try{this._lottieInstance.pause(),this.dispatchEvent(new CustomEvent(PlayerEvents.Pause))}finally{this.playerState=PlayerState.Paused}}}play(){if(this._lottieInstance){this._playerState.prev=this.playerState;try{this._lottieInstance.play(),this.dispatchEvent(new CustomEvent(PlayerEvents.Play))}finally{this.playerState=PlayerState.Playing}}}prev(){this._currentAnimation--,this._switchInstance(!0)}propertyChangedCallback(t,e,i){if(!this.shadow)return;let s=this.shadow.querySelector(".togglePlay"),r=this.shadow.querySelector(".stop"),n=this.shadow.querySelector(".prev"),a=this.shadow.querySelector(".next"),o=this.shadow.querySelector(".seeker"),h=this.shadow.querySelector("progress"),l=this.shadow.querySelector(".popover"),p=this.shadow.querySelector(".convert");s instanceof HTMLButtonElement&&r instanceof HTMLButtonElement&&a instanceof HTMLButtonElement&&n instanceof HTMLButtonElement&&o instanceof HTMLInputElement&&h instanceof HTMLProgressElement&&("playerState"===t&&(s.dataset.active=(i===PlayerState.Playing||i===PlayerState.Paused).toString(),r.dataset.active=(i===PlayerState.Stopped).toString(),i===PlayerState.Playing?s.innerHTML='<svg width="24" height="24" aria-hidden="true" focusable="false"><path d="M14.016 5.016H18v13.969h-3.984V5.016zM6 18.984V5.015h3.984v13.969H6z"/></svg>':s.innerHTML='<svg width="24" height="24" aria-hidden="true" focusable="false"><path d="M8.016 5.016L18.985 12 8.016 18.984V5.015z"/></svg>'),"_seeker"===t&&"number"==typeof i&&(o.value=i.toString(),o.ariaValueNow=i.toString(),h.value=i),"_animations"===t&&Array.isArray(i)&&this._currentAnimation+1<i.length&&(a.hidden=!1),"_currentAnimation"===t&&"number"==typeof i&&(i+1>=this._animations.length?a.hidden=!0:a.hidden=!1,i?n.hidden=!1:n.hidden=!0),"_isSettingsOpen"===t&&"boolean"==typeof i&&l instanceof HTMLDivElement&&p instanceof HTMLButtonElement&&(l.hidden=!i,p.hidden=this._isDotLottie))}async reload(){this._lottieInstance&&this.src&&(this._lottieInstance.destroy(),await this.load(this.src))}seek(t){if(!this._lottieInstance)return;let e=t.toString().match(/^(\d+)(%?)$/);if(!e)return;let i=Math.round("%"===e[2]?this._lottieInstance.totalFrames*Number(e[1])/100:Number(e[1]));if(this._seeker=i,this.playerState===PlayerState.Playing||this.playerState===PlayerState.Frozen&&this._playerState.prev===PlayerState.Playing){this._lottieInstance.goToAndPlay(i,!0),this.playerState=PlayerState.Playing;return}this._lottieInstance.goToAndStop(i,!0),this._lottieInstance.pause()}setCount(t){this.count=t}setDirection(t){this._lottieInstance&&this._lottieInstance.setDirection(t)}setLoop(t){this._lottieInstance&&this._lottieInstance.setLoop(t)}setMultiAnimationSettings(t){this._multiAnimationSettings=t}setSegment(t){this._segment=t}setSpeed(t=1){this._lottieInstance&&this._lottieInstance.setSpeed(t)}setSubframe(t){this._lottieInstance&&this._lottieInstance.setSubframe(t)}snapshot(t=!0,e="AM Lottie"){try{if(!this.shadowRoot)throw Error("Unknown error");let i=this.shadowRoot.querySelector(".animation svg");if(!i)throw Error("Could not retrieve animation from DOM");let s=i instanceof Node?new XMLSerializer().serializeToString(i):null;if(!s)throw Error("Could not serialize SVG element");return t&&download(s,{mimeType:"image/svg+xml",name:`${getFilename(this.src||e)}-${frameOutput(this._seeker)}.svg`}),s}catch(t){return console.error(t),null}}stop(){if(this._lottieInstance){this._playerState.prev=this.playerState,this._playerState.count=0;try{this._lottieInstance.stop(),this.dispatchEvent(new CustomEvent(PlayerEvents.Stop))}finally{this.playerState=PlayerState.Stopped}}}toggleBoomerang(){let t=this._multiAnimationSettings[this._currentAnimation];if(void 0!==t.mode){if(t.mode===PlayMode.Normal){t.mode=PlayMode.Bounce,this._isBounce=!0;return}t.mode=PlayMode.Normal,this._isBounce=!1;return}if(this.mode===PlayMode.Normal){this.mode=PlayMode.Bounce,this._isBounce=!0;return}this.mode=PlayMode.Normal,this._isBounce=!1}toggleLoop(){let t=!this.loop;this.loop=t,this.setLoop(t)}togglePlay(){if(!this._lottieInstance)return;let{currentFrame:t,playDirection:e,totalFrames:i}=this._lottieInstance;if(this.playerState===PlayerState.Playing)return void this.pause();if(this.playerState!==PlayerState.Completed)return void this.play();if(this.playerState=PlayerState.Playing,this._isBounce){this.setDirection(-1*e),this._lottieInstance.goToAndPlay(t,!0);return}if(-1===e)return void this._lottieInstance.goToAndPlay(i,!0);this._lottieInstance.goToAndPlay(0,!0)}_freeze(){if(this._lottieInstance){this._playerState.prev=this.playerState;try{this._lottieInstance.pause(),this.dispatchEvent(new CustomEvent(PlayerEvents.Freeze))}finally{this.playerState=PlayerState.Frozen}}}_handleBlur(){setTimeout(()=>{this._toggleSettings(!1)},200)}_handleSeekChange({target:t}){!(!(t instanceof HTMLInputElement)||!this._lottieInstance||isNaN(Number(t.value)))&&this.seek(Math.round(Number(t.value)/100*this._lottieInstance.totalFrames))}_addEventListeners(){this._toggleEventListeners("add")}_addIntersectionObserver(){this._container&&!this._intersectionObserver&&"IntersectionObserver"in window&&(this._intersectionObserver=new IntersectionObserver(t=>{let{length:e}=t;for(let i=0;i<e;i++){if(!t[i].isIntersecting||document.hidden){this.playerState===PlayerState.Playing&&this._freeze(),this._playerState.visible=!1;continue}this.animateOnScroll||this.playerState!==PlayerState.Frozen||this.play(),this._playerState.scrollY||(this._playerState.scrollY=scrollY),this._playerState.visible=!0}}),this._intersectionObserver.observe(this._container))}_complete(){if(!this._lottieInstance)return;if(this._animations.length>1){if(this._multiAnimationSettings[this._currentAnimation+1]?.autoplay)return void this.next();if(this.loop&&this._currentAnimation===this._animations.length-1){this._currentAnimation=0,this._switchInstance();return}}let{currentFrame:t,totalFrames:e}=this._lottieInstance;this._seeker=Math.round(t/e*100),this.playerState=PlayerState.Completed,this.dispatchEvent(new CustomEvent(PlayerEvents.Complete,{detail:{frame:t,seeker:this._seeker}}))}_dataFailed(){this.playerState=PlayerState.Error,this.dispatchEvent(new CustomEvent(PlayerEvents.Error))}_dataReady(){this.dispatchEvent(new CustomEvent(PlayerEvents.Load))}_DOMLoaded(){this._playerState.loaded=!0,this.dispatchEvent(new CustomEvent(PlayerEvents.Ready))}_enterFrame(){if(!this._lottieInstance)return;let{currentFrame:t,totalFrames:e}=this._lottieInstance;this._seeker=Math.round(t/e*100),this.dispatchEvent(new CustomEvent(PlayerEvents.Frame,{detail:{frame:t,seeker:this._seeker}}))}_getOptions(){if(!this._container)throw Error("Container not rendered");let t=this.preserveAspectRatio??aspectRatio(this.objectfit),e=this._multiAnimationSettings.length>0?this._multiAnimationSettings[this._currentAnimation]:void 0,i=this._manifest?.animations[this._currentAnimation],s=!!this.loop;i?.loop!==void 0&&(s=!!i.loop),e?.loop!==void 0&&(s=!!e.loop);let r=!!this.autoplay;i?.autoplay!==void 0&&(r=!!i.autoplay),e?.autoplay!==void 0&&(r=!!e.autoplay),this.animateOnScroll&&(r=!1);let n=this._segment;this._segment?.every(t=>t>0)&&(n=[this._segment[0]-1,this._segment[1]-1]),this._segment?.some(t=>t<0)&&(n=void 0);let a={autoplay:r,container:this._container,initialSegment:n,loop:s,renderer:this.renderer,rendererSettings:{imagePreserveAspectRatio:t}};switch(this.renderer){case RendererType.SVG:a.rendererSettings={...a.rendererSettings,hideOnTransparent:!0,preserveAspectRatio:t,progressiveLoad:!0};break;case RendererType.Canvas:a.rendererSettings={...a.rendererSettings,clearCanvas:!0,preserveAspectRatio:t,progressiveLoad:!0};break;case RendererType.HTML:a.rendererSettings={...a.rendererSettings,hideOnTransparent:!0}}return a}_handleScroll(){if(this.animateOnScroll&&this._lottieInstance){if(isServer())return void console.warn("DotLottie: Scroll animations might not work properly in a Server Side Rendering context. Try to wrap this in a client component.");if(this._playerState.visible){this._playerState.scrollTimeout&&clearTimeout(this._playerState.scrollTimeout),this._playerState.scrollTimeout=setTimeout(()=>{this.playerState=PlayerState.Paused},400);let t=Math.min(Math.max((scrollY>this._playerState.scrollY?scrollY-this._playerState.scrollY:this._playerState.scrollY-scrollY)/3,1),3*this._lottieInstance.totalFrames)/3;requestAnimationFrame(()=>{t<(this._lottieInstance?.totalFrames??0)?(this.playerState=PlayerState.Playing,this._lottieInstance?.goToAndStop(t,!0)):this.playerState=PlayerState.Paused})}}}_handleWindowBlur({type:t}){this.playerState===PlayerState.Playing&&"blur"===t&&this._freeze(),this.playerState===PlayerState.Frozen&&"focus"===t&&this.play()}_isLottie(t){return["v","ip","op","layers","fr","w","h"].every(e=>Object.hasOwn(t,e))}_loopComplete(){if(!this._lottieInstance)return;let{playDirection:t,totalFrames:e}=this._lottieInstance,i=this._segment?this._segment[0]:0,s=this._segment?this._segment[0]:e;if(this.count&&(this._isBounce?this._playerState.count+=.5:this._playerState.count+=1,this._playerState.count>=this.count)){this.setLoop(!1),this.playerState=PlayerState.Completed,this.dispatchEvent(new CustomEvent(PlayerEvents.Complete));return}return(this.dispatchEvent(new CustomEvent(PlayerEvents.Loop)),this._isBounce)?(this._lottieInstance.goToAndStop(-1===t?i:.99*s,!0),this._lottieInstance.setDirection(-1*t),setTimeout(()=>{this.animateOnScroll||this._lottieInstance?.play()},this.intermission)):(this._lottieInstance.goToAndStop(-1===t?.99*s:i,!0),setTimeout(()=>{this.animateOnScroll||this._lottieInstance?.play()},this.intermission))}_mouseEnter(){this.hover&&this.playerState!==PlayerState.Playing&&this.play()}_mouseLeave(){this.hover&&this.playerState===PlayerState.Playing&&this.stop()}_onVisibilityChange(){if(document.hidden&&this.playerState===PlayerState.Playing)return void this._freeze();this.playerState===PlayerState.Frozen&&this.play()}_removeEventListeners(){this._toggleEventListeners("remove")}_switchInstance(t=!1){if(this._animations[this._currentAnimation])try{if(this._lottieInstance&&this._lottieInstance.destroy(),this._lottieInstance=Lottie.loadAnimation({...this._getOptions(),animationData:this._animations[this._currentAnimation]}),this._multiAnimationSettings[this._currentAnimation]?.mode&&(this._isBounce=this._multiAnimationSettings[this._currentAnimation].mode===PlayMode.Bounce),this._removeEventListeners(),this._addEventListeners(),this.dispatchEvent(new CustomEvent(t?PlayerEvents.Previous:PlayerEvents.Next)),this._multiAnimationSettings[this._currentAnimation]?.autoplay??this.autoplay){if(this.animateOnScroll){this._lottieInstance.goToAndStop(0,!0),this.playerState=PlayerState.Paused;return}this._lottieInstance.goToAndPlay(0,!0),this.playerState=PlayerState.Playing;return}this._lottieInstance.goToAndStop(0,!0),this.playerState=PlayerState.Stopped}catch(t){this._errorMessage=handleErrors(t).message,this.playerState=PlayerState.Error,this.dispatchEvent(new CustomEvent(PlayerEvents.Error))}}_toggleEventListeners(t){let e="add"===t?"addEventListener":"removeEventListener";this._lottieInstance&&(this._lottieInstance[e]("enterFrame",this._enterFrame),this._lottieInstance[e]("complete",this._complete),this._lottieInstance[e]("loopComplete",this._loopComplete),this._lottieInstance[e]("DOMLoaded",this._DOMLoaded),this._lottieInstance[e]("data_ready",this._dataReady),this._lottieInstance[e]("data_failed",this._dataFailed)),this._container&&this.hover&&(this._container[e]("mouseenter",this._mouseEnter),this._container[e]("mouseleave",this._mouseLeave)),window[e]("focus",this._handleWindowBlur,{capture:!1,passive:!0}),window[e]("blur",this._handleWindowBlur,{capture:!1,passive:!0}),this.animateOnScroll&&window[e]("scroll",this._handleScroll,{capture:!0,passive:!0})}_toggleSettings(t){if(void 0===t){this._isSettingsOpen=!this._isSettingsOpen;return}this._isSettingsOpen=t}}globalThis.dotLottiePlayer=()=>new DotLottiePlayer;let tagName="dotlottie-player";isServer()||customElements.define(tagName,DotLottiePlayer),exports.PlayMode=PlayMode,exports.PlayerEvents=PlayerEvents,exports.PlayerState=PlayerState,exports.default=DotLottiePlayer,exports.tagName=tagName,Object.defineProperty(exports,"__esModule",{value:!0})}(this["@aarsteinmedia/dotlottie-player"]=this["@aarsteinmedia/dotlottie-player"]||{});
|
|
1
|
+
!function(t){"use strict";let e,s,i,r=()=>"",a=()=>!("undefined"!=typeof window&&window.document),n=(s=0,()=>(s++,`${r()}__lottie_element_${s}`));var o,h,l,p,m,c,d,u,f,g,y,b,v,x,w,_=((o={}).Contain="xMidYMid meet",o.Cover="xMidYMid slice",o.Initial="none",o.None="xMinYMin slice",o);class E{constructor(t,e,s,i){this.type=t,this.currentTime=e,this.totalTime=s,this.direction=i<0?-1:1}}class C{constructor(t,e){this.type=t,this.direction=e<0?-1:1}}class k{constructor(t,e,s,i){this.type=t,this.direction=s,this.currentTime=e,this.totalTime=i}}class S{constructor(t,e,s,i){this.type=t,this.currentLoop=s,this.totalLoops=e,this.direction=i<0?-1:1}}class M{constructor(t,e,s){this.type=t,this.firstFrame=e,this.totalFrames=s}}class P{constructor(t,e){this.type=t,this.target=e}}class A{constructor(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}}class D{constructor(t,e){this.type="configError",this.nativeError=t}}class T{addEventListener(t,e){return this._cbs[t]=this._cbs[t]??[],this._cbs[t].push(e),()=>{this.removeEventListener(t,e)}}removeEventListener(t,e){if(!e){this._cbs[t]=null;return}if(this._cbs[t]){let s=0,i=this._cbs[t].length;for(;s<i;)this._cbs[t][s]===e&&(this._cbs[t].splice(s,1),s--,i--),s++;0===this._cbs[t].length&&(this._cbs[t]=null)}}triggerEvent(t,e){if(!this._cbs[t])return;let{length:s}=this._cbs[t];for(let i=0;i<s;i++)this._cbs[t][i](e)}constructor(){this._cbs={}}}var F=((h={}).Float32="float32",h.Int16="int16",h.Int32="int32",h.Uint8="uint8",h.Uint8c="uint8c",h),I=((l={}).MouseModifier="ms",l.OffsetPathModifier="op",l.PuckerAndBloatModifier="pb",l.RepeaterModifier="rp",l.RoundCornersModifier="rd",l.TrimModifier="tm",l.ZigZagModifier="zz",l),$=((p={}).Contain="xMidYMid meet",p.Cover="xMidYMid slice",p.Initial="none",p.None="xMinYMin slice",p),L=((m={}).Canvas="canvas",m.HTML="html",m.SVG="svg",m),N=((c={}).Ellipse="el",c.Fill="fl",c.GradientFill="gf",c.GradientStroke="gs",c.Group="gr",c.Merge="mm",c.NoStyle="no",c.OffsetPath="op",c.Path="sh",c.PolygonStar="sr",c.PuckerBloat="pb",c.Rectangle="rc",c.Repeater="rp",c.RoundedCorners="rd",c.Stroke="st",c.Transform="tr",c.Trim="tm",c.Twist="tw",c.Unknown="ms",c.ZigZag="zz",c),B=((d={}).TransformEffect="transformEffect",d),V=((u={}).MultiDimensional="multidimensiional",u.Shape="shape",u.TextSelector="textSelector",u.Transform="transform",u.UniDimensional="unidimensional",u);let R={1:"butt",2:"round",3:"square"},z={1:"miter",2:"round",3:"bevel"},O={},G=(t,e)=>{O[t]=e},q=t=>{if(!O[t])throw Error("Could not get renderer");return O[t]},j=()=>{if(O.canvas)return L.Canvas;let t=Object.keys(O),{length:e}=t;for(let s=0;s<e;s++)if(O[t[s]])return t[s];return L.SVG},W={default:150},H=()=>W.default,Y=!1,U=()=>Y,X={current:!0},J=()=>X.current,Z="",K=()=>Z,Q="",tt=()=>Q;class te{constructor(t,e,s,i,r){let a=e,n=s;r&&tp(t,a)&&(a=tq(t,i,1/3)),r&&tp(n,i)&&(n=tq(t,i,2/3));let o=tH(t[0],a[0],n[0],i[0]),h=tH(t[1],a[1],n[1],i[1]);this.a=[o[0],h[0]],this.b=[o[1],h[1]],this.c=[o[2],h[2]],this.d=[o[3],h[3]],this.points=[t,a,n,i]}boundingBox(){let t=this.bounds();return{bottom:t.y.max,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2,height:t.y.max-t.y.min,left:t.x.min,right:t.x.max,top:t.y.min,width:t.x.max-t.x.min}}bounds(){return{x:this._extrema(this,0),y:this._extrema(this,1)}}derivative(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]]}inflectionPoints(){let t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(to(t))return[];let e=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,s=e*e-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(s<0)return[];let i=Math.sqrt(s);return to(i)?i>0&&i<1?[e]:[]:[e-i,e+i].filter(t=>t>0&&t<1)}intersections(t,e,s){let i=e,r=s;i=i??2,r=r??7;let a=[];return tR(ta(this,0,1),ta(t,0,1),0,i,a,r),a}normalAngle(t){let e=this.derivative(t);return Math.atan2(e[0],e[1])}point(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]]}split(t){if(t<=0)return[tQ(this.points[0]),this];if(t>=1)return[this,tQ(this.points[this.points.length-1])];let e=tq(this.points[0],this.points[1],t),s=tq(this.points[1],this.points[2],t),i=tq(this.points[2],this.points[3],t),r=tq(e,s,t),a=tq(s,i,t),n=tq(r,a,t);return[new te(this.points[0],e,r,n,!0),new te(n,a,i,this.points[3],!0)]}tangentAngle(t){let e=this.derivative(t);return Math.atan2(e[1],e[0])}_extrema(t,e){let s=t.points[0][e],i=t.points[t.points.length-1][e];if(s>i){let t=i;i=s,s=t}let r=tU(3*t.a[e],2*t.b[e],t.c[e]),{length:a}=r;for(let n=0;n<a;n++){if(r[n]<=0||r[n]>=1)continue;let a=t.point(r[n])[e];if(a<s){s=a;continue}a>i&&(i=a)}return{max:i,min:s}}}function ts(t,e){let s=(e+1)%t.length();return new te(t.v[e],t.o[e],t.i[s],t.v[s],!0)}let ti=Math.PI/180,tr=(t,e,s)=>{let i=s;return(i<0&&i++,i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t},ta=(t,e,s)=>{let i=t.boundingBox();return{bez:t,cx:i.cx,cy:i.cy,height:i.height,t:(e+s)/2,t1:e,t2:s,width:i.width}},tn=(t,e)=>1e5*Math.abs(t-e)<=Math.min(Math.abs(t),Math.abs(e)),to=t=>1e-5>=Math.abs(t),th=()=>!("undefined"!=typeof window&&window.document),tl=t=>{let e=t.split("\r\n"),s={},{length:i}=e,r=0;for(let t=0;t<i;t++){let i=e[t].split(":");2===i.length&&(s[i[0]]=i[1].trim(),r++)}if(0===r)throw Error("Could not parse markers");return s},tp=(t,e)=>tn(t[0],e[0])&&tn(t[1],e[1]),tm=(t,e,s)=>[t[0]+Math.cos(e)*s,t[1]-Math.sin(e)*s],tc=(t,e)=>2*Math.abs(t.cx-e.cx)<t.width+e.width&&2*Math.abs(t.cy-e.cy)<t.height+e.height,td=(t,e)=>[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]],tu=(t,e)=>{let s=t.intersections(e);return(s.length>0&&tn(s[0][0],1)&&s.shift(),s.length>0)?s[0]:null},tf=(t,e)=>{let s=[e[0]-t[0],e[1]-t[1]],i=-(.5*Math.PI);return[Math.cos(i)*s[0]-Math.sin(i)*s[1],Math.sin(i)*s[0]+Math.cos(i)*s[1]]},tg=(t,e,s)=>{let i=0,r=0,a=0,n=Math.floor(6*t),o=6*t-n,h=s*(1-e),l=s*(1-o*e),p=s*(1-(1-o)*e);switch(n%6){case 0:i=s,r=p,a=h;break;case 1:i=l,r=s,a=h;break;case 2:i=h,r=s,a=p;break;case 3:i=h,r=l,a=s;break;case 4:i=p,r=h,a=s;break;case 5:i=s,r=h,a=l}return[i,r,a]},ty=(t,e,s)=>t*(1-s)+e*s,tb=(t,e,s)=>{let i=Math.atan2(e[0]-t[0],e[1]-t[1]);return[tm(t,i,s),tm(e,i,s)]},tv=(t,e,s,i)=>{let r=[t[0],t[1],1],a=[e[0],e[1],1],n=[s[0],s[1],1],o=[i[0],i[1],1],h=td(td(r,a),td(n,o));return to(h[2])?null:[h[0]/h[2],h[1]/h[2]]},tx=(t,e)=>{let s,i=(s=tb(t.points[0],t.points[1],e))[0],r=s[1],a=(s=tb(t.points[1],t.points[2],e))[0],n=s[1],o=(s=tb(t.points[2],t.points[3],e))[0],h=s[1],l=tv(i,r,a,n);l=l??r;let p=tv(o,h,a,n);return new te(i,l,p=p??o,h)},tw=(t,e)=>Math.hypot(t[0]-e[0],t[1]-e[1]),t_=(t,e)=>{let s=[...t],i=[...e],r=tu(t[t.length-1],e[0]);return(r&&(s[t.length-1]=t[t.length-1].split(r[0])[0],i[0]=e[0].split(r[1])[1]),t.length>1&&e.length>1&&(r=tu(t[0],e[e.length-1])))?[[t[0].split(r[0])[0]],[e[e.length-1].split(r[1])[1]]]:[s,i]},tE=(t,e,s)=>{let i=Math.max(t,e,s),r=Math.min(t,e,s),a=i-r,n=0;switch(i){case r:n=0;break;case t:n=(e-s+6*(e<s)*a)/(6*a);break;case e:n=(s-t+2*a)/(6*a);break;case s:n=(t-e+4*a)/(6*a)}return[n,0===i?0:a/i,i/255]},tC=t=>{let e=t.bez.split(.5);return[ta(e[0],t.t1,t.t),ta(e[1],t.t,t.t2)]},tk=(t,e)=>{let s=tE(255*t[0],255*t[1],255*t[2]);return s[2]+=e,s[2]>1?s[2]=1:s[2]<0&&(s[2]=0),tg(s[0],s[1],s[2])},tS=(t,e)=>{let s=tE(255*t[0],255*t[1],255*t[2]);return s[0]+=e/360,s[0]>1?s[0]-=1:s[0]<0&&s[0]++,tg(s[0],s[1],s[2])},tM=(t,e)=>{let s=tE(255*t[0],255*t[1],255*t[2]);return s[1]+=e,s[1]>1?s[1]=1:s[1]<=0&&(s[1]=0),tg(s[0],s[1],s[2])},tP=(t,e,s,i)=>{if(0===e)return"";let r=t.o,a=t.i,n=t.v,o,h=` M${i.applyToPointStringified(n[0][0],n[0][1])}`;for(o=1;o<e;o++)h+=` C${i.applyToPointStringified(r[o-1][0],r[o-1][1])} ${i.applyToPointStringified(a[o][0],a[o][1])} ${i.applyToPointStringified(n[o][0],n[o][1])}`;return s&&e&&(h+=` C${i.applyToPointStringified(r[o-1][0],r[o-1][1])} ${i.applyToPointStringified(a[0][0],a[0][1])} ${i.applyToPointStringified(n[0][0],n[0][1])}z`),h},tA=(i=0,()=>(i++,`${tt()}__lottie_element_${i}`)),tD=(t,e=0,s=100)=>{let i=e,r=s;if(i>r){let t=r;r=i,i=t}return Math.min(Math.max(t,i),r)},tT=t=>th()?null:document.createElementNS("http://www.w3.org/2000/svg",t),tF=t=>th()?null:document.createElement(t),tI=t=>{let e=t[0]*ti,s=t[1]*ti,i=t[2]*ti,r=Math.cos(e/2),a=Math.cos(s/2),n=Math.cos(i/2),o=Math.sin(e/2),h=Math.sin(s/2),l=Math.sin(i/2);return[o*h*n+r*a*l,o*a*n+r*h*l,r*h*n-o*a*l,r*a*n-o*h*l]},t$=(t,e)=>{let s,{length:i}=t;for(let r=0;r<i;r++){let i=Object.getOwnPropertyNames(s=t[r].prototype),{length:a}=i;for(let t=0;t<a;t++)"constructor"!==i[t]&&Object.hasOwn(s,i[t])&&(e.prototype[i[t]]=s[i[t]])}},tL=(t=16)=>({0:"source-over",1:"multiply",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light"})[t]||"",tN=(t,e)=>{let s=0===e?t.length()-1:e-1,i=(e+1)%t.length(),r=tf(t.v[s],t.v[i]);return Math.atan2(0,1)-Math.atan2(r[1],r[0])},tB=t=>{let e,s,i,r=t[0],a=t[1],n=t[2];if(0===a)e=n,i=n,s=n;else{let t=n<.5?n*(1+a):n+a-n*a,o=2*n-t;e=tr(o,t,r+1/3),s=tr(o,t,r),i=tr(o,t,r-1/3)}return[e,s,i,t[3]]},tV=()=>"undefined"!=typeof navigator,tR=(t,e,s,i,r,a)=>{if(!tc(t,e))return;if(s>=a||t.width<=i&&t.height<=i&&e.width<=i&&e.height<=i)return void r.push([t.t,e.t]);let n=tC(t),o=tC(e);tR(n[0],o[0],s+1,i,r,a),tR(n[0],o[1],s+1,i,r,a),tR(n[1],o[0],s+1,i,r,a),tR(n[1],o[1],s+1,i,r,a)},tz=t=>!(!(Symbol.iterator in Object(t))||t.length>0&&"number"!=typeof t[0]),tO=()=>!!tV()&&/^(?:(?!chrome|android).)*safari/i.test(navigator.userAgent),tG=(t,e,s,i,r)=>{let a=e.points[3],n=s.points[0];if(3===i||tp(a,n))return a;if(2===i){let i=-e.tangentAngle(1),r=-s.tangentAngle(0)+Math.PI,o=tv(a,tm(a,i+Math.PI/2,100),n,tm(n,i+Math.PI/2,100)),h=o?tw(o,a):tw(a,n)/2,l=tm(a,i,2*h*.5519);return t.setXYAt(l[0],l[1],"o",t.length()-1),l=tm(n,r,2*h*.5519),t.setTripleAt(n[0],n[1],n[0],n[1],l[0],l[1],t.length()),n}let o=tp(a,e.points[2])?e.points[0]:e.points[2],h=tp(n,s.points[1])?s.points[3]:s.points[1],l=tv(o,a,n,h);return l&&tw(l,a)<r?(t.setTripleAt(l[0],l[1],l[0],l[1],l[0],l[1],t.length()),l):a},tq=(t,e,s)=>[ty(t[0],e[0],s),ty(t[1],e[1],s)],tj=t=>{let e=[],{length:s}=t;for(let i=0;i<s;i++){if("duration"in t[i]){e.push(t[i]);continue}let s={duration:t[i].dr,time:t[i].tm};try{s.payload=JSON.parse(t[i].cm)}catch(e){try{s.payload=tl(t[i].cm)}catch(e){s.payload={name:t[i].cm}}}e.push(s)}return e},tW=(t,e)=>{let s,i,r,a=t.inflectionPoints();if(0===a.length)return[tx(t,e)];if(1===a.length||tn(a[1],1))return s=(r=t.split(a[0]))[0],i=r[1],[tx(s,e),tx(i,e)];s=(r=t.split(a[0]))[0];let n=(a[1]-a[0])/(1-a[0]),o=(r=r[1].split(n))[0];return i=r[1],[tx(s,e),tx(o,e),tx(i,e)]},tH=(t,e,s,i)=>[-t+3*e-3*s+i,3*t-6*e+3*s,-3*t+3*e,t],tY=t=>{let e;for(let s=1;s<t.length;s++)e=t_(t[s-1],t[s]),t[s-1]=e[0],t[s]=e[1];return t.length>1&&(e=t_(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t},tU=(t,e,s)=>{if(0===t)return[];let i=e*e-4*t*s;if(i<0)return[];let r=-e/(2*t);if(0===i)return[r];let a=Math.sqrt(i)/(2*t);return[r-a,r+a]},tX=(t,e)=>{let s=e[0],i=e[1],r=e[2],a=e[3],n=Math.atan2(2*i*a-2*s*r,1-2*i*i-2*r*r),o=Math.asin(2*s*i+2*r*a),h=Math.atan2(2*s*a-2*i*r,1-2*s*s-2*r*r);t[0]=n/ti,t[1]=o/ti,t[2]=h/ti},tJ=(t,e,s)=>{let i,r=[];for(let t=0;t<256;t++)i=t.toString(16),r[t]=1===i.length?`0${i}`:i;let a=t,n=e,o=s;return t<0&&(a=0),e<0&&(n=0),s<0&&(o=0),`#${r[a]}${r[n]}${r[o]}`},tZ=t=>{let e=t[0],s=t[1],i=t[2],r=Math.max(e,s,i),a=Math.min(e,s,i),n=0,o,h=(r+a)/2;if(r===a)n=0,o=0;else{let t=r-a;switch(o=h>.5?t/(2-r-a):t/(r+a),r){case e:n=(s-i)/t+6*(s<i);break;case s:n=(i-e)/t+2;break;case i:n=(e-s)/t+4}n/=6}return[n,o,h,t[3]]},tK=(t,e,s,i,r,a,n)=>{let o=s-Math.PI/2,h=s+Math.PI/2,l=e[0]+Math.cos(s)*i*r,p=e[1]-Math.sin(s)*i*r;t.setTripleAt(l,p,l+Math.cos(o)*a,p-Math.sin(o)*a,l+Math.cos(h)*n,p-Math.sin(h)*n,t.length())},tQ=t=>new te(t,t,t,t,!1),t0=(t,e,s)=>{let i=[0,0,0,0],r=t[0],a=t[1],n=t[2],o=t[3],h=e[0],l=e[1],p=e[2],m=e[3],c,d,u,f,g;return(d=r*h+a*l+n*p+o*m)<0&&(d=-d,h=-h,l=-l,p=-p,m=-m),1-d>1e-6?(u=Math.sin(c=Math.acos(d)),f=Math.sin((1-s)*c)/u,g=Math.sin(s*c)/u):(f=1-s,g=s),i[0]=f*r+g*h,i[1]=f*a+g*l,i[2]=f*n+g*p,i[3]=f*o+g*m,i},t1=t=>{t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.display="block",t.style.transformOrigin="0 0",t.style.backfaceVisibility="visible",t.style.transformStyle="preserve-3d"};class t2{constructor(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}addAudio(t){this.audios.push(t)}createAudio(t){return this.audioFactory?this.audioFactory(t):!th()&&"Howl"in window?new window.Howl({src:[t]}):{isPlaying:!1,play:()=>{this.isPlaying=!0},playing:()=>{throw Error(`${this.constructor.name}: Method playing is not implemented`)},rate:()=>{throw Error(`${this.constructor.name}: Method rate is not implemented`)},seek:()=>{this.isPlaying=!1},setVolume:()=>{throw Error(`${this.constructor.name}: Method setVolume is not implemented`)}}}getVolume(){return this._volume}mute(){this._isMuted=!0,this._updateVolume()}pause(){for(let t of this.audios)t.pause()}resume(){for(let t of this.audios)t.resume()}setAudioFactory(t){this.audioFactory=t}setRate(t){for(let e of this.audios)e.setRate(t)}setVolume(t){this._volume=t,this._updateVolume()}unmute(){this._isMuted=!1,this._updateVolume()}_updateVolume(){let{length:t}=this.audios;for(let e=0;e<t;e++)this.audios[e].volume(!this._isMuted*this._volume)}}function t3(t,e,s,i){let r,a=new XMLHttpRequest;try{a.responseType="json"}catch(t){}a.onreadystatechange=()=>{if(4===a.readyState){if(200===a.status)return void s(r=t5(a));try{r=t5(a),s(r)}catch(t){i?.(t)}}};try{a.open("GET",t,!0)}catch(s){a.open("GET",`${e}/${t}`,!0)}a.send()}function t5(t){let e=t.getResponseHeader("content-type");return e&&"json"===t.responseType&&e.includes("json")||t.response&&"object"==typeof t.response?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):null}function t4(t){t.__complete||(new ea(t),new es(t),new ei(t),new er(t),new en(t),t6(t.layers,t.assets),function(t,e){if(!t)return;let{length:s}=t;for(let i=0;i<s;i++){if(1!==t[i].t)continue;let{data:s}=t[i];s&&(s.layers=t7(s.refId,e)),t6(t[i].data?.layers??[],e)}}(t.chars??[],t.assets),t.__complete=!0)}function t6(t,e){let{length:s}=t;for(let i=0;i<s;i++)if("ks"in t[i]&&!t[i].completed){if(t[i].completed=!0,t[i].hasMask){if(!t[i].masksProperties)continue;let{length:e}=t[i].masksProperties??[];for(let s=0;s<e;s++){if(t[i].masksProperties?.[s].pt?.k?.i){t8(t[i].masksProperties?.[s].pt?.k);continue}if(!t[i].masksProperties?.[s])continue;let{length:e}=t[i].masksProperties?.[s].pt?.k??[];for(let r=0;r<e;r++)t8(t[i].masksProperties?.[s].pt?.k[r].s?.[0]),t8(t[i].masksProperties?.[s].pt?.k[r].e?.[0])}}switch(t[i].ty){case 0:t[i].layers=t7(t[i].refId,e),t6(t[i].layers,e);break;case 4:t9(t[i].shapes)}}}function t9(t=[]){let{length:e}=t;for(let s=e-1;s>=0;s--){if(t[s].ty===N.Group){t9(t[s].it);continue}if(t[s].ty===N.Path){if(t[s].ks?.k?.i){t8(t[s].ks?.k);continue}let{length:e}=t[s].ks?.k??[];for(let i=0;i<e;i++)t8(t[s].ks?.k[i]?.s?.[0]),t8(t[s].ks?.k[i]?.e?.[0])}}}function t8(t){if(!t)return;let{length:e}=t.i;for(let s=0;s<e;s++)t.i[s][0]+=t.v[s][0],t.i[s][1]+=t.v[s][1],t.o[s][0]+=t.v[s][0],t.o[s][1]+=t.v[s][1]}function t7(t,e){if(!t||!e)return;let s=function(t,e){let s=0,i=e.length;for(;s<i;){if(e[s].id===t)return e[s];s++}return null}(t,e);return s?.layers?s.layers.__used?JSON.parse(JSON.stringify(s.layers)):(s.layers.__used=!0,s.layers):null}function et(t,e){let s=e?e.split(".").map(Number):[100,100,100];return t[0]>s[0]||!(s[0]>t[0])&&(t[1]>s[1]||!(s[1]>t[1])&&(t[2]>s[2]||!(s[2]>t[2])&&null))}class ee{constructor(t){if(this.minimumVersion=[0,0,0],!et(this.minimumVersion,t.v))return;this.iterateLayers(t.layers);let{length:e}=t.assets;for(let s=0;s<e;s++){let{layers:e}=t.assets[s];e&&this.iterateLayers(e)}}iterateLayers(t){let{length:e}=t;for(let s=0;s<e;s++)5===t[s].ty&&this.updateTextLayer(t[s])}updateTextLayer(t){throw Error(`${this.constructor.name}: Method updateTextLayer is not implemented`)}}class es extends ee{updateTextLayer(t){let e=t.t?.d;t.t?.d&&e&&(t.t.d={k:[{s:e,t:0}]})}constructor(...t){super(...t),this.minimumVersion=[4,4,14]}}class ei{constructor(t){if(this.minimumVersion=[4,7,99],!t.chars||et(this.minimumVersion,t.v))return;let{length:e}=t.chars;for(let s=0;s<e;s++){let{data:e,t:i}=t.chars[s];e?.shapes&&(t9(e.shapes),e.ip=0,e.op=99999,e.st=0,e.sr=1,e.ks={a:{a:0,k:[0,0]},o:{a:0,k:100},p:{a:0,k:[0,0]},r:{a:0,k:0},s:{a:0,k:[100,100]}},i||(e.shapes.push({ty:N.NoStyle}),e.shapes[0].it?.push({a:{a:0,k:[0,0]},o:{a:0,k:100},p:{a:0,k:[0,0]},r:{a:0,k:0},s:{a:0,k:[100,100]},sa:{a:0,k:0},sk:{a:0,k:0},ty:N.Transform})))}}}class er extends ee{updateTextLayer(t){let e=t.t?.p;e&&("number"==typeof e.a&&(e.a={a:0,k:e.a}),"number"==typeof e.p&&(e.p={a:0,k:e.p}),"number"==typeof e.r&&(e.r={a:0,k:e.r}))}constructor(...t){super(...t),this.minimumVersion=[5,7,15]}}class ea extends ee{iterateLayers(t){let e=t.length;for(let s=0;s<e;s++)4===t[s].ty&&this.iterateShapes(t[s].shapes)}iterateShapes(t){if(!t)return;let{length:e}=t;for(let s=0;s<e;s++){if(t[s].ty===N.Group){this.iterateShapes(t[s].it);continue}if(t[s].ty===N.Fill||t[s].ty===N.Stroke){if(t[s].c?.k&&t[s].c?.k?.[0].i){let{length:e}=t[s].c?.k??[];for(let i=0;i<e;i++)t[s].c?.k?.[i].s&&((t[s].c?.k)[i].s[0]/=255,(t[s].c?.k)[i].s[1]/=255,(t[s].c?.k)[i].s[2]/=255,(t[s].c?.k)[i].s[3]/=255),t[s].c?.k?.[i].e&&((t[s].c?.k)[i].e[0]/=255,(t[s].c?.k)[i].e[1]/=255,(t[s].c?.k)[i].e[2]/=255,(t[s].c?.k)[i].e[3]/=255);continue}(t[s].c?.k)[0]/=255,(t[s].c?.k)[1]/=255,(t[s].c?.k)[2]/=255,(t[s].c?.k)[3]/=255}}}constructor(...t){super(...t),this.minimumVersion=[4,1,9]}}class en extends ee{iterateLayers(t){let{length:e}=t;for(let s=0;s<e;s++){if(t[s].hasMask){let e=t[s].masksProperties,{length:i}=e??[];for(let t=0;t<i;t++){if(!e)continue;if(e[t].pt?.k&&!Array.isArray(e[t].pt?.k)){let s=e[t].pt?.k;if(!s||Array.isArray(s))continue;s.c=!!e[t].cl;continue}let{length:s}=e[t].pt?.k??[];for(let i=0;i<s;i++){let s=(e[t].pt?.k)[i].s;s&&(s[0].c=!!e[t].cl);let r=(e[t].pt?.k)[i].e;r&&(r[0].c=!!e[t].cl)}}}4===t[s].ty&&this.completeClosingShapes(t[s].shapes)}}completeClosingShapes(t){let{length:e}=t;for(let s=e-1;s>=0;s--){if(t[s].ty===N.Group){this.completeClosingShapes(t[s].it);continue}if(t[s].ty!==N.Path)continue;if(t[s].ks?.k?.i){(t[s].ks?.k).c=!!t[s].closed;continue}let{length:e}=t[s].ks?.k??[];for(let i=0;i<e;i++)t[s].ks?.k[i]?.s&&((t[s].ks?.k)[i].s[0].c=!!t[s].closed),t[s].ks?.k[i]?.e&&((t[s].ks?.k)[i].e[0].c=!!t[s].closed)}}constructor(...t){super(...t),this.minimumVersion=[4,4,18]}}let eo=1,eh,el="Function not implemented.",ep={addEventListener:(t,e,s)=>{throw Error(el)},dispatchEvent:t=>{throw Error(el)},onerror:null,onmessage:t=>{throw Error("workerProxy: Method onmessage not implemented")},onmessageerror:null,postMessage:t=>{eh({data:t})},removeEventListener:(t,e,s)=>{throw Error(el)},terminate:()=>{throw Error(el)}},em={postMessage:t=>{ep.onmessage&&ep.onmessage({AT_TARGET:2,bubbles:!1,BUBBLING_PHASE:3,cancelable:!1,cancelBubble:!1,CAPTURING_PHASE:1,composed:!1,composedPath:()=>{throw Error(el)},currentTarget:null,data:t,defaultPrevented:!1,eventPhase:0,initEvent:(t,e,s)=>{throw Error(el)},initMessageEvent:(t,e,s,i,r,a,n,o)=>{throw Error(el)},isTrusted:!1,lastEventId:"",NONE:0,origin:"",ports:[],preventDefault:()=>{throw Error(el)},returnValue:!1,source:null,srcElement:null,stopImmediatePropagation:()=>{throw Error(el)},stopPropagation:()=>{throw Error(el)},target:null,timeStamp:0,type:""})}},ec={};function ed(t,s,i){eg();let r=ef(s,i);e?.postMessage({animation:t,id:r,type:"complete"})}function eu(t,s,i){eg();let r=ef(s,i);e?.postMessage({fullPath:th()?t:window.location.origin+window.location.pathname,id:r,path:t,type:"loadData"})}function ef(t,e){eo++;let s=`processId_${eo}`;try{return ec[s]={onComplete:t,onError:e},s}catch(t){throw console.error("DataManager}:\n",t),Error("Could not create animation proccess")}}function eg(){e||((e=function(t){if(!th()&&U()){let e=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"});return new Worker(URL.createObjectURL(e))}return eh=t,ep}(t=>{if("loadAnimation"===t.data.type)return void t3(t.data.path,t.data.fullPath,e=>{e&&t4(e),em.postMessage({id:t.data.id,payload:e,status:"success"})},()=>{em.postMessage({id:t.data.id,status:"error"})});if("complete"===t.data.type){let{animation:e,id:s}=t.data;t4(e),em.postMessage({id:s,payload:e,status:"success"});return}"loadData"===t.data.type&&t3(t.data.path,t.data.fullPath,e=>{em.postMessage({id:t.data.id,payload:e,status:"success"})},()=>{em.postMessage({id:t.data.id,status:"error"})})})).onmessage=({data:t})=>{let{id:e,payload:s,status:i}=t,r=ec[e];if(ec[e]=null,"success"===i)return void r.onComplete(s);r.onError&&r.onError()})}let ey={interface:null,plugin:null},eb=()=>ey.plugin,ev=()=>ey.interface;class ex{getComposition(t){let e=0,{length:s}=this.compositions;for(;e<s;){if(this.compositions[e].data&&this.compositions[e].data?.nm===t)return this.compositions[e].data?.xt&&this.compositions[e].prepareFrame(this.currentFrame),this.compositions[e].compInterface;e++}return null}registerComposition(t){this.compositions.push(t)}constructor(){this.compositions=[],this.currentFrame=0}}class ew{constructor(){this._imageLoaded=this.imageLoaded.bind(this),this._footageLoaded=this.footageLoaded.bind(this),this.testImageLoaded=this.testImageLoaded.bind(this),this.createFootageData=this.createFootageData.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[],this.proxyImage=this._createProxyImage()}createFootageData(t){let e={assetData:t,img:null};return eu(this.getAssetsPath(t,this.assetsPath,this.path),t=>{t&&(e.img=t),this._footageLoaded()},()=>{this._footageLoaded()}),e}createImageData(t){let e=this.getAssetsPath(t,this.assetsPath,this.path),s=tT("image"),i={assetData:t,img:s};return tO()?this.testImageLoaded(s):s.addEventListener("load",this._imageLoaded,!1),s.addEventListener("error",()=>{this.proxyImage&&(i.img=this.proxyImage),this._imageLoaded()},!1),s.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this._elementHelper?.append?this._elementHelper.append(s):this._elementHelper?.appendChild(s),i}destroy(){this.imagesLoadedCb=null,this.images.length=0}footageLoaded(){this.loadedFootagesCount++,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}getAsset(t){let e=0,{length:s}=this.images;for(;e<s;){if(this.images[e].assetData===t)return this.images[e].img;e++}return null}imageLoaded(){this.loadedAssets++,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}loadAssets(t,e){this.imagesLoadedCb=e;let{length:s}=t;for(let e=0;e<s;e++)if(!t[e].layers){if((!t[e].t||"seq"===t[e].t)&&this._createImageData){this.totalImages++;let s=this._createImageData(t[e]);s&&this.images.push(s);continue}3===Number(t[e].t)&&(this.totalFootages++,this.images.push(this.createFootageData(t[e])))}}loadedFootages(){return this.totalFootages===this.loadedFootagesCount}loadedImages(){return this.totalImages===this.loadedAssets}setAssetsPath(t){this.assetsPath=t||""}setCacheType(t,e){t===L.SVG?(this._elementHelper=e,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}setPath(t){this.path=t||""}_createProxyImage(){if(th())return null;let t=tF(L.Canvas);t.width=1,t.height=1;let e=t.getContext("2d");return e&&(e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1)),t}createImgData(t){let e=this.getAssetsPath(t,this.assetsPath,this.path),s=tF("img"),i={assetData:t,img:s};return s.crossOrigin="anonymous",s.addEventListener("load",this._imageLoaded,!1),s.addEventListener("error",()=>{this.proxyImage&&(i.img=this.proxyImage),this._imageLoaded()},!1),s.src=e,i}getAssetsPath(t,e,s){if(t.e)return t.p||"";if(e){let s=t.p;return s?.indexOf("images/")!==-1&&(s=s?.split("/")[1]),`${e}${s||""}`}let i=s;return i+=t.u??"",i+=t.p??""}testImageLoaded(t){if(th())return;let e=0,s=setInterval(()=>{(t.getBBox().width||e>500)&&(this._imageLoaded(),clearInterval(s)),e++},50)}}class e_ extends T{constructor(){super(),this.wrapper=null,this.autoloadSegments=!1,this.onComplete=null,this.onDestroy=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onSegmentStart=null,this._cbs={},this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=60,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.frameModifier=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=tA(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=J(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=new ex,this.imagePreloader=new ew,this.audioController=new t2,this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new E("drawnFrame",0,0,0),this.expressionsPlugin=eb()}adjustSegment(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>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")}advanceTime(t){if(this.isPaused||!this.isLoaded)return;let e=this.currentRawFrame+t*this.frameModifier,s=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount++,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)||(s=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&!0!==this.loop)?(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(s=!0,e=0)):this.setCurrentRawFrameValue(e),s&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}checkLoaded(){if(this.isLoaded||!this.renderer.globalData?.fontManager?.isLoaded||!this.imagePreloader?.loadedImages()&&this.renderer.rendererType===L.Canvas||!this.imagePreloader?.loadedFootages())return;this.isLoaded=!0;let t=eb();t?.initExpressions(this),this.renderer.initItems(),setTimeout(()=>{this.trigger("DOMLoaded")},0),this.gotoFrame(),this.autoplay&&this.play()}checkSegments(t){return this.segments.length>0&&(this.adjustSegment(this.segments.shift()??[0,0],t),!0)}configAnimation(t){try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor((this.animationData.op||1)-(this.animationData.ip||0)),this.firstFrame=Math.round(this.animationData.ip||0)),this.renderer.configAnimation(t),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,void 0!==this.animationData.fr&&(this.frameMult=this.animationData.fr/1e3),this.renderer.searchExtraCompositions(t.assets),this.markers=tj(t.markers??[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}}destroy(t){t&&this.name!==t||(this.renderer.destroy(),this.imagePreloader?.destroy(),this.trigger("destroy"),this._cbs={},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)}getAssetData(t){let e=0,s=this.assets.length;for(;e<s;){if(t===this.assets[e].id)return this.assets[e];e++}return null}getAssetsPath(t){let e;if(!t)return"";if(t.e)e=t.p||"";else if(this.assetsPath){let s=t.p;s?.indexOf("images/")!==-1&&(s=s?.split("/")[1]),e=this.assetsPath+(s||"")}else e=this.path+(t.u??"")+(t.p??"");return e}getDuration(t){return t?this.totalFrames:this.totalFrames/this.frameRate}getMarkerData(t){for(let e=0;e<this.markers.length;e++)if(this.markers[e].payload?.name===t)return this.markers[e];return null}getPath(){return this.path}getVolume(){return this.audioController.getVolume()}goToAndPlay(t,e,s){if(s&&this.name!==s)return;let i=Number(t);if(isNaN(i)){let e=this.getMarkerData(t);e&&(e.duration?this.playSegments([e.time,e.time+e.duration],!0):this.goToAndStop(e.time,!0))}else this.goToAndStop(i,e,s);this.play()}goToAndStop(t,e,s){if(!s||this.name===s){if(isNaN(Number(t))){let e=this.getMarkerData(t);e&&this.goToAndStop(e.time,!0)}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}}gotoFrame(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")}hide(){this.renderer.hide()}imagesLoaded(){this.trigger("loaded_images"),this.checkLoaded()}includeLayers(t){this.animationData.op&&t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-(this.animationData.ip||0)));let{assets:e,layers:s}=this.animationData,i,r=s.length,a=t.layers,{length:n}=a;for(let t=0;t<n;t++)for(i=0;i<r;){if(s[i].id===a[t].id){s[i]=a[t];break}i++}for((t.chars||t.fonts)&&(this.renderer.globalData?.fontManager?.addChars(t.chars),this.renderer.globalData?.fontManager?.addFonts(t.fonts,this.renderer.globalData.defs)),r=t.assets.length,i=0;i<r;i++)e.push(t.assets[i]);this.animationData.__complete=!1,ed(this.animationData,this.onSegmentComplete)}loadNextSegment(){let{segments:t}=this.animationData;if(!t||0===t.length||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}let e=t.shift();this.timeCompleted=Number(e?.time)*this.frameRate;let s=`${this.path+(this.fileName||"")}_${this.segmentPos}.json`;this.segmentPos++,eu(s,this.includeLayers.bind(this),()=>{this.trigger("data_failed")})}loadSegments(){let{segments:t}=this.animationData;t||(this.timeCompleted=this.totalFrames),this.loadNextSegment()}mute(t){t&&this.name!==t||this.audioController.mute()}onSegmentComplete(t){this.animationData=t;let e=eb();e?.initExpressions(this),this.loadNextSegment()}onSetupError(){this.trigger("data_failed")}pause(t){(!t||this.name===t)&&(this.isPaused||(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause()))}play(t){(!t||this.name===t)&&this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))}playSegments(t,e){if(e&&(this.segments.length=0),Array.isArray(t[0])){let{length:e}=t;for(let s=0;s<e;s++)this.segments.push(t[s])}else this.segments.push(t);this.segments.length>0&&e&&this.adjustSegment(this.segments.shift()??[0,0],0),this.isPaused&&this.play()}preloadImages(){this.imagePreloader&&(this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this)))}renderFrame(t){if(this.isLoaded)try{this.expressionsPlugin?.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}}resetSegments(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)}resize(t,e){this.renderer.updateContainerSize("number"==typeof t?t:void 0,"number"==typeof e?e:void 0)}setCurrentRawFrameValue(t){this.currentRawFrame=t,this.gotoFrame()}setData(t,e){try{let s=e;s&&"object"!=typeof s&&(s=JSON.parse(s));let i={animationData:s,wrapper:t},r=t.attributes;i.path=r.getNamedItem("data-animation-path")?.value??r.getNamedItem("data-bm-path")?.value??r.getNamedItem("bm-path")?.value??"";let a=r.getNamedItem("data-anim-type")?.value??r.getNamedItem("data-bm-type")?.value??r.getNamedItem("bm-type")?.value??r.getNamedItem("data-bm-renderer")?.value??r.getNamedItem("bm-renderer")?.value??j();Object.values(L).includes(a)?i.animType=a:i.animType=L.Canvas;let n=r.getNamedItem("data-anim-loop")?.value??r.getNamedItem("data-bm-loop")?.value??r.getNamedItem("bm-loop")?.value??"";"false"===n?i.loop=!1:"true"===n?i.loop=!0:""!==n&&(i.loop=parseInt(n,10));let o=r.getNamedItem("data-anim-autoplay")?.value??r.getNamedItem("data-bm-autoplay")?.value??r.getNamedItem("bm-autoplay")?.value??!0;i.autoplay="false"!==o,i.name=r.getNamedItem("data-name")?.value??r.getNamedItem("data-bm-name")?.value??r.getNamedItem("bm-name")?.value??"";let h=r.getNamedItem("data-anim-prerender")?.value??r.getNamedItem("data-bm-prerender")?.value??r.getNamedItem("bm-prerender")?.value??"";"false"===h&&(i.prerender=!1),i.path?this.setParams(i):this.trigger("destroy")}catch(t){throw console.error(`${this.constructor.name}:
|
|
2
|
+
`,t),Error(`${this.constructor.name}: Could not set data`)}}setDirection(t,e){e&&this.name!==e||(this.playDirection=t<0?-1:1,this.updaFrameModifier())}setLoop(t){this.loop=t}setParams(t){try{(t.wrapper||t.container)&&(this.wrapper=t.wrapper??t.container??null);let s=L.SVG;t.animType?s=t.animType:t.renderer&&(s=t.renderer);let i=q(s);this.renderer=new i(this,t.rendererSettings),this.imagePreloader?.setCacheType(s,this.renderer.globalData?.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=s,""===t.loop||null===t.loop||void 0===t.loop||!0===t.loop?this.loop=!0:!1===t.loop?this.loop=!1:this.loop=parseInt(`${t.loop}`,10),this.autoplay=!!(!("autoplay"in t)||t.autoplay),this.name=t.name??"",this.autoloadSegments=!!(!Object.hasOwn(t,"autoloadSegments")||t.autoloadSegments),this.assetsPath=t.assetsPath??this.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(t.path.includes("\\")?this.path=t.path.slice(0,Math.max(0,t.path.lastIndexOf("\\")+1)):this.path=t.path.slice(0,Math.max(0,t.path.lastIndexOf("/")+1)),this.fileName=t.path.slice(Math.max(0,t.path.lastIndexOf("/")+1)),this.fileName=this.fileName.slice(0,Math.max(0,this.fileName.lastIndexOf(".json"))),function(t,s,i){if(th())return;eg();let r=ef(s,i);e?.postMessage({fullPath:th()?t:window.location.origin+window.location.pathname,id:r,path:t,type:"loadAnimation"})}(t.path,this.configAnimation,this.onSetupError))}catch(t){throw console.error(`${this.constructor.name}:
|
|
3
|
+
`,t),Error(`${this.constructor.name}: Could not set params`)}}setSegment(t,e){let s=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?s=t:this.currentRawFrame+this.firstFrame>e&&(s=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==s&&this.goToAndStop(s,!0)}setSpeed(t,e){e&&this.name!==e||(this.playSpeed=t,this.updaFrameModifier())}setSubframe(t){this.isSubframeEnabled=!!t}setupAnimation(t){ed(t,this.configAnimation)}setVolume(t,e){e&&this.name!==e||this.audioController.setVolume(t)}show(){this.renderer.show()}stop(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))}togglePause(t){t&&this.name!==t||(this.isPaused?this.play():this.pause())}trigger(t){try{if(!this._cbs[t])return;switch(t){case"enterFrame":this.triggerEvent(t,new E(t,this.currentFrame,this.totalFrames,this.frameModifier)),this.onEnterFrame?.(new E(t,this.currentFrame,this.totalFrames,this.frameMult));break;case"drawnFrame":this.triggerEvent(t,new k(t,this.currentFrame,this.frameModifier,this.totalFrames));break;case"loopComplete":this.triggerEvent(t,new S(t,Number(this.loop),this.playCount,this.frameMult)),this.onLoopComplete?.(new S(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new C(t,this.frameMult)),this.onComplete?.(new C(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new M(t,this.firstFrame,this.totalFrames)),this.onSegmentStart?.(new M(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new P(t,this)),this.onDestroy?.(new P(t,this));break;default:this.triggerEvent(t)}}catch(t){console.error(`${this.constructor.name}:
|
|
4
|
+
`,t)}}triggerConfigError(t){let e=new D(t,this.currentFrame);this.triggerEvent("error",e),this.onError?.(e)}triggerRenderFrameError(t){let e=new A(t,this.currentFrame);this.triggerEvent("error",e),this.onError?.(e)}unmute(t){t&&this.name!==t||this.audioController.unmute()}updaFrameModifier(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)}updateDocumentData(t,e,s){try{let i=this.renderer.getElementByPath(t);i?.updateDocumentData([],e,s)}catch(t){console.error(this.constructor.name,t)}}waitForFontsLoaded(){if(this.renderer.globalData?.fontManager?.isLoaded)return void this.checkLoaded();setTimeout(this.waitForFontsLoaded.bind(this),20)}}let eE=!0,eC=0,ek=0,eS=0,eM=[];function eP(){eS++,!eS||!eE||th()||(window.requestAnimationFrame(eA),eE=!1)}function eA(t){eC=t,th()||window.requestAnimationFrame(eT)}function eD({target:t}){let e=0;if(!t)throw Error("No animation to remove");for(;e<ek;)eM[e].animation===t&&(eM.splice(e,1),e--,ek-=1,t.isPaused||eI()),e++}function eT(t){let e=t-eC;for(let t=0;t<ek;t++)eM[t].animation.advanceTime(e);eC=t,eS&&1?th()||window.requestAnimationFrame(eT):eE=!0}function eF(t,e){t.addEventListener("destroy",eD),t.addEventListener("_active",eP),t.addEventListener("_idle",eI),eM.push({animation:t,elem:e}),ek++}function eI(){eS--}let e$=(()=>{function t(t,e){let s,i=[];switch(t){case F.Int16:case F.Uint8c:s=1;break;case F.Float32:case F.Int32:case F.Uint8:default:s=1.1}for(let t=0;t<e;t++)i.push(s);return i}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(e,s){return e===F.Float32?new Float32Array(s):e===F.Int16?new Int16Array(s):e===F.Uint8c?new Uint8ClampedArray(s):t(e,s)}:t})();function eL(t){return Array.from({length:t})}class eN{constructor(){this.props=e$(F.Float32,16),this._identity=!0,this._identityCalculated=!1,this.reset()}applyToPoint(t,e,s){return{x:t*this.props[0]+e*this.props[4]+s*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+s*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+s*this.props[10]+this.props[14]}}applyToPointArray(t,e,s){return this.isIdentity()?[t,e,s]:[t*this.props[0]+e*this.props[4]+s*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+s*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+s*this.props[10]+this.props[14]]}applyToPointStringified(t,e){if(this.isIdentity())return`${t},${e}`;let s=this.props;return`${Math.round((t*s[0]+e*s[4]+s[12])*100)/100},${Math.round((t*s[1]+e*s[5]+s[13])*100)/100}`}applyToTriplePoints(t,e,s){let i=e$(F.Float32,6);if(this.isIdentity())i.set([t[0],t[1],e[0],e[1],s[0],s[1]]);else{let r=this.props[0],a=this.props[1],n=this.props[4],o=this.props[5],h=this.props[12],l=this.props[13];i.set([t[0]*r+t[1]*n+h,t[0]*a+t[1]*o+l,e[0]*r+e[1]*n+h,e[0]*a+e[1]*o+l,s[0]*r+s[1]*n+h,s[0]*a+s[1]*o+l])}return i}applyToX(t,e,s){return t*this.props[0]+e*this.props[4]+s*this.props[8]+this.props[12]}applyToY(t,e,s){return t*this.props[1]+e*this.props[5]+s*this.props[9]+this.props[13]}applyToZ(t,e,s){return t*this.props[2]+e*this.props[6]+s*this.props[10]+this.props[14]}clone(t){return t.props.set(this.props),t}cloneFromProps(t){return this.props.set(t),this}equals(t){return this.props.every((e,s)=>e===t?.props[s])}getInverseMatrix(){let t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,s=-this.props[1]/t,i=-this.props[4]/t,r=this.props[0]/t,a=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,n=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,o=new eN;return o.setTransform(e,s,0,0,i,r,0,0,0,0,1,0,a,n,0,1),o}inversePoint(t){return this.getInverseMatrix().applyToPoint(t[0],t[1],t[2]||0)}inversePoints(t){return t.map(t=>this.inversePoint(t))}isIdentity(){return this._identityCalculated||(this._identity=1===this.props[0]&&0===this.props[1]&&0===this.props[2]&&0===this.props[3]&&0===this.props[4]&&1===this.props[5]&&0===this.props[6]&&0===this.props[7]&&0===this.props[8]&&0===this.props[9]&&1===this.props[10]&&0===this.props[11]&&0===this.props[12]&&0===this.props[13]&&0===this.props[14]&&1===this.props[15],this._identityCalculated=!0),this._identity}multiply(t){return this.transform(...t.props)}reset(){return this.props.set([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this}rotate(t){if(!t)return this;let e=Math.cos(t),s=Math.sin(t);return this._t(e,-s,0,0,s,e,0,0,0,0,1,0,0,0,0,1)}rotateX(t){if(!t)return this;let e=Math.cos(t),s=Math.sin(t);return this._t(1,0,0,0,0,e,-s,0,0,s,e,0,0,0,0,1)}rotateY(t){if(!t)return this;let e=Math.cos(t),s=Math.sin(t);return this._t(e,0,s,0,0,1,0,0,-s,0,e,0,0,0,0,1)}rotateZ(t){return this.rotate(t)}scale(t,e,s=1){return 1===t&&1===e&&1===s?this:this._t(t,0,0,0,0,e,0,0,0,0,s,0,0,0,0,1)}setTransform(t,e,s,i,r,a,n,o,h,l,p,m,c,d,u,f){return this.props.set([t,e,s,i,r,a,n,o,h,l,p,m,c,d,u,f]),this}shear(t,e){return this._t(1,e,t,1,0,0)}skew(t,e){return this.shear(Math.tan(t),Math.tan(e))}skewFromAxis(t,e){let s=Math.cos(e),i=Math.sin(e);return this._t(s,i,0,0,-i,s,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,Math.tan(t),1,0,0,0,0,1,0,0,0,0,1)._t(s,-i,0,0,i,s,0,0,0,0,1,0,0,0,0,1)}to2dCSS(){let t=this.roundMatrixProperty(this.props[0]),e=this.roundMatrixProperty(this.props[1]),s=this.roundMatrixProperty(this.props[4]),i=this.roundMatrixProperty(this.props[5]),r=this.roundMatrixProperty(this.props[12]),a=this.roundMatrixProperty(this.props[13]);return`matrix(${t},${e},${s},${i},${r},${a})`}toCSS(){let t="matrix3d(";for(let e=0;e<16;e++)t+=`${Math.round(1e4*this.props[e])/1e4}`+(15===e?")":",");return t}transform(t,e,s,i,r,a,n,o,h,l,p,m,c,d,u,f){let g=this.props;if(1===t&&0===e&&0===s&&0===i&&0===r&&1===a&&0===n&&0===o&&0===h&&0===l&&1===p&&0===m)return g[12]=g[12]*t+g[15]*c,g[13]=g[13]*a+g[15]*d,g[14]=g[14]*p+g[15]*u,g[15]*=f,this._identityCalculated=!1,this;let y=g[0],b=g[1],v=g[2],x=g[3],w=g[4],_=g[5],E=g[6],C=g[7],k=g[8],S=g[9],M=g[10],P=g[11],A=g[12],D=g[13],T=g[14],F=g[15];return g[0]=y*t+b*r+v*h+x*c,g[1]=y*e+b*a+v*l+x*d,g[2]=y*s+b*n+v*p+x*u,g[3]=y*i+b*o+v*m+x*f,g[4]=w*t+_*r+E*h+C*c,g[5]=w*e+_*a+E*l+C*d,g[6]=w*s+_*n+E*p+C*u,g[7]=w*i+_*o+E*m+C*f,g[8]=k*t+S*r+M*h+P*c,g[9]=k*e+S*a+M*l+P*d,g[10]=k*s+S*n+M*p+P*u,g[11]=k*i+S*o+M*m+P*f,g[12]=A*t+D*r+T*h+F*c,g[13]=A*e+D*a+T*l+F*d,g[14]=A*s+D*n+T*p+F*u,g[15]=A*i+D*o+T*m+F*f,this._identityCalculated=!1,this}translate(t,e,s){let i=s||0;return 0!==t||0!==e||0!==i?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,i,1):this}_t(...t){return this.transform(...t)}roundMatrixProperty(t){return t<1e-6&&t>0||t>-1e-6&&t<0?Math.round(1e4*t)/1e4:t}}class eB{init(t){this.effectsManager=t,this.type=B.TransformEffect,this.matrix=new eN,this.opacity=-1,this._mdf=!1,this._opMdf=!1}renderFrame(t){if(this._opMdf=!1,this._mdf=!1,!t&&!this.effectsManager?._mdf)return;let e=this.effectsManager?.effectElements??[],s=e[0].p.v,i=e[1].p.v,r=1===e[2].p.v,a=e[3].p.v,n=r?a:e[4].p.v,o=e[5].p.v,h=e[6].p.v,l=e[7].p.v;this.matrix?.reset(),this.matrix?.translate(-s[0],-s[1],s[2]),this.matrix?.scale(.01*n,.01*a,1),this.matrix?.rotate(-l*ti),this.matrix?.skewFromAxis(-o*ti,(h+90)*ti),this.matrix?.translate(i[0],i[1],0),this._mdf=!0,this.opacity!==e[8].p.v&&(this.opacity=e[8].p.v,this._opMdf=!0)}constructor(){this.opacity=1}}class eV{createMergeNode(t,e){let s,i=tT("feMerge");i.setAttribute("result",t);let{length:r}=e;for(let t=0;t<r;t++)(s=tT("feMergeNode")).setAttribute("in",e[t]),i.appendChild(s),i.appendChild(s);return i}}let eR=[],ez="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",eO={};class eG{constructor(t){let e,{length:s}=t.data.ef??[];this.filters=[];for(let i=0;i<s;i++){e=null;let s=t.data.ef?.[i].ty;s&&eO[s]&&(e=new eO[s].effect(t.effectsManager?.effectElements[i],t)),e&&this.filters.push(e)}this.filters.length>0&&t.addRenderableComponent(this)}getEffects(t){let{length:e}=this.filters,s=[];for(let i=0;i<e;i++)this.filters[i].type===t&&s.push(this.filters[i]);return s}renderFrame(t){let{length:e}=this.filters;for(let s=0;s<e;s++)this.filters[s].renderFrame(t)}}function eq(){let t=tT("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}function ej(t,e){let s=tT("filter");return s.id=t,e||(s.setAttribute("filterUnits","objectBoundingBox"),s.setAttribute("x","0%"),s.setAttribute("y","0%"),s.setAttribute("width","100%"),s.setAttribute("height","100%")),s}class eW{constructor(){if(this.maskType=!0,this.offscreenCanvas="undefined"!=typeof OffscreenCanvas,this.svgLumaHidden=!0,!tV())return;this.maskType=!/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),this.svgLumaHidden=!/firefox/i.test(navigator.userAgent)}}let eH="filter_result_",eY={};class eU{constructor(t){let e,s="SourceGraphic",i=tA(),r=ej(i,!0),a=0;this.filters=[];let{length:n}=t.data.ef??[];for(let i=0;i<n;i++){e=null;let{ty:n}=t.data.ef?.[i]??{ty:null},o=null!==n&&eY[n]?eY[n].effect:null;o&&n&&t.effectsManager&&(e=new o(r,t.effectsManager.effectElements[i],t,`${eH}${a}`,s),s=`${eH}${a}`,eY[n]?.countsAsEffect&&a++),e&&this.filters.push(e)}a&&(t.globalData.defs.appendChild(r),t.layerElement?.setAttribute("filter",`url(${K()}#${i})`)),this.filters.length>0&&t.addRenderableComponent(this)}getEffects(t){let{length:e}=this.filters,s=[];for(let i=0;i<e;i++)this.filters[i].type===t&&s.push(this.filters[i]);return s}renderFrame(t){let{length:e}=this.filters;for(let s=0;s<e;s++)this.filters[s].renderFrame(t)}}let eX=(t,e,s)=>{eY[t]={countsAsEffect:s,effect:e}};class eJ{constructor(t,e,s){this._length=0,this._maxLength=t,this._create=e,this._release=s,this.pool=eL(this._maxLength),this.newElement=this.newElement.bind(this),this.release=this.release.bind(this)}newElement(){let t;return this._length?(this._length-=1,t=this.pool[this._length]):t=this._create(),t}release(t){if(this._length===this._maxLength){var e;this.pool=[...e=this.pool,...eL(e.length)],this._maxLength*=2}this._release&&this._release(t),this.pool[this._length]=t,this._length++}}let eZ=new eJ(8,()=>({addedLength:0,lengths:e$(F.Float32,H()),percents:e$(F.Float32,H())})),eK=new eJ(8,()=>({lengths:[],totalLength:0}),t=>{let{length:e}=t.lengths;for(let s=0;s<e;s++)eZ.release(t.lengths[s]);t.lengths.length=0}),eQ=e$(F.Float32,8);function e0(t,e,s,i){let r={},a=`${t[0]}_${t[1]}_${e[0]}_${e[1]}_${s[0]}_${s[1]}_${i[0]}_${i[1]}`.replaceAll(".","p");if(!r[a]){let n=H(),o,h,l=0,p,m,c=null;2===t.length&&(t[0]!==e[0]||t[1]!==e[1])&&e3(t[0],t[1],e[0],e[1],t[0]+s[0],t[1]+s[1])&&e3(t[0],t[1],e[0],e[1],e[0]+i[0],e[1]+i[1])&&(n=2);let d=new e9(n),{length:u}=s;for(let r=0;r<n;r++){m=eL(u),h=r/(n-1),p=0;for(let r=0;r<u;r++)o=Math.pow(1-h,3)*t[r]+3*Math.pow(1-h,2)*h*(t[r]+s[r])+3*(1-h)*Math.pow(h,2)*(e[r]+i[r])+Math.pow(h,3)*e[r],m[r]=o,null!==c&&(p+=Math.pow(Number(m[r])-Number(c[r]),2));l+=p=Math.sqrt(p),d.points[r]=new e8(p,m),c=m}d.segmentLength=l,r[a]=d}return r[a]}function e1(t,e,s,i,r,a,n){let o=r,h=a;o<0?o=0:o>1&&(o=1);let l=e6(o,n),p=e6(h=h>1?1:h,n),m=1-l,c=1-p,d=m*m*m,u=l*m*m*3,f=l*l*m*3,g=l*l*l,y=m*m*c,b=l*m*c+m*l*c+m*m*p,v=l*l*c+m*l*p+l*m*p,x=l*l*p,w=m*c*c,_=l*c*c+m*p*c+m*c*p,E=l*p*c+m*p*p+l*c*p,C=l*p*p,k=c*c*c,S=p*c*c+c*p*c+c*c*p,M=p*p*c+c*p*p+p*c*p,P=p*p*p,{length:A}=t;for(let r=0;r<A;r++)eQ[4*r]=Math.round((d*t[r]+u*s[r]+f*i[r]+g*e[r])*1e3)/1e3,eQ[4*r+1]=Math.round((y*t[r]+b*s[r]+v*i[r]+x*e[r])*1e3)/1e3,eQ[4*r+2]=Math.round((w*t[r]+_*s[r]+E*i[r]+C*e[r])*1e3)/1e3,eQ[4*r+3]=Math.round((k*t[r]+S*s[r]+M*i[r]+P*e[r])*1e3)/1e3;return eQ}function e2(t){let e,s=eK.newElement(),i=t.c,r=t.v,a=t.o,n=t.i,o=t._length||0,{lengths:h}=s,l=0;for(e=0;e<o-1;e++)h[e]=e4(r[e],r[e+1],a[e],n[e+1]),l+=h[e].addedLength;return i&&o&&(h[e]=e4(r[e],r[0],a[e],n[0]),l+=h[e].addedLength),s.totalLength=l,s}function e3(t,e,s,i,r,a){let n=t*i+e*r+s*a-r*i-a*t-s*e;return n>-.001&&n<.001}function e5(t,e,s,i,r,a,n,o,h){let l;if(0===s&&0===a&&0===h)return e3(t,e,i,r,n,o);let p=Math.sqrt(Math.pow(i-t,2)+Math.pow(r-e,2)+Math.pow(a-s,2)),m=Math.sqrt(Math.pow(n-t,2)+Math.pow(o-e,2)+Math.pow(h-s,2)),c=Math.sqrt(Math.pow(n-i,2)+Math.pow(o-r,2)+Math.pow(h-a,2));return(l=p>m?p>c?p-m-c:c-m-p:c>m?c-m-p:m-p-c)>-1e-4&&l<1e-4}function e4(t,e,s,i){let r=H(),a,n,o=0,h,l=[],p=[],m=eZ.newElement(),c=s.length;for(let d=0;d<r;d++){n=d/(r-1),h=0;for(let r=0;r<c;r++)a=Math.pow(1-n,3)*t[r]+3*Math.pow(1-n,2)*n*s[r]+3*(1-n)*Math.pow(n,2)*i[r]+Math.pow(n,3)*e[r],l[r]=a,"number"==typeof p[r]&&(h+=Math.pow(l[r]-p[r],2)),p[r]=l[r];h&&(o+=h=Math.sqrt(h)),m.percents[d]=n,m.lengths[d]=o}return m.addedLength=o,m}function e6(t,{addedLength:e,lengths:s,percents:i}){let{length:r}=i,a=Math.floor((r-1)*t),n=t*e,o=0;if(a===r-1||0===a||n===s[a])return i[a];let h=s[a]>n?-1:1,l=!0;for(;l;)if(s[a]<=n&&s[a+1]>n?(o=(n-s[a])/(s[a+1]-s[a]),l=!1):a+=h,a<0||a>=r-1){if(a===r-1)return i[a];l=!1}return i[a]+(i[a+1]-i[a])*o}class e9{constructor(t){this.segmentLength=0,this.points=Array.from({length:t})}}class e8{constructor(t,e){this.partialLength=t,this.point=e}}let e7={getPointInSegment:function(t,e,s,i,r,a){let n=e6(r,a),o=1-n;return[Math.round((o*o*o*t[0]+(n*o*o+o*n*o+o*o*n)*s[0]+(n*n*o+o*n*n+n*o*n)*i[0]+n*n*n*e[0])*1e3)/1e3,Math.round((o*o*o*t[1]+(n*o*o+o*n*o+o*o*n)*s[1]+(n*n*o+o*n*n+n*o*n)*i[1]+n*n*n*e[1])*1e3)/1e3]},getSegmentsLength:e2},st={};function se(t,e,s,i,r){let a=r||`bez_${t}_${e}_${s}_${i}`.replaceAll(".","p");if(st[a])return st[a];let n=new ss([t,e,s,i]);return st[a]=n,n}class ss{constructor(t){this.float32ArraySupported="function"==typeof Float32Array,this.kSplineTableSize=11,this.kSampleStepSize=1/(this.kSplineTableSize-1),this.NEWTON_ITERATIONS=4,this.NEWTON_MIN_SLOPE=.001,this.SUBDIVISION_MAX_ITERATIONS=10,this.SUBDIVISION_PRECISION=1e-7,this._p=t,this._mSampleValues=this.float32ArraySupported?new Float32Array(this.kSplineTableSize):Array.from({length:this.kSplineTableSize}),this._precomputed=!1,this.get=this.get.bind(this)}_calcSampleValues(){let t=this._p[0],e=this._p[2];for(let s=0;s<this.kSplineTableSize;++s)this._mSampleValues[s]=this.calcBezier(s*this.kSampleStepSize,t,e)}_getTForX(t){let e=this._p[0],s=this._p[2],i=this._mSampleValues,r=0,a=1,n=this.kSplineTableSize-1;for(;a!==n&&Number(i[a])<=t;++a)r+=this.kSampleStepSize;let o=r+(t-Number(i[--a]))/(Number(i[a+1])-Number(i[a]))*this.kSampleStepSize,h=this.getSlope(o,e,s);return h>=this.NEWTON_MIN_SLOPE?this.newtonRaphsonIterate(t,o,e,s):0===h?o:this.binarySubdivide(t,r,r+this.kSampleStepSize,e,s)}_precompute(){let t=this._p[0],e=this._p[1],s=this._p[2],i=this._p[3];this._precomputed=!0,(t!==e||s!==i)&&this._calcSampleValues()}get(t){let e=this._p[0],s=this._p[1],i=this._p[2],r=this._p[3];return(this._precomputed||this._precompute(),e===s&&i===r)?t:0===t?0:1===t?1:this.calcBezier(this._getTForX(t),s,r)}A(t,e){return 1-3*e+3*t}B(t,e){return 3*e-6*t}binarySubdivide(t,e,s,i,r){let a=e,n=s,o,h,l=0;do h=a+(n-a)/2,(o=this.calcBezier(h,i,r)-t)>0?n=h:a=h;while(Math.abs(o)>this.SUBDIVISION_PRECISION&&++l<this.SUBDIVISION_MAX_ITERATIONS);return h}C(t){return 3*t}calcBezier(t,e,s){return((this.A(e,s)*t+this.B(e,s))*t+this.C(e))*t}getSlope(t,e,s){return 3*this.A(e,s)*t*t+2*this.B(e,s)*t+this.C(e)}newtonRaphsonIterate(t,e,s,i){let r=e;for(let e=0;e<this.NEWTON_ITERATIONS;++e){let e=this.getSlope(r,s,i);if(0===e)break;let a=this.calcBezier(r,s,i)-t;r-=a/e}return r}}class si{addDynamicProperty(t){this.dynamicProperties.includes(t)||(this.dynamicProperties.push(t),this.container?.addDynamicProperty(this),this._isAnimated=!0)}getValue(t){throw Error(`${this.constructor.name}: Method getValue is not implemented`)}initDynamicPropertyContainer(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}iterateDynamicProperties(){this._mdf=!1;let{length:t}=this.dynamicProperties;for(let e=0;e<t;e++)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0);return 0}setGroupProperty(t){}constructor(){this.dynamicProperties=[]}}class sr extends si{addEffect(t){this.effectsSequence.push(t),this.container?.addDynamicProperty(this)}getSpeedAtTime(t){throw Error(`${this.constructor.name}: Method getSpeedAtTime is not implemented`)}getValueAtCurrentTime(){this._caching=this._caching??{};let t=Number(this.offsetTime),e=Number(this.comp?.renderedFrame)-t,s=this.keyframes[0].t-t,i=this.keyframes.length-1,r=this.keyframes[i].t-t,a=Number(this._caching.lastFrame);if(!(e===a||-999999!==a&&(a>=r&&e>=r||a<s&&e<s))){a>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);let t=this.interpolateValue(e,this._caching);this.pv=t}return this._caching.lastFrame=e,this.pv}getValueAtTime(t,e){throw Error(`${this.constructor.name}: Method getValueAtTime is not implemented`)}getVelocityAtTime(t){throw Error(`${this.constructor.name}: Method getVelocityAtTime is not implemented`)}initiateExpression(t,e,s){throw Error("Method not implemented")}interpolateValue(t,e={}){let s,i=Number(this.offsetTime),r=[0,0,0];this.propType===V.MultiDimensional&&this.pv&&(r=e$(F.Float32,this.pv.length));let a=e.lastIndex||0,n=a,o=this.keyframes.length-1,h=!0,l=this.keyframes[0],p=this.keyframes[1];for(;h;){if(l=this.keyframes[n],p=this.keyframes[n+1],n===o-1&&t>=p.t-i){l.h&&(l=p),a=0;break}if(p.t-i>t){a=n;break}n<o-1?n++:(a=0,h=!1)}let m=this.keyframesMetadata[n]||{},c,d,u,f,g=null,y=p.t-i,b=l.t-i;if(l.to&&l.s){m.bezierData=m.bezierData??e0(l.s,p.s??l.e,l.to,l.ti);let{__fnct:s,bezierData:i}=m;if(t>=y||t<b){let e=t>=y?i.points.length-1:0;c=i.points[e].point.length;for(let t=0;t<c;t++)r[t]=i.points[e].point[t]}else{s?g=s:m.__fnct=g=se(l.o.x,l.o.y,l.i.x,l.i.y,l.n).get,d=g((t-b)/(y-b));let a=i.segmentLength*d,o,p=Number(e.lastFrame)<t&&e._lastKeyframeIndex===n?e._lastAddedLength:0;for(f=Number(e.lastFrame)<t&&e._lastKeyframeIndex===n?e._lastPoint:0,h=!0,u=i.points.length;h;){if(p+=i.points[f].partialLength,0===a||0===d||f===i.points.length-1){c=i.points[f].point.length;for(let t=0;t<c;t++)r[t]=i.points[f].point[t];break}if(a>=p&&a<p+i.points[f+1].partialLength){o=(a-p)/i.points[f+1].partialLength,c=i.points[f].point.length;for(let t=0;t<c;t++)r[t]=i.points[f].point[t]+(i.points[f+1].point[t]-i.points[f].point[t])*o;break}f<u-1?f++:h=!1}e._lastPoint=f,e._lastAddedLength=p-i.points[f].partialLength,e._lastKeyframeIndex=n}}else{let e,i,a,h,c;if(o=l.s?.length||0,s=p.s??l.e,this.sh&&1!==l.h)t>=y?(r[0]=s[0],r[1]=s[1],r[2]=s[2]):t<=b&&l.s?(r[0]=l.s[0],r[1]=l.s[1],r[2]=l.s[2]):tX(r,t0(tI(l.s),tI(s),(t-b)/(y-b)));else for(n=0;n<o;n++)1!==l.h&&(t>=y?d=1:t<b?d=0:(l.o.x.constructor===Array?(m.__fnct=m.__fnct??[],m.__fnct[n]?g=m.__fnct[n]:Array.isArray(l.o.y)&&Array.isArray(l.i.y)&&Array.isArray(l.i.x)&&(e=l.o.x[n]??l.o.x[0],i=l.o.y[n]??l.o.y[0],g=se(e,i,a=l.i.x[n]??l.i.x[0],l.i.y[n]??l.i.y[0]).get,m.__fnct[n]=g)):m.__fnct?g=m.__fnct:(e=l.o.x,i=l.o.y,g=se(e,i,a=l.i.x,l.i.y).get,l.keyframeMetadata=g),d=g?.((t-b)/(y-b)))),s=p.s??l.e,void 0!==(c=1===l.h?l.s?.[n]:Number(l.s?.[n])+(s[n]-Number(l.s?.[n]))*Number(d))&&(this.propType===V.MultiDimensional?r[n]=c:r=c)}return e.lastIndex=a,r}processEffectsSequence(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(!this.elem)throw Error(`${this.constructor.name}: elem (ElementInterface) is not implemented`);if(this.elem.globalData?.frameId===this.frameId||0===this.effectsSequence.length)return 0;if(this.lock)return this.setVValue(this.pv),0;this.lock=!0,this._mdf=!!this._isFirstFrame;let t=this.effectsSequence.length,e=this.kf?this.pv:this.data.k;for(let s=0;s<t;s++)e=this.effectsSequence[s](e);return this.setVValue(e),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData?.frameId,0}setVValue(t){let e;if("number"==typeof t&&this.propType===V.UniDimensional){e=t*Number(this.mult),Math.abs(this.v-e)>1e-5&&(this.v=e,this._mdf=!0);return}let s=0,{length:i}=this.v;for(;s<i;)e=t[s]*Number(this.mult),Math.abs(this.v[s]-e)>1e-5&&(this.v[s]=e,this._mdf=!0),s++}valueAtTime(t,e){throw Error(`${this.constructor.name}: Method valueAtTime is not implemented`)}constructor(...t){super(...t),this.effectsSequence=[],this.initFrame=-999999,this.keyframes=[],this.keyframesMetadata=[],this.offsetTime=0}}class sa extends sr{constructor(t,e,s=null,i=null){super(),this.propType=V.UniDimensional,this.mult=s||1,this.data=e,this.v=e.k*(s||1),this.pv=e.k,this._mdf=!1,this.elem=t,this.container=i,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=this.processEffectsSequence}}class sn extends sr{constructor(t,e,s=null,i=null){super(),this.propType=V.MultiDimensional,this.mult=s||1,this.data=e,this._mdf=!1,this.elem=t,this.container=i,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;let{length:r}=e.k;this.v=e$(F.Float32,r),this.pv=e$(F.Float32,r),this.vel=e$(F.Float32,r);for(let t=0;t<r;t++)this.v[t]=e.k[t]*this.mult,this.pv[t]=e.k[t];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=this.processEffectsSequence}}class so extends sr{constructor(t,e,s=null,i=null){super(),this.propType=V.UniDimensional,this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={_lastKeyframeIndex:-1,lastFrame:this.initFrame,lastIndex:0,value:0},this.k=!0,this.kf=!0,this.data=e,this.mult=s||1,this.elem=t,this.container=i,this.comp=t.comp,this.v=this.initFrame,this.pv=this.initFrame,this._isFirstFrame=!0,this.getValue=this.processEffectsSequence,this.effectsSequence=[this.getValueAtCurrentTime.bind(this)]}}class sh extends sr{constructor(t,e,s=null,i=null){let r,a,n,o;super(),this.propType=V.MultiDimensional;let{length:h}=e.k;for(let t=0;t<h-1;t++)e.k[t].to&&e.k[t].s&&e.k[t+1]?.s&&(r=e.k[t].s,a=e.k[t+1].s,n=e.k[t].to,o=e.k[t].ti,(2===r.length&&(r[0]!==a[0]||r[1]!==a[1])&&e3(r[0],r[1],a[0],a[1],r[0]+n[0],r[1]+n[1])&&e3(r[0],r[1],a[0],a[1],a[0]+o[0],a[1]+o[1])||3===r.length&&(r[0]!==a[0]||r[1]!==a[1]||r[2]!==a[2])&&e5(r[0],r[1],r[2],a[0],a[1],a[2],r[0]+n[0],r[1]+n[1],r[2]+n[2])&&e5(r[0],r[1],r[2],a[0],a[1],a[2],a[0]+o[0],a[1]+o[1],a[2]+o[2]))&&(e.k[t].to=null,e.k[t].ti=null),(r[0]===a[0]&&r[1]===a[1]&&0===n[0]&&0===n[1]&&0===o[0]&&0===o[1]&&2===r.length||r[2]===a[2]&&0===n[2]&&0===o[2])&&(e.k[t].to=null,e.k[t].ti=null));this.effectsSequence=[this.getValueAtCurrentTime.bind(this)],this.data=e,this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=s||1,this.elem=t,this.container=i,this.comp=t.comp,this.getValue=this.processEffectsSequence,this.frameId=-1;let l=e.k[0].s.length||0;this.v=e$(F.Float32,l),this.pv=e$(F.Float32,l);for(let t=0;t<l;t++)this.v[t]=this.initFrame,this.pv[t]=this.initFrame;this._caching={lastFrame:this.initFrame,lastIndex:0,value:e$(F.Float32,l)}}}class sl extends sr{constructor(){super(),this.propType=!1}}let sp={getProp:function(t,e,s,i,r){let a,n=e;if(n&&"sid"in n&&n.sid&&(n=t.globalData?.slotManager?.getProp(n)),n?.k?.length)if("number"==typeof(n?.k)[0])a=new sn(t,n,i,r);else switch(s){case 0:a=new so(t,n,i,r);break;case 1:a=new sh(t,n,i,r)}else a=new sa(t,n,i,r);return(a=a??new sl).effectsSequence.length>0&&r?.addDynamicProperty(a),a}},sm=new eJ(8,()=>e$(F.Float32,2));class sc{constructor(){this.lengths=[],this.c=!1,this._length=0,this._maxLength=8,this.v=eL(this._maxLength),this.o=eL(this._maxLength),this.i=eL(this._maxLength)}doubleArrayLength(){this.v=[...this.v,...eL(this._maxLength)],this.i=[...this.i,...eL(this._maxLength)],this.o=[...this.o,...eL(this._maxLength)],this._maxLength*=2}length(){return this._length}reverse(){let t=new sc;t.setPathData(this.c,this._length);let e=this.v,s=this.o,i=this.i,r=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],i[0][0],i[0][1],s[0][0],s[0][1],0,!1),r=1);let{_length:a}=this,n=a-1;for(let o=r;o<a;o++)t.setTripleAt(e[n][0],e[n][1],i[n][0],i[n][1],s[n][0],s[n][1],o,!1),n-=1;return t}setLength(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t}setPathData(t,e){this.c=t,this.setLength(e);let s=0;for(;s<e;)this.v[s]=sm.newElement(),this.o[s]=sm.newElement(),this.i[s]=sm.newElement(),s++}setTripleAt(t,e,s,i,r,a,n,o){this.setXYAt(t,e,"v",n,o),this.setXYAt(s,i,"o",n,o),this.setXYAt(r,a,"i",n,o)}setXYAt(t,e,s,i,r){let a;switch(this._length=Math.max(this._length,i+1),this._length>=this._maxLength&&this.doubleArrayLength(),s){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[]}a[i]&&(!a[i]||r)||(a[i]=sm.newElement()),a[i][0]=t,a[i][1]=e}}let sd=new eJ(4,function(){return new sc},function(t){let e=t._length;for(let s=0;s<e;s++)sm.release(t.v[s]),sm.release(t.i[s]),sm.release(t.o[s]),t.v[s]=null,t.i[s]=null,t.o[s]=null;t._length=0,t.c=!1}),{newElement:su}=sd,{release:sf}=sd;function sg(t){let e=su(),s=t._length??t.v.length;e.setLength(s),e.c=t.c;for(let i=0;i<s;i++)e.setTripleAt(t.v[i][0],t.v[i][1],t.o[i][0],t.o[i][1],t.i[i][0],t.i[i][1],i);return e}let sy={clone:sg,newElement:su};class sb{constructor(){this._length=0,this._maxLength=4,this.shapes=eL(this._maxLength)}addShape(t){this._length===this._maxLength&&(this.shapes=[...this.shapes,...eL(this._maxLength)],this._maxLength*=2),this.shapes[this._length]=t,this._length++}releaseShapes(){for(let t=0;t<this._length;t++)sf(this.shapes[t]);this._length=0}}function sv(){return new sb}eL(4);class sx extends si{getValueAtTime(t,e){throw Error(`${this.constructor.name}: Method getShapeValueAtTime is not implemented`)}initiateExpression(t,e,s){throw Error(`${this.constructor.name}: Method initiateExpression is not implemented`)}interpolateShape(t,e,s={}){let i=s.lastIndex||0,r,a,n,o=0,h,l=this.keyframes;if(t<l[0].t-this.offsetTime)r=l[0].s?.[0],n=!0,i=0;else if(t>=l[l.length-1].t-this.offsetTime)r=l[l.length-1].s?l[l.length-1].s?.[0]:l[l.length-2].e[0],n=!0;else{let e,s,h=i,p=l.length-1,m=!0;for(;m&&(e=l[h],!((s=l[h+1]).t-this.offsetTime>t));)h<p-1?h++:m=!1;if(!e||!s)throw Error(`${this.constructor.name}: Could not set keyframe data`);let c=this.keyframesMetadata[h]||{};if(n=1===e.h,i=h,!n){if(t>=s.t-this.offsetTime)o=1;else if(t<e.t-this.offsetTime)o=0;else{let i;c.__fnct?i=c.__fnct:"number"==typeof e.o.x&&"number"==typeof e.o.y&&"number"==typeof e.i.x&&"number"==typeof e.i.y&&(c.__fnct=i=se(e.o.x,e.o.y,e.i.x,e.i.y).get),o=i?.((t-(e.t-this.offsetTime))/(s.t-this.offsetTime-(e.t-this.offsetTime)))||0}a=s.s?s.s[0]:e.e[0]}r=e.s?.[0]}let p=e._length,m=r.i[0].length;s.lastIndex=i;for(let t=0;t<p;t++)for(let s=0;s<m;s++)h=n?r.i[t][s]:Number(r.i[t][s])+(a.i[t][s]-r.i[t][s])*o,e.i[t][s]=h,h=n?r.o[t][s]:Number(r.o[t][s])+(a.o[t][s]-r.o[t][s])*o,e.o[t][s]=h,h=n?r.v[t][s]:Number(r.v[t][s])+(a.v[t][s]-r.v[t][s])*o,e.v[t][s]=h}interpolateShapeCurrentTime(){if(!this.pv)throw Error(`${this.constructor.name}: Cannot parse ShapePath v value`);this._caching=this._caching??{};let t=Number(this.comp?.renderedFrame)-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,s=this.keyframes[this.keyframes.length-1].t-this.offsetTime,i=Number(this._caching.lastFrame);return -999999!==i&&(i<e&&t<e||i>s&&t>s)||(this._caching.lastIndex=i<t?Number(this._caching.lastIndex):0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}processEffectsSequence(t){let e,s;if(!this.data)throw Error(`${this.constructor.name}: data (Shape) is not implemented`);if(this.elem?.globalData?.frameId===this.frameId)return 0;if(0===this.effectsSequence.length)return this._mdf=!1,0;if(this.lock&&this.pv)return this.setVValue(this.pv),0;this.lock=!0,this._mdf=!1,e=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt?.k;let i=this.effectsSequence.length;for(s=0;s<i;s++)e=this.effectsSequence[s](e);return this.setVValue(e),this.lock=!1,this.frameId=this.elem?.globalData?.frameId||0,0}reset(){this.paths=this.localShapeCollection}setVValue(t){if(!this.v||!t)throw Error(`${this.constructor.name}: ShapePath is not set`);if(!this.localShapeCollection)throw Error(`${this.constructor.name}: localShapeCollection is not set`);this.shapesEqual(this.v,t)||(this.v=sg(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}shapesEqual(t,e){if(t._length!==e._length||t.c!==e.c)return!1;let s=t._length||0;for(let i=0;i<s;i++)if(t.v[i]?.[0]!==e.v[i]?.[0]||t.v[i]?.[1]!==e.v[i]?.[1]||t.o[i]?.[0]!==e.o[i]?.[0]||t.o[i]?.[1]!==e.o[i]?.[1]||t.i[i]?.[0]!==e.i[i]?.[0]||t.i[i]?.[1]!==e.i[i]?.[1])return!1;return!0}constructor(...t){super(...t),this.effectsSequence=[],this.keyframes=[],this.keyframesMetadata=[],this.offsetTime=0}}class sw extends sx{constructor(t,e){super(),this.v=su(),this.v.c=!0,this.localShapeCollection=sv(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),this.p=sp.getProp(t,e.p,1,0,this),this.s=sp.getProp(t,e.s,1,0,this),this.r=sp.getProp(t,e.r,0,0,this),this.dynamicProperties.length>0?this.k=!0:(this.k=!1,this.convertRectToPath())}convertRectToPath(){if(!this.p)throw Error(`${this.constructor.name}: p value is not implemented`);let t=this.p.v[0],e=this.p.v[1],s=this.s.v[0]/2,i=this.s.v[1]/2,r=Math.min(s,i,this.r.v),a=.44810000000000005*r;this.v&&(this.v._length=0),2===this.d||1===this.d?(this.v?.setTripleAt(t+s,e-i+r,t+s,e-i+r,t+s,e-i+a,0,!0),this.v?.setTripleAt(t+s,e+i-r,t+s,e+i-a,t+s,e+i-r,1,!0),0===r?(this.v?.setTripleAt(t-s,e+i,t-s+a,e+i,t-s,e+i,2),this.v?.setTripleAt(t-s,e-i,t-s,e-i+a,t-s,e-i,3)):(this.v?.setTripleAt(t+s-r,e+i,t+s-r,e+i,t+s-a,e+i,2,!0),this.v?.setTripleAt(t-s+r,e+i,t-s+a,e+i,t-s+r,e+i,3,!0),this.v?.setTripleAt(t-s,e+i-r,t-s,e+i-r,t-s,e+i-a,4,!0),this.v?.setTripleAt(t-s,e-i+r,t-s,e-i+a,t-s,e-i+r,5,!0),this.v?.setTripleAt(t-s+r,e-i,t-s+r,e-i,t-s+a,e-i,6,!0),this.v?.setTripleAt(t+s-r,e-i,t+s-a,e-i,t+s-r,e-i,7,!0))):(this.v?.setTripleAt(t+s,e-i+r,t+s,e-i+a,t+s,e-i+r,0,!0),0===r?(this.v?.setTripleAt(t-s,e-i,t-s+a,e-i,t-s,e-i,1,!0),this.v?.setTripleAt(t-s,e+i,t-s,e+i-a,t-s,e+i,2,!0),this.v?.setTripleAt(t+s,e+i,t+s-a,e+i,t+s,e+i,3,!0)):(this.v?.setTripleAt(t+s-r,e-i,t+s-r,e-i,t+s-a,e-i,1,!0),this.v?.setTripleAt(t-s+r,e-i,t-s+a,e-i,t-s+r,e-i,2,!0),this.v?.setTripleAt(t-s,e-i+r,t-s,e-i+r,t-s,e-i+a,3,!0),this.v?.setTripleAt(t-s,e+i-r,t-s,e+i-a,t-s,e+i-r,4,!0),this.v?.setTripleAt(t-s+r,e+i,t-s+r,e+i,t-s+a,e+i,5,!0),this.v?.setTripleAt(t+s-r,e+i,t+s-a,e+i,t+s-r,e+i,6,!0),this.v?.setTripleAt(t+s,e+i-r,t+s,e+i-r,t+s,e+i-a,7,!0)))}getValue(){return this.elem?.globalData?.frameId===this.frameId||(this.elem?.globalData?.frameId&&(this.frameId=this.elem.globalData.frameId),this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath()),0}}class s_ extends sx{constructor(t,e){super(),this.v=su(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=sp.getProp(t,e.ir,0,0,this),this.is=sp.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=sp.getProp(t,e.pt,0,0,this),this.p=sp.getProp(t,e.p,1,0,this),this.r=sp.getProp(t,e.r,0,ti,this),this.or=sp.getProp(t,e.or,0,0,this),this.os=sp.getProp(t,e.os,0,.01,this),this.localShapeCollection=sv(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length>0?this.k=!0:(this.k=!1,this.convertToPath())}convertPolygonToPath(){if(!this.data)throw Error(`${this.constructor.name}: data (Shape) is not implemented`);if(!this.p)throw Error(`${this.constructor.name}: p value is not implemented`);let t=Math.floor(this.pt.v),e=2*Math.PI/t,s=this.or.v,i=this.os.v,r=2*Math.PI*s/(4*t),a=-(.5*Math.PI),n=3===this.data.d?-1:1;a+=this.r.v,this.v&&(this.v._length=0);for(let o=0;o<t;o++){let t=s*Math.cos(a),h=s*Math.sin(a),l=0===t&&0===h?0:h/Math.sqrt(t*t+h*h),p=0===t&&0===h?0:-t/Math.sqrt(t*t+h*h);t+=Number(this.p.v[0]),h+=Number(this.p.v[1]),this.v?.setTripleAt(t,h,t-l*r*i*n,h-p*r*i*n,t+l*r*i*n,h+p*r*i*n,o,!0),a+=e*n}this.paths.length=0,this.paths[0]=this.v}convertStarToPath(){if(!this.data)throw Error(`${this.constructor.name}: data (Shape) is not implemented`);if(!this.v)throw Error(`${this.constructor.name}: v (ShapePath) is not implemented`);let t=2*Math.floor(this.pt.v),e=2*Math.PI/t,s=!0,i=this.or.v,r=Number(this.ir?.v),a=this.os.v,n=Number(this.is?.v),o=2*Math.PI*i/(2*t),h=2*Math.PI*r/(2*t),l,p,m,c=-Math.PI/2;c+=this.r.v;let d=3===this.data.d?-1:1;this.v._length=0;for(let u=0;u<t;u++){l=s?i:r,p=s?a:n,m=s?o:h;let t=l*Math.cos(c),f=l*Math.sin(c),g=0===t&&0===f?0:f/Math.sqrt(t*t+f*f),y=0===t&&0===f?0:-t/Math.sqrt(t*t+f*f);t+=Number(this.p?.v[0]),f+=Number(this.p?.v[1]),this.v.setTripleAt(t,f,t-g*m*p*d,f-y*m*p*d,t+g*m*p*d,f+y*m*p*d,u,!0),s=!s,c+=e*d}}convertToPath(){throw Error(`${this.constructor.name}: Method convertToPath is not implemented`)}getValue(t){return this.elem?.globalData?.frameId===this.frameId||(this.frameId=this.elem?.globalData?.frameId||0,this.iterateDynamicProperties(),this._mdf&&this.convertToPath()),0}}class sE extends sx{constructor(t,e){super(),this._cPoint=.5519,this.v=su(),this.v.setPathData(!0,4),this.localShapeCollection=sv(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=sp.getProp(t,e.p,1,0,this),this.s=sp.getProp(t,e.s,1,0,this),this.dynamicProperties.length>0?this.k=!0:(this.k=!1,this.convertEllToPath())}convertEllToPath(){if(!this.p)return;let t=this.p.v[0],e=this.p.v[1],s=this.s.v[0]/2,i=this.s.v[1]/2,r=3!==this.d,a=this.v;if(!a)throw Error(`${this.constructor.name}: Could not get value of ellipse`);a.v[0][0]=t,a.v[0][1]=e-i,a.v[1][0]=r?t+s:t-s,a.v[1][1]=e,a.v[2][0]=t,a.v[2][1]=e+i,a.v[3][0]=r?t-s:t+s,a.v[3][1]=e,a.i[0][0]=r?t-s*this._cPoint:t+s*this._cPoint,a.i[0][1]=e-i,a.i[1][0]=r?t+s:t-s,a.i[1][1]=e-i*this._cPoint,a.i[2][0]=r?t+s*this._cPoint:t-s*this._cPoint,a.i[2][1]=e+i,a.i[3][0]=r?t-s:t+s,a.i[3][1]=e+i*this._cPoint,a.o[0][0]=r?t+s*this._cPoint:t-s*this._cPoint,a.o[0][1]=e-i,a.o[1][0]=r?t+s:t-s,a.o[1][1]=e+i*this._cPoint,a.o[2][0]=r?t-s*this._cPoint:t+s*this._cPoint,a.o[2][1]=e+i,a.o[3][0]=r?t-s:t+s,a.o[3][1]=e-i*this._cPoint}getValue(t){return this.elem?.globalData?.frameId===this.frameId||(this.frameId=this.elem?.globalData?.frameId||0,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath()),0}}class sC extends sx{constructor(t,e,s){super(),this.propType=V.Shape,this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;let i=3===s?e.pt?.k:e.ks?.k;if(!i)throw Error(`${this.constructor.name}: Could now get Path Data`);this.v=sg(i),this.pv=sg(this.v),this.localShapeCollection=sv(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.effectsSequence=[],this.getValue=this.processEffectsSequence}}class sk extends sx{constructor(t,e,s){super(),this.data=e,this.propType=V.Shape,this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data?.st||0,this.keyframes=3===s?e.pt?.k:e.ks?.k??[],this.keyframesMetadata=[],this.k=!0,this.kf=!0;let{length:i}=this.keyframes[0].s?.[0].i??[];this.v=su(),this.v.setPathData(!!this.keyframes[0].s?.[0].c,i),this.pv=sg(this.v),this.localShapeCollection=sv(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=-999999,this._caching={lastFrame:-999999,lastIndex:0},this.effectsSequence=[this.interpolateShapeCurrentTime.bind(this)],this.getValue=this.processEffectsSequence}}let sS={getConstructorFunction:function(){return sC},getKeyframedConstructorFunction:function(){return sk},getShapeProp:function(t,e,s,i,r){let a=null;switch(s){case 3:case 4:{let i=3===s?e.pt:e.ks,r=i?.k;if(r?.length){a=new sk(t,e,s);break}a=new sC(t,e,s);break}case 5:a=new sw(t,e);break;case 6:a=new sE(t,e);break;case 7:a=new s_(t,e)}return a?.k&&t.addDynamicProperty(a),a}};class sM{constructor(t,e,s){this.masksProperties=[],this.data=t,this.element=e,this.globalData=s,this.storedData=[],this.masksProperties=this.data.masksProperties??[],this.maskElement=null;let{defs:i}=this.globalData,{length:r}=this.masksProperties;this.viewData=eL(r),this.solidPath="";let a=this.masksProperties,n=0,o=[],h=tA(),l,p,m,c="clipPath",d="clip-path";for(let t=0;t<r;t++){let e;("a"!==a[t].mode&&"n"!==a[t].mode||a[t].inv||a[t].o?.k!==100||a[t].o?.x)&&(c="mask",d="mask"),("s"===a[t].mode||"i"===a[t].mode)&&0===n?((l=tT("rect")).setAttribute("fill","#ffffff"),l.setAttribute("width",`${Number(this.element.comp?.data?.w)}`),l.setAttribute("height",`${Number(this.element.comp?.data?.h)}`),o.push(l)):l=null;let s=tT("path");if("n"===a[t].mode){this.viewData[t]={elem:s,lastPath:"",op:sp.getProp(this.element,a[t].o,0,.01,this.element),prop:sS.getShapeProp(this.element,a[t],3)},i.appendChild(s);continue}if(n++,s.setAttribute("fill","s"===a[t].mode?"#000000":"#ffffff"),s.setAttribute("clip-rule","nonzero"),a[t].x?.k===0)p=null,m=null;else{c="mask",d="mask",m=sp.getProp(this.element,a[t].x,0,null,this.element),e=tA();let r=tT("filter");r.setAttribute("id",e),(p=tT("feMorphology")).setAttribute("operator","erode"),p.setAttribute("in","SourceGraphic"),p.setAttribute("radius","0"),r.appendChild(p),i.appendChild(r),s.setAttribute("stroke","s"===a[t].mode?"#000000":"#ffffff")}if(this.storedData[t]={elem:s,expan:p,filterId:e,lastOperator:"",lastPath:"",lastRadius:0,x:m},"i"===a[t].mode){let{length:t}=o,e=tT("g");for(let s=0;s<t;s++)e.appendChild(o[s]);let r=tT("mask");r.setAttribute("mask-type","alpha"),r.id=`${h}_${n}`,r.appendChild(s),i.appendChild(r),e.setAttribute("mask",`url(${K()}#${h}_${n})`),o.length=0,o.push(e)}else o.push(s);a[t].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[t]={elem:s,invRect:l,lastPath:"",op:sp.getProp(this.element,a[t].o,0,.01,this.element),prop:sS.getShapeProp(this.element,a[t],3)};let r=this.viewData[t].prop?.v;!this.viewData[t].prop?.k&&r&&this.drawPath(a[t],r,this.viewData[t])}this.maskElement=tT(c);let{length:u}=o;for(let t=0;t<u;t++)this.maskElement.appendChild(o[t]);n>0&&(this.maskElement.setAttribute("id",h),this.element.maskedElement?.setAttribute(d,`url(${K()}#${h})`),i.appendChild(this.maskElement)),this.viewData.length>0&&this.element.addRenderableComponent(this)}createLayerSolidPath(){let t="M0,0 ";return t+` h${this.globalData.compSize?.w||0} v${this.globalData.compSize?.h||0} h-${this.globalData.compSize?.w||0} v-${this.globalData.compSize?.h||0} `}destroy(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null}drawPath(t,e,s){let i,r=` M${e.v[0]?.[0]},${e.v[0]?.[1]}`,a=e._length||0;for(i=1;i<a;i++)r+=` C${e.o[i-1]?.[0]},${e.o[i-1]?.[1]} ${e.i[i]?.[0]},${e.i[i]?.[1]} ${e.v[i]?.[0]},${e.v[i]?.[1]}`;if(e.c&&a>1&&(r+=` C${e.o[i-1]?.[0]},${e.o[i-1]?.[1]} ${e.i[0]?.[0]},${e.i[0]?.[1]} ${e.v[0]?.[0]},${e.v[0]?.[1]}`),s.lastPath!==r){let i="";s.elem&&(e.c&&(i=t?.inv?this.solidPath+r:r),s.elem.setAttribute("d",i)),s.lastPath=r}}getMaskelement(){return this.maskElement}getMaskProperty(t){return this.viewData[t].prop}renderFrame(t){let e=this.element.finalTransform?.mat,{length:s}=this.masksProperties;for(let i=0;i<s;i++){let s=this.viewData[i].prop?.v;if(s&&(this.viewData[i].prop?._mdf||t)&&this.drawPath(this.masksProperties[i]||null,s,this.viewData[i]),(this.viewData[i].op._mdf||t)&&this.viewData[i].elem.setAttribute("fill-opacity",`${this.viewData[i].op.v}`),"n"===this.masksProperties[i].mode||(this.viewData[i].invRect&&(this.element.finalTransform?.mProp._mdf||t)&&this.viewData[i].invRect?.setAttribute("transform",`${e?.getInverseMatrix().to2dCSS()}`),!this.storedData[i]?.x||!(this.storedData[i].x?._mdf||t)))continue;let r=this.storedData[i].expan;if(0>Number(this.storedData[i].x?.v)){"erode"!==this.storedData[i].lastOperator&&(this.storedData[i].lastOperator="erode",this.storedData[i].elem.setAttribute("filter",`url(${K()}#${this.storedData[i].filterId})`)),r?.setAttribute("radius",`${-Number(this.storedData[i].x?.v)}`);continue}"dilate"!==this.storedData[i].lastOperator&&(this.storedData[i].lastOperator="dilate",this.storedData[i].elem.removeAttribute("filter")),this.storedData[i].elem.setAttribute("stroke-width",`${2*Number(this.storedData[i].x?.v)}`)}}}class sP{constructor(t,e){this.data=t,this.element=e,this.masksProperties=this.data.masksProperties??[],this.viewData=eL(this.masksProperties.length);let{length:s}=this.masksProperties,i=!1;for(let t=0;t<s;t++)"n"!==this.masksProperties[t].mode&&(i=!0),this.viewData[t]=sS.getShapeProp(this.element,this.masksProperties[t],3);this.hasMasks=i,i&&this.element.addRenderableComponent(this),this.getMaskProperty=sM.prototype.getMaskProperty}destroy(){this.element=null}getMaskProperty(t){throw Error(`${this.constructor.name}: Method getMaskProperty is not implemented`)}renderFrame(t){let e,s;if(!this.element.globalData?.compSize)throw Error(`${this.constructor.name}: element->globalData->compSize is not implemented`);if(!this.hasMasks)return;let i=this.element.finalTransform?.mat,r=this.element.canvasContext,{length:a}=this.masksProperties;r?.beginPath();for(let t=0;t<a;t++)if("n"!==this.masksProperties[t].mode){this.masksProperties[t].inv&&(r?.moveTo(0,0),r?.lineTo(this.element.globalData.compSize.w,0),r?.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),r?.lineTo(0,this.element.globalData.compSize.h),r?.lineTo(0,0));let a=this.viewData[t].v;if(!a)throw Error(`${this.constructor.name}: Could not access ShapePath`);let n=i?.applyToPointArray(a.v[0][0],a.v[0][1],0)??[];r?.moveTo(n[0],n[1]);let o=a._length;for(e=1;e<o;e++)s=i?.applyToTriplePoints(a.o[e-1],a.i[e],a.v[e])??[],r?.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);s=i?.applyToTriplePoints(a.o[e-1],a.i[0],a.v[0])??[],r?.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5])}this.element.globalData.renderer.save(!0),r?.clip()}}let sA=new eW,sD="__lottie_element_luma_buffer",sT=null,sF=null,sI=null;function s$(){(!sT||!sF)&&(sI=function(){let t=tT("svg"),e=tT("filter"),s=tT("feColorMatrix");return e.setAttribute("id",sD),s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","sRGB"),s.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(s),t.appendChild(e),t.setAttribute("id",`${sD}_svg`),sA.svgLumaHidden&&(t.style.display="none"),t}(),document.body.appendChild(sI),(sF=(sT=tF("canvas")).getContext("2d"))&&(sF.filter=`url(#${sD})`,sF.fillStyle="rgba(0,0,0,0)",sF.fillRect(0,0,1,1)))}function sL(t,e){if(sA.offscreenCanvas)return new OffscreenCanvas(t,e);let s=tF("canvas");return s.width=t,s.height=e,s}let sN={1:"source-in",2:"source-out",3:"source-in",4:"source-out"},sB="Method is not implemented";class sV{clearCanvas(t){if(!this.transformCanvas)throw Error(`${this.constructor.name}: transformCanvas is not implemented`);t?.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)}createContainerElements(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);if(!this.globalData.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented in globalData`);if(this.data.tt&&this.data.tt>=1){this.buffers=[];let{canvasContext:t}=this.globalData,e=sL(t.canvas.width,t.canvas.height);this.buffers.push(e);let s=sL(t.canvas.width,t.canvas.height);this.buffers.push(s),this.data.tt>=3&&!document._isProxy&&s$()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new eG(this),this.searchEffectTransforms()}createContent(){}createElements(){throw Error(`${this.constructor.name}: createElements is not implemented`)}createRenderableComponents(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);this.maskManager=new sP(this.data,this),this.renderableEffectsManager&&(this.transformEffects=this.renderableEffectsManager.getEffects(B.TransformEffect))}destroy(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager?.destroy()}exitLayer(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);let t=this.data.tt||0;if(t<1)return;let e=this.buffers[1],s=e.getContext("2d");this.clearCanvas(s),s.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);let i=Number(this.data.ind)-1;"tp"in this.data&&void 0!==this.data.tp&&(i=this.data.tp);let r=this.comp?.getElementById(i);if(r?.renderFrame(1),this.canvasContext.setTransform(1,0,0,1,0,0),t>=3&&!document._isProxy){let t=function(t){if(sT&&sF||s$(),!sT||!sF)throw Error("Could not create Canvas Element");return sT.width=t.width,sT.height=t.height,sF.filter=`url(#${sD})`,sT}(this.canvasContext.canvas),e=t.getContext("2d");e?.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(t,0,0)}this.canvasContext.globalCompositeOperation=sN[t],this.canvasContext.drawImage(e,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"}hide(){throw Error(sB)}hideElement(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)}initRendererElement(){}prepareLayer(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);if(1>(this.data.tt||0))return;let t=this.buffers[0].getContext("2d");this.clearCanvas(t),t.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)}renderFrame(t){if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(this.hidden||this.data.hd||1===this.data.td&&!t)return;this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();let e=0===this.data.ty;this.prepareLayer();let{renderer:s}=this.globalData;s.save(e),s.ctxTransform(this.finalTransform?.localMat.props),s.ctxOpacity(this.finalTransform?.localOpacity),this.renderInnerContent(),s.restore(e),this.exitLayer(),this.maskManager?.hasMasks&&s.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}renderInnerContent(){throw Error(sB)}renderLocalTransform(){}renderRenderable(){}renderTransform(){throw Error(sB)}searchEffectTransforms(){}setBlendMode(){if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);let{data:t,globalData:e}=this;if(!e.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented in globalData`);if(e.blendMode!==t.bm){e.blendMode=t.bm;let s=tL(t.bm);e.canvasContext.globalCompositeOperation=s}}show(){throw Error(sB)}showElement(){if(!this.maskManager)throw Error(`${this.constructor.name}: Method maskManager is not implemented`);this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)}constructor(){this.buffers=[],this.mHelper=new eN,this.transformEffects=[]}}sV.prototype.hide=sV.prototype.hideElement,sV.prototype.show=sV.prototype.showElement;class sR{constructor(t,e,s){this.p=sp.getProp(e,t.v,0,0,s)}}class sz{constructor(t,e,s){this.p=sp.getProp(e,t.v,1,0,s)}}class sO extends sR{}class sG extends sR{}class sq extends sz{}class sj extends sz{}class sW extends sR{}class sH extends sR{}class sY extends sR{}class sU{constructor(){this.p={}}}class sX{constructor(t,e,s){let i=t.ef??[];this.effectElements=[];let{length:r}=i;for(let s=0;s<r;s++){let r=new sJ(i[s],e,t);this.effectElements.push(r)}}}class sJ extends si{constructor(t,e,s){super(),this.effectElements=[],this.getValue=this.iterateDynamicProperties,this.init(t,e,s)}init(t,e,s){let i;this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);let r=this.data.ef,{length:a}=r;for(let t=0;t<a;t++){switch(r[t].ty){case 0:i=new sO(r[t],e,this);break;case 1:i=new sG(r[t],e,this);break;case 2:i=new sq(r[t],e,this);break;case 3:i=new sj(r[t],e,this);break;case 4:case 7:i=new sY(r[t],e,this);break;case 10:i=new sW(r[t],e,this);break;case 11:i=new sH(r[t],e,this);break;case 5:i=new sX(s,e);break;default:i=new sU}this.effectElements.push(i)}}renderFrame(t){throw Error(`${this.constructor.name}: Method renderFrame is not implemented yet`)}}class sZ{buildAllItems(){throw Error(`${this.constructor.name}: Method buildAllItems is not implemented`)}checkLayers(t){throw Error(`${this.constructor.name}: Method checkLayers is not implemented`)}checkMasks(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not initialized`);if(!this.data.hasMask)return!1;let t=0,{length:e}=this.data.masksProperties??[];for(;t<e;){if(this.data.masksProperties?.[t].mode!=="n"&&this.data.masksProperties?.[t].cl!==!1)return!0;t++}return!1}destroy(){}destroyBaseElement(){throw Error(`${this.constructor.name}: Method destroyBaseElement is not implemented`)}getBaseElement(){throw Error(`${this.constructor.name}: Method getBaseElement is not implemented`)}getType(){return this.type}initBaseData(t,e,s){this.globalData=e,this.comp=s,this.data=t,this.layerId=tA(),this.data.sr||(this.data.sr=1),this.effectsManager=new sX(this.data,this,this.dynamicProperties)}initExpressions(){try{if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);let t=ev();if(!t)return;let e=t("layer"),s=t("effects"),i=t("shape"),r=t("text"),a=t("comp");this.layerInterface=new e(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);let n=new s().createEffectsInterface(this,this.layerInterface);if(this.layerInterface.registerEffectsInterface(n),0===this.data.ty||this.data.xt){this.compInterface=new a(this);return}if(4===this.data.ty){this.layerInterface.shapeInterface=new i(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface;return}5===this.data.ty&&(this.layerInterface.textInterface=new r(this),this.layerInterface.text=this.layerInterface.textInterface)}catch(t){console.error(this.constructor.name,t)}}setBlendMode(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);let t=tL(this.data.bm),e=this.baseElement??this.layerElement;if(!e)throw Error(`${this.constructor.name}: Both baseElement and layerElement are not implemented`);e.style.mixBlendMode=t}sourceRectAtTime(){throw Error(`${this.constructor.name}: Method sourceRectAtTime is not implemented`)}constructor(){this.dynamicProperties=[],this.frameDuration=1,this.itemsData=[],this.layerInterface=null,this.shapesData=[]}}class sK extends sr{constructor(t,e,s){if(super(),this.defaultVector=[0,0],this.elem=t,this.frameId=-1,this.propType=V.Transform,this.data=e,this.v=new eN,this.pre=new eN,this.appliedTransformations=0,this.initDynamicPropertyContainer(s??t),e.p&&"s"in e.p?(this.px=sp.getProp(t,e.p.x,0,0,this),this.py=sp.getProp(t,e.p.y,0,0,this),"z"in e.p&&(this.pz=sp.getProp(t,e.p.z,0,0,this))):this.p=sp.getProp(t,e.p??{k:[0,0,0]},1,0,this),"rx"in e){if(this.rx=sp.getProp(t,e.rx,0,ti,this),this.ry=sp.getProp(t,e.ry,0,ti,this),this.rz=sp.getProp(t,e.rz,0,ti,this),e.or?.k[0].ti){let{length:t}=e.or.k;for(let s=0;s<t;s++)e.or.k[s].to=null,e.or.k[s].ti=null}this.or=sp.getProp(t,e.or,1,ti,this),this.or.sh=!0}else this.r=sp.getProp(t,e.r??{k:0},0,ti,this);e.sk&&(this.sk=sp.getProp(t,e.sk,0,ti,this),this.sa=sp.getProp(t,e.sa,0,ti,this)),this.a=sp.getProp(t,e.a??{k:[0,0,0]},1,0,this),this.s=sp.getProp(t,e.s??{k:[100,100,100]},1,.01,this),e.o?this.o=sp.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,0===this.dynamicProperties.length&&this.getValue(!0)}addDynamicProperty(t){super.addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0}applyToMatrix(t){if(!this.data)throw Error(`${this.constructor.name}: data (Shape) is not implemented`);this.iterateDynamicProperties(),this._mdf=!!this._mdf,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,Number(this.sa?.v)),this.r?t.rotate(-Number(this.r.v)):t.rotateZ(-Number(this.rz?.v)).rotateY(Number(this.ry?.v)).rotateX(Number(this.rx?.v)).rotateZ(-Number(this.or?.v[2])).rotateY(Number(this.or?.v[1])).rotateX(Number(this.or?.v[0])),this.data.p&&"s"in this.data.p?"z"in this.data.p?t.translate(Number(this.px?.v),Number(this.py?.v),-Number(this.pz?.v)):t.translate(Number(this.px?.v),Number(this.py?.v),0):t.translate(Number(this.p?.v[0]),Number(this.p?.v[1]),-Number(this.p?.v[2]))}autoOrient(){throw Error(`${this.constructor.name}: Method autoOrient not implemented`)}getValue(t){if(this.elem.globalData?.frameId===this.frameId)return 0;if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||t){if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.a&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.s&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,Number(this.sa?.v)),this.r&&this.appliedTransformations<4?this.v.rotate(-Number(this.r.v)):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-Number(this.rz?.v)).rotateY(Number(this.ry?.v)).rotateX(Number(this.rx?.v)).rotateZ(-Number(this.or?.v[2])).rotateY(Number(this.or?.v[1])).rotateX(Number(this.or?.v[0])),this.autoOriented){let t,e,{frameRate:s}=this.elem.globalData??{frameRate:60};if(this.p?.keyframes)Number(this.p._caching?.lastFrame)+Number(this.p.offsetTime)<=this.p.keyframes[0].t?(t=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/s,0),e=this.p.getValueAtTime(Number(this.p.keyframes[0].t)/s,0)):Number(this.p._caching?.lastFrame)+Number(this.p.offsetTime)>=this.p.keyframes[this.p.keyframes.length-1].t?(t=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/s,0),e=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/s,0)):(t=this.p.pv,e=this.p.getValueAtTime((Number(this.p._caching?.lastFrame)+Number(this.p.offsetTime)-.01)/s,Number(this.p.offsetTime)));else if(this.px?.keyframes&&this.py?.keyframes){t=[0,0],e=[0,0];let{px:i}=this,{py:r}=this;Number(i._caching?.lastFrame)+Number(i.offsetTime)<=i.keyframes[0].t?(t[0]=i.getValueAtTime((i.keyframes[0].t+.01)/s,0),t[1]=r.getValueAtTime((r.keyframes[0].t+.01)/s,0),e[0]=i.getValueAtTime(i.keyframes[0].t/s,0),e[1]=r.getValueAtTime(Number(r.keyframes[0]?.t)/s,0)):Number(i._caching?.lastFrame)+i.offsetTime>=i.keyframes[i.keyframes.length-1].t?(t[0]=i.getValueAtTime(i.keyframes[i.keyframes.length-1].t/s,0),t[1]=r.getValueAtTime(r.keyframes[r.keyframes.length-1].t/s,0),e[0]=i.getValueAtTime((i.keyframes[i.keyframes.length-1].t-.01)/s,0),e[1]=r.getValueAtTime((r.keyframes[r.keyframes.length-1].t-.01)/s,0)):(t=[i.pv,r.pv],e[0]=i.getValueAtTime((Number(i._caching?.lastFrame)+i.offsetTime-.01)/s,i.offsetTime),e[1]=r.getValueAtTime((Number(r._caching?.lastFrame)+r.offsetTime-.01)/s,r.offsetTime))}else t=e=this.defaultVector;this.v.rotate(-Math.atan2(t[1]-e[1],t[0]-e[0]))}this.data.p&&"s"in this.data.p?"z"in this.data.p?this.v.translate(Number(this.px?.v),Number(this.py?.v),-Number(this.pz?.v)):this.v.translate(Number(this.px?.v),Number(this.py?.v),0):this.p&&this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}return this.frameId=this.elem.globalData?.frameId,0}precalculateMatrix(){if(this.appliedTransformations=0,this.pre.reset(),!this.a?.effectsSequence.length){if(!this.a)throw Error(`${this.constructor.name}: Cannot read 'a' value`);if(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s?.effectsSequence.length){if(!this.s)throw Error(`${this.constructor.name}: Cannot read 's' value`);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>0||this.sa?.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,Number(this.sa?.v)),this.appliedTransformations=3}if(this.r){0===this.r.effectsSequence.length&&(this.pre.rotate(-Number(this.r.v)),this.appliedTransformations=4);return}this.rz?.effectsSequence.length||this.ry?.effectsSequence.length||this.rx?.effectsSequence.length||this.or?.effectsSequence.length||(this.pre.rotateZ(-Number(this.rz?.v)).rotateY(Number(this.ry?.v)).rotateX(Number(this.rx?.v)).rotateZ(-Number(this.or?.v[2])).rotateY(this.or?.v[1]).rotateX(this.or?.v[0]),this.appliedTransformations=4)}}}}let sQ={getTransformProperty:(t,e,s)=>new sK(t,e,s)};class s0 extends sZ{globalToLocal(t){let e,s=t,i=[];i.push(this.finalTransform);let r=!0,{comp:a}=this;for(;r;)a?.finalTransform?(a.data?.hasMask&&i.splice(0,0,a.finalTransform),a=a.comp):r=!1;let{length:n}=i;for(let t=0;t<n;t++)e=i[t]?.mat.applyToPointArray(0,0,0),s=[s[0]-Number(e?.[0]),s[1]-Number(e?.[1]),0];return s}initTransform(){if(!this.data)throw Error(`${this.constructor.name}: LottiePlayer is not initialized`);let t=new eN;this.finalTransform={_localMatMdf:!1,_matMdf:!1,_opMdf:!1,localMat:t,localOpacity:1,mat:t,mProp:this.data.ks?sQ.getTransformProperty(this,this.data.ks,this):{o:0}},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0)}renderLocalTransform(){if(!this.localTransforms)return;if(!this.finalTransform)throw Error(`${this.constructor.name}: finalTransform is not initialized`);let t=0,{length:e}=this.localTransforms;if(this.finalTransform._localMatMdf=!!this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;t<e;)this.localTransforms[t]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[t]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=Number(this.finalTransform.mProp.o?.v),this.finalTransform._opMdf=!0),t++;if(this.finalTransform._localMatMdf){let{localMat:s,mat:i}=this.finalTransform;for(this.localTransforms[0].matrix?.clone(s),t=1;t<e;t++){let e=this.localTransforms[t].matrix;e&&s.multiply(e)}s.multiply(i)}if(this.finalTransform._opMdf){let s=this.finalTransform.localOpacity;for(t=0;t<e;t++)s*=.01*this.localTransforms[t].opacity;this.finalTransform.localOpacity=s}}renderTransform(){if(!this.finalTransform)throw Error(`${this.constructor.name}: finalTransform is not initialized`);if(this.finalTransform._opMdf=!!(this.finalTransform.mProp.o?._mdf||this._isFirstFrame),this.finalTransform._matMdf=!!(this.finalTransform.mProp._mdf||this._isFirstFrame),this.hierarchy){let t=this.finalTransform.mat,e=0,{length:s}=this.hierarchy;if(!this.finalTransform._matMdf)for(;e<s;){if(this.hierarchy[e].finalTransform?.mProp._mdf){this.finalTransform._matMdf=!0;break}e++}if(this.finalTransform._matMdf){let i=this.finalTransform.mProp.v.props;for(t.cloneFromProps(i),e=0;e<s;e++)if(this.hierarchy[e].finalTransform?.mProp.v){let{v:s}=this.hierarchy[e].finalTransform?.mProp??{v:null};s&&t.multiply(s)}}}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=Number(this.finalTransform.mProp.o?.v))}searchEffectTransforms(){if(!this.renderableEffectsManager)return;let t=this.renderableEffectsManager.getEffects(B.TransformEffect);if(0===t.length)return;this.localTransforms=[],this.finalTransform&&(this.finalTransform.localMat=new eN);let{length:e}=t;for(let s=0;s<e;s++)this.localTransforms.push(t[s])}constructor(...t){super(...t),this.mHelper=new eN}}class s1 extends s0{checkParenting(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(!this.comp)throw Error(`${this.constructor.name}: comp (ElementInterface) is not implemented`);void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}initHierarchy(){this.hierarchy=[],this._isParent=!1,this.checkParenting()}setAsParent(){this._isParent=!0}setHierarchy(t){this.hierarchy=t}}class s2 extends s1{addDynamicProperty(t){this.dynamicProperties.includes(t)||this.dynamicProperties.push(t)}initFrame(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1}prepareProperties(t,e){let{length:s}=this.dynamicProperties;for(let t=0;t<s;t++)(e||this._isParent&&this.dynamicProperties[t].propType===V.Transform)&&(this.dynamicProperties[t].getValue(),this.globalData&&this.dynamicProperties[t]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))}constructor(...t){super(...t),this.displayStartTime=0}}class s3 extends s2{addRenderableComponent(t){this.renderableComponents.includes(t)||this.renderableComponents.push(t)}checkLayerLimits(t){this.data&&this.globalData&&(this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!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()))}checkTransparency(){if(!this.finalTransform)throw Error(`${this.constructor.name}: finalTransform is not implemented`);if(0>=Number(this.finalTransform.mProp.o?.v)){!this.isTransparent&&(this.globalData?.renderConfig).hideOnTransparent&&(this.isTransparent=!0,this.hide());return}this.isTransparent&&(this.isTransparent=!1,this.show())}getLayerSize(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);return 5===this.data.ty?{h:Number(this.data.textData?.height),w:Number(this.data.textData?.width)}:{h:Number(this.data.height),w:Number(this.data.width)}}hide(){}initRenderable(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]}prepareRenderableFrame(t,e){this.checkLayerLimits(t)}removeRenderableComponent(t){this.renderableComponents.includes(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)}renderRenderable(){let{length:t}=this.renderableComponents;for(let e=0;e<t;e++)this.renderableComponents[e].renderFrame(Number(this._isFirstFrame))}show(){throw Error(`${this.constructor.name}: Method show is not implemented`)}sourceRectAtTime(){return{height:100,left:0,top:0,width:100}}constructor(...t){super(...t),this.renderableComponents=[]}}class s5 extends s3{createContainerElements(){throw Error(`${this.constructor.name}: Method createContainerElements is not implemented`)}createContent(){throw Error(`${this.constructor.name}: Method createContent is not implemented`)}createRenderableComponents(){throw Error(`${this.constructor.name}: Method createRenderableComponents is not implemented`)}destroy(){this.innerElem=null,this.destroyBaseElement()}hide(){if(this.hidden||this.isInRange&&!this.isTransparent)return;let t=this.baseElement??this.layerElement;t&&(t.style.display="none"),this.hidden=!0}initElement(t,e,s){this.initFrame(),this.initBaseData(t,e,s),this.initTransform(),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()}initRendererElement(){throw Error(`${this.constructor.name}: Method initRendererElement is not implemented`)}prepareFrame(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()}renderElement(){throw Error(`${this.constructor.name}: Method renderElement is not implemented`)}renderFrame(t){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))}renderInnerContent(){throw Error(`${this.constructor.name}: Method renderInnerContent is not implemented`)}show(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(this.isInRange||!this.isTransparent){if(!this.data.hd){let t=this.baseElement??this.layerElement;if(!t)throw Error(`${this.constructor.name}: Neither baseElement or layerElement is implemented`);t.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}}}class s4 extends s5{destroy(){this.destroyElements(),this.destroyBaseElement()}destroyElements(){let{length:t}=this.layers;for(let e=0;e<t;e++)this.elements[e]?.destroy()}getElements(){return this.elements}initElement(t,e,s){if(this.initFrame(),this.initBaseData(t,e,s),this.initTransform(),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);(this.data.xt||!e.progressiveLoad)&&this.buildAllItems(),this.hide()}prepareFrame(t){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),!this.isInRange&&!this.data.xt)return;if(this.tm?._placeholder)this.renderedFrame=t/Number(this.data.sr);else{let t=this.tm?.v||0;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}let{length:e}=this.elements;this.completeLayers||this.checkLayers(this.renderedFrame);for(let t=e-1;t>=0;t--)(this.completeLayers||this.elements[t])&&(this.elements[t].prepareFrame(this.renderedFrame-this.layers[t].st),this.elements[t]?._mdf&&(this._mdf=!0))}renderInnerContent(){let{length:t}=this.layers;for(let e=0;e<t;e++)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}setElements(t){this.elements=t}constructor(...t){super(...t),this.currentFrame=0,this.elements=[],this.layers=[]}}class s6 extends s5{createContainerElements(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);if(!this.layerElement)throw Error(`${this.constructor.name}: layerElement is not implemented`);this.matteElement=tT("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;let t=null;if(this.data.td){this.matteMasks={};let e=tT("g");this.layerId&&e.setAttribute("id",this.layerId),e.appendChild(this.layerElement),t=e,this.globalData.defs.appendChild(e)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){let e=tT("clipPath"),s=tT("path");s.setAttribute("d",`M0,0 L${this.data.w},0 L${this.data.w},${this.data.h} L0,${this.data.h}z`);let i=tA();if(e.setAttribute("id",i),e.appendChild(s),this.globalData.defs.appendChild(e),this.checkMasks()){let e=tT("g");e.setAttribute("clip-path",`url(${K()}#${i})`),e.appendChild(this.layerElement),this.transformedElement=e,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path",`url(${K()}#${i})`)}0!==this.data.bm&&this.setBlendMode()}createRenderableComponents(){if(!this.data)throw Error(`${this.constructor.name}: layerData is not initialized`);if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not initialized`);this.maskManager=new sM(this.data,this,this.globalData),this.renderableEffectsManager=new eU(this),this.searchEffectTransforms()}destroyBaseElement(){this.layerElement=null,this.matteElement=null,this.maskManager?.destroy()}getBaseElement(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);return this.data.hd?null:this.baseElement??null}getMatte(t=1){let e,s,i,r;if(this.matteMasks=this.matteMasks??{},this.matteMasks[t])return this.matteMasks[t];let a=new eW,n=`${this.layerId}_${t}`;switch(t){case 1:case 3:{let o=tT("mask");if(o.setAttribute("id",n),o.setAttribute("mask-type",3===t?"luminance":"alpha"),(i=tT("use")).setAttributeNS("http://www.w3.org/1999/xlink","href",`#${this.layerId}`),o.appendChild(i),this.globalData?.defs.appendChild(o),a.maskType||1!==t)break;o.setAttribute("mask-type","luminance"),s=ej(e=tA()),this.globalData?.defs.appendChild(s),s.appendChild(eq()),(r=tT("g")).appendChild(i),o.appendChild(r),r.setAttribute("filter",`url(${K()}#${e})`)}break;case 2:{let t=tT("mask");t.setAttribute("id",n),t.setAttribute("mask-type","alpha");let o=tT("g");t.appendChild(o),s=ej(e=tA());let h=tT("feComponentTransfer");h.setAttribute("in","SourceGraphic"),s.appendChild(h);let l=tT("feFuncA");l.setAttribute("type","table"),l.setAttribute("tableValues","1.0 0.0"),h.appendChild(l),this.globalData?.defs.appendChild(s);let p=tT("rect");p.setAttribute("width",`${Number(this.comp?.data?.w)}`),p.setAttribute("height",`${Number(this.comp?.data?.h)}`),p.setAttribute("x","0"),p.setAttribute("y","0"),p.setAttribute("fill","#ffffff"),p.setAttribute("opacity","0"),o.setAttribute("filter",`url(${K()}#${e})`),o.appendChild(p),(i=tT("use")).setAttributeNS("http://www.w3.org/1999/xlink","href",`#${this.layerId}`),o.appendChild(i),a.maskType||(t.setAttribute("mask-type","luminance"),s.appendChild(eq()),r=tT("g"),o.appendChild(p),this.layerElement&&r.appendChild(this.layerElement),o.appendChild(r)),this.globalData?.defs.appendChild(t)}}return this.matteMasks[t]=n,this.matteMasks[t]}initRendererElement(){this.layerElement=tT("g")}renderElement(){if(!this.finalTransform)throw Error(`${this.constructor.name}: finalTransform is not implemented`);this.finalTransform._localMatMdf&&this.transformedElement?.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement?.setAttribute("opacity",`${this.finalTransform.localOpacity}`)}setMatte(t){this.matteElement&&this.matteElement.setAttribute("mask",`url(${K()}#${t})`)}}class s9 extends s6{constructor(t,e,s){super(),this.layers=[],t.refId&&(this.assetData=e.getAssetData(t.refId)),this.assetData?.sid&&(this.assetData=e.slotManager?.getProp(this.assetData)||null),this.initElement(t,e,s),this.sourceRect={height:Number(this.assetData?.h),left:0,top:0,width:Number(this.assetData?.w)}}createContent(){let t="";this.assetData&&this.globalData?.getAssetsPath&&(t=this.globalData.getAssetsPath(this.assetData)),this.assetData&&(this.innerElem=tT("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))}renderInnerContent(){}sourceRectAtTime(){return this.sourceRect}}class s8{constructor(){this.it=[],this.prevViewData=[],this.gr=tT("g")}}let s7=new eN,it=new eN;function ie(t,e,s){if(!e)throw Error("SVGElementsRenderer: Method renderContetTransform is missing data");(s||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",`${e.transform.op.v}`),(s||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function is(t,e,s){if(!e)throw Error("SVGElementsRenderer: Method renderFill is missing data");let i=e.style;e.c?.v&&(e.c._mdf||s)&&i.pElem.setAttribute("fill",`rgb(${Math.floor(e.c.v[0])},${Math.floor(e.c.v[1])},${e.c.v[2]})`),(e.o?._mdf||s)&&i.pElem.setAttribute("fill-opacity",`${e.o?.v}`)}function ii(t,e,s){let i,r;if(!e)throw Error("SVGElementsRenderer: Method renderGradient is missing data");let a=e.gf,n=e.g?._hasOpacity,o=e.s?.v??[0,0],h=e.e?.v??[0,0];if(e.o?._mdf||s){let s=t.ty===N.GradientFill?"fill-opacity":"stroke-opacity";e.style?.pElem.setAttribute(s,`${e.o?.v}`)}if(e.s?._mdf||s){let s=1===t.t?"x1":"cx",i="x1"===s?"y1":"cy";a?.setAttribute(s,`${o[0]}`),a?.setAttribute(i,`${o[1]}`),n&&!e.g?._collapsable&&(e.of?.setAttribute(s,`${o[0]}`),e.of?.setAttribute(i,`${o[1]}`))}if(e.g&&(e.g._cmdf||s)){i=e.cst;let t=e.g.c,{length:s}=i;for(let e=0;e<s;e++)(r=i[e]).setAttribute("offset",`${t[4*e]}%`),r.setAttribute("stop-color",`rgb(${t[4*e+1]},${t[4*e+2]},${t[4*e+3]})`)}if(n&&e.g&&(e.g._omdf||s)){let t=e.g.o,{length:s}=i=e.g._collapsable?e.cst:e.ost;for(let a=0;a<s;a++)r=i[a],e.g._collapsable||r.setAttribute("offset",`${t[2*a]}%`),r.setAttribute("stop-opacity",`${t[2*a+1]}`)}if(1===t.t)(e.e?._mdf||s)&&(a?.setAttribute("x2",`${h[0]}`),a?.setAttribute("y2",`${h[1]}`),n&&!e.g?._collapsable&&(e.of?.setAttribute("x2",`${h[0]}`),e.of?.setAttribute("y2",`${h[1]}`)));else{let t=0;if((e.s?._mdf||e.e?._mdf||s)&&(t=Math.sqrt(Math.pow(o[0]-h[0],2)+Math.pow(o[1]-h[1],2)),a?.setAttribute("r",`${t}`),n&&!e.g?._collapsable&&e.of?.setAttribute("r",`${t}`)),e.e?._mdf||e.h?._mdf||e.a?._mdf||s){t||(t=Math.sqrt(Math.pow(o[0]-h[0],2)+Math.pow(o[1]-h[1],2)));let s=Math.atan2(h[1]-o[1],h[0]-o[0]),i=Number(e.h?.v);i>=1?i=.99:i<=-1&&(i=-.99);let r=t*i,l=Math.cos(s+Number(e.a?.v))*r+o[0],p=Math.sin(s+Number(e.a?.v))*r+o[1];a?.setAttribute("fx",`${l}`),a?.setAttribute("fy",`${p}`),n&&!e.g?._collapsable&&(e.of?.setAttribute("fx",`${l}`),e.of?.setAttribute("fy",`${p}`))}}}function ir(t,e,s){ii(t,e,s),ih(t,e,s)}function ia(t){}function io(t,e,s){let i,r,a,n,o,h,l;if(!e)throw Error("SVGElementsRenderer: Method renderPath is missing data");let{caches:p,lvl:m,sh:c,styles:d,transformers:u}=e,{length:f}=d;for(let e=0;e<f;e++){if(r=c?._mdf||!!s,d[e].lvl<m){for(o=it.reset(),h=m-d[e].lvl,l=u.length-1;!r&&h>0;)r=u[l].mProps._mdf||r,h--,l--;if(r)for(h=m-d[e].lvl,l=u.length-1;h>0;)o.multiply(u[l].mProps.v),h--,l--}else o=s7;n=c?.paths;let f=n?._length||0;if(r){i="";for(let t=0;t<f;t++)a=n?.shapes[t],a?._length&&(i+=tP(a,a._length,!!a.c,o));p[e]=i}else i=p[e];d[e].d+=!0===t.hd?"":i,d[e]._mdf=r||d[e]._mdf}}function ih(t,e,s){if(!e)throw Error("SVGElementsRenderer: Method renderStroke is missing data");let{c:i,d:r,o:a,style:n,w:o}=e;r&&(r._mdf||s)&&r.dashStr&&(n?.pElem.setAttribute("stroke-dasharray",r.dashStr),n?.pElem.setAttribute("stroke-dashoffset",`${r.dashoffset[0]}`)),i&&(i._mdf||s)&&n?.pElem.setAttribute("stroke",`rgb(${Math.floor(i.v[0])},${Math.floor(i.v[1])},${Math.floor(i.v[2])})`),(a?._mdf||s)&&n?.pElem.setAttribute("stroke-opacity",`${a?.v??1}`),(o?._mdf||s)&&(n?.pElem.setAttribute("stroke-width",`${o?.v||0}`),n?.msElem&&n.msElem.setAttribute("stroke-width",`${o?.v||0}`))}class il extends si{constructor(t,e,s){super(),this.it=[],this.prevViewData=[],this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=sp.getProp(t,e.o,0,.01,this),this.c=sp.getProp(t,e.c,1,255,this),this.style=s}}class ip extends si{constructor(t,e,s){super(),this.data=e,this.c=e$(F.Uint8c,4*e.p);let i=e.k.k?.[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=e$(F.Float32,i),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=i,this.initDynamicPropertyContainer(s),this.prop=sp.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}checkCollapsable(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k?.[0].s){let t=0,e=this.data.k.k.length;for(;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t++}}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0}comparePoints(t,e){let s=0,i=this.o.length/2;for(;s<i;){if(Math.abs(t[4*s]-t[4*e+2*s])>.01)return!1;s++}return!0}getValue(t){let e,s;if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,!this.prop._mdf&&!t||!tz(this.prop.v))return 0;let i=4*this.data.p;for(let r=0;r<i;r++)e=r%4==0?100:255,s=Math.round(this.prop.v[r]*e),this.c[r]!==s&&(this.c[r]=s,this._cmdf=!t);if(this.o.length>0){let{length:e}=this.prop.v;for(let i=4*this.data.p;i<e;i++)s=i%2==0?Math.round(100*this.prop.v[i]):this.prop.v[i],this.o[i-4*this.data.p]!==s&&(this.o[i-4*this.data.p]=s,this._omdf=!t)}return this._mdf=!t,0}}class im extends si{constructor(t,e,s){super(),this.cst=[],this.it=[],this.ost=[],this.prevViewData=[],this.stops=[],this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,s)}initGradientData(t,e,s){this.o=sp.getProp(t,e.o,0,.01,this),this.s=sp.getProp(t,e.s,1,null,this),this.e=sp.getProp(t,e.e,1,null,this),this.h=sp.getProp(t,e.h??{k:0},0,.01,this),this.a=sp.getProp(t,e.a??{k:0},0,ti,this),this.g=new ip(t,e.g,this),this.style=s,this.stops=[],this.setGradientData(s.pElem,e),this.setGradientOpacity(e,s),this._isAnimated=!!this._isAnimated}setGradientData(t,e){let s,i=tA(),r=tT(1===e.t?"linearGradient":"radialGradient");r.setAttribute("id",i),r.setAttribute("spreadMethod","pad"),r.setAttribute("gradientUnits","userSpaceOnUse");let a=[],n=4*(e.g?.p||1);for(let t=0;t<n;t+=4)s=tT("stop"),r.appendChild(s),a.push(s);t.setAttribute(e.ty===N.GradientFill?"fill":"stroke",`url(${K()}#${i})`),this.gf=r,this.cst=a}setGradientOpacity(t,e){let s;if(!this.g?._hasOpacity||this.g._collapsable)return;let i=tT("mask"),r=tT("path");i.appendChild(r);let a=tA(),n=tA();i.setAttribute("id",n);let o=tT(1===t.t?"linearGradient":"radialGradient");o.setAttribute("id",a),o.setAttribute("spreadMethod","pad"),o.setAttribute("gradientUnits","userSpaceOnUse");let h=(t.g?.k.k?.[0].s?(t.g?.k.k)[0].s.length:t.g?.k.k.length)||0,{stops:l}=this;for(let e=4*(t.g?.p||1);e<h;e+=2)(s=tT("stop")).setAttribute("stop-color","rgb(255,255,255)"),o.appendChild(s),l.push(s);r.setAttribute(t.ty===N.GradientFill?"fill":"stroke",`url(${K()}#${a})`),t.ty===N.GradientStroke&&(r.setAttribute("stroke-linecap",R[t.lc||2]),r.setAttribute("stroke-linejoin",z[t.lj||2]),1===t.lj&&r.setAttribute("stroke-miterlimit",`${Number(t.ml)}`)),this.of=o,this.ms=i,this.ost=l,this.maskId=n,e.msElem=r}}class ic extends si{constructor(t,e,s,i){let r;super(),this.elem=t,this.frameId=-1,this.dataProps=eL(e.length),this.renderer=s,this.k=!1,this.dashStr="",this.dashArray=e$(F.Float32,e.length>0?e.length-1:0),this.dashoffset=e$(F.Float32,1),this.initDynamicPropertyContainer(i);let a=e.length||0;for(let s=0;s<a;s++)r=sp.getProp(t,e[s].v,0,0,this),this.k=r.k||this.k,this.dataProps[s]={n:e[s].n,p:r};this.k||this.getValue(!0),this._isAnimated=this.k}getValue(t){if(this.elem.globalData?.frameId===this.frameId&&!t||(this.elem.globalData?.frameId&&(this.frameId=this.elem.globalData.frameId),this.iterateDynamicProperties(),this._mdf=this._mdf||!!t,!this._mdf))return 0;let e=this.dataProps.length;this.renderer===L.SVG&&(this.dashStr="");for(let t=0;t<e;t++){if("o"===this.dataProps[t].n){this.dashoffset[0]=this.dataProps[t].p.v;continue}if(this.renderer===L.SVG){this.dashStr+=` ${this.dataProps[t].p.v}`;continue}this.dashArray[t]=this.dataProps[t].p.v}return 0}}class id extends im{constructor(t,e,s){super(t,e,s),this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=sp.getProp(t,e.w,0,null,this),this.d=new ic(t,e.d||[],L.SVG,this),this.initGradientData(t,e,s),this._isAnimated=!!this._isAnimated}}class iu extends si{constructor(t,e,s){super(),this.it=[],this.prevViewData=[],this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=s}}class ig{setAsAnimated(){this._isAnimated=!0}constructor(){this.caches=[],this.it=[],this.lStr="",this.lvl=0,this.pathsData=[],this.prevViewData=[],this.sh=null,this.styledShapes=[],this.styles=[],this.tr=[],this.transformers=[],this.trNodes=[]}}class iy extends ig{constructor(t,e,s){super(),this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=s,this.lvl=e,this._isAnimated=!!s.k;let i=0,{length:r}=t;for(;i<r;){if(t[i].mProps.dynamicProperties.length>0){this._isAnimated=!0;break}i++}}}class ib extends il{constructor(t,e,s){super(t,e,s),this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=sp.getProp(t,e.o,0,.01,this),this.w=sp.getProp(t,e.w,0,null,this),this.d=new ic(t,e.d||[],L.SVG,this),this.c=sp.getProp(t,e.c,1,255,this),this.style=s,this._isAnimated=!!this._isAnimated}}class iv{constructor(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=tT("path"),this.msElem=null}reset(){this.d="",this._mdf=!1}}class ix{constructor(t,e,s){this.transform={container:s,mProps:t,op:e},this.elements=[],this._isAnimated=!!(this.transform.mProps.dynamicProperties.length>0||this.transform.op.effectsSequence.length>0)}}class iw{constructor(t,e){this.elem=t,this.pos=e}}class i_ extends s5{addProcessedElement(t,e){let{processedElements:s}=this,i=s.length;for(;i;)if(s[--i].elem===t){s[i].pos=e;return}s.push(new iw(t,e))}addShapeToModifiers(t){let{length:e}=this.shapeModifiers;for(let s=0;s<e;s++)this.shapeModifiers[s].addShape(t)}isShapeInAnimatedModifiers(t){let e=0,{length:s}=this.shapeModifiers;for(;e<s;){if(this.shapeModifiers[e].isAnimatedWithShape(t))return!0;e++}return!1}prepareFrame(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}renderModifiers(){if(0===this.shapeModifiers.length)return;let{length:t}=this.shapes;for(let e=0;e<t;e++)this.shapes[e].sh?.reset();let{length:e}=this.shapeModifiers;for(let t=e-1;t>=0&&!this.shapeModifiers[t].processShapes(!!this._isFirstFrame);t--);}searchProcessedElement(t){let{processedElements:e}=this,s=0,{length:i}=e;for(;s<i;){if(e[s].elem===t)return e[s].pos;s++}return 0}constructor(...t){super(...t),this.processedElements=[],this.shapeModifiers=[],this.shapes=[]}}let iE={};function iC(t,e,s){if(!iE[t])throw Error("Invalid modifier");return new iE[t]}function ik(t,e){iE[t]=iE[t]??e}class iS extends i_{constructor(t,e,s){super(),this.createContainerElements=s6.prototype.createContainerElements,this.createRenderableComponents=s6.prototype.createRenderableComponents,this.destroyBaseElement=s6.prototype.destroyBaseElement,this.getBaseElement=s6.prototype.getBaseElement,this.getMatte=s6.prototype.getMatte,this.identityMatrix=new eN,this.initRendererElement=s6.prototype.initRendererElement,this.renderElement=s6.prototype.renderElement,this.setMatte=s6.prototype.setMatte,this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,s),this.prevViewData=[]}addToAnimatedContents(t,e){let s=0,{length:i}=this.animatedContents;for(;s<i;){if(this.animatedContents[s].element===e)return;s++}this.animatedContents.push({data:t,element:e,fn:function(t){switch(t.ty){case N.Fill:return is;case N.GradientFill:return ii;case N.GradientStroke:return ir;case N.Stroke:return ih;case N.Path:case N.Ellipse:case N.Rectangle:case N.PolygonStar:return io;case N.Transform:return ie;case N.NoStyle:return ia;default:return null}}(t)})}buildExpressionInterface(){}createContent(){if(!this.layerElement)throw Error(`${this.constructor.name}: Could not access Layer`);this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()}createGroupElement(t){let e=new s8;return t.ln&&(e.gr.id=t.ln),t.cl&&e.gr.classList.add(t.cl),t.bm&&(e.gr.style.mixBlendMode=tL(t.bm)),e}createShapeElement(t,e,s){let i=4;switch(t.ty){case N.Rectangle:i=5;break;case N.Ellipse:i=6;break;case N.PolygonStar:i=7}let r=new iy(e,s,sS.getShapeProp(this,t,i));return this.shapes.push(r),this.addShapeToModifiers(r),this.addToAnimatedContents(t,r),r}createStyleElement(t,e){let s=null,i=new iv(t,e),r=i.pElem;switch(t.ty){case N.Stroke:s=new ib(this,t,i);break;case N.Fill:s=new il(this,t,i);break;case N.GradientFill:case N.GradientStroke:(s=new(t.ty===N.GradientFill?im:id)(this,t,i)).gf&&this.globalData?.defs.appendChild(s.gf),s.maskId&&s.ms&&s.of&&(this.globalData?.defs.appendChild(s.ms),this.globalData?.defs.appendChild(s.of),r.setAttribute("mask",`url(${K()}#${s.maskId})`));break;case N.NoStyle:s=new iu(this,t,i)}return(t.ty===N.Stroke||t.ty===N.GradientStroke)&&(r.setAttribute("stroke-linecap",R[t.lc||2]),r.setAttribute("stroke-linejoin",z[t.lj||2]),r.setAttribute("fill-opacity","0"),1===t.lj&&t.ml&&r.setAttribute("stroke-miterlimit",`${t.ml}`)),2===t.r&&r.setAttribute("fill-rule","evenodd"),t.ln&&r.setAttribute("id",t.ln),t.cl&&r.setAttribute("class",t.cl),t.bm&&(r.style.mixBlendMode=tL(t.bm)),this.stylesList.push(i),s&&this.addToAnimatedContents(t,s),s}createTransformElement(t,e){let s=sQ.getTransformProperty(this,t,this);if(!s.o)throw Error(`${this.constructor.name}: Missing required data in TransformProperty`);let i=new ix(s,s.o,e);return this.addToAnimatedContents(t,i),i}destroy(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null}filterUniqueShapes(){let t,e,{length:s}=this.shapes,i=this.stylesList.length,r=[];for(let a=0;a<i;a++){t=this.stylesList[a],e=!1,r.length=0;for(let i=0;i<s;i++)this.shapes[i].styles.includes(t)&&(r.push(this.shapes[i]),e=this.shapes[i]._isAnimated||e);r.length>1&&e&&this.setShapesAsAnimated(r)}}initSecondaryElement(){}reloadShapes(){if(!this.layerElement)throw Error(`${this.constructor.name}: Could not access layerElement`);this._isFirstFrame=!0;let{length:t}=this.itemsData;for(let e=0;e<t;e++)this.prevViewData[e]=this.itemsData[e];this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes();let{length:e}=this.dynamicProperties;for(let t=0;t<e;t++)this.dynamicProperties[t].getValue();this.renderModifiers()}renderInnerContent(){this.renderModifiers();let{length:t}=this.stylesList;for(let e=0;e<t;e++)this.stylesList[e].reset();this.renderShape();for(let e=0;e<t;e++)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem?.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d=`M0 0${this.stylesList[e].d}`),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))}renderShape(){let{length:t}=this.animatedContents;for(let e=0;e<t;e++)(this._isFirstFrame||this.animatedContents[e].element._isAnimated)&&!0!==this.animatedContents[e].data&&this.animatedContents[e].fn&&this.animatedContents[e].fn?.(this.animatedContents[e].data,this.animatedContents[e].element,this._isFirstFrame)}searchShapes(t,e,s,i,r,a,n){let o,h,l=n,p=[...a],m=[],c=[],{length:d}=t;for(let a=d-1;a>=0;a--){let n=this.searchProcessedElement(t[a]);switch(n?e[a]=s[n-1]:t[a]._render=l,t[a].ty){case N.Fill:case N.Stroke:case N.GradientFill:case N.GradientStroke:case N.NoStyle:if(n){let{style:t}=e[a]??{style:null};t&&(t.closed=!1)}else e[a]=this.createStyleElement(t[a],r);if(t[a]._render&&e[a]?.style?.pElem.parentNode!==i){let{pElem:t}=e[a].style??{pElem:null};t&&i.appendChild(t)}m.push(e[a]?.style);break;case N.Group:if(n){let{length:t}=e[a]?.it??[];for(let s=0;s<t;s++){let{it:t,prevViewData:i}=e[a]??{it:null,prevViewData:null};i&&t&&(i[s]=t[s])}}else e[a]=this.createGroupElement(t[a]);if(this.searchShapes(t[a].it,e[a]?.it??[],e[a]?.prevViewData??[],e[a].gr,r+1,p,l),t[a]._render&&e[a]?.gr?.parentNode!==i){let{gr:t}=e[a];t&&i.appendChild(t)}break;case N.Transform:n||(e[a]=this.createTransformElement(t[a],i)),(o=e[a]?.transform)&&p.push(o);break;case N.Path:case N.Rectangle:case N.Ellipse:case N.PolygonStar:n||(e[a]=this.createShapeElement(t[a],p,r)),this.setElementStyles(e[a]);break;case N.Trim:case N.RoundedCorners:case N.Unknown:case N.PuckerBloat:case N.ZigZag:case N.OffsetPath:n?(h=e[a]).closed=!1:((h=iC(t[a].ty)).init(this,t[a]),e[a]=h,this.shapeModifiers.push(h)),c.push(h);break;case N.Repeater:if(n){(h=e[a]).closed=!0,c.push(h);break}h=iC(t[a].ty),e[a]=h,h.init(this,t,a,e),this.shapeModifiers.push(h),l=!1,c.push(h)}this.addProcessedElement(t[a],a+1)}let{length:u}=m;for(let t=0;t<u;t++){let e=m[t];e&&(e.closed=!0)}let{length:f}=c;for(let t=0;t<f;t++)c[t].closed=!0}setElementStyles(t){let{length:e}=this.stylesList;for(let s=0;s<e;s++)this.stylesList[s].closed||t.styles.push(this.stylesList[s])}setShapesAsAnimated(t){let{length:e}=t;for(let s=0;s<e;s++)t[s].setAsAnimated()}}class iM extends s3{constructor(t,e,s){if(super(),this.clearCanvas=sV.prototype.clearCanvas,this.createContainerElements=sV.prototype.createContainerElements,this.createElements=sV.prototype.createElements,this.createRenderableComponents=sV.prototype.createRenderableComponents,this.exitLayer=sV.prototype.exitLayer,this.hideElement=sV.prototype.hideElement,this.initElement=iS.prototype.initElement,this.initRendererElement=sV.prototype.initRendererElement,this.prepareFrame=s9.prototype.prepareFrame,this.prepareLayer=sV.prototype.prepareLayer,this.renderFrame=sV.prototype.renderFrame,this.setBlendMode=sV.prototype.setBlendMode,this.show=sV.prototype.show,this.showElement=sV.prototype.showElement,this.assetData=e.getAssetData(t.refId),!e.imageLoader)throw Error(`${this.constructor.name} imageLoader is not implemented in globalData`);this.img=e.imageLoader.getAsset(this.assetData),this.initElement(t,e,s)}createContent(){let t,e;if(!this.assetData)throw Error(`${this.constructor.name}: assetData is not implemented`);if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);if(!this.img.width||this.assetData.w===this.img.width&&this.assetData.h===this.img.height)return;let s=tF("canvas");s.width=Number(this.assetData.w),s.height=Number(this.assetData.h);let i=s.getContext("2d"),r=this.img.width,a=this.img.height,n=r/a,o=Number(this.assetData.w)/Number(this.assetData.h),h=this.assetData.pr||this.globalData.renderConfig?.imagePreserveAspectRatio;n>o&&"xMidYMid slice"===h||n<o&&"xMidYMid slice"!==h?t=(e=a)*o:e=(t=r)/o,i?.drawImage(this.img,(r-t)/2,(a-e)/2,t,e,0,0,Number(this.assetData.w),Number(this.assetData.h)),this.img=s}destroy(){this.img=null}renderInnerContent(){this.canvasContext?.drawImage(this.img,0,0)}}class iP extends ig{constructor(t,e,s,i){let r,a;switch(super(),this.styledShapes=[],this.tr=[0,0,0,0,0,0],e.ty){case N.Rectangle:r=5;break;case N.Ellipse:r=6;break;case N.PolygonStar:r=7;break;default:r=4}this.sh=sS.getShapeProp(t,e,r);let{length:n}=s;for(let t=0;t<n;t++)s[t].closed||(a={transforms:i.addTransformSequence(s[t].transforms),trNodes:[]},this.styledShapes.push(a),s[t].elements.push(a))}}class iA{constructor(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}addTransformSequence(t){let{length:e}=t,s="_";for(let i=0;i<e;i++)s+=`${t[i].transform.key}_`;let i=this.sequences[s];return i||(i={_mdf:!1,finalTransform:new eN,transforms:[...t]},this.sequences[s]=i,this.sequenceList.push(i)),i}getNewKey(){return this.transform_key_count++,`_${this.transform_key_count}`}processSequence(t,e){let s=0,{length:i}=t.transforms??[],r=e;if(!e)for(;s<i;){if(t.transforms?.[s].transform.mProps._mdf){r=!0;break}s++}if(r)for(t.finalTransform?.reset(),s=i-1;s>=0;s-=1){let{v:e}=t.transforms?.[s].transform.mProps??{v:null};e&&t.finalTransform?.multiply(e)}t._mdf=r}processSequences(t){let{length:e}=this.sequenceList;for(let s=0;s<e;s++)this.processSequence(this.sequenceList[s],t)}}class iD extends i_{constructor(t,e,s){super(),this.clearCanvas=sV.prototype.clearCanvas,this.createContainerElements=sV.prototype.createContainerElements,this.createRenderableComponents=sV.prototype.createRenderableComponents,this.dashResetter=[],this.exitLayer=sV.prototype.exitLayer,this.hide=sV.prototype.hide,this.initRendererElement=sV.prototype.initRendererElement,this.prepareLayer=sV.prototype.prepareLayer,this.renderFrame=sV.prototype.renderFrame,this.setBlendMode=sV.prototype.setBlendMode,this.show=sV.prototype.show,this.transformHelper={_opMdf:!1,opacity:1},this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new iA,this.initElement(t,e,s)}addTransformToStyleList(t){let{length:e}=this.stylesList;for(let s=0;s<e;s++)this.stylesList[s].closed||this.stylesList[s].transforms.push(t)}closeStyles(t){let{length:e}=t;for(let s=0;s<e;s++)t[s].closed=!0}createContent(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])}createGroupElement(t){return{it:[],prevViewData:[]}}createShapeElement(t){let e=new iP(this,t,this.stylesList,this.transformsManager);return this.shapes.push(e),this.addShapeToModifiers(e),e}createStyleElement(t,e){let s={closed:!0===t.hd,data:t,elements:[],preTransforms:this.transformsManager.addTransformSequence(e),transforms:[],type:t.ty},i={};switch(t.ty){case N.Fill:case N.Stroke:i.c=sp.getProp(this,t.c,1,255,this),i.c.k||(s.co=`rgb(${Math.floor(i.c.v[0])},${Math.floor(i.c.v[1])},${Math.floor(i.c.v[2])})`);break;case N.GradientFill:case N.GradientStroke:i.s=sp.getProp(this,t.s,1,null,this),i.e=sp.getProp(this,t.e,1,null,this),i.h=sp.getProp(this,t.h??{k:0},0,.01,this),i.a=sp.getProp(this,t.a??{k:0},0,ti,this),t.g&&(i.g=new ip(this,t.g,this))}return i.o=sp.getProp(this,t.o,0,.01,this),t.ty===N.Stroke||t.ty===N.GradientStroke?(s.lc=R[t.lc||2],s.lj=z[t.lj||2],1===t.lj&&(s.ml=t.ml),i.w=sp.getProp(this,t.w,0,null,this),i.w.k||(s.wi=i.w.v),t.d&&"object"==typeof t.d&&(i.d=new ic(this,t.d,L.Canvas,this),i.d.k||(s.da=i.d.dashArray,s.do=i.d.dashoffset[0]))):s.r=2===t.r?"evenodd":"nonzero",this.stylesList.push(s),i.style=s,i}createTransformElement(t){return{transform:{_opMdf:!1,key:this.transformsManager.getNewKey(),mProps:sQ.getTransformProperty(this,t,this),op:sp.getProp(this,t.o,0,.01,this),opacity:1}}}destroy(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0}drawLayer(){let t;if(!this.globalData)throw Error(`${this.constructor.name} globalData is not implemented`);if(!this.globalData.renderer)throw Error(`${this.constructor.name} renderer is not implemented`);let{length:e}=this.stylesList,{renderer:s}=this.globalData,i=this.globalData.canvasContext;for(let r=0;r<e;r++){let{co:e,coOp:a,da:n,data:o,elements:h,grd:l,lc:p,lj:m,ml:c,preTransforms:d,type:u,wi:f}=t=this.stylesList[r],g=u===N.Stroke||u===N.GradientStroke;if(g&&0===f||!o._shouldRender||0===a||0===this.globalData.currentGlobalAlpha)continue;s.save(),g?(s.ctxStrokeStyle(u===N.Stroke?e:l),s.ctxLineWidth(f||0),p&&s.ctxLineCap(p),m&&s.ctxLineJoin(m),s.ctxMiterLimit(c||0)):s.ctxFillStyle(u===N.Fill?e:l),s.ctxOpacity(a),u!==N.Stroke&&u!==N.GradientStroke&&i?.beginPath(),s.ctxTransform(d.finalTransform.props);let{length:y}=h;for(let e=0;e<y;e++){(u===N.Stroke||u===N.GradientStroke)&&(i?.beginPath(),i&&n&&(i.setLineDash(n),i.lineDashOffset=t.do||0));let r=h[e].trNodes,{length:a}=r;for(let t=0;t<a;t++)"m"===r[t].t?i?.moveTo(r[t].p[0],r[t].p[1]):"c"===r[t].t?i?.bezierCurveTo(r[t].pts[0],r[t].pts[1],r[t].pts[2],r[t].pts[3],r[t].pts[4],r[t].pts[5]):i?.closePath();g&&(s.ctxStroke(),n&&i?.setLineDash(this.dashResetter))}g||this.globalData.renderer?.ctxFill(t.r),s.restore()}}reloadShapes(){this._isFirstFrame=!0;let{length:t}=this.itemsData;for(let e=0;e<t;e++)this.prevViewData[e]=this.itemsData[e];this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]);let{length:e}=this.dynamicProperties;for(let t=0;t<e;t++)this.dynamicProperties[t].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)}removeTransformFromStyleList(){let{length:t}=this.stylesList;for(let e=0;e<t;e++)this.stylesList[e].closed||this.stylesList[e].transforms.pop()}renderFill(t,e,s){let i=e.style;(e.c._mdf||this._isFirstFrame)&&(i.co=`rgb(${Math.floor(e.c.v[0])},${Math.floor(e.c.v[1])},${Math.floor(e.c.v[2])})`),(e.o._mdf||s._opMdf||this._isFirstFrame)&&(i.coOp=e.o.v*s.opacity)}renderGradientFill(t,e,s){let i;if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);let r=e.style;if(!r.grd||e.g._mdf||e.s._mdf||e.e._mdf||1!==t.t&&(e.h._mdf||e.a._mdf)){let s=this.globalData.canvasContext,a=e.s.v,n=e.e.v;if(1===t.t)i=s?.createLinearGradient(a[0],a[1],n[0],n[1]);else{let t=Math.sqrt(Math.pow(a[0]-n[0],2)+Math.pow(a[1]-n[1],2)),r=Math.atan2(n[1]-a[1],n[0]-a[0]),o=e.h.v;o>=1?o=.99:o<=-1&&(o=-.99);let h=t*o,l=Math.cos(r+e.a.v)*h+a[0],p=Math.sin(r+e.a.v)*h+a[1];i=s?.createRadialGradient(l,p,0,a[0],a[1],t)}let o=t.g.p,h=e.g.c,l=1;for(let t=0;t<o;t++)e.g._hasOpacity&&e.g._collapsable&&(l=e.g.o[2*t+1]),i?.addColorStop(h[4*t]/100,`rgba(${h[4*t+1]},${h[4*t+2]},${h[4*t+3]},${l})`);r.grd=i}r.coOp=e.o.v*s.opacity}renderInnerContent(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)}renderPath(t,e){if(!0===t.hd||!t._shouldRender||!e.sh)return;let{length:s}=e.styledShapes;for(let t=0;t<s;t++)this.renderStyledShape(e.styledShapes[t],e.sh)}renderShape(t,e,s,i){let r,a=e.length-1;r=t;for(let i=a;i>=0;i--)switch(e[i].ty){case N.Transform:r=s[i].transform,this.renderShapeTransform(t,r);break;case N.Path:case N.Ellipse:case N.Rectangle:case N.PolygonStar:this.renderPath(e[i],s[i]);break;case N.Fill:this.renderFill(e[i],s[i],r);break;case N.Stroke:this.renderStroke(e[i],s[i],r);break;case N.GradientFill:case N.GradientStroke:this.renderGradientFill(e[i],s[i],r);break;case N.Group:this.renderShape(r,e[i].it??[],s[i].it);case N.Trim:}i&&this.drawLayer()}renderShapeTransform(t,e){(t._opMdf||e.op?._mdf||this._isFirstFrame)&&(e.opacity=t.opacity,e.opacity*=e.op?.v||1,e._opMdf=!0)}renderStroke(t,e,s){let i=e.style,{c:r,d:a,o:n,w:o}=e;a&&(a._mdf||this._isFirstFrame)&&(i.da=a.dashArray,i.do=a.dashoffset[0]),(r._mdf||this._isFirstFrame)&&(i.co=`rgb(${Math.floor(r.v[0])},${Math.floor(r.v[1])},${Math.floor(r.v[2])})`),(n._mdf||s._opMdf||this._isFirstFrame)&&(i.coOp=n.v*s.opacity),(o._mdf||this._isFirstFrame)&&(i.wi=o.v)}renderStyledShape(t,e){let s,i,r;if(!this._isFirstFrame&&!e._mdf&&!t.transforms._mdf)return;let{transforms:a,trNodes:n}=t,{paths:o}=e,h=o?._length||0;n.length=0;let l=a?.finalTransform;for(r=0;r<h;r++){let t=o?.shapes[r];if(t?.v){for(s=1,i=t._length;s<i;s++)1===s&&n.push({p:l.applyToPointArray(t.v[0][0],t.v[0][1],0),t:"m"}),n.push({pts:l.applyToTriplePoints(t.o[s-1],t.i[s],t.v[s]),t:"c"});1===i&&n.push({p:l.applyToPointArray(t.v[0][0],t.v[0][1],0),t:"m"}),t.c&&i&&n.push({pts:l.applyToTriplePoints(t.o[s-1],t.i[0],t.v[0]),t:"c"},{t:"z"})}}t.trNodes=n}searchShapes(t,e,s,i,r){let a,n,o=i,h=t.length-1,l=[],p=[],m=[...r];for(let i=h;i>=0;i--){let r=this.searchProcessedElement(t[i]);switch(r?e[i]=s[r-1]:t[i]._shouldRender=o,t[i].ty){case N.Fill:case N.Stroke:case N.GradientFill:case N.GradientStroke:r?e[i].style.closed=!1:e[i]=this.createStyleElement(t[i],m),l.push(e[i].style);break;case N.Group:if(r){let{length:t}=e[i].it;for(let s=0;s<t;s++)e[i].prevViewData[s]=e[i].it[s]}else e[i]=this.createGroupElement(t[i]);this.searchShapes(t[i].it??[],e[i].it,e[i].prevViewData,o,m);break;case N.Transform:r||(n=this.createTransformElement(t[i]),e[i]=n),m.push(e[i]),this.addTransformToStyleList(e[i]);break;case N.Path:case N.Rectangle:case N.Ellipse:case N.PolygonStar:r||(e[i]=this.createShapeElement(t[i]));break;case N.Trim:case N.RoundedCorners:case N.PuckerBloat:case N.ZigZag:case N.OffsetPath:r?(a=e[i]).closed=!1:((a=iC(t[i].ty)).init(this,t[i]),e[i]=a,this.shapeModifiers.push(a)),p.push(a);break;case N.Repeater:r?(a=e[i]).closed=!0:(a=iC(t[i].ty),e[i]=a,a.init(this,t,i,e),this.shapeModifiers.push(a),o=!1),p.push(a)}this.addProcessedElement(t[i],i+1)}this.removeTransformFromStyleList(),this.closeStyles(l);let{length:c}=p;for(let t=0;t<c;t++)p[t].closed=!0}}class iT extends s3{constructor(t,e,s){super(),this.initElement=iS.prototype.initElement,this.prepareFrame=s9.prototype.prepareFrame,this.initElement(t,e,s)}renderInnerContent(){if(!this.globalData)throw Error(`${this.constructor.name}: globalData it not implemented`);if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) it not implemented`);if(!this.globalData.renderer)throw Error(`${this.constructor.name}: globalData.renderer it not implemented`);this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw||0,this.data.sh||0)}}class iF{constructor(t,e,s,i,r,a){this.o=t,this.sw=e,this.sc=s,this.fc=i,this.m=r,this.p=a,this._mdf={fc:!!i,m:!0,o:!0,p:!0,sc:!!s,sw:!!e}}update(t,e,s,i,r,a){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;let n=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,n=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,n=!0),this.sc!==s&&(this.sc=s,this._mdf.sc=!0,n=!0),this.fc!==i&&(this.fc=i,this._mdf.fc=!0,n=!0),this.m!==r&&(this.m=r,this._mdf.m=!0,n=!0),Array.isArray(a)&&a.length>0&&(this.p[0]!==a[0]||this.p[1]!==a[1]||this.p[4]!==a[4]||this.p[5]!==a[5]||this.p[12]!==a[12]||this.p[13]!==a[13])&&(this.p=a,this._mdf.p=!0,n=!0),n}}class iI extends sr{constructor(t,e){super(),this._currentTextLength=-1,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=sp.getProp(t,e.s??{a:0,k:0},0,0,this),"e"in e?this.e=sp.getProp(t,e.e,0,0,this):this.e={v:100},this.o=sp.getProp(t,e.o??{a:0,k:0},0,0,this),this.xe=sp.getProp(t,e.xe??{a:0,k:0},0,0,this),this.ne=sp.getProp(t,e.ne??{a:0,k:0},0,0,this),this.sm=sp.getProp(t,e.sm??{a:0,k:100},0,0,this),this.a=sp.getProp(t,e.a,0,.01,this),0===this.dynamicProperties.length&&this.getValue()}getMult(t,e){let s=t;this._currentTextLength!==this.elem.textProperty?.currentData.l.length&&this.getValue();let i=0,r=0,a=1,n=1;this.ne.v>0?i=this.ne.v/100:r=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:n=1+this.xe.v/100;let o=se(i,r,a,n).get,h=0,l=this.finalS,p=this.finalE;switch(this.data.sh){case 2:h=o(h=p===l?+(s>=p):Math.max(0,Math.min(.5/(p-l)+(s-l)/(p-l),1)));break;case 3:h=o(h=p===l?s>=p?0:1:1-Math.max(0,Math.min(.5/(p-l)+(s-l)/(p-l),1)));break;case 4:p===l?h=0:(h=Math.max(0,Math.min(.5/(p-l)+(s-l)/(p-l),1)))<.5?h*=2:h=1-2*(h-.5),h=o(h);break;case 5:if(p===l)h=0;else{let t=p-l,e=-t/2+(s=Math.min(Math.max(0,s+.5-l),p-l)),i=t/2;h=Math.sqrt(1-e*e/(i*i))}h=o(h);break;case 6:h=o(h=p===l?0:(1+Math.cos(Math.PI+2*Math.PI*(s=Math.min(Math.max(0,s+.5-l),p-l))/(p-l)))/2);break;default:s>=Math.floor(l)&&(h=s-l<0?Math.max(0,Math.min(Math.min(p,1)-(l-s),1)):Math.max(0,Math.min(p-s,1))),h=o(h)}if(100!==this.sm.v){let t=.01*this.sm.v;0===t&&(t=1e-8);let e=.5-.5*t;h<e?h=0:(h=(h-e)/t)>1&&(h=1)}return h*Number(this.a.v)}getTextSelectorProp(t,e,s){throw Error("Method not implemented")}getValue(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.e.v=this._currentTextLength);let e=2===this.data.r?1:100/this.data.totalChars,s=Number(this.o.v)/e,i=Number(this.s?.v)/e+s,r=Number(this.e.v)/e+s;if(i>r){let t=i;i=r,r=t}return this.finalS=i,this.finalE=r,0}}class i${constructor(t,e,s){let i={propType:!1},r=e?.a;this.a={a:r?.a?sp.getProp(t,r.a,1,0,s):i,fb:r?.fb?sp.getProp(t,r.fb,0,.01,s):i,fc:r?.fc?sp.getProp(t,r.fc,1,0,s):i,fh:r?.fh?sp.getProp(t,r.fh,0,0,s):i,fs:r?.fs?sp.getProp(t,r.fs,0,.01,s):i,o:r?.o?sp.getProp(t,r.o,0,.01,s):i,p:r?.p?sp.getProp(t,r.p,1,0,s):i,r:r?.r?sp.getProp(t,r.r,0,ti,s):i,rx:r?.rx?sp.getProp(t,r.rx,0,ti,s):i,ry:r?.ry?sp.getProp(t,r.ry,0,ti,s):i,s:r?.s?sp.getProp(t,r.s,1,.01,s):i,sa:r?.sa?sp.getProp(t,r.sa,0,ti,s):i,sc:r?.sc?sp.getProp(t,r.sc,1,0,s):i,sk:r?.sk?sp.getProp(t,r.sk,0,ti,s):i,sw:r?.sw?sp.getProp(t,r.sw,0,0,s):i,t:r?.t?sp.getProp(t,r.t,0,0,s):i},this.s=new iI(t,e?.s),this.s.t=e?.s?.t}}class iL extends si{constructor(t,e,s){super(),this.defaultPropsArray=[],this.mHelper=new eN,this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=s,this._animatorsData=eL(Number(this._textData.a?.length)),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(s)}getMeasures(t,e){let s,i,r,a;if(this.lettersChangedFlag=!!e,!this._mdf&&!this._isFirstFrame&&!e&&(!this._hasMaskedPath||!this._pathData.m?._mdf))return;this._isFirstFrame=!1;let n=this._moreOptions.alignment.v,o=this._animatorsData,h=this._textData,l=this.mHelper,p=this._renderType,m=this.renderedLetters.length,c,d,u,f,g=t.l,y,b=0,v,x=0,w,_=0,E=0,C,k=null,S,M=0,P=0,A,D,T;if(this._hasMaskedPath){if(T=this._pathData.m,!this._pathData.n||this._pathData._mdf){let t,e=T?.v??[];for(this._pathData.r?.v&&(e=e.reverse()),y={segments:[],tLength:0},f=Number(e._length)-1,P=0,u=0;u<f;u++)t=e0(e.v[u],e.v[u+1],[e.o[u][0]-e.v[u][0],e.o[u][1]-e.v[u][1]],[e.i[u+1][0]-e.v[u+1][0],e.i[u+1][1]-e.v[u+1][1]]),y.tLength+=t.segmentLength,y.segments.push(t),P+=t.segmentLength;u=f,T.v.c&&(t=e0(e.v[u],e.v[0],[e.o[u][0]-e.v[u][0],e.o[u][1]-e.v[u][1]],[e.i[0][0]-e.v[0][0],e.i[0][1]-e.v[0][1]]),y.tLength+=t.segmentLength,y.segments.push(t),P+=t.segmentLength),this._pathData.pi=y}if(y=this._pathData.pi,b=this._pathData.f.v,E=0,_=1,x=0,S=y.segments,b<0&&T.v.c)for(y.tLength<Math.abs(b)&&(b=-Math.abs(b)%y.tLength),E=S.length-1,_=(k=S[E].points).length-1;b<0;)b+=k[_]?.partialLength,(_-=1)<0&&(E-=1,_=(k=S[E].points).length-1);C=(k=S[E].points)[_-1],M=(v=k[_]).partialLength}f=g.length||0,c=0,d=0;let F=1.2*(t.finalSize||0)*.714,I=!0,$=o.length,N,B=-1,V,R,z,O=b,G=E,q=_,j=-1,W,H=[0,0,0],Y=0,U=[0,0,0],X,J,Z,K,Q="",tt=this.defaultPropsArray,te;if(2===t.j||1===t.j){let e=0,a=0,n=2===t.j?-.5:-1,l=0,p=!0;for(u=0;u<f;u++){if(g[u].n){for(e&&(e+=a);l<u;)g[l].animatorJustifyOffset=e,l++;e=0,p=!0;continue}for(r=0;r<$;r++)s=o[r].a,s?.t.propType&&(p&&2===t.j&&(a+=Number(s.t.v)*n),i=o[r].s,Array.isArray(N=i?.getMult(g[u].anIndexes[r],h.a?.[r].s?.totalChars))?e+=Number(s.t.v)*N[0]*n:e+=Number(s.t.v)*Number(N)*n);p=!1}for(e&&(e+=a);l<u;)g[l].animatorJustifyOffset=e,l++}for(u=0;u<f;u++){if(l.reset(),W=1,g[u].n)c=0,d+=t.yOffset||0,d+=+!!I,b=O,I=!1,this._hasMaskedPath&&(E=G||0,_=q||0,C=(k=S?.[E]?.points??[])[_-1],M=(v=k[_]).partialLength,x=0),Q="",K="",J="",te="",tt=this.defaultPropsArray;else{if(this._hasMaskedPath){if(j!==g[u].line){switch(t.j){case 1:b+=P-t.lineWidths[g[u].line];break;case 2:b+=(P-t.lineWidths[g[u].line])/2}j=g[u].line||0}B!==g[u].ind&&(g[B]&&(b+=Number(g[B].extra)),b+=(g[u].an||0)/2,B=g[u].ind||0),b+=n[0]*(g[u].an||0)*.005;let e=0;for(r=0;r<$;r++){if(s=o[r].a,s?.p.propType){if(i=o[r].s,!(N=i?.getMult(g[u].anIndexes[r],h.a?.[r].s?.totalChars)))continue;Array.isArray(s.p.v)&&(Array.isArray(N)?e+=s.p.v[0]*N[0]:e+=s.p.v[0]*N)}if(s?.a.propType){if((i=o[r].s,N=i?.getMult(Number(g[u].anIndexes[r]),h.a?.[r].s?.totalChars))&&Array.isArray(s.a.v)){if(Array.isArray(N)){e+=s.a.v[0]*N[0];continue}e+=s.a.v[0]*N}}}for(w=!0,this._pathData.a?.v&&(b=.5*(g[0].an||0)+(P-Number(this._pathData.f?.v)-.5*(g[0].an||0)-.5*g[g.length-1].an)*B/(f-1)+Number(this._pathData.f?.v));w;)x+M>=b+e||!k?(A=(b+e-x)/(v?.partialLength||0),R=Number(C?.point[0])+(Number(v?.point[0])-Number(C?.point[0]))*A,z=Number(C?.point[1])+(Number(v?.point[1])-Number(C?.point[1]))*A,l.translate(-n[0]*Number(g[u].an)*.005,-(.01*(n[1]*F))),w=!1):k.length>0&&(x+=Number(v?.partialLength),++_>=k.length&&(_=0,E++,S?.[E]?k=S[E].points:T?.v.c?(_=0,E=0,k=S?.[E].points??[]):(x-=Number(v?.partialLength),k=null)),k&&(C=v,M=(v=k[_]).partialLength));V=g[u].an/2-g[u].add,l.translate(-V,0,0)}else V=g[u].an/2-g[u].add,l.translate(-V,0,0),l.translate(-n[0]*g[u].an*.005,-n[1]*F*.01,0);for(r=0;r<$;r++)if(s=o[r].a,s?.t.propType&&(i=o[r].s,N=i?.getMult(Number(g[u].anIndexes[r]),h.a?.[r].s?.totalChars),0!==c||0!==t.j)){if(this._hasMaskedPath){Array.isArray(N)?b+=Number(s.t.v)*N[0]:b+=Number(s.t.v)*Number(N);continue}if(Array.isArray(N)){c+=Number(s.t.v)*N[0];continue}c+=Number(s.t.v)*Number(N)}for(t.strokeWidthAnim&&(Y=t.sw||0),t.strokeColorAnim&&(H=t.sc?[Number(t.sc[0]),Number(t.sc[1]),Number(t.sc[2])]:[0,0,0]),t.fillColorAnim&&t.fc&&(U=[Number(t.fc[0]),Number(t.fc[1]),Number(t.fc[2])]),r=0;r<$;r++)if(s=o[r].a,s?.a.propType){if(i=o[r].s,!(N=i?.getMult(g[u].anIndexes[r],h.a?.[r].s?.totalChars))||!Array.isArray(s.a.v))continue;if(Array.isArray(N)){l.translate(-s.a.v[0]*N[0],-s.a.v[1]*N[1],s.a.v[2]*N[2]);continue}l.translate(-s.a.v[0]*N,-s.a.v[1]*N,s.a.v[2]*N)}for(r=0;r<$;r++)if(s=o[r].a,s?.s.propType){if(i=o[r].s,!(N=i?.getMult(g[u].anIndexes[r],h.a?.[r].s?.totalChars))||!Array.isArray(s.s.v))continue;if(Array.isArray(N)){l.scale(1+(s.s.v[0]-1)*N[0],1+(s.s.v[1]-1)*N[1],1);continue}l.scale(1+(s.s.v[0]-1)*N,1+(s.s.v[1]-1)*N,1)}for(r=0;r<$;r++)if(s=o[r].a,i=o[r].s,N=i?.getMult(g[u].anIndexes[r],h.a?.[r].s?.totalChars)){if(s?.sk.propType&&(Array.isArray(N)?l.skewFromAxis(-Number(s.sk.v)*N[0],Number(s.sa.v)*N[1]):l.skewFromAxis(-Number(s.sk.v)*N,Number(s.sa.v)*N)),s?.r.propType&&(Array.isArray(N)?l.rotateZ(-Number(s.r.v)*N[2]):l.rotateZ(-Number(s.r.v)*N)),s?.ry.propType&&(Array.isArray(N)?l.rotateY(Number(s.ry.v)*N[1]):l.rotateY(Number(s.ry.v)*N)),s?.rx.propType&&(Array.isArray(N)?l.rotateX(Number(s.rx.v)*N[0]):l.rotateX(Number(s.rx.v)*N)),s?.o.propType&&(Array.isArray(N)?W+=(Number(s.o.v)*N[0]-W)*N[0]:W+=(Number(s.o.v)*N-W)*N),t.strokeWidthAnim&&s?.sw.propType&&(Array.isArray(N)?Y+=Number(s.sw.v)*N[0]:Y+=Number(s.sw.v)*N),t.strokeColorAnim&&s?.sc.propType&&Array.isArray(s.sc.v))for(X=0;X<3;X++)Array.isArray(N)?H[X]+=(s.sc.v[X]-H[X])*N[0]:H[X]+=(s.sc.v[X]-H[X])*N;if(t.fillColorAnim&&t.fc){if(s?.fc.propType)for(X=0;X<3;X++)Array.isArray(s.fc.v)&&(Array.isArray(N)?U[X]+=(s.fc.v[X]-U[X])*N[0]:U[X]+=(s.fc.v[X]-U[X])*N);s?.fh.propType&&(U=Array.isArray(N)?tS(U,Number(s.fh.v)*N[0]):tS(U,Number(s.fh.v)*N)),s?.fs.propType&&(U=Array.isArray(N)?tM(U,Number(s.fs.v)*N[0]):tM(U,Number(s.fs.v)*N)),s?.fb.propType&&(U=Array.isArray(N)?tk(U,Number(s.fb.v)*N[0]):tk(U,Number(s.fb.v)*N))}}for(r=0;r<$;r++)if(s=o[r].a,s?.p.propType){if(i=o[r].s,!(N=i?.getMult(g[u].anIndexes[r],h.a?.[r].s?.totalChars))||!Array.isArray(s.p.v))continue;this._hasMaskedPath?Array.isArray(N)?l.translate(0,s.p.v[1]*N[0],-s.p.v[2]*N[1]):l.translate(0,s.p.v[1]*N,-s.p.v[2]*N):Array.isArray(N)?l.translate(s.p.v[0]*N[0],s.p.v[1]*N[1],-s.p.v[2]*N[2]):l.translate(s.p.v[0]*N,s.p.v[1]*N,-s.p.v[2]*N)}if(t.strokeWidthAnim&&(J=Y<0?0:Y),t.strokeColorAnim&&(Z=`rgb(${Math.round(255*H[0])},${Math.round(255*H[1])},${Math.round(255*H[2])})`),t.fillColorAnim&&t.fc&&(K=`rgb(${Math.round(255*U[0])},${Math.round(255*U[1])},${Math.round(255*U[2])})`),this._hasMaskedPath){if(l.translate(0,-Number(t.ls)),l.translate(0,n[1]*F*.01+d,0),this._pathData.p?.v){let t=180*Math.atan(D=(Number(v?.point[1])-Number(C?.point[1]))/(Number(v?.point[0])-Number(C?.point[0])))/Math.PI;Number(v?.point[0])<Number(C?.point[0])&&(t+=180),l.rotate(-t*Math.PI/180)}l.translate(Number(R),Number(z),0),b-=n[0]*g[u].an*.005,g[u+1]&&B!==g[u+1].ind&&(b+=g[u].an/2,b+=.001*t.tr*Number(t.finalSize))}else{switch(l.translate(c,d,0),t.ps&&l.translate(t.ps[0],t.ps[1]+Number(t.ascent),0),t.j){case 1:l.translate(g[u].animatorJustifyOffset+Number(t.justifyOffset)+(Number(t.boxWidth)-Number(t.lineWidths[g[u].line])),0,0);break;case 2:l.translate(g[u].animatorJustifyOffset+Number(t.justifyOffset)+(Number(t.boxWidth)-Number(t.lineWidths[g[u].line]))/2,0,0)}l.translate(0,-Number(t.ls)),l.translate(V,0,0),l.translate(n[0]*Number(g[u].an)*.005,n[1]*F*.01,0),c+=g[u].l+.001*t.tr*Number(t.finalSize)}p===L.HTML?Q=l.toCSS():p===L.SVG?Q=l.to2dCSS():tt=[l.props[0],l.props[1],l.props[2],l.props[3],l.props[4],l.props[5],l.props[6],l.props[7],l.props[8],l.props[9],l.props[10],l.props[11],l.props[12],l.props[13],l.props[14],l.props[15]],te=W}if(m<=u){a=new iF(Number(te),Number(J),Z,K,Q,tt),this.renderedLetters.push(a),m++,this.lettersChangedFlag=!0;continue}a=this.renderedLetters[u],this.lettersChangedFlag=a.update(Number(te),Number(J),Z,K,Q,tt)||this.lettersChangedFlag}}getValue(){return this._elem.globalData?.frameId===this._frameId||(this._frameId=this._elem.globalData?.frameId??0,this.iterateDynamicProperties()),0}searchProperties(t){let e=this._textData.a?.length||0;for(let t=0;t<e;t++)this._animatorsData[t]=new i$(this._elem,this._textData.a?.[t],this);this._textData.p?.m?(this._pathData={a:sp.getProp(this._elem,this._textData.p.a,0,0,this),f:sp.getProp(this._elem,this._textData.p.f,0,0,this),l:sp.getProp(this._elem,this._textData.p.l,0,0,this),m:this._elem.maskManager?.getMaskProperty(this._textData.p.m),p:sp.getProp(this._elem,this._textData.p.p,0,0,this),r:sp.getProp(this._elem,this._textData.p.r,0,0,this)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=sp.getProp(this._elem,this._textData.m?.a,1,0,this)}}let iN=[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],iB={data:{shapes:[]},shapes:[],size:0,w:0},iV=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function iR(t){let e=iz(t);return e>=127462&&e<=127487}function iz(t){let e=0,s=t.charCodeAt(0);if(s>=55296&&s<=56319){let i=t.charCodeAt(1);i>=56320&&i<=57343&&(e=(s-55296)*1024+i-56320+65536)}return e}function iO(t,e){if(th())return;let s=tF("span");s.setAttribute("aria-hidden","true"),s.style.fontFamily=e;let i=tF("span");i.innerText="giItT1WQy@!-/#",s.style.position="absolute",s.style.left="-10000px",s.style.top="-10000px",s.style.fontSize="300px",s.style.fontVariant="normal",s.style.fontStyle="normal",s.style.fontWeight="normal",s.style.letterSpacing="0",s.appendChild(i),document.body.appendChild(s);let r=i.offsetWidth;return i.style.fontFamily=`${function(t){let e=t.split(","),{length:s}=e,i=[];for(let t=0;t<s;t++)"sans-serif"!==e[t]&&"monospace"!==e[t]&&i.push(e[t]);return i.join(",")}(t)}, ${e}`,{node:i,parent:s,w:r}}class iG{constructor(){this.chars=null,this.fonts=[],this.isLoaded=!1,this.typekitLoaded=0,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)}addChars(t){if(!t)return;this.chars=this.chars??[];let{length:e}=t,s,{length:i}=this.chars,r;for(let a=0;a<e;a++){for(s=0,r=!1;s<i;)this.chars[s].style===t[a].style&&this.chars[s].fFamily===t[a].fFamily&&this.chars[s].ch===t[a].ch&&(r=!0),s++;!r&&(this.chars.push(t[a]),i++)}}addFonts(t,e){if(!t){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=t.list;return}let{length:s}=t.list;if(!th()){this.isLoaded=!0;for(let e=0;e<s;e++)t.list[e].helper=this.createHelper(t.list[e]),t.list[e].cache={};this.fonts=t.list;return}let i=s;for(let s=0;s<i;s++){let r=!0,a;if(t.list[s].loaded=!1,t.list[s].monoCase=iO(t.list[s].fFamily,"monospace"),t.list[s].sansCase=iO(t.list[s].fFamily,"sans-serif"),t.list[s].fPath){if(th()||"p"!==t.list[s].fOrigin&&3!==t.list[s].origin)if(th()||"g"!==t.list[s].fOrigin&&1!==t.list[s].origin){if(!th()&&("t"===t.list[s].fOrigin||2===t.list[s].origin)){let{length:i}=a=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]');for(s=0;s<i;s++)t.list[s].fPath===a[s].src&&(r=!1);if(r){let i=tF("link");i.setAttribute("f-forigin",t.list[s].fOrigin),i.setAttribute("f-origin",`${t.list[s].origin}`),i.rel="stylesheet",i.href=t.list[s].fPath,e?.appendChild(i)}}}else{let{length:e}=a=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]');for(s=0;s<e;s++)a[s].href.includes(t.list[s].fPath)&&(r=!1);if(r&&!th()){let e=tF("link");e.setAttribute("f-forigin",t.list[s].fOrigin),e.setAttribute("f-origin",`${t.list[s].origin}`),e.type="text/css",e.rel="stylesheet",e.href=t.list[s].fPath,document.body.appendChild(e)}}else if((a=document.querySelectorAll(`style[f-forigin="p"][f-family="${t.list[s].fFamily}"], style[f-origin="3"][f-family="${t.list[s].fFamily}"]`)).length>0&&(r=!1),r){let i=tF("style");i.setAttribute("f-forigin",t.list[s].fOrigin),i.setAttribute("f-origin",`${t.list[s].origin}`),i.setAttribute("f-family",t.list[s].fFamily),i.innerText=`@font-face {font-family: ${t.list[s].fFamily}; font-style: normal; src: url('${t.list[s].fPath}');}`,e?.appendChild(i)}}else t.list[s].loaded=!0,i-=1;t.list[s].helper=this.createHelper(t.list[s],e),t.list[s].cache={},this.fonts.push(t.list[s])}0===i?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}getCharData(t,e,s){let i=0,r=this.chars?.length||0;for(;i<r;){if(this.chars?.[i].ch===t&&this.chars[i].style===e&&this.chars[i].fFamily===s)return this.chars[i];i++}return("string"!=typeof t||13===t.charCodeAt(0))&&t||this._warned||(this._warned=!0,console.warn("Missing character from exported characters list: ",t,e,s)),iB}getFontByName(t){let e=0,{length:s}=this.fonts;for(;e<s;){if(this.fonts[e].fName===t)return this.fonts[e];e++}return this.fonts[0]}measureText(t,e,s){let i=this.getFontByName(e);if(i.cache&&!i.cache[t]){let e=i.helper;if(" "===t){let s=Number(e?.measureText(`|${t}|`)),r=Number(e?.measureText("||"));i.cache[t]=(s-r)/100}else i.cache[t]=Number(e?.measureText(t))/100}return Number(i.cache?.[t])*Number(s)}checkLoadedFonts(){let t,e,s=this.fonts.length;for(let i=0;i<s;i++){if(this.fonts[i].loaded){s-=1;continue}if("n"===this.fonts[i].fOrigin||0===this.fonts[i].origin){this.fonts[i].loaded=!0;continue}if(t=this.fonts[i].monoCase?.node,e=this.fonts[i].monoCase?.w||0,t?.offsetWidth===e?(t=this.fonts[i].sansCase?.node,e=this.fonts[i].sansCase?.w||0,t?.offsetWidth!==e&&(s-=1,this.fonts[i].loaded=!0)):(s-=1,this.fonts[i].loaded=!0),!this.fonts[i].loaded)continue;let{monoCase:r,sansCase:a}=this.fonts[i];a&&this.fonts[i].sansCase?.parent.parentNode?.removeChild(a.parent),r&&this.fonts[i].monoCase?.parent.parentNode?.removeChild(r.parent)}if(0!==s&&Date.now()-this.initTime<5e3)return void setTimeout(this.checkLoadedFontsBinded,20);setTimeout(this.setIsLoadedBinded,10)}createHelper(t,e){let s;if(th())return;let i=e?L.SVG:L.Canvas,r=iq(t);if(i===L.SVG){let i=tT("text");i.style.fontSize="100px",i.setAttribute("font-family",t.fFamily),i.setAttribute("font-style",r.style),i.setAttribute("font-weight",r.weight),i.textContent="1",t.fClass?(i.style.fontFamily="inherit",i.classList.add(t.fClass)):i.style.fontFamily=t.fFamily,e?.appendChild(i),s=i}else{let e=new OffscreenCanvas(500,500).getContext("2d");e&&(e.font=`${r.style} ${r.weight} 100px ${t.fFamily}`,s=e)}return{measureText:t=>i===L.SVG?(s.textContent=t,s.getComputedTextLength()):s.measureText(t).width}}setIsLoaded(){this.isLoaded=!0}}function iq(t){let e=t.fStyle?t.fStyle.split(" "):[],s="normal",i="normal",{length:r}=e;for(let t=0;t<r;t++)switch(e[t].toLowerCase()){case"italic":i="italic";break;case"bold":s="700";break;case"black":s="900";break;case"medium":s="500";break;case"regular":case"normal":s="400";break;case"light":case"thin":s="200"}return{style:i,weight:t.fWeight||s}}class ij extends sr{constructor(t,e){super(),this.defaultBoxWidth=[0,0],this._frameId=-999999,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,e.d?.sid&&(e.d=t.globalData?.slotManager?.getProp(e.d)),this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={__complete:!1,ascent:0,boxWidth:this.defaultBoxWidth,f:"",fc:"",fillColorAnim:!1,finalLineHeight:0,finalSize:0,finalText:[],fStyle:"",fWeight:"",justifyOffset:0,l:[],lh:0,lineWidths:[],ls:0,of:"",ps:null,s:0,sc:"",strokeColorAnim:!1,strokeWidthAnim:!1,sw:0,t:0,tr:0,yOffset:0};let s=this.data.d?.k[0].s;s&&this.copyData(this.currentData,s),this.searchProperty()||this.completeTextData(this.currentData)}addEffect(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)}buildFinalText(t){let e=[],s=0,i=t.length,r,a,n,o=!1,h;for(;s<i;){var l;(n=o,o=!1,r=t.charCodeAt(s),h=t.charAt(s),iN.includes(r))?n=!0:r>=55296&&r<=56319?function(t,e){let s=e,i=iz(t.slice(s,2));if(127988!==i)return!1;let r=0;for(s+=2;r<5;){if((i=iz(t.slice(s,2)))<917601||i>917626)return!1;r++,s+=2}return 917631===iz(t.slice(s,2))}(t,s)?h=t.slice(s,14):(a=t.charCodeAt(s+1))>=56320&&a<=57343&&(function(t,e){let s=t.toString(16)+e.toString(16);return iV.includes(s)}(r,a)?(h=t.slice(s,2),n=!0):h=iR((l=t.slice(s,4)).slice(0,2))&&iR(l.slice(2,2))?t.slice(s,4):t.slice(s,2)):r>56319?65039===r&&(n=!0):8205===r&&(n=!0,o=!0),n?e[e.length-1]+=h:e.push(h),s+=h.length}return e}calculateExpression(t){throw Error(`${this.constructor.name}: Method calculateExpression is not implemented`)}canResizeFont(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)}completeTextData(t){let e,s,i,r,a,n,o;t.__complete=!0;let{fontManager:h}=this.elem.globalData??{};if(!h)throw Error(`${this.constructor.name}: FontManager not loaded to globalData`);let{canResize:l,data:p,minimumFontSize:m}=this,c=[],d,u,f=0,g,y=p.m?.g,b=0,v=0,x=0,w=[],_,E=0,C=h.getFontByName(t.f),k=iq(C);t.fWeight=k.weight,t.fStyle=k.style,t.finalSize=t.s,t.finalText=this.buildFinalText(`${t.t}`),d=t.finalText.length||0,t.finalLineHeight=t.lh;let S=t.tr/1e3*t.finalSize;if(t.sz){let r,a,n=!0,[o,p]=t.sz;for(;n;){a=this.buildFinalText(`${t.t}`),r=0,_=0,d=a.length,S=t.tr/1e3*t.finalSize;let c=-1;for(let n=0;n<d;n++)i=a[n].charCodeAt(0),u=!1," "===a[n]?c=n:(13===i||3===i)&&(_=0,u=!0,r+=t.finalLineHeight||1.2*t.finalSize),h.chars?(e=h.getCharData(a[n],C.fStyle,C.fFamily),s=u?0:e.w*t.finalSize/100):s=h.measureText(a[n],t.f,t.finalSize)||0,_+s>o&&" "!==a[n]?(-1===c?d++:n=c,r+=t.finalLineHeight||1.2*t.finalSize,a.splice(n,+(c===n),"\r"),c=-1,_=0):(_+=s,_+=S);r+=Number(C.ascent)*t.finalSize/100,l&&t.finalSize>m&&p<r?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=a,d=t.finalText.length,n=!1)}}_=-S;let M=0,P;for(let r=0;r<d;r++)if(u=!1,13===(i=(P=t.finalText[r]).charCodeAt(0))||3===i?(M=0,w.push(_),E=_>E?_:E,_=-2*S,g="",u=!0,x++):g=P,h.chars?(e=h.getCharData(P,C.fStyle,h.getFontByName(t.f).fFamily),s=u?0:e.w*t.finalSize/100):s=h.measureText(g,t.f,t.finalSize)," "===P?M+=s+S:(_+=s+S+M,M=0),c.push({add:b,an:s,animatorJustifyOffset:0,anIndexes:[],l:s,line:x,n:u,val:g}),2===y){if(b+=s,""===g||" "===g||r===d-1){for((""===g||" "===g)&&(b-=s);v<=r;)c[v].an=b,c[v].ind=f,c[v].extra=s,v++;f++,b=0}}else if(3===y){if(b+=s,""===g||r===d-1){for(""===g&&(b-=s);v<=r;)c[v].an=b,c[v].ind=f,c[v].extra=s,v++;b=0,f++}}else c[f].ind=f,c[f].extra=0,f++;if(t.l=c,E=_>E?_:E,w.push(_),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=E,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=w;let A=p.a,{length:D}=A??[],T=[];for(let e=0;e<D;e++){if(!(r=A?.[e]))continue;r.a?.sc&&(t.strokeColorAnim=!0),r.a?.sw&&(t.strokeWidthAnim=!0),(r.a?.fc||r.a?.fh||r.a?.fs||r.a?.fb)&&(t.fillColorAnim=!0),o=0,n=Number(r.s?.b);for(let t=0;t<d;t++)(a=c[t]).anIndexes[e]=o,(1===n&&""!==a.val||2===n&&""!==a.val&&" "!==a.val||3===n&&(a.n||" "===a.val||t===d-1)||4===n&&(a.n||t===d-1))&&(1===Number(r.s?.rn)&&T.push(o),o++);let s=p.a?.[e].s;s&&(s.totalChars=o);let i=-1,h;if(r.s?.rn===1)for(let t=0;t<d;t++)i!==Number((a=c[t]).anIndexes[e])&&(i=a.anIndexes[e],h=T.splice(Math.floor(Math.random()*T.length),1)[0]),h&&(a.anIndexes[e]=h)}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=Number(C.ascent)*t.finalSize/100}copyData(t,e){let s=Object.keys(e),{length:i}=s;for(let r=0;r<i;r++)Object.hasOwn(e,s[r])&&(t[s[r]]=e[s[r]]);return t}getExpressionValue(t,e){throw Error(`${this.constructor.name}: Method getExpressionValue is not implemented`)}getKeyframeValue(){let t=this.data.d?.k??[],e=Number(this.elem.comp?.renderedFrame),s=0,i=t.length;for(;s<=i-1&&!(s===i-1||Number(t[s+1].t)>e);)s++;return this.keysIndex!==s&&(this.keysIndex=s),this.data.d?.k[this.keysIndex].s}getValue(t){if((this.elem.globalData?.frameId===this.frameId||0===this.effectsSequence.length)&&!t)return 0;let e=this.data.d?.k[this.keysIndex].s.t;e&&(this.currentData.t=e);let s=this.currentData,i=this.keysIndex;if(this.lock)return this.setCurrentData(this.currentData),0;this.lock=!0,this._mdf=!1;let{length:r}=this.effectsSequence,a=t??this.data.d?.k[this.keysIndex].s;for(let t=0;t<r;t++)a=i===this.keysIndex?this.effectsSequence[t](this.currentData,a?.t):this.effectsSequence[t](a,a?.t);return s!==a&&this.setCurrentData(a),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData?.frameId,0}recalculate(t){if(!this.data.d)throw Error(`${this.constructor.name}: data.k (TextData -> DocumentData) is not implemented`);let e=this.data.d.k[t].s;e&&(e.__complete=!1),this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)}searchExpressions(){throw Error(`${this.constructor.name}: Method searchExpressions is not implemented`)}searchKeyframes(){if(!this.data.d)throw Error(`${this.constructor.name}: data.k (TextData -> DocumentData) is not implemented`);return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf}searchProperty(){return this.searchKeyframes()}setCurrentData(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0}setMinimumFontSize(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)}updateDocumentData(t,e){if(!this.data.d)throw Error(`${this.constructor.name}: data.k (TextData -> DocumentData) is not implemented`);let s=e;s=s??this.keysIndex;let i=this.copyData({},this.data.d.k[s].s);i=this.copyData(i,t),this.data.d.k[s].s=i,this.recalculate(s),this.setCurrentData(i),this.elem.addDynamicProperty(this)}}class iW extends s5{applyTextPropertiesToMatrix(t,e,s,i,r){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+Number(t.ascent),0),e.translate(0,-Number(t.ls),0),t.j){case 1:e.translate(Number(t.justifyOffset)+(Number(t.boxWidth)-Number(t.lineWidths[s])),0,0);break;case 2:e.translate(Number(t.justifyOffset)+(Number(t.boxWidth)-Number(t.lineWidths[s]))/2,0,0)}e.translate(i,r,0)}buildColor(t){return`rgb(${Math.round(255*t[0])},${Math.round(255*t[1])},${Math.round(255*t[2])})`}buildNewText(){throw Error(`${this.constructor.name}: Method buildNewText is not implemented`)}canResizeFont(t){this.textProperty?.canResizeFont(t)}createPathShape(t,e){let s,i="",{length:r}=e;for(let a=0;a<r;a++)e[a].ty===N.Path&&e[a].ks?.k&&(i+=tP(s=e[a].ks?.k,s.i.length,!0,t));return i}initElement(t,e,s){if(!t.t)throw Error(`${this.constructor.name}: data.t (LottieLayer -> TextData) can't be undefined`);this.emptyProp=new iF,this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,s),this.textProperty=new ij(this,t.t),this.textAnimator=new iL(t.t,this.renderType||L.SVG,this),this.initTransform(),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)}prepareFrame(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}setMinimumFontSize(t){this.textProperty?.setMinimumFontSize(t)}updateDocumentData(t,e){this.textProperty?.updateDocumentData(t,e)}validateText(){(this.textProperty?._mdf||this.textProperty?._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)}}let iH="rgba(0,0,0,0)";class iY extends iW{constructor(t,e,s){super(),this.clearCanvas=sV.prototype.clearCanvas,this.createContainerElements=sV.prototype.createContainerElements,this.createContent=sV.prototype.createContent,this.createElements=sV.prototype.createElements,this.createRenderableComponents=sV.prototype.createRenderableComponents,this.destroy=sV.prototype.destroy,this.exitLayer=sV.prototype.exitLayer,this.hide=sV.prototype.hide,this.hideElement=sV.prototype.hideElement,this.initRendererElement=sV.prototype.initRendererElement,this.prepareLayer=sV.prototype.prepareLayer,this.renderedLetters=[],this.renderFrame=sV.prototype.renderFrame,this.renderLocalTransform=sV.prototype.renderLocalTransform,this.renderRenderable=sV.prototype.renderRenderable,this.searchEffectTransforms=sV.prototype.searchEffectTransforms,this.setBlendMode=sV.prototype.setBlendMode,this.show=sV.prototype.show,this.showElement=sV.prototype.showElement,this.tHelper=tF("canvas").getContext("2d"),this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType=L.Canvas,this.values={fill:iH,fValue:"",stroke:iH,sWidth:0},this.initElement(t,e,s)}buildNewText(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);if(!this.globalData.fontManager)throw Error(`${this.constructor.name}: fontManager is not implemented in globalData`);if(!this.textProperty)throw Error(`${this.constructor.name}: textProperty is not implemented`);let t=this.textProperty.currentData;this.renderedLetters=eL(t.l.length||0);let e=!1;t.fc?(e=!0,this.values.fill=this.buildColor(t.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=e;let s=!1;t.sc&&(s=!0,this.values.stroke=this.buildColor(t.sc),this.values.sWidth=Number(t.sw));let i=this.globalData.fontManager.getFontByName(t.f),r=t.l,a=this.mHelper;this.stroke=s,this.values.fValue=`${t.finalSize}px ${this.globalData.fontManager.getFontByName(t.f).fFamily}`;let{singleShape:n}=this.data,o=.001*t.tr*Number(t.finalSize),h,l=0,p=0,m=!0,c=0,{length:d}=t.finalText;for(let e=0;e<d;e++){let s=this.globalData.fontManager.getCharData(t.finalText[e],i.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily).data??{};a.reset(),n&&r[e].n&&(l=-o,p+=Number(t.yOffset),p+=+!!m,m=!1);let d=s.shapes?.[0].it??[];a.scale(Number(t.finalSize)/100,Number(t.finalSize)/100),n&&this.applyTextPropertiesToMatrix(t,a,r[e].line,l,p);let{length:u}=d,f=eL(u-1),g=0;for(let t=0;t<u;t++){if(d[t].ty!==N.Path)continue;let{length:e}=(d[t].ks?.k).i,s=d[t].ks?.k,i=[];for(h=1;h<e;h++)1===h&&i.push(a.applyToX(s.v[0][0],s.v[0][1],0),a.applyToY(s.v[0][0],s.v[0][1],0)),i.push(a.applyToX(s.o[h-1][0],s.o[h-1][1],0),a.applyToY(s.o[h-1][0],s.o[h-1][1],0),a.applyToX(s.i[h][0],s.i[h][1],0),a.applyToY(s.i[h][0],s.i[h][1],0),a.applyToX(s.v[h][0],s.v[h][1],0),a.applyToY(s.v[h][0],s.v[h][1],0));i.push(a.applyToX(s.o[h-1][0],s.o[h-1][1],0),a.applyToY(s.o[h-1][0],s.o[h-1][1],0),a.applyToX(s.i[0][0],s.i[0][1],0),a.applyToY(s.i[0][0],s.i[0][1],0),a.applyToX(s.v[0][0],s.v[0][1],0),a.applyToY(s.v[0][0],s.v[0][1],0)),f[g]=i,g++}n&&(l+=r[e].l,l+=o),this.textSpans[c]?this.textSpans[c].elem=f:this.textSpans[c]={elem:f},c++}}renderInnerContent(){let t,e,s,i;if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);if(!this.textAnimator)throw Error(`${this.constructor.name}: textAnimator is not implemented`);if(!this.textProperty)throw Error(`${this.constructor.name}: textProperty is not implemented`);if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);this.validateText(),this.canvasContext.font=this.values.fValue,this.globalData.renderer?.ctxLineCap("butt"),this.globalData.renderer?.ctxLineJoin("miter"),this.globalData.renderer?.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);let{renderedLetters:r}=this.textAnimator,a=this.textProperty.currentData.l,n,o=null,h=null,l=null,p,m,c=this.globalData.renderer,{length:d}=a;for(let u=0;u<d;u++)if(!a[u].n){if(n=r[u],c.save(),c.ctxTransform(n.p),c.ctxOpacity(n.o),this.fill){n.fc?o!==n.fc&&(c.ctxFillStyle(n.fc),o=n.fc):o!==this.values.fill&&(o=this.values.fill,c.ctxFillStyle(this.values.fill));let{length:e}=p=this.textSpans[u].elem??[];for(this.globalData.canvasContext?.beginPath(),t=0;t<e;t++){let{length:e}=m=p[t]||[];for(this.globalData.canvasContext?.moveTo(m[0],m[1]),s=2;s<e;s+=6)this.globalData.canvasContext?.bezierCurveTo(m[s],m[s+1],m[s+2],m[s+3],m[s+4],m[s+5])}this.globalData.canvasContext?.closePath(),c.ctxFill()}if(this.stroke){for(n.sw?l!==n.sw&&(l=n.sw,c.ctxLineWidth(n.sw)):l!==this.values.sWidth&&(l=this.values.sWidth,c.ctxLineWidth(this.values.sWidth)),n.sc?h!==n.sc&&(h=n.sc,c.ctxStrokeStyle(n.sc)):h!==this.values.stroke&&(h=this.values.stroke,c.ctxStrokeStyle(this.values.stroke)),e=(p=this.textSpans[u].elem??[]).length,this.globalData.canvasContext?.beginPath(),t=0;t<e;t++)for(i=(m=p[t]).length,this.globalData.canvasContext?.moveTo(m[0],m[1]),s=2;s<i;s+=6)this.globalData.canvasContext?.bezierCurveTo(m[s],m[s+1],m[s+2],m[s+3],m[s+4],m[s+5]);this.globalData.canvasContext?.closePath(),c.ctxStroke()}this.globalData.renderer?.restore()}}}class iU extends s3{constructor(t,e,s){super(),this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId)??null,this.initBaseData(t,e,s),this._isPlaying=!1,this._canPlay=!1;let i=this.globalData?.getAssetsPath(this.assetData);this.audio=this.globalData?.audioController?.createAudio(i),this._currentTime=0,this.globalData?.audioController?.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?sp.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lv=sp.getProp(this,t.au?.lv??{k:[100]},1,.01,this)}getBaseElement(){return null}hide(){this.audio.pause(),this._isPlaying=!1}initExpressions(){}pause(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1}prepareFrame(t){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder?this._currentTime=t/Number(this.data.sr):this._currentTime=this.tm.v,this._volume=Number(this.lv.v[0]);let e=this._volume*Number(this._volumeMultiplier);this._previousVolume!==e&&(this._previousVolume=e,this.audio.volume(e))}renderFrame(t){if(this.isInRange&&this._canPlay){if(!this._isPlaying){this.audio.play(),this.audio.seek(this._currentTime/Number(this.globalData?.frameRate)),this._isPlaying=!0;return}(!this.audio.playing()||Math.abs(this._currentTime/Number(this.globalData?.frameRate)-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/Number(this.globalData?.frameRate))}}resume(){this._canPlay=!0}setRate(t){this.audio.rate(t)}show(){}sourceRectAtTime(){return null}volume(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)}}class iX extends s3{constructor(t,e,s){if(super(),this.assetData=null,this.initFrame(),this.initRenderable(),t.refId&&(this.assetData=e.getAssetData(t.refId)),!e.imageLoader)throw Error(`${this.constructor.name}: imageLoader is not implemented in globalData`);this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,s)}getBaseElement(){return null}getFootageData(){return this.footageData}initExpressions(){let t=ev();if(!t)return;let e=t("footage");this.layerInterface=new e(this)}prepareFrame(){}renderFrame(){}}class iJ{constructor(t){this.animationData=t}getProp(t){let{sid:e}=t;return e&&this.animationData.slots?.[e]?Object.assign(t,this.animationData.slots[e].p):t}}class iZ extends s2{addPendingElement(t){this.pendingElements.push(t)}buildAllItems(){let{length:t}=this.layers;for(let e=0;e<t;e++)this.buildItem(e);this.checkPendingElements()}buildElementParenting(t,e,s=[]){let{elements:i,layers:r}=this,{length:a}=r,n=0;for(;n<a;){if(r[n].ind!==e){n++;continue}if(!i[n]||!0===i[n]){this.buildItem(n),this.addPendingElement(t),n++;continue}if(s.push(i[n]),i[n].setAsParent(),void 0===r[n].parent){t.setHierarchy(s),n++;continue}this.buildElementParenting(t,r[n].parent,s),n++}}buildItem(t){throw Error(`${this.constructor.name}: Method buildItem not yet implemented`)}checkLayers(t){this.completeLayers=!0;let{length:e}=this.layers;for(let s=e-1;s>=0;s--)!this.elements[s]&&this.layers[s].ip-this.layers[s].st<=Number(t)-this.layers[s].st&&this.layers[s].op-this.layers[s].st>Number(t)-this.layers[s].st&&this.buildItem(s),this.completeLayers=!!this.elements[s]&&this.completeLayers;this.checkPendingElements()}checkPendingElements(){throw Error(`${this.constructor.name}: Method checkPendingElements not yet implemented`)}createAudio(t){if(!this.globalData)throw Error(`${this.constructor.name}: Can't access globalData`);return new iU(t,this.globalData,this)}createCamera(t){throw Error("You're using a 3d camera. Try the html renderer.")}createComp(t,e,s,i){throw Error(`${this.constructor.name}: Method createComp not yet implemented`)}createFootage(t){if(!this.globalData)throw Error(`${this.constructor.name}: Can't access globalData`);return new iX(t,this.globalData,this)}createImage(t){throw Error(`${this.constructor.name}: Method createImage is not implemented`)}createItem(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)}}createNull(t){throw Error(`${this.constructor.name}: Method createNull not implemented`)}createShape(t){throw Error(`${this.constructor.name}: Method createShape not implemented`)}createSolid(t){throw Error(`${this.constructor.name}: Method createSolid not implemented`)}createText(t){throw Error(`${this.constructor.name}: Method createText not implemented`)}getElementById(t){let{length:e}=this.elements;for(let s=0;s<e;s++)if(this.elements[s].data.ind===t)return this.elements[s];return null}getElementByPath(t){let e,s=t.shift();if("number"==typeof s)e=this.elements[s];else{let{length:t}=this.elements;for(let i=0;i<t;i++)if(this.elements[i].data.nm===s){e=this.elements[i];break}}return 0===t.length?e:e?.getElementByPath(t)}includeLayers(t){this.completeLayers=!1;let{length:e}=t,{length:s}=this.layers;for(let i=0;i<e;i++){let e=0;for(;e<s;){if(this.layers[e].id===t[i].id){this.layers[e]=t[i];break}e++}}}initItems(){this.globalData?.progressiveLoad||this.buildAllItems()}prepareFrame(t){throw Error(`${this.constructor.name}: Method prepareFrame not yet implemented`)}searchExtraCompositions(t){let{length:e}=t;for(let s=0;s<e;s++)if(t[s].xt){let e=this.createComp(t[s]);e.initExpressions(),this.globalData?.projectInterface.registerComposition(e)}}setProjectInterface(t){if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);t&&(this.globalData.projectInterface=t)}setupGlobalData(t,e){if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);if(!this.animationItem)throw Error(`${this.constructor.name}: animationItem is not implemented`);this.globalData.fontManager=new iG,this.globalData.slotManager=new iJ(t),this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),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||60,this.globalData.nm=t.nm,this.globalData.compSize={h:Number(t.h),w:Number(t.w)}}constructor(...t){super(...t),this.currentFrame=0,this.elements=[],this.layers=[],this.pendingElements=[],this.renderedFrame=-1}}class iK extends s2{constructor(t,e,s){super(),this.initFrame(),this.initBaseData(t,e,s),this.initTransform(),this.initHierarchy()}getBaseElement(){return null}prepareFrame(t){this.prepareProperties(t,!0)}renderFrame(t){return null}}class iQ extends s9{constructor(t,e,s){super(t,e,s),this.initElement(t,e,s)}createContent(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);let t=tT("rect");t.width.baseVal.value=Number(this.data.sw),t.height.baseVal.value=Number(this.data.sh),this.data.sc&&t.setAttribute("fill",this.data.sc),this.layerElement?.appendChild(t)}}let i0={shapes:[]};class i1 extends iW{constructor(t,e,s){super(),this.createContainerElements=s6.prototype.createContainerElements,this.createRenderableComponents=s6.prototype.createRenderableComponents,this.destroyBaseElement=s6.prototype.destroyBaseElement,this.getBaseElement=s6.prototype.getBaseElement,this.getMatte=s6.prototype.getMatte,this.initRendererElement=s6.prototype.initRendererElement,this.renderedLetters=[],this.renderElement=s6.prototype.renderElement,this.setMatte=s6.prototype.setMatte,this.textSpans=[],this.renderType=L.SVG,this.initElement(t,e,s)}buildNewText(){let t,e;if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);if(!this.layerElement)throw Error(`${this.constructor.name}: layerElement is not implemented`);if(!this.textProperty?.currentData)throw Error(`${this.constructor.name}: DocumentData is not implemented`);this.addDynamicProperty(this);let s=this.textProperty.currentData;this.renderedLetters=eL(s.l.length||0),s.fc?this.layerElement.setAttribute("fill",this.buildColor(s.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),s.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(s.sc)),this.layerElement.setAttribute("stroke-width",`${s.sw||0}`)),this.layerElement.setAttribute("font-size",`${s.finalSize||0}`);let i=this.globalData.fontManager?.getFontByName(s.f);if(i?.fClass)this.layerElement.setAttribute("class",i.fClass);else{i?.fFamily&&this.layerElement.setAttribute("font-family",i.fFamily);let{fWeight:t}=s,{fStyle:e}=s;this.layerElement.setAttribute("font-style",e),this.layerElement.setAttribute("font-weight",t)}this.layerElement.setAttribute("aria-label",`${s.t}`);let r=s.l,a=!!this.globalData.fontManager?.chars;e=r.length;let n=null,o=this.mHelper,{singleShape:h}=this.data,l=0,p=0,m=!0,c=.001*s.tr*Number(s.finalSize);if(!h||a||s.sz){let d,u=this.textSpans.length;for(t=0;t<e;t++){if(this.textSpans[t]||(this.textSpans[t]={childSpan:null,glyph:null,span:null}),!a||!h||0===t){if(n=u>t?this.textSpans[t]?.span:tT(a?"g":"text"),u<=t){if(n?.setAttribute("stroke-linecap","butt"),n?.setAttribute("stroke-linejoin","round"),n?.setAttribute("stroke-miterlimit","4"),this.textSpans[t]&&(this.textSpans[t].span=n),a){let e=tT("g");n?.appendChild(e),this.textSpans[t]&&(this.textSpans[t].childSpan=e)}this.textSpans[t]&&(this.textSpans[t].span=n),n&&this.layerElement.appendChild(n)}n&&(n.style.display="inherit")}if(o.reset(),h&&(r[t].n&&(l=-c,p+=Number(s.yOffset),p+=+!!m,m=!1),this.applyTextPropertiesToMatrix(s,o,r[t].line,l,p),l+=r[t].l||0,l+=c),a){let e;if(d=this.globalData.fontManager?.getCharData(s.finalText[t],i?.fStyle,this.globalData.fontManager.getFontByName(s.f).fFamily),d?.t===1)e=new i3(d.data,this.globalData,this);else{let t=i0;d?.data?.shapes&&(t=this.buildShapeData(d.data,Number(s.finalSize))),e=new iS(t,this.globalData,this)}if(this.textSpans[t]){let{glyph:s}=this.textSpans[t];s&&(s.layerElement&&this.textSpans[t]?.childSpan?.removeChild(s.layerElement),s.destroy()),this.textSpans[t].glyph=e}e._debug=!0,e.prepareFrame(0),e.renderFrame(),e.layerElement&&this.textSpans[t]?.childSpan?.appendChild(e.layerElement),d?.t===1&&this.textSpans[t]?.childSpan?.setAttribute("transform",`scale(${Number(s.finalSize)/100},${Number(s.finalSize)/100})`);continue}h&&n?.setAttribute("transform",`translate(${o.props[12]},${o.props[13]})`),n&&(n.textContent=r[t].val),n?.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}h&&n?.setAttribute("d","")}else{let i,r=this.textContainer;switch(s.j){case 1:i="end";break;case 2:i="middle";break;default:i="start"}r?.setAttribute("text-anchor",i),r?.setAttribute("letter-spacing",`${c}`);let a=this.buildTextContents(s.finalText);for(t=0,e=a.length,p=s.ps?s.ps[1]+Number(s.ascent):0;t<e;t++)(n=this.textSpans[t]?.span??tT("tspan")).textContent=a[t],n.setAttribute("x","0"),n.setAttribute("y",`${p}`),n.style.display="inherit",r?.appendChild(n),this.textSpans[t]||(this.textSpans[t]={glyph:null,span:null}),this.textSpans[t].span=n,p+=Number(s.finalLineHeight);r&&this.layerElement.appendChild(r)}let d=this.textSpans[t]?.span;if(d)for(;t<this.textSpans.length;)d.style.display="none",t++;this._sizeChanged=!0}buildShapeData(t,e){if(t.shapes.length>0){let s=t.shapes[0];if(s.it){let t=s.it[s.it.length-1];t.s&&(t.s.k[0]=e,t.s.k[1]=e)}}return t}buildTextContents(t){let e=0,s=t.length,i=[],r="";for(;e<s;)"\r"===t[e]||"\x03"===t[e]?(i.push(r),r=""):r+=t[e],e++;return i.push(r),i}createContent(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);this.data.singleShape&&!this.globalData.fontManager?.chars&&(this.textContainer=tT("text"))}getValue(){let t;if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);let{length:e}=this.textSpans;this.renderedFrame=this.comp?.renderedFrame;for(let s=0;s<e;s++)(t=this.textSpans[s].glyph)&&(t.prepareFrame(Number(this.comp?.renderedFrame)-Number(this.data.st)),t._mdf&&(this._mdf=!0))}renderInnerContent(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(this.validateText(),!this.data.singleShape||this._mdf){if(!this.textProperty)throw Error(`${this.constructor.name}: textProperty is not initialized`);if(this.textAnimator?.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator?.lettersChangedFlag){let t,e,s;this._sizeChanged=!0;let i=this.textAnimator?.renderedLetters,r=this.textProperty.currentData.l,{length:a}=r;for(let n=0;n<a;n++)!r[n].n&&(t=i?.[n],e=this.textSpans[n].span,(s=this.textSpans[n].glyph)&&s.renderFrame(),t?._mdf.m&&e?.setAttribute("transform",t.m),t?._mdf.o&&e?.setAttribute("opacity",`${t.o??1}`),t?._mdf.sw&&e?.setAttribute("stroke-width",`${t.sw||0}`),t?._mdf.sc&&e?.setAttribute("stroke",t.sc),t?._mdf.fc&&e?.setAttribute("fill",t.fc))}}}sourceRectAtTime(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(!this.comp)throw Error(`${this.constructor.name}: comp (ElementInterface) is not implemented`);if(!this.layerElement)throw Error(`${this.constructor.name}: layerElement is not implemented`);if(this.prepareFrame(Number(this.comp.renderedFrame)-Number(this.data.st)),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;let t=this.layerElement.getBBox();return this.bbox={height:t.height,left:t.x,top:t.y,width:t.width},this.bbox}return null}}class i2 extends iZ{appendElementInPos(t,e){let s,i=t.getBaseElement();if(!i)return;let r=0;for(;r<e;)this.elements[r]&&!0!==this.elements[r]&&this.elements[r].getBaseElement()&&(s=this.elements[r].getBaseElement()),r++;s?this.layerElement?.insertBefore(i,s):this.layerElement?.appendChild(i)}buildItem(t){if(!this.globalData)throw Error(`${this.constructor.name}: globalData it not implemented`);let{elements:e,globalData:s,layers:i}=this;if(e[t]||99===i[t].ty)return;e[t]=!0;let r=this.createItem(i[t]);if(e[t]=r,eb()&&(0===i[t].ty&&s.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,t),i[t].tt){let s="tp"in i[t]?this.findIndexByInd(i[t].tp):t-1;if(-1===s)return;if(!e[s]||!0===e[s]){this.buildItem(s),this.addPendingElement(r);return}let a=e[s].getMatte(i[t].tt);r.setMatte(a)}}checkPendingElements(){for(;this.pendingElements.length>0;){let t=this.pendingElements.pop();if(t?.checkParenting(),t?.data.tt){let e=0,{length:s}=this.elements;for(;e<s;){if(this.elements[e]!==t){e++;continue}let s="tp"in t.data?this.findIndexByInd(t.data.tp):e-1,i=this.elements[s].getMatte(this.layers[e].tt);t.setMatte(i);break}}}}configAnimation(t){try{if(!this.animationItem)throw Error(`${this.constructor.name}: Can't access animationItem`);if(!this.globalData)throw Error(`${this.constructor.name}: Can't access globalData`);if(!this.renderConfig)throw Error(`${this.constructor.name}: Can't access renderConfig`);if(!this.svgElement)throw Error(`${this.constructor.name}: Can't access svgElement`);this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox",`0 0 ${t.w} ${t.h}`),!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.renderConfig.contentVisibility&&(this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility)),this.renderConfig.width&&this.svgElement.setAttribute("width",`${this.renderConfig.width}`),this.renderConfig.height&&this.svgElement.setAttribute("height",`${this.renderConfig.height}`),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",`${this.renderConfig.focusable}`),this.renderConfig.preserveAspectRatio&&this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper?.appendChild(this.svgElement);let{defs:e}=this.globalData;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;let s=tT("clipPath"),i=tT("rect");i.setAttribute("width",`${t.w}`),i.setAttribute("height",`${t.h}`),i.setAttribute("x","0"),i.setAttribute("y","0");let r=tA();s.setAttribute("id",r),s.appendChild(i),this.layerElement?.setAttribute("clip-path",`url(${K()}#${r})`),e.appendChild(s),this.layers=t.layers,this.elements=eL(t.layers.length)}catch(t){console.error(`${this.constructor.name}:
|
|
5
|
+
`,t)}}createImage(t){if(!this.globalData)throw Error(`${this.constructor.name}: Can't access globalData`);return new s9(t,this.globalData,this)}createNull(t){if(!this.globalData)throw Error(`${this.constructor.name}: Can't access globalData`);return new iK(t,this.globalData,this)}createShape(t){if(!this.globalData)throw Error(`${this.constructor.name}: Can't access globalData`);return new iS(t,this.globalData,this)}createSolid(t){if(!this.globalData)throw Error(`${this.constructor.name}: Can't access globalData`);return new iQ(t,this.globalData,this)}createText(t){if(!this.globalData)throw Error(`${this.constructor.name}: Can't access globalData`);return new i1(t,this.globalData,this)}destroy(){if(!this.animationItem)throw Error(`${this.constructor.name}: Can't access animationItem`);if(!this.globalData)throw Error(`${this.constructor.name}: Can't access globalData`);this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;let{length:t}=this.layers;for(let e=0;e<t;e++)this.elements[e]?.destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null}findIndexByInd(t){let{length:e}=this.layers;for(let s=0;s<e;s++)if(this.layers[s].ind===t)return s;return -1}hide(){if(!this.layerElement)throw Error(`${this.constructor.name}: layerElement is not implemented`);this.layerElement.style.display="none"}renderFrame(t){try{if(!this.globalData||this.renderedFrame===t||this.destroyed)return;let e=t;null===e?e=this.renderedFrame:this.renderedFrame=Number(e),this.globalData.frameNum=e,this.globalData.frameId++,this.globalData.projectInterface.currentFrame=e||0,this.globalData._mdf=!1;let{length:s}=this.layers;this.completeLayers||this.checkLayers(e);for(let t=s-1;t>=0;t--)"boolean"!=typeof this.elements[t]&&(this.completeLayers||this.elements[t])&&this.elements[t]?.prepareFrame(Number(e)-this.layers[t].st);if(this.globalData._mdf)for(let t=0;t<s;t++)"boolean"!=typeof this.elements[t]&&(this.completeLayers||this.elements[t])&&this.elements[t]?.renderFrame()}catch(t){console.error(this.constructor.name,t)}}show(){if(!this.layerElement)throw Error(`${this.constructor.name}: layerElement is not implemented`);this.layerElement.style.display="block"}updateContainerSize(t,e){throw Error(`${this.constructor.name}: Method updateContainerSize is not implemented`)}}class i3 extends s6{constructor(t,e,s){super(),this.addPendingElement=i2.prototype.addPendingElement,this.appendElementInPos=i2.prototype.appendElementInPos,this.buildAllItems=i2.prototype.buildAllItems,this.buildElementParenting=i2.prototype.buildElementParenting,this.buildItem=i2.prototype.buildItem,this.checkLayers=i2.prototype.checkLayers,this.checkPendingElements=i2.prototype.checkPendingElements,this.configAnimation=i2.prototype.configAnimation,this.createAudio=i2.prototype.createAudio,this.createCamera=i2.prototype.createCamera,this.createFootage=i2.prototype.createFootage,this.createImage=i2.prototype.createImage,this.createItem=i2.prototype.createItem,this.createNull=i2.prototype.createNull,this.createShape=i2.prototype.createShape,this.createSolid=i2.prototype.createSolid,this.createText=i2.prototype.createText,this.currentFrame=0,this.destroy=s4.prototype.destroy,this.destroyElements=s4.prototype.destroyElements,this.findIndexByInd=i2.prototype.findIndexByInd,this.getElementById=i2.prototype.getElementById,this.getElementByPath=i2.prototype.getElementByPath,this.getElements=s4.prototype.getElements,this.hide=s4.prototype.hide,this.includeLayers=i2.prototype.includeLayers,this.initElement=s4.prototype.initElement,this.initItems=i2.prototype.initItems,this.prepareFrame=s4.prototype.prepareFrame,this.renderedFrame=-1,this.renderFrame=s4.prototype.renderFrame,this.renderInnerContent=s4.prototype.renderInnerContent,this.searchExtraCompositions=i2.prototype.searchExtraCompositions,this.setElements=s4.prototype.setElements,this.setProjectInterface=i2.prototype.setProjectInterface,this.setupGlobalData=i2.prototype.setupGlobalData,this.show=s4.prototype.show,this.updateContainerSize=i2.prototype.updateContainerSize,this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?eL(this.layers.length):[],this.initElement(t,e,s),this.tm=t.tm?sp.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}createComp(t){if(!this.globalData)throw Error(`${this.constructor.name}: Cannot access global data`);return new i3(t,this.globalData,this)}}class i5 extends i2{constructor(t,e){super(),this.animationItem=t,this.layers=[],this.renderedFrame=-1,this.svgElement=tT("svg");let s="";if(e?.title){let t=tT("title"),i=tA();t.id=i,t.textContent=e.title,this.svgElement.appendChild(t),s+=i}if(e?.description){let t=tT("desc"),i=tA();t.id=i,t.textContent=e.description,this.svgElement.appendChild(t),s+=` ${i}`}s&&this.svgElement.setAttribute("aria-labelledby",s);let i=tT("defs");this.svgElement.appendChild(i);let r=tT("g");this.svgElement.appendChild(r),this.layerElement=r,this.renderConfig={className:e?.className||"",contentVisibility:e?.contentVisibility||"visible",filterSize:{height:e?.filterSize?.height||"100%",width:e?.filterSize?.width||"100%",x:e?.filterSize?.x||"0%",y:e?.filterSize?.y||"0%"},focusable:e?.focusable,height:e?.height,hideOnTransparent:e?.hideOnTransparent!==!1,id:e?.id||"",imagePreserveAspectRatio:e?.imagePreserveAspectRatio||"xMidYMid slice",preserveAspectRatio:e?.preserveAspectRatio||"xMidYMid meet",progressiveLoad:e?.progressiveLoad||!1,runExpressions:!e||void 0===e.runExpressions||e.runExpressions,viewBoxOnly:e?.viewBoxOnly||!1,viewBoxSize:e?.viewBoxSize||!1,width:e?.width},this.globalData={_mdf:!1,defs:i,frameNum:-1,frameRate:60,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType=L.SVG}createComp(t){if(!this.globalData)throw Error(`${this.constructor.name}: Can't access globalData`);return new i3(t,this.globalData,this)}}class i4 extends iZ{buildItem(t){let{elements:e,layers:s}=this;if(e[t]||99===s[t].ty)return;let i=this.createItem(s[t]);e[t]=i,i.initExpressions()}checkPendingElements(){for(;this.pendingElements.length>0;){let t=this.pendingElements.pop();t?.checkParenting()}}configAnimation(t){if(!this.animationItem)throw Error(`${this.constructor.name}: animationItem is not implemented`);if(!this.renderConfig)throw Error(`${this.constructor.name}: renderConfig is not implemented`);if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);if(this.animationItem.wrapper){this.animationItem.container=tF("canvas");let t=this.animationItem.container.style;t.width="100%",t.height="100%",t.transformOrigin="0px 0px 0px",t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&(this.animationItem.container.className=this.renderConfig.className),this.renderConfig.id&&(this.animationItem.container.id=this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData?.setContext(this.canvasContext),this.data=t,this.layers=t.layers,this.transformCanvas={h:t.h,sx:0,sy:0,tx:0,ty:0,w:t.w},this.setupGlobalData(t,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=eL(t.layers.length),this.updateContainerSize()}createImage(t){if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);return new iM(t,this.globalData,this)}createShape(t){if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);return new iD(t,this.globalData,this)}createSolid(t){if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);return new iT(t,this.globalData,this)}createText(t){if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);return new iY(t,this.globalData,this)}ctxFill(t){if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);this.canvasContext.fill(t)}ctxFillRect(t,e,s,i){if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);this.canvasContext.fillRect(t,e,s,i)}ctxFillStyle(t=""){if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);this.canvasContext.fillStyle=t}ctxLineCap(t){if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);this.canvasContext.lineCap=t}ctxLineJoin(t){if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);this.canvasContext.lineJoin=t}ctxLineWidth(t){if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);this.canvasContext.lineWidth=t}ctxMiterLimit(t){if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);this.canvasContext.miterLimit=t}ctxOpacity(t=1){if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);this.canvasContext.globalAlpha*=t<0?0:t}ctxStroke(){if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);this.canvasContext.stroke()}ctxStrokeStyle(t=""){if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);this.canvasContext.strokeStyle=t}ctxTransform(t){if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);(1!==t[0]||0!==t[1]||0!==t[4]||1!==t[5]||0!==t[12]||0!==t[13])&&this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13])}destroy(){if(!this.animationItem)throw Error(`${this.constructor.name}: animationItem is not implemented`);if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);this.renderConfig?.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText="");let{length:t}=this.layers;for(let e=t-1;e>=0;e-=1)this.elements[e]?.destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0}hide(){if(!this.animationItem?.container)throw Error(`${this.constructor.name}: animationItem -> container is not implemented`);this.animationItem.container.style.display="none"}renderFrame(t,e){if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);if(!this.animationItem)throw Error(`${this.constructor.name}: animationItem is not implemented`);if(this.renderedFrame===t&&this.renderConfig?.clearCanvas===!0&&!e||this.destroyed||-1===t)return;this.renderedFrame=t,this.globalData.frameNum=t-Number(this.animationItem._isFirstFrame),this.globalData.frameId++,this.globalData._mdf=!this.renderConfig?.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;let{length:s}=this.layers;this.completeLayers||this.checkLayers(t);for(let e=s-1;e>=0;e--)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf){this.renderConfig?.clearCanvas===!0?this.canvasContext?.clearRect(0,0,this.transformCanvas?.w||0,this.transformCanvas?.h||0):this.save();for(let t=s-1;t>=0;t--)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame();this.renderConfig?.clearCanvas!==!0&&this.restore()}}reset(){if(!this.renderConfig?.clearCanvas)return void this.canvasContext?.restore();this.contextData?.reset()}restore(t){if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);if(!this.renderConfig?.clearCanvas)return void this.canvasContext?.restore();t&&(this.globalData.blendMode="source-over"),this.contextData?.restore(t)}save(t){this.canvasContext?.save()}show(){if(!this.animationItem?.container)throw Error(`${this.constructor.name}: animationItem -> container is not implemented`);this.animationItem.container.style.display="block"}updateContainerSize(t,e){let s,i,r,a;if(!this.animationItem)throw Error(`${this.constructor.name}: animationItem is not implemented`);if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);if(!this.renderConfig?.dpr)throw Error(`${this.constructor.name}: renderConfig -> dpr is not implemented`);if(!this.transformCanvas)throw Error(`${this.constructor.name}: transformCanvas is not implemented`);if(this.reset(),t?(s=t,i=Number(e),this.canvasContext.canvas.width=s,this.canvasContext.canvas.height=i):(this.animationItem.wrapper&&this.animationItem.container?(s=this.animationItem.wrapper.offsetWidth,i=this.animationItem.wrapper.offsetHeight):(s=this.canvasContext.canvas.width,i=this.canvasContext.canvas.height),this.canvasContext.canvas.width=s*this.renderConfig.dpr,this.canvasContext.canvas.height=i*this.renderConfig.dpr),this.renderConfig.preserveAspectRatio.includes("meet")||this.renderConfig.preserveAspectRatio.includes("slice")){let t=this.renderConfig.preserveAspectRatio.split(" "),e=t[1]||"meet",n=t[0]||"xMidYMid",o=n.slice(0,4),h=n.slice(4);r=s/i,(a=this.transformCanvas.w/this.transformCanvas.h)>r&&"meet"===e||a<r&&"slice"===e?(this.transformCanvas.sx=s/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=s/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=i/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.h/this.renderConfig.dpr)),"xMid"===o&&(a<r&&"meet"===e||a>r&&"slice"===e)?this.transformCanvas.tx=(s-this.transformCanvas.w*(i/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===o&&(a<r&&"meet"===e||a>r&&"slice"===e)?this.transformCanvas.tx=(s-this.transformCanvas.w*(i/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,"YMid"===h&&(a>r&&"meet"===e||a<r&&"slice"===e)?this.transformCanvas.ty=(i-this.transformCanvas.h*(s/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===h&&(a>r&&"meet"===e||a<r&&"slice"===e)?this.transformCanvas.ty=(i-this.transformCanvas.h*(s/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio===$.Initial?(this.transformCanvas.sx=s/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.h/this.renderConfig.dpr)):(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,!0)}}i4.prototype.createNull=i5.prototype.createNull;class i6 extends s4{constructor(t,e,s){super(),this.addPendingElement=i4.prototype.addPendingElement,this.buildAllItems=i4.prototype.buildAllItems,this.buildElementParenting=i4.prototype.buildElementParenting,this.buildItem=i4.prototype.buildItem,this.checkLayers=i4.prototype.checkLayers,this.checkPendingElements=i4.prototype.checkPendingElements,this.clearCanvas=sV.prototype.clearCanvas,this.configAnimation=i4.prototype.configAnimation,this.createAudio=i4.prototype.createAudio,this.createCamera=i4.prototype.createCamera,this.createContainerElements=sV.prototype.createContainerElements,this.createContent=sV.prototype.createContent,this.createElements=sV.prototype.createElements,this.createFootage=i4.prototype.createFootage,this.createImage=i4.prototype.createImage,this.createItem=i4.prototype.createItem,this.createNull=i4.prototype.createNull,this.createRenderableComponents=sV.prototype.createRenderableComponents,this.createShape=i4.prototype.createShape,this.createSolid=i4.prototype.createSolid,this.createText=i4.prototype.createText,this.ctxFill=i4.prototype.ctxFill,this.ctxFillRect=i4.prototype.ctxFillRect,this.ctxFillStyle=i4.prototype.ctxFillStyle,this.ctxLineCap=i4.prototype.ctxLineCap,this.ctxLineJoin=i4.prototype.ctxLineJoin,this.ctxLineWidth=i4.prototype.ctxLineWidth,this.ctxMiterLimit=i4.prototype.ctxMiterLimit,this.ctxOpacity=i4.prototype.ctxOpacity,this.ctxStroke=i4.prototype.ctxStroke,this.ctxStrokeStyle=i4.prototype.ctxStrokeStyle,this.ctxTransform=i4.prototype.ctxTransform,this.exitLayer=sV.prototype.exitLayer,this.getElementById=i4.prototype.getElementById,this.getElementByPath=i4.prototype.getElementByPath,this.hide=sV.prototype.hide,this.hideElement=sV.prototype.hideElement,this.includeLayers=i4.prototype.includeLayers,this.initItems=i4.prototype.initItems,this.initRendererElement=sV.prototype.initRendererElement,this.prepareLayer=sV.prototype.prepareLayer,this.renderFrame=sV.prototype.renderFrame,this.reset=i4.prototype.reset,this.restore=i4.prototype.restore,this.save=i4.prototype.save,this.searchExtraCompositions=i4.prototype.searchExtraCompositions,this.setBlendMode=sV.prototype.setBlendMode,this.setProjectInterface=i4.prototype.setProjectInterface,this.setupGlobalData=i4.prototype.setupGlobalData,this.show=sV.prototype.show,this.showElement=sV.prototype.showElement,this.updateContainerSize=i4.prototype.updateContainerSize,this.completeLayers=!1,this.layers=t.layers,this.pendingElements=[],this.elements=eL(this.layers.length),this.initElement(t,e,s),this.tm=t.tm?sp.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}createComp(t){if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);return new i6(t,this.globalData,this)}destroy(){let{length:t}=this.layers;for(let e=t-1;e>=0;e--)this.elements[e]?.destroy();this.layers=null,this.elements=null}renderInnerContent(){if(!this.data?.w||!this.data.h)throw Error(`${this.constructor.name} data (LottieLayer) is not implemented`);let{canvasContext:t,completeLayers:e,data:s,elements:i,layers:r}=this;if(!t)throw Error(`${this.constructor.name}: canvasContext is not implemented`);t.beginPath(),t.moveTo(0,0),t.lineTo(s.w||0,0),t.lineTo(s.w||0,s.h||0),t.lineTo(0,s.h||0),t.lineTo(0,0),t.clip();let{length:a}=r;for(let t=a-1;t>=0;t--)(e||i[t])&&i[t].renderFrame()}}class i9{constructor(){this.opacity=-1,this.transform=e$(F.Float32,16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}}class i8{constructor(){this.stack=[],this.stack=[],this.cArrPos=0,this.cTr=new eN;for(let t=0;t<15;t++){let e=new i9;this.stack[t]=e}this._length=15,this.nativeContext=null,this.transformMat=new eN,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=""}duplicate(){let t=2*this._length;for(let e=this._length;e<t;e++)this.stack[e]=new i9;this._length=t}fill(t){this.nativeContext&&this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext?.fill(t)}fillRect(t,e,s,i){this.nativeContext&&this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext?.fillRect(t,e,s,i)}fillStyle(t){this.stack[this.cArrPos].fillStyle!==t&&(this.currentFillStyle=t,this.stack[this.cArrPos].fillStyle=t)}lineCap(t){this.stack[this.cArrPos].lineCap!==t&&(this.currentLineCap=t,this.stack[this.cArrPos].lineCap=t)}lineJoin(t){this.stack[this.cArrPos].lineJoin!==t&&(this.currentLineJoin=t,this.stack[this.cArrPos].lineJoin=t)}lineWidth(t){this.stack[this.cArrPos].lineWidth!==t&&(this.currentLineWidth=t,this.stack[this.cArrPos].lineWidth=t)}miterLimit(t){this.stack[this.cArrPos].miterLimit!==t&&(this.currentMiterLimit=t,this.stack[this.cArrPos].miterLimit=t)}opacity(t){let e=this.stack[this.cArrPos].opacity;e*=t<0?0:t,this.stack[this.cArrPos].opacity!==e&&(this.nativeContext&&this.currentOpacity!==t&&(this.nativeContext.globalAlpha=t,this.currentOpacity=t),this.stack[this.cArrPos].opacity=e)}reset(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1}restore(t){this.cArrPos-=1;let{fillStyle:e,lineCap:s,lineJoin:i,lineWidth:r,miterLimit:a,opacity:n,strokeStyle:o,transform:h}=this.stack[this.cArrPos],l=this.cTr.props;for(let t=0;t<16;t++)l[t]=h[t];if(t){this.nativeContext?.restore();let t=this.stack[this.cArrPos+1];this.appliedFillStyle=t.fillStyle,this.appliedStrokeStyle=t.strokeStyle,this.appliedLineWidth=t.lineWidth,this.appliedLineCap=t.lineCap,this.appliedLineJoin=t.lineJoin,this.appliedMiterLimit=t.miterLimit}this.nativeContext?.setTransform(h[0],h[1],h[4],h[5],h[12],h[13]),this.nativeContext&&(t||-1!==n&&this.currentOpacity!==n)&&(this.nativeContext.globalAlpha=n,this.currentOpacity=n),this.currentFillStyle=e,this.currentStrokeStyle=o,this.currentLineWidth=r,this.currentLineCap=s,this.currentLineJoin=i,this.currentMiterLimit=a}save(t){let e;t&&this.nativeContext?.save();let{props:s}=this.cTr;this._length<=this.cArrPos&&this.duplicate();let i=this.stack[this.cArrPos];for(e=0;e<16;e++)i.transform[e]=s[e];this.cArrPos++;let r=this.stack[this.cArrPos];r.opacity=i.opacity,r.fillStyle=i.fillStyle,r.strokeStyle=i.strokeStyle,r.lineWidth=i.lineWidth,r.lineCap=i.lineCap,r.lineJoin=i.lineJoin,r.miterLimit=i.miterLimit}setContext(t){this.nativeContext=t}setOpacity(t){this.stack[this.cArrPos].opacity=t}stroke(){if(!this.nativeContext)throw Error(`${this.constructor.name}: nativeContext is not implemented`);this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=Number(this.appliedLineWidth)),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=Number(this.appliedMiterLimit)),this.nativeContext.stroke()}strokeStyle(t){this.stack[this.cArrPos].strokeStyle!==t&&(this.currentStrokeStyle=t,this.stack[this.cArrPos].strokeStyle=t)}transform(t){this.transformMat.cloneFromProps(t);let e=this.cTr;this.transformMat.multiply(e),e.cloneFromProps(this.transformMat.props);let s=e.props;this.nativeContext?.setTransform(s[0],s[1],s[4],s[5],s[12],s[13])}}class i7{constructor(){let{getBaseElement:t}=s6.prototype,{buildElementParenting:e}=iZ.prototype;this.getBaseElement=t,this.destroyBaseElement=this.destroy,this.buildElementParenting=e}addEffects(){}buildElementParenting(t,e,s){throw Error(`${this.constructor.name}: Method buildElementParenting is not implemented`)}checkBlendMode(){}createContainerElements(){this.renderableEffectsManager=new eG(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),this.data?.bm!==0&&this.setBlendMode()}createRenderableComponents(){if(!this.data||!this.globalData)throw Error(`${this.constructor.name}: data or globalData is not implemented`);this.maskManager=new sM(this.data,this,this.globalData)}destroy(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)}destroyBaseElement(){throw Error(`${this.constructor.name}: Method destroyBaseElement is not implemented`)}getBaseElement(){throw Error(`${this.constructor.name}: Method getBaseElement is not implemented`)}initRendererElement(){this.baseElement=tF(this.data?.tg||"div"),this.data?.hasMask?(this.svgElement=tT("svg"),this.layerElement=tT("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,t1(this.baseElement)}renderElement(){let t=this.transformedElement?this.transformedElement.style:{};this.finalTransform?._matMdf&&(t.transform=this.finalTransform.mat.toCSS()),this.finalTransform?._opMdf&&(t.opacity=`${this.finalTransform.mProp.o?.v}`)}renderFrame(t){this.data?.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))}renderInnerContent(){throw Error(`${this.constructor.name}: Method renderInnerContent is not implemented`)}renderRenderable(){throw Error(`${this.constructor.name}: Method renderRenderable is not implemented`)}renderTransform(){throw Error(`${this.constructor.name}: Method renderTransform is not implemented`)}setBlendMode(){throw Error(`${this.constructor.name}: Method setBlendMode is not implemented`)}setMatte(){}}class rt extends s2{constructor(t,e,s){if(super(),this.initFrame(),this.initBaseData(t,e,s),this.initHierarchy(),this.pe=sp.getProp(this,t.pe,0,0,this),t.ks.p?.s?(this.px=sp.getProp(this,t.ks.p.x,1,0,this),this.py=sp.getProp(this,t.ks.p.y,1,0,this),this.pz=sp.getProp(this,t.ks.p.z,1,0,this)):this.p=sp.getProp(this,t.ks.p,1,0,this),t.ks.a&&(this.a=sp.getProp(this,t.ks.a,1,0,this)),t.ks.or?.k.length&&t.ks.or.k[0].to){let{length:e}=t.ks.or.k;for(let s=0;s<e;s++)t.ks.or.k[s].to=null,t.ks.or.k[s].ti=null}this.or=sp.getProp(this,t.ks.or,1,ti,this),this.or.sh=!0,this.rx=sp.getProp(this,t.ks.rx,0,ti,this),this.ry=sp.getProp(this,t.ks.ry,0,ti,this),this.rz=sp.getProp(this,t.ks.rz,0,ti,this),this.mat=new eN,this._prevMat=new eN,this._isFirstFrame=!0,this.finalTransform={mProp:this}}createElements(){}getBaseElement(){return null}hide(){}prepareFrame(t){this.prepareProperties(t,!0)}renderFrame(t){if(!this.globalData?.compSize)throw Error(`${this.constructor.name}: globalData->compSize is not implemented`);let e=this._isFirstFrame;if(this.hierarchy){let{length:t}=this.hierarchy;for(let s=0;s<t;s++)e=this.hierarchy[s].finalTransform?.mProp._mdf||e}if(e||this.pe?._mdf||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?._mdf){if(this.mat?.reset(),this.hierarchy){let t=this.hierarchy.length-1;for(let e=t;e>=0;e--){let t=this.hierarchy[e].finalTransform?.mProp;t?.p&&t.or&&t.rx&&t.ry&&t.rz&&t.s&&t.a&&(this.mat?.translate(-t.p.v[0],-t.p.v[1],t.p.v[2]),this.mat?.rotateX(-t.or.v[0]).rotateY(-t.or.v[1]).rotateZ(t.or.v[2]),this.mat?.rotateX(-t.rx.v).rotateY(-t.ry.v).rotateZ(t.rz.v),this.mat?.scale(1/t.s.v[0],1/t.s.v[1],1/t.s.v[2]),this.mat?.translate(t.a.v[0],t.a.v[1],t.a.v[2]))}}if(this.p?this.mat?.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.px&&this.py&&this.pz&&this.mat?.translate(-this.px.v,-this.py.v,this.pz.v),this.a){let t=[];this.p?t=[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&&this.py&&this.pz&&(t=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]]);let e=Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)),s=[t[0]/e,t[1]/e,t[2]/e],i=Math.sqrt(s[2]*s[2]+s[0]*s[0]),r=Math.atan2(s[1],i),a=Math.atan2(s[0],-s[2]);this.mat?.rotateY(a).rotateX(-r)}this.rx&&this.ry&&this.rz&&this.mat?.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.or&&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);let t=!this._prevMat.equals(this.mat);if((t||this.pe?._mdf)&&this.comp?.threeDElements){let e,s,{length:i}=this.comp.threeDElements;for(let r=0;r<i;r++)if(e=this.comp.threeDElements[r],e?.type==="3d"){if(t){let t=this.mat?.toCSS();s=e.container.style,t&&(s.transform=t)}this.pe?._mdf&&(e.perspectiveElem.style.perspective=`${this.pe.v}px`)}this.mat?.clone(this._prevMat)}}this._isFirstFrame=!1}setup(){let{length:t}=this.comp?.threeDElements??[];for(let e=0;e<t;e++){let t=this.comp?.threeDElements[e];if(t?.type==="3d"){let e=t.perspectiveElem.style,s=t.container.style;e.perspective=`${this.pe?.v}px`,s.transformOrigin="0px 0px 0px",e.transform="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)"}}}}class re extends s5{constructor(t,e,s){super();let{addEffects:i,checkBlendMode:r,setMatte:a}=i7.prototype;this.addEffects=i,this.checkBlendMode=r,this.setMatte=a,this.initElement(t,e,s)}addEffects(){throw Error(`${this.constructor.name}: Method addEffects is not implemented`)}checkBlendMode(){throw Error(`${this.constructor.name}: Method checkBlendMode is not implemented`)}createContent(){let t;if(!this.data)throw Error(`${this.constructor.name}: data (LottierLayer) is not implemented`);this.data.hasMask?((t=tT("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=tF("div")).style.width=`${this.data.sw}px`,t.style.height=`${this.data.sh}px`,this.data.sc&&(t.style.backgroundColor=this.data.sc)),this.layerElement?.appendChild(t)}setMatte(){throw Error(`${this.constructor.name}: Method setMatte is not implemented`)}}class rs extends re{constructor(t,e,s){super(t,e,s),this.assetData=e.getAssetData(t.refId),this.initElement(t,e,s)}createContent(){if(!this.assetData)throw Error(`${this.constructor.name}: assetData is not implemented`);if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);let t=this.globalData.getAssetsPath(this.assetData),e=new Image;this.data?.hasMask?(this.imageElem=tT("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}`)):this.layerElement?.appendChild(e),e.crossOrigin="anonymous",e.src=t,this.data?.ln&&this.baseElement?.setAttribute("id",this.data.ln)}}class ri extends s3{constructor(t,e,s){super(),this.shapeBoundingBox={bottom:0,left:0,right:0,top:0},this.tempBoundingBox={height:0,width:0,x:0,xMax:0,y:0,yMax:0},this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=tT("g"),this.initElement(t,e,s),this.prevViewData=[],this.currentBBox={h:0,w:0,x:999999,y:-999999},this._renderShapeFrame=this.renderInnerContent}_renderShapeFrame(){throw Error(`${this.constructor.name}: Method _renderShapeFrame is not implemented`)}calculateBoundingBox(t,e){let{length:s}=t;for(let i=0;i<s;i++)this.calculateShapeBoundingBox(t[i],e)}calculateF(t,e,s,i,r,a){return Math.pow(1-t,3)*e[a]+3*Math.pow(1-t,2)*t*s[a]+3*(1-t)*Math.pow(t,2)*i[a]+Math.pow(t,3)*r[a]}calculateShapeBoundingBox(t,e){let s,i,r,a,n,o=t.sh.v,{transformers:h}=t,l=o._length;if(!(l<=1)){for(s=0;s<l-1;s++)i=this.getTransformedPoint(h,o.v[s]),r=this.getTransformedPoint(h,o.o[s]),a=this.getTransformedPoint(h,o.i[s+1]),n=this.getTransformedPoint(h,o.v[s+1]),this.checkBounds(i,r,a,n,e);o.c&&(i=this.getTransformedPoint(h,o.v[s]),r=this.getTransformedPoint(h,o.o[s]),a=this.getTransformedPoint(h,o.i[0]),n=this.getTransformedPoint(h,o.v[0]),this.checkBounds(i,r,a,n,e))}}checkBounds(t,e,s,i,r){this.getBoundsOfCurve(t,e,s,i);let a=this.shapeBoundingBox;r.x=Math.min(a.left,r.x),r.xMax=Math.max(a.right,r.xMax),r.y=Math.min(a.top,r.y),r.yMax=Math.max(a.bottom,r.yMax)}createContent(){let t;if(!this.baseElement)throw Error(`${this.constructor.name}: baseElement is not implemented`);if(this.baseElement.style.fontSize="0",this.data?.hasMask)this.layerElement?.appendChild(this.shapesContainer),t=this.svgElement;else{t=tT("svg");let e=this.comp?.data??this.globalData?.compSize;e&&(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}currentBoxContains(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}expandStrokeBoundingBox(t,e){let s=0;if(t.keyframes){for(let e=0;e<t.keyframes.length;e++){let i=t.keyframes[e].s;i>s&&(s=i)}s*=t.mult??1}else s=t.v*(t.mult??1);e.x-=s,e.xMax+=s,e.y-=s,e.yMax+=s}filterUniqueShapes(){throw Error(`${this.constructor.name}: Method filterUniqueShapes is not implemented`)}getBoundsOfCurve(t,e,s,i){let r=[[t[0],i[0]],[t[1],i[1]]];for(let a,n,o,h,l,p,m,c=0;c<2;++c)n=6*t[c]-12*e[c]+6*s[c],a=-3*t[c]+9*e[c]-9*s[c]+3*i[c],o=3*e[c]-3*t[c],n|=0,o|=0,0==(a|=0)&&0===n||(0===a?(h=-o/n)>0&&h<1&&r[c].push(this.calculateF(h,t,e,s,i,c)):(l=n*n-4*o*a)>=0&&((p=(-n+Math.sqrt(l))/(2*a))>0&&p<1&&r[c].push(this.calculateF(p,t,e,s,i,c)),(m=(-n-Math.sqrt(l))/(2*a))>0&&m<1&&r[c].push(this.calculateF(m,t,e,s,i,c))));this.shapeBoundingBox.left=Math.min.apply(null,r[0]),this.shapeBoundingBox.top=Math.min.apply(null,r[1]),this.shapeBoundingBox.right=Math.max.apply(null,r[0]),this.shapeBoundingBox.bottom=Math.max.apply(null,r[1])}getTransformedPoint(t,e){let s=e,{length:i}=t;for(let e=0;e<i;e++)s=t[e].mProps.v.applyToPointArray(s[0],s[1],0);return s}initElement(t,e,s){throw Error(`${this.constructor.name}: Method initElement is not implemented`)}renderInnerContent(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){if(!this.shapeCont)throw Error(`${this.constructor.name}: shapeCont is not implemented`);let{currentBBox:t,itemsData:e,shapeCont:s,tempBoundingBox:i}=this;if(i.x=999999,i.xMax=-999999,i.y=999999,i.yMax=-999999,this.calculateBoundingBox(e,i),i.width=i.xMax<i.x?0:i.xMax-i.x,i.height=i.yMax<i.y?0:i.yMax-i.y,this.currentBoxContains(i))return;let r=!1;t.w!==i.width&&(t.w=i.width,s.setAttribute("width",`${i.width}`),r=!0),t.h!==i.height&&(t.h=i.height,s.setAttribute("height",`${i.height}`),r=!0),(r||t.x!==i.x||t.y!==i.y)&&(t.w=i.width,t.h=i.height,t.x=i.x,t.y=i.y,s.setAttribute("viewBox",`${t.x} ${t.y} ${t.w} ${t.h}`),s.style.transform=`translate(${t.x}px,${t.y}px)`)}}searchShapes(t,e,s,i,r,a,n){throw Error(`${this.constructor.name}: Method searchShapes is not implemented`)}}class rr extends iW{constructor(t,e,s){super(),this.renderedLetters=[],this.textSpans=[],this.textPaths=[],this.currentBBox={h:0,w:0,x:999999,y:-999999},this.renderType=L.SVG,this.isMasked=!1,this.initElement(t,e,s)}buildNewText(){let t=this.textProperty?.currentData;this.renderedLetters=eL(t?.l.length||0);let e=this.innerElem?.style,s=t?.fc?this.buildColor(t.fc):"rgba(0,0,0,0)";e&&(e.fill=s,e.color=s,t?.sc&&(e.stroke=this.buildColor(t.sc),e.strokeWidth=`${t.sw}px`));let i=this.globalData?.fontManager?.getFontByName(t?.f);if(e&&!this.globalData?.fontManager?.chars){if(e.fontSize=`${t?.finalSize||0}px`,e.lineHeight=`${t?.finalSize||0}px`,this.innerElem&&i?.fClass)this.innerElem.className=i.fClass;else if(i&&(e.fontFamily=i.fFamily),t){let{fWeight:s}=t,{fStyle:i}=t;e.fontStyle=i,e.fontWeight=s}}let r=t?.l??[],a,n=null,o=null,h=this.mHelper,l,p,m=0,{length:c}=r;for(let e=0;e<c;e++){if(this.globalData?.fontManager?.chars?(this.textPaths[m]?a=this.textPaths[m]:((a=tT("path")).setAttribute("stroke-linecap",R[1]),a.setAttribute("stroke-linejoin",z[2]),a.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[m]?o=(n=this.textSpans[m]).children[0]:((n=tF("div")).style.lineHeight="0",(o=tT("svg")).appendChild(a),t1(n)))):this.isMasked?a=this.textPaths[m]??tT("text"):this.textSpans[m]?(n=this.textSpans[m],a=this.textPaths[m]):(t1(n=tF("span")),t1(a=tF("span")),n.appendChild(a)),this.globalData?.fontManager?.chars){let s,m=this.globalData.fontManager.getCharData(t?.finalText[e],i?.fStyle,this.globalData.fontManager.getFontByName(t?.f).fFamily);if(s=m?m.data:null,h.reset(),s?.shapes&&s.shapes.length>0&&(l=s.shapes[0].it??[],h.scale((t?.finalSize||0)/100,(t?.finalSize||0)/100),p=this.createPathShape(h,l),a.setAttribute("d",p)),this.isMasked)this.innerElem?.appendChild(a);else if(n&&o){if(this.innerElem?.appendChild(n),s?.shapes){document.body.appendChild(o);let t=o.getBBox();o.setAttribute("width",`${t.width+2}`),o.setAttribute("height",`${t.height+2}`),o.setAttribute("viewBox",`${t.x-1} ${t.y-1} ${t.width+2} ${t.height+2}`),o.style.transform=`translate(${t.x-1}px,${t.y-1}px)`,r[e].yOffset=t.y-1}else o.setAttribute("width","1"),o.setAttribute("height","1");n.appendChild(o)}}else(a.textContent=r[e].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)?this.innerElem?.appendChild(a):(n&&this.innerElem?.appendChild(n),a.style.transform=`translate3d(0,${-(t?.finalSize||0)/1.2}px,0)`);this.isMasked?this.textSpans[m]=a:this.textSpans[m]=n,this.textSpans[m].style.display="block",this.textPaths[m]=a,m++}for(;m<this.textSpans.length;)this.textSpans[m].style.display="none",m++}createContent(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType=L.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}`);let t=tT("g");this.maskedElement?.appendChild(t),this.innerElem=t}else this.renderType=L.HTML,this.innerElem=this.layerElement;this.checkParenting()}renderInnerContent(){let t,e,s,i;if(this.validateText(),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].v[1]} ${this.compW} ${this.compH}`),t=this.svgElement?.style;let e=`translate(${-this.finalTransform.mProp.p?.v[0]}px,${-this.finalTransform.mProp.p?.v[1]}px)`;t&&(t.transform=e)}}if(this.textAnimator?.getMeasures(this.textProperty?.currentData,this.lettersChangedFlag),!this.lettersChangedFlag&&!this.textAnimator?.lettersChangedFlag)return;let r=0,a=this.textAnimator?.renderedLetters??[],n=this.textProperty?.currentData.l??[],{length:o}=n;for(let t=0;t<o;t++){if(n[t].n){r++;continue}s=this.textSpans[t],i=this.textPaths[t],e=a[r],r++,e._mdf.m&&(this.isMasked?s.setAttribute("transform",e.m):s.style.transform=e.m),s.style.opacity=`${e.o??1}`,e.sw&&e._mdf.sw&&i.setAttribute("stroke-width",`${e.sw}`),e.sc&&e._mdf.sc&&i.setAttribute("stroke",e.sc),e.fc&&e._mdf.fc&&(i.setAttribute("fill",e.fc),i.style.color=e.fc)}if(this.innerElem?.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){let e=this.innerElem.getBBox();if(this.currentBBox&&this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.svgElement?.setAttribute("width",`${e.width}`)),this.currentBBox&&this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.svgElement?.setAttribute("height",`${e.height}`)),this.currentBBox&&(this.currentBBox.w!==e.width+2||this.currentBBox.h!==e.height+2||this.currentBBox.x!==e.x-1||this.currentBBox.y!==e.y-1)&&(this.currentBBox.w=e.width+2,this.currentBBox.h=e.height+2,this.currentBBox.x=e.x-1,this.currentBBox.y=e.y-1,this.svgElement?.setAttribute("viewBox",`${this.currentBBox.x} ${this.currentBBox.y} ${this.currentBBox.w} ${this.currentBBox.h}`),this.svgElement)){t=this.svgElement.style;let e=`translate(${this.currentBBox.x}px,${this.currentBBox.y}px)`;t.transform=e}}}}class ra extends iZ{constructor(t,e){super(),this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",filterSize:{height:e?.filterSize?.height||"400%",width:e?.filterSize?.width||"400%",x:e?.filterSize?.x||"-100%",y:e?.filterSize?.y||"-100%"},hideOnTransparent:!(e&&!1===e.hideOnTransparent),imagePreserveAspectRatio:e?.imagePreserveAspectRatio||"xMidYMid slice"},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType=L.HTML;let{buildItem:s,createNull:i,renderFrame:r}=i5.prototype;this.buildItem=s,this.createNull=i,this.renderFrame=r}addTo3dContainer(t,e){let s=0,i=this.threeDElements.length;for(;s<i;){if(e<=this.threeDElements[s].endPos){let i=this.threeDElements[s].startPos,r;for(;i<e;)r=this.elements[i]?.getBaseElement?.(),i++;r?this.threeDElements[s].container.insertBefore(t,r):this.threeDElements[s].container.appendChild(t);break}s++}}appendElementInPos(t,e){let s=t.getBaseElement();if(!s)return;let i=this.layers[e];if(i.ddd&&this.supports3d)this.addTo3dContainer(s,e);else if(this.threeDElements.length>0)this.addTo3dContainer(s,e);else{let t,r,a=0;for(;a<e;)!0!==this.elements[a]&&this.elements[a].getBaseElement&&(r=this.elements[a],t=(this.layers[a].ddd?this.getThreeDContainerByPos(a):r.getBaseElement())??t),a++;t?i.ddd&&this.supports3d||this.layerElement?.insertBefore(s,t):i.ddd&&this.supports3d||this.layerElement?.appendChild(s)}}build3dContainers(){let t,{length:e}=this.layers,s="";for(let i=0;i<e;i++)if(this.layers[i].ddd&&3!==this.layers[i].ty){if("3d"!==s&&(s="3d",t=this.createThreeDContainer(i,"3d")),!t)continue;t.endPos=Math.max(t.endPos,i)}else{if("2d"!==s&&(s="2d",t=this.createThreeDContainer(i,"2d")),!t)continue;t.endPos=Math.max(t.endPos,i)}let{length:i}=this.threeDElements;for(let t=i-1;t>=0;t--)this.resizerElem?.appendChild(this.threeDElements[t].perspectiveElem)}checkPendingElements(){for(;this.pendingElements.length>0;){let t=this.pendingElements.pop();t?.checkParenting()}}configAnimation(t){if(!this.animationItem)throw Error(`${this.constructor.name}: animationItem is not implemented`);if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);let e=tF("div"),{wrapper:s}=this.animationItem,{style:i}=e;i.width=`${t.w}px`,i.height=`${t.h}px`,this.resizerElem=e,t1(e),i.transformStyle="flat",this.renderConfig.className&&e.setAttribute("class",this.renderConfig.className),s?.appendChild(e),i.overflow="hidden";let r=tT("svg");r.setAttribute("width","1"),r.setAttribute("height","1"),t1(r),this.resizerElem.appendChild(r);let a=tT("defs");r.appendChild(a),this.data=t,this.setupGlobalData(t,r),this.globalData.defs=a,this.layers=t.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()}createCamera(t){if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);return this.camera=new rt(t,this.globalData,this),this.camera}createImage(t){if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);return this.supports3d?new rs(t,this.globalData,this):new s9(t,this.globalData,this)}createShape(t){if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);return this.supports3d?new ri(t,this.globalData,this):new iS(t,this.globalData,this)}createSolid(t){if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);return this.supports3d?new re(t,this.globalData,this):new iQ(t,this.globalData,this)}createText(t){if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);return this.supports3d?new rr(t,this.globalData,this):new i1(t,this.globalData,this)}createThreeDContainer(t,e){let s,i=tF("div");t1(i);let r=tF("div");t1(r),"3d"===e&&((s=i.style).width=`${this.globalData?.compSize?.w}px`,s.height=`${this.globalData?.compSize?.h}px`,s.transformOrigin="50% 50%",r.style.transform="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)"),i.appendChild(r);let a={container:r,endPos:t,perspectiveElem:i,startPos:t,type:e};return this.threeDElements.push(a),a}destroy(){if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);if(!this.animationItem)throw Error(`${this.constructor.name}: animationItem is not implemented`);this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;let{length:t}=this.layers;for(let e=0;e<t;e++)this.elements[e]?.destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null}getThreeDContainerByPos(t){let e=0,s=this.threeDElements.length;for(;e<s;){if(this.threeDElements[e].startPos<=t&&this.threeDElements[e].endPos>=t)return this.threeDElements[e].perspectiveElem;e++}return null}hide(){if(!this.resizerElem)throw Error(`${this.constructor.name}: resizerElem is not implemented`);this.resizerElem.style.display="none"}initItems(){if(this.buildAllItems(),this.camera)this.camera.setup();else{if(!this.globalData?.compSize)throw Error(`${this.constructor.name}: globalData->compSize is not implemented`);let t=this.globalData.compSize.w,e=this.globalData.compSize.h,{length:s}=this.threeDElements;for(let i=0;i<s;i++){let{style:s}=this.threeDElements[i].perspectiveElem;s.perspective=`${Math.sqrt(Math.pow(t,2)+Math.pow(e,2))}px`}}}renderFrame(t){throw Error(`${this.constructor.name}: Method renderFrame is not implemented`)}searchExtraCompositions(t){if(!this.globalData?.comp)throw Error(`${this.constructor.name}: globalData->comp is not implemented`);let{length:e}=t,s=tF("div");for(let i=0;i<e;i++)if(t[i].xt){let e=this.createComp(t[i],s,this.globalData.comp,null);e.initExpressions(),this.globalData.projectInterface.registerComposition(e)}}show(){if(!this.resizerElem)throw Error(`${this.constructor.name}: resizerElem is not implemented`);this.resizerElem.style.display="block"}updateContainerSize(){let t,e,s,i;if(!this.globalData?.compSize)throw Error(`${this.constructor.name}: compSize is not implemented in globalData`);if(!this.animationItem?.wrapper)throw Error(`${this.constructor.name}: wrapper is not implemented in animationItem`);let r=this.animationItem.wrapper.offsetWidth,a=this.animationItem.wrapper.offsetHeight;if(this.globalData.compSize.w/this.globalData.compSize.h>r/a?(t=r/this.globalData.compSize.w,e=r/this.globalData.compSize.w,s=0,i=(a-this.globalData.compSize.h*(r/this.globalData.compSize.w))/2):(t=a/this.globalData.compSize.h,e=a/this.globalData.compSize.h,s=(r-this.globalData.compSize.w*(a/this.globalData.compSize.h))/2,i=0),this.resizerElem){let{style:r}=this.resizerElem;r.transform=`matrix3d(${t},0,0,0,0,${e},0,0,0,0,1,0,${s},${i},0,1)`}}}class rn extends s4{constructor(t,e,s){super(),this.threeDElements=[],this.layers=t.layers,this.supports3d=!t.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=eL(this.layers.length);let{appendElementInPos:i,build3dContainers:r,checkPendingElements:a,configAnimation:n,createCamera:o,createImage:h,createShape:l,createSolid:p,createText:m,createThreeDContainer:c,getThreeDContainerByPos:d,initItems:u,searchExtraCompositions:f,updateContainerSize:g}=ra.prototype,{addEffects:y,checkBlendMode:b,createRenderableComponents:v,destroy:x,initRendererElement:w,renderElement:_,renderFrame:E,setMatte:C}=i7.prototype;this.addEffects=y,this.appendElementInPos=i,this.build3dContainers=r,this.checkBlendMode=b,this.checkPendingElements=a,this.configAnimation=n,this.createCamera=o,this.createImage=h,this.createRenderableComponents=v,this.createShape=l,this.createSolid=p,this.createText=m,this.createThreeDContainer=c,this.destroy=x,this.getThreeDContainerByPos=d,this.initItems=u,this.initRendererElement=w,this.renderElement=_,this.renderFrame=E,this.searchExtraCompositions=f,this.setMatte=C,this.updateContainerSize=g,this.initElement(t,e,s),this.tm=t.tm?sp.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this._createBaseContainerElements=this.createContainerElements}_createBaseContainerElements(){throw Error(`${this.constructor.name}: Method _createBaseContainerElements is not implemented`)}addEffects(){throw Error(`${this.constructor.name}: Method addEffects is not implemented`)}addTo3dContainer(t,e){let s=0,i;for(;s<e;)i=this.elements[s].getBaseElement(),s++;i?this.layerElement?.insertBefore(t,i):this.layerElement?.appendChild(t)}appendElementInPos(t,e){throw Error(`${this.constructor.name}: Method appendElementInPos is not implemented`)}build3dContainers(){throw Error(`${this.constructor.name}: Method build3dContainers is not implemented`)}buildElementParenting(t,e,s=[]){throw Error(`${this.constructor.name}: Method buildElementParenting is not implemented`)}checkBlendMode(){throw Error(`${this.constructor.name}: Method checkBlendMode is not implemented`)}checkPendingElements(){throw Error(`${this.constructor.name}: Method checkPendingElements is not implemented`)}configAnimation(t){throw Error(`${this.constructor.name}: Method configAnimation is not implemented`)}createCamera(t){throw Error(`${this.constructor.name}: Method createCamera is not implemented`)}createComp(t){if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);return this.supports3d?new rn(t,this.globalData,this):new i3(t,this.globalData,this)}createContainerElements(){this._createBaseContainerElements(),this.data?.hasMask?(this.svgElement?.setAttribute("width",`${this.data.w}`),this.svgElement?.setAttribute("height",`${this.data.h}`),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement}createImage(t){throw Error(`${this.constructor.name}: Method createImage is not implemented`)}createShape(t){throw Error(`${this.constructor.name}: Method createShape is not implemented`)}createSolid(t){throw Error(`${this.constructor.name}: Method createSolid is not implemented`)}createText(t){throw Error(`${this.constructor.name}: Method createText is not implemented`)}createThreeDContainer(t,e){throw Error(`${this.constructor.name}: Method createThreeDContainer is not implemented`)}getThreeDContainerByPos(t){throw Error(`${this.constructor.name}: Method getThreeDContainerByPos is not implemented`)}initItems(){throw Error(`${this.constructor.name}: Method initItems is not implemented`)}searchExtraCompositions(t){throw Error(`${this.constructor.name}: Method searchExtraCompositions is not implemented`)}setMatte(){throw Error(`${this.constructor.name}: Method setMatte is not implemented`)}updateContainerSize(){throw Error(`${this.constructor.name}: Method updateContainerSize is not implemented`)}}let ro={},rh=["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"],{length:rl}=rh;for(let t=0;t<rl;t+=1)ro[rh[t]]=Math[rh[t]];function rp(t,e){return e.i=t.i,e.j=t.j,e.S=[...t.S],e}function rm(t){return String.fromCharCode.apply(0,t)}ro.random=Math.random,ro.abs=t=>{if(tz(t)){let e=eL(t.length),{length:s}=t;for(let i=0;i<s;i++)e[i]=Math.abs(t[i]);return e}return Math.abs(t)};let rc={};!function(t,e){let s=this,i="random",r=e.pow(256,6),a=e.pow(2,52),n=2*a;function o(t){let e,s=t.length,i=this,r=0,a=i.i=i.j=0,n=i.S=[];for(s||(t=[s++]);r<256;)n[r]=r++;for(r=0;r<256;r++)n[r]=n[a=255&a+t[r%s]+(e=n[r])],n[a]=e;i.g=function(t){let e,s=0,{i:r}=i,{j:a}=i,n=i.S;for(;t--;)e=n[r=255&r+1],s=256*s+n[255&(n[r]=n[a=255&a+e])+(n[a]=e)];return i.i=r,i.j=a,s}}function h(t,e){let s=`${t}`,i,r=0;for(;r<s.length;)e[255&r]=255&(i^=19*e[255&r])+s.charCodeAt(r++);return rm(e)}e[`seed${i}`]=function(l,p,m){let c=p,d=[],u=h(function t(e,s){let i=[],r=typeof e,a;if(s&&"object"==r)for(a in e)try{i.push(t(e[a],s-1))}catch(t){}return i.length>0?i:"string"==r?e:`${e}\0`}((c=!0===c?{entropy:!0}:c||{}).entropy?[l,rm(t)]:null===l?function(){try{let t=new Uint8Array(256);return(s.crypto||s.msCrypto).getRandomValues(t),rm(t)}catch(r){let e=s.navigator,i=e?.plugins;return[Date.now(),s,i,s.screen,rm(t)]}}():l,3),d),f=new o(d),g=function(){let t=f.g(6),e=r,s=0;for(;t<a;)t=(t+s)*256,e*=256,s=f.g(1);for(;t>=n;)t/=2,e/=2,s>>>=1;return(t+s)/e};return g.int32=function(){return 0|f.g(4)},g.quick=function(){return f.g(4)/0x100000000},g.double=g,h(rm(f.S),t),(c.pass||m||function(t,s,r,a){return(a&&(a.S&&rp(a,f),t.state=function(){return rp(f,{})}),r)?(e[i]=t,s):t})(g,u,"global"in c?c.global:this==e,c.state)},h(e.random(),t)}([],ro);let rd=[0,0,0,0,0,0],ru=se(.333,0,.833,.833,"easeIn").get,rf=se(.33,0,.667,1,"easeInOut").get,rg=se(.167,.167,.667,1,"easeOut").get;function ry(t){let e=typeof t;if("number"===e||t instanceof Number||"boolean"===e)return-t;if(rS(t)){let{length:e}=t,s=[];for(let i=0;i<e;i++)s[i]=-t[i];return s}return t.propType?t.v:-t}function rb(t,e,s,i){let r,a,{length:n}=t,o=sy.newElement();o.setPathData(!!i,n);let h=[0,0];for(let i=0;i<n;i++)r=e[i]??h,a=s[i]??h,o.setTripleAt(t[i][0],t[i][1],a[0]+t[i][0],a[1]+t[i][1],r[0]+t[i][0],r[1]+t[i][1],i,!0);return o}function rv(t,e,s,i,r,a){let n=e,o=r,h=a;void 0===o?(o=s,h=i):n=(n-s)/(i-s),n>1?n=1:n<0&&(n=0);let l=t(n);if(rS(o)&&rS(h)){let t,e=o.length,s=e$(F.Float32,e);for(t=0;t<e;t+=1)s[t]=(h[t]-o[t])*l+o[t];return s}return(h-o)*l+o}function rx(t,e,s,i,r){return rv(rg,t,e,s,i,r)}function rw(t,e,s,i,r){return rv(ru,t,e,s,i,r)}function r_(t,e,s,i,r){return rv(rf,t,e,s,i,r)}function rE(t,e,s,i,r){let a=e,n=s,o=i,h=r;if((void 0===o||void 0===h)&&(o=a,h=n,a=0,n=1),n<a){let t=n;n=a,a=t}if(t<=a)return o;if(t>=n)return h;let l=n===a?0:(t-a)/(n-a);if(0===o.length)return o+(h-o)*l;let p=o.length,m=e$(F.Float32,p);for(let t=0;t<p;t+=1)m[t]=o[t]+(h[t]-o[t])*l;return m}function rC(t){return rP(t,function(t,e){let s,i=void 0;if("number"==typeof t||t instanceof Number)return i=i||0,ro.abs(Number(t)-Number(i));i||(i=rd);let r=ro.min(t.length,i.length),a=0;for(s=0;s<r;s+=1)a+=ro.pow(i[s]-t[s],2);return ro.sqrt(a)}(t))}function rk(t,e){let s=t,i=e;if(void 0===i&&(void 0===s?(s=0,i=1):(i=s,s=void 0)),tz(i)){let{length:t}=i;s||(s=e$(F.Float32,t));let e=e$(F.Float32,t),r=ro.random();for(let a=0;a<t;a+=1)e[a]=s[a]+r*(i[a]-s[a]);return e}return(s=s??0)+ro.random()*(i-s)}function rS(t){return"object"==typeof t&&null!==t&&(t.constructor===Array||t.constructor===Float32Array)}function rM(t){return t*ti}function rP(t,e){let s,i,r,a=typeof t,n=typeof e;if(rA(a,t)&&rA(n,e))return Number(t)/Number(e);if(rS(t)&&rA(n,e)){for(i=0,r=t.length,s=e$(F.Float32,r);i<r;i+=1)s[i]=t[i]/Number(e);return s}if(rA(a,t)&&rS(e)){for(i=0,r=e.length,s=e$(F.Float32,r);i<r;i+=1)s[i]=Number(t)/e[i];return s}return 0}function rA(t,e){return"number"===t||e instanceof Number||"boolean"===t||"string"===t}function rD(t,e){let s=t,i=e;return"string"==typeof s&&(s=parseInt(s,10)),"string"==typeof i&&(i=parseInt(i,10)),s%i}function rT(t,e){let s,i,r,a=typeof t,n=typeof e;if(rA(a,t)&&rA(n,e))return Number(t)*Number(e);if(rS(t)&&rA(n,e)){for(i=0,r=t.length,s=e$(F.Float32,r);i<r;i+=1)s[i]=t[i]*Number(e);return s}if(rA(a,t)&&rS(e)){for(i=0,r=e.length,s=e$(F.Float32,r);i<r;i++)s[i]=Number(t)*e[i];return s}return 0}function rF(t){return t}function rI(t){return t/ti}function r$(t,e){let s=t,i=e,r=typeof s,a=typeof i;if(rA(r,s)&&rA(a,i))return"string"===r&&(s=parseInt(s,10)),"string"===a&&(i=parseInt(i,10)),s-i;if(rS(s)&&rA(a,i))return s=[...s],s[0]-=Number(i),s;if(rA(r,s)&&rS(i))return(i=[...i])[0]=Number(s)-i[0],i;if(rS(s)&&rS(i)){let t=0,e=s.length,r=i.length,a=[];for(;t<e||t<r;)("number"==typeof s[t]||s[t]instanceof Number)&&("number"==typeof i[t]||i[t]instanceof Number)?a[t]=s[t]-i[t]:a[t]=void 0===i[t]?s[t]:s[t]||i[t],t++;return a}return 0}function rL(t,e){let s=t,i=e,r=typeof s,a=typeof i;if(rA(r,s)&&rA(a,i)||"string"===r||"string"===a)return Number(s)+Number(i);if(rS(s)&&rA(a,i))return s=[...s],s[0]+=Number(i),s;if(rA(r,s)&&rS(i))return(i=[...i])[0]=s+i[0],i;if(rS(s)&&rS(i)){let t=0,{length:e}=s,{length:r}=i,a=[];for(;t<e||t<r;)("number"==typeof s[t]||s[t]instanceof Number)&&("number"==typeof i[t]||i[t]instanceof Number)?a[t]=s[t]+i[t]:a[t]=void 0===i[t]?s[t]:s[t]||i[t],t++;return a}return 0}let rN={initiateExpression:function(t,e,s){if(!t.globalData?.renderConfig?.runExpressions)return rF;if(!t.comp?.globalData)throw Error("CompElement is not implemented");let{k:i,x:r}=e,a=/velocity\b/.test(r),n=r.includes("random"),{ip:o,nm:h,op:l,sh:p=0,sw:m=0,ty:c}=t.data,d,u,f,g=0,y;s._name=h,s.valueAtTime=s.getValueAtTime,Object.defineProperty(s,"value",{get:()=>s.v}),t.comp.frameDuration=1/t.comp.globalData.frameRate,t.comp.displayStartTime=0;let b=o/t.comp.globalData.frameRate,v=l/t.comp.globalData.frameRate,x=null,w,_=null,E=null,C,k=null,S,M=null,P=null,A=null,D=null,T=null,I=null,$,L=rF,N={},B=Function("_lottieGlobal","$bm_div","$bm_mod","$bm_mul","$bm_neg","$bm_sub","$bm_sum","$bm_transform","active","add","anchorPoint","clamp","comp","content","createPath","degrees_to_radians","degreesToRadians","document","ease","easeIn","easeOut","effect","fetch","frames","framesToTime","fromComp","fromCompToSurface","fromWorld","globalData","height","hslToRgb","index","inPoint","key","linear","lookAt","loop_in","loop_out","loopIn","loopInDuration","loopOut","loopOutDuration","mask","name","nearestKey","normalize","numKeys","obj","outPoint","position","posterizeTime","radians_to_degrees","random","randSeed","rgbToHsl","rotation","scale","selectorValue","smooth","sourceRectAtTime","substr","substring","text","textIndex","textTotal","thisComp","time","timeToFrames","toComp","toWorld","transform","velocity","width","wiggle","window","XMLHttpRequest",`
|
|
6
|
+
${r}
|
|
7
|
+
obj.scoped_bm_rt = $bm_rt;`),R=0,z,O=null,G,q,j,W,H=s.kf?i.length:0,Y=!this.data||!0!==this.data.hd,U=(t,e)=>{let{pv:s}=this,i=tz(s)?s.length:1,r=e$(F.Float32,i),a=ro.floor(5*R),n=0;for(;n<a;){for(let t=0;t<i;t++)r[t]+=-e+2*e*ro.random();n++}let o=5*R,h=o-ro.floor(o),l=e$(F.Float32,i);if(i>1){for(let t=0;t<i;t++)l[t]=s[t]+r[t]+(-e+2*e*ro.random())*h;return l}return s+r[0]+(-e+2*e*ro.random())*h};function X(t,e){C(t,e,!0)}function J(t,e){S(t,e,!0)}s.loopIn&&(k=C=s.loopIn.bind(s)),s.loopOut&&(M=S=s.loopOut.bind(s)),s.smooth&&(A=s.smooth.bind(s));let Z=this.getValueAtTime.bind(this),K=this.getVelocityAtTime.bind(this),{frameRate:Q,projectInterface:tt}=t.comp.globalData;function te(t,e){let s=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],i=ro.atan2(s[0],ro.sqrt(s[1]*s[1]+s[2]*s[2]))/ti;return[-ro.atan2(s[1],s[2])/ti,i,0]}function ts(t){let s,r,a=t,n,o=i.length;if(0===i.length||"number"==typeof i[0])s=0,r=0;else if(s=-1,(a*=Q)<i[0].t)s=1,r=i[0].t;else{for(n=0;n<o-1;n+=1)if(a===i[n].t){s=n+1,r=i[n].t;break}else if(a>i[n].t&&a<i[n+1].t){a-i[n].t>i[n+1].t-a?(s=n+2,r=i[n+1].t):(s=n+1,r=i[n].t);break}-1===s&&(s=n+1,r=e.k[n].t)}return{index:s,time:r/Q}}function tr(t){let s=t;if(0===e.k.length||"number"==typeof e.k[0])throw Error(`The property has no keyframe at index ${s}`);s-=1;let i={time:e.k[s].t/Q,value:[]},r=Object.hasOwn(e.k[s],"s")?e.k[s].s:e.k[s-1].e,{length:a}=r;for(let t=0;t<a;t+=1)i[t]=r[t],i.value[t]=r[t];return i}function ta(t,e){let s=e;return s||(s=Q),t/s}function tn(t,e){let s=t,i=e;return s||0===s||(s=R),i||(i=Q),s*i}function to(){return t.sourceRectAtTime()}function th(t,e){return"string"==typeof O?void 0===e?O.slice(ro.max(0,t)):O.slice(t,e):""}function tl(t,e){return"string"==typeof O?void 0===e?O.slice(t):O.slice(t,e):""}let tp=t.data.ind,tm=!!t.hierarchy?.length,tc=null;g=ro.floor(1e6*ro.random());let{globalData:td}=t;function tu(t){O=Z(R=0===t?0:ro.floor(R*t)/t)}return function(e){var s;return(O=e,this.frameExpressionId===td.frameId&&this.propType!==V.TextSelector)?O:(this.propType===V.TextSelector&&(q=this.textIndex,j=this.textTotal,W=this.selectorValue),$||(G=t.layerInterface?.text,$=t.layerInterface,D=t.comp?.compInterface,I=$?.toWorld.bind($),E=$?.fromWorld.bind($),w=$?.fromComp.bind($),T=$?.toComp.bind($),P=$?.mask?$.mask.bind($):null,_=w),!y&&(d=y=t.layerInterface?.getInterface("ADBE Transform Group"),y&&(x=y.anchorPoint)),4!==c||u||(u=$?.getInterface("ADBE Root Vectors Group")),f=f??$?.getInterface(4),t.hierarchy?.length&&!tc&&(tc=t.hierarchy?.[0].layerInterface??null),R=(this.comp?.renderedFrame??0)/(this.comp?.globalData?.frameRate??60),n&&(s=g+R,ro.seedrandom(g+s)),a&&(z=K(R)),B(rc,rP,rD,rT,ry,r$,rL,d,Y,rL,x,tD,tt,u,rb,rI,rM,null,r_,rw,rx,f,null,null,ta,w,_,E,td,p,tB,tp,b,tr,rE,te,k,M,C,X,S,J,P,h,ts,rC,H,N,v,null,tu,rI,rk,g,tZ,null,null,W,A,to,tl,th,G,q,j,D,R,tn,T,I,y,z,m,U,null,null),this.frameExpressionId=td.frameId,N.scoped_bm_rt?.propType===V.Shape?N.scoped_bm_rt.v:N.scoped_bm_rt)}},resetFrame:function(){rc={}}},rB={getSpeedAtTime:function(t){let e=this.getValueAtTime(t),s=this.getValueAtTime(t+-.01),i=0;if(tz(e)&&tz(s)){let{length:t}=e;for(let r=0;r<t;r++)i+=Math.pow(s[r]-e[r],2);i=100*Math.sqrt(i)}else i=0;return i},getStaticValueAtTime:function(t,e){return this.pv},getValueAtTime:function(t){let e=t;return e*=this.elem?.globalData?.frameRate??60,e-=this.offsetTime,this._cachingAtTime&&e!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<e?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(e,this._cachingAtTime),this._cachingAtTime.lastFrame=e),this._cachingAtTime?.value},getVelocityAtTime:function(t){let e;if(void 0!==this.vel)return this.vel;let s=this.getValueAtTime(t),i=this.getValueAtTime(t+-.001);if(tz(s)&&tz(i)){let{length:t}=s;e=e$(F.Float32,t);for(let r=0;r<t;r++)e[r]=-((i[r]-s[r])/.001);return e}return-((i-s)/.001)},searchExpressions:function(t,e,s){e.x&&(s.k=!0,s.x=!0,s.initiateExpression=rN.initiateExpression,s.effectsSequence.push(s.initiateExpression(t,e,s).bind(s)))},setGroupProperty:function(t){this.propertyGroup=t}};class rV extends sC{inTangents(t){return this.vertices("i",t)}isClosed(){return!!this.v?.c}normalOnPath(t,e){return this.vectorOnPath(t,e,"normal")}outTangents(t){return this.vertices("o",t)}pointOnPath(t,e){let s,i=this.v;void 0!==e&&(i=this.getValueAtTime(e,0)),!this._segmentsLength&&i&&(this._segmentsLength=e7.getSegmentsLength(i));let r=this._segmentsLength,{lengths:a}=r??{lengths:[]},n=(r?.totalLength??0)*t,o=0,h=a.length,l=0;for(;o<h;){if(l+a[o].addedLength>n){let t=o,e=i?.c&&o===h-1?0:o+1,r=(n-l)/a[o].addedLength;i&&(s=e7.getPointInSegment(i.v[t],i.v[e],i.o[t],i.i[e],r,a[o]));break}l+=a[o].addedLength,o++}return i&&(s=s??(i.c?[i.v[0][0],i.v[0][1]]:[i.v[i._length-1][0],i.v[i._length-1][1]])),s}points(t){return this.vertices("v",t)}tangentOnPath(t,e){return this.vectorOnPath(t,e,"tangent")}vectorOnPath(t,e,s){let i=t;1==i?i=Number(this.v?.c):0==i&&(i=.999);let r=this.pointOnPath(i,e)??[],a=this.pointOnPath(i+.001,e)??[],n=a[0]-r[0],o=a[1]-r[1],h=Math.sqrt(Math.pow(n,2)+Math.pow(o,2));return 0===h?[0,0]:"tangent"===s?[n/h,o/h]:[-o/h,n/h]}vertices(t,e){this.k&&this.getValue();let s=this.v;void 0!==e&&(s=this.getValueAtTime(e,0));let i=s?._length??0,r=s?.[t],a=s?.v,n=eL(i);for(let e=0;e<i;e+=1)"i"===t||"o"===t?n[e]=[r[e][0]-a[e][0],r[e][1]-a[e][1]]:n[e]=[r[e][0],r[e][1]];return n}constructor(...t){super(...t),this.getValueAtTime=rB.getStaticValueAtTime,this.setGroupProperty=rB.setGroupProperty}}function rR(t,e,s){let i,r,a;if(!this.k||0===this.keyframes.length)return this.pv;let n=e,{comp:o,elem:h,keyframes:l,pv:p}=this;if(!h?.comp)throw Error("Element is not implemented");if(!o)throw Error("Comp is not implemented");let m=t?t.toLowerCase():"",c=o.renderedFrame??0,d=l[l.length-1].t,{frameRate:u}=h.comp.globalData??{frameRate:60};if(c<=d)return p;let f,g=0;switch(s?f=n?Math.abs(d-u*n):Math.max(0,d-h.data.ip):((!n||n>l.length-1)&&(n=l.length-1),f=d-(g=l[l.length-1-n].t)),m){case"pingpong":if(Math.floor((c-g)/f)%2!=0)return this.getValueAtTime((f-(c-g)%f+g)/u,0);break;case"offset":{let t=this.getValueAtTime(g/u,0),e=this.getValueAtTime(d/u,0),s=this.getValueAtTime(((c-g)%f+g)/u,0),n=Math.floor((c-g)/f);if(tz(p)&&tz(t)&&tz(e)&&tz(s)){for(i=0,r=(a=Array.from({length:t.length})).length;i<r;i++)a[i]=(e[i]-t[i])*n+s[i];return a}return(e-t)*n+s}case"continue":{let t=this.getValueAtTime(d/u,0),e=this.getValueAtTime((d-.001)/u,0);if(tz(p)&&tz(t)&&tz(e)){for(i=0,r=(a=Array.from({length:t.length})).length;i<r;i+=1)a[i]=t[i]+(t[i]-e[i])*((c-d)/u)/5e-4;return a}return t+(c-d)/.001*(t-e)}}return this.getValueAtTime(((c-g)%f+g)/u,0)}function rz(t,e,s){let i,r,a,n,o;if(!this.k)return this.pv;let h=e,{comp:l,elem:p,keyframes:m,pv:c}=this;if(!p?.comp)throw Error("Element is not implemented");if(!l)throw Error("Comp is not implemented");let{frameRate:d}=p.comp.globalData??{frameRate:60},u=t?t.toLowerCase():"",f=l.renderedFrame??0,g=m[0].t;if(f>=g)return c;switch(s?(i=h?Math.abs(d*h):Math.max(0,p.data.op-g),r=g+i):((!h||h>m.length-1)&&(h=m.length-1),i=(r=m[h].t)-g),u){case"pingpong":if(Math.floor((g-f)/i)%2==0)return this.getValueAtTime(((g-f)%i+g)/d,0);break;case"offset":{let t=this.getValueAtTime(g/d,0),e=this.getValueAtTime(r/d,0),s=this.getValueAtTime((i-(g-f)%i+g)/d,0),h=Math.floor((g-f)/i)+1;if(tz(c)&&tz(t)&&tz(e)&&tz(s)){for(a=0,n=(o=Array.from({length:t.length})).length;a<n;a+=1)o[a]=s[a]-(e[a]-t[a])*h;return o}return s-(e-t)*h}case"continue":{let t=this.getValueAtTime(g/d,0),e=this.getValueAtTime((g+.001)/d,0);if(tz(c)&&tz(t)&&tz(e)){for(a=0,n=(o=Array.from({length:t.length})).length;a<n;a+=1)o[a]=t[a]+(t[a]-e[a])*(g-f)/.001;return o}return t+(t-e)*(g-f)/.001}}return this.getValueAtTime((i-((g-f)%i+g))/d,0)}function rO(t,e){let s,{comp:i,k:r,pv:a}=this;if(!r)return a;let{renderedFrame:n=0}=i??{renderedFrame:0},{frameRate:o}=i?.globalData??{frameRate:60},h=.5*(t||.4),l=Math.floor(e||5);if(l<=1)return a;let p=n/o,m=p-h,c=l>1?(p+h-m)/(l-1):1,d=0,u,f;for(f=tz(a)?e$(F.Float32,a.length):0;d<l;){if(s=this.getValueAtTime(m+d*c),tz(a)&&tz(f)&&tz(s))for(u=0;u<a.length;u++)f[u]+=s[u];else f+=s;d++}if(tz(a)&&tz(f))for(u=0;u<a.length;u+=1)f[u]/=l;else f/=l;return f}function rG(t){this._transformCachingAtTime=this._transformCachingAtTime??{v:new eN};let{v:e}=this._transformCachingAtTime,{mult:s=1}=this.a??{mult:1},{mult:i=1}=this.s??{mult:1};if(e.cloneFromProps(this.pre.props),this.appliedTransformations<1){let i=this.a?.getValueAtTime(t)??[0,0,0];e.translate(-i[0]*s,-i[1]*s,i[2]*s)}if(this.appliedTransformations<2){let s=this.s?.getValueAtTime(t)??[0,0,0];e.scale(s[0]*i,s[1]*i,s[2]*i)}if(this.sk&&this.appliedTransformations<3){let s=this.sk.getValueAtTime(t),i=this.sa?.getValueAtTime(t)??0;e.skewFromAxis(-s*(this.sk.mult??1),i*(this.sa?.mult??1))}if(this.r&&this.appliedTransformations<4){let s=this.r.getValueAtTime(t);e.rotate(-s*(this.r.mult??1))}else if(!this.r&&this.appliedTransformations<4){let s=Number(this.rz?.getValueAtTime(t)),i=Number(this.ry?.getValueAtTime(t)),r=Number(this.rx?.getValueAtTime(t)),a=this.or?.getValueAtTime(t)??[];e.rotateZ(-s*(this.rz?.mult??1)).rotateY(i*(this.ry?.mult??1)).rotateX(r*(this.rx?.mult??1)).rotateZ(-a[2]*(this.or?.mult??1)).rotateY(a[1]*(this.or?.mult??1)).rotateX(a[0]*(this.or?.mult??1))}if(this.data.p?.s){let s=this.px?.getValueAtTime(t),i=this.py?.getValueAtTime(t);if(this.data.p.z){let r=this.pz?.getValueAtTime(t);e.translate(s*(this.px?.mult??1),i*(this.py?.mult??1),-r*(this.pz?.mult??1))}else e.translate(s*(this.px?.mult??1),i*(this.py?.mult??1),0)}else{let s=this.p?.getValueAtTime(t)??[0,0,0];e.translate(s[0]*(this.p?.mult??1),s[1]*(this.p?.mult??1),-s[2]*(this.p?.mult??1))}return e}function rq(){return this.v.clone(new eN)}function rj(t){this._cachingAtTime=this._cachingAtTime??{lastIndex:0,lastTime:-999999,shapeValue:sy.clone(this.pv)};let e=t;return e*=this.elem?.globalData?.frameRate??60,(e-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<e?this._caching?.lastIndex??0:0,this._cachingAtTime.lastTime=e,this.interpolateShape(e,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}class rW{constructor(t){this.comp=t,this._name=t.data?.nm,this.layer=this,this.height=t.data?.h||t.globalData?.compSize?.h,this.width=t.data?.w||t.globalData?.compSize?.w,this.pixelAspect=1,this.frameDuration=1/(t.globalData?.frameRate??60),this.displayStartTime=0,this.numLayers=t.layers?.length}getInterface(t){let e=0,{length:s}=this.comp.layers??[];for(;e<s;){if(this.comp.layers?.[e].nm===t||this.comp.layers?.[e].ind===t)return this.comp.elements[e].layerInterface;e++}return null}}let{resetFrame:rH}=rN;class rY{completeProperty(t,e,s){Object.defineProperty(t,"velocity",{get:()=>e.getVelocityAtTime(e.comp.currentFrame)}),t.numKeys=e.keyframes?e.keyframes.length:0,t.key=function(i){if(!t.numKeys)return 0;let r="";r="s"in e.keyframes[i-1]?e.keyframes[i-1].s:"e"in e.keyframes[i-2]?e.keyframes[i-2].e:e.keyframes[i-2].s;let a="unidimensional"===s?new Number(r):{...r};return a.time=e.keyframes[i-1].t/e.elem.comp.globalData.frameRate,a.value="unidimensional"===s?r[0]:r,a},t.valueAtTime=e.getValueAtTime,t.speedAtTime=e.getSpeedAtTime,t.velocityAtTime=e.getVelocityAtTime,t.propertyGroup=e.propertyGroup}defaultGetter(){return this.defaultUnidimensionalValue}getInterface(t){return t?t.propType===V.UniDimensional?this.UnidimensionalPropertyInterface(t):this.MultidimensionalPropertyInterface(t):this.defaultGetter}MultidimensionalPropertyInterface(t){t&&"pv"in t||(t=this.defaultMultidimensionalValue);let e=1/t.mult,s=t.data?.l||t.pv.length,i=e$(F.Float32,s),r=e$(F.Float32,s);return i.value=r,this.completeProperty(i,t,"multidimensional"),function(){t.k&&t.getValue();for(let a=0;a<s;a+=1)r[a]=t.v[a]*e,i[a]=r[a];return i}}UnidimensionalPropertyInterface(t){t&&"pv"in t||(t=this.defaultUnidimensionalValue);let e=1/t.mult,s=t.pv*e,i=new Number(s);return i.value=s,this.completeProperty(i,t,V.UniDimensional),()=>(t.k&&t.getValue(),s=t.v*e,i.value!==s&&((i=new Number(s)).value=s,i[0]=s,this.completeProperty(i,t,V.UniDimensional)),i)}constructor(){this.defaultMultidimensionalValue={mult:1,pv:[0,0,0],v:[0,0,0]},this.defaultUnidimensionalValue={mult:1,pv:0,v:0}}}function rU(t){return new rY().getInterface(t)}class rX{constructor(t,e){this.interfaceFunction=t,this.parentPropertyGroup=e}getInterface(t=1){return t<=0?this.interfaceFunction:this.parentPropertyGroup(t-1)}}class rJ{constructor(t,e){this._name=t,this.propertyGroup=e}getInterface(t){return t<=0?this:this.propertyGroup(t-1)}}class rZ{get numProperties(){return this.effects.length}constructor(t,e){this.effects=t,this.effectElements=e}getInterface(t){let e=0,{length:s}=this.effects;for(;e<s;){if(t===this.effects[e].nm||t===this.effects[e].mn||t===this.effects[e].ix)return this.effectElements[e];e++}return null}}class rK{get maskOpacity(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}get maskPath(){return this._mask.prop?.k&&this._mask.prop.getValue(),this._mask.prop}constructor(t,e){this._mask=t,this._data=e}}class rQ{constructor(t,e){this.maskManager=t,this._masksInterfaces=eL(t.viewData.length);let{length:s}=t.viewData;for(let e=0;e<s;e++)this._masksInterfaces[e]=new rK(t.viewData[e],t.masksProperties[e])}getInterface(t){let e=0;for(;e<length;){if(this.maskManager.masksProperties[e].nm===t)return this._masksInterfaces[e];e++}return null}}class r0{get anchorPoint(){return rU(this.transform.a)}get opacity(){return rU(this.transform.o)}get orientation(){return rU(this.transform.or)}get position(){return this.transform.p?this._transformFactory?.():[this._px?.(),this._py?.(),this._pz?.()??0]}get rotation(){return rU(this.transform.r??this.transform.rz)}get scale(){return rU(this.transform.s)}get skew(){return rU(this.transform.sk)}get skewAxis(){return rU(this.transform.sa)}get xPosition(){return rU(this.transform.px)}get xRotation(){return rU(this.transform.rx)}get yPosition(){return rU(this.transform.py)}get yRotation(){return rU(this.transform.ry)}get zPosition(){return rU(this.transform.pz)}get zRotation(){return rU(this.transform.rz??this.transform.r)}constructor(t){this.transform=t,t.p?this._transformFactory=rU(t.p):(this._px=rU(t.px),this._py=rU(t.py),t.pz&&(this._pz=rU(t.pz)))}getInterface(t){switch(t){case"scale":case"Scale":case"ADBE Scale":case 6:return this.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return this.rotation;case"ADBE Rotate X":return this.xRotation;case"ADBE Rotate Y":return this.yRotation;case"position":case"Position":case"ADBE Position":case 2:return this.position;case"ADBE Position_0":return this.xPosition;case"ADBE Position_1":return this.yPosition;case"ADBE Position_2":return this.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return this.anchorPoint;case"opacity":case"Opacity":case 11:return this.opacity;default:return null}}}class r1{getInterface(t){throw Error("Method not implemented")}}class r2 extends r1{getInterface(t){let e=0,{length:s}=this.interfaces;for(;e<s;){if(this.interfaces[e]._name===t||this.interfaces[e].mn===t||this.interfaces[e].propertyIndex===t||this.interfaces[e].ix===t||this.interfaces[e].ind===t)return this.interfaces[e];e++}return"number"==typeof t?this.interfaces[t-1]:null}constructor(...t){super(...t),this.interfaces=[]}}class r3 extends r1{get position(){return rU(this.prop.p)}get size(){return rU(this.prop.s)}getInterface(t){return this.shape?.p?.ix===t?this.position:this.shape?.s?.ix===t?this.size:null}}class r5 extends r1{get color(){return rU(this.c)}get opacity(){return rU(this.o)}getInterface(t){return"Color"===t||"color"===t?this.color:"Opacity"===t||"opacity"===t?this.opacity:null}}class r4 extends r1{get endPoint(){return rU(this.view.e)}get opacity(){return rU(this.view.o)}get startPoint(){return rU(this.view.s)}get type(){return"a"}getInterface(t){return"Start Point"===t||"start point"===t?this.startPoint:"End Point"===t||"end point"===t?this.endPoint:"Opacity"===t||"opacity"===t?this.opacity:null}}class r6 extends r1{get _name(){return this.shape?.nm}getInterface(t){switch(t){case"ADBE Vectors Group":case"Contents":case 2:return this.content;default:return this.transform}}}class r9 extends r1{get position(){return rU(this.prop.p)}get roundness(){return rU(this.prop.r)}get size(){return rU(this.prop.s)}getInterface(t){return this.shape?.p?.ix===t?this.position:this.shape?.r?.ix===t?this.roundness:this.shape?.s?.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?this.size:null}}class r8{get path(){return this.prop?.k&&this.prop.getValue(),this.prop}get shape(){return this.path}constructor(t,e,s){this.prop=e.sh;let i=new rX(this,s);this.prop?.setGroupProperty(new rJ("Path",i)),this._name=t.nm,this.ix=t.ix,this.mn=t.mn,this.propertyGroup=s,this.propertyIndex=t.ix}getInterface(t){return"Shape"===t||"shape"===t||"Path"===t||"path"===t||"ADBE Vector Shape"===t||2===t?this.path:null}}class r7 extends r1{get innerRadius(){return rU(this.prop.ir)}get innerRoundness(){return rU(this.prop.is)}get outerRadius(){return rU(this.prop.or)}get outerRoundness(){return rU(this.prop.os)}get points(){return rU(this.prop.pt)}get position(){return rU(this.prop.p)}get rotation(){return rU(this.prop.r)}getInterface(t){return this.shape?.p?.ix===t?this.position:this.shape?.r?.ix===t?this.rotation:this.shape?.pt?.ix===t?this.points:this.shape?.or?.ix===t||"ADBE Vector Star Outer Radius"===t?this.outerRadius:this.shape?.os?.ix===t?this.outerRoundness:this.shape?.ir?.ix===t||"ADBE Vector Star Inner Radius"===t?this.innerRadius:this.shape?.is?.ix===t?this.innerRoundness:null}}class at extends r1{get color(){return rU(this.view?.c)}get dash(){return this.dashOb}get opacity(){return rU(this.view?.o)}get strokeWidth(){return rU(this.view?.w)}getInterface(t){return"Color"===t||"color"===t?this.color:"Opacity"===t||"opacity"===t?this.opacity:"Stroke Width"===t||"stroke width"===t?this.strokeWidth:null}}class ae extends r1{get anchorPoint(){return rU(this.view?.transform?.mProps.a)}get opacity(){return rU(this.view?.transform?.mProps.o)}get position(){return rU(this.view?.transform?.mProps.p)}get rotation(){return rU(this.view?.transform?.mProps.r)}get scale(){return rU(this.view?.transform?.mProps.s)}get skew(){return rU(this.view?.transform?.mProps.sk)}get skewAxis(){return rU(this.view?.transform?.mProps.sa)}getInterface(t){return this.shape?.a?.ix===t||"Anchor Point"===t?this.anchorPoint:this.shape?.o?.ix===t||"Opacity"===t?this.opacity:this.shape?.p?.ix===t||"Position"===t?this.position:this.shape?.r?.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?this.rotation:this.shape?.s?.ix===t||"Scale"===t?this.scale:this.shape?.sk&&this.shape.sk.ix===t||"Skew"===t?this.skew:this.shape?.sa&&this.shape.sa.ix===t||"Skew Axis"===t?this.skewAxis:null}}class as extends r1{get end(){return rU(this.view?.e)}get offset(){return rU(this.view?.o)}get start(){return rU(this.view?.s)}getInterface(t){return t===this.shape?.e?.ix||"End"===t||"end"===t?this.end:t===this.shape?.s?.ix?this.start:t===this.shape?.o?.ix?this.offset:null}}let ai={comp:rW,effects:class{createEffectsInterface(t,e){if(t.effectsManager){this.effectsData=t.data?.ef??[];let{length:s}=t.effectsManager.effectElements;for(let i=0;i<s;i++)this.effectElements.push(this.createGroupInterface(this.effectsData[i],t.effectsManager.effectElements[i],e,t));return this.effects=t.data?.ef??[],new rZ(this.effects,this.effectElements)}return null}createGroupInterface(t,e,s,i){let r=e=>{let s=t.ef??[],i=0,{length:r}=s;for(;i<r;){if(e===s[i].nm||e===s[i].mn||e===s[i].ix){if(5===s[i].ty)return this.effectElements[i];return this.effectElements[i]()}i++}throw Error()},a=new rX(r,s),{length:n}=t.ef??[];for(let s=0;s<n;s+=1)t.ef?.[s].ty===5?this.effectElements.push(this.createGroupInterface(t.ef[s],e.effectElements[s],e.effectElements[s].propertyGroup,i)):this.effectElements.push(this.createValueInterface(e.effectElements[s],t.ef[s].ty,i,a));return"ADBE Color Control"===t.mn&&Object.defineProperty(r,"color",{get(){return this.effectElements[0]()}}),Object.defineProperties(r,{_name:{value:t.nm},numProperties:{get:()=>t.np},propertyGroup:{value:a}}),r.enabled=0!==t.en,r.active=r.enabled,r}createValueInterface(t,e,s,i){let r=rU(t.p);return t.p?.setGroupProperty(new rJ("",i)),function(){return 10===e?s.comp?.compInterface?.getInterface(t.p?.v):r()}}constructor(){this.effectElements=[],this.effects=[],this.effectsData=[]}},footage:class{constructor(t){this.currentPropertyName="",this.elem=t,this._name="Data",this.dataInterface=this.dataInterfaceFactory(t)}dataInterfaceFactory(t){return this._name="Outline",this.outlineInterface=this.outlineInterfaceFactory(t),this}getInterface(t){return"Data"===t?this.dataInterface:"Outline"===t?void this.outlineInterface():null}init(){return this.currentPropertyName="",this.currentProperty=this.elem.getFootageData(),this.searchProperty}outlineInterface(t){throw Error("Method is not implemented")}outlineInterfaceFactory(t){return this.currentPropertyName="",this.currentProperty=t.getFootageData(),this.elem=t,this.init}searchProperty(t){if(this.currentProperty?.[t])return(this.currentPropertyName=t,this.currentProperty=this.currentProperty[t],"object"==typeof this.currentProperty)?this.searchProperty:this.currentProperty;let e=t.indexOf(this.currentPropertyName);if(-1!==e){let s=parseInt(t.slice(e+this.currentPropertyName.length),10);return(this.currentProperty=this.currentProperty?.[s],"object"==typeof this.currentProperty)?this.searchProperty:this.currentProperty}return""}},layer:class{get active(){return this._elem.isInRange}get hasParent(){return!!this._elem.hierarchy?.length}get parent(){return this._elem.hierarchy?.[0].layerInterface}get transform(){return this.transformInterface}constructor(t){if(this.sourceRectAtTime=t.sourceRectAtTime.bind(t),this._elem=t,!t.finalTransform)throw Error(`FinalTransform is not iplemented in ${t.constructor.name}`);this.transformInterface=new r0(t.finalTransform.mProp);let{anchorPoint:e,opacity:s,position:i,rotation:r,scale:a}=this.transformInterface;this.anchor_point=e,this.anchorPoint=e,this.opacity=s,this.position=i,this.rotation=r,this.scale=a,this.toComp=this.toWorld;let{frameRate:n}=t.comp?.globalData??{frameRate:60};this.startTime=t.data.st,this.index=t.data.ind,this.source=t.data.refId,this.height=0===t.data.ty?t.data.h:100,this.width=0===t.data.ty?t.data.w:100,this.inPoint=t.data.ip/n,this.outPoint=t.data.op/n,this._name=t.data.nm}applyPoint(t,e){if(this._elem.hierarchy?.length){let{length:e}=this._elem.hierarchy;for(let s=0;s<e;s++)this._elem.hierarchy[s].finalTransform?.mProp.applyToMatrix(t)}return t.applyToPointArray(e[0],e[1],e[2]||0)}fromComp(t){let e=new eN;if(e.reset(),this._elem.finalTransform?.mProp.applyToMatrix(e),this._elem.hierarchy?.length){let t,s=this._elem.hierarchy.length;for(t=0;t<s;t+=1)this._elem.hierarchy[t].finalTransform?.mProp.applyToMatrix(e)}return e.inversePoint(t)}fromWorld(t,e){let s=this.getMatrix(e);return this.invertPoint(s,t)}fromWorldVec(t,e){let s=this.getMatrix(e);return s.props[12]=0,s.props[13]=0,s.props[14]=0,this.invertPoint(s,t)}getInterface(t){switch(t){case"ADBE Root Vectors Group":case"Contents":case 2:return this.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return this.transformInterface;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return this.effect;case"ADBE Text Properties":return this.textInterface;default:return null}}getMatrix(t){let e=new eN;if(void 0===t){let t=this._elem.finalTransform?.mProp;t?.applyToMatrix(e)}else(this._elem.finalTransform?.mProp.getValueAtTime(t)).clone(e);return e}invertPoint(t,e){if(this._elem.hierarchy?.length){let{length:e}=this._elem.hierarchy;for(let s=0;s<e;s++)this._elem.hierarchy[s].finalTransform?.mProp.applyToMatrix(t)}return t.inversePoint(e)}registerEffectsInterface(t){this.effect=t}registerMaskInterface(t){this.mask=new rQ(t,this._elem)}sampleImage(){return[1,1,1,1]}toComp(t,e){throw Error("Method is not implemented")}toWorld(t,e){let s=this.getMatrix(e);return this.applyPoint(s,t)}toWorldVec(t,e){let s=this.getMatrix(e);return s.props[12]=0,s.props[13]=0,s.props[14]=0,this.applyPoint(s,t)}},shape:class{constructor(t,e,s){this.arr=[],this.parentGroup=s,this.propertyGroup=new rX(this,this.parentGroupWrapper),this.interfaces=this.iterateElements(t,e,this.propertyGroup),this.numProperties=this.interfaces.length,this._name="Contents"}contentsInterfaceFactory(t,e,s){r2.prototype.propertyGroup=new rX(r2,s),this.interfaces=this.iterateElements(t.it,e.it,r2.prototype.propertyGroup),r2.prototype.numProperties=this.interfaces.length;let i=this.transformInterfaceFactory(t.it[t.it.length-1],e.it[e.it.length-1],r2.prototype.propertyGroup);return r2.prototype.transform=i,r2.prototype.propertyIndex=t.cix,r2.prototype._name=t.nm,r2.prototype.getInterface}defaultInterfaceFactory(){return this.noOp}ellipseInterfaceFactory(t,e,s){let i=new rX(r3,s);r3.prototype.shape=t,r3.prototype.propertyIndex=t.ix;let r=e.sh?.ty===N.Trim?e.sh.prop:e.sh;return r.s.setGroupProperty(new rJ("Size",i)),r.p.setGroupProperty(new rJ("Position",i)),r3.prototype._name=t.nm,r3.prototype.prop=r,r3.prototype.mn=t.mn,r3.prototype.getInterface}fillInterfaceFactory(t,e,s){return r5.prototype._name=t.nm,r5.prototype.c=e.c,r5.prototype.mn=t.mn,r5.prototype.o=e.o,e.c?.setGroupProperty(new rJ("Color",s)),e.o?.setGroupProperty(new rJ("Opacity",s)),r5.prototype.getInterface}getInterface(t){let e=t;if("number"==typeof e)return 0===(e=void 0===t?1:t)?propertyGroup:this.interfaces[e-1];let s=0,i=this.interfaces.length;for(;s<i;){if(this.interfaces[s]._name===e)return this.interfaces[s];s+=1}return null}gradientFillInterfaceFactory(t,e,s){return r4.prototype._name=t.nm,r4.prototype.view=e,r4.prototype.mn=t.mn,e.s?.setGroupProperty(new rJ("Start Point",s)),e.e?.setGroupProperty(new rJ("End Point",s)),e.o?.setGroupProperty(new rJ("Opacity",s)),r4.prototype.getInterface}groupInterfaceFactory(t,e,s){r6.prototype.propertyGroup=new rX(r6,s);let i=this.contentsInterfaceFactory(t,e,r6.prototype.propertyGroup),r=this.transformInterfaceFactory(t.it[t.it.length-1],e.it[e.it.length-1],r6.prototype.propertyGroup);return r6.prototype.content=i,r6.prototype.transform=r,r6.prototype.shape=t,r6.prototype.numProperties=t.np,r6.prototype.propertyIndex=t.ix,r6.prototype.nm=t.nm,r6.prototype.mn=t.mn,r6.prototype.getInterface}iterateElements(t,e,s){let i=[],{length:r}=t??[];for(let a=0;a<r;a++)if(t)switch(t[a].ty){case N.Group:i.push(this.groupInterfaceFactory(t[a],e[a],s));break;case N.Fill:i.push(this.fillInterfaceFactory(t[a],e[a],s));break;case N.Stroke:i.push(this.strokeInterfaceFactory(t[a],e[a],s));break;case N.Trim:i.push(this.trimInterfaceFactory(t[a],e[a],s));break;case N.Transform:break;case N.Ellipse:i.push(this.ellipseInterfaceFactory(t[a],e[a],s));break;case N.PolygonStar:i.push(this.starInterfaceFactory(t[a],e[a],s));break;case N.Path:i.push(new r8(t[a],e[a],s));break;case N.Rectangle:i.push(this.rectInterfaceFactory(t[a],e[a],s));break;case N.RoundedCorners:i.push(this.roundedInterfaceFactory(t[a],e[a],s));break;case N.Repeater:i.push(this.repeaterInterfaceFactory(t[a],e[a],s));break;case N.GradientFill:i.push(this.gradientFillInterfaceFactory(t[a],e[a],s));break;default:i.push(this.defaultInterfaceFactory(t[a],e[a],s))}return i}parentGroupWrapper(){return this.parentGroup}rectInterfaceFactory(t,e,s){r9.prototype.shape=t;let i=new rX(r9,s),r=e.sh?.ty===N.Trim?e.sh.prop:e.sh;return r9.prototype.propertyIndex=t.ix,r.p.setGroupProperty(new rJ("Position",i)),r.s.setGroupProperty(new rJ("Size",i)),r.r.setGroupProperty(new rJ("Rotation",i)),r9.prototype.prop=r,r9.prototype._name=t.nm,r9.prototype.mn=t.mn,r9.prototype.getInterface}repeaterInterfaceFactory(t,e,s){function i(e){return t.c?.ix===e||"Copies"===e?i.copies:t.o.ix===e||"Offset"===e?i.offset:null}let r=new rX(i,s);return i.propertyIndex=t.ix,e.c?.setGroupProperty(new rJ("Copies",r)),e.o?.setGroupProperty(new rJ("Offset",r)),Object.defineProperties(i,{_name:{value:t.nm},copies:{get:rU(e.c)},offset:{get:rU(e.o)}}),i.mn=t.mn,i}roundedInterfaceFactory(t,e,s){function i(e){return t.r.ix===e||"Round Corners 1"===e?i.radius:null}let r=new rX(i,s);return i.propertyIndex=t.ix,e.rd.setGroupProperty(new rJ("Radius",r)),Object.defineProperties(i,{_name:{value:t.nm},radius:{get:rU(e.rd)}}),i.mn=t.mn,i}starInterfaceFactory(t,e,s){r7.prototype.shape=t;let i=new rX(r7,s),r=e.sh?.ty===N.Trim?e.sh.prop:e.sh;return r7.prototype.propertyIndex=t.ix,r.or.setGroupProperty(new rJ("Outer Radius",i)),r.os.setGroupProperty(new rJ("Outer Roundness",i)),r.pt.setGroupProperty(new rJ("Points",i)),r.p.setGroupProperty(new rJ("Position",i)),r.r.setGroupProperty(new rJ("Rotation",i)),t.ir&&(r.ir.setGroupProperty(new rJ("Inner Radius",i)),r.is.setGroupProperty(new rJ("Inner Roundness",i))),r7.prototype._name=t.nm,r7.prototype.prop=r,r7.prototype.mn=t.mn,r7.prototype.getInterface}strokeInterfaceFactory(t,e,s){let i,r={},a=new rX(at,s),n=new rX(r,a),o=t.d?t.d.length:0;for(i=0;i<o;i+=1){var h;h=i,Object.defineProperty(r,t.d?.[h].nm,{get:rU(e.d.dataProps[h].p)}),e.d.dataProps[i].p.setGroupProperty(n)}return at.prototype._name=t.nm,at.prototype.mn=t.mn,at.prototype.dashOb=r,at.prototype.view=e,e.c?.setGroupProperty(new rJ("Color",a)),e.o?.setGroupProperty(new rJ("Opacity",a)),e.w?.setGroupProperty(new rJ("Stroke Width",a)),at.prototype.getInterface}transformInterfaceFactory(t,e,s){ae.prototype.shape=t;let i=new rX(ae,s);return e.transform?.mProps.o?.setGroupProperty(new rJ("Opacity",i)),e.transform?.mProps.p?.setGroupProperty(new rJ("Position",i)),e.transform?.mProps.a?.setGroupProperty(new rJ("Anchor Point",i)),e.transform?.mProps.s?.setGroupProperty(new rJ("Scale",i)),e.transform?.mProps.r?.setGroupProperty(new rJ("Rotation",i)),e.transform?.mProps.sk&&(e.transform.mProps.sk.setGroupProperty(new rJ("Skew",i)),e.transform.mProps.sa?.setGroupProperty(new rJ("Skew Angle",i))),e.transform?.op.setGroupProperty(new rJ("Opacity",i)),ae.prototype._name=t.nm,ae.prototype.view=e,ae.prototype.ty=N.Transform,ae.prototype.mn=t.mn,ae.prototype.propertyGroup=s,ae.prototype.getInterface}trimInterfaceFactory(t,e,s){as.prototype.shape=t;let i=new rX(as,s);return as.prototype.propertyIndex=t.ix,e.s?.setGroupProperty(new rJ("Start",i)),e.e?.setGroupProperty(new rJ("End",i)),e.o?.setGroupProperty(new rJ("Offset",i)),as.prototype.propertyIndex=t.ix,as.prototype.propertyGroup=s,as.prototype._name=t.nm,as.prototype.view=e,as.prototype.mn=t.mn,as.prototype.getInterface}noOp(){return null}},text:class{get sourceText(){this.elem.textProperty?.getValue();let t=this.elem.textProperty?.currentData.t;return this._sourceText&&t===this._sourceText.value||(this._sourceText=new String(t),this._sourceText.value=t||new String(t),Object.defineProperty(this._sourceText,"style",{get(){return{fillColor:this.elem.textProperty.currentData.fc}}})),this._sourceText}constructor(t){this.elem=t}getInterface(t){return"ADBE Text Document"===t?this.sourceText:null}}};class ar extends si{addShape(t){if(this.closed)return;t.sh?.container?.addDynamicProperty(t.sh);let e={data:t,localShapeCollection:sv(),shape:t.sh};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}addShapeToModifier(t){throw Error(`${this.constructor.name}: Method addShapeToModifier is not implemented`)}init(t,e,s,i){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=-999999,this.closed=!1,this.k=!1,this.dynamicProperties.length>0?this.k=!0:this.getValue(!0)}initModifierProperties(t,e){throw Error(`${this.constructor.name}: Method initModifierProperties is not implemented`)}isAnimatedWithShape(t){throw Error(`${this.constructor.name}: Method isAnimatedWithShape is not implemented`)}processKeys(){return this.elem?.globalData?.frameId===this.frameId||(this.frameId=this.elem?.globalData?.frameId,this.iterateDynamicProperties()),0}constructor(...t){super(...t),this.shapes=[]}}function aa(t,e,s,i,r,a,n){let o=tN(e,s),h=e.v[s%e._length],l=e.v[0===s?e._length-1:s-1],p=e.v[(s+1)%e._length],m=2===a?Math.sqrt(Math.pow(h[0]-l[0],2)+Math.pow(h[1]-l[1],2)):0,c=2===a?Math.sqrt(Math.pow(h[0]-p[0],2)+Math.pow(h[1]-p[1],2)):0;tK(t,e.v[s%e._length]||[0,0],o,n,i,c/((r+1)*2),m/((r+1)*2))}let an={loadAnimation:function(t){try{let e=new e_;return eF(e,null),e.setParams(t),e}catch(t){throw console.error("AnimationManager:\n",t),Error("Could not load animation")}}},ao=setInterval(function(){th()||"complete"===document.readyState&&(clearInterval(ao),function(){if(th())return;let t=[...document.getElementsByClassName("lottie"),...document.getElementsByClassName("bodymovin")],{length:e}=t;for(let s=0;s<e;s++)!function(t,e){try{if(!t)return null;let s=0;for(;s<ek;){if(eM[s].elem===t&&null!==eM[s].elem)return eM[s].animation;s++}let i=new e_;eF(i,t),i.setData(t,e)}catch(t){throw console.error("AnimationManager:\n",t),Error("Could not register animation")}}(t[s],void 0)}())},100);G(L.Canvas,class extends i4{constructor(t,e){super(),this.animationItem=t,this.renderConfig={className:e?.className||"",clearCanvas:e?.clearCanvas??!0,contentVisibility:e?.contentVisibility||"visible",context:e?.context??null,dpr:e?.dpr??1,id:e?.id||"",imagePreserveAspectRatio:e?.imagePreserveAspectRatio||$.Cover,preserveAspectRatio:e?.preserveAspectRatio||$.Contain,progressiveLoad:!!e?.progressiveLoad,runExpressions:e?.runExpressions??!0},this.animationItem.wrapper&&(this.renderConfig.dpr=e?.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={_mdf:!1,currentGlobalAlpha:-1,frameNum:-1,renderConfig:this.renderConfig},this.contextData=new i8,this.elements=[],this.pendingElements=[],this.transformMat=new eN,this.completeLayers=!1,this.rendererType=L.Canvas,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))}createComp(t){if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);return new i6(t,this.globalData,this)}}),G(L.HTML,class extends ra{createComp(t){if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);return this.supports3d?new rn(t,this.globalData,this):new i3(t,this.globalData,this)}}),G(L.SVG,i5),ik(I.TrimModifier,class extends ar{addPaths(t,e){let{length:s}=t;for(let i=0;i<s;i++)e.addShape(t[i])}addSegment(t,e,s,i,r,a,n){r.setXYAt(e[0],e[1],"o",a),r.setXYAt(s[0],s[1],"i",a+1),n&&r.setXYAt(t[0],t[1],"v",a),r.setXYAt(i[0],i[1],"v",a+1)}addSegmentFromArray(t,e,s,i){e.setXYAt(t[1],t[5],"o",s),e.setXYAt(t[2],t[6],"i",s+1),i&&e.setXYAt(t[0],t[4],"v",s),e.setXYAt(t[3],t[7],"v",s+1)}addShapes(t,e,s){let i=s,{pathsData:r=[],shape:a}=t,n=a?.paths?.shapes??[],o=a?.paths?._length||0,h,l,p=0,m,c,d,u=[],f,g=!0;i?(c=i._length,f=i._length):(i=su(),c=0,f=0),i&&u.push(i);for(let t=0;t<o;t++){if(!i)continue;let{lengths:s}=r[t];for(h=1,i.c=n[t].c,l=n[t].c?s.length:s.length+1;h<l;h++){if(p+(m=s[h-1]).addedLength<e.s){p+=m.addedLength,i.c=!1;continue}if(p>e.e){i.c=!1;break}e.s<=p&&e.e>=p+m.addedLength?(this.addSegment(n[t].v[h-1],n[t].o[h-1],n[t].i[h],n[t].v[h],i,c,g),g=!1):(d=e1(n[t].v[h-1],n[t].v[h],n[t].o[h-1],n[t].i[h],(e.s-p)/m.addedLength,(e.e-p)/m.addedLength,s[h-1]),this.addSegmentFromArray(d,i,c,g),g=!1,i.c=!1),p+=m.addedLength,c++}if(n[t].c&&s.length>0){if(m=s[h-1],p<=e.e){let r=s[h-1].addedLength;e.s<=p&&e.e>=p+r?(this.addSegment(n[t].v[h-1],n[t].o[h-1],n[t].i[0],n[t].v[0],i,c,g),g=!1):(d=e1(n[t].v[h-1],n[t].v[0],n[t].o[h-1],n[t].i[0],(e.s-p)/r,(e.e-p)/r,s[h-1]),this.addSegmentFromArray(d,i,c,g),g=!1,i.c=!1)}else i.c=!1;p+=m.addedLength,c++}if(i._length&&(i.setXYAt(i.v[f][0],i.v[f][1],"i",f),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),p>e.e)break;t<o-1&&(i=su(),g=!0,i&&u.push(i),c=0)}return u}addShapeToModifier(t){t.pathsData=[]}calculateShapeEdges(t,e,s,i,r){let a=[];e<=1?a.push({e,s:t}):t>=1?a.push({e:e-1,s:t-1}):a.push({e:1,s:t},{e:e-1,s:0});let n=[],{length:o}=a;for(let t=0;t<o;t++)if(!(a[t].e*r<i||a[t].s*r>i+s)){let e,o;e=a[t].s*r<=i?0:(a[t].s*r-i)/s,o=a[t].e*r>=i+s?1:(a[t].e*r-i)/s,n.push([e,o])}return 0===n.length&&n.push([0,0]),n}initModifierProperties(t,e){this.s=sp.getProp(t,e.s,0,.01,this),this.e=sp.getProp(t,e.e,0,.01,this),this.o=sp.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=this.s.effectsSequence.length>0||this.e.effectsSequence.length>0||this.o.effectsSequence.length>0}processShapes(t){let e,s;if(this._mdf||t){let t=Number(this.o?.v)%360/360;if(t<0&&t++,(e=Number(this.s?.v)>1?1+t:0>Number(this.s?.v)?0+t:Number(this.s?.v)+t)>(s=Number(this.e?.v)>1?1+t:0>Number(this.e?.v)?0+t:Number(this.e?.v)+t)){let t=e;e=s,s=t}e=1e-4*Math.round(1e4*e),s=1e-4*Math.round(1e4*s),this.sValue=e,this.eValue=s}else e=this.sValue||0,s=this.eValue||0;let i,r,a,n,o,h,l=0,{length:p}=this.shapes;if(s===e)for(let t=0;t<p;t++){this.shapes[t].localShapeCollection?.releaseShapes();let{shape:e}=this.shapes[t];e&&(e._mdf=!0,e.paths=this.shapes[t].localShapeCollection),this._mdf&&(this.shapes[t].pathsData.length=0)}else if((1!==s||0!==e)&&(0!==s||1!==e)){let m,c,d=[];for(let e=0;e<p;e++)if(m=this.shapes[e],m.shape?._mdf||this._mdf||t||2===this.m){if(i=m.shape?.paths,a=i?._length||0,h=0,!m.shape?._mdf&&m.pathsData?.length)h=m.totalShapeLength;else{for(r=0,n=this.releasePathsData(m.pathsData);r<a;r++)i&&(o=e2(i.shapes[r]),n.push(o),h+=o.totalLength);m.totalShapeLength=h,m.pathsData=n}l+=Number(h),m.shape&&(m.shape._mdf=!0)}else m.shape&&(m.shape.paths=m.localShapeCollection);let u=e,f=s,g=0,y;for(let t=p-1;t>=0;t--)if(m=this.shapes[t],m.shape?._mdf){if(!(c=m.localShapeCollection))throw Error(`${this.constructor.name}: Could not set localShapeCollection`);for(c.releaseShapes(),2===this.m&&p>1?(y=this.calculateShapeEdges(e,s,m.totalShapeLength||0,g,l),g+=Number(m.totalShapeLength)):y=[[u,f]],a=y.length,r=0;r<a;r++){u=y[r][0],f=y[r][1],d.length=0,f<=1?d.push({e:Number(m.totalShapeLength)*f,s:Number(m.totalShapeLength)*u}):u>=1?d.push({e:Number(m.totalShapeLength)*(f-1),s:Number(m.totalShapeLength)*(u-1)}):d.push({e:Number(m.totalShapeLength),s:Number(m.totalShapeLength)*u},{e:Number(m.totalShapeLength)*(f-1),s:0});let t=this.addShapes(m,d[0]);if(d[0].s!==d[0].e){if(d.length>1){let e=m.shape.paths?.shapes[m.shape.paths._length-1];if(e?.c){let e=t.pop();this.addPaths(t,c),t=this.addShapes(m,d[1],e)}else this.addPaths(t,c),t=this.addShapes(m,d[1])}this.addPaths(t,c)}}m.shape.paths=c}}else if(this._mdf)for(let t=0;t<p;t++){this.shapes[t].pathsData.length=0;let{shape:e}=this.shapes[t];e&&(e._mdf=!0)}}releasePathsData(t){let{length:e}=t;for(let s=0;s<e;s++)eK.release(t[s]);return t.length=0,t}}),ik(I.PuckerAndBloatModifier,class extends ar{initModifierProperties(t,e){this.getValue=this.processKeys,this.amount=sp.getProp(t,e.a,0,null,this),this._isAnimated=this.amount.effectsSequence.length>0}processPath(t,e){let s,i,r,a,n,o,h,l=e/100,p=[0,0],m=t._length;for(s=0;s<m;s++)p[0]+=t.v[s][0],p[1]+=t.v[s][1];p[0]/=m,p[1]/=m;let c=su();for(s=0,c.c=t.c;s<m;s++)i=t.v[s][0]+(p[0]-t.v[s][0])*l,r=t.v[s][1]+(p[1]-t.v[s][1])*l,a=t.o[s][0]+-((p[0]-t.o[s][0])*l),n=t.o[s][1]+-((p[1]-t.o[s][1])*l),o=t.i[s][0]+-((p[0]-t.i[s][0])*l),h=t.i[s][1]+-((p[1]-t.i[s][1])*l),c.setTripleAt(i,r,a,n,o,h,s);return c}processShapes(t){let{length:e}=this.shapes,s=this.amount?.v;if(0!==s){let i,r,a;for(let n=0;n<e;n++){if(a=(r=this.shapes[n]).localShapeCollection,!(!r.shape?._mdf&&!this._mdf&&!t)){a?.releaseShapes(),r.shape&&(r.shape._mdf=!0),i=r.shape?.paths?.shapes;let t=r.shape?.paths?._length||0;for(let e=0;e<t;e++){let t=i?.[e];t&&a?.addShape(this.processPath(t,s||0))}}r.localShapeCollection&&r.shape&&(r.shape.paths=r.localShapeCollection)}}0===this.dynamicProperties.length&&(this._mdf=!1)}}),ik(I.RepeaterModifier,class extends ar{addShapeToModifier(t){t.pathsData=[]}applyTransforms(t,e,s,i,r,a){if(!i.s||!i.p||!i.a||!i.r)throw Error(`${this.constructor.name}: Missing required data from Transform`);let n=a?-1:1,o=i.s.v[0]+(1-i.s.v[0])*(1-r),h=i.s.v[1]+(1-i.s.v[1])*(1-r);t.translate(i.p.v[0]*n*r,i.p.v[1]*n*r,i.p.v[2]),e.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),e.rotate(-i.r.v*n*r),e.translate(i.a.v[0],i.a.v[1],i.a.v[2]),s.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),s.scale(a?1/o:o,a?1/h:h),s.translate(i.a.v[0],i.a.v[1],i.a.v[2])}changeGroupRender(t,e){let{length:s}=t;for(let i=0;i<s;i++)t[i]._render=e,t[i].ty===N.Group&&this.changeGroupRender(t[i].it,e)}cloneElements(t){let e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e}init(t,e,s,i=[]){if(!Array.isArray(e))throw TypeError(`${this.constructor.name}: Method init, param arr must be array`);let r=Number(s);for(this.elem=t,this.arr=e,this.pos=r,this.elemsData=i,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[r]);r>0;)r--,this._elements.unshift(e[r]);if(this.dynamicProperties.length>0){this.k=!0;return}this.getValue(!0)}initModifierProperties(t,e){this.getValue=this.processKeys,this.c=sp.getProp(t,e.c,0,null,this),this.o=sp.getProp(t,e.o,0,null,this),e.tr&&(this.tr=sQ.getTransformProperty(t,e.tr,this),this.so=sp.getProp(t,e.tr.so,0,.01,this),this.eo=sp.getProp(t,e.tr.eo,0,.01,this)),this.data=e,0===this.dynamicProperties.length&&this.getValue(!0),this._isAnimated=this.dynamicProperties.length>0,this.pMatrix=new eN,this.rMatrix=new eN,this.sMatrix=new eN,this.tMatrix=new eN,this.matrix=new eN}processShapes(t){let e,s;if(!this.data)throw Error(`${this.constructor.name}: data (Shape) is not implemented`);let i,r,a,n,o,h=!1;if(!this._mdf&&!t){for(o=Number(this._currentCopies),a=0,n=1;o;)(i=this.elemsData[a].it)[i.length-1].transform.mProps._mdf=!1,i[i.length-1].transform.op._mdf=!1,o--,a+=n;return h}let l=Math.ceil(Number(this.c?.v));if(this._groups.length<l){for(;this._groups.length<l;){let t={it:this.cloneElements(this._elements),ty:"gr"};t.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:[{e:0,s:0,t:0},{e:0,s: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:N.Transform}),this.arr.splice(0,0,t),this._groups.splice(0,0,t),this._currentCopies?this._currentCopies++:this._currentCopies=1}this.elem?.reloadShapes(),h=!0}o=0;let p=this._groups.length-1;for(a=0;a<=p-1;a++){if(e=o<l,this._groups[a]&&(this._groups[a]._render=e),this.changeGroupRender(this._groups[a].it??[],e),!e){let t=this.elemsData[a].it,e=t[t.length-1];0===e.transform.op.v?e.transform.op._mdf=!1:(e.transform.op._mdf=!0,e.transform.op.v=0)}o++}if(this._currentCopies=l,!this.matrix||!this.pMatrix||!this.rMatrix||!this.sMatrix||!this.tMatrix)throw Error(`${this.constructor.name}: Could not set Matrix`);if(!this.tr)throw Error(`${this.constructor.name}: Transformproperty is not set`);let m=Number(this.o?.v),c=m%1,d=m>0?Math.floor(m):Math.ceil(m),u=this.pMatrix.props,f=this.rMatrix.props,g=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();let y=0;if(m>0){for(;y<d;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),y++;c&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,c,!1),y+=c)}else if(m<0){for(;y>d;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),y--;c&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-c,!0),y-=c)}for(a=1===this.data.m?0:this._currentCopies-1,n=1===this.data.m?1:-1,o=this._currentCopies;o;){let{length:t}=r=(i=this.elemsData[a].it)[i.length-1].transform.mProps.v.props;if(i[i.length-1].transform.mProps._mdf=!0,i[i.length-1].transform.op._mdf=!0,i[i.length-1].transform.op.v=1===this._currentCopies?Number(this.so?.v):Number(this.so?.v)+(Number(this.eo?.v)-Number(this.so?.v))*(a/(this._currentCopies-1)),0===y)for(this.matrix.reset(),s=0;s<t;s++)r[s]=this.matrix.props[s];else{for((0!==a&&1===n||a!==this._currentCopies-1&&-1===n)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.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]),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(u[0],u[1],u[2],u[3],u[4],u[5],u[6],u[7],u[8],u[9],u[10],u[11],u[12],u[13],u[14],u[15]),s=0;s<t;s++)r[s]=this.matrix.props[s];this.matrix.reset()}y++,o--,a+=n}return h}resetElements(t){let{length:e}=t;for(let s=0;s<e;s++){t[s]._processed=!1;let{it:e}=t[s];t[s].ty===N.Group&&e&&this.resetElements(e)}}constructor(...t){super(...t),this.arr=[],this.elemsData=[],this._elements=[],this._groups=[]}}),ik(I.RoundCornersModifier,class extends ar{initModifierProperties(t,e){this.getValue=this.processKeys,this.rd=sp.getProp(t,e.r,0,null,this),this._isAnimated=this.rd.effectsSequence.length>0}processPath(t,e){let s=su();s.c=t.c;let i=t._length,r,a,n,o,h,l,p=0,m,c,d,u,f,g;for(let y=0;y<i;y++)r=t.v[y],n=t.o[y],a=t.i[y],r[0]===n[0]&&r[1]===n[1]&&r[0]===a[0]&&r[1]===a[1]?0!==y&&y!==i-1||t.c?(o=0===y?t.v[i-1]:t.v[y-1],l=(h=Math.sqrt(Math.pow(r[0]-o[0],2)+Math.pow(r[1]-o[1],2)))?Math.min(h/2,e)/h:0,m=f=r[0]+(o[0]-r[0])*l,c=g=r[1]-(r[1]-o[1])*l,d=m-(m-r[0])*.5519,u=c-(c-r[1])*.5519,s.setTripleAt(m,c,d,u,f,g,p),p++,o=y===i-1?t.v[0]:t.v[y+1],l=(h=Math.sqrt(Math.pow(r[0]-o[0],2)+Math.pow(r[1]-o[1],2)))?Math.min(h/2,e)/h:0,m=d=r[0]+(o[0]-r[0])*l,c=u=r[1]+(o[1]-r[1])*l,f=m-(m-r[0])*.5519,g=c-(c-r[1])*.5519,s.setTripleAt(m,c,d,u,f,g,p)):s.setTripleAt(r[0],r[1],n[0],n[1],a[0],a[1],p):s.setTripleAt(t.v[y][0],t.v[y][1],t.o[y][0],t.o[y][1],t.i[y][0],t.i[y][1],p),p++;return s}processShapes(t){let{length:e}=this.shapes,s=this.rd?.v;if(0!==s){let i,r,a;for(let n=0;n<e;n++){if(a=(i=this.shapes[n]).localShapeCollection,!(!i.shape?._mdf&&!this._mdf&&!t)){a?.releaseShapes(),i.shape&&(i.shape._mdf=!0),r=i.shape?.paths?.shapes??[];let t=i.shape?.paths?._length||0;for(let e=0;e<t;e++)a?.addShape(this.processPath(r[e],s))}i.shape&&(i.shape.paths=i.localShapeCollection)}}0===this.dynamicProperties.length&&(this._mdf=!1)}}),ik(I.ZigZagModifier,class extends ar{initModifierProperties(t,e){this.getValue=this.processKeys,this.amplitude=sp.getProp(t,e.s,0,null,this),this.frequency=sp.getProp(t,e.r,0,null,this),this.pointsType=sp.getProp(t,e.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length>0||this.frequency.effectsSequence.length>0||this.pointsType.effectsSequence.length>0}processPath(t,e,s,i){let r=t._length,a=su();if(a.c=t.c,t.c||(r-=1),0===r)return a;let n=-1,o=ts(t,0);aa(a,t,0,e,s,i,n);for(let h=0;h<r;h++)n=function(t,e,s,i,r,a){let n=a;for(let a=0;a<i;a++){let o=(a+1)/(i+1),h=2===r?Math.sqrt(Math.pow(e.points[3][0]-e.points[0][0],2)+Math.pow(e.points[3][1]-e.points[0][1],2)):0,l=e.normalAngle(o);tK(t,e.point(o),l,n,s,h/((i+1)*2),h/((i+1)*2)),n=-n}return n}(a,o,e,s,i,-n),o=h!==r-1||t.c?ts(t,(h+1)%r):null,aa(a,t,h+1,e,s,i,n);return a}processShapes(t){let e=Number(this.amplitude?.v),s=Math.max(0,Math.round(Number(this.frequency?.v))),i=Number(this.pointsType?.v);if(0!==e){let r,a,n,{length:o}=this.shapes;for(let h=0;h<o;h++){if(a=(r=this.shapes[h]).localShapeCollection,!(!r.shape?._mdf&&!this._mdf&&!t)){a?.releaseShapes(),r.shape&&(r.shape._mdf=!0),n=r.shape?.paths?.shapes??[];let{_length:t}=r.shape?.paths??{_length:0};for(let r=0;r<t;r++)a?.addShape(this.processPath(n[r],e,s,i))}r.shape&&(r.shape.paths=r.localShapeCollection)}}0===this.dynamicProperties.length&&(this._mdf=!1)}}),ik(I.OffsetPathModifier,class extends ar{initModifierProperties(t,e){this.getValue=this.processKeys,this.amount=sp.getProp(t,e.a,0,null,this),this.miterLimit=sp.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=this.amount.effectsSequence.length>0}processPath(t,e,s,i){let r=su();r.c=t.c;let a=t.length();t.c||(a-=1);let n,o=[];for(let s=0;s<a;s++)n=ts(t,s),o.push(tW(n,e));if(!t.c)for(let s=a-1;s>=0;s--)n=function(t,e){let s=(e+1)%t.length();return new te(t.v[s],t.i[s],t.o[e],t.v[e],!0)}(t,s),o.push(tW(n,e));o=tY(o);let h=null,l=null,{length:p}=o;for(let t=0;t<p;t++){let e=o[t];l&&(h=tG(r,l,e[0],s,i)),l=e[e.length-1];let{length:a}=e;for(let t=0;t<a;t++)n=e[t],h&&tp(n.points[0],h)?r.setXYAt(n.points[1][0],n.points[1][1],"o",r.length()-1):r.setTripleAt(n.points[0][0],n.points[0][1],n.points[1][0],n.points[1][1],n.points[0][0],n.points[0][1],r.length()),r.setTripleAt(n.points[3][0],n.points[3][1],n.points[3][0],n.points[3][1],n.points[2][0],n.points[2][1],r.length()),h=n.points[3]}return p>0&&l&&tG(r,l,o[0][0],s,i),r}processShapes(t){let{length:e}=this.shapes,s=Number(this.amount?.v),i=Number(this.miterLimit?.v),r=Number(this.lineJoin);if(0!==s){let a,n,o;for(let h=0;h<e;h++){if(o=(n=this.shapes[h]).localShapeCollection,!(!n.shape?._mdf&&!this._mdf&&!t)){o?.releaseShapes(),n.shape&&(n.shape._mdf=!0),a=n.shape?.paths?.shapes;let t=n.shape?.paths?._length||0;for(let e=0;e<t;e++){let t=a?.[e];t&&o?.addShape(this.processPath(t,s,r,i))}}n.shape&&(n.shape.paths=n.localShapeCollection)}}0===this.dynamicProperties.length&&(this._mdf=!1)}}),ey.plugin={initExpressions:function(t){let e=0,s=[];if(!t.renderer.globalData)throw Error("Renderer -> GlobalData is not set");t.renderer.compInterface=new rW(t.renderer),t.renderer.globalData.projectInterface.registerComposition(t.renderer),t.renderer.globalData.pushExpression=function(){e++},t.renderer.globalData.popExpression=function(){0==--e&&function(){let{length:t}=s;for(let e=0;e<t;e++)s[e].release?.();s.length=0}()},t.renderer.globalData.registerExpressionProperty=function(t){s.includes(t)||s.push(t)}},resetFrame:rH},ey.interface=function(t){return ai[t]},function(){let{getTransformProperty:t}=sQ;sQ.getTransformProperty=function(e,s,i){let r=t(e,s,i);return r.dynamicProperties.length>0?r.getValueAtTime=rG.bind(r):r.getValueAtTime=rq.bind(r),r.setGroupProperty=rB.setGroupProperty,r};let e=sp.getProp;sp.getProp=function(t,s,i,r,a){let n=e(t,s,i,r,a);n.kf?n.getValueAtTime=rB.getValueAtTime.bind(n):n.getValueAtTime=rB.getStaticValueAtTime.bind(n),n.setGroupProperty=rB.setGroupProperty,n.loopOut=rR,n.loopIn=rz,n.smooth=rO,n.getVelocityAtTime=rB.getVelocityAtTime.bind(n),n.getSpeedAtTime=rB.getSpeedAtTime.bind(n),n.numKeys=1===s.a?s.k.length:0,n.propertyIndex=s.ix;let o=0;return 0!==i&&(o=e$(F.Float32,1===s.a?s.k[0].s.length:s.k.length)),n._cachingAtTime={lastFrame:-999999,lastIndex:0,value:o},rB.searchExpressions(t,s,n),n.k&&a.addDynamicProperty(n),n};let s=sS.getConstructorFunction(),i=sS.getKeyframedConstructorFunction();t$([rV],s),t$([rV],i),i.prototype.getValueAtTime=rj,i.prototype.initiateExpression=rN.initiateExpression;let r=sS.getShapeProp;sS.getShapeProp=function(t,e,s,i,a){let n=r(t,e,s,i,a);return n.propertyIndex=e.ix,n.lock=!1,3===s?rB.searchExpressions(t,e.pt,n):4===s&&rB.searchExpressions(t,e.ks,n),n.k&&t.addDynamicProperty(n),n}}(),ij.prototype.getExpressionValue=function(t,e){let s=this.calculateExpression(e);if(t.t!==s){let e={};return this.copyData(e,t),e.t=s.toString(),e.__complete=!1,e}return t},ij.prototype.searchProperty=function(){let t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=!!(t||e),this.kf},ij.prototype.searchExpressions=function(){return this.data.d?.x?(this.calculateExpression=rN.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null},eX(20,class extends eV{constructor(t,e,s,i,r){super(),this.filterManager=e;let a=tT("feColorMatrix");a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","linearRGB"),a.setAttribute("values",`${ez} 1 0`),this.linearFilter=a,a.setAttribute("result",`${i}_tint_1`),t.appendChild(a),(a=tT("feColorMatrix")).setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),a.setAttribute("result",`${i}_tint_2`),t.appendChild(a),this.matrixFilter=a;let n=this.createMergeNode(i,[r,`${i}_tint_1`,`${i}_tint_2`]);t.appendChild(n)}renderFrame(t){if(!t&&!this.filterManager._mdf)return;let e=this.filterManager.effectElements[0].p.v,s=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",`${ez} ${i} 0`),this.matrixFilter.setAttribute("values",`${s[0]-e[0]} 0 0 0 ${e[0]} ${s[1]-e[1]} 0 0 0 ${e[1]} ${s[2]-e[2]} 0 0 0 ${e[2]} 0 0 0 1 0`)}},!0),eX(21,class{constructor(t,e,s,i){this.filterManager=e;let r=tT("feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","sRGB"),r.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),r.setAttribute("result",i),t.appendChild(r),this.matrixFilter=r}renderFrame(t){if(!t&&!this.filterManager._mdf)return;let e=this.filterManager.effectElements[2].p.v,s=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values",`0 0 0 0 ${e[0]} 0 0 0 0 ${e[1]} 0 0 0 0 ${e[2]} 0 0 0 ${s} 0`)}},!0),eX(22,class{constructor(t,e,s){this.initialized=!1,this.filterManager=e,this.elem=s,this.paths=[]}initialize(){let t,e,s,i=[...this.elem.layerElement?.children??this.elem.layerElement?.childNodes??[]];1===this.filterManager.effectElements[1].p.v?(s=this.elem.maskManager?.masksProperties.length||0,e=0):s=(e=this.filterManager.effectElements[0].p.v-1)+1;let r=tT("g");for(r.setAttribute("fill","none"),r.setAttribute("stroke-linecap","round"),r.setAttribute("stroke-dashoffset","1");e<s;e++)t=tT("path"),r.appendChild(t),this.paths.push({m:e,p:t});if(3===this.filterManager.effectElements[10].p.v){let t=tT("mask"),e=tA();t.setAttribute("id",e),t.setAttribute("mask-type","alpha"),t.appendChild(r),this.elem.globalData?.defs.appendChild(t);let s=tT("g");for(s.setAttribute("mask",`url(${K()}#${e})`);i[0];)s.appendChild(i[0]);this.elem.layerElement?.appendChild(s),this.masker=t,r.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(i=[...this.elem.layerElement?.children??this.elem.layerElement?.childNodes??[]];i.length>0;)this.elem.layerElement?.removeChild(i[0]);this.elem.layerElement?.appendChild(r),this.elem.layerElement?.removeAttribute("mask"),r.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=r}renderFrame(t){let e,s;this.initialized||this.initialize();let{length:i}=this.paths;for(let r=0;r<i;r++)if(-1!==this.paths[r].m&&(e=this.elem.maskManager?.viewData[this.paths[r].m],s=this.paths[r].p,e&&(t||this.filterManager._mdf||e.prop?._mdf)&&s.setAttribute("d",e.lastPath),t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||e?.prop?._mdf)){let t;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){let e=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),i=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),r=s.getTotalLength();t=`0 0 0 ${r*e} `;let a=Math.floor(r*(i-e)/(1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01));for(let e=0;e<a;e++)t+=`1 ${2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01} `;t+=`0 ${10*r} 0 0`}else t=`1 ${2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01}`;s.setAttribute("stroke-dasharray",t)}if((t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker?.setAttribute("stroke-width",`${2*this.filterManager.effectElements[4].p.v}`),(t||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker?.setAttribute("opacity",`${Number(this.filterManager.effectElements[6].p.v)}`),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(t||this.filterManager.effectElements[3].p._mdf)){let t=this.filterManager.effectElements[3].p.v;this.pathMasker?.setAttribute("stroke",`rgb(${Math.floor(255*t[0])},${Math.floor(255*t[1])},${255*t[2]})`)}}},!1),eX(23,class{constructor(t,e,s,i){this.filterManager=e;let r=tT("feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","linearRGB"),r.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),t.appendChild(r);let a=tT("feComponentTransfer");a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",i),this.matrixFilter=a;let n=tT("feFuncR");n.setAttribute("type","table"),a.appendChild(n),this.feFuncR=n;let o=tT("feFuncG");o.setAttribute("type","table"),a.appendChild(o),this.feFuncG=o;let h=tT("feFuncB");h.setAttribute("type","table"),a.appendChild(h),this.feFuncB=h,t.appendChild(a)}renderFrame(t){if(!t&&!this.filterManager._mdf)return;let e=this.filterManager.effectElements[0].p.v,s=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v,r=`${i[0]} ${s[0]} ${e[0]}`,a=`${i[1]} ${s[1]} ${e[1]}`,n=`${i[2]} ${s[2]} ${e[2]}`;this.feFuncR.setAttribute("tableValues",r),this.feFuncG.setAttribute("tableValues",a),this.feFuncB.setAttribute("tableValues",n)}},!0),eX(24,class{constructor(t,e,s,i){this.filterManager=e;let{effectElements:r}=this.filterManager,a=tT("feComponentTransfer");(r[10].p.k||0!==r[10].p.v||r[11].p.k||1!==r[11].p.v||r[12].p.k||1!==r[12].p.v||r[13].p.k||0!==r[13].p.v||r[14].p.k||1!==r[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",a)),(r[17].p.k||0!==r[17].p.v||r[18].p.k||1!==r[18].p.v||r[19].p.k||1!==r[19].p.v||r[20].p.k||0!==r[20].p.v||r[21].p.k||1!==r[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",a)),(r[24].p.k||0!==r[24].p.v||r[25].p.k||1!==r[25].p.v||r[26].p.k||1!==r[26].p.v||r[27].p.k||0!==r[27].p.v||r[28].p.k||1!==r[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",a)),(r[31].p.k||0!==r[31].p.v||r[32].p.k||1!==r[32].p.v||r[33].p.k||1!==r[33].p.v||r[34].p.k||0!==r[34].p.v||r[35].p.k||1!==r[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",a)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(a.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(a)),(r[3].p.k||0!==r[3].p.v||r[4].p.k||1!==r[4].p.v||r[5].p.k||1!==r[5].p.v||r[6].p.k||0!==r[6].p.v||r[7].p.k||1!==r[7].p.v)&&((a=tT("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",i),t.appendChild(a),this.feFuncRComposed=this.createFeFunc("feFuncR",a),this.feFuncGComposed=this.createFeFunc("feFuncG",a),this.feFuncBComposed=this.createFeFunc("feFuncB",a))}createFeFunc(t,e){let s=tT(t);return s.setAttribute("type","table"),e.appendChild(s),s}getTableValue(t,e,s,i,r){let a,n=0,o=Math.min(t,e),h=Math.max(t,e),l=eL(256),p,m=0,c=r-i,d=e-t;for(;n<=256;)p=(a=n/256)<=o?d<0?r:i:a>=h?d<0?i:r:i+c*Math.pow((a-t)/d,1/s),l[m]=p,m++,n+=256/255;return l.join(" ")}renderFrame(t){let e;if(!t&&!this.filterManager._mdf)return;let{effectElements:s}=this.filterManager;this.feFuncRComposed&&(t||s[3].p._mdf||s[4].p._mdf||s[5].p._mdf||s[6].p._mdf||s[7].p._mdf)&&(e=this.getTableValue(s[3].p.v,s[4].p.v,s[5].p.v,s[6].p.v,s[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed?.setAttribute("tableValues",e),this.feFuncBComposed?.setAttribute("tableValues",e)),this.feFuncR&&(t||s[10].p._mdf||s[11].p._mdf||s[12].p._mdf||s[13].p._mdf||s[14].p._mdf)&&(e=this.getTableValue(s[10].p.v,s[11].p.v,s[12].p.v,s[13].p.v,s[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||s[17].p._mdf||s[18].p._mdf||s[19].p._mdf||s[20].p._mdf||s[21].p._mdf)&&(e=this.getTableValue(s[17].p.v,s[18].p.v,s[19].p.v,s[20].p.v,s[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||s[24].p._mdf||s[25].p._mdf||s[26].p._mdf||s[27].p._mdf||s[28].p._mdf)&&(e=this.getTableValue(s[24].p.v,s[25].p.v,s[26].p.v,s[27].p.v,s[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||s[31].p._mdf||s[32].p._mdf||s[33].p._mdf||s[34].p._mdf||s[35].p._mdf)&&(e=this.getTableValue(s[31].p.v,s[32].p.v,s[33].p.v,s[34].p.v,s[35].p.v),this.feFuncA.setAttribute("tableValues",e))}},!0),eX(25,class extends eV{constructor(t,e,s,i,r){super();let a=(e.container?.globalData?.renderConfig).filterSize,n=e.data?.fs??a??{height:"100%",width:"100%",x:"0%",y:"0%"};t.setAttribute("x",n.x),t.setAttribute("y",n.y),t.setAttribute("width",n.width),t.setAttribute("height",n.height),this.filterManager=e;let o=tT("feGaussianBlur");o.setAttribute("in","SourceAlpha"),o.setAttribute("result",`${i}_drop_shadow_1`),o.setAttribute("stdDeviation","0"),this.feGaussianBlur=o,t.appendChild(o);let h=tT("feOffset");h.setAttribute("dx","25"),h.setAttribute("dy","0"),h.setAttribute("in",`${i}_drop_shadow_1`),h.setAttribute("result",`${i}_drop_shadow_2`),this.feOffset=h,t.appendChild(h);let l=tT("feFlood");l.setAttribute("flood-color","#00ff00"),l.setAttribute("flood-opacity","1"),l.setAttribute("result",`${i}_drop_shadow_3`),this.feFlood=l,t.appendChild(l);let p=tT("feComposite");p.setAttribute("in",`${i}_drop_shadow_3`),p.in2.baseVal=`${i}_drop_shadow_2`,p.setAttribute("operator","in"),p.result.baseVal=`${i}_drop_shadow_4`,t.appendChild(p);let m=this.createMergeNode(i,[`${i}_drop_shadow_4`,r]);t.appendChild(m)}renderFrame(t){if(t||this.filterManager._mdf){if(t||this.filterManager.effectElements[4].p._mdf){let t=this.filterManager.effectElements[4].p.v/4;this.feGaussianBlur.setStdDeviation(t,t)}if(t||this.filterManager.effectElements[0].p._mdf){let t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",tJ(Math.round(255*t[0]),Math.round(255*t[1]),Math.round(255*t[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){let t=this.filterManager.effectElements[3].p.v,e=(this.filterManager.effectElements[2].p.v-90)*ti,s=t*Math.cos(e),i=t*Math.sin(e);this.feOffset.dx.baseVal=s,this.feOffset.dy.baseVal=i}}}},!0),eX(28,class{constructor(t,e,s){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=s,s.matteElement=tT("g"),s.layerElement&&s.matteElement.appendChild(s.layerElement),s.transformedElement&&s.matteElement.appendChild(s.transformedElement),s.baseElement=s.matteElement}findSymbol(t){let e=0,s=eR.length;for(;e<s;){if(eR[e]===t)return eR[e];e++}return null}initialize(){let t=this.filterManager.effectElements[0].p.v,e=this.elem.comp?.elements??[],s=0,{length:i}=e;for(;s<i;)e[s]&&e[s].data.ind===t&&this.setElementAsMask(this.elem,e[s]),s++;this.initialized=!0}renderFrame(t){this.initialized||this.initialize()}replaceInParent(t,e){let s,i=t.layerElement?.parentNode;if(!i)return;let{children:r}=i,a=0,n=r.length;for(;a<n&&r[a]!==t.layerElement;)a++;a<=n-2&&(s=r[a+1]);let o=tT("use");o.setAttribute("href",`#${e}`),s?i.insertBefore(o,s):i.appendChild(o)}setElementAsMask(t,e){if(!this.findSymbol(e)){let s=tA(),i=tT("mask");i.setAttribute("id",e.layerId||""),i.setAttribute("mask-type","alpha"),eR.push(e);let{defs:r}=t.globalData??{defs:null};r?.appendChild(i);let a=tT("symbol");a.setAttribute("id",s),this.replaceInParent(e,s),e.layerElement&&a.appendChild(e.layerElement),r?.appendChild(a);let n=tT("use");n.setAttribute("href",`#${s}`),i.appendChild(n),e.data.hd=!1,e.show()}t.setMatte(e.layerId||"")}},!1),eX(29,class{constructor(t,e,s,i){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","300%"),t.setAttribute("height","300%"),this.filterManager=e;let r=tT("feGaussianBlur");r.setAttribute("result",i),t.appendChild(r),this.feGaussianBlur=r}renderFrame(t){if(!t&&!this.filterManager._mdf)return;let e=.3*this.filterManager.effectElements[0].p.v,s=Number(this.filterManager.effectElements[1].p.v);this.feGaussianBlur.setAttribute("stdDeviation",`${3===s?0:e} ${2===s?0:e}`);let i=1===Number(this.filterManager.effectElements[2].p.v)?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",i)}},!0),eX(35,class extends eB{constructor(t,e){super(),this.init(e)}},!1),f=class extends eB{constructor(t){super(),this.init(t)}},eO[35]={countsAsEffect:void 0,effect:f};let ah=Symbol("UPDATE_ON_CONNECTED");a()&&(global.HTMLElement=class{});class al extends HTMLElement{constructor(){super(),ah in this&&(this[ah]=[]);let{observedProperties:t=[]}=this.constructor,{length:e}=t;for(let s=0;s<e;s++){let e=this[t[s]],i=Symbol(t[s]);this[i]=e,Object.defineProperty(this,t[s],{get(){return this[i]},set(e){let r=this[i];this[i]=e,this.propertyChangedCallback(t[s],r,e)}}),void 0!==e&&ah in this&&Array.isArray(this[ah])&&this[ah].push(t[s])}}async connectedCallback(){let t=[];ah in this&&Array.isArray(this[ah])&&(t=this[ah]);let{length:e}=t;for(let s=0;s<e;s++)"propertyChangedCallback"in this&&"function"==typeof this.propertyChangedCallback&&t[s]in this&&this.propertyChangedCallback(t[s],void 0,this[t[s]])}propertyChangedCallback(t,e,s){throw Error(`${this.constructor.name}: Method propertyChangedCallback is not implemented`)}}var ap=((g={}).Contain="contain",g.Cover="cover",g.Fill="fill",g.None="none",g.ScaleDown="scale-down",g),am=((y={}).Completed="completed",y.Destroyed="destroyed",y.Error="error",y.Frozen="frozen",y.Loading="loading",y.Paused="paused",y.Playing="playing",y.Stopped="stopped",y),ac=((b={}).Bounce="bounce",b.Normal="normal",b),ad=((v={}).Complete="complete",v.Destroyed="destroyed",v.Error="error",v.Frame="frame",v.Freeze="freeze",v.Load="load",v.Loop="loop",v.Next="next",v.Pause="pause",v.Play="play",v.Previous="previous",v.Ready="ready",v.Rendered="rendered",v.Stop="stop",v),au=((x={}).Contain="xMidYMid meet",x.Cover="xMidYMid slice",x.Initial="none",x.None="xMinYMin slice",x),af=((w={}).Canvas="canvas",w.HTML="html",w.SVG="svg",w);function ag(){if(!this.shadow)throw Error("No Shadow Element");let t=this.shadow.querySelector("slot[name=controls]");if(!t)return;if(!this.controls){t.innerHTML="";return}t.innerHTML=`<div class="lottie-controls toolbar ${this.playerState===am.Error?"has-error":""}" aria-label="Lottie Animation controls"><button class="togglePlay" data-active="false" aria-label="Toggle Play/Pause"><svg width="24" height="24" aria-hidden="true" focusable="false"><path d="M8.016 5.016L18.985 12 8.016 18.984V5.015z"/></svg></button> <button class="stop" data-active="true" aria-label="Stop"><svg width="24" height="24" aria-hidden="true" focusable="false"><path d="M6 6h12v12H6V6z"/></svg></button> <button class="prev" aria-label="Previous animation" hidden><svg width="24" height="24" aria-hidden="true" focusable="false"><path d="M17.9 18.2 8.1 12l9.8-6.2v12.4zm-10.3 0H6.1V5.8h1.5v12.4z"/></svg></button> <button class="next" aria-label="Next animation" hidden><svg width="24" height="24" aria-hidden="true" focusable="false"><path d="m6.1 5.8 9.8 6.2-9.8 6.2V5.8zM16.4 5.8h1.5v12.4h-1.5z"/></svg></button><form class="progress-container${this.simple?" simple":""}"><input class="seeker" type="range" min="0" max="100" step="1" value="${this._seeker.toString()}" aria-valuemin="0" aria-valuemax="100" role="slider" aria-valuenow="${this._seeker.toString()}" tabindex="0" aria-label="Slider for search"><progress max="100" value="${this._seeker}"></progress></form>${this.simple?"":`<button class="toggleLoop" data-active="${this.loop}" tabindex="0" aria-label="Toggle loop"><svg width="24" height="24" aria-hidden="true" focusable="false"><path d="M17.016 17.016v-4.031h1.969v6h-12v3l-3.984-3.984 3.984-3.984v3h10.031zM6.984 6.984v4.031H5.015v-6h12v-3l3.984 3.984-3.984 3.984v-3H6.984z"/></svg></button> <button class="toggleBoomerang" data-active="${this.mode===ac.Bounce}" aria-label="Toggle boomerang" tabindex="0"><svg width="24" height="24" aria-hidden="true" focusable="false"><path d="m11.8 13.2-.3.3c-.5.5-1.1 1.1-1.7 1.5-.5.4-1 .6-1.5.8-.5.2-1.1.3-1.6.3s-1-.1-1.5-.3c-.6-.2-1-.5-1.4-1-.5-.6-.8-1.2-.9-1.9-.2-.9-.1-1.8.3-2.6.3-.7.8-1.2 1.3-1.6.3-.2.6-.4 1-.5.2-.2.5-.2.8-.3.3 0 .7-.1 1 0 .3 0 .6.1.9.2.9.3 1.7.9 2.4 1.5.4.4.8.7 1.1 1.1l.1.1.4-.4c.6-.6 1.2-1.2 1.9-1.6.5-.3 1-.6 1.5-.7.4-.1.7-.2 1-.2h.9c1 .1 1.9.5 2.6 1.4.4.5.7 1.1.8 1.8.2.9.1 1.7-.2 2.5-.4.9-1 1.5-1.8 2-.4.2-.7.4-1.1.4-.4.1-.8.1-1.2.1-.5 0-.9-.1-1.3-.3-.8-.3-1.5-.9-2.1-1.5-.4-.4-.8-.7-1.1-1.1h-.3zm-1.1-1.1c-.1-.1-.1-.1 0 0-.3-.3-.6-.6-.8-.9-.5-.5-1-.9-1.6-1.2-.4-.3-.8-.4-1.3-.4-.4 0-.8 0-1.1.2-.5.2-.9.6-1.1 1-.2.3-.3.7-.3 1.1 0 .3 0 .6.1.9.1.5.4.9.8 1.2.5.4 1.1.5 1.7.5.5 0 1-.2 1.5-.5.6-.4 1.1-.8 1.6-1.3.1-.3.3-.5.5-.6zM13 12c.5.5 1 1 1.5 1.4.5.5 1.1.9 1.9 1 .4.1.8 0 1.2-.1.3-.1.6-.3.9-.5.4-.4.7-.9.8-1.4.1-.5 0-.9-.1-1.4-.3-.8-.8-1.2-1.7-1.4-.4-.1-.8-.1-1.2 0-.5.1-1 .4-1.4.7-.5.4-1 .8-1.4 1.2-.2.2-.4.3-.5.5z"/></svg></button> <button class="toggleSettings" aria-label="Settings" aria-haspopup="true" aria-expanded="${!!this._isSettingsOpen}" aria-controls="${this._identifier}-settings"><svg width="24" height="24" aria-hidden="true" focusable="false"><circle cx="12" cy="5.4" r="2.5"/><circle cx="12" cy="12" r="2.5"/><circle cx="12" cy="18.6" r="2.5"/></svg></button><div id="${this._identifier}-settings" class="popover" hidden><button class="convert" aria-label="Convert JSON animation to dotLottie format" hidden><svg width="24" height="24" aria-hidden="true" focusable="false"><path d="M17.016 17.016v-4.031h1.969v6h-12v3l-3.984-3.984 3.984-3.984v3h10.031zM6.984 6.984v4.031H5.015v-6h12v-3l3.984 3.984-3.984 3.984v-3H6.984z"/></svg> Convert to dotLottie</button> <button class="snapshot" aria-label="Download still image"><svg width="24" height="24" aria-hidden="true" focusable="false"><path d="M16.8 10.8 12 15.6l-4.8-4.8h3V3.6h3.6v7.2h3zM12 15.6H3v4.8h18v-4.8h-9zm7.8 2.4h-2.4v-1.2h2.4V18z"/></svg> Download still image</button></div>`}</div>`;let e=this.shadow.querySelector(".togglePlay");e instanceof HTMLButtonElement&&(e.onclick=this.togglePlay);let s=this.shadow.querySelector(".stop");s instanceof HTMLButtonElement&&(s.onclick=this.stop);let i=this.shadow.querySelector(".prev");i instanceof HTMLButtonElement&&(i.onclick=this.prev);let r=this.shadow.querySelector(".next");r instanceof HTMLButtonElement&&(r.onclick=this.next);let a=this.shadow.querySelector(".seeker");if(a instanceof HTMLInputElement&&(a.onchange=this._handleSeekChange,a.onmousedown=this._freeze),!this.simple){let t=this.shadow.querySelector(".toggleLoop");t instanceof HTMLButtonElement&&(t.onclick=this.toggleLoop);let e=this.shadow.querySelector(".toggleBoomerang");e instanceof HTMLButtonElement&&(e.onclick=this.toggleBoomerang);let s=this.shadow.querySelector(".convert");s instanceof HTMLButtonElement&&(s.onclick=this.convert);let i=this.shadow.querySelector(".snapshot");i instanceof HTMLButtonElement&&(i.onclick=()=>this.snapshot(!0));let r=this.shadow.querySelector(".toggleSettings");r instanceof HTMLButtonElement&&(r.onclick=this._handleSettingsClick,r.onblur=this._handleBlur)}}async function ay(){if(!this.shadow)throw Error("No Shadow Element");this.template.innerHTML=`<div class="animation-container main" data-controls="${this.controls??!1}" lang="${this.description?document.documentElement.lang:"en"}" aria-label="${this.description??"Lottie animation"}" data-loaded="${this._playerState.loaded}"><figure class="animation" style="background:${this.background}">${this.playerState===am.Error?`<div class="error"><svg preserveAspectRatio="xMidYMid slice" xmlns="http://www.w3.org/2000/svg" xml:space="preserve" width="1920" height="1080" viewBox="0 0 1920 1080"><path fill="#fff" d="M0 0h1920v1080H0z"/><path fill="#3a6d8b" d="M1190.2 531 1007 212.4c-22-38.2-77.2-38-98.8.5L729.5 531.3c-21.3 37.9 6.1 84.6 49.5 84.6l361.9.3c43.7 0 71.1-47.3 49.3-85.2zM937.3 288.7c.2-7.5 3.3-23.9 23.2-23.9 16.3 0 23 16.1 23 23.5 0 55.3-10.7 197.2-12.2 214.5-.1 1-.9 1.7-1.9 1.7h-18.3c-1 0-1.8-.7-1.9-1.7-1.4-17.5-13.4-162.9-11.9-214.1zm24.2 283.8c-13.1 0-23.7-10.6-23.7-23.7s10.6-23.7 23.7-23.7 23.7 10.6 23.7 23.7-10.6 23.7-23.7 23.7zM722.1 644h112.6v34.4h-70.4V698h58.8v31.7h-58.8v22.6h72.4v36.2H722.1V644zm162 57.1h.6c8.3-12.9 18.2-17.8 31.3-17.8 3 0 5.1.4 6.3 1v32.6h-.8c-22.4-3.8-35.6 6.3-35.6 29.5v42.3h-38.2V685.5h36.4v15.6zm78.9 0h.6c8.3-12.9 18.2-17.8 31.3-17.8 3 0 5.1.4 6.3 1v32.6h-.8c-22.4-3.8-35.6 6.3-35.6 29.5v42.3h-38.2V685.5H963v15.6zm39.5 36.2c0-31.3 22.2-54.8 56.6-54.8 34.4 0 56.2 23.5 56.2 54.8s-21.8 54.6-56.2 54.6c-34.4-.1-56.6-23.3-56.6-54.6zm74 0c0-17.4-6.1-29.1-17.8-29.1-11.7 0-17.4 11.7-17.4 29.1 0 17.4 5.7 29.1 17.4 29.1s17.8-11.8 17.8-29.1zm83.1-36.2h.6c8.3-12.9 18.2-17.8 31.3-17.8 3 0 5.1.4 6.3 1v32.6h-.8c-22.4-3.8-35.6 6.3-35.6 29.5v42.3h-38.2V685.5h36.4v15.6z"/><path fill="none" d="M718.9 807.7h645v285.4h-645z"/><text fill="#3a6d8b" style="text-align:center;position:absolute;left:100%;font-size:47px;font-family:system-ui,-apple-system,BlinkMacSystemFont,'.SFNSText-Regular',sans-serif" x="50%" y="848.017" text-anchor="middle">${this._errorMessage}</text></svg></div>`:""}</figure><slot name="controls"></slot></div>`,this.shadow.adoptedStyleSheets=[await n2.styles()],this.shadow.appendChild(this.template.content.cloneNode(!0))}var ab={},av=function(t,e,s,i,r){var a=new Worker(ab[e]||(ab[e]=URL.createObjectURL(new Blob([t+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return a.onmessage=function(t){var e=t.data,s=e.$e$;if(s){var i=Error(s[0]);i.code=s[1],i.stack=s[2],r(i,null)}else r(null,e)},a.postMessage(s,i),a},ax=Uint8Array,aw=Uint16Array,a_=Int32Array,aE=new ax([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),aC=new ax([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),ak=new ax([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),aS=function(t,e){for(var s=new aw(31),i=0;i<31;++i)s[i]=e+=1<<t[i-1];for(var r=new a_(s[30]),i=1;i<30;++i)for(var a=s[i];a<s[i+1];++a)r[a]=a-s[i]<<5|i;return{b:s,r:r}},aM=aS(aE,2),aP=aM.b,aA=aM.r;aP[28]=258,aA[258]=28;for(var aD=aS(aC,0),aT=aD.b,aF=aD.r,aI=new aw(32768),a$=0;a$<32768;++a$){var aL=(43690&a$)>>1|(21845&a$)<<1;aL=(61680&(aL=(52428&aL)>>2|(13107&aL)<<2))>>4|(3855&aL)<<4,aI[a$]=((65280&aL)>>8|(255&aL)<<8)>>1}for(var aN=function(t,e,s){for(var i,r=t.length,a=0,n=new aw(e);a<r;++a)t[a]&&++n[t[a]-1];var o=new aw(e);for(a=1;a<e;++a)o[a]=o[a-1]+n[a-1]<<1;if(s){i=new aw(1<<e);var h=15-e;for(a=0;a<r;++a)if(t[a])for(var l=a<<4|t[a],p=e-t[a],m=o[t[a]-1]++<<p,c=m|(1<<p)-1;m<=c;++m)i[aI[m]>>h]=l}else for(a=0,i=new aw(r);a<r;++a)t[a]&&(i[a]=aI[o[t[a]-1]++]>>15-t[a]);return i},aB=new ax(288),a$=0;a$<144;++a$)aB[a$]=8;for(var a$=144;a$<256;++a$)aB[a$]=9;for(var a$=256;a$<280;++a$)aB[a$]=7;for(var a$=280;a$<288;++a$)aB[a$]=8;for(var aV=new ax(32),a$=0;a$<32;++a$)aV[a$]=5;var aR=aN(aB,9,0),az=aN(aB,9,1),aO=aN(aV,5,0),aG=aN(aV,5,1),aq=function(t){for(var e=t[0],s=1;s<t.length;++s)t[s]>e&&(e=t[s]);return e},aj=function(t,e,s){var i=e/8|0;return(t[i]|t[i+1]<<8)>>(7&e)&s},aW=function(t,e){var s=e/8|0;return(t[s]|t[s+1]<<8|t[s+2]<<16)>>(7&e)},aH=function(t){return(t+7)/8|0},aY=function(t,e,s){return(null==e||e<0)&&(e=0),(null==s||s>t.length)&&(s=t.length),new ax(t.subarray(e,s))},aU=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],aX=function(t,e,s){var i=Error(e||aU[t]);if(i.code=t,Error.captureStackTrace&&Error.captureStackTrace(i,aX),!s)throw i;return i},aJ=function(t,e,s,i){var r=t.length,a=i?i.length:0;if(!r||e.f&&!e.l)return s||new ax(0);var n=!s,o=n||2!=e.i,h=e.i;n&&(s=new ax(3*r));var l=function(t){var e=s.length;if(t>e){var i=new ax(Math.max(2*e,t));i.set(s),s=i}},p=e.f||0,m=e.p||0,c=e.b||0,d=e.l,u=e.d,f=e.m,g=e.n,y=8*r;do{if(!d){p=aj(t,m,1);var b=aj(t,m+1,3);if(m+=3,b)if(1==b)d=az,u=aG,f=9,g=5;else if(2==b){var v=aj(t,m,31)+257,x=aj(t,m+10,15)+4,w=v+aj(t,m+5,31)+1;m+=14;for(var _=new ax(w),E=new ax(19),C=0;C<x;++C)E[ak[C]]=aj(t,m+3*C,7);m+=3*x;for(var k=aq(E),S=(1<<k)-1,M=aN(E,k,1),C=0;C<w;){var P=M[aj(t,m,S)];m+=15&P;var A=P>>4;if(A<16)_[C++]=A;else{var D=0,T=0;for(16==A?(T=3+aj(t,m,3),m+=2,D=_[C-1]):17==A?(T=3+aj(t,m,7),m+=3):18==A&&(T=11+aj(t,m,127),m+=7);T--;)_[C++]=D}}var F=_.subarray(0,v),I=_.subarray(v);f=aq(F),g=aq(I),d=aN(F,f,1),u=aN(I,g,1)}else aX(1);else{var A=aH(m)+4,$=t[A-4]|t[A-3]<<8,L=A+$;if(L>r){h&&aX(0);break}o&&l(c+$),s.set(t.subarray(A,L),c),e.b=c+=$,e.p=m=8*L,e.f=p;continue}if(m>y){h&&aX(0);break}}o&&l(c+131072);for(var N=(1<<f)-1,B=(1<<g)-1,V=m;;V=m){var D=d[aW(t,m)&N],R=D>>4;if((m+=15&D)>y){h&&aX(0);break}if(D||aX(2),R<256)s[c++]=R;else if(256==R){V=m,d=null;break}else{var z=R-254;if(R>264){var C=R-257,O=aE[C];z=aj(t,m,(1<<O)-1)+aP[C],m+=O}var G=u[aW(t,m)&B],q=G>>4;G||aX(3),m+=15&G;var I=aT[q];if(q>3){var O=aC[q];I+=aW(t,m)&(1<<O)-1,m+=O}if(m>y){h&&aX(0);break}o&&l(c+131072);var j=c+z;if(c<I){var W=a-I,H=Math.min(I,j);for(W+c<0&&aX(3);c<H;++c)s[c]=i[W+c]}for(;c<j;++c)s[c]=s[c-I]}}e.l=d,e.p=V,e.b=c,e.f=p,d&&(p=1,e.m=f,e.d=u,e.n=g)}while(!p);return c!=s.length&&n?aY(s,0,c):s.subarray(0,c)},aZ=function(t,e,s){s<<=7&e;var i=e/8|0;t[i]|=s,t[i+1]|=s>>8},aK=function(t,e,s){s<<=7&e;var i=e/8|0;t[i]|=s,t[i+1]|=s>>8,t[i+2]|=s>>16},aQ=function(t,e){for(var s=[],i=0;i<t.length;++i)t[i]&&s.push({s:i,f:t[i]});var r=s.length,a=s.slice();if(!r)return{t:a6,l:0};if(1==r){var n=new ax(s[0].s+1);return n[s[0].s]=1,{t:n,l:1}}s.sort(function(t,e){return t.f-e.f}),s.push({s:-1,f:25001});var o=s[0],h=s[1],l=0,p=1,m=2;for(s[0]={s:-1,f:o.f+h.f,l:o,r:h};p!=r-1;)o=s[s[l].f<s[m].f?l++:m++],h=s[l!=p&&s[l].f<s[m].f?l++:m++],s[p++]={s:-1,f:o.f+h.f,l:o,r:h};for(var c=a[0].s,i=1;i<r;++i)a[i].s>c&&(c=a[i].s);var d=new aw(c+1),u=a0(s[p-1],d,0);if(u>e){var i=0,f=0,g=u-e,y=1<<g;for(a.sort(function(t,e){return d[e.s]-d[t.s]||t.f-e.f});i<r;++i){var b=a[i].s;if(d[b]>e)f+=y-(1<<u-d[b]),d[b]=e;else break}for(f>>=g;f>0;){var v=a[i].s;d[v]<e?f-=1<<e-d[v]++-1:++i}for(;i>=0&&f;--i){var x=a[i].s;d[x]==e&&(--d[x],++f)}u=e}return{t:new ax(d),l:u}},a0=function(t,e,s){return -1==t.s?Math.max(a0(t.l,e,s+1),a0(t.r,e,s+1)):e[t.s]=s},a1=function(t){for(var e=t.length;e&&!t[--e];);for(var s=new aw(++e),i=0,r=t[0],a=1,n=function(t){s[i++]=t},o=1;o<=e;++o)if(t[o]==r&&o!=e)++a;else{if(!r&&a>2){for(;a>138;a-=138)n(32754);a>2&&(n(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(n(r),--a;a>6;a-=6)n(8304);a>2&&(n(a-3<<5|8208),a=0)}for(;a--;)n(r);a=1,r=t[o]}return{c:s.subarray(0,i),n:e}},a2=function(t,e){for(var s=0,i=0;i<e.length;++i)s+=t[i]*e[i];return s},a3=function(t,e,s){var i=s.length,r=aH(e+2);t[r]=255&i,t[r+1]=i>>8,t[r+2]=255^t[r],t[r+3]=255^t[r+1];for(var a=0;a<i;++a)t[r+a+4]=s[a];return(r+4+i)*8},a5=function(t,e,s,i,r,a,n,o,h,l,p){aZ(e,p++,s),++r[256];for(var m,c,d,u,f=aQ(r,15),g=f.t,y=f.l,b=aQ(a,15),v=b.t,x=b.l,w=a1(g),_=w.c,E=w.n,C=a1(v),k=C.c,S=C.n,M=new aw(19),P=0;P<_.length;++P)++M[31&_[P]];for(var P=0;P<k.length;++P)++M[31&k[P]];for(var A=aQ(M,7),D=A.t,T=A.l,F=19;F>4&&!D[ak[F-1]];--F);var I=l+5<<3,$=a2(r,aB)+a2(a,aV)+n,L=a2(r,g)+a2(a,v)+n+14+3*F+a2(M,D)+2*M[16]+3*M[17]+7*M[18];if(h>=0&&I<=$&&I<=L)return a3(e,p,t.subarray(h,h+l));if(aZ(e,p,1+(L<$)),p+=2,L<$){m=aN(g,y,0),c=g,d=aN(v,x,0),u=v;var N=aN(D,T,0);aZ(e,p,E-257),aZ(e,p+5,S-1),aZ(e,p+10,F-4),p+=14;for(var P=0;P<F;++P)aZ(e,p+3*P,D[ak[P]]);p+=3*F;for(var B=[_,k],V=0;V<2;++V)for(var R=B[V],P=0;P<R.length;++P){var z=31&R[P];aZ(e,p,N[z]),p+=D[z],z>15&&(aZ(e,p,R[P]>>5&127),p+=R[P]>>12)}}else m=aR,c=aB,d=aO,u=aV;for(var P=0;P<o;++P){var O=i[P];if(O>255){var z=O>>18&31;aK(e,p,m[z+257]),p+=c[z+257],z>7&&(aZ(e,p,O>>23&31),p+=aE[z]);var G=31&O;aK(e,p,d[G]),p+=u[G],G>3&&(aK(e,p,O>>5&8191),p+=aC[G])}else aK(e,p,m[O]),p+=c[O]}return aK(e,p,m[256]),p+c[256]},a4=new a_([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),a6=new ax(0),a9=function(t,e,s,i,r,a){var n=a.z||t.length,o=new ax(i+n+5*(1+Math.ceil(n/7e3))+r),h=o.subarray(i,o.length-r),l=a.l,p=7&(a.r||0);if(e){p&&(h[0]=a.r>>3);for(var m=a4[e-1],c=m>>13,d=8191&m,u=(1<<s)-1,f=a.p||new aw(32768),g=a.h||new aw(u+1),y=Math.ceil(s/3),b=2*y,v=function(e){return(t[e]^t[e+1]<<y^t[e+2]<<b)&u},x=new a_(25e3),w=new aw(288),_=new aw(32),E=0,C=0,k=a.i||0,S=0,M=a.w||0,P=0;k+2<n;++k){var A=v(k),D=32767&k,T=g[A];if(f[D]=T,g[A]=D,M<=k){var F=n-k;if((E>7e3||S>24576)&&(F>423||!l)){p=a5(t,h,0,x,w,_,C,S,P,k-P,p),S=E=C=0,P=k;for(var I=0;I<286;++I)w[I]=0;for(var I=0;I<30;++I)_[I]=0}var $=2,L=0,N=d,B=D-T&32767;if(F>2&&A==v(k-B))for(var V=Math.min(c,F)-1,R=Math.min(32767,k),z=Math.min(258,F);B<=R&&--N&&D!=T;){if(t[k+$]==t[k+$-B]){for(var O=0;O<z&&t[k+O]==t[k+O-B];++O);if(O>$){if($=O,L=B,O>V)break;for(var G=Math.min(B,O-2),q=0,I=0;I<G;++I){var j=k-B+I&32767,W=f[j],H=j-W&32767;H>q&&(q=H,T=j)}}}T=f[D=T],B+=D-T&32767}if(L){x[S++]=0x10000000|aA[$]<<18|aF[L];var Y=31&aA[$],U=31&aF[L];C+=aE[Y]+aC[U],++w[257+Y],++_[U],M=k+$,++E}else x[S++]=t[k],++w[t[k]]}}for(k=Math.max(k,M);k<n;++k)x[S++]=t[k],++w[t[k]];p=a5(t,h,l,x,w,_,C,S,P,k-P,p),l||(a.r=7&p|h[p/8|0]<<3,p-=7,a.h=g,a.p=f,a.i=k,a.w=M)}else{for(var k=a.w||0;k<n+l;k+=65535){var X=k+65535;X>=n&&(h[p/8|0]=l,X=n),p=a3(h,p+1,t.subarray(k,X))}a.i=n}return aY(o,0,i+aH(p)+r)},a8=function(){for(var t=new Int32Array(256),e=0;e<256;++e){for(var s=e,i=9;--i;)s=(1&s&&-0x12477ce0)^s>>>1;t[e]=s}return t}(),a7=function(){var t=-1;return{p:function(e){for(var s=t,i=0;i<e.length;++i)s=a8[255&s^e[i]]^s>>>8;t=s},d:function(){return~t}}},nt=function(t,e,s,i,r){if(!r&&(r={l:1},e.dictionary)){var a=e.dictionary.subarray(-32768),n=new ax(a.length+t.length);n.set(a),n.set(t,a.length),t=n,r.w=a.length}return a9(t,null==e.level?6:e.level,null==e.mem?r.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):20:12+e.mem,s,i,r)},ne=function(t,e){var s={};for(var i in t)s[i]=t[i];for(var i in e)s[i]=e[i];return s},ns=function(t,e,s){for(var i=t(),r=t.toString(),a=r.slice(r.indexOf("[")+1,r.lastIndexOf("]")).replace(/\s+/g,"").split(","),n=0;n<i.length;++n){var o=i[n],h=a[n];if("function"==typeof o){e+=";"+h+"=";var l=o.toString();if(o.prototype)if(-1!=l.indexOf("[native code]")){var p=l.indexOf(" ",8)+1;e+=l.slice(p,l.indexOf("(",p))}else for(var m in e+=l,o.prototype)e+=";"+h+".prototype."+m+"="+o.prototype[m].toString();else e+=l}else s[h]=o}return e},ni=[],nr=function(t){var e=[];for(var s in t)t[s].buffer&&e.push((t[s]=new t[s].constructor(t[s])).buffer);return e},na=function(t,e,s,i){if(!ni[s]){for(var r="",a={},n=t.length-1,o=0;o<n;++o)r=ns(t[o],r,a);ni[s]={c:ns(t[n],r,a),e:a}}var h=ne({},ni[s].e);return av(ni[s].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+e.toString()+"}",s,h,nr(h),i)},nn=function(){return[ax,aw,a_,aE,aC,ak,aP,aT,az,aG,aI,aU,aN,aq,aj,aW,aH,aY,aX,aJ,ng,nh,nl]},no=function(){return[ax,aw,a_,aE,aC,ak,aA,aF,aR,aB,aO,aV,aI,a4,a6,aN,aZ,aK,aQ,a0,a1,a2,a3,a5,aH,aY,a9,nt,nf,nh]},nh=function(t){return postMessage(t,[t.buffer])},nl=function(t){return t&&{out:t.size&&new ax(t.size),dictionary:t.dictionary}},np=function(t,e,s,i,r,a){var n=na(s,i,r,function(t,e){n.terminate(),a(t,e)});return n.postMessage([t,e],e.consume?[t.buffer]:[]),function(){n.terminate()}},nm=function(t,e){return t[e]|t[e+1]<<8},nc=function(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0},nd=function(t,e){return nc(t,e)+0x100000000*nc(t,e+4)},nu=function(t,e,s){for(;s;++e)t[e]=s,s>>>=8};function nf(t,e){return nt(t,e||{},0,0)}function ng(t,e){return aJ(t,{i:2},e&&e.out,e&&e.dictionary)}var ny=function(t,e,s,i){for(var r in t){var a=t[r],n=e+r,o=i;Array.isArray(a)&&(o=ne(i,a[1]),a=a[0]),a instanceof ax?s[n]=[a,o]:(s[n+="/"]=[new ax(0),o],ny(a,n,s,i))}},nb="undefined"!=typeof TextEncoder&&new TextEncoder,nv="undefined"!=typeof TextDecoder&&new TextDecoder;try{nv.decode(a6,{stream:!0})}catch(t){}var nx=function(t){for(var e="",s=0;;){var i=t[s++],r=(i>127)+(i>223)+(i>239);if(s+r>t.length)return{s:e,r:aY(t,s-1)};r?3==r?e+=String.fromCharCode(55296|(i=((15&i)<<18|(63&t[s++])<<12|(63&t[s++])<<6|63&t[s++])-65536)>>10,56320|1023&i):1&r?e+=String.fromCharCode((31&i)<<6|63&t[s++]):e+=String.fromCharCode((15&i)<<12|(63&t[s++])<<6|63&t[s++]):e+=String.fromCharCode(i)}};function nw(t,e){if(e){for(var s=new ax(t.length),i=0;i<t.length;++i)s[i]=t.charCodeAt(i);return s}if(nb)return nb.encode(t);for(var r=t.length,a=new ax(t.length+(t.length>>1)),n=0,o=function(t){a[n++]=t},i=0;i<r;++i){if(n+5>a.length){var h=new ax(n+8+(r-i<<1));h.set(a),a=h}var l=t.charCodeAt(i);l<128||e?o(l):(l<2048?o(192|l>>6):(l>55295&&l<57344?(o(240|(l=65536+(1047552&l)|1023&t.charCodeAt(++i))>>18),o(128|l>>12&63)):o(224|l>>12),o(128|l>>6&63)),o(128|63&l))}return aY(a,0,n)}function n_(t,e){if(e){for(var s="",i=0;i<t.length;i+=16384)s+=String.fromCharCode.apply(null,t.subarray(i,i+16384));return s}if(nv)return nv.decode(t);var r=nx(t),a=r.s,s=r.r;return s.length&&aX(8),a}var nE=function(t,e,s){var i=nm(t,e+28),r=n_(t.subarray(e+46,e+46+i),!(2048&nm(t,e+8))),a=e+46+i,n=nc(t,e+20),o=s&&0xffffffff==n?nC(t,a):[n,nc(t,e+24),nc(t,e+42)],h=o[0],l=o[1],p=o[2];return[nm(t,e+10),h,l,r,a+nm(t,e+30)+nm(t,e+32),p]},nC=function(t,e){for(;1!=nm(t,e);e+=4+nm(t,e+2));return[nd(t,e+12),nd(t,e+4),nd(t,e+20)]},nk=function(t){var e=0;if(t)for(var s in t){var i=t[s].length;i>65535&&aX(9),e+=i+4}return e},nS=function(t,e,s,i,r,a,n,o){var h=i.length,l=s.extra,p=o&&o.length,m=nk(l);nu(t,e,null!=n?0x2014b50:0x4034b50),e+=4,null!=n&&(t[e++]=20,t[e++]=s.os),t[e]=20,e+=2,t[e++]=s.flag<<1|(a<0&&8),t[e++]=r&&8,t[e++]=255&s.compression,t[e++]=s.compression>>8;var c=new Date(null==s.mtime?Date.now():s.mtime),d=c.getFullYear()-1980;if((d<0||d>119)&&aX(10),nu(t,e,d<<25|c.getMonth()+1<<21|c.getDate()<<16|c.getHours()<<11|c.getMinutes()<<5|c.getSeconds()>>1),e+=4,-1!=a&&(nu(t,e,s.crc),nu(t,e+4,a<0?-a-2:a),nu(t,e+8,s.size)),nu(t,e+12,h),nu(t,e+14,m),e+=16,null!=n&&(nu(t,e,p),nu(t,e+6,s.attrs),nu(t,e+10,n),e+=14),t.set(i,e),e+=h,m)for(var u in l){var f=l[u],g=f.length;nu(t,e,+u),nu(t,e+2,g),t.set(f,e+4),e+=4+g}return p&&(t.set(o,e),e+=p),e},nM=function(t,e,s,i,r){nu(t,e,0x6054b50),nu(t,e+8,s),nu(t,e+10,s),nu(t,e+12,i),nu(t,e+16,r)},nP="function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout?setTimeout:function(t){t()};class nA extends Error{}let nD=t=>{let e=JSON.parse(n_(t["manifest.json"],!1));if(!("animations"in e))throw Error("Manifest not found");if(0===e.animations.length)throw Error("No animations listed in manifest");return e},nT=t=>{let e=t?.split("/").pop()?.lastIndexOf(".");return(e??0)>1&&t&&t.length-1>(e??0)},nF=t=>{if("string"==typeof t&&t&&nT(t))return t.split(".").pop()?.toLowerCase()},nI=async t=>{let e=new Uint8Array(await t.arrayBuffer());return await new Promise((t,s)=>{!function(t,e,s){s||(s=e,e={}),"function"!=typeof s&&aX(7);var i=[],r=function(){for(var t=0;t<i.length;++t)i[t]()},a={},n=function(t,e){nP(function(){s(t,e)})};nP(function(){n=s});for(var o=t.length-22;0x6054b50!=nc(t,o);--o)if(!o||t.length-o>65558)return n(aX(13,0,1),null),r;var h=nm(t,o+8);if(h){var l=h,p=nc(t,o+16),m=0xffffffff==p||65535==l;if(m){var c=nc(t,o-12);(m=0x6064b50==nc(t,c))&&(l=h=nc(t,c+32),p=nc(t,c+48))}for(var d=e&&e.filter,u=0;u<l;++u)!function(e){var s=nE(t,p,m),o=s[0],l=s[1],c=s[2],u=s[3],f=s[4],g=s[5],y=g+30+nm(t,g+26)+nm(t,g+28);p=f;var b=function(t,e){t?(r(),n(t,null)):(e&&(a[u]=e),--h||n(null,a))};if(!d||d({name:u,size:l,originalSize:c,compression:o}))if(o)if(8==o){var v,x,w=t.subarray(y,y+l);if(c<524288||l>.8*c)try{b(null,ng(w,{out:new ax(c)}))}catch(t){b(t,null)}else i.push((v={size:c},(x=b)||(x=v,v={}),"function"!=typeof x&&aX(7),np(w,v,[nn],function(t){return nh(ng(t.data[0],nl(t.data[1])))},1,x)))}else b(aX(14,"unknown compression type "+o,1),null);else b(null,aY(t,y,y+l));else b(null,null)}(0)}else n(null,{})}(e,(e,i)=>{e&&s(e),t(i)})})},n$=async t=>await new Promise((e,s)=>{!function(t,e,s){s||(s=e,e={}),"function"!=typeof s&&aX(7);var i={};ny(t,"",i,e);var r=Object.keys(i),a=r.length,n=0,o=0,h=a,l=Array(a),p=[],m=function(){for(var t=0;t<p.length;++t)p[t]()},c=function(t,e){nP(function(){s(t,e)})};nP(function(){c=s});var d=function(){var t=new ax(o+22),e=n,s=o-n;o=0;for(var i=0;i<h;++i){var r=l[i];try{var a=r.c.length;nS(t,o,r,r.f,r.u,a);var p=30+r.f.length+nk(r.extra),m=o+p;t.set(r.c,m),nS(t,n,r,r.f,r.u,a,o,r.m),n+=16+p+(r.m?r.m.length:0),o=m+a}catch(t){return c(t,null)}}nM(t,n,l.length,s,e),c(null,t)};a||d();for(var u=function(t){var e,s,h=r[t],u=i[h],f=u[0],g=u[1],y=a7(),b=f.length;y.p(f);var v=nw(h),x=v.length,w=g.comment,_=w&&nw(w),E=_&&_.length,C=nk(g.extra),k=8*(0!=g.level),S=function(e,s){if(e)m(),c(e,null);else{var i=s.length;l[t]=ne(g,{size:b,crc:y.d(),c:s,f:v,m:_,u:x!=h.length||_&&w.length!=E,compression:k}),n+=30+x+C+i,o+=76+2*(x+C)+(E||0)+i,--a||d()}};if(x>65535&&S(aX(11,0,1),null),k)if(b<16e4)try{S(null,nf(f,g))}catch(t){S(t,null)}else p.push((e=g,(s=S)||(s=e,e={}),"function"!=typeof s&&aX(7),np(f,e,[no],function(t){return nh(nf(t.data[0],t.data[1]))},0,s)));else S(null,f)},f=0;f<h;++f)u(f)}(t,{level:9},(t,i)=>t?void s(t):i.buffer instanceof ArrayBuffer?void e(i.buffer):void s(Error("Data is not transferable")))}),nL=t=>{switch(t){case"svg":case"svg+xml":return"image/svg+xml";case"jpg":case"jpeg":return"image/jpeg";case"png":case"gif":case"webp":case"avif":return`image/${t}`;case"mp3":case"mpeg":case"wav":return`audio/${t}`;default:return""}},nN=t=>!("h"in t)&&!("w"in t)&&"p"in t&&"e"in t&&"u"in t&&"id"in t,nB=t=>"w"in t&&"h"in t&&!("xt"in t)&&"p"in t,nV=t=>t.slice(Math.max(0,t.indexOf(",")+1)),nR=t=>!!t&&/^(?:[0-9a-z+/]{4})*(?:[0-9a-z+/]{2}==|[0-9a-z+/]{3}=)?$/i.test(nV(t)),nz=async(t,e)=>{if(!Array.isArray(e))return;let s=[],{length:i}=e;for(let r=0;r<i;r++){if(!nN(e[r])&&!nB(e[r]))continue;let i=nB(e[r])?"images":"audio",n=t?.[`${i}/${e[r].p}`];n&&s.push(new Promise(t=>{let s;if(a())s=Buffer.from(n).toString("base64");else{let t="",{length:e}=n;for(let s=0;s<e;s++)t+=String.fromCharCode(n[s]);s=btoa(t)}e[r].p=e[r].p?.startsWith("data:")||nR(e[r].p)?e[r].p:`data:${nL(nF(e[r].p))};base64,${s}`,e[r].e=1,e[r].u="",t()}))}await Promise.all(s)},nO=t=>t.replaceAll(RegExp(/"""/,"g"),'""').replaceAll(/(["'])(.*?)\1/g,(t,e,s)=>{let i=s.replaceAll(/[^\w\s.#]/g,"");return`${e}${i}${e}`}),nG=async t=>{let e=await fetch(t),s=await e.blob();return new Promise((t,e)=>{try{let i=new FileReader;i.onload=()=>{if("string"==typeof i.result)return void t(i.result);e(Error("Could not create bas64"))},i.readAsDataURL(s)}catch(t){e(t)}})},nq=async t=>{let e=await nI(t),s=nD(e),i=[],r=[],{length:a}=s.animations,n="animations";e[`a/${s.animations[0].id}.json`]&&(n="a");for(let t=0;t<a;t++){let a=JSON.parse(nO(n_(e[`${n}/${s.animations[t].id}.json`]))),{length:o}=a.layers;for(let t=0;t<o;t++){let{ks:e}=a.layers[t],s=Object.keys(e),{length:i}=s;for(let r=0;r<i;r++){let{e:i,x:n}=e[s[r]];n&&i&&(a.layers[t].ks[s[r]].x=atob(n))}}r.push(nz(e,a.assets)),i.push(a)}return await Promise.all(r),{data:i,manifest:s}},nj=(t,e)=>{let s=new Blob([t],{type:e?.mimeType}),i=e?.name||n(),r=URL.createObjectURL(s),a=document.createElement("a");a.href=r,a.download=i,a.hidden=!0,document.body.appendChild(a),a.click(),setTimeout(()=>{a.remove(),URL.revokeObjectURL(r)},1e3)},nW=(t,e)=>(nF(t),`${t.split("/").pop()?.replace(/\.[^.]*$/,"").replaceAll(/\W+/g,"-")}`),nH=(t,e)=>{if(e)return nF(e)?nF(e)===t?e:`${nW(e)}.${t}`:`${e}.${t}`},nY=t=>{switch(t){case ap.Contain:case ap.ScaleDown:return _.Contain;case ap.Cover:return _.Cover;case ap.Fill:return _.Initial;case ap.None:return _.None;default:return _.Contain}},nU=t=>nw(a()?Buffer.from(nV(t),"base64").toString("binary"):atob(nV(t)),!0),nX=t=>t.split(":")[1].split(";")[0].split("/")[1].split("+")[0],nJ=t=>{let e={message:"Unknown error",status:a()?500:400};return t&&"object"==typeof t&&("message"in t&&"string"==typeof t.message&&(e.message=t.message),"status"in t&&(e.status=Number(t.status))),e},nZ=async({animations:t=[],fileName:e,manifest:s,shouldDownload:i=!0})=>{try{if(0===t.length||!s)throw Error(`Missing or malformed required parameter(s):
|
|
8
|
+
${t.length>0?"- manifest\n":""} ${s?"- animations\n":""}`);let r=nH("lottie",e)||`${n()}.lottie`,a={"manifest.json":[nw(JSON.stringify(s),!0),{level:0}]},{length:o}=t;for(let e=0;e<o;e++){let{length:i}=t[e].assets;for(let s=0;s<i;s++){let i=t[e].assets[s];if(!i.p||!nB(i)&&!nN(i))continue;let{p:r,u:o}=i;if(!r)continue;let h=n(),l=r.startsWith("data:"),p=l?nX(r):nF(r),m=l?r:await nG(o?o.endsWith("/")&&`${o}${r}`||`${o}/${r}`:r);t[e].assets[s].e=1,t[e].assets[s].p=`${h}.${p}`,t[e].assets[s].u="",a[`${nN(i)?"audio":"images"}/${h}.${p}`]=[nU(m),{level:9}]}let{length:r}=t[e].layers;for(let s=0;s<r;s++){let{ks:i}=t[e].layers[s],r=Object.keys(i),{length:a}=r;for(let n=0;n<a;n++){let{x:a}=i[r[n]];a&&(t[e].layers[s].ks[r[n]].x=btoa(a),t[e].layers[s].ks[r[n]].e=1)}}a[`a/${s.animations[e].id}.json`]=[nw(JSON.stringify(t[e]),!0),{level:9}]}let h=await n$(a);if(i)return nj(h,{mimeType:"application/zip",name:r}),null;return h}catch(t){return console.error(`❌ ${nJ(t).message}`),null}},nK=({animation:t,fileName:e,shouldDownload:s})=>{try{if(!t)throw Error("createJSON: Missing or malformed required parameter(s):\n - animation\n'");let i=nH("json",e)||`${n()}.json`,r=JSON.stringify(t);s&&nj(r,{mimeType:"application/json",name:i});return}catch(t){console.error(`❌ ${nJ(t).message}`)}},nQ=t=>((t??0)+1).toString().padStart(3,"0"),n0=async t=>{try{if(!t||"string"!=typeof t&&"object"!=typeof t)throw Error("Broken file or invalid file format");if("string"!=typeof t)return{animations:Array.isArray(t)?t:[t],isDotLottie:!1,manifest:null};let e=await fetch(t,{headers:{"Content-Type":"application/json; charset=UTF-8"}});if(!e.ok){let t=new nA(e.statusText);throw t.status=e.status,t}let s=!0,i=e.headers.get("content-type");if("application/zip+dotlottie"===i&&(s=!1),s){let s=nF(t);if("json"===s)return{animations:[await e.json()],isDotLottie:!1,manifest:null};let i=await e.clone().text();try{return{animations:[JSON.parse(i)],isDotLottie:!1,manifest:null}}catch(t){}}let{data:r,manifest:a}=await nq(e);return{animations:r,isDotLottie:!0,manifest:a}}catch(t){return console.error(`❌ ${nJ(t).message}`),{animations:void 0,isDotLottie:!1,manifest:null}}},n1="@aarsteinmedia/dotlottie-player";class n2 extends al{static get observedAttributes(){return["animateOnScroll","autoplay","controls","direction","hover","loop","mode","speed","src","subframe"]}static get observedProperties(){return["playerState","_isSettingsOpen","_seeker","_currentAnimation","_animations"]}static get styles(){return async()=>{let t=new CSSStyleSheet;return await t.replace("* {\n box-sizing: border-box;\n}\n\n:host {\n --lottie-player-toolbar-height: 35px;\n --lottie-player-toolbar-background-color: #fff;\n --lottie-player-toolbar-icon-color: #000;\n --lottie-player-toolbar-icon-hover-color: #000;\n --lottie-player-toolbar-icon-active-color: #4285f4;\n --lottie-player-seeker-track-color: rgb(0 0 0 / 20%);\n --lottie-player-seeker-thumb-color: #4285f4;\n --lottie-player-seeker-display: block;\n\n width: 100%;\n height: 100%;\n\n &:not([hidden]) {\n display: block;\n }\n\n .main {\n display: flex;\n flex-direction: column;\n height: 100%;\n width: 100%;\n margin: 0;\n padding: 0;\n }\n\n .animation {\n width: 100%;\n height: 100%;\n display: flex;\n margin: 0;\n padding: 0;\n }\n\n [data-controls='true'] .animation {\n height: calc(100% - 35px);\n }\n\n .animation-container {\n position: relative;\n }\n\n .popover {\n position: absolute;\n right: 5px;\n bottom: 40px;\n background-color: var(--lottie-player-toolbar-background-color);\n border-radius: 5px;\n padding: 10px 15px;\n border: solid 2px var(--lottie-player-toolbar-icon-color);\n animation: fade-in 0.2s ease-in-out;\n\n &::before {\n content: '';\n right: 10px;\n border: 7px solid transparent;\n margin-right: -7px;\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n top: 100%;\n border-top-color: var(--lottie-player-toolbar-icon-color);\n }\n }\n\n .error {\n display: flex;\n margin: auto;\n justify-content: center;\n height: 100%;\n align-items: center;\n\n & svg {\n width: 100%;\n height: auto;\n }\n }\n\n .toolbar {\n display: flex;\n place-items: center center;\n background: var(--lottie-player-toolbar-background-color);\n margin: 0;\n height: 35px;\n padding: 5px;\n border-radius: 5px;\n gap: 5px;\n\n &.has-error {\n pointer-events: none;\n opacity: 0.5;\n }\n\n & button {\n cursor: pointer;\n fill: var(--lottie-player-toolbar-icon-color);\n color: var(--lottie-player-toolbar-icon-color);\n background: none;\n border: 0;\n padding: 0;\n outline: 0;\n height: 100%;\n margin: 0;\n align-items: center;\n gap: 5px;\n opacity: 0.9;\n\n &:not([hidden]) {\n display: flex;\n }\n\n &:hover {\n opacity: 1;\n }\n\n &[data-active='true'] {\n opacity: 1;\n fill: var(--lottie-player-toolbar-icon-active-color);\n }\n\n &:disabled {\n opacity: 0.5;\n }\n\n &:focus {\n outline: 0;\n }\n\n & svg {\n pointer-events: none;\n\n & > * {\n fill: inherit;\n }\n }\n\n &.disabled svg {\n display: none;\n }\n }\n }\n\n .progress-container {\n position: relative;\n width: 100%;\n\n &.simple {\n margin-right: 12px;\n }\n }\n\n .seeker {\n appearance: none;\n outline: none;\n width: 100%;\n height: 20px;\n border-radius: 3px;\n border: 0;\n cursor: pointer;\n background-color: transparent;\n\n display: var(--lottie-player-seeker-display);\n color: var(--lottie-player-seeker-thumb-color);\n margin: 0;\n padding: 7.5px 0;\n position: relative;\n z-index: 1;\n\n &::-webkit-slider-runnable-track,\n &::-webkit-slider-thumb {\n appearance: none;\n outline: none;\n }\n\n &::-webkit-slider-thumb {\n height: 15px;\n width: 15px;\n border-radius: 50%;\n border: 0;\n background-color: var(--lottie-player-seeker-thumb-color);\n cursor: pointer;\n -webkit-transition: transform 0.2s ease-in-out;\n transition: transform 0.2s ease-in-out;\n transform: scale(0);\n }\n\n &:hover::-webkit-slider-thumb,\n &:focus::-webkit-slider-thumb {\n transform: scale(1);\n }\n\n &::-moz-range-progress {\n background-color: var(--lottie-player-seeker-thumb-color);\n height: 5px;\n border-radius: 3px;\n }\n\n &::-moz-range-thumb {\n height: 15px;\n width: 15px;\n border-radius: 50%;\n background-color: var(--lottie-player-seeker-thumb-color);\n border: 0;\n cursor: pointer;\n -moz-transition: transform 0.2s ease-in-out;\n transition: transform 0.2s ease-in-out;\n transform: scale(0);\n }\n\n &:hover::-moz-range-thumb,\n &:focus::-moz-range-thumb {\n transform: scale(1);\n }\n\n &::-ms-track {\n width: 100%;\n height: 5px;\n cursor: pointer;\n background: transparent;\n border-color: transparent;\n color: transparent;\n }\n\n &::-ms-fill-upper {\n background: var(--lottie-player-seeker-track-color);\n border-radius: 3px;\n }\n\n &::-ms-fill-lower {\n background-color: var(--lottie-player-seeker-thumb-color);\n border-radius: 3px;\n }\n\n &::-ms-thumb {\n border: 0;\n height: 15px;\n width: 15px;\n border-radius: 50%;\n background: var(--lottie-player-seeker-thumb-color);\n cursor: pointer;\n -ms-transition: transform 0.2s ease-in-out;\n transition: transform 0.2s ease-in-out;\n transform: scale(0);\n }\n\n &:hover::-ms-thumb {\n transform: scale(1);\n }\n\n &:focus {\n &::-ms-thumb {\n transform: scale(1);\n }\n\n &::-ms-fill-lower,\n &::-ms-fill-upper {\n background: var(--lottie-player-seeker-track-color);\n }\n }\n }\n\n & progress {\n appearance: none;\n outline: none;\n position: absolute;\n width: 100%;\n height: 5px;\n border-radius: 3px;\n border: 0;\n top: 0;\n left: 0;\n margin: 7.5px 0;\n background-color: var(--lottie-player-seeker-track-color);\n pointer-events: none;\n\n &::-webkit-progress-inner-element {\n border-radius: 3px;\n overflow: hidden;\n }\n\n &::-webkit-slider-runnable-track {\n background-color: transparent;\n }\n\n &::-webkit-progress-value {\n background-color: var(--lottie-player-seeker-thumb-color);\n }\n }\n\n & *::-moz-progress-bar {\n background-color: var(--lottie-player-seeker-thumb-color);\n }\n}\n\n@keyframes fade-in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@media (prefers-color-scheme: dark) {\n :host {\n --lottie-player-toolbar-background-color: #000;\n --lottie-player-toolbar-icon-color: #fff;\n --lottie-player-toolbar-icon-hover-color: #fff;\n --lottie-player-seeker-track-color: rgb(255 255 255 / 60%);\n }\n}\n"),t}}set animateOnScroll(t){this.setAttribute("animateOnScroll",(!!t).toString())}get animateOnScroll(){let t=this.getAttribute("animateOnScroll");return"true"===t||""===t||"1"===t}set autoplay(t){this.setAttribute("autoplay",(!!t).toString())}get autoplay(){let t=this.getAttribute("autoplay");return"true"===t||""===t||"1"===t}set background(t){this.setAttribute("background",t)}get background(){return this.getAttribute("background")||"transparent"}set controls(t){this.setAttribute("controls",(!!t).toString())}get controls(){let t=this.getAttribute("controls");return"true"===t||""===t||"1"===t}set count(t){this.setAttribute("count",t.toString())}get count(){let t=this.getAttribute("count");return t?Number(t):0}set description(t){t&&this.setAttribute("description",t)}get description(){return this.getAttribute("description")}set direction(t){this.setAttribute("direction",t.toString())}get direction(){let t=Number(this.getAttribute("direction"));return -1===t?t:1}set hover(t){this.setAttribute("hover",t.toString())}get hover(){let t=this.getAttribute("hover");return"true"===t||""===t||"1"===t}set intermission(t){this.setAttribute("intermission",t.toString())}get intermission(){let t=Number(this.getAttribute("intermission"));return isNaN(t)?0:t}set loop(t){this.setAttribute("loop",(!!t).toString())}get loop(){let t=this.getAttribute("loop");return"true"===t||""===t||"1"===t}set mode(t){this.setAttribute("mode",t.toString())}get mode(){let t=this.getAttribute("mode");return t===ac.Bounce?t:ac.Normal}set objectfit(t){this.setAttribute("objectfit",t)}get objectfit(){let t=this.getAttribute("objectfit");return t&&Object.values(ap).includes(t)?t:ap.Contain}set preserveAspectRatio(t){this.setAttribute("preserveAspectRatio",t||au.Contain)}get preserveAspectRatio(){let t=this.getAttribute("preserveAspectRatio");return t&&Object.values(au).includes(t)?t:null}set renderer(t){this.setAttribute("renderer",t)}get renderer(){let t=this.getAttribute("renderer");return t===af.Canvas||t===af.HTML?t:af.SVG}set simple(t){this.setAttribute("simple",t.toString())}get simple(){let t=this.getAttribute("simple");return"true"===t||""===t||"1"===t}set speed(t){this.setAttribute("speed",t.toString())}get speed(){let t=this.getAttribute("speed");return null===t||isNaN(Number(t))?1:Number(t)}set src(t){this.setAttribute("src",t||"")}get src(){return this.getAttribute("src")}set subframe(t){this.setAttribute("subframe",(!!t).toString())}get subframe(){let t=this.getAttribute("subframe");return"true"===t||""===t||"1"===t}constructor(){super(),this.playerState=am.Loading,this._container=null,this._errorMessage="Something went wrong",this._identifier=this.id||n(),this._isSettingsOpen=!1,this._playerState={count:0,loaded:!1,prev:am.Loading,scrollTimeout:null,scrollY:0,visible:!1},this._render=ay,this._renderControls=ag,this._seeker=0,this._animations=[],this._currentAnimation=0,this._isBounce=!1,this._isDotLottie=!1,this._lottieInstance=null,this._multiAnimationSettings=[],this._handleSettingsClick=({target:t})=>{this._toggleSettings(),t instanceof HTMLElement&&t.focus()},this._complete=this._complete.bind(this),this._dataFailed=this._dataFailed.bind(this),this._dataReady=this._dataReady.bind(this),this._DOMLoaded=this._DOMLoaded.bind(this),this._enterFrame=this._enterFrame.bind(this),this._freeze=this._freeze.bind(this),this._handleBlur=this._handleBlur.bind(this),this._handleScroll=this._handleScroll.bind(this),this._handleSeekChange=this._handleSeekChange.bind(this),this._handleWindowBlur=this._handleWindowBlur.bind(this),this._loopComplete=this._loopComplete.bind(this),this._mouseEnter=this._mouseEnter.bind(this),this._mouseLeave=this._mouseLeave.bind(this),this._onVisibilityChange=this._onVisibilityChange.bind(this),this._switchInstance=this._switchInstance.bind(this),this.togglePlay=this.togglePlay.bind(this),this.stop=this.stop.bind(this),this.prev=this.prev.bind(this),this.next=this.next.bind(this),this._renderControls=this._renderControls.bind(this),this.snapshot=this.snapshot.bind(this),this.toggleLoop=this.toggleLoop.bind(this),this.toggleBoomerang=this.toggleBoomerang.bind(this),this.convert=this.convert.bind(this),this.destroy=this.destroy.bind(this),this.template=document.createElement("template"),this.shadow=this.attachShadow({mode:"open"})}async addAnimation(t,e,s=!0){let{animations:i=[],manifest:r={animations:this.src?[{id:this._identifier}]:[]}}=this.src?await n0(this.src):{};try{if(!r)throw Error("Manifest is not set");r.generator=n1;let{length:a}=t;for(let e=0;e<a;e++){let{url:s}=t[e],{animations:a}=await n0(s);if(!a)throw Error("No animation loaded");if(r.animations.some(({id:s})=>s===t[e].id))throw Error("Duplicate id for animation");r.animations=[...r.animations,{id:t[e].id}],i.push(...a)}return{result:await nZ({animations:i,fileName:e,manifest:r,shouldDownload:s}),success:!0}}catch(t){return{error:nJ(t).message,success:!1}}}async attributeChangedCallback(t,e,s){if(this._lottieInstance&&this.shadow){if("animateOnScroll"===t){if(""===s||s){this._lottieInstance.autoplay=!1,addEventListener("scroll",this._handleScroll,{capture:!0,passive:!0});return}removeEventListener("scroll",this._handleScroll,!0)}if("autoplay"===t){if(this.animateOnScroll)return;if(""===s||s)return void this.play();this.stop()}if("controls"===t&&this._renderControls(),"direction"===t){if(-1===Number(s))return void this.setDirection(-1);this.setDirection(1)}if("hover"===t&&this._container){if(""===s||s){this._container.addEventListener("mouseenter",this._mouseEnter),this._container.addEventListener("mouseleave",this._mouseLeave);return}this._container.removeEventListener("mouseenter",this._mouseEnter),this._container.removeEventListener("mouseleave",this._mouseLeave)}if("loop"===t){let t=this.shadow.querySelector(".toggleLoop");t instanceof HTMLButtonElement&&(t.dataset.active=s),this.setLoop(""===s||!!s)}if("mode"===t){let t=this.shadow.querySelector(".toggleBoomerang");t instanceof HTMLButtonElement&&(t.dataset.active=(s===ac.Bounce).toString()),this._isBounce=s===ac.Bounce}if("speed"===t){let t=Number(s);t&&!isNaN(t)&&this.setSpeed(t)}"src"===t&&await this.load(s),"subframe"===t&&this.setSubframe(""===s||!!s)}}async connectedCallback(){if(await super.connectedCallback(),await this._render(),!this.shadow)throw Error("Missing Shadow element");this._container=this.shadow.querySelector(".animation"),this._renderControls(),void 0!==document.hidden&&document.addEventListener("visibilitychange",this._onVisibilityChange),this._addIntersectionObserver(),await this.load(this.src),this.dispatchEvent(new CustomEvent(ad.Rendered))}async convert({animations:t,fileName:e,manifest:s,shouldDownload:i=!0,src:r,typeCheck:a}){let n=r||this.src||this.source;if(!n)throw Error("No animation to convert");if(a||this._isDotLottie){let t=await n0(n);nK({animation:t.animations?.[0],fileName:`${nW(e||n||"converted")}.json`,shouldDownload:i});return}let o=t;return o||(o=(await n0(n)).animations),nZ({animations:o,fileName:`${nW(e||n||"converted")}.lottie`,manifest:{...s??this._manifest,generator:n1},shouldDownload:i})}destroy(){this._lottieInstance?.destroy&&(this.playerState=am.Destroyed,this._lottieInstance.destroy(),this._lottieInstance=null,this.dispatchEvent(new CustomEvent(ad.Destroyed)),this.remove(),document.removeEventListener("visibilitychange",this._onVisibilityChange))}disconnectedCallback(){this._intersectionObserver&&(this._intersectionObserver.disconnect(),this._intersectionObserver=void 0),document.removeEventListener("visibilitychange",this._onVisibilityChange),this.destroy()}getLottie(){return this._lottieInstance}getManifest(){return this._manifest}getMultiAnimationSettings(){return this._multiAnimationSettings}getSegment(){return this._segment}async load(t){if(!this.shadowRoot||!t)return;this.source=t;try{let{animations:e,isDotLottie:s,manifest:i}=await n0(t);if(!e||e.some(t=>!this._isLottie(t)))throw Error("Broken or corrupted file");this._isBounce=this.mode===ac.Bounce,this._multiAnimationSettings.length>0&&this._multiAnimationSettings[this._currentAnimation]?.mode&&(this._isBounce=this._multiAnimationSettings[this._currentAnimation].mode===ac.Bounce),i?.animations.length===1&&(i.animations[0].autoplay=this.autoplay,i.animations[0].loop=this.loop),this._isDotLottie=!!s,this._animations=e,this._manifest=i??{animations:[{autoplay:!this.animateOnScroll&&this.autoplay,direction:this.direction,id:n(),loop:this.loop,mode:this.mode,speed:this.speed}]},this._lottieInstance?.destroy(),this.playerState=am.Stopped,!this.animateOnScroll&&(this.autoplay||this._multiAnimationSettings[this._currentAnimation]?.autoplay)&&(this.playerState=am.Playing),this._lottieInstance=an.loadAnimation({...this._getOptions(),animationData:e[this._currentAnimation]})}catch(t){this._errorMessage=nJ(t).message,this.playerState=am.Error,this.dispatchEvent(new CustomEvent(ad.Error));return}this._addEventListeners();let e=this._multiAnimationSettings[this._currentAnimation]?.speed??this.speed,s=this._multiAnimationSettings[this._currentAnimation]?.direction??this.direction;this._lottieInstance.setSpeed(e),this._lottieInstance.setDirection(s),this._lottieInstance.setSubframe(!!this.subframe),(this.autoplay||this.animateOnScroll)&&(-1===this.direction&&this.seek("99%"),"IntersectionObserver"in window||(this.animateOnScroll||this.play(),this._playerState.visible=!0),this._addIntersectionObserver())}next(){this._currentAnimation++,this._switchInstance()}pause(){if(this._lottieInstance){this._playerState.prev=this.playerState;try{this._lottieInstance.pause(),this.dispatchEvent(new CustomEvent(ad.Pause))}finally{this.playerState=am.Paused}}}play(){if(this._lottieInstance){this._playerState.prev=this.playerState;try{this._lottieInstance.play(),this.dispatchEvent(new CustomEvent(ad.Play))}finally{this.playerState=am.Playing}}}prev(){this._currentAnimation--,this._switchInstance(!0)}propertyChangedCallback(t,e,s){if(!this.shadow)return;let i=this.shadow.querySelector(".togglePlay"),r=this.shadow.querySelector(".stop"),a=this.shadow.querySelector(".prev"),n=this.shadow.querySelector(".next"),o=this.shadow.querySelector(".seeker"),h=this.shadow.querySelector("progress"),l=this.shadow.querySelector(".popover"),p=this.shadow.querySelector(".convert"),m=this.shadow.querySelector(".snapshot");i instanceof HTMLButtonElement&&r instanceof HTMLButtonElement&&n instanceof HTMLButtonElement&&a instanceof HTMLButtonElement&&o instanceof HTMLInputElement&&h instanceof HTMLProgressElement&&("playerState"===t&&(i.dataset.active=(s===am.Playing||s===am.Paused).toString(),r.dataset.active=(s===am.Stopped).toString(),s===am.Playing?i.innerHTML='<svg width="24" height="24" aria-hidden="true" focusable="false"><path d="M14.016 5.016H18v13.969h-3.984V5.016zM6 18.984V5.015h3.984v13.969H6z"/></svg>':i.innerHTML='<svg width="24" height="24" aria-hidden="true" focusable="false"><path d="M8.016 5.016L18.985 12 8.016 18.984V5.015z"/></svg>'),"_seeker"===t&&"number"==typeof s&&(o.value=s.toString(),o.ariaValueNow=s.toString(),h.value=s),"_animations"===t&&Array.isArray(s)&&this._currentAnimation+1<s.length&&(n.hidden=!1),"_currentAnimation"===t&&"number"==typeof s&&(n.hidden=s+1>=this._animations.length,a.hidden=!!s),"_isSettingsOpen"===t&&"boolean"==typeof s&&l instanceof HTMLDivElement&&p instanceof HTMLButtonElement&&m instanceof HTMLButtonElement&&(l.hidden=!s,p.hidden=this._isDotLottie,m.hidden=this.renderer!==af.SVG))}async reload(){this._lottieInstance&&this.src&&(this._lottieInstance.destroy(),await this.load(this.src))}seek(t){if(!this._lottieInstance)return;let e=t.toString().match(/^(\d+)(%?)$/);if(!e)return;let s=Math.round("%"===e[2]?this._lottieInstance.totalFrames*Number(e[1])/100:Number(e[1]));if(this._seeker=s,this.playerState===am.Playing||this.playerState===am.Frozen&&this._playerState.prev===am.Playing){this._lottieInstance.goToAndPlay(s,!0),this.playerState=am.Playing;return}this._lottieInstance.goToAndStop(s,!0),this._lottieInstance.pause()}setCount(t){this.count=t}setDirection(t){this._lottieInstance&&this._lottieInstance.setDirection(t)}setLoop(t){this._lottieInstance&&this._lottieInstance.setLoop(t)}setMultiAnimationSettings(t){this._multiAnimationSettings=t}setSegment(t){this._segment=t}setSpeed(t=1){this._lottieInstance&&this._lottieInstance.setSpeed(t)}setSubframe(t){this._lottieInstance&&this._lottieInstance.setSubframe(t)}snapshot(t=!0,e="AM Lottie"){try{if(!this.shadowRoot)throw Error("Unknown error");let s=this.shadowRoot.querySelector(".animation svg");if(!s)throw Error("Could not retrieve animation from DOM");let i=s instanceof Node?new XMLSerializer().serializeToString(s):null;if(!i)throw Error("Could not serialize SVG element");return t&&nj(i,{mimeType:"image/svg+xml",name:`${nW(this.src||e)}-${nQ(this._seeker)}.svg`}),i}catch(t){return console.error(t),null}}stop(){if(this._lottieInstance){this._playerState.prev=this.playerState,this._playerState.count=0;try{this._lottieInstance.stop(),this.dispatchEvent(new CustomEvent(ad.Stop))}finally{this.playerState=am.Stopped}}}toggleBoomerang(){let t=this._multiAnimationSettings[this._currentAnimation];if(void 0!==t.mode){if(t.mode===ac.Normal){t.mode=ac.Bounce,this._isBounce=!0;return}t.mode=ac.Normal,this._isBounce=!1;return}if(this.mode===ac.Normal){this.mode=ac.Bounce,this._isBounce=!0;return}this.mode=ac.Normal,this._isBounce=!1}toggleLoop(){let t=!this.loop;this.loop=t,this.setLoop(t)}togglePlay(){if(!this._lottieInstance)return;let{currentFrame:t,playDirection:e,totalFrames:s}=this._lottieInstance;if(this.playerState===am.Playing)return void this.pause();if(this.playerState!==am.Completed)return void this.play();if(this.playerState=am.Playing,this._isBounce){this.setDirection(-1*e),this._lottieInstance.goToAndPlay(t,!0);return}if(-1===e)return void this._lottieInstance.goToAndPlay(s,!0);this._lottieInstance.goToAndPlay(0,!0)}_freeze(){if(this._lottieInstance){this._playerState.prev=this.playerState;try{this._lottieInstance.pause(),this.dispatchEvent(new CustomEvent(ad.Freeze))}finally{this.playerState=am.Frozen}}}_handleBlur(){setTimeout(()=>{this._toggleSettings(!1)},200)}_handleSeekChange({target:t}){!(!(t instanceof HTMLInputElement)||!this._lottieInstance||isNaN(Number(t.value)))&&this.seek(Math.round(Number(t.value)/100*this._lottieInstance.totalFrames))}_addEventListeners(){this._toggleEventListeners("add")}_addIntersectionObserver(){this._container&&!this._intersectionObserver&&"IntersectionObserver"in window&&(this._intersectionObserver=new IntersectionObserver(t=>{let{length:e}=t;for(let s=0;s<e;s++){if(!t[s].isIntersecting||document.hidden){this.playerState===am.Playing&&this._freeze(),this._playerState.visible=!1;continue}this.animateOnScroll||this.playerState!==am.Frozen||this.play(),this._playerState.scrollY||(this._playerState.scrollY=scrollY),this._playerState.visible=!0}}),this._intersectionObserver.observe(this._container))}_complete(){if(!this._lottieInstance)return;if(this._animations.length>1){if(this._multiAnimationSettings[this._currentAnimation+1]?.autoplay)return void this.next();if(this.loop&&this._currentAnimation===this._animations.length-1){this._currentAnimation=0,this._switchInstance();return}}let{currentFrame:t,totalFrames:e}=this._lottieInstance;this._seeker=Math.round(t/e*100),this.playerState=am.Completed,this.dispatchEvent(new CustomEvent(ad.Complete,{detail:{frame:t,seeker:this._seeker}}))}_dataFailed(){this.playerState=am.Error,this.dispatchEvent(new CustomEvent(ad.Error))}_dataReady(){this.dispatchEvent(new CustomEvent(ad.Load))}_DOMLoaded(){this._playerState.loaded=!0,this.dispatchEvent(new CustomEvent(ad.Ready))}_enterFrame(){if(!this._lottieInstance)return;let{currentFrame:t,totalFrames:e}=this._lottieInstance;this._seeker=Math.round(t/e*100),this.dispatchEvent(new CustomEvent(ad.Frame,{detail:{frame:t,seeker:this._seeker}}))}_getOptions(){if(!this._container)throw Error("Container not rendered");let t=this.preserveAspectRatio??nY(this.objectfit),e=this._multiAnimationSettings.length>0?this._multiAnimationSettings[this._currentAnimation]:void 0,s=this._manifest?.animations[this._currentAnimation],i=!!this.loop;s?.loop!==void 0&&(i=!!s.loop),e?.loop!==void 0&&(i=!!e.loop);let r=!!this.autoplay;s?.autoplay!==void 0&&(r=!!s.autoplay),e?.autoplay!==void 0&&(r=!!e.autoplay),this.animateOnScroll&&(r=!1);let a=this._segment;this._segment?.every(t=>t>0)&&(a=[this._segment[0]-1,this._segment[1]-1]),this._segment?.some(t=>t<0)&&(a=void 0);let n={autoplay:r,container:this._container,initialSegment:a,loop:i,renderer:this.renderer,rendererSettings:{imagePreserveAspectRatio:t}};switch(this.renderer){case af.SVG:n.rendererSettings={...n.rendererSettings,hideOnTransparent:!0,preserveAspectRatio:t,progressiveLoad:!0};break;case af.Canvas:n.rendererSettings={...n.rendererSettings,clearCanvas:!0,preserveAspectRatio:t,progressiveLoad:!0};break;case af.HTML:n.rendererSettings={...n.rendererSettings,hideOnTransparent:!0}}return n}_handleScroll(){if(this.animateOnScroll&&this._lottieInstance){if(a())return void console.warn("DotLottie: Scroll animations might not work properly in a Server Side Rendering context. Try to wrap this in a client component.");if(this._playerState.visible){this._playerState.scrollTimeout&&clearTimeout(this._playerState.scrollTimeout),this._playerState.scrollTimeout=setTimeout(()=>{this.playerState=am.Paused},400);let t=Math.min(Math.max((scrollY>this._playerState.scrollY?scrollY-this._playerState.scrollY:this._playerState.scrollY-scrollY)/3,1),3*this._lottieInstance.totalFrames)/3;requestAnimationFrame(()=>{t<(this._lottieInstance?.totalFrames??0)?(this.playerState=am.Playing,this._lottieInstance?.goToAndStop(t,!0)):this.playerState=am.Paused})}}}_handleWindowBlur({type:t}){this.playerState===am.Playing&&"blur"===t&&this._freeze(),this.playerState===am.Frozen&&"focus"===t&&this.play()}_isLottie(t){return["v","ip","op","layers","fr","w","h"].every(e=>Object.hasOwn(t,e))}_loopComplete(){if(!this._lottieInstance)return;let{playDirection:t,totalFrames:e}=this._lottieInstance,s=this._segment?this._segment[0]:0,i=this._segment?this._segment[0]:e;if(this.count&&(this._isBounce?this._playerState.count+=.5:this._playerState.count+=1,this._playerState.count>=this.count)){this.setLoop(!1),this.playerState=am.Completed,this.dispatchEvent(new CustomEvent(ad.Complete));return}return(this.dispatchEvent(new CustomEvent(ad.Loop)),this._isBounce)?(this._lottieInstance.goToAndStop(-1===t?s:.99*i,!0),this._lottieInstance.setDirection(-1*t),setTimeout(()=>{this.animateOnScroll||this._lottieInstance?.play()},this.intermission)):(this._lottieInstance.goToAndStop(-1===t?.99*i:s,!0),setTimeout(()=>{this.animateOnScroll||this._lottieInstance?.play()},this.intermission))}_mouseEnter(){this.hover&&this.playerState!==am.Playing&&this.play()}_mouseLeave(){this.hover&&this.playerState===am.Playing&&this.stop()}_onVisibilityChange(){if(document.hidden&&this.playerState===am.Playing)return void this._freeze();this.playerState===am.Frozen&&this.play()}_removeEventListeners(){this._toggleEventListeners("remove")}_switchInstance(t=!1){if(this._animations[this._currentAnimation])try{if(this._lottieInstance&&this._lottieInstance.destroy(),this._lottieInstance=an.loadAnimation({...this._getOptions(),animationData:this._animations[this._currentAnimation]}),this._multiAnimationSettings[this._currentAnimation]?.mode&&(this._isBounce=this._multiAnimationSettings[this._currentAnimation].mode===ac.Bounce),this._removeEventListeners(),this._addEventListeners(),this.dispatchEvent(new CustomEvent(t?ad.Previous:ad.Next)),this._multiAnimationSettings[this._currentAnimation]?.autoplay??this.autoplay){if(this.animateOnScroll){this._lottieInstance.goToAndStop(0,!0),this.playerState=am.Paused;return}this._lottieInstance.goToAndPlay(0,!0),this.playerState=am.Playing;return}this._lottieInstance.goToAndStop(0,!0),this.playerState=am.Stopped}catch(t){this._errorMessage=nJ(t).message,this.playerState=am.Error,this.dispatchEvent(new CustomEvent(ad.Error))}}_toggleEventListeners(t){let e="add"===t?"addEventListener":"removeEventListener";this._lottieInstance&&(this._lottieInstance[e]("enterFrame",this._enterFrame),this._lottieInstance[e]("complete",this._complete),this._lottieInstance[e]("loopComplete",this._loopComplete),this._lottieInstance[e]("DOMLoaded",this._DOMLoaded),this._lottieInstance[e]("data_ready",this._dataReady),this._lottieInstance[e]("data_failed",this._dataFailed)),this._container&&this.hover&&(this._container[e]("mouseenter",this._mouseEnter),this._container[e]("mouseleave",this._mouseLeave)),window[e]("focus",this._handleWindowBlur,{capture:!1,passive:!0}),window[e]("blur",this._handleWindowBlur,{capture:!1,passive:!0}),this.animateOnScroll&&window[e]("scroll",this._handleScroll,{capture:!0,passive:!0})}_toggleSettings(t){if(void 0===t){this._isSettingsOpen=!this._isSettingsOpen;return}this._isSettingsOpen=t}}globalThis.dotLottiePlayer=()=>new n2;let n3="dotlottie-player";a()||customElements.define(n3,n2),t.PlayMode=ac,t.PlayerEvents=ad,t.PlayerState=am,t.default=n2,t.tagName=n3,Object.defineProperty(t,"__esModule",{value:!0})}(this["@aarsteinmedia/dotlottie-player"]=this["@aarsteinmedia/dotlottie-player"]||{});
|