From 979b1d78e53e4c3ed55daa86e35c84d994f7f0c7 Mon Sep 17 00:00:00 2001 From: iower Date: Sun, 21 Jan 2024 00:40:00 +0500 Subject: [PATCH] Updates --- assets/{index-11c8dad5.js => index-d21c40ac.js} | 2 +- index.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename assets/{index-11c8dad5.js => index-d21c40ac.js} (97%) diff --git a/assets/index-11c8dad5.js b/assets/index-d21c40ac.js similarity index 97% rename from assets/index-11c8dad5.js rename to assets/index-d21c40ac.js index 693faa4..225d09b 100644 --- a/assets/index-11c8dad5.js +++ b/assets/index-d21c40ac.js @@ -85,7 +85,7 @@ Error generating stack: `+_e.message+` Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(i){(function(){var o={}.hasOwnProperty;function g(){for(var $=[],j=0;jjsxRuntimeExports.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-y-1/2 -translate-x-1/2 w-[50px] h-[50px]",style:{width:i,height:i},children:jsxRuntimeExports.jsx("div",{className:"w-full h-full rounded-full border-[3px] border-button border-l-button/10 border-t-button/10 animate-[spin_0.6s_linear_infinite]"})});function Button({theme:i="default",isBottom:o,text:g,disabled:$,isBusy:j,onClick:_e}){const et=O(),{isSplash:rt}=useSplash(),[tt]=b(),nt=$?()=>{}:()=>{console.log("Button vibro"),tt(o?"heavy":"light"),_e()};if(o&&et.platform!=="unknown")return rt?null:jsxRuntimeExports.jsx(P,{text:g,disabled:$,progress:j,color:$?"#888888":void 0,onClick:nt});const st={default:"mx-auto w-full block h-10 bg-button text-buttonText rounded-md text-[14px] leading-[20px] font-semibold enabled:hover:brightness-110 enabled:active:brightness-[1.2] transition-all",text:"min-h-[24px] text-[14px] leading-[1.2em] text-button hover:brightness-[1.2] active:brightness-[1.4] transition-all"}[i];return jsxRuntimeExports.jsx("div",{className:cx(o&&"h-[56px]"),children:jsxRuntimeExports.jsxs("div",{className:cx(o?"fixed bottom-0 left-0 w-full pt-1 bg-bg":"relative"),children:[o&&jsxRuntimeExports.jsx("div",{className:"absolute bottom-full left-0 w-full h-2 bg-gradient-to-t from-bg"}),jsxRuntimeExports.jsx("button",{className:cx(st,o&&"!h-[56px]","disabled:opacity-40 disabled:cursor-not-allowed"),disabled:$||j,onClick:nt,children:g}),j&&jsxRuntimeExports.jsx(Loader,{size:30})]})})}const SvgBack=i=>reactExports.createElement("svg",{width:12,height:20,viewBox:"0 0 12 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.53714 19.5928L0.292152 10.6788C-0.097384 10.3036 -0.097384 9.69738 0.292152 9.32117L9.53714 0.407154C10.0995 -0.135718 11.0144 -0.135718 11.5777 0.407154C12.14 0.950026 12.14 1.8311 11.5777 2.37397L3.66913 10.0005L11.5777 17.6251C12.14 18.1689 12.14 19.05 11.5777 19.5928C11.0144 20.1357 10.0995 20.1357 9.53714 19.5928Z",fill:"currentColor"}));function Header({onBack:i}){var g;const{t:o}=useTranslation();return((g=window.Telegram)==null?void 0:g.WebApp.platform)!=="unknown"?jsxRuntimeExports.jsx("div",{className:"h-3",children:i&&jsxRuntimeExports.jsx(B,{onClick:i})}):jsxRuntimeExports.jsxs("header",{className:"relative flex items-center justify-center h-[64px]",children:[i&&jsxRuntimeExports.jsxs("button",{className:"flex items-center gap-[5px] absolute left-4 top-1/2 -translate-y-1/2 text-link hover:brightness-[1.2] active:brightness-[1.4] transition-all",onClick:i,children:[jsxRuntimeExports.jsx(SvgBack,{}),jsxRuntimeExports.jsx("span",{children:o("back")})]}),jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center justify-center gap-0.5",children:[jsxRuntimeExports.jsx("div",{className:"text-[17px] leading-[22px] font-semibold",children:"Calcoala"}),jsxRuntimeExports.jsx("div",{className:"text-hint text-[13px] leading-[18px] font-semibold opacity-70",children:o("bot")})]})]})}var lottie$1={exports:{}};(function(module,exports){typeof navigator<"u"&&function(i,o){module.exports=o()}(commonjsGlobal,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(o){_useWebWorker=!!o},getWebWorker=function(){return _useWebWorker},setLocationHref=function(o){locationHref=o},getLocationHref=function(){return locationHref};function createTag(i){return document.createElement(i)}function extendPrototype(i,o){var g,$=i.length,j;for(g=0;g<$;g+=1){j=i[g].prototype;for(var _e in j)Object.prototype.hasOwnProperty.call(j,_e)&&(o.prototype[_e]=j[_e])}}function getDescriptor(i,o){return Object.getOwnPropertyDescriptor(i,o)}function createProxyFunction(i){function o(){}return o.prototype=i,o}var audioControllerFactory=function(){function i(o){this.audios=[],this.audioFactory=o,this._volume=1,this._isMuted=!1}return i.prototype={addAudio:function(g){this.audios.push(g)},pause:function(){var g,$=this.audios.length;for(g=0;g<$;g+=1)this.audios[g].pause()},resume:function(){var g,$=this.audios.length;for(g=0;g<$;g+=1)this.audios[g].resume()},setRate:function(g){var $,j=this.audios.length;for($=0;$1?g[1]=1:g[1]<=0&&(g[1]=0),HSVtoRGB(g[0],g[1],g[2])}function addBrightnessToRGB(i,o){var g=RGBtoHSV(i[0]*255,i[1]*255,i[2]*255);return g[2]+=o,g[2]>1?g[2]=1:g[2]<0&&(g[2]=0),HSVtoRGB(g[0],g[1],g[2])}function addHueToRGB(i,o){var g=RGBtoHSV(i[0]*255,i[1]*255,i[2]*255);return g[0]+=o/360,g[0]>1?g[0]-=1:g[0]<0&&(g[0]+=1),HSVtoRGB(g[0],g[1],g[2])}var rgbToHex=function(){var i=[],o,g;for(o=0;o<256;o+=1)g=o.toString(16),i[o]=g.length===1?"0"+g:g;return function($,j,_e){return $<0&&($=0),j<0&&(j=0),_e<0&&(_e=0),"#"+i[$]+i[j]+i[_e]}}(),setSubframeEnabled=function(o){subframeEnabled=!!o},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(o){expressionsPlugin=o},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(o){expressionsInterfaces=o},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(o){defaultCurveSegments=o},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(o){idPrefix$1=o};function createNS(i){return document.createElementNS(svgNS,i)}function _typeof$5(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(g){return typeof g}:_typeof$5=function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},_typeof$5(i)}var dataManager=function(){var i=1,o=[],g,$,j={onmessage:function(){},postMessage:function(pt){g({data:pt})}},_e={postMessage:function(pt){j.onmessage({data:pt})}};function et(it){if(window.Worker&&window.Blob&&getWebWorker()){var pt=new Blob(["var _workerSelf = self; self.onmessage = ",it.toString()],{type:"text/javascript"}),ut=URL.createObjectURL(pt);return new Worker(ut)}return g=it,j}function rt(){$||($=et(function(pt){function ut(){function mt(Mt,Et){var kt,dt,vt=Mt.length,bt,St,It,Lt;for(dt=0;dt=0;Et-=1)if(Mt[Et].ty==="sh")if(Mt[Et].ks.k.i)gt(Mt[Et].ks.k);else for(vt=Mt[Et].ks.k.length,dt=0;dtkt[0]?!0:kt[0]>Mt[0]?!1:Mt[1]>kt[1]?!0:kt[1]>Mt[1]?!1:Mt[2]>kt[2]?!0:kt[2]>Mt[2]?!1:null}var xt=function(){var Mt=[4,4,14];function Et(dt){var vt=dt.t.d;dt.t.d={k:[{s:vt,t:0}]}}function kt(dt){var vt,bt=dt.length;for(vt=0;vt=0;vt-=1)if(dt[vt].ty==="sh")if(dt[vt].ks.k.i)dt[vt].ks.k.c=dt[vt].closed;else for(It=dt[vt].ks.k.length,St=0;St500)&&(this._imageLoaded(),clearInterval(ot)),lt+=1}.bind(this),50)}function _e(at){var lt=$(at,this.assetsPath,this.path),ot=createNS("image");isSafari?this.testImageLoaded(ot):ot.addEventListener("load",this._imageLoaded,!1),ot.addEventListener("error",function(){ct.img=i,this._imageLoaded()}.bind(this),!1),ot.setAttributeNS("http://www.w3.org/1999/xlink","href",lt),this._elementHelper.append?this._elementHelper.append(ot):this._elementHelper.appendChild(ot);var ct={img:ot,assetData:at};return ct}function et(at){var lt=$(at,this.assetsPath,this.path),ot=createTag("img");ot.crossOrigin="anonymous",ot.addEventListener("load",this._imageLoaded,!1),ot.addEventListener("error",function(){ct.img=i,this._imageLoaded()}.bind(this),!1),ot.src=lt;var ct={img:ot,assetData:at};return ct}function rt(at){var lt={assetData:at},ot=$(at,this.assetsPath,this.path);return dataManager.loadData(ot,function(ct){lt.img=ct,this._footageLoaded()}.bind(this),function(){lt.img={},this._footageLoaded()}.bind(this)),lt}function tt(at,lt){this.imagesLoadedCb=lt;var ot,ct=at.length;for(ot=0;otjsxRuntimeExports.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-y-1/2 -translate-x-1/2 w-[50px] h-[50px]",style:{width:i,height:i},children:jsxRuntimeExports.jsx("div",{className:"w-full h-full rounded-full border-[3px] border-button border-l-button/10 border-t-button/10 animate-[spin_0.6s_linear_infinite]"})});function Button({theme:i="default",isBottom:o,text:g,disabled:$,isBusy:j,onClick:_e}){const et=O(),{isSplash:rt}=useSplash(),[tt]=b(),nt=$?()=>{}:()=>{console.log("Button vibro"),tt(o?"heavy":"light"),_e()};if(o&&et.platform!=="unknown")return rt?null:jsxRuntimeExports.jsx(P,{text:g,disabled:$,progress:j,color:$?"#888888":void 0,onClick:nt});const st={default:"mx-auto w-full block h-10 bg-button text-buttonText rounded-md text-[14px] leading-[20px] font-semibold enabled:hover:brightness-110 enabled:active:brightness-[1.2] transition-all",text:"min-h-[24px] text-[14px] leading-[1.2em] text-button hover:brightness-[1.2] active:brightness-[1.4] transition-all"}[i];return jsxRuntimeExports.jsx("div",{className:cx(o&&"h-[56px]"),children:jsxRuntimeExports.jsxs("div",{className:cx(o?"fixed bottom-0 left-0 w-full pt-1 bg-bg":"relative"),children:[o&&jsxRuntimeExports.jsx("div",{className:"absolute bottom-full left-0 w-full h-2 bg-gradient-to-t from-bg"}),jsxRuntimeExports.jsx("button",{className:cx(st,o&&"!h-[56px]","disabled:opacity-40 disabled:cursor-not-allowed"),disabled:$||j,onClick:nt,children:g}),j&&jsxRuntimeExports.jsx(Loader,{size:30})]})})}const SvgBack=i=>reactExports.createElement("svg",{width:12,height:20,viewBox:"0 0 12 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.53714 19.5928L0.292152 10.6788C-0.097384 10.3036 -0.097384 9.69738 0.292152 9.32117L9.53714 0.407154C10.0995 -0.135718 11.0144 -0.135718 11.5777 0.407154C12.14 0.950026 12.14 1.8311 11.5777 2.37397L3.66913 10.0005L11.5777 17.6251C12.14 18.1689 12.14 19.05 11.5777 19.5928C11.0144 20.1357 10.0995 20.1357 9.53714 19.5928Z",fill:"currentColor"}));function Header({onBack:i}){var g;const{t:o}=useTranslation();return((g=window.Telegram)==null?void 0:g.WebApp.platform)!=="unknown"?jsxRuntimeExports.jsx("div",{className:"h-3",children:i&&jsxRuntimeExports.jsx(B,{onClick:i})}):jsxRuntimeExports.jsxs("header",{className:"relative flex items-center justify-center h-[64px]",children:[i&&jsxRuntimeExports.jsxs("button",{className:"flex items-center gap-[5px] absolute left-4 top-1/2 -translate-y-1/2 text-link hover:brightness-[1.2] active:brightness-[1.4] transition-all",onClick:i,children:[jsxRuntimeExports.jsx(SvgBack,{}),jsxRuntimeExports.jsx("span",{children:o("back")})]}),jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center justify-center gap-0.5",children:[jsxRuntimeExports.jsx("div",{className:"text-[17px] leading-[22px] font-semibold",children:"CalcKoala"}),jsxRuntimeExports.jsx("div",{className:"text-hint text-[13px] leading-[18px] font-semibold opacity-70",children:o("bot")})]})]})}var lottie$1={exports:{}};(function(module,exports){typeof navigator<"u"&&function(i,o){module.exports=o()}(commonjsGlobal,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(o){_useWebWorker=!!o},getWebWorker=function(){return _useWebWorker},setLocationHref=function(o){locationHref=o},getLocationHref=function(){return locationHref};function createTag(i){return document.createElement(i)}function extendPrototype(i,o){var g,$=i.length,j;for(g=0;g<$;g+=1){j=i[g].prototype;for(var _e in j)Object.prototype.hasOwnProperty.call(j,_e)&&(o.prototype[_e]=j[_e])}}function getDescriptor(i,o){return Object.getOwnPropertyDescriptor(i,o)}function createProxyFunction(i){function o(){}return o.prototype=i,o}var audioControllerFactory=function(){function i(o){this.audios=[],this.audioFactory=o,this._volume=1,this._isMuted=!1}return i.prototype={addAudio:function(g){this.audios.push(g)},pause:function(){var g,$=this.audios.length;for(g=0;g<$;g+=1)this.audios[g].pause()},resume:function(){var g,$=this.audios.length;for(g=0;g<$;g+=1)this.audios[g].resume()},setRate:function(g){var $,j=this.audios.length;for($=0;$1?g[1]=1:g[1]<=0&&(g[1]=0),HSVtoRGB(g[0],g[1],g[2])}function addBrightnessToRGB(i,o){var g=RGBtoHSV(i[0]*255,i[1]*255,i[2]*255);return g[2]+=o,g[2]>1?g[2]=1:g[2]<0&&(g[2]=0),HSVtoRGB(g[0],g[1],g[2])}function addHueToRGB(i,o){var g=RGBtoHSV(i[0]*255,i[1]*255,i[2]*255);return g[0]+=o/360,g[0]>1?g[0]-=1:g[0]<0&&(g[0]+=1),HSVtoRGB(g[0],g[1],g[2])}var rgbToHex=function(){var i=[],o,g;for(o=0;o<256;o+=1)g=o.toString(16),i[o]=g.length===1?"0"+g:g;return function($,j,_e){return $<0&&($=0),j<0&&(j=0),_e<0&&(_e=0),"#"+i[$]+i[j]+i[_e]}}(),setSubframeEnabled=function(o){subframeEnabled=!!o},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(o){expressionsPlugin=o},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(o){expressionsInterfaces=o},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(o){defaultCurveSegments=o},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(o){idPrefix$1=o};function createNS(i){return document.createElementNS(svgNS,i)}function _typeof$5(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(g){return typeof g}:_typeof$5=function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},_typeof$5(i)}var dataManager=function(){var i=1,o=[],g,$,j={onmessage:function(){},postMessage:function(pt){g({data:pt})}},_e={postMessage:function(pt){j.onmessage({data:pt})}};function et(it){if(window.Worker&&window.Blob&&getWebWorker()){var pt=new Blob(["var _workerSelf = self; self.onmessage = ",it.toString()],{type:"text/javascript"}),ut=URL.createObjectURL(pt);return new Worker(ut)}return g=it,j}function rt(){$||($=et(function(pt){function ut(){function mt(Mt,Et){var kt,dt,vt=Mt.length,bt,St,It,Lt;for(dt=0;dt=0;Et-=1)if(Mt[Et].ty==="sh")if(Mt[Et].ks.k.i)gt(Mt[Et].ks.k);else for(vt=Mt[Et].ks.k.length,dt=0;dtkt[0]?!0:kt[0]>Mt[0]?!1:Mt[1]>kt[1]?!0:kt[1]>Mt[1]?!1:Mt[2]>kt[2]?!0:kt[2]>Mt[2]?!1:null}var xt=function(){var Mt=[4,4,14];function Et(dt){var vt=dt.t.d;dt.t.d={k:[{s:vt,t:0}]}}function kt(dt){var vt,bt=dt.length;for(vt=0;vt=0;vt-=1)if(dt[vt].ty==="sh")if(dt[vt].ks.k.i)dt[vt].ks.k.c=dt[vt].closed;else for(It=dt[vt].ks.k.length,St=0;St500)&&(this._imageLoaded(),clearInterval(ot)),lt+=1}.bind(this),50)}function _e(at){var lt=$(at,this.assetsPath,this.path),ot=createNS("image");isSafari?this.testImageLoaded(ot):ot.addEventListener("load",this._imageLoaded,!1),ot.addEventListener("error",function(){ct.img=i,this._imageLoaded()}.bind(this),!1),ot.setAttributeNS("http://www.w3.org/1999/xlink","href",lt),this._elementHelper.append?this._elementHelper.append(ot):this._elementHelper.appendChild(ot);var ct={img:ot,assetData:at};return ct}function et(at){var lt=$(at,this.assetsPath,this.path),ot=createTag("img");ot.crossOrigin="anonymous",ot.addEventListener("load",this._imageLoaded,!1),ot.addEventListener("error",function(){ct.img=i,this._imageLoaded()}.bind(this),!1),ot.src=lt;var ct={img:ot,assetData:at};return ct}function rt(at){var lt={assetData:at},ot=$(at,this.assetsPath,this.path);return dataManager.loadData(ot,function(ct){lt.img=ct,this._footageLoaded()}.bind(this),function(){lt.img={},this._footageLoaded()}.bind(this)),lt}function tt(at,lt){this.imagesLoadedCb=lt;var ot,ct=at.length;for(ot=0;otthis.animationData.op&&(this.animationData.op=i.op,this.totalFrames=Math.floor(i.op-this.animationData.ip));var o=this.animationData.layers,g,$=o.length,j=i.layers,_e,et=j.length;for(_e=0;_ethis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(i){this.triggerRenderFrameError(i)}},AnimationItem.prototype.play=function(i){i&&this.name!==i||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(i){i&&this.name!==i||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(i){i&&this.name!==i||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(i){i&&this.name!==i||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(i){for(var o,g=0;g=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(o>this.totalFrames?o%this.totalFrames:0)||(g=!0,o=this.totalFrames-1):o>=this.totalFrames?(this.playCount+=1,this.checkSegments(o%this.totalFrames)||(this.setCurrentRawFrameValue(o%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(o):o<0?this.checkSegments(o%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+o%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(g=!0,o=0)):this.setCurrentRawFrameValue(o),g&&(this.setCurrentRawFrameValue(o),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(i,o){this.playCount=0,i[1]0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=i[0]-i[1],this.timeCompleted=this.totalFrames,this.firstFrame=i[1],this.setCurrentRawFrameValue(this.totalFrames-.001-o)):i[1]>i[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=i[1]-i[0],this.timeCompleted=this.totalFrames,this.firstFrame=i[0],this.setCurrentRawFrameValue(.001+o)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(i,o){var g=-1;this.isPaused&&(this.currentRawFrame+this.firstFrameo&&(g=o-i)),this.firstFrame=i,this.totalFrames=o-i,this.timeCompleted=this.totalFrames,g!==-1&&this.goToAndStop(g,!0)},AnimationItem.prototype.playSegments=function(i,o){if(o&&(this.segments.length=0),_typeof$4(i[0])==="object"){var g,$=i.length;for(g=0;g<$;g+=1)this.segments.push(i[g])}else this.segments.push(i);this.segments.length&&o&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(i){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),i&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(i){return this.segments.length?(this.adjustSegment(this.segments.shift(),i),!0):!1},AnimationItem.prototype.destroy=function(i){i&&this.name!==i||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(i){this.currentRawFrame=i,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(i){this.playSpeed=i,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(i){this.playDirection=i<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(i){this.loop=i},AnimationItem.prototype.setVolume=function(i,o){o&&this.name!==o||this.audioController.setVolume(i)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(i){i&&this.name!==i||this.audioController.mute()},AnimationItem.prototype.unmute=function(i){i&&this.name!==i||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(i){var o="";if(i.e)o=i.p;else if(this.assetsPath){var g=i.p;g.indexOf("images/")!==-1&&(g=g.split("/")[1]),o=this.assetsPath+g}else o=this.path,o+=i.u?i.u:"",o+=i.p;return o},AnimationItem.prototype.getAssetData=function(i){for(var o=0,g=this.assets.length;o=0;kt-=1)o[kt].animation.destroy(Et)}function _t(Et,kt,dt){var vt=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),bt,St=vt.length;for(bt=0;bt0?ct=_t:ot=_t;while(Math.abs(xt)>_e&&++Pt=j?mt(ot,Ft,ct,gt):wt===0?Ft:ht(ot,xt,xt+tt,ct,gt)}},i}(),pooling=function(){function i(o){return o.concat(createSizedArray(o.length))}return{double:i}}(),poolFactory=function(){return function(i,o,g){var $=0,j=i,_e=createSizedArray(j),et={newElement:rt,release:tt};function rt(){var nt;return $?($-=1,nt=_e[$]):nt=o(),nt}function tt(nt){$===j&&(_e=pooling.double(_e),j*=2),g&&g(nt),_e[$]=nt,$+=1}return et}}(),bezierLengthPool=function(){function i(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,i)}(),segmentsLengthPool=function(){function i(){return{lengths:[],totalLength:0}}function o(g){var $,j=g.lengths.length;for($=0;$-.001&<<.001}function g(it,pt,ut,ht,mt,at,lt,ot,ct){if(ut===0&&at===0&&ct===0)return o(it,pt,ht,mt,lt,ot);var gt=i.sqrt(i.pow(ht-it,2)+i.pow(mt-pt,2)+i.pow(at-ut,2)),yt=i.sqrt(i.pow(lt-it,2)+i.pow(ot-pt,2)+i.pow(ct-ut,2)),xt=i.sqrt(i.pow(lt-ht,2)+i.pow(ot-mt,2)+i.pow(ct-at,2)),_t;return gt>yt?gt>xt?_t=gt-yt-xt:_t=xt-yt-gt:xt>yt?_t=xt-yt-gt:_t=yt-gt-xt,_t>-1e-4&&_t<1e-4}var $=function(){return function(it,pt,ut,ht){var mt=getDefaultCurveSegments(),at,lt,ot,ct,gt,yt=0,xt,_t=[],Pt=[],At=bezierLengthPool.newElement();for(ot=ut.length,at=0;atlt?-1:1,gt=!0;gt;)if(ht[at]<=lt&&ht[at+1]>lt?(ot=(lt-ht[at])/(ht[at+1]-ht[at]),gt=!1):at+=ct,at<0||at>=mt-1){if(at===mt-1)return ut[at];gt=!1}return ut[at]+(ut[at+1]-ut[at])*ot}function nt(it,pt,ut,ht,mt,at){var lt=tt(mt,at),ot=1-lt,ct=i.round((ot*ot*ot*it[0]+(lt*ot*ot+ot*lt*ot+ot*ot*lt)*ut[0]+(lt*lt*ot+ot*lt*lt+lt*ot*lt)*ht[0]+lt*lt*lt*pt[0])*1e3)/1e3,gt=i.round((ot*ot*ot*it[1]+(lt*ot*ot+ot*lt*ot+ot*ot*lt)*ut[1]+(lt*lt*ot+ot*lt*lt+lt*ot*lt)*ht[1]+lt*lt*lt*pt[1])*1e3)/1e3;return[ct,gt]}var st=createTypedArray("float32",8);function ft(it,pt,ut,ht,mt,at,lt){mt<0?mt=0:mt>1&&(mt=1);var ot=tt(mt,lt);at=at>1?1:at;var ct=tt(at,lt),gt,yt=it.length,xt=1-ot,_t=1-ct,Pt=xt*xt*xt,At=ot*xt*xt*3,Ft=ot*ot*xt*3,wt=ot*ot*ot,Ot=xt*xt*_t,$t=ot*xt*_t+xt*ot*_t+xt*xt*ct,Mt=ot*ot*_t+xt*ot*ct+ot*xt*ct,Et=ot*ot*ct,kt=xt*_t*_t,dt=ot*_t*_t+xt*ct*_t+xt*_t*ct,vt=ot*ct*_t+xt*ct*ct+ot*_t*ct,bt=ot*ct*ct,St=_t*_t*_t,It=ct*_t*_t+_t*ct*_t+_t*_t*ct,Lt=ct*ct*_t+_t*ct*ct+ct*_t*ct,Nt=ct*ct*ct;for(gt=0;gt=nt.t-g){tt.h&&(tt=nt),j=0;break}if(nt.t-g>i){j=_e;break}_e=at||i=at?ct.points.length-1:0;for(it=ct.points[gt].point.length,ft=0;ft=_t&&yt<_t+ct.points[ht+1].partialLength){for(xt=(yt-_t)/ct.points[ht+1].partialLength,it=ct.points[ht].point.length,ft=0;ft=at)$[0]=ot[0],$[1]=ot[1],$[2]=ot[2];else if(i<=lt)$[0]=tt.s[0],$[1]=tt.s[1],$[2]=tt.s[2];else{var $t=createQuaternion(tt.s),Mt=createQuaternion(ot),Et=(i-lt)/(at-lt);quaternionToEuler($,slerp($t,Mt,Et))}else for(_e=0;_e=at?pt=1:i1e-6?(it=Math.acos(pt),ut=Math.sin(it),ht=Math.sin((1-g)*it)/ut,mt=Math.sin(g*it)/ut):(ht=1-g,mt=g),$[0]=ht*j+mt*tt,$[1]=ht*_e+mt*nt,$[2]=ht*et+mt*st,$[3]=ht*rt+mt*ft,$}function quaternionToEuler(i,o){var g=o[0],$=o[1],j=o[2],_e=o[3],et=Math.atan2(2*$*_e-2*g*j,1-2*$*$-2*j*j),rt=Math.asin(2*g*$+2*j*_e),tt=Math.atan2(2*g*_e-2*$*j,1-2*g*g-2*j*j);i[0]=et/degToRads,i[1]=rt/degToRads,i[2]=tt/degToRads}function createQuaternion(i){var o=i[0]*degToRads,g=i[1]*degToRads,$=i[2]*degToRads,j=Math.cos(o/2),_e=Math.cos(g/2),et=Math.cos($/2),rt=Math.sin(o/2),tt=Math.sin(g/2),nt=Math.sin($/2),st=j*_e*et-rt*tt*nt,ft=rt*tt*et+j*_e*nt,it=rt*_e*et+j*tt*nt,pt=j*tt*et-rt*_e*nt;return[ft,it,pt,st]}function getValueAtCurrentTime(){var i=this.comp.renderedFrame-this.offsetTime,o=this.keyframes[0].t-this.offsetTime,g=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(i===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=g&&i>=g||this._caching.lastFrame=i&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var $=this.interpolateValue(i,this._caching);this.pv=$}return this._caching.lastFrame=i,this.pv}function setVValue(i){var o;if(this.propType==="unidimensional")o=i*this.mult,mathAbs(this.v-o)>1e-5&&(this.v=o,this._mdf=!0);else for(var g=0,$=this.v.length;g<$;)o=i[g]*this.mult,mathAbs(this.v[g]-o)>1e-5&&(this.v[g]=o,this._mdf=!0),g+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var i,o=this.effectsSequence.length,g=this.kf?this.pv:this.data.k;for(i=0;i=this._maxLength&&this.doubleArrayLength(),g){case"v":_e=this.v;break;case"i":_e=this.i;break;case"o":_e=this.o;break;default:_e=[];break}(!_e[$]||_e[$]&&!j)&&(_e[$]=pointPool.newElement()),_e[$][0]=i,_e[$][1]=o},ShapePath.prototype.setTripleAt=function(i,o,g,$,j,_e,et,rt){this.setXYAt(i,o,"v",et,rt),this.setXYAt(g,$,"o",et,rt),this.setXYAt(j,_e,"i",et,rt)},ShapePath.prototype.reverse=function(){var i=new ShapePath;i.setPathData(this.c,this._length);var o=this.v,g=this.o,$=this.i,j=0;this.c&&(i.setTripleAt(o[0][0],o[0][1],$[0][0],$[0][1],g[0][0],g[0][1],0,!1),j=1);var _e=this._length-1,et=this._length,rt;for(rt=j;rt=$t[$t.length-1].t-this.offsetTime)gt=$t[$t.length-1].s?$t[$t.length-1].s[0]:$t[$t.length-2].e[0],xt=!0;else{for(var Mt=ct,Et=$t.length-1,kt=!0,dt,vt,bt;kt&&(dt=$t[Mt],vt=$t[Mt+1],!(vt.t-this.offsetTime>at));)Mt=vt.t-this.offsetTime)wt=1;else if(atot&&at>ot)||(this._caching.lastIndex=ct - Calcoala + CalcKoala @@ -13,7 +13,7 @@ - +