From 094fc96a8c7cdcf63cba56722b1031141a219de5 Mon Sep 17 00:00:00 2001 From: Chris Vogt Date: Sun, 9 Jun 2024 00:39:34 -0700 Subject: [PATCH 1/3] feat: improves a11y by allowing custom button attributes --- assets/index.cjs.js | 43 +++++++++++++++++++---------------- package.json | 6 ++--- src/index.tsx | 7 ++++-- storybook-static/favicon.ico | Bin 0 -> 32988 bytes yarn.lock | 29 +++++++++++------------ 5 files changed, 44 insertions(+), 41 deletions(-) create mode 100644 storybook-static/favicon.ico diff --git a/assets/index.cjs.js b/assets/index.cjs.js index 838fd1d..50a5535 100644 --- a/assets/index.cjs.js +++ b/assets/index.cjs.js @@ -1,54 +1,57 @@ -"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const ur=require("react"),jr=w=>w&&typeof w=="object"&&"default"in w?w:{default:w};function Dr(w){if(w&&w.__esModule)return w;const M=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(w){for(const F in w)if(F!=="default"){const j=Object.getOwnPropertyDescriptor(w,F);Object.defineProperty(M,F,j.get?j:{enumerable:!0,get:()=>w[F]})}}return M.default=w,Object.freeze(M)}const Gi=jr(ur),ai=Dr(ur);var pr={exports:{}},oi={};/* -object-assign -(c) Sindre Sorhus -@license MIT -*/var Di,ir;function cr(){if(ir)return Di;ir=1;var w=Object.getOwnPropertySymbols,M=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable;function j(q){if(q==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(q)}function D(){try{if(!Object.assign)return!1;var q=new String("abc");if(q[5]="de",Object.getOwnPropertyNames(q)[0]==="5")return!1;for(var O={},B=0;B<10;B++)O["_"+String.fromCharCode(B)]=B;var Y=Object.getOwnPropertyNames(O).map(function(Q){return O[Q]});if(Y.join("")!=="0123456789")return!1;var N={};return"abcdefghijklmnopqrst".split("").forEach(function(Q){N[Q]=Q}),Object.keys(Object.assign({},N)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Di=D()?Object.assign:function(q,O){for(var B,Y=j(q),N,Q=1;Qw&&typeof w=="object"&&"default"in w?w:{default:w};function Or(w){if(w&&w.__esModule)return w;const C=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(w){for(const I in w)if(I!=="default"){const V=Object.getOwnPropertyDescriptor(w,I);Object.defineProperty(C,I,V.get?V:{enumerable:!0,get:()=>w[I]})}}return C.default=w,Object.freeze(C)}const Ui=Rr(lr),hi=Or(lr);var fr={exports:{}},mi={};/** + * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var rr;function Br(){if(rr)return oi;rr=1,cr();var w=Gi.default,M=60103;if(oi.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var F=Symbol.for;M=F("react.element"),oi.Fragment=F("react.fragment")}var j=w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,D=Object.prototype.hasOwnProperty,q={key:!0,ref:!0,__self:!0,__source:!0};function O(B,Y,N){var Q,ct={},pt=null,At=null;N!==void 0&&(pt=""+N),Y.key!==void 0&&(pt=""+Y.key),Y.ref!==void 0&&(At=Y.ref);for(Q in Y)D.call(Y,Q)&&!q.hasOwnProperty(Q)&&(ct[Q]=Y[Q]);if(B&&B.defaultProps)for(Q in Y=B.defaultProps,Y)ct[Q]===void 0&&(ct[Q]=Y[Q]);return{$$typeof:M,type:B,key:pt,ref:At,props:ct,_owner:j.current}}return oi.jsx=O,oi.jsxs=O,oi}var Bi={};/** @license React v17.0.2 + */var er;function Vr(){if(er)return mi;er=1;var w=Ui.default,C=Symbol.for("react.element"),I=Symbol.for("react.fragment"),V=Object.prototype.hasOwnProperty,j=w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,W={key:!0,ref:!0,__self:!0,__source:!0};function D(N,$,U){var st,mt={},xt=null,Ct=null;U!==void 0&&(xt=""+U),$.key!==void 0&&(xt=""+$.key),$.ref!==void 0&&(Ct=$.ref);for(st in $)V.call($,st)&&!W.hasOwnProperty(st)&&(mt[st]=$[st]);if(N&&N.defaultProps)for(st in $=N.defaultProps,$)mt[st]===void 0&&(mt[st]=$[st]);return{$$typeof:C,type:N,key:xt,ref:Ct,props:mt,_owner:j.current}}return mi.Fragment=I,mi.jsx=D,mi.jsxs=D,mi}var yi={};/** + * @license React * react-jsx-runtime.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var sr;function zr(){return sr||(sr=1,function(w){process.env.NODE_ENV!=="production"&&function(){var M=Gi.default,F=cr(),j=60103,D=60106;w.Fragment=60107;var q=60108,O=60114,B=60109,Y=60110,N=60112,Q=60113,ct=60120,pt=60115,At=60116,ie=60121,Ot=60122,gt=60117,Vt=60129,ne=60131;if(typeof Symbol=="function"&&Symbol.for){var St=Symbol.for;j=St("react.element"),D=St("react.portal"),w.Fragment=St("react.fragment"),q=St("react.strict_mode"),O=St("react.profiler"),B=St("react.provider"),Y=St("react.context"),N=St("react.forward_ref"),Q=St("react.suspense"),ct=St("react.suspense_list"),pt=St("react.memo"),At=St("react.lazy"),ie=St("react.block"),Ot=St("react.server.block"),gt=St("react.fundamental"),St("react.scope"),St("react.opaque.id"),Vt=St("react.debug_trace_mode"),St("react.offscreen"),ne=St("react.legacy_hidden")}var ge=typeof Symbol=="function"&&Symbol.iterator,ye="@@iterator";function ht(S){if(S===null||typeof S!="object")return null;var W=ge&&S[ge]||S[ye];return typeof W=="function"?W:null}var re=M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function dt(S){{for(var W=arguments.length,H=new Array(W>1?W-1:0),lt=1;lt=1&&Lt>=0&&vt[Ct]!==$t[Lt];)Lt--;for(;Ct>=1&&Lt>=0;Ct--,Lt--)if(vt[Ct]!==$t[Lt]){if(Ct!==1||Lt!==1)do if(Ct--,Lt--,Lt<0||vt[Ct]!==$t[Lt]){var ke=` -`+vt[Ct].replace(" at new "," at ");return typeof S=="function"&&Ne.set(S,ke),ke}while(Ct>=1&&Lt>=0);break}}}finally{Zt=!1,kt.current=Pt,ae(),Error.prepareStackTrace=Et}var We=S?S.displayName||S.name:"",Ce=We?ze(We):"";return typeof S=="function"&&Ne.set(S,Ce),Ce}function Ee(S,W,H){return Je(S,!1)}function L(S){var W=S.prototype;return!!(W&&W.isReactComponent)}function de(S,W,H){if(S==null)return"";if(typeof S=="function")return Je(S,L(S));if(typeof S=="string")return ze(S);switch(S){case Q:return ze("Suspense");case ct:return ze("SuspenseList")}if(typeof S=="object")switch(S.$$typeof){case N:return Ee(S.render);case pt:return de(S.type,W,H);case ie:return Ee(S._render);case At:{var lt=S,Et=lt._payload,Pt=lt._init;try{return de(Pt(Et),W,H)}catch{}}}return""}var Qt={},Pe=re.ReactDebugCurrentFrame;function _e(S){if(S){var W=S._owner,H=de(S.type,S._source,W?W.type:null);Pe.setExtraStackFrame(H)}else Pe.setExtraStackFrame(null)}function ve(S,W,H,lt,Et){{var Pt=Function.call.bind(Object.prototype.hasOwnProperty);for(var _t in S)if(Pt(S,_t)){var vt=void 0;try{if(typeof S[_t]!="function"){var $t=Error((lt||"React class")+": "+H+" type `"+_t+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof S[_t]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw $t.name="Invariant Violation",$t}vt=S[_t](W,_t,lt,H,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ct){vt=Ct}vt&&!(vt instanceof Error)&&(_e(Et),dt("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",lt||"React class",H,_t,typeof vt),_e(null)),vt instanceof Error&&!(vt.message in Qt)&&(Qt[vt.message]=!0,_e(Et),dt("Failed %s type: %s",H,vt.message),_e(null))}}}var Xt=re.ReactCurrentOwner,Fe=Object.prototype.hasOwnProperty,Ze={key:!0,ref:!0,__self:!0,__source:!0},le,si,qe;qe={};function Qe(S){if(Fe.call(S,"ref")){var W=Object.getOwnPropertyDescriptor(S,"ref").get;if(W&&W.isReactWarning)return!1}return S.ref!==void 0}function vi(S){if(Fe.call(S,"key")){var W=Object.getOwnPropertyDescriptor(S,"key").get;if(W&&W.isReactWarning)return!1}return S.key!==void 0}function Ri(S,W){if(typeof S.ref=="string"&&Xt.current&&W&&Xt.current.stateNode!==W){var H=at(Xt.current.type);qe[H]||(dt('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',at(Xt.current.type),S.ref),qe[H]=!0)}}function Oi(S,W){{var H=function(){le||(le=!0,dt("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",W))};H.isReactWarning=!0,Object.defineProperty(S,"key",{get:H,configurable:!0})}}function mi(S,W){{var H=function(){si||(si=!0,dt("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",W))};H.isReactWarning=!0,Object.defineProperty(S,"ref",{get:H,configurable:!0})}}var ni=function(S,W,H,lt,Et,Pt,_t){var vt={$$typeof:j,type:S,key:W,ref:H,props:_t,_owner:Pt};return vt._store={},Object.defineProperty(vt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(vt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:lt}),Object.defineProperty(vt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Et}),Object.freeze&&(Object.freeze(vt.props),Object.freeze(vt)),vt};function fi(S,W,H,lt,Et){{var Pt,_t={},vt=null,$t=null;H!==void 0&&(vt=""+H),vi(W)&&(vt=""+W.key),Qe(W)&&($t=W.ref,Ri(W,Et));for(Pt in W)Fe.call(W,Pt)&&!Ze.hasOwnProperty(Pt)&&(_t[Pt]=W[Pt]);if(S&&S.defaultProps){var Ct=S.defaultProps;for(Pt in Ct)_t[Pt]===void 0&&(_t[Pt]=Ct[Pt])}if(vt||$t){var Lt=typeof S=="function"?S.displayName||S.name||"Unknown":S;vt&&Oi(_t,Lt),$t&&mi(_t,Lt)}return ni(S,vt,$t,Et,lt,Xt.current,_t)}}var be=re.ReactCurrentOwner,gi=re.ReactDebugCurrentFrame;function we(S){if(S){var W=S._owner,H=de(S.type,S._source,W?W.type:null);gi.setExtraStackFrame(H)}else gi.setExtraStackFrame(null)}var Bt;Bt=!1;function ui(S){return typeof S=="object"&&S!==null&&S.$$typeof===j}function ti(){{if(be.current){var S=at(be.current.type);if(S)return` + */var ir;function jr(){return ir||(ir=1,process.env.NODE_ENV!=="production"&&function(){var w=Ui.default,C=Symbol.for("react.element"),I=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),W=Symbol.for("react.profiler"),D=Symbol.for("react.provider"),N=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),st=Symbol.for("react.suspense_list"),mt=Symbol.for("react.memo"),xt=Symbol.for("react.lazy"),Ct=Symbol.for("react.offscreen"),se=Symbol.iterator,Dt="@@iterator";function yt(k){if(k===null||typeof k!="object")return null;var z=se&&k[se]||k[Dt];return typeof z=="function"?z:null}var Lt=w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function At(k){{for(var z=arguments.length,H=new Array(z>1?z-1:0),lt=1;lt=1&&St>=0&&pt[Rt]!==zt[St];)St--;for(;Rt>=1&&St>=0;Rt--,St--)if(pt[Rt]!==zt[St]){if(Rt!==1||St!==1)do if(Rt--,St--,St<0||pt[Rt]!==zt[St]){var jt=` +`+pt[Rt].replace(" at new "," at ");return k.displayName&&jt.includes("")&&(jt=jt.replace("",k.displayName)),typeof k=="function"&&ze.set(k,jt),jt}while(Rt>=1&&St>=0);break}}}finally{te=!1,_t.current=Pt,ne(),Error.prepareStackTrace=kt}var ve=k?k.displayName||k.name:"",ge=ve?Be(ve):"";return typeof k=="function"&&ze.set(k,ge),ge}function we(k,z,H){return Ze(k,!1)}function L(k){var z=k.prototype;return!!(z&&z.isReactComponent)}function ce(k,z,H){if(k==null)return"";if(typeof k=="function")return Ze(k,L(k));if(typeof k=="string")return Be(k);switch(k){case U:return Be("Suspense");case st:return Be("SuspenseList")}if(typeof k=="object")switch(k.$$typeof){case $:return we(k.render);case mt:return ce(k.type,z,H);case xt:{var lt=k,kt=lt._payload,Pt=lt._init;try{return ce(Pt(kt),z,H)}catch{}}}return""}var $t=Object.prototype.hasOwnProperty,Se={},Ce=Lt.ReactDebugCurrentFrame;function ie(k){if(k){var z=k._owner,H=ce(k.type,k._source,z?z.type:null);Ce.setExtraStackFrame(H)}else Ce.setExtraStackFrame(null)}function he(k,z,H,lt,kt){{var Pt=Function.call.bind($t);for(var ct in k)if(Pt(k,ct)){var pt=void 0;try{if(typeof k[ct]!="function"){var zt=Error((lt||"React class")+": "+H+" type `"+ct+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof k[ct]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw zt.name="Invariant Violation",zt}pt=k[ct](z,ct,lt,H,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Rt){pt=Rt}pt&&!(pt instanceof Error)&&(ie(kt),At("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",lt||"React class",H,ct,typeof pt),ie(null)),pt instanceof Error&&!(pt.message in Se)&&(Se[pt.message]=!0,ie(kt),At("Failed %s type: %s",H,pt.message),ie(null))}}}var Qe=Array.isArray;function Fe(k){return Qe(k)}function de(k){{var z=typeof Symbol=="function"&&Symbol.toStringTag,H=z&&k[Symbol.toStringTag]||k.constructor.name||"Object";return H}}function ui(k){try{return ti(k),!1}catch{return!0}}function ti(k){return""+k}function Ne(k){if(ui(k))return At("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",de(k)),ti(k)}var qe=Lt.ReactCurrentOwner,Oi={key:!0,ref:!0,__self:!0,__source:!0},gi,pi,We;We={};function ci(k){if($t.call(k,"ref")){var z=Object.getOwnPropertyDescriptor(k,"ref").get;if(z&&z.isReactWarning)return!1}return k.ref!==void 0}function Me(k){if($t.call(k,"key")){var z=Object.getOwnPropertyDescriptor(k,"key").get;if(z&&z.isReactWarning)return!1}return k.key!==void 0}function Vi(k,z){if(typeof k.ref=="string"&&qe.current&&z&&qe.current.stateNode!==z){var H=K(qe.current.type);We[H]||(At('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',K(qe.current.type),k.ref),We[H]=!0)}}function di(k,z){{var H=function(){gi||(gi=!0,At("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",z))};H.isReactWarning=!0,Object.defineProperty(k,"key",{get:H,configurable:!0})}}function Kt(k,z){{var H=function(){pi||(pi=!0,At("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",z))};H.isReactWarning=!0,Object.defineProperty(k,"ref",{get:H,configurable:!0})}}var ji=function(k,z,H,lt,kt,Pt,ct){var pt={$$typeof:C,type:k,key:z,ref:H,props:ct,_owner:Pt};return pt._store={},Object.defineProperty(pt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(pt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:lt}),Object.defineProperty(pt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:kt}),Object.freeze&&(Object.freeze(pt.props),Object.freeze(pt)),pt};function ri(k,z,H,lt,kt){{var Pt,ct={},pt=null,zt=null;H!==void 0&&(Ne(H),pt=""+H),Me(z)&&(Ne(z.key),pt=""+z.key),ci(z)&&(zt=z.ref,Vi(z,kt));for(Pt in z)$t.call(z,Pt)&&!Oi.hasOwnProperty(Pt)&&(ct[Pt]=z[Pt]);if(k&&k.defaultProps){var Rt=k.defaultProps;for(Pt in Rt)ct[Pt]===void 0&&(ct[Pt]=Rt[Pt])}if(pt||zt){var St=typeof k=="function"?k.displayName||k.name||"Unknown":k;pt&&di(ct,St),zt&&Kt(ct,St)}return ji(k,pt,zt,kt,lt,qe.current,ct)}}var si=Lt.ReactCurrentOwner,Ae=Lt.ReactDebugCurrentFrame;function Bt(k){if(k){var z=k._owner,H=ce(k.type,k._source,z?z.type:null);Ae.setExtraStackFrame(H)}else Ae.setExtraStackFrame(null)}var Ee;Ee=!1;function ni(k){return typeof k=="object"&&k!==null&&k.$$typeof===C}function vi(){{if(si.current){var k=K(si.current.type);if(k)return` -Check the render method of \``+S+"`."}return""}}function yi(S){{if(S!==void 0){var W=S.fileName.replace(/^.*[\\\/]/,""),H=S.lineNumber;return` +Check the render method of \``+k+"`."}return""}}function Di(k){{if(k!==void 0){var z=k.fileName.replace(/^.*[\\\/]/,""),H=k.lineNumber;return` -Check your code at `+W+":"+H+"."}return""}}var Te={};function te(S){{var W=ti();if(!W){var H=typeof S=="string"?S:S.displayName||S.name;H&&(W=` +Check your code at `+z+":"+H+"."}return""}}var Jt={};function qt(k){{var z=vi();if(!z){var H=typeof k=="string"?k:k.displayName||k.name;H&&(z=` -Check the top-level render call using <`+H+">.")}return W}}function Ie(S,W){{if(!S._store||S._store.validated||S.key!=null)return;S._store.validated=!0;var H=te(W);if(Te[H])return;Te[H]=!0;var lt="";S&&S._owner&&S._owner!==be.current&&(lt=" It was passed a child from "+at(S._owner.type)+"."),we(S),dt('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',H,lt),we(null)}}function pi(S,W){{if(typeof S!="object")return;if(Array.isArray(S))for(var H=0;H",vt=" Did you accidentally export a JSX literal instead of a component?"):Ct=typeof S,dt("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ct,vt)}var Lt=fi(S,W,H,Et,Pt);if(Lt==null)return Lt;if(_t){var ke=W.children;if(ke!==void 0)if(lt)if(Array.isArray(ke)){for(var We=0;We.")}return z}}function Pe(k,z){{if(!k._store||k._store.validated||k.key!=null)return;k._store.validated=!0;var H=qt(z);if(Jt[H])return;Jt[H]=!0;var lt="";k&&k._owner&&k._owner!==si.current&&(lt=" It was passed a child from "+K(k._owner.type)+"."),Bt(k),At('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',H,lt),Bt(null)}}function Ie(k,z){{if(typeof k!="object")return;if(Fe(k))for(var H=0;H",pt=" Did you accidentally export a JSX literal instead of a component?"):Rt=typeof k,At("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Rt,pt)}var St=ri(k,z,H,kt,Pt);if(St==null)return St;if(ct){var jt=z.children;if(jt!==void 0)if(lt)if(Fe(jt)){for(var ve=0;ve0?"{key: someKey, "+Tt.join(": ..., ")+": ...}":"{key: someKey}";if(!ai[ge+oi]){var Re=Tt.length>0?"{"+Tt.join(": ..., ")+": ...}":"{}";At(`A props object containing a "key" prop is being spread into JSX: + let props = %s; + <%s {...props} /> +React keys must be passed directly to JSX without using spread: + let props = %s; + <%s key={someKey} {...props} />`,oi,ge,Re,ge),ai[ge+oi]=!0}}return k===V?$e(St):Le(St),St}}function Bi(k,z,H){return Ye(k,z,H,!0)}function _i(k,z,H){return Ye(k,z,H,!1)}var bi=_i,zi=Bi;yi.Fragment=V,yi.jsx=bi,yi.jsxs=zi}()),yi}(function(w){process.env.NODE_ENV==="production"?w.exports=Vr():w.exports=jr()})(fr);const rr=fr.exports.jsx;var ur={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(w){(function(){var M={}.hasOwnProperty;function F(){for(var j=[],D=0;D1?i[1]=1:i[1]<=0&&(i[1]=0),ce(i[0],i[1],i[2])}function tt(t,e){var i=Kt(t[0]*255,t[1]*255,t[2]*255);return i[2]+=e,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),ce(i[0],i[1],i[2])}function at(t,e){var i=Kt(t[0]*255,t[1]*255,t[2]*255);return i[0]+=e/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),ce(i[0],i[1],i[2])}(function(){var t=[],e,i;for(e=0;e<256;e+=1)i=e.toString(16),t[e]=i.length===1?"0"+i:i;return function(r,o,s){return r<0&&(r=0),o<0&&(o=0),s<0&&(s=0),"#"+t[r]+t[o]+t[s]}})();function ut(){}ut.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var i=this._cbs[t],r=0;r1?i[1]=1:i[1]<=0&&(i[1]=0),pe(i[0],i[1],i[2])}function K(t,e){var i=Zt(t[0]*255,t[1]*255,t[2]*255);return i[2]+=e,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),pe(i[0],i[1],i[2])}function ht(t,e){var i=Zt(t[0]*255,t[1]*255,t[2]*255);return i[0]+=e/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),pe(i[0],i[1],i[2])}(function(){var t=[],e,i;for(e=0;e<256;e+=1)i=e.toString(16),t[e]=i.length===1?"0"+i:i;return function(r,o,s){return r<0&&(r=0),o<0&&(o=0),s<0&&(s=0),"#"+t[r]+t[o]+t[s]}})();function ut(){}ut.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var i=this._cbs[t],r=0;r0||x>-1e-6&&x<0?r(x*_)/_:x}function C(){var x=this.props,_=et(x[0]),I=et(x[1]),J=et(x[4]),V=et(x[5]),xt=et(x[12]),mt=et(x[13]);return"matrix("+_+","+I+","+J+","+V+","+xt+","+mt+")"}return function(){this.reset=o,this.rotate=s,this.rotateX=d,this.rotateY=E,this.rotateZ=v,this.skew=P,this.skewFromAxis=b,this.shear=T,this.scale=y,this.setTransform=g,this.translate=A,this.transform=k,this.applyToPoint=n,this.applyToX=f,this.applyToY=c,this.applyToZ=p,this.applyToPointArray=$,this.applyToTriplePoints=X,this.applyToPointStringified=Z,this.toCSS=K,this.to2dCSS=C,this.clone=h,this.cloneFromProps=a,this.equals=l,this.inversePoints=z,this.inversePoint=R,this.getInverseMatrix=m,this._t=this.transform,this.isIdentity=u,this._identity=!0,this._identityCalculated=!1,this.props=rt("float32",16),this.reset()}}();(function(t,e){var i=this,r=256,o=6,s=52,d="random",E=e.pow(r,o),v=e.pow(2,s),T=v*2,P=r-1,b;function y(a,n,f){var c=[];n=n===!0?{entropy:!0}:n||{};var p=u(k(n.entropy?[a,h(t)]:a===null?l():a,3),c),m=new g(c),R=function(){for(var z=m.g(o),X=E,$=0;z=T;)z/=2,X/=2,$>>>=1;return(z+$)/X};return R.int32=function(){return m.g(4)|0},R.quick=function(){return m.g(4)/4294967296},R.double=R,u(h(m.S),t),(n.pass||f||function(z,X,$,Z){return Z&&(Z.S&&A(Z,m),z.state=function(){return A(m,{})}),$?(e[d]=z,X):z})(R,p,"global"in n?n.global:this==e,n.state)}e["seed"+d]=y;function g(a){var n,f=a.length,c=this,p=0,m=c.i=c.j=0,R=c.S=[];for(f||(a=[f++]);p0?n=m:a=m;while(Math.abs(p)>s&&++R=o?u(h,z,a,n):X===0?z:k(h,c,c+v,a,n)}},t}();(function(){for(var t=0,e=["ms","moz","webkit","o"],i=0;i-.001&&h<.001}function i(y,g,A,k,u,l,h,a,n){if(A===0&&l===0&&n===0)return e(y,g,k,u,h,a);var f=t.sqrt(t.pow(k-y,2)+t.pow(u-g,2)+t.pow(l-A,2)),c=t.sqrt(t.pow(h-y,2)+t.pow(a-g,2)+t.pow(n-A,2)),p=t.sqrt(t.pow(h-k,2)+t.pow(a-u,2)+t.pow(n-l,2)),m;return f>c?f>p?m=f-c-p:m=p-c-f:p>c?m=p-c-f:m=c-f-p,m>-1e-4&&m<1e-4}var r=function(){return function(y,g,A,k){var u=Ot,l,h,a,n,f,c=0,p,m=[],R=[],z=_i.newElement();for(a=A.length,l=0;lh?-1:1,f=!0;f;)if(k[l]<=h&&k[l+1]>h?(a=(h-k[l])/(k[l+1]-k[l]),f=!1):l+=n,l<0||l>=u-1){if(l===u-1)return A[l];f=!1}return A[l]+(A[l+1]-A[l])*a}function T(y,g,A,k,u,l){var h=v(u,l),a=1-h,n=t.round((a*a*a*y[0]+(h*a*a+a*h*a+a*a*h)*A[0]+(h*h*a+a*h*h+h*a*h)*k[0]+h*h*h*g[0])*1e3)/1e3,f=t.round((a*a*a*y[1]+(h*a*a+a*h*a+a*a*h)*A[1]+(h*h*a+a*h*h+h*a*h)*k[1]+h*h*h*g[1])*1e3)/1e3;return[n,f]}var P=rt("float32",8);function b(y,g,A,k,u,l,h){u<0?u=0:u>1&&(u=1);var a=v(u,h);l=l>1?1:l;var n=v(l,h),f,c=y.length,p=1-a,m=1-n,R=p*p*p,z=a*p*p*3,X=a*a*p*3,$=a*a*a,Z=p*p*m,K=a*p*m+p*a*m+p*p*n,et=a*a*m+p*a*n+a*p*n,C=a*a*n,x=p*m*m,_=a*m*m+p*n*m+p*m*n,I=a*n*m+p*n*n+a*m*n,J=a*n*n,V=m*m*m,xt=n*m*m+m*n*m+m*m*n,mt=n*n*m+m*n*n+n*m*n,Tt=n*n*n;for(f=0;f=0;A-=1)if(g[A].ty==="sh")if(g[A].ks.k.i)r(g[A].ks.k);else for(l=g[A].ks.k.length,u=0;uk[0]?!0:k[0]>g[0]?!1:g[1]>k[1]?!0:k[1]>g[1]?!1:g[2]>k[2]?!0:k[2]>g[2]?!1:null}var s=function(){var g=[4,4,14];function A(u){var l=u.t.d;u.t.d={k:[{s:l,t:0}]}}function k(u){var l,h=u.length;for(l=0;l=0;l-=1)if(u[l].ty==="sh")if(u[l].ks.k.i)u[l].ks.k.c=u[l].closed;else for(n=u[l].ks.k.length,a=0;a0&&(z=!1),z){var Z=ot("style");Z.setAttribute("f-forigin",c[p].fOrigin),Z.setAttribute("f-origin",c[p].origin),Z.setAttribute("f-family",c[p].fFamily),Z.type="text/css",Z.innerText="@font-face {font-family: "+c[p].fFamily+"; font-style: normal; src: url('"+c[p].fPath+"');}",f.appendChild(Z)}}else if(c[p].fOrigin==="g"||c[p].origin===1){for(X=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),$=0;$=R.t-h){m.h&&(m=R),n=0;break}if(R.t-h>u){n=f;break}f=C||u=C?I.points.length-1:0;for(X=I.points[J].point.length,z=0;z=mt&&V=C)a[0]=_[0],a[1]=_[1],a[2]=_[2];else if(u<=x)a[0]=m.s[0],a[1]=m.s[1],a[2]=m.s[2];else{var me=s(m.s),ee=s(_),qt=(u-x)/(C-x);o(a,r(me,ee,qt))}else for(f=0;f=C?$=1:u"u"?m.o.x[0]:m.o.x[f],Nt=typeof m.o.y[f]>"u"?m.o.y[0]:m.o.y[f],Gt=typeof m.i.x[f]>"u"?m.i.x[0]:m.i.x[f],se=typeof m.i.y[f]>"u"?m.i.y[0]:m.i.y[f],et=ae.getBezierEasing(Tt,Nt,Gt,se).get,m.__fnct[f]=et)):m.__fnct?et=m.__fnct:(Tt=m.o.x,Nt=m.o.y,Gt=m.i.x,se=m.i.y,et=ae.getBezierEasing(Tt,Nt,Gt,se).get,m.__fnct=et),$=et((u-x)/(C-x)))),_=R.s||m.e,fe=m.h===1?m.s[f]:m.s[f]+(_[f]-m.s[f])*$,this.propType==="multidimensional"?a[f]=fe:a=fe}return l.lastIndex=n,a}function r(u,l,h){var a=[],n=u[0],f=u[1],c=u[2],p=u[3],m=l[0],R=l[1],z=l[2],X=l[3],$,Z,K,et,C;return Z=n*m+f*R+c*z+p*X,Z<0&&(Z=-Z,m=-m,R=-R,z=-z,X=-X),1-Z>1e-6?($=Math.acos(Z),K=Math.sin($),et=Math.sin((1-h)*$)/K,C=Math.sin(h*$)/K):(et=1-h,C=h),a[0]=et*n+C*m,a[1]=et*f+C*R,a[2]=et*c+C*z,a[3]=et*p+C*X,a}function o(u,l){var h=l[0],a=l[1],n=l[2],f=l[3],c=Math.atan2(2*a*f-2*h*n,1-2*a*a-2*n*n),p=Math.asin(2*h*a+2*n*f),m=Math.atan2(2*h*f-2*a*n,1-2*h*h-2*n*n);u[0]=c/gt,u[1]=p/gt,u[2]=m/gt}function s(u){var l=u[0]*gt,h=u[1]*gt,a=u[2]*gt,n=Math.cos(l/2),f=Math.cos(h/2),c=Math.cos(a/2),p=Math.sin(l/2),m=Math.sin(h/2),R=Math.sin(a/2),z=n*f*c-p*m*R,X=p*m*c+n*f*R,$=p*f*c+n*m*R,Z=n*m*c-p*f*R;return[X,$,Z,z]}function d(){var u=this.comp.renderedFrame-this.offsetTime,l=this.keyframes[0].t-this.offsetTime,h=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(u===this._caching.lastFrame||this._caching.lastFrame!==t&&(this._caching.lastFrame>=h&&u>=h||this._caching.lastFrame=u&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var a=this.interpolateValue(u,this._caching);this.pv=a}return this._caching.lastFrame=u,this.pv}function E(u){var l;if(this.propType==="unidimensional")l=u*this.mult,e(this.v-l)>1e-5&&(this.v=l,this._mdf=!0);else for(var h=0,a=this.v.length;h1e-5&&(this.v[h]=l,this._mdf=!0),h+=1}function v(){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 u,l=this.effectsSequence.length,h=this.kf?this.pv:this.data.k;for(u=0;u=this.p.keyframes[this.p.keyframes.length-1].t?(P=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/T,0),b=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/T,0)):(P=this.p.pv,b=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/T,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){P=[],b=[];var y=this.px,g=this.py;y._caching.lastFrame+y.offsetTime<=y.keyframes[0].t?(P[0]=y.getValueAtTime((y.keyframes[0].t+.01)/T,0),P[1]=g.getValueAtTime((g.keyframes[0].t+.01)/T,0),b[0]=y.getValueAtTime(y.keyframes[0].t/T,0),b[1]=g.getValueAtTime(g.keyframes[0].t/T,0)):y._caching.lastFrame+y.offsetTime>=y.keyframes[y.keyframes.length-1].t?(P[0]=y.getValueAtTime(y.keyframes[y.keyframes.length-1].t/T,0),P[1]=g.getValueAtTime(g.keyframes[g.keyframes.length-1].t/T,0),b[0]=y.getValueAtTime((y.keyframes[y.keyframes.length-1].t-.01)/T,0),b[1]=g.getValueAtTime((g.keyframes[g.keyframes.length-1].t-.01)/T,0)):(P=[y.pv,g.pv],b[0]=y.getValueAtTime((y._caching.lastFrame+y.offsetTime-.01)/T,y.offsetTime),b[1]=g.getValueAtTime((g._caching.lastFrame+g.offsetTime-.01)/T,g.offsetTime))}else b=t,P=b;this.v.rotate(-Math.atan2(P[1]-b[1],P[0]-b[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 r(){if(!this.a.k)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 o(){}function s(v){this._addDynamicProperty(v),this.elem.addDynamicProperty(v),this._isDirty=!0}function d(v,T,P){if(this.elem=v,this.frameId=-1,this.propType="transform",this.data=T,this.v=new wt,this.pre=new wt,this.appliedTransformations=0,this.initDynamicPropertyContainer(P||v),T.p&&T.p.s?(this.px=L.getProp(v,T.p.x,0,0,this),this.py=L.getProp(v,T.p.y,0,0,this),T.p.z&&(this.pz=L.getProp(v,T.p.z,0,0,this))):this.p=L.getProp(v,T.p||{k:[0,0,0]},1,0,this),T.rx){if(this.rx=L.getProp(v,T.rx,0,gt,this),this.ry=L.getProp(v,T.ry,0,gt,this),this.rz=L.getProp(v,T.rz,0,gt,this),T.or.k[0].ti){var b,y=T.or.k.length;for(b=0;b=this._maxLength&&this.doubleArrayLength(),i){case"v":s=this.v;break;case"i":s=this.i;break;case"o":s=this.o;break;default:s=[];break}(!s[r]||s[r]&&!o)&&(s[r]=Te.newElement()),s[r][0]=t,s[r][1]=e},Qt.prototype.setTripleAt=function(t,e,i,r,o,s,d,E){this.setXYAt(t,e,"v",d,E),this.setXYAt(i,r,"o",d,E),this.setXYAt(o,s,"i",d,E)},Qt.prototype.reverse=function(){var t=new Qt;t.setPathData(this.c,this._length);var e=this.v,i=this.o,r=this.i,o=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],r[0][0],r[0][1],i[0][0],i[0][1],0,!1),o=1);var s=this._length-1,d=this._length,E;for(E=o;E=K[K.length-1].t-this.offsetTime)f=K[K.length-1].s?K[K.length-1].s[0]:K[K.length-2].e[0],p=!0;else{for(var et=n,C=K.length-1,x=!0,_,I;x&&(_=K[et],I=K[et+1],!(I.t-this.offsetTime>l));)et=I.t-this.offsetTime)$=1;else if(l<_.t-this.offsetTime)$=0;else{var J;_.__fnct?J=_.__fnct:(J=ae.getBezierEasing(_.o.x,_.o.y,_.i.x,_.i.y).get,_.__fnct=J),$=J((l-(_.t-this.offsetTime))/(I.t-this.offsetTime-(_.t-this.offsetTime)))}c=I.s?I.s[0]:_.e[0]}f=_.s[0]}for(z=h._length,X=f.i[0].length,a.lastIndex=n,m=0;ma&&l>a)||(this._caching.lastIndex=n=1?s.push({s:t-1,e:e-1}):(s.push({s:t,e:1}),s.push({s:0,e:e-1}));var d=[],E,v=s.length,T;for(E=0;Er+i)){var P,b;T.s*o<=r?P=0:P=(T.s*o-r)/i,T.e*o>=r+i?b=1:b=(T.e*o-r)/i,d.push([P,b])}return d.length||d.push([0,0]),d},Xt.prototype.releasePathsData=function(t){var e,i=t.length;for(e=0;e1?e=1+r:this.s.v<0?e=0+r:e=this.s.v+r,this.e.v>1?i=1+r:this.e.v<0?i=0+r:i=this.e.v+r,e>i){var o=e;e=i,i=o}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 s,d,E=this.shapes.length,v,T,P,b,y,g=0;if(i===e)for(d=0;d=0;d-=1)if(k=this.shapes[d],k.shape._mdf){for(u=k.localShapeCollection,u.releaseShapes(),this.m===2&&E>1?(n=this.calculateShapeEdges(e,i,k.totalShapeLength,a,g),a+=k.totalShapeLength):n=[[l,h]],T=n.length,v=0;v=1?A.push({s:k.totalShapeLength*(l-1),e:k.totalShapeLength*(h-1)}):(A.push({s:k.totalShapeLength*l,e:k.totalShapeLength}),A.push({s:0,e:k.totalShapeLength*(h-1)}));var f=this.addShapes(k,A[0]);if(A[0].s!==A[0].e){if(A.length>1){var c=k.shape.paths.shapes[k.shape.paths._length-1];if(c.c){var p=f.pop();this.addPaths(f,u),f=this.addShapes(k,A[1],p)}else this.addPaths(f,u),f=this.addShapes(k,A[1])}this.addPaths(f,u)}}k.shape.paths=u}}},Xt.prototype.addPaths=function(t,e){var i,r=t.length;for(i=0;ie.e){i.c=!1;break}else e.s<=T&&e.e>=T+P.addedLength?(this.addSegment(o[s].v[E-1],o[s].o[E-1],o[s].i[E],o[s].v[E],i,b,u),u=!1):(g=Zt.getNewSegment(o[s].v[E-1],o[s].v[E],o[s].o[E-1],o[s].i[E],(e.s-T)/P.addedLength,(e.e-T)/P.addedLength,y[E-1]),this.addSegmentFromArray(g,i,b,u),u=!1,i.c=!1),T+=P.addedLength,b+=1;if(o[s].c&&y.length){if(P=y[E-1],T<=e.e){var l=y[E-1].addedLength;e.s<=T&&e.e>=T+l?(this.addSegment(o[s].v[E-1],o[s].o[E-1],o[s].i[0],o[s].v[0],i,b,u),u=!1):(g=Zt.getNewSegment(o[s].v[E-1],o[s].v[0],o[s].o[E-1],o[s].i[0],(e.s-T)/l,(e.e-T)/l,y[E-1]),this.addSegmentFromArray(g,i,b,u),u=!1,i.c=!1)}else i.c=!1;T+=P.addedLength,b+=1}if(i._length&&(i.setXYAt(i.v[k][0],i.v[k][1],"i",k),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),T>e.e)break;s0;)i-=1,this._elements.unshift(e[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},le.prototype.resetElements=function(t){var e,i=t.length;for(e=0;e0?Math.floor(y):Math.ceil(y),k=this.pMatrix.props,u=this.rMatrix.props,l=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var h=0;if(y>0){for(;hA;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),h-=1;g&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-g,!0),h-=g)}r=this.data.m===1?0:this._currentCopies-1,o=this.data.m===1?1:-1,s=this._currentCopies;for(var a,n;s;){if(e=this.elemsData[r].it,i=e[e.length-1].transform.mProps.v.props,n=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)*(r/(this._currentCopies-1)),h!==0){for((r!==0&&o===1||r!==this._currentCopies-1&&o===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(u[0],u[1],u[2],u[3],u[4],u[5],u[6],u[7],u[8],u[9],u[10],u[11],u[12],u[13],u[14],u[15]),this.matrix.transform(l[0],l[1],l[2],l[3],l[4],l[5],l[6],l[7],l[8],l[9],l[10],l[11],l[12],l[13],l[14],l[15]),this.matrix.transform(k[0],k[1],k[2],k[3],k[4],k[5],k[6],k[7],k[8],k[9],k[10],k[11],k[12],k[13],k[14],k[15]),a=0;a.01)return!1;i+=1}return!0},Qe.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t500)&&(this._imageLoaded(),clearInterval(a)),h+=1}.bind(this),50)}function s(l){var h=r(l,this.assetsPath,this.path),a=G("image");Y?this.testImageLoaded(a):a.addEventListener("load",this._imageLoaded,!1),a.addEventListener("error",function(){n.img=t,this._imageLoaded()}.bind(this),!1),a.setAttributeNS("http://www.w3.org/1999/xlink","href",h),this._elementHelper.append?this._elementHelper.append(a):this._elementHelper.appendChild(a);var n={img:a,assetData:l};return n}function d(l){var h=r(l,this.assetsPath,this.path),a=ot("img");a.crossOrigin="anonymous",a.addEventListener("load",this._imageLoaded,!1),a.addEventListener("error",function(){n.img=t,this._imageLoaded()}.bind(this),!1),a.src=h;var n={img:a,assetData:l};return n}function E(l){var h={assetData:l},a=r(l,this.assetsPath,this.path);return fi.load(a,function(n){h.img=n,this._footageLoaded()}.bind(this),function(){h.img={},this._footageLoaded()}.bind(this)),h}function v(l,h){this.imagesLoadedCb=h;var a,n=l.length;for(a=0;a=A+Ae||!f?(R=(A+Ae-u)/k.partialLength,Tt=n.point[0]+(k.point[0]-n.point[0])*R,Nt=n.point[1]+(k.point[1]-n.point[1])*R,s.translate(-i[0]*y[P].an*.005,-(i[1]*K)*.01),l=!1):f&&(u+=k.partialLength,h+=1,h>=f.length&&(h=0,a+=1,c[a]?f=c[a].points:X.v.c?(h=0,a=0,f=c[a].points):(u-=k.partialLength,f=null)),f&&(n=k,k=f[h],p=k.partialLength));mt=y[P].an/2-y[P].add,s.translate(-mt,0,0)}else mt=y[P].an/2-y[P].add,s.translate(-mt,0,0),s.translate(-i[0]*y[P].an*.005,-i[1]*K*.01,0);for(_=0;_1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},Bt.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},Bt.prototype.getValue=function(t){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!t)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,i=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var r,o=this.effectsSequence.length,s=t||this.data.d.k[this.keysIndex].s;for(r=0;re);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},Bt.prototype.buildFinalText=function(t){for(var e=[],i=0,r=t.length,o,s,d=!1;i=55296&&o<=56319?(s=t.charCodeAt(i+1),s>=56320&&s<=57343?(d||Ee.isModifier(o,s)?(e[e.length-1]+=t.substr(i,2),d=!1):e.push(t.substr(i,2)),i+=1):e.push(t.charAt(i))):o>56319?(s=t.charCodeAt(i+1),Ee.isZeroWidthJoiner(o,s)?(d=!0,e[e.length-1]+=t.substr(i,2),i+=1):e.push(t.charAt(i))):Ee.isZeroWidthJoiner(o)?(e[e.length-1]+=t.charAt(i),d=!0):e.push(t.charAt(i)),i+=1;return e},Bt.prototype.completeTextData=function(t){t.__complete=!0;var e=this.elem.globalData.fontManager,i=this.data,r=[],o,s,d,E=0,v,T=i.m.g,P=0,b=0,y=0,g=[],A=0,k=0,u,l,h=e.getFontByName(t.f),a,n=0,f=Je(h);t.fWeight=f.weight,t.fStyle=f.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),s=t.finalText.length,t.finalLineHeight=t.lh;var c=t.tr/1e3*t.finalSize,p;if(t.sz)for(var m=!0,R=t.sz[0],z=t.sz[1],X,$;m;){$=this.buildFinalText(t.t),X=0,A=0,s=$.length,c=t.tr/1e3*t.finalSize;var Z=-1;for(o=0;oR&&$[o]!==" "?(Z===-1?s+=1:o=Z,X+=t.finalLineHeight||t.finalSize*1.2,$.splice(o,Z===o?1:0,"\r"),Z=-1,A=0):(A+=n,A+=c);X+=h.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&zk?A:k,A=-2*c,v="",d=!0,y+=1):v=et,e.chars?(a=e.getCharData(et,h.fStyle,e.getFontByName(t.f).fFamily),n=d?0:a.w*t.finalSize/100):n=e.measureText(v,t.f,t.finalSize),et===" "?K+=n+c:(A+=n+c+K,K=0),r.push({l:n,an:n,add:P,n:d,anIndexes:[],val:v,line:y,animatorJustifyOffset:0}),T==2){if(P+=n,v===""||v===" "||o===s-1){for((v===""||v===" ")&&(P-=n);b<=o;)r[b].an=P,r[b].ind=E,r[b].extra=n,b+=1;E+=1,P=0}}else if(T==3){if(P+=n,v===""||o===s-1){for(v===""&&(P-=n);b<=o;)r[b].an=P,r[b].ind=E,r[b].extra=n,b+=1;P=0,E+=1}}else r[E].ind=E,r[E].extra=0,E+=1;if(t.l=r,k=A>k?A:k,g.push(A),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=k,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=g;var C=i.a,x,_;l=C.length;var I,J,V=[];for(u=0;u0?d=this.ne.v/100:E=-this.ne.v/100,this.xe.v>0?v=1-this.xe.v/100:T=1+this.xe.v/100;var P=ae.getBezierEasing(d,E,v,T).get,b=0,y=this.finalS,g=this.finalE,A=this.data.sh;if(A===2)g===y?b=s>=g?1:0:b=t(0,e(.5/(g-y)+(s-y)/(g-y),1)),b=P(b);else if(A===3)g===y?b=s>=g?0:1:b=1-t(0,e(.5/(g-y)+(s-y)/(g-y),1)),b=P(b);else if(A===4)g===y?b=0:(b=t(0,e(.5/(g-y)+(s-y)/(g-y),1)),b<.5?b*=2:b=1-2*(b-.5)),b=P(b);else if(A===5){if(g===y)b=0;else{var k=g-y;s=e(t(0,s+.5-y),g-y);var u=-k/2+s,l=k/2;b=Math.sqrt(1-u*u/(l*l))}b=P(b)}else A===6?(g===y?b=0:(s=e(t(0,s+.5-y),g-y),b=(1+Math.cos(Math.PI+Math.PI*2*s/(g-y)))/2),b=P(b)):(s>=i(y)&&(s-y<0?b=t(0,e(e(g,1)-(y-s),1)):b=t(0,e(g-s,1))),b=P(b));if(this.sm.v!==100){var h=this.sm.v*.01;h===0&&(h=1e-8);var a=.5-h*.5;b1&&(b=1))}return b*this.a.v},getValue:function(s){this.iterateDynamicProperties(),this._mdf=s||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,s&&this.data.r===2&&(this.e.v=this._currentTextLength);var d=this.data.r===2?1:100/this.data.totalChars,E=this.o.v/d,v=this.s.v/d+E,T=this.e.v/d+E;if(v>T){var P=v;v=T,T=P}this.finalS=v,this.finalE=T}},kt([nt],r);function o(s,d,E){return new r(s,d)}return{getTextSelectorProp:o}}(),ti=function(){return function(t,e,i){var r=0,o=t,s=st(o),d={newElement:E,release:v};function E(){var T;return r?(r-=1,T=s[r]):T=e(),T}function v(T){r===o&&(s=yi.double(s),o*=2),i&&i(T),s[r]=T,r+=1}return d}}(),yi=function(){function t(e){return e.concat(st(e.length))}return{double:t}}(),Te=function(){function t(){return rt("float32",2)}return ti(8,t)}(),te=function(){function t(){return new Qt}function e(o){var s=o._length,d;for(d=0;d=0;e-=1)this.elements[e]||(r=this.layers[e],r.ip-r.st<=t-this.layers[e].st&&r.op-r.st>t-this.layers[e].st&&this.buildItem(e)),this.completeLayers=this.elements[e]?this.completeLayers:!1;this.checkPendingElements()},Ht.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t);default:return this.createNull(t)}},Ht.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Ht.prototype.createAudio=function(t){return new oe(t,this.globalData,this)},Ht.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},Ht.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e0&&(this.maskElement.setAttribute("id",y),this.element.maskedElement.setAttribute(h,"url("+j+"#"+y+")"),r.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}Le.prototype.getMaskProperty=function(t){return this.viewData[t].prop},Le.prototype.renderFrame=function(t){var e=this.element.finalTransform.mat,i,r=this.masksProperties.length;for(i=0;i1&&(r+=" C"+e.o[o-1][0]+","+e.o[o-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),i.lastPath!==r){var d="";i.elem&&(e.c&&(d=t.inv?this.solidPath+r:r),i.elem.setAttribute("d",d)),i.lastPath=r}},Le.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};function $e(){}$e.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function Re(){}Re.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){var i,r=this.dynamicProperties.length;for(i=0;it?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 t,e=this.renderableComponents.length;for(t=0;t0;)u=b.transformers[R].mProps._mdf||u,m-=1,R-=1;if(u)for(m=n-b.styles[h].lvl,R=b.transformers.length-1;m>0;)p=b.transformers[R].mProps.v.props,c.transform(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15]),m-=1,R-=1}else c=t;if(f=b.sh.paths,A=f._length,u){for(k="",g=0;g=1?$=.99:$<=-1&&($=-.99);var Z=z*$,K=Math.cos(X+b.a.v)*Z+k[0],et=Math.sin(X+b.a.v)*Z+k[1];g.setAttribute("fx",K),g.setAttribute("fy",et),A&&!b.g._collapsable&&(b.of.setAttribute("fx",K),b.of.setAttribute("fy",et))}}}function T(P,b,y){var g=b.style,A=b.d;A&&(A._mdf||y)&&A.dashStr&&(g.pElem.setAttribute("stroke-dasharray",A.dashStr),g.pElem.setAttribute("stroke-dashoffset",A.dashoffset[0])),b.c&&(b.c._mdf||y)&&g.pElem.setAttribute("stroke","rgb("+ct(b.c.v[0])+","+ct(b.c.v[1])+","+ct(b.c.v[2])+")"),(b.o._mdf||y)&&g.pElem.setAttribute("stroke-opacity",b.o.v),(b.w._mdf||y)&&(g.pElem.setAttribute("stroke-width",b.w.v),g.msElem&&g.msElem.setAttribute("stroke-width",b.w.v))}return i}();function Ce(){}Ce.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t=0&&(i=this.shapeModifiers[t].processShapes(this._isFirstFrame),!i);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,i=0,r=e.length;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))}},Oe.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},oe.prototype.show=function(){},oe.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},oe.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},oe.prototype.resume=function(){this._canPlay=!0},oe.prototype.setRate=function(t){this.audio.rate(t)},oe.prototype.volume=function(t){this.audio.volume(t)},oe.prototype.getBaseElement=function(){return null},oe.prototype.destroy=function(){},oe.prototype.sourceRectAtTime=function(){},oe.prototype.initExpressions=function(){};function Zi(t,e,i){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?st(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?L.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}kt([jt,Oe,ci],Zi);function ei(t,e,i){this.textSpans=[],this.renderType="svg",this.initElement(t,e,i)}kt([Ce,S,ci,$e,Re,H,xe],ei),ei.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=G("text"))},ei.prototype.buildTextContents=function(t){for(var e=0,i=t.length,r=[],o="";et?this.textSpans[t]:G(E?"path":"text"),n<=t&&(v.setAttribute("stroke-linecap","butt"),v.setAttribute("stroke-linejoin","round"),v.setAttribute("stroke-miterlimit","4"),this.textSpans[t]=v,this.layerElement.appendChild(v)),v.style.display="inherit"),T.reset(),T.scale(i.finalSize/100,i.finalSize/100),y&&(d[t].n&&(g=-u,A+=i.yOffset,A+=k?1:0,k=!1),this.applyTextPropertiesToMatrix(i,T,d[t].line,g,A),g+=d[t].l||0,g+=u),E?(c=this.globalData.fontManager.getCharData(i.finalText[t],r.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily),f=c&&c.data||{},P=f.shapes?f.shapes[0].it:[],y?b+=this.createPathShape(T,P):v.setAttribute("d",this.createPathShape(T,P))):(y&&v.setAttribute("transform","translate("+T.props[12]+","+T.props[13]+")"),v.textContent=d[t].val,v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"));y&&v&&v.setAttribute("d",b)}for(;t1&&E&&this.setShapesAsAnimated(d)}},zt.prototype.setShapesAsAnimated=function(t){var e,i=t.length;for(e=0;e=0;v-=1){if(u=this.searchProcessedElement(t[v]),u?e[v]=i[u-1]:t[v]._render=d,t[v].ty==="fl"||t[v].ty==="st"||t[v].ty==="gf"||t[v].ty==="gs")u?e[v].style.closed=!1:e[v]=this.createStyleElement(t[v],o),t[v]._render&&r.appendChild(e[v].style.pElem),y.push(e[v].style);else if(t[v].ty==="gr"){if(!u)e[v]=this.createGroupElement(t[v]);else for(b=e[v].it.length,P=0;P=0;x-=1)e[x].animation.destroy(C)}function m(C,x,_){var I=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),J,V=I.length;for(J=0;Jthis.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e=this.animationData.layers,i,r=e.length,o=t.layers,s,d=o.length;for(s=0;sthis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame()},ft.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},ft.prototype.play=function(t){t&&this.name!==t||this.isPaused===!0&&(this.isPaused=!1,this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},ft.prototype.pause=function(t){t&&this.name!==t||this.isPaused===!1&&(this.isPaused=!0,this._idle=!0,this.trigger("_idle"),this.audioController.pause())},ft.prototype.togglePause=function(t){t&&this.name!==t||(this.isPaused===!0?this.play():this.pause())},ft.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},ft.prototype.getMarkerData=function(t){for(var e,i=0;i=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"))}},ft.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},ft.prototype.setSegment=function(t,e){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFramee&&(i=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,i!==-1&&this.goToAndStop(i,!0)},ft.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),typeof t[0]=="object"){var i,r=t.length;for(i=0;i1&&(Ot=t)}function Cr(){return typeof navigator<"u"}function Mr(t,e){t==="expressions"&&(B=e)}function Fr(t){switch(t){case"propertyFactory":return L;case"shapePropertyFactory":return Pe;case"matrix":return wt;default:return null}}Mt.play=Yt.play,Mt.pause=Yt.pause,Mt.setLocationHref=Ar,Mt.togglePause=Yt.togglePause,Mt.setSpeed=Yt.setSpeed,Mt.setDirection=Yt.setDirection,Mt.stop=Yt.stop,Mt.searchAnimations=Qi,Mt.registerAnimation=Yt.registerAnimation,Mt.loadAnimation=wr,Mt.setSubframeRendering=Er,Mt.resize=Yt.resize,Mt.goToAndStop=Yt.goToAndStop,Mt.destroy=Yt.destroy,Mt.setQuality=Tr,Mt.inBrowser=Cr,Mt.installPlugin=Mr,Mt.freeze=Yt.freeze,Mt.unfreeze=Yt.unfreeze,Mt.setVolume=Yt.setVolume,Mt.mute=Yt.mute,Mt.unmute=Yt.unmute,Mt.getRegisteredAnimations=Yt.getRegisteredAnimations,Mt.setIDPrefix=Pr,Mt.__getFactory=Fr,Mt.version="5.7.14";function Ir(){document.readyState==="complete"&&(clearInterval(Vr),Qi())}function Lr(t){for(var e=tr.split("&"),i=0;i=0)&&(F[D]=w[D]);return F}function Ui(w,M){return M={exports:{}},w(M,M.exports),M.exports}/** @license React v16.13.1 + */var Et=function(){var t=Math.cos,e=Math.sin,i=Math.tan,r=Math.round;function o(){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 s(S){if(S===0)return this;var _=t(S),M=e(S);return this._t(_,-M,0,0,M,_,0,0,0,0,1,0,0,0,0,1)}function d(S){if(S===0)return this;var _=t(S),M=e(S);return this._t(1,0,0,0,0,_,-M,0,0,M,_,0,0,0,0,1)}function E(S){if(S===0)return this;var _=t(S),M=e(S);return this._t(_,0,M,0,0,1,0,0,-M,0,_,0,0,0,0,1)}function v(S){if(S===0)return this;var _=t(S),M=e(S);return this._t(_,-M,0,0,M,_,0,0,0,0,1,0,0,0,0,1)}function T(S,_){return this._t(1,_,S,1,0,0)}function P(S,_){return this.shear(i(S),i(_))}function b(S,_){var M=t(_),Z=e(_);return this._t(M,Z,0,0,-Z,M,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,i(S),1,0,0,0,0,1,0,0,0,0,1)._t(M,-Z,0,0,Z,M,0,0,0,0,1,0,0,0,0,1)}function g(S,_,M){return!M&&M!==0&&(M=1),S===1&&_===1&&M===1?this:this._t(S,0,0,0,0,_,0,0,0,0,M,0,0,0,0,1)}function y(S,_,M,Z,O,bt,dt,wt,Yt,Xt,re,le,me,ee,Gt,fe){return this.props[0]=S,this.props[1]=_,this.props[2]=M,this.props[3]=Z,this.props[4]=O,this.props[5]=bt,this.props[6]=dt,this.props[7]=wt,this.props[8]=Yt,this.props[9]=Xt,this.props[10]=re,this.props[11]=le,this.props[12]=me,this.props[13]=ee,this.props[14]=Gt,this.props[15]=fe,this}function A(S,_,M){return M=M||0,S!==0||_!==0||M!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,S,_,M,1):this}function x(S,_,M,Z,O,bt,dt,wt,Yt,Xt,re,le,me,ee,Gt,fe){var et=this.props;if(S===1&&_===0&&M===0&&Z===0&&O===0&&bt===1&&dt===0&&wt===0&&Yt===0&&Xt===0&&re===1&&le===0)return et[12]=et[12]*S+et[15]*me,et[13]=et[13]*bt+et[15]*ee,et[14]=et[14]*re+et[15]*Gt,et[15]*=fe,this._identityCalculated=!1,this;var Vt=et[0],Oe=et[1],Ge=et[2],Ve=et[3],Te=et[4],je=et[5],De=et[6],ae=et[7],Ue=et[8],Xe=et[9],_e=et[10],He=et[11],be=et[12],ei=et[13],ki=et[14],xi=et[15];return et[0]=Vt*S+Oe*O+Ge*Yt+Ve*me,et[1]=Vt*_+Oe*bt+Ge*Xt+Ve*ee,et[2]=Vt*M+Oe*dt+Ge*re+Ve*Gt,et[3]=Vt*Z+Oe*wt+Ge*le+Ve*fe,et[4]=Te*S+je*O+De*Yt+ae*me,et[5]=Te*_+je*bt+De*Xt+ae*ee,et[6]=Te*M+je*dt+De*re+ae*Gt,et[7]=Te*Z+je*wt+De*le+ae*fe,et[8]=Ue*S+Xe*O+_e*Yt+He*me,et[9]=Ue*_+Xe*bt+_e*Xt+He*ee,et[10]=Ue*M+Xe*dt+_e*re+He*Gt,et[11]=Ue*Z+Xe*wt+_e*le+He*fe,et[12]=be*S+ei*O+ki*Yt+xi*me,et[13]=be*_+ei*bt+ki*Xt+xi*ee,et[14]=be*M+ei*dt+ki*re+xi*Gt,et[15]=be*Z+ei*wt+ki*le+xi*fe,this._identityCalculated=!1,this}function u(){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 l(S){for(var _=0;_<16;){if(S.props[_]!==this.props[_])return!1;_+=1}return!0}function h(S){var _;for(_=0;_<16;_+=1)S.props[_]=this.props[_];return S}function a(S){var _;for(_=0;_<16;_+=1)this.props[_]=S[_]}function n(S,_,M){return{x:S*this.props[0]+_*this.props[4]+M*this.props[8]+this.props[12],y:S*this.props[1]+_*this.props[5]+M*this.props[9]+this.props[13],z:S*this.props[2]+_*this.props[6]+M*this.props[10]+this.props[14]}}function f(S,_,M){return S*this.props[0]+_*this.props[4]+M*this.props[8]+this.props[12]}function c(S,_,M){return S*this.props[1]+_*this.props[5]+M*this.props[9]+this.props[13]}function p(S,_,M){return S*this.props[2]+_*this.props[6]+M*this.props[10]+this.props[14]}function m(){var S=this.props[0]*this.props[5]-this.props[1]*this.props[4],_=this.props[5]/S,M=-this.props[1]/S,Z=-this.props[4]/S,O=this.props[0]/S,bt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/S,dt=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/S,wt=new Et;return wt.props[0]=_,wt.props[1]=M,wt.props[4]=Z,wt.props[5]=O,wt.props[12]=bt,wt.props[13]=dt,wt}function R(S){var _=this.getInverseMatrix();return _.applyToPointArray(S[0],S[1],S[2]||0)}function B(S){var _,M=S.length,Z=[];for(_=0;_0||S>-1e-6&&S<0?r(S*_)/_:S}function F(){var S=this.props,_=tt(S[0]),M=tt(S[1]),Z=tt(S[4]),O=tt(S[5]),bt=tt(S[12]),dt=tt(S[13]);return"matrix("+_+","+M+","+Z+","+O+","+bt+","+dt+")"}return function(){this.reset=o,this.rotate=s,this.rotateX=d,this.rotateY=E,this.rotateZ=v,this.skew=P,this.skewFromAxis=b,this.shear=T,this.scale=g,this.setTransform=y,this.translate=A,this.transform=x,this.applyToPoint=n,this.applyToX=f,this.applyToY=c,this.applyToZ=p,this.applyToPointArray=q,this.applyToTriplePoints=X,this.applyToPointStringified=Q,this.toCSS=J,this.to2dCSS=F,this.clone=h,this.cloneFromProps=a,this.equals=l,this.inversePoints=B,this.inversePoint=R,this.getInverseMatrix=m,this._t=this.transform,this.isIdentity=u,this._identity=!0,this._identityCalculated=!1,this.props=it("float32",16),this.reset()}}();(function(t,e){var i=this,r=256,o=6,s=52,d="random",E=e.pow(r,o),v=e.pow(2,s),T=v*2,P=r-1,b;function g(a,n,f){var c=[];n=n===!0?{entropy:!0}:n||{};var p=u(x(n.entropy?[a,h(t)]:a===null?l():a,3),c),m=new y(c),R=function(){for(var B=m.g(o),X=E,q=0;B=T;)B/=2,X/=2,q>>>=1;return(B+q)/X};return R.int32=function(){return m.g(4)|0},R.quick=function(){return m.g(4)/4294967296},R.double=R,u(h(m.S),t),(n.pass||f||function(B,X,q,Q){return Q&&(Q.S&&A(Q,m),B.state=function(){return A(m,{})}),q?(e[d]=B,X):B})(R,p,"global"in n?n.global:this==e,n.state)}e["seed"+d]=g;function y(a){var n,f=a.length,c=this,p=0,m=c.i=c.j=0,R=c.S=[];for(f||(a=[f++]);p0?n=m:a=m;while(Math.abs(p)>s&&++R=o?u(h,B,a,n):X===0?B:x(h,c,c+v,a,n)}},t}();(function(){for(var t=0,e=["ms","moz","webkit","o"],i=0;i-.001&&h<.001}function i(g,y,A,x,u,l,h,a,n){if(A===0&&l===0&&n===0)return e(g,y,x,u,h,a);var f=t.sqrt(t.pow(x-g,2)+t.pow(u-y,2)+t.pow(l-A,2)),c=t.sqrt(t.pow(h-g,2)+t.pow(a-y,2)+t.pow(n-A,2)),p=t.sqrt(t.pow(h-x,2)+t.pow(a-u,2)+t.pow(n-l,2)),m;return f>c?f>p?m=f-c-p:m=p-c-f:p>c?m=p-c-f:m=c-f-p,m>-1e-4&&m<1e-4}var r=function(){return function(g,y,A,x){var u=Dt,l,h,a,n,f,c=0,p,m=[],R=[],B=vi.newElement();for(a=A.length,l=0;lh?-1:1,f=!0;f;)if(x[l]<=h&&x[l+1]>h?(a=(h-x[l])/(x[l+1]-x[l]),f=!1):l+=n,l<0||l>=u-1){if(l===u-1)return A[l];f=!1}return A[l]+(A[l+1]-A[l])*a}function T(g,y,A,x,u,l){var h=v(u,l),a=1-h,n=t.round((a*a*a*g[0]+(h*a*a+a*h*a+a*a*h)*A[0]+(h*h*a+a*h*h+h*a*h)*x[0]+h*h*h*y[0])*1e3)/1e3,f=t.round((a*a*a*g[1]+(h*a*a+a*h*a+a*a*h)*A[1]+(h*h*a+a*h*h+h*a*h)*x[1]+h*h*h*y[1])*1e3)/1e3;return[n,f]}var P=it("float32",8);function b(g,y,A,x,u,l,h){u<0?u=0:u>1&&(u=1);var a=v(u,h);l=l>1?1:l;var n=v(l,h),f,c=g.length,p=1-a,m=1-n,R=p*p*p,B=a*p*p*3,X=a*a*p*3,q=a*a*a,Q=p*p*m,J=a*p*m+p*a*m+p*p*n,tt=a*a*m+p*a*n+a*p*n,F=a*a*n,S=p*m*m,_=a*m*m+p*n*m+p*m*n,M=a*n*m+p*n*n+a*m*n,Z=a*n*n,O=m*m*m,bt=n*m*m+m*n*m+m*m*n,dt=n*n*m+m*n*n+n*m*n,wt=n*n*n;for(f=0;f=0;A-=1)if(y[A].ty==="sh")if(y[A].ks.k.i)r(y[A].ks.k);else for(l=y[A].ks.k.length,u=0;ux[0]?!0:x[0]>y[0]?!1:y[1]>x[1]?!0:x[1]>y[1]?!1:y[2]>x[2]?!0:x[2]>y[2]?!1:null}var s=function(){var y=[4,4,14];function A(u){var l=u.t.d;u.t.d={k:[{s:l,t:0}]}}function x(u){var l,h=u.length;for(l=0;l=0;l-=1)if(u[l].ty==="sh")if(u[l].ks.k.i)u[l].ks.k.c=u[l].closed;else for(n=u[l].ks.k.length,a=0;a0&&(B=!1),B){var Q=at("style");Q.setAttribute("f-forigin",c[p].fOrigin),Q.setAttribute("f-origin",c[p].origin),Q.setAttribute("f-family",c[p].fFamily),Q.type="text/css",Q.innerText="@font-face {font-family: "+c[p].fFamily+"; font-style: normal; src: url('"+c[p].fPath+"');}",f.appendChild(Q)}}else if(c[p].fOrigin==="g"||c[p].origin===1){for(X=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),q=0;q=R.t-h){m.h&&(m=R),n=0;break}if(R.t-h>u){n=f;break}f=F||u=F?M.points.length-1:0;for(X=M.points[Z].point.length,B=0;B=dt&&O=F)a[0]=_[0],a[1]=_[1],a[2]=_[2];else if(u<=S)a[0]=m.s[0],a[1]=m.s[1],a[2]=m.s[2];else{var me=s(m.s),ee=s(_),Gt=(u-S)/(F-S);o(a,r(me,ee,Gt))}else for(f=0;f=F?q=1:u"u"?m.o.x[0]:m.o.x[f],Yt=typeof m.o.y[f]>"u"?m.o.y[0]:m.o.y[f],Xt=typeof m.i.x[f]>"u"?m.i.x[0]:m.i.x[f],re=typeof m.i.y[f]>"u"?m.i.y[0]:m.i.y[f],tt=ne.getBezierEasing(wt,Yt,Xt,re).get,m.__fnct[f]=tt)):m.__fnct?tt=m.__fnct:(wt=m.o.x,Yt=m.o.y,Xt=m.i.x,re=m.i.y,tt=ne.getBezierEasing(wt,Yt,Xt,re).get,m.__fnct=tt),q=tt((u-S)/(F-S)))),_=R.s||m.e,le=m.h===1?m.s[f]:m.s[f]+(_[f]-m.s[f])*q,this.propType==="multidimensional"?a[f]=le:a=le}return l.lastIndex=n,a}function r(u,l,h){var a=[],n=u[0],f=u[1],c=u[2],p=u[3],m=l[0],R=l[1],B=l[2],X=l[3],q,Q,J,tt,F;return Q=n*m+f*R+c*B+p*X,Q<0&&(Q=-Q,m=-m,R=-R,B=-B,X=-X),1-Q>1e-6?(q=Math.acos(Q),J=Math.sin(q),tt=Math.sin((1-h)*q)/J,F=Math.sin(h*q)/J):(tt=1-h,F=h),a[0]=tt*n+F*m,a[1]=tt*f+F*R,a[2]=tt*c+F*B,a[3]=tt*p+F*X,a}function o(u,l){var h=l[0],a=l[1],n=l[2],f=l[3],c=Math.atan2(2*a*f-2*h*n,1-2*a*a-2*n*n),p=Math.asin(2*h*a+2*n*f),m=Math.atan2(2*h*f-2*a*n,1-2*h*h-2*n*n);u[0]=c/yt,u[1]=p/yt,u[2]=m/yt}function s(u){var l=u[0]*yt,h=u[1]*yt,a=u[2]*yt,n=Math.cos(l/2),f=Math.cos(h/2),c=Math.cos(a/2),p=Math.sin(l/2),m=Math.sin(h/2),R=Math.sin(a/2),B=n*f*c-p*m*R,X=p*m*c+n*f*R,q=p*f*c+n*m*R,Q=n*m*c-p*f*R;return[X,q,Q,B]}function d(){var u=this.comp.renderedFrame-this.offsetTime,l=this.keyframes[0].t-this.offsetTime,h=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(u===this._caching.lastFrame||this._caching.lastFrame!==t&&(this._caching.lastFrame>=h&&u>=h||this._caching.lastFrame=u&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var a=this.interpolateValue(u,this._caching);this.pv=a}return this._caching.lastFrame=u,this.pv}function E(u){var l;if(this.propType==="unidimensional")l=u*this.mult,e(this.v-l)>1e-5&&(this.v=l,this._mdf=!0);else for(var h=0,a=this.v.length;h1e-5&&(this.v[h]=l,this._mdf=!0),h+=1}function v(){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 u,l=this.effectsSequence.length,h=this.kf?this.pv:this.data.k;for(u=0;u=this.p.keyframes[this.p.keyframes.length-1].t?(P=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/T,0),b=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/T,0)):(P=this.p.pv,b=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/T,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){P=[],b=[];var g=this.px,y=this.py;g._caching.lastFrame+g.offsetTime<=g.keyframes[0].t?(P[0]=g.getValueAtTime((g.keyframes[0].t+.01)/T,0),P[1]=y.getValueAtTime((y.keyframes[0].t+.01)/T,0),b[0]=g.getValueAtTime(g.keyframes[0].t/T,0),b[1]=y.getValueAtTime(y.keyframes[0].t/T,0)):g._caching.lastFrame+g.offsetTime>=g.keyframes[g.keyframes.length-1].t?(P[0]=g.getValueAtTime(g.keyframes[g.keyframes.length-1].t/T,0),P[1]=y.getValueAtTime(y.keyframes[y.keyframes.length-1].t/T,0),b[0]=g.getValueAtTime((g.keyframes[g.keyframes.length-1].t-.01)/T,0),b[1]=y.getValueAtTime((y.keyframes[y.keyframes.length-1].t-.01)/T,0)):(P=[g.pv,y.pv],b[0]=g.getValueAtTime((g._caching.lastFrame+g.offsetTime-.01)/T,g.offsetTime),b[1]=y.getValueAtTime((y._caching.lastFrame+y.offsetTime-.01)/T,y.offsetTime))}else b=t,P=b;this.v.rotate(-Math.atan2(P[1]-b[1],P[0]-b[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 r(){if(!this.a.k)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 o(){}function s(v){this._addDynamicProperty(v),this.elem.addDynamicProperty(v),this._isDirty=!0}function d(v,T,P){if(this.elem=v,this.frameId=-1,this.propType="transform",this.data=T,this.v=new Et,this.pre=new Et,this.appliedTransformations=0,this.initDynamicPropertyContainer(P||v),T.p&&T.p.s?(this.px=L.getProp(v,T.p.x,0,0,this),this.py=L.getProp(v,T.p.y,0,0,this),T.p.z&&(this.pz=L.getProp(v,T.p.z,0,0,this))):this.p=L.getProp(v,T.p||{k:[0,0,0]},1,0,this),T.rx){if(this.rx=L.getProp(v,T.rx,0,yt,this),this.ry=L.getProp(v,T.ry,0,yt,this),this.rz=L.getProp(v,T.rz,0,yt,this),T.or.k[0].ti){var b,g=T.or.k.length;for(b=0;b=this._maxLength&&this.doubleArrayLength(),i){case"v":s=this.v;break;case"i":s=this.i;break;case"o":s=this.o;break;default:s=[];break}(!s[r]||s[r]&&!o)&&(s[r]=Ae.newElement()),s[r][0]=t,s[r][1]=e},$t.prototype.setTripleAt=function(t,e,i,r,o,s,d,E){this.setXYAt(t,e,"v",d,E),this.setXYAt(i,r,"o",d,E),this.setXYAt(o,s,"i",d,E)},$t.prototype.reverse=function(){var t=new $t;t.setPathData(this.c,this._length);var e=this.v,i=this.o,r=this.i,o=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],r[0][0],r[0][1],i[0][0],i[0][1],0,!1),o=1);var s=this._length-1,d=this._length,E;for(E=o;E=J[J.length-1].t-this.offsetTime)f=J[J.length-1].s?J[J.length-1].s[0]:J[J.length-2].e[0],p=!0;else{for(var tt=n,F=J.length-1,S=!0,_,M;S&&(_=J[tt],M=J[tt+1],!(M.t-this.offsetTime>l));)tt=M.t-this.offsetTime)q=1;else if(l<_.t-this.offsetTime)q=0;else{var Z;_.__fnct?Z=_.__fnct:(Z=ne.getBezierEasing(_.o.x,_.o.y,_.i.x,_.i.y).get,_.__fnct=Z),q=Z((l-(_.t-this.offsetTime))/(M.t-this.offsetTime-(_.t-this.offsetTime)))}c=M.s?M.s[0]:_.e[0]}f=_.s[0]}for(B=h._length,X=f.i[0].length,a.lastIndex=n,m=0;ma&&l>a)||(this._caching.lastIndex=n=1?s.push({s:t-1,e:e-1}):(s.push({s:t,e:1}),s.push({s:0,e:e-1}));var d=[],E,v=s.length,T;for(E=0;Er+i)){var P,b;T.s*o<=r?P=0:P=(T.s*o-r)/i,T.e*o>=r+i?b=1:b=(T.e*o-r)/i,d.push([P,b])}return d.length||d.push([0,0]),d},he.prototype.releasePathsData=function(t){var e,i=t.length;for(e=0;e1?e=1+r:this.s.v<0?e=0+r:e=this.s.v+r,this.e.v>1?i=1+r:this.e.v<0?i=0+r:i=this.e.v+r,e>i){var o=e;e=i,i=o}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 s,d,E=this.shapes.length,v,T,P,b,g,y=0;if(i===e)for(d=0;d=0;d-=1)if(x=this.shapes[d],x.shape._mdf){for(u=x.localShapeCollection,u.releaseShapes(),this.m===2&&E>1?(n=this.calculateShapeEdges(e,i,x.totalShapeLength,a,y),a+=x.totalShapeLength):n=[[l,h]],T=n.length,v=0;v=1?A.push({s:x.totalShapeLength*(l-1),e:x.totalShapeLength*(h-1)}):(A.push({s:x.totalShapeLength*l,e:x.totalShapeLength}),A.push({s:0,e:x.totalShapeLength*(h-1)}));var f=this.addShapes(x,A[0]);if(A[0].s!==A[0].e){if(A.length>1){var c=x.shape.paths.shapes[x.shape.paths._length-1];if(c.c){var p=f.pop();this.addPaths(f,u),f=this.addShapes(x,A[1],p)}else this.addPaths(f,u),f=this.addShapes(x,A[1])}this.addPaths(f,u)}}x.shape.paths=u}}},he.prototype.addPaths=function(t,e){var i,r=t.length;for(i=0;ie.e){i.c=!1;break}else e.s<=T&&e.e>=T+P.addedLength?(this.addSegment(o[s].v[E-1],o[s].o[E-1],o[s].i[E],o[s].v[E],i,b,u),u=!1):(y=te.getNewSegment(o[s].v[E-1],o[s].v[E],o[s].o[E-1],o[s].i[E],(e.s-T)/P.addedLength,(e.e-T)/P.addedLength,g[E-1]),this.addSegmentFromArray(y,i,b,u),u=!1,i.c=!1),T+=P.addedLength,b+=1;if(o[s].c&&g.length){if(P=g[E-1],T<=e.e){var l=g[E-1].addedLength;e.s<=T&&e.e>=T+l?(this.addSegment(o[s].v[E-1],o[s].o[E-1],o[s].i[0],o[s].v[0],i,b,u),u=!1):(y=te.getNewSegment(o[s].v[E-1],o[s].v[0],o[s].o[E-1],o[s].i[0],(e.s-T)/l,(e.e-T)/l,g[E-1]),this.addSegmentFromArray(y,i,b,u),u=!1,i.c=!1)}else i.c=!1;T+=P.addedLength,b+=1}if(i._length&&(i.setXYAt(i.v[x][0],i.v[x][1],"i",x),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),T>e.e)break;s0;)i-=1,this._elements.unshift(e[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},de.prototype.resetElements=function(t){var e,i=t.length;for(e=0;e0?Math.floor(g):Math.ceil(g),x=this.pMatrix.props,u=this.rMatrix.props,l=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var h=0;if(g>0){for(;hA;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),h-=1;y&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-y,!0),h-=y)}r=this.data.m===1?0:this._currentCopies-1,o=this.data.m===1?1:-1,s=this._currentCopies;for(var a,n;s;){if(e=this.elemsData[r].it,i=e[e.length-1].transform.mProps.v.props,n=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)*(r/(this._currentCopies-1)),h!==0){for((r!==0&&o===1||r!==this._currentCopies-1&&o===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(u[0],u[1],u[2],u[3],u[4],u[5],u[6],u[7],u[8],u[9],u[10],u[11],u[12],u[13],u[14],u[15]),this.matrix.transform(l[0],l[1],l[2],l[3],l[4],l[5],l[6],l[7],l[8],l[9],l[10],l[11],l[12],l[13],l[14],l[15]),this.matrix.transform(x[0],x[1],x[2],x[3],x[4],x[5],x[6],x[7],x[8],x[9],x[10],x[11],x[12],x[13],x[14],x[15]),a=0;a.01)return!1;i+=1}return!0},Ne.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t500)&&(this._imageLoaded(),clearInterval(a)),h+=1}.bind(this),50)}function s(l){var h=r(l,this.assetsPath,this.path),a=G("image");$?this.testImageLoaded(a):a.addEventListener("load",this._imageLoaded,!1),a.addEventListener("error",function(){n.img=t,this._imageLoaded()}.bind(this),!1),a.setAttributeNS("http://www.w3.org/1999/xlink","href",h),this._elementHelper.append?this._elementHelper.append(a):this._elementHelper.appendChild(a);var n={img:a,assetData:l};return n}function d(l){var h=r(l,this.assetsPath,this.path),a=at("img");a.crossOrigin="anonymous",a.addEventListener("load",this._imageLoaded,!1),a.addEventListener("error",function(){n.img=t,this._imageLoaded()}.bind(this),!1),a.src=h;var n={img:a,assetData:l};return n}function E(l){var h={assetData:l},a=r(l,this.assetsPath,this.path);return ci.load(a,function(n){h.img=n,this._footageLoaded()}.bind(this),function(){h.img={},this._footageLoaded()}.bind(this)),h}function v(l,h){this.imagesLoadedCb=h;var a,n=l.length;for(a=0;a=A+be||!f?(R=(A+be-u)/x.partialLength,wt=n.point[0]+(x.point[0]-n.point[0])*R,Yt=n.point[1]+(x.point[1]-n.point[1])*R,s.translate(-i[0]*g[P].an*.005,-(i[1]*J)*.01),l=!1):f&&(u+=x.partialLength,h+=1,h>=f.length&&(h=0,a+=1,c[a]?f=c[a].points:X.v.c?(h=0,a=0,f=c[a].points):(u-=x.partialLength,f=null)),f&&(n=x,x=f[h],p=x.partialLength));dt=g[P].an/2-g[P].add,s.translate(-dt,0,0)}else dt=g[P].an/2-g[P].add,s.translate(-dt,0,0),s.translate(-i[0]*g[P].an*.005,-i[1]*J*.01,0);for(_=0;_1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},Kt.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},Kt.prototype.getValue=function(t){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!t)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,i=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var r,o=this.effectsSequence.length,s=t||this.data.d.k[this.keysIndex].s;for(r=0;re);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},Kt.prototype.buildFinalText=function(t){for(var e=[],i=0,r=t.length,o,s,d=!1;i=55296&&o<=56319?(s=t.charCodeAt(i+1),s>=56320&&s<=57343?(d||we.isModifier(o,s)?(e[e.length-1]+=t.substr(i,2),d=!1):e.push(t.substr(i,2)),i+=1):e.push(t.charAt(i))):o>56319?(s=t.charCodeAt(i+1),we.isZeroWidthJoiner(o,s)?(d=!0,e[e.length-1]+=t.substr(i,2),i+=1):e.push(t.charAt(i))):we.isZeroWidthJoiner(o)?(e[e.length-1]+=t.charAt(i),d=!0):e.push(t.charAt(i)),i+=1;return e},Kt.prototype.completeTextData=function(t){t.__complete=!0;var e=this.elem.globalData.fontManager,i=this.data,r=[],o,s,d,E=0,v,T=i.m.g,P=0,b=0,g=0,y=[],A=0,x=0,u,l,h=e.getFontByName(t.f),a,n=0,f=Ze(h);t.fWeight=f.weight,t.fStyle=f.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),s=t.finalText.length,t.finalLineHeight=t.lh;var c=t.tr/1e3*t.finalSize,p;if(t.sz)for(var m=!0,R=t.sz[0],B=t.sz[1],X,q;m;){q=this.buildFinalText(t.t),X=0,A=0,s=q.length,c=t.tr/1e3*t.finalSize;var Q=-1;for(o=0;oR&&q[o]!==" "?(Q===-1?s+=1:o=Q,X+=t.finalLineHeight||t.finalSize*1.2,q.splice(o,Q===o?1:0,"\r"),Q=-1,A=0):(A+=n,A+=c);X+=h.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&Bx?A:x,A=-2*c,v="",d=!0,g+=1):v=tt,e.chars?(a=e.getCharData(tt,h.fStyle,e.getFontByName(t.f).fFamily),n=d?0:a.w*t.finalSize/100):n=e.measureText(v,t.f,t.finalSize),tt===" "?J+=n+c:(A+=n+c+J,J=0),r.push({l:n,an:n,add:P,n:d,anIndexes:[],val:v,line:g,animatorJustifyOffset:0}),T==2){if(P+=n,v===""||v===" "||o===s-1){for((v===""||v===" ")&&(P-=n);b<=o;)r[b].an=P,r[b].ind=E,r[b].extra=n,b+=1;E+=1,P=0}}else if(T==3){if(P+=n,v===""||o===s-1){for(v===""&&(P-=n);b<=o;)r[b].an=P,r[b].ind=E,r[b].extra=n,b+=1;P=0,E+=1}}else r[E].ind=E,r[E].extra=0,E+=1;if(t.l=r,x=A>x?A:x,y.push(A),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=x,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=y;var F=i.a,S,_;l=F.length;var M,Z,O=[];for(u=0;u0?d=this.ne.v/100:E=-this.ne.v/100,this.xe.v>0?v=1-this.xe.v/100:T=1+this.xe.v/100;var P=ne.getBezierEasing(d,E,v,T).get,b=0,g=this.finalS,y=this.finalE,A=this.data.sh;if(A===2)y===g?b=s>=y?1:0:b=t(0,e(.5/(y-g)+(s-g)/(y-g),1)),b=P(b);else if(A===3)y===g?b=s>=y?0:1:b=1-t(0,e(.5/(y-g)+(s-g)/(y-g),1)),b=P(b);else if(A===4)y===g?b=0:(b=t(0,e(.5/(y-g)+(s-g)/(y-g),1)),b<.5?b*=2:b=1-2*(b-.5)),b=P(b);else if(A===5){if(y===g)b=0;else{var x=y-g;s=e(t(0,s+.5-g),y-g);var u=-x/2+s,l=x/2;b=Math.sqrt(1-u*u/(l*l))}b=P(b)}else A===6?(y===g?b=0:(s=e(t(0,s+.5-g),y-g),b=(1+Math.cos(Math.PI+Math.PI*2*s/(y-g)))/2),b=P(b)):(s>=i(g)&&(s-g<0?b=t(0,e(e(y,1)-(g-s),1)):b=t(0,e(y-s,1))),b=P(b));if(this.sm.v!==100){var h=this.sm.v*.01;h===0&&(h=1e-8);var a=.5-h*.5;b1&&(b=1))}return b*this.a.v},getValue:function(s){this.iterateDynamicProperties(),this._mdf=s||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,s&&this.data.r===2&&(this.e.v=this._currentTextLength);var d=this.data.r===2?1:100/this.data.totalChars,E=this.o.v/d,v=this.s.v/d+E,T=this.e.v/d+E;if(v>T){var P=v;v=T,T=P}this.finalS=v,this.finalE=T}},_t([nt],r);function o(s,d,E){return new r(s,d)}return{getTextSelectorProp:o}}(),ri=function(){return function(t,e,i){var r=0,o=t,s=rt(o),d={newElement:E,release:v};function E(){var T;return r?(r-=1,T=s[r]):T=e(),T}function v(T){r===o&&(s=si.double(s),o*=2),i&&i(T),s[r]=T,r+=1}return d}}(),si=function(){function t(e){return e.concat(rt(e.length))}return{double:t}}(),Ae=function(){function t(){return it("float32",2)}return ri(8,t)}(),Bt=function(){function t(){return new $t}function e(o){var s=o._length,d;for(d=0;d=0;e-=1)this.elements[e]||(r=this.layers[e],r.ip-r.st<=t-this.layers[e].st&&r.op-r.st>t-this.layers[e].st&&this.buildItem(e)),this.completeLayers=this.elements[e]?this.completeLayers:!1;this.checkPendingElements()},Jt.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t);default:return this.createNull(t)}},Jt.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Jt.prototype.createAudio=function(t){return new Tt(t,this.globalData,this)},Jt.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},Jt.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e0&&(this.maskElement.setAttribute("id",g),this.element.maskedElement.setAttribute(h,"url("+V+"#"+g+")"),r.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}Pe.prototype.getMaskProperty=function(t){return this.viewData[t].prop},Pe.prototype.renderFrame=function(t){var e=this.element.finalTransform.mat,i,r=this.masksProperties.length;for(i=0;i1&&(r+=" C"+e.o[o-1][0]+","+e.o[o-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),i.lastPath!==r){var d="";i.elem&&(e.c&&(d=t.inv?this.solidPath+r:r),i.elem.setAttribute("d",d)),i.lastPath=r}},Pe.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};function Ie(){}Ie.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function Le(){}Le.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){var i,r=this.dynamicProperties.length;for(i=0;it?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 t,e=this.renderableComponents.length;for(t=0;t0;)u=b.transformers[R].mProps._mdf||u,m-=1,R-=1;if(u)for(m=n-b.styles[h].lvl,R=b.transformers.length-1;m>0;)p=b.transformers[R].mProps.v.props,c.transform(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15]),m-=1,R-=1}else c=t;if(f=b.sh.paths,A=f._length,u){for(x="",y=0;y=1?q=.99:q<=-1&&(q=-.99);var Q=B*q,J=Math.cos(X+b.a.v)*Q+x[0],tt=Math.sin(X+b.a.v)*Q+x[1];y.setAttribute("fx",J),y.setAttribute("fy",tt),A&&!b.g._collapsable&&(b.of.setAttribute("fx",J),b.of.setAttribute("fy",tt))}}}function T(P,b,g){var y=b.style,A=b.d;A&&(A._mdf||g)&&A.dashStr&&(y.pElem.setAttribute("stroke-dasharray",A.dashStr),y.pElem.setAttribute("stroke-dashoffset",A.dashoffset[0])),b.c&&(b.c._mdf||g)&&y.pElem.setAttribute("stroke","rgb("+mt(b.c.v[0])+","+mt(b.c.v[1])+","+mt(b.c.v[2])+")"),(b.o._mdf||g)&&y.pElem.setAttribute("stroke-opacity",b.o.v),(b.w._mdf||g)&&(y.pElem.setAttribute("stroke-width",b.w.v),y.msElem&&y.msElem.setAttribute("stroke-width",b.w.v))}return i}();function ct(){}ct.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t=0&&(i=this.shapeModifiers[t].processShapes(this._isFirstFrame),!i);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,i=0,r=e.length;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))}},jt.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},Tt.prototype.show=function(){},Tt.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},Tt.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},Tt.prototype.resume=function(){this._canPlay=!0},Tt.prototype.setRate=function(t){this.audio.rate(t)},Tt.prototype.volume=function(t){this.audio.volume(t)},Tt.prototype.getBaseElement=function(){return null},Tt.prototype.destroy=function(){},Tt.prototype.sourceRectAtTime=function(){},Tt.prototype.initExpressions=function(){};function oi(t,e,i){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?rt(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?L.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}_t([qt,jt,zt],oi);function Re(t,e,i){this.textSpans=[],this.renderType="svg",this.initElement(t,e,i)}_t([ct,$e,zt,Ie,Le,Ye,St],Re),Re.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=G("text"))},Re.prototype.buildTextContents=function(t){for(var e=0,i=t.length,r=[],o="";et?this.textSpans[t]:G(E?"path":"text"),n<=t&&(v.setAttribute("stroke-linecap","butt"),v.setAttribute("stroke-linejoin","round"),v.setAttribute("stroke-miterlimit","4"),this.textSpans[t]=v,this.layerElement.appendChild(v)),v.style.display="inherit"),T.reset(),T.scale(i.finalSize/100,i.finalSize/100),g&&(d[t].n&&(y=-u,A+=i.yOffset,A+=x?1:0,x=!1),this.applyTextPropertiesToMatrix(i,T,d[t].line,y,A),y+=d[t].l||0,y+=u),E?(c=this.globalData.fontManager.getCharData(i.finalText[t],r.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily),f=c&&c.data||{},P=f.shapes?f.shapes[0].it:[],g?b+=this.createPathShape(T,P):v.setAttribute("d",this.createPathShape(T,P))):(g&&v.setAttribute("transform","translate("+T.props[12]+","+T.props[13]+")"),v.textContent=d[t].val,v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"));g&&v&&v.setAttribute("d",b)}for(;t1&&E&&this.setShapesAsAnimated(d)}},Nt.prototype.setShapesAsAnimated=function(t){var e,i=t.length;for(e=0;e=0;v-=1){if(u=this.searchProcessedElement(t[v]),u?e[v]=i[u-1]:t[v]._render=d,t[v].ty==="fl"||t[v].ty==="st"||t[v].ty==="gf"||t[v].ty==="gs")u?e[v].style.closed=!1:e[v]=this.createStyleElement(t[v],o),t[v]._render&&r.appendChild(e[v].style.pElem),g.push(e[v].style);else if(t[v].ty==="gr"){if(!u)e[v]=this.createGroupElement(t[v]);else for(b=e[v].it.length,P=0;P=0;S-=1)e[S].animation.destroy(F)}function m(F,S,_){var M=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Z,O=M.length;for(Z=0;Zthis.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e=this.animationData.layers,i,r=e.length,o=t.layers,s,d=o.length;for(s=0;sthis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame()},ft.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},ft.prototype.play=function(t){t&&this.name!==t||this.isPaused===!0&&(this.isPaused=!1,this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},ft.prototype.pause=function(t){t&&this.name!==t||this.isPaused===!1&&(this.isPaused=!0,this._idle=!0,this.trigger("_idle"),this.audioController.pause())},ft.prototype.togglePause=function(t){t&&this.name!==t||(this.isPaused===!0?this.play():this.pause())},ft.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},ft.prototype.getMarkerData=function(t){for(var e,i=0;i=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"))}},ft.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},ft.prototype.setSegment=function(t,e){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFramee&&(i=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,i!==-1&&this.goToAndStop(i,!0)},ft.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),typeof t[0]=="object"){var i,r=t.length;for(i=0;i1&&(Dt=t)}function Pr(){return typeof navigator<"u"}function Tr(t,e){t==="expressions"&&(N=e)}function wr(t){switch(t){case"propertyFactory":return L;case"shapePropertyFactory":return Se;case"matrix":return Et;default:return null}}Ft.play=Ut.play,Ft.pause=Ut.pause,Ft.setLocationHref=kr,Ft.togglePause=Ut.togglePause,Ft.setSpeed=Ut.setSpeed,Ft.setDirection=Ut.setDirection,Ft.stop=Ut.stop,Ft.searchAnimations=Zi,Ft.registerAnimation=Ut.registerAnimation,Ft.loadAnimation=Ar,Ft.setSubframeRendering=xr,Ft.resize=Ut.resize,Ft.goToAndStop=Ut.goToAndStop,Ft.destroy=Ut.destroy,Ft.setQuality=Er,Ft.inBrowser=Pr,Ft.installPlugin=Tr,Ft.freeze=Ut.freeze,Ft.unfreeze=Ut.unfreeze,Ft.setVolume=Ut.setVolume,Ft.mute=Ut.mute,Ft.unmute=Ut.unmute,Ft.getRegisteredAnimations=Ut.getRegisteredAnimations,Ft.setIDPrefix=Sr,Ft.__getFactory=wr,Ft.version="5.7.14";function Cr(){document.readyState==="complete"&&(clearInterval(Lr),Zi())}function Fr(t){for(var e=Qi.split("&"),i=0;i=0)&&(I[j]=w[j]);return I}function Xi(w,C){return C={exports:{}},w(C,C.exports),C.exports}/** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Ut=typeof Symbol=="function"&&Symbol.for,Xi=Ut?Symbol.for("react.element"):60103,Hi=Ut?Symbol.for("react.portal"):60106,Ai=Ut?Symbol.for("react.fragment"):60107,Ei=Ut?Symbol.for("react.strict_mode"):60108,Pi=Ut?Symbol.for("react.profiler"):60114,wi=Ut?Symbol.for("react.provider"):60109,Ti=Ut?Symbol.for("react.context"):60110,Ki=Ut?Symbol.for("react.async_mode"):60111,Ci=Ut?Symbol.for("react.concurrent_mode"):60111,Mi=Ut?Symbol.for("react.forward_ref"):60112,Fi=Ut?Symbol.for("react.suspense"):60113,Hr=Ut?Symbol.for("react.suspense_list"):60120,Ii=Ut?Symbol.for("react.memo"):60115,Li=Ut?Symbol.for("react.lazy"):60116,Kr=Ut?Symbol.for("react.block"):60121,Jr=Ut?Symbol.for("react.fundamental"):60117,Zr=Ut?Symbol.for("react.responder"):60118,Qr=Ut?Symbol.for("react.scope"):60119;function pe(w){if(typeof w=="object"&&w!==null){var M=w.$$typeof;switch(M){case Xi:switch(w=w.type,w){case Ki:case Ci:case Ai:case Pi:case Ei:case Fi:return w;default:switch(w=w&&w.$$typeof,w){case Ti:case Mi:case Li:case Ii:case wi:return w;default:return M}}case Hi:return M}}}function mr(w){return pe(w)===Ci}var ts=Ki,es=Ci,is=Ti,rs=wi,ss=Xi,ns=Mi,as=Ai,os=Li,hs=Ii,ls=Hi,fs=Pi,us=Ei,ps=Fi,cs=function(w){return mr(w)||pe(w)===Ki},ds=mr,vs=function(w){return pe(w)===Ti},ms=function(w){return pe(w)===wi},gs=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===Xi},ys=function(w){return pe(w)===Mi},_s=function(w){return pe(w)===Ai},bs=function(w){return pe(w)===Li},ks=function(w){return pe(w)===Ii},xs=function(w){return pe(w)===Hi},Ss=function(w){return pe(w)===Pi},As=function(w){return pe(w)===Ei},Es=function(w){return pe(w)===Fi},Ps=function(w){return typeof w=="string"||typeof w=="function"||w===Ai||w===Ci||w===Pi||w===Ei||w===Fi||w===Hr||typeof w=="object"&&w!==null&&(w.$$typeof===Li||w.$$typeof===Ii||w.$$typeof===wi||w.$$typeof===Ti||w.$$typeof===Mi||w.$$typeof===Jr||w.$$typeof===Zr||w.$$typeof===Qr||w.$$typeof===Kr)},ws=pe,Ts={AsyncMode:ts,ConcurrentMode:es,ContextConsumer:is,ContextProvider:rs,Element:ss,ForwardRef:ns,Fragment:as,Lazy:os,Memo:hs,Portal:ls,Profiler:fs,StrictMode:us,Suspense:ps,isAsyncMode:cs,isConcurrentMode:ds,isContextConsumer:vs,isContextProvider:ms,isElement:gs,isForwardRef:ys,isFragment:_s,isLazy:bs,isMemo:ks,isPortal:xs,isProfiler:Ss,isStrictMode:As,isSuspense:Es,isValidElementType:Ps,typeOf:ws},Cs=Ui(function(w,M){process.env.NODE_ENV!=="production"&&function(){var F=typeof Symbol=="function"&&Symbol.for,j=F?Symbol.for("react.element"):60103,D=F?Symbol.for("react.portal"):60106,q=F?Symbol.for("react.fragment"):60107,O=F?Symbol.for("react.strict_mode"):60108,B=F?Symbol.for("react.profiler"):60114,Y=F?Symbol.for("react.provider"):60109,N=F?Symbol.for("react.context"):60110,Q=F?Symbol.for("react.async_mode"):60111,ct=F?Symbol.for("react.concurrent_mode"):60111,pt=F?Symbol.for("react.forward_ref"):60112,At=F?Symbol.for("react.suspense"):60113,ie=F?Symbol.for("react.suspense_list"):60120,Ot=F?Symbol.for("react.memo"):60115,gt=F?Symbol.for("react.lazy"):60116,Vt=F?Symbol.for("react.block"):60121,ne=F?Symbol.for("react.fundamental"):60117,St=F?Symbol.for("react.responder"):60118,ge=F?Symbol.for("react.scope"):60119;function ye(L){return typeof L=="string"||typeof L=="function"||L===q||L===ct||L===B||L===O||L===At||L===ie||typeof L=="object"&&L!==null&&(L.$$typeof===gt||L.$$typeof===Ot||L.$$typeof===Y||L.$$typeof===N||L.$$typeof===pt||L.$$typeof===ne||L.$$typeof===St||L.$$typeof===ge||L.$$typeof===Vt)}function ht(L){if(typeof L=="object"&&L!==null){var de=L.$$typeof;switch(de){case j:var Qt=L.type;switch(Qt){case Q:case ct:case q:case B:case O:case At:return Qt;default:var Pe=Qt&&Qt.$$typeof;switch(Pe){case N:case pt:case gt:case Ot:case Y:return Pe;default:return de}}case D:return de}}}var re=Q,dt=ct,Ft=N,ce=Y,Kt=j,U=pt,tt=q,at=gt,ut=Ot,rt=D,st=B,G=O,ot=At,nt=!1;function yt(L){return nt||(nt=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),bt(L)||ht(L)===Q}function bt(L){return ht(L)===ct}function Jt(L){return ht(L)===N}function wt(L){return ht(L)===Y}function ae(L){return typeof L=="object"&&L!==null&&L.$$typeof===j}function kt(L){return ht(L)===pt}function Ke(L){return ht(L)===q}function ze(L){return ht(L)===gt}function Zt(L){return ht(L)===Ot}function Ne(L){return ht(L)===D}function ri(L){return ht(L)===B}function Je(L){return ht(L)===O}function Ee(L){return ht(L)===At}M.AsyncMode=re,M.ConcurrentMode=dt,M.ContextConsumer=Ft,M.ContextProvider=ce,M.Element=Kt,M.ForwardRef=U,M.Fragment=tt,M.Lazy=at,M.Memo=ut,M.Portal=rt,M.Profiler=st,M.StrictMode=G,M.Suspense=ot,M.isAsyncMode=yt,M.isConcurrentMode=bt,M.isContextConsumer=Jt,M.isContextProvider=wt,M.isElement=ae,M.isForwardRef=kt,M.isFragment=Ke,M.isLazy=ze,M.isMemo=Zt,M.isPortal=Ne,M.isProfiler=ri,M.isStrictMode=Je,M.isSuspense=Ee,M.isValidElementType=ye,M.typeOf=ht}()}),gr=Ui(function(w){process.env.NODE_ENV==="production"?w.exports=Ts:w.exports=Cs});/* + */var Ht=typeof Symbol=="function"&&Symbol.for,Hi=Ht?Symbol.for("react.element"):60103,Ki=Ht?Symbol.for("react.portal"):60106,Ei=Ht?Symbol.for("react.fragment"):60107,Pi=Ht?Symbol.for("react.strict_mode"):60108,Ti=Ht?Symbol.for("react.profiler"):60114,wi=Ht?Symbol.for("react.provider"):60109,Ci=Ht?Symbol.for("react.context"):60110,Ji=Ht?Symbol.for("react.async_mode"):60111,Fi=Ht?Symbol.for("react.concurrent_mode"):60111,Mi=Ht?Symbol.for("react.forward_ref"):60112,Ii=Ht?Symbol.for("react.suspense"):60113,Gr=Ht?Symbol.for("react.suspense_list"):60120,Li=Ht?Symbol.for("react.memo"):60115,Ri=Ht?Symbol.for("react.lazy"):60116,Ur=Ht?Symbol.for("react.block"):60121,Xr=Ht?Symbol.for("react.fundamental"):60117,Hr=Ht?Symbol.for("react.responder"):60118,Kr=Ht?Symbol.for("react.scope"):60119;function ue(w){if(typeof w=="object"&&w!==null){var C=w.$$typeof;switch(C){case Hi:switch(w=w.type,w){case Ji:case Fi:case Ei:case Ti:case Pi:case Ii:return w;default:switch(w=w&&w.$$typeof,w){case Ci:case Mi:case Ri:case Li:case wi:return w;default:return C}}case Ki:return C}}}function cr(w){return ue(w)===Fi}var Jr=Ji,Zr=Fi,Qr=Ci,ts=wi,es=Hi,is=Mi,rs=Ei,ss=Ri,ns=Li,as=Ki,os=Ti,hs=Pi,ls=Ii,fs=function(w){return cr(w)||ue(w)===Ji},us=cr,ps=function(w){return ue(w)===Ci},cs=function(w){return ue(w)===wi},ds=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===Hi},vs=function(w){return ue(w)===Mi},ms=function(w){return ue(w)===Ei},ys=function(w){return ue(w)===Ri},gs=function(w){return ue(w)===Li},_s=function(w){return ue(w)===Ki},bs=function(w){return ue(w)===Ti},ks=function(w){return ue(w)===Pi},xs=function(w){return ue(w)===Ii},Ss=function(w){return typeof w=="string"||typeof w=="function"||w===Ei||w===Fi||w===Ti||w===Pi||w===Ii||w===Gr||typeof w=="object"&&w!==null&&(w.$$typeof===Ri||w.$$typeof===Li||w.$$typeof===wi||w.$$typeof===Ci||w.$$typeof===Mi||w.$$typeof===Xr||w.$$typeof===Hr||w.$$typeof===Kr||w.$$typeof===Ur)},As=ue,Es={AsyncMode:Jr,ConcurrentMode:Zr,ContextConsumer:Qr,ContextProvider:ts,Element:es,ForwardRef:is,Fragment:rs,Lazy:ss,Memo:ns,Portal:as,Profiler:os,StrictMode:hs,Suspense:ls,isAsyncMode:fs,isConcurrentMode:us,isContextConsumer:ps,isContextProvider:cs,isElement:ds,isForwardRef:vs,isFragment:ms,isLazy:ys,isMemo:gs,isPortal:_s,isProfiler:bs,isStrictMode:ks,isSuspense:xs,isValidElementType:Ss,typeOf:As},Ps=Xi(function(w,C){process.env.NODE_ENV!=="production"&&function(){var I=typeof Symbol=="function"&&Symbol.for,V=I?Symbol.for("react.element"):60103,j=I?Symbol.for("react.portal"):60106,W=I?Symbol.for("react.fragment"):60107,D=I?Symbol.for("react.strict_mode"):60108,N=I?Symbol.for("react.profiler"):60114,$=I?Symbol.for("react.provider"):60109,U=I?Symbol.for("react.context"):60110,st=I?Symbol.for("react.async_mode"):60111,mt=I?Symbol.for("react.concurrent_mode"):60111,xt=I?Symbol.for("react.forward_ref"):60112,Ct=I?Symbol.for("react.suspense"):60113,se=I?Symbol.for("react.suspense_list"):60120,Dt=I?Symbol.for("react.memo"):60115,yt=I?Symbol.for("react.lazy"):60116,Lt=I?Symbol.for("react.block"):60121,At=I?Symbol.for("react.fundamental"):60117,oe=I?Symbol.for("react.responder"):60118,ke=I?Symbol.for("react.scope"):60119;function ye(L){return typeof L=="string"||typeof L=="function"||L===W||L===mt||L===N||L===D||L===Ct||L===se||typeof L=="object"&&L!==null&&(L.$$typeof===yt||L.$$typeof===Dt||L.$$typeof===$||L.$$typeof===U||L.$$typeof===xt||L.$$typeof===At||L.$$typeof===oe||L.$$typeof===ke||L.$$typeof===Lt)}function ot(L){if(typeof L=="object"&&L!==null){var ce=L.$$typeof;switch(ce){case V:var $t=L.type;switch($t){case st:case mt:case W:case N:case D:case Ct:return $t;default:var Se=$t&&$t.$$typeof;switch(Se){case U:case xt:case yt:case Dt:case $:return Se;default:return ce}}case j:return ce}}}var xe=st,Mt=mt,It=U,pe=$,Zt=V,Y=xt,K=W,ht=yt,ut=Dt,it=j,rt=N,G=D,at=Ct,nt=!1;function vt(L){return nt||(nt=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),gt(L)||ot(L)===st}function gt(L){return ot(L)===mt}function Qt(L){return ot(L)===U}function Et(L){return ot(L)===$}function ne(L){return typeof L=="object"&&L!==null&&L.$$typeof===V}function _t(L){return ot(L)===xt}function Je(L){return ot(L)===W}function Be(L){return ot(L)===yt}function te(L){return ot(L)===Dt}function ze(L){return ot(L)===j}function ii(L){return ot(L)===N}function Ze(L){return ot(L)===D}function we(L){return ot(L)===Ct}C.AsyncMode=xe,C.ConcurrentMode=Mt,C.ContextConsumer=It,C.ContextProvider=pe,C.Element=Zt,C.ForwardRef=Y,C.Fragment=K,C.Lazy=ht,C.Memo=ut,C.Portal=it,C.Profiler=rt,C.StrictMode=G,C.Suspense=at,C.isAsyncMode=vt,C.isConcurrentMode=gt,C.isContextConsumer=Qt,C.isContextProvider=Et,C.isElement=ne,C.isForwardRef=_t,C.isFragment=Je,C.isLazy=Be,C.isMemo=te,C.isPortal=ze,C.isProfiler=ii,C.isStrictMode=Ze,C.isSuspense=we,C.isValidElementType=ye,C.typeOf=ot}()}),dr=Xi(function(w){process.env.NODE_ENV==="production"?w.exports=Es:w.exports=Ps});/* object-assign (c) Sindre Sorhus @license MIT -*/var lr=Object.getOwnPropertySymbols,Ms=Object.prototype.hasOwnProperty,Fs=Object.prototype.propertyIsEnumerable;function Is(w){if(w==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(w)}function Ls(){try{if(!Object.assign)return!1;var w=new String("abc");if(w[5]="de",Object.getOwnPropertyNames(w)[0]==="5")return!1;for(var M={},F=0;F<10;F++)M["_"+String.fromCharCode(F)]=F;var j=Object.getOwnPropertyNames(M).map(function(q){return M[q]});if(j.join("")!=="0123456789")return!1;var D={};return"abcdefghijklmnopqrst".split("").forEach(function(q){D[q]=q}),Object.keys(Object.assign({},D)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var Rs=Ls()?Object.assign:function(w,M){for(var F,j=Is(w),D,q=1;q1?hi("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):hi("Invalid argument supplied to oneOf, expected an array.")),xi;function tt(at,ut,rt,st,G){for(var ot=at[ut],nt=0;nt"u"||U===null)return""+U;var tt=dt(U);if(tt==="object"){if(U instanceof Date)return"date";if(U instanceof RegExp)return"regexp"}return tt}function ce(U){var tt=Ft(U);switch(tt){case"array":case"object":return"an "+tt;case"boolean":case"date":case"regexp":return"a "+tt;default:return tt}}function Kt(U){return!U.constructor||!U.constructor.name?q:U.constructor.name}return O.checkPropTypes=fr,O.resetWarningCache=fr.resetWarningCache,O.PropTypes=O,O};function _r(){}function br(){}br.resetWarningCache=_r;var zs=function(){function w(j,D,q,O,B,Y){if(Y!==He){var N=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw N.name="Invariant Violation",N}}w.isRequired=w;function M(){return w}var F={array:w,bool:w,func:w,number:w,object:w,string:w,symbol:w,any:w,arrayOf:M,element:w,elementType:w,instanceOf:M,node:w,objectOf:M,oneOf:M,oneOfType:M,shape:M,exact:M,checkPropTypes:br,resetWarningCache:_r};return F.PropTypes=F,F},Dt=Ui(function(w){if(process.env.NODE_ENV!=="production"){var M=gr,F=!0;w.exports=Bs(M.isElement,F)}else w.exports=zs()}),Ns=function(M){var F=It.memo(function(j){var D=j.animationData,q=j.path,O=j.play,B=j.speed,Y=j.direction,N=j.segments,Q=j.goTo,ct=j.renderer,pt=j.loop,At=j.rendererSettings,ie=j.audioFactory,Ot=j.onLoad,gt=j.onComplete,Vt=j.onLoopComplete,ne=j.onEnterFrame,St=j.onSegmentStart,ge=Xr(j,["animationData","path","play","speed","direction","segments","goTo","renderer","loop","rendererSettings","audioFactory","onLoad","onComplete","onLoopComplete","onEnterFrame","onSegmentStart"]),ye=It.useRef(),ht=It.useRef(),re=It.useState(!1),dt=re[0],Ft=re[1],ce=It.useState(N),Kt=ce[0],U=ce[1];It.useEffect(function(){or(Kt,N)||U(N)},[N,Kt]);var tt=It.useState(At),at=tt[0],ut=tt[1];It.useEffect(function(){or(at,At)||ut(At)},[At,at]),It.useEffect(function(){return function(){return ht.current.removeEventListener("complete",gt)}},[gt]),It.useEffect(function(){return function(){return ht.current.removeEventListener("loopComplete",Vt)}},[Vt]),It.useEffect(function(){return function(){return ht.current.removeEventListener("enterFrame",ne)}},[ne]),It.useEffect(function(){return function(){return ht.current.removeEventListener("segmentStart",St)}},[St]),It.useEffect(function(){function st(){return D==null||typeof D!="object"?D:typeof D.default=="object"?hr(D.default):hr(D)}ht.current=M.loadAnimation({animationData:st(),path:q,container:ye.current,renderer:ct,loop:!1,autoplay:!1,rendererSettings:at,audioFactory:ie});function G(){Ft(!0),Ot()}return ht.current.addEventListener("DOMLoaded",G),function(){ht.current.removeEventListener("DOMLoaded",G),Ft(!1),ht.current.destroy(),ht.current=void 0}},[pt,ct,at,D,q,ie]),It.useEffect(function(){ht.current.addEventListener("complete",gt)},[gt]),It.useEffect(function(){ht.current.addEventListener("loopComplete",Vt)},[Vt]),It.useEffect(function(){ht.current.addEventListener("enterFrame",ne)},[ne]),It.useEffect(function(){ht.current.addEventListener("segmentStart",St)},[St]),It.useEffect(function(){!dt||(ht.current.loop=pt)},[dt,pt]);var rt=It.useRef(!1);return It.useEffect(function(){if(!dt)return;function st(yt){ht.current.goToAndPlay(yt,!0),ht.current.setDirection(Y)}if(O===!0){var G=!0;if(Kt){if(ht.current.playSegments(Kt,G),rt.current=!0,Y===-1){var ot=Kt[1];st(ot)}}else if(rt.current&&ht.current.resetSegments(G),rt.current=!1,Y===-1){var nt=ht.current.getDuration(!0);st(nt)}else ht.current.play()}else O===!1&&ht.current.pause()},[O,Kt,dt]),It.useEffect(function(){!dt||Number.isNaN(B)||ht.current.setSpeed(B)},[B,dt]),It.useEffect(function(){!dt||ht.current.setDirection(Y)},[Y,dt]),It.useEffect(function(){if(!!dt&&Q!=null){var st=!0;O?ht.current.goToAndPlay(Q,st):ht.current.goToAndStop(Q,st)}},[Q,O,dt]),Ur.createElement("div",$i({},ge,{ref:ye}))});return F.propTypes={animationData:Dt.object,path:Dt.string,play:Dt.bool,goTo:Dt.number,speed:Dt.number,direction:Dt.number,loop:Dt.oneOfType([Dt.number,Dt.bool]),segments:Dt.oneOfType([Dt.arrayOf(Dt.number),Dt.bool]),rendererSettings:Dt.object,renderer:Dt.string,audioFactory:Dt.func,onComplete:Dt.func,onLoopComplete:Dt.func,onEnterFrame:Dt.func,onSegmentStart:Dt.func},F.defaultProps={animationData:null,path:null,play:null,segments:null,goTo:null,speed:1,direction:1,loop:!0,rendererSettings:{},renderer:"svg",audioFactory:null,onLoad:function(){},onComplete:function(){},onLoopComplete:function(){},onEnterFrame:function(){},onSegmentStart:function(){}},F},qs=Ns(Gr),$s=qs;const Ws="5.3.4",Ys=24,Gs=0,Us=96,Xs=500,Hs=500,Ks="Toggle",Js=0,Zs=[],Qs=[{ddd:0,ind:1,ty:4,nm:"Shutting Star",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[250,250,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[-11.168,-2.743],[-25,-28]],o:[[28.5,7],[28.361,31.764]],v:[[-126,-24.5],[-27,37.5]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:32,s:[0],e:[100]},{t:40}],ix:1},e:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:30,s:[0],e:[100]},{t:37}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.933333333333,.992156862745,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:1,ix:5},lc:2,lj:2,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:3,cix:2,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:30,op:41,st:30,bm:0},{ddd:0,ind:2,ty:4,nm:"Moon",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:1,k:[{i:{x:[.1],y:[1]},o:{x:[.9],y:[0]},n:["0p1_1_0p9_0"],t:0,s:[-175.595],e:[0]},{i:{x:[.1],y:[1]},o:{x:[.9],y:[0]},n:["0p1_1_0p9_0"],t:24,s:[0],e:[0]},{i:{x:[.1],y:[1]},o:{x:[.9],y:[0]},n:["0p1_1_0p9_0"],t:48,s:[0],e:[-175.595]},{t:72}],ix:10},p:{s:!0,x:{a:1,k:[{i:{x:[.1],y:[1]},o:{x:[.9],y:[0]},n:["0p1_1_0p9_0"],t:0,s:[170],e:[330]},{i:{x:[.1],y:[1]},o:{x:[.9],y:[0]},n:["0p1_1_0p9_0"],t:24,s:[330],e:[330]},{i:{x:[.1],y:[1]},o:{x:[.9],y:[0]},n:["0p1_1_0p9_0"],t:48,s:[330],e:[170]},{t:72}],ix:3},y:{a:0,k:250,ix:4}},a:{a:0,k:[60.25,60.25,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[4.981,1.834],[0,7.828],[11.632,0],[2.39,-.941],[-1.477,0],[0,-11.632],[6.338,-3.63],[0,-5.618],[4.49,-2.06],[0,6.513]],o:[[6.338,-3.63],[0,-11.632],[-2.724,0],[1.391,-.289],[11.632,0],[0,7.828],[4.981,1.834],[0,5.263],[6.24,-.973],[0,-5.619]],v:[[3.775,7.124],[14.388,-11.16],[-6.674,-32.221],[-14.388,-30.757],[-10.079,-31.2],[10.983,-10.137],[.37,8.146],[8.911,20.374],[1.297,32.221],[12.317,19.353]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ind:1,ty:"sh",ix:2,ks:{a:0,k:{i:[[1.534,0],[0,5.888],[-1.927,1.929],[0,-4.354],[-5.888,0],[-1.93,1.933]],o:[[-5.887,0],[0,-2.941],[-3.74,1.656],[0,5.887],[2.946,0],[-1.319,.584]],v:[[-57.252,37.674],[-67.912,27.014],[-64.794,19.481],[-71.147,29.228],[-60.487,39.888],[-52.944,36.76]],c:!0},ix:2},nm:"Path 2",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:1,k:[{i:{x:[.1],y:[1]},o:{x:[.9],y:[0]},n:["0p1_1_0p9_0"],t:0,s:[1,.940106153488,.53420650959,1],e:[.783999992819,.944999964097,.969000004787,1]},{i:{x:[.1],y:[1]},o:{x:[.9],y:[0]},n:["0p1_1_0p9_0"],t:24,s:[.783999992819,.944999964097,.969000004787,1],e:[.783999992819,.944999964097,.969000004787,1]},{i:{x:[.1],y:[1]},o:{x:[.9],y:[0]},n:["0p1_1_0p9_0"],t:48,s:[.783999992819,.944999964097,.969000004787,1],e:[1,.940106153488,.53420650959,1]},{t:72}],ix:4},o:{a:0,k:100,ix:5},r:1,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[86.845,53.361],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shadow",np:3,cix:2,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[4.981,1.834],[0,7.828],[11.632,0],[0,-11.632],[-10.302,-1.374],[0,-3.827],[-7.202,0],[0,7.202]],o:[[6.338,-3.63],[0,-11.632],[-11.632,0],[0,10.679],[-2.624,2.386],[0,7.202],[7.203,0],[0,-5.619]],v:[[10.449,7.038],[21.061,-11.246],[0,-32.307],[-21.061,-11.246],[-2.81,9.623],[-7.092,19.266],[5.949,32.307],[18.991,19.266]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ind:1,ty:"sh",ix:2,ks:{a:0,k:{i:[[0,-5.888],[5.887,0],[0,5.887],[-5.888,0]],o:[[0,5.887],[-5.888,0],[0,-5.888],[5.887,0]],v:[[-43.153,29.141],[-53.813,39.801],[-64.473,29.141],[-53.813,18.481]],c:!0},ix:2},nm:"Path 2",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:1,k:[{i:{x:[.1],y:[1]},o:{x:[.9],y:[0]},n:["0p1_1_0p9_0"],t:0,s:[1,.940106153488,.53420650959,1],e:[.862999949736,.957000014361,.969000004787,1]},{i:{x:[.1],y:[1]},o:{x:[.9],y:[0]},n:["0p1_1_0p9_0"],t:24,s:[.862999949736,.957000014361,.969000004787,1],e:[.862999949736,.957000014361,.969000004787,1]},{i:{x:[.1],y:[1]},o:{x:[.9],y:[0]},n:["0p1_1_0p9_0"],t:48,s:[.862999949736,.957000014361,.969000004787,1],e:[1,.940106153488,.53420650959,1]},{t:72}],ix:4},o:{a:0,k:100,ix:5},r:1,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[80.171,53.448],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Crater",np:3,cix:2,ix:2,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,-33.137],[33.137,0],[0,33.137],[-33.137,0]],o:[[0,33.137],[-33.137,0],[0,-33.137],[33.137,0]],v:[[60,0],[0,60],[-60,0],[0,-60]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:1,k:[{i:{x:[.1],y:[1]},o:{x:[.9],y:[0]},n:["0p1_1_0p9_0"],t:0,s:[1,.940106153488,.53420650959,1],e:[.933000033509,.991999966491,1,1]},{i:{x:[.1],y:[1]},o:{x:[.9],y:[0]},n:["0p1_1_0p9_0"],t:24,s:[.933000033509,.991999966491,1,1],e:[.933000033509,.991999966491,1,1]},{i:{x:[.1],y:[1]},o:{x:[.9],y:[0]},n:["0p1_1_0p9_0"],t:48,s:[.933000033509,.991999966491,1,1],e:[1,.940106153488,.53420650959,1]},{t:72}],ix:4},o:{a:0,k:100,ix:5},r:1,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[60.25,60.25],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Moon",np:2,cix:2,ix:3,mn:"ADBE Vector Group",hd:!1}],ip:0,op:96,st:0,bm:0},{ddd:0,ind:3,ty:4,nm:"Stars",sr:1,ks:{o:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:11,s:[0],e:[100]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:13,s:[100],e:[100]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:59,s:[100],e:[0]},{t:61}],ix:11},r:{a:0,k:0,ix:10},p:{s:!0,x:{a:1,k:[{i:{x:[.101],y:[.954]},o:{x:[.9],y:[0]},n:["0p101_0p954_0p9_0"],t:0,s:[304.75],e:[190.55]},{i:{x:[.438],y:[.439]},o:{x:[.397],y:[.396]},n:["0p438_0p439_0p397_0p396"],t:24,s:[190.55],e:[184.75]},{i:{x:[.1],y:[1]},o:{x:[.899],y:[-.043]},n:["0p1_1_0p899_-0p043"],t:48,s:[184.75],e:[304.75]},{t:72}],ix:3},y:{a:0,k:212.75,ix:4}},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[10,10],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:32,ix:5},lc:1,lj:1,ml:4,ml2:{a:0,k:4,ix:8},nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!0},{ty:"fl",c:{a:0,k:[.933333333333,.992156862745,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[-32.5,65],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Star 03",np:3,cix:2,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[6,6],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:32,ix:5},lc:1,lj:1,ml:4,ml2:{a:0,k:4,ix:8},nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!0},{ty:"fl",c:{a:0,k:[.933333333333,.992156862745,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[47.5,45],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Star 02",np:3,cix:2,ix:2,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[8,8],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:32,ix:5},lc:1,lj:1,ml:4,ml2:{a:0,k:4,ix:8},nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!0},{ty:"fl",c:{a:0,k:[.933333333333,.992156862745,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Star 01",np:3,cix:2,ix:3,mn:"ADBE Vector Group",hd:!1}],ip:0,op:96,st:0,bm:0},{ddd:0,ind:4,ty:4,nm:"Cloud 1",sr:1,ks:{o:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:11,s:[100],e:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:13,s:[0],e:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:59,s:[0],e:[100]},{t:61}],ix:11},r:{a:0,k:0,ix:10},p:{s:!0,x:{a:1,k:[{i:{x:[.1],y:[1]},o:{x:[.9],y:[0]},n:["0p1_1_0p9_0"],t:0,s:[275.5],e:[184]},{i:{x:[.1],y:[1]},o:{x:[.9],y:[0]},n:["0p1_1_0p9_0"],t:24,s:[184],e:[184]},{i:{x:[.102],y:[.92]},o:{x:[.9],y:[0]},n:["0p102_0p92_0p9_0"],t:48,s:[184],e:[269.054]},{i:{x:[.731],y:[1]},o:{x:[.225],y:[.253]},n:["0p731_1_0p225_0p253"],t:72,s:[269.054],e:[275.5]},{t:95}],ix:3},y:{a:0,k:220,ix:4}},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[4.193,.263],[4.158,0],[0,0],[.688,-3.952],[0,0],[0,-4.43],[0,0],[-4.43,0],[0,0],[0,4.43],[0,0]],o:[[-.677,-3.965],[0,0],[-4.149,0],[0,0],[-4.43,0],[0,0],[0,4.43],[0,0],[4.43,0],[0,0],[0,-4.259]],v:[[11.887,-4.516],[3.601,-11.5],[3.601,-11.5],[-4.68,-4.542],[-11.38,-4.542],[-19.401,3.479],[-19.401,3.479],[-11.38,11.5],[11.38,11.5],[19.401,3.479],[19.401,3.479]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:32,ix:5},lc:1,lj:1,ml:4,ml2:{a:0,k:4,ix:8},nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!0},{ty:"fl",c:{a:0,k:[1,1,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:3,cix:2,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:96,st:0,bm:0},{ddd:0,ind:5,ty:4,nm:"Cloud 2",sr:1,ks:{o:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:11,s:[100],e:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:13,s:[0],e:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:59,s:[0],e:[100]},{t:61}],ix:11},r:{a:0,k:0,ix:10},p:{s:!0,x:{a:1,k:[{i:{x:[.1],y:[1]},o:{x:[.9],y:[0]},n:["0p1_1_0p9_0"],t:0,s:[330.5],e:[167.5]},{i:{x:[.1],y:[1]},o:{x:[.9],y:[0]},n:["0p1_1_0p9_0"],t:24,s:[167.5],e:[167.5]},{i:{x:[.101],y:[.95]},o:{x:[.9],y:[0]},n:["0p101_0p95_0p9_0"],t:48,s:[167.5],e:[324.054]},{i:{x:[.731],y:[1]},o:{x:[.218],y:[.284]},n:["0p731_1_0p218_0p284"],t:72,s:[324.054],e:[330.5]},{t:95}],ix:3},y:{a:0,k:265,ix:4}},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[6.375,.399],[6.322,0],[0,0],[1.046,-6.009],[0,0],[0,-6.736],[0,0],[-6.736,0],[0,0],[0,6.736],[0,0]],o:[[-1.03,-6.029],[0,0],[-6.308,0],[0,0],[-6.736,0],[0,0],[0,6.736],[0,0],[6.736,0],[0,0],[0,-6.476]],v:[[16.075,-1.367],[3.476,-11.986],[3.476,-11.986],[-9.116,-1.406],[-19.304,-1.406],[-31.5,10.79],[-31.5,10.79],[-19.304,22.986],[15.304,22.986],[27.5,10.79],[27.5,10.79]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:32,ix:5},lc:1,lj:1,ml:4,ml2:{a:0,k:4,ix:8},nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!0},{ty:"fl",c:{a:0,k:[1,1,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:3,cix:2,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:96,st:0,bm:0},{ddd:0,ind:6,ty:4,nm:"Shadow",sr:1,ks:{o:{a:0,k:15,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[250,180,0],ix:2},a:{a:0,k:[0,-37.154,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[37.432,0],[0,0],[0,-37.432],[0,0],[-.021,-.694],[-36.733,0],[0,0],[-1.105,-36.465],[0,.699],[0,0]],o:[[0,0],[-37.432,0],[0,0],[0,.699],[1.105,-36.465],[0,0],[36.733,0],[.021,-.694],[0,0],[0,-37.432]],v:[[82.223,-37.154],[-82.223,-37.154],[-150,30.623],[-150,35.069],[-149.947,37.154],[-82.223,-28.538],[82.223,-28.538],[149.947,37.154],[150,35.069],[150,30.623]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.933333333333,.992156862745,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:1,ix:5},lc:1,lj:1,ml:4,ml2:{a:0,k:4,ix:8},nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!0},{ty:"fl",c:{a:0,k:[0,0,0,1],ix:4},o:{a:0,k:100,ix:5},r:1,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:3,cix:2,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:96,st:0,bm:0},{ddd:0,ind:7,ty:4,nm:"Base",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[250,180,0],ix:2},a:{a:0,k:[0,-70,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ty:"rc",d:1,s:{a:0,k:[300,140],ix:2},p:{a:0,k:[0,0],ix:3},r:{a:0,k:320,ix:4},nm:"Rectangle Path 1",mn:"ADBE Vector Shape - Rect",hd:!1},{ty:"fl",c:{a:1,k:[{i:{x:[.1],y:[1]},o:{x:[.9],y:[0]},n:["0p1_1_0p9_0"],t:0,s:[.413832724094,.784281790257,1,1],e:[.0580506064,.077281616628,.256188720465,1]},{i:{x:[.1],y:[1]},o:{x:[.9],y:[0]},n:["0p1_1_0p9_0"],t:24,s:[.0580506064,.077281616628,.256188720465,1],e:[.0580506064,.077281616628,.256188720465,1]},{i:{x:[.1],y:[1]},o:{x:[.9],y:[0]},n:["0p1_1_0p9_0"],t:48,s:[.0580506064,.077281616628,.256188720465,1],e:[.413832724094,.784281790257,1,1]},{t:72}],ix:4},o:{a:0,k:100,ix:5},r:1,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Rectangle 1",np:2,cix:2,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:96,st:0,bm:0},{ddd:0,ind:8,ty:4,nm:"BG",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[250,250,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ty:"rc",d:1,s:{a:0,k:[500,500],ix:2},p:{a:0,k:[0,0],ix:3},r:{a:0,k:0,ix:4},nm:"Rectangle Path 1",mn:"ADBE Vector Shape - Rect",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:18.8,ix:5},lc:1,lj:1,ml:4,ml2:{a:0,k:4,ix:8},nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!0},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Rectangle 1",np:3,cix:2,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:96,st:0,bm:0}],tn=[],en={v:Ws,fr:Ys,ip:Gs,op:Us,w:Xs,h:Hs,nm:Ks,ddd:Js,assets:Zs,layers:Qs,markers:tn},rn="_button_2eo6g_1",sn="_player_2eo6g_12",zi={button:rn,player:sn,"player--loaded":"_player--loaded_2eo6g_22"},nn=w=>{var D;const M=`${w}`,F=parseFloat(M),j=(D=M.match(/[\d.\-+]*\s*(.*)/))==null?void 0:D[1];return[isNaN(F)?0:F,j||"px"]},Ni=[5,50],qi=[50,95],kr=ai.memo(({isDarkMode:w,onChange:M,size:F=85,speed:j=1.3,className:D="",id:q=""})=>{const[O,B]=nn(F),[Y,N]=ai.useState([0,0]),[Q]=ai.useState(w?qi[0]:Ni[0]),[ct,pt]=ai.useState(!1),[At,ie]=ai.useState(!1);ai.useEffect(()=>{Ot()},[w]);const Ot=()=>{N(w?Ni:qi),pt(At)},gt=()=>{N(w?qi:Ni),pt(!0),M(!w)},Vt=()=>{ie(!0)};return nr("button",{onClick:gt,"aria-hidden":"true",style:{width:`${O}${B}`,height:`${O*.5}${B}`},className:ar(zi.button,D),id:q,children:nr($s,{className:ar(zi.player,{[zi["player--loaded"]]:At}),style:{marginTop:`${O*-.575}${B}`,marginLeft:`${O*-.32}${B}`,width:`${O*1.65}${B}`,height:`${O*1.65}${B}`},loop:!1,speed:j,play:ct,animationData:en,goTo:Q,segments:Y,onLoad:Vt})})},an);kr.displayName="DarkModeToggle";function an(w,M){return w.size===M.size&&w.isDarkMode===M.isDarkMode&&w.speed===M.speed&&w.className===M.className&&w.id===M.id}exports.DarkModeToggle=kr; +*/var or=Object.getOwnPropertySymbols,Ts=Object.prototype.hasOwnProperty,ws=Object.prototype.propertyIsEnumerable;function Cs(w){if(w==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(w)}function Fs(){try{if(!Object.assign)return!1;var w=new String("abc");if(w[5]="de",Object.getOwnPropertyNames(w)[0]==="5")return!1;for(var C={},I=0;I<10;I++)C["_"+String.fromCharCode(I)]=I;var V=Object.getOwnPropertyNames(C).map(function(W){return C[W]});if(V.join("")!=="0123456789")return!1;var j={};return"abcdefghijklmnopqrst".split("").forEach(function(W){j[W]=W}),Object.keys(Object.assign({},j)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var Ms=Fs()?Object.assign:function(w,C){for(var I,V=Cs(w),j,W=1;W1?li("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):li("Invalid argument supplied to oneOf, expected an array.")),Si;function K(ht,ut,it,rt,G){for(var at=ht[ut],nt=0;nt"u"||Y===null)return""+Y;var K=Mt(Y);if(K==="object"){if(Y instanceof Date)return"date";if(Y instanceof RegExp)return"regexp"}return K}function pe(Y){var K=It(Y);switch(K){case"array":case"object":return"an "+K;case"boolean":case"date":case"regexp":return"a "+K;default:return K}}function Zt(Y){return!Y.constructor||!Y.constructor.name?W:Y.constructor.name}return D.checkPropTypes=hr,D.resetWarningCache=hr.resetWarningCache,D.PropTypes=D,D};function mr(){}function yr(){}yr.resetWarningCache=mr;var js=function(){function w(V,j,W,D,N,$){if($!==Ke){var U=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw U.name="Invariant Violation",U}}w.isRequired=w;function C(){return w}var I={array:w,bool:w,func:w,number:w,object:w,string:w,symbol:w,any:w,arrayOf:C,element:w,elementType:w,instanceOf:C,node:w,objectOf:C,oneOf:C,oneOfType:C,shape:C,exact:C,checkPropTypes:yr,resetWarningCache:mr};return I.PropTypes=I,I},Wt=Xi(function(w){if(process.env.NODE_ENV!=="production"){var C=dr,I=!0;w.exports=Vs(C.isElement,I)}else w.exports=js()}),Ds=function(C){var I=Ot.memo(function(V){var j=V.animationData,W=V.path,D=V.play,N=V.speed,$=V.direction,U=V.segments,st=V.goTo,mt=V.renderer,xt=V.loop,Ct=V.rendererSettings,se=V.audioFactory,Dt=V.onLoad,yt=V.onComplete,Lt=V.onLoopComplete,At=V.onEnterFrame,oe=V.onSegmentStart,ke=Yr(V,["animationData","path","play","speed","direction","segments","goTo","renderer","loop","rendererSettings","audioFactory","onLoad","onComplete","onLoopComplete","onEnterFrame","onSegmentStart"]),ye=Ot.useRef(),ot=Ot.useRef(),xe=Ot.useState(!1),Mt=xe[0],It=xe[1],pe=Ot.useState(U),Zt=pe[0],Y=pe[1];Ot.useEffect(function(){nr(Zt,U)||Y(U)},[U,Zt]);var K=Ot.useState(Ct),ht=K[0],ut=K[1];Ot.useEffect(function(){nr(ht,Ct)||ut(Ct)},[Ct,ht]),Ot.useEffect(function(){return function(){return ot.current.removeEventListener("complete",yt)}},[yt]),Ot.useEffect(function(){return function(){return ot.current.removeEventListener("loopComplete",Lt)}},[Lt]),Ot.useEffect(function(){return function(){return ot.current.removeEventListener("enterFrame",At)}},[At]),Ot.useEffect(function(){return function(){return ot.current.removeEventListener("segmentStart",oe)}},[oe]),Ot.useEffect(function(){function rt(){return j==null||typeof j!="object"?j:typeof j.default=="object"?ar(j.default):ar(j)}ot.current=C.loadAnimation({animationData:rt(),path:W,container:ye.current,renderer:mt,loop:!1,autoplay:!1,rendererSettings:ht,audioFactory:se});function G(){It(!0),Dt()}return ot.current.addEventListener("DOMLoaded",G),function(){ot.current.removeEventListener("DOMLoaded",G),It(!1),ot.current.destroy(),ot.current=void 0}},[xt,mt,ht,j,W,se]),Ot.useEffect(function(){ot.current.addEventListener("complete",yt)},[yt]),Ot.useEffect(function(){ot.current.addEventListener("loopComplete",Lt)},[Lt]),Ot.useEffect(function(){ot.current.addEventListener("enterFrame",At)},[At]),Ot.useEffect(function(){ot.current.addEventListener("segmentStart",oe)},[oe]),Ot.useEffect(function(){!Mt||(ot.current.loop=xt)},[Mt,xt]);var it=Ot.useRef(!1);return Ot.useEffect(function(){if(!Mt)return;function rt(vt){ot.current.goToAndPlay(vt,!0),ot.current.setDirection($)}if(D===!0){var G=!0;if(Zt){if(ot.current.playSegments(Zt,G),it.current=!0,$===-1){var at=Zt[1];rt(at)}}else if(it.current&&ot.current.resetSegments(G),it.current=!1,$===-1){var nt=ot.current.getDuration(!0);rt(nt)}else ot.current.play()}else D===!1&&ot.current.pause()},[D,Zt,Mt]),Ot.useEffect(function(){!Mt||Number.isNaN(N)||ot.current.setSpeed(N)},[N,Mt]),Ot.useEffect(function(){!Mt||ot.current.setDirection($)},[$,Mt]),Ot.useEffect(function(){if(!!Mt&&st!=null){var rt=!0;D?ot.current.goToAndPlay(st,rt):ot.current.goToAndStop(st,rt)}},[st,D,Mt]),$r.createElement("div",$i({},ke,{ref:ye}))});return I.propTypes={animationData:Wt.object,path:Wt.string,play:Wt.bool,goTo:Wt.number,speed:Wt.number,direction:Wt.number,loop:Wt.oneOfType([Wt.number,Wt.bool]),segments:Wt.oneOfType([Wt.arrayOf(Wt.number),Wt.bool]),rendererSettings:Wt.object,renderer:Wt.string,audioFactory:Wt.func,onComplete:Wt.func,onLoopComplete:Wt.func,onEnterFrame:Wt.func,onSegmentStart:Wt.func},I.defaultProps={animationData:null,path:null,play:null,segments:null,goTo:null,speed:1,direction:1,loop:!0,rendererSettings:{},renderer:"svg",audioFactory:null,onLoad:function(){},onComplete:function(){},onLoopComplete:function(){},onEnterFrame:function(){},onSegmentStart:function(){}},I},Bs=Ds(Wr),zs=Bs;const Ns="5.3.4",qs=24,Ws=0,$s=96,Ys=500,Gs=500,Us="Toggle",Xs=0,Hs=[],Ks=[{ddd:0,ind:1,ty:4,nm:"Shutting Star",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[250,250,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[-11.168,-2.743],[-25,-28]],o:[[28.5,7],[28.361,31.764]],v:[[-126,-24.5],[-27,37.5]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:32,s:[0],e:[100]},{t:40}],ix:1},e:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:30,s:[0],e:[100]},{t:37}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.933333333333,.992156862745,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:1,ix:5},lc:2,lj:2,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:3,cix:2,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:30,op:41,st:30,bm:0},{ddd:0,ind:2,ty:4,nm:"Moon",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:1,k:[{i:{x:[.1],y:[1]},o:{x:[.9],y:[0]},n:["0p1_1_0p9_0"],t:0,s:[-175.595],e:[0]},{i:{x:[.1],y:[1]},o:{x:[.9],y:[0]},n:["0p1_1_0p9_0"],t:24,s:[0],e:[0]},{i:{x:[.1],y:[1]},o:{x:[.9],y:[0]},n:["0p1_1_0p9_0"],t:48,s:[0],e:[-175.595]},{t:72}],ix:10},p:{s:!0,x:{a:1,k:[{i:{x:[.1],y:[1]},o:{x:[.9],y:[0]},n:["0p1_1_0p9_0"],t:0,s:[170],e:[330]},{i:{x:[.1],y:[1]},o:{x:[.9],y:[0]},n:["0p1_1_0p9_0"],t:24,s:[330],e:[330]},{i:{x:[.1],y:[1]},o:{x:[.9],y:[0]},n:["0p1_1_0p9_0"],t:48,s:[330],e:[170]},{t:72}],ix:3},y:{a:0,k:250,ix:4}},a:{a:0,k:[60.25,60.25,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[4.981,1.834],[0,7.828],[11.632,0],[2.39,-.941],[-1.477,0],[0,-11.632],[6.338,-3.63],[0,-5.618],[4.49,-2.06],[0,6.513]],o:[[6.338,-3.63],[0,-11.632],[-2.724,0],[1.391,-.289],[11.632,0],[0,7.828],[4.981,1.834],[0,5.263],[6.24,-.973],[0,-5.619]],v:[[3.775,7.124],[14.388,-11.16],[-6.674,-32.221],[-14.388,-30.757],[-10.079,-31.2],[10.983,-10.137],[.37,8.146],[8.911,20.374],[1.297,32.221],[12.317,19.353]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ind:1,ty:"sh",ix:2,ks:{a:0,k:{i:[[1.534,0],[0,5.888],[-1.927,1.929],[0,-4.354],[-5.888,0],[-1.93,1.933]],o:[[-5.887,0],[0,-2.941],[-3.74,1.656],[0,5.887],[2.946,0],[-1.319,.584]],v:[[-57.252,37.674],[-67.912,27.014],[-64.794,19.481],[-71.147,29.228],[-60.487,39.888],[-52.944,36.76]],c:!0},ix:2},nm:"Path 2",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:1,k:[{i:{x:[.1],y:[1]},o:{x:[.9],y:[0]},n:["0p1_1_0p9_0"],t:0,s:[1,.940106153488,.53420650959,1],e:[.783999992819,.944999964097,.969000004787,1]},{i:{x:[.1],y:[1]},o:{x:[.9],y:[0]},n:["0p1_1_0p9_0"],t:24,s:[.783999992819,.944999964097,.969000004787,1],e:[.783999992819,.944999964097,.969000004787,1]},{i:{x:[.1],y:[1]},o:{x:[.9],y:[0]},n:["0p1_1_0p9_0"],t:48,s:[.783999992819,.944999964097,.969000004787,1],e:[1,.940106153488,.53420650959,1]},{t:72}],ix:4},o:{a:0,k:100,ix:5},r:1,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[86.845,53.361],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shadow",np:3,cix:2,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[4.981,1.834],[0,7.828],[11.632,0],[0,-11.632],[-10.302,-1.374],[0,-3.827],[-7.202,0],[0,7.202]],o:[[6.338,-3.63],[0,-11.632],[-11.632,0],[0,10.679],[-2.624,2.386],[0,7.202],[7.203,0],[0,-5.619]],v:[[10.449,7.038],[21.061,-11.246],[0,-32.307],[-21.061,-11.246],[-2.81,9.623],[-7.092,19.266],[5.949,32.307],[18.991,19.266]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ind:1,ty:"sh",ix:2,ks:{a:0,k:{i:[[0,-5.888],[5.887,0],[0,5.887],[-5.888,0]],o:[[0,5.887],[-5.888,0],[0,-5.888],[5.887,0]],v:[[-43.153,29.141],[-53.813,39.801],[-64.473,29.141],[-53.813,18.481]],c:!0},ix:2},nm:"Path 2",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:1,k:[{i:{x:[.1],y:[1]},o:{x:[.9],y:[0]},n:["0p1_1_0p9_0"],t:0,s:[1,.940106153488,.53420650959,1],e:[.862999949736,.957000014361,.969000004787,1]},{i:{x:[.1],y:[1]},o:{x:[.9],y:[0]},n:["0p1_1_0p9_0"],t:24,s:[.862999949736,.957000014361,.969000004787,1],e:[.862999949736,.957000014361,.969000004787,1]},{i:{x:[.1],y:[1]},o:{x:[.9],y:[0]},n:["0p1_1_0p9_0"],t:48,s:[.862999949736,.957000014361,.969000004787,1],e:[1,.940106153488,.53420650959,1]},{t:72}],ix:4},o:{a:0,k:100,ix:5},r:1,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[80.171,53.448],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Crater",np:3,cix:2,ix:2,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,-33.137],[33.137,0],[0,33.137],[-33.137,0]],o:[[0,33.137],[-33.137,0],[0,-33.137],[33.137,0]],v:[[60,0],[0,60],[-60,0],[0,-60]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:1,k:[{i:{x:[.1],y:[1]},o:{x:[.9],y:[0]},n:["0p1_1_0p9_0"],t:0,s:[1,.940106153488,.53420650959,1],e:[.933000033509,.991999966491,1,1]},{i:{x:[.1],y:[1]},o:{x:[.9],y:[0]},n:["0p1_1_0p9_0"],t:24,s:[.933000033509,.991999966491,1,1],e:[.933000033509,.991999966491,1,1]},{i:{x:[.1],y:[1]},o:{x:[.9],y:[0]},n:["0p1_1_0p9_0"],t:48,s:[.933000033509,.991999966491,1,1],e:[1,.940106153488,.53420650959,1]},{t:72}],ix:4},o:{a:0,k:100,ix:5},r:1,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[60.25,60.25],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Moon",np:2,cix:2,ix:3,mn:"ADBE Vector Group",hd:!1}],ip:0,op:96,st:0,bm:0},{ddd:0,ind:3,ty:4,nm:"Stars",sr:1,ks:{o:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:11,s:[0],e:[100]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:13,s:[100],e:[100]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:59,s:[100],e:[0]},{t:61}],ix:11},r:{a:0,k:0,ix:10},p:{s:!0,x:{a:1,k:[{i:{x:[.101],y:[.954]},o:{x:[.9],y:[0]},n:["0p101_0p954_0p9_0"],t:0,s:[304.75],e:[190.55]},{i:{x:[.438],y:[.439]},o:{x:[.397],y:[.396]},n:["0p438_0p439_0p397_0p396"],t:24,s:[190.55],e:[184.75]},{i:{x:[.1],y:[1]},o:{x:[.899],y:[-.043]},n:["0p1_1_0p899_-0p043"],t:48,s:[184.75],e:[304.75]},{t:72}],ix:3},y:{a:0,k:212.75,ix:4}},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[10,10],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:32,ix:5},lc:1,lj:1,ml:4,ml2:{a:0,k:4,ix:8},nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!0},{ty:"fl",c:{a:0,k:[.933333333333,.992156862745,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[-32.5,65],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Star 03",np:3,cix:2,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[6,6],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:32,ix:5},lc:1,lj:1,ml:4,ml2:{a:0,k:4,ix:8},nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!0},{ty:"fl",c:{a:0,k:[.933333333333,.992156862745,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[47.5,45],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Star 02",np:3,cix:2,ix:2,mn:"ADBE Vector Group",hd:!1},{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[8,8],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:32,ix:5},lc:1,lj:1,ml:4,ml2:{a:0,k:4,ix:8},nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!0},{ty:"fl",c:{a:0,k:[.933333333333,.992156862745,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Star 01",np:3,cix:2,ix:3,mn:"ADBE Vector Group",hd:!1}],ip:0,op:96,st:0,bm:0},{ddd:0,ind:4,ty:4,nm:"Cloud 1",sr:1,ks:{o:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:11,s:[100],e:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:13,s:[0],e:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:59,s:[0],e:[100]},{t:61}],ix:11},r:{a:0,k:0,ix:10},p:{s:!0,x:{a:1,k:[{i:{x:[.1],y:[1]},o:{x:[.9],y:[0]},n:["0p1_1_0p9_0"],t:0,s:[275.5],e:[184]},{i:{x:[.1],y:[1]},o:{x:[.9],y:[0]},n:["0p1_1_0p9_0"],t:24,s:[184],e:[184]},{i:{x:[.102],y:[.92]},o:{x:[.9],y:[0]},n:["0p102_0p92_0p9_0"],t:48,s:[184],e:[269.054]},{i:{x:[.731],y:[1]},o:{x:[.225],y:[.253]},n:["0p731_1_0p225_0p253"],t:72,s:[269.054],e:[275.5]},{t:95}],ix:3},y:{a:0,k:220,ix:4}},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[4.193,.263],[4.158,0],[0,0],[.688,-3.952],[0,0],[0,-4.43],[0,0],[-4.43,0],[0,0],[0,4.43],[0,0]],o:[[-.677,-3.965],[0,0],[-4.149,0],[0,0],[-4.43,0],[0,0],[0,4.43],[0,0],[4.43,0],[0,0],[0,-4.259]],v:[[11.887,-4.516],[3.601,-11.5],[3.601,-11.5],[-4.68,-4.542],[-11.38,-4.542],[-19.401,3.479],[-19.401,3.479],[-11.38,11.5],[11.38,11.5],[19.401,3.479],[19.401,3.479]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:32,ix:5},lc:1,lj:1,ml:4,ml2:{a:0,k:4,ix:8},nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!0},{ty:"fl",c:{a:0,k:[1,1,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:3,cix:2,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:96,st:0,bm:0},{ddd:0,ind:5,ty:4,nm:"Cloud 2",sr:1,ks:{o:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:11,s:[100],e:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:13,s:[0],e:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:59,s:[0],e:[100]},{t:61}],ix:11},r:{a:0,k:0,ix:10},p:{s:!0,x:{a:1,k:[{i:{x:[.1],y:[1]},o:{x:[.9],y:[0]},n:["0p1_1_0p9_0"],t:0,s:[330.5],e:[167.5]},{i:{x:[.1],y:[1]},o:{x:[.9],y:[0]},n:["0p1_1_0p9_0"],t:24,s:[167.5],e:[167.5]},{i:{x:[.101],y:[.95]},o:{x:[.9],y:[0]},n:["0p101_0p95_0p9_0"],t:48,s:[167.5],e:[324.054]},{i:{x:[.731],y:[1]},o:{x:[.218],y:[.284]},n:["0p731_1_0p218_0p284"],t:72,s:[324.054],e:[330.5]},{t:95}],ix:3},y:{a:0,k:265,ix:4}},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[6.375,.399],[6.322,0],[0,0],[1.046,-6.009],[0,0],[0,-6.736],[0,0],[-6.736,0],[0,0],[0,6.736],[0,0]],o:[[-1.03,-6.029],[0,0],[-6.308,0],[0,0],[-6.736,0],[0,0],[0,6.736],[0,0],[6.736,0],[0,0],[0,-6.476]],v:[[16.075,-1.367],[3.476,-11.986],[3.476,-11.986],[-9.116,-1.406],[-19.304,-1.406],[-31.5,10.79],[-31.5,10.79],[-19.304,22.986],[15.304,22.986],[27.5,10.79],[27.5,10.79]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:32,ix:5},lc:1,lj:1,ml:4,ml2:{a:0,k:4,ix:8},nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!0},{ty:"fl",c:{a:0,k:[1,1,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:3,cix:2,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:96,st:0,bm:0},{ddd:0,ind:6,ty:4,nm:"Shadow",sr:1,ks:{o:{a:0,k:15,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[250,180,0],ix:2},a:{a:0,k:[0,-37.154,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[37.432,0],[0,0],[0,-37.432],[0,0],[-.021,-.694],[-36.733,0],[0,0],[-1.105,-36.465],[0,.699],[0,0]],o:[[0,0],[-37.432,0],[0,0],[0,.699],[1.105,-36.465],[0,0],[36.733,0],[.021,-.694],[0,0],[0,-37.432]],v:[[82.223,-37.154],[-82.223,-37.154],[-150,30.623],[-150,35.069],[-149.947,37.154],[-82.223,-28.538],[82.223,-28.538],[149.947,37.154],[150,35.069],[150,30.623]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.933333333333,.992156862745,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:1,ix:5},lc:1,lj:1,ml:4,ml2:{a:0,k:4,ix:8},nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!0},{ty:"fl",c:{a:0,k:[0,0,0,1],ix:4},o:{a:0,k:100,ix:5},r:1,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:3,cix:2,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:96,st:0,bm:0},{ddd:0,ind:7,ty:4,nm:"Base",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[250,180,0],ix:2},a:{a:0,k:[0,-70,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ty:"rc",d:1,s:{a:0,k:[300,140],ix:2},p:{a:0,k:[0,0],ix:3},r:{a:0,k:320,ix:4},nm:"Rectangle Path 1",mn:"ADBE Vector Shape - Rect",hd:!1},{ty:"fl",c:{a:1,k:[{i:{x:[.1],y:[1]},o:{x:[.9],y:[0]},n:["0p1_1_0p9_0"],t:0,s:[.413832724094,.784281790257,1,1],e:[.0580506064,.077281616628,.256188720465,1]},{i:{x:[.1],y:[1]},o:{x:[.9],y:[0]},n:["0p1_1_0p9_0"],t:24,s:[.0580506064,.077281616628,.256188720465,1],e:[.0580506064,.077281616628,.256188720465,1]},{i:{x:[.1],y:[1]},o:{x:[.9],y:[0]},n:["0p1_1_0p9_0"],t:48,s:[.0580506064,.077281616628,.256188720465,1],e:[.413832724094,.784281790257,1,1]},{t:72}],ix:4},o:{a:0,k:100,ix:5},r:1,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Rectangle 1",np:2,cix:2,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:96,st:0,bm:0},{ddd:0,ind:8,ty:4,nm:"BG",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[250,250,0],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ty:"rc",d:1,s:{a:0,k:[500,500],ix:2},p:{a:0,k:[0,0],ix:3},r:{a:0,k:0,ix:4},nm:"Rectangle Path 1",mn:"ADBE Vector Shape - Rect",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:18.8,ix:5},lc:1,lj:1,ml:4,ml2:{a:0,k:4,ix:8},nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!0},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Rectangle 1",np:3,cix:2,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:96,st:0,bm:0}],Js=[],Zs={v:Ns,fr:qs,ip:Ws,op:$s,w:Ys,h:Gs,nm:Us,ddd:Xs,assets:Hs,layers:Ks,markers:Js},Qs="_button_2eo6g_1",tn="_player_2eo6g_12",Ni={button:Qs,player:tn,"player--loaded":"_player--loaded_2eo6g_22"},en=w=>{var j;const C=`${w}`,I=parseFloat(C),V=(j=C.match(/[\d.\-+]*\s*(.*)/))==null?void 0:j[1];return[isNaN(I)?0:I,V||"px"]},qi=[5,50],Wi=[50,95],gr=hi.memo(({attributes:w={},isDarkMode:C,onChange:I,size:V=85,speed:j=1.3,className:W="",id:D=""})=>{const[N,$]=en(V),[U,st]=hi.useState([0,0]),[mt]=hi.useState(C?Wi[0]:qi[0]),[xt,Ct]=hi.useState(!1),[se,Dt]=hi.useState(!1);hi.useEffect(()=>{yt()},[C]);const yt=()=>{st(C?qi:Wi),Ct(se)},Lt=()=>{st(C?Wi:qi),Ct(!0),I(!C)},At=()=>{Dt(!0)};return rr("button",{...w,onClick:Lt,style:{width:`${N}${$}`,height:`${N*.5}${$}`},className:sr(Ni.button,W),id:D,children:rr(zs,{className:sr(Ni.player,{[Ni["player--loaded"]]:se}),style:{marginTop:`${N*-.575}${$}`,marginLeft:`${N*-.32}${$}`,width:`${N*1.65}${$}`,height:`${N*1.65}${$}`},loop:!1,speed:j,play:xt,animationData:Zs,goTo:mt,segments:U,onLoad:At})})},rn);gr.displayName="DarkModeToggle";function rn(w,C){return w.size===C.size&&w.isDarkMode===C.isDarkMode&&w.speed===C.speed&&w.className===C.className&&w.id===C.id}exports.DarkModeToggle=gr; (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._button_2eo6g_1{cursor:pointer;overflow:hidden;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;background-color:transparent;padding:0}._player_2eo6g_12{display:none;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}._player--loaded_2eo6g_22{display:-webkit-box;display:-ms-flexbox;display:flex}")),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}})(); diff --git a/package.json b/package.json index 332f8d8..ea116ad 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-dark-mode-toggle-2", - "version": "2.0.9", + "version": "2.1.0", "description": "An updated, cute dark mode toggle button for React.", "module": "dist/index.es.js", "types": "dist/index.d.ts", @@ -84,8 +84,8 @@ "jest": "^28.1.3", "lint-staged": "^13.0.3", "prettier": "^2.7.1", - "react": "^16.14.0 || ^17.0.0 || ^18.0.0", - "react-dom": "^16.14.0 || ^17.0.0 || ^18.0.0", + "react": "^18", + "react-dom": "^18", "rimraf": "^3.0.2", "rollup": "^2.76.0", "rollup-plugin-polyfill-node": "^0.12.0", diff --git a/src/index.tsx b/src/index.tsx index dc36b67..9dfc4cb 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -9,6 +9,9 @@ import { parseUnit } from "./parseUnit"; export declare namespace DarkModeToggle { export type Props = { + /** Custom attributes to set on the button element. */ + readonly attributes?: React.ButtonHTMLAttributes[]; + /** Whether the toggle is currently in dark-mode */ readonly isDarkMode: boolean; @@ -33,7 +36,7 @@ const lightToDarkSegment: AnimationSegment = [5, 50]; const darkToLightSegment: AnimationSegment = [50, 95]; export const DarkModeToggle = React.memo( - ({ isDarkMode, onChange, size = 85, speed = 1.3, className = "", id = "" }) => { + ({ attributes = {}, isDarkMode, onChange, size = 85, speed = 1.3, className = "", id = "" }) => { const [sizeValue, sizeUnit] = parseUnit(size); const [segments, setSegments] = React.useState([0, 0]); const [goTo] = React.useState(isDarkMode ? darkToLightSegment[0] : lightToDarkSegment[0]); @@ -67,8 +70,8 @@ export const DarkModeToggle = React.memo( return (