reacthub-pixitweenjs 0.2.107-prealpha.0 → 0.2.107-prealpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(C,E){typeof exports=="object"&&typeof module<"u"?E(exports,require("react"),require("@pixi/react"),require("pixi.js"),require("gsap"),require("reacthub-react-bindings")):typeof define=="function"&&define.amd?define(["exports","react","@pixi/react","pixi.js","gsap","reacthub-react-bindings"],E):(C=typeof globalThis<"u"?globalThis:C||self,E(C["reacthub-pixitweenjs"]={},C.React,C.PIXIReact,C.PIXI,C.gsap,C.reacthubReactBindings))})(this,function(exports,React,react,PIXI,gsap$2,reacthubReactBindings){"use strict";function _interopNamespaceDefault(C){const E=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(C){for(const I in C)if(I!=="default"){const B=Object.getOwnPropertyDescriptor(C,I);Object.defineProperty(E,I,B.get?B:{enumerable:!0,get:()=>C[I]})}}return E.default=C,Object.freeze(E)}const React__namespace=_interopNamespaceDefault(React),PIXI__namespace=_interopNamespaceDefault(PIXI);var commonjsGlobal$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(C){return C&&C.__esModule&&Object.prototype.hasOwnProperty.call(C,"default")?C.default:C}function getAugmentedNamespace(C){if(C.__esModule)return C;var E=C.default;if(typeof E=="function"){var I=function B(){return this instanceof B?Reflect.construct(E,arguments,this.constructor):E.apply(this,arguments)};I.prototype=E.prototype}else I={};return Object.defineProperty(I,"__esModule",{value:!0}),Object.keys(C).forEach(function(B){var U=Object.getOwnPropertyDescriptor(C,B);Object.defineProperty(I,B,U.get?U:{enumerable:!0,get:function(){return C[B]}})}),I}var jsxRuntime={exports:{}},reactJsxRuntime_production_min={};/**
1
+ (function(C,E){typeof exports=="object"&&typeof module<"u"?E(exports,require("react"),require("@pixi/react"),require("pixi.js"),require("reacthub-react-bindings"),require("gsap"),require("react-dom/client"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","@pixi/react","pixi.js","reacthub-react-bindings","gsap","react-dom/client","react-dom"],E):(C=typeof globalThis<"u"?globalThis:C||self,E(C["reacthub-pixitweenjs"]={},C.React,C.PIXIReact,C.PIXI,C.reacthubReactBindings,C.gsap,C.ReactDOMClient,C.ReactDOM))})(this,function(exports,React,react,PIXI,reacthubReactBindings,gsap$2,client,reactDom){"use strict";function _interopNamespaceDefault(C){const E=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(C){for(const I in C)if(I!=="default"){const B=Object.getOwnPropertyDescriptor(C,I);Object.defineProperty(E,I,B.get?B:{enumerable:!0,get:()=>C[I]})}}return E.default=C,Object.freeze(E)}const React__namespace=_interopNamespaceDefault(React),PIXI__namespace=_interopNamespaceDefault(PIXI);var commonjsGlobal$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(C){return C&&C.__esModule&&Object.prototype.hasOwnProperty.call(C,"default")?C.default:C}function getAugmentedNamespace(C){if(C.__esModule)return C;var E=C.default;if(typeof E=="function"){var I=function B(){return this instanceof B?Reflect.construct(E,arguments,this.constructor):E.apply(this,arguments)};I.prototype=E.prototype}else I={};return Object.defineProperty(I,"__esModule",{value:!0}),Object.keys(C).forEach(function(B){var U=Object.getOwnPropertyDescriptor(C,B);Object.defineProperty(I,B,U.get?U:{enumerable:!0,get:function(){return C[B]}})}),I}var jsxRuntime={exports:{}},reactJsxRuntime_production_min={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var f$5=React,k$2=Symbol.for("react.element"),l$6=Symbol.for("react.fragment"),m$4=Object.prototype.hasOwnProperty,n$6=f$5.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p$4={key:!0,ref:!0,__self:!0,__source:!0};function q(C,E,I){var B,U={},V=null,X=null;I!==void 0&&(V=""+I),E.key!==void 0&&(V=""+E.key),E.ref!==void 0&&(X=E.ref);for(B in E)m$4.call(E,B)&&!p$4.hasOwnProperty(B)&&(U[B]=E[B]);if(C&&C.defaultProps)for(B in E=C.defaultProps,E)U[B]===void 0&&(U[B]=E[B]);return{$$typeof:k$2,type:C,key:V,ref:X,props:U,_owner:n$6.current}}reactJsxRuntime_production_min.Fragment=l$6,reactJsxRuntime_production_min.jsx=q,reactJsxRuntime_production_min.jsxs=q,jsxRuntime.exports=reactJsxRuntime_production_min;var jsxRuntimeExports=jsxRuntime.exports,Effects=(C=>(C.BlackAndWhite="BlackAndWhite",C.Sepia="Sepia",C.RetroVintage="RetroVintage",C.NightVision="NightVision",C.Normal="Normal",C.Vignette="Vignette",C.None="Normal",C))(Effects||{}),Waveforms=(C=>(C.NONE="none",C.EQUALIZER="equalizer",C.ROUNDBARS="roundbars",C.LED="led",C.RADIAL_SPECTRUM="radial_spectrum",C.LUMI_BARS="lumi_bars",C))(Waveforms||{});let targetElement;function getElement(){return targetElement=document.body,targetElement}function useCustomEventListener(C,E,I){let B;return React.useEffect(()=>{B=B||getElement();const U=V=>{const X=V.detail;E(X)};return B.addEventListener(C,U,!1),()=>{B==null||B.removeEventListener(C,U,!1)}},I),U=>{B=U}}function emitCustomEvent(C,E){const I=getElement(),B=new CustomEvent(C,{detail:E});I.dispatchEvent(B)}function newCustomEventEmitter(){let C;function E(I){C=I}return E.emit=function(I,B){const U=new CustomEvent(I,{bubbles:!0,detail:B});C==null||C.dispatchEvent(U)},E}const GsapPixieContext=React__namespace.createContext({}),Events={STOP:"GSAP_STOP",PAUSE:"GSAP_PAUSE",PLAY:"GSAP_PLAY",RESUME:"GSAP_RESUME",RESTART:"GSAP_RESTART",REPEAT:"GSAP_REPEAT",SEEK:"GSAP_SEEK",RESET:"GSAP_RESET",COMPLETE:"GSAP_COMPLETE",SEEK_START:"GSAP_SEEK_START",SEEK_END:"GSAP_SEEK_END",SCRUBBER_SEEK:"GSAP_SCRUBBER_SEEK",SCRUBBER_PROGRESS_UPDATE:"GSAP_SCRUBBER_PROGRESS_UPDATE",SCRUBBER_PLAY:"GSAP_SCRUBBER_PLAY",SCRUBBER_PAUSE:"GSAP_SCRUBBER_PAUSE",SCRUBBER_CLICKED:"GSAP_SCRUBBER_CLICKED",TRANSFORMER_DRAG_START:"TRANSFORMER_DRAG_START",TRANSFORMER_DRAG_END:"TRANSFORMER_DRAG_END",REVERSE_MODE_START:"REVERSE_MODE_START",REVERSE_MODE_END:"REVERSE_MODE_END"},GsapPixieContextProvider=({children:C})=>{const[E,I]=React.useState(0),B=React.useRef(),U=React.useRef(),V=React.useRef(0),X=React.useRef(!1),Y=React.useRef(!1),[K,J]=React.useState(!1);React.useLayoutEffect(()=>(U.current=gsap$2.context(()=>{B.current&&B.current.progress(0).kill(),B.current&&B.current.clear(),B.current&&gsap$2.killTweensOf(B.current),B.current=gsap$2.timeline({paused:!0,defaults:{duration:0}})}),()=>{B.current&&B.current.revert(),U.current.revert()}),[]);const xe=React.useCallback(()=>{if(B.current){let Ie=B.current.time();Ie<V.current?X.current=!0:X.current=!1,V.current=Ie}},[]);React.useEffect(()=>{if(B.current){const Pe=B.current;Pe.eventCallback("onStart",function(){}).eventCallback("onInterrupt",function(){Pe.pause(),xe()}).eventCallback("onUpdate",function(){xe()}).eventCallback("onRepeat",function(){console.log("onrepeat",Pe.progress())}).eventCallback("onReverseComplete",function(){console.log("onReverseComplete",Pe.progress())}).eventCallback("onComplete",function(){Pe.seek(0),Pe.pause(),emitCustomEvent(Events.COMPLETE,{uniqueId:"timeline"}),console.log("Emitted events"),xe()})}},[]);const Z=React.useCallback(()=>{B.current&&B.current.revert()},[]),_e=React.useCallback(()=>{B.current&&B.current.restart()},[]),Se=React.useCallback(()=>{if(B.current){const Pe=B.current;Pe.repeat(1),Pe.restart()}},[]),Ee=React.useCallback(Pe=>{B.current&&B.current.seek(Pe)},[]),Ae=React.useCallback(()=>{B.current&&B.current.seek(4)},[]),Re=React.useCallback(()=>{const Pe=B.current;return Pe?Pe.totalDuration():0},[]),Te=()=>{B.current&&(B.current.pause(),emitCustomEvent(Events.PAUSE))},we=()=>{B.current&&(B.current.resume(),emitCustomEvent(Events.RESUME))};return useCustomEventListener(Events.SEEK_START,()=>{Y.current=!0}),useCustomEventListener(Events.SCRUBBER_PLAY,()=>{we()}),useCustomEventListener(Events.SCRUBBER_PAUSE,()=>{Te()}),useCustomEventListener(Events.SCRUBBER_SEEK,Pe=>{Ee(Pe)}),useCustomEventListener(Events.SEEK_END,()=>{Y.current=!1}),useCustomEventListener(Events.REVERSE_MODE_START,()=>{X.current=!0}),useCustomEventListener(Events.REVERSE_MODE_END,()=>{X.current=!1}),useCustomEventListener(Events.SCRUBBER_PROGRESS_UPDATE,Pe=>{}),jsxRuntimeExports.jsx(GsapPixieContext.Provider,{value:{gsapCtx:U,tl:B,handlePlay:we,handlePause:Te,handleReset:Z,handleSeek:Ee,handleSeekTest:Ae,handleRestart:_e,handleRepeat:Se,playerTimeRef:V,getTimelineDuration:Re,totalDuration:E,setTotalDuration:I,reverseModeRef:X,dragModeRef:Y,isRemotion:K,setIsRemotion:J},children:C})},PixiTransformer=({pixiTransformerRef:C,imageRef:E,isMounted:I,transformCommit:B,transformChange:U,mouseoverEvent:V,onDoubleClick:X,uniqueId:Y="",isText:K=!1})=>{const J=PIXI__namespace.utils.string2hex("#F3C409"),xe=PIXI__namespace.utils.string2hex("#F3C409"),Z=React__namespace.useRef({isDragging:!1}),_e=react.useApp(),Se=_e.screen.width,Ee=_e.screen.height,Ae=React__namespace.useMemo(()=>{const Le=Math.min(Se,Ee)/800;return 1.5*Le<2?2:1.5*Le},[Se,Ee]),Re=300,Te=React__namespace.useRef(0),we=React__namespace.useCallback(()=>{V&&!Z.current.isDragging&&V(!0)},[V]),Pe=React__namespace.useCallback(()=>{V&&!Z.current.isDragging&&V(!1)},[V]),Ie=React__namespace.useCallback(()=>{Z.current.isDragging=!0;const Le=new Date().getTime();Le-Te.current<Re&&X&&X(),Te.current=Le},[]),Fe=React__namespace.useCallback(Le=>{Z.current.isDragging=!0,U&&U(Le),emitCustomEvent(Events.TRANSFORMER_DRAG_START,{uniqueId:"timeline"})},[U]),Oe=React__namespace.useCallback(()=>{if(E.current===null)return;const Le=E.current.x,De=E.current.y,Ve=E.current.width,Xe=E.current.height,Ue=E.current.rotation,We=[E.current.scale.x,E.current.scale.y],je=We[0]<0?-1:1,ze=We[1]<0?-1:1;B&&(B({uniqueId:Y,transformation:{x:Math.round(Le),y:Math.round(De),width:Math.round(Math.max(5,Ve)),height:Math.round(Math.max(5,Xe)),rotation:Ue,scale:K?We:[je,ze]}}),emitCustomEvent(Events.TRANSFORMER_DRAG_END,{uniqueId:"timeline"})),Z.current.isDragging=!1},[B]);return React__namespace.useEffect(()=>(C.current&&(C.current.on("mouseover",we),C.current.on("mouseout",Pe),C.current.on("mousedown",Ie)),()=>{C.current&&(C.current.off("mouseover",we),C.current.off("mouseout",Pe),C.current.off("mousedown",Ie))}),[]),jsxRuntimeExports.jsx(reacthubReactBindings.Transformer,{ref:C,group:I?[E.current]:[],rotateEnabled:!0,boxRotationEnabled:!0,centeredScaling:!0,boxScalingEnabled:!0,wireframeStyle:{thickness:Ae,color:xe},lockAspectRatio:!0,scaleEnabled:!0,handleStyle:{outlineColor:J,shape:"circle",radius:10},transformchange:Fe,transformcommit:Oe})};function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1;function eq$2(C,E){return C===E||C!==C&&E!==E}var eq_1=eq$2,eq$1=eq_1;function assocIndexOf$4(C,E){for(var I=C.length;I--;)if(eq$1(C[I][0],E))return I;return-1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete$1(C){var E=this.__data__,I=assocIndexOf$3(E,C);if(I<0)return!1;var B=E.length-1;return I==B?E.pop():splice.call(E,I,1),--this.size,!0}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$1(C){var E=this.__data__,I=assocIndexOf$2(E,C);return I<0?void 0:E[I][1]}var _listCacheGet=listCacheGet$1,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(C){return assocIndexOf$1(this.__data__,C)>-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(C,E){var I=this.__data__,B=assocIndexOf(I,C);return B<0?(++this.size,I.push([C,E])):I[B][1]=E,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(C){var E=-1,I=C==null?0:C.length;for(this.clear();++E<I;){var B=C[E];this.set(B[0],B[1])}}ListCache$4.prototype.clear=listCacheClear,ListCache$4.prototype.delete=listCacheDelete,ListCache$4.prototype.get=listCacheGet,ListCache$4.prototype.has=listCacheHas,ListCache$4.prototype.set=listCacheSet;var _ListCache=ListCache$4,ListCache$3=_ListCache;function stackClear$1(){this.__data__=new ListCache$3,this.size=0}var _stackClear=stackClear$1;function stackDelete$1(C){var E=this.__data__,I=E.delete(C);return this.size=E.size,I}var _stackDelete=stackDelete$1;function stackGet$1(C){return this.__data__.get(C)}var _stackGet=stackGet$1;function stackHas$1(C){return this.__data__.has(C)}var _stackHas=stackHas$1,freeGlobal$1=typeof commonjsGlobal$1=="object"&&commonjsGlobal$1&&commonjsGlobal$1.Object===Object&&commonjsGlobal$1,_freeGlobal=freeGlobal$1,freeGlobal=_freeGlobal,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root$9=freeGlobal||freeSelf||Function("return this")(),_root=root$9,root$8=_root,Symbol$5=root$8.Symbol,_Symbol=Symbol$5,Symbol$4=_Symbol,objectProto$c=Object.prototype,hasOwnProperty$9=objectProto$c.hasOwnProperty,nativeObjectToString$1=objectProto$c.toString,symToStringTag$1=Symbol$4?Symbol$4.toStringTag:void 0;function getRawTag$1(C){var E=hasOwnProperty$9.call(C,symToStringTag$1),I=C[symToStringTag$1];try{C[symToStringTag$1]=void 0;var B=!0}catch{}var U=nativeObjectToString$1.call(C);return B&&(E?C[symToStringTag$1]=I:delete C[symToStringTag$1]),U}var _getRawTag=getRawTag$1,objectProto$b=Object.prototype,nativeObjectToString=objectProto$b.toString;function objectToString$2(C){return nativeObjectToString.call(C)}var _objectToString=objectToString$2,Symbol$3=_Symbol,getRawTag=_getRawTag,objectToString$1=_objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$3?Symbol$3.toStringTag:void 0;function baseGetTag$5(C){return C==null?C===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(C)?getRawTag(C):objectToString$1(C)}var _baseGetTag=baseGetTag$5;function isObject$5(C){var E=typeof C;return C!=null&&(E=="object"||E=="function")}var isObject_1=isObject$5,baseGetTag$4=_baseGetTag,isObject$4=isObject_1,asyncTag="[object AsyncFunction]",funcTag$1="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$2(C){if(!isObject$4(C))return!1;var E=baseGetTag$4(C);return E==funcTag$1||E==genTag||E==asyncTag||E==proxyTag}var isFunction_1=isFunction$2,root$7=_root,coreJsData$1=root$7["__core-js_shared__"],_coreJsData=coreJsData$1,coreJsData=_coreJsData,maskSrcKey=function(){var C=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return C?"Symbol(src)_1."+C:""}();function isMasked$1(C){return!!maskSrcKey&&maskSrcKey in C}var _isMasked=isMasked$1,funcProto$1=Function.prototype,funcToString$1=funcProto$1.toString;function toSource$2(C){if(C!=null){try{return funcToString$1.call(C)}catch{}try{return C+""}catch{}}return""}var _toSource=toSource$2,isFunction$1=isFunction_1,isMasked=_isMasked,isObject$3=isObject_1,toSource$1=_toSource,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto=Function.prototype,objectProto$a=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$8=objectProto$a.hasOwnProperty,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$8).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$1(C){if(!isObject$3(C)||isMasked(C))return!1;var E=isFunction$1(C)?reIsNative:reIsHostCtor;return E.test(toSource$1(C))}var _baseIsNative=baseIsNative$1;function getValue$1(C,E){return C==null?void 0:C[E]}var _getValue=getValue$1,baseIsNative=_baseIsNative,getValue=_getValue;function getNative$6(C,E){var I=getValue(C,E);return baseIsNative(I)?I:void 0}var _getNative=getNative$6,getNative$5=_getNative,root$6=_root,Map$4=getNative$5(root$6,"Map"),_Map=Map$4,getNative$4=_getNative,nativeCreate$4=getNative$4(Object,"create"),_nativeCreate=nativeCreate$4,nativeCreate$3=_nativeCreate;function hashClear$1(){this.__data__=nativeCreate$3?nativeCreate$3(null):{},this.size=0}var _hashClear=hashClear$1;function hashDelete$1(C){var E=this.has(C)&&delete this.__data__[C];return this.size-=E?1:0,E}var _hashDelete=hashDelete$1,nativeCreate$2=_nativeCreate,HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$9=Object.prototype,hasOwnProperty$7=objectProto$9.hasOwnProperty;function hashGet$1(C){var E=this.__data__;if(nativeCreate$2){var I=E[C];return I===HASH_UNDEFINED$2?void 0:I}return hasOwnProperty$7.call(E,C)?E[C]:void 0}var _hashGet=hashGet$1,nativeCreate$1=_nativeCreate,objectProto$8=Object.prototype,hasOwnProperty$6=objectProto$8.hasOwnProperty;function hashHas$1(C){var E=this.__data__;return nativeCreate$1?E[C]!==void 0:hasOwnProperty$6.call(E,C)}var _hashHas=hashHas$1,nativeCreate=_nativeCreate,HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet$1(C,E){var I=this.__data__;return this.size+=this.has(C)?0:1,I[C]=nativeCreate&&E===void 0?HASH_UNDEFINED$1:E,this}var _hashSet=hashSet$1,hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=_hashHas,hashSet=_hashSet;function Hash$1(C){var E=-1,I=C==null?0:C.length;for(this.clear();++E<I;){var B=C[E];this.set(B[0],B[1])}}Hash$1.prototype.clear=hashClear,Hash$1.prototype.delete=hashDelete,Hash$1.prototype.get=hashGet,Hash$1.prototype.has=hashHas,Hash$1.prototype.set=hashSet;var _Hash=Hash$1,Hash=_Hash,ListCache$2=_ListCache,Map$3=_Map;function mapCacheClear$1(){this.size=0,this.__data__={hash:new Hash,map:new(Map$3||ListCache$2),string:new Hash}}var _mapCacheClear=mapCacheClear$1;function isKeyable$1(C){var E=typeof C;return E=="string"||E=="number"||E=="symbol"||E=="boolean"?C!=="__proto__":C===null}var _isKeyable=isKeyable$1,isKeyable=_isKeyable;function getMapData$4(C,E){var I=C.__data__;return isKeyable(E)?I[typeof E=="string"?"string":"hash"]:I.map}var _getMapData=getMapData$4,getMapData$3=_getMapData;function mapCacheDelete$1(C){var E=getMapData$3(this,C).delete(C);return this.size-=E?1:0,E}var _mapCacheDelete=mapCacheDelete$1,getMapData$2=_getMapData;function mapCacheGet$1(C){return getMapData$2(this,C).get(C)}var _mapCacheGet=mapCacheGet$1,getMapData$1=_getMapData;function mapCacheHas$1(C){return getMapData$1(this,C).has(C)}var _mapCacheHas=mapCacheHas$1,getMapData=_getMapData;function mapCacheSet$1(C,E){var I=getMapData(this,C),B=I.size;return I.set(C,E),this.size+=I.size==B?0:1,this}var _mapCacheSet=mapCacheSet$1,mapCacheClear=_mapCacheClear,mapCacheDelete=_mapCacheDelete,mapCacheGet=_mapCacheGet,mapCacheHas=_mapCacheHas,mapCacheSet=_mapCacheSet;function MapCache$3(C){var E=-1,I=C==null?0:C.length;for(this.clear();++E<I;){var B=C[E];this.set(B[0],B[1])}}MapCache$3.prototype.clear=mapCacheClear,MapCache$3.prototype.delete=mapCacheDelete,MapCache$3.prototype.get=mapCacheGet,MapCache$3.prototype.has=mapCacheHas,MapCache$3.prototype.set=mapCacheSet;var _MapCache=MapCache$3,ListCache$1=_ListCache,Map$2=_Map,MapCache$2=_MapCache,LARGE_ARRAY_SIZE=200;function stackSet$1(C,E){var I=this.__data__;if(I instanceof ListCache$1){var B=I.__data__;if(!Map$2||B.length<LARGE_ARRAY_SIZE-1)return B.push([C,E]),this.size=++I.size,this;I=this.__data__=new MapCache$2(B)}return I.set(C,E),this.size=I.size,this}var _stackSet=stackSet$1,ListCache=_ListCache,stackClear=_stackClear,stackDelete=_stackDelete,stackGet=_stackGet,stackHas=_stackHas,stackSet=_stackSet;function Stack$2(C){var E=this.__data__=new ListCache(C);this.size=E.size}Stack$2.prototype.clear=stackClear,Stack$2.prototype.delete=stackDelete,Stack$2.prototype.get=stackGet,Stack$2.prototype.has=stackHas,Stack$2.prototype.set=stackSet;var _Stack=Stack$2,HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd$1(C){return this.__data__.set(C,HASH_UNDEFINED),this}var _setCacheAdd=setCacheAdd$1;function setCacheHas$1(C){return this.__data__.has(C)}var _setCacheHas=setCacheHas$1,MapCache$1=_MapCache,setCacheAdd=_setCacheAdd,setCacheHas=_setCacheHas;function SetCache$1(C){var E=-1,I=C==null?0:C.length;for(this.__data__=new MapCache$1;++E<I;)this.add(C[E])}SetCache$1.prototype.add=SetCache$1.prototype.push=setCacheAdd,SetCache$1.prototype.has=setCacheHas;var _SetCache=SetCache$1;function arraySome$1(C,E){for(var I=-1,B=C==null?0:C.length;++I<B;)if(E(C[I],I,C))return!0;return!1}var _arraySome=arraySome$1;function cacheHas$1(C,E){return C.has(E)}var _cacheHas=cacheHas$1,SetCache=_SetCache,arraySome=_arraySome,cacheHas=_cacheHas,COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function equalArrays$2(C,E,I,B,U,V){var X=I&COMPARE_PARTIAL_FLAG$5,Y=C.length,K=E.length;if(Y!=K&&!(X&&K>Y))return!1;var J=V.get(C),xe=V.get(E);if(J&&xe)return J==E&&xe==C;var Z=-1,_e=!0,Se=I&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for(V.set(C,E),V.set(E,C);++Z<Y;){var Ee=C[Z],Ae=E[Z];if(B)var Re=X?B(Ae,Ee,Z,E,C,V):B(Ee,Ae,Z,C,E,V);if(Re!==void 0){if(Re)continue;_e=!1;break}if(Se){if(!arraySome(E,function(Te,we){if(!cacheHas(Se,we)&&(Ee===Te||U(Ee,Te,I,B,V)))return Se.push(we)})){_e=!1;break}}else if(!(Ee===Ae||U(Ee,Ae,I,B,V))){_e=!1;break}}return V.delete(C),V.delete(E),_e}var _equalArrays=equalArrays$2,root$5=_root,Uint8Array$2=root$5.Uint8Array,_Uint8Array=Uint8Array$2;function mapToArray$1(C){var E=-1,I=Array(C.size);return C.forEach(function(B,U){I[++E]=[U,B]}),I}var _mapToArray=mapToArray$1;function setToArray$1(C){var E=-1,I=Array(C.size);return C.forEach(function(B){I[++E]=B}),I}var _setToArray=setToArray$1,Symbol$2=_Symbol,Uint8Array$1=_Uint8Array,eq=eq_1,equalArrays$1=_equalArrays,mapToArray=_mapToArray,setToArray=_setToArray,COMPARE_PARTIAL_FLAG$4=1,COMPARE_UNORDERED_FLAG$2=2,boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",mapTag$3="[object Map]",numberTag$1="[object Number]",regexpTag$1="[object RegExp]",setTag$3="[object Set]",stringTag$1="[object String]",symbolTag$1="[object Symbol]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$2="[object DataView]",symbolProto$1=Symbol$2?Symbol$2.prototype:void 0,symbolValueOf=symbolProto$1?symbolProto$1.valueOf:void 0;function equalByTag$1(C,E,I,B,U,V,X){switch(I){case dataViewTag$2:if(C.byteLength!=E.byteLength||C.byteOffset!=E.byteOffset)return!1;C=C.buffer,E=E.buffer;case arrayBufferTag$1:return!(C.byteLength!=E.byteLength||!V(new Uint8Array$1(C),new Uint8Array$1(E)));case boolTag$1:case dateTag$1:case numberTag$1:return eq(+C,+E);case errorTag$1:return C.name==E.name&&C.message==E.message;case regexpTag$1:case stringTag$1:return C==E+"";case mapTag$3:var Y=mapToArray;case setTag$3:var K=B&COMPARE_PARTIAL_FLAG$4;if(Y||(Y=setToArray),C.size!=E.size&&!K)return!1;var J=X.get(C);if(J)return J==E;B|=COMPARE_UNORDERED_FLAG$2,X.set(C,E);var xe=equalArrays$1(Y(C),Y(E),B,U,V,X);return X.delete(C),xe;case symbolTag$1:if(symbolValueOf)return symbolValueOf.call(C)==symbolValueOf.call(E)}return!1}var _equalByTag=equalByTag$1;function arrayPush$1(C,E){for(var I=-1,B=E.length,U=C.length;++I<B;)C[U+I]=E[I];return C}var _arrayPush=arrayPush$1,isArray$e=Array.isArray,isArray_1=isArray$e,arrayPush=_arrayPush,isArray$d=isArray_1;function baseGetAllKeys$1(C,E,I){var B=E(C);return isArray$d(C)?B:arrayPush(B,I(C))}var _baseGetAllKeys=baseGetAllKeys$1;function arrayFilter$1(C,E){for(var I=-1,B=C==null?0:C.length,U=0,V=[];++I<B;){var X=C[I];E(X,I,C)&&(V[U++]=X)}return V}var _arrayFilter=arrayFilter$1;function stubArray$1(){return[]}var stubArray_1=stubArray$1,arrayFilter=_arrayFilter,stubArray=stubArray_1,objectProto$7=Object.prototype,propertyIsEnumerable$1=objectProto$7.propertyIsEnumerable,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbols$1=nativeGetSymbols?function(C){return C==null?[]:(C=Object(C),arrayFilter(nativeGetSymbols(C),function(E){return propertyIsEnumerable$1.call(C,E)}))}:stubArray,_getSymbols=getSymbols$1;function baseTimes$1(C,E){for(var I=-1,B=Array(C);++I<C;)B[I]=E(I);return B}var _baseTimes=baseTimes$1;function isObjectLike$5(C){return C!=null&&typeof C=="object"}var isObjectLike_1=isObjectLike$5,baseGetTag$3=_baseGetTag,isObjectLike$4=isObjectLike_1,argsTag$2="[object Arguments]";function baseIsArguments$1(C){return isObjectLike$4(C)&&baseGetTag$3(C)==argsTag$2}var _baseIsArguments=baseIsArguments$1,baseIsArguments=_baseIsArguments,isObjectLike$3=isObjectLike_1,objectProto$6=Object.prototype,hasOwnProperty$5=objectProto$6.hasOwnProperty,propertyIsEnumerable=objectProto$6.propertyIsEnumerable,isArguments$3=baseIsArguments(function(){return arguments}())?baseIsArguments:function(C){return isObjectLike$3(C)&&hasOwnProperty$5.call(C,"callee")&&!propertyIsEnumerable.call(C,"callee")},isArguments_1=isArguments$3,isBuffer$4={exports:{}};function stubFalse(){return!1}var stubFalse_1=stubFalse;isBuffer$4.exports,function(C,E){var I=_root,B=stubFalse_1,U=E&&!E.nodeType&&E,V=U&&!0&&C&&!C.nodeType&&C,X=V&&V.exports===U,Y=X?I.Buffer:void 0,K=Y?Y.isBuffer:void 0,J=K||B;C.exports=J}(isBuffer$4,isBuffer$4.exports);var isBufferExports=isBuffer$4.exports,MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex$2(C,E){var I=typeof C;return E=E??MAX_SAFE_INTEGER$1,!!E&&(I=="number"||I!="symbol"&&reIsUint.test(C))&&C>-1&&C%1==0&&C<E}var _isIndex=isIndex$2,MAX_SAFE_INTEGER=9007199254740991;function isLength$3(C){return typeof C=="number"&&C>-1&&C%1==0&&C<=MAX_SAFE_INTEGER}var isLength_1=isLength$3,baseGetTag$2=_baseGetTag,isLength$2=isLength_1,isObjectLike$2=isObjectLike_1,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",mapTag$2="[object Map]",numberTag="[object Number]",objectTag$2="[object Object]",regexpTag="[object RegExp]",setTag$2="[object Set]",stringTag="[object String]",weakMapTag$1="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0,typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag$1]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag$2]=typedArrayTags[numberTag]=typedArrayTags[objectTag$2]=typedArrayTags[regexpTag]=typedArrayTags[setTag$2]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag$1]=!1;function baseIsTypedArray$1(C){return isObjectLike$2(C)&&isLength$2(C.length)&&!!typedArrayTags[baseGetTag$2(C)]}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$1(C){return function(E){return C(E)}}var _baseUnary=baseUnary$1,_nodeUtil={exports:{}};_nodeUtil.exports,function(C,E){var I=_freeGlobal,B=E&&!E.nodeType&&E,U=B&&!0&&C&&!C.nodeType&&C,V=U&&U.exports===B,X=V&&I.process,Y=function(){try{var K=U&&U.require&&U.require("util").types;return K||X&&X.binding&&X.binding("util")}catch{}}();C.exports=Y}(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports,baseIsTypedArray=_baseIsTypedArray,baseUnary=_baseUnary,nodeUtil=_nodeUtilExports,nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray$3=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$3,baseTimes=_baseTimes,isArguments$2=isArguments_1,isArray$c=isArray_1,isBuffer$3=isBufferExports,isIndex$1=_isIndex,isTypedArray$2=isTypedArray_1,objectProto$5=Object.prototype,hasOwnProperty$4=objectProto$5.hasOwnProperty;function arrayLikeKeys$1(C,E){var I=isArray$c(C),B=!I&&isArguments$2(C),U=!I&&!B&&isBuffer$3(C),V=!I&&!B&&!U&&isTypedArray$2(C),X=I||B||U||V,Y=X?baseTimes(C.length,String):[],K=Y.length;for(var J in C)(E||hasOwnProperty$4.call(C,J))&&!(X&&(J=="length"||U&&(J=="offset"||J=="parent")||V&&(J=="buffer"||J=="byteLength"||J=="byteOffset")||isIndex$1(J,K)))&&Y.push(J);return Y}var _arrayLikeKeys=arrayLikeKeys$1,objectProto$4=Object.prototype;function isPrototype$2(C){var E=C&&C.constructor,I=typeof E=="function"&&E.prototype||objectProto$4;return C===I}var _isPrototype=isPrototype$2;function overArg$1(C,E){return function(I){return C(E(I))}}var _overArg=overArg$1,overArg=_overArg,nativeKeys$1=overArg(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype$1=_isPrototype,nativeKeys=_nativeKeys,objectProto$3=Object.prototype,hasOwnProperty$3=objectProto$3.hasOwnProperty;function baseKeys$2(C){if(!isPrototype$1(C))return nativeKeys(C);var E=[];for(var I in Object(C))hasOwnProperty$3.call(C,I)&&I!="constructor"&&E.push(I);return E}var _baseKeys=baseKeys$2,isFunction=isFunction_1,isLength$1=isLength_1;function isArrayLike$4(C){return C!=null&&isLength$1(C.length)&&!isFunction(C)}var isArrayLike_1=isArrayLike$4,arrayLikeKeys=_arrayLikeKeys,baseKeys$1=_baseKeys,isArrayLike$3=isArrayLike_1;function keys$3(C){return isArrayLike$3(C)?arrayLikeKeys(C):baseKeys$1(C)}var keys_1=keys$3,baseGetAllKeys=_baseGetAllKeys,getSymbols=_getSymbols,keys$2=keys_1;function getAllKeys$1(C){return baseGetAllKeys(C,keys$2,getSymbols)}var _getAllKeys=getAllKeys$1,getAllKeys=_getAllKeys,COMPARE_PARTIAL_FLAG$3=1,objectProto$2=Object.prototype,hasOwnProperty$2=objectProto$2.hasOwnProperty;function equalObjects$1(C,E,I,B,U,V){var X=I&COMPARE_PARTIAL_FLAG$3,Y=getAllKeys(C),K=Y.length,J=getAllKeys(E),xe=J.length;if(K!=xe&&!X)return!1;for(var Z=K;Z--;){var _e=Y[Z];if(!(X?_e in E:hasOwnProperty$2.call(E,_e)))return!1}var Se=V.get(C),Ee=V.get(E);if(Se&&Ee)return Se==E&&Ee==C;var Ae=!0;V.set(C,E),V.set(E,C);for(var Re=X;++Z<K;){_e=Y[Z];var Te=C[_e],we=E[_e];if(B)var Pe=X?B(we,Te,_e,E,C,V):B(Te,we,_e,C,E,V);if(!(Pe===void 0?Te===we||U(Te,we,I,B,V):Pe)){Ae=!1;break}Re||(Re=_e=="constructor")}if(Ae&&!Re){var Ie=C.constructor,Fe=E.constructor;Ie!=Fe&&"constructor"in C&&"constructor"in E&&!(typeof Ie=="function"&&Ie instanceof Ie&&typeof Fe=="function"&&Fe instanceof Fe)&&(Ae=!1)}return V.delete(C),V.delete(E),Ae}var _equalObjects=equalObjects$1,getNative$3=_getNative,root$4=_root,DataView$2=getNative$3(root$4,"DataView"),_DataView=DataView$2,getNative$2=_getNative,root$3=_root,Promise$2=getNative$2(root$3,"Promise"),_Promise=Promise$2,getNative$1=_getNative,root$2=_root,Set$2=getNative$1(root$2,"Set"),_Set=Set$2,getNative=_getNative,root$1=_root,WeakMap$2=getNative(root$1,"WeakMap"),_WeakMap=WeakMap$2,DataView$1=_DataView,Map$1=_Map,Promise$1=_Promise,Set$1=_Set,WeakMap$1=_WeakMap,baseGetTag$1=_baseGetTag,toSource=_toSource,mapTag$1="[object Map]",objectTag$1="[object Object]",promiseTag="[object Promise]",setTag$1="[object Set]",weakMapTag="[object WeakMap]",dataViewTag="[object DataView]",dataViewCtorString=toSource(DataView$1),mapCtorString=toSource(Map$1),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap$1),getTag$2=baseGetTag$1;(DataView$1&&getTag$2(new DataView$1(new ArrayBuffer(1)))!=dataViewTag||Map$1&&getTag$2(new Map$1)!=mapTag$1||Promise$1&&getTag$2(Promise$1.resolve())!=promiseTag||Set$1&&getTag$2(new Set$1)!=setTag$1||WeakMap$1&&getTag$2(new WeakMap$1)!=weakMapTag)&&(getTag$2=function(C){var E=baseGetTag$1(C),I=E==objectTag$1?C.constructor:void 0,B=I?toSource(I):"";if(B)switch(B){case dataViewCtorString:return dataViewTag;case mapCtorString:return mapTag$1;case promiseCtorString:return promiseTag;case setCtorString:return setTag$1;case weakMapCtorString:return weakMapTag}return E});var _getTag=getTag$2,Stack$1=_Stack,equalArrays=_equalArrays,equalByTag=_equalByTag,equalObjects=_equalObjects,getTag$1=_getTag,isArray$b=isArray_1,isBuffer$2=isBufferExports,isTypedArray$1=isTypedArray_1,COMPARE_PARTIAL_FLAG$2=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto$1=Object.prototype,hasOwnProperty$1=objectProto$1.hasOwnProperty;function baseIsEqualDeep$1(C,E,I,B,U,V){var X=isArray$b(C),Y=isArray$b(E),K=X?arrayTag:getTag$1(C),J=Y?arrayTag:getTag$1(E);K=K==argsTag?objectTag:K,J=J==argsTag?objectTag:J;var xe=K==objectTag,Z=J==objectTag,_e=K==J;if(_e&&isBuffer$2(C)){if(!isBuffer$2(E))return!1;X=!0,xe=!1}if(_e&&!xe)return V||(V=new Stack$1),X||isTypedArray$1(C)?equalArrays(C,E,I,B,U,V):equalByTag(C,E,K,I,B,U,V);if(!(I&COMPARE_PARTIAL_FLAG$2)){var Se=xe&&hasOwnProperty$1.call(C,"__wrapped__"),Ee=Z&&hasOwnProperty$1.call(E,"__wrapped__");if(Se||Ee){var Ae=Se?C.value():C,Re=Ee?E.value():E;return V||(V=new Stack$1),U(Ae,Re,I,B,V)}}return _e?(V||(V=new Stack$1),equalObjects(C,E,I,B,U,V)):!1}var _baseIsEqualDeep=baseIsEqualDeep$1,baseIsEqualDeep=_baseIsEqualDeep,isObjectLike$1=isObjectLike_1;function baseIsEqual$3(C,E,I,B,U){return C===E?!0:C==null||E==null||!isObjectLike$1(C)&&!isObjectLike$1(E)?C!==C&&E!==E:baseIsEqualDeep(C,E,I,B,baseIsEqual$3,U)}var _baseIsEqual=baseIsEqual$3,baseIsEqual$2=_baseIsEqual;function isEqual(C,E){return baseIsEqual$2(C,E)}var isEqual_1=isEqual;const isEqual$1=getDefaultExportFromCjs(isEqual_1),useDeepEffect=(C,E)=>{const I=React.useRef(!0),B=React.useRef(E);React.useEffect(()=>{const U=B.current.every((V,X)=>isEqual$1(V,E[X]));(I.current||!U)&&C(),I.current=!1,B.current=E},E)};function useDebounce(C,E=700){const[I,B]=React.useState(C);return useDeepEffect(()=>{const U=setTimeout(()=>{B(C)},E);return()=>{clearTimeout(U)}},[C,E]),I}var baseKeys=_baseKeys,getTag=_getTag,isArguments$1=isArguments_1,isArray$a=isArray_1,isArrayLike$2=isArrayLike_1,isBuffer$1=isBufferExports,isPrototype=_isPrototype,isTypedArray=isTypedArray_1,mapTag="[object Map]",setTag="[object Set]",objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty;function isEmpty(C){if(C==null)return!0;if(isArrayLike$2(C)&&(isArray$a(C)||typeof C=="string"||typeof C.splice=="function"||isBuffer$1(C)||isTypedArray(C)||isArguments$1(C)))return!C.length;var E=getTag(C);if(E==mapTag||E==setTag)return!C.size;if(isPrototype(C))return!baseKeys(C).length;for(var I in C)if(hasOwnProperty.call(C,I))return!1;return!0}var isEmpty_1=isEmpty;const isEmpty$1=getDefaultExportFromCjs(isEmpty_1);var OverlayTypes=(C=>(C.NONE="none",C.NORMAL="normal",C.LENSFLARE="lensflare",C.FILMSTRIP="filmstrip",C.GRUNGE="grunge",C.BRICKS="bricks",C))(OverlayTypes||{});const overlays={normal:{src:"https://eyecastvideoeditorfiles.s3.ap-southeast-2.amazonaws.com/assets/overlays/eyecast_lensflare_overlay_50.jpg",blendmode:"ADD",alpha:0},lensflare:{src:"https://eyecastvideoeditorfiles.s3.ap-southeast-2.amazonaws.com/assets/overlays/eyecast_lensflare_overlay_50.jpg",blendmode:"ADD",alpha:1},filmstrip:{src:"https://eyecastvideoeditorfiles.s3.ap-southeast-2.amazonaws.com/assets/overlays/frames_filmstrip_5.png",blendmode:"ADD",alpha:1},grunge:{src:"https://eyecastvideoeditorfiles.s3.ap-southeast-2.amazonaws.com/assets/overlays/pixi_overlay_grunge_60.jpg",blendmode:"ADD",alpha:1},bricks:{src:"https://eyecastvideoeditorfiles.s3.ap-southeast-2.amazonaws.com/assets/overlays/bricks_Overlay_100.jpg",blendmode:"MULTIPLY",alpha:1}},PixiOverlayTilingSprite=C=>{const{overlay:E,width:I,height:B,x:U,y:V}=C,{src:X,blendmode:Y}=overlays[E]||overlays.normal;return jsxRuntimeExports.jsx(react.TilingSprite,{image:X,width:I,height:B,x:U,y:V,tilePosition:{x:0,y:0},tileScale:.5,alpha:.5,anchor:.5})};/*!
9
+ */var f$5=React,k$2=Symbol.for("react.element"),l$6=Symbol.for("react.fragment"),m$4=Object.prototype.hasOwnProperty,n$6=f$5.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p$4={key:!0,ref:!0,__self:!0,__source:!0};function q(C,E,I){var B,U={},V=null,X=null;I!==void 0&&(V=""+I),E.key!==void 0&&(V=""+E.key),E.ref!==void 0&&(X=E.ref);for(B in E)m$4.call(E,B)&&!p$4.hasOwnProperty(B)&&(U[B]=E[B]);if(C&&C.defaultProps)for(B in E=C.defaultProps,E)U[B]===void 0&&(U[B]=E[B]);return{$$typeof:k$2,type:C,key:V,ref:X,props:U,_owner:n$6.current}}reactJsxRuntime_production_min.Fragment=l$6,reactJsxRuntime_production_min.jsx=q,reactJsxRuntime_production_min.jsxs=q,jsxRuntime.exports=reactJsxRuntime_production_min;var jsxRuntimeExports=jsxRuntime.exports,Effects=(C=>(C.BlackAndWhite="BlackAndWhite",C.Sepia="Sepia",C.RetroVintage="RetroVintage",C.NightVision="NightVision",C.Normal="Normal",C.Vignette="Vignette",C.None="Normal",C))(Effects||{}),Waveforms=(C=>(C.NONE="none",C.EQUALIZER="equalizer",C.ROUNDBARS="roundbars",C.LED="led",C.RADIAL_SPECTRUM="radial_spectrum",C.LUMI_BARS="lumi_bars",C))(Waveforms||{});let targetElement;function getElement(){return targetElement=document.body,targetElement}function useCustomEventListener(C,E,I){let B;return React.useEffect(()=>{B=B||getElement();const U=V=>{const X=V.detail;E(X)};return B.addEventListener(C,U,!1),()=>{B==null||B.removeEventListener(C,U,!1)}},I),U=>{B=U}}function emitCustomEvent(C,E){const I=getElement(),B=new CustomEvent(C,{detail:E});I.dispatchEvent(B)}function newCustomEventEmitter(){let C;function E(I){C=I}return E.emit=function(I,B){const U=new CustomEvent(I,{bubbles:!0,detail:B});C==null||C.dispatchEvent(U)},E}const GsapPixieContext=React__namespace.createContext({}),Events={STOP:"GSAP_STOP",PAUSE:"GSAP_PAUSE",PLAY:"GSAP_PLAY",RESUME:"GSAP_RESUME",RESTART:"GSAP_RESTART",REPEAT:"GSAP_REPEAT",SEEK:"GSAP_SEEK",RESET:"GSAP_RESET",COMPLETE:"GSAP_COMPLETE",SEEK_START:"GSAP_SEEK_START",SEEK_END:"GSAP_SEEK_END",SCRUBBER_SEEK:"GSAP_SCRUBBER_SEEK",SCRUBBER_PROGRESS_UPDATE:"GSAP_SCRUBBER_PROGRESS_UPDATE",SCRUBBER_PLAY:"GSAP_SCRUBBER_PLAY",SCRUBBER_PAUSE:"GSAP_SCRUBBER_PAUSE",SCRUBBER_CLICKED:"GSAP_SCRUBBER_CLICKED",TRANSFORMER_DRAG_START:"TRANSFORMER_DRAG_START",TRANSFORMER_DRAG_END:"TRANSFORMER_DRAG_END",REVERSE_MODE_START:"REVERSE_MODE_START",REVERSE_MODE_END:"REVERSE_MODE_END",FONTS_LOADED:"FONTS_LOADED"},GsapPixieContextProvider=({children:C})=>{const[E,I]=React.useState(0),B=React.useRef(),U=React.useRef(),V=React.useRef(0),X=React.useRef(!1),Y=React.useRef(!1),[K,J]=React.useState(!1);React.useLayoutEffect(()=>(U.current=gsap$2.context(()=>{B.current&&B.current.progress(0).kill(),B.current&&B.current.clear(),B.current&&gsap$2.killTweensOf(B.current),B.current=gsap$2.timeline({paused:!0,defaults:{duration:0}})}),()=>{B.current&&B.current.revert(),U.current.revert()}),[]);const xe=React.useCallback(()=>{if(B.current){let Ie=B.current.time();Ie<V.current?X.current=!0:X.current=!1,V.current=Ie}},[]);React.useEffect(()=>{if(B.current){const Pe=B.current;Pe.eventCallback("onStart",function(){}).eventCallback("onInterrupt",function(){Pe.pause(),xe()}).eventCallback("onUpdate",function(){xe()}).eventCallback("onRepeat",function(){console.log("onrepeat",Pe.progress())}).eventCallback("onReverseComplete",function(){console.log("onReverseComplete",Pe.progress())}).eventCallback("onComplete",function(){Pe.seek(0),Pe.pause(),emitCustomEvent(Events.COMPLETE,{uniqueId:"timeline"}),console.log("Emitted events"),xe()})}},[]);const Z=React.useCallback(()=>{B.current&&B.current.revert()},[]),_e=React.useCallback(()=>{B.current&&B.current.restart()},[]),Se=React.useCallback(()=>{if(B.current){const Pe=B.current;Pe.repeat(1),Pe.restart()}},[]),Ee=React.useCallback(Pe=>{B.current&&B.current.seek(Pe)},[]),Ae=React.useCallback(()=>{B.current&&B.current.seek(4)},[]),Re=React.useCallback(()=>{const Pe=B.current;return Pe?Pe.totalDuration():0},[]),Te=()=>{B.current&&(B.current.pause(),emitCustomEvent(Events.PAUSE))},we=()=>{B.current&&(B.current.resume(),emitCustomEvent(Events.RESUME))};return useCustomEventListener(Events.SEEK_START,()=>{Y.current=!0}),useCustomEventListener(Events.SCRUBBER_PLAY,()=>{we()}),useCustomEventListener(Events.SCRUBBER_PAUSE,()=>{Te()}),useCustomEventListener(Events.SCRUBBER_SEEK,Pe=>{Ee(Pe)}),useCustomEventListener(Events.SEEK_END,()=>{Y.current=!1}),useCustomEventListener(Events.REVERSE_MODE_START,()=>{X.current=!0}),useCustomEventListener(Events.REVERSE_MODE_END,()=>{X.current=!1}),useCustomEventListener(Events.SCRUBBER_PROGRESS_UPDATE,Pe=>{}),jsxRuntimeExports.jsx(GsapPixieContext.Provider,{value:{gsapCtx:U,tl:B,handlePlay:we,handlePause:Te,handleReset:Z,handleSeek:Ee,handleSeekTest:Ae,handleRestart:_e,handleRepeat:Se,playerTimeRef:V,getTimelineDuration:Re,totalDuration:E,setTotalDuration:I,reverseModeRef:X,dragModeRef:Y,isRemotion:K,setIsRemotion:J},children:C})},PixiTransformer=({pixiTransformerRef:C,imageRef:E,isMounted:I,transformCommit:B,transformChange:U,mouseoverEvent:V,onDoubleClick:X,uniqueId:Y="",isText:K=!1})=>{const J=PIXI__namespace.utils.string2hex("#F3C409"),xe=PIXI__namespace.utils.string2hex("#F3C409"),Z=React__namespace.useRef({isDragging:!1}),_e=react.useApp(),Se=_e.screen.width,Ee=_e.screen.height,Ae=React__namespace.useMemo(()=>{const Le=Math.min(Se,Ee)/800;return 1.5*Le<6?6:1.5*Le},[Se,Ee]),Re=300,Te=React__namespace.useRef(0),we=React__namespace.useCallback(()=>{V&&!Z.current.isDragging&&V(!0)},[V]),Pe=React__namespace.useCallback(()=>{V&&!Z.current.isDragging&&V(!1)},[V]),Ie=React__namespace.useCallback(()=>{Z.current.isDragging=!0;const Le=new Date().getTime();Le-Te.current<Re&&X&&X(),Te.current=Le},[]),Me=React__namespace.useCallback(Le=>{Z.current.isDragging=!0,U&&U(Le),emitCustomEvent(Events.TRANSFORMER_DRAG_START,{uniqueId:"timeline"})},[U]),Oe=React__namespace.useCallback(()=>{if(E.current===null)return;const Le=E.current.x,$e=E.current.y,Ve=E.current.width,Xe=E.current.height,Ue=E.current.rotation,We=[E.current.scale.x,E.current.scale.y],ze=We[0]<0?-1:1,He=We[1]<0?-1:1;B&&(B({uniqueId:Y,transformation:{x:Math.round(Le),y:Math.round($e),width:Math.round(Math.max(5,Ve)),height:Math.round(Math.max(5,Xe)),rotation:Ue,scale:K?We:[ze,He]}}),emitCustomEvent(Events.TRANSFORMER_DRAG_END,{uniqueId:"timeline"})),Z.current.isDragging=!1},[B]);return React__namespace.useEffect(()=>(C.current&&(C.current.on("mouseover",we),C.current.on("mouseout",Pe),C.current.on("mousedown",Ie)),()=>{C.current&&(C.current.off("mouseover",we),C.current.off("mouseout",Pe),C.current.off("mousedown",Ie))}),[]),jsxRuntimeExports.jsx(reacthubReactBindings.Transformer,{ref:C,group:I?[E.current]:[],rotateEnabled:!0,boxRotationEnabled:!0,centeredScaling:!0,boxScalingEnabled:!0,wireframeStyle:{thickness:Ae,color:xe},lockAspectRatio:!0,scaleEnabled:!0,handleStyle:{outlineColor:J,shape:"circle",radius:10},transformchange:Me,transformcommit:Oe})};var objectProto$c=Object.prototype;function isPrototype$2(C){var E=C&&C.constructor,I=typeof E=="function"&&E.prototype||objectProto$c;return C===I}var _isPrototype=isPrototype$2;function overArg$1(C,E){return function(I){return C(E(I))}}var _overArg=overArg$1,overArg=_overArg,nativeKeys$1=overArg(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype$1=_isPrototype,nativeKeys=_nativeKeys,objectProto$b=Object.prototype,hasOwnProperty$9=objectProto$b.hasOwnProperty;function baseKeys$2(C){if(!isPrototype$1(C))return nativeKeys(C);var E=[];for(var I in Object(C))hasOwnProperty$9.call(C,I)&&I!="constructor"&&E.push(I);return E}var _baseKeys=baseKeys$2,freeGlobal$1=typeof commonjsGlobal$1=="object"&&commonjsGlobal$1&&commonjsGlobal$1.Object===Object&&commonjsGlobal$1,_freeGlobal=freeGlobal$1,freeGlobal=_freeGlobal,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root$9=freeGlobal||freeSelf||Function("return this")(),_root=root$9,root$8=_root,Symbol$5=root$8.Symbol,_Symbol=Symbol$5,Symbol$4=_Symbol,objectProto$a=Object.prototype,hasOwnProperty$8=objectProto$a.hasOwnProperty,nativeObjectToString$1=objectProto$a.toString,symToStringTag$1=Symbol$4?Symbol$4.toStringTag:void 0;function getRawTag$1(C){var E=hasOwnProperty$8.call(C,symToStringTag$1),I=C[symToStringTag$1];try{C[symToStringTag$1]=void 0;var B=!0}catch{}var U=nativeObjectToString$1.call(C);return B&&(E?C[symToStringTag$1]=I:delete C[symToStringTag$1]),U}var _getRawTag=getRawTag$1,objectProto$9=Object.prototype,nativeObjectToString=objectProto$9.toString;function objectToString$2(C){return nativeObjectToString.call(C)}var _objectToString=objectToString$2,Symbol$3=_Symbol,getRawTag=_getRawTag,objectToString$1=_objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$3?Symbol$3.toStringTag:void 0;function baseGetTag$5(C){return C==null?C===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(C)?getRawTag(C):objectToString$1(C)}var _baseGetTag=baseGetTag$5;function isObject$5(C){var E=typeof C;return C!=null&&(E=="object"||E=="function")}var isObject_1=isObject$5,baseGetTag$4=_baseGetTag,isObject$4=isObject_1,asyncTag="[object AsyncFunction]",funcTag$1="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$2(C){if(!isObject$4(C))return!1;var E=baseGetTag$4(C);return E==funcTag$1||E==genTag||E==asyncTag||E==proxyTag}var isFunction_1=isFunction$2,root$7=_root,coreJsData$1=root$7["__core-js_shared__"],_coreJsData=coreJsData$1,coreJsData=_coreJsData,maskSrcKey=function(){var C=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return C?"Symbol(src)_1."+C:""}();function isMasked$1(C){return!!maskSrcKey&&maskSrcKey in C}var _isMasked=isMasked$1,funcProto$1=Function.prototype,funcToString$1=funcProto$1.toString;function toSource$2(C){if(C!=null){try{return funcToString$1.call(C)}catch{}try{return C+""}catch{}}return""}var _toSource=toSource$2,isFunction$1=isFunction_1,isMasked=_isMasked,isObject$3=isObject_1,toSource$1=_toSource,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto=Function.prototype,objectProto$8=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$7=objectProto$8.hasOwnProperty,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$7).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$1(C){if(!isObject$3(C)||isMasked(C))return!1;var E=isFunction$1(C)?reIsNative:reIsHostCtor;return E.test(toSource$1(C))}var _baseIsNative=baseIsNative$1;function getValue$1(C,E){return C==null?void 0:C[E]}var _getValue=getValue$1,baseIsNative=_baseIsNative,getValue=_getValue;function getNative$6(C,E){var I=getValue(C,E);return baseIsNative(I)?I:void 0}var _getNative=getNative$6,getNative$5=_getNative,root$6=_root,DataView$2=getNative$5(root$6,"DataView"),_DataView=DataView$2,getNative$4=_getNative,root$5=_root,Map$4=getNative$4(root$5,"Map"),_Map=Map$4,getNative$3=_getNative,root$4=_root,Promise$2=getNative$3(root$4,"Promise"),_Promise=Promise$2,getNative$2=_getNative,root$3=_root,Set$2=getNative$2(root$3,"Set"),_Set=Set$2,getNative$1=_getNative,root$2=_root,WeakMap$2=getNative$1(root$2,"WeakMap"),_WeakMap=WeakMap$2,DataView$1=_DataView,Map$3=_Map,Promise$1=_Promise,Set$1=_Set,WeakMap$1=_WeakMap,baseGetTag$3=_baseGetTag,toSource=_toSource,mapTag$3="[object Map]",objectTag$2="[object Object]",promiseTag="[object Promise]",setTag$3="[object Set]",weakMapTag$1="[object WeakMap]",dataViewTag$2="[object DataView]",dataViewCtorString=toSource(DataView$1),mapCtorString=toSource(Map$3),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap$1),getTag$2=baseGetTag$3;(DataView$1&&getTag$2(new DataView$1(new ArrayBuffer(1)))!=dataViewTag$2||Map$3&&getTag$2(new Map$3)!=mapTag$3||Promise$1&&getTag$2(Promise$1.resolve())!=promiseTag||Set$1&&getTag$2(new Set$1)!=setTag$3||WeakMap$1&&getTag$2(new WeakMap$1)!=weakMapTag$1)&&(getTag$2=function(C){var E=baseGetTag$3(C),I=E==objectTag$2?C.constructor:void 0,B=I?toSource(I):"";if(B)switch(B){case dataViewCtorString:return dataViewTag$2;case mapCtorString:return mapTag$3;case promiseCtorString:return promiseTag;case setCtorString:return setTag$3;case weakMapCtorString:return weakMapTag$1}return E});var _getTag=getTag$2;function isObjectLike$5(C){return C!=null&&typeof C=="object"}var isObjectLike_1=isObjectLike$5,baseGetTag$2=_baseGetTag,isObjectLike$4=isObjectLike_1,argsTag$2="[object Arguments]";function baseIsArguments$1(C){return isObjectLike$4(C)&&baseGetTag$2(C)==argsTag$2}var _baseIsArguments=baseIsArguments$1,baseIsArguments=_baseIsArguments,isObjectLike$3=isObjectLike_1,objectProto$7=Object.prototype,hasOwnProperty$6=objectProto$7.hasOwnProperty,propertyIsEnumerable$1=objectProto$7.propertyIsEnumerable,isArguments$3=baseIsArguments(function(){return arguments}())?baseIsArguments:function(C){return isObjectLike$3(C)&&hasOwnProperty$6.call(C,"callee")&&!propertyIsEnumerable$1.call(C,"callee")},isArguments_1=isArguments$3,isArray$e=Array.isArray,isArray_1=isArray$e,MAX_SAFE_INTEGER$1=9007199254740991;function isLength$3(C){return typeof C=="number"&&C>-1&&C%1==0&&C<=MAX_SAFE_INTEGER$1}var isLength_1=isLength$3,isFunction=isFunction_1,isLength$2=isLength_1;function isArrayLike$4(C){return C!=null&&isLength$2(C.length)&&!isFunction(C)}var isArrayLike_1=isArrayLike$4,isBuffer$4={exports:{}};function stubFalse(){return!1}var stubFalse_1=stubFalse;isBuffer$4.exports,function(C,E){var I=_root,B=stubFalse_1,U=E&&!E.nodeType&&E,V=U&&!0&&C&&!C.nodeType&&C,X=V&&V.exports===U,Y=X?I.Buffer:void 0,K=Y?Y.isBuffer:void 0,J=K||B;C.exports=J}(isBuffer$4,isBuffer$4.exports);var isBufferExports=isBuffer$4.exports,baseGetTag$1=_baseGetTag,isLength$1=isLength_1,isObjectLike$2=isObjectLike_1,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",funcTag="[object Function]",mapTag$2="[object Map]",numberTag$1="[object Number]",objectTag$1="[object Object]",regexpTag$1="[object RegExp]",setTag$2="[object Set]",stringTag$1="[object String]",weakMapTag="[object WeakMap]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0,typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag$1]=typedArrayTags[boolTag$1]=typedArrayTags[dataViewTag$1]=typedArrayTags[dateTag$1]=typedArrayTags[errorTag$1]=typedArrayTags[funcTag]=typedArrayTags[mapTag$2]=typedArrayTags[numberTag$1]=typedArrayTags[objectTag$1]=typedArrayTags[regexpTag$1]=typedArrayTags[setTag$2]=typedArrayTags[stringTag$1]=typedArrayTags[weakMapTag]=!1;function baseIsTypedArray$1(C){return isObjectLike$2(C)&&isLength$1(C.length)&&!!typedArrayTags[baseGetTag$1(C)]}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$1(C){return function(E){return C(E)}}var _baseUnary=baseUnary$1,_nodeUtil={exports:{}};_nodeUtil.exports,function(C,E){var I=_freeGlobal,B=E&&!E.nodeType&&E,U=B&&!0&&C&&!C.nodeType&&C,V=U&&U.exports===B,X=V&&I.process,Y=function(){try{var K=U&&U.require&&U.require("util").types;return K||X&&X.binding&&X.binding("util")}catch{}}();C.exports=Y}(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports,baseIsTypedArray=_baseIsTypedArray,baseUnary=_baseUnary,nodeUtil=_nodeUtilExports,nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray$3=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$3,baseKeys$1=_baseKeys,getTag$1=_getTag,isArguments$2=isArguments_1,isArray$d=isArray_1,isArrayLike$3=isArrayLike_1,isBuffer$3=isBufferExports,isPrototype=_isPrototype,isTypedArray$2=isTypedArray_1,mapTag$1="[object Map]",setTag$1="[object Set]",objectProto$6=Object.prototype,hasOwnProperty$5=objectProto$6.hasOwnProperty;function isEmpty(C){if(C==null)return!0;if(isArrayLike$3(C)&&(isArray$d(C)||typeof C=="string"||typeof C.splice=="function"||isBuffer$3(C)||isTypedArray$2(C)||isArguments$2(C)))return!C.length;var E=getTag$1(C);if(E==mapTag$1||E==setTag$1)return!C.size;if(isPrototype(C))return!baseKeys$1(C).length;for(var I in C)if(hasOwnProperty$5.call(C,I))return!1;return!0}var isEmpty_1=isEmpty;const isEmpty$1=getDefaultExportFromCjs(isEmpty_1);var OverlayTypes=(C=>(C.NONE="none",C.NORMAL="normal",C.LENSFLARE="lensflare",C.FILMSTRIP="filmstrip",C.GRUNGE="grunge",C.BRICKS="bricks",C))(OverlayTypes||{});const overlays={normal:{src:"https://eyecastvideoeditorfiles.s3.ap-southeast-2.amazonaws.com/assets/overlays/eyecast_lensflare_overlay_50.jpg",blendmode:"ADD",alpha:0},lensflare:{src:"https://eyecastvideoeditorfiles.s3.ap-southeast-2.amazonaws.com/assets/overlays/eyecast_lensflare_overlay_50.jpg",blendmode:"ADD",alpha:1},filmstrip:{src:"https://eyecastvideoeditorfiles.s3.ap-southeast-2.amazonaws.com/assets/overlays/frames_filmstrip_5.png",blendmode:"ADD",alpha:1},grunge:{src:"https://eyecastvideoeditorfiles.s3.ap-southeast-2.amazonaws.com/assets/overlays/pixi_overlay_grunge_60.jpg",blendmode:"ADD",alpha:1},bricks:{src:"https://eyecastvideoeditorfiles.s3.ap-southeast-2.amazonaws.com/assets/overlays/bricks_Overlay_100.jpg",blendmode:"MULTIPLY",alpha:1}},PixiOverlayTilingSprite=C=>{const{overlay:E,width:I,height:B,x:U,y:V}=C,{src:X,blendmode:Y}=overlays[E]||overlays.normal;return jsxRuntimeExports.jsx(react.TilingSprite,{image:X,width:I,height:B,x:U,y:V,tilePosition:{x:0,y:0},tileScale:.5,alpha:.5,anchor:.5})};/*!
10
10
  * paths 3.11.5
11
11
  * https://greensock.com
12
12
  *
@@ -14,7 +14,7 @@
14
14
  * Subject to the terms at https://greensock.com/standard-license or for
15
15
  * Club GreenSock members, the agreement issued with that membership.
16
16
  * @author: Jack Doyle, jack@greensock.com
17
- */var _svgPathExp=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig,_scientific=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/ig,_DEG2RAD$1=Math.PI/180,_sin=Math.sin,_cos=Math.cos,_abs=Math.abs,_sqrt=Math.sqrt,_isNumber=function(E){return typeof E=="number"},_roundingNum=1e5,_round$1=function(E){return Math.round(E*_roundingNum)/_roundingNum||0};function transformRawPath(C,E,I,B,U,V,X){for(var Y=C.length,K,J,xe,Z,_e;--Y>-1;)for(K=C[Y],J=K.length,xe=0;xe<J;xe+=2)Z=K[xe],_e=K[xe+1],K[xe]=Z*E+_e*B+V,K[xe+1]=Z*I+_e*U+X;return C._dirty=1,C}function arcToSegment(C,E,I,B,U,V,X,Y,K){if(!(C===Y&&E===K)){I=_abs(I),B=_abs(B);var J=U%360*_DEG2RAD$1,xe=_cos(J),Z=_sin(J),_e=Math.PI,Se=_e*2,Ee=(C-Y)/2,Ae=(E-K)/2,Re=xe*Ee+Z*Ae,Te=-Z*Ee+xe*Ae,we=Re*Re,Pe=Te*Te,Ie=we/(I*I)+Pe/(B*B);Ie>1&&(I=_sqrt(Ie)*I,B=_sqrt(Ie)*B);var Fe=I*I,Oe=B*B,Le=(Fe*Oe-Fe*Pe-Oe*we)/(Fe*Pe+Oe*we);Le<0&&(Le=0);var De=(V===X?-1:1)*_sqrt(Le),Ve=De*(I*Te/B),Xe=De*-(B*Re/I),Ue=(C+Y)/2,We=(E+K)/2,je=Ue+(xe*Ve-Z*Xe),ze=We+(Z*Ve+xe*Xe),He=(Re-Ve)/I,$e=(Te-Xe)/B,Ne=(-Re-Ve)/I,Me=(-Te-Xe)/B,ke=He*He+$e*$e,Ge=($e<0?-1:1)*Math.acos(He/_sqrt(ke)),Be=(He*Me-$e*Ne<0?-1:1)*Math.acos((He*Ne+$e*Me)/_sqrt(ke*(Ne*Ne+Me*Me)));isNaN(Be)&&(Be=_e),!X&&Be>0?Be-=Se:X&&Be<0&&(Be+=Se),Ge%=Se,Be%=Se;var qe=Math.ceil(_abs(Be)/(Se/4)),Ke=[],Ye=Be/qe,et=4/3*_sin(Ye/2)/(1+_cos(Ye/2)),Qe=xe*I,it=Z*I,nt=Z*-B,ot=xe*B,Ze;for(Ze=0;Ze<qe;Ze++)U=Ge+Ze*Ye,Re=_cos(U),Te=_sin(U),He=_cos(U+=Ye),$e=_sin(U),Ke.push(Re-et*Te,Te+et*Re,He+et*$e,$e-et*He,He,$e);for(Ze=0;Ze<Ke.length;Ze+=2)Re=Ke[Ze],Te=Ke[Ze+1],Ke[Ze]=Re*Qe+Te*nt+je,Ke[Ze+1]=Re*it+Te*ot+ze;return Ke[Ze-2]=Y,Ke[Ze-1]=K,Ke}}function stringToRawPath(C){var E=(C+"").replace(_scientific,function(Ve){var Xe=+Ve;return Xe<1e-4&&Xe>-1e-4?0:Xe}).match(_svgPathExp)||[],I=[],B=0,U=0,V=2/3,X=E.length,Y=0,K="ERROR: malformed path: "+C,J,xe,Z,_e,Se,Ee,Ae,Re,Te,we,Pe,Ie,Fe,Oe,Le,De=function(Xe,Ue,We,je){we=(We-Xe)/3,Pe=(je-Ue)/3,Ae.push(Xe+we,Ue+Pe,We-we,je-Pe,We,je)};if(!C||!isNaN(E[0])||isNaN(E[1]))return console.log(K),I;for(J=0;J<X;J++)if(Fe=Se,isNaN(E[J])?(Se=E[J].toUpperCase(),Ee=Se!==E[J]):J--,Z=+E[J+1],_e=+E[J+2],Ee&&(Z+=B,_e+=U),J||(Re=Z,Te=_e),Se==="M")Ae&&(Ae.length<8?I.length-=1:Y+=Ae.length),B=Re=Z,U=Te=_e,Ae=[Z,_e],I.push(Ae),J+=2,Se="L";else if(Se==="C")Ae||(Ae=[0,0]),Ee||(B=U=0),Ae.push(Z,_e,B+E[J+3]*1,U+E[J+4]*1,B+=E[J+5]*1,U+=E[J+6]*1),J+=6;else if(Se==="S")we=B,Pe=U,(Fe==="C"||Fe==="S")&&(we+=B-Ae[Ae.length-4],Pe+=U-Ae[Ae.length-3]),Ee||(B=U=0),Ae.push(we,Pe,Z,_e,B+=E[J+3]*1,U+=E[J+4]*1),J+=4;else if(Se==="Q")we=B+(Z-B)*V,Pe=U+(_e-U)*V,Ee||(B=U=0),B+=E[J+3]*1,U+=E[J+4]*1,Ae.push(we,Pe,B+(Z-B)*V,U+(_e-U)*V,B,U),J+=4;else if(Se==="T")we=B-Ae[Ae.length-4],Pe=U-Ae[Ae.length-3],Ae.push(B+we,U+Pe,Z+(B+we*1.5-Z)*V,_e+(U+Pe*1.5-_e)*V,B=Z,U=_e),J+=2;else if(Se==="H")De(B,U,B=Z,U),J+=1;else if(Se==="V")De(B,U,B,U=Z+(Ee?U-B:0)),J+=1;else if(Se==="L"||Se==="Z")Se==="Z"&&(Z=Re,_e=Te,Ae.closed=!0),(Se==="L"||_abs(B-Z)>.5||_abs(U-_e)>.5)&&(De(B,U,Z,_e),Se==="L"&&(J+=2)),B=Z,U=_e;else if(Se==="A"){if(Oe=E[J+4],Le=E[J+5],we=E[J+6],Pe=E[J+7],xe=7,Oe.length>1&&(Oe.length<3?(Pe=we,we=Le,xe--):(Pe=Le,we=Oe.substr(2),xe-=2),Le=Oe.charAt(1),Oe=Oe.charAt(0)),Ie=arcToSegment(B,U,+E[J+1],+E[J+2],+E[J+3],+Oe,+Le,(Ee?B:0)+we*1,(Ee?U:0)+Pe*1),J+=xe,Ie)for(xe=0;xe<Ie.length;xe++)Ae.push(Ie[xe]);B=Ae[Ae.length-2],U=Ae[Ae.length-1]}else console.log(K);return J=Ae.length,J<6?(I.pop(),J=0):Ae[0]===Ae[J-2]&&Ae[1]===Ae[J-1]&&(Ae.closed=!0),I.totalPoints=Y+J,I}function rawPathToString(C){_isNumber(C[0])&&(C=[C]);var E="",I=C.length,B,U,V,X;for(U=0;U<I;U++){for(X=C[U],E+="M"+_round$1(X[0])+","+_round$1(X[1])+" C",B=X.length,V=2;V<B;V++)E+=_round$1(X[V++])+","+_round$1(X[V++])+" "+_round$1(X[V++])+","+_round$1(X[V++])+" "+_round$1(X[V++])+","+_round$1(X[V])+" ";X.closed&&(E+="z")}return E}/*!
17
+ */var _svgPathExp=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig,_scientific=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/ig,_DEG2RAD$1=Math.PI/180,_sin=Math.sin,_cos=Math.cos,_abs=Math.abs,_sqrt=Math.sqrt,_isNumber=function(E){return typeof E=="number"},_roundingNum=1e5,_round$1=function(E){return Math.round(E*_roundingNum)/_roundingNum||0};function transformRawPath(C,E,I,B,U,V,X){for(var Y=C.length,K,J,xe,Z,_e;--Y>-1;)for(K=C[Y],J=K.length,xe=0;xe<J;xe+=2)Z=K[xe],_e=K[xe+1],K[xe]=Z*E+_e*B+V,K[xe+1]=Z*I+_e*U+X;return C._dirty=1,C}function arcToSegment(C,E,I,B,U,V,X,Y,K){if(!(C===Y&&E===K)){I=_abs(I),B=_abs(B);var J=U%360*_DEG2RAD$1,xe=_cos(J),Z=_sin(J),_e=Math.PI,Se=_e*2,Ee=(C-Y)/2,Ae=(E-K)/2,Re=xe*Ee+Z*Ae,Te=-Z*Ee+xe*Ae,we=Re*Re,Pe=Te*Te,Ie=we/(I*I)+Pe/(B*B);Ie>1&&(I=_sqrt(Ie)*I,B=_sqrt(Ie)*B);var Me=I*I,Oe=B*B,Le=(Me*Oe-Me*Pe-Oe*we)/(Me*Pe+Oe*we);Le<0&&(Le=0);var $e=(V===X?-1:1)*_sqrt(Le),Ve=$e*(I*Te/B),Xe=$e*-(B*Re/I),Ue=(C+Y)/2,We=(E+K)/2,ze=Ue+(xe*Ve-Z*Xe),He=We+(Z*Ve+xe*Xe),je=(Re-Ve)/I,Ne=(Te-Xe)/B,De=(-Re-Ve)/I,Fe=(-Te-Xe)/B,ke=je*je+Ne*Ne,Ge=(Ne<0?-1:1)*Math.acos(je/_sqrt(ke)),Be=(je*Fe-Ne*De<0?-1:1)*Math.acos((je*De+Ne*Fe)/_sqrt(ke*(De*De+Fe*Fe)));isNaN(Be)&&(Be=_e),!X&&Be>0?Be-=Se:X&&Be<0&&(Be+=Se),Ge%=Se,Be%=Se;var qe=Math.ceil(_abs(Be)/(Se/4)),Ke=[],Ye=Be/qe,tt=4/3*_sin(Ye/2)/(1+_cos(Ye/2)),Ze=xe*I,it=Z*I,at=Z*-B,st=xe*B,Je;for(Je=0;Je<qe;Je++)U=Ge+Je*Ye,Re=_cos(U),Te=_sin(U),je=_cos(U+=Ye),Ne=_sin(U),Ke.push(Re-tt*Te,Te+tt*Re,je+tt*Ne,Ne-tt*je,je,Ne);for(Je=0;Je<Ke.length;Je+=2)Re=Ke[Je],Te=Ke[Je+1],Ke[Je]=Re*Ze+Te*at+ze,Ke[Je+1]=Re*it+Te*st+He;return Ke[Je-2]=Y,Ke[Je-1]=K,Ke}}function stringToRawPath(C){var E=(C+"").replace(_scientific,function(Ve){var Xe=+Ve;return Xe<1e-4&&Xe>-1e-4?0:Xe}).match(_svgPathExp)||[],I=[],B=0,U=0,V=2/3,X=E.length,Y=0,K="ERROR: malformed path: "+C,J,xe,Z,_e,Se,Ee,Ae,Re,Te,we,Pe,Ie,Me,Oe,Le,$e=function(Xe,Ue,We,ze){we=(We-Xe)/3,Pe=(ze-Ue)/3,Ae.push(Xe+we,Ue+Pe,We-we,ze-Pe,We,ze)};if(!C||!isNaN(E[0])||isNaN(E[1]))return console.log(K),I;for(J=0;J<X;J++)if(Me=Se,isNaN(E[J])?(Se=E[J].toUpperCase(),Ee=Se!==E[J]):J--,Z=+E[J+1],_e=+E[J+2],Ee&&(Z+=B,_e+=U),J||(Re=Z,Te=_e),Se==="M")Ae&&(Ae.length<8?I.length-=1:Y+=Ae.length),B=Re=Z,U=Te=_e,Ae=[Z,_e],I.push(Ae),J+=2,Se="L";else if(Se==="C")Ae||(Ae=[0,0]),Ee||(B=U=0),Ae.push(Z,_e,B+E[J+3]*1,U+E[J+4]*1,B+=E[J+5]*1,U+=E[J+6]*1),J+=6;else if(Se==="S")we=B,Pe=U,(Me==="C"||Me==="S")&&(we+=B-Ae[Ae.length-4],Pe+=U-Ae[Ae.length-3]),Ee||(B=U=0),Ae.push(we,Pe,Z,_e,B+=E[J+3]*1,U+=E[J+4]*1),J+=4;else if(Se==="Q")we=B+(Z-B)*V,Pe=U+(_e-U)*V,Ee||(B=U=0),B+=E[J+3]*1,U+=E[J+4]*1,Ae.push(we,Pe,B+(Z-B)*V,U+(_e-U)*V,B,U),J+=4;else if(Se==="T")we=B-Ae[Ae.length-4],Pe=U-Ae[Ae.length-3],Ae.push(B+we,U+Pe,Z+(B+we*1.5-Z)*V,_e+(U+Pe*1.5-_e)*V,B=Z,U=_e),J+=2;else if(Se==="H")$e(B,U,B=Z,U),J+=1;else if(Se==="V")$e(B,U,B,U=Z+(Ee?U-B:0)),J+=1;else if(Se==="L"||Se==="Z")Se==="Z"&&(Z=Re,_e=Te,Ae.closed=!0),(Se==="L"||_abs(B-Z)>.5||_abs(U-_e)>.5)&&($e(B,U,Z,_e),Se==="L"&&(J+=2)),B=Z,U=_e;else if(Se==="A"){if(Oe=E[J+4],Le=E[J+5],we=E[J+6],Pe=E[J+7],xe=7,Oe.length>1&&(Oe.length<3?(Pe=we,we=Le,xe--):(Pe=Le,we=Oe.substr(2),xe-=2),Le=Oe.charAt(1),Oe=Oe.charAt(0)),Ie=arcToSegment(B,U,+E[J+1],+E[J+2],+E[J+3],+Oe,+Le,(Ee?B:0)+we*1,(Ee?U:0)+Pe*1),J+=xe,Ie)for(xe=0;xe<Ie.length;xe++)Ae.push(Ie[xe]);B=Ae[Ae.length-2],U=Ae[Ae.length-1]}else console.log(K);return J=Ae.length,J<6?(I.pop(),J=0):Ae[0]===Ae[J-2]&&Ae[1]===Ae[J-1]&&(Ae.closed=!0),I.totalPoints=Y+J,I}function rawPathToString(C){_isNumber(C[0])&&(C=[C]);var E="",I=C.length,B,U,V,X;for(U=0;U<I;U++){for(X=C[U],E+="M"+_round$1(X[0])+","+_round$1(X[1])+" C",B=X.length,V=2;V<B;V++)E+=_round$1(X[V++])+","+_round$1(X[V++])+" "+_round$1(X[V++])+","+_round$1(X[V++])+" "+_round$1(X[V++])+","+_round$1(X[V])+" ";X.closed&&(E+="z")}return E}/*!
18
18
  * CustomEase 3.11.5
19
19
  * https://greensock.com
20
20
  *
@@ -22,7 +22,7 @@
22
22
  * Subject to the terms at https://greensock.com/standard-license or for
23
23
  * Club GreenSock members, the agreement issued with that membership.
24
24
  * @author: Jack Doyle, jack@greensock.com
25
- */var gsap$1,_coreInitted,_getGSAP$1=function(){return gsap$1||typeof window<"u"&&(gsap$1=window.gsap)&&gsap$1.registerPlugin&&gsap$1},_initCore$1=function(){gsap$1=_getGSAP$1(),gsap$1?(gsap$1.registerEase("_CE",CustomEase.create),_coreInitted=1):console.warn("Please gsap.registerPlugin(CustomEase)")},_bigNum=1e20,_round=function(E){return~~(E*1e3+(E<0?-.5:.5))/1e3},_numExp=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,_needsParsingExp=/[cLlsSaAhHvVtTqQ]/g,_findMinimum=function(E){var I=E.length,B=_bigNum,U;for(U=1;U<I;U+=6)+E[U]<B&&(B=+E[U]);return B},_normalize=function(E,I,B){!B&&B!==0&&(B=Math.max(+E[E.length-1],+E[1]));var U=+E[0]*-1,V=-B,X=E.length,Y=1/(+E[X-2]+U),K=-I||(Math.abs(+E[X-1]-+E[1])<.01*(+E[X-2]-+E[0])?_findMinimum(E)+V:+E[X-1]+V),J;for(K?K=1/K:K=-Y,J=0;J<X;J+=2)E[J]=(+E[J]+U)*Y,E[J+1]=(+E[J+1]+V)*K},_bezierToPoints=function C(E,I,B,U,V,X,Y,K,J,xe,Z){var _e=(E+B)/2,Se=(I+U)/2,Ee=(B+V)/2,Ae=(U+X)/2,Re=(V+Y)/2,Te=(X+K)/2,we=(_e+Ee)/2,Pe=(Se+Ae)/2,Ie=(Ee+Re)/2,Fe=(Ae+Te)/2,Oe=(we+Ie)/2,Le=(Pe+Fe)/2,De=Y-E,Ve=K-I,Xe=Math.abs((B-Y)*Ve-(U-K)*De),Ue=Math.abs((V-Y)*Ve-(X-K)*De),We;return xe||(xe=[{x:E,y:I},{x:Y,y:K}],Z=1),xe.splice(Z||xe.length-1,0,{x:Oe,y:Le}),(Xe+Ue)*(Xe+Ue)>J*(De*De+Ve*Ve)&&(We=xe.length,C(E,I,_e,Se,we,Pe,Oe,Le,J,xe,Z),C(Oe,Le,Ie,Fe,Re,Te,Y,K,J,xe,Z+1+(xe.length-We))),xe},CustomEase=function(){function C(I,B,U){_coreInitted||_initCore$1(),this.id=I,this.setData(B,U)}var E=C.prototype;return E.setData=function(B,U){U=U||{},B=B||"0,0,1,1";var V=B.match(_numExp),X=1,Y=[],K=[],J=U.precision||1,xe=J<=1,Z,_e,Se,Ee,Ae,Re,Te,we,Pe;if(this.data=B,(_needsParsingExp.test(B)||~B.indexOf("M")&&B.indexOf("C")<0)&&(V=stringToRawPath(B)[0]),Z=V.length,Z===4)V.unshift(0,0),V.push(1,1),Z=8;else if((Z-2)%6)throw"Invalid CustomEase";for((+V[0]!=0||+V[Z-2]!=1)&&_normalize(V,U.height,U.originY),this.segment=V,Ee=2;Ee<Z;Ee+=6)_e={x:+V[Ee-2],y:+V[Ee-1]},Se={x:+V[Ee+4],y:+V[Ee+5]},Y.push(_e,Se),_bezierToPoints(_e.x,_e.y,+V[Ee],+V[Ee+1],+V[Ee+2],+V[Ee+3],Se.x,Se.y,1/(J*2e5),Y,Y.length-1);for(Z=Y.length,Ee=0;Ee<Z;Ee++)Te=Y[Ee],we=Y[Ee-1]||Te,(Te.x>we.x||we.y!==Te.y&&we.x===Te.x||Te===we)&&Te.x<=1?(we.cx=Te.x-we.x,we.cy=Te.y-we.y,we.n=Te,we.nx=Te.x,xe&&Ee>1&&Math.abs(we.cy/we.cx-Y[Ee-2].cy/Y[Ee-2].cx)>2&&(xe=0),we.cx<X&&(we.cx?X=we.cx:(we.cx=.001,Ee===Z-1&&(we.x-=.001,X=Math.min(X,.001),xe=0)))):(Y.splice(Ee--,1),Z--);if(Z=1/X+1|0,Ae=1/Z,Re=0,Te=Y[0],xe){for(Ee=0;Ee<Z;Ee++)Pe=Ee*Ae,Te.nx<Pe&&(Te=Y[++Re]),_e=Te.y+(Pe-Te.x)/Te.cx*Te.cy,K[Ee]={x:Pe,cx:Ae,y:_e,cy:0,nx:9},Ee&&(K[Ee-1].cy=_e-K[Ee-1].y);K[Z-1].cy=Y[Y.length-1].y-_e}else{for(Ee=0;Ee<Z;Ee++)Te.nx<Ee*Ae&&(Te=Y[++Re]),K[Ee]=Te;Re<Y.length-1&&(K[Ee-1]=Y[Y.length-2])}return this.ease=function(Ie){var Fe=K[Ie*Z|0]||K[Z-1];return Fe.nx<Ie&&(Fe=Fe.n),Fe.y+(Ie-Fe.x)/Fe.cx*Fe.cy},this.ease.custom=this,this.id&&gsap$1&&gsap$1.registerEase(this.id,this.ease),this},E.getSVGData=function(B){return C.getSVGData(this,B)},C.create=function(B,U,V){return new C(B,U,V).ease},C.register=function(B){gsap$1=B,_initCore$1()},C.get=function(B){return gsap$1.parseEase(B)},C.getSVGData=function(B,U){U=U||{};var V=U.width||100,X=U.height||100,Y=U.x||0,K=(U.y||0)+X,J=gsap$1.utils.toArray(U.path)[0],xe,Z,_e,Se,Ee,Ae,Re,Te,we,Pe;if(U.invert&&(X=-X,K=0),typeof B=="string"&&(B=gsap$1.parseEase(B)),B.custom&&(B=B.custom),B instanceof C)xe=rawPathToString(transformRawPath([B.segment],V,0,0,-X,Y,K));else{for(xe=[Y,K],Re=Math.max(5,(U.precision||1)*200),Se=1/Re,Re+=2,Te=5/Re,we=_round(Y+Se*V),Pe=_round(K+B(Se)*-X),Z=(Pe-K)/(we-Y),_e=2;_e<Re;_e++)Ee=_round(Y+_e*Se*V),Ae=_round(K+B(_e*Se)*-X),(Math.abs((Ae-Pe)/(Ee-we)-Z)>Te||_e===Re-1)&&(xe.push(we,Pe),Z=(Ae-Pe)/(Ee-we)),we=Ee,Pe=Ae;xe="M"+xe.join(",")}return J&&J.setAttribute("d",xe),xe},C}();_getGSAP$1()&&gsap$1.registerPlugin(CustomEase),CustomEase.version="3.11.5";/*!
25
+ */var gsap$1,_coreInitted,_getGSAP$1=function(){return gsap$1||typeof window<"u"&&(gsap$1=window.gsap)&&gsap$1.registerPlugin&&gsap$1},_initCore$1=function(){gsap$1=_getGSAP$1(),gsap$1?(gsap$1.registerEase("_CE",CustomEase.create),_coreInitted=1):console.warn("Please gsap.registerPlugin(CustomEase)")},_bigNum=1e20,_round=function(E){return~~(E*1e3+(E<0?-.5:.5))/1e3},_numExp=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,_needsParsingExp=/[cLlsSaAhHvVtTqQ]/g,_findMinimum=function(E){var I=E.length,B=_bigNum,U;for(U=1;U<I;U+=6)+E[U]<B&&(B=+E[U]);return B},_normalize=function(E,I,B){!B&&B!==0&&(B=Math.max(+E[E.length-1],+E[1]));var U=+E[0]*-1,V=-B,X=E.length,Y=1/(+E[X-2]+U),K=-I||(Math.abs(+E[X-1]-+E[1])<.01*(+E[X-2]-+E[0])?_findMinimum(E)+V:+E[X-1]+V),J;for(K?K=1/K:K=-Y,J=0;J<X;J+=2)E[J]=(+E[J]+U)*Y,E[J+1]=(+E[J+1]+V)*K},_bezierToPoints=function C(E,I,B,U,V,X,Y,K,J,xe,Z){var _e=(E+B)/2,Se=(I+U)/2,Ee=(B+V)/2,Ae=(U+X)/2,Re=(V+Y)/2,Te=(X+K)/2,we=(_e+Ee)/2,Pe=(Se+Ae)/2,Ie=(Ee+Re)/2,Me=(Ae+Te)/2,Oe=(we+Ie)/2,Le=(Pe+Me)/2,$e=Y-E,Ve=K-I,Xe=Math.abs((B-Y)*Ve-(U-K)*$e),Ue=Math.abs((V-Y)*Ve-(X-K)*$e),We;return xe||(xe=[{x:E,y:I},{x:Y,y:K}],Z=1),xe.splice(Z||xe.length-1,0,{x:Oe,y:Le}),(Xe+Ue)*(Xe+Ue)>J*($e*$e+Ve*Ve)&&(We=xe.length,C(E,I,_e,Se,we,Pe,Oe,Le,J,xe,Z),C(Oe,Le,Ie,Me,Re,Te,Y,K,J,xe,Z+1+(xe.length-We))),xe},CustomEase=function(){function C(I,B,U){_coreInitted||_initCore$1(),this.id=I,this.setData(B,U)}var E=C.prototype;return E.setData=function(B,U){U=U||{},B=B||"0,0,1,1";var V=B.match(_numExp),X=1,Y=[],K=[],J=U.precision||1,xe=J<=1,Z,_e,Se,Ee,Ae,Re,Te,we,Pe;if(this.data=B,(_needsParsingExp.test(B)||~B.indexOf("M")&&B.indexOf("C")<0)&&(V=stringToRawPath(B)[0]),Z=V.length,Z===4)V.unshift(0,0),V.push(1,1),Z=8;else if((Z-2)%6)throw"Invalid CustomEase";for((+V[0]!=0||+V[Z-2]!=1)&&_normalize(V,U.height,U.originY),this.segment=V,Ee=2;Ee<Z;Ee+=6)_e={x:+V[Ee-2],y:+V[Ee-1]},Se={x:+V[Ee+4],y:+V[Ee+5]},Y.push(_e,Se),_bezierToPoints(_e.x,_e.y,+V[Ee],+V[Ee+1],+V[Ee+2],+V[Ee+3],Se.x,Se.y,1/(J*2e5),Y,Y.length-1);for(Z=Y.length,Ee=0;Ee<Z;Ee++)Te=Y[Ee],we=Y[Ee-1]||Te,(Te.x>we.x||we.y!==Te.y&&we.x===Te.x||Te===we)&&Te.x<=1?(we.cx=Te.x-we.x,we.cy=Te.y-we.y,we.n=Te,we.nx=Te.x,xe&&Ee>1&&Math.abs(we.cy/we.cx-Y[Ee-2].cy/Y[Ee-2].cx)>2&&(xe=0),we.cx<X&&(we.cx?X=we.cx:(we.cx=.001,Ee===Z-1&&(we.x-=.001,X=Math.min(X,.001),xe=0)))):(Y.splice(Ee--,1),Z--);if(Z=1/X+1|0,Ae=1/Z,Re=0,Te=Y[0],xe){for(Ee=0;Ee<Z;Ee++)Pe=Ee*Ae,Te.nx<Pe&&(Te=Y[++Re]),_e=Te.y+(Pe-Te.x)/Te.cx*Te.cy,K[Ee]={x:Pe,cx:Ae,y:_e,cy:0,nx:9},Ee&&(K[Ee-1].cy=_e-K[Ee-1].y);K[Z-1].cy=Y[Y.length-1].y-_e}else{for(Ee=0;Ee<Z;Ee++)Te.nx<Ee*Ae&&(Te=Y[++Re]),K[Ee]=Te;Re<Y.length-1&&(K[Ee-1]=Y[Y.length-2])}return this.ease=function(Ie){var Me=K[Ie*Z|0]||K[Z-1];return Me.nx<Ie&&(Me=Me.n),Me.y+(Ie-Me.x)/Me.cx*Me.cy},this.ease.custom=this,this.id&&gsap$1&&gsap$1.registerEase(this.id,this.ease),this},E.getSVGData=function(B){return C.getSVGData(this,B)},C.create=function(B,U,V){return new C(B,U,V).ease},C.register=function(B){gsap$1=B,_initCore$1()},C.get=function(B){return gsap$1.parseEase(B)},C.getSVGData=function(B,U){U=U||{};var V=U.width||100,X=U.height||100,Y=U.x||0,K=(U.y||0)+X,J=gsap$1.utils.toArray(U.path)[0],xe,Z,_e,Se,Ee,Ae,Re,Te,we,Pe;if(U.invert&&(X=-X,K=0),typeof B=="string"&&(B=gsap$1.parseEase(B)),B.custom&&(B=B.custom),B instanceof C)xe=rawPathToString(transformRawPath([B.segment],V,0,0,-X,Y,K));else{for(xe=[Y,K],Re=Math.max(5,(U.precision||1)*200),Se=1/Re,Re+=2,Te=5/Re,we=_round(Y+Se*V),Pe=_round(K+B(Se)*-X),Z=(Pe-K)/(we-Y),_e=2;_e<Re;_e++)Ee=_round(Y+_e*Se*V),Ae=_round(K+B(_e*Se)*-X),(Math.abs((Ae-Pe)/(Ee-we)-Z)>Te||_e===Re-1)&&(xe.push(we,Pe),Z=(Ae-Pe)/(Ee-we)),we=Ee,Pe=Ae;xe="M"+xe.join(",")}return J&&J.setAttribute("d",xe),xe},C}();_getGSAP$1()&&gsap$1.registerPlugin(CustomEase),CustomEase.version="3.11.5";/*!
26
26
  * PixiPlugin 3.11.5
27
27
  * https://greensock.com
28
28
  *
@@ -30,18 +30,18 @@
30
30
  * Subject to the terms at https://greensock.com/standard-license or for
31
31
  * Club GreenSock members, the agreement issued with that membership.
32
32
  * @author: Jack Doyle, jack@greensock.com
33
- */var gsap,_win,_splitColor,_PIXI,PropTween,_getSetter,_isV4,_windowExists=function(){return typeof window<"u"},_getGSAP=function(){return gsap||_windowExists()&&(gsap=window.gsap)&&gsap.registerPlugin&&gsap},_isFunction=function(E){return typeof E=="function"},_warn=function(E){return console.warn(E)},_idMatrix=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],_lumR=.212671,_lumG=.71516,_lumB=.072169,_applyMatrix=function(E,I){var B=[],U=0,V=0,X,Y;for(X=0;X<4;X++){for(Y=0;Y<5;Y++)V=Y===4?E[U+4]:0,B[U+Y]=E[U]*I[Y]+E[U+1]*I[Y+5]+E[U+2]*I[Y+10]+E[U+3]*I[Y+15]+V;U+=5}return B},_setSaturation=function(E,I){var B=1-I,U=B*_lumR,V=B*_lumG,X=B*_lumB;return _applyMatrix([U+I,V,X,0,0,U,V+I,X,0,0,U,V,X+I,0,0,0,0,0,1,0],E)},_colorize=function(E,I,B){var U=_splitColor(I),V=U[0]/255,X=U[1]/255,Y=U[2]/255,K=1-B;return _applyMatrix([K+B*V*_lumR,B*V*_lumG,B*V*_lumB,0,0,B*X*_lumR,K+B*X*_lumG,B*X*_lumB,0,0,B*Y*_lumR,B*Y*_lumG,K+B*Y*_lumB,0,0,0,0,0,1,0],E)},_setHue=function(E,I){I*=Math.PI/180;var B=Math.cos(I),U=Math.sin(I);return _applyMatrix([_lumR+B*(1-_lumR)+U*-_lumR,_lumG+B*-_lumG+U*-_lumG,_lumB+B*-_lumB+U*(1-_lumB),0,0,_lumR+B*-_lumR+U*.143,_lumG+B*(1-_lumG)+U*.14,_lumB+B*-_lumB+U*-.283,0,0,_lumR+B*-_lumR+U*-(1-_lumR),_lumG+B*-_lumG+U*_lumG,_lumB+B*(1-_lumB)+U*_lumB,0,0,0,0,0,1,0,0,0,0,0,1],E)},_setContrast=function(E,I){return _applyMatrix([I,0,0,0,.5*(1-I),0,I,0,0,.5*(1-I),0,0,I,0,.5*(1-I),0,0,0,1,0],E)},_getFilter=function(E,I){var B=_PIXI.filters[I],U=E.filters||[],V=U.length,X;for(B||_warn(I+" not found. PixiPlugin.registerPIXI(PIXI)");--V>-1;)if(U[V]instanceof B)return U[V];return X=new B,I==="BlurFilter"&&(X.blur=0),U.push(X),E.filters=U,X},_addColorMatrixFilterCacheTween=function(E,I,B,U){I.add(B,E,B[E],U[E]),I._props.push(E)},_applyBrightnessToMatrix=function(E,I){var B=new _PIXI.filters.ColorMatrixFilter;return B.matrix=I,B.brightness(E,!0),B.matrix},_copy=function(E){var I={},B;for(B in E)I[B]=E[B];return I},_CMFdefaults={contrast:1,saturation:1,colorizeAmount:0,colorize:"rgb(255,255,255)",hue:0,brightness:1},_parseColorMatrixFilter=function(E,I,B){var U=_getFilter(E,"ColorMatrixFilter"),V=E._gsColorMatrixFilter=E._gsColorMatrixFilter||_copy(_CMFdefaults),X=I.combineCMF&&!("colorMatrixFilter"in I&&!I.colorMatrixFilter),Y,K,J;for(J=U.matrix,I.resolution&&(U.resolution=I.resolution),I.matrix&&I.matrix.length===J.length?(K=I.matrix,V.contrast!==1&&_addColorMatrixFilterCacheTween("contrast",B,V,_CMFdefaults),V.hue&&_addColorMatrixFilterCacheTween("hue",B,V,_CMFdefaults),V.brightness!==1&&_addColorMatrixFilterCacheTween("brightness",B,V,_CMFdefaults),V.colorizeAmount&&(_addColorMatrixFilterCacheTween("colorize",B,V,_CMFdefaults),_addColorMatrixFilterCacheTween("colorizeAmount",B,V,_CMFdefaults)),V.saturation!==1&&_addColorMatrixFilterCacheTween("saturation",B,V,_CMFdefaults)):(K=_idMatrix.slice(),I.contrast!=null?(K=_setContrast(K,+I.contrast),_addColorMatrixFilterCacheTween("contrast",B,V,I)):V.contrast!==1&&(X?K=_setContrast(K,V.contrast):_addColorMatrixFilterCacheTween("contrast",B,V,_CMFdefaults)),I.hue!=null?(K=_setHue(K,+I.hue),_addColorMatrixFilterCacheTween("hue",B,V,I)):V.hue&&(X?K=_setHue(K,V.hue):_addColorMatrixFilterCacheTween("hue",B,V,_CMFdefaults)),I.brightness!=null?(K=_applyBrightnessToMatrix(+I.brightness,K),_addColorMatrixFilterCacheTween("brightness",B,V,I)):V.brightness!==1&&(X?K=_applyBrightnessToMatrix(V.brightness,K):_addColorMatrixFilterCacheTween("brightness",B,V,_CMFdefaults)),I.colorize!=null?(I.colorizeAmount="colorizeAmount"in I?+I.colorizeAmount:1,K=_colorize(K,I.colorize,I.colorizeAmount),_addColorMatrixFilterCacheTween("colorize",B,V,I),_addColorMatrixFilterCacheTween("colorizeAmount",B,V,I)):V.colorizeAmount&&(X?K=_colorize(K,V.colorize,V.colorizeAmount):(_addColorMatrixFilterCacheTween("colorize",B,V,_CMFdefaults),_addColorMatrixFilterCacheTween("colorizeAmount",B,V,_CMFdefaults))),I.saturation!=null?(K=_setSaturation(K,+I.saturation),_addColorMatrixFilterCacheTween("saturation",B,V,I)):V.saturation!==1&&(X?K=_setSaturation(K,V.saturation):_addColorMatrixFilterCacheTween("saturation",B,V,_CMFdefaults))),Y=K.length;--Y>-1;)K[Y]!==J[Y]&&B.add(J,Y,J[Y],K[Y],"colorMatrixFilter");B._props.push("colorMatrixFilter")},_renderColor=function(E,I){var B=I.t,U=I.p,V=I.color,X=I.set;X(B,U,V[0]<<16|V[1]<<8|V[2])},_renderDirtyCache=function(E,I){var B=I.g;B&&(B.dirty++,B.clearDirty++)},_renderAutoAlpha=function(E,I){I.t.visible=!!I.t.alpha},_addColorTween=function(E,I,B,U){var V=E[I],X=_splitColor(_isFunction(V)?E[I.indexOf("set")||!_isFunction(E["get"+I.substr(3)])?I:"get"+I.substr(3)]():V),Y=_splitColor(B);U._pt=new PropTween(U._pt,E,I,0,0,_renderColor,{t:E,p:I,color:X,set:_getSetter(E,I)}),U.add(X,0,X[0],Y[0]),U.add(X,1,X[1],Y[1]),U.add(X,2,X[2],Y[2])},_colorProps={tint:1,lineColor:1,fillColor:1},_xyContexts="position,scale,skew,pivot,anchor,tilePosition,tileScale".split(","),_contexts={x:"position",y:"position",tileX:"tilePosition",tileY:"tilePosition"},_colorMatrixFilterProps={colorMatrixFilter:1,saturation:1,contrast:1,hue:1,colorize:1,colorizeAmount:1,brightness:1,combineCMF:1},_DEG2RAD=Math.PI/180,_isString=function(E){return typeof E=="string"},_degreesToRadians=function(E){return _isString(E)&&E.charAt(1)==="="?E.substr(0,2)+parseFloat(E.substr(2))*_DEG2RAD:E*_DEG2RAD},_renderPropWithEnd=function(E,I){return I.set(I.t,I.p,E===1?I.e:Math.round((I.s+I.c*E)*1e5)/1e5,I)},_addRotationalPropTween=function(E,I,B,U,V,X){var Y=360*(X?_DEG2RAD:1),K=_isString(V),J=K&&V.charAt(1)==="="?+(V.charAt(0)+"1"):0,xe=parseFloat(J?V.substr(2):V)*(X?_DEG2RAD:1),Z=J?xe*J:xe-U,_e=U+Z,Se,Ee;return K&&(Se=V.split("_")[1],Se==="short"&&(Z%=Y,Z!==Z%(Y/2)&&(Z+=Z<0?Y:-Y)),Se==="cw"&&Z<0?Z=(Z+Y*1e10)%Y-~~(Z/Y)*Y:Se==="ccw"&&Z>0&&(Z=(Z-Y*1e10)%Y-~~(Z/Y)*Y)),E._pt=Ee=new PropTween(E._pt,I,B,U,Z,_renderPropWithEnd),Ee.e=_e,Ee},_initCore=function(){_windowExists()&&(_win=window,gsap=_getGSAP(),_PIXI=_PIXI||_win.PIXI,_isV4=_PIXI&&_PIXI.VERSION&&_PIXI.VERSION.charAt(0)==="4",_splitColor=function(I){return gsap.utils.splitColor((I+"").substr(0,2)==="0x"?"#"+I.substr(2):I)})},i$7,p$3;for(i$7=0;i$7<_xyContexts.length;i$7++)p$3=_xyContexts[i$7],_contexts[p$3+"X"]=p$3,_contexts[p$3+"Y"]=p$3;var PixiPlugin={version:"3.11.5",name:"pixi",register:function(E,I,B){gsap=E,PropTween=B,_getSetter=I.getSetter,_initCore()},registerPIXI:function(E){_PIXI=E},init:function(E,I,B,U,V){if(_PIXI||_initCore(),!_PIXI||!(E instanceof _PIXI.DisplayObject))return console.warn(E,"is not a DisplayObject or PIXI was not found. PixiPlugin.registerPIXI(PIXI);"),!1;var X,Y,K,J,xe,Z,_e,Se,Ee;for(Z in I){if(X=_contexts[Z],K=I[Z],X)Y=~Z.charAt(Z.length-1).toLowerCase().indexOf("x")?"x":"y",this.add(E[X],Y,E[X][Y],X==="skew"?_degreesToRadians(K):K,0,0,0,0,0,1);else if(Z==="scale"||Z==="anchor"||Z==="pivot"||Z==="tileScale")this.add(E[Z],"x",E[Z].x,K),this.add(E[Z],"y",E[Z].y,K);else if(Z==="rotation"||Z==="angle")_addRotationalPropTween(this,E,Z,E[Z],K,Z==="rotation");else if(_colorMatrixFilterProps[Z])J||(_parseColorMatrixFilter(E,I.colorMatrixFilter||I,this),J=!0);else if(Z==="blur"||Z==="blurX"||Z==="blurY"||Z==="blurPadding"){if(xe=_getFilter(E,"BlurFilter"),this.add(xe,Z,xe[Z],K),I.blurPadding!==0)for(_e=I.blurPadding||Math.max(xe[Z],K)*2,Se=E.filters.length;--Se>-1;)E.filters[Se].padding=Math.max(E.filters[Se].padding,_e)}else if(_colorProps[Z])if((Z==="lineColor"||Z==="fillColor")&&E instanceof _PIXI.Graphics)for(Ee=(E.geometry||E).graphicsData,this._pt=new PropTween(this._pt,E,Z,0,0,_renderDirtyCache,{g:E.geometry||E}),Se=Ee.length;--Se>-1;)_addColorTween(_isV4?Ee[Se]:Ee[Se][Z.substr(0,4)+"Style"],_isV4?Z:"color",K,this);else _addColorTween(E,Z,K,this);else Z==="autoAlpha"?(this._pt=new PropTween(this._pt,E,"visible",0,0,_renderAutoAlpha),this.add(E,"alpha",E.alpha,K),this._props.push("alpha","visible")):Z!=="resolution"&&this.add(E,Z,"get",K);this._props.push(Z)}}};_getGSAP()&&gsap.registerPlugin(PixiPlugin),gsap$2.registerPlugin(PixiPlugin),PixiPlugin.registerPIXI(PIXI__namespace),gsap$2.registerPlugin(CustomEase),CustomEase.create("springBounce","0.32, 1.06, 0.61, 0.93"),gsap$2.registerEffect({name:"PULSE",effect(C,E){return gsap$2.timeline().fromTo(C,{pixi:{scaleX:.9,scaleY:.9}},{pixi:{scaleX:1.2,scaleY:1.2},duration:.5,ease:"slow"}).to(C,{pixi:{scaleX:1,scaleY:1,...E},duration:.5})}}),gsap$2.registerEffect({name:"SHAKE",effect(C,E){return gsap$2.timeline().to(C,{duration:.1,pixi:{x:"+=5"}}).to(C,{duration:.1,pixi:{x:"-=10"}}).to(C,{duration:.1,pixi:{x:"+=10"}}).to(C,{duration:.1,pixi:{x:"-=10"}}).to(C,{duration:.1,pixi:{x:"+=5"}}).to(C,{pixi:{...E},duration:.5})}}),gsap$2.registerEffect({name:"SWING",effect(C,E){return gsap$2.timeline().to(C,{duration:.5,pixi:{rotation:1}}).to(C,{duration:.5,pixi:{rotation:-1.5}}).to(C,{pixi:{rotation:0,...E},duration:.5})}}),gsap$2.registerEffect({name:"JELLO",effect(C,E){return gsap$2.timeline().to(C,{duration:.3,pixi:{scaleX:.5,rotation:-1}}).to(C,{duration:.4,pixi:{scaleX:1.5,rotation:1}}).to(C,{duration:.3,pixi:{scaleX:1,rotation:0}}).to(C,{pixi:{rotation:0,...E},duration:.5})}}),gsap$2.registerEffect({name:"WOOBLE",effect(C,E){return gsap$2.timeline().to(C,{duration:.3,pixi:{scaleX:.5,x:E.x*-.5}}).to(C,{duration:.3,pixi:{scaleX:1.5,x:E.x*1.5}}).to(C,{duration:.3,pixi:{scaleX:.5,x:E.x*-.01}}).to(C,{duration:.3,pixi:{scaleX:1,x:E.x}}).to(C,{rotation:0,pixi:{...E,rotation:0},duration:.5})}}),gsap$2.registerEffect({name:"NONE",effect(C,E){return gsap$2.timeline().to(C,{duration:0})}}),gsap$2.registerEffect({name:"FLASH",effect(C,E){return gsap$2.timeline().to(C,{duration:.2,alpha:0}).to(C,{duration:.2,alpha:1}).to(C,{duration:.2,alpha:0}).to(C,{duration:.2,alpha:1}).to(C,{duration:.2,alpha:0}).to(C,{duration:.2,alpha:1,...E})}}),gsap$2.registerEffect({name:"BOUNCE_IN",effect(C,E){return gsap$2.timeline().fromTo(C,{pixi:{scaleX:1.5,scaleY:1.5}},{...E,pixi:{x:E==null?void 0:E.x,y:E==null?void 0:E.y,scaleX:1,scaleY:1},duration:2,ease:"bounce.out"})}}),gsap$2.registerEffect({name:"BOUNCE_IN_DOWN",effect(C,E){return gsap$2.timeline().from(C,{duration:2,ease:"bounce.out",immediateRender:!0,pixi:{...E,x:E==null?void 0:E.x,y:-2500,alpha:0}})}}),gsap$2.registerEffect({name:"BOUNCE_IN_LEFT",effect(C,E){return gsap$2.timeline().from(C,{ease:"bounce.out",duration:2,pixi:{...E,x:-1500,alpha:0}})}}),gsap$2.registerEffect({name:"BOUNCE_IN_RIGHT",effect(C,E){const I=Math.max(1e3,(E==null?void 0:E.maxX)+500);return gsap$2.timeline().from(C,{ease:"bounce.out",duration:2,pixi:{...E,x:I}})}}),gsap$2.registerEffect({name:"BOUNCE_IN_UP",effect(C,E){return gsap$2.timeline().from(C,{ease:"bounce.out",pixi:{...E,y:2e3},duration:2})}}),gsap$2.registerEffect({name:"BOUNCE_OUT",effect(C,E){return gsap$2.timeline().from(C,{...E,ease:"bounce.in",pixi:{y:2e3},duration:1.5})}}),gsap$2.registerEffect({name:"FADE_IN",effect(C){return gsap$2.timeline().fromTo(C,{alpha:0},{ease:"power4.in",alpha:1,duration:1})}}),gsap$2.registerEffect({name:"FADE_IN_DOWN",effect(C,E){return gsap$2.timeline().fromTo(C,{pixi:{y:-1500,alpha:0}},{duration:1,ease:"power4.in",pixi:{y:0,alpha:1,...E}})}}),gsap$2.registerEffect({name:"FADE_IN_LEFT",effect(C,E){return gsap$2.timeline().fromTo(C,{pixi:{alpha:0,x:-2e3}},{ease:"power4.in",pixi:{x:0,alpha:1,...E},duration:1})}}),gsap$2.registerEffect({name:"FADE_IN_RIGHT",effect(C,E){return gsap$2.fromTo(C,{pixi:{x:2e3,alpha:0}},{duration:1,ease:"power4.in",pixi:{x:0,alpha:1,...E}})}}),gsap$2.registerEffect({name:"FADE_IN_UP",effect(C,E){return gsap$2.fromTo(C,{pixi:{y:2e3,alpha:0}},{duration:.8,ease:"power4.in",pixi:{y:0,alpha:1,...E}})}}),gsap$2.registerEffect({name:"SPIN",effect(C){return gsap$2.to(C,{rotation:(E,I)=>gsap$2.utils.snap(360,Number(gsap$2.getProperty(I,"rotation"))+360)})}});function useGsapEffect(){return{updateEffect:React.useCallback((E,I,B)=>gsap$2.effects[I]&&E?gsap$2.effects[I](E,B):gsap$2.effects.NONE(E,B),[])}}var Animations=(C=>(C.NONE="NONE",C.FLASH="FLASH",C.PULSE="PULSE",C.SHAKE="SHAKE",C.SWING="SWING",C.JELLO="JELLO",C.WOOBLE="WOOBLE",C.FADE_IN="FADE_IN",C.FADE_OUT="FADE_OUT",C.FADE_IN_OUT="FADE_IN_OUT",C.SLIDE_IN_LEFT="SLIDE_IN_LEFT",C.SLIDE_IN_RIGHT="SLIDE_IN_RIGHT",C.SLIDE_IN_TOP="SLIDE_IN_TOP",C.SLIDE_IN_BOTTOM="SLIDE_IN_BOTTOM",C.SLIDE_OUT_LEFT="SLIDE_OUT_LEFT",C.SLIDE_OUT_RIGHT="SLIDE_OUT_RIGHT",C.SLIDE_OUT_TOP="SLIDE_OUT_TOP",C.SLIDE_OUT_BOTTOM="SLIDE_OUT_BOTTOM",C.ZOOM_IN="ZOOM_IN",C.ZOOM_OUT="ZOOM_OUT",C.ZOOM_IN_OUT="ZOOM_IN_OUT",C.BOUNCE_IN="BOUNCE_IN",C.BOUNCE_OUT="BOUNCE_OUT",C.BOUNCE_IN_OUT="BOUNCE_IN_OUT",C.BOUNCE_IN_DOWN="BOUNCE_IN_DOWN",C.BOUNCE_IN_LEFT="BOUNCE_IN_LEFT",C.BOUNCE_IN_RIGHT="BOUNCE_IN_RIGHT",C.BOUNCE_IN_UP="BOUNCE_IN_UP",C.BOUNCE_OUT_DOWN="BOUNCE_OUT_DOWN",C.BOUNCE_OUT_LEFT="BOUNCE_OUT_LEFT",C.BOUNCE_OUT_RIGHT="BOUNCE_OUT_RIGHT",C.BOUNCE_OUT_UP="BOUNCE_OUT_UP",C.FADE_IN_DOWN="FADE_IN_DOWN",C.FADE_IN_LEFT="FADE_IN_LEFT",C.FADE_IN_RIGHT="FADE_IN_RIGHT",C.FADE_IN_UP="FADE_IN_UP",C.FADE_OUT_DOWN="FADE_OUT_DOWN",C.FADE_OUT_LEFT="FADE_OUT_LEFT",C.FADE_OUT_RIGHT="FADE_OUT_RIGHT",C.FADE_OUT_UP="FADE_OUT_UP",C.ELASTIC_IN="ELASTIC_IN",C.ELASTIC_OUT="ELASTIC_OUT",C.ELASTIC_IN_OUT="ELASTIC_IN_OUT",C.BACK_IN="BACK_IN",C.BACK_OUT="BACK_OUT",C.BACK_IN_OUT="BACK_IN_OUT",C.CIRCULAR_IN="CIRCULAR_IN",C.CIRCULAR_OUT="CIRCULAR_OUT",C.CIRCULAR_IN_OUT="CIRCULAR_IN_OUT",C.EXPO_IN="EXPO_IN",C.EXPO_OUT="EXPO_OUT",C.EXPO_IN_OUT="EXPO_IN_OUT",C.SINE_IN="SINE_IN",C.SINE_OUT="SINE_OUT",C.SINE_IN_OUT="SINE_IN_OUT",C.BOUNCE="BOUNCE",C.ELASTIC="ELASTIC",C.BACK="BACK",C.CIRCULAR="CIRCULAR",C.EXPO="EXPO",C.SINE="SINE",C.SPIN="SPIN",C))(Animations||{});const CYAN=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],initalTransforms$1={x:0,y:0,width:0,height:0,anchor:.5,animation:Animations.NONE,maxX:0,maxY:0,scale:1,rotation:0,effect:Effects.Normal,overlay:OverlayTypes.NONE},AbstractContainer=React__namespace.forwardRef((C,E)=>{const[I,B]=React__namespace.useState(!1),[U,V]=React.useState(!1),[X,Y]=React.useState(!1),[K,J]=React.useState(),xe=useDebounce(K,300),Z=React.useRef(null),_e=React.useRef(null),Se=React.useRef(null),Ee=React.useRef(null),Ae=React.useRef(null),Re=React.useRef(null),{tl:Te}=React.useContext(GsapPixieContext),we=react.useApp(),Pe=we.screen.width,Ie=we.screen.height,{uniqueId:Fe,visible:Oe,startAt:Le,transformation:De=initalTransforms$1,applyTransformer:Ve,disabled:Xe,pointerdown:Ue,pointerout:We,pointerover:je,isText:ze,isDragging:He,isGif:$e,onDoubleClick:Ne,isTextEditMode:Me}=C,{x:ke=0,y:Ge=0,width:Be,height:qe,scale:Ke=[1,1],rotation:Ye=0,effect:et,overlay:Qe,animation:it=Animations.NONE}=De,nt=useGsapEffect();useCustomEventListener(Events.COMPLETE,()=>{Z.current}),React__namespace.useImperativeHandle(E,()=>({getIsTransformerDragging:()=>U,getIsMouseOverTransformer:()=>X}),[U,X]),React__namespace.useEffect(()=>{Z.current&&B(!0)},[]),React__namespace.useEffect(()=>{J({x:ke,y:Ge,width:Be,height:qe,animation:it,maxX:Pe,maxY:Ie})},[it,ke,Ge,Be,qe,Pe,Ie]),React__namespace.useEffect(()=>{if(!_e.current)return;const rt=gsap$2.context(()=>{if(Te.current&&xe){const{x:tt,y:at,animation:ut,maxX:mt,maxY:pt}=xe||{},yt=Te.current.progress(),gt=nt.updateEffect(Z.current,ut,{immediateRender:!1,x:tt,y:at,overwrite:!0,maxX:mt,maxY:pt});Ae.current&&(Te.current.remove(Ae.current),Ae.current.progress(0).kill()),yt>.1?(gt.eventCallback("onComplete",()=>{gt.remove("onComplete"),Te.current.add(gt,Le),Ae.current=gt}),gt.play()):(gt.progress(1),Te.current.add(gt,Le),Ae.current=gt)}else Ae.current&&Ae.current.progress(0).kill()},_e.current);return()=>{rt.revert()}},[Le,xe]);const ot=React__namespace.useCallback(()=>{Y(!0),je&&je()},[]),Ze=React__namespace.useCallback(()=>{V(!0)},[]),Je=React__namespace.useCallback(rt=>{C.onAnchorTransformationEnd&&C.onAnchorTransformationEnd(rt),V(!1)},[]),st=react.withFilters(react.Container,{matrix:PIXI__namespace.filters.ColorMatrixFilter});return jsxRuntimeExports.jsxs(react.Container,{ref:_e,children:[jsxRuntimeExports.jsx(react.Container,{ref:Z,position:[ke,Ge],pivot:[ke,Ge],width:Be,height:qe,scale:Ke,rotation:Ye,...!Xe&&Oe&&!U&&!He&&{interactive:!0,buttonMode:!0,pointerdown:Ue,pointerover:je,pointerout:We},children:jsxRuntimeExports.jsxs(react.Container,{ref:Re,children:[!$e&&jsxRuntimeExports.jsx(st,{scale:1,apply:({matrix:rt})=>{et===Effects.BlackAndWhite?rt.desaturate():et===Effects.Sepia?rt.sepia():et===Effects.RetroVintage||et===Effects.NightVision?rt.negative():et===Effects.Normal&&rt.reset()},matrix:{enabled:!0,matrix:CYAN},children:jsxRuntimeExports.jsx(react.Container,{ref:Se,children:C.children})}),$e&&jsxRuntimeExports.jsx(react.Container,{ref:Se,children:C.children}),!isEmpty$1(Qe)&&Qe!==OverlayTypes.NONE&&Qe!==OverlayTypes.NORMAL&&jsxRuntimeExports.jsx(PixiOverlayTilingSprite,{overlay:Qe,width:Be,height:qe,x:ke,y:Ge})]})}),Ve&&Oe&&!Me&&jsxRuntimeExports.jsx(PixiTransformer,{pixiTransformerRef:Ee,imageRef:Z,isMounted:I,transformCommit:Je,transformChange:Ze,mouseoverEvent:ot,uniqueId:Fe,isText:ze,onDoubleClick:Ne})]})});var ENV=(C=>(C[C.WEBGL_LEGACY=0]="WEBGL_LEGACY",C[C.WEBGL=1]="WEBGL",C[C.WEBGL2=2]="WEBGL2",C))(ENV||{}),RENDERER_TYPE=(C=>(C[C.UNKNOWN=0]="UNKNOWN",C[C.WEBGL=1]="WEBGL",C[C.CANVAS=2]="CANVAS",C))(RENDERER_TYPE||{}),BUFFER_BITS=(C=>(C[C.COLOR=16384]="COLOR",C[C.DEPTH=256]="DEPTH",C[C.STENCIL=1024]="STENCIL",C))(BUFFER_BITS||{}),BLEND_MODES=(C=>(C[C.NORMAL=0]="NORMAL",C[C.ADD=1]="ADD",C[C.MULTIPLY=2]="MULTIPLY",C[C.SCREEN=3]="SCREEN",C[C.OVERLAY=4]="OVERLAY",C[C.DARKEN=5]="DARKEN",C[C.LIGHTEN=6]="LIGHTEN",C[C.COLOR_DODGE=7]="COLOR_DODGE",C[C.COLOR_BURN=8]="COLOR_BURN",C[C.HARD_LIGHT=9]="HARD_LIGHT",C[C.SOFT_LIGHT=10]="SOFT_LIGHT",C[C.DIFFERENCE=11]="DIFFERENCE",C[C.EXCLUSION=12]="EXCLUSION",C[C.HUE=13]="HUE",C[C.SATURATION=14]="SATURATION",C[C.COLOR=15]="COLOR",C[C.LUMINOSITY=16]="LUMINOSITY",C[C.NORMAL_NPM=17]="NORMAL_NPM",C[C.ADD_NPM=18]="ADD_NPM",C[C.SCREEN_NPM=19]="SCREEN_NPM",C[C.NONE=20]="NONE",C[C.SRC_OVER=0]="SRC_OVER",C[C.SRC_IN=21]="SRC_IN",C[C.SRC_OUT=22]="SRC_OUT",C[C.SRC_ATOP=23]="SRC_ATOP",C[C.DST_OVER=24]="DST_OVER",C[C.DST_IN=25]="DST_IN",C[C.DST_OUT=26]="DST_OUT",C[C.DST_ATOP=27]="DST_ATOP",C[C.ERASE=26]="ERASE",C[C.SUBTRACT=28]="SUBTRACT",C[C.XOR=29]="XOR",C))(BLEND_MODES||{}),DRAW_MODES=(C=>(C[C.POINTS=0]="POINTS",C[C.LINES=1]="LINES",C[C.LINE_LOOP=2]="LINE_LOOP",C[C.LINE_STRIP=3]="LINE_STRIP",C[C.TRIANGLES=4]="TRIANGLES",C[C.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",C[C.TRIANGLE_FAN=6]="TRIANGLE_FAN",C))(DRAW_MODES||{}),FORMATS=(C=>(C[C.RGBA=6408]="RGBA",C[C.RGB=6407]="RGB",C[C.RG=33319]="RG",C[C.RED=6403]="RED",C[C.RGBA_INTEGER=36249]="RGBA_INTEGER",C[C.RGB_INTEGER=36248]="RGB_INTEGER",C[C.RG_INTEGER=33320]="RG_INTEGER",C[C.RED_INTEGER=36244]="RED_INTEGER",C[C.ALPHA=6406]="ALPHA",C[C.LUMINANCE=6409]="LUMINANCE",C[C.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",C[C.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",C[C.DEPTH_STENCIL=34041]="DEPTH_STENCIL",C))(FORMATS||{}),TARGETS=(C=>(C[C.TEXTURE_2D=3553]="TEXTURE_2D",C[C.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",C[C.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",C[C.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",C[C.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",C[C.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",C[C.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",C[C.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",C[C.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",C))(TARGETS||{}),TYPES=(C=>(C[C.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",C[C.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",C[C.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",C[C.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",C[C.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",C[C.UNSIGNED_INT=5125]="UNSIGNED_INT",C[C.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",C[C.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",C[C.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",C[C.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",C[C.BYTE=5120]="BYTE",C[C.SHORT=5122]="SHORT",C[C.INT=5124]="INT",C[C.FLOAT=5126]="FLOAT",C[C.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",C[C.HALF_FLOAT=36193]="HALF_FLOAT",C))(TYPES||{}),SAMPLER_TYPES=(C=>(C[C.FLOAT=0]="FLOAT",C[C.INT=1]="INT",C[C.UINT=2]="UINT",C))(SAMPLER_TYPES||{}),SCALE_MODES=(C=>(C[C.NEAREST=0]="NEAREST",C[C.LINEAR=1]="LINEAR",C))(SCALE_MODES||{}),WRAP_MODES=(C=>(C[C.CLAMP=33071]="CLAMP",C[C.REPEAT=10497]="REPEAT",C[C.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",C))(WRAP_MODES||{}),MIPMAP_MODES=(C=>(C[C.OFF=0]="OFF",C[C.POW2=1]="POW2",C[C.ON=2]="ON",C[C.ON_MANUAL=3]="ON_MANUAL",C))(MIPMAP_MODES||{}),ALPHA_MODES=(C=>(C[C.NPM=0]="NPM",C[C.UNPACK=1]="UNPACK",C[C.PMA=2]="PMA",C[C.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",C[C.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",C[C.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",C))(ALPHA_MODES||{}),CLEAR_MODES=(C=>(C[C.NO=0]="NO",C[C.YES=1]="YES",C[C.AUTO=2]="AUTO",C[C.BLEND=0]="BLEND",C[C.CLEAR=1]="CLEAR",C[C.BLIT=2]="BLIT",C))(CLEAR_MODES||{}),GC_MODES=(C=>(C[C.AUTO=0]="AUTO",C[C.MANUAL=1]="MANUAL",C))(GC_MODES||{}),PRECISION=(C=>(C.LOW="lowp",C.MEDIUM="mediump",C.HIGH="highp",C))(PRECISION||{}),MASK_TYPES=(C=>(C[C.NONE=0]="NONE",C[C.SCISSOR=1]="SCISSOR",C[C.STENCIL=2]="STENCIL",C[C.SPRITE=3]="SPRITE",C[C.COLOR=4]="COLOR",C))(MASK_TYPES||{}),MSAA_QUALITY=(C=>(C[C.NONE=0]="NONE",C[C.LOW=2]="LOW",C[C.MEDIUM=4]="MEDIUM",C[C.HIGH=8]="HIGH",C))(MSAA_QUALITY||{}),BUFFER_TYPE=(C=>(C[C.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",C[C.ARRAY_BUFFER=34962]="ARRAY_BUFFER",C[C.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",C))(BUFFER_TYPE||{});const BrowserAdapter={createCanvas:(C,E)=>{const I=document.createElement("canvas");return I.width=C,I.height=E,I},getCanvasRenderingContext2D:()=>CanvasRenderingContext2D,getWebGLRenderingContext:()=>WebGLRenderingContext,getNavigator:()=>navigator,getBaseUrl:()=>document.baseURI??window.location.href,getFontFaceSet:()=>document.fonts,fetch:(C,E)=>fetch(C,E),parseXML:C=>new DOMParser().parseFromString(C,"text/xml")},settings={ADAPTER:BrowserAdapter,RESOLUTION:1,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};var appleIphone=/iPhone/i,appleIpod=/iPod/i,appleTablet=/iPad/i,appleUniversal=/\biOS-universal(?:.+)Mac\b/i,androidPhone=/\bAndroid(?:.+)Mobile\b/i,androidTablet=/Android/i,amazonPhone=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,amazonTablet=/Silk/i,windowsPhone=/Windows Phone/i,windowsTablet=/\bWindows(?:.+)ARM\b/i,otherBlackBerry=/BlackBerry/i,otherBlackBerry10=/BB10/i,otherOpera=/Opera Mini/i,otherChrome=/\b(CriOS|Chrome)(?:.+)Mobile/i,otherFirefox=/Mobile(?:.+)Firefox\b/i,isAppleTabletOnIos13=function(C){return typeof C<"u"&&C.platform==="MacIntel"&&typeof C.maxTouchPoints=="number"&&C.maxTouchPoints>1&&typeof MSStream>"u"};function createMatch(C){return function(E){return E.test(C)}}function isMobile$1(C){var E={userAgent:"",platform:"",maxTouchPoints:0};!C&&typeof navigator<"u"?E={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof C=="string"?E.userAgent=C:C&&C.userAgent&&(E={userAgent:C.userAgent,platform:C.platform,maxTouchPoints:C.maxTouchPoints||0});var I=E.userAgent,B=I.split("[FBAN");typeof B[1]<"u"&&(I=B[0]),B=I.split("Twitter"),typeof B[1]<"u"&&(I=B[0]);var U=createMatch(I),V={apple:{phone:U(appleIphone)&&!U(windowsPhone),ipod:U(appleIpod),tablet:!U(appleIphone)&&(U(appleTablet)||isAppleTabletOnIos13(E))&&!U(windowsPhone),universal:U(appleUniversal),device:(U(appleIphone)||U(appleIpod)||U(appleTablet)||U(appleUniversal)||isAppleTabletOnIos13(E))&&!U(windowsPhone)},amazon:{phone:U(amazonPhone),tablet:!U(amazonPhone)&&U(amazonTablet),device:U(amazonPhone)||U(amazonTablet)},android:{phone:!U(windowsPhone)&&U(amazonPhone)||!U(windowsPhone)&&U(androidPhone),tablet:!U(windowsPhone)&&!U(amazonPhone)&&!U(androidPhone)&&(U(amazonTablet)||U(androidTablet)),device:!U(windowsPhone)&&(U(amazonPhone)||U(amazonTablet)||U(androidPhone)||U(androidTablet))||U(/\bokhttp\b/i)},windows:{phone:U(windowsPhone),tablet:U(windowsTablet),device:U(windowsPhone)||U(windowsTablet)},other:{blackberry:U(otherBlackBerry),blackberry10:U(otherBlackBerry10),opera:U(otherOpera),firefox:U(otherFirefox),chrome:U(otherChrome),device:U(otherBlackBerry)||U(otherBlackBerry10)||U(otherOpera)||U(otherFirefox)||U(otherChrome)},any:!1,phone:!1,tablet:!1};return V.any=V.apple.device||V.android.device||V.windows.device||V.other.device,V.phone=V.apple.phone||V.android.phone||V.windows.phone,V.tablet=V.apple.tablet||V.android.tablet||V.windows.tablet,V}const isMobileCall=isMobile$1.default??isMobile$1,isMobile=isMobileCall(globalThis.navigator);settings.RETINA_PREFIX=/@([0-9\.]+)x/,settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var eventemitter3={exports:{}};(function(C){var E=Object.prototype.hasOwnProperty,I="~";function B(){}Object.create&&(B.prototype=Object.create(null),new B().__proto__||(I=!1));function U(K,J,xe){this.fn=K,this.context=J,this.once=xe||!1}function V(K,J,xe,Z,_e){if(typeof xe!="function")throw new TypeError("The listener must be a function");var Se=new U(xe,Z||K,_e),Ee=I?I+J:J;return K._events[Ee]?K._events[Ee].fn?K._events[Ee]=[K._events[Ee],Se]:K._events[Ee].push(Se):(K._events[Ee]=Se,K._eventsCount++),K}function X(K,J){--K._eventsCount===0?K._events=new B:delete K._events[J]}function Y(){this._events=new B,this._eventsCount=0}Y.prototype.eventNames=function(){var J=[],xe,Z;if(this._eventsCount===0)return J;for(Z in xe=this._events)E.call(xe,Z)&&J.push(I?Z.slice(1):Z);return Object.getOwnPropertySymbols?J.concat(Object.getOwnPropertySymbols(xe)):J},Y.prototype.listeners=function(J){var xe=I?I+J:J,Z=this._events[xe];if(!Z)return[];if(Z.fn)return[Z.fn];for(var _e=0,Se=Z.length,Ee=new Array(Se);_e<Se;_e++)Ee[_e]=Z[_e].fn;return Ee},Y.prototype.listenerCount=function(J){var xe=I?I+J:J,Z=this._events[xe];return Z?Z.fn?1:Z.length:0},Y.prototype.emit=function(J,xe,Z,_e,Se,Ee){var Ae=I?I+J:J;if(!this._events[Ae])return!1;var Re=this._events[Ae],Te=arguments.length,we,Pe;if(Re.fn){switch(Re.once&&this.removeListener(J,Re.fn,void 0,!0),Te){case 1:return Re.fn.call(Re.context),!0;case 2:return Re.fn.call(Re.context,xe),!0;case 3:return Re.fn.call(Re.context,xe,Z),!0;case 4:return Re.fn.call(Re.context,xe,Z,_e),!0;case 5:return Re.fn.call(Re.context,xe,Z,_e,Se),!0;case 6:return Re.fn.call(Re.context,xe,Z,_e,Se,Ee),!0}for(Pe=1,we=new Array(Te-1);Pe<Te;Pe++)we[Pe-1]=arguments[Pe];Re.fn.apply(Re.context,we)}else{var Ie=Re.length,Fe;for(Pe=0;Pe<Ie;Pe++)switch(Re[Pe].once&&this.removeListener(J,Re[Pe].fn,void 0,!0),Te){case 1:Re[Pe].fn.call(Re[Pe].context);break;case 2:Re[Pe].fn.call(Re[Pe].context,xe);break;case 3:Re[Pe].fn.call(Re[Pe].context,xe,Z);break;case 4:Re[Pe].fn.call(Re[Pe].context,xe,Z,_e);break;default:if(!we)for(Fe=1,we=new Array(Te-1);Fe<Te;Fe++)we[Fe-1]=arguments[Fe];Re[Pe].fn.apply(Re[Pe].context,we)}}return!0},Y.prototype.on=function(J,xe,Z){return V(this,J,xe,Z,!1)},Y.prototype.once=function(J,xe,Z){return V(this,J,xe,Z,!0)},Y.prototype.removeListener=function(J,xe,Z,_e){var Se=I?I+J:J;if(!this._events[Se])return this;if(!xe)return X(this,Se),this;var Ee=this._events[Se];if(Ee.fn)Ee.fn===xe&&(!_e||Ee.once)&&(!Z||Ee.context===Z)&&X(this,Se);else{for(var Ae=0,Re=[],Te=Ee.length;Ae<Te;Ae++)(Ee[Ae].fn!==xe||_e&&!Ee[Ae].once||Z&&Ee[Ae].context!==Z)&&Re.push(Ee[Ae]);Re.length?this._events[Se]=Re.length===1?Re[0]:Re:X(this,Se)}return this},Y.prototype.removeAllListeners=function(J){var xe;return J?(xe=I?I+J:J,this._events[xe]&&X(this,xe)):(this._events=new B,this._eventsCount=0),this},Y.prototype.off=Y.prototype.removeListener,Y.prototype.addListener=Y.prototype.on,Y.prefixed=I,Y.EventEmitter=Y,C.exports=Y})(eventemitter3);var eventemitter3Exports=eventemitter3.exports;const EventEmitter=getDefaultExportFromCjs(eventemitter3Exports);var earcut$2={exports:{}};earcut$2.exports=earcut,earcut$2.exports.default=earcut;function earcut(C,E,I){I=I||2;var B=E&&E.length,U=B?E[0]*I:C.length,V=linkedList(C,0,U,I,!0),X=[];if(!V||V.next===V.prev)return X;var Y,K,J,xe,Z,_e,Se;if(B&&(V=eliminateHoles(C,E,V,I)),C.length>80*I){Y=J=C[0],K=xe=C[1];for(var Ee=I;Ee<U;Ee+=I)Z=C[Ee],_e=C[Ee+1],Z<Y&&(Y=Z),_e<K&&(K=_e),Z>J&&(J=Z),_e>xe&&(xe=_e);Se=Math.max(J-Y,xe-K),Se=Se!==0?32767/Se:0}return earcutLinked(V,X,I,Y,K,Se,0),X}function linkedList(C,E,I,B,U){var V,X;if(U===signedArea(C,E,I,B)>0)for(V=E;V<I;V+=B)X=insertNode(V,C[V],C[V+1],X);else for(V=I-B;V>=E;V-=B)X=insertNode(V,C[V],C[V+1],X);return X&&equals(X,X.next)&&(removeNode(X),X=X.next),X}function filterPoints(C,E){if(!C)return C;E||(E=C);var I=C,B;do if(B=!1,!I.steiner&&(equals(I,I.next)||area(I.prev,I,I.next)===0)){if(removeNode(I),I=E=I.prev,I===I.next)break;B=!0}else I=I.next;while(B||I!==E);return E}function earcutLinked(C,E,I,B,U,V,X){if(C){!X&&V&&indexCurve(C,B,U,V);for(var Y=C,K,J;C.prev!==C.next;){if(K=C.prev,J=C.next,V?isEarHashed(C,B,U,V):isEar(C)){E.push(K.i/I|0),E.push(C.i/I|0),E.push(J.i/I|0),removeNode(C),C=J.next,Y=J.next;continue}if(C=J,C===Y){X?X===1?(C=cureLocalIntersections(filterPoints(C),E,I),earcutLinked(C,E,I,B,U,V,2)):X===2&&splitEarcut(C,E,I,B,U,V):earcutLinked(filterPoints(C),E,I,B,U,V,1);break}}}}function isEar(C){var E=C.prev,I=C,B=C.next;if(area(E,I,B)>=0)return!1;for(var U=E.x,V=I.x,X=B.x,Y=E.y,K=I.y,J=B.y,xe=U<V?U<X?U:X:V<X?V:X,Z=Y<K?Y<J?Y:J:K<J?K:J,_e=U>V?U>X?U:X:V>X?V:X,Se=Y>K?Y>J?Y:J:K>J?K:J,Ee=B.next;Ee!==E;){if(Ee.x>=xe&&Ee.x<=_e&&Ee.y>=Z&&Ee.y<=Se&&pointInTriangle(U,Y,V,K,X,J,Ee.x,Ee.y)&&area(Ee.prev,Ee,Ee.next)>=0)return!1;Ee=Ee.next}return!0}function isEarHashed(C,E,I,B){var U=C.prev,V=C,X=C.next;if(area(U,V,X)>=0)return!1;for(var Y=U.x,K=V.x,J=X.x,xe=U.y,Z=V.y,_e=X.y,Se=Y<K?Y<J?Y:J:K<J?K:J,Ee=xe<Z?xe<_e?xe:_e:Z<_e?Z:_e,Ae=Y>K?Y>J?Y:J:K>J?K:J,Re=xe>Z?xe>_e?xe:_e:Z>_e?Z:_e,Te=zOrder(Se,Ee,E,I,B),we=zOrder(Ae,Re,E,I,B),Pe=C.prevZ,Ie=C.nextZ;Pe&&Pe.z>=Te&&Ie&&Ie.z<=we;){if(Pe.x>=Se&&Pe.x<=Ae&&Pe.y>=Ee&&Pe.y<=Re&&Pe!==U&&Pe!==X&&pointInTriangle(Y,xe,K,Z,J,_e,Pe.x,Pe.y)&&area(Pe.prev,Pe,Pe.next)>=0||(Pe=Pe.prevZ,Ie.x>=Se&&Ie.x<=Ae&&Ie.y>=Ee&&Ie.y<=Re&&Ie!==U&&Ie!==X&&pointInTriangle(Y,xe,K,Z,J,_e,Ie.x,Ie.y)&&area(Ie.prev,Ie,Ie.next)>=0))return!1;Ie=Ie.nextZ}for(;Pe&&Pe.z>=Te;){if(Pe.x>=Se&&Pe.x<=Ae&&Pe.y>=Ee&&Pe.y<=Re&&Pe!==U&&Pe!==X&&pointInTriangle(Y,xe,K,Z,J,_e,Pe.x,Pe.y)&&area(Pe.prev,Pe,Pe.next)>=0)return!1;Pe=Pe.prevZ}for(;Ie&&Ie.z<=we;){if(Ie.x>=Se&&Ie.x<=Ae&&Ie.y>=Ee&&Ie.y<=Re&&Ie!==U&&Ie!==X&&pointInTriangle(Y,xe,K,Z,J,_e,Ie.x,Ie.y)&&area(Ie.prev,Ie,Ie.next)>=0)return!1;Ie=Ie.nextZ}return!0}function cureLocalIntersections(C,E,I){var B=C;do{var U=B.prev,V=B.next.next;!equals(U,V)&&intersects(U,B,B.next,V)&&locallyInside(U,V)&&locallyInside(V,U)&&(E.push(U.i/I|0),E.push(B.i/I|0),E.push(V.i/I|0),removeNode(B),removeNode(B.next),B=C=V),B=B.next}while(B!==C);return filterPoints(B)}function splitEarcut(C,E,I,B,U,V){var X=C;do{for(var Y=X.next.next;Y!==X.prev;){if(X.i!==Y.i&&isValidDiagonal(X,Y)){var K=splitPolygon(X,Y);X=filterPoints(X,X.next),K=filterPoints(K,K.next),earcutLinked(X,E,I,B,U,V,0),earcutLinked(K,E,I,B,U,V,0);return}Y=Y.next}X=X.next}while(X!==C)}function eliminateHoles(C,E,I,B){var U=[],V,X,Y,K,J;for(V=0,X=E.length;V<X;V++)Y=E[V]*B,K=V<X-1?E[V+1]*B:C.length,J=linkedList(C,Y,K,B,!1),J===J.next&&(J.steiner=!0),U.push(getLeftmost(J));for(U.sort(compareX),V=0;V<U.length;V++)I=eliminateHole(U[V],I);return I}function compareX(C,E){return C.x-E.x}function eliminateHole(C,E){var I=findHoleBridge(C,E);if(!I)return E;var B=splitPolygon(I,C);return filterPoints(B,B.next),filterPoints(I,I.next)}function findHoleBridge(C,E){var I=E,B=C.x,U=C.y,V=-1/0,X;do{if(U<=I.y&&U>=I.next.y&&I.next.y!==I.y){var Y=I.x+(U-I.y)*(I.next.x-I.x)/(I.next.y-I.y);if(Y<=B&&Y>V&&(V=Y,X=I.x<I.next.x?I:I.next,Y===B))return X}I=I.next}while(I!==E);if(!X)return null;var K=X,J=X.x,xe=X.y,Z=1/0,_e;I=X;do B>=I.x&&I.x>=J&&B!==I.x&&pointInTriangle(U<xe?B:V,U,J,xe,U<xe?V:B,U,I.x,I.y)&&(_e=Math.abs(U-I.y)/(B-I.x),locallyInside(I,C)&&(_e<Z||_e===Z&&(I.x>X.x||I.x===X.x&&sectorContainsSector(X,I)))&&(X=I,Z=_e)),I=I.next;while(I!==K);return X}function sectorContainsSector(C,E){return area(C.prev,C,E.prev)<0&&area(E.next,C,C.next)<0}function indexCurve(C,E,I,B){var U=C;do U.z===0&&(U.z=zOrder(U.x,U.y,E,I,B)),U.prevZ=U.prev,U.nextZ=U.next,U=U.next;while(U!==C);U.prevZ.nextZ=null,U.prevZ=null,sortLinked(U)}function sortLinked(C){var E,I,B,U,V,X,Y,K,J=1;do{for(I=C,C=null,V=null,X=0;I;){for(X++,B=I,Y=0,E=0;E<J&&(Y++,B=B.nextZ,!!B);E++);for(K=J;Y>0||K>0&&B;)Y!==0&&(K===0||!B||I.z<=B.z)?(U=I,I=I.nextZ,Y--):(U=B,B=B.nextZ,K--),V?V.nextZ=U:C=U,U.prevZ=V,V=U;I=B}V.nextZ=null,J*=2}while(X>1);return C}function zOrder(C,E,I,B,U){return C=(C-I)*U|0,E=(E-B)*U|0,C=(C|C<<8)&16711935,C=(C|C<<4)&252645135,C=(C|C<<2)&858993459,C=(C|C<<1)&1431655765,E=(E|E<<8)&16711935,E=(E|E<<4)&252645135,E=(E|E<<2)&858993459,E=(E|E<<1)&1431655765,C|E<<1}function getLeftmost(C){var E=C,I=C;do(E.x<I.x||E.x===I.x&&E.y<I.y)&&(I=E),E=E.next;while(E!==C);return I}function pointInTriangle(C,E,I,B,U,V,X,Y){return(U-X)*(E-Y)>=(C-X)*(V-Y)&&(C-X)*(B-Y)>=(I-X)*(E-Y)&&(I-X)*(V-Y)>=(U-X)*(B-Y)}function isValidDiagonal(C,E){return C.next.i!==E.i&&C.prev.i!==E.i&&!intersectsPolygon(C,E)&&(locallyInside(C,E)&&locallyInside(E,C)&&middleInside(C,E)&&(area(C.prev,C,E.prev)||area(C,E.prev,E))||equals(C,E)&&area(C.prev,C,C.next)>0&&area(E.prev,E,E.next)>0)}function area(C,E,I){return(E.y-C.y)*(I.x-E.x)-(E.x-C.x)*(I.y-E.y)}function equals(C,E){return C.x===E.x&&C.y===E.y}function intersects(C,E,I,B){var U=sign(area(C,E,I)),V=sign(area(C,E,B)),X=sign(area(I,B,C)),Y=sign(area(I,B,E));return!!(U!==V&&X!==Y||U===0&&onSegment(C,I,E)||V===0&&onSegment(C,B,E)||X===0&&onSegment(I,C,B)||Y===0&&onSegment(I,E,B))}function onSegment(C,E,I){return E.x<=Math.max(C.x,I.x)&&E.x>=Math.min(C.x,I.x)&&E.y<=Math.max(C.y,I.y)&&E.y>=Math.min(C.y,I.y)}function sign(C){return C>0?1:C<0?-1:0}function intersectsPolygon(C,E){var I=C;do{if(I.i!==C.i&&I.next.i!==C.i&&I.i!==E.i&&I.next.i!==E.i&&intersects(I,I.next,C,E))return!0;I=I.next}while(I!==C);return!1}function locallyInside(C,E){return area(C.prev,C,C.next)<0?area(C,E,C.next)>=0&&area(C,C.prev,E)>=0:area(C,E,C.prev)<0||area(C,C.next,E)<0}function middleInside(C,E){var I=C,B=!1,U=(C.x+E.x)/2,V=(C.y+E.y)/2;do I.y>V!=I.next.y>V&&I.next.y!==I.y&&U<(I.next.x-I.x)*(V-I.y)/(I.next.y-I.y)+I.x&&(B=!B),I=I.next;while(I!==C);return B}function splitPolygon(C,E){var I=new Node(C.i,C.x,C.y),B=new Node(E.i,E.x,E.y),U=C.next,V=E.prev;return C.next=E,E.prev=C,I.next=U,U.prev=I,B.next=I,I.prev=B,V.next=B,B.prev=V,B}function insertNode(C,E,I,B){var U=new Node(C,E,I);return B?(U.next=B.next,U.prev=B,B.next.prev=U,B.next=U):(U.prev=U,U.next=U),U}function removeNode(C){C.next.prev=C.prev,C.prev.next=C.next,C.prevZ&&(C.prevZ.nextZ=C.nextZ),C.nextZ&&(C.nextZ.prevZ=C.prevZ)}function Node(C,E,I){this.i=C,this.x=E,this.y=I,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}earcut.deviation=function(C,E,I,B){var U=E&&E.length,V=U?E[0]*I:C.length,X=Math.abs(signedArea(C,0,V,I));if(U)for(var Y=0,K=E.length;Y<K;Y++){var J=E[Y]*I,xe=Y<K-1?E[Y+1]*I:C.length;X-=Math.abs(signedArea(C,J,xe,I))}var Z=0;for(Y=0;Y<B.length;Y+=3){var _e=B[Y]*I,Se=B[Y+1]*I,Ee=B[Y+2]*I;Z+=Math.abs((C[_e]-C[Ee])*(C[Se+1]-C[_e+1])-(C[_e]-C[Se])*(C[Ee+1]-C[_e+1]))}return X===0&&Z===0?0:Math.abs((Z-X)/X)};function signedArea(C,E,I,B){for(var U=0,V=E,X=I-B;V<I;V+=B)U+=(C[X]-C[V])*(C[V+1]+C[X+1]),X=V;return U}earcut.flatten=function(C){for(var E=C[0][0].length,I={vertices:[],holes:[],dimensions:E},B=0,U=0;U<C.length;U++){for(var V=0;V<C[U].length;V++)for(var X=0;X<E;X++)I.vertices.push(C[U][V][X]);U>0&&(B+=C[U-1].length,I.holes.push(B))}return I};var earcutExports=earcut$2.exports;const earcut$1=getDefaultExportFromCjs(earcutExports);var punycode$1={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */punycode$1.exports,function(C,E){(function(I){var B=E&&!E.nodeType&&E,U=C&&!C.nodeType&&C,V=typeof commonjsGlobal$1=="object"&&commonjsGlobal$1;(V.global===V||V.window===V||V.self===V)&&(I=V);var X,Y=2147483647,K=36,J=1,xe=26,Z=38,_e=700,Se=72,Ee=128,Ae="-",Re=/^xn--/,Te=/[^\x20-\x7E]/,we=/[\x2E\u3002\uFF0E\uFF61]/g,Pe={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ie=K-J,Fe=Math.floor,Oe=String.fromCharCode,Le;function De(Ge){throw new RangeError(Pe[Ge])}function Ve(Ge,Be){for(var qe=Ge.length,Ke=[];qe--;)Ke[qe]=Be(Ge[qe]);return Ke}function Xe(Ge,Be){var qe=Ge.split("@"),Ke="";qe.length>1&&(Ke=qe[0]+"@",Ge=qe[1]),Ge=Ge.replace(we,".");var Ye=Ge.split("."),et=Ve(Ye,Be).join(".");return Ke+et}function Ue(Ge){for(var Be=[],qe=0,Ke=Ge.length,Ye,et;qe<Ke;)Ye=Ge.charCodeAt(qe++),Ye>=55296&&Ye<=56319&&qe<Ke?(et=Ge.charCodeAt(qe++),(et&64512)==56320?Be.push(((Ye&1023)<<10)+(et&1023)+65536):(Be.push(Ye),qe--)):Be.push(Ye);return Be}function We(Ge){return Ve(Ge,function(Be){var qe="";return Be>65535&&(Be-=65536,qe+=Oe(Be>>>10&1023|55296),Be=56320|Be&1023),qe+=Oe(Be),qe}).join("")}function je(Ge){return Ge-48<10?Ge-22:Ge-65<26?Ge-65:Ge-97<26?Ge-97:K}function ze(Ge,Be){return Ge+22+75*(Ge<26)-((Be!=0)<<5)}function He(Ge,Be,qe){var Ke=0;for(Ge=qe?Fe(Ge/_e):Ge>>1,Ge+=Fe(Ge/Be);Ge>Ie*xe>>1;Ke+=K)Ge=Fe(Ge/Ie);return Fe(Ke+(Ie+1)*Ge/(Ge+Z))}function $e(Ge){var Be=[],qe=Ge.length,Ke,Ye=0,et=Ee,Qe=Se,it,nt,ot,Ze,Je,st,rt,tt,at;for(it=Ge.lastIndexOf(Ae),it<0&&(it=0),nt=0;nt<it;++nt)Ge.charCodeAt(nt)>=128&&De("not-basic"),Be.push(Ge.charCodeAt(nt));for(ot=it>0?it+1:0;ot<qe;){for(Ze=Ye,Je=1,st=K;ot>=qe&&De("invalid-input"),rt=je(Ge.charCodeAt(ot++)),(rt>=K||rt>Fe((Y-Ye)/Je))&&De("overflow"),Ye+=rt*Je,tt=st<=Qe?J:st>=Qe+xe?xe:st-Qe,!(rt<tt);st+=K)at=K-tt,Je>Fe(Y/at)&&De("overflow"),Je*=at;Ke=Be.length+1,Qe=He(Ye-Ze,Ke,Ze==0),Fe(Ye/Ke)>Y-et&&De("overflow"),et+=Fe(Ye/Ke),Ye%=Ke,Be.splice(Ye++,0,et)}return We(Be)}function Ne(Ge){var Be,qe,Ke,Ye,et,Qe,it,nt,ot,Ze,Je,st=[],rt,tt,at,ut;for(Ge=Ue(Ge),rt=Ge.length,Be=Ee,qe=0,et=Se,Qe=0;Qe<rt;++Qe)Je=Ge[Qe],Je<128&&st.push(Oe(Je));for(Ke=Ye=st.length,Ye&&st.push(Ae);Ke<rt;){for(it=Y,Qe=0;Qe<rt;++Qe)Je=Ge[Qe],Je>=Be&&Je<it&&(it=Je);for(tt=Ke+1,it-Be>Fe((Y-qe)/tt)&&De("overflow"),qe+=(it-Be)*tt,Be=it,Qe=0;Qe<rt;++Qe)if(Je=Ge[Qe],Je<Be&&++qe>Y&&De("overflow"),Je==Be){for(nt=qe,ot=K;Ze=ot<=et?J:ot>=et+xe?xe:ot-et,!(nt<Ze);ot+=K)ut=nt-Ze,at=K-Ze,st.push(Oe(ze(Ze+ut%at,0))),nt=Fe(ut/at);st.push(Oe(ze(nt,0))),et=He(qe,tt,Ke==Ye),qe=0,++Ke}++qe,++Be}return st.join("")}function Me(Ge){return Xe(Ge,function(Be){return Re.test(Be)?$e(Be.slice(4).toLowerCase()):Be})}function ke(Ge){return Xe(Ge,function(Be){return Te.test(Be)?"xn--"+Ne(Be):Be})}if(X={version:"1.4.1",ucs2:{decode:Ue,encode:We},decode:$e,encode:Ne,toASCII:ke,toUnicode:Me},B&&U)if(C.exports==B)U.exports=X;else for(Le in X)X.hasOwnProperty(Le)&&(B[Le]=X[Le]);else I.punycode=X})(commonjsGlobal$1)}(punycode$1,punycode$1.exports);var punycodeExports=punycode$1.exports,shams=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var E={},I=Symbol("test"),B=Object(I);if(typeof I=="string"||Object.prototype.toString.call(I)!=="[object Symbol]"||Object.prototype.toString.call(B)!=="[object Symbol]")return!1;var U=42;E[I]=U;for(I in E)return!1;if(typeof Object.keys=="function"&&Object.keys(E).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(E).length!==0)return!1;var V=Object.getOwnPropertySymbols(E);if(V.length!==1||V[0]!==I||!Object.prototype.propertyIsEnumerable.call(E,I))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var X=Object.getOwnPropertyDescriptor(E,I);if(X.value!==U||X.enumerable!==!0)return!1}return!0},origSymbol=typeof Symbol<"u"&&Symbol,hasSymbolSham=shams,hasSymbols$1=function(){return typeof origSymbol!="function"||typeof Symbol!="function"||typeof origSymbol("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:hasSymbolSham()},test={foo:{}},$Object=Object,hasProto$1=function(){return{__proto__:test}.foo===test.foo&&!({__proto__:null}instanceof $Object)},ERROR_MESSAGE="Function.prototype.bind called on incompatible ",slice=Array.prototype.slice,toStr$1=Object.prototype.toString,funcType="[object Function]",implementation$1=function(E){var I=this;if(typeof I!="function"||toStr$1.call(I)!==funcType)throw new TypeError(ERROR_MESSAGE+I);for(var B=slice.call(arguments,1),U,V=function(){if(this instanceof U){var xe=I.apply(this,B.concat(slice.call(arguments)));return Object(xe)===xe?xe:this}else return I.apply(E,B.concat(slice.call(arguments)))},X=Math.max(0,I.length-B.length),Y=[],K=0;K<X;K++)Y.push("$"+K);if(U=Function("binder","return function ("+Y.join(",")+"){ return binder.apply(this,arguments); }")(V),I.prototype){var J=function(){};J.prototype=I.prototype,U.prototype=new J,J.prototype=null}return U},implementation=implementation$1,functionBind=Function.prototype.bind||implementation,bind$1=functionBind,src=bind$1.call(Function.call,Object.prototype.hasOwnProperty),undefined$1,$SyntaxError=SyntaxError,$Function=Function,$TypeError$1=TypeError,getEvalledConstructor=function(C){try{return $Function('"use strict"; return ('+C+").constructor;")()}catch{}},$gOPD=Object.getOwnPropertyDescriptor;if($gOPD)try{$gOPD({},"")}catch{$gOPD=null}var throwTypeError=function(){throw new $TypeError$1},ThrowTypeError=$gOPD?function(){try{return arguments.callee,throwTypeError}catch{try{return $gOPD(arguments,"callee").get}catch{return throwTypeError}}}():throwTypeError,hasSymbols=hasSymbols$1(),hasProto=hasProto$1(),getProto=Object.getPrototypeOf||(hasProto?function(C){return C.__proto__}:null),needsEval={},TypedArray=typeof Uint8Array>"u"||!getProto?undefined$1:getProto(Uint8Array),INTRINSICS={"%AggregateError%":typeof AggregateError>"u"?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols&&getProto?getProto([][Symbol.iterator]()):undefined$1,"%AsyncFromSyncIteratorPrototype%":undefined$1,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics>"u"?undefined$1:Atomics,"%BigInt%":typeof BigInt>"u"?undefined$1:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?undefined$1:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?undefined$1:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?undefined$1:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?undefined$1:Float32Array,"%Float64Array%":typeof Float64Array>"u"?undefined$1:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?undefined$1:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array>"u"?undefined$1:Int8Array,"%Int16Array%":typeof Int16Array>"u"?undefined$1:Int16Array,"%Int32Array%":typeof Int32Array>"u"?undefined$1:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols&&getProto?getProto(getProto([][Symbol.iterator]())):undefined$1,"%JSON%":typeof JSON=="object"?JSON:undefined$1,"%Map%":typeof Map>"u"?undefined$1:Map,"%MapIteratorPrototype%":typeof Map>"u"||!hasSymbols||!getProto?undefined$1:getProto(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?undefined$1:Promise,"%Proxy%":typeof Proxy>"u"?undefined$1:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?undefined$1:Set,"%SetIteratorPrototype%":typeof Set>"u"||!hasSymbols||!getProto?undefined$1:getProto(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols&&getProto?getProto(""[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols?Symbol:undefined$1,"%SyntaxError%":$SyntaxError,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError$1,"%Uint8Array%":typeof Uint8Array>"u"?undefined$1:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?undefined$1:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?undefined$1:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?undefined$1:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?undefined$1:WeakMap,"%WeakRef%":typeof WeakRef>"u"?undefined$1:WeakRef,"%WeakSet%":typeof WeakSet>"u"?undefined$1:WeakSet};if(getProto)try{null.error}catch(C){var errorProto=getProto(getProto(C));INTRINSICS["%Error.prototype%"]=errorProto}var doEval=function C(E){var I;if(E==="%AsyncFunction%")I=getEvalledConstructor("async function () {}");else if(E==="%GeneratorFunction%")I=getEvalledConstructor("function* () {}");else if(E==="%AsyncGeneratorFunction%")I=getEvalledConstructor("async function* () {}");else if(E==="%AsyncGenerator%"){var B=C("%AsyncGeneratorFunction%");B&&(I=B.prototype)}else if(E==="%AsyncIteratorPrototype%"){var U=C("%AsyncGenerator%");U&&getProto&&(I=getProto(U.prototype))}return INTRINSICS[E]=I,I},LEGACY_ALIASES={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},bind=functionBind,hasOwn$1=src,$concat$1=bind.call(Function.call,Array.prototype.concat),$spliceApply=bind.call(Function.apply,Array.prototype.splice),$replace$1=bind.call(Function.call,String.prototype.replace),$strSlice=bind.call(Function.call,String.prototype.slice),$exec=bind.call(Function.call,RegExp.prototype.exec),rePropName$1=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar$1=/\\(\\)?/g,stringToPath$2=function(E){var I=$strSlice(E,0,1),B=$strSlice(E,-1);if(I==="%"&&B!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");if(B==="%"&&I!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");var U=[];return $replace$1(E,rePropName$1,function(V,X,Y,K){U[U.length]=Y?$replace$1(K,reEscapeChar$1,"$1"):X||V}),U},getBaseIntrinsic=function(E,I){var B=E,U;if(hasOwn$1(LEGACY_ALIASES,B)&&(U=LEGACY_ALIASES[B],B="%"+U[0]+"%"),hasOwn$1(INTRINSICS,B)){var V=INTRINSICS[B];if(V===needsEval&&(V=doEval(B)),typeof V>"u"&&!I)throw new $TypeError$1("intrinsic "+E+" exists, but is not available. Please file an issue!");return{alias:U,name:B,value:V}}throw new $SyntaxError("intrinsic "+E+" does not exist!")},getIntrinsic=function(E,I){if(typeof E!="string"||E.length===0)throw new $TypeError$1("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof I!="boolean")throw new $TypeError$1('"allowMissing" argument must be a boolean');if($exec(/^%?[^%]*%?$/,E)===null)throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var B=stringToPath$2(E),U=B.length>0?B[0]:"",V=getBaseIntrinsic("%"+U+"%",I),X=V.name,Y=V.value,K=!1,J=V.alias;J&&(U=J[0],$spliceApply(B,$concat$1([0,1],J)));for(var xe=1,Z=!0;xe<B.length;xe+=1){var _e=B[xe],Se=$strSlice(_e,0,1),Ee=$strSlice(_e,-1);if((Se==='"'||Se==="'"||Se==="`"||Ee==='"'||Ee==="'"||Ee==="`")&&Se!==Ee)throw new $SyntaxError("property names with quotes must have matching quotes");if((_e==="constructor"||!Z)&&(K=!0),U+="."+_e,X="%"+U+"%",hasOwn$1(INTRINSICS,X))Y=INTRINSICS[X];else if(Y!=null){if(!(_e in Y)){if(!I)throw new $TypeError$1("base intrinsic for "+E+" exists, but the property is not available.");return}if($gOPD&&xe+1>=B.length){var Ae=$gOPD(Y,_e);Z=!!Ae,Z&&"get"in Ae&&!("originalValue"in Ae.get)?Y=Ae.get:Y=Y[_e]}else Z=hasOwn$1(Y,_e),Y=Y[_e];Z&&!K&&(INTRINSICS[X]=Y)}}return Y},callBind$1={exports:{}};(function(C){var E=functionBind,I=getIntrinsic,B=I("%Function.prototype.apply%"),U=I("%Function.prototype.call%"),V=I("%Reflect.apply%",!0)||E.call(U,B),X=I("%Object.getOwnPropertyDescriptor%",!0),Y=I("%Object.defineProperty%",!0),K=I("%Math.max%");if(Y)try{Y({},"a",{value:1})}catch{Y=null}C.exports=function(Z){var _e=V(E,U,arguments);if(X&&Y){var Se=X(_e,"length");Se.configurable&&Y(_e,"length",{value:1+K(0,Z.length-(arguments.length-1))})}return _e};var J=function(){return V(E,B,arguments)};Y?Y(C.exports,"apply",{value:J}):C.exports.apply=J})(callBind$1);var callBindExports=callBind$1.exports,GetIntrinsic$1=getIntrinsic,callBind=callBindExports,$indexOf=callBind(GetIntrinsic$1("String.prototype.indexOf")),callBound$1=function(E,I){var B=GetIntrinsic$1(E,!!I);return typeof B=="function"&&$indexOf(E,".prototype.")>-1?callBind(B):B};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);var hasMap=typeof Map=="function"&&Map.prototype,mapSizeDescriptor=Object.getOwnPropertyDescriptor&&hasMap?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,mapSize$1=hasMap&&mapSizeDescriptor&&typeof mapSizeDescriptor.get=="function"?mapSizeDescriptor.get:null,mapForEach=hasMap&&Map.prototype.forEach,hasSet=typeof Set=="function"&&Set.prototype,setSizeDescriptor=Object.getOwnPropertyDescriptor&&hasSet?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,setSize=hasSet&&setSizeDescriptor&&typeof setSizeDescriptor.get=="function"?setSizeDescriptor.get:null,setForEach=hasSet&&Set.prototype.forEach,hasWeakMap=typeof WeakMap=="function"&&WeakMap.prototype,weakMapHas=hasWeakMap?WeakMap.prototype.has:null,hasWeakSet=typeof WeakSet=="function"&&WeakSet.prototype,weakSetHas=hasWeakSet?WeakSet.prototype.has:null,hasWeakRef=typeof WeakRef=="function"&&WeakRef.prototype,weakRefDeref=hasWeakRef?WeakRef.prototype.deref:null,booleanValueOf=Boolean.prototype.valueOf,objectToString=Object.prototype.toString,functionToString=Function.prototype.toString,$match=String.prototype.match,$slice=String.prototype.slice,$replace=String.prototype.replace,$toUpperCase=String.prototype.toUpperCase,$toLowerCase=String.prototype.toLowerCase,$test=RegExp.prototype.test,$concat=Array.prototype.concat,$join=Array.prototype.join,$arrSlice=Array.prototype.slice,$floor=Math.floor,bigIntValueOf=typeof BigInt=="function"?BigInt.prototype.valueOf:null,gOPS=Object.getOwnPropertySymbols,symToString=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,hasShammedSymbols=typeof Symbol=="function"&&typeof Symbol.iterator=="object",toStringTag=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===hasShammedSymbols||"symbol")?Symbol.toStringTag:null,isEnumerable=Object.prototype.propertyIsEnumerable,gPO=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(C){return C.__proto__}:null);function addNumericSeparator(C,E){if(C===1/0||C===-1/0||C!==C||C&&C>-1e3&&C<1e3||$test.call(/e/,E))return E;var I=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof C=="number"){var B=C<0?-$floor(-C):$floor(C);if(B!==C){var U=String(B),V=$slice.call(E,U.length+1);return $replace.call(U,I,"$&_")+"."+$replace.call($replace.call(V,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $replace.call(E,I,"$&_")}var utilInspect=require$$0,inspectCustom=utilInspect.custom,inspectSymbol=isSymbol$5(inspectCustom)?inspectCustom:null,objectInspect=function C(E,I,B,U){var V=I||{};if(has$3(V,"quoteStyle")&&V.quoteStyle!=="single"&&V.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(has$3(V,"maxStringLength")&&(typeof V.maxStringLength=="number"?V.maxStringLength<0&&V.maxStringLength!==1/0:V.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var X=has$3(V,"customInspect")?V.customInspect:!0;if(typeof X!="boolean"&&X!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has$3(V,"indent")&&V.indent!==null&&V.indent!==" "&&!(parseInt(V.indent,10)===V.indent&&V.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has$3(V,"numericSeparator")&&typeof V.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Y=V.numericSeparator;if(typeof E>"u")return"undefined";if(E===null)return"null";if(typeof E=="boolean")return E?"true":"false";if(typeof E=="string")return inspectString(E,V);if(typeof E=="number"){if(E===0)return 1/0/E>0?"0":"-0";var K=String(E);return Y?addNumericSeparator(E,K):K}if(typeof E=="bigint"){var J=String(E)+"n";return Y?addNumericSeparator(E,J):J}var xe=typeof V.depth>"u"?5:V.depth;if(typeof B>"u"&&(B=0),B>=xe&&xe>0&&typeof E=="object")return isArray$9(E)?"[Array]":"[Object]";var Z=getIndent(V,B);if(typeof U>"u")U=[];else if(indexOf(U,E)>=0)return"[Circular]";function _e(je,ze,He){if(ze&&(U=$arrSlice.call(U),U.push(ze)),He){var $e={depth:V.depth};return has$3(V,"quoteStyle")&&($e.quoteStyle=V.quoteStyle),C(je,$e,B+1,U)}return C(je,V,B+1,U)}if(typeof E=="function"&&!isRegExp$1(E)){var Se=nameOf(E),Ee=arrObjKeys(E,_e);return"[Function"+(Se?": "+Se:" (anonymous)")+"]"+(Ee.length>0?" { "+$join.call(Ee,", ")+" }":"")}if(isSymbol$5(E)){var Ae=hasShammedSymbols?$replace.call(String(E),/^(Symbol\(.*\))_[^)]*$/,"$1"):symToString.call(E);return typeof E=="object"&&!hasShammedSymbols?markBoxed(Ae):Ae}if(isElement(E)){for(var Re="<"+$toLowerCase.call(String(E.nodeName)),Te=E.attributes||[],we=0;we<Te.length;we++)Re+=" "+Te[we].name+"="+wrapQuotes(quote(Te[we].value),"double",V);return Re+=">",E.childNodes&&E.childNodes.length&&(Re+="..."),Re+="</"+$toLowerCase.call(String(E.nodeName))+">",Re}if(isArray$9(E)){if(E.length===0)return"[]";var Pe=arrObjKeys(E,_e);return Z&&!singleLineValues(Pe)?"["+indentedJoin(Pe,Z)+"]":"[ "+$join.call(Pe,", ")+" ]"}if(isError(E)){var Ie=arrObjKeys(E,_e);return!("cause"in Error.prototype)&&"cause"in E&&!isEnumerable.call(E,"cause")?"{ ["+String(E)+"] "+$join.call($concat.call("[cause]: "+_e(E.cause),Ie),", ")+" }":Ie.length===0?"["+String(E)+"]":"{ ["+String(E)+"] "+$join.call(Ie,", ")+" }"}if(typeof E=="object"&&X){if(inspectSymbol&&typeof E[inspectSymbol]=="function"&&utilInspect)return utilInspect(E,{depth:xe-B});if(X!=="symbol"&&typeof E.inspect=="function")return E.inspect()}if(isMap(E)){var Fe=[];return mapForEach&&mapForEach.call(E,function(je,ze){Fe.push(_e(ze,E,!0)+" => "+_e(je,E))}),collectionOf("Map",mapSize$1.call(E),Fe,Z)}if(isSet(E)){var Oe=[];return setForEach&&setForEach.call(E,function(je){Oe.push(_e(je,E))}),collectionOf("Set",setSize.call(E),Oe,Z)}if(isWeakMap(E))return weakCollectionOf("WeakMap");if(isWeakSet(E))return weakCollectionOf("WeakSet");if(isWeakRef(E))return weakCollectionOf("WeakRef");if(isNumber(E))return markBoxed(_e(Number(E)));if(isBigInt(E))return markBoxed(_e(bigIntValueOf.call(E)));if(isBoolean(E))return markBoxed(booleanValueOf.call(E));if(isString(E))return markBoxed(_e(String(E)));if(!isDate(E)&&!isRegExp$1(E)){var Le=arrObjKeys(E,_e),De=gPO?gPO(E)===Object.prototype:E instanceof Object||E.constructor===Object,Ve=E instanceof Object?"":"null prototype",Xe=!De&&toStringTag&&Object(E)===E&&toStringTag in E?$slice.call(toStr(E),8,-1):Ve?"Object":"",Ue=De||typeof E.constructor!="function"?"":E.constructor.name?E.constructor.name+" ":"",We=Ue+(Xe||Ve?"["+$join.call($concat.call([],Xe||[],Ve||[]),": ")+"] ":"");return Le.length===0?We+"{}":Z?We+"{"+indentedJoin(Le,Z)+"}":We+"{ "+$join.call(Le,", ")+" }"}return String(E)};function wrapQuotes(C,E,I){var B=(I.quoteStyle||E)==="double"?'"':"'";return B+C+B}function quote(C){return $replace.call(String(C),/"/g,"&quot;")}function isArray$9(C){return toStr(C)==="[object Array]"&&(!toStringTag||!(typeof C=="object"&&toStringTag in C))}function isDate(C){return toStr(C)==="[object Date]"&&(!toStringTag||!(typeof C=="object"&&toStringTag in C))}function isRegExp$1(C){return toStr(C)==="[object RegExp]"&&(!toStringTag||!(typeof C=="object"&&toStringTag in C))}function isError(C){return toStr(C)==="[object Error]"&&(!toStringTag||!(typeof C=="object"&&toStringTag in C))}function isString(C){return toStr(C)==="[object String]"&&(!toStringTag||!(typeof C=="object"&&toStringTag in C))}function isNumber(C){return toStr(C)==="[object Number]"&&(!toStringTag||!(typeof C=="object"&&toStringTag in C))}function isBoolean(C){return toStr(C)==="[object Boolean]"&&(!toStringTag||!(typeof C=="object"&&toStringTag in C))}function isSymbol$5(C){if(hasShammedSymbols)return C&&typeof C=="object"&&C instanceof Symbol;if(typeof C=="symbol")return!0;if(!C||typeof C!="object"||!symToString)return!1;try{return symToString.call(C),!0}catch{}return!1}function isBigInt(C){if(!C||typeof C!="object"||!bigIntValueOf)return!1;try{return bigIntValueOf.call(C),!0}catch{}return!1}var hasOwn=Object.prototype.hasOwnProperty||function(C){return C in this};function has$3(C,E){return hasOwn.call(C,E)}function toStr(C){return objectToString.call(C)}function nameOf(C){if(C.name)return C.name;var E=$match.call(functionToString.call(C),/^function\s*([\w$]+)/);return E?E[1]:null}function indexOf(C,E){if(C.indexOf)return C.indexOf(E);for(var I=0,B=C.length;I<B;I++)if(C[I]===E)return I;return-1}function isMap(C){if(!mapSize$1||!C||typeof C!="object")return!1;try{mapSize$1.call(C);try{setSize.call(C)}catch{return!0}return C instanceof Map}catch{}return!1}function isWeakMap(C){if(!weakMapHas||!C||typeof C!="object")return!1;try{weakMapHas.call(C,weakMapHas);try{weakSetHas.call(C,weakSetHas)}catch{return!0}return C instanceof WeakMap}catch{}return!1}function isWeakRef(C){if(!weakRefDeref||!C||typeof C!="object")return!1;try{return weakRefDeref.call(C),!0}catch{}return!1}function isSet(C){if(!setSize||!C||typeof C!="object")return!1;try{setSize.call(C);try{mapSize$1.call(C)}catch{return!0}return C instanceof Set}catch{}return!1}function isWeakSet(C){if(!weakSetHas||!C||typeof C!="object")return!1;try{weakSetHas.call(C,weakSetHas);try{weakMapHas.call(C,weakMapHas)}catch{return!0}return C instanceof WeakSet}catch{}return!1}function isElement(C){return!C||typeof C!="object"?!1:typeof HTMLElement<"u"&&C instanceof HTMLElement?!0:typeof C.nodeName=="string"&&typeof C.getAttribute=="function"}function inspectString(C,E){if(C.length>E.maxStringLength){var I=C.length-E.maxStringLength,B="... "+I+" more character"+(I>1?"s":"");return inspectString($slice.call(C,0,E.maxStringLength),E)+B}var U=$replace.call($replace.call(C,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(U,"single",E)}function lowbyte(C){var E=C.charCodeAt(0),I={8:"b",9:"t",10:"n",12:"f",13:"r"}[E];return I?"\\"+I:"\\x"+(E<16?"0":"")+$toUpperCase.call(E.toString(16))}function markBoxed(C){return"Object("+C+")"}function weakCollectionOf(C){return C+" { ? }"}function collectionOf(C,E,I,B){var U=B?indentedJoin(I,B):$join.call(I,", ");return C+" ("+E+") {"+U+"}"}function singleLineValues(C){for(var E=0;E<C.length;E++)if(indexOf(C[E],`
33
+ */var gsap,_win,_splitColor,_PIXI,PropTween,_getSetter,_isV4,_windowExists=function(){return typeof window<"u"},_getGSAP=function(){return gsap||_windowExists()&&(gsap=window.gsap)&&gsap.registerPlugin&&gsap},_isFunction=function(E){return typeof E=="function"},_warn=function(E){return console.warn(E)},_idMatrix=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],_lumR=.212671,_lumG=.71516,_lumB=.072169,_applyMatrix=function(E,I){var B=[],U=0,V=0,X,Y;for(X=0;X<4;X++){for(Y=0;Y<5;Y++)V=Y===4?E[U+4]:0,B[U+Y]=E[U]*I[Y]+E[U+1]*I[Y+5]+E[U+2]*I[Y+10]+E[U+3]*I[Y+15]+V;U+=5}return B},_setSaturation=function(E,I){var B=1-I,U=B*_lumR,V=B*_lumG,X=B*_lumB;return _applyMatrix([U+I,V,X,0,0,U,V+I,X,0,0,U,V,X+I,0,0,0,0,0,1,0],E)},_colorize=function(E,I,B){var U=_splitColor(I),V=U[0]/255,X=U[1]/255,Y=U[2]/255,K=1-B;return _applyMatrix([K+B*V*_lumR,B*V*_lumG,B*V*_lumB,0,0,B*X*_lumR,K+B*X*_lumG,B*X*_lumB,0,0,B*Y*_lumR,B*Y*_lumG,K+B*Y*_lumB,0,0,0,0,0,1,0],E)},_setHue=function(E,I){I*=Math.PI/180;var B=Math.cos(I),U=Math.sin(I);return _applyMatrix([_lumR+B*(1-_lumR)+U*-_lumR,_lumG+B*-_lumG+U*-_lumG,_lumB+B*-_lumB+U*(1-_lumB),0,0,_lumR+B*-_lumR+U*.143,_lumG+B*(1-_lumG)+U*.14,_lumB+B*-_lumB+U*-.283,0,0,_lumR+B*-_lumR+U*-(1-_lumR),_lumG+B*-_lumG+U*_lumG,_lumB+B*(1-_lumB)+U*_lumB,0,0,0,0,0,1,0,0,0,0,0,1],E)},_setContrast=function(E,I){return _applyMatrix([I,0,0,0,.5*(1-I),0,I,0,0,.5*(1-I),0,0,I,0,.5*(1-I),0,0,0,1,0],E)},_getFilter=function(E,I){var B=_PIXI.filters[I],U=E.filters||[],V=U.length,X;for(B||_warn(I+" not found. PixiPlugin.registerPIXI(PIXI)");--V>-1;)if(U[V]instanceof B)return U[V];return X=new B,I==="BlurFilter"&&(X.blur=0),U.push(X),E.filters=U,X},_addColorMatrixFilterCacheTween=function(E,I,B,U){I.add(B,E,B[E],U[E]),I._props.push(E)},_applyBrightnessToMatrix=function(E,I){var B=new _PIXI.filters.ColorMatrixFilter;return B.matrix=I,B.brightness(E,!0),B.matrix},_copy=function(E){var I={},B;for(B in E)I[B]=E[B];return I},_CMFdefaults={contrast:1,saturation:1,colorizeAmount:0,colorize:"rgb(255,255,255)",hue:0,brightness:1},_parseColorMatrixFilter=function(E,I,B){var U=_getFilter(E,"ColorMatrixFilter"),V=E._gsColorMatrixFilter=E._gsColorMatrixFilter||_copy(_CMFdefaults),X=I.combineCMF&&!("colorMatrixFilter"in I&&!I.colorMatrixFilter),Y,K,J;for(J=U.matrix,I.resolution&&(U.resolution=I.resolution),I.matrix&&I.matrix.length===J.length?(K=I.matrix,V.contrast!==1&&_addColorMatrixFilterCacheTween("contrast",B,V,_CMFdefaults),V.hue&&_addColorMatrixFilterCacheTween("hue",B,V,_CMFdefaults),V.brightness!==1&&_addColorMatrixFilterCacheTween("brightness",B,V,_CMFdefaults),V.colorizeAmount&&(_addColorMatrixFilterCacheTween("colorize",B,V,_CMFdefaults),_addColorMatrixFilterCacheTween("colorizeAmount",B,V,_CMFdefaults)),V.saturation!==1&&_addColorMatrixFilterCacheTween("saturation",B,V,_CMFdefaults)):(K=_idMatrix.slice(),I.contrast!=null?(K=_setContrast(K,+I.contrast),_addColorMatrixFilterCacheTween("contrast",B,V,I)):V.contrast!==1&&(X?K=_setContrast(K,V.contrast):_addColorMatrixFilterCacheTween("contrast",B,V,_CMFdefaults)),I.hue!=null?(K=_setHue(K,+I.hue),_addColorMatrixFilterCacheTween("hue",B,V,I)):V.hue&&(X?K=_setHue(K,V.hue):_addColorMatrixFilterCacheTween("hue",B,V,_CMFdefaults)),I.brightness!=null?(K=_applyBrightnessToMatrix(+I.brightness,K),_addColorMatrixFilterCacheTween("brightness",B,V,I)):V.brightness!==1&&(X?K=_applyBrightnessToMatrix(V.brightness,K):_addColorMatrixFilterCacheTween("brightness",B,V,_CMFdefaults)),I.colorize!=null?(I.colorizeAmount="colorizeAmount"in I?+I.colorizeAmount:1,K=_colorize(K,I.colorize,I.colorizeAmount),_addColorMatrixFilterCacheTween("colorize",B,V,I),_addColorMatrixFilterCacheTween("colorizeAmount",B,V,I)):V.colorizeAmount&&(X?K=_colorize(K,V.colorize,V.colorizeAmount):(_addColorMatrixFilterCacheTween("colorize",B,V,_CMFdefaults),_addColorMatrixFilterCacheTween("colorizeAmount",B,V,_CMFdefaults))),I.saturation!=null?(K=_setSaturation(K,+I.saturation),_addColorMatrixFilterCacheTween("saturation",B,V,I)):V.saturation!==1&&(X?K=_setSaturation(K,V.saturation):_addColorMatrixFilterCacheTween("saturation",B,V,_CMFdefaults))),Y=K.length;--Y>-1;)K[Y]!==J[Y]&&B.add(J,Y,J[Y],K[Y],"colorMatrixFilter");B._props.push("colorMatrixFilter")},_renderColor=function(E,I){var B=I.t,U=I.p,V=I.color,X=I.set;X(B,U,V[0]<<16|V[1]<<8|V[2])},_renderDirtyCache=function(E,I){var B=I.g;B&&(B.dirty++,B.clearDirty++)},_renderAutoAlpha=function(E,I){I.t.visible=!!I.t.alpha},_addColorTween=function(E,I,B,U){var V=E[I],X=_splitColor(_isFunction(V)?E[I.indexOf("set")||!_isFunction(E["get"+I.substr(3)])?I:"get"+I.substr(3)]():V),Y=_splitColor(B);U._pt=new PropTween(U._pt,E,I,0,0,_renderColor,{t:E,p:I,color:X,set:_getSetter(E,I)}),U.add(X,0,X[0],Y[0]),U.add(X,1,X[1],Y[1]),U.add(X,2,X[2],Y[2])},_colorProps={tint:1,lineColor:1,fillColor:1},_xyContexts="position,scale,skew,pivot,anchor,tilePosition,tileScale".split(","),_contexts={x:"position",y:"position",tileX:"tilePosition",tileY:"tilePosition"},_colorMatrixFilterProps={colorMatrixFilter:1,saturation:1,contrast:1,hue:1,colorize:1,colorizeAmount:1,brightness:1,combineCMF:1},_DEG2RAD=Math.PI/180,_isString=function(E){return typeof E=="string"},_degreesToRadians=function(E){return _isString(E)&&E.charAt(1)==="="?E.substr(0,2)+parseFloat(E.substr(2))*_DEG2RAD:E*_DEG2RAD},_renderPropWithEnd=function(E,I){return I.set(I.t,I.p,E===1?I.e:Math.round((I.s+I.c*E)*1e5)/1e5,I)},_addRotationalPropTween=function(E,I,B,U,V,X){var Y=360*(X?_DEG2RAD:1),K=_isString(V),J=K&&V.charAt(1)==="="?+(V.charAt(0)+"1"):0,xe=parseFloat(J?V.substr(2):V)*(X?_DEG2RAD:1),Z=J?xe*J:xe-U,_e=U+Z,Se,Ee;return K&&(Se=V.split("_")[1],Se==="short"&&(Z%=Y,Z!==Z%(Y/2)&&(Z+=Z<0?Y:-Y)),Se==="cw"&&Z<0?Z=(Z+Y*1e10)%Y-~~(Z/Y)*Y:Se==="ccw"&&Z>0&&(Z=(Z-Y*1e10)%Y-~~(Z/Y)*Y)),E._pt=Ee=new PropTween(E._pt,I,B,U,Z,_renderPropWithEnd),Ee.e=_e,Ee},_initCore=function(){_windowExists()&&(_win=window,gsap=_getGSAP(),_PIXI=_PIXI||_win.PIXI,_isV4=_PIXI&&_PIXI.VERSION&&_PIXI.VERSION.charAt(0)==="4",_splitColor=function(I){return gsap.utils.splitColor((I+"").substr(0,2)==="0x"?"#"+I.substr(2):I)})},i$7,p$3;for(i$7=0;i$7<_xyContexts.length;i$7++)p$3=_xyContexts[i$7],_contexts[p$3+"X"]=p$3,_contexts[p$3+"Y"]=p$3;var PixiPlugin={version:"3.11.5",name:"pixi",register:function(E,I,B){gsap=E,PropTween=B,_getSetter=I.getSetter,_initCore()},registerPIXI:function(E){_PIXI=E},init:function(E,I,B,U,V){if(_PIXI||_initCore(),!_PIXI||!(E instanceof _PIXI.DisplayObject))return console.warn(E,"is not a DisplayObject or PIXI was not found. PixiPlugin.registerPIXI(PIXI);"),!1;var X,Y,K,J,xe,Z,_e,Se,Ee;for(Z in I){if(X=_contexts[Z],K=I[Z],X)Y=~Z.charAt(Z.length-1).toLowerCase().indexOf("x")?"x":"y",this.add(E[X],Y,E[X][Y],X==="skew"?_degreesToRadians(K):K,0,0,0,0,0,1);else if(Z==="scale"||Z==="anchor"||Z==="pivot"||Z==="tileScale")this.add(E[Z],"x",E[Z].x,K),this.add(E[Z],"y",E[Z].y,K);else if(Z==="rotation"||Z==="angle")_addRotationalPropTween(this,E,Z,E[Z],K,Z==="rotation");else if(_colorMatrixFilterProps[Z])J||(_parseColorMatrixFilter(E,I.colorMatrixFilter||I,this),J=!0);else if(Z==="blur"||Z==="blurX"||Z==="blurY"||Z==="blurPadding"){if(xe=_getFilter(E,"BlurFilter"),this.add(xe,Z,xe[Z],K),I.blurPadding!==0)for(_e=I.blurPadding||Math.max(xe[Z],K)*2,Se=E.filters.length;--Se>-1;)E.filters[Se].padding=Math.max(E.filters[Se].padding,_e)}else if(_colorProps[Z])if((Z==="lineColor"||Z==="fillColor")&&E instanceof _PIXI.Graphics)for(Ee=(E.geometry||E).graphicsData,this._pt=new PropTween(this._pt,E,Z,0,0,_renderDirtyCache,{g:E.geometry||E}),Se=Ee.length;--Se>-1;)_addColorTween(_isV4?Ee[Se]:Ee[Se][Z.substr(0,4)+"Style"],_isV4?Z:"color",K,this);else _addColorTween(E,Z,K,this);else Z==="autoAlpha"?(this._pt=new PropTween(this._pt,E,"visible",0,0,_renderAutoAlpha),this.add(E,"alpha",E.alpha,K),this._props.push("alpha","visible")):Z!=="resolution"&&this.add(E,Z,"get",K);this._props.push(Z)}}};_getGSAP()&&gsap.registerPlugin(PixiPlugin),gsap$2.registerPlugin(PixiPlugin),PixiPlugin.registerPIXI(PIXI__namespace),gsap$2.registerPlugin(CustomEase),CustomEase.create("springBounce","0.32, 1.06, 0.61, 0.93"),gsap$2.registerEffect({name:"PULSE",effect(C,E){return gsap$2.timeline().fromTo(C,{pixi:{scaleX:.9,scaleY:.9}},{pixi:{scaleX:1.2,scaleY:1.2},duration:.5,ease:"slow"}).to(C,{pixi:{scaleX:1,scaleY:1,...E},duration:.5})}}),gsap$2.registerEffect({name:"SHAKE",effect(C,E){return gsap$2.timeline().to(C,{duration:.1,pixi:{x:"+=5"}}).to(C,{duration:.1,pixi:{x:"-=10"}}).to(C,{duration:.1,pixi:{x:"+=10"}}).to(C,{duration:.1,pixi:{x:"-=10"}}).to(C,{duration:.1,pixi:{x:"+=5"}}).to(C,{pixi:{...E},duration:.5})}}),gsap$2.registerEffect({name:"SWING",effect(C,E){return gsap$2.timeline().to(C,{duration:.5,pixi:{rotation:1}}).to(C,{duration:.5,pixi:{rotation:-1.5}}).to(C,{pixi:{rotation:0,...E},duration:.5})}}),gsap$2.registerEffect({name:"JELLO",effect(C,E){return gsap$2.timeline().to(C,{duration:.3,pixi:{scaleX:.5,rotation:-1}}).to(C,{duration:.4,pixi:{scaleX:1.5,rotation:1}}).to(C,{duration:.3,pixi:{scaleX:1,rotation:0}}).to(C,{pixi:{rotation:0,...E},duration:.5})}}),gsap$2.registerEffect({name:"WOOBLE",effect(C,E){return gsap$2.timeline().to(C,{duration:.3,pixi:{scaleX:.5,x:E.x*-.5}}).to(C,{duration:.3,pixi:{scaleX:1.5,x:E.x*1.5}}).to(C,{duration:.3,pixi:{scaleX:.5,x:E.x*-.01}}).to(C,{duration:.3,pixi:{scaleX:1,x:E.x}}).to(C,{rotation:0,pixi:{...E,rotation:0},duration:.5})}}),gsap$2.registerEffect({name:"NONE",effect(C,E){return gsap$2.timeline().to(C,{duration:0})}}),gsap$2.registerEffect({name:"FLASH",effect(C,E){return gsap$2.timeline().to(C,{duration:.2,alpha:0}).to(C,{duration:.2,alpha:1}).to(C,{duration:.2,alpha:0}).to(C,{duration:.2,alpha:1}).to(C,{duration:.2,alpha:0}).to(C,{duration:.2,alpha:1,...E})}}),gsap$2.registerEffect({name:"BOUNCE_IN",effect(C,E){return gsap$2.timeline().fromTo(C,{pixi:{scaleX:1.5,scaleY:1.5}},{...E,pixi:{x:E==null?void 0:E.x,y:E==null?void 0:E.y,scaleX:1,scaleY:1},duration:2,ease:"bounce.out"})}}),gsap$2.registerEffect({name:"BOUNCE_IN_DOWN",effect(C,E){return gsap$2.timeline().from(C,{duration:2,ease:"bounce.out",immediateRender:!0,pixi:{...E,x:E==null?void 0:E.x,y:-2500,alpha:0}})}}),gsap$2.registerEffect({name:"BOUNCE_IN_LEFT",effect(C,E){return gsap$2.timeline().from(C,{ease:"bounce.out",duration:2,pixi:{...E,x:-1500,alpha:0}})}}),gsap$2.registerEffect({name:"BOUNCE_IN_RIGHT",effect(C,E){const I=Math.max(1e3,(E==null?void 0:E.maxX)+500);return gsap$2.timeline().from(C,{ease:"bounce.out",duration:2,pixi:{...E,x:I}})}}),gsap$2.registerEffect({name:"BOUNCE_IN_UP",effect(C,E){return gsap$2.timeline().from(C,{ease:"bounce.out",pixi:{...E,y:2e3},duration:2})}}),gsap$2.registerEffect({name:"BOUNCE_OUT",effect(C,E){return gsap$2.timeline().from(C,{...E,ease:"bounce.in",pixi:{y:2e3},duration:1.5})}}),gsap$2.registerEffect({name:"FADE_IN",effect(C){return gsap$2.timeline().fromTo(C,{alpha:0},{ease:"power4.in",alpha:1,duration:1})}}),gsap$2.registerEffect({name:"FADE_IN_DOWN",effect(C,E){return gsap$2.timeline().fromTo(C,{pixi:{y:-1500,alpha:0}},{duration:1,ease:"power4.in",pixi:{y:0,alpha:1,...E}})}}),gsap$2.registerEffect({name:"FADE_IN_LEFT",effect(C,E){return gsap$2.timeline().fromTo(C,{pixi:{alpha:0,x:-2e3}},{ease:"power4.in",pixi:{x:0,alpha:1,...E},duration:1})}}),gsap$2.registerEffect({name:"FADE_IN_RIGHT",effect(C,E){return gsap$2.fromTo(C,{pixi:{x:2e3,alpha:0}},{duration:1,ease:"power4.in",pixi:{x:0,alpha:1,...E}})}}),gsap$2.registerEffect({name:"FADE_IN_UP",effect(C,E){return gsap$2.fromTo(C,{pixi:{y:2e3,alpha:0}},{duration:.8,ease:"power4.in",pixi:{y:0,alpha:1,...E}})}}),gsap$2.registerEffect({name:"SPIN",effect(C){return gsap$2.to(C,{rotation:(E,I)=>gsap$2.utils.snap(360,Number(gsap$2.getProperty(I,"rotation"))+360)})}});function useGsapEffect(){return{updateEffect:React.useCallback((E,I,B)=>{if(!E)return console.warn("useGsapEffect: Target container is null or undefined"),gsap$2.to({},{duration:0});if(!I||typeof I!="string")return console.warn("useGsapEffect: Invalid effect name provided"),gsap$2.to(E,{duration:0});const U={immediateRender:!1,overwrite:!0,...B};try{return gsap$2.effects[I]?gsap$2.effects[I](E,U):gsap$2.effects.NONE?(console.warn(`useGsapEffect: Effect "${I}" not found, falling back to NONE`),gsap$2.effects.NONE(E,U)):(console.warn("useGsapEffect: NONE effect not found, returning empty tween"),gsap$2.to(E,{duration:0}))}catch(V){return console.error("useGsapEffect: Error applying effect:",V),gsap$2.to(E,{duration:0})}},[])}}var Animations=(C=>(C.NONE="NONE",C.FLASH="FLASH",C.PULSE="PULSE",C.SHAKE="SHAKE",C.SWING="SWING",C.JELLO="JELLO",C.WOOBLE="WOOBLE",C.FADE_IN="FADE_IN",C.FADE_OUT="FADE_OUT",C.FADE_IN_OUT="FADE_IN_OUT",C.SLIDE_IN_LEFT="SLIDE_IN_LEFT",C.SLIDE_IN_RIGHT="SLIDE_IN_RIGHT",C.SLIDE_IN_TOP="SLIDE_IN_TOP",C.SLIDE_IN_BOTTOM="SLIDE_IN_BOTTOM",C.SLIDE_OUT_LEFT="SLIDE_OUT_LEFT",C.SLIDE_OUT_RIGHT="SLIDE_OUT_RIGHT",C.SLIDE_OUT_TOP="SLIDE_OUT_TOP",C.SLIDE_OUT_BOTTOM="SLIDE_OUT_BOTTOM",C.ZOOM_IN="ZOOM_IN",C.ZOOM_OUT="ZOOM_OUT",C.ZOOM_IN_OUT="ZOOM_IN_OUT",C.BOUNCE_IN="BOUNCE_IN",C.BOUNCE_OUT="BOUNCE_OUT",C.BOUNCE_IN_OUT="BOUNCE_IN_OUT",C.BOUNCE_IN_DOWN="BOUNCE_IN_DOWN",C.BOUNCE_IN_LEFT="BOUNCE_IN_LEFT",C.BOUNCE_IN_RIGHT="BOUNCE_IN_RIGHT",C.BOUNCE_IN_UP="BOUNCE_IN_UP",C.BOUNCE_OUT_DOWN="BOUNCE_OUT_DOWN",C.BOUNCE_OUT_LEFT="BOUNCE_OUT_LEFT",C.BOUNCE_OUT_RIGHT="BOUNCE_OUT_RIGHT",C.BOUNCE_OUT_UP="BOUNCE_OUT_UP",C.FADE_IN_DOWN="FADE_IN_DOWN",C.FADE_IN_LEFT="FADE_IN_LEFT",C.FADE_IN_RIGHT="FADE_IN_RIGHT",C.FADE_IN_UP="FADE_IN_UP",C.FADE_OUT_DOWN="FADE_OUT_DOWN",C.FADE_OUT_LEFT="FADE_OUT_LEFT",C.FADE_OUT_RIGHT="FADE_OUT_RIGHT",C.FADE_OUT_UP="FADE_OUT_UP",C.ELASTIC_IN="ELASTIC_IN",C.ELASTIC_OUT="ELASTIC_OUT",C.ELASTIC_IN_OUT="ELASTIC_IN_OUT",C.BACK_IN="BACK_IN",C.BACK_OUT="BACK_OUT",C.BACK_IN_OUT="BACK_IN_OUT",C.CIRCULAR_IN="CIRCULAR_IN",C.CIRCULAR_OUT="CIRCULAR_OUT",C.CIRCULAR_IN_OUT="CIRCULAR_IN_OUT",C.EXPO_IN="EXPO_IN",C.EXPO_OUT="EXPO_OUT",C.EXPO_IN_OUT="EXPO_IN_OUT",C.SINE_IN="SINE_IN",C.SINE_OUT="SINE_OUT",C.SINE_IN_OUT="SINE_IN_OUT",C.BOUNCE="BOUNCE",C.ELASTIC="ELASTIC",C.BACK="BACK",C.CIRCULAR="CIRCULAR",C.EXPO="EXPO",C.SINE="SINE",C.SPIN="SPIN",C))(Animations||{}),ENV=(C=>(C[C.WEBGL_LEGACY=0]="WEBGL_LEGACY",C[C.WEBGL=1]="WEBGL",C[C.WEBGL2=2]="WEBGL2",C))(ENV||{}),RENDERER_TYPE=(C=>(C[C.UNKNOWN=0]="UNKNOWN",C[C.WEBGL=1]="WEBGL",C[C.CANVAS=2]="CANVAS",C))(RENDERER_TYPE||{}),BUFFER_BITS=(C=>(C[C.COLOR=16384]="COLOR",C[C.DEPTH=256]="DEPTH",C[C.STENCIL=1024]="STENCIL",C))(BUFFER_BITS||{}),BLEND_MODES=(C=>(C[C.NORMAL=0]="NORMAL",C[C.ADD=1]="ADD",C[C.MULTIPLY=2]="MULTIPLY",C[C.SCREEN=3]="SCREEN",C[C.OVERLAY=4]="OVERLAY",C[C.DARKEN=5]="DARKEN",C[C.LIGHTEN=6]="LIGHTEN",C[C.COLOR_DODGE=7]="COLOR_DODGE",C[C.COLOR_BURN=8]="COLOR_BURN",C[C.HARD_LIGHT=9]="HARD_LIGHT",C[C.SOFT_LIGHT=10]="SOFT_LIGHT",C[C.DIFFERENCE=11]="DIFFERENCE",C[C.EXCLUSION=12]="EXCLUSION",C[C.HUE=13]="HUE",C[C.SATURATION=14]="SATURATION",C[C.COLOR=15]="COLOR",C[C.LUMINOSITY=16]="LUMINOSITY",C[C.NORMAL_NPM=17]="NORMAL_NPM",C[C.ADD_NPM=18]="ADD_NPM",C[C.SCREEN_NPM=19]="SCREEN_NPM",C[C.NONE=20]="NONE",C[C.SRC_OVER=0]="SRC_OVER",C[C.SRC_IN=21]="SRC_IN",C[C.SRC_OUT=22]="SRC_OUT",C[C.SRC_ATOP=23]="SRC_ATOP",C[C.DST_OVER=24]="DST_OVER",C[C.DST_IN=25]="DST_IN",C[C.DST_OUT=26]="DST_OUT",C[C.DST_ATOP=27]="DST_ATOP",C[C.ERASE=26]="ERASE",C[C.SUBTRACT=28]="SUBTRACT",C[C.XOR=29]="XOR",C))(BLEND_MODES||{}),DRAW_MODES=(C=>(C[C.POINTS=0]="POINTS",C[C.LINES=1]="LINES",C[C.LINE_LOOP=2]="LINE_LOOP",C[C.LINE_STRIP=3]="LINE_STRIP",C[C.TRIANGLES=4]="TRIANGLES",C[C.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",C[C.TRIANGLE_FAN=6]="TRIANGLE_FAN",C))(DRAW_MODES||{}),FORMATS=(C=>(C[C.RGBA=6408]="RGBA",C[C.RGB=6407]="RGB",C[C.RG=33319]="RG",C[C.RED=6403]="RED",C[C.RGBA_INTEGER=36249]="RGBA_INTEGER",C[C.RGB_INTEGER=36248]="RGB_INTEGER",C[C.RG_INTEGER=33320]="RG_INTEGER",C[C.RED_INTEGER=36244]="RED_INTEGER",C[C.ALPHA=6406]="ALPHA",C[C.LUMINANCE=6409]="LUMINANCE",C[C.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",C[C.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",C[C.DEPTH_STENCIL=34041]="DEPTH_STENCIL",C))(FORMATS||{}),TARGETS=(C=>(C[C.TEXTURE_2D=3553]="TEXTURE_2D",C[C.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",C[C.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",C[C.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",C[C.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",C[C.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",C[C.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",C[C.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",C[C.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",C))(TARGETS||{}),TYPES=(C=>(C[C.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",C[C.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",C[C.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",C[C.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",C[C.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",C[C.UNSIGNED_INT=5125]="UNSIGNED_INT",C[C.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",C[C.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",C[C.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",C[C.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",C[C.BYTE=5120]="BYTE",C[C.SHORT=5122]="SHORT",C[C.INT=5124]="INT",C[C.FLOAT=5126]="FLOAT",C[C.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",C[C.HALF_FLOAT=36193]="HALF_FLOAT",C))(TYPES||{}),SAMPLER_TYPES=(C=>(C[C.FLOAT=0]="FLOAT",C[C.INT=1]="INT",C[C.UINT=2]="UINT",C))(SAMPLER_TYPES||{}),SCALE_MODES=(C=>(C[C.NEAREST=0]="NEAREST",C[C.LINEAR=1]="LINEAR",C))(SCALE_MODES||{}),WRAP_MODES=(C=>(C[C.CLAMP=33071]="CLAMP",C[C.REPEAT=10497]="REPEAT",C[C.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",C))(WRAP_MODES||{}),MIPMAP_MODES=(C=>(C[C.OFF=0]="OFF",C[C.POW2=1]="POW2",C[C.ON=2]="ON",C[C.ON_MANUAL=3]="ON_MANUAL",C))(MIPMAP_MODES||{}),ALPHA_MODES=(C=>(C[C.NPM=0]="NPM",C[C.UNPACK=1]="UNPACK",C[C.PMA=2]="PMA",C[C.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",C[C.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",C[C.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",C))(ALPHA_MODES||{}),CLEAR_MODES=(C=>(C[C.NO=0]="NO",C[C.YES=1]="YES",C[C.AUTO=2]="AUTO",C[C.BLEND=0]="BLEND",C[C.CLEAR=1]="CLEAR",C[C.BLIT=2]="BLIT",C))(CLEAR_MODES||{}),GC_MODES=(C=>(C[C.AUTO=0]="AUTO",C[C.MANUAL=1]="MANUAL",C))(GC_MODES||{}),PRECISION=(C=>(C.LOW="lowp",C.MEDIUM="mediump",C.HIGH="highp",C))(PRECISION||{}),MASK_TYPES=(C=>(C[C.NONE=0]="NONE",C[C.SCISSOR=1]="SCISSOR",C[C.STENCIL=2]="STENCIL",C[C.SPRITE=3]="SPRITE",C[C.COLOR=4]="COLOR",C))(MASK_TYPES||{}),MSAA_QUALITY=(C=>(C[C.NONE=0]="NONE",C[C.LOW=2]="LOW",C[C.MEDIUM=4]="MEDIUM",C[C.HIGH=8]="HIGH",C))(MSAA_QUALITY||{}),BUFFER_TYPE=(C=>(C[C.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",C[C.ARRAY_BUFFER=34962]="ARRAY_BUFFER",C[C.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",C))(BUFFER_TYPE||{});const BrowserAdapter={createCanvas:(C,E)=>{const I=document.createElement("canvas");return I.width=C,I.height=E,I},getCanvasRenderingContext2D:()=>CanvasRenderingContext2D,getWebGLRenderingContext:()=>WebGLRenderingContext,getNavigator:()=>navigator,getBaseUrl:()=>document.baseURI??window.location.href,getFontFaceSet:()=>document.fonts,fetch:(C,E)=>fetch(C,E),parseXML:C=>new DOMParser().parseFromString(C,"text/xml")},settings={ADAPTER:BrowserAdapter,RESOLUTION:1,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};var appleIphone=/iPhone/i,appleIpod=/iPod/i,appleTablet=/iPad/i,appleUniversal=/\biOS-universal(?:.+)Mac\b/i,androidPhone=/\bAndroid(?:.+)Mobile\b/i,androidTablet=/Android/i,amazonPhone=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,amazonTablet=/Silk/i,windowsPhone=/Windows Phone/i,windowsTablet=/\bWindows(?:.+)ARM\b/i,otherBlackBerry=/BlackBerry/i,otherBlackBerry10=/BB10/i,otherOpera=/Opera Mini/i,otherChrome=/\b(CriOS|Chrome)(?:.+)Mobile/i,otherFirefox=/Mobile(?:.+)Firefox\b/i,isAppleTabletOnIos13=function(C){return typeof C<"u"&&C.platform==="MacIntel"&&typeof C.maxTouchPoints=="number"&&C.maxTouchPoints>1&&typeof MSStream>"u"};function createMatch(C){return function(E){return E.test(C)}}function isMobile$1(C){var E={userAgent:"",platform:"",maxTouchPoints:0};!C&&typeof navigator<"u"?E={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof C=="string"?E.userAgent=C:C&&C.userAgent&&(E={userAgent:C.userAgent,platform:C.platform,maxTouchPoints:C.maxTouchPoints||0});var I=E.userAgent,B=I.split("[FBAN");typeof B[1]<"u"&&(I=B[0]),B=I.split("Twitter"),typeof B[1]<"u"&&(I=B[0]);var U=createMatch(I),V={apple:{phone:U(appleIphone)&&!U(windowsPhone),ipod:U(appleIpod),tablet:!U(appleIphone)&&(U(appleTablet)||isAppleTabletOnIos13(E))&&!U(windowsPhone),universal:U(appleUniversal),device:(U(appleIphone)||U(appleIpod)||U(appleTablet)||U(appleUniversal)||isAppleTabletOnIos13(E))&&!U(windowsPhone)},amazon:{phone:U(amazonPhone),tablet:!U(amazonPhone)&&U(amazonTablet),device:U(amazonPhone)||U(amazonTablet)},android:{phone:!U(windowsPhone)&&U(amazonPhone)||!U(windowsPhone)&&U(androidPhone),tablet:!U(windowsPhone)&&!U(amazonPhone)&&!U(androidPhone)&&(U(amazonTablet)||U(androidTablet)),device:!U(windowsPhone)&&(U(amazonPhone)||U(amazonTablet)||U(androidPhone)||U(androidTablet))||U(/\bokhttp\b/i)},windows:{phone:U(windowsPhone),tablet:U(windowsTablet),device:U(windowsPhone)||U(windowsTablet)},other:{blackberry:U(otherBlackBerry),blackberry10:U(otherBlackBerry10),opera:U(otherOpera),firefox:U(otherFirefox),chrome:U(otherChrome),device:U(otherBlackBerry)||U(otherBlackBerry10)||U(otherOpera)||U(otherFirefox)||U(otherChrome)},any:!1,phone:!1,tablet:!1};return V.any=V.apple.device||V.android.device||V.windows.device||V.other.device,V.phone=V.apple.phone||V.android.phone||V.windows.phone,V.tablet=V.apple.tablet||V.android.tablet||V.windows.tablet,V}const isMobileCall=isMobile$1.default??isMobile$1,isMobile=isMobileCall(globalThis.navigator);settings.RETINA_PREFIX=/@([0-9\.]+)x/,settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var eventemitter3={exports:{}};(function(C){var E=Object.prototype.hasOwnProperty,I="~";function B(){}Object.create&&(B.prototype=Object.create(null),new B().__proto__||(I=!1));function U(K,J,xe){this.fn=K,this.context=J,this.once=xe||!1}function V(K,J,xe,Z,_e){if(typeof xe!="function")throw new TypeError("The listener must be a function");var Se=new U(xe,Z||K,_e),Ee=I?I+J:J;return K._events[Ee]?K._events[Ee].fn?K._events[Ee]=[K._events[Ee],Se]:K._events[Ee].push(Se):(K._events[Ee]=Se,K._eventsCount++),K}function X(K,J){--K._eventsCount===0?K._events=new B:delete K._events[J]}function Y(){this._events=new B,this._eventsCount=0}Y.prototype.eventNames=function(){var J=[],xe,Z;if(this._eventsCount===0)return J;for(Z in xe=this._events)E.call(xe,Z)&&J.push(I?Z.slice(1):Z);return Object.getOwnPropertySymbols?J.concat(Object.getOwnPropertySymbols(xe)):J},Y.prototype.listeners=function(J){var xe=I?I+J:J,Z=this._events[xe];if(!Z)return[];if(Z.fn)return[Z.fn];for(var _e=0,Se=Z.length,Ee=new Array(Se);_e<Se;_e++)Ee[_e]=Z[_e].fn;return Ee},Y.prototype.listenerCount=function(J){var xe=I?I+J:J,Z=this._events[xe];return Z?Z.fn?1:Z.length:0},Y.prototype.emit=function(J,xe,Z,_e,Se,Ee){var Ae=I?I+J:J;if(!this._events[Ae])return!1;var Re=this._events[Ae],Te=arguments.length,we,Pe;if(Re.fn){switch(Re.once&&this.removeListener(J,Re.fn,void 0,!0),Te){case 1:return Re.fn.call(Re.context),!0;case 2:return Re.fn.call(Re.context,xe),!0;case 3:return Re.fn.call(Re.context,xe,Z),!0;case 4:return Re.fn.call(Re.context,xe,Z,_e),!0;case 5:return Re.fn.call(Re.context,xe,Z,_e,Se),!0;case 6:return Re.fn.call(Re.context,xe,Z,_e,Se,Ee),!0}for(Pe=1,we=new Array(Te-1);Pe<Te;Pe++)we[Pe-1]=arguments[Pe];Re.fn.apply(Re.context,we)}else{var Ie=Re.length,Me;for(Pe=0;Pe<Ie;Pe++)switch(Re[Pe].once&&this.removeListener(J,Re[Pe].fn,void 0,!0),Te){case 1:Re[Pe].fn.call(Re[Pe].context);break;case 2:Re[Pe].fn.call(Re[Pe].context,xe);break;case 3:Re[Pe].fn.call(Re[Pe].context,xe,Z);break;case 4:Re[Pe].fn.call(Re[Pe].context,xe,Z,_e);break;default:if(!we)for(Me=1,we=new Array(Te-1);Me<Te;Me++)we[Me-1]=arguments[Me];Re[Pe].fn.apply(Re[Pe].context,we)}}return!0},Y.prototype.on=function(J,xe,Z){return V(this,J,xe,Z,!1)},Y.prototype.once=function(J,xe,Z){return V(this,J,xe,Z,!0)},Y.prototype.removeListener=function(J,xe,Z,_e){var Se=I?I+J:J;if(!this._events[Se])return this;if(!xe)return X(this,Se),this;var Ee=this._events[Se];if(Ee.fn)Ee.fn===xe&&(!_e||Ee.once)&&(!Z||Ee.context===Z)&&X(this,Se);else{for(var Ae=0,Re=[],Te=Ee.length;Ae<Te;Ae++)(Ee[Ae].fn!==xe||_e&&!Ee[Ae].once||Z&&Ee[Ae].context!==Z)&&Re.push(Ee[Ae]);Re.length?this._events[Se]=Re.length===1?Re[0]:Re:X(this,Se)}return this},Y.prototype.removeAllListeners=function(J){var xe;return J?(xe=I?I+J:J,this._events[xe]&&X(this,xe)):(this._events=new B,this._eventsCount=0),this},Y.prototype.off=Y.prototype.removeListener,Y.prototype.addListener=Y.prototype.on,Y.prefixed=I,Y.EventEmitter=Y,C.exports=Y})(eventemitter3);var eventemitter3Exports=eventemitter3.exports;const EventEmitter=getDefaultExportFromCjs(eventemitter3Exports);var earcut$2={exports:{}};earcut$2.exports=earcut,earcut$2.exports.default=earcut;function earcut(C,E,I){I=I||2;var B=E&&E.length,U=B?E[0]*I:C.length,V=linkedList(C,0,U,I,!0),X=[];if(!V||V.next===V.prev)return X;var Y,K,J,xe,Z,_e,Se;if(B&&(V=eliminateHoles(C,E,V,I)),C.length>80*I){Y=J=C[0],K=xe=C[1];for(var Ee=I;Ee<U;Ee+=I)Z=C[Ee],_e=C[Ee+1],Z<Y&&(Y=Z),_e<K&&(K=_e),Z>J&&(J=Z),_e>xe&&(xe=_e);Se=Math.max(J-Y,xe-K),Se=Se!==0?32767/Se:0}return earcutLinked(V,X,I,Y,K,Se,0),X}function linkedList(C,E,I,B,U){var V,X;if(U===signedArea(C,E,I,B)>0)for(V=E;V<I;V+=B)X=insertNode(V,C[V],C[V+1],X);else for(V=I-B;V>=E;V-=B)X=insertNode(V,C[V],C[V+1],X);return X&&equals(X,X.next)&&(removeNode(X),X=X.next),X}function filterPoints(C,E){if(!C)return C;E||(E=C);var I=C,B;do if(B=!1,!I.steiner&&(equals(I,I.next)||area(I.prev,I,I.next)===0)){if(removeNode(I),I=E=I.prev,I===I.next)break;B=!0}else I=I.next;while(B||I!==E);return E}function earcutLinked(C,E,I,B,U,V,X){if(C){!X&&V&&indexCurve(C,B,U,V);for(var Y=C,K,J;C.prev!==C.next;){if(K=C.prev,J=C.next,V?isEarHashed(C,B,U,V):isEar(C)){E.push(K.i/I|0),E.push(C.i/I|0),E.push(J.i/I|0),removeNode(C),C=J.next,Y=J.next;continue}if(C=J,C===Y){X?X===1?(C=cureLocalIntersections(filterPoints(C),E,I),earcutLinked(C,E,I,B,U,V,2)):X===2&&splitEarcut(C,E,I,B,U,V):earcutLinked(filterPoints(C),E,I,B,U,V,1);break}}}}function isEar(C){var E=C.prev,I=C,B=C.next;if(area(E,I,B)>=0)return!1;for(var U=E.x,V=I.x,X=B.x,Y=E.y,K=I.y,J=B.y,xe=U<V?U<X?U:X:V<X?V:X,Z=Y<K?Y<J?Y:J:K<J?K:J,_e=U>V?U>X?U:X:V>X?V:X,Se=Y>K?Y>J?Y:J:K>J?K:J,Ee=B.next;Ee!==E;){if(Ee.x>=xe&&Ee.x<=_e&&Ee.y>=Z&&Ee.y<=Se&&pointInTriangle(U,Y,V,K,X,J,Ee.x,Ee.y)&&area(Ee.prev,Ee,Ee.next)>=0)return!1;Ee=Ee.next}return!0}function isEarHashed(C,E,I,B){var U=C.prev,V=C,X=C.next;if(area(U,V,X)>=0)return!1;for(var Y=U.x,K=V.x,J=X.x,xe=U.y,Z=V.y,_e=X.y,Se=Y<K?Y<J?Y:J:K<J?K:J,Ee=xe<Z?xe<_e?xe:_e:Z<_e?Z:_e,Ae=Y>K?Y>J?Y:J:K>J?K:J,Re=xe>Z?xe>_e?xe:_e:Z>_e?Z:_e,Te=zOrder(Se,Ee,E,I,B),we=zOrder(Ae,Re,E,I,B),Pe=C.prevZ,Ie=C.nextZ;Pe&&Pe.z>=Te&&Ie&&Ie.z<=we;){if(Pe.x>=Se&&Pe.x<=Ae&&Pe.y>=Ee&&Pe.y<=Re&&Pe!==U&&Pe!==X&&pointInTriangle(Y,xe,K,Z,J,_e,Pe.x,Pe.y)&&area(Pe.prev,Pe,Pe.next)>=0||(Pe=Pe.prevZ,Ie.x>=Se&&Ie.x<=Ae&&Ie.y>=Ee&&Ie.y<=Re&&Ie!==U&&Ie!==X&&pointInTriangle(Y,xe,K,Z,J,_e,Ie.x,Ie.y)&&area(Ie.prev,Ie,Ie.next)>=0))return!1;Ie=Ie.nextZ}for(;Pe&&Pe.z>=Te;){if(Pe.x>=Se&&Pe.x<=Ae&&Pe.y>=Ee&&Pe.y<=Re&&Pe!==U&&Pe!==X&&pointInTriangle(Y,xe,K,Z,J,_e,Pe.x,Pe.y)&&area(Pe.prev,Pe,Pe.next)>=0)return!1;Pe=Pe.prevZ}for(;Ie&&Ie.z<=we;){if(Ie.x>=Se&&Ie.x<=Ae&&Ie.y>=Ee&&Ie.y<=Re&&Ie!==U&&Ie!==X&&pointInTriangle(Y,xe,K,Z,J,_e,Ie.x,Ie.y)&&area(Ie.prev,Ie,Ie.next)>=0)return!1;Ie=Ie.nextZ}return!0}function cureLocalIntersections(C,E,I){var B=C;do{var U=B.prev,V=B.next.next;!equals(U,V)&&intersects(U,B,B.next,V)&&locallyInside(U,V)&&locallyInside(V,U)&&(E.push(U.i/I|0),E.push(B.i/I|0),E.push(V.i/I|0),removeNode(B),removeNode(B.next),B=C=V),B=B.next}while(B!==C);return filterPoints(B)}function splitEarcut(C,E,I,B,U,V){var X=C;do{for(var Y=X.next.next;Y!==X.prev;){if(X.i!==Y.i&&isValidDiagonal(X,Y)){var K=splitPolygon(X,Y);X=filterPoints(X,X.next),K=filterPoints(K,K.next),earcutLinked(X,E,I,B,U,V,0),earcutLinked(K,E,I,B,U,V,0);return}Y=Y.next}X=X.next}while(X!==C)}function eliminateHoles(C,E,I,B){var U=[],V,X,Y,K,J;for(V=0,X=E.length;V<X;V++)Y=E[V]*B,K=V<X-1?E[V+1]*B:C.length,J=linkedList(C,Y,K,B,!1),J===J.next&&(J.steiner=!0),U.push(getLeftmost(J));for(U.sort(compareX),V=0;V<U.length;V++)I=eliminateHole(U[V],I);return I}function compareX(C,E){return C.x-E.x}function eliminateHole(C,E){var I=findHoleBridge(C,E);if(!I)return E;var B=splitPolygon(I,C);return filterPoints(B,B.next),filterPoints(I,I.next)}function findHoleBridge(C,E){var I=E,B=C.x,U=C.y,V=-1/0,X;do{if(U<=I.y&&U>=I.next.y&&I.next.y!==I.y){var Y=I.x+(U-I.y)*(I.next.x-I.x)/(I.next.y-I.y);if(Y<=B&&Y>V&&(V=Y,X=I.x<I.next.x?I:I.next,Y===B))return X}I=I.next}while(I!==E);if(!X)return null;var K=X,J=X.x,xe=X.y,Z=1/0,_e;I=X;do B>=I.x&&I.x>=J&&B!==I.x&&pointInTriangle(U<xe?B:V,U,J,xe,U<xe?V:B,U,I.x,I.y)&&(_e=Math.abs(U-I.y)/(B-I.x),locallyInside(I,C)&&(_e<Z||_e===Z&&(I.x>X.x||I.x===X.x&&sectorContainsSector(X,I)))&&(X=I,Z=_e)),I=I.next;while(I!==K);return X}function sectorContainsSector(C,E){return area(C.prev,C,E.prev)<0&&area(E.next,C,C.next)<0}function indexCurve(C,E,I,B){var U=C;do U.z===0&&(U.z=zOrder(U.x,U.y,E,I,B)),U.prevZ=U.prev,U.nextZ=U.next,U=U.next;while(U!==C);U.prevZ.nextZ=null,U.prevZ=null,sortLinked(U)}function sortLinked(C){var E,I,B,U,V,X,Y,K,J=1;do{for(I=C,C=null,V=null,X=0;I;){for(X++,B=I,Y=0,E=0;E<J&&(Y++,B=B.nextZ,!!B);E++);for(K=J;Y>0||K>0&&B;)Y!==0&&(K===0||!B||I.z<=B.z)?(U=I,I=I.nextZ,Y--):(U=B,B=B.nextZ,K--),V?V.nextZ=U:C=U,U.prevZ=V,V=U;I=B}V.nextZ=null,J*=2}while(X>1);return C}function zOrder(C,E,I,B,U){return C=(C-I)*U|0,E=(E-B)*U|0,C=(C|C<<8)&16711935,C=(C|C<<4)&252645135,C=(C|C<<2)&858993459,C=(C|C<<1)&1431655765,E=(E|E<<8)&16711935,E=(E|E<<4)&252645135,E=(E|E<<2)&858993459,E=(E|E<<1)&1431655765,C|E<<1}function getLeftmost(C){var E=C,I=C;do(E.x<I.x||E.x===I.x&&E.y<I.y)&&(I=E),E=E.next;while(E!==C);return I}function pointInTriangle(C,E,I,B,U,V,X,Y){return(U-X)*(E-Y)>=(C-X)*(V-Y)&&(C-X)*(B-Y)>=(I-X)*(E-Y)&&(I-X)*(V-Y)>=(U-X)*(B-Y)}function isValidDiagonal(C,E){return C.next.i!==E.i&&C.prev.i!==E.i&&!intersectsPolygon(C,E)&&(locallyInside(C,E)&&locallyInside(E,C)&&middleInside(C,E)&&(area(C.prev,C,E.prev)||area(C,E.prev,E))||equals(C,E)&&area(C.prev,C,C.next)>0&&area(E.prev,E,E.next)>0)}function area(C,E,I){return(E.y-C.y)*(I.x-E.x)-(E.x-C.x)*(I.y-E.y)}function equals(C,E){return C.x===E.x&&C.y===E.y}function intersects(C,E,I,B){var U=sign(area(C,E,I)),V=sign(area(C,E,B)),X=sign(area(I,B,C)),Y=sign(area(I,B,E));return!!(U!==V&&X!==Y||U===0&&onSegment(C,I,E)||V===0&&onSegment(C,B,E)||X===0&&onSegment(I,C,B)||Y===0&&onSegment(I,E,B))}function onSegment(C,E,I){return E.x<=Math.max(C.x,I.x)&&E.x>=Math.min(C.x,I.x)&&E.y<=Math.max(C.y,I.y)&&E.y>=Math.min(C.y,I.y)}function sign(C){return C>0?1:C<0?-1:0}function intersectsPolygon(C,E){var I=C;do{if(I.i!==C.i&&I.next.i!==C.i&&I.i!==E.i&&I.next.i!==E.i&&intersects(I,I.next,C,E))return!0;I=I.next}while(I!==C);return!1}function locallyInside(C,E){return area(C.prev,C,C.next)<0?area(C,E,C.next)>=0&&area(C,C.prev,E)>=0:area(C,E,C.prev)<0||area(C,C.next,E)<0}function middleInside(C,E){var I=C,B=!1,U=(C.x+E.x)/2,V=(C.y+E.y)/2;do I.y>V!=I.next.y>V&&I.next.y!==I.y&&U<(I.next.x-I.x)*(V-I.y)/(I.next.y-I.y)+I.x&&(B=!B),I=I.next;while(I!==C);return B}function splitPolygon(C,E){var I=new Node$1(C.i,C.x,C.y),B=new Node$1(E.i,E.x,E.y),U=C.next,V=E.prev;return C.next=E,E.prev=C,I.next=U,U.prev=I,B.next=I,I.prev=B,V.next=B,B.prev=V,B}function insertNode(C,E,I,B){var U=new Node$1(C,E,I);return B?(U.next=B.next,U.prev=B,B.next.prev=U,B.next=U):(U.prev=U,U.next=U),U}function removeNode(C){C.next.prev=C.prev,C.prev.next=C.next,C.prevZ&&(C.prevZ.nextZ=C.nextZ),C.nextZ&&(C.nextZ.prevZ=C.prevZ)}function Node$1(C,E,I){this.i=C,this.x=E,this.y=I,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}earcut.deviation=function(C,E,I,B){var U=E&&E.length,V=U?E[0]*I:C.length,X=Math.abs(signedArea(C,0,V,I));if(U)for(var Y=0,K=E.length;Y<K;Y++){var J=E[Y]*I,xe=Y<K-1?E[Y+1]*I:C.length;X-=Math.abs(signedArea(C,J,xe,I))}var Z=0;for(Y=0;Y<B.length;Y+=3){var _e=B[Y]*I,Se=B[Y+1]*I,Ee=B[Y+2]*I;Z+=Math.abs((C[_e]-C[Ee])*(C[Se+1]-C[_e+1])-(C[_e]-C[Se])*(C[Ee+1]-C[_e+1]))}return X===0&&Z===0?0:Math.abs((Z-X)/X)};function signedArea(C,E,I,B){for(var U=0,V=E,X=I-B;V<I;V+=B)U+=(C[X]-C[V])*(C[V+1]+C[X+1]),X=V;return U}earcut.flatten=function(C){for(var E=C[0][0].length,I={vertices:[],holes:[],dimensions:E},B=0,U=0;U<C.length;U++){for(var V=0;V<C[U].length;V++)for(var X=0;X<E;X++)I.vertices.push(C[U][V][X]);U>0&&(B+=C[U-1].length,I.holes.push(B))}return I};var earcutExports=earcut$2.exports;const earcut$1=getDefaultExportFromCjs(earcutExports);var punycode$1={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */punycode$1.exports,function(C,E){(function(I){var B=E&&!E.nodeType&&E,U=C&&!C.nodeType&&C,V=typeof commonjsGlobal$1=="object"&&commonjsGlobal$1;(V.global===V||V.window===V||V.self===V)&&(I=V);var X,Y=2147483647,K=36,J=1,xe=26,Z=38,_e=700,Se=72,Ee=128,Ae="-",Re=/^xn--/,Te=/[^\x20-\x7E]/,we=/[\x2E\u3002\uFF0E\uFF61]/g,Pe={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ie=K-J,Me=Math.floor,Oe=String.fromCharCode,Le;function $e(Ge){throw new RangeError(Pe[Ge])}function Ve(Ge,Be){for(var qe=Ge.length,Ke=[];qe--;)Ke[qe]=Be(Ge[qe]);return Ke}function Xe(Ge,Be){var qe=Ge.split("@"),Ke="";qe.length>1&&(Ke=qe[0]+"@",Ge=qe[1]),Ge=Ge.replace(we,".");var Ye=Ge.split("."),tt=Ve(Ye,Be).join(".");return Ke+tt}function Ue(Ge){for(var Be=[],qe=0,Ke=Ge.length,Ye,tt;qe<Ke;)Ye=Ge.charCodeAt(qe++),Ye>=55296&&Ye<=56319&&qe<Ke?(tt=Ge.charCodeAt(qe++),(tt&64512)==56320?Be.push(((Ye&1023)<<10)+(tt&1023)+65536):(Be.push(Ye),qe--)):Be.push(Ye);return Be}function We(Ge){return Ve(Ge,function(Be){var qe="";return Be>65535&&(Be-=65536,qe+=Oe(Be>>>10&1023|55296),Be=56320|Be&1023),qe+=Oe(Be),qe}).join("")}function ze(Ge){return Ge-48<10?Ge-22:Ge-65<26?Ge-65:Ge-97<26?Ge-97:K}function He(Ge,Be){return Ge+22+75*(Ge<26)-((Be!=0)<<5)}function je(Ge,Be,qe){var Ke=0;for(Ge=qe?Me(Ge/_e):Ge>>1,Ge+=Me(Ge/Be);Ge>Ie*xe>>1;Ke+=K)Ge=Me(Ge/Ie);return Me(Ke+(Ie+1)*Ge/(Ge+Z))}function Ne(Ge){var Be=[],qe=Ge.length,Ke,Ye=0,tt=Ee,Ze=Se,it,at,st,Je,et,rt,nt,Qe,ot;for(it=Ge.lastIndexOf(Ae),it<0&&(it=0),at=0;at<it;++at)Ge.charCodeAt(at)>=128&&$e("not-basic"),Be.push(Ge.charCodeAt(at));for(st=it>0?it+1:0;st<qe;){for(Je=Ye,et=1,rt=K;st>=qe&&$e("invalid-input"),nt=ze(Ge.charCodeAt(st++)),(nt>=K||nt>Me((Y-Ye)/et))&&$e("overflow"),Ye+=nt*et,Qe=rt<=Ze?J:rt>=Ze+xe?xe:rt-Ze,!(nt<Qe);rt+=K)ot=K-Qe,et>Me(Y/ot)&&$e("overflow"),et*=ot;Ke=Be.length+1,Ze=je(Ye-Je,Ke,Je==0),Me(Ye/Ke)>Y-tt&&$e("overflow"),tt+=Me(Ye/Ke),Ye%=Ke,Be.splice(Ye++,0,tt)}return We(Be)}function De(Ge){var Be,qe,Ke,Ye,tt,Ze,it,at,st,Je,et,rt=[],nt,Qe,ot,lt;for(Ge=Ue(Ge),nt=Ge.length,Be=Ee,qe=0,tt=Se,Ze=0;Ze<nt;++Ze)et=Ge[Ze],et<128&&rt.push(Oe(et));for(Ke=Ye=rt.length,Ye&&rt.push(Ae);Ke<nt;){for(it=Y,Ze=0;Ze<nt;++Ze)et=Ge[Ze],et>=Be&&et<it&&(it=et);for(Qe=Ke+1,it-Be>Me((Y-qe)/Qe)&&$e("overflow"),qe+=(it-Be)*Qe,Be=it,Ze=0;Ze<nt;++Ze)if(et=Ge[Ze],et<Be&&++qe>Y&&$e("overflow"),et==Be){for(at=qe,st=K;Je=st<=tt?J:st>=tt+xe?xe:st-tt,!(at<Je);st+=K)lt=at-Je,ot=K-Je,rt.push(Oe(He(Je+lt%ot,0))),at=Me(lt/ot);rt.push(Oe(He(at,0))),tt=je(qe,Qe,Ke==Ye),qe=0,++Ke}++qe,++Be}return rt.join("")}function Fe(Ge){return Xe(Ge,function(Be){return Re.test(Be)?Ne(Be.slice(4).toLowerCase()):Be})}function ke(Ge){return Xe(Ge,function(Be){return Te.test(Be)?"xn--"+De(Be):Be})}if(X={version:"1.4.1",ucs2:{decode:Ue,encode:We},decode:Ne,encode:De,toASCII:ke,toUnicode:Fe},B&&U)if(C.exports==B)U.exports=X;else for(Le in X)X.hasOwnProperty(Le)&&(B[Le]=X[Le]);else I.punycode=X})(commonjsGlobal$1)}(punycode$1,punycode$1.exports);var punycodeExports=punycode$1.exports,shams=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var E={},I=Symbol("test"),B=Object(I);if(typeof I=="string"||Object.prototype.toString.call(I)!=="[object Symbol]"||Object.prototype.toString.call(B)!=="[object Symbol]")return!1;var U=42;E[I]=U;for(I in E)return!1;if(typeof Object.keys=="function"&&Object.keys(E).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(E).length!==0)return!1;var V=Object.getOwnPropertySymbols(E);if(V.length!==1||V[0]!==I||!Object.prototype.propertyIsEnumerable.call(E,I))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var X=Object.getOwnPropertyDescriptor(E,I);if(X.value!==U||X.enumerable!==!0)return!1}return!0},origSymbol=typeof Symbol<"u"&&Symbol,hasSymbolSham=shams,hasSymbols$1=function(){return typeof origSymbol!="function"||typeof Symbol!="function"||typeof origSymbol("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:hasSymbolSham()},test={foo:{}},$Object=Object,hasProto$1=function(){return{__proto__:test}.foo===test.foo&&!({__proto__:null}instanceof $Object)},ERROR_MESSAGE="Function.prototype.bind called on incompatible ",slice=Array.prototype.slice,toStr$1=Object.prototype.toString,funcType="[object Function]",implementation$1=function(E){var I=this;if(typeof I!="function"||toStr$1.call(I)!==funcType)throw new TypeError(ERROR_MESSAGE+I);for(var B=slice.call(arguments,1),U,V=function(){if(this instanceof U){var xe=I.apply(this,B.concat(slice.call(arguments)));return Object(xe)===xe?xe:this}else return I.apply(E,B.concat(slice.call(arguments)))},X=Math.max(0,I.length-B.length),Y=[],K=0;K<X;K++)Y.push("$"+K);if(U=Function("binder","return function ("+Y.join(",")+"){ return binder.apply(this,arguments); }")(V),I.prototype){var J=function(){};J.prototype=I.prototype,U.prototype=new J,J.prototype=null}return U},implementation=implementation$1,functionBind=Function.prototype.bind||implementation,bind$1=functionBind,src=bind$1.call(Function.call,Object.prototype.hasOwnProperty),undefined$1,$SyntaxError=SyntaxError,$Function=Function,$TypeError$1=TypeError,getEvalledConstructor=function(C){try{return $Function('"use strict"; return ('+C+").constructor;")()}catch{}},$gOPD=Object.getOwnPropertyDescriptor;if($gOPD)try{$gOPD({},"")}catch{$gOPD=null}var throwTypeError=function(){throw new $TypeError$1},ThrowTypeError=$gOPD?function(){try{return arguments.callee,throwTypeError}catch{try{return $gOPD(arguments,"callee").get}catch{return throwTypeError}}}():throwTypeError,hasSymbols=hasSymbols$1(),hasProto=hasProto$1(),getProto=Object.getPrototypeOf||(hasProto?function(C){return C.__proto__}:null),needsEval={},TypedArray=typeof Uint8Array>"u"||!getProto?undefined$1:getProto(Uint8Array),INTRINSICS={"%AggregateError%":typeof AggregateError>"u"?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols&&getProto?getProto([][Symbol.iterator]()):undefined$1,"%AsyncFromSyncIteratorPrototype%":undefined$1,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics>"u"?undefined$1:Atomics,"%BigInt%":typeof BigInt>"u"?undefined$1:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?undefined$1:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?undefined$1:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?undefined$1:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?undefined$1:Float32Array,"%Float64Array%":typeof Float64Array>"u"?undefined$1:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?undefined$1:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array>"u"?undefined$1:Int8Array,"%Int16Array%":typeof Int16Array>"u"?undefined$1:Int16Array,"%Int32Array%":typeof Int32Array>"u"?undefined$1:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols&&getProto?getProto(getProto([][Symbol.iterator]())):undefined$1,"%JSON%":typeof JSON=="object"?JSON:undefined$1,"%Map%":typeof Map>"u"?undefined$1:Map,"%MapIteratorPrototype%":typeof Map>"u"||!hasSymbols||!getProto?undefined$1:getProto(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?undefined$1:Promise,"%Proxy%":typeof Proxy>"u"?undefined$1:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?undefined$1:Set,"%SetIteratorPrototype%":typeof Set>"u"||!hasSymbols||!getProto?undefined$1:getProto(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols&&getProto?getProto(""[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols?Symbol:undefined$1,"%SyntaxError%":$SyntaxError,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError$1,"%Uint8Array%":typeof Uint8Array>"u"?undefined$1:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?undefined$1:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?undefined$1:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?undefined$1:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?undefined$1:WeakMap,"%WeakRef%":typeof WeakRef>"u"?undefined$1:WeakRef,"%WeakSet%":typeof WeakSet>"u"?undefined$1:WeakSet};if(getProto)try{null.error}catch(C){var errorProto=getProto(getProto(C));INTRINSICS["%Error.prototype%"]=errorProto}var doEval=function C(E){var I;if(E==="%AsyncFunction%")I=getEvalledConstructor("async function () {}");else if(E==="%GeneratorFunction%")I=getEvalledConstructor("function* () {}");else if(E==="%AsyncGeneratorFunction%")I=getEvalledConstructor("async function* () {}");else if(E==="%AsyncGenerator%"){var B=C("%AsyncGeneratorFunction%");B&&(I=B.prototype)}else if(E==="%AsyncIteratorPrototype%"){var U=C("%AsyncGenerator%");U&&getProto&&(I=getProto(U.prototype))}return INTRINSICS[E]=I,I},LEGACY_ALIASES={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},bind=functionBind,hasOwn$1=src,$concat$1=bind.call(Function.call,Array.prototype.concat),$spliceApply=bind.call(Function.apply,Array.prototype.splice),$replace$1=bind.call(Function.call,String.prototype.replace),$strSlice=bind.call(Function.call,String.prototype.slice),$exec=bind.call(Function.call,RegExp.prototype.exec),rePropName$1=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar$1=/\\(\\)?/g,stringToPath$2=function(E){var I=$strSlice(E,0,1),B=$strSlice(E,-1);if(I==="%"&&B!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");if(B==="%"&&I!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");var U=[];return $replace$1(E,rePropName$1,function(V,X,Y,K){U[U.length]=Y?$replace$1(K,reEscapeChar$1,"$1"):X||V}),U},getBaseIntrinsic=function(E,I){var B=E,U;if(hasOwn$1(LEGACY_ALIASES,B)&&(U=LEGACY_ALIASES[B],B="%"+U[0]+"%"),hasOwn$1(INTRINSICS,B)){var V=INTRINSICS[B];if(V===needsEval&&(V=doEval(B)),typeof V>"u"&&!I)throw new $TypeError$1("intrinsic "+E+" exists, but is not available. Please file an issue!");return{alias:U,name:B,value:V}}throw new $SyntaxError("intrinsic "+E+" does not exist!")},getIntrinsic=function(E,I){if(typeof E!="string"||E.length===0)throw new $TypeError$1("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof I!="boolean")throw new $TypeError$1('"allowMissing" argument must be a boolean');if($exec(/^%?[^%]*%?$/,E)===null)throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var B=stringToPath$2(E),U=B.length>0?B[0]:"",V=getBaseIntrinsic("%"+U+"%",I),X=V.name,Y=V.value,K=!1,J=V.alias;J&&(U=J[0],$spliceApply(B,$concat$1([0,1],J)));for(var xe=1,Z=!0;xe<B.length;xe+=1){var _e=B[xe],Se=$strSlice(_e,0,1),Ee=$strSlice(_e,-1);if((Se==='"'||Se==="'"||Se==="`"||Ee==='"'||Ee==="'"||Ee==="`")&&Se!==Ee)throw new $SyntaxError("property names with quotes must have matching quotes");if((_e==="constructor"||!Z)&&(K=!0),U+="."+_e,X="%"+U+"%",hasOwn$1(INTRINSICS,X))Y=INTRINSICS[X];else if(Y!=null){if(!(_e in Y)){if(!I)throw new $TypeError$1("base intrinsic for "+E+" exists, but the property is not available.");return}if($gOPD&&xe+1>=B.length){var Ae=$gOPD(Y,_e);Z=!!Ae,Z&&"get"in Ae&&!("originalValue"in Ae.get)?Y=Ae.get:Y=Y[_e]}else Z=hasOwn$1(Y,_e),Y=Y[_e];Z&&!K&&(INTRINSICS[X]=Y)}}return Y},callBind$1={exports:{}};(function(C){var E=functionBind,I=getIntrinsic,B=I("%Function.prototype.apply%"),U=I("%Function.prototype.call%"),V=I("%Reflect.apply%",!0)||E.call(U,B),X=I("%Object.getOwnPropertyDescriptor%",!0),Y=I("%Object.defineProperty%",!0),K=I("%Math.max%");if(Y)try{Y({},"a",{value:1})}catch{Y=null}C.exports=function(Z){var _e=V(E,U,arguments);if(X&&Y){var Se=X(_e,"length");Se.configurable&&Y(_e,"length",{value:1+K(0,Z.length-(arguments.length-1))})}return _e};var J=function(){return V(E,B,arguments)};Y?Y(C.exports,"apply",{value:J}):C.exports.apply=J})(callBind$1);var callBindExports=callBind$1.exports,GetIntrinsic$1=getIntrinsic,callBind=callBindExports,$indexOf=callBind(GetIntrinsic$1("String.prototype.indexOf")),callBound$1=function(E,I){var B=GetIntrinsic$1(E,!!I);return typeof B=="function"&&$indexOf(E,".prototype.")>-1?callBind(B):B};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);var hasMap=typeof Map=="function"&&Map.prototype,mapSizeDescriptor=Object.getOwnPropertyDescriptor&&hasMap?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,mapSize$1=hasMap&&mapSizeDescriptor&&typeof mapSizeDescriptor.get=="function"?mapSizeDescriptor.get:null,mapForEach=hasMap&&Map.prototype.forEach,hasSet=typeof Set=="function"&&Set.prototype,setSizeDescriptor=Object.getOwnPropertyDescriptor&&hasSet?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,setSize=hasSet&&setSizeDescriptor&&typeof setSizeDescriptor.get=="function"?setSizeDescriptor.get:null,setForEach=hasSet&&Set.prototype.forEach,hasWeakMap=typeof WeakMap=="function"&&WeakMap.prototype,weakMapHas=hasWeakMap?WeakMap.prototype.has:null,hasWeakSet=typeof WeakSet=="function"&&WeakSet.prototype,weakSetHas=hasWeakSet?WeakSet.prototype.has:null,hasWeakRef=typeof WeakRef=="function"&&WeakRef.prototype,weakRefDeref=hasWeakRef?WeakRef.prototype.deref:null,booleanValueOf=Boolean.prototype.valueOf,objectToString=Object.prototype.toString,functionToString=Function.prototype.toString,$match=String.prototype.match,$slice=String.prototype.slice,$replace=String.prototype.replace,$toUpperCase=String.prototype.toUpperCase,$toLowerCase=String.prototype.toLowerCase,$test=RegExp.prototype.test,$concat=Array.prototype.concat,$join=Array.prototype.join,$arrSlice=Array.prototype.slice,$floor=Math.floor,bigIntValueOf=typeof BigInt=="function"?BigInt.prototype.valueOf:null,gOPS=Object.getOwnPropertySymbols,symToString=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,hasShammedSymbols=typeof Symbol=="function"&&typeof Symbol.iterator=="object",toStringTag=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===hasShammedSymbols||"symbol")?Symbol.toStringTag:null,isEnumerable=Object.prototype.propertyIsEnumerable,gPO=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(C){return C.__proto__}:null);function addNumericSeparator(C,E){if(C===1/0||C===-1/0||C!==C||C&&C>-1e3&&C<1e3||$test.call(/e/,E))return E;var I=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof C=="number"){var B=C<0?-$floor(-C):$floor(C);if(B!==C){var U=String(B),V=$slice.call(E,U.length+1);return $replace.call(U,I,"$&_")+"."+$replace.call($replace.call(V,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $replace.call(E,I,"$&_")}var utilInspect=require$$0,inspectCustom=utilInspect.custom,inspectSymbol=isSymbol$5(inspectCustom)?inspectCustom:null,objectInspect=function C(E,I,B,U){var V=I||{};if(has$3(V,"quoteStyle")&&V.quoteStyle!=="single"&&V.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(has$3(V,"maxStringLength")&&(typeof V.maxStringLength=="number"?V.maxStringLength<0&&V.maxStringLength!==1/0:V.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var X=has$3(V,"customInspect")?V.customInspect:!0;if(typeof X!="boolean"&&X!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has$3(V,"indent")&&V.indent!==null&&V.indent!==" "&&!(parseInt(V.indent,10)===V.indent&&V.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has$3(V,"numericSeparator")&&typeof V.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Y=V.numericSeparator;if(typeof E>"u")return"undefined";if(E===null)return"null";if(typeof E=="boolean")return E?"true":"false";if(typeof E=="string")return inspectString(E,V);if(typeof E=="number"){if(E===0)return 1/0/E>0?"0":"-0";var K=String(E);return Y?addNumericSeparator(E,K):K}if(typeof E=="bigint"){var J=String(E)+"n";return Y?addNumericSeparator(E,J):J}var xe=typeof V.depth>"u"?5:V.depth;if(typeof B>"u"&&(B=0),B>=xe&&xe>0&&typeof E=="object")return isArray$c(E)?"[Array]":"[Object]";var Z=getIndent(V,B);if(typeof U>"u")U=[];else if(indexOf(U,E)>=0)return"[Circular]";function _e(ze,He,je){if(He&&(U=$arrSlice.call(U),U.push(He)),je){var Ne={depth:V.depth};return has$3(V,"quoteStyle")&&(Ne.quoteStyle=V.quoteStyle),C(ze,Ne,B+1,U)}return C(ze,V,B+1,U)}if(typeof E=="function"&&!isRegExp$1(E)){var Se=nameOf(E),Ee=arrObjKeys(E,_e);return"[Function"+(Se?": "+Se:" (anonymous)")+"]"+(Ee.length>0?" { "+$join.call(Ee,", ")+" }":"")}if(isSymbol$5(E)){var Ae=hasShammedSymbols?$replace.call(String(E),/^(Symbol\(.*\))_[^)]*$/,"$1"):symToString.call(E);return typeof E=="object"&&!hasShammedSymbols?markBoxed(Ae):Ae}if(isElement(E)){for(var Re="<"+$toLowerCase.call(String(E.nodeName)),Te=E.attributes||[],we=0;we<Te.length;we++)Re+=" "+Te[we].name+"="+wrapQuotes(quote(Te[we].value),"double",V);return Re+=">",E.childNodes&&E.childNodes.length&&(Re+="..."),Re+="</"+$toLowerCase.call(String(E.nodeName))+">",Re}if(isArray$c(E)){if(E.length===0)return"[]";var Pe=arrObjKeys(E,_e);return Z&&!singleLineValues(Pe)?"["+indentedJoin(Pe,Z)+"]":"[ "+$join.call(Pe,", ")+" ]"}if(isError(E)){var Ie=arrObjKeys(E,_e);return!("cause"in Error.prototype)&&"cause"in E&&!isEnumerable.call(E,"cause")?"{ ["+String(E)+"] "+$join.call($concat.call("[cause]: "+_e(E.cause),Ie),", ")+" }":Ie.length===0?"["+String(E)+"]":"{ ["+String(E)+"] "+$join.call(Ie,", ")+" }"}if(typeof E=="object"&&X){if(inspectSymbol&&typeof E[inspectSymbol]=="function"&&utilInspect)return utilInspect(E,{depth:xe-B});if(X!=="symbol"&&typeof E.inspect=="function")return E.inspect()}if(isMap(E)){var Me=[];return mapForEach&&mapForEach.call(E,function(ze,He){Me.push(_e(He,E,!0)+" => "+_e(ze,E))}),collectionOf("Map",mapSize$1.call(E),Me,Z)}if(isSet(E)){var Oe=[];return setForEach&&setForEach.call(E,function(ze){Oe.push(_e(ze,E))}),collectionOf("Set",setSize.call(E),Oe,Z)}if(isWeakMap(E))return weakCollectionOf("WeakMap");if(isWeakSet(E))return weakCollectionOf("WeakSet");if(isWeakRef(E))return weakCollectionOf("WeakRef");if(isNumber(E))return markBoxed(_e(Number(E)));if(isBigInt(E))return markBoxed(_e(bigIntValueOf.call(E)));if(isBoolean(E))return markBoxed(booleanValueOf.call(E));if(isString(E))return markBoxed(_e(String(E)));if(!isDate(E)&&!isRegExp$1(E)){var Le=arrObjKeys(E,_e),$e=gPO?gPO(E)===Object.prototype:E instanceof Object||E.constructor===Object,Ve=E instanceof Object?"":"null prototype",Xe=!$e&&toStringTag&&Object(E)===E&&toStringTag in E?$slice.call(toStr(E),8,-1):Ve?"Object":"",Ue=$e||typeof E.constructor!="function"?"":E.constructor.name?E.constructor.name+" ":"",We=Ue+(Xe||Ve?"["+$join.call($concat.call([],Xe||[],Ve||[]),": ")+"] ":"");return Le.length===0?We+"{}":Z?We+"{"+indentedJoin(Le,Z)+"}":We+"{ "+$join.call(Le,", ")+" }"}return String(E)};function wrapQuotes(C,E,I){var B=(I.quoteStyle||E)==="double"?'"':"'";return B+C+B}function quote(C){return $replace.call(String(C),/"/g,"&quot;")}function isArray$c(C){return toStr(C)==="[object Array]"&&(!toStringTag||!(typeof C=="object"&&toStringTag in C))}function isDate(C){return toStr(C)==="[object Date]"&&(!toStringTag||!(typeof C=="object"&&toStringTag in C))}function isRegExp$1(C){return toStr(C)==="[object RegExp]"&&(!toStringTag||!(typeof C=="object"&&toStringTag in C))}function isError(C){return toStr(C)==="[object Error]"&&(!toStringTag||!(typeof C=="object"&&toStringTag in C))}function isString(C){return toStr(C)==="[object String]"&&(!toStringTag||!(typeof C=="object"&&toStringTag in C))}function isNumber(C){return toStr(C)==="[object Number]"&&(!toStringTag||!(typeof C=="object"&&toStringTag in C))}function isBoolean(C){return toStr(C)==="[object Boolean]"&&(!toStringTag||!(typeof C=="object"&&toStringTag in C))}function isSymbol$5(C){if(hasShammedSymbols)return C&&typeof C=="object"&&C instanceof Symbol;if(typeof C=="symbol")return!0;if(!C||typeof C!="object"||!symToString)return!1;try{return symToString.call(C),!0}catch{}return!1}function isBigInt(C){if(!C||typeof C!="object"||!bigIntValueOf)return!1;try{return bigIntValueOf.call(C),!0}catch{}return!1}var hasOwn=Object.prototype.hasOwnProperty||function(C){return C in this};function has$3(C,E){return hasOwn.call(C,E)}function toStr(C){return objectToString.call(C)}function nameOf(C){if(C.name)return C.name;var E=$match.call(functionToString.call(C),/^function\s*([\w$]+)/);return E?E[1]:null}function indexOf(C,E){if(C.indexOf)return C.indexOf(E);for(var I=0,B=C.length;I<B;I++)if(C[I]===E)return I;return-1}function isMap(C){if(!mapSize$1||!C||typeof C!="object")return!1;try{mapSize$1.call(C);try{setSize.call(C)}catch{return!0}return C instanceof Map}catch{}return!1}function isWeakMap(C){if(!weakMapHas||!C||typeof C!="object")return!1;try{weakMapHas.call(C,weakMapHas);try{weakSetHas.call(C,weakSetHas)}catch{return!0}return C instanceof WeakMap}catch{}return!1}function isWeakRef(C){if(!weakRefDeref||!C||typeof C!="object")return!1;try{return weakRefDeref.call(C),!0}catch{}return!1}function isSet(C){if(!setSize||!C||typeof C!="object")return!1;try{setSize.call(C);try{mapSize$1.call(C)}catch{return!0}return C instanceof Set}catch{}return!1}function isWeakSet(C){if(!weakSetHas||!C||typeof C!="object")return!1;try{weakSetHas.call(C,weakSetHas);try{weakMapHas.call(C,weakMapHas)}catch{return!0}return C instanceof WeakSet}catch{}return!1}function isElement(C){return!C||typeof C!="object"?!1:typeof HTMLElement<"u"&&C instanceof HTMLElement?!0:typeof C.nodeName=="string"&&typeof C.getAttribute=="function"}function inspectString(C,E){if(C.length>E.maxStringLength){var I=C.length-E.maxStringLength,B="... "+I+" more character"+(I>1?"s":"");return inspectString($slice.call(C,0,E.maxStringLength),E)+B}var U=$replace.call($replace.call(C,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(U,"single",E)}function lowbyte(C){var E=C.charCodeAt(0),I={8:"b",9:"t",10:"n",12:"f",13:"r"}[E];return I?"\\"+I:"\\x"+(E<16?"0":"")+$toUpperCase.call(E.toString(16))}function markBoxed(C){return"Object("+C+")"}function weakCollectionOf(C){return C+" { ? }"}function collectionOf(C,E,I,B){var U=B?indentedJoin(I,B):$join.call(I,", ");return C+" ("+E+") {"+U+"}"}function singleLineValues(C){for(var E=0;E<C.length;E++)if(indexOf(C[E],`
34
34
  `)>=0)return!1;return!0}function getIndent(C,E){var I;if(C.indent===" ")I=" ";else if(typeof C.indent=="number"&&C.indent>0)I=$join.call(Array(C.indent+1)," ");else return null;return{base:I,prev:$join.call(Array(E+1),I)}}function indentedJoin(C,E){if(C.length===0)return"";var I=`
35
35
  `+E.prev+E.base;return I+$join.call(C,","+I)+`
36
- `+E.prev}function arrObjKeys(C,E){var I=isArray$9(C),B=[];if(I){B.length=C.length;for(var U=0;U<C.length;U++)B[U]=has$3(C,U)?E(C[U],C):""}var V=typeof gOPS=="function"?gOPS(C):[],X;if(hasShammedSymbols){X={};for(var Y=0;Y<V.length;Y++)X["$"+V[Y]]=V[Y]}for(var K in C)has$3(C,K)&&(I&&String(Number(K))===K&&K<C.length||hasShammedSymbols&&X["$"+K]instanceof Symbol||($test.call(/[^\w$]/,K)?B.push(E(K,C)+": "+E(C[K],C)):B.push(K+": "+E(C[K],C))));if(typeof gOPS=="function")for(var J=0;J<V.length;J++)isEnumerable.call(C,V[J])&&B.push("["+E(V[J])+"]: "+E(C[V[J]],C));return B}var GetIntrinsic=getIntrinsic,callBound=callBound$1,inspect=objectInspect,$TypeError=GetIntrinsic("%TypeError%"),$WeakMap=GetIntrinsic("%WeakMap%",!0),$Map=GetIntrinsic("%Map%",!0),$weakMapGet=callBound("WeakMap.prototype.get",!0),$weakMapSet=callBound("WeakMap.prototype.set",!0),$weakMapHas=callBound("WeakMap.prototype.has",!0),$mapGet=callBound("Map.prototype.get",!0),$mapSet=callBound("Map.prototype.set",!0),$mapHas=callBound("Map.prototype.has",!0),listGetNode=function(C,E){for(var I=C,B;(B=I.next)!==null;I=B)if(B.key===E)return I.next=B.next,B.next=C.next,C.next=B,B},listGet=function(C,E){var I=listGetNode(C,E);return I&&I.value},listSet=function(C,E,I){var B=listGetNode(C,E);B?B.value=I:C.next={key:E,next:C.next,value:I}},listHas=function(C,E){return!!listGetNode(C,E)},sideChannel=function(){var E,I,B,U={assert:function(V){if(!U.has(V))throw new $TypeError("Side channel does not contain "+inspect(V))},get:function(V){if($WeakMap&&V&&(typeof V=="object"||typeof V=="function")){if(E)return $weakMapGet(E,V)}else if($Map){if(I)return $mapGet(I,V)}else if(B)return listGet(B,V)},has:function(V){if($WeakMap&&V&&(typeof V=="object"||typeof V=="function")){if(E)return $weakMapHas(E,V)}else if($Map){if(I)return $mapHas(I,V)}else if(B)return listHas(B,V);return!1},set:function(V,X){$WeakMap&&V&&(typeof V=="object"||typeof V=="function")?(E||(E=new $WeakMap),$weakMapSet(E,V,X)):$Map?(I||(I=new $Map),$mapSet(I,V,X)):(B||(B={key:{},next:null}),listSet(B,V,X))}};return U},replace=String.prototype.replace,percentTwenties=/%20/g,Format={RFC1738:"RFC1738",RFC3986:"RFC3986"},formats$3={default:Format.RFC3986,formatters:{RFC1738:function(C){return replace.call(C,percentTwenties,"+")},RFC3986:function(C){return String(C)}},RFC1738:Format.RFC1738,RFC3986:Format.RFC3986},formats$2=formats$3,has$2=Object.prototype.hasOwnProperty,isArray$8=Array.isArray,hexTable=function(){for(var C=[],E=0;E<256;++E)C.push("%"+((E<16?"0":"")+E.toString(16)).toUpperCase());return C}(),compactQueue=function(E){for(;E.length>1;){var I=E.pop(),B=I.obj[I.prop];if(isArray$8(B)){for(var U=[],V=0;V<B.length;++V)typeof B[V]<"u"&&U.push(B[V]);I.obj[I.prop]=U}}},arrayToObject=function(E,I){for(var B=I&&I.plainObjects?Object.create(null):{},U=0;U<E.length;++U)typeof E[U]<"u"&&(B[U]=E[U]);return B},merge=function C(E,I,B){if(!I)return E;if(typeof I!="object"){if(isArray$8(E))E.push(I);else if(E&&typeof E=="object")(B&&(B.plainObjects||B.allowPrototypes)||!has$2.call(Object.prototype,I))&&(E[I]=!0);else return[E,I];return E}if(!E||typeof E!="object")return[E].concat(I);var U=E;return isArray$8(E)&&!isArray$8(I)&&(U=arrayToObject(E,B)),isArray$8(E)&&isArray$8(I)?(I.forEach(function(V,X){if(has$2.call(E,X)){var Y=E[X];Y&&typeof Y=="object"&&V&&typeof V=="object"?E[X]=C(Y,V,B):E.push(V)}else E[X]=V}),E):Object.keys(I).reduce(function(V,X){var Y=I[X];return has$2.call(V,X)?V[X]=C(V[X],Y,B):V[X]=Y,V},U)},assign=function(E,I){return Object.keys(I).reduce(function(B,U){return B[U]=I[U],B},E)},decode=function(C,E,I){var B=C.replace(/\+/g," ");if(I==="iso-8859-1")return B.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(B)}catch{return B}},encode=function(E,I,B,U,V){if(E.length===0)return E;var X=E;if(typeof E=="symbol"?X=Symbol.prototype.toString.call(E):typeof E!="string"&&(X=String(E)),B==="iso-8859-1")return escape(X).replace(/%u[0-9a-f]{4}/gi,function(xe){return"%26%23"+parseInt(xe.slice(2),16)+"%3B"});for(var Y="",K=0;K<X.length;++K){var J=X.charCodeAt(K);if(J===45||J===46||J===95||J===126||J>=48&&J<=57||J>=65&&J<=90||J>=97&&J<=122||V===formats$2.RFC1738&&(J===40||J===41)){Y+=X.charAt(K);continue}if(J<128){Y=Y+hexTable[J];continue}if(J<2048){Y=Y+(hexTable[192|J>>6]+hexTable[128|J&63]);continue}if(J<55296||J>=57344){Y=Y+(hexTable[224|J>>12]+hexTable[128|J>>6&63]+hexTable[128|J&63]);continue}K+=1,J=65536+((J&1023)<<10|X.charCodeAt(K)&1023),Y+=hexTable[240|J>>18]+hexTable[128|J>>12&63]+hexTable[128|J>>6&63]+hexTable[128|J&63]}return Y},compact=function(E){for(var I=[{obj:{o:E},prop:"o"}],B=[],U=0;U<I.length;++U)for(var V=I[U],X=V.obj[V.prop],Y=Object.keys(X),K=0;K<Y.length;++K){var J=Y[K],xe=X[J];typeof xe=="object"&&xe!==null&&B.indexOf(xe)===-1&&(I.push({obj:X,prop:J}),B.push(xe))}return compactQueue(I),E},isRegExp=function(E){return Object.prototype.toString.call(E)==="[object RegExp]"},isBuffer=function(E){return!E||typeof E!="object"?!1:!!(E.constructor&&E.constructor.isBuffer&&E.constructor.isBuffer(E))},combine$1=function(E,I){return[].concat(E,I)},maybeMap=function(E,I){if(isArray$8(E)){for(var B=[],U=0;U<E.length;U+=1)B.push(I(E[U]));return B}return I(E)},utils$2={arrayToObject,assign,combine:combine$1,compact,decode,encode,isBuffer,isRegExp,maybeMap,merge},getSideChannel=sideChannel,utils$1=utils$2,formats$1=formats$3,has$1=Object.prototype.hasOwnProperty,arrayPrefixGenerators={brackets:function(E){return E+"[]"},comma:"comma",indices:function(E,I){return E+"["+I+"]"},repeat:function(E){return E}},isArray$7=Array.isArray,push=Array.prototype.push,pushToArray=function(C,E){push.apply(C,isArray$7(E)?E:[E])},toISO=Date.prototype.toISOString,defaultFormat=formats$1.default,defaults$1={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:utils$1.encode,encodeValuesOnly:!1,format:defaultFormat,formatter:formats$1.formatters[defaultFormat],indices:!1,serializeDate:function(E){return toISO.call(E)},skipNulls:!1,strictNullHandling:!1},isNonNullishPrimitive=function(E){return typeof E=="string"||typeof E=="number"||typeof E=="boolean"||typeof E=="symbol"||typeof E=="bigint"},sentinel={},stringify$1=function C(E,I,B,U,V,X,Y,K,J,xe,Z,_e,Se,Ee,Ae,Re){for(var Te=E,we=Re,Pe=0,Ie=!1;(we=we.get(sentinel))!==void 0&&!Ie;){var Fe=we.get(E);if(Pe+=1,typeof Fe<"u"){if(Fe===Pe)throw new RangeError("Cyclic object value");Ie=!0}typeof we.get(sentinel)>"u"&&(Pe=0)}if(typeof K=="function"?Te=K(I,Te):Te instanceof Date?Te=Z(Te):B==="comma"&&isArray$7(Te)&&(Te=utils$1.maybeMap(Te,function($e){return $e instanceof Date?Z($e):$e})),Te===null){if(V)return Y&&!Ee?Y(I,defaults$1.encoder,Ae,"key",_e):I;Te=""}if(isNonNullishPrimitive(Te)||utils$1.isBuffer(Te)){if(Y){var Oe=Ee?I:Y(I,defaults$1.encoder,Ae,"key",_e);return[Se(Oe)+"="+Se(Y(Te,defaults$1.encoder,Ae,"value",_e))]}return[Se(I)+"="+Se(String(Te))]}var Le=[];if(typeof Te>"u")return Le;var De;if(B==="comma"&&isArray$7(Te))Ee&&Y&&(Te=utils$1.maybeMap(Te,Y)),De=[{value:Te.length>0?Te.join(",")||null:void 0}];else if(isArray$7(K))De=K;else{var Ve=Object.keys(Te);De=J?Ve.sort(J):Ve}for(var Xe=U&&isArray$7(Te)&&Te.length===1?I+"[]":I,Ue=0;Ue<De.length;++Ue){var We=De[Ue],je=typeof We=="object"&&typeof We.value<"u"?We.value:Te[We];if(!(X&&je===null)){var ze=isArray$7(Te)?typeof B=="function"?B(Xe,We):Xe:Xe+(xe?"."+We:"["+We+"]");Re.set(E,Pe);var He=getSideChannel();He.set(sentinel,Re),pushToArray(Le,C(je,ze,B,U,V,X,B==="comma"&&Ee&&isArray$7(Te)?null:Y,K,J,xe,Z,_e,Se,Ee,Ae,He))}}return Le},normalizeStringifyOptions=function(E){if(!E)return defaults$1;if(E.encoder!==null&&typeof E.encoder<"u"&&typeof E.encoder!="function")throw new TypeError("Encoder has to be a function.");var I=E.charset||defaults$1.charset;if(typeof E.charset<"u"&&E.charset!=="utf-8"&&E.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var B=formats$1.default;if(typeof E.format<"u"){if(!has$1.call(formats$1.formatters,E.format))throw new TypeError("Unknown format option provided.");B=E.format}var U=formats$1.formatters[B],V=defaults$1.filter;return(typeof E.filter=="function"||isArray$7(E.filter))&&(V=E.filter),{addQueryPrefix:typeof E.addQueryPrefix=="boolean"?E.addQueryPrefix:defaults$1.addQueryPrefix,allowDots:typeof E.allowDots>"u"?defaults$1.allowDots:!!E.allowDots,charset:I,charsetSentinel:typeof E.charsetSentinel=="boolean"?E.charsetSentinel:defaults$1.charsetSentinel,delimiter:typeof E.delimiter>"u"?defaults$1.delimiter:E.delimiter,encode:typeof E.encode=="boolean"?E.encode:defaults$1.encode,encoder:typeof E.encoder=="function"?E.encoder:defaults$1.encoder,encodeValuesOnly:typeof E.encodeValuesOnly=="boolean"?E.encodeValuesOnly:defaults$1.encodeValuesOnly,filter:V,format:B,formatter:U,serializeDate:typeof E.serializeDate=="function"?E.serializeDate:defaults$1.serializeDate,skipNulls:typeof E.skipNulls=="boolean"?E.skipNulls:defaults$1.skipNulls,sort:typeof E.sort=="function"?E.sort:null,strictNullHandling:typeof E.strictNullHandling=="boolean"?E.strictNullHandling:defaults$1.strictNullHandling}},stringify_1=function(C,E){var I=C,B=normalizeStringifyOptions(E),U,V;typeof B.filter=="function"?(V=B.filter,I=V("",I)):isArray$7(B.filter)&&(V=B.filter,U=V);var X=[];if(typeof I!="object"||I===null)return"";var Y;E&&E.arrayFormat in arrayPrefixGenerators?Y=E.arrayFormat:E&&"indices"in E?Y=E.indices?"indices":"repeat":Y="indices";var K=arrayPrefixGenerators[Y];if(E&&"commaRoundTrip"in E&&typeof E.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var J=K==="comma"&&E&&E.commaRoundTrip;U||(U=Object.keys(I)),B.sort&&U.sort(B.sort);for(var xe=getSideChannel(),Z=0;Z<U.length;++Z){var _e=U[Z];B.skipNulls&&I[_e]===null||pushToArray(X,stringify$1(I[_e],_e,K,J,B.strictNullHandling,B.skipNulls,B.encode?B.encoder:null,B.filter,B.sort,B.allowDots,B.serializeDate,B.format,B.formatter,B.encodeValuesOnly,B.charset,xe))}var Se=X.join(B.delimiter),Ee=B.addQueryPrefix===!0?"?":"";return B.charsetSentinel&&(B.charset==="iso-8859-1"?Ee+="utf8=%26%2310003%3B&":Ee+="utf8=%E2%9C%93&"),Se.length>0?Ee+Se:""},utils=utils$2,has=Object.prototype.hasOwnProperty,isArray$6=Array.isArray,defaults={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:utils.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},interpretNumericEntities=function(C){return C.replace(/&#(\d+);/g,function(E,I){return String.fromCharCode(parseInt(I,10))})},parseArrayValue=function(C,E){return C&&typeof C=="string"&&E.comma&&C.indexOf(",")>-1?C.split(","):C},isoSentinel="utf8=%26%2310003%3B",charsetSentinel="utf8=%E2%9C%93",parseValues=function(E,I){var B={__proto__:null},U=I.ignoreQueryPrefix?E.replace(/^\?/,""):E,V=I.parameterLimit===1/0?void 0:I.parameterLimit,X=U.split(I.delimiter,V),Y=-1,K,J=I.charset;if(I.charsetSentinel)for(K=0;K<X.length;++K)X[K].indexOf("utf8=")===0&&(X[K]===charsetSentinel?J="utf-8":X[K]===isoSentinel&&(J="iso-8859-1"),Y=K,K=X.length);for(K=0;K<X.length;++K)if(K!==Y){var xe=X[K],Z=xe.indexOf("]="),_e=Z===-1?xe.indexOf("="):Z+1,Se,Ee;_e===-1?(Se=I.decoder(xe,defaults.decoder,J,"key"),Ee=I.strictNullHandling?null:""):(Se=I.decoder(xe.slice(0,_e),defaults.decoder,J,"key"),Ee=utils.maybeMap(parseArrayValue(xe.slice(_e+1),I),function(Ae){return I.decoder(Ae,defaults.decoder,J,"value")})),Ee&&I.interpretNumericEntities&&J==="iso-8859-1"&&(Ee=interpretNumericEntities(Ee)),xe.indexOf("[]=")>-1&&(Ee=isArray$6(Ee)?[Ee]:Ee),has.call(B,Se)?B[Se]=utils.combine(B[Se],Ee):B[Se]=Ee}return B},parseObject=function(C,E,I,B){for(var U=B?E:parseArrayValue(E,I),V=C.length-1;V>=0;--V){var X,Y=C[V];if(Y==="[]"&&I.parseArrays)X=[].concat(U);else{X=I.plainObjects?Object.create(null):{};var K=Y.charAt(0)==="["&&Y.charAt(Y.length-1)==="]"?Y.slice(1,-1):Y,J=parseInt(K,10);!I.parseArrays&&K===""?X={0:U}:!isNaN(J)&&Y!==K&&String(J)===K&&J>=0&&I.parseArrays&&J<=I.arrayLimit?(X=[],X[J]=U):K!=="__proto__"&&(X[K]=U)}U=X}return U},parseKeys=function(E,I,B,U){if(E){var V=B.allowDots?E.replace(/\.([^.[]+)/g,"[$1]"):E,X=/(\[[^[\]]*])/,Y=/(\[[^[\]]*])/g,K=B.depth>0&&X.exec(V),J=K?V.slice(0,K.index):V,xe=[];if(J){if(!B.plainObjects&&has.call(Object.prototype,J)&&!B.allowPrototypes)return;xe.push(J)}for(var Z=0;B.depth>0&&(K=Y.exec(V))!==null&&Z<B.depth;){if(Z+=1,!B.plainObjects&&has.call(Object.prototype,K[1].slice(1,-1))&&!B.allowPrototypes)return;xe.push(K[1])}return K&&xe.push("["+V.slice(K.index)+"]"),parseObject(xe,I,B,U)}},normalizeParseOptions=function(E){if(!E)return defaults;if(E.decoder!==null&&E.decoder!==void 0&&typeof E.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof E.charset<"u"&&E.charset!=="utf-8"&&E.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var I=typeof E.charset>"u"?defaults.charset:E.charset;return{allowDots:typeof E.allowDots>"u"?defaults.allowDots:!!E.allowDots,allowPrototypes:typeof E.allowPrototypes=="boolean"?E.allowPrototypes:defaults.allowPrototypes,allowSparse:typeof E.allowSparse=="boolean"?E.allowSparse:defaults.allowSparse,arrayLimit:typeof E.arrayLimit=="number"?E.arrayLimit:defaults.arrayLimit,charset:I,charsetSentinel:typeof E.charsetSentinel=="boolean"?E.charsetSentinel:defaults.charsetSentinel,comma:typeof E.comma=="boolean"?E.comma:defaults.comma,decoder:typeof E.decoder=="function"?E.decoder:defaults.decoder,delimiter:typeof E.delimiter=="string"||utils.isRegExp(E.delimiter)?E.delimiter:defaults.delimiter,depth:typeof E.depth=="number"||E.depth===!1?+E.depth:defaults.depth,ignoreQueryPrefix:E.ignoreQueryPrefix===!0,interpretNumericEntities:typeof E.interpretNumericEntities=="boolean"?E.interpretNumericEntities:defaults.interpretNumericEntities,parameterLimit:typeof E.parameterLimit=="number"?E.parameterLimit:defaults.parameterLimit,parseArrays:E.parseArrays!==!1,plainObjects:typeof E.plainObjects=="boolean"?E.plainObjects:defaults.plainObjects,strictNullHandling:typeof E.strictNullHandling=="boolean"?E.strictNullHandling:defaults.strictNullHandling}},parse$3=function(C,E){var I=normalizeParseOptions(E);if(C===""||C===null||typeof C>"u")return I.plainObjects?Object.create(null):{};for(var B=typeof C=="string"?parseValues(C,I):C,U=I.plainObjects?Object.create(null):{},V=Object.keys(B),X=0;X<V.length;++X){var Y=V[X],K=parseKeys(Y,B[Y],I,typeof C=="string");U=utils.merge(U,K,I)}return I.allowSparse===!0?U:utils.compact(U)},stringify=stringify_1,parse$2=parse$3,formats=formats$3,lib$2={formats,parse:parse$2,stringify},punycode=punycodeExports;function Url(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var protocolPattern=/^([a-z0-9.+-]+:)/i,portPattern=/:[0-9]*$/,simplePathPattern=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,delims=["<",">",'"',"`"," ","\r",`
37
- `," "],unwise=["{","}","|","\\","^","`"].concat(delims),autoEscape=["'"].concat(unwise),nonHostChars=["%","/","?",";","#"].concat(autoEscape),hostEndingChars=["/","?","#"],hostnameMaxLen=255,hostnamePartPattern=/^[+a-z0-9A-Z_-]{0,63}$/,hostnamePartStart=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,unsafeProtocol={javascript:!0,"javascript:":!0},hostlessProtocol={javascript:!0,"javascript:":!0},slashedProtocol={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},querystring=lib$2;function urlParse(C,E,I){if(C&&typeof C=="object"&&C instanceof Url)return C;var B=new Url;return B.parse(C,E,I),B}Url.prototype.parse=function(C,E,I){if(typeof C!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof C);var B=C.indexOf("?"),U=B!==-1&&B<C.indexOf("#")?"?":"#",V=C.split(U),X=/\\/g;V[0]=V[0].replace(X,"/"),C=V.join(U);var Y=C;if(Y=Y.trim(),!I&&C.split("#").length===1){var K=simplePathPattern.exec(Y);if(K)return this.path=Y,this.href=Y,this.pathname=K[1],K[2]?(this.search=K[2],E?this.query=querystring.parse(this.search.substr(1)):this.query=this.search.substr(1)):E&&(this.search="",this.query={}),this}var J=protocolPattern.exec(Y);if(J){J=J[0];var xe=J.toLowerCase();this.protocol=xe,Y=Y.substr(J.length)}if(I||J||Y.match(/^\/\/[^@/]+@[^@/]+/)){var Z=Y.substr(0,2)==="//";Z&&!(J&&hostlessProtocol[J])&&(Y=Y.substr(2),this.slashes=!0)}if(!hostlessProtocol[J]&&(Z||J&&!slashedProtocol[J])){for(var _e=-1,Se=0;Se<hostEndingChars.length;Se++){var Ee=Y.indexOf(hostEndingChars[Se]);Ee!==-1&&(_e===-1||Ee<_e)&&(_e=Ee)}var Ae,Re;_e===-1?Re=Y.lastIndexOf("@"):Re=Y.lastIndexOf("@",_e),Re!==-1&&(Ae=Y.slice(0,Re),Y=Y.slice(Re+1),this.auth=decodeURIComponent(Ae)),_e=-1;for(var Se=0;Se<nonHostChars.length;Se++){var Ee=Y.indexOf(nonHostChars[Se]);Ee!==-1&&(_e===-1||Ee<_e)&&(_e=Ee)}_e===-1&&(_e=Y.length),this.host=Y.slice(0,_e),Y=Y.slice(_e),this.parseHost(),this.hostname=this.hostname||"";var Te=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Te)for(var we=this.hostname.split(/\./),Se=0,Pe=we.length;Se<Pe;Se++){var Ie=we[Se];if(Ie&&!Ie.match(hostnamePartPattern)){for(var Fe="",Oe=0,Le=Ie.length;Oe<Le;Oe++)Ie.charCodeAt(Oe)>127?Fe+="x":Fe+=Ie[Oe];if(!Fe.match(hostnamePartPattern)){var De=we.slice(0,Se),Ve=we.slice(Se+1),Xe=Ie.match(hostnamePartStart);Xe&&(De.push(Xe[1]),Ve.unshift(Xe[2])),Ve.length&&(Y="/"+Ve.join(".")+Y),this.hostname=De.join(".");break}}}this.hostname.length>hostnameMaxLen?this.hostname="":this.hostname=this.hostname.toLowerCase(),Te||(this.hostname=punycode.toASCII(this.hostname));var Ue=this.port?":"+this.port:"",We=this.hostname||"";this.host=We+Ue,this.href+=this.host,Te&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),Y[0]!=="/"&&(Y="/"+Y))}if(!unsafeProtocol[xe])for(var Se=0,Pe=autoEscape.length;Se<Pe;Se++){var je=autoEscape[Se];if(Y.indexOf(je)!==-1){var ze=encodeURIComponent(je);ze===je&&(ze=escape(je)),Y=Y.split(je).join(ze)}}var He=Y.indexOf("#");He!==-1&&(this.hash=Y.substr(He),Y=Y.slice(0,He));var $e=Y.indexOf("?");if($e!==-1?(this.search=Y.substr($e),this.query=Y.substr($e+1),E&&(this.query=querystring.parse(this.query)),Y=Y.slice(0,$e)):E&&(this.search="",this.query={}),Y&&(this.pathname=Y),slashedProtocol[xe]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Ue=this.pathname||"",Ne=this.search||"";this.path=Ue+Ne}return this.href=this.format(),this};function urlFormat(C){return typeof C=="string"&&(C=urlParse(C)),C instanceof Url?C.format():Url.prototype.format.call(C)}Url.prototype.format=function(){var C=this.auth||"";C&&(C=encodeURIComponent(C),C=C.replace(/%3A/i,":"),C+="@");var E=this.protocol||"",I=this.pathname||"",B=this.hash||"",U=!1,V="";this.host?U=C+this.host:this.hostname&&(U=C+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(U+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(V=querystring.stringify(this.query));var X=this.search||V&&"?"+V||"";return E&&E.substr(-1)!==":"&&(E+=":"),this.slashes||(!E||slashedProtocol[E])&&U!==!1?(U="//"+(U||""),I&&I.charAt(0)!=="/"&&(I="/"+I)):U||(U=""),B&&B.charAt(0)!=="#"&&(B="#"+B),X&&X.charAt(0)!=="?"&&(X="?"+X),I=I.replace(/[?#]/g,function(Y){return encodeURIComponent(Y)}),X=X.replace("#","%23"),E+U+I+X+B};function urlResolve(C,E){return urlParse(C,!1,!0).resolve(E)}Url.prototype.resolve=function(C){return this.resolveObject(urlParse(C,!1,!0)).format()},Url.prototype.resolveObject=function(C){if(typeof C=="string"){var E=new Url;E.parse(C,!1,!0),C=E}for(var I=new Url,B=Object.keys(this),U=0;U<B.length;U++){var V=B[U];I[V]=this[V]}if(I.hash=C.hash,C.href==="")return I.href=I.format(),I;if(C.slashes&&!C.protocol){for(var X=Object.keys(C),Y=0;Y<X.length;Y++){var K=X[Y];K!=="protocol"&&(I[K]=C[K])}return slashedProtocol[I.protocol]&&I.hostname&&!I.pathname&&(I.pathname="/",I.path=I.pathname),I.href=I.format(),I}if(C.protocol&&C.protocol!==I.protocol){if(!slashedProtocol[C.protocol]){for(var J=Object.keys(C),xe=0;xe<J.length;xe++){var Z=J[xe];I[Z]=C[Z]}return I.href=I.format(),I}if(I.protocol=C.protocol,!C.host&&!hostlessProtocol[C.protocol]){for(var Pe=(C.pathname||"").split("/");Pe.length&&!(C.host=Pe.shift()););C.host||(C.host=""),C.hostname||(C.hostname=""),Pe[0]!==""&&Pe.unshift(""),Pe.length<2&&Pe.unshift(""),I.pathname=Pe.join("/")}else I.pathname=C.pathname;if(I.search=C.search,I.query=C.query,I.host=C.host||"",I.auth=C.auth,I.hostname=C.hostname||C.host,I.port=C.port,I.pathname||I.search){var _e=I.pathname||"",Se=I.search||"";I.path=_e+Se}return I.slashes=I.slashes||C.slashes,I.href=I.format(),I}var Ee=I.pathname&&I.pathname.charAt(0)==="/",Ae=C.host||C.pathname&&C.pathname.charAt(0)==="/",Re=Ae||Ee||I.host&&C.pathname,Te=Re,we=I.pathname&&I.pathname.split("/")||[],Pe=C.pathname&&C.pathname.split("/")||[],Ie=I.protocol&&!slashedProtocol[I.protocol];if(Ie&&(I.hostname="",I.port=null,I.host&&(we[0]===""?we[0]=I.host:we.unshift(I.host)),I.host="",C.protocol&&(C.hostname=null,C.port=null,C.host&&(Pe[0]===""?Pe[0]=C.host:Pe.unshift(C.host)),C.host=null),Re=Re&&(Pe[0]===""||we[0]==="")),Ae)I.host=C.host||C.host===""?C.host:I.host,I.hostname=C.hostname||C.hostname===""?C.hostname:I.hostname,I.search=C.search,I.query=C.query,we=Pe;else if(Pe.length)we||(we=[]),we.pop(),we=we.concat(Pe),I.search=C.search,I.query=C.query;else if(C.search!=null){if(Ie){I.host=we.shift(),I.hostname=I.host;var Fe=I.host&&I.host.indexOf("@")>0?I.host.split("@"):!1;Fe&&(I.auth=Fe.shift(),I.hostname=Fe.shift(),I.host=I.hostname)}return I.search=C.search,I.query=C.query,(I.pathname!==null||I.search!==null)&&(I.path=(I.pathname?I.pathname:"")+(I.search?I.search:"")),I.href=I.format(),I}if(!we.length)return I.pathname=null,I.search?I.path="/"+I.search:I.path=null,I.href=I.format(),I;for(var Oe=we.slice(-1)[0],Le=(I.host||C.host||we.length>1)&&(Oe==="."||Oe==="..")||Oe==="",De=0,Ve=we.length;Ve>=0;Ve--)Oe=we[Ve],Oe==="."?we.splice(Ve,1):Oe===".."?(we.splice(Ve,1),De++):De&&(we.splice(Ve,1),De--);if(!Re&&!Te)for(;De--;De)we.unshift("..");Re&&we[0]!==""&&(!we[0]||we[0].charAt(0)!=="/")&&we.unshift(""),Le&&we.join("/").substr(-1)!=="/"&&we.push("");var Xe=we[0]===""||we[0]&&we[0].charAt(0)==="/";if(Ie){I.hostname=Xe?"":we.length?we.shift():"",I.host=I.hostname;var Fe=I.host&&I.host.indexOf("@")>0?I.host.split("@"):!1;Fe&&(I.auth=Fe.shift(),I.hostname=Fe.shift(),I.host=I.hostname)}return Re=Re||I.host&&we.length,Re&&!Xe&&we.unshift(""),we.length>0?I.pathname=we.join("/"):(I.pathname=null,I.path=null),(I.pathname!==null||I.search!==null)&&(I.path=(I.pathname?I.pathname:"")+(I.search?I.search:"")),I.auth=C.auth||I.auth,I.slashes=I.slashes||C.slashes,I.href=I.format(),I},Url.prototype.parseHost=function(){var C=this.host,E=portPattern.exec(C);E&&(E=E[0],E!==":"&&(this.port=E.substr(1)),C=C.substr(0,C.length-E.length)),C&&(this.hostname=C)};var parse$1=urlParse,resolve=urlResolve,format=urlFormat;const url={parse:parse$1,format,resolve},warnings={};function deprecation(C,E,I=3){if(warnings[E])return;let B=new Error().stack;typeof B>"u"?console.warn("PixiJS Deprecation Warning: ",`${E}
36
+ `+E.prev}function arrObjKeys(C,E){var I=isArray$c(C),B=[];if(I){B.length=C.length;for(var U=0;U<C.length;U++)B[U]=has$3(C,U)?E(C[U],C):""}var V=typeof gOPS=="function"?gOPS(C):[],X;if(hasShammedSymbols){X={};for(var Y=0;Y<V.length;Y++)X["$"+V[Y]]=V[Y]}for(var K in C)has$3(C,K)&&(I&&String(Number(K))===K&&K<C.length||hasShammedSymbols&&X["$"+K]instanceof Symbol||($test.call(/[^\w$]/,K)?B.push(E(K,C)+": "+E(C[K],C)):B.push(K+": "+E(C[K],C))));if(typeof gOPS=="function")for(var J=0;J<V.length;J++)isEnumerable.call(C,V[J])&&B.push("["+E(V[J])+"]: "+E(C[V[J]],C));return B}var GetIntrinsic=getIntrinsic,callBound=callBound$1,inspect=objectInspect,$TypeError=GetIntrinsic("%TypeError%"),$WeakMap=GetIntrinsic("%WeakMap%",!0),$Map=GetIntrinsic("%Map%",!0),$weakMapGet=callBound("WeakMap.prototype.get",!0),$weakMapSet=callBound("WeakMap.prototype.set",!0),$weakMapHas=callBound("WeakMap.prototype.has",!0),$mapGet=callBound("Map.prototype.get",!0),$mapSet=callBound("Map.prototype.set",!0),$mapHas=callBound("Map.prototype.has",!0),listGetNode=function(C,E){for(var I=C,B;(B=I.next)!==null;I=B)if(B.key===E)return I.next=B.next,B.next=C.next,C.next=B,B},listGet=function(C,E){var I=listGetNode(C,E);return I&&I.value},listSet=function(C,E,I){var B=listGetNode(C,E);B?B.value=I:C.next={key:E,next:C.next,value:I}},listHas=function(C,E){return!!listGetNode(C,E)},sideChannel=function(){var E,I,B,U={assert:function(V){if(!U.has(V))throw new $TypeError("Side channel does not contain "+inspect(V))},get:function(V){if($WeakMap&&V&&(typeof V=="object"||typeof V=="function")){if(E)return $weakMapGet(E,V)}else if($Map){if(I)return $mapGet(I,V)}else if(B)return listGet(B,V)},has:function(V){if($WeakMap&&V&&(typeof V=="object"||typeof V=="function")){if(E)return $weakMapHas(E,V)}else if($Map){if(I)return $mapHas(I,V)}else if(B)return listHas(B,V);return!1},set:function(V,X){$WeakMap&&V&&(typeof V=="object"||typeof V=="function")?(E||(E=new $WeakMap),$weakMapSet(E,V,X)):$Map?(I||(I=new $Map),$mapSet(I,V,X)):(B||(B={key:{},next:null}),listSet(B,V,X))}};return U},replace=String.prototype.replace,percentTwenties=/%20/g,Format={RFC1738:"RFC1738",RFC3986:"RFC3986"},formats$3={default:Format.RFC3986,formatters:{RFC1738:function(C){return replace.call(C,percentTwenties,"+")},RFC3986:function(C){return String(C)}},RFC1738:Format.RFC1738,RFC3986:Format.RFC3986},formats$2=formats$3,has$2=Object.prototype.hasOwnProperty,isArray$b=Array.isArray,hexTable=function(){for(var C=[],E=0;E<256;++E)C.push("%"+((E<16?"0":"")+E.toString(16)).toUpperCase());return C}(),compactQueue=function(E){for(;E.length>1;){var I=E.pop(),B=I.obj[I.prop];if(isArray$b(B)){for(var U=[],V=0;V<B.length;++V)typeof B[V]<"u"&&U.push(B[V]);I.obj[I.prop]=U}}},arrayToObject=function(E,I){for(var B=I&&I.plainObjects?Object.create(null):{},U=0;U<E.length;++U)typeof E[U]<"u"&&(B[U]=E[U]);return B},merge=function C(E,I,B){if(!I)return E;if(typeof I!="object"){if(isArray$b(E))E.push(I);else if(E&&typeof E=="object")(B&&(B.plainObjects||B.allowPrototypes)||!has$2.call(Object.prototype,I))&&(E[I]=!0);else return[E,I];return E}if(!E||typeof E!="object")return[E].concat(I);var U=E;return isArray$b(E)&&!isArray$b(I)&&(U=arrayToObject(E,B)),isArray$b(E)&&isArray$b(I)?(I.forEach(function(V,X){if(has$2.call(E,X)){var Y=E[X];Y&&typeof Y=="object"&&V&&typeof V=="object"?E[X]=C(Y,V,B):E.push(V)}else E[X]=V}),E):Object.keys(I).reduce(function(V,X){var Y=I[X];return has$2.call(V,X)?V[X]=C(V[X],Y,B):V[X]=Y,V},U)},assign=function(E,I){return Object.keys(I).reduce(function(B,U){return B[U]=I[U],B},E)},decode=function(C,E,I){var B=C.replace(/\+/g," ");if(I==="iso-8859-1")return B.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(B)}catch{return B}},encode=function(E,I,B,U,V){if(E.length===0)return E;var X=E;if(typeof E=="symbol"?X=Symbol.prototype.toString.call(E):typeof E!="string"&&(X=String(E)),B==="iso-8859-1")return escape(X).replace(/%u[0-9a-f]{4}/gi,function(xe){return"%26%23"+parseInt(xe.slice(2),16)+"%3B"});for(var Y="",K=0;K<X.length;++K){var J=X.charCodeAt(K);if(J===45||J===46||J===95||J===126||J>=48&&J<=57||J>=65&&J<=90||J>=97&&J<=122||V===formats$2.RFC1738&&(J===40||J===41)){Y+=X.charAt(K);continue}if(J<128){Y=Y+hexTable[J];continue}if(J<2048){Y=Y+(hexTable[192|J>>6]+hexTable[128|J&63]);continue}if(J<55296||J>=57344){Y=Y+(hexTable[224|J>>12]+hexTable[128|J>>6&63]+hexTable[128|J&63]);continue}K+=1,J=65536+((J&1023)<<10|X.charCodeAt(K)&1023),Y+=hexTable[240|J>>18]+hexTable[128|J>>12&63]+hexTable[128|J>>6&63]+hexTable[128|J&63]}return Y},compact=function(E){for(var I=[{obj:{o:E},prop:"o"}],B=[],U=0;U<I.length;++U)for(var V=I[U],X=V.obj[V.prop],Y=Object.keys(X),K=0;K<Y.length;++K){var J=Y[K],xe=X[J];typeof xe=="object"&&xe!==null&&B.indexOf(xe)===-1&&(I.push({obj:X,prop:J}),B.push(xe))}return compactQueue(I),E},isRegExp=function(E){return Object.prototype.toString.call(E)==="[object RegExp]"},isBuffer$2=function(E){return!E||typeof E!="object"?!1:!!(E.constructor&&E.constructor.isBuffer&&E.constructor.isBuffer(E))},combine$1=function(E,I){return[].concat(E,I)},maybeMap=function(E,I){if(isArray$b(E)){for(var B=[],U=0;U<E.length;U+=1)B.push(I(E[U]));return B}return I(E)},utils$2={arrayToObject,assign,combine:combine$1,compact,decode,encode,isBuffer:isBuffer$2,isRegExp,maybeMap,merge},getSideChannel=sideChannel,utils$1=utils$2,formats$1=formats$3,has$1=Object.prototype.hasOwnProperty,arrayPrefixGenerators={brackets:function(E){return E+"[]"},comma:"comma",indices:function(E,I){return E+"["+I+"]"},repeat:function(E){return E}},isArray$a=Array.isArray,push=Array.prototype.push,pushToArray=function(C,E){push.apply(C,isArray$a(E)?E:[E])},toISO=Date.prototype.toISOString,defaultFormat=formats$1.default,defaults$1={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:utils$1.encode,encodeValuesOnly:!1,format:defaultFormat,formatter:formats$1.formatters[defaultFormat],indices:!1,serializeDate:function(E){return toISO.call(E)},skipNulls:!1,strictNullHandling:!1},isNonNullishPrimitive=function(E){return typeof E=="string"||typeof E=="number"||typeof E=="boolean"||typeof E=="symbol"||typeof E=="bigint"},sentinel={},stringify$1=function C(E,I,B,U,V,X,Y,K,J,xe,Z,_e,Se,Ee,Ae,Re){for(var Te=E,we=Re,Pe=0,Ie=!1;(we=we.get(sentinel))!==void 0&&!Ie;){var Me=we.get(E);if(Pe+=1,typeof Me<"u"){if(Me===Pe)throw new RangeError("Cyclic object value");Ie=!0}typeof we.get(sentinel)>"u"&&(Pe=0)}if(typeof K=="function"?Te=K(I,Te):Te instanceof Date?Te=Z(Te):B==="comma"&&isArray$a(Te)&&(Te=utils$1.maybeMap(Te,function(Ne){return Ne instanceof Date?Z(Ne):Ne})),Te===null){if(V)return Y&&!Ee?Y(I,defaults$1.encoder,Ae,"key",_e):I;Te=""}if(isNonNullishPrimitive(Te)||utils$1.isBuffer(Te)){if(Y){var Oe=Ee?I:Y(I,defaults$1.encoder,Ae,"key",_e);return[Se(Oe)+"="+Se(Y(Te,defaults$1.encoder,Ae,"value",_e))]}return[Se(I)+"="+Se(String(Te))]}var Le=[];if(typeof Te>"u")return Le;var $e;if(B==="comma"&&isArray$a(Te))Ee&&Y&&(Te=utils$1.maybeMap(Te,Y)),$e=[{value:Te.length>0?Te.join(",")||null:void 0}];else if(isArray$a(K))$e=K;else{var Ve=Object.keys(Te);$e=J?Ve.sort(J):Ve}for(var Xe=U&&isArray$a(Te)&&Te.length===1?I+"[]":I,Ue=0;Ue<$e.length;++Ue){var We=$e[Ue],ze=typeof We=="object"&&typeof We.value<"u"?We.value:Te[We];if(!(X&&ze===null)){var He=isArray$a(Te)?typeof B=="function"?B(Xe,We):Xe:Xe+(xe?"."+We:"["+We+"]");Re.set(E,Pe);var je=getSideChannel();je.set(sentinel,Re),pushToArray(Le,C(ze,He,B,U,V,X,B==="comma"&&Ee&&isArray$a(Te)?null:Y,K,J,xe,Z,_e,Se,Ee,Ae,je))}}return Le},normalizeStringifyOptions=function(E){if(!E)return defaults$1;if(E.encoder!==null&&typeof E.encoder<"u"&&typeof E.encoder!="function")throw new TypeError("Encoder has to be a function.");var I=E.charset||defaults$1.charset;if(typeof E.charset<"u"&&E.charset!=="utf-8"&&E.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var B=formats$1.default;if(typeof E.format<"u"){if(!has$1.call(formats$1.formatters,E.format))throw new TypeError("Unknown format option provided.");B=E.format}var U=formats$1.formatters[B],V=defaults$1.filter;return(typeof E.filter=="function"||isArray$a(E.filter))&&(V=E.filter),{addQueryPrefix:typeof E.addQueryPrefix=="boolean"?E.addQueryPrefix:defaults$1.addQueryPrefix,allowDots:typeof E.allowDots>"u"?defaults$1.allowDots:!!E.allowDots,charset:I,charsetSentinel:typeof E.charsetSentinel=="boolean"?E.charsetSentinel:defaults$1.charsetSentinel,delimiter:typeof E.delimiter>"u"?defaults$1.delimiter:E.delimiter,encode:typeof E.encode=="boolean"?E.encode:defaults$1.encode,encoder:typeof E.encoder=="function"?E.encoder:defaults$1.encoder,encodeValuesOnly:typeof E.encodeValuesOnly=="boolean"?E.encodeValuesOnly:defaults$1.encodeValuesOnly,filter:V,format:B,formatter:U,serializeDate:typeof E.serializeDate=="function"?E.serializeDate:defaults$1.serializeDate,skipNulls:typeof E.skipNulls=="boolean"?E.skipNulls:defaults$1.skipNulls,sort:typeof E.sort=="function"?E.sort:null,strictNullHandling:typeof E.strictNullHandling=="boolean"?E.strictNullHandling:defaults$1.strictNullHandling}},stringify_1=function(C,E){var I=C,B=normalizeStringifyOptions(E),U,V;typeof B.filter=="function"?(V=B.filter,I=V("",I)):isArray$a(B.filter)&&(V=B.filter,U=V);var X=[];if(typeof I!="object"||I===null)return"";var Y;E&&E.arrayFormat in arrayPrefixGenerators?Y=E.arrayFormat:E&&"indices"in E?Y=E.indices?"indices":"repeat":Y="indices";var K=arrayPrefixGenerators[Y];if(E&&"commaRoundTrip"in E&&typeof E.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var J=K==="comma"&&E&&E.commaRoundTrip;U||(U=Object.keys(I)),B.sort&&U.sort(B.sort);for(var xe=getSideChannel(),Z=0;Z<U.length;++Z){var _e=U[Z];B.skipNulls&&I[_e]===null||pushToArray(X,stringify$1(I[_e],_e,K,J,B.strictNullHandling,B.skipNulls,B.encode?B.encoder:null,B.filter,B.sort,B.allowDots,B.serializeDate,B.format,B.formatter,B.encodeValuesOnly,B.charset,xe))}var Se=X.join(B.delimiter),Ee=B.addQueryPrefix===!0?"?":"";return B.charsetSentinel&&(B.charset==="iso-8859-1"?Ee+="utf8=%26%2310003%3B&":Ee+="utf8=%E2%9C%93&"),Se.length>0?Ee+Se:""},utils=utils$2,has=Object.prototype.hasOwnProperty,isArray$9=Array.isArray,defaults={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:utils.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},interpretNumericEntities=function(C){return C.replace(/&#(\d+);/g,function(E,I){return String.fromCharCode(parseInt(I,10))})},parseArrayValue=function(C,E){return C&&typeof C=="string"&&E.comma&&C.indexOf(",")>-1?C.split(","):C},isoSentinel="utf8=%26%2310003%3B",charsetSentinel="utf8=%E2%9C%93",parseValues=function(E,I){var B={__proto__:null},U=I.ignoreQueryPrefix?E.replace(/^\?/,""):E,V=I.parameterLimit===1/0?void 0:I.parameterLimit,X=U.split(I.delimiter,V),Y=-1,K,J=I.charset;if(I.charsetSentinel)for(K=0;K<X.length;++K)X[K].indexOf("utf8=")===0&&(X[K]===charsetSentinel?J="utf-8":X[K]===isoSentinel&&(J="iso-8859-1"),Y=K,K=X.length);for(K=0;K<X.length;++K)if(K!==Y){var xe=X[K],Z=xe.indexOf("]="),_e=Z===-1?xe.indexOf("="):Z+1,Se,Ee;_e===-1?(Se=I.decoder(xe,defaults.decoder,J,"key"),Ee=I.strictNullHandling?null:""):(Se=I.decoder(xe.slice(0,_e),defaults.decoder,J,"key"),Ee=utils.maybeMap(parseArrayValue(xe.slice(_e+1),I),function(Ae){return I.decoder(Ae,defaults.decoder,J,"value")})),Ee&&I.interpretNumericEntities&&J==="iso-8859-1"&&(Ee=interpretNumericEntities(Ee)),xe.indexOf("[]=")>-1&&(Ee=isArray$9(Ee)?[Ee]:Ee),has.call(B,Se)?B[Se]=utils.combine(B[Se],Ee):B[Se]=Ee}return B},parseObject=function(C,E,I,B){for(var U=B?E:parseArrayValue(E,I),V=C.length-1;V>=0;--V){var X,Y=C[V];if(Y==="[]"&&I.parseArrays)X=[].concat(U);else{X=I.plainObjects?Object.create(null):{};var K=Y.charAt(0)==="["&&Y.charAt(Y.length-1)==="]"?Y.slice(1,-1):Y,J=parseInt(K,10);!I.parseArrays&&K===""?X={0:U}:!isNaN(J)&&Y!==K&&String(J)===K&&J>=0&&I.parseArrays&&J<=I.arrayLimit?(X=[],X[J]=U):K!=="__proto__"&&(X[K]=U)}U=X}return U},parseKeys=function(E,I,B,U){if(E){var V=B.allowDots?E.replace(/\.([^.[]+)/g,"[$1]"):E,X=/(\[[^[\]]*])/,Y=/(\[[^[\]]*])/g,K=B.depth>0&&X.exec(V),J=K?V.slice(0,K.index):V,xe=[];if(J){if(!B.plainObjects&&has.call(Object.prototype,J)&&!B.allowPrototypes)return;xe.push(J)}for(var Z=0;B.depth>0&&(K=Y.exec(V))!==null&&Z<B.depth;){if(Z+=1,!B.plainObjects&&has.call(Object.prototype,K[1].slice(1,-1))&&!B.allowPrototypes)return;xe.push(K[1])}return K&&xe.push("["+V.slice(K.index)+"]"),parseObject(xe,I,B,U)}},normalizeParseOptions=function(E){if(!E)return defaults;if(E.decoder!==null&&E.decoder!==void 0&&typeof E.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof E.charset<"u"&&E.charset!=="utf-8"&&E.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var I=typeof E.charset>"u"?defaults.charset:E.charset;return{allowDots:typeof E.allowDots>"u"?defaults.allowDots:!!E.allowDots,allowPrototypes:typeof E.allowPrototypes=="boolean"?E.allowPrototypes:defaults.allowPrototypes,allowSparse:typeof E.allowSparse=="boolean"?E.allowSparse:defaults.allowSparse,arrayLimit:typeof E.arrayLimit=="number"?E.arrayLimit:defaults.arrayLimit,charset:I,charsetSentinel:typeof E.charsetSentinel=="boolean"?E.charsetSentinel:defaults.charsetSentinel,comma:typeof E.comma=="boolean"?E.comma:defaults.comma,decoder:typeof E.decoder=="function"?E.decoder:defaults.decoder,delimiter:typeof E.delimiter=="string"||utils.isRegExp(E.delimiter)?E.delimiter:defaults.delimiter,depth:typeof E.depth=="number"||E.depth===!1?+E.depth:defaults.depth,ignoreQueryPrefix:E.ignoreQueryPrefix===!0,interpretNumericEntities:typeof E.interpretNumericEntities=="boolean"?E.interpretNumericEntities:defaults.interpretNumericEntities,parameterLimit:typeof E.parameterLimit=="number"?E.parameterLimit:defaults.parameterLimit,parseArrays:E.parseArrays!==!1,plainObjects:typeof E.plainObjects=="boolean"?E.plainObjects:defaults.plainObjects,strictNullHandling:typeof E.strictNullHandling=="boolean"?E.strictNullHandling:defaults.strictNullHandling}},parse$3=function(C,E){var I=normalizeParseOptions(E);if(C===""||C===null||typeof C>"u")return I.plainObjects?Object.create(null):{};for(var B=typeof C=="string"?parseValues(C,I):C,U=I.plainObjects?Object.create(null):{},V=Object.keys(B),X=0;X<V.length;++X){var Y=V[X],K=parseKeys(Y,B[Y],I,typeof C=="string");U=utils.merge(U,K,I)}return I.allowSparse===!0?U:utils.compact(U)},stringify=stringify_1,parse$2=parse$3,formats=formats$3,lib$2={formats,parse:parse$2,stringify},punycode=punycodeExports;function Url(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var protocolPattern=/^([a-z0-9.+-]+:)/i,portPattern=/:[0-9]*$/,simplePathPattern=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,delims=["<",">",'"',"`"," ","\r",`
37
+ `," "],unwise=["{","}","|","\\","^","`"].concat(delims),autoEscape=["'"].concat(unwise),nonHostChars=["%","/","?",";","#"].concat(autoEscape),hostEndingChars=["/","?","#"],hostnameMaxLen=255,hostnamePartPattern=/^[+a-z0-9A-Z_-]{0,63}$/,hostnamePartStart=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,unsafeProtocol={javascript:!0,"javascript:":!0},hostlessProtocol={javascript:!0,"javascript:":!0},slashedProtocol={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},querystring=lib$2;function urlParse(C,E,I){if(C&&typeof C=="object"&&C instanceof Url)return C;var B=new Url;return B.parse(C,E,I),B}Url.prototype.parse=function(C,E,I){if(typeof C!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof C);var B=C.indexOf("?"),U=B!==-1&&B<C.indexOf("#")?"?":"#",V=C.split(U),X=/\\/g;V[0]=V[0].replace(X,"/"),C=V.join(U);var Y=C;if(Y=Y.trim(),!I&&C.split("#").length===1){var K=simplePathPattern.exec(Y);if(K)return this.path=Y,this.href=Y,this.pathname=K[1],K[2]?(this.search=K[2],E?this.query=querystring.parse(this.search.substr(1)):this.query=this.search.substr(1)):E&&(this.search="",this.query={}),this}var J=protocolPattern.exec(Y);if(J){J=J[0];var xe=J.toLowerCase();this.protocol=xe,Y=Y.substr(J.length)}if(I||J||Y.match(/^\/\/[^@/]+@[^@/]+/)){var Z=Y.substr(0,2)==="//";Z&&!(J&&hostlessProtocol[J])&&(Y=Y.substr(2),this.slashes=!0)}if(!hostlessProtocol[J]&&(Z||J&&!slashedProtocol[J])){for(var _e=-1,Se=0;Se<hostEndingChars.length;Se++){var Ee=Y.indexOf(hostEndingChars[Se]);Ee!==-1&&(_e===-1||Ee<_e)&&(_e=Ee)}var Ae,Re;_e===-1?Re=Y.lastIndexOf("@"):Re=Y.lastIndexOf("@",_e),Re!==-1&&(Ae=Y.slice(0,Re),Y=Y.slice(Re+1),this.auth=decodeURIComponent(Ae)),_e=-1;for(var Se=0;Se<nonHostChars.length;Se++){var Ee=Y.indexOf(nonHostChars[Se]);Ee!==-1&&(_e===-1||Ee<_e)&&(_e=Ee)}_e===-1&&(_e=Y.length),this.host=Y.slice(0,_e),Y=Y.slice(_e),this.parseHost(),this.hostname=this.hostname||"";var Te=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Te)for(var we=this.hostname.split(/\./),Se=0,Pe=we.length;Se<Pe;Se++){var Ie=we[Se];if(Ie&&!Ie.match(hostnamePartPattern)){for(var Me="",Oe=0,Le=Ie.length;Oe<Le;Oe++)Ie.charCodeAt(Oe)>127?Me+="x":Me+=Ie[Oe];if(!Me.match(hostnamePartPattern)){var $e=we.slice(0,Se),Ve=we.slice(Se+1),Xe=Ie.match(hostnamePartStart);Xe&&($e.push(Xe[1]),Ve.unshift(Xe[2])),Ve.length&&(Y="/"+Ve.join(".")+Y),this.hostname=$e.join(".");break}}}this.hostname.length>hostnameMaxLen?this.hostname="":this.hostname=this.hostname.toLowerCase(),Te||(this.hostname=punycode.toASCII(this.hostname));var Ue=this.port?":"+this.port:"",We=this.hostname||"";this.host=We+Ue,this.href+=this.host,Te&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),Y[0]!=="/"&&(Y="/"+Y))}if(!unsafeProtocol[xe])for(var Se=0,Pe=autoEscape.length;Se<Pe;Se++){var ze=autoEscape[Se];if(Y.indexOf(ze)!==-1){var He=encodeURIComponent(ze);He===ze&&(He=escape(ze)),Y=Y.split(ze).join(He)}}var je=Y.indexOf("#");je!==-1&&(this.hash=Y.substr(je),Y=Y.slice(0,je));var Ne=Y.indexOf("?");if(Ne!==-1?(this.search=Y.substr(Ne),this.query=Y.substr(Ne+1),E&&(this.query=querystring.parse(this.query)),Y=Y.slice(0,Ne)):E&&(this.search="",this.query={}),Y&&(this.pathname=Y),slashedProtocol[xe]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Ue=this.pathname||"",De=this.search||"";this.path=Ue+De}return this.href=this.format(),this};function urlFormat(C){return typeof C=="string"&&(C=urlParse(C)),C instanceof Url?C.format():Url.prototype.format.call(C)}Url.prototype.format=function(){var C=this.auth||"";C&&(C=encodeURIComponent(C),C=C.replace(/%3A/i,":"),C+="@");var E=this.protocol||"",I=this.pathname||"",B=this.hash||"",U=!1,V="";this.host?U=C+this.host:this.hostname&&(U=C+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(U+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(V=querystring.stringify(this.query));var X=this.search||V&&"?"+V||"";return E&&E.substr(-1)!==":"&&(E+=":"),this.slashes||(!E||slashedProtocol[E])&&U!==!1?(U="//"+(U||""),I&&I.charAt(0)!=="/"&&(I="/"+I)):U||(U=""),B&&B.charAt(0)!=="#"&&(B="#"+B),X&&X.charAt(0)!=="?"&&(X="?"+X),I=I.replace(/[?#]/g,function(Y){return encodeURIComponent(Y)}),X=X.replace("#","%23"),E+U+I+X+B};function urlResolve(C,E){return urlParse(C,!1,!0).resolve(E)}Url.prototype.resolve=function(C){return this.resolveObject(urlParse(C,!1,!0)).format()},Url.prototype.resolveObject=function(C){if(typeof C=="string"){var E=new Url;E.parse(C,!1,!0),C=E}for(var I=new Url,B=Object.keys(this),U=0;U<B.length;U++){var V=B[U];I[V]=this[V]}if(I.hash=C.hash,C.href==="")return I.href=I.format(),I;if(C.slashes&&!C.protocol){for(var X=Object.keys(C),Y=0;Y<X.length;Y++){var K=X[Y];K!=="protocol"&&(I[K]=C[K])}return slashedProtocol[I.protocol]&&I.hostname&&!I.pathname&&(I.pathname="/",I.path=I.pathname),I.href=I.format(),I}if(C.protocol&&C.protocol!==I.protocol){if(!slashedProtocol[C.protocol]){for(var J=Object.keys(C),xe=0;xe<J.length;xe++){var Z=J[xe];I[Z]=C[Z]}return I.href=I.format(),I}if(I.protocol=C.protocol,!C.host&&!hostlessProtocol[C.protocol]){for(var Pe=(C.pathname||"").split("/");Pe.length&&!(C.host=Pe.shift()););C.host||(C.host=""),C.hostname||(C.hostname=""),Pe[0]!==""&&Pe.unshift(""),Pe.length<2&&Pe.unshift(""),I.pathname=Pe.join("/")}else I.pathname=C.pathname;if(I.search=C.search,I.query=C.query,I.host=C.host||"",I.auth=C.auth,I.hostname=C.hostname||C.host,I.port=C.port,I.pathname||I.search){var _e=I.pathname||"",Se=I.search||"";I.path=_e+Se}return I.slashes=I.slashes||C.slashes,I.href=I.format(),I}var Ee=I.pathname&&I.pathname.charAt(0)==="/",Ae=C.host||C.pathname&&C.pathname.charAt(0)==="/",Re=Ae||Ee||I.host&&C.pathname,Te=Re,we=I.pathname&&I.pathname.split("/")||[],Pe=C.pathname&&C.pathname.split("/")||[],Ie=I.protocol&&!slashedProtocol[I.protocol];if(Ie&&(I.hostname="",I.port=null,I.host&&(we[0]===""?we[0]=I.host:we.unshift(I.host)),I.host="",C.protocol&&(C.hostname=null,C.port=null,C.host&&(Pe[0]===""?Pe[0]=C.host:Pe.unshift(C.host)),C.host=null),Re=Re&&(Pe[0]===""||we[0]==="")),Ae)I.host=C.host||C.host===""?C.host:I.host,I.hostname=C.hostname||C.hostname===""?C.hostname:I.hostname,I.search=C.search,I.query=C.query,we=Pe;else if(Pe.length)we||(we=[]),we.pop(),we=we.concat(Pe),I.search=C.search,I.query=C.query;else if(C.search!=null){if(Ie){I.host=we.shift(),I.hostname=I.host;var Me=I.host&&I.host.indexOf("@")>0?I.host.split("@"):!1;Me&&(I.auth=Me.shift(),I.hostname=Me.shift(),I.host=I.hostname)}return I.search=C.search,I.query=C.query,(I.pathname!==null||I.search!==null)&&(I.path=(I.pathname?I.pathname:"")+(I.search?I.search:"")),I.href=I.format(),I}if(!we.length)return I.pathname=null,I.search?I.path="/"+I.search:I.path=null,I.href=I.format(),I;for(var Oe=we.slice(-1)[0],Le=(I.host||C.host||we.length>1)&&(Oe==="."||Oe==="..")||Oe==="",$e=0,Ve=we.length;Ve>=0;Ve--)Oe=we[Ve],Oe==="."?we.splice(Ve,1):Oe===".."?(we.splice(Ve,1),$e++):$e&&(we.splice(Ve,1),$e--);if(!Re&&!Te)for(;$e--;$e)we.unshift("..");Re&&we[0]!==""&&(!we[0]||we[0].charAt(0)!=="/")&&we.unshift(""),Le&&we.join("/").substr(-1)!=="/"&&we.push("");var Xe=we[0]===""||we[0]&&we[0].charAt(0)==="/";if(Ie){I.hostname=Xe?"":we.length?we.shift():"",I.host=I.hostname;var Me=I.host&&I.host.indexOf("@")>0?I.host.split("@"):!1;Me&&(I.auth=Me.shift(),I.hostname=Me.shift(),I.host=I.hostname)}return Re=Re||I.host&&we.length,Re&&!Xe&&we.unshift(""),we.length>0?I.pathname=we.join("/"):(I.pathname=null,I.path=null),(I.pathname!==null||I.search!==null)&&(I.path=(I.pathname?I.pathname:"")+(I.search?I.search:"")),I.auth=C.auth||I.auth,I.slashes=I.slashes||C.slashes,I.href=I.format(),I},Url.prototype.parseHost=function(){var C=this.host,E=portPattern.exec(C);E&&(E=E[0],E!==":"&&(this.port=E.substr(1)),C=C.substr(0,C.length-E.length)),C&&(this.hostname=C)};var parse$1=urlParse,resolve=urlResolve,format=urlFormat;const url={parse:parse$1,format,resolve},warnings={};function deprecation(C,E,I=3){if(warnings[E])return;let B=new Error().stack;typeof B>"u"?console.warn("PixiJS Deprecation Warning: ",`${E}
38
38
  Deprecated since v${C}`):(B=B.split(`
39
39
  `).splice(I).join(`
40
40
  `),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",`${E}
41
41
  Deprecated since v${C}`),console.warn(B),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",`${E}
42
42
  Deprecated since v${C}`),console.warn(B))),warnings[E]=!0}let supported;function isWebGLSupported(){return typeof supported>"u"&&(supported=function(){var I;const E={stencil:!0,failIfMajorPerformanceCaveat:settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!settings.ADAPTER.getWebGLRenderingContext())return!1;const B=settings.ADAPTER.createCanvas();let U=B.getContext("webgl",E)||B.getContext("experimental-webgl",E);const V=!!((I=U==null?void 0:U.getContextAttributes())!=null&&I.stencil);if(U){const X=U.getExtension("WEBGL_lose_context");X&&X.loseContext()}return U=null,V}catch{return!1}}()),supported}var r$4={grad:.9,turn:360,rad:360/(2*Math.PI)},t$3=function(C){return typeof C=="string"?C.length>0:typeof C=="number"},n$5=function(C,E,I){return E===void 0&&(E=0),I===void 0&&(I=Math.pow(10,E)),Math.round(I*C)/I+0},e$3=function(C,E,I){return E===void 0&&(E=0),I===void 0&&(I=1),C>I?I:C>E?C:E},u$4=function(C){return(C=isFinite(C)?C%360:0)>0?C:C+360},a$6=function(C){return{r:e$3(C.r,0,255),g:e$3(C.g,0,255),b:e$3(C.b,0,255),a:e$3(C.a)}},o$5=function(C){return{r:n$5(C.r),g:n$5(C.g),b:n$5(C.b),a:n$5(C.a,3)}},i$6=/^#([0-9a-f]{3,8})$/i,s$5=function(C){var E=C.toString(16);return E.length<2?"0"+E:E},h$1=function(C){var E=C.r,I=C.g,B=C.b,U=C.a,V=Math.max(E,I,B),X=V-Math.min(E,I,B),Y=X?V===E?(I-B)/X:V===I?2+(B-E)/X:4+(E-I)/X:0;return{h:60*(Y<0?Y+6:Y),s:V?X/V*100:0,v:V/255*100,a:U}},b$2=function(C){var E=C.h,I=C.s,B=C.v,U=C.a;E=E/360*6,I/=100,B/=100;var V=Math.floor(E),X=B*(1-I),Y=B*(1-(E-V)*I),K=B*(1-(1-E+V)*I),J=V%6;return{r:255*[B,Y,X,X,K,B][J],g:255*[K,B,B,Y,X,X][J],b:255*[X,X,K,B,B,Y][J],a:U}},g$2=function(C){return{h:u$4(C.h),s:e$3(C.s,0,100),l:e$3(C.l,0,100),a:e$3(C.a)}},d$4=function(C){return{h:n$5(C.h),s:n$5(C.s),l:n$5(C.l),a:n$5(C.a,3)}},f$4=function(C){return b$2((I=(E=C).s,{h:E.h,s:(I*=((B=E.l)<50?B:100-B)/100)>0?2*I/(B+I)*100:0,v:B+I,a:E.a}));var E,I,B},c$7=function(C){return{h:(E=h$1(C)).h,s:(U=(200-(I=E.s))*(B=E.v)/100)>0&&U<200?I*B/100/(U<=100?U:200-U)*100:0,l:U/2,a:E.a};var E,I,B,U},l$5=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,p$2=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,v$3=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,m$3=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,y$2={string:[[function(C){var E=i$6.exec(C);return E?(C=E[1]).length<=4?{r:parseInt(C[0]+C[0],16),g:parseInt(C[1]+C[1],16),b:parseInt(C[2]+C[2],16),a:C.length===4?n$5(parseInt(C[3]+C[3],16)/255,2):1}:C.length===6||C.length===8?{r:parseInt(C.substr(0,2),16),g:parseInt(C.substr(2,2),16),b:parseInt(C.substr(4,2),16),a:C.length===8?n$5(parseInt(C.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(C){var E=v$3.exec(C)||m$3.exec(C);return E?E[2]!==E[4]||E[4]!==E[6]?null:a$6({r:Number(E[1])/(E[2]?100/255:1),g:Number(E[3])/(E[4]?100/255:1),b:Number(E[5])/(E[6]?100/255:1),a:E[7]===void 0?1:Number(E[7])/(E[8]?100:1)}):null},"rgb"],[function(C){var E=l$5.exec(C)||p$2.exec(C);if(!E)return null;var I,B,U=g$2({h:(I=E[1],B=E[2],B===void 0&&(B="deg"),Number(I)*(r$4[B]||1)),s:Number(E[3]),l:Number(E[4]),a:E[5]===void 0?1:Number(E[5])/(E[6]?100:1)});return f$4(U)},"hsl"]],object:[[function(C){var E=C.r,I=C.g,B=C.b,U=C.a,V=U===void 0?1:U;return t$3(E)&&t$3(I)&&t$3(B)?a$6({r:Number(E),g:Number(I),b:Number(B),a:Number(V)}):null},"rgb"],[function(C){var E=C.h,I=C.s,B=C.l,U=C.a,V=U===void 0?1:U;if(!t$3(E)||!t$3(I)||!t$3(B))return null;var X=g$2({h:Number(E),s:Number(I),l:Number(B),a:Number(V)});return f$4(X)},"hsl"],[function(C){var E=C.h,I=C.s,B=C.v,U=C.a,V=U===void 0?1:U;if(!t$3(E)||!t$3(I)||!t$3(B))return null;var X=function(Y){return{h:u$4(Y.h),s:e$3(Y.s,0,100),v:e$3(Y.v,0,100),a:e$3(Y.a)}}({h:Number(E),s:Number(I),v:Number(B),a:Number(V)});return b$2(X)},"hsv"]]},N$1=function(C,E){for(var I=0;I<E.length;I++){var B=E[I][0](C);if(B)return[B,E[I][1]]}return[null,void 0]},x$3=function(C){return typeof C=="string"?N$1(C.trim(),y$2.string):typeof C=="object"&&C!==null?N$1(C,y$2.object):[null,void 0]},M$1=function(C,E){var I=c$7(C);return{h:I.h,s:e$3(I.s+100*E,0,100),l:I.l,a:I.a}},H=function(C){return(299*C.r+587*C.g+114*C.b)/1e3/255},$=function(C,E){var I=c$7(C);return{h:I.h,s:I.s,l:e$3(I.l+100*E,0,100),a:I.a}},j=function(){function C(E){this.parsed=x$3(E)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return C.prototype.isValid=function(){return this.parsed!==null},C.prototype.brightness=function(){return n$5(H(this.rgba),2)},C.prototype.isDark=function(){return H(this.rgba)<.5},C.prototype.isLight=function(){return H(this.rgba)>=.5},C.prototype.toHex=function(){return E=o$5(this.rgba),I=E.r,B=E.g,U=E.b,X=(V=E.a)<1?s$5(n$5(255*V)):"","#"+s$5(I)+s$5(B)+s$5(U)+X;var E,I,B,U,V,X},C.prototype.toRgb=function(){return o$5(this.rgba)},C.prototype.toRgbString=function(){return E=o$5(this.rgba),I=E.r,B=E.g,U=E.b,(V=E.a)<1?"rgba("+I+", "+B+", "+U+", "+V+")":"rgb("+I+", "+B+", "+U+")";var E,I,B,U,V},C.prototype.toHsl=function(){return d$4(c$7(this.rgba))},C.prototype.toHslString=function(){return E=d$4(c$7(this.rgba)),I=E.h,B=E.s,U=E.l,(V=E.a)<1?"hsla("+I+", "+B+"%, "+U+"%, "+V+")":"hsl("+I+", "+B+"%, "+U+"%)";var E,I,B,U,V},C.prototype.toHsv=function(){return E=h$1(this.rgba),{h:n$5(E.h),s:n$5(E.s),v:n$5(E.v),a:n$5(E.a,3)};var E},C.prototype.invert=function(){return w$1({r:255-(E=this.rgba).r,g:255-E.g,b:255-E.b,a:E.a});var E},C.prototype.saturate=function(E){return E===void 0&&(E=.1),w$1(M$1(this.rgba,E))},C.prototype.desaturate=function(E){return E===void 0&&(E=.1),w$1(M$1(this.rgba,-E))},C.prototype.grayscale=function(){return w$1(M$1(this.rgba,-1))},C.prototype.lighten=function(E){return E===void 0&&(E=.1),w$1($(this.rgba,E))},C.prototype.darken=function(E){return E===void 0&&(E=.1),w$1($(this.rgba,-E))},C.prototype.rotate=function(E){return E===void 0&&(E=15),this.hue(this.hue()+E)},C.prototype.alpha=function(E){return typeof E=="number"?w$1({r:(I=this.rgba).r,g:I.g,b:I.b,a:E}):n$5(this.rgba.a,3);var I},C.prototype.hue=function(E){var I=c$7(this.rgba);return typeof E=="number"?w$1({h:E,s:I.s,l:I.l,a:I.a}):n$5(I.h)},C.prototype.isEqual=function(E){return this.toHex()===w$1(E).toHex()},C}(),w$1=function(C){return C instanceof j?C:new j(C)},S$1=[],k$1=function(C){C.forEach(function(E){S$1.indexOf(E)<0&&(E(j,y$2),S$1.push(E))})};function namesPlugin(C,E){var I={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},B={};for(var U in I)B[I[U]]=U;var V={};C.prototype.toName=function(X){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var Y,K,J=B[this.toHex()];if(J)return J;if(X!=null&&X.closest){var xe=this.toRgb(),Z=1/0,_e="black";if(!V.length)for(var Se in I)V[Se]=new C(I[Se]).toRgb();for(var Ee in I){var Ae=(Y=xe,K=V[Ee],Math.pow(Y.r-K.r,2)+Math.pow(Y.g-K.g,2)+Math.pow(Y.b-K.b,2));Ae<Z&&(Z=Ae,_e=Ee)}return _e}},E.string.push([function(X){var Y=X.toLowerCase(),K=Y==="transparent"?"#0000":I[Y];return K?new C(K).toRgb():null},"name"])}k$1([namesPlugin]);const _Color=class{constructor(C=16777215){this._value=null,this._components=new Float32Array(4),this._components.fill(1),this._int=16777215,this.value=C}get red(){return this._components[0]}get green(){return this._components[1]}get blue(){return this._components[2]}get alpha(){return this._components[3]}setValue(C){return this.value=C,this}set value(C){if(C instanceof _Color)this._value=this.cloneSource(C._value),this._int=C._int,this._components.set(C._components);else{if(C===null)throw new Error("Cannot set PIXI.Color#value to null");(this._value===null||!this.isSourceEqual(this._value,C))&&(this.normalize(C),this._value=this.cloneSource(C))}}get value(){return this._value}cloneSource(C){return typeof C=="string"||typeof C=="number"||C instanceof Number||C===null?C:Array.isArray(C)||ArrayBuffer.isView(C)?C.slice(0):typeof C=="object"&&C!==null?{...C}:C}isSourceEqual(C,E){const I=typeof C;if(I!==typeof E)return!1;if(I==="number"||I==="string"||C instanceof Number)return C===E;if(Array.isArray(C)&&Array.isArray(E)||ArrayBuffer.isView(C)&&ArrayBuffer.isView(E))return C.length!==E.length?!1:C.every((U,V)=>U===E[V]);if(C!==null&&E!==null){const U=Object.keys(C),V=Object.keys(E);return U.length!==V.length?!1:U.every(X=>C[X]===E[X])}return C===E}toRgba(){const[C,E,I,B]=this._components;return{r:C,g:E,b:I,a:B}}toRgb(){const[C,E,I]=this._components;return{r:C,g:E,b:I}}toRgbaString(){const[C,E,I]=this.toUint8RgbArray();return`rgba(${C},${E},${I},${this.alpha})`}toUint8RgbArray(C){const[E,I,B]=this._components;return C=C??[],C[0]=Math.round(E*255),C[1]=Math.round(I*255),C[2]=Math.round(B*255),C}toRgbArray(C){C=C??[];const[E,I,B]=this._components;return C[0]=E,C[1]=I,C[2]=B,C}toNumber(){return this._int}toLittleEndianNumber(){const C=this._int;return(C>>16)+(C&65280)+((C&255)<<16)}multiply(C){const[E,I,B,U]=_Color.temp.setValue(C)._components;return this._components[0]*=E,this._components[1]*=I,this._components[2]*=B,this._components[3]*=U,this.refreshInt(),this._value=null,this}premultiply(C,E=!0){return E&&(this._components[0]*=C,this._components[1]*=C,this._components[2]*=C),this._components[3]=C,this.refreshInt(),this._value=null,this}toPremultiplied(C){if(C===1)return(C*255<<24)+this._int;if(C===0)return 0;let E=this._int>>16&255,I=this._int>>8&255,B=this._int&255;return E=E*C+.5|0,I=I*C+.5|0,B=B*C+.5|0,(C*255<<24)+(E<<16)+(I<<8)+B}toHex(){const C=this._int.toString(16);return`#${"000000".substring(0,6-C.length)+C}`}toHexa(){const E=Math.round(this._components[3]*255).toString(16);return this.toHex()+"00".substring(0,2-E.length)+E}setAlpha(C){return this._components[3]=this._clamp(C),this}round(C){const[E,I,B]=this._components;return this._components[0]=Math.round(E*C)/C,this._components[1]=Math.round(I*C)/C,this._components[2]=Math.round(B*C)/C,this.refreshInt(),this._value=null,this}toArray(C){C=C??[];const[E,I,B,U]=this._components;return C[0]=E,C[1]=I,C[2]=B,C[3]=U,C}normalize(C){let E;if((typeof C=="number"||C instanceof Number)&&C>=0&&C<=16777215){const I=C;E=[(I>>16&255)/255,(I>>8&255)/255,(I&255)/255,1]}else if((Array.isArray(C)||C instanceof Float32Array)&&C.length>=3&&C.length<=4){C=this._clamp(C);const[I,B,U,V=1]=C;E=[I,B,U,V]}else if((C instanceof Uint8Array||C instanceof Uint8ClampedArray)&&C.length>=3&&C.length<=4){C=this._clamp(C,0,255);const[I,B,U,V=255]=C;E=[I/255,B/255,U/255,V/255]}else if(typeof C=="string"||typeof C=="object"){if(typeof C=="string"){const B=_Color.HEX_PATTERN.exec(C);B&&(C=`#${B[2]}`)}const I=w$1(C);if(I.isValid()){const{r:B,g:U,b:V,a:X}=I.rgba;E=[B/255,U/255,V/255,X]}}if(E)this._components.set(E),this.refreshInt();else throw new Error(`Unable to convert color ${C}`)}refreshInt(){this._clamp(this._components);const[C,E,I]=this._components;this._int=(C*255<<16)+(E*255<<8)+(I*255|0)}_clamp(C,E=0,I=1){return typeof C=="number"?Math.min(Math.max(C,E),I):(C.forEach((B,U)=>{C[U]=Math.min(Math.max(B,E),I)}),C)}};let Color=_Color;Color.shared=new _Color,Color.temp=new _Color,Color.HEX_PATTERN=/^(#|0x)?(([a-f0-9]{3}){1,2}([a-f0-9]{2})?)$/i;function hex2rgb(C,E=[]){return deprecation("7.2.0","utils.hex2rgb is deprecated, use Color#toRgbArray instead"),Color.shared.setValue(C).toRgbArray(E)}function rgb2hex(C){return deprecation("7.2.0","utils.rgb2hex is deprecated, use Color#toNumber instead"),Color.shared.setValue(C).toNumber()}function mapPremultipliedBlendModes(){const C=[],E=[];for(let B=0;B<32;B++)C[B]=B,E[B]=B;C[BLEND_MODES.NORMAL_NPM]=BLEND_MODES.NORMAL,C[BLEND_MODES.ADD_NPM]=BLEND_MODES.ADD,C[BLEND_MODES.SCREEN_NPM]=BLEND_MODES.SCREEN,E[BLEND_MODES.NORMAL]=BLEND_MODES.NORMAL_NPM,E[BLEND_MODES.ADD]=BLEND_MODES.ADD_NPM,E[BLEND_MODES.SCREEN]=BLEND_MODES.SCREEN_NPM;const I=[];return I.push(E),I.push(C),I}const premultiplyBlendMode=mapPremultipliedBlendModes();function getBufferType(C){if(C.BYTES_PER_ELEMENT===4)return C instanceof Float32Array?"Float32Array":C instanceof Uint32Array?"Uint32Array":"Int32Array";if(C.BYTES_PER_ELEMENT===2){if(C instanceof Uint16Array)return"Uint16Array"}else if(C.BYTES_PER_ELEMENT===1&&C instanceof Uint8Array)return"Uint8Array";return null}function nextPow2(C){return C+=C===0?1:0,--C,C|=C>>>1,C|=C>>>2,C|=C>>>4,C|=C>>>8,C|=C>>>16,C+1}function isPow2(C){return!(C&C-1)&&!!C}function log2(C){let E=(C>65535?1:0)<<4;C>>>=E;let I=(C>255?1:0)<<3;return C>>>=I,E|=I,I=(C>15?1:0)<<2,C>>>=I,E|=I,I=(C>3?1:0)<<1,C>>>=I,E|=I,E|C>>1}function removeItems(C,E,I){const B=C.length;let U;if(E>=B||I===0)return;I=E+I>B?B-E:I;const V=B-I;for(U=E;U<V;++U)C[U]=C[U+I];C.length=V}let nextUid=0;function uid(){return++nextUid}const ProgramCache={},TextureCache=Object.create(null),BaseTextureCache=Object.create(null);let tempAnchor;function determineCrossOrigin(C,E=globalThis.location){if(C.startsWith("data:"))return"";E=E||globalThis.location,tempAnchor||(tempAnchor=document.createElement("a")),tempAnchor.href=C;const I=url.parse(tempAnchor.href),B=!I.port&&E.port===""||I.port===E.port;return I.hostname!==E.hostname||!B||I.protocol!==E.protocol?"anonymous":""}function getResolutionOfUrl(C,E=1){var B;const I=(B=settings.RETINA_PREFIX)==null?void 0:B.exec(C);return I?parseFloat(I[1]):E}var ExtensionType=(C=>(C.Renderer="renderer",C.Application="application",C.RendererSystem="renderer-webgl-system",C.RendererPlugin="renderer-webgl-plugin",C.CanvasRendererSystem="renderer-canvas-system",C.CanvasRendererPlugin="renderer-canvas-plugin",C.Asset="asset",C.LoadParser="load-parser",C.ResolveParser="resolve-parser",C.CacheParser="cache-parser",C.DetectionParser="detection-parser",C))(ExtensionType||{});const normalizeExtension=C=>{if(typeof C=="function"||typeof C=="object"&&C.extension){if(!C.extension)throw new Error("Extension class must have an extension object");C={...typeof C.extension!="object"?{type:C.extension}:C.extension,ref:C}}if(typeof C=="object")C={...C};else throw new Error("Invalid extension type");return typeof C.type=="string"&&(C.type=[C.type]),C},normalizePriority=(C,E)=>normalizeExtension(C).priority??E,extensions={_addHandlers:{},_removeHandlers:{},_queue:{},remove(...C){return C.map(normalizeExtension).forEach(E=>{E.type.forEach(I=>{var B,U;return(U=(B=this._removeHandlers)[I])==null?void 0:U.call(B,E)})}),this},add(...C){return C.map(normalizeExtension).forEach(E=>{E.type.forEach(I=>{const B=this._addHandlers,U=this._queue;B[I]?B[I](E):(U[I]=U[I]||[],U[I].push(E))})}),this},handle(C,E,I){const B=this._addHandlers,U=this._removeHandlers;if(B[C]||U[C])throw new Error(`Extension type ${C} already has a handler`);B[C]=E,U[C]=I;const V=this._queue;return V[C]&&(V[C].forEach(X=>E(X)),delete V[C]),this},handleByMap(C,E){return this.handle(C,I=>{E[I.name]=I.ref},I=>{delete E[I.name]})},handleByList(C,E,I=-1){return this.handle(C,B=>{E.includes(B.ref)||(E.push(B.ref),E.sort((U,V)=>normalizePriority(V,I)-normalizePriority(U,I)))},B=>{const U=E.indexOf(B.ref);U!==-1&&E.splice(U,1)})}};class ViewableBuffer{constructor(E){typeof E=="number"?this.rawBinaryData=new ArrayBuffer(E):E instanceof Uint8Array?this.rawBinaryData=E.buffer:this.rawBinaryData=E,this.uint32View=new Uint32Array(this.rawBinaryData),this.float32View=new Float32Array(this.rawBinaryData)}get int8View(){return this._int8View||(this._int8View=new Int8Array(this.rawBinaryData)),this._int8View}get uint8View(){return this._uint8View||(this._uint8View=new Uint8Array(this.rawBinaryData)),this._uint8View}get int16View(){return this._int16View||(this._int16View=new Int16Array(this.rawBinaryData)),this._int16View}get uint16View(){return this._uint16View||(this._uint16View=new Uint16Array(this.rawBinaryData)),this._uint16View}get int32View(){return this._int32View||(this._int32View=new Int32Array(this.rawBinaryData)),this._int32View}view(E){return this[`${E}View`]}destroy(){this.rawBinaryData=null,this._int8View=null,this._uint8View=null,this._int16View=null,this._uint16View=null,this._int32View=null,this.uint32View=null,this.float32View=null}static sizeOf(E){switch(E){case"int8":case"uint8":return 1;case"int16":case"uint16":return 2;case"int32":case"uint32":case"float32":return 4;default:throw new Error(`${E} isn't a valid view type`)}}}const fragTemplate=["precision mediump float;","void main(void){","float test = 0.1;","%forloop%","gl_FragColor = vec4(0.0);","}"].join(`
43
43
  `);function generateIfTestSrc(C){let E="";for(let I=0;I<C;++I)I>0&&(E+=`
44
- else `),I<C-1&&(E+=`if(test == ${I}.0){}`);return E}function checkMaxIfStatementsInShader(C,E){if(C===0)throw new Error("Invalid value of `0` passed to `checkMaxIfStatementsInShader`");const I=E.createShader(E.FRAGMENT_SHADER);for(;;){const B=fragTemplate.replace(/%forloop%/gi,generateIfTestSrc(C));if(E.shaderSource(I,B),E.compileShader(I),!E.getShaderParameter(I,E.COMPILE_STATUS))C=C/2|0;else break}return C}const BLEND$1=0,OFFSET$1=1,CULLING$1=2,DEPTH_TEST$1=3,WINDING$1=4,DEPTH_MASK$1=5;let State$1=class hr{constructor(){this.data=0,this.blendMode=BLEND_MODES.NORMAL,this.polygonOffset=0,this.blend=!0,this.depthMask=!0}get blend(){return!!(this.data&1<<BLEND$1)}set blend(E){!!(this.data&1<<BLEND$1)!==E&&(this.data^=1<<BLEND$1)}get offsets(){return!!(this.data&1<<OFFSET$1)}set offsets(E){!!(this.data&1<<OFFSET$1)!==E&&(this.data^=1<<OFFSET$1)}get culling(){return!!(this.data&1<<CULLING$1)}set culling(E){!!(this.data&1<<CULLING$1)!==E&&(this.data^=1<<CULLING$1)}get depthTest(){return!!(this.data&1<<DEPTH_TEST$1)}set depthTest(E){!!(this.data&1<<DEPTH_TEST$1)!==E&&(this.data^=1<<DEPTH_TEST$1)}get depthMask(){return!!(this.data&1<<DEPTH_MASK$1)}set depthMask(E){!!(this.data&1<<DEPTH_MASK$1)!==E&&(this.data^=1<<DEPTH_MASK$1)}get clockwiseFrontFace(){return!!(this.data&1<<WINDING$1)}set clockwiseFrontFace(E){!!(this.data&1<<WINDING$1)!==E&&(this.data^=1<<WINDING$1)}get blendMode(){return this._blendMode}set blendMode(E){this.blend=E!==BLEND_MODES.NONE,this._blendMode=E}get polygonOffset(){return this._polygonOffset}set polygonOffset(E){this.offsets=!!E,this._polygonOffset=E}toString(){return`[@pixi/core:State blendMode=${this.blendMode} clockwiseFrontFace=${this.clockwiseFrontFace} culling=${this.culling} depthMask=${this.depthMask} polygonOffset=${this.polygonOffset}]`}static for2d(){const E=new hr;return E.depthTest=!1,E.blend=!0,E}};const INSTALLED=[];function autoDetectResource(C,E){if(!C)return null;let I="";if(typeof C=="string"){const B=/\.(\w{3,4})(?:$|\?|#)/i.exec(C);B&&(I=B[1].toLowerCase())}for(let B=INSTALLED.length-1;B>=0;--B){const U=INSTALLED[B];if(U.test&&U.test(C,I))return new U(C,E)}throw new Error("Unrecognized source type to auto-detect Resource")}class Runner{constructor(E){this.items=[],this._name=E,this._aliasCount=0}emit(E,I,B,U,V,X,Y,K){if(arguments.length>8)throw new Error("max arguments reached");const{name:J,items:xe}=this;this._aliasCount++;for(let Z=0,_e=xe.length;Z<_e;Z++)xe[Z][J](E,I,B,U,V,X,Y,K);return xe===this.items&&this._aliasCount--,this}ensureNonAliasedItems(){this._aliasCount>0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))}add(E){return E[this._name]&&(this.ensureNonAliasedItems(),this.remove(E),this.items.push(E)),this}remove(E){const I=this.items.indexOf(E);return I!==-1&&(this.ensureNonAliasedItems(),this.items.splice(I,1)),this}contains(E){return this.items.includes(E)}removeAll(){return this.ensureNonAliasedItems(),this.items.length=0,this}destroy(){this.removeAll(),this.items=null,this._name=null}get empty(){return this.items.length===0}get name(){return this._name}}Object.defineProperties(Runner.prototype,{dispatch:{value:Runner.prototype.emit},run:{value:Runner.prototype.emit}});class Resource{constructor(E=0,I=0){this._width=E,this._height=I,this.destroyed=!1,this.internal=!1,this.onResize=new Runner("setRealSize"),this.onUpdate=new Runner("update"),this.onError=new Runner("onError")}bind(E){this.onResize.add(E),this.onUpdate.add(E),this.onError.add(E),(this._width||this._height)&&this.onResize.emit(this._width,this._height)}unbind(E){this.onResize.remove(E),this.onUpdate.remove(E),this.onError.remove(E)}resize(E,I){(E!==this._width||I!==this._height)&&(this._width=E,this._height=I,this.onResize.emit(E,I))}get valid(){return!!this._width&&!!this._height}update(){this.destroyed||this.onUpdate.emit()}load(){return Promise.resolve(this)}get width(){return this._width}get height(){return this._height}style(E,I,B){return!1}dispose(){}destroy(){this.destroyed||(this.destroyed=!0,this.dispose(),this.onError.removeAll(),this.onError=null,this.onResize.removeAll(),this.onResize=null,this.onUpdate.removeAll(),this.onUpdate=null)}static test(E,I){return!1}}class BufferResource extends Resource{constructor(E,I){const{width:B,height:U}=I||{};if(!B||!U)throw new Error("BufferResource width or height invalid");super(B,U),this.data=E}upload(E,I,B){const U=E.gl;U.pixelStorei(U.UNPACK_PREMULTIPLY_ALPHA_WEBGL,I.alphaMode===ALPHA_MODES.UNPACK);const V=I.realWidth,X=I.realHeight;return B.width===V&&B.height===X?U.texSubImage2D(I.target,0,0,0,V,X,I.format,B.type,this.data):(B.width=V,B.height=X,U.texImage2D(I.target,0,B.internalFormat,V,X,0,I.format,B.type,this.data)),!0}dispose(){this.data=null}static test(E){return E instanceof Float32Array||E instanceof Uint8Array||E instanceof Uint32Array}}const defaultBufferOptions={scaleMode:SCALE_MODES.NEAREST,format:FORMATS.RGBA,alphaMode:ALPHA_MODES.NPM},_BaseTexture=class extends EventEmitter{constructor(C=null,E=null){super(),E=Object.assign({},_BaseTexture.defaultOptions,E);const{alphaMode:I,mipmap:B,anisotropicLevel:U,scaleMode:V,width:X,height:Y,wrapMode:K,format:J,type:xe,target:Z,resolution:_e,resourceOptions:Se}=E;C&&!(C instanceof Resource)&&(C=autoDetectResource(C,Se),C.internal=!0),this.resolution=_e||settings.RESOLUTION,this.width=Math.round((X||0)*this.resolution)/this.resolution,this.height=Math.round((Y||0)*this.resolution)/this.resolution,this._mipmap=B,this.anisotropicLevel=U,this._wrapMode=K,this._scaleMode=V,this.format=J,this.type=xe,this.target=Z,this.alphaMode=I,this.uid=uid(),this.touched=0,this.isPowerOfTwo=!1,this._refreshPOT(),this._glTextures={},this.dirtyId=0,this.dirtyStyleId=0,this.cacheId=null,this.valid=X>0&&Y>0,this.textureCacheIds=[],this.destroyed=!1,this.resource=null,this._batchEnabled=0,this._batchLocation=0,this.parentTextureArray=null,this.setResource(C)}get realWidth(){return Math.round(this.width*this.resolution)}get realHeight(){return Math.round(this.height*this.resolution)}get mipmap(){return this._mipmap}set mipmap(C){this._mipmap!==C&&(this._mipmap=C,this.dirtyStyleId++)}get scaleMode(){return this._scaleMode}set scaleMode(C){this._scaleMode!==C&&(this._scaleMode=C,this.dirtyStyleId++)}get wrapMode(){return this._wrapMode}set wrapMode(C){this._wrapMode!==C&&(this._wrapMode=C,this.dirtyStyleId++)}setStyle(C,E){let I;return C!==void 0&&C!==this.scaleMode&&(this.scaleMode=C,I=!0),E!==void 0&&E!==this.mipmap&&(this.mipmap=E,I=!0),I&&this.dirtyStyleId++,this}setSize(C,E,I){return I=I||this.resolution,this.setRealSize(C*I,E*I,I)}setRealSize(C,E,I){return this.resolution=I||this.resolution,this.width=Math.round(C)/this.resolution,this.height=Math.round(E)/this.resolution,this._refreshPOT(),this.update(),this}_refreshPOT(){this.isPowerOfTwo=isPow2(this.realWidth)&&isPow2(this.realHeight)}setResolution(C){const E=this.resolution;return E===C?this:(this.resolution=C,this.valid&&(this.width=Math.round(this.width*E)/C,this.height=Math.round(this.height*E)/C,this.emit("update",this)),this._refreshPOT(),this)}setResource(C){if(this.resource===C)return this;if(this.resource)throw new Error("Resource can be set only once");return C.bind(this),this.resource=C,this}update(){this.valid?(this.dirtyId++,this.dirtyStyleId++,this.emit("update",this)):this.width>0&&this.height>0&&(this.valid=!0,this.emit("loaded",this),this.emit("update",this))}onError(C){this.emit("error",this,C)}destroy(){this.resource&&(this.resource.unbind(this),this.resource.internal&&this.resource.destroy(),this.resource=null),this.cacheId&&(delete BaseTextureCache[this.cacheId],delete TextureCache[this.cacheId],this.cacheId=null),this.dispose(),_BaseTexture.removeFromCache(this),this.textureCacheIds=null,this.destroyed=!0}dispose(){this.emit("dispose",this)}castToBaseTexture(){return this}static from(C,E,I=settings.STRICT_TEXTURE_CACHE){const B=typeof C=="string";let U=null;if(B)U=C;else{if(!C._pixiId){const X=(E==null?void 0:E.pixiIdPrefix)||"pixiid";C._pixiId=`${X}_${uid()}`}U=C._pixiId}let V=BaseTextureCache[U];if(B&&I&&!V)throw new Error(`The cacheId "${U}" does not exist in BaseTextureCache.`);return V||(V=new _BaseTexture(C,E),V.cacheId=U,_BaseTexture.addToCache(V,U)),V}static fromBuffer(C,E,I,B){C=C||new Float32Array(E*I*4);const U=new BufferResource(C,{width:E,height:I}),V=C instanceof Float32Array?TYPES.FLOAT:TYPES.UNSIGNED_BYTE;return new _BaseTexture(U,Object.assign({},defaultBufferOptions,B||{width:E,height:I,type:V}))}static addToCache(C,E){E&&(C.textureCacheIds.includes(E)||C.textureCacheIds.push(E),BaseTextureCache[E]&&BaseTextureCache[E]!==C&&console.warn(`BaseTexture added to the cache with an id [${E}] that already had an entry`),BaseTextureCache[E]=C)}static removeFromCache(C){if(typeof C=="string"){const E=BaseTextureCache[C];if(E){const I=E.textureCacheIds.indexOf(C);return I>-1&&E.textureCacheIds.splice(I,1),delete BaseTextureCache[C],E}}else if(C!=null&&C.textureCacheIds){for(let E=0;E<C.textureCacheIds.length;++E)delete BaseTextureCache[C.textureCacheIds[E]];return C.textureCacheIds.length=0,C}return null}};let BaseTexture=_BaseTexture;BaseTexture.defaultOptions={mipmap:MIPMAP_MODES.POW2,anisotropicLevel:0,scaleMode:SCALE_MODES.LINEAR,wrapMode:WRAP_MODES.CLAMP,alphaMode:ALPHA_MODES.UNPACK,target:TARGETS.TEXTURE_2D,format:FORMATS.RGBA,type:TYPES.UNSIGNED_BYTE},BaseTexture._globalBatch=0;class BatchDrawCall{constructor(){this.texArray=null,this.blend=0,this.type=DRAW_MODES.TRIANGLES,this.start=0,this.size=0,this.data=null}}let UID$4=0;class Buffer{constructor(E,I=!0,B=!1){this.data=E||new Float32Array(1),this._glBuffers={},this._updateID=0,this.index=B,this.static=I,this.id=UID$4++,this.disposeRunner=new Runner("disposeBuffer")}update(E){E instanceof Array&&(E=new Float32Array(E)),this.data=E||this.data,this._updateID++}dispose(){this.disposeRunner.emit(this,!1)}destroy(){this.dispose(),this.data=null}set index(E){this.type=E?BUFFER_TYPE.ELEMENT_ARRAY_BUFFER:BUFFER_TYPE.ARRAY_BUFFER}get index(){return this.type===BUFFER_TYPE.ELEMENT_ARRAY_BUFFER}static from(E){return E instanceof Array&&(E=new Float32Array(E)),new Buffer(E)}}class Attribute{constructor(E,I=0,B=!1,U=TYPES.FLOAT,V,X,Y,K=1){this.buffer=E,this.size=I,this.normalized=B,this.type=U,this.stride=V,this.start=X,this.instance=Y,this.divisor=K}destroy(){this.buffer=null}static from(E,I,B,U,V){return new Attribute(E,I,B,U,V)}}const map$3={Float32Array,Uint32Array,Int32Array,Uint8Array};function interleaveTypedArrays(C,E){let I=0,B=0;const U={};for(let K=0;K<C.length;K++)B+=E[K],I+=C[K].length;const V=new ArrayBuffer(I*4);let X=null,Y=0;for(let K=0;K<C.length;K++){const J=E[K],xe=C[K],Z=getBufferType(xe);U[Z]||(U[Z]=new map$3[Z](V)),X=U[Z];for(let _e=0;_e<xe.length;_e++){const Se=(_e/J|0)*B+Y,Ee=_e%J;X[Se+Ee]=xe[_e]}Y+=J}return new Float32Array(V)}const byteSizeMap$1={5126:4,5123:2,5121:1};let UID$3=0;const map$2={Float32Array,Uint32Array,Int32Array,Uint8Array,Uint16Array};class Geometry{constructor(E=[],I={}){this.buffers=E,this.indexBuffer=null,this.attributes=I,this.glVertexArrayObjects={},this.id=UID$3++,this.instanced=!1,this.instanceCount=1,this.disposeRunner=new Runner("disposeGeometry"),this.refCount=0}addAttribute(E,I,B=0,U=!1,V,X,Y,K=!1){if(!I)throw new Error("You must pass a buffer when creating an attribute");I instanceof Buffer||(I instanceof Array&&(I=new Float32Array(I)),I=new Buffer(I));const J=E.split("|");if(J.length>1){for(let Z=0;Z<J.length;Z++)this.addAttribute(J[Z],I,B,U,V);return this}let xe=this.buffers.indexOf(I);return xe===-1&&(this.buffers.push(I),xe=this.buffers.length-1),this.attributes[E]=new Attribute(xe,B,U,V,X,Y,K),this.instanced=this.instanced||K,this}getAttribute(E){return this.attributes[E]}getBuffer(E){return this.buffers[this.getAttribute(E).buffer]}addIndex(E){return E instanceof Buffer||(E instanceof Array&&(E=new Uint16Array(E)),E=new Buffer(E)),E.type=BUFFER_TYPE.ELEMENT_ARRAY_BUFFER,this.indexBuffer=E,this.buffers.includes(E)||this.buffers.push(E),this}getIndex(){return this.indexBuffer}interleave(){if(this.buffers.length===1||this.buffers.length===2&&this.indexBuffer)return this;const E=[],I=[],B=new Buffer;let U;for(U in this.attributes){const V=this.attributes[U],X=this.buffers[V.buffer];E.push(X.data),I.push(V.size*byteSizeMap$1[V.type]/4),V.buffer=0}for(B.data=interleaveTypedArrays(E,I),U=0;U<this.buffers.length;U++)this.buffers[U]!==this.indexBuffer&&this.buffers[U].destroy();return this.buffers=[B],this.indexBuffer&&this.buffers.push(this.indexBuffer),this}getSize(){for(const E in this.attributes){const I=this.attributes[E];return this.buffers[I.buffer].data.length/(I.stride/4||I.size)}return 0}dispose(){this.disposeRunner.emit(this,!1)}destroy(){this.dispose(),this.buffers=null,this.indexBuffer=null,this.attributes=null}clone(){const E=new Geometry;for(let I=0;I<this.buffers.length;I++)E.buffers[I]=new Buffer(this.buffers[I].data.slice(0));for(const I in this.attributes){const B=this.attributes[I];E.attributes[I]=new Attribute(B.buffer,B.size,B.normalized,B.type,B.stride,B.start,B.instance)}return this.indexBuffer&&(E.indexBuffer=E.buffers[this.buffers.indexOf(this.indexBuffer)],E.indexBuffer.type=BUFFER_TYPE.ELEMENT_ARRAY_BUFFER),E}static merge(E){const I=new Geometry,B=[],U=[],V=[];let X;for(let Y=0;Y<E.length;Y++){X=E[Y];for(let K=0;K<X.buffers.length;K++)U[K]=U[K]||0,U[K]+=X.buffers[K].data.length,V[K]=0}for(let Y=0;Y<X.buffers.length;Y++)B[Y]=new map$2[getBufferType(X.buffers[Y].data)](U[Y]),I.buffers[Y]=new Buffer(B[Y]);for(let Y=0;Y<E.length;Y++){X=E[Y];for(let K=0;K<X.buffers.length;K++)B[K].set(X.buffers[K].data,V[K]),V[K]+=X.buffers[K].data.length}if(I.attributes=X.attributes,X.indexBuffer){I.indexBuffer=I.buffers[X.buffers.indexOf(X.indexBuffer)],I.indexBuffer.type=BUFFER_TYPE.ELEMENT_ARRAY_BUFFER;let Y=0,K=0,J=0,xe=0;for(let Z=0;Z<X.buffers.length;Z++)if(X.buffers[Z]!==X.indexBuffer){xe=Z;break}for(const Z in X.attributes){const _e=X.attributes[Z];(_e.buffer|0)===xe&&(K+=_e.size*byteSizeMap$1[_e.type]/4)}for(let Z=0;Z<E.length;Z++){const _e=E[Z].indexBuffer.data;for(let Se=0;Se<_e.length;Se++)I.indexBuffer.data[Se+J]+=Y;Y+=E[Z].buffers[xe].data.length/K,J+=_e.length}}return I}}class BatchGeometry extends Geometry{constructor(E=!1){super(),this._buffer=new Buffer(null,E,!1),this._indexBuffer=new Buffer(null,E,!0),this.addAttribute("aVertexPosition",this._buffer,2,!1,TYPES.FLOAT).addAttribute("aTextureCoord",this._buffer,2,!1,TYPES.FLOAT).addAttribute("aColor",this._buffer,4,!0,TYPES.UNSIGNED_BYTE).addAttribute("aTextureId",this._buffer,1,!0,TYPES.FLOAT).addIndex(this._indexBuffer)}}const PI_2=Math.PI*2,RAD_TO_DEG=180/Math.PI,DEG_TO_RAD=Math.PI/180;var SHAPES=(C=>(C[C.POLY=0]="POLY",C[C.RECT=1]="RECT",C[C.CIRC=2]="CIRC",C[C.ELIP=3]="ELIP",C[C.RREC=4]="RREC",C))(SHAPES||{});class Point{constructor(E=0,I=0){this.x=0,this.y=0,this.x=E,this.y=I}clone(){return new Point(this.x,this.y)}copyFrom(E){return this.set(E.x,E.y),this}copyTo(E){return E.set(this.x,this.y),E}equals(E){return E.x===this.x&&E.y===this.y}set(E=0,I=E){return this.x=E,this.y=I,this}toString(){return`[@pixi/math:Point x=${this.x} y=${this.y}]`}}const tempPoints$1=[new Point,new Point,new Point,new Point];class Rectangle{constructor(E=0,I=0,B=0,U=0){this.x=Number(E),this.y=Number(I),this.width=Number(B),this.height=Number(U),this.type=SHAPES.RECT}get left(){return this.x}get right(){return this.x+this.width}get top(){return this.y}get bottom(){return this.y+this.height}static get EMPTY(){return new Rectangle(0,0,0,0)}clone(){return new Rectangle(this.x,this.y,this.width,this.height)}copyFrom(E){return this.x=E.x,this.y=E.y,this.width=E.width,this.height=E.height,this}copyTo(E){return E.x=this.x,E.y=this.y,E.width=this.width,E.height=this.height,E}contains(E,I){return this.width<=0||this.height<=0?!1:E>=this.x&&E<this.x+this.width&&I>=this.y&&I<this.y+this.height}intersects(E,I){if(!I){const De=this.x<E.x?E.x:this.x;if((this.right>E.right?E.right:this.right)<=De)return!1;const Xe=this.y<E.y?E.y:this.y;return(this.bottom>E.bottom?E.bottom:this.bottom)>Xe}const B=this.left,U=this.right,V=this.top,X=this.bottom;if(U<=B||X<=V)return!1;const Y=tempPoints$1[0].set(E.left,E.top),K=tempPoints$1[1].set(E.left,E.bottom),J=tempPoints$1[2].set(E.right,E.top),xe=tempPoints$1[3].set(E.right,E.bottom);if(J.x<=Y.x||K.y<=Y.y)return!1;const Z=Math.sign(I.a*I.d-I.b*I.c);if(Z===0||(I.apply(Y,Y),I.apply(K,K),I.apply(J,J),I.apply(xe,xe),Math.max(Y.x,K.x,J.x,xe.x)<=B||Math.min(Y.x,K.x,J.x,xe.x)>=U||Math.max(Y.y,K.y,J.y,xe.y)<=V||Math.min(Y.y,K.y,J.y,xe.y)>=X))return!1;const _e=Z*(K.y-Y.y),Se=Z*(Y.x-K.x),Ee=_e*B+Se*V,Ae=_e*U+Se*V,Re=_e*B+Se*X,Te=_e*U+Se*X;if(Math.max(Ee,Ae,Re,Te)<=_e*Y.x+Se*Y.y||Math.min(Ee,Ae,Re,Te)>=_e*xe.x+Se*xe.y)return!1;const we=Z*(Y.y-J.y),Pe=Z*(J.x-Y.x),Ie=we*B+Pe*V,Fe=we*U+Pe*V,Oe=we*B+Pe*X,Le=we*U+Pe*X;return!(Math.max(Ie,Fe,Oe,Le)<=we*Y.x+Pe*Y.y||Math.min(Ie,Fe,Oe,Le)>=we*xe.x+Pe*xe.y)}pad(E=0,I=E){return this.x-=E,this.y-=I,this.width+=E*2,this.height+=I*2,this}fit(E){const I=Math.max(this.x,E.x),B=Math.min(this.x+this.width,E.x+E.width),U=Math.max(this.y,E.y),V=Math.min(this.y+this.height,E.y+E.height);return this.x=I,this.width=Math.max(B-I,0),this.y=U,this.height=Math.max(V-U,0),this}ceil(E=1,I=.001){const B=Math.ceil((this.x+this.width-I)*E)/E,U=Math.ceil((this.y+this.height-I)*E)/E;return this.x=Math.floor((this.x+I)*E)/E,this.y=Math.floor((this.y+I)*E)/E,this.width=B-this.x,this.height=U-this.y,this}enlarge(E){const I=Math.min(this.x,E.x),B=Math.max(this.x+this.width,E.x+E.width),U=Math.min(this.y,E.y),V=Math.max(this.y+this.height,E.y+E.height);return this.x=I,this.width=B-I,this.y=U,this.height=V-U,this}toString(){return`[@pixi/math:Rectangle x=${this.x} y=${this.y} width=${this.width} height=${this.height}]`}}class Circle{constructor(E=0,I=0,B=0){this.x=E,this.y=I,this.radius=B,this.type=SHAPES.CIRC}clone(){return new Circle(this.x,this.y,this.radius)}contains(E,I){if(this.radius<=0)return!1;const B=this.radius*this.radius;let U=this.x-E,V=this.y-I;return U*=U,V*=V,U+V<=B}getBounds(){return new Rectangle(this.x-this.radius,this.y-this.radius,this.radius*2,this.radius*2)}toString(){return`[@pixi/math:Circle x=${this.x} y=${this.y} radius=${this.radius}]`}}let Ellipse$1=class ur{constructor(E=0,I=0,B=0,U=0){this.x=E,this.y=I,this.width=B,this.height=U,this.type=SHAPES.ELIP}clone(){return new ur(this.x,this.y,this.width,this.height)}contains(E,I){if(this.width<=0||this.height<=0)return!1;let B=(E-this.x)/this.width,U=(I-this.y)/this.height;return B*=B,U*=U,B+U<=1}getBounds(){return new Rectangle(this.x-this.width,this.y-this.height,this.width,this.height)}toString(){return`[@pixi/math:Ellipse x=${this.x} y=${this.y} width=${this.width} height=${this.height}]`}};class Polygon{constructor(...E){let I=Array.isArray(E[0])?E[0]:E;if(typeof I[0]!="number"){const B=[];for(let U=0,V=I.length;U<V;U++)B.push(I[U].x,I[U].y);I=B}this.points=I,this.type=SHAPES.POLY,this.closeStroke=!0}clone(){const E=this.points.slice(),I=new Polygon(E);return I.closeStroke=this.closeStroke,I}contains(E,I){let B=!1;const U=this.points.length/2;for(let V=0,X=U-1;V<U;X=V++){const Y=this.points[V*2],K=this.points[V*2+1],J=this.points[X*2],xe=this.points[X*2+1];K>I!=xe>I&&E<(J-Y)*((I-K)/(xe-K))+Y&&(B=!B)}return B}toString(){return`[@pixi/math:PolygoncloseStroke=${this.closeStroke}points=${this.points.reduce((E,I)=>`${E}, ${I}`,"")}]`}}class RoundedRectangle{constructor(E=0,I=0,B=0,U=0,V=20){this.x=E,this.y=I,this.width=B,this.height=U,this.radius=V,this.type=SHAPES.RREC}clone(){return new RoundedRectangle(this.x,this.y,this.width,this.height,this.radius)}contains(E,I){if(this.width<=0||this.height<=0)return!1;if(E>=this.x&&E<=this.x+this.width&&I>=this.y&&I<=this.y+this.height){const B=Math.max(0,Math.min(this.radius,Math.min(this.width,this.height)/2));if(I>=this.y+B&&I<=this.y+this.height-B||E>=this.x+B&&E<=this.x+this.width-B)return!0;let U=E-(this.x+B),V=I-(this.y+B);const X=B*B;if(U*U+V*V<=X||(U=E-(this.x+this.width-B),U*U+V*V<=X)||(V=I-(this.y+this.height-B),U*U+V*V<=X)||(U=E-(this.x+B),U*U+V*V<=X))return!0}return!1}toString(){return`[@pixi/math:RoundedRectangle x=${this.x} y=${this.y}width=${this.width} height=${this.height} radius=${this.radius}]`}}let Matrix$2=class tr{constructor(E=1,I=0,B=0,U=1,V=0,X=0){this.array=null,this.a=E,this.b=I,this.c=B,this.d=U,this.tx=V,this.ty=X}fromArray(E){this.a=E[0],this.b=E[1],this.c=E[3],this.d=E[4],this.tx=E[2],this.ty=E[5]}set(E,I,B,U,V,X){return this.a=E,this.b=I,this.c=B,this.d=U,this.tx=V,this.ty=X,this}toArray(E,I){this.array||(this.array=new Float32Array(9));const B=I||this.array;return E?(B[0]=this.a,B[1]=this.b,B[2]=0,B[3]=this.c,B[4]=this.d,B[5]=0,B[6]=this.tx,B[7]=this.ty,B[8]=1):(B[0]=this.a,B[1]=this.c,B[2]=this.tx,B[3]=this.b,B[4]=this.d,B[5]=this.ty,B[6]=0,B[7]=0,B[8]=1),B}apply(E,I){I=I||new Point;const B=E.x,U=E.y;return I.x=this.a*B+this.c*U+this.tx,I.y=this.b*B+this.d*U+this.ty,I}applyInverse(E,I){I=I||new Point;const B=1/(this.a*this.d+this.c*-this.b),U=E.x,V=E.y;return I.x=this.d*B*U+-this.c*B*V+(this.ty*this.c-this.tx*this.d)*B,I.y=this.a*B*V+-this.b*B*U+(-this.ty*this.a+this.tx*this.b)*B,I}translate(E,I){return this.tx+=E,this.ty+=I,this}scale(E,I){return this.a*=E,this.d*=I,this.c*=E,this.b*=I,this.tx*=E,this.ty*=I,this}rotate(E){const I=Math.cos(E),B=Math.sin(E),U=this.a,V=this.c,X=this.tx;return this.a=U*I-this.b*B,this.b=U*B+this.b*I,this.c=V*I-this.d*B,this.d=V*B+this.d*I,this.tx=X*I-this.ty*B,this.ty=X*B+this.ty*I,this}append(E){const I=this.a,B=this.b,U=this.c,V=this.d;return this.a=E.a*I+E.b*U,this.b=E.a*B+E.b*V,this.c=E.c*I+E.d*U,this.d=E.c*B+E.d*V,this.tx=E.tx*I+E.ty*U+this.tx,this.ty=E.tx*B+E.ty*V+this.ty,this}setTransform(E,I,B,U,V,X,Y,K,J){return this.a=Math.cos(Y+J)*V,this.b=Math.sin(Y+J)*V,this.c=-Math.sin(Y-K)*X,this.d=Math.cos(Y-K)*X,this.tx=E-(B*this.a+U*this.c),this.ty=I-(B*this.b+U*this.d),this}prepend(E){const I=this.tx;if(E.a!==1||E.b!==0||E.c!==0||E.d!==1){const B=this.a,U=this.c;this.a=B*E.a+this.b*E.c,this.b=B*E.b+this.b*E.d,this.c=U*E.a+this.d*E.c,this.d=U*E.b+this.d*E.d}return this.tx=I*E.a+this.ty*E.c+E.tx,this.ty=I*E.b+this.ty*E.d+E.ty,this}decompose(E){const I=this.a,B=this.b,U=this.c,V=this.d,X=E.pivot,Y=-Math.atan2(-U,V),K=Math.atan2(B,I),J=Math.abs(Y+K);return J<1e-5||Math.abs(PI_2-J)<1e-5?(E.rotation=K,E.skew.x=E.skew.y=0):(E.rotation=0,E.skew.x=Y,E.skew.y=K),E.scale.x=Math.sqrt(I*I+B*B),E.scale.y=Math.sqrt(U*U+V*V),E.position.x=this.tx+(X.x*I+X.y*U),E.position.y=this.ty+(X.x*B+X.y*V),E}invert(){const E=this.a,I=this.b,B=this.c,U=this.d,V=this.tx,X=E*U-I*B;return this.a=U/X,this.b=-I/X,this.c=-B/X,this.d=E/X,this.tx=(B*this.ty-U*V)/X,this.ty=-(E*this.ty-I*V)/X,this}identity(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this}clone(){const E=new tr;return E.a=this.a,E.b=this.b,E.c=this.c,E.d=this.d,E.tx=this.tx,E.ty=this.ty,E}copyTo(E){return E.a=this.a,E.b=this.b,E.c=this.c,E.d=this.d,E.tx=this.tx,E.ty=this.ty,E}copyFrom(E){return this.a=E.a,this.b=E.b,this.c=E.c,this.d=E.d,this.tx=E.tx,this.ty=E.ty,this}toString(){return`[@pixi/math:Matrix a=${this.a} b=${this.b} c=${this.c} d=${this.d} tx=${this.tx} ty=${this.ty}]`}static get IDENTITY(){return new tr}static get TEMP_MATRIX(){return new tr}};const ux=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],uy=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],vx=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],vy=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],rotationCayley=[],rotationMatrices=[],signum=Math.sign;function init(){for(let C=0;C<16;C++){const E=[];rotationCayley.push(E);for(let I=0;I<16;I++){const B=signum(ux[C]*ux[I]+vx[C]*uy[I]),U=signum(uy[C]*ux[I]+vy[C]*uy[I]),V=signum(ux[C]*vx[I]+vx[C]*vy[I]),X=signum(uy[C]*vx[I]+vy[C]*vy[I]);for(let Y=0;Y<16;Y++)if(ux[Y]===B&&uy[Y]===U&&vx[Y]===V&&vy[Y]===X){E.push(Y);break}}}for(let C=0;C<16;C++){const E=new Matrix$2;E.set(ux[C],uy[C],vx[C],vy[C],0,0),rotationMatrices.push(E)}}init();const groupD8={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MAIN_DIAGONAL:10,MIRROR_HORIZONTAL:12,REVERSE_DIAGONAL:14,uX:C=>ux[C],uY:C=>uy[C],vX:C=>vx[C],vY:C=>vy[C],inv:C=>C&8?C&15:-C&7,add:(C,E)=>rotationCayley[C][E],sub:(C,E)=>rotationCayley[C][groupD8.inv(E)],rotate180:C=>C^4,isVertical:C=>(C&3)===2,byDirection:(C,E)=>Math.abs(C)*2<=Math.abs(E)?E>=0?groupD8.S:groupD8.N:Math.abs(E)*2<=Math.abs(C)?C>0?groupD8.E:groupD8.W:E>0?C>0?groupD8.SE:groupD8.SW:C>0?groupD8.NE:groupD8.NW,matrixAppendRotationInv:(C,E,I=0,B=0)=>{const U=rotationMatrices[groupD8.inv(E)];U.tx=I,U.ty=B,C.append(U)}};class ObservablePoint{constructor(E,I,B=0,U=0){this._x=B,this._y=U,this.cb=E,this.scope=I}clone(E=this.cb,I=this.scope){return new ObservablePoint(E,I,this._x,this._y)}set(E=0,I=E){return(this._x!==E||this._y!==I)&&(this._x=E,this._y=I,this.cb.call(this.scope)),this}copyFrom(E){return(this._x!==E.x||this._y!==E.y)&&(this._x=E.x,this._y=E.y,this.cb.call(this.scope)),this}copyTo(E){return E.set(this._x,this._y),E}equals(E){return E.x===this._x&&E.y===this._y}toString(){return`[@pixi/math:ObservablePoint x=0 y=0 scope=${this.scope}]`}get x(){return this._x}set x(E){this._x!==E&&(this._x=E,this.cb.call(this.scope))}get y(){return this._y}set y(E){this._y!==E&&(this._y=E,this.cb.call(this.scope))}}const _Transform=class{constructor(){this.worldTransform=new Matrix$2,this.localTransform=new Matrix$2,this.position=new ObservablePoint(this.onChange,this,0,0),this.scale=new ObservablePoint(this.onChange,this,1,1),this.pivot=new ObservablePoint(this.onChange,this,0,0),this.skew=new ObservablePoint(this.updateSkew,this,0,0),this._rotation=0,this._cx=1,this._sx=0,this._cy=0,this._sy=1,this._localID=0,this._currentLocalID=0,this._worldID=0,this._parentID=0}onChange(){this._localID++}updateSkew(){this._cx=Math.cos(this._rotation+this.skew.y),this._sx=Math.sin(this._rotation+this.skew.y),this._cy=-Math.sin(this._rotation-this.skew.x),this._sy=Math.cos(this._rotation-this.skew.x),this._localID++}toString(){return`[@pixi/math:Transform position=(${this.position.x}, ${this.position.y}) rotation=${this.rotation} scale=(${this.scale.x}, ${this.scale.y}) skew=(${this.skew.x}, ${this.skew.y}) ]`}updateLocalTransform(){const C=this.localTransform;this._localID!==this._currentLocalID&&(C.a=this._cx*this.scale.x,C.b=this._sx*this.scale.x,C.c=this._cy*this.scale.y,C.d=this._sy*this.scale.y,C.tx=this.position.x-(this.pivot.x*C.a+this.pivot.y*C.c),C.ty=this.position.y-(this.pivot.x*C.b+this.pivot.y*C.d),this._currentLocalID=this._localID,this._parentID=-1)}updateTransform(C){const E=this.localTransform;if(this._localID!==this._currentLocalID&&(E.a=this._cx*this.scale.x,E.b=this._sx*this.scale.x,E.c=this._cy*this.scale.y,E.d=this._sy*this.scale.y,E.tx=this.position.x-(this.pivot.x*E.a+this.pivot.y*E.c),E.ty=this.position.y-(this.pivot.x*E.b+this.pivot.y*E.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==C._worldID){const I=C.worldTransform,B=this.worldTransform;B.a=E.a*I.a+E.b*I.c,B.b=E.a*I.b+E.b*I.d,B.c=E.c*I.a+E.d*I.c,B.d=E.c*I.b+E.d*I.d,B.tx=E.tx*I.a+E.ty*I.c+I.tx,B.ty=E.tx*I.b+E.ty*I.d+I.ty,this._parentID=C._worldID,this._worldID++}}setFromMatrix(C){C.decompose(this),this._localID++}get rotation(){return this._rotation}set rotation(C){this._rotation!==C&&(this._rotation=C,this.updateSkew())}};let Transform=_Transform;Transform.IDENTITY=new _Transform;var defaultFragment$2=`varying vec2 vTextureCoord;
44
+ else `),I<C-1&&(E+=`if(test == ${I}.0){}`);return E}function checkMaxIfStatementsInShader(C,E){if(C===0)throw new Error("Invalid value of `0` passed to `checkMaxIfStatementsInShader`");const I=E.createShader(E.FRAGMENT_SHADER);for(;;){const B=fragTemplate.replace(/%forloop%/gi,generateIfTestSrc(C));if(E.shaderSource(I,B),E.compileShader(I),!E.getShaderParameter(I,E.COMPILE_STATUS))C=C/2|0;else break}return C}const BLEND$1=0,OFFSET$1=1,CULLING$1=2,DEPTH_TEST$1=3,WINDING$1=4,DEPTH_MASK$1=5;let State$1=class hr{constructor(){this.data=0,this.blendMode=BLEND_MODES.NORMAL,this.polygonOffset=0,this.blend=!0,this.depthMask=!0}get blend(){return!!(this.data&1<<BLEND$1)}set blend(E){!!(this.data&1<<BLEND$1)!==E&&(this.data^=1<<BLEND$1)}get offsets(){return!!(this.data&1<<OFFSET$1)}set offsets(E){!!(this.data&1<<OFFSET$1)!==E&&(this.data^=1<<OFFSET$1)}get culling(){return!!(this.data&1<<CULLING$1)}set culling(E){!!(this.data&1<<CULLING$1)!==E&&(this.data^=1<<CULLING$1)}get depthTest(){return!!(this.data&1<<DEPTH_TEST$1)}set depthTest(E){!!(this.data&1<<DEPTH_TEST$1)!==E&&(this.data^=1<<DEPTH_TEST$1)}get depthMask(){return!!(this.data&1<<DEPTH_MASK$1)}set depthMask(E){!!(this.data&1<<DEPTH_MASK$1)!==E&&(this.data^=1<<DEPTH_MASK$1)}get clockwiseFrontFace(){return!!(this.data&1<<WINDING$1)}set clockwiseFrontFace(E){!!(this.data&1<<WINDING$1)!==E&&(this.data^=1<<WINDING$1)}get blendMode(){return this._blendMode}set blendMode(E){this.blend=E!==BLEND_MODES.NONE,this._blendMode=E}get polygonOffset(){return this._polygonOffset}set polygonOffset(E){this.offsets=!!E,this._polygonOffset=E}toString(){return`[@pixi/core:State blendMode=${this.blendMode} clockwiseFrontFace=${this.clockwiseFrontFace} culling=${this.culling} depthMask=${this.depthMask} polygonOffset=${this.polygonOffset}]`}static for2d(){const E=new hr;return E.depthTest=!1,E.blend=!0,E}};const INSTALLED=[];function autoDetectResource(C,E){if(!C)return null;let I="";if(typeof C=="string"){const B=/\.(\w{3,4})(?:$|\?|#)/i.exec(C);B&&(I=B[1].toLowerCase())}for(let B=INSTALLED.length-1;B>=0;--B){const U=INSTALLED[B];if(U.test&&U.test(C,I))return new U(C,E)}throw new Error("Unrecognized source type to auto-detect Resource")}class Runner{constructor(E){this.items=[],this._name=E,this._aliasCount=0}emit(E,I,B,U,V,X,Y,K){if(arguments.length>8)throw new Error("max arguments reached");const{name:J,items:xe}=this;this._aliasCount++;for(let Z=0,_e=xe.length;Z<_e;Z++)xe[Z][J](E,I,B,U,V,X,Y,K);return xe===this.items&&this._aliasCount--,this}ensureNonAliasedItems(){this._aliasCount>0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))}add(E){return E[this._name]&&(this.ensureNonAliasedItems(),this.remove(E),this.items.push(E)),this}remove(E){const I=this.items.indexOf(E);return I!==-1&&(this.ensureNonAliasedItems(),this.items.splice(I,1)),this}contains(E){return this.items.includes(E)}removeAll(){return this.ensureNonAliasedItems(),this.items.length=0,this}destroy(){this.removeAll(),this.items=null,this._name=null}get empty(){return this.items.length===0}get name(){return this._name}}Object.defineProperties(Runner.prototype,{dispatch:{value:Runner.prototype.emit},run:{value:Runner.prototype.emit}});class Resource{constructor(E=0,I=0){this._width=E,this._height=I,this.destroyed=!1,this.internal=!1,this.onResize=new Runner("setRealSize"),this.onUpdate=new Runner("update"),this.onError=new Runner("onError")}bind(E){this.onResize.add(E),this.onUpdate.add(E),this.onError.add(E),(this._width||this._height)&&this.onResize.emit(this._width,this._height)}unbind(E){this.onResize.remove(E),this.onUpdate.remove(E),this.onError.remove(E)}resize(E,I){(E!==this._width||I!==this._height)&&(this._width=E,this._height=I,this.onResize.emit(E,I))}get valid(){return!!this._width&&!!this._height}update(){this.destroyed||this.onUpdate.emit()}load(){return Promise.resolve(this)}get width(){return this._width}get height(){return this._height}style(E,I,B){return!1}dispose(){}destroy(){this.destroyed||(this.destroyed=!0,this.dispose(),this.onError.removeAll(),this.onError=null,this.onResize.removeAll(),this.onResize=null,this.onUpdate.removeAll(),this.onUpdate=null)}static test(E,I){return!1}}class BufferResource extends Resource{constructor(E,I){const{width:B,height:U}=I||{};if(!B||!U)throw new Error("BufferResource width or height invalid");super(B,U),this.data=E}upload(E,I,B){const U=E.gl;U.pixelStorei(U.UNPACK_PREMULTIPLY_ALPHA_WEBGL,I.alphaMode===ALPHA_MODES.UNPACK);const V=I.realWidth,X=I.realHeight;return B.width===V&&B.height===X?U.texSubImage2D(I.target,0,0,0,V,X,I.format,B.type,this.data):(B.width=V,B.height=X,U.texImage2D(I.target,0,B.internalFormat,V,X,0,I.format,B.type,this.data)),!0}dispose(){this.data=null}static test(E){return E instanceof Float32Array||E instanceof Uint8Array||E instanceof Uint32Array}}const defaultBufferOptions={scaleMode:SCALE_MODES.NEAREST,format:FORMATS.RGBA,alphaMode:ALPHA_MODES.NPM},_BaseTexture=class extends EventEmitter{constructor(C=null,E=null){super(),E=Object.assign({},_BaseTexture.defaultOptions,E);const{alphaMode:I,mipmap:B,anisotropicLevel:U,scaleMode:V,width:X,height:Y,wrapMode:K,format:J,type:xe,target:Z,resolution:_e,resourceOptions:Se}=E;C&&!(C instanceof Resource)&&(C=autoDetectResource(C,Se),C.internal=!0),this.resolution=_e||settings.RESOLUTION,this.width=Math.round((X||0)*this.resolution)/this.resolution,this.height=Math.round((Y||0)*this.resolution)/this.resolution,this._mipmap=B,this.anisotropicLevel=U,this._wrapMode=K,this._scaleMode=V,this.format=J,this.type=xe,this.target=Z,this.alphaMode=I,this.uid=uid(),this.touched=0,this.isPowerOfTwo=!1,this._refreshPOT(),this._glTextures={},this.dirtyId=0,this.dirtyStyleId=0,this.cacheId=null,this.valid=X>0&&Y>0,this.textureCacheIds=[],this.destroyed=!1,this.resource=null,this._batchEnabled=0,this._batchLocation=0,this.parentTextureArray=null,this.setResource(C)}get realWidth(){return Math.round(this.width*this.resolution)}get realHeight(){return Math.round(this.height*this.resolution)}get mipmap(){return this._mipmap}set mipmap(C){this._mipmap!==C&&(this._mipmap=C,this.dirtyStyleId++)}get scaleMode(){return this._scaleMode}set scaleMode(C){this._scaleMode!==C&&(this._scaleMode=C,this.dirtyStyleId++)}get wrapMode(){return this._wrapMode}set wrapMode(C){this._wrapMode!==C&&(this._wrapMode=C,this.dirtyStyleId++)}setStyle(C,E){let I;return C!==void 0&&C!==this.scaleMode&&(this.scaleMode=C,I=!0),E!==void 0&&E!==this.mipmap&&(this.mipmap=E,I=!0),I&&this.dirtyStyleId++,this}setSize(C,E,I){return I=I||this.resolution,this.setRealSize(C*I,E*I,I)}setRealSize(C,E,I){return this.resolution=I||this.resolution,this.width=Math.round(C)/this.resolution,this.height=Math.round(E)/this.resolution,this._refreshPOT(),this.update(),this}_refreshPOT(){this.isPowerOfTwo=isPow2(this.realWidth)&&isPow2(this.realHeight)}setResolution(C){const E=this.resolution;return E===C?this:(this.resolution=C,this.valid&&(this.width=Math.round(this.width*E)/C,this.height=Math.round(this.height*E)/C,this.emit("update",this)),this._refreshPOT(),this)}setResource(C){if(this.resource===C)return this;if(this.resource)throw new Error("Resource can be set only once");return C.bind(this),this.resource=C,this}update(){this.valid?(this.dirtyId++,this.dirtyStyleId++,this.emit("update",this)):this.width>0&&this.height>0&&(this.valid=!0,this.emit("loaded",this),this.emit("update",this))}onError(C){this.emit("error",this,C)}destroy(){this.resource&&(this.resource.unbind(this),this.resource.internal&&this.resource.destroy(),this.resource=null),this.cacheId&&(delete BaseTextureCache[this.cacheId],delete TextureCache[this.cacheId],this.cacheId=null),this.dispose(),_BaseTexture.removeFromCache(this),this.textureCacheIds=null,this.destroyed=!0}dispose(){this.emit("dispose",this)}castToBaseTexture(){return this}static from(C,E,I=settings.STRICT_TEXTURE_CACHE){const B=typeof C=="string";let U=null;if(B)U=C;else{if(!C._pixiId){const X=(E==null?void 0:E.pixiIdPrefix)||"pixiid";C._pixiId=`${X}_${uid()}`}U=C._pixiId}let V=BaseTextureCache[U];if(B&&I&&!V)throw new Error(`The cacheId "${U}" does not exist in BaseTextureCache.`);return V||(V=new _BaseTexture(C,E),V.cacheId=U,_BaseTexture.addToCache(V,U)),V}static fromBuffer(C,E,I,B){C=C||new Float32Array(E*I*4);const U=new BufferResource(C,{width:E,height:I}),V=C instanceof Float32Array?TYPES.FLOAT:TYPES.UNSIGNED_BYTE;return new _BaseTexture(U,Object.assign({},defaultBufferOptions,B||{width:E,height:I,type:V}))}static addToCache(C,E){E&&(C.textureCacheIds.includes(E)||C.textureCacheIds.push(E),BaseTextureCache[E]&&BaseTextureCache[E]!==C&&console.warn(`BaseTexture added to the cache with an id [${E}] that already had an entry`),BaseTextureCache[E]=C)}static removeFromCache(C){if(typeof C=="string"){const E=BaseTextureCache[C];if(E){const I=E.textureCacheIds.indexOf(C);return I>-1&&E.textureCacheIds.splice(I,1),delete BaseTextureCache[C],E}}else if(C!=null&&C.textureCacheIds){for(let E=0;E<C.textureCacheIds.length;++E)delete BaseTextureCache[C.textureCacheIds[E]];return C.textureCacheIds.length=0,C}return null}};let BaseTexture=_BaseTexture;BaseTexture.defaultOptions={mipmap:MIPMAP_MODES.POW2,anisotropicLevel:0,scaleMode:SCALE_MODES.LINEAR,wrapMode:WRAP_MODES.CLAMP,alphaMode:ALPHA_MODES.UNPACK,target:TARGETS.TEXTURE_2D,format:FORMATS.RGBA,type:TYPES.UNSIGNED_BYTE},BaseTexture._globalBatch=0;class BatchDrawCall{constructor(){this.texArray=null,this.blend=0,this.type=DRAW_MODES.TRIANGLES,this.start=0,this.size=0,this.data=null}}let UID$4=0;class Buffer{constructor(E,I=!0,B=!1){this.data=E||new Float32Array(1),this._glBuffers={},this._updateID=0,this.index=B,this.static=I,this.id=UID$4++,this.disposeRunner=new Runner("disposeBuffer")}update(E){E instanceof Array&&(E=new Float32Array(E)),this.data=E||this.data,this._updateID++}dispose(){this.disposeRunner.emit(this,!1)}destroy(){this.dispose(),this.data=null}set index(E){this.type=E?BUFFER_TYPE.ELEMENT_ARRAY_BUFFER:BUFFER_TYPE.ARRAY_BUFFER}get index(){return this.type===BUFFER_TYPE.ELEMENT_ARRAY_BUFFER}static from(E){return E instanceof Array&&(E=new Float32Array(E)),new Buffer(E)}}class Attribute{constructor(E,I=0,B=!1,U=TYPES.FLOAT,V,X,Y,K=1){this.buffer=E,this.size=I,this.normalized=B,this.type=U,this.stride=V,this.start=X,this.instance=Y,this.divisor=K}destroy(){this.buffer=null}static from(E,I,B,U,V){return new Attribute(E,I,B,U,V)}}const map$3={Float32Array,Uint32Array,Int32Array,Uint8Array};function interleaveTypedArrays(C,E){let I=0,B=0;const U={};for(let K=0;K<C.length;K++)B+=E[K],I+=C[K].length;const V=new ArrayBuffer(I*4);let X=null,Y=0;for(let K=0;K<C.length;K++){const J=E[K],xe=C[K],Z=getBufferType(xe);U[Z]||(U[Z]=new map$3[Z](V)),X=U[Z];for(let _e=0;_e<xe.length;_e++){const Se=(_e/J|0)*B+Y,Ee=_e%J;X[Se+Ee]=xe[_e]}Y+=J}return new Float32Array(V)}const byteSizeMap$1={5126:4,5123:2,5121:1};let UID$3=0;const map$2={Float32Array,Uint32Array,Int32Array,Uint8Array,Uint16Array};class Geometry{constructor(E=[],I={}){this.buffers=E,this.indexBuffer=null,this.attributes=I,this.glVertexArrayObjects={},this.id=UID$3++,this.instanced=!1,this.instanceCount=1,this.disposeRunner=new Runner("disposeGeometry"),this.refCount=0}addAttribute(E,I,B=0,U=!1,V,X,Y,K=!1){if(!I)throw new Error("You must pass a buffer when creating an attribute");I instanceof Buffer||(I instanceof Array&&(I=new Float32Array(I)),I=new Buffer(I));const J=E.split("|");if(J.length>1){for(let Z=0;Z<J.length;Z++)this.addAttribute(J[Z],I,B,U,V);return this}let xe=this.buffers.indexOf(I);return xe===-1&&(this.buffers.push(I),xe=this.buffers.length-1),this.attributes[E]=new Attribute(xe,B,U,V,X,Y,K),this.instanced=this.instanced||K,this}getAttribute(E){return this.attributes[E]}getBuffer(E){return this.buffers[this.getAttribute(E).buffer]}addIndex(E){return E instanceof Buffer||(E instanceof Array&&(E=new Uint16Array(E)),E=new Buffer(E)),E.type=BUFFER_TYPE.ELEMENT_ARRAY_BUFFER,this.indexBuffer=E,this.buffers.includes(E)||this.buffers.push(E),this}getIndex(){return this.indexBuffer}interleave(){if(this.buffers.length===1||this.buffers.length===2&&this.indexBuffer)return this;const E=[],I=[],B=new Buffer;let U;for(U in this.attributes){const V=this.attributes[U],X=this.buffers[V.buffer];E.push(X.data),I.push(V.size*byteSizeMap$1[V.type]/4),V.buffer=0}for(B.data=interleaveTypedArrays(E,I),U=0;U<this.buffers.length;U++)this.buffers[U]!==this.indexBuffer&&this.buffers[U].destroy();return this.buffers=[B],this.indexBuffer&&this.buffers.push(this.indexBuffer),this}getSize(){for(const E in this.attributes){const I=this.attributes[E];return this.buffers[I.buffer].data.length/(I.stride/4||I.size)}return 0}dispose(){this.disposeRunner.emit(this,!1)}destroy(){this.dispose(),this.buffers=null,this.indexBuffer=null,this.attributes=null}clone(){const E=new Geometry;for(let I=0;I<this.buffers.length;I++)E.buffers[I]=new Buffer(this.buffers[I].data.slice(0));for(const I in this.attributes){const B=this.attributes[I];E.attributes[I]=new Attribute(B.buffer,B.size,B.normalized,B.type,B.stride,B.start,B.instance)}return this.indexBuffer&&(E.indexBuffer=E.buffers[this.buffers.indexOf(this.indexBuffer)],E.indexBuffer.type=BUFFER_TYPE.ELEMENT_ARRAY_BUFFER),E}static merge(E){const I=new Geometry,B=[],U=[],V=[];let X;for(let Y=0;Y<E.length;Y++){X=E[Y];for(let K=0;K<X.buffers.length;K++)U[K]=U[K]||0,U[K]+=X.buffers[K].data.length,V[K]=0}for(let Y=0;Y<X.buffers.length;Y++)B[Y]=new map$2[getBufferType(X.buffers[Y].data)](U[Y]),I.buffers[Y]=new Buffer(B[Y]);for(let Y=0;Y<E.length;Y++){X=E[Y];for(let K=0;K<X.buffers.length;K++)B[K].set(X.buffers[K].data,V[K]),V[K]+=X.buffers[K].data.length}if(I.attributes=X.attributes,X.indexBuffer){I.indexBuffer=I.buffers[X.buffers.indexOf(X.indexBuffer)],I.indexBuffer.type=BUFFER_TYPE.ELEMENT_ARRAY_BUFFER;let Y=0,K=0,J=0,xe=0;for(let Z=0;Z<X.buffers.length;Z++)if(X.buffers[Z]!==X.indexBuffer){xe=Z;break}for(const Z in X.attributes){const _e=X.attributes[Z];(_e.buffer|0)===xe&&(K+=_e.size*byteSizeMap$1[_e.type]/4)}for(let Z=0;Z<E.length;Z++){const _e=E[Z].indexBuffer.data;for(let Se=0;Se<_e.length;Se++)I.indexBuffer.data[Se+J]+=Y;Y+=E[Z].buffers[xe].data.length/K,J+=_e.length}}return I}}class BatchGeometry extends Geometry{constructor(E=!1){super(),this._buffer=new Buffer(null,E,!1),this._indexBuffer=new Buffer(null,E,!0),this.addAttribute("aVertexPosition",this._buffer,2,!1,TYPES.FLOAT).addAttribute("aTextureCoord",this._buffer,2,!1,TYPES.FLOAT).addAttribute("aColor",this._buffer,4,!0,TYPES.UNSIGNED_BYTE).addAttribute("aTextureId",this._buffer,1,!0,TYPES.FLOAT).addIndex(this._indexBuffer)}}const PI_2=Math.PI*2,RAD_TO_DEG=180/Math.PI,DEG_TO_RAD=Math.PI/180;var SHAPES=(C=>(C[C.POLY=0]="POLY",C[C.RECT=1]="RECT",C[C.CIRC=2]="CIRC",C[C.ELIP=3]="ELIP",C[C.RREC=4]="RREC",C))(SHAPES||{});class Point{constructor(E=0,I=0){this.x=0,this.y=0,this.x=E,this.y=I}clone(){return new Point(this.x,this.y)}copyFrom(E){return this.set(E.x,E.y),this}copyTo(E){return E.set(this.x,this.y),E}equals(E){return E.x===this.x&&E.y===this.y}set(E=0,I=E){return this.x=E,this.y=I,this}toString(){return`[@pixi/math:Point x=${this.x} y=${this.y}]`}}const tempPoints$1=[new Point,new Point,new Point,new Point];class Rectangle{constructor(E=0,I=0,B=0,U=0){this.x=Number(E),this.y=Number(I),this.width=Number(B),this.height=Number(U),this.type=SHAPES.RECT}get left(){return this.x}get right(){return this.x+this.width}get top(){return this.y}get bottom(){return this.y+this.height}static get EMPTY(){return new Rectangle(0,0,0,0)}clone(){return new Rectangle(this.x,this.y,this.width,this.height)}copyFrom(E){return this.x=E.x,this.y=E.y,this.width=E.width,this.height=E.height,this}copyTo(E){return E.x=this.x,E.y=this.y,E.width=this.width,E.height=this.height,E}contains(E,I){return this.width<=0||this.height<=0?!1:E>=this.x&&E<this.x+this.width&&I>=this.y&&I<this.y+this.height}intersects(E,I){if(!I){const $e=this.x<E.x?E.x:this.x;if((this.right>E.right?E.right:this.right)<=$e)return!1;const Xe=this.y<E.y?E.y:this.y;return(this.bottom>E.bottom?E.bottom:this.bottom)>Xe}const B=this.left,U=this.right,V=this.top,X=this.bottom;if(U<=B||X<=V)return!1;const Y=tempPoints$1[0].set(E.left,E.top),K=tempPoints$1[1].set(E.left,E.bottom),J=tempPoints$1[2].set(E.right,E.top),xe=tempPoints$1[3].set(E.right,E.bottom);if(J.x<=Y.x||K.y<=Y.y)return!1;const Z=Math.sign(I.a*I.d-I.b*I.c);if(Z===0||(I.apply(Y,Y),I.apply(K,K),I.apply(J,J),I.apply(xe,xe),Math.max(Y.x,K.x,J.x,xe.x)<=B||Math.min(Y.x,K.x,J.x,xe.x)>=U||Math.max(Y.y,K.y,J.y,xe.y)<=V||Math.min(Y.y,K.y,J.y,xe.y)>=X))return!1;const _e=Z*(K.y-Y.y),Se=Z*(Y.x-K.x),Ee=_e*B+Se*V,Ae=_e*U+Se*V,Re=_e*B+Se*X,Te=_e*U+Se*X;if(Math.max(Ee,Ae,Re,Te)<=_e*Y.x+Se*Y.y||Math.min(Ee,Ae,Re,Te)>=_e*xe.x+Se*xe.y)return!1;const we=Z*(Y.y-J.y),Pe=Z*(J.x-Y.x),Ie=we*B+Pe*V,Me=we*U+Pe*V,Oe=we*B+Pe*X,Le=we*U+Pe*X;return!(Math.max(Ie,Me,Oe,Le)<=we*Y.x+Pe*Y.y||Math.min(Ie,Me,Oe,Le)>=we*xe.x+Pe*xe.y)}pad(E=0,I=E){return this.x-=E,this.y-=I,this.width+=E*2,this.height+=I*2,this}fit(E){const I=Math.max(this.x,E.x),B=Math.min(this.x+this.width,E.x+E.width),U=Math.max(this.y,E.y),V=Math.min(this.y+this.height,E.y+E.height);return this.x=I,this.width=Math.max(B-I,0),this.y=U,this.height=Math.max(V-U,0),this}ceil(E=1,I=.001){const B=Math.ceil((this.x+this.width-I)*E)/E,U=Math.ceil((this.y+this.height-I)*E)/E;return this.x=Math.floor((this.x+I)*E)/E,this.y=Math.floor((this.y+I)*E)/E,this.width=B-this.x,this.height=U-this.y,this}enlarge(E){const I=Math.min(this.x,E.x),B=Math.max(this.x+this.width,E.x+E.width),U=Math.min(this.y,E.y),V=Math.max(this.y+this.height,E.y+E.height);return this.x=I,this.width=B-I,this.y=U,this.height=V-U,this}toString(){return`[@pixi/math:Rectangle x=${this.x} y=${this.y} width=${this.width} height=${this.height}]`}}class Circle{constructor(E=0,I=0,B=0){this.x=E,this.y=I,this.radius=B,this.type=SHAPES.CIRC}clone(){return new Circle(this.x,this.y,this.radius)}contains(E,I){if(this.radius<=0)return!1;const B=this.radius*this.radius;let U=this.x-E,V=this.y-I;return U*=U,V*=V,U+V<=B}getBounds(){return new Rectangle(this.x-this.radius,this.y-this.radius,this.radius*2,this.radius*2)}toString(){return`[@pixi/math:Circle x=${this.x} y=${this.y} radius=${this.radius}]`}}let Ellipse$1=class cr{constructor(E=0,I=0,B=0,U=0){this.x=E,this.y=I,this.width=B,this.height=U,this.type=SHAPES.ELIP}clone(){return new cr(this.x,this.y,this.width,this.height)}contains(E,I){if(this.width<=0||this.height<=0)return!1;let B=(E-this.x)/this.width,U=(I-this.y)/this.height;return B*=B,U*=U,B+U<=1}getBounds(){return new Rectangle(this.x-this.width,this.y-this.height,this.width,this.height)}toString(){return`[@pixi/math:Ellipse x=${this.x} y=${this.y} width=${this.width} height=${this.height}]`}};class Polygon{constructor(...E){let I=Array.isArray(E[0])?E[0]:E;if(typeof I[0]!="number"){const B=[];for(let U=0,V=I.length;U<V;U++)B.push(I[U].x,I[U].y);I=B}this.points=I,this.type=SHAPES.POLY,this.closeStroke=!0}clone(){const E=this.points.slice(),I=new Polygon(E);return I.closeStroke=this.closeStroke,I}contains(E,I){let B=!1;const U=this.points.length/2;for(let V=0,X=U-1;V<U;X=V++){const Y=this.points[V*2],K=this.points[V*2+1],J=this.points[X*2],xe=this.points[X*2+1];K>I!=xe>I&&E<(J-Y)*((I-K)/(xe-K))+Y&&(B=!B)}return B}toString(){return`[@pixi/math:PolygoncloseStroke=${this.closeStroke}points=${this.points.reduce((E,I)=>`${E}, ${I}`,"")}]`}}class RoundedRectangle{constructor(E=0,I=0,B=0,U=0,V=20){this.x=E,this.y=I,this.width=B,this.height=U,this.radius=V,this.type=SHAPES.RREC}clone(){return new RoundedRectangle(this.x,this.y,this.width,this.height,this.radius)}contains(E,I){if(this.width<=0||this.height<=0)return!1;if(E>=this.x&&E<=this.x+this.width&&I>=this.y&&I<=this.y+this.height){const B=Math.max(0,Math.min(this.radius,Math.min(this.width,this.height)/2));if(I>=this.y+B&&I<=this.y+this.height-B||E>=this.x+B&&E<=this.x+this.width-B)return!0;let U=E-(this.x+B),V=I-(this.y+B);const X=B*B;if(U*U+V*V<=X||(U=E-(this.x+this.width-B),U*U+V*V<=X)||(V=I-(this.y+this.height-B),U*U+V*V<=X)||(U=E-(this.x+B),U*U+V*V<=X))return!0}return!1}toString(){return`[@pixi/math:RoundedRectangle x=${this.x} y=${this.y}width=${this.width} height=${this.height} radius=${this.radius}]`}}let Matrix$2=class tr{constructor(E=1,I=0,B=0,U=1,V=0,X=0){this.array=null,this.a=E,this.b=I,this.c=B,this.d=U,this.tx=V,this.ty=X}fromArray(E){this.a=E[0],this.b=E[1],this.c=E[3],this.d=E[4],this.tx=E[2],this.ty=E[5]}set(E,I,B,U,V,X){return this.a=E,this.b=I,this.c=B,this.d=U,this.tx=V,this.ty=X,this}toArray(E,I){this.array||(this.array=new Float32Array(9));const B=I||this.array;return E?(B[0]=this.a,B[1]=this.b,B[2]=0,B[3]=this.c,B[4]=this.d,B[5]=0,B[6]=this.tx,B[7]=this.ty,B[8]=1):(B[0]=this.a,B[1]=this.c,B[2]=this.tx,B[3]=this.b,B[4]=this.d,B[5]=this.ty,B[6]=0,B[7]=0,B[8]=1),B}apply(E,I){I=I||new Point;const B=E.x,U=E.y;return I.x=this.a*B+this.c*U+this.tx,I.y=this.b*B+this.d*U+this.ty,I}applyInverse(E,I){I=I||new Point;const B=1/(this.a*this.d+this.c*-this.b),U=E.x,V=E.y;return I.x=this.d*B*U+-this.c*B*V+(this.ty*this.c-this.tx*this.d)*B,I.y=this.a*B*V+-this.b*B*U+(-this.ty*this.a+this.tx*this.b)*B,I}translate(E,I){return this.tx+=E,this.ty+=I,this}scale(E,I){return this.a*=E,this.d*=I,this.c*=E,this.b*=I,this.tx*=E,this.ty*=I,this}rotate(E){const I=Math.cos(E),B=Math.sin(E),U=this.a,V=this.c,X=this.tx;return this.a=U*I-this.b*B,this.b=U*B+this.b*I,this.c=V*I-this.d*B,this.d=V*B+this.d*I,this.tx=X*I-this.ty*B,this.ty=X*B+this.ty*I,this}append(E){const I=this.a,B=this.b,U=this.c,V=this.d;return this.a=E.a*I+E.b*U,this.b=E.a*B+E.b*V,this.c=E.c*I+E.d*U,this.d=E.c*B+E.d*V,this.tx=E.tx*I+E.ty*U+this.tx,this.ty=E.tx*B+E.ty*V+this.ty,this}setTransform(E,I,B,U,V,X,Y,K,J){return this.a=Math.cos(Y+J)*V,this.b=Math.sin(Y+J)*V,this.c=-Math.sin(Y-K)*X,this.d=Math.cos(Y-K)*X,this.tx=E-(B*this.a+U*this.c),this.ty=I-(B*this.b+U*this.d),this}prepend(E){const I=this.tx;if(E.a!==1||E.b!==0||E.c!==0||E.d!==1){const B=this.a,U=this.c;this.a=B*E.a+this.b*E.c,this.b=B*E.b+this.b*E.d,this.c=U*E.a+this.d*E.c,this.d=U*E.b+this.d*E.d}return this.tx=I*E.a+this.ty*E.c+E.tx,this.ty=I*E.b+this.ty*E.d+E.ty,this}decompose(E){const I=this.a,B=this.b,U=this.c,V=this.d,X=E.pivot,Y=-Math.atan2(-U,V),K=Math.atan2(B,I),J=Math.abs(Y+K);return J<1e-5||Math.abs(PI_2-J)<1e-5?(E.rotation=K,E.skew.x=E.skew.y=0):(E.rotation=0,E.skew.x=Y,E.skew.y=K),E.scale.x=Math.sqrt(I*I+B*B),E.scale.y=Math.sqrt(U*U+V*V),E.position.x=this.tx+(X.x*I+X.y*U),E.position.y=this.ty+(X.x*B+X.y*V),E}invert(){const E=this.a,I=this.b,B=this.c,U=this.d,V=this.tx,X=E*U-I*B;return this.a=U/X,this.b=-I/X,this.c=-B/X,this.d=E/X,this.tx=(B*this.ty-U*V)/X,this.ty=-(E*this.ty-I*V)/X,this}identity(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this}clone(){const E=new tr;return E.a=this.a,E.b=this.b,E.c=this.c,E.d=this.d,E.tx=this.tx,E.ty=this.ty,E}copyTo(E){return E.a=this.a,E.b=this.b,E.c=this.c,E.d=this.d,E.tx=this.tx,E.ty=this.ty,E}copyFrom(E){return this.a=E.a,this.b=E.b,this.c=E.c,this.d=E.d,this.tx=E.tx,this.ty=E.ty,this}toString(){return`[@pixi/math:Matrix a=${this.a} b=${this.b} c=${this.c} d=${this.d} tx=${this.tx} ty=${this.ty}]`}static get IDENTITY(){return new tr}static get TEMP_MATRIX(){return new tr}};const ux=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],uy=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],vx=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],vy=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],rotationCayley=[],rotationMatrices=[],signum=Math.sign;function init(){for(let C=0;C<16;C++){const E=[];rotationCayley.push(E);for(let I=0;I<16;I++){const B=signum(ux[C]*ux[I]+vx[C]*uy[I]),U=signum(uy[C]*ux[I]+vy[C]*uy[I]),V=signum(ux[C]*vx[I]+vx[C]*vy[I]),X=signum(uy[C]*vx[I]+vy[C]*vy[I]);for(let Y=0;Y<16;Y++)if(ux[Y]===B&&uy[Y]===U&&vx[Y]===V&&vy[Y]===X){E.push(Y);break}}}for(let C=0;C<16;C++){const E=new Matrix$2;E.set(ux[C],uy[C],vx[C],vy[C],0,0),rotationMatrices.push(E)}}init();const groupD8={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MAIN_DIAGONAL:10,MIRROR_HORIZONTAL:12,REVERSE_DIAGONAL:14,uX:C=>ux[C],uY:C=>uy[C],vX:C=>vx[C],vY:C=>vy[C],inv:C=>C&8?C&15:-C&7,add:(C,E)=>rotationCayley[C][E],sub:(C,E)=>rotationCayley[C][groupD8.inv(E)],rotate180:C=>C^4,isVertical:C=>(C&3)===2,byDirection:(C,E)=>Math.abs(C)*2<=Math.abs(E)?E>=0?groupD8.S:groupD8.N:Math.abs(E)*2<=Math.abs(C)?C>0?groupD8.E:groupD8.W:E>0?C>0?groupD8.SE:groupD8.SW:C>0?groupD8.NE:groupD8.NW,matrixAppendRotationInv:(C,E,I=0,B=0)=>{const U=rotationMatrices[groupD8.inv(E)];U.tx=I,U.ty=B,C.append(U)}};class ObservablePoint{constructor(E,I,B=0,U=0){this._x=B,this._y=U,this.cb=E,this.scope=I}clone(E=this.cb,I=this.scope){return new ObservablePoint(E,I,this._x,this._y)}set(E=0,I=E){return(this._x!==E||this._y!==I)&&(this._x=E,this._y=I,this.cb.call(this.scope)),this}copyFrom(E){return(this._x!==E.x||this._y!==E.y)&&(this._x=E.x,this._y=E.y,this.cb.call(this.scope)),this}copyTo(E){return E.set(this._x,this._y),E}equals(E){return E.x===this._x&&E.y===this._y}toString(){return`[@pixi/math:ObservablePoint x=0 y=0 scope=${this.scope}]`}get x(){return this._x}set x(E){this._x!==E&&(this._x=E,this.cb.call(this.scope))}get y(){return this._y}set y(E){this._y!==E&&(this._y=E,this.cb.call(this.scope))}}const _Transform=class{constructor(){this.worldTransform=new Matrix$2,this.localTransform=new Matrix$2,this.position=new ObservablePoint(this.onChange,this,0,0),this.scale=new ObservablePoint(this.onChange,this,1,1),this.pivot=new ObservablePoint(this.onChange,this,0,0),this.skew=new ObservablePoint(this.updateSkew,this,0,0),this._rotation=0,this._cx=1,this._sx=0,this._cy=0,this._sy=1,this._localID=0,this._currentLocalID=0,this._worldID=0,this._parentID=0}onChange(){this._localID++}updateSkew(){this._cx=Math.cos(this._rotation+this.skew.y),this._sx=Math.sin(this._rotation+this.skew.y),this._cy=-Math.sin(this._rotation-this.skew.x),this._sy=Math.cos(this._rotation-this.skew.x),this._localID++}toString(){return`[@pixi/math:Transform position=(${this.position.x}, ${this.position.y}) rotation=${this.rotation} scale=(${this.scale.x}, ${this.scale.y}) skew=(${this.skew.x}, ${this.skew.y}) ]`}updateLocalTransform(){const C=this.localTransform;this._localID!==this._currentLocalID&&(C.a=this._cx*this.scale.x,C.b=this._sx*this.scale.x,C.c=this._cy*this.scale.y,C.d=this._sy*this.scale.y,C.tx=this.position.x-(this.pivot.x*C.a+this.pivot.y*C.c),C.ty=this.position.y-(this.pivot.x*C.b+this.pivot.y*C.d),this._currentLocalID=this._localID,this._parentID=-1)}updateTransform(C){const E=this.localTransform;if(this._localID!==this._currentLocalID&&(E.a=this._cx*this.scale.x,E.b=this._sx*this.scale.x,E.c=this._cy*this.scale.y,E.d=this._sy*this.scale.y,E.tx=this.position.x-(this.pivot.x*E.a+this.pivot.y*E.c),E.ty=this.position.y-(this.pivot.x*E.b+this.pivot.y*E.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==C._worldID){const I=C.worldTransform,B=this.worldTransform;B.a=E.a*I.a+E.b*I.c,B.b=E.a*I.b+E.b*I.d,B.c=E.c*I.a+E.d*I.c,B.d=E.c*I.b+E.d*I.d,B.tx=E.tx*I.a+E.ty*I.c+I.tx,B.ty=E.tx*I.b+E.ty*I.d+I.ty,this._parentID=C._worldID,this._worldID++}}setFromMatrix(C){C.decompose(this),this._localID++}get rotation(){return this._rotation}set rotation(C){this._rotation!==C&&(this._rotation=C,this.updateSkew())}};let Transform=_Transform;Transform.IDENTITY=new _Transform;var defaultFragment$2=`varying vec2 vTextureCoord;
45
45
 
46
46
  uniform sampler2D uSampler;
47
47
 
@@ -858,7 +858,7 @@ void main(void)
858
858
  vTextureCoord = aTextureCoord;
859
859
  vFilterCoord = vTextureCoord * inputSize.xy / outputFrame.zw;
860
860
  }
861
- `,v$1=v$1||{};v$1.stringify=function(){var C={"visit_linear-gradient":function(E){return C.visit_gradient(E)},"visit_repeating-linear-gradient":function(E){return C.visit_gradient(E)},"visit_radial-gradient":function(E){return C.visit_gradient(E)},"visit_repeating-radial-gradient":function(E){return C.visit_gradient(E)},visit_gradient:function(E){var I=C.visit(E.orientation);return I&&(I+=", "),E.type+"("+I+C.visit(E.colorStops)+")"},visit_shape:function(E){var I=E.value,B=C.visit(E.at),U=C.visit(E.style);return U&&(I+=" "+U),B&&(I+=" at "+B),I},"visit_default-radial":function(E){var I="",B=C.visit(E.at);return B&&(I+=B),I},"visit_extent-keyword":function(E){var I=E.value,B=C.visit(E.at);return B&&(I+=" at "+B),I},"visit_position-keyword":function(E){return E.value},visit_position:function(E){return C.visit(E.value.x)+" "+C.visit(E.value.y)},"visit_%":function(E){return E.value+"%"},visit_em:function(E){return E.value+"em"},visit_px:function(E){return E.value+"px"},visit_literal:function(E){return C.visit_color(E.value,E)},visit_hex:function(E){return C.visit_color("#"+E.value,E)},visit_rgb:function(E){return C.visit_color("rgb("+E.value.join(", ")+")",E)},visit_rgba:function(E){return C.visit_color("rgba("+E.value.join(", ")+")",E)},visit_color:function(E,I){var B=E,U=C.visit(I.length);return U&&(B+=" "+U),B},visit_angular:function(E){return E.value+"deg"},visit_directional:function(E){return"to "+E.value},visit_array:function(E){var I="",B=E.length;return E.forEach(function(U,V){I+=C.visit(U),V<B-1&&(I+=", ")}),I},visit:function(E){if(!E)return"";var I="";if(E instanceof Array)return C.visit_array(E,I);if(E.type){var B=C["visit_"+E.type];if(B)return B(E);throw Error("Missing visitor visit_"+E.type)}else throw Error("Invalid node.")}};return function(E){return C.visit(E)}}();var v$1=v$1||{};v$1.parse=function(){var C={linearGradient:/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,repeatingLinearGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,radialGradient:/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,repeatingRadialGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},E="";function I(Ne){var Me=new Error(E+": "+Ne);throw Me.source=E,Me}function B(){var Ne=U();return E.length>0&&I("Invalid input not EOF"),Ne}function U(){return Pe(V)}function V(){return X("linear-gradient",C.linearGradient,K)||X("repeating-linear-gradient",C.repeatingLinearGradient,K)||X("radial-gradient",C.radialGradient,Z)||X("repeating-radial-gradient",C.repeatingRadialGradient,Z)}function X(Ne,Me,ke){return Y(Me,function(Ge){var Be=ke();return Be&&(He(C.comma)||I("Missing comma before color stops")),{type:Ne,orientation:Be,colorStops:Pe(Ie)}})}function Y(Ne,Me){var ke=He(Ne);if(ke){He(C.startCall)||I("Missing (");var Ge=Me(ke);return He(C.endCall)||I("Missing )"),Ge}}function K(){return J()||xe()}function J(){return ze("directional",C.sideOrCorner,1)}function xe(){return ze("angular",C.angleValue,1)}function Z(){var Ne,Me=_e(),ke;return Me&&(Ne=[],Ne.push(Me),ke=E,He(C.comma)&&(Me=_e(),Me?Ne.push(Me):E=ke)),Ne}function _e(){var Ne=Se()||Ee();if(Ne)Ne.at=Re();else{var Me=Ae();if(Me){Ne=Me;var ke=Re();ke&&(Ne.at=ke)}else{var Ge=Te();Ge&&(Ne={type:"default-radial",at:Ge})}}return Ne}function Se(){var Ne=ze("shape",/^(circle)/i,0);return Ne&&(Ne.style=je()||Ae()),Ne}function Ee(){var Ne=ze("shape",/^(ellipse)/i,0);return Ne&&(Ne.style=Ue()||Ae()),Ne}function Ae(){return ze("extent-keyword",C.extentKeywords,1)}function Re(){if(ze("position",/^at/,0)){var Ne=Te();return Ne||I("Missing positioning value"),Ne}}function Te(){var Ne=we();if(Ne.x||Ne.y)return{type:"position",value:Ne}}function we(){return{x:Ue(),y:Ue()}}function Pe(Ne){var Me=Ne(),ke=[];if(Me)for(ke.push(Me);He(C.comma);)Me=Ne(),Me?ke.push(Me):I("One extra comma");return ke}function Ie(){var Ne=Fe();return Ne||I("Expected color definition"),Ne.length=Ue(),Ne}function Fe(){return Le()||Ve()||De()||Oe()}function Oe(){return ze("literal",C.literalColor,0)}function Le(){return ze("hex",C.hexColor,1)}function De(){return Y(C.rgbColor,function(){return{type:"rgb",value:Pe(Xe)}})}function Ve(){return Y(C.rgbaColor,function(){return{type:"rgba",value:Pe(Xe)}})}function Xe(){return He(C.number)[1]}function Ue(){return ze("%",C.percentageValue,1)||We()||je()}function We(){return ze("position-keyword",C.positionKeywords,1)}function je(){return ze("px",C.pixelValue,1)||ze("em",C.emValue,1)}function ze(Ne,Me,ke){var Ge=He(Me);if(Ge)return{type:Ne,value:Ge[ke]}}function He(Ne){var Me,ke;return ke=/^[\n\r\t\s]+/.exec(E),ke&&$e(ke[0].length),Me=Ne.exec(E),Me&&$e(Me[0].length),Me}function $e(Ne){E=E.substr(Ne)}return function(Ne){return E=Ne.toString(),B()}}();var ee=v$1.parse;v$1.stringify;var R={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},G={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function te(C){var E,I=[],B=1,U;if(typeof C=="string")if(R[C])I=R[C].slice(),U="rgb";else if(C==="transparent")B=0,U="rgb",I=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(C)){var V=C.slice(1),X=V.length,Y=X<=4;B=1,Y?(I=[parseInt(V[0]+V[0],16),parseInt(V[1]+V[1],16),parseInt(V[2]+V[2],16)],X===4&&(B=parseInt(V[3]+V[3],16)/255)):(I=[parseInt(V[0]+V[1],16),parseInt(V[2]+V[3],16),parseInt(V[4]+V[5],16)],X===8&&(B=parseInt(V[6]+V[7],16)/255)),I[0]||(I[0]=0),I[1]||(I[1]=0),I[2]||(I[2]=0),U="rgb"}else if(E=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(C)){var K=E[1],J=K==="rgb",V=K.replace(/a$/,"");U=V;var X=V==="cmyk"?4:V==="gray"?1:3;I=E[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(_e,Se){if(/%$/.test(_e))return Se===X?parseFloat(_e)/100:V==="rgb"?parseFloat(_e)*255/100:parseFloat(_e);if(V[Se]==="h"){if(/deg$/.test(_e))return parseFloat(_e);if(G[_e]!==void 0)return G[_e]}return parseFloat(_e)}),K===V&&I.push(1),B=J||I[X]===void 0?1:I[X],I=I.slice(0,X)}else C.length>10&&/[0-9](?:\s|\/)/.test(C)&&(I=C.match(/([0-9]+)/g).map(function(xe){return parseFloat(xe)}),U=C.match(/([a-z])/ig).join("").toLowerCase());else isNaN(C)?Array.isArray(C)||C.length?(I=[C[0],C[1],C[2]],U="rgb",B=C.length===4?C[3]:1):C instanceof Object&&(C.r!=null||C.red!=null||C.R!=null?(U="rgb",I=[C.r||C.red||C.R||0,C.g||C.green||C.G||0,C.b||C.blue||C.B||0]):(U="hsl",I=[C.h||C.hue||C.H||0,C.s||C.saturation||C.S||0,C.l||C.lightness||C.L||C.b||C.brightness]),B=C.a||C.alpha||C.opacity||1,C.opacity!=null&&(B/=100)):(U="rgb",I=[C>>>16,(C&65280)>>>8,C&255]);return{space:U,values:I,alpha:B}}var A={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]},S={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(C){var E=C[0]/360,I=C[1]/100,B=C[2]/100,U,V,X,Y,K;if(I===0)return K=B*255,[K,K,K];B<.5?V=B*(1+I):V=B+I-B*I,U=2*B-V,Y=[0,0,0];for(var J=0;J<3;J++)X=E+1/3*-(J-1),X<0?X++:X>1&&X--,6*X<1?K=U+(V-U)*6*X:2*X<1?K=V:3*X<2?K=U+(V-U)*(2/3-X)*6:K=U,Y[J]=K*255;return Y}};A.hsl=function(C){var E=C[0]/255,I=C[1]/255,B=C[2]/255,U=Math.min(E,I,B),V=Math.max(E,I,B),X=V-U,Y,K,J;return V===U?Y=0:E===V?Y=(I-B)/X:I===V?Y=2+(B-E)/X:B===V&&(Y=4+(E-I)/X),Y=Math.min(Y*60,360),Y<0&&(Y+=360),J=(U+V)/2,V===U?K=0:J<=.5?K=X/(V+U):K=X/(2-V-U),[Y,K*100,J*100]};function re(C){Array.isArray(C)&&C.raw&&(C=String.raw(...arguments));var E,I=te(C);if(!I.space)return[];const B=I.space[0]==="h"?S.min:A.min,U=I.space[0]==="h"?S.max:A.max;return E=Array(3),E[0]=Math.min(Math.max(I.values[0],B[0]),U[0]),E[1]=Math.min(Math.max(I.values[1],B[1]),U[1]),E[2]=Math.min(Math.max(I.values[2],B[2]),U[2]),I.space[0]==="h"&&(E=S.rgb(E)),E.push(Math.min(Math.max(I.alpha,0),1)),E}function L(C){switch(typeof C){case"string":return ne(C);case"number":return hex2rgb(C);default:return C}}function ne(C){const E=re(C);if(!E)throw new Error(`Unable to parse color "${C}" as RGBA.`);return[E[0]/255,E[1]/255,E[2]/255,E[3]]}function ie(C){const E=ee(ge(C));if(E.length===0)throw new Error("Invalid CSS gradient.");if(E.length!==1)throw new Error("Unsupported CSS gradient (multiple gradients is not supported).");const I=E[0],B=oe(I.type),U=ae(I.colorStops),V=ce(I.orientation);return{type:B,stops:U,angle:V}}function oe(C){const E={"linear-gradient":0,"radial-gradient":1};if(!(C in E))throw new Error(`Unsupported gradient type "${C}"`);return E[C]}function ae(C){const E=ue(C),I=[];for(let B=0;B<C.length;B++){const U=le(C[B]);I.push({offset:E[B],color:U.slice(0,3),alpha:U[3]})}return I}function le(C){return L(se(C))}function se(C){switch(C.type){case"hex":return`#${C.value}`;case"literal":return C.value;default:return`${C.type}(${C.value.join(",")})`}}function ue(C){const E=[];for(let U=0;U<C.length;U++){const V=C[U];let X=-1;V.type==="literal"&&V.length&&"type"in V.length&&V.length.type==="%"&&"value"in V.length&&(X=parseFloat(V.length.value)/100),E.push(X)}const I=U=>{for(let V=U;V<E.length;V++)if(E[V]!==-1)return{indexDelta:V-U,offset:E[V]};return{indexDelta:E.length-1-U,offset:1}};let B=0;for(let U=0;U<E.length;U++){const V=E[U];if(V!==-1)B=V;else if(U===0)E[U]=0;else if(U+1===E.length)E[U]=1;else{const X=I(U),Y=(X.offset-B)/(1+X.indexDelta);for(let K=0;K<=X.indexDelta;K++)E[U+K]=B+(K+1)*Y;U+=X.indexDelta,B=E[U]}}return E.map(fe)}function fe(C){return C.toString().length>6?parseFloat(C.toString().substring(0,6)):C}function ce(C){if(typeof C>"u")return 0;if("type"in C&&"value"in C)switch(C.type){case"angular":return parseFloat(C.value);case"directional":return pe(C.value)}return 0}function pe(C){const E={left:270,top:0,bottom:180,right:90,"left top":315,"top left":315,"left bottom":225,"bottom left":225,"right top":45,"top right":45,"right bottom":135,"bottom right":135};if(!(C in E))throw new Error(`Unsupported directional value "${C}"`);return E[C]}function ge(C){let E=C.replace(/\s{2,}/gu," ");return E=E.replace(/;/g,""),E=E.replace(/ ,/g,","),E=E.replace(/\( /g,"("),E=E.replace(/ \)/g,")"),E.trim()}var he=Object.defineProperty,me=Object.defineProperties,de=Object.getOwnPropertyDescriptors,N=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,z$1=(C,E,I)=>E in C?he(C,E,{enumerable:!0,configurable:!0,writable:!0,value:I}):C[E]=I,k=(C,E)=>{for(var I in E||(E={}))ve.call(E,I)&&z$1(C,I,E[I]);if(N)for(var I of N(E))ye.call(E,I)&&z$1(C,I,E[I]);return C},be=(C,E)=>me(C,de(E));const D=90;function Ce(C){return[...C].sort((E,I)=>E.offset-I.offset)}const P$1=class extends Filter{constructor(E){E&&"css"in E&&(E=be(k({},ie(E.css||"")),{alpha:E.alpha,maxColors:E.maxColors}));const I=k(k({},P$1.defaults),E);if(!I.stops||I.stops.length<2)throw new Error("ColorGradientFilter requires at least 2 color stops.");super(W,Q),this._stops=[],this.autoFit=!1,Object.assign(this,I)}get stops(){return this._stops}set stops(E){const I=Ce(E),B=new Float32Array(I.length*3),U=0,V=1,X=2;for(let Y=0;Y<I.length;Y++){const K=L(I[Y].color),J=Y*3;B[J+U]=K[U],B[J+V]=K[V],B[J+X]=K[X]}this.uniforms.uColors=B,this.uniforms.uOffsets=I.map(Y=>Y.offset),this.uniforms.uAlphas=I.map(Y=>Y.alpha),this.uniforms.uNumStops=I.length,this._stops=I}set type(E){this.uniforms.uType=E}get type(){return this.uniforms.uType}set angle(E){this.uniforms.uAngle=E-D}get angle(){return this.uniforms.uAngle+D}set alpha(E){this.uniforms.uAlpha=E}get alpha(){return this.uniforms.uAlpha}set maxColors(E){this.uniforms.uMaxColors=E}get maxColors(){return this.uniforms.uMaxColors}};let y=P$1;y.LINEAR=0,y.RADIAL=1,y.CONIC=2,y.defaults={type:P$1.LINEAR,stops:[{offset:0,color:16711680,alpha:1},{offset:1,color:255,alpha:1}],alpha:1,angle:90,maxColors:0};var o$3=`attribute vec2 aVertexPosition;
861
+ `,v$1=v$1||{};v$1.stringify=function(){var C={"visit_linear-gradient":function(E){return C.visit_gradient(E)},"visit_repeating-linear-gradient":function(E){return C.visit_gradient(E)},"visit_radial-gradient":function(E){return C.visit_gradient(E)},"visit_repeating-radial-gradient":function(E){return C.visit_gradient(E)},visit_gradient:function(E){var I=C.visit(E.orientation);return I&&(I+=", "),E.type+"("+I+C.visit(E.colorStops)+")"},visit_shape:function(E){var I=E.value,B=C.visit(E.at),U=C.visit(E.style);return U&&(I+=" "+U),B&&(I+=" at "+B),I},"visit_default-radial":function(E){var I="",B=C.visit(E.at);return B&&(I+=B),I},"visit_extent-keyword":function(E){var I=E.value,B=C.visit(E.at);return B&&(I+=" at "+B),I},"visit_position-keyword":function(E){return E.value},visit_position:function(E){return C.visit(E.value.x)+" "+C.visit(E.value.y)},"visit_%":function(E){return E.value+"%"},visit_em:function(E){return E.value+"em"},visit_px:function(E){return E.value+"px"},visit_literal:function(E){return C.visit_color(E.value,E)},visit_hex:function(E){return C.visit_color("#"+E.value,E)},visit_rgb:function(E){return C.visit_color("rgb("+E.value.join(", ")+")",E)},visit_rgba:function(E){return C.visit_color("rgba("+E.value.join(", ")+")",E)},visit_color:function(E,I){var B=E,U=C.visit(I.length);return U&&(B+=" "+U),B},visit_angular:function(E){return E.value+"deg"},visit_directional:function(E){return"to "+E.value},visit_array:function(E){var I="",B=E.length;return E.forEach(function(U,V){I+=C.visit(U),V<B-1&&(I+=", ")}),I},visit:function(E){if(!E)return"";var I="";if(E instanceof Array)return C.visit_array(E,I);if(E.type){var B=C["visit_"+E.type];if(B)return B(E);throw Error("Missing visitor visit_"+E.type)}else throw Error("Invalid node.")}};return function(E){return C.visit(E)}}();var v$1=v$1||{};v$1.parse=function(){var C={linearGradient:/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,repeatingLinearGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,radialGradient:/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,repeatingRadialGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},E="";function I(De){var Fe=new Error(E+": "+De);throw Fe.source=E,Fe}function B(){var De=U();return E.length>0&&I("Invalid input not EOF"),De}function U(){return Pe(V)}function V(){return X("linear-gradient",C.linearGradient,K)||X("repeating-linear-gradient",C.repeatingLinearGradient,K)||X("radial-gradient",C.radialGradient,Z)||X("repeating-radial-gradient",C.repeatingRadialGradient,Z)}function X(De,Fe,ke){return Y(Fe,function(Ge){var Be=ke();return Be&&(je(C.comma)||I("Missing comma before color stops")),{type:De,orientation:Be,colorStops:Pe(Ie)}})}function Y(De,Fe){var ke=je(De);if(ke){je(C.startCall)||I("Missing (");var Ge=Fe(ke);return je(C.endCall)||I("Missing )"),Ge}}function K(){return J()||xe()}function J(){return He("directional",C.sideOrCorner,1)}function xe(){return He("angular",C.angleValue,1)}function Z(){var De,Fe=_e(),ke;return Fe&&(De=[],De.push(Fe),ke=E,je(C.comma)&&(Fe=_e(),Fe?De.push(Fe):E=ke)),De}function _e(){var De=Se()||Ee();if(De)De.at=Re();else{var Fe=Ae();if(Fe){De=Fe;var ke=Re();ke&&(De.at=ke)}else{var Ge=Te();Ge&&(De={type:"default-radial",at:Ge})}}return De}function Se(){var De=He("shape",/^(circle)/i,0);return De&&(De.style=ze()||Ae()),De}function Ee(){var De=He("shape",/^(ellipse)/i,0);return De&&(De.style=Ue()||Ae()),De}function Ae(){return He("extent-keyword",C.extentKeywords,1)}function Re(){if(He("position",/^at/,0)){var De=Te();return De||I("Missing positioning value"),De}}function Te(){var De=we();if(De.x||De.y)return{type:"position",value:De}}function we(){return{x:Ue(),y:Ue()}}function Pe(De){var Fe=De(),ke=[];if(Fe)for(ke.push(Fe);je(C.comma);)Fe=De(),Fe?ke.push(Fe):I("One extra comma");return ke}function Ie(){var De=Me();return De||I("Expected color definition"),De.length=Ue(),De}function Me(){return Le()||Ve()||$e()||Oe()}function Oe(){return He("literal",C.literalColor,0)}function Le(){return He("hex",C.hexColor,1)}function $e(){return Y(C.rgbColor,function(){return{type:"rgb",value:Pe(Xe)}})}function Ve(){return Y(C.rgbaColor,function(){return{type:"rgba",value:Pe(Xe)}})}function Xe(){return je(C.number)[1]}function Ue(){return He("%",C.percentageValue,1)||We()||ze()}function We(){return He("position-keyword",C.positionKeywords,1)}function ze(){return He("px",C.pixelValue,1)||He("em",C.emValue,1)}function He(De,Fe,ke){var Ge=je(Fe);if(Ge)return{type:De,value:Ge[ke]}}function je(De){var Fe,ke;return ke=/^[\n\r\t\s]+/.exec(E),ke&&Ne(ke[0].length),Fe=De.exec(E),Fe&&Ne(Fe[0].length),Fe}function Ne(De){E=E.substr(De)}return function(De){return E=De.toString(),B()}}();var ee=v$1.parse;v$1.stringify;var R={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},G={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function te(C){var E,I=[],B=1,U;if(typeof C=="string")if(R[C])I=R[C].slice(),U="rgb";else if(C==="transparent")B=0,U="rgb",I=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(C)){var V=C.slice(1),X=V.length,Y=X<=4;B=1,Y?(I=[parseInt(V[0]+V[0],16),parseInt(V[1]+V[1],16),parseInt(V[2]+V[2],16)],X===4&&(B=parseInt(V[3]+V[3],16)/255)):(I=[parseInt(V[0]+V[1],16),parseInt(V[2]+V[3],16),parseInt(V[4]+V[5],16)],X===8&&(B=parseInt(V[6]+V[7],16)/255)),I[0]||(I[0]=0),I[1]||(I[1]=0),I[2]||(I[2]=0),U="rgb"}else if(E=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(C)){var K=E[1],J=K==="rgb",V=K.replace(/a$/,"");U=V;var X=V==="cmyk"?4:V==="gray"?1:3;I=E[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(_e,Se){if(/%$/.test(_e))return Se===X?parseFloat(_e)/100:V==="rgb"?parseFloat(_e)*255/100:parseFloat(_e);if(V[Se]==="h"){if(/deg$/.test(_e))return parseFloat(_e);if(G[_e]!==void 0)return G[_e]}return parseFloat(_e)}),K===V&&I.push(1),B=J||I[X]===void 0?1:I[X],I=I.slice(0,X)}else C.length>10&&/[0-9](?:\s|\/)/.test(C)&&(I=C.match(/([0-9]+)/g).map(function(xe){return parseFloat(xe)}),U=C.match(/([a-z])/ig).join("").toLowerCase());else isNaN(C)?Array.isArray(C)||C.length?(I=[C[0],C[1],C[2]],U="rgb",B=C.length===4?C[3]:1):C instanceof Object&&(C.r!=null||C.red!=null||C.R!=null?(U="rgb",I=[C.r||C.red||C.R||0,C.g||C.green||C.G||0,C.b||C.blue||C.B||0]):(U="hsl",I=[C.h||C.hue||C.H||0,C.s||C.saturation||C.S||0,C.l||C.lightness||C.L||C.b||C.brightness]),B=C.a||C.alpha||C.opacity||1,C.opacity!=null&&(B/=100)):(U="rgb",I=[C>>>16,(C&65280)>>>8,C&255]);return{space:U,values:I,alpha:B}}var A={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]},S={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(C){var E=C[0]/360,I=C[1]/100,B=C[2]/100,U,V,X,Y,K;if(I===0)return K=B*255,[K,K,K];B<.5?V=B*(1+I):V=B+I-B*I,U=2*B-V,Y=[0,0,0];for(var J=0;J<3;J++)X=E+1/3*-(J-1),X<0?X++:X>1&&X--,6*X<1?K=U+(V-U)*6*X:2*X<1?K=V:3*X<2?K=U+(V-U)*(2/3-X)*6:K=U,Y[J]=K*255;return Y}};A.hsl=function(C){var E=C[0]/255,I=C[1]/255,B=C[2]/255,U=Math.min(E,I,B),V=Math.max(E,I,B),X=V-U,Y,K,J;return V===U?Y=0:E===V?Y=(I-B)/X:I===V?Y=2+(B-E)/X:B===V&&(Y=4+(E-I)/X),Y=Math.min(Y*60,360),Y<0&&(Y+=360),J=(U+V)/2,V===U?K=0:J<=.5?K=X/(V+U):K=X/(2-V-U),[Y,K*100,J*100]};function re(C){Array.isArray(C)&&C.raw&&(C=String.raw(...arguments));var E,I=te(C);if(!I.space)return[];const B=I.space[0]==="h"?S.min:A.min,U=I.space[0]==="h"?S.max:A.max;return E=Array(3),E[0]=Math.min(Math.max(I.values[0],B[0]),U[0]),E[1]=Math.min(Math.max(I.values[1],B[1]),U[1]),E[2]=Math.min(Math.max(I.values[2],B[2]),U[2]),I.space[0]==="h"&&(E=S.rgb(E)),E.push(Math.min(Math.max(I.alpha,0),1)),E}function L(C){switch(typeof C){case"string":return ne(C);case"number":return hex2rgb(C);default:return C}}function ne(C){const E=re(C);if(!E)throw new Error(`Unable to parse color "${C}" as RGBA.`);return[E[0]/255,E[1]/255,E[2]/255,E[3]]}function ie(C){const E=ee(ge(C));if(E.length===0)throw new Error("Invalid CSS gradient.");if(E.length!==1)throw new Error("Unsupported CSS gradient (multiple gradients is not supported).");const I=E[0],B=oe(I.type),U=ae(I.colorStops),V=ce(I.orientation);return{type:B,stops:U,angle:V}}function oe(C){const E={"linear-gradient":0,"radial-gradient":1};if(!(C in E))throw new Error(`Unsupported gradient type "${C}"`);return E[C]}function ae(C){const E=ue(C),I=[];for(let B=0;B<C.length;B++){const U=le(C[B]);I.push({offset:E[B],color:U.slice(0,3),alpha:U[3]})}return I}function le(C){return L(se(C))}function se(C){switch(C.type){case"hex":return`#${C.value}`;case"literal":return C.value;default:return`${C.type}(${C.value.join(",")})`}}function ue(C){const E=[];for(let U=0;U<C.length;U++){const V=C[U];let X=-1;V.type==="literal"&&V.length&&"type"in V.length&&V.length.type==="%"&&"value"in V.length&&(X=parseFloat(V.length.value)/100),E.push(X)}const I=U=>{for(let V=U;V<E.length;V++)if(E[V]!==-1)return{indexDelta:V-U,offset:E[V]};return{indexDelta:E.length-1-U,offset:1}};let B=0;for(let U=0;U<E.length;U++){const V=E[U];if(V!==-1)B=V;else if(U===0)E[U]=0;else if(U+1===E.length)E[U]=1;else{const X=I(U),Y=(X.offset-B)/(1+X.indexDelta);for(let K=0;K<=X.indexDelta;K++)E[U+K]=B+(K+1)*Y;U+=X.indexDelta,B=E[U]}}return E.map(fe)}function fe(C){return C.toString().length>6?parseFloat(C.toString().substring(0,6)):C}function ce(C){if(typeof C>"u")return 0;if("type"in C&&"value"in C)switch(C.type){case"angular":return parseFloat(C.value);case"directional":return pe(C.value)}return 0}function pe(C){const E={left:270,top:0,bottom:180,right:90,"left top":315,"top left":315,"left bottom":225,"bottom left":225,"right top":45,"top right":45,"right bottom":135,"bottom right":135};if(!(C in E))throw new Error(`Unsupported directional value "${C}"`);return E[C]}function ge(C){let E=C.replace(/\s{2,}/gu," ");return E=E.replace(/;/g,""),E=E.replace(/ ,/g,","),E=E.replace(/\( /g,"("),E=E.replace(/ \)/g,")"),E.trim()}var he=Object.defineProperty,me=Object.defineProperties,de=Object.getOwnPropertyDescriptors,N=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,z$1=(C,E,I)=>E in C?he(C,E,{enumerable:!0,configurable:!0,writable:!0,value:I}):C[E]=I,k=(C,E)=>{for(var I in E||(E={}))ve.call(E,I)&&z$1(C,I,E[I]);if(N)for(var I of N(E))ye.call(E,I)&&z$1(C,I,E[I]);return C},be=(C,E)=>me(C,de(E));const D=90;function Ce(C){return[...C].sort((E,I)=>E.offset-I.offset)}const P$1=class extends Filter{constructor(E){E&&"css"in E&&(E=be(k({},ie(E.css||"")),{alpha:E.alpha,maxColors:E.maxColors}));const I=k(k({},P$1.defaults),E);if(!I.stops||I.stops.length<2)throw new Error("ColorGradientFilter requires at least 2 color stops.");super(W,Q),this._stops=[],this.autoFit=!1,Object.assign(this,I)}get stops(){return this._stops}set stops(E){const I=Ce(E),B=new Float32Array(I.length*3),U=0,V=1,X=2;for(let Y=0;Y<I.length;Y++){const K=L(I[Y].color),J=Y*3;B[J+U]=K[U],B[J+V]=K[V],B[J+X]=K[X]}this.uniforms.uColors=B,this.uniforms.uOffsets=I.map(Y=>Y.offset),this.uniforms.uAlphas=I.map(Y=>Y.alpha),this.uniforms.uNumStops=I.length,this._stops=I}set type(E){this.uniforms.uType=E}get type(){return this.uniforms.uType}set angle(E){this.uniforms.uAngle=E-D}get angle(){return this.uniforms.uAngle+D}set alpha(E){this.uniforms.uAlpha=E}get alpha(){return this.uniforms.uAlpha}set maxColors(E){this.uniforms.uMaxColors=E}get maxColors(){return this.uniforms.uMaxColors}};let y=P$1;y.LINEAR=0,y.RADIAL=1,y.CONIC=2,y.defaults={type:P$1.LINEAR,stops:[{offset:0,color:16711680,alpha:1},{offset:1,color:255,alpha:1}],alpha:1,angle:90,maxColors:0};var o$3=`attribute vec2 aVertexPosition;
862
862
  attribute vec2 aTextureCoord;
863
863
 
864
864
  uniform mat3 projectionMatrix;
@@ -1921,7 +1921,7 @@ void main() {
1921
1921
 
1922
1922
  gl_FragColor = color;
1923
1923
  }
1924
- `,i=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,c=(C,E)=>{var I={};for(var B in C)d.call(C,B)&&E.indexOf(B)<0&&(I[B]=C[B]);if(C!=null&&i)for(var B of i(C))E.indexOf(B)<0&&f.call(C,B)&&(I[B]=C[B]);return I};const a=class extends Filter{constructor(C){const E=Object.assign(a.defaults,C),{maxKernelSize:I}=E,B=c(E,["maxKernelSize"]);super(l,u.replace("${maxKernelSize}",I.toFixed(1))),Object.assign(this,B)}get center(){return this.uniforms.uCenter}set center(C){this.uniforms.uCenter=C}get strength(){return this.uniforms.uStrength}set strength(C){this.uniforms.uStrength=C}get innerRadius(){return this.uniforms.uInnerRadius}set innerRadius(C){this.uniforms.uInnerRadius=C}get radius(){return this.uniforms.uRadius}set radius(C){(C<0||C===1/0)&&(C=-1),this.uniforms.uRadius=C}};let o=a;o.defaults={strength:.1,center:[0,0],innerRadius:0,radius:-1,maxKernelSize:32};const withFiltersHook=C=>{const{contrast:E=1,saturation:I=1,brightness:B=1,alpha:U=1,red:V=1,blue:X=1,gamma:Y=1,green:K=1,blurRadius:J=0,temperature:xe=0,hue:Z=0,sharpness:_e=0,vignette:Se=0,noise:Ee=0}=C||{},Ae=new PIXI__namespace.Filter(null,`
1924
+ `,i=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,c=(C,E)=>{var I={};for(var B in C)d.call(C,B)&&E.indexOf(B)<0&&(I[B]=C[B]);if(C!=null&&i)for(var B of i(C))E.indexOf(B)<0&&f.call(C,B)&&(I[B]=C[B]);return I};const a=class extends Filter{constructor(C){const E=Object.assign(a.defaults,C),{maxKernelSize:I}=E,B=c(E,["maxKernelSize"]);super(l,u.replace("${maxKernelSize}",I.toFixed(1))),Object.assign(this,B)}get center(){return this.uniforms.uCenter}set center(C){this.uniforms.uCenter=C}get strength(){return this.uniforms.uStrength}set strength(C){this.uniforms.uStrength=C}get innerRadius(){return this.uniforms.uInnerRadius}set innerRadius(C){this.uniforms.uInnerRadius=C}get radius(){return this.uniforms.uRadius}set radius(C){(C<0||C===1/0)&&(C=-1),this.uniforms.uRadius=C}};let o=a;o.defaults={strength:.1,center:[0,0],innerRadius:0,radius:-1,maxKernelSize:32};function _extends(){return _extends=Object.assign?Object.assign.bind():function(C){for(var E=1;E<arguments.length;E++){var I=arguments[E];for(var B in I)Object.prototype.hasOwnProperty.call(I,B)&&(C[B]=I[B])}return C},_extends.apply(this,arguments)}function _objectWithoutPropertiesLoose(C,E){if(C==null)return{};var I={},B=Object.keys(C),U,V;for(V=0;V<B.length;V++)U=B[V],!(E.indexOf(U)>=0)&&(I[U]=C[U]);return I}var RGB_MAX=255,SV_MAX=100,rgbaToHsva=C=>{var{r:E,g:I,b:B,a:U}=C,V=Math.max(E,I,B),X=V-Math.min(E,I,B),Y=X?V===E?(I-B)/X:V===I?2+(B-E)/X:4+(E-I)/X:0;return{h:60*(Y<0?Y+6:Y),s:V?X/V*SV_MAX:0,v:V/RGB_MAX*SV_MAX,a:U}},hsvaToHslaString=C=>{var{h:E,s:I,l:B,a:U}=hsvaToHsla(C);return"hsla("+E+", "+I+"%, "+B+"%, "+U+")"},hsvaToHsla=C=>{var{h:E,s:I,v:B,a:U}=C,V=(200-I)*B/SV_MAX;return{h:E,s:V>0&&V<200?I*B/SV_MAX/(V<=SV_MAX?V:200-V)*SV_MAX:0,l:V/2,a:U}},rgbaToHex$1=C=>{var{r:E,g:I,b:B}=C,U=E<<16|I<<8|B;return"#"+(V=>new Array(7-V.length).join("0")+V)(U.toString(16))},rgbaToHexa=C=>{var{r:E,g:I,b:B,a:U}=C,V=typeof U=="number"&&(U*255|256).toString(16).slice(1);return""+rgbaToHex$1({r:E,g:I,b:B,a:U})+(V||"")},hexToHsva=C=>rgbaToHsva(hexToRgba(C)),hexToRgba=C=>{var E=C.replace("#","");/^#?/.test(C)&&E.length===3&&(C="#"+E.charAt(0)+E.charAt(0)+E.charAt(1)+E.charAt(1)+E.charAt(2)+E.charAt(2));var I=new RegExp("[A-Za-z0-9]{2}","g"),[B,U,V=0,X]=C.match(I).map(Y=>parseInt(Y,16));return{r:B,g:U,b:V,a:(X??255)/RGB_MAX}},hsvaToRgba=C=>{var{h:E,s:I,v:B,a:U}=C,V=E/60,X=I/SV_MAX,Y=B/SV_MAX,K=Math.floor(V)%6,J=V-Math.floor(V),xe=RGB_MAX*Y*(1-X),Z=RGB_MAX*Y*(1-X*J),_e=RGB_MAX*Y*(1-X*(1-J));Y*=RGB_MAX;var Se={};switch(K){case 0:Se.r=Y,Se.g=_e,Se.b=xe;break;case 1:Se.r=Z,Se.g=Y,Se.b=xe;break;case 2:Se.r=xe,Se.g=Y,Se.b=_e;break;case 3:Se.r=xe,Se.g=Z,Se.b=Y;break;case 4:Se.r=_e,Se.g=xe,Se.b=Y;break;case 5:Se.r=Y,Se.g=xe,Se.b=Z;break}return Se.r=Math.round(Se.r),Se.g=Math.round(Se.g),Se.b=Math.round(Se.b),_extends({},Se,{a:U})},hsvaToRgbaString=C=>{var{r:E,g:I,b:B,a:U}=hsvaToRgba(C);return"rgba("+E+", "+I+", "+B+", "+U+")"},rgbaToRgb=C=>{var{r:E,g:I,b:B}=C;return{r:E,g:I,b:B}},hslaToHsl=C=>{var{h:E,s:I,l:B}=C;return{h:E,s:I,l:B}},hsvaToHex=C=>rgbaToHex$1(hsvaToRgba(C)),hsvaToHsv=C=>{var{h:E,s:I,v:B}=C;return{h:E,s:I,v:B}},rgbToXY=C=>{var{r:E,g:I,b:B}=C,U=function(xe){return xe<=.04045?xe/12.92:Math.pow((xe+.055)/1.055,2.4)},V=U(E/255),X=U(I/255),Y=U(B/255),K={};return K.x=V*.4124+X*.3576+Y*.1805,K.y=V*.2126+X*.7152+Y*.0722,K.bri=V*.0193+X*.1192+Y*.9505,K},color=C=>{var E,I,B,U,V,X,Y,K,J;return typeof C=="string"&&validHex$1(C)?(X=hexToHsva(C),K=C):typeof C!="string"&&(X=C),X&&(B=hsvaToHsv(X),V=hsvaToHsla(X),U=hsvaToRgba(X),J=rgbaToHexa(U),K=hsvaToHex(X),I=hslaToHsl(V),E=rgbaToRgb(U),Y=rgbToXY(E)),{rgb:E,hsl:I,hsv:B,rgba:U,hsla:V,hsva:X,hex:K,hexa:J,xy:Y}},validHex$1=C=>/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(C);function useEventCallback$1(C){var E=React.useRef(C);return React.useEffect(()=>{E.current=C}),React.useCallback((I,B)=>E.current&&E.current(I,B),[])}var isTouch=C=>"touches"in C,preventDefaultMove=C=>{!isTouch(C)&&C.preventDefault&&C.preventDefault()},clamp=function(E,I,B){return I===void 0&&(I=0),B===void 0&&(B=1),E>B?B:E<I?I:E},getRelativePosition=(C,E)=>{var I=C.getBoundingClientRect(),B=isTouch(E)?E.touches[0]:E;return{left:clamp((B.pageX-(I.left+window.pageXOffset))/I.width),top:clamp((B.pageY-(I.top+window.pageYOffset))/I.height),width:I.width,height:I.height,x:B.pageX-(I.left+window.pageXOffset),y:B.pageY-(I.top+window.pageYOffset)}},_excluded$8=["prefixCls","className","onMove","onDown"],Interactive=React.forwardRef((C,E)=>{var{prefixCls:I="w-color-interactive",className:B,onMove:U,onDown:V}=C,X=_objectWithoutPropertiesLoose(C,_excluded$8),Y=React.useRef(null),K=React.useRef(!1),[J,xe]=React.useState(!1),Z=useEventCallback$1(U),_e=useEventCallback$1(V),Se=we=>K.current&&!isTouch(we)?!1:(K.current=isTouch(we),!0),Ee=React.useCallback(we=>{preventDefaultMove(we);var Pe=isTouch(we)?we.touches.length>0:we.buttons>0;Pe&&Y.current?Z&&Z(getRelativePosition(Y.current,we),we):xe(!1)},[Z]),Ae=React.useCallback(()=>xe(!1),[]),Re=React.useCallback(we=>{var Pe=we?window.addEventListener:window.removeEventListener;Pe(K.current?"touchmove":"mousemove",Ee),Pe(K.current?"touchend":"mouseup",Ae)},[]);React.useEffect(()=>(Re(J),()=>{J&&Re(!1)}),[J,Re]);var Te=React.useCallback(we=>{preventDefaultMove(we.nativeEvent),Se(we.nativeEvent)&&(_e&&_e(getRelativePosition(Y.current,we.nativeEvent),we.nativeEvent),xe(!0))},[_e]);return jsxRuntimeExports.jsx("div",_extends({},X,{className:[I,B||""].filter(Boolean).join(" "),style:_extends({},X.style,{touchAction:"none"}),ref:Y,tabIndex:0,onMouseDown:Te,onTouchStart:Te}))});Interactive.displayName="Interactive";const Interactive$1=Interactive;var Pointer$1=C=>{var{className:E,color:I,left:B,top:U,prefixCls:V}=C,X={position:"absolute",top:U,left:B},Y={"--saturation-pointer-box-shadow":"rgb(255 255 255) 0px 0px 0px 1.5px, rgb(0 0 0 / 30%) 0px 0px 1px 1px inset, rgb(0 0 0 / 40%) 0px 0px 1px 2px",width:6,height:6,transform:"translate(-3px, -3px)",boxShadow:"var(--saturation-pointer-box-shadow)",borderRadius:"50%",backgroundColor:I};return React.useMemo(()=>jsxRuntimeExports.jsx("div",{className:V+"-pointer "+(E||""),style:X,children:jsxRuntimeExports.jsx("div",{className:V+"-fill",style:Y})}),[U,B,I,E,V])},_excluded$7=["prefixCls","radius","pointer","className","hue","style","hsva","onChange"],Saturation=React.forwardRef((C,E)=>{var I,{prefixCls:B="w-color-saturation",radius:U=0,pointer:V,className:X,hue:Y=0,style:K,hsva:J,onChange:xe}=C,Z=_objectWithoutPropertiesLoose(C,_excluded$7),_e=_extends({width:200,height:200,borderRadius:U},K,{position:"relative"}),Se=(Ae,Re)=>{xe&&J&&xe({h:J.h,s:Ae.left*100,v:(1-Ae.top)*100,a:J.a})},Ee=React.useMemo(()=>{if(!J)return null;var Ae={top:100-J.v+"%",left:J.s+"%",color:hsvaToHslaString(J)};return V&&typeof V=="function"?V(_extends({prefixCls:B},Ae)):jsxRuntimeExports.jsx(Pointer$1,_extends({prefixCls:B},Ae))},[J,V,B]);return jsxRuntimeExports.jsx(Interactive$1,_extends({className:[B,X||""].filter(Boolean).join(" ")},Z,{style:_extends({position:"absolute",inset:0,cursor:"crosshair",backgroundImage:"linear-gradient(0deg, #000, transparent), linear-gradient(90deg, #fff, hsl("+((I=J==null?void 0:J.h)!=null?I:Y)+", 100%, 50%))"},_e),ref:E,onMove:Se,onDown:Se,children:Ee}))});Saturation.displayName="Saturation";const Saturation$1=Saturation;var _excluded$6=["className","prefixCls","left","top","style","fillProps"],Pointer=C=>{var{className:E,prefixCls:I,left:B,top:U,style:V,fillProps:X}=C,Y=_objectWithoutPropertiesLoose(C,_excluded$6),K=_extends({},V,{position:"absolute",left:B,top:U}),J=_extends({width:18,height:18,boxShadow:"var(--alpha-pointer-box-shadow)",borderRadius:"50%",backgroundColor:"var(--alpha-pointer-background-color)"},X==null?void 0:X.style,{transform:B?"translate(-9px, -1px)":"translate(-1px, -9px)"});return jsxRuntimeExports.jsx("div",_extends({className:I+"-pointer "+(E||""),style:K},Y,{children:jsxRuntimeExports.jsx("div",_extends({className:I+"-fill"},X,{style:J}))}))},_excluded$5=["prefixCls","className","hsva","background","bgProps","innerProps","pointerProps","radius","width","height","direction","style","onChange","pointer"],BACKGROUND_IMG="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==",Alpha=React.forwardRef((C,E)=>{var{prefixCls:I="w-color-alpha",className:B,hsva:U,background:V,bgProps:X={},innerProps:Y={},pointerProps:K={},radius:J=0,width:xe,height:Z=16,direction:_e="horizontal",style:Se,onChange:Ee,pointer:Ae}=C,Re=_objectWithoutPropertiesLoose(C,_excluded$5),Te=Le=>{Ee&&Ee(_extends({},U,{a:_e==="horizontal"?Le.left:Le.top}),Le)},we=hsvaToHslaString(Object.assign({},U,{a:1})),Pe="linear-gradient(to "+(_e==="horizontal"?"right":"bottom")+", rgba(244, 67, 54, 0) 0%, "+we+" 100%)",Ie={};_e==="horizontal"?Ie.left=U.a*100+"%":Ie.top=U.a*100+"%";var Me=_extends({"--alpha-background-color":"#fff","--alpha-pointer-background-color":"rgb(248, 248, 248)","--alpha-pointer-box-shadow":"rgb(0 0 0 / 37%) 0px 1px 4px 0px",borderRadius:J,background:"url("+BACKGROUND_IMG+") left center",backgroundColor:"var(--alpha-background-color)"},{width:xe,height:Z},Se,{position:"relative"}),Oe=Ae&&typeof Ae=="function"?Ae(_extends({prefixCls:I},K,Ie)):jsxRuntimeExports.jsx(Pointer,_extends({},K,{prefixCls:I},Ie));return jsxRuntimeExports.jsxs("div",_extends({},Re,{className:[I,I+"-"+_e,B||""].filter(Boolean).join(" "),style:Me,ref:E,children:[jsxRuntimeExports.jsx("div",_extends({},X,{style:_extends({inset:0,position:"absolute",background:V||Pe,borderRadius:J},X.style)})),jsxRuntimeExports.jsx(Interactive$1,_extends({},Y,{style:_extends({},Y.style,{inset:0,zIndex:1,position:"absolute"}),onMove:Te,onDown:Te,children:Oe}))]}))});Alpha.displayName="Alpha";const Alpha$1=Alpha;var _excluded$4=["prefixCls","placement","label","value","className","style","labelStyle","inputStyle","onChange","onBlur"],validHex=C=>/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(C),getNumberValue=C=>Number(String(C).replace(/%/g,"")),EditableInput=React.forwardRef((C,E)=>{var{prefixCls:I="w-color-editable-input",placement:B="bottom",label:U,value:V,className:X,style:Y,labelStyle:K,inputStyle:J,onChange:xe,onBlur:Z}=C,_e=_objectWithoutPropertiesLoose(C,_excluded$4),[Se,Ee]=React.useState(V),Ae=React.useRef(!1);React.useEffect(()=>{C.value!==Se&&(Ae.current||Ee(C.value))},[C.value]);function Re(Me,Oe){var Le=(Oe||Me.target.value).trim().replace(/^#/,"");validHex(Le)&&xe&&xe(Me,Le);var $e=getNumberValue(Le);isNaN($e)||xe&&xe(Me,$e),Ee(Le)}function Te(Me){Ae.current=!1,Ee(C.value),Z&&Z(Me)}var we={};B==="bottom"&&(we.flexDirection="column"),B==="top"&&(we.flexDirection="column-reverse"),B==="left"&&(we.flexDirection="row-reverse");var Pe=_extends({"--editable-input-label-color":"rgb(153, 153, 153)","--editable-input-box-shadow":"rgb(204 204 204) 0px 0px 0px 1px inset","--editable-input-color":"#666",position:"relative",alignItems:"center",display:"flex",fontSize:11},we,Y),Ie=_extends({width:"100%",paddingTop:2,paddingBottom:2,paddingLeft:3,paddingRight:3,fontSize:11,background:"transparent",boxSizing:"border-box",border:"none",color:"var(--editable-input-color)",boxShadow:"var(--editable-input-box-shadow)"},J);return jsxRuntimeExports.jsxs("div",{className:[I,X||""].filter(Boolean).join(" "),style:Pe,children:[jsxRuntimeExports.jsx("input",_extends({ref:E,value:Se,onChange:Re,onBlur:Te,autoComplete:"off",onFocus:()=>Ae.current=!0},_e,{style:Ie})),U&&jsxRuntimeExports.jsx("span",{style:_extends({color:"var(--editable-input-label-color)",textTransform:"capitalize"},K),children:U})]})});EditableInput.displayName="EditableInput";const EditableInput$1=EditableInput;var _excluded$3=["prefixCls","hsva","placement","rProps","gProps","bProps","aProps","className","style","onChange"],EditableInputRGBA=React.forwardRef((C,E)=>{var{prefixCls:I="w-color-editable-input-rgba",hsva:B,placement:U="bottom",rProps:V={},gProps:X={},bProps:Y={},aProps:K={},className:J,style:xe,onChange:Z}=C,_e=_objectWithoutPropertiesLoose(C,_excluded$3),Se=B?hsvaToRgba(B):{};function Ee(Re){var Te=Number(Re.target.value);Te&&Te>255&&(Re.target.value="255"),Te&&Te<0&&(Re.target.value="0")}var Ae=(Re,Te,we)=>{typeof Re=="number"&&(Te==="a"&&(Re<0&&(Re=0),Re>100&&(Re=100),Z&&Z(color(rgbaToHsva(_extends({},Se,{a:Re/100}))))),Re>255&&(Re=255,we.target.value="255"),Re<0&&(Re=0,we.target.value="0"),Te==="r"&&Z&&Z(color(rgbaToHsva(_extends({},Se,{r:Re})))),Te==="g"&&Z&&Z(color(rgbaToHsva(_extends({},Se,{g:Re})))),Te==="b"&&Z&&Z(color(rgbaToHsva(_extends({},Se,{b:Re})))))};return jsxRuntimeExports.jsxs("div",_extends({ref:E,className:[I,J||""].filter(Boolean).join(" ")},_e,{style:_extends({fontSize:11,display:"flex"},xe),children:[jsxRuntimeExports.jsx(EditableInput$1,_extends({label:"R",value:Se.r||0,onBlur:Ee,placement:U,onChange:(Re,Te)=>Ae(Te,"r",Re)},V,{style:_extends({},V.style)})),jsxRuntimeExports.jsx(EditableInput$1,_extends({label:"G",value:Se.g||0,onBlur:Ee,placement:U,onChange:(Re,Te)=>Ae(Te,"g",Re)},X,{style:_extends({marginLeft:5},V.style)})),jsxRuntimeExports.jsx(EditableInput$1,_extends({label:"B",value:Se.b||0,onBlur:Ee,placement:U,onChange:(Re,Te)=>Ae(Te,"b",Re)},Y,{style:_extends({marginLeft:5},Y.style)})),K&&jsxRuntimeExports.jsx(EditableInput$1,_extends({label:"A",value:Se.a?parseInt(String(Se.a*100),10):0,onBlur:Ee,placement:U,onChange:(Re,Te)=>Ae(Te,"a",Re)},K,{style:_extends({marginLeft:5},K.style)}))]}))});EditableInputRGBA.displayName="EditableInputRGBA";const RGBA=EditableInputRGBA;var _excluded$2=["prefixCls","className","hue","onChange","direction"],Hue=React.forwardRef((C,E)=>{var{prefixCls:I="w-color-hue",className:B,hue:U=0,onChange:V,direction:X="horizontal"}=C,Y=_objectWithoutPropertiesLoose(C,_excluded$2);return jsxRuntimeExports.jsx(Alpha$1,_extends({ref:E,className:I+" "+(B||"")},Y,{direction:X,background:"linear-gradient(to "+(X==="horizontal"?"right":"bottom")+", rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%)",hsva:{h:U,s:100,v:100,a:U/360},onChange:(K,J)=>{V&&V({h:X==="horizontal"?360*J.left:360*J.top})}}))});Hue.displayName="Hue";const Hue$1=Hue;var _excluded$1=["prefixCls","className","color","colors","style","rectProps","onChange","addonAfter","addonBefore","rectRender"],Swatch=React.forwardRef((C,E)=>{var{prefixCls:I="w-color-swatch",className:B,color:U,colors:V=[],style:X,rectProps:Y={},onChange:K,addonAfter:J,addonBefore:xe,rectRender:Z}=C,_e=_objectWithoutPropertiesLoose(C,_excluded$1),Se=_extends({"--swatch-background-color":"rgb(144, 19, 254)",background:"var(--swatch-background-color)",height:15,width:15,marginRight:5,marginBottom:5,cursor:"pointer",position:"relative",outline:"none",borderRadius:2},Y.style),Ee=(Ae,Re)=>{K&&K(hexToHsva(Ae),color(hexToHsva(Ae)),Re)};return jsxRuntimeExports.jsxs("div",_extends({ref:E},_e,{className:[I,B||""].filter(Boolean).join(" "),style:_extends({display:"flex",flexWrap:"wrap",position:"relative"},X),children:[xe&&React.isValidElement(xe)&&xe,V&&Array.isArray(V)&&V.map((Ae,Re)=>{var Te="",we="";typeof Ae=="string"&&(Te=Ae,we=Ae),typeof Ae=="object"&&Ae.color&&(Te=Ae.title||Ae.color,we=Ae.color);var Pe=U&&U.toLocaleLowerCase()===we.toLocaleLowerCase(),Ie=Z&&Z({title:Te,color:we,checked:!!Pe,style:_extends({},Se,{background:we}),onClick:Oe=>Ee(we,Oe)});if(Ie)return jsxRuntimeExports.jsx(React.Fragment,{children:Ie},Re);var Me=Y.children&&React.isValidElement(Y.children)?React.cloneElement(Y.children,{color:we,checked:Pe}):null;return jsxRuntimeExports.jsx("div",_extends({tabIndex:0,title:Te,onClick:Oe=>Ee(we,Oe)},Y,{children:Me,style:_extends({},Se,{background:we})}),Re)}),J&&React.isValidElement(J)&&J]}))});Swatch.displayName="Swatch";const Swatch$1=Swatch;var _excluded=["prefixCls","className","onChange","width","presetColors","color","editableDisable","disableAlpha","style"],PRESET_COLORS=["#D0021B","#F5A623","#f8e61b","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"],Bar=C=>jsxRuntimeExports.jsx("div",{style:{boxShadow:"rgb(0 0 0 / 60%) 0px 0px 2px",width:4,top:1,bottom:1,left:C.left,borderRadius:1,position:"absolute",backgroundColor:"#fff"}}),Sketch=React.forwardRef((C,E)=>{var{prefixCls:I="w-color-sketch",className:B,onChange:U,width:V=218,presetColors:X=PRESET_COLORS,color:Y,editableDisable:K=!0,disableAlpha:J=!1,style:xe}=C,Z=_objectWithoutPropertiesLoose(C,_excluded),[_e,Se]=React.useState({h:209,s:36,v:90,a:1});React.useEffect(()=>{typeof Y=="string"&&validHex$1(Y)&&Se(hexToHsva(Y)),typeof Y=="object"&&Se(Y)},[Y]);var Ee=Oe=>{Se(Oe),U&&U(color(Oe))},Ae=(Oe,Le)=>{typeof Oe=="string"&&validHex$1(Oe)&&/(3|6)/.test(String(Oe.length))&&Ee(hexToHsva(Oe))},Re=Oe=>Ee(_extends({},_e,{a:Oe.a})),Te=Oe=>Ee(_extends({},_e,Oe,{a:_e.a})),we=_extends({"--sketch-background":"rgb(255, 255, 255)","--sketch-box-shadow":"rgb(0 0 0 / 15%) 0px 0px 0px 1px, rgb(0 0 0 / 15%) 0px 8px 16px","--sketch-swatch-box-shadow":"rgb(0 0 0 / 15%) 0px 0px 0px 1px inset","--sketch-alpha-box-shadow":"rgb(0 0 0 / 15%) 0px 0px 0px 1px inset, rgb(0 0 0 / 25%) 0px 0px 4px inset","--sketch-swatch-border-top":"1px solid rgb(238, 238, 238)",background:"var(--sketch-background)",borderRadius:4,boxShadow:"var(--sketch-box-shadow)",width:V},xe),Pe={borderRadius:2,background:hsvaToRgbaString(_e),boxShadow:"var(--sketch-alpha-box-shadow)"},Ie={borderTop:"var(--sketch-swatch-border-top)",paddingTop:10,paddingLeft:10},Me={marginRight:10,marginBottom:10,borderRadius:3,boxShadow:"var(--sketch-swatch-box-shadow)"};return jsxRuntimeExports.jsxs("div",_extends({},Z,{className:I+" "+(B||""),ref:E,style:we,children:[jsxRuntimeExports.jsxs("div",{style:{padding:"10px 10px 8px"},children:[jsxRuntimeExports.jsx(Saturation$1,{hsva:_e,style:{width:"auto",height:150},onChange:Te}),jsxRuntimeExports.jsxs("div",{style:{display:"flex",marginTop:4},children:[jsxRuntimeExports.jsxs("div",{style:{flex:1},children:[jsxRuntimeExports.jsx(Hue$1,{width:"auto",height:10,hue:_e.h,pointer:Bar,innerProps:{style:{marginLeft:1,marginRight:5}},onChange:Oe=>Ee(_extends({},_e,Oe))}),!J&&jsxRuntimeExports.jsx(Alpha$1,{width:"auto",height:10,hsva:_e,pointer:Bar,style:{marginTop:4},innerProps:{style:{marginLeft:1,marginRight:5}},onChange:Re})]}),!J&&jsxRuntimeExports.jsx(Alpha$1,{width:24,height:24,hsva:_e,radius:2,style:{marginLeft:4},bgProps:{style:{background:"transparent"}},innerProps:{style:Pe},pointer:()=>jsxRuntimeExports.jsx(React.Fragment,{})})]})]}),K&&jsxRuntimeExports.jsxs("div",{style:{display:"flex",margin:"0 10px 3px 10px"},children:[jsxRuntimeExports.jsx(EditableInput$1,{label:"Hex",value:hsvaToHex(_e).replace(/^#/,"").toLocaleUpperCase(),onChange:(Oe,Le)=>Ae(Le),style:{minWidth:58}}),jsxRuntimeExports.jsx(RGBA,{hsva:_e,style:{marginLeft:6},aProps:J?!1:{},onChange:Oe=>Ee(Oe.hsva)})]}),X&&X.length>0&&jsxRuntimeExports.jsx(Swatch$1,{style:Ie,colors:X,color:hsvaToHex(_e),onChange:Oe=>Ee(Oe),rectProps:{style:Me}})]}))});Sketch.displayName="Sketch";const Sketch$1=Sketch,ColorPickerPortal=({position:C,color:E,onChange:I,onClose:B})=>{const U=React__namespace.useCallback(K=>{I(K.hex)},[I]);React__namespace.useEffect(()=>{const K=J=>{var xe;J.target instanceof Node&&!((xe=document.getElementById("color-picker-portal"))!=null&&xe.contains(J.target))&&B()};return document.addEventListener("mousedown",K),()=>{document.removeEventListener("mousedown",K)}},[B]);const V=React__namespace.useCallback(()=>{const Z=window.innerWidth,_e=window.innerHeight;let{x:Se,y:Ee}=C;return Se+220+10>Z&&(Se=Z-220-10),Ee+300+10>_e&&(Ee=Ee-300-10),{x:Se,y:Ee}},[C]),{x:X,y:Y}=V();return reactDom.createPortal(jsxRuntimeExports.jsxs("div",{style:{position:"fixed",left:X,top:Y,zIndex:9999,backgroundColor:"white",borderRadius:"8px",boxShadow:"0 10px 15px rgba(0, 0, 0, 0.1)",padding:"8px"},children:[jsxRuntimeExports.jsx("div",{style:{position:"fixed",inset:0,backgroundColor:"rgba(0, 0, 0, 0.4)",zIndex:-1},onClick:B}),jsxRuntimeExports.jsx(Sketch$1,{color:E,onChange:U})]}),document.body)},MENUS_ICONS={ARROW_DOWN:"▼",ARROW_UP:"▲",COLOR:"🎨",COPY:"📋",DELETE:"❌",TRASH:"🗑️",EYE:"👁️",EYE_SLASH:"👁️‍🗨️",LOCK:"🔒",UNLOCK:"🔓",PASTE:"📋",PENCIL:"✏️",PLUS:"➕",MINUS:"➖",ROTATE:"🔄",SCALE:"⚖️",SAVE:"💾",RESET:"🔄",SETTINGS:"⚙️",ZOOM_IN:"🔍",ZOOM_OUT:"🔍",ALIGN_LEFT:"☰",ALIGN_CENTER:"≣",ALIGN_RIGHT:"⋰",DISTRIBUTE_HORIZONTALLY:"↔️",DISTRIBUTE_VERTICALLY:"↕️",FLIP_HORIZONTAL:"↔️",FLIP_VERTICAL:"↕️",ROTATE_LEFT:"↺",ROTATE_RIGHT:"↻",SCALE_DOWN:"➖",SCALE_UP:"➕",ADJUST_EQUALISER:"🔊",ADJUST_EQUALISER_SLIDERS:"🎚️",ADJUST_HORIZONTAL_SLIDERS:"🔲",COLOR_FILL:"🎨"},MAX_RECENT_COLORS=10,useDropDownMenu=C=>{const E=React.useRef(null),I=react.useApp();return{createMenu:React.useCallback((U,V,X)=>{if(!U||!I)return;const Y=new PIXI__namespace.Container;I.stage.addChild(Y),E.current=Y;const K=132,J=(32+4)*V.length+8,xe=new PIXI__namespace.Graphics;xe.beginFill(16777215,.95),xe.lineStyle(1,14540253),xe.drawRoundedRect(0,0,K,J,4),xe.endFill(),Y.addChild(xe);const Z=new F;Z.alpha=.2,Z.blur=2,Z.distance=3,Y.filters=[Z],V.forEach((Se,Ee)=>{const Ae=new PIXI__namespace.Container;Ae.eventMode="static";const Re=new PIXI__namespace.Graphics;Re.beginFill(16777215,0),Re.drawRect(0,0,K,32),Re.endFill(),Ae.addChild(Re);const Te=new PIXI__namespace.Text(Se.icon,{fontSize:14,fontFamily:"Arial",fill:3355443});Te.x=8,Te.y=32/2-Te.height/2,Ae.addChild(Te);const we=new PIXI__namespace.Text(Se.label,{fontSize:12,fontFamily:"Arial",fill:3355443});we.x=32+4,we.y=32/2-we.height/2,Ae.addChild(we),Ae.y=Ee*(32+4)+4,Ae.on("pointerover",()=>{Re.clear(),Re.beginFill(15790320),Re.drawRect(0,0,K,32),Re.endFill()}).on("pointerout",()=>{Re.clear(),Re.beginFill(16777215,0),Re.drawRect(0,0,K,32),Re.endFill()}).on("pointerup",()=>{Se.action(),C(!1)}),Y.addChild(Ae)}),Y.x=X.x,Y.y=X.y;const _e=Se=>{const Ee=new PIXI__namespace.Point(Se.global.x,Se.global.y);Y.getBounds().contains(Ee.x,Ee.y)||C(!1)};return I.stage.on("pointerdown",_e),()=>{I.stage.off("pointerdown",_e),Y.parent&&Y.parent.removeChild(Y)}},[]),dropdownRef:E}},TransformerMenu=({PixiTransformer:C})=>{const E=React.useRef(null),I=React.useRef(null),B=React.useRef(null),U=react.useApp(),[V,X]=React.useState(!1),[Y,K]=React.useState({x:0,y:0}),[,J]=React.useState(!1),[xe,Z]=React.useState("#000000"),[,_e]=React.useState({x:0,y:0}),[Se,Ee]=React.useState(!1),[Ae,Re]=React.useState({x:0,y:0}),[Te,we]=React.useState(()=>{const ke=localStorage.getItem("recentColors");return ke?JSON.parse(ke):[]}),{createMenu:Pe,dropdownRef:Ie}=useDropDownMenu(Ee),Me=32,Oe=4,Le=8,$e=[{icon:"B",action:()=>{},tooltip:"Bold"},{icon:"I",action:()=>{},tooltip:"Italic"},{icon:"U",action:()=>{},tooltip:"Underline"},{icon:"🎨",action:(ke,Ge)=>{const Be={x:Y.x+ke,y:Y.y+Ge+33},qe=U.view.getBoundingClientRect(),Ke=qe.left+Be.x,Ye=qe.top+Be.y;De(Ke,Ye)},tooltip:"Color",withPreview:!0},{icon:MENUS_ICONS.ARROW_DOWN,action:(ke,Ge)=>{We(ke,Ge)},tooltip:"Alignment Options"}],Ve=[{icon:MENUS_ICONS.ALIGN_LEFT,action:()=>console.log("Align Left"),label:"Left"},{icon:MENUS_ICONS.ALIGN_CENTER,action:()=>console.log("Align Center"),label:"Center"},{icon:MENUS_ICONS.ALIGN_RIGHT,action:()=>console.log("Align Right"),label:"Right"},{icon:"↑",action:()=>console.log("bring forward"),label:"Bring Forward"},{icon:"↓",action:()=>console.log("send backward"),label:"Send Backward"}],Xe=(Me+Oe)*$e.length+Le*2-Oe,Ue=Me+Le*2,We=React.useCallback((ke,Ge)=>{Ee(Be=>!Be),Re({x:Y.x+ke,y:Y.y+Ge+Me+5})},[Y,Me]),ze=React.useCallback(()=>{B.current&&(B.current.unmount(),J(!1)),Ie.current&&Ie.current.parent&&(Ie.current.parent.removeChild(Ie.current),Ie.current=null,Ee(!1))},[]),He=React.useCallback(()=>{const ke=document.createElement("div");return ke.id="color-picker-portal",document.body.appendChild(ke),I.current=ke,B.current=client.createRoot(ke),()=>{ke&&ke.parentNode&&document.body.removeChild(ke)}},[]);React.useEffect(()=>{He()},[]);const je=React.useCallback(ke=>{Z(ke),we(Ge=>{const Be=[ke,...Ge.filter(qe=>qe!==ke)].slice(0,MAX_RECENT_COLORS);return localStorage.setItem("recentColors",JSON.stringify(Be)),Be})},[]),Ne=React.useCallback(()=>{J(!1),B.current&&B.current.unmount()},[]),De=React.useCallback((ke,Ge)=>{I.current&&B.current&&(_e({x:ke,y:Ge}),J(!0),(!B.current||!B.current._internalRoot)&&He(),B.current.render(jsxRuntimeExports.jsx(ColorPickerPortal,{position:{x:ke,y:Ge},color:xe,onChange:je,onClose:Ne,recentColors:Te})))},[xe,je,Ne]);React.useEffect(()=>{const ke=()=>{if(C.current){const Be=C.current.getBounds();K({x:Be.x+Be.width/2-Xe/2,y:Be.y+Be.height})}},Ge=setTimeout(()=>{E.current&&(ke(),X(!0))},300);return()=>{clearTimeout(Ge)}},[]);const Fe=React.useCallback(()=>{if(ze(),C.current){const ke=C.current.getBounds();K({x:ke.x+ke.width/2-Xe/2,y:ke.y+ke.height})}},[ze]);return React.useEffect(()=>{const ke=Ge=>{if(I.current){const Be=I.current.firstChild;Be&&!Be.contains(Ge.target)&&ze()}(Ge.type==="resize"||Ge.type==="scroll")&&ze()};return window.addEventListener("click",ke),window.addEventListener("resize",ke),window.addEventListener("scroll",ke),()=>{window.removeEventListener("click",ke),window.removeEventListener("resize",ke),window.removeEventListener("scroll",ke)}},[ze]),React.useEffect(()=>{var Ke;if(!U||!V||!C.current||!E.current)return;const ke=C.current,Ge=new PIXI__namespace.Container;(Ke=E.current)==null||Ke.addChild(Ge),ke.addListener("transformchange",Fe);const Be=new PIXI__namespace.Graphics;Be.beginFill(16777215,.9),Be.lineStyle(1,14540253),Be.drawRoundedRect(0,0,Xe,Ue,4),Be.endFill(),Ge.addChild(Be);const qe=new F;return qe.alpha=.2,qe.blur=2,qe.distance=3,Ge.filters=[qe],$e.forEach((Ye,tt)=>{const Ze=new PIXI__namespace.Container,it=Le+(Me+Oe)*tt,at=Le,st=new PIXI__namespace.Graphics;st.beginFill(16119285),st.drawRoundedRect(0,0,Me,Me,4),st.endFill(),Ze.addChild(st);const Je=new PIXI__namespace.Text(Ye.icon,{fontSize:14,fontFamily:"Arial",fill:Ye.icon==="🎨"?xe:3355443,fontWeight:"bold"});Je.x=Me/2-Je.width/2,Je.y=Me/2-Je.height/2,Ze.addChild(Je),Ze.x=it,Ze.y=at,Ze.interactive=!0,Ze.eventMode="static",Ze.on("pointerover",()=>{st.clear(),st.beginFill(15658734),st.drawRoundedRect(0,0,Me,Me,4),st.endFill(),Ye.icon!=="🎨"&&(Je.style.fill=0)}),Ze.on("pointerout",()=>{st.clear(),st.beginFill(16119285),st.drawRoundedRect(0,0,Me,Me,4),st.endFill(),Ye.icon!=="🎨"&&(Je.style.fill=3355443)}),Ze.on("pointerdown",()=>{st.clear(),st.beginFill(14737632),st.drawRoundedRect(0,0,Me,Me,4),st.endFill()}),Ze.on("pointerup",()=>{st.clear(),st.beginFill(16119285),st.drawRoundedRect(0,0,Me,Me,4),st.endFill(),Ye.action(it,at)}),Ge.addChild(Ze)}),Ge.x=Y.x,Ge.y=Y.y,Ge.visible=ke.visible,()=>{E.current&&E.current.removeChild(Ge),C.current&&C.current.removeListener("transformchange",Fe)}},[U,V,Y,$e,Xe,Ue,xe]),React.useEffect(()=>Pe(Se,Ve,Ae),[Se,Ve,Ae]),React.useEffect(()=>()=>{ze()},[ze]),jsxRuntimeExports.jsx(react.Sprite,{texture:PIXI__namespace.Texture.EMPTY,ref:E,x:10,y:10})},CYAN=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],initalTransforms$1={x:0,y:0,width:0,height:0,anchor:.5,animation:Animations.NONE,maxX:0,maxY:0,scale:1,rotation:0,effect:Effects.Normal,overlay:OverlayTypes.NONE,fontSize:10},AbstractContainer=React__namespace.forwardRef((C,E)=>{const[I,B]=React__namespace.useState(!1),[U]=React.useState(!1),[V,X]=React.useState(!1),[Y,K]=React.useState(),J=React.useRef(null),xe=React.useRef(null),Z=React.useRef(null),_e=React.useRef(null),Se=React.useRef(null),Ee=React.useRef(null),Ae=React.useRef({isDragging:!1}),{tl:Re}=React.useContext(GsapPixieContext),Te=react.useApp();console.log("app 1001x",Te.screen.width);const we=Te.screen.width,Pe=Te.screen.height;console.log("app 1002x",Te.screen.height);const{uniqueId:Ie,visible:Me,startAt:Oe,transformation:Le=initalTransforms$1,applyTransformer:$e,disabled:Ve,pointerdown:Xe,pointerout:Ue,pointerover:We,isText:ze,isDragging:He,isGif:je,onDoubleClick:Ne,isTextEditMode:De,handleDragFontSize:Fe,handleDragWordWrap:ke}=C,{x:Ge=0,y:Be=0,width:qe,height:Ke,scale:Ye=[1,1],rotation:tt=0,effect:Ze,overlay:it,animation:at=Animations.NONE,fontSize:st=16}=Le,Je=useGsapEffect();console.log("app anim 1002x"),useCustomEventListener(Events.COMPLETE,()=>{J.current}),React__namespace.useImperativeHandle(E,()=>({getIsTransformerDragging:()=>U,getIsMouseOverTransformer:()=>V}),[U,V]),React__namespace.useEffect(()=>{J.current&&B(!0)},[]),React__namespace.useEffect(()=>{K({x:Ge,y:Be,width:qe,height:Ke,animation:at,maxX:we,maxY:Pe})},[at,Ge,Be,qe,Ke,we,Pe]),React__namespace.useEffect(()=>{if(xe.current){if(Re.current&&Y){console.log("transforms 1001",Y);const{x:lt,y:ut,animation:mt,maxX:_t,maxY:dt}=Y||{},vt=Re.current.progress(),pt=Je.updateEffect(J.current,mt,{immediateRender:!1,x:lt,y:ut,overwrite:!0,maxX:_t,maxY:dt});console.log("transforms 10012x",Y),Se.current&&(Re.current.remove(Se.current),Se.current.progress(0).kill()),vt>.1?(pt.eventCallback("onComplete",()=>{pt.remove("onComplete"),Re.current.add(pt,Oe),Se.current=pt}),pt.play()):(pt.progress(1),Re.current.add(pt,Oe),Se.current=pt)}else Se.current&&Se.current.progress(0).kill();return()=>{}}},[Oe,Y]);const et=React__namespace.useCallback(()=>{X(!0),We&&!Ae.current.isDragging&&We()},[]),rt=lt=>parseFloat(lt.toFixed(2)),nt=React__namespace.useCallback(()=>{var mt,_t;Ae.current.isDragging=!0;const{width:lt}=J.current,ut={x:rt(Number((mt=J.current)==null?void 0:mt.scale.x)),y:rt(Number((_t=J.current)==null?void 0:_t.scale.y))};if(ze){if(ut.x!==1&&ut.y!==1&&Z.current){const dt=st*ut.x;Fe&&Fe(lt,dt,ut)}else if(ut.x!==1)ke&&ke(lt,ut);else if(ut.y!==1){const dt=st*ut.x;Fe&&Fe(lt,dt,ut)}}},[ze,st,Fe,ke]),Qe=React__namespace.useCallback(lt=>{var St,It;const{x:ut,y:mt,width:_t,height:dt,rotation:vt}=J.current,pt={x:rt(Number((St=J.current)==null?void 0:St.scale.x)),y:rt(Number((It=J.current)==null?void 0:It.scale.y))};let bt=st;ze&&pt.x!==1&&pt.y!==1?(bt=st*pt.x,Fe&&Fe(_t,bt,pt)):ze&&pt.x!==1&&ke&&ke(_t,pt),C.onAnchorTransformationEnd&&C.onAnchorTransformationEnd({uniqueId:Ie,transformation:{...lt.transformation,fontSize:bt}}),Ae.current.isDragging=!1},[ze,Ie,st,Fe,ke]),ot=react.withFilters(react.Container,{matrix:PIXI__namespace.filters.ColorMatrixFilter});return jsxRuntimeExports.jsxs(react.Container,{ref:xe,children:[jsxRuntimeExports.jsx(react.Container,{ref:J,position:[Ge,Be],pivot:[Ge,Be],width:qe,height:Ke,scale:Ye,rotation:tt,...!Ve&&Me&&!U&&!He&&{interactive:!0,buttonMode:!0,pointerdown:Xe,pointerover:We,pointerout:Ue},children:jsxRuntimeExports.jsxs(react.Container,{ref:Ee,children:[!je&&jsxRuntimeExports.jsx(ot,{scale:1,apply:({matrix:lt})=>{Ze===Effects.BlackAndWhite?lt.desaturate():Ze===Effects.Sepia?lt.sepia():Ze===Effects.RetroVintage||Ze===Effects.NightVision?lt.negative():Ze===Effects.Normal&&lt.reset()},matrix:{enabled:!0,matrix:CYAN},children:jsxRuntimeExports.jsx(react.Container,{ref:Z,children:C.children})}),je&&jsxRuntimeExports.jsx(react.Container,{ref:Z,children:C.children}),!isEmpty$1(it)&&it!==OverlayTypes.NONE&&it!==OverlayTypes.NORMAL&&jsxRuntimeExports.jsx(PixiOverlayTilingSprite,{overlay:it,width:qe,height:Ke,x:Ge,y:Be}),jsxRuntimeExports.jsx(react.Sprite,{texture:PIXI__namespace.Texture.WHITE,alpha:0,x:Ge,y:Be,width:qe,height:Ke,scale:Ye,rotation:tt})]})}),$e&&Me&&!De&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PixiTransformer,{pixiTransformerRef:_e,imageRef:J,isMounted:I,transformCommit:Qe,transformChange:nt,mouseoverEvent:et,uniqueId:Ie,isText:ze,onDoubleClick:Ne}),jsxRuntimeExports.jsx(TransformerMenu,{PixiTransformer:_e,uniqueId:Ie,isText:!!ze})]})]})}),withFiltersHook=C=>{const{contrast:E=1,saturation:I=1,brightness:B=1,alpha:U=1,red:V=1,blue:X=1,gamma:Y=1,green:K=1,blurRadius:J=0,temperature:xe=0,hue:Z=0,sharpness:_e=0,vignette:Se=0,noise:Ee=0}=C||{},Ae=new PIXI__namespace.Filter(null,`
1925
1925
  precision mediump float;
1926
1926
  varying vec2 vTextureCoord;
1927
1927
  uniform sampler2D uSampler;
@@ -1958,7 +1958,7 @@ void main() {
1958
1958
  float vignette = 1.0 - smoothstep(vignetteSize, 0.5, length(delta));
1959
1959
  gl_FragColor = texColor * vignetteColor * vignetteStrength * vignette;
1960
1960
  }
1961
- `);return I.uniforms.vignetteColor=[0,0,0,1],I.uniforms.vignetteSize=.7,I.uniforms.vignetteStrength=.6,{nightVisionFilter:C,vignetteFilter:I}},PixiImageSprite=React__namespace.forwardRef((C,E)=>{const I=React.useRef(null),B=React.useRef(null),{src:U,visible:V,disabled:X,transformation:{x:Y,y:K,width:J,height:xe,anchor:Z,colorCorrection:_e={},effect:Se},pointerdown:Ee}=C,{blurRadius:Ae=0,vignette:Re=0,noise:Te=0}=_e,{temperatureFilter:we,sharpnessFilter:Pe,hueFilter:Ie,blurFilter:Fe,adjustmentFilter:Oe,vignetteFilter:Le,noiseFilter:De}=withFiltersHook(_e),{nightVisionFilter:Ve}=withEffectsHooks();return React__namespace.useEffect(()=>()=>{console.log("PixiImageSprite unmounting")},[]),jsxRuntimeExports.jsx(AbstractContainer,{...C,ref:E,children:jsxRuntimeExports.jsx(react.Container,{ref:B,children:jsxRuntimeExports.jsx(react.Sprite,{image:U,width:J,height:xe,anchor:Z,ref:I,alpha:V?1:0,x:Y,y:K,...!X&&V&&{interactive:!0,pointerdown:Ee},filters:[we,Pe,Ie,Oe,...Ae>0?[Fe]:[],...Se===Effects.NightVision?[Ve]:[],...Re>0?[Le]:[],...Te>0?[De]:[]]})})})});PixiImageSprite.whyDidYouRender={logOnDifferentValues:!0,customName:"ImageSprite"};const buildCircle={build(C){const E=C.points;let I,B,U,V,X,Y;if(C.type===SHAPES.CIRC){const Ee=C.shape;I=Ee.x,B=Ee.y,X=Y=Ee.radius,U=V=0}else if(C.type===SHAPES.ELIP){const Ee=C.shape;I=Ee.x,B=Ee.y,X=Ee.width,Y=Ee.height,U=V=0}else{const Ee=C.shape,Ae=Ee.width/2,Re=Ee.height/2;I=Ee.x+Ae,B=Ee.y+Re,X=Y=Math.max(0,Math.min(Ee.radius,Math.min(Ae,Re))),U=Ae-X,V=Re-Y}if(!(X>=0&&Y>=0&&U>=0&&V>=0)){E.length=0;return}const K=Math.ceil(2.3*Math.sqrt(X+Y)),J=K*8+(U?4:0)+(V?4:0);if(E.length=J,J===0)return;if(K===0){E.length=8,E[0]=E[6]=I+U,E[1]=E[3]=B+V,E[2]=E[4]=I-U,E[5]=E[7]=B-V;return}let xe=0,Z=K*4+(U?2:0)+2,_e=Z,Se=J;{const Ee=U+X,Ae=V,Re=I+Ee,Te=I-Ee,we=B+Ae;if(E[xe++]=Re,E[xe++]=we,E[--Z]=we,E[--Z]=Te,V){const Pe=B-Ae;E[_e++]=Te,E[_e++]=Pe,E[--Se]=Pe,E[--Se]=Re}}for(let Ee=1;Ee<K;Ee++){const Ae=Math.PI/2*(Ee/K),Re=U+Math.cos(Ae)*X,Te=V+Math.sin(Ae)*Y,we=I+Re,Pe=I-Re,Ie=B+Te,Fe=B-Te;E[xe++]=we,E[xe++]=Ie,E[--Z]=Ie,E[--Z]=Pe,E[_e++]=Pe,E[_e++]=Fe,E[--Se]=Fe,E[--Se]=we}{const Ee=U,Ae=V+Y,Re=I+Ee,Te=I-Ee,we=B+Ae,Pe=B-Ae;E[xe++]=Re,E[xe++]=we,E[--Se]=Pe,E[--Se]=Re,U&&(E[xe++]=Te,E[xe++]=we,E[--Se]=Pe,E[--Se]=Te)}},triangulate(C,E){const I=C.points,B=E.points,U=E.indices;if(I.length===0)return;let V=B.length/2;const X=V;let Y,K;if(C.type!==SHAPES.RREC){const xe=C.shape;Y=xe.x,K=xe.y}else{const xe=C.shape;Y=xe.x+xe.width/2,K=xe.y+xe.height/2}const J=C.matrix;B.push(C.matrix?J.a*Y+J.c*K+J.tx:Y,C.matrix?J.b*Y+J.d*K+J.ty:K),V++,B.push(I[0],I[1]);for(let xe=2;xe<I.length;xe+=2)B.push(I[xe],I[xe+1]),U.push(V++,X,V);U.push(X+1,X,V)}};function fixOrientation(C,E=!1){const I=C.length;if(I<6)return;let B=0;for(let U=0,V=C[I-2],X=C[I-1];U<I;U+=2){const Y=C[U],K=C[U+1];B+=(Y-V)*(K+X),V=Y,X=K}if(!E&&B>0||E&&B<=0){const U=I/2;for(let V=U+U%2;V<I;V+=2){const X=I-V-2,Y=I-V-1,K=V,J=V+1;[C[X],C[K]]=[C[K],C[X]],[C[Y],C[J]]=[C[J],C[Y]]}}}const buildPoly={build(C){C.points=C.shape.points.slice()},triangulate(C,E){let I=C.points;const B=C.holes,U=E.points,V=E.indices;if(I.length>=6){fixOrientation(I,!1);const X=[];for(let J=0;J<B.length;J++){const xe=B[J];fixOrientation(xe.points,!0),X.push(I.length/2),I=I.concat(xe.points)}const Y=earcut$1(I,X,2);if(!Y)return;const K=U.length/2;for(let J=0;J<Y.length;J+=3)V.push(Y[J]+K),V.push(Y[J+1]+K),V.push(Y[J+2]+K);for(let J=0;J<I.length;J++)U.push(I[J])}}},buildRectangle={build(C){const E=C.shape,I=E.x,B=E.y,U=E.width,V=E.height,X=C.points;X.length=0,U>=0&&V>=0&&X.push(I,B,I+U,B,I+U,B+V,I,B+V)},triangulate(C,E){const I=C.points,B=E.points;if(I.length===0)return;const U=B.length/2;B.push(I[0],I[1],I[2],I[3],I[6],I[7],I[4],I[5]),E.indices.push(U,U+1,U+2,U+1,U+2,U+3)}},buildRoundedRectangle={build(C){buildCircle.build(C)},triangulate(C,E){buildCircle.triangulate(C,E)}};var LINE_JOIN=(C=>(C.MITER="miter",C.BEVEL="bevel",C.ROUND="round",C))(LINE_JOIN||{}),LINE_CAP=(C=>(C.BUTT="butt",C.ROUND="round",C.SQUARE="square",C))(LINE_CAP||{});const curves={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount(C,E=20){if(!this.adaptive||!C||isNaN(C))return E;let I=Math.ceil(C/this.maxLength);return I<this.minSegments?I=this.minSegments:I>this.maxSegments&&(I=this.maxSegments),I}};class ArcUtils{static curveTo(E,I,B,U,V,X){const Y=X[X.length-2],J=X[X.length-1]-I,xe=Y-E,Z=U-I,_e=B-E,Se=Math.abs(J*_e-xe*Z);if(Se<1e-8||V===0)return(X[X.length-2]!==E||X[X.length-1]!==I)&&X.push(E,I),null;const Ee=J*J+xe*xe,Ae=Z*Z+_e*_e,Re=J*Z+xe*_e,Te=V*Math.sqrt(Ee)/Se,we=V*Math.sqrt(Ae)/Se,Pe=Te*Re/Ee,Ie=we*Re/Ae,Fe=Te*_e+we*xe,Oe=Te*Z+we*J,Le=xe*(we+Pe),De=J*(we+Pe),Ve=_e*(Te+Ie),Xe=Z*(Te+Ie),Ue=Math.atan2(De-Oe,Le-Fe),We=Math.atan2(Xe-Oe,Ve-Fe);return{cx:Fe+E,cy:Oe+I,radius:V,startAngle:Ue,endAngle:We,anticlockwise:xe*Z>_e*J}}static arc(E,I,B,U,V,X,Y,K,J){const xe=Y-X,Z=curves._segmentsCount(Math.abs(xe)*V,Math.ceil(Math.abs(xe)/PI_2)*40),_e=xe/(Z*2),Se=_e*2,Ee=Math.cos(_e),Ae=Math.sin(_e),Re=Z-1,Te=Re%1/Re;for(let we=0;we<=Re;++we){const Pe=we+Te*we,Ie=_e+X+Se*Pe,Fe=Math.cos(Ie),Oe=-Math.sin(Ie);J.push((Ee*Fe+Ae*Oe)*V+B,(Ee*-Oe+Ae*Fe)*V+U)}}}class BatchPart{constructor(){this.reset()}begin(E,I,B){this.reset(),this.style=E,this.start=I,this.attribStart=B}end(E,I){this.attribSize=I-this.attribStart,this.size=E-this.start}reset(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0}}class BezierUtils{static curveLength(E,I,B,U,V,X,Y,K){let xe=0,Z=0,_e=0,Se=0,Ee=0,Ae=0,Re=0,Te=0,we=0,Pe=0,Ie=0,Fe=E,Oe=I;for(let Le=1;Le<=10;++Le)Z=Le/10,_e=Z*Z,Se=_e*Z,Ee=1-Z,Ae=Ee*Ee,Re=Ae*Ee,Te=Re*E+3*Ae*Z*B+3*Ee*_e*V+Se*Y,we=Re*I+3*Ae*Z*U+3*Ee*_e*X+Se*K,Pe=Fe-Te,Ie=Oe-we,Fe=Te,Oe=we,xe+=Math.sqrt(Pe*Pe+Ie*Ie);return xe}static curveTo(E,I,B,U,V,X,Y){const K=Y[Y.length-2],J=Y[Y.length-1];Y.length-=2;const xe=curves._segmentsCount(BezierUtils.curveLength(K,J,E,I,B,U,V,X));let Z=0,_e=0,Se=0,Ee=0,Ae=0;Y.push(K,J);for(let Re=1,Te=0;Re<=xe;++Re)Te=Re/xe,Z=1-Te,_e=Z*Z,Se=_e*Z,Ee=Te*Te,Ae=Ee*Te,Y.push(Se*K+3*_e*Te*E+3*Z*Ee*B+Ae*V,Se*J+3*_e*Te*I+3*Z*Ee*U+Ae*X)}}function square(C,E,I,B,U,V,X,Y){const K=C-I*U,J=E-B*U,xe=C+I*V,Z=E+B*V;let _e,Se;X?(_e=B,Se=-I):(_e=-B,Se=I);const Ee=K+_e,Ae=J+Se,Re=xe+_e,Te=Z+Se;return Y.push(Ee,Ae,Re,Te),2}function round(C,E,I,B,U,V,X,Y){const K=I-C,J=B-E;let xe=Math.atan2(K,J),Z=Math.atan2(U-C,V-E);Y&&xe<Z?xe+=Math.PI*2:!Y&&xe>Z&&(Z+=Math.PI*2);let _e=xe;const Se=Z-xe,Ee=Math.abs(Se),Ae=Math.sqrt(K*K+J*J),Re=(15*Ee*Math.sqrt(Ae)/Math.PI>>0)+1,Te=Se/Re;if(_e+=Te,Y){X.push(C,E,I,B);for(let we=1,Pe=_e;we<Re;we++,Pe+=Te)X.push(C,E,C+Math.sin(Pe)*Ae,E+Math.cos(Pe)*Ae);X.push(C,E,U,V)}else{X.push(I,B,C,E);for(let we=1,Pe=_e;we<Re;we++,Pe+=Te)X.push(C+Math.sin(Pe)*Ae,E+Math.cos(Pe)*Ae,C,E);X.push(U,V,C,E)}return Re*2}function buildNonNativeLine(C,E){const I=C.shape;let B=C.points||I.points.slice();const U=E.closePointEps;if(B.length===0)return;const V=C.lineStyle,X=new Point(B[0],B[1]),Y=new Point(B[B.length-2],B[B.length-1]),K=I.type!==SHAPES.POLY||I.closeStroke,J=Math.abs(X.x-Y.x)<U&&Math.abs(X.y-Y.y)<U;if(K){B=B.slice(),J&&(B.pop(),B.pop(),Y.set(B[B.length-2],B[B.length-1]));const Ne=(X.x+Y.x)*.5,Me=(Y.y+X.y)*.5;B.unshift(Ne,Me),B.push(Ne,Me)}const xe=E.points,Z=B.length/2;let _e=B.length;const Se=xe.length/2,Ee=V.width/2,Ae=Ee*Ee,Re=V.miterLimit*V.miterLimit;let Te=B[0],we=B[1],Pe=B[2],Ie=B[3],Fe=0,Oe=0,Le=-(we-Ie),De=Te-Pe,Ve=0,Xe=0,Ue=Math.sqrt(Le*Le+De*De);Le/=Ue,De/=Ue,Le*=Ee,De*=Ee;const We=V.alignment,je=(1-We)*2,ze=We*2;K||(V.cap===LINE_CAP.ROUND?_e+=round(Te-Le*(je-ze)*.5,we-De*(je-ze)*.5,Te-Le*je,we-De*je,Te+Le*ze,we+De*ze,xe,!0)+2:V.cap===LINE_CAP.SQUARE&&(_e+=square(Te,we,Le,De,je,ze,!0,xe))),xe.push(Te-Le*je,we-De*je,Te+Le*ze,we+De*ze);for(let Ne=1;Ne<Z-1;++Ne){Te=B[(Ne-1)*2],we=B[(Ne-1)*2+1],Pe=B[Ne*2],Ie=B[Ne*2+1],Fe=B[(Ne+1)*2],Oe=B[(Ne+1)*2+1],Le=-(we-Ie),De=Te-Pe,Ue=Math.sqrt(Le*Le+De*De),Le/=Ue,De/=Ue,Le*=Ee,De*=Ee,Ve=-(Ie-Oe),Xe=Pe-Fe,Ue=Math.sqrt(Ve*Ve+Xe*Xe),Ve/=Ue,Xe/=Ue,Ve*=Ee,Xe*=Ee;const Me=Pe-Te,ke=we-Ie,Ge=Pe-Fe,Be=Oe-Ie,qe=Me*Ge+ke*Be,Ke=ke*Ge-Be*Me,Ye=Ke<0;if(Math.abs(Ke)<.001*Math.abs(qe)){xe.push(Pe-Le*je,Ie-De*je,Pe+Le*ze,Ie+De*ze),qe>=0&&(V.join===LINE_JOIN.ROUND?_e+=round(Pe,Ie,Pe-Le*je,Ie-De*je,Pe-Ve*je,Ie-Xe*je,xe,!1)+4:_e+=2,xe.push(Pe-Ve*ze,Ie-Xe*ze,Pe+Ve*je,Ie+Xe*je));continue}const et=(-Le+Te)*(-De+Ie)-(-Le+Pe)*(-De+we),Qe=(-Ve+Fe)*(-Xe+Ie)-(-Ve+Pe)*(-Xe+Oe),it=(Me*Qe-Ge*et)/Ke,nt=(Be*et-ke*Qe)/Ke,ot=(it-Pe)*(it-Pe)+(nt-Ie)*(nt-Ie),Ze=Pe+(it-Pe)*je,Je=Ie+(nt-Ie)*je,st=Pe-(it-Pe)*ze,rt=Ie-(nt-Ie)*ze,tt=Math.min(Me*Me+ke*ke,Ge*Ge+Be*Be),at=Ye?je:ze,ut=tt+at*at*Ae,mt=ot<=ut;let pt=V.join;if(pt===LINE_JOIN.MITER&&ot/Ae>Re&&(pt=LINE_JOIN.BEVEL),mt)switch(pt){case LINE_JOIN.MITER:{xe.push(Ze,Je,st,rt);break}case LINE_JOIN.BEVEL:{Ye?xe.push(Ze,Je,Pe+Le*ze,Ie+De*ze,Ze,Je,Pe+Ve*ze,Ie+Xe*ze):xe.push(Pe-Le*je,Ie-De*je,st,rt,Pe-Ve*je,Ie-Xe*je,st,rt),_e+=2;break}case LINE_JOIN.ROUND:{Ye?(xe.push(Ze,Je,Pe+Le*ze,Ie+De*ze),_e+=round(Pe,Ie,Pe+Le*ze,Ie+De*ze,Pe+Ve*ze,Ie+Xe*ze,xe,!0)+4,xe.push(Ze,Je,Pe+Ve*ze,Ie+Xe*ze)):(xe.push(Pe-Le*je,Ie-De*je,st,rt),_e+=round(Pe,Ie,Pe-Le*je,Ie-De*je,Pe-Ve*je,Ie-Xe*je,xe,!1)+4,xe.push(Pe-Ve*je,Ie-Xe*je,st,rt));break}}else{switch(xe.push(Pe-Le*je,Ie-De*je,Pe+Le*ze,Ie+De*ze),pt){case LINE_JOIN.MITER:{Ye?xe.push(st,rt,st,rt):xe.push(Ze,Je,Ze,Je),_e+=2;break}case LINE_JOIN.ROUND:{Ye?_e+=round(Pe,Ie,Pe+Le*ze,Ie+De*ze,Pe+Ve*ze,Ie+Xe*ze,xe,!0)+2:_e+=round(Pe,Ie,Pe-Le*je,Ie-De*je,Pe-Ve*je,Ie-Xe*je,xe,!1)+2;break}}xe.push(Pe-Ve*je,Ie-Xe*je,Pe+Ve*ze,Ie+Xe*ze),_e+=2}}Te=B[(Z-2)*2],we=B[(Z-2)*2+1],Pe=B[(Z-1)*2],Ie=B[(Z-1)*2+1],Le=-(we-Ie),De=Te-Pe,Ue=Math.sqrt(Le*Le+De*De),Le/=Ue,De/=Ue,Le*=Ee,De*=Ee,xe.push(Pe-Le*je,Ie-De*je,Pe+Le*ze,Ie+De*ze),K||(V.cap===LINE_CAP.ROUND?_e+=round(Pe-Le*(je-ze)*.5,Ie-De*(je-ze)*.5,Pe-Le*je,Ie-De*je,Pe+Le*ze,Ie+De*ze,xe,!1)+2:V.cap===LINE_CAP.SQUARE&&(_e+=square(Pe,Ie,Le,De,je,ze,!1,xe)));const He=E.indices,$e=curves.epsilon*curves.epsilon;for(let Ne=Se;Ne<_e+Se-2;++Ne)Te=xe[Ne*2],we=xe[Ne*2+1],Pe=xe[(Ne+1)*2],Ie=xe[(Ne+1)*2+1],Fe=xe[(Ne+2)*2],Oe=xe[(Ne+2)*2+1],!(Math.abs(Te*(Ie-Oe)+Pe*(Oe-we)+Fe*(we-Ie))<$e)&&He.push(Ne,Ne+1,Ne+2)}function buildNativeLine(C,E){let I=0;const B=C.shape,U=C.points||B.points,V=B.type!==SHAPES.POLY||B.closeStroke;if(U.length===0)return;const X=E.points,Y=E.indices,K=U.length/2,J=X.length/2;let xe=J;for(X.push(U[0],U[1]),I=1;I<K;I++)X.push(U[I*2],U[I*2+1]),Y.push(xe,xe+1),xe++;V&&Y.push(xe,J)}function buildLine(C,E){C.lineStyle.native?buildNativeLine(C,E):buildNonNativeLine(C,E)}class QuadraticUtils{static curveLength(E,I,B,U,V,X){const Y=E-2*B+V,K=I-2*U+X,J=2*B-2*E,xe=2*U-2*I,Z=4*(Y*Y+K*K),_e=4*(Y*J+K*xe),Se=J*J+xe*xe,Ee=2*Math.sqrt(Z+_e+Se),Ae=Math.sqrt(Z),Re=2*Z*Ae,Te=2*Math.sqrt(Se),we=_e/Ae;return(Re*Ee+Ae*_e*(Ee-Te)+(4*Se*Z-_e*_e)*Math.log((2*Ae+we+Ee)/(we+Te)))/(4*Re)}static curveTo(E,I,B,U,V){const X=V[V.length-2],Y=V[V.length-1],K=curves._segmentsCount(QuadraticUtils.curveLength(X,Y,E,I,B,U));let J=0,xe=0;for(let Z=1;Z<=K;++Z){const _e=Z/K;J=X+(E-X)*_e,xe=Y+(I-Y)*_e,V.push(J+(E+(B-E)*_e-J)*_e,xe+(I+(U-I)*_e-xe)*_e)}}}const FILL_COMMANDS={[SHAPES.POLY]:buildPoly,[SHAPES.CIRC]:buildCircle,[SHAPES.ELIP]:buildCircle,[SHAPES.RECT]:buildRectangle,[SHAPES.RREC]:buildRoundedRectangle},BATCH_POOL=[],DRAW_CALL_POOL=[];class Bounds{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null,this.updateID=-1}isEmpty(){return this.minX>this.maxX||this.minY>this.maxY}clear(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}getRectangle(E){return this.minX>this.maxX||this.minY>this.maxY?Rectangle.EMPTY:(E=E||new Rectangle(0,0,1,1),E.x=this.minX,E.y=this.minY,E.width=this.maxX-this.minX,E.height=this.maxY-this.minY,E)}addPoint(E){this.minX=Math.min(this.minX,E.x),this.maxX=Math.max(this.maxX,E.x),this.minY=Math.min(this.minY,E.y),this.maxY=Math.max(this.maxY,E.y)}addPointMatrix(E,I){const{a:B,b:U,c:V,d:X,tx:Y,ty:K}=E,J=B*I.x+V*I.y+Y,xe=U*I.x+X*I.y+K;this.minX=Math.min(this.minX,J),this.maxX=Math.max(this.maxX,J),this.minY=Math.min(this.minY,xe),this.maxY=Math.max(this.maxY,xe)}addQuad(E){let I=this.minX,B=this.minY,U=this.maxX,V=this.maxY,X=E[0],Y=E[1];I=X<I?X:I,B=Y<B?Y:B,U=X>U?X:U,V=Y>V?Y:V,X=E[2],Y=E[3],I=X<I?X:I,B=Y<B?Y:B,U=X>U?X:U,V=Y>V?Y:V,X=E[4],Y=E[5],I=X<I?X:I,B=Y<B?Y:B,U=X>U?X:U,V=Y>V?Y:V,X=E[6],Y=E[7],I=X<I?X:I,B=Y<B?Y:B,U=X>U?X:U,V=Y>V?Y:V,this.minX=I,this.minY=B,this.maxX=U,this.maxY=V}addFrame(E,I,B,U,V){this.addFrameMatrix(E.worldTransform,I,B,U,V)}addFrameMatrix(E,I,B,U,V){const X=E.a,Y=E.b,K=E.c,J=E.d,xe=E.tx,Z=E.ty;let _e=this.minX,Se=this.minY,Ee=this.maxX,Ae=this.maxY,Re=X*I+K*B+xe,Te=Y*I+J*B+Z;_e=Re<_e?Re:_e,Se=Te<Se?Te:Se,Ee=Re>Ee?Re:Ee,Ae=Te>Ae?Te:Ae,Re=X*U+K*B+xe,Te=Y*U+J*B+Z,_e=Re<_e?Re:_e,Se=Te<Se?Te:Se,Ee=Re>Ee?Re:Ee,Ae=Te>Ae?Te:Ae,Re=X*I+K*V+xe,Te=Y*I+J*V+Z,_e=Re<_e?Re:_e,Se=Te<Se?Te:Se,Ee=Re>Ee?Re:Ee,Ae=Te>Ae?Te:Ae,Re=X*U+K*V+xe,Te=Y*U+J*V+Z,_e=Re<_e?Re:_e,Se=Te<Se?Te:Se,Ee=Re>Ee?Re:Ee,Ae=Te>Ae?Te:Ae,this.minX=_e,this.minY=Se,this.maxX=Ee,this.maxY=Ae}addVertexData(E,I,B){let U=this.minX,V=this.minY,X=this.maxX,Y=this.maxY;for(let K=I;K<B;K+=2){const J=E[K],xe=E[K+1];U=J<U?J:U,V=xe<V?xe:V,X=J>X?J:X,Y=xe>Y?xe:Y}this.minX=U,this.minY=V,this.maxX=X,this.maxY=Y}addVertices(E,I,B,U){this.addVerticesMatrix(E.worldTransform,I,B,U)}addVerticesMatrix(E,I,B,U,V=0,X=V){const Y=E.a,K=E.b,J=E.c,xe=E.d,Z=E.tx,_e=E.ty;let Se=this.minX,Ee=this.minY,Ae=this.maxX,Re=this.maxY;for(let Te=B;Te<U;Te+=2){const we=I[Te],Pe=I[Te+1],Ie=Y*we+J*Pe+Z,Fe=xe*Pe+K*we+_e;Se=Math.min(Se,Ie-V),Ae=Math.max(Ae,Ie+V),Ee=Math.min(Ee,Fe-X),Re=Math.max(Re,Fe+X)}this.minX=Se,this.minY=Ee,this.maxX=Ae,this.maxY=Re}addBounds(E){const I=this.minX,B=this.minY,U=this.maxX,V=this.maxY;this.minX=E.minX<I?E.minX:I,this.minY=E.minY<B?E.minY:B,this.maxX=E.maxX>U?E.maxX:U,this.maxY=E.maxY>V?E.maxY:V}addBoundsMask(E,I){const B=E.minX>I.minX?E.minX:I.minX,U=E.minY>I.minY?E.minY:I.minY,V=E.maxX<I.maxX?E.maxX:I.maxX,X=E.maxY<I.maxY?E.maxY:I.maxY;if(B<=V&&U<=X){const Y=this.minX,K=this.minY,J=this.maxX,xe=this.maxY;this.minX=B<Y?B:Y,this.minY=U<K?U:K,this.maxX=V>J?V:J,this.maxY=X>xe?X:xe}}addBoundsMatrix(E,I){this.addFrameMatrix(I,E.minX,E.minY,E.maxX,E.maxY)}addBoundsArea(E,I){const B=E.minX>I.x?E.minX:I.x,U=E.minY>I.y?E.minY:I.y,V=E.maxX<I.x+I.width?E.maxX:I.x+I.width,X=E.maxY<I.y+I.height?E.maxY:I.y+I.height;if(B<=V&&U<=X){const Y=this.minX,K=this.minY,J=this.maxX,xe=this.maxY;this.minX=B<Y?B:Y,this.minY=U<K?U:K,this.maxX=V>J?V:J,this.maxY=X>xe?X:xe}}pad(E=0,I=E){this.isEmpty()||(this.minX-=E,this.maxX+=E,this.minY-=I,this.maxY+=I)}addFramePad(E,I,B,U,V,X){E-=V,I-=X,B+=V,U+=X,this.minX=this.minX<E?this.minX:E,this.maxX=this.maxX>B?this.maxX:B,this.minY=this.minY<I?this.minY:I,this.maxY=this.maxY>U?this.maxY:U}}class DisplayObject extends EventEmitter{constructor(){super(),this.tempDisplayObjectParent=null,this.transform=new Transform,this.alpha=1,this.visible=!0,this.renderable=!0,this.cullable=!1,this.cullArea=null,this.parent=null,this.worldAlpha=1,this._lastSortedIndex=0,this._zIndex=0,this.filterArea=null,this.filters=null,this._enabledFilters=null,this._bounds=new Bounds,this._localBounds=null,this._boundsID=0,this._boundsRect=null,this._localBoundsRect=null,this._mask=null,this._maskRefCount=0,this._destroyed=!1,this.isSprite=!1,this.isMask=!1}static mixin(E){const I=Object.keys(E);for(let B=0;B<I.length;++B){const U=I[B];Object.defineProperty(DisplayObject.prototype,U,Object.getOwnPropertyDescriptor(E,U))}}get destroyed(){return this._destroyed}_recursivePostUpdateTransform(){this.parent?(this.parent._recursivePostUpdateTransform(),this.transform.updateTransform(this.parent.transform)):this.transform.updateTransform(this._tempDisplayObjectParent.transform)}updateTransform(){this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha}getBounds(E,I){return E||(this.parent?(this._recursivePostUpdateTransform(),this.updateTransform()):(this.parent=this._tempDisplayObjectParent,this.updateTransform(),this.parent=null)),this._bounds.updateID!==this._boundsID&&(this.calculateBounds(),this._bounds.updateID=this._boundsID),I||(this._boundsRect||(this._boundsRect=new Rectangle),I=this._boundsRect),this._bounds.getRectangle(I)}getLocalBounds(E){E||(this._localBoundsRect||(this._localBoundsRect=new Rectangle),E=this._localBoundsRect),this._localBounds||(this._localBounds=new Bounds);const I=this.transform,B=this.parent;this.parent=null,this.transform=this._tempDisplayObjectParent.transform;const U=this._bounds,V=this._boundsID;this._bounds=this._localBounds;const X=this.getBounds(!1,E);return this.parent=B,this.transform=I,this._bounds=U,this._bounds.updateID+=this._boundsID-V,X}toGlobal(E,I,B=!1){return B||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.apply(E,I)}toLocal(E,I,B,U){return I&&(E=I.toGlobal(E,B,U)),U||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.applyInverse(E,B)}setParent(E){if(!E||!E.addChild)throw new Error("setParent: Argument must be a Container");return E.addChild(this),E}removeFromParent(){var E;(E=this.parent)==null||E.removeChild(this)}setTransform(E=0,I=0,B=1,U=1,V=0,X=0,Y=0,K=0,J=0){return this.position.x=E,this.position.y=I,this.scale.x=B||1,this.scale.y=U||1,this.rotation=V,this.skew.x=X,this.skew.y=Y,this.pivot.x=K,this.pivot.y=J,this}destroy(E){this.removeFromParent(),this._destroyed=!0,this.transform=null,this.parent=null,this._bounds=null,this.mask=null,this.cullArea=null,this.filters=null,this.filterArea=null,this.hitArea=null,this.eventMode="auto",this.interactiveChildren=!1,this.emit("destroyed"),this.removeAllListeners()}get _tempDisplayObjectParent(){return this.tempDisplayObjectParent===null&&(this.tempDisplayObjectParent=new TemporaryDisplayObject),this.tempDisplayObjectParent}enableTempParent(){const E=this.parent;return this.parent=this._tempDisplayObjectParent,E}disableTempParent(E){this.parent=E}get x(){return this.position.x}set x(E){this.transform.position.x=E}get y(){return this.position.y}set y(E){this.transform.position.y=E}get worldTransform(){return this.transform.worldTransform}get localTransform(){return this.transform.localTransform}get position(){return this.transform.position}set position(E){this.transform.position.copyFrom(E)}get scale(){return this.transform.scale}set scale(E){this.transform.scale.copyFrom(E)}get pivot(){return this.transform.pivot}set pivot(E){this.transform.pivot.copyFrom(E)}get skew(){return this.transform.skew}set skew(E){this.transform.skew.copyFrom(E)}get rotation(){return this.transform.rotation}set rotation(E){this.transform.rotation=E}get angle(){return this.transform.rotation*RAD_TO_DEG}set angle(E){this.transform.rotation=E*DEG_TO_RAD}get zIndex(){return this._zIndex}set zIndex(E){this._zIndex=E,this.parent&&(this.parent.sortDirty=!0)}get worldVisible(){let E=this;do{if(!E.visible)return!1;E=E.parent}while(E);return!0}get mask(){return this._mask}set mask(E){if(this._mask!==E){if(this._mask){const I=this._mask.isMaskData?this._mask.maskObject:this._mask;I&&(I._maskRefCount--,I._maskRefCount===0&&(I.renderable=!0,I.isMask=!1))}if(this._mask=E,this._mask){const I=this._mask.isMaskData?this._mask.maskObject:this._mask;I&&(I._maskRefCount===0&&(I.renderable=!1,I.isMask=!0),I._maskRefCount++)}}}}class TemporaryDisplayObject extends DisplayObject{constructor(){super(...arguments),this.sortDirty=null}}DisplayObject.prototype.displayObjectUpdateTransform=DisplayObject.prototype.updateTransform;const tempMatrix=new Matrix$2;function sortChildren(C,E){return C.zIndex===E.zIndex?C._lastSortedIndex-E._lastSortedIndex:C.zIndex-E.zIndex}const _Container=class extends DisplayObject{constructor(){super(),this.children=[],this.sortableChildren=_Container.defaultSortableChildren,this.sortDirty=!1}onChildrenChange(C){}addChild(...C){if(C.length>1)for(let E=0;E<C.length;E++)this.addChild(C[E]);else{const E=C[0];E.parent&&E.parent.removeChild(E),E.parent=this,this.sortDirty=!0,E.transform._parentID=-1,this.children.push(E),this._boundsID++,this.onChildrenChange(this.children.length-1),this.emit("childAdded",E,this,this.children.length-1),E.emit("added",this)}return C[0]}addChildAt(C,E){if(E<0||E>this.children.length)throw new Error(`${C}addChildAt: The index ${E} supplied is out of bounds ${this.children.length}`);return C.parent&&C.parent.removeChild(C),C.parent=this,this.sortDirty=!0,C.transform._parentID=-1,this.children.splice(E,0,C),this._boundsID++,this.onChildrenChange(E),C.emit("added",this),this.emit("childAdded",C,this,E),C}swapChildren(C,E){if(C===E)return;const I=this.getChildIndex(C),B=this.getChildIndex(E);this.children[I]=E,this.children[B]=C,this.onChildrenChange(I<B?I:B)}getChildIndex(C){const E=this.children.indexOf(C);if(E===-1)throw new Error("The supplied DisplayObject must be a child of the caller");return E}setChildIndex(C,E){if(E<0||E>=this.children.length)throw new Error(`The index ${E} supplied is out of bounds ${this.children.length}`);const I=this.getChildIndex(C);removeItems(this.children,I,1),this.children.splice(E,0,C),this.onChildrenChange(E)}getChildAt(C){if(C<0||C>=this.children.length)throw new Error(`getChildAt: Index (${C}) does not exist.`);return this.children[C]}removeChild(...C){if(C.length>1)for(let E=0;E<C.length;E++)this.removeChild(C[E]);else{const E=C[0],I=this.children.indexOf(E);if(I===-1)return null;E.parent=null,E.transform._parentID=-1,removeItems(this.children,I,1),this._boundsID++,this.onChildrenChange(I),E.emit("removed",this),this.emit("childRemoved",E,this,I)}return C[0]}removeChildAt(C){const E=this.getChildAt(C);return E.parent=null,E.transform._parentID=-1,removeItems(this.children,C,1),this._boundsID++,this.onChildrenChange(C),E.emit("removed",this),this.emit("childRemoved",E,this,C),E}removeChildren(C=0,E=this.children.length){const I=C,B=E,U=B-I;let V;if(U>0&&U<=B){V=this.children.splice(I,U);for(let X=0;X<V.length;++X)V[X].parent=null,V[X].transform&&(V[X].transform._parentID=-1);this._boundsID++,this.onChildrenChange(C);for(let X=0;X<V.length;++X)V[X].emit("removed",this),this.emit("childRemoved",V[X],this,X);return V}else if(U===0&&this.children.length===0)return[];throw new RangeError("removeChildren: numeric values are outside the acceptable range.")}sortChildren(){let C=!1;for(let E=0,I=this.children.length;E<I;++E){const B=this.children[E];B._lastSortedIndex=E,!C&&B.zIndex!==0&&(C=!0)}C&&this.children.length>1&&this.children.sort(sortChildren),this.sortDirty=!1}updateTransform(){this.sortableChildren&&this.sortDirty&&this.sortChildren(),this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(let C=0,E=this.children.length;C<E;++C){const I=this.children[C];I.visible&&I.updateTransform()}}calculateBounds(){this._bounds.clear(),this._calculateBounds();for(let C=0;C<this.children.length;C++){const E=this.children[C];if(!(!E.visible||!E.renderable))if(E.calculateBounds(),E._mask){const I=E._mask.isMaskData?E._mask.maskObject:E._mask;I?(I.calculateBounds(),this._bounds.addBoundsMask(E._bounds,I._bounds)):this._bounds.addBounds(E._bounds)}else E.filterArea?this._bounds.addBoundsArea(E._bounds,E.filterArea):this._bounds.addBounds(E._bounds)}this._bounds.updateID=this._boundsID}getLocalBounds(C,E=!1){const I=super.getLocalBounds(C);if(!E)for(let B=0,U=this.children.length;B<U;++B){const V=this.children[B];V.visible&&V.updateTransform()}return I}_calculateBounds(){}_renderWithCulling(C){const E=C.renderTexture.sourceFrame;if(!(E.width>0&&E.height>0))return;let I,B;this.cullArea?(I=this.cullArea,B=this.worldTransform):this._render!==_Container.prototype._render&&(I=this.getBounds(!0));const U=C.projection.transform;if(U&&(B?(B=tempMatrix.copyFrom(B),B.prepend(U)):B=U),I&&E.intersects(I,B))this._render(C);else if(this.cullArea)return;for(let V=0,X=this.children.length;V<X;++V){const Y=this.children[V],K=Y.cullable;Y.cullable=K||!this.cullArea,Y.render(C),Y.cullable=K}}render(C){var E;if(!(!this.visible||this.worldAlpha<=0||!this.renderable))if(this._mask||(E=this.filters)!=null&&E.length)this.renderAdvanced(C);else if(this.cullable)this._renderWithCulling(C);else{this._render(C);for(let I=0,B=this.children.length;I<B;++I)this.children[I].render(C)}}renderAdvanced(C){var U,V,X;const E=this.filters,I=this._mask;if(E){this._enabledFilters||(this._enabledFilters=[]),this._enabledFilters.length=0;for(let Y=0;Y<E.length;Y++)E[Y].enabled&&this._enabledFilters.push(E[Y])}const B=E&&((U=this._enabledFilters)==null?void 0:U.length)||I&&(!I.isMaskData||I.enabled&&(I.autoDetect||I.type!==MASK_TYPES.NONE));if(B&&C.batch.flush(),E&&((V=this._enabledFilters)!=null&&V.length)&&C.filter.push(this,this._enabledFilters),I&&C.mask.push(this,this._mask),this.cullable)this._renderWithCulling(C);else{this._render(C);for(let Y=0,K=this.children.length;Y<K;++Y)this.children[Y].render(C)}B&&C.batch.flush(),I&&C.mask.pop(this),E&&((X=this._enabledFilters)!=null&&X.length)&&C.filter.pop()}_render(C){}destroy(C){super.destroy(),this.sortDirty=!1;const E=typeof C=="boolean"?C:C==null?void 0:C.children,I=this.removeChildren(0,this.children.length);if(E)for(let B=0;B<I.length;++B)I[B].destroy(C)}get width(){return this.scale.x*this.getLocalBounds().width}set width(C){const E=this.getLocalBounds().width;E!==0?this.scale.x=C/E:this.scale.x=1,this._width=C}get height(){return this.scale.y*this.getLocalBounds().height}set height(C){const E=this.getLocalBounds().height;E!==0?this.scale.y=C/E:this.scale.y=1,this._height=C}};let Container=_Container;Container.defaultSortableChildren=!1,Container.prototype.containerUpdateTransform=Container.prototype.updateTransform,Object.defineProperties(settings,{SORTABLE_CHILDREN:{get(){return Container.defaultSortableChildren},set(C){deprecation("7.1.0","settings.SORTABLE_CHILDREN is deprecated, use Container.defaultSortableChildren"),Container.defaultSortableChildren=C}}});class GraphicsData{constructor(E,I=null,B=null,U=null){this.points=[],this.holes=[],this.shape=E,this.lineStyle=B,this.fillStyle=I,this.matrix=U,this.type=E.type}clone(){return new GraphicsData(this.shape,this.fillStyle,this.lineStyle,this.matrix)}destroy(){this.shape=null,this.holes.length=0,this.holes=null,this.points.length=0,this.points=null,this.lineStyle=null,this.fillStyle=null}}const tmpPoint=new Point,_GraphicsGeometry=class extends BatchGeometry{constructor(){super(),this.closePointEps=1e-4,this.boundsPadding=0,this.uvsFloat32=null,this.indicesUint16=null,this.batchable=!1,this.points=[],this.colors=[],this.uvs=[],this.indices=[],this.textureIds=[],this.graphicsData=[],this.drawCalls=[],this.batchDirty=-1,this.batches=[],this.dirty=0,this.cacheDirty=-1,this.clearDirty=0,this.shapeIndex=0,this._bounds=new Bounds,this.boundsDirty=-1}get bounds(){return this.updateBatches(),this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.calculateBounds()),this._bounds}invalidate(){this.boundsDirty=-1,this.dirty++,this.batchDirty++,this.shapeIndex=0,this.points.length=0,this.colors.length=0,this.uvs.length=0,this.indices.length=0,this.textureIds.length=0;for(let C=0;C<this.drawCalls.length;C++)this.drawCalls[C].texArray.clear(),DRAW_CALL_POOL.push(this.drawCalls[C]);this.drawCalls.length=0;for(let C=0;C<this.batches.length;C++){const E=this.batches[C];E.reset(),BATCH_POOL.push(E)}this.batches.length=0}clear(){return this.graphicsData.length>0&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this}drawShape(C,E=null,I=null,B=null){const U=new GraphicsData(C,E,I,B);return this.graphicsData.push(U),this.dirty++,this}drawHole(C,E=null){if(!this.graphicsData.length)return null;const I=new GraphicsData(C,null,null,E),B=this.graphicsData[this.graphicsData.length-1];return I.lineStyle=B.lineStyle,B.holes.push(I),this.dirty++,this}destroy(){super.destroy();for(let C=0;C<this.graphicsData.length;++C)this.graphicsData[C].destroy();this.points.length=0,this.points=null,this.colors.length=0,this.colors=null,this.uvs.length=0,this.uvs=null,this.indices.length=0,this.indices=null,this.indexBuffer.destroy(),this.indexBuffer=null,this.graphicsData.length=0,this.graphicsData=null,this.drawCalls.length=0,this.drawCalls=null,this.batches.length=0,this.batches=null,this._bounds=null}containsPoint(C){const E=this.graphicsData;for(let I=0;I<E.length;++I){const B=E[I];if(B.fillStyle.visible&&B.shape&&(B.matrix?B.matrix.applyInverse(C,tmpPoint):tmpPoint.copyFrom(C),B.shape.contains(tmpPoint.x,tmpPoint.y))){let U=!1;if(B.holes){for(let V=0;V<B.holes.length;V++)if(B.holes[V].shape.contains(tmpPoint.x,tmpPoint.y)){U=!0;break}}if(!U)return!0}}return!1}updateBatches(){if(!this.graphicsData.length){this.batchable=!0;return}if(!this.validateBatching())return;this.cacheDirty=this.dirty;const C=this.uvs,E=this.graphicsData;let I=null,B=null;this.batches.length>0&&(I=this.batches[this.batches.length-1],B=I.style);for(let Y=this.shapeIndex;Y<E.length;Y++){this.shapeIndex++;const K=E[Y],J=K.fillStyle,xe=K.lineStyle;FILL_COMMANDS[K.type].build(K),K.matrix&&this.transformPoints(K.points,K.matrix),(J.visible||xe.visible)&&this.processHoles(K.holes);for(let _e=0;_e<2;_e++){const Se=_e===0?J:xe;if(!Se.visible)continue;const Ee=Se.texture.baseTexture,Ae=this.indices.length,Re=this.points.length/2;Ee.wrapMode=WRAP_MODES.REPEAT,_e===0?this.processFill(K):this.processLine(K);const Te=this.points.length/2-Re;Te!==0&&(I&&!this._compareStyles(B,Se)&&(I.end(Ae,Re),I=null),I||(I=BATCH_POOL.pop()||new BatchPart,I.begin(Se,Ae,Re),this.batches.push(I),B=Se),this.addUvs(this.points,C,Se.texture,Re,Te,Se.matrix))}}const U=this.indices.length,V=this.points.length/2;if(I&&I.end(U,V),this.batches.length===0){this.batchable=!0;return}const X=V>65535;this.indicesUint16&&this.indices.length===this.indicesUint16.length&&X===this.indicesUint16.BYTES_PER_ELEMENT>2?this.indicesUint16.set(this.indices):this.indicesUint16=X?new Uint32Array(this.indices):new Uint16Array(this.indices),this.batchable=this.isBatchable(),this.batchable?this.packBatches():this.buildDrawCalls()}_compareStyles(C,E){return!(!C||!E||C.texture.baseTexture!==E.texture.baseTexture||C.color+C.alpha!==E.color+E.alpha||!!C.native!=!!E.native)}validateBatching(){if(this.dirty===this.cacheDirty||!this.graphicsData.length)return!1;for(let C=0,E=this.graphicsData.length;C<E;C++){const I=this.graphicsData[C],B=I.fillStyle,U=I.lineStyle;if(B&&!B.texture.baseTexture.valid||U&&!U.texture.baseTexture.valid)return!1}return!0}packBatches(){this.batchDirty++,this.uvsFloat32=new Float32Array(this.uvs);const C=this.batches;for(let E=0,I=C.length;E<I;E++){const B=C[E];for(let U=0;U<B.size;U++){const V=B.start+U;this.indicesUint16[V]=this.indicesUint16[V]-B.attribStart}}}isBatchable(){if(this.points.length>65535*2)return!1;const C=this.batches;for(let E=0;E<C.length;E++)if(C[E].style.native)return!1;return this.points.length<_GraphicsGeometry.BATCHABLE_SIZE*2}buildDrawCalls(){let C=++BaseTexture._globalBatch;for(let xe=0;xe<this.drawCalls.length;xe++)this.drawCalls[xe].texArray.clear(),DRAW_CALL_POOL.push(this.drawCalls[xe]);this.drawCalls.length=0;const E=this.colors,I=this.textureIds;let B=DRAW_CALL_POOL.pop();B||(B=new BatchDrawCall,B.texArray=new BatchTextureArray),B.texArray.count=0,B.start=0,B.size=0,B.type=DRAW_MODES.TRIANGLES;let U=0,V=null,X=0,Y=!1,K=DRAW_MODES.TRIANGLES,J=0;this.drawCalls.push(B);for(let xe=0;xe<this.batches.length;xe++){const Z=this.batches[xe],_e=8,Se=Z.style,Ee=Se.texture.baseTexture;Y!==!!Se.native&&(Y=!!Se.native,K=Y?DRAW_MODES.LINES:DRAW_MODES.TRIANGLES,V=null,U=_e,C++),V!==Ee&&(V=Ee,Ee._batchEnabled!==C&&(U===_e&&(C++,U=0,B.size>0&&(B=DRAW_CALL_POOL.pop(),B||(B=new BatchDrawCall,B.texArray=new BatchTextureArray),this.drawCalls.push(B)),B.start=J,B.size=0,B.texArray.count=0,B.type=K),Ee.touched=1,Ee._batchEnabled=C,Ee._batchLocation=U,Ee.wrapMode=WRAP_MODES.REPEAT,B.texArray.elements[B.texArray.count++]=Ee,U++)),B.size+=Z.size,J+=Z.size,X=Ee._batchLocation,this.addColors(E,Se.color,Se.alpha,Z.attribSize,Z.attribStart),this.addTextureIds(I,X,Z.attribSize,Z.attribStart)}BaseTexture._globalBatch=C,this.packAttributes()}packAttributes(){const C=this.points,E=this.uvs,I=this.colors,B=this.textureIds,U=new ArrayBuffer(C.length*3*4),V=new Float32Array(U),X=new Uint32Array(U);let Y=0;for(let K=0;K<C.length/2;K++)V[Y++]=C[K*2],V[Y++]=C[K*2+1],V[Y++]=E[K*2],V[Y++]=E[K*2+1],X[Y++]=I[K],V[Y++]=B[K];this._buffer.update(U),this._indexBuffer.update(this.indicesUint16)}processFill(C){C.holes.length?buildPoly.triangulate(C,this):FILL_COMMANDS[C.type].triangulate(C,this)}processLine(C){buildLine(C,this);for(let E=0;E<C.holes.length;E++)buildLine(C.holes[E],this)}processHoles(C){for(let E=0;E<C.length;E++){const I=C[E];FILL_COMMANDS[I.type].build(I),I.matrix&&this.transformPoints(I.points,I.matrix)}}calculateBounds(){const C=this._bounds;C.clear(),C.addVertexData(this.points,0,this.points.length),C.pad(this.boundsPadding,this.boundsPadding)}transformPoints(C,E){for(let I=0;I<C.length/2;I++){const B=C[I*2],U=C[I*2+1];C[I*2]=E.a*B+E.c*U+E.tx,C[I*2+1]=E.b*B+E.d*U+E.ty}}addColors(C,E,I,B,U=0){const V=Color.shared.setValue(E).toLittleEndianNumber(),X=Color.shared.setValue(V).toPremultiplied(I);C.length=Math.max(C.length,U+B);for(let Y=0;Y<B;Y++)C[U+Y]=X}addTextureIds(C,E,I,B=0){C.length=Math.max(C.length,B+I);for(let U=0;U<I;U++)C[B+U]=E}addUvs(C,E,I,B,U,V=null){let X=0;const Y=E.length,K=I.frame;for(;X<U;){let xe=C[(B+X)*2],Z=C[(B+X)*2+1];if(V){const _e=V.a*xe+V.c*Z+V.tx;Z=V.b*xe+V.d*Z+V.ty,xe=_e}X++,E.push(xe/K.width,Z/K.height)}const J=I.baseTexture;(K.width<J.width||K.height<J.height)&&this.adjustUvs(E,I,Y,U)}adjustUvs(C,E,I,B){const U=E.baseTexture,V=1e-6,X=I+B*2,Y=E.frame,K=Y.width/U.width,J=Y.height/U.height;let xe=Y.x/Y.width,Z=Y.y/Y.height,_e=Math.floor(C[I]+V),Se=Math.floor(C[I+1]+V);for(let Ee=I+2;Ee<X;Ee+=2)_e=Math.min(_e,Math.floor(C[Ee]+V)),Se=Math.min(Se,Math.floor(C[Ee+1]+V));xe-=_e,Z-=Se;for(let Ee=I;Ee<X;Ee+=2)C[Ee]=(C[Ee]+xe)*K,C[Ee+1]=(C[Ee+1]+Z)*J}};let GraphicsGeometry=_GraphicsGeometry;GraphicsGeometry.BATCHABLE_SIZE=100;class FillStyle{constructor(){this.color=16777215,this.alpha=1,this.texture=Texture.WHITE,this.matrix=null,this.visible=!1,this.reset()}clone(){const E=new FillStyle;return E.color=this.color,E.alpha=this.alpha,E.texture=this.texture,E.matrix=this.matrix,E.visible=this.visible,E}reset(){this.color=16777215,this.alpha=1,this.texture=Texture.WHITE,this.matrix=null,this.visible=!1}destroy(){this.texture=null,this.matrix=null}}class LineStyle extends FillStyle{constructor(){super(...arguments),this.width=0,this.alignment=.5,this.native=!1,this.cap=LINE_CAP.BUTT,this.join=LINE_JOIN.MITER,this.miterLimit=10}clone(){const E=new LineStyle;return E.color=this.color,E.alpha=this.alpha,E.texture=this.texture,E.matrix=this.matrix,E.visible=this.visible,E.width=this.width,E.alignment=this.alignment,E.native=this.native,E.cap=this.cap,E.join=this.join,E.miterLimit=this.miterLimit,E}reset(){super.reset(),this.color=0,this.alignment=.5,this.width=0,this.native=!1}}const DEFAULT_SHADERS={},_Graphics=class extends Container{constructor(C=null){super(),this.shader=null,this.pluginName="batch",this.currentPath=null,this.batches=[],this.batchTint=-1,this.batchDirty=-1,this.vertexData=null,this._fillStyle=new FillStyle,this._lineStyle=new LineStyle,this._matrix=null,this._holeMode=!1,this.state=State$1.for2d(),this._geometry=C||new GraphicsGeometry,this._geometry.refCount++,this._transformID=-1,this._tintColor=new Color(16777215),this.blendMode=BLEND_MODES.NORMAL}get geometry(){return this._geometry}clone(){return this.finishPoly(),new _Graphics(this._geometry)}set blendMode(C){this.state.blendMode=C}get blendMode(){return this.state.blendMode}get tint(){return this._tintColor.value}set tint(C){this._tintColor.setValue(C)}get fill(){return this._fillStyle}get line(){return this._lineStyle}lineStyle(C=null,E=0,I,B=.5,U=!1){return typeof C=="number"&&(C={width:C,color:E,alpha:I,alignment:B,native:U}),this.lineTextureStyle(C)}lineTextureStyle(C){const E={width:0,texture:Texture.WHITE,color:C!=null&&C.texture?16777215:0,matrix:null,alignment:.5,native:!1,cap:LINE_CAP.BUTT,join:LINE_JOIN.MITER,miterLimit:10};C=Object.assign(E,C),this.normalizeColor(C),this.currentPath&&this.startPoly();const I=C.width>0&&C.alpha>0;return I?(C.matrix&&(C.matrix=C.matrix.clone(),C.matrix.invert()),Object.assign(this._lineStyle,{visible:I},C)):this._lineStyle.reset(),this}startPoly(){if(this.currentPath){const C=this.currentPath.points,E=this.currentPath.points.length;E>2&&(this.drawShape(this.currentPath),this.currentPath=new Polygon,this.currentPath.closeStroke=!1,this.currentPath.points.push(C[E-2],C[E-1]))}else this.currentPath=new Polygon,this.currentPath.closeStroke=!1}finishPoly(){this.currentPath&&(this.currentPath.points.length>2?(this.drawShape(this.currentPath),this.currentPath=null):this.currentPath.points.length=0)}moveTo(C,E){return this.startPoly(),this.currentPath.points[0]=C,this.currentPath.points[1]=E,this}lineTo(C,E){this.currentPath||this.moveTo(0,0);const I=this.currentPath.points,B=I[I.length-2],U=I[I.length-1];return(B!==C||U!==E)&&I.push(C,E),this}_initCurve(C=0,E=0){this.currentPath?this.currentPath.points.length===0&&(this.currentPath.points=[C,E]):this.moveTo(C,E)}quadraticCurveTo(C,E,I,B){this._initCurve();const U=this.currentPath.points;return U.length===0&&this.moveTo(0,0),QuadraticUtils.curveTo(C,E,I,B,U),this}bezierCurveTo(C,E,I,B,U,V){return this._initCurve(),BezierUtils.curveTo(C,E,I,B,U,V,this.currentPath.points),this}arcTo(C,E,I,B,U){this._initCurve(C,E);const V=this.currentPath.points,X=ArcUtils.curveTo(C,E,I,B,U,V);if(X){const{cx:Y,cy:K,radius:J,startAngle:xe,endAngle:Z,anticlockwise:_e}=X;this.arc(Y,K,J,xe,Z,_e)}return this}arc(C,E,I,B,U,V=!1){if(B===U)return this;if(!V&&U<=B?U+=PI_2:V&&B<=U&&(B+=PI_2),U-B===0)return this;const Y=C+Math.cos(B)*I,K=E+Math.sin(B)*I,J=this._geometry.closePointEps;let xe=this.currentPath?this.currentPath.points:null;if(xe){const Z=Math.abs(xe[xe.length-2]-Y),_e=Math.abs(xe[xe.length-1]-K);Z<J&&_e<J||xe.push(Y,K)}else this.moveTo(Y,K),xe=this.currentPath.points;return ArcUtils.arc(Y,K,C,E,I,B,U,V,xe),this}beginFill(C=0,E){return this.beginTextureFill({texture:Texture.WHITE,color:C,alpha:E})}normalizeColor(C){const E=Color.shared.setValue(C.color??0);C.color=E.toNumber(),C.alpha??(C.alpha=E.alpha)}beginTextureFill(C){const E={texture:Texture.WHITE,color:16777215,matrix:null};C=Object.assign(E,C),this.normalizeColor(C),this.currentPath&&this.startPoly();const I=C.alpha>0;return I?(C.matrix&&(C.matrix=C.matrix.clone(),C.matrix.invert()),Object.assign(this._fillStyle,{visible:I},C)):this._fillStyle.reset(),this}endFill(){return this.finishPoly(),this._fillStyle.reset(),this}drawRect(C,E,I,B){return this.drawShape(new Rectangle(C,E,I,B))}drawRoundedRect(C,E,I,B,U){return this.drawShape(new RoundedRectangle(C,E,I,B,U))}drawCircle(C,E,I){return this.drawShape(new Circle(C,E,I))}drawEllipse(C,E,I,B){return this.drawShape(new Ellipse$1(C,E,I,B))}drawPolygon(...C){let E,I=!0;const B=C[0];B.points?(I=B.closeStroke,E=B.points):Array.isArray(C[0])?E=C[0]:E=C;const U=new Polygon(E);return U.closeStroke=I,this.drawShape(U),this}drawShape(C){return this._holeMode?this._geometry.drawHole(C,this._matrix):this._geometry.drawShape(C,this._fillStyle.clone(),this._lineStyle.clone(),this._matrix),this}clear(){return this._geometry.clear(),this._lineStyle.reset(),this._fillStyle.reset(),this._boundsID++,this._matrix=null,this._holeMode=!1,this.currentPath=null,this}isFastRect(){const C=this._geometry.graphicsData;return C.length===1&&C[0].shape.type===SHAPES.RECT&&!C[0].matrix&&!C[0].holes.length&&!(C[0].lineStyle.visible&&C[0].lineStyle.width)}_render(C){this.finishPoly();const E=this._geometry;E.updateBatches(),E.batchable?(this.batchDirty!==E.batchDirty&&this._populateBatches(),this._renderBatched(C)):(C.batch.flush(),this._renderDirect(C))}_populateBatches(){const C=this._geometry,E=this.blendMode,I=C.batches.length;this.batchTint=-1,this._transformID=-1,this.batchDirty=C.batchDirty,this.batches.length=I,this.vertexData=new Float32Array(C.points);for(let B=0;B<I;B++){const U=C.batches[B],V=U.style.color,X=new Float32Array(this.vertexData.buffer,U.attribStart*4*2,U.attribSize*2),Y=new Float32Array(C.uvsFloat32.buffer,U.attribStart*4*2,U.attribSize*2),K=new Uint16Array(C.indicesUint16.buffer,U.start*2,U.size),J={vertexData:X,blendMode:E,indices:K,uvs:Y,_batchRGB:Color.shared.setValue(V).toRgbArray(),_tintRGB:V,_texture:U.style.texture,alpha:U.style.alpha,worldAlpha:1};this.batches[B]=J}}_renderBatched(C){if(this.batches.length){C.batch.setObjectRenderer(C.plugins[this.pluginName]),this.calculateVertices(),this.calculateTints();for(let E=0,I=this.batches.length;E<I;E++){const B=this.batches[E];B.worldAlpha=this.worldAlpha*B.alpha,C.plugins[this.pluginName].render(B)}}}_renderDirect(C){const E=this._resolveDirectShader(C),I=this._geometry,B=this.worldAlpha,U=E.uniforms,V=I.drawCalls;U.translationMatrix=this.transform.worldTransform,Color.shared.setValue(this._tintColor).premultiply(B).toArray(U.tint),C.shader.bind(E),C.geometry.bind(I,E),C.state.set(this.state);for(let X=0,Y=V.length;X<Y;X++)this._renderDrawCallDirect(C,I.drawCalls[X])}_renderDrawCallDirect(C,E){const{texArray:I,type:B,size:U,start:V}=E,X=I.count;for(let Y=0;Y<X;Y++)C.texture.bind(I.elements[Y],Y);C.geometry.draw(B,U,V)}_resolveDirectShader(C){let E=this.shader;const I=this.pluginName;if(!E){if(!DEFAULT_SHADERS[I]){const{maxTextures:B}=C.plugins[I],U=new Int32Array(B);for(let Y=0;Y<B;Y++)U[Y]=Y;const V={tint:new Float32Array([1,1,1,1]),translationMatrix:new Matrix$2,default:UniformGroup.from({uSamplers:U},!0)},X=C.plugins[I]._shader.program;DEFAULT_SHADERS[I]=new Shader(X,V)}E=DEFAULT_SHADERS[I]}return E}_calculateBounds(){this.finishPoly();const C=this._geometry;if(!C.graphicsData.length)return;const{minX:E,minY:I,maxX:B,maxY:U}=C.bounds;this._bounds.addFrame(this.transform,E,I,B,U)}containsPoint(C){return this.worldTransform.applyInverse(C,_Graphics._TEMP_POINT),this._geometry.containsPoint(_Graphics._TEMP_POINT)}calculateTints(){if(this.batchTint!==this.tint){this.batchTint=this._tintColor.toNumber();for(let C=0;C<this.batches.length;C++){const E=this.batches[C];E._tintRGB=Color.shared.setValue(this._tintColor).multiply(E._batchRGB).toLittleEndianNumber()}}}calculateVertices(){const C=this.transform._worldID;if(this._transformID===C)return;this._transformID=C;const E=this.transform.worldTransform,I=E.a,B=E.b,U=E.c,V=E.d,X=E.tx,Y=E.ty,K=this._geometry.points,J=this.vertexData;let xe=0;for(let Z=0;Z<K.length;Z+=2){const _e=K[Z],Se=K[Z+1];J[xe++]=I*_e+U*Se+X,J[xe++]=V*Se+B*_e+Y}}closePath(){const C=this.currentPath;return C&&(C.closeStroke=!0,this.finishPoly()),this}setMatrix(C){return this._matrix=C,this}beginHole(){return this.finishPoly(),this._holeMode=!0,this}endHole(){return this.finishPoly(),this._holeMode=!1,this}destroy(C){this._geometry.refCount--,this._geometry.refCount===0&&this._geometry.dispose(),this._matrix=null,this.currentPath=null,this._lineStyle.destroy(),this._lineStyle=null,this._fillStyle.destroy(),this._fillStyle=null,this._geometry=null,this.shader=null,this.vertexData=null,this.batches.length=0,this.batches=null,super.destroy(C)}};let Graphics=_Graphics;Graphics.curves=curves,Graphics._TEMP_POINT=new Point;var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},parserExports={},parser={get exports(){return parserExports},set exports(C){parserExports=C}};/*!
1961
+ `);return I.uniforms.vignetteColor=[0,0,0,1],I.uniforms.vignetteSize=.7,I.uniforms.vignetteStrength=.6,{nightVisionFilter:C,vignetteFilter:I}},PixiImageSprite=React__namespace.forwardRef((C,E)=>{const I=React.useRef(null),B=React.useRef(null),{src:U,visible:V,disabled:X,transformation:{x:Y,y:K,width:J,height:xe,anchor:Z,colorCorrection:_e={},effect:Se},pointerdown:Ee}=C,{blurRadius:Ae=0,vignette:Re=0,noise:Te=0}=_e,{temperatureFilter:we,sharpnessFilter:Pe,hueFilter:Ie,blurFilter:Me,adjustmentFilter:Oe,vignetteFilter:Le,noiseFilter:$e}=withFiltersHook(_e),{nightVisionFilter:Ve}=withEffectsHooks();return React__namespace.useEffect(()=>()=>{console.log("PixiImageSprite unmounting")},[]),jsxRuntimeExports.jsx(AbstractContainer,{...C,ref:E,children:jsxRuntimeExports.jsx(react.Container,{ref:B,children:jsxRuntimeExports.jsx(react.Sprite,{image:U,width:J,height:xe,anchor:Z,ref:I,alpha:V?1:0,x:Y,y:K,...!X&&V&&{interactive:!0,pointerdown:Ee},filters:[we,Pe,Ie,Oe,...Ae>0?[Me]:[],...Se===Effects.NightVision?[Ve]:[],...Re>0?[Le]:[],...Te>0?[$e]:[]]})})})});PixiImageSprite.whyDidYouRender={logOnDifferentValues:!0,customName:"ImageSprite"};const buildCircle={build(C){const E=C.points;let I,B,U,V,X,Y;if(C.type===SHAPES.CIRC){const Ee=C.shape;I=Ee.x,B=Ee.y,X=Y=Ee.radius,U=V=0}else if(C.type===SHAPES.ELIP){const Ee=C.shape;I=Ee.x,B=Ee.y,X=Ee.width,Y=Ee.height,U=V=0}else{const Ee=C.shape,Ae=Ee.width/2,Re=Ee.height/2;I=Ee.x+Ae,B=Ee.y+Re,X=Y=Math.max(0,Math.min(Ee.radius,Math.min(Ae,Re))),U=Ae-X,V=Re-Y}if(!(X>=0&&Y>=0&&U>=0&&V>=0)){E.length=0;return}const K=Math.ceil(2.3*Math.sqrt(X+Y)),J=K*8+(U?4:0)+(V?4:0);if(E.length=J,J===0)return;if(K===0){E.length=8,E[0]=E[6]=I+U,E[1]=E[3]=B+V,E[2]=E[4]=I-U,E[5]=E[7]=B-V;return}let xe=0,Z=K*4+(U?2:0)+2,_e=Z,Se=J;{const Ee=U+X,Ae=V,Re=I+Ee,Te=I-Ee,we=B+Ae;if(E[xe++]=Re,E[xe++]=we,E[--Z]=we,E[--Z]=Te,V){const Pe=B-Ae;E[_e++]=Te,E[_e++]=Pe,E[--Se]=Pe,E[--Se]=Re}}for(let Ee=1;Ee<K;Ee++){const Ae=Math.PI/2*(Ee/K),Re=U+Math.cos(Ae)*X,Te=V+Math.sin(Ae)*Y,we=I+Re,Pe=I-Re,Ie=B+Te,Me=B-Te;E[xe++]=we,E[xe++]=Ie,E[--Z]=Ie,E[--Z]=Pe,E[_e++]=Pe,E[_e++]=Me,E[--Se]=Me,E[--Se]=we}{const Ee=U,Ae=V+Y,Re=I+Ee,Te=I-Ee,we=B+Ae,Pe=B-Ae;E[xe++]=Re,E[xe++]=we,E[--Se]=Pe,E[--Se]=Re,U&&(E[xe++]=Te,E[xe++]=we,E[--Se]=Pe,E[--Se]=Te)}},triangulate(C,E){const I=C.points,B=E.points,U=E.indices;if(I.length===0)return;let V=B.length/2;const X=V;let Y,K;if(C.type!==SHAPES.RREC){const xe=C.shape;Y=xe.x,K=xe.y}else{const xe=C.shape;Y=xe.x+xe.width/2,K=xe.y+xe.height/2}const J=C.matrix;B.push(C.matrix?J.a*Y+J.c*K+J.tx:Y,C.matrix?J.b*Y+J.d*K+J.ty:K),V++,B.push(I[0],I[1]);for(let xe=2;xe<I.length;xe+=2)B.push(I[xe],I[xe+1]),U.push(V++,X,V);U.push(X+1,X,V)}};function fixOrientation(C,E=!1){const I=C.length;if(I<6)return;let B=0;for(let U=0,V=C[I-2],X=C[I-1];U<I;U+=2){const Y=C[U],K=C[U+1];B+=(Y-V)*(K+X),V=Y,X=K}if(!E&&B>0||E&&B<=0){const U=I/2;for(let V=U+U%2;V<I;V+=2){const X=I-V-2,Y=I-V-1,K=V,J=V+1;[C[X],C[K]]=[C[K],C[X]],[C[Y],C[J]]=[C[J],C[Y]]}}}const buildPoly={build(C){C.points=C.shape.points.slice()},triangulate(C,E){let I=C.points;const B=C.holes,U=E.points,V=E.indices;if(I.length>=6){fixOrientation(I,!1);const X=[];for(let J=0;J<B.length;J++){const xe=B[J];fixOrientation(xe.points,!0),X.push(I.length/2),I=I.concat(xe.points)}const Y=earcut$1(I,X,2);if(!Y)return;const K=U.length/2;for(let J=0;J<Y.length;J+=3)V.push(Y[J]+K),V.push(Y[J+1]+K),V.push(Y[J+2]+K);for(let J=0;J<I.length;J++)U.push(I[J])}}},buildRectangle={build(C){const E=C.shape,I=E.x,B=E.y,U=E.width,V=E.height,X=C.points;X.length=0,U>=0&&V>=0&&X.push(I,B,I+U,B,I+U,B+V,I,B+V)},triangulate(C,E){const I=C.points,B=E.points;if(I.length===0)return;const U=B.length/2;B.push(I[0],I[1],I[2],I[3],I[6],I[7],I[4],I[5]),E.indices.push(U,U+1,U+2,U+1,U+2,U+3)}},buildRoundedRectangle={build(C){buildCircle.build(C)},triangulate(C,E){buildCircle.triangulate(C,E)}};var LINE_JOIN=(C=>(C.MITER="miter",C.BEVEL="bevel",C.ROUND="round",C))(LINE_JOIN||{}),LINE_CAP=(C=>(C.BUTT="butt",C.ROUND="round",C.SQUARE="square",C))(LINE_CAP||{});const curves={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount(C,E=20){if(!this.adaptive||!C||isNaN(C))return E;let I=Math.ceil(C/this.maxLength);return I<this.minSegments?I=this.minSegments:I>this.maxSegments&&(I=this.maxSegments),I}};class ArcUtils{static curveTo(E,I,B,U,V,X){const Y=X[X.length-2],J=X[X.length-1]-I,xe=Y-E,Z=U-I,_e=B-E,Se=Math.abs(J*_e-xe*Z);if(Se<1e-8||V===0)return(X[X.length-2]!==E||X[X.length-1]!==I)&&X.push(E,I),null;const Ee=J*J+xe*xe,Ae=Z*Z+_e*_e,Re=J*Z+xe*_e,Te=V*Math.sqrt(Ee)/Se,we=V*Math.sqrt(Ae)/Se,Pe=Te*Re/Ee,Ie=we*Re/Ae,Me=Te*_e+we*xe,Oe=Te*Z+we*J,Le=xe*(we+Pe),$e=J*(we+Pe),Ve=_e*(Te+Ie),Xe=Z*(Te+Ie),Ue=Math.atan2($e-Oe,Le-Me),We=Math.atan2(Xe-Oe,Ve-Me);return{cx:Me+E,cy:Oe+I,radius:V,startAngle:Ue,endAngle:We,anticlockwise:xe*Z>_e*J}}static arc(E,I,B,U,V,X,Y,K,J){const xe=Y-X,Z=curves._segmentsCount(Math.abs(xe)*V,Math.ceil(Math.abs(xe)/PI_2)*40),_e=xe/(Z*2),Se=_e*2,Ee=Math.cos(_e),Ae=Math.sin(_e),Re=Z-1,Te=Re%1/Re;for(let we=0;we<=Re;++we){const Pe=we+Te*we,Ie=_e+X+Se*Pe,Me=Math.cos(Ie),Oe=-Math.sin(Ie);J.push((Ee*Me+Ae*Oe)*V+B,(Ee*-Oe+Ae*Me)*V+U)}}}class BatchPart{constructor(){this.reset()}begin(E,I,B){this.reset(),this.style=E,this.start=I,this.attribStart=B}end(E,I){this.attribSize=I-this.attribStart,this.size=E-this.start}reset(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0}}class BezierUtils{static curveLength(E,I,B,U,V,X,Y,K){let xe=0,Z=0,_e=0,Se=0,Ee=0,Ae=0,Re=0,Te=0,we=0,Pe=0,Ie=0,Me=E,Oe=I;for(let Le=1;Le<=10;++Le)Z=Le/10,_e=Z*Z,Se=_e*Z,Ee=1-Z,Ae=Ee*Ee,Re=Ae*Ee,Te=Re*E+3*Ae*Z*B+3*Ee*_e*V+Se*Y,we=Re*I+3*Ae*Z*U+3*Ee*_e*X+Se*K,Pe=Me-Te,Ie=Oe-we,Me=Te,Oe=we,xe+=Math.sqrt(Pe*Pe+Ie*Ie);return xe}static curveTo(E,I,B,U,V,X,Y){const K=Y[Y.length-2],J=Y[Y.length-1];Y.length-=2;const xe=curves._segmentsCount(BezierUtils.curveLength(K,J,E,I,B,U,V,X));let Z=0,_e=0,Se=0,Ee=0,Ae=0;Y.push(K,J);for(let Re=1,Te=0;Re<=xe;++Re)Te=Re/xe,Z=1-Te,_e=Z*Z,Se=_e*Z,Ee=Te*Te,Ae=Ee*Te,Y.push(Se*K+3*_e*Te*E+3*Z*Ee*B+Ae*V,Se*J+3*_e*Te*I+3*Z*Ee*U+Ae*X)}}function square(C,E,I,B,U,V,X,Y){const K=C-I*U,J=E-B*U,xe=C+I*V,Z=E+B*V;let _e,Se;X?(_e=B,Se=-I):(_e=-B,Se=I);const Ee=K+_e,Ae=J+Se,Re=xe+_e,Te=Z+Se;return Y.push(Ee,Ae,Re,Te),2}function round(C,E,I,B,U,V,X,Y){const K=I-C,J=B-E;let xe=Math.atan2(K,J),Z=Math.atan2(U-C,V-E);Y&&xe<Z?xe+=Math.PI*2:!Y&&xe>Z&&(Z+=Math.PI*2);let _e=xe;const Se=Z-xe,Ee=Math.abs(Se),Ae=Math.sqrt(K*K+J*J),Re=(15*Ee*Math.sqrt(Ae)/Math.PI>>0)+1,Te=Se/Re;if(_e+=Te,Y){X.push(C,E,I,B);for(let we=1,Pe=_e;we<Re;we++,Pe+=Te)X.push(C,E,C+Math.sin(Pe)*Ae,E+Math.cos(Pe)*Ae);X.push(C,E,U,V)}else{X.push(I,B,C,E);for(let we=1,Pe=_e;we<Re;we++,Pe+=Te)X.push(C+Math.sin(Pe)*Ae,E+Math.cos(Pe)*Ae,C,E);X.push(U,V,C,E)}return Re*2}function buildNonNativeLine(C,E){const I=C.shape;let B=C.points||I.points.slice();const U=E.closePointEps;if(B.length===0)return;const V=C.lineStyle,X=new Point(B[0],B[1]),Y=new Point(B[B.length-2],B[B.length-1]),K=I.type!==SHAPES.POLY||I.closeStroke,J=Math.abs(X.x-Y.x)<U&&Math.abs(X.y-Y.y)<U;if(K){B=B.slice(),J&&(B.pop(),B.pop(),Y.set(B[B.length-2],B[B.length-1]));const De=(X.x+Y.x)*.5,Fe=(Y.y+X.y)*.5;B.unshift(De,Fe),B.push(De,Fe)}const xe=E.points,Z=B.length/2;let _e=B.length;const Se=xe.length/2,Ee=V.width/2,Ae=Ee*Ee,Re=V.miterLimit*V.miterLimit;let Te=B[0],we=B[1],Pe=B[2],Ie=B[3],Me=0,Oe=0,Le=-(we-Ie),$e=Te-Pe,Ve=0,Xe=0,Ue=Math.sqrt(Le*Le+$e*$e);Le/=Ue,$e/=Ue,Le*=Ee,$e*=Ee;const We=V.alignment,ze=(1-We)*2,He=We*2;K||(V.cap===LINE_CAP.ROUND?_e+=round(Te-Le*(ze-He)*.5,we-$e*(ze-He)*.5,Te-Le*ze,we-$e*ze,Te+Le*He,we+$e*He,xe,!0)+2:V.cap===LINE_CAP.SQUARE&&(_e+=square(Te,we,Le,$e,ze,He,!0,xe))),xe.push(Te-Le*ze,we-$e*ze,Te+Le*He,we+$e*He);for(let De=1;De<Z-1;++De){Te=B[(De-1)*2],we=B[(De-1)*2+1],Pe=B[De*2],Ie=B[De*2+1],Me=B[(De+1)*2],Oe=B[(De+1)*2+1],Le=-(we-Ie),$e=Te-Pe,Ue=Math.sqrt(Le*Le+$e*$e),Le/=Ue,$e/=Ue,Le*=Ee,$e*=Ee,Ve=-(Ie-Oe),Xe=Pe-Me,Ue=Math.sqrt(Ve*Ve+Xe*Xe),Ve/=Ue,Xe/=Ue,Ve*=Ee,Xe*=Ee;const Fe=Pe-Te,ke=we-Ie,Ge=Pe-Me,Be=Oe-Ie,qe=Fe*Ge+ke*Be,Ke=ke*Ge-Be*Fe,Ye=Ke<0;if(Math.abs(Ke)<.001*Math.abs(qe)){xe.push(Pe-Le*ze,Ie-$e*ze,Pe+Le*He,Ie+$e*He),qe>=0&&(V.join===LINE_JOIN.ROUND?_e+=round(Pe,Ie,Pe-Le*ze,Ie-$e*ze,Pe-Ve*ze,Ie-Xe*ze,xe,!1)+4:_e+=2,xe.push(Pe-Ve*He,Ie-Xe*He,Pe+Ve*ze,Ie+Xe*ze));continue}const tt=(-Le+Te)*(-$e+Ie)-(-Le+Pe)*(-$e+we),Ze=(-Ve+Me)*(-Xe+Ie)-(-Ve+Pe)*(-Xe+Oe),it=(Fe*Ze-Ge*tt)/Ke,at=(Be*tt-ke*Ze)/Ke,st=(it-Pe)*(it-Pe)+(at-Ie)*(at-Ie),Je=Pe+(it-Pe)*ze,et=Ie+(at-Ie)*ze,rt=Pe-(it-Pe)*He,nt=Ie-(at-Ie)*He,Qe=Math.min(Fe*Fe+ke*ke,Ge*Ge+Be*Be),ot=Ye?ze:He,lt=Qe+ot*ot*Ae,ut=st<=lt;let mt=V.join;if(mt===LINE_JOIN.MITER&&st/Ae>Re&&(mt=LINE_JOIN.BEVEL),ut)switch(mt){case LINE_JOIN.MITER:{xe.push(Je,et,rt,nt);break}case LINE_JOIN.BEVEL:{Ye?xe.push(Je,et,Pe+Le*He,Ie+$e*He,Je,et,Pe+Ve*He,Ie+Xe*He):xe.push(Pe-Le*ze,Ie-$e*ze,rt,nt,Pe-Ve*ze,Ie-Xe*ze,rt,nt),_e+=2;break}case LINE_JOIN.ROUND:{Ye?(xe.push(Je,et,Pe+Le*He,Ie+$e*He),_e+=round(Pe,Ie,Pe+Le*He,Ie+$e*He,Pe+Ve*He,Ie+Xe*He,xe,!0)+4,xe.push(Je,et,Pe+Ve*He,Ie+Xe*He)):(xe.push(Pe-Le*ze,Ie-$e*ze,rt,nt),_e+=round(Pe,Ie,Pe-Le*ze,Ie-$e*ze,Pe-Ve*ze,Ie-Xe*ze,xe,!1)+4,xe.push(Pe-Ve*ze,Ie-Xe*ze,rt,nt));break}}else{switch(xe.push(Pe-Le*ze,Ie-$e*ze,Pe+Le*He,Ie+$e*He),mt){case LINE_JOIN.MITER:{Ye?xe.push(rt,nt,rt,nt):xe.push(Je,et,Je,et),_e+=2;break}case LINE_JOIN.ROUND:{Ye?_e+=round(Pe,Ie,Pe+Le*He,Ie+$e*He,Pe+Ve*He,Ie+Xe*He,xe,!0)+2:_e+=round(Pe,Ie,Pe-Le*ze,Ie-$e*ze,Pe-Ve*ze,Ie-Xe*ze,xe,!1)+2;break}}xe.push(Pe-Ve*ze,Ie-Xe*ze,Pe+Ve*He,Ie+Xe*He),_e+=2}}Te=B[(Z-2)*2],we=B[(Z-2)*2+1],Pe=B[(Z-1)*2],Ie=B[(Z-1)*2+1],Le=-(we-Ie),$e=Te-Pe,Ue=Math.sqrt(Le*Le+$e*$e),Le/=Ue,$e/=Ue,Le*=Ee,$e*=Ee,xe.push(Pe-Le*ze,Ie-$e*ze,Pe+Le*He,Ie+$e*He),K||(V.cap===LINE_CAP.ROUND?_e+=round(Pe-Le*(ze-He)*.5,Ie-$e*(ze-He)*.5,Pe-Le*ze,Ie-$e*ze,Pe+Le*He,Ie+$e*He,xe,!1)+2:V.cap===LINE_CAP.SQUARE&&(_e+=square(Pe,Ie,Le,$e,ze,He,!1,xe)));const je=E.indices,Ne=curves.epsilon*curves.epsilon;for(let De=Se;De<_e+Se-2;++De)Te=xe[De*2],we=xe[De*2+1],Pe=xe[(De+1)*2],Ie=xe[(De+1)*2+1],Me=xe[(De+2)*2],Oe=xe[(De+2)*2+1],!(Math.abs(Te*(Ie-Oe)+Pe*(Oe-we)+Me*(we-Ie))<Ne)&&je.push(De,De+1,De+2)}function buildNativeLine(C,E){let I=0;const B=C.shape,U=C.points||B.points,V=B.type!==SHAPES.POLY||B.closeStroke;if(U.length===0)return;const X=E.points,Y=E.indices,K=U.length/2,J=X.length/2;let xe=J;for(X.push(U[0],U[1]),I=1;I<K;I++)X.push(U[I*2],U[I*2+1]),Y.push(xe,xe+1),xe++;V&&Y.push(xe,J)}function buildLine(C,E){C.lineStyle.native?buildNativeLine(C,E):buildNonNativeLine(C,E)}class QuadraticUtils{static curveLength(E,I,B,U,V,X){const Y=E-2*B+V,K=I-2*U+X,J=2*B-2*E,xe=2*U-2*I,Z=4*(Y*Y+K*K),_e=4*(Y*J+K*xe),Se=J*J+xe*xe,Ee=2*Math.sqrt(Z+_e+Se),Ae=Math.sqrt(Z),Re=2*Z*Ae,Te=2*Math.sqrt(Se),we=_e/Ae;return(Re*Ee+Ae*_e*(Ee-Te)+(4*Se*Z-_e*_e)*Math.log((2*Ae+we+Ee)/(we+Te)))/(4*Re)}static curveTo(E,I,B,U,V){const X=V[V.length-2],Y=V[V.length-1],K=curves._segmentsCount(QuadraticUtils.curveLength(X,Y,E,I,B,U));let J=0,xe=0;for(let Z=1;Z<=K;++Z){const _e=Z/K;J=X+(E-X)*_e,xe=Y+(I-Y)*_e,V.push(J+(E+(B-E)*_e-J)*_e,xe+(I+(U-I)*_e-xe)*_e)}}}const FILL_COMMANDS={[SHAPES.POLY]:buildPoly,[SHAPES.CIRC]:buildCircle,[SHAPES.ELIP]:buildCircle,[SHAPES.RECT]:buildRectangle,[SHAPES.RREC]:buildRoundedRectangle},BATCH_POOL=[],DRAW_CALL_POOL=[];class Bounds{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null,this.updateID=-1}isEmpty(){return this.minX>this.maxX||this.minY>this.maxY}clear(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}getRectangle(E){return this.minX>this.maxX||this.minY>this.maxY?Rectangle.EMPTY:(E=E||new Rectangle(0,0,1,1),E.x=this.minX,E.y=this.minY,E.width=this.maxX-this.minX,E.height=this.maxY-this.minY,E)}addPoint(E){this.minX=Math.min(this.minX,E.x),this.maxX=Math.max(this.maxX,E.x),this.minY=Math.min(this.minY,E.y),this.maxY=Math.max(this.maxY,E.y)}addPointMatrix(E,I){const{a:B,b:U,c:V,d:X,tx:Y,ty:K}=E,J=B*I.x+V*I.y+Y,xe=U*I.x+X*I.y+K;this.minX=Math.min(this.minX,J),this.maxX=Math.max(this.maxX,J),this.minY=Math.min(this.minY,xe),this.maxY=Math.max(this.maxY,xe)}addQuad(E){let I=this.minX,B=this.minY,U=this.maxX,V=this.maxY,X=E[0],Y=E[1];I=X<I?X:I,B=Y<B?Y:B,U=X>U?X:U,V=Y>V?Y:V,X=E[2],Y=E[3],I=X<I?X:I,B=Y<B?Y:B,U=X>U?X:U,V=Y>V?Y:V,X=E[4],Y=E[5],I=X<I?X:I,B=Y<B?Y:B,U=X>U?X:U,V=Y>V?Y:V,X=E[6],Y=E[7],I=X<I?X:I,B=Y<B?Y:B,U=X>U?X:U,V=Y>V?Y:V,this.minX=I,this.minY=B,this.maxX=U,this.maxY=V}addFrame(E,I,B,U,V){this.addFrameMatrix(E.worldTransform,I,B,U,V)}addFrameMatrix(E,I,B,U,V){const X=E.a,Y=E.b,K=E.c,J=E.d,xe=E.tx,Z=E.ty;let _e=this.minX,Se=this.minY,Ee=this.maxX,Ae=this.maxY,Re=X*I+K*B+xe,Te=Y*I+J*B+Z;_e=Re<_e?Re:_e,Se=Te<Se?Te:Se,Ee=Re>Ee?Re:Ee,Ae=Te>Ae?Te:Ae,Re=X*U+K*B+xe,Te=Y*U+J*B+Z,_e=Re<_e?Re:_e,Se=Te<Se?Te:Se,Ee=Re>Ee?Re:Ee,Ae=Te>Ae?Te:Ae,Re=X*I+K*V+xe,Te=Y*I+J*V+Z,_e=Re<_e?Re:_e,Se=Te<Se?Te:Se,Ee=Re>Ee?Re:Ee,Ae=Te>Ae?Te:Ae,Re=X*U+K*V+xe,Te=Y*U+J*V+Z,_e=Re<_e?Re:_e,Se=Te<Se?Te:Se,Ee=Re>Ee?Re:Ee,Ae=Te>Ae?Te:Ae,this.minX=_e,this.minY=Se,this.maxX=Ee,this.maxY=Ae}addVertexData(E,I,B){let U=this.minX,V=this.minY,X=this.maxX,Y=this.maxY;for(let K=I;K<B;K+=2){const J=E[K],xe=E[K+1];U=J<U?J:U,V=xe<V?xe:V,X=J>X?J:X,Y=xe>Y?xe:Y}this.minX=U,this.minY=V,this.maxX=X,this.maxY=Y}addVertices(E,I,B,U){this.addVerticesMatrix(E.worldTransform,I,B,U)}addVerticesMatrix(E,I,B,U,V=0,X=V){const Y=E.a,K=E.b,J=E.c,xe=E.d,Z=E.tx,_e=E.ty;let Se=this.minX,Ee=this.minY,Ae=this.maxX,Re=this.maxY;for(let Te=B;Te<U;Te+=2){const we=I[Te],Pe=I[Te+1],Ie=Y*we+J*Pe+Z,Me=xe*Pe+K*we+_e;Se=Math.min(Se,Ie-V),Ae=Math.max(Ae,Ie+V),Ee=Math.min(Ee,Me-X),Re=Math.max(Re,Me+X)}this.minX=Se,this.minY=Ee,this.maxX=Ae,this.maxY=Re}addBounds(E){const I=this.minX,B=this.minY,U=this.maxX,V=this.maxY;this.minX=E.minX<I?E.minX:I,this.minY=E.minY<B?E.minY:B,this.maxX=E.maxX>U?E.maxX:U,this.maxY=E.maxY>V?E.maxY:V}addBoundsMask(E,I){const B=E.minX>I.minX?E.minX:I.minX,U=E.minY>I.minY?E.minY:I.minY,V=E.maxX<I.maxX?E.maxX:I.maxX,X=E.maxY<I.maxY?E.maxY:I.maxY;if(B<=V&&U<=X){const Y=this.minX,K=this.minY,J=this.maxX,xe=this.maxY;this.minX=B<Y?B:Y,this.minY=U<K?U:K,this.maxX=V>J?V:J,this.maxY=X>xe?X:xe}}addBoundsMatrix(E,I){this.addFrameMatrix(I,E.minX,E.minY,E.maxX,E.maxY)}addBoundsArea(E,I){const B=E.minX>I.x?E.minX:I.x,U=E.minY>I.y?E.minY:I.y,V=E.maxX<I.x+I.width?E.maxX:I.x+I.width,X=E.maxY<I.y+I.height?E.maxY:I.y+I.height;if(B<=V&&U<=X){const Y=this.minX,K=this.minY,J=this.maxX,xe=this.maxY;this.minX=B<Y?B:Y,this.minY=U<K?U:K,this.maxX=V>J?V:J,this.maxY=X>xe?X:xe}}pad(E=0,I=E){this.isEmpty()||(this.minX-=E,this.maxX+=E,this.minY-=I,this.maxY+=I)}addFramePad(E,I,B,U,V,X){E-=V,I-=X,B+=V,U+=X,this.minX=this.minX<E?this.minX:E,this.maxX=this.maxX>B?this.maxX:B,this.minY=this.minY<I?this.minY:I,this.maxY=this.maxY>U?this.maxY:U}}class DisplayObject extends EventEmitter{constructor(){super(),this.tempDisplayObjectParent=null,this.transform=new Transform,this.alpha=1,this.visible=!0,this.renderable=!0,this.cullable=!1,this.cullArea=null,this.parent=null,this.worldAlpha=1,this._lastSortedIndex=0,this._zIndex=0,this.filterArea=null,this.filters=null,this._enabledFilters=null,this._bounds=new Bounds,this._localBounds=null,this._boundsID=0,this._boundsRect=null,this._localBoundsRect=null,this._mask=null,this._maskRefCount=0,this._destroyed=!1,this.isSprite=!1,this.isMask=!1}static mixin(E){const I=Object.keys(E);for(let B=0;B<I.length;++B){const U=I[B];Object.defineProperty(DisplayObject.prototype,U,Object.getOwnPropertyDescriptor(E,U))}}get destroyed(){return this._destroyed}_recursivePostUpdateTransform(){this.parent?(this.parent._recursivePostUpdateTransform(),this.transform.updateTransform(this.parent.transform)):this.transform.updateTransform(this._tempDisplayObjectParent.transform)}updateTransform(){this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha}getBounds(E,I){return E||(this.parent?(this._recursivePostUpdateTransform(),this.updateTransform()):(this.parent=this._tempDisplayObjectParent,this.updateTransform(),this.parent=null)),this._bounds.updateID!==this._boundsID&&(this.calculateBounds(),this._bounds.updateID=this._boundsID),I||(this._boundsRect||(this._boundsRect=new Rectangle),I=this._boundsRect),this._bounds.getRectangle(I)}getLocalBounds(E){E||(this._localBoundsRect||(this._localBoundsRect=new Rectangle),E=this._localBoundsRect),this._localBounds||(this._localBounds=new Bounds);const I=this.transform,B=this.parent;this.parent=null,this.transform=this._tempDisplayObjectParent.transform;const U=this._bounds,V=this._boundsID;this._bounds=this._localBounds;const X=this.getBounds(!1,E);return this.parent=B,this.transform=I,this._bounds=U,this._bounds.updateID+=this._boundsID-V,X}toGlobal(E,I,B=!1){return B||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.apply(E,I)}toLocal(E,I,B,U){return I&&(E=I.toGlobal(E,B,U)),U||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.applyInverse(E,B)}setParent(E){if(!E||!E.addChild)throw new Error("setParent: Argument must be a Container");return E.addChild(this),E}removeFromParent(){var E;(E=this.parent)==null||E.removeChild(this)}setTransform(E=0,I=0,B=1,U=1,V=0,X=0,Y=0,K=0,J=0){return this.position.x=E,this.position.y=I,this.scale.x=B||1,this.scale.y=U||1,this.rotation=V,this.skew.x=X,this.skew.y=Y,this.pivot.x=K,this.pivot.y=J,this}destroy(E){this.removeFromParent(),this._destroyed=!0,this.transform=null,this.parent=null,this._bounds=null,this.mask=null,this.cullArea=null,this.filters=null,this.filterArea=null,this.hitArea=null,this.eventMode="auto",this.interactiveChildren=!1,this.emit("destroyed"),this.removeAllListeners()}get _tempDisplayObjectParent(){return this.tempDisplayObjectParent===null&&(this.tempDisplayObjectParent=new TemporaryDisplayObject),this.tempDisplayObjectParent}enableTempParent(){const E=this.parent;return this.parent=this._tempDisplayObjectParent,E}disableTempParent(E){this.parent=E}get x(){return this.position.x}set x(E){this.transform.position.x=E}get y(){return this.position.y}set y(E){this.transform.position.y=E}get worldTransform(){return this.transform.worldTransform}get localTransform(){return this.transform.localTransform}get position(){return this.transform.position}set position(E){this.transform.position.copyFrom(E)}get scale(){return this.transform.scale}set scale(E){this.transform.scale.copyFrom(E)}get pivot(){return this.transform.pivot}set pivot(E){this.transform.pivot.copyFrom(E)}get skew(){return this.transform.skew}set skew(E){this.transform.skew.copyFrom(E)}get rotation(){return this.transform.rotation}set rotation(E){this.transform.rotation=E}get angle(){return this.transform.rotation*RAD_TO_DEG}set angle(E){this.transform.rotation=E*DEG_TO_RAD}get zIndex(){return this._zIndex}set zIndex(E){this._zIndex=E,this.parent&&(this.parent.sortDirty=!0)}get worldVisible(){let E=this;do{if(!E.visible)return!1;E=E.parent}while(E);return!0}get mask(){return this._mask}set mask(E){if(this._mask!==E){if(this._mask){const I=this._mask.isMaskData?this._mask.maskObject:this._mask;I&&(I._maskRefCount--,I._maskRefCount===0&&(I.renderable=!0,I.isMask=!1))}if(this._mask=E,this._mask){const I=this._mask.isMaskData?this._mask.maskObject:this._mask;I&&(I._maskRefCount===0&&(I.renderable=!1,I.isMask=!0),I._maskRefCount++)}}}}class TemporaryDisplayObject extends DisplayObject{constructor(){super(...arguments),this.sortDirty=null}}DisplayObject.prototype.displayObjectUpdateTransform=DisplayObject.prototype.updateTransform;const tempMatrix=new Matrix$2;function sortChildren(C,E){return C.zIndex===E.zIndex?C._lastSortedIndex-E._lastSortedIndex:C.zIndex-E.zIndex}const _Container=class extends DisplayObject{constructor(){super(),this.children=[],this.sortableChildren=_Container.defaultSortableChildren,this.sortDirty=!1}onChildrenChange(C){}addChild(...C){if(C.length>1)for(let E=0;E<C.length;E++)this.addChild(C[E]);else{const E=C[0];E.parent&&E.parent.removeChild(E),E.parent=this,this.sortDirty=!0,E.transform._parentID=-1,this.children.push(E),this._boundsID++,this.onChildrenChange(this.children.length-1),this.emit("childAdded",E,this,this.children.length-1),E.emit("added",this)}return C[0]}addChildAt(C,E){if(E<0||E>this.children.length)throw new Error(`${C}addChildAt: The index ${E} supplied is out of bounds ${this.children.length}`);return C.parent&&C.parent.removeChild(C),C.parent=this,this.sortDirty=!0,C.transform._parentID=-1,this.children.splice(E,0,C),this._boundsID++,this.onChildrenChange(E),C.emit("added",this),this.emit("childAdded",C,this,E),C}swapChildren(C,E){if(C===E)return;const I=this.getChildIndex(C),B=this.getChildIndex(E);this.children[I]=E,this.children[B]=C,this.onChildrenChange(I<B?I:B)}getChildIndex(C){const E=this.children.indexOf(C);if(E===-1)throw new Error("The supplied DisplayObject must be a child of the caller");return E}setChildIndex(C,E){if(E<0||E>=this.children.length)throw new Error(`The index ${E} supplied is out of bounds ${this.children.length}`);const I=this.getChildIndex(C);removeItems(this.children,I,1),this.children.splice(E,0,C),this.onChildrenChange(E)}getChildAt(C){if(C<0||C>=this.children.length)throw new Error(`getChildAt: Index (${C}) does not exist.`);return this.children[C]}removeChild(...C){if(C.length>1)for(let E=0;E<C.length;E++)this.removeChild(C[E]);else{const E=C[0],I=this.children.indexOf(E);if(I===-1)return null;E.parent=null,E.transform._parentID=-1,removeItems(this.children,I,1),this._boundsID++,this.onChildrenChange(I),E.emit("removed",this),this.emit("childRemoved",E,this,I)}return C[0]}removeChildAt(C){const E=this.getChildAt(C);return E.parent=null,E.transform._parentID=-1,removeItems(this.children,C,1),this._boundsID++,this.onChildrenChange(C),E.emit("removed",this),this.emit("childRemoved",E,this,C),E}removeChildren(C=0,E=this.children.length){const I=C,B=E,U=B-I;let V;if(U>0&&U<=B){V=this.children.splice(I,U);for(let X=0;X<V.length;++X)V[X].parent=null,V[X].transform&&(V[X].transform._parentID=-1);this._boundsID++,this.onChildrenChange(C);for(let X=0;X<V.length;++X)V[X].emit("removed",this),this.emit("childRemoved",V[X],this,X);return V}else if(U===0&&this.children.length===0)return[];throw new RangeError("removeChildren: numeric values are outside the acceptable range.")}sortChildren(){let C=!1;for(let E=0,I=this.children.length;E<I;++E){const B=this.children[E];B._lastSortedIndex=E,!C&&B.zIndex!==0&&(C=!0)}C&&this.children.length>1&&this.children.sort(sortChildren),this.sortDirty=!1}updateTransform(){this.sortableChildren&&this.sortDirty&&this.sortChildren(),this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(let C=0,E=this.children.length;C<E;++C){const I=this.children[C];I.visible&&I.updateTransform()}}calculateBounds(){this._bounds.clear(),this._calculateBounds();for(let C=0;C<this.children.length;C++){const E=this.children[C];if(!(!E.visible||!E.renderable))if(E.calculateBounds(),E._mask){const I=E._mask.isMaskData?E._mask.maskObject:E._mask;I?(I.calculateBounds(),this._bounds.addBoundsMask(E._bounds,I._bounds)):this._bounds.addBounds(E._bounds)}else E.filterArea?this._bounds.addBoundsArea(E._bounds,E.filterArea):this._bounds.addBounds(E._bounds)}this._bounds.updateID=this._boundsID}getLocalBounds(C,E=!1){const I=super.getLocalBounds(C);if(!E)for(let B=0,U=this.children.length;B<U;++B){const V=this.children[B];V.visible&&V.updateTransform()}return I}_calculateBounds(){}_renderWithCulling(C){const E=C.renderTexture.sourceFrame;if(!(E.width>0&&E.height>0))return;let I,B;this.cullArea?(I=this.cullArea,B=this.worldTransform):this._render!==_Container.prototype._render&&(I=this.getBounds(!0));const U=C.projection.transform;if(U&&(B?(B=tempMatrix.copyFrom(B),B.prepend(U)):B=U),I&&E.intersects(I,B))this._render(C);else if(this.cullArea)return;for(let V=0,X=this.children.length;V<X;++V){const Y=this.children[V],K=Y.cullable;Y.cullable=K||!this.cullArea,Y.render(C),Y.cullable=K}}render(C){var E;if(!(!this.visible||this.worldAlpha<=0||!this.renderable))if(this._mask||(E=this.filters)!=null&&E.length)this.renderAdvanced(C);else if(this.cullable)this._renderWithCulling(C);else{this._render(C);for(let I=0,B=this.children.length;I<B;++I)this.children[I].render(C)}}renderAdvanced(C){var U,V,X;const E=this.filters,I=this._mask;if(E){this._enabledFilters||(this._enabledFilters=[]),this._enabledFilters.length=0;for(let Y=0;Y<E.length;Y++)E[Y].enabled&&this._enabledFilters.push(E[Y])}const B=E&&((U=this._enabledFilters)==null?void 0:U.length)||I&&(!I.isMaskData||I.enabled&&(I.autoDetect||I.type!==MASK_TYPES.NONE));if(B&&C.batch.flush(),E&&((V=this._enabledFilters)!=null&&V.length)&&C.filter.push(this,this._enabledFilters),I&&C.mask.push(this,this._mask),this.cullable)this._renderWithCulling(C);else{this._render(C);for(let Y=0,K=this.children.length;Y<K;++Y)this.children[Y].render(C)}B&&C.batch.flush(),I&&C.mask.pop(this),E&&((X=this._enabledFilters)!=null&&X.length)&&C.filter.pop()}_render(C){}destroy(C){super.destroy(),this.sortDirty=!1;const E=typeof C=="boolean"?C:C==null?void 0:C.children,I=this.removeChildren(0,this.children.length);if(E)for(let B=0;B<I.length;++B)I[B].destroy(C)}get width(){return this.scale.x*this.getLocalBounds().width}set width(C){const E=this.getLocalBounds().width;E!==0?this.scale.x=C/E:this.scale.x=1,this._width=C}get height(){return this.scale.y*this.getLocalBounds().height}set height(C){const E=this.getLocalBounds().height;E!==0?this.scale.y=C/E:this.scale.y=1,this._height=C}};let Container=_Container;Container.defaultSortableChildren=!1,Container.prototype.containerUpdateTransform=Container.prototype.updateTransform,Object.defineProperties(settings,{SORTABLE_CHILDREN:{get(){return Container.defaultSortableChildren},set(C){deprecation("7.1.0","settings.SORTABLE_CHILDREN is deprecated, use Container.defaultSortableChildren"),Container.defaultSortableChildren=C}}});class GraphicsData{constructor(E,I=null,B=null,U=null){this.points=[],this.holes=[],this.shape=E,this.lineStyle=B,this.fillStyle=I,this.matrix=U,this.type=E.type}clone(){return new GraphicsData(this.shape,this.fillStyle,this.lineStyle,this.matrix)}destroy(){this.shape=null,this.holes.length=0,this.holes=null,this.points.length=0,this.points=null,this.lineStyle=null,this.fillStyle=null}}const tmpPoint=new Point,_GraphicsGeometry=class extends BatchGeometry{constructor(){super(),this.closePointEps=1e-4,this.boundsPadding=0,this.uvsFloat32=null,this.indicesUint16=null,this.batchable=!1,this.points=[],this.colors=[],this.uvs=[],this.indices=[],this.textureIds=[],this.graphicsData=[],this.drawCalls=[],this.batchDirty=-1,this.batches=[],this.dirty=0,this.cacheDirty=-1,this.clearDirty=0,this.shapeIndex=0,this._bounds=new Bounds,this.boundsDirty=-1}get bounds(){return this.updateBatches(),this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.calculateBounds()),this._bounds}invalidate(){this.boundsDirty=-1,this.dirty++,this.batchDirty++,this.shapeIndex=0,this.points.length=0,this.colors.length=0,this.uvs.length=0,this.indices.length=0,this.textureIds.length=0;for(let C=0;C<this.drawCalls.length;C++)this.drawCalls[C].texArray.clear(),DRAW_CALL_POOL.push(this.drawCalls[C]);this.drawCalls.length=0;for(let C=0;C<this.batches.length;C++){const E=this.batches[C];E.reset(),BATCH_POOL.push(E)}this.batches.length=0}clear(){return this.graphicsData.length>0&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this}drawShape(C,E=null,I=null,B=null){const U=new GraphicsData(C,E,I,B);return this.graphicsData.push(U),this.dirty++,this}drawHole(C,E=null){if(!this.graphicsData.length)return null;const I=new GraphicsData(C,null,null,E),B=this.graphicsData[this.graphicsData.length-1];return I.lineStyle=B.lineStyle,B.holes.push(I),this.dirty++,this}destroy(){super.destroy();for(let C=0;C<this.graphicsData.length;++C)this.graphicsData[C].destroy();this.points.length=0,this.points=null,this.colors.length=0,this.colors=null,this.uvs.length=0,this.uvs=null,this.indices.length=0,this.indices=null,this.indexBuffer.destroy(),this.indexBuffer=null,this.graphicsData.length=0,this.graphicsData=null,this.drawCalls.length=0,this.drawCalls=null,this.batches.length=0,this.batches=null,this._bounds=null}containsPoint(C){const E=this.graphicsData;for(let I=0;I<E.length;++I){const B=E[I];if(B.fillStyle.visible&&B.shape&&(B.matrix?B.matrix.applyInverse(C,tmpPoint):tmpPoint.copyFrom(C),B.shape.contains(tmpPoint.x,tmpPoint.y))){let U=!1;if(B.holes){for(let V=0;V<B.holes.length;V++)if(B.holes[V].shape.contains(tmpPoint.x,tmpPoint.y)){U=!0;break}}if(!U)return!0}}return!1}updateBatches(){if(!this.graphicsData.length){this.batchable=!0;return}if(!this.validateBatching())return;this.cacheDirty=this.dirty;const C=this.uvs,E=this.graphicsData;let I=null,B=null;this.batches.length>0&&(I=this.batches[this.batches.length-1],B=I.style);for(let Y=this.shapeIndex;Y<E.length;Y++){this.shapeIndex++;const K=E[Y],J=K.fillStyle,xe=K.lineStyle;FILL_COMMANDS[K.type].build(K),K.matrix&&this.transformPoints(K.points,K.matrix),(J.visible||xe.visible)&&this.processHoles(K.holes);for(let _e=0;_e<2;_e++){const Se=_e===0?J:xe;if(!Se.visible)continue;const Ee=Se.texture.baseTexture,Ae=this.indices.length,Re=this.points.length/2;Ee.wrapMode=WRAP_MODES.REPEAT,_e===0?this.processFill(K):this.processLine(K);const Te=this.points.length/2-Re;Te!==0&&(I&&!this._compareStyles(B,Se)&&(I.end(Ae,Re),I=null),I||(I=BATCH_POOL.pop()||new BatchPart,I.begin(Se,Ae,Re),this.batches.push(I),B=Se),this.addUvs(this.points,C,Se.texture,Re,Te,Se.matrix))}}const U=this.indices.length,V=this.points.length/2;if(I&&I.end(U,V),this.batches.length===0){this.batchable=!0;return}const X=V>65535;this.indicesUint16&&this.indices.length===this.indicesUint16.length&&X===this.indicesUint16.BYTES_PER_ELEMENT>2?this.indicesUint16.set(this.indices):this.indicesUint16=X?new Uint32Array(this.indices):new Uint16Array(this.indices),this.batchable=this.isBatchable(),this.batchable?this.packBatches():this.buildDrawCalls()}_compareStyles(C,E){return!(!C||!E||C.texture.baseTexture!==E.texture.baseTexture||C.color+C.alpha!==E.color+E.alpha||!!C.native!=!!E.native)}validateBatching(){if(this.dirty===this.cacheDirty||!this.graphicsData.length)return!1;for(let C=0,E=this.graphicsData.length;C<E;C++){const I=this.graphicsData[C],B=I.fillStyle,U=I.lineStyle;if(B&&!B.texture.baseTexture.valid||U&&!U.texture.baseTexture.valid)return!1}return!0}packBatches(){this.batchDirty++,this.uvsFloat32=new Float32Array(this.uvs);const C=this.batches;for(let E=0,I=C.length;E<I;E++){const B=C[E];for(let U=0;U<B.size;U++){const V=B.start+U;this.indicesUint16[V]=this.indicesUint16[V]-B.attribStart}}}isBatchable(){if(this.points.length>65535*2)return!1;const C=this.batches;for(let E=0;E<C.length;E++)if(C[E].style.native)return!1;return this.points.length<_GraphicsGeometry.BATCHABLE_SIZE*2}buildDrawCalls(){let C=++BaseTexture._globalBatch;for(let xe=0;xe<this.drawCalls.length;xe++)this.drawCalls[xe].texArray.clear(),DRAW_CALL_POOL.push(this.drawCalls[xe]);this.drawCalls.length=0;const E=this.colors,I=this.textureIds;let B=DRAW_CALL_POOL.pop();B||(B=new BatchDrawCall,B.texArray=new BatchTextureArray),B.texArray.count=0,B.start=0,B.size=0,B.type=DRAW_MODES.TRIANGLES;let U=0,V=null,X=0,Y=!1,K=DRAW_MODES.TRIANGLES,J=0;this.drawCalls.push(B);for(let xe=0;xe<this.batches.length;xe++){const Z=this.batches[xe],_e=8,Se=Z.style,Ee=Se.texture.baseTexture;Y!==!!Se.native&&(Y=!!Se.native,K=Y?DRAW_MODES.LINES:DRAW_MODES.TRIANGLES,V=null,U=_e,C++),V!==Ee&&(V=Ee,Ee._batchEnabled!==C&&(U===_e&&(C++,U=0,B.size>0&&(B=DRAW_CALL_POOL.pop(),B||(B=new BatchDrawCall,B.texArray=new BatchTextureArray),this.drawCalls.push(B)),B.start=J,B.size=0,B.texArray.count=0,B.type=K),Ee.touched=1,Ee._batchEnabled=C,Ee._batchLocation=U,Ee.wrapMode=WRAP_MODES.REPEAT,B.texArray.elements[B.texArray.count++]=Ee,U++)),B.size+=Z.size,J+=Z.size,X=Ee._batchLocation,this.addColors(E,Se.color,Se.alpha,Z.attribSize,Z.attribStart),this.addTextureIds(I,X,Z.attribSize,Z.attribStart)}BaseTexture._globalBatch=C,this.packAttributes()}packAttributes(){const C=this.points,E=this.uvs,I=this.colors,B=this.textureIds,U=new ArrayBuffer(C.length*3*4),V=new Float32Array(U),X=new Uint32Array(U);let Y=0;for(let K=0;K<C.length/2;K++)V[Y++]=C[K*2],V[Y++]=C[K*2+1],V[Y++]=E[K*2],V[Y++]=E[K*2+1],X[Y++]=I[K],V[Y++]=B[K];this._buffer.update(U),this._indexBuffer.update(this.indicesUint16)}processFill(C){C.holes.length?buildPoly.triangulate(C,this):FILL_COMMANDS[C.type].triangulate(C,this)}processLine(C){buildLine(C,this);for(let E=0;E<C.holes.length;E++)buildLine(C.holes[E],this)}processHoles(C){for(let E=0;E<C.length;E++){const I=C[E];FILL_COMMANDS[I.type].build(I),I.matrix&&this.transformPoints(I.points,I.matrix)}}calculateBounds(){const C=this._bounds;C.clear(),C.addVertexData(this.points,0,this.points.length),C.pad(this.boundsPadding,this.boundsPadding)}transformPoints(C,E){for(let I=0;I<C.length/2;I++){const B=C[I*2],U=C[I*2+1];C[I*2]=E.a*B+E.c*U+E.tx,C[I*2+1]=E.b*B+E.d*U+E.ty}}addColors(C,E,I,B,U=0){const V=Color.shared.setValue(E).toLittleEndianNumber(),X=Color.shared.setValue(V).toPremultiplied(I);C.length=Math.max(C.length,U+B);for(let Y=0;Y<B;Y++)C[U+Y]=X}addTextureIds(C,E,I,B=0){C.length=Math.max(C.length,B+I);for(let U=0;U<I;U++)C[B+U]=E}addUvs(C,E,I,B,U,V=null){let X=0;const Y=E.length,K=I.frame;for(;X<U;){let xe=C[(B+X)*2],Z=C[(B+X)*2+1];if(V){const _e=V.a*xe+V.c*Z+V.tx;Z=V.b*xe+V.d*Z+V.ty,xe=_e}X++,E.push(xe/K.width,Z/K.height)}const J=I.baseTexture;(K.width<J.width||K.height<J.height)&&this.adjustUvs(E,I,Y,U)}adjustUvs(C,E,I,B){const U=E.baseTexture,V=1e-6,X=I+B*2,Y=E.frame,K=Y.width/U.width,J=Y.height/U.height;let xe=Y.x/Y.width,Z=Y.y/Y.height,_e=Math.floor(C[I]+V),Se=Math.floor(C[I+1]+V);for(let Ee=I+2;Ee<X;Ee+=2)_e=Math.min(_e,Math.floor(C[Ee]+V)),Se=Math.min(Se,Math.floor(C[Ee+1]+V));xe-=_e,Z-=Se;for(let Ee=I;Ee<X;Ee+=2)C[Ee]=(C[Ee]+xe)*K,C[Ee+1]=(C[Ee+1]+Z)*J}};let GraphicsGeometry=_GraphicsGeometry;GraphicsGeometry.BATCHABLE_SIZE=100;class FillStyle{constructor(){this.color=16777215,this.alpha=1,this.texture=Texture.WHITE,this.matrix=null,this.visible=!1,this.reset()}clone(){const E=new FillStyle;return E.color=this.color,E.alpha=this.alpha,E.texture=this.texture,E.matrix=this.matrix,E.visible=this.visible,E}reset(){this.color=16777215,this.alpha=1,this.texture=Texture.WHITE,this.matrix=null,this.visible=!1}destroy(){this.texture=null,this.matrix=null}}class LineStyle extends FillStyle{constructor(){super(...arguments),this.width=0,this.alignment=.5,this.native=!1,this.cap=LINE_CAP.BUTT,this.join=LINE_JOIN.MITER,this.miterLimit=10}clone(){const E=new LineStyle;return E.color=this.color,E.alpha=this.alpha,E.texture=this.texture,E.matrix=this.matrix,E.visible=this.visible,E.width=this.width,E.alignment=this.alignment,E.native=this.native,E.cap=this.cap,E.join=this.join,E.miterLimit=this.miterLimit,E}reset(){super.reset(),this.color=0,this.alignment=.5,this.width=0,this.native=!1}}const DEFAULT_SHADERS={},_Graphics=class extends Container{constructor(C=null){super(),this.shader=null,this.pluginName="batch",this.currentPath=null,this.batches=[],this.batchTint=-1,this.batchDirty=-1,this.vertexData=null,this._fillStyle=new FillStyle,this._lineStyle=new LineStyle,this._matrix=null,this._holeMode=!1,this.state=State$1.for2d(),this._geometry=C||new GraphicsGeometry,this._geometry.refCount++,this._transformID=-1,this._tintColor=new Color(16777215),this.blendMode=BLEND_MODES.NORMAL}get geometry(){return this._geometry}clone(){return this.finishPoly(),new _Graphics(this._geometry)}set blendMode(C){this.state.blendMode=C}get blendMode(){return this.state.blendMode}get tint(){return this._tintColor.value}set tint(C){this._tintColor.setValue(C)}get fill(){return this._fillStyle}get line(){return this._lineStyle}lineStyle(C=null,E=0,I,B=.5,U=!1){return typeof C=="number"&&(C={width:C,color:E,alpha:I,alignment:B,native:U}),this.lineTextureStyle(C)}lineTextureStyle(C){const E={width:0,texture:Texture.WHITE,color:C!=null&&C.texture?16777215:0,matrix:null,alignment:.5,native:!1,cap:LINE_CAP.BUTT,join:LINE_JOIN.MITER,miterLimit:10};C=Object.assign(E,C),this.normalizeColor(C),this.currentPath&&this.startPoly();const I=C.width>0&&C.alpha>0;return I?(C.matrix&&(C.matrix=C.matrix.clone(),C.matrix.invert()),Object.assign(this._lineStyle,{visible:I},C)):this._lineStyle.reset(),this}startPoly(){if(this.currentPath){const C=this.currentPath.points,E=this.currentPath.points.length;E>2&&(this.drawShape(this.currentPath),this.currentPath=new Polygon,this.currentPath.closeStroke=!1,this.currentPath.points.push(C[E-2],C[E-1]))}else this.currentPath=new Polygon,this.currentPath.closeStroke=!1}finishPoly(){this.currentPath&&(this.currentPath.points.length>2?(this.drawShape(this.currentPath),this.currentPath=null):this.currentPath.points.length=0)}moveTo(C,E){return this.startPoly(),this.currentPath.points[0]=C,this.currentPath.points[1]=E,this}lineTo(C,E){this.currentPath||this.moveTo(0,0);const I=this.currentPath.points,B=I[I.length-2],U=I[I.length-1];return(B!==C||U!==E)&&I.push(C,E),this}_initCurve(C=0,E=0){this.currentPath?this.currentPath.points.length===0&&(this.currentPath.points=[C,E]):this.moveTo(C,E)}quadraticCurveTo(C,E,I,B){this._initCurve();const U=this.currentPath.points;return U.length===0&&this.moveTo(0,0),QuadraticUtils.curveTo(C,E,I,B,U),this}bezierCurveTo(C,E,I,B,U,V){return this._initCurve(),BezierUtils.curveTo(C,E,I,B,U,V,this.currentPath.points),this}arcTo(C,E,I,B,U){this._initCurve(C,E);const V=this.currentPath.points,X=ArcUtils.curveTo(C,E,I,B,U,V);if(X){const{cx:Y,cy:K,radius:J,startAngle:xe,endAngle:Z,anticlockwise:_e}=X;this.arc(Y,K,J,xe,Z,_e)}return this}arc(C,E,I,B,U,V=!1){if(B===U)return this;if(!V&&U<=B?U+=PI_2:V&&B<=U&&(B+=PI_2),U-B===0)return this;const Y=C+Math.cos(B)*I,K=E+Math.sin(B)*I,J=this._geometry.closePointEps;let xe=this.currentPath?this.currentPath.points:null;if(xe){const Z=Math.abs(xe[xe.length-2]-Y),_e=Math.abs(xe[xe.length-1]-K);Z<J&&_e<J||xe.push(Y,K)}else this.moveTo(Y,K),xe=this.currentPath.points;return ArcUtils.arc(Y,K,C,E,I,B,U,V,xe),this}beginFill(C=0,E){return this.beginTextureFill({texture:Texture.WHITE,color:C,alpha:E})}normalizeColor(C){const E=Color.shared.setValue(C.color??0);C.color=E.toNumber(),C.alpha??(C.alpha=E.alpha)}beginTextureFill(C){const E={texture:Texture.WHITE,color:16777215,matrix:null};C=Object.assign(E,C),this.normalizeColor(C),this.currentPath&&this.startPoly();const I=C.alpha>0;return I?(C.matrix&&(C.matrix=C.matrix.clone(),C.matrix.invert()),Object.assign(this._fillStyle,{visible:I},C)):this._fillStyle.reset(),this}endFill(){return this.finishPoly(),this._fillStyle.reset(),this}drawRect(C,E,I,B){return this.drawShape(new Rectangle(C,E,I,B))}drawRoundedRect(C,E,I,B,U){return this.drawShape(new RoundedRectangle(C,E,I,B,U))}drawCircle(C,E,I){return this.drawShape(new Circle(C,E,I))}drawEllipse(C,E,I,B){return this.drawShape(new Ellipse$1(C,E,I,B))}drawPolygon(...C){let E,I=!0;const B=C[0];B.points?(I=B.closeStroke,E=B.points):Array.isArray(C[0])?E=C[0]:E=C;const U=new Polygon(E);return U.closeStroke=I,this.drawShape(U),this}drawShape(C){return this._holeMode?this._geometry.drawHole(C,this._matrix):this._geometry.drawShape(C,this._fillStyle.clone(),this._lineStyle.clone(),this._matrix),this}clear(){return this._geometry.clear(),this._lineStyle.reset(),this._fillStyle.reset(),this._boundsID++,this._matrix=null,this._holeMode=!1,this.currentPath=null,this}isFastRect(){const C=this._geometry.graphicsData;return C.length===1&&C[0].shape.type===SHAPES.RECT&&!C[0].matrix&&!C[0].holes.length&&!(C[0].lineStyle.visible&&C[0].lineStyle.width)}_render(C){this.finishPoly();const E=this._geometry;E.updateBatches(),E.batchable?(this.batchDirty!==E.batchDirty&&this._populateBatches(),this._renderBatched(C)):(C.batch.flush(),this._renderDirect(C))}_populateBatches(){const C=this._geometry,E=this.blendMode,I=C.batches.length;this.batchTint=-1,this._transformID=-1,this.batchDirty=C.batchDirty,this.batches.length=I,this.vertexData=new Float32Array(C.points);for(let B=0;B<I;B++){const U=C.batches[B],V=U.style.color,X=new Float32Array(this.vertexData.buffer,U.attribStart*4*2,U.attribSize*2),Y=new Float32Array(C.uvsFloat32.buffer,U.attribStart*4*2,U.attribSize*2),K=new Uint16Array(C.indicesUint16.buffer,U.start*2,U.size),J={vertexData:X,blendMode:E,indices:K,uvs:Y,_batchRGB:Color.shared.setValue(V).toRgbArray(),_tintRGB:V,_texture:U.style.texture,alpha:U.style.alpha,worldAlpha:1};this.batches[B]=J}}_renderBatched(C){if(this.batches.length){C.batch.setObjectRenderer(C.plugins[this.pluginName]),this.calculateVertices(),this.calculateTints();for(let E=0,I=this.batches.length;E<I;E++){const B=this.batches[E];B.worldAlpha=this.worldAlpha*B.alpha,C.plugins[this.pluginName].render(B)}}}_renderDirect(C){const E=this._resolveDirectShader(C),I=this._geometry,B=this.worldAlpha,U=E.uniforms,V=I.drawCalls;U.translationMatrix=this.transform.worldTransform,Color.shared.setValue(this._tintColor).premultiply(B).toArray(U.tint),C.shader.bind(E),C.geometry.bind(I,E),C.state.set(this.state);for(let X=0,Y=V.length;X<Y;X++)this._renderDrawCallDirect(C,I.drawCalls[X])}_renderDrawCallDirect(C,E){const{texArray:I,type:B,size:U,start:V}=E,X=I.count;for(let Y=0;Y<X;Y++)C.texture.bind(I.elements[Y],Y);C.geometry.draw(B,U,V)}_resolveDirectShader(C){let E=this.shader;const I=this.pluginName;if(!E){if(!DEFAULT_SHADERS[I]){const{maxTextures:B}=C.plugins[I],U=new Int32Array(B);for(let Y=0;Y<B;Y++)U[Y]=Y;const V={tint:new Float32Array([1,1,1,1]),translationMatrix:new Matrix$2,default:UniformGroup.from({uSamplers:U},!0)},X=C.plugins[I]._shader.program;DEFAULT_SHADERS[I]=new Shader(X,V)}E=DEFAULT_SHADERS[I]}return E}_calculateBounds(){this.finishPoly();const C=this._geometry;if(!C.graphicsData.length)return;const{minX:E,minY:I,maxX:B,maxY:U}=C.bounds;this._bounds.addFrame(this.transform,E,I,B,U)}containsPoint(C){return this.worldTransform.applyInverse(C,_Graphics._TEMP_POINT),this._geometry.containsPoint(_Graphics._TEMP_POINT)}calculateTints(){if(this.batchTint!==this.tint){this.batchTint=this._tintColor.toNumber();for(let C=0;C<this.batches.length;C++){const E=this.batches[C];E._tintRGB=Color.shared.setValue(this._tintColor).multiply(E._batchRGB).toLittleEndianNumber()}}}calculateVertices(){const C=this.transform._worldID;if(this._transformID===C)return;this._transformID=C;const E=this.transform.worldTransform,I=E.a,B=E.b,U=E.c,V=E.d,X=E.tx,Y=E.ty,K=this._geometry.points,J=this.vertexData;let xe=0;for(let Z=0;Z<K.length;Z+=2){const _e=K[Z],Se=K[Z+1];J[xe++]=I*_e+U*Se+X,J[xe++]=V*Se+B*_e+Y}}closePath(){const C=this.currentPath;return C&&(C.closeStroke=!0,this.finishPoly()),this}setMatrix(C){return this._matrix=C,this}beginHole(){return this.finishPoly(),this._holeMode=!0,this}endHole(){return this.finishPoly(),this._holeMode=!1,this}destroy(C){this._geometry.refCount--,this._geometry.refCount===0&&this._geometry.dispose(),this._matrix=null,this.currentPath=null,this._lineStyle.destroy(),this._lineStyle=null,this._fillStyle.destroy(),this._fillStyle=null,this._geometry=null,this.shader=null,this.vertexData=null,this.batches.length=0,this.batches=null,super.destroy(C)}};let Graphics=_Graphics;Graphics.curves=curves,Graphics._TEMP_POINT=new Point;var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},parserExports={},parser={get exports(){return parserExports},set exports(C){parserExports=C}};/*!
1962
1962
  * d-path-parser - v1.0.0
1963
1963
  * by Massimo Artizzu (MaxArt2501)
1964
1964
  *
@@ -1966,10 +1966,10 @@ void main() {
1966
1966
  *
1967
1967
  * Licensed under the MIT License
1968
1968
  * See LICENSE for details
1969
- */(function(C,E){(function(I,B){C.exports=B()})(commonjsGlobal,function(){return function(B){for(var U={command:/\s*([achlmqstvz])/gi,number:/\s*([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/gi,comma:/\s*(?:(,)|\s)/g,flag:/\s*([01])/g},V={number:function(Ae){return+Se("number",Ae)},"coordinate pair":function(Ae){var Re=Se("number",Ae);if(Re===null&&!Ae)return null;Se("comma");var Te=Se("number",!0);return{x:+Re,y:+Te}},"arc definition":function(Ae){var Re=V["coordinate pair"](Ae);if(!Re&&!Ae)return null;Se("comma");var Te=+Se("number",!0);Se("comma",!0);var we=!!+Se("flag",!0);Se("comma");var Pe=!!+Se("flag",!0);Se("comma");var Ie=V["coordinate pair"](!0);return{radii:Re,rotation:Te,large:we,clockwise:Pe,end:Ie}}},X=0,Y=[];X<B.length;){var K=Se("command"),J=K.toUpperCase(),xe=K!==J,Z;switch(J){case"M":Z=Ee("coordinate pair").map(function(Ae,Re){return Re===1&&(K=xe?"l":"L"),_e({end:Ae})});break;case"L":case"T":Z=Ee("coordinate pair").map(function(Ae){return _e({end:Ae})});break;case"C":if(Z=Ee("coordinate pair"),Z.length%3)throw Error("Expected coordinate pair triplet at position "+X);Z=Z.reduce(function(Ae,Re,Te){var we=Te%3;if(!we)Ae.push(_e({cp1:Re}));else{var Pe=Ae[Ae.length-1];Pe[we===1?"cp2":"end"]=Re}return Ae},[]);break;case"Q":case"S":if(Z=Ee("coordinate pair"),Z.length&1)throw Error("Expected coordinate pair couple at position "+X);Z=Z.reduce(function(Ae,Re,Te){var we=Te&1;if(!we)Ae.push(_e({cp:Re}));else{var Pe=Ae[Ae.length-1];Pe.end=Re}return Ae},[]);break;case"H":case"V":Z=Ee("number").map(function(Ae){return _e({value:Ae})});break;case"A":Z=Ee("arc definition").map(_e);break;case"Z":Z=[{code:"Z"}];break}Y.push.apply(Y,Z)}return Y;function _e(Ae){return Ae.code=K,Ae.relative=xe,Ae}function Se(Ae,Re){U[Ae].lastIndex=X;var Te=U[Ae].exec(B);if(!Te||Te.index!==X){if(!Re)return null;throw Error("Expected "+Ae+" at position "+X)}return X=U[Ae].lastIndex,Te[1]}function Ee(Ae){for(var Re=[],Te,we=!0;Te=V[Ae](we);)Re.push(Te),we=!!Se("comma");return Re}}})})(parser);const trimLeft=/^\s+/,trimRight=/\s+$/;function tinycolor(C,E){if(C=C||"",E=E||{},C instanceof tinycolor)return C;if(!(this instanceof tinycolor))return new tinycolor(C,E);var I=inputToRGB(C);this._originalInput=C,this._r=I.r,this._g=I.g,this._b=I.b,this._a=I.a,this._roundA=Math.round(100*this._a)/100,this._format=E.format||I.format,this._gradientType=E.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=I.ok}tinycolor.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var C=this.toRgb();return(C.r*299+C.g*587+C.b*114)/1e3},getLuminance:function(){var C=this.toRgb(),E,I,B,U,V,X;return E=C.r/255,I=C.g/255,B=C.b/255,E<=.03928?U=E/12.92:U=Math.pow((E+.055)/1.055,2.4),I<=.03928?V=I/12.92:V=Math.pow((I+.055)/1.055,2.4),B<=.03928?X=B/12.92:X=Math.pow((B+.055)/1.055,2.4),.2126*U+.7152*V+.0722*X},setAlpha:function(C){return this._a=boundAlpha(C),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var C=rgbToHsv(this._r,this._g,this._b);return{h:C.h*360,s:C.s,v:C.v,a:this._a}},toHsvString:function(){var C=rgbToHsv(this._r,this._g,this._b),E=Math.round(C.h*360),I=Math.round(C.s*100),B=Math.round(C.v*100);return this._a==1?"hsv("+E+", "+I+"%, "+B+"%)":"hsva("+E+", "+I+"%, "+B+"%, "+this._roundA+")"},toHsl:function(){var C=rgbToHsl(this._r,this._g,this._b);return{h:C.h*360,s:C.s,l:C.l,a:this._a}},toHslString:function(){var C=rgbToHsl(this._r,this._g,this._b),E=Math.round(C.h*360),I=Math.round(C.s*100),B=Math.round(C.l*100);return this._a==1?"hsl("+E+", "+I+"%, "+B+"%)":"hsla("+E+", "+I+"%, "+B+"%, "+this._roundA+")"},toHex:function(C){return rgbToHex(this._r,this._g,this._b,C)},toHexString:function(C){return"#"+this.toHex(C)},toHex8:function(C){return rgbaToHex(this._r,this._g,this._b,this._a,C)},toHex8String:function(C){return"#"+this.toHex8(C)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(bound01(this._r,255)*100)+"%",g:Math.round(bound01(this._g,255)*100)+"%",b:Math.round(bound01(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(bound01(this._r,255)*100)+"%, "+Math.round(bound01(this._g,255)*100)+"%, "+Math.round(bound01(this._b,255)*100)+"%)":"rgba("+Math.round(bound01(this._r,255)*100)+"%, "+Math.round(bound01(this._g,255)*100)+"%, "+Math.round(bound01(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:hexNames[rgbToHex(this._r,this._g,this._b,!0)]||!1},toFilter:function(C){var E="#"+rgbaToArgbHex(this._r,this._g,this._b,this._a),I=E,B=this._gradientType?"GradientType = 1, ":"";if(C){var U=tinycolor(C);I="#"+rgbaToArgbHex(U._r,U._g,U._b,U._a)}return"progid:DXImageTransform.Microsoft.gradient("+B+"startColorstr="+E+",endColorstr="+I+")"},toString:function(C){var E=!!C;C=C||this._format;var I=!1,B=this._a<1&&this._a>=0,U=!E&&B&&(C==="hex"||C==="hex6"||C==="hex3"||C==="hex4"||C==="hex8"||C==="name");return U?C==="name"&&this._a===0?this.toName():this.toRgbString():(C==="rgb"&&(I=this.toRgbString()),C==="prgb"&&(I=this.toPercentageRgbString()),(C==="hex"||C==="hex6")&&(I=this.toHexString()),C==="hex3"&&(I=this.toHexString(!0)),C==="hex4"&&(I=this.toHex8String(!0)),C==="hex8"&&(I=this.toHex8String()),C==="name"&&(I=this.toName()),C==="hsl"&&(I=this.toHslString()),C==="hsv"&&(I=this.toHsvString()),I||this.toHexString())},clone:function(){return tinycolor(this.toString())},_applyModification:function(C,E){var I=C.apply(null,[this].concat([].slice.call(E)));return this._r=I._r,this._g=I._g,this._b=I._b,this.setAlpha(I._a),this},lighten:function(){return this._applyModification(lighten,arguments)},brighten:function(){return this._applyModification(brighten,arguments)},darken:function(){return this._applyModification(darken,arguments)},desaturate:function(){return this._applyModification(desaturate,arguments)},saturate:function(){return this._applyModification(saturate,arguments)},greyscale:function(){return this._applyModification(greyscale,arguments)},spin:function(){return this._applyModification(spin,arguments)},_applyCombination:function(C,E){return C.apply(null,[this].concat([].slice.call(E)))},analogous:function(){return this._applyCombination(analogous,arguments)},complement:function(){return this._applyCombination(complement,arguments)},monochromatic:function(){return this._applyCombination(monochromatic,arguments)},splitcomplement:function(){return this._applyCombination(splitcomplement,arguments)},triad:function(){return this._applyCombination(polyad,[3])},tetrad:function(){return this._applyCombination(polyad,[4])}},tinycolor.fromRatio=function(C,E){if(typeof C=="object"){var I={};for(var B in C)C.hasOwnProperty(B)&&(B==="a"?I[B]=C[B]:I[B]=convertToPercentage(C[B]));C=I}return tinycolor(C,E)};function inputToRGB(C){var E={r:0,g:0,b:0},I=1,B=null,U=null,V=null,X=!1,Y=!1;return typeof C=="string"&&(C=stringInputToObject(C)),typeof C=="object"&&(isValidCSSUnit(C.r)&&isValidCSSUnit(C.g)&&isValidCSSUnit(C.b)?(E=rgbToRgb(C.r,C.g,C.b),X=!0,Y=String(C.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(C.h)&&isValidCSSUnit(C.s)&&isValidCSSUnit(C.v)?(B=convertToPercentage(C.s),U=convertToPercentage(C.v),E=hsvToRgb(C.h,B,U),X=!0,Y="hsv"):isValidCSSUnit(C.h)&&isValidCSSUnit(C.s)&&isValidCSSUnit(C.l)&&(B=convertToPercentage(C.s),V=convertToPercentage(C.l),E=hslToRgb(C.h,B,V),X=!0,Y="hsl"),C.hasOwnProperty("a")&&(I=C.a)),I=boundAlpha(I),{ok:X,format:C.format||Y,r:Math.min(255,Math.max(E.r,0)),g:Math.min(255,Math.max(E.g,0)),b:Math.min(255,Math.max(E.b,0)),a:I}}function rgbToRgb(C,E,I){return{r:bound01(C,255)*255,g:bound01(E,255)*255,b:bound01(I,255)*255}}function rgbToHsl(C,E,I){C=bound01(C,255),E=bound01(E,255),I=bound01(I,255);var B=Math.max(C,E,I),U=Math.min(C,E,I),V,X,Y=(B+U)/2;if(B==U)V=X=0;else{var K=B-U;switch(X=Y>.5?K/(2-B-U):K/(B+U),B){case C:V=(E-I)/K+(E<I?6:0);break;case E:V=(I-C)/K+2;break;case I:V=(C-E)/K+4;break}V/=6}return{h:V,s:X,l:Y}}function hslToRgb(C,E,I){var B,U,V;C=bound01(C,360),E=bound01(E,100),I=bound01(I,100);function X(J,xe,Z){return Z<0&&(Z+=1),Z>1&&(Z-=1),Z<1/6?J+(xe-J)*6*Z:Z<1/2?xe:Z<2/3?J+(xe-J)*(2/3-Z)*6:J}if(E===0)B=U=V=I;else{var Y=I<.5?I*(1+E):I+E-I*E,K=2*I-Y;B=X(K,Y,C+1/3),U=X(K,Y,C),V=X(K,Y,C-1/3)}return{r:B*255,g:U*255,b:V*255}}function rgbToHsv(C,E,I){C=bound01(C,255),E=bound01(E,255),I=bound01(I,255);var B=Math.max(C,E,I),U=Math.min(C,E,I),V,X,Y=B,K=B-U;if(X=B===0?0:K/B,B==U)V=0;else{switch(B){case C:V=(E-I)/K+(E<I?6:0);break;case E:V=(I-C)/K+2;break;case I:V=(C-E)/K+4;break}V/=6}return{h:V,s:X,v:Y}}function hsvToRgb(C,E,I){C=bound01(C,360)*6,E=bound01(E,100),I=bound01(I,100);var B=Math.floor(C),U=C-B,V=I*(1-E),X=I*(1-U*E),Y=I*(1-(1-U)*E),K=B%6,J=[I,X,V,V,Y,I][K],xe=[Y,I,I,X,V,V][K],Z=[V,V,Y,I,I,X][K];return{r:J*255,g:xe*255,b:Z*255}}function rgbToHex(C,E,I,B){var U=[pad2(Math.round(C).toString(16)),pad2(Math.round(E).toString(16)),pad2(Math.round(I).toString(16))];return B&&U[0].charAt(0)==U[0].charAt(1)&&U[1].charAt(0)==U[1].charAt(1)&&U[2].charAt(0)==U[2].charAt(1)?U[0].charAt(0)+U[1].charAt(0)+U[2].charAt(0):U.join("")}function rgbaToHex(C,E,I,B,U){var V=[pad2(Math.round(C).toString(16)),pad2(Math.round(E).toString(16)),pad2(Math.round(I).toString(16)),pad2(convertDecimalToHex(B))];return U&&V[0].charAt(0)==V[0].charAt(1)&&V[1].charAt(0)==V[1].charAt(1)&&V[2].charAt(0)==V[2].charAt(1)&&V[3].charAt(0)==V[3].charAt(1)?V[0].charAt(0)+V[1].charAt(0)+V[2].charAt(0)+V[3].charAt(0):V.join("")}function rgbaToArgbHex(C,E,I,B){var U=[pad2(convertDecimalToHex(B)),pad2(Math.round(C).toString(16)),pad2(Math.round(E).toString(16)),pad2(Math.round(I).toString(16))];return U.join("")}tinycolor.equals=function(C,E){return!C||!E?!1:tinycolor(C).toRgbString()==tinycolor(E).toRgbString()},tinycolor.random=function(){return tinycolor.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function desaturate(C,E){E=E===0?0:E||10;var I=tinycolor(C).toHsl();return I.s-=E/100,I.s=clamp01(I.s),tinycolor(I)}function saturate(C,E){E=E===0?0:E||10;var I=tinycolor(C).toHsl();return I.s+=E/100,I.s=clamp01(I.s),tinycolor(I)}function greyscale(C){return tinycolor(C).desaturate(100)}function lighten(C,E){E=E===0?0:E||10;var I=tinycolor(C).toHsl();return I.l+=E/100,I.l=clamp01(I.l),tinycolor(I)}function brighten(C,E){E=E===0?0:E||10;var I=tinycolor(C).toRgb();return I.r=Math.max(0,Math.min(255,I.r-Math.round(255*-(E/100)))),I.g=Math.max(0,Math.min(255,I.g-Math.round(255*-(E/100)))),I.b=Math.max(0,Math.min(255,I.b-Math.round(255*-(E/100)))),tinycolor(I)}function darken(C,E){E=E===0?0:E||10;var I=tinycolor(C).toHsl();return I.l-=E/100,I.l=clamp01(I.l),tinycolor(I)}function spin(C,E){var I=tinycolor(C).toHsl(),B=(I.h+E)%360;return I.h=B<0?360+B:B,tinycolor(I)}function complement(C){var E=tinycolor(C).toHsl();return E.h=(E.h+180)%360,tinycolor(E)}function polyad(C,E){if(isNaN(E)||E<=0)throw new Error("Argument to polyad must be a positive number");for(var I=tinycolor(C).toHsl(),B=[tinycolor(C)],U=360/E,V=1;V<E;V++)B.push(tinycolor({h:(I.h+V*U)%360,s:I.s,l:I.l}));return B}function splitcomplement(C){var E=tinycolor(C).toHsl(),I=E.h;return[tinycolor(C),tinycolor({h:(I+72)%360,s:E.s,l:E.l}),tinycolor({h:(I+216)%360,s:E.s,l:E.l})]}function analogous(C,E,I){E=E||6,I=I||30;var B=tinycolor(C).toHsl(),U=360/I,V=[tinycolor(C)];for(B.h=(B.h-(U*E>>1)+720)%360;--E;)B.h=(B.h+U)%360,V.push(tinycolor(B));return V}function monochromatic(C,E){E=E||6;for(var I=tinycolor(C).toHsv(),B=I.h,U=I.s,V=I.v,X=[],Y=1/E;E--;)X.push(tinycolor({h:B,s:U,v:V})),V=(V+Y)%1;return X}tinycolor.mix=function(C,E,I){I=I===0?0:I||50;var B=tinycolor(C).toRgb(),U=tinycolor(E).toRgb(),V=I/100,X={r:(U.r-B.r)*V+B.r,g:(U.g-B.g)*V+B.g,b:(U.b-B.b)*V+B.b,a:(U.a-B.a)*V+B.a};return tinycolor(X)},tinycolor.readability=function(C,E){var I=tinycolor(C),B=tinycolor(E);return(Math.max(I.getLuminance(),B.getLuminance())+.05)/(Math.min(I.getLuminance(),B.getLuminance())+.05)},tinycolor.isReadable=function(C,E,I){var B=tinycolor.readability(C,E),U,V;switch(V=!1,U=validateWCAG2Parms(I),U.level+U.size){case"AAsmall":case"AAAlarge":V=B>=4.5;break;case"AAlarge":V=B>=3;break;case"AAAsmall":V=B>=7;break}return V},tinycolor.mostReadable=function(C,E,I){var B=null,U=0,V,X,Y,K;I=I||{},X=I.includeFallbackColors,Y=I.level,K=I.size;for(var J=0;J<E.length;J++)V=tinycolor.readability(C,E[J]),V>U&&(U=V,B=tinycolor(E[J]));return tinycolor.isReadable(C,B,{level:Y,size:K})||!X?B:(I.includeFallbackColors=!1,tinycolor.mostReadable(C,["#fff","#000"],I))};var names=tinycolor.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},hexNames=tinycolor.hexNames=flip(names);function flip(C){var E={};for(var I in C)C.hasOwnProperty(I)&&(E[C[I]]=I);return E}function boundAlpha(C){return C=parseFloat(C),(isNaN(C)||C<0||C>1)&&(C=1),C}function bound01(C,E){isOnePointZero(C)&&(C="100%");var I=isPercentage(C);return C=Math.min(E,Math.max(0,parseFloat(C))),I&&(C=parseInt(C*E,10)/100),Math.abs(C-E)<1e-6?1:C%E/parseFloat(E)}function clamp01(C){return Math.min(1,Math.max(0,C))}function parseIntFromHex(C){return parseInt(C,16)}function isOnePointZero(C){return typeof C=="string"&&C.indexOf(".")!=-1&&parseFloat(C)===1}function isPercentage(C){return typeof C=="string"&&C.indexOf("%")!=-1}function pad2(C){return C.length==1?"0"+C:""+C}function convertToPercentage(C){return C<=1&&(C=C*100+"%"),C}function convertDecimalToHex(C){return Math.round(parseFloat(C)*255).toString(16)}function convertHexToDecimal(C){return parseIntFromHex(C)/255}var matchers=function(){var C="[-\\+]?\\d+%?",E="[-\\+]?\\d*\\.\\d+%?",I="(?:"+E+")|(?:"+C+")",B="[\\s|\\(]+("+I+")[,|\\s]+("+I+")[,|\\s]+("+I+")\\s*\\)?",U="[\\s|\\(]+("+I+")[,|\\s]+("+I+")[,|\\s]+("+I+")[,|\\s]+("+I+")\\s*\\)?";return{CSS_UNIT:new RegExp(I),rgb:new RegExp("rgb"+B),rgba:new RegExp("rgba"+U),hsl:new RegExp("hsl"+B),hsla:new RegExp("hsla"+U),hsv:new RegExp("hsv"+B),hsva:new RegExp("hsva"+U),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function isValidCSSUnit(C){return!!matchers.CSS_UNIT.exec(C)}function stringInputToObject(C){C=C.replace(trimLeft,"").replace(trimRight,"").toLowerCase();var E=!1;if(names[C])C=names[C],E=!0;else if(C=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var I;return(I=matchers.rgb.exec(C))?{r:I[1],g:I[2],b:I[3]}:(I=matchers.rgba.exec(C))?{r:I[1],g:I[2],b:I[3],a:I[4]}:(I=matchers.hsl.exec(C))?{h:I[1],s:I[2],l:I[3]}:(I=matchers.hsla.exec(C))?{h:I[1],s:I[2],l:I[3],a:I[4]}:(I=matchers.hsv.exec(C))?{h:I[1],s:I[2],v:I[3]}:(I=matchers.hsva.exec(C))?{h:I[1],s:I[2],v:I[3],a:I[4]}:(I=matchers.hex8.exec(C))?{r:parseIntFromHex(I[1]),g:parseIntFromHex(I[2]),b:parseIntFromHex(I[3]),a:convertHexToDecimal(I[4]),format:E?"name":"hex8"}:(I=matchers.hex6.exec(C))?{r:parseIntFromHex(I[1]),g:parseIntFromHex(I[2]),b:parseIntFromHex(I[3]),format:E?"name":"hex"}:(I=matchers.hex4.exec(C))?{r:parseIntFromHex(I[1]+""+I[1]),g:parseIntFromHex(I[2]+""+I[2]),b:parseIntFromHex(I[3]+""+I[3]),a:convertHexToDecimal(I[4]+""+I[4]),format:E?"name":"hex8"}:(I=matchers.hex3.exec(C))?{r:parseIntFromHex(I[1]+""+I[1]),g:parseIntFromHex(I[2]+""+I[2]),b:parseIntFromHex(I[3]+""+I[3]),format:E?"name":"hex"}:!1}function validateWCAG2Parms(C){var E,I;return C=C||{level:"AA",size:"small"},E=(C.level||"AA").toUpperCase(),I=(C.size||"small").toLowerCase(),E!=="AA"&&E!=="AAA"&&(E="AA"),I!=="small"&&I!=="large"&&(I="small"),{level:E,size:I}}var _slicedToArray=function(){function C(E,I){var B=[],U=!0,V=!1,X=void 0;try{for(var Y=E[Symbol.iterator](),K;!(U=(K=Y.next()).done)&&(B.push(K.value),!(I&&B.length===I));U=!0);}catch(J){V=!0,X=J}finally{try{!U&&Y.return&&Y.return()}finally{if(V)throw X}}return B}return function(E,I){if(Array.isArray(E))return E;if(Symbol.iterator in Object(E))return C(E,I);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),TAU$2=Math.PI*2,mapToEllipse=function(E,I,B,U,V,X,Y){var K=E.x,J=E.y;K*=I,J*=B;var xe=U*K-V*J,Z=V*K+U*J;return{x:xe+X,y:Z+Y}},approxUnitArc=function(E,I){var B=I===1.5707963267948966?.551915024494:I===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(I/4),U=Math.cos(E),V=Math.sin(E),X=Math.cos(E+I),Y=Math.sin(E+I);return[{x:U-V*B,y:V+U*B},{x:X+Y*B,y:Y-X*B},{x:X,y:Y}]},vectorAngle=function(E,I,B,U){var V=E*U-I*B<0?-1:1,X=E*B+I*U;return X>1&&(X=1),X<-1&&(X=-1),V*Math.acos(X)},getArcCenter=function(E,I,B,U,V,X,Y,K,J,xe,Z,_e){var Se=Math.pow(V,2),Ee=Math.pow(X,2),Ae=Math.pow(Z,2),Re=Math.pow(_e,2),Te=Se*Ee-Se*Re-Ee*Ae;Te<0&&(Te=0),Te/=Se*Re+Ee*Ae,Te=Math.sqrt(Te)*(Y===K?-1:1);var we=Te*V/X*_e,Pe=Te*-X/V*Z,Ie=xe*we-J*Pe+(E+B)/2,Fe=J*we+xe*Pe+(I+U)/2,Oe=(Z-we)/V,Le=(_e-Pe)/X,De=(-Z-we)/V,Ve=(-_e-Pe)/X,Xe=vectorAngle(1,0,Oe,Le),Ue=vectorAngle(Oe,Le,De,Ve);return K===0&&Ue>0&&(Ue-=TAU$2),K===1&&Ue<0&&(Ue+=TAU$2),[Ie,Fe,Xe,Ue]},arcToBezier=function(E){var I=E.px,B=E.py,U=E.cx,V=E.cy,X=E.rx,Y=E.ry,K=E.xAxisRotation,J=K===void 0?0:K,xe=E.largeArcFlag,Z=xe===void 0?0:xe,_e=E.sweepFlag,Se=_e===void 0?0:_e,Ee=[];if(X===0||Y===0)return[];var Ae=Math.sin(J*TAU$2/360),Re=Math.cos(J*TAU$2/360),Te=Re*(I-U)/2+Ae*(B-V)/2,we=-Ae*(I-U)/2+Re*(B-V)/2;if(Te===0&&we===0)return[];X=Math.abs(X),Y=Math.abs(Y);var Pe=Math.pow(Te,2)/Math.pow(X,2)+Math.pow(we,2)/Math.pow(Y,2);Pe>1&&(X*=Math.sqrt(Pe),Y*=Math.sqrt(Pe));var Ie=getArcCenter(I,B,U,V,X,Y,Z,Se,Ae,Re,Te,we),Fe=_slicedToArray(Ie,4),Oe=Fe[0],Le=Fe[1],De=Fe[2],Ve=Fe[3],Xe=Math.abs(Ve)/(TAU$2/4);Math.abs(1-Xe)<1e-7&&(Xe=1);var Ue=Math.max(Math.ceil(Xe),1);Ve/=Ue;for(var We=0;We<Ue;We++)Ee.push(approxUnitArc(De,Ve)),De+=Ve;return Ee.map(function(je){var ze=mapToEllipse(je[0],X,Y,Re,Ae,Oe,Le),He=ze.x,$e=ze.y,Ne=mapToEllipse(je[1],X,Y,Re,Ae,Oe,Le),Me=Ne.x,ke=Ne.y,Ge=mapToEllipse(je[2],X,Y,Re,Ae,Oe,Le),Be=Ge.x,qe=Ge.y;return{x1:He,y1:$e,x2:Me,y2:ke,x:Be,y:qe}})};class SVG extends Graphics{constructor(E){super(),this.lineColor=null,E&&this.drawSVG(E)}drawSVG(E){if(typeof E=="string"){const I=document.createElement("div");I.innerHTML=E.trim(),E=I.querySelector("svg")}if(!E)throw new Error("Missing <svg> element in SVG constructor");return this._svgFill(E),this._svgChildren(E.children),this}_svgChildren(E,I=!1){for(let B=0;B<E.length;B++){const U=E[B];switch(this._svgFill(U,I),U.nodeName.toLowerCase()){case"path":{this._svgPath(U);break}case"circle":case"ellipse":{this._svgCircle(U);break}case"rect":{this._svgRect(U);break}case"polygon":{this._svgPoly(U,!0);break}case"polyline":{this._svgPoly(U);break}case"g":break;default:{console.info(`[PIXI.SVG] <${U.nodeName}> elements unsupported`);break}}this._svgChildren(U.children,!0)}}_hexToUint(E){if(E[0]==="#")return E=E.substr(1),E.length===3&&(E=E.replace(/([a-f0-9])/ig,"$1$1")),parseInt(E,16);const{r:I,g:B,b:U}=tinycolor(E).toRgb();return(I<<16)+(B<<8)+U}_svgCircle(E){let I="r",B="r";const U=E.nodeName==="elipse";U&&(I+="x",B+="y");const V=parseFloat(E.getAttribute(B)),X=parseFloat(E.getAttribute(I)),Y=E.getAttribute("cx"),K=E.getAttribute("cy");let J=0,xe=0;Y!==null&&(J=parseFloat(Y)),K!==null&&(xe=parseFloat(K)),U?this.drawEllipse(J,xe,V,X):this.drawCircle(J,xe,V)}_svgRect(E){const I=parseFloat(E.getAttribute("x")),B=parseFloat(E.getAttribute("y")),U=parseFloat(E.getAttribute("width")),V=parseFloat(E.getAttribute("height")),X=parseFloat(E.getAttribute("rx"));X?this.drawRoundedRect(I,B,U,V,X):this.drawRect(I,B,U,V)}_convertStyleName(E){return E.trim().replace("-width","Width").replace(/.*-(line)?/,"")}_svgStyle(E){const I=E.getAttribute("style"),B=E.getAttribute("opacity"),U={fill:E.getAttribute("fill"),opacity:B||E.getAttribute("fill-opacity"),stroke:E.getAttribute("stroke"),strokeOpacity:B||E.getAttribute("stroke-opacity"),strokeWidth:E.getAttribute("stroke-width"),cap:E.getAttribute("stroke-linecap"),join:E.getAttribute("stroke-linejoin"),miterLimit:E.getAttribute("stroke-miterlimit")};return I!==null&&I.split(";").forEach(V=>{const[X,Y]=V.split(":");if(X){const K=this._convertStyleName(X);U[K]||(U[K]=Y.trim())}}),U}_svgPoly(E,I){const B=E.getAttribute("points").split(/[ ,]/g).map(U=>parseInt(U,10));this.drawPolygon(B),I&&this.closePath()}_svgFill(E,I){const{fill:B,opacity:U,stroke:V,strokeOpacity:X,strokeWidth:Y,cap:K,join:J,miterLimit:xe}=this._svgStyle(E),_e=Y!==null?parseFloat(Y):V!==null?1:0,Se=V!==null?this._hexToUint(V):this.lineColor;B?B==="none"?this.beginFill(0,0):this.beginFill(this._hexToUint(B),U!==null?parseFloat(U):1):I||this.beginFill(0),this.lineStyle({width:V===null&&Y===null&&I?this.line.width:_e,alpha:X===null?this.line.alpha:parseFloat(X),color:V===null&&I?this.line.color:Se,cap:K===null&&I?this.line.cap:K,join:J===null&&I?this.line.join:J,miterLimit:xe===null&&I?this.line.miterLimit:parseFloat(xe)}),E.getAttribute("fill-rule")&&console.info('[PIXI.SVG] "fill-rule" attribute is not supported')}_svgPath(E){const I=E.getAttribute("d");let B=0,U=0;const V=parserExports(I.trim());for(let X=0;X<V.length;X++){const Y=V[X];switch(Y.code){case"m":{this.moveTo(B+=Y.end.x,U+=Y.end.y);break}case"M":{this.moveTo(B=Y.end.x,U=Y.end.y);break}case"H":{this.lineTo(B=Y.value,U);break}case"h":{this.lineTo(B+=Y.value,U);break}case"V":{this.lineTo(B,U=Y.value);break}case"v":{this.lineTo(B,U+=Y.value);break}case"Z":{this.closePath();break}case"L":{this.lineTo(B=Y.end.x,U=Y.end.y);break}case"l":{this.lineTo(B+=Y.end.x,U+=Y.end.y);break}case"C":{this.bezierCurveTo(Y.cp1.x,Y.cp1.y,Y.cp2.x,Y.cp2.y,B=Y.end.x,U=Y.end.y);break}case"c":{const K=B,J=U;this.bezierCurveTo(K+Y.cp1.x,J+Y.cp1.y,K+Y.cp2.x,J+Y.cp2.y,B+=Y.end.x,U+=Y.end.y);break}case"s":case"q":{const K=B,J=U;this.quadraticCurveTo(K+Y.cp.x,J+Y.cp.y,B+=Y.end.x,U+=Y.end.y);break}case"S":case"Q":{this.quadraticCurveTo(Y.cp.x,Y.cp.y,B=Y.end.x,U=Y.end.y);break}case"a":{arcToBezier({px:B,py:U,cx:B+=Y.end.x,cy:U+=Y.end.y,rx:Y.radii.x,ry:Y.radii.y,xAxisRotation:Y.rotation,largeArcFlag:Y.large?1:0,sweepFlag:Y.clockwise?1:0}).forEach(({x1:K,y1:J,x2:xe,y2:Z,x:_e,y:Se})=>this.bezierCurveTo(K,J,xe,Z,_e,Se));break}case"A":{arcToBezier({px:B,py:U,cx:B=Y.end.x,cy:U=Y.end.y,rx:Y.radii.x,ry:Y.radii.y,xAxisRotation:Y.rotation,largeArcFlag:Y.large?1:0,sweepFlag:Y.clockwise?1:0}).forEach(({x1:K,y1:J,x2:xe,y2:Z,x:_e,y:Se})=>this.bezierCurveTo(K,J,xe,Z,_e,Se));break}default:{console.info("[PIXI.SVG] Draw command not supported:",Y.code,Y);break}}}}}var paramCounts={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},SPECIAL_SPACES=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function isSpace(C){return C===10||C===13||C===8232||C===8233||C===32||C===9||C===11||C===12||C===160||C>=5760&&SPECIAL_SPACES.indexOf(C)>=0}function isCommand(C){switch(C|32){case 109:case 122:case 108:case 104:case 118:case 99:case 115:case 113:case 116:case 97:case 114:return!0}return!1}function isArc(C){return(C|32)===97}function isDigit(C){return C>=48&&C<=57}function isDigitStart(C){return C>=48&&C<=57||C===43||C===45||C===46}function State(C){this.index=0,this.path=C,this.max=C.length,this.result=[],this.param=0,this.err="",this.segmentStart=0,this.data=[]}function skipSpaces(C){for(;C.index<C.max&&isSpace(C.path.charCodeAt(C.index));)C.index++}function scanFlag(C){var E=C.path.charCodeAt(C.index);if(E===48){C.param=0,C.index++;return}if(E===49){C.param=1,C.index++;return}C.err="SvgPath: arc flag can be 0 or 1 only (at pos "+C.index+")"}function scanParam(C){var E=C.index,I=E,B=C.max,U=!1,V=!1,X=!1,Y=!1,K;if(I>=B){C.err="SvgPath: missed param (at pos "+I+")";return}if(K=C.path.charCodeAt(I),(K===43||K===45)&&(I++,K=I<B?C.path.charCodeAt(I):0),!isDigit(K)&&K!==46){C.err="SvgPath: param should start with 0..9 or `.` (at pos "+I+")";return}if(K!==46){if(U=K===48,I++,K=I<B?C.path.charCodeAt(I):0,U&&I<B&&K&&isDigit(K)){C.err="SvgPath: numbers started with `0` such as `09` are illegal (at pos "+E+")";return}for(;I<B&&isDigit(C.path.charCodeAt(I));)I++,V=!0;K=I<B?C.path.charCodeAt(I):0}if(K===46){for(Y=!0,I++;isDigit(C.path.charCodeAt(I));)I++,X=!0;K=I<B?C.path.charCodeAt(I):0}if(K===101||K===69){if(Y&&!V&&!X){C.err="SvgPath: invalid float exponent (at pos "+I+")";return}if(I++,K=I<B?C.path.charCodeAt(I):0,(K===43||K===45)&&I++,I<B&&isDigit(C.path.charCodeAt(I)))for(;I<B&&isDigit(C.path.charCodeAt(I));)I++;else{C.err="SvgPath: invalid float exponent (at pos "+I+")";return}}C.index=I,C.param=parseFloat(C.path.slice(E,I))+0}function finalizeSegment(C){var E,I;E=C.path[C.segmentStart],I=E.toLowerCase();var B=C.data;if(I==="m"&&B.length>2&&(C.result.push([E,B[0],B[1]]),B=B.slice(2),I="l",E=E==="m"?"l":"L"),I==="r")C.result.push([E].concat(B));else for(;B.length>=paramCounts[I]&&(C.result.push([E].concat(B.splice(0,paramCounts[I]))),!!paramCounts[I]););}function scanSegment(C){var E=C.max,I,B,U,V,X;if(C.segmentStart=C.index,I=C.path.charCodeAt(C.index),B=isArc(I),!isCommand(I)){C.err="SvgPath: bad command "+C.path[C.index]+" (at pos "+C.index+")";return}if(V=paramCounts[C.path[C.index].toLowerCase()],C.index++,skipSpaces(C),C.data=[],!V){finalizeSegment(C);return}for(U=!1;;){for(X=V;X>0;X--){if(B&&(X===3||X===4)?scanFlag(C):scanParam(C),C.err.length){finalizeSegment(C);return}C.data.push(C.param),skipSpaces(C),U=!1,C.index<E&&C.path.charCodeAt(C.index)===44&&(C.index++,skipSpaces(C),U=!0)}if(!U&&(C.index>=C.max||!isDigitStart(C.path.charCodeAt(C.index))))break}finalizeSegment(C)}var path_parse=function(E){var I=new State(E),B=I.max;for(skipSpaces(I);I.index<B&&!I.err.length;)scanSegment(I);return I.result.length&&("mM".indexOf(I.result[0][0])<0?(I.err="SvgPath: string should start with `M` or `m`",I.result=[]):I.result[0][0]="M"),{err:I.err,segments:I.result}};function combine(C,E){return[C[0]*E[0]+C[2]*E[1],C[1]*E[0]+C[3]*E[1],C[0]*E[2]+C[2]*E[3],C[1]*E[2]+C[3]*E[3],C[0]*E[4]+C[2]*E[5]+C[4],C[1]*E[4]+C[3]*E[5]+C[5]]}function Matrix$1(){if(!(this instanceof Matrix$1))return new Matrix$1;this.queue=[],this.cache=null}Matrix$1.prototype.matrix=function(C){return C[0]===1&&C[1]===0&&C[2]===0&&C[3]===1&&C[4]===0&&C[5]===0?this:(this.cache=null,this.queue.push(C),this)},Matrix$1.prototype.translate=function(C,E){return(C!==0||E!==0)&&(this.cache=null,this.queue.push([1,0,0,1,C,E])),this},Matrix$1.prototype.scale=function(C,E){return(C!==1||E!==1)&&(this.cache=null,this.queue.push([C,0,0,E,0,0])),this},Matrix$1.prototype.rotate=function(C,E,I){var B,U,V;return C!==0&&(this.translate(E,I),B=C*Math.PI/180,U=Math.cos(B),V=Math.sin(B),this.queue.push([U,V,-V,U,0,0]),this.cache=null,this.translate(-E,-I)),this},Matrix$1.prototype.skewX=function(C){return C!==0&&(this.cache=null,this.queue.push([1,0,Math.tan(C*Math.PI/180),1,0,0])),this},Matrix$1.prototype.skewY=function(C){return C!==0&&(this.cache=null,this.queue.push([1,Math.tan(C*Math.PI/180),0,1,0,0])),this},Matrix$1.prototype.toArray=function(){if(this.cache)return this.cache;if(!this.queue.length)return this.cache=[1,0,0,1,0,0],this.cache;if(this.cache=this.queue[0],this.queue.length===1)return this.cache;for(var C=1;C<this.queue.length;C++)this.cache=combine(this.cache,this.queue[C]);return this.cache},Matrix$1.prototype.calc=function(C,E,I){var B;return this.queue.length?(this.cache||(this.cache=this.toArray()),B=this.cache,[C*B[0]+E*B[2]+(I?0:B[4]),C*B[1]+E*B[3]+(I?0:B[5])]):[C,E]};var matrix$1=Matrix$1,Matrix=matrix$1,operations={matrix:!0,scale:!0,rotate:!0,translate:!0,skewX:!0,skewY:!0},CMD_SPLIT_RE=/\s*(matrix|translate|scale|rotate|skewX|skewY)\s*\(\s*(.+?)\s*\)[\s,]*/,PARAMS_SPLIT_RE=/[\s,]+/,transform_parse=function(E){var I=new Matrix,B,U;return E.split(CMD_SPLIT_RE).forEach(function(V){if(V.length){if(typeof operations[V]<"u"){B=V;return}switch(U=V.split(PARAMS_SPLIT_RE).map(function(X){return+X||0}),B){case"matrix":U.length===6&&I.matrix(U);return;case"scale":U.length===1?I.scale(U[0],U[0]):U.length===2&&I.scale(U[0],U[1]);return;case"rotate":U.length===1?I.rotate(U[0],0,0):U.length===3&&I.rotate(U[0],U[1],U[2]);return;case"translate":U.length===1?I.translate(U[0],0):U.length===2&&I.translate(U[0],U[1]);return;case"skewX":U.length===1&&I.skewX(U[0]);return;case"skewY":U.length===1&&I.skewY(U[0]);return}}}),I},TAU$1=Math.PI*2;function unit_vector_angle(C,E,I,B){var U=C*B-E*I<0?-1:1,V=C*I+E*B;return V>1&&(V=1),V<-1&&(V=-1),U*Math.acos(V)}function get_arc_center(C,E,I,B,U,V,X,Y,K,J){var xe=J*(C-I)/2+K*(E-B)/2,Z=-K*(C-I)/2+J*(E-B)/2,_e=X*X,Se=Y*Y,Ee=xe*xe,Ae=Z*Z,Re=_e*Se-_e*Ae-Se*Ee;Re<0&&(Re=0),Re/=_e*Ae+Se*Ee,Re=Math.sqrt(Re)*(U===V?-1:1);var Te=Re*X/Y*Z,we=Re*-Y/X*xe,Pe=J*Te-K*we+(C+I)/2,Ie=K*Te+J*we+(E+B)/2,Fe=(xe-Te)/X,Oe=(Z-we)/Y,Le=(-xe-Te)/X,De=(-Z-we)/Y,Ve=unit_vector_angle(1,0,Fe,Oe),Xe=unit_vector_angle(Fe,Oe,Le,De);return V===0&&Xe>0&&(Xe-=TAU$1),V===1&&Xe<0&&(Xe+=TAU$1),[Pe,Ie,Ve,Xe]}function approximate_unit_arc(C,E){var I=1.3333333333333333*Math.tan(E/4),B=Math.cos(C),U=Math.sin(C),V=Math.cos(C+E),X=Math.sin(C+E);return[B,U,B-U*I,U+B*I,V+X*I,X-V*I,V,X]}var a2c$1=function(E,I,B,U,V,X,Y,K,J){var xe=Math.sin(J*TAU$1/360),Z=Math.cos(J*TAU$1/360),_e=Z*(E-B)/2+xe*(I-U)/2,Se=-xe*(E-B)/2+Z*(I-U)/2;if(_e===0&&Se===0)return[];if(Y===0||K===0)return[];Y=Math.abs(Y),K=Math.abs(K);var Ee=_e*_e/(Y*Y)+Se*Se/(K*K);Ee>1&&(Y*=Math.sqrt(Ee),K*=Math.sqrt(Ee));var Ae=get_arc_center(E,I,B,U,V,X,Y,K,xe,Z),Re=[],Te=Ae[2],we=Ae[3],Pe=Math.max(Math.ceil(Math.abs(we)/(TAU$1/4)),1);we/=Pe;for(var Ie=0;Ie<Pe;Ie++)Re.push(approximate_unit_arc(Te,we)),Te+=we;return Re.map(function(Fe){for(var Oe=0;Oe<Fe.length;Oe+=2){var Le=Fe[Oe+0],De=Fe[Oe+1];Le*=Y,De*=K;var Ve=Z*Le-xe*De,Xe=xe*Le+Z*De;Fe[Oe+0]=Ve+Ae[0],Fe[Oe+1]=Xe+Ae[1]}return Fe})},epsilon=1e-10,torad=Math.PI/180;function Ellipse(C,E,I){if(!(this instanceof Ellipse))return new Ellipse(C,E,I);this.rx=C,this.ry=E,this.ax=I}Ellipse.prototype.transform=function(C){var E=Math.cos(this.ax*torad),I=Math.sin(this.ax*torad),B=[this.rx*(C[0]*E+C[2]*I),this.rx*(C[1]*E+C[3]*I),this.ry*(-C[0]*I+C[2]*E),this.ry*(-C[1]*I+C[3]*E)],U=B[0]*B[0]+B[2]*B[2],V=B[1]*B[1]+B[3]*B[3],X=((B[0]-B[3])*(B[0]-B[3])+(B[2]+B[1])*(B[2]+B[1]))*((B[0]+B[3])*(B[0]+B[3])+(B[2]-B[1])*(B[2]-B[1])),Y=(U+V)/2;if(X<epsilon*Y)return this.rx=this.ry=Math.sqrt(Y),this.ax=0,this;var K=B[0]*B[1]+B[2]*B[3];X=Math.sqrt(X);var J=Y+X/2,xe=Y-X/2;return this.ax=Math.abs(K)<epsilon&&Math.abs(J-V)<epsilon?90:Math.atan(Math.abs(K)>Math.abs(J-V)?(J-U)/K:K/(J-V))*180/Math.PI,this.ax>=0?(this.rx=Math.sqrt(J),this.ry=Math.sqrt(xe)):(this.ax+=90,this.rx=Math.sqrt(xe),this.ry=Math.sqrt(J)),this},Ellipse.prototype.isDegenerate=function(){return this.rx<epsilon*this.ry||this.ry<epsilon*this.rx};var ellipse$1=Ellipse,pathParse=path_parse,transformParse=transform_parse,matrix=matrix$1,a2c=a2c$1,ellipse=ellipse$1;function SvgPath(C){if(!(this instanceof SvgPath))return new SvgPath(C);var E=pathParse(C);this.segments=E.segments,this.err=E.err,this.__stack=[]}SvgPath.from=function(C){if(typeof C=="string")return new SvgPath(C);if(C instanceof SvgPath){var E=new SvgPath("");return E.err=C.err,E.segments=C.segments.map(function(I){return I.slice()}),E.__stack=C.__stack.map(function(I){return matrix().matrix(I.toArray())}),E}throw new Error("SvgPath.from: invalid param type "+C)},SvgPath.prototype.__matrix=function(C){var E=this,I;C.queue.length&&this.iterate(function(B,U,V,X){var Y,K,J,xe;switch(B[0]){case"v":Y=C.calc(0,B[1],!0),K=Y[0]===0?["v",Y[1]]:["l",Y[0],Y[1]];break;case"V":Y=C.calc(V,B[1],!1),K=Y[0]===C.calc(V,X,!1)[0]?["V",Y[1]]:["L",Y[0],Y[1]];break;case"h":Y=C.calc(B[1],0,!0),K=Y[1]===0?["h",Y[0]]:["l",Y[0],Y[1]];break;case"H":Y=C.calc(B[1],X,!1),K=Y[1]===C.calc(V,X,!1)[1]?["H",Y[0]]:["L",Y[0],Y[1]];break;case"a":case"A":var Z=C.toArray(),_e=ellipse(B[1],B[2],B[3]).transform(Z);if(Z[0]*Z[3]-Z[1]*Z[2]<0&&(B[5]=B[5]?"0":"1"),Y=C.calc(B[6],B[7],B[0]==="a"),B[0]==="A"&&B[6]===V&&B[7]===X||B[0]==="a"&&B[6]===0&&B[7]===0){K=[B[0]==="a"?"l":"L",Y[0],Y[1]];break}_e.isDegenerate()?K=[B[0]==="a"?"l":"L",Y[0],Y[1]]:K=[B[0],_e.rx,_e.ry,_e.ax,B[4],B[5],Y[0],Y[1]];break;case"m":xe=U>0,Y=C.calc(B[1],B[2],xe),K=["m",Y[0],Y[1]];break;default:for(J=B[0],K=[J],xe=J.toLowerCase()===J,I=1;I<B.length;I+=2)Y=C.calc(B[I],B[I+1],xe),K.push(Y[0],Y[1])}E.segments[U]=K},!0)},SvgPath.prototype.__evaluateStack=function(){var C,E;if(this.__stack.length){if(this.__stack.length===1){this.__matrix(this.__stack[0]),this.__stack=[];return}for(C=matrix(),E=this.__stack.length;--E>=0;)C.matrix(this.__stack[E].toArray());this.__matrix(C),this.__stack=[]}},SvgPath.prototype.toString=function(){var C="",E="",I=!1;this.__evaluateStack();for(var B=0,U=this.segments.length;B<U;B++){var V=this.segments[B],X=V[0];X!==E||X==="m"||X==="M"?(X==="m"&&E==="z"&&(C+=" "),C+=X,I=!1):I=!0;for(var Y=1;Y<V.length;Y++){var K=V[Y];Y===1?I&&K>=0&&(C+=" "):K>=0&&(C+=" "),C+=K}E=X}return C},SvgPath.prototype.translate=function(C,E){return this.__stack.push(matrix().translate(C,E||0)),this},SvgPath.prototype.scale=function(C,E){return this.__stack.push(matrix().scale(C,!E&&E!==0?C:E)),this},SvgPath.prototype.rotate=function(C,E,I){return this.__stack.push(matrix().rotate(C,E||0,I||0)),this},SvgPath.prototype.skewX=function(C){return this.__stack.push(matrix().skewX(C)),this},SvgPath.prototype.skewY=function(C){return this.__stack.push(matrix().skewY(C)),this},SvgPath.prototype.matrix=function(C){return this.__stack.push(matrix().matrix(C)),this},SvgPath.prototype.transform=function(C){return C.trim()?(this.__stack.push(transformParse(C)),this):this},SvgPath.prototype.round=function(C){var E=0,I=0,B=0,U=0,V;return C=C||0,this.__evaluateStack(),this.segments.forEach(function(X){var Y=X[0].toLowerCase()===X[0];switch(X[0]){case"H":case"h":Y&&(X[1]+=B),B=X[1]-X[1].toFixed(C),X[1]=+X[1].toFixed(C);return;case"V":case"v":Y&&(X[1]+=U),U=X[1]-X[1].toFixed(C),X[1]=+X[1].toFixed(C);return;case"Z":case"z":B=E,U=I;return;case"M":case"m":Y&&(X[1]+=B,X[2]+=U),B=X[1]-X[1].toFixed(C),U=X[2]-X[2].toFixed(C),E=B,I=U,X[1]=+X[1].toFixed(C),X[2]=+X[2].toFixed(C);return;case"A":case"a":Y&&(X[6]+=B,X[7]+=U),B=X[6]-X[6].toFixed(C),U=X[7]-X[7].toFixed(C),X[1]=+X[1].toFixed(C),X[2]=+X[2].toFixed(C),X[3]=+X[3].toFixed(C+2),X[6]=+X[6].toFixed(C),X[7]=+X[7].toFixed(C);return;default:V=X.length,Y&&(X[V-2]+=B,X[V-1]+=U),B=X[V-2]-X[V-2].toFixed(C),U=X[V-1]-X[V-1].toFixed(C),X.forEach(function(K,J){J&&(X[J]=+X[J].toFixed(C))});return}}),this},SvgPath.prototype.iterate=function(C,E){var I=this.segments,B={},U=!1,V=0,X=0,Y=0,K=0,J,xe,Z;if(E||this.__evaluateStack(),I.forEach(function(_e,Se){var Ee=C(_e,Se,V,X);Array.isArray(Ee)&&(B[Se]=Ee,U=!0);var Ae=_e[0]===_e[0].toLowerCase();switch(_e[0]){case"m":case"M":V=_e[1]+(Ae?V:0),X=_e[2]+(Ae?X:0),Y=V,K=X;return;case"h":case"H":V=_e[1]+(Ae?V:0);return;case"v":case"V":X=_e[1]+(Ae?X:0);return;case"z":case"Z":V=Y,X=K;return;default:V=_e[_e.length-2]+(Ae?V:0),X=_e[_e.length-1]+(Ae?X:0)}}),!U)return this;for(Z=[],J=0;J<I.length;J++)if(typeof B[J]<"u")for(xe=0;xe<B[J].length;xe++)Z.push(B[J][xe]);else Z.push(I[J]);return this.segments=Z,this},SvgPath.prototype.abs=function(){return this.iterate(function(C,E,I,B){var U=C[0],V=U.toUpperCase(),X;if(U!==V)switch(C[0]=V,U){case"v":C[1]+=B;return;case"a":C[6]+=I,C[7]+=B;return;default:for(X=1;X<C.length;X++)C[X]+=X%2?I:B}},!0),this},SvgPath.prototype.rel=function(){return this.iterate(function(C,E,I,B){var U=C[0],V=U.toLowerCase(),X;if(U!==V&&!(E===0&&U==="M"))switch(C[0]=V,U){case"V":C[1]-=B;return;case"A":C[6]-=I,C[7]-=B;return;default:for(X=1;X<C.length;X++)C[X]-=X%2?I:B}},!0),this},SvgPath.prototype.unarc=function(){return this.iterate(function(C,E,I,B){var U,V,X,Y=[],K=C[0];return K!=="A"&&K!=="a"?null:(K==="a"?(V=I+C[6],X=B+C[7]):(V=C[6],X=C[7]),U=a2c(I,B,V,X,C[4],C[5],C[1],C[2],C[3]),U.length===0?[[C[0]==="a"?"l":"L",C[6],C[7]]]:(U.forEach(function(J){Y.push(["C",J[2],J[3],J[4],J[5],J[6],J[7]])}),Y))}),this},SvgPath.prototype.unshort=function(){var C=this.segments,E,I,B,U,V;return this.iterate(function(X,Y,K,J){var xe=X[0],Z=xe.toUpperCase(),_e;Y&&(Z==="T"?(_e=xe==="t",B=C[Y-1],B[0]==="Q"?(E=B[1]-K,I=B[2]-J):B[0]==="q"?(E=B[1]-B[3],I=B[2]-B[4]):(E=0,I=0),U=-E,V=-I,_e||(U+=K,V+=J),C[Y]=[_e?"q":"Q",U,V,X[1],X[2]]):Z==="S"&&(_e=xe==="s",B=C[Y-1],B[0]==="C"?(E=B[3]-K,I=B[4]-J):B[0]==="c"?(E=B[3]-B[5],I=B[4]-B[6]):(E=0,I=0),U=-E,V=-I,_e||(U+=K,V+=J),C[Y]=[_e?"c":"C",U,V,X[1],X[2],X[3],X[4]]))}),this};var svgpath$2=SvgPath,svgpath=svgpath$2;const svgpath$1=getDefaultExportFromCjs(svgpath),PixiSvgPathSprite=React__namespace.forwardRef((C,E)=>{const[I,B]=React__namespace.useState(null),U=React.useRef(null),V=React.useRef(null),X=React.useRef(null),{path:Y,visible:K,disabled:J,transformation:{x:xe,y:Z,width:_e,height:Se,anchor:Ee,hexColor:Ae,fill:Re,stroke:Te="none",strokeWidth:we=0,colorCorrection:Pe={}},pointerdown:Ie,pointerup:Fe}=C,Oe=react.useApp(),{temperatureFilter:Le,sharpnessFilter:De,hueFilter:Ve,blurFilter:Xe,adjustmentFilter:Ue,vignetteFilter:We,noiseFilter:je}=withFiltersHook(Pe),{blurRadius:ze=0,vignette:He=0,noise:$e=0}=Pe;return React__namespace.useEffect(()=>{const Ne=svgpath$1(Y).scale(5).translate(0,0).toString(),Me=`<svg xmlns="http://www.w3.org/2000/svg" width="${_e}" height="${Se}">
1970
- <path stroke="${Te}" stroke-width="${we}" fill="${Ae||Re}" d="${Ne}">
1969
+ */(function(C,E){(function(I,B){C.exports=B()})(commonjsGlobal,function(){return function(B){for(var U={command:/\s*([achlmqstvz])/gi,number:/\s*([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/gi,comma:/\s*(?:(,)|\s)/g,flag:/\s*([01])/g},V={number:function(Ae){return+Se("number",Ae)},"coordinate pair":function(Ae){var Re=Se("number",Ae);if(Re===null&&!Ae)return null;Se("comma");var Te=Se("number",!0);return{x:+Re,y:+Te}},"arc definition":function(Ae){var Re=V["coordinate pair"](Ae);if(!Re&&!Ae)return null;Se("comma");var Te=+Se("number",!0);Se("comma",!0);var we=!!+Se("flag",!0);Se("comma");var Pe=!!+Se("flag",!0);Se("comma");var Ie=V["coordinate pair"](!0);return{radii:Re,rotation:Te,large:we,clockwise:Pe,end:Ie}}},X=0,Y=[];X<B.length;){var K=Se("command"),J=K.toUpperCase(),xe=K!==J,Z;switch(J){case"M":Z=Ee("coordinate pair").map(function(Ae,Re){return Re===1&&(K=xe?"l":"L"),_e({end:Ae})});break;case"L":case"T":Z=Ee("coordinate pair").map(function(Ae){return _e({end:Ae})});break;case"C":if(Z=Ee("coordinate pair"),Z.length%3)throw Error("Expected coordinate pair triplet at position "+X);Z=Z.reduce(function(Ae,Re,Te){var we=Te%3;if(!we)Ae.push(_e({cp1:Re}));else{var Pe=Ae[Ae.length-1];Pe[we===1?"cp2":"end"]=Re}return Ae},[]);break;case"Q":case"S":if(Z=Ee("coordinate pair"),Z.length&1)throw Error("Expected coordinate pair couple at position "+X);Z=Z.reduce(function(Ae,Re,Te){var we=Te&1;if(!we)Ae.push(_e({cp:Re}));else{var Pe=Ae[Ae.length-1];Pe.end=Re}return Ae},[]);break;case"H":case"V":Z=Ee("number").map(function(Ae){return _e({value:Ae})});break;case"A":Z=Ee("arc definition").map(_e);break;case"Z":Z=[{code:"Z"}];break}Y.push.apply(Y,Z)}return Y;function _e(Ae){return Ae.code=K,Ae.relative=xe,Ae}function Se(Ae,Re){U[Ae].lastIndex=X;var Te=U[Ae].exec(B);if(!Te||Te.index!==X){if(!Re)return null;throw Error("Expected "+Ae+" at position "+X)}return X=U[Ae].lastIndex,Te[1]}function Ee(Ae){for(var Re=[],Te,we=!0;Te=V[Ae](we);)Re.push(Te),we=!!Se("comma");return Re}}})})(parser);const trimLeft=/^\s+/,trimRight=/\s+$/;function tinycolor(C,E){if(C=C||"",E=E||{},C instanceof tinycolor)return C;if(!(this instanceof tinycolor))return new tinycolor(C,E);var I=inputToRGB(C);this._originalInput=C,this._r=I.r,this._g=I.g,this._b=I.b,this._a=I.a,this._roundA=Math.round(100*this._a)/100,this._format=E.format||I.format,this._gradientType=E.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=I.ok}tinycolor.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var C=this.toRgb();return(C.r*299+C.g*587+C.b*114)/1e3},getLuminance:function(){var C=this.toRgb(),E,I,B,U,V,X;return E=C.r/255,I=C.g/255,B=C.b/255,E<=.03928?U=E/12.92:U=Math.pow((E+.055)/1.055,2.4),I<=.03928?V=I/12.92:V=Math.pow((I+.055)/1.055,2.4),B<=.03928?X=B/12.92:X=Math.pow((B+.055)/1.055,2.4),.2126*U+.7152*V+.0722*X},setAlpha:function(C){return this._a=boundAlpha(C),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var C=rgbToHsv(this._r,this._g,this._b);return{h:C.h*360,s:C.s,v:C.v,a:this._a}},toHsvString:function(){var C=rgbToHsv(this._r,this._g,this._b),E=Math.round(C.h*360),I=Math.round(C.s*100),B=Math.round(C.v*100);return this._a==1?"hsv("+E+", "+I+"%, "+B+"%)":"hsva("+E+", "+I+"%, "+B+"%, "+this._roundA+")"},toHsl:function(){var C=rgbToHsl(this._r,this._g,this._b);return{h:C.h*360,s:C.s,l:C.l,a:this._a}},toHslString:function(){var C=rgbToHsl(this._r,this._g,this._b),E=Math.round(C.h*360),I=Math.round(C.s*100),B=Math.round(C.l*100);return this._a==1?"hsl("+E+", "+I+"%, "+B+"%)":"hsla("+E+", "+I+"%, "+B+"%, "+this._roundA+")"},toHex:function(C){return rgbToHex(this._r,this._g,this._b,C)},toHexString:function(C){return"#"+this.toHex(C)},toHex8:function(C){return rgbaToHex(this._r,this._g,this._b,this._a,C)},toHex8String:function(C){return"#"+this.toHex8(C)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(bound01(this._r,255)*100)+"%",g:Math.round(bound01(this._g,255)*100)+"%",b:Math.round(bound01(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(bound01(this._r,255)*100)+"%, "+Math.round(bound01(this._g,255)*100)+"%, "+Math.round(bound01(this._b,255)*100)+"%)":"rgba("+Math.round(bound01(this._r,255)*100)+"%, "+Math.round(bound01(this._g,255)*100)+"%, "+Math.round(bound01(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:hexNames[rgbToHex(this._r,this._g,this._b,!0)]||!1},toFilter:function(C){var E="#"+rgbaToArgbHex(this._r,this._g,this._b,this._a),I=E,B=this._gradientType?"GradientType = 1, ":"";if(C){var U=tinycolor(C);I="#"+rgbaToArgbHex(U._r,U._g,U._b,U._a)}return"progid:DXImageTransform.Microsoft.gradient("+B+"startColorstr="+E+",endColorstr="+I+")"},toString:function(C){var E=!!C;C=C||this._format;var I=!1,B=this._a<1&&this._a>=0,U=!E&&B&&(C==="hex"||C==="hex6"||C==="hex3"||C==="hex4"||C==="hex8"||C==="name");return U?C==="name"&&this._a===0?this.toName():this.toRgbString():(C==="rgb"&&(I=this.toRgbString()),C==="prgb"&&(I=this.toPercentageRgbString()),(C==="hex"||C==="hex6")&&(I=this.toHexString()),C==="hex3"&&(I=this.toHexString(!0)),C==="hex4"&&(I=this.toHex8String(!0)),C==="hex8"&&(I=this.toHex8String()),C==="name"&&(I=this.toName()),C==="hsl"&&(I=this.toHslString()),C==="hsv"&&(I=this.toHsvString()),I||this.toHexString())},clone:function(){return tinycolor(this.toString())},_applyModification:function(C,E){var I=C.apply(null,[this].concat([].slice.call(E)));return this._r=I._r,this._g=I._g,this._b=I._b,this.setAlpha(I._a),this},lighten:function(){return this._applyModification(lighten,arguments)},brighten:function(){return this._applyModification(brighten,arguments)},darken:function(){return this._applyModification(darken,arguments)},desaturate:function(){return this._applyModification(desaturate,arguments)},saturate:function(){return this._applyModification(saturate,arguments)},greyscale:function(){return this._applyModification(greyscale,arguments)},spin:function(){return this._applyModification(spin,arguments)},_applyCombination:function(C,E){return C.apply(null,[this].concat([].slice.call(E)))},analogous:function(){return this._applyCombination(analogous,arguments)},complement:function(){return this._applyCombination(complement,arguments)},monochromatic:function(){return this._applyCombination(monochromatic,arguments)},splitcomplement:function(){return this._applyCombination(splitcomplement,arguments)},triad:function(){return this._applyCombination(polyad,[3])},tetrad:function(){return this._applyCombination(polyad,[4])}},tinycolor.fromRatio=function(C,E){if(typeof C=="object"){var I={};for(var B in C)C.hasOwnProperty(B)&&(B==="a"?I[B]=C[B]:I[B]=convertToPercentage(C[B]));C=I}return tinycolor(C,E)};function inputToRGB(C){var E={r:0,g:0,b:0},I=1,B=null,U=null,V=null,X=!1,Y=!1;return typeof C=="string"&&(C=stringInputToObject(C)),typeof C=="object"&&(isValidCSSUnit(C.r)&&isValidCSSUnit(C.g)&&isValidCSSUnit(C.b)?(E=rgbToRgb(C.r,C.g,C.b),X=!0,Y=String(C.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(C.h)&&isValidCSSUnit(C.s)&&isValidCSSUnit(C.v)?(B=convertToPercentage(C.s),U=convertToPercentage(C.v),E=hsvToRgb(C.h,B,U),X=!0,Y="hsv"):isValidCSSUnit(C.h)&&isValidCSSUnit(C.s)&&isValidCSSUnit(C.l)&&(B=convertToPercentage(C.s),V=convertToPercentage(C.l),E=hslToRgb(C.h,B,V),X=!0,Y="hsl"),C.hasOwnProperty("a")&&(I=C.a)),I=boundAlpha(I),{ok:X,format:C.format||Y,r:Math.min(255,Math.max(E.r,0)),g:Math.min(255,Math.max(E.g,0)),b:Math.min(255,Math.max(E.b,0)),a:I}}function rgbToRgb(C,E,I){return{r:bound01(C,255)*255,g:bound01(E,255)*255,b:bound01(I,255)*255}}function rgbToHsl(C,E,I){C=bound01(C,255),E=bound01(E,255),I=bound01(I,255);var B=Math.max(C,E,I),U=Math.min(C,E,I),V,X,Y=(B+U)/2;if(B==U)V=X=0;else{var K=B-U;switch(X=Y>.5?K/(2-B-U):K/(B+U),B){case C:V=(E-I)/K+(E<I?6:0);break;case E:V=(I-C)/K+2;break;case I:V=(C-E)/K+4;break}V/=6}return{h:V,s:X,l:Y}}function hslToRgb(C,E,I){var B,U,V;C=bound01(C,360),E=bound01(E,100),I=bound01(I,100);function X(J,xe,Z){return Z<0&&(Z+=1),Z>1&&(Z-=1),Z<1/6?J+(xe-J)*6*Z:Z<1/2?xe:Z<2/3?J+(xe-J)*(2/3-Z)*6:J}if(E===0)B=U=V=I;else{var Y=I<.5?I*(1+E):I+E-I*E,K=2*I-Y;B=X(K,Y,C+1/3),U=X(K,Y,C),V=X(K,Y,C-1/3)}return{r:B*255,g:U*255,b:V*255}}function rgbToHsv(C,E,I){C=bound01(C,255),E=bound01(E,255),I=bound01(I,255);var B=Math.max(C,E,I),U=Math.min(C,E,I),V,X,Y=B,K=B-U;if(X=B===0?0:K/B,B==U)V=0;else{switch(B){case C:V=(E-I)/K+(E<I?6:0);break;case E:V=(I-C)/K+2;break;case I:V=(C-E)/K+4;break}V/=6}return{h:V,s:X,v:Y}}function hsvToRgb(C,E,I){C=bound01(C,360)*6,E=bound01(E,100),I=bound01(I,100);var B=Math.floor(C),U=C-B,V=I*(1-E),X=I*(1-U*E),Y=I*(1-(1-U)*E),K=B%6,J=[I,X,V,V,Y,I][K],xe=[Y,I,I,X,V,V][K],Z=[V,V,Y,I,I,X][K];return{r:J*255,g:xe*255,b:Z*255}}function rgbToHex(C,E,I,B){var U=[pad2(Math.round(C).toString(16)),pad2(Math.round(E).toString(16)),pad2(Math.round(I).toString(16))];return B&&U[0].charAt(0)==U[0].charAt(1)&&U[1].charAt(0)==U[1].charAt(1)&&U[2].charAt(0)==U[2].charAt(1)?U[0].charAt(0)+U[1].charAt(0)+U[2].charAt(0):U.join("")}function rgbaToHex(C,E,I,B,U){var V=[pad2(Math.round(C).toString(16)),pad2(Math.round(E).toString(16)),pad2(Math.round(I).toString(16)),pad2(convertDecimalToHex(B))];return U&&V[0].charAt(0)==V[0].charAt(1)&&V[1].charAt(0)==V[1].charAt(1)&&V[2].charAt(0)==V[2].charAt(1)&&V[3].charAt(0)==V[3].charAt(1)?V[0].charAt(0)+V[1].charAt(0)+V[2].charAt(0)+V[3].charAt(0):V.join("")}function rgbaToArgbHex(C,E,I,B){var U=[pad2(convertDecimalToHex(B)),pad2(Math.round(C).toString(16)),pad2(Math.round(E).toString(16)),pad2(Math.round(I).toString(16))];return U.join("")}tinycolor.equals=function(C,E){return!C||!E?!1:tinycolor(C).toRgbString()==tinycolor(E).toRgbString()},tinycolor.random=function(){return tinycolor.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function desaturate(C,E){E=E===0?0:E||10;var I=tinycolor(C).toHsl();return I.s-=E/100,I.s=clamp01(I.s),tinycolor(I)}function saturate(C,E){E=E===0?0:E||10;var I=tinycolor(C).toHsl();return I.s+=E/100,I.s=clamp01(I.s),tinycolor(I)}function greyscale(C){return tinycolor(C).desaturate(100)}function lighten(C,E){E=E===0?0:E||10;var I=tinycolor(C).toHsl();return I.l+=E/100,I.l=clamp01(I.l),tinycolor(I)}function brighten(C,E){E=E===0?0:E||10;var I=tinycolor(C).toRgb();return I.r=Math.max(0,Math.min(255,I.r-Math.round(255*-(E/100)))),I.g=Math.max(0,Math.min(255,I.g-Math.round(255*-(E/100)))),I.b=Math.max(0,Math.min(255,I.b-Math.round(255*-(E/100)))),tinycolor(I)}function darken(C,E){E=E===0?0:E||10;var I=tinycolor(C).toHsl();return I.l-=E/100,I.l=clamp01(I.l),tinycolor(I)}function spin(C,E){var I=tinycolor(C).toHsl(),B=(I.h+E)%360;return I.h=B<0?360+B:B,tinycolor(I)}function complement(C){var E=tinycolor(C).toHsl();return E.h=(E.h+180)%360,tinycolor(E)}function polyad(C,E){if(isNaN(E)||E<=0)throw new Error("Argument to polyad must be a positive number");for(var I=tinycolor(C).toHsl(),B=[tinycolor(C)],U=360/E,V=1;V<E;V++)B.push(tinycolor({h:(I.h+V*U)%360,s:I.s,l:I.l}));return B}function splitcomplement(C){var E=tinycolor(C).toHsl(),I=E.h;return[tinycolor(C),tinycolor({h:(I+72)%360,s:E.s,l:E.l}),tinycolor({h:(I+216)%360,s:E.s,l:E.l})]}function analogous(C,E,I){E=E||6,I=I||30;var B=tinycolor(C).toHsl(),U=360/I,V=[tinycolor(C)];for(B.h=(B.h-(U*E>>1)+720)%360;--E;)B.h=(B.h+U)%360,V.push(tinycolor(B));return V}function monochromatic(C,E){E=E||6;for(var I=tinycolor(C).toHsv(),B=I.h,U=I.s,V=I.v,X=[],Y=1/E;E--;)X.push(tinycolor({h:B,s:U,v:V})),V=(V+Y)%1;return X}tinycolor.mix=function(C,E,I){I=I===0?0:I||50;var B=tinycolor(C).toRgb(),U=tinycolor(E).toRgb(),V=I/100,X={r:(U.r-B.r)*V+B.r,g:(U.g-B.g)*V+B.g,b:(U.b-B.b)*V+B.b,a:(U.a-B.a)*V+B.a};return tinycolor(X)},tinycolor.readability=function(C,E){var I=tinycolor(C),B=tinycolor(E);return(Math.max(I.getLuminance(),B.getLuminance())+.05)/(Math.min(I.getLuminance(),B.getLuminance())+.05)},tinycolor.isReadable=function(C,E,I){var B=tinycolor.readability(C,E),U,V;switch(V=!1,U=validateWCAG2Parms(I),U.level+U.size){case"AAsmall":case"AAAlarge":V=B>=4.5;break;case"AAlarge":V=B>=3;break;case"AAAsmall":V=B>=7;break}return V},tinycolor.mostReadable=function(C,E,I){var B=null,U=0,V,X,Y,K;I=I||{},X=I.includeFallbackColors,Y=I.level,K=I.size;for(var J=0;J<E.length;J++)V=tinycolor.readability(C,E[J]),V>U&&(U=V,B=tinycolor(E[J]));return tinycolor.isReadable(C,B,{level:Y,size:K})||!X?B:(I.includeFallbackColors=!1,tinycolor.mostReadable(C,["#fff","#000"],I))};var names=tinycolor.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},hexNames=tinycolor.hexNames=flip(names);function flip(C){var E={};for(var I in C)C.hasOwnProperty(I)&&(E[C[I]]=I);return E}function boundAlpha(C){return C=parseFloat(C),(isNaN(C)||C<0||C>1)&&(C=1),C}function bound01(C,E){isOnePointZero(C)&&(C="100%");var I=isPercentage(C);return C=Math.min(E,Math.max(0,parseFloat(C))),I&&(C=parseInt(C*E,10)/100),Math.abs(C-E)<1e-6?1:C%E/parseFloat(E)}function clamp01(C){return Math.min(1,Math.max(0,C))}function parseIntFromHex(C){return parseInt(C,16)}function isOnePointZero(C){return typeof C=="string"&&C.indexOf(".")!=-1&&parseFloat(C)===1}function isPercentage(C){return typeof C=="string"&&C.indexOf("%")!=-1}function pad2(C){return C.length==1?"0"+C:""+C}function convertToPercentage(C){return C<=1&&(C=C*100+"%"),C}function convertDecimalToHex(C){return Math.round(parseFloat(C)*255).toString(16)}function convertHexToDecimal(C){return parseIntFromHex(C)/255}var matchers=function(){var C="[-\\+]?\\d+%?",E="[-\\+]?\\d*\\.\\d+%?",I="(?:"+E+")|(?:"+C+")",B="[\\s|\\(]+("+I+")[,|\\s]+("+I+")[,|\\s]+("+I+")\\s*\\)?",U="[\\s|\\(]+("+I+")[,|\\s]+("+I+")[,|\\s]+("+I+")[,|\\s]+("+I+")\\s*\\)?";return{CSS_UNIT:new RegExp(I),rgb:new RegExp("rgb"+B),rgba:new RegExp("rgba"+U),hsl:new RegExp("hsl"+B),hsla:new RegExp("hsla"+U),hsv:new RegExp("hsv"+B),hsva:new RegExp("hsva"+U),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function isValidCSSUnit(C){return!!matchers.CSS_UNIT.exec(C)}function stringInputToObject(C){C=C.replace(trimLeft,"").replace(trimRight,"").toLowerCase();var E=!1;if(names[C])C=names[C],E=!0;else if(C=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var I;return(I=matchers.rgb.exec(C))?{r:I[1],g:I[2],b:I[3]}:(I=matchers.rgba.exec(C))?{r:I[1],g:I[2],b:I[3],a:I[4]}:(I=matchers.hsl.exec(C))?{h:I[1],s:I[2],l:I[3]}:(I=matchers.hsla.exec(C))?{h:I[1],s:I[2],l:I[3],a:I[4]}:(I=matchers.hsv.exec(C))?{h:I[1],s:I[2],v:I[3]}:(I=matchers.hsva.exec(C))?{h:I[1],s:I[2],v:I[3],a:I[4]}:(I=matchers.hex8.exec(C))?{r:parseIntFromHex(I[1]),g:parseIntFromHex(I[2]),b:parseIntFromHex(I[3]),a:convertHexToDecimal(I[4]),format:E?"name":"hex8"}:(I=matchers.hex6.exec(C))?{r:parseIntFromHex(I[1]),g:parseIntFromHex(I[2]),b:parseIntFromHex(I[3]),format:E?"name":"hex"}:(I=matchers.hex4.exec(C))?{r:parseIntFromHex(I[1]+""+I[1]),g:parseIntFromHex(I[2]+""+I[2]),b:parseIntFromHex(I[3]+""+I[3]),a:convertHexToDecimal(I[4]+""+I[4]),format:E?"name":"hex8"}:(I=matchers.hex3.exec(C))?{r:parseIntFromHex(I[1]+""+I[1]),g:parseIntFromHex(I[2]+""+I[2]),b:parseIntFromHex(I[3]+""+I[3]),format:E?"name":"hex"}:!1}function validateWCAG2Parms(C){var E,I;return C=C||{level:"AA",size:"small"},E=(C.level||"AA").toUpperCase(),I=(C.size||"small").toLowerCase(),E!=="AA"&&E!=="AAA"&&(E="AA"),I!=="small"&&I!=="large"&&(I="small"),{level:E,size:I}}var _slicedToArray=function(){function C(E,I){var B=[],U=!0,V=!1,X=void 0;try{for(var Y=E[Symbol.iterator](),K;!(U=(K=Y.next()).done)&&(B.push(K.value),!(I&&B.length===I));U=!0);}catch(J){V=!0,X=J}finally{try{!U&&Y.return&&Y.return()}finally{if(V)throw X}}return B}return function(E,I){if(Array.isArray(E))return E;if(Symbol.iterator in Object(E))return C(E,I);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),TAU$2=Math.PI*2,mapToEllipse=function(E,I,B,U,V,X,Y){var K=E.x,J=E.y;K*=I,J*=B;var xe=U*K-V*J,Z=V*K+U*J;return{x:xe+X,y:Z+Y}},approxUnitArc=function(E,I){var B=I===1.5707963267948966?.551915024494:I===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(I/4),U=Math.cos(E),V=Math.sin(E),X=Math.cos(E+I),Y=Math.sin(E+I);return[{x:U-V*B,y:V+U*B},{x:X+Y*B,y:Y-X*B},{x:X,y:Y}]},vectorAngle=function(E,I,B,U){var V=E*U-I*B<0?-1:1,X=E*B+I*U;return X>1&&(X=1),X<-1&&(X=-1),V*Math.acos(X)},getArcCenter=function(E,I,B,U,V,X,Y,K,J,xe,Z,_e){var Se=Math.pow(V,2),Ee=Math.pow(X,2),Ae=Math.pow(Z,2),Re=Math.pow(_e,2),Te=Se*Ee-Se*Re-Ee*Ae;Te<0&&(Te=0),Te/=Se*Re+Ee*Ae,Te=Math.sqrt(Te)*(Y===K?-1:1);var we=Te*V/X*_e,Pe=Te*-X/V*Z,Ie=xe*we-J*Pe+(E+B)/2,Me=J*we+xe*Pe+(I+U)/2,Oe=(Z-we)/V,Le=(_e-Pe)/X,$e=(-Z-we)/V,Ve=(-_e-Pe)/X,Xe=vectorAngle(1,0,Oe,Le),Ue=vectorAngle(Oe,Le,$e,Ve);return K===0&&Ue>0&&(Ue-=TAU$2),K===1&&Ue<0&&(Ue+=TAU$2),[Ie,Me,Xe,Ue]},arcToBezier=function(E){var I=E.px,B=E.py,U=E.cx,V=E.cy,X=E.rx,Y=E.ry,K=E.xAxisRotation,J=K===void 0?0:K,xe=E.largeArcFlag,Z=xe===void 0?0:xe,_e=E.sweepFlag,Se=_e===void 0?0:_e,Ee=[];if(X===0||Y===0)return[];var Ae=Math.sin(J*TAU$2/360),Re=Math.cos(J*TAU$2/360),Te=Re*(I-U)/2+Ae*(B-V)/2,we=-Ae*(I-U)/2+Re*(B-V)/2;if(Te===0&&we===0)return[];X=Math.abs(X),Y=Math.abs(Y);var Pe=Math.pow(Te,2)/Math.pow(X,2)+Math.pow(we,2)/Math.pow(Y,2);Pe>1&&(X*=Math.sqrt(Pe),Y*=Math.sqrt(Pe));var Ie=getArcCenter(I,B,U,V,X,Y,Z,Se,Ae,Re,Te,we),Me=_slicedToArray(Ie,4),Oe=Me[0],Le=Me[1],$e=Me[2],Ve=Me[3],Xe=Math.abs(Ve)/(TAU$2/4);Math.abs(1-Xe)<1e-7&&(Xe=1);var Ue=Math.max(Math.ceil(Xe),1);Ve/=Ue;for(var We=0;We<Ue;We++)Ee.push(approxUnitArc($e,Ve)),$e+=Ve;return Ee.map(function(ze){var He=mapToEllipse(ze[0],X,Y,Re,Ae,Oe,Le),je=He.x,Ne=He.y,De=mapToEllipse(ze[1],X,Y,Re,Ae,Oe,Le),Fe=De.x,ke=De.y,Ge=mapToEllipse(ze[2],X,Y,Re,Ae,Oe,Le),Be=Ge.x,qe=Ge.y;return{x1:je,y1:Ne,x2:Fe,y2:ke,x:Be,y:qe}})};class SVG extends Graphics{constructor(E){super(),this.lineColor=null,E&&this.drawSVG(E)}drawSVG(E){if(typeof E=="string"){const I=document.createElement("div");I.innerHTML=E.trim(),E=I.querySelector("svg")}if(!E)throw new Error("Missing <svg> element in SVG constructor");return this._svgFill(E),this._svgChildren(E.children),this}_svgChildren(E,I=!1){for(let B=0;B<E.length;B++){const U=E[B];switch(this._svgFill(U,I),U.nodeName.toLowerCase()){case"path":{this._svgPath(U);break}case"circle":case"ellipse":{this._svgCircle(U);break}case"rect":{this._svgRect(U);break}case"polygon":{this._svgPoly(U,!0);break}case"polyline":{this._svgPoly(U);break}case"g":break;default:{console.info(`[PIXI.SVG] <${U.nodeName}> elements unsupported`);break}}this._svgChildren(U.children,!0)}}_hexToUint(E){if(E[0]==="#")return E=E.substr(1),E.length===3&&(E=E.replace(/([a-f0-9])/ig,"$1$1")),parseInt(E,16);const{r:I,g:B,b:U}=tinycolor(E).toRgb();return(I<<16)+(B<<8)+U}_svgCircle(E){let I="r",B="r";const U=E.nodeName==="elipse";U&&(I+="x",B+="y");const V=parseFloat(E.getAttribute(B)),X=parseFloat(E.getAttribute(I)),Y=E.getAttribute("cx"),K=E.getAttribute("cy");let J=0,xe=0;Y!==null&&(J=parseFloat(Y)),K!==null&&(xe=parseFloat(K)),U?this.drawEllipse(J,xe,V,X):this.drawCircle(J,xe,V)}_svgRect(E){const I=parseFloat(E.getAttribute("x")),B=parseFloat(E.getAttribute("y")),U=parseFloat(E.getAttribute("width")),V=parseFloat(E.getAttribute("height")),X=parseFloat(E.getAttribute("rx"));X?this.drawRoundedRect(I,B,U,V,X):this.drawRect(I,B,U,V)}_convertStyleName(E){return E.trim().replace("-width","Width").replace(/.*-(line)?/,"")}_svgStyle(E){const I=E.getAttribute("style"),B=E.getAttribute("opacity"),U={fill:E.getAttribute("fill"),opacity:B||E.getAttribute("fill-opacity"),stroke:E.getAttribute("stroke"),strokeOpacity:B||E.getAttribute("stroke-opacity"),strokeWidth:E.getAttribute("stroke-width"),cap:E.getAttribute("stroke-linecap"),join:E.getAttribute("stroke-linejoin"),miterLimit:E.getAttribute("stroke-miterlimit")};return I!==null&&I.split(";").forEach(V=>{const[X,Y]=V.split(":");if(X){const K=this._convertStyleName(X);U[K]||(U[K]=Y.trim())}}),U}_svgPoly(E,I){const B=E.getAttribute("points").split(/[ ,]/g).map(U=>parseInt(U,10));this.drawPolygon(B),I&&this.closePath()}_svgFill(E,I){const{fill:B,opacity:U,stroke:V,strokeOpacity:X,strokeWidth:Y,cap:K,join:J,miterLimit:xe}=this._svgStyle(E),_e=Y!==null?parseFloat(Y):V!==null?1:0,Se=V!==null?this._hexToUint(V):this.lineColor;B?B==="none"?this.beginFill(0,0):this.beginFill(this._hexToUint(B),U!==null?parseFloat(U):1):I||this.beginFill(0),this.lineStyle({width:V===null&&Y===null&&I?this.line.width:_e,alpha:X===null?this.line.alpha:parseFloat(X),color:V===null&&I?this.line.color:Se,cap:K===null&&I?this.line.cap:K,join:J===null&&I?this.line.join:J,miterLimit:xe===null&&I?this.line.miterLimit:parseFloat(xe)}),E.getAttribute("fill-rule")&&console.info('[PIXI.SVG] "fill-rule" attribute is not supported')}_svgPath(E){const I=E.getAttribute("d");let B=0,U=0;const V=parserExports(I.trim());for(let X=0;X<V.length;X++){const Y=V[X];switch(Y.code){case"m":{this.moveTo(B+=Y.end.x,U+=Y.end.y);break}case"M":{this.moveTo(B=Y.end.x,U=Y.end.y);break}case"H":{this.lineTo(B=Y.value,U);break}case"h":{this.lineTo(B+=Y.value,U);break}case"V":{this.lineTo(B,U=Y.value);break}case"v":{this.lineTo(B,U+=Y.value);break}case"Z":{this.closePath();break}case"L":{this.lineTo(B=Y.end.x,U=Y.end.y);break}case"l":{this.lineTo(B+=Y.end.x,U+=Y.end.y);break}case"C":{this.bezierCurveTo(Y.cp1.x,Y.cp1.y,Y.cp2.x,Y.cp2.y,B=Y.end.x,U=Y.end.y);break}case"c":{const K=B,J=U;this.bezierCurveTo(K+Y.cp1.x,J+Y.cp1.y,K+Y.cp2.x,J+Y.cp2.y,B+=Y.end.x,U+=Y.end.y);break}case"s":case"q":{const K=B,J=U;this.quadraticCurveTo(K+Y.cp.x,J+Y.cp.y,B+=Y.end.x,U+=Y.end.y);break}case"S":case"Q":{this.quadraticCurveTo(Y.cp.x,Y.cp.y,B=Y.end.x,U=Y.end.y);break}case"a":{arcToBezier({px:B,py:U,cx:B+=Y.end.x,cy:U+=Y.end.y,rx:Y.radii.x,ry:Y.radii.y,xAxisRotation:Y.rotation,largeArcFlag:Y.large?1:0,sweepFlag:Y.clockwise?1:0}).forEach(({x1:K,y1:J,x2:xe,y2:Z,x:_e,y:Se})=>this.bezierCurveTo(K,J,xe,Z,_e,Se));break}case"A":{arcToBezier({px:B,py:U,cx:B=Y.end.x,cy:U=Y.end.y,rx:Y.radii.x,ry:Y.radii.y,xAxisRotation:Y.rotation,largeArcFlag:Y.large?1:0,sweepFlag:Y.clockwise?1:0}).forEach(({x1:K,y1:J,x2:xe,y2:Z,x:_e,y:Se})=>this.bezierCurveTo(K,J,xe,Z,_e,Se));break}default:{console.info("[PIXI.SVG] Draw command not supported:",Y.code,Y);break}}}}}var paramCounts={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},SPECIAL_SPACES=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function isSpace(C){return C===10||C===13||C===8232||C===8233||C===32||C===9||C===11||C===12||C===160||C>=5760&&SPECIAL_SPACES.indexOf(C)>=0}function isCommand(C){switch(C|32){case 109:case 122:case 108:case 104:case 118:case 99:case 115:case 113:case 116:case 97:case 114:return!0}return!1}function isArc(C){return(C|32)===97}function isDigit(C){return C>=48&&C<=57}function isDigitStart(C){return C>=48&&C<=57||C===43||C===45||C===46}function State(C){this.index=0,this.path=C,this.max=C.length,this.result=[],this.param=0,this.err="",this.segmentStart=0,this.data=[]}function skipSpaces(C){for(;C.index<C.max&&isSpace(C.path.charCodeAt(C.index));)C.index++}function scanFlag(C){var E=C.path.charCodeAt(C.index);if(E===48){C.param=0,C.index++;return}if(E===49){C.param=1,C.index++;return}C.err="SvgPath: arc flag can be 0 or 1 only (at pos "+C.index+")"}function scanParam(C){var E=C.index,I=E,B=C.max,U=!1,V=!1,X=!1,Y=!1,K;if(I>=B){C.err="SvgPath: missed param (at pos "+I+")";return}if(K=C.path.charCodeAt(I),(K===43||K===45)&&(I++,K=I<B?C.path.charCodeAt(I):0),!isDigit(K)&&K!==46){C.err="SvgPath: param should start with 0..9 or `.` (at pos "+I+")";return}if(K!==46){if(U=K===48,I++,K=I<B?C.path.charCodeAt(I):0,U&&I<B&&K&&isDigit(K)){C.err="SvgPath: numbers started with `0` such as `09` are illegal (at pos "+E+")";return}for(;I<B&&isDigit(C.path.charCodeAt(I));)I++,V=!0;K=I<B?C.path.charCodeAt(I):0}if(K===46){for(Y=!0,I++;isDigit(C.path.charCodeAt(I));)I++,X=!0;K=I<B?C.path.charCodeAt(I):0}if(K===101||K===69){if(Y&&!V&&!X){C.err="SvgPath: invalid float exponent (at pos "+I+")";return}if(I++,K=I<B?C.path.charCodeAt(I):0,(K===43||K===45)&&I++,I<B&&isDigit(C.path.charCodeAt(I)))for(;I<B&&isDigit(C.path.charCodeAt(I));)I++;else{C.err="SvgPath: invalid float exponent (at pos "+I+")";return}}C.index=I,C.param=parseFloat(C.path.slice(E,I))+0}function finalizeSegment(C){var E,I;E=C.path[C.segmentStart],I=E.toLowerCase();var B=C.data;if(I==="m"&&B.length>2&&(C.result.push([E,B[0],B[1]]),B=B.slice(2),I="l",E=E==="m"?"l":"L"),I==="r")C.result.push([E].concat(B));else for(;B.length>=paramCounts[I]&&(C.result.push([E].concat(B.splice(0,paramCounts[I]))),!!paramCounts[I]););}function scanSegment(C){var E=C.max,I,B,U,V,X;if(C.segmentStart=C.index,I=C.path.charCodeAt(C.index),B=isArc(I),!isCommand(I)){C.err="SvgPath: bad command "+C.path[C.index]+" (at pos "+C.index+")";return}if(V=paramCounts[C.path[C.index].toLowerCase()],C.index++,skipSpaces(C),C.data=[],!V){finalizeSegment(C);return}for(U=!1;;){for(X=V;X>0;X--){if(B&&(X===3||X===4)?scanFlag(C):scanParam(C),C.err.length){finalizeSegment(C);return}C.data.push(C.param),skipSpaces(C),U=!1,C.index<E&&C.path.charCodeAt(C.index)===44&&(C.index++,skipSpaces(C),U=!0)}if(!U&&(C.index>=C.max||!isDigitStart(C.path.charCodeAt(C.index))))break}finalizeSegment(C)}var path_parse=function(E){var I=new State(E),B=I.max;for(skipSpaces(I);I.index<B&&!I.err.length;)scanSegment(I);return I.result.length&&("mM".indexOf(I.result[0][0])<0?(I.err="SvgPath: string should start with `M` or `m`",I.result=[]):I.result[0][0]="M"),{err:I.err,segments:I.result}};function combine(C,E){return[C[0]*E[0]+C[2]*E[1],C[1]*E[0]+C[3]*E[1],C[0]*E[2]+C[2]*E[3],C[1]*E[2]+C[3]*E[3],C[0]*E[4]+C[2]*E[5]+C[4],C[1]*E[4]+C[3]*E[5]+C[5]]}function Matrix$1(){if(!(this instanceof Matrix$1))return new Matrix$1;this.queue=[],this.cache=null}Matrix$1.prototype.matrix=function(C){return C[0]===1&&C[1]===0&&C[2]===0&&C[3]===1&&C[4]===0&&C[5]===0?this:(this.cache=null,this.queue.push(C),this)},Matrix$1.prototype.translate=function(C,E){return(C!==0||E!==0)&&(this.cache=null,this.queue.push([1,0,0,1,C,E])),this},Matrix$1.prototype.scale=function(C,E){return(C!==1||E!==1)&&(this.cache=null,this.queue.push([C,0,0,E,0,0])),this},Matrix$1.prototype.rotate=function(C,E,I){var B,U,V;return C!==0&&(this.translate(E,I),B=C*Math.PI/180,U=Math.cos(B),V=Math.sin(B),this.queue.push([U,V,-V,U,0,0]),this.cache=null,this.translate(-E,-I)),this},Matrix$1.prototype.skewX=function(C){return C!==0&&(this.cache=null,this.queue.push([1,0,Math.tan(C*Math.PI/180),1,0,0])),this},Matrix$1.prototype.skewY=function(C){return C!==0&&(this.cache=null,this.queue.push([1,Math.tan(C*Math.PI/180),0,1,0,0])),this},Matrix$1.prototype.toArray=function(){if(this.cache)return this.cache;if(!this.queue.length)return this.cache=[1,0,0,1,0,0],this.cache;if(this.cache=this.queue[0],this.queue.length===1)return this.cache;for(var C=1;C<this.queue.length;C++)this.cache=combine(this.cache,this.queue[C]);return this.cache},Matrix$1.prototype.calc=function(C,E,I){var B;return this.queue.length?(this.cache||(this.cache=this.toArray()),B=this.cache,[C*B[0]+E*B[2]+(I?0:B[4]),C*B[1]+E*B[3]+(I?0:B[5])]):[C,E]};var matrix$1=Matrix$1,Matrix=matrix$1,operations={matrix:!0,scale:!0,rotate:!0,translate:!0,skewX:!0,skewY:!0},CMD_SPLIT_RE=/\s*(matrix|translate|scale|rotate|skewX|skewY)\s*\(\s*(.+?)\s*\)[\s,]*/,PARAMS_SPLIT_RE=/[\s,]+/,transform_parse=function(E){var I=new Matrix,B,U;return E.split(CMD_SPLIT_RE).forEach(function(V){if(V.length){if(typeof operations[V]<"u"){B=V;return}switch(U=V.split(PARAMS_SPLIT_RE).map(function(X){return+X||0}),B){case"matrix":U.length===6&&I.matrix(U);return;case"scale":U.length===1?I.scale(U[0],U[0]):U.length===2&&I.scale(U[0],U[1]);return;case"rotate":U.length===1?I.rotate(U[0],0,0):U.length===3&&I.rotate(U[0],U[1],U[2]);return;case"translate":U.length===1?I.translate(U[0],0):U.length===2&&I.translate(U[0],U[1]);return;case"skewX":U.length===1&&I.skewX(U[0]);return;case"skewY":U.length===1&&I.skewY(U[0]);return}}}),I},TAU$1=Math.PI*2;function unit_vector_angle(C,E,I,B){var U=C*B-E*I<0?-1:1,V=C*I+E*B;return V>1&&(V=1),V<-1&&(V=-1),U*Math.acos(V)}function get_arc_center(C,E,I,B,U,V,X,Y,K,J){var xe=J*(C-I)/2+K*(E-B)/2,Z=-K*(C-I)/2+J*(E-B)/2,_e=X*X,Se=Y*Y,Ee=xe*xe,Ae=Z*Z,Re=_e*Se-_e*Ae-Se*Ee;Re<0&&(Re=0),Re/=_e*Ae+Se*Ee,Re=Math.sqrt(Re)*(U===V?-1:1);var Te=Re*X/Y*Z,we=Re*-Y/X*xe,Pe=J*Te-K*we+(C+I)/2,Ie=K*Te+J*we+(E+B)/2,Me=(xe-Te)/X,Oe=(Z-we)/Y,Le=(-xe-Te)/X,$e=(-Z-we)/Y,Ve=unit_vector_angle(1,0,Me,Oe),Xe=unit_vector_angle(Me,Oe,Le,$e);return V===0&&Xe>0&&(Xe-=TAU$1),V===1&&Xe<0&&(Xe+=TAU$1),[Pe,Ie,Ve,Xe]}function approximate_unit_arc(C,E){var I=1.3333333333333333*Math.tan(E/4),B=Math.cos(C),U=Math.sin(C),V=Math.cos(C+E),X=Math.sin(C+E);return[B,U,B-U*I,U+B*I,V+X*I,X-V*I,V,X]}var a2c$1=function(E,I,B,U,V,X,Y,K,J){var xe=Math.sin(J*TAU$1/360),Z=Math.cos(J*TAU$1/360),_e=Z*(E-B)/2+xe*(I-U)/2,Se=-xe*(E-B)/2+Z*(I-U)/2;if(_e===0&&Se===0)return[];if(Y===0||K===0)return[];Y=Math.abs(Y),K=Math.abs(K);var Ee=_e*_e/(Y*Y)+Se*Se/(K*K);Ee>1&&(Y*=Math.sqrt(Ee),K*=Math.sqrt(Ee));var Ae=get_arc_center(E,I,B,U,V,X,Y,K,xe,Z),Re=[],Te=Ae[2],we=Ae[3],Pe=Math.max(Math.ceil(Math.abs(we)/(TAU$1/4)),1);we/=Pe;for(var Ie=0;Ie<Pe;Ie++)Re.push(approximate_unit_arc(Te,we)),Te+=we;return Re.map(function(Me){for(var Oe=0;Oe<Me.length;Oe+=2){var Le=Me[Oe+0],$e=Me[Oe+1];Le*=Y,$e*=K;var Ve=Z*Le-xe*$e,Xe=xe*Le+Z*$e;Me[Oe+0]=Ve+Ae[0],Me[Oe+1]=Xe+Ae[1]}return Me})},epsilon=1e-10,torad=Math.PI/180;function Ellipse(C,E,I){if(!(this instanceof Ellipse))return new Ellipse(C,E,I);this.rx=C,this.ry=E,this.ax=I}Ellipse.prototype.transform=function(C){var E=Math.cos(this.ax*torad),I=Math.sin(this.ax*torad),B=[this.rx*(C[0]*E+C[2]*I),this.rx*(C[1]*E+C[3]*I),this.ry*(-C[0]*I+C[2]*E),this.ry*(-C[1]*I+C[3]*E)],U=B[0]*B[0]+B[2]*B[2],V=B[1]*B[1]+B[3]*B[3],X=((B[0]-B[3])*(B[0]-B[3])+(B[2]+B[1])*(B[2]+B[1]))*((B[0]+B[3])*(B[0]+B[3])+(B[2]-B[1])*(B[2]-B[1])),Y=(U+V)/2;if(X<epsilon*Y)return this.rx=this.ry=Math.sqrt(Y),this.ax=0,this;var K=B[0]*B[1]+B[2]*B[3];X=Math.sqrt(X);var J=Y+X/2,xe=Y-X/2;return this.ax=Math.abs(K)<epsilon&&Math.abs(J-V)<epsilon?90:Math.atan(Math.abs(K)>Math.abs(J-V)?(J-U)/K:K/(J-V))*180/Math.PI,this.ax>=0?(this.rx=Math.sqrt(J),this.ry=Math.sqrt(xe)):(this.ax+=90,this.rx=Math.sqrt(xe),this.ry=Math.sqrt(J)),this},Ellipse.prototype.isDegenerate=function(){return this.rx<epsilon*this.ry||this.ry<epsilon*this.rx};var ellipse$1=Ellipse,pathParse=path_parse,transformParse=transform_parse,matrix=matrix$1,a2c=a2c$1,ellipse=ellipse$1;function SvgPath(C){if(!(this instanceof SvgPath))return new SvgPath(C);var E=pathParse(C);this.segments=E.segments,this.err=E.err,this.__stack=[]}SvgPath.from=function(C){if(typeof C=="string")return new SvgPath(C);if(C instanceof SvgPath){var E=new SvgPath("");return E.err=C.err,E.segments=C.segments.map(function(I){return I.slice()}),E.__stack=C.__stack.map(function(I){return matrix().matrix(I.toArray())}),E}throw new Error("SvgPath.from: invalid param type "+C)},SvgPath.prototype.__matrix=function(C){var E=this,I;C.queue.length&&this.iterate(function(B,U,V,X){var Y,K,J,xe;switch(B[0]){case"v":Y=C.calc(0,B[1],!0),K=Y[0]===0?["v",Y[1]]:["l",Y[0],Y[1]];break;case"V":Y=C.calc(V,B[1],!1),K=Y[0]===C.calc(V,X,!1)[0]?["V",Y[1]]:["L",Y[0],Y[1]];break;case"h":Y=C.calc(B[1],0,!0),K=Y[1]===0?["h",Y[0]]:["l",Y[0],Y[1]];break;case"H":Y=C.calc(B[1],X,!1),K=Y[1]===C.calc(V,X,!1)[1]?["H",Y[0]]:["L",Y[0],Y[1]];break;case"a":case"A":var Z=C.toArray(),_e=ellipse(B[1],B[2],B[3]).transform(Z);if(Z[0]*Z[3]-Z[1]*Z[2]<0&&(B[5]=B[5]?"0":"1"),Y=C.calc(B[6],B[7],B[0]==="a"),B[0]==="A"&&B[6]===V&&B[7]===X||B[0]==="a"&&B[6]===0&&B[7]===0){K=[B[0]==="a"?"l":"L",Y[0],Y[1]];break}_e.isDegenerate()?K=[B[0]==="a"?"l":"L",Y[0],Y[1]]:K=[B[0],_e.rx,_e.ry,_e.ax,B[4],B[5],Y[0],Y[1]];break;case"m":xe=U>0,Y=C.calc(B[1],B[2],xe),K=["m",Y[0],Y[1]];break;default:for(J=B[0],K=[J],xe=J.toLowerCase()===J,I=1;I<B.length;I+=2)Y=C.calc(B[I],B[I+1],xe),K.push(Y[0],Y[1])}E.segments[U]=K},!0)},SvgPath.prototype.__evaluateStack=function(){var C,E;if(this.__stack.length){if(this.__stack.length===1){this.__matrix(this.__stack[0]),this.__stack=[];return}for(C=matrix(),E=this.__stack.length;--E>=0;)C.matrix(this.__stack[E].toArray());this.__matrix(C),this.__stack=[]}},SvgPath.prototype.toString=function(){var C="",E="",I=!1;this.__evaluateStack();for(var B=0,U=this.segments.length;B<U;B++){var V=this.segments[B],X=V[0];X!==E||X==="m"||X==="M"?(X==="m"&&E==="z"&&(C+=" "),C+=X,I=!1):I=!0;for(var Y=1;Y<V.length;Y++){var K=V[Y];Y===1?I&&K>=0&&(C+=" "):K>=0&&(C+=" "),C+=K}E=X}return C},SvgPath.prototype.translate=function(C,E){return this.__stack.push(matrix().translate(C,E||0)),this},SvgPath.prototype.scale=function(C,E){return this.__stack.push(matrix().scale(C,!E&&E!==0?C:E)),this},SvgPath.prototype.rotate=function(C,E,I){return this.__stack.push(matrix().rotate(C,E||0,I||0)),this},SvgPath.prototype.skewX=function(C){return this.__stack.push(matrix().skewX(C)),this},SvgPath.prototype.skewY=function(C){return this.__stack.push(matrix().skewY(C)),this},SvgPath.prototype.matrix=function(C){return this.__stack.push(matrix().matrix(C)),this},SvgPath.prototype.transform=function(C){return C.trim()?(this.__stack.push(transformParse(C)),this):this},SvgPath.prototype.round=function(C){var E=0,I=0,B=0,U=0,V;return C=C||0,this.__evaluateStack(),this.segments.forEach(function(X){var Y=X[0].toLowerCase()===X[0];switch(X[0]){case"H":case"h":Y&&(X[1]+=B),B=X[1]-X[1].toFixed(C),X[1]=+X[1].toFixed(C);return;case"V":case"v":Y&&(X[1]+=U),U=X[1]-X[1].toFixed(C),X[1]=+X[1].toFixed(C);return;case"Z":case"z":B=E,U=I;return;case"M":case"m":Y&&(X[1]+=B,X[2]+=U),B=X[1]-X[1].toFixed(C),U=X[2]-X[2].toFixed(C),E=B,I=U,X[1]=+X[1].toFixed(C),X[2]=+X[2].toFixed(C);return;case"A":case"a":Y&&(X[6]+=B,X[7]+=U),B=X[6]-X[6].toFixed(C),U=X[7]-X[7].toFixed(C),X[1]=+X[1].toFixed(C),X[2]=+X[2].toFixed(C),X[3]=+X[3].toFixed(C+2),X[6]=+X[6].toFixed(C),X[7]=+X[7].toFixed(C);return;default:V=X.length,Y&&(X[V-2]+=B,X[V-1]+=U),B=X[V-2]-X[V-2].toFixed(C),U=X[V-1]-X[V-1].toFixed(C),X.forEach(function(K,J){J&&(X[J]=+X[J].toFixed(C))});return}}),this},SvgPath.prototype.iterate=function(C,E){var I=this.segments,B={},U=!1,V=0,X=0,Y=0,K=0,J,xe,Z;if(E||this.__evaluateStack(),I.forEach(function(_e,Se){var Ee=C(_e,Se,V,X);Array.isArray(Ee)&&(B[Se]=Ee,U=!0);var Ae=_e[0]===_e[0].toLowerCase();switch(_e[0]){case"m":case"M":V=_e[1]+(Ae?V:0),X=_e[2]+(Ae?X:0),Y=V,K=X;return;case"h":case"H":V=_e[1]+(Ae?V:0);return;case"v":case"V":X=_e[1]+(Ae?X:0);return;case"z":case"Z":V=Y,X=K;return;default:V=_e[_e.length-2]+(Ae?V:0),X=_e[_e.length-1]+(Ae?X:0)}}),!U)return this;for(Z=[],J=0;J<I.length;J++)if(typeof B[J]<"u")for(xe=0;xe<B[J].length;xe++)Z.push(B[J][xe]);else Z.push(I[J]);return this.segments=Z,this},SvgPath.prototype.abs=function(){return this.iterate(function(C,E,I,B){var U=C[0],V=U.toUpperCase(),X;if(U!==V)switch(C[0]=V,U){case"v":C[1]+=B;return;case"a":C[6]+=I,C[7]+=B;return;default:for(X=1;X<C.length;X++)C[X]+=X%2?I:B}},!0),this},SvgPath.prototype.rel=function(){return this.iterate(function(C,E,I,B){var U=C[0],V=U.toLowerCase(),X;if(U!==V&&!(E===0&&U==="M"))switch(C[0]=V,U){case"V":C[1]-=B;return;case"A":C[6]-=I,C[7]-=B;return;default:for(X=1;X<C.length;X++)C[X]-=X%2?I:B}},!0),this},SvgPath.prototype.unarc=function(){return this.iterate(function(C,E,I,B){var U,V,X,Y=[],K=C[0];return K!=="A"&&K!=="a"?null:(K==="a"?(V=I+C[6],X=B+C[7]):(V=C[6],X=C[7]),U=a2c(I,B,V,X,C[4],C[5],C[1],C[2],C[3]),U.length===0?[[C[0]==="a"?"l":"L",C[6],C[7]]]:(U.forEach(function(J){Y.push(["C",J[2],J[3],J[4],J[5],J[6],J[7]])}),Y))}),this},SvgPath.prototype.unshort=function(){var C=this.segments,E,I,B,U,V;return this.iterate(function(X,Y,K,J){var xe=X[0],Z=xe.toUpperCase(),_e;Y&&(Z==="T"?(_e=xe==="t",B=C[Y-1],B[0]==="Q"?(E=B[1]-K,I=B[2]-J):B[0]==="q"?(E=B[1]-B[3],I=B[2]-B[4]):(E=0,I=0),U=-E,V=-I,_e||(U+=K,V+=J),C[Y]=[_e?"q":"Q",U,V,X[1],X[2]]):Z==="S"&&(_e=xe==="s",B=C[Y-1],B[0]==="C"?(E=B[3]-K,I=B[4]-J):B[0]==="c"?(E=B[3]-B[5],I=B[4]-B[6]):(E=0,I=0),U=-E,V=-I,_e||(U+=K,V+=J),C[Y]=[_e?"c":"C",U,V,X[1],X[2],X[3],X[4]]))}),this};var svgpath$2=SvgPath,svgpath=svgpath$2;const svgpath$1=getDefaultExportFromCjs(svgpath),PixiSvgPathSprite=React__namespace.forwardRef((C,E)=>{const[I,B]=React__namespace.useState(null),U=React.useRef(null),V=React.useRef(null),X=React.useRef(null),{path:Y,visible:K,disabled:J,transformation:{x:xe,y:Z,width:_e,height:Se,anchor:Ee,hexColor:Ae,fill:Re,stroke:Te="none",strokeWidth:we=0,colorCorrection:Pe={}},pointerdown:Ie,pointerup:Me}=C,Oe=react.useApp(),{temperatureFilter:Le,sharpnessFilter:$e,hueFilter:Ve,blurFilter:Xe,adjustmentFilter:Ue,vignetteFilter:We,noiseFilter:ze}=withFiltersHook(Pe),{blurRadius:He=0,vignette:je=0,noise:Ne=0}=Pe;return React__namespace.useEffect(()=>{const De=svgpath$1(Y).scale(5).translate(0,0).toString(),Fe=`<svg xmlns="http://www.w3.org/2000/svg" width="${_e}" height="${Se}">
1970
+ <path stroke="${Te}" stroke-width="${we}" fill="${Ae||Re}" d="${De}">
1971
1971
  </path>
1972
- </svg>`,ke=new SVG(Me),Ge=Oe.renderer.generateTexture(ke);return B(Ge),()=>{}},[Oe,Y,Te,we,Ae,Re]),jsxRuntimeExports.jsx(AbstractContainer,{...C,ref:E,children:jsxRuntimeExports.jsx(react.Container,{ref:V,children:jsxRuntimeExports.jsx(react.Container,{ref:X,children:I&&jsxRuntimeExports.jsx(react.Sprite,{texture:I,width:_e,height:Se,anchor:Ee,ref:U,x:xe,y:Z,alpha:K?1:0,...!J&&K&&{interactive:!0,pointerdown:Ie,pointerup:Fe},filters:[Le,De,Ve,Ue,...ze>0?[Xe]:[],...He>0?[We]:[],...$e>0?[je]:[]]})})})})});var howler={};/*!
1972
+ </svg>`,ke=new SVG(Fe),Ge=Oe.renderer.generateTexture(ke);return B(Ge),()=>{}},[Oe,Y,Te,we,Ae,Re]),jsxRuntimeExports.jsx(AbstractContainer,{...C,ref:E,children:jsxRuntimeExports.jsx(react.Container,{ref:V,children:jsxRuntimeExports.jsx(react.Container,{ref:X,children:I&&jsxRuntimeExports.jsx(react.Sprite,{texture:I,width:_e,height:Se,anchor:Ee,ref:U,x:xe,y:Z,alpha:K?1:0,...!J&&K&&{interactive:!0,pointerdown:Ie,pointerup:Me},filters:[Le,$e,Ve,Ue,...He>0?[Xe]:[],...je>0?[We]:[],...Ne>0?[ze]:[]]})})})})});var howler={};/*!
1973
1973
  * howler.js v2.2.3
1974
1974
  * howlerjs.com
1975
1975
  *
@@ -1977,7 +1977,7 @@ void main() {
1977
1977
  * goldfirestudios.com
1978
1978
  *
1979
1979
  * MIT License
1980
- */(function(C){(function(){var E=function(){this.init()};E.prototype={init:function(){var Z=this||I;return Z._counter=1e3,Z._html5AudioPool=[],Z.html5PoolSize=10,Z._codecs={},Z._howls=[],Z._muted=!1,Z._volume=1,Z._canPlayEvent="canplaythrough",Z._navigator=typeof window<"u"&&window.navigator?window.navigator:null,Z.masterGain=null,Z.noAudio=!1,Z.usingWebAudio=!0,Z.autoSuspend=!0,Z.ctx=null,Z.autoUnlock=!0,Z._setup(),Z},volume:function(Z){var _e=this||I;if(Z=parseFloat(Z),_e.ctx||xe(),typeof Z<"u"&&Z>=0&&Z<=1){if(_e._volume=Z,_e._muted)return _e;_e.usingWebAudio&&_e.masterGain.gain.setValueAtTime(Z,I.ctx.currentTime);for(var Se=0;Se<_e._howls.length;Se++)if(!_e._howls[Se]._webAudio)for(var Ee=_e._howls[Se]._getSoundIds(),Ae=0;Ae<Ee.length;Ae++){var Re=_e._howls[Se]._soundById(Ee[Ae]);Re&&Re._node&&(Re._node.volume=Re._volume*Z)}return _e}return _e._volume},mute:function(Z){var _e=this||I;_e.ctx||xe(),_e._muted=Z,_e.usingWebAudio&&_e.masterGain.gain.setValueAtTime(Z?0:_e._volume,I.ctx.currentTime);for(var Se=0;Se<_e._howls.length;Se++)if(!_e._howls[Se]._webAudio)for(var Ee=_e._howls[Se]._getSoundIds(),Ae=0;Ae<Ee.length;Ae++){var Re=_e._howls[Se]._soundById(Ee[Ae]);Re&&Re._node&&(Re._node.muted=Z?!0:Re._muted)}return _e},stop:function(){for(var Z=this||I,_e=0;_e<Z._howls.length;_e++)Z._howls[_e].stop();return Z},unload:function(){for(var Z=this||I,_e=Z._howls.length-1;_e>=0;_e--)Z._howls[_e].unload();return Z.usingWebAudio&&Z.ctx&&typeof Z.ctx.close<"u"&&(Z.ctx.close(),Z.ctx=null,xe()),Z},codecs:function(Z){return(this||I)._codecs[Z.replace(/^x-/,"")]},_setup:function(){var Z=this||I;if(Z.state=Z.ctx&&Z.ctx.state||"suspended",Z._autoSuspend(),!Z.usingWebAudio)if(typeof Audio<"u")try{var _e=new Audio;typeof _e.oncanplaythrough>"u"&&(Z._canPlayEvent="canplay")}catch{Z.noAudio=!0}else Z.noAudio=!0;try{var _e=new Audio;_e.muted&&(Z.noAudio=!0)}catch{}return Z.noAudio||Z._setupCodecs(),Z},_setupCodecs:function(){var Z=this||I,_e=null;try{_e=typeof Audio<"u"?new Audio:null}catch{return Z}if(!_e||typeof _e.canPlayType!="function")return Z;var Se=_e.canPlayType("audio/mpeg;").replace(/^no$/,""),Ee=Z._navigator?Z._navigator.userAgent:"",Ae=Ee.match(/OPR\/([0-6].)/g),Re=Ae&&parseInt(Ae[0].split("/")[1],10)<33,Te=Ee.indexOf("Safari")!==-1&&Ee.indexOf("Chrome")===-1,we=Ee.match(/Version\/(.*?) /),Pe=Te&&we&&parseInt(we[1],10)<15;return Z._codecs={mp3:!!(!Re&&(Se||_e.canPlayType("audio/mp3;").replace(/^no$/,""))),mpeg:!!Se,opus:!!_e.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!_e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!_e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(_e.canPlayType('audio/wav; codecs="1"')||_e.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!_e.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!_e.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(_e.canPlayType("audio/x-m4a;")||_e.canPlayType("audio/m4a;")||_e.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(_e.canPlayType("audio/x-m4b;")||_e.canPlayType("audio/m4b;")||_e.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(_e.canPlayType("audio/x-mp4;")||_e.canPlayType("audio/mp4;")||_e.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!(!Pe&&_e.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!!(!Pe&&_e.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!_e.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(_e.canPlayType("audio/x-flac;")||_e.canPlayType("audio/flac;")).replace(/^no$/,"")},Z},_unlockAudio:function(){var Z=this||I;if(!(Z._audioUnlocked||!Z.ctx)){Z._audioUnlocked=!1,Z.autoUnlock=!1,!Z._mobileUnloaded&&Z.ctx.sampleRate!==44100&&(Z._mobileUnloaded=!0,Z.unload()),Z._scratchBuffer=Z.ctx.createBuffer(1,1,22050);var _e=function(Se){for(;Z._html5AudioPool.length<Z.html5PoolSize;)try{var Ee=new Audio;Ee._unlocked=!0,Z._releaseHtml5Audio(Ee)}catch{Z.noAudio=!0;break}for(var Ae=0;Ae<Z._howls.length;Ae++)if(!Z._howls[Ae]._webAudio)for(var Re=Z._howls[Ae]._getSoundIds(),Te=0;Te<Re.length;Te++){var we=Z._howls[Ae]._soundById(Re[Te]);we&&we._node&&!we._node._unlocked&&(we._node._unlocked=!0,we._node.load())}Z._autoResume();var Pe=Z.ctx.createBufferSource();Pe.buffer=Z._scratchBuffer,Pe.connect(Z.ctx.destination),typeof Pe.start>"u"?Pe.noteOn(0):Pe.start(0),typeof Z.ctx.resume=="function"&&Z.ctx.resume(),Pe.onended=function(){Pe.disconnect(0),Z._audioUnlocked=!0,document.removeEventListener("touchstart",_e,!0),document.removeEventListener("touchend",_e,!0),document.removeEventListener("click",_e,!0),document.removeEventListener("keydown",_e,!0);for(var Ie=0;Ie<Z._howls.length;Ie++)Z._howls[Ie]._emit("unlock")}};return document.addEventListener("touchstart",_e,!0),document.addEventListener("touchend",_e,!0),document.addEventListener("click",_e,!0),document.addEventListener("keydown",_e,!0),Z}},_obtainHtml5Audio:function(){var Z=this||I;if(Z._html5AudioPool.length)return Z._html5AudioPool.pop();var _e=new Audio().play();return _e&&typeof Promise<"u"&&(_e instanceof Promise||typeof _e.then=="function")&&_e.catch(function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")}),new Audio},_releaseHtml5Audio:function(Z){var _e=this||I;return Z._unlocked&&_e._html5AudioPool.push(Z),_e},_autoSuspend:function(){var Z=this;if(!(!Z.autoSuspend||!Z.ctx||typeof Z.ctx.suspend>"u"||!I.usingWebAudio)){for(var _e=0;_e<Z._howls.length;_e++)if(Z._howls[_e]._webAudio){for(var Se=0;Se<Z._howls[_e]._sounds.length;Se++)if(!Z._howls[_e]._sounds[Se]._paused)return Z}return Z._suspendTimer&&clearTimeout(Z._suspendTimer),Z._suspendTimer=setTimeout(function(){if(Z.autoSuspend){Z._suspendTimer=null,Z.state="suspending";var Ee=function(){Z.state="suspended",Z._resumeAfterSuspend&&(delete Z._resumeAfterSuspend,Z._autoResume())};Z.ctx.suspend().then(Ee,Ee)}},3e4),Z}},_autoResume:function(){var Z=this;if(!(!Z.ctx||typeof Z.ctx.resume>"u"||!I.usingWebAudio))return Z.state==="running"&&Z.ctx.state!=="interrupted"&&Z._suspendTimer?(clearTimeout(Z._suspendTimer),Z._suspendTimer=null):Z.state==="suspended"||Z.state==="running"&&Z.ctx.state==="interrupted"?(Z.ctx.resume().then(function(){Z.state="running";for(var _e=0;_e<Z._howls.length;_e++)Z._howls[_e]._emit("resume")}),Z._suspendTimer&&(clearTimeout(Z._suspendTimer),Z._suspendTimer=null)):Z.state==="suspending"&&(Z._resumeAfterSuspend=!0),Z}};var I=new E,B=function(Z){var _e=this;if(!Z.src||Z.src.length===0){console.error("An array of source files must be passed with any new Howl.");return}_e.init(Z)};B.prototype={init:function(Z){var _e=this;return I.ctx||xe(),_e._autoplay=Z.autoplay||!1,_e._format=typeof Z.format!="string"?Z.format:[Z.format],_e._html5=Z.html5||!1,_e._muted=Z.mute||!1,_e._loop=Z.loop||!1,_e._pool=Z.pool||5,_e._preload=typeof Z.preload=="boolean"||Z.preload==="metadata"?Z.preload:!0,_e._rate=Z.rate||1,_e._sprite=Z.sprite||{},_e._src=typeof Z.src!="string"?Z.src:[Z.src],_e._volume=Z.volume!==void 0?Z.volume:1,_e._xhr={method:Z.xhr&&Z.xhr.method?Z.xhr.method:"GET",headers:Z.xhr&&Z.xhr.headers?Z.xhr.headers:null,withCredentials:Z.xhr&&Z.xhr.withCredentials?Z.xhr.withCredentials:!1},_e._duration=0,_e._state="unloaded",_e._sounds=[],_e._endTimers={},_e._queue=[],_e._playLock=!1,_e._onend=Z.onend?[{fn:Z.onend}]:[],_e._onfade=Z.onfade?[{fn:Z.onfade}]:[],_e._onload=Z.onload?[{fn:Z.onload}]:[],_e._onloaderror=Z.onloaderror?[{fn:Z.onloaderror}]:[],_e._onplayerror=Z.onplayerror?[{fn:Z.onplayerror}]:[],_e._onpause=Z.onpause?[{fn:Z.onpause}]:[],_e._onplay=Z.onplay?[{fn:Z.onplay}]:[],_e._onstop=Z.onstop?[{fn:Z.onstop}]:[],_e._onmute=Z.onmute?[{fn:Z.onmute}]:[],_e._onvolume=Z.onvolume?[{fn:Z.onvolume}]:[],_e._onrate=Z.onrate?[{fn:Z.onrate}]:[],_e._onseek=Z.onseek?[{fn:Z.onseek}]:[],_e._onunlock=Z.onunlock?[{fn:Z.onunlock}]:[],_e._onresume=[],_e._webAudio=I.usingWebAudio&&!_e._html5,typeof I.ctx<"u"&&I.ctx&&I.autoUnlock&&I._unlockAudio(),I._howls.push(_e),_e._autoplay&&_e._queue.push({event:"play",action:function(){_e.play()}}),_e._preload&&_e._preload!=="none"&&_e.load(),_e},load:function(){var Z=this,_e=null;if(I.noAudio){Z._emit("loaderror",null,"No audio support.");return}typeof Z._src=="string"&&(Z._src=[Z._src]);for(var Se=0;Se<Z._src.length;Se++){var Ee,Ae;if(Z._format&&Z._format[Se])Ee=Z._format[Se];else{if(Ae=Z._src[Se],typeof Ae!="string"){Z._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}Ee=/^data:audio\/([^;,]+);/i.exec(Ae),Ee||(Ee=/\.([^.]+)$/.exec(Ae.split("?",1)[0])),Ee&&(Ee=Ee[1].toLowerCase())}if(Ee||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),Ee&&I.codecs(Ee)){_e=Z._src[Se];break}}if(!_e){Z._emit("loaderror",null,"No codec support for selected audio sources.");return}return Z._src=_e,Z._state="loading",window.location.protocol==="https:"&&_e.slice(0,5)==="http:"&&(Z._html5=!0,Z._webAudio=!1),new U(Z),Z._webAudio&&X(Z),Z},play:function(Z,_e){var Se=this,Ee=null;if(typeof Z=="number")Ee=Z,Z=null;else{if(typeof Z=="string"&&Se._state==="loaded"&&!Se._sprite[Z])return null;if(typeof Z>"u"&&(Z="__default",!Se._playLock)){for(var Ae=0,Re=0;Re<Se._sounds.length;Re++)Se._sounds[Re]._paused&&!Se._sounds[Re]._ended&&(Ae++,Ee=Se._sounds[Re]._id);Ae===1?Z=null:Ee=null}}var Te=Ee?Se._soundById(Ee):Se._inactiveSound();if(!Te)return null;if(Ee&&!Z&&(Z=Te._sprite||"__default"),Se._state!=="loaded"){Te._sprite=Z,Te._ended=!1;var we=Te._id;return Se._queue.push({event:"play",action:function(){Se.play(we)}}),we}if(Ee&&!Te._paused)return _e||Se._loadQueue("play"),Te._id;Se._webAudio&&I._autoResume();var Pe=Math.max(0,Te._seek>0?Te._seek:Se._sprite[Z][0]/1e3),Ie=Math.max(0,(Se._sprite[Z][0]+Se._sprite[Z][1])/1e3-Pe),Fe=Ie*1e3/Math.abs(Te._rate),Oe=Se._sprite[Z][0]/1e3,Le=(Se._sprite[Z][0]+Se._sprite[Z][1])/1e3;Te._sprite=Z,Te._ended=!1;var De=function(){Te._paused=!1,Te._seek=Pe,Te._start=Oe,Te._stop=Le,Te._loop=!!(Te._loop||Se._sprite[Z][2])};if(Pe>=Le){Se._ended(Te);return}var Ve=Te._node;if(Se._webAudio){var Xe=function(){Se._playLock=!1,De(),Se._refreshBuffer(Te);var ze=Te._muted||Se._muted?0:Te._volume;Ve.gain.setValueAtTime(ze,I.ctx.currentTime),Te._playStart=I.ctx.currentTime,typeof Ve.bufferSource.start>"u"?Te._loop?Ve.bufferSource.noteGrainOn(0,Pe,86400):Ve.bufferSource.noteGrainOn(0,Pe,Ie):Te._loop?Ve.bufferSource.start(0,Pe,86400):Ve.bufferSource.start(0,Pe,Ie),Fe!==1/0&&(Se._endTimers[Te._id]=setTimeout(Se._ended.bind(Se,Te),Fe)),_e||setTimeout(function(){Se._emit("play",Te._id),Se._loadQueue()},0)};I.state==="running"&&I.ctx.state!=="interrupted"?Xe():(Se._playLock=!0,Se.once("resume",Xe),Se._clearTimer(Te._id))}else{var Ue=function(){Ve.currentTime=Pe,Ve.muted=Te._muted||Se._muted||I._muted||Ve.muted,Ve.volume=Te._volume*I.volume(),Ve.playbackRate=Te._rate;try{var ze=Ve.play();if(ze&&typeof Promise<"u"&&(ze instanceof Promise||typeof ze.then=="function")?(Se._playLock=!0,De(),ze.then(function(){Se._playLock=!1,Ve._unlocked=!0,_e?Se._loadQueue():Se._emit("play",Te._id)}).catch(function(){Se._playLock=!1,Se._emit("playerror",Te._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),Te._ended=!0,Te._paused=!0})):_e||(Se._playLock=!1,De(),Se._emit("play",Te._id)),Ve.playbackRate=Te._rate,Ve.paused){Se._emit("playerror",Te._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");return}Z!=="__default"||Te._loop?Se._endTimers[Te._id]=setTimeout(Se._ended.bind(Se,Te),Fe):(Se._endTimers[Te._id]=function(){Se._ended(Te),Ve.removeEventListener("ended",Se._endTimers[Te._id],!1)},Ve.addEventListener("ended",Se._endTimers[Te._id],!1))}catch(He){Se._emit("playerror",Te._id,He)}};Ve.src==="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"&&(Ve.src=Se._src,Ve.load());var We=window&&window.ejecta||!Ve.readyState&&I._navigator.isCocoonJS;if(Ve.readyState>=3||We)Ue();else{Se._playLock=!0,Se._state="loading";var je=function(){Se._state="loaded",Ue(),Ve.removeEventListener(I._canPlayEvent,je,!1)};Ve.addEventListener(I._canPlayEvent,je,!1),Se._clearTimer(Te._id)}}return Te._id},pause:function(Z){var _e=this;if(_e._state!=="loaded"||_e._playLock)return _e._queue.push({event:"pause",action:function(){_e.pause(Z)}}),_e;for(var Se=_e._getSoundIds(Z),Ee=0;Ee<Se.length;Ee++){_e._clearTimer(Se[Ee]);var Ae=_e._soundById(Se[Ee]);if(Ae&&!Ae._paused&&(Ae._seek=_e.seek(Se[Ee]),Ae._rateSeek=0,Ae._paused=!0,_e._stopFade(Se[Ee]),Ae._node))if(_e._webAudio){if(!Ae._node.bufferSource)continue;typeof Ae._node.bufferSource.stop>"u"?Ae._node.bufferSource.noteOff(0):Ae._node.bufferSource.stop(0),_e._cleanBuffer(Ae._node)}else(!isNaN(Ae._node.duration)||Ae._node.duration===1/0)&&Ae._node.pause();arguments[1]||_e._emit("pause",Ae?Ae._id:null)}return _e},stop:function(Z,_e){var Se=this;if(Se._state!=="loaded"||Se._playLock)return Se._queue.push({event:"stop",action:function(){Se.stop(Z)}}),Se;for(var Ee=Se._getSoundIds(Z),Ae=0;Ae<Ee.length;Ae++){Se._clearTimer(Ee[Ae]);var Re=Se._soundById(Ee[Ae]);Re&&(Re._seek=Re._start||0,Re._rateSeek=0,Re._paused=!0,Re._ended=!0,Se._stopFade(Ee[Ae]),Re._node&&(Se._webAudio?Re._node.bufferSource&&(typeof Re._node.bufferSource.stop>"u"?Re._node.bufferSource.noteOff(0):Re._node.bufferSource.stop(0),Se._cleanBuffer(Re._node)):(!isNaN(Re._node.duration)||Re._node.duration===1/0)&&(Re._node.currentTime=Re._start||0,Re._node.pause(),Re._node.duration===1/0&&Se._clearSound(Re._node))),_e||Se._emit("stop",Re._id))}return Se},mute:function(Z,_e){var Se=this;if(Se._state!=="loaded"||Se._playLock)return Se._queue.push({event:"mute",action:function(){Se.mute(Z,_e)}}),Se;if(typeof _e>"u")if(typeof Z=="boolean")Se._muted=Z;else return Se._muted;for(var Ee=Se._getSoundIds(_e),Ae=0;Ae<Ee.length;Ae++){var Re=Se._soundById(Ee[Ae]);Re&&(Re._muted=Z,Re._interval&&Se._stopFade(Re._id),Se._webAudio&&Re._node?Re._node.gain.setValueAtTime(Z?0:Re._volume,I.ctx.currentTime):Re._node&&(Re._node.muted=I._muted?!0:Z),Se._emit("mute",Re._id))}return Se},volume:function(){var Z=this,_e=arguments,Se,Ee;if(_e.length===0)return Z._volume;if(_e.length===1||_e.length===2&&typeof _e[1]>"u"){var Ae=Z._getSoundIds(),Re=Ae.indexOf(_e[0]);Re>=0?Ee=parseInt(_e[0],10):Se=parseFloat(_e[0])}else _e.length>=2&&(Se=parseFloat(_e[0]),Ee=parseInt(_e[1],10));var Te;if(typeof Se<"u"&&Se>=0&&Se<=1){if(Z._state!=="loaded"||Z._playLock)return Z._queue.push({event:"volume",action:function(){Z.volume.apply(Z,_e)}}),Z;typeof Ee>"u"&&(Z._volume=Se),Ee=Z._getSoundIds(Ee);for(var we=0;we<Ee.length;we++)Te=Z._soundById(Ee[we]),Te&&(Te._volume=Se,_e[2]||Z._stopFade(Ee[we]),Z._webAudio&&Te._node&&!Te._muted?Te._node.gain.setValueAtTime(Se,I.ctx.currentTime):Te._node&&!Te._muted&&(Te._node.volume=Se*I.volume()),Z._emit("volume",Te._id))}else return Te=Ee?Z._soundById(Ee):Z._sounds[0],Te?Te._volume:0;return Z},fade:function(Z,_e,Se,Ee){var Ae=this;if(Ae._state!=="loaded"||Ae._playLock)return Ae._queue.push({event:"fade",action:function(){Ae.fade(Z,_e,Se,Ee)}}),Ae;Z=Math.min(Math.max(0,parseFloat(Z)),1),_e=Math.min(Math.max(0,parseFloat(_e)),1),Se=parseFloat(Se),Ae.volume(Z,Ee);for(var Re=Ae._getSoundIds(Ee),Te=0;Te<Re.length;Te++){var we=Ae._soundById(Re[Te]);if(we){if(Ee||Ae._stopFade(Re[Te]),Ae._webAudio&&!we._muted){var Pe=I.ctx.currentTime,Ie=Pe+Se/1e3;we._volume=Z,we._node.gain.setValueAtTime(Z,Pe),we._node.gain.linearRampToValueAtTime(_e,Ie)}Ae._startFadeInterval(we,Z,_e,Se,Re[Te],typeof Ee>"u")}}return Ae},_startFadeInterval:function(Z,_e,Se,Ee,Ae,Re){var Te=this,we=_e,Pe=Se-_e,Ie=Math.abs(Pe/.01),Fe=Math.max(4,Ie>0?Ee/Ie:Ee),Oe=Date.now();Z._fadeTo=Se,Z._interval=setInterval(function(){var Le=(Date.now()-Oe)/Ee;Oe=Date.now(),we+=Pe*Le,we=Math.round(we*100)/100,Pe<0?we=Math.max(Se,we):we=Math.min(Se,we),Te._webAudio?Z._volume=we:Te.volume(we,Z._id,!0),Re&&(Te._volume=we),(Se<_e&&we<=Se||Se>_e&&we>=Se)&&(clearInterval(Z._interval),Z._interval=null,Z._fadeTo=null,Te.volume(Se,Z._id),Te._emit("fade",Z._id))},Fe)},_stopFade:function(Z){var _e=this,Se=_e._soundById(Z);return Se&&Se._interval&&(_e._webAudio&&Se._node.gain.cancelScheduledValues(I.ctx.currentTime),clearInterval(Se._interval),Se._interval=null,_e.volume(Se._fadeTo,Z),Se._fadeTo=null,_e._emit("fade",Z)),_e},loop:function(){var Z=this,_e=arguments,Se,Ee,Ae;if(_e.length===0)return Z._loop;if(_e.length===1)if(typeof _e[0]=="boolean")Se=_e[0],Z._loop=Se;else return Ae=Z._soundById(parseInt(_e[0],10)),Ae?Ae._loop:!1;else _e.length===2&&(Se=_e[0],Ee=parseInt(_e[1],10));for(var Re=Z._getSoundIds(Ee),Te=0;Te<Re.length;Te++)Ae=Z._soundById(Re[Te]),Ae&&(Ae._loop=Se,Z._webAudio&&Ae._node&&Ae._node.bufferSource&&(Ae._node.bufferSource.loop=Se,Se&&(Ae._node.bufferSource.loopStart=Ae._start||0,Ae._node.bufferSource.loopEnd=Ae._stop,Z.playing(Re[Te])&&(Z.pause(Re[Te],!0),Z.play(Re[Te],!0)))));return Z},rate:function(){var Z=this,_e=arguments,Se,Ee;if(_e.length===0)Ee=Z._sounds[0]._id;else if(_e.length===1){var Ae=Z._getSoundIds(),Re=Ae.indexOf(_e[0]);Re>=0?Ee=parseInt(_e[0],10):Se=parseFloat(_e[0])}else _e.length===2&&(Se=parseFloat(_e[0]),Ee=parseInt(_e[1],10));var Te;if(typeof Se=="number"){if(Z._state!=="loaded"||Z._playLock)return Z._queue.push({event:"rate",action:function(){Z.rate.apply(Z,_e)}}),Z;typeof Ee>"u"&&(Z._rate=Se),Ee=Z._getSoundIds(Ee);for(var we=0;we<Ee.length;we++)if(Te=Z._soundById(Ee[we]),Te){Z.playing(Ee[we])&&(Te._rateSeek=Z.seek(Ee[we]),Te._playStart=Z._webAudio?I.ctx.currentTime:Te._playStart),Te._rate=Se,Z._webAudio&&Te._node&&Te._node.bufferSource?Te._node.bufferSource.playbackRate.setValueAtTime(Se,I.ctx.currentTime):Te._node&&(Te._node.playbackRate=Se);var Pe=Z.seek(Ee[we]),Ie=(Z._sprite[Te._sprite][0]+Z._sprite[Te._sprite][1])/1e3-Pe,Fe=Ie*1e3/Math.abs(Te._rate);(Z._endTimers[Ee[we]]||!Te._paused)&&(Z._clearTimer(Ee[we]),Z._endTimers[Ee[we]]=setTimeout(Z._ended.bind(Z,Te),Fe)),Z._emit("rate",Te._id)}}else return Te=Z._soundById(Ee),Te?Te._rate:Z._rate;return Z},seek:function(){var Z=this,_e=arguments,Se,Ee;if(_e.length===0)Z._sounds.length&&(Ee=Z._sounds[0]._id);else if(_e.length===1){var Ae=Z._getSoundIds(),Re=Ae.indexOf(_e[0]);Re>=0?Ee=parseInt(_e[0],10):Z._sounds.length&&(Ee=Z._sounds[0]._id,Se=parseFloat(_e[0]))}else _e.length===2&&(Se=parseFloat(_e[0]),Ee=parseInt(_e[1],10));if(typeof Ee>"u")return 0;if(typeof Se=="number"&&(Z._state!=="loaded"||Z._playLock))return Z._queue.push({event:"seek",action:function(){Z.seek.apply(Z,_e)}}),Z;var Te=Z._soundById(Ee);if(Te)if(typeof Se=="number"&&Se>=0){var we=Z.playing(Ee);we&&Z.pause(Ee,!0),Te._seek=Se,Te._ended=!1,Z._clearTimer(Ee),!Z._webAudio&&Te._node&&!isNaN(Te._node.duration)&&(Te._node.currentTime=Se);var Pe=function(){we&&Z.play(Ee,!0),Z._emit("seek",Ee)};if(we&&!Z._webAudio){var Ie=function(){Z._playLock?setTimeout(Ie,0):Pe()};setTimeout(Ie,0)}else Pe()}else if(Z._webAudio){var Fe=Z.playing(Ee)?I.ctx.currentTime-Te._playStart:0,Oe=Te._rateSeek?Te._rateSeek-Te._seek:0;return Te._seek+(Oe+Fe*Math.abs(Te._rate))}else return Te._node.currentTime;return Z},playing:function(Z){var _e=this;if(typeof Z=="number"){var Se=_e._soundById(Z);return Se?!Se._paused:!1}for(var Ee=0;Ee<_e._sounds.length;Ee++)if(!_e._sounds[Ee]._paused)return!0;return!1},duration:function(Z){var _e=this,Se=_e._duration,Ee=_e._soundById(Z);return Ee&&(Se=_e._sprite[Ee._sprite][1]/1e3),Se},state:function(){return this._state},unload:function(){for(var Z=this,_e=Z._sounds,Se=0;Se<_e.length;Se++)_e[Se]._paused||Z.stop(_e[Se]._id),Z._webAudio||(Z._clearSound(_e[Se]._node),_e[Se]._node.removeEventListener("error",_e[Se]._errorFn,!1),_e[Se]._node.removeEventListener(I._canPlayEvent,_e[Se]._loadFn,!1),_e[Se]._node.removeEventListener("ended",_e[Se]._endFn,!1),I._releaseHtml5Audio(_e[Se]._node)),delete _e[Se]._node,Z._clearTimer(_e[Se]._id);var Ee=I._howls.indexOf(Z);Ee>=0&&I._howls.splice(Ee,1);var Ae=!0;for(Se=0;Se<I._howls.length;Se++)if(I._howls[Se]._src===Z._src||Z._src.indexOf(I._howls[Se]._src)>=0){Ae=!1;break}return V&&Ae&&delete V[Z._src],I.noAudio=!1,Z._state="unloaded",Z._sounds=[],Z=null,null},on:function(Z,_e,Se,Ee){var Ae=this,Re=Ae["_on"+Z];return typeof _e=="function"&&Re.push(Ee?{id:Se,fn:_e,once:Ee}:{id:Se,fn:_e}),Ae},off:function(Z,_e,Se){var Ee=this,Ae=Ee["_on"+Z],Re=0;if(typeof _e=="number"&&(Se=_e,_e=null),_e||Se)for(Re=0;Re<Ae.length;Re++){var Te=Se===Ae[Re].id;if(_e===Ae[Re].fn&&Te||!_e&&Te){Ae.splice(Re,1);break}}else if(Z)Ee["_on"+Z]=[];else{var we=Object.keys(Ee);for(Re=0;Re<we.length;Re++)we[Re].indexOf("_on")===0&&Array.isArray(Ee[we[Re]])&&(Ee[we[Re]]=[])}return Ee},once:function(Z,_e,Se){var Ee=this;return Ee.on(Z,_e,Se,1),Ee},_emit:function(Z,_e,Se){for(var Ee=this,Ae=Ee["_on"+Z],Re=Ae.length-1;Re>=0;Re--)(!Ae[Re].id||Ae[Re].id===_e||Z==="load")&&(setTimeout((function(Te){Te.call(this,_e,Se)}).bind(Ee,Ae[Re].fn),0),Ae[Re].once&&Ee.off(Z,Ae[Re].fn,Ae[Re].id));return Ee._loadQueue(Z),Ee},_loadQueue:function(Z){var _e=this;if(_e._queue.length>0){var Se=_e._queue[0];Se.event===Z&&(_e._queue.shift(),_e._loadQueue()),Z||Se.action()}return _e},_ended:function(Z){var _e=this,Se=Z._sprite;if(!_e._webAudio&&Z._node&&!Z._node.paused&&!Z._node.ended&&Z._node.currentTime<Z._stop)return setTimeout(_e._ended.bind(_e,Z),100),_e;var Ee=!!(Z._loop||_e._sprite[Se][2]);if(_e._emit("end",Z._id),!_e._webAudio&&Ee&&_e.stop(Z._id,!0).play(Z._id),_e._webAudio&&Ee){_e._emit("play",Z._id),Z._seek=Z._start||0,Z._rateSeek=0,Z._playStart=I.ctx.currentTime;var Ae=(Z._stop-Z._start)*1e3/Math.abs(Z._rate);_e._endTimers[Z._id]=setTimeout(_e._ended.bind(_e,Z),Ae)}return _e._webAudio&&!Ee&&(Z._paused=!0,Z._ended=!0,Z._seek=Z._start||0,Z._rateSeek=0,_e._clearTimer(Z._id),_e._cleanBuffer(Z._node),I._autoSuspend()),!_e._webAudio&&!Ee&&_e.stop(Z._id,!0),_e},_clearTimer:function(Z){var _e=this;if(_e._endTimers[Z]){if(typeof _e._endTimers[Z]!="function")clearTimeout(_e._endTimers[Z]);else{var Se=_e._soundById(Z);Se&&Se._node&&Se._node.removeEventListener("ended",_e._endTimers[Z],!1)}delete _e._endTimers[Z]}return _e},_soundById:function(Z){for(var _e=this,Se=0;Se<_e._sounds.length;Se++)if(Z===_e._sounds[Se]._id)return _e._sounds[Se];return null},_inactiveSound:function(){var Z=this;Z._drain();for(var _e=0;_e<Z._sounds.length;_e++)if(Z._sounds[_e]._ended)return Z._sounds[_e].reset();return new U(Z)},_drain:function(){var Z=this,_e=Z._pool,Se=0,Ee=0;if(!(Z._sounds.length<_e)){for(Ee=0;Ee<Z._sounds.length;Ee++)Z._sounds[Ee]._ended&&Se++;for(Ee=Z._sounds.length-1;Ee>=0;Ee--){if(Se<=_e)return;Z._sounds[Ee]._ended&&(Z._webAudio&&Z._sounds[Ee]._node&&Z._sounds[Ee]._node.disconnect(0),Z._sounds.splice(Ee,1),Se--)}}},_getSoundIds:function(Z){var _e=this;if(typeof Z>"u"){for(var Se=[],Ee=0;Ee<_e._sounds.length;Ee++)Se.push(_e._sounds[Ee]._id);return Se}else return[Z]},_refreshBuffer:function(Z){var _e=this;return Z._node.bufferSource=I.ctx.createBufferSource(),Z._node.bufferSource.buffer=V[_e._src],Z._panner?Z._node.bufferSource.connect(Z._panner):Z._node.bufferSource.connect(Z._node),Z._node.bufferSource.loop=Z._loop,Z._loop&&(Z._node.bufferSource.loopStart=Z._start||0,Z._node.bufferSource.loopEnd=Z._stop||0),Z._node.bufferSource.playbackRate.setValueAtTime(Z._rate,I.ctx.currentTime),_e},_cleanBuffer:function(Z){var _e=this,Se=I._navigator&&I._navigator.vendor.indexOf("Apple")>=0;if(I._scratchBuffer&&Z.bufferSource&&(Z.bufferSource.onended=null,Z.bufferSource.disconnect(0),Se))try{Z.bufferSource.buffer=I._scratchBuffer}catch{}return Z.bufferSource=null,_e},_clearSound:function(Z){var _e=/MSIE |Trident\//.test(I._navigator&&I._navigator.userAgent);_e||(Z.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var U=function(Z){this._parent=Z,this.init()};U.prototype={init:function(){var Z=this,_e=Z._parent;return Z._muted=_e._muted,Z._loop=_e._loop,Z._volume=_e._volume,Z._rate=_e._rate,Z._seek=0,Z._paused=!0,Z._ended=!0,Z._sprite="__default",Z._id=++I._counter,_e._sounds.push(Z),Z.create(),Z},create:function(){var Z=this,_e=Z._parent,Se=I._muted||Z._muted||Z._parent._muted?0:Z._volume;return _e._webAudio?(Z._node=typeof I.ctx.createGain>"u"?I.ctx.createGainNode():I.ctx.createGain(),Z._node.gain.setValueAtTime(Se,I.ctx.currentTime),Z._node.paused=!0,Z._node.connect(I.masterGain)):I.noAudio||(Z._node=I._obtainHtml5Audio(),Z._errorFn=Z._errorListener.bind(Z),Z._node.addEventListener("error",Z._errorFn,!1),Z._loadFn=Z._loadListener.bind(Z),Z._node.addEventListener(I._canPlayEvent,Z._loadFn,!1),Z._endFn=Z._endListener.bind(Z),Z._node.addEventListener("ended",Z._endFn,!1),Z._node.src=_e._src,Z._node.preload=_e._preload===!0?"auto":_e._preload,Z._node.volume=Se*I.volume(),Z._node.load()),Z},reset:function(){var Z=this,_e=Z._parent;return Z._muted=_e._muted,Z._loop=_e._loop,Z._volume=_e._volume,Z._rate=_e._rate,Z._seek=0,Z._rateSeek=0,Z._paused=!0,Z._ended=!0,Z._sprite="__default",Z._id=++I._counter,Z},_errorListener:function(){var Z=this;Z._parent._emit("loaderror",Z._id,Z._node.error?Z._node.error.code:0),Z._node.removeEventListener("error",Z._errorFn,!1)},_loadListener:function(){var Z=this,_e=Z._parent;_e._duration=Math.ceil(Z._node.duration*10)/10,Object.keys(_e._sprite).length===0&&(_e._sprite={__default:[0,_e._duration*1e3]}),_e._state!=="loaded"&&(_e._state="loaded",_e._emit("load"),_e._loadQueue()),Z._node.removeEventListener(I._canPlayEvent,Z._loadFn,!1)},_endListener:function(){var Z=this,_e=Z._parent;_e._duration===1/0&&(_e._duration=Math.ceil(Z._node.duration*10)/10,_e._sprite.__default[1]===1/0&&(_e._sprite.__default[1]=_e._duration*1e3),_e._ended(Z)),Z._node.removeEventListener("ended",Z._endFn,!1)}};var V={},X=function(Z){var _e=Z._src;if(V[_e]){Z._duration=V[_e].duration,J(Z);return}if(/^data:[^;]+;base64,/.test(_e)){for(var Se=atob(_e.split(",")[1]),Ee=new Uint8Array(Se.length),Ae=0;Ae<Se.length;++Ae)Ee[Ae]=Se.charCodeAt(Ae);K(Ee.buffer,Z)}else{var Re=new XMLHttpRequest;Re.open(Z._xhr.method,_e,!0),Re.withCredentials=Z._xhr.withCredentials,Re.responseType="arraybuffer",Z._xhr.headers&&Object.keys(Z._xhr.headers).forEach(function(Te){Re.setRequestHeader(Te,Z._xhr.headers[Te])}),Re.onload=function(){var Te=(Re.status+"")[0];if(Te!=="0"&&Te!=="2"&&Te!=="3"){Z._emit("loaderror",null,"Failed loading audio file with status: "+Re.status+".");return}K(Re.response,Z)},Re.onerror=function(){Z._webAudio&&(Z._html5=!0,Z._webAudio=!1,Z._sounds=[],delete V[_e],Z.load())},Y(Re)}},Y=function(Z){try{Z.send()}catch{Z.onerror()}},K=function(Z,_e){var Se=function(){_e._emit("loaderror",null,"Decoding audio data failed.")},Ee=function(Ae){Ae&&_e._sounds.length>0?(V[_e._src]=Ae,J(_e,Ae)):Se()};typeof Promise<"u"&&I.ctx.decodeAudioData.length===1?I.ctx.decodeAudioData(Z).then(Ee).catch(Se):I.ctx.decodeAudioData(Z,Ee,Se)},J=function(Z,_e){_e&&!Z._duration&&(Z._duration=_e.duration),Object.keys(Z._sprite).length===0&&(Z._sprite={__default:[0,Z._duration*1e3]}),Z._state!=="loaded"&&(Z._state="loaded",Z._emit("load"),Z._loadQueue())},xe=function(){if(I.usingWebAudio){try{typeof AudioContext<"u"?I.ctx=new AudioContext:typeof webkitAudioContext<"u"?I.ctx=new webkitAudioContext:I.usingWebAudio=!1}catch{I.usingWebAudio=!1}I.ctx||(I.usingWebAudio=!1);var Z=/iP(hone|od|ad)/.test(I._navigator&&I._navigator.platform),_e=I._navigator&&I._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),Se=_e?parseInt(_e[1],10):null;if(Z&&Se&&Se<9){var Ee=/safari/.test(I._navigator&&I._navigator.userAgent.toLowerCase());I._navigator&&!Ee&&(I.usingWebAudio=!1)}I.usingWebAudio&&(I.masterGain=typeof I.ctx.createGain>"u"?I.ctx.createGainNode():I.ctx.createGain(),I.masterGain.gain.setValueAtTime(I._muted?0:I._volume,I.ctx.currentTime),I.masterGain.connect(I.ctx.destination)),I._setup()}};C.Howler=I,C.Howl=B,typeof commonjsGlobal$1<"u"?(commonjsGlobal$1.HowlerGlobal=E,commonjsGlobal$1.Howler=I,commonjsGlobal$1.Howl=B,commonjsGlobal$1.Sound=U):typeof window<"u"&&(window.HowlerGlobal=E,window.Howler=I,window.Howl=B,window.Sound=U)})();/*!
1980
+ */(function(C){(function(){var E=function(){this.init()};E.prototype={init:function(){var Z=this||I;return Z._counter=1e3,Z._html5AudioPool=[],Z.html5PoolSize=10,Z._codecs={},Z._howls=[],Z._muted=!1,Z._volume=1,Z._canPlayEvent="canplaythrough",Z._navigator=typeof window<"u"&&window.navigator?window.navigator:null,Z.masterGain=null,Z.noAudio=!1,Z.usingWebAudio=!0,Z.autoSuspend=!0,Z.ctx=null,Z.autoUnlock=!0,Z._setup(),Z},volume:function(Z){var _e=this||I;if(Z=parseFloat(Z),_e.ctx||xe(),typeof Z<"u"&&Z>=0&&Z<=1){if(_e._volume=Z,_e._muted)return _e;_e.usingWebAudio&&_e.masterGain.gain.setValueAtTime(Z,I.ctx.currentTime);for(var Se=0;Se<_e._howls.length;Se++)if(!_e._howls[Se]._webAudio)for(var Ee=_e._howls[Se]._getSoundIds(),Ae=0;Ae<Ee.length;Ae++){var Re=_e._howls[Se]._soundById(Ee[Ae]);Re&&Re._node&&(Re._node.volume=Re._volume*Z)}return _e}return _e._volume},mute:function(Z){var _e=this||I;_e.ctx||xe(),_e._muted=Z,_e.usingWebAudio&&_e.masterGain.gain.setValueAtTime(Z?0:_e._volume,I.ctx.currentTime);for(var Se=0;Se<_e._howls.length;Se++)if(!_e._howls[Se]._webAudio)for(var Ee=_e._howls[Se]._getSoundIds(),Ae=0;Ae<Ee.length;Ae++){var Re=_e._howls[Se]._soundById(Ee[Ae]);Re&&Re._node&&(Re._node.muted=Z?!0:Re._muted)}return _e},stop:function(){for(var Z=this||I,_e=0;_e<Z._howls.length;_e++)Z._howls[_e].stop();return Z},unload:function(){for(var Z=this||I,_e=Z._howls.length-1;_e>=0;_e--)Z._howls[_e].unload();return Z.usingWebAudio&&Z.ctx&&typeof Z.ctx.close<"u"&&(Z.ctx.close(),Z.ctx=null,xe()),Z},codecs:function(Z){return(this||I)._codecs[Z.replace(/^x-/,"")]},_setup:function(){var Z=this||I;if(Z.state=Z.ctx&&Z.ctx.state||"suspended",Z._autoSuspend(),!Z.usingWebAudio)if(typeof Audio<"u")try{var _e=new Audio;typeof _e.oncanplaythrough>"u"&&(Z._canPlayEvent="canplay")}catch{Z.noAudio=!0}else Z.noAudio=!0;try{var _e=new Audio;_e.muted&&(Z.noAudio=!0)}catch{}return Z.noAudio||Z._setupCodecs(),Z},_setupCodecs:function(){var Z=this||I,_e=null;try{_e=typeof Audio<"u"?new Audio:null}catch{return Z}if(!_e||typeof _e.canPlayType!="function")return Z;var Se=_e.canPlayType("audio/mpeg;").replace(/^no$/,""),Ee=Z._navigator?Z._navigator.userAgent:"",Ae=Ee.match(/OPR\/([0-6].)/g),Re=Ae&&parseInt(Ae[0].split("/")[1],10)<33,Te=Ee.indexOf("Safari")!==-1&&Ee.indexOf("Chrome")===-1,we=Ee.match(/Version\/(.*?) /),Pe=Te&&we&&parseInt(we[1],10)<15;return Z._codecs={mp3:!!(!Re&&(Se||_e.canPlayType("audio/mp3;").replace(/^no$/,""))),mpeg:!!Se,opus:!!_e.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!_e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!_e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(_e.canPlayType('audio/wav; codecs="1"')||_e.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!_e.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!_e.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(_e.canPlayType("audio/x-m4a;")||_e.canPlayType("audio/m4a;")||_e.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(_e.canPlayType("audio/x-m4b;")||_e.canPlayType("audio/m4b;")||_e.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(_e.canPlayType("audio/x-mp4;")||_e.canPlayType("audio/mp4;")||_e.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!(!Pe&&_e.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!!(!Pe&&_e.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!_e.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(_e.canPlayType("audio/x-flac;")||_e.canPlayType("audio/flac;")).replace(/^no$/,"")},Z},_unlockAudio:function(){var Z=this||I;if(!(Z._audioUnlocked||!Z.ctx)){Z._audioUnlocked=!1,Z.autoUnlock=!1,!Z._mobileUnloaded&&Z.ctx.sampleRate!==44100&&(Z._mobileUnloaded=!0,Z.unload()),Z._scratchBuffer=Z.ctx.createBuffer(1,1,22050);var _e=function(Se){for(;Z._html5AudioPool.length<Z.html5PoolSize;)try{var Ee=new Audio;Ee._unlocked=!0,Z._releaseHtml5Audio(Ee)}catch{Z.noAudio=!0;break}for(var Ae=0;Ae<Z._howls.length;Ae++)if(!Z._howls[Ae]._webAudio)for(var Re=Z._howls[Ae]._getSoundIds(),Te=0;Te<Re.length;Te++){var we=Z._howls[Ae]._soundById(Re[Te]);we&&we._node&&!we._node._unlocked&&(we._node._unlocked=!0,we._node.load())}Z._autoResume();var Pe=Z.ctx.createBufferSource();Pe.buffer=Z._scratchBuffer,Pe.connect(Z.ctx.destination),typeof Pe.start>"u"?Pe.noteOn(0):Pe.start(0),typeof Z.ctx.resume=="function"&&Z.ctx.resume(),Pe.onended=function(){Pe.disconnect(0),Z._audioUnlocked=!0,document.removeEventListener("touchstart",_e,!0),document.removeEventListener("touchend",_e,!0),document.removeEventListener("click",_e,!0),document.removeEventListener("keydown",_e,!0);for(var Ie=0;Ie<Z._howls.length;Ie++)Z._howls[Ie]._emit("unlock")}};return document.addEventListener("touchstart",_e,!0),document.addEventListener("touchend",_e,!0),document.addEventListener("click",_e,!0),document.addEventListener("keydown",_e,!0),Z}},_obtainHtml5Audio:function(){var Z=this||I;if(Z._html5AudioPool.length)return Z._html5AudioPool.pop();var _e=new Audio().play();return _e&&typeof Promise<"u"&&(_e instanceof Promise||typeof _e.then=="function")&&_e.catch(function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")}),new Audio},_releaseHtml5Audio:function(Z){var _e=this||I;return Z._unlocked&&_e._html5AudioPool.push(Z),_e},_autoSuspend:function(){var Z=this;if(!(!Z.autoSuspend||!Z.ctx||typeof Z.ctx.suspend>"u"||!I.usingWebAudio)){for(var _e=0;_e<Z._howls.length;_e++)if(Z._howls[_e]._webAudio){for(var Se=0;Se<Z._howls[_e]._sounds.length;Se++)if(!Z._howls[_e]._sounds[Se]._paused)return Z}return Z._suspendTimer&&clearTimeout(Z._suspendTimer),Z._suspendTimer=setTimeout(function(){if(Z.autoSuspend){Z._suspendTimer=null,Z.state="suspending";var Ee=function(){Z.state="suspended",Z._resumeAfterSuspend&&(delete Z._resumeAfterSuspend,Z._autoResume())};Z.ctx.suspend().then(Ee,Ee)}},3e4),Z}},_autoResume:function(){var Z=this;if(!(!Z.ctx||typeof Z.ctx.resume>"u"||!I.usingWebAudio))return Z.state==="running"&&Z.ctx.state!=="interrupted"&&Z._suspendTimer?(clearTimeout(Z._suspendTimer),Z._suspendTimer=null):Z.state==="suspended"||Z.state==="running"&&Z.ctx.state==="interrupted"?(Z.ctx.resume().then(function(){Z.state="running";for(var _e=0;_e<Z._howls.length;_e++)Z._howls[_e]._emit("resume")}),Z._suspendTimer&&(clearTimeout(Z._suspendTimer),Z._suspendTimer=null)):Z.state==="suspending"&&(Z._resumeAfterSuspend=!0),Z}};var I=new E,B=function(Z){var _e=this;if(!Z.src||Z.src.length===0){console.error("An array of source files must be passed with any new Howl.");return}_e.init(Z)};B.prototype={init:function(Z){var _e=this;return I.ctx||xe(),_e._autoplay=Z.autoplay||!1,_e._format=typeof Z.format!="string"?Z.format:[Z.format],_e._html5=Z.html5||!1,_e._muted=Z.mute||!1,_e._loop=Z.loop||!1,_e._pool=Z.pool||5,_e._preload=typeof Z.preload=="boolean"||Z.preload==="metadata"?Z.preload:!0,_e._rate=Z.rate||1,_e._sprite=Z.sprite||{},_e._src=typeof Z.src!="string"?Z.src:[Z.src],_e._volume=Z.volume!==void 0?Z.volume:1,_e._xhr={method:Z.xhr&&Z.xhr.method?Z.xhr.method:"GET",headers:Z.xhr&&Z.xhr.headers?Z.xhr.headers:null,withCredentials:Z.xhr&&Z.xhr.withCredentials?Z.xhr.withCredentials:!1},_e._duration=0,_e._state="unloaded",_e._sounds=[],_e._endTimers={},_e._queue=[],_e._playLock=!1,_e._onend=Z.onend?[{fn:Z.onend}]:[],_e._onfade=Z.onfade?[{fn:Z.onfade}]:[],_e._onload=Z.onload?[{fn:Z.onload}]:[],_e._onloaderror=Z.onloaderror?[{fn:Z.onloaderror}]:[],_e._onplayerror=Z.onplayerror?[{fn:Z.onplayerror}]:[],_e._onpause=Z.onpause?[{fn:Z.onpause}]:[],_e._onplay=Z.onplay?[{fn:Z.onplay}]:[],_e._onstop=Z.onstop?[{fn:Z.onstop}]:[],_e._onmute=Z.onmute?[{fn:Z.onmute}]:[],_e._onvolume=Z.onvolume?[{fn:Z.onvolume}]:[],_e._onrate=Z.onrate?[{fn:Z.onrate}]:[],_e._onseek=Z.onseek?[{fn:Z.onseek}]:[],_e._onunlock=Z.onunlock?[{fn:Z.onunlock}]:[],_e._onresume=[],_e._webAudio=I.usingWebAudio&&!_e._html5,typeof I.ctx<"u"&&I.ctx&&I.autoUnlock&&I._unlockAudio(),I._howls.push(_e),_e._autoplay&&_e._queue.push({event:"play",action:function(){_e.play()}}),_e._preload&&_e._preload!=="none"&&_e.load(),_e},load:function(){var Z=this,_e=null;if(I.noAudio){Z._emit("loaderror",null,"No audio support.");return}typeof Z._src=="string"&&(Z._src=[Z._src]);for(var Se=0;Se<Z._src.length;Se++){var Ee,Ae;if(Z._format&&Z._format[Se])Ee=Z._format[Se];else{if(Ae=Z._src[Se],typeof Ae!="string"){Z._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}Ee=/^data:audio\/([^;,]+);/i.exec(Ae),Ee||(Ee=/\.([^.]+)$/.exec(Ae.split("?",1)[0])),Ee&&(Ee=Ee[1].toLowerCase())}if(Ee||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),Ee&&I.codecs(Ee)){_e=Z._src[Se];break}}if(!_e){Z._emit("loaderror",null,"No codec support for selected audio sources.");return}return Z._src=_e,Z._state="loading",window.location.protocol==="https:"&&_e.slice(0,5)==="http:"&&(Z._html5=!0,Z._webAudio=!1),new U(Z),Z._webAudio&&X(Z),Z},play:function(Z,_e){var Se=this,Ee=null;if(typeof Z=="number")Ee=Z,Z=null;else{if(typeof Z=="string"&&Se._state==="loaded"&&!Se._sprite[Z])return null;if(typeof Z>"u"&&(Z="__default",!Se._playLock)){for(var Ae=0,Re=0;Re<Se._sounds.length;Re++)Se._sounds[Re]._paused&&!Se._sounds[Re]._ended&&(Ae++,Ee=Se._sounds[Re]._id);Ae===1?Z=null:Ee=null}}var Te=Ee?Se._soundById(Ee):Se._inactiveSound();if(!Te)return null;if(Ee&&!Z&&(Z=Te._sprite||"__default"),Se._state!=="loaded"){Te._sprite=Z,Te._ended=!1;var we=Te._id;return Se._queue.push({event:"play",action:function(){Se.play(we)}}),we}if(Ee&&!Te._paused)return _e||Se._loadQueue("play"),Te._id;Se._webAudio&&I._autoResume();var Pe=Math.max(0,Te._seek>0?Te._seek:Se._sprite[Z][0]/1e3),Ie=Math.max(0,(Se._sprite[Z][0]+Se._sprite[Z][1])/1e3-Pe),Me=Ie*1e3/Math.abs(Te._rate),Oe=Se._sprite[Z][0]/1e3,Le=(Se._sprite[Z][0]+Se._sprite[Z][1])/1e3;Te._sprite=Z,Te._ended=!1;var $e=function(){Te._paused=!1,Te._seek=Pe,Te._start=Oe,Te._stop=Le,Te._loop=!!(Te._loop||Se._sprite[Z][2])};if(Pe>=Le){Se._ended(Te);return}var Ve=Te._node;if(Se._webAudio){var Xe=function(){Se._playLock=!1,$e(),Se._refreshBuffer(Te);var He=Te._muted||Se._muted?0:Te._volume;Ve.gain.setValueAtTime(He,I.ctx.currentTime),Te._playStart=I.ctx.currentTime,typeof Ve.bufferSource.start>"u"?Te._loop?Ve.bufferSource.noteGrainOn(0,Pe,86400):Ve.bufferSource.noteGrainOn(0,Pe,Ie):Te._loop?Ve.bufferSource.start(0,Pe,86400):Ve.bufferSource.start(0,Pe,Ie),Me!==1/0&&(Se._endTimers[Te._id]=setTimeout(Se._ended.bind(Se,Te),Me)),_e||setTimeout(function(){Se._emit("play",Te._id),Se._loadQueue()},0)};I.state==="running"&&I.ctx.state!=="interrupted"?Xe():(Se._playLock=!0,Se.once("resume",Xe),Se._clearTimer(Te._id))}else{var Ue=function(){Ve.currentTime=Pe,Ve.muted=Te._muted||Se._muted||I._muted||Ve.muted,Ve.volume=Te._volume*I.volume(),Ve.playbackRate=Te._rate;try{var He=Ve.play();if(He&&typeof Promise<"u"&&(He instanceof Promise||typeof He.then=="function")?(Se._playLock=!0,$e(),He.then(function(){Se._playLock=!1,Ve._unlocked=!0,_e?Se._loadQueue():Se._emit("play",Te._id)}).catch(function(){Se._playLock=!1,Se._emit("playerror",Te._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),Te._ended=!0,Te._paused=!0})):_e||(Se._playLock=!1,$e(),Se._emit("play",Te._id)),Ve.playbackRate=Te._rate,Ve.paused){Se._emit("playerror",Te._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");return}Z!=="__default"||Te._loop?Se._endTimers[Te._id]=setTimeout(Se._ended.bind(Se,Te),Me):(Se._endTimers[Te._id]=function(){Se._ended(Te),Ve.removeEventListener("ended",Se._endTimers[Te._id],!1)},Ve.addEventListener("ended",Se._endTimers[Te._id],!1))}catch(je){Se._emit("playerror",Te._id,je)}};Ve.src==="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"&&(Ve.src=Se._src,Ve.load());var We=window&&window.ejecta||!Ve.readyState&&I._navigator.isCocoonJS;if(Ve.readyState>=3||We)Ue();else{Se._playLock=!0,Se._state="loading";var ze=function(){Se._state="loaded",Ue(),Ve.removeEventListener(I._canPlayEvent,ze,!1)};Ve.addEventListener(I._canPlayEvent,ze,!1),Se._clearTimer(Te._id)}}return Te._id},pause:function(Z){var _e=this;if(_e._state!=="loaded"||_e._playLock)return _e._queue.push({event:"pause",action:function(){_e.pause(Z)}}),_e;for(var Se=_e._getSoundIds(Z),Ee=0;Ee<Se.length;Ee++){_e._clearTimer(Se[Ee]);var Ae=_e._soundById(Se[Ee]);if(Ae&&!Ae._paused&&(Ae._seek=_e.seek(Se[Ee]),Ae._rateSeek=0,Ae._paused=!0,_e._stopFade(Se[Ee]),Ae._node))if(_e._webAudio){if(!Ae._node.bufferSource)continue;typeof Ae._node.bufferSource.stop>"u"?Ae._node.bufferSource.noteOff(0):Ae._node.bufferSource.stop(0),_e._cleanBuffer(Ae._node)}else(!isNaN(Ae._node.duration)||Ae._node.duration===1/0)&&Ae._node.pause();arguments[1]||_e._emit("pause",Ae?Ae._id:null)}return _e},stop:function(Z,_e){var Se=this;if(Se._state!=="loaded"||Se._playLock)return Se._queue.push({event:"stop",action:function(){Se.stop(Z)}}),Se;for(var Ee=Se._getSoundIds(Z),Ae=0;Ae<Ee.length;Ae++){Se._clearTimer(Ee[Ae]);var Re=Se._soundById(Ee[Ae]);Re&&(Re._seek=Re._start||0,Re._rateSeek=0,Re._paused=!0,Re._ended=!0,Se._stopFade(Ee[Ae]),Re._node&&(Se._webAudio?Re._node.bufferSource&&(typeof Re._node.bufferSource.stop>"u"?Re._node.bufferSource.noteOff(0):Re._node.bufferSource.stop(0),Se._cleanBuffer(Re._node)):(!isNaN(Re._node.duration)||Re._node.duration===1/0)&&(Re._node.currentTime=Re._start||0,Re._node.pause(),Re._node.duration===1/0&&Se._clearSound(Re._node))),_e||Se._emit("stop",Re._id))}return Se},mute:function(Z,_e){var Se=this;if(Se._state!=="loaded"||Se._playLock)return Se._queue.push({event:"mute",action:function(){Se.mute(Z,_e)}}),Se;if(typeof _e>"u")if(typeof Z=="boolean")Se._muted=Z;else return Se._muted;for(var Ee=Se._getSoundIds(_e),Ae=0;Ae<Ee.length;Ae++){var Re=Se._soundById(Ee[Ae]);Re&&(Re._muted=Z,Re._interval&&Se._stopFade(Re._id),Se._webAudio&&Re._node?Re._node.gain.setValueAtTime(Z?0:Re._volume,I.ctx.currentTime):Re._node&&(Re._node.muted=I._muted?!0:Z),Se._emit("mute",Re._id))}return Se},volume:function(){var Z=this,_e=arguments,Se,Ee;if(_e.length===0)return Z._volume;if(_e.length===1||_e.length===2&&typeof _e[1]>"u"){var Ae=Z._getSoundIds(),Re=Ae.indexOf(_e[0]);Re>=0?Ee=parseInt(_e[0],10):Se=parseFloat(_e[0])}else _e.length>=2&&(Se=parseFloat(_e[0]),Ee=parseInt(_e[1],10));var Te;if(typeof Se<"u"&&Se>=0&&Se<=1){if(Z._state!=="loaded"||Z._playLock)return Z._queue.push({event:"volume",action:function(){Z.volume.apply(Z,_e)}}),Z;typeof Ee>"u"&&(Z._volume=Se),Ee=Z._getSoundIds(Ee);for(var we=0;we<Ee.length;we++)Te=Z._soundById(Ee[we]),Te&&(Te._volume=Se,_e[2]||Z._stopFade(Ee[we]),Z._webAudio&&Te._node&&!Te._muted?Te._node.gain.setValueAtTime(Se,I.ctx.currentTime):Te._node&&!Te._muted&&(Te._node.volume=Se*I.volume()),Z._emit("volume",Te._id))}else return Te=Ee?Z._soundById(Ee):Z._sounds[0],Te?Te._volume:0;return Z},fade:function(Z,_e,Se,Ee){var Ae=this;if(Ae._state!=="loaded"||Ae._playLock)return Ae._queue.push({event:"fade",action:function(){Ae.fade(Z,_e,Se,Ee)}}),Ae;Z=Math.min(Math.max(0,parseFloat(Z)),1),_e=Math.min(Math.max(0,parseFloat(_e)),1),Se=parseFloat(Se),Ae.volume(Z,Ee);for(var Re=Ae._getSoundIds(Ee),Te=0;Te<Re.length;Te++){var we=Ae._soundById(Re[Te]);if(we){if(Ee||Ae._stopFade(Re[Te]),Ae._webAudio&&!we._muted){var Pe=I.ctx.currentTime,Ie=Pe+Se/1e3;we._volume=Z,we._node.gain.setValueAtTime(Z,Pe),we._node.gain.linearRampToValueAtTime(_e,Ie)}Ae._startFadeInterval(we,Z,_e,Se,Re[Te],typeof Ee>"u")}}return Ae},_startFadeInterval:function(Z,_e,Se,Ee,Ae,Re){var Te=this,we=_e,Pe=Se-_e,Ie=Math.abs(Pe/.01),Me=Math.max(4,Ie>0?Ee/Ie:Ee),Oe=Date.now();Z._fadeTo=Se,Z._interval=setInterval(function(){var Le=(Date.now()-Oe)/Ee;Oe=Date.now(),we+=Pe*Le,we=Math.round(we*100)/100,Pe<0?we=Math.max(Se,we):we=Math.min(Se,we),Te._webAudio?Z._volume=we:Te.volume(we,Z._id,!0),Re&&(Te._volume=we),(Se<_e&&we<=Se||Se>_e&&we>=Se)&&(clearInterval(Z._interval),Z._interval=null,Z._fadeTo=null,Te.volume(Se,Z._id),Te._emit("fade",Z._id))},Me)},_stopFade:function(Z){var _e=this,Se=_e._soundById(Z);return Se&&Se._interval&&(_e._webAudio&&Se._node.gain.cancelScheduledValues(I.ctx.currentTime),clearInterval(Se._interval),Se._interval=null,_e.volume(Se._fadeTo,Z),Se._fadeTo=null,_e._emit("fade",Z)),_e},loop:function(){var Z=this,_e=arguments,Se,Ee,Ae;if(_e.length===0)return Z._loop;if(_e.length===1)if(typeof _e[0]=="boolean")Se=_e[0],Z._loop=Se;else return Ae=Z._soundById(parseInt(_e[0],10)),Ae?Ae._loop:!1;else _e.length===2&&(Se=_e[0],Ee=parseInt(_e[1],10));for(var Re=Z._getSoundIds(Ee),Te=0;Te<Re.length;Te++)Ae=Z._soundById(Re[Te]),Ae&&(Ae._loop=Se,Z._webAudio&&Ae._node&&Ae._node.bufferSource&&(Ae._node.bufferSource.loop=Se,Se&&(Ae._node.bufferSource.loopStart=Ae._start||0,Ae._node.bufferSource.loopEnd=Ae._stop,Z.playing(Re[Te])&&(Z.pause(Re[Te],!0),Z.play(Re[Te],!0)))));return Z},rate:function(){var Z=this,_e=arguments,Se,Ee;if(_e.length===0)Ee=Z._sounds[0]._id;else if(_e.length===1){var Ae=Z._getSoundIds(),Re=Ae.indexOf(_e[0]);Re>=0?Ee=parseInt(_e[0],10):Se=parseFloat(_e[0])}else _e.length===2&&(Se=parseFloat(_e[0]),Ee=parseInt(_e[1],10));var Te;if(typeof Se=="number"){if(Z._state!=="loaded"||Z._playLock)return Z._queue.push({event:"rate",action:function(){Z.rate.apply(Z,_e)}}),Z;typeof Ee>"u"&&(Z._rate=Se),Ee=Z._getSoundIds(Ee);for(var we=0;we<Ee.length;we++)if(Te=Z._soundById(Ee[we]),Te){Z.playing(Ee[we])&&(Te._rateSeek=Z.seek(Ee[we]),Te._playStart=Z._webAudio?I.ctx.currentTime:Te._playStart),Te._rate=Se,Z._webAudio&&Te._node&&Te._node.bufferSource?Te._node.bufferSource.playbackRate.setValueAtTime(Se,I.ctx.currentTime):Te._node&&(Te._node.playbackRate=Se);var Pe=Z.seek(Ee[we]),Ie=(Z._sprite[Te._sprite][0]+Z._sprite[Te._sprite][1])/1e3-Pe,Me=Ie*1e3/Math.abs(Te._rate);(Z._endTimers[Ee[we]]||!Te._paused)&&(Z._clearTimer(Ee[we]),Z._endTimers[Ee[we]]=setTimeout(Z._ended.bind(Z,Te),Me)),Z._emit("rate",Te._id)}}else return Te=Z._soundById(Ee),Te?Te._rate:Z._rate;return Z},seek:function(){var Z=this,_e=arguments,Se,Ee;if(_e.length===0)Z._sounds.length&&(Ee=Z._sounds[0]._id);else if(_e.length===1){var Ae=Z._getSoundIds(),Re=Ae.indexOf(_e[0]);Re>=0?Ee=parseInt(_e[0],10):Z._sounds.length&&(Ee=Z._sounds[0]._id,Se=parseFloat(_e[0]))}else _e.length===2&&(Se=parseFloat(_e[0]),Ee=parseInt(_e[1],10));if(typeof Ee>"u")return 0;if(typeof Se=="number"&&(Z._state!=="loaded"||Z._playLock))return Z._queue.push({event:"seek",action:function(){Z.seek.apply(Z,_e)}}),Z;var Te=Z._soundById(Ee);if(Te)if(typeof Se=="number"&&Se>=0){var we=Z.playing(Ee);we&&Z.pause(Ee,!0),Te._seek=Se,Te._ended=!1,Z._clearTimer(Ee),!Z._webAudio&&Te._node&&!isNaN(Te._node.duration)&&(Te._node.currentTime=Se);var Pe=function(){we&&Z.play(Ee,!0),Z._emit("seek",Ee)};if(we&&!Z._webAudio){var Ie=function(){Z._playLock?setTimeout(Ie,0):Pe()};setTimeout(Ie,0)}else Pe()}else if(Z._webAudio){var Me=Z.playing(Ee)?I.ctx.currentTime-Te._playStart:0,Oe=Te._rateSeek?Te._rateSeek-Te._seek:0;return Te._seek+(Oe+Me*Math.abs(Te._rate))}else return Te._node.currentTime;return Z},playing:function(Z){var _e=this;if(typeof Z=="number"){var Se=_e._soundById(Z);return Se?!Se._paused:!1}for(var Ee=0;Ee<_e._sounds.length;Ee++)if(!_e._sounds[Ee]._paused)return!0;return!1},duration:function(Z){var _e=this,Se=_e._duration,Ee=_e._soundById(Z);return Ee&&(Se=_e._sprite[Ee._sprite][1]/1e3),Se},state:function(){return this._state},unload:function(){for(var Z=this,_e=Z._sounds,Se=0;Se<_e.length;Se++)_e[Se]._paused||Z.stop(_e[Se]._id),Z._webAudio||(Z._clearSound(_e[Se]._node),_e[Se]._node.removeEventListener("error",_e[Se]._errorFn,!1),_e[Se]._node.removeEventListener(I._canPlayEvent,_e[Se]._loadFn,!1),_e[Se]._node.removeEventListener("ended",_e[Se]._endFn,!1),I._releaseHtml5Audio(_e[Se]._node)),delete _e[Se]._node,Z._clearTimer(_e[Se]._id);var Ee=I._howls.indexOf(Z);Ee>=0&&I._howls.splice(Ee,1);var Ae=!0;for(Se=0;Se<I._howls.length;Se++)if(I._howls[Se]._src===Z._src||Z._src.indexOf(I._howls[Se]._src)>=0){Ae=!1;break}return V&&Ae&&delete V[Z._src],I.noAudio=!1,Z._state="unloaded",Z._sounds=[],Z=null,null},on:function(Z,_e,Se,Ee){var Ae=this,Re=Ae["_on"+Z];return typeof _e=="function"&&Re.push(Ee?{id:Se,fn:_e,once:Ee}:{id:Se,fn:_e}),Ae},off:function(Z,_e,Se){var Ee=this,Ae=Ee["_on"+Z],Re=0;if(typeof _e=="number"&&(Se=_e,_e=null),_e||Se)for(Re=0;Re<Ae.length;Re++){var Te=Se===Ae[Re].id;if(_e===Ae[Re].fn&&Te||!_e&&Te){Ae.splice(Re,1);break}}else if(Z)Ee["_on"+Z]=[];else{var we=Object.keys(Ee);for(Re=0;Re<we.length;Re++)we[Re].indexOf("_on")===0&&Array.isArray(Ee[we[Re]])&&(Ee[we[Re]]=[])}return Ee},once:function(Z,_e,Se){var Ee=this;return Ee.on(Z,_e,Se,1),Ee},_emit:function(Z,_e,Se){for(var Ee=this,Ae=Ee["_on"+Z],Re=Ae.length-1;Re>=0;Re--)(!Ae[Re].id||Ae[Re].id===_e||Z==="load")&&(setTimeout((function(Te){Te.call(this,_e,Se)}).bind(Ee,Ae[Re].fn),0),Ae[Re].once&&Ee.off(Z,Ae[Re].fn,Ae[Re].id));return Ee._loadQueue(Z),Ee},_loadQueue:function(Z){var _e=this;if(_e._queue.length>0){var Se=_e._queue[0];Se.event===Z&&(_e._queue.shift(),_e._loadQueue()),Z||Se.action()}return _e},_ended:function(Z){var _e=this,Se=Z._sprite;if(!_e._webAudio&&Z._node&&!Z._node.paused&&!Z._node.ended&&Z._node.currentTime<Z._stop)return setTimeout(_e._ended.bind(_e,Z),100),_e;var Ee=!!(Z._loop||_e._sprite[Se][2]);if(_e._emit("end",Z._id),!_e._webAudio&&Ee&&_e.stop(Z._id,!0).play(Z._id),_e._webAudio&&Ee){_e._emit("play",Z._id),Z._seek=Z._start||0,Z._rateSeek=0,Z._playStart=I.ctx.currentTime;var Ae=(Z._stop-Z._start)*1e3/Math.abs(Z._rate);_e._endTimers[Z._id]=setTimeout(_e._ended.bind(_e,Z),Ae)}return _e._webAudio&&!Ee&&(Z._paused=!0,Z._ended=!0,Z._seek=Z._start||0,Z._rateSeek=0,_e._clearTimer(Z._id),_e._cleanBuffer(Z._node),I._autoSuspend()),!_e._webAudio&&!Ee&&_e.stop(Z._id,!0),_e},_clearTimer:function(Z){var _e=this;if(_e._endTimers[Z]){if(typeof _e._endTimers[Z]!="function")clearTimeout(_e._endTimers[Z]);else{var Se=_e._soundById(Z);Se&&Se._node&&Se._node.removeEventListener("ended",_e._endTimers[Z],!1)}delete _e._endTimers[Z]}return _e},_soundById:function(Z){for(var _e=this,Se=0;Se<_e._sounds.length;Se++)if(Z===_e._sounds[Se]._id)return _e._sounds[Se];return null},_inactiveSound:function(){var Z=this;Z._drain();for(var _e=0;_e<Z._sounds.length;_e++)if(Z._sounds[_e]._ended)return Z._sounds[_e].reset();return new U(Z)},_drain:function(){var Z=this,_e=Z._pool,Se=0,Ee=0;if(!(Z._sounds.length<_e)){for(Ee=0;Ee<Z._sounds.length;Ee++)Z._sounds[Ee]._ended&&Se++;for(Ee=Z._sounds.length-1;Ee>=0;Ee--){if(Se<=_e)return;Z._sounds[Ee]._ended&&(Z._webAudio&&Z._sounds[Ee]._node&&Z._sounds[Ee]._node.disconnect(0),Z._sounds.splice(Ee,1),Se--)}}},_getSoundIds:function(Z){var _e=this;if(typeof Z>"u"){for(var Se=[],Ee=0;Ee<_e._sounds.length;Ee++)Se.push(_e._sounds[Ee]._id);return Se}else return[Z]},_refreshBuffer:function(Z){var _e=this;return Z._node.bufferSource=I.ctx.createBufferSource(),Z._node.bufferSource.buffer=V[_e._src],Z._panner?Z._node.bufferSource.connect(Z._panner):Z._node.bufferSource.connect(Z._node),Z._node.bufferSource.loop=Z._loop,Z._loop&&(Z._node.bufferSource.loopStart=Z._start||0,Z._node.bufferSource.loopEnd=Z._stop||0),Z._node.bufferSource.playbackRate.setValueAtTime(Z._rate,I.ctx.currentTime),_e},_cleanBuffer:function(Z){var _e=this,Se=I._navigator&&I._navigator.vendor.indexOf("Apple")>=0;if(I._scratchBuffer&&Z.bufferSource&&(Z.bufferSource.onended=null,Z.bufferSource.disconnect(0),Se))try{Z.bufferSource.buffer=I._scratchBuffer}catch{}return Z.bufferSource=null,_e},_clearSound:function(Z){var _e=/MSIE |Trident\//.test(I._navigator&&I._navigator.userAgent);_e||(Z.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var U=function(Z){this._parent=Z,this.init()};U.prototype={init:function(){var Z=this,_e=Z._parent;return Z._muted=_e._muted,Z._loop=_e._loop,Z._volume=_e._volume,Z._rate=_e._rate,Z._seek=0,Z._paused=!0,Z._ended=!0,Z._sprite="__default",Z._id=++I._counter,_e._sounds.push(Z),Z.create(),Z},create:function(){var Z=this,_e=Z._parent,Se=I._muted||Z._muted||Z._parent._muted?0:Z._volume;return _e._webAudio?(Z._node=typeof I.ctx.createGain>"u"?I.ctx.createGainNode():I.ctx.createGain(),Z._node.gain.setValueAtTime(Se,I.ctx.currentTime),Z._node.paused=!0,Z._node.connect(I.masterGain)):I.noAudio||(Z._node=I._obtainHtml5Audio(),Z._errorFn=Z._errorListener.bind(Z),Z._node.addEventListener("error",Z._errorFn,!1),Z._loadFn=Z._loadListener.bind(Z),Z._node.addEventListener(I._canPlayEvent,Z._loadFn,!1),Z._endFn=Z._endListener.bind(Z),Z._node.addEventListener("ended",Z._endFn,!1),Z._node.src=_e._src,Z._node.preload=_e._preload===!0?"auto":_e._preload,Z._node.volume=Se*I.volume(),Z._node.load()),Z},reset:function(){var Z=this,_e=Z._parent;return Z._muted=_e._muted,Z._loop=_e._loop,Z._volume=_e._volume,Z._rate=_e._rate,Z._seek=0,Z._rateSeek=0,Z._paused=!0,Z._ended=!0,Z._sprite="__default",Z._id=++I._counter,Z},_errorListener:function(){var Z=this;Z._parent._emit("loaderror",Z._id,Z._node.error?Z._node.error.code:0),Z._node.removeEventListener("error",Z._errorFn,!1)},_loadListener:function(){var Z=this,_e=Z._parent;_e._duration=Math.ceil(Z._node.duration*10)/10,Object.keys(_e._sprite).length===0&&(_e._sprite={__default:[0,_e._duration*1e3]}),_e._state!=="loaded"&&(_e._state="loaded",_e._emit("load"),_e._loadQueue()),Z._node.removeEventListener(I._canPlayEvent,Z._loadFn,!1)},_endListener:function(){var Z=this,_e=Z._parent;_e._duration===1/0&&(_e._duration=Math.ceil(Z._node.duration*10)/10,_e._sprite.__default[1]===1/0&&(_e._sprite.__default[1]=_e._duration*1e3),_e._ended(Z)),Z._node.removeEventListener("ended",Z._endFn,!1)}};var V={},X=function(Z){var _e=Z._src;if(V[_e]){Z._duration=V[_e].duration,J(Z);return}if(/^data:[^;]+;base64,/.test(_e)){for(var Se=atob(_e.split(",")[1]),Ee=new Uint8Array(Se.length),Ae=0;Ae<Se.length;++Ae)Ee[Ae]=Se.charCodeAt(Ae);K(Ee.buffer,Z)}else{var Re=new XMLHttpRequest;Re.open(Z._xhr.method,_e,!0),Re.withCredentials=Z._xhr.withCredentials,Re.responseType="arraybuffer",Z._xhr.headers&&Object.keys(Z._xhr.headers).forEach(function(Te){Re.setRequestHeader(Te,Z._xhr.headers[Te])}),Re.onload=function(){var Te=(Re.status+"")[0];if(Te!=="0"&&Te!=="2"&&Te!=="3"){Z._emit("loaderror",null,"Failed loading audio file with status: "+Re.status+".");return}K(Re.response,Z)},Re.onerror=function(){Z._webAudio&&(Z._html5=!0,Z._webAudio=!1,Z._sounds=[],delete V[_e],Z.load())},Y(Re)}},Y=function(Z){try{Z.send()}catch{Z.onerror()}},K=function(Z,_e){var Se=function(){_e._emit("loaderror",null,"Decoding audio data failed.")},Ee=function(Ae){Ae&&_e._sounds.length>0?(V[_e._src]=Ae,J(_e,Ae)):Se()};typeof Promise<"u"&&I.ctx.decodeAudioData.length===1?I.ctx.decodeAudioData(Z).then(Ee).catch(Se):I.ctx.decodeAudioData(Z,Ee,Se)},J=function(Z,_e){_e&&!Z._duration&&(Z._duration=_e.duration),Object.keys(Z._sprite).length===0&&(Z._sprite={__default:[0,Z._duration*1e3]}),Z._state!=="loaded"&&(Z._state="loaded",Z._emit("load"),Z._loadQueue())},xe=function(){if(I.usingWebAudio){try{typeof AudioContext<"u"?I.ctx=new AudioContext:typeof webkitAudioContext<"u"?I.ctx=new webkitAudioContext:I.usingWebAudio=!1}catch{I.usingWebAudio=!1}I.ctx||(I.usingWebAudio=!1);var Z=/iP(hone|od|ad)/.test(I._navigator&&I._navigator.platform),_e=I._navigator&&I._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),Se=_e?parseInt(_e[1],10):null;if(Z&&Se&&Se<9){var Ee=/safari/.test(I._navigator&&I._navigator.userAgent.toLowerCase());I._navigator&&!Ee&&(I.usingWebAudio=!1)}I.usingWebAudio&&(I.masterGain=typeof I.ctx.createGain>"u"?I.ctx.createGainNode():I.ctx.createGain(),I.masterGain.gain.setValueAtTime(I._muted?0:I._volume,I.ctx.currentTime),I.masterGain.connect(I.ctx.destination)),I._setup()}};C.Howler=I,C.Howl=B,typeof commonjsGlobal$1<"u"?(commonjsGlobal$1.HowlerGlobal=E,commonjsGlobal$1.Howler=I,commonjsGlobal$1.Howl=B,commonjsGlobal$1.Sound=U):typeof window<"u"&&(window.HowlerGlobal=E,window.Howler=I,window.Howl=B,window.Sound=U)})();/*!
1981
1981
  * Spatial Plugin - Adds support for stereo and 3D audio where Web Audio is supported.
1982
1982
  *
1983
1983
  * howler.js v2.2.3
@@ -1994,12 +1994,12 @@ void main() {
1994
1994
  * @version 4.3.0
1995
1995
  * @author Henrique Avila Vianna <hvianna@gmail.com> <https://henriquevianna.com>
1996
1996
  * @license AGPL-3.0-or-later
1997
- */const VERSION="4.3.0",PI=Math.PI,TAU=2*PI,HALF_PI=PI/2,C_1=8.17579892,CHANNEL_COMBINED="dual-combined",CHANNEL_HORIZONTAL="dual-horizontal",CHANNEL_SINGLE="single",CHANNEL_VERTICAL="dual-vertical",COLOR_BAR_INDEX="bar-index",COLOR_BAR_LEVEL="bar-level",COLOR_GRADIENT="gradient",DEBOUNCE_TIMEOUT=60,EVENT_CLICK="click",EVENT_FULLSCREENCHANGE="fullscreenchange",EVENT_RESIZE="resize",GRADIENT_DEFAULT_BGCOLOR="#111",FILTER_NONE="",FILTER_A="A",FILTER_B="B",FILTER_C="C",FILTER_D="D",FILTER_468="468",FONT_FAMILY="sans-serif",FPS_COLOR="#0f0",LEDS_UNLIT_COLOR="#7f7f7f22",MODE_GRAPH=10,REASON_CREATE="create",REASON_FSCHANGE="fschange",REASON_LORES="lores",REASON_RESIZE=EVENT_RESIZE,REASON_USER="user",SCALEX_BACKGROUND_COLOR="#000c",SCALEX_LABEL_COLOR="#fff",SCALEX_HIGHLIGHT_COLOR="#4f4",SCALEY_LABEL_COLOR="#888",SCALEY_MIDLINE_COLOR="#555",SCALE_BARK="bark",SCALE_LINEAR="linear",SCALE_LOG="log",SCALE_MEL="mel",PRISM=["#a35","#c66","#e94","#ed0","#9d5","#4d8","#2cb","#0bc","#09c","#36b"],GRADIENTS=[["classic",{colorStops:["red",{color:"yellow",level:.85,pos:.6},{color:"lime",level:.475}]}],["prism",{colorStops:PRISM}],["rainbow",{dir:"h",colorStops:["#817",...PRISM,"#639"]}],["orangered",{bgColor:"#3e2f29",colorStops:["OrangeRed"]}],["steelblue",{bgColor:"#222c35",colorStops:["SteelBlue"]}]],ERR_AUDIO_CONTEXT_FAIL=["ERR_AUDIO_CONTEXT_FAIL","Could not create audio context. Web Audio API not supported?"],ERR_INVALID_AUDIO_CONTEXT=["ERR_INVALID_AUDIO_CONTEXT","Provided audio context is not valid"],ERR_UNKNOWN_GRADIENT=["ERR_UNKNOWN_GRADIENT","Unknown gradient"],ERR_FREQUENCY_TOO_LOW=["ERR_FREQUENCY_TOO_LOW","Frequency values must be >= 1"],ERR_INVALID_MODE=["ERR_INVALID_MODE","Invalid mode"],ERR_REFLEX_OUT_OF_RANGE=["ERR_REFLEX_OUT_OF_RANGE","Reflex ratio must be >= 0 and < 1"],ERR_INVALID_AUDIO_SOURCE=["ERR_INVALID_AUDIO_SOURCE","Audio source must be an instance of HTMLMediaElement or AudioNode"],ERR_GRADIENT_INVALID_NAME=["ERR_GRADIENT_INVALID_NAME","Gradient name must be a non-empty string"],ERR_GRADIENT_NOT_AN_OBJECT=["ERR_GRADIENT_NOT_AN_OBJECT","Gradient options must be an object"],ERR_GRADIENT_MISSING_COLOR=["ERR_GRADIENT_MISSING_COLOR","Gradient colorStops must be a non-empty array"];class AudioMotionError extends Error{constructor(E,I){const[B,U]=E;super(U+(I!==void 0?`: ${I}`:"")),this.name="AudioMotionError",this.code=B}}const deprecate=(C,E)=>console.warn(`${C} is deprecated. Use ${E} instead.`),validateFromList=(C,E,I="toLowerCase")=>E[Math.max(0,E.indexOf((""+C)[I]()))],findY=(C,E,I,B,U)=>E+(B-E)*(U-C)/(I-C);Array.prototype.findLastIndex||(Array.prototype.findLastIndex=function(C){let E=this.length;for(;E-- >0;)if(C(this[E]))return E;return-1});class AudioMotionAnalyzer{constructor(E,I={}){this._ready=!1,this._aux={},this._canvasGradients=[],this._destroyed=!1,this._energy={val:0,peak:0,hold:0},this._flg={},this._fps=0,this._gradients={},this._last=0,this._outNodes=[],this._ownContext=!1,this._selectedGrads=[],this._sources=[];for(const[Z,_e]of GRADIENTS)this.registerGradient(Z,_e);this._container=E||document.body,this._defaultWidth=this._container.clientWidth||640,this._defaultHeight=this._container.clientHeight||270;let B;if(!(I.source&&(B=I.source.context))){if(!(B=I.audioCtx))try{B=new(window.AudioContext||window.webkitAudioContext),this._ownContext=!0}catch{throw new AudioMotionError(ERR_AUDIO_CONTEXT_FAIL)}}if(!B.createGain)throw new AudioMotionError(ERR_INVALID_AUDIO_CONTEXT);const U=this._analyzer=[B.createAnalyser(),B.createAnalyser()],V=this._splitter=B.createChannelSplitter(2),X=this._merger=B.createChannelMerger(2);this._input=B.createGain(),this._output=B.createGain(),I.source&&this.connectInput(I.source);for(const Z of[0,1])V.connect(U[Z],Z);X.connect(this._output),I.connectSpeakers!==!1&&this.connectOutput();const Y=document.createElement("canvas");Y.style="max-width: 100%;",this._ctx=Y.getContext("2d");for(const Z of["_scaleX","_scaleR"])this[Z]=document.createElement("canvas").getContext("2d");this._fsEl=I.fsElement||Y;const K=()=>{this._fsTimeout||(this._fsTimeout=window.setTimeout(()=>{this._fsChanging||(this._setCanvas(REASON_RESIZE),this._fsTimeout=0)},DEBOUNCE_TIMEOUT))};window.ResizeObserver&&(this._observer=new ResizeObserver(K),this._observer.observe(this._container)),this._controller=new AbortController;const J=this._controller.signal;window.addEventListener(EVENT_RESIZE,K,{signal:J}),Y.addEventListener(EVENT_FULLSCREENCHANGE,()=>{this._fsChanging=!0,this._fsTimeout&&window.clearTimeout(this._fsTimeout),this._setCanvas(REASON_FSCHANGE),this._fsTimeout=window.setTimeout(()=>{this._fsChanging=!1,this._fsTimeout=0},DEBOUNCE_TIMEOUT)},{signal:J});const xe=()=>{B.state=="suspended"&&B.resume(),window.removeEventListener(EVENT_CLICK,xe)};window.addEventListener(EVENT_CLICK,xe),document.addEventListener("visibilitychange",()=>{document.visibilityState!="hidden"&&(this._frames=0,this._time=performance.now())},{signal:J}),this._setProps(I,!0),this.useCanvas&&this._container.appendChild(Y),this._ready=!0,this._setCanvas(REASON_CREATE)}get alphaBars(){return this._alphaBars}set alphaBars(E){this._alphaBars=!!E,this._calcBars()}get ansiBands(){return this._ansiBands}set ansiBands(E){this._ansiBands=!!E,this._calcBars()}get barSpace(){return this._barSpace}set barSpace(E){this._barSpace=+E||0,this._calcBars()}get channelLayout(){return this._chLayout}set channelLayout(E){this._chLayout=validateFromList(E,[CHANNEL_SINGLE,CHANNEL_HORIZONTAL,CHANNEL_VERTICAL,CHANNEL_COMBINED]),this._input.disconnect(),this._input.connect(this._chLayout!=CHANNEL_SINGLE?this._splitter:this._analyzer[0]),this._analyzer[0].disconnect(),this._outNodes.length&&this._analyzer[0].connect(this._chLayout!=CHANNEL_SINGLE?this._merger:this._output),this._calcBars(),this._makeGrad()}get colorMode(){return this._colorMode}set colorMode(E){this._colorMode=validateFromList(E,[COLOR_GRADIENT,COLOR_BAR_INDEX,COLOR_BAR_LEVEL])}get fftSize(){return this._analyzer[0].fftSize}set fftSize(E){for(const B of[0,1])this._analyzer[B].fftSize=E;const I=this._analyzer[0].frequencyBinCount;this._fftData=[new Float32Array(I),new Float32Array(I)],this._calcBars()}get frequencyScale(){return this._frequencyScale}set frequencyScale(E){this._frequencyScale=validateFromList(E,[SCALE_LOG,SCALE_BARK,SCALE_MEL,SCALE_LINEAR]),this._calcBars()}get gradient(){return this._selectedGrads[0]}set gradient(E){this._setGradient(E)}get gradientLeft(){return this._selectedGrads[0]}set gradientLeft(E){this._setGradient(E,0)}get gradientRight(){return this._selectedGrads[1]}set gradientRight(E){this._setGradient(E,1)}get height(){return this._height}set height(E){this._height=E,this._setCanvas(REASON_USER)}get ledBars(){return this._showLeds}set ledBars(E){this._showLeds=!!E,this._calcBars()}get linearAmplitude(){return this._linearAmplitude}set linearAmplitude(E){this._linearAmplitude=!!E}get linearBoost(){return this._linearBoost}set linearBoost(E){this._linearBoost=E>=1?+E:1}get lineWidth(){return this._lineWidth}set lineWidth(E){this._lineWidth=+E||0}get loRes(){return this._loRes}set loRes(E){this._loRes=!!E,this._setCanvas(REASON_LORES)}get lumiBars(){return this._lumiBars}set lumiBars(E){this._lumiBars=!!E,this._calcBars(),this._makeGrad()}get maxDecibels(){return this._analyzer[0].maxDecibels}set maxDecibels(E){for(const I of[0,1])this._analyzer[I].maxDecibels=E}get maxFPS(){return this._maxFPS}set maxFPS(E){this._maxFPS=E<0?0:+E||0}get maxFreq(){return this._maxFreq}set maxFreq(E){if(E<1)throw new AudioMotionError(ERR_FREQUENCY_TOO_LOW);this._maxFreq=Math.min(E,this.audioCtx.sampleRate/2),this._calcBars()}get minDecibels(){return this._analyzer[0].minDecibels}set minDecibels(E){for(const I of[0,1])this._analyzer[I].minDecibels=E}get minFreq(){return this._minFreq}set minFreq(E){if(E<1)throw new AudioMotionError(ERR_FREQUENCY_TOO_LOW);this._minFreq=+E,this._calcBars()}get mirror(){return this._mirror}set mirror(E){this._mirror=Math.sign(E)|0,this._calcBars(),this._makeGrad()}get mode(){return this._mode}set mode(E){const I=E|0;if(I>=0&&I<=10&&I!=9)this._mode=I,this._calcBars(),this._makeGrad();else throw new AudioMotionError(ERR_INVALID_MODE,E)}get noteLabels(){return this._noteLabels}set noteLabels(E){this._noteLabels=!!E,this._createScales()}get outlineBars(){return this._outlineBars}set outlineBars(E){this._outlineBars=!!E,this._calcBars()}get peakLine(){return this._peakLine}set peakLine(E){this._peakLine=!!E}get radial(){return this._radial}set radial(E){this._radial=!!E,this._calcBars(),this._makeGrad()}get reflexRatio(){return this._reflexRatio}set reflexRatio(E){if(E=+E||0,E<0||E>=1)throw new AudioMotionError(ERR_REFLEX_OUT_OF_RANGE);this._reflexRatio=E,this._calcBars(),this._makeGrad()}get roundBars(){return this._roundBars}set roundBars(E){this._roundBars=!!E,this._calcBars()}get smoothing(){return this._analyzer[0].smoothingTimeConstant}set smoothing(E){for(const I of[0,1])this._analyzer[I].smoothingTimeConstant=E}get spinSpeed(){return this._spinSpeed}set spinSpeed(E){E=+E||0,(this._spinSpeed===void 0||E==0)&&(this._spinAngle=-HALF_PI),this._spinSpeed=E}get splitGradient(){return this._splitGradient}set splitGradient(E){this._splitGradient=!!E,this._makeGrad()}get stereo(){return deprecate("stereo","channelLayout"),this._chLayout!=CHANNEL_SINGLE}set stereo(E){deprecate("stereo","channelLayout"),this.channelLayout=E?CHANNEL_VERTICAL:CHANNEL_SINGLE}get trueLeds(){return this._trueLeds}set trueLeds(E){this._trueLeds=!!E}get volume(){return this._output.gain.value}set volume(E){this._output.gain.value=E}get weightingFilter(){return this._weightingFilter}set weightingFilter(E){this._weightingFilter=validateFromList(E,[FILTER_NONE,FILTER_A,FILTER_B,FILTER_C,FILTER_D,FILTER_468],"toUpperCase")}get width(){return this._width}set width(E){this._width=E,this._setCanvas(REASON_USER)}get audioCtx(){return this._input.context}get canvas(){return this._ctx.canvas}get canvasCtx(){return this._ctx}get connectedSources(){return this._sources}get connectedTo(){return this._outNodes}get fps(){return this._fps}get fsHeight(){return this._fsHeight}get fsWidth(){return this._fsWidth}get isAlphaBars(){return this._flg.isAlpha}get isBandsMode(){return this._flg.isBands}get isDestroyed(){return this._destroyed}get isFullscreen(){return this._fsEl&&(document.fullscreenElement||document.webkitFullscreenElement)===this._fsEl}get isLedBars(){return this._flg.isLeds}get isLumiBars(){return this._flg.isLumi}get isOctaveBands(){return this._flg.isOctaves}get isOn(){return!!this._runId}get isOutlineBars(){return this._flg.isOutline}get pixelRatio(){return this._pixelRatio}get isRoundBars(){return this._flg.isRound}static get version(){return VERSION}connectInput(E){const I=E instanceof HTMLMediaElement;if(!(I||E.connect))throw new AudioMotionError(ERR_INVALID_AUDIO_SOURCE);const B=I?this.audioCtx.createMediaElementSource(E):E;return this._sources.includes(B)||(B.connect(this._input),this._sources.push(B)),B}connectOutput(E=this.audioCtx.destination){if(!this._outNodes.includes(E)&&(this._output.connect(E),this._outNodes.push(E),this._outNodes.length==1))for(const I of[0,1])this._analyzer[I].connect(this._chLayout==CHANNEL_SINGLE&&!I?this._output:this._merger,0,I)}destroy(){if(!this._ready)return;const{audioCtx:E,canvas:I,_controller:B,_input:U,_merger:V,_observer:X,_ownContext:Y,_splitter:K}=this;this._destroyed=!0,this._ready=!1,this.stop(),B.abort(),X&&X.disconnect(),this.onCanvasResize=null,this.onCanvasDraw=null,this._fsEl=null,this.disconnectInput(),this.disconnectOutput(),U.disconnect(),K.disconnect(),V.disconnect(),Y&&E.close(),I.remove(),this._calcBars()}disconnectInput(E,I){E?Array.isArray(E)||(E=[E]):E=Array.from(this._sources);for(const B of E){const U=this._sources.indexOf(B);if(I&&B.mediaStream)for(const V of B.mediaStream.getAudioTracks())V.stop();U>=0&&(B.disconnect(this._input),this._sources.splice(U,1))}}disconnectOutput(E){if(!(E&&!this._outNodes.includes(E))&&(this._output.disconnect(E),this._outNodes=E?this._outNodes.filter(I=>I!==E):[],this._outNodes.length==0))for(const I of[0,1])this._analyzer[I].disconnect()}getBars(){return Array.from(this._bars,({posX:E,freq:I,freqLo:B,freqHi:U,hold:V,peak:X,value:Y})=>({posX:E,freq:I,freqLo:B,freqHi:U,hold:V,peak:X,value:Y}))}getEnergy(E,I){if(E===void 0)return this._energy.val;if(E!=+E){if(E=="peak")return this._energy.peak;const Y={bass:[20,250],lowMid:[250,500],mid:[500,2e3],highMid:[2e3,4e3],treble:[4e3,16e3]};if(!Y[E])return null;[E,I]=Y[E]}const B=this._freqToBin(E),U=I?this._freqToBin(I):B,V=this._chLayout==CHANNEL_SINGLE?1:2;let X=0;for(let Y=0;Y<V;Y++)for(let K=B;K<=U;K++)X+=this._normalizedB(this._fftData[Y][K]);return X/(U-B+1)/V}registerGradient(E,I){if(typeof E!="string"||E.trim().length==0)throw new AudioMotionError(ERR_GRADIENT_INVALID_NAME);if(typeof I!="object")throw new AudioMotionError(ERR_GRADIENT_NOT_AN_OBJECT);const{colorStops:B}=I;if(!Array.isArray(B)||!B.length)throw new AudioMotionError(ERR_GRADIENT_MISSING_COLOR);const U=B.length,V=X=>+X!=X||X<0||X>1;B.forEach((X,Y)=>{const K=Y/Math.max(1,U-1);typeof X!="object"?B[Y]={pos:K,color:X}:V(X.pos)&&(X.pos=K),V(X.level)&&(B[Y].level=1-Y/U)}),B.sort((X,Y)=>X.level<Y.level?1:X.level>Y.level?-1:0),B[0].level=1,this._gradients[E]={bgColor:I.bgColor||GRADIENT_DEFAULT_BGCOLOR,dir:I.dir,colorStops:B},this._selectedGrads.includes(E)&&this._makeGrad()}setCanvasSize(E,I){this._width=E,this._height=I,this._setCanvas(REASON_USER)}setFreqRange(E,I){if(E<1||I<1)throw new AudioMotionError(ERR_FREQUENCY_TOO_LOW);this._minFreq=Math.min(E,I),this.maxFreq=Math.max(E,I)}setLedParams(E){let I,B,U;E&&(I=E.maxLeds|0,B=+E.spaceV,U=+E.spaceH),this._ledParams=I>0&&B>0&&U>=0?[I,B,U]:void 0,this._calcBars()}setOptions(E){this._setProps(E)}setSensitivity(E,I){for(const B of[0,1])this._analyzer[B].minDecibels=Math.min(E,I),this._analyzer[B].maxDecibels=Math.max(E,I)}start(){this.toggleAnalyzer(!0)}stop(){this.toggleAnalyzer(!1)}toggleAnalyzer(E){const I=this.isOn;return E===void 0&&(E=!I),I&&!E?(cancelAnimationFrame(this._runId),this._runId=0):!I&&E&&!this._destroyed&&(this._frames=0,this._time=performance.now(),this._runId=requestAnimationFrame(B=>this._draw(B))),this.isOn}toggleFullscreen(){if(this.isFullscreen)document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen&&document.webkitExitFullscreen();else{const E=this._fsEl;if(!E)return;E.requestFullscreen?E.requestFullscreen():E.webkitRequestFullscreen&&E.webkitRequestFullscreen()}}_binToFreq(E){return E*this.audioCtx.sampleRate/this.fftSize||1}_calcBars(){const E=this._bars=[];if(!this._ready){this._flg={isAlpha:!1,isBands:!1,isLeds:!1,isLumi:!1,isOctaves:!1,isOutline:!1,isRound:!1,noLedGap:!1};return}const{_ansiBands:I,_barSpace:B,canvas:U,_chLayout:V,_maxFreq:X,_minFreq:Y,_mirror:K,_mode:J,_radial:xe,_reflexRatio:Z}=this,_e=U.width>>1,Se=U.height>>1,Ee=V==CHANNEL_VERTICAL&&!xe,Ae=V==CHANNEL_HORIZONTAL,Re=J%10!=0,Te=Re&&this._frequencyScale==SCALE_LOG,we=this._showLeds&&Re&&!xe,Pe=this._lumiBars&&Re&&!xe,Ie=this._alphaBars&&!Pe&&J!=MODE_GRAPH,Fe=this._outlineBars&&Re&&!Pe&&!we,Oe=this._roundBars&&Re&&!Pe&&!we,Le=V!=CHANNEL_VERTICAL||Z>0&&!Pe,De=U.height-(Ee&&!we?.5:0)>>Ee,Ve=De*(Pe||xe?1:1-Z)|0,Xe=U.width-_e*(Ae||K!=0),Ue=Ee?U.height-De*2:0,We=_e*(K==-1&&!Ae&&!xe),je=Math.min(U.width,U.height)*(V==CHANNEL_VERTICAL?.375:.125)|0,ze=Math.min(_e,Se),He=Ye=>E.push({...Ye,peak:[0,0],hold:[0],value:[0]}),$e=Ye=>{const et=this._freqToBin(Ye,"floor"),Qe=this._binToFreq(et),it=this._binToFreq(et+1),nt=Math.log2(Ye/Qe)/Math.log2(it/Qe);return[et,nt]};let Ne,Me,ke;if(Te){const Ye=(st,rt,tt)=>+st.toPrecision(tt?Math.max(rt,1+Math.log10(st)|0):rt),et=st=>{const rt=[1,1.12,1.25,1.4,1.6,1.8,2,2.24,2.5,2.8,3.15,3.55,4,4.5,5,5.6,6.3,7.1,8,9,10],tt=Math.log10(st)|0,at=st/10**tt;let ut=1;for(;ut<rt.length&&at>rt[ut];)ut++;return at-rt[ut-1]<rt[ut]-at&&ut--,(rt[ut]*10**(tt+5)|0)/1e5},Qe=[0,24,12,8,6,4,3,2,1][J],it=I?10**(3/(Qe*10)):2**(1/Qe),nt=it**.5;let ot=I?7.94328235/(Qe%2?1:nt):C_1;do{let st=ot;const rt=Ye(st/nt,4,!0),tt=Ye(st*nt,4,!0),[at,ut]=$e(rt),[mt,pt]=$e(tt);I?st=Qe<4?et(st):Ye(st,st.toString()[0]<5?3:2):st=Ye(st,4,!0),st>=Y&&He({posX:0,freq:st,freqLo:rt,freqHi:tt,binLo:at,binHi:mt,ratioLo:ut,ratioHi:pt}),ot*=it}while(ot<=X);Ne=Xe/E.length,E.forEach((st,rt)=>st.posX=We+rt*Ne);const Ze=E[0],Je=E[E.length-1];Me=this._freqScaling(Ze.freqLo),ke=Xe/(this._freqScaling(Je.freqHi)-Me),Ze.freqLo<Y&&(Ze.freqLo=Y,[Ze.binLo,Ze.ratioLo]=$e(Y)),Je.freqHi>X&&(Je.freqHi=X,[Je.binHi,Je.ratioHi]=$e(X))}else if(Re){const Ye=[0,24,12,8,6,4,3,2,1][J]*10,et=Qe=>{switch(this._frequencyScale){case SCALE_BARK:return 1960/(26.81/(Qe+.53)-1);case SCALE_MEL:return 700*(2**Qe-1);case SCALE_LINEAR:return Qe}};Ne=Xe/Ye,Me=this._freqScaling(Y),ke=Xe/(this._freqScaling(X)-Me);for(let Qe=0,it=0;Qe<Ye;Qe++,it+=Ne){const nt=et(Me+it/ke),ot=et(Me+(it+Ne/2)/ke),Ze=et(Me+(it+Ne)/ke),[Je,st]=$e(nt),[rt,tt]=$e(Ze);He({posX:We+it,freq:ot,freqLo:nt,freqHi:Ze,binLo:Je,binHi:rt,ratioLo:st,ratioHi:tt})}}else{Ne=1,Me=this._freqScaling(Y),ke=Xe/(this._freqScaling(X)-Me);const Ye=this._freqToBin(Y,"floor"),et=this._freqToBin(X);let Qe=-999;for(let it=Ye;it<=et;it++){const nt=this._binToFreq(it),ot=We+Math.round(ke*(this._freqScaling(nt)-Me));if(ot>Qe)He({posX:ot,freq:nt,freqLo:nt,freqHi:nt,binLo:it,binHi:it,ratioLo:0,ratioHi:0}),Qe=ot;else if(E.length){const Ze=E[E.length-1];Ze.binHi=it,Ze.freqHi=nt,Ze.freq=(Ze.freqLo*nt)**.5}}}let Ge=0,Be=0;if(we){const Ye=this._pixelRatio/(window.devicePixelRatio>1&&window.screen.height<=540?2:1),et=[[],[128,3,.45],[128,4,.225],[96,6,.225],[80,6,.225],[80,6,.125],[64,6,.125],[48,8,.125],[24,16,.125]],Qe=this._ledParams,[it,nt,ot]=Qe||et[J];let Ze,Je=Ve;if(Qe){const st=2*Ye;let rt;Ze=it+1;do Ze--,rt=Je/Ze/(1+nt),Be=rt*nt;while((rt<st||Be<st)&&Ze>1)}else{const st=540/nt;Be=Math.min(nt*Ye,Math.max(2,Je/st+.1|0))}Le&&(Je+=Be),Qe||(Ze=Math.min(it,Je/(Be*2)|0)),Ge=ot>=1?ot:Ne*ot,this._leds=[Ze,Ge,Be,Je/Ze-Be]}const qe=Math.min(Ne-1,B*(B>0&&B<1?Ne:1));Re&&(Ne-=Math.max(we?Ge:0,qe)),E.forEach((Ye,et)=>{let Qe=Ye.posX,it=Ne;Re&&(B==0&&!we?(Qe|=0,it|=0,et>0&&Qe>E[et-1].posX+E[et-1].width&&(Qe--,it++)):Qe+=Math.max(we?Ge:0,qe)/2,Ye.posX=Qe),Ye.barCenter=Qe+(Ne==1?0:it/2),Ye.width=it});const Ke=[];for(const Ye of[0,1]){const et=V==CHANNEL_VERTICAL?(De+Ue)*Ye:0,Qe=et+De,it=et+Ve-(!we||Le?0:Be);Ke.push({channelTop:et,channelBottom:Qe,analyzerBottom:it})}this._aux={analyzerHeight:Ve,analyzerWidth:Xe,centerX:_e,centerY:Se,channelCoords:Ke,channelHeight:De,channelGap:Ue,initialX:We,innerRadius:je,outerRadius:ze,scaleMin:Me,unitWidth:ke},this._flg={isAlpha:Ie,isBands:Re,isLeds:we,isLumi:Pe,isOctaves:Te,isOutline:Fe,isRound:Oe,noLedGap:Le},this._createScales()}_createScales(){if(!this._ready)return;const{analyzerWidth:E,initialX:I,innerRadius:B,scaleMin:U,unitWidth:V}=this._aux,{canvas:X,_frequencyScale:Y,_mirror:K,_noteLabels:J,_radial:xe,_scaleX:Z,_scaleR:_e}=this,Se=Z.canvas,Ee=_e.canvas,Ae=[],Re=this._chLayout==CHANNEL_HORIZONTAL,Te=this._chLayout==CHANNEL_VERTICAL,we=["C",,"D",,"E","F",,"G",,"A",,"B"],Pe=Math.min(X.width,X.height)/34|0,Ie=Se.height>>1,Fe=Pe>>1,Oe=Ie*(J?.7:1.5),Le=Fe*(J?1:2),De=2**(1/12);if(!J&&(this._ansiBands||Y!=SCALE_LOG))Ae.push(16,31.5,63,125,250,500,1e3,2e3,4e3),Y==SCALE_LINEAR?Ae.push(6e3,8e3,1e4,12e3,14e3,16e3,18e3,2e4,22e3):Ae.push(8e3,16e3);else{let ze=C_1;for(let He=-1;He<11;He++)for(let $e=0;$e<12;$e++){if(ze>=this._minFreq&&ze<=this._maxFreq){const Ne=we[$e],Me=Ne=="C";(Ne&&J&&!K&&!Re||Me)&&Ae.push(J?[ze,Ne+(Me?He:"")]:ze)}ze*=De}}Ee.width=Ee.height=(B<<1)+Te*Pe;const Ve=Ee.width>>1,Xe=Ve-Pe*.7,Ue=(ze,He)=>{const $e=TAU*(ze/X.width),Ne=$e-HALF_PI,Me=Xe*Math.cos(Ne),ke=Xe*Math.sin(Ne);_e.save(),_e.translate(Ve+Me,Ve+ke),_e.rotate($e),_e.fillText(He,0,0),_e.restore()};Se.width|=0,Z.fillStyle=_e.strokeStyle=SCALEX_BACKGROUND_COLOR,Z.fillRect(0,0,Se.width,Se.height),_e.arc(Ve,Ve,Ve-Pe/2,0,TAU),_e.lineWidth=Pe,_e.stroke(),Z.fillStyle=_e.fillStyle=SCALEX_LABEL_COLOR,Z.font=`${Ie}px ${FONT_FAMILY}`,_e.font=`${Fe}px ${FONT_FAMILY}`,Z.textAlign=_e.textAlign="center";let We=-Oe/4,je=-Le;for(const ze of Ae){const[He,$e]=Array.isArray(ze)?ze:[ze,ze<1e3?ze|0:`${(ze/100|0)/10}k`],Ne=V*(this._freqScaling(He)-U),Me=Se.height*.75,ke=$e[0]=="C",Ge=Ie*(J&&!K&&!Re?ke?1.2:.6:3);if(Z.fillStyle=_e.fillStyle=ke&&!K&&!Re?SCALEX_HIGHLIGHT_COLOR:SCALEX_LABEL_COLOR,J){const Be=Y==SCALE_LOG,qe=Y==SCALE_LINEAR;let Ke=["C"];if((Be||He>2e3||!qe&&He>250||(!xe||Te)&&(!qe&&He>125||He>1e3))&&Ke.push("G"),(Be||He>4e3||!qe&&He>500||(!xe||Te)&&(!qe&&He>250||He>2e3))&&Ke.push("E"),(qe&&He>4e3||(!xe||Te)&&(Be||He>2e3||!qe&&He>500))&&Ke.push("D","F","A","B"),!Ke.includes($e[0]))continue}Ne>=We+Oe/2&&Ne<=E&&(Z.fillText($e,Re&&K==-1?E-Ne:I+Ne,Me,Ge),(Re||K&&(Ne>Oe||K==1))&&Z.fillText($e,Re&&K!=1?E+Ne:(I||X.width)-Ne,Me,Ge),We=Ne+Math.min(Ge,Z.measureText($e).width)/2),Ne>=je+Le&&Ne<E-Le&&(Ue(Re&&K==1?E-Ne:Ne,$e),(Re||K&&(Ne>Le||K==1))&&Ue(Re&&K!=-1?E+Ne:-Ne,$e),je=Ne)}}_draw(E){this._runId=requestAnimationFrame(lt=>this._draw(lt));const I=E-this._time,B=E-this._last,U=this._maxFPS?975/this._maxFPS:0;if(B<U)return;this._last=E-(U?B%U:0),this._frames++,I>=1e3&&(this._fps=this._frames/I*1e3,this._frames=0,this._time=E);const{isAlpha:V,isBands:X,isLeds:Y,isLumi:K,isOctaves:J,isOutline:xe,isRound:Z,noLedGap:_e}=this._flg,{analyzerHeight:Se,centerX:Ee,centerY:Ae,channelCoords:Re,channelHeight:Te,channelGap:we,initialX:Pe,innerRadius:Ie,outerRadius:Fe}=this._aux,{_bars:Oe,canvas:Le,_canvasGradients:De,_chLayout:Ve,_colorMode:Xe,_ctx:Ue,_energy:We,fillAlpha:je,_fps:ze,_linearAmplitude:He,_lineWidth:$e,maxDecibels:Ne,minDecibels:Me,_mirror:ke,_mode:Ge,overlay:Be,_radial:qe,showBgColor:Ke,showPeaks:Ye,useCanvas:et,_weightingFilter:Qe}=this,it=this._scaleX.canvas,nt=this._scaleR.canvas,ot=ze>>1,Ze=Ve==CHANNEL_COMBINED,Je=Ve==CHANNEL_HORIZONTAL,st=Ve==CHANNEL_VERTICAL,rt=Ve==CHANNEL_SINGLE,tt=Y&&this._trueLeds&&Xe==COLOR_GRADIENT,at=qe?Le.width:this._aux.analyzerWidth,ut=Pe+at,mt=Ye&&this._peakLine&&Ge==MODE_GRAPH,pt=qe?Fe-Ie:Se,[yt,gt,_t,Pt]=this._leds||[];We.val>0&&(this._spinAngle+=this._spinSpeed*TAU/(60*ze));const It=lt=>{if(this._reflexRatio>0&&!K&&!qe){let dt,$t;this.reflexFit||st?(dt=st&&lt==0?Te+we:0,$t=Te-Se):(dt=Le.height-Se*2,$t=Se),Ue.save(),Ue.globalAlpha=this.reflexAlpha,this.reflexBright!=1&&(Ue.filter=`brightness(${this.reflexBright})`),Ue.setTransform(1,0,0,-1,0,Le.height),Ue.drawImage(Le,0,Re[lt].channelTop,Le.width,Se,0,dt,Le.width,$t),Ue.restore()}},St=()=>{this.showScaleX&&(qe?(Ue.save(),Ue.translate(Ee,Ae),this._spinSpeed&&Ue.rotate(this._spinAngle+HALF_PI),Ue.drawImage(nt,-nt.width>>1,-nt.width>>1),Ue.restore()):Ue.drawImage(it,0,Le.height-it.height))},Lt=lt=>{const dt=lt**2,$t=424.36,Et=11599.29,Qt=25122.25,Bt=544496.41,Nt=148693636,zt=Ht=>20*Math.log10(Ht);switch(Qe){case FILTER_A:const Ht=Nt*dt**2/((dt+$t)*Math.sqrt((dt+Et)*(dt+Bt))*(dt+Nt));return 2+zt(Ht);case FILTER_B:const jt=Nt*dt*lt/((dt+$t)*Math.sqrt(dt+Qt)*(dt+Nt));return .17+zt(jt);case FILTER_C:const rr=Nt*dt/((dt+$t)*(dt+Nt));return .06+zt(rr);case FILTER_D:const Jt=((103791848e-2-dt)**2+108076816e-2*dt)/((9837328-dt)**2+11723776*dt),ir=lt/68966888496476e-18*Math.sqrt(Jt/((dt+79919.29)*(dt+1345600)));return zt(ir);case FILTER_468:const er=-4737338981378384e-39*lt**6+2043828333606125e-30*lt**4-1363894795463638e-22*dt+1,Xt=1306612257412824e-34*lt**5-2118150887518656e-26*lt**3+.0005559488023498642*lt,Rt=.0001246332637532143*lt/Math.hypot(er,Xt);return 18.2+zt(Rt)}return 0},At=(lt,dt,$t)=>{Ue.beginPath(),Ue.moveTo(lt,dt),Ue.lineTo(lt,$t),Ue.stroke()},kt=lt=>{if(lt&&$e){const dt=Ue.globalAlpha;Ue.globalAlpha=1,Ue.stroke(),Ue.globalAlpha=dt}},Mt=lt=>Math.max(0,(lt*yt|0)*(Pt+_t)-_t),qt=lt=>{We.val=lt,We.peak>0&&(We.hold--,We.hold<0&&(We.peak+=We.hold/(ot*ot/2))),lt>=We.peak&&(We.peak=lt,We.hold=ot)};Be&&Ue.clearRect(0,0,Le.width,Le.height);let Vt=0;const ar=Oe.length,or=rt?1:2;for(let lt=0;lt<or;lt++){const{channelTop:dt,channelBottom:$t,analyzerBottom:Et}=Re[lt],Qt=this._gradients[this._selectedGrads[lt]],Bt=Qt.colorStops,Nt=Bt.length,zt=!Ke||Y&&!Be?"#000":Qt.bgColor,Ht=st&&qe&&lt?-1:1,jt=!lt&&ke==-1||lt&&ke==1,rr=!Je||lt&&ke!=1?0:at>>(lt||!jt),Jt=Je&&jt?-1:1,ir=()=>{const ht=it.height,ft=ht>>1,ct=He?100:Ne,vt=He?0:Me,bt=He?20:5,wt=Se/(ct-vt),Dt=ke!=-1&&(!Je||lt==0||ke==1),Gt=ke!=1&&(!Je||lt!=ke);Ue.save(),Ue.fillStyle=SCALEY_LABEL_COLOR,Ue.font=`${ft}px ${FONT_FAMILY}`,Ue.textAlign="right",Ue.lineWidth=1;for(let Ut=ct;Ut>vt;Ut-=bt){const Yt=dt+(ct-Ut)*wt,Tt=Ut%2==0|0;if(Tt){const Ct=Yt+ft*(Yt==dt?.8:.35);Dt&&Ue.fillText(Ut,ht*.85,Ct),Gt&&Ue.fillText(Ut,(Je?at:Le.width)-ht*.1,Ct),Ue.strokeStyle=SCALEY_LABEL_COLOR,Ue.setLineDash([2,4]),Ue.lineDashOffset=0}else Ue.strokeStyle=SCALEY_MIDLINE_COLOR,Ue.setLineDash([2,8]),Ue.lineDashOffset=1;Ue.beginPath(),Ue.moveTo(Pe+ht*Tt*Dt,~~Yt+.5),Ue.lineTo(ut-ht*Tt*Gt,~~Yt+.5),Ue.stroke()}Ue.restore()},er=(ht,ft)=>{const ct=Ot[ht]+(ht<Ot.length-1?(Ot[ht+1]-Ot[ht])*ft:0);return isNaN(ct)?-1/0:ct},Xt=(ht,ft=Jt)=>ft*TAU*((ht+rr)/Le.width)+this._spinAngle,Rt=(ht,ft,ct)=>{const vt=Ie+ft*Ht,bt=Xt(ht,ct);return[Ee+vt*Math.cos(bt),Ae+vt*Math.sin(bt)]},sr=(ht,ft,ct,vt,bt)=>{Ue.beginPath();for(const wt of ke&&!Je?[1,-1]:[Jt]){const[Dt,Gt]=Z?[Xt(ht,wt),Xt(ht+ct,wt)]:[];Ue.moveTo(...Rt(ht,ft,wt)),Ue.lineTo(...Rt(ht,ft+vt,wt)),Z?Ue.arc(Ee,Ae,Ie+(ft+vt)*Ht,Dt,Gt,wt!=1):Ue.lineTo(...Rt(ht+ct,ft+vt,wt)),Ue.lineTo(...Rt(ht+ct,ft,wt)),Z&&!bt&&Ue.arc(Ee,Ae,Ie+ft*Ht,Gt,Dt,wt==1)}kt(bt),Ue.fill()},nr=(ht=0,ft=0)=>{let ct;if(Xe==COLOR_GRADIENT&&!tt||Ge==MODE_GRAPH)ct=De[lt];else{const vt=Xe==COLOR_BAR_INDEX?ft%Nt:Bt.findLastIndex(bt=>Y?Mt(ht)<=Mt(bt.level):ht<=bt.level);ct=Bt[vt].color}Ue.fillStyle=Ue.strokeStyle=ct};if(et){if(Je&&!qe){const ht=at*(lt+jt),ft=jt?-1:1;Ue.setTransform(ft,0,0,1,ht,0)}if((!Be||Ke)&&(Be&&(Ue.globalAlpha=this.bgAlpha),Ue.fillStyle=zt,(lt==0||!qe&&!Ze)&&Ue.fillRect(Pe,dt-we,at,(Be&&this.reflexAlpha==1?Se:Te)+we),Ue.globalAlpha=1),this.showScaleY&&!K&&!qe&&(lt==0||!Ze)&&ir(),Y?(Ue.setLineDash([Pt,_t]),Ue.lineWidth=Oe[0].width):Ue.lineWidth=xe?Math.min($e,Oe[0].width/2):$e,Ue.save(),!qe){const ht=new Path2D;ht.rect(0,dt,Le.width,Se),Ue.clip(ht)}}let Ot=this._fftData[lt];this._analyzer[lt].getFloatFrequencyData(Ot),Qe&&(Ot=Ot.map((ht,ft)=>ht+Lt(this._binToFreq(ft)))),Ue.beginPath();let Zt=[];for(let ht=0;ht<ar;ht++){const ft=Oe[ht],{posX:ct,barCenter:vt,width:bt,freq:wt,binLo:Dt,binHi:Gt,ratioLo:Ut,ratioHi:Yt}=ft;let Tt=Math.max(er(Dt,Ut),er(Gt,Yt));for(let xt=Dt+1;xt<Gt;xt++)Ot[xt]>Tt&&(Tt=Ot[xt]);if(Tt=this._normalizedB(Tt),ft.value[lt]=Tt,Vt+=Tt,ft.peak[lt]>0&&(ft.hold[lt]--,ft.hold[lt]<0&&(ft.peak[lt]+=ft.hold[lt]/(ot*ot/2))),Tt>=ft.peak[lt]&&(ft.peak[lt]=Tt,ft.hold[lt]=ot),!et)continue;K||V?Ue.globalAlpha=Tt:xe&&(Ue.globalAlpha=je),nr(Tt,ht);const Ct=K?pt:Y?Mt(Tt):Tt*pt|0;if(Ge==MODE_GRAPH){const xt=ht?0:(this._normalizedB(Ot[Oe[1].binLo])*pt+Ct)/2;if(qe){if(ht==0&&(Je&&Ue.moveTo(...Rt(0,0)),Ue.lineTo(...Rt(0,ct<0?xt:Ct))),ct>=0){const Ft=[ct,Ct];Ue.lineTo(...Rt(...Ft)),Zt.push(Ft)}}else{if(ht==0)if(ke==-1&&!Je)Ue.moveTo(Pe,Et-(ct<Pe?xt:Ct));else{const Ft=Dt?this._normalizedB(Ot[Dt-1])*pt:Ct;Ue.moveTo(Pe-$e,Et-Ft)}(Je||ke!=-1||ct>=Pe)&&Ue.lineTo(ct,Et-Ct)}}else if(Y){if(Ke&&!Be&&(lt==0||!Ze)){const xt=Ue.globalAlpha;Ue.strokeStyle=LEDS_UNLIT_COLOR,Ue.globalAlpha=1,At(vt,dt,Et),Ue.strokeStyle=Ue.fillStyle,Ue.globalAlpha=xt}if(tt){const xt=K?0:Bt.findLastIndex(Wt=>Mt(Tt)<=Mt(Wt.level));let Ft=Et;for(let Wt=Nt-1;Wt>=xt;Wt--){Ue.strokeStyle=Bt[Wt].color;let lr=Et-(Wt==xt?Ct:Mt(Bt[Wt].level));At(vt,Ft,lr),Ft=lr-_t}}else At(vt,Et,Et-Ct)}else if(ct>=Pe)if(qe)sr(ct,0,bt,Ct,xe);else if(Z){const xt=bt/2,Ft=Et+xt;Ue.beginPath(),Ue.moveTo(ct,Ft),Ue.lineTo(ct,Ft-Ct),Ue.arc(vt,Ft-Ct,xt,PI,TAU),Ue.lineTo(ct+bt,Ft),kt(xe),Ue.fill()}else{const xt=xe?Ue.lineWidth:0;Ue.beginPath(),Ue.rect(ct,Et+xt,bt,-Ct-xt),kt(xe),Ue.fill()}const Kt=ft.peak[lt];if(Kt>0&&Ye&&!mt&&!K&&ct>=Pe&&ct<ut)if(xe&&$e>0?Ue.globalAlpha=1:V&&(Ue.globalAlpha=Kt),(Xe==COLOR_BAR_LEVEL||tt)&&nr(Kt),Y){const xt=Mt(Kt);xt>=_t&&Ue.fillRect(ct,Et-xt,bt,Pt)}else qe?Ge!=MODE_GRAPH&&sr(ct,Kt*pt,bt,-2):Ue.fillRect(ct,Et-Kt*pt,bt,2)}if(et){if(Ue.globalAlpha=1,Ge==MODE_GRAPH){if(nr(),qe&&!Je){if(ke){let ht;for(;ht=Zt.pop();)Ue.lineTo(...Rt(...ht,-1))}Ue.closePath()}if($e>0&&Ue.stroke(),je>0){if(qe){const ht=Je?Xt(at>>1):0,ft=Je?Xt(at):TAU;Ue.moveTo(...Rt(Je?at>>1:0,0)),Ue.arc(Ee,Ae,Ie,ht,ft,Je?!jt:!0)}else Ue.lineTo(ut,Et),Ue.lineTo(Pe,Et);Ue.globalAlpha=je,Ue.fill(),Ue.globalAlpha=1}if((mt||qe&&Ye)&&(Zt=[],Ue.beginPath(),Oe.forEach((ht,ft)=>{let ct=ht.posX,vt=ht.peak[lt],bt=ft?"lineTo":"moveTo";if(qe&&ct<0){const wt=Oe[ft+1];vt=findY(ct,vt,wt.posX,wt.peak[lt],0),ct=0}vt*=pt,mt?(Ue[bt](...qe?Rt(ct,vt):[ct,Et-vt]),qe&&ke&&!Je&&Zt.push([ct,vt])):vt>0&&sr(ct,vt,1,-2)}),mt)){let ht;for(;ht=Zt.pop();)Ue.lineTo(...Rt(...ht,-1));Ue.lineWidth=1,Ue.stroke()}}Ue.restore(),Je&&!qe&&Ue.setTransform(1,0,0,1,0,0),(!Je&&!Ze||lt)&&It(lt)}}if(qt(Vt/(ar<<or-1)),et&&(ke&&!qe&&!Je&&(Ue.setTransform(-1,0,0,1,Le.width-Pe,0),Ue.drawImage(Le,Pe,0,Ee,Le.height,0,0,Ee,Le.height),Ue.setTransform(1,0,0,1,0,0)),Ue.setLineDash([]),St()),this.showFPS){const lt=it.height;Ue.font=`bold ${lt}px ${FONT_FAMILY}`,Ue.fillStyle=FPS_COLOR,Ue.textAlign="right",Ue.fillText(Math.round(ze),Le.width-lt,lt*2)}this.onCanvasDraw&&(Ue.save(),Ue.fillStyle=Ue.strokeStyle=De[0],this.onCanvasDraw(this,{timestamp:E,_canvasGradients:De}),Ue.restore())}_freqScaling(E){switch(this._frequencyScale){case SCALE_LOG:return Math.log2(E);case SCALE_BARK:return 26.81*E/(1960+E)-.53;case SCALE_MEL:return Math.log2(1+E/700);case SCALE_LINEAR:return E}}_freqToBin(E,I="round"){const B=this._analyzer[0].frequencyBinCount-1,U=Math[I](E*this.fftSize/this.audioCtx.sampleRate);return U<B?U:B}_makeGrad(){if(!this._ready)return;const{canvas:E,_ctx:I,_radial:B,_reflexRatio:U}=this,{analyzerWidth:V,centerX:X,centerY:Y,initialX:K,innerRadius:J,outerRadius:xe}=this._aux,{isLumi:Z}=this._flg,_e=this._chLayout==CHANNEL_VERTICAL,Se=1-U,Ee=Z?E.height:E.height*(1-U*!_e)|0;for(const Ae of[0,1]){const Re=this._gradients[this._selectedGrads[Ae]],Te=Re.colorStops,we=Re.dir=="h";let Pe;if(B?Pe=I.createRadialGradient(X,Y,xe,X,Y,J-(xe-J)*_e):Pe=I.createLinearGradient(...we?[K,0,K+V,0]:[0,0,0,Ee]),Te){const Ie=_e&&!this._splitGradient&&(!we||B);for(let Fe=0;Fe<1+Ie;Fe++){const Oe=Te.length-1;Te.forEach((Le,De)=>{let Ve=Le.pos;if(Ie&&(Ve/=2),_e&&!Z&&!B&&!we&&(Ve*=Se,!Ie&&Ve>.5*Se&&(Ve+=.5*U)),Fe==1)if(B||Z){const Xe=Oe-De;Le=Te[Xe],Ve=1-Le.pos/2}else De==0&&Ve>0&&Pe.addColorStop(.5,Le.color),Ve+=.5;Pe.addColorStop(Ve,Le.color),_e&&De==Oe&&Ve<.5&&Pe.addColorStop(.5,Le.color)})}}this._canvasGradients[Ae]=Pe}}_normalizedB(E){const I=this._linearAmplitude,B=I?1/this._linearBoost:1,U=(K,J,xe)=>K<=J?J:K>=xe?xe:K,V=K=>10**(K/20);let X=this.maxDecibels,Y=this.minDecibels;return I&&(X=V(X),Y=V(Y),E=V(E)**B),U((E-Y)/(X-Y)**B,0,1)}_setCanvas(E){if(!this._ready)return;const{canvas:I,_ctx:B}=this,U=this._scaleX.canvas,V=window.devicePixelRatio/(this._loRes+1);let X=window.screen.width*V,Y=window.screen.height*V;Math.abs(window.orientation)==90&&X<Y&&([X,Y]=[Y,X]);const K=this.isFullscreen,J=K&&this._fsEl==I,xe=J?X:(this._width||this._container.clientWidth||this._defaultWidth)*V|0,Z=J?Y:(this._height||this._container.clientHeight||this._defaultHeight)*V|0;this._pixelRatio=V,this._fsWidth=X,this._fsHeight=Y,!(I.width==xe&&I.height==Z)&&(I.width=xe,I.height=Z,this.overlay||(B.fillStyle="#000",B.fillRect(0,0,xe,Z)),B.lineJoin="bevel",U.width=xe,U.height=Math.max(20*V,Math.min(xe,Z)/32|0),this._calcBars(),this._makeGrad(),this._fsStatus!==void 0&&this._fsStatus!==K&&(E=REASON_FSCHANGE),this._fsStatus=K,this.onCanvasResize&&this.onCanvasResize(E,this))}_setGradient(E,I){if(!this._gradients.hasOwnProperty(E))throw new AudioMotionError(ERR_UNKNOWN_GRADIENT,E);[0,1].includes(I)||(this._selectedGrads[1]=E,I=0),this._selectedGrads[I]=E,this._makeGrad()}_setProps(E,I){const B={alphaBars:!1,ansiBands:!1,barSpace:.1,bgAlpha:.7,channelLayout:CHANNEL_SINGLE,colorMode:COLOR_GRADIENT,fftSize:8192,fillAlpha:1,frequencyScale:SCALE_LOG,gradient:GRADIENTS[0][0],ledBars:!1,linearAmplitude:!1,linearBoost:1,lineWidth:0,loRes:!1,lumiBars:!1,maxDecibels:-25,maxFPS:0,maxFreq:22e3,minDecibels:-85,minFreq:20,mirror:0,mode:0,noteLabels:!1,outlineBars:!1,overlay:!1,peakLine:!1,radial:!1,reflexAlpha:.15,reflexBright:1,reflexFit:!0,reflexRatio:0,roundBars:!1,showBgColor:!0,showFPS:!1,showPeaks:!0,showScaleX:!0,showScaleY:!1,smoothing:.5,spinSpeed:0,splitGradient:!1,start:!0,trueLeds:!1,useCanvas:!0,volume:1,weightingFilter:FILTER_NONE},U=["onCanvasDraw","onCanvasResize"],V=["gradientLeft","gradientRight","height","width","stereo"],X=Object.keys(B).filter(Y=>Y!="start").concat(U,V);(I||E===void 0)&&(E={...B,...E});for(const Y of Object.keys(E))U.includes(Y)&&typeof E[Y]!="function"?this[Y]=void 0:X.includes(Y)&&(this[Y]=E[Y]);E.start!==void 0&&this.toggleAnalyzer(E.start)}}const waveConfig={[Waveforms.NONE]:{mode:2},[Waveforms.ROUNDBARS]:{mode:2,alphaBars:!1,ansiBands:!1,barSpace:.25,channelLayout:"single",colorMode:"bar-level",frequencyScale:"log",gradient:"prism",ledBars:!1,linearAmplitude:!0,linearBoost:1.6,lumiBars:!1,maxFreq:16e3,minFreq:30,mirror:0,radial:!1,reflexRatio:.3,reflexAlpha:1,roundBars:!0,showPeaks:!1,showScaleX:!1,showScaleY:!1,smoothing:.7,weightingFilter:"D"},[Waveforms.LED]:{mode:3,barSpace:.6,ledBars:!0,showScaleX:!1,showScaleY:!1},[Waveforms.RADIAL_SPECTRUM]:{mode:3,barSpace:.25,bgAlpha:.5,fillAlpha:.5,gradient:"prism",ledBars:!1,linearAmplitude:!0,linearBoost:1.8,lineWidth:1.5,maxDecibels:-30,maxFreq:16e3,radial:!0,showBgColor:!0,showPeaks:!0,spinSpeed:2,outlineBars:!0,showScaleX:!1,showScaleY:!1,reflexFit:!0},[Waveforms.LUMI_BARS]:{mode:3,barSpace:.6,lumiBars:!0,reflexRatio:.5,fillAlpha:.3,frequencyScale:"bark",gradientLeft:"steelblue",gradientRight:"orangered",showScaleX:!1,showScaleY:!1},[Waveforms.EQUALIZER]:{mode:2,gradient:"rainbow",lineWidth:1.5,fillAlpha:.5,showPeaks:!1,showScaleX:!1,showScaleY:!1}},initalTransforms={x:0,y:0,width:0,height:0,anchor:.5,maxX:0,maxY:0,scale:1,rotation:0,waveform:Waveforms.NONE},useAudioVisualizer=C=>{const E=React__namespace.useRef(),I=React.useRef(document.body),B=React__namespace.useRef(),[U,V]=React__namespace.useState(""),{uniqueId:X,src:Y,transformation:K=initalTransforms}=C,{waveform:J=Waveforms.NONE,width:xe=300,height:Z=300}=K,_e=async Se=>{try{return await fetch(Se,{mode:"cors",referrerPolicy:"no-referrer-when-downgrade"})}catch(Ee){const Ae=Ee;throw Ae.message.includes("Failed to fetch")||Ae.message.includes("Load failed")||Ae.message.includes("NetworkError when attempting to fetch resource")?new TypeError(`Failed to read from ${Se}: ${Ae.message}. Does the resource support CORS?`):Ee}};return React__namespace.useEffect(()=>()=>{isEmpty$1(U)||URL.revokeObjectURL(U),B.current},[U]),React__namespace.useEffect(()=>{const Se=waveConfig[J]||{};if(console.log("waveFormCOnfig",Se),E.current&&(I.current.removeChild(E.current),E.current=void 0),J!==Waveforms.NONE){E.current=document.createElement("div"),E.current.setAttribute("id",`${X}${J}audioContainer`),I.current.appendChild(E.current);const Ae=new AudioMotionAnalyzer(E.current,{audioCtx:Howler.ctx,height:Z,width:xe,...Se});B.current=Ae}return(async()=>{if(!isEmpty$1(Y)){const Re=await(await _e(Y)).arrayBuffer(),Te=new Blob([Re]),we=URL.createObjectURL(Te);V(we),E.current&&(E.current.style.display="none")}})(),()=>{E.current&&I.current&&(console.log("clearing the canvas",E.current),I.current.removeChild(E.current),E.current=void 0)}},[J,Y,X,xe,Z]),{audioMotionRef:B,blobUrl:U,canvasRef:E}},PixiAudioSprite=React__namespace.forwardRef((C,E)=>{const I={isPlaying:!1,progress:0,speed:1,mute:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1},[,B]=React__namespace.useState(!1),[U,V]=React__namespace.useState(!1),X=React.useRef(null),Y=React.useRef(I),K=React.useRef(null),J=React__namespace.useRef(null),xe=React.useRef(null),Z=React__namespace.useRef(),{tl:_e,dragModeRef:Se}=React.useContext(GsapPixieContext),{uniqueId:Ee,src:Ae,startAt:Re,endAt:Te,mute:we,speed:Pe,audioStartAt:Ie,audioEndAt:Fe,visible:Oe=!1,transformation:Le}=C,{width:De=300,height:Ve=300,x:Xe=100,y:Ue=100,waveform:We=Waveforms.NONE}=Le||{},{audioMotionRef:je,blobUrl:ze,canvasRef:He}=useAudioVisualizer({uniqueId:Ee,src:Ae,transformation:Le});useCustomEventListener(Events.PAUSE,()=>{var Ge;X.current&&J.current&&((Ge=J.current)==null||Ge.pause(),Y.current.isPlaying=!1)}),useCustomEventListener(Events.COMPLETE,()=>{Ie>0&&J.current&&J.current.seek(Ie)}),useCustomEventListener(Events.SCRUBBER_CLICKED,()=>{var Ge;X.current&&J.current&&((Ge=J.current)==null||Ge.pause(),Y.current.isPlaying=!1)}),React__namespace.useEffect(()=>{J.current&&(Se.current?(J.current.pause(),Y.current.isPlaying=!1,Y.current.isDragging=!0):Y.current.isDragging=!1)},[Se]);const $e=(Ge,Be)=>{_e.current&&_e.current.isActive()&&K.current&&K.current.isActive()&&!Se.current&&J.current&&(console.log("gsap on start 0020",Ee,Ge,Be),J.current.play(),Y.current.isPlaying=!0)},Ne=()=>{var Ge;X.current&&((Ge=J.current)==null||Ge.stop(),Y.current.isPlaying=!1,Y.current.completed=!0)},Me=Ge=>{var qe,Ke;const Be=Ge+((qe=K.current)==null?void 0:qe.time());J.current&&Se.current?(J.current.seek(Be),J.current.pause(),Y.current.isPlaying=!1):X.current&&!Y.current.isPlaying&&((Ke=_e.current)!=null&&Ke.isActive())&&J.current&&(J.current.seek(Be),J.current.play(),Y.current.isPlaying=!0),Z.current&&Z.current.update()},ke=()=>{};return React.useEffect(()=>{let Ge=gsap$2.context(()=>{});if(X.current&&_e.current){const Be={duration:Number(Fe)-Number(Ie),onStart:$e,onComplete:Ne,onStartParams:[Ie,Fe],onCompleteParams:[],onInterrupt:ke,onUpdate:Me,onUpdateParams:[Ie,Fe],id:Ee};Ge=gsap$2.context(()=>{K.current=gsap$2.from(X.current,Be,Ie),_e.current.to(X.current,{alpha:1,duration:.01},Re).to(X.current,{alpha:0,duration:.1},Number(Te)),_e.current.add(K.current,Re)})}return()=>{K.current&&(K.current.kill(),gsap$2.killTweensOf(K.current)),Ge.revert()}},[Re,Te,Ie,Fe,Ee]),React__namespace.useEffect(()=>(X.current&&B(!0),()=>{console.log("unmounting audio sprite",Ee),console.log("audioContainerRef.current",J.current)}),[]),React__namespace.useEffect(()=>(Z.current&&Z.current.update(),()=>{}),[U]),React__namespace.useEffect(()=>(isEmpty$1(ze)||(J.current=new howler.Howl({src:[ze],format:["mp3"],html5:!0,autoplay:!1,loop:!1,rate:Pe||1,onload:()=>{var Ge;if(Y.current.loaded=!0,J.current&&(Ie>0&&J.current.seek(Ie),J.current.volume(!we&&Oe?1:0),J.current.rate(Pe||1),J.current.pause(),Y.current.isPlaying=!1,Y.current.completed=!1,je.current&&J.current)){console.log("reconnecting the audio motion analyser");try{je.current.connectInput(J.current._sounds[0]._node)}catch(qe){console.log("error connecting audio motion"),console.log(qe)}const Be=PIXI__namespace.Texture.from(je.current._fsEl,{pixiIdPrefix:`${(Ge=je.current._container)==null?void 0:Ge.id}`});Z.current=Be,He.current&&He.current.setAttribute("style","display:none"),V(!0)}},onend:()=>{console.log("end of playing audio sprite"+Ee),Y.current.isPlaying=!1,Y.current.completed=!0},onplay:()=>{console.log("play of playing audio sprite"+Ee),Y.current.isPlaying=!0},onpause:()=>{console.log("pause of playing audio sprite"+Ee),Y.current.isPlaying=!1},onstop:()=>{console.log("stop of playing audio sprite"+Ee),Y.current.isPlaying=!1}}),Howler.ctx.resume().then(()=>{console.log("audio ctx resumed")})),()=>{console.log("unmounting the howler useeffect"),je.current,J.current&&(J.current.stop(),J.current.unload(),J.current=void 0)}),[Ee,Ae,Re,Te,Ie,Fe,we,Oe,Pe,ze]),React__namespace.useEffect(()=>{J.current&&(console.log("running updateEffect 2002",Ee,Fe),J.current.volume(!we&&Oe?1:0),J.current.rate(Pe||1),Y.current.isPlaying=!0)},[we,Oe,Pe]),jsxRuntimeExports.jsx(react.Container,{ref:X,children:We!==Waveforms.NONE&&U&&Z.current&&jsxRuntimeExports.jsx(AbstractContainer,{...C,ref:E,ignoreTlForVideo:!0,isGif:!0,children:jsxRuntimeExports.jsx(react.Sprite,{texture:Z.current,width:De,height:Ve,anchor:.5,x:Xe,y:Ue,ref:xe,alpha:Oe?1:0})})})});function arrayMap$2(C,E){for(var I=-1,B=C==null?0:C.length,U=Array(B);++I<B;)U[I]=E(C[I],I,C);return U}var _arrayMap=arrayMap$2,Stack=_Stack,baseIsEqual$1=_baseIsEqual,COMPARE_PARTIAL_FLAG$1=1,COMPARE_UNORDERED_FLAG$1=2;function baseIsMatch$1(C,E,I,B){var U=I.length,V=U,X=!B;if(C==null)return!V;for(C=Object(C);U--;){var Y=I[U];if(X&&Y[2]?Y[1]!==C[Y[0]]:!(Y[0]in C))return!1}for(;++U<V;){Y=I[U];var K=Y[0],J=C[K],xe=Y[1];if(X&&Y[2]){if(J===void 0&&!(K in C))return!1}else{var Z=new Stack;if(B)var _e=B(J,xe,K,C,E,Z);if(!(_e===void 0?baseIsEqual$1(xe,J,COMPARE_PARTIAL_FLAG$1|COMPARE_UNORDERED_FLAG$1,B,Z):_e))return!1}}return!0}var _baseIsMatch=baseIsMatch$1,isObject$2=isObject_1;function isStrictComparable$2(C){return C===C&&!isObject$2(C)}var _isStrictComparable=isStrictComparable$2,isStrictComparable$1=_isStrictComparable,keys$1=keys_1;function getMatchData$1(C){for(var E=keys$1(C),I=E.length;I--;){var B=E[I],U=C[B];E[I]=[B,U,isStrictComparable$1(U)]}return E}var _getMatchData=getMatchData$1;function matchesStrictComparable$2(C,E){return function(I){return I==null?!1:I[C]===E&&(E!==void 0||C in Object(I))}}var _matchesStrictComparable=matchesStrictComparable$2,baseIsMatch=_baseIsMatch,getMatchData=_getMatchData,matchesStrictComparable$1=_matchesStrictComparable;function baseMatches$1(C){var E=getMatchData(C);return E.length==1&&E[0][2]?matchesStrictComparable$1(E[0][0],E[0][1]):function(I){return I===C||baseIsMatch(I,C,E)}}var _baseMatches=baseMatches$1,baseGetTag=_baseGetTag,isObjectLike=isObjectLike_1,symbolTag="[object Symbol]";function isSymbol$4(C){return typeof C=="symbol"||isObjectLike(C)&&baseGetTag(C)==symbolTag}var isSymbol_1=isSymbol$4,isArray$5=isArray_1,isSymbol$3=isSymbol_1,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey$3(C,E){if(isArray$5(C))return!1;var I=typeof C;return I=="number"||I=="symbol"||I=="boolean"||C==null||isSymbol$3(C)?!0:reIsPlainProp.test(C)||!reIsDeepProp.test(C)||E!=null&&C in Object(E)}var _isKey=isKey$3,MapCache=_MapCache,FUNC_ERROR_TEXT$1="Expected a function";function memoize$1(C,E){if(typeof C!="function"||E!=null&&typeof E!="function")throw new TypeError(FUNC_ERROR_TEXT$1);var I=function(){var B=arguments,U=E?E.apply(this,B):B[0],V=I.cache;if(V.has(U))return V.get(U);var X=C.apply(this,B);return I.cache=V.set(U,X)||V,X};return I.cache=new(memoize$1.Cache||MapCache),I}memoize$1.Cache=MapCache;var memoize_1=memoize$1,memoize=memoize_1,MAX_MEMOIZE_SIZE=500;function memoizeCapped$1(C){var E=memoize(C,function(B){return I.size===MAX_MEMOIZE_SIZE&&I.clear(),B}),I=E.cache;return E}var _memoizeCapped=memoizeCapped$1,memoizeCapped=_memoizeCapped,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath$1=memoizeCapped(function(C){var E=[];return C.charCodeAt(0)===46&&E.push(""),C.replace(rePropName,function(I,B,U,V){E.push(U?V.replace(reEscapeChar,"$1"):B||I)}),E}),_stringToPath=stringToPath$1,Symbol$1=_Symbol,arrayMap$1=_arrayMap,isArray$4=isArray_1,isSymbol$2=isSymbol_1,INFINITY$1=1/0,symbolProto=Symbol$1?Symbol$1.prototype:void 0,symbolToString=symbolProto?symbolProto.toString:void 0;function baseToString$1(C){if(typeof C=="string")return C;if(isArray$4(C))return arrayMap$1(C,baseToString$1)+"";if(isSymbol$2(C))return symbolToString?symbolToString.call(C):"";var E=C+"";return E=="0"&&1/C==-INFINITY$1?"-0":E}var _baseToString=baseToString$1,baseToString=_baseToString;function toString$1(C){return C==null?"":baseToString(C)}var toString_1=toString$1,isArray$3=isArray_1,isKey$2=_isKey,stringToPath=_stringToPath,toString=toString_1;function castPath$2(C,E){return isArray$3(C)?C:isKey$2(C,E)?[C]:stringToPath(toString(C))}var _castPath=castPath$2,isSymbol$1=isSymbol_1,INFINITY=1/0;function toKey$4(C){if(typeof C=="string"||isSymbol$1(C))return C;var E=C+"";return E=="0"&&1/C==-INFINITY?"-0":E}var _toKey=toKey$4,castPath$1=_castPath,toKey$3=_toKey;function baseGet$2(C,E){E=castPath$1(E,C);for(var I=0,B=E.length;C!=null&&I<B;)C=C[toKey$3(E[I++])];return I&&I==B?C:void 0}var _baseGet=baseGet$2,baseGet$1=_baseGet;function get$1(C,E,I){var B=C==null?void 0:baseGet$1(C,E);return B===void 0?I:B}var get_1=get$1;function baseHasIn$1(C,E){return C!=null&&E in Object(C)}var _baseHasIn=baseHasIn$1,castPath=_castPath,isArguments=isArguments_1,isArray$2=isArray_1,isIndex=_isIndex,isLength=isLength_1,toKey$2=_toKey;function hasPath$1(C,E,I){E=castPath(E,C);for(var B=-1,U=E.length,V=!1;++B<U;){var X=toKey$2(E[B]);if(!(V=C!=null&&I(C,X)))break;C=C[X]}return V||++B!=U?V:(U=C==null?0:C.length,!!U&&isLength(U)&&isIndex(X,U)&&(isArray$2(C)||isArguments(C)))}var _hasPath=hasPath$1,baseHasIn=_baseHasIn,hasPath=_hasPath;function hasIn$1(C,E){return C!=null&&hasPath(C,E,baseHasIn)}var hasIn_1=hasIn$1,baseIsEqual=_baseIsEqual,get=get_1,hasIn=hasIn_1,isKey$1=_isKey,isStrictComparable=_isStrictComparable,matchesStrictComparable=_matchesStrictComparable,toKey$1=_toKey,COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty$1(C,E){return isKey$1(C)&&isStrictComparable(E)?matchesStrictComparable(toKey$1(C),E):function(I){var B=get(I,C);return B===void 0&&B===E?hasIn(I,C):baseIsEqual(E,B,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG)}}var _baseMatchesProperty=baseMatchesProperty$1;function identity$1(C){return C}var identity_1=identity$1;function baseProperty$1(C){return function(E){return E==null?void 0:E[C]}}var _baseProperty=baseProperty$1,baseGet=_baseGet;function basePropertyDeep$1(C){return function(E){return baseGet(E,C)}}var _basePropertyDeep=basePropertyDeep$1,baseProperty=_baseProperty,basePropertyDeep=_basePropertyDeep,isKey=_isKey,toKey=_toKey;function property$1(C){return isKey(C)?baseProperty(toKey(C)):basePropertyDeep(C)}var property_1=property$1,baseMatches=_baseMatches,baseMatchesProperty=_baseMatchesProperty,identity=identity_1,isArray$1=isArray_1,property=property_1;function baseIteratee$1(C){return typeof C=="function"?C:C==null?identity:typeof C=="object"?isArray$1(C)?baseMatchesProperty(C[0],C[1]):baseMatches(C):property(C)}var _baseIteratee=baseIteratee$1;function createBaseFor$1(C){return function(E,I,B){for(var U=-1,V=Object(E),X=B(E),Y=X.length;Y--;){var K=X[C?Y:++U];if(I(V[K],K,V)===!1)break}return E}}var _createBaseFor=createBaseFor$1,createBaseFor=_createBaseFor,baseFor$1=createBaseFor(),_baseFor=baseFor$1,baseFor=_baseFor,keys=keys_1;function baseForOwn$1(C,E){return C&&baseFor(C,E,keys)}var _baseForOwn=baseForOwn$1,isArrayLike$1=isArrayLike_1;function createBaseEach$1(C,E){return function(I,B){if(I==null)return I;if(!isArrayLike$1(I))return C(I,B);for(var U=I.length,V=E?U:-1,X=Object(I);(E?V--:++V<U)&&B(X[V],V,X)!==!1;);return I}}var _createBaseEach=createBaseEach$1,baseForOwn=_baseForOwn,createBaseEach=_createBaseEach,baseEach$1=createBaseEach(baseForOwn),_baseEach=baseEach$1,baseEach=_baseEach,isArrayLike=isArrayLike_1;function baseMap$1(C,E){var I=-1,B=isArrayLike(C)?Array(C.length):[];return baseEach(C,function(U,V,X){B[++I]=E(U,V,X)}),B}var _baseMap=baseMap$1,arrayMap=_arrayMap,baseIteratee=_baseIteratee,baseMap=_baseMap,isArray=isArray_1;function map(C,E){var I=isArray(C)?arrayMap:baseMap;return I(C,baseIteratee(E))}var map_1=map;const map$1=getDefaultExportFromCjs(map_1);var lib$1={},gif={},lib={};Object.defineProperty(lib,"__esModule",{value:!0}),lib.loop=lib.conditional=lib.parse=void 0;var parse=function C(E,I){var B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},U=arguments.length>3&&arguments[3]!==void 0?arguments[3]:B;if(Array.isArray(I))I.forEach(function(X){return C(E,X,B,U)});else if(typeof I=="function")I(E,B,U,C);else{var V=Object.keys(I)[0];Array.isArray(I[V])?(U[V]={},C(E,I[V],B,U[V])):U[V]=I[V](E,B,U,C)}return B};lib.parse=parse;var conditional=function(E,I){return function(B,U,V,X){I(B,U,V)&&X(B,E,U,V)}};lib.conditional=conditional;var loop=function(E,I){return function(B,U,V,X){for(var Y=[],K=B.pos;I(B,U,V);){var J={};if(X(B,E,U,J),B.pos===K)break;K=B.pos,Y.push(J)}return Y}};lib.loop=loop;var uint8={};Object.defineProperty(uint8,"__esModule",{value:!0}),uint8.readBits=uint8.readArray=uint8.readUnsigned=uint8.readString=uint8.peekBytes=uint8.readBytes=uint8.peekByte=uint8.readByte=uint8.buildStream=void 0;var buildStream=function(E){return{data:E,pos:0}};uint8.buildStream=buildStream;var readByte=function(){return function(E){return E.data[E.pos++]}};uint8.readByte=readByte;var peekByte=function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return function(I){return I.data[I.pos+E]}};uint8.peekByte=peekByte;var readBytes=function(E){return function(I){return I.data.subarray(I.pos,I.pos+=E)}};uint8.readBytes=readBytes;var peekBytes=function(E){return function(I){return I.data.subarray(I.pos,I.pos+E)}};uint8.peekBytes=peekBytes;var readString=function(E){return function(I){return Array.from(readBytes(E)(I)).map(function(B){return String.fromCharCode(B)}).join("")}};uint8.readString=readString;var readUnsigned=function(E){return function(I){var B=readBytes(2)(I);return E?(B[1]<<8)+B[0]:(B[0]<<8)+B[1]}};uint8.readUnsigned=readUnsigned;var readArray=function(E,I){return function(B,U,V){for(var X=typeof I=="function"?I(B,U,V):I,Y=readBytes(E),K=new Array(X),J=0;J<X;J++)K[J]=Y(B);return K}};uint8.readArray=readArray;var subBitsTotal=function(E,I,B){for(var U=0,V=0;V<B;V++)U+=E[I+V]&&Math.pow(2,B-V-1);return U},readBits=function(E){return function(I){for(var B=readByte()(I),U=new Array(8),V=0;V<8;V++)U[7-V]=!!(B&1<<V);return Object.keys(E).reduce(function(X,Y){var K=E[Y];return K.length?X[Y]=subBitsTotal(U,K.index,K.length):X[Y]=U[K.index],X},{})}};uint8.readBits=readBits,function(C){Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var E=lib,I=uint8,B={blocks:function(_e){for(var Se=0,Ee=[],Ae=_e.data.length,Re=0,Te=(0,I.readByte)()(_e);Te!==Se&&Te;Te=(0,I.readByte)()(_e)){if(_e.pos+Te>=Ae){var we=Ae-_e.pos;Ee.push((0,I.readBytes)(we)(_e)),Re+=we;break}Ee.push((0,I.readBytes)(Te)(_e)),Re+=Te}for(var Pe=new Uint8Array(Re),Ie=0,Fe=0;Fe<Ee.length;Fe++)Pe.set(Ee[Fe],Ie),Ie+=Ee[Fe].length;return Pe}},U=(0,E.conditional)({gce:[{codes:(0,I.readBytes)(2)},{byteSize:(0,I.readByte)()},{extras:(0,I.readBits)({future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}})},{delay:(0,I.readUnsigned)(!0)},{transparentColorIndex:(0,I.readByte)()},{terminator:(0,I.readByte)()}]},function(Z){var _e=(0,I.peekBytes)(2)(Z);return _e[0]===33&&_e[1]===249}),V=(0,E.conditional)({image:[{code:(0,I.readByte)()},{descriptor:[{left:(0,I.readUnsigned)(!0)},{top:(0,I.readUnsigned)(!0)},{width:(0,I.readUnsigned)(!0)},{height:(0,I.readUnsigned)(!0)},{lct:(0,I.readBits)({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},(0,E.conditional)({lct:(0,I.readArray)(3,function(Z,_e,Se){return Math.pow(2,Se.descriptor.lct.size+1)})},function(Z,_e,Se){return Se.descriptor.lct.exists}),{data:[{minCodeSize:(0,I.readByte)()},B]}]},function(Z){return(0,I.peekByte)()(Z)===44}),X=(0,E.conditional)({text:[{codes:(0,I.readBytes)(2)},{blockSize:(0,I.readByte)()},{preData:function(_e,Se,Ee){return(0,I.readBytes)(Ee.text.blockSize)(_e)}},B]},function(Z){var _e=(0,I.peekBytes)(2)(Z);return _e[0]===33&&_e[1]===1}),Y=(0,E.conditional)({application:[{codes:(0,I.readBytes)(2)},{blockSize:(0,I.readByte)()},{id:function(_e,Se,Ee){return(0,I.readString)(Ee.blockSize)(_e)}},B]},function(Z){var _e=(0,I.peekBytes)(2)(Z);return _e[0]===33&&_e[1]===255}),K=(0,E.conditional)({comment:[{codes:(0,I.readBytes)(2)},B]},function(Z){var _e=(0,I.peekBytes)(2)(Z);return _e[0]===33&&_e[1]===254}),J=[{header:[{signature:(0,I.readString)(3)},{version:(0,I.readString)(3)}]},{lsd:[{width:(0,I.readUnsigned)(!0)},{height:(0,I.readUnsigned)(!0)},{gct:(0,I.readBits)({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:(0,I.readByte)()},{pixelAspectRatio:(0,I.readByte)()}]},(0,E.conditional)({gct:(0,I.readArray)(3,function(Z,_e){return Math.pow(2,_e.lsd.gct.size+1)})},function(Z,_e){return _e.lsd.gct.exists}),{frames:(0,E.loop)([U,Y,K,V,X],function(Z){var _e=(0,I.peekByte)()(Z);return _e===33||_e===44})}],xe=J;C.default=xe}(gif);var deinterlace$1={};Object.defineProperty(deinterlace$1,"__esModule",{value:!0}),deinterlace$1.deinterlace=void 0;var deinterlace=function(E,I){for(var B=new Array(E.length),U=E.length/I,V=function(_e,Se){var Ee=E.slice(Se*I,(Se+1)*I);B.splice.apply(B,[_e*I,I].concat(Ee))},X=[0,4,2,1],Y=[8,8,4,2],K=0,J=0;J<4;J++)for(var xe=X[J];xe<U;xe+=Y[J])V(xe,K),K++;return B};deinterlace$1.deinterlace=deinterlace;var lzw$1={};Object.defineProperty(lzw$1,"__esModule",{value:!0}),lzw$1.lzw=void 0;var lzw=function(E,I,B){var U=4096,V=-1,X=B,Y,K,J,xe,Z,_e,Se,Oe,Ee,Ae,Fe,Re,Le,De,Xe,Ve,Te=new Array(B),we=new Array(U),Pe=new Array(U),Ie=new Array(U+1);for(Re=E,K=1<<Re,Z=K+1,Y=K+2,Se=V,xe=Re+1,J=(1<<xe)-1,Ee=0;Ee<K;Ee++)we[Ee]=0,Pe[Ee]=Ee;var Fe,Oe,Le,De,Ve,Xe;for(Fe=Oe=Le=De=Ve=Xe=0,Ae=0;Ae<X;){if(De===0){if(Oe<xe){Fe+=I[Xe]<<Oe,Oe+=8,Xe++;continue}if(Ee=Fe&J,Fe>>=xe,Oe-=xe,Ee>Y||Ee==Z)break;if(Ee==K){xe=Re+1,J=(1<<xe)-1,Y=K+2,Se=V;continue}if(Se==V){Ie[De++]=Pe[Ee],Se=Ee,Le=Ee;continue}for(_e=Ee,Ee==Y&&(Ie[De++]=Le,Ee=Se);Ee>K;)Ie[De++]=Pe[Ee],Ee=we[Ee];Le=Pe[Ee]&255,Ie[De++]=Le,Y<U&&(we[Y]=Se,Pe[Y]=Le,Y++,!(Y&J)&&Y<U&&(xe++,J+=Y)),Se=_e}De--,Te[Ve++]=Ie[De],Ae++}for(Ae=Ve;Ae<X;Ae++)Te[Ae]=0;return Te};lzw$1.lzw=lzw,Object.defineProperty(lib$1,"__esModule",{value:!0}),lib$1.decompressFrames=lib$1.decompressFrame=lib$1.parseGIF=void 0;var _gif=_interopRequireDefault(gif),_jsBinarySchemaParser=lib,_uint=uint8,_deinterlace=deinterlace$1,_lzw=lzw$1;function _interopRequireDefault(C){return C&&C.__esModule?C:{default:C}}var parseGIF=function(E){var I=new Uint8Array(E);return(0,_jsBinarySchemaParser.parse)((0,_uint.buildStream)(I),_gif.default)};lib$1.parseGIF=parseGIF;var generatePatch=function(E){for(var I=E.pixels.length,B=new Uint8ClampedArray(I*4),U=0;U<I;U++){var V=U*4,X=E.pixels[U],Y=E.colorTable[X]||[0,0,0];B[V]=Y[0],B[V+1]=Y[1],B[V+2]=Y[2],B[V+3]=X!==E.transparentIndex?255:0}return B},decompressFrame=function(E,I,B){if(!E.image){console.warn("gif frame does not have associated image.");return}var U=E.image,V=U.descriptor.width*U.descriptor.height,X=(0,_lzw.lzw)(U.data.minCodeSize,U.data.blocks,V);U.descriptor.lct.interlaced&&(X=(0,_deinterlace.deinterlace)(X,U.descriptor.width));var Y={pixels:X,dims:{top:E.image.descriptor.top,left:E.image.descriptor.left,width:E.image.descriptor.width,height:E.image.descriptor.height}};return U.descriptor.lct&&U.descriptor.lct.exists?Y.colorTable=U.lct:Y.colorTable=I,E.gce&&(Y.delay=(E.gce.delay||10)*10,Y.disposalType=E.gce.extras.disposal,E.gce.extras.transparentColorGiven&&(Y.transparentIndex=E.gce.transparentColorIndex)),B&&(Y.patch=generatePatch(Y)),Y};lib$1.decompressFrame=decompressFrame;var decompressFrames=function(E,I){return E.frames.filter(function(B){return B.image}).map(function(B){return decompressFrame(B,E.gct,I)})};lib$1.decompressFrames=decompressFrames;const reducer=(C,E={})=>{typeof E=="function"&&(E=E(C));const I=E.loaded&&C.loaded!==E.loaded,{playing:B,...U}=E,V={...C,...U};return I&&Object.assign(V,{playing:V.autoPlay&&V.loaded}),(E.delays!=null||E.frames!=null)&&Object.assign(V,{length:V.frames.length}),(E.index!=null||E.frames!=null)&&Object.assign(V,{index:V.length===0?0:(V.length+V.index)%V.length}),E.playing!=null&&Object.assign(V,V.loaded?{playing:B}:{autoPlay:B}),V},initializer=C=>reducer({autoPlay:!0,playing:!1,frames:[],delays:[],index:0,length:0,loaded:!1},C),usePlayerState=C=>React.useReducer(reducer,C,initializer);var code='function e(e){var r={exports:{}};return e(r,r.exports),r.exports}var r=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.loop=r.conditional=r.parse=void 0;r.parse=function e(r,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;if(Array.isArray(t))t.forEach((function(t){return e(r,t,n,a)}));else if("function"==typeof t)t(r,n,a,e);else{var i=Object.keys(t)[0];Array.isArray(t[i])?(a[i]={},e(r,t[i],n,a[i])):a[i]=t[i](r,n,a,e)}return n};r.conditional=function(e,r){return function(t,n,a,i){r(t,n,a)&&i(t,e,n,a)}};r.loop=function(e,r){return function(t,n,a,i){for(var o=[];r(t,n,a);){var s={};i(t,e,n,s),o.push(s)}return o}}})),t=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.readBits=r.readArray=r.readUnsigned=r.readString=r.peekBytes=r.readBytes=r.peekByte=r.readByte=r.buildStream=void 0;r.buildStream=function(e){return{data:e,pos:0}};var t=function(){return function(e){return e.data[e.pos++]}};r.readByte=t;r.peekByte=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(r){return r.data[r.pos+e]}};var n=function(e){return function(r){return r.data.subarray(r.pos,r.pos+=e)}};r.readBytes=n;r.peekBytes=function(e){return function(r){return r.data.subarray(r.pos,r.pos+e)}};r.readString=function(e){return function(r){return Array.from(n(e)(r)).map((function(e){return String.fromCharCode(e)})).join("")}};r.readUnsigned=function(e){return function(r){var t=n(2)(r);return e?(t[1]<<8)+t[0]:(t[0]<<8)+t[1]}};r.readArray=function(e,r){return function(t,a,i){for(var o="function"==typeof r?r(t,a,i):r,s=n(e),d=new Array(o),c=0;c<o;c++)d[c]=s(t);return d}};r.readBits=function(e){return function(r){for(var t=function(e){return e.data[e.pos++]}(r),n=new Array(8),a=0;a<8;a++)n[7-a]=!!(t&1<<a);return Object.keys(e).reduce((function(r,t){var a=e[t];return a.length?r[t]=function(e,r,t){for(var n=0,a=0;a<t;a++)n+=e[r+a]&&Math.pow(2,t-a-1);return n}(n,a.index,a.length):r[t]=n[a.index],r}),{})}}})),n=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a={blocks:function(e){for(var r=[],n=e.data.length,a=0,i=(0,t.readByte)()(e);0!==i;i=(0,t.readByte)()(e)){if(e.pos+i>=n){var o=n-e.pos;r.push((0,t.readBytes)(o)(e)),a+=o;break}r.push((0,t.readBytes)(i)(e)),a+=i}for(var s=new Uint8Array(a),d=0,c=0;c<r.length;c++)s.set(r[c],d),d+=r[c].length;return s}},i=(0,r.conditional)({gce:[{codes:(0,t.readBytes)(2)},{byteSize:(0,t.readByte)()},{extras:(0,t.readBits)({future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}})},{delay:(0,t.readUnsigned)(!0)},{transparentColorIndex:(0,t.readByte)()},{terminator:(0,t.readByte)()}]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&249===r[1]})),o=(0,r.conditional)({image:[{code:(0,t.readByte)()},{descriptor:[{left:(0,t.readUnsigned)(!0)},{top:(0,t.readUnsigned)(!0)},{width:(0,t.readUnsigned)(!0)},{height:(0,t.readUnsigned)(!0)},{lct:(0,t.readBits)({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},(0,r.conditional)({lct:(0,t.readArray)(3,(function(e,r,t){return Math.pow(2,t.descriptor.lct.size+1)}))},(function(e,r,t){return t.descriptor.lct.exists})),{data:[{minCodeSize:(0,t.readByte)()},a]}]},(function(e){return 44===(0,t.peekByte)()(e)})),s=(0,r.conditional)({text:[{codes:(0,t.readBytes)(2)},{blockSize:(0,t.readByte)()},{preData:function(e,r,n){return(0,t.readBytes)(n.text.blockSize)(e)}},a]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&1===r[1]})),d=(0,r.conditional)({application:[{codes:(0,t.readBytes)(2)},{blockSize:(0,t.readByte)()},{id:function(e,r,n){return(0,t.readString)(n.blockSize)(e)}},a]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&255===r[1]})),c=(0,r.conditional)({comment:[{codes:(0,t.readBytes)(2)},a]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&254===r[1]})),u=[{header:[{signature:(0,t.readString)(3)},{version:(0,t.readString)(3)}]},{lsd:[{width:(0,t.readUnsigned)(!0)},{height:(0,t.readUnsigned)(!0)},{gct:(0,t.readBits)({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:(0,t.readByte)()},{pixelAspectRatio:(0,t.readByte)()}]},(0,r.conditional)({gct:(0,t.readArray)(3,(function(e,r){return Math.pow(2,r.lsd.gct.size+1)}))},(function(e,r){return r.lsd.gct.exists})),{frames:(0,r.loop)([i,d,c,o,s],(function(e){var r=(0,t.peekByte)()(e);return 33===r||44===r}))}];n.default=u})),a=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.deinterlace=void 0;r.deinterlace=function(e,r){for(var t=new Array(e.length),n=e.length/r,a=function(n,a){var i=e.slice(a*r,(a+1)*r);t.splice.apply(t,[n*r,r].concat(i))},i=[0,4,2,1],o=[8,8,4,2],s=0,d=0;d<4;d++)for(var c=i[d];c<n;c+=o[d])a(c,s),s++;return t}})),i=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.lzw=void 0;r.lzw=function(e,r,t){var n,a,i,o,s,d,c,u,l,f,p,g,y,h,v,m,x=4096,B=t,w=new Array(t),b=new Array(x),k=new Array(x),A=new Array(4097);for(s=(a=1<<(f=e))+1,n=a+2,c=-1,i=(1<<(o=f+1))-1,u=0;u<a;u++)b[u]=0,k[u]=u;for(p=g=y=h=v=m=0,l=0;l<B;){if(0===h){if(g<o){p+=r[m]<<g,g+=8,m++;continue}if(u=p&i,p>>=o,g-=o,u>n||u==s)break;if(u==a){i=(1<<(o=f+1))-1,n=a+2,c=-1;continue}if(-1==c){A[h++]=k[u],c=u,y=u;continue}for(d=u,u==n&&(A[h++]=y,u=c);u>a;)A[h++]=k[u],u=b[u];y=255&k[u],A[h++]=y,n<x&&(b[n]=c,k[n]=y,0==(++n&i)&&n<x&&(o++,i+=n)),c=d}h--,w[v++]=A[h],l++}for(l=v;l<B;l++)w[l]=0;return w}})),o=e((function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.decompressFrames=o.decompressFrame=o.parseGIF=void 0;var s,d=(s=n)&&s.__esModule?s:{default:s};o.parseGIF=function(e){var n=new Uint8Array(e);return(0,r.parse)((0,t.buildStream)(n),d.default)};var c=function(e,r,t){if(e.image){var n=e.image,o=n.descriptor.width*n.descriptor.height,s=(0,i.lzw)(n.data.minCodeSize,n.data.blocks,o);n.descriptor.lct.interlaced&&(s=(0,a.deinterlace)(s,n.descriptor.width));var d={pixels:s,dims:{top:e.image.descriptor.top,left:e.image.descriptor.left,width:e.image.descriptor.width,height:e.image.descriptor.height}};return n.descriptor.lct&&n.descriptor.lct.exists?d.colorTable=n.lct:d.colorTable=r,e.gce&&(d.delay=10*(e.gce.delay||10),d.disposalType=e.gce.extras.disposal,e.gce.extras.transparentColorGiven&&(d.transparentIndex=e.gce.transparentColorIndex)),t&&(d.patch=function(e){for(var r=e.pixels.length,t=new Uint8ClampedArray(4*r),n=0;n<r;n++){var a=4*n,i=e.pixels[n],o=e.colorTable[i]||[0,0,0];t[a]=o[0],t[a+1]=o[1],t[a+2]=o[2],t[a+3]=i!==e.transparentIndex?255:0}return t}(d)),d}console.warn("gif frame does not have associated image.")};o.decompressFrame=c;o.decompressFrames=function(e,r){return e.frames.filter((function(e){return e.image})).map((function(t){return c(t,e.gct,r)}))}}));const s=(e,r,t)=>{const{width:n,height:a,top:i,left:o}=r.dims,s=i*t.width+o;for(let i=0;i<a;i++)for(let a=0;a<n;a++){const o=i*n+a,d=r.pixels[o];if(d!==r.transparentIndex){const n=s+i*t.width+a,o=r.colorTable[d]||[0,0,0];e[4*n]=o[0],e[4*n+1]=o[1],e[4*n+2]=o[2],e[4*n+3]=255}}return e},d=new Map;self.addEventListener("message",(e=>{const{type:r,src:t}=e.data||e;switch(r){case"parse":if(!d.has(t)){const e=new AbortController,r={signal:e.signal};d.set(t,e),((e,{signal:r})=>fetch(e,{signal:r}).then((e=>{if(!e.headers.get("Content-Type").includes("image/gif"))throw Error(`Wrong content type: "${e.headers.get("Content-Type")}"`);return e.arrayBuffer()})).then((e=>o.parseGIF(e))).then((e=>((e=>{let r=null;for(const t of e.frames)r=t.gce?t.gce:r,"image"in t&&!("gce"in t)&&(t.gce=r)})(e),e))).then((e=>Promise.all([o.decompressFrames(e,!1),{width:e.lsd.width,height:e.lsd.height}]))).then((([e,r])=>{const t=[],n=r.width*r.height*4;for(let a=0;a<e.length;++a){const i=e[a],o=0===a||2===e[a-1].disposalType?new Uint8ClampedArray(n):t[a-1].slice();t.push(s(o,i,r))}return{...r,loaded:!0,delays:e.map((e=>e.delay)),frames:t}})))(t,r).then((e=>{self.postMessage(Object.assign(e,{src:t}),e.frames.map((e=>e.buffer)))})).catch((e=>{self.postMessage({src:t,error:e,loaded:!0})})).finally((()=>{d.delete(t)}))}break;case"cancel":if(d.has(t)){d.get(t).abort(),d.delete(t)}}}));\n';function WorkerFactory(C){const E=new Blob([code],{type:"application/javascript"}),I=URL.createObjectURL(E),B=new Worker(I,C);return URL.revokeObjectURL(I),B}const genearate=C=>({...C,frames:C.frames.map(E=>{const I=new ImageData(C.width,C.height);return I.data.set(new Uint8ClampedArray(E)),I})}),createSingleton=(C,E)=>{const I={};return()=>(I.instance||(I.instance=C()),React.useLayoutEffect(()=>(I.timeout?(clearTimeout(I.timeout),delete I.timeout):I.usageCount=(I.usageCount||0)+1,()=>{I.timeout=setTimeout(()=>{I.usageCount=I.usageCount-1,I.usageCount===0&&(E&&E(I.instance),delete I.instance,delete I.timeout)})}),[I,E]),I.instance)},useUpdatedRef=C=>{const E=React.useRef(C);return React.useEffect(()=>{E.current=C},[C]),E},useEventCallback=C=>{const E=useUpdatedRef(C);return React.useCallback(I=>E.current&&E.current(I),[])},useWorkerSingleton=createSingleton(()=>new WorkerFactory,C=>C.terminate()),useWorkerParser=(C,E)=>{const I=useEventCallback(E),B=useWorkerSingleton();React.useEffect(()=>{if(typeof C=="string"){const U=V=>{const X=V.data||V;if(X.src===C){const Y=X.error?X:genearate(X);I(Y)}};return B.addEventListener("message",U),B.postMessage({src:C,type:"parse"}),()=>{B.postMessage({src:C,type:"cancel"}),B.removeEventListener("message",U)}}},[B,C])},PixiAnimatedSpriteComp=({isPlaying:C,forwardRef:E,...I})=>{const B=React__namespace.useRef(null);return React__namespace.useImperativeHandle(E,()=>B.current,[B]),React__namespace.useEffect(()=>{if(B.current===null)return;const U=B.current;U[C?"gotoAndPlay":"gotoAndStop"](U.currentFrame)},[C]),jsxRuntimeExports.jsx(react.AnimatedSprite,{ref:B,...I,isPlaying:C})},PixiAnimatedSprite=React__namespace.memo(PixiAnimatedSpriteComp),initialState$2={isPlaying:!1,progress:0,speed:1,isMuted:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1,totalFrames:0,totalDuration:0,currentFrame:0},PixiGifSprite=React__namespace.forwardRef((C,E)=>{const[I,B]=React__namespace.useState(0),[U,V]=React__namespace.useState([]),[,X]=React.useState(!1),Y=React.useRef(null),K=React.useRef(null),J=React.useRef(initialState$2),xe=React.useRef(),[Z,_e]=usePlayerState({autoPlay:!1}),{tl:Se}=React.useContext(GsapPixieContext),{src:Ee,uniqueId:Ae,startAt:Re,endAt:Te,frameStartAt:we,frameEndAt:Pe,loop:Ie,visible:Fe,disabled:Oe,transformation:{width:Le=0,height:De=0,x:Ve,y:Xe,colorCorrection:Ue={}},pointerdown:We}=C,{frames:je,delays:ze}=Z;useWorkerParser(Ee,_e);const{temperatureFilter:He,sharpnessFilter:$e,hueFilter:Ne,blurFilter:Me,adjustmentFilter:ke,vignetteFilter:Ge,noiseFilter:Be}=withFiltersHook(Ue),{blurRadius:qe=0,vignette:Ke=0,noise:Ye=0}=Ue,et=.1;React__namespace.useEffect(()=>{if(!isEmpty$1(je)){const Ze=map$1(je,st=>{const{data:rt,width:tt,height:at}=st,ut=new Uint8Array(rt);return PIXI__namespace.Texture.fromBuffer(ut,tt,at)}).map((st,rt)=>({texture:st,time:ze[rt]}));V(Ze);let Je=0;ze.forEach(st=>{Je+=st}),B(Je/1e3),J.current.totalDuration=Je,J.current.totalFrames=je.length}},[Ae,je,ze]);const Qe=()=>{Y.current&&(Y.current.stop(),J.current.isPlaying=!1)},it=()=>{if(Y.current&&xe.current){const ot=xe.current.time();let Ze=ot===0?0:ot/et;Ze=isNaN(Ze)?0:Ze;const Je=J.current.totalFrames;Ze=Ze>Je?Je:Ze,Ze=Math.round(Ze),Ze>=Je?(Y.current.gotoAndStop(0),J.current.isPlaying=!1):(Y.current.currentFrame=Ze,J.current.isPlaying=!0)}},nt=()=>{X(!0)};return React.useEffect(()=>{let ot=gsap$2.context(()=>{});if(K.current&&Se.current&&I>0){const Ze={duration:Number(I),onInterrupt:Qe,onUpdate:it,onUpdateParams:[we,Pe]},Je=Number(Te)-Number(Re),st=Math.max(0,Math.floor(Je/I)-1);xe.current&&xe.current.kill(),ot=gsap$2.context(()=>{xe.current=gsap$2.timeline({repeat:Ie?st:0,repeatDelay:0}).from(K.current,Ze,we),Se.current.add(xe.current,Re)})}return()=>{xe.current&&(xe.current.kill(),gsap$2.killTweensOf(xe.current)),ot.revert()}},[Ee,Ae,Re,Te,we,Pe,I,Ie]),jsxRuntimeExports.jsx(AbstractContainer,{...C,ref:E,ignoreTlForVideo:!0,isGif:!0,children:jsxRuntimeExports.jsx(react.Container,{ref:K,children:!isEmpty$1(U)&&jsxRuntimeExports.jsx(PixiAnimatedSprite,{x:Ve,y:Xe,width:Le,height:De,animationSpeed:1,alpha:Fe?1:0,loop:Ie,textures:U,onComplete:nt,anchor:.5,forwardRef:Y,...!Oe&&Fe&&{interactive:!0,pointerdown:We},filters:[He,$e,Ne,ke,...qe>0?[Me]:[],...Ke>0?[Ge]:[],...Ye>0?[Be]:[]]})})})}),PixiTextSprite=React__namespace.forwardRef((C,E)=>{const B=React.useRef(null),U=React.useRef(0),V=React.useRef(null),X=React.useRef(null),Y=React.useRef(16),K=React.useRef(null),{visible:J,text:xe,disabled:Z,transformation:_e,pointerdown:Se,onDobuleClick:Ee}=C,{x:Ae,y:Re,fontFamily:Te="Arial",fontWeight:we="normal",fontStyle:Pe="normal",fontSize:Ie=16,fontVariant:Fe="normal",fill:Oe="black",stroke:Le,strokeThickness:De=0,blurRadius:Ve=0,blurEnabled:Xe=!1,dropShadowColor:Ue=null,dropShadow:We=!1,dropShadowBlur:je=0,wordWrapWidth:ze=5e7,leading:He=0,letterSpacing:$e,colorCorrection:Ne={}}=_e,{temperatureFilter:Me,sharpnessFilter:ke,hueFilter:Ge,blurFilter:Be,adjustmentFilter:qe}=withFiltersHook(Ne),{blurRadius:Ke=0}=Ne;React__namespace.useEffect(()=>{Y.current=Number(Ie)},[Ie]);const Ye=["italic","oblique"].includes(Pe)?Pe:void 0,et=["small-caps"].includes(Fe),Qe=["bold","bolder","lighter","100","200","300"].includes(we)?we:void 0,it=Number($e)>0?$e:void 0,nt=React__namespace.useMemo(()=>new PIXI__namespace.TextStyle({fontFamily:Te,fontSize:Ie,fill:Oe||"white",...Le&&De>0&&{stroke:Le,strokeThickness:De},...Ye&&{fontStyle:Ye},...et&&{fontVariant:et},...Qe&&{fontWeight:Qe},...it&&{letterSpacing:it},...Xe&&{dropShadow:!0,dropShadowBlur:Number(Ve),dropShadowColor:(Ue==null?void 0:Ue.toString())||"black",dropShadowAngle:.5235987755982988,dropShadowDistance:5},...We&&{dropShadow:!0,dropShadowBlur:Number(je),dropShadowColor:(Ue==null?void 0:Ue.toString())||"black",dropShadowAngle:.5235987755982988,dropShadowDistance:5},wordWrap:!0,breakWords:!0,wordWrapWidth:ze||500,leading:He||0}),[Xe,Ve,Oe,Te,Ie,Pe,He,Ye,Qe,et,it,Ue,Le,De,ze,We,je]);React__namespace.useEffect(()=>{K.current={..._e}},[_e]);const ot=()=>{const Je=new Date().getTime();Je-U.current<300&&Ee?Ee():Se&&Se(),U.current=Je},Ze=()=>{!Z&&Ee&&Ee()};return jsxRuntimeExports.jsx(AbstractContainer,{...C,ref:E,isText:!0,onDoubleClick:Ze,children:jsxRuntimeExports.jsx(react.Container,{ref:B,children:jsxRuntimeExports.jsx(react.Container,{alpha:1,ref:X,children:jsxRuntimeExports.jsx(react.Text,{style:nt,x:Ae,y:Re,anchor:.5,text:xe,alpha:J?1:0,...J&&!Z&&{interactive:!0,buttonMode:!0,pointerdown:ot},ref:V,filters:[Me,ke,Ge,qe,...Ke>0?[Be]:[]]})})})})});var root=_root,now$1=function(){return root.Date.now()},now_1=now$1,reWhitespace=/\s/;function trimmedEndIndex$1(C){for(var E=C.length;E--&&reWhitespace.test(C.charAt(E)););return E}var _trimmedEndIndex=trimmedEndIndex$1,trimmedEndIndex=_trimmedEndIndex,reTrimStart=/^\s+/;function baseTrim$1(C){return C&&C.slice(0,trimmedEndIndex(C)+1).replace(reTrimStart,"")}var _baseTrim=baseTrim$1,baseTrim=_baseTrim,isObject$1=isObject_1,isSymbol=isSymbol_1,NAN=0/0,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber$1(C){if(typeof C=="number")return C;if(isSymbol(C))return NAN;if(isObject$1(C)){var E=typeof C.valueOf=="function"?C.valueOf():C;C=isObject$1(E)?E+"":E}if(typeof C!="string")return C===0?C:+C;C=baseTrim(C);var I=reIsBinary.test(C);return I||reIsOctal.test(C)?freeParseInt(C.slice(2),I?2:8):reIsBadHex.test(C)?NAN:+C}var toNumber_1=toNumber$1,isObject=isObject_1,now=now_1,toNumber=toNumber_1,FUNC_ERROR_TEXT="Expected a function",nativeMax=Math.max,nativeMin=Math.min;function debounce(C,E,I){var B,U,V,X,Y,K,J=0,xe=!1,Z=!1,_e=!0;if(typeof C!="function")throw new TypeError(FUNC_ERROR_TEXT);E=toNumber(E)||0,isObject(I)&&(xe=!!I.leading,Z="maxWait"in I,V=Z?nativeMax(toNumber(I.maxWait)||0,E):V,_e="trailing"in I?!!I.trailing:_e);function Se(Oe){var Le=B,De=U;return B=U=void 0,J=Oe,X=C.apply(De,Le),X}function Ee(Oe){return J=Oe,Y=setTimeout(Te,E),xe?Se(Oe):X}function Ae(Oe){var Le=Oe-K,De=Oe-J,Ve=E-Le;return Z?nativeMin(Ve,V-De):Ve}function Re(Oe){var Le=Oe-K,De=Oe-J;return K===void 0||Le>=E||Le<0||Z&&De>=V}function Te(){var Oe=now();if(Re(Oe))return we(Oe);Y=setTimeout(Te,Ae(Oe))}function we(Oe){return Y=void 0,_e&&B?Se(Oe):(B=U=void 0,X)}function Pe(){Y!==void 0&&clearTimeout(Y),J=0,B=K=U=Y=void 0}function Ie(){return Y===void 0?X:we(now())}function Fe(){var Oe=now(),Le=Re(Oe);if(B=arguments,U=this,K=Oe,Le){if(Y===void 0)return Ee(K);if(Z)return clearTimeout(Y),Y=setTimeout(Te,E),Se(K)}return Y===void 0&&(Y=setTimeout(Te,E)),X}return Fe.cancel=Pe,Fe.flush=Ie,Fe}var debounce_1=debounce;const debounce$1=getDefaultExportFromCjs(debounce_1),useDebouncedPointerEvents=(C,E,I,B)=>{const U=React.useCallback(debounce$1(C,B),[C,B]),V=React.useCallback(debounce$1(E,B),[E,B]),X=React.useCallback(debounce$1(I,B),[I,B]),Y=React.useCallback(()=>{U()},[U]),K=React.useCallback(()=>{V()},[V]),J=React.useCallback(()=>{X()},[X]);return{onPointerOver:Y,onPointerDown:K,onPointerOut:J}},initialState$1={isPlaying:!1,progress:0,speed:1,isMuted:!1,isWaiting:!1,isStalled:!1,loaded:!1,size:{width:50,height:50},isDragging:!1,timeDiff:0},PixiVideoSprite=React__namespace.forwardRef((C,E)=>{const[I,B]=React__namespace.useState(!1),U=React__namespace.useRef(),V=React.useRef(null),X=React.useRef(null),Y=React.useRef(null),K=React.useRef(initialState$1),J=React.useRef(),{uniqueId:xe,mute:Z=!1,src:_e,startAt:Se,endAt:Ee,frameStartAt:Ae,frameEndAt:Re,visible:Te,disabled:we,transformation:{x:Pe,y:Ie,width:Fe,height:Oe,animation:Le,colorCorrection:De={}},pointerdown:Ve=()=>{},pointerout:Xe=()=>{},pointerover:Ue=()=>{},fps:We=0}=C,{tl:je,dragModeRef:ze,isRemotion:He}=React.useContext(GsapPixieContext),{onPointerDown:$e,onPointerOut:Ne,onPointerOver:Me}=useDebouncedPointerEvents(Ue,Ve,Xe,1),{blurRadius:ke=0,vignette:Ge=0,noise:Be=0}=De,{temperatureFilter:qe,sharpnessFilter:Ke,hueFilter:Ye,blurFilter:et,adjustmentFilter:Qe,vignetteFilter:it,noiseFilter:nt}=withFiltersHook(De),ot=_e||"",Ze=React__namespace.useMemo(()=>{const at=document.createElement("video");return at.src=_e,at.crossOrigin="Anonymus",at.autoplay=!1,at.currentTime=Ae===0?.001:Ae,at},[_e,Ae]);useCustomEventListener(Events.PAUSE,()=>{Y.current&&(Y.current.pause(),K.current.isPlaying=!1)}),useCustomEventListener(Events.SCRUBBER_CLICKED,()=>{Y.current&&(Y.current.pause(),K.current.isPlaying=!1)}),useCustomEventListener(Events.REVERSE_MODE_END,()=>{Y.current&&(Y.current.pause(),K.current.isPlaying=!1)});const Je=at=>{if(Y.current){if(Y.current.currentTime=Number(at),!ze.current){const ut=Y.current,mt=ut.currentTime>0&&!ut.paused&&!ut.ended&&ut.readyState>ut.HAVE_CURRENT_DATA;je.current&&je.current.isActive()&&J.current&&J.current.isActive()&&(mt||Y.current.play(),K.current.isPlaying=!0)}K.current.progress=0}},st=()=>{if(Y.current){const at=Y.current;at.currentTime>0&&!at.paused&&!at.ended&&at.readyState>at.HAVE_CURRENT_DATA&&Y.current.pause(),K.current.isPlaying=!1,J.current&&(K.current.progress=J.current.progress())}},rt=()=>{},tt=()=>{var at,ut;if(J.current&&(K.current.progress=J.current.progress()),Y.current&&J.current){const mt=Ae+((at=J==null?void 0:J.current)==null?void 0:at.time()),pt=Math.abs(Y.current.currentTime-mt),yt=Y.current,gt=yt.currentTime>0&&!yt.paused&&!yt.ended&&yt.readyState>yt.HAVE_CURRENT_DATA;ze.current&&U.current?(Y.current.currentTime=mt,U.current.update(),K.current.isPlaying=!1):(gt!==K.current.isPlaying||!gt)&&K.current.progress>.01&&K.current.progress<.99?(ut=je.current)!=null&&ut.isActive()&&J.current&&J.current.isActive()&&(gt||Y.current.play(),K.current.isPlaying=!0):pt>.3&&K.current.progress>.01&&K.current.progress<.99&&(Y.current.currentTime=mt)}};return React.useEffect(()=>{let at=gsap$2.context(()=>{});if(X.current&&je.current){const ut={duration:Number(Ee)-Number(Se),onStart:Je,onComplete:st,onStartParams:[Ae,Re],onCompleteParams:[],onInterrupt:rt,onUpdate:tt,onUpdateParams:[Ae,Re],onPause:()=>{console.log("onPause video sprite pause",xe)},onResume:()=>{console.log("onResume video sprite resume",xe)},onReverseComplete:()=>{console.log("onReverseComplete video sprite reverse complete",xe)},onKill:()=>{console.log("onKill video sprite kill",xe)}};J.current&&(J.current.kill(),je.current.remove(J.current)),at=gsap$2.context(()=>{J.current=gsap$2.to(X.current,ut,Ae),je.current.add(J.current,Se)})}return()=>{J.current&&(J.current.kill(),gsap$2.killTweensOf(J.current)),at.revert()}},[Le,Se,Ee,Ae,Re,xe]),React__namespace.useEffect(()=>{Y.current&&(Y.current.muted=Z,K.current.isMuted=Z);const at=setTimeout(()=>{Y.current&&(Y.current.muted=Z,K.current.isMuted=Z)},1500);return()=>{clearTimeout(at)}},[Z]),React__namespace.useEffect(()=>{const at=Math.round((Number(Ae)+Number.EPSILON)*100)/100,ut=function(){Y.current&&(Y.current.currentTime=at,Y.current.muted=Z)},mt=function(){K.current.isWaiting=!1,K.current.isStalled=!1},pt=function(){K.current.isWaiting=!0,K.current.isStalled=!1},yt=function(){K.current.isWaiting=!1,K.current.isStalled=!1},gt=function(){K.current.isWaiting=!1,K.current.isStalled=!0},_t=Math.round((Number(Ae)+Number.EPSILON)*100)/100,Pt=Math.round((Number(Re)+Number.EPSILON)*100)/100,It=`${ot}#t=${_t},${Pt}`;return PIXI__namespace.Texture.fromLoader(Ze,It,xe,{pixiIdPrefix:xe,resourceOptions:{autoPlay:!1,crossorigin:"Anonymus",updateFPS:We?Math.max(120,Number(We)):30}}).then(St=>{St&&(U.current=St,B(!0),Y.current=St.baseTexture.resource.source,Y.current.id=xe,Y.current.addEventListener("loadedmetadata",ut),Y.current.addEventListener("ended",mt),Y.current.addEventListener("loadstart",pt),Y.current.addEventListener("canplaythrough",yt),Y.current.addEventListener("stalled",gt))}),()=>{Y.current&&(Y.current.pause(),Y.current.removeEventListener("loadedmetadata",ut),Y.current.removeEventListener("ended",mt),Y.current.removeEventListener("loadstart",pt),Y.current.removeEventListener("canplaythrough",yt),Y.current.removeEventListener("stalled",gt))}},[ot,xe,Ae,Re,Ze]),React__namespace.useEffect(()=>{const at=setTimeout(()=>{I&&U.current&&J.current&&je.current&&J.current.progress()<.1&&Y.current&&!J.current.isActive()&&!He&&(Y.current.currentTime=Ae,U.current.update())},30);return()=>{clearTimeout(at)}},[I]),jsxRuntimeExports.jsx(AbstractContainer,{...C,ref:E,ignoreTlForVideo:!0,pointerdown:$e,pointerover:Me,pointerout:Ne,children:jsxRuntimeExports.jsx(react.Container,{ref:X,children:U.current&&jsxRuntimeExports.jsx(react.Sprite,{texture:U.current,width:Fe,height:Oe,anchor:.5,x:Pe,y:Ie,ref:V,alpha:Te?1:0,...!we&&Te&&{interactive:!0,pointerdown:Ve},filters:[qe,Ke,Ye,Qe,...ke>0?[et]:[],...Ge>0?[it]:[],...Be>0?[nt]:[]]})})})});PixiVideoSprite.whyDidYouRender={logOnDifferentValues:!0,customName:"PixiVideoSprite"};const PixiVideoCanvasSyncSprite=React__namespace.forwardRef((C,E)=>{const[I,B]=React__namespace.useState(),U=React.useRef(null),V=React.useRef(null),{visible:X,disabled:Y,transformation:{x:K,y:J,width:xe,height:Z,colorCorrection:_e={}},pointerdown:Se=()=>{},pointerout:Ee=()=>{},pointerover:Ae=()=>{},canvasImageRef:Re}=C,Te=Re&&(Re==null?void 0:Re.getCanvas()),we=react.useApp(),{onPointerDown:Pe,onPointerOut:Ie,onPointerOver:Fe}=useDebouncedPointerEvents(Ae,Se,Ee,1),{blurRadius:Oe=0,vignette:Le=0,noise:De=0}=_e,{temperatureFilter:Ve,sharpnessFilter:Xe,hueFilter:Ue,blurFilter:We,adjustmentFilter:je,vignetteFilter:ze,noiseFilter:He}=withFiltersHook(_e);return react.useTick(()=>{if(U.current&&U.current.texture){const $e=U.current.texture.baseTexture;$e&&$e.update(),V.current&&we.renderer.render(V.current)}}),React__namespace.useEffect(()=>{if(!isEmpty$1(Te)){const $e=PIXI__namespace.Texture.from(Te);B($e)}},[Te]),jsxRuntimeExports.jsx(AbstractContainer,{...C,ref:E,ignoreTlForVideo:!0,pointerdown:Pe,pointerover:Fe,pointerout:Ie,children:jsxRuntimeExports.jsx(react.Container,{ref:V,children:I&&jsxRuntimeExports.jsx(react.Sprite,{texture:I,width:xe,height:Z,anchor:.5,x:K,y:J,ref:U,alpha:X?1:0,...!Y&&X&&{interactive:!0,pointerdown:Se},filters:[Ve,Xe,Ue,je,...Oe>0?[We]:[],...Le>0?[ze]:[],...De>0?[He]:[]]})})})}),PixiSequence=C=>{const{startAt:E,endAt:I,uniqueId:B}=C,U=React.useRef(null),V=React.useRef(null),X=React.useRef(null),Y=React.useRef(null),{tl:K,totalDuration:J=0}=React.useContext(GsapPixieContext);return React__namespace.useEffect(()=>{const xe=gsap$2.context(()=>{if(U.current&&K.current){Y.current&&(Y.current.kill(),K.current.remove(Y.current));const Z=E<.2?1:0;Y.current=gsap$2.timeline().set(U.current,{alpha:Z}).set(U.current,{pixi:{alpha:1,eventMode:"static"}},.01).to(U.current,{pixi:{},duration:Number(I)-Number(E)}).set(U.current,{alpha:0,eventMode:"none"}),K.current.add([Y.current],E)}});return()=>{Y.current&&(K.current.remove(Y.current),Y.current.progress(0).kill()),xe.revert()}},[E,I,J,B]),jsxRuntimeExports.jsx(react.Container,{ref:U,alpha:E<.2?1:0,eventMode:E<.2?"static":"none",children:jsxRuntimeExports.jsx(react.Container,{ref:X,children:jsxRuntimeExports.jsx(react.Container,{ref:V,alpha:1,children:C.children})})})},PixiSequenceWrapper=C=>{const{startAt:E,endAt:I}=C,{setTotalDuration:B}=React.useContext(GsapPixieContext);return React__namespace.useEffect(()=>{B&&B(Number(I)+.2)},[E,I]),C.children},PixiRemotionSprite=React__namespace.forwardRef((C,E)=>{const[I,B]=React__namespace.useState(),U=React.useRef(null),V=React.useRef(null),{visible:X,disabled:Y,transformation:{x:K,y:J,width:xe,height:Z,colorCorrection:_e={}},pointerdown:Se=()=>{},pointerout:Ee=()=>{},pointerover:Ae=()=>{},canvasImageRef:Re}=C,Te=Re&&(Re==null?void 0:Re.getCanvas()),we=react.useApp(),{onPointerDown:Pe,onPointerOut:Ie,onPointerOver:Fe}=useDebouncedPointerEvents(Ae,Se,Ee,1),{blurRadius:Oe=0,vignette:Le=0,noise:De=0}=_e,{temperatureFilter:Ve,sharpnessFilter:Xe,hueFilter:Ue,blurFilter:We,adjustmentFilter:je,vignetteFilter:ze,noiseFilter:He}=withFiltersHook(_e);return react.useTick(()=>{if(U.current&&U.current.texture){const $e=U.current.texture.baseTexture;$e&&$e.update(),V.current&&we.renderer.render(V.current)}}),React__namespace.useEffect(()=>{if(!isEmpty$1(Te)){const $e=PIXI__namespace.Texture.from(Te);B($e)}},[Te]),jsxRuntimeExports.jsx(AbstractContainer,{...C,ref:E,ignoreTlForVideo:!0,pointerdown:Pe,pointerover:Fe,pointerout:Ie,children:jsxRuntimeExports.jsx(react.Container,{ref:V,children:I&&jsxRuntimeExports.jsx(react.Sprite,{texture:I,width:xe,height:Z,anchor:.5,x:K,y:J,ref:U,alpha:X?1:0,...!Y&&X&&{interactive:!0,pointerdown:Se},filters:[Ve,Xe,Ue,je,...Oe>0?[We]:[],...Le>0?[ze]:[],...De>0?[He]:[]]})})})});var lottie$1={exports:{}};(function(module,exports){typeof navigator<"u"&&function(C,E){module.exports=E()}(commonjsGlobal$1,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(E){_useWebWorker=!!E},getWebWorker=function(){return _useWebWorker},setLocationHref=function(E){locationHref=E},getLocationHref=function(){return locationHref};function createTag(C){return document.createElement(C)}function extendPrototype(C,E){var I,B=C.length,U;for(I=0;I<B;I+=1){U=C[I].prototype;for(var V in U)Object.prototype.hasOwnProperty.call(U,V)&&(E.prototype[V]=U[V])}}function getDescriptor(C,E){return Object.getOwnPropertyDescriptor(C,E)}function createProxyFunction(C){function E(){}return E.prototype=C,E}var audioControllerFactory=function(){function C(E){this.audios=[],this.audioFactory=E,this._volume=1,this._isMuted=!1}return C.prototype={addAudio:function(I){this.audios.push(I)},pause:function(){var I,B=this.audios.length;for(I=0;I<B;I+=1)this.audios[I].pause()},resume:function(){var I,B=this.audios.length;for(I=0;I<B;I+=1)this.audios[I].resume()},setRate:function(I){var B,U=this.audios.length;for(B=0;B<U;B+=1)this.audios[B].setRate(I)},createAudio:function(I){return this.audioFactory?this.audioFactory(I):window.Howl?new window.Howl({src:[I]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(I){this.audioFactory=I},setVolume:function(I){this._volume=I,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var I,B=this.audios.length;for(I=0;I<B;I+=1)this.audios[I].volume(this._volume*(this._isMuted?0:1))}},function(){return new C}}(),createTypedArray=function(){function C(I,B){var U=0,V=[],X;switch(I){case"int16":case"uint8c":X=1;break;default:X=1.1;break}for(U=0;U<B;U+=1)V.push(X);return V}function E(I,B){return I==="float32"?new Float32Array(B):I==="int16"?new Int16Array(B):I==="uint8c"?new Uint8ClampedArray(B):C(I,B)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?E:C}();function createSizedArray(C){return Array.apply(null,{length:C})}function _typeof$6(C){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$6=function(I){return typeof I}:_typeof$6=function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},_typeof$6(C)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var C=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],E,I=C.length;for(E=0;E<I;E+=1)BMMath[C[E]]=Math[C[E]]})(),BMMath.random=Math.random,BMMath.abs=function(C){var E=_typeof$6(C);if(E==="object"&&C.length){var I=createSizedArray(C.length),B,U=C.length;for(B=0;B<U;B+=1)I[B]=Math.abs(C[B]);return I}return Math.abs(C)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(C){C.style.position="absolute",C.style.top=0,C.style.left=0,C.style.display="block",C.style.transformOrigin="0 0",C.style.webkitTransformOrigin="0 0",C.style.backfaceVisibility="visible",C.style.webkitBackfaceVisibility="visible",C.style.transformStyle="preserve-3d",C.style.webkitTransformStyle="preserve-3d",C.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(C,E,I,B){this.type=C,this.currentTime=E,this.totalTime=I,this.direction=B<0?-1:1}function BMCompleteEvent(C,E){this.type=C,this.direction=E<0?-1:1}function BMCompleteLoopEvent(C,E,I,B){this.type=C,this.currentLoop=I,this.totalLoops=E,this.direction=B<0?-1:1}function BMSegmentStartEvent(C,E,I){this.type=C,this.firstFrame=E,this.totalFrames=I}function BMDestroyEvent(C,E){this.type=C,this.target=E}function BMRenderFrameErrorEvent(C,E){this.type="renderFrameError",this.nativeError=C,this.currentTime=E}function BMConfigErrorEvent(C){this.type="configError",this.nativeError=C}var createElementID=function(){var C=0;return function(){return C+=1,idPrefix$1+"__lottie_element_"+C}}();function HSVtoRGB(C,E,I){var B,U,V,X,Y,K,J,xe;switch(X=Math.floor(C*6),Y=C*6-X,K=I*(1-E),J=I*(1-Y*E),xe=I*(1-(1-Y)*E),X%6){case 0:B=I,U=xe,V=K;break;case 1:B=J,U=I,V=K;break;case 2:B=K,U=I,V=xe;break;case 3:B=K,U=J,V=I;break;case 4:B=xe,U=K,V=I;break;case 5:B=I,U=K,V=J;break}return[B,U,V]}function RGBtoHSV(C,E,I){var B=Math.max(C,E,I),U=Math.min(C,E,I),V=B-U,X,Y=B===0?0:V/B,K=B/255;switch(B){case U:X=0;break;case C:X=E-I+V*(E<I?6:0),X/=6*V;break;case E:X=I-C+V*2,X/=6*V;break;case I:X=C-E+V*4,X/=6*V;break}return[X,Y,K]}function addSaturationToRGB(C,E){var I=RGBtoHSV(C[0]*255,C[1]*255,C[2]*255);return I[1]+=E,I[1]>1?I[1]=1:I[1]<=0&&(I[1]=0),HSVtoRGB(I[0],I[1],I[2])}function addBrightnessToRGB(C,E){var I=RGBtoHSV(C[0]*255,C[1]*255,C[2]*255);return I[2]+=E,I[2]>1?I[2]=1:I[2]<0&&(I[2]=0),HSVtoRGB(I[0],I[1],I[2])}function addHueToRGB(C,E){var I=RGBtoHSV(C[0]*255,C[1]*255,C[2]*255);return I[0]+=E/360,I[0]>1?I[0]-=1:I[0]<0&&(I[0]+=1),HSVtoRGB(I[0],I[1],I[2])}var rgbToHex=function(){var C=[],E,I;for(E=0;E<256;E+=1)I=E.toString(16),C[E]=I.length===1?"0"+I:I;return function(B,U,V){return B<0&&(B=0),U<0&&(U=0),V<0&&(V=0),"#"+C[B]+C[U]+C[V]}}(),setSubframeEnabled=function(E){subframeEnabled=!!E},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(E){expressionsPlugin=E},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(E){expressionsInterfaces=E},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(E){defaultCurveSegments=E},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(E){idPrefix$1=E};function createNS(C){return document.createElementNS(svgNS,C)}function _typeof$5(C){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(I){return typeof I}:_typeof$5=function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},_typeof$5(C)}var dataManager=function(){var C=1,E=[],I,B,U={onmessage:function(){},postMessage:function(Se){I({data:Se})}},V={postMessage:function(Se){U.onmessage({data:Se})}};function X(_e){if(window.Worker&&window.Blob&&getWebWorker()){var Se=new Blob(["var _workerSelf = self; self.onmessage = ",_e.toString()],{type:"text/javascript"}),Ee=URL.createObjectURL(Se);return new Worker(Ee)}return I=_e,U}function Y(){B||(B=X(function(Se){function Ee(){function Re(He,$e){var Ne,Me,ke=He.length,Ge,Be,qe,Ke;for(Me=0;Me<ke;Me+=1)if(Ne=He[Me],"ks"in Ne&&!Ne.completed){if(Ne.completed=!0,Ne.hasMask){var Ye=Ne.masksProperties;for(Be=Ye.length,Ge=0;Ge<Be;Ge+=1)if(Ye[Ge].pt.k.i)Fe(Ye[Ge].pt.k);else for(Ke=Ye[Ge].pt.k.length,qe=0;qe<Ke;qe+=1)Ye[Ge].pt.k[qe].s&&Fe(Ye[Ge].pt.k[qe].s[0]),Ye[Ge].pt.k[qe].e&&Fe(Ye[Ge].pt.k[qe].e[0])}Ne.ty===0?(Ne.layers=Pe(Ne.refId,$e),Re(Ne.layers,$e)):Ne.ty===4?Ie(Ne.shapes):Ne.ty===5&&je(Ne)}}function Te(He,$e){if(He){var Ne=0,Me=He.length;for(Ne=0;Ne<Me;Ne+=1)He[Ne].t===1&&(He[Ne].data.layers=Pe(He[Ne].data.refId,$e),Re(He[Ne].data.layers,$e))}}function we(He,$e){for(var Ne=0,Me=$e.length;Ne<Me;){if($e[Ne].id===He)return $e[Ne];Ne+=1}return null}function Pe(He,$e){var Ne=we(He,$e);return Ne?Ne.layers.__used?JSON.parse(JSON.stringify(Ne.layers)):(Ne.layers.__used=!0,Ne.layers):null}function Ie(He){var $e,Ne=He.length,Me,ke;for($e=Ne-1;$e>=0;$e-=1)if(He[$e].ty==="sh")if(He[$e].ks.k.i)Fe(He[$e].ks.k);else for(ke=He[$e].ks.k.length,Me=0;Me<ke;Me+=1)He[$e].ks.k[Me].s&&Fe(He[$e].ks.k[Me].s[0]),He[$e].ks.k[Me].e&&Fe(He[$e].ks.k[Me].e[0]);else He[$e].ty==="gr"&&Ie(He[$e].it)}function Fe(He){var $e,Ne=He.i.length;for($e=0;$e<Ne;$e+=1)He.i[$e][0]+=He.v[$e][0],He.i[$e][1]+=He.v[$e][1],He.o[$e][0]+=He.v[$e][0],He.o[$e][1]+=He.v[$e][1]}function Oe(He,$e){var Ne=$e?$e.split("."):[100,100,100];return He[0]>Ne[0]?!0:Ne[0]>He[0]?!1:He[1]>Ne[1]?!0:Ne[1]>He[1]?!1:He[2]>Ne[2]?!0:Ne[2]>He[2]?!1:null}var Le=function(){var He=[4,4,14];function $e(Me){var ke=Me.t.d;Me.t.d={k:[{s:ke,t:0}]}}function Ne(Me){var ke,Ge=Me.length;for(ke=0;ke<Ge;ke+=1)Me[ke].ty===5&&$e(Me[ke])}return function(Me){if(Oe(He,Me.v)&&(Ne(Me.layers),Me.assets)){var ke,Ge=Me.assets.length;for(ke=0;ke<Ge;ke+=1)Me.assets[ke].layers&&Ne(Me.assets[ke].layers)}}}(),De=function(){var He=[4,7,99];return function($e){if($e.chars&&!Oe(He,$e.v)){var Ne,Me=$e.chars.length;for(Ne=0;Ne<Me;Ne+=1){var ke=$e.chars[Ne];ke.data&&ke.data.shapes&&(Ie(ke.data.shapes),ke.data.ip=0,ke.data.op=99999,ke.data.st=0,ke.data.sr=1,ke.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},$e.chars[Ne].t||(ke.data.shapes.push({ty:"no"}),ke.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"})))}}}}(),Ve=function(){var He=[5,7,15];function $e(Me){var ke=Me.t.p;typeof ke.a=="number"&&(ke.a={a:0,k:ke.a}),typeof ke.p=="number"&&(ke.p={a:0,k:ke.p}),typeof ke.r=="number"&&(ke.r={a:0,k:ke.r})}function Ne(Me){var ke,Ge=Me.length;for(ke=0;ke<Ge;ke+=1)Me[ke].ty===5&&$e(Me[ke])}return function(Me){if(Oe(He,Me.v)&&(Ne(Me.layers),Me.assets)){var ke,Ge=Me.assets.length;for(ke=0;ke<Ge;ke+=1)Me.assets[ke].layers&&Ne(Me.assets[ke].layers)}}}(),Xe=function(){var He=[4,1,9];function $e(Me){var ke,Ge=Me.length,Be,qe;for(ke=0;ke<Ge;ke+=1)if(Me[ke].ty==="gr")$e(Me[ke].it);else if(Me[ke].ty==="fl"||Me[ke].ty==="st")if(Me[ke].c.k&&Me[ke].c.k[0].i)for(qe=Me[ke].c.k.length,Be=0;Be<qe;Be+=1)Me[ke].c.k[Be].s&&(Me[ke].c.k[Be].s[0]/=255,Me[ke].c.k[Be].s[1]/=255,Me[ke].c.k[Be].s[2]/=255,Me[ke].c.k[Be].s[3]/=255),Me[ke].c.k[Be].e&&(Me[ke].c.k[Be].e[0]/=255,Me[ke].c.k[Be].e[1]/=255,Me[ke].c.k[Be].e[2]/=255,Me[ke].c.k[Be].e[3]/=255);else Me[ke].c.k[0]/=255,Me[ke].c.k[1]/=255,Me[ke].c.k[2]/=255,Me[ke].c.k[3]/=255}function Ne(Me){var ke,Ge=Me.length;for(ke=0;ke<Ge;ke+=1)Me[ke].ty===4&&$e(Me[ke].shapes)}return function(Me){if(Oe(He,Me.v)&&(Ne(Me.layers),Me.assets)){var ke,Ge=Me.assets.length;for(ke=0;ke<Ge;ke+=1)Me.assets[ke].layers&&Ne(Me.assets[ke].layers)}}}(),Ue=function(){var He=[4,4,18];function $e(Me){var ke,Ge=Me.length,Be,qe;for(ke=Ge-1;ke>=0;ke-=1)if(Me[ke].ty==="sh")if(Me[ke].ks.k.i)Me[ke].ks.k.c=Me[ke].closed;else for(qe=Me[ke].ks.k.length,Be=0;Be<qe;Be+=1)Me[ke].ks.k[Be].s&&(Me[ke].ks.k[Be].s[0].c=Me[ke].closed),Me[ke].ks.k[Be].e&&(Me[ke].ks.k[Be].e[0].c=Me[ke].closed);else Me[ke].ty==="gr"&&$e(Me[ke].it)}function Ne(Me){var ke,Ge,Be=Me.length,qe,Ke,Ye,et;for(Ge=0;Ge<Be;Ge+=1){if(ke=Me[Ge],ke.hasMask){var Qe=ke.masksProperties;for(Ke=Qe.length,qe=0;qe<Ke;qe+=1)if(Qe[qe].pt.k.i)Qe[qe].pt.k.c=Qe[qe].cl;else for(et=Qe[qe].pt.k.length,Ye=0;Ye<et;Ye+=1)Qe[qe].pt.k[Ye].s&&(Qe[qe].pt.k[Ye].s[0].c=Qe[qe].cl),Qe[qe].pt.k[Ye].e&&(Qe[qe].pt.k[Ye].e[0].c=Qe[qe].cl)}ke.ty===4&&$e(ke.shapes)}}return function(Me){if(Oe(He,Me.v)&&(Ne(Me.layers),Me.assets)){var ke,Ge=Me.assets.length;for(ke=0;ke<Ge;ke+=1)Me.assets[ke].layers&&Ne(Me.assets[ke].layers)}}}();function We(He){He.__complete||(Xe(He),Le(He),De(He),Ve(He),Ue(He),Re(He.layers,He.assets),Te(He.chars,He.assets),He.__complete=!0)}function je(He){He.t.a.length===0&&"m"in He.t.p}var ze={};return ze.completeData=We,ze.checkColors=Xe,ze.checkChars=De,ze.checkPathProperties=Ve,ze.checkShapes=Ue,ze.completeLayers=Re,ze}if(V.dataManager||(V.dataManager=Ee()),V.assetLoader||(V.assetLoader=function(){function Re(we){var Pe=we.getResponseHeader("content-type");return Pe&&we.responseType==="json"&&Pe.indexOf("json")!==-1||we.response&&_typeof$5(we.response)==="object"?we.response:we.response&&typeof we.response=="string"?JSON.parse(we.response):we.responseText?JSON.parse(we.responseText):null}function Te(we,Pe,Ie,Fe){var Oe,Le=new XMLHttpRequest;try{Le.responseType="json"}catch{}Le.onreadystatechange=function(){if(Le.readyState===4)if(Le.status===200)Oe=Re(Le),Ie(Oe);else try{Oe=Re(Le),Ie(Oe)}catch(De){Fe&&Fe(De)}};try{Le.open(["G","E","T"].join(""),we,!0)}catch{Le.open(["G","E","T"].join(""),Pe+"/"+we,!0)}Le.send()}return{load:Te}}()),Se.data.type==="loadAnimation")V.assetLoader.load(Se.data.path,Se.data.fullPath,function(Re){V.dataManager.completeData(Re),V.postMessage({id:Se.data.id,payload:Re,status:"success"})},function(){V.postMessage({id:Se.data.id,status:"error"})});else if(Se.data.type==="complete"){var Ae=Se.data.animation;V.dataManager.completeData(Ae),V.postMessage({id:Se.data.id,payload:Ae,status:"success"})}else Se.data.type==="loadData"&&V.assetLoader.load(Se.data.path,Se.data.fullPath,function(Re){V.postMessage({id:Se.data.id,payload:Re,status:"success"})},function(){V.postMessage({id:Se.data.id,status:"error"})})}),B.onmessage=function(_e){var Se=_e.data,Ee=Se.id,Ae=E[Ee];E[Ee]=null,Se.status==="success"?Ae.onComplete(Se.payload):Ae.onError&&Ae.onError()})}function K(_e,Se){C+=1;var Ee="processId_"+C;return E[Ee]={onComplete:_e,onError:Se},Ee}function J(_e,Se,Ee){Y();var Ae=K(Se,Ee);B.postMessage({type:"loadAnimation",path:_e,fullPath:window.location.origin+window.location.pathname,id:Ae})}function xe(_e,Se,Ee){Y();var Ae=K(Se,Ee);B.postMessage({type:"loadData",path:_e,fullPath:window.location.origin+window.location.pathname,id:Ae})}function Z(_e,Se,Ee){Y();var Ae=K(Se,Ee);B.postMessage({type:"complete",animation:_e,id:Ae})}return{loadAnimation:J,loadData:xe,completeAnimation:Z}}(),ImagePreloader=function(){var C=function(){var Te=createTag("canvas");Te.width=1,Te.height=1;var we=Te.getContext("2d");return we.fillStyle="rgba(0,0,0,0)",we.fillRect(0,0,1,1),Te}();function E(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function I(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function B(Te,we,Pe){var Ie="";if(Te.e)Ie=Te.p;else if(we){var Fe=Te.p;Fe.indexOf("images/")!==-1&&(Fe=Fe.split("/")[1]),Ie=we+Fe}else Ie=Pe,Ie+=Te.u?Te.u:"",Ie+=Te.p;return Ie}function U(Te){var we=0,Pe=setInterval((function(){var Ie=Te.getBBox();(Ie.width||we>500)&&(this._imageLoaded(),clearInterval(Pe)),we+=1}).bind(this),50)}function V(Te){var we=B(Te,this.assetsPath,this.path),Pe=createNS("image");isSafari?this.testImageLoaded(Pe):Pe.addEventListener("load",this._imageLoaded,!1),Pe.addEventListener("error",(function(){Ie.img=C,this._imageLoaded()}).bind(this),!1),Pe.setAttributeNS("http://www.w3.org/1999/xlink","href",we),this._elementHelper.append?this._elementHelper.append(Pe):this._elementHelper.appendChild(Pe);var Ie={img:Pe,assetData:Te};return Ie}function X(Te){var we=B(Te,this.assetsPath,this.path),Pe=createTag("img");Pe.crossOrigin="anonymous",Pe.addEventListener("load",this._imageLoaded,!1),Pe.addEventListener("error",(function(){Ie.img=C,this._imageLoaded()}).bind(this),!1),Pe.src=we;var Ie={img:Pe,assetData:Te};return Ie}function Y(Te){var we={assetData:Te},Pe=B(Te,this.assetsPath,this.path);return dataManager.loadData(Pe,(function(Ie){we.img=Ie,this._footageLoaded()}).bind(this),(function(){we.img={},this._footageLoaded()}).bind(this)),we}function K(Te,we){this.imagesLoadedCb=we;var Pe,Ie=Te.length;for(Pe=0;Pe<Ie;Pe+=1)Te[Pe].layers||(!Te[Pe].t||Te[Pe].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(Te[Pe]))):Te[Pe].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(Te[Pe]))))}function J(Te){this.path=Te||""}function xe(Te){this.assetsPath=Te||""}function Z(Te){for(var we=0,Pe=this.images.length;we<Pe;){if(this.images[we].assetData===Te)return this.images[we].img;we+=1}return null}function _e(){this.imagesLoadedCb=null,this.images.length=0}function Se(){return this.totalImages===this.loadedAssets}function Ee(){return this.totalFootages===this.loadedFootagesCount}function Ae(Te,we){Te==="svg"?(this._elementHelper=we,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function Re(){this._imageLoaded=E.bind(this),this._footageLoaded=I.bind(this),this.testImageLoaded=U.bind(this),this.createFootageData=Y.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return Re.prototype={loadAssets:K,setAssetsPath:xe,setPath:J,loadedImages:Se,loadedFootages:Ee,destroy:_e,getAsset:Z,createImgData:X,createImageData:V,imageLoaded:E,footageLoaded:I,setCacheType:Ae},Re}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(E,I){if(this._cbs[E])for(var B=this._cbs[E],U=0;U<B.length;U+=1)B[U](I)},addEventListener:function(E,I){return this._cbs[E]||(this._cbs[E]=[]),this._cbs[E].push(I),(function(){this.removeEventListener(E,I)}).bind(this)},removeEventListener:function(E,I){if(!I)this._cbs[E]=null;else if(this._cbs[E]){for(var B=0,U=this._cbs[E].length;B<U;)this._cbs[E][B]===I&&(this._cbs[E].splice(B,1),B-=1,U-=1),B+=1;this._cbs[E].length||(this._cbs[E]=null)}}};var markerParser=function(){function C(E){for(var I=E.split(`\r
1998
- `),B={},U,V=0,X=0;X<I.length;X+=1)U=I[X].split(":"),U.length===2&&(B[U[0]]=U[1].trim(),V+=1);if(V===0)throw new Error;return B}return function(E){for(var I=[],B=0;B<E.length;B+=1){var U=E[B],V={time:U.tm,duration:U.dr};try{V.payload=JSON.parse(E[B].cm)}catch{try{V.payload=C(E[B].cm)}catch{V.payload={name:E[B].cm}}}I.push(V)}return I}}(),ProjectInterface=function(){function C(E){this.compositions.push(E)}return function(){function E(I){for(var B=0,U=this.compositions.length;B<U;){if(this.compositions[B].data&&this.compositions[B].data.nm===I)return this.compositions[B].prepareFrame&&this.compositions[B].data.xt&&this.compositions[B].prepareFrame(this.currentFrame),this.compositions[B].compInterface;B+=1}return null}return E.compositions=[],E.currentFrame=0,E.registerComposition=C,E}}(),renderers={},registerRenderer=function(E,I){renderers[E]=I};function getRenderer(C){return renderers[C]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var C in renderers)if(renderers[C])return C;return""}function _typeof$4(C){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$4=function(I){return typeof I}:_typeof$4=function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},_typeof$4(C)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(C){(C.wrapper||C.container)&&(this.wrapper=C.wrapper||C.container);var E="svg";C.animType?E=C.animType:C.renderer&&(E=C.renderer);var I=getRenderer(E);this.renderer=new I(this,C.rendererSettings),this.imagePreloader.setCacheType(E,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=E,C.loop===""||C.loop===null||C.loop===void 0||C.loop===!0?this.loop=!0:C.loop===!1?this.loop=!1:this.loop=parseInt(C.loop,10),this.autoplay="autoplay"in C?C.autoplay:!0,this.name=C.name?C.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(C,"autoloadSegments")?C.autoloadSegments:!0,this.assetsPath=C.assetsPath,this.initialSegment=C.initialSegment,C.audioFactory&&this.audioController.setAudioFactory(C.audioFactory),C.animationData?this.setupAnimation(C.animationData):C.path&&(C.path.lastIndexOf("\\")!==-1?this.path=C.path.substr(0,C.path.lastIndexOf("\\")+1):this.path=C.path.substr(0,C.path.lastIndexOf("/")+1),this.fileName=C.path.substr(C.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(C.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(C){dataManager.completeAnimation(C,this.configAnimation)},AnimationItem.prototype.setData=function(C,E){E&&_typeof$4(E)!=="object"&&(E=JSON.parse(E));var I={wrapper:C,animationData:E},B=C.attributes;I.path=B.getNamedItem("data-animation-path")?B.getNamedItem("data-animation-path").value:B.getNamedItem("data-bm-path")?B.getNamedItem("data-bm-path").value:B.getNamedItem("bm-path")?B.getNamedItem("bm-path").value:"",I.animType=B.getNamedItem("data-anim-type")?B.getNamedItem("data-anim-type").value:B.getNamedItem("data-bm-type")?B.getNamedItem("data-bm-type").value:B.getNamedItem("bm-type")?B.getNamedItem("bm-type").value:B.getNamedItem("data-bm-renderer")?B.getNamedItem("data-bm-renderer").value:B.getNamedItem("bm-renderer")?B.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var U=B.getNamedItem("data-anim-loop")?B.getNamedItem("data-anim-loop").value:B.getNamedItem("data-bm-loop")?B.getNamedItem("data-bm-loop").value:B.getNamedItem("bm-loop")?B.getNamedItem("bm-loop").value:"";U==="false"?I.loop=!1:U==="true"?I.loop=!0:U!==""&&(I.loop=parseInt(U,10));var V=B.getNamedItem("data-anim-autoplay")?B.getNamedItem("data-anim-autoplay").value:B.getNamedItem("data-bm-autoplay")?B.getNamedItem("data-bm-autoplay").value:B.getNamedItem("bm-autoplay")?B.getNamedItem("bm-autoplay").value:!0;I.autoplay=V!=="false",I.name=B.getNamedItem("data-name")?B.getNamedItem("data-name").value:B.getNamedItem("data-bm-name")?B.getNamedItem("data-bm-name").value:B.getNamedItem("bm-name")?B.getNamedItem("bm-name").value:"";var X=B.getNamedItem("data-anim-prerender")?B.getNamedItem("data-anim-prerender").value:B.getNamedItem("data-bm-prerender")?B.getNamedItem("data-bm-prerender").value:B.getNamedItem("bm-prerender")?B.getNamedItem("bm-prerender").value:"";X==="false"&&(I.prerender=!1),I.path?this.setParams(I):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(C){C.op>this.animationData.op&&(this.animationData.op=C.op,this.totalFrames=Math.floor(C.op-this.animationData.ip));var E=this.animationData.layers,I,B=E.length,U=C.layers,V,X=U.length;for(V=0;V<X;V+=1)for(I=0;I<B;){if(E[I].id===U[V].id){E[I]=U[V];break}I+=1}if((C.chars||C.fonts)&&(this.renderer.globalData.fontManager.addChars(C.chars),this.renderer.globalData.fontManager.addFonts(C.fonts,this.renderer.globalData.defs)),C.assets)for(B=C.assets.length,I=0;I<B;I+=1)this.animationData.assets.push(C.assets[I]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(C){this.animationData=C;var E=getExpressionsPlugin();E&&E.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var C=this.animationData.segments;if(!C||C.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var E=C.shift();this.timeCompleted=E.time*this.frameRate;var I=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(I,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},AnimationItem.prototype.loadSegments=function(){var C=this.animationData.segments;C||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(C){if(this.renderer)try{this.animationData=C,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(C),C.assets||(C.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(C.assets),this.markers=markerParser(C.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(E){this.triggerConfigError(E)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var C=getExpressionsPlugin();C&&C.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(C,E){var I=typeof C=="number"?C:void 0,B=typeof E=="number"?E:void 0;this.renderer.updateContainerSize(I,B)},AnimationItem.prototype.setSubframe=function(C){this.isSubframeEnabled=!!C},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(C){this.triggerRenderFrameError(C)}},AnimationItem.prototype.play=function(C){C&&this.name!==C||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(C){C&&this.name!==C||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(C){C&&this.name!==C||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(C){C&&this.name!==C||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(C){for(var E,I=0;I<this.markers.length;I+=1)if(E=this.markers[I],E.payload&&E.payload.name===C)return E;return null},AnimationItem.prototype.goToAndStop=function(C,E,I){if(!(I&&this.name!==I)){var B=Number(C);if(isNaN(B)){var U=this.getMarkerData(C);U&&this.goToAndStop(U.time,!0)}else E?this.setCurrentRawFrameValue(C):this.setCurrentRawFrameValue(C*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(C,E,I){if(!(I&&this.name!==I)){var B=Number(C);if(isNaN(B)){var U=this.getMarkerData(C);U&&(U.duration?this.playSegments([U.time,U.time+U.duration],!0):this.goToAndStop(U.time,!0))}else this.goToAndStop(B,E,I);this.play()}},AnimationItem.prototype.advanceTime=function(C){if(!(this.isPaused===!0||this.isLoaded===!1)){var E=this.currentRawFrame+C*this.frameModifier,I=!1;E>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(E>this.totalFrames?E%this.totalFrames:0)||(I=!0,E=this.totalFrames-1):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):E<0?this.checkSegments(E%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+E%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(I=!0,E=0)):this.setCurrentRawFrameValue(E),I&&(this.setCurrentRawFrameValue(E),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(C,E){this.playCount=0,C[1]<C[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=C[0]-C[1],this.timeCompleted=this.totalFrames,this.firstFrame=C[1],this.setCurrentRawFrameValue(this.totalFrames-.001-E)):C[1]>C[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=C[1]-C[0],this.timeCompleted=this.totalFrames,this.firstFrame=C[0],this.setCurrentRawFrameValue(.001+E)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(C,E){var I=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<C?I=C:this.currentRawFrame+this.firstFrame>E&&(I=E-C)),this.firstFrame=C,this.totalFrames=E-C,this.timeCompleted=this.totalFrames,I!==-1&&this.goToAndStop(I,!0)},AnimationItem.prototype.playSegments=function(C,E){if(E&&(this.segments.length=0),_typeof$4(C[0])==="object"){var I,B=C.length;for(I=0;I<B;I+=1)this.segments.push(C[I])}else this.segments.push(C);this.segments.length&&E&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(C){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),C&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(C){return this.segments.length?(this.adjustSegment(this.segments.shift(),C),!0):!1},AnimationItem.prototype.destroy=function(C){C&&this.name!==C||!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(C){this.currentRawFrame=C,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(C){this.playSpeed=C,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(C){this.playDirection=C<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(C){this.loop=C},AnimationItem.prototype.setVolume=function(C,E){E&&this.name!==E||this.audioController.setVolume(C)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(C){C&&this.name!==C||this.audioController.mute()},AnimationItem.prototype.unmute=function(C){C&&this.name!==C||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(C){var E="";if(C.e)E=C.p;else if(this.assetsPath){var I=C.p;I.indexOf("images/")!==-1&&(I=I.split("/")[1]),E=this.assetsPath+I}else E=this.path,E+=C.u?C.u:"",E+=C.p;return E},AnimationItem.prototype.getAssetData=function(C){for(var E=0,I=this.assets.length;E<I;){if(C===this.assets[E].id)return this.assets[E];E+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(C){return C?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(C,E,I){try{var B=this.renderer.getElementByPath(C);B.updateDocumentData(E,I)}catch{}},AnimationItem.prototype.trigger=function(C){if(this._cbs&&this._cbs[C])switch(C){case"enterFrame":this.triggerEvent(C,new BMEnterFrameEvent(C,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(C,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(C,new BMCompleteLoopEvent(C,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(C,new BMCompleteEvent(C,this.frameMult));break;case"segmentStart":this.triggerEvent(C,new BMSegmentStartEvent(C,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(C,new BMDestroyEvent(C,this));break;default:this.triggerEvent(C)}C==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(C,this.currentFrame,this.totalFrames,this.frameMult)),C==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(C,this.loop,this.playCount,this.frameMult)),C==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(C,this.frameMult)),C==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(C,this.firstFrame,this.totalFrames)),C==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(C,this))},AnimationItem.prototype.triggerRenderFrameError=function(C){var E=new BMRenderFrameErrorEvent(C,this.currentFrame);this.triggerEvent("error",E),this.onError&&this.onError.call(this,E)},AnimationItem.prototype.triggerConfigError=function(C){var E=new BMConfigErrorEvent(C,this.currentFrame);this.triggerEvent("error",E),this.onError&&this.onError.call(this,E)};var animationManager=function(){var C={},E=[],I=0,B=0,U=0,V=!0,X=!1;function Y($e){for(var Ne=0,Me=$e.target;Ne<B;)E[Ne].animation===Me&&(E.splice(Ne,1),Ne-=1,B-=1,Me.isPaused||Z()),Ne+=1}function K($e,Ne){if(!$e)return null;for(var Me=0;Me<B;){if(E[Me].elem===$e&&E[Me].elem!==null)return E[Me].animation;Me+=1}var ke=new AnimationItem;return _e(ke,$e),ke.setData($e,Ne),ke}function J(){var $e,Ne=E.length,Me=[];for($e=0;$e<Ne;$e+=1)Me.push(E[$e].animation);return Me}function xe(){U+=1,Xe()}function Z(){U-=1}function _e($e,Ne){$e.addEventListener("destroy",Y),$e.addEventListener("_active",xe),$e.addEventListener("_idle",Z),E.push({elem:Ne,animation:$e}),B+=1}function Se($e){var Ne=new AnimationItem;return _e(Ne,null),Ne.setParams($e),Ne}function Ee($e,Ne){var Me;for(Me=0;Me<B;Me+=1)E[Me].animation.setSpeed($e,Ne)}function Ae($e,Ne){var Me;for(Me=0;Me<B;Me+=1)E[Me].animation.setDirection($e,Ne)}function Re($e){var Ne;for(Ne=0;Ne<B;Ne+=1)E[Ne].animation.play($e)}function Te($e){var Ne=$e-I,Me;for(Me=0;Me<B;Me+=1)E[Me].animation.advanceTime(Ne);I=$e,U&&!X?window.requestAnimationFrame(Te):V=!0}function we($e){I=$e,window.requestAnimationFrame(Te)}function Pe($e){var Ne;for(Ne=0;Ne<B;Ne+=1)E[Ne].animation.pause($e)}function Ie($e,Ne,Me){var ke;for(ke=0;ke<B;ke+=1)E[ke].animation.goToAndStop($e,Ne,Me)}function Fe($e){var Ne;for(Ne=0;Ne<B;Ne+=1)E[Ne].animation.stop($e)}function Oe($e){var Ne;for(Ne=0;Ne<B;Ne+=1)E[Ne].animation.togglePause($e)}function Le($e){var Ne;for(Ne=B-1;Ne>=0;Ne-=1)E[Ne].animation.destroy($e)}function De($e,Ne,Me){var ke=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Ge,Be=ke.length;for(Ge=0;Ge<Be;Ge+=1)Me&&ke[Ge].setAttribute("data-bm-type",Me),K(ke[Ge],$e);if(Ne&&Be===0){Me||(Me="svg");var qe=document.getElementsByTagName("body")[0];qe.innerText="";var Ke=createTag("div");Ke.style.width="100%",Ke.style.height="100%",Ke.setAttribute("data-bm-type",Me),qe.appendChild(Ke),K(Ke,$e)}}function Ve(){var $e;for($e=0;$e<B;$e+=1)E[$e].animation.resize()}function Xe(){!X&&U&&V&&(window.requestAnimationFrame(we),V=!1)}function Ue(){X=!0}function We(){X=!1,Xe()}function je($e,Ne){var Me;for(Me=0;Me<B;Me+=1)E[Me].animation.setVolume($e,Ne)}function ze($e){var Ne;for(Ne=0;Ne<B;Ne+=1)E[Ne].animation.mute($e)}function He($e){var Ne;for(Ne=0;Ne<B;Ne+=1)E[Ne].animation.unmute($e)}return C.registerAnimation=K,C.loadAnimation=Se,C.setSpeed=Ee,C.setDirection=Ae,C.play=Re,C.pause=Pe,C.stop=Fe,C.togglePause=Oe,C.searchAnimations=De,C.resize=Ve,C.goToAndStop=Ie,C.destroy=Le,C.freeze=Ue,C.unfreeze=We,C.setVolume=je,C.mute=ze,C.unmute=He,C.getRegisteredAnimations=J,C}(),BezierFactory=function(){var C={};C.getBezierEasing=I;var E={};function I(we,Pe,Ie,Fe,Oe){var Le=Oe||("bez_"+we+"_"+Pe+"_"+Ie+"_"+Fe).replace(/\./g,"p");if(E[Le])return E[Le];var De=new Te([we,Pe,Ie,Fe]);return E[Le]=De,De}var B=4,U=.001,V=1e-7,X=10,Y=11,K=1/(Y-1),J=typeof Float32Array=="function";function xe(we,Pe){return 1-3*Pe+3*we}function Z(we,Pe){return 3*Pe-6*we}function _e(we){return 3*we}function Se(we,Pe,Ie){return((xe(Pe,Ie)*we+Z(Pe,Ie))*we+_e(Pe))*we}function Ee(we,Pe,Ie){return 3*xe(Pe,Ie)*we*we+2*Z(Pe,Ie)*we+_e(Pe)}function Ae(we,Pe,Ie,Fe,Oe){var Le,De,Ve=0;do De=Pe+(Ie-Pe)/2,Le=Se(De,Fe,Oe)-we,Le>0?Ie=De:Pe=De;while(Math.abs(Le)>V&&++Ve<X);return De}function Re(we,Pe,Ie,Fe){for(var Oe=0;Oe<B;++Oe){var Le=Ee(Pe,Ie,Fe);if(Le===0)return Pe;var De=Se(Pe,Ie,Fe)-we;Pe-=De/Le}return Pe}function Te(we){this._p=we,this._mSampleValues=J?new Float32Array(Y):new Array(Y),this._precomputed=!1,this.get=this.get.bind(this)}return Te.prototype={get:function(Pe){var Ie=this._p[0],Fe=this._p[1],Oe=this._p[2],Le=this._p[3];return this._precomputed||this._precompute(),Ie===Fe&&Oe===Le?Pe:Pe===0?0:Pe===1?1:Se(this._getTForX(Pe),Fe,Le)},_precompute:function(){var Pe=this._p[0],Ie=this._p[1],Fe=this._p[2],Oe=this._p[3];this._precomputed=!0,(Pe!==Ie||Fe!==Oe)&&this._calcSampleValues()},_calcSampleValues:function(){for(var Pe=this._p[0],Ie=this._p[2],Fe=0;Fe<Y;++Fe)this._mSampleValues[Fe]=Se(Fe*K,Pe,Ie)},_getTForX:function(Pe){for(var Ie=this._p[0],Fe=this._p[2],Oe=this._mSampleValues,Le=0,De=1,Ve=Y-1;De!==Ve&&Oe[De]<=Pe;++De)Le+=K;--De;var Xe=(Pe-Oe[De])/(Oe[De+1]-Oe[De]),Ue=Le+Xe*K,We=Ee(Ue,Ie,Fe);return We>=U?Re(Pe,Ue,Ie,Fe):We===0?Ue:Ae(Pe,Le,Le+K,Ie,Fe)}},C}(),pooling=function(){function C(E){return E.concat(createSizedArray(E.length))}return{double:C}}(),poolFactory=function(){return function(C,E,I){var B=0,U=C,V=createSizedArray(U),X={newElement:Y,release:K};function Y(){var J;return B?(B-=1,J=V[B]):J=E(),J}function K(J){B===U&&(V=pooling.double(V),U*=2),I&&I(J),V[B]=J,B+=1}return X}}(),bezierLengthPool=function(){function C(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,C)}(),segmentsLengthPool=function(){function C(){return{lengths:[],totalLength:0}}function E(I){var B,U=I.lengths.length;for(B=0;B<U;B+=1)bezierLengthPool.release(I.lengths[B]);I.lengths.length=0}return poolFactory(8,C,E)}();function bezFunction(){var C=Math;function E(_e,Se,Ee,Ae,Re,Te){var we=_e*Ae+Se*Re+Ee*Te-Re*Ae-Te*_e-Ee*Se;return we>-.001&&we<.001}function I(_e,Se,Ee,Ae,Re,Te,we,Pe,Ie){if(Ee===0&&Te===0&&Ie===0)return E(_e,Se,Ae,Re,we,Pe);var Fe=C.sqrt(C.pow(Ae-_e,2)+C.pow(Re-Se,2)+C.pow(Te-Ee,2)),Oe=C.sqrt(C.pow(we-_e,2)+C.pow(Pe-Se,2)+C.pow(Ie-Ee,2)),Le=C.sqrt(C.pow(we-Ae,2)+C.pow(Pe-Re,2)+C.pow(Ie-Te,2)),De;return Fe>Oe?Fe>Le?De=Fe-Oe-Le:De=Le-Oe-Fe:Le>Oe?De=Le-Oe-Fe:De=Oe-Fe-Le,De>-1e-4&&De<1e-4}var B=function(){return function(_e,Se,Ee,Ae){var Re=getDefaultCurveSegments(),Te,we,Pe,Ie,Fe,Oe=0,Le,De=[],Ve=[],Xe=bezierLengthPool.newElement();for(Pe=Ee.length,Te=0;Te<Re;Te+=1){for(Fe=Te/(Re-1),Le=0,we=0;we<Pe;we+=1)Ie=bmPow(1-Fe,3)*_e[we]+3*bmPow(1-Fe,2)*Fe*Ee[we]+3*(1-Fe)*bmPow(Fe,2)*Ae[we]+bmPow(Fe,3)*Se[we],De[we]=Ie,Ve[we]!==null&&(Le+=bmPow(De[we]-Ve[we],2)),Ve[we]=De[we];Le&&(Le=bmSqrt(Le),Oe+=Le),Xe.percents[Te]=Fe,Xe.lengths[Te]=Oe}return Xe.addedLength=Oe,Xe}}();function U(_e){var Se=segmentsLengthPool.newElement(),Ee=_e.c,Ae=_e.v,Re=_e.o,Te=_e.i,we,Pe=_e._length,Ie=Se.lengths,Fe=0;for(we=0;we<Pe-1;we+=1)Ie[we]=B(Ae[we],Ae[we+1],Re[we],Te[we+1]),Fe+=Ie[we].addedLength;return Ee&&Pe&&(Ie[we]=B(Ae[we],Ae[0],Re[we],Te[0]),Fe+=Ie[we].addedLength),Se.totalLength=Fe,Se}function V(_e){this.segmentLength=0,this.points=new Array(_e)}function X(_e,Se){this.partialLength=_e,this.point=Se}var Y=function(){var _e={};return function(Se,Ee,Ae,Re){var Te=(Se[0]+"_"+Se[1]+"_"+Ee[0]+"_"+Ee[1]+"_"+Ae[0]+"_"+Ae[1]+"_"+Re[0]+"_"+Re[1]).replace(/\./g,"p");if(!_e[Te]){var we=getDefaultCurveSegments(),Pe,Ie,Fe,Oe,Le,De=0,Ve,Xe,Ue=null;Se.length===2&&(Se[0]!==Ee[0]||Se[1]!==Ee[1])&&E(Se[0],Se[1],Ee[0],Ee[1],Se[0]+Ae[0],Se[1]+Ae[1])&&E(Se[0],Se[1],Ee[0],Ee[1],Ee[0]+Re[0],Ee[1]+Re[1])&&(we=2);var We=new V(we);for(Fe=Ae.length,Pe=0;Pe<we;Pe+=1){for(Xe=createSizedArray(Fe),Le=Pe/(we-1),Ve=0,Ie=0;Ie<Fe;Ie+=1)Oe=bmPow(1-Le,3)*Se[Ie]+3*bmPow(1-Le,2)*Le*(Se[Ie]+Ae[Ie])+3*(1-Le)*bmPow(Le,2)*(Ee[Ie]+Re[Ie])+bmPow(Le,3)*Ee[Ie],Xe[Ie]=Oe,Ue!==null&&(Ve+=bmPow(Xe[Ie]-Ue[Ie],2));Ve=bmSqrt(Ve),De+=Ve,We.points[Pe]=new X(Ve,Xe),Ue=Xe}We.segmentLength=De,_e[Te]=We}return _e[Te]}}();function K(_e,Se){var Ee=Se.percents,Ae=Se.lengths,Re=Ee.length,Te=bmFloor((Re-1)*_e),we=_e*Se.addedLength,Pe=0;if(Te===Re-1||Te===0||we===Ae[Te])return Ee[Te];for(var Ie=Ae[Te]>we?-1:1,Fe=!0;Fe;)if(Ae[Te]<=we&&Ae[Te+1]>we?(Pe=(we-Ae[Te])/(Ae[Te+1]-Ae[Te]),Fe=!1):Te+=Ie,Te<0||Te>=Re-1){if(Te===Re-1)return Ee[Te];Fe=!1}return Ee[Te]+(Ee[Te+1]-Ee[Te])*Pe}function J(_e,Se,Ee,Ae,Re,Te){var we=K(Re,Te),Pe=1-we,Ie=C.round((Pe*Pe*Pe*_e[0]+(we*Pe*Pe+Pe*we*Pe+Pe*Pe*we)*Ee[0]+(we*we*Pe+Pe*we*we+we*Pe*we)*Ae[0]+we*we*we*Se[0])*1e3)/1e3,Fe=C.round((Pe*Pe*Pe*_e[1]+(we*Pe*Pe+Pe*we*Pe+Pe*Pe*we)*Ee[1]+(we*we*Pe+Pe*we*we+we*Pe*we)*Ae[1]+we*we*we*Se[1])*1e3)/1e3;return[Ie,Fe]}var xe=createTypedArray("float32",8);function Z(_e,Se,Ee,Ae,Re,Te,we){Re<0?Re=0:Re>1&&(Re=1);var Pe=K(Re,we);Te=Te>1?1:Te;var Ie=K(Te,we),Fe,Oe=_e.length,Le=1-Pe,De=1-Ie,Ve=Le*Le*Le,Xe=Pe*Le*Le*3,Ue=Pe*Pe*Le*3,We=Pe*Pe*Pe,je=Le*Le*De,ze=Pe*Le*De+Le*Pe*De+Le*Le*Ie,He=Pe*Pe*De+Le*Pe*Ie+Pe*Le*Ie,$e=Pe*Pe*Ie,Ne=Le*De*De,Me=Pe*De*De+Le*Ie*De+Le*De*Ie,ke=Pe*Ie*De+Le*Ie*Ie+Pe*De*Ie,Ge=Pe*Ie*Ie,Be=De*De*De,qe=Ie*De*De+De*Ie*De+De*De*Ie,Ke=Ie*Ie*De+De*Ie*Ie+Ie*De*Ie,Ye=Ie*Ie*Ie;for(Fe=0;Fe<Oe;Fe+=1)xe[Fe*4]=C.round((Ve*_e[Fe]+Xe*Ee[Fe]+Ue*Ae[Fe]+We*Se[Fe])*1e3)/1e3,xe[Fe*4+1]=C.round((je*_e[Fe]+ze*Ee[Fe]+He*Ae[Fe]+$e*Se[Fe])*1e3)/1e3,xe[Fe*4+2]=C.round((Ne*_e[Fe]+Me*Ee[Fe]+ke*Ae[Fe]+Ge*Se[Fe])*1e3)/1e3,xe[Fe*4+3]=C.round((Be*_e[Fe]+qe*Ee[Fe]+Ke*Ae[Fe]+Ye*Se[Fe])*1e3)/1e3;return xe}return{getSegmentsLength:U,getNewSegment:Z,getPointInSegment:J,buildBezierData:Y,pointOnLine2D:E,pointOnLine3D:I}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(C,E){var I=this.offsetTime,B;this.propType==="multidimensional"&&(B=createTypedArray("float32",this.pv.length));for(var U=E.lastIndex,V=U,X=this.keyframes.length-1,Y=!0,K,J,xe;Y;){if(K=this.keyframes[V],J=this.keyframes[V+1],V===X-1&&C>=J.t-I){K.h&&(K=J),U=0;break}if(J.t-I>C){U=V;break}V<X-1?V+=1:(U=0,Y=!1)}xe=this.keyframesMetadata[V]||{};var Z,_e,Se,Ee,Ae,Re,Te=J.t-I,we=K.t-I,Pe;if(K.to){xe.bezierData||(xe.bezierData=bez.buildBezierData(K.s,J.s||K.e,K.to,K.ti));var Ie=xe.bezierData;if(C>=Te||C<we){var Fe=C>=Te?Ie.points.length-1:0;for(_e=Ie.points[Fe].point.length,Z=0;Z<_e;Z+=1)B[Z]=Ie.points[Fe].point[Z]}else{xe.__fnct?Re=xe.__fnct:(Re=BezierFactory.getBezierEasing(K.o.x,K.o.y,K.i.x,K.i.y,K.n).get,xe.__fnct=Re),Se=Re((C-we)/(Te-we));var Oe=Ie.segmentLength*Se,Le,De=E.lastFrame<C&&E._lastKeyframeIndex===V?E._lastAddedLength:0;for(Ae=E.lastFrame<C&&E._lastKeyframeIndex===V?E._lastPoint:0,Y=!0,Ee=Ie.points.length;Y;){if(De+=Ie.points[Ae].partialLength,Oe===0||Se===0||Ae===Ie.points.length-1){for(_e=Ie.points[Ae].point.length,Z=0;Z<_e;Z+=1)B[Z]=Ie.points[Ae].point[Z];break}else if(Oe>=De&&Oe<De+Ie.points[Ae+1].partialLength){for(Le=(Oe-De)/Ie.points[Ae+1].partialLength,_e=Ie.points[Ae].point.length,Z=0;Z<_e;Z+=1)B[Z]=Ie.points[Ae].point[Z]+(Ie.points[Ae+1].point[Z]-Ie.points[Ae].point[Z])*Le;break}Ae<Ee-1?Ae+=1:Y=!1}E._lastPoint=Ae,E._lastAddedLength=De-Ie.points[Ae].partialLength,E._lastKeyframeIndex=V}}else{var Ve,Xe,Ue,We,je;if(X=K.s.length,Pe=J.s||K.e,this.sh&&K.h!==1)if(C>=Te)B[0]=Pe[0],B[1]=Pe[1],B[2]=Pe[2];else if(C<=we)B[0]=K.s[0],B[1]=K.s[1],B[2]=K.s[2];else{var ze=createQuaternion(K.s),He=createQuaternion(Pe),$e=(C-we)/(Te-we);quaternionToEuler(B,slerp(ze,He,$e))}else for(V=0;V<X;V+=1)K.h!==1&&(C>=Te?Se=1:C<we?Se=0:(K.o.x.constructor===Array?(xe.__fnct||(xe.__fnct=[]),xe.__fnct[V]?Re=xe.__fnct[V]:(Ve=K.o.x[V]===void 0?K.o.x[0]:K.o.x[V],Xe=K.o.y[V]===void 0?K.o.y[0]:K.o.y[V],Ue=K.i.x[V]===void 0?K.i.x[0]:K.i.x[V],We=K.i.y[V]===void 0?K.i.y[0]:K.i.y[V],Re=BezierFactory.getBezierEasing(Ve,Xe,Ue,We).get,xe.__fnct[V]=Re)):xe.__fnct?Re=xe.__fnct:(Ve=K.o.x,Xe=K.o.y,Ue=K.i.x,We=K.i.y,Re=BezierFactory.getBezierEasing(Ve,Xe,Ue,We).get,K.keyframeMetadata=Re),Se=Re((C-we)/(Te-we)))),Pe=J.s||K.e,je=K.h===1?K.s[V]:K.s[V]+(Pe[V]-K.s[V])*Se,this.propType==="multidimensional"?B[V]=je:B=je}return E.lastIndex=U,B}function slerp(C,E,I){var B=[],U=C[0],V=C[1],X=C[2],Y=C[3],K=E[0],J=E[1],xe=E[2],Z=E[3],_e,Se,Ee,Ae,Re;return Se=U*K+V*J+X*xe+Y*Z,Se<0&&(Se=-Se,K=-K,J=-J,xe=-xe,Z=-Z),1-Se>1e-6?(_e=Math.acos(Se),Ee=Math.sin(_e),Ae=Math.sin((1-I)*_e)/Ee,Re=Math.sin(I*_e)/Ee):(Ae=1-I,Re=I),B[0]=Ae*U+Re*K,B[1]=Ae*V+Re*J,B[2]=Ae*X+Re*xe,B[3]=Ae*Y+Re*Z,B}function quaternionToEuler(C,E){var I=E[0],B=E[1],U=E[2],V=E[3],X=Math.atan2(2*B*V-2*I*U,1-2*B*B-2*U*U),Y=Math.asin(2*I*B+2*U*V),K=Math.atan2(2*I*V-2*B*U,1-2*I*I-2*U*U);C[0]=X/degToRads,C[1]=Y/degToRads,C[2]=K/degToRads}function createQuaternion(C){var E=C[0]*degToRads,I=C[1]*degToRads,B=C[2]*degToRads,U=Math.cos(E/2),V=Math.cos(I/2),X=Math.cos(B/2),Y=Math.sin(E/2),K=Math.sin(I/2),J=Math.sin(B/2),xe=U*V*X-Y*K*J,Z=Y*K*X+U*V*J,_e=Y*V*X+U*K*J,Se=U*K*X-Y*V*J;return[Z,_e,Se,xe]}function getValueAtCurrentTime(){var C=this.comp.renderedFrame-this.offsetTime,E=this.keyframes[0].t-this.offsetTime,I=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(C===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=I&&C>=I||this._caching.lastFrame<E&&C<E))){this._caching.lastFrame>=C&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var B=this.interpolateValue(C,this._caching);this.pv=B}return this._caching.lastFrame=C,this.pv}function setVValue(C){var E;if(this.propType==="unidimensional")E=C*this.mult,mathAbs(this.v-E)>1e-5&&(this.v=E,this._mdf=!0);else for(var I=0,B=this.v.length;I<B;)E=C[I]*this.mult,mathAbs(this.v[I]-E)>1e-5&&(this.v[I]=E,this._mdf=!0),I+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var C,E=this.effectsSequence.length,I=this.kf?this.pv:this.data.k;for(C=0;C<E;C+=1)I=this.effectsSequence[C](I);this.setVValue(I),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(C){this.effectsSequence.push(C),this.container.addDynamicProperty(this)}function ValueProperty(C,E,I,B){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=C,this.container=B,this.comp=C.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(C,E,I,B){this.propType="multidimensional",this.mult=I||1,this.data=E,this._mdf=!1,this.elem=C,this.container=B,this.comp=C.comp,this.k=!1,this.kf=!1,this.frameId=-1;var U,V=E.k.length;for(this.v=createTypedArray("float32",V),this.pv=createTypedArray("float32",V),this.vel=createTypedArray("float32",V),U=0;U<V;U+=1)this.v[U]=E.k[U]*this.mult,this.pv[U]=E.k[U];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(C,E,I,B){this.propType="unidimensional",this.keyframes=E.k,this.keyframesMetadata=[],this.offsetTime=C.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=E,this.mult=I||1,this.elem=C,this.container=B,this.comp=C.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(C,E,I,B){this.propType="multidimensional";var U,V=E.k.length,X,Y,K,J;for(U=0;U<V-1;U+=1)E.k[U].to&&E.k[U].s&&E.k[U+1]&&E.k[U+1].s&&(X=E.k[U].s,Y=E.k[U+1].s,K=E.k[U].to,J=E.k[U].ti,(X.length===2&&!(X[0]===Y[0]&&X[1]===Y[1])&&bez.pointOnLine2D(X[0],X[1],Y[0],Y[1],X[0]+K[0],X[1]+K[1])&&bez.pointOnLine2D(X[0],X[1],Y[0],Y[1],Y[0]+J[0],Y[1]+J[1])||X.length===3&&!(X[0]===Y[0]&&X[1]===Y[1]&&X[2]===Y[2])&&bez.pointOnLine3D(X[0],X[1],X[2],Y[0],Y[1],Y[2],X[0]+K[0],X[1]+K[1],X[2]+K[2])&&bez.pointOnLine3D(X[0],X[1],X[2],Y[0],Y[1],Y[2],Y[0]+J[0],Y[1]+J[1],Y[2]+J[2]))&&(E.k[U].to=null,E.k[U].ti=null),X[0]===Y[0]&&X[1]===Y[1]&&K[0]===0&&K[1]===0&&J[0]===0&&J[1]===0&&(X.length===2||X[2]===Y[2]&&K[2]===0&&J[2]===0)&&(E.k[U].to=null,E.k[U].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=E,this.keyframes=E.k,this.keyframesMetadata=[],this.offsetTime=C.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=I||1,this.elem=C,this.container=B,this.comp=C.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var xe=E.k[0].s.length;for(this.v=createTypedArray("float32",xe),this.pv=createTypedArray("float32",xe),U=0;U<xe;U+=1)this.v[U]=initFrame,this.pv[U]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",xe)},this.addEffect=addEffect}var PropertyFactory=function(){function C(I,B,U,V,X){B.sid&&(B=I.globalData.slotManager.getProp(B));var Y;if(!B.k.length)Y=new ValueProperty(I,B,V,X);else if(typeof B.k[0]=="number")Y=new MultiDimensionalProperty(I,B,V,X);else switch(U){case 0:Y=new KeyframedValueProperty(I,B,V,X);break;case 1:Y=new KeyframedMultidimensionalProperty(I,B,V,X);break}return Y.effectsSequence.length&&X.addDynamicProperty(Y),Y}var E={getProp:C};return E}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(E){this.dynamicProperties.indexOf(E)===-1&&(this.dynamicProperties.push(E),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var E,I=this.dynamicProperties.length;for(E=0;E<I;E+=1)this.dynamicProperties[E].getValue(),this.dynamicProperties[E]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(E){this.container=E,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=function(){function C(){return createTypedArray("float32",2)}return poolFactory(8,C)}();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(C,E){this.c=C,this.setLength(E);for(var I=0;I<E;)this.v[I]=pointPool.newElement(),this.o[I]=pointPool.newElement(),this.i[I]=pointPool.newElement(),I+=1},ShapePath.prototype.setLength=function(C){for(;this._maxLength<C;)this.doubleArrayLength();this._length=C},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(C,E,I,B,U){var V;switch(this._length=Math.max(this._length,B+1),this._length>=this._maxLength&&this.doubleArrayLength(),I){case"v":V=this.v;break;case"i":V=this.i;break;case"o":V=this.o;break;default:V=[];break}(!V[B]||V[B]&&!U)&&(V[B]=pointPool.newElement()),V[B][0]=C,V[B][1]=E},ShapePath.prototype.setTripleAt=function(C,E,I,B,U,V,X,Y){this.setXYAt(C,E,"v",X,Y),this.setXYAt(I,B,"o",X,Y),this.setXYAt(U,V,"i",X,Y)},ShapePath.prototype.reverse=function(){var C=new ShapePath;C.setPathData(this.c,this._length);var E=this.v,I=this.o,B=this.i,U=0;this.c&&(C.setTripleAt(E[0][0],E[0][1],B[0][0],B[0][1],I[0][0],I[0][1],0,!1),U=1);var V=this._length-1,X=this._length,Y;for(Y=U;Y<X;Y+=1)C.setTripleAt(E[V][0],E[V][1],B[V][0],B[V][1],I[V][0],I[V][1],Y,!1),V-=1;return C},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function C(){return new ShapePath}function E(U){var V=U._length,X;for(X=0;X<V;X+=1)pointPool.release(U.v[X]),pointPool.release(U.i[X]),pointPool.release(U.o[X]),U.v[X]=null,U.i[X]=null,U.o[X]=null;U._length=0,U.c=!1}function I(U){var V=B.newElement(),X,Y=U._length===void 0?U.v.length:U._length;for(V.setLength(Y),V.c=U.c,X=0;X<Y;X+=1)V.setTripleAt(U.v[X][0],U.v[X][1],U.o[X][0],U.o[X][1],U.i[X][0],U.i[X][1],X);return V}var B=poolFactory(4,C,E);return B.clone=I,B}();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(C){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=C,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var C;for(C=0;C<this._length;C+=1)shapePool.release(this.shapes[C]);this._length=0};var shapeCollectionPool=function(){var C={newShapeCollection:U,release:V},E=0,I=4,B=createSizedArray(I);function U(){var X;return E?(E-=1,X=B[E]):X=new ShapeCollection,X}function V(X){var Y,K=X._length;for(Y=0;Y<K;Y+=1)shapePool.release(X.shapes[Y]);X._length=0,E===I&&(B=pooling.double(B),I*=2),B[E]=X,E+=1}return C}(),ShapePropertyFactory=function(){var C=-999999;function E(Te,we,Pe){var Ie=Pe.lastIndex,Fe,Oe,Le,De,Ve,Xe,Ue,We,je,ze=this.keyframes;if(Te<ze[0].t-this.offsetTime)Fe=ze[0].s[0],Le=!0,Ie=0;else if(Te>=ze[ze.length-1].t-this.offsetTime)Fe=ze[ze.length-1].s?ze[ze.length-1].s[0]:ze[ze.length-2].e[0],Le=!0;else{for(var He=Ie,$e=ze.length-1,Ne=!0,Me,ke,Ge;Ne&&(Me=ze[He],ke=ze[He+1],!(ke.t-this.offsetTime>Te));)He<$e-1?He+=1:Ne=!1;if(Ge=this.keyframesMetadata[He]||{},Le=Me.h===1,Ie=He,!Le){if(Te>=ke.t-this.offsetTime)We=1;else if(Te<Me.t-this.offsetTime)We=0;else{var Be;Ge.__fnct?Be=Ge.__fnct:(Be=BezierFactory.getBezierEasing(Me.o.x,Me.o.y,Me.i.x,Me.i.y).get,Ge.__fnct=Be),We=Be((Te-(Me.t-this.offsetTime))/(ke.t-this.offsetTime-(Me.t-this.offsetTime)))}Oe=ke.s?ke.s[0]:Me.e[0]}Fe=Me.s[0]}for(Xe=we._length,Ue=Fe.i[0].length,Pe.lastIndex=Ie,De=0;De<Xe;De+=1)for(Ve=0;Ve<Ue;Ve+=1)je=Le?Fe.i[De][Ve]:Fe.i[De][Ve]+(Oe.i[De][Ve]-Fe.i[De][Ve])*We,we.i[De][Ve]=je,je=Le?Fe.o[De][Ve]:Fe.o[De][Ve]+(Oe.o[De][Ve]-Fe.o[De][Ve])*We,we.o[De][Ve]=je,je=Le?Fe.v[De][Ve]:Fe.v[De][Ve]+(Oe.v[De][Ve]-Fe.v[De][Ve])*We,we.v[De][Ve]=je}function I(){var Te=this.comp.renderedFrame-this.offsetTime,we=this.keyframes[0].t-this.offsetTime,Pe=this.keyframes[this.keyframes.length-1].t-this.offsetTime,Ie=this._caching.lastFrame;return Ie!==C&&(Ie<we&&Te<we||Ie>Pe&&Te>Pe)||(this._caching.lastIndex=Ie<Te?this._caching.lastIndex:0,this.interpolateShape(Te,this.pv,this._caching)),this._caching.lastFrame=Te,this.pv}function B(){this.paths=this.localShapeCollection}function U(Te,we){if(Te._length!==we._length||Te.c!==we.c)return!1;var Pe,Ie=Te._length;for(Pe=0;Pe<Ie;Pe+=1)if(Te.v[Pe][0]!==we.v[Pe][0]||Te.v[Pe][1]!==we.v[Pe][1]||Te.o[Pe][0]!==we.o[Pe][0]||Te.o[Pe][1]!==we.o[Pe][1]||Te.i[Pe][0]!==we.i[Pe][0]||Te.i[Pe][1]!==we.i[Pe][1])return!1;return!0}function V(Te){U(this.v,Te)||(this.v=shapePool.clone(Te),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function X(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var Te;this.kf?Te=this.pv:this.data.ks?Te=this.data.ks.k:Te=this.data.pt.k;var we,Pe=this.effectsSequence.length;for(we=0;we<Pe;we+=1)Te=this.effectsSequence[we](Te);this.setVValue(Te),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function Y(Te,we,Pe){this.propType="shape",this.comp=Te.comp,this.container=Te,this.elem=Te,this.data=we,this.k=!1,this.kf=!1,this._mdf=!1;var Ie=Pe===3?we.pt.k:we.ks.k;this.v=shapePool.clone(Ie),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=B,this.effectsSequence=[]}function K(Te){this.effectsSequence.push(Te),this.container.addDynamicProperty(this)}Y.prototype.interpolateShape=E,Y.prototype.getValue=X,Y.prototype.setVValue=V,Y.prototype.addEffect=K;function J(Te,we,Pe){this.propType="shape",this.comp=Te.comp,this.elem=Te,this.container=Te,this.offsetTime=Te.data.st,this.keyframes=Pe===3?we.pt.k:we.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var Ie=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,Ie),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=C,this.reset=B,this._caching={lastFrame:C,lastIndex:0},this.effectsSequence=[I.bind(this)]}J.prototype.getValue=X,J.prototype.interpolateShape=E,J.prototype.setVValue=V,J.prototype.addEffect=K;var xe=function(){var Te=roundCorner;function we(Pe,Ie){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=Ie.d,this.elem=Pe,this.comp=Pe.comp,this.frameId=-1,this.initDynamicPropertyContainer(Pe),this.p=PropertyFactory.getProp(Pe,Ie.p,1,0,this),this.s=PropertyFactory.getProp(Pe,Ie.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return we.prototype={reset:B,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var Ie=this.p.v[0],Fe=this.p.v[1],Oe=this.s.v[0]/2,Le=this.s.v[1]/2,De=this.d!==3,Ve=this.v;Ve.v[0][0]=Ie,Ve.v[0][1]=Fe-Le,Ve.v[1][0]=De?Ie+Oe:Ie-Oe,Ve.v[1][1]=Fe,Ve.v[2][0]=Ie,Ve.v[2][1]=Fe+Le,Ve.v[3][0]=De?Ie-Oe:Ie+Oe,Ve.v[3][1]=Fe,Ve.i[0][0]=De?Ie-Oe*Te:Ie+Oe*Te,Ve.i[0][1]=Fe-Le,Ve.i[1][0]=De?Ie+Oe:Ie-Oe,Ve.i[1][1]=Fe-Le*Te,Ve.i[2][0]=De?Ie+Oe*Te:Ie-Oe*Te,Ve.i[2][1]=Fe+Le,Ve.i[3][0]=De?Ie-Oe:Ie+Oe,Ve.i[3][1]=Fe+Le*Te,Ve.o[0][0]=De?Ie+Oe*Te:Ie-Oe*Te,Ve.o[0][1]=Fe-Le,Ve.o[1][0]=De?Ie+Oe:Ie-Oe,Ve.o[1][1]=Fe+Le*Te,Ve.o[2][0]=De?Ie-Oe*Te:Ie+Oe*Te,Ve.o[2][1]=Fe+Le,Ve.o[3][0]=De?Ie-Oe:Ie+Oe,Ve.o[3][1]=Fe-Le*Te}},extendPrototype([DynamicPropertyContainer],we),we}(),Z=function(){function Te(we,Pe){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=we,this.comp=we.comp,this.data=Pe,this.frameId=-1,this.d=Pe.d,this.initDynamicPropertyContainer(we),Pe.sy===1?(this.ir=PropertyFactory.getProp(we,Pe.ir,0,0,this),this.is=PropertyFactory.getProp(we,Pe.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(we,Pe.pt,0,0,this),this.p=PropertyFactory.getProp(we,Pe.p,1,0,this),this.r=PropertyFactory.getProp(we,Pe.r,0,degToRads,this),this.or=PropertyFactory.getProp(we,Pe.or,0,0,this),this.os=PropertyFactory.getProp(we,Pe.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return Te.prototype={reset:B,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var Pe=Math.floor(this.pt.v)*2,Ie=Math.PI*2/Pe,Fe=!0,Oe=this.or.v,Le=this.ir.v,De=this.os.v,Ve=this.is.v,Xe=2*Math.PI*Oe/(Pe*2),Ue=2*Math.PI*Le/(Pe*2),We,je,ze,He,$e=-Math.PI/2;$e+=this.r.v;var Ne=this.data.d===3?-1:1;for(this.v._length=0,We=0;We<Pe;We+=1){je=Fe?Oe:Le,ze=Fe?De:Ve,He=Fe?Xe:Ue;var Me=je*Math.cos($e),ke=je*Math.sin($e),Ge=Me===0&&ke===0?0:ke/Math.sqrt(Me*Me+ke*ke),Be=Me===0&&ke===0?0:-Me/Math.sqrt(Me*Me+ke*ke);Me+=+this.p.v[0],ke+=+this.p.v[1],this.v.setTripleAt(Me,ke,Me-Ge*He*ze*Ne,ke-Be*He*ze*Ne,Me+Ge*He*ze*Ne,ke+Be*He*ze*Ne,We,!0),Fe=!Fe,$e+=Ie*Ne}},convertPolygonToPath:function(){var Pe=Math.floor(this.pt.v),Ie=Math.PI*2/Pe,Fe=this.or.v,Oe=this.os.v,Le=2*Math.PI*Fe/(Pe*4),De,Ve=-Math.PI*.5,Xe=this.data.d===3?-1:1;for(Ve+=this.r.v,this.v._length=0,De=0;De<Pe;De+=1){var Ue=Fe*Math.cos(Ve),We=Fe*Math.sin(Ve),je=Ue===0&&We===0?0:We/Math.sqrt(Ue*Ue+We*We),ze=Ue===0&&We===0?0:-Ue/Math.sqrt(Ue*Ue+We*We);Ue+=+this.p.v[0],We+=+this.p.v[1],this.v.setTripleAt(Ue,We,Ue-je*Le*Oe*Xe,We-ze*Le*Oe*Xe,Ue+je*Le*Oe*Xe,We+ze*Le*Oe*Xe,De,!0),Ve+=Ie*Xe}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],Te),Te}(),_e=function(){function Te(we,Pe){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=we,this.comp=we.comp,this.frameId=-1,this.d=Pe.d,this.initDynamicPropertyContainer(we),this.p=PropertyFactory.getProp(we,Pe.p,1,0,this),this.s=PropertyFactory.getProp(we,Pe.s,1,0,this),this.r=PropertyFactory.getProp(we,Pe.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return Te.prototype={convertRectToPath:function(){var Pe=this.p.v[0],Ie=this.p.v[1],Fe=this.s.v[0]/2,Oe=this.s.v[1]/2,Le=bmMin(Fe,Oe,this.r.v),De=Le*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(Pe+Fe,Ie-Oe+Le,Pe+Fe,Ie-Oe+Le,Pe+Fe,Ie-Oe+De,0,!0),this.v.setTripleAt(Pe+Fe,Ie+Oe-Le,Pe+Fe,Ie+Oe-De,Pe+Fe,Ie+Oe-Le,1,!0),Le!==0?(this.v.setTripleAt(Pe+Fe-Le,Ie+Oe,Pe+Fe-Le,Ie+Oe,Pe+Fe-De,Ie+Oe,2,!0),this.v.setTripleAt(Pe-Fe+Le,Ie+Oe,Pe-Fe+De,Ie+Oe,Pe-Fe+Le,Ie+Oe,3,!0),this.v.setTripleAt(Pe-Fe,Ie+Oe-Le,Pe-Fe,Ie+Oe-Le,Pe-Fe,Ie+Oe-De,4,!0),this.v.setTripleAt(Pe-Fe,Ie-Oe+Le,Pe-Fe,Ie-Oe+De,Pe-Fe,Ie-Oe+Le,5,!0),this.v.setTripleAt(Pe-Fe+Le,Ie-Oe,Pe-Fe+Le,Ie-Oe,Pe-Fe+De,Ie-Oe,6,!0),this.v.setTripleAt(Pe+Fe-Le,Ie-Oe,Pe+Fe-De,Ie-Oe,Pe+Fe-Le,Ie-Oe,7,!0)):(this.v.setTripleAt(Pe-Fe,Ie+Oe,Pe-Fe+De,Ie+Oe,Pe-Fe,Ie+Oe,2),this.v.setTripleAt(Pe-Fe,Ie-Oe,Pe-Fe,Ie-Oe+De,Pe-Fe,Ie-Oe,3))):(this.v.setTripleAt(Pe+Fe,Ie-Oe+Le,Pe+Fe,Ie-Oe+De,Pe+Fe,Ie-Oe+Le,0,!0),Le!==0?(this.v.setTripleAt(Pe+Fe-Le,Ie-Oe,Pe+Fe-Le,Ie-Oe,Pe+Fe-De,Ie-Oe,1,!0),this.v.setTripleAt(Pe-Fe+Le,Ie-Oe,Pe-Fe+De,Ie-Oe,Pe-Fe+Le,Ie-Oe,2,!0),this.v.setTripleAt(Pe-Fe,Ie-Oe+Le,Pe-Fe,Ie-Oe+Le,Pe-Fe,Ie-Oe+De,3,!0),this.v.setTripleAt(Pe-Fe,Ie+Oe-Le,Pe-Fe,Ie+Oe-De,Pe-Fe,Ie+Oe-Le,4,!0),this.v.setTripleAt(Pe-Fe+Le,Ie+Oe,Pe-Fe+Le,Ie+Oe,Pe-Fe+De,Ie+Oe,5,!0),this.v.setTripleAt(Pe+Fe-Le,Ie+Oe,Pe+Fe-De,Ie+Oe,Pe+Fe-Le,Ie+Oe,6,!0),this.v.setTripleAt(Pe+Fe,Ie+Oe-Le,Pe+Fe,Ie+Oe-Le,Pe+Fe,Ie+Oe-De,7,!0)):(this.v.setTripleAt(Pe-Fe,Ie-Oe,Pe-Fe+De,Ie-Oe,Pe-Fe,Ie-Oe,1,!0),this.v.setTripleAt(Pe-Fe,Ie+Oe,Pe-Fe,Ie+Oe-De,Pe-Fe,Ie+Oe,2,!0),this.v.setTripleAt(Pe+Fe,Ie+Oe,Pe+Fe-De,Ie+Oe,Pe+Fe,Ie+Oe,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:B},extendPrototype([DynamicPropertyContainer],Te),Te}();function Se(Te,we,Pe){var Ie;if(Pe===3||Pe===4){var Fe=Pe===3?we.pt:we.ks,Oe=Fe.k;Oe.length?Ie=new J(Te,we,Pe):Ie=new Y(Te,we,Pe)}else Pe===5?Ie=new _e(Te,we):Pe===6?Ie=new xe(Te,we):Pe===7&&(Ie=new Z(Te,we));return Ie.k&&Te.addDynamicProperty(Ie),Ie}function Ee(){return Y}function Ae(){return J}var Re={};return Re.getShapeProp=Se,Re.getConstructorFunction=Ee,Re.getKeyframedConstructorFunction=Ae,Re}();/*!
1997
+ */const VERSION="4.3.0",PI=Math.PI,TAU=2*PI,HALF_PI=PI/2,C_1=8.17579892,CHANNEL_COMBINED="dual-combined",CHANNEL_HORIZONTAL="dual-horizontal",CHANNEL_SINGLE="single",CHANNEL_VERTICAL="dual-vertical",COLOR_BAR_INDEX="bar-index",COLOR_BAR_LEVEL="bar-level",COLOR_GRADIENT="gradient",DEBOUNCE_TIMEOUT=60,EVENT_CLICK="click",EVENT_FULLSCREENCHANGE="fullscreenchange",EVENT_RESIZE="resize",GRADIENT_DEFAULT_BGCOLOR="#111",FILTER_NONE="",FILTER_A="A",FILTER_B="B",FILTER_C="C",FILTER_D="D",FILTER_468="468",FONT_FAMILY="sans-serif",FPS_COLOR="#0f0",LEDS_UNLIT_COLOR="#7f7f7f22",MODE_GRAPH=10,REASON_CREATE="create",REASON_FSCHANGE="fschange",REASON_LORES="lores",REASON_RESIZE=EVENT_RESIZE,REASON_USER="user",SCALEX_BACKGROUND_COLOR="#000c",SCALEX_LABEL_COLOR="#fff",SCALEX_HIGHLIGHT_COLOR="#4f4",SCALEY_LABEL_COLOR="#888",SCALEY_MIDLINE_COLOR="#555",SCALE_BARK="bark",SCALE_LINEAR="linear",SCALE_LOG="log",SCALE_MEL="mel",PRISM=["#a35","#c66","#e94","#ed0","#9d5","#4d8","#2cb","#0bc","#09c","#36b"],GRADIENTS=[["classic",{colorStops:["red",{color:"yellow",level:.85,pos:.6},{color:"lime",level:.475}]}],["prism",{colorStops:PRISM}],["rainbow",{dir:"h",colorStops:["#817",...PRISM,"#639"]}],["orangered",{bgColor:"#3e2f29",colorStops:["OrangeRed"]}],["steelblue",{bgColor:"#222c35",colorStops:["SteelBlue"]}]],ERR_AUDIO_CONTEXT_FAIL=["ERR_AUDIO_CONTEXT_FAIL","Could not create audio context. Web Audio API not supported?"],ERR_INVALID_AUDIO_CONTEXT=["ERR_INVALID_AUDIO_CONTEXT","Provided audio context is not valid"],ERR_UNKNOWN_GRADIENT=["ERR_UNKNOWN_GRADIENT","Unknown gradient"],ERR_FREQUENCY_TOO_LOW=["ERR_FREQUENCY_TOO_LOW","Frequency values must be >= 1"],ERR_INVALID_MODE=["ERR_INVALID_MODE","Invalid mode"],ERR_REFLEX_OUT_OF_RANGE=["ERR_REFLEX_OUT_OF_RANGE","Reflex ratio must be >= 0 and < 1"],ERR_INVALID_AUDIO_SOURCE=["ERR_INVALID_AUDIO_SOURCE","Audio source must be an instance of HTMLMediaElement or AudioNode"],ERR_GRADIENT_INVALID_NAME=["ERR_GRADIENT_INVALID_NAME","Gradient name must be a non-empty string"],ERR_GRADIENT_NOT_AN_OBJECT=["ERR_GRADIENT_NOT_AN_OBJECT","Gradient options must be an object"],ERR_GRADIENT_MISSING_COLOR=["ERR_GRADIENT_MISSING_COLOR","Gradient colorStops must be a non-empty array"];class AudioMotionError extends Error{constructor(E,I){const[B,U]=E;super(U+(I!==void 0?`: ${I}`:"")),this.name="AudioMotionError",this.code=B}}const deprecate=(C,E)=>console.warn(`${C} is deprecated. Use ${E} instead.`),validateFromList=(C,E,I="toLowerCase")=>E[Math.max(0,E.indexOf((""+C)[I]()))],findY=(C,E,I,B,U)=>E+(B-E)*(U-C)/(I-C);Array.prototype.findLastIndex||(Array.prototype.findLastIndex=function(C){let E=this.length;for(;E-- >0;)if(C(this[E]))return E;return-1});class AudioMotionAnalyzer{constructor(E,I={}){this._ready=!1,this._aux={},this._canvasGradients=[],this._destroyed=!1,this._energy={val:0,peak:0,hold:0},this._flg={},this._fps=0,this._gradients={},this._last=0,this._outNodes=[],this._ownContext=!1,this._selectedGrads=[],this._sources=[];for(const[Z,_e]of GRADIENTS)this.registerGradient(Z,_e);this._container=E||document.body,this._defaultWidth=this._container.clientWidth||640,this._defaultHeight=this._container.clientHeight||270;let B;if(!(I.source&&(B=I.source.context))){if(!(B=I.audioCtx))try{B=new(window.AudioContext||window.webkitAudioContext),this._ownContext=!0}catch{throw new AudioMotionError(ERR_AUDIO_CONTEXT_FAIL)}}if(!B.createGain)throw new AudioMotionError(ERR_INVALID_AUDIO_CONTEXT);const U=this._analyzer=[B.createAnalyser(),B.createAnalyser()],V=this._splitter=B.createChannelSplitter(2),X=this._merger=B.createChannelMerger(2);this._input=B.createGain(),this._output=B.createGain(),I.source&&this.connectInput(I.source);for(const Z of[0,1])V.connect(U[Z],Z);X.connect(this._output),I.connectSpeakers!==!1&&this.connectOutput();const Y=document.createElement("canvas");Y.style="max-width: 100%;",this._ctx=Y.getContext("2d");for(const Z of["_scaleX","_scaleR"])this[Z]=document.createElement("canvas").getContext("2d");this._fsEl=I.fsElement||Y;const K=()=>{this._fsTimeout||(this._fsTimeout=window.setTimeout(()=>{this._fsChanging||(this._setCanvas(REASON_RESIZE),this._fsTimeout=0)},DEBOUNCE_TIMEOUT))};window.ResizeObserver&&(this._observer=new ResizeObserver(K),this._observer.observe(this._container)),this._controller=new AbortController;const J=this._controller.signal;window.addEventListener(EVENT_RESIZE,K,{signal:J}),Y.addEventListener(EVENT_FULLSCREENCHANGE,()=>{this._fsChanging=!0,this._fsTimeout&&window.clearTimeout(this._fsTimeout),this._setCanvas(REASON_FSCHANGE),this._fsTimeout=window.setTimeout(()=>{this._fsChanging=!1,this._fsTimeout=0},DEBOUNCE_TIMEOUT)},{signal:J});const xe=()=>{B.state=="suspended"&&B.resume(),window.removeEventListener(EVENT_CLICK,xe)};window.addEventListener(EVENT_CLICK,xe),document.addEventListener("visibilitychange",()=>{document.visibilityState!="hidden"&&(this._frames=0,this._time=performance.now())},{signal:J}),this._setProps(I,!0),this.useCanvas&&this._container.appendChild(Y),this._ready=!0,this._setCanvas(REASON_CREATE)}get alphaBars(){return this._alphaBars}set alphaBars(E){this._alphaBars=!!E,this._calcBars()}get ansiBands(){return this._ansiBands}set ansiBands(E){this._ansiBands=!!E,this._calcBars()}get barSpace(){return this._barSpace}set barSpace(E){this._barSpace=+E||0,this._calcBars()}get channelLayout(){return this._chLayout}set channelLayout(E){this._chLayout=validateFromList(E,[CHANNEL_SINGLE,CHANNEL_HORIZONTAL,CHANNEL_VERTICAL,CHANNEL_COMBINED]),this._input.disconnect(),this._input.connect(this._chLayout!=CHANNEL_SINGLE?this._splitter:this._analyzer[0]),this._analyzer[0].disconnect(),this._outNodes.length&&this._analyzer[0].connect(this._chLayout!=CHANNEL_SINGLE?this._merger:this._output),this._calcBars(),this._makeGrad()}get colorMode(){return this._colorMode}set colorMode(E){this._colorMode=validateFromList(E,[COLOR_GRADIENT,COLOR_BAR_INDEX,COLOR_BAR_LEVEL])}get fftSize(){return this._analyzer[0].fftSize}set fftSize(E){for(const B of[0,1])this._analyzer[B].fftSize=E;const I=this._analyzer[0].frequencyBinCount;this._fftData=[new Float32Array(I),new Float32Array(I)],this._calcBars()}get frequencyScale(){return this._frequencyScale}set frequencyScale(E){this._frequencyScale=validateFromList(E,[SCALE_LOG,SCALE_BARK,SCALE_MEL,SCALE_LINEAR]),this._calcBars()}get gradient(){return this._selectedGrads[0]}set gradient(E){this._setGradient(E)}get gradientLeft(){return this._selectedGrads[0]}set gradientLeft(E){this._setGradient(E,0)}get gradientRight(){return this._selectedGrads[1]}set gradientRight(E){this._setGradient(E,1)}get height(){return this._height}set height(E){this._height=E,this._setCanvas(REASON_USER)}get ledBars(){return this._showLeds}set ledBars(E){this._showLeds=!!E,this._calcBars()}get linearAmplitude(){return this._linearAmplitude}set linearAmplitude(E){this._linearAmplitude=!!E}get linearBoost(){return this._linearBoost}set linearBoost(E){this._linearBoost=E>=1?+E:1}get lineWidth(){return this._lineWidth}set lineWidth(E){this._lineWidth=+E||0}get loRes(){return this._loRes}set loRes(E){this._loRes=!!E,this._setCanvas(REASON_LORES)}get lumiBars(){return this._lumiBars}set lumiBars(E){this._lumiBars=!!E,this._calcBars(),this._makeGrad()}get maxDecibels(){return this._analyzer[0].maxDecibels}set maxDecibels(E){for(const I of[0,1])this._analyzer[I].maxDecibels=E}get maxFPS(){return this._maxFPS}set maxFPS(E){this._maxFPS=E<0?0:+E||0}get maxFreq(){return this._maxFreq}set maxFreq(E){if(E<1)throw new AudioMotionError(ERR_FREQUENCY_TOO_LOW);this._maxFreq=Math.min(E,this.audioCtx.sampleRate/2),this._calcBars()}get minDecibels(){return this._analyzer[0].minDecibels}set minDecibels(E){for(const I of[0,1])this._analyzer[I].minDecibels=E}get minFreq(){return this._minFreq}set minFreq(E){if(E<1)throw new AudioMotionError(ERR_FREQUENCY_TOO_LOW);this._minFreq=+E,this._calcBars()}get mirror(){return this._mirror}set mirror(E){this._mirror=Math.sign(E)|0,this._calcBars(),this._makeGrad()}get mode(){return this._mode}set mode(E){const I=E|0;if(I>=0&&I<=10&&I!=9)this._mode=I,this._calcBars(),this._makeGrad();else throw new AudioMotionError(ERR_INVALID_MODE,E)}get noteLabels(){return this._noteLabels}set noteLabels(E){this._noteLabels=!!E,this._createScales()}get outlineBars(){return this._outlineBars}set outlineBars(E){this._outlineBars=!!E,this._calcBars()}get peakLine(){return this._peakLine}set peakLine(E){this._peakLine=!!E}get radial(){return this._radial}set radial(E){this._radial=!!E,this._calcBars(),this._makeGrad()}get reflexRatio(){return this._reflexRatio}set reflexRatio(E){if(E=+E||0,E<0||E>=1)throw new AudioMotionError(ERR_REFLEX_OUT_OF_RANGE);this._reflexRatio=E,this._calcBars(),this._makeGrad()}get roundBars(){return this._roundBars}set roundBars(E){this._roundBars=!!E,this._calcBars()}get smoothing(){return this._analyzer[0].smoothingTimeConstant}set smoothing(E){for(const I of[0,1])this._analyzer[I].smoothingTimeConstant=E}get spinSpeed(){return this._spinSpeed}set spinSpeed(E){E=+E||0,(this._spinSpeed===void 0||E==0)&&(this._spinAngle=-HALF_PI),this._spinSpeed=E}get splitGradient(){return this._splitGradient}set splitGradient(E){this._splitGradient=!!E,this._makeGrad()}get stereo(){return deprecate("stereo","channelLayout"),this._chLayout!=CHANNEL_SINGLE}set stereo(E){deprecate("stereo","channelLayout"),this.channelLayout=E?CHANNEL_VERTICAL:CHANNEL_SINGLE}get trueLeds(){return this._trueLeds}set trueLeds(E){this._trueLeds=!!E}get volume(){return this._output.gain.value}set volume(E){this._output.gain.value=E}get weightingFilter(){return this._weightingFilter}set weightingFilter(E){this._weightingFilter=validateFromList(E,[FILTER_NONE,FILTER_A,FILTER_B,FILTER_C,FILTER_D,FILTER_468],"toUpperCase")}get width(){return this._width}set width(E){this._width=E,this._setCanvas(REASON_USER)}get audioCtx(){return this._input.context}get canvas(){return this._ctx.canvas}get canvasCtx(){return this._ctx}get connectedSources(){return this._sources}get connectedTo(){return this._outNodes}get fps(){return this._fps}get fsHeight(){return this._fsHeight}get fsWidth(){return this._fsWidth}get isAlphaBars(){return this._flg.isAlpha}get isBandsMode(){return this._flg.isBands}get isDestroyed(){return this._destroyed}get isFullscreen(){return this._fsEl&&(document.fullscreenElement||document.webkitFullscreenElement)===this._fsEl}get isLedBars(){return this._flg.isLeds}get isLumiBars(){return this._flg.isLumi}get isOctaveBands(){return this._flg.isOctaves}get isOn(){return!!this._runId}get isOutlineBars(){return this._flg.isOutline}get pixelRatio(){return this._pixelRatio}get isRoundBars(){return this._flg.isRound}static get version(){return VERSION}connectInput(E){const I=E instanceof HTMLMediaElement;if(!(I||E.connect))throw new AudioMotionError(ERR_INVALID_AUDIO_SOURCE);const B=I?this.audioCtx.createMediaElementSource(E):E;return this._sources.includes(B)||(B.connect(this._input),this._sources.push(B)),B}connectOutput(E=this.audioCtx.destination){if(!this._outNodes.includes(E)&&(this._output.connect(E),this._outNodes.push(E),this._outNodes.length==1))for(const I of[0,1])this._analyzer[I].connect(this._chLayout==CHANNEL_SINGLE&&!I?this._output:this._merger,0,I)}destroy(){if(!this._ready)return;const{audioCtx:E,canvas:I,_controller:B,_input:U,_merger:V,_observer:X,_ownContext:Y,_splitter:K}=this;this._destroyed=!0,this._ready=!1,this.stop(),B.abort(),X&&X.disconnect(),this.onCanvasResize=null,this.onCanvasDraw=null,this._fsEl=null,this.disconnectInput(),this.disconnectOutput(),U.disconnect(),K.disconnect(),V.disconnect(),Y&&E.close(),I.remove(),this._calcBars()}disconnectInput(E,I){E?Array.isArray(E)||(E=[E]):E=Array.from(this._sources);for(const B of E){const U=this._sources.indexOf(B);if(I&&B.mediaStream)for(const V of B.mediaStream.getAudioTracks())V.stop();U>=0&&(B.disconnect(this._input),this._sources.splice(U,1))}}disconnectOutput(E){if(!(E&&!this._outNodes.includes(E))&&(this._output.disconnect(E),this._outNodes=E?this._outNodes.filter(I=>I!==E):[],this._outNodes.length==0))for(const I of[0,1])this._analyzer[I].disconnect()}getBars(){return Array.from(this._bars,({posX:E,freq:I,freqLo:B,freqHi:U,hold:V,peak:X,value:Y})=>({posX:E,freq:I,freqLo:B,freqHi:U,hold:V,peak:X,value:Y}))}getEnergy(E,I){if(E===void 0)return this._energy.val;if(E!=+E){if(E=="peak")return this._energy.peak;const Y={bass:[20,250],lowMid:[250,500],mid:[500,2e3],highMid:[2e3,4e3],treble:[4e3,16e3]};if(!Y[E])return null;[E,I]=Y[E]}const B=this._freqToBin(E),U=I?this._freqToBin(I):B,V=this._chLayout==CHANNEL_SINGLE?1:2;let X=0;for(let Y=0;Y<V;Y++)for(let K=B;K<=U;K++)X+=this._normalizedB(this._fftData[Y][K]);return X/(U-B+1)/V}registerGradient(E,I){if(typeof E!="string"||E.trim().length==0)throw new AudioMotionError(ERR_GRADIENT_INVALID_NAME);if(typeof I!="object")throw new AudioMotionError(ERR_GRADIENT_NOT_AN_OBJECT);const{colorStops:B}=I;if(!Array.isArray(B)||!B.length)throw new AudioMotionError(ERR_GRADIENT_MISSING_COLOR);const U=B.length,V=X=>+X!=X||X<0||X>1;B.forEach((X,Y)=>{const K=Y/Math.max(1,U-1);typeof X!="object"?B[Y]={pos:K,color:X}:V(X.pos)&&(X.pos=K),V(X.level)&&(B[Y].level=1-Y/U)}),B.sort((X,Y)=>X.level<Y.level?1:X.level>Y.level?-1:0),B[0].level=1,this._gradients[E]={bgColor:I.bgColor||GRADIENT_DEFAULT_BGCOLOR,dir:I.dir,colorStops:B},this._selectedGrads.includes(E)&&this._makeGrad()}setCanvasSize(E,I){this._width=E,this._height=I,this._setCanvas(REASON_USER)}setFreqRange(E,I){if(E<1||I<1)throw new AudioMotionError(ERR_FREQUENCY_TOO_LOW);this._minFreq=Math.min(E,I),this.maxFreq=Math.max(E,I)}setLedParams(E){let I,B,U;E&&(I=E.maxLeds|0,B=+E.spaceV,U=+E.spaceH),this._ledParams=I>0&&B>0&&U>=0?[I,B,U]:void 0,this._calcBars()}setOptions(E){this._setProps(E)}setSensitivity(E,I){for(const B of[0,1])this._analyzer[B].minDecibels=Math.min(E,I),this._analyzer[B].maxDecibels=Math.max(E,I)}start(){this.toggleAnalyzer(!0)}stop(){this.toggleAnalyzer(!1)}toggleAnalyzer(E){const I=this.isOn;return E===void 0&&(E=!I),I&&!E?(cancelAnimationFrame(this._runId),this._runId=0):!I&&E&&!this._destroyed&&(this._frames=0,this._time=performance.now(),this._runId=requestAnimationFrame(B=>this._draw(B))),this.isOn}toggleFullscreen(){if(this.isFullscreen)document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen&&document.webkitExitFullscreen();else{const E=this._fsEl;if(!E)return;E.requestFullscreen?E.requestFullscreen():E.webkitRequestFullscreen&&E.webkitRequestFullscreen()}}_binToFreq(E){return E*this.audioCtx.sampleRate/this.fftSize||1}_calcBars(){const E=this._bars=[];if(!this._ready){this._flg={isAlpha:!1,isBands:!1,isLeds:!1,isLumi:!1,isOctaves:!1,isOutline:!1,isRound:!1,noLedGap:!1};return}const{_ansiBands:I,_barSpace:B,canvas:U,_chLayout:V,_maxFreq:X,_minFreq:Y,_mirror:K,_mode:J,_radial:xe,_reflexRatio:Z}=this,_e=U.width>>1,Se=U.height>>1,Ee=V==CHANNEL_VERTICAL&&!xe,Ae=V==CHANNEL_HORIZONTAL,Re=J%10!=0,Te=Re&&this._frequencyScale==SCALE_LOG,we=this._showLeds&&Re&&!xe,Pe=this._lumiBars&&Re&&!xe,Ie=this._alphaBars&&!Pe&&J!=MODE_GRAPH,Me=this._outlineBars&&Re&&!Pe&&!we,Oe=this._roundBars&&Re&&!Pe&&!we,Le=V!=CHANNEL_VERTICAL||Z>0&&!Pe,$e=U.height-(Ee&&!we?.5:0)>>Ee,Ve=$e*(Pe||xe?1:1-Z)|0,Xe=U.width-_e*(Ae||K!=0),Ue=Ee?U.height-$e*2:0,We=_e*(K==-1&&!Ae&&!xe),ze=Math.min(U.width,U.height)*(V==CHANNEL_VERTICAL?.375:.125)|0,He=Math.min(_e,Se),je=Ye=>E.push({...Ye,peak:[0,0],hold:[0],value:[0]}),Ne=Ye=>{const tt=this._freqToBin(Ye,"floor"),Ze=this._binToFreq(tt),it=this._binToFreq(tt+1),at=Math.log2(Ye/Ze)/Math.log2(it/Ze);return[tt,at]};let De,Fe,ke;if(Te){const Ye=(rt,nt,Qe)=>+rt.toPrecision(Qe?Math.max(nt,1+Math.log10(rt)|0):nt),tt=rt=>{const nt=[1,1.12,1.25,1.4,1.6,1.8,2,2.24,2.5,2.8,3.15,3.55,4,4.5,5,5.6,6.3,7.1,8,9,10],Qe=Math.log10(rt)|0,ot=rt/10**Qe;let lt=1;for(;lt<nt.length&&ot>nt[lt];)lt++;return ot-nt[lt-1]<nt[lt]-ot&&lt--,(nt[lt]*10**(Qe+5)|0)/1e5},Ze=[0,24,12,8,6,4,3,2,1][J],it=I?10**(3/(Ze*10)):2**(1/Ze),at=it**.5;let st=I?7.94328235/(Ze%2?1:at):C_1;do{let rt=st;const nt=Ye(rt/at,4,!0),Qe=Ye(rt*at,4,!0),[ot,lt]=Ne(nt),[ut,mt]=Ne(Qe);I?rt=Ze<4?tt(rt):Ye(rt,rt.toString()[0]<5?3:2):rt=Ye(rt,4,!0),rt>=Y&&je({posX:0,freq:rt,freqLo:nt,freqHi:Qe,binLo:ot,binHi:ut,ratioLo:lt,ratioHi:mt}),st*=it}while(st<=X);De=Xe/E.length,E.forEach((rt,nt)=>rt.posX=We+nt*De);const Je=E[0],et=E[E.length-1];Fe=this._freqScaling(Je.freqLo),ke=Xe/(this._freqScaling(et.freqHi)-Fe),Je.freqLo<Y&&(Je.freqLo=Y,[Je.binLo,Je.ratioLo]=Ne(Y)),et.freqHi>X&&(et.freqHi=X,[et.binHi,et.ratioHi]=Ne(X))}else if(Re){const Ye=[0,24,12,8,6,4,3,2,1][J]*10,tt=Ze=>{switch(this._frequencyScale){case SCALE_BARK:return 1960/(26.81/(Ze+.53)-1);case SCALE_MEL:return 700*(2**Ze-1);case SCALE_LINEAR:return Ze}};De=Xe/Ye,Fe=this._freqScaling(Y),ke=Xe/(this._freqScaling(X)-Fe);for(let Ze=0,it=0;Ze<Ye;Ze++,it+=De){const at=tt(Fe+it/ke),st=tt(Fe+(it+De/2)/ke),Je=tt(Fe+(it+De)/ke),[et,rt]=Ne(at),[nt,Qe]=Ne(Je);je({posX:We+it,freq:st,freqLo:at,freqHi:Je,binLo:et,binHi:nt,ratioLo:rt,ratioHi:Qe})}}else{De=1,Fe=this._freqScaling(Y),ke=Xe/(this._freqScaling(X)-Fe);const Ye=this._freqToBin(Y,"floor"),tt=this._freqToBin(X);let Ze=-999;for(let it=Ye;it<=tt;it++){const at=this._binToFreq(it),st=We+Math.round(ke*(this._freqScaling(at)-Fe));if(st>Ze)je({posX:st,freq:at,freqLo:at,freqHi:at,binLo:it,binHi:it,ratioLo:0,ratioHi:0}),Ze=st;else if(E.length){const Je=E[E.length-1];Je.binHi=it,Je.freqHi=at,Je.freq=(Je.freqLo*at)**.5}}}let Ge=0,Be=0;if(we){const Ye=this._pixelRatio/(window.devicePixelRatio>1&&window.screen.height<=540?2:1),tt=[[],[128,3,.45],[128,4,.225],[96,6,.225],[80,6,.225],[80,6,.125],[64,6,.125],[48,8,.125],[24,16,.125]],Ze=this._ledParams,[it,at,st]=Ze||tt[J];let Je,et=Ve;if(Ze){const rt=2*Ye;let nt;Je=it+1;do Je--,nt=et/Je/(1+at),Be=nt*at;while((nt<rt||Be<rt)&&Je>1)}else{const rt=540/at;Be=Math.min(at*Ye,Math.max(2,et/rt+.1|0))}Le&&(et+=Be),Ze||(Je=Math.min(it,et/(Be*2)|0)),Ge=st>=1?st:De*st,this._leds=[Je,Ge,Be,et/Je-Be]}const qe=Math.min(De-1,B*(B>0&&B<1?De:1));Re&&(De-=Math.max(we?Ge:0,qe)),E.forEach((Ye,tt)=>{let Ze=Ye.posX,it=De;Re&&(B==0&&!we?(Ze|=0,it|=0,tt>0&&Ze>E[tt-1].posX+E[tt-1].width&&(Ze--,it++)):Ze+=Math.max(we?Ge:0,qe)/2,Ye.posX=Ze),Ye.barCenter=Ze+(De==1?0:it/2),Ye.width=it});const Ke=[];for(const Ye of[0,1]){const tt=V==CHANNEL_VERTICAL?($e+Ue)*Ye:0,Ze=tt+$e,it=tt+Ve-(!we||Le?0:Be);Ke.push({channelTop:tt,channelBottom:Ze,analyzerBottom:it})}this._aux={analyzerHeight:Ve,analyzerWidth:Xe,centerX:_e,centerY:Se,channelCoords:Ke,channelHeight:$e,channelGap:Ue,initialX:We,innerRadius:ze,outerRadius:He,scaleMin:Fe,unitWidth:ke},this._flg={isAlpha:Ie,isBands:Re,isLeds:we,isLumi:Pe,isOctaves:Te,isOutline:Me,isRound:Oe,noLedGap:Le},this._createScales()}_createScales(){if(!this._ready)return;const{analyzerWidth:E,initialX:I,innerRadius:B,scaleMin:U,unitWidth:V}=this._aux,{canvas:X,_frequencyScale:Y,_mirror:K,_noteLabels:J,_radial:xe,_scaleX:Z,_scaleR:_e}=this,Se=Z.canvas,Ee=_e.canvas,Ae=[],Re=this._chLayout==CHANNEL_HORIZONTAL,Te=this._chLayout==CHANNEL_VERTICAL,we=["C",,"D",,"E","F",,"G",,"A",,"B"],Pe=Math.min(X.width,X.height)/34|0,Ie=Se.height>>1,Me=Pe>>1,Oe=Ie*(J?.7:1.5),Le=Me*(J?1:2),$e=2**(1/12);if(!J&&(this._ansiBands||Y!=SCALE_LOG))Ae.push(16,31.5,63,125,250,500,1e3,2e3,4e3),Y==SCALE_LINEAR?Ae.push(6e3,8e3,1e4,12e3,14e3,16e3,18e3,2e4,22e3):Ae.push(8e3,16e3);else{let He=C_1;for(let je=-1;je<11;je++)for(let Ne=0;Ne<12;Ne++){if(He>=this._minFreq&&He<=this._maxFreq){const De=we[Ne],Fe=De=="C";(De&&J&&!K&&!Re||Fe)&&Ae.push(J?[He,De+(Fe?je:"")]:He)}He*=$e}}Ee.width=Ee.height=(B<<1)+Te*Pe;const Ve=Ee.width>>1,Xe=Ve-Pe*.7,Ue=(He,je)=>{const Ne=TAU*(He/X.width),De=Ne-HALF_PI,Fe=Xe*Math.cos(De),ke=Xe*Math.sin(De);_e.save(),_e.translate(Ve+Fe,Ve+ke),_e.rotate(Ne),_e.fillText(je,0,0),_e.restore()};Se.width|=0,Z.fillStyle=_e.strokeStyle=SCALEX_BACKGROUND_COLOR,Z.fillRect(0,0,Se.width,Se.height),_e.arc(Ve,Ve,Ve-Pe/2,0,TAU),_e.lineWidth=Pe,_e.stroke(),Z.fillStyle=_e.fillStyle=SCALEX_LABEL_COLOR,Z.font=`${Ie}px ${FONT_FAMILY}`,_e.font=`${Me}px ${FONT_FAMILY}`,Z.textAlign=_e.textAlign="center";let We=-Oe/4,ze=-Le;for(const He of Ae){const[je,Ne]=Array.isArray(He)?He:[He,He<1e3?He|0:`${(He/100|0)/10}k`],De=V*(this._freqScaling(je)-U),Fe=Se.height*.75,ke=Ne[0]=="C",Ge=Ie*(J&&!K&&!Re?ke?1.2:.6:3);if(Z.fillStyle=_e.fillStyle=ke&&!K&&!Re?SCALEX_HIGHLIGHT_COLOR:SCALEX_LABEL_COLOR,J){const Be=Y==SCALE_LOG,qe=Y==SCALE_LINEAR;let Ke=["C"];if((Be||je>2e3||!qe&&je>250||(!xe||Te)&&(!qe&&je>125||je>1e3))&&Ke.push("G"),(Be||je>4e3||!qe&&je>500||(!xe||Te)&&(!qe&&je>250||je>2e3))&&Ke.push("E"),(qe&&je>4e3||(!xe||Te)&&(Be||je>2e3||!qe&&je>500))&&Ke.push("D","F","A","B"),!Ke.includes(Ne[0]))continue}De>=We+Oe/2&&De<=E&&(Z.fillText(Ne,Re&&K==-1?E-De:I+De,Fe,Ge),(Re||K&&(De>Oe||K==1))&&Z.fillText(Ne,Re&&K!=1?E+De:(I||X.width)-De,Fe,Ge),We=De+Math.min(Ge,Z.measureText(Ne).width)/2),De>=ze+Le&&De<E-Le&&(Ue(Re&&K==1?E-De:De,Ne),(Re||K&&(De>Le||K==1))&&Ue(Re&&K!=-1?E+De:-De,Ne),ze=De)}}_draw(E){this._runId=requestAnimationFrame(ht=>this._draw(ht));const I=E-this._time,B=E-this._last,U=this._maxFPS?975/this._maxFPS:0;if(B<U)return;this._last=E-(U?B%U:0),this._frames++,I>=1e3&&(this._fps=this._frames/I*1e3,this._frames=0,this._time=E);const{isAlpha:V,isBands:X,isLeds:Y,isLumi:K,isOctaves:J,isOutline:xe,isRound:Z,noLedGap:_e}=this._flg,{analyzerHeight:Se,centerX:Ee,centerY:Ae,channelCoords:Re,channelHeight:Te,channelGap:we,initialX:Pe,innerRadius:Ie,outerRadius:Me}=this._aux,{_bars:Oe,canvas:Le,_canvasGradients:$e,_chLayout:Ve,_colorMode:Xe,_ctx:Ue,_energy:We,fillAlpha:ze,_fps:He,_linearAmplitude:je,_lineWidth:Ne,maxDecibels:De,minDecibels:Fe,_mirror:ke,_mode:Ge,overlay:Be,_radial:qe,showBgColor:Ke,showPeaks:Ye,useCanvas:tt,_weightingFilter:Ze}=this,it=this._scaleX.canvas,at=this._scaleR.canvas,st=He>>1,Je=Ve==CHANNEL_COMBINED,et=Ve==CHANNEL_HORIZONTAL,rt=Ve==CHANNEL_VERTICAL,nt=Ve==CHANNEL_SINGLE,Qe=Y&&this._trueLeds&&Xe==COLOR_GRADIENT,ot=qe?Le.width:this._aux.analyzerWidth,lt=Pe+ot,ut=Ye&&this._peakLine&&Ge==MODE_GRAPH,mt=qe?Me-Ie:Se,[_t,dt,vt,pt]=this._leds||[];We.val>0&&(this._spinAngle+=this._spinSpeed*TAU/(60*He));const bt=ht=>{if(this._reflexRatio>0&&!K&&!qe){let yt,Nt;this.reflexFit||rt?(yt=rt&&ht==0?Te+we:0,Nt=Te-Se):(yt=Le.height-Se*2,Nt=Se),Ue.save(),Ue.globalAlpha=this.reflexAlpha,this.reflexBright!=1&&(Ue.filter=`brightness(${this.reflexBright})`),Ue.setTransform(1,0,0,-1,0,Le.height),Ue.drawImage(Le,0,Re[ht].channelTop,Le.width,Se,0,yt,Le.width,Nt),Ue.restore()}},St=()=>{this.showScaleX&&(qe?(Ue.save(),Ue.translate(Ee,Ae),this._spinSpeed&&Ue.rotate(this._spinAngle+HALF_PI),Ue.drawImage(at,-at.width>>1,-at.width>>1),Ue.restore()):Ue.drawImage(it,0,Le.height-it.height))},It=ht=>{const yt=ht**2,Nt=424.36,At=11599.29,Jt=25122.25,Bt=544496.41,Dt=148693636,zt=Ht=>20*Math.log10(Ht);switch(Ze){case FILTER_A:const Ht=Dt*yt**2/((yt+Nt)*Math.sqrt((yt+At)*(yt+Bt))*(yt+Dt));return 2+zt(Ht);case FILTER_B:const jt=Dt*yt*ht/((yt+Nt)*Math.sqrt(yt+Jt)*(yt+Dt));return .17+zt(jt);case FILTER_C:const rr=Dt*yt/((yt+Nt)*(yt+Dt));return .06+zt(rr);case FILTER_D:const Qt=((103791848e-2-yt)**2+108076816e-2*yt)/((9837328-yt)**2+11723776*yt),ir=ht/68966888496476e-18*Math.sqrt(Qt/((yt+79919.29)*(yt+1345600)));return zt(ir);case FILTER_468:const er=-4737338981378384e-39*ht**6+2043828333606125e-30*ht**4-1363894795463638e-22*yt+1,Xt=1306612257412824e-34*ht**5-2118150887518656e-26*ht**3+.0005559488023498642*ht,Mt=.0001246332637532143*ht/Math.hypot(er,Xt);return 18.2+zt(Mt)}return 0},Pt=(ht,yt,Nt)=>{Ue.beginPath(),Ue.moveTo(ht,yt),Ue.lineTo(ht,Nt),Ue.stroke()},Ot=ht=>{if(ht&&Ne){const yt=Ue.globalAlpha;Ue.globalAlpha=1,Ue.stroke(),Ue.globalAlpha=yt}},Ft=ht=>Math.max(0,(ht*_t|0)*(pt+vt)-vt),qt=ht=>{We.val=ht,We.peak>0&&(We.hold--,We.hold<0&&(We.peak+=We.hold/(st*st/2))),ht>=We.peak&&(We.peak=ht,We.hold=st)};Be&&Ue.clearRect(0,0,Le.width,Le.height);let Vt=0;const ar=Oe.length,or=nt?1:2;for(let ht=0;ht<or;ht++){const{channelTop:yt,channelBottom:Nt,analyzerBottom:At}=Re[ht],Jt=this._gradients[this._selectedGrads[ht]],Bt=Jt.colorStops,Dt=Bt.length,zt=!Ke||Y&&!Be?"#000":Jt.bgColor,Ht=rt&&qe&&ht?-1:1,jt=!ht&&ke==-1||ht&&ke==1,rr=!et||ht&&ke!=1?0:ot>>(ht||!jt),Qt=et&&jt?-1:1,ir=()=>{const ct=it.height,gt=ct>>1,ft=je?100:De,xt=je?0:Fe,Tt=je?20:5,Rt=Se/(ft-xt),$t=ke!=-1&&(!et||ht==0||ke==1),Gt=ke!=1&&(!et||ht!=ke);Ue.save(),Ue.fillStyle=SCALEY_LABEL_COLOR,Ue.font=`${gt}px ${FONT_FAMILY}`,Ue.textAlign="right",Ue.lineWidth=1;for(let Ut=ft;Ut>xt;Ut-=Tt){const Yt=yt+(ft-Ut)*Rt,Ct=Ut%2==0|0;if(Ct){const wt=Yt+gt*(Yt==yt?.8:.35);$t&&Ue.fillText(Ut,ct*.85,wt),Gt&&Ue.fillText(Ut,(et?ot:Le.width)-ct*.1,wt),Ue.strokeStyle=SCALEY_LABEL_COLOR,Ue.setLineDash([2,4]),Ue.lineDashOffset=0}else Ue.strokeStyle=SCALEY_MIDLINE_COLOR,Ue.setLineDash([2,8]),Ue.lineDashOffset=1;Ue.beginPath(),Ue.moveTo(Pe+ct*Ct*$t,~~Yt+.5),Ue.lineTo(lt-ct*Ct*Gt,~~Yt+.5),Ue.stroke()}Ue.restore()},er=(ct,gt)=>{const ft=Lt[ct]+(ct<Lt.length-1?(Lt[ct+1]-Lt[ct])*gt:0);return isNaN(ft)?-1/0:ft},Xt=(ct,gt=Qt)=>gt*TAU*((ct+rr)/Le.width)+this._spinAngle,Mt=(ct,gt,ft)=>{const xt=Ie+gt*Ht,Tt=Xt(ct,ft);return[Ee+xt*Math.cos(Tt),Ae+xt*Math.sin(Tt)]},sr=(ct,gt,ft,xt,Tt)=>{Ue.beginPath();for(const Rt of ke&&!et?[1,-1]:[Qt]){const[$t,Gt]=Z?[Xt(ct,Rt),Xt(ct+ft,Rt)]:[];Ue.moveTo(...Mt(ct,gt,Rt)),Ue.lineTo(...Mt(ct,gt+xt,Rt)),Z?Ue.arc(Ee,Ae,Ie+(gt+xt)*Ht,$t,Gt,Rt!=1):Ue.lineTo(...Mt(ct+ft,gt+xt,Rt)),Ue.lineTo(...Mt(ct+ft,gt,Rt)),Z&&!Tt&&Ue.arc(Ee,Ae,Ie+gt*Ht,Gt,$t,Rt==1)}Ot(Tt),Ue.fill()},nr=(ct=0,gt=0)=>{let ft;if(Xe==COLOR_GRADIENT&&!Qe||Ge==MODE_GRAPH)ft=$e[ht];else{const xt=Xe==COLOR_BAR_INDEX?gt%Dt:Bt.findLastIndex(Tt=>Y?Ft(ct)<=Ft(Tt.level):ct<=Tt.level);ft=Bt[xt].color}Ue.fillStyle=Ue.strokeStyle=ft};if(tt){if(et&&!qe){const ct=ot*(ht+jt),gt=jt?-1:1;Ue.setTransform(gt,0,0,1,ct,0)}if((!Be||Ke)&&(Be&&(Ue.globalAlpha=this.bgAlpha),Ue.fillStyle=zt,(ht==0||!qe&&!Je)&&Ue.fillRect(Pe,yt-we,ot,(Be&&this.reflexAlpha==1?Se:Te)+we),Ue.globalAlpha=1),this.showScaleY&&!K&&!qe&&(ht==0||!Je)&&ir(),Y?(Ue.setLineDash([pt,vt]),Ue.lineWidth=Oe[0].width):Ue.lineWidth=xe?Math.min(Ne,Oe[0].width/2):Ne,Ue.save(),!qe){const ct=new Path2D;ct.rect(0,yt,Le.width,Se),Ue.clip(ct)}}let Lt=this._fftData[ht];this._analyzer[ht].getFloatFrequencyData(Lt),Ze&&(Lt=Lt.map((ct,gt)=>ct+It(this._binToFreq(gt)))),Ue.beginPath();let Zt=[];for(let ct=0;ct<ar;ct++){const gt=Oe[ct],{posX:ft,barCenter:xt,width:Tt,freq:Rt,binLo:$t,binHi:Gt,ratioLo:Ut,ratioHi:Yt}=gt;let Ct=Math.max(er($t,Ut),er(Gt,Yt));for(let Et=$t+1;Et<Gt;Et++)Lt[Et]>Ct&&(Ct=Lt[Et]);if(Ct=this._normalizedB(Ct),gt.value[ht]=Ct,Vt+=Ct,gt.peak[ht]>0&&(gt.hold[ht]--,gt.hold[ht]<0&&(gt.peak[ht]+=gt.hold[ht]/(st*st/2))),Ct>=gt.peak[ht]&&(gt.peak[ht]=Ct,gt.hold[ht]=st),!tt)continue;K||V?Ue.globalAlpha=Ct:xe&&(Ue.globalAlpha=ze),nr(Ct,ct);const wt=K?mt:Y?Ft(Ct):Ct*mt|0;if(Ge==MODE_GRAPH){const Et=ct?0:(this._normalizedB(Lt[Oe[1].binLo])*mt+wt)/2;if(qe){if(ct==0&&(et&&Ue.moveTo(...Mt(0,0)),Ue.lineTo(...Mt(0,ft<0?Et:wt))),ft>=0){const kt=[ft,wt];Ue.lineTo(...Mt(...kt)),Zt.push(kt)}}else{if(ct==0)if(ke==-1&&!et)Ue.moveTo(Pe,At-(ft<Pe?Et:wt));else{const kt=$t?this._normalizedB(Lt[$t-1])*mt:wt;Ue.moveTo(Pe-Ne,At-kt)}(et||ke!=-1||ft>=Pe)&&Ue.lineTo(ft,At-wt)}}else if(Y){if(Ke&&!Be&&(ht==0||!Je)){const Et=Ue.globalAlpha;Ue.strokeStyle=LEDS_UNLIT_COLOR,Ue.globalAlpha=1,Pt(xt,yt,At),Ue.strokeStyle=Ue.fillStyle,Ue.globalAlpha=Et}if(Qe){const Et=K?0:Bt.findLastIndex(Wt=>Ft(Ct)<=Ft(Wt.level));let kt=At;for(let Wt=Dt-1;Wt>=Et;Wt--){Ue.strokeStyle=Bt[Wt].color;let lr=At-(Wt==Et?wt:Ft(Bt[Wt].level));Pt(xt,kt,lr),kt=lr-vt}}else Pt(xt,At,At-wt)}else if(ft>=Pe)if(qe)sr(ft,0,Tt,wt,xe);else if(Z){const Et=Tt/2,kt=At+Et;Ue.beginPath(),Ue.moveTo(ft,kt),Ue.lineTo(ft,kt-wt),Ue.arc(xt,kt-wt,Et,PI,TAU),Ue.lineTo(ft+Tt,kt),Ot(xe),Ue.fill()}else{const Et=xe?Ue.lineWidth:0;Ue.beginPath(),Ue.rect(ft,At+Et,Tt,-wt-Et),Ot(xe),Ue.fill()}const Kt=gt.peak[ht];if(Kt>0&&Ye&&!ut&&!K&&ft>=Pe&&ft<lt)if(xe&&Ne>0?Ue.globalAlpha=1:V&&(Ue.globalAlpha=Kt),(Xe==COLOR_BAR_LEVEL||Qe)&&nr(Kt),Y){const Et=Ft(Kt);Et>=vt&&Ue.fillRect(ft,At-Et,Tt,pt)}else qe?Ge!=MODE_GRAPH&&sr(ft,Kt*mt,Tt,-2):Ue.fillRect(ft,At-Kt*mt,Tt,2)}if(tt){if(Ue.globalAlpha=1,Ge==MODE_GRAPH){if(nr(),qe&&!et){if(ke){let ct;for(;ct=Zt.pop();)Ue.lineTo(...Mt(...ct,-1))}Ue.closePath()}if(Ne>0&&Ue.stroke(),ze>0){if(qe){const ct=et?Xt(ot>>1):0,gt=et?Xt(ot):TAU;Ue.moveTo(...Mt(et?ot>>1:0,0)),Ue.arc(Ee,Ae,Ie,ct,gt,et?!jt:!0)}else Ue.lineTo(lt,At),Ue.lineTo(Pe,At);Ue.globalAlpha=ze,Ue.fill(),Ue.globalAlpha=1}if((ut||qe&&Ye)&&(Zt=[],Ue.beginPath(),Oe.forEach((ct,gt)=>{let ft=ct.posX,xt=ct.peak[ht],Tt=gt?"lineTo":"moveTo";if(qe&&ft<0){const Rt=Oe[gt+1];xt=findY(ft,xt,Rt.posX,Rt.peak[ht],0),ft=0}xt*=mt,ut?(Ue[Tt](...qe?Mt(ft,xt):[ft,At-xt]),qe&&ke&&!et&&Zt.push([ft,xt])):xt>0&&sr(ft,xt,1,-2)}),ut)){let ct;for(;ct=Zt.pop();)Ue.lineTo(...Mt(...ct,-1));Ue.lineWidth=1,Ue.stroke()}}Ue.restore(),et&&!qe&&Ue.setTransform(1,0,0,1,0,0),(!et&&!Je||ht)&&bt(ht)}}if(qt(Vt/(ar<<or-1)),tt&&(ke&&!qe&&!et&&(Ue.setTransform(-1,0,0,1,Le.width-Pe,0),Ue.drawImage(Le,Pe,0,Ee,Le.height,0,0,Ee,Le.height),Ue.setTransform(1,0,0,1,0,0)),Ue.setLineDash([]),St()),this.showFPS){const ht=it.height;Ue.font=`bold ${ht}px ${FONT_FAMILY}`,Ue.fillStyle=FPS_COLOR,Ue.textAlign="right",Ue.fillText(Math.round(He),Le.width-ht,ht*2)}this.onCanvasDraw&&(Ue.save(),Ue.fillStyle=Ue.strokeStyle=$e[0],this.onCanvasDraw(this,{timestamp:E,_canvasGradients:$e}),Ue.restore())}_freqScaling(E){switch(this._frequencyScale){case SCALE_LOG:return Math.log2(E);case SCALE_BARK:return 26.81*E/(1960+E)-.53;case SCALE_MEL:return Math.log2(1+E/700);case SCALE_LINEAR:return E}}_freqToBin(E,I="round"){const B=this._analyzer[0].frequencyBinCount-1,U=Math[I](E*this.fftSize/this.audioCtx.sampleRate);return U<B?U:B}_makeGrad(){if(!this._ready)return;const{canvas:E,_ctx:I,_radial:B,_reflexRatio:U}=this,{analyzerWidth:V,centerX:X,centerY:Y,initialX:K,innerRadius:J,outerRadius:xe}=this._aux,{isLumi:Z}=this._flg,_e=this._chLayout==CHANNEL_VERTICAL,Se=1-U,Ee=Z?E.height:E.height*(1-U*!_e)|0;for(const Ae of[0,1]){const Re=this._gradients[this._selectedGrads[Ae]],Te=Re.colorStops,we=Re.dir=="h";let Pe;if(B?Pe=I.createRadialGradient(X,Y,xe,X,Y,J-(xe-J)*_e):Pe=I.createLinearGradient(...we?[K,0,K+V,0]:[0,0,0,Ee]),Te){const Ie=_e&&!this._splitGradient&&(!we||B);for(let Me=0;Me<1+Ie;Me++){const Oe=Te.length-1;Te.forEach((Le,$e)=>{let Ve=Le.pos;if(Ie&&(Ve/=2),_e&&!Z&&!B&&!we&&(Ve*=Se,!Ie&&Ve>.5*Se&&(Ve+=.5*U)),Me==1)if(B||Z){const Xe=Oe-$e;Le=Te[Xe],Ve=1-Le.pos/2}else $e==0&&Ve>0&&Pe.addColorStop(.5,Le.color),Ve+=.5;Pe.addColorStop(Ve,Le.color),_e&&$e==Oe&&Ve<.5&&Pe.addColorStop(.5,Le.color)})}}this._canvasGradients[Ae]=Pe}}_normalizedB(E){const I=this._linearAmplitude,B=I?1/this._linearBoost:1,U=(K,J,xe)=>K<=J?J:K>=xe?xe:K,V=K=>10**(K/20);let X=this.maxDecibels,Y=this.minDecibels;return I&&(X=V(X),Y=V(Y),E=V(E)**B),U((E-Y)/(X-Y)**B,0,1)}_setCanvas(E){if(!this._ready)return;const{canvas:I,_ctx:B}=this,U=this._scaleX.canvas,V=window.devicePixelRatio/(this._loRes+1);let X=window.screen.width*V,Y=window.screen.height*V;Math.abs(window.orientation)==90&&X<Y&&([X,Y]=[Y,X]);const K=this.isFullscreen,J=K&&this._fsEl==I,xe=J?X:(this._width||this._container.clientWidth||this._defaultWidth)*V|0,Z=J?Y:(this._height||this._container.clientHeight||this._defaultHeight)*V|0;this._pixelRatio=V,this._fsWidth=X,this._fsHeight=Y,!(I.width==xe&&I.height==Z)&&(I.width=xe,I.height=Z,this.overlay||(B.fillStyle="#000",B.fillRect(0,0,xe,Z)),B.lineJoin="bevel",U.width=xe,U.height=Math.max(20*V,Math.min(xe,Z)/32|0),this._calcBars(),this._makeGrad(),this._fsStatus!==void 0&&this._fsStatus!==K&&(E=REASON_FSCHANGE),this._fsStatus=K,this.onCanvasResize&&this.onCanvasResize(E,this))}_setGradient(E,I){if(!this._gradients.hasOwnProperty(E))throw new AudioMotionError(ERR_UNKNOWN_GRADIENT,E);[0,1].includes(I)||(this._selectedGrads[1]=E,I=0),this._selectedGrads[I]=E,this._makeGrad()}_setProps(E,I){const B={alphaBars:!1,ansiBands:!1,barSpace:.1,bgAlpha:.7,channelLayout:CHANNEL_SINGLE,colorMode:COLOR_GRADIENT,fftSize:8192,fillAlpha:1,frequencyScale:SCALE_LOG,gradient:GRADIENTS[0][0],ledBars:!1,linearAmplitude:!1,linearBoost:1,lineWidth:0,loRes:!1,lumiBars:!1,maxDecibels:-25,maxFPS:0,maxFreq:22e3,minDecibels:-85,minFreq:20,mirror:0,mode:0,noteLabels:!1,outlineBars:!1,overlay:!1,peakLine:!1,radial:!1,reflexAlpha:.15,reflexBright:1,reflexFit:!0,reflexRatio:0,roundBars:!1,showBgColor:!0,showFPS:!1,showPeaks:!0,showScaleX:!0,showScaleY:!1,smoothing:.5,spinSpeed:0,splitGradient:!1,start:!0,trueLeds:!1,useCanvas:!0,volume:1,weightingFilter:FILTER_NONE},U=["onCanvasDraw","onCanvasResize"],V=["gradientLeft","gradientRight","height","width","stereo"],X=Object.keys(B).filter(Y=>Y!="start").concat(U,V);(I||E===void 0)&&(E={...B,...E});for(const Y of Object.keys(E))U.includes(Y)&&typeof E[Y]!="function"?this[Y]=void 0:X.includes(Y)&&(this[Y]=E[Y]);E.start!==void 0&&this.toggleAnalyzer(E.start)}}const waveConfig={[Waveforms.NONE]:{mode:2},[Waveforms.ROUNDBARS]:{mode:2,alphaBars:!1,ansiBands:!1,barSpace:.25,channelLayout:"single",colorMode:"bar-level",frequencyScale:"log",gradient:"prism",ledBars:!1,linearAmplitude:!0,linearBoost:1.6,lumiBars:!1,maxFreq:16e3,minFreq:30,mirror:0,radial:!1,reflexRatio:.3,reflexAlpha:1,roundBars:!0,showPeaks:!1,showScaleX:!1,showScaleY:!1,smoothing:.7,weightingFilter:"D"},[Waveforms.LED]:{mode:3,barSpace:.6,ledBars:!0,showScaleX:!1,showScaleY:!1},[Waveforms.RADIAL_SPECTRUM]:{mode:3,barSpace:.25,bgAlpha:.5,fillAlpha:.5,gradient:"prism",ledBars:!1,linearAmplitude:!0,linearBoost:1.8,lineWidth:1.5,maxDecibels:-30,maxFreq:16e3,radial:!0,showBgColor:!0,showPeaks:!0,spinSpeed:2,outlineBars:!0,showScaleX:!1,showScaleY:!1,reflexFit:!0},[Waveforms.LUMI_BARS]:{mode:3,barSpace:.6,lumiBars:!0,reflexRatio:.5,fillAlpha:.3,frequencyScale:"bark",gradientLeft:"steelblue",gradientRight:"orangered",showScaleX:!1,showScaleY:!1},[Waveforms.EQUALIZER]:{mode:2,gradient:"rainbow",lineWidth:1.5,fillAlpha:.5,showPeaks:!1,showScaleX:!1,showScaleY:!1}},initalTransforms={x:0,y:0,width:0,height:0,anchor:.5,maxX:0,maxY:0,scale:1,rotation:0,waveform:Waveforms.NONE},useAudioVisualizer=C=>{const E=React__namespace.useRef(),I=React.useRef(document.body),B=React__namespace.useRef(),[U,V]=React__namespace.useState(""),{uniqueId:X,src:Y,transformation:K=initalTransforms}=C,{waveform:J=Waveforms.NONE,width:xe=300,height:Z=300}=K,_e=async Se=>{try{return await fetch(Se,{mode:"cors",referrerPolicy:"no-referrer-when-downgrade"})}catch(Ee){const Ae=Ee;throw Ae.message.includes("Failed to fetch")||Ae.message.includes("Load failed")||Ae.message.includes("NetworkError when attempting to fetch resource")?new TypeError(`Failed to read from ${Se}: ${Ae.message}. Does the resource support CORS?`):Ee}};return React__namespace.useEffect(()=>()=>{isEmpty$1(U)||URL.revokeObjectURL(U),B.current},[U]),React__namespace.useEffect(()=>{const Se=waveConfig[J]||{};if(console.log("waveFormCOnfig",Se),E.current&&(I.current.removeChild(E.current),E.current=void 0),J!==Waveforms.NONE){E.current=document.createElement("div"),E.current.setAttribute("id",`${X}${J}audioContainer`),I.current.appendChild(E.current);const Ae=new AudioMotionAnalyzer(E.current,{audioCtx:Howler.ctx,height:Z,width:xe,...Se});B.current=Ae}return(async()=>{if(!isEmpty$1(Y)){const Re=await(await _e(Y)).arrayBuffer(),Te=new Blob([Re]),we=URL.createObjectURL(Te);V(we),E.current&&(E.current.style.display="none")}})(),()=>{E.current&&I.current&&(console.log("clearing the canvas",E.current),I.current.removeChild(E.current),E.current=void 0)}},[J,Y,X,xe,Z]),{audioMotionRef:B,blobUrl:U,canvasRef:E}},PixiAudioSprite=React__namespace.forwardRef((C,E)=>{const I={isPlaying:!1,progress:0,speed:1,mute:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1},[,B]=React__namespace.useState(!1),[U,V]=React__namespace.useState(!1),X=React.useRef(null),Y=React.useRef(I),K=React.useRef(null),J=React__namespace.useRef(null),xe=React.useRef(null),Z=React__namespace.useRef(),{tl:_e,dragModeRef:Se}=React.useContext(GsapPixieContext),{uniqueId:Ee,src:Ae,startAt:Re,endAt:Te,mute:we,speed:Pe,audioStartAt:Ie,audioEndAt:Me,visible:Oe=!1,transformation:Le}=C,{width:$e=300,height:Ve=300,x:Xe=100,y:Ue=100,waveform:We=Waveforms.NONE}=Le||{},{audioMotionRef:ze,blobUrl:He,canvasRef:je}=useAudioVisualizer({uniqueId:Ee,src:Ae,transformation:Le});useCustomEventListener(Events.PAUSE,()=>{var Ge;X.current&&J.current&&((Ge=J.current)==null||Ge.pause(),Y.current.isPlaying=!1)}),useCustomEventListener(Events.COMPLETE,()=>{Ie>0&&J.current&&J.current.seek(Ie)}),useCustomEventListener(Events.SCRUBBER_CLICKED,()=>{var Ge;X.current&&J.current&&((Ge=J.current)==null||Ge.pause(),Y.current.isPlaying=!1)}),React__namespace.useEffect(()=>{J.current&&(Se.current?(J.current.pause(),Y.current.isPlaying=!1,Y.current.isDragging=!0):Y.current.isDragging=!1)},[Se]);const Ne=(Ge,Be)=>{_e.current&&_e.current.isActive()&&K.current&&K.current.isActive()&&!Se.current&&J.current&&(console.log("gsap on start 0020",Ee,Ge,Be),J.current.play(),Y.current.isPlaying=!0)},De=()=>{var Ge;X.current&&((Ge=J.current)==null||Ge.stop(),Y.current.isPlaying=!1,Y.current.completed=!0)},Fe=Ge=>{var qe,Ke;const Be=Ge+((qe=K.current)==null?void 0:qe.time());J.current&&Se.current?(J.current.seek(Be),J.current.pause(),Y.current.isPlaying=!1):X.current&&!Y.current.isPlaying&&((Ke=_e.current)!=null&&Ke.isActive())&&J.current&&(J.current.seek(Be),J.current.play(),Y.current.isPlaying=!0),Z.current&&Z.current.update()},ke=()=>{};return React.useEffect(()=>{let Ge=gsap$2.context(()=>{});if(X.current&&_e.current){const Be={duration:Number(Me)-Number(Ie),onStart:Ne,onComplete:De,onStartParams:[Ie,Me],onCompleteParams:[],onInterrupt:ke,onUpdate:Fe,onUpdateParams:[Ie,Me],id:Ee};Ge=gsap$2.context(()=>{K.current=gsap$2.from(X.current,Be,Ie),_e.current.to(X.current,{alpha:1,duration:.01},Re).to(X.current,{alpha:0,duration:.1},Number(Te)),_e.current.add(K.current,Re)})}return()=>{K.current&&(K.current.kill(),gsap$2.killTweensOf(K.current)),Ge.revert()}},[Re,Te,Ie,Me,Ee]),React__namespace.useEffect(()=>(X.current&&B(!0),()=>{console.log("unmounting audio sprite",Ee),console.log("audioContainerRef.current",J.current)}),[]),React__namespace.useEffect(()=>(Z.current&&Z.current.update(),()=>{}),[U]),React__namespace.useEffect(()=>(isEmpty$1(He)||(J.current=new howler.Howl({src:[He],format:["mp3"],html5:!0,autoplay:!1,loop:!1,rate:Pe||1,onload:()=>{var Ge;if(Y.current.loaded=!0,J.current&&(Ie>0&&J.current.seek(Ie),J.current.volume(!we&&Oe?1:0),J.current.rate(Pe||1),J.current.pause(),Y.current.isPlaying=!1,Y.current.completed=!1,ze.current&&J.current)){console.log("reconnecting the audio motion analyser");try{ze.current.connectInput(J.current._sounds[0]._node)}catch(qe){console.log("error connecting audio motion"),console.log(qe)}const Be=PIXI__namespace.Texture.from(ze.current._fsEl,{pixiIdPrefix:`${(Ge=ze.current._container)==null?void 0:Ge.id}`});Z.current=Be,je.current&&je.current.setAttribute("style","display:none"),V(!0)}},onend:()=>{console.log("end of playing audio sprite"+Ee),Y.current.isPlaying=!1,Y.current.completed=!0},onplay:()=>{console.log("play of playing audio sprite"+Ee),Y.current.isPlaying=!0},onpause:()=>{console.log("pause of playing audio sprite"+Ee),Y.current.isPlaying=!1},onstop:()=>{console.log("stop of playing audio sprite"+Ee),Y.current.isPlaying=!1}}),Howler.ctx.resume().then(()=>{console.log("audio ctx resumed")})),()=>{console.log("unmounting the howler useeffect"),ze.current,J.current&&(J.current.stop(),J.current.unload(),J.current=void 0)}),[Ee,Ae,Re,Te,Ie,Me,we,Oe,Pe,He]),React__namespace.useEffect(()=>{J.current&&(console.log("running updateEffect 2002",Ee,Me),J.current.volume(!we&&Oe?1:0),J.current.rate(Pe||1),Y.current.isPlaying=!0)},[we,Oe,Pe]),jsxRuntimeExports.jsx(react.Container,{ref:X,children:We!==Waveforms.NONE&&U&&Z.current&&jsxRuntimeExports.jsx(AbstractContainer,{...C,ref:E,ignoreTlForVideo:!0,isGif:!0,children:jsxRuntimeExports.jsx(react.Sprite,{texture:Z.current,width:$e,height:Ve,anchor:.5,x:Xe,y:Ue,ref:xe,alpha:Oe?1:0})})})});function arrayMap$2(C,E){for(var I=-1,B=C==null?0:C.length,U=Array(B);++I<B;)U[I]=E(C[I],I,C);return U}var _arrayMap=arrayMap$2;function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1;function eq$2(C,E){return C===E||C!==C&&E!==E}var eq_1=eq$2,eq$1=eq_1;function assocIndexOf$4(C,E){for(var I=C.length;I--;)if(eq$1(C[I][0],E))return I;return-1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete$1(C){var E=this.__data__,I=assocIndexOf$3(E,C);if(I<0)return!1;var B=E.length-1;return I==B?E.pop():splice.call(E,I,1),--this.size,!0}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$1(C){var E=this.__data__,I=assocIndexOf$2(E,C);return I<0?void 0:E[I][1]}var _listCacheGet=listCacheGet$1,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(C){return assocIndexOf$1(this.__data__,C)>-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(C,E){var I=this.__data__,B=assocIndexOf(I,C);return B<0?(++this.size,I.push([C,E])):I[B][1]=E,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(C){var E=-1,I=C==null?0:C.length;for(this.clear();++E<I;){var B=C[E];this.set(B[0],B[1])}}ListCache$4.prototype.clear=listCacheClear,ListCache$4.prototype.delete=listCacheDelete,ListCache$4.prototype.get=listCacheGet,ListCache$4.prototype.has=listCacheHas,ListCache$4.prototype.set=listCacheSet;var _ListCache=ListCache$4,ListCache$3=_ListCache;function stackClear$1(){this.__data__=new ListCache$3,this.size=0}var _stackClear=stackClear$1;function stackDelete$1(C){var E=this.__data__,I=E.delete(C);return this.size=E.size,I}var _stackDelete=stackDelete$1;function stackGet$1(C){return this.__data__.get(C)}var _stackGet=stackGet$1;function stackHas$1(C){return this.__data__.has(C)}var _stackHas=stackHas$1,getNative=_getNative,nativeCreate$4=getNative(Object,"create"),_nativeCreate=nativeCreate$4,nativeCreate$3=_nativeCreate;function hashClear$1(){this.__data__=nativeCreate$3?nativeCreate$3(null):{},this.size=0}var _hashClear=hashClear$1;function hashDelete$1(C){var E=this.has(C)&&delete this.__data__[C];return this.size-=E?1:0,E}var _hashDelete=hashDelete$1,nativeCreate$2=_nativeCreate,HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$5=Object.prototype,hasOwnProperty$4=objectProto$5.hasOwnProperty;function hashGet$1(C){var E=this.__data__;if(nativeCreate$2){var I=E[C];return I===HASH_UNDEFINED$2?void 0:I}return hasOwnProperty$4.call(E,C)?E[C]:void 0}var _hashGet=hashGet$1,nativeCreate$1=_nativeCreate,objectProto$4=Object.prototype,hasOwnProperty$3=objectProto$4.hasOwnProperty;function hashHas$1(C){var E=this.__data__;return nativeCreate$1?E[C]!==void 0:hasOwnProperty$3.call(E,C)}var _hashHas=hashHas$1,nativeCreate=_nativeCreate,HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet$1(C,E){var I=this.__data__;return this.size+=this.has(C)?0:1,I[C]=nativeCreate&&E===void 0?HASH_UNDEFINED$1:E,this}var _hashSet=hashSet$1,hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=_hashHas,hashSet=_hashSet;function Hash$1(C){var E=-1,I=C==null?0:C.length;for(this.clear();++E<I;){var B=C[E];this.set(B[0],B[1])}}Hash$1.prototype.clear=hashClear,Hash$1.prototype.delete=hashDelete,Hash$1.prototype.get=hashGet,Hash$1.prototype.has=hashHas,Hash$1.prototype.set=hashSet;var _Hash=Hash$1,Hash=_Hash,ListCache$2=_ListCache,Map$2=_Map;function mapCacheClear$1(){this.size=0,this.__data__={hash:new Hash,map:new(Map$2||ListCache$2),string:new Hash}}var _mapCacheClear=mapCacheClear$1;function isKeyable$1(C){var E=typeof C;return E=="string"||E=="number"||E=="symbol"||E=="boolean"?C!=="__proto__":C===null}var _isKeyable=isKeyable$1,isKeyable=_isKeyable;function getMapData$4(C,E){var I=C.__data__;return isKeyable(E)?I[typeof E=="string"?"string":"hash"]:I.map}var _getMapData=getMapData$4,getMapData$3=_getMapData;function mapCacheDelete$1(C){var E=getMapData$3(this,C).delete(C);return this.size-=E?1:0,E}var _mapCacheDelete=mapCacheDelete$1,getMapData$2=_getMapData;function mapCacheGet$1(C){return getMapData$2(this,C).get(C)}var _mapCacheGet=mapCacheGet$1,getMapData$1=_getMapData;function mapCacheHas$1(C){return getMapData$1(this,C).has(C)}var _mapCacheHas=mapCacheHas$1,getMapData=_getMapData;function mapCacheSet$1(C,E){var I=getMapData(this,C),B=I.size;return I.set(C,E),this.size+=I.size==B?0:1,this}var _mapCacheSet=mapCacheSet$1,mapCacheClear=_mapCacheClear,mapCacheDelete=_mapCacheDelete,mapCacheGet=_mapCacheGet,mapCacheHas=_mapCacheHas,mapCacheSet=_mapCacheSet;function MapCache$3(C){var E=-1,I=C==null?0:C.length;for(this.clear();++E<I;){var B=C[E];this.set(B[0],B[1])}}MapCache$3.prototype.clear=mapCacheClear,MapCache$3.prototype.delete=mapCacheDelete,MapCache$3.prototype.get=mapCacheGet,MapCache$3.prototype.has=mapCacheHas,MapCache$3.prototype.set=mapCacheSet;var _MapCache=MapCache$3,ListCache$1=_ListCache,Map$1=_Map,MapCache$2=_MapCache,LARGE_ARRAY_SIZE=200;function stackSet$1(C,E){var I=this.__data__;if(I instanceof ListCache$1){var B=I.__data__;if(!Map$1||B.length<LARGE_ARRAY_SIZE-1)return B.push([C,E]),this.size=++I.size,this;I=this.__data__=new MapCache$2(B)}return I.set(C,E),this.size=I.size,this}var _stackSet=stackSet$1,ListCache=_ListCache,stackClear=_stackClear,stackDelete=_stackDelete,stackGet=_stackGet,stackHas=_stackHas,stackSet=_stackSet;function Stack$2(C){var E=this.__data__=new ListCache(C);this.size=E.size}Stack$2.prototype.clear=stackClear,Stack$2.prototype.delete=stackDelete,Stack$2.prototype.get=stackGet,Stack$2.prototype.has=stackHas,Stack$2.prototype.set=stackSet;var _Stack=Stack$2,HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd$1(C){return this.__data__.set(C,HASH_UNDEFINED),this}var _setCacheAdd=setCacheAdd$1;function setCacheHas$1(C){return this.__data__.has(C)}var _setCacheHas=setCacheHas$1,MapCache$1=_MapCache,setCacheAdd=_setCacheAdd,setCacheHas=_setCacheHas;function SetCache$1(C){var E=-1,I=C==null?0:C.length;for(this.__data__=new MapCache$1;++E<I;)this.add(C[E])}SetCache$1.prototype.add=SetCache$1.prototype.push=setCacheAdd,SetCache$1.prototype.has=setCacheHas;var _SetCache=SetCache$1;function arraySome$1(C,E){for(var I=-1,B=C==null?0:C.length;++I<B;)if(E(C[I],I,C))return!0;return!1}var _arraySome=arraySome$1;function cacheHas$1(C,E){return C.has(E)}var _cacheHas=cacheHas$1,SetCache=_SetCache,arraySome=_arraySome,cacheHas=_cacheHas,COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function equalArrays$2(C,E,I,B,U,V){var X=I&COMPARE_PARTIAL_FLAG$5,Y=C.length,K=E.length;if(Y!=K&&!(X&&K>Y))return!1;var J=V.get(C),xe=V.get(E);if(J&&xe)return J==E&&xe==C;var Z=-1,_e=!0,Se=I&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for(V.set(C,E),V.set(E,C);++Z<Y;){var Ee=C[Z],Ae=E[Z];if(B)var Re=X?B(Ae,Ee,Z,E,C,V):B(Ee,Ae,Z,C,E,V);if(Re!==void 0){if(Re)continue;_e=!1;break}if(Se){if(!arraySome(E,function(Te,we){if(!cacheHas(Se,we)&&(Ee===Te||U(Ee,Te,I,B,V)))return Se.push(we)})){_e=!1;break}}else if(!(Ee===Ae||U(Ee,Ae,I,B,V))){_e=!1;break}}return V.delete(C),V.delete(E),_e}var _equalArrays=equalArrays$2,root$1=_root,Uint8Array$2=root$1.Uint8Array,_Uint8Array=Uint8Array$2;function mapToArray$1(C){var E=-1,I=Array(C.size);return C.forEach(function(B,U){I[++E]=[U,B]}),I}var _mapToArray=mapToArray$1;function setToArray$1(C){var E=-1,I=Array(C.size);return C.forEach(function(B){I[++E]=B}),I}var _setToArray=setToArray$1,Symbol$2=_Symbol,Uint8Array$1=_Uint8Array,eq=eq_1,equalArrays$1=_equalArrays,mapToArray=_mapToArray,setToArray=_setToArray,COMPARE_PARTIAL_FLAG$4=1,COMPARE_UNORDERED_FLAG$2=2,boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag="[object Map]",numberTag="[object Number]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag$1="[object Symbol]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",symbolProto$1=Symbol$2?Symbol$2.prototype:void 0,symbolValueOf=symbolProto$1?symbolProto$1.valueOf:void 0;function equalByTag$1(C,E,I,B,U,V,X){switch(I){case dataViewTag:if(C.byteLength!=E.byteLength||C.byteOffset!=E.byteOffset)return!1;C=C.buffer,E=E.buffer;case arrayBufferTag:return!(C.byteLength!=E.byteLength||!V(new Uint8Array$1(C),new Uint8Array$1(E)));case boolTag:case dateTag:case numberTag:return eq(+C,+E);case errorTag:return C.name==E.name&&C.message==E.message;case regexpTag:case stringTag:return C==E+"";case mapTag:var Y=mapToArray;case setTag:var K=B&COMPARE_PARTIAL_FLAG$4;if(Y||(Y=setToArray),C.size!=E.size&&!K)return!1;var J=X.get(C);if(J)return J==E;B|=COMPARE_UNORDERED_FLAG$2,X.set(C,E);var xe=equalArrays$1(Y(C),Y(E),B,U,V,X);return X.delete(C),xe;case symbolTag$1:if(symbolValueOf)return symbolValueOf.call(C)==symbolValueOf.call(E)}return!1}var _equalByTag=equalByTag$1;function arrayPush$1(C,E){for(var I=-1,B=E.length,U=C.length;++I<B;)C[U+I]=E[I];return C}var _arrayPush=arrayPush$1,arrayPush=_arrayPush,isArray$8=isArray_1;function baseGetAllKeys$1(C,E,I){var B=E(C);return isArray$8(C)?B:arrayPush(B,I(C))}var _baseGetAllKeys=baseGetAllKeys$1;function arrayFilter$1(C,E){for(var I=-1,B=C==null?0:C.length,U=0,V=[];++I<B;){var X=C[I];E(X,I,C)&&(V[U++]=X)}return V}var _arrayFilter=arrayFilter$1;function stubArray$1(){return[]}var stubArray_1=stubArray$1,arrayFilter=_arrayFilter,stubArray=stubArray_1,objectProto$3=Object.prototype,propertyIsEnumerable=objectProto$3.propertyIsEnumerable,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbols$1=nativeGetSymbols?function(C){return C==null?[]:(C=Object(C),arrayFilter(nativeGetSymbols(C),function(E){return propertyIsEnumerable.call(C,E)}))}:stubArray,_getSymbols=getSymbols$1;function baseTimes$1(C,E){for(var I=-1,B=Array(C);++I<C;)B[I]=E(I);return B}var _baseTimes=baseTimes$1,MAX_SAFE_INTEGER=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex$2(C,E){var I=typeof C;return E=E??MAX_SAFE_INTEGER,!!E&&(I=="number"||I!="symbol"&&reIsUint.test(C))&&C>-1&&C%1==0&&C<E}var _isIndex=isIndex$2,baseTimes=_baseTimes,isArguments$1=isArguments_1,isArray$7=isArray_1,isBuffer$1=isBufferExports,isIndex$1=_isIndex,isTypedArray$1=isTypedArray_1,objectProto$2=Object.prototype,hasOwnProperty$2=objectProto$2.hasOwnProperty;function arrayLikeKeys$1(C,E){var I=isArray$7(C),B=!I&&isArguments$1(C),U=!I&&!B&&isBuffer$1(C),V=!I&&!B&&!U&&isTypedArray$1(C),X=I||B||U||V,Y=X?baseTimes(C.length,String):[],K=Y.length;for(var J in C)(E||hasOwnProperty$2.call(C,J))&&!(X&&(J=="length"||U&&(J=="offset"||J=="parent")||V&&(J=="buffer"||J=="byteLength"||J=="byteOffset")||isIndex$1(J,K)))&&Y.push(J);return Y}var _arrayLikeKeys=arrayLikeKeys$1,arrayLikeKeys=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike$2=isArrayLike_1;function keys$3(C){return isArrayLike$2(C)?arrayLikeKeys(C):baseKeys(C)}var keys_1=keys$3,baseGetAllKeys=_baseGetAllKeys,getSymbols=_getSymbols,keys$2=keys_1;function getAllKeys$1(C){return baseGetAllKeys(C,keys$2,getSymbols)}var _getAllKeys=getAllKeys$1,getAllKeys=_getAllKeys,COMPARE_PARTIAL_FLAG$3=1,objectProto$1=Object.prototype,hasOwnProperty$1=objectProto$1.hasOwnProperty;function equalObjects$1(C,E,I,B,U,V){var X=I&COMPARE_PARTIAL_FLAG$3,Y=getAllKeys(C),K=Y.length,J=getAllKeys(E),xe=J.length;if(K!=xe&&!X)return!1;for(var Z=K;Z--;){var _e=Y[Z];if(!(X?_e in E:hasOwnProperty$1.call(E,_e)))return!1}var Se=V.get(C),Ee=V.get(E);if(Se&&Ee)return Se==E&&Ee==C;var Ae=!0;V.set(C,E),V.set(E,C);for(var Re=X;++Z<K;){_e=Y[Z];var Te=C[_e],we=E[_e];if(B)var Pe=X?B(we,Te,_e,E,C,V):B(Te,we,_e,C,E,V);if(!(Pe===void 0?Te===we||U(Te,we,I,B,V):Pe)){Ae=!1;break}Re||(Re=_e=="constructor")}if(Ae&&!Re){var Ie=C.constructor,Me=E.constructor;Ie!=Me&&"constructor"in C&&"constructor"in E&&!(typeof Ie=="function"&&Ie instanceof Ie&&typeof Me=="function"&&Me instanceof Me)&&(Ae=!1)}return V.delete(C),V.delete(E),Ae}var _equalObjects=equalObjects$1,Stack$1=_Stack,equalArrays=_equalArrays,equalByTag=_equalByTag,equalObjects=_equalObjects,getTag=_getTag,isArray$6=isArray_1,isBuffer=isBufferExports,isTypedArray=isTypedArray_1,COMPARE_PARTIAL_FLAG$2=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty;function baseIsEqualDeep$1(C,E,I,B,U,V){var X=isArray$6(C),Y=isArray$6(E),K=X?arrayTag:getTag(C),J=Y?arrayTag:getTag(E);K=K==argsTag?objectTag:K,J=J==argsTag?objectTag:J;var xe=K==objectTag,Z=J==objectTag,_e=K==J;if(_e&&isBuffer(C)){if(!isBuffer(E))return!1;X=!0,xe=!1}if(_e&&!xe)return V||(V=new Stack$1),X||isTypedArray(C)?equalArrays(C,E,I,B,U,V):equalByTag(C,E,K,I,B,U,V);if(!(I&COMPARE_PARTIAL_FLAG$2)){var Se=xe&&hasOwnProperty.call(C,"__wrapped__"),Ee=Z&&hasOwnProperty.call(E,"__wrapped__");if(Se||Ee){var Ae=Se?C.value():C,Re=Ee?E.value():E;return V||(V=new Stack$1),U(Ae,Re,I,B,V)}}return _e?(V||(V=new Stack$1),equalObjects(C,E,I,B,U,V)):!1}var _baseIsEqualDeep=baseIsEqualDeep$1,baseIsEqualDeep=_baseIsEqualDeep,isObjectLike$1=isObjectLike_1;function baseIsEqual$2(C,E,I,B,U){return C===E?!0:C==null||E==null||!isObjectLike$1(C)&&!isObjectLike$1(E)?C!==C&&E!==E:baseIsEqualDeep(C,E,I,B,baseIsEqual$2,U)}var _baseIsEqual=baseIsEqual$2,Stack=_Stack,baseIsEqual$1=_baseIsEqual,COMPARE_PARTIAL_FLAG$1=1,COMPARE_UNORDERED_FLAG$1=2;function baseIsMatch$1(C,E,I,B){var U=I.length,V=U,X=!B;if(C==null)return!V;for(C=Object(C);U--;){var Y=I[U];if(X&&Y[2]?Y[1]!==C[Y[0]]:!(Y[0]in C))return!1}for(;++U<V;){Y=I[U];var K=Y[0],J=C[K],xe=Y[1];if(X&&Y[2]){if(J===void 0&&!(K in C))return!1}else{var Z=new Stack;if(B)var _e=B(J,xe,K,C,E,Z);if(!(_e===void 0?baseIsEqual$1(xe,J,COMPARE_PARTIAL_FLAG$1|COMPARE_UNORDERED_FLAG$1,B,Z):_e))return!1}}return!0}var _baseIsMatch=baseIsMatch$1,isObject$2=isObject_1;function isStrictComparable$2(C){return C===C&&!isObject$2(C)}var _isStrictComparable=isStrictComparable$2,isStrictComparable$1=_isStrictComparable,keys$1=keys_1;function getMatchData$1(C){for(var E=keys$1(C),I=E.length;I--;){var B=E[I],U=C[B];E[I]=[B,U,isStrictComparable$1(U)]}return E}var _getMatchData=getMatchData$1;function matchesStrictComparable$2(C,E){return function(I){return I==null?!1:I[C]===E&&(E!==void 0||C in Object(I))}}var _matchesStrictComparable=matchesStrictComparable$2,baseIsMatch=_baseIsMatch,getMatchData=_getMatchData,matchesStrictComparable$1=_matchesStrictComparable;function baseMatches$1(C){var E=getMatchData(C);return E.length==1&&E[0][2]?matchesStrictComparable$1(E[0][0],E[0][1]):function(I){return I===C||baseIsMatch(I,C,E)}}var _baseMatches=baseMatches$1,baseGetTag=_baseGetTag,isObjectLike=isObjectLike_1,symbolTag="[object Symbol]";function isSymbol$4(C){return typeof C=="symbol"||isObjectLike(C)&&baseGetTag(C)==symbolTag}var isSymbol_1=isSymbol$4,isArray$5=isArray_1,isSymbol$3=isSymbol_1,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey$3(C,E){if(isArray$5(C))return!1;var I=typeof C;return I=="number"||I=="symbol"||I=="boolean"||C==null||isSymbol$3(C)?!0:reIsPlainProp.test(C)||!reIsDeepProp.test(C)||E!=null&&C in Object(E)}var _isKey=isKey$3,MapCache=_MapCache,FUNC_ERROR_TEXT$1="Expected a function";function memoize$1(C,E){if(typeof C!="function"||E!=null&&typeof E!="function")throw new TypeError(FUNC_ERROR_TEXT$1);var I=function(){var B=arguments,U=E?E.apply(this,B):B[0],V=I.cache;if(V.has(U))return V.get(U);var X=C.apply(this,B);return I.cache=V.set(U,X)||V,X};return I.cache=new(memoize$1.Cache||MapCache),I}memoize$1.Cache=MapCache;var memoize_1=memoize$1,memoize=memoize_1,MAX_MEMOIZE_SIZE=500;function memoizeCapped$1(C){var E=memoize(C,function(B){return I.size===MAX_MEMOIZE_SIZE&&I.clear(),B}),I=E.cache;return E}var _memoizeCapped=memoizeCapped$1,memoizeCapped=_memoizeCapped,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath$1=memoizeCapped(function(C){var E=[];return C.charCodeAt(0)===46&&E.push(""),C.replace(rePropName,function(I,B,U,V){E.push(U?V.replace(reEscapeChar,"$1"):B||I)}),E}),_stringToPath=stringToPath$1,Symbol$1=_Symbol,arrayMap$1=_arrayMap,isArray$4=isArray_1,isSymbol$2=isSymbol_1,INFINITY$1=1/0,symbolProto=Symbol$1?Symbol$1.prototype:void 0,symbolToString=symbolProto?symbolProto.toString:void 0;function baseToString$1(C){if(typeof C=="string")return C;if(isArray$4(C))return arrayMap$1(C,baseToString$1)+"";if(isSymbol$2(C))return symbolToString?symbolToString.call(C):"";var E=C+"";return E=="0"&&1/C==-INFINITY$1?"-0":E}var _baseToString=baseToString$1,baseToString=_baseToString;function toString$1(C){return C==null?"":baseToString(C)}var toString_1=toString$1,isArray$3=isArray_1,isKey$2=_isKey,stringToPath=_stringToPath,toString=toString_1;function castPath$2(C,E){return isArray$3(C)?C:isKey$2(C,E)?[C]:stringToPath(toString(C))}var _castPath=castPath$2,isSymbol$1=isSymbol_1,INFINITY=1/0;function toKey$4(C){if(typeof C=="string"||isSymbol$1(C))return C;var E=C+"";return E=="0"&&1/C==-INFINITY?"-0":E}var _toKey=toKey$4,castPath$1=_castPath,toKey$3=_toKey;function baseGet$2(C,E){E=castPath$1(E,C);for(var I=0,B=E.length;C!=null&&I<B;)C=C[toKey$3(E[I++])];return I&&I==B?C:void 0}var _baseGet=baseGet$2,baseGet$1=_baseGet;function get$1(C,E,I){var B=C==null?void 0:baseGet$1(C,E);return B===void 0?I:B}var get_1=get$1;function baseHasIn$1(C,E){return C!=null&&E in Object(C)}var _baseHasIn=baseHasIn$1,castPath=_castPath,isArguments=isArguments_1,isArray$2=isArray_1,isIndex=_isIndex,isLength=isLength_1,toKey$2=_toKey;function hasPath$1(C,E,I){E=castPath(E,C);for(var B=-1,U=E.length,V=!1;++B<U;){var X=toKey$2(E[B]);if(!(V=C!=null&&I(C,X)))break;C=C[X]}return V||++B!=U?V:(U=C==null?0:C.length,!!U&&isLength(U)&&isIndex(X,U)&&(isArray$2(C)||isArguments(C)))}var _hasPath=hasPath$1,baseHasIn=_baseHasIn,hasPath=_hasPath;function hasIn$1(C,E){return C!=null&&hasPath(C,E,baseHasIn)}var hasIn_1=hasIn$1,baseIsEqual=_baseIsEqual,get=get_1,hasIn=hasIn_1,isKey$1=_isKey,isStrictComparable=_isStrictComparable,matchesStrictComparable=_matchesStrictComparable,toKey$1=_toKey,COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty$1(C,E){return isKey$1(C)&&isStrictComparable(E)?matchesStrictComparable(toKey$1(C),E):function(I){var B=get(I,C);return B===void 0&&B===E?hasIn(I,C):baseIsEqual(E,B,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG)}}var _baseMatchesProperty=baseMatchesProperty$1;function identity$1(C){return C}var identity_1=identity$1;function baseProperty$1(C){return function(E){return E==null?void 0:E[C]}}var _baseProperty=baseProperty$1,baseGet=_baseGet;function basePropertyDeep$1(C){return function(E){return baseGet(E,C)}}var _basePropertyDeep=basePropertyDeep$1,baseProperty=_baseProperty,basePropertyDeep=_basePropertyDeep,isKey=_isKey,toKey=_toKey;function property$1(C){return isKey(C)?baseProperty(toKey(C)):basePropertyDeep(C)}var property_1=property$1,baseMatches=_baseMatches,baseMatchesProperty=_baseMatchesProperty,identity=identity_1,isArray$1=isArray_1,property=property_1;function baseIteratee$1(C){return typeof C=="function"?C:C==null?identity:typeof C=="object"?isArray$1(C)?baseMatchesProperty(C[0],C[1]):baseMatches(C):property(C)}var _baseIteratee=baseIteratee$1;function createBaseFor$1(C){return function(E,I,B){for(var U=-1,V=Object(E),X=B(E),Y=X.length;Y--;){var K=X[C?Y:++U];if(I(V[K],K,V)===!1)break}return E}}var _createBaseFor=createBaseFor$1,createBaseFor=_createBaseFor,baseFor$1=createBaseFor(),_baseFor=baseFor$1,baseFor=_baseFor,keys=keys_1;function baseForOwn$1(C,E){return C&&baseFor(C,E,keys)}var _baseForOwn=baseForOwn$1,isArrayLike$1=isArrayLike_1;function createBaseEach$1(C,E){return function(I,B){if(I==null)return I;if(!isArrayLike$1(I))return C(I,B);for(var U=I.length,V=E?U:-1,X=Object(I);(E?V--:++V<U)&&B(X[V],V,X)!==!1;);return I}}var _createBaseEach=createBaseEach$1,baseForOwn=_baseForOwn,createBaseEach=_createBaseEach,baseEach$1=createBaseEach(baseForOwn),_baseEach=baseEach$1,baseEach=_baseEach,isArrayLike=isArrayLike_1;function baseMap$1(C,E){var I=-1,B=isArrayLike(C)?Array(C.length):[];return baseEach(C,function(U,V,X){B[++I]=E(U,V,X)}),B}var _baseMap=baseMap$1,arrayMap=_arrayMap,baseIteratee=_baseIteratee,baseMap=_baseMap,isArray=isArray_1;function map(C,E){var I=isArray(C)?arrayMap:baseMap;return I(C,baseIteratee(E))}var map_1=map;const map$1=getDefaultExportFromCjs(map_1);var lib$1={},gif={},lib={};Object.defineProperty(lib,"__esModule",{value:!0}),lib.loop=lib.conditional=lib.parse=void 0;var parse=function C(E,I){var B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},U=arguments.length>3&&arguments[3]!==void 0?arguments[3]:B;if(Array.isArray(I))I.forEach(function(X){return C(E,X,B,U)});else if(typeof I=="function")I(E,B,U,C);else{var V=Object.keys(I)[0];Array.isArray(I[V])?(U[V]={},C(E,I[V],B,U[V])):U[V]=I[V](E,B,U,C)}return B};lib.parse=parse;var conditional=function(E,I){return function(B,U,V,X){I(B,U,V)&&X(B,E,U,V)}};lib.conditional=conditional;var loop=function(E,I){return function(B,U,V,X){for(var Y=[],K=B.pos;I(B,U,V);){var J={};if(X(B,E,U,J),B.pos===K)break;K=B.pos,Y.push(J)}return Y}};lib.loop=loop;var uint8={};Object.defineProperty(uint8,"__esModule",{value:!0}),uint8.readBits=uint8.readArray=uint8.readUnsigned=uint8.readString=uint8.peekBytes=uint8.readBytes=uint8.peekByte=uint8.readByte=uint8.buildStream=void 0;var buildStream=function(E){return{data:E,pos:0}};uint8.buildStream=buildStream;var readByte=function(){return function(E){return E.data[E.pos++]}};uint8.readByte=readByte;var peekByte=function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return function(I){return I.data[I.pos+E]}};uint8.peekByte=peekByte;var readBytes=function(E){return function(I){return I.data.subarray(I.pos,I.pos+=E)}};uint8.readBytes=readBytes;var peekBytes=function(E){return function(I){return I.data.subarray(I.pos,I.pos+E)}};uint8.peekBytes=peekBytes;var readString=function(E){return function(I){return Array.from(readBytes(E)(I)).map(function(B){return String.fromCharCode(B)}).join("")}};uint8.readString=readString;var readUnsigned=function(E){return function(I){var B=readBytes(2)(I);return E?(B[1]<<8)+B[0]:(B[0]<<8)+B[1]}};uint8.readUnsigned=readUnsigned;var readArray=function(E,I){return function(B,U,V){for(var X=typeof I=="function"?I(B,U,V):I,Y=readBytes(E),K=new Array(X),J=0;J<X;J++)K[J]=Y(B);return K}};uint8.readArray=readArray;var subBitsTotal=function(E,I,B){for(var U=0,V=0;V<B;V++)U+=E[I+V]&&Math.pow(2,B-V-1);return U},readBits=function(E){return function(I){for(var B=readByte()(I),U=new Array(8),V=0;V<8;V++)U[7-V]=!!(B&1<<V);return Object.keys(E).reduce(function(X,Y){var K=E[Y];return K.length?X[Y]=subBitsTotal(U,K.index,K.length):X[Y]=U[K.index],X},{})}};uint8.readBits=readBits,function(C){Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var E=lib,I=uint8,B={blocks:function(_e){for(var Se=0,Ee=[],Ae=_e.data.length,Re=0,Te=(0,I.readByte)()(_e);Te!==Se&&Te;Te=(0,I.readByte)()(_e)){if(_e.pos+Te>=Ae){var we=Ae-_e.pos;Ee.push((0,I.readBytes)(we)(_e)),Re+=we;break}Ee.push((0,I.readBytes)(Te)(_e)),Re+=Te}for(var Pe=new Uint8Array(Re),Ie=0,Me=0;Me<Ee.length;Me++)Pe.set(Ee[Me],Ie),Ie+=Ee[Me].length;return Pe}},U=(0,E.conditional)({gce:[{codes:(0,I.readBytes)(2)},{byteSize:(0,I.readByte)()},{extras:(0,I.readBits)({future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}})},{delay:(0,I.readUnsigned)(!0)},{transparentColorIndex:(0,I.readByte)()},{terminator:(0,I.readByte)()}]},function(Z){var _e=(0,I.peekBytes)(2)(Z);return _e[0]===33&&_e[1]===249}),V=(0,E.conditional)({image:[{code:(0,I.readByte)()},{descriptor:[{left:(0,I.readUnsigned)(!0)},{top:(0,I.readUnsigned)(!0)},{width:(0,I.readUnsigned)(!0)},{height:(0,I.readUnsigned)(!0)},{lct:(0,I.readBits)({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},(0,E.conditional)({lct:(0,I.readArray)(3,function(Z,_e,Se){return Math.pow(2,Se.descriptor.lct.size+1)})},function(Z,_e,Se){return Se.descriptor.lct.exists}),{data:[{minCodeSize:(0,I.readByte)()},B]}]},function(Z){return(0,I.peekByte)()(Z)===44}),X=(0,E.conditional)({text:[{codes:(0,I.readBytes)(2)},{blockSize:(0,I.readByte)()},{preData:function(_e,Se,Ee){return(0,I.readBytes)(Ee.text.blockSize)(_e)}},B]},function(Z){var _e=(0,I.peekBytes)(2)(Z);return _e[0]===33&&_e[1]===1}),Y=(0,E.conditional)({application:[{codes:(0,I.readBytes)(2)},{blockSize:(0,I.readByte)()},{id:function(_e,Se,Ee){return(0,I.readString)(Ee.blockSize)(_e)}},B]},function(Z){var _e=(0,I.peekBytes)(2)(Z);return _e[0]===33&&_e[1]===255}),K=(0,E.conditional)({comment:[{codes:(0,I.readBytes)(2)},B]},function(Z){var _e=(0,I.peekBytes)(2)(Z);return _e[0]===33&&_e[1]===254}),J=[{header:[{signature:(0,I.readString)(3)},{version:(0,I.readString)(3)}]},{lsd:[{width:(0,I.readUnsigned)(!0)},{height:(0,I.readUnsigned)(!0)},{gct:(0,I.readBits)({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:(0,I.readByte)()},{pixelAspectRatio:(0,I.readByte)()}]},(0,E.conditional)({gct:(0,I.readArray)(3,function(Z,_e){return Math.pow(2,_e.lsd.gct.size+1)})},function(Z,_e){return _e.lsd.gct.exists}),{frames:(0,E.loop)([U,Y,K,V,X],function(Z){var _e=(0,I.peekByte)()(Z);return _e===33||_e===44})}],xe=J;C.default=xe}(gif);var deinterlace$1={};Object.defineProperty(deinterlace$1,"__esModule",{value:!0}),deinterlace$1.deinterlace=void 0;var deinterlace=function(E,I){for(var B=new Array(E.length),U=E.length/I,V=function(_e,Se){var Ee=E.slice(Se*I,(Se+1)*I);B.splice.apply(B,[_e*I,I].concat(Ee))},X=[0,4,2,1],Y=[8,8,4,2],K=0,J=0;J<4;J++)for(var xe=X[J];xe<U;xe+=Y[J])V(xe,K),K++;return B};deinterlace$1.deinterlace=deinterlace;var lzw$1={};Object.defineProperty(lzw$1,"__esModule",{value:!0}),lzw$1.lzw=void 0;var lzw=function(E,I,B){var U=4096,V=-1,X=B,Y,K,J,xe,Z,_e,Se,Oe,Ee,Ae,Me,Re,Le,$e,Xe,Ve,Te=new Array(B),we=new Array(U),Pe=new Array(U),Ie=new Array(U+1);for(Re=E,K=1<<Re,Z=K+1,Y=K+2,Se=V,xe=Re+1,J=(1<<xe)-1,Ee=0;Ee<K;Ee++)we[Ee]=0,Pe[Ee]=Ee;var Me,Oe,Le,$e,Ve,Xe;for(Me=Oe=Le=$e=Ve=Xe=0,Ae=0;Ae<X;){if($e===0){if(Oe<xe){Me+=I[Xe]<<Oe,Oe+=8,Xe++;continue}if(Ee=Me&J,Me>>=xe,Oe-=xe,Ee>Y||Ee==Z)break;if(Ee==K){xe=Re+1,J=(1<<xe)-1,Y=K+2,Se=V;continue}if(Se==V){Ie[$e++]=Pe[Ee],Se=Ee,Le=Ee;continue}for(_e=Ee,Ee==Y&&(Ie[$e++]=Le,Ee=Se);Ee>K;)Ie[$e++]=Pe[Ee],Ee=we[Ee];Le=Pe[Ee]&255,Ie[$e++]=Le,Y<U&&(we[Y]=Se,Pe[Y]=Le,Y++,!(Y&J)&&Y<U&&(xe++,J+=Y)),Se=_e}$e--,Te[Ve++]=Ie[$e],Ae++}for(Ae=Ve;Ae<X;Ae++)Te[Ae]=0;return Te};lzw$1.lzw=lzw,Object.defineProperty(lib$1,"__esModule",{value:!0}),lib$1.decompressFrames=lib$1.decompressFrame=lib$1.parseGIF=void 0;var _gif=_interopRequireDefault(gif),_jsBinarySchemaParser=lib,_uint=uint8,_deinterlace=deinterlace$1,_lzw=lzw$1;function _interopRequireDefault(C){return C&&C.__esModule?C:{default:C}}var parseGIF=function(E){var I=new Uint8Array(E);return(0,_jsBinarySchemaParser.parse)((0,_uint.buildStream)(I),_gif.default)};lib$1.parseGIF=parseGIF;var generatePatch=function(E){for(var I=E.pixels.length,B=new Uint8ClampedArray(I*4),U=0;U<I;U++){var V=U*4,X=E.pixels[U],Y=E.colorTable[X]||[0,0,0];B[V]=Y[0],B[V+1]=Y[1],B[V+2]=Y[2],B[V+3]=X!==E.transparentIndex?255:0}return B},decompressFrame=function(E,I,B){if(!E.image){console.warn("gif frame does not have associated image.");return}var U=E.image,V=U.descriptor.width*U.descriptor.height,X=(0,_lzw.lzw)(U.data.minCodeSize,U.data.blocks,V);U.descriptor.lct.interlaced&&(X=(0,_deinterlace.deinterlace)(X,U.descriptor.width));var Y={pixels:X,dims:{top:E.image.descriptor.top,left:E.image.descriptor.left,width:E.image.descriptor.width,height:E.image.descriptor.height}};return U.descriptor.lct&&U.descriptor.lct.exists?Y.colorTable=U.lct:Y.colorTable=I,E.gce&&(Y.delay=(E.gce.delay||10)*10,Y.disposalType=E.gce.extras.disposal,E.gce.extras.transparentColorGiven&&(Y.transparentIndex=E.gce.transparentColorIndex)),B&&(Y.patch=generatePatch(Y)),Y};lib$1.decompressFrame=decompressFrame;var decompressFrames=function(E,I){return E.frames.filter(function(B){return B.image}).map(function(B){return decompressFrame(B,E.gct,I)})};lib$1.decompressFrames=decompressFrames;const reducer=(C,E={})=>{typeof E=="function"&&(E=E(C));const I=E.loaded&&C.loaded!==E.loaded,{playing:B,...U}=E,V={...C,...U};return I&&Object.assign(V,{playing:V.autoPlay&&V.loaded}),(E.delays!=null||E.frames!=null)&&Object.assign(V,{length:V.frames.length}),(E.index!=null||E.frames!=null)&&Object.assign(V,{index:V.length===0?0:(V.length+V.index)%V.length}),E.playing!=null&&Object.assign(V,V.loaded?{playing:B}:{autoPlay:B}),V},initializer=C=>reducer({autoPlay:!0,playing:!1,frames:[],delays:[],index:0,length:0,loaded:!1},C),usePlayerState=C=>React.useReducer(reducer,C,initializer);var code='function e(e){var r={exports:{}};return e(r,r.exports),r.exports}var r=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.loop=r.conditional=r.parse=void 0;r.parse=function e(r,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;if(Array.isArray(t))t.forEach((function(t){return e(r,t,n,a)}));else if("function"==typeof t)t(r,n,a,e);else{var i=Object.keys(t)[0];Array.isArray(t[i])?(a[i]={},e(r,t[i],n,a[i])):a[i]=t[i](r,n,a,e)}return n};r.conditional=function(e,r){return function(t,n,a,i){r(t,n,a)&&i(t,e,n,a)}};r.loop=function(e,r){return function(t,n,a,i){for(var o=[];r(t,n,a);){var s={};i(t,e,n,s),o.push(s)}return o}}})),t=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.readBits=r.readArray=r.readUnsigned=r.readString=r.peekBytes=r.readBytes=r.peekByte=r.readByte=r.buildStream=void 0;r.buildStream=function(e){return{data:e,pos:0}};var t=function(){return function(e){return e.data[e.pos++]}};r.readByte=t;r.peekByte=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(r){return r.data[r.pos+e]}};var n=function(e){return function(r){return r.data.subarray(r.pos,r.pos+=e)}};r.readBytes=n;r.peekBytes=function(e){return function(r){return r.data.subarray(r.pos,r.pos+e)}};r.readString=function(e){return function(r){return Array.from(n(e)(r)).map((function(e){return String.fromCharCode(e)})).join("")}};r.readUnsigned=function(e){return function(r){var t=n(2)(r);return e?(t[1]<<8)+t[0]:(t[0]<<8)+t[1]}};r.readArray=function(e,r){return function(t,a,i){for(var o="function"==typeof r?r(t,a,i):r,s=n(e),d=new Array(o),c=0;c<o;c++)d[c]=s(t);return d}};r.readBits=function(e){return function(r){for(var t=function(e){return e.data[e.pos++]}(r),n=new Array(8),a=0;a<8;a++)n[7-a]=!!(t&1<<a);return Object.keys(e).reduce((function(r,t){var a=e[t];return a.length?r[t]=function(e,r,t){for(var n=0,a=0;a<t;a++)n+=e[r+a]&&Math.pow(2,t-a-1);return n}(n,a.index,a.length):r[t]=n[a.index],r}),{})}}})),n=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a={blocks:function(e){for(var r=[],n=e.data.length,a=0,i=(0,t.readByte)()(e);0!==i;i=(0,t.readByte)()(e)){if(e.pos+i>=n){var o=n-e.pos;r.push((0,t.readBytes)(o)(e)),a+=o;break}r.push((0,t.readBytes)(i)(e)),a+=i}for(var s=new Uint8Array(a),d=0,c=0;c<r.length;c++)s.set(r[c],d),d+=r[c].length;return s}},i=(0,r.conditional)({gce:[{codes:(0,t.readBytes)(2)},{byteSize:(0,t.readByte)()},{extras:(0,t.readBits)({future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}})},{delay:(0,t.readUnsigned)(!0)},{transparentColorIndex:(0,t.readByte)()},{terminator:(0,t.readByte)()}]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&249===r[1]})),o=(0,r.conditional)({image:[{code:(0,t.readByte)()},{descriptor:[{left:(0,t.readUnsigned)(!0)},{top:(0,t.readUnsigned)(!0)},{width:(0,t.readUnsigned)(!0)},{height:(0,t.readUnsigned)(!0)},{lct:(0,t.readBits)({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},(0,r.conditional)({lct:(0,t.readArray)(3,(function(e,r,t){return Math.pow(2,t.descriptor.lct.size+1)}))},(function(e,r,t){return t.descriptor.lct.exists})),{data:[{minCodeSize:(0,t.readByte)()},a]}]},(function(e){return 44===(0,t.peekByte)()(e)})),s=(0,r.conditional)({text:[{codes:(0,t.readBytes)(2)},{blockSize:(0,t.readByte)()},{preData:function(e,r,n){return(0,t.readBytes)(n.text.blockSize)(e)}},a]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&1===r[1]})),d=(0,r.conditional)({application:[{codes:(0,t.readBytes)(2)},{blockSize:(0,t.readByte)()},{id:function(e,r,n){return(0,t.readString)(n.blockSize)(e)}},a]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&255===r[1]})),c=(0,r.conditional)({comment:[{codes:(0,t.readBytes)(2)},a]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&254===r[1]})),u=[{header:[{signature:(0,t.readString)(3)},{version:(0,t.readString)(3)}]},{lsd:[{width:(0,t.readUnsigned)(!0)},{height:(0,t.readUnsigned)(!0)},{gct:(0,t.readBits)({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:(0,t.readByte)()},{pixelAspectRatio:(0,t.readByte)()}]},(0,r.conditional)({gct:(0,t.readArray)(3,(function(e,r){return Math.pow(2,r.lsd.gct.size+1)}))},(function(e,r){return r.lsd.gct.exists})),{frames:(0,r.loop)([i,d,c,o,s],(function(e){var r=(0,t.peekByte)()(e);return 33===r||44===r}))}];n.default=u})),a=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.deinterlace=void 0;r.deinterlace=function(e,r){for(var t=new Array(e.length),n=e.length/r,a=function(n,a){var i=e.slice(a*r,(a+1)*r);t.splice.apply(t,[n*r,r].concat(i))},i=[0,4,2,1],o=[8,8,4,2],s=0,d=0;d<4;d++)for(var c=i[d];c<n;c+=o[d])a(c,s),s++;return t}})),i=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.lzw=void 0;r.lzw=function(e,r,t){var n,a,i,o,s,d,c,u,l,f,p,g,y,h,v,m,x=4096,B=t,w=new Array(t),b=new Array(x),k=new Array(x),A=new Array(4097);for(s=(a=1<<(f=e))+1,n=a+2,c=-1,i=(1<<(o=f+1))-1,u=0;u<a;u++)b[u]=0,k[u]=u;for(p=g=y=h=v=m=0,l=0;l<B;){if(0===h){if(g<o){p+=r[m]<<g,g+=8,m++;continue}if(u=p&i,p>>=o,g-=o,u>n||u==s)break;if(u==a){i=(1<<(o=f+1))-1,n=a+2,c=-1;continue}if(-1==c){A[h++]=k[u],c=u,y=u;continue}for(d=u,u==n&&(A[h++]=y,u=c);u>a;)A[h++]=k[u],u=b[u];y=255&k[u],A[h++]=y,n<x&&(b[n]=c,k[n]=y,0==(++n&i)&&n<x&&(o++,i+=n)),c=d}h--,w[v++]=A[h],l++}for(l=v;l<B;l++)w[l]=0;return w}})),o=e((function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.decompressFrames=o.decompressFrame=o.parseGIF=void 0;var s,d=(s=n)&&s.__esModule?s:{default:s};o.parseGIF=function(e){var n=new Uint8Array(e);return(0,r.parse)((0,t.buildStream)(n),d.default)};var c=function(e,r,t){if(e.image){var n=e.image,o=n.descriptor.width*n.descriptor.height,s=(0,i.lzw)(n.data.minCodeSize,n.data.blocks,o);n.descriptor.lct.interlaced&&(s=(0,a.deinterlace)(s,n.descriptor.width));var d={pixels:s,dims:{top:e.image.descriptor.top,left:e.image.descriptor.left,width:e.image.descriptor.width,height:e.image.descriptor.height}};return n.descriptor.lct&&n.descriptor.lct.exists?d.colorTable=n.lct:d.colorTable=r,e.gce&&(d.delay=10*(e.gce.delay||10),d.disposalType=e.gce.extras.disposal,e.gce.extras.transparentColorGiven&&(d.transparentIndex=e.gce.transparentColorIndex)),t&&(d.patch=function(e){for(var r=e.pixels.length,t=new Uint8ClampedArray(4*r),n=0;n<r;n++){var a=4*n,i=e.pixels[n],o=e.colorTable[i]||[0,0,0];t[a]=o[0],t[a+1]=o[1],t[a+2]=o[2],t[a+3]=i!==e.transparentIndex?255:0}return t}(d)),d}console.warn("gif frame does not have associated image.")};o.decompressFrame=c;o.decompressFrames=function(e,r){return e.frames.filter((function(e){return e.image})).map((function(t){return c(t,e.gct,r)}))}}));const s=(e,r,t)=>{const{width:n,height:a,top:i,left:o}=r.dims,s=i*t.width+o;for(let i=0;i<a;i++)for(let a=0;a<n;a++){const o=i*n+a,d=r.pixels[o];if(d!==r.transparentIndex){const n=s+i*t.width+a,o=r.colorTable[d]||[0,0,0];e[4*n]=o[0],e[4*n+1]=o[1],e[4*n+2]=o[2],e[4*n+3]=255}}return e},d=new Map;self.addEventListener("message",(e=>{const{type:r,src:t}=e.data||e;switch(r){case"parse":if(!d.has(t)){const e=new AbortController,r={signal:e.signal};d.set(t,e),((e,{signal:r})=>fetch(e,{signal:r}).then((e=>{if(!e.headers.get("Content-Type").includes("image/gif"))throw Error(`Wrong content type: "${e.headers.get("Content-Type")}"`);return e.arrayBuffer()})).then((e=>o.parseGIF(e))).then((e=>((e=>{let r=null;for(const t of e.frames)r=t.gce?t.gce:r,"image"in t&&!("gce"in t)&&(t.gce=r)})(e),e))).then((e=>Promise.all([o.decompressFrames(e,!1),{width:e.lsd.width,height:e.lsd.height}]))).then((([e,r])=>{const t=[],n=r.width*r.height*4;for(let a=0;a<e.length;++a){const i=e[a],o=0===a||2===e[a-1].disposalType?new Uint8ClampedArray(n):t[a-1].slice();t.push(s(o,i,r))}return{...r,loaded:!0,delays:e.map((e=>e.delay)),frames:t}})))(t,r).then((e=>{self.postMessage(Object.assign(e,{src:t}),e.frames.map((e=>e.buffer)))})).catch((e=>{self.postMessage({src:t,error:e,loaded:!0})})).finally((()=>{d.delete(t)}))}break;case"cancel":if(d.has(t)){d.get(t).abort(),d.delete(t)}}}));\n';function WorkerFactory(C){const E=new Blob([code],{type:"application/javascript"}),I=URL.createObjectURL(E),B=new Worker(I,C);return URL.revokeObjectURL(I),B}const genearate=C=>({...C,frames:C.frames.map(E=>{const I=new ImageData(C.width,C.height);return I.data.set(new Uint8ClampedArray(E)),I})}),createSingleton=(C,E)=>{const I={};return()=>(I.instance||(I.instance=C()),React.useLayoutEffect(()=>(I.timeout?(clearTimeout(I.timeout),delete I.timeout):I.usageCount=(I.usageCount||0)+1,()=>{I.timeout=setTimeout(()=>{I.usageCount=I.usageCount-1,I.usageCount===0&&(E&&E(I.instance),delete I.instance,delete I.timeout)})}),[I,E]),I.instance)},useUpdatedRef=C=>{const E=React.useRef(C);return React.useEffect(()=>{E.current=C},[C]),E},useEventCallback=C=>{const E=useUpdatedRef(C);return React.useCallback(I=>E.current&&E.current(I),[])},useWorkerSingleton=createSingleton(()=>new WorkerFactory,C=>C.terminate()),useWorkerParser=(C,E)=>{const I=useEventCallback(E),B=useWorkerSingleton();React.useEffect(()=>{if(typeof C=="string"){const U=V=>{const X=V.data||V;if(X.src===C){const Y=X.error?X:genearate(X);I(Y)}};return B.addEventListener("message",U),B.postMessage({src:C,type:"parse"}),()=>{B.postMessage({src:C,type:"cancel"}),B.removeEventListener("message",U)}}},[B,C])},PixiAnimatedSpriteComp=({isPlaying:C,forwardRef:E,...I})=>{const B=React__namespace.useRef(null);return React__namespace.useImperativeHandle(E,()=>B.current,[B]),React__namespace.useEffect(()=>{if(B.current===null)return;const U=B.current;U[C?"gotoAndPlay":"gotoAndStop"](U.currentFrame)},[C]),jsxRuntimeExports.jsx(react.AnimatedSprite,{ref:B,...I,isPlaying:C})},PixiAnimatedSprite=React__namespace.memo(PixiAnimatedSpriteComp),initialState$2={isPlaying:!1,progress:0,speed:1,isMuted:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1,totalFrames:0,totalDuration:0,currentFrame:0},PixiGifSprite=React__namespace.forwardRef((C,E)=>{const[I,B]=React__namespace.useState(0),[U,V]=React__namespace.useState([]),[,X]=React.useState(!1),Y=React.useRef(null),K=React.useRef(null),J=React.useRef(initialState$2),xe=React.useRef(),[Z,_e]=usePlayerState({autoPlay:!1}),{tl:Se}=React.useContext(GsapPixieContext),{src:Ee,uniqueId:Ae,startAt:Re,endAt:Te,frameStartAt:we,frameEndAt:Pe,loop:Ie,visible:Me,disabled:Oe,transformation:{width:Le=0,height:$e=0,x:Ve,y:Xe,colorCorrection:Ue={}},pointerdown:We}=C,{frames:ze,delays:He}=Z;useWorkerParser(Ee,_e);const{temperatureFilter:je,sharpnessFilter:Ne,hueFilter:De,blurFilter:Fe,adjustmentFilter:ke,vignetteFilter:Ge,noiseFilter:Be}=withFiltersHook(Ue),{blurRadius:qe=0,vignette:Ke=0,noise:Ye=0}=Ue,tt=.1;React__namespace.useEffect(()=>{if(!isEmpty$1(ze)){const Je=map$1(ze,rt=>{const{data:nt,width:Qe,height:ot}=rt,lt=new Uint8Array(nt);return PIXI__namespace.Texture.fromBuffer(lt,Qe,ot)}).map((rt,nt)=>({texture:rt,time:He[nt]}));V(Je);let et=0;He.forEach(rt=>{et+=rt}),B(et/1e3),J.current.totalDuration=et,J.current.totalFrames=ze.length}},[Ae,ze,He]);const Ze=()=>{Y.current&&(Y.current.stop(),J.current.isPlaying=!1)},it=()=>{if(Y.current&&xe.current){const st=xe.current.time();let Je=st===0?0:st/tt;Je=isNaN(Je)?0:Je;const et=J.current.totalFrames;Je=Je>et?et:Je,Je=Math.round(Je),Je>=et?(Y.current.gotoAndStop(0),J.current.isPlaying=!1):(Y.current.currentFrame=Je,J.current.isPlaying=!0)}},at=()=>{X(!0)};return React.useEffect(()=>{let st=gsap$2.context(()=>{});if(K.current&&Se.current&&I>0){const Je={duration:Number(I),onInterrupt:Ze,onUpdate:it,onUpdateParams:[we,Pe]},et=Number(Te)-Number(Re),rt=Math.max(0,Math.floor(et/I)-1);xe.current&&xe.current.kill(),st=gsap$2.context(()=>{xe.current=gsap$2.timeline({repeat:Ie?rt:0,repeatDelay:0}).from(K.current,Je,we),Se.current.add(xe.current,Re)})}return()=>{xe.current&&(xe.current.kill(),gsap$2.killTweensOf(xe.current)),st.revert()}},[Ee,Ae,Re,Te,we,Pe,I,Ie]),jsxRuntimeExports.jsx(AbstractContainer,{...C,ref:E,ignoreTlForVideo:!0,isGif:!0,children:jsxRuntimeExports.jsx(react.Container,{ref:K,children:!isEmpty$1(U)&&jsxRuntimeExports.jsx(PixiAnimatedSprite,{x:Ve,y:Xe,width:Le,height:$e,animationSpeed:1,alpha:Me?1:0,loop:Ie,textures:U,onComplete:at,anchor:.5,forwardRef:Y,...!Oe&&Me&&{interactive:!0,pointerdown:We},filters:[je,Ne,De,ke,...qe>0?[Fe]:[],...Ke>0?[Ge]:[],...Ye>0?[Be]:[]]})})})}),PixiTextSprite=React__namespace.forwardRef((C,E)=>{const B=React.useRef(0),U=React.useRef(null),V=React.useRef(16),X=React.useRef(null),Y=React.useRef(null),K=react.useApp(),{visible:J,text:xe,disabled:Z,transformation:_e,pointerdown:Se,onDobuleClick:Ee,uniqueId:Ae,startAt:Re,endAt:Te}=C,{x:we,y:Pe,fontFamily:Ie="Arial",fontWeight:Me="normal",fontStyle:Oe="normal",fontSize:Le=16,fontVariant:$e="normal",fill:Ve="black",stroke:Xe,strokeThickness:Ue=0,blurRadius:We=0,blurEnabled:ze=!1,dropShadowColor:He=null,dropShadow:je=!1,dropShadowBlur:Ne=0,wordWrapWidth:De=5e7,leading:Fe=0,letterSpacing:ke,colorCorrection:Ge={},backgroundColor:Be="transparent",width:qe,height:Ke}=_e,{temperatureFilter:Ye,sharpnessFilter:tt,hueFilter:Ze,blurFilter:it,adjustmentFilter:at}=withFiltersHook(Ge),{blurRadius:st=0}=Ge;useCustomEventListener(Events.FONTS_LOADED,()=>{U.current&&U.current.updateText&&U.current.updateText(!0)}),React__namespace.useEffect(()=>{V.current=Number(Le)},[Le]);const Je=["italic","oblique"].includes(Oe)?Oe:void 0,et=["small-caps"].includes($e),rt=["bold","bolder","lighter","100","200","300"].includes(Me)?Me:void 0,nt=Number(ke)>0?ke:void 0,Qe=Be==="transparent"?null:PIXI__namespace.utils.string2hex(Be),ot=React__namespace.useMemo(()=>new PIXI__namespace.TextStyle({fontFamily:Ie,fontSize:Le,fill:Ve||"white",...Xe&&Ue>0&&{stroke:Xe,strokeThickness:Ue},...Je&&{fontStyle:Je},...et&&{fontVariant:et},...rt&&{fontWeight:rt},...nt&&{letterSpacing:nt},...ze&&{dropShadow:!0,dropShadowBlur:Number(We),dropShadowColor:(He==null?void 0:He.toString())||"black",dropShadowAngle:.5235987755982988,dropShadowDistance:5},...je&&{dropShadow:!0,dropShadowBlur:Number(Ne),dropShadowColor:(He==null?void 0:He.toString())||"black",dropShadowAngle:.5235987755982988,dropShadowDistance:5},wordWrap:!0,breakWords:!0,wordWrapWidth:De||500,leading:Fe||0}),[ze,We,Ve,Ie,Le,Oe,Fe,Je,rt,et,nt,He,Xe,Ue,De,je,Ne]);React__namespace.useEffect(()=>{X.current={..._e}},[_e]),React__namespace.useImperativeHandle(E,()=>({setWordWrap:(dt,vt={x:1,y:1})=>{if(U.current){U.current.style.wordWrapWidth=dt,U.current.dirty=!0;const pt=1/vt.x,bt=1/vt.y;U.current.scale.set(pt,bt),U.current.updateText(!0)}},setFontSizeAndTransform:(dt,vt,pt={x:1,y:1})=>{if(U.current){U.current.style.wordWrapWidth=dt,U.current.style.fontSize=vt,U.current.dirty=!0;const bt=1/pt.x,St=1/pt.y;U.current.scale.set(bt,St),U.current.updateText(!0)}},resetScale:()=>{U.current&&U.current.scale.set(1,1)}}),[Ae,Re,Te]);const lt=React__namespace.useCallback((dt,vt={x:1,y:1})=>{if(U.current){U.current.style.wordWrapWidth=dt,U.current.dirty=!0;const pt=1/vt.x,bt=1/vt.y;U.current.scale.set(pt,bt),U.current.updateText(!0)}},[U.current]),ut=React__namespace.useCallback((dt,vt,pt={x:1,y:1})=>{if(U.current){U.current.style.wordWrapWidth=dt,U.current.style.fontSize=vt,U.current.dirty=!0;const bt=1/pt.x,St=1/pt.y;U.current.scale.set(bt,St),U.current.updateText(!0)}},[U.current,X.current]);React__namespace.useEffect(()=>{if(Qe===null||Qe===0)return;const dt=new PIXI__namespace.Graphics;dt.beginFill(Qe||16724736),dt.drawRect(0,0,qe,Ke),dt.endFill(),Y.current&&(Y.current.texture=K.renderer.generateTexture(dt),Y.current.texture.update())},[Qe,qe,Ke]);const mt=()=>{const dt=new Date().getTime();dt-B.current<300&&Ee?Ee():Se&&Se(),B.current=dt},_t=()=>{!Z&&Ee&&Ee()};return jsxRuntimeExports.jsxs(AbstractContainer,{...C,ref:E,isText:!0,onDoubleClick:_t,handleDragWordWrap:lt,handleDragFontSize:ut,children:[jsxRuntimeExports.jsx(react.Sprite,{texture:PIXI__namespace.Texture.WHITE,x:we,y:Pe,width:qe||100,height:Ke||100,anchor:.5,alpha:J&&Qe?1:0,ref:Y}),jsxRuntimeExports.jsx(react.Text,{style:ot,x:we,y:Pe,anchor:.5,text:xe,alpha:J?1:0,...J&&!Z&&{interactive:!0,buttonMode:!0,pointerdown:mt},ref:U,filters:[Ye,tt,Ze,at,...st>0?[it]:[]]})]})});var root=_root,now$1=function(){return root.Date.now()},now_1=now$1,reWhitespace=/\s/;function trimmedEndIndex$1(C){for(var E=C.length;E--&&reWhitespace.test(C.charAt(E)););return E}var _trimmedEndIndex=trimmedEndIndex$1,trimmedEndIndex=_trimmedEndIndex,reTrimStart=/^\s+/;function baseTrim$1(C){return C&&C.slice(0,trimmedEndIndex(C)+1).replace(reTrimStart,"")}var _baseTrim=baseTrim$1,baseTrim=_baseTrim,isObject$1=isObject_1,isSymbol=isSymbol_1,NAN=0/0,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber$1(C){if(typeof C=="number")return C;if(isSymbol(C))return NAN;if(isObject$1(C)){var E=typeof C.valueOf=="function"?C.valueOf():C;C=isObject$1(E)?E+"":E}if(typeof C!="string")return C===0?C:+C;C=baseTrim(C);var I=reIsBinary.test(C);return I||reIsOctal.test(C)?freeParseInt(C.slice(2),I?2:8):reIsBadHex.test(C)?NAN:+C}var toNumber_1=toNumber$1,isObject=isObject_1,now=now_1,toNumber=toNumber_1,FUNC_ERROR_TEXT="Expected a function",nativeMax=Math.max,nativeMin=Math.min;function debounce(C,E,I){var B,U,V,X,Y,K,J=0,xe=!1,Z=!1,_e=!0;if(typeof C!="function")throw new TypeError(FUNC_ERROR_TEXT);E=toNumber(E)||0,isObject(I)&&(xe=!!I.leading,Z="maxWait"in I,V=Z?nativeMax(toNumber(I.maxWait)||0,E):V,_e="trailing"in I?!!I.trailing:_e);function Se(Oe){var Le=B,$e=U;return B=U=void 0,J=Oe,X=C.apply($e,Le),X}function Ee(Oe){return J=Oe,Y=setTimeout(Te,E),xe?Se(Oe):X}function Ae(Oe){var Le=Oe-K,$e=Oe-J,Ve=E-Le;return Z?nativeMin(Ve,V-$e):Ve}function Re(Oe){var Le=Oe-K,$e=Oe-J;return K===void 0||Le>=E||Le<0||Z&&$e>=V}function Te(){var Oe=now();if(Re(Oe))return we(Oe);Y=setTimeout(Te,Ae(Oe))}function we(Oe){return Y=void 0,_e&&B?Se(Oe):(B=U=void 0,X)}function Pe(){Y!==void 0&&clearTimeout(Y),J=0,B=K=U=Y=void 0}function Ie(){return Y===void 0?X:we(now())}function Me(){var Oe=now(),Le=Re(Oe);if(B=arguments,U=this,K=Oe,Le){if(Y===void 0)return Ee(K);if(Z)return clearTimeout(Y),Y=setTimeout(Te,E),Se(K)}return Y===void 0&&(Y=setTimeout(Te,E)),X}return Me.cancel=Pe,Me.flush=Ie,Me}var debounce_1=debounce;const debounce$1=getDefaultExportFromCjs(debounce_1),useDebouncedPointerEvents=(C,E,I,B)=>{const U=React.useCallback(debounce$1(C,B),[C,B]),V=React.useCallback(debounce$1(E,B),[E,B]),X=React.useCallback(debounce$1(I,B),[I,B]),Y=React.useCallback(()=>{U()},[U]),K=React.useCallback(()=>{V()},[V]),J=React.useCallback(()=>{X()},[X]);return{onPointerOver:Y,onPointerDown:K,onPointerOut:J}},initialState$1={isPlaying:!1,progress:0,speed:1,isMuted:!1,isWaiting:!1,isStalled:!1,loaded:!1,size:{width:50,height:50},isDragging:!1,timeDiff:0},PixiVideoSprite=React__namespace.forwardRef((C,E)=>{const[I,B]=React__namespace.useState(!1),U=React__namespace.useRef(),V=React.useRef(null),X=React.useRef(null),Y=React.useRef(null),K=React.useRef(initialState$1),J=React.useRef(),{uniqueId:xe,mute:Z=!1,src:_e,startAt:Se,endAt:Ee,frameStartAt:Ae,frameEndAt:Re,visible:Te,disabled:we,transformation:{x:Pe,y:Ie,width:Me,height:Oe,animation:Le,colorCorrection:$e={}},pointerdown:Ve=()=>{},pointerout:Xe=()=>{},pointerover:Ue=()=>{},fps:We=0}=C,{tl:ze,dragModeRef:He,isRemotion:je}=React.useContext(GsapPixieContext),{onPointerDown:Ne,onPointerOut:De,onPointerOver:Fe}=useDebouncedPointerEvents(Ue,Ve,Xe,1),{blurRadius:ke=0,vignette:Ge=0,noise:Be=0}=$e,{temperatureFilter:qe,sharpnessFilter:Ke,hueFilter:Ye,blurFilter:tt,adjustmentFilter:Ze,vignetteFilter:it,noiseFilter:at}=withFiltersHook($e),st=_e||"",Je=React__namespace.useMemo(()=>{const ot=document.createElement("video");return ot.src=_e,ot.crossOrigin="Anonymus",ot.autoplay=!1,ot.currentTime=Ae===0?.001:Ae,ot},[_e,Ae]);useCustomEventListener(Events.PAUSE,()=>{Y.current&&(Y.current.pause(),K.current.isPlaying=!1)}),useCustomEventListener(Events.SCRUBBER_CLICKED,()=>{Y.current&&(Y.current.pause(),K.current.isPlaying=!1)}),useCustomEventListener(Events.REVERSE_MODE_END,()=>{Y.current&&(Y.current.pause(),K.current.isPlaying=!1)});const et=ot=>{if(Y.current){if(Y.current.currentTime=Number(ot),!He.current){const lt=Y.current,ut=lt.currentTime>0&&!lt.paused&&!lt.ended&&lt.readyState>lt.HAVE_CURRENT_DATA;ze.current&&ze.current.isActive()&&J.current&&J.current.isActive()&&(ut||Y.current.play(),K.current.isPlaying=!0)}K.current.progress=0}},rt=()=>{if(Y.current){const ot=Y.current;ot.currentTime>0&&!ot.paused&&!ot.ended&&ot.readyState>ot.HAVE_CURRENT_DATA&&Y.current.pause(),K.current.isPlaying=!1,J.current&&(K.current.progress=J.current.progress())}},nt=()=>{},Qe=()=>{var ot,lt;if(J.current&&(K.current.progress=J.current.progress()),Y.current&&J.current){const ut=Ae+((ot=J==null?void 0:J.current)==null?void 0:ot.time()),mt=Math.abs(Y.current.currentTime-ut),_t=Y.current,dt=_t.currentTime>0&&!_t.paused&&!_t.ended&&_t.readyState>_t.HAVE_CURRENT_DATA;He.current&&U.current?(Y.current.currentTime=ut,U.current.update(),K.current.isPlaying=!1):(dt!==K.current.isPlaying||!dt)&&K.current.progress>.01&&K.current.progress<.99?(lt=ze.current)!=null&&lt.isActive()&&J.current&&J.current.isActive()&&(dt||Y.current.play(),K.current.isPlaying=!0):mt>.3&&K.current.progress>.01&&K.current.progress<.99&&(Y.current.currentTime=ut)}};return React.useEffect(()=>{let ot=gsap$2.context(()=>{});if(X.current&&ze.current){const lt={duration:Number(Ee)-Number(Se),onStart:et,onComplete:rt,onStartParams:[Ae,Re],onCompleteParams:[],onInterrupt:nt,onUpdate:Qe,onUpdateParams:[Ae,Re],onPause:()=>{console.log("onPause video sprite pause",xe)},onResume:()=>{console.log("onResume video sprite resume",xe)},onReverseComplete:()=>{console.log("onReverseComplete video sprite reverse complete",xe)},onKill:()=>{console.log("onKill video sprite kill",xe)}};J.current&&(J.current.kill(),ze.current.remove(J.current)),ot=gsap$2.context(()=>{J.current=gsap$2.to(X.current,lt,Ae),ze.current.add(J.current,Se)})}return()=>{J.current&&(J.current.kill(),gsap$2.killTweensOf(J.current)),ot.revert()}},[Le,Se,Ee,Ae,Re,xe]),React__namespace.useEffect(()=>{Y.current&&(Y.current.muted=Z,K.current.isMuted=Z);const ot=setTimeout(()=>{Y.current&&(Y.current.muted=Z,K.current.isMuted=Z)},1500);return()=>{clearTimeout(ot)}},[Z]),React__namespace.useEffect(()=>{const ot=Math.round((Number(Ae)+Number.EPSILON)*100)/100,lt=function(){Y.current&&(Y.current.currentTime=ot,Y.current.muted=Z)},ut=function(){K.current.isWaiting=!1,K.current.isStalled=!1},mt=function(){K.current.isWaiting=!0,K.current.isStalled=!1},_t=function(){K.current.isWaiting=!1,K.current.isStalled=!1},dt=function(){K.current.isWaiting=!1,K.current.isStalled=!0},vt=Math.round((Number(Ae)+Number.EPSILON)*100)/100,pt=Math.round((Number(Re)+Number.EPSILON)*100)/100,bt=`${st}#t=${vt},${pt}`;return PIXI__namespace.Texture.fromLoader(Je,bt,xe,{pixiIdPrefix:xe,resourceOptions:{autoPlay:!1,crossorigin:"Anonymus",updateFPS:We?Math.max(120,Number(We)):30}}).then(St=>{St&&(U.current=St,B(!0),Y.current=St.baseTexture.resource.source,Y.current.id=xe,Y.current.addEventListener("loadedmetadata",lt),Y.current.addEventListener("ended",ut),Y.current.addEventListener("loadstart",mt),Y.current.addEventListener("canplaythrough",_t),Y.current.addEventListener("stalled",dt))}),()=>{Y.current&&(Y.current.pause(),Y.current.removeEventListener("loadedmetadata",lt),Y.current.removeEventListener("ended",ut),Y.current.removeEventListener("loadstart",mt),Y.current.removeEventListener("canplaythrough",_t),Y.current.removeEventListener("stalled",dt))}},[st,xe,Ae,Re,Je]),React__namespace.useEffect(()=>{const ot=setTimeout(()=>{I&&U.current&&J.current&&ze.current&&J.current.progress()<.1&&Y.current&&!J.current.isActive()&&!je&&(Y.current.currentTime=Ae,U.current.update())},30);return()=>{clearTimeout(ot)}},[I]),jsxRuntimeExports.jsx(AbstractContainer,{...C,ref:E,ignoreTlForVideo:!0,pointerdown:Ne,pointerover:Fe,pointerout:De,children:jsxRuntimeExports.jsx(react.Container,{ref:X,children:U.current&&jsxRuntimeExports.jsx(react.Sprite,{texture:U.current,width:Me,height:Oe,anchor:.5,x:Pe,y:Ie,ref:V,alpha:Te?1:0,...!we&&Te&&{interactive:!0,pointerdown:Ve},filters:[qe,Ke,Ye,Ze,...ke>0?[tt]:[],...Ge>0?[it]:[],...Be>0?[at]:[]]})})})});PixiVideoSprite.whyDidYouRender={logOnDifferentValues:!0,customName:"PixiVideoSprite"};const PixiVideoCanvasSyncSprite=React__namespace.forwardRef((C,E)=>{const[I,B]=React__namespace.useState(),U=React.useRef(null),V=React.useRef(null),{visible:X,disabled:Y,transformation:{x:K,y:J,width:xe,height:Z,colorCorrection:_e={}},pointerdown:Se=()=>{},pointerout:Ee=()=>{},pointerover:Ae=()=>{},canvasImageRef:Re}=C,Te=Re&&(Re==null?void 0:Re.getCanvas()),we=react.useApp(),{onPointerDown:Pe,onPointerOut:Ie,onPointerOver:Me}=useDebouncedPointerEvents(Ae,Se,Ee,1),{blurRadius:Oe=0,vignette:Le=0,noise:$e=0}=_e,{temperatureFilter:Ve,sharpnessFilter:Xe,hueFilter:Ue,blurFilter:We,adjustmentFilter:ze,vignetteFilter:He,noiseFilter:je}=withFiltersHook(_e);return react.useTick(()=>{if(U.current&&U.current.texture){const Ne=U.current.texture.baseTexture;Ne&&Ne.update(),V.current&&we.renderer.render(V.current)}}),React__namespace.useEffect(()=>{if(!isEmpty$1(Te)){const Ne=PIXI__namespace.Texture.from(Te);B(Ne)}},[Te]),jsxRuntimeExports.jsx(AbstractContainer,{...C,ref:E,ignoreTlForVideo:!0,pointerdown:Pe,pointerover:Me,pointerout:Ie,children:jsxRuntimeExports.jsx(react.Container,{ref:V,children:I&&jsxRuntimeExports.jsx(react.Sprite,{texture:I,width:xe,height:Z,anchor:.5,x:K,y:J,ref:U,alpha:X?1:0,...!Y&&X&&{interactive:!0,pointerdown:Se},filters:[Ve,Xe,Ue,ze,...Oe>0?[We]:[],...Le>0?[He]:[],...$e>0?[je]:[]]})})})}),PixiSequence=C=>{const{startAt:E,endAt:I,uniqueId:B}=C,U=React.useRef(null),V=React.useRef(null),X=React.useRef(null),Y=React.useRef(null),{tl:K,totalDuration:J=0}=React.useContext(GsapPixieContext);return React__namespace.useEffect(()=>{const xe=gsap$2.context(()=>{if(U.current&&K.current){Y.current&&(Y.current.kill(),K.current.remove(Y.current));const Z=E<.2?1:0;Y.current=gsap$2.timeline().set(U.current,{alpha:Z}).set(U.current,{pixi:{alpha:1,eventMode:"static"}},.01).to(U.current,{pixi:{},duration:Number(I)-Number(E)}).set(U.current,{alpha:0,eventMode:"none"}),K.current.add([Y.current],E)}});return()=>{Y.current&&(K.current.remove(Y.current),Y.current.progress(0).kill()),xe.revert()}},[E,I,J,B]),jsxRuntimeExports.jsx(react.Container,{ref:U,alpha:E<.2?1:0,eventMode:E<.2?"static":"none",children:jsxRuntimeExports.jsx(react.Container,{ref:X,children:jsxRuntimeExports.jsx(react.Container,{ref:V,alpha:1,children:C.children})})})},PixiSequenceWrapper=C=>{const{startAt:E,endAt:I}=C,{setTotalDuration:B}=React.useContext(GsapPixieContext);return React__namespace.useEffect(()=>{B&&B(Number(I)+.2)},[E,I]),C.children},PixiRemotionSprite=React__namespace.forwardRef((C,E)=>{const[I,B]=React__namespace.useState(),U=React.useRef(null),V=React.useRef(null),{visible:X,disabled:Y,transformation:{x:K,y:J,width:xe,height:Z,colorCorrection:_e={}},pointerdown:Se=()=>{},pointerout:Ee=()=>{},pointerover:Ae=()=>{},canvasImageRef:Re}=C,Te=Re&&(Re==null?void 0:Re.getCanvas()),we=react.useApp(),{onPointerDown:Pe,onPointerOut:Ie,onPointerOver:Me}=useDebouncedPointerEvents(Ae,Se,Ee,1),{blurRadius:Oe=0,vignette:Le=0,noise:$e=0}=_e,{temperatureFilter:Ve,sharpnessFilter:Xe,hueFilter:Ue,blurFilter:We,adjustmentFilter:ze,vignetteFilter:He,noiseFilter:je}=withFiltersHook(_e);return react.useTick(()=>{if(U.current&&U.current.texture){const Ne=U.current.texture.baseTexture;Ne&&Ne.update(),V.current&&we.renderer.render(V.current)}}),React__namespace.useEffect(()=>{if(!isEmpty$1(Te)){const Ne=PIXI__namespace.Texture.from(Te);B(Ne)}},[Te]),jsxRuntimeExports.jsx(AbstractContainer,{...C,ref:E,ignoreTlForVideo:!0,pointerdown:Pe,pointerover:Me,pointerout:Ie,children:jsxRuntimeExports.jsx(react.Container,{ref:V,children:I&&jsxRuntimeExports.jsx(react.Sprite,{texture:I,width:xe,height:Z,anchor:.5,x:K,y:J,ref:U,alpha:X?1:0,...!Y&&X&&{interactive:!0,pointerdown:Se},filters:[Ve,Xe,Ue,ze,...Oe>0?[We]:[],...Le>0?[He]:[],...$e>0?[je]:[]]})})})});var lottie$1={exports:{}};(function(module,exports){typeof navigator<"u"&&function(C,E){module.exports=E()}(commonjsGlobal$1,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(E){_useWebWorker=!!E},getWebWorker=function(){return _useWebWorker},setLocationHref=function(E){locationHref=E},getLocationHref=function(){return locationHref};function createTag(C){return document.createElement(C)}function extendPrototype(C,E){var I,B=C.length,U;for(I=0;I<B;I+=1){U=C[I].prototype;for(var V in U)Object.prototype.hasOwnProperty.call(U,V)&&(E.prototype[V]=U[V])}}function getDescriptor(C,E){return Object.getOwnPropertyDescriptor(C,E)}function createProxyFunction(C){function E(){}return E.prototype=C,E}var audioControllerFactory=function(){function C(E){this.audios=[],this.audioFactory=E,this._volume=1,this._isMuted=!1}return C.prototype={addAudio:function(I){this.audios.push(I)},pause:function(){var I,B=this.audios.length;for(I=0;I<B;I+=1)this.audios[I].pause()},resume:function(){var I,B=this.audios.length;for(I=0;I<B;I+=1)this.audios[I].resume()},setRate:function(I){var B,U=this.audios.length;for(B=0;B<U;B+=1)this.audios[B].setRate(I)},createAudio:function(I){return this.audioFactory?this.audioFactory(I):window.Howl?new window.Howl({src:[I]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(I){this.audioFactory=I},setVolume:function(I){this._volume=I,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var I,B=this.audios.length;for(I=0;I<B;I+=1)this.audios[I].volume(this._volume*(this._isMuted?0:1))}},function(){return new C}}(),createTypedArray=function(){function C(I,B){var U=0,V=[],X;switch(I){case"int16":case"uint8c":X=1;break;default:X=1.1;break}for(U=0;U<B;U+=1)V.push(X);return V}function E(I,B){return I==="float32"?new Float32Array(B):I==="int16"?new Int16Array(B):I==="uint8c"?new Uint8ClampedArray(B):C(I,B)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?E:C}();function createSizedArray(C){return Array.apply(null,{length:C})}function _typeof$6(C){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$6=function(I){return typeof I}:_typeof$6=function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},_typeof$6(C)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var C=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],E,I=C.length;for(E=0;E<I;E+=1)BMMath[C[E]]=Math[C[E]]})(),BMMath.random=Math.random,BMMath.abs=function(C){var E=_typeof$6(C);if(E==="object"&&C.length){var I=createSizedArray(C.length),B,U=C.length;for(B=0;B<U;B+=1)I[B]=Math.abs(C[B]);return I}return Math.abs(C)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(C){C.style.position="absolute",C.style.top=0,C.style.left=0,C.style.display="block",C.style.transformOrigin="0 0",C.style.webkitTransformOrigin="0 0",C.style.backfaceVisibility="visible",C.style.webkitBackfaceVisibility="visible",C.style.transformStyle="preserve-3d",C.style.webkitTransformStyle="preserve-3d",C.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(C,E,I,B){this.type=C,this.currentTime=E,this.totalTime=I,this.direction=B<0?-1:1}function BMCompleteEvent(C,E){this.type=C,this.direction=E<0?-1:1}function BMCompleteLoopEvent(C,E,I,B){this.type=C,this.currentLoop=I,this.totalLoops=E,this.direction=B<0?-1:1}function BMSegmentStartEvent(C,E,I){this.type=C,this.firstFrame=E,this.totalFrames=I}function BMDestroyEvent(C,E){this.type=C,this.target=E}function BMRenderFrameErrorEvent(C,E){this.type="renderFrameError",this.nativeError=C,this.currentTime=E}function BMConfigErrorEvent(C){this.type="configError",this.nativeError=C}var createElementID=function(){var C=0;return function(){return C+=1,idPrefix$1+"__lottie_element_"+C}}();function HSVtoRGB(C,E,I){var B,U,V,X,Y,K,J,xe;switch(X=Math.floor(C*6),Y=C*6-X,K=I*(1-E),J=I*(1-Y*E),xe=I*(1-(1-Y)*E),X%6){case 0:B=I,U=xe,V=K;break;case 1:B=J,U=I,V=K;break;case 2:B=K,U=I,V=xe;break;case 3:B=K,U=J,V=I;break;case 4:B=xe,U=K,V=I;break;case 5:B=I,U=K,V=J;break}return[B,U,V]}function RGBtoHSV(C,E,I){var B=Math.max(C,E,I),U=Math.min(C,E,I),V=B-U,X,Y=B===0?0:V/B,K=B/255;switch(B){case U:X=0;break;case C:X=E-I+V*(E<I?6:0),X/=6*V;break;case E:X=I-C+V*2,X/=6*V;break;case I:X=C-E+V*4,X/=6*V;break}return[X,Y,K]}function addSaturationToRGB(C,E){var I=RGBtoHSV(C[0]*255,C[1]*255,C[2]*255);return I[1]+=E,I[1]>1?I[1]=1:I[1]<=0&&(I[1]=0),HSVtoRGB(I[0],I[1],I[2])}function addBrightnessToRGB(C,E){var I=RGBtoHSV(C[0]*255,C[1]*255,C[2]*255);return I[2]+=E,I[2]>1?I[2]=1:I[2]<0&&(I[2]=0),HSVtoRGB(I[0],I[1],I[2])}function addHueToRGB(C,E){var I=RGBtoHSV(C[0]*255,C[1]*255,C[2]*255);return I[0]+=E/360,I[0]>1?I[0]-=1:I[0]<0&&(I[0]+=1),HSVtoRGB(I[0],I[1],I[2])}var rgbToHex=function(){var C=[],E,I;for(E=0;E<256;E+=1)I=E.toString(16),C[E]=I.length===1?"0"+I:I;return function(B,U,V){return B<0&&(B=0),U<0&&(U=0),V<0&&(V=0),"#"+C[B]+C[U]+C[V]}}(),setSubframeEnabled=function(E){subframeEnabled=!!E},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(E){expressionsPlugin=E},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(E){expressionsInterfaces=E},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(E){defaultCurveSegments=E},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(E){idPrefix$1=E};function createNS(C){return document.createElementNS(svgNS,C)}function _typeof$5(C){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(I){return typeof I}:_typeof$5=function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},_typeof$5(C)}var dataManager=function(){var C=1,E=[],I,B,U={onmessage:function(){},postMessage:function(Se){I({data:Se})}},V={postMessage:function(Se){U.onmessage({data:Se})}};function X(_e){if(window.Worker&&window.Blob&&getWebWorker()){var Se=new Blob(["var _workerSelf = self; self.onmessage = ",_e.toString()],{type:"text/javascript"}),Ee=URL.createObjectURL(Se);return new Worker(Ee)}return I=_e,U}function Y(){B||(B=X(function(Se){function Ee(){function Re(je,Ne){var De,Fe,ke=je.length,Ge,Be,qe,Ke;for(Fe=0;Fe<ke;Fe+=1)if(De=je[Fe],"ks"in De&&!De.completed){if(De.completed=!0,De.hasMask){var Ye=De.masksProperties;for(Be=Ye.length,Ge=0;Ge<Be;Ge+=1)if(Ye[Ge].pt.k.i)Me(Ye[Ge].pt.k);else for(Ke=Ye[Ge].pt.k.length,qe=0;qe<Ke;qe+=1)Ye[Ge].pt.k[qe].s&&Me(Ye[Ge].pt.k[qe].s[0]),Ye[Ge].pt.k[qe].e&&Me(Ye[Ge].pt.k[qe].e[0])}De.ty===0?(De.layers=Pe(De.refId,Ne),Re(De.layers,Ne)):De.ty===4?Ie(De.shapes):De.ty===5&&ze(De)}}function Te(je,Ne){if(je){var De=0,Fe=je.length;for(De=0;De<Fe;De+=1)je[De].t===1&&(je[De].data.layers=Pe(je[De].data.refId,Ne),Re(je[De].data.layers,Ne))}}function we(je,Ne){for(var De=0,Fe=Ne.length;De<Fe;){if(Ne[De].id===je)return Ne[De];De+=1}return null}function Pe(je,Ne){var De=we(je,Ne);return De?De.layers.__used?JSON.parse(JSON.stringify(De.layers)):(De.layers.__used=!0,De.layers):null}function Ie(je){var Ne,De=je.length,Fe,ke;for(Ne=De-1;Ne>=0;Ne-=1)if(je[Ne].ty==="sh")if(je[Ne].ks.k.i)Me(je[Ne].ks.k);else for(ke=je[Ne].ks.k.length,Fe=0;Fe<ke;Fe+=1)je[Ne].ks.k[Fe].s&&Me(je[Ne].ks.k[Fe].s[0]),je[Ne].ks.k[Fe].e&&Me(je[Ne].ks.k[Fe].e[0]);else je[Ne].ty==="gr"&&Ie(je[Ne].it)}function Me(je){var Ne,De=je.i.length;for(Ne=0;Ne<De;Ne+=1)je.i[Ne][0]+=je.v[Ne][0],je.i[Ne][1]+=je.v[Ne][1],je.o[Ne][0]+=je.v[Ne][0],je.o[Ne][1]+=je.v[Ne][1]}function Oe(je,Ne){var De=Ne?Ne.split("."):[100,100,100];return je[0]>De[0]?!0:De[0]>je[0]?!1:je[1]>De[1]?!0:De[1]>je[1]?!1:je[2]>De[2]?!0:De[2]>je[2]?!1:null}var Le=function(){var je=[4,4,14];function Ne(Fe){var ke=Fe.t.d;Fe.t.d={k:[{s:ke,t:0}]}}function De(Fe){var ke,Ge=Fe.length;for(ke=0;ke<Ge;ke+=1)Fe[ke].ty===5&&Ne(Fe[ke])}return function(Fe){if(Oe(je,Fe.v)&&(De(Fe.layers),Fe.assets)){var ke,Ge=Fe.assets.length;for(ke=0;ke<Ge;ke+=1)Fe.assets[ke].layers&&De(Fe.assets[ke].layers)}}}(),$e=function(){var je=[4,7,99];return function(Ne){if(Ne.chars&&!Oe(je,Ne.v)){var De,Fe=Ne.chars.length;for(De=0;De<Fe;De+=1){var ke=Ne.chars[De];ke.data&&ke.data.shapes&&(Ie(ke.data.shapes),ke.data.ip=0,ke.data.op=99999,ke.data.st=0,ke.data.sr=1,ke.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}},Ne.chars[De].t||(ke.data.shapes.push({ty:"no"}),ke.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"})))}}}}(),Ve=function(){var je=[5,7,15];function Ne(Fe){var ke=Fe.t.p;typeof ke.a=="number"&&(ke.a={a:0,k:ke.a}),typeof ke.p=="number"&&(ke.p={a:0,k:ke.p}),typeof ke.r=="number"&&(ke.r={a:0,k:ke.r})}function De(Fe){var ke,Ge=Fe.length;for(ke=0;ke<Ge;ke+=1)Fe[ke].ty===5&&Ne(Fe[ke])}return function(Fe){if(Oe(je,Fe.v)&&(De(Fe.layers),Fe.assets)){var ke,Ge=Fe.assets.length;for(ke=0;ke<Ge;ke+=1)Fe.assets[ke].layers&&De(Fe.assets[ke].layers)}}}(),Xe=function(){var je=[4,1,9];function Ne(Fe){var ke,Ge=Fe.length,Be,qe;for(ke=0;ke<Ge;ke+=1)if(Fe[ke].ty==="gr")Ne(Fe[ke].it);else if(Fe[ke].ty==="fl"||Fe[ke].ty==="st")if(Fe[ke].c.k&&Fe[ke].c.k[0].i)for(qe=Fe[ke].c.k.length,Be=0;Be<qe;Be+=1)Fe[ke].c.k[Be].s&&(Fe[ke].c.k[Be].s[0]/=255,Fe[ke].c.k[Be].s[1]/=255,Fe[ke].c.k[Be].s[2]/=255,Fe[ke].c.k[Be].s[3]/=255),Fe[ke].c.k[Be].e&&(Fe[ke].c.k[Be].e[0]/=255,Fe[ke].c.k[Be].e[1]/=255,Fe[ke].c.k[Be].e[2]/=255,Fe[ke].c.k[Be].e[3]/=255);else Fe[ke].c.k[0]/=255,Fe[ke].c.k[1]/=255,Fe[ke].c.k[2]/=255,Fe[ke].c.k[3]/=255}function De(Fe){var ke,Ge=Fe.length;for(ke=0;ke<Ge;ke+=1)Fe[ke].ty===4&&Ne(Fe[ke].shapes)}return function(Fe){if(Oe(je,Fe.v)&&(De(Fe.layers),Fe.assets)){var ke,Ge=Fe.assets.length;for(ke=0;ke<Ge;ke+=1)Fe.assets[ke].layers&&De(Fe.assets[ke].layers)}}}(),Ue=function(){var je=[4,4,18];function Ne(Fe){var ke,Ge=Fe.length,Be,qe;for(ke=Ge-1;ke>=0;ke-=1)if(Fe[ke].ty==="sh")if(Fe[ke].ks.k.i)Fe[ke].ks.k.c=Fe[ke].closed;else for(qe=Fe[ke].ks.k.length,Be=0;Be<qe;Be+=1)Fe[ke].ks.k[Be].s&&(Fe[ke].ks.k[Be].s[0].c=Fe[ke].closed),Fe[ke].ks.k[Be].e&&(Fe[ke].ks.k[Be].e[0].c=Fe[ke].closed);else Fe[ke].ty==="gr"&&Ne(Fe[ke].it)}function De(Fe){var ke,Ge,Be=Fe.length,qe,Ke,Ye,tt;for(Ge=0;Ge<Be;Ge+=1){if(ke=Fe[Ge],ke.hasMask){var Ze=ke.masksProperties;for(Ke=Ze.length,qe=0;qe<Ke;qe+=1)if(Ze[qe].pt.k.i)Ze[qe].pt.k.c=Ze[qe].cl;else for(tt=Ze[qe].pt.k.length,Ye=0;Ye<tt;Ye+=1)Ze[qe].pt.k[Ye].s&&(Ze[qe].pt.k[Ye].s[0].c=Ze[qe].cl),Ze[qe].pt.k[Ye].e&&(Ze[qe].pt.k[Ye].e[0].c=Ze[qe].cl)}ke.ty===4&&Ne(ke.shapes)}}return function(Fe){if(Oe(je,Fe.v)&&(De(Fe.layers),Fe.assets)){var ke,Ge=Fe.assets.length;for(ke=0;ke<Ge;ke+=1)Fe.assets[ke].layers&&De(Fe.assets[ke].layers)}}}();function We(je){je.__complete||(Xe(je),Le(je),$e(je),Ve(je),Ue(je),Re(je.layers,je.assets),Te(je.chars,je.assets),je.__complete=!0)}function ze(je){je.t.a.length===0&&"m"in je.t.p}var He={};return He.completeData=We,He.checkColors=Xe,He.checkChars=$e,He.checkPathProperties=Ve,He.checkShapes=Ue,He.completeLayers=Re,He}if(V.dataManager||(V.dataManager=Ee()),V.assetLoader||(V.assetLoader=function(){function Re(we){var Pe=we.getResponseHeader("content-type");return Pe&&we.responseType==="json"&&Pe.indexOf("json")!==-1||we.response&&_typeof$5(we.response)==="object"?we.response:we.response&&typeof we.response=="string"?JSON.parse(we.response):we.responseText?JSON.parse(we.responseText):null}function Te(we,Pe,Ie,Me){var Oe,Le=new XMLHttpRequest;try{Le.responseType="json"}catch{}Le.onreadystatechange=function(){if(Le.readyState===4)if(Le.status===200)Oe=Re(Le),Ie(Oe);else try{Oe=Re(Le),Ie(Oe)}catch($e){Me&&Me($e)}};try{Le.open(["G","E","T"].join(""),we,!0)}catch{Le.open(["G","E","T"].join(""),Pe+"/"+we,!0)}Le.send()}return{load:Te}}()),Se.data.type==="loadAnimation")V.assetLoader.load(Se.data.path,Se.data.fullPath,function(Re){V.dataManager.completeData(Re),V.postMessage({id:Se.data.id,payload:Re,status:"success"})},function(){V.postMessage({id:Se.data.id,status:"error"})});else if(Se.data.type==="complete"){var Ae=Se.data.animation;V.dataManager.completeData(Ae),V.postMessage({id:Se.data.id,payload:Ae,status:"success"})}else Se.data.type==="loadData"&&V.assetLoader.load(Se.data.path,Se.data.fullPath,function(Re){V.postMessage({id:Se.data.id,payload:Re,status:"success"})},function(){V.postMessage({id:Se.data.id,status:"error"})})}),B.onmessage=function(_e){var Se=_e.data,Ee=Se.id,Ae=E[Ee];E[Ee]=null,Se.status==="success"?Ae.onComplete(Se.payload):Ae.onError&&Ae.onError()})}function K(_e,Se){C+=1;var Ee="processId_"+C;return E[Ee]={onComplete:_e,onError:Se},Ee}function J(_e,Se,Ee){Y();var Ae=K(Se,Ee);B.postMessage({type:"loadAnimation",path:_e,fullPath:window.location.origin+window.location.pathname,id:Ae})}function xe(_e,Se,Ee){Y();var Ae=K(Se,Ee);B.postMessage({type:"loadData",path:_e,fullPath:window.location.origin+window.location.pathname,id:Ae})}function Z(_e,Se,Ee){Y();var Ae=K(Se,Ee);B.postMessage({type:"complete",animation:_e,id:Ae})}return{loadAnimation:J,loadData:xe,completeAnimation:Z}}(),ImagePreloader=function(){var C=function(){var Te=createTag("canvas");Te.width=1,Te.height=1;var we=Te.getContext("2d");return we.fillStyle="rgba(0,0,0,0)",we.fillRect(0,0,1,1),Te}();function E(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function I(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function B(Te,we,Pe){var Ie="";if(Te.e)Ie=Te.p;else if(we){var Me=Te.p;Me.indexOf("images/")!==-1&&(Me=Me.split("/")[1]),Ie=we+Me}else Ie=Pe,Ie+=Te.u?Te.u:"",Ie+=Te.p;return Ie}function U(Te){var we=0,Pe=setInterval((function(){var Ie=Te.getBBox();(Ie.width||we>500)&&(this._imageLoaded(),clearInterval(Pe)),we+=1}).bind(this),50)}function V(Te){var we=B(Te,this.assetsPath,this.path),Pe=createNS("image");isSafari?this.testImageLoaded(Pe):Pe.addEventListener("load",this._imageLoaded,!1),Pe.addEventListener("error",(function(){Ie.img=C,this._imageLoaded()}).bind(this),!1),Pe.setAttributeNS("http://www.w3.org/1999/xlink","href",we),this._elementHelper.append?this._elementHelper.append(Pe):this._elementHelper.appendChild(Pe);var Ie={img:Pe,assetData:Te};return Ie}function X(Te){var we=B(Te,this.assetsPath,this.path),Pe=createTag("img");Pe.crossOrigin="anonymous",Pe.addEventListener("load",this._imageLoaded,!1),Pe.addEventListener("error",(function(){Ie.img=C,this._imageLoaded()}).bind(this),!1),Pe.src=we;var Ie={img:Pe,assetData:Te};return Ie}function Y(Te){var we={assetData:Te},Pe=B(Te,this.assetsPath,this.path);return dataManager.loadData(Pe,(function(Ie){we.img=Ie,this._footageLoaded()}).bind(this),(function(){we.img={},this._footageLoaded()}).bind(this)),we}function K(Te,we){this.imagesLoadedCb=we;var Pe,Ie=Te.length;for(Pe=0;Pe<Ie;Pe+=1)Te[Pe].layers||(!Te[Pe].t||Te[Pe].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(Te[Pe]))):Te[Pe].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(Te[Pe]))))}function J(Te){this.path=Te||""}function xe(Te){this.assetsPath=Te||""}function Z(Te){for(var we=0,Pe=this.images.length;we<Pe;){if(this.images[we].assetData===Te)return this.images[we].img;we+=1}return null}function _e(){this.imagesLoadedCb=null,this.images.length=0}function Se(){return this.totalImages===this.loadedAssets}function Ee(){return this.totalFootages===this.loadedFootagesCount}function Ae(Te,we){Te==="svg"?(this._elementHelper=we,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function Re(){this._imageLoaded=E.bind(this),this._footageLoaded=I.bind(this),this.testImageLoaded=U.bind(this),this.createFootageData=Y.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return Re.prototype={loadAssets:K,setAssetsPath:xe,setPath:J,loadedImages:Se,loadedFootages:Ee,destroy:_e,getAsset:Z,createImgData:X,createImageData:V,imageLoaded:E,footageLoaded:I,setCacheType:Ae},Re}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(E,I){if(this._cbs[E])for(var B=this._cbs[E],U=0;U<B.length;U+=1)B[U](I)},addEventListener:function(E,I){return this._cbs[E]||(this._cbs[E]=[]),this._cbs[E].push(I),(function(){this.removeEventListener(E,I)}).bind(this)},removeEventListener:function(E,I){if(!I)this._cbs[E]=null;else if(this._cbs[E]){for(var B=0,U=this._cbs[E].length;B<U;)this._cbs[E][B]===I&&(this._cbs[E].splice(B,1),B-=1,U-=1),B+=1;this._cbs[E].length||(this._cbs[E]=null)}}};var markerParser=function(){function C(E){for(var I=E.split(`\r
1998
+ `),B={},U,V=0,X=0;X<I.length;X+=1)U=I[X].split(":"),U.length===2&&(B[U[0]]=U[1].trim(),V+=1);if(V===0)throw new Error;return B}return function(E){for(var I=[],B=0;B<E.length;B+=1){var U=E[B],V={time:U.tm,duration:U.dr};try{V.payload=JSON.parse(E[B].cm)}catch{try{V.payload=C(E[B].cm)}catch{V.payload={name:E[B].cm}}}I.push(V)}return I}}(),ProjectInterface=function(){function C(E){this.compositions.push(E)}return function(){function E(I){for(var B=0,U=this.compositions.length;B<U;){if(this.compositions[B].data&&this.compositions[B].data.nm===I)return this.compositions[B].prepareFrame&&this.compositions[B].data.xt&&this.compositions[B].prepareFrame(this.currentFrame),this.compositions[B].compInterface;B+=1}return null}return E.compositions=[],E.currentFrame=0,E.registerComposition=C,E}}(),renderers={},registerRenderer=function(E,I){renderers[E]=I};function getRenderer(C){return renderers[C]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var C in renderers)if(renderers[C])return C;return""}function _typeof$4(C){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$4=function(I){return typeof I}:_typeof$4=function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},_typeof$4(C)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(C){(C.wrapper||C.container)&&(this.wrapper=C.wrapper||C.container);var E="svg";C.animType?E=C.animType:C.renderer&&(E=C.renderer);var I=getRenderer(E);this.renderer=new I(this,C.rendererSettings),this.imagePreloader.setCacheType(E,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=E,C.loop===""||C.loop===null||C.loop===void 0||C.loop===!0?this.loop=!0:C.loop===!1?this.loop=!1:this.loop=parseInt(C.loop,10),this.autoplay="autoplay"in C?C.autoplay:!0,this.name=C.name?C.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(C,"autoloadSegments")?C.autoloadSegments:!0,this.assetsPath=C.assetsPath,this.initialSegment=C.initialSegment,C.audioFactory&&this.audioController.setAudioFactory(C.audioFactory),C.animationData?this.setupAnimation(C.animationData):C.path&&(C.path.lastIndexOf("\\")!==-1?this.path=C.path.substr(0,C.path.lastIndexOf("\\")+1):this.path=C.path.substr(0,C.path.lastIndexOf("/")+1),this.fileName=C.path.substr(C.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(C.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(C){dataManager.completeAnimation(C,this.configAnimation)},AnimationItem.prototype.setData=function(C,E){E&&_typeof$4(E)!=="object"&&(E=JSON.parse(E));var I={wrapper:C,animationData:E},B=C.attributes;I.path=B.getNamedItem("data-animation-path")?B.getNamedItem("data-animation-path").value:B.getNamedItem("data-bm-path")?B.getNamedItem("data-bm-path").value:B.getNamedItem("bm-path")?B.getNamedItem("bm-path").value:"",I.animType=B.getNamedItem("data-anim-type")?B.getNamedItem("data-anim-type").value:B.getNamedItem("data-bm-type")?B.getNamedItem("data-bm-type").value:B.getNamedItem("bm-type")?B.getNamedItem("bm-type").value:B.getNamedItem("data-bm-renderer")?B.getNamedItem("data-bm-renderer").value:B.getNamedItem("bm-renderer")?B.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var U=B.getNamedItem("data-anim-loop")?B.getNamedItem("data-anim-loop").value:B.getNamedItem("data-bm-loop")?B.getNamedItem("data-bm-loop").value:B.getNamedItem("bm-loop")?B.getNamedItem("bm-loop").value:"";U==="false"?I.loop=!1:U==="true"?I.loop=!0:U!==""&&(I.loop=parseInt(U,10));var V=B.getNamedItem("data-anim-autoplay")?B.getNamedItem("data-anim-autoplay").value:B.getNamedItem("data-bm-autoplay")?B.getNamedItem("data-bm-autoplay").value:B.getNamedItem("bm-autoplay")?B.getNamedItem("bm-autoplay").value:!0;I.autoplay=V!=="false",I.name=B.getNamedItem("data-name")?B.getNamedItem("data-name").value:B.getNamedItem("data-bm-name")?B.getNamedItem("data-bm-name").value:B.getNamedItem("bm-name")?B.getNamedItem("bm-name").value:"";var X=B.getNamedItem("data-anim-prerender")?B.getNamedItem("data-anim-prerender").value:B.getNamedItem("data-bm-prerender")?B.getNamedItem("data-bm-prerender").value:B.getNamedItem("bm-prerender")?B.getNamedItem("bm-prerender").value:"";X==="false"&&(I.prerender=!1),I.path?this.setParams(I):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(C){C.op>this.animationData.op&&(this.animationData.op=C.op,this.totalFrames=Math.floor(C.op-this.animationData.ip));var E=this.animationData.layers,I,B=E.length,U=C.layers,V,X=U.length;for(V=0;V<X;V+=1)for(I=0;I<B;){if(E[I].id===U[V].id){E[I]=U[V];break}I+=1}if((C.chars||C.fonts)&&(this.renderer.globalData.fontManager.addChars(C.chars),this.renderer.globalData.fontManager.addFonts(C.fonts,this.renderer.globalData.defs)),C.assets)for(B=C.assets.length,I=0;I<B;I+=1)this.animationData.assets.push(C.assets[I]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(C){this.animationData=C;var E=getExpressionsPlugin();E&&E.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var C=this.animationData.segments;if(!C||C.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var E=C.shift();this.timeCompleted=E.time*this.frameRate;var I=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(I,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},AnimationItem.prototype.loadSegments=function(){var C=this.animationData.segments;C||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(C){if(this.renderer)try{this.animationData=C,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(C),C.assets||(C.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(C.assets),this.markers=markerParser(C.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(E){this.triggerConfigError(E)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var C=getExpressionsPlugin();C&&C.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(C,E){var I=typeof C=="number"?C:void 0,B=typeof E=="number"?E:void 0;this.renderer.updateContainerSize(I,B)},AnimationItem.prototype.setSubframe=function(C){this.isSubframeEnabled=!!C},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(C){this.triggerRenderFrameError(C)}},AnimationItem.prototype.play=function(C){C&&this.name!==C||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(C){C&&this.name!==C||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(C){C&&this.name!==C||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(C){C&&this.name!==C||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(C){for(var E,I=0;I<this.markers.length;I+=1)if(E=this.markers[I],E.payload&&E.payload.name===C)return E;return null},AnimationItem.prototype.goToAndStop=function(C,E,I){if(!(I&&this.name!==I)){var B=Number(C);if(isNaN(B)){var U=this.getMarkerData(C);U&&this.goToAndStop(U.time,!0)}else E?this.setCurrentRawFrameValue(C):this.setCurrentRawFrameValue(C*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(C,E,I){if(!(I&&this.name!==I)){var B=Number(C);if(isNaN(B)){var U=this.getMarkerData(C);U&&(U.duration?this.playSegments([U.time,U.time+U.duration],!0):this.goToAndStop(U.time,!0))}else this.goToAndStop(B,E,I);this.play()}},AnimationItem.prototype.advanceTime=function(C){if(!(this.isPaused===!0||this.isLoaded===!1)){var E=this.currentRawFrame+C*this.frameModifier,I=!1;E>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(E>this.totalFrames?E%this.totalFrames:0)||(I=!0,E=this.totalFrames-1):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):E<0?this.checkSegments(E%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+E%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(I=!0,E=0)):this.setCurrentRawFrameValue(E),I&&(this.setCurrentRawFrameValue(E),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(C,E){this.playCount=0,C[1]<C[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=C[0]-C[1],this.timeCompleted=this.totalFrames,this.firstFrame=C[1],this.setCurrentRawFrameValue(this.totalFrames-.001-E)):C[1]>C[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=C[1]-C[0],this.timeCompleted=this.totalFrames,this.firstFrame=C[0],this.setCurrentRawFrameValue(.001+E)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(C,E){var I=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<C?I=C:this.currentRawFrame+this.firstFrame>E&&(I=E-C)),this.firstFrame=C,this.totalFrames=E-C,this.timeCompleted=this.totalFrames,I!==-1&&this.goToAndStop(I,!0)},AnimationItem.prototype.playSegments=function(C,E){if(E&&(this.segments.length=0),_typeof$4(C[0])==="object"){var I,B=C.length;for(I=0;I<B;I+=1)this.segments.push(C[I])}else this.segments.push(C);this.segments.length&&E&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(C){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),C&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(C){return this.segments.length?(this.adjustSegment(this.segments.shift(),C),!0):!1},AnimationItem.prototype.destroy=function(C){C&&this.name!==C||!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(C){this.currentRawFrame=C,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(C){this.playSpeed=C,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(C){this.playDirection=C<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(C){this.loop=C},AnimationItem.prototype.setVolume=function(C,E){E&&this.name!==E||this.audioController.setVolume(C)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(C){C&&this.name!==C||this.audioController.mute()},AnimationItem.prototype.unmute=function(C){C&&this.name!==C||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(C){var E="";if(C.e)E=C.p;else if(this.assetsPath){var I=C.p;I.indexOf("images/")!==-1&&(I=I.split("/")[1]),E=this.assetsPath+I}else E=this.path,E+=C.u?C.u:"",E+=C.p;return E},AnimationItem.prototype.getAssetData=function(C){for(var E=0,I=this.assets.length;E<I;){if(C===this.assets[E].id)return this.assets[E];E+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(C){return C?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(C,E,I){try{var B=this.renderer.getElementByPath(C);B.updateDocumentData(E,I)}catch{}},AnimationItem.prototype.trigger=function(C){if(this._cbs&&this._cbs[C])switch(C){case"enterFrame":this.triggerEvent(C,new BMEnterFrameEvent(C,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(C,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(C,new BMCompleteLoopEvent(C,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(C,new BMCompleteEvent(C,this.frameMult));break;case"segmentStart":this.triggerEvent(C,new BMSegmentStartEvent(C,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(C,new BMDestroyEvent(C,this));break;default:this.triggerEvent(C)}C==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(C,this.currentFrame,this.totalFrames,this.frameMult)),C==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(C,this.loop,this.playCount,this.frameMult)),C==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(C,this.frameMult)),C==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(C,this.firstFrame,this.totalFrames)),C==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(C,this))},AnimationItem.prototype.triggerRenderFrameError=function(C){var E=new BMRenderFrameErrorEvent(C,this.currentFrame);this.triggerEvent("error",E),this.onError&&this.onError.call(this,E)},AnimationItem.prototype.triggerConfigError=function(C){var E=new BMConfigErrorEvent(C,this.currentFrame);this.triggerEvent("error",E),this.onError&&this.onError.call(this,E)};var animationManager=function(){var C={},E=[],I=0,B=0,U=0,V=!0,X=!1;function Y(Ne){for(var De=0,Fe=Ne.target;De<B;)E[De].animation===Fe&&(E.splice(De,1),De-=1,B-=1,Fe.isPaused||Z()),De+=1}function K(Ne,De){if(!Ne)return null;for(var Fe=0;Fe<B;){if(E[Fe].elem===Ne&&E[Fe].elem!==null)return E[Fe].animation;Fe+=1}var ke=new AnimationItem;return _e(ke,Ne),ke.setData(Ne,De),ke}function J(){var Ne,De=E.length,Fe=[];for(Ne=0;Ne<De;Ne+=1)Fe.push(E[Ne].animation);return Fe}function xe(){U+=1,Xe()}function Z(){U-=1}function _e(Ne,De){Ne.addEventListener("destroy",Y),Ne.addEventListener("_active",xe),Ne.addEventListener("_idle",Z),E.push({elem:De,animation:Ne}),B+=1}function Se(Ne){var De=new AnimationItem;return _e(De,null),De.setParams(Ne),De}function Ee(Ne,De){var Fe;for(Fe=0;Fe<B;Fe+=1)E[Fe].animation.setSpeed(Ne,De)}function Ae(Ne,De){var Fe;for(Fe=0;Fe<B;Fe+=1)E[Fe].animation.setDirection(Ne,De)}function Re(Ne){var De;for(De=0;De<B;De+=1)E[De].animation.play(Ne)}function Te(Ne){var De=Ne-I,Fe;for(Fe=0;Fe<B;Fe+=1)E[Fe].animation.advanceTime(De);I=Ne,U&&!X?window.requestAnimationFrame(Te):V=!0}function we(Ne){I=Ne,window.requestAnimationFrame(Te)}function Pe(Ne){var De;for(De=0;De<B;De+=1)E[De].animation.pause(Ne)}function Ie(Ne,De,Fe){var ke;for(ke=0;ke<B;ke+=1)E[ke].animation.goToAndStop(Ne,De,Fe)}function Me(Ne){var De;for(De=0;De<B;De+=1)E[De].animation.stop(Ne)}function Oe(Ne){var De;for(De=0;De<B;De+=1)E[De].animation.togglePause(Ne)}function Le(Ne){var De;for(De=B-1;De>=0;De-=1)E[De].animation.destroy(Ne)}function $e(Ne,De,Fe){var ke=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Ge,Be=ke.length;for(Ge=0;Ge<Be;Ge+=1)Fe&&ke[Ge].setAttribute("data-bm-type",Fe),K(ke[Ge],Ne);if(De&&Be===0){Fe||(Fe="svg");var qe=document.getElementsByTagName("body")[0];qe.innerText="";var Ke=createTag("div");Ke.style.width="100%",Ke.style.height="100%",Ke.setAttribute("data-bm-type",Fe),qe.appendChild(Ke),K(Ke,Ne)}}function Ve(){var Ne;for(Ne=0;Ne<B;Ne+=1)E[Ne].animation.resize()}function Xe(){!X&&U&&V&&(window.requestAnimationFrame(we),V=!1)}function Ue(){X=!0}function We(){X=!1,Xe()}function ze(Ne,De){var Fe;for(Fe=0;Fe<B;Fe+=1)E[Fe].animation.setVolume(Ne,De)}function He(Ne){var De;for(De=0;De<B;De+=1)E[De].animation.mute(Ne)}function je(Ne){var De;for(De=0;De<B;De+=1)E[De].animation.unmute(Ne)}return C.registerAnimation=K,C.loadAnimation=Se,C.setSpeed=Ee,C.setDirection=Ae,C.play=Re,C.pause=Pe,C.stop=Me,C.togglePause=Oe,C.searchAnimations=$e,C.resize=Ve,C.goToAndStop=Ie,C.destroy=Le,C.freeze=Ue,C.unfreeze=We,C.setVolume=ze,C.mute=He,C.unmute=je,C.getRegisteredAnimations=J,C}(),BezierFactory=function(){var C={};C.getBezierEasing=I;var E={};function I(we,Pe,Ie,Me,Oe){var Le=Oe||("bez_"+we+"_"+Pe+"_"+Ie+"_"+Me).replace(/\./g,"p");if(E[Le])return E[Le];var $e=new Te([we,Pe,Ie,Me]);return E[Le]=$e,$e}var B=4,U=.001,V=1e-7,X=10,Y=11,K=1/(Y-1),J=typeof Float32Array=="function";function xe(we,Pe){return 1-3*Pe+3*we}function Z(we,Pe){return 3*Pe-6*we}function _e(we){return 3*we}function Se(we,Pe,Ie){return((xe(Pe,Ie)*we+Z(Pe,Ie))*we+_e(Pe))*we}function Ee(we,Pe,Ie){return 3*xe(Pe,Ie)*we*we+2*Z(Pe,Ie)*we+_e(Pe)}function Ae(we,Pe,Ie,Me,Oe){var Le,$e,Ve=0;do $e=Pe+(Ie-Pe)/2,Le=Se($e,Me,Oe)-we,Le>0?Ie=$e:Pe=$e;while(Math.abs(Le)>V&&++Ve<X);return $e}function Re(we,Pe,Ie,Me){for(var Oe=0;Oe<B;++Oe){var Le=Ee(Pe,Ie,Me);if(Le===0)return Pe;var $e=Se(Pe,Ie,Me)-we;Pe-=$e/Le}return Pe}function Te(we){this._p=we,this._mSampleValues=J?new Float32Array(Y):new Array(Y),this._precomputed=!1,this.get=this.get.bind(this)}return Te.prototype={get:function(Pe){var Ie=this._p[0],Me=this._p[1],Oe=this._p[2],Le=this._p[3];return this._precomputed||this._precompute(),Ie===Me&&Oe===Le?Pe:Pe===0?0:Pe===1?1:Se(this._getTForX(Pe),Me,Le)},_precompute:function(){var Pe=this._p[0],Ie=this._p[1],Me=this._p[2],Oe=this._p[3];this._precomputed=!0,(Pe!==Ie||Me!==Oe)&&this._calcSampleValues()},_calcSampleValues:function(){for(var Pe=this._p[0],Ie=this._p[2],Me=0;Me<Y;++Me)this._mSampleValues[Me]=Se(Me*K,Pe,Ie)},_getTForX:function(Pe){for(var Ie=this._p[0],Me=this._p[2],Oe=this._mSampleValues,Le=0,$e=1,Ve=Y-1;$e!==Ve&&Oe[$e]<=Pe;++$e)Le+=K;--$e;var Xe=(Pe-Oe[$e])/(Oe[$e+1]-Oe[$e]),Ue=Le+Xe*K,We=Ee(Ue,Ie,Me);return We>=U?Re(Pe,Ue,Ie,Me):We===0?Ue:Ae(Pe,Le,Le+K,Ie,Me)}},C}(),pooling=function(){function C(E){return E.concat(createSizedArray(E.length))}return{double:C}}(),poolFactory=function(){return function(C,E,I){var B=0,U=C,V=createSizedArray(U),X={newElement:Y,release:K};function Y(){var J;return B?(B-=1,J=V[B]):J=E(),J}function K(J){B===U&&(V=pooling.double(V),U*=2),I&&I(J),V[B]=J,B+=1}return X}}(),bezierLengthPool=function(){function C(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,C)}(),segmentsLengthPool=function(){function C(){return{lengths:[],totalLength:0}}function E(I){var B,U=I.lengths.length;for(B=0;B<U;B+=1)bezierLengthPool.release(I.lengths[B]);I.lengths.length=0}return poolFactory(8,C,E)}();function bezFunction(){var C=Math;function E(_e,Se,Ee,Ae,Re,Te){var we=_e*Ae+Se*Re+Ee*Te-Re*Ae-Te*_e-Ee*Se;return we>-.001&&we<.001}function I(_e,Se,Ee,Ae,Re,Te,we,Pe,Ie){if(Ee===0&&Te===0&&Ie===0)return E(_e,Se,Ae,Re,we,Pe);var Me=C.sqrt(C.pow(Ae-_e,2)+C.pow(Re-Se,2)+C.pow(Te-Ee,2)),Oe=C.sqrt(C.pow(we-_e,2)+C.pow(Pe-Se,2)+C.pow(Ie-Ee,2)),Le=C.sqrt(C.pow(we-Ae,2)+C.pow(Pe-Re,2)+C.pow(Ie-Te,2)),$e;return Me>Oe?Me>Le?$e=Me-Oe-Le:$e=Le-Oe-Me:Le>Oe?$e=Le-Oe-Me:$e=Oe-Me-Le,$e>-1e-4&&$e<1e-4}var B=function(){return function(_e,Se,Ee,Ae){var Re=getDefaultCurveSegments(),Te,we,Pe,Ie,Me,Oe=0,Le,$e=[],Ve=[],Xe=bezierLengthPool.newElement();for(Pe=Ee.length,Te=0;Te<Re;Te+=1){for(Me=Te/(Re-1),Le=0,we=0;we<Pe;we+=1)Ie=bmPow(1-Me,3)*_e[we]+3*bmPow(1-Me,2)*Me*Ee[we]+3*(1-Me)*bmPow(Me,2)*Ae[we]+bmPow(Me,3)*Se[we],$e[we]=Ie,Ve[we]!==null&&(Le+=bmPow($e[we]-Ve[we],2)),Ve[we]=$e[we];Le&&(Le=bmSqrt(Le),Oe+=Le),Xe.percents[Te]=Me,Xe.lengths[Te]=Oe}return Xe.addedLength=Oe,Xe}}();function U(_e){var Se=segmentsLengthPool.newElement(),Ee=_e.c,Ae=_e.v,Re=_e.o,Te=_e.i,we,Pe=_e._length,Ie=Se.lengths,Me=0;for(we=0;we<Pe-1;we+=1)Ie[we]=B(Ae[we],Ae[we+1],Re[we],Te[we+1]),Me+=Ie[we].addedLength;return Ee&&Pe&&(Ie[we]=B(Ae[we],Ae[0],Re[we],Te[0]),Me+=Ie[we].addedLength),Se.totalLength=Me,Se}function V(_e){this.segmentLength=0,this.points=new Array(_e)}function X(_e,Se){this.partialLength=_e,this.point=Se}var Y=function(){var _e={};return function(Se,Ee,Ae,Re){var Te=(Se[0]+"_"+Se[1]+"_"+Ee[0]+"_"+Ee[1]+"_"+Ae[0]+"_"+Ae[1]+"_"+Re[0]+"_"+Re[1]).replace(/\./g,"p");if(!_e[Te]){var we=getDefaultCurveSegments(),Pe,Ie,Me,Oe,Le,$e=0,Ve,Xe,Ue=null;Se.length===2&&(Se[0]!==Ee[0]||Se[1]!==Ee[1])&&E(Se[0],Se[1],Ee[0],Ee[1],Se[0]+Ae[0],Se[1]+Ae[1])&&E(Se[0],Se[1],Ee[0],Ee[1],Ee[0]+Re[0],Ee[1]+Re[1])&&(we=2);var We=new V(we);for(Me=Ae.length,Pe=0;Pe<we;Pe+=1){for(Xe=createSizedArray(Me),Le=Pe/(we-1),Ve=0,Ie=0;Ie<Me;Ie+=1)Oe=bmPow(1-Le,3)*Se[Ie]+3*bmPow(1-Le,2)*Le*(Se[Ie]+Ae[Ie])+3*(1-Le)*bmPow(Le,2)*(Ee[Ie]+Re[Ie])+bmPow(Le,3)*Ee[Ie],Xe[Ie]=Oe,Ue!==null&&(Ve+=bmPow(Xe[Ie]-Ue[Ie],2));Ve=bmSqrt(Ve),$e+=Ve,We.points[Pe]=new X(Ve,Xe),Ue=Xe}We.segmentLength=$e,_e[Te]=We}return _e[Te]}}();function K(_e,Se){var Ee=Se.percents,Ae=Se.lengths,Re=Ee.length,Te=bmFloor((Re-1)*_e),we=_e*Se.addedLength,Pe=0;if(Te===Re-1||Te===0||we===Ae[Te])return Ee[Te];for(var Ie=Ae[Te]>we?-1:1,Me=!0;Me;)if(Ae[Te]<=we&&Ae[Te+1]>we?(Pe=(we-Ae[Te])/(Ae[Te+1]-Ae[Te]),Me=!1):Te+=Ie,Te<0||Te>=Re-1){if(Te===Re-1)return Ee[Te];Me=!1}return Ee[Te]+(Ee[Te+1]-Ee[Te])*Pe}function J(_e,Se,Ee,Ae,Re,Te){var we=K(Re,Te),Pe=1-we,Ie=C.round((Pe*Pe*Pe*_e[0]+(we*Pe*Pe+Pe*we*Pe+Pe*Pe*we)*Ee[0]+(we*we*Pe+Pe*we*we+we*Pe*we)*Ae[0]+we*we*we*Se[0])*1e3)/1e3,Me=C.round((Pe*Pe*Pe*_e[1]+(we*Pe*Pe+Pe*we*Pe+Pe*Pe*we)*Ee[1]+(we*we*Pe+Pe*we*we+we*Pe*we)*Ae[1]+we*we*we*Se[1])*1e3)/1e3;return[Ie,Me]}var xe=createTypedArray("float32",8);function Z(_e,Se,Ee,Ae,Re,Te,we){Re<0?Re=0:Re>1&&(Re=1);var Pe=K(Re,we);Te=Te>1?1:Te;var Ie=K(Te,we),Me,Oe=_e.length,Le=1-Pe,$e=1-Ie,Ve=Le*Le*Le,Xe=Pe*Le*Le*3,Ue=Pe*Pe*Le*3,We=Pe*Pe*Pe,ze=Le*Le*$e,He=Pe*Le*$e+Le*Pe*$e+Le*Le*Ie,je=Pe*Pe*$e+Le*Pe*Ie+Pe*Le*Ie,Ne=Pe*Pe*Ie,De=Le*$e*$e,Fe=Pe*$e*$e+Le*Ie*$e+Le*$e*Ie,ke=Pe*Ie*$e+Le*Ie*Ie+Pe*$e*Ie,Ge=Pe*Ie*Ie,Be=$e*$e*$e,qe=Ie*$e*$e+$e*Ie*$e+$e*$e*Ie,Ke=Ie*Ie*$e+$e*Ie*Ie+Ie*$e*Ie,Ye=Ie*Ie*Ie;for(Me=0;Me<Oe;Me+=1)xe[Me*4]=C.round((Ve*_e[Me]+Xe*Ee[Me]+Ue*Ae[Me]+We*Se[Me])*1e3)/1e3,xe[Me*4+1]=C.round((ze*_e[Me]+He*Ee[Me]+je*Ae[Me]+Ne*Se[Me])*1e3)/1e3,xe[Me*4+2]=C.round((De*_e[Me]+Fe*Ee[Me]+ke*Ae[Me]+Ge*Se[Me])*1e3)/1e3,xe[Me*4+3]=C.round((Be*_e[Me]+qe*Ee[Me]+Ke*Ae[Me]+Ye*Se[Me])*1e3)/1e3;return xe}return{getSegmentsLength:U,getNewSegment:Z,getPointInSegment:J,buildBezierData:Y,pointOnLine2D:E,pointOnLine3D:I}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(C,E){var I=this.offsetTime,B;this.propType==="multidimensional"&&(B=createTypedArray("float32",this.pv.length));for(var U=E.lastIndex,V=U,X=this.keyframes.length-1,Y=!0,K,J,xe;Y;){if(K=this.keyframes[V],J=this.keyframes[V+1],V===X-1&&C>=J.t-I){K.h&&(K=J),U=0;break}if(J.t-I>C){U=V;break}V<X-1?V+=1:(U=0,Y=!1)}xe=this.keyframesMetadata[V]||{};var Z,_e,Se,Ee,Ae,Re,Te=J.t-I,we=K.t-I,Pe;if(K.to){xe.bezierData||(xe.bezierData=bez.buildBezierData(K.s,J.s||K.e,K.to,K.ti));var Ie=xe.bezierData;if(C>=Te||C<we){var Me=C>=Te?Ie.points.length-1:0;for(_e=Ie.points[Me].point.length,Z=0;Z<_e;Z+=1)B[Z]=Ie.points[Me].point[Z]}else{xe.__fnct?Re=xe.__fnct:(Re=BezierFactory.getBezierEasing(K.o.x,K.o.y,K.i.x,K.i.y,K.n).get,xe.__fnct=Re),Se=Re((C-we)/(Te-we));var Oe=Ie.segmentLength*Se,Le,$e=E.lastFrame<C&&E._lastKeyframeIndex===V?E._lastAddedLength:0;for(Ae=E.lastFrame<C&&E._lastKeyframeIndex===V?E._lastPoint:0,Y=!0,Ee=Ie.points.length;Y;){if($e+=Ie.points[Ae].partialLength,Oe===0||Se===0||Ae===Ie.points.length-1){for(_e=Ie.points[Ae].point.length,Z=0;Z<_e;Z+=1)B[Z]=Ie.points[Ae].point[Z];break}else if(Oe>=$e&&Oe<$e+Ie.points[Ae+1].partialLength){for(Le=(Oe-$e)/Ie.points[Ae+1].partialLength,_e=Ie.points[Ae].point.length,Z=0;Z<_e;Z+=1)B[Z]=Ie.points[Ae].point[Z]+(Ie.points[Ae+1].point[Z]-Ie.points[Ae].point[Z])*Le;break}Ae<Ee-1?Ae+=1:Y=!1}E._lastPoint=Ae,E._lastAddedLength=$e-Ie.points[Ae].partialLength,E._lastKeyframeIndex=V}}else{var Ve,Xe,Ue,We,ze;if(X=K.s.length,Pe=J.s||K.e,this.sh&&K.h!==1)if(C>=Te)B[0]=Pe[0],B[1]=Pe[1],B[2]=Pe[2];else if(C<=we)B[0]=K.s[0],B[1]=K.s[1],B[2]=K.s[2];else{var He=createQuaternion(K.s),je=createQuaternion(Pe),Ne=(C-we)/(Te-we);quaternionToEuler(B,slerp(He,je,Ne))}else for(V=0;V<X;V+=1)K.h!==1&&(C>=Te?Se=1:C<we?Se=0:(K.o.x.constructor===Array?(xe.__fnct||(xe.__fnct=[]),xe.__fnct[V]?Re=xe.__fnct[V]:(Ve=K.o.x[V]===void 0?K.o.x[0]:K.o.x[V],Xe=K.o.y[V]===void 0?K.o.y[0]:K.o.y[V],Ue=K.i.x[V]===void 0?K.i.x[0]:K.i.x[V],We=K.i.y[V]===void 0?K.i.y[0]:K.i.y[V],Re=BezierFactory.getBezierEasing(Ve,Xe,Ue,We).get,xe.__fnct[V]=Re)):xe.__fnct?Re=xe.__fnct:(Ve=K.o.x,Xe=K.o.y,Ue=K.i.x,We=K.i.y,Re=BezierFactory.getBezierEasing(Ve,Xe,Ue,We).get,K.keyframeMetadata=Re),Se=Re((C-we)/(Te-we)))),Pe=J.s||K.e,ze=K.h===1?K.s[V]:K.s[V]+(Pe[V]-K.s[V])*Se,this.propType==="multidimensional"?B[V]=ze:B=ze}return E.lastIndex=U,B}function slerp(C,E,I){var B=[],U=C[0],V=C[1],X=C[2],Y=C[3],K=E[0],J=E[1],xe=E[2],Z=E[3],_e,Se,Ee,Ae,Re;return Se=U*K+V*J+X*xe+Y*Z,Se<0&&(Se=-Se,K=-K,J=-J,xe=-xe,Z=-Z),1-Se>1e-6?(_e=Math.acos(Se),Ee=Math.sin(_e),Ae=Math.sin((1-I)*_e)/Ee,Re=Math.sin(I*_e)/Ee):(Ae=1-I,Re=I),B[0]=Ae*U+Re*K,B[1]=Ae*V+Re*J,B[2]=Ae*X+Re*xe,B[3]=Ae*Y+Re*Z,B}function quaternionToEuler(C,E){var I=E[0],B=E[1],U=E[2],V=E[3],X=Math.atan2(2*B*V-2*I*U,1-2*B*B-2*U*U),Y=Math.asin(2*I*B+2*U*V),K=Math.atan2(2*I*V-2*B*U,1-2*I*I-2*U*U);C[0]=X/degToRads,C[1]=Y/degToRads,C[2]=K/degToRads}function createQuaternion(C){var E=C[0]*degToRads,I=C[1]*degToRads,B=C[2]*degToRads,U=Math.cos(E/2),V=Math.cos(I/2),X=Math.cos(B/2),Y=Math.sin(E/2),K=Math.sin(I/2),J=Math.sin(B/2),xe=U*V*X-Y*K*J,Z=Y*K*X+U*V*J,_e=Y*V*X+U*K*J,Se=U*K*X-Y*V*J;return[Z,_e,Se,xe]}function getValueAtCurrentTime(){var C=this.comp.renderedFrame-this.offsetTime,E=this.keyframes[0].t-this.offsetTime,I=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(C===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=I&&C>=I||this._caching.lastFrame<E&&C<E))){this._caching.lastFrame>=C&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var B=this.interpolateValue(C,this._caching);this.pv=B}return this._caching.lastFrame=C,this.pv}function setVValue(C){var E;if(this.propType==="unidimensional")E=C*this.mult,mathAbs(this.v-E)>1e-5&&(this.v=E,this._mdf=!0);else for(var I=0,B=this.v.length;I<B;)E=C[I]*this.mult,mathAbs(this.v[I]-E)>1e-5&&(this.v[I]=E,this._mdf=!0),I+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var C,E=this.effectsSequence.length,I=this.kf?this.pv:this.data.k;for(C=0;C<E;C+=1)I=this.effectsSequence[C](I);this.setVValue(I),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(C){this.effectsSequence.push(C),this.container.addDynamicProperty(this)}function ValueProperty(C,E,I,B){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=C,this.container=B,this.comp=C.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(C,E,I,B){this.propType="multidimensional",this.mult=I||1,this.data=E,this._mdf=!1,this.elem=C,this.container=B,this.comp=C.comp,this.k=!1,this.kf=!1,this.frameId=-1;var U,V=E.k.length;for(this.v=createTypedArray("float32",V),this.pv=createTypedArray("float32",V),this.vel=createTypedArray("float32",V),U=0;U<V;U+=1)this.v[U]=E.k[U]*this.mult,this.pv[U]=E.k[U];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(C,E,I,B){this.propType="unidimensional",this.keyframes=E.k,this.keyframesMetadata=[],this.offsetTime=C.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=E,this.mult=I||1,this.elem=C,this.container=B,this.comp=C.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(C,E,I,B){this.propType="multidimensional";var U,V=E.k.length,X,Y,K,J;for(U=0;U<V-1;U+=1)E.k[U].to&&E.k[U].s&&E.k[U+1]&&E.k[U+1].s&&(X=E.k[U].s,Y=E.k[U+1].s,K=E.k[U].to,J=E.k[U].ti,(X.length===2&&!(X[0]===Y[0]&&X[1]===Y[1])&&bez.pointOnLine2D(X[0],X[1],Y[0],Y[1],X[0]+K[0],X[1]+K[1])&&bez.pointOnLine2D(X[0],X[1],Y[0],Y[1],Y[0]+J[0],Y[1]+J[1])||X.length===3&&!(X[0]===Y[0]&&X[1]===Y[1]&&X[2]===Y[2])&&bez.pointOnLine3D(X[0],X[1],X[2],Y[0],Y[1],Y[2],X[0]+K[0],X[1]+K[1],X[2]+K[2])&&bez.pointOnLine3D(X[0],X[1],X[2],Y[0],Y[1],Y[2],Y[0]+J[0],Y[1]+J[1],Y[2]+J[2]))&&(E.k[U].to=null,E.k[U].ti=null),X[0]===Y[0]&&X[1]===Y[1]&&K[0]===0&&K[1]===0&&J[0]===0&&J[1]===0&&(X.length===2||X[2]===Y[2]&&K[2]===0&&J[2]===0)&&(E.k[U].to=null,E.k[U].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=E,this.keyframes=E.k,this.keyframesMetadata=[],this.offsetTime=C.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=I||1,this.elem=C,this.container=B,this.comp=C.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var xe=E.k[0].s.length;for(this.v=createTypedArray("float32",xe),this.pv=createTypedArray("float32",xe),U=0;U<xe;U+=1)this.v[U]=initFrame,this.pv[U]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",xe)},this.addEffect=addEffect}var PropertyFactory=function(){function C(I,B,U,V,X){B.sid&&(B=I.globalData.slotManager.getProp(B));var Y;if(!B.k.length)Y=new ValueProperty(I,B,V,X);else if(typeof B.k[0]=="number")Y=new MultiDimensionalProperty(I,B,V,X);else switch(U){case 0:Y=new KeyframedValueProperty(I,B,V,X);break;case 1:Y=new KeyframedMultidimensionalProperty(I,B,V,X);break}return Y.effectsSequence.length&&X.addDynamicProperty(Y),Y}var E={getProp:C};return E}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(E){this.dynamicProperties.indexOf(E)===-1&&(this.dynamicProperties.push(E),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var E,I=this.dynamicProperties.length;for(E=0;E<I;E+=1)this.dynamicProperties[E].getValue(),this.dynamicProperties[E]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(E){this.container=E,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=function(){function C(){return createTypedArray("float32",2)}return poolFactory(8,C)}();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(C,E){this.c=C,this.setLength(E);for(var I=0;I<E;)this.v[I]=pointPool.newElement(),this.o[I]=pointPool.newElement(),this.i[I]=pointPool.newElement(),I+=1},ShapePath.prototype.setLength=function(C){for(;this._maxLength<C;)this.doubleArrayLength();this._length=C},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(C,E,I,B,U){var V;switch(this._length=Math.max(this._length,B+1),this._length>=this._maxLength&&this.doubleArrayLength(),I){case"v":V=this.v;break;case"i":V=this.i;break;case"o":V=this.o;break;default:V=[];break}(!V[B]||V[B]&&!U)&&(V[B]=pointPool.newElement()),V[B][0]=C,V[B][1]=E},ShapePath.prototype.setTripleAt=function(C,E,I,B,U,V,X,Y){this.setXYAt(C,E,"v",X,Y),this.setXYAt(I,B,"o",X,Y),this.setXYAt(U,V,"i",X,Y)},ShapePath.prototype.reverse=function(){var C=new ShapePath;C.setPathData(this.c,this._length);var E=this.v,I=this.o,B=this.i,U=0;this.c&&(C.setTripleAt(E[0][0],E[0][1],B[0][0],B[0][1],I[0][0],I[0][1],0,!1),U=1);var V=this._length-1,X=this._length,Y;for(Y=U;Y<X;Y+=1)C.setTripleAt(E[V][0],E[V][1],B[V][0],B[V][1],I[V][0],I[V][1],Y,!1),V-=1;return C},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function C(){return new ShapePath}function E(U){var V=U._length,X;for(X=0;X<V;X+=1)pointPool.release(U.v[X]),pointPool.release(U.i[X]),pointPool.release(U.o[X]),U.v[X]=null,U.i[X]=null,U.o[X]=null;U._length=0,U.c=!1}function I(U){var V=B.newElement(),X,Y=U._length===void 0?U.v.length:U._length;for(V.setLength(Y),V.c=U.c,X=0;X<Y;X+=1)V.setTripleAt(U.v[X][0],U.v[X][1],U.o[X][0],U.o[X][1],U.i[X][0],U.i[X][1],X);return V}var B=poolFactory(4,C,E);return B.clone=I,B}();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(C){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=C,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var C;for(C=0;C<this._length;C+=1)shapePool.release(this.shapes[C]);this._length=0};var shapeCollectionPool=function(){var C={newShapeCollection:U,release:V},E=0,I=4,B=createSizedArray(I);function U(){var X;return E?(E-=1,X=B[E]):X=new ShapeCollection,X}function V(X){var Y,K=X._length;for(Y=0;Y<K;Y+=1)shapePool.release(X.shapes[Y]);X._length=0,E===I&&(B=pooling.double(B),I*=2),B[E]=X,E+=1}return C}(),ShapePropertyFactory=function(){var C=-999999;function E(Te,we,Pe){var Ie=Pe.lastIndex,Me,Oe,Le,$e,Ve,Xe,Ue,We,ze,He=this.keyframes;if(Te<He[0].t-this.offsetTime)Me=He[0].s[0],Le=!0,Ie=0;else if(Te>=He[He.length-1].t-this.offsetTime)Me=He[He.length-1].s?He[He.length-1].s[0]:He[He.length-2].e[0],Le=!0;else{for(var je=Ie,Ne=He.length-1,De=!0,Fe,ke,Ge;De&&(Fe=He[je],ke=He[je+1],!(ke.t-this.offsetTime>Te));)je<Ne-1?je+=1:De=!1;if(Ge=this.keyframesMetadata[je]||{},Le=Fe.h===1,Ie=je,!Le){if(Te>=ke.t-this.offsetTime)We=1;else if(Te<Fe.t-this.offsetTime)We=0;else{var Be;Ge.__fnct?Be=Ge.__fnct:(Be=BezierFactory.getBezierEasing(Fe.o.x,Fe.o.y,Fe.i.x,Fe.i.y).get,Ge.__fnct=Be),We=Be((Te-(Fe.t-this.offsetTime))/(ke.t-this.offsetTime-(Fe.t-this.offsetTime)))}Oe=ke.s?ke.s[0]:Fe.e[0]}Me=Fe.s[0]}for(Xe=we._length,Ue=Me.i[0].length,Pe.lastIndex=Ie,$e=0;$e<Xe;$e+=1)for(Ve=0;Ve<Ue;Ve+=1)ze=Le?Me.i[$e][Ve]:Me.i[$e][Ve]+(Oe.i[$e][Ve]-Me.i[$e][Ve])*We,we.i[$e][Ve]=ze,ze=Le?Me.o[$e][Ve]:Me.o[$e][Ve]+(Oe.o[$e][Ve]-Me.o[$e][Ve])*We,we.o[$e][Ve]=ze,ze=Le?Me.v[$e][Ve]:Me.v[$e][Ve]+(Oe.v[$e][Ve]-Me.v[$e][Ve])*We,we.v[$e][Ve]=ze}function I(){var Te=this.comp.renderedFrame-this.offsetTime,we=this.keyframes[0].t-this.offsetTime,Pe=this.keyframes[this.keyframes.length-1].t-this.offsetTime,Ie=this._caching.lastFrame;return Ie!==C&&(Ie<we&&Te<we||Ie>Pe&&Te>Pe)||(this._caching.lastIndex=Ie<Te?this._caching.lastIndex:0,this.interpolateShape(Te,this.pv,this._caching)),this._caching.lastFrame=Te,this.pv}function B(){this.paths=this.localShapeCollection}function U(Te,we){if(Te._length!==we._length||Te.c!==we.c)return!1;var Pe,Ie=Te._length;for(Pe=0;Pe<Ie;Pe+=1)if(Te.v[Pe][0]!==we.v[Pe][0]||Te.v[Pe][1]!==we.v[Pe][1]||Te.o[Pe][0]!==we.o[Pe][0]||Te.o[Pe][1]!==we.o[Pe][1]||Te.i[Pe][0]!==we.i[Pe][0]||Te.i[Pe][1]!==we.i[Pe][1])return!1;return!0}function V(Te){U(this.v,Te)||(this.v=shapePool.clone(Te),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function X(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var Te;this.kf?Te=this.pv:this.data.ks?Te=this.data.ks.k:Te=this.data.pt.k;var we,Pe=this.effectsSequence.length;for(we=0;we<Pe;we+=1)Te=this.effectsSequence[we](Te);this.setVValue(Te),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function Y(Te,we,Pe){this.propType="shape",this.comp=Te.comp,this.container=Te,this.elem=Te,this.data=we,this.k=!1,this.kf=!1,this._mdf=!1;var Ie=Pe===3?we.pt.k:we.ks.k;this.v=shapePool.clone(Ie),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=B,this.effectsSequence=[]}function K(Te){this.effectsSequence.push(Te),this.container.addDynamicProperty(this)}Y.prototype.interpolateShape=E,Y.prototype.getValue=X,Y.prototype.setVValue=V,Y.prototype.addEffect=K;function J(Te,we,Pe){this.propType="shape",this.comp=Te.comp,this.elem=Te,this.container=Te,this.offsetTime=Te.data.st,this.keyframes=Pe===3?we.pt.k:we.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var Ie=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,Ie),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=C,this.reset=B,this._caching={lastFrame:C,lastIndex:0},this.effectsSequence=[I.bind(this)]}J.prototype.getValue=X,J.prototype.interpolateShape=E,J.prototype.setVValue=V,J.prototype.addEffect=K;var xe=function(){var Te=roundCorner;function we(Pe,Ie){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=Ie.d,this.elem=Pe,this.comp=Pe.comp,this.frameId=-1,this.initDynamicPropertyContainer(Pe),this.p=PropertyFactory.getProp(Pe,Ie.p,1,0,this),this.s=PropertyFactory.getProp(Pe,Ie.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return we.prototype={reset:B,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var Ie=this.p.v[0],Me=this.p.v[1],Oe=this.s.v[0]/2,Le=this.s.v[1]/2,$e=this.d!==3,Ve=this.v;Ve.v[0][0]=Ie,Ve.v[0][1]=Me-Le,Ve.v[1][0]=$e?Ie+Oe:Ie-Oe,Ve.v[1][1]=Me,Ve.v[2][0]=Ie,Ve.v[2][1]=Me+Le,Ve.v[3][0]=$e?Ie-Oe:Ie+Oe,Ve.v[3][1]=Me,Ve.i[0][0]=$e?Ie-Oe*Te:Ie+Oe*Te,Ve.i[0][1]=Me-Le,Ve.i[1][0]=$e?Ie+Oe:Ie-Oe,Ve.i[1][1]=Me-Le*Te,Ve.i[2][0]=$e?Ie+Oe*Te:Ie-Oe*Te,Ve.i[2][1]=Me+Le,Ve.i[3][0]=$e?Ie-Oe:Ie+Oe,Ve.i[3][1]=Me+Le*Te,Ve.o[0][0]=$e?Ie+Oe*Te:Ie-Oe*Te,Ve.o[0][1]=Me-Le,Ve.o[1][0]=$e?Ie+Oe:Ie-Oe,Ve.o[1][1]=Me+Le*Te,Ve.o[2][0]=$e?Ie-Oe*Te:Ie+Oe*Te,Ve.o[2][1]=Me+Le,Ve.o[3][0]=$e?Ie-Oe:Ie+Oe,Ve.o[3][1]=Me-Le*Te}},extendPrototype([DynamicPropertyContainer],we),we}(),Z=function(){function Te(we,Pe){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=we,this.comp=we.comp,this.data=Pe,this.frameId=-1,this.d=Pe.d,this.initDynamicPropertyContainer(we),Pe.sy===1?(this.ir=PropertyFactory.getProp(we,Pe.ir,0,0,this),this.is=PropertyFactory.getProp(we,Pe.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(we,Pe.pt,0,0,this),this.p=PropertyFactory.getProp(we,Pe.p,1,0,this),this.r=PropertyFactory.getProp(we,Pe.r,0,degToRads,this),this.or=PropertyFactory.getProp(we,Pe.or,0,0,this),this.os=PropertyFactory.getProp(we,Pe.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return Te.prototype={reset:B,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var Pe=Math.floor(this.pt.v)*2,Ie=Math.PI*2/Pe,Me=!0,Oe=this.or.v,Le=this.ir.v,$e=this.os.v,Ve=this.is.v,Xe=2*Math.PI*Oe/(Pe*2),Ue=2*Math.PI*Le/(Pe*2),We,ze,He,je,Ne=-Math.PI/2;Ne+=this.r.v;var De=this.data.d===3?-1:1;for(this.v._length=0,We=0;We<Pe;We+=1){ze=Me?Oe:Le,He=Me?$e:Ve,je=Me?Xe:Ue;var Fe=ze*Math.cos(Ne),ke=ze*Math.sin(Ne),Ge=Fe===0&&ke===0?0:ke/Math.sqrt(Fe*Fe+ke*ke),Be=Fe===0&&ke===0?0:-Fe/Math.sqrt(Fe*Fe+ke*ke);Fe+=+this.p.v[0],ke+=+this.p.v[1],this.v.setTripleAt(Fe,ke,Fe-Ge*je*He*De,ke-Be*je*He*De,Fe+Ge*je*He*De,ke+Be*je*He*De,We,!0),Me=!Me,Ne+=Ie*De}},convertPolygonToPath:function(){var Pe=Math.floor(this.pt.v),Ie=Math.PI*2/Pe,Me=this.or.v,Oe=this.os.v,Le=2*Math.PI*Me/(Pe*4),$e,Ve=-Math.PI*.5,Xe=this.data.d===3?-1:1;for(Ve+=this.r.v,this.v._length=0,$e=0;$e<Pe;$e+=1){var Ue=Me*Math.cos(Ve),We=Me*Math.sin(Ve),ze=Ue===0&&We===0?0:We/Math.sqrt(Ue*Ue+We*We),He=Ue===0&&We===0?0:-Ue/Math.sqrt(Ue*Ue+We*We);Ue+=+this.p.v[0],We+=+this.p.v[1],this.v.setTripleAt(Ue,We,Ue-ze*Le*Oe*Xe,We-He*Le*Oe*Xe,Ue+ze*Le*Oe*Xe,We+He*Le*Oe*Xe,$e,!0),Ve+=Ie*Xe}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],Te),Te}(),_e=function(){function Te(we,Pe){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=we,this.comp=we.comp,this.frameId=-1,this.d=Pe.d,this.initDynamicPropertyContainer(we),this.p=PropertyFactory.getProp(we,Pe.p,1,0,this),this.s=PropertyFactory.getProp(we,Pe.s,1,0,this),this.r=PropertyFactory.getProp(we,Pe.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return Te.prototype={convertRectToPath:function(){var Pe=this.p.v[0],Ie=this.p.v[1],Me=this.s.v[0]/2,Oe=this.s.v[1]/2,Le=bmMin(Me,Oe,this.r.v),$e=Le*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(Pe+Me,Ie-Oe+Le,Pe+Me,Ie-Oe+Le,Pe+Me,Ie-Oe+$e,0,!0),this.v.setTripleAt(Pe+Me,Ie+Oe-Le,Pe+Me,Ie+Oe-$e,Pe+Me,Ie+Oe-Le,1,!0),Le!==0?(this.v.setTripleAt(Pe+Me-Le,Ie+Oe,Pe+Me-Le,Ie+Oe,Pe+Me-$e,Ie+Oe,2,!0),this.v.setTripleAt(Pe-Me+Le,Ie+Oe,Pe-Me+$e,Ie+Oe,Pe-Me+Le,Ie+Oe,3,!0),this.v.setTripleAt(Pe-Me,Ie+Oe-Le,Pe-Me,Ie+Oe-Le,Pe-Me,Ie+Oe-$e,4,!0),this.v.setTripleAt(Pe-Me,Ie-Oe+Le,Pe-Me,Ie-Oe+$e,Pe-Me,Ie-Oe+Le,5,!0),this.v.setTripleAt(Pe-Me+Le,Ie-Oe,Pe-Me+Le,Ie-Oe,Pe-Me+$e,Ie-Oe,6,!0),this.v.setTripleAt(Pe+Me-Le,Ie-Oe,Pe+Me-$e,Ie-Oe,Pe+Me-Le,Ie-Oe,7,!0)):(this.v.setTripleAt(Pe-Me,Ie+Oe,Pe-Me+$e,Ie+Oe,Pe-Me,Ie+Oe,2),this.v.setTripleAt(Pe-Me,Ie-Oe,Pe-Me,Ie-Oe+$e,Pe-Me,Ie-Oe,3))):(this.v.setTripleAt(Pe+Me,Ie-Oe+Le,Pe+Me,Ie-Oe+$e,Pe+Me,Ie-Oe+Le,0,!0),Le!==0?(this.v.setTripleAt(Pe+Me-Le,Ie-Oe,Pe+Me-Le,Ie-Oe,Pe+Me-$e,Ie-Oe,1,!0),this.v.setTripleAt(Pe-Me+Le,Ie-Oe,Pe-Me+$e,Ie-Oe,Pe-Me+Le,Ie-Oe,2,!0),this.v.setTripleAt(Pe-Me,Ie-Oe+Le,Pe-Me,Ie-Oe+Le,Pe-Me,Ie-Oe+$e,3,!0),this.v.setTripleAt(Pe-Me,Ie+Oe-Le,Pe-Me,Ie+Oe-$e,Pe-Me,Ie+Oe-Le,4,!0),this.v.setTripleAt(Pe-Me+Le,Ie+Oe,Pe-Me+Le,Ie+Oe,Pe-Me+$e,Ie+Oe,5,!0),this.v.setTripleAt(Pe+Me-Le,Ie+Oe,Pe+Me-$e,Ie+Oe,Pe+Me-Le,Ie+Oe,6,!0),this.v.setTripleAt(Pe+Me,Ie+Oe-Le,Pe+Me,Ie+Oe-Le,Pe+Me,Ie+Oe-$e,7,!0)):(this.v.setTripleAt(Pe-Me,Ie-Oe,Pe-Me+$e,Ie-Oe,Pe-Me,Ie-Oe,1,!0),this.v.setTripleAt(Pe-Me,Ie+Oe,Pe-Me,Ie+Oe-$e,Pe-Me,Ie+Oe,2,!0),this.v.setTripleAt(Pe+Me,Ie+Oe,Pe+Me-$e,Ie+Oe,Pe+Me,Ie+Oe,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:B},extendPrototype([DynamicPropertyContainer],Te),Te}();function Se(Te,we,Pe){var Ie;if(Pe===3||Pe===4){var Me=Pe===3?we.pt:we.ks,Oe=Me.k;Oe.length?Ie=new J(Te,we,Pe):Ie=new Y(Te,we,Pe)}else Pe===5?Ie=new _e(Te,we):Pe===6?Ie=new xe(Te,we):Pe===7&&(Ie=new Z(Te,we));return Ie.k&&Te.addDynamicProperty(Ie),Ie}function Ee(){return Y}function Ae(){return J}var Re={};return Re.getShapeProp=Se,Re.getConstructorFunction=Ee,Re.getKeyframedConstructorFunction=Ae,Re}();/*!
1999
1999
  Transformation Matrix v2.0
2000
2000
  (c) Epistemex 2014-2015
2001
2001
  www.epistemex.com
2002
2002
  By Ken Fyrstenberg
2003
2003
  Contributions by leeoniya.
2004
2004
  License: MIT, header required.
2005
- */var Matrix=function(){var C=Math.cos,E=Math.sin,I=Math.tan,B=Math.round;function U(){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 V(Me){if(Me===0)return this;var ke=C(Me),Ge=E(Me);return this._t(ke,-Ge,0,0,Ge,ke,0,0,0,0,1,0,0,0,0,1)}function X(Me){if(Me===0)return this;var ke=C(Me),Ge=E(Me);return this._t(1,0,0,0,0,ke,-Ge,0,0,Ge,ke,0,0,0,0,1)}function Y(Me){if(Me===0)return this;var ke=C(Me),Ge=E(Me);return this._t(ke,0,Ge,0,0,1,0,0,-Ge,0,ke,0,0,0,0,1)}function K(Me){if(Me===0)return this;var ke=C(Me),Ge=E(Me);return this._t(ke,-Ge,0,0,Ge,ke,0,0,0,0,1,0,0,0,0,1)}function J(Me,ke){return this._t(1,ke,Me,1,0,0)}function xe(Me,ke){return this.shear(I(Me),I(ke))}function Z(Me,ke){var Ge=C(ke),Be=E(ke);return this._t(Ge,Be,0,0,-Be,Ge,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,I(Me),1,0,0,0,0,1,0,0,0,0,1)._t(Ge,-Be,0,0,Be,Ge,0,0,0,0,1,0,0,0,0,1)}function _e(Me,ke,Ge){return!Ge&&Ge!==0&&(Ge=1),Me===1&&ke===1&&Ge===1?this:this._t(Me,0,0,0,0,ke,0,0,0,0,Ge,0,0,0,0,1)}function Se(Me,ke,Ge,Be,qe,Ke,Ye,et,Qe,it,nt,ot,Ze,Je,st,rt){return this.props[0]=Me,this.props[1]=ke,this.props[2]=Ge,this.props[3]=Be,this.props[4]=qe,this.props[5]=Ke,this.props[6]=Ye,this.props[7]=et,this.props[8]=Qe,this.props[9]=it,this.props[10]=nt,this.props[11]=ot,this.props[12]=Ze,this.props[13]=Je,this.props[14]=st,this.props[15]=rt,this}function Ee(Me,ke,Ge){return Ge=Ge||0,Me!==0||ke!==0||Ge!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,Me,ke,Ge,1):this}function Ae(Me,ke,Ge,Be,qe,Ke,Ye,et,Qe,it,nt,ot,Ze,Je,st,rt){var tt=this.props;if(Me===1&&ke===0&&Ge===0&&Be===0&&qe===0&&Ke===1&&Ye===0&&et===0&&Qe===0&&it===0&&nt===1&&ot===0)return tt[12]=tt[12]*Me+tt[15]*Ze,tt[13]=tt[13]*Ke+tt[15]*Je,tt[14]=tt[14]*nt+tt[15]*st,tt[15]*=rt,this._identityCalculated=!1,this;var at=tt[0],ut=tt[1],mt=tt[2],pt=tt[3],yt=tt[4],gt=tt[5],_t=tt[6],Pt=tt[7],It=tt[8],St=tt[9],Lt=tt[10],At=tt[11],kt=tt[12],Mt=tt[13],qt=tt[14],Vt=tt[15];return tt[0]=at*Me+ut*qe+mt*Qe+pt*Ze,tt[1]=at*ke+ut*Ke+mt*it+pt*Je,tt[2]=at*Ge+ut*Ye+mt*nt+pt*st,tt[3]=at*Be+ut*et+mt*ot+pt*rt,tt[4]=yt*Me+gt*qe+_t*Qe+Pt*Ze,tt[5]=yt*ke+gt*Ke+_t*it+Pt*Je,tt[6]=yt*Ge+gt*Ye+_t*nt+Pt*st,tt[7]=yt*Be+gt*et+_t*ot+Pt*rt,tt[8]=It*Me+St*qe+Lt*Qe+At*Ze,tt[9]=It*ke+St*Ke+Lt*it+At*Je,tt[10]=It*Ge+St*Ye+Lt*nt+At*st,tt[11]=It*Be+St*et+Lt*ot+At*rt,tt[12]=kt*Me+Mt*qe+qt*Qe+Vt*Ze,tt[13]=kt*ke+Mt*Ke+qt*it+Vt*Je,tt[14]=kt*Ge+Mt*Ye+qt*nt+Vt*st,tt[15]=kt*Be+Mt*et+qt*ot+Vt*rt,this._identityCalculated=!1,this}function Re(Me){var ke=Me.props;return this.transform(ke[0],ke[1],ke[2],ke[3],ke[4],ke[5],ke[6],ke[7],ke[8],ke[9],ke[10],ke[11],ke[12],ke[13],ke[14],ke[15])}function Te(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function we(Me){for(var ke=0;ke<16;){if(Me.props[ke]!==this.props[ke])return!1;ke+=1}return!0}function Pe(Me){var ke;for(ke=0;ke<16;ke+=1)Me.props[ke]=this.props[ke];return Me}function Ie(Me){var ke;for(ke=0;ke<16;ke+=1)this.props[ke]=Me[ke]}function Fe(Me,ke,Ge){return{x:Me*this.props[0]+ke*this.props[4]+Ge*this.props[8]+this.props[12],y:Me*this.props[1]+ke*this.props[5]+Ge*this.props[9]+this.props[13],z:Me*this.props[2]+ke*this.props[6]+Ge*this.props[10]+this.props[14]}}function Oe(Me,ke,Ge){return Me*this.props[0]+ke*this.props[4]+Ge*this.props[8]+this.props[12]}function Le(Me,ke,Ge){return Me*this.props[1]+ke*this.props[5]+Ge*this.props[9]+this.props[13]}function De(Me,ke,Ge){return Me*this.props[2]+ke*this.props[6]+Ge*this.props[10]+this.props[14]}function Ve(){var Me=this.props[0]*this.props[5]-this.props[1]*this.props[4],ke=this.props[5]/Me,Ge=-this.props[1]/Me,Be=-this.props[4]/Me,qe=this.props[0]/Me,Ke=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/Me,Ye=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/Me,et=new Matrix;return et.props[0]=ke,et.props[1]=Ge,et.props[4]=Be,et.props[5]=qe,et.props[12]=Ke,et.props[13]=Ye,et}function Xe(Me){var ke=this.getInverseMatrix();return ke.applyToPointArray(Me[0],Me[1],Me[2]||0)}function Ue(Me){var ke,Ge=Me.length,Be=[];for(ke=0;ke<Ge;ke+=1)Be[ke]=Xe(Me[ke]);return Be}function We(Me,ke,Ge){var Be=createTypedArray("float32",6);if(this.isIdentity())Be[0]=Me[0],Be[1]=Me[1],Be[2]=ke[0],Be[3]=ke[1],Be[4]=Ge[0],Be[5]=Ge[1];else{var qe=this.props[0],Ke=this.props[1],Ye=this.props[4],et=this.props[5],Qe=this.props[12],it=this.props[13];Be[0]=Me[0]*qe+Me[1]*Ye+Qe,Be[1]=Me[0]*Ke+Me[1]*et+it,Be[2]=ke[0]*qe+ke[1]*Ye+Qe,Be[3]=ke[0]*Ke+ke[1]*et+it,Be[4]=Ge[0]*qe+Ge[1]*Ye+Qe,Be[5]=Ge[0]*Ke+Ge[1]*et+it}return Be}function je(Me,ke,Ge){var Be;return this.isIdentity()?Be=[Me,ke,Ge]:Be=[Me*this.props[0]+ke*this.props[4]+Ge*this.props[8]+this.props[12],Me*this.props[1]+ke*this.props[5]+Ge*this.props[9]+this.props[13],Me*this.props[2]+ke*this.props[6]+Ge*this.props[10]+this.props[14]],Be}function ze(Me,ke){if(this.isIdentity())return Me+","+ke;var Ge=this.props;return Math.round((Me*Ge[0]+ke*Ge[4]+Ge[12])*100)/100+","+Math.round((Me*Ge[1]+ke*Ge[5]+Ge[13])*100)/100}function He(){for(var Me=0,ke=this.props,Ge="matrix3d(",Be=1e4;Me<16;)Ge+=B(ke[Me]*Be)/Be,Ge+=Me===15?")":",",Me+=1;return Ge}function $e(Me){var ke=1e4;return Me<1e-6&&Me>0||Me>-1e-6&&Me<0?B(Me*ke)/ke:Me}function Ne(){var Me=this.props,ke=$e(Me[0]),Ge=$e(Me[1]),Be=$e(Me[4]),qe=$e(Me[5]),Ke=$e(Me[12]),Ye=$e(Me[13]);return"matrix("+ke+","+Ge+","+Be+","+qe+","+Ke+","+Ye+")"}return function(){this.reset=U,this.rotate=V,this.rotateX=X,this.rotateY=Y,this.rotateZ=K,this.skew=xe,this.skewFromAxis=Z,this.shear=J,this.scale=_e,this.setTransform=Se,this.translate=Ee,this.transform=Ae,this.multiply=Re,this.applyToPoint=Fe,this.applyToX=Oe,this.applyToY=Le,this.applyToZ=De,this.applyToPointArray=je,this.applyToTriplePoints=We,this.applyToPointStringified=ze,this.toCSS=He,this.to2dCSS=Ne,this.clone=Pe,this.cloneFromProps=Ie,this.equals=we,this.inversePoints=Ue,this.inversePoint=Xe,this.getInverseMatrix=Ve,this._t=this.transform,this.isIdentity=Te,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(C){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(I){return typeof I}:_typeof$3=function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},_typeof$3(C)}var lottie={};function setLocation(C){setLocationHref(C)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(C){setSubframeEnabled(C)}function setPrefix(C){setIdPrefix(C)}function loadAnimation(C){return animationManager.loadAnimation(C)}function setQuality(C){if(typeof C=="string")switch(C){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(C)&&C>1&&setDefaultCurveSegments(C)}function inBrowser(){return typeof navigator<"u"}function installPlugin(C,E){C==="expressions"&&setExpressionsPlugin(E)}function getFactory(C){switch(C){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(C){for(var E=queryString.split("&"),I=0;I<E.length;I+=1){var B=E[I].split("=");if(decodeURIComponent(B[0])==C)return decodeURIComponent(B[1])}return null}var queryString="";{var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{_typeof$3(exports)!=="object"&&(window.bodymovin=lottie)}catch(C){}var ShapeModifiers=function(){var C={},E={};C.registerModifier=I,C.getModifier=B;function I(U,V){E[U]||(E[U]=V)}function B(U,V,X){return new E[U](V,X)}return C}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(C){if(!this.closed){C.sh.container.addDynamicProperty(C.sh);var E={shape:C.sh,data:C,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(E),this.addShapeToModifier(E),this._isAnimated&&C.setAsAnimated()}},ShapeModifier.prototype.init=function(C,E){this.shapes=[],this.elem=C,this.initDynamicPropertyContainer(C),this.initModifierProperties(C,E),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(C,E){this.s=PropertyFactory.getProp(C,E.s,0,.01,this),this.e=PropertyFactory.getProp(C,E.e,0,.01,this),this.o=PropertyFactory.getProp(C,E.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=E.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(C){C.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(C,E,I,B,U){var V=[];E<=1?V.push({s:C,e:E}):C>=1?V.push({s:C-1,e:E-1}):(V.push({s:C,e:1}),V.push({s:0,e:E-1}));var X=[],Y,K=V.length,J;for(Y=0;Y<K;Y+=1)if(J=V[Y],!(J.e*U<B||J.s*U>B+I)){var xe,Z;J.s*U<=B?xe=0:xe=(J.s*U-B)/I,J.e*U>=B+I?Z=1:Z=(J.e*U-B)/I,X.push([xe,Z])}return X.length||X.push([0,0]),X},TrimModifier.prototype.releasePathsData=function(C){var E,I=C.length;for(E=0;E<I;E+=1)segmentsLengthPool.release(C[E]);return C.length=0,C},TrimModifier.prototype.processShapes=function(C){var E,I;if(this._mdf||C){var B=this.o.v%360/360;if(B<0&&(B+=1),this.s.v>1?E=1+B:this.s.v<0?E=0+B:E=this.s.v+B,this.e.v>1?I=1+B:this.e.v<0?I=0+B:I=this.e.v+B,E>I){var U=E;E=I,I=U}E=Math.round(E*1e4)*1e-4,I=Math.round(I*1e4)*1e-4,this.sValue=E,this.eValue=I}else E=this.sValue,I=this.eValue;var V,X,Y=this.shapes.length,K,J,xe,Z,_e,Se=0;if(I===E)for(X=0;X<Y;X+=1)this.shapes[X].localShapeCollection.releaseShapes(),this.shapes[X].shape._mdf=!0,this.shapes[X].shape.paths=this.shapes[X].localShapeCollection,this._mdf&&(this.shapes[X].pathsData.length=0);else if(I===1&&E===0||I===0&&E===1){if(this._mdf)for(X=0;X<Y;X+=1)this.shapes[X].pathsData.length=0,this.shapes[X].shape._mdf=!0}else{var Ee=[],Ae,Re;for(X=0;X<Y;X+=1)if(Ae=this.shapes[X],!Ae.shape._mdf&&!this._mdf&&!C&&this.m!==2)Ae.shape.paths=Ae.localShapeCollection;else{if(V=Ae.shape.paths,J=V._length,_e=0,!Ae.shape._mdf&&Ae.pathsData.length)_e=Ae.totalShapeLength;else{for(xe=this.releasePathsData(Ae.pathsData),K=0;K<J;K+=1)Z=bez.getSegmentsLength(V.shapes[K]),xe.push(Z),_e+=Z.totalLength;Ae.totalShapeLength=_e,Ae.pathsData=xe}Se+=_e,Ae.shape._mdf=!0}var Te=E,we=I,Pe=0,Ie;for(X=Y-1;X>=0;X-=1)if(Ae=this.shapes[X],Ae.shape._mdf){for(Re=Ae.localShapeCollection,Re.releaseShapes(),this.m===2&&Y>1?(Ie=this.calculateShapeEdges(E,I,Ae.totalShapeLength,Pe,Se),Pe+=Ae.totalShapeLength):Ie=[[Te,we]],J=Ie.length,K=0;K<J;K+=1){Te=Ie[K][0],we=Ie[K][1],Ee.length=0,we<=1?Ee.push({s:Ae.totalShapeLength*Te,e:Ae.totalShapeLength*we}):Te>=1?Ee.push({s:Ae.totalShapeLength*(Te-1),e:Ae.totalShapeLength*(we-1)}):(Ee.push({s:Ae.totalShapeLength*Te,e:Ae.totalShapeLength}),Ee.push({s:0,e:Ae.totalShapeLength*(we-1)}));var Fe=this.addShapes(Ae,Ee[0]);if(Ee[0].s!==Ee[0].e){if(Ee.length>1){var Oe=Ae.shape.paths.shapes[Ae.shape.paths._length-1];if(Oe.c){var Le=Fe.pop();this.addPaths(Fe,Re),Fe=this.addShapes(Ae,Ee[1],Le)}else this.addPaths(Fe,Re),Fe=this.addShapes(Ae,Ee[1])}this.addPaths(Fe,Re)}}Ae.shape.paths=Re}}},TrimModifier.prototype.addPaths=function(C,E){var I,B=C.length;for(I=0;I<B;I+=1)E.addShape(C[I])},TrimModifier.prototype.addSegment=function(C,E,I,B,U,V,X){U.setXYAt(E[0],E[1],"o",V),U.setXYAt(I[0],I[1],"i",V+1),X&&U.setXYAt(C[0],C[1],"v",V),U.setXYAt(B[0],B[1],"v",V+1)},TrimModifier.prototype.addSegmentFromArray=function(C,E,I,B){E.setXYAt(C[1],C[5],"o",I),E.setXYAt(C[2],C[6],"i",I+1),B&&E.setXYAt(C[0],C[4],"v",I),E.setXYAt(C[3],C[7],"v",I+1)},TrimModifier.prototype.addShapes=function(C,E,I){var B=C.pathsData,U=C.shape.paths.shapes,V,X=C.shape.paths._length,Y,K,J=0,xe,Z,_e,Se,Ee=[],Ae,Re=!0;for(I?(Z=I._length,Ae=I._length):(I=shapePool.newElement(),Z=0,Ae=0),Ee.push(I),V=0;V<X;V+=1){for(_e=B[V].lengths,I.c=U[V].c,K=U[V].c?_e.length:_e.length+1,Y=1;Y<K;Y+=1)if(xe=_e[Y-1],J+xe.addedLength<E.s)J+=xe.addedLength,I.c=!1;else if(J>E.e){I.c=!1;break}else E.s<=J&&E.e>=J+xe.addedLength?(this.addSegment(U[V].v[Y-1],U[V].o[Y-1],U[V].i[Y],U[V].v[Y],I,Z,Re),Re=!1):(Se=bez.getNewSegment(U[V].v[Y-1],U[V].v[Y],U[V].o[Y-1],U[V].i[Y],(E.s-J)/xe.addedLength,(E.e-J)/xe.addedLength,_e[Y-1]),this.addSegmentFromArray(Se,I,Z,Re),Re=!1,I.c=!1),J+=xe.addedLength,Z+=1;if(U[V].c&&_e.length){if(xe=_e[Y-1],J<=E.e){var Te=_e[Y-1].addedLength;E.s<=J&&E.e>=J+Te?(this.addSegment(U[V].v[Y-1],U[V].o[Y-1],U[V].i[0],U[V].v[0],I,Z,Re),Re=!1):(Se=bez.getNewSegment(U[V].v[Y-1],U[V].v[0],U[V].o[Y-1],U[V].i[0],(E.s-J)/Te,(E.e-J)/Te,_e[Y-1]),this.addSegmentFromArray(Se,I,Z,Re),Re=!1,I.c=!1)}else I.c=!1;J+=xe.addedLength,Z+=1}if(I._length&&(I.setXYAt(I.v[Ae][0],I.v[Ae][1],"i",Ae),I.setXYAt(I.v[I._length-1][0],I.v[I._length-1][1],"o",I._length-1)),J>E.e)break;V<X-1&&(I=shapePool.newElement(),Re=!0,Ee.push(I),Z=0)}return Ee};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(C,E){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(C,E.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(C,E){var I=E/100,B=[0,0],U=C._length,V=0;for(V=0;V<U;V+=1)B[0]+=C.v[V][0],B[1]+=C.v[V][1];B[0]/=U,B[1]/=U;var X=shapePool.newElement();X.c=C.c;var Y,K,J,xe,Z,_e;for(V=0;V<U;V+=1)Y=C.v[V][0]+(B[0]-C.v[V][0])*I,K=C.v[V][1]+(B[1]-C.v[V][1])*I,J=C.o[V][0]+(B[0]-C.o[V][0])*-I,xe=C.o[V][1]+(B[1]-C.o[V][1])*-I,Z=C.i[V][0]+(B[0]-C.i[V][0])*-I,_e=C.i[V][1]+(B[1]-C.i[V][1])*-I,X.setTripleAt(Y,K,J,xe,Z,_e,V);return X},PuckerAndBloatModifier.prototype.processShapes=function(C){var E,I,B=this.shapes.length,U,V,X=this.amount.v;if(X!==0){var Y,K;for(I=0;I<B;I+=1){if(Y=this.shapes[I],K=Y.localShapeCollection,!(!Y.shape._mdf&&!this._mdf&&!C))for(K.releaseShapes(),Y.shape._mdf=!0,E=Y.shape.paths.shapes,V=Y.shape.paths._length,U=0;U<V;U+=1)K.addShape(this.processPath(E[U],X));Y.shape.paths=Y.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var C=[0,0];function E(K){var J=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||J,this.a&&K.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&K.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&K.skewFromAxis(-this.sk.v,this.sa.v),this.r?K.rotate(-this.r.v):K.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?K.translate(this.px.v,this.py.v,-this.pz.v):K.translate(this.px.v,this.py.v,0):K.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function I(K){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||K){var J;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){var xe,Z;if(J=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(xe=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/J,0),Z=this.p.getValueAtTime(this.p.keyframes[0].t/J,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(xe=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/J,0),Z=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/J,0)):(xe=this.p.pv,Z=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/J,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){xe=[],Z=[];var _e=this.px,Se=this.py;_e._caching.lastFrame+_e.offsetTime<=_e.keyframes[0].t?(xe[0]=_e.getValueAtTime((_e.keyframes[0].t+.01)/J,0),xe[1]=Se.getValueAtTime((Se.keyframes[0].t+.01)/J,0),Z[0]=_e.getValueAtTime(_e.keyframes[0].t/J,0),Z[1]=Se.getValueAtTime(Se.keyframes[0].t/J,0)):_e._caching.lastFrame+_e.offsetTime>=_e.keyframes[_e.keyframes.length-1].t?(xe[0]=_e.getValueAtTime(_e.keyframes[_e.keyframes.length-1].t/J,0),xe[1]=Se.getValueAtTime(Se.keyframes[Se.keyframes.length-1].t/J,0),Z[0]=_e.getValueAtTime((_e.keyframes[_e.keyframes.length-1].t-.01)/J,0),Z[1]=Se.getValueAtTime((Se.keyframes[Se.keyframes.length-1].t-.01)/J,0)):(xe=[_e.pv,Se.pv],Z[0]=_e.getValueAtTime((_e._caching.lastFrame+_e.offsetTime-.01)/J,_e.offsetTime),Z[1]=Se.getValueAtTime((Se._caching.lastFrame+Se.offsetTime-.01)/J,Se.offsetTime))}else Z=C,xe=Z;this.v.rotate(-Math.atan2(xe[1]-Z[1],xe[0]-Z[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}}function B(){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;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;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)}function U(){}function V(K){this._addDynamicProperty(K),this.elem.addDynamicProperty(K),this._isDirty=!0}function X(K,J,xe){if(this.elem=K,this.frameId=-1,this.propType="transform",this.data=J,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(xe||K),J.p&&J.p.s?(this.px=PropertyFactory.getProp(K,J.p.x,0,0,this),this.py=PropertyFactory.getProp(K,J.p.y,0,0,this),J.p.z&&(this.pz=PropertyFactory.getProp(K,J.p.z,0,0,this))):this.p=PropertyFactory.getProp(K,J.p||{k:[0,0,0]},1,0,this),J.rx){if(this.rx=PropertyFactory.getProp(K,J.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(K,J.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(K,J.rz,0,degToRads,this),J.or.k[0].ti){var Z,_e=J.or.k.length;for(Z=0;Z<_e;Z+=1)J.or.k[Z].to=null,J.or.k[Z].ti=null}this.or=PropertyFactory.getProp(K,J.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(K,J.r||{k:0},0,degToRads,this);J.sk&&(this.sk=PropertyFactory.getProp(K,J.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(K,J.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(K,J.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(K,J.s||{k:[100,100,100]},1,.01,this),J.o?this.o=PropertyFactory.getProp(K,J.o,0,.01,K):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}X.prototype={applyToMatrix:E,getValue:I,precalculateMatrix:B,autoOrient:U},extendPrototype([DynamicPropertyContainer],X),X.prototype.addDynamicProperty=V,X.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function Y(K,J,xe){return new X(K,J,xe)}return{getTransformProperty:Y}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(C,E){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(C,E.c,0,null,this),this.o=PropertyFactory.getProp(C,E.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(C,E.tr,this),this.so=PropertyFactory.getProp(C,E.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(C,E.tr.eo,0,.01,this),this.data=E,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(C,E,I,B,U,V){var X=V?-1:1,Y=B.s.v[0]+(1-B.s.v[0])*(1-U),K=B.s.v[1]+(1-B.s.v[1])*(1-U);C.translate(B.p.v[0]*X*U,B.p.v[1]*X*U,B.p.v[2]),E.translate(-B.a.v[0],-B.a.v[1],B.a.v[2]),E.rotate(-B.r.v*X*U),E.translate(B.a.v[0],B.a.v[1],B.a.v[2]),I.translate(-B.a.v[0],-B.a.v[1],B.a.v[2]),I.scale(V?1/Y:Y,V?1/K:K),I.translate(B.a.v[0],B.a.v[1],B.a.v[2])},RepeaterModifier.prototype.init=function(C,E,I,B){for(this.elem=C,this.arr=E,this.pos=I,this.elemsData=B,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(C),this.initModifierProperties(C,E[I]);I>0;)I-=1,this._elements.unshift(E[I]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(C){var E,I=C.length;for(E=0;E<I;E+=1)C[E]._processed=!1,C[E].ty==="gr"&&this.resetElements(C[E].it)},RepeaterModifier.prototype.cloneElements=function(C){var E=JSON.parse(JSON.stringify(C));return this.resetElements(E),E},RepeaterModifier.prototype.changeGroupRender=function(C,E){var I,B=C.length;for(I=0;I<B;I+=1)C[I]._render=E,C[I].ty==="gr"&&this.changeGroupRender(C[I].it,E)},RepeaterModifier.prototype.processShapes=function(C){var E,I,B,U,V,X=!1;if(this._mdf||C){var Y=Math.ceil(this.c.v);if(this._groups.length<Y){for(;this._groups.length<Y;){var K={it:this.cloneElements(this._elements),ty:"gr"};K.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,K),this._groups.splice(0,0,K),this._currentCopies+=1}this.elem.reloadShapes(),X=!0}V=0;var J;for(B=0;B<=this._groups.length-1;B+=1){if(J=V<Y,this._groups[B]._render=J,this.changeGroupRender(this._groups[B].it,J),!J){var xe=this.elemsData[B].it,Z=xe[xe.length-1];Z.transform.op.v!==0?(Z.transform.op._mdf=!0,Z.transform.op.v=0):Z.transform.op._mdf=!1}V+=1}this._currentCopies=Y;var _e=this.o.v,Se=_e%1,Ee=_e>0?Math.floor(_e):Math.ceil(_e),Ae=this.pMatrix.props,Re=this.rMatrix.props,Te=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var we=0;if(_e>0){for(;we<Ee;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),we+=1;Se&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,Se,!1),we+=Se)}else if(_e<0){for(;we>Ee;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),we-=1;Se&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-Se,!0),we-=Se)}B=this.data.m===1?0:this._currentCopies-1,U=this.data.m===1?1:-1,V=this._currentCopies;for(var Pe,Ie;V;){if(E=this.elemsData[B].it,I=E[E.length-1].transform.mProps.v.props,Ie=I.length,E[E.length-1].transform.mProps._mdf=!0,E[E.length-1].transform.op._mdf=!0,E[E.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(B/(this._currentCopies-1)),we!==0){for((B!==0&&U===1||B!==this._currentCopies-1&&U===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(Re[0],Re[1],Re[2],Re[3],Re[4],Re[5],Re[6],Re[7],Re[8],Re[9],Re[10],Re[11],Re[12],Re[13],Re[14],Re[15]),this.matrix.transform(Te[0],Te[1],Te[2],Te[3],Te[4],Te[5],Te[6],Te[7],Te[8],Te[9],Te[10],Te[11],Te[12],Te[13],Te[14],Te[15]),this.matrix.transform(Ae[0],Ae[1],Ae[2],Ae[3],Ae[4],Ae[5],Ae[6],Ae[7],Ae[8],Ae[9],Ae[10],Ae[11],Ae[12],Ae[13],Ae[14],Ae[15]),Pe=0;Pe<Ie;Pe+=1)I[Pe]=this.matrix.props[Pe];this.matrix.reset()}else for(this.matrix.reset(),Pe=0;Pe<Ie;Pe+=1)I[Pe]=this.matrix.props[Pe];we+=1,V-=1,B+=U}}else for(V=this._currentCopies,B=0,U=1;V;)E=this.elemsData[B].it,I=E[E.length-1].transform.mProps.v.props,E[E.length-1].transform.mProps._mdf=!1,E[E.length-1].transform.op._mdf=!1,V-=1,B+=U;return X},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(C,E){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(C,E.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(C,E){var I=shapePool.newElement();I.c=C.c;var B,U=C._length,V,X,Y,K,J,xe,Z=0,_e,Se,Ee,Ae,Re,Te;for(B=0;B<U;B+=1)V=C.v[B],Y=C.o[B],X=C.i[B],V[0]===Y[0]&&V[1]===Y[1]&&V[0]===X[0]&&V[1]===X[1]?(B===0||B===U-1)&&!C.c?(I.setTripleAt(V[0],V[1],Y[0],Y[1],X[0],X[1],Z),Z+=1):(B===0?K=C.v[U-1]:K=C.v[B-1],J=Math.sqrt(Math.pow(V[0]-K[0],2)+Math.pow(V[1]-K[1],2)),xe=J?Math.min(J/2,E)/J:0,Re=V[0]+(K[0]-V[0])*xe,_e=Re,Te=V[1]-(V[1]-K[1])*xe,Se=Te,Ee=_e-(_e-V[0])*roundCorner,Ae=Se-(Se-V[1])*roundCorner,I.setTripleAt(_e,Se,Ee,Ae,Re,Te,Z),Z+=1,B===U-1?K=C.v[0]:K=C.v[B+1],J=Math.sqrt(Math.pow(V[0]-K[0],2)+Math.pow(V[1]-K[1],2)),xe=J?Math.min(J/2,E)/J:0,Ee=V[0]+(K[0]-V[0])*xe,_e=Ee,Ae=V[1]+(K[1]-V[1])*xe,Se=Ae,Re=_e-(_e-V[0])*roundCorner,Te=Se-(Se-V[1])*roundCorner,I.setTripleAt(_e,Se,Ee,Ae,Re,Te,Z),Z+=1):(I.setTripleAt(C.v[B][0],C.v[B][1],C.o[B][0],C.o[B][1],C.i[B][0],C.i[B][1],Z),Z+=1);return I},RoundCornersModifier.prototype.processShapes=function(C){var E,I,B=this.shapes.length,U,V,X=this.rd.v;if(X!==0){var Y,K;for(I=0;I<B;I+=1){if(Y=this.shapes[I],K=Y.localShapeCollection,!(!Y.shape._mdf&&!this._mdf&&!C))for(K.releaseShapes(),Y.shape._mdf=!0,E=Y.shape.paths.shapes,V=Y.shape.paths._length,U=0;U<V;U+=1)K.addShape(this.processPath(E[U],X));Y.shape.paths=Y.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(C,E){return Math.abs(C-E)*1e5<=Math.min(Math.abs(C),Math.abs(E))}function floatZero(C){return Math.abs(C)<=1e-5}function lerp(C,E,I){return C*(1-I)+E*I}function lerpPoint(C,E,I){return[lerp(C[0],E[0],I),lerp(C[1],E[1],I)]}function quadRoots(C,E,I){if(C===0)return[];var B=E*E-4*C*I;if(B<0)return[];var U=-E/(2*C);if(B===0)return[U];var V=Math.sqrt(B)/(2*C);return[U-V,U+V]}function polynomialCoefficients(C,E,I,B){return[-C+3*E-3*I+B,3*C-6*E+3*I,-3*C+3*E,C]}function singlePoint(C){return new PolynomialBezier(C,C,C,C,!1)}function PolynomialBezier(C,E,I,B,U){U&&pointEqual(C,E)&&(E=lerpPoint(C,B,1/3)),U&&pointEqual(I,B)&&(I=lerpPoint(C,B,2/3));var V=polynomialCoefficients(C[0],E[0],I[0],B[0]),X=polynomialCoefficients(C[1],E[1],I[1],B[1]);this.a=[V[0],X[0]],this.b=[V[1],X[1]],this.c=[V[2],X[2]],this.d=[V[3],X[3]],this.points=[C,E,I,B]}PolynomialBezier.prototype.point=function(C){return[((this.a[0]*C+this.b[0])*C+this.c[0])*C+this.d[0],((this.a[1]*C+this.b[1])*C+this.c[1])*C+this.d[1]]},PolynomialBezier.prototype.derivative=function(C){return[(3*C*this.a[0]+2*this.b[0])*C+this.c[0],(3*C*this.a[1]+2*this.b[1])*C+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(C){var E=this.derivative(C);return Math.atan2(E[1],E[0])},PolynomialBezier.prototype.normalAngle=function(C){var E=this.derivative(C);return Math.atan2(E[0],E[1])},PolynomialBezier.prototype.inflectionPoints=function(){var C=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(C))return[];var E=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/C,I=E*E-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/C;if(I<0)return[];var B=Math.sqrt(I);return floatZero(B)?B>0&&B<1?[E]:[]:[E-B,E+B].filter(function(U){return U>0&&U<1})},PolynomialBezier.prototype.split=function(C){if(C<=0)return[singlePoint(this.points[0]),this];if(C>=1)return[this,singlePoint(this.points[this.points.length-1])];var E=lerpPoint(this.points[0],this.points[1],C),I=lerpPoint(this.points[1],this.points[2],C),B=lerpPoint(this.points[2],this.points[3],C),U=lerpPoint(E,I,C),V=lerpPoint(I,B,C),X=lerpPoint(U,V,C);return[new PolynomialBezier(this.points[0],E,U,X,!0),new PolynomialBezier(X,V,B,this.points[3],!0)]};function extrema(C,E){var I=C.points[0][E],B=C.points[C.points.length-1][E];if(I>B){var U=B;B=I,I=U}for(var V=quadRoots(3*C.a[E],2*C.b[E],C.c[E]),X=0;X<V.length;X+=1)if(V[X]>0&&V[X]<1){var Y=C.point(V[X])[E];Y<I?I=Y:Y>B&&(B=Y)}return{min:I,max:B}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var C=this.bounds();return{left:C.x.min,right:C.x.max,top:C.y.min,bottom:C.y.max,width:C.x.max-C.x.min,height:C.y.max-C.y.min,cx:(C.x.max+C.x.min)/2,cy:(C.y.max+C.y.min)/2}};function intersectData(C,E,I){var B=C.boundingBox();return{cx:B.cx,cy:B.cy,width:B.width,height:B.height,bez:C,t:(E+I)/2,t1:E,t2:I}}function splitData(C){var E=C.bez.split(.5);return[intersectData(E[0],C.t1,C.t),intersectData(E[1],C.t,C.t2)]}function boxIntersect(C,E){return Math.abs(C.cx-E.cx)*2<C.width+E.width&&Math.abs(C.cy-E.cy)*2<C.height+E.height}function intersectsImpl(C,E,I,B,U,V){if(boxIntersect(C,E)){if(I>=V||C.width<=B&&C.height<=B&&E.width<=B&&E.height<=B){U.push([C.t,E.t]);return}var X=splitData(C),Y=splitData(E);intersectsImpl(X[0],Y[0],I+1,B,U,V),intersectsImpl(X[0],Y[1],I+1,B,U,V),intersectsImpl(X[1],Y[0],I+1,B,U,V),intersectsImpl(X[1],Y[1],I+1,B,U,V)}}PolynomialBezier.prototype.intersections=function(C,E,I){E===void 0&&(E=2),I===void 0&&(I=7);var B=[];return intersectsImpl(intersectData(this,0,1),intersectData(C,0,1),0,E,B,I),B},PolynomialBezier.shapeSegment=function(C,E){var I=(E+1)%C.length();return new PolynomialBezier(C.v[E],C.o[E],C.i[I],C.v[I],!0)},PolynomialBezier.shapeSegmentInverted=function(C,E){var I=(E+1)%C.length();return new PolynomialBezier(C.v[I],C.i[I],C.o[E],C.v[E],!0)};function crossProduct(C,E){return[C[1]*E[2]-C[2]*E[1],C[2]*E[0]-C[0]*E[2],C[0]*E[1]-C[1]*E[0]]}function lineIntersection(C,E,I,B){var U=[C[0],C[1],1],V=[E[0],E[1],1],X=[I[0],I[1],1],Y=[B[0],B[1],1],K=crossProduct(crossProduct(U,V),crossProduct(X,Y));return floatZero(K[2])?null:[K[0]/K[2],K[1]/K[2]]}function polarOffset(C,E,I){return[C[0]+Math.cos(E)*I,C[1]-Math.sin(E)*I]}function pointDistance(C,E){return Math.hypot(C[0]-E[0],C[1]-E[1])}function pointEqual(C,E){return floatEqual(C[0],E[0])&&floatEqual(C[1],E[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(C,E){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(C,E.s,0,null,this),this.frequency=PropertyFactory.getProp(C,E.r,0,null,this),this.pointsType=PropertyFactory.getProp(C,E.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(C,E,I,B,U,V,X){var Y=I-Math.PI/2,K=I+Math.PI/2,J=E[0]+Math.cos(I)*B*U,xe=E[1]-Math.sin(I)*B*U;C.setTripleAt(J,xe,J+Math.cos(Y)*V,xe-Math.sin(Y)*V,J+Math.cos(K)*X,xe-Math.sin(K)*X,C.length())}function getPerpendicularVector(C,E){var I=[E[0]-C[0],E[1]-C[1]],B=-Math.PI*.5,U=[Math.cos(B)*I[0]-Math.sin(B)*I[1],Math.sin(B)*I[0]+Math.cos(B)*I[1]];return U}function getProjectingAngle(C,E){var I=E===0?C.length()-1:E-1,B=(E+1)%C.length(),U=C.v[I],V=C.v[B],X=getPerpendicularVector(U,V);return Math.atan2(0,1)-Math.atan2(X[1],X[0])}function zigZagCorner(C,E,I,B,U,V,X){var Y=getProjectingAngle(E,I),K=E.v[I%E._length],J=E.v[I===0?E._length-1:I-1],xe=E.v[(I+1)%E._length],Z=V===2?Math.sqrt(Math.pow(K[0]-J[0],2)+Math.pow(K[1]-J[1],2)):0,_e=V===2?Math.sqrt(Math.pow(K[0]-xe[0],2)+Math.pow(K[1]-xe[1],2)):0;setPoint(C,E.v[I%E._length],Y,X,B,_e/((U+1)*2),Z/((U+1)*2))}function zigZagSegment(C,E,I,B,U,V){for(var X=0;X<B;X+=1){var Y=(X+1)/(B+1),K=U===2?Math.sqrt(Math.pow(E.points[3][0]-E.points[0][0],2)+Math.pow(E.points[3][1]-E.points[0][1],2)):0,J=E.normalAngle(Y),xe=E.point(Y);setPoint(C,xe,J,V,I,K/((B+1)*2),K/((B+1)*2)),V=-V}return V}ZigZagModifier.prototype.processPath=function(C,E,I,B){var U=C._length,V=shapePool.newElement();if(V.c=C.c,C.c||(U-=1),U===0)return V;var X=-1,Y=PolynomialBezier.shapeSegment(C,0);zigZagCorner(V,C,0,E,I,B,X);for(var K=0;K<U;K+=1)X=zigZagSegment(V,Y,E,I,B,-X),K===U-1&&!C.c?Y=null:Y=PolynomialBezier.shapeSegment(C,(K+1)%U),zigZagCorner(V,C,K+1,E,I,B,X);return V},ZigZagModifier.prototype.processShapes=function(C){var E,I,B=this.shapes.length,U,V,X=this.amplitude.v,Y=Math.max(0,Math.round(this.frequency.v)),K=this.pointsType.v;if(X!==0){var J,xe;for(I=0;I<B;I+=1){if(J=this.shapes[I],xe=J.localShapeCollection,!(!J.shape._mdf&&!this._mdf&&!C))for(xe.releaseShapes(),J.shape._mdf=!0,E=J.shape.paths.shapes,V=J.shape.paths._length,U=0;U<V;U+=1)xe.addShape(this.processPath(E[U],X,Y,K));J.shape.paths=J.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(C,E,I){var B=Math.atan2(E[0]-C[0],E[1]-C[1]);return[polarOffset(C,B,I),polarOffset(E,B,I)]}function offsetSegment(C,E){var I,B,U,V,X,Y,K;K=linearOffset(C.points[0],C.points[1],E),I=K[0],B=K[1],K=linearOffset(C.points[1],C.points[2],E),U=K[0],V=K[1],K=linearOffset(C.points[2],C.points[3],E),X=K[0],Y=K[1];var J=lineIntersection(I,B,U,V);J===null&&(J=B);var xe=lineIntersection(X,Y,U,V);return xe===null&&(xe=X),new PolynomialBezier(I,J,xe,Y)}function joinLines(C,E,I,B,U){var V=E.points[3],X=I.points[0];if(B===3||pointEqual(V,X))return V;if(B===2){var Y=-E.tangentAngle(1),K=-I.tangentAngle(0)+Math.PI,J=lineIntersection(V,polarOffset(V,Y+Math.PI/2,100),X,polarOffset(X,Y+Math.PI/2,100)),xe=J?pointDistance(J,V):pointDistance(V,X)/2,Z=polarOffset(V,Y,2*xe*roundCorner);return C.setXYAt(Z[0],Z[1],"o",C.length()-1),Z=polarOffset(X,K,2*xe*roundCorner),C.setTripleAt(X[0],X[1],X[0],X[1],Z[0],Z[1],C.length()),X}var _e=pointEqual(V,E.points[2])?E.points[0]:E.points[2],Se=pointEqual(X,I.points[1])?I.points[3]:I.points[1],Ee=lineIntersection(_e,V,X,Se);return Ee&&pointDistance(Ee,V)<U?(C.setTripleAt(Ee[0],Ee[1],Ee[0],Ee[1],Ee[0],Ee[1],C.length()),Ee):V}function getIntersection(C,E){var I=C.intersections(E);return I.length&&floatEqual(I[0][0],1)&&I.shift(),I.length?I[0]:null}function pruneSegmentIntersection(C,E){var I=C.slice(),B=E.slice(),U=getIntersection(C[C.length-1],E[0]);return U&&(I[C.length-1]=C[C.length-1].split(U[0])[0],B[0]=E[0].split(U[1])[1]),C.length>1&&E.length>1&&(U=getIntersection(C[0],E[E.length-1]),U)?[[C[0].split(U[0])[0]],[E[E.length-1].split(U[1])[1]]]:[I,B]}function pruneIntersections(C){for(var E,I=1;I<C.length;I+=1)E=pruneSegmentIntersection(C[I-1],C[I]),C[I-1]=E[0],C[I]=E[1];return C.length>1&&(E=pruneSegmentIntersection(C[C.length-1],C[0]),C[C.length-1]=E[0],C[0]=E[1]),C}function offsetSegmentSplit(C,E){var I=C.inflectionPoints(),B,U,V,X;if(I.length===0)return[offsetSegment(C,E)];if(I.length===1||floatEqual(I[1],1))return V=C.split(I[0]),B=V[0],U=V[1],[offsetSegment(B,E),offsetSegment(U,E)];V=C.split(I[0]),B=V[0];var Y=(I[1]-I[0])/(1-I[0]);return V=V[1].split(Y),X=V[0],U=V[1],[offsetSegment(B,E),offsetSegment(X,E),offsetSegment(U,E)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(C,E){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(C,E.a,0,null,this),this.miterLimit=PropertyFactory.getProp(C,E.ml,0,null,this),this.lineJoin=E.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(C,E,I,B){var U=shapePool.newElement();U.c=C.c;var V=C.length();C.c||(V-=1);var X,Y,K,J=[];for(X=0;X<V;X+=1)K=PolynomialBezier.shapeSegment(C,X),J.push(offsetSegmentSplit(K,E));if(!C.c)for(X=V-1;X>=0;X-=1)K=PolynomialBezier.shapeSegmentInverted(C,X),J.push(offsetSegmentSplit(K,E));J=pruneIntersections(J);var xe=null,Z=null;for(X=0;X<J.length;X+=1){var _e=J[X];for(Z&&(xe=joinLines(U,Z,_e[0],I,B)),Z=_e[_e.length-1],Y=0;Y<_e.length;Y+=1)K=_e[Y],xe&&pointEqual(K.points[0],xe)?U.setXYAt(K.points[1][0],K.points[1][1],"o",U.length()-1):U.setTripleAt(K.points[0][0],K.points[0][1],K.points[1][0],K.points[1][1],K.points[0][0],K.points[0][1],U.length()),U.setTripleAt(K.points[3][0],K.points[3][1],K.points[3][0],K.points[3][1],K.points[2][0],K.points[2][1],U.length()),xe=K.points[3]}return J.length&&joinLines(U,Z,J[0][0],I,B),U},OffsetPathModifier.prototype.processShapes=function(C){var E,I,B=this.shapes.length,U,V,X=this.amount.v,Y=this.miterLimit.v,K=this.lineJoin;if(X!==0){var J,xe;for(I=0;I<B;I+=1){if(J=this.shapes[I],xe=J.localShapeCollection,!(!J.shape._mdf&&!this._mdf&&!C))for(xe.releaseShapes(),J.shape._mdf=!0,E=J.shape.paths.shapes,V=J.shape.paths._length,U=0;U<V;U+=1)xe.addShape(this.processPath(E[U],X,K,Y));J.shape.paths=J.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(C){for(var E=C.fStyle?C.fStyle.split(" "):[],I="normal",B="normal",U=E.length,V,X=0;X<U;X+=1)switch(V=E[X].toLowerCase(),V){case"italic":B="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";break}return{style:B,weight:C.fWeight||I}}var FontManager=function(){var C=5e3,E={w:0,size:0,shapes:[],data:{shapes:[]}},I=[];I=I.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var B=127988,U=917631,V=917601,X=917626,Y=65039,K=8205,J=127462,xe=127487,Z=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function _e($e){var Ne=$e.split(","),Me,ke=Ne.length,Ge=[];for(Me=0;Me<ke;Me+=1)Ne[Me]!=="sans-serif"&&Ne[Me]!=="monospace"&&Ge.push(Ne[Me]);return Ge.join(",")}function Se($e,Ne){var Me=createTag("span");Me.setAttribute("aria-hidden",!0),Me.style.fontFamily=Ne;var ke=createTag("span");ke.innerText="giItT1WQy@!-/#",Me.style.position="absolute",Me.style.left="-10000px",Me.style.top="-10000px",Me.style.fontSize="300px",Me.style.fontVariant="normal",Me.style.fontStyle="normal",Me.style.fontWeight="normal",Me.style.letterSpacing="0",Me.appendChild(ke),document.body.appendChild(Me);var Ge=ke.offsetWidth;return ke.style.fontFamily=_e($e)+", "+Ne,{node:ke,w:Ge,parent:Me}}function Ee(){var $e,Ne=this.fonts.length,Me,ke,Ge=Ne;for($e=0;$e<Ne;$e+=1)this.fonts[$e].loaded?Ge-=1:this.fonts[$e].fOrigin==="n"||this.fonts[$e].origin===0?this.fonts[$e].loaded=!0:(Me=this.fonts[$e].monoCase.node,ke=this.fonts[$e].monoCase.w,Me.offsetWidth!==ke?(Ge-=1,this.fonts[$e].loaded=!0):(Me=this.fonts[$e].sansCase.node,ke=this.fonts[$e].sansCase.w,Me.offsetWidth!==ke&&(Ge-=1,this.fonts[$e].loaded=!0)),this.fonts[$e].loaded&&(this.fonts[$e].sansCase.parent.parentNode.removeChild(this.fonts[$e].sansCase.parent),this.fonts[$e].monoCase.parent.parentNode.removeChild(this.fonts[$e].monoCase.parent)));Ge!==0&&Date.now()-this.initTime<C?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function Ae($e,Ne){var Me=document.body&&Ne?"svg":"canvas",ke,Ge=getFontProperties($e);if(Me==="svg"){var Be=createNS("text");Be.style.fontSize="100px",Be.setAttribute("font-family",$e.fFamily),Be.setAttribute("font-style",Ge.style),Be.setAttribute("font-weight",Ge.weight),Be.textContent="1",$e.fClass?(Be.style.fontFamily="inherit",Be.setAttribute("class",$e.fClass)):Be.style.fontFamily=$e.fFamily,Ne.appendChild(Be),ke=Be}else{var qe=new OffscreenCanvas(500,500).getContext("2d");qe.font=Ge.style+" "+Ge.weight+" 100px "+$e.fFamily,ke=qe}function Ke(Ye){return Me==="svg"?(ke.textContent=Ye,ke.getComputedTextLength()):ke.measureText(Ye).width}return{measureText:Ke}}function Re($e,Ne){if(!$e){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=$e.list;return}if(!document.body){this.isLoaded=!0,$e.list.forEach(function(nt){nt.helper=Ae(nt),nt.cache={}}),this.fonts=$e.list;return}var Me=$e.list,ke,Ge=Me.length,Be=Ge;for(ke=0;ke<Ge;ke+=1){var qe=!0,Ke,Ye;if(Me[ke].loaded=!1,Me[ke].monoCase=Se(Me[ke].fFamily,"monospace"),Me[ke].sansCase=Se(Me[ke].fFamily,"sans-serif"),!Me[ke].fPath)Me[ke].loaded=!0,Be-=1;else if(Me[ke].fOrigin==="p"||Me[ke].origin===3){if(Ke=document.querySelectorAll('style[f-forigin="p"][f-family="'+Me[ke].fFamily+'"], style[f-origin="3"][f-family="'+Me[ke].fFamily+'"]'),Ke.length>0&&(qe=!1),qe){var et=createTag("style");et.setAttribute("f-forigin",Me[ke].fOrigin),et.setAttribute("f-origin",Me[ke].origin),et.setAttribute("f-family",Me[ke].fFamily),et.type="text/css",et.innerText="@font-face {font-family: "+Me[ke].fFamily+"; font-style: normal; src: url('"+Me[ke].fPath+"');}",Ne.appendChild(et)}}else if(Me[ke].fOrigin==="g"||Me[ke].origin===1){for(Ke=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Ye=0;Ye<Ke.length;Ye+=1)Ke[Ye].href.indexOf(Me[ke].fPath)!==-1&&(qe=!1);if(qe){var Qe=createTag("link");Qe.setAttribute("f-forigin",Me[ke].fOrigin),Qe.setAttribute("f-origin",Me[ke].origin),Qe.type="text/css",Qe.rel="stylesheet",Qe.href=Me[ke].fPath,document.body.appendChild(Qe)}}else if(Me[ke].fOrigin==="t"||Me[ke].origin===2){for(Ke=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Ye=0;Ye<Ke.length;Ye+=1)Me[ke].fPath===Ke[Ye].src&&(qe=!1);if(qe){var it=createTag("link");it.setAttribute("f-forigin",Me[ke].fOrigin),it.setAttribute("f-origin",Me[ke].origin),it.setAttribute("rel","stylesheet"),it.setAttribute("href",Me[ke].fPath),Ne.appendChild(it)}}Me[ke].helper=Ae(Me[ke],Ne),Me[ke].cache={},this.fonts.push(Me[ke])}Be===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function Te($e){if($e){this.chars||(this.chars=[]);var Ne,Me=$e.length,ke,Ge=this.chars.length,Be;for(Ne=0;Ne<Me;Ne+=1){for(ke=0,Be=!1;ke<Ge;)this.chars[ke].style===$e[Ne].style&&this.chars[ke].fFamily===$e[Ne].fFamily&&this.chars[ke].ch===$e[Ne].ch&&(Be=!0),ke+=1;Be||(this.chars.push($e[Ne]),Ge+=1)}}}function we($e,Ne,Me){for(var ke=0,Ge=this.chars.length;ke<Ge;){if(this.chars[ke].ch===$e&&this.chars[ke].style===Ne&&this.chars[ke].fFamily===Me)return this.chars[ke];ke+=1}return(typeof $e=="string"&&$e.charCodeAt(0)!==13||!$e)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",$e,Ne,Me)),E}function Pe($e,Ne,Me){var ke=this.getFontByName(Ne),Ge=$e;if(!ke.cache[Ge]){var Be=ke.helper;if($e===" "){var qe=Be.measureText("|"+$e+"|"),Ke=Be.measureText("||");ke.cache[Ge]=(qe-Ke)/100}else ke.cache[Ge]=Be.measureText($e)/100}return ke.cache[Ge]*Me}function Ie($e){for(var Ne=0,Me=this.fonts.length;Ne<Me;){if(this.fonts[Ne].fName===$e)return this.fonts[Ne];Ne+=1}return this.fonts[0]}function Fe($e){var Ne=0,Me=$e.charCodeAt(0);if(Me>=55296&&Me<=56319){var ke=$e.charCodeAt(1);ke>=56320&&ke<=57343&&(Ne=(Me-55296)*1024+ke-56320+65536)}return Ne}function Oe($e,Ne){var Me=$e.toString(16)+Ne.toString(16);return Z.indexOf(Me)!==-1}function Le($e){return $e===K}function De($e){return $e===Y}function Ve($e){var Ne=Fe($e);return Ne>=J&&Ne<=xe}function Xe($e){return Ve($e.substr(0,2))&&Ve($e.substr(2,2))}function Ue($e){return I.indexOf($e)!==-1}function We($e,Ne){var Me=Fe($e.substr(Ne,2));if(Me!==B)return!1;var ke=0;for(Ne+=2;ke<5;){if(Me=Fe($e.substr(Ne,2)),Me<V||Me>X)return!1;ke+=1,Ne+=2}return Fe($e.substr(Ne,2))===U}function je(){this.isLoaded=!0}var ze=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)};ze.isModifier=Oe,ze.isZeroWidthJoiner=Le,ze.isFlagEmoji=Xe,ze.isRegionalCode=Ve,ze.isCombinedCharacter=Ue,ze.isRegionalFlag=We,ze.isVariationSelector=De,ze.BLACK_FLAG_CODE_POINT=B;var He={addChars:Te,addFonts:Re,getCharData:we,getFontByName:Ie,measureText:Pe,checkLoadedFonts:Ee,setIsLoaded:je};return ze.prototype=He,ze}();function SlotManager(C){this.animationData=C}SlotManager.prototype.getProp=function(C){return this.animationData.slots&&this.animationData.slots[C.sid]?Object.assign(C,this.animationData.slots[C.sid].p):C};function slotFactory(C){return new SlotManager(C)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(E){this.renderableComponents.indexOf(E)===-1&&this.renderableComponents.push(E)},removeRenderableComponent:function(E){this.renderableComponents.indexOf(E)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(E),1)},prepareRenderableFrame:function(E){this.checkLayerLimits(E)},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(E){this.data.ip-this.data.st<=E&&this.data.op-this.data.st>E?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var E,I=this.renderableComponents.length;for(E=0;E<I;E+=1)this.renderableComponents[E].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=function(){var C={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(E){return C[E]||""}}();function SliderEffect(C,E,I){this.p=PropertyFactory.getProp(E,C.v,0,0,I)}function AngleEffect(C,E,I){this.p=PropertyFactory.getProp(E,C.v,0,0,I)}function ColorEffect(C,E,I){this.p=PropertyFactory.getProp(E,C.v,1,0,I)}function PointEffect(C,E,I){this.p=PropertyFactory.getProp(E,C.v,1,0,I)}function LayerIndexEffect(C,E,I){this.p=PropertyFactory.getProp(E,C.v,0,0,I)}function MaskIndexEffect(C,E,I){this.p=PropertyFactory.getProp(E,C.v,0,0,I)}function CheckboxEffect(C,E,I){this.p=PropertyFactory.getProp(E,C.v,0,0,I)}function NoValueEffect(){this.p={}}function EffectsManager(C,E){var I=C.ef||[];this.effectElements=[];var B,U=I.length,V;for(B=0;B<U;B+=1)V=new GroupEffect(I[B],E),this.effectElements.push(V)}function GroupEffect(C,E){this.init(C,E)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(C,E){this.data=C,this.effectElements=[],this.initDynamicPropertyContainer(E);var I,B=this.data.ef.length,U,V=this.data.ef;for(I=0;I<B;I+=1){switch(U=null,V[I].ty){case 0:U=new SliderEffect(V[I],E,this);break;case 1:U=new AngleEffect(V[I],E,this);break;case 2:U=new ColorEffect(V[I],E,this);break;case 3:U=new PointEffect(V[I],E,this);break;case 4:case 7:U=new CheckboxEffect(V[I],E,this);break;case 10:U=new LayerIndexEffect(V[I],E,this);break;case 11:U=new MaskIndexEffect(V[I],E,this);break;case 5:U=new EffectsManager(V[I],E);break;default:U=new NoValueEffect(V[I]);break}U&&this.effectElements.push(U)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var E=0,I=this.data.masksProperties.length;E<I;){if(this.data.masksProperties[E].mode!=="n"&&this.data.masksProperties[E].cl!==!1)return!0;E+=1}return!1},initExpressions:function(){var E=getExpressionInterfaces();if(E){var I=E("layer"),B=E("effects"),U=E("shape"),V=E("text"),X=E("comp");this.layerInterface=I(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var Y=B.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(Y),this.data.ty===0||this.data.xt?this.compInterface=X(this):this.data.ty===4?(this.layerInterface.shapeInterface=U(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=V(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var E=getBlendMode(this.data.bm),I=this.baseElement||this.layerElement;I.style["mix-blend-mode"]=E},initBaseData:function(E,I,B){this.globalData=I,this.comp=B,this.data=E,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function FrameElement(){}FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(E,I){var B,U=this.dynamicProperties.length;for(B=0;B<U;B+=1)(I||this._isParent&&this.dynamicProperties[B].propType==="transform")&&(this.dynamicProperties[B].getValue(),this.dynamicProperties[B]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(E){this.dynamicProperties.indexOf(E)===-1&&this.dynamicProperties.push(E)}};function FootageElement(C,E,I){this.initFrame(),this.initRenderable(),this.assetData=E.getAssetData(C.refId),this.footageData=E.imageLoader.getAsset(this.assetData),this.initBaseData(C,E,I)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var C=getExpressionInterfaces();if(C){var E=C("footage");this.layerInterface=E(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(C,E,I){this.initFrame(),this.initRenderable(),this.assetData=E.getAssetData(C.refId),this.initBaseData(C,E,I),this._isPlaying=!1,this._canPlay=!1;var B=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(B),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=C.tm?PropertyFactory.getProp(this,C.tm,0,E.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,C.au&&C.au.lv?C.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(C){if(this.prepareRenderableFrame(C,!0),this.prepareProperties(C,!0),this.tm._placeholder)this._currentTime=C/this.data.sr;else{var E=this.tm.v;this._currentTime=E}this._volume=this.lv.v[0];var I=this._volume*this._volumeMultiplier;this._previousVolume!==I&&(this._previousVolume=I,this.audio.volume(I))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(C){this.audio.rate(C)},AudioElement.prototype.volume=function(C){this._volumeMultiplier=C,this._previousVolume=C*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(C){var E,I=this.layers.length,B;for(this.completeLayers=!0,E=I-1;E>=0;E-=1)this.elements[E]||(B=this.layers[E],B.ip-B.st<=C-this.layers[E].st&&B.op-B.st>C-this.layers[E].st&&this.buildItem(E)),this.completeLayers=this.elements[E]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(C){switch(C.ty){case 2:return this.createImage(C);case 0:return this.createComp(C);case 1:return this.createSolid(C);case 3:return this.createNull(C);case 4:return this.createShape(C);case 5:return this.createText(C);case 6:return this.createAudio(C);case 13:return this.createCamera(C);case 15:return this.createFootage(C);default:return this.createNull(C)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(C){return new AudioElement(C,this.globalData,this)},BaseRenderer.prototype.createFootage=function(C){return new FootageElement(C,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var C,E=this.layers.length;for(C=0;C<E;C+=1)this.buildItem(C);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(C){this.completeLayers=!1;var E,I=C.length,B,U=this.layers.length;for(E=0;E<I;E+=1)for(B=0;B<U;){if(this.layers[B].id===C[E].id){this.layers[B]=C[E];break}B+=1}},BaseRenderer.prototype.setProjectInterface=function(C){this.globalData.projectInterface=C},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(C,E,I){for(var B=this.elements,U=this.layers,V=0,X=U.length;V<X;)U[V].ind==E&&(!B[V]||B[V]===!0?(this.buildItem(V),this.addPendingElement(C)):(I.push(B[V]),B[V].setAsParent(),U[V].parent!==void 0?this.buildElementParenting(C,U[V].parent,I):C.setHierarchy(I))),V+=1},BaseRenderer.prototype.addPendingElement=function(C){this.pendingElements.push(C)},BaseRenderer.prototype.searchExtraCompositions=function(C){var E,I=C.length;for(E=0;E<I;E+=1)if(C[E].xt){var B=this.createComp(C[E]);B.initExpressions(),this.globalData.projectInterface.registerComposition(B)}},BaseRenderer.prototype.getElementById=function(C){var E,I=this.elements.length;for(E=0;E<I;E+=1)if(this.elements[E].data.ind===C)return this.elements[E];return null},BaseRenderer.prototype.getElementByPath=function(C){var E=C.shift(),I;if(typeof E=="number")I=this.elements[E];else{var B,U=this.elements.length;for(B=0;B<U;B+=1)if(this.elements[B].data.nm===E){I=this.elements[B];break}}return C.length===0?I:I.getElementByPath(C)},BaseRenderer.prototype.setupGlobalData=function(C,E){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(C),this.globalData.fontManager.addChars(C.chars),this.globalData.fontManager.addFonts(C.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=C.fr,this.globalData.nm=C.nm,this.globalData.compSize={w:C.w,h:C.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function(){var E=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:E,localMat:E,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 E,I=this.finalTransform.mat,B=0,U=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;B<U;){if(this.hierarchy[B].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}B+=1}if(this.finalTransform._matMdf)for(E=this.finalTransform.mProp.v.props,I.cloneFromProps(E),B=0;B<U;B+=1)I.multiply(this.hierarchy[B].finalTransform.mProp.v)}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 E=0,I=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;E<I;)this.localTransforms[E]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[E]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),E+=1;if(this.finalTransform._localMatMdf){var B=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(B),E=1;E<I;E+=1){var U=this.localTransforms[E].matrix;B.multiply(U)}B.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var V=this.finalTransform.localOpacity;for(E=0;E<I;E+=1)V*=this.localTransforms[E].opacity*.01;this.finalTransform.localOpacity=V}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var E=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(E.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var I=0,B=E.length;for(I=0;I<B;I+=1)this.localTransforms.push(E[I])}}},globalToLocal:function(E){var I=[];I.push(this.finalTransform);for(var B=!0,U=this.comp;B;)U.finalTransform?(U.data.hasMask&&I.splice(0,0,U.finalTransform),U=U.comp):B=!1;var V,X=I.length,Y;for(V=0;V<X;V+=1)Y=I[V].mat.applyToPointArray(0,0,0),E=[E[0]-Y[0],E[1]-Y[1],0];return E},mHelper:new Matrix};function MaskElement(C,E,I){this.data=C,this.element=E,this.globalData=I,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var B=this.globalData.defs,U,V=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(V),this.solidPath="";var X,Y=this.masksProperties,K=0,J=[],xe,Z,_e=createElementID(),Se,Ee,Ae,Re,Te="clipPath",we="clip-path";for(U=0;U<V;U+=1)if((Y[U].mode!=="a"&&Y[U].mode!=="n"||Y[U].inv||Y[U].o.k!==100||Y[U].o.x)&&(Te="mask",we="mask"),(Y[U].mode==="s"||Y[U].mode==="i")&&K===0?(Se=createNS("rect"),Se.setAttribute("fill","#ffffff"),Se.setAttribute("width",this.element.comp.data.w||0),Se.setAttribute("height",this.element.comp.data.h||0),J.push(Se)):Se=null,X=createNS("path"),Y[U].mode==="n")this.viewData[U]={op:PropertyFactory.getProp(this.element,Y[U].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,Y[U],3),elem:X,lastPath:""},B.appendChild(X);else{K+=1,X.setAttribute("fill",Y[U].mode==="s"?"#000000":"#ffffff"),X.setAttribute("clip-rule","nonzero");var Pe;if(Y[U].x.k!==0?(Te="mask",we="mask",Re=PropertyFactory.getProp(this.element,Y[U].x,0,null,this.element),Pe=createElementID(),Ee=createNS("filter"),Ee.setAttribute("id",Pe),Ae=createNS("feMorphology"),Ae.setAttribute("operator","erode"),Ae.setAttribute("in","SourceGraphic"),Ae.setAttribute("radius","0"),Ee.appendChild(Ae),B.appendChild(Ee),X.setAttribute("stroke",Y[U].mode==="s"?"#000000":"#ffffff")):(Ae=null,Re=null),this.storedData[U]={elem:X,x:Re,expan:Ae,lastPath:"",lastOperator:"",filterId:Pe,lastRadius:0},Y[U].mode==="i"){Z=J.length;var Ie=createNS("g");for(xe=0;xe<Z;xe+=1)Ie.appendChild(J[xe]);var Fe=createNS("mask");Fe.setAttribute("mask-type","alpha"),Fe.setAttribute("id",_e+"_"+K),Fe.appendChild(X),B.appendChild(Fe),Ie.setAttribute("mask","url("+getLocationHref()+"#"+_e+"_"+K+")"),J.length=0,J.push(Ie)}else J.push(X);Y[U].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[U]={elem:X,lastPath:"",op:PropertyFactory.getProp(this.element,Y[U].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,Y[U],3),invRect:Se},this.viewData[U].prop.k||this.drawPath(Y[U],this.viewData[U].prop.v,this.viewData[U])}for(this.maskElement=createNS(Te),V=J.length,U=0;U<V;U+=1)this.maskElement.appendChild(J[U]);K>0&&(this.maskElement.setAttribute("id",_e),this.element.maskedElement.setAttribute(we,"url("+getLocationHref()+"#"+_e+")"),B.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(C){return this.viewData[C].prop},MaskElement.prototype.renderFrame=function(C){var E=this.element.finalTransform.mat,I,B=this.masksProperties.length;for(I=0;I<B;I+=1)if((this.viewData[I].prop._mdf||C)&&this.drawPath(this.masksProperties[I],this.viewData[I].prop.v,this.viewData[I]),(this.viewData[I].op._mdf||C)&&this.viewData[I].elem.setAttribute("fill-opacity",this.viewData[I].op.v),this.masksProperties[I].mode!=="n"&&(this.viewData[I].invRect&&(this.element.finalTransform.mProp._mdf||C)&&this.viewData[I].invRect.setAttribute("transform",E.getInverseMatrix().to2dCSS()),this.storedData[I].x&&(this.storedData[I].x._mdf||C))){var U=this.storedData[I].expan;this.storedData[I].x.v<0?(this.storedData[I].lastOperator!=="erode"&&(this.storedData[I].lastOperator="erode",this.storedData[I].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[I].filterId+")")),U.setAttribute("radius",-this.storedData[I].x.v)):(this.storedData[I].lastOperator!=="dilate"&&(this.storedData[I].lastOperator="dilate",this.storedData[I].elem.setAttribute("filter",null)),this.storedData[I].elem.setAttribute("stroke-width",this.storedData[I].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var C="M0,0 ";return C+=" h"+this.globalData.compSize.w,C+=" v"+this.globalData.compSize.h,C+=" h-"+this.globalData.compSize.w,C+=" v-"+this.globalData.compSize.h+" ",C},MaskElement.prototype.drawPath=function(C,E,I){var B=" M"+E.v[0][0]+","+E.v[0][1],U,V;for(V=E._length,U=1;U<V;U+=1)B+=" C"+E.o[U-1][0]+","+E.o[U-1][1]+" "+E.i[U][0]+","+E.i[U][1]+" "+E.v[U][0]+","+E.v[U][1];if(E.c&&V>1&&(B+=" C"+E.o[U-1][0]+","+E.o[U-1][1]+" "+E.i[0][0]+","+E.i[0][1]+" "+E.v[0][0]+","+E.v[0][1]),I.lastPath!==B){var X="";I.elem&&(E.c&&(X=C.inv?this.solidPath+B:B),I.elem.setAttribute("d",X)),I.lastPath=B}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var C={};C.createFilter=E,C.createAlphaToLuminanceFilter=I;function E(B,U){var V=createNS("filter");return V.setAttribute("id",B),U!==!0&&(V.setAttribute("filterUnits","objectBoundingBox"),V.setAttribute("x","0%"),V.setAttribute("y","0%"),V.setAttribute("width","100%"),V.setAttribute("height","100%")),V}function I(){var B=createNS("feColorMatrix");return B.setAttribute("type","matrix"),B.setAttribute("color-interpolation-filters","sRGB"),B.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),B}return C}(),featureSupport=function(){var C={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(C.maskType=!1),/firefox/i.test(navigator.userAgent)&&(C.svgLumaHidden=!1),C}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(C){var E,I="SourceGraphic",B=C.data.ef?C.data.ef.length:0,U=createElementID(),V=filtersFactory.createFilter(U,!0),X=0;this.filters=[];var Y;for(E=0;E<B;E+=1){Y=null;var K=C.data.ef[E].ty;if(registeredEffects$1[K]){var J=registeredEffects$1[K].effect;Y=new J(V,C.effectsManager.effectElements[E],C,idPrefix+X,I),I=idPrefix+X,registeredEffects$1[K].countsAsEffect&&(X+=1)}Y&&this.filters.push(Y)}X&&(C.globalData.defs.appendChild(V),C.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+U+")")),this.filters.length&&C.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(C){var E,I=this.filters.length;for(E=0;E<I;E+=1)this.filters[E].renderFrame(C)},SVGEffects.prototype.getEffects=function(C){var E,I=this.filters.length,B=[];for(E=0;E<I;E+=1)this.filters[E].type===C&&B.push(this.filters[E]);return B};function registerEffect$1(C,E,I){registeredEffects$1[C]={effect:E,countsAsEffect:I}}function SVGBaseElement(){}SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var E=null;if(this.data.td){this.matteMasks={};var I=createNS("g");I.setAttribute("id",this.layerId),I.appendChild(this.layerElement),E=I,this.globalData.defs.appendChild(I)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),E=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),this.data.ty===0&&!this.data.hd){var B=createNS("clipPath"),U=createNS("path");U.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var V=createElementID();if(B.setAttribute("id",V),B.appendChild(U),this.globalData.defs.appendChild(B),this.checkMasks()){var X=createNS("g");X.setAttribute("clip-path","url("+getLocationHref()+"#"+V+")"),X.appendChild(this.layerElement),this.transformedElement=X,E?E.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+V+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(E){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[E]){var I=this.layerId+"_"+E,B,U,V,X;if(E===1||E===3){var Y=createNS("mask");Y.setAttribute("id",I),Y.setAttribute("mask-type",E===3?"luminance":"alpha"),V=createNS("use"),V.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),Y.appendChild(V),this.globalData.defs.appendChild(Y),!featureSupport.maskType&&E===1&&(Y.setAttribute("mask-type","luminance"),B=createElementID(),U=filtersFactory.createFilter(B),this.globalData.defs.appendChild(U),U.appendChild(filtersFactory.createAlphaToLuminanceFilter()),X=createNS("g"),X.appendChild(V),Y.appendChild(X),X.setAttribute("filter","url("+getLocationHref()+"#"+B+")"))}else if(E===2){var K=createNS("mask");K.setAttribute("id",I),K.setAttribute("mask-type","alpha");var J=createNS("g");K.appendChild(J),B=createElementID(),U=filtersFactory.createFilter(B);var xe=createNS("feComponentTransfer");xe.setAttribute("in","SourceGraphic"),U.appendChild(xe);var Z=createNS("feFuncA");Z.setAttribute("type","table"),Z.setAttribute("tableValues","1.0 0.0"),xe.appendChild(Z),this.globalData.defs.appendChild(U);var _e=createNS("rect");_e.setAttribute("width",this.comp.data.w),_e.setAttribute("height",this.comp.data.h),_e.setAttribute("x","0"),_e.setAttribute("y","0"),_e.setAttribute("fill","#ffffff"),_e.setAttribute("opacity","0"),J.setAttribute("filter","url("+getLocationHref()+"#"+B+")"),J.appendChild(_e),V=createNS("use"),V.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),J.appendChild(V),featureSupport.maskType||(K.setAttribute("mask-type","luminance"),U.appendChild(filtersFactory.createAlphaToLuminanceFilter()),X=createNS("g"),J.appendChild(_e),X.appendChild(this.layerElement),J.appendChild(X)),this.globalData.defs.appendChild(K)}this.matteMasks[E]=I}return this.matteMasks[E]},setMatte:function(E){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+E+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(E){this.hierarchy=E},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var C={initElement:function(I,B,U){this.initFrame(),this.initBaseData(I,B,U),this.initTransform(I,B,U),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var I=this.baseElement||this.layerElement;I.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var I=this.baseElement||this.layerElement;I.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(I){this._mdf=!1,this.prepareRenderableFrame(I),this.prepareProperties(I,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(C)],RenderableDOMElement)})();function IImageElement(C,E,I){this.assetData=E.getAssetData(C.refId),this.assetData&&this.assetData.sid&&(this.assetData=E.slotManager.getProp(this.assetData)),this.initElement(C,E,I),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var C=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",C),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(C,E){this.elem=C,this.pos=E}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(E){var I,B=this.shapeModifiers.length;for(I=0;I<B;I+=1)this.shapeModifiers[I].addShape(E)},isShapeInAnimatedModifiers:function(E){for(var I=0,B=this.shapeModifiers.length;I<B;)if(this.shapeModifiers[I].isAnimatedWithShape(E))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var E,I=this.shapes.length;for(E=0;E<I;E+=1)this.shapes[E].sh.reset();I=this.shapeModifiers.length;var B;for(E=I-1;E>=0&&(B=this.shapeModifiers[E].processShapes(this._isFirstFrame),!B);E-=1);}},searchProcessedElement:function(E){for(var I=this.processedElements,B=0,U=I.length;B<U;){if(I[B].elem===E)return I[B].pos;B+=1}return 0},addProcessedElement:function(E,I){for(var B=this.processedElements,U=B.length;U;)if(U-=1,B[U].elem===E){B[U].pos=I;return}B.push(new ProcessedElement(E,I))},prepareFrame:function(E){this.prepareRenderableFrame(E),this.prepareProperties(E,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(C,E,I){this.caches=[],this.styles=[],this.transformers=C,this.lStr="",this.sh=I,this.lvl=E,this._isAnimated=!!I.k;for(var B=0,U=C.length;B<U;){if(C[B].mProps.dynamicProperties.length){this._isAnimated=!0;break}B+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(C,E){this.data=C,this.type=C.ty,this.d="",this.lvl=E,this._mdf=!1,this.closed=C.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(C,E,I,B){this.elem=C,this.frameId=-1,this.dataProps=createSizedArray(E.length),this.renderer=I,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",E.length?E.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(B);var U,V=E.length||0,X;for(U=0;U<V;U+=1)X=PropertyFactory.getProp(C,E[U].v,0,0,this),this.k=X.k||this.k,this.dataProps[U]={n:E[U].n,p:X};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(C){if(!(this.elem.globalData.frameId===this.frameId&&!C)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||C,this._mdf)){var E=0,I=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),E=0;E<I;E+=1)this.dataProps[E].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[E].p.v:this.dashArray[E]=this.dataProps[E].p.v:this.dashoffset[0]=this.dataProps[E].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(C,E,I){this.initDynamicPropertyContainer(C),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(C,E.o,0,.01,this),this.w=PropertyFactory.getProp(C,E.w,0,null,this),this.d=new DashProperty(C,E.d||{},"svg",this),this.c=PropertyFactory.getProp(C,E.c,1,255,this),this.style=I,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(C,E,I){this.initDynamicPropertyContainer(C),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(C,E.o,0,.01,this),this.c=PropertyFactory.getProp(C,E.c,1,255,this),this.style=I}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(C,E,I){this.initDynamicPropertyContainer(C),this.getValue=this.iterateDynamicProperties,this.style=I}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(C,E,I){this.data=E,this.c=createTypedArray("uint8c",E.p*4);var B=E.k.k[0].s?E.k.k[0].s.length-E.p*4:E.k.k.length-E.p*4;this.o=createTypedArray("float32",B),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=B,this.initDynamicPropertyContainer(I),this.prop=PropertyFactory.getProp(C,E.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(C,E){for(var I=0,B=this.o.length/2,U;I<B;){if(U=Math.abs(C[I*4]-C[E*4+I*2]),U>.01)return!1;I+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var C=0,E=this.data.k.k.length;C<E;){if(!this.comparePoints(this.data.k.k[C].s,this.data.p))return!1;C+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(C){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||C){var E,I=this.data.p*4,B,U;for(E=0;E<I;E+=1)B=E%4===0?100:255,U=Math.round(this.prop.v[E]*B),this.c[E]!==U&&(this.c[E]=U,this._cmdf=!C);if(this.o.length)for(I=this.prop.v.length,E=this.data.p*4;E<I;E+=1)B=E%2===0?100:1,U=E%2===0?Math.round(this.prop.v[E]*100):this.prop.v[E],this.o[E-this.data.p*4]!==U&&(this.o[E-this.data.p*4]=U,this._omdf=!C);this._mdf=!C}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(C,E,I){this.initDynamicPropertyContainer(C),this.getValue=this.iterateDynamicProperties,this.initGradientData(C,E,I)}SVGGradientFillStyleData.prototype.initGradientData=function(C,E,I){this.o=PropertyFactory.getProp(C,E.o,0,.01,this),this.s=PropertyFactory.getProp(C,E.s,1,null,this),this.e=PropertyFactory.getProp(C,E.e,1,null,this),this.h=PropertyFactory.getProp(C,E.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(C,E.a||{k:0},0,degToRads,this),this.g=new GradientProperty(C,E.g,this),this.style=I,this.stops=[],this.setGradientData(I.pElem,E),this.setGradientOpacity(E,I),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(C,E){var I=createElementID(),B=createNS(E.t===1?"linearGradient":"radialGradient");B.setAttribute("id",I),B.setAttribute("spreadMethod","pad"),B.setAttribute("gradientUnits","userSpaceOnUse");var U=[],V,X,Y;for(Y=E.g.p*4,X=0;X<Y;X+=4)V=createNS("stop"),B.appendChild(V),U.push(V);C.setAttribute(E.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+I+")"),this.gf=B,this.cst=U},SVGGradientFillStyleData.prototype.setGradientOpacity=function(C,E){if(this.g._hasOpacity&&!this.g._collapsable){var I,B,U,V=createNS("mask"),X=createNS("path");V.appendChild(X);var Y=createElementID(),K=createElementID();V.setAttribute("id",K);var J=createNS(C.t===1?"linearGradient":"radialGradient");J.setAttribute("id",Y),J.setAttribute("spreadMethod","pad"),J.setAttribute("gradientUnits","userSpaceOnUse"),U=C.g.k.k[0].s?C.g.k.k[0].s.length:C.g.k.k.length;var xe=this.stops;for(B=C.g.p*4;B<U;B+=2)I=createNS("stop"),I.setAttribute("stop-color","rgb(255,255,255)"),J.appendChild(I),xe.push(I);X.setAttribute(C.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+Y+")"),C.ty==="gs"&&(X.setAttribute("stroke-linecap",lineCapEnum[C.lc||2]),X.setAttribute("stroke-linejoin",lineJoinEnum[C.lj||2]),C.lj===1&&X.setAttribute("stroke-miterlimit",C.ml)),this.of=J,this.ms=V,this.ost=xe,this.maskId=K,E.msElem=X}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(C,E,I){this.initDynamicPropertyContainer(C),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(C,E.w,0,null,this),this.d=new DashProperty(C,E.d||{},"svg",this),this.initGradientData(C,E,I),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(C,E,I){this.transform={mProps:C,op:E,container:I},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(E,I,B,U){if(I===0)return"";var V=E.o,X=E.i,Y=E.v,K,J=" M"+U.applyToPointStringified(Y[0][0],Y[0][1]);for(K=1;K<I;K+=1)J+=" C"+U.applyToPointStringified(V[K-1][0],V[K-1][1])+" "+U.applyToPointStringified(X[K][0],X[K][1])+" "+U.applyToPointStringified(Y[K][0],Y[K][1]);return B&&I&&(J+=" C"+U.applyToPointStringified(V[K-1][0],V[K-1][1])+" "+U.applyToPointStringified(X[0][0],X[0][1])+" "+U.applyToPointStringified(Y[0][0],Y[0][1]),J+="z"),J},SVGElementsRenderer=function(){var C=new Matrix,E=new Matrix,I={createRenderFunction:B};function B(Z){switch(Z.ty){case"fl":return Y;case"gf":return J;case"gs":return K;case"st":return xe;case"sh":case"el":case"rc":case"sr":return X;case"tr":return U;case"no":return V;default:return null}}function U(Z,_e,Se){(Se||_e.transform.op._mdf)&&_e.transform.container.setAttribute("opacity",_e.transform.op.v),(Se||_e.transform.mProps._mdf)&&_e.transform.container.setAttribute("transform",_e.transform.mProps.v.to2dCSS())}function V(){}function X(Z,_e,Se){var Ee,Ae,Re,Te,we,Pe,Ie=_e.styles.length,Fe=_e.lvl,Oe,Le,De,Ve;for(Pe=0;Pe<Ie;Pe+=1){if(Te=_e.sh._mdf||Se,_e.styles[Pe].lvl<Fe){for(Le=E.reset(),De=Fe-_e.styles[Pe].lvl,Ve=_e.transformers.length-1;!Te&&De>0;)Te=_e.transformers[Ve].mProps._mdf||Te,De-=1,Ve-=1;if(Te)for(De=Fe-_e.styles[Pe].lvl,Ve=_e.transformers.length-1;De>0;)Le.multiply(_e.transformers[Ve].mProps.v),De-=1,Ve-=1}else Le=C;if(Oe=_e.sh.paths,Ae=Oe._length,Te){for(Re="",Ee=0;Ee<Ae;Ee+=1)we=Oe.shapes[Ee],we&&we._length&&(Re+=buildShapeString(we,we._length,we.c,Le));_e.caches[Pe]=Re}else Re=_e.caches[Pe];_e.styles[Pe].d+=Z.hd===!0?"":Re,_e.styles[Pe]._mdf=Te||_e.styles[Pe]._mdf}}function Y(Z,_e,Se){var Ee=_e.style;(_e.c._mdf||Se)&&Ee.pElem.setAttribute("fill","rgb("+bmFloor(_e.c.v[0])+","+bmFloor(_e.c.v[1])+","+bmFloor(_e.c.v[2])+")"),(_e.o._mdf||Se)&&Ee.pElem.setAttribute("fill-opacity",_e.o.v)}function K(Z,_e,Se){J(Z,_e,Se),xe(Z,_e,Se)}function J(Z,_e,Se){var Ee=_e.gf,Ae=_e.g._hasOpacity,Re=_e.s.v,Te=_e.e.v;if(_e.o._mdf||Se){var we=Z.ty==="gf"?"fill-opacity":"stroke-opacity";_e.style.pElem.setAttribute(we,_e.o.v)}if(_e.s._mdf||Se){var Pe=Z.t===1?"x1":"cx",Ie=Pe==="x1"?"y1":"cy";Ee.setAttribute(Pe,Re[0]),Ee.setAttribute(Ie,Re[1]),Ae&&!_e.g._collapsable&&(_e.of.setAttribute(Pe,Re[0]),_e.of.setAttribute(Ie,Re[1]))}var Fe,Oe,Le,De;if(_e.g._cmdf||Se){Fe=_e.cst;var Ve=_e.g.c;for(Le=Fe.length,Oe=0;Oe<Le;Oe+=1)De=Fe[Oe],De.setAttribute("offset",Ve[Oe*4]+"%"),De.setAttribute("stop-color","rgb("+Ve[Oe*4+1]+","+Ve[Oe*4+2]+","+Ve[Oe*4+3]+")")}if(Ae&&(_e.g._omdf||Se)){var Xe=_e.g.o;for(_e.g._collapsable?Fe=_e.cst:Fe=_e.ost,Le=Fe.length,Oe=0;Oe<Le;Oe+=1)De=Fe[Oe],_e.g._collapsable||De.setAttribute("offset",Xe[Oe*2]+"%"),De.setAttribute("stop-opacity",Xe[Oe*2+1])}if(Z.t===1)(_e.e._mdf||Se)&&(Ee.setAttribute("x2",Te[0]),Ee.setAttribute("y2",Te[1]),Ae&&!_e.g._collapsable&&(_e.of.setAttribute("x2",Te[0]),_e.of.setAttribute("y2",Te[1])));else{var Ue;if((_e.s._mdf||_e.e._mdf||Se)&&(Ue=Math.sqrt(Math.pow(Re[0]-Te[0],2)+Math.pow(Re[1]-Te[1],2)),Ee.setAttribute("r",Ue),Ae&&!_e.g._collapsable&&_e.of.setAttribute("r",Ue)),_e.e._mdf||_e.h._mdf||_e.a._mdf||Se){Ue||(Ue=Math.sqrt(Math.pow(Re[0]-Te[0],2)+Math.pow(Re[1]-Te[1],2)));var We=Math.atan2(Te[1]-Re[1],Te[0]-Re[0]),je=_e.h.v;je>=1?je=.99:je<=-1&&(je=-.99);var ze=Ue*je,He=Math.cos(We+_e.a.v)*ze+Re[0],$e=Math.sin(We+_e.a.v)*ze+Re[1];Ee.setAttribute("fx",He),Ee.setAttribute("fy",$e),Ae&&!_e.g._collapsable&&(_e.of.setAttribute("fx",He),_e.of.setAttribute("fy",$e))}}}function xe(Z,_e,Se){var Ee=_e.style,Ae=_e.d;Ae&&(Ae._mdf||Se)&&Ae.dashStr&&(Ee.pElem.setAttribute("stroke-dasharray",Ae.dashStr),Ee.pElem.setAttribute("stroke-dashoffset",Ae.dashoffset[0])),_e.c&&(_e.c._mdf||Se)&&Ee.pElem.setAttribute("stroke","rgb("+bmFloor(_e.c.v[0])+","+bmFloor(_e.c.v[1])+","+bmFloor(_e.c.v[2])+")"),(_e.o._mdf||Se)&&Ee.pElem.setAttribute("stroke-opacity",_e.o.v),(_e.w._mdf||Se)&&(Ee.pElem.setAttribute("stroke-width",_e.w.v),Ee.msElem&&Ee.msElem.setAttribute("stroke-width",_e.w.v))}return I}();function SVGShapeElement(C,E,I){this.shapes=[],this.shapesData=C.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(C,E,I),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var C,E=this.shapes.length,I,B,U=this.stylesList.length,V,X=[],Y=!1;for(B=0;B<U;B+=1){for(V=this.stylesList[B],Y=!1,X.length=0,C=0;C<E;C+=1)I=this.shapes[C],I.styles.indexOf(V)!==-1&&(X.push(I),Y=I._isAnimated||Y);X.length>1&&Y&&this.setShapesAsAnimated(X)}},SVGShapeElement.prototype.setShapesAsAnimated=function(C){var E,I=C.length;for(E=0;E<I;E+=1)C[E].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(C,E){var I,B=new SVGStyleData(C,E),U=B.pElem;if(C.ty==="st")I=new SVGStrokeStyleData(this,C,B);else if(C.ty==="fl")I=new SVGFillStyleData(this,C,B);else if(C.ty==="gf"||C.ty==="gs"){var V=C.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;I=new V(this,C,B),this.globalData.defs.appendChild(I.gf),I.maskId&&(this.globalData.defs.appendChild(I.ms),this.globalData.defs.appendChild(I.of),U.setAttribute("mask","url("+getLocationHref()+"#"+I.maskId+")"))}else C.ty==="no"&&(I=new SVGNoStyleData(this,C,B));return(C.ty==="st"||C.ty==="gs")&&(U.setAttribute("stroke-linecap",lineCapEnum[C.lc||2]),U.setAttribute("stroke-linejoin",lineJoinEnum[C.lj||2]),U.setAttribute("fill-opacity","0"),C.lj===1&&U.setAttribute("stroke-miterlimit",C.ml)),C.r===2&&U.setAttribute("fill-rule","evenodd"),C.ln&&U.setAttribute("id",C.ln),C.cl&&U.setAttribute("class",C.cl),C.bm&&(U.style["mix-blend-mode"]=getBlendMode(C.bm)),this.stylesList.push(B),this.addToAnimatedContents(C,I),I},SVGShapeElement.prototype.createGroupElement=function(C){var E=new ShapeGroupData;return C.ln&&E.gr.setAttribute("id",C.ln),C.cl&&E.gr.setAttribute("class",C.cl),C.bm&&(E.gr.style["mix-blend-mode"]=getBlendMode(C.bm)),E},SVGShapeElement.prototype.createTransformElement=function(C,E){var I=TransformPropertyFactory.getTransformProperty(this,C,this),B=new SVGTransformData(I,I.o,E);return this.addToAnimatedContents(C,B),B},SVGShapeElement.prototype.createShapeElement=function(C,E,I){var B=4;C.ty==="rc"?B=5:C.ty==="el"?B=6:C.ty==="sr"&&(B=7);var U=ShapePropertyFactory.getShapeProp(this,C,B,this),V=new SVGShapeData(E,I,U);return this.shapes.push(V),this.addShapeToModifiers(V),this.addToAnimatedContents(C,V),V},SVGShapeElement.prototype.addToAnimatedContents=function(C,E){for(var I=0,B=this.animatedContents.length;I<B;){if(this.animatedContents[I].element===E)return;I+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(C),element:E,data:C})},SVGShapeElement.prototype.setElementStyles=function(C){var E=C.styles,I,B=this.stylesList.length;for(I=0;I<B;I+=1)this.stylesList[I].closed||E.push(this.stylesList[I])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var C,E=this.itemsData.length;for(C=0;C<E;C+=1)this.prevViewData[C]=this.itemsData[C];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),E=this.dynamicProperties.length,C=0;C<E;C+=1)this.dynamicProperties[C].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(C,E,I,B,U,V,X){var Y=[].concat(V),K,J=C.length-1,xe,Z,_e=[],Se=[],Ee,Ae,Re;for(K=J;K>=0;K-=1){if(Re=this.searchProcessedElement(C[K]),Re?E[K]=I[Re-1]:C[K]._render=X,C[K].ty==="fl"||C[K].ty==="st"||C[K].ty==="gf"||C[K].ty==="gs"||C[K].ty==="no")Re?E[K].style.closed=!1:E[K]=this.createStyleElement(C[K],U),C[K]._render&&E[K].style.pElem.parentNode!==B&&B.appendChild(E[K].style.pElem),_e.push(E[K].style);else if(C[K].ty==="gr"){if(!Re)E[K]=this.createGroupElement(C[K]);else for(Z=E[K].it.length,xe=0;xe<Z;xe+=1)E[K].prevViewData[xe]=E[K].it[xe];this.searchShapes(C[K].it,E[K].it,E[K].prevViewData,E[K].gr,U+1,Y,X),C[K]._render&&E[K].gr.parentNode!==B&&B.appendChild(E[K].gr)}else C[K].ty==="tr"?(Re||(E[K]=this.createTransformElement(C[K],B)),Ee=E[K].transform,Y.push(Ee)):C[K].ty==="sh"||C[K].ty==="rc"||C[K].ty==="el"||C[K].ty==="sr"?(Re||(E[K]=this.createShapeElement(C[K],Y,U)),this.setElementStyles(E[K])):C[K].ty==="tm"||C[K].ty==="rd"||C[K].ty==="ms"||C[K].ty==="pb"||C[K].ty==="zz"||C[K].ty==="op"?(Re?(Ae=E[K],Ae.closed=!1):(Ae=ShapeModifiers.getModifier(C[K].ty),Ae.init(this,C[K]),E[K]=Ae,this.shapeModifiers.push(Ae)),Se.push(Ae)):C[K].ty==="rp"&&(Re?(Ae=E[K],Ae.closed=!0):(Ae=ShapeModifiers.getModifier(C[K].ty),E[K]=Ae,Ae.init(this,C,K,E),this.shapeModifiers.push(Ae),X=!1),Se.push(Ae));this.addProcessedElement(C[K],K+1)}for(J=_e.length,K=0;K<J;K+=1)_e[K].closed=!0;for(J=Se.length,K=0;K<J;K+=1)Se[K].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var C,E=this.stylesList.length;for(C=0;C<E;C+=1)this.stylesList[C].reset();for(this.renderShape(),C=0;C<E;C+=1)(this.stylesList[C]._mdf||this._isFirstFrame)&&(this.stylesList[C].msElem&&(this.stylesList[C].msElem.setAttribute("d",this.stylesList[C].d),this.stylesList[C].d="M0 0"+this.stylesList[C].d),this.stylesList[C].pElem.setAttribute("d",this.stylesList[C].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var C,E=this.animatedContents.length,I;for(C=0;C<E;C+=1)I=this.animatedContents[C],(this._isFirstFrame||I.element._isAnimated)&&I.data!==!0&&I.fn(I.data,I.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(C,E,I,B,U,V){this.o=C,this.sw=E,this.sc=I,this.fc=B,this.m=U,this.p=V,this._mdf={o:!0,sw:!!E,sc:!!I,fc:!!B,m:!0,p:!0}}LetterProps.prototype.update=function(C,E,I,B,U,V){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 X=!1;return this.o!==C&&(this.o=C,this._mdf.o=!0,X=!0),this.sw!==E&&(this.sw=E,this._mdf.sw=!0,X=!0),this.sc!==I&&(this.sc=I,this._mdf.sc=!0,X=!0),this.fc!==B&&(this.fc=B,this._mdf.fc=!0,X=!0),this.m!==U&&(this.m=U,this._mdf.m=!0,X=!0),V.length&&(this.p[0]!==V[0]||this.p[1]!==V[1]||this.p[4]!==V[4]||this.p[5]!==V[5]||this.p[12]!==V[12]||this.p[13]!==V[13])&&(this.p=V,this._mdf.p=!0,X=!0),X};function TextProperty(C,E){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,E.d&&E.d.sid&&(E.d=C.globalData.slotManager.getProp(E.d)),this.data=E,this.elem=C,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)}TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(C,E){for(var I in E)Object.prototype.hasOwnProperty.call(E,I)&&(C[I]=E[I]);return C},TextProperty.prototype.setCurrentData=function(C){C.__complete||this.completeTextData(C),this.currentData=C,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(C){this.effectsSequence.push(C),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(C){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!C)){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);return}this.lock=!0,this._mdf=!1;var B,U=this.effectsSequence.length,V=C||this.data.d.k[this.keysIndex].s;for(B=0;B<U;B+=1)I!==this.keysIndex?V=this.effectsSequence[B](V,V.t):V=this.effectsSequence[B](this.currentData,V.t);E!==V&&this.setCurrentData(V),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var C=this.data.d.k,E=this.elem.comp.renderedFrame,I=0,B=C.length;I<=B-1&&!(I===B-1||C[I+1].t>E);)I+=1;return this.keysIndex!==I&&(this.keysIndex=I),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(C){for(var E=[],I=0,B=C.length,U,V,X=!1,Y=!1,K="";I<B;)X=Y,Y=!1,U=C.charCodeAt(I),K=C.charAt(I),FontManager.isCombinedCharacter(U)?X=!0:U>=55296&&U<=56319?FontManager.isRegionalFlag(C,I)?K=C.substr(I,14):(V=C.charCodeAt(I+1),V>=56320&&V<=57343&&(FontManager.isModifier(U,V)?(K=C.substr(I,2),X=!0):FontManager.isFlagEmoji(C.substr(I,4))?K=C.substr(I,4):K=C.substr(I,2))):U>56319?(V=C.charCodeAt(I+1),FontManager.isVariationSelector(U)&&(X=!0)):FontManager.isZeroWidthJoiner(U)&&(X=!0,Y=!0),X?(E[E.length-1]+=K,X=!1):E.push(K),I+=K.length;return E},TextProperty.prototype.completeTextData=function(C){C.__complete=!0;var E=this.elem.globalData.fontManager,I=this.data,B=[],U,V,X,Y=0,K,J=I.m.g,xe=0,Z=0,_e=0,Se=[],Ee=0,Ae=0,Re,Te,we=E.getFontByName(C.f),Pe,Ie=0,Fe=getFontProperties(we);C.fWeight=Fe.weight,C.fStyle=Fe.style,C.finalSize=C.s,C.finalText=this.buildFinalText(C.t),V=C.finalText.length,C.finalLineHeight=C.lh;var Oe=C.tr/1e3*C.finalSize,Le;if(C.sz)for(var De=!0,Ve=C.sz[0],Xe=C.sz[1],Ue,We;De;){We=this.buildFinalText(C.t),Ue=0,Ee=0,V=We.length,Oe=C.tr/1e3*C.finalSize;var je=-1;for(U=0;U<V;U+=1)Le=We[U].charCodeAt(0),X=!1,We[U]===" "?je=U:(Le===13||Le===3)&&(Ee=0,X=!0,Ue+=C.finalLineHeight||C.finalSize*1.2),E.chars?(Pe=E.getCharData(We[U],we.fStyle,we.fFamily),Ie=X?0:Pe.w*C.finalSize/100):Ie=E.measureText(We[U],C.f,C.finalSize),Ee+Ie>Ve&&We[U]!==" "?(je===-1?V+=1:U=je,Ue+=C.finalLineHeight||C.finalSize*1.2,We.splice(U,je===U?1:0,"\r"),je=-1,Ee=0):(Ee+=Ie,Ee+=Oe);Ue+=we.ascent*C.finalSize/100,this.canResize&&C.finalSize>this.minimumFontSize&&Xe<Ue?(C.finalSize-=1,C.finalLineHeight=C.finalSize*C.lh/C.s):(C.finalText=We,V=C.finalText.length,De=!1)}Ee=-Oe,Ie=0;var ze=0,He;for(U=0;U<V;U+=1)if(X=!1,He=C.finalText[U],Le=He.charCodeAt(0),Le===13||Le===3?(ze=0,Se.push(Ee),Ae=Ee>Ae?Ee:Ae,Ee=-2*Oe,K="",X=!0,_e+=1):K=He,E.chars?(Pe=E.getCharData(He,we.fStyle,E.getFontByName(C.f).fFamily),Ie=X?0:Pe.w*C.finalSize/100):Ie=E.measureText(K,C.f,C.finalSize),He===" "?ze+=Ie+Oe:(Ee+=Ie+Oe+ze,ze=0),B.push({l:Ie,an:Ie,add:xe,n:X,anIndexes:[],val:K,line:_e,animatorJustifyOffset:0}),J==2){if(xe+=Ie,K===""||K===" "||U===V-1){for((K===""||K===" ")&&(xe-=Ie);Z<=U;)B[Z].an=xe,B[Z].ind=Y,B[Z].extra=Ie,Z+=1;Y+=1,xe=0}}else if(J==3){if(xe+=Ie,K===""||U===V-1){for(K===""&&(xe-=Ie);Z<=U;)B[Z].an=xe,B[Z].ind=Y,B[Z].extra=Ie,Z+=1;xe=0,Y+=1}}else B[Y].ind=Y,B[Y].extra=0,Y+=1;if(C.l=B,Ae=Ee>Ae?Ee:Ae,Se.push(Ee),C.sz)C.boxWidth=C.sz[0],C.justifyOffset=0;else switch(C.boxWidth=Ae,C.j){case 1:C.justifyOffset=-C.boxWidth;break;case 2:C.justifyOffset=-C.boxWidth/2;break;default:C.justifyOffset=0}C.lineWidths=Se;var $e=I.a,Ne,Me;Te=$e.length;var ke,Ge,Be=[];for(Re=0;Re<Te;Re+=1){for(Ne=$e[Re],Ne.a.sc&&(C.strokeColorAnim=!0),Ne.a.sw&&(C.strokeWidthAnim=!0),(Ne.a.fc||Ne.a.fh||Ne.a.fs||Ne.a.fb)&&(C.fillColorAnim=!0),Ge=0,ke=Ne.s.b,U=0;U<V;U+=1)Me=B[U],Me.anIndexes[Re]=Ge,(ke==1&&Me.val!==""||ke==2&&Me.val!==""&&Me.val!==" "||ke==3&&(Me.n||Me.val==" "||U==V-1)||ke==4&&(Me.n||U==V-1))&&(Ne.s.rn===1&&Be.push(Ge),Ge+=1);I.a[Re].s.totalChars=Ge;var qe=-1,Ke;if(Ne.s.rn===1)for(U=0;U<V;U+=1)Me=B[U],qe!=Me.anIndexes[Re]&&(qe=Me.anIndexes[Re],Ke=Be.splice(Math.floor(Math.random()*Be.length),1)[0]),Me.anIndexes[Re]=Ke}C.yOffset=C.finalLineHeight||C.finalSize*1.2,C.ls=C.ls||0,C.ascent=we.ascent*C.finalSize/100},TextProperty.prototype.updateDocumentData=function(C,E){E=E===void 0?this.keysIndex:E;var I=this.copyData({},this.data.d.k[E].s);I=this.copyData(I,C),this.data.d.k[E].s=I,this.recalculate(E),this.setCurrentData(I),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(C){var E=this.data.d.k[C].s;E.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(E)},TextProperty.prototype.canResizeFont=function(C){this.canResize=C,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(C){this.minimumFontSize=Math.floor(C)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var C=Math.max,E=Math.min,I=Math.floor;function B(V,X){this._currentTextLength=-1,this.k=!1,this.data=X,this.elem=V,this.comp=V.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(V),this.s=PropertyFactory.getProp(V,X.s||{k:0},0,0,this),"e"in X?this.e=PropertyFactory.getProp(V,X.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(V,X.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(V,X.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(V,X.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(V,X.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(V,X.a,0,.01,this),this.dynamicProperties.length||this.getValue()}B.prototype={getMult:function(X){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var Y=0,K=0,J=1,xe=1;this.ne.v>0?Y=this.ne.v/100:K=-this.ne.v/100,this.xe.v>0?J=1-this.xe.v/100:xe=1+this.xe.v/100;var Z=BezierFactory.getBezierEasing(Y,K,J,xe).get,_e=0,Se=this.finalS,Ee=this.finalE,Ae=this.data.sh;if(Ae===2)Ee===Se?_e=X>=Ee?1:0:_e=C(0,E(.5/(Ee-Se)+(X-Se)/(Ee-Se),1)),_e=Z(_e);else if(Ae===3)Ee===Se?_e=X>=Ee?0:1:_e=1-C(0,E(.5/(Ee-Se)+(X-Se)/(Ee-Se),1)),_e=Z(_e);else if(Ae===4)Ee===Se?_e=0:(_e=C(0,E(.5/(Ee-Se)+(X-Se)/(Ee-Se),1)),_e<.5?_e*=2:_e=1-2*(_e-.5)),_e=Z(_e);else if(Ae===5){if(Ee===Se)_e=0;else{var Re=Ee-Se;X=E(C(0,X+.5-Se),Ee-Se);var Te=-Re/2+X,we=Re/2;_e=Math.sqrt(1-Te*Te/(we*we))}_e=Z(_e)}else Ae===6?(Ee===Se?_e=0:(X=E(C(0,X+.5-Se),Ee-Se),_e=(1+Math.cos(Math.PI+Math.PI*2*X/(Ee-Se)))/2),_e=Z(_e)):(X>=I(Se)&&(X-Se<0?_e=C(0,E(E(Ee,1)-(Se-X),1)):_e=C(0,E(Ee-X,1))),_e=Z(_e));if(this.sm.v!==100){var Pe=this.sm.v*.01;Pe===0&&(Pe=1e-8);var Ie=.5-Pe*.5;_e<Ie?_e=0:(_e=(_e-Ie)/Pe,_e>1&&(_e=1))}return _e*this.a.v},getValue:function(X){this.iterateDynamicProperties(),this._mdf=X||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,X&&this.data.r===2&&(this.e.v=this._currentTextLength);var Y=this.data.r===2?1:100/this.data.totalChars,K=this.o.v/Y,J=this.s.v/Y+K,xe=this.e.v/Y+K;if(J>xe){var Z=J;J=xe,xe=Z}this.finalS=J,this.finalE=xe}},extendPrototype([DynamicPropertyContainer],B);function U(V,X,Y){return new B(V,X)}return{getTextSelectorProp:U}}();function TextAnimatorDataProperty(C,E,I){var B={propType:!1},U=PropertyFactory.getProp,V=E.a;this.a={r:V.r?U(C,V.r,0,degToRads,I):B,rx:V.rx?U(C,V.rx,0,degToRads,I):B,ry:V.ry?U(C,V.ry,0,degToRads,I):B,sk:V.sk?U(C,V.sk,0,degToRads,I):B,sa:V.sa?U(C,V.sa,0,degToRads,I):B,s:V.s?U(C,V.s,1,.01,I):B,a:V.a?U(C,V.a,1,0,I):B,o:V.o?U(C,V.o,0,.01,I):B,p:V.p?U(C,V.p,1,0,I):B,sw:V.sw?U(C,V.sw,0,0,I):B,sc:V.sc?U(C,V.sc,1,0,I):B,fc:V.fc?U(C,V.fc,1,0,I):B,fh:V.fh?U(C,V.fh,0,0,I):B,fs:V.fs?U(C,V.fs,0,.01,I):B,fb:V.fb?U(C,V.fb,0,.01,I):B,t:V.t?U(C,V.t,0,0,I):B},this.s=TextSelectorProp.getTextSelectorProp(C,E.s,I),this.s.t=E.s.t}function TextAnimatorProperty(C,E,I){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=C,this._renderType=E,this._elem=I,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(I)}TextAnimatorProperty.prototype.searchProperties=function(){var C,E=this._textData.a.length,I,B=PropertyFactory.getProp;for(C=0;C<E;C+=1)I=this._textData.a[C],this._animatorsData[C]=new TextAnimatorDataProperty(this._elem,I,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:B(this._elem,this._textData.p.a,0,0,this),f:B(this._elem,this._textData.p.f,0,0,this),l:B(this._elem,this._textData.p.l,0,0,this),r:B(this._elem,this._textData.p.r,0,0,this),p:B(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=B(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(C,E){if(this.lettersChangedFlag=E,!(!this._mdf&&!this._isFirstFrame&&!E&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var I=this._moreOptions.alignment.v,B=this._animatorsData,U=this._textData,V=this.mHelper,X=this._renderType,Y=this.renderedLetters.length,K,J,xe,Z,_e=C.l,Se,Ee,Ae,Re,Te,we,Pe,Ie,Fe,Oe,Le,De,Ve,Xe,Ue;if(this._hasMaskedPath){if(Ue=this._pathData.m,!this._pathData.n||this._pathData._mdf){var We=Ue.v;this._pathData.r.v&&(We=We.reverse()),Se={tLength:0,segments:[]},Z=We._length-1;var je;for(De=0,xe=0;xe<Z;xe+=1)je=bez.buildBezierData(We.v[xe],We.v[xe+1],[We.o[xe][0]-We.v[xe][0],We.o[xe][1]-We.v[xe][1]],[We.i[xe+1][0]-We.v[xe+1][0],We.i[xe+1][1]-We.v[xe+1][1]]),Se.tLength+=je.segmentLength,Se.segments.push(je),De+=je.segmentLength;xe=Z,Ue.v.c&&(je=bez.buildBezierData(We.v[xe],We.v[0],[We.o[xe][0]-We.v[xe][0],We.o[xe][1]-We.v[xe][1]],[We.i[0][0]-We.v[0][0],We.i[0][1]-We.v[0][1]]),Se.tLength+=je.segmentLength,Se.segments.push(je),De+=je.segmentLength),this._pathData.pi=Se}if(Se=this._pathData.pi,Ee=this._pathData.f.v,Pe=0,we=1,Re=0,Te=!0,Oe=Se.segments,Ee<0&&Ue.v.c)for(Se.tLength<Math.abs(Ee)&&(Ee=-Math.abs(Ee)%Se.tLength),Pe=Oe.length-1,Fe=Oe[Pe].points,we=Fe.length-1;Ee<0;)Ee+=Fe[we].partialLength,we-=1,we<0&&(Pe-=1,Fe=Oe[Pe].points,we=Fe.length-1);Fe=Oe[Pe].points,Ie=Fe[we-1],Ae=Fe[we],Le=Ae.partialLength}Z=_e.length,K=0,J=0;var ze=C.finalSize*1.2*.714,He=!0,$e,Ne,Me,ke,Ge;ke=B.length;var Be,qe=-1,Ke,Ye,et,Qe=Ee,it=Pe,nt=we,ot=-1,Ze,Je,st,rt,tt,at,ut,mt,pt="",yt=this.defaultPropsArray,gt;if(C.j===2||C.j===1){var _t=0,Pt=0,It=C.j===2?-.5:-1,St=0,Lt=!0;for(xe=0;xe<Z;xe+=1)if(_e[xe].n){for(_t&&(_t+=Pt);St<xe;)_e[St].animatorJustifyOffset=_t,St+=1;_t=0,Lt=!0}else{for(Me=0;Me<ke;Me+=1)$e=B[Me].a,$e.t.propType&&(Lt&&C.j===2&&(Pt+=$e.t.v*It),Ne=B[Me].s,Be=Ne.getMult(_e[xe].anIndexes[Me],U.a[Me].s.totalChars),Be.length?_t+=$e.t.v*Be[0]*It:_t+=$e.t.v*Be*It);Lt=!1}for(_t&&(_t+=Pt);St<xe;)_e[St].animatorJustifyOffset=_t,St+=1}for(xe=0;xe<Z;xe+=1){if(V.reset(),Ze=1,_e[xe].n)K=0,J+=C.yOffset,J+=He?1:0,Ee=Qe,He=!1,this._hasMaskedPath&&(Pe=it,we=nt,Fe=Oe[Pe].points,Ie=Fe[we-1],Ae=Fe[we],Le=Ae.partialLength,Re=0),pt="",mt="",at="",gt="",yt=this.defaultPropsArray;else{if(this._hasMaskedPath){if(ot!==_e[xe].line){switch(C.j){case 1:Ee+=De-C.lineWidths[_e[xe].line];break;case 2:Ee+=(De-C.lineWidths[_e[xe].line])/2;break}ot=_e[xe].line}qe!==_e[xe].ind&&(_e[qe]&&(Ee+=_e[qe].extra),Ee+=_e[xe].an/2,qe=_e[xe].ind),Ee+=I[0]*_e[xe].an*.005;var At=0;for(Me=0;Me<ke;Me+=1)$e=B[Me].a,$e.p.propType&&(Ne=B[Me].s,Be=Ne.getMult(_e[xe].anIndexes[Me],U.a[Me].s.totalChars),Be.length?At+=$e.p.v[0]*Be[0]:At+=$e.p.v[0]*Be),$e.a.propType&&(Ne=B[Me].s,Be=Ne.getMult(_e[xe].anIndexes[Me],U.a[Me].s.totalChars),Be.length?At+=$e.a.v[0]*Be[0]:At+=$e.a.v[0]*Be);for(Te=!0,this._pathData.a.v&&(Ee=_e[0].an*.5+(De-this._pathData.f.v-_e[0].an*.5-_e[_e.length-1].an*.5)*qe/(Z-1),Ee+=this._pathData.f.v);Te;)Re+Le>=Ee+At||!Fe?(Ve=(Ee+At-Re)/Ae.partialLength,Ye=Ie.point[0]+(Ae.point[0]-Ie.point[0])*Ve,et=Ie.point[1]+(Ae.point[1]-Ie.point[1])*Ve,V.translate(-I[0]*_e[xe].an*.005,-(I[1]*ze)*.01),Te=!1):Fe&&(Re+=Ae.partialLength,we+=1,we>=Fe.length&&(we=0,Pe+=1,Oe[Pe]?Fe=Oe[Pe].points:Ue.v.c?(we=0,Pe=0,Fe=Oe[Pe].points):(Re-=Ae.partialLength,Fe=null)),Fe&&(Ie=Ae,Ae=Fe[we],Le=Ae.partialLength));Ke=_e[xe].an/2-_e[xe].add,V.translate(-Ke,0,0)}else Ke=_e[xe].an/2-_e[xe].add,V.translate(-Ke,0,0),V.translate(-I[0]*_e[xe].an*.005,-I[1]*ze*.01,0);for(Me=0;Me<ke;Me+=1)$e=B[Me].a,$e.t.propType&&(Ne=B[Me].s,Be=Ne.getMult(_e[xe].anIndexes[Me],U.a[Me].s.totalChars),(K!==0||C.j!==0)&&(this._hasMaskedPath?Be.length?Ee+=$e.t.v*Be[0]:Ee+=$e.t.v*Be:Be.length?K+=$e.t.v*Be[0]:K+=$e.t.v*Be));for(C.strokeWidthAnim&&(st=C.sw||0),C.strokeColorAnim&&(C.sc?Je=[C.sc[0],C.sc[1],C.sc[2]]:Je=[0,0,0]),C.fillColorAnim&&C.fc&&(rt=[C.fc[0],C.fc[1],C.fc[2]]),Me=0;Me<ke;Me+=1)$e=B[Me].a,$e.a.propType&&(Ne=B[Me].s,Be=Ne.getMult(_e[xe].anIndexes[Me],U.a[Me].s.totalChars),Be.length?V.translate(-$e.a.v[0]*Be[0],-$e.a.v[1]*Be[1],$e.a.v[2]*Be[2]):V.translate(-$e.a.v[0]*Be,-$e.a.v[1]*Be,$e.a.v[2]*Be));for(Me=0;Me<ke;Me+=1)$e=B[Me].a,$e.s.propType&&(Ne=B[Me].s,Be=Ne.getMult(_e[xe].anIndexes[Me],U.a[Me].s.totalChars),Be.length?V.scale(1+($e.s.v[0]-1)*Be[0],1+($e.s.v[1]-1)*Be[1],1):V.scale(1+($e.s.v[0]-1)*Be,1+($e.s.v[1]-1)*Be,1));for(Me=0;Me<ke;Me+=1){if($e=B[Me].a,Ne=B[Me].s,Be=Ne.getMult(_e[xe].anIndexes[Me],U.a[Me].s.totalChars),$e.sk.propType&&(Be.length?V.skewFromAxis(-$e.sk.v*Be[0],$e.sa.v*Be[1]):V.skewFromAxis(-$e.sk.v*Be,$e.sa.v*Be)),$e.r.propType&&(Be.length?V.rotateZ(-$e.r.v*Be[2]):V.rotateZ(-$e.r.v*Be)),$e.ry.propType&&(Be.length?V.rotateY($e.ry.v*Be[1]):V.rotateY($e.ry.v*Be)),$e.rx.propType&&(Be.length?V.rotateX($e.rx.v*Be[0]):V.rotateX($e.rx.v*Be)),$e.o.propType&&(Be.length?Ze+=($e.o.v*Be[0]-Ze)*Be[0]:Ze+=($e.o.v*Be-Ze)*Be),C.strokeWidthAnim&&$e.sw.propType&&(Be.length?st+=$e.sw.v*Be[0]:st+=$e.sw.v*Be),C.strokeColorAnim&&$e.sc.propType)for(tt=0;tt<3;tt+=1)Be.length?Je[tt]+=($e.sc.v[tt]-Je[tt])*Be[0]:Je[tt]+=($e.sc.v[tt]-Je[tt])*Be;if(C.fillColorAnim&&C.fc){if($e.fc.propType)for(tt=0;tt<3;tt+=1)Be.length?rt[tt]+=($e.fc.v[tt]-rt[tt])*Be[0]:rt[tt]+=($e.fc.v[tt]-rt[tt])*Be;$e.fh.propType&&(Be.length?rt=addHueToRGB(rt,$e.fh.v*Be[0]):rt=addHueToRGB(rt,$e.fh.v*Be)),$e.fs.propType&&(Be.length?rt=addSaturationToRGB(rt,$e.fs.v*Be[0]):rt=addSaturationToRGB(rt,$e.fs.v*Be)),$e.fb.propType&&(Be.length?rt=addBrightnessToRGB(rt,$e.fb.v*Be[0]):rt=addBrightnessToRGB(rt,$e.fb.v*Be))}}for(Me=0;Me<ke;Me+=1)$e=B[Me].a,$e.p.propType&&(Ne=B[Me].s,Be=Ne.getMult(_e[xe].anIndexes[Me],U.a[Me].s.totalChars),this._hasMaskedPath?Be.length?V.translate(0,$e.p.v[1]*Be[0],-$e.p.v[2]*Be[1]):V.translate(0,$e.p.v[1]*Be,-$e.p.v[2]*Be):Be.length?V.translate($e.p.v[0]*Be[0],$e.p.v[1]*Be[1],-$e.p.v[2]*Be[2]):V.translate($e.p.v[0]*Be,$e.p.v[1]*Be,-$e.p.v[2]*Be));if(C.strokeWidthAnim&&(at=st<0?0:st),C.strokeColorAnim&&(ut="rgb("+Math.round(Je[0]*255)+","+Math.round(Je[1]*255)+","+Math.round(Je[2]*255)+")"),C.fillColorAnim&&C.fc&&(mt="rgb("+Math.round(rt[0]*255)+","+Math.round(rt[1]*255)+","+Math.round(rt[2]*255)+")"),this._hasMaskedPath){if(V.translate(0,-C.ls),V.translate(0,I[1]*ze*.01+J,0),this._pathData.p.v){Xe=(Ae.point[1]-Ie.point[1])/(Ae.point[0]-Ie.point[0]);var kt=Math.atan(Xe)*180/Math.PI;Ae.point[0]<Ie.point[0]&&(kt+=180),V.rotate(-kt*Math.PI/180)}V.translate(Ye,et,0),Ee-=I[0]*_e[xe].an*.005,_e[xe+1]&&qe!==_e[xe+1].ind&&(Ee+=_e[xe].an/2,Ee+=C.tr*.001*C.finalSize)}else{switch(V.translate(K,J,0),C.ps&&V.translate(C.ps[0],C.ps[1]+C.ascent,0),C.j){case 1:V.translate(_e[xe].animatorJustifyOffset+C.justifyOffset+(C.boxWidth-C.lineWidths[_e[xe].line]),0,0);break;case 2:V.translate(_e[xe].animatorJustifyOffset+C.justifyOffset+(C.boxWidth-C.lineWidths[_e[xe].line])/2,0,0);break}V.translate(0,-C.ls),V.translate(Ke,0,0),V.translate(I[0]*_e[xe].an*.005,I[1]*ze*.01,0),K+=_e[xe].l+C.tr*.001*C.finalSize}X==="html"?pt=V.toCSS():X==="svg"?pt=V.to2dCSS():yt=[V.props[0],V.props[1],V.props[2],V.props[3],V.props[4],V.props[5],V.props[6],V.props[7],V.props[8],V.props[9],V.props[10],V.props[11],V.props[12],V.props[13],V.props[14],V.props[15]],gt=Ze}Y<=xe?(Ge=new LetterProps(gt,at,ut,mt,pt,yt),this.renderedLetters.push(Ge),Y+=1,this.lettersChangedFlag=!0):(Ge=this.renderedLetters[xe],this.lettersChangedFlag=Ge.update(gt,at,ut,mt,pt,yt)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty);function ITextElement(){}ITextElement.prototype.initElement=function(C,E,I){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(C,E,I),this.textProperty=new TextProperty(this,C.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(C.t,this.renderType,this),this.initTransform(C,E,I),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(C){this._mdf=!1,this.prepareRenderableFrame(C),this.prepareProperties(C,this.isInRange)},ITextElement.prototype.createPathShape=function(C,E){var I,B=E.length,U,V="";for(I=0;I<B;I+=1)E[I].ty==="sh"&&(U=E[I].ks.k,V+=buildShapeString(U,U.i.length,!0,C));return V},ITextElement.prototype.updateDocumentData=function(C,E){this.textProperty.updateDocumentData(C,E)},ITextElement.prototype.canResizeFont=function(C){this.textProperty.canResizeFont(C)},ITextElement.prototype.setMinimumFontSize=function(C){this.textProperty.setMinimumFontSize(C)},ITextElement.prototype.applyTextPropertiesToMatrix=function(C,E,I,B,U){switch(C.ps&&E.translate(C.ps[0],C.ps[1]+C.ascent,0),E.translate(0,-C.ls,0),C.j){case 1:E.translate(C.justifyOffset+(C.boxWidth-C.lineWidths[I]),0,0);break;case 2:E.translate(C.justifyOffset+(C.boxWidth-C.lineWidths[I])/2,0,0);break}E.translate(B,U,0)},ITextElement.prototype.buildColor=function(C){return"rgb("+Math.round(C[0]*255)+","+Math.round(C[1]*255)+","+Math.round(C[2]*255)+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(C,E,I){this.textSpans=[],this.renderType="svg",this.initElement(C,E,I)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(C){for(var E=0,I=C.length,B=[],U="";E<I;)C[E]===String.fromCharCode(13)||C[E]===String.fromCharCode(3)?(B.push(U),U=""):U+=C[E],E+=1;return B.push(U),B},SVGTextLottieElement.prototype.buildShapeData=function(C,E){if(C.shapes&&C.shapes.length){var I=C.shapes[0];if(I.it){var B=I.it[I.it.length-1];B.s&&(B.s.k[0]=E,B.s.k[1]=E)}}return C},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var C,E,I=this.textProperty.currentData;this.renderedLetters=createSizedArray(I?I.l.length:0),I.fc?this.layerElement.setAttribute("fill",this.buildColor(I.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),I.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(I.sc)),this.layerElement.setAttribute("stroke-width",I.sw)),this.layerElement.setAttribute("font-size",I.finalSize);var B=this.globalData.fontManager.getFontByName(I.f);if(B.fClass)this.layerElement.setAttribute("class",B.fClass);else{this.layerElement.setAttribute("font-family",B.fFamily);var U=I.fWeight,V=I.fStyle;this.layerElement.setAttribute("font-style",V),this.layerElement.setAttribute("font-weight",U)}this.layerElement.setAttribute("aria-label",I.t);var X=I.l||[],Y=!!this.globalData.fontManager.chars;E=X.length;var K,J=this.mHelper,xe="",Z=this.data.singleShape,_e=0,Se=0,Ee=!0,Ae=I.tr*.001*I.finalSize;if(Z&&!Y&&!I.sz){var Re=this.textContainer,Te="start";switch(I.j){case 1:Te="end";break;case 2:Te="middle";break;default:Te="start";break}Re.setAttribute("text-anchor",Te),Re.setAttribute("letter-spacing",Ae);var we=this.buildTextContents(I.finalText);for(E=we.length,Se=I.ps?I.ps[1]+I.ascent:0,C=0;C<E;C+=1)K=this.textSpans[C].span||createNS("tspan"),K.textContent=we[C],K.setAttribute("x",0),K.setAttribute("y",Se),K.style.display="inherit",Re.appendChild(K),this.textSpans[C]||(this.textSpans[C]={span:null,glyph:null}),this.textSpans[C].span=K,Se+=I.finalLineHeight;this.layerElement.appendChild(Re)}else{var Pe=this.textSpans.length,Ie;for(C=0;C<E;C+=1){if(this.textSpans[C]||(this.textSpans[C]={span:null,childSpan:null,glyph:null}),!Y||!Z||C===0){if(K=Pe>C?this.textSpans[C].span:createNS(Y?"g":"text"),Pe<=C){if(K.setAttribute("stroke-linecap","butt"),K.setAttribute("stroke-linejoin","round"),K.setAttribute("stroke-miterlimit","4"),this.textSpans[C].span=K,Y){var Fe=createNS("g");K.appendChild(Fe),this.textSpans[C].childSpan=Fe}this.textSpans[C].span=K,this.layerElement.appendChild(K)}K.style.display="inherit"}if(J.reset(),Z&&(X[C].n&&(_e=-Ae,Se+=I.yOffset,Se+=Ee?1:0,Ee=!1),this.applyTextPropertiesToMatrix(I,J,X[C].line,_e,Se),_e+=X[C].l||0,_e+=Ae),Y){Ie=this.globalData.fontManager.getCharData(I.finalText[C],B.fStyle,this.globalData.fontManager.getFontByName(I.f).fFamily);var Oe;if(Ie.t===1)Oe=new SVGCompElement(Ie.data,this.globalData,this);else{var Le=emptyShapeData;Ie.data&&Ie.data.shapes&&(Le=this.buildShapeData(Ie.data,I.finalSize)),Oe=new SVGShapeElement(Le,this.globalData,this)}if(this.textSpans[C].glyph){var De=this.textSpans[C].glyph;this.textSpans[C].childSpan.removeChild(De.layerElement),De.destroy()}this.textSpans[C].glyph=Oe,Oe._debug=!0,Oe.prepareFrame(0),Oe.renderFrame(),this.textSpans[C].childSpan.appendChild(Oe.layerElement),Ie.t===1&&this.textSpans[C].childSpan.setAttribute("transform","scale("+I.finalSize/100+","+I.finalSize/100+")")}else Z&&K.setAttribute("transform","translate("+J.props[12]+","+J.props[13]+")"),K.textContent=X[C].val,K.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}Z&&K&&K.setAttribute("d",xe)}for(;C<this.textSpans.length;)this.textSpans[C].span.style.display="none",C+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var C=this.layerElement.getBBox();this.bbox={top:C.y,left:C.x,width:C.width,height:C.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var C,E=this.textSpans.length,I;for(this.renderedFrame=this.comp.renderedFrame,C=0;C<E;C+=1)I=this.textSpans[C].glyph,I&&(I.prepareFrame(this.comp.renderedFrame-this.data.st),I._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var C,E,I=this.textAnimator.renderedLetters,B=this.textProperty.currentData.l;E=B.length;var U,V,X;for(C=0;C<E;C+=1)B[C].n||(U=I[C],V=this.textSpans[C].span,X=this.textSpans[C].glyph,X&&X.renderFrame(),U._mdf.m&&V.setAttribute("transform",U.m),U._mdf.o&&V.setAttribute("opacity",U.o),U._mdf.sw&&V.setAttribute("stroke-width",U.sw),U._mdf.sc&&V.setAttribute("stroke",U.sc),U._mdf.fc&&V.setAttribute("fill",U.fc))}};function ISolidElement(C,E,I){this.initElement(C,E,I)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var C=createNS("rect");C.setAttribute("width",this.data.sw),C.setAttribute("height",this.data.sh),C.setAttribute("fill",this.data.sc),this.layerElement.appendChild(C)};function NullElement(C,E,I){this.initFrame(),this.initBaseData(C,E,I),this.initFrame(),this.initTransform(C,E,I),this.initHierarchy()}NullElement.prototype.prepareFrame=function(C){this.prepareProperties(C,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement);function SVGRendererBase(){}extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(C){return new NullElement(C,this.globalData,this)},SVGRendererBase.prototype.createShape=function(C){return new SVGShapeElement(C,this.globalData,this)},SVGRendererBase.prototype.createText=function(C){return new SVGTextLottieElement(C,this.globalData,this)},SVGRendererBase.prototype.createImage=function(C){return new IImageElement(C,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(C){return new ISolidElement(C,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(C){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 "+C.w+" "+C.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",C.w),this.svgElement.setAttribute("height",C.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),this.renderConfig.focusable!==void 0&&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(C,E),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=C;var I=createNS("clipPath"),B=createNS("rect");B.setAttribute("width",C.w),B.setAttribute("height",C.h),B.setAttribute("x",0),B.setAttribute("y",0);var U=createElementID();I.setAttribute("id",U),I.appendChild(B),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+U+")"),E.appendChild(I),this.layers=C.layers,this.elements=createSizedArray(C.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var C,E=this.layers?this.layers.length:0;for(C=0;C<E;C+=1)this.elements[C]&&this.elements[C].destroy&&this.elements[C].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(C){var E=0,I=this.layers.length;for(E=0;E<I;E+=1)if(this.layers[E].ind===C)return E;return-1},SVGRendererBase.prototype.buildItem=function(C){var E=this.elements;if(!(E[C]||this.layers[C].ty===99)){E[C]=!0;var I=this.createItem(this.layers[C]);if(E[C]=I,getExpressionsPlugin()&&(this.layers[C].ty===0&&this.globalData.projectInterface.registerComposition(I),I.initExpressions()),this.appendElementInPos(I,C),this.layers[C].tt){var B="tp"in this.layers[C]?this.findIndexByInd(this.layers[C].tp):C-1;if(B===-1)return;if(!this.elements[B]||this.elements[B]===!0)this.buildItem(B),this.addPendingElement(I);else{var U=E[B],V=U.getMatte(this.layers[C].tt);I.setMatte(V)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var C=this.pendingElements.pop();if(C.checkParenting(),C.data.tt)for(var E=0,I=this.elements.length;E<I;){if(this.elements[E]===C){var B="tp"in C.data?this.findIndexByInd(C.data.tp):E-1,U=this.elements[B],V=U.getMatte(this.layers[E].tt);C.setMatte(V);break}E+=1}}},SVGRendererBase.prototype.renderFrame=function(C){if(!(this.renderedFrame===C||this.destroyed)){C===null?C=this.renderedFrame:this.renderedFrame=C,this.globalData.frameNum=C,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=C,this.globalData._mdf=!1;var E,I=this.layers.length;for(this.completeLayers||this.checkLayers(C),E=I-1;E>=0;E-=1)(this.completeLayers||this.elements[E])&&this.elements[E].prepareFrame(C-this.layers[E].st);if(this.globalData._mdf)for(E=0;E<I;E+=1)(this.completeLayers||this.elements[E])&&this.elements[E].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(C,E){var I=C.getBaseElement();if(I){for(var B=0,U;B<E;)this.elements[B]&&this.elements[B]!==!0&&this.elements[B].getBaseElement()&&(U=this.elements[B].getBaseElement()),B+=1;U?this.layerElement.insertBefore(I,U):this.layerElement.appendChild(I)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"};function ICompElement(){}extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(C,E,I){this.initFrame(),this.initBaseData(C,E,I),this.initTransform(C,E,I),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!E.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(C){if(this._mdf=!1,this.prepareRenderableFrame(C),this.prepareProperties(C,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=C/this.data.sr;else{var E=this.tm.v;E===this.data.op&&(E=this.data.op-1),this.renderedFrame=E}var I,B=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),I=B-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))}},ICompElement.prototype.renderInnerContent=function(){var C,E=this.layers.length;for(C=0;C<E;C+=1)(this.completeLayers||this.elements[C])&&this.elements[C].renderFrame()},ICompElement.prototype.setElements=function(C){this.elements=C},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var C,E=this.layers.length;for(C=0;C<E;C+=1)this.elements[C]&&this.elements[C].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(C,E,I){this.layers=C.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(C,E,I),this.tm=C.tm?PropertyFactory.getProp(this,C.tm,0,E.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(C){return new SVGCompElement(C,this.globalData,this)};function SVGRenderer(C,E){this.animationItem=C,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var I="";if(E&&E.title){var B=createNS("title"),U=createElementID();B.setAttribute("id",U),B.textContent=E.title,this.svgElement.appendChild(B),I+=U}if(E&&E.description){var V=createNS("desc"),X=createElementID();V.setAttribute("id",X),V.textContent=E.description,this.svgElement.appendChild(V),I+=" "+X}I&&this.svgElement.setAttribute("aria-labelledby",I);var Y=createNS("defs");this.svgElement.appendChild(Y);var K=createNS("g");this.svgElement.appendChild(K),this.layerElement=K,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&&E.hideOnTransparent===!1),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||E.runExpressions===void 0||E.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:Y,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(C){return new SVGCompElement(C,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(E){var I,B=E.length,U="_";for(I=0;I<B;I+=1)U+=E[I].transform.key+"_";var V=this.sequences[U];return V||(V={transforms:[].concat(E),finalTransform:new Matrix,_mdf:!1},this.sequences[U]=V,this.sequenceList.push(V)),V},processSequence:function(E,I){for(var B=0,U=E.transforms.length,V=I;B<U&&!I;){if(E.transforms[B].transform.mProps._mdf){V=!0;break}B+=1}if(V)for(E.finalTransform.reset(),B=U-1;B>=0;B-=1)E.finalTransform.multiply(E.transforms[B].transform.mProps.v);E._mdf=V},processSequences:function(E){var I,B=this.sequenceList.length;for(I=0;I<B;I+=1)this.processSequence(this.sequenceList[I],E)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var E="__lottie_element_luma_buffer",I=null,B=null,U=null;function V(){var K=createNS("svg"),J=createNS("filter"),xe=createNS("feColorMatrix");return J.setAttribute("id",E),xe.setAttribute("type","matrix"),xe.setAttribute("color-interpolation-filters","sRGB"),xe.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),J.appendChild(xe),K.appendChild(J),K.setAttribute("id",E+"_svg"),featureSupport.svgLumaHidden&&(K.style.display="none"),K}function X(){I||(U=V(),document.body.appendChild(U),I=createTag("canvas"),B=I.getContext("2d"),B.filter="url(#"+E+")",B.fillStyle="rgba(0,0,0,0)",B.fillRect(0,0,1,1))}function Y(K){return I||X(),I.width=K.width,I.height=K.height,B.filter="url(#"+E+")",I}return{load:X,get:Y}};function createCanvas(C,E){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(C,E);var I=createTag("canvas");return I.width=C,I.height=E,I}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(C){var E,I=C.data.ef?C.data.ef.length:0;this.filters=[];var B;for(E=0;E<I;E+=1){B=null;var U=C.data.ef[E].ty;if(registeredEffects[U]){var V=registeredEffects[U].effect;B=new V(C.effectsManager.effectElements[E],C)}B&&this.filters.push(B)}this.filters.length&&C.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(C){var E,I=this.filters.length;for(E=0;E<I;E+=1)this.filters[E].renderFrame(C)},CVEffects.prototype.getEffects=function(C){var E,I=this.filters.length,B=[];for(E=0;E<I;E+=1)this.filters[E].type===C&&B.push(this.filters[E]);return B};function registerEffect(C,E){registeredEffects[C]={effect:E}}function CVMaskElement(C,E){this.data=C,this.element=E,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var I,B=this.masksProperties.length,U=!1;for(I=0;I<B;I+=1)this.masksProperties[I].mode!=="n"&&(U=!0),this.viewData[I]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[I],3);this.hasMasks=U,U&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var C=this.element.finalTransform.mat,E=this.element.canvasContext,I,B=this.masksProperties.length,U,V,X;for(E.beginPath(),I=0;I<B;I+=1)if(this.masksProperties[I].mode!=="n"){this.masksProperties[I].inv&&(E.moveTo(0,0),E.lineTo(this.element.globalData.compSize.w,0),E.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),E.lineTo(0,this.element.globalData.compSize.h),E.lineTo(0,0)),X=this.viewData[I].v,U=C.applyToPointArray(X.v[0][0],X.v[0][1],0),E.moveTo(U[0],U[1]);var Y,K=X._length;for(Y=1;Y<K;Y+=1)V=C.applyToTriplePoints(X.o[Y-1],X.i[Y],X.v[Y]),E.bezierCurveTo(V[0],V[1],V[2],V[3],V[4],V[5]);V=C.applyToTriplePoints(X.o[Y-1],X.i[0],X.v[0]),E.bezierCurveTo(V[0],V[1],V[2],V[3],V[4],V[5])}this.element.globalData.renderer.save(!0),E.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var E=this.globalData.canvasContext,I=assetLoader.createCanvas(E.canvas.width,E.canvas.height);this.buffers.push(I);var B=assetLoader.createCanvas(E.canvas.width,E.canvas.height);this.buffers.push(B),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var E=this.globalData;if(E.blendMode!==this.data.bm){E.blendMode=this.data.bm;var I=getBlendMode(this.data.bm);E.canvasContext.globalCompositeOperation=I}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(E){E.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var E=this.buffers[0],I=E.getContext("2d");this.clearCanvas(I),I.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var E=this.buffers[1],I=E.getContext("2d");this.clearCanvas(I),I.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var B=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(B.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var U=assetLoader.getLumaCanvas(this.canvasContext.canvas),V=U.getContext("2d");V.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(U,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(E,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(E){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!E)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var I=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(I),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(I),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(C,E,I,B){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var U=4;E.ty==="rc"?U=5:E.ty==="el"?U=6:E.ty==="sr"&&(U=7),this.sh=ShapePropertyFactory.getShapeProp(C,E,U,C);var V,X=I.length,Y;for(V=0;V<X;V+=1)I[V].closed||(Y={transforms:B.addTransformSequence(I[V].transforms),trNodes:[]},this.styledShapes.push(Y),I[V].elements.push(Y))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(C,E,I){this.shapes=[],this.shapesData=C.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(C,E,I)}extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(C,E){var I={data:C,type:C.ty,preTransforms:this.transformsManager.addTransformSequence(E),transforms:[],elements:[],closed:C.hd===!0},B={};if(C.ty==="fl"||C.ty==="st"?(B.c=PropertyFactory.getProp(this,C.c,1,255,this),B.c.k||(I.co="rgb("+bmFloor(B.c.v[0])+","+bmFloor(B.c.v[1])+","+bmFloor(B.c.v[2])+")")):(C.ty==="gf"||C.ty==="gs")&&(B.s=PropertyFactory.getProp(this,C.s,1,null,this),B.e=PropertyFactory.getProp(this,C.e,1,null,this),B.h=PropertyFactory.getProp(this,C.h||{k:0},0,.01,this),B.a=PropertyFactory.getProp(this,C.a||{k:0},0,degToRads,this),B.g=new GradientProperty(this,C.g,this)),B.o=PropertyFactory.getProp(this,C.o,0,.01,this),C.ty==="st"||C.ty==="gs"){if(I.lc=lineCapEnum[C.lc||2],I.lj=lineJoinEnum[C.lj||2],C.lj==1&&(I.ml=C.ml),B.w=PropertyFactory.getProp(this,C.w,0,null,this),B.w.k||(I.wi=B.w.v),C.d){var U=new DashProperty(this,C.d,"canvas",this);B.d=U,B.d.k||(I.da=B.d.dashArray,I.do=B.d.dashoffset[0])}}else I.r=C.r===2?"evenodd":"nonzero";return this.stylesList.push(I),B.style=I,B},CVShapeElement.prototype.createGroupElement=function(){var C={it:[],prevViewData:[]};return C},CVShapeElement.prototype.createTransformElement=function(C){var E={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,C.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,C,this)}};return E},CVShapeElement.prototype.createShapeElement=function(C){var E=new CVShapeData(this,C,this.stylesList,this.transformsManager);return this.shapes.push(E),this.addShapeToModifiers(E),E},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var C,E=this.itemsData.length;for(C=0;C<E;C+=1)this.prevViewData[C]=this.itemsData[C];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),E=this.dynamicProperties.length,C=0;C<E;C+=1)this.dynamicProperties[C].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(C){var E,I=this.stylesList.length;for(E=0;E<I;E+=1)this.stylesList[E].closed||this.stylesList[E].transforms.push(C)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var C,E=this.stylesList.length;for(C=0;C<E;C+=1)this.stylesList[C].closed||this.stylesList[C].transforms.pop()},CVShapeElement.prototype.closeStyles=function(C){var E,I=C.length;for(E=0;E<I;E+=1)C[E].closed=!0},CVShapeElement.prototype.searchShapes=function(C,E,I,B,U){var V,X=C.length-1,Y,K,J=[],xe=[],Z,_e,Se,Ee=[].concat(U);for(V=X;V>=0;V-=1){if(Z=this.searchProcessedElement(C[V]),Z?E[V]=I[Z-1]:C[V]._shouldRender=B,C[V].ty==="fl"||C[V].ty==="st"||C[V].ty==="gf"||C[V].ty==="gs")Z?E[V].style.closed=!1:E[V]=this.createStyleElement(C[V],Ee),J.push(E[V].style);else if(C[V].ty==="gr"){if(!Z)E[V]=this.createGroupElement(C[V]);else for(K=E[V].it.length,Y=0;Y<K;Y+=1)E[V].prevViewData[Y]=E[V].it[Y];this.searchShapes(C[V].it,E[V].it,E[V].prevViewData,B,Ee)}else C[V].ty==="tr"?(Z||(Se=this.createTransformElement(C[V]),E[V]=Se),Ee.push(E[V]),this.addTransformToStyleList(E[V])):C[V].ty==="sh"||C[V].ty==="rc"||C[V].ty==="el"||C[V].ty==="sr"?Z||(E[V]=this.createShapeElement(C[V])):C[V].ty==="tm"||C[V].ty==="rd"||C[V].ty==="pb"||C[V].ty==="zz"||C[V].ty==="op"?(Z?(_e=E[V],_e.closed=!1):(_e=ShapeModifiers.getModifier(C[V].ty),_e.init(this,C[V]),E[V]=_e,this.shapeModifiers.push(_e)),xe.push(_e)):C[V].ty==="rp"&&(Z?(_e=E[V],_e.closed=!0):(_e=ShapeModifiers.getModifier(C[V].ty),E[V]=_e,_e.init(this,C,V,E),this.shapeModifiers.push(_e),B=!1),xe.push(_e));this.addProcessedElement(C[V],V+1)}for(this.removeTransformFromStyleList(),this.closeStyles(J),X=xe.length,V=0;V<X;V+=1)xe[V].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(C,E){(C._opMdf||E.op._mdf||this._isFirstFrame)&&(E.opacity=C.opacity,E.opacity*=E.op.v,E._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var C,E=this.stylesList.length,I,B,U,V,X,Y,K=this.globalData.renderer,J=this.globalData.canvasContext,xe,Z;for(C=0;C<E;C+=1)if(Z=this.stylesList[C],xe=Z.type,!((xe==="st"||xe==="gs")&&Z.wi===0||!Z.data._shouldRender||Z.coOp===0||this.globalData.currentGlobalAlpha===0)){for(K.save(),X=Z.elements,xe==="st"||xe==="gs"?(K.ctxStrokeStyle(xe==="st"?Z.co:Z.grd),K.ctxLineWidth(Z.wi),K.ctxLineCap(Z.lc),K.ctxLineJoin(Z.lj),K.ctxMiterLimit(Z.ml||0)):K.ctxFillStyle(xe==="fl"?Z.co:Z.grd),K.ctxOpacity(Z.coOp),xe!=="st"&&xe!=="gs"&&J.beginPath(),K.ctxTransform(Z.preTransforms.finalTransform.props),B=X.length,I=0;I<B;I+=1){for((xe==="st"||xe==="gs")&&(J.beginPath(),Z.da&&(J.setLineDash(Z.da),J.lineDashOffset=Z.do)),Y=X[I].trNodes,V=Y.length,U=0;U<V;U+=1)Y[U].t==="m"?J.moveTo(Y[U].p[0],Y[U].p[1]):Y[U].t==="c"?J.bezierCurveTo(Y[U].pts[0],Y[U].pts[1],Y[U].pts[2],Y[U].pts[3],Y[U].pts[4],Y[U].pts[5]):J.closePath();(xe==="st"||xe==="gs")&&(K.ctxStroke(),Z.da&&J.setLineDash(this.dashResetter))}xe!=="st"&&xe!=="gs"&&this.globalData.renderer.ctxFill(Z.r),K.restore()}},CVShapeElement.prototype.renderShape=function(C,E,I,B){var U,V=E.length-1,X;for(X=C,U=V;U>=0;U-=1)E[U].ty==="tr"?(X=I[U].transform,this.renderShapeTransform(C,X)):E[U].ty==="sh"||E[U].ty==="el"||E[U].ty==="rc"||E[U].ty==="sr"?this.renderPath(E[U],I[U]):E[U].ty==="fl"?this.renderFill(E[U],I[U],X):E[U].ty==="st"?this.renderStroke(E[U],I[U],X):E[U].ty==="gf"||E[U].ty==="gs"?this.renderGradientFill(E[U],I[U],X):E[U].ty==="gr"?this.renderShape(X,E[U].it,I[U].it):E[U].ty;B&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(C,E){if(this._isFirstFrame||E._mdf||C.transforms._mdf){var I=C.trNodes,B=E.paths,U,V,X,Y=B._length;I.length=0;var K=C.transforms.finalTransform;for(X=0;X<Y;X+=1){var J=B.shapes[X];if(J&&J.v){for(V=J._length,U=1;U<V;U+=1)U===1&&I.push({t:"m",p:K.applyToPointArray(J.v[0][0],J.v[0][1],0)}),I.push({t:"c",pts:K.applyToTriplePoints(J.o[U-1],J.i[U],J.v[U])});V===1&&I.push({t:"m",p:K.applyToPointArray(J.v[0][0],J.v[0][1],0)}),J.c&&V&&(I.push({t:"c",pts:K.applyToTriplePoints(J.o[U-1],J.i[0],J.v[0])}),I.push({t:"z"}))}}C.trNodes=I}},CVShapeElement.prototype.renderPath=function(C,E){if(C.hd!==!0&&C._shouldRender){var I,B=E.styledShapes.length;for(I=0;I<B;I+=1)this.renderStyledShape(E.styledShapes[I],E.sh)}},CVShapeElement.prototype.renderFill=function(C,E,I){var B=E.style;(E.c._mdf||this._isFirstFrame)&&(B.co="rgb("+bmFloor(E.c.v[0])+","+bmFloor(E.c.v[1])+","+bmFloor(E.c.v[2])+")"),(E.o._mdf||I._opMdf||this._isFirstFrame)&&(B.coOp=E.o.v*I.opacity)},CVShapeElement.prototype.renderGradientFill=function(C,E,I){var B=E.style,U;if(!B.grd||E.g._mdf||E.s._mdf||E.e._mdf||C.t!==1&&(E.h._mdf||E.a._mdf)){var V=this.globalData.canvasContext,X=E.s.v,Y=E.e.v;if(C.t===1)U=V.createLinearGradient(X[0],X[1],Y[0],Y[1]);else{var K=Math.sqrt(Math.pow(X[0]-Y[0],2)+Math.pow(X[1]-Y[1],2)),J=Math.atan2(Y[1]-X[1],Y[0]-X[0]),xe=E.h.v;xe>=1?xe=.99:xe<=-1&&(xe=-.99);var Z=K*xe,_e=Math.cos(J+E.a.v)*Z+X[0],Se=Math.sin(J+E.a.v)*Z+X[1];U=V.createRadialGradient(_e,Se,0,X[0],X[1],K)}var Ee,Ae=C.g.p,Re=E.g.c,Te=1;for(Ee=0;Ee<Ae;Ee+=1)E.g._hasOpacity&&E.g._collapsable&&(Te=E.g.o[Ee*2+1]),U.addColorStop(Re[Ee*4]/100,"rgba("+Re[Ee*4+1]+","+Re[Ee*4+2]+","+Re[Ee*4+3]+","+Te+")");B.grd=U}B.coOp=E.o.v*I.opacity},CVShapeElement.prototype.renderStroke=function(C,E,I){var B=E.style,U=E.d;U&&(U._mdf||this._isFirstFrame)&&(B.da=U.dashArray,B.do=U.dashoffset[0]),(E.c._mdf||this._isFirstFrame)&&(B.co="rgb("+bmFloor(E.c.v[0])+","+bmFloor(E.c.v[1])+","+bmFloor(E.c.v[2])+")"),(E.o._mdf||I._opMdf||this._isFirstFrame)&&(B.coOp=E.o.v*I.opacity),(E.w._mdf||this._isFirstFrame)&&(B.wi=E.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0};function CVTextElement(C,E,I){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(C,E,I)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var C=this.textProperty.currentData;this.renderedLetters=createSizedArray(C.l?C.l.length:0);var E=!1;C.fc?(E=!0,this.values.fill=this.buildColor(C.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=E;var I=!1;C.sc&&(I=!0,this.values.stroke=this.buildColor(C.sc),this.values.sWidth=C.sw);var B=this.globalData.fontManager.getFontByName(C.f),U,V,X=C.l,Y=this.mHelper;this.stroke=I,this.values.fValue=C.finalSize+"px "+this.globalData.fontManager.getFontByName(C.f).fFamily,V=C.finalText.length;var K,J,xe,Z,_e,Se,Ee,Ae,Re,Te,we=this.data.singleShape,Pe=C.tr*.001*C.finalSize,Ie=0,Fe=0,Oe=!0,Le=0;for(U=0;U<V;U+=1){K=this.globalData.fontManager.getCharData(C.finalText[U],B.fStyle,this.globalData.fontManager.getFontByName(C.f).fFamily),J=K&&K.data||{},Y.reset(),we&&X[U].n&&(Ie=-Pe,Fe+=C.yOffset,Fe+=Oe?1:0,Oe=!1),_e=J.shapes?J.shapes[0].it:[],Ee=_e.length,Y.scale(C.finalSize/100,C.finalSize/100),we&&this.applyTextPropertiesToMatrix(C,Y,X[U].line,Ie,Fe),Re=createSizedArray(Ee-1);var De=0;for(Se=0;Se<Ee;Se+=1)if(_e[Se].ty==="sh"){for(Z=_e[Se].ks.k.i.length,Ae=_e[Se].ks.k,Te=[],xe=1;xe<Z;xe+=1)xe===1&&Te.push(Y.applyToX(Ae.v[0][0],Ae.v[0][1],0),Y.applyToY(Ae.v[0][0],Ae.v[0][1],0)),Te.push(Y.applyToX(Ae.o[xe-1][0],Ae.o[xe-1][1],0),Y.applyToY(Ae.o[xe-1][0],Ae.o[xe-1][1],0),Y.applyToX(Ae.i[xe][0],Ae.i[xe][1],0),Y.applyToY(Ae.i[xe][0],Ae.i[xe][1],0),Y.applyToX(Ae.v[xe][0],Ae.v[xe][1],0),Y.applyToY(Ae.v[xe][0],Ae.v[xe][1],0));Te.push(Y.applyToX(Ae.o[xe-1][0],Ae.o[xe-1][1],0),Y.applyToY(Ae.o[xe-1][0],Ae.o[xe-1][1],0),Y.applyToX(Ae.i[0][0],Ae.i[0][1],0),Y.applyToY(Ae.i[0][0],Ae.i[0][1],0),Y.applyToX(Ae.v[0][0],Ae.v[0][1],0),Y.applyToY(Ae.v[0][0],Ae.v[0][1],0)),Re[De]=Te,De+=1}we&&(Ie+=X[U].l,Ie+=Pe),this.textSpans[Le]?this.textSpans[Le].elem=Re:this.textSpans[Le]={elem:Re},Le+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var C=this.canvasContext;C.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var E,I,B,U,V,X,Y=this.textAnimator.renderedLetters,K=this.textProperty.currentData.l;I=K.length;var J,xe=null,Z=null,_e=null,Se,Ee,Ae=this.globalData.renderer;for(E=0;E<I;E+=1)if(!K[E].n){if(J=Y[E],J&&(Ae.save(),Ae.ctxTransform(J.p),Ae.ctxOpacity(J.o)),this.fill){for(J&&J.fc?xe!==J.fc&&(Ae.ctxFillStyle(J.fc),xe=J.fc):xe!==this.values.fill&&(xe=this.values.fill,Ae.ctxFillStyle(this.values.fill)),Se=this.textSpans[E].elem,U=Se.length,this.globalData.canvasContext.beginPath(),B=0;B<U;B+=1)for(Ee=Se[B],X=Ee.length,this.globalData.canvasContext.moveTo(Ee[0],Ee[1]),V=2;V<X;V+=6)this.globalData.canvasContext.bezierCurveTo(Ee[V],Ee[V+1],Ee[V+2],Ee[V+3],Ee[V+4],Ee[V+5]);this.globalData.canvasContext.closePath(),Ae.ctxFill()}if(this.stroke){for(J&&J.sw?_e!==J.sw&&(_e=J.sw,Ae.ctxLineWidth(J.sw)):_e!==this.values.sWidth&&(_e=this.values.sWidth,Ae.ctxLineWidth(this.values.sWidth)),J&&J.sc?Z!==J.sc&&(Z=J.sc,Ae.ctxStrokeStyle(J.sc)):Z!==this.values.stroke&&(Z=this.values.stroke,Ae.ctxStrokeStyle(this.values.stroke)),Se=this.textSpans[E].elem,U=Se.length,this.globalData.canvasContext.beginPath(),B=0;B<U;B+=1)for(Ee=Se[B],X=Ee.length,this.globalData.canvasContext.moveTo(Ee[0],Ee[1]),V=2;V<X;V+=6)this.globalData.canvasContext.bezierCurveTo(Ee[V],Ee[V+1],Ee[V+2],Ee[V+3],Ee[V+4],Ee[V+5]);this.globalData.canvasContext.closePath(),Ae.ctxStroke()}J&&this.globalData.renderer.restore()}};function CVImageElement(C,E,I){this.assetData=E.getAssetData(C.refId),this.img=E.imageLoader.getAsset(this.assetData),this.initElement(C,E,I)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var C=createTag("canvas");C.width=this.assetData.w,C.height=this.assetData.h;var E=C.getContext("2d"),I=this.img.width,B=this.img.height,U=I/B,V=this.assetData.w/this.assetData.h,X,Y,K=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;U>V&&K==="xMidYMid slice"||U<V&&K!=="xMidYMid slice"?(Y=B,X=Y*V):(X=I,Y=X/V),E.drawImage(this.img,(I-X)/2,(B-Y)/2,X,Y,0,0,this.assetData.w,this.assetData.h),this.img=C}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(C,E,I){this.initElement(C,E,I)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)};function CanvasRendererBase(){}extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(C){return new CVShapeElement(C,this.globalData,this)},CanvasRendererBase.prototype.createText=function(C){return new CVTextElement(C,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(C){return new CVImageElement(C,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(C){return new CVSolidElement(C,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(C){C[0]===1&&C[1]===0&&C[4]===0&&C[5]===1&&C[12]===0&&C[13]===0||this.canvasContext.transform(C[0],C[1],C[4],C[5],C[12],C[13])},CanvasRendererBase.prototype.ctxOpacity=function(C){this.canvasContext.globalAlpha*=C<0?0:C},CanvasRendererBase.prototype.ctxFillStyle=function(C){this.canvasContext.fillStyle=C},CanvasRendererBase.prototype.ctxStrokeStyle=function(C){this.canvasContext.strokeStyle=C},CanvasRendererBase.prototype.ctxLineWidth=function(C){this.canvasContext.lineWidth=C},CanvasRendererBase.prototype.ctxLineCap=function(C){this.canvasContext.lineCap=C},CanvasRendererBase.prototype.ctxLineJoin=function(C){this.canvasContext.lineJoin=C},CanvasRendererBase.prototype.ctxMiterLimit=function(C){this.canvasContext.miterLimit=C},CanvasRendererBase.prototype.ctxFill=function(C){this.canvasContext.fill(C)},CanvasRendererBase.prototype.ctxFillRect=function(C,E,I,B){this.canvasContext.fillRect(C,E,I,B)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(C){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}C&&(this.globalData.blendMode="source-over"),this.contextData.restore(C)},CanvasRendererBase.prototype.configAnimation=function(C){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var E=this.animationItem.container.style;E.width="100%",E.height="100%";var I="0px 0px 0px";E.transformOrigin=I,E.mozTransformOrigin=I,E.webkitTransformOrigin=I,E["-webkit-transform"]=I,E.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=C,this.layers=C.layers,this.transformCanvas={w:C.w,h:C.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(C,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(C.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(C,E){this.reset();var I,B;C?(I=C,B=E,this.canvasContext.canvas.width=I,this.canvasContext.canvas.height=B):(this.animationItem.wrapper&&this.animationItem.container?(I=this.animationItem.wrapper.offsetWidth,B=this.animationItem.wrapper.offsetHeight):(I=this.canvasContext.canvas.width,B=this.canvasContext.canvas.height),this.canvasContext.canvas.width=I*this.renderConfig.dpr,this.canvasContext.canvas.height=B*this.renderConfig.dpr);var U,V;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var X=this.renderConfig.preserveAspectRatio.split(" "),Y=X[1]||"meet",K=X[0]||"xMidYMid",J=K.substr(0,4),xe=K.substr(4);U=I/B,V=this.transformCanvas.w/this.transformCanvas.h,V>U&&Y==="meet"||V<U&&Y==="slice"?(this.transformCanvas.sx=I/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=I/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=B/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=B/(this.transformCanvas.h/this.renderConfig.dpr)),J==="xMid"&&(V<U&&Y==="meet"||V>U&&Y==="slice")?this.transformCanvas.tx=(I-this.transformCanvas.w*(B/this.transformCanvas.h))/2*this.renderConfig.dpr:J==="xMax"&&(V<U&&Y==="meet"||V>U&&Y==="slice")?this.transformCanvas.tx=(I-this.transformCanvas.w*(B/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,xe==="YMid"&&(V>U&&Y==="meet"||V<U&&Y==="slice")?this.transformCanvas.ty=(B-this.transformCanvas.h*(I/this.transformCanvas.w))/2*this.renderConfig.dpr:xe==="YMax"&&(V>U&&Y==="meet"||V<U&&Y==="slice")?this.transformCanvas.ty=(B-this.transformCanvas.h*(I/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=I/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=B/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText="");var C,E=this.layers?this.layers.length:0;for(C=E-1;C>=0;C-=1)this.elements[C]&&this.elements[C].destroy&&this.elements[C].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(C,E){if(!(this.renderedFrame===C&&this.renderConfig.clearCanvas===!0&&!E||this.destroyed||C===-1)){this.renderedFrame=C,this.globalData.frameNum=C-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||E,this.globalData.projectInterface.currentFrame=C;var I,B=this.layers.length;for(this.completeLayers||this.checkLayers(C),I=B-1;I>=0;I-=1)(this.completeLayers||this.elements[I])&&this.elements[I].prepareFrame(C-this.layers[I].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),I=B-1;I>=0;I-=1)(this.completeLayers||this.elements[I])&&this.elements[I].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(C){var E=this.elements;if(!(E[C]||this.layers[C].ty===99)){var I=this.createItem(this.layers[C],this,this.globalData);E[C]=I,I.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var C=this.pendingElements.pop();C.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var C,E=15;for(C=0;C<E;C+=1){var I=new CanvasContext;this.stack[C]=I}this._length=E,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}CVContextData.prototype.duplicate=function(){var C=this._length*2,E=0;for(E=this._length;E<C;E+=1)this.stack[E]=new CanvasContext;this._length=C},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(C){this.cArrPos-=1;var E=this.stack[this.cArrPos],I=E.transform,B,U=this.cTr.props;for(B=0;B<16;B+=1)U[B]=I[B];if(C){this.nativeContext.restore();var V=this.stack[this.cArrPos+1];this.appliedFillStyle=V.fillStyle,this.appliedStrokeStyle=V.strokeStyle,this.appliedLineWidth=V.lineWidth,this.appliedLineCap=V.lineCap,this.appliedLineJoin=V.lineJoin,this.appliedMiterLimit=V.miterLimit}this.nativeContext.setTransform(I[0],I[1],I[4],I[5],I[12],I[13]),(C||E.opacity!==-1&&this.currentOpacity!==E.opacity)&&(this.nativeContext.globalAlpha=E.opacity,this.currentOpacity=E.opacity),this.currentFillStyle=E.fillStyle,this.currentStrokeStyle=E.strokeStyle,this.currentLineWidth=E.lineWidth,this.currentLineCap=E.lineCap,this.currentLineJoin=E.lineJoin,this.currentMiterLimit=E.miterLimit},CVContextData.prototype.save=function(C){C&&this.nativeContext.save();var E=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var I=this.stack[this.cArrPos],B;for(B=0;B<16;B+=1)I.transform[B]=E[B];this.cArrPos+=1;var U=this.stack[this.cArrPos];U.opacity=I.opacity,U.fillStyle=I.fillStyle,U.strokeStyle=I.strokeStyle,U.lineWidth=I.lineWidth,U.lineCap=I.lineCap,U.lineJoin=I.lineJoin,U.miterLimit=I.miterLimit},CVContextData.prototype.setOpacity=function(C){this.stack[this.cArrPos].opacity=C},CVContextData.prototype.setContext=function(C){this.nativeContext=C},CVContextData.prototype.fillStyle=function(C){this.stack[this.cArrPos].fillStyle!==C&&(this.currentFillStyle=C,this.stack[this.cArrPos].fillStyle=C)},CVContextData.prototype.strokeStyle=function(C){this.stack[this.cArrPos].strokeStyle!==C&&(this.currentStrokeStyle=C,this.stack[this.cArrPos].strokeStyle=C)},CVContextData.prototype.lineWidth=function(C){this.stack[this.cArrPos].lineWidth!==C&&(this.currentLineWidth=C,this.stack[this.cArrPos].lineWidth=C)},CVContextData.prototype.lineCap=function(C){this.stack[this.cArrPos].lineCap!==C&&(this.currentLineCap=C,this.stack[this.cArrPos].lineCap=C)},CVContextData.prototype.lineJoin=function(C){this.stack[this.cArrPos].lineJoin!==C&&(this.currentLineJoin=C,this.stack[this.cArrPos].lineJoin=C)},CVContextData.prototype.miterLimit=function(C){this.stack[this.cArrPos].miterLimit!==C&&(this.currentMiterLimit=C,this.stack[this.cArrPos].miterLimit=C)},CVContextData.prototype.transform=function(C){this.transformMat.cloneFromProps(C);var E=this.cTr;this.transformMat.multiply(E),E.cloneFromProps(this.transformMat.props);var I=E.props;this.nativeContext.setTransform(I[0],I[1],I[4],I[5],I[12],I[13])},CVContextData.prototype.opacity=function(C){var E=this.stack[this.cArrPos].opacity;E*=C<0?0:C,this.stack[this.cArrPos].opacity!==E&&(this.currentOpacity!==C&&(this.nativeContext.globalAlpha=C,this.currentOpacity=C),this.stack[this.cArrPos].opacity=E)},CVContextData.prototype.fill=function(C){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(C)},CVContextData.prototype.fillRect=function(C,E,I,B){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(C,E,I,B)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()};function CVCompElement(C,E,I){this.completeLayers=!1,this.layers=C.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(C,E,I),this.tm=C.tm?PropertyFactory.getProp(this,C.tm,0,E.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var C=this.canvasContext;C.beginPath(),C.moveTo(0,0),C.lineTo(this.data.w,0),C.lineTo(this.data.w,this.data.h),C.lineTo(0,this.data.h),C.lineTo(0,0),C.clip();var E,I=this.layers.length;for(E=I-1;E>=0;E-=1)(this.completeLayers||this.elements[E])&&this.elements[E].renderFrame()},CVCompElement.prototype.destroy=function(){var C,E=this.layers.length;for(C=E-1;C>=0;C-=1)this.elements[C]&&this.elements[C].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(C){return new CVCompElement(C,this.globalData,this)};function CanvasRenderer(C,E){this.animationItem=C,this.renderConfig={clearCanvas:E&&E.clearCanvas!==void 0?E.clearCanvas:!0,context:E&&E.context||null,progressiveLoad:E&&E.progressiveLoad||!1,preserveAspectRatio:E&&E.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:E&&E.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:E&&E.contentVisibility||"visible",className:E&&E.className||"",id:E&&E.id||"",runExpressions:!E||E.runExpressions===void 0||E.runExpressions},this.renderConfig.dpr=E&&E.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=E&&E.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(C){return new CVCompElement(C,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var E=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var I=this.finalTransform.mat.toCSS();E.transform=I,E.webkitTransform=I}this.finalTransform._opMdf&&(E.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(C,E,I){this.initElement(C,E,I)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var C;this.data.hasMask?(C=createNS("rect"),C.setAttribute("width",this.data.sw),C.setAttribute("height",this.data.sh),C.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(C=createTag("div"),C.style.width=this.data.sw+"px",C.style.height=this.data.sh+"px",C.style.backgroundColor=this.data.sc),this.layerElement.appendChild(C)};function HShapeElement(C,E,I){this.shapes=[],this.shapesData=C.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(C,E,I),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var C;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),C=this.svgElement;else{C=createNS("svg");var E=this.comp.data?this.comp.data:this.globalData.compSize;C.setAttribute("width",E.w),C.setAttribute("height",E.h),C.appendChild(this.shapesContainer),this.layerElement.appendChild(C)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=C},HShapeElement.prototype.getTransformedPoint=function(C,E){var I,B=C.length;for(I=0;I<B;I+=1)E=C[I].mProps.v.applyToPointArray(E[0],E[1],0);return E},HShapeElement.prototype.calculateShapeBoundingBox=function(C,E){var I=C.sh.v,B=C.transformers,U,V=I._length,X,Y,K,J;if(!(V<=1)){for(U=0;U<V-1;U+=1)X=this.getTransformedPoint(B,I.v[U]),Y=this.getTransformedPoint(B,I.o[U]),K=this.getTransformedPoint(B,I.i[U+1]),J=this.getTransformedPoint(B,I.v[U+1]),this.checkBounds(X,Y,K,J,E);I.c&&(X=this.getTransformedPoint(B,I.v[U]),Y=this.getTransformedPoint(B,I.o[U]),K=this.getTransformedPoint(B,I.i[0]),J=this.getTransformedPoint(B,I.v[0]),this.checkBounds(X,Y,K,J,E))}},HShapeElement.prototype.checkBounds=function(C,E,I,B,U){this.getBoundsOfCurve(C,E,I,B);var V=this.shapeBoundingBox;U.x=bmMin(V.left,U.x),U.xMax=bmMax(V.right,U.xMax),U.y=bmMin(V.top,U.y),U.yMax=bmMax(V.bottom,U.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(C,E,I,B){for(var U=[[C[0],B[0]],[C[1],B[1]]],V,X,Y,K,J,xe,Z,_e=0;_e<2;++_e)X=6*C[_e]-12*E[_e]+6*I[_e],V=-3*C[_e]+9*E[_e]-9*I[_e]+3*B[_e],Y=3*E[_e]-3*C[_e],X|=0,V|=0,Y|=0,V===0&&X===0||(V===0?(K=-Y/X,K>0&&K<1&&U[_e].push(this.calculateF(K,C,E,I,B,_e))):(J=X*X-4*Y*V,J>=0&&(xe=(-X+bmSqrt(J))/(2*V),xe>0&&xe<1&&U[_e].push(this.calculateF(xe,C,E,I,B,_e)),Z=(-X-bmSqrt(J))/(2*V),Z>0&&Z<1&&U[_e].push(this.calculateF(Z,C,E,I,B,_e)))));this.shapeBoundingBox.left=bmMin.apply(null,U[0]),this.shapeBoundingBox.top=bmMin.apply(null,U[1]),this.shapeBoundingBox.right=bmMax.apply(null,U[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,U[1])},HShapeElement.prototype.calculateF=function(C,E,I,B,U,V){return bmPow(1-C,3)*E[V]+3*bmPow(1-C,2)*C*I[V]+3*(1-C)*bmPow(C,2)*B[V]+bmPow(C,3)*U[V]},HShapeElement.prototype.calculateBoundingBox=function(C,E){var I,B=C.length;for(I=0;I<B;I+=1)C[I]&&C[I].sh?this.calculateShapeBoundingBox(C[I],E):C[I]&&C[I].it?this.calculateBoundingBox(C[I].it,E):C[I]&&C[I].style&&C[I].w&&this.expandStrokeBoundingBox(C[I].w,E)},HShapeElement.prototype.expandStrokeBoundingBox=function(C,E){var I=0;if(C.keyframes){for(var B=0;B<C.keyframes.length;B+=1){var U=C.keyframes[B].s;U>I&&(I=U)}I*=C.mult}else I=C.v*C.mult;E.x-=I,E.xMax+=I,E.y-=I,E.yMax+=I},HShapeElement.prototype.currentBoxContains=function(C){return this.currentBBox.x<=C.x&&this.currentBBox.y<=C.y&&this.currentBBox.width+this.currentBBox.x>=C.x+C.width&&this.currentBBox.height+this.currentBBox.y>=C.y+C.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var C=this.tempBoundingBox,E=999999;if(C.x=E,C.xMax=-E,C.y=E,C.yMax=-E,this.calculateBoundingBox(this.itemsData,C),C.width=C.xMax<C.x?0:C.xMax-C.x,C.height=C.yMax<C.y?0:C.yMax-C.y,this.currentBoxContains(C))return;var I=!1;if(this.currentBBox.w!==C.width&&(this.currentBBox.w=C.width,this.shapeCont.setAttribute("width",C.width),I=!0),this.currentBBox.h!==C.height&&(this.currentBBox.h=C.height,this.shapeCont.setAttribute("height",C.height),I=!0),I||this.currentBBox.x!==C.x||this.currentBBox.y!==C.y){this.currentBBox.w=C.width,this.currentBBox.h=C.height,this.currentBBox.x=C.x,this.currentBBox.y=C.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var B=this.shapeCont.style,U="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";B.transform=U,B.webkitTransform=U}}};function HTextElement(C,E,I){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(C,E,I)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var C=createNS("g");this.maskedElement.appendChild(C),this.innerElem=C}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var C=this.textProperty.currentData;this.renderedLetters=createSizedArray(C.l?C.l.length:0);var E=this.innerElem.style,I=C.fc?this.buildColor(C.fc):"rgba(0,0,0,0)";E.fill=I,E.color=I,C.sc&&(E.stroke=this.buildColor(C.sc),E.strokeWidth=C.sw+"px");var B=this.globalData.fontManager.getFontByName(C.f);if(!this.globalData.fontManager.chars)if(E.fontSize=C.finalSize+"px",E.lineHeight=C.finalSize+"px",B.fClass)this.innerElem.className=B.fClass;else{E.fontFamily=B.fFamily;var U=C.fWeight,V=C.fStyle;E.fontStyle=V,E.fontWeight=U}var X,Y,K=C.l;Y=K.length;var J,xe,Z,_e=this.mHelper,Se,Ee="",Ae=0;for(X=0;X<Y;X+=1){if(this.globalData.fontManager.chars?(this.textPaths[Ae]?J=this.textPaths[Ae]:(J=createNS("path"),J.setAttribute("stroke-linecap",lineCapEnum[1]),J.setAttribute("stroke-linejoin",lineJoinEnum[2]),J.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[Ae]?(xe=this.textSpans[Ae],Z=xe.children[0]):(xe=createTag("div"),xe.style.lineHeight=0,Z=createNS("svg"),Z.appendChild(J),styleDiv(xe)))):this.isMasked?J=this.textPaths[Ae]?this.textPaths[Ae]:createNS("text"):this.textSpans[Ae]?(xe=this.textSpans[Ae],J=this.textPaths[Ae]):(xe=createTag("span"),styleDiv(xe),J=createTag("span"),styleDiv(J),xe.appendChild(J)),this.globalData.fontManager.chars){var Re=this.globalData.fontManager.getCharData(C.finalText[X],B.fStyle,this.globalData.fontManager.getFontByName(C.f).fFamily),Te;if(Re?Te=Re.data:Te=null,_e.reset(),Te&&Te.shapes&&Te.shapes.length&&(Se=Te.shapes[0].it,_e.scale(C.finalSize/100,C.finalSize/100),Ee=this.createPathShape(_e,Se),J.setAttribute("d",Ee)),this.isMasked)this.innerElem.appendChild(J);else{if(this.innerElem.appendChild(xe),Te&&Te.shapes){document.body.appendChild(Z);var we=Z.getBBox();Z.setAttribute("width",we.width+2),Z.setAttribute("height",we.height+2),Z.setAttribute("viewBox",we.x-1+" "+(we.y-1)+" "+(we.width+2)+" "+(we.height+2));var Pe=Z.style,Ie="translate("+(we.x-1)+"px,"+(we.y-1)+"px)";Pe.transform=Ie,Pe.webkitTransform=Ie,K[X].yOffset=we.y-1}else Z.setAttribute("width",1),Z.setAttribute("height",1);xe.appendChild(Z)}}else if(J.textContent=K[X].val,J.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(J);else{this.innerElem.appendChild(xe);var Fe=J.style,Oe="translate3d(0,"+-C.finalSize/1.2+"px,0)";Fe.transform=Oe,Fe.webkitTransform=Oe}this.isMasked?this.textSpans[Ae]=J:this.textSpans[Ae]=xe,this.textSpans[Ae].style.display="block",this.textPaths[Ae]=J,Ae+=1}for(;Ae<this.textSpans.length;)this.textSpans[Ae].style.display="none",Ae+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var C;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),C=this.svgElement.style;var E="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";C.transform=E,C.webkitTransform=E}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var I,B,U=0,V=this.textAnimator.renderedLetters,X=this.textProperty.currentData.l;B=X.length;var Y,K,J;for(I=0;I<B;I+=1)X[I].n?U+=1:(K=this.textSpans[I],J=this.textPaths[I],Y=V[U],U+=1,Y._mdf.m&&(this.isMasked?K.setAttribute("transform",Y.m):(K.style.webkitTransform=Y.m,K.style.transform=Y.m)),K.style.opacity=Y.o,Y.sw&&Y._mdf.sw&&J.setAttribute("stroke-width",Y.sw),Y.sc&&Y._mdf.sc&&J.setAttribute("stroke",Y.sc),Y.fc&&Y._mdf.fc&&(J.setAttribute("fill",Y.fc),J.style.color=Y.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var xe=this.innerElem.getBBox();this.currentBBox.w!==xe.width&&(this.currentBBox.w=xe.width,this.svgElement.setAttribute("width",xe.width)),this.currentBBox.h!==xe.height&&(this.currentBBox.h=xe.height,this.svgElement.setAttribute("height",xe.height));var Z=1;if(this.currentBBox.w!==xe.width+Z*2||this.currentBBox.h!==xe.height+Z*2||this.currentBBox.x!==xe.x-Z||this.currentBBox.y!==xe.y-Z){this.currentBBox.w=xe.width+Z*2,this.currentBBox.h=xe.height+Z*2,this.currentBBox.x=xe.x-Z,this.currentBBox.y=xe.y-Z,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),C=this.svgElement.style;var _e="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";C.transform=_e,C.webkitTransform=_e}}}};function HCameraElement(C,E,I){this.initFrame(),this.initBaseData(C,E,I),this.initHierarchy();var B=PropertyFactory.getProp;if(this.pe=B(this,C.pe,0,0,this),C.ks.p.s?(this.px=B(this,C.ks.p.x,1,0,this),this.py=B(this,C.ks.p.y,1,0,this),this.pz=B(this,C.ks.p.z,1,0,this)):this.p=B(this,C.ks.p,1,0,this),C.ks.a&&(this.a=B(this,C.ks.a,1,0,this)),C.ks.or.k.length&&C.ks.or.k[0].to){var U,V=C.ks.or.k.length;for(U=0;U<V;U+=1)C.ks.or.k[U].to=null,C.ks.or.k[U].ti=null}this.or=B(this,C.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=B(this,C.ks.rx,0,degToRads,this),this.ry=B(this,C.ks.ry,0,degToRads,this),this.rz=B(this,C.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var C,E=this.comp.threeDElements.length,I,B,U;for(C=0;C<E;C+=1)if(I=this.comp.threeDElements[C],I.type==="3d"){B=I.perspectiveElem.style,U=I.container.style;var V=this.pe.v+"px",X="0px 0px 0px",Y="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";B.perspective=V,B.webkitPerspective=V,U.transformOrigin=X,U.mozTransformOrigin=X,U.webkitTransformOrigin=X,B.transform=Y,B.webkitTransform=Y}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var C=this._isFirstFrame,E,I;if(this.hierarchy)for(I=this.hierarchy.length,E=0;E<I;E+=1)C=this.hierarchy[E].finalTransform.mProp._mdf||C;if(C||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(I=this.hierarchy.length-1,E=I;E>=0;E-=1){var B=this.hierarchy[E].finalTransform.mProp;this.mat.translate(-B.p.v[0],-B.p.v[1],B.p.v[2]),this.mat.rotateX(-B.or.v[0]).rotateY(-B.or.v[1]).rotateZ(B.or.v[2]),this.mat.rotateX(-B.rx.v).rotateY(-B.ry.v).rotateZ(B.rz.v),this.mat.scale(1/B.s.v[0],1/B.s.v[1],1/B.s.v[2]),this.mat.translate(B.a.v[0],B.a.v[1],B.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var U;this.p?U=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:U=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var V=Math.sqrt(Math.pow(U[0],2)+Math.pow(U[1],2)+Math.pow(U[2],2)),X=[U[0]/V,U[1]/V,U[2]/V],Y=Math.sqrt(X[2]*X[2]+X[0]*X[0]),K=Math.atan2(X[1],Y),J=Math.atan2(X[0],-X[2]);this.mat.rotateY(J).rotateX(-K)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var xe=!this._prevMat.equals(this.mat);if((xe||this.pe._mdf)&&this.comp.threeDElements){I=this.comp.threeDElements.length;var Z,_e,Se;for(E=0;E<I;E+=1)if(Z=this.comp.threeDElements[E],Z.type==="3d"){if(xe){var Ee=this.mat.toCSS();Se=Z.container.style,Se.transform=Ee,Se.webkitTransform=Ee}this.pe._mdf&&(_e=Z.perspectiveElem.style,_e.perspective=this.pe.v+"px",_e.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(C){this.prepareProperties(C,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(C,E,I){this.assetData=E.getAssetData(C.refId),this.initElement(C,E,I)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var C=this.globalData.getAssetsPath(this.assetData),E=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",C),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(E),E.crossOrigin="anonymous",E.src=C,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(C,E){this.animationItem=C,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:E&&E.className||"",imagePreserveAspectRatio:E&&E.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(E&&E.hideOnTransparent===!1),filterSize:{width:E&&E.filterSize&&E.filterSize.width||"400%",height:E&&E.filterSize&&E.filterSize.height||"400%",x:E&&E.filterSize&&E.filterSize.x||"-100%",y:E&&E.filterSize&&E.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var C=this.pendingElements.pop();C.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(C,E){var I=C.getBaseElement();if(I){var B=this.layers[E];if(!B.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(I,E);else{for(var U=0,V,X,Y;U<E;)this.elements[U]&&this.elements[U]!==!0&&this.elements[U].getBaseElement&&(X=this.elements[U],Y=this.layers[U].ddd?this.getThreeDContainerByPos(U):X.getBaseElement(),V=Y||V),U+=1;V?(!B.ddd||!this.supports3d)&&this.layerElement.insertBefore(I,V):(!B.ddd||!this.supports3d)&&this.layerElement.appendChild(I)}else this.addTo3dContainer(I,E)}},HybridRendererBase.prototype.createShape=function(C){return this.supports3d?new HShapeElement(C,this.globalData,this):new SVGShapeElement(C,this.globalData,this)},HybridRendererBase.prototype.createText=function(C){return this.supports3d?new HTextElement(C,this.globalData,this):new SVGTextLottieElement(C,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(C){return this.camera=new HCameraElement(C,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(C){return this.supports3d?new HImageElement(C,this.globalData,this):new IImageElement(C,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(C){return this.supports3d?new HSolidElement(C,this.globalData,this):new ISolidElement(C,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(C){for(var E=0,I=this.threeDElements.length;E<I;){if(this.threeDElements[E].startPos<=C&&this.threeDElements[E].endPos>=C)return this.threeDElements[E].perspectiveElem;E+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(C,E){var I=createTag("div"),B,U;styleDiv(I);var V=createTag("div");if(styleDiv(V),E==="3d"){B=I.style,B.width=this.globalData.compSize.w+"px",B.height=this.globalData.compSize.h+"px";var X="50% 50%";B.webkitTransformOrigin=X,B.mozTransformOrigin=X,B.transformOrigin=X,U=V.style;var Y="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";U.transform=Y,U.webkitTransform=Y}I.appendChild(V);var K={container:V,perspectiveElem:I,startPos:C,endPos:C,type:E};return this.threeDElements.push(K),K},HybridRendererBase.prototype.build3dContainers=function(){var C,E=this.layers.length,I,B="";for(C=0;C<E;C+=1)this.layers[C].ddd&&this.layers[C].ty!==3?(B!=="3d"&&(B="3d",I=this.createThreeDContainer(C,"3d")),I.endPos=Math.max(I.endPos,C)):(B!=="2d"&&(B="2d",I=this.createThreeDContainer(C,"2d")),I.endPos=Math.max(I.endPos,C));for(E=this.threeDElements.length,C=E-1;C>=0;C-=1)this.resizerElem.appendChild(this.threeDElements[C].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(C,E){for(var I=0,B=this.threeDElements.length;I<B;){if(E<=this.threeDElements[I].endPos){for(var U=this.threeDElements[I].startPos,V;U<E;)this.elements[U]&&this.elements[U].getBaseElement&&(V=this.elements[U].getBaseElement()),U+=1;V?this.threeDElements[I].container.insertBefore(C,V):this.threeDElements[I].container.appendChild(C);break}I+=1}},HybridRendererBase.prototype.configAnimation=function(C){var E=createTag("div"),I=this.animationItem.wrapper,B=E.style;B.width=C.w+"px",B.height=C.h+"px",this.resizerElem=E,styleDiv(E),B.transformStyle="flat",B.mozTransformStyle="flat",B.webkitTransformStyle="flat",this.renderConfig.className&&E.setAttribute("class",this.renderConfig.className),I.appendChild(E),B.overflow="hidden";var U=createNS("svg");U.setAttribute("width","1"),U.setAttribute("height","1"),styleDiv(U),this.resizerElem.appendChild(U);var V=createNS("defs");U.appendChild(V),this.data=C,this.setupGlobalData(C,U),this.globalData.defs=V,this.layers=C.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var C,E=this.layers?this.layers.length:0;for(C=0;C<E;C+=1)this.elements[C]&&this.elements[C].destroy&&this.elements[C].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var C=this.animationItem.wrapper.offsetWidth,E=this.animationItem.wrapper.offsetHeight,I=C/E,B=this.globalData.compSize.w/this.globalData.compSize.h,U,V,X,Y;B>I?(U=C/this.globalData.compSize.w,V=C/this.globalData.compSize.w,X=0,Y=(E-this.globalData.compSize.h*(C/this.globalData.compSize.w))/2):(U=E/this.globalData.compSize.h,V=E/this.globalData.compSize.h,X=(C-this.globalData.compSize.w*(E/this.globalData.compSize.h))/2,Y=0);var K=this.resizerElem.style;K.webkitTransform="matrix3d("+U+",0,0,0,0,"+V+",0,0,0,0,1,0,"+X+","+Y+",0,1)",K.transform=K.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var C=this.globalData.compSize.w,E=this.globalData.compSize.h,I,B=this.threeDElements.length;for(I=0;I<B;I+=1){var U=this.threeDElements[I].perspectiveElem.style;U.webkitPerspective=Math.sqrt(Math.pow(C,2)+Math.pow(E,2))+"px",U.perspective=U.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(C){var E,I=C.length,B=createTag("div");for(E=0;E<I;E+=1)if(C[E].xt){var U=this.createComp(C[E],B,this.globalData.comp,null);U.initExpressions(),this.globalData.projectInterface.registerComposition(U)}};function HCompElement(C,E,I){this.layers=C.layers,this.supports3d=!C.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(C,E,I),this.tm=C.tm?PropertyFactory.getProp(this,C.tm,0,E.frameRate,this):{_placeholder:!0}}extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(C,E){for(var I=0,B;I<E;)this.elements[I]&&this.elements[I].getBaseElement&&(B=this.elements[I].getBaseElement()),I+=1;B?this.layerElement.insertBefore(C,B):this.layerElement.appendChild(C)},HCompElement.prototype.createComp=function(C){return this.supports3d?new HCompElement(C,this.globalData,this):new SVGCompElement(C,this.globalData,this)};function HybridRenderer(C,E){this.animationItem=C,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:E&&E.className||"",imagePreserveAspectRatio:E&&E.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(E&&E.hideOnTransparent===!1),filterSize:{width:E&&E.filterSize&&E.filterSize.width||"400%",height:E&&E.filterSize&&E.filterSize.height||"400%",x:E&&E.filterSize&&E.filterSize.x||"-100%",y:E&&E.filterSize&&E.filterSize.y||"-100%"},runExpressions:!E||E.runExpressions===void 0||E.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(C){return this.supports3d?new HCompElement(C,this.globalData,this):new SVGCompElement(C,this.globalData,this)};var CompExpressionInterface=function(){return function(C){function E(I){for(var B=0,U=C.layers.length;B<U;){if(C.layers[B].nm===I||C.layers[B].ind===I)return C.elements[B].layerInterface;B+=1}return null}return Object.defineProperty(E,"_name",{value:C.data.nm}),E.layer=E,E.pixelAspect=1,E.height=C.data.h||C.globalData.compSize.h,E.width=C.data.w||C.globalData.compSize.w,E.pixelAspect=1,E.frameDuration=1/C.globalData.frameRate,E.displayStartTime=0,E.numLayers=C.layers.length,E}}();function _typeof$2(C){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$2=function(I){return typeof I}:_typeof$2=function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},_typeof$2(C)}function seedRandom(C,E){var I=this,B=256,U=6,V=52,X="random",Y=E.pow(B,U),K=E.pow(2,V),J=K*2,xe=B-1,Z;function _e(Pe,Ie,Fe){var Oe=[];Ie=Ie===!0?{entropy:!0}:Ie||{};var Le=Re(Ae(Ie.entropy?[Pe,we(C)]:Pe===null?Te():Pe,3),Oe),De=new Se(Oe),Ve=function(){for(var Ue=De.g(U),We=Y,je=0;Ue<K;)Ue=(Ue+je)*B,We*=B,je=De.g(1);for(;Ue>=J;)Ue/=2,We/=2,je>>>=1;return(Ue+je)/We};return Ve.int32=function(){return De.g(4)|0},Ve.quick=function(){return De.g(4)/4294967296},Ve.double=Ve,Re(we(De.S),C),(Ie.pass||Fe||function(Xe,Ue,We,je){return je&&(je.S&&Ee(je,De),Xe.state=function(){return Ee(De,{})}),We?(E[X]=Xe,Ue):Xe})(Ve,Le,"global"in Ie?Ie.global:this==E,Ie.state)}E["seed"+X]=_e;function Se(Pe){var Ie,Fe=Pe.length,Oe=this,Le=0,De=Oe.i=Oe.j=0,Ve=Oe.S=[];for(Fe||(Pe=[Fe++]);Le<B;)Ve[Le]=Le++;for(Le=0;Le<B;Le++)Ve[Le]=Ve[De=xe&De+Pe[Le%Fe]+(Ie=Ve[Le])],Ve[De]=Ie;Oe.g=function(Xe){for(var Ue,We=0,je=Oe.i,ze=Oe.j,He=Oe.S;Xe--;)Ue=He[je=xe&je+1],We=We*B+He[xe&(He[je]=He[ze=xe&ze+Ue])+(He[ze]=Ue)];return Oe.i=je,Oe.j=ze,We}}function Ee(Pe,Ie){return Ie.i=Pe.i,Ie.j=Pe.j,Ie.S=Pe.S.slice(),Ie}function Ae(Pe,Ie){var Fe=[],Oe=_typeof$2(Pe),Le;if(Ie&&Oe=="object")for(Le in Pe)try{Fe.push(Ae(Pe[Le],Ie-1))}catch{}return Fe.length?Fe:Oe=="string"?Pe:Pe+"\0"}function Re(Pe,Ie){for(var Fe=Pe+"",Oe,Le=0;Le<Fe.length;)Ie[xe&Le]=xe&(Oe^=Ie[xe&Le]*19)+Fe.charCodeAt(Le++);return we(Ie)}function Te(){try{var Pe=new Uint8Array(B);return(I.crypto||I.msCrypto).getRandomValues(Pe),we(Pe)}catch{var Ie=I.navigator,Fe=Ie&&Ie.plugins;return[+new Date,I,Fe,I.screen,we(C)]}}function we(Pe){return String.fromCharCode.apply(0,Pe)}Re(E.random(),C)}function initialize$2(C){seedRandom([],C)}var propTypes={SHAPE:"shape"};function _typeof$1(C){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(I){return typeof I}:_typeof$1=function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},_typeof$1(C)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};initialize$2(BMMath);function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(C){return C.constructor===Array||C.constructor===Float32Array}function isNumerable(C,E){return C==="number"||E instanceof Number||C==="boolean"||C==="string"}function $bm_neg(C){var E=_typeof$1(C);if(E==="number"||C instanceof Number||E==="boolean")return-C;if($bm_isInstanceOfArray(C)){var I,B=C.length,U=[];for(I=0;I<B;I+=1)U[I]=-C[I];return U}return C.propType?C.v:-C}var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(C,E){var I=_typeof$1(C),B=_typeof$1(E);if(isNumerable(I,C)&&isNumerable(B,E)||I==="string"||B==="string")return C+E;if($bm_isInstanceOfArray(C)&&isNumerable(B,E))return C=C.slice(0),C[0]+=E,C;if(isNumerable(I,C)&&$bm_isInstanceOfArray(E))return E=E.slice(0),E[0]=C+E[0],E;if($bm_isInstanceOfArray(C)&&$bm_isInstanceOfArray(E)){for(var U=0,V=C.length,X=E.length,Y=[];U<V||U<X;)(typeof C[U]=="number"||C[U]instanceof Number)&&(typeof E[U]=="number"||E[U]instanceof Number)?Y[U]=C[U]+E[U]:Y[U]=E[U]===void 0?C[U]:C[U]||E[U],U+=1;return Y}return 0}var add=sum;function sub(C,E){var I=_typeof$1(C),B=_typeof$1(E);if(isNumerable(I,C)&&isNumerable(B,E))return I==="string"&&(C=parseInt(C,10)),B==="string"&&(E=parseInt(E,10)),C-E;if($bm_isInstanceOfArray(C)&&isNumerable(B,E))return C=C.slice(0),C[0]-=E,C;if(isNumerable(I,C)&&$bm_isInstanceOfArray(E))return E=E.slice(0),E[0]=C-E[0],E;if($bm_isInstanceOfArray(C)&&$bm_isInstanceOfArray(E)){for(var U=0,V=C.length,X=E.length,Y=[];U<V||U<X;)(typeof C[U]=="number"||C[U]instanceof Number)&&(typeof E[U]=="number"||E[U]instanceof Number)?Y[U]=C[U]-E[U]:Y[U]=E[U]===void 0?C[U]:C[U]||E[U],U+=1;return Y}return 0}function mul(C,E){var I=_typeof$1(C),B=_typeof$1(E),U;if(isNumerable(I,C)&&isNumerable(B,E))return C*E;var V,X;if($bm_isInstanceOfArray(C)&&isNumerable(B,E)){for(X=C.length,U=createTypedArray("float32",X),V=0;V<X;V+=1)U[V]=C[V]*E;return U}if(isNumerable(I,C)&&$bm_isInstanceOfArray(E)){for(X=E.length,U=createTypedArray("float32",X),V=0;V<X;V+=1)U[V]=C*E[V];return U}return 0}function div(C,E){var I=_typeof$1(C),B=_typeof$1(E),U;if(isNumerable(I,C)&&isNumerable(B,E))return C/E;var V,X;if($bm_isInstanceOfArray(C)&&isNumerable(B,E)){for(X=C.length,U=createTypedArray("float32",X),V=0;V<X;V+=1)U[V]=C[V]/E;return U}if(isNumerable(I,C)&&$bm_isInstanceOfArray(E)){for(X=E.length,U=createTypedArray("float32",X),V=0;V<X;V+=1)U[V]=C/E[V];return U}return 0}function mod(C,E){return typeof C=="string"&&(C=parseInt(C,10)),typeof E=="string"&&(E=parseInt(E,10)),C%E}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(C,E,I){if(E>I){var B=I;I=E,E=B}return Math.min(Math.max(C,E),I)}function radiansToDegrees(C){return C/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(C){return C*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(C,E){if(typeof C=="number"||C instanceof Number)return E=E||0,Math.abs(C-E);E||(E=helperLengthArray);var I,B=Math.min(C.length,E.length),U=0;for(I=0;I<B;I+=1)U+=Math.pow(E[I]-C[I],2);return Math.sqrt(U)}function normalize(C){return div(C,length(C))}function rgbToHsl(C){var E=C[0],I=C[1],B=C[2],U=Math.max(E,I,B),V=Math.min(E,I,B),X,Y,K=(U+V)/2;if(U===V)X=0,Y=0;else{var J=U-V;switch(Y=K>.5?J/(2-U-V):J/(U+V),U){case E:X=(I-B)/J+(I<B?6:0);break;case I:X=(B-E)/J+2;break;case B:X=(E-I)/J+4;break}X/=6}return[X,Y,K,C[3]]}function hue2rgb(C,E,I){return I<0&&(I+=1),I>1&&(I-=1),I<1/6?C+(E-C)*6*I:I<1/2?E:I<2/3?C+(E-C)*(2/3-I)*6:C}function hslToRgb(C){var E=C[0],I=C[1],B=C[2],U,V,X;if(I===0)U=B,X=B,V=B;else{var Y=B<.5?B*(1+I):B+I-B*I,K=2*B-Y;U=hue2rgb(K,Y,E+1/3),V=hue2rgb(K,Y,E),X=hue2rgb(K,Y,E-1/3)}return[U,V,X,C[3]]}function linear(C,E,I,B,U){if((B===void 0||U===void 0)&&(B=E,U=I,E=0,I=1),I<E){var V=I;I=E,E=V}if(C<=E)return B;if(C>=I)return U;var X=I===E?0:(C-E)/(I-E);if(!B.length)return B+(U-B)*X;var Y,K=B.length,J=createTypedArray("float32",K);for(Y=0;Y<K;Y+=1)J[Y]=B[Y]+(U[Y]-B[Y])*X;return J}function random(C,E){if(E===void 0&&(C===void 0?(C=0,E=1):(E=C,C=void 0)),E.length){var I,B=E.length;C||(C=createTypedArray("float32",B));var U=createTypedArray("float32",B),V=BMMath.random();for(I=0;I<B;I+=1)U[I]=C[I]+V*(E[I]-C[I]);return U}C===void 0&&(C=0);var X=BMMath.random();return C+X*(E-C)}function createPath(C,E,I,B){var U,V=C.length,X=shapePool.newElement();X.setPathData(!!B,V);var Y=[0,0],K,J;for(U=0;U<V;U+=1)K=E&&E[U]?E[U]:Y,J=I&&I[U]?I[U]:Y,X.setTripleAt(C[U][0],C[U][1],J[0]+C[U][0],J[1]+C[U][1],K[0]+C[U][0],K[1]+C[U][1],U,!0);return X}function initiateExpression(elem,data,property){function noOp(C){return C}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=(function C(E,I){var B,U,V=this.pv.length?this.pv.length:1,X=createTypedArray("float32",V);E=5;var Y=Math.floor(time*E);for(B=0,U=0;B<Y;){for(U=0;U<V;U+=1)X[U]+=-I+I*2*BMMath.random();B+=1}var K=time*E,J=K-Math.floor(K),xe=createTypedArray("float32",V);if(V>1){for(U=0;U<V;U+=1)xe[U]=this.pv[U]+X[U]+(-I+I*2*BMMath.random())*J;return xe}return this.pv+X[0]+(-I+I*2*BMMath.random())*J}).bind(this);thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty));function loopInDuration(C,E){return loopIn(C,E,!0)}function loopOutDuration(C,E){return loopOut(C,E,!0)}this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(C,E){var I=[E[0]-C[0],E[1]-C[1],E[2]-C[2]],B=Math.atan2(I[0],Math.sqrt(I[1]*I[1]+I[2]*I[2]))/degToRads,U=-Math.atan2(I[1],I[2])/degToRads;return[U,B,0]}function easeOut(C,E,I,B,U){return applyEase(easeOutBez,C,E,I,B,U)}function easeIn(C,E,I,B,U){return applyEase(easeInBez,C,E,I,B,U)}function ease(C,E,I,B,U){return applyEase(easeInOutBez,C,E,I,B,U)}function applyEase(C,E,I,B,U,V){U===void 0?(U=I,V=B):E=(E-I)/(B-I),E>1?E=1:E<0&&(E=0);var X=C(E);if($bm_isInstanceOfArray(U)){var Y,K=U.length,J=createTypedArray("float32",K);for(Y=0;Y<K;Y+=1)J[Y]=(V[Y]-U[Y])*X+U[Y];return J}return(V-U)*X+U}function nearestKey(C){var E,I=data.k.length,B,U;if(!data.k.length||typeof data.k[0]=="number")B=0,U=0;else if(B=-1,C*=elem.comp.globalData.frameRate,C<data.k[0].t)B=1,U=data.k[0].t;else{for(E=0;E<I-1;E+=1)if(C===data.k[E].t){B=E+1,U=data.k[E].t;break}else if(C>data.k[E].t&&C<data.k[E+1].t){C-data.k[E].t>data.k[E+1].t-C?(B=E+2,U=data.k[E+1].t):(B=E+1,U=data.k[E].t);break}B===-1&&(B=E+1,U=data.k[E].t)}var V={};return V.index=B,V.time=U/elem.comp.globalData.frameRate,V}function key(C){var E,I,B;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+C);C-=1,E={time:data.k[C].t/elem.comp.globalData.frameRate,value:[]};var U=Object.prototype.hasOwnProperty.call(data.k[C],"s")?data.k[C].s:data.k[C-1].e;for(B=U.length,I=0;I<B;I+=1)E[I]=U[I],E.value[I]=U[I];return E}function framesToTime(C,E){return E||(E=elem.comp.globalData.frameRate),C/E}function timeToFrames(C,E){return!C&&C!==0&&(C=time),E||(E=elem.comp.globalData.frameRate),C*E}function seedRandom(C){BMMath.seedrandom(randSeed+C)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(C,E){return typeof value=="string"?E===void 0?value.substring(C):value.substring(C,E):""}function substr(C,E){return typeof value=="string"?E===void 0?value.substr(C):value.substr(C,E):""}function posterizeTime(C){time=C===0?0:Math.floor(time*C)/C,value=valueAtTime(time)}var time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),parent,randSeed=Math.floor(Math.random()*1e6),globalData=elem.globalData;function executeExpression(C){return value=C,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),elemType===4&&!content&&(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),hasParent=!!(elem.hierarchy&&elem.hierarchy.length),hasParent&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt,scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var C={};C.initExpressions=E,C.resetFrame=ExpressionManager.resetFrame;function E(I){var B=0,U=[];function V(){B+=1}function X(){B-=1,B===0&&K()}function Y(J){U.indexOf(J)===-1&&U.push(J)}function K(){var J,xe=U.length;for(J=0;J<xe;J+=1)U[J].release();U.length=0}I.renderer.compInterface=CompExpressionInterface(I.renderer),I.renderer.globalData.projectInterface.registerComposition(I.renderer),I.renderer.globalData.pushExpression=V,I.renderer.globalData.popExpression=X,I.renderer.globalData.registerExpressionProperty=Y}return C}(),MaskManagerInterface=function(){function C(I,B){this._mask=I,this._data=B}Object.defineProperty(C.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(C.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var E=function(B){var U=createSizedArray(B.viewData.length),V,X=B.viewData.length;for(V=0;V<X;V+=1)U[V]=new C(B.viewData[V],B.masksProperties[V]);var Y=function(J){for(V=0;V<X;){if(B.masksProperties[V].nm===J)return U[V];V+=1}return null};return Y};return E}(),ExpressionPropertyInterface=function(){var C={pv:0,v:0,mult:1},E={pv:[0,0,0],v:[0,0,0],mult:1};function I(X,Y,K){Object.defineProperty(X,"velocity",{get:function(){return Y.getVelocityAtTime(Y.comp.currentFrame)}}),X.numKeys=Y.keyframes?Y.keyframes.length:0,X.key=function(J){if(!X.numKeys)return 0;var xe="";"s"in Y.keyframes[J-1]?xe=Y.keyframes[J-1].s:"e"in Y.keyframes[J-2]?xe=Y.keyframes[J-2].e:xe=Y.keyframes[J-2].s;var Z=K==="unidimensional"?new Number(xe):Object.assign({},xe);return Z.time=Y.keyframes[J-1].t/Y.elem.comp.globalData.frameRate,Z.value=K==="unidimensional"?xe[0]:xe,Z},X.valueAtTime=Y.getValueAtTime,X.speedAtTime=Y.getSpeedAtTime,X.velocityAtTime=Y.getVelocityAtTime,X.propertyGroup=Y.propertyGroup}function B(X){(!X||!("pv"in X))&&(X=C);var Y=1/X.mult,K=X.pv*Y,J=new Number(K);return J.value=K,I(J,X,"unidimensional"),function(){return X.k&&X.getValue(),K=X.v*Y,J.value!==K&&(J=new Number(K),J.value=K,I(J,X,"unidimensional")),J}}function U(X){(!X||!("pv"in X))&&(X=E);var Y=1/X.mult,K=X.data&&X.data.l||X.pv.length,J=createTypedArray("float32",K),xe=createTypedArray("float32",K);return J.value=xe,I(J,X,"multidimensional"),function(){X.k&&X.getValue();for(var Z=0;Z<K;Z+=1)xe[Z]=X.v[Z]*Y,J[Z]=xe[Z];return J}}function V(){return C}return function(X){return X?X.propType==="unidimensional"?B(X):U(X):V}}(),TransformExpressionInterface=function(){return function(C){function E(X){switch(X){case"scale":case"Scale":case"ADBE Scale":case 6:return E.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return E.rotation;case"ADBE Rotate X":return E.xRotation;case"ADBE Rotate Y":return E.yRotation;case"position":case"Position":case"ADBE Position":case 2:return E.position;case"ADBE Position_0":return E.xPosition;case"ADBE Position_1":return E.yPosition;case"ADBE Position_2":return E.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return E.anchorPoint;case"opacity":case"Opacity":case 11:return E.opacity;default:return null}}Object.defineProperty(E,"rotation",{get:ExpressionPropertyInterface(C.r||C.rz)}),Object.defineProperty(E,"zRotation",{get:ExpressionPropertyInterface(C.rz||C.r)}),Object.defineProperty(E,"xRotation",{get:ExpressionPropertyInterface(C.rx)}),Object.defineProperty(E,"yRotation",{get:ExpressionPropertyInterface(C.ry)}),Object.defineProperty(E,"scale",{get:ExpressionPropertyInterface(C.s)});var I,B,U,V;return C.p?V=ExpressionPropertyInterface(C.p):(I=ExpressionPropertyInterface(C.px),B=ExpressionPropertyInterface(C.py),C.pz&&(U=ExpressionPropertyInterface(C.pz))),Object.defineProperty(E,"position",{get:function(){return C.p?V():[I(),B(),U?U():0]}}),Object.defineProperty(E,"xPosition",{get:ExpressionPropertyInterface(C.px)}),Object.defineProperty(E,"yPosition",{get:ExpressionPropertyInterface(C.py)}),Object.defineProperty(E,"zPosition",{get:ExpressionPropertyInterface(C.pz)}),Object.defineProperty(E,"anchorPoint",{get:ExpressionPropertyInterface(C.a)}),Object.defineProperty(E,"opacity",{get:ExpressionPropertyInterface(C.o)}),Object.defineProperty(E,"skew",{get:ExpressionPropertyInterface(C.sk)}),Object.defineProperty(E,"skewAxis",{get:ExpressionPropertyInterface(C.sa)}),Object.defineProperty(E,"orientation",{get:ExpressionPropertyInterface(C.or)}),E}}(),LayerExpressionInterface=function(){function C(J){var xe=new Matrix;if(J!==void 0){var Z=this._elem.finalTransform.mProp.getValueAtTime(J);Z.clone(xe)}else{var _e=this._elem.finalTransform.mProp;_e.applyToMatrix(xe)}return xe}function E(J,xe){var Z=this.getMatrix(xe);return Z.props[12]=0,Z.props[13]=0,Z.props[14]=0,this.applyPoint(Z,J)}function I(J,xe){var Z=this.getMatrix(xe);return this.applyPoint(Z,J)}function B(J,xe){var Z=this.getMatrix(xe);return Z.props[12]=0,Z.props[13]=0,Z.props[14]=0,this.invertPoint(Z,J)}function U(J,xe){var Z=this.getMatrix(xe);return this.invertPoint(Z,J)}function V(J,xe){if(this._elem.hierarchy&&this._elem.hierarchy.length){var Z,_e=this._elem.hierarchy.length;for(Z=0;Z<_e;Z+=1)this._elem.hierarchy[Z].finalTransform.mProp.applyToMatrix(J)}return J.applyToPointArray(xe[0],xe[1],xe[2]||0)}function X(J,xe){if(this._elem.hierarchy&&this._elem.hierarchy.length){var Z,_e=this._elem.hierarchy.length;for(Z=0;Z<_e;Z+=1)this._elem.hierarchy[Z].finalTransform.mProp.applyToMatrix(J)}return J.inversePoint(xe)}function Y(J){var xe=new Matrix;if(xe.reset(),this._elem.finalTransform.mProp.applyToMatrix(xe),this._elem.hierarchy&&this._elem.hierarchy.length){var Z,_e=this._elem.hierarchy.length;for(Z=0;Z<_e;Z+=1)this._elem.hierarchy[Z].finalTransform.mProp.applyToMatrix(xe);return xe.inversePoint(J)}return xe.inversePoint(J)}function K(){return[1,1,1,1]}return function(J){var xe;function Z(Ae){Se.mask=new MaskManagerInterface(Ae,J)}function _e(Ae){Se.effect=Ae}function Se(Ae){switch(Ae){case"ADBE Root Vectors Group":case"Contents":case 2:return Se.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return xe;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return Se.effect;case"ADBE Text Properties":return Se.textInterface;default:return null}}Se.getMatrix=C,Se.invertPoint=X,Se.applyPoint=V,Se.toWorld=I,Se.toWorldVec=E,Se.fromWorld=U,Se.fromWorldVec=B,Se.toComp=I,Se.fromComp=Y,Se.sampleImage=K,Se.sourceRectAtTime=J.sourceRectAtTime.bind(J),Se._elem=J,xe=TransformExpressionInterface(J.finalTransform.mProp);var Ee=getDescriptor(xe,"anchorPoint");return Object.defineProperties(Se,{hasParent:{get:function(){return J.hierarchy.length}},parent:{get:function(){return J.hierarchy[0].layerInterface}},rotation:getDescriptor(xe,"rotation"),scale:getDescriptor(xe,"scale"),position:getDescriptor(xe,"position"),opacity:getDescriptor(xe,"opacity"),anchorPoint:Ee,anchor_point:Ee,transform:{get:function(){return xe}},active:{get:function(){return J.isInRange}}}),Se.startTime=J.data.st,Se.index=J.data.ind,Se.source=J.data.refId,Se.height=J.data.ty===0?J.data.h:100,Se.width=J.data.ty===0?J.data.w:100,Se.inPoint=J.data.ip/J.comp.globalData.frameRate,Se.outPoint=J.data.op/J.comp.globalData.frameRate,Se._name=J.data.nm,Se.registerMaskInterface=Z,Se.registerEffectsInterface=_e,Se}}(),propertyGroupFactory=function(){return function(C,E){return function(I){return I=I===void 0?1:I,I<=0?C:E(I-1)}}}(),PropertyInterface=function(){return function(C,E){var I={_name:C};function B(U){return U=U===void 0?1:U,U<=0?I:E(U-1)}return B}}(),EffectsExpressionInterface=function(){var C={createEffectsInterface:E};function E(U,V){if(U.effectsManager){var X=[],Y=U.data.ef,K,J=U.effectsManager.effectElements.length;for(K=0;K<J;K+=1)X.push(I(Y[K],U.effectsManager.effectElements[K],V,U));var xe=U.data.ef||[],Z=function(Se){for(K=0,J=xe.length;K<J;){if(Se===xe[K].nm||Se===xe[K].mn||Se===xe[K].ix)return X[K];K+=1}return null};return Object.defineProperty(Z,"numProperties",{get:function(){return xe.length}}),Z}return null}function I(U,V,X,Y){function K(Se){for(var Ee=U.ef,Ae=0,Re=Ee.length;Ae<Re;){if(Se===Ee[Ae].nm||Se===Ee[Ae].mn||Se===Ee[Ae].ix)return Ee[Ae].ty===5?xe[Ae]:xe[Ae]();Ae+=1}throw new Error}var J=propertyGroupFactory(K,X),xe=[],Z,_e=U.ef.length;for(Z=0;Z<_e;Z+=1)U.ef[Z].ty===5?xe.push(I(U.ef[Z],V.effectElements[Z],V.effectElements[Z].propertyGroup,Y)):xe.push(B(V.effectElements[Z],U.ef[Z].ty,Y,J));return U.mn==="ADBE Color Control"&&Object.defineProperty(K,"color",{get:function(){return xe[0]()}}),Object.defineProperties(K,{numProperties:{get:function(){return U.np}},_name:{value:U.nm},propertyGroup:{value:J}}),K.enabled=U.en!==0,K.active=K.enabled,K}function B(U,V,X,Y){var K=ExpressionPropertyInterface(U.p);function J(){return V===10?X.comp.compInterface(U.p.v):K()}return U.p.setGroupProperty&&U.p.setGroupProperty(PropertyInterface("",Y)),J}return C}(),ShapePathInterface=function(){return function(E,I,B){var U=I.sh;function V(Y){return Y==="Shape"||Y==="shape"||Y==="Path"||Y==="path"||Y==="ADBE Vector Shape"||Y===2?V.path:null}var X=propertyGroupFactory(V,B);return U.setGroupProperty(PropertyInterface("Path",X)),Object.defineProperties(V,{path:{get:function(){return U.k&&U.getValue(),U}},shape:{get:function(){return U.k&&U.getValue(),U}},_name:{value:E.nm},ix:{value:E.ix},propertyIndex:{value:E.ix},mn:{value:E.mn},propertyGroup:{value:B}}),V}}(),ShapeExpressionInterface=function(){function C(Ee,Ae,Re){var Te=[],we,Pe=Ee?Ee.length:0;for(we=0;we<Pe;we+=1)Ee[we].ty==="gr"?Te.push(I(Ee[we],Ae[we],Re)):Ee[we].ty==="fl"?Te.push(B(Ee[we],Ae[we],Re)):Ee[we].ty==="st"?Te.push(X(Ee[we],Ae[we],Re)):Ee[we].ty==="tm"?Te.push(Y(Ee[we],Ae[we],Re)):Ee[we].ty==="tr"||(Ee[we].ty==="el"?Te.push(J(Ee[we],Ae[we],Re)):Ee[we].ty==="sr"?Te.push(xe(Ee[we],Ae[we],Re)):Ee[we].ty==="sh"?Te.push(ShapePathInterface(Ee[we],Ae[we],Re)):Ee[we].ty==="rc"?Te.push(Z(Ee[we],Ae[we],Re)):Ee[we].ty==="rd"?Te.push(_e(Ee[we],Ae[we],Re)):Ee[we].ty==="rp"?Te.push(Se(Ee[we],Ae[we],Re)):Ee[we].ty==="gf"?Te.push(U(Ee[we],Ae[we],Re)):Te.push(V(Ee[we],Ae[we])));return Te}function E(Ee,Ae,Re){var Te,we=function(Fe){for(var Oe=0,Le=Te.length;Oe<Le;){if(Te[Oe]._name===Fe||Te[Oe].mn===Fe||Te[Oe].propertyIndex===Fe||Te[Oe].ix===Fe||Te[Oe].ind===Fe)return Te[Oe];Oe+=1}return typeof Fe=="number"?Te[Fe-1]:null};we.propertyGroup=propertyGroupFactory(we,Re),Te=C(Ee.it,Ae.it,we.propertyGroup),we.numProperties=Te.length;var Pe=K(Ee.it[Ee.it.length-1],Ae.it[Ae.it.length-1],we.propertyGroup);return we.transform=Pe,we.propertyIndex=Ee.cix,we._name=Ee.nm,we}function I(Ee,Ae,Re){var Te=function(Fe){switch(Fe){case"ADBE Vectors Group":case"Contents":case 2:return Te.content;default:return Te.transform}};Te.propertyGroup=propertyGroupFactory(Te,Re);var we=E(Ee,Ae,Te.propertyGroup),Pe=K(Ee.it[Ee.it.length-1],Ae.it[Ae.it.length-1],Te.propertyGroup);return Te.content=we,Te.transform=Pe,Object.defineProperty(Te,"_name",{get:function(){return Ee.nm}}),Te.numProperties=Ee.np,Te.propertyIndex=Ee.ix,Te.nm=Ee.nm,Te.mn=Ee.mn,Te}function B(Ee,Ae,Re){function Te(we){return we==="Color"||we==="color"?Te.color:we==="Opacity"||we==="opacity"?Te.opacity:null}return Object.defineProperties(Te,{color:{get:ExpressionPropertyInterface(Ae.c)},opacity:{get:ExpressionPropertyInterface(Ae.o)},_name:{value:Ee.nm},mn:{value:Ee.mn}}),Ae.c.setGroupProperty(PropertyInterface("Color",Re)),Ae.o.setGroupProperty(PropertyInterface("Opacity",Re)),Te}function U(Ee,Ae,Re){function Te(we){return we==="Start Point"||we==="start point"?Te.startPoint:we==="End Point"||we==="end point"?Te.endPoint:we==="Opacity"||we==="opacity"?Te.opacity:null}return Object.defineProperties(Te,{startPoint:{get:ExpressionPropertyInterface(Ae.s)},endPoint:{get:ExpressionPropertyInterface(Ae.e)},opacity:{get:ExpressionPropertyInterface(Ae.o)},type:{get:function(){return"a"}},_name:{value:Ee.nm},mn:{value:Ee.mn}}),Ae.s.setGroupProperty(PropertyInterface("Start Point",Re)),Ae.e.setGroupProperty(PropertyInterface("End Point",Re)),Ae.o.setGroupProperty(PropertyInterface("Opacity",Re)),Te}function V(){function Ee(){return null}return Ee}function X(Ee,Ae,Re){var Te=propertyGroupFactory(Le,Re),we=propertyGroupFactory(Oe,Te);function Pe(De){Object.defineProperty(Oe,Ee.d[De].nm,{get:ExpressionPropertyInterface(Ae.d.dataProps[De].p)})}var Ie,Fe=Ee.d?Ee.d.length:0,Oe={};for(Ie=0;Ie<Fe;Ie+=1)Pe(Ie),Ae.d.dataProps[Ie].p.setGroupProperty(we);function Le(De){return De==="Color"||De==="color"?Le.color:De==="Opacity"||De==="opacity"?Le.opacity:De==="Stroke Width"||De==="stroke width"?Le.strokeWidth:null}return Object.defineProperties(Le,{color:{get:ExpressionPropertyInterface(Ae.c)},opacity:{get:ExpressionPropertyInterface(Ae.o)},strokeWidth:{get:ExpressionPropertyInterface(Ae.w)},dash:{get:function(){return Oe}},_name:{value:Ee.nm},mn:{value:Ee.mn}}),Ae.c.setGroupProperty(PropertyInterface("Color",Te)),Ae.o.setGroupProperty(PropertyInterface("Opacity",Te)),Ae.w.setGroupProperty(PropertyInterface("Stroke Width",Te)),Le}function Y(Ee,Ae,Re){function Te(Pe){return Pe===Ee.e.ix||Pe==="End"||Pe==="end"?Te.end:Pe===Ee.s.ix?Te.start:Pe===Ee.o.ix?Te.offset:null}var we=propertyGroupFactory(Te,Re);return Te.propertyIndex=Ee.ix,Ae.s.setGroupProperty(PropertyInterface("Start",we)),Ae.e.setGroupProperty(PropertyInterface("End",we)),Ae.o.setGroupProperty(PropertyInterface("Offset",we)),Te.propertyIndex=Ee.ix,Te.propertyGroup=Re,Object.defineProperties(Te,{start:{get:ExpressionPropertyInterface(Ae.s)},end:{get:ExpressionPropertyInterface(Ae.e)},offset:{get:ExpressionPropertyInterface(Ae.o)},_name:{value:Ee.nm}}),Te.mn=Ee.mn,Te}function K(Ee,Ae,Re){function Te(Pe){return Ee.a.ix===Pe||Pe==="Anchor Point"?Te.anchorPoint:Ee.o.ix===Pe||Pe==="Opacity"?Te.opacity:Ee.p.ix===Pe||Pe==="Position"?Te.position:Ee.r.ix===Pe||Pe==="Rotation"||Pe==="ADBE Vector Rotation"?Te.rotation:Ee.s.ix===Pe||Pe==="Scale"?Te.scale:Ee.sk&&Ee.sk.ix===Pe||Pe==="Skew"?Te.skew:Ee.sa&&Ee.sa.ix===Pe||Pe==="Skew Axis"?Te.skewAxis:null}var we=propertyGroupFactory(Te,Re);return Ae.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",we)),Ae.transform.mProps.p.setGroupProperty(PropertyInterface("Position",we)),Ae.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",we)),Ae.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",we)),Ae.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",we)),Ae.transform.mProps.sk&&(Ae.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",we)),Ae.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",we))),Ae.transform.op.setGroupProperty(PropertyInterface("Opacity",we)),Object.defineProperties(Te,{opacity:{get:ExpressionPropertyInterface(Ae.transform.mProps.o)},position:{get:ExpressionPropertyInterface(Ae.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(Ae.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(Ae.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(Ae.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(Ae.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(Ae.transform.mProps.sa)},_name:{value:Ee.nm}}),Te.ty="tr",Te.mn=Ee.mn,Te.propertyGroup=Re,Te}function J(Ee,Ae,Re){function Te(Ie){return Ee.p.ix===Ie?Te.position:Ee.s.ix===Ie?Te.size:null}var we=propertyGroupFactory(Te,Re);Te.propertyIndex=Ee.ix;var Pe=Ae.sh.ty==="tm"?Ae.sh.prop:Ae.sh;return Pe.s.setGroupProperty(PropertyInterface("Size",we)),Pe.p.setGroupProperty(PropertyInterface("Position",we)),Object.defineProperties(Te,{size:{get:ExpressionPropertyInterface(Pe.s)},position:{get:ExpressionPropertyInterface(Pe.p)},_name:{value:Ee.nm}}),Te.mn=Ee.mn,Te}function xe(Ee,Ae,Re){function Te(Ie){return Ee.p.ix===Ie?Te.position:Ee.r.ix===Ie?Te.rotation:Ee.pt.ix===Ie?Te.points:Ee.or.ix===Ie||Ie==="ADBE Vector Star Outer Radius"?Te.outerRadius:Ee.os.ix===Ie?Te.outerRoundness:Ee.ir&&(Ee.ir.ix===Ie||Ie==="ADBE Vector Star Inner Radius")?Te.innerRadius:Ee.is&&Ee.is.ix===Ie?Te.innerRoundness:null}var we=propertyGroupFactory(Te,Re),Pe=Ae.sh.ty==="tm"?Ae.sh.prop:Ae.sh;return Te.propertyIndex=Ee.ix,Pe.or.setGroupProperty(PropertyInterface("Outer Radius",we)),Pe.os.setGroupProperty(PropertyInterface("Outer Roundness",we)),Pe.pt.setGroupProperty(PropertyInterface("Points",we)),Pe.p.setGroupProperty(PropertyInterface("Position",we)),Pe.r.setGroupProperty(PropertyInterface("Rotation",we)),Ee.ir&&(Pe.ir.setGroupProperty(PropertyInterface("Inner Radius",we)),Pe.is.setGroupProperty(PropertyInterface("Inner Roundness",we))),Object.defineProperties(Te,{position:{get:ExpressionPropertyInterface(Pe.p)},rotation:{get:ExpressionPropertyInterface(Pe.r)},points:{get:ExpressionPropertyInterface(Pe.pt)},outerRadius:{get:ExpressionPropertyInterface(Pe.or)},outerRoundness:{get:ExpressionPropertyInterface(Pe.os)},innerRadius:{get:ExpressionPropertyInterface(Pe.ir)},innerRoundness:{get:ExpressionPropertyInterface(Pe.is)},_name:{value:Ee.nm}}),Te.mn=Ee.mn,Te}function Z(Ee,Ae,Re){function Te(Ie){return Ee.p.ix===Ie?Te.position:Ee.r.ix===Ie?Te.roundness:Ee.s.ix===Ie||Ie==="Size"||Ie==="ADBE Vector Rect Size"?Te.size:null}var we=propertyGroupFactory(Te,Re),Pe=Ae.sh.ty==="tm"?Ae.sh.prop:Ae.sh;return Te.propertyIndex=Ee.ix,Pe.p.setGroupProperty(PropertyInterface("Position",we)),Pe.s.setGroupProperty(PropertyInterface("Size",we)),Pe.r.setGroupProperty(PropertyInterface("Rotation",we)),Object.defineProperties(Te,{position:{get:ExpressionPropertyInterface(Pe.p)},roundness:{get:ExpressionPropertyInterface(Pe.r)},size:{get:ExpressionPropertyInterface(Pe.s)},_name:{value:Ee.nm}}),Te.mn=Ee.mn,Te}function _e(Ee,Ae,Re){function Te(Ie){return Ee.r.ix===Ie||Ie==="Round Corners 1"?Te.radius:null}var we=propertyGroupFactory(Te,Re),Pe=Ae;return Te.propertyIndex=Ee.ix,Pe.rd.setGroupProperty(PropertyInterface("Radius",we)),Object.defineProperties(Te,{radius:{get:ExpressionPropertyInterface(Pe.rd)},_name:{value:Ee.nm}}),Te.mn=Ee.mn,Te}function Se(Ee,Ae,Re){function Te(Ie){return Ee.c.ix===Ie||Ie==="Copies"?Te.copies:Ee.o.ix===Ie||Ie==="Offset"?Te.offset:null}var we=propertyGroupFactory(Te,Re),Pe=Ae;return Te.propertyIndex=Ee.ix,Pe.c.setGroupProperty(PropertyInterface("Copies",we)),Pe.o.setGroupProperty(PropertyInterface("Offset",we)),Object.defineProperties(Te,{copies:{get:ExpressionPropertyInterface(Pe.c)},offset:{get:ExpressionPropertyInterface(Pe.o)},_name:{value:Ee.nm}}),Te.mn=Ee.mn,Te}return function(Ee,Ae,Re){var Te;function we(Ie){if(typeof Ie=="number")return Ie=Ie===void 0?1:Ie,Ie===0?Re:Te[Ie-1];for(var Fe=0,Oe=Te.length;Fe<Oe;){if(Te[Fe]._name===Ie)return Te[Fe];Fe+=1}return null}function Pe(){return Re}return we.propertyGroup=propertyGroupFactory(we,Pe),Te=C(Ee,Ae,we.propertyGroup),we.numProperties=Te.length,we._name="Contents",we}}(),TextExpressionInterface=function(){return function(C){var E;function I(B){switch(B){case"ADBE Text Document":return I.sourceText;default:return null}}return Object.defineProperty(I,"sourceText",{get:function(){C.textProperty.getValue();var U=C.textProperty.currentData.t;return(!E||U!==E.value)&&(E=new String(U),E.value=U||new String(U),Object.defineProperty(E,"style",{get:function(){return{fillColor:C.textProperty.currentData.fc}}})),E}}),I}}();function _typeof(C){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(I){return typeof I}:_typeof=function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},_typeof(C)}var FootageInterface=function(){var C=function(B){var U="",V=B.getFootageData();function X(){return U="",V=B.getFootageData(),Y}function Y(K){if(V[K])return U=K,V=V[K],_typeof(V)==="object"?Y:V;var J=K.indexOf(U);if(J!==-1){var xe=parseInt(K.substr(J+U.length),10);return V=V[xe],_typeof(V)==="object"?Y:V}return""}return X},E=function(B){function U(V){return V==="Outline"?U.outlineInterface():null}return U._name="Outline",U.outlineInterface=C(B),U};return function(I){function B(U){return U==="Data"?B.dataInterface:null}return B._name="Data",B.dataInterface=E(I),B}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(C){return interfaces[C]||null}var expressionHelpers=function(){function C(X,Y,K){Y.x&&(K.k=!0,K.x=!0,K.initiateExpression=ExpressionManager.initiateExpression,K.effectsSequence.push(K.initiateExpression(X,Y,K).bind(K)))}function E(X){return X*=this.elem.globalData.frameRate,X-=this.offsetTime,X!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<X?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(X,this._cachingAtTime),this._cachingAtTime.lastFrame=X),this._cachingAtTime.value}function I(X){var Y=-.01,K=this.getValueAtTime(X),J=this.getValueAtTime(X+Y),xe=0;if(K.length){var Z;for(Z=0;Z<K.length;Z+=1)xe+=Math.pow(J[Z]-K[Z],2);xe=Math.sqrt(xe)*100}else xe=0;return xe}function B(X){if(this.vel!==void 0)return this.vel;var Y=-.001,K=this.getValueAtTime(X),J=this.getValueAtTime(X+Y),xe;if(K.length){xe=createTypedArray("float32",K.length);var Z;for(Z=0;Z<K.length;Z+=1)xe[Z]=(J[Z]-K[Z])/Y}else xe=(J-K)/Y;return xe}function U(){return this.pv}function V(X){this.propertyGroup=X}return{searchExpressions:C,getSpeedAtTime:I,getVelocityAtTime:B,getValueAtTime:E,getStaticValueAtTime:U,setGroupProperty:V}}();function addPropertyDecorator(){function C(_e,Se,Ee){if(!this.k||!this.keyframes)return this.pv;_e=_e?_e.toLowerCase():"";var Ae=this.comp.renderedFrame,Re=this.keyframes,Te=Re[Re.length-1].t;if(Ae<=Te)return this.pv;var we,Pe;Ee?(Se?we=Math.abs(Te-this.elem.comp.globalData.frameRate*Se):we=Math.max(0,Te-this.elem.data.ip),Pe=Te-we):((!Se||Se>Re.length-1)&&(Se=Re.length-1),Pe=Re[Re.length-1-Se].t,we=Te-Pe);var Ie,Fe,Oe;if(_e==="pingpong"){var Le=Math.floor((Ae-Pe)/we);if(Le%2!==0)return this.getValueAtTime((we-(Ae-Pe)%we+Pe)/this.comp.globalData.frameRate,0)}else if(_e==="offset"){var De=this.getValueAtTime(Pe/this.comp.globalData.frameRate,0),Ve=this.getValueAtTime(Te/this.comp.globalData.frameRate,0),Xe=this.getValueAtTime(((Ae-Pe)%we+Pe)/this.comp.globalData.frameRate,0),Ue=Math.floor((Ae-Pe)/we);if(this.pv.length){for(Oe=new Array(De.length),Fe=Oe.length,Ie=0;Ie<Fe;Ie+=1)Oe[Ie]=(Ve[Ie]-De[Ie])*Ue+Xe[Ie];return Oe}return(Ve-De)*Ue+Xe}else if(_e==="continue"){var We=this.getValueAtTime(Te/this.comp.globalData.frameRate,0),je=this.getValueAtTime((Te-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(Oe=new Array(We.length),Fe=Oe.length,Ie=0;Ie<Fe;Ie+=1)Oe[Ie]=We[Ie]+(We[Ie]-je[Ie])*((Ae-Te)/this.comp.globalData.frameRate)/5e-4;return Oe}return We+(We-je)*((Ae-Te)/.001)}return this.getValueAtTime(((Ae-Pe)%we+Pe)/this.comp.globalData.frameRate,0)}function E(_e,Se,Ee){if(!this.k)return this.pv;_e=_e?_e.toLowerCase():"";var Ae=this.comp.renderedFrame,Re=this.keyframes,Te=Re[0].t;if(Ae>=Te)return this.pv;var we,Pe;Ee?(Se?we=Math.abs(this.elem.comp.globalData.frameRate*Se):we=Math.max(0,this.elem.data.op-Te),Pe=Te+we):((!Se||Se>Re.length-1)&&(Se=Re.length-1),Pe=Re[Se].t,we=Pe-Te);var Ie,Fe,Oe;if(_e==="pingpong"){var Le=Math.floor((Te-Ae)/we);if(Le%2===0)return this.getValueAtTime(((Te-Ae)%we+Te)/this.comp.globalData.frameRate,0)}else if(_e==="offset"){var De=this.getValueAtTime(Te/this.comp.globalData.frameRate,0),Ve=this.getValueAtTime(Pe/this.comp.globalData.frameRate,0),Xe=this.getValueAtTime((we-(Te-Ae)%we+Te)/this.comp.globalData.frameRate,0),Ue=Math.floor((Te-Ae)/we)+1;if(this.pv.length){for(Oe=new Array(De.length),Fe=Oe.length,Ie=0;Ie<Fe;Ie+=1)Oe[Ie]=Xe[Ie]-(Ve[Ie]-De[Ie])*Ue;return Oe}return Xe-(Ve-De)*Ue}else if(_e==="continue"){var We=this.getValueAtTime(Te/this.comp.globalData.frameRate,0),je=this.getValueAtTime((Te+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(Oe=new Array(We.length),Fe=Oe.length,Ie=0;Ie<Fe;Ie+=1)Oe[Ie]=We[Ie]+(We[Ie]-je[Ie])*(Te-Ae)/.001;return Oe}return We+(We-je)*(Te-Ae)/.001}return this.getValueAtTime((we-((Te-Ae)%we+Te))/this.comp.globalData.frameRate,0)}function I(_e,Se){if(!this.k)return this.pv;if(_e=(_e||.4)*.5,Se=Math.floor(Se||5),Se<=1)return this.pv;var Ee=this.comp.renderedFrame/this.comp.globalData.frameRate,Ae=Ee-_e,Re=Ee+_e,Te=Se>1?(Re-Ae)/(Se-1):1,we=0,Pe=0,Ie;this.pv.length?Ie=createTypedArray("float32",this.pv.length):Ie=0;for(var Fe;we<Se;){if(Fe=this.getValueAtTime(Ae+we*Te),this.pv.length)for(Pe=0;Pe<this.pv.length;Pe+=1)Ie[Pe]+=Fe[Pe];else Ie+=Fe;we+=1}if(this.pv.length)for(Pe=0;Pe<this.pv.length;Pe+=1)Ie[Pe]/=Se;else Ie/=Se;return Ie}function B(_e){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var Se=this._transformCachingAtTime.v;if(Se.cloneFromProps(this.pre.props),this.appliedTransformations<1){var Ee=this.a.getValueAtTime(_e);Se.translate(-Ee[0]*this.a.mult,-Ee[1]*this.a.mult,Ee[2]*this.a.mult)}if(this.appliedTransformations<2){var Ae=this.s.getValueAtTime(_e);Se.scale(Ae[0]*this.s.mult,Ae[1]*this.s.mult,Ae[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var Re=this.sk.getValueAtTime(_e),Te=this.sa.getValueAtTime(_e);Se.skewFromAxis(-Re*this.sk.mult,Te*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var we=this.r.getValueAtTime(_e);Se.rotate(-we*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var Pe=this.rz.getValueAtTime(_e),Ie=this.ry.getValueAtTime(_e),Fe=this.rx.getValueAtTime(_e),Oe=this.or.getValueAtTime(_e);Se.rotateZ(-Pe*this.rz.mult).rotateY(Ie*this.ry.mult).rotateX(Fe*this.rx.mult).rotateZ(-Oe[2]*this.or.mult).rotateY(Oe[1]*this.or.mult).rotateX(Oe[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var Le=this.px.getValueAtTime(_e),De=this.py.getValueAtTime(_e);if(this.data.p.z){var Ve=this.pz.getValueAtTime(_e);Se.translate(Le*this.px.mult,De*this.py.mult,-Ve*this.pz.mult)}else Se.translate(Le*this.px.mult,De*this.py.mult,0)}else{var Xe=this.p.getValueAtTime(_e);Se.translate(Xe[0]*this.p.mult,Xe[1]*this.p.mult,-Xe[2]*this.p.mult)}return Se}function U(){return this.v.clone(new Matrix)}var V=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(_e,Se,Ee){var Ae=V(_e,Se,Ee);return Ae.dynamicProperties.length?Ae.getValueAtTime=B.bind(Ae):Ae.getValueAtTime=U.bind(Ae),Ae.setGroupProperty=expressionHelpers.setGroupProperty,Ae};var X=PropertyFactory.getProp;PropertyFactory.getProp=function(_e,Se,Ee,Ae,Re){var Te=X(_e,Se,Ee,Ae,Re);Te.kf?Te.getValueAtTime=expressionHelpers.getValueAtTime.bind(Te):Te.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(Te),Te.setGroupProperty=expressionHelpers.setGroupProperty,Te.loopOut=C,Te.loopIn=E,Te.smooth=I,Te.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(Te),Te.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(Te),Te.numKeys=Se.a===1?Se.k.length:0,Te.propertyIndex=Se.ix;var we=0;return Ee!==0&&(we=createTypedArray("float32",Se.a===1?Se.k[0].s.length:Se.k.length)),Te._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:we},expressionHelpers.searchExpressions(_e,Se,Te),Te.k&&Re.addDynamicProperty(Te),Te};function Y(_e){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),_e*=this.elem.globalData.frameRate,_e-=this.offsetTime,_e!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<_e?this._caching.lastIndex:0,this._cachingAtTime.lastTime=_e,this.interpolateShape(_e,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var K=ShapePropertyFactory.getConstructorFunction(),J=ShapePropertyFactory.getKeyframedConstructorFunction();function xe(){}xe.prototype={vertices:function(Se,Ee){this.k&&this.getValue();var Ae=this.v;Ee!==void 0&&(Ae=this.getValueAtTime(Ee,0));var Re,Te=Ae._length,we=Ae[Se],Pe=Ae.v,Ie=createSizedArray(Te);for(Re=0;Re<Te;Re+=1)Se==="i"||Se==="o"?Ie[Re]=[we[Re][0]-Pe[Re][0],we[Re][1]-Pe[Re][1]]:Ie[Re]=[we[Re][0],we[Re][1]];return Ie},points:function(Se){return this.vertices("v",Se)},inTangents:function(Se){return this.vertices("i",Se)},outTangents:function(Se){return this.vertices("o",Se)},isClosed:function(){return this.v.c},pointOnPath:function(Se,Ee){var Ae=this.v;Ee!==void 0&&(Ae=this.getValueAtTime(Ee,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(Ae));for(var Re=this._segmentsLength,Te=Re.lengths,we=Re.totalLength*Se,Pe=0,Ie=Te.length,Fe=0,Oe;Pe<Ie;){if(Fe+Te[Pe].addedLength>we){var Le=Pe,De=Ae.c&&Pe===Ie-1?0:Pe+1,Ve=(we-Fe)/Te[Pe].addedLength;Oe=bez.getPointInSegment(Ae.v[Le],Ae.v[De],Ae.o[Le],Ae.i[De],Ve,Te[Pe]);break}else Fe+=Te[Pe].addedLength;Pe+=1}return Oe||(Oe=Ae.c?[Ae.v[0][0],Ae.v[0][1]]:[Ae.v[Ae._length-1][0],Ae.v[Ae._length-1][1]]),Oe},vectorOnPath:function(Se,Ee,Ae){Se==1?Se=this.v.c:Se==0&&(Se=.999);var Re=this.pointOnPath(Se,Ee),Te=this.pointOnPath(Se+.001,Ee),we=Te[0]-Re[0],Pe=Te[1]-Re[1],Ie=Math.sqrt(Math.pow(we,2)+Math.pow(Pe,2));if(Ie===0)return[0,0];var Fe=Ae==="tangent"?[we/Ie,Pe/Ie]:[-Pe/Ie,we/Ie];return Fe},tangentOnPath:function(Se,Ee){return this.vectorOnPath(Se,Ee,"tangent")},normalOnPath:function(Se,Ee){return this.vectorOnPath(Se,Ee,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([xe],K),extendPrototype([xe],J),J.prototype.getValueAtTime=Y,J.prototype.initiateExpression=ExpressionManager.initiateExpression;var Z=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(_e,Se,Ee,Ae,Re){var Te=Z(_e,Se,Ee,Ae,Re);return Te.propertyIndex=Se.ix,Te.lock=!1,Ee===3?expressionHelpers.searchExpressions(_e,Se.pt,Te):Ee===4&&expressionHelpers.searchExpressions(_e,Se.ks,Te),Te.k&&_e.addDynamicProperty(Te),Te}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function C(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(E,I){var B=this.calculateExpression(I);if(E.t!==B){var U={};return this.copyData(U,E),U.t=B.toString(),U.__complete=!1,U}return E},TextProperty.prototype.searchProperty=function(){var E=this.searchKeyframes(),I=this.searchExpressions();return this.kf=E||I,this.kf},TextProperty.prototype.searchExpressions=C}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function C(E,I){var B=createNS("feMerge");B.setAttribute("result",E);var U,V;for(V=0;V<I.length;V+=1)U=createNS("feMergeNode"),U.setAttribute("in",I[V]),B.appendChild(U),B.appendChild(U);return B}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(C,E,I,B,U){this.filterManager=E;var V=createNS("feColorMatrix");V.setAttribute("type","matrix"),V.setAttribute("color-interpolation-filters","linearRGB"),V.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=V,V.setAttribute("result",B+"_tint_1"),C.appendChild(V),V=createNS("feColorMatrix"),V.setAttribute("type","matrix"),V.setAttribute("color-interpolation-filters","sRGB"),V.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),V.setAttribute("result",B+"_tint_2"),C.appendChild(V),this.matrixFilter=V;var X=this.createMergeNode(B,[U,B+"_tint_1",B+"_tint_2"]);C.appendChild(X)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(C){if(C||this.filterManager._mdf){var E=this.filterManager.effectElements[0].p.v,I=this.filterManager.effectElements[1].p.v,B=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+B+" 0"),this.matrixFilter.setAttribute("values",I[0]-E[0]+" 0 0 0 "+E[0]+" "+(I[1]-E[1])+" 0 0 0 "+E[1]+" "+(I[2]-E[2])+" 0 0 0 "+E[2]+" 0 0 0 1 0")}};function SVGFillFilter(C,E,I,B){this.filterManager=E;var U=createNS("feColorMatrix");U.setAttribute("type","matrix"),U.setAttribute("color-interpolation-filters","sRGB"),U.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),U.setAttribute("result",B),C.appendChild(U),this.matrixFilter=U}SVGFillFilter.prototype.renderFrame=function(C){if(C||this.filterManager._mdf){var E=this.filterManager.effectElements[2].p.v,I=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+E[0]+" 0 0 0 0 "+E[1]+" 0 0 0 0 "+E[2]+" 0 0 0 "+I+" 0")}};function SVGStrokeEffect(C,E,I){this.initialized=!1,this.filterManager=E,this.elem=I,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var C=this.elem.layerElement.children||this.elem.layerElement.childNodes,E,I,B,U;for(this.filterManager.effectElements[1].p.v===1?(U=this.elem.maskManager.masksProperties.length,B=0):(B=this.filterManager.effectElements[0].p.v-1,U=B+1),I=createNS("g"),I.setAttribute("fill","none"),I.setAttribute("stroke-linecap","round"),I.setAttribute("stroke-dashoffset",1),B;B<U;B+=1)E=createNS("path"),I.appendChild(E),this.paths.push({p:E,m:B});if(this.filterManager.effectElements[10].p.v===3){var V=createNS("mask"),X=createElementID();V.setAttribute("id",X),V.setAttribute("mask-type","alpha"),V.appendChild(I),this.elem.globalData.defs.appendChild(V);var Y=createNS("g");for(Y.setAttribute("mask","url("+getLocationHref()+"#"+X+")");C[0];)Y.appendChild(C[0]);this.elem.layerElement.appendChild(Y),this.masker=V,I.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(C=this.elem.layerElement.children||this.elem.layerElement.childNodes;C.length;)this.elem.layerElement.removeChild(C[0]);this.elem.layerElement.appendChild(I),this.elem.layerElement.removeAttribute("mask"),I.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=I},SVGStrokeEffect.prototype.renderFrame=function(C){this.initialized||this.initialize();var E,I=this.paths.length,B,U;for(E=0;E<I;E+=1)if(this.paths[E].m!==-1&&(B=this.elem.maskManager.viewData[this.paths[E].m],U=this.paths[E].p,(C||this.filterManager._mdf||B.prop._mdf)&&U.setAttribute("d",B.lastPath),C||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||B.prop._mdf)){var V;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var X=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,Y=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,K=U.getTotalLength();V="0 0 0 "+K*X+" ";var J=K*(Y-X),xe=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,Z=Math.floor(J/xe),_e;for(_e=0;_e<Z;_e+=1)V+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";V+="0 "+K*10+" 0 0"}else V="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;U.setAttribute("stroke-dasharray",V)}if((C||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(C||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(C||this.filterManager.effectElements[3].p._mdf)){var Se=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(Se[0]*255)+","+bmFloor(Se[1]*255)+","+bmFloor(Se[2]*255)+")")}};function SVGTritoneFilter(C,E,I,B){this.filterManager=E;var U=createNS("feColorMatrix");U.setAttribute("type","matrix"),U.setAttribute("color-interpolation-filters","linearRGB"),U.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),C.appendChild(U);var V=createNS("feComponentTransfer");V.setAttribute("color-interpolation-filters","sRGB"),V.setAttribute("result",B),this.matrixFilter=V;var X=createNS("feFuncR");X.setAttribute("type","table"),V.appendChild(X),this.feFuncR=X;var Y=createNS("feFuncG");Y.setAttribute("type","table"),V.appendChild(Y),this.feFuncG=Y;var K=createNS("feFuncB");K.setAttribute("type","table"),V.appendChild(K),this.feFuncB=K,C.appendChild(V)}SVGTritoneFilter.prototype.renderFrame=function(C){if(C||this.filterManager._mdf){var E=this.filterManager.effectElements[0].p.v,I=this.filterManager.effectElements[1].p.v,B=this.filterManager.effectElements[2].p.v,U=B[0]+" "+I[0]+" "+E[0],V=B[1]+" "+I[1]+" "+E[1],X=B[2]+" "+I[2]+" "+E[2];this.feFuncR.setAttribute("tableValues",U),this.feFuncG.setAttribute("tableValues",V),this.feFuncB.setAttribute("tableValues",X)}};function SVGProLevelsFilter(C,E,I,B){this.filterManager=E;var U=this.filterManager.effectElements,V=createNS("feComponentTransfer");(U[10].p.k||U[10].p.v!==0||U[11].p.k||U[11].p.v!==1||U[12].p.k||U[12].p.v!==1||U[13].p.k||U[13].p.v!==0||U[14].p.k||U[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",V)),(U[17].p.k||U[17].p.v!==0||U[18].p.k||U[18].p.v!==1||U[19].p.k||U[19].p.v!==1||U[20].p.k||U[20].p.v!==0||U[21].p.k||U[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",V)),(U[24].p.k||U[24].p.v!==0||U[25].p.k||U[25].p.v!==1||U[26].p.k||U[26].p.v!==1||U[27].p.k||U[27].p.v!==0||U[28].p.k||U[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",V)),(U[31].p.k||U[31].p.v!==0||U[32].p.k||U[32].p.v!==1||U[33].p.k||U[33].p.v!==1||U[34].p.k||U[34].p.v!==0||U[35].p.k||U[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",V)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(V.setAttribute("color-interpolation-filters","sRGB"),C.appendChild(V)),(U[3].p.k||U[3].p.v!==0||U[4].p.k||U[4].p.v!==1||U[5].p.k||U[5].p.v!==1||U[6].p.k||U[6].p.v!==0||U[7].p.k||U[7].p.v!==1)&&(V=createNS("feComponentTransfer"),V.setAttribute("color-interpolation-filters","sRGB"),V.setAttribute("result",B),C.appendChild(V),this.feFuncRComposed=this.createFeFunc("feFuncR",V),this.feFuncGComposed=this.createFeFunc("feFuncG",V),this.feFuncBComposed=this.createFeFunc("feFuncB",V))}SVGProLevelsFilter.prototype.createFeFunc=function(C,E){var I=createNS(C);return I.setAttribute("type","table"),E.appendChild(I),I},SVGProLevelsFilter.prototype.getTableValue=function(C,E,I,B,U){for(var V=0,X=256,Y,K=Math.min(C,E),J=Math.max(C,E),xe=Array.call(null,{length:X}),Z,_e=0,Se=U-B,Ee=E-C;V<=256;)Y=V/256,Y<=K?Z=Ee<0?U:B:Y>=J?Z=Ee<0?B:U:Z=B+Se*Math.pow((Y-C)/Ee,1/I),xe[_e]=Z,_e+=1,V+=256/(X-1);return xe.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(C){if(C||this.filterManager._mdf){var E,I=this.filterManager.effectElements;this.feFuncRComposed&&(C||I[3].p._mdf||I[4].p._mdf||I[5].p._mdf||I[6].p._mdf||I[7].p._mdf)&&(E=this.getTableValue(I[3].p.v,I[4].p.v,I[5].p.v,I[6].p.v,I[7].p.v),this.feFuncRComposed.setAttribute("tableValues",E),this.feFuncGComposed.setAttribute("tableValues",E),this.feFuncBComposed.setAttribute("tableValues",E)),this.feFuncR&&(C||I[10].p._mdf||I[11].p._mdf||I[12].p._mdf||I[13].p._mdf||I[14].p._mdf)&&(E=this.getTableValue(I[10].p.v,I[11].p.v,I[12].p.v,I[13].p.v,I[14].p.v),this.feFuncR.setAttribute("tableValues",E)),this.feFuncG&&(C||I[17].p._mdf||I[18].p._mdf||I[19].p._mdf||I[20].p._mdf||I[21].p._mdf)&&(E=this.getTableValue(I[17].p.v,I[18].p.v,I[19].p.v,I[20].p.v,I[21].p.v),this.feFuncG.setAttribute("tableValues",E)),this.feFuncB&&(C||I[24].p._mdf||I[25].p._mdf||I[26].p._mdf||I[27].p._mdf||I[28].p._mdf)&&(E=this.getTableValue(I[24].p.v,I[25].p.v,I[26].p.v,I[27].p.v,I[28].p.v),this.feFuncB.setAttribute("tableValues",E)),this.feFuncA&&(C||I[31].p._mdf||I[32].p._mdf||I[33].p._mdf||I[34].p._mdf||I[35].p._mdf)&&(E=this.getTableValue(I[31].p.v,I[32].p.v,I[33].p.v,I[34].p.v,I[35].p.v),this.feFuncA.setAttribute("tableValues",E))}};function SVGDropShadowEffect(C,E,I,B,U){var V=E.container.globalData.renderConfig.filterSize,X=E.data.fs||V;C.setAttribute("x",X.x||V.x),C.setAttribute("y",X.y||V.y),C.setAttribute("width",X.width||V.width),C.setAttribute("height",X.height||V.height),this.filterManager=E;var Y=createNS("feGaussianBlur");Y.setAttribute("in","SourceAlpha"),Y.setAttribute("result",B+"_drop_shadow_1"),Y.setAttribute("stdDeviation","0"),this.feGaussianBlur=Y,C.appendChild(Y);var K=createNS("feOffset");K.setAttribute("dx","25"),K.setAttribute("dy","0"),K.setAttribute("in",B+"_drop_shadow_1"),K.setAttribute("result",B+"_drop_shadow_2"),this.feOffset=K,C.appendChild(K);var J=createNS("feFlood");J.setAttribute("flood-color","#00ff00"),J.setAttribute("flood-opacity","1"),J.setAttribute("result",B+"_drop_shadow_3"),this.feFlood=J,C.appendChild(J);var xe=createNS("feComposite");xe.setAttribute("in",B+"_drop_shadow_3"),xe.setAttribute("in2",B+"_drop_shadow_2"),xe.setAttribute("operator","in"),xe.setAttribute("result",B+"_drop_shadow_4"),C.appendChild(xe);var Z=this.createMergeNode(B,[B+"_drop_shadow_4",U]);C.appendChild(Z)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(C){if(C||this.filterManager._mdf){if((C||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),C||this.filterManager.effectElements[0].p._mdf){var E=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(E[0]*255),Math.round(E[1]*255),Math.round(E[2]*255)))}if((C||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),C||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var I=this.filterManager.effectElements[3].p.v,B=(this.filterManager.effectElements[2].p.v-90)*degToRads,U=I*Math.cos(B),V=I*Math.sin(B);this.feOffset.setAttribute("dx",U),this.feOffset.setAttribute("dy",V)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(C,E,I){this.initialized=!1,this.filterManager=E,this.filterElem=C,this.elem=I,I.matteElement=createNS("g"),I.matteElement.appendChild(I.layerElement),I.matteElement.appendChild(I.transformedElement),I.baseElement=I.matteElement}SVGMatte3Effect.prototype.findSymbol=function(C){for(var E=0,I=_svgMatteSymbols.length;E<I;){if(_svgMatteSymbols[E]===C)return _svgMatteSymbols[E];E+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(C,E){var I=C.layerElement.parentNode;if(I){for(var B=I.children,U=0,V=B.length;U<V&&B[U]!==C.layerElement;)U+=1;var X;U<=V-2&&(X=B[U+1]);var Y=createNS("use");Y.setAttribute("href","#"+E),X?I.insertBefore(Y,X):I.appendChild(Y)}},SVGMatte3Effect.prototype.setElementAsMask=function(C,E){if(!this.findSymbol(E)){var I=createElementID(),B=createNS("mask");B.setAttribute("id",E.layerId),B.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(E);var U=C.globalData.defs;U.appendChild(B);var V=createNS("symbol");V.setAttribute("id",I),this.replaceInParent(E,I),V.appendChild(E.layerElement),U.appendChild(V);var X=createNS("use");X.setAttribute("href","#"+I),B.appendChild(X),E.data.hd=!1,E.show()}C.setMatte(E.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var C=this.filterManager.effectElements[0].p.v,E=this.elem.comp.elements,I=0,B=E.length;I<B;)E[I]&&E[I].data.ind===C&&this.setElementAsMask(this.elem,E[I]),I+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(C,E,I,B){C.setAttribute("x","-100%"),C.setAttribute("y","-100%"),C.setAttribute("width","300%"),C.setAttribute("height","300%"),this.filterManager=E;var U=createNS("feGaussianBlur");U.setAttribute("result",B),C.appendChild(U),this.feGaussianBlur=U}SVGGaussianBlurEffect.prototype.renderFrame=function(C){if(C||this.filterManager._mdf){var E=.3,I=this.filterManager.effectElements[0].p.v*E,B=this.filterManager.effectElements[1].p.v,U=B==3?0:I,V=B==2?0:I;this.feGaussianBlur.setAttribute("stdDeviation",U+" "+V);var X=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",X)}};function TransformEffect(){}TransformEffect.prototype.init=function(C){this.effectsManager=C,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(C){if(this._opMdf=!1,this._mdf=!1,C||this.effectsManager._mdf){var E=this.effectsManager.effectElements,I=E[0].p.v,B=E[1].p.v,U=E[2].p.v===1,V=E[3].p.v,X=U?V:E[4].p.v,Y=E[5].p.v,K=E[6].p.v,J=E[7].p.v;this.matrix.reset(),this.matrix.translate(-I[0],-I[1],I[2]),this.matrix.scale(X*.01,V*.01,1),this.matrix.rotate(-J*degToRads),this.matrix.skewFromAxis(-Y*degToRads,(K+90)*degToRads),this.matrix.translate(B[0],B[1],0),this._mdf=!0,this.opacity!==E[8].p.v&&(this.opacity=E[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(C,E){this.init(E)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(C){this.init(C)}return extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie})})(lottie$1,lottie$1.exports);var lottieExports=lottie$1.exports;const lottie=getDefaultExportFromCjs(lottieExports),initialState={isPlaying:!1,progress:0,speed:1,isMuted:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1,totalFrames:0,totalDuration:0},PixiLottieSprite=React__namespace.forwardRef((C,E)=>{const[I,B]=React__namespace.useState(0),[U,V]=React__namespace.useState(!1),X=React__namespace.useRef(null),Y=React__namespace.useRef(null),K=React__namespace.useRef(),J=React__namespace.useRef(),xe=React.useRef(),Z=React.useRef(initialState),_e=React__namespace.useRef(),Se=React.useRef(document.body),{uniqueId:Ee,src:Ae,startAt:Re,endAt:Te,frameStartAt:we,frameEndAt:Pe,visible:Ie,disabled:Fe,loop:Oe=!1,transformation:{x:Le,y:De,width:Ve,height:Xe,colorCorrection:Ue={}},pointerdown:We=()=>{},pointerout:je=()=>{},pointerover:ze=()=>{}}=C,{tl:He}=React.useContext(GsapPixieContext);useCustomEventListener(Events.PAUSE,()=>{J.current&&J.current.pause()});const{onPointerDown:$e,onPointerOut:Ne,onPointerOver:Me}=useDebouncedPointerEvents(ze,We,je,1),{blurRadius:ke=0,vignette:Ge=0,noise:Be=0}=Ue,{temperatureFilter:qe,sharpnessFilter:Ke,hueFilter:Ye,blurFilter:et,adjustmentFilter:Qe,vignetteFilter:it,noiseFilter:nt}=withFiltersHook(Ue);React__namespace.useLayoutEffect(()=>{K.current=document.createElement("canvas"),K.current.setAttribute("id","lottieContainersvg"),K.current.setAttribute("id",`${Ee}lottieContainer`),K.current.setAttribute("width",`${Ve}`),K.current.setAttribute("height",`${Xe}`);const Ze=Se.current;return Ze.appendChild(K.current),()=>{K.current&&Ze.removeChild(K.current)}},[]),React__namespace.useEffect(()=>{async function Ze(){J.current&&J.current.destroy(),K.current.removeAttribute("style"),J.current=lottie.loadAnimation({container:K.current||document.getElementById("lottieroot"),renderer:"canvas",loop:!1,autoplay:!1,path:Ae,rendererSettings:{context:K.current.getContext("2d"),clearCanvas:!0,progressiveLoad:!1,preserveAspectRatio:"xMaxYMax meet"}}),J.current.addEventListener("data_ready",()=>{if(K.current&&K.current.setAttribute("style","display:none"),J.current&&J.current.renderer.canvasContext){const Je=J.current.totalFrames;Z.current.totalFrames=Je;const st=J.current.getDuration();Z.current.totalDuration=st;const rt=J.current.renderer.canvasContext.canvas,tt=PIXI__namespace.Texture.from(rt);_e.current=tt,V(!0),B(st)}}),J.current.addEventListener("loaded_images",()=>{}),J.current.addEventListener("complete",()=>{}),J.current.addEventListener("loopComplete",()=>{}),J.current.addEventListener("enterFrame",()=>{}),J.current.addEventListener("config_ready",()=>{console.log("config_ready",J.current)}),J.current.addEventListener("error",Je=>{console.log("error",Je)})}return Ze(),()=>{J.current&&(J.current.removeEventListener("complete"),J.current.removeEventListener("config_ready"),J.current.removeEventListener("enterFrame"),J.current.removeEventListener("loaded_images"),J.current.removeEventListener("loopComplete"),J.current.removeEventListener("data_ready"),J.current.removeEventListener("error"),J.current.destroy())}},[Ae,Ee]),React__namespace.useEffect(()=>(_e.current&&_e.current.update(),()=>{}),[U]);const ot=Ze=>{if(J.current&&X.current&&xe.current){const st=Ze(xe.current.time())/xe.current.duration()*Z.current.totalFrames,rt=Z.current.totalFrames;let tt=st;tt=Math.round(Math.floor(tt)),tt>=rt?(J.current.goToAndStop(0,!0),_e.current&&_e.current.update(),Z.current.isPlaying=!1):(J.current.goToAndStop(tt,!0),_e.current&&_e.current.update(),Z.current.isPlaying=!0)}};return React__namespace.useEffect(()=>{let Ze=gsap$2.context(()=>{});if(Y.current&&He.current&&I>0){const Je=Number(Te)-Number(Re);xe.current&&(xe.current.kill(),He.current.remove(xe.current)),Ze=gsap$2.context(()=>{const st=gsap$2.utils.wrap(Re,I);xe.current=gsap$2.timeline({}).to(Y.current,{duration:Number(Je),onUpdate:ot,onUpdateParams:[st,we,Pe]},we),He.current.add(xe.current,Re)})}return()=>{xe.current&&(xe.current.kill(),gsap$2.killTweensOf(xe.current)),Ze.revert()}},[Re,Te,we,Pe,Ee,I,Oe]),jsxRuntimeExports.jsx(AbstractContainer,{...C,ref:E,ignoreTlForVideo:!0,pointerdown:$e,pointerover:Me,pointerout:Ne,children:jsxRuntimeExports.jsx(react.Container,{ref:Y,children:_e.current&&jsxRuntimeExports.jsx(react.Sprite,{texture:_e.current,width:Ve,height:Xe,anchor:.5,x:Le,y:De,ref:X,alpha:Ie?1:0,...!Fe&&Ie&&{interactive:!0,pointerdown:We},filters:[qe,Ke,Ye,Qe,...ke>0?[et]:[],...Ge>0?[it]:[],...Be>0?[nt]:[]]})})})});PixiLottieSprite.whyDidYouRender={logOnDifferentValues:!0,customName:"PixiLottieSprite"};var BlendModes=(C=>(C[C.NORMAL=0]="NORMAL",C[C.ADD=1]="ADD",C[C.MULTIPLY=2]="MULTIPLY",C[C.SCREEN=3]="SCREEN",C[C.OVERLAY=4]="OVERLAY",C[C.DARKEN=5]="DARKEN",C[C.LIGHTEN=6]="LIGHTEN",C[C.COLOR_DODGE=7]="COLOR_DODGE",C[C.COLOR_BURN=8]="COLOR_BURN",C[C.HARD_LIGHT=9]="HARD_LIGHT",C[C.SOFT_LIGHT=10]="SOFT_LIGHT",C[C.DIFFERENCE=11]="DIFFERENCE",C[C.EXCLUSION=12]="EXCLUSION",C[C.HUE=13]="HUE",C[C.SATURATION=14]="SATURATION",C[C.COLOR=15]="COLOR",C[C.LUMINOSITY=16]="LUMINOSITY",C))(BlendModes||{});exports.Animations=Animations,exports.BlendModes=BlendModes,exports.Events=Events,exports.GsapPixieContext=GsapPixieContext,exports.GsapPixieContextProvider=GsapPixieContextProvider,exports.PixiAnimatedSprite=PixiAnimatedSprite,exports.PixiAudioSprite=PixiAudioSprite,exports.PixiGifSprite=PixiGifSprite,exports.PixiImageSprite=PixiImageSprite,exports.PixiLottieSprite=PixiLottieSprite,exports.PixiRemotionSprite=PixiRemotionSprite,exports.PixiSequence=PixiSequence,exports.PixiSequenceWrapper=PixiSequenceWrapper,exports.PixiSvgPathSprite=PixiSvgPathSprite,exports.PixiTextSprite=PixiTextSprite,exports.PixiVideoCanvasSyncSprite=PixiVideoCanvasSyncSprite,exports.PixiVideoSprite=PixiVideoSprite,exports.emitCustomEvent=emitCustomEvent,exports.newCustomEventEmitter=newCustomEventEmitter,exports.useCustomEventListener=useCustomEventListener,exports.useGsapEffect=useGsapEffect,Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"})});
2005
+ */var Matrix=function(){var C=Math.cos,E=Math.sin,I=Math.tan,B=Math.round;function U(){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 V(Fe){if(Fe===0)return this;var ke=C(Fe),Ge=E(Fe);return this._t(ke,-Ge,0,0,Ge,ke,0,0,0,0,1,0,0,0,0,1)}function X(Fe){if(Fe===0)return this;var ke=C(Fe),Ge=E(Fe);return this._t(1,0,0,0,0,ke,-Ge,0,0,Ge,ke,0,0,0,0,1)}function Y(Fe){if(Fe===0)return this;var ke=C(Fe),Ge=E(Fe);return this._t(ke,0,Ge,0,0,1,0,0,-Ge,0,ke,0,0,0,0,1)}function K(Fe){if(Fe===0)return this;var ke=C(Fe),Ge=E(Fe);return this._t(ke,-Ge,0,0,Ge,ke,0,0,0,0,1,0,0,0,0,1)}function J(Fe,ke){return this._t(1,ke,Fe,1,0,0)}function xe(Fe,ke){return this.shear(I(Fe),I(ke))}function Z(Fe,ke){var Ge=C(ke),Be=E(ke);return this._t(Ge,Be,0,0,-Be,Ge,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,I(Fe),1,0,0,0,0,1,0,0,0,0,1)._t(Ge,-Be,0,0,Be,Ge,0,0,0,0,1,0,0,0,0,1)}function _e(Fe,ke,Ge){return!Ge&&Ge!==0&&(Ge=1),Fe===1&&ke===1&&Ge===1?this:this._t(Fe,0,0,0,0,ke,0,0,0,0,Ge,0,0,0,0,1)}function Se(Fe,ke,Ge,Be,qe,Ke,Ye,tt,Ze,it,at,st,Je,et,rt,nt){return this.props[0]=Fe,this.props[1]=ke,this.props[2]=Ge,this.props[3]=Be,this.props[4]=qe,this.props[5]=Ke,this.props[6]=Ye,this.props[7]=tt,this.props[8]=Ze,this.props[9]=it,this.props[10]=at,this.props[11]=st,this.props[12]=Je,this.props[13]=et,this.props[14]=rt,this.props[15]=nt,this}function Ee(Fe,ke,Ge){return Ge=Ge||0,Fe!==0||ke!==0||Ge!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,Fe,ke,Ge,1):this}function Ae(Fe,ke,Ge,Be,qe,Ke,Ye,tt,Ze,it,at,st,Je,et,rt,nt){var Qe=this.props;if(Fe===1&&ke===0&&Ge===0&&Be===0&&qe===0&&Ke===1&&Ye===0&&tt===0&&Ze===0&&it===0&&at===1&&st===0)return Qe[12]=Qe[12]*Fe+Qe[15]*Je,Qe[13]=Qe[13]*Ke+Qe[15]*et,Qe[14]=Qe[14]*at+Qe[15]*rt,Qe[15]*=nt,this._identityCalculated=!1,this;var ot=Qe[0],lt=Qe[1],ut=Qe[2],mt=Qe[3],_t=Qe[4],dt=Qe[5],vt=Qe[6],pt=Qe[7],bt=Qe[8],St=Qe[9],It=Qe[10],Pt=Qe[11],Ot=Qe[12],Ft=Qe[13],qt=Qe[14],Vt=Qe[15];return Qe[0]=ot*Fe+lt*qe+ut*Ze+mt*Je,Qe[1]=ot*ke+lt*Ke+ut*it+mt*et,Qe[2]=ot*Ge+lt*Ye+ut*at+mt*rt,Qe[3]=ot*Be+lt*tt+ut*st+mt*nt,Qe[4]=_t*Fe+dt*qe+vt*Ze+pt*Je,Qe[5]=_t*ke+dt*Ke+vt*it+pt*et,Qe[6]=_t*Ge+dt*Ye+vt*at+pt*rt,Qe[7]=_t*Be+dt*tt+vt*st+pt*nt,Qe[8]=bt*Fe+St*qe+It*Ze+Pt*Je,Qe[9]=bt*ke+St*Ke+It*it+Pt*et,Qe[10]=bt*Ge+St*Ye+It*at+Pt*rt,Qe[11]=bt*Be+St*tt+It*st+Pt*nt,Qe[12]=Ot*Fe+Ft*qe+qt*Ze+Vt*Je,Qe[13]=Ot*ke+Ft*Ke+qt*it+Vt*et,Qe[14]=Ot*Ge+Ft*Ye+qt*at+Vt*rt,Qe[15]=Ot*Be+Ft*tt+qt*st+Vt*nt,this._identityCalculated=!1,this}function Re(Fe){var ke=Fe.props;return this.transform(ke[0],ke[1],ke[2],ke[3],ke[4],ke[5],ke[6],ke[7],ke[8],ke[9],ke[10],ke[11],ke[12],ke[13],ke[14],ke[15])}function Te(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function we(Fe){for(var ke=0;ke<16;){if(Fe.props[ke]!==this.props[ke])return!1;ke+=1}return!0}function Pe(Fe){var ke;for(ke=0;ke<16;ke+=1)Fe.props[ke]=this.props[ke];return Fe}function Ie(Fe){var ke;for(ke=0;ke<16;ke+=1)this.props[ke]=Fe[ke]}function Me(Fe,ke,Ge){return{x:Fe*this.props[0]+ke*this.props[4]+Ge*this.props[8]+this.props[12],y:Fe*this.props[1]+ke*this.props[5]+Ge*this.props[9]+this.props[13],z:Fe*this.props[2]+ke*this.props[6]+Ge*this.props[10]+this.props[14]}}function Oe(Fe,ke,Ge){return Fe*this.props[0]+ke*this.props[4]+Ge*this.props[8]+this.props[12]}function Le(Fe,ke,Ge){return Fe*this.props[1]+ke*this.props[5]+Ge*this.props[9]+this.props[13]}function $e(Fe,ke,Ge){return Fe*this.props[2]+ke*this.props[6]+Ge*this.props[10]+this.props[14]}function Ve(){var Fe=this.props[0]*this.props[5]-this.props[1]*this.props[4],ke=this.props[5]/Fe,Ge=-this.props[1]/Fe,Be=-this.props[4]/Fe,qe=this.props[0]/Fe,Ke=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/Fe,Ye=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/Fe,tt=new Matrix;return tt.props[0]=ke,tt.props[1]=Ge,tt.props[4]=Be,tt.props[5]=qe,tt.props[12]=Ke,tt.props[13]=Ye,tt}function Xe(Fe){var ke=this.getInverseMatrix();return ke.applyToPointArray(Fe[0],Fe[1],Fe[2]||0)}function Ue(Fe){var ke,Ge=Fe.length,Be=[];for(ke=0;ke<Ge;ke+=1)Be[ke]=Xe(Fe[ke]);return Be}function We(Fe,ke,Ge){var Be=createTypedArray("float32",6);if(this.isIdentity())Be[0]=Fe[0],Be[1]=Fe[1],Be[2]=ke[0],Be[3]=ke[1],Be[4]=Ge[0],Be[5]=Ge[1];else{var qe=this.props[0],Ke=this.props[1],Ye=this.props[4],tt=this.props[5],Ze=this.props[12],it=this.props[13];Be[0]=Fe[0]*qe+Fe[1]*Ye+Ze,Be[1]=Fe[0]*Ke+Fe[1]*tt+it,Be[2]=ke[0]*qe+ke[1]*Ye+Ze,Be[3]=ke[0]*Ke+ke[1]*tt+it,Be[4]=Ge[0]*qe+Ge[1]*Ye+Ze,Be[5]=Ge[0]*Ke+Ge[1]*tt+it}return Be}function ze(Fe,ke,Ge){var Be;return this.isIdentity()?Be=[Fe,ke,Ge]:Be=[Fe*this.props[0]+ke*this.props[4]+Ge*this.props[8]+this.props[12],Fe*this.props[1]+ke*this.props[5]+Ge*this.props[9]+this.props[13],Fe*this.props[2]+ke*this.props[6]+Ge*this.props[10]+this.props[14]],Be}function He(Fe,ke){if(this.isIdentity())return Fe+","+ke;var Ge=this.props;return Math.round((Fe*Ge[0]+ke*Ge[4]+Ge[12])*100)/100+","+Math.round((Fe*Ge[1]+ke*Ge[5]+Ge[13])*100)/100}function je(){for(var Fe=0,ke=this.props,Ge="matrix3d(",Be=1e4;Fe<16;)Ge+=B(ke[Fe]*Be)/Be,Ge+=Fe===15?")":",",Fe+=1;return Ge}function Ne(Fe){var ke=1e4;return Fe<1e-6&&Fe>0||Fe>-1e-6&&Fe<0?B(Fe*ke)/ke:Fe}function De(){var Fe=this.props,ke=Ne(Fe[0]),Ge=Ne(Fe[1]),Be=Ne(Fe[4]),qe=Ne(Fe[5]),Ke=Ne(Fe[12]),Ye=Ne(Fe[13]);return"matrix("+ke+","+Ge+","+Be+","+qe+","+Ke+","+Ye+")"}return function(){this.reset=U,this.rotate=V,this.rotateX=X,this.rotateY=Y,this.rotateZ=K,this.skew=xe,this.skewFromAxis=Z,this.shear=J,this.scale=_e,this.setTransform=Se,this.translate=Ee,this.transform=Ae,this.multiply=Re,this.applyToPoint=Me,this.applyToX=Oe,this.applyToY=Le,this.applyToZ=$e,this.applyToPointArray=ze,this.applyToTriplePoints=We,this.applyToPointStringified=He,this.toCSS=je,this.to2dCSS=De,this.clone=Pe,this.cloneFromProps=Ie,this.equals=we,this.inversePoints=Ue,this.inversePoint=Xe,this.getInverseMatrix=Ve,this._t=this.transform,this.isIdentity=Te,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(C){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(I){return typeof I}:_typeof$3=function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},_typeof$3(C)}var lottie={};function setLocation(C){setLocationHref(C)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(C){setSubframeEnabled(C)}function setPrefix(C){setIdPrefix(C)}function loadAnimation(C){return animationManager.loadAnimation(C)}function setQuality(C){if(typeof C=="string")switch(C){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(C)&&C>1&&setDefaultCurveSegments(C)}function inBrowser(){return typeof navigator<"u"}function installPlugin(C,E){C==="expressions"&&setExpressionsPlugin(E)}function getFactory(C){switch(C){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(C){for(var E=queryString.split("&"),I=0;I<E.length;I+=1){var B=E[I].split("=");if(decodeURIComponent(B[0])==C)return decodeURIComponent(B[1])}return null}var queryString="";{var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{_typeof$3(exports)!=="object"&&(window.bodymovin=lottie)}catch(C){}var ShapeModifiers=function(){var C={},E={};C.registerModifier=I,C.getModifier=B;function I(U,V){E[U]||(E[U]=V)}function B(U,V,X){return new E[U](V,X)}return C}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(C){if(!this.closed){C.sh.container.addDynamicProperty(C.sh);var E={shape:C.sh,data:C,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(E),this.addShapeToModifier(E),this._isAnimated&&C.setAsAnimated()}},ShapeModifier.prototype.init=function(C,E){this.shapes=[],this.elem=C,this.initDynamicPropertyContainer(C),this.initModifierProperties(C,E),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(C,E){this.s=PropertyFactory.getProp(C,E.s,0,.01,this),this.e=PropertyFactory.getProp(C,E.e,0,.01,this),this.o=PropertyFactory.getProp(C,E.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=E.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(C){C.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(C,E,I,B,U){var V=[];E<=1?V.push({s:C,e:E}):C>=1?V.push({s:C-1,e:E-1}):(V.push({s:C,e:1}),V.push({s:0,e:E-1}));var X=[],Y,K=V.length,J;for(Y=0;Y<K;Y+=1)if(J=V[Y],!(J.e*U<B||J.s*U>B+I)){var xe,Z;J.s*U<=B?xe=0:xe=(J.s*U-B)/I,J.e*U>=B+I?Z=1:Z=(J.e*U-B)/I,X.push([xe,Z])}return X.length||X.push([0,0]),X},TrimModifier.prototype.releasePathsData=function(C){var E,I=C.length;for(E=0;E<I;E+=1)segmentsLengthPool.release(C[E]);return C.length=0,C},TrimModifier.prototype.processShapes=function(C){var E,I;if(this._mdf||C){var B=this.o.v%360/360;if(B<0&&(B+=1),this.s.v>1?E=1+B:this.s.v<0?E=0+B:E=this.s.v+B,this.e.v>1?I=1+B:this.e.v<0?I=0+B:I=this.e.v+B,E>I){var U=E;E=I,I=U}E=Math.round(E*1e4)*1e-4,I=Math.round(I*1e4)*1e-4,this.sValue=E,this.eValue=I}else E=this.sValue,I=this.eValue;var V,X,Y=this.shapes.length,K,J,xe,Z,_e,Se=0;if(I===E)for(X=0;X<Y;X+=1)this.shapes[X].localShapeCollection.releaseShapes(),this.shapes[X].shape._mdf=!0,this.shapes[X].shape.paths=this.shapes[X].localShapeCollection,this._mdf&&(this.shapes[X].pathsData.length=0);else if(I===1&&E===0||I===0&&E===1){if(this._mdf)for(X=0;X<Y;X+=1)this.shapes[X].pathsData.length=0,this.shapes[X].shape._mdf=!0}else{var Ee=[],Ae,Re;for(X=0;X<Y;X+=1)if(Ae=this.shapes[X],!Ae.shape._mdf&&!this._mdf&&!C&&this.m!==2)Ae.shape.paths=Ae.localShapeCollection;else{if(V=Ae.shape.paths,J=V._length,_e=0,!Ae.shape._mdf&&Ae.pathsData.length)_e=Ae.totalShapeLength;else{for(xe=this.releasePathsData(Ae.pathsData),K=0;K<J;K+=1)Z=bez.getSegmentsLength(V.shapes[K]),xe.push(Z),_e+=Z.totalLength;Ae.totalShapeLength=_e,Ae.pathsData=xe}Se+=_e,Ae.shape._mdf=!0}var Te=E,we=I,Pe=0,Ie;for(X=Y-1;X>=0;X-=1)if(Ae=this.shapes[X],Ae.shape._mdf){for(Re=Ae.localShapeCollection,Re.releaseShapes(),this.m===2&&Y>1?(Ie=this.calculateShapeEdges(E,I,Ae.totalShapeLength,Pe,Se),Pe+=Ae.totalShapeLength):Ie=[[Te,we]],J=Ie.length,K=0;K<J;K+=1){Te=Ie[K][0],we=Ie[K][1],Ee.length=0,we<=1?Ee.push({s:Ae.totalShapeLength*Te,e:Ae.totalShapeLength*we}):Te>=1?Ee.push({s:Ae.totalShapeLength*(Te-1),e:Ae.totalShapeLength*(we-1)}):(Ee.push({s:Ae.totalShapeLength*Te,e:Ae.totalShapeLength}),Ee.push({s:0,e:Ae.totalShapeLength*(we-1)}));var Me=this.addShapes(Ae,Ee[0]);if(Ee[0].s!==Ee[0].e){if(Ee.length>1){var Oe=Ae.shape.paths.shapes[Ae.shape.paths._length-1];if(Oe.c){var Le=Me.pop();this.addPaths(Me,Re),Me=this.addShapes(Ae,Ee[1],Le)}else this.addPaths(Me,Re),Me=this.addShapes(Ae,Ee[1])}this.addPaths(Me,Re)}}Ae.shape.paths=Re}}},TrimModifier.prototype.addPaths=function(C,E){var I,B=C.length;for(I=0;I<B;I+=1)E.addShape(C[I])},TrimModifier.prototype.addSegment=function(C,E,I,B,U,V,X){U.setXYAt(E[0],E[1],"o",V),U.setXYAt(I[0],I[1],"i",V+1),X&&U.setXYAt(C[0],C[1],"v",V),U.setXYAt(B[0],B[1],"v",V+1)},TrimModifier.prototype.addSegmentFromArray=function(C,E,I,B){E.setXYAt(C[1],C[5],"o",I),E.setXYAt(C[2],C[6],"i",I+1),B&&E.setXYAt(C[0],C[4],"v",I),E.setXYAt(C[3],C[7],"v",I+1)},TrimModifier.prototype.addShapes=function(C,E,I){var B=C.pathsData,U=C.shape.paths.shapes,V,X=C.shape.paths._length,Y,K,J=0,xe,Z,_e,Se,Ee=[],Ae,Re=!0;for(I?(Z=I._length,Ae=I._length):(I=shapePool.newElement(),Z=0,Ae=0),Ee.push(I),V=0;V<X;V+=1){for(_e=B[V].lengths,I.c=U[V].c,K=U[V].c?_e.length:_e.length+1,Y=1;Y<K;Y+=1)if(xe=_e[Y-1],J+xe.addedLength<E.s)J+=xe.addedLength,I.c=!1;else if(J>E.e){I.c=!1;break}else E.s<=J&&E.e>=J+xe.addedLength?(this.addSegment(U[V].v[Y-1],U[V].o[Y-1],U[V].i[Y],U[V].v[Y],I,Z,Re),Re=!1):(Se=bez.getNewSegment(U[V].v[Y-1],U[V].v[Y],U[V].o[Y-1],U[V].i[Y],(E.s-J)/xe.addedLength,(E.e-J)/xe.addedLength,_e[Y-1]),this.addSegmentFromArray(Se,I,Z,Re),Re=!1,I.c=!1),J+=xe.addedLength,Z+=1;if(U[V].c&&_e.length){if(xe=_e[Y-1],J<=E.e){var Te=_e[Y-1].addedLength;E.s<=J&&E.e>=J+Te?(this.addSegment(U[V].v[Y-1],U[V].o[Y-1],U[V].i[0],U[V].v[0],I,Z,Re),Re=!1):(Se=bez.getNewSegment(U[V].v[Y-1],U[V].v[0],U[V].o[Y-1],U[V].i[0],(E.s-J)/Te,(E.e-J)/Te,_e[Y-1]),this.addSegmentFromArray(Se,I,Z,Re),Re=!1,I.c=!1)}else I.c=!1;J+=xe.addedLength,Z+=1}if(I._length&&(I.setXYAt(I.v[Ae][0],I.v[Ae][1],"i",Ae),I.setXYAt(I.v[I._length-1][0],I.v[I._length-1][1],"o",I._length-1)),J>E.e)break;V<X-1&&(I=shapePool.newElement(),Re=!0,Ee.push(I),Z=0)}return Ee};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(C,E){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(C,E.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(C,E){var I=E/100,B=[0,0],U=C._length,V=0;for(V=0;V<U;V+=1)B[0]+=C.v[V][0],B[1]+=C.v[V][1];B[0]/=U,B[1]/=U;var X=shapePool.newElement();X.c=C.c;var Y,K,J,xe,Z,_e;for(V=0;V<U;V+=1)Y=C.v[V][0]+(B[0]-C.v[V][0])*I,K=C.v[V][1]+(B[1]-C.v[V][1])*I,J=C.o[V][0]+(B[0]-C.o[V][0])*-I,xe=C.o[V][1]+(B[1]-C.o[V][1])*-I,Z=C.i[V][0]+(B[0]-C.i[V][0])*-I,_e=C.i[V][1]+(B[1]-C.i[V][1])*-I,X.setTripleAt(Y,K,J,xe,Z,_e,V);return X},PuckerAndBloatModifier.prototype.processShapes=function(C){var E,I,B=this.shapes.length,U,V,X=this.amount.v;if(X!==0){var Y,K;for(I=0;I<B;I+=1){if(Y=this.shapes[I],K=Y.localShapeCollection,!(!Y.shape._mdf&&!this._mdf&&!C))for(K.releaseShapes(),Y.shape._mdf=!0,E=Y.shape.paths.shapes,V=Y.shape.paths._length,U=0;U<V;U+=1)K.addShape(this.processPath(E[U],X));Y.shape.paths=Y.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var C=[0,0];function E(K){var J=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||J,this.a&&K.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&K.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&K.skewFromAxis(-this.sk.v,this.sa.v),this.r?K.rotate(-this.r.v):K.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?K.translate(this.px.v,this.py.v,-this.pz.v):K.translate(this.px.v,this.py.v,0):K.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function I(K){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||K){var J;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){var xe,Z;if(J=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(xe=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/J,0),Z=this.p.getValueAtTime(this.p.keyframes[0].t/J,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(xe=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/J,0),Z=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/J,0)):(xe=this.p.pv,Z=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/J,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){xe=[],Z=[];var _e=this.px,Se=this.py;_e._caching.lastFrame+_e.offsetTime<=_e.keyframes[0].t?(xe[0]=_e.getValueAtTime((_e.keyframes[0].t+.01)/J,0),xe[1]=Se.getValueAtTime((Se.keyframes[0].t+.01)/J,0),Z[0]=_e.getValueAtTime(_e.keyframes[0].t/J,0),Z[1]=Se.getValueAtTime(Se.keyframes[0].t/J,0)):_e._caching.lastFrame+_e.offsetTime>=_e.keyframes[_e.keyframes.length-1].t?(xe[0]=_e.getValueAtTime(_e.keyframes[_e.keyframes.length-1].t/J,0),xe[1]=Se.getValueAtTime(Se.keyframes[Se.keyframes.length-1].t/J,0),Z[0]=_e.getValueAtTime((_e.keyframes[_e.keyframes.length-1].t-.01)/J,0),Z[1]=Se.getValueAtTime((Se.keyframes[Se.keyframes.length-1].t-.01)/J,0)):(xe=[_e.pv,Se.pv],Z[0]=_e.getValueAtTime((_e._caching.lastFrame+_e.offsetTime-.01)/J,_e.offsetTime),Z[1]=Se.getValueAtTime((Se._caching.lastFrame+Se.offsetTime-.01)/J,Se.offsetTime))}else Z=C,xe=Z;this.v.rotate(-Math.atan2(xe[1]-Z[1],xe[0]-Z[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}}function B(){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;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;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)}function U(){}function V(K){this._addDynamicProperty(K),this.elem.addDynamicProperty(K),this._isDirty=!0}function X(K,J,xe){if(this.elem=K,this.frameId=-1,this.propType="transform",this.data=J,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(xe||K),J.p&&J.p.s?(this.px=PropertyFactory.getProp(K,J.p.x,0,0,this),this.py=PropertyFactory.getProp(K,J.p.y,0,0,this),J.p.z&&(this.pz=PropertyFactory.getProp(K,J.p.z,0,0,this))):this.p=PropertyFactory.getProp(K,J.p||{k:[0,0,0]},1,0,this),J.rx){if(this.rx=PropertyFactory.getProp(K,J.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(K,J.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(K,J.rz,0,degToRads,this),J.or.k[0].ti){var Z,_e=J.or.k.length;for(Z=0;Z<_e;Z+=1)J.or.k[Z].to=null,J.or.k[Z].ti=null}this.or=PropertyFactory.getProp(K,J.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(K,J.r||{k:0},0,degToRads,this);J.sk&&(this.sk=PropertyFactory.getProp(K,J.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(K,J.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(K,J.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(K,J.s||{k:[100,100,100]},1,.01,this),J.o?this.o=PropertyFactory.getProp(K,J.o,0,.01,K):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}X.prototype={applyToMatrix:E,getValue:I,precalculateMatrix:B,autoOrient:U},extendPrototype([DynamicPropertyContainer],X),X.prototype.addDynamicProperty=V,X.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function Y(K,J,xe){return new X(K,J,xe)}return{getTransformProperty:Y}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(C,E){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(C,E.c,0,null,this),this.o=PropertyFactory.getProp(C,E.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(C,E.tr,this),this.so=PropertyFactory.getProp(C,E.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(C,E.tr.eo,0,.01,this),this.data=E,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(C,E,I,B,U,V){var X=V?-1:1,Y=B.s.v[0]+(1-B.s.v[0])*(1-U),K=B.s.v[1]+(1-B.s.v[1])*(1-U);C.translate(B.p.v[0]*X*U,B.p.v[1]*X*U,B.p.v[2]),E.translate(-B.a.v[0],-B.a.v[1],B.a.v[2]),E.rotate(-B.r.v*X*U),E.translate(B.a.v[0],B.a.v[1],B.a.v[2]),I.translate(-B.a.v[0],-B.a.v[1],B.a.v[2]),I.scale(V?1/Y:Y,V?1/K:K),I.translate(B.a.v[0],B.a.v[1],B.a.v[2])},RepeaterModifier.prototype.init=function(C,E,I,B){for(this.elem=C,this.arr=E,this.pos=I,this.elemsData=B,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(C),this.initModifierProperties(C,E[I]);I>0;)I-=1,this._elements.unshift(E[I]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(C){var E,I=C.length;for(E=0;E<I;E+=1)C[E]._processed=!1,C[E].ty==="gr"&&this.resetElements(C[E].it)},RepeaterModifier.prototype.cloneElements=function(C){var E=JSON.parse(JSON.stringify(C));return this.resetElements(E),E},RepeaterModifier.prototype.changeGroupRender=function(C,E){var I,B=C.length;for(I=0;I<B;I+=1)C[I]._render=E,C[I].ty==="gr"&&this.changeGroupRender(C[I].it,E)},RepeaterModifier.prototype.processShapes=function(C){var E,I,B,U,V,X=!1;if(this._mdf||C){var Y=Math.ceil(this.c.v);if(this._groups.length<Y){for(;this._groups.length<Y;){var K={it:this.cloneElements(this._elements),ty:"gr"};K.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,K),this._groups.splice(0,0,K),this._currentCopies+=1}this.elem.reloadShapes(),X=!0}V=0;var J;for(B=0;B<=this._groups.length-1;B+=1){if(J=V<Y,this._groups[B]._render=J,this.changeGroupRender(this._groups[B].it,J),!J){var xe=this.elemsData[B].it,Z=xe[xe.length-1];Z.transform.op.v!==0?(Z.transform.op._mdf=!0,Z.transform.op.v=0):Z.transform.op._mdf=!1}V+=1}this._currentCopies=Y;var _e=this.o.v,Se=_e%1,Ee=_e>0?Math.floor(_e):Math.ceil(_e),Ae=this.pMatrix.props,Re=this.rMatrix.props,Te=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var we=0;if(_e>0){for(;we<Ee;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),we+=1;Se&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,Se,!1),we+=Se)}else if(_e<0){for(;we>Ee;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),we-=1;Se&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-Se,!0),we-=Se)}B=this.data.m===1?0:this._currentCopies-1,U=this.data.m===1?1:-1,V=this._currentCopies;for(var Pe,Ie;V;){if(E=this.elemsData[B].it,I=E[E.length-1].transform.mProps.v.props,Ie=I.length,E[E.length-1].transform.mProps._mdf=!0,E[E.length-1].transform.op._mdf=!0,E[E.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(B/(this._currentCopies-1)),we!==0){for((B!==0&&U===1||B!==this._currentCopies-1&&U===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(Re[0],Re[1],Re[2],Re[3],Re[4],Re[5],Re[6],Re[7],Re[8],Re[9],Re[10],Re[11],Re[12],Re[13],Re[14],Re[15]),this.matrix.transform(Te[0],Te[1],Te[2],Te[3],Te[4],Te[5],Te[6],Te[7],Te[8],Te[9],Te[10],Te[11],Te[12],Te[13],Te[14],Te[15]),this.matrix.transform(Ae[0],Ae[1],Ae[2],Ae[3],Ae[4],Ae[5],Ae[6],Ae[7],Ae[8],Ae[9],Ae[10],Ae[11],Ae[12],Ae[13],Ae[14],Ae[15]),Pe=0;Pe<Ie;Pe+=1)I[Pe]=this.matrix.props[Pe];this.matrix.reset()}else for(this.matrix.reset(),Pe=0;Pe<Ie;Pe+=1)I[Pe]=this.matrix.props[Pe];we+=1,V-=1,B+=U}}else for(V=this._currentCopies,B=0,U=1;V;)E=this.elemsData[B].it,I=E[E.length-1].transform.mProps.v.props,E[E.length-1].transform.mProps._mdf=!1,E[E.length-1].transform.op._mdf=!1,V-=1,B+=U;return X},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(C,E){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(C,E.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(C,E){var I=shapePool.newElement();I.c=C.c;var B,U=C._length,V,X,Y,K,J,xe,Z=0,_e,Se,Ee,Ae,Re,Te;for(B=0;B<U;B+=1)V=C.v[B],Y=C.o[B],X=C.i[B],V[0]===Y[0]&&V[1]===Y[1]&&V[0]===X[0]&&V[1]===X[1]?(B===0||B===U-1)&&!C.c?(I.setTripleAt(V[0],V[1],Y[0],Y[1],X[0],X[1],Z),Z+=1):(B===0?K=C.v[U-1]:K=C.v[B-1],J=Math.sqrt(Math.pow(V[0]-K[0],2)+Math.pow(V[1]-K[1],2)),xe=J?Math.min(J/2,E)/J:0,Re=V[0]+(K[0]-V[0])*xe,_e=Re,Te=V[1]-(V[1]-K[1])*xe,Se=Te,Ee=_e-(_e-V[0])*roundCorner,Ae=Se-(Se-V[1])*roundCorner,I.setTripleAt(_e,Se,Ee,Ae,Re,Te,Z),Z+=1,B===U-1?K=C.v[0]:K=C.v[B+1],J=Math.sqrt(Math.pow(V[0]-K[0],2)+Math.pow(V[1]-K[1],2)),xe=J?Math.min(J/2,E)/J:0,Ee=V[0]+(K[0]-V[0])*xe,_e=Ee,Ae=V[1]+(K[1]-V[1])*xe,Se=Ae,Re=_e-(_e-V[0])*roundCorner,Te=Se-(Se-V[1])*roundCorner,I.setTripleAt(_e,Se,Ee,Ae,Re,Te,Z),Z+=1):(I.setTripleAt(C.v[B][0],C.v[B][1],C.o[B][0],C.o[B][1],C.i[B][0],C.i[B][1],Z),Z+=1);return I},RoundCornersModifier.prototype.processShapes=function(C){var E,I,B=this.shapes.length,U,V,X=this.rd.v;if(X!==0){var Y,K;for(I=0;I<B;I+=1){if(Y=this.shapes[I],K=Y.localShapeCollection,!(!Y.shape._mdf&&!this._mdf&&!C))for(K.releaseShapes(),Y.shape._mdf=!0,E=Y.shape.paths.shapes,V=Y.shape.paths._length,U=0;U<V;U+=1)K.addShape(this.processPath(E[U],X));Y.shape.paths=Y.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(C,E){return Math.abs(C-E)*1e5<=Math.min(Math.abs(C),Math.abs(E))}function floatZero(C){return Math.abs(C)<=1e-5}function lerp(C,E,I){return C*(1-I)+E*I}function lerpPoint(C,E,I){return[lerp(C[0],E[0],I),lerp(C[1],E[1],I)]}function quadRoots(C,E,I){if(C===0)return[];var B=E*E-4*C*I;if(B<0)return[];var U=-E/(2*C);if(B===0)return[U];var V=Math.sqrt(B)/(2*C);return[U-V,U+V]}function polynomialCoefficients(C,E,I,B){return[-C+3*E-3*I+B,3*C-6*E+3*I,-3*C+3*E,C]}function singlePoint(C){return new PolynomialBezier(C,C,C,C,!1)}function PolynomialBezier(C,E,I,B,U){U&&pointEqual(C,E)&&(E=lerpPoint(C,B,1/3)),U&&pointEqual(I,B)&&(I=lerpPoint(C,B,2/3));var V=polynomialCoefficients(C[0],E[0],I[0],B[0]),X=polynomialCoefficients(C[1],E[1],I[1],B[1]);this.a=[V[0],X[0]],this.b=[V[1],X[1]],this.c=[V[2],X[2]],this.d=[V[3],X[3]],this.points=[C,E,I,B]}PolynomialBezier.prototype.point=function(C){return[((this.a[0]*C+this.b[0])*C+this.c[0])*C+this.d[0],((this.a[1]*C+this.b[1])*C+this.c[1])*C+this.d[1]]},PolynomialBezier.prototype.derivative=function(C){return[(3*C*this.a[0]+2*this.b[0])*C+this.c[0],(3*C*this.a[1]+2*this.b[1])*C+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(C){var E=this.derivative(C);return Math.atan2(E[1],E[0])},PolynomialBezier.prototype.normalAngle=function(C){var E=this.derivative(C);return Math.atan2(E[0],E[1])},PolynomialBezier.prototype.inflectionPoints=function(){var C=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(C))return[];var E=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/C,I=E*E-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/C;if(I<0)return[];var B=Math.sqrt(I);return floatZero(B)?B>0&&B<1?[E]:[]:[E-B,E+B].filter(function(U){return U>0&&U<1})},PolynomialBezier.prototype.split=function(C){if(C<=0)return[singlePoint(this.points[0]),this];if(C>=1)return[this,singlePoint(this.points[this.points.length-1])];var E=lerpPoint(this.points[0],this.points[1],C),I=lerpPoint(this.points[1],this.points[2],C),B=lerpPoint(this.points[2],this.points[3],C),U=lerpPoint(E,I,C),V=lerpPoint(I,B,C),X=lerpPoint(U,V,C);return[new PolynomialBezier(this.points[0],E,U,X,!0),new PolynomialBezier(X,V,B,this.points[3],!0)]};function extrema(C,E){var I=C.points[0][E],B=C.points[C.points.length-1][E];if(I>B){var U=B;B=I,I=U}for(var V=quadRoots(3*C.a[E],2*C.b[E],C.c[E]),X=0;X<V.length;X+=1)if(V[X]>0&&V[X]<1){var Y=C.point(V[X])[E];Y<I?I=Y:Y>B&&(B=Y)}return{min:I,max:B}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var C=this.bounds();return{left:C.x.min,right:C.x.max,top:C.y.min,bottom:C.y.max,width:C.x.max-C.x.min,height:C.y.max-C.y.min,cx:(C.x.max+C.x.min)/2,cy:(C.y.max+C.y.min)/2}};function intersectData(C,E,I){var B=C.boundingBox();return{cx:B.cx,cy:B.cy,width:B.width,height:B.height,bez:C,t:(E+I)/2,t1:E,t2:I}}function splitData(C){var E=C.bez.split(.5);return[intersectData(E[0],C.t1,C.t),intersectData(E[1],C.t,C.t2)]}function boxIntersect(C,E){return Math.abs(C.cx-E.cx)*2<C.width+E.width&&Math.abs(C.cy-E.cy)*2<C.height+E.height}function intersectsImpl(C,E,I,B,U,V){if(boxIntersect(C,E)){if(I>=V||C.width<=B&&C.height<=B&&E.width<=B&&E.height<=B){U.push([C.t,E.t]);return}var X=splitData(C),Y=splitData(E);intersectsImpl(X[0],Y[0],I+1,B,U,V),intersectsImpl(X[0],Y[1],I+1,B,U,V),intersectsImpl(X[1],Y[0],I+1,B,U,V),intersectsImpl(X[1],Y[1],I+1,B,U,V)}}PolynomialBezier.prototype.intersections=function(C,E,I){E===void 0&&(E=2),I===void 0&&(I=7);var B=[];return intersectsImpl(intersectData(this,0,1),intersectData(C,0,1),0,E,B,I),B},PolynomialBezier.shapeSegment=function(C,E){var I=(E+1)%C.length();return new PolynomialBezier(C.v[E],C.o[E],C.i[I],C.v[I],!0)},PolynomialBezier.shapeSegmentInverted=function(C,E){var I=(E+1)%C.length();return new PolynomialBezier(C.v[I],C.i[I],C.o[E],C.v[E],!0)};function crossProduct(C,E){return[C[1]*E[2]-C[2]*E[1],C[2]*E[0]-C[0]*E[2],C[0]*E[1]-C[1]*E[0]]}function lineIntersection(C,E,I,B){var U=[C[0],C[1],1],V=[E[0],E[1],1],X=[I[0],I[1],1],Y=[B[0],B[1],1],K=crossProduct(crossProduct(U,V),crossProduct(X,Y));return floatZero(K[2])?null:[K[0]/K[2],K[1]/K[2]]}function polarOffset(C,E,I){return[C[0]+Math.cos(E)*I,C[1]-Math.sin(E)*I]}function pointDistance(C,E){return Math.hypot(C[0]-E[0],C[1]-E[1])}function pointEqual(C,E){return floatEqual(C[0],E[0])&&floatEqual(C[1],E[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(C,E){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(C,E.s,0,null,this),this.frequency=PropertyFactory.getProp(C,E.r,0,null,this),this.pointsType=PropertyFactory.getProp(C,E.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(C,E,I,B,U,V,X){var Y=I-Math.PI/2,K=I+Math.PI/2,J=E[0]+Math.cos(I)*B*U,xe=E[1]-Math.sin(I)*B*U;C.setTripleAt(J,xe,J+Math.cos(Y)*V,xe-Math.sin(Y)*V,J+Math.cos(K)*X,xe-Math.sin(K)*X,C.length())}function getPerpendicularVector(C,E){var I=[E[0]-C[0],E[1]-C[1]],B=-Math.PI*.5,U=[Math.cos(B)*I[0]-Math.sin(B)*I[1],Math.sin(B)*I[0]+Math.cos(B)*I[1]];return U}function getProjectingAngle(C,E){var I=E===0?C.length()-1:E-1,B=(E+1)%C.length(),U=C.v[I],V=C.v[B],X=getPerpendicularVector(U,V);return Math.atan2(0,1)-Math.atan2(X[1],X[0])}function zigZagCorner(C,E,I,B,U,V,X){var Y=getProjectingAngle(E,I),K=E.v[I%E._length],J=E.v[I===0?E._length-1:I-1],xe=E.v[(I+1)%E._length],Z=V===2?Math.sqrt(Math.pow(K[0]-J[0],2)+Math.pow(K[1]-J[1],2)):0,_e=V===2?Math.sqrt(Math.pow(K[0]-xe[0],2)+Math.pow(K[1]-xe[1],2)):0;setPoint(C,E.v[I%E._length],Y,X,B,_e/((U+1)*2),Z/((U+1)*2))}function zigZagSegment(C,E,I,B,U,V){for(var X=0;X<B;X+=1){var Y=(X+1)/(B+1),K=U===2?Math.sqrt(Math.pow(E.points[3][0]-E.points[0][0],2)+Math.pow(E.points[3][1]-E.points[0][1],2)):0,J=E.normalAngle(Y),xe=E.point(Y);setPoint(C,xe,J,V,I,K/((B+1)*2),K/((B+1)*2)),V=-V}return V}ZigZagModifier.prototype.processPath=function(C,E,I,B){var U=C._length,V=shapePool.newElement();if(V.c=C.c,C.c||(U-=1),U===0)return V;var X=-1,Y=PolynomialBezier.shapeSegment(C,0);zigZagCorner(V,C,0,E,I,B,X);for(var K=0;K<U;K+=1)X=zigZagSegment(V,Y,E,I,B,-X),K===U-1&&!C.c?Y=null:Y=PolynomialBezier.shapeSegment(C,(K+1)%U),zigZagCorner(V,C,K+1,E,I,B,X);return V},ZigZagModifier.prototype.processShapes=function(C){var E,I,B=this.shapes.length,U,V,X=this.amplitude.v,Y=Math.max(0,Math.round(this.frequency.v)),K=this.pointsType.v;if(X!==0){var J,xe;for(I=0;I<B;I+=1){if(J=this.shapes[I],xe=J.localShapeCollection,!(!J.shape._mdf&&!this._mdf&&!C))for(xe.releaseShapes(),J.shape._mdf=!0,E=J.shape.paths.shapes,V=J.shape.paths._length,U=0;U<V;U+=1)xe.addShape(this.processPath(E[U],X,Y,K));J.shape.paths=J.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(C,E,I){var B=Math.atan2(E[0]-C[0],E[1]-C[1]);return[polarOffset(C,B,I),polarOffset(E,B,I)]}function offsetSegment(C,E){var I,B,U,V,X,Y,K;K=linearOffset(C.points[0],C.points[1],E),I=K[0],B=K[1],K=linearOffset(C.points[1],C.points[2],E),U=K[0],V=K[1],K=linearOffset(C.points[2],C.points[3],E),X=K[0],Y=K[1];var J=lineIntersection(I,B,U,V);J===null&&(J=B);var xe=lineIntersection(X,Y,U,V);return xe===null&&(xe=X),new PolynomialBezier(I,J,xe,Y)}function joinLines(C,E,I,B,U){var V=E.points[3],X=I.points[0];if(B===3||pointEqual(V,X))return V;if(B===2){var Y=-E.tangentAngle(1),K=-I.tangentAngle(0)+Math.PI,J=lineIntersection(V,polarOffset(V,Y+Math.PI/2,100),X,polarOffset(X,Y+Math.PI/2,100)),xe=J?pointDistance(J,V):pointDistance(V,X)/2,Z=polarOffset(V,Y,2*xe*roundCorner);return C.setXYAt(Z[0],Z[1],"o",C.length()-1),Z=polarOffset(X,K,2*xe*roundCorner),C.setTripleAt(X[0],X[1],X[0],X[1],Z[0],Z[1],C.length()),X}var _e=pointEqual(V,E.points[2])?E.points[0]:E.points[2],Se=pointEqual(X,I.points[1])?I.points[3]:I.points[1],Ee=lineIntersection(_e,V,X,Se);return Ee&&pointDistance(Ee,V)<U?(C.setTripleAt(Ee[0],Ee[1],Ee[0],Ee[1],Ee[0],Ee[1],C.length()),Ee):V}function getIntersection(C,E){var I=C.intersections(E);return I.length&&floatEqual(I[0][0],1)&&I.shift(),I.length?I[0]:null}function pruneSegmentIntersection(C,E){var I=C.slice(),B=E.slice(),U=getIntersection(C[C.length-1],E[0]);return U&&(I[C.length-1]=C[C.length-1].split(U[0])[0],B[0]=E[0].split(U[1])[1]),C.length>1&&E.length>1&&(U=getIntersection(C[0],E[E.length-1]),U)?[[C[0].split(U[0])[0]],[E[E.length-1].split(U[1])[1]]]:[I,B]}function pruneIntersections(C){for(var E,I=1;I<C.length;I+=1)E=pruneSegmentIntersection(C[I-1],C[I]),C[I-1]=E[0],C[I]=E[1];return C.length>1&&(E=pruneSegmentIntersection(C[C.length-1],C[0]),C[C.length-1]=E[0],C[0]=E[1]),C}function offsetSegmentSplit(C,E){var I=C.inflectionPoints(),B,U,V,X;if(I.length===0)return[offsetSegment(C,E)];if(I.length===1||floatEqual(I[1],1))return V=C.split(I[0]),B=V[0],U=V[1],[offsetSegment(B,E),offsetSegment(U,E)];V=C.split(I[0]),B=V[0];var Y=(I[1]-I[0])/(1-I[0]);return V=V[1].split(Y),X=V[0],U=V[1],[offsetSegment(B,E),offsetSegment(X,E),offsetSegment(U,E)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(C,E){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(C,E.a,0,null,this),this.miterLimit=PropertyFactory.getProp(C,E.ml,0,null,this),this.lineJoin=E.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(C,E,I,B){var U=shapePool.newElement();U.c=C.c;var V=C.length();C.c||(V-=1);var X,Y,K,J=[];for(X=0;X<V;X+=1)K=PolynomialBezier.shapeSegment(C,X),J.push(offsetSegmentSplit(K,E));if(!C.c)for(X=V-1;X>=0;X-=1)K=PolynomialBezier.shapeSegmentInverted(C,X),J.push(offsetSegmentSplit(K,E));J=pruneIntersections(J);var xe=null,Z=null;for(X=0;X<J.length;X+=1){var _e=J[X];for(Z&&(xe=joinLines(U,Z,_e[0],I,B)),Z=_e[_e.length-1],Y=0;Y<_e.length;Y+=1)K=_e[Y],xe&&pointEqual(K.points[0],xe)?U.setXYAt(K.points[1][0],K.points[1][1],"o",U.length()-1):U.setTripleAt(K.points[0][0],K.points[0][1],K.points[1][0],K.points[1][1],K.points[0][0],K.points[0][1],U.length()),U.setTripleAt(K.points[3][0],K.points[3][1],K.points[3][0],K.points[3][1],K.points[2][0],K.points[2][1],U.length()),xe=K.points[3]}return J.length&&joinLines(U,Z,J[0][0],I,B),U},OffsetPathModifier.prototype.processShapes=function(C){var E,I,B=this.shapes.length,U,V,X=this.amount.v,Y=this.miterLimit.v,K=this.lineJoin;if(X!==0){var J,xe;for(I=0;I<B;I+=1){if(J=this.shapes[I],xe=J.localShapeCollection,!(!J.shape._mdf&&!this._mdf&&!C))for(xe.releaseShapes(),J.shape._mdf=!0,E=J.shape.paths.shapes,V=J.shape.paths._length,U=0;U<V;U+=1)xe.addShape(this.processPath(E[U],X,K,Y));J.shape.paths=J.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(C){for(var E=C.fStyle?C.fStyle.split(" "):[],I="normal",B="normal",U=E.length,V,X=0;X<U;X+=1)switch(V=E[X].toLowerCase(),V){case"italic":B="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";break}return{style:B,weight:C.fWeight||I}}var FontManager=function(){var C=5e3,E={w:0,size:0,shapes:[],data:{shapes:[]}},I=[];I=I.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var B=127988,U=917631,V=917601,X=917626,Y=65039,K=8205,J=127462,xe=127487,Z=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function _e(Ne){var De=Ne.split(","),Fe,ke=De.length,Ge=[];for(Fe=0;Fe<ke;Fe+=1)De[Fe]!=="sans-serif"&&De[Fe]!=="monospace"&&Ge.push(De[Fe]);return Ge.join(",")}function Se(Ne,De){var Fe=createTag("span");Fe.setAttribute("aria-hidden",!0),Fe.style.fontFamily=De;var ke=createTag("span");ke.innerText="giItT1WQy@!-/#",Fe.style.position="absolute",Fe.style.left="-10000px",Fe.style.top="-10000px",Fe.style.fontSize="300px",Fe.style.fontVariant="normal",Fe.style.fontStyle="normal",Fe.style.fontWeight="normal",Fe.style.letterSpacing="0",Fe.appendChild(ke),document.body.appendChild(Fe);var Ge=ke.offsetWidth;return ke.style.fontFamily=_e(Ne)+", "+De,{node:ke,w:Ge,parent:Fe}}function Ee(){var Ne,De=this.fonts.length,Fe,ke,Ge=De;for(Ne=0;Ne<De;Ne+=1)this.fonts[Ne].loaded?Ge-=1:this.fonts[Ne].fOrigin==="n"||this.fonts[Ne].origin===0?this.fonts[Ne].loaded=!0:(Fe=this.fonts[Ne].monoCase.node,ke=this.fonts[Ne].monoCase.w,Fe.offsetWidth!==ke?(Ge-=1,this.fonts[Ne].loaded=!0):(Fe=this.fonts[Ne].sansCase.node,ke=this.fonts[Ne].sansCase.w,Fe.offsetWidth!==ke&&(Ge-=1,this.fonts[Ne].loaded=!0)),this.fonts[Ne].loaded&&(this.fonts[Ne].sansCase.parent.parentNode.removeChild(this.fonts[Ne].sansCase.parent),this.fonts[Ne].monoCase.parent.parentNode.removeChild(this.fonts[Ne].monoCase.parent)));Ge!==0&&Date.now()-this.initTime<C?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function Ae(Ne,De){var Fe=document.body&&De?"svg":"canvas",ke,Ge=getFontProperties(Ne);if(Fe==="svg"){var Be=createNS("text");Be.style.fontSize="100px",Be.setAttribute("font-family",Ne.fFamily),Be.setAttribute("font-style",Ge.style),Be.setAttribute("font-weight",Ge.weight),Be.textContent="1",Ne.fClass?(Be.style.fontFamily="inherit",Be.setAttribute("class",Ne.fClass)):Be.style.fontFamily=Ne.fFamily,De.appendChild(Be),ke=Be}else{var qe=new OffscreenCanvas(500,500).getContext("2d");qe.font=Ge.style+" "+Ge.weight+" 100px "+Ne.fFamily,ke=qe}function Ke(Ye){return Fe==="svg"?(ke.textContent=Ye,ke.getComputedTextLength()):ke.measureText(Ye).width}return{measureText:Ke}}function Re(Ne,De){if(!Ne){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=Ne.list;return}if(!document.body){this.isLoaded=!0,Ne.list.forEach(function(at){at.helper=Ae(at),at.cache={}}),this.fonts=Ne.list;return}var Fe=Ne.list,ke,Ge=Fe.length,Be=Ge;for(ke=0;ke<Ge;ke+=1){var qe=!0,Ke,Ye;if(Fe[ke].loaded=!1,Fe[ke].monoCase=Se(Fe[ke].fFamily,"monospace"),Fe[ke].sansCase=Se(Fe[ke].fFamily,"sans-serif"),!Fe[ke].fPath)Fe[ke].loaded=!0,Be-=1;else if(Fe[ke].fOrigin==="p"||Fe[ke].origin===3){if(Ke=document.querySelectorAll('style[f-forigin="p"][f-family="'+Fe[ke].fFamily+'"], style[f-origin="3"][f-family="'+Fe[ke].fFamily+'"]'),Ke.length>0&&(qe=!1),qe){var tt=createTag("style");tt.setAttribute("f-forigin",Fe[ke].fOrigin),tt.setAttribute("f-origin",Fe[ke].origin),tt.setAttribute("f-family",Fe[ke].fFamily),tt.type="text/css",tt.innerText="@font-face {font-family: "+Fe[ke].fFamily+"; font-style: normal; src: url('"+Fe[ke].fPath+"');}",De.appendChild(tt)}}else if(Fe[ke].fOrigin==="g"||Fe[ke].origin===1){for(Ke=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Ye=0;Ye<Ke.length;Ye+=1)Ke[Ye].href.indexOf(Fe[ke].fPath)!==-1&&(qe=!1);if(qe){var Ze=createTag("link");Ze.setAttribute("f-forigin",Fe[ke].fOrigin),Ze.setAttribute("f-origin",Fe[ke].origin),Ze.type="text/css",Ze.rel="stylesheet",Ze.href=Fe[ke].fPath,document.body.appendChild(Ze)}}else if(Fe[ke].fOrigin==="t"||Fe[ke].origin===2){for(Ke=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Ye=0;Ye<Ke.length;Ye+=1)Fe[ke].fPath===Ke[Ye].src&&(qe=!1);if(qe){var it=createTag("link");it.setAttribute("f-forigin",Fe[ke].fOrigin),it.setAttribute("f-origin",Fe[ke].origin),it.setAttribute("rel","stylesheet"),it.setAttribute("href",Fe[ke].fPath),De.appendChild(it)}}Fe[ke].helper=Ae(Fe[ke],De),Fe[ke].cache={},this.fonts.push(Fe[ke])}Be===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function Te(Ne){if(Ne){this.chars||(this.chars=[]);var De,Fe=Ne.length,ke,Ge=this.chars.length,Be;for(De=0;De<Fe;De+=1){for(ke=0,Be=!1;ke<Ge;)this.chars[ke].style===Ne[De].style&&this.chars[ke].fFamily===Ne[De].fFamily&&this.chars[ke].ch===Ne[De].ch&&(Be=!0),ke+=1;Be||(this.chars.push(Ne[De]),Ge+=1)}}}function we(Ne,De,Fe){for(var ke=0,Ge=this.chars.length;ke<Ge;){if(this.chars[ke].ch===Ne&&this.chars[ke].style===De&&this.chars[ke].fFamily===Fe)return this.chars[ke];ke+=1}return(typeof Ne=="string"&&Ne.charCodeAt(0)!==13||!Ne)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",Ne,De,Fe)),E}function Pe(Ne,De,Fe){var ke=this.getFontByName(De),Ge=Ne;if(!ke.cache[Ge]){var Be=ke.helper;if(Ne===" "){var qe=Be.measureText("|"+Ne+"|"),Ke=Be.measureText("||");ke.cache[Ge]=(qe-Ke)/100}else ke.cache[Ge]=Be.measureText(Ne)/100}return ke.cache[Ge]*Fe}function Ie(Ne){for(var De=0,Fe=this.fonts.length;De<Fe;){if(this.fonts[De].fName===Ne)return this.fonts[De];De+=1}return this.fonts[0]}function Me(Ne){var De=0,Fe=Ne.charCodeAt(0);if(Fe>=55296&&Fe<=56319){var ke=Ne.charCodeAt(1);ke>=56320&&ke<=57343&&(De=(Fe-55296)*1024+ke-56320+65536)}return De}function Oe(Ne,De){var Fe=Ne.toString(16)+De.toString(16);return Z.indexOf(Fe)!==-1}function Le(Ne){return Ne===K}function $e(Ne){return Ne===Y}function Ve(Ne){var De=Me(Ne);return De>=J&&De<=xe}function Xe(Ne){return Ve(Ne.substr(0,2))&&Ve(Ne.substr(2,2))}function Ue(Ne){return I.indexOf(Ne)!==-1}function We(Ne,De){var Fe=Me(Ne.substr(De,2));if(Fe!==B)return!1;var ke=0;for(De+=2;ke<5;){if(Fe=Me(Ne.substr(De,2)),Fe<V||Fe>X)return!1;ke+=1,De+=2}return Me(Ne.substr(De,2))===U}function ze(){this.isLoaded=!0}var He=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)};He.isModifier=Oe,He.isZeroWidthJoiner=Le,He.isFlagEmoji=Xe,He.isRegionalCode=Ve,He.isCombinedCharacter=Ue,He.isRegionalFlag=We,He.isVariationSelector=$e,He.BLACK_FLAG_CODE_POINT=B;var je={addChars:Te,addFonts:Re,getCharData:we,getFontByName:Ie,measureText:Pe,checkLoadedFonts:Ee,setIsLoaded:ze};return He.prototype=je,He}();function SlotManager(C){this.animationData=C}SlotManager.prototype.getProp=function(C){return this.animationData.slots&&this.animationData.slots[C.sid]?Object.assign(C,this.animationData.slots[C.sid].p):C};function slotFactory(C){return new SlotManager(C)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(E){this.renderableComponents.indexOf(E)===-1&&this.renderableComponents.push(E)},removeRenderableComponent:function(E){this.renderableComponents.indexOf(E)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(E),1)},prepareRenderableFrame:function(E){this.checkLayerLimits(E)},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(E){this.data.ip-this.data.st<=E&&this.data.op-this.data.st>E?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var E,I=this.renderableComponents.length;for(E=0;E<I;E+=1)this.renderableComponents[E].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=function(){var C={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(E){return C[E]||""}}();function SliderEffect(C,E,I){this.p=PropertyFactory.getProp(E,C.v,0,0,I)}function AngleEffect(C,E,I){this.p=PropertyFactory.getProp(E,C.v,0,0,I)}function ColorEffect(C,E,I){this.p=PropertyFactory.getProp(E,C.v,1,0,I)}function PointEffect(C,E,I){this.p=PropertyFactory.getProp(E,C.v,1,0,I)}function LayerIndexEffect(C,E,I){this.p=PropertyFactory.getProp(E,C.v,0,0,I)}function MaskIndexEffect(C,E,I){this.p=PropertyFactory.getProp(E,C.v,0,0,I)}function CheckboxEffect(C,E,I){this.p=PropertyFactory.getProp(E,C.v,0,0,I)}function NoValueEffect(){this.p={}}function EffectsManager(C,E){var I=C.ef||[];this.effectElements=[];var B,U=I.length,V;for(B=0;B<U;B+=1)V=new GroupEffect(I[B],E),this.effectElements.push(V)}function GroupEffect(C,E){this.init(C,E)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(C,E){this.data=C,this.effectElements=[],this.initDynamicPropertyContainer(E);var I,B=this.data.ef.length,U,V=this.data.ef;for(I=0;I<B;I+=1){switch(U=null,V[I].ty){case 0:U=new SliderEffect(V[I],E,this);break;case 1:U=new AngleEffect(V[I],E,this);break;case 2:U=new ColorEffect(V[I],E,this);break;case 3:U=new PointEffect(V[I],E,this);break;case 4:case 7:U=new CheckboxEffect(V[I],E,this);break;case 10:U=new LayerIndexEffect(V[I],E,this);break;case 11:U=new MaskIndexEffect(V[I],E,this);break;case 5:U=new EffectsManager(V[I],E);break;default:U=new NoValueEffect(V[I]);break}U&&this.effectElements.push(U)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var E=0,I=this.data.masksProperties.length;E<I;){if(this.data.masksProperties[E].mode!=="n"&&this.data.masksProperties[E].cl!==!1)return!0;E+=1}return!1},initExpressions:function(){var E=getExpressionInterfaces();if(E){var I=E("layer"),B=E("effects"),U=E("shape"),V=E("text"),X=E("comp");this.layerInterface=I(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var Y=B.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(Y),this.data.ty===0||this.data.xt?this.compInterface=X(this):this.data.ty===4?(this.layerInterface.shapeInterface=U(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=V(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var E=getBlendMode(this.data.bm),I=this.baseElement||this.layerElement;I.style["mix-blend-mode"]=E},initBaseData:function(E,I,B){this.globalData=I,this.comp=B,this.data=E,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function FrameElement(){}FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(E,I){var B,U=this.dynamicProperties.length;for(B=0;B<U;B+=1)(I||this._isParent&&this.dynamicProperties[B].propType==="transform")&&(this.dynamicProperties[B].getValue(),this.dynamicProperties[B]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(E){this.dynamicProperties.indexOf(E)===-1&&this.dynamicProperties.push(E)}};function FootageElement(C,E,I){this.initFrame(),this.initRenderable(),this.assetData=E.getAssetData(C.refId),this.footageData=E.imageLoader.getAsset(this.assetData),this.initBaseData(C,E,I)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var C=getExpressionInterfaces();if(C){var E=C("footage");this.layerInterface=E(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(C,E,I){this.initFrame(),this.initRenderable(),this.assetData=E.getAssetData(C.refId),this.initBaseData(C,E,I),this._isPlaying=!1,this._canPlay=!1;var B=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(B),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=C.tm?PropertyFactory.getProp(this,C.tm,0,E.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,C.au&&C.au.lv?C.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(C){if(this.prepareRenderableFrame(C,!0),this.prepareProperties(C,!0),this.tm._placeholder)this._currentTime=C/this.data.sr;else{var E=this.tm.v;this._currentTime=E}this._volume=this.lv.v[0];var I=this._volume*this._volumeMultiplier;this._previousVolume!==I&&(this._previousVolume=I,this.audio.volume(I))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(C){this.audio.rate(C)},AudioElement.prototype.volume=function(C){this._volumeMultiplier=C,this._previousVolume=C*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(C){var E,I=this.layers.length,B;for(this.completeLayers=!0,E=I-1;E>=0;E-=1)this.elements[E]||(B=this.layers[E],B.ip-B.st<=C-this.layers[E].st&&B.op-B.st>C-this.layers[E].st&&this.buildItem(E)),this.completeLayers=this.elements[E]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(C){switch(C.ty){case 2:return this.createImage(C);case 0:return this.createComp(C);case 1:return this.createSolid(C);case 3:return this.createNull(C);case 4:return this.createShape(C);case 5:return this.createText(C);case 6:return this.createAudio(C);case 13:return this.createCamera(C);case 15:return this.createFootage(C);default:return this.createNull(C)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(C){return new AudioElement(C,this.globalData,this)},BaseRenderer.prototype.createFootage=function(C){return new FootageElement(C,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var C,E=this.layers.length;for(C=0;C<E;C+=1)this.buildItem(C);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(C){this.completeLayers=!1;var E,I=C.length,B,U=this.layers.length;for(E=0;E<I;E+=1)for(B=0;B<U;){if(this.layers[B].id===C[E].id){this.layers[B]=C[E];break}B+=1}},BaseRenderer.prototype.setProjectInterface=function(C){this.globalData.projectInterface=C},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(C,E,I){for(var B=this.elements,U=this.layers,V=0,X=U.length;V<X;)U[V].ind==E&&(!B[V]||B[V]===!0?(this.buildItem(V),this.addPendingElement(C)):(I.push(B[V]),B[V].setAsParent(),U[V].parent!==void 0?this.buildElementParenting(C,U[V].parent,I):C.setHierarchy(I))),V+=1},BaseRenderer.prototype.addPendingElement=function(C){this.pendingElements.push(C)},BaseRenderer.prototype.searchExtraCompositions=function(C){var E,I=C.length;for(E=0;E<I;E+=1)if(C[E].xt){var B=this.createComp(C[E]);B.initExpressions(),this.globalData.projectInterface.registerComposition(B)}},BaseRenderer.prototype.getElementById=function(C){var E,I=this.elements.length;for(E=0;E<I;E+=1)if(this.elements[E].data.ind===C)return this.elements[E];return null},BaseRenderer.prototype.getElementByPath=function(C){var E=C.shift(),I;if(typeof E=="number")I=this.elements[E];else{var B,U=this.elements.length;for(B=0;B<U;B+=1)if(this.elements[B].data.nm===E){I=this.elements[B];break}}return C.length===0?I:I.getElementByPath(C)},BaseRenderer.prototype.setupGlobalData=function(C,E){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(C),this.globalData.fontManager.addChars(C.chars),this.globalData.fontManager.addFonts(C.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=C.fr,this.globalData.nm=C.nm,this.globalData.compSize={w:C.w,h:C.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function(){var E=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:E,localMat:E,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 E,I=this.finalTransform.mat,B=0,U=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;B<U;){if(this.hierarchy[B].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}B+=1}if(this.finalTransform._matMdf)for(E=this.finalTransform.mProp.v.props,I.cloneFromProps(E),B=0;B<U;B+=1)I.multiply(this.hierarchy[B].finalTransform.mProp.v)}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 E=0,I=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;E<I;)this.localTransforms[E]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[E]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),E+=1;if(this.finalTransform._localMatMdf){var B=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(B),E=1;E<I;E+=1){var U=this.localTransforms[E].matrix;B.multiply(U)}B.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var V=this.finalTransform.localOpacity;for(E=0;E<I;E+=1)V*=this.localTransforms[E].opacity*.01;this.finalTransform.localOpacity=V}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var E=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(E.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var I=0,B=E.length;for(I=0;I<B;I+=1)this.localTransforms.push(E[I])}}},globalToLocal:function(E){var I=[];I.push(this.finalTransform);for(var B=!0,U=this.comp;B;)U.finalTransform?(U.data.hasMask&&I.splice(0,0,U.finalTransform),U=U.comp):B=!1;var V,X=I.length,Y;for(V=0;V<X;V+=1)Y=I[V].mat.applyToPointArray(0,0,0),E=[E[0]-Y[0],E[1]-Y[1],0];return E},mHelper:new Matrix};function MaskElement(C,E,I){this.data=C,this.element=E,this.globalData=I,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var B=this.globalData.defs,U,V=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(V),this.solidPath="";var X,Y=this.masksProperties,K=0,J=[],xe,Z,_e=createElementID(),Se,Ee,Ae,Re,Te="clipPath",we="clip-path";for(U=0;U<V;U+=1)if((Y[U].mode!=="a"&&Y[U].mode!=="n"||Y[U].inv||Y[U].o.k!==100||Y[U].o.x)&&(Te="mask",we="mask"),(Y[U].mode==="s"||Y[U].mode==="i")&&K===0?(Se=createNS("rect"),Se.setAttribute("fill","#ffffff"),Se.setAttribute("width",this.element.comp.data.w||0),Se.setAttribute("height",this.element.comp.data.h||0),J.push(Se)):Se=null,X=createNS("path"),Y[U].mode==="n")this.viewData[U]={op:PropertyFactory.getProp(this.element,Y[U].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,Y[U],3),elem:X,lastPath:""},B.appendChild(X);else{K+=1,X.setAttribute("fill",Y[U].mode==="s"?"#000000":"#ffffff"),X.setAttribute("clip-rule","nonzero");var Pe;if(Y[U].x.k!==0?(Te="mask",we="mask",Re=PropertyFactory.getProp(this.element,Y[U].x,0,null,this.element),Pe=createElementID(),Ee=createNS("filter"),Ee.setAttribute("id",Pe),Ae=createNS("feMorphology"),Ae.setAttribute("operator","erode"),Ae.setAttribute("in","SourceGraphic"),Ae.setAttribute("radius","0"),Ee.appendChild(Ae),B.appendChild(Ee),X.setAttribute("stroke",Y[U].mode==="s"?"#000000":"#ffffff")):(Ae=null,Re=null),this.storedData[U]={elem:X,x:Re,expan:Ae,lastPath:"",lastOperator:"",filterId:Pe,lastRadius:0},Y[U].mode==="i"){Z=J.length;var Ie=createNS("g");for(xe=0;xe<Z;xe+=1)Ie.appendChild(J[xe]);var Me=createNS("mask");Me.setAttribute("mask-type","alpha"),Me.setAttribute("id",_e+"_"+K),Me.appendChild(X),B.appendChild(Me),Ie.setAttribute("mask","url("+getLocationHref()+"#"+_e+"_"+K+")"),J.length=0,J.push(Ie)}else J.push(X);Y[U].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[U]={elem:X,lastPath:"",op:PropertyFactory.getProp(this.element,Y[U].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,Y[U],3),invRect:Se},this.viewData[U].prop.k||this.drawPath(Y[U],this.viewData[U].prop.v,this.viewData[U])}for(this.maskElement=createNS(Te),V=J.length,U=0;U<V;U+=1)this.maskElement.appendChild(J[U]);K>0&&(this.maskElement.setAttribute("id",_e),this.element.maskedElement.setAttribute(we,"url("+getLocationHref()+"#"+_e+")"),B.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(C){return this.viewData[C].prop},MaskElement.prototype.renderFrame=function(C){var E=this.element.finalTransform.mat,I,B=this.masksProperties.length;for(I=0;I<B;I+=1)if((this.viewData[I].prop._mdf||C)&&this.drawPath(this.masksProperties[I],this.viewData[I].prop.v,this.viewData[I]),(this.viewData[I].op._mdf||C)&&this.viewData[I].elem.setAttribute("fill-opacity",this.viewData[I].op.v),this.masksProperties[I].mode!=="n"&&(this.viewData[I].invRect&&(this.element.finalTransform.mProp._mdf||C)&&this.viewData[I].invRect.setAttribute("transform",E.getInverseMatrix().to2dCSS()),this.storedData[I].x&&(this.storedData[I].x._mdf||C))){var U=this.storedData[I].expan;this.storedData[I].x.v<0?(this.storedData[I].lastOperator!=="erode"&&(this.storedData[I].lastOperator="erode",this.storedData[I].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[I].filterId+")")),U.setAttribute("radius",-this.storedData[I].x.v)):(this.storedData[I].lastOperator!=="dilate"&&(this.storedData[I].lastOperator="dilate",this.storedData[I].elem.setAttribute("filter",null)),this.storedData[I].elem.setAttribute("stroke-width",this.storedData[I].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var C="M0,0 ";return C+=" h"+this.globalData.compSize.w,C+=" v"+this.globalData.compSize.h,C+=" h-"+this.globalData.compSize.w,C+=" v-"+this.globalData.compSize.h+" ",C},MaskElement.prototype.drawPath=function(C,E,I){var B=" M"+E.v[0][0]+","+E.v[0][1],U,V;for(V=E._length,U=1;U<V;U+=1)B+=" C"+E.o[U-1][0]+","+E.o[U-1][1]+" "+E.i[U][0]+","+E.i[U][1]+" "+E.v[U][0]+","+E.v[U][1];if(E.c&&V>1&&(B+=" C"+E.o[U-1][0]+","+E.o[U-1][1]+" "+E.i[0][0]+","+E.i[0][1]+" "+E.v[0][0]+","+E.v[0][1]),I.lastPath!==B){var X="";I.elem&&(E.c&&(X=C.inv?this.solidPath+B:B),I.elem.setAttribute("d",X)),I.lastPath=B}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var C={};C.createFilter=E,C.createAlphaToLuminanceFilter=I;function E(B,U){var V=createNS("filter");return V.setAttribute("id",B),U!==!0&&(V.setAttribute("filterUnits","objectBoundingBox"),V.setAttribute("x","0%"),V.setAttribute("y","0%"),V.setAttribute("width","100%"),V.setAttribute("height","100%")),V}function I(){var B=createNS("feColorMatrix");return B.setAttribute("type","matrix"),B.setAttribute("color-interpolation-filters","sRGB"),B.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),B}return C}(),featureSupport=function(){var C={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(C.maskType=!1),/firefox/i.test(navigator.userAgent)&&(C.svgLumaHidden=!1),C}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(C){var E,I="SourceGraphic",B=C.data.ef?C.data.ef.length:0,U=createElementID(),V=filtersFactory.createFilter(U,!0),X=0;this.filters=[];var Y;for(E=0;E<B;E+=1){Y=null;var K=C.data.ef[E].ty;if(registeredEffects$1[K]){var J=registeredEffects$1[K].effect;Y=new J(V,C.effectsManager.effectElements[E],C,idPrefix+X,I),I=idPrefix+X,registeredEffects$1[K].countsAsEffect&&(X+=1)}Y&&this.filters.push(Y)}X&&(C.globalData.defs.appendChild(V),C.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+U+")")),this.filters.length&&C.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(C){var E,I=this.filters.length;for(E=0;E<I;E+=1)this.filters[E].renderFrame(C)},SVGEffects.prototype.getEffects=function(C){var E,I=this.filters.length,B=[];for(E=0;E<I;E+=1)this.filters[E].type===C&&B.push(this.filters[E]);return B};function registerEffect$1(C,E,I){registeredEffects$1[C]={effect:E,countsAsEffect:I}}function SVGBaseElement(){}SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var E=null;if(this.data.td){this.matteMasks={};var I=createNS("g");I.setAttribute("id",this.layerId),I.appendChild(this.layerElement),E=I,this.globalData.defs.appendChild(I)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),E=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),this.data.ty===0&&!this.data.hd){var B=createNS("clipPath"),U=createNS("path");U.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var V=createElementID();if(B.setAttribute("id",V),B.appendChild(U),this.globalData.defs.appendChild(B),this.checkMasks()){var X=createNS("g");X.setAttribute("clip-path","url("+getLocationHref()+"#"+V+")"),X.appendChild(this.layerElement),this.transformedElement=X,E?E.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+V+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(E){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[E]){var I=this.layerId+"_"+E,B,U,V,X;if(E===1||E===3){var Y=createNS("mask");Y.setAttribute("id",I),Y.setAttribute("mask-type",E===3?"luminance":"alpha"),V=createNS("use"),V.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),Y.appendChild(V),this.globalData.defs.appendChild(Y),!featureSupport.maskType&&E===1&&(Y.setAttribute("mask-type","luminance"),B=createElementID(),U=filtersFactory.createFilter(B),this.globalData.defs.appendChild(U),U.appendChild(filtersFactory.createAlphaToLuminanceFilter()),X=createNS("g"),X.appendChild(V),Y.appendChild(X),X.setAttribute("filter","url("+getLocationHref()+"#"+B+")"))}else if(E===2){var K=createNS("mask");K.setAttribute("id",I),K.setAttribute("mask-type","alpha");var J=createNS("g");K.appendChild(J),B=createElementID(),U=filtersFactory.createFilter(B);var xe=createNS("feComponentTransfer");xe.setAttribute("in","SourceGraphic"),U.appendChild(xe);var Z=createNS("feFuncA");Z.setAttribute("type","table"),Z.setAttribute("tableValues","1.0 0.0"),xe.appendChild(Z),this.globalData.defs.appendChild(U);var _e=createNS("rect");_e.setAttribute("width",this.comp.data.w),_e.setAttribute("height",this.comp.data.h),_e.setAttribute("x","0"),_e.setAttribute("y","0"),_e.setAttribute("fill","#ffffff"),_e.setAttribute("opacity","0"),J.setAttribute("filter","url("+getLocationHref()+"#"+B+")"),J.appendChild(_e),V=createNS("use"),V.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),J.appendChild(V),featureSupport.maskType||(K.setAttribute("mask-type","luminance"),U.appendChild(filtersFactory.createAlphaToLuminanceFilter()),X=createNS("g"),J.appendChild(_e),X.appendChild(this.layerElement),J.appendChild(X)),this.globalData.defs.appendChild(K)}this.matteMasks[E]=I}return this.matteMasks[E]},setMatte:function(E){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+E+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(E){this.hierarchy=E},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var C={initElement:function(I,B,U){this.initFrame(),this.initBaseData(I,B,U),this.initTransform(I,B,U),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var I=this.baseElement||this.layerElement;I.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var I=this.baseElement||this.layerElement;I.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(I){this._mdf=!1,this.prepareRenderableFrame(I),this.prepareProperties(I,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(C)],RenderableDOMElement)})();function IImageElement(C,E,I){this.assetData=E.getAssetData(C.refId),this.assetData&&this.assetData.sid&&(this.assetData=E.slotManager.getProp(this.assetData)),this.initElement(C,E,I),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var C=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",C),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(C,E){this.elem=C,this.pos=E}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(E){var I,B=this.shapeModifiers.length;for(I=0;I<B;I+=1)this.shapeModifiers[I].addShape(E)},isShapeInAnimatedModifiers:function(E){for(var I=0,B=this.shapeModifiers.length;I<B;)if(this.shapeModifiers[I].isAnimatedWithShape(E))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var E,I=this.shapes.length;for(E=0;E<I;E+=1)this.shapes[E].sh.reset();I=this.shapeModifiers.length;var B;for(E=I-1;E>=0&&(B=this.shapeModifiers[E].processShapes(this._isFirstFrame),!B);E-=1);}},searchProcessedElement:function(E){for(var I=this.processedElements,B=0,U=I.length;B<U;){if(I[B].elem===E)return I[B].pos;B+=1}return 0},addProcessedElement:function(E,I){for(var B=this.processedElements,U=B.length;U;)if(U-=1,B[U].elem===E){B[U].pos=I;return}B.push(new ProcessedElement(E,I))},prepareFrame:function(E){this.prepareRenderableFrame(E),this.prepareProperties(E,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(C,E,I){this.caches=[],this.styles=[],this.transformers=C,this.lStr="",this.sh=I,this.lvl=E,this._isAnimated=!!I.k;for(var B=0,U=C.length;B<U;){if(C[B].mProps.dynamicProperties.length){this._isAnimated=!0;break}B+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(C,E){this.data=C,this.type=C.ty,this.d="",this.lvl=E,this._mdf=!1,this.closed=C.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(C,E,I,B){this.elem=C,this.frameId=-1,this.dataProps=createSizedArray(E.length),this.renderer=I,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",E.length?E.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(B);var U,V=E.length||0,X;for(U=0;U<V;U+=1)X=PropertyFactory.getProp(C,E[U].v,0,0,this),this.k=X.k||this.k,this.dataProps[U]={n:E[U].n,p:X};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(C){if(!(this.elem.globalData.frameId===this.frameId&&!C)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||C,this._mdf)){var E=0,I=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),E=0;E<I;E+=1)this.dataProps[E].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[E].p.v:this.dashArray[E]=this.dataProps[E].p.v:this.dashoffset[0]=this.dataProps[E].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(C,E,I){this.initDynamicPropertyContainer(C),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(C,E.o,0,.01,this),this.w=PropertyFactory.getProp(C,E.w,0,null,this),this.d=new DashProperty(C,E.d||{},"svg",this),this.c=PropertyFactory.getProp(C,E.c,1,255,this),this.style=I,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(C,E,I){this.initDynamicPropertyContainer(C),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(C,E.o,0,.01,this),this.c=PropertyFactory.getProp(C,E.c,1,255,this),this.style=I}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(C,E,I){this.initDynamicPropertyContainer(C),this.getValue=this.iterateDynamicProperties,this.style=I}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(C,E,I){this.data=E,this.c=createTypedArray("uint8c",E.p*4);var B=E.k.k[0].s?E.k.k[0].s.length-E.p*4:E.k.k.length-E.p*4;this.o=createTypedArray("float32",B),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=B,this.initDynamicPropertyContainer(I),this.prop=PropertyFactory.getProp(C,E.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(C,E){for(var I=0,B=this.o.length/2,U;I<B;){if(U=Math.abs(C[I*4]-C[E*4+I*2]),U>.01)return!1;I+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var C=0,E=this.data.k.k.length;C<E;){if(!this.comparePoints(this.data.k.k[C].s,this.data.p))return!1;C+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(C){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||C){var E,I=this.data.p*4,B,U;for(E=0;E<I;E+=1)B=E%4===0?100:255,U=Math.round(this.prop.v[E]*B),this.c[E]!==U&&(this.c[E]=U,this._cmdf=!C);if(this.o.length)for(I=this.prop.v.length,E=this.data.p*4;E<I;E+=1)B=E%2===0?100:1,U=E%2===0?Math.round(this.prop.v[E]*100):this.prop.v[E],this.o[E-this.data.p*4]!==U&&(this.o[E-this.data.p*4]=U,this._omdf=!C);this._mdf=!C}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(C,E,I){this.initDynamicPropertyContainer(C),this.getValue=this.iterateDynamicProperties,this.initGradientData(C,E,I)}SVGGradientFillStyleData.prototype.initGradientData=function(C,E,I){this.o=PropertyFactory.getProp(C,E.o,0,.01,this),this.s=PropertyFactory.getProp(C,E.s,1,null,this),this.e=PropertyFactory.getProp(C,E.e,1,null,this),this.h=PropertyFactory.getProp(C,E.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(C,E.a||{k:0},0,degToRads,this),this.g=new GradientProperty(C,E.g,this),this.style=I,this.stops=[],this.setGradientData(I.pElem,E),this.setGradientOpacity(E,I),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(C,E){var I=createElementID(),B=createNS(E.t===1?"linearGradient":"radialGradient");B.setAttribute("id",I),B.setAttribute("spreadMethod","pad"),B.setAttribute("gradientUnits","userSpaceOnUse");var U=[],V,X,Y;for(Y=E.g.p*4,X=0;X<Y;X+=4)V=createNS("stop"),B.appendChild(V),U.push(V);C.setAttribute(E.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+I+")"),this.gf=B,this.cst=U},SVGGradientFillStyleData.prototype.setGradientOpacity=function(C,E){if(this.g._hasOpacity&&!this.g._collapsable){var I,B,U,V=createNS("mask"),X=createNS("path");V.appendChild(X);var Y=createElementID(),K=createElementID();V.setAttribute("id",K);var J=createNS(C.t===1?"linearGradient":"radialGradient");J.setAttribute("id",Y),J.setAttribute("spreadMethod","pad"),J.setAttribute("gradientUnits","userSpaceOnUse"),U=C.g.k.k[0].s?C.g.k.k[0].s.length:C.g.k.k.length;var xe=this.stops;for(B=C.g.p*4;B<U;B+=2)I=createNS("stop"),I.setAttribute("stop-color","rgb(255,255,255)"),J.appendChild(I),xe.push(I);X.setAttribute(C.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+Y+")"),C.ty==="gs"&&(X.setAttribute("stroke-linecap",lineCapEnum[C.lc||2]),X.setAttribute("stroke-linejoin",lineJoinEnum[C.lj||2]),C.lj===1&&X.setAttribute("stroke-miterlimit",C.ml)),this.of=J,this.ms=V,this.ost=xe,this.maskId=K,E.msElem=X}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(C,E,I){this.initDynamicPropertyContainer(C),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(C,E.w,0,null,this),this.d=new DashProperty(C,E.d||{},"svg",this),this.initGradientData(C,E,I),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(C,E,I){this.transform={mProps:C,op:E,container:I},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(E,I,B,U){if(I===0)return"";var V=E.o,X=E.i,Y=E.v,K,J=" M"+U.applyToPointStringified(Y[0][0],Y[0][1]);for(K=1;K<I;K+=1)J+=" C"+U.applyToPointStringified(V[K-1][0],V[K-1][1])+" "+U.applyToPointStringified(X[K][0],X[K][1])+" "+U.applyToPointStringified(Y[K][0],Y[K][1]);return B&&I&&(J+=" C"+U.applyToPointStringified(V[K-1][0],V[K-1][1])+" "+U.applyToPointStringified(X[0][0],X[0][1])+" "+U.applyToPointStringified(Y[0][0],Y[0][1]),J+="z"),J},SVGElementsRenderer=function(){var C=new Matrix,E=new Matrix,I={createRenderFunction:B};function B(Z){switch(Z.ty){case"fl":return Y;case"gf":return J;case"gs":return K;case"st":return xe;case"sh":case"el":case"rc":case"sr":return X;case"tr":return U;case"no":return V;default:return null}}function U(Z,_e,Se){(Se||_e.transform.op._mdf)&&_e.transform.container.setAttribute("opacity",_e.transform.op.v),(Se||_e.transform.mProps._mdf)&&_e.transform.container.setAttribute("transform",_e.transform.mProps.v.to2dCSS())}function V(){}function X(Z,_e,Se){var Ee,Ae,Re,Te,we,Pe,Ie=_e.styles.length,Me=_e.lvl,Oe,Le,$e,Ve;for(Pe=0;Pe<Ie;Pe+=1){if(Te=_e.sh._mdf||Se,_e.styles[Pe].lvl<Me){for(Le=E.reset(),$e=Me-_e.styles[Pe].lvl,Ve=_e.transformers.length-1;!Te&&$e>0;)Te=_e.transformers[Ve].mProps._mdf||Te,$e-=1,Ve-=1;if(Te)for($e=Me-_e.styles[Pe].lvl,Ve=_e.transformers.length-1;$e>0;)Le.multiply(_e.transformers[Ve].mProps.v),$e-=1,Ve-=1}else Le=C;if(Oe=_e.sh.paths,Ae=Oe._length,Te){for(Re="",Ee=0;Ee<Ae;Ee+=1)we=Oe.shapes[Ee],we&&we._length&&(Re+=buildShapeString(we,we._length,we.c,Le));_e.caches[Pe]=Re}else Re=_e.caches[Pe];_e.styles[Pe].d+=Z.hd===!0?"":Re,_e.styles[Pe]._mdf=Te||_e.styles[Pe]._mdf}}function Y(Z,_e,Se){var Ee=_e.style;(_e.c._mdf||Se)&&Ee.pElem.setAttribute("fill","rgb("+bmFloor(_e.c.v[0])+","+bmFloor(_e.c.v[1])+","+bmFloor(_e.c.v[2])+")"),(_e.o._mdf||Se)&&Ee.pElem.setAttribute("fill-opacity",_e.o.v)}function K(Z,_e,Se){J(Z,_e,Se),xe(Z,_e,Se)}function J(Z,_e,Se){var Ee=_e.gf,Ae=_e.g._hasOpacity,Re=_e.s.v,Te=_e.e.v;if(_e.o._mdf||Se){var we=Z.ty==="gf"?"fill-opacity":"stroke-opacity";_e.style.pElem.setAttribute(we,_e.o.v)}if(_e.s._mdf||Se){var Pe=Z.t===1?"x1":"cx",Ie=Pe==="x1"?"y1":"cy";Ee.setAttribute(Pe,Re[0]),Ee.setAttribute(Ie,Re[1]),Ae&&!_e.g._collapsable&&(_e.of.setAttribute(Pe,Re[0]),_e.of.setAttribute(Ie,Re[1]))}var Me,Oe,Le,$e;if(_e.g._cmdf||Se){Me=_e.cst;var Ve=_e.g.c;for(Le=Me.length,Oe=0;Oe<Le;Oe+=1)$e=Me[Oe],$e.setAttribute("offset",Ve[Oe*4]+"%"),$e.setAttribute("stop-color","rgb("+Ve[Oe*4+1]+","+Ve[Oe*4+2]+","+Ve[Oe*4+3]+")")}if(Ae&&(_e.g._omdf||Se)){var Xe=_e.g.o;for(_e.g._collapsable?Me=_e.cst:Me=_e.ost,Le=Me.length,Oe=0;Oe<Le;Oe+=1)$e=Me[Oe],_e.g._collapsable||$e.setAttribute("offset",Xe[Oe*2]+"%"),$e.setAttribute("stop-opacity",Xe[Oe*2+1])}if(Z.t===1)(_e.e._mdf||Se)&&(Ee.setAttribute("x2",Te[0]),Ee.setAttribute("y2",Te[1]),Ae&&!_e.g._collapsable&&(_e.of.setAttribute("x2",Te[0]),_e.of.setAttribute("y2",Te[1])));else{var Ue;if((_e.s._mdf||_e.e._mdf||Se)&&(Ue=Math.sqrt(Math.pow(Re[0]-Te[0],2)+Math.pow(Re[1]-Te[1],2)),Ee.setAttribute("r",Ue),Ae&&!_e.g._collapsable&&_e.of.setAttribute("r",Ue)),_e.e._mdf||_e.h._mdf||_e.a._mdf||Se){Ue||(Ue=Math.sqrt(Math.pow(Re[0]-Te[0],2)+Math.pow(Re[1]-Te[1],2)));var We=Math.atan2(Te[1]-Re[1],Te[0]-Re[0]),ze=_e.h.v;ze>=1?ze=.99:ze<=-1&&(ze=-.99);var He=Ue*ze,je=Math.cos(We+_e.a.v)*He+Re[0],Ne=Math.sin(We+_e.a.v)*He+Re[1];Ee.setAttribute("fx",je),Ee.setAttribute("fy",Ne),Ae&&!_e.g._collapsable&&(_e.of.setAttribute("fx",je),_e.of.setAttribute("fy",Ne))}}}function xe(Z,_e,Se){var Ee=_e.style,Ae=_e.d;Ae&&(Ae._mdf||Se)&&Ae.dashStr&&(Ee.pElem.setAttribute("stroke-dasharray",Ae.dashStr),Ee.pElem.setAttribute("stroke-dashoffset",Ae.dashoffset[0])),_e.c&&(_e.c._mdf||Se)&&Ee.pElem.setAttribute("stroke","rgb("+bmFloor(_e.c.v[0])+","+bmFloor(_e.c.v[1])+","+bmFloor(_e.c.v[2])+")"),(_e.o._mdf||Se)&&Ee.pElem.setAttribute("stroke-opacity",_e.o.v),(_e.w._mdf||Se)&&(Ee.pElem.setAttribute("stroke-width",_e.w.v),Ee.msElem&&Ee.msElem.setAttribute("stroke-width",_e.w.v))}return I}();function SVGShapeElement(C,E,I){this.shapes=[],this.shapesData=C.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(C,E,I),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var C,E=this.shapes.length,I,B,U=this.stylesList.length,V,X=[],Y=!1;for(B=0;B<U;B+=1){for(V=this.stylesList[B],Y=!1,X.length=0,C=0;C<E;C+=1)I=this.shapes[C],I.styles.indexOf(V)!==-1&&(X.push(I),Y=I._isAnimated||Y);X.length>1&&Y&&this.setShapesAsAnimated(X)}},SVGShapeElement.prototype.setShapesAsAnimated=function(C){var E,I=C.length;for(E=0;E<I;E+=1)C[E].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(C,E){var I,B=new SVGStyleData(C,E),U=B.pElem;if(C.ty==="st")I=new SVGStrokeStyleData(this,C,B);else if(C.ty==="fl")I=new SVGFillStyleData(this,C,B);else if(C.ty==="gf"||C.ty==="gs"){var V=C.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;I=new V(this,C,B),this.globalData.defs.appendChild(I.gf),I.maskId&&(this.globalData.defs.appendChild(I.ms),this.globalData.defs.appendChild(I.of),U.setAttribute("mask","url("+getLocationHref()+"#"+I.maskId+")"))}else C.ty==="no"&&(I=new SVGNoStyleData(this,C,B));return(C.ty==="st"||C.ty==="gs")&&(U.setAttribute("stroke-linecap",lineCapEnum[C.lc||2]),U.setAttribute("stroke-linejoin",lineJoinEnum[C.lj||2]),U.setAttribute("fill-opacity","0"),C.lj===1&&U.setAttribute("stroke-miterlimit",C.ml)),C.r===2&&U.setAttribute("fill-rule","evenodd"),C.ln&&U.setAttribute("id",C.ln),C.cl&&U.setAttribute("class",C.cl),C.bm&&(U.style["mix-blend-mode"]=getBlendMode(C.bm)),this.stylesList.push(B),this.addToAnimatedContents(C,I),I},SVGShapeElement.prototype.createGroupElement=function(C){var E=new ShapeGroupData;return C.ln&&E.gr.setAttribute("id",C.ln),C.cl&&E.gr.setAttribute("class",C.cl),C.bm&&(E.gr.style["mix-blend-mode"]=getBlendMode(C.bm)),E},SVGShapeElement.prototype.createTransformElement=function(C,E){var I=TransformPropertyFactory.getTransformProperty(this,C,this),B=new SVGTransformData(I,I.o,E);return this.addToAnimatedContents(C,B),B},SVGShapeElement.prototype.createShapeElement=function(C,E,I){var B=4;C.ty==="rc"?B=5:C.ty==="el"?B=6:C.ty==="sr"&&(B=7);var U=ShapePropertyFactory.getShapeProp(this,C,B,this),V=new SVGShapeData(E,I,U);return this.shapes.push(V),this.addShapeToModifiers(V),this.addToAnimatedContents(C,V),V},SVGShapeElement.prototype.addToAnimatedContents=function(C,E){for(var I=0,B=this.animatedContents.length;I<B;){if(this.animatedContents[I].element===E)return;I+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(C),element:E,data:C})},SVGShapeElement.prototype.setElementStyles=function(C){var E=C.styles,I,B=this.stylesList.length;for(I=0;I<B;I+=1)this.stylesList[I].closed||E.push(this.stylesList[I])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var C,E=this.itemsData.length;for(C=0;C<E;C+=1)this.prevViewData[C]=this.itemsData[C];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),E=this.dynamicProperties.length,C=0;C<E;C+=1)this.dynamicProperties[C].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(C,E,I,B,U,V,X){var Y=[].concat(V),K,J=C.length-1,xe,Z,_e=[],Se=[],Ee,Ae,Re;for(K=J;K>=0;K-=1){if(Re=this.searchProcessedElement(C[K]),Re?E[K]=I[Re-1]:C[K]._render=X,C[K].ty==="fl"||C[K].ty==="st"||C[K].ty==="gf"||C[K].ty==="gs"||C[K].ty==="no")Re?E[K].style.closed=!1:E[K]=this.createStyleElement(C[K],U),C[K]._render&&E[K].style.pElem.parentNode!==B&&B.appendChild(E[K].style.pElem),_e.push(E[K].style);else if(C[K].ty==="gr"){if(!Re)E[K]=this.createGroupElement(C[K]);else for(Z=E[K].it.length,xe=0;xe<Z;xe+=1)E[K].prevViewData[xe]=E[K].it[xe];this.searchShapes(C[K].it,E[K].it,E[K].prevViewData,E[K].gr,U+1,Y,X),C[K]._render&&E[K].gr.parentNode!==B&&B.appendChild(E[K].gr)}else C[K].ty==="tr"?(Re||(E[K]=this.createTransformElement(C[K],B)),Ee=E[K].transform,Y.push(Ee)):C[K].ty==="sh"||C[K].ty==="rc"||C[K].ty==="el"||C[K].ty==="sr"?(Re||(E[K]=this.createShapeElement(C[K],Y,U)),this.setElementStyles(E[K])):C[K].ty==="tm"||C[K].ty==="rd"||C[K].ty==="ms"||C[K].ty==="pb"||C[K].ty==="zz"||C[K].ty==="op"?(Re?(Ae=E[K],Ae.closed=!1):(Ae=ShapeModifiers.getModifier(C[K].ty),Ae.init(this,C[K]),E[K]=Ae,this.shapeModifiers.push(Ae)),Se.push(Ae)):C[K].ty==="rp"&&(Re?(Ae=E[K],Ae.closed=!0):(Ae=ShapeModifiers.getModifier(C[K].ty),E[K]=Ae,Ae.init(this,C,K,E),this.shapeModifiers.push(Ae),X=!1),Se.push(Ae));this.addProcessedElement(C[K],K+1)}for(J=_e.length,K=0;K<J;K+=1)_e[K].closed=!0;for(J=Se.length,K=0;K<J;K+=1)Se[K].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var C,E=this.stylesList.length;for(C=0;C<E;C+=1)this.stylesList[C].reset();for(this.renderShape(),C=0;C<E;C+=1)(this.stylesList[C]._mdf||this._isFirstFrame)&&(this.stylesList[C].msElem&&(this.stylesList[C].msElem.setAttribute("d",this.stylesList[C].d),this.stylesList[C].d="M0 0"+this.stylesList[C].d),this.stylesList[C].pElem.setAttribute("d",this.stylesList[C].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var C,E=this.animatedContents.length,I;for(C=0;C<E;C+=1)I=this.animatedContents[C],(this._isFirstFrame||I.element._isAnimated)&&I.data!==!0&&I.fn(I.data,I.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(C,E,I,B,U,V){this.o=C,this.sw=E,this.sc=I,this.fc=B,this.m=U,this.p=V,this._mdf={o:!0,sw:!!E,sc:!!I,fc:!!B,m:!0,p:!0}}LetterProps.prototype.update=function(C,E,I,B,U,V){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 X=!1;return this.o!==C&&(this.o=C,this._mdf.o=!0,X=!0),this.sw!==E&&(this.sw=E,this._mdf.sw=!0,X=!0),this.sc!==I&&(this.sc=I,this._mdf.sc=!0,X=!0),this.fc!==B&&(this.fc=B,this._mdf.fc=!0,X=!0),this.m!==U&&(this.m=U,this._mdf.m=!0,X=!0),V.length&&(this.p[0]!==V[0]||this.p[1]!==V[1]||this.p[4]!==V[4]||this.p[5]!==V[5]||this.p[12]!==V[12]||this.p[13]!==V[13])&&(this.p=V,this._mdf.p=!0,X=!0),X};function TextProperty(C,E){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,E.d&&E.d.sid&&(E.d=C.globalData.slotManager.getProp(E.d)),this.data=E,this.elem=C,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)}TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(C,E){for(var I in E)Object.prototype.hasOwnProperty.call(E,I)&&(C[I]=E[I]);return C},TextProperty.prototype.setCurrentData=function(C){C.__complete||this.completeTextData(C),this.currentData=C,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(C){this.effectsSequence.push(C),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(C){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!C)){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);return}this.lock=!0,this._mdf=!1;var B,U=this.effectsSequence.length,V=C||this.data.d.k[this.keysIndex].s;for(B=0;B<U;B+=1)I!==this.keysIndex?V=this.effectsSequence[B](V,V.t):V=this.effectsSequence[B](this.currentData,V.t);E!==V&&this.setCurrentData(V),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var C=this.data.d.k,E=this.elem.comp.renderedFrame,I=0,B=C.length;I<=B-1&&!(I===B-1||C[I+1].t>E);)I+=1;return this.keysIndex!==I&&(this.keysIndex=I),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(C){for(var E=[],I=0,B=C.length,U,V,X=!1,Y=!1,K="";I<B;)X=Y,Y=!1,U=C.charCodeAt(I),K=C.charAt(I),FontManager.isCombinedCharacter(U)?X=!0:U>=55296&&U<=56319?FontManager.isRegionalFlag(C,I)?K=C.substr(I,14):(V=C.charCodeAt(I+1),V>=56320&&V<=57343&&(FontManager.isModifier(U,V)?(K=C.substr(I,2),X=!0):FontManager.isFlagEmoji(C.substr(I,4))?K=C.substr(I,4):K=C.substr(I,2))):U>56319?(V=C.charCodeAt(I+1),FontManager.isVariationSelector(U)&&(X=!0)):FontManager.isZeroWidthJoiner(U)&&(X=!0,Y=!0),X?(E[E.length-1]+=K,X=!1):E.push(K),I+=K.length;return E},TextProperty.prototype.completeTextData=function(C){C.__complete=!0;var E=this.elem.globalData.fontManager,I=this.data,B=[],U,V,X,Y=0,K,J=I.m.g,xe=0,Z=0,_e=0,Se=[],Ee=0,Ae=0,Re,Te,we=E.getFontByName(C.f),Pe,Ie=0,Me=getFontProperties(we);C.fWeight=Me.weight,C.fStyle=Me.style,C.finalSize=C.s,C.finalText=this.buildFinalText(C.t),V=C.finalText.length,C.finalLineHeight=C.lh;var Oe=C.tr/1e3*C.finalSize,Le;if(C.sz)for(var $e=!0,Ve=C.sz[0],Xe=C.sz[1],Ue,We;$e;){We=this.buildFinalText(C.t),Ue=0,Ee=0,V=We.length,Oe=C.tr/1e3*C.finalSize;var ze=-1;for(U=0;U<V;U+=1)Le=We[U].charCodeAt(0),X=!1,We[U]===" "?ze=U:(Le===13||Le===3)&&(Ee=0,X=!0,Ue+=C.finalLineHeight||C.finalSize*1.2),E.chars?(Pe=E.getCharData(We[U],we.fStyle,we.fFamily),Ie=X?0:Pe.w*C.finalSize/100):Ie=E.measureText(We[U],C.f,C.finalSize),Ee+Ie>Ve&&We[U]!==" "?(ze===-1?V+=1:U=ze,Ue+=C.finalLineHeight||C.finalSize*1.2,We.splice(U,ze===U?1:0,"\r"),ze=-1,Ee=0):(Ee+=Ie,Ee+=Oe);Ue+=we.ascent*C.finalSize/100,this.canResize&&C.finalSize>this.minimumFontSize&&Xe<Ue?(C.finalSize-=1,C.finalLineHeight=C.finalSize*C.lh/C.s):(C.finalText=We,V=C.finalText.length,$e=!1)}Ee=-Oe,Ie=0;var He=0,je;for(U=0;U<V;U+=1)if(X=!1,je=C.finalText[U],Le=je.charCodeAt(0),Le===13||Le===3?(He=0,Se.push(Ee),Ae=Ee>Ae?Ee:Ae,Ee=-2*Oe,K="",X=!0,_e+=1):K=je,E.chars?(Pe=E.getCharData(je,we.fStyle,E.getFontByName(C.f).fFamily),Ie=X?0:Pe.w*C.finalSize/100):Ie=E.measureText(K,C.f,C.finalSize),je===" "?He+=Ie+Oe:(Ee+=Ie+Oe+He,He=0),B.push({l:Ie,an:Ie,add:xe,n:X,anIndexes:[],val:K,line:_e,animatorJustifyOffset:0}),J==2){if(xe+=Ie,K===""||K===" "||U===V-1){for((K===""||K===" ")&&(xe-=Ie);Z<=U;)B[Z].an=xe,B[Z].ind=Y,B[Z].extra=Ie,Z+=1;Y+=1,xe=0}}else if(J==3){if(xe+=Ie,K===""||U===V-1){for(K===""&&(xe-=Ie);Z<=U;)B[Z].an=xe,B[Z].ind=Y,B[Z].extra=Ie,Z+=1;xe=0,Y+=1}}else B[Y].ind=Y,B[Y].extra=0,Y+=1;if(C.l=B,Ae=Ee>Ae?Ee:Ae,Se.push(Ee),C.sz)C.boxWidth=C.sz[0],C.justifyOffset=0;else switch(C.boxWidth=Ae,C.j){case 1:C.justifyOffset=-C.boxWidth;break;case 2:C.justifyOffset=-C.boxWidth/2;break;default:C.justifyOffset=0}C.lineWidths=Se;var Ne=I.a,De,Fe;Te=Ne.length;var ke,Ge,Be=[];for(Re=0;Re<Te;Re+=1){for(De=Ne[Re],De.a.sc&&(C.strokeColorAnim=!0),De.a.sw&&(C.strokeWidthAnim=!0),(De.a.fc||De.a.fh||De.a.fs||De.a.fb)&&(C.fillColorAnim=!0),Ge=0,ke=De.s.b,U=0;U<V;U+=1)Fe=B[U],Fe.anIndexes[Re]=Ge,(ke==1&&Fe.val!==""||ke==2&&Fe.val!==""&&Fe.val!==" "||ke==3&&(Fe.n||Fe.val==" "||U==V-1)||ke==4&&(Fe.n||U==V-1))&&(De.s.rn===1&&Be.push(Ge),Ge+=1);I.a[Re].s.totalChars=Ge;var qe=-1,Ke;if(De.s.rn===1)for(U=0;U<V;U+=1)Fe=B[U],qe!=Fe.anIndexes[Re]&&(qe=Fe.anIndexes[Re],Ke=Be.splice(Math.floor(Math.random()*Be.length),1)[0]),Fe.anIndexes[Re]=Ke}C.yOffset=C.finalLineHeight||C.finalSize*1.2,C.ls=C.ls||0,C.ascent=we.ascent*C.finalSize/100},TextProperty.prototype.updateDocumentData=function(C,E){E=E===void 0?this.keysIndex:E;var I=this.copyData({},this.data.d.k[E].s);I=this.copyData(I,C),this.data.d.k[E].s=I,this.recalculate(E),this.setCurrentData(I),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(C){var E=this.data.d.k[C].s;E.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(E)},TextProperty.prototype.canResizeFont=function(C){this.canResize=C,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(C){this.minimumFontSize=Math.floor(C)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var C=Math.max,E=Math.min,I=Math.floor;function B(V,X){this._currentTextLength=-1,this.k=!1,this.data=X,this.elem=V,this.comp=V.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(V),this.s=PropertyFactory.getProp(V,X.s||{k:0},0,0,this),"e"in X?this.e=PropertyFactory.getProp(V,X.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(V,X.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(V,X.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(V,X.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(V,X.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(V,X.a,0,.01,this),this.dynamicProperties.length||this.getValue()}B.prototype={getMult:function(X){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var Y=0,K=0,J=1,xe=1;this.ne.v>0?Y=this.ne.v/100:K=-this.ne.v/100,this.xe.v>0?J=1-this.xe.v/100:xe=1+this.xe.v/100;var Z=BezierFactory.getBezierEasing(Y,K,J,xe).get,_e=0,Se=this.finalS,Ee=this.finalE,Ae=this.data.sh;if(Ae===2)Ee===Se?_e=X>=Ee?1:0:_e=C(0,E(.5/(Ee-Se)+(X-Se)/(Ee-Se),1)),_e=Z(_e);else if(Ae===3)Ee===Se?_e=X>=Ee?0:1:_e=1-C(0,E(.5/(Ee-Se)+(X-Se)/(Ee-Se),1)),_e=Z(_e);else if(Ae===4)Ee===Se?_e=0:(_e=C(0,E(.5/(Ee-Se)+(X-Se)/(Ee-Se),1)),_e<.5?_e*=2:_e=1-2*(_e-.5)),_e=Z(_e);else if(Ae===5){if(Ee===Se)_e=0;else{var Re=Ee-Se;X=E(C(0,X+.5-Se),Ee-Se);var Te=-Re/2+X,we=Re/2;_e=Math.sqrt(1-Te*Te/(we*we))}_e=Z(_e)}else Ae===6?(Ee===Se?_e=0:(X=E(C(0,X+.5-Se),Ee-Se),_e=(1+Math.cos(Math.PI+Math.PI*2*X/(Ee-Se)))/2),_e=Z(_e)):(X>=I(Se)&&(X-Se<0?_e=C(0,E(E(Ee,1)-(Se-X),1)):_e=C(0,E(Ee-X,1))),_e=Z(_e));if(this.sm.v!==100){var Pe=this.sm.v*.01;Pe===0&&(Pe=1e-8);var Ie=.5-Pe*.5;_e<Ie?_e=0:(_e=(_e-Ie)/Pe,_e>1&&(_e=1))}return _e*this.a.v},getValue:function(X){this.iterateDynamicProperties(),this._mdf=X||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,X&&this.data.r===2&&(this.e.v=this._currentTextLength);var Y=this.data.r===2?1:100/this.data.totalChars,K=this.o.v/Y,J=this.s.v/Y+K,xe=this.e.v/Y+K;if(J>xe){var Z=J;J=xe,xe=Z}this.finalS=J,this.finalE=xe}},extendPrototype([DynamicPropertyContainer],B);function U(V,X,Y){return new B(V,X)}return{getTextSelectorProp:U}}();function TextAnimatorDataProperty(C,E,I){var B={propType:!1},U=PropertyFactory.getProp,V=E.a;this.a={r:V.r?U(C,V.r,0,degToRads,I):B,rx:V.rx?U(C,V.rx,0,degToRads,I):B,ry:V.ry?U(C,V.ry,0,degToRads,I):B,sk:V.sk?U(C,V.sk,0,degToRads,I):B,sa:V.sa?U(C,V.sa,0,degToRads,I):B,s:V.s?U(C,V.s,1,.01,I):B,a:V.a?U(C,V.a,1,0,I):B,o:V.o?U(C,V.o,0,.01,I):B,p:V.p?U(C,V.p,1,0,I):B,sw:V.sw?U(C,V.sw,0,0,I):B,sc:V.sc?U(C,V.sc,1,0,I):B,fc:V.fc?U(C,V.fc,1,0,I):B,fh:V.fh?U(C,V.fh,0,0,I):B,fs:V.fs?U(C,V.fs,0,.01,I):B,fb:V.fb?U(C,V.fb,0,.01,I):B,t:V.t?U(C,V.t,0,0,I):B},this.s=TextSelectorProp.getTextSelectorProp(C,E.s,I),this.s.t=E.s.t}function TextAnimatorProperty(C,E,I){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=C,this._renderType=E,this._elem=I,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(I)}TextAnimatorProperty.prototype.searchProperties=function(){var C,E=this._textData.a.length,I,B=PropertyFactory.getProp;for(C=0;C<E;C+=1)I=this._textData.a[C],this._animatorsData[C]=new TextAnimatorDataProperty(this._elem,I,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:B(this._elem,this._textData.p.a,0,0,this),f:B(this._elem,this._textData.p.f,0,0,this),l:B(this._elem,this._textData.p.l,0,0,this),r:B(this._elem,this._textData.p.r,0,0,this),p:B(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=B(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(C,E){if(this.lettersChangedFlag=E,!(!this._mdf&&!this._isFirstFrame&&!E&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var I=this._moreOptions.alignment.v,B=this._animatorsData,U=this._textData,V=this.mHelper,X=this._renderType,Y=this.renderedLetters.length,K,J,xe,Z,_e=C.l,Se,Ee,Ae,Re,Te,we,Pe,Ie,Me,Oe,Le,$e,Ve,Xe,Ue;if(this._hasMaskedPath){if(Ue=this._pathData.m,!this._pathData.n||this._pathData._mdf){var We=Ue.v;this._pathData.r.v&&(We=We.reverse()),Se={tLength:0,segments:[]},Z=We._length-1;var ze;for($e=0,xe=0;xe<Z;xe+=1)ze=bez.buildBezierData(We.v[xe],We.v[xe+1],[We.o[xe][0]-We.v[xe][0],We.o[xe][1]-We.v[xe][1]],[We.i[xe+1][0]-We.v[xe+1][0],We.i[xe+1][1]-We.v[xe+1][1]]),Se.tLength+=ze.segmentLength,Se.segments.push(ze),$e+=ze.segmentLength;xe=Z,Ue.v.c&&(ze=bez.buildBezierData(We.v[xe],We.v[0],[We.o[xe][0]-We.v[xe][0],We.o[xe][1]-We.v[xe][1]],[We.i[0][0]-We.v[0][0],We.i[0][1]-We.v[0][1]]),Se.tLength+=ze.segmentLength,Se.segments.push(ze),$e+=ze.segmentLength),this._pathData.pi=Se}if(Se=this._pathData.pi,Ee=this._pathData.f.v,Pe=0,we=1,Re=0,Te=!0,Oe=Se.segments,Ee<0&&Ue.v.c)for(Se.tLength<Math.abs(Ee)&&(Ee=-Math.abs(Ee)%Se.tLength),Pe=Oe.length-1,Me=Oe[Pe].points,we=Me.length-1;Ee<0;)Ee+=Me[we].partialLength,we-=1,we<0&&(Pe-=1,Me=Oe[Pe].points,we=Me.length-1);Me=Oe[Pe].points,Ie=Me[we-1],Ae=Me[we],Le=Ae.partialLength}Z=_e.length,K=0,J=0;var He=C.finalSize*1.2*.714,je=!0,Ne,De,Fe,ke,Ge;ke=B.length;var Be,qe=-1,Ke,Ye,tt,Ze=Ee,it=Pe,at=we,st=-1,Je,et,rt,nt,Qe,ot,lt,ut,mt="",_t=this.defaultPropsArray,dt;if(C.j===2||C.j===1){var vt=0,pt=0,bt=C.j===2?-.5:-1,St=0,It=!0;for(xe=0;xe<Z;xe+=1)if(_e[xe].n){for(vt&&(vt+=pt);St<xe;)_e[St].animatorJustifyOffset=vt,St+=1;vt=0,It=!0}else{for(Fe=0;Fe<ke;Fe+=1)Ne=B[Fe].a,Ne.t.propType&&(It&&C.j===2&&(pt+=Ne.t.v*bt),De=B[Fe].s,Be=De.getMult(_e[xe].anIndexes[Fe],U.a[Fe].s.totalChars),Be.length?vt+=Ne.t.v*Be[0]*bt:vt+=Ne.t.v*Be*bt);It=!1}for(vt&&(vt+=pt);St<xe;)_e[St].animatorJustifyOffset=vt,St+=1}for(xe=0;xe<Z;xe+=1){if(V.reset(),Je=1,_e[xe].n)K=0,J+=C.yOffset,J+=je?1:0,Ee=Ze,je=!1,this._hasMaskedPath&&(Pe=it,we=at,Me=Oe[Pe].points,Ie=Me[we-1],Ae=Me[we],Le=Ae.partialLength,Re=0),mt="",ut="",ot="",dt="",_t=this.defaultPropsArray;else{if(this._hasMaskedPath){if(st!==_e[xe].line){switch(C.j){case 1:Ee+=$e-C.lineWidths[_e[xe].line];break;case 2:Ee+=($e-C.lineWidths[_e[xe].line])/2;break}st=_e[xe].line}qe!==_e[xe].ind&&(_e[qe]&&(Ee+=_e[qe].extra),Ee+=_e[xe].an/2,qe=_e[xe].ind),Ee+=I[0]*_e[xe].an*.005;var Pt=0;for(Fe=0;Fe<ke;Fe+=1)Ne=B[Fe].a,Ne.p.propType&&(De=B[Fe].s,Be=De.getMult(_e[xe].anIndexes[Fe],U.a[Fe].s.totalChars),Be.length?Pt+=Ne.p.v[0]*Be[0]:Pt+=Ne.p.v[0]*Be),Ne.a.propType&&(De=B[Fe].s,Be=De.getMult(_e[xe].anIndexes[Fe],U.a[Fe].s.totalChars),Be.length?Pt+=Ne.a.v[0]*Be[0]:Pt+=Ne.a.v[0]*Be);for(Te=!0,this._pathData.a.v&&(Ee=_e[0].an*.5+($e-this._pathData.f.v-_e[0].an*.5-_e[_e.length-1].an*.5)*qe/(Z-1),Ee+=this._pathData.f.v);Te;)Re+Le>=Ee+Pt||!Me?(Ve=(Ee+Pt-Re)/Ae.partialLength,Ye=Ie.point[0]+(Ae.point[0]-Ie.point[0])*Ve,tt=Ie.point[1]+(Ae.point[1]-Ie.point[1])*Ve,V.translate(-I[0]*_e[xe].an*.005,-(I[1]*He)*.01),Te=!1):Me&&(Re+=Ae.partialLength,we+=1,we>=Me.length&&(we=0,Pe+=1,Oe[Pe]?Me=Oe[Pe].points:Ue.v.c?(we=0,Pe=0,Me=Oe[Pe].points):(Re-=Ae.partialLength,Me=null)),Me&&(Ie=Ae,Ae=Me[we],Le=Ae.partialLength));Ke=_e[xe].an/2-_e[xe].add,V.translate(-Ke,0,0)}else Ke=_e[xe].an/2-_e[xe].add,V.translate(-Ke,0,0),V.translate(-I[0]*_e[xe].an*.005,-I[1]*He*.01,0);for(Fe=0;Fe<ke;Fe+=1)Ne=B[Fe].a,Ne.t.propType&&(De=B[Fe].s,Be=De.getMult(_e[xe].anIndexes[Fe],U.a[Fe].s.totalChars),(K!==0||C.j!==0)&&(this._hasMaskedPath?Be.length?Ee+=Ne.t.v*Be[0]:Ee+=Ne.t.v*Be:Be.length?K+=Ne.t.v*Be[0]:K+=Ne.t.v*Be));for(C.strokeWidthAnim&&(rt=C.sw||0),C.strokeColorAnim&&(C.sc?et=[C.sc[0],C.sc[1],C.sc[2]]:et=[0,0,0]),C.fillColorAnim&&C.fc&&(nt=[C.fc[0],C.fc[1],C.fc[2]]),Fe=0;Fe<ke;Fe+=1)Ne=B[Fe].a,Ne.a.propType&&(De=B[Fe].s,Be=De.getMult(_e[xe].anIndexes[Fe],U.a[Fe].s.totalChars),Be.length?V.translate(-Ne.a.v[0]*Be[0],-Ne.a.v[1]*Be[1],Ne.a.v[2]*Be[2]):V.translate(-Ne.a.v[0]*Be,-Ne.a.v[1]*Be,Ne.a.v[2]*Be));for(Fe=0;Fe<ke;Fe+=1)Ne=B[Fe].a,Ne.s.propType&&(De=B[Fe].s,Be=De.getMult(_e[xe].anIndexes[Fe],U.a[Fe].s.totalChars),Be.length?V.scale(1+(Ne.s.v[0]-1)*Be[0],1+(Ne.s.v[1]-1)*Be[1],1):V.scale(1+(Ne.s.v[0]-1)*Be,1+(Ne.s.v[1]-1)*Be,1));for(Fe=0;Fe<ke;Fe+=1){if(Ne=B[Fe].a,De=B[Fe].s,Be=De.getMult(_e[xe].anIndexes[Fe],U.a[Fe].s.totalChars),Ne.sk.propType&&(Be.length?V.skewFromAxis(-Ne.sk.v*Be[0],Ne.sa.v*Be[1]):V.skewFromAxis(-Ne.sk.v*Be,Ne.sa.v*Be)),Ne.r.propType&&(Be.length?V.rotateZ(-Ne.r.v*Be[2]):V.rotateZ(-Ne.r.v*Be)),Ne.ry.propType&&(Be.length?V.rotateY(Ne.ry.v*Be[1]):V.rotateY(Ne.ry.v*Be)),Ne.rx.propType&&(Be.length?V.rotateX(Ne.rx.v*Be[0]):V.rotateX(Ne.rx.v*Be)),Ne.o.propType&&(Be.length?Je+=(Ne.o.v*Be[0]-Je)*Be[0]:Je+=(Ne.o.v*Be-Je)*Be),C.strokeWidthAnim&&Ne.sw.propType&&(Be.length?rt+=Ne.sw.v*Be[0]:rt+=Ne.sw.v*Be),C.strokeColorAnim&&Ne.sc.propType)for(Qe=0;Qe<3;Qe+=1)Be.length?et[Qe]+=(Ne.sc.v[Qe]-et[Qe])*Be[0]:et[Qe]+=(Ne.sc.v[Qe]-et[Qe])*Be;if(C.fillColorAnim&&C.fc){if(Ne.fc.propType)for(Qe=0;Qe<3;Qe+=1)Be.length?nt[Qe]+=(Ne.fc.v[Qe]-nt[Qe])*Be[0]:nt[Qe]+=(Ne.fc.v[Qe]-nt[Qe])*Be;Ne.fh.propType&&(Be.length?nt=addHueToRGB(nt,Ne.fh.v*Be[0]):nt=addHueToRGB(nt,Ne.fh.v*Be)),Ne.fs.propType&&(Be.length?nt=addSaturationToRGB(nt,Ne.fs.v*Be[0]):nt=addSaturationToRGB(nt,Ne.fs.v*Be)),Ne.fb.propType&&(Be.length?nt=addBrightnessToRGB(nt,Ne.fb.v*Be[0]):nt=addBrightnessToRGB(nt,Ne.fb.v*Be))}}for(Fe=0;Fe<ke;Fe+=1)Ne=B[Fe].a,Ne.p.propType&&(De=B[Fe].s,Be=De.getMult(_e[xe].anIndexes[Fe],U.a[Fe].s.totalChars),this._hasMaskedPath?Be.length?V.translate(0,Ne.p.v[1]*Be[0],-Ne.p.v[2]*Be[1]):V.translate(0,Ne.p.v[1]*Be,-Ne.p.v[2]*Be):Be.length?V.translate(Ne.p.v[0]*Be[0],Ne.p.v[1]*Be[1],-Ne.p.v[2]*Be[2]):V.translate(Ne.p.v[0]*Be,Ne.p.v[1]*Be,-Ne.p.v[2]*Be));if(C.strokeWidthAnim&&(ot=rt<0?0:rt),C.strokeColorAnim&&(lt="rgb("+Math.round(et[0]*255)+","+Math.round(et[1]*255)+","+Math.round(et[2]*255)+")"),C.fillColorAnim&&C.fc&&(ut="rgb("+Math.round(nt[0]*255)+","+Math.round(nt[1]*255)+","+Math.round(nt[2]*255)+")"),this._hasMaskedPath){if(V.translate(0,-C.ls),V.translate(0,I[1]*He*.01+J,0),this._pathData.p.v){Xe=(Ae.point[1]-Ie.point[1])/(Ae.point[0]-Ie.point[0]);var Ot=Math.atan(Xe)*180/Math.PI;Ae.point[0]<Ie.point[0]&&(Ot+=180),V.rotate(-Ot*Math.PI/180)}V.translate(Ye,tt,0),Ee-=I[0]*_e[xe].an*.005,_e[xe+1]&&qe!==_e[xe+1].ind&&(Ee+=_e[xe].an/2,Ee+=C.tr*.001*C.finalSize)}else{switch(V.translate(K,J,0),C.ps&&V.translate(C.ps[0],C.ps[1]+C.ascent,0),C.j){case 1:V.translate(_e[xe].animatorJustifyOffset+C.justifyOffset+(C.boxWidth-C.lineWidths[_e[xe].line]),0,0);break;case 2:V.translate(_e[xe].animatorJustifyOffset+C.justifyOffset+(C.boxWidth-C.lineWidths[_e[xe].line])/2,0,0);break}V.translate(0,-C.ls),V.translate(Ke,0,0),V.translate(I[0]*_e[xe].an*.005,I[1]*He*.01,0),K+=_e[xe].l+C.tr*.001*C.finalSize}X==="html"?mt=V.toCSS():X==="svg"?mt=V.to2dCSS():_t=[V.props[0],V.props[1],V.props[2],V.props[3],V.props[4],V.props[5],V.props[6],V.props[7],V.props[8],V.props[9],V.props[10],V.props[11],V.props[12],V.props[13],V.props[14],V.props[15]],dt=Je}Y<=xe?(Ge=new LetterProps(dt,ot,lt,ut,mt,_t),this.renderedLetters.push(Ge),Y+=1,this.lettersChangedFlag=!0):(Ge=this.renderedLetters[xe],this.lettersChangedFlag=Ge.update(dt,ot,lt,ut,mt,_t)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty);function ITextElement(){}ITextElement.prototype.initElement=function(C,E,I){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(C,E,I),this.textProperty=new TextProperty(this,C.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(C.t,this.renderType,this),this.initTransform(C,E,I),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(C){this._mdf=!1,this.prepareRenderableFrame(C),this.prepareProperties(C,this.isInRange)},ITextElement.prototype.createPathShape=function(C,E){var I,B=E.length,U,V="";for(I=0;I<B;I+=1)E[I].ty==="sh"&&(U=E[I].ks.k,V+=buildShapeString(U,U.i.length,!0,C));return V},ITextElement.prototype.updateDocumentData=function(C,E){this.textProperty.updateDocumentData(C,E)},ITextElement.prototype.canResizeFont=function(C){this.textProperty.canResizeFont(C)},ITextElement.prototype.setMinimumFontSize=function(C){this.textProperty.setMinimumFontSize(C)},ITextElement.prototype.applyTextPropertiesToMatrix=function(C,E,I,B,U){switch(C.ps&&E.translate(C.ps[0],C.ps[1]+C.ascent,0),E.translate(0,-C.ls,0),C.j){case 1:E.translate(C.justifyOffset+(C.boxWidth-C.lineWidths[I]),0,0);break;case 2:E.translate(C.justifyOffset+(C.boxWidth-C.lineWidths[I])/2,0,0);break}E.translate(B,U,0)},ITextElement.prototype.buildColor=function(C){return"rgb("+Math.round(C[0]*255)+","+Math.round(C[1]*255)+","+Math.round(C[2]*255)+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(C,E,I){this.textSpans=[],this.renderType="svg",this.initElement(C,E,I)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(C){for(var E=0,I=C.length,B=[],U="";E<I;)C[E]===String.fromCharCode(13)||C[E]===String.fromCharCode(3)?(B.push(U),U=""):U+=C[E],E+=1;return B.push(U),B},SVGTextLottieElement.prototype.buildShapeData=function(C,E){if(C.shapes&&C.shapes.length){var I=C.shapes[0];if(I.it){var B=I.it[I.it.length-1];B.s&&(B.s.k[0]=E,B.s.k[1]=E)}}return C},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var C,E,I=this.textProperty.currentData;this.renderedLetters=createSizedArray(I?I.l.length:0),I.fc?this.layerElement.setAttribute("fill",this.buildColor(I.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),I.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(I.sc)),this.layerElement.setAttribute("stroke-width",I.sw)),this.layerElement.setAttribute("font-size",I.finalSize);var B=this.globalData.fontManager.getFontByName(I.f);if(B.fClass)this.layerElement.setAttribute("class",B.fClass);else{this.layerElement.setAttribute("font-family",B.fFamily);var U=I.fWeight,V=I.fStyle;this.layerElement.setAttribute("font-style",V),this.layerElement.setAttribute("font-weight",U)}this.layerElement.setAttribute("aria-label",I.t);var X=I.l||[],Y=!!this.globalData.fontManager.chars;E=X.length;var K,J=this.mHelper,xe="",Z=this.data.singleShape,_e=0,Se=0,Ee=!0,Ae=I.tr*.001*I.finalSize;if(Z&&!Y&&!I.sz){var Re=this.textContainer,Te="start";switch(I.j){case 1:Te="end";break;case 2:Te="middle";break;default:Te="start";break}Re.setAttribute("text-anchor",Te),Re.setAttribute("letter-spacing",Ae);var we=this.buildTextContents(I.finalText);for(E=we.length,Se=I.ps?I.ps[1]+I.ascent:0,C=0;C<E;C+=1)K=this.textSpans[C].span||createNS("tspan"),K.textContent=we[C],K.setAttribute("x",0),K.setAttribute("y",Se),K.style.display="inherit",Re.appendChild(K),this.textSpans[C]||(this.textSpans[C]={span:null,glyph:null}),this.textSpans[C].span=K,Se+=I.finalLineHeight;this.layerElement.appendChild(Re)}else{var Pe=this.textSpans.length,Ie;for(C=0;C<E;C+=1){if(this.textSpans[C]||(this.textSpans[C]={span:null,childSpan:null,glyph:null}),!Y||!Z||C===0){if(K=Pe>C?this.textSpans[C].span:createNS(Y?"g":"text"),Pe<=C){if(K.setAttribute("stroke-linecap","butt"),K.setAttribute("stroke-linejoin","round"),K.setAttribute("stroke-miterlimit","4"),this.textSpans[C].span=K,Y){var Me=createNS("g");K.appendChild(Me),this.textSpans[C].childSpan=Me}this.textSpans[C].span=K,this.layerElement.appendChild(K)}K.style.display="inherit"}if(J.reset(),Z&&(X[C].n&&(_e=-Ae,Se+=I.yOffset,Se+=Ee?1:0,Ee=!1),this.applyTextPropertiesToMatrix(I,J,X[C].line,_e,Se),_e+=X[C].l||0,_e+=Ae),Y){Ie=this.globalData.fontManager.getCharData(I.finalText[C],B.fStyle,this.globalData.fontManager.getFontByName(I.f).fFamily);var Oe;if(Ie.t===1)Oe=new SVGCompElement(Ie.data,this.globalData,this);else{var Le=emptyShapeData;Ie.data&&Ie.data.shapes&&(Le=this.buildShapeData(Ie.data,I.finalSize)),Oe=new SVGShapeElement(Le,this.globalData,this)}if(this.textSpans[C].glyph){var $e=this.textSpans[C].glyph;this.textSpans[C].childSpan.removeChild($e.layerElement),$e.destroy()}this.textSpans[C].glyph=Oe,Oe._debug=!0,Oe.prepareFrame(0),Oe.renderFrame(),this.textSpans[C].childSpan.appendChild(Oe.layerElement),Ie.t===1&&this.textSpans[C].childSpan.setAttribute("transform","scale("+I.finalSize/100+","+I.finalSize/100+")")}else Z&&K.setAttribute("transform","translate("+J.props[12]+","+J.props[13]+")"),K.textContent=X[C].val,K.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}Z&&K&&K.setAttribute("d",xe)}for(;C<this.textSpans.length;)this.textSpans[C].span.style.display="none",C+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var C=this.layerElement.getBBox();this.bbox={top:C.y,left:C.x,width:C.width,height:C.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var C,E=this.textSpans.length,I;for(this.renderedFrame=this.comp.renderedFrame,C=0;C<E;C+=1)I=this.textSpans[C].glyph,I&&(I.prepareFrame(this.comp.renderedFrame-this.data.st),I._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var C,E,I=this.textAnimator.renderedLetters,B=this.textProperty.currentData.l;E=B.length;var U,V,X;for(C=0;C<E;C+=1)B[C].n||(U=I[C],V=this.textSpans[C].span,X=this.textSpans[C].glyph,X&&X.renderFrame(),U._mdf.m&&V.setAttribute("transform",U.m),U._mdf.o&&V.setAttribute("opacity",U.o),U._mdf.sw&&V.setAttribute("stroke-width",U.sw),U._mdf.sc&&V.setAttribute("stroke",U.sc),U._mdf.fc&&V.setAttribute("fill",U.fc))}};function ISolidElement(C,E,I){this.initElement(C,E,I)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var C=createNS("rect");C.setAttribute("width",this.data.sw),C.setAttribute("height",this.data.sh),C.setAttribute("fill",this.data.sc),this.layerElement.appendChild(C)};function NullElement(C,E,I){this.initFrame(),this.initBaseData(C,E,I),this.initFrame(),this.initTransform(C,E,I),this.initHierarchy()}NullElement.prototype.prepareFrame=function(C){this.prepareProperties(C,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement);function SVGRendererBase(){}extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(C){return new NullElement(C,this.globalData,this)},SVGRendererBase.prototype.createShape=function(C){return new SVGShapeElement(C,this.globalData,this)},SVGRendererBase.prototype.createText=function(C){return new SVGTextLottieElement(C,this.globalData,this)},SVGRendererBase.prototype.createImage=function(C){return new IImageElement(C,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(C){return new ISolidElement(C,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(C){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 "+C.w+" "+C.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",C.w),this.svgElement.setAttribute("height",C.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),this.renderConfig.focusable!==void 0&&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(C,E),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=C;var I=createNS("clipPath"),B=createNS("rect");B.setAttribute("width",C.w),B.setAttribute("height",C.h),B.setAttribute("x",0),B.setAttribute("y",0);var U=createElementID();I.setAttribute("id",U),I.appendChild(B),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+U+")"),E.appendChild(I),this.layers=C.layers,this.elements=createSizedArray(C.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var C,E=this.layers?this.layers.length:0;for(C=0;C<E;C+=1)this.elements[C]&&this.elements[C].destroy&&this.elements[C].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(C){var E=0,I=this.layers.length;for(E=0;E<I;E+=1)if(this.layers[E].ind===C)return E;return-1},SVGRendererBase.prototype.buildItem=function(C){var E=this.elements;if(!(E[C]||this.layers[C].ty===99)){E[C]=!0;var I=this.createItem(this.layers[C]);if(E[C]=I,getExpressionsPlugin()&&(this.layers[C].ty===0&&this.globalData.projectInterface.registerComposition(I),I.initExpressions()),this.appendElementInPos(I,C),this.layers[C].tt){var B="tp"in this.layers[C]?this.findIndexByInd(this.layers[C].tp):C-1;if(B===-1)return;if(!this.elements[B]||this.elements[B]===!0)this.buildItem(B),this.addPendingElement(I);else{var U=E[B],V=U.getMatte(this.layers[C].tt);I.setMatte(V)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var C=this.pendingElements.pop();if(C.checkParenting(),C.data.tt)for(var E=0,I=this.elements.length;E<I;){if(this.elements[E]===C){var B="tp"in C.data?this.findIndexByInd(C.data.tp):E-1,U=this.elements[B],V=U.getMatte(this.layers[E].tt);C.setMatte(V);break}E+=1}}},SVGRendererBase.prototype.renderFrame=function(C){if(!(this.renderedFrame===C||this.destroyed)){C===null?C=this.renderedFrame:this.renderedFrame=C,this.globalData.frameNum=C,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=C,this.globalData._mdf=!1;var E,I=this.layers.length;for(this.completeLayers||this.checkLayers(C),E=I-1;E>=0;E-=1)(this.completeLayers||this.elements[E])&&this.elements[E].prepareFrame(C-this.layers[E].st);if(this.globalData._mdf)for(E=0;E<I;E+=1)(this.completeLayers||this.elements[E])&&this.elements[E].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(C,E){var I=C.getBaseElement();if(I){for(var B=0,U;B<E;)this.elements[B]&&this.elements[B]!==!0&&this.elements[B].getBaseElement()&&(U=this.elements[B].getBaseElement()),B+=1;U?this.layerElement.insertBefore(I,U):this.layerElement.appendChild(I)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"};function ICompElement(){}extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(C,E,I){this.initFrame(),this.initBaseData(C,E,I),this.initTransform(C,E,I),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!E.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(C){if(this._mdf=!1,this.prepareRenderableFrame(C),this.prepareProperties(C,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=C/this.data.sr;else{var E=this.tm.v;E===this.data.op&&(E=this.data.op-1),this.renderedFrame=E}var I,B=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),I=B-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))}},ICompElement.prototype.renderInnerContent=function(){var C,E=this.layers.length;for(C=0;C<E;C+=1)(this.completeLayers||this.elements[C])&&this.elements[C].renderFrame()},ICompElement.prototype.setElements=function(C){this.elements=C},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var C,E=this.layers.length;for(C=0;C<E;C+=1)this.elements[C]&&this.elements[C].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(C,E,I){this.layers=C.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(C,E,I),this.tm=C.tm?PropertyFactory.getProp(this,C.tm,0,E.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(C){return new SVGCompElement(C,this.globalData,this)};function SVGRenderer(C,E){this.animationItem=C,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var I="";if(E&&E.title){var B=createNS("title"),U=createElementID();B.setAttribute("id",U),B.textContent=E.title,this.svgElement.appendChild(B),I+=U}if(E&&E.description){var V=createNS("desc"),X=createElementID();V.setAttribute("id",X),V.textContent=E.description,this.svgElement.appendChild(V),I+=" "+X}I&&this.svgElement.setAttribute("aria-labelledby",I);var Y=createNS("defs");this.svgElement.appendChild(Y);var K=createNS("g");this.svgElement.appendChild(K),this.layerElement=K,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&&E.hideOnTransparent===!1),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||E.runExpressions===void 0||E.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:Y,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(C){return new SVGCompElement(C,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(E){var I,B=E.length,U="_";for(I=0;I<B;I+=1)U+=E[I].transform.key+"_";var V=this.sequences[U];return V||(V={transforms:[].concat(E),finalTransform:new Matrix,_mdf:!1},this.sequences[U]=V,this.sequenceList.push(V)),V},processSequence:function(E,I){for(var B=0,U=E.transforms.length,V=I;B<U&&!I;){if(E.transforms[B].transform.mProps._mdf){V=!0;break}B+=1}if(V)for(E.finalTransform.reset(),B=U-1;B>=0;B-=1)E.finalTransform.multiply(E.transforms[B].transform.mProps.v);E._mdf=V},processSequences:function(E){var I,B=this.sequenceList.length;for(I=0;I<B;I+=1)this.processSequence(this.sequenceList[I],E)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var E="__lottie_element_luma_buffer",I=null,B=null,U=null;function V(){var K=createNS("svg"),J=createNS("filter"),xe=createNS("feColorMatrix");return J.setAttribute("id",E),xe.setAttribute("type","matrix"),xe.setAttribute("color-interpolation-filters","sRGB"),xe.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),J.appendChild(xe),K.appendChild(J),K.setAttribute("id",E+"_svg"),featureSupport.svgLumaHidden&&(K.style.display="none"),K}function X(){I||(U=V(),document.body.appendChild(U),I=createTag("canvas"),B=I.getContext("2d"),B.filter="url(#"+E+")",B.fillStyle="rgba(0,0,0,0)",B.fillRect(0,0,1,1))}function Y(K){return I||X(),I.width=K.width,I.height=K.height,B.filter="url(#"+E+")",I}return{load:X,get:Y}};function createCanvas(C,E){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(C,E);var I=createTag("canvas");return I.width=C,I.height=E,I}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(C){var E,I=C.data.ef?C.data.ef.length:0;this.filters=[];var B;for(E=0;E<I;E+=1){B=null;var U=C.data.ef[E].ty;if(registeredEffects[U]){var V=registeredEffects[U].effect;B=new V(C.effectsManager.effectElements[E],C)}B&&this.filters.push(B)}this.filters.length&&C.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(C){var E,I=this.filters.length;for(E=0;E<I;E+=1)this.filters[E].renderFrame(C)},CVEffects.prototype.getEffects=function(C){var E,I=this.filters.length,B=[];for(E=0;E<I;E+=1)this.filters[E].type===C&&B.push(this.filters[E]);return B};function registerEffect(C,E){registeredEffects[C]={effect:E}}function CVMaskElement(C,E){this.data=C,this.element=E,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var I,B=this.masksProperties.length,U=!1;for(I=0;I<B;I+=1)this.masksProperties[I].mode!=="n"&&(U=!0),this.viewData[I]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[I],3);this.hasMasks=U,U&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var C=this.element.finalTransform.mat,E=this.element.canvasContext,I,B=this.masksProperties.length,U,V,X;for(E.beginPath(),I=0;I<B;I+=1)if(this.masksProperties[I].mode!=="n"){this.masksProperties[I].inv&&(E.moveTo(0,0),E.lineTo(this.element.globalData.compSize.w,0),E.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),E.lineTo(0,this.element.globalData.compSize.h),E.lineTo(0,0)),X=this.viewData[I].v,U=C.applyToPointArray(X.v[0][0],X.v[0][1],0),E.moveTo(U[0],U[1]);var Y,K=X._length;for(Y=1;Y<K;Y+=1)V=C.applyToTriplePoints(X.o[Y-1],X.i[Y],X.v[Y]),E.bezierCurveTo(V[0],V[1],V[2],V[3],V[4],V[5]);V=C.applyToTriplePoints(X.o[Y-1],X.i[0],X.v[0]),E.bezierCurveTo(V[0],V[1],V[2],V[3],V[4],V[5])}this.element.globalData.renderer.save(!0),E.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var E=this.globalData.canvasContext,I=assetLoader.createCanvas(E.canvas.width,E.canvas.height);this.buffers.push(I);var B=assetLoader.createCanvas(E.canvas.width,E.canvas.height);this.buffers.push(B),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var E=this.globalData;if(E.blendMode!==this.data.bm){E.blendMode=this.data.bm;var I=getBlendMode(this.data.bm);E.canvasContext.globalCompositeOperation=I}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(E){E.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var E=this.buffers[0],I=E.getContext("2d");this.clearCanvas(I),I.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var E=this.buffers[1],I=E.getContext("2d");this.clearCanvas(I),I.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var B=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(B.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var U=assetLoader.getLumaCanvas(this.canvasContext.canvas),V=U.getContext("2d");V.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(U,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(E,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(E){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!E)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var I=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(I),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(I),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(C,E,I,B){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var U=4;E.ty==="rc"?U=5:E.ty==="el"?U=6:E.ty==="sr"&&(U=7),this.sh=ShapePropertyFactory.getShapeProp(C,E,U,C);var V,X=I.length,Y;for(V=0;V<X;V+=1)I[V].closed||(Y={transforms:B.addTransformSequence(I[V].transforms),trNodes:[]},this.styledShapes.push(Y),I[V].elements.push(Y))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(C,E,I){this.shapes=[],this.shapesData=C.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(C,E,I)}extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(C,E){var I={data:C,type:C.ty,preTransforms:this.transformsManager.addTransformSequence(E),transforms:[],elements:[],closed:C.hd===!0},B={};if(C.ty==="fl"||C.ty==="st"?(B.c=PropertyFactory.getProp(this,C.c,1,255,this),B.c.k||(I.co="rgb("+bmFloor(B.c.v[0])+","+bmFloor(B.c.v[1])+","+bmFloor(B.c.v[2])+")")):(C.ty==="gf"||C.ty==="gs")&&(B.s=PropertyFactory.getProp(this,C.s,1,null,this),B.e=PropertyFactory.getProp(this,C.e,1,null,this),B.h=PropertyFactory.getProp(this,C.h||{k:0},0,.01,this),B.a=PropertyFactory.getProp(this,C.a||{k:0},0,degToRads,this),B.g=new GradientProperty(this,C.g,this)),B.o=PropertyFactory.getProp(this,C.o,0,.01,this),C.ty==="st"||C.ty==="gs"){if(I.lc=lineCapEnum[C.lc||2],I.lj=lineJoinEnum[C.lj||2],C.lj==1&&(I.ml=C.ml),B.w=PropertyFactory.getProp(this,C.w,0,null,this),B.w.k||(I.wi=B.w.v),C.d){var U=new DashProperty(this,C.d,"canvas",this);B.d=U,B.d.k||(I.da=B.d.dashArray,I.do=B.d.dashoffset[0])}}else I.r=C.r===2?"evenodd":"nonzero";return this.stylesList.push(I),B.style=I,B},CVShapeElement.prototype.createGroupElement=function(){var C={it:[],prevViewData:[]};return C},CVShapeElement.prototype.createTransformElement=function(C){var E={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,C.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,C,this)}};return E},CVShapeElement.prototype.createShapeElement=function(C){var E=new CVShapeData(this,C,this.stylesList,this.transformsManager);return this.shapes.push(E),this.addShapeToModifiers(E),E},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var C,E=this.itemsData.length;for(C=0;C<E;C+=1)this.prevViewData[C]=this.itemsData[C];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),E=this.dynamicProperties.length,C=0;C<E;C+=1)this.dynamicProperties[C].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(C){var E,I=this.stylesList.length;for(E=0;E<I;E+=1)this.stylesList[E].closed||this.stylesList[E].transforms.push(C)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var C,E=this.stylesList.length;for(C=0;C<E;C+=1)this.stylesList[C].closed||this.stylesList[C].transforms.pop()},CVShapeElement.prototype.closeStyles=function(C){var E,I=C.length;for(E=0;E<I;E+=1)C[E].closed=!0},CVShapeElement.prototype.searchShapes=function(C,E,I,B,U){var V,X=C.length-1,Y,K,J=[],xe=[],Z,_e,Se,Ee=[].concat(U);for(V=X;V>=0;V-=1){if(Z=this.searchProcessedElement(C[V]),Z?E[V]=I[Z-1]:C[V]._shouldRender=B,C[V].ty==="fl"||C[V].ty==="st"||C[V].ty==="gf"||C[V].ty==="gs")Z?E[V].style.closed=!1:E[V]=this.createStyleElement(C[V],Ee),J.push(E[V].style);else if(C[V].ty==="gr"){if(!Z)E[V]=this.createGroupElement(C[V]);else for(K=E[V].it.length,Y=0;Y<K;Y+=1)E[V].prevViewData[Y]=E[V].it[Y];this.searchShapes(C[V].it,E[V].it,E[V].prevViewData,B,Ee)}else C[V].ty==="tr"?(Z||(Se=this.createTransformElement(C[V]),E[V]=Se),Ee.push(E[V]),this.addTransformToStyleList(E[V])):C[V].ty==="sh"||C[V].ty==="rc"||C[V].ty==="el"||C[V].ty==="sr"?Z||(E[V]=this.createShapeElement(C[V])):C[V].ty==="tm"||C[V].ty==="rd"||C[V].ty==="pb"||C[V].ty==="zz"||C[V].ty==="op"?(Z?(_e=E[V],_e.closed=!1):(_e=ShapeModifiers.getModifier(C[V].ty),_e.init(this,C[V]),E[V]=_e,this.shapeModifiers.push(_e)),xe.push(_e)):C[V].ty==="rp"&&(Z?(_e=E[V],_e.closed=!0):(_e=ShapeModifiers.getModifier(C[V].ty),E[V]=_e,_e.init(this,C,V,E),this.shapeModifiers.push(_e),B=!1),xe.push(_e));this.addProcessedElement(C[V],V+1)}for(this.removeTransformFromStyleList(),this.closeStyles(J),X=xe.length,V=0;V<X;V+=1)xe[V].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(C,E){(C._opMdf||E.op._mdf||this._isFirstFrame)&&(E.opacity=C.opacity,E.opacity*=E.op.v,E._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var C,E=this.stylesList.length,I,B,U,V,X,Y,K=this.globalData.renderer,J=this.globalData.canvasContext,xe,Z;for(C=0;C<E;C+=1)if(Z=this.stylesList[C],xe=Z.type,!((xe==="st"||xe==="gs")&&Z.wi===0||!Z.data._shouldRender||Z.coOp===0||this.globalData.currentGlobalAlpha===0)){for(K.save(),X=Z.elements,xe==="st"||xe==="gs"?(K.ctxStrokeStyle(xe==="st"?Z.co:Z.grd),K.ctxLineWidth(Z.wi),K.ctxLineCap(Z.lc),K.ctxLineJoin(Z.lj),K.ctxMiterLimit(Z.ml||0)):K.ctxFillStyle(xe==="fl"?Z.co:Z.grd),K.ctxOpacity(Z.coOp),xe!=="st"&&xe!=="gs"&&J.beginPath(),K.ctxTransform(Z.preTransforms.finalTransform.props),B=X.length,I=0;I<B;I+=1){for((xe==="st"||xe==="gs")&&(J.beginPath(),Z.da&&(J.setLineDash(Z.da),J.lineDashOffset=Z.do)),Y=X[I].trNodes,V=Y.length,U=0;U<V;U+=1)Y[U].t==="m"?J.moveTo(Y[U].p[0],Y[U].p[1]):Y[U].t==="c"?J.bezierCurveTo(Y[U].pts[0],Y[U].pts[1],Y[U].pts[2],Y[U].pts[3],Y[U].pts[4],Y[U].pts[5]):J.closePath();(xe==="st"||xe==="gs")&&(K.ctxStroke(),Z.da&&J.setLineDash(this.dashResetter))}xe!=="st"&&xe!=="gs"&&this.globalData.renderer.ctxFill(Z.r),K.restore()}},CVShapeElement.prototype.renderShape=function(C,E,I,B){var U,V=E.length-1,X;for(X=C,U=V;U>=0;U-=1)E[U].ty==="tr"?(X=I[U].transform,this.renderShapeTransform(C,X)):E[U].ty==="sh"||E[U].ty==="el"||E[U].ty==="rc"||E[U].ty==="sr"?this.renderPath(E[U],I[U]):E[U].ty==="fl"?this.renderFill(E[U],I[U],X):E[U].ty==="st"?this.renderStroke(E[U],I[U],X):E[U].ty==="gf"||E[U].ty==="gs"?this.renderGradientFill(E[U],I[U],X):E[U].ty==="gr"?this.renderShape(X,E[U].it,I[U].it):E[U].ty;B&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(C,E){if(this._isFirstFrame||E._mdf||C.transforms._mdf){var I=C.trNodes,B=E.paths,U,V,X,Y=B._length;I.length=0;var K=C.transforms.finalTransform;for(X=0;X<Y;X+=1){var J=B.shapes[X];if(J&&J.v){for(V=J._length,U=1;U<V;U+=1)U===1&&I.push({t:"m",p:K.applyToPointArray(J.v[0][0],J.v[0][1],0)}),I.push({t:"c",pts:K.applyToTriplePoints(J.o[U-1],J.i[U],J.v[U])});V===1&&I.push({t:"m",p:K.applyToPointArray(J.v[0][0],J.v[0][1],0)}),J.c&&V&&(I.push({t:"c",pts:K.applyToTriplePoints(J.o[U-1],J.i[0],J.v[0])}),I.push({t:"z"}))}}C.trNodes=I}},CVShapeElement.prototype.renderPath=function(C,E){if(C.hd!==!0&&C._shouldRender){var I,B=E.styledShapes.length;for(I=0;I<B;I+=1)this.renderStyledShape(E.styledShapes[I],E.sh)}},CVShapeElement.prototype.renderFill=function(C,E,I){var B=E.style;(E.c._mdf||this._isFirstFrame)&&(B.co="rgb("+bmFloor(E.c.v[0])+","+bmFloor(E.c.v[1])+","+bmFloor(E.c.v[2])+")"),(E.o._mdf||I._opMdf||this._isFirstFrame)&&(B.coOp=E.o.v*I.opacity)},CVShapeElement.prototype.renderGradientFill=function(C,E,I){var B=E.style,U;if(!B.grd||E.g._mdf||E.s._mdf||E.e._mdf||C.t!==1&&(E.h._mdf||E.a._mdf)){var V=this.globalData.canvasContext,X=E.s.v,Y=E.e.v;if(C.t===1)U=V.createLinearGradient(X[0],X[1],Y[0],Y[1]);else{var K=Math.sqrt(Math.pow(X[0]-Y[0],2)+Math.pow(X[1]-Y[1],2)),J=Math.atan2(Y[1]-X[1],Y[0]-X[0]),xe=E.h.v;xe>=1?xe=.99:xe<=-1&&(xe=-.99);var Z=K*xe,_e=Math.cos(J+E.a.v)*Z+X[0],Se=Math.sin(J+E.a.v)*Z+X[1];U=V.createRadialGradient(_e,Se,0,X[0],X[1],K)}var Ee,Ae=C.g.p,Re=E.g.c,Te=1;for(Ee=0;Ee<Ae;Ee+=1)E.g._hasOpacity&&E.g._collapsable&&(Te=E.g.o[Ee*2+1]),U.addColorStop(Re[Ee*4]/100,"rgba("+Re[Ee*4+1]+","+Re[Ee*4+2]+","+Re[Ee*4+3]+","+Te+")");B.grd=U}B.coOp=E.o.v*I.opacity},CVShapeElement.prototype.renderStroke=function(C,E,I){var B=E.style,U=E.d;U&&(U._mdf||this._isFirstFrame)&&(B.da=U.dashArray,B.do=U.dashoffset[0]),(E.c._mdf||this._isFirstFrame)&&(B.co="rgb("+bmFloor(E.c.v[0])+","+bmFloor(E.c.v[1])+","+bmFloor(E.c.v[2])+")"),(E.o._mdf||I._opMdf||this._isFirstFrame)&&(B.coOp=E.o.v*I.opacity),(E.w._mdf||this._isFirstFrame)&&(B.wi=E.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0};function CVTextElement(C,E,I){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(C,E,I)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var C=this.textProperty.currentData;this.renderedLetters=createSizedArray(C.l?C.l.length:0);var E=!1;C.fc?(E=!0,this.values.fill=this.buildColor(C.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=E;var I=!1;C.sc&&(I=!0,this.values.stroke=this.buildColor(C.sc),this.values.sWidth=C.sw);var B=this.globalData.fontManager.getFontByName(C.f),U,V,X=C.l,Y=this.mHelper;this.stroke=I,this.values.fValue=C.finalSize+"px "+this.globalData.fontManager.getFontByName(C.f).fFamily,V=C.finalText.length;var K,J,xe,Z,_e,Se,Ee,Ae,Re,Te,we=this.data.singleShape,Pe=C.tr*.001*C.finalSize,Ie=0,Me=0,Oe=!0,Le=0;for(U=0;U<V;U+=1){K=this.globalData.fontManager.getCharData(C.finalText[U],B.fStyle,this.globalData.fontManager.getFontByName(C.f).fFamily),J=K&&K.data||{},Y.reset(),we&&X[U].n&&(Ie=-Pe,Me+=C.yOffset,Me+=Oe?1:0,Oe=!1),_e=J.shapes?J.shapes[0].it:[],Ee=_e.length,Y.scale(C.finalSize/100,C.finalSize/100),we&&this.applyTextPropertiesToMatrix(C,Y,X[U].line,Ie,Me),Re=createSizedArray(Ee-1);var $e=0;for(Se=0;Se<Ee;Se+=1)if(_e[Se].ty==="sh"){for(Z=_e[Se].ks.k.i.length,Ae=_e[Se].ks.k,Te=[],xe=1;xe<Z;xe+=1)xe===1&&Te.push(Y.applyToX(Ae.v[0][0],Ae.v[0][1],0),Y.applyToY(Ae.v[0][0],Ae.v[0][1],0)),Te.push(Y.applyToX(Ae.o[xe-1][0],Ae.o[xe-1][1],0),Y.applyToY(Ae.o[xe-1][0],Ae.o[xe-1][1],0),Y.applyToX(Ae.i[xe][0],Ae.i[xe][1],0),Y.applyToY(Ae.i[xe][0],Ae.i[xe][1],0),Y.applyToX(Ae.v[xe][0],Ae.v[xe][1],0),Y.applyToY(Ae.v[xe][0],Ae.v[xe][1],0));Te.push(Y.applyToX(Ae.o[xe-1][0],Ae.o[xe-1][1],0),Y.applyToY(Ae.o[xe-1][0],Ae.o[xe-1][1],0),Y.applyToX(Ae.i[0][0],Ae.i[0][1],0),Y.applyToY(Ae.i[0][0],Ae.i[0][1],0),Y.applyToX(Ae.v[0][0],Ae.v[0][1],0),Y.applyToY(Ae.v[0][0],Ae.v[0][1],0)),Re[$e]=Te,$e+=1}we&&(Ie+=X[U].l,Ie+=Pe),this.textSpans[Le]?this.textSpans[Le].elem=Re:this.textSpans[Le]={elem:Re},Le+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var C=this.canvasContext;C.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var E,I,B,U,V,X,Y=this.textAnimator.renderedLetters,K=this.textProperty.currentData.l;I=K.length;var J,xe=null,Z=null,_e=null,Se,Ee,Ae=this.globalData.renderer;for(E=0;E<I;E+=1)if(!K[E].n){if(J=Y[E],J&&(Ae.save(),Ae.ctxTransform(J.p),Ae.ctxOpacity(J.o)),this.fill){for(J&&J.fc?xe!==J.fc&&(Ae.ctxFillStyle(J.fc),xe=J.fc):xe!==this.values.fill&&(xe=this.values.fill,Ae.ctxFillStyle(this.values.fill)),Se=this.textSpans[E].elem,U=Se.length,this.globalData.canvasContext.beginPath(),B=0;B<U;B+=1)for(Ee=Se[B],X=Ee.length,this.globalData.canvasContext.moveTo(Ee[0],Ee[1]),V=2;V<X;V+=6)this.globalData.canvasContext.bezierCurveTo(Ee[V],Ee[V+1],Ee[V+2],Ee[V+3],Ee[V+4],Ee[V+5]);this.globalData.canvasContext.closePath(),Ae.ctxFill()}if(this.stroke){for(J&&J.sw?_e!==J.sw&&(_e=J.sw,Ae.ctxLineWidth(J.sw)):_e!==this.values.sWidth&&(_e=this.values.sWidth,Ae.ctxLineWidth(this.values.sWidth)),J&&J.sc?Z!==J.sc&&(Z=J.sc,Ae.ctxStrokeStyle(J.sc)):Z!==this.values.stroke&&(Z=this.values.stroke,Ae.ctxStrokeStyle(this.values.stroke)),Se=this.textSpans[E].elem,U=Se.length,this.globalData.canvasContext.beginPath(),B=0;B<U;B+=1)for(Ee=Se[B],X=Ee.length,this.globalData.canvasContext.moveTo(Ee[0],Ee[1]),V=2;V<X;V+=6)this.globalData.canvasContext.bezierCurveTo(Ee[V],Ee[V+1],Ee[V+2],Ee[V+3],Ee[V+4],Ee[V+5]);this.globalData.canvasContext.closePath(),Ae.ctxStroke()}J&&this.globalData.renderer.restore()}};function CVImageElement(C,E,I){this.assetData=E.getAssetData(C.refId),this.img=E.imageLoader.getAsset(this.assetData),this.initElement(C,E,I)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var C=createTag("canvas");C.width=this.assetData.w,C.height=this.assetData.h;var E=C.getContext("2d"),I=this.img.width,B=this.img.height,U=I/B,V=this.assetData.w/this.assetData.h,X,Y,K=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;U>V&&K==="xMidYMid slice"||U<V&&K!=="xMidYMid slice"?(Y=B,X=Y*V):(X=I,Y=X/V),E.drawImage(this.img,(I-X)/2,(B-Y)/2,X,Y,0,0,this.assetData.w,this.assetData.h),this.img=C}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(C,E,I){this.initElement(C,E,I)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)};function CanvasRendererBase(){}extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(C){return new CVShapeElement(C,this.globalData,this)},CanvasRendererBase.prototype.createText=function(C){return new CVTextElement(C,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(C){return new CVImageElement(C,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(C){return new CVSolidElement(C,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(C){C[0]===1&&C[1]===0&&C[4]===0&&C[5]===1&&C[12]===0&&C[13]===0||this.canvasContext.transform(C[0],C[1],C[4],C[5],C[12],C[13])},CanvasRendererBase.prototype.ctxOpacity=function(C){this.canvasContext.globalAlpha*=C<0?0:C},CanvasRendererBase.prototype.ctxFillStyle=function(C){this.canvasContext.fillStyle=C},CanvasRendererBase.prototype.ctxStrokeStyle=function(C){this.canvasContext.strokeStyle=C},CanvasRendererBase.prototype.ctxLineWidth=function(C){this.canvasContext.lineWidth=C},CanvasRendererBase.prototype.ctxLineCap=function(C){this.canvasContext.lineCap=C},CanvasRendererBase.prototype.ctxLineJoin=function(C){this.canvasContext.lineJoin=C},CanvasRendererBase.prototype.ctxMiterLimit=function(C){this.canvasContext.miterLimit=C},CanvasRendererBase.prototype.ctxFill=function(C){this.canvasContext.fill(C)},CanvasRendererBase.prototype.ctxFillRect=function(C,E,I,B){this.canvasContext.fillRect(C,E,I,B)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(C){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}C&&(this.globalData.blendMode="source-over"),this.contextData.restore(C)},CanvasRendererBase.prototype.configAnimation=function(C){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var E=this.animationItem.container.style;E.width="100%",E.height="100%";var I="0px 0px 0px";E.transformOrigin=I,E.mozTransformOrigin=I,E.webkitTransformOrigin=I,E["-webkit-transform"]=I,E.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=C,this.layers=C.layers,this.transformCanvas={w:C.w,h:C.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(C,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(C.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(C,E){this.reset();var I,B;C?(I=C,B=E,this.canvasContext.canvas.width=I,this.canvasContext.canvas.height=B):(this.animationItem.wrapper&&this.animationItem.container?(I=this.animationItem.wrapper.offsetWidth,B=this.animationItem.wrapper.offsetHeight):(I=this.canvasContext.canvas.width,B=this.canvasContext.canvas.height),this.canvasContext.canvas.width=I*this.renderConfig.dpr,this.canvasContext.canvas.height=B*this.renderConfig.dpr);var U,V;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var X=this.renderConfig.preserveAspectRatio.split(" "),Y=X[1]||"meet",K=X[0]||"xMidYMid",J=K.substr(0,4),xe=K.substr(4);U=I/B,V=this.transformCanvas.w/this.transformCanvas.h,V>U&&Y==="meet"||V<U&&Y==="slice"?(this.transformCanvas.sx=I/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=I/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=B/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=B/(this.transformCanvas.h/this.renderConfig.dpr)),J==="xMid"&&(V<U&&Y==="meet"||V>U&&Y==="slice")?this.transformCanvas.tx=(I-this.transformCanvas.w*(B/this.transformCanvas.h))/2*this.renderConfig.dpr:J==="xMax"&&(V<U&&Y==="meet"||V>U&&Y==="slice")?this.transformCanvas.tx=(I-this.transformCanvas.w*(B/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,xe==="YMid"&&(V>U&&Y==="meet"||V<U&&Y==="slice")?this.transformCanvas.ty=(B-this.transformCanvas.h*(I/this.transformCanvas.w))/2*this.renderConfig.dpr:xe==="YMax"&&(V>U&&Y==="meet"||V<U&&Y==="slice")?this.transformCanvas.ty=(B-this.transformCanvas.h*(I/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=I/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=B/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText="");var C,E=this.layers?this.layers.length:0;for(C=E-1;C>=0;C-=1)this.elements[C]&&this.elements[C].destroy&&this.elements[C].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(C,E){if(!(this.renderedFrame===C&&this.renderConfig.clearCanvas===!0&&!E||this.destroyed||C===-1)){this.renderedFrame=C,this.globalData.frameNum=C-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||E,this.globalData.projectInterface.currentFrame=C;var I,B=this.layers.length;for(this.completeLayers||this.checkLayers(C),I=B-1;I>=0;I-=1)(this.completeLayers||this.elements[I])&&this.elements[I].prepareFrame(C-this.layers[I].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),I=B-1;I>=0;I-=1)(this.completeLayers||this.elements[I])&&this.elements[I].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(C){var E=this.elements;if(!(E[C]||this.layers[C].ty===99)){var I=this.createItem(this.layers[C],this,this.globalData);E[C]=I,I.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var C=this.pendingElements.pop();C.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var C,E=15;for(C=0;C<E;C+=1){var I=new CanvasContext;this.stack[C]=I}this._length=E,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}CVContextData.prototype.duplicate=function(){var C=this._length*2,E=0;for(E=this._length;E<C;E+=1)this.stack[E]=new CanvasContext;this._length=C},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(C){this.cArrPos-=1;var E=this.stack[this.cArrPos],I=E.transform,B,U=this.cTr.props;for(B=0;B<16;B+=1)U[B]=I[B];if(C){this.nativeContext.restore();var V=this.stack[this.cArrPos+1];this.appliedFillStyle=V.fillStyle,this.appliedStrokeStyle=V.strokeStyle,this.appliedLineWidth=V.lineWidth,this.appliedLineCap=V.lineCap,this.appliedLineJoin=V.lineJoin,this.appliedMiterLimit=V.miterLimit}this.nativeContext.setTransform(I[0],I[1],I[4],I[5],I[12],I[13]),(C||E.opacity!==-1&&this.currentOpacity!==E.opacity)&&(this.nativeContext.globalAlpha=E.opacity,this.currentOpacity=E.opacity),this.currentFillStyle=E.fillStyle,this.currentStrokeStyle=E.strokeStyle,this.currentLineWidth=E.lineWidth,this.currentLineCap=E.lineCap,this.currentLineJoin=E.lineJoin,this.currentMiterLimit=E.miterLimit},CVContextData.prototype.save=function(C){C&&this.nativeContext.save();var E=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var I=this.stack[this.cArrPos],B;for(B=0;B<16;B+=1)I.transform[B]=E[B];this.cArrPos+=1;var U=this.stack[this.cArrPos];U.opacity=I.opacity,U.fillStyle=I.fillStyle,U.strokeStyle=I.strokeStyle,U.lineWidth=I.lineWidth,U.lineCap=I.lineCap,U.lineJoin=I.lineJoin,U.miterLimit=I.miterLimit},CVContextData.prototype.setOpacity=function(C){this.stack[this.cArrPos].opacity=C},CVContextData.prototype.setContext=function(C){this.nativeContext=C},CVContextData.prototype.fillStyle=function(C){this.stack[this.cArrPos].fillStyle!==C&&(this.currentFillStyle=C,this.stack[this.cArrPos].fillStyle=C)},CVContextData.prototype.strokeStyle=function(C){this.stack[this.cArrPos].strokeStyle!==C&&(this.currentStrokeStyle=C,this.stack[this.cArrPos].strokeStyle=C)},CVContextData.prototype.lineWidth=function(C){this.stack[this.cArrPos].lineWidth!==C&&(this.currentLineWidth=C,this.stack[this.cArrPos].lineWidth=C)},CVContextData.prototype.lineCap=function(C){this.stack[this.cArrPos].lineCap!==C&&(this.currentLineCap=C,this.stack[this.cArrPos].lineCap=C)},CVContextData.prototype.lineJoin=function(C){this.stack[this.cArrPos].lineJoin!==C&&(this.currentLineJoin=C,this.stack[this.cArrPos].lineJoin=C)},CVContextData.prototype.miterLimit=function(C){this.stack[this.cArrPos].miterLimit!==C&&(this.currentMiterLimit=C,this.stack[this.cArrPos].miterLimit=C)},CVContextData.prototype.transform=function(C){this.transformMat.cloneFromProps(C);var E=this.cTr;this.transformMat.multiply(E),E.cloneFromProps(this.transformMat.props);var I=E.props;this.nativeContext.setTransform(I[0],I[1],I[4],I[5],I[12],I[13])},CVContextData.prototype.opacity=function(C){var E=this.stack[this.cArrPos].opacity;E*=C<0?0:C,this.stack[this.cArrPos].opacity!==E&&(this.currentOpacity!==C&&(this.nativeContext.globalAlpha=C,this.currentOpacity=C),this.stack[this.cArrPos].opacity=E)},CVContextData.prototype.fill=function(C){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(C)},CVContextData.prototype.fillRect=function(C,E,I,B){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(C,E,I,B)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()};function CVCompElement(C,E,I){this.completeLayers=!1,this.layers=C.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(C,E,I),this.tm=C.tm?PropertyFactory.getProp(this,C.tm,0,E.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var C=this.canvasContext;C.beginPath(),C.moveTo(0,0),C.lineTo(this.data.w,0),C.lineTo(this.data.w,this.data.h),C.lineTo(0,this.data.h),C.lineTo(0,0),C.clip();var E,I=this.layers.length;for(E=I-1;E>=0;E-=1)(this.completeLayers||this.elements[E])&&this.elements[E].renderFrame()},CVCompElement.prototype.destroy=function(){var C,E=this.layers.length;for(C=E-1;C>=0;C-=1)this.elements[C]&&this.elements[C].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(C){return new CVCompElement(C,this.globalData,this)};function CanvasRenderer(C,E){this.animationItem=C,this.renderConfig={clearCanvas:E&&E.clearCanvas!==void 0?E.clearCanvas:!0,context:E&&E.context||null,progressiveLoad:E&&E.progressiveLoad||!1,preserveAspectRatio:E&&E.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:E&&E.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:E&&E.contentVisibility||"visible",className:E&&E.className||"",id:E&&E.id||"",runExpressions:!E||E.runExpressions===void 0||E.runExpressions},this.renderConfig.dpr=E&&E.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=E&&E.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(C){return new CVCompElement(C,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var E=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var I=this.finalTransform.mat.toCSS();E.transform=I,E.webkitTransform=I}this.finalTransform._opMdf&&(E.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(C,E,I){this.initElement(C,E,I)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var C;this.data.hasMask?(C=createNS("rect"),C.setAttribute("width",this.data.sw),C.setAttribute("height",this.data.sh),C.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(C=createTag("div"),C.style.width=this.data.sw+"px",C.style.height=this.data.sh+"px",C.style.backgroundColor=this.data.sc),this.layerElement.appendChild(C)};function HShapeElement(C,E,I){this.shapes=[],this.shapesData=C.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(C,E,I),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var C;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),C=this.svgElement;else{C=createNS("svg");var E=this.comp.data?this.comp.data:this.globalData.compSize;C.setAttribute("width",E.w),C.setAttribute("height",E.h),C.appendChild(this.shapesContainer),this.layerElement.appendChild(C)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=C},HShapeElement.prototype.getTransformedPoint=function(C,E){var I,B=C.length;for(I=0;I<B;I+=1)E=C[I].mProps.v.applyToPointArray(E[0],E[1],0);return E},HShapeElement.prototype.calculateShapeBoundingBox=function(C,E){var I=C.sh.v,B=C.transformers,U,V=I._length,X,Y,K,J;if(!(V<=1)){for(U=0;U<V-1;U+=1)X=this.getTransformedPoint(B,I.v[U]),Y=this.getTransformedPoint(B,I.o[U]),K=this.getTransformedPoint(B,I.i[U+1]),J=this.getTransformedPoint(B,I.v[U+1]),this.checkBounds(X,Y,K,J,E);I.c&&(X=this.getTransformedPoint(B,I.v[U]),Y=this.getTransformedPoint(B,I.o[U]),K=this.getTransformedPoint(B,I.i[0]),J=this.getTransformedPoint(B,I.v[0]),this.checkBounds(X,Y,K,J,E))}},HShapeElement.prototype.checkBounds=function(C,E,I,B,U){this.getBoundsOfCurve(C,E,I,B);var V=this.shapeBoundingBox;U.x=bmMin(V.left,U.x),U.xMax=bmMax(V.right,U.xMax),U.y=bmMin(V.top,U.y),U.yMax=bmMax(V.bottom,U.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(C,E,I,B){for(var U=[[C[0],B[0]],[C[1],B[1]]],V,X,Y,K,J,xe,Z,_e=0;_e<2;++_e)X=6*C[_e]-12*E[_e]+6*I[_e],V=-3*C[_e]+9*E[_e]-9*I[_e]+3*B[_e],Y=3*E[_e]-3*C[_e],X|=0,V|=0,Y|=0,V===0&&X===0||(V===0?(K=-Y/X,K>0&&K<1&&U[_e].push(this.calculateF(K,C,E,I,B,_e))):(J=X*X-4*Y*V,J>=0&&(xe=(-X+bmSqrt(J))/(2*V),xe>0&&xe<1&&U[_e].push(this.calculateF(xe,C,E,I,B,_e)),Z=(-X-bmSqrt(J))/(2*V),Z>0&&Z<1&&U[_e].push(this.calculateF(Z,C,E,I,B,_e)))));this.shapeBoundingBox.left=bmMin.apply(null,U[0]),this.shapeBoundingBox.top=bmMin.apply(null,U[1]),this.shapeBoundingBox.right=bmMax.apply(null,U[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,U[1])},HShapeElement.prototype.calculateF=function(C,E,I,B,U,V){return bmPow(1-C,3)*E[V]+3*bmPow(1-C,2)*C*I[V]+3*(1-C)*bmPow(C,2)*B[V]+bmPow(C,3)*U[V]},HShapeElement.prototype.calculateBoundingBox=function(C,E){var I,B=C.length;for(I=0;I<B;I+=1)C[I]&&C[I].sh?this.calculateShapeBoundingBox(C[I],E):C[I]&&C[I].it?this.calculateBoundingBox(C[I].it,E):C[I]&&C[I].style&&C[I].w&&this.expandStrokeBoundingBox(C[I].w,E)},HShapeElement.prototype.expandStrokeBoundingBox=function(C,E){var I=0;if(C.keyframes){for(var B=0;B<C.keyframes.length;B+=1){var U=C.keyframes[B].s;U>I&&(I=U)}I*=C.mult}else I=C.v*C.mult;E.x-=I,E.xMax+=I,E.y-=I,E.yMax+=I},HShapeElement.prototype.currentBoxContains=function(C){return this.currentBBox.x<=C.x&&this.currentBBox.y<=C.y&&this.currentBBox.width+this.currentBBox.x>=C.x+C.width&&this.currentBBox.height+this.currentBBox.y>=C.y+C.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var C=this.tempBoundingBox,E=999999;if(C.x=E,C.xMax=-E,C.y=E,C.yMax=-E,this.calculateBoundingBox(this.itemsData,C),C.width=C.xMax<C.x?0:C.xMax-C.x,C.height=C.yMax<C.y?0:C.yMax-C.y,this.currentBoxContains(C))return;var I=!1;if(this.currentBBox.w!==C.width&&(this.currentBBox.w=C.width,this.shapeCont.setAttribute("width",C.width),I=!0),this.currentBBox.h!==C.height&&(this.currentBBox.h=C.height,this.shapeCont.setAttribute("height",C.height),I=!0),I||this.currentBBox.x!==C.x||this.currentBBox.y!==C.y){this.currentBBox.w=C.width,this.currentBBox.h=C.height,this.currentBBox.x=C.x,this.currentBBox.y=C.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var B=this.shapeCont.style,U="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";B.transform=U,B.webkitTransform=U}}};function HTextElement(C,E,I){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(C,E,I)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var C=createNS("g");this.maskedElement.appendChild(C),this.innerElem=C}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var C=this.textProperty.currentData;this.renderedLetters=createSizedArray(C.l?C.l.length:0);var E=this.innerElem.style,I=C.fc?this.buildColor(C.fc):"rgba(0,0,0,0)";E.fill=I,E.color=I,C.sc&&(E.stroke=this.buildColor(C.sc),E.strokeWidth=C.sw+"px");var B=this.globalData.fontManager.getFontByName(C.f);if(!this.globalData.fontManager.chars)if(E.fontSize=C.finalSize+"px",E.lineHeight=C.finalSize+"px",B.fClass)this.innerElem.className=B.fClass;else{E.fontFamily=B.fFamily;var U=C.fWeight,V=C.fStyle;E.fontStyle=V,E.fontWeight=U}var X,Y,K=C.l;Y=K.length;var J,xe,Z,_e=this.mHelper,Se,Ee="",Ae=0;for(X=0;X<Y;X+=1){if(this.globalData.fontManager.chars?(this.textPaths[Ae]?J=this.textPaths[Ae]:(J=createNS("path"),J.setAttribute("stroke-linecap",lineCapEnum[1]),J.setAttribute("stroke-linejoin",lineJoinEnum[2]),J.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[Ae]?(xe=this.textSpans[Ae],Z=xe.children[0]):(xe=createTag("div"),xe.style.lineHeight=0,Z=createNS("svg"),Z.appendChild(J),styleDiv(xe)))):this.isMasked?J=this.textPaths[Ae]?this.textPaths[Ae]:createNS("text"):this.textSpans[Ae]?(xe=this.textSpans[Ae],J=this.textPaths[Ae]):(xe=createTag("span"),styleDiv(xe),J=createTag("span"),styleDiv(J),xe.appendChild(J)),this.globalData.fontManager.chars){var Re=this.globalData.fontManager.getCharData(C.finalText[X],B.fStyle,this.globalData.fontManager.getFontByName(C.f).fFamily),Te;if(Re?Te=Re.data:Te=null,_e.reset(),Te&&Te.shapes&&Te.shapes.length&&(Se=Te.shapes[0].it,_e.scale(C.finalSize/100,C.finalSize/100),Ee=this.createPathShape(_e,Se),J.setAttribute("d",Ee)),this.isMasked)this.innerElem.appendChild(J);else{if(this.innerElem.appendChild(xe),Te&&Te.shapes){document.body.appendChild(Z);var we=Z.getBBox();Z.setAttribute("width",we.width+2),Z.setAttribute("height",we.height+2),Z.setAttribute("viewBox",we.x-1+" "+(we.y-1)+" "+(we.width+2)+" "+(we.height+2));var Pe=Z.style,Ie="translate("+(we.x-1)+"px,"+(we.y-1)+"px)";Pe.transform=Ie,Pe.webkitTransform=Ie,K[X].yOffset=we.y-1}else Z.setAttribute("width",1),Z.setAttribute("height",1);xe.appendChild(Z)}}else if(J.textContent=K[X].val,J.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(J);else{this.innerElem.appendChild(xe);var Me=J.style,Oe="translate3d(0,"+-C.finalSize/1.2+"px,0)";Me.transform=Oe,Me.webkitTransform=Oe}this.isMasked?this.textSpans[Ae]=J:this.textSpans[Ae]=xe,this.textSpans[Ae].style.display="block",this.textPaths[Ae]=J,Ae+=1}for(;Ae<this.textSpans.length;)this.textSpans[Ae].style.display="none",Ae+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var C;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),C=this.svgElement.style;var E="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";C.transform=E,C.webkitTransform=E}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var I,B,U=0,V=this.textAnimator.renderedLetters,X=this.textProperty.currentData.l;B=X.length;var Y,K,J;for(I=0;I<B;I+=1)X[I].n?U+=1:(K=this.textSpans[I],J=this.textPaths[I],Y=V[U],U+=1,Y._mdf.m&&(this.isMasked?K.setAttribute("transform",Y.m):(K.style.webkitTransform=Y.m,K.style.transform=Y.m)),K.style.opacity=Y.o,Y.sw&&Y._mdf.sw&&J.setAttribute("stroke-width",Y.sw),Y.sc&&Y._mdf.sc&&J.setAttribute("stroke",Y.sc),Y.fc&&Y._mdf.fc&&(J.setAttribute("fill",Y.fc),J.style.color=Y.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var xe=this.innerElem.getBBox();this.currentBBox.w!==xe.width&&(this.currentBBox.w=xe.width,this.svgElement.setAttribute("width",xe.width)),this.currentBBox.h!==xe.height&&(this.currentBBox.h=xe.height,this.svgElement.setAttribute("height",xe.height));var Z=1;if(this.currentBBox.w!==xe.width+Z*2||this.currentBBox.h!==xe.height+Z*2||this.currentBBox.x!==xe.x-Z||this.currentBBox.y!==xe.y-Z){this.currentBBox.w=xe.width+Z*2,this.currentBBox.h=xe.height+Z*2,this.currentBBox.x=xe.x-Z,this.currentBBox.y=xe.y-Z,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),C=this.svgElement.style;var _e="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";C.transform=_e,C.webkitTransform=_e}}}};function HCameraElement(C,E,I){this.initFrame(),this.initBaseData(C,E,I),this.initHierarchy();var B=PropertyFactory.getProp;if(this.pe=B(this,C.pe,0,0,this),C.ks.p.s?(this.px=B(this,C.ks.p.x,1,0,this),this.py=B(this,C.ks.p.y,1,0,this),this.pz=B(this,C.ks.p.z,1,0,this)):this.p=B(this,C.ks.p,1,0,this),C.ks.a&&(this.a=B(this,C.ks.a,1,0,this)),C.ks.or.k.length&&C.ks.or.k[0].to){var U,V=C.ks.or.k.length;for(U=0;U<V;U+=1)C.ks.or.k[U].to=null,C.ks.or.k[U].ti=null}this.or=B(this,C.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=B(this,C.ks.rx,0,degToRads,this),this.ry=B(this,C.ks.ry,0,degToRads,this),this.rz=B(this,C.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var C,E=this.comp.threeDElements.length,I,B,U;for(C=0;C<E;C+=1)if(I=this.comp.threeDElements[C],I.type==="3d"){B=I.perspectiveElem.style,U=I.container.style;var V=this.pe.v+"px",X="0px 0px 0px",Y="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";B.perspective=V,B.webkitPerspective=V,U.transformOrigin=X,U.mozTransformOrigin=X,U.webkitTransformOrigin=X,B.transform=Y,B.webkitTransform=Y}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var C=this._isFirstFrame,E,I;if(this.hierarchy)for(I=this.hierarchy.length,E=0;E<I;E+=1)C=this.hierarchy[E].finalTransform.mProp._mdf||C;if(C||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(I=this.hierarchy.length-1,E=I;E>=0;E-=1){var B=this.hierarchy[E].finalTransform.mProp;this.mat.translate(-B.p.v[0],-B.p.v[1],B.p.v[2]),this.mat.rotateX(-B.or.v[0]).rotateY(-B.or.v[1]).rotateZ(B.or.v[2]),this.mat.rotateX(-B.rx.v).rotateY(-B.ry.v).rotateZ(B.rz.v),this.mat.scale(1/B.s.v[0],1/B.s.v[1],1/B.s.v[2]),this.mat.translate(B.a.v[0],B.a.v[1],B.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var U;this.p?U=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:U=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var V=Math.sqrt(Math.pow(U[0],2)+Math.pow(U[1],2)+Math.pow(U[2],2)),X=[U[0]/V,U[1]/V,U[2]/V],Y=Math.sqrt(X[2]*X[2]+X[0]*X[0]),K=Math.atan2(X[1],Y),J=Math.atan2(X[0],-X[2]);this.mat.rotateY(J).rotateX(-K)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var xe=!this._prevMat.equals(this.mat);if((xe||this.pe._mdf)&&this.comp.threeDElements){I=this.comp.threeDElements.length;var Z,_e,Se;for(E=0;E<I;E+=1)if(Z=this.comp.threeDElements[E],Z.type==="3d"){if(xe){var Ee=this.mat.toCSS();Se=Z.container.style,Se.transform=Ee,Se.webkitTransform=Ee}this.pe._mdf&&(_e=Z.perspectiveElem.style,_e.perspective=this.pe.v+"px",_e.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(C){this.prepareProperties(C,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(C,E,I){this.assetData=E.getAssetData(C.refId),this.initElement(C,E,I)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var C=this.globalData.getAssetsPath(this.assetData),E=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",C),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(E),E.crossOrigin="anonymous",E.src=C,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(C,E){this.animationItem=C,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:E&&E.className||"",imagePreserveAspectRatio:E&&E.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(E&&E.hideOnTransparent===!1),filterSize:{width:E&&E.filterSize&&E.filterSize.width||"400%",height:E&&E.filterSize&&E.filterSize.height||"400%",x:E&&E.filterSize&&E.filterSize.x||"-100%",y:E&&E.filterSize&&E.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var C=this.pendingElements.pop();C.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(C,E){var I=C.getBaseElement();if(I){var B=this.layers[E];if(!B.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(I,E);else{for(var U=0,V,X,Y;U<E;)this.elements[U]&&this.elements[U]!==!0&&this.elements[U].getBaseElement&&(X=this.elements[U],Y=this.layers[U].ddd?this.getThreeDContainerByPos(U):X.getBaseElement(),V=Y||V),U+=1;V?(!B.ddd||!this.supports3d)&&this.layerElement.insertBefore(I,V):(!B.ddd||!this.supports3d)&&this.layerElement.appendChild(I)}else this.addTo3dContainer(I,E)}},HybridRendererBase.prototype.createShape=function(C){return this.supports3d?new HShapeElement(C,this.globalData,this):new SVGShapeElement(C,this.globalData,this)},HybridRendererBase.prototype.createText=function(C){return this.supports3d?new HTextElement(C,this.globalData,this):new SVGTextLottieElement(C,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(C){return this.camera=new HCameraElement(C,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(C){return this.supports3d?new HImageElement(C,this.globalData,this):new IImageElement(C,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(C){return this.supports3d?new HSolidElement(C,this.globalData,this):new ISolidElement(C,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(C){for(var E=0,I=this.threeDElements.length;E<I;){if(this.threeDElements[E].startPos<=C&&this.threeDElements[E].endPos>=C)return this.threeDElements[E].perspectiveElem;E+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(C,E){var I=createTag("div"),B,U;styleDiv(I);var V=createTag("div");if(styleDiv(V),E==="3d"){B=I.style,B.width=this.globalData.compSize.w+"px",B.height=this.globalData.compSize.h+"px";var X="50% 50%";B.webkitTransformOrigin=X,B.mozTransformOrigin=X,B.transformOrigin=X,U=V.style;var Y="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";U.transform=Y,U.webkitTransform=Y}I.appendChild(V);var K={container:V,perspectiveElem:I,startPos:C,endPos:C,type:E};return this.threeDElements.push(K),K},HybridRendererBase.prototype.build3dContainers=function(){var C,E=this.layers.length,I,B="";for(C=0;C<E;C+=1)this.layers[C].ddd&&this.layers[C].ty!==3?(B!=="3d"&&(B="3d",I=this.createThreeDContainer(C,"3d")),I.endPos=Math.max(I.endPos,C)):(B!=="2d"&&(B="2d",I=this.createThreeDContainer(C,"2d")),I.endPos=Math.max(I.endPos,C));for(E=this.threeDElements.length,C=E-1;C>=0;C-=1)this.resizerElem.appendChild(this.threeDElements[C].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(C,E){for(var I=0,B=this.threeDElements.length;I<B;){if(E<=this.threeDElements[I].endPos){for(var U=this.threeDElements[I].startPos,V;U<E;)this.elements[U]&&this.elements[U].getBaseElement&&(V=this.elements[U].getBaseElement()),U+=1;V?this.threeDElements[I].container.insertBefore(C,V):this.threeDElements[I].container.appendChild(C);break}I+=1}},HybridRendererBase.prototype.configAnimation=function(C){var E=createTag("div"),I=this.animationItem.wrapper,B=E.style;B.width=C.w+"px",B.height=C.h+"px",this.resizerElem=E,styleDiv(E),B.transformStyle="flat",B.mozTransformStyle="flat",B.webkitTransformStyle="flat",this.renderConfig.className&&E.setAttribute("class",this.renderConfig.className),I.appendChild(E),B.overflow="hidden";var U=createNS("svg");U.setAttribute("width","1"),U.setAttribute("height","1"),styleDiv(U),this.resizerElem.appendChild(U);var V=createNS("defs");U.appendChild(V),this.data=C,this.setupGlobalData(C,U),this.globalData.defs=V,this.layers=C.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var C,E=this.layers?this.layers.length:0;for(C=0;C<E;C+=1)this.elements[C]&&this.elements[C].destroy&&this.elements[C].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var C=this.animationItem.wrapper.offsetWidth,E=this.animationItem.wrapper.offsetHeight,I=C/E,B=this.globalData.compSize.w/this.globalData.compSize.h,U,V,X,Y;B>I?(U=C/this.globalData.compSize.w,V=C/this.globalData.compSize.w,X=0,Y=(E-this.globalData.compSize.h*(C/this.globalData.compSize.w))/2):(U=E/this.globalData.compSize.h,V=E/this.globalData.compSize.h,X=(C-this.globalData.compSize.w*(E/this.globalData.compSize.h))/2,Y=0);var K=this.resizerElem.style;K.webkitTransform="matrix3d("+U+",0,0,0,0,"+V+",0,0,0,0,1,0,"+X+","+Y+",0,1)",K.transform=K.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var C=this.globalData.compSize.w,E=this.globalData.compSize.h,I,B=this.threeDElements.length;for(I=0;I<B;I+=1){var U=this.threeDElements[I].perspectiveElem.style;U.webkitPerspective=Math.sqrt(Math.pow(C,2)+Math.pow(E,2))+"px",U.perspective=U.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(C){var E,I=C.length,B=createTag("div");for(E=0;E<I;E+=1)if(C[E].xt){var U=this.createComp(C[E],B,this.globalData.comp,null);U.initExpressions(),this.globalData.projectInterface.registerComposition(U)}};function HCompElement(C,E,I){this.layers=C.layers,this.supports3d=!C.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(C,E,I),this.tm=C.tm?PropertyFactory.getProp(this,C.tm,0,E.frameRate,this):{_placeholder:!0}}extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(C,E){for(var I=0,B;I<E;)this.elements[I]&&this.elements[I].getBaseElement&&(B=this.elements[I].getBaseElement()),I+=1;B?this.layerElement.insertBefore(C,B):this.layerElement.appendChild(C)},HCompElement.prototype.createComp=function(C){return this.supports3d?new HCompElement(C,this.globalData,this):new SVGCompElement(C,this.globalData,this)};function HybridRenderer(C,E){this.animationItem=C,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:E&&E.className||"",imagePreserveAspectRatio:E&&E.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(E&&E.hideOnTransparent===!1),filterSize:{width:E&&E.filterSize&&E.filterSize.width||"400%",height:E&&E.filterSize&&E.filterSize.height||"400%",x:E&&E.filterSize&&E.filterSize.x||"-100%",y:E&&E.filterSize&&E.filterSize.y||"-100%"},runExpressions:!E||E.runExpressions===void 0||E.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(C){return this.supports3d?new HCompElement(C,this.globalData,this):new SVGCompElement(C,this.globalData,this)};var CompExpressionInterface=function(){return function(C){function E(I){for(var B=0,U=C.layers.length;B<U;){if(C.layers[B].nm===I||C.layers[B].ind===I)return C.elements[B].layerInterface;B+=1}return null}return Object.defineProperty(E,"_name",{value:C.data.nm}),E.layer=E,E.pixelAspect=1,E.height=C.data.h||C.globalData.compSize.h,E.width=C.data.w||C.globalData.compSize.w,E.pixelAspect=1,E.frameDuration=1/C.globalData.frameRate,E.displayStartTime=0,E.numLayers=C.layers.length,E}}();function _typeof$2(C){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$2=function(I){return typeof I}:_typeof$2=function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},_typeof$2(C)}function seedRandom(C,E){var I=this,B=256,U=6,V=52,X="random",Y=E.pow(B,U),K=E.pow(2,V),J=K*2,xe=B-1,Z;function _e(Pe,Ie,Me){var Oe=[];Ie=Ie===!0?{entropy:!0}:Ie||{};var Le=Re(Ae(Ie.entropy?[Pe,we(C)]:Pe===null?Te():Pe,3),Oe),$e=new Se(Oe),Ve=function(){for(var Ue=$e.g(U),We=Y,ze=0;Ue<K;)Ue=(Ue+ze)*B,We*=B,ze=$e.g(1);for(;Ue>=J;)Ue/=2,We/=2,ze>>>=1;return(Ue+ze)/We};return Ve.int32=function(){return $e.g(4)|0},Ve.quick=function(){return $e.g(4)/4294967296},Ve.double=Ve,Re(we($e.S),C),(Ie.pass||Me||function(Xe,Ue,We,ze){return ze&&(ze.S&&Ee(ze,$e),Xe.state=function(){return Ee($e,{})}),We?(E[X]=Xe,Ue):Xe})(Ve,Le,"global"in Ie?Ie.global:this==E,Ie.state)}E["seed"+X]=_e;function Se(Pe){var Ie,Me=Pe.length,Oe=this,Le=0,$e=Oe.i=Oe.j=0,Ve=Oe.S=[];for(Me||(Pe=[Me++]);Le<B;)Ve[Le]=Le++;for(Le=0;Le<B;Le++)Ve[Le]=Ve[$e=xe&$e+Pe[Le%Me]+(Ie=Ve[Le])],Ve[$e]=Ie;Oe.g=function(Xe){for(var Ue,We=0,ze=Oe.i,He=Oe.j,je=Oe.S;Xe--;)Ue=je[ze=xe&ze+1],We=We*B+je[xe&(je[ze]=je[He=xe&He+Ue])+(je[He]=Ue)];return Oe.i=ze,Oe.j=He,We}}function Ee(Pe,Ie){return Ie.i=Pe.i,Ie.j=Pe.j,Ie.S=Pe.S.slice(),Ie}function Ae(Pe,Ie){var Me=[],Oe=_typeof$2(Pe),Le;if(Ie&&Oe=="object")for(Le in Pe)try{Me.push(Ae(Pe[Le],Ie-1))}catch{}return Me.length?Me:Oe=="string"?Pe:Pe+"\0"}function Re(Pe,Ie){for(var Me=Pe+"",Oe,Le=0;Le<Me.length;)Ie[xe&Le]=xe&(Oe^=Ie[xe&Le]*19)+Me.charCodeAt(Le++);return we(Ie)}function Te(){try{var Pe=new Uint8Array(B);return(I.crypto||I.msCrypto).getRandomValues(Pe),we(Pe)}catch{var Ie=I.navigator,Me=Ie&&Ie.plugins;return[+new Date,I,Me,I.screen,we(C)]}}function we(Pe){return String.fromCharCode.apply(0,Pe)}Re(E.random(),C)}function initialize$2(C){seedRandom([],C)}var propTypes={SHAPE:"shape"};function _typeof$1(C){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(I){return typeof I}:_typeof$1=function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},_typeof$1(C)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};initialize$2(BMMath);function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(C){return C.constructor===Array||C.constructor===Float32Array}function isNumerable(C,E){return C==="number"||E instanceof Number||C==="boolean"||C==="string"}function $bm_neg(C){var E=_typeof$1(C);if(E==="number"||C instanceof Number||E==="boolean")return-C;if($bm_isInstanceOfArray(C)){var I,B=C.length,U=[];for(I=0;I<B;I+=1)U[I]=-C[I];return U}return C.propType?C.v:-C}var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(C,E){var I=_typeof$1(C),B=_typeof$1(E);if(isNumerable(I,C)&&isNumerable(B,E)||I==="string"||B==="string")return C+E;if($bm_isInstanceOfArray(C)&&isNumerable(B,E))return C=C.slice(0),C[0]+=E,C;if(isNumerable(I,C)&&$bm_isInstanceOfArray(E))return E=E.slice(0),E[0]=C+E[0],E;if($bm_isInstanceOfArray(C)&&$bm_isInstanceOfArray(E)){for(var U=0,V=C.length,X=E.length,Y=[];U<V||U<X;)(typeof C[U]=="number"||C[U]instanceof Number)&&(typeof E[U]=="number"||E[U]instanceof Number)?Y[U]=C[U]+E[U]:Y[U]=E[U]===void 0?C[U]:C[U]||E[U],U+=1;return Y}return 0}var add=sum;function sub(C,E){var I=_typeof$1(C),B=_typeof$1(E);if(isNumerable(I,C)&&isNumerable(B,E))return I==="string"&&(C=parseInt(C,10)),B==="string"&&(E=parseInt(E,10)),C-E;if($bm_isInstanceOfArray(C)&&isNumerable(B,E))return C=C.slice(0),C[0]-=E,C;if(isNumerable(I,C)&&$bm_isInstanceOfArray(E))return E=E.slice(0),E[0]=C-E[0],E;if($bm_isInstanceOfArray(C)&&$bm_isInstanceOfArray(E)){for(var U=0,V=C.length,X=E.length,Y=[];U<V||U<X;)(typeof C[U]=="number"||C[U]instanceof Number)&&(typeof E[U]=="number"||E[U]instanceof Number)?Y[U]=C[U]-E[U]:Y[U]=E[U]===void 0?C[U]:C[U]||E[U],U+=1;return Y}return 0}function mul(C,E){var I=_typeof$1(C),B=_typeof$1(E),U;if(isNumerable(I,C)&&isNumerable(B,E))return C*E;var V,X;if($bm_isInstanceOfArray(C)&&isNumerable(B,E)){for(X=C.length,U=createTypedArray("float32",X),V=0;V<X;V+=1)U[V]=C[V]*E;return U}if(isNumerable(I,C)&&$bm_isInstanceOfArray(E)){for(X=E.length,U=createTypedArray("float32",X),V=0;V<X;V+=1)U[V]=C*E[V];return U}return 0}function div(C,E){var I=_typeof$1(C),B=_typeof$1(E),U;if(isNumerable(I,C)&&isNumerable(B,E))return C/E;var V,X;if($bm_isInstanceOfArray(C)&&isNumerable(B,E)){for(X=C.length,U=createTypedArray("float32",X),V=0;V<X;V+=1)U[V]=C[V]/E;return U}if(isNumerable(I,C)&&$bm_isInstanceOfArray(E)){for(X=E.length,U=createTypedArray("float32",X),V=0;V<X;V+=1)U[V]=C/E[V];return U}return 0}function mod(C,E){return typeof C=="string"&&(C=parseInt(C,10)),typeof E=="string"&&(E=parseInt(E,10)),C%E}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(C,E,I){if(E>I){var B=I;I=E,E=B}return Math.min(Math.max(C,E),I)}function radiansToDegrees(C){return C/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(C){return C*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(C,E){if(typeof C=="number"||C instanceof Number)return E=E||0,Math.abs(C-E);E||(E=helperLengthArray);var I,B=Math.min(C.length,E.length),U=0;for(I=0;I<B;I+=1)U+=Math.pow(E[I]-C[I],2);return Math.sqrt(U)}function normalize(C){return div(C,length(C))}function rgbToHsl(C){var E=C[0],I=C[1],B=C[2],U=Math.max(E,I,B),V=Math.min(E,I,B),X,Y,K=(U+V)/2;if(U===V)X=0,Y=0;else{var J=U-V;switch(Y=K>.5?J/(2-U-V):J/(U+V),U){case E:X=(I-B)/J+(I<B?6:0);break;case I:X=(B-E)/J+2;break;case B:X=(E-I)/J+4;break}X/=6}return[X,Y,K,C[3]]}function hue2rgb(C,E,I){return I<0&&(I+=1),I>1&&(I-=1),I<1/6?C+(E-C)*6*I:I<1/2?E:I<2/3?C+(E-C)*(2/3-I)*6:C}function hslToRgb(C){var E=C[0],I=C[1],B=C[2],U,V,X;if(I===0)U=B,X=B,V=B;else{var Y=B<.5?B*(1+I):B+I-B*I,K=2*B-Y;U=hue2rgb(K,Y,E+1/3),V=hue2rgb(K,Y,E),X=hue2rgb(K,Y,E-1/3)}return[U,V,X,C[3]]}function linear(C,E,I,B,U){if((B===void 0||U===void 0)&&(B=E,U=I,E=0,I=1),I<E){var V=I;I=E,E=V}if(C<=E)return B;if(C>=I)return U;var X=I===E?0:(C-E)/(I-E);if(!B.length)return B+(U-B)*X;var Y,K=B.length,J=createTypedArray("float32",K);for(Y=0;Y<K;Y+=1)J[Y]=B[Y]+(U[Y]-B[Y])*X;return J}function random(C,E){if(E===void 0&&(C===void 0?(C=0,E=1):(E=C,C=void 0)),E.length){var I,B=E.length;C||(C=createTypedArray("float32",B));var U=createTypedArray("float32",B),V=BMMath.random();for(I=0;I<B;I+=1)U[I]=C[I]+V*(E[I]-C[I]);return U}C===void 0&&(C=0);var X=BMMath.random();return C+X*(E-C)}function createPath(C,E,I,B){var U,V=C.length,X=shapePool.newElement();X.setPathData(!!B,V);var Y=[0,0],K,J;for(U=0;U<V;U+=1)K=E&&E[U]?E[U]:Y,J=I&&I[U]?I[U]:Y,X.setTripleAt(C[U][0],C[U][1],J[0]+C[U][0],J[1]+C[U][1],K[0]+C[U][0],K[1]+C[U][1],U,!0);return X}function initiateExpression(elem,data,property){function noOp(C){return C}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=(function C(E,I){var B,U,V=this.pv.length?this.pv.length:1,X=createTypedArray("float32",V);E=5;var Y=Math.floor(time*E);for(B=0,U=0;B<Y;){for(U=0;U<V;U+=1)X[U]+=-I+I*2*BMMath.random();B+=1}var K=time*E,J=K-Math.floor(K),xe=createTypedArray("float32",V);if(V>1){for(U=0;U<V;U+=1)xe[U]=this.pv[U]+X[U]+(-I+I*2*BMMath.random())*J;return xe}return this.pv+X[0]+(-I+I*2*BMMath.random())*J}).bind(this);thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty));function loopInDuration(C,E){return loopIn(C,E,!0)}function loopOutDuration(C,E){return loopOut(C,E,!0)}this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(C,E){var I=[E[0]-C[0],E[1]-C[1],E[2]-C[2]],B=Math.atan2(I[0],Math.sqrt(I[1]*I[1]+I[2]*I[2]))/degToRads,U=-Math.atan2(I[1],I[2])/degToRads;return[U,B,0]}function easeOut(C,E,I,B,U){return applyEase(easeOutBez,C,E,I,B,U)}function easeIn(C,E,I,B,U){return applyEase(easeInBez,C,E,I,B,U)}function ease(C,E,I,B,U){return applyEase(easeInOutBez,C,E,I,B,U)}function applyEase(C,E,I,B,U,V){U===void 0?(U=I,V=B):E=(E-I)/(B-I),E>1?E=1:E<0&&(E=0);var X=C(E);if($bm_isInstanceOfArray(U)){var Y,K=U.length,J=createTypedArray("float32",K);for(Y=0;Y<K;Y+=1)J[Y]=(V[Y]-U[Y])*X+U[Y];return J}return(V-U)*X+U}function nearestKey(C){var E,I=data.k.length,B,U;if(!data.k.length||typeof data.k[0]=="number")B=0,U=0;else if(B=-1,C*=elem.comp.globalData.frameRate,C<data.k[0].t)B=1,U=data.k[0].t;else{for(E=0;E<I-1;E+=1)if(C===data.k[E].t){B=E+1,U=data.k[E].t;break}else if(C>data.k[E].t&&C<data.k[E+1].t){C-data.k[E].t>data.k[E+1].t-C?(B=E+2,U=data.k[E+1].t):(B=E+1,U=data.k[E].t);break}B===-1&&(B=E+1,U=data.k[E].t)}var V={};return V.index=B,V.time=U/elem.comp.globalData.frameRate,V}function key(C){var E,I,B;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+C);C-=1,E={time:data.k[C].t/elem.comp.globalData.frameRate,value:[]};var U=Object.prototype.hasOwnProperty.call(data.k[C],"s")?data.k[C].s:data.k[C-1].e;for(B=U.length,I=0;I<B;I+=1)E[I]=U[I],E.value[I]=U[I];return E}function framesToTime(C,E){return E||(E=elem.comp.globalData.frameRate),C/E}function timeToFrames(C,E){return!C&&C!==0&&(C=time),E||(E=elem.comp.globalData.frameRate),C*E}function seedRandom(C){BMMath.seedrandom(randSeed+C)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(C,E){return typeof value=="string"?E===void 0?value.substring(C):value.substring(C,E):""}function substr(C,E){return typeof value=="string"?E===void 0?value.substr(C):value.substr(C,E):""}function posterizeTime(C){time=C===0?0:Math.floor(time*C)/C,value=valueAtTime(time)}var time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),parent,randSeed=Math.floor(Math.random()*1e6),globalData=elem.globalData;function executeExpression(C){return value=C,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),elemType===4&&!content&&(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),hasParent=!!(elem.hierarchy&&elem.hierarchy.length),hasParent&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt,scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var C={};C.initExpressions=E,C.resetFrame=ExpressionManager.resetFrame;function E(I){var B=0,U=[];function V(){B+=1}function X(){B-=1,B===0&&K()}function Y(J){U.indexOf(J)===-1&&U.push(J)}function K(){var J,xe=U.length;for(J=0;J<xe;J+=1)U[J].release();U.length=0}I.renderer.compInterface=CompExpressionInterface(I.renderer),I.renderer.globalData.projectInterface.registerComposition(I.renderer),I.renderer.globalData.pushExpression=V,I.renderer.globalData.popExpression=X,I.renderer.globalData.registerExpressionProperty=Y}return C}(),MaskManagerInterface=function(){function C(I,B){this._mask=I,this._data=B}Object.defineProperty(C.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(C.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var E=function(B){var U=createSizedArray(B.viewData.length),V,X=B.viewData.length;for(V=0;V<X;V+=1)U[V]=new C(B.viewData[V],B.masksProperties[V]);var Y=function(J){for(V=0;V<X;){if(B.masksProperties[V].nm===J)return U[V];V+=1}return null};return Y};return E}(),ExpressionPropertyInterface=function(){var C={pv:0,v:0,mult:1},E={pv:[0,0,0],v:[0,0,0],mult:1};function I(X,Y,K){Object.defineProperty(X,"velocity",{get:function(){return Y.getVelocityAtTime(Y.comp.currentFrame)}}),X.numKeys=Y.keyframes?Y.keyframes.length:0,X.key=function(J){if(!X.numKeys)return 0;var xe="";"s"in Y.keyframes[J-1]?xe=Y.keyframes[J-1].s:"e"in Y.keyframes[J-2]?xe=Y.keyframes[J-2].e:xe=Y.keyframes[J-2].s;var Z=K==="unidimensional"?new Number(xe):Object.assign({},xe);return Z.time=Y.keyframes[J-1].t/Y.elem.comp.globalData.frameRate,Z.value=K==="unidimensional"?xe[0]:xe,Z},X.valueAtTime=Y.getValueAtTime,X.speedAtTime=Y.getSpeedAtTime,X.velocityAtTime=Y.getVelocityAtTime,X.propertyGroup=Y.propertyGroup}function B(X){(!X||!("pv"in X))&&(X=C);var Y=1/X.mult,K=X.pv*Y,J=new Number(K);return J.value=K,I(J,X,"unidimensional"),function(){return X.k&&X.getValue(),K=X.v*Y,J.value!==K&&(J=new Number(K),J.value=K,I(J,X,"unidimensional")),J}}function U(X){(!X||!("pv"in X))&&(X=E);var Y=1/X.mult,K=X.data&&X.data.l||X.pv.length,J=createTypedArray("float32",K),xe=createTypedArray("float32",K);return J.value=xe,I(J,X,"multidimensional"),function(){X.k&&X.getValue();for(var Z=0;Z<K;Z+=1)xe[Z]=X.v[Z]*Y,J[Z]=xe[Z];return J}}function V(){return C}return function(X){return X?X.propType==="unidimensional"?B(X):U(X):V}}(),TransformExpressionInterface=function(){return function(C){function E(X){switch(X){case"scale":case"Scale":case"ADBE Scale":case 6:return E.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return E.rotation;case"ADBE Rotate X":return E.xRotation;case"ADBE Rotate Y":return E.yRotation;case"position":case"Position":case"ADBE Position":case 2:return E.position;case"ADBE Position_0":return E.xPosition;case"ADBE Position_1":return E.yPosition;case"ADBE Position_2":return E.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return E.anchorPoint;case"opacity":case"Opacity":case 11:return E.opacity;default:return null}}Object.defineProperty(E,"rotation",{get:ExpressionPropertyInterface(C.r||C.rz)}),Object.defineProperty(E,"zRotation",{get:ExpressionPropertyInterface(C.rz||C.r)}),Object.defineProperty(E,"xRotation",{get:ExpressionPropertyInterface(C.rx)}),Object.defineProperty(E,"yRotation",{get:ExpressionPropertyInterface(C.ry)}),Object.defineProperty(E,"scale",{get:ExpressionPropertyInterface(C.s)});var I,B,U,V;return C.p?V=ExpressionPropertyInterface(C.p):(I=ExpressionPropertyInterface(C.px),B=ExpressionPropertyInterface(C.py),C.pz&&(U=ExpressionPropertyInterface(C.pz))),Object.defineProperty(E,"position",{get:function(){return C.p?V():[I(),B(),U?U():0]}}),Object.defineProperty(E,"xPosition",{get:ExpressionPropertyInterface(C.px)}),Object.defineProperty(E,"yPosition",{get:ExpressionPropertyInterface(C.py)}),Object.defineProperty(E,"zPosition",{get:ExpressionPropertyInterface(C.pz)}),Object.defineProperty(E,"anchorPoint",{get:ExpressionPropertyInterface(C.a)}),Object.defineProperty(E,"opacity",{get:ExpressionPropertyInterface(C.o)}),Object.defineProperty(E,"skew",{get:ExpressionPropertyInterface(C.sk)}),Object.defineProperty(E,"skewAxis",{get:ExpressionPropertyInterface(C.sa)}),Object.defineProperty(E,"orientation",{get:ExpressionPropertyInterface(C.or)}),E}}(),LayerExpressionInterface=function(){function C(J){var xe=new Matrix;if(J!==void 0){var Z=this._elem.finalTransform.mProp.getValueAtTime(J);Z.clone(xe)}else{var _e=this._elem.finalTransform.mProp;_e.applyToMatrix(xe)}return xe}function E(J,xe){var Z=this.getMatrix(xe);return Z.props[12]=0,Z.props[13]=0,Z.props[14]=0,this.applyPoint(Z,J)}function I(J,xe){var Z=this.getMatrix(xe);return this.applyPoint(Z,J)}function B(J,xe){var Z=this.getMatrix(xe);return Z.props[12]=0,Z.props[13]=0,Z.props[14]=0,this.invertPoint(Z,J)}function U(J,xe){var Z=this.getMatrix(xe);return this.invertPoint(Z,J)}function V(J,xe){if(this._elem.hierarchy&&this._elem.hierarchy.length){var Z,_e=this._elem.hierarchy.length;for(Z=0;Z<_e;Z+=1)this._elem.hierarchy[Z].finalTransform.mProp.applyToMatrix(J)}return J.applyToPointArray(xe[0],xe[1],xe[2]||0)}function X(J,xe){if(this._elem.hierarchy&&this._elem.hierarchy.length){var Z,_e=this._elem.hierarchy.length;for(Z=0;Z<_e;Z+=1)this._elem.hierarchy[Z].finalTransform.mProp.applyToMatrix(J)}return J.inversePoint(xe)}function Y(J){var xe=new Matrix;if(xe.reset(),this._elem.finalTransform.mProp.applyToMatrix(xe),this._elem.hierarchy&&this._elem.hierarchy.length){var Z,_e=this._elem.hierarchy.length;for(Z=0;Z<_e;Z+=1)this._elem.hierarchy[Z].finalTransform.mProp.applyToMatrix(xe);return xe.inversePoint(J)}return xe.inversePoint(J)}function K(){return[1,1,1,1]}return function(J){var xe;function Z(Ae){Se.mask=new MaskManagerInterface(Ae,J)}function _e(Ae){Se.effect=Ae}function Se(Ae){switch(Ae){case"ADBE Root Vectors Group":case"Contents":case 2:return Se.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return xe;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return Se.effect;case"ADBE Text Properties":return Se.textInterface;default:return null}}Se.getMatrix=C,Se.invertPoint=X,Se.applyPoint=V,Se.toWorld=I,Se.toWorldVec=E,Se.fromWorld=U,Se.fromWorldVec=B,Se.toComp=I,Se.fromComp=Y,Se.sampleImage=K,Se.sourceRectAtTime=J.sourceRectAtTime.bind(J),Se._elem=J,xe=TransformExpressionInterface(J.finalTransform.mProp);var Ee=getDescriptor(xe,"anchorPoint");return Object.defineProperties(Se,{hasParent:{get:function(){return J.hierarchy.length}},parent:{get:function(){return J.hierarchy[0].layerInterface}},rotation:getDescriptor(xe,"rotation"),scale:getDescriptor(xe,"scale"),position:getDescriptor(xe,"position"),opacity:getDescriptor(xe,"opacity"),anchorPoint:Ee,anchor_point:Ee,transform:{get:function(){return xe}},active:{get:function(){return J.isInRange}}}),Se.startTime=J.data.st,Se.index=J.data.ind,Se.source=J.data.refId,Se.height=J.data.ty===0?J.data.h:100,Se.width=J.data.ty===0?J.data.w:100,Se.inPoint=J.data.ip/J.comp.globalData.frameRate,Se.outPoint=J.data.op/J.comp.globalData.frameRate,Se._name=J.data.nm,Se.registerMaskInterface=Z,Se.registerEffectsInterface=_e,Se}}(),propertyGroupFactory=function(){return function(C,E){return function(I){return I=I===void 0?1:I,I<=0?C:E(I-1)}}}(),PropertyInterface=function(){return function(C,E){var I={_name:C};function B(U){return U=U===void 0?1:U,U<=0?I:E(U-1)}return B}}(),EffectsExpressionInterface=function(){var C={createEffectsInterface:E};function E(U,V){if(U.effectsManager){var X=[],Y=U.data.ef,K,J=U.effectsManager.effectElements.length;for(K=0;K<J;K+=1)X.push(I(Y[K],U.effectsManager.effectElements[K],V,U));var xe=U.data.ef||[],Z=function(Se){for(K=0,J=xe.length;K<J;){if(Se===xe[K].nm||Se===xe[K].mn||Se===xe[K].ix)return X[K];K+=1}return null};return Object.defineProperty(Z,"numProperties",{get:function(){return xe.length}}),Z}return null}function I(U,V,X,Y){function K(Se){for(var Ee=U.ef,Ae=0,Re=Ee.length;Ae<Re;){if(Se===Ee[Ae].nm||Se===Ee[Ae].mn||Se===Ee[Ae].ix)return Ee[Ae].ty===5?xe[Ae]:xe[Ae]();Ae+=1}throw new Error}var J=propertyGroupFactory(K,X),xe=[],Z,_e=U.ef.length;for(Z=0;Z<_e;Z+=1)U.ef[Z].ty===5?xe.push(I(U.ef[Z],V.effectElements[Z],V.effectElements[Z].propertyGroup,Y)):xe.push(B(V.effectElements[Z],U.ef[Z].ty,Y,J));return U.mn==="ADBE Color Control"&&Object.defineProperty(K,"color",{get:function(){return xe[0]()}}),Object.defineProperties(K,{numProperties:{get:function(){return U.np}},_name:{value:U.nm},propertyGroup:{value:J}}),K.enabled=U.en!==0,K.active=K.enabled,K}function B(U,V,X,Y){var K=ExpressionPropertyInterface(U.p);function J(){return V===10?X.comp.compInterface(U.p.v):K()}return U.p.setGroupProperty&&U.p.setGroupProperty(PropertyInterface("",Y)),J}return C}(),ShapePathInterface=function(){return function(E,I,B){var U=I.sh;function V(Y){return Y==="Shape"||Y==="shape"||Y==="Path"||Y==="path"||Y==="ADBE Vector Shape"||Y===2?V.path:null}var X=propertyGroupFactory(V,B);return U.setGroupProperty(PropertyInterface("Path",X)),Object.defineProperties(V,{path:{get:function(){return U.k&&U.getValue(),U}},shape:{get:function(){return U.k&&U.getValue(),U}},_name:{value:E.nm},ix:{value:E.ix},propertyIndex:{value:E.ix},mn:{value:E.mn},propertyGroup:{value:B}}),V}}(),ShapeExpressionInterface=function(){function C(Ee,Ae,Re){var Te=[],we,Pe=Ee?Ee.length:0;for(we=0;we<Pe;we+=1)Ee[we].ty==="gr"?Te.push(I(Ee[we],Ae[we],Re)):Ee[we].ty==="fl"?Te.push(B(Ee[we],Ae[we],Re)):Ee[we].ty==="st"?Te.push(X(Ee[we],Ae[we],Re)):Ee[we].ty==="tm"?Te.push(Y(Ee[we],Ae[we],Re)):Ee[we].ty==="tr"||(Ee[we].ty==="el"?Te.push(J(Ee[we],Ae[we],Re)):Ee[we].ty==="sr"?Te.push(xe(Ee[we],Ae[we],Re)):Ee[we].ty==="sh"?Te.push(ShapePathInterface(Ee[we],Ae[we],Re)):Ee[we].ty==="rc"?Te.push(Z(Ee[we],Ae[we],Re)):Ee[we].ty==="rd"?Te.push(_e(Ee[we],Ae[we],Re)):Ee[we].ty==="rp"?Te.push(Se(Ee[we],Ae[we],Re)):Ee[we].ty==="gf"?Te.push(U(Ee[we],Ae[we],Re)):Te.push(V(Ee[we],Ae[we])));return Te}function E(Ee,Ae,Re){var Te,we=function(Me){for(var Oe=0,Le=Te.length;Oe<Le;){if(Te[Oe]._name===Me||Te[Oe].mn===Me||Te[Oe].propertyIndex===Me||Te[Oe].ix===Me||Te[Oe].ind===Me)return Te[Oe];Oe+=1}return typeof Me=="number"?Te[Me-1]:null};we.propertyGroup=propertyGroupFactory(we,Re),Te=C(Ee.it,Ae.it,we.propertyGroup),we.numProperties=Te.length;var Pe=K(Ee.it[Ee.it.length-1],Ae.it[Ae.it.length-1],we.propertyGroup);return we.transform=Pe,we.propertyIndex=Ee.cix,we._name=Ee.nm,we}function I(Ee,Ae,Re){var Te=function(Me){switch(Me){case"ADBE Vectors Group":case"Contents":case 2:return Te.content;default:return Te.transform}};Te.propertyGroup=propertyGroupFactory(Te,Re);var we=E(Ee,Ae,Te.propertyGroup),Pe=K(Ee.it[Ee.it.length-1],Ae.it[Ae.it.length-1],Te.propertyGroup);return Te.content=we,Te.transform=Pe,Object.defineProperty(Te,"_name",{get:function(){return Ee.nm}}),Te.numProperties=Ee.np,Te.propertyIndex=Ee.ix,Te.nm=Ee.nm,Te.mn=Ee.mn,Te}function B(Ee,Ae,Re){function Te(we){return we==="Color"||we==="color"?Te.color:we==="Opacity"||we==="opacity"?Te.opacity:null}return Object.defineProperties(Te,{color:{get:ExpressionPropertyInterface(Ae.c)},opacity:{get:ExpressionPropertyInterface(Ae.o)},_name:{value:Ee.nm},mn:{value:Ee.mn}}),Ae.c.setGroupProperty(PropertyInterface("Color",Re)),Ae.o.setGroupProperty(PropertyInterface("Opacity",Re)),Te}function U(Ee,Ae,Re){function Te(we){return we==="Start Point"||we==="start point"?Te.startPoint:we==="End Point"||we==="end point"?Te.endPoint:we==="Opacity"||we==="opacity"?Te.opacity:null}return Object.defineProperties(Te,{startPoint:{get:ExpressionPropertyInterface(Ae.s)},endPoint:{get:ExpressionPropertyInterface(Ae.e)},opacity:{get:ExpressionPropertyInterface(Ae.o)},type:{get:function(){return"a"}},_name:{value:Ee.nm},mn:{value:Ee.mn}}),Ae.s.setGroupProperty(PropertyInterface("Start Point",Re)),Ae.e.setGroupProperty(PropertyInterface("End Point",Re)),Ae.o.setGroupProperty(PropertyInterface("Opacity",Re)),Te}function V(){function Ee(){return null}return Ee}function X(Ee,Ae,Re){var Te=propertyGroupFactory(Le,Re),we=propertyGroupFactory(Oe,Te);function Pe($e){Object.defineProperty(Oe,Ee.d[$e].nm,{get:ExpressionPropertyInterface(Ae.d.dataProps[$e].p)})}var Ie,Me=Ee.d?Ee.d.length:0,Oe={};for(Ie=0;Ie<Me;Ie+=1)Pe(Ie),Ae.d.dataProps[Ie].p.setGroupProperty(we);function Le($e){return $e==="Color"||$e==="color"?Le.color:$e==="Opacity"||$e==="opacity"?Le.opacity:$e==="Stroke Width"||$e==="stroke width"?Le.strokeWidth:null}return Object.defineProperties(Le,{color:{get:ExpressionPropertyInterface(Ae.c)},opacity:{get:ExpressionPropertyInterface(Ae.o)},strokeWidth:{get:ExpressionPropertyInterface(Ae.w)},dash:{get:function(){return Oe}},_name:{value:Ee.nm},mn:{value:Ee.mn}}),Ae.c.setGroupProperty(PropertyInterface("Color",Te)),Ae.o.setGroupProperty(PropertyInterface("Opacity",Te)),Ae.w.setGroupProperty(PropertyInterface("Stroke Width",Te)),Le}function Y(Ee,Ae,Re){function Te(Pe){return Pe===Ee.e.ix||Pe==="End"||Pe==="end"?Te.end:Pe===Ee.s.ix?Te.start:Pe===Ee.o.ix?Te.offset:null}var we=propertyGroupFactory(Te,Re);return Te.propertyIndex=Ee.ix,Ae.s.setGroupProperty(PropertyInterface("Start",we)),Ae.e.setGroupProperty(PropertyInterface("End",we)),Ae.o.setGroupProperty(PropertyInterface("Offset",we)),Te.propertyIndex=Ee.ix,Te.propertyGroup=Re,Object.defineProperties(Te,{start:{get:ExpressionPropertyInterface(Ae.s)},end:{get:ExpressionPropertyInterface(Ae.e)},offset:{get:ExpressionPropertyInterface(Ae.o)},_name:{value:Ee.nm}}),Te.mn=Ee.mn,Te}function K(Ee,Ae,Re){function Te(Pe){return Ee.a.ix===Pe||Pe==="Anchor Point"?Te.anchorPoint:Ee.o.ix===Pe||Pe==="Opacity"?Te.opacity:Ee.p.ix===Pe||Pe==="Position"?Te.position:Ee.r.ix===Pe||Pe==="Rotation"||Pe==="ADBE Vector Rotation"?Te.rotation:Ee.s.ix===Pe||Pe==="Scale"?Te.scale:Ee.sk&&Ee.sk.ix===Pe||Pe==="Skew"?Te.skew:Ee.sa&&Ee.sa.ix===Pe||Pe==="Skew Axis"?Te.skewAxis:null}var we=propertyGroupFactory(Te,Re);return Ae.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",we)),Ae.transform.mProps.p.setGroupProperty(PropertyInterface("Position",we)),Ae.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",we)),Ae.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",we)),Ae.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",we)),Ae.transform.mProps.sk&&(Ae.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",we)),Ae.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",we))),Ae.transform.op.setGroupProperty(PropertyInterface("Opacity",we)),Object.defineProperties(Te,{opacity:{get:ExpressionPropertyInterface(Ae.transform.mProps.o)},position:{get:ExpressionPropertyInterface(Ae.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(Ae.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(Ae.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(Ae.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(Ae.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(Ae.transform.mProps.sa)},_name:{value:Ee.nm}}),Te.ty="tr",Te.mn=Ee.mn,Te.propertyGroup=Re,Te}function J(Ee,Ae,Re){function Te(Ie){return Ee.p.ix===Ie?Te.position:Ee.s.ix===Ie?Te.size:null}var we=propertyGroupFactory(Te,Re);Te.propertyIndex=Ee.ix;var Pe=Ae.sh.ty==="tm"?Ae.sh.prop:Ae.sh;return Pe.s.setGroupProperty(PropertyInterface("Size",we)),Pe.p.setGroupProperty(PropertyInterface("Position",we)),Object.defineProperties(Te,{size:{get:ExpressionPropertyInterface(Pe.s)},position:{get:ExpressionPropertyInterface(Pe.p)},_name:{value:Ee.nm}}),Te.mn=Ee.mn,Te}function xe(Ee,Ae,Re){function Te(Ie){return Ee.p.ix===Ie?Te.position:Ee.r.ix===Ie?Te.rotation:Ee.pt.ix===Ie?Te.points:Ee.or.ix===Ie||Ie==="ADBE Vector Star Outer Radius"?Te.outerRadius:Ee.os.ix===Ie?Te.outerRoundness:Ee.ir&&(Ee.ir.ix===Ie||Ie==="ADBE Vector Star Inner Radius")?Te.innerRadius:Ee.is&&Ee.is.ix===Ie?Te.innerRoundness:null}var we=propertyGroupFactory(Te,Re),Pe=Ae.sh.ty==="tm"?Ae.sh.prop:Ae.sh;return Te.propertyIndex=Ee.ix,Pe.or.setGroupProperty(PropertyInterface("Outer Radius",we)),Pe.os.setGroupProperty(PropertyInterface("Outer Roundness",we)),Pe.pt.setGroupProperty(PropertyInterface("Points",we)),Pe.p.setGroupProperty(PropertyInterface("Position",we)),Pe.r.setGroupProperty(PropertyInterface("Rotation",we)),Ee.ir&&(Pe.ir.setGroupProperty(PropertyInterface("Inner Radius",we)),Pe.is.setGroupProperty(PropertyInterface("Inner Roundness",we))),Object.defineProperties(Te,{position:{get:ExpressionPropertyInterface(Pe.p)},rotation:{get:ExpressionPropertyInterface(Pe.r)},points:{get:ExpressionPropertyInterface(Pe.pt)},outerRadius:{get:ExpressionPropertyInterface(Pe.or)},outerRoundness:{get:ExpressionPropertyInterface(Pe.os)},innerRadius:{get:ExpressionPropertyInterface(Pe.ir)},innerRoundness:{get:ExpressionPropertyInterface(Pe.is)},_name:{value:Ee.nm}}),Te.mn=Ee.mn,Te}function Z(Ee,Ae,Re){function Te(Ie){return Ee.p.ix===Ie?Te.position:Ee.r.ix===Ie?Te.roundness:Ee.s.ix===Ie||Ie==="Size"||Ie==="ADBE Vector Rect Size"?Te.size:null}var we=propertyGroupFactory(Te,Re),Pe=Ae.sh.ty==="tm"?Ae.sh.prop:Ae.sh;return Te.propertyIndex=Ee.ix,Pe.p.setGroupProperty(PropertyInterface("Position",we)),Pe.s.setGroupProperty(PropertyInterface("Size",we)),Pe.r.setGroupProperty(PropertyInterface("Rotation",we)),Object.defineProperties(Te,{position:{get:ExpressionPropertyInterface(Pe.p)},roundness:{get:ExpressionPropertyInterface(Pe.r)},size:{get:ExpressionPropertyInterface(Pe.s)},_name:{value:Ee.nm}}),Te.mn=Ee.mn,Te}function _e(Ee,Ae,Re){function Te(Ie){return Ee.r.ix===Ie||Ie==="Round Corners 1"?Te.radius:null}var we=propertyGroupFactory(Te,Re),Pe=Ae;return Te.propertyIndex=Ee.ix,Pe.rd.setGroupProperty(PropertyInterface("Radius",we)),Object.defineProperties(Te,{radius:{get:ExpressionPropertyInterface(Pe.rd)},_name:{value:Ee.nm}}),Te.mn=Ee.mn,Te}function Se(Ee,Ae,Re){function Te(Ie){return Ee.c.ix===Ie||Ie==="Copies"?Te.copies:Ee.o.ix===Ie||Ie==="Offset"?Te.offset:null}var we=propertyGroupFactory(Te,Re),Pe=Ae;return Te.propertyIndex=Ee.ix,Pe.c.setGroupProperty(PropertyInterface("Copies",we)),Pe.o.setGroupProperty(PropertyInterface("Offset",we)),Object.defineProperties(Te,{copies:{get:ExpressionPropertyInterface(Pe.c)},offset:{get:ExpressionPropertyInterface(Pe.o)},_name:{value:Ee.nm}}),Te.mn=Ee.mn,Te}return function(Ee,Ae,Re){var Te;function we(Ie){if(typeof Ie=="number")return Ie=Ie===void 0?1:Ie,Ie===0?Re:Te[Ie-1];for(var Me=0,Oe=Te.length;Me<Oe;){if(Te[Me]._name===Ie)return Te[Me];Me+=1}return null}function Pe(){return Re}return we.propertyGroup=propertyGroupFactory(we,Pe),Te=C(Ee,Ae,we.propertyGroup),we.numProperties=Te.length,we._name="Contents",we}}(),TextExpressionInterface=function(){return function(C){var E;function I(B){switch(B){case"ADBE Text Document":return I.sourceText;default:return null}}return Object.defineProperty(I,"sourceText",{get:function(){C.textProperty.getValue();var U=C.textProperty.currentData.t;return(!E||U!==E.value)&&(E=new String(U),E.value=U||new String(U),Object.defineProperty(E,"style",{get:function(){return{fillColor:C.textProperty.currentData.fc}}})),E}}),I}}();function _typeof(C){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(I){return typeof I}:_typeof=function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},_typeof(C)}var FootageInterface=function(){var C=function(B){var U="",V=B.getFootageData();function X(){return U="",V=B.getFootageData(),Y}function Y(K){if(V[K])return U=K,V=V[K],_typeof(V)==="object"?Y:V;var J=K.indexOf(U);if(J!==-1){var xe=parseInt(K.substr(J+U.length),10);return V=V[xe],_typeof(V)==="object"?Y:V}return""}return X},E=function(B){function U(V){return V==="Outline"?U.outlineInterface():null}return U._name="Outline",U.outlineInterface=C(B),U};return function(I){function B(U){return U==="Data"?B.dataInterface:null}return B._name="Data",B.dataInterface=E(I),B}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(C){return interfaces[C]||null}var expressionHelpers=function(){function C(X,Y,K){Y.x&&(K.k=!0,K.x=!0,K.initiateExpression=ExpressionManager.initiateExpression,K.effectsSequence.push(K.initiateExpression(X,Y,K).bind(K)))}function E(X){return X*=this.elem.globalData.frameRate,X-=this.offsetTime,X!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<X?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(X,this._cachingAtTime),this._cachingAtTime.lastFrame=X),this._cachingAtTime.value}function I(X){var Y=-.01,K=this.getValueAtTime(X),J=this.getValueAtTime(X+Y),xe=0;if(K.length){var Z;for(Z=0;Z<K.length;Z+=1)xe+=Math.pow(J[Z]-K[Z],2);xe=Math.sqrt(xe)*100}else xe=0;return xe}function B(X){if(this.vel!==void 0)return this.vel;var Y=-.001,K=this.getValueAtTime(X),J=this.getValueAtTime(X+Y),xe;if(K.length){xe=createTypedArray("float32",K.length);var Z;for(Z=0;Z<K.length;Z+=1)xe[Z]=(J[Z]-K[Z])/Y}else xe=(J-K)/Y;return xe}function U(){return this.pv}function V(X){this.propertyGroup=X}return{searchExpressions:C,getSpeedAtTime:I,getVelocityAtTime:B,getValueAtTime:E,getStaticValueAtTime:U,setGroupProperty:V}}();function addPropertyDecorator(){function C(_e,Se,Ee){if(!this.k||!this.keyframes)return this.pv;_e=_e?_e.toLowerCase():"";var Ae=this.comp.renderedFrame,Re=this.keyframes,Te=Re[Re.length-1].t;if(Ae<=Te)return this.pv;var we,Pe;Ee?(Se?we=Math.abs(Te-this.elem.comp.globalData.frameRate*Se):we=Math.max(0,Te-this.elem.data.ip),Pe=Te-we):((!Se||Se>Re.length-1)&&(Se=Re.length-1),Pe=Re[Re.length-1-Se].t,we=Te-Pe);var Ie,Me,Oe;if(_e==="pingpong"){var Le=Math.floor((Ae-Pe)/we);if(Le%2!==0)return this.getValueAtTime((we-(Ae-Pe)%we+Pe)/this.comp.globalData.frameRate,0)}else if(_e==="offset"){var $e=this.getValueAtTime(Pe/this.comp.globalData.frameRate,0),Ve=this.getValueAtTime(Te/this.comp.globalData.frameRate,0),Xe=this.getValueAtTime(((Ae-Pe)%we+Pe)/this.comp.globalData.frameRate,0),Ue=Math.floor((Ae-Pe)/we);if(this.pv.length){for(Oe=new Array($e.length),Me=Oe.length,Ie=0;Ie<Me;Ie+=1)Oe[Ie]=(Ve[Ie]-$e[Ie])*Ue+Xe[Ie];return Oe}return(Ve-$e)*Ue+Xe}else if(_e==="continue"){var We=this.getValueAtTime(Te/this.comp.globalData.frameRate,0),ze=this.getValueAtTime((Te-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(Oe=new Array(We.length),Me=Oe.length,Ie=0;Ie<Me;Ie+=1)Oe[Ie]=We[Ie]+(We[Ie]-ze[Ie])*((Ae-Te)/this.comp.globalData.frameRate)/5e-4;return Oe}return We+(We-ze)*((Ae-Te)/.001)}return this.getValueAtTime(((Ae-Pe)%we+Pe)/this.comp.globalData.frameRate,0)}function E(_e,Se,Ee){if(!this.k)return this.pv;_e=_e?_e.toLowerCase():"";var Ae=this.comp.renderedFrame,Re=this.keyframes,Te=Re[0].t;if(Ae>=Te)return this.pv;var we,Pe;Ee?(Se?we=Math.abs(this.elem.comp.globalData.frameRate*Se):we=Math.max(0,this.elem.data.op-Te),Pe=Te+we):((!Se||Se>Re.length-1)&&(Se=Re.length-1),Pe=Re[Se].t,we=Pe-Te);var Ie,Me,Oe;if(_e==="pingpong"){var Le=Math.floor((Te-Ae)/we);if(Le%2===0)return this.getValueAtTime(((Te-Ae)%we+Te)/this.comp.globalData.frameRate,0)}else if(_e==="offset"){var $e=this.getValueAtTime(Te/this.comp.globalData.frameRate,0),Ve=this.getValueAtTime(Pe/this.comp.globalData.frameRate,0),Xe=this.getValueAtTime((we-(Te-Ae)%we+Te)/this.comp.globalData.frameRate,0),Ue=Math.floor((Te-Ae)/we)+1;if(this.pv.length){for(Oe=new Array($e.length),Me=Oe.length,Ie=0;Ie<Me;Ie+=1)Oe[Ie]=Xe[Ie]-(Ve[Ie]-$e[Ie])*Ue;return Oe}return Xe-(Ve-$e)*Ue}else if(_e==="continue"){var We=this.getValueAtTime(Te/this.comp.globalData.frameRate,0),ze=this.getValueAtTime((Te+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(Oe=new Array(We.length),Me=Oe.length,Ie=0;Ie<Me;Ie+=1)Oe[Ie]=We[Ie]+(We[Ie]-ze[Ie])*(Te-Ae)/.001;return Oe}return We+(We-ze)*(Te-Ae)/.001}return this.getValueAtTime((we-((Te-Ae)%we+Te))/this.comp.globalData.frameRate,0)}function I(_e,Se){if(!this.k)return this.pv;if(_e=(_e||.4)*.5,Se=Math.floor(Se||5),Se<=1)return this.pv;var Ee=this.comp.renderedFrame/this.comp.globalData.frameRate,Ae=Ee-_e,Re=Ee+_e,Te=Se>1?(Re-Ae)/(Se-1):1,we=0,Pe=0,Ie;this.pv.length?Ie=createTypedArray("float32",this.pv.length):Ie=0;for(var Me;we<Se;){if(Me=this.getValueAtTime(Ae+we*Te),this.pv.length)for(Pe=0;Pe<this.pv.length;Pe+=1)Ie[Pe]+=Me[Pe];else Ie+=Me;we+=1}if(this.pv.length)for(Pe=0;Pe<this.pv.length;Pe+=1)Ie[Pe]/=Se;else Ie/=Se;return Ie}function B(_e){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var Se=this._transformCachingAtTime.v;if(Se.cloneFromProps(this.pre.props),this.appliedTransformations<1){var Ee=this.a.getValueAtTime(_e);Se.translate(-Ee[0]*this.a.mult,-Ee[1]*this.a.mult,Ee[2]*this.a.mult)}if(this.appliedTransformations<2){var Ae=this.s.getValueAtTime(_e);Se.scale(Ae[0]*this.s.mult,Ae[1]*this.s.mult,Ae[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var Re=this.sk.getValueAtTime(_e),Te=this.sa.getValueAtTime(_e);Se.skewFromAxis(-Re*this.sk.mult,Te*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var we=this.r.getValueAtTime(_e);Se.rotate(-we*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var Pe=this.rz.getValueAtTime(_e),Ie=this.ry.getValueAtTime(_e),Me=this.rx.getValueAtTime(_e),Oe=this.or.getValueAtTime(_e);Se.rotateZ(-Pe*this.rz.mult).rotateY(Ie*this.ry.mult).rotateX(Me*this.rx.mult).rotateZ(-Oe[2]*this.or.mult).rotateY(Oe[1]*this.or.mult).rotateX(Oe[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var Le=this.px.getValueAtTime(_e),$e=this.py.getValueAtTime(_e);if(this.data.p.z){var Ve=this.pz.getValueAtTime(_e);Se.translate(Le*this.px.mult,$e*this.py.mult,-Ve*this.pz.mult)}else Se.translate(Le*this.px.mult,$e*this.py.mult,0)}else{var Xe=this.p.getValueAtTime(_e);Se.translate(Xe[0]*this.p.mult,Xe[1]*this.p.mult,-Xe[2]*this.p.mult)}return Se}function U(){return this.v.clone(new Matrix)}var V=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(_e,Se,Ee){var Ae=V(_e,Se,Ee);return Ae.dynamicProperties.length?Ae.getValueAtTime=B.bind(Ae):Ae.getValueAtTime=U.bind(Ae),Ae.setGroupProperty=expressionHelpers.setGroupProperty,Ae};var X=PropertyFactory.getProp;PropertyFactory.getProp=function(_e,Se,Ee,Ae,Re){var Te=X(_e,Se,Ee,Ae,Re);Te.kf?Te.getValueAtTime=expressionHelpers.getValueAtTime.bind(Te):Te.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(Te),Te.setGroupProperty=expressionHelpers.setGroupProperty,Te.loopOut=C,Te.loopIn=E,Te.smooth=I,Te.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(Te),Te.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(Te),Te.numKeys=Se.a===1?Se.k.length:0,Te.propertyIndex=Se.ix;var we=0;return Ee!==0&&(we=createTypedArray("float32",Se.a===1?Se.k[0].s.length:Se.k.length)),Te._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:we},expressionHelpers.searchExpressions(_e,Se,Te),Te.k&&Re.addDynamicProperty(Te),Te};function Y(_e){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),_e*=this.elem.globalData.frameRate,_e-=this.offsetTime,_e!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<_e?this._caching.lastIndex:0,this._cachingAtTime.lastTime=_e,this.interpolateShape(_e,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var K=ShapePropertyFactory.getConstructorFunction(),J=ShapePropertyFactory.getKeyframedConstructorFunction();function xe(){}xe.prototype={vertices:function(Se,Ee){this.k&&this.getValue();var Ae=this.v;Ee!==void 0&&(Ae=this.getValueAtTime(Ee,0));var Re,Te=Ae._length,we=Ae[Se],Pe=Ae.v,Ie=createSizedArray(Te);for(Re=0;Re<Te;Re+=1)Se==="i"||Se==="o"?Ie[Re]=[we[Re][0]-Pe[Re][0],we[Re][1]-Pe[Re][1]]:Ie[Re]=[we[Re][0],we[Re][1]];return Ie},points:function(Se){return this.vertices("v",Se)},inTangents:function(Se){return this.vertices("i",Se)},outTangents:function(Se){return this.vertices("o",Se)},isClosed:function(){return this.v.c},pointOnPath:function(Se,Ee){var Ae=this.v;Ee!==void 0&&(Ae=this.getValueAtTime(Ee,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(Ae));for(var Re=this._segmentsLength,Te=Re.lengths,we=Re.totalLength*Se,Pe=0,Ie=Te.length,Me=0,Oe;Pe<Ie;){if(Me+Te[Pe].addedLength>we){var Le=Pe,$e=Ae.c&&Pe===Ie-1?0:Pe+1,Ve=(we-Me)/Te[Pe].addedLength;Oe=bez.getPointInSegment(Ae.v[Le],Ae.v[$e],Ae.o[Le],Ae.i[$e],Ve,Te[Pe]);break}else Me+=Te[Pe].addedLength;Pe+=1}return Oe||(Oe=Ae.c?[Ae.v[0][0],Ae.v[0][1]]:[Ae.v[Ae._length-1][0],Ae.v[Ae._length-1][1]]),Oe},vectorOnPath:function(Se,Ee,Ae){Se==1?Se=this.v.c:Se==0&&(Se=.999);var Re=this.pointOnPath(Se,Ee),Te=this.pointOnPath(Se+.001,Ee),we=Te[0]-Re[0],Pe=Te[1]-Re[1],Ie=Math.sqrt(Math.pow(we,2)+Math.pow(Pe,2));if(Ie===0)return[0,0];var Me=Ae==="tangent"?[we/Ie,Pe/Ie]:[-Pe/Ie,we/Ie];return Me},tangentOnPath:function(Se,Ee){return this.vectorOnPath(Se,Ee,"tangent")},normalOnPath:function(Se,Ee){return this.vectorOnPath(Se,Ee,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([xe],K),extendPrototype([xe],J),J.prototype.getValueAtTime=Y,J.prototype.initiateExpression=ExpressionManager.initiateExpression;var Z=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(_e,Se,Ee,Ae,Re){var Te=Z(_e,Se,Ee,Ae,Re);return Te.propertyIndex=Se.ix,Te.lock=!1,Ee===3?expressionHelpers.searchExpressions(_e,Se.pt,Te):Ee===4&&expressionHelpers.searchExpressions(_e,Se.ks,Te),Te.k&&_e.addDynamicProperty(Te),Te}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function C(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(E,I){var B=this.calculateExpression(I);if(E.t!==B){var U={};return this.copyData(U,E),U.t=B.toString(),U.__complete=!1,U}return E},TextProperty.prototype.searchProperty=function(){var E=this.searchKeyframes(),I=this.searchExpressions();return this.kf=E||I,this.kf},TextProperty.prototype.searchExpressions=C}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function C(E,I){var B=createNS("feMerge");B.setAttribute("result",E);var U,V;for(V=0;V<I.length;V+=1)U=createNS("feMergeNode"),U.setAttribute("in",I[V]),B.appendChild(U),B.appendChild(U);return B}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(C,E,I,B,U){this.filterManager=E;var V=createNS("feColorMatrix");V.setAttribute("type","matrix"),V.setAttribute("color-interpolation-filters","linearRGB"),V.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=V,V.setAttribute("result",B+"_tint_1"),C.appendChild(V),V=createNS("feColorMatrix"),V.setAttribute("type","matrix"),V.setAttribute("color-interpolation-filters","sRGB"),V.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),V.setAttribute("result",B+"_tint_2"),C.appendChild(V),this.matrixFilter=V;var X=this.createMergeNode(B,[U,B+"_tint_1",B+"_tint_2"]);C.appendChild(X)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(C){if(C||this.filterManager._mdf){var E=this.filterManager.effectElements[0].p.v,I=this.filterManager.effectElements[1].p.v,B=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+B+" 0"),this.matrixFilter.setAttribute("values",I[0]-E[0]+" 0 0 0 "+E[0]+" "+(I[1]-E[1])+" 0 0 0 "+E[1]+" "+(I[2]-E[2])+" 0 0 0 "+E[2]+" 0 0 0 1 0")}};function SVGFillFilter(C,E,I,B){this.filterManager=E;var U=createNS("feColorMatrix");U.setAttribute("type","matrix"),U.setAttribute("color-interpolation-filters","sRGB"),U.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),U.setAttribute("result",B),C.appendChild(U),this.matrixFilter=U}SVGFillFilter.prototype.renderFrame=function(C){if(C||this.filterManager._mdf){var E=this.filterManager.effectElements[2].p.v,I=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+E[0]+" 0 0 0 0 "+E[1]+" 0 0 0 0 "+E[2]+" 0 0 0 "+I+" 0")}};function SVGStrokeEffect(C,E,I){this.initialized=!1,this.filterManager=E,this.elem=I,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var C=this.elem.layerElement.children||this.elem.layerElement.childNodes,E,I,B,U;for(this.filterManager.effectElements[1].p.v===1?(U=this.elem.maskManager.masksProperties.length,B=0):(B=this.filterManager.effectElements[0].p.v-1,U=B+1),I=createNS("g"),I.setAttribute("fill","none"),I.setAttribute("stroke-linecap","round"),I.setAttribute("stroke-dashoffset",1),B;B<U;B+=1)E=createNS("path"),I.appendChild(E),this.paths.push({p:E,m:B});if(this.filterManager.effectElements[10].p.v===3){var V=createNS("mask"),X=createElementID();V.setAttribute("id",X),V.setAttribute("mask-type","alpha"),V.appendChild(I),this.elem.globalData.defs.appendChild(V);var Y=createNS("g");for(Y.setAttribute("mask","url("+getLocationHref()+"#"+X+")");C[0];)Y.appendChild(C[0]);this.elem.layerElement.appendChild(Y),this.masker=V,I.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(C=this.elem.layerElement.children||this.elem.layerElement.childNodes;C.length;)this.elem.layerElement.removeChild(C[0]);this.elem.layerElement.appendChild(I),this.elem.layerElement.removeAttribute("mask"),I.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=I},SVGStrokeEffect.prototype.renderFrame=function(C){this.initialized||this.initialize();var E,I=this.paths.length,B,U;for(E=0;E<I;E+=1)if(this.paths[E].m!==-1&&(B=this.elem.maskManager.viewData[this.paths[E].m],U=this.paths[E].p,(C||this.filterManager._mdf||B.prop._mdf)&&U.setAttribute("d",B.lastPath),C||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||B.prop._mdf)){var V;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var X=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,Y=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,K=U.getTotalLength();V="0 0 0 "+K*X+" ";var J=K*(Y-X),xe=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,Z=Math.floor(J/xe),_e;for(_e=0;_e<Z;_e+=1)V+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";V+="0 "+K*10+" 0 0"}else V="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;U.setAttribute("stroke-dasharray",V)}if((C||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(C||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(C||this.filterManager.effectElements[3].p._mdf)){var Se=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(Se[0]*255)+","+bmFloor(Se[1]*255)+","+bmFloor(Se[2]*255)+")")}};function SVGTritoneFilter(C,E,I,B){this.filterManager=E;var U=createNS("feColorMatrix");U.setAttribute("type","matrix"),U.setAttribute("color-interpolation-filters","linearRGB"),U.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),C.appendChild(U);var V=createNS("feComponentTransfer");V.setAttribute("color-interpolation-filters","sRGB"),V.setAttribute("result",B),this.matrixFilter=V;var X=createNS("feFuncR");X.setAttribute("type","table"),V.appendChild(X),this.feFuncR=X;var Y=createNS("feFuncG");Y.setAttribute("type","table"),V.appendChild(Y),this.feFuncG=Y;var K=createNS("feFuncB");K.setAttribute("type","table"),V.appendChild(K),this.feFuncB=K,C.appendChild(V)}SVGTritoneFilter.prototype.renderFrame=function(C){if(C||this.filterManager._mdf){var E=this.filterManager.effectElements[0].p.v,I=this.filterManager.effectElements[1].p.v,B=this.filterManager.effectElements[2].p.v,U=B[0]+" "+I[0]+" "+E[0],V=B[1]+" "+I[1]+" "+E[1],X=B[2]+" "+I[2]+" "+E[2];this.feFuncR.setAttribute("tableValues",U),this.feFuncG.setAttribute("tableValues",V),this.feFuncB.setAttribute("tableValues",X)}};function SVGProLevelsFilter(C,E,I,B){this.filterManager=E;var U=this.filterManager.effectElements,V=createNS("feComponentTransfer");(U[10].p.k||U[10].p.v!==0||U[11].p.k||U[11].p.v!==1||U[12].p.k||U[12].p.v!==1||U[13].p.k||U[13].p.v!==0||U[14].p.k||U[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",V)),(U[17].p.k||U[17].p.v!==0||U[18].p.k||U[18].p.v!==1||U[19].p.k||U[19].p.v!==1||U[20].p.k||U[20].p.v!==0||U[21].p.k||U[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",V)),(U[24].p.k||U[24].p.v!==0||U[25].p.k||U[25].p.v!==1||U[26].p.k||U[26].p.v!==1||U[27].p.k||U[27].p.v!==0||U[28].p.k||U[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",V)),(U[31].p.k||U[31].p.v!==0||U[32].p.k||U[32].p.v!==1||U[33].p.k||U[33].p.v!==1||U[34].p.k||U[34].p.v!==0||U[35].p.k||U[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",V)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(V.setAttribute("color-interpolation-filters","sRGB"),C.appendChild(V)),(U[3].p.k||U[3].p.v!==0||U[4].p.k||U[4].p.v!==1||U[5].p.k||U[5].p.v!==1||U[6].p.k||U[6].p.v!==0||U[7].p.k||U[7].p.v!==1)&&(V=createNS("feComponentTransfer"),V.setAttribute("color-interpolation-filters","sRGB"),V.setAttribute("result",B),C.appendChild(V),this.feFuncRComposed=this.createFeFunc("feFuncR",V),this.feFuncGComposed=this.createFeFunc("feFuncG",V),this.feFuncBComposed=this.createFeFunc("feFuncB",V))}SVGProLevelsFilter.prototype.createFeFunc=function(C,E){var I=createNS(C);return I.setAttribute("type","table"),E.appendChild(I),I},SVGProLevelsFilter.prototype.getTableValue=function(C,E,I,B,U){for(var V=0,X=256,Y,K=Math.min(C,E),J=Math.max(C,E),xe=Array.call(null,{length:X}),Z,_e=0,Se=U-B,Ee=E-C;V<=256;)Y=V/256,Y<=K?Z=Ee<0?U:B:Y>=J?Z=Ee<0?B:U:Z=B+Se*Math.pow((Y-C)/Ee,1/I),xe[_e]=Z,_e+=1,V+=256/(X-1);return xe.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(C){if(C||this.filterManager._mdf){var E,I=this.filterManager.effectElements;this.feFuncRComposed&&(C||I[3].p._mdf||I[4].p._mdf||I[5].p._mdf||I[6].p._mdf||I[7].p._mdf)&&(E=this.getTableValue(I[3].p.v,I[4].p.v,I[5].p.v,I[6].p.v,I[7].p.v),this.feFuncRComposed.setAttribute("tableValues",E),this.feFuncGComposed.setAttribute("tableValues",E),this.feFuncBComposed.setAttribute("tableValues",E)),this.feFuncR&&(C||I[10].p._mdf||I[11].p._mdf||I[12].p._mdf||I[13].p._mdf||I[14].p._mdf)&&(E=this.getTableValue(I[10].p.v,I[11].p.v,I[12].p.v,I[13].p.v,I[14].p.v),this.feFuncR.setAttribute("tableValues",E)),this.feFuncG&&(C||I[17].p._mdf||I[18].p._mdf||I[19].p._mdf||I[20].p._mdf||I[21].p._mdf)&&(E=this.getTableValue(I[17].p.v,I[18].p.v,I[19].p.v,I[20].p.v,I[21].p.v),this.feFuncG.setAttribute("tableValues",E)),this.feFuncB&&(C||I[24].p._mdf||I[25].p._mdf||I[26].p._mdf||I[27].p._mdf||I[28].p._mdf)&&(E=this.getTableValue(I[24].p.v,I[25].p.v,I[26].p.v,I[27].p.v,I[28].p.v),this.feFuncB.setAttribute("tableValues",E)),this.feFuncA&&(C||I[31].p._mdf||I[32].p._mdf||I[33].p._mdf||I[34].p._mdf||I[35].p._mdf)&&(E=this.getTableValue(I[31].p.v,I[32].p.v,I[33].p.v,I[34].p.v,I[35].p.v),this.feFuncA.setAttribute("tableValues",E))}};function SVGDropShadowEffect(C,E,I,B,U){var V=E.container.globalData.renderConfig.filterSize,X=E.data.fs||V;C.setAttribute("x",X.x||V.x),C.setAttribute("y",X.y||V.y),C.setAttribute("width",X.width||V.width),C.setAttribute("height",X.height||V.height),this.filterManager=E;var Y=createNS("feGaussianBlur");Y.setAttribute("in","SourceAlpha"),Y.setAttribute("result",B+"_drop_shadow_1"),Y.setAttribute("stdDeviation","0"),this.feGaussianBlur=Y,C.appendChild(Y);var K=createNS("feOffset");K.setAttribute("dx","25"),K.setAttribute("dy","0"),K.setAttribute("in",B+"_drop_shadow_1"),K.setAttribute("result",B+"_drop_shadow_2"),this.feOffset=K,C.appendChild(K);var J=createNS("feFlood");J.setAttribute("flood-color","#00ff00"),J.setAttribute("flood-opacity","1"),J.setAttribute("result",B+"_drop_shadow_3"),this.feFlood=J,C.appendChild(J);var xe=createNS("feComposite");xe.setAttribute("in",B+"_drop_shadow_3"),xe.setAttribute("in2",B+"_drop_shadow_2"),xe.setAttribute("operator","in"),xe.setAttribute("result",B+"_drop_shadow_4"),C.appendChild(xe);var Z=this.createMergeNode(B,[B+"_drop_shadow_4",U]);C.appendChild(Z)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(C){if(C||this.filterManager._mdf){if((C||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),C||this.filterManager.effectElements[0].p._mdf){var E=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(E[0]*255),Math.round(E[1]*255),Math.round(E[2]*255)))}if((C||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),C||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var I=this.filterManager.effectElements[3].p.v,B=(this.filterManager.effectElements[2].p.v-90)*degToRads,U=I*Math.cos(B),V=I*Math.sin(B);this.feOffset.setAttribute("dx",U),this.feOffset.setAttribute("dy",V)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(C,E,I){this.initialized=!1,this.filterManager=E,this.filterElem=C,this.elem=I,I.matteElement=createNS("g"),I.matteElement.appendChild(I.layerElement),I.matteElement.appendChild(I.transformedElement),I.baseElement=I.matteElement}SVGMatte3Effect.prototype.findSymbol=function(C){for(var E=0,I=_svgMatteSymbols.length;E<I;){if(_svgMatteSymbols[E]===C)return _svgMatteSymbols[E];E+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(C,E){var I=C.layerElement.parentNode;if(I){for(var B=I.children,U=0,V=B.length;U<V&&B[U]!==C.layerElement;)U+=1;var X;U<=V-2&&(X=B[U+1]);var Y=createNS("use");Y.setAttribute("href","#"+E),X?I.insertBefore(Y,X):I.appendChild(Y)}},SVGMatte3Effect.prototype.setElementAsMask=function(C,E){if(!this.findSymbol(E)){var I=createElementID(),B=createNS("mask");B.setAttribute("id",E.layerId),B.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(E);var U=C.globalData.defs;U.appendChild(B);var V=createNS("symbol");V.setAttribute("id",I),this.replaceInParent(E,I),V.appendChild(E.layerElement),U.appendChild(V);var X=createNS("use");X.setAttribute("href","#"+I),B.appendChild(X),E.data.hd=!1,E.show()}C.setMatte(E.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var C=this.filterManager.effectElements[0].p.v,E=this.elem.comp.elements,I=0,B=E.length;I<B;)E[I]&&E[I].data.ind===C&&this.setElementAsMask(this.elem,E[I]),I+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(C,E,I,B){C.setAttribute("x","-100%"),C.setAttribute("y","-100%"),C.setAttribute("width","300%"),C.setAttribute("height","300%"),this.filterManager=E;var U=createNS("feGaussianBlur");U.setAttribute("result",B),C.appendChild(U),this.feGaussianBlur=U}SVGGaussianBlurEffect.prototype.renderFrame=function(C){if(C||this.filterManager._mdf){var E=.3,I=this.filterManager.effectElements[0].p.v*E,B=this.filterManager.effectElements[1].p.v,U=B==3?0:I,V=B==2?0:I;this.feGaussianBlur.setAttribute("stdDeviation",U+" "+V);var X=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",X)}};function TransformEffect(){}TransformEffect.prototype.init=function(C){this.effectsManager=C,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(C){if(this._opMdf=!1,this._mdf=!1,C||this.effectsManager._mdf){var E=this.effectsManager.effectElements,I=E[0].p.v,B=E[1].p.v,U=E[2].p.v===1,V=E[3].p.v,X=U?V:E[4].p.v,Y=E[5].p.v,K=E[6].p.v,J=E[7].p.v;this.matrix.reset(),this.matrix.translate(-I[0],-I[1],I[2]),this.matrix.scale(X*.01,V*.01,1),this.matrix.rotate(-J*degToRads),this.matrix.skewFromAxis(-Y*degToRads,(K+90)*degToRads),this.matrix.translate(B[0],B[1],0),this._mdf=!0,this.opacity!==E[8].p.v&&(this.opacity=E[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(C,E){this.init(E)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(C){this.init(C)}return extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie})})(lottie$1,lottie$1.exports);var lottieExports=lottie$1.exports;const lottie=getDefaultExportFromCjs(lottieExports),initialState={isPlaying:!1,progress:0,speed:1,isMuted:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1,totalFrames:0,totalDuration:0},PixiLottieSprite=React__namespace.forwardRef((C,E)=>{const[I,B]=React__namespace.useState(0),[U,V]=React__namespace.useState(!1),X=React__namespace.useRef(null),Y=React__namespace.useRef(null),K=React__namespace.useRef(),J=React__namespace.useRef(),xe=React.useRef(),Z=React.useRef(initialState),_e=React__namespace.useRef(),Se=React.useRef(document.body),{uniqueId:Ee,src:Ae,startAt:Re,endAt:Te,frameStartAt:we,frameEndAt:Pe,visible:Ie,disabled:Me,loop:Oe=!1,transformation:{x:Le,y:$e,width:Ve,height:Xe,colorCorrection:Ue={}},pointerdown:We=()=>{},pointerout:ze=()=>{},pointerover:He=()=>{}}=C,{tl:je}=React.useContext(GsapPixieContext);useCustomEventListener(Events.PAUSE,()=>{J.current&&J.current.pause()});const{onPointerDown:Ne,onPointerOut:De,onPointerOver:Fe}=useDebouncedPointerEvents(He,We,ze,1),{blurRadius:ke=0,vignette:Ge=0,noise:Be=0}=Ue,{temperatureFilter:qe,sharpnessFilter:Ke,hueFilter:Ye,blurFilter:tt,adjustmentFilter:Ze,vignetteFilter:it,noiseFilter:at}=withFiltersHook(Ue);React__namespace.useLayoutEffect(()=>{K.current=document.createElement("canvas"),K.current.setAttribute("id","lottieContainersvg"),K.current.setAttribute("id",`${Ee}lottieContainer`),K.current.setAttribute("width",`${Ve}`),K.current.setAttribute("height",`${Xe}`);const Je=Se.current;return Je.appendChild(K.current),()=>{K.current&&Je.removeChild(K.current)}},[]),React__namespace.useEffect(()=>{async function Je(){J.current&&J.current.destroy(),K.current.removeAttribute("style"),J.current=lottie.loadAnimation({container:K.current||document.getElementById("lottieroot"),renderer:"canvas",loop:!1,autoplay:!1,path:Ae,rendererSettings:{context:K.current.getContext("2d"),clearCanvas:!0,progressiveLoad:!1,preserveAspectRatio:"xMaxYMax meet"}}),J.current.addEventListener("data_ready",()=>{if(K.current&&K.current.setAttribute("style","display:none"),J.current&&J.current.renderer.canvasContext){const et=J.current.totalFrames;Z.current.totalFrames=et;const rt=J.current.getDuration();Z.current.totalDuration=rt;const nt=J.current.renderer.canvasContext.canvas,Qe=PIXI__namespace.Texture.from(nt);_e.current=Qe,V(!0),B(rt)}}),J.current.addEventListener("loaded_images",()=>{}),J.current.addEventListener("complete",()=>{}),J.current.addEventListener("loopComplete",()=>{}),J.current.addEventListener("enterFrame",()=>{}),J.current.addEventListener("config_ready",()=>{console.log("config_ready",J.current)}),J.current.addEventListener("error",et=>{console.log("error",et)})}return Je(),()=>{J.current&&(J.current.removeEventListener("complete"),J.current.removeEventListener("config_ready"),J.current.removeEventListener("enterFrame"),J.current.removeEventListener("loaded_images"),J.current.removeEventListener("loopComplete"),J.current.removeEventListener("data_ready"),J.current.removeEventListener("error"),J.current.destroy())}},[Ae,Ee]),React__namespace.useEffect(()=>(_e.current&&_e.current.update(),()=>{}),[U]);const st=Je=>{if(J.current&&X.current&&xe.current){const rt=Je(xe.current.time())/xe.current.duration()*Z.current.totalFrames,nt=Z.current.totalFrames;let Qe=rt;Qe=Math.round(Math.floor(Qe)),Qe>=nt?(J.current.goToAndStop(0,!0),_e.current&&_e.current.update(),Z.current.isPlaying=!1):(J.current.goToAndStop(Qe,!0),_e.current&&_e.current.update(),Z.current.isPlaying=!0)}};return React__namespace.useEffect(()=>{let Je=gsap$2.context(()=>{});if(Y.current&&je.current&&I>0){const et=Number(Te)-Number(Re);xe.current&&(xe.current.kill(),je.current.remove(xe.current)),Je=gsap$2.context(()=>{const rt=gsap$2.utils.wrap(Re,I);xe.current=gsap$2.timeline({}).to(Y.current,{duration:Number(et),onUpdate:st,onUpdateParams:[rt,we,Pe]},we),je.current.add(xe.current,Re)})}return()=>{xe.current&&(xe.current.kill(),gsap$2.killTweensOf(xe.current)),Je.revert()}},[Re,Te,we,Pe,Ee,I,Oe]),jsxRuntimeExports.jsx(AbstractContainer,{...C,ref:E,ignoreTlForVideo:!0,pointerdown:Ne,pointerover:Fe,pointerout:De,children:jsxRuntimeExports.jsx(react.Container,{ref:Y,children:_e.current&&jsxRuntimeExports.jsx(react.Sprite,{texture:_e.current,width:Ve,height:Xe,anchor:.5,x:Le,y:$e,ref:X,alpha:Ie?1:0,...!Me&&Ie&&{interactive:!0,pointerdown:We},filters:[qe,Ke,Ye,Ze,...ke>0?[tt]:[],...Ge>0?[it]:[],...Be>0?[at]:[]]})})})});PixiLottieSprite.whyDidYouRender={logOnDifferentValues:!0,customName:"PixiLottieSprite"};var BlendModes=(C=>(C[C.NORMAL=0]="NORMAL",C[C.ADD=1]="ADD",C[C.MULTIPLY=2]="MULTIPLY",C[C.SCREEN=3]="SCREEN",C[C.OVERLAY=4]="OVERLAY",C[C.DARKEN=5]="DARKEN",C[C.LIGHTEN=6]="LIGHTEN",C[C.COLOR_DODGE=7]="COLOR_DODGE",C[C.COLOR_BURN=8]="COLOR_BURN",C[C.HARD_LIGHT=9]="HARD_LIGHT",C[C.SOFT_LIGHT=10]="SOFT_LIGHT",C[C.DIFFERENCE=11]="DIFFERENCE",C[C.EXCLUSION=12]="EXCLUSION",C[C.HUE=13]="HUE",C[C.SATURATION=14]="SATURATION",C[C.COLOR=15]="COLOR",C[C.LUMINOSITY=16]="LUMINOSITY",C))(BlendModes||{});exports.Animations=Animations,exports.BlendModes=BlendModes,exports.Events=Events,exports.GsapPixieContext=GsapPixieContext,exports.GsapPixieContextProvider=GsapPixieContextProvider,exports.PixiAnimatedSprite=PixiAnimatedSprite,exports.PixiAudioSprite=PixiAudioSprite,exports.PixiGifSprite=PixiGifSprite,exports.PixiImageSprite=PixiImageSprite,exports.PixiLottieSprite=PixiLottieSprite,exports.PixiRemotionSprite=PixiRemotionSprite,exports.PixiSequence=PixiSequence,exports.PixiSequenceWrapper=PixiSequenceWrapper,exports.PixiSvgPathSprite=PixiSvgPathSprite,exports.PixiTextSprite=PixiTextSprite,exports.PixiVideoCanvasSyncSprite=PixiVideoCanvasSyncSprite,exports.PixiVideoSprite=PixiVideoSprite,exports.emitCustomEvent=emitCustomEvent,exports.newCustomEventEmitter=newCustomEventEmitter,exports.useCustomEventListener=useCustomEventListener,exports.useGsapEffect=useGsapEffect,Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"})});