"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[244],{78720:function(t,e,i){i.d(e,{ZP:function(){return N}});var s,a,r,n=i(2265);"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var o,h={exports:{}};o=h.exports,"undefined"!=typeof navigator&&(h.exports=function(){var t,e,i="",s=!1,a=function(t){i=t},r=function(){return i};function n(t){return document.createElement(t)}function h(t,e){var i,s,a=t.length;for(i=0;i<a;i+=1)for(var r in s=t[i].prototype)Object.prototype.hasOwnProperty.call(s,r)&&(e.prototype[r]=s[r])}var l=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._volume*(this._isMuted?0:1))}},function(){return new t}}(),p=function(){function t(t,e){var i,s=0,a=[];switch(t){case"int16":case"uint8c":i=1;break;default:i=1.1}for(s=0;s<e;s+=1)a.push(i);return a}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(e,i){return"float32"===e?new Float32Array(i):"int16"===e?new Int16Array(i):"uint8c"===e?new Uint8ClampedArray(i):t(e,i)}:t}();function d(t){return Array.apply(null,{length:t})}var f=!0,m=null,u="",c=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),g=Math.pow,v=Math.sqrt,y=Math.floor,b=Math.min,_=150,k=Math.PI/180;function w(t,e,i,s){this.type=t,this.currentTime=e,this.totalTime=i,this.direction=s<0?-1:1}function S(t,e){this.type=t,this.direction=e<0?-1:1}function A(t,e,i,s){this.type=t,this.currentLoop=i,this.totalLoops=e,this.direction=s<0?-1:1}function D(t,e,i){this.type=t,this.firstFrame=e,this.totalFrames=i}function P(t,e){this.type=t,this.target=e}function T(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function E(t){this.type="configError",this.nativeError=t}var C,F=(C=0,function(){return u+"__lottie_element_"+(C+=1)});function x(t,e,i){var s,a,r,n,o,h,l,p;switch(h=i*(1-e),l=i*(1-(o=6*t-(n=Math.floor(6*t)))*e),p=i*(1-(1-o)*e),n%6){case 0:s=i,a=p,r=h;break;case 1:s=l,a=i,r=h;break;case 2:s=h,a=i,r=p;break;case 3:s=h,a=l,r=i;break;case 4:s=p,a=h,r=i;break;case 5:s=i,a=h,r=l}return[s,a,r]}function M(t,e,i){var s,a=Math.max(t,e,i),r=Math.min(t,e,i),n=a-r;switch(a){case r:s=0;break;case t:s=(e-i+n*(e<i?6:0))/(6*n);break;case e:s=(i-t+2*n)/(6*n);break;case i:s=(t-e+4*n)/(6*n)}return[s,0===a?0:n/a,a/255]}function I(t,e){var i=M(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),x(i[0],i[1],i[2])}function L(t,e){var i=M(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),x(i[0],i[1],i[2])}function R(t,e){var i=M(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),x(i[0],i[1],i[2])}var O=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]}}(),V=function(t){f=!!t},N=function(t){m=t},z=function(){return m},B=function(t){_=t},j=function(){return _},q=function(t){u=t};function W(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function $(t){return($="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 H=function(){var t,e,i=1,a=[],r={onmessage:function(){},postMessage:function(e){t({data:e})}},n={postMessage:function(t){r.onmessage({data:t})}};function o(){e||((e=function(e){if(window.Worker&&window.Blob&&s){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(t){if(n.dataManager||(n.dataManager=function(){function t(a,r){var n,o,h,l,p,d,f=a.length;for(o=0;o<f;o+=1)if("ks"in(n=a[o])&&!n.completed){if(n.completed=!0,n.hasMask){var m=n.masksProperties;for(l=m.length,h=0;h<l;h+=1)if(m[h].pt.k.i)s(m[h].pt.k);else for(d=m[h].pt.k.length,p=0;p<d;p+=1)m[h].pt.k[p].s&&s(m[h].pt.k[p].s[0]),m[h].pt.k[p].e&&s(m[h].pt.k[p].e[0])}0===n.ty?(n.layers=e(n.refId,r),t(n.layers,r)):4===n.ty?i(n.shapes):5===n.ty&&0===n.t.a.length&&n.t.p}}function e(t,e){var i=function(t,e){for(var i=0,s=e.length;i<s;){if(e[i].id===t)return e[i];i+=1}return null}(t,e);return i?i.layers.__used?JSON.parse(JSON.stringify(i.layers)):(i.layers.__used=!0,i.layers):null}function i(t){var e,a,r;for(e=t.length-1;e>=0;e-=1)if("sh"===t[e].ty){if(t[e].ks.k.i)s(t[e].ks.k);else for(r=t[e].ks.k.length,a=0;a<r;a+=1)t[e].ks.k[a].s&&s(t[e].ks.k[a].s[0]),t[e].ks.k[a].e&&s(t[e].ks.k[a].e[0])}else"gr"===t[e].ty&&i(t[e].it)}function s(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 r,n=function(){var t=[4,4,14];function e(t){var e,i=t.length;for(e=0;e<i;e+=1)5===t[e].ty&&function(t){var e=t.t.d;t.t.d={k:[{s:e,t:0}]}}(t[e])}return function(i){if(a(t,i.v)&&(e(i.layers),i.assets)){var s,r=i.assets.length;for(s=0;s<r;s+=1)i.assets[s].layers&&e(i.assets[s].layers)}}}(),o=(r=[4,7,99],function(t){if(t.chars&&!a(r,t.v)){var e,s=t.chars.length;for(e=0;e<s;e+=1){var n=t.chars[e];n.data&&n.data.shapes&&(i(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}},t.chars[e].t||(n.data.shapes.push({ty:"no"}),n.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),h=function(){var t=[5,7,15];function e(t){var e,i=t.length;for(e=0;e<i;e+=1)5===t[e].ty&&function(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})}(t[e])}return function(i){if(a(t,i.v)&&(e(i.layers),i.assets)){var s,r=i.assets.length;for(s=0;s<r;s+=1)i.assets[s].layers&&e(i.assets[s].layers)}}}(),l=function(){var t=[4,1,9];function e(t){var e,i=t.length;for(e=0;e<i;e+=1)4===t[e].ty&&function t(e){var i,s,a,r=e.length;for(i=0;i<r;i+=1)if("gr"===e[i].ty)t(e[i].it);else if("fl"===e[i].ty||"st"===e[i].ty){if(e[i].c.k&&e[i].c.k[0].i)for(a=e[i].c.k.length,s=0;s<a;s+=1)e[i].c.k[s].s&&(e[i].c.k[s].s[0]/=255,e[i].c.k[s].s[1]/=255,e[i].c.k[s].s[2]/=255,e[i].c.k[s].s[3]/=255),e[i].c.k[s].e&&(e[i].c.k[s].e[0]/=255,e[i].c.k[s].e[1]/=255,e[i].c.k[s].e[2]/=255,e[i].c.k[s].e[3]/=255);else e[i].c.k[0]/=255,e[i].c.k[1]/=255,e[i].c.k[2]/=255,e[i].c.k[3]/=255}}(t[e].shapes)}return function(i){if(a(t,i.v)&&(e(i.layers),i.assets)){var s,r=i.assets.length;for(s=0;s<r;s+=1)i.assets[s].layers&&e(i.assets[s].layers)}}}(),p=function(){var t=[4,4,18];function e(t){var e,i,s,a,r,n,o=t.length;for(i=0;i<o;i+=1){if((e=t[i]).hasMask){var h=e.masksProperties;for(a=h.length,s=0;s<a;s+=1)if(h[s].pt.k.i)h[s].pt.k.c=h[s].cl;else for(n=h[s].pt.k.length,r=0;r<n;r+=1)h[s].pt.k[r].s&&(h[s].pt.k[r].s[0].c=h[s].cl),h[s].pt.k[r].e&&(h[s].pt.k[r].e[0].c=h[s].cl)}4===e.ty&&function t(e){var i,s,a;for(i=e.length-1;i>=0;i-=1)if("sh"===e[i].ty){if(e[i].ks.k.i)e[i].ks.k.c=e[i].closed;else for(a=e[i].ks.k.length,s=0;s<a;s+=1)e[i].ks.k[s].s&&(e[i].ks.k[s].s[0].c=e[i].closed),e[i].ks.k[s].e&&(e[i].ks.k[s].e[0].c=e[i].closed)}else"gr"===e[i].ty&&t(e[i].it)}(e.shapes)}}return function(i){if(a(t,i.v)&&(e(i.layers),i.assets)){var s,r=i.assets.length;for(s=0;s<r;s+=1)i.assets[s].layers&&e(i.assets[s].layers)}}}(),d={};return d.completeData=function(i){i.__complete||(l(i),n(i),o(i),h(i),p(i),t(i.layers,i.assets),function(i,s){if(i){var a=0,r=i.length;for(a=0;a<r;a+=1)1===i[a].t&&(i[a].data.layers=e(i[a].data.refId,s),t(i[a].data.layers,s))}}(i.chars,i.assets),i.__complete=!0)},d.checkColors=l,d.checkChars=o,d.checkPathProperties=h,d.checkShapes=p,d.completeLayers=t,d}()),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"===$(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,a){var r,n=new XMLHttpRequest;try{n.responseType="json"}catch(t){}n.onreadystatechange=function(){if(4===n.readyState){if(200===n.status)s(r=t(n));else try{r=t(n),s(r)}catch(t){a&&a(t)}}};try{n.open("GET",e,!0)}catch(t){n.open("GET",i+"/"+e,!0)}n.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 e=t.data.animation;n.dataManager.completeData(e),n.postMessage({id:t.data.id,payload:e,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,s=a[i];a[i]=null,"success"===e.status?s.onComplete(e.payload):s.onError&&s.onError()})}function h(t,e){var s="processId_"+(i+=1);return a[s]={onComplete:t,onError:e},s}return{loadAnimation:function(t,i,s){o();var a=h(i,s);e.postMessage({type:"loadAnimation",path:t,fullPath:window.location.origin+window.location.pathname,id:a})},loadData:function(t,i,s){o();var a=h(i,s);e.postMessage({type:"loadData",path:t,fullPath:window.location.origin+window.location.pathname,id:a})},completeAnimation:function(t,i,s){o();var a=h(i,s);e.postMessage({type:"complete",animation:t,id:a})}}}(),G=function(){var t,e,i=((t=n("canvas")).width=1,t.height=1,(e=t.getContext("2d")).fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),t);function s(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function a(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(t,e,i){var s="";if(t.e)s=t.p;else if(e){var a=t.p;-1!==a.indexOf("images/")&&(a=a.split("/")[1]),s=e+a}else s=i+(t.u?t.u:"")+t.p;return s}function o(t){var e=0,i=setInterval((function(){(t.getBBox().width||e>500)&&(this._imageLoaded(),clearInterval(i)),e+=1}).bind(this),50)}function h(t){var e={assetData:t},i=r(t,this.assetsPath,this.path);return H.loadData(i,(function(t){e.img=t,this._footageLoaded()}).bind(this),(function(){e.img={},this._footageLoaded()}).bind(this)),e}function l(){this._imageLoaded=s.bind(this),this._footageLoaded=a.bind(this),this.testImageLoaded=o.bind(this),this.createFootageData=h.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return l.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(t){var e=r(t,this.assetsPath,this.path),s=n("img");s.crossOrigin="anonymous",s.addEventListener("load",this._imageLoaded,!1),s.addEventListener("error",(function(){a.img=i,this._imageLoaded()}).bind(this),!1),s.src=e;var a={img:s,assetData:t};return a},createImageData:function(t){var e=r(t,this.assetsPath,this.path),s=W("image");c?this.testImageLoaded(s):s.addEventListener("load",this._imageLoaded,!1),s.addEventListener("error",(function(){a.img=i,this._imageLoaded()}).bind(this),!1),s.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this._elementHelper.append?this._elementHelper.append(s):this._elementHelper.appendChild(s);var a={img:s,assetData:t};return a},imageLoaded:s,footageLoaded:a,setCacheType:function(t,e){"svg"===t?(this._elementHelper=e,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},l}();function X(){}X.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 U=function(t){for(var e=[],i=0;i<t.length;i+=1){var s=t[i],a={time:s.tm,duration:s.dr};try{a.payload=JSON.parse(t[i].cm)}catch(e){try{a.payload=function(t){for(var e,i=t.split("\r\n"),s={},a=0,r=0;r<i.length;r+=1)2===(e=i[r].split(":")).length&&(s[e[0]]=e[1].trim(),a+=1);if(0===a)throw Error();return s}(t[i].cm)}catch(e){a.payload={name:t[i].cm}}}e.push(a)}return e},Y=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}}(),Z={};function J(t){return(J="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 K=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=F(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=f,this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=Y(),this.imagePreloader=new G,this.audioController=l(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new w("drawnFrame",0,0,0),this.expressionsPlugin=z()};h([X],K),K.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=Z[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")),H.loadAnimation(t.path,this.configAnimation,this.onSetupError))},K.prototype.onSetupError=function(){this.trigger("data_failed")},K.prototype.setupAnimation=function(t){H.completeAnimation(t,this.configAnimation)},K.prototype.setData=function(t,e){e&&"object"!==J(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:function(){if(Z.canvas)return"canvas";for(var t in Z)if(Z[t])return t;return""}()||"canvas";var a=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"===a?i.loop=!1:"true"===a?i.loop=!0:""!==a&&(i.loop=parseInt(a,10));var r=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.autoplay="false"!==r,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")},K.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,a=s.length,r=t.layers,n=r.length;for(i=0;i<n;i+=1)for(e=0;e<a;){if(s[e].id===r[i].id){s[e]=r[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(a=t.assets.length,e=0;e<a;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,H.completeAnimation(this.animationData,this.onSegmentComplete)},K.prototype.onSegmentComplete=function(t){this.animationData=t;var e=z();e&&e.initExpressions(this),this.loadNextSegment()},K.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var e=t.shift();this.timeCompleted=e.time*this.frameRate;var i=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,H.loadData(i,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},K.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},K.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},K.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},K.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=U(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},K.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},K.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=z();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},K.prototype.resize=function(t,e){this.renderer.updateContainerSize("number"==typeof t?t:void 0,"number"==typeof e?e:void 0)},K.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},K.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")},K.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)}},K.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")))},K.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())},K.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},K.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},K.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},K.prototype.goToAndStop=function(t,e,i){if(!i||this.name===i){if(isNaN(Number(t))){var s=this.getMarkerData(t);s&&this.goToAndStop(s.time,!0)}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},K.prototype.goToAndPlay=function(t,e,i){if(!i||this.name===i){var s=Number(t);if(isNaN(s)){var a=this.getMarkerData(t);a&&(a.duration?this.playSegments([a.time,a.time+a.duration],!0):this.goToAndStop(a.time,!0))}else this.goToAndStop(s,e,i);this.play()}},K.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?(i=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),i&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},K.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")},K.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)},K.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===J(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()},K.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},K.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},K.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)},K.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},K.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},K.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},K.prototype.setLoop=function(t){this.loop=t},K.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},K.prototype.getVolume=function(){return this.audioController.getVolume()},K.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},K.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},K.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},K.prototype.getPath=function(){return this.path},K.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},K.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},K.prototype.hide=function(){this.renderer.hide()},K.prototype.show=function(){this.renderer.show()},K.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},K.prototype.updateDocumentData=function(t,e,i){try{this.renderer.getElementByPath(t).updateDocumentData(e,i)}catch(t){}},K.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new w(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 A(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new S(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new D(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new P(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new w(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new A(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new S(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new D(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new P(t,this))},K.prototype.triggerRenderFrameError=function(t){var e=new T(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)},K.prototype.triggerConfigError=function(t){var e=new E(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)};var Q=function(){var t={},e=[],i=0,s=0,a=0,r=!0,o=!1;function h(t){for(var i=0,a=t.target;i<s;)e[i].animation===a&&(e.splice(i,1),i-=1,s-=1,a.isPaused||d()),i+=1}function l(t,i){if(!t)return null;for(var a=0;a<s;){if(e[a].elem===t&&null!==e[a].elem)return e[a].animation;a+=1}var r=new K;return f(r,t),r.setData(t,i),r}function p(){a+=1,c()}function d(){a-=1}function f(t,i){t.addEventListener("destroy",h),t.addEventListener("_active",p),t.addEventListener("_idle",d),e.push({elem:i,animation:t}),s+=1}function m(t){var n,h=t-i;for(n=0;n<s;n+=1)e[n].animation.advanceTime(h);i=t,a&&!o?window.requestAnimationFrame(m):r=!0}function u(t){i=t,window.requestAnimationFrame(m)}function c(){!o&&a&&r&&(window.requestAnimationFrame(u),r=!1)}return t.registerAnimation=l,t.loadAnimation=function(t){var e=new K;return f(e,null),e.setParams(t),e},t.setSpeed=function(t,i){var a;for(a=0;a<s;a+=1)e[a].animation.setSpeed(t,i)},t.setDirection=function(t,i){var a;for(a=0;a<s;a+=1)e[a].animation.setDirection(t,i)},t.play=function(t){var i;for(i=0;i<s;i+=1)e[i].animation.play(t)},t.pause=function(t){var i;for(i=0;i<s;i+=1)e[i].animation.pause(t)},t.stop=function(t){var i;for(i=0;i<s;i+=1)e[i].animation.stop(t)},t.togglePause=function(t){var i;for(i=0;i<s;i+=1)e[i].animation.togglePause(t)},t.searchAnimations=function(t,e,i){var s,a=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),r=a.length;for(s=0;s<r;s+=1)i&&a[s].setAttribute("data-bm-type",i),l(a[s],t);if(e&&0===r){i||(i="svg");var o=document.getElementsByTagName("body")[0];o.innerText="";var h=n("div");h.style.width="100%",h.style.height="100%",h.setAttribute("data-bm-type",i),o.appendChild(h),l(h,t)}},t.resize=function(){var t;for(t=0;t<s;t+=1)e[t].animation.resize()},t.goToAndStop=function(t,i,a){var r;for(r=0;r<s;r+=1)e[r].animation.goToAndStop(t,i,a)},t.destroy=function(t){var i;for(i=s-1;i>=0;i-=1)e[i].animation.destroy(t)},t.freeze=function(){o=!0},t.unfreeze=function(){o=!1,c()},t.setVolume=function(t,i){var a;for(a=0;a<s;a+=1)e[a].animation.setVolume(t,i)},t.mute=function(t){var i;for(i=0;i<s;i+=1)e[i].animation.mute(t)},t.unmute=function(t){var i;for(i=0;i<s;i+=1)e[i].animation.unmute(t)},t.getRegisteredAnimations=function(){var t,i=e.length,s=[];for(t=0;t<i;t+=1)s.push(e[t].animation);return s},t}(),tt=function(){var t={};t.getBezierEasing=function(t,i,s,a,n){var o=n||("bez_"+t+"_"+i+"_"+s+"_"+a).replace(/\./g,"p");if(e[o])return e[o];var h=new r([t,i,s,a]);return e[o]=h,h};var e={},i="function"==typeof Float32Array;function s(t,e,i){return(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t}function a(t,e,i){return 3*(1-3*i+3*e)*t*t+2*(3*i-6*e)*t+3*e}function r(t){this._p=t,this._mSampleValues=i?new Float32Array(11):Array(11),this._precomputed=!1,this.get=this.get.bind(this)}return r.prototype={get:function(t){var e=this._p[0],i=this._p[1],a=this._p[2],r=this._p[3];return this._precomputed||this._precompute(),e===i&&a===r?t:0===t?0:1===t?1:s(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<11;++i)this._mSampleValues[i]=s(.1*i,t,e)},_getTForX:function(t){for(var e=this._p[0],i=this._p[2],r=this._mSampleValues,n=0,o=1;10!==o&&r[o]<=t;++o)n+=.1;var h=n+(t-r[--o])/(r[o+1]-r[o])*.1,l=a(h,e,i);return l>=.001?function(t,e,i,r){for(var n=0;n<4;++n){var o=a(e,i,r);if(0===o)break;e-=(s(e,i,r)-t)/o}return e}(t,h,e,i):0===l?h:function(t,e,i,a,r){var n,o,h=0;do(n=s(o=e+(i-e)/2,a,r)-t)>0?i=o:e=o;while(Math.abs(n)>1e-7&&++h<10);return o}(t,n,n+.1,e,i)}},t}(),te={double:function(t){return t.concat(d(t.length))}},ti=function(t,e,i){var s=0,a=t,r=d(a);return{newElement:function(){return s?r[s-=1]:e()},release:function(t){s===a&&(r=te.double(r),a*=2),i&&i(t),r[s]=t,s+=1}}},ts=ti(8,function(){return{addedLength:0,percents:p("float32",j()),lengths:p("float32",j())}}),ta=ti(8,function(){return{lengths:[],totalLength:0}},function(t){var e,i=t.lengths.length;for(e=0;e<i;e+=1)ts.release(t.lengths[e]);t.lengths.length=0}),tr=function(){var t=Math;function e(t,e,i,s,a,r){var n=t*s+e*a+i*r-a*s-r*t-i*e;return n>-.001&&n<.001}var i=function(t,e,i,s){var a,r,n,o,h,l,p=j(),d=0,f=[],m=[],u=ts.newElement();for(n=i.length,a=0;a<p;a+=1){for(h=a/(p-1),l=0,r=0;r<n;r+=1)o=g(1-h,3)*t[r]+3*g(1-h,2)*h*i[r]+3*(1-h)*g(h,2)*s[r]+g(h,3)*e[r],f[r]=o,null!==m[r]&&(l+=g(f[r]-m[r],2)),m[r]=f[r];l&&(d+=l=v(l)),u.percents[a]=h,u.lengths[a]=d}return u.addedLength=d,u};function s(t){this.segmentLength=0,this.points=Array(t)}function a(t,e){this.partialLength=t,this.point=e}var r,n=(r={},function(t,i,n,o){var h=(t[0]+"_"+t[1]+"_"+i[0]+"_"+i[1]+"_"+n[0]+"_"+n[1]+"_"+o[0]+"_"+o[1]).replace(/\./g,"p");if(!r[h]){var l,p,f,m,u,c,y,b=j(),_=0,k=null;2===t.length&&(t[0]!==i[0]||t[1]!==i[1])&&e(t[0],t[1],i[0],i[1],t[0]+n[0],t[1]+n[1])&&e(t[0],t[1],i[0],i[1],i[0]+o[0],i[1]+o[1])&&(b=2);var w=new s(b);for(f=n.length,l=0;l<b;l+=1){for(y=d(f),u=l/(b-1),c=0,p=0;p<f;p+=1)m=g(1-u,3)*t[p]+3*g(1-u,2)*u*(t[p]+n[p])+3*(1-u)*g(u,2)*(i[p]+o[p])+g(u,3)*i[p],y[p]=m,null!==k&&(c+=g(y[p]-k[p],2));_+=c=v(c),w.points[l]=new a(c,y),k=y}w.segmentLength=_,r[h]=w}return r[h]});function o(t,e){var i=e.percents,s=e.lengths,a=i.length,r=y((a-1)*t),n=t*e.addedLength,o=0;if(r===a-1||0===r||n===s[r])return i[r];for(var h=s[r]>n?-1:1,l=!0;l;)if(s[r]<=n&&s[r+1]>n?(o=(n-s[r])/(s[r+1]-s[r]),l=!1):r+=h,r<0||r>=a-1){if(r===a-1)return i[r];l=!1}return i[r]+(i[r+1]-i[r])*o}var h=p("float32",8);return{getSegmentsLength:function(t){var e,s=ta.newElement(),a=t.c,r=t.v,n=t.o,o=t.i,h=t._length,l=s.lengths,p=0;for(e=0;e<h-1;e+=1)l[e]=i(r[e],r[e+1],n[e],o[e+1]),p+=l[e].addedLength;return a&&h&&(l[e]=i(r[e],r[0],n[e],o[0]),p+=l[e].addedLength),s.totalLength=p,s},getNewSegment:function(e,i,s,a,r,n,l){r<0?r=0:r>1&&(r=1);var p,d=o(r,l),f=o(n=n>1?1:n,l),m=e.length,u=1-d,c=1-f,g=u*u*u,v=d*u*u*3,y=d*d*u*3,b=d*d*d,_=u*u*c,k=d*u*c+u*d*c+u*u*f,w=d*d*c+u*d*f+d*u*f,S=d*d*f,A=u*c*c,D=d*c*c+u*f*c+u*c*f,P=d*f*c+u*f*f+d*c*f,T=d*f*f,E=c*c*c,C=f*c*c+c*f*c+c*c*f,F=f*f*c+c*f*f+f*c*f,x=f*f*f;for(p=0;p<m;p+=1)h[4*p]=t.round(1e3*(g*e[p]+v*s[p]+y*a[p]+b*i[p]))/1e3,h[4*p+1]=t.round(1e3*(_*e[p]+k*s[p]+w*a[p]+S*i[p]))/1e3,h[4*p+2]=t.round(1e3*(A*e[p]+D*s[p]+P*a[p]+T*i[p]))/1e3,h[4*p+3]=t.round(1e3*(E*e[p]+C*s[p]+F*a[p]+x*i[p]))/1e3;return h},getPointInSegment:function(e,i,s,a,r,n){var h=o(r,n),l=1-h;return[t.round(1e3*(l*l*l*e[0]+(h*l*l+l*h*l+l*l*h)*s[0]+(h*h*l+l*h*h+h*l*h)*a[0]+h*h*h*i[0]))/1e3,t.round(1e3*(l*l*l*e[1]+(h*l*l+l*h*l+l*l*h)*s[1]+(h*h*l+l*h*h+h*l*h)*a[1]+h*h*h*i[1]))/1e3]},buildBezierData:n,pointOnLine2D:e,pointOnLine3D:function(i,s,a,r,n,o,h,l,p){if(0===a&&0===o&&0===p)return e(i,s,r,n,h,l);var d,f=t.sqrt(t.pow(r-i,2)+t.pow(n-s,2)+t.pow(o-a,2)),m=t.sqrt(t.pow(h-i,2)+t.pow(l-s,2)+t.pow(p-a,2)),u=t.sqrt(t.pow(h-r,2)+t.pow(l-n,2)+t.pow(p-o,2));return(d=f>m?f>u?f-m-u:u-m-f:u>m?u-m-f:m-f-u)>-.0001&&d<1e-4}}}();function tn(t){return function(t){if(Array.isArray(t))return to(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return to(t,void 0);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?to(t,void 0):void 0}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function to(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=Array(e);i<e;i++)s[i]=t[i];return s}function th(t,e){return t.map(function(t,i){return t+(e[i]||0)})}function tl(t,e){return t.map(function(t,i){return t-(e[i]||0)})}function tp(t,e,i,s,a){var r,n,o=[t,th(t,e),th(s,i),s],h=td(o,a),l=td(h,a),p=tl(l[1],l[0]),d=Math.hypot.apply(Math,tn(p));if(d>Number.EPSILON)return p.map(function(t){return t/d});var f=tl(h[2],h[0]),m=Math.hypot.apply(Math,tn(f));if(m>Number.EPSILON)return f.map(function(t){return t/m});var u=tl(h[1],h[0]),c=Math.hypot.apply(Math,tn(u));return c>Number.EPSILON?u.map(function(t){return t/c}):(r=tl(o[3],o[0]),(n=Math.hypot.apply(Math,tn(r)))>Number.EPSILON?r.map(function(t){return t/n}):r)}function td(t,e){for(var i=[],s=0;s<t.length-1;s+=1)i.push(function(t,e,i){return[t[0]*(1-i)+e[0]*i,t[1]*(1-i)+e[1]*i]}(t[s],t[s+1],e));return i}var tf=Math.abs;function tm(t,e){var i,s,a,r,n,o,h,l,d,f,m,u,c,g,v,y,b,_,w,S,A,D,P,T,E,C,F,x,M,I,L,R,O=this.offsetTime;"multidimensional"===this.propType&&(R=p("float32",this.pv.length));for(var V,N,z,B,j,q,W,$,H,G=e.lastIndex,X=G,U=this.keyframes.length-1,Y=!0;Y;){if(V=this.keyframes[X],N=this.keyframes[X+1],X===U-1&&t>=N.t-O){V.h&&(V=N),G=0;break}if(N.t-O>t){G=X;break}X<U-1?X+=1:(G=0,Y=!1)}z=this.keyframesMetadata[X]||{};var Z,J=N.t-O,K=V.t-O;if(V.to){z.bezierData||(z.bezierData=tr.buildBezierData(V.s,N.s||V.e,V.to,V.ti));var Q=z.bezierData;if(t>=J||t<K){var te=t>=J?Q.points.length-1:0;for(j=Q.points[te].point.length,B=0;B<j;B+=1)R[B]=Q.points[te].point[B]}else{z.__fnct?H=z.__fnct:(H=tt.getBezierEasing(V.o.x,V.o.y,V.i.x,V.i.y,V.n).get,z.__fnct=H),q=H((t-K)/(J-K));var ti=V.s,ts=N.s||V.e;if(q>1)for(var ta=tp(V.s,V.to,V.ti,N.s||V.e,1),tn=Q.segmentLength*(q-1),to=0;to<ts.length;to+=1)R[to]=ts[to]+ta[to]*tn;else if(q<0)for(var th=tp(V.s,V.to,V.ti,N.s||V.e,0),tl=Q.segmentLength*q,td=0;td<ti.length;td+=1)R[td]=ti[td]+th[td]*tl;else{var tf,tm=Q.segmentLength*q,tc=e.lastFrame<t&&e._lastKeyframeIndex===X?e._lastAddedLength:0;for($=e.lastFrame<t&&e._lastKeyframeIndex===X?e._lastPoint:0,Y=!0,W=Q.points.length;Y;){if(tc+=Q.points[$].partialLength,0===tm||0===q||$===Q.points.length-1){for(j=Q.points[$].point.length,B=0;B<j;B+=1)R[B]=Q.points[$].point[B];break}if(tm>=tc&&tm<tc+Q.points[$+1].partialLength){for(tf=(tm-tc)/Q.points[$+1].partialLength,j=Q.points[$].point.length,B=0;B<j;B+=1)R[B]=Q.points[$].point[B]+(Q.points[$+1].point[B]-Q.points[$].point[B])*tf;break}$<W-1?$+=1:Y=!1}e._lastPoint=$,e._lastAddedLength=tc-Q.points[$].partialLength,e._lastKeyframeIndex=X}}}else if(U=V.s.length,Z=N.s||V.e,this.sh&&1!==V.h)t>=J?(R[0]=Z[0],R[1]=Z[1],R[2]=Z[2]):t<=K?(R[0]=V.s[0],R[1]=V.s[1],R[2]=V.s[2]):(_=R,S=(i=tu(V.s),s=tu(Z),a=(t-K)/(J-K),d=[],f=i[0],m=i[1],u=i[2],c=i[3],g=s[0],v=s[1],(n=f*g+m*v+u*(y=s[2])+c*(b=s[3]))<0&&(n=-n,g=-g,v=-v,y=-y,b=-b),1-n>1e-6?(o=Math.sin(r=Math.acos(n)),h=Math.sin((1-a)*r)/o,l=Math.sin(a*r)/o):(h=1-a,l=a),d[0]=h*f+l*g,d[1]=h*m+l*v,d[2]=h*u+l*y,d[3]=h*c+l*b,w=d)[0],A=w[1],D=w[2],T=Math.atan2(2*A*(P=w[3])-2*S*D,1-2*A*A-2*D*D),E=Math.asin(2*S*A+2*D*P),C=Math.atan2(2*S*P-2*A*D,1-2*S*S-2*D*D),_[0]=T/k,_[1]=E/k,_[2]=C/k);else for(X=0;X<U;X+=1)1!==V.h&&(t>=J?q=1:t<K?q=0:(V.o.x.constructor===Array?(z.__fnct||(z.__fnct=[]),z.__fnct[X]?H=z.__fnct[X]:(F=void 0===V.o.x[X]?V.o.x[0]:V.o.x[X],x=void 0===V.o.y[X]?V.o.y[0]:V.o.y[X],M=void 0===V.i.x[X]?V.i.x[0]:V.i.x[X],I=void 0===V.i.y[X]?V.i.y[0]:V.i.y[X],H=tt.getBezierEasing(F,x,M,I).get,z.__fnct[X]=H)):z.__fnct?H=z.__fnct:(F=V.o.x,x=V.o.y,M=V.i.x,I=V.i.y,H=tt.getBezierEasing(F,x,M,I).get,V.keyframeMetadata=H),q=H((t-K)/(J-K)))),Z=N.s||V.e,L=1===V.h?V.s[X]:V.s[X]+(Z[X]-V.s[X])*q,"multidimensional"===this.propType?R[X]=L:R=L;return e.lastIndex=G,R}function tu(t){var e=t[0]*k,i=t[1]*k,s=t[2]*k,a=Math.cos(e/2),r=Math.cos(i/2),n=Math.cos(s/2),o=Math.sin(e/2),h=Math.sin(i/2),l=Math.sin(s/2);return[o*h*n+a*r*l,o*r*n+a*h*l,a*h*n-o*r*l,a*r*n-o*h*l]}function tc(){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||-999999!==this._caching.lastFrame&&(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 tg(t){var e;if("unidimensional"===this.propType)e=t*this.mult,tf(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,tf(this.v[i]-e)>1e-5&&(this.v[i]=e,this._mdf=!0),i+=1}function tv(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length){if(this.lock)this.setVValue(this.pv);else{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 ty(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function tb(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=tv,this.setVValue=tg,this.addEffect=ty}function t_(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 a,r=e.k.length;for(this.v=p("float32",r),this.pv=p("float32",r),this.vel=p("float32",r),a=0;a<r;a+=1)this.v[a]=e.k[a]*this.mult,this.pv[a]=e.k[a];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=tv,this.setVValue=tg,this.addEffect=ty}function tk(t,e,i,s){this.propType="unidimensional",this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:-999999,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=-999999,this.pv=-999999,this._isFirstFrame=!0,this.getValue=tv,this.setVValue=tg,this.interpolateValue=tm,this.effectsSequence=[tc.bind(this)],this.addEffect=ty}function tw(t,e,i,s){this.propType="multidimensional";var a,r,n,o,h,l=e.k.length;for(a=0;a<l-1;a+=1)e.k[a].to&&e.k[a].s&&e.k[a+1]&&e.k[a+1].s&&(r=e.k[a].s,n=e.k[a+1].s,o=e.k[a].to,h=e.k[a].ti,(2===r.length&&(r[0]!==n[0]||r[1]!==n[1])&&tr.pointOnLine2D(r[0],r[1],n[0],n[1],r[0]+o[0],r[1]+o[1])&&tr.pointOnLine2D(r[0],r[1],n[0],n[1],n[0]+h[0],n[1]+h[1])||3===r.length&&(r[0]!==n[0]||r[1]!==n[1]||r[2]!==n[2])&&tr.pointOnLine3D(r[0],r[1],r[2],n[0],n[1],n[2],r[0]+o[0],r[1]+o[1],r[2]+o[2])&&tr.pointOnLine3D(r[0],r[1],r[2],n[0],n[1],n[2],n[0]+h[0],n[1]+h[1],n[2]+h[2]))&&(e.k[a].to=null,e.k[a].ti=null),r[0]===n[0]&&r[1]===n[1]&&0===o[0]&&0===o[1]&&0===h[0]&&0===h[1]&&(2===r.length||r[2]===n[2]&&0===o[2]&&0===h[2])&&(e.k[a].to=null,e.k[a].ti=null));this.effectsSequence=[tc.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=tv,this.setVValue=tg,this.interpolateValue=tm,this.frameId=-1;var d=e.k[0].s.length;for(this.v=p("float32",d),this.pv=p("float32",d),a=0;a<d;a+=1)this.v[a]=-999999,this.pv[a]=-999999;this._caching={lastFrame:-999999,lastIndex:0,value:p("float32",d)},this.addEffect=ty}var tS={getProp:function(t,e,i,s,a){var r;if(e.sid&&(e=t.globalData.slotManager.getProp(e)),e.k.length){if("number"==typeof e.k[0])r=new t_(t,e,s,a);else switch(i){case 0:r=new tk(t,e,s,a);break;case 1:r=new tw(t,e,s,a)}}else r=new tb(t,e,s,a);return r.effectsSequence.length&&a.addDynamicProperty(r),r}};function tA(){}tA.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 tD=ti(8,function(){return p("float32",2)});function tP(){this.c=!1,this._length=0,this._maxLength=8,this.v=d(this._maxLength),this.o=d(this._maxLength),this.i=d(this._maxLength)}tP.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var i=0;i<e;)this.v[i]=tD.newElement(),this.o[i]=tD.newElement(),this.i[i]=tD.newElement(),i+=1},tP.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},tP.prototype.doubleArrayLength=function(){this.v=this.v.concat(d(this._maxLength)),this.i=this.i.concat(d(this._maxLength)),this.o=this.o.concat(d(this._maxLength)),this._maxLength*=2},tP.prototype.setXYAt=function(t,e,i,s,a){var r;switch(this._length=Math.max(this._length,s+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case"v":r=this.v;break;case"i":r=this.i;break;case"o":r=this.o;break;default:r=[]}r[s]&&(!r[s]||a)||(r[s]=tD.newElement()),r[s][0]=t,r[s][1]=e},tP.prototype.setTripleAt=function(t,e,i,s,a,r,n,o){this.setXYAt(t,e,"v",n,o),this.setXYAt(i,s,"o",n,o),this.setXYAt(a,r,"i",n,o)},tP.prototype.reverse=function(){var t=new tP;t.setPathData(this.c,this._length);var e=this.v,i=this.o,s=this.i,a=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],s[0][0],s[0][1],i[0][0],i[0][1],0,!1),a=1);var r,n=this._length-1,o=this._length;for(r=a;r<o;r+=1)t.setTripleAt(e[n][0],e[n][1],s[n][0],s[n][1],i[n][0],i[n][1],r,!1),n-=1;return t},tP.prototype.length=function(){return this._length};var tT=((t$=ti(4,function(){return new tP},function(t){var e,i=t._length;for(e=0;e<i;e+=1)tD.release(t.v[e]),tD.release(t.i[e]),tD.release(t.o[e]),t.v[e]=null,t.i[e]=null,t.o[e]=null;t._length=0,t.c=!1})).clone=function(t){var e,i=t$.newElement(),s=void 0===t._length?t.v.length:t._length;for(i.setLength(s),i.c=t.c,e=0;e<s;e+=1)i.setTripleAt(t.v[e][0],t.v[e][1],t.o[e][0],t.o[e][1],t.i[e][0],t.i[e][1],e);return i},t$);function tE(){this._length=0,this._maxLength=4,this.shapes=d(this._maxLength)}tE.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(d(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},tE.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)tT.release(this.shapes[t]);this._length=0};var tC=(tH=0,tG=4,tX=d(4),{newShapeCollection:function(){return tH?tX[tH-=1]:new tE},release:function(t){var e,i=t._length;for(e=0;e<i;e+=1)tT.release(t.shapes[e]);t._length=0,tH===tG&&(tX=te.double(tX),tG*=2),tX[tH]=t,tH+=1}}),tF=function(){function t(t,e,i){var s,a,r,n,o,h,l,p,d,f=i.lastIndex,m=this.keyframes;if(t<m[0].t-this.offsetTime)s=m[0].s[0],r=!0,f=0;else if(t>=m[m.length-1].t-this.offsetTime)s=m[m.length-1].s?m[m.length-1].s[0]:m[m.length-2].e[0],r=!0;else{for(var u,c,g,v,y=f,b=m.length-1,_=!0;_&&(c=m[y],!((g=m[y+1]).t-this.offsetTime>t));)y<b-1?y+=1:_=!1;v=this.keyframesMetadata[y]||{},f=y,(r=1===c.h)||(t>=g.t-this.offsetTime?p=1:t<c.t-this.offsetTime?p=0:(v.__fnct?u=v.__fnct:(u=tt.getBezierEasing(c.o.x,c.o.y,c.i.x,c.i.y).get,v.__fnct=u),p=u((t-(c.t-this.offsetTime))/(g.t-this.offsetTime-(c.t-this.offsetTime)))),a=g.s?g.s[0]:c.e[0]),s=c.s[0]}for(h=e._length,l=s.i[0].length,i.lastIndex=f,n=0;n<h;n+=1)for(o=0;o<l;o+=1)d=r?s.i[n][o]:s.i[n][o]+(a.i[n][o]-s.i[n][o])*p,e.i[n][o]=d,d=r?s.o[n][o]:s.o[n][o]+(a.o[n][o]-s.o[n][o])*p,e.o[n][o]=d,d=r?s.v[n][o]:s.v[n][o]+(a.v[n][o]-s.v[n][o])*p,e.v[n][o]=d}function e(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime,s=this._caching.lastFrame;return -999999!==s&&(s<e&&t<e||s>i&&t>i)||(this._caching.lastIndex=s<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}function i(){this.paths=this.localShapeCollection}function s(t){(function(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})(this.v,t)||(this.v=tT.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){if(this.lock)this.setVValue(this.pv);else{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}}else this._mdf=!1}}function r(t,e,s){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 a=3===s?e.pt.k:e.ks.k;this.v=tT.clone(a),this.pv=tT.clone(this.v),this.localShapeCollection=tC.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=i,this.effectsSequence=[]}function n(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function o(t,s,a){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=3===a?s.pt.k:s.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var r=this.keyframes[0].s[0].i.length;this.v=tT.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,r),this.pv=tT.clone(this.v),this.localShapeCollection=tC.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=-999999,this.reset=i,this._caching={lastFrame:-999999,lastIndex:0},this.effectsSequence=[e.bind(this)]}r.prototype.interpolateShape=t,r.prototype.getValue=a,r.prototype.setVValue=s,r.prototype.addEffect=n,o.prototype.getValue=a,o.prototype.interpolateShape=t,o.prototype.setVValue=s,o.prototype.addEffect=n;var l=function(){function t(t,e){this.v=tT.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=tC.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=tS.getProp(t,e.p,1,0,this),this.s=tS.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return t.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var t=this.p.v[0],e=this.p.v[1],i=this.s.v[0]/2,s=this.s.v[1]/2,a=3!==this.d,r=this.v;r.v[0][0]=t,r.v[0][1]=e-s,r.v[1][0]=a?t+i:t-i,r.v[1][1]=e,r.v[2][0]=t,r.v[2][1]=e+s,r.v[3][0]=a?t-i:t+i,r.v[3][1]=e,r.i[0][0]=a?t-.5519*i:t+.5519*i,r.i[0][1]=e-s,r.i[1][0]=a?t+i:t-i,r.i[1][1]=e-.5519*s,r.i[2][0]=a?t+.5519*i:t-.5519*i,r.i[2][1]=e+s,r.i[3][0]=a?t-i:t+i,r.i[3][1]=e+.5519*s,r.o[0][0]=a?t+.5519*i:t-.5519*i,r.o[0][1]=e-s,r.o[1][0]=a?t+i:t-i,r.o[1][1]=e+.5519*s,r.o[2][0]=a?t-.5519*i:t+.5519*i,r.o[2][1]=e+s,r.o[3][0]=a?t-i:t+i,r.o[3][1]=e-.5519*s}},h([tA],t),t}(),p=function(){function t(t,e){this.v=tT.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=tS.getProp(t,e.ir,0,0,this),this.is=tS.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=tS.getProp(t,e.pt,0,0,this),this.p=tS.getProp(t,e.p,1,0,this),this.r=tS.getProp(t,e.r,0,k,this),this.or=tS.getProp(t,e.or,0,0,this),this.os=tS.getProp(t,e.os,0,.01,this),this.localShapeCollection=tC.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:i,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,a=2*Math.floor(this.pt.v),r=2*Math.PI/a,n=!0,o=this.or.v,h=this.ir.v,l=this.os.v,p=this.is.v,d=2*Math.PI*o/(2*a),f=2*Math.PI*h/(2*a),m=-Math.PI/2;m+=this.r.v;var u=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<a;t+=1){i=n?l:p,s=n?d:f;var c=(e=n?o:h)*Math.cos(m),g=e*Math.sin(m),v=0===c&&0===g?0:g/Math.sqrt(c*c+g*g),y=0===c&&0===g?0:-c/Math.sqrt(c*c+g*g);c+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(c,g,c-v*s*i*u,g-y*s*i*u,c+v*s*i*u,g+y*s*i*u,t,!0),n=!n,m+=r*u}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),i=2*Math.PI/e,s=this.or.v,a=this.os.v,r=2*Math.PI*s/(4*e),n=-(.5*Math.PI),o=3===this.data.d?-1:1;for(n+=this.r.v,this.v._length=0,t=0;t<e;t+=1){var h=s*Math.cos(n),l=s*Math.sin(n),p=0===h&&0===l?0:l/Math.sqrt(h*h+l*l),d=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*r*a*o,l-d*r*a*o,h+p*r*a*o,l+d*r*a*o,t,!0),n+=i*o}this.paths.length=0,this.paths[0]=this.v}},h([tA],t),t}(),d=function(){function t(t,e){this.v=tT.newElement(),this.v.c=!0,this.localShapeCollection=tC.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=tS.getProp(t,e.p,1,0,this),this.s=tS.getProp(t,e.s,1,0,this),this.r=tS.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,a=b(i,s,this.r.v),r=.44810000000000005*a;this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+i,e-s+a,t+i,e-s+a,t+i,e-s+r,0,!0),this.v.setTripleAt(t+i,e+s-a,t+i,e+s-r,t+i,e+s-a,1,!0),0!==a?(this.v.setTripleAt(t+i-a,e+s,t+i-a,e+s,t+i-r,e+s,2,!0),this.v.setTripleAt(t-i+a,e+s,t-i+r,e+s,t-i+a,e+s,3,!0),this.v.setTripleAt(t-i,e+s-a,t-i,e+s-a,t-i,e+s-r,4,!0),this.v.setTripleAt(t-i,e-s+a,t-i,e-s+r,t-i,e-s+a,5,!0),this.v.setTripleAt(t-i+a,e-s,t-i+a,e-s,t-i+r,e-s,6,!0),this.v.setTripleAt(t+i-a,e-s,t+i-r,e-s,t+i-a,e-s,7,!0)):(this.v.setTripleAt(t-i,e+s,t-i+r,e+s,t-i,e+s,2),this.v.setTripleAt(t-i,e-s,t-i,e-s+r,t-i,e-s,3))):(this.v.setTripleAt(t+i,e-s+a,t+i,e-s+r,t+i,e-s+a,0,!0),0!==a?(this.v.setTripleAt(t+i-a,e-s,t+i-a,e-s,t+i-r,e-s,1,!0),this.v.setTripleAt(t-i+a,e-s,t-i+r,e-s,t-i+a,e-s,2,!0),this.v.setTripleAt(t-i,e-s+a,t-i,e-s+a,t-i,e-s+r,3,!0),this.v.setTripleAt(t-i,e+s-a,t-i,e+s-r,t-i,e+s-a,4,!0),this.v.setTripleAt(t-i+a,e+s,t-i+a,e+s,t-i+r,e+s,5,!0),this.v.setTripleAt(t+i-a,e+s,t+i-r,e+s,t+i-a,e+s,6,!0),this.v.setTripleAt(t+i,e+s-a,t+i,e+s-a,t+i,e+s-r,7,!0)):(this.v.setTripleAt(t-i,e-s,t-i+r,e-s,t-i,e-s,1,!0),this.v.setTripleAt(t-i,e+s,t-i,e+s-r,t-i,e+s,2,!0),this.v.setTripleAt(t+i,e+s,t+i-r,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:i},h([tA],t),t}(),f={};return f.getShapeProp=function(t,e,i){var s;return 3===i||4===i?s=(3===i?e.pt:e.ks).k.length?new o(t,e,i):new r(t,e,i):5===i?s=new d(t,e):6===i?s=new l(t,e):7===i&&(s=new p(t,e)),s.k&&t.addDynamicProperty(s),s},f.getConstructorFunction=function(){return r},f.getKeyframedConstructorFunction=function(){return o},f}(),tx=function(){var t=Math.cos,e=Math.sin,i=Math.tan,s=Math.round;function a(){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 r(i){if(0===i)return this;var s=t(i),a=e(i);return this._t(s,-a,0,0,a,s,0,0,0,0,1,0,0,0,0,1)}function n(i){if(0===i)return this;var s=t(i),a=e(i);return this._t(1,0,0,0,0,s,-a,0,0,a,s,0,0,0,0,1)}function o(i){if(0===i)return this;var s=t(i),a=e(i);return this._t(s,0,a,0,0,1,0,0,-a,0,s,0,0,0,0,1)}function h(i){if(0===i)return this;var s=t(i),a=e(i);return this._t(s,-a,0,0,a,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 d(t,e){return this.shear(i(t),i(e))}function f(s,a){var r=t(a),n=e(a);return this._t(r,n,0,0,-n,r,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(r,-n,0,0,n,r,0,0,0,0,1,0,0,0,0,1)}function m(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,a,r,n,o,h,l,p,d,f,m,u,c){return this.props[0]=t,this.props[1]=e,this.props[2]=i,this.props[3]=s,this.props[4]=a,this.props[5]=r,this.props[6]=n,this.props[7]=o,this.props[8]=h,this.props[9]=l,this.props[10]=p,this.props[11]=d,this.props[12]=f,this.props[13]=m,this.props[14]=u,this.props[15]=c,this}function c(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 g(t,e,i,s,a,r,n,o,h,l,p,d,f,m,u,c){var g=this.props;if(1===t&&0===e&&0===i&&0===s&&0===a&&1===r&&0===n&&0===o&&0===h&&0===l&&1===p&&0===d)return g[12]=g[12]*t+g[15]*f,g[13]=g[13]*r+g[15]*m,g[14]=g[14]*p+g[15]*u,g[15]*=c,this._identityCalculated=!1,this;var v=g[0],y=g[1],b=g[2],_=g[3],k=g[4],w=g[5],S=g[6],A=g[7],D=g[8],P=g[9],T=g[10],E=g[11],C=g[12],F=g[13],x=g[14],M=g[15];return g[0]=v*t+y*a+b*h+_*f,g[1]=v*e+y*r+b*l+_*m,g[2]=v*i+y*n+b*p+_*u,g[3]=v*s+y*o+b*d+_*c,g[4]=k*t+w*a+S*h+A*f,g[5]=k*e+w*r+S*l+A*m,g[6]=k*i+w*n+S*p+A*u,g[7]=k*s+w*o+S*d+A*c,g[8]=D*t+P*a+T*h+E*f,g[9]=D*e+P*r+T*l+E*m,g[10]=D*i+P*n+T*p+E*u,g[11]=D*s+P*o+T*d+E*c,g[12]=C*t+F*a+x*h+M*f,g[13]=C*e+F*r+x*l+M*m,g[14]=C*i+F*n+x*p+M*u,g[15]=C*s+F*o+x*d+M*c,this._identityCalculated=!1,this}function v(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 b(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function _(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e];return t}function k(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function w(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 S(t,e,i){return t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12]}function A(t,e,i){return t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13]}function D(t,e,i){return t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}function P(){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,a=this.props[0]/t,r=(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 tx;return o.props[0]=e,o.props[1]=i,o.props[4]=s,o.props[5]=a,o.props[12]=r,o.props[13]=n,o}function T(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function E(t){var e,i=t.length,s=[];for(e=0;e<i;e+=1)s[e]=T(t[e]);return s}function C(t,e,i){var s=p("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 a=this.props[0],r=this.props[1],n=this.props[4],o=this.props[5],h=this.props[12],l=this.props[13];s[0]=t[0]*a+t[1]*n+h,s[1]=t[0]*r+t[1]*o+l,s[2]=e[0]*a+e[1]*n+h,s[3]=e[0]*r+e[1]*o+l,s[4]=i[0]*a+i[1]*n+h,s[5]=i[0]*r+i[1]*o+l}return s}function F(t,e,i){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 x(t,e){if(this.isIdentity())return t+","+e;var i=this.props;return Math.round(100*(t*i[0]+e*i[4]+i[12]))/100+","+Math.round(100*(t*i[1]+e*i[5]+i[13]))/100}function M(){for(var t=0,e=this.props,i="matrix3d(";t<16;)i+=s(1e4*e[t])/1e4+(15===t?")":","),t+=1;return i}function I(t){return t<1e-6&&t>0||t>-.000001&&t<0?s(1e4*t)/1e4:t}function L(){var t=this.props;return"matrix("+I(t[0])+","+I(t[1])+","+I(t[4])+","+I(t[5])+","+I(t[12])+","+I(t[13])+")"}return function(){this.reset=a,this.rotate=r,this.rotateX=n,this.rotateY=o,this.rotateZ=h,this.skew=d,this.skewFromAxis=f,this.shear=l,this.scale=m,this.setTransform=u,this.translate=c,this.transform=g,this.multiply=v,this.applyToPoint=w,this.applyToX=S,this.applyToY=A,this.applyToZ=D,this.applyToPointArray=F,this.applyToTriplePoints=C,this.applyToPointStringified=x,this.toCSS=M,this.to2dCSS=L,this.clone=_,this.cloneFromProps=k,this.equals=b,this.inversePoints=E,this.inversePoint=T,this.getInverseMatrix=P,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=p("float32",16),this.reset()}}();function tM(t){return(tM="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 tI={};function tL(){Q.searchAnimations()}tI.play=Q.play,tI.pause=Q.pause,tI.setLocationHref=function(t){a(t)},tI.togglePause=Q.togglePause,tI.setSpeed=Q.setSpeed,tI.setDirection=Q.setDirection,tI.stop=Q.stop,tI.searchAnimations=tL,tI.registerAnimation=Q.registerAnimation,tI.loadAnimation=function(t){return Q.loadAnimation(t)},tI.setSubframeRendering=function(t){V(t)},tI.resize=Q.resize,tI.goToAndStop=Q.goToAndStop,tI.destroy=Q.destroy,tI.setQuality=function(t){if("string"==typeof t)switch(t){case"high":B(200);break;default:case"medium":B(50);break;case"low":B(10)}else!isNaN(t)&&t>1&&B(t)},tI.inBrowser=function(){return"undefined"!=typeof navigator},tI.installPlugin=function(t,e){"expressions"===t&&N(e)},tI.freeze=Q.freeze,tI.unfreeze=Q.unfreeze,tI.setVolume=Q.setVolume,tI.mute=Q.mute,tI.unmute=Q.unmute,tI.getRegisteredAnimations=Q.getRegisteredAnimations,tI.useWebWorker=function(t){s=!!t},tI.setIDPrefix=function(t){q(t)},tI.__getFactory=function(t){switch(t){case"propertyFactory":return tS;case"shapePropertyFactory":return tF;case"matrix":return tx;default:return null}},tI.version="5.12.2";var tR="",tO=document.getElementsByTagName("script"),tV=tO.length-1,tN=tO[tV]||{src:""};tR=tN.src?tN.src.replace(/^[^\?]+\??/,""):"",function(t){for(var e=tR.split("&"),i=0;i<e.length;i+=1){var s=e[i].split("=");if(decodeURIComponent(s[0])==t)return decodeURIComponent(s[1])}}("renderer");var tz=setInterval(function(){"complete"===document.readyState&&(clearInterval(tz),tL())},100);try{"object"!==tM(o)&&(window.bodymovin=tI)}catch(t){}function tB(t){for(var e=t.fStyle?t.fStyle.split(" "):[],i="normal",s="normal",a=e.length,r=0;r<a;r+=1)switch(e[r].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}}var tj=function(){var t={w:0,size:0,shapes:[],data:{shapes:[]}},e=[];e=e.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var i=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function s(t,e){var i=n("span");i.setAttribute("aria-hidden",!0),i.style.fontFamily=e;var s=n("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 a=s.offsetWidth;return s.style.fontFamily=function(t){var e,i=t.split(","),s=i.length,a=[];for(e=0;e<s;e+=1)"sans-serif"!==i[e]&&"monospace"!==i[e]&&a.push(i[e]);return a.join(",")}(t)+", "+e,{node:s,w:a,parent:i}}function a(t,e){var i,s=document.body&&e?"svg":"canvas",a=tB(t);if("svg"===s){var r=W("text");r.style.fontSize="100px",r.setAttribute("font-family",t.fFamily),r.setAttribute("font-style",a.style),r.setAttribute("font-weight",a.weight),r.textContent="1",t.fClass?(r.style.fontFamily="inherit",r.setAttribute("class",t.fClass)):r.style.fontFamily=t.fFamily,e.appendChild(r),i=r}else{var n=new OffscreenCanvas(500,500).getContext("2d");n.font=a.style+" "+a.weight+" 100px "+t.fFamily,i=n}return{measureText:function(t){return"svg"===s?(i.textContent=t,i.getComputedTextLength()):i.measureText(t).width}}}function r(t){var e=0,i=t.charCodeAt(0);if(i>=55296&&i<=56319){var s=t.charCodeAt(1);s>=56320&&s<=57343&&(e=1024*(i-55296)+s-56320+65536)}return e}function o(t){var e=r(t);return e>=127462&&e<=127487}var h=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 h.isModifier=function(t,e){var s=t.toString(16)+e.toString(16);return -1!==i.indexOf(s)},h.isZeroWidthJoiner=function(t){return 8205===t},h.isFlagEmoji=function(t){return o(t.substr(0,2))&&o(t.substr(2,2))},h.isRegionalCode=o,h.isCombinedCharacter=function(t){return -1!==e.indexOf(t)},h.isRegionalFlag=function(t,e){var i=r(t.substr(e,2));if(127988!==i)return!1;var s=0;for(e+=2;s<5;){if((i=r(t.substr(e,2)))<917601||i>917626)return!1;s+=1,e+=2}return 917631===r(t.substr(e,2))},h.isVariationSelector=function(t){return 65039===t},h.BLACK_FLAG_CODE_POINT=127988,h.prototype={addChars:function(t){if(t){this.chars||(this.chars=[]);var e,i,s,a=t.length,r=this.chars.length;for(e=0;e<a;e+=1){for(i=0,s=!1;i<r;)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]),r+=1)}}},addFonts:function(t,e){if(t){if(this.chars)return this.isLoaded=!0,void(this.fonts=t.list);if(!document.body)return this.isLoaded=!0,t.list.forEach(function(t){t.helper=a(t),t.cache={}}),void(this.fonts=t.list);var i,r=t.list,o=r.length,h=o;for(i=0;i<o;i+=1){var l,p,d=!0;if(r[i].loaded=!1,r[i].monoCase=s(r[i].fFamily,"monospace"),r[i].sansCase=s(r[i].fFamily,"sans-serif"),r[i].fPath){if("p"===r[i].fOrigin||3===r[i].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+r[i].fFamily+'"], style[f-origin="3"][f-family="'+r[i].fFamily+'"]')).length>0&&(d=!1),d){var f=n("style");f.setAttribute("f-forigin",r[i].fOrigin),f.setAttribute("f-origin",r[i].origin),f.setAttribute("f-family",r[i].fFamily),f.type="text/css",f.innerText="@font-face {font-family: "+r[i].fFamily+"; font-style: normal; src: url('"+r[i].fPath+"');}",e.appendChild(f)}}else if("g"===r[i].fOrigin||1===r[i].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),p=0;p<l.length;p+=1)-1!==l[p].href.indexOf(r[i].fPath)&&(d=!1);if(d){var m=n("link");m.setAttribute("f-forigin",r[i].fOrigin),m.setAttribute("f-origin",r[i].origin),m.type="text/css",m.rel="stylesheet",m.href=r[i].fPath,document.body.appendChild(m)}}else if("t"===r[i].fOrigin||2===r[i].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),p=0;p<l.length;p+=1)r[i].fPath===l[p].src&&(d=!1);if(d){var u=n("link");u.setAttribute("f-forigin",r[i].fOrigin),u.setAttribute("f-origin",r[i].origin),u.setAttribute("rel","stylesheet"),u.setAttribute("href",r[i].fPath),e.appendChild(u)}}}else r[i].loaded=!0,h-=1;r[i].helper=a(r[i],e),r[i].cache={},this.fonts.push(r[i])}0===h?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(e,i,s){for(var a=0,r=this.chars.length;a<r;){if(this.chars[a].ch===e&&this.chars[a].style===i&&this.chars[a].fFamily===s)return this.chars[a];a+=1}return("string"==typeof e&&13!==e.charCodeAt(0)||!e)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",e,i,s)),t},getFontByName: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]},measureText:function(t,e,i){var s=this.getFontByName(e);if(!s.cache[t]){var a=s.helper;if(" "===t){var r=a.measureText("|"+t+"|"),n=a.measureText("||");s.cache[t]=(r-n)/100}else s.cache[t]=a.measureText(t)/100}return s.cache[t]*i},checkLoadedFonts:function(){var t,e,i,s=this.fonts.length,a=s;for(t=0;t<s;t+=1)this.fonts[t].loaded?a-=1:"n"===this.fonts[t].fOrigin||0===this.fonts[t].origin?this.fonts[t].loaded=!0:(e=this.fonts[t].monoCase.node,i=this.fonts[t].monoCase.w,e.offsetWidth!==i?(a-=1,this.fonts[t].loaded=!0):(e=this.fonts[t].sansCase.node,i=this.fonts[t].sansCase.w,e.offsetWidth!==i&&(a-=1,this.fonts[t].loaded=!0)),this.fonts[t].loaded&&(this.fonts[t].sansCase.parent.parentNode.removeChild(this.fonts[t].sansCase.parent),this.fonts[t].monoCase.parent.parentNode.removeChild(this.fonts[t].monoCase.parent)));0!==a&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}},h}();function tq(t){this.animationData=t}function tW(){}tq.prototype.getProp=function(t){return this.animationData.slots&&this.animationData.slots[t.sid]?Object.assign(t,this.animationData.slots[t.sid].p):t},tW.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 t$,tH,tG,tX,tU,tY=(tU={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"},function(t){return tU[t]||""});function tZ(t,e,i){this.p=tS.getProp(e,t.v,0,0,i)}function tJ(t,e,i){this.p=tS.getProp(e,t.v,0,0,i)}function tK(t,e,i){this.p=tS.getProp(e,t.v,1,0,i)}function tQ(t,e,i){this.p=tS.getProp(e,t.v,1,0,i)}function t0(t,e,i){this.p=tS.getProp(e,t.v,0,0,i)}function t1(t,e,i){this.p=tS.getProp(e,t.v,0,0,i)}function t2(t,e,i){this.p=tS.getProp(e,t.v,0,0,i)}function t3(){this.p={}}function t5(t,e){var i,s=t.ef||[];this.effectElements=[];var a,r=s.length;for(i=0;i<r;i+=1)a=new t9(s[i],e),this.effectElements.push(a)}function t9(t,e){this.init(t,e)}function t4(){}function t6(){}function t8(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 t7(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?tS.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lv=tS.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}function et(){}h([tA],t9),t9.prototype.getValue=t9.prototype.iterateDynamicProperties,t9.prototype.init=function(t,e){this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var i,s,a=this.data.ef.length,r=this.data.ef;for(i=0;i<a;i+=1){switch(s=null,r[i].ty){case 0:s=new tZ(r[i],e,this);break;case 1:s=new tJ(r[i],e,this);break;case 2:s=new tK(r[i],e,this);break;case 3:s=new tQ(r[i],e,this);break;case 4:case 7:s=new t2(r[i],e,this);break;case 10:s=new t0(r[i],e,this);break;case 11:s=new t1(r[i],e,this);break;case 5:s=new t5(r[i],e);break;default:s=new t3(r[i])}s&&this.effectElements.push(s)}},t4.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(){},setBlendMode:function(){var t=tY(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=F(),this.data.sr||(this.data.sr=1),this.effectsManager=new t5(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},t6.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)}},t8.prototype.prepareFrame=function(){},h([tW,t4,t6],t8),t8.prototype.getBaseElement=function(){return null},t8.prototype.renderFrame=function(){},t8.prototype.destroy=function(){},t8.prototype.initExpressions=function(){},t8.prototype.getFootageData=function(){return this.footageData},t7.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))},h([tW,t4,t6],t7),t7.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))},t7.prototype.show=function(){},t7.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},t7.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},t7.prototype.resume=function(){this._canPlay=!0},t7.prototype.setRate=function(t){this.audio.rate(t)},t7.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},t7.prototype.getBaseElement=function(){return null},t7.prototype.destroy=function(){},t7.prototype.sourceRectAtTime=function(){},t7.prototype.initExpressions=function(){},et.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()},et.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)}},et.prototype.createCamera=function(){throw Error("You're using a 3d camera. Try the html renderer.")},et.prototype.createAudio=function(t){return new t7(t,this.globalData,this)},et.prototype.createFootage=function(t){return new t8(t,this.globalData,this)},et.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},et.prototype.includeLayers=function(t){this.completeLayers=!1;var e,i,s=t.length,a=this.layers.length;for(e=0;e<s;e+=1)for(i=0;i<a;){if(this.layers[i].id===t[e].id){this.layers[i]=t[e];break}i+=1}},et.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},et.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},et.prototype.buildElementParenting=function(t,e,i){for(var s=this.elements,a=this.layers,r=0,n=a.length;r<n;)a[r].ind==e&&(s[r]&&!0!==s[r]?(i.push(s[r]),s[r].setAsParent(),void 0!==a[r].parent?this.buildElementParenting(t,a[r].parent,i):t.setHierarchy(i)):(this.buildItem(r),this.addPendingElement(t))),r+=1},et.prototype.addPendingElement=function(t){this.pendingElements.push(t)},et.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)}},et.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},et.prototype.getElementByPath=function(t){var e,i=t.shift();if("number"==typeof i)e=this.elements[i];else{var s,a=this.elements.length;for(s=0;s<a;s+=1)if(this.elements[s].data.nm===i){e=this.elements[s];break}}return 0===t.length?e:e.getElementByPath(t)},et.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new tj,this.globalData.slotManager=new tq(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 ee=function(){var t=[0,0];function e(t,e,i){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new tx,this.pre=new tx,this.appliedTransformations=0,this.initDynamicPropertyContainer(i||t),e.p&&e.p.s?(this.px=tS.getProp(t,e.p.x,0,0,this),this.py=tS.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=tS.getProp(t,e.p.z,0,0,this))):this.p=tS.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=tS.getProp(t,e.rx,0,k,this),this.ry=tS.getProp(t,e.ry,0,k,this),this.rz=tS.getProp(t,e.rz,0,k,this),e.or.k[0].ti){var s,a=e.or.k.length;for(s=0;s<a;s+=1)e.or.k[s].to=null,e.or.k[s].ti=null}this.or=tS.getProp(t,e.or,1,k,this),this.or.sh=!0}else this.r=tS.getProp(t,e.r||{k:0},0,k,this);e.sk&&(this.sk=tS.getProp(t,e.sk,0,k,this),this.sa=tS.getProp(t,e.sa,0,k,this)),this.a=tS.getProp(t,e.a||{k:[0,0,0]},1,0,this),this.s=tS.getProp(t,e.s||{k:[100,100,100]},1,.01,this),e.o?this.o=tS.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return e.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){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),a=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),a=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/i,0)):(s=this.p.pv,a=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/i,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){s=[],a=[];var i,s,a,r=this.px,n=this.py;r._caching.lastFrame+r.offsetTime<=r.keyframes[0].t?(s[0]=r.getValueAtTime((r.keyframes[0].t+.01)/i,0),s[1]=n.getValueAtTime((n.keyframes[0].t+.01)/i,0),a[0]=r.getValueAtTime(r.keyframes[0].t/i,0),a[1]=n.getValueAtTime(n.keyframes[0].t/i,0)):r._caching.lastFrame+r.offsetTime>=r.keyframes[r.keyframes.length-1].t?(s[0]=r.getValueAtTime(r.keyframes[r.keyframes.length-1].t/i,0),s[1]=n.getValueAtTime(n.keyframes[n.keyframes.length-1].t/i,0),a[0]=r.getValueAtTime((r.keyframes[r.keyframes.length-1].t-.01)/i,0),a[1]=n.getValueAtTime((n.keyframes[n.keyframes.length-1].t-.01)/i,0)):(s=[r.pv,n.pv],a[0]=r.getValueAtTime((r._caching.lastFrame+r.offsetTime-.01)/i,r.offsetTime),a[1]=n.getValueAtTime((n._caching.lastFrame+n.offsetTime-.01)/i,n.offsetTime))}else s=a=t;this.v.rotate(-Math.atan2(s[1]-a[1],s[0]-a[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},h([tA],e),e.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},e.prototype._addDynamicProperty=tA.prototype.addDynamicProperty,{getTransformProperty:function(t,i,s){return new e(t,i,s)}}}(),ei={TRANSFORM_EFFECT:"transformEFfect"};function es(){}function ea(t,e,i){this.data=t,this.element=e,this.globalData=i,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var s,a,n,o=this.globalData.defs,h=this.masksProperties?this.masksProperties.length:0;this.viewData=d(h),this.solidPath="";var l,p,f,m,u,c,g=this.masksProperties,v=0,y=[],b=F(),_="clipPath",k="clip-path";for(a=0;a<h;a+=1)if(("a"!==g[a].mode&&"n"!==g[a].mode||g[a].inv||100!==g[a].o.k||g[a].o.x)&&(_="mask",k="mask"),"s"!==g[a].mode&&"i"!==g[a].mode||0!==v?f=null:((f=W("rect")).setAttribute("fill","#ffffff"),f.setAttribute("width",this.element.comp.data.w||0),f.setAttribute("height",this.element.comp.data.h||0),y.push(f)),n=W("path"),"n"===g[a].mode)this.viewData[a]={op:tS.getProp(this.element,g[a].o,0,.01,this.element),prop:tF.getShapeProp(this.element,g[a],3),elem:n,lastPath:""},o.appendChild(n);else{if(v+=1,n.setAttribute("fill","s"===g[a].mode?"#000000":"#ffffff"),n.setAttribute("clip-rule","nonzero"),0!==g[a].x.k?(_="mask",k="mask",c=tS.getProp(this.element,g[a].x,0,null,this.element),s=F(),(m=W("filter")).setAttribute("id",s),(u=W("feMorphology")).setAttribute("operator","erode"),u.setAttribute("in","SourceGraphic"),u.setAttribute("radius","0"),m.appendChild(u),o.appendChild(m),n.setAttribute("stroke","s"===g[a].mode?"#000000":"#ffffff")):(u=null,c=null),this.storedData[a]={elem:n,x:c,expan:u,lastPath:"",lastOperator:"",filterId:s,lastRadius:0},"i"===g[a].mode){p=y.length;var w=W("g");for(l=0;l<p;l+=1)w.appendChild(y[l]);var S=W("mask");S.setAttribute("mask-type","alpha"),S.setAttribute("id",b+"_"+v),S.appendChild(n),o.appendChild(S),w.setAttribute("mask","url("+r()+"#"+b+"_"+v+")"),y.length=0,y.push(w)}else y.push(n);g[a].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[a]={elem:n,lastPath:"",op:tS.getProp(this.element,g[a].o,0,.01,this.element),prop:tF.getShapeProp(this.element,g[a],3),invRect:f},this.viewData[a].prop.k||this.drawPath(g[a],this.viewData[a].prop.v,this.viewData[a])}for(this.maskElement=W(_),h=y.length,a=0;a<h;a+=1)this.maskElement.appendChild(y[a]);v>0&&(this.maskElement.setAttribute("id",b),this.element.maskedElement.setAttribute(k,"url("+r()+"#"+b+")"),o.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}es.prototype={initTransform:function(){var t=new tx;this.finalTransform={mProp:this.data.ks?ee.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 a=this.finalTransform.localOpacity;for(t=0;t<e;t+=1)a*=.01*this.localTransforms[t].opacity;this.finalTransform.localOpacity=a}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var t=this.renderableEffectsManager.getEffects(ei.TRANSFORM_EFFECT);if(t.length){this.localTransforms=[],this.finalTransform.localMat=new tx;var e=0,i=t.length;for(e=0;e<i;e+=1)this.localTransforms.push(t[e])}}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);for(var i,s=!0,a=this.comp;s;)a.finalTransform?(a.data.hasMask&&e.splice(0,0,a.finalTransform),a=a.comp):s=!1;var r,n=e.length;for(i=0;i<n;i+=1)r=e[i].mat.applyToPointArray(0,0,0),t=[t[0]-r[0],t[1]-r[1],0];return t},mHelper:new tx},ea.prototype.getMaskProperty=function(t){return this.viewData[t].prop},ea.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 a=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("+r()+"#"+this.storedData[e].filterId+")")),a.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))}},ea.prototype.getMaskelement=function(){return this.maskElement},ea.prototype.createLayerSolidPath=function(){return"M0,0 "+(" h"+this.globalData.compSize.w+" v"+this.globalData.compSize.h+" h-"+this.globalData.compSize.w+" v-")+this.globalData.compSize.h+" "},ea.prototype.drawPath=function(t,e,i){var s,a,r=" M"+e.v[0][0]+","+e.v[0][1];for(a=e._length,s=1;s<a;s+=1)r+=" 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&&a>1&&(r+=" 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!==r){var n="";i.elem&&(e.c&&(n=t.inv?this.solidPath+r:r),i.elem.setAttribute("d",n)),i.lastPath=r}},ea.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var er,en,eo=((er={}).createFilter=function(t,e){var i=W("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},er.createAlphaToLuminanceFilter=function(){var t=W("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},er),eh=(en={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas},(/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))&&(en.maskType=!1),/firefox/i.test(navigator.userAgent)&&(en.svgLumaHidden=!1),en),el={},ep="filter_result_";function ed(t){var e,i,s="SourceGraphic",a=t.data.ef?t.data.ef.length:0,n=F(),o=eo.createFilter(n,!0),h=0;for(this.filters=[],e=0;e<a;e+=1){i=null;var l=t.data.ef[e].ty;el[l]&&(i=new el[l].effect(o,t.effectsManager.effectElements[e],t,ep+h,s),s=ep+h,el[l].countsAsEffect&&(h+=1)),i&&this.filters.push(i)}h&&(t.globalData.defs.appendChild(o),t.layerElement.setAttribute("filter","url("+r()+"#"+n+")")),this.filters.length&&t.addRenderableComponent(this)}function ef(t,e,i){el[t]={effect:e,countsAsEffect:i}}function em(){}function eu(){}function ec(){}function eg(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 ev(t,e){this.elem=t,this.pos=e}function ey(){}ed.prototype.renderFrame=function(t){var e,i=this.filters.length;for(e=0;e<i;e+=1)this.filters[e].renderFrame(t)},ed.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},em.prototype={initRendererElement:function(){this.layerElement=W("g")},createContainerElements:function(){this.matteElement=W("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t=null;if(this.data.td){this.matteMasks={};var e=W("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=W("clipPath"),s=W("path");s.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var a=F();if(i.setAttribute("id",a),i.appendChild(s),this.globalData.defs.appendChild(i),this.checkMasks()){var n=W("g");n.setAttribute("clip-path","url("+r()+"#"+a+")"),n.appendChild(this.layerElement),this.transformedElement=n,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+r()+"#"+a+")")}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 ea(this.data,this,this.globalData),this.renderableEffectsManager=new ed(this),this.searchEffectTransforms()},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var e,i,s,a,n=this.layerId+"_"+t;if(1===t||3===t){var o=W("mask");o.setAttribute("id",n),o.setAttribute("mask-type",3===t?"luminance":"alpha"),(s=W("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),o.appendChild(s),this.globalData.defs.appendChild(o),eh.maskType||1!==t||(o.setAttribute("mask-type","luminance"),e=F(),i=eo.createFilter(e),this.globalData.defs.appendChild(i),i.appendChild(eo.createAlphaToLuminanceFilter()),(a=W("g")).appendChild(s),o.appendChild(a),a.setAttribute("filter","url("+r()+"#"+e+")"))}else if(2===t){var h=W("mask");h.setAttribute("id",n),h.setAttribute("mask-type","alpha");var l=W("g");h.appendChild(l),e=F(),i=eo.createFilter(e);var p=W("feComponentTransfer");p.setAttribute("in","SourceGraphic"),i.appendChild(p);var d=W("feFuncA");d.setAttribute("type","table"),d.setAttribute("tableValues","1.0 0.0"),p.appendChild(d),this.globalData.defs.appendChild(i);var f=W("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"),l.setAttribute("filter","url("+r()+"#"+e+")"),l.appendChild(f),(s=W("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(s),eh.maskType||(h.setAttribute("mask-type","luminance"),i.appendChild(eo.createAlphaToLuminanceFilter()),a=W("g"),l.appendChild(f),a.appendChild(this.layerElement),l.appendChild(a)),this.globalData.defs.appendChild(h)}this.matteMasks[t]=n}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+r()+"#"+t+")")}},eu.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,[])}},h([tW,function(t){function e(){}return e.prototype=t,e}({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()}})],ec),h([t4,es,em,eu,t6,ec],eg),eg.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=W("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)},eg.prototype.sourceRectAtTime=function(){return this.sourceRect},ey.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=this.shapeModifiers.length;0<e;)if(this.shapeModifiers[0].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(t=(e=this.shapeModifiers.length)-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)return void(i[s].pos=e);i.push(new ev(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var eb=(e={},(t={}).registerModifier=function(t,i){e[t]||(e[t]=i)},t.getModifier=function(t,i,s){return new e[t](i,s)},t);function e_(){}e_.prototype.initModifierProperties=function(){},e_.prototype.addShapeToModifier=function(){},e_.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:tC.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},e_.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=-999999,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},e_.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},h([tA],e_);var ek={1:"butt",2:"round",3:"square"},ew={1:"miter",2:"round",3:"bevel"};function eS(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,a=t.length;s<a;){if(t[s].mProps.dynamicProperties.length){this._isAnimated=!0;break}s+=1}}function eA(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=W("path"),this.msElem=null}function eD(t,e,i,s){this.elem=t,this.frameId=-1,this.dataProps=d(e.length),this.renderer=i,this.k=!1,this.dashStr="",this.dashArray=p("float32",e.length?e.length-1:0),this.dashoffset=p("float32",1),this.initDynamicPropertyContainer(s);var a,r,n=e.length||0;for(a=0;a<n;a+=1)r=tS.getProp(t,e[a].v,0,0,this),this.k=r.k||this.k,this.dataProps[a]={n:e[a].n,p:r};this.k||this.getValue(!0),this._isAnimated=this.k}function eP(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=tS.getProp(t,e.o,0,.01,this),this.w=tS.getProp(t,e.w,0,null,this),this.d=new eD(t,e.d||{},"svg",this),this.c=tS.getProp(t,e.c,1,255,this),this.style=i,this._isAnimated=!!this._isAnimated}function eT(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=tS.getProp(t,e.o,0,.01,this),this.c=tS.getProp(t,e.c,1,255,this),this.style=i}function eE(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=i}function eC(t,e,i){this.data=e,this.c=p("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=p("float32",s),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=s,this.initDynamicPropertyContainer(i),this.prop=tS.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function eF(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,i)}function ex(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=tS.getProp(t,e.w,0,null,this),this.d=new eD(t,e.d||{},"svg",this),this.initGradientData(t,e,i),this._isAnimated=!!this._isAnimated}function eM(){this.it=[],this.prevViewData=[],this.gr=W("g")}function eI(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}eS.prototype.setAsAnimated=function(){this._isAnimated=!0},eA.prototype.reset=function(){this.d="",this._mdf=!1},eD.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}},h([tA],eD),h([tA],eP),h([tA],eT),h([tA],eE),eC.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},eC.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},eC.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,a=4*this.data.p;for(e=0;e<a;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(a=this.prop.v.length,e=4*this.data.p;e<a;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}},h([tA],eC),eF.prototype.initGradientData=function(t,e,i){this.o=tS.getProp(t,e.o,0,.01,this),this.s=tS.getProp(t,e.s,1,null,this),this.e=tS.getProp(t,e.e,1,null,this),this.h=tS.getProp(t,e.h||{k:0},0,.01,this),this.a=tS.getProp(t,e.a||{k:0},0,k,this),this.g=new eC(t,e.g,this),this.style=i,this.stops=[],this.setGradientData(i.pElem,e),this.setGradientOpacity(e,i),this._isAnimated=!!this._isAnimated},eF.prototype.setGradientData=function(t,e){var i=F(),s=W(1===e.t?"linearGradient":"radialGradient");s.setAttribute("id",i),s.setAttribute("spreadMethod","pad"),s.setAttribute("gradientUnits","userSpaceOnUse");var a,n,o,h=[];for(o=4*e.g.p,n=0;n<o;n+=4)a=W("stop"),s.appendChild(a),h.push(a);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+r()+"#"+i+")"),this.gf=s,this.cst=h},eF.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var i,s,a,n=W("mask"),o=W("path");n.appendChild(o);var h=F(),l=F();n.setAttribute("id",l);var p=W(1===t.t?"linearGradient":"radialGradient");p.setAttribute("id",h),p.setAttribute("spreadMethod","pad"),p.setAttribute("gradientUnits","userSpaceOnUse"),a=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var d=this.stops;for(s=4*t.g.p;s<a;s+=2)(i=W("stop")).setAttribute("stop-color","rgb(255,255,255)"),p.appendChild(i),d.push(i);o.setAttribute("gf"===t.ty?"fill":"stroke","url("+r()+"#"+h+")"),"gs"===t.ty&&(o.setAttribute("stroke-linecap",ek[t.lc||2]),o.setAttribute("stroke-linejoin",ew[t.lj||2]),1===t.lj&&o.setAttribute("stroke-miterlimit",t.ml)),this.of=p,this.ms=n,this.ost=d,this.maskId=l,e.msElem=o}},h([tA],eF),h([eF,tA],ex);var eL=function(t,e,i,s){if(0===e)return"";var a,r=t.o,n=t.i,o=t.v,h=" M"+s.applyToPointStringified(o[0][0],o[0][1]);for(a=1;a<e;a+=1)h+=" C"+s.applyToPointStringified(r[a-1][0],r[a-1][1])+" "+s.applyToPointStringified(n[a][0],n[a][1])+" "+s.applyToPointStringified(o[a][0],o[a][1]);return i&&e&&(h+=" C"+s.applyToPointStringified(r[a-1][0],r[a-1][1])+" "+s.applyToPointStringified(n[0][0],n[0][1])+" "+s.applyToPointStringified(o[0][0],o[0][1])+"z"),h},eR=function(){var t=new tx,e=new tx;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 a(i,s,a){var r,n,o,h,l,p,d,f,m,u,c=s.styles.length,g=s.lvl;for(p=0;p<c;p+=1){if(h=s.sh._mdf||a,s.styles[p].lvl<g){for(f=e.reset(),m=g-s.styles[p].lvl,u=s.transformers.length-1;!h&&m>0;)h=s.transformers[u].mProps._mdf||h,m-=1,u-=1;if(h)for(m=g-s.styles[p].lvl,u=s.transformers.length-1;m>0;)f.multiply(s.transformers[u].mProps.v),m-=1,u-=1}else f=t;if(n=(d=s.sh.paths)._length,h){for(o="",r=0;r<n;r+=1)(l=d.shapes[r])&&l._length&&(o+=eL(l,l._length,l.c,f));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 r(t,e,i){var s=e.style;(e.c._mdf||i)&&s.pElem.setAttribute("fill","rgb("+y(e.c.v[0])+","+y(e.c.v[1])+","+y(e.c.v[2])+")"),(e.o._mdf||i)&&s.pElem.setAttribute("fill-opacity",e.o.v)}function n(t,e,i){o(t,e,i),h(t,e,i)}function o(t,e,i){var s,a,r,n,o,h=e.gf,l=e.g._hasOpacity,p=e.s.v,d=e.e.v;if(e.o._mdf||i){var f="gf"===t.ty?"fill-opacity":"stroke-opacity";e.style.pElem.setAttribute(f,e.o.v)}if(e.s._mdf||i){var m=1===t.t?"x1":"cx",u="x1"===m?"y1":"cy";h.setAttribute(m,p[0]),h.setAttribute(u,p[1]),l&&!e.g._collapsable&&(e.of.setAttribute(m,p[0]),e.of.setAttribute(u,p[1]))}if(e.g._cmdf||i){s=e.cst;var c=e.g.c;for(r=s.length,a=0;a<r;a+=1)(n=s[a]).setAttribute("offset",c[4*a]+"%"),n.setAttribute("stop-color","rgb("+c[4*a+1]+","+c[4*a+2]+","+c[4*a+3]+")")}if(l&&(e.g._omdf||i)){var g=e.g.o;for(r=(s=e.g._collapsable?e.cst:e.ost).length,a=0;a<r;a+=1)n=s[a],e.g._collapsable||n.setAttribute("offset",g[2*a]+"%"),n.setAttribute("stop-opacity",g[2*a+1])}if(1===t.t)(e.e._mdf||i)&&(h.setAttribute("x2",d[0]),h.setAttribute("y2",d[1]),l&&!e.g._collapsable&&(e.of.setAttribute("x2",d[0]),e.of.setAttribute("y2",d[1])));else if((e.s._mdf||e.e._mdf||i)&&(o=Math.sqrt(Math.pow(p[0]-d[0],2)+Math.pow(p[1]-d[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]-d[0],2)+Math.pow(p[1]-d[1],2)));var v=Math.atan2(d[1]-p[1],d[0]-p[0]),y=e.h.v;y>=1?y=.99:y<=-1&&(y=-.99);var b=o*y,_=Math.cos(v+e.a.v)*b+p[0],k=Math.sin(v+e.a.v)*b+p[1];h.setAttribute("fx",_),h.setAttribute("fy",k),l&&!e.g._collapsable&&(e.of.setAttribute("fx",_),e.of.setAttribute("fy",k))}}function h(t,e,i){var s=e.style,a=e.d;a&&(a._mdf||i)&&a.dashStr&&(s.pElem.setAttribute("stroke-dasharray",a.dashStr),s.pElem.setAttribute("stroke-dashoffset",a.dashoffset[0])),e.c&&(e.c._mdf||i)&&s.pElem.setAttribute("stroke","rgb("+y(e.c.v[0])+","+y(e.c.v[1])+","+y(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 r;case"gf":return o;case"gs":return n;case"st":return h;case"sh":case"el":case"rc":case"sr":return a;case"tr":return i;case"no":return s;default:return null}}}}();function eO(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 eV(t,e,i,s,a,r){this.o=t,this.sw=e,this.sc=i,this.fc=s,this.m=a,this.p=r,this._mdf={o:!0,sw:!!e,sc:!!i,fc:!!s,m:!0,p:!0}}function eN(t,e){this._frameId=-999999,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)}h([t4,es,em,ey,eu,t6,ec],eO),eO.prototype.initSecondaryElement=function(){},eO.prototype.identityMatrix=new tx,eO.prototype.buildExpressionInterface=function(){},eO.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},eO.prototype.filterUniqueShapes=function(){var t,e,i,s,a=this.shapes.length,r=this.stylesList.length,n=[],o=!1;for(i=0;i<r;i+=1){for(s=this.stylesList[i],o=!1,n.length=0,t=0;t<a;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(s)&&(n.push(e),o=e._isAnimated||o);n.length>1&&o&&this.setShapesAsAnimated(n)}},eO.prototype.setShapesAsAnimated=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e].setAsAnimated()},eO.prototype.createStyleElement=function(t,e){var i,s=new eA(t,e),a=s.pElem;return"st"===t.ty?i=new eP(this,t,s):"fl"===t.ty?i=new eT(this,t,s):"gf"===t.ty||"gs"===t.ty?(i=new("gf"===t.ty?eF:ex)(this,t,s),this.globalData.defs.appendChild(i.gf),i.maskId&&(this.globalData.defs.appendChild(i.ms),this.globalData.defs.appendChild(i.of),a.setAttribute("mask","url("+r()+"#"+i.maskId+")"))):"no"===t.ty&&(i=new eE(this,t,s)),"st"!==t.ty&&"gs"!==t.ty||(a.setAttribute("stroke-linecap",ek[t.lc||2]),a.setAttribute("stroke-linejoin",ew[t.lj||2]),a.setAttribute("fill-opacity","0"),1===t.lj&&a.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&a.setAttribute("fill-rule","evenodd"),t.ln&&a.setAttribute("id",t.ln),t.cl&&a.setAttribute("class",t.cl),t.bm&&(a.style["mix-blend-mode"]=tY(t.bm)),this.stylesList.push(s),this.addToAnimatedContents(t,i),i},eO.prototype.createGroupElement=function(t){var e=new eM;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"]=tY(t.bm)),e},eO.prototype.createTransformElement=function(t,e){var i=ee.getTransformProperty(this,t,this),s=new eI(i,i.o,e);return this.addToAnimatedContents(t,s),s},eO.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 a=new eS(e,i,tF.getShapeProp(this,t,s,this));return this.shapes.push(a),this.addShapeToModifiers(a),this.addToAnimatedContents(t,a),a},eO.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:eR.createRenderFunction(t),element:e,data:t})},eO.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])},eO.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()},eO.prototype.searchShapes=function(t,e,i,s,a,r,n){var o,h,l,p,d,f,m=[].concat(r),u=t.length-1,c=[],g=[];for(o=u;o>=0;o-=1){if((f=this.searchProcessedElement(t[o]))?e[o]=i[f-1]:t[o]._render=n,"fl"===t[o].ty||"st"===t[o].ty||"gf"===t[o].ty||"gs"===t[o].ty||"no"===t[o].ty)f?e[o].style.closed=t[o].hd:e[o]=this.createStyleElement(t[o],a),t[o]._render&&e[o].style.pElem.parentNode!==s&&s.appendChild(e[o].style.pElem),c.push(e[o].style);else if("gr"===t[o].ty){if(f)for(l=e[o].it.length,h=0;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,a+1,m,n),t[o]._render&&e[o].gr.parentNode!==s&&s.appendChild(e[o].gr)}else"tr"===t[o].ty?(f||(e[o]=this.createTransformElement(t[o],s)),p=e[o].transform,m.push(p)):"sh"===t[o].ty||"rc"===t[o].ty||"el"===t[o].ty||"sr"===t[o].ty?(f||(e[o]=this.createShapeElement(t[o],m,a)),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?(f?(d=e[o]).closed=!1:((d=eb.getModifier(t[o].ty)).init(this,t[o]),e[o]=d,this.shapeModifiers.push(d)),g.push(d)):"rp"===t[o].ty&&(f?(d=e[o]).closed=!0:(d=eb.getModifier(t[o].ty),e[o]=d,d.init(this,t,o,e),this.shapeModifiers.push(d),n=!1),g.push(d));this.addProcessedElement(t[o],o+1)}for(u=c.length,o=0;o<u;o+=1)c[o].closed=!0;for(u=g.length,o=0;o<u;o+=1)g[o].closed=!0},eO.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"))},eO.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)},eO.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},eV.prototype.update=function(t,e,i,s,a,r){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 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!==i&&(this.sc=i,this._mdf.sc=!0,n=!0),this.fc!==s&&(this.fc=s,this._mdf.fc=!0,n=!0),this.m!==a&&(this.m=a,this._mdf.m=!0,n=!0),r.length&&(this.p[0]!==r[0]||this.p[1]!==r[1]||this.p[4]!==r[4]||this.p[5]!==r[5]||this.p[12]!==r[12]||this.p[13]!==r[13])&&(this.p=r,this._mdf.p=!0,n=!0),n},eN.prototype.defaultBoxWidth=[0,0],eN.prototype.copyData=function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},eN.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},eN.prototype.searchProperty=function(){return this.searchKeyframes()},eN.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},eN.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},eN.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,i=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{this.lock=!0,this._mdf=!1;var s,a=this.effectsSequence.length,r=t||this.data.d.k[this.keysIndex].s;for(s=0;s<a;s+=1)r=i!==this.keysIndex?this.effectsSequence[s](r,r.t):this.effectsSequence[s](this.currentData,r.t);e!==r&&this.setCurrentData(r),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},eN.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},eN.prototype.buildFinalText=function(t){for(var e,i,s=[],a=0,r=t.length,n=!1,o=!1,h="";a<r;)n=o,o=!1,e=t.charCodeAt(a),h=t.charAt(a),tj.isCombinedCharacter(e)?n=!0:e>=55296&&e<=56319?tj.isRegionalFlag(t,a)?h=t.substr(a,14):(i=t.charCodeAt(a+1))>=56320&&i<=57343&&(tj.isModifier(e,i)?(h=t.substr(a,2),n=!0):h=tj.isFlagEmoji(t.substr(a,4))?t.substr(a,4):t.substr(a,2)):e>56319?(i=t.charCodeAt(a+1),tj.isVariationSelector(e)&&(n=!0)):tj.isZeroWidthJoiner(e)&&(n=!0,o=!0),n?(s[s.length-1]+=h,n=!1):s.push(h),a+=h.length;return s},eN.prototype.completeTextData=function(t){t.__complete=!0;var e,i,s,a,r,n,o,h=this.elem.globalData.fontManager,l=this.data,p=[],d=0,f=l.m.g,m=0,u=0,c=0,g=[],v=0,y=0,b=h.getFontByName(t.f),_=0,k=tB(b);t.fWeight=k.weight,t.fStyle=k.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),i=t.finalText.length,t.finalLineHeight=t.lh;var w,S=t.tr/1e3*t.finalSize;if(t.sz)for(var A,D,P=!0,T=t.sz[0],E=t.sz[1];P;){A=0,v=0,i=(D=this.buildFinalText(t.t)).length,S=t.tr/1e3*t.finalSize;var C=-1;for(e=0;e<i;e+=1)w=D[e].charCodeAt(0),s=!1," "===D[e]?C=e:13!==w&&3!==w||(v=0,s=!0,A+=t.finalLineHeight||1.2*t.finalSize),h.chars?(o=h.getCharData(D[e],b.fStyle,b.fFamily),_=s?0:o.w*t.finalSize/100):_=h.measureText(D[e],t.f,t.finalSize),v+_>T&&" "!==D[e]?(-1===C?i+=1:e=C,A+=t.finalLineHeight||1.2*t.finalSize,D.splice(e,C===e?1:0,"\r"),C=-1,v=0):v+=_+S;A+=b.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&E<A?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=D,i=t.finalText.length,P=!1)}v=-S,_=0;var F,x=0;for(e=0;e<i;e+=1)if(s=!1,13===(w=(F=t.finalText[e]).charCodeAt(0))||3===w?(x=0,g.push(v),y=v>y?v:y,v=-2*S,a="",s=!0,c+=1):a=F,h.chars?(o=h.getCharData(F,b.fStyle,h.getFontByName(t.f).fFamily),_=s?0:o.w*t.finalSize/100):_=h.measureText(a,t.f,t.finalSize)," "===F?x+=_+S:(v+=_+S+x,x=0),p.push({l:_,an:_,add:m,n:s,anIndexes:[],val:a,line:c,animatorJustifyOffset:0}),2==f){if(m+=_,""===a||" "===a||e===i-1){for(""!==a&&" "!==a||(m-=_);u<=e;)p[u].an=m,p[u].ind=d,p[u].extra=_,u+=1;d+=1,m=0}}else if(3==f){if(m+=_,""===a||e===i-1){for(""===a&&(m-=_);u<=e;)p[u].an=m,p[u].ind=d,p[u].extra=_,u+=1;m=0,d+=1}}else p[d].ind=d,p[d].extra=0,d+=1;if(t.l=p,y=v>y?v:y,g.push(v),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=y,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=g;var M,I,L,R,O=l.a;n=O.length;var V=[];for(r=0;r<n;r+=1){for((M=O[r]).a.sc&&(t.strokeColorAnim=!0),M.a.sw&&(t.strokeWidthAnim=!0),(M.a.fc||M.a.fh||M.a.fs||M.a.fb)&&(t.fillColorAnim=!0),R=0,L=M.s.b,e=0;e<i;e+=1)(I=p[e]).anIndexes[r]=R,(1==L&&""!==I.val||2==L&&""!==I.val&&" "!==I.val||3==L&&(I.n||" "==I.val||e==i-1)||4==L&&(I.n||e==i-1))&&(1===M.s.rn&&V.push(R),R+=1);l.a[r].s.totalChars=R;var N,z=-1;if(1===M.s.rn)for(e=0;e<i;e+=1)z!=(I=p[e]).anIndexes[r]&&(z=I.anIndexes[r],N=V.splice(Math.floor(Math.random()*V.length),1)[0]),I.anIndexes[r]=N}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=b.ascent*t.finalSize/100},eN.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)},eN.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},eN.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},eN.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var ez=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=tS.getProp(t,e.s||{k:0},0,0,this),this.e="e"in e?tS.getProp(t,e.e,0,0,this):{v:100},this.o=tS.getProp(t,e.o||{k:0},0,0,this),this.xe=tS.getProp(t,e.xe||{k:0},0,0,this),this.ne=tS.getProp(t,e.ne||{k:0},0,0,this),this.sm=tS.getProp(t,e.sm||{k:100},0,0,this),this.a=tS.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 a=0,r=0,n=1,o=1;this.ne.v>0?a=this.ne.v/100:r=-this.ne.v/100,this.xe.v>0?n=1-this.xe.v/100:o=1+this.xe.v/100;var h=tt.getBezierEasing(a,r,n,o).get,l=0,p=this.finalS,d=this.finalE,f=this.data.sh;if(2===f)l=h(l=d===p?s>=d?1:0:t(0,e(.5/(d-p)+(s-p)/(d-p),1)));else if(3===f)l=h(l=d===p?s>=d?0:1:1-t(0,e(.5/(d-p)+(s-p)/(d-p),1)));else if(4===f)d===p?l=0:(l=t(0,e(.5/(d-p)+(s-p)/(d-p),1)))<.5?l*=2:l=1-2*(l-.5),l=h(l);else if(5===f){if(d===p)l=0;else{var m=d-p,u=-m/2+(s=e(t(0,s+.5-p),d-p)),c=m/2;l=Math.sqrt(1-u*u/(c*c))}l=h(l)}else 6===f?l=h(l=d===p?0:(1+Math.cos(Math.PI+2*Math.PI*(s=e(t(0,s+.5-p),d-p))/(d-p)))/2):(s>=i(p)&&(l=t(0,e(s-p<0?e(d,1)-(p-s):d-s,1))),l=h(l));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var v=.5-.5*g;l<v?l=0:(l=(l-v)/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,a=this.e.v/e+i;if(s>a){var r=s;s=a,a=r}this.finalS=s,this.finalE=a}},h([tA],s),{getTextSelectorProp:function(t,e,i){return new s(t,e)}}}();function eB(t,e,i){var s={propType:!1},a=tS.getProp,r=e.a;this.a={r:r.r?a(t,r.r,0,k,i):s,rx:r.rx?a(t,r.rx,0,k,i):s,ry:r.ry?a(t,r.ry,0,k,i):s,sk:r.sk?a(t,r.sk,0,k,i):s,sa:r.sa?a(t,r.sa,0,k,i):s,s:r.s?a(t,r.s,1,.01,i):s,a:r.a?a(t,r.a,1,0,i):s,o:r.o?a(t,r.o,0,.01,i):s,p:r.p?a(t,r.p,1,0,i):s,sw:r.sw?a(t,r.sw,0,0,i):s,sc:r.sc?a(t,r.sc,1,0,i):s,fc:r.fc?a(t,r.fc,1,0,i):s,fh:r.fh?a(t,r.fh,0,0,i):s,fs:r.fs?a(t,r.fs,0,.01,i):s,fb:r.fb?a(t,r.fb,0,.01,i):s,t:r.t?a(t,r.t,0,0,i):s},this.s=ez.getTextSelectorProp(t,e.s,i),this.s.t=e.s.t}function ej(t,e,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=i,this._animatorsData=d(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}function eq(){}ej.prototype.searchProperties=function(){var t,e,i=this._textData.a.length,s=tS.getProp;for(t=0;t<i;t+=1)e=this._textData.a[t],this._animatorsData[t]=new eB(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)},ej.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,a,r,n,o,h,l,p,d,f,m,u,c,g,v,y,b,_,k=this._moreOptions.alignment.v,w=this._animatorsData,S=this._textData,A=this.mHelper,D=this._renderType,P=this.renderedLetters.length,T=t.l;if(this._hasMaskedPath){if(_=this._pathData.m,!this._pathData.n||this._pathData._mdf){var E,C=_.v;for(this._pathData.r.v&&(C=C.reverse()),n={tLength:0,segments:[]},r=C._length-1,v=0,a=0;a<r;a+=1)E=tr.buildBezierData(C.v[a],C.v[a+1],[C.o[a][0]-C.v[a][0],C.o[a][1]-C.v[a][1]],[C.i[a+1][0]-C.v[a+1][0],C.i[a+1][1]-C.v[a+1][1]]),n.tLength+=E.segmentLength,n.segments.push(E),v+=E.segmentLength;a=r,_.v.c&&(E=tr.buildBezierData(C.v[a],C.v[0],[C.o[a][0]-C.v[a][0],C.o[a][1]-C.v[a][1]],[C.i[0][0]-C.v[0][0],C.i[0][1]-C.v[0][1]]),n.tLength+=E.segmentLength,n.segments.push(E),v+=E.segmentLength),this._pathData.pi=n}if(n=this._pathData.pi,o=this._pathData.f.v,f=0,d=1,l=0,p=!0,c=n.segments,o<0&&_.v.c)for(n.tLength<Math.abs(o)&&(o=-Math.abs(o)%n.tLength),d=(u=c[f=c.length-1].points).length-1;o<0;)o+=u[d].partialLength,(d-=1)<0&&(d=(u=c[f-=1].points).length-1);m=(u=c[f].points)[d-1],g=(h=u[d]).partialLength}r=T.length,i=0,s=0;var F,x,M,O,V,N=1.2*t.finalSize*.714,z=!0;M=w.length;var B,j,q,W,$,H,G,X,U,Y,Z,J,K=-1,Q=o,tt=f,te=d,ti=-1,ts="",ta=this.defaultPropsArray;if(2===t.j||1===t.j){var tn=0,to=0,th=2===t.j?-.5:-1,tl=0,tp=!0;for(a=0;a<r;a+=1)if(T[a].n){for(tn&&(tn+=to);tl<a;)T[tl].animatorJustifyOffset=tn,tl+=1;tn=0,tp=!0}else{for(x=0;x<M;x+=1)(F=w[x].a).t.propType&&(tp&&2===t.j&&(to+=F.t.v*th),(V=w[x].s.getMult(T[a].anIndexes[x],S.a[x].s.totalChars)).length?tn+=F.t.v*V[0]*th:tn+=F.t.v*V*th);tp=!1}for(tn&&(tn+=to);tl<a;)T[tl].animatorJustifyOffset=tn,tl+=1}for(a=0;a<r;a+=1){if(A.reset(),W=1,T[a].n)i=0,s+=t.yOffset+(z?1:0),o=Q,z=!1,this._hasMaskedPath&&(d=te,m=(u=c[f=tt].points)[d-1],g=(h=u[d]).partialLength,l=0),ts="",Z="",U="",J="",ta=this.defaultPropsArray;else{if(this._hasMaskedPath){if(ti!==T[a].line){switch(t.j){case 1:o+=v-t.lineWidths[T[a].line];break;case 2:o+=(v-t.lineWidths[T[a].line])/2}ti=T[a].line}K!==T[a].ind&&(T[K]&&(o+=T[K].extra),o+=T[a].an/2,K=T[a].ind),o+=k[0]*T[a].an*.005;var td=0;for(x=0;x<M;x+=1)(F=w[x].a).p.propType&&((V=w[x].s.getMult(T[a].anIndexes[x],S.a[x].s.totalChars)).length?td+=F.p.v[0]*V[0]:td+=F.p.v[0]*V),F.a.propType&&((V=w[x].s.getMult(T[a].anIndexes[x],S.a[x].s.totalChars)).length?td+=F.a.v[0]*V[0]:td+=F.a.v[0]*V);for(p=!0,this._pathData.a.v&&(o=.5*T[0].an+(v-this._pathData.f.v-.5*T[0].an-.5*T[T.length-1].an)*K/(r-1)+this._pathData.f.v);p;)l+g>=o+td||!u?(y=(o+td-l)/h.partialLength,j=m.point[0]+(h.point[0]-m.point[0])*y,q=m.point[1]+(h.point[1]-m.point[1])*y,A.translate(-k[0]*T[a].an*.005,-k[1]*N*.01),p=!1):u&&(l+=h.partialLength,(d+=1)>=u.length&&(d=0,c[f+=1]?u=c[f].points:_.v.c?(d=0,u=c[f=0].points):(l-=h.partialLength,u=null)),u&&(m=h,g=(h=u[d]).partialLength));B=T[a].an/2-T[a].add,A.translate(-B,0,0)}else B=T[a].an/2-T[a].add,A.translate(-B,0,0),A.translate(-k[0]*T[a].an*.005,-k[1]*N*.01,0);for(x=0;x<M;x+=1)(F=w[x].a).t.propType&&(V=w[x].s.getMult(T[a].anIndexes[x],S.a[x].s.totalChars),0===i&&0===t.j||(this._hasMaskedPath?V.length?o+=F.t.v*V[0]:o+=F.t.v*V:V.length?i+=F.t.v*V[0]:i+=F.t.v*V));for(t.strokeWidthAnim&&(H=t.sw||0),t.strokeColorAnim&&($=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(G=[t.fc[0],t.fc[1],t.fc[2]]),x=0;x<M;x+=1)(F=w[x].a).a.propType&&((V=w[x].s.getMult(T[a].anIndexes[x],S.a[x].s.totalChars)).length?A.translate(-F.a.v[0]*V[0],-F.a.v[1]*V[1],F.a.v[2]*V[2]):A.translate(-F.a.v[0]*V,-F.a.v[1]*V,F.a.v[2]*V));for(x=0;x<M;x+=1)(F=w[x].a).s.propType&&((V=w[x].s.getMult(T[a].anIndexes[x],S.a[x].s.totalChars)).length?A.scale(1+(F.s.v[0]-1)*V[0],1+(F.s.v[1]-1)*V[1],1):A.scale(1+(F.s.v[0]-1)*V,1+(F.s.v[1]-1)*V,1));for(x=0;x<M;x+=1){if(F=w[x].a,V=w[x].s.getMult(T[a].anIndexes[x],S.a[x].s.totalChars),F.sk.propType&&(V.length?A.skewFromAxis(-F.sk.v*V[0],F.sa.v*V[1]):A.skewFromAxis(-F.sk.v*V,F.sa.v*V)),F.r.propType&&(V.length?A.rotateZ(-F.r.v*V[2]):A.rotateZ(-F.r.v*V)),F.ry.propType&&(V.length?A.rotateY(F.ry.v*V[1]):A.rotateY(F.ry.v*V)),F.rx.propType&&(V.length?A.rotateX(F.rx.v*V[0]):A.rotateX(F.rx.v*V)),F.o.propType&&(V.length?W+=(F.o.v*V[0]-W)*V[0]:W+=(F.o.v*V-W)*V),t.strokeWidthAnim&&F.sw.propType&&(V.length?H+=F.sw.v*V[0]:H+=F.sw.v*V),t.strokeColorAnim&&F.sc.propType)for(X=0;X<3;X+=1)V.length?$[X]+=(F.sc.v[X]-$[X])*V[0]:$[X]+=(F.sc.v[X]-$[X])*V;if(t.fillColorAnim&&t.fc){if(F.fc.propType)for(X=0;X<3;X+=1)V.length?G[X]+=(F.fc.v[X]-G[X])*V[0]:G[X]+=(F.fc.v[X]-G[X])*V;F.fh.propType&&(G=V.length?R(G,F.fh.v*V[0]):R(G,F.fh.v*V)),F.fs.propType&&(G=V.length?I(G,F.fs.v*V[0]):I(G,F.fs.v*V)),F.fb.propType&&(G=V.length?L(G,F.fb.v*V[0]):L(G,F.fb.v*V))}}for(x=0;x<M;x+=1)(F=w[x].a).p.propType&&(V=w[x].s.getMult(T[a].anIndexes[x],S.a[x].s.totalChars),this._hasMaskedPath?V.length?A.translate(0,F.p.v[1]*V[0],-F.p.v[2]*V[1]):A.translate(0,F.p.v[1]*V,-F.p.v[2]*V):V.length?A.translate(F.p.v[0]*V[0],F.p.v[1]*V[1],-F.p.v[2]*V[2]):A.translate(F.p.v[0]*V,F.p.v[1]*V,-F.p.v[2]*V));if(t.strokeWidthAnim&&(U=H<0?0:H),t.strokeColorAnim&&(Y="rgb("+Math.round(255*$[0])+","+Math.round(255*$[1])+","+Math.round(255*$[2])+")"),t.fillColorAnim&&t.fc&&(Z="rgb("+Math.round(255*G[0])+","+Math.round(255*G[1])+","+Math.round(255*G[2])+")"),this._hasMaskedPath){if(A.translate(0,-t.ls),A.translate(0,k[1]*N*.01+s,0),this._pathData.p.v){var tf=180*Math.atan(b=(h.point[1]-m.point[1])/(h.point[0]-m.point[0]))/Math.PI;h.point[0]<m.point[0]&&(tf+=180),A.rotate(-tf*Math.PI/180)}A.translate(j,q,0),o-=k[0]*T[a].an*.005,T[a+1]&&K!==T[a+1].ind&&(o+=T[a].an/2+.001*t.tr*t.finalSize)}else{switch(A.translate(i,s,0),t.ps&&A.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:A.translate(T[a].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[T[a].line]),0,0);break;case 2:A.translate(T[a].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[T[a].line])/2,0,0)}A.translate(0,-t.ls),A.translate(B,0,0),A.translate(k[0]*T[a].an*.005,k[1]*N*.01,0),i+=T[a].l+.001*t.tr*t.finalSize}"html"===D?ts=A.toCSS():"svg"===D?ts=A.to2dCSS():ta=[A.props[0],A.props[1],A.props[2],A.props[3],A.props[4],A.props[5],A.props[6],A.props[7],A.props[8],A.props[9],A.props[10],A.props[11],A.props[12],A.props[13],A.props[14],A.props[15]],J=W}P<=a?(O=new eV(J,U,Y,Z,ts,ta),this.renderedLetters.push(O),P+=1,this.lettersChangedFlag=!0):(O=this.renderedLetters[a],this.lettersChangedFlag=O.update(J,U,Y,Z,ts,ta)||this.lettersChangedFlag)}}},ej.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},ej.prototype.mHelper=new tx,ej.prototype.defaultPropsArray=[],h([tA],ej),eq.prototype.initElement=function(t,e,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,i),this.textProperty=new eN(this,t.t,this.dynamicProperties),this.textAnimator=new ej(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)},eq.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)},eq.prototype.createPathShape=function(t,e){var i,s,a=e.length,r="";for(i=0;i<a;i+=1)"sh"===e[i].ty&&(r+=eL(s=e[i].ks.k,s.i.length,!0,t));return r},eq.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},eq.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},eq.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},eq.prototype.applyTextPropertiesToMatrix=function(t,e,i,s,a){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,a,0)},eq.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},eq.prototype.emptyProp=new eV,eq.prototype.destroy=function(){},eq.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var eW={shapes:[]};function e$(t,e,i){this.textSpans=[],this.renderType="svg",this.initElement(t,e,i)}function eH(t,e,i){this.initElement(t,e,i)}function eG(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initFrame(),this.initTransform(t,e,i),this.initHierarchy()}function eX(){}function eU(){}function eY(t,e,i){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?d(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?tS.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function eZ(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=W("svg");var i="";if(e&&e.title){var s=W("title"),a=F();s.setAttribute("id",a),s.textContent=e.title,this.svgElement.appendChild(s),i+=a}if(e&&e.description){var r=W("desc"),n=F();r.setAttribute("id",n),r.textContent=e.description,this.svgElement.appendChild(r),i+=" "+n}i&&this.svgElement.setAttribute("aria-labelledby",i);var o=W("defs");this.svgElement.appendChild(o);var h=W("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 eJ(){}function eK(){}function eQ(t,e,i,s,a){var r=e.container.globalData.renderConfig.filterSize,n=e.data.fs||r;t.setAttribute("x",n.x||r.x),t.setAttribute("y",n.y||r.y),t.setAttribute("width",n.width||r.width),t.setAttribute("height",n.height||r.height),this.filterManager=e;var o=W("feGaussianBlur");o.setAttribute("in","SourceAlpha"),o.setAttribute("result",s+"_drop_shadow_1"),o.setAttribute("stdDeviation","0"),this.feGaussianBlur=o,t.appendChild(o);var h=W("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=W("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=W("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 d=this.createMergeNode(s,[s+"_drop_shadow_4",a]);t.appendChild(d)}function e0(t,e,i,s){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","300%"),t.setAttribute("height","300%"),this.filterManager=e;var a=W("feGaussianBlur");a.setAttribute("result",s),t.appendChild(a),this.feGaussianBlur=a}return h([t4,es,em,eu,t6,ec,eq],e$),e$.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=W("text"))},e$.prototype.buildTextContents=function(t){for(var e=0,i=t.length,s=[],a="";e<i;)"\r"===t[e]||"\x03"===t[e]?(s.push(a),a=""):a+=t[e],e+=1;return s.push(a),s},e$.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},e$.prototype.buildNewText=function(){this.addDynamicProperty(this);var t=this.textProperty.currentData;this.renderedLetters=d(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 a,r,n,o=t.l||[],h=!!this.globalData.fontManager.chars;r=o.length;var l=this.mHelper,p=this.data.singleShape,f=0,m=0,u=!0,c=.001*t.tr*t.finalSize;if(!p||h||t.sz){var g,v=this.textSpans.length;for(a=0;a<r;a+=1){if(this.textSpans[a]||(this.textSpans[a]={span:null,childSpan:null,glyph:null}),!h||!p||0===a){if(n=v>a?this.textSpans[a].span:W(h?"g":"text"),v<=a){if(n.setAttribute("stroke-linecap","butt"),n.setAttribute("stroke-linejoin","round"),n.setAttribute("stroke-miterlimit","4"),this.textSpans[a].span=n,h){var y,b=W("g");n.appendChild(b),this.textSpans[a].childSpan=b}this.textSpans[a].span=n,this.layerElement.appendChild(n)}n.style.display="inherit"}if(l.reset(),p&&(o[a].n&&(f=-c,m+=t.yOffset+(u?1:0),u=!1),this.applyTextPropertiesToMatrix(t,l,o[a].line,f,m),f+=(o[a].l||0)+c),h){if(1===(g=this.globalData.fontManager.getCharData(t.finalText[a],e.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily)).t)y=new eY(g.data,this.globalData,this);else{var _=eW;g.data&&g.data.shapes&&(_=this.buildShapeData(g.data,t.finalSize)),y=new eO(_,this.globalData,this)}if(this.textSpans[a].glyph){var k=this.textSpans[a].glyph;this.textSpans[a].childSpan.removeChild(k.layerElement),k.destroy()}this.textSpans[a].glyph=y,y._debug=!0,y.prepareFrame(0),y.renderFrame(),this.textSpans[a].childSpan.appendChild(y.layerElement),1===g.t&&this.textSpans[a].childSpan.setAttribute("transform","scale("+t.finalSize/100+","+t.finalSize/100+")")}else p&&n.setAttribute("transform","translate("+l.props[12]+","+l.props[13]+")"),n.textContent=o[a].val,n.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}p&&n&&n.setAttribute("d","")}else{var w=this.textContainer,S="start";switch(t.j){case 1:S="end";break;case 2:S="middle";break;default:S="start"}w.setAttribute("text-anchor",S),w.setAttribute("letter-spacing",c);var A=this.buildTextContents(t.finalText);for(r=A.length,m=t.ps?t.ps[1]+t.ascent:0,a=0;a<r;a+=1)(n=this.textSpans[a].span||W("tspan")).textContent=A[a],n.setAttribute("x",0),n.setAttribute("y",m),n.style.display="inherit",w.appendChild(n),this.textSpans[a]||(this.textSpans[a]={span:null,glyph:null}),this.textSpans[a].span=n,m+=t.finalLineHeight;this.layerElement.appendChild(w)}for(;a<this.textSpans.length;)this.textSpans[a].span.style.display="none",a+=1;this._sizeChanged=!0},e$.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},e$.prototype.getValue=function(){var t,e,i=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<i;t+=1)(e=this.textSpans[t].glyph)&&(e.prepareFrame(this.comp.renderedFrame-this.data.st),e._mdf&&(this._mdf=!0))},e$.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,a,r=this.textAnimator.renderedLetters,n=this.textProperty.currentData.l;for(e=n.length,t=0;t<e;t+=1)n[t].n||(i=r[t],s=this.textSpans[t].span,(a=this.textSpans[t].glyph)&&a.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))}},h([eg],eH),eH.prototype.createContent=function(){var t=W("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},eG.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},eG.prototype.renderFrame=function(){},eG.prototype.getBaseElement=function(){return null},eG.prototype.destroy=function(){},eG.prototype.sourceRectAtTime=function(){},eG.prototype.hide=function(){},h([t4,es,eu,t6],eG),h([et],eX),eX.prototype.createNull=function(t){return new eG(t,this.globalData,this)},eX.prototype.createShape=function(t){return new eO(t,this.globalData,this)},eX.prototype.createText=function(t){return new e$(t,this.globalData,this)},eX.prototype.createImage=function(t){return new eg(t,this.globalData,this)},eX.prototype.createSolid=function(t){return new eH(t,this.globalData,this)},eX.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=W("clipPath"),s=W("rect");s.setAttribute("width",t.w),s.setAttribute("height",t.h),s.setAttribute("x",0),s.setAttribute("y",0);var a=F();i.setAttribute("id",a),i.appendChild(s),this.layerElement.setAttribute("clip-path","url("+r()+"#"+a+")"),e.appendChild(i),this.layers=t.layers,this.elements=d(t.layers.length)},eX.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},eX.prototype.updateContainerSize=function(){},eX.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},eX.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,z()&&(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 a=e[s].getMatte(this.layers[t].tt);i.setMatte(a)}else this.buildItem(s),this.addPendingElement(i)}}},eX.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,a=this.elements[s].getMatte(this.layers[e].tt);t.setMatte(a);break}e+=1}}},eX.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()}},eX.prototype.appendElementInPos=function(t,e){var i=t.getBaseElement();if(i){for(var s,a=0;a<e;)this.elements[a]&&!0!==this.elements[a]&&this.elements[a].getBaseElement()&&(s=this.elements[a].getBaseElement()),a+=1;s?this.layerElement.insertBefore(i,s):this.layerElement.appendChild(i)}},eX.prototype.hide=function(){this.layerElement.style.display="none"},eX.prototype.show=function(){this.layerElement.style.display="block"},h([t4,es,eu,t6,ec],eU),eU.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()},eU.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=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}var i,s=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),i=s-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._mdf&&(this._mdf=!0))}},eU.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()},eU.prototype.setElements=function(t){this.elements=t},eU.prototype.getElements=function(){return this.elements},eU.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},eU.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},h([eX,eU,em],eY),eY.prototype.createComp=function(t){return new eY(t,this.globalData,this)},h([eX],eZ),eZ.prototype.createComp=function(t){return new eY(t,this.globalData,this)},h([e_],eJ),eJ.prototype.initModifierProperties=function(t,e){this.s=tS.getProp(t,e.s,0,.01,this),this.e=tS.getProp(t,e.e,0,.01,this),this.o=tS.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},eJ.prototype.addShapeToModifier=function(t){t.pathsData=[]},eJ.prototype.calculateShapeEdges=function(t,e,i,s,a){var r=[];e<=1?r.push({s:t,e:e}):t>=1?r.push({s:t-1,e:e-1}):(r.push({s:t,e:1}),r.push({s:0,e:e-1}));var n,o,h=[],l=r.length;for(n=0;n<l;n+=1)(o=r[n]).e*a<s||o.s*a>s+i||h.push([o.s*a<=s?0:(o.s*a-s)/i,o.e*a>=s+i?1:(o.e*a-s)/i]);return h.length||h.push([0,0]),h},eJ.prototype.releasePathsData=function(t){var e,i=t.length;for(e=0;e<i;e+=1)ta.release(t[e]);return t.length=0,t},eJ.prototype.processShapes=function(t){if(this._mdf||t){var e=this.o.v%360/360;if(e<0&&(e+=1),(s=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=s;s=a,a=i}s=1e-4*Math.round(1e4*s),a=1e-4*Math.round(1e4*a),this.sValue=s,this.eValue=a}else s=this.sValue,a=this.eValue;var s,a,r,n,o,h,l,p,d,f=this.shapes.length,m=0;if(a===s)for(n=0;n<f;n+=1)this.shapes[n].localShapeCollection.releaseShapes(),this.shapes[n].shape._mdf=!0,this.shapes[n].shape.paths=this.shapes[n].localShapeCollection,this._mdf&&(this.shapes[n].pathsData.length=0);else if(1===a&&0===s||0===a&&1===s){if(this._mdf)for(n=0;n<f;n+=1)this.shapes[n].pathsData.length=0,this.shapes[n].shape._mdf=!0}else{var u,c,g=[];for(n=0;n<f;n+=1)if((u=this.shapes[n]).shape._mdf||this._mdf||t||2===this.m){if(h=(r=u.shape.paths)._length,d=0,!u.shape._mdf&&u.pathsData.length)d=u.totalShapeLength;else{for(l=this.releasePathsData(u.pathsData),o=0;o<h;o+=1)p=tr.getSegmentsLength(r.shapes[o]),l.push(p),d+=p.totalLength;u.totalShapeLength=d,u.pathsData=l}m+=d,u.shape._mdf=!0}else u.shape.paths=u.localShapeCollection;var v,y=s,b=a,_=0;for(n=f-1;n>=0;n-=1)if((u=this.shapes[n]).shape._mdf){for((c=u.localShapeCollection).releaseShapes(),2===this.m&&f>1?(v=this.calculateShapeEdges(s,a,u.totalShapeLength,_,m),_+=u.totalShapeLength):v=[[y,b]],h=v.length,o=0;o<h;o+=1){y=v[o][0],b=v[o][1],g.length=0,b<=1?g.push({s:u.totalShapeLength*y,e:u.totalShapeLength*b}):y>=1?g.push({s:u.totalShapeLength*(y-1),e:u.totalShapeLength*(b-1)}):(g.push({s:u.totalShapeLength*y,e:u.totalShapeLength}),g.push({s:0,e:u.totalShapeLength*(b-1)}));var k=this.addShapes(u,g[0]);if(g[0].s!==g[0].e){if(g.length>1){if(u.shape.paths.shapes[u.shape.paths._length-1].c){var w=k.pop();this.addPaths(k,c),k=this.addShapes(u,g[1],w)}else this.addPaths(k,c),k=this.addShapes(u,g[1])}this.addPaths(k,c)}}u.shape.paths=c}}},eJ.prototype.addPaths=function(t,e){var i,s=t.length;for(i=0;i<s;i+=1)e.addShape(t[i])},eJ.prototype.addSegment=function(t,e,i,s,a,r,n){a.setXYAt(e[0],e[1],"o",r),a.setXYAt(i[0],i[1],"i",r+1),n&&a.setXYAt(t[0],t[1],"v",r),a.setXYAt(s[0],s[1],"v",r+1)},eJ.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)},eJ.prototype.addShapes=function(t,e,i){var s,a,r,n,o,h,l,p,d=t.pathsData,f=t.shape.paths.shapes,m=t.shape.paths._length,u=0,c=[],g=!0;for(i?(o=i._length,p=i._length):(i=tT.newElement(),o=0,p=0),c.push(i),s=0;s<m;s+=1){for(h=d[s].lengths,i.c=f[s].c,r=f[s].c?h.length:h.length+1,a=1;a<r;a+=1)if(u+(n=h[a-1]).addedLength<e.s)u+=n.addedLength,i.c=!1;else{if(u>e.e){i.c=!1;break}e.s<=u&&e.e>=u+n.addedLength?(this.addSegment(f[s].v[a-1],f[s].o[a-1],f[s].i[a],f[s].v[a],i,o,g),g=!1):(l=tr.getNewSegment(f[s].v[a-1],f[s].v[a],f[s].o[a-1],f[s].i[a],(e.s-u)/n.addedLength,(e.e-u)/n.addedLength,h[a-1]),this.addSegmentFromArray(l,i,o,g),g=!1,i.c=!1),u+=n.addedLength,o+=1}if(f[s].c&&h.length){if(n=h[a-1],u<=e.e){var v=h[a-1].addedLength;e.s<=u&&e.e>=u+v?(this.addSegment(f[s].v[a-1],f[s].o[a-1],f[s].i[0],f[s].v[0],i,o,g),g=!1):(l=tr.getNewSegment(f[s].v[a-1],f[s].v[0],f[s].o[a-1],f[s].i[0],(e.s-u)/v,(e.e-u)/v,h[a-1]),this.addSegmentFromArray(l,i,o,g),g=!1,i.c=!1)}else i.c=!1;u+=n.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)),u>e.e)break;s<m-1&&(i=tT.newElement(),g=!0,c.push(i),o=0)}return c},eK.prototype={createMergeNode:function(t,e){var i,s,a=W("feMerge");for(a.setAttribute("result",t),s=0;s<e.length;s+=1)(i=W("feMergeNode")).setAttribute("in",e[s]),a.appendChild(i),a.appendChild(i);return a}},h([eK],eQ),eQ.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",O(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)*k,a=i*Math.cos(s),r=i*Math.sin(s);this.feOffset.setAttribute("dx",a),this.feOffset.setAttribute("dy",r)}}},e0.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=.3*this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v;this.feGaussianBlur.setAttribute("stdDeviation",(3==i?0:e)+" "+(2==i?0:e));var s=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",s)}},Z.svg=eZ,eb.registerModifier("tm",eJ),ef(25,eQ,!0),ef(29,e0,!0),tI}());var l=(s=h.exports)&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s;let p=[/^https?:\/\/(.*[^.]\.)?lottielab\.com$/],d={v:"5.7.5",fr:100,ip:0,op:300,w:300,h:225,nm:"Comp 1",ddd:0,assets:[],layers:[],markers:[]};class f{constructor(t,e,i){this.root=t,this.initialize(e,i)}_initWithAnimation(t,e,i){this._animation=l.loadAnimation({container:e,renderer:"svg",autoplay:!1,animationData:t,rendererSettings:{preserveAspectRatio:i}})}initialize(t,e){this.destroy();let i=document.createElement("div");if(i.style.width="100%",i.style.height="100%","string"==typeof t){if(this.loadingSrc===t)return Promise.resolve();this.loadingSrc=t;let s=new XMLHttpRequest;s.open("GET",t,!0);try{p.some(e=>new URL(t).origin.match(e))&&s.setRequestHeader("X-Lottie-Player","@lottielab/lottie-player 1.1.1")}catch(t){}return new Promise((a,r)=>{s.onload=()=>{if(this.loadingSrc!==t)return a();try{if(200===s.status){if(!s.response)return r(Error(`Failed to load Lottie file ${t}: Empty response`));let n=JSON.parse(s.response);return this._initWithAnimation(n,i,e),this.root.innerHTML="",this.root.appendChild(i),a()}{let e=s.responseText;return e.length>300&&(e=e.slice(0,300)+"... (truncated)"),r(Error(`Failed to load Lottie file ${t}: HTTP ${s.status} ${s.statusText}
Response:
${e}`))}}catch(e){return e.message&&(e.message=`Failed to load Lottie file ${t}: ${e.message}`),r(e)}finally{this.loadingSrc=void 0}},s.onerror=()=>{this.loadingSrc=void 0,r(Error(`Failed to load Lottie file ${t}: Network error`))},s.send()})}return this._initWithAnimation(null!=t?t:d,i,e),this.root.innerHTML="",this.root.appendChild(i),this.loadingSrc=void 0,Promise.resolve()}get frameRate(){return this._animation?this._animation.frameRate:0}get duration(){return this._animation?this._animation.getDuration(!1):0}get durationFrames(){return this._animation?this._animation.getDuration(!0):0}get animation(){return this._animation}get animationData(){var t;let e=null===(t=this._animation)||void 0===t?void 0:t.animationData;if(e!==d)return e}renderFrame(t){let e=Math.max(0,Math.min(this.durationFrames-1e-6,t*this.frameRate));this._animation.goToAndStop(e,!0)}get currentTime(){return this._animation.currentFrame/this.frameRate}get currentFrame(){return this._animation.currentFrame}destroy(){this._animation&&this._animation.destroy(),this.root.innerHTML=""}}class m{constructor(t){var e;this.ops=[],this.lottie=t;let i=t.renderer,s=new WeakSet;(null!==(e=null==i?void 0:i.elements)&&void 0!==e?e:[]).forEach(t=>this.attach(t,s))}attachToProp(t){var e;let i=this;if(!(null===(e=t.effectsSequence)||void 0===e?void 0:e.length))return;let s=[];for(let e=0;e<8;e++)s[e]={_caching:structuredClone(t._caching),propType:t.propType,offsetTime:t.offsetTime,keyframes:t.keyframes,keyframesMetadata:t.keyframesMetadata,sh:t.sh,pv:structuredClone(t.pv)};t.addEffect(function(e){let a=i.ops.slice(-8);t.interpolateShape&&null==e&&(e=structuredClone(t.pv));for(let r=0;r<a.length;r++){let n=a[r],o=s[r];!o._caching&&t._caching&&(o._caching=structuredClone(t._caching)),!o.keyframes&&t.keyframes&&(o.keyframes=t.keyframes),!o.keyframesMetadata&&t.keyframesMetadata&&(o.keyframesMetadata=t.keyframesMetadata);let h=Math.min(Math.max(Math.round(n.time*i.lottie.frameRate),0),i.lottie.getDuration(!0)-1e-5);try{let i;o.offsetTime=t.offsetTime,t.interpolateValue?(o._caching.lastFrame>=h&&(o._caching._lastKeyframeIndex=-1,o._caching.lastIndex=0),i=t.interpolateValue.call(o,h,o._caching),o.pv=i):t.interpolateShape?(o._caching.lastIndex=o._caching.lastFrame<h?o._caching.lastIndex:0,t.interpolateShape.call(o,h,o.pv,o._caching),i=o.pv):i=0,o._caching.lastFrame=h,e=function t(e,i,s){var a,r,n,o;return null==e?i:null==i?e:"number"==typeof e?"number"!=typeof i?s>.5?i:e:(1-s)*e+s*i:Array.isArray(e)||e instanceof Float32Array?Array.isArray(i)||i instanceof Float32Array?e.map((e,a)=>{var r;return t(e,null!==(r=i[a])&&void 0!==r?r:e,s)}):s>.5?i:e:"i"in e&&"v"in e&&"o"in e&&"object"==typeof i&&"i"in i&&"v"in i&&"o"in i?{closed:e.closed&&i.closed,i:t(e.i,i.i,s),o:t(e.o,i.o,s),v:t(e.v,i.v,s),length:Math.max(null!==(a=e.length)&&void 0!==a?a:0,null!==(r=i.length)&&void 0!==r?r:0),_length:Math.max(null!==(n=e._length)&&void 0!==n?n:0,null!==(o=i._length)&&void 0!==o?o:0)}:s>.5?i:e}(e,i,n.strength)}catch(t){console.warn("[@lottielab/lottie-player:morph]",t)}}return e})}attach(t,e=new WeakSet){if(!e.has(t)&&"object"==typeof t&&null!=t){if(e.add(t),t.interpolateShape||t.interpolateValue||t.addEffect||t.effectsSequence)this.attachToProp(t);else for(let i of Object.values(t))this.attach(i,e)}}detach(){}}class u{constructor(){this.listeners=[]}addListener(t){this.listeners.push(t)}removeListener(t){this.listeners=this.listeners.filter(e=>e!==t)}hasListeners(){return this.listeners.length>0}removeAllListeners(){this.listeners=[]}emit(t){for(let e of this.listeners)e(t)}}class c{constructor(t,e,i,s){this.animationFrame=void 0,this.onFrameBound=this.onFrame.bind(this),this.timeMultiplier=1,this.timeEvent=new u,this.renderer=new f(t,e,s),this._state={time:0,lottie:this.renderer.animationData},i&&(this.animationFrame=requestAnimationFrame(this.onFrameBound),this.driver=i)}initialize(t,e){return this.renderer.initialize(t,e).then(()=>{void 0===this.animationFrame&&(this.animationFrame=requestAnimationFrame(this.onFrameBound)),this.advanceToNow(),this._state.lottie=this.renderer.animationData,this.refresh()}).catch(t=>{this._state.lottie=void 0})}get state(){return this._state}refresh(){var t;null===(t=this.morphing)||void 0===t||t.detach(),this.morphing=void 0,this.renderer.renderFrame(this.state.time),this.setState(this.state)}setState(t){var e,i,s,a;let r=this._state.time!==t.time;if(this._state=t,r&&this.renderer.renderFrame(t.time),t.morphs){if(!this.morphing&&this.renderer.animation&&(this.morphing=new m(this.renderer.animation)),this.morphing){let s=this.morphing.ops.length!==t.morphs.length||this.morphing.ops.some((e,i)=>{let s=t.morphs[i];return!s||e.time!==s.time||e.strength!==s.strength});this.morphing.ops=t.morphs,s&&!r&&(null===(i=null===(e=this.renderer.animation)||void 0===e?void 0:e.renderer)||void 0===i||i.renderFrame(null))}}else this.morphing&&this.morphing.ops.length>0&&(this.morphing.ops=[],null===(a=null===(s=this.renderer.animation)||void 0===s?void 0:s.renderer)||void 0===a||a.renderFrame(null))}set state(t){if(this.driver)throw Error("Cannot set state directly when using a driver");this.setState(t)}get driver(){return this._driver}set driver(t){void 0===this.animationFrame&&t?this.animationFrame=requestAnimationFrame(this.onFrameBound):void 0===this.animationFrame||t||(cancelAnimationFrame(this.animationFrame),this.animationFrame=void 0),this._driver=t,(null==t?void 0:t.advance)&&this.setState(t.advance(this._state,0))}get clock(){if(void 0===this.prevTime)return 0;let t=this.prevTime,e=(null==performance?void 0:performance.now())||(new Date).getTime();return(t+(e-(this.prevRealTime||e)))/1e3}get duration(){return this.renderer.duration}get durationInFrames(){return this.renderer.durationFrames}get frameRate(){return this.renderer.frameRate}get animation(){return this.renderer.animation}get animationData(){return this.renderer.animationData}get currentTime(){return this.renderer.currentTime}get currentFrame(){return this.renderer.currentFrame}advanceToNow(){var t;let e=this.clock,i=void 0!==this.prevClock?e-this.prevClock:0;if((null===(t=this.driver)||void 0===t?void 0:t.advance)&&i>0){this._state.lottie=this.renderer.animationData;let t=i*this.timeMultiplier;this.setState(this.driver.advance(this._state,i*this.timeMultiplier)),this.timeEvent.emit({playhead:this.currentTime,clock:this.clock,elapsed:t}),this.renderer.renderFrame(this._state.time)}this.prevClock=e}destroy(){var t;this.animationFrame&&(cancelAnimationFrame(this.animationFrame),this.animationFrame=void 0),null===(t=this.morphing)||void 0===t||t.detach(),this.renderer.destroy()}onFrame(t){this.prevTime=t,this.prevRealTime=(null==performance?void 0:performance.now())||(new Date).getTime(),this.advanceToNow(),this.animationFrame=requestAnimationFrame(this.onFrameBound)}}class g{constructor(){this.playing=!0,this.time=0,this.speed=1,this.direction=1,this._loop=!0,this._loopsRemaining=1/0,this.loopEvent=new u,this.finishEvent=new u}get effectiveSegment(){var t;return this.segment?this.segment:[0,null!==(t=this._duration)&&void 0!==t?t:0]}globalTimeToSegmentTime(t){let[e,i]=this.effectiveSegment;return Math.min(Math.max(t-e,0),i-e)}segmentTimeToGlobalTime(t){let[e]=this.effectiveSegment;return e+t}advance(t,e,i){let s;let{lottie:a}=t;if(this._fps=a?a.fr:100,this._duration=a?(a.op-a.ip)/(a?a.fr:100):0,!this.playing)return{time:this.time,lottie:a};let r=this.globalTimeToSegmentTime(this.time);s=r+e*this.speed*this.direction;let n=[];if(this.durationOfSegment>0){let t=Math.abs(Math.floor(s/this.durationOfSegment)),e=this.durationOfSegment-r;for(let i=0;i<t;i++){this._loopsRemaining--;let t=e+i*this.durationOfSegment;if(!(this._loopsRemaining>0)){n.push({type:"finish",relativeTime:t}),s=Math.max(0,Math.min(s,this.durationOfSegment)),this._loopsRemaining=0,this.playing=!1;break}n.push({type:"loop",relativeTime:t}),s>=this.durationOfSegment?s-=this.durationOfSegment:s+=this.durationOfSegment}}else s=0,n.push({type:"loop",relativeTime:0});let o=this.segmentTimeToGlobalTime(s);if(this.time=o,n.length>0)for(let t of(null!=i&&i.push(...n),n))"loop"===t.type?this.loopEvent.emit(void 0):"finish"===t.type&&this.finishEvent.emit(void 0);return{time:o,lottie:a}}play(){this.playing=!0}pause(){this.playing=!1}stop(){this.playing=!1,this.seek(0),this.loop=this._loop}seek(t){this.time=t}seekToFrame(t){this.time=t/this.frameRate}loopBetween(t,e){this.segment=[t,e]}loopBetweenFrames(t,e){this.segment=[t/this.frameRate,e/this.frameRate]}get loop(){return this._loop}set loop(t){this._loop=t,this._loopsRemaining="number"==typeof t?t:t?1/0:1}get currentTime(){return this.time}get currentFrame(){return this.time*this.frameRate}get timeInSegment(){return this.globalTimeToSegmentTime(this.time)}set timeInSegment(t){this.time=this.segmentTimeToGlobalTime(t)}get frameInSegment(){return this.timeInSegment*this.frameRate}get frameRate(){var t;return null!==(t=this._fps)&&void 0!==t?t:100}get duration(){var t;return null!==(t=this._duration)&&void 0!==t?t:0}get durationFrames(){return this.duration*this.frameRate}get durationOfSegment(){let[t,e]=this.effectiveSegment;return e-t}get animation(){throw Error("This is just a driver and implements ILottie for clarity; you shouldn't directly call this function")}get animationData(){throw Error("This is just a driver and implements ILottie for clarity; you shouldn't directly call this function")}toInteractive(){throw Error("This is just a driver and implements ILottie for clarity; you shouldn't directly call this function")}toPlayback(){}on(t,e){throw Error("This is just a driver and implements ILottie for clarity; you shouldn't directly call this function")}off(t,e){throw Error("This is just a driver and implements ILottie for clarity; you shouldn't directly call this function")}}function v(t){switch(t.event){case"finish":return"finish";case"click":case"mouseDown":case"mouseUp":case"mouseEnter":case"mouseLeave":return t.target?`${t.event}:${t.target}`:t.event;case"custom":return"custom:"+t.name}}function y(t){throw Error(`Unexpected ${t.name} at position ${t.position}.`)}Object.freeze({__proto__:null,eventToString:v});let b=(()=>{let t=[{name:"number",lbp:2,detect:t=>/^([1-9]\d*|0)(\.\d*)?$/.test(t),nud:(t,e)=>({type:0,value:parseFloat(e.value)})},{name:"identifier",lbp:2,detect:t=>/^[_a-zA-Z][_a-zA-Z0-9]*(\.[a-zA-Z]+)*$/.test(t),nud:(t,e)=>({type:1,name:e.value})},{name:"^",lbp:9,led:(t,e)=>({type:3,operator:"^",left:e,right:t.parse(8)})},{name:"!",lbp:10,nud:t=>({type:2,operator:"!",operand:t.parse(10)})},{name:"conditional-operator",detect:t=>"?"==t,lbp:3,led:(t,e)=>{let i=t.parse(2),s=t.pop();return":"!=s.name&&y(s),{type:4,condition:e,thenBranch:i,elseBranch:t.parse(2)}}},{name:"(",lbp:11,nud:t=>{let e=t.parse(1),i=t.pop();return")"!=i.name&&y(i),e},led:(t,e,i)=>{1!=e.type&&y(i);let s=[];if(")"==t.peek().name)t.pop();else for(;;){s.push(t.parse(1));let e=t.pop();if(")"==e.name)break;","!=e.name&&y(e)}return{type:5,name:e.name,operands:s}}},{name:"end of input",lbp:0}];for(let e of["+","-"])t.push({name:e,lbp:7,nud:t=>({type:2,operator:e,operand:t.parse(7)}),led:(t,i)=>({type:3,operator:e,left:i,right:t.parse(7)})});for(let[e,i]of[["*",8],["/",8],["<",6],["<=",6],[">",6],[">=",6],["==",6],["&&",5],["||",4]])t.push({name:e,lbp:i,led:(t,s)=>({type:3,operator:e,left:s,right:t.parse(i)})});for(let e of[",",")",":"])t.push({name:e,lbp:1});return t})(),_=Math;function k(t){throw Error(`Symbol ${t} is not defined and not a built in symbol.`)}let w={time:0,"time.diff":0,playhead:0,"playhead.progress":0,"playhead.abs":0,"mouse.x":0,"mouse.y":0,"mouse.progress.x":0,"mouse.progress.y":0,"mouse.abs.x":0,"mouse.abs.y":0,"mouse.buttons.left":!1,"mouse.buttons.right":!1,"mouse.buttons.middle":!1};function S(t,e){let i=Object.assign({},t);for(let t in e){if(!/^[a-zA-Z_][a-zA-Z0-9_.]*$/.test(t))continue;let s=e[t];"object"==typeof s&&"x"in s&&"y"in s&&"number"==typeof s.x&&"number"==typeof s.y?(i[t+".x"]=s.x,i[t+".y"]=s.y):i[t]="number"==typeof s||"boolean"==typeof s?s:0}return i}function A(t,e){try{let i=function(t){let e=function(t){let e=/^\s*$/,i=t.split(/([+\-*/^(),?:!]|<=|>=|==|>(?!=)|<(?!=)|\|\||&&|\s+)/g);i.push("end of input");let s=0,a=[];for(let t of i){if(!b.some(e=>{var i;if((null!==(i=e.detect)&&void 0!==i?i:t=>t==e.name)(t))return a.push(Object.assign(Object.assign({},e),{value:t,position:s})),!0})&&!e.test(t))throw Error(`Invalid token ${t} at position ${s}`);s+=t.length}return a}(t),i=0,s={peek:()=>e[i],pop:()=>e[i++],parse:t=>{let e=s.pop();e.nud||y(e);let i=e.nud(s,e);for(;s.peek().lbp>t;)(e=s.pop()).led||y(e),i=e.led(s,i,e);return i}};return s.parse(0)}(t);return t=>{try{return+function t(e,i){var s,a;switch(e.type){case 0:return e.value;case 1:{let t=e.name,a=null!==(s=i[t])&&void 0!==s?s:_[t];if(null==a&&k(t),"boolean"!=typeof a&&"number"!=typeof a)throw Error(`Symbol ${t} is a function and must be used in a function call.`);return a}case 2:{let s=t(e.operand,i);return function(t,e){switch(t){case"+":return+e;case"-":return-e;case"!":return!e}}(e.operator,s)}case 3:{let s=t(e.left,i),a=t(e.right,i);return function(t,e,i){switch(t){case"+":return e+i;case"-":return e-i;case"*":return e*i;case"/":return e/i;case"^":return Math.pow(e,i);case"<":return e<i;case"<=":return e<=i;case">":return e>i;case">=":return e>=i;case"==":return e==i;case"&&":return e&&i;case"||":return e||i}}(e.operator,s,a)}case 4:{let s=t(e.condition,i);return t(s?e.thenBranch:e.elseBranch,i)}case 5:{let s=e.name,r=null!==(a=i[s])&&void 0!==a?a:_[s];if(null==r&&k(s),"function"!=typeof r)throw Error(`Symbol ${s} has value ${r} and is not callable.`);if(r.length!=e.operands.length)throw Error(`Expected ${r.length} operands for ${s}, received ${e.operands.length}`);let n=e.operands.map(e=>t(e,i));return r.apply(null,n)}}}(i,t)}catch(t){return e}}}catch(t){return()=>e}}function D(t){var e;let i=new g;i.segment=t.segment,i.loop=null===(e=t.loop)||void 0===e||e,t.direction&&(i.direction="forward"===t.direction?1:-1);let s={driver:i};return"number"==typeof t.speed?i.speed=t.speed:"string"==typeof t.speed&&(s.speedControl=A(t.speed,1)),t.playhead&&(s.playheadControl=A(t.playhead,0)),s}function P(t,e,i,s,a,r){var n,o;let h=Object.assign(Object.assign({},a),{time:s,"time.diff":i,playhead:t.driver.timeInSegment,"playhead.progress":t.driver.durationOfSegment>0?t.driver.timeInSegment/t.driver.durationOfSegment:0,"playhead.abs":t.driver.currentTime});t.speedControl&&(t.driver.speed=t.speedControl(a));let l=t.driver.advance(e,i,r);return t.playheadControl&&(l.time=t.playheadControl(h)*t.driver.durationOfSegment+(null!==(o=null===(n=t.driver.segment)||void 0===n?void 0:n[0])&&void 0!==o?o:0)),l}function T(t,e,i,s=1){let a=e[1]-e[0],r=i[1]-i[0],n=a>0?(t-e[0])/a:0;return n=Math.min(1,Math.max(0,n))*s,i[0]+n*r}function E(t,e,i){let s=i[1]-i[0],a=t-e[0],r=i[0]+(s>0?a%(i[1]-i[0]):0);return Math.min(i[1],Math.max(i[0],r))}function C(t,e,i){let s=t-e[0]+i[0];return Math.min(i[1],Math.max(i[0],s))}class F{constructor(t){this.builtinVariables=Object.assign({},w),this.userVariables={},this.variables={},this.clock=0,this.transitionStartEvent=new u,this.transitionEndEvent=new u,this._definition=t;let e=t.states[t.initialState];if(!e)throw Error(`Initial state ${t.initialState} does not exist`);this.enterState(e)}setupMorphingForCurrentState(t){(null==t?void 0:t.force)&&(this.morphing=void 0);let e=this.state.def;if(e.morphing&&!this.morphing){let t=this._definition.states[e.morphing.otherState];t?this.morphing={other:{type:"state",def:t,playback:D(t)},strength:"number"==typeof e.morphing.strength?e.morphing.strength:A(e.morphing.strength,0)}:console.warn(`[@lottielab/lottie-player:interactivity] State '${e.morphing.otherState}' to morph with does not exist`)}else!e.morphing&&this.morphing&&(this.morphing=void 0)}enterState(t){let e=D(t);this.state={type:"state",def:t,playback:e,remainingDuration:t.duration},this.setupMorphingForCurrentState({force:!0})}getCurrentState(){return this.state}goToState(t,e){let i=this.state,s=i.def.segment;this.transition&&this.transitionEndEvent.emit({from:this.transition.from,to:this.state.def,transition:this.transition.def});let a=this.state.playback.driver.time;this.enterState(t),e=null!=e?e:{startAt:"start"},this.transitionStartEvent.emit({from:i.def,to:t,transition:e});let r=t.segment;switch(null==e?void 0:e.startAt){case"start":case void 0:this.state.playback.driver.time=r[0];break;case"end":this.state.playback.driver.time=r[1];break;case"proportional":this.state.playback.driver.time=T(a,s,r);break;case"wrap":this.state.playback.driver.time=E(a,s,r);break;case"clamp":this.state.playback.driver.time=C(a,s,r);break;default:console.warn(`[@lottielab/lottie-player:interactive] Unknown startAt value in ttransition: ${e.startAt}`)}if(e.duration){let t=this.transition?Object.assign(Object.assign({},this.transition),{next:i}):i;this.transition={type:"transition",prev:t,progress:0,def:e,from:i.def}}else this.transition=void 0,this.transitionEndEvent.emit({from:i.def,to:t,transition:e})}get definition(){return this._definition}set definition(t){var e;let i=null===(e=Object.entries(this._definition.states).find(([t,e])=>e===this.state.def))||void 0===e?void 0:e[0];if(this._definition=t,i&&this._definition.states[i])this.enterState(t.states[i]);else{if(!t.states[t.initialState])throw this.enterState({segment:[0,0],loop:!1,speed:1,direction:"forward"}),Error(`Initial state ${t.initialState} does not exist`);let e=this.state.playback.driver.time;this.enterState(t.states[t.initialState]),this.state.playback.driver.time=e,this.transition=void 0}}updateVariables(t){this.builtinVariables=Object.assign(Object.assign({},this.builtinVariables),t),this.variables=S(this.builtinVariables,this.userVariables)}setUserVariables(t){this.userVariables=t,this.variables=S(this.builtinVariables,this.userVariables)}handle(t){var e;let i=null===(e=this.state.def.on)||void 0===e?void 0:e[v(t)];if(!i)return;let s=this._definition.states[i.goTo];s?this.goToState(s,i):console.warn(`[@lottielab/lottie-player:interactive] State ${i.goTo} does not exist`)}getMorphs(t){var e,i,s;let a;if(!this.morphing)return t.morphs;let r=null!==(i=null===(e=this.state.def.morphing)||void 0===e?void 0:e.timeRemap)&&void 0!==i?i:"proportional",n=t.morphs?t.morphs[t.morphs.length-1].time:t.time;switch(r){case"proportional":a=T(n,this.state.def.segment,this.morphing.other.def.segment);break;case"wrap":a=E(n,this.state.def.segment,this.morphing.other.def.segment);break;case"clamp":a=C(n,this.state.def.segment,this.morphing.other.def.segment);break;default:return void console.warn(`[@lottielab/lottie-player:interactive] Unknown timeRemap: ${r}`)}return(null!==(s=t.morphs)&&void 0!==s?s:[]).concat([{time:a,strength:"number"==typeof this.morphing.strength?this.morphing.strength:this.morphing.strength(this.variables)}])}getEffectiveState(t){return"state"===t.type||t.progress<1?t:t.next?t.next:this.state}applyTransition(t,e,i){let s=t;return this.transition&&(s=function t(e,i,s,a,r,n=!0,o=8){var h,l,p,d,f,m;let u=i.next?P(i.next.playback,e,s,a,r):e;if(i&&i.def.duration){let c;c="state"===i.prev.type?P(i.prev.playback,e,s,a,r):t(e,i.prev,s,a,r,!1,o-1),n&&(i.progress+=s/i.def.duration),i.progress=Math.min(1,i.progress);let g=i.progress;if(i.def.easing&&(l=i.def.easing,p=g,g=(f=[(d={start:{x:0,y:0},end:{x:1,y:1},controlPoint1:l.o,controlPoint2:l.i}).start,d.controlPoint1,d.controlPoint2,d.end],m=[Math.pow(1-p,3),3*Math.pow(1-p,2)*p,3*(1-p)*Math.pow(p,2),Math.pow(p,3)],f.reduce((t,e,i)=>({x:t.x+m[i]*e.x,y:t.y+m[i]*e.y}),{x:0,y:0})).y),1===g)u=Object.assign(Object.assign({},c),{morphs:void 0,time:u.time});else if(o>0){let t=u.time;(u=Object.assign({},c)).morphs=(null!==(h=u.morphs)&&void 0!==h?h:[]).concat([{time:t,strength:g}])}else u=Object.assign(Object.assign({},c),{time:g>.5?u.time:c.time})}else i.def.duration||console.warn("[@lottielab/lottie-player:interactive] Transition duration of 0/unset is not expected here");return u}(t,this.transition,e,i,this.variables),this.transition.progress>=1?(this.transitionEndEvent.emit({from:this.transition.from,to:this.state.def,transition:this.transition.def}),this.transition=void 0):this.transition.prev=this.getEffectiveState(this.transition.prev)),s}advance(t,e){let i=Object.assign({},t),s=this.clock+=e,a=[];if(void 0===this.state.remainingDuration)i=P(this.state.playback,t,e,s,this.variables,a);else{let r=this.state.remainingDuration;if(r>0){let n=Math.min(r,e);this.state.remainingDuration-=n,i=P(this.state.playback,t,n,s,this.variables,a),this.state.remainingDuration<=0&&(this.state.remainingDuration=0,this.handle({event:"finish"}))}}for(let t of a)"finish"===t.type&&this.handle({event:"finish"});return this.setupMorphingForCurrentState(),(i=this.applyTransition(i,e,s)).morphs=this.getMorphs(i),i}get currentTime(){return this.state.playback.playheadControl?this.state.playback.playheadControl(this.variables):this.state.playback.driver.currentTime}get currentFrame(){return this.currentTime/this.state.playback.driver.frameRate}}let x="ll-enclosing-rect";function M(t,e,i){return Math.min(Math.max(t,e),i)}class I{attachContinuousListeners(t){let e=e=>{var i;let s=t.getBoundingClientRect();null===(i=this.handler)||void 0===i||i.updateVariables({"mouse.x":e.clientX-s.left,"mouse.y":e.clientY-s.top,"mouse.abs.x":e.clientX,"mouse.abs.y":e.clientY,"mouse.progress.x":M((e.clientX-s.left)/s.width,0,1),"mouse.progress.y":M((e.clientY-s.top)/s.height,0,1)})};window.addEventListener("mousemove",e),this.disposers.push(()=>window.removeEventListener("mousemove",e));let i=t=>{var e;null===(e=this.handler)||void 0===e||e.updateVariables({"mouse.buttons.left":0!=(1&t.buttons),"mouse.buttons.right":0!=(2&t.buttons),"mouse.buttons.middle":0!=(4&t.buttons)})};window.addEventListener("mousedown",i),this.disposers.push(()=>window.removeEventListener("mousedown",i));let s=()=>{var t;null===(t=this.handler)||void 0===t||t.updateVariables({"mouse.buttons.left":!1,"mouse.buttons.right":!1,"mouse.buttons.middle":!1})};window.addEventListener("mouseup",s),this.disposers.push(()=>window.removeEventListener("mouseup",s))}attachListener(t,e,i){let s;switch(i){case"click":s="click";break;case"mouseEnter":s="mouseenter";break;case"mouseLeave":s="mouseleave";break;case"mouseDown":s="mousedown";break;case"mouseUp":s="mouseup";break;default:throw Error("InteractiveEventDispatcher: not a DOM event: "+i)}let a=t=>{var s,a;e===x?null===(s=this.handler)||void 0===s||s.handle({event:i}):null===(a=this.handler)||void 0===a||a.handle({event:i,target:null!=e?e:void 0})};t.addEventListener(s,a),this.disposers.push(()=>{t.removeEventListener(s,a)})}constructor(t,e=[]){var i,s;this.container=t,this.disposers=[],this.currentClickableClassNames=[];let a=t.querySelector("svg"),r=null!==(s=null===(i=null==a?void 0:a.getAttribute("viewBox"))||void 0===i?void 0:i.split(" ").map(t=>parseFloat(t)))&&void 0!==s?s:[1200,900],n=null==a?void 0:a.querySelector("svg > g"),o=document.createElementNS("http://www.w3.org/2000/svg","rect");[["x","0"],["y","0"],["width",r[2].toString()],["height",r[3].toString()],["fill","transparent"],["pointer-events","bounding-box"],["class",x]].forEach(([t,e])=>{o.setAttribute(t,e)}),null==n||n.insertBefore(o,n.firstChild),this.disposers.push(()=>o.remove());let h=new Set;for(let t of[x].concat(e)){h.has(t)&&console.warn(`[@lottielab/lottie-player:interactive] Duplicate class name ${t} in reactivity event dispatcher`),h.add(t);let e=t===x?n:this.container.querySelector(`.${t}`);if(e)for(let i of["click","mouseDown","mouseUp","mouseEnter","mouseLeave"])this.attachListener(e,t,i);else console.warn(`[@lottielab/lottie-player:interactive] Could not find element with class name ${t}`)}this.attachContinuousListeners(o)}setClickableClassNames(t){let e=(t,e)=>{let i="full"===t?this.container:this.container.querySelector(`.${t}`);i&&(i.style.cursor=e)};this.currentClickableClassNames.forEach(t=>e(t,"initial")),this.currentClickableClassNames=t,t.forEach(t=>e(t,"pointer"))}destroy(){this.setClickableClassNames([]),this.disposers.forEach(t=>t())}}(a=r||(r={})).Linear={i:{x:.75,y:.75},o:{x:.25,y:.25}},a.Natural={o:{x:.4,y:0},i:{x:.8,y:1}},a.BounceIn={o:{x:.8,y:0},i:{x:.5,y:1.5}},a.BounceOut={o:{x:.5,y:-.5},i:{x:.2,y:1}},a.Accelerate={o:{x:.42,y:0},i:{x:1,y:1}},a.SlowDown={o:{x:0,y:0},i:{x:.58,y:1}};class L{constructor(t){this.onUpdate=t,this.variables={}}set(t,e){this.variables[t]=e,this.onUpdate(this.variables)}get(t){return this.variables[t]}delete(t){delete this.variables[t],this.onUpdate(this.variables)}clear(){this.variables={},this.onUpdate(this.variables)}}class R{constructor(t,e){this._transitionStartEvent=new u,this._transitionEndEvent=new u,this._userProvidedDefinition={set:!1},this._rootElement=t,this._lottie=e;let i=this.effectiveDefinition();this._driver=new F(i),this._dispatcher=new I(this._rootElement,this.getObservedClassNames(i)),this._dispatcher.setClickableClassNames(this.getClickableClassNames()),this._dispatcher.handler=this._driver,this._driver.transitionStartEvent.addListener(t=>{this._transitionStartEvent.emit(this.translateTransitionEvent(t)),this._dispatcher.setClickableClassNames(this.getClickableClassNames())}),this._driver.transitionEndEvent.addListener(t=>this._transitionEndEvent.emit(this.translateTransitionEvent(t))),this.inputs=new L(t=>this._driver.setUserVariables(t))}get definition(){var t,e;return this._userProvidedDefinition.set?this._userProvidedDefinition.value:null===(e=null===(t=this._lottie)||void 0===t?void 0:t.metadata)||void 0===e?void 0:e.lottielabInteractivity}set definition(t){this._userProvidedDefinition={set:!0,value:t},this.updateReactivity()}get state(){let t=this._driver.getCurrentState().def,e=this.lookupStateName(t);return Object.assign(Object.assign({},t),{name:null!=e?e:"<custom>"})}set state(t){this._driver.goToState(this.findState(t))}goToState(t,e){this._driver.goToState(this.findState(t),e)}hasUserProvidedDefinition(){return this._userProvidedDefinition.set}resetDefinition(){this._userProvidedDefinition={set:!1},this.updateReactivity()}on(t,e){switch(t){case"transitionstart":this._transitionStartEvent.addListener(e);break;case"transitionend":this._transitionEndEvent.addListener(e)}}off(t,e){switch(t){case"transitionstart":this._transitionStartEvent.removeListener(e);break;case"transitionend":this._transitionEndEvent.removeListener(e)}}trigger(t){this._driver.handle({event:"custom",name:t})}_destroy(){var t;null===(t=this._dispatcher)||void 0===t||t.destroy()}_getDriver(){return this._driver}translateTransitionEvent(t){var e,i;return{from:Object.assign(Object.assign({},t.from),{name:null!==(e=this.lookupStateName(t.from))&&void 0!==e?e:"<custom>"}),to:Object.assign(Object.assign({},t.to),{name:null!==(i=this.lookupStateName(t.to))&&void 0!==i?i:"<custom>"}),transition:t.transition}}effectiveDefinition(){var t;let e=this._lottie?this._lottie.op/this._lottie.fr:0;return null!==(t=this.definition)&&void 0!==t?t:{__version:"v1",initialState:"default",states:{default:{segment:[0,e]}}}}lookupStateName(t){var e;return null===(e=Object.entries(this.effectiveDefinition().states).find(([e,i])=>i===t))||void 0===e?void 0:e[0]}findState(t){let e;if(e="string"==typeof t?this.effectiveDefinition().states[t]:t,!t)throw Error(`State ${t} not found`);return e}getObservedClassNames(t){return t?[...new Set(Object.values(t.states).flatMap(t=>{var e;return Object.keys(null!==(e=t.on)&&void 0!==e?e:{})}).flatMap(t=>{let[e,i]=t.split(":");return"custom"!==e&&i?[i]:[]}))]:[]}getClickableClassNames(){var t;return[...new Set(Object.keys(null!==(t=this.state.on)&&void 0!==t?t:{}).flatMap(t=>{let[e,i]=t.split(":");return["click","mouseDown","mouseUp"].includes(e)?i?[i]:["full"]:[]}))]}updateReactivity(){var t;let e=this.effectiveDefinition();this._driver.definition=e,null===(t=this._dispatcher)||void 0===t||t.destroy(),this._dispatcher=new I(this._rootElement,this.getObservedClassNames(e)),this._dispatcher.handler=this._driver}}class O{constructor(t,e,i,s){this.timeEvent=new u,this.timeEventListener=t=>{"playback"===this._impl.type?this.timeEvent.emit(t):this.timeEvent.emit(Object.assign(Object.assign({},t),{playhead:this.currentTime}))},this.root=t,this._renderer=new c(t,e,void 0,s);let a=new g;i&&a.play(),this._impl={type:"playback",driver:a},this._renderer.driver=a,this.initialize(e,i,s)}initialize(t,e,i){return this._renderer.timeEvent.removeListener(this.timeEventListener),this._renderer.initialize(t,i).then(()=>{var t,i,s,a,r,n;if(this._renderer.timeEvent.addListener(this.timeEventListener),(null===(t=this.interactivity)||void 0===t?void 0:t.hasUserProvidedDefinition())||(null===(r=null==(a=this._renderer.animationData)?void 0:a.metadata)||void 0===r?void 0:r.lottielabInteractivity)&&"v1"===(null===(n=null==a?void 0:a.metadata)||void 0===n?void 0:n.lottielabInteractivity.__version)){let t=null===(i=this.interactivity)||void 0===i?void 0:i.hasUserProvidedDefinition(),e=null===(s=this.interactivity)||void 0===s?void 0:s.definition;this.destroyImpl(),this.createInteractiveImpl(),t&&(this.interactivity.definition=e)}else this.interactivity&&this.toPlayback();e&&this.play()})}destroyImpl(){"interactive"===this._impl.type&&this._impl.interactivity._destroy()}createPlaybackImpl(){this._impl={type:"playback",driver:new g},this._renderer.driver=this._impl.driver,this._updateTimeMultiplier()}createInteractiveImpl(){this._impl={type:"interactive",interactivity:new R(this.root,this._renderer.animationData),playback:{direction:1,speed:1,playing:!0}},this._renderer.driver=this._impl.interactivity._getDriver(),this._updateTimeMultiplier()}toInteractive(){"interactive"!==this._impl.type&&(this.destroyImpl(),this.createInteractiveImpl())}toPlayback(){"playback"!==this._impl.type&&(this.destroyImpl(),this.createPlaybackImpl())}destroy(){this.destroyImpl(),this._renderer.timeEvent.removeListener(this.timeEventListener),this._renderer.destroy(),this.root.innerHTML=""}get interactivity(){return"interactive"===this._impl.type?this._impl.interactivity:void 0}_updateTimeMultiplier(){"playback"===this._impl.type?this._renderer.timeMultiplier=1:this._impl.playback.playing?this._renderer.timeMultiplier=this._impl.playback.speed*this._impl.playback.direction:this._renderer.timeMultiplier=0}play(){"playback"===this._impl.type?this._impl.driver.play():(this._impl.playback.playing=!0,this._updateTimeMultiplier())}stop(){"playback"===this._impl.type?this._impl.driver.stop():this.pause()}pause(){"playback"===this._impl.type?this._impl.driver.pause():(this._impl.playback.playing=!1,this._updateTimeMultiplier())}seek(t){"playback"===this._impl.type?(this._impl.driver.seek(t),this._renderer.advanceToNow()):console.warn("[@lottielab/lottie-player] Cannot seek an interactive Lottie")}seekToFrame(t){"playback"===this._impl.type?(this._impl.driver.seekToFrame(t),this._renderer.advanceToNow()):console.warn("[@lottielab/lottie-player] Cannot seek an interactive Lottie")}loopBetween(t,e){"playback"===this._impl.type?this._impl.driver.loopBetween(t,e):console.warn("[@lottielab/lottie-player] Cannot loop an interactive Lottie")}loopBetweenFrames(t,e){"playback"===this._impl.type?this._impl.driver.loopBetweenFrames(t,e):console.warn("[@lottielab/lottie-player] Cannot loop an interactive Lottie")}on(t,e){switch(t){case"loop":if("interactive"===this._impl.type)throw Error("Cannot listen to 'loop' event on an interactive Lottie");this._impl.driver.loopEvent.addListener(e);break;case"finish":if("interactive"===this._impl.type)throw Error("Cannot listen to 'finish' event on an interactive Lottie");this._impl.driver.finishEvent.addListener(e);case"time":this.timeEvent.addListener(e)}}off(t,e){switch(t){case"time":this.timeEvent.removeListener(e);break;case"loop":if("interactive"===this._impl.type)return;this._impl.driver.loopEvent.removeListener(e);break;case"finish":if("interactive"===this._impl.type)return;this._impl.driver.finishEvent.removeListener(e)}}get playing(){return"playback"===this._impl.type?this._impl.driver.playing:this._impl.playback.playing}set playing(t){"playback"===this._impl.type?this._impl.driver.playing=t:(this._impl.playback.playing=t,this._updateTimeMultiplier())}get loop(){return"playback"===this._impl.type&&this._impl.driver.loop}set loop(t){"playback"===this._impl.type?this._impl.driver.loop=t:console.warn("[@lottielab/lottie-player] Cannot set loop on an interactive Lottie")}get currentTime(){switch(this._impl.type){case"playback":return this._impl.driver.currentTime;case"interactive":return this._impl.interactivity._getDriver().currentTime}}set currentTime(t){this.seek(t)}get currentFrame(){switch(this._impl.type){case"playback":return this._impl.driver.currentFrame;case"interactive":return this._impl.interactivity._getDriver().currentFrame}}set currentFrame(t){this.seekToFrame(t)}get frameRate(){return this._renderer.frameRate}get duration(){return this._renderer.duration}get durationFrames(){return this._renderer.durationInFrames}get direction(){return"playback"===this._impl.type?this._impl.driver.direction:this._impl.playback.direction}set direction(t){"playback"===this._impl.type?this._impl.driver.direction=t:(this._impl.playback.direction=t,this._updateTimeMultiplier())}get speed(){return"playback"===this._impl.type?this._impl.driver.speed:this._impl.playback.speed}set speed(t){"playback"===this._impl.type?this._impl.driver.speed=t:(this._impl.playback.speed=t,this._updateTimeMultiplier())}get animation(){return this._renderer.animation}get animationData(){return this._renderer.animationData}}function V(t){console.warn("[@lottielab/lottie-player/web]","string"==typeof t?Error(t):t)}let N=(0,n.forwardRef)((t,e)=>{var i;let s=(0,n.useRef)(null),a=(0,n.useCallback)(t=>{t&&(s.current=new O(t),e&&("function"==typeof e?e(s.current):e.current=s.current))},[]),r="frame"in t||"time"in t;(0,n.useEffect)(()=>{var e,i;try{let i="playing"in t&&null!=t.playing?t.playing:!("autoplay"in t)||t.autoplay;null===(e=s.current)||void 0===e||e.initialize("src"in t?t.src:t.lottie,i,t.preserveAspectRatio).catch(e=>{var i;V(e),null===(i=t.onError)||void 0===i||i.call(t,e)}).then(()=>{var e;return null===(e=t.onLoad)||void 0===e?void 0:e.call(t)})}catch(e){V(e),null===(i=t.onError)||void 0===i||i.call(t,e)}return()=>{var t;return null===(t=s.current)||void 0===t?void 0:t.destroy()}},["src"in t?t.src:t.lottie,t.preserveAspectRatio]),(0,n.useEffect)(()=>{var e;s.current&&!r&&(s.current.loop=null===(e=t.loop)||void 0===e||e)},[r,"loop"in t?t.loop:void 0]),(0,n.useEffect)(()=>{var e;s.current&&!r&&(s.current.speed=null!==(e=t.speed)&&void 0!==e?e:1)},[r,"speed"in t?t.speed:void 0]),(0,n.useEffect)(()=>{var e;s.current&&!r&&(s.current.direction=null!==(e=t.direction)&&void 0!==e?e:1)},["direction"in t?t.direction:void 0]),(0,n.useEffect)(()=>{s.current&&!r&&null!=t.playing&&(t.playing?s.current.play():s.current.pause())},[r,"playing"in t?t.playing:void 0,null===(i=s.current)||void 0===i?void 0:i.playing]),(0,n.useEffect)(()=>{s.current&&r&&(s.current.playing&&s.current.pause(),"time"in t?s.current.currentTime=t.time:s.current.currentFrame=t.frame)},[r,"time"in t?t.time:"frame"in t?t.frame:void 0]),(0,n.useEffect)(()=>{var e;if(t.onTime)return null===(e=s.current)||void 0===e||e.on("time",i),()=>{var t;return null===(t=s.current)||void 0===t?void 0:t.off("time",i)};function i(e){var i;null===(i=t.onTime)||void 0===i||i.call(t,e)}},[t.onTime]),(0,n.useEffect)(()=>{var e;if(t.onLoop)return null===(e=s.current)||void 0===e||e.on("loop",i),()=>{var t;return null===(t=s.current)||void 0===t?void 0:t.off("loop",i)};function i(){var e;null===(e=t.onLoop)||void 0===e||e.call(t)}},[t.onLoop]),(0,n.useEffect)(()=>{var e;if(t.onFinish)return null===(e=s.current)||void 0===e||e.on("finish",i),()=>{var t;return null===(t=s.current)||void 0===t?void 0:t.off("finish",i)};function i(){var e;null===(e=t.onFinish)||void 0===e||e.call(t)}},[t.onFinish]),(0,n.useEffect)(()=>{var e,i;if(t.onTransitionStart)return null===(i=null===(e=s.current)||void 0===e?void 0:e.interactivity)||void 0===i||i.on("transitionstart",a),()=>{var t,e;return null===(e=null===(t=s.current)||void 0===t?void 0:t.interactivity)||void 0===e?void 0:e.off("transitionstart",a)};function a(e){var i;null===(i=t.onTransitionStart)||void 0===i||i.call(t,e)}},[t.onTransitionStart]),(0,n.useEffect)(()=>{var e,i;if(t.onTransitionEnd)return null===(i=null===(e=s.current)||void 0===e?void 0:e.interactivity)||void 0===i||i.on("transitionend",a),()=>{var t,e;return null===(e=null===(t=s.current)||void 0===t?void 0:t.interactivity)||void 0===e?void 0:e.off("transitionend",a)};function a(e){var i;null===(i=t.onTransitionEnd)||void 0===i||i.call(t,e)}},[t.onTransitionEnd]);let{className:o,style:h}=t;return n.createElement("div",{className:"lottie"+(o?" "+o:""),style:h,ref:a})})}}]);